]> jfr.im git - irc/evilnet/x3.git/blob - configure
Removed bahamut support plus fixed a warning.
[irc/evilnet/x3.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in 1708 2006-07-30 05:04:30Z rubin .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for X3 1.5.
5 #
6 # Report bugs to <evilnet-devel@lists.sourceforge.net>.
7 #
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24 fi
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29 as_unset=unset
30 else
31 as_unset=false
32 fi
33
34
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
40
41 # NLS nuisances.
42 for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46 do
47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52 done
53
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57 else
58 as_expr=false
59 fi
60
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63 else
64 as_basename=false
65 fi
66
67
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74 echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100 fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 for as_dir in $PATH
114 do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155 done
156 ;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187 }
188
189
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192 ' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 esac
196
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199 else
200 as_expr=false
201 fi
202
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216 else
217 as_ln_s='cp -p'
218 fi
219 rm -f conf$$ conf$$.exe conf$$.file
220
221 if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223 else
224 test -d ./-p && rmdir ./-p
225 as_mkdir_p=false
226 fi
227
228 as_executable_p="test -f"
229
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
236
237 # IFS
238 # We need space, tab and new line, in precisely that order.
239 as_nl='
240 '
241 IFS=" $as_nl"
242
243 # CDPATH.
244 $as_unset CDPATH
245
246
247 # Name of the host.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252 exec 6>&1
253
254 #
255 # Initializations.
256 #
257 ac_default_prefix=/usr/local
258 ac_config_libobj_dir=.
259 cross_compiling=no
260 subdirs=
261 MFLAGS=
262 MAKEFLAGS=
263 SHELL=${CONFIG_SHELL-/bin/sh}
264
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete. It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
269
270 # Identity of this package.
271 PACKAGE_NAME='X3'
272 PACKAGE_TARNAME='x3'
273 PACKAGE_VERSION='1.5'
274 PACKAGE_STRING='X3 1.5'
275 PACKAGE_BUGREPORT='evilnet-devel@lists.sourceforge.net'
276
277 ac_unique_file="src/opserv.c"
278 # Factoring default headers for most tests.
279 ac_includes_default="\
280 #include <stdio.h>
281 #if HAVE_SYS_TYPES_H
282 # include <sys/types.h>
283 #endif
284 #if HAVE_SYS_STAT_H
285 # include <sys/stat.h>
286 #endif
287 #if STDC_HEADERS
288 # include <stdlib.h>
289 # include <stddef.h>
290 #else
291 # if HAVE_STDLIB_H
292 # include <stdlib.h>
293 # endif
294 #endif
295 #if HAVE_STRING_H
296 # if !STDC_HEADERS && HAVE_MEMORY_H
297 # include <memory.h>
298 # endif
299 # include <string.h>
300 #endif
301 #if HAVE_STRINGS_H
302 # include <strings.h>
303 #endif
304 #if HAVE_INTTYPES_H
305 # include <inttypes.h>
306 #else
307 # if HAVE_STDINT_H
308 # include <stdint.h>
309 # endif
310 #endif
311 #if HAVE_UNISTD_H
312 # include <unistd.h>
313 #endif"
314
315 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB LN_S CPP EGREP MAKER ALLOCA MODULE_OBJS MY_SUBDIRS RX_INCLUDES RX_LIBS TRACK LIBOBJS LTLIBOBJS'
316 ac_subst_files=''
317
318 # Initialize some variables set by options.
319 ac_init_help=
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
323 cache_file=/dev/null
324 exec_prefix=NONE
325 no_create=
326 no_recursion=
327 prefix=NONE
328 program_prefix=NONE
329 program_suffix=NONE
330 program_transform_name=s,x,x,
331 silent=
332 site=
333 srcdir=
334 verbose=
335 x_includes=NONE
336 x_libraries=NONE
337
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
355
356 ac_prev=
357 for ac_option
358 do
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
364 fi
365
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367
368 # Accept the important Cygnus configure options, so we can diagnose typos.
369
370 case $ac_option in
371
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 bindir=$ac_optarg ;;
376
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
381
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387 cache_file=$ac_optarg ;;
388
389 --config-cache | -C)
390 cache_file=config.cache ;;
391
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
396 datadir=$ac_optarg ;;
397
398 -disable-* | --disable-*)
399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
406
407 -enable-* | --enable-*)
408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 *) ac_optarg=yes ;;
417 esac
418 eval "enable_$ac_feature='$ac_optarg'" ;;
419
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
427 exec_prefix=$ac_optarg ;;
428
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
432
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
439
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
444
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
450 includedir=$ac_optarg ;;
451
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
456
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 libdir=$ac_optarg ;;
461
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
467 libexecdir=$ac_optarg ;;
468
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476 localstatedir=$ac_optarg ;;
477
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 mandir=$ac_optarg ;;
482
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
486
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
489 no_create=yes ;;
490
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
494
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502 oldincludedir=$ac_optarg ;;
503
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 prefix=$ac_optarg ;;
508
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514 program_prefix=$ac_optarg ;;
515
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521 program_suffix=$ac_optarg ;;
522
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
538 program_transform_name=$ac_optarg ;;
539
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
543
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
548 sbindir=$ac_optarg ;;
549
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
559 sharedstatedir=$ac_optarg ;;
560
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
564 site=$ac_optarg ;;
565
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 srcdir=$ac_optarg ;;
570
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576 sysconfdir=$ac_optarg ;;
577
578 -target | --target | --targe | --targ | --tar | --ta | --t)
579 ac_prev=target_alias ;;
580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581 target_alias=$ac_optarg ;;
582
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
585
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
588
589 -with-* | --with-*)
590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 *) ac_optarg=yes ;;
599 esac
600 eval "with_$ac_package='$ac_optarg'" ;;
601
602 -without-* | --without-*)
603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
610
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
614
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620 x_includes=$ac_optarg ;;
621
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627 x_libraries=$ac_optarg ;;
628
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
632 ;;
633
634 *=*)
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
642 export $ac_envvar ;;
643
644 *)
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 ;;
651
652 esac
653 done
654
655 if test -n "$ac_prev"; then
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
659 fi
660
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
663 do
664 eval ac_val=$`echo $ac_var`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
669 esac
670 done
671
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
675 do
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
681 esac
682 done
683
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
687 build=$build_alias
688 host=$host_alias
689 target=$target_alias
690
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
698 cross_compiling=yes
699 fi
700 fi
701
702 ac_tool_prefix=
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705 test "$silent" = yes && exec 6>/dev/null
706
707
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
718 echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
727 fi
728 else
729 ac_srcdir_defaulted=no
730 fi
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
735 else
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
738 fi
739 fi
740 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_CC_set=${CC+set}
757 ac_env_CC_value=$CC
758 ac_cv_env_CC_set=${CC+set}
759 ac_cv_env_CC_value=$CC
760 ac_env_CFLAGS_set=${CFLAGS+set}
761 ac_env_CFLAGS_value=$CFLAGS
762 ac_cv_env_CFLAGS_set=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value=$CFLAGS
764 ac_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_env_LDFLAGS_value=$LDFLAGS
766 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value=$LDFLAGS
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772 ac_env_CPP_set=${CPP+set}
773 ac_env_CPP_value=$CPP
774 ac_cv_env_CPP_set=${CPP+set}
775 ac_cv_env_CPP_value=$CPP
776
777 #
778 # Report the --help message.
779 #
780 if test "$ac_init_help" = "long"; then
781 # Omit some internal or obsolete options to make the list less imposing.
782 # This message is too long to be a string in the A/UX 3.1 sh.
783 cat <<_ACEOF
784 \`configure' configures X3 1.5 to adapt to many kinds of systems.
785
786 Usage: $0 [OPTION]... [VAR=VALUE]...
787
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE. See below for descriptions of some of the useful variables.
790
791 Defaults for the options are specified in brackets.
792
793 Configuration:
794 -h, --help display this help and exit
795 --help=short display options specific to this package
796 --help=recursive display the short help of all the included packages
797 -V, --version display version information and exit
798 -q, --quiet, --silent do not print \`checking...' messages
799 --cache-file=FILE cache test results in FILE [disabled]
800 -C, --config-cache alias for \`--cache-file=config.cache'
801 -n, --no-create do not create output files
802 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803
804 _ACEOF
805
806 cat <<_ACEOF
807 Installation directories:
808 --prefix=PREFIX install architecture-independent files in PREFIX
809 [$ac_default_prefix]
810 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 [PREFIX]
812
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
817
818 For better control, use the options below.
819
820 Fine tuning of the installation directories:
821 --bindir=DIR user executables [EPREFIX/bin]
822 --sbindir=DIR system admin executables [EPREFIX/sbin]
823 --libexecdir=DIR program executables [EPREFIX/libexec]
824 --datadir=DIR read-only architecture-independent data [PREFIX/share]
825 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
826 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
827 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
828 --libdir=DIR object code libraries [EPREFIX/lib]
829 --includedir=DIR C header files [PREFIX/include]
830 --oldincludedir=DIR C header files for non-gcc [/usr/include]
831 --infodir=DIR info documentation [PREFIX/info]
832 --mandir=DIR man documentation [PREFIX/man]
833 _ACEOF
834
835 cat <<\_ACEOF
836
837 Program names:
838 --program-prefix=PREFIX prepend PREFIX to installed program names
839 --program-suffix=SUFFIX append SUFFIX to installed program names
840 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
841
842 System types:
843 --build=BUILD configure for building on BUILD [guessed]
844 --host=HOST cross-compile to build programs to run on HOST [BUILD]
845 --target=TARGET configure for building compilers for TARGET [HOST]
846 _ACEOF
847 fi
848
849 if test -n "$ac_init_help"; then
850 case $ac_init_help in
851 short | recursive ) echo "Configuration of X3 1.5:";;
852 esac
853 cat <<\_ACEOF
854
855 Optional Features:
856 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
857 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
858 --enable-maintainer-mode enable make rules and dependencies not useful
859 (and sometimes confusing) to the casual installer
860 --disable-dependency-tracking speeds up one-time build
861 --enable-dependency-tracking do not reject slow dependency extractors
862 --disable-tokens Disables tokenization of P10 protocol output
863 (tokens required if linking to ircu 2.10.11)
864 --enable-debug Enables debugging behaviors
865 --enable-modules=list,of,modules Enable extra modules
866
867 Optional Packages:
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --with-malloc=type Enables use of a special malloc library; one of:
871 system (the default), boehm-gc, dmalloc, mpatrol, x3, slab
872 --with-protocol=name Choose IRC dialect to support; one of:
873 p10 (the default)
874 --without-getopt Disables building of the GNU getopt library
875 --with-tre=PATH Base path to where libtre is installed, such that PATH/lib/libtre.so and PATH/include/tre/regex.h exist.
876
877 Some influential environment variables:
878 CC C compiler command
879 CFLAGS C compiler flags
880 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
881 nonstandard directory <lib dir>
882 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
883 headers in a nonstandard directory <include dir>
884 CPP C preprocessor
885
886 Use these variables to override the choices made by `configure' or to help
887 it to find libraries and programs with nonstandard names/locations.
888
889 Report bugs to <evilnet-devel@lists.sourceforge.net>.
890 _ACEOF
891 fi
892
893 if test "$ac_init_help" = "recursive"; then
894 # If there are subdirs, report their specific --help.
895 ac_popdir=`pwd`
896 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
897 test -d $ac_dir || continue
898 ac_builddir=.
899
900 if test "$ac_dir" != .; then
901 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
902 # A "../" for each directory in $ac_dir_suffix.
903 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
904 else
905 ac_dir_suffix= ac_top_builddir=
906 fi
907
908 case $srcdir in
909 .) # No --srcdir option. We are building in place.
910 ac_srcdir=.
911 if test -z "$ac_top_builddir"; then
912 ac_top_srcdir=.
913 else
914 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
915 fi ;;
916 [\\/]* | ?:[\\/]* ) # Absolute path.
917 ac_srcdir=$srcdir$ac_dir_suffix;
918 ac_top_srcdir=$srcdir ;;
919 *) # Relative path.
920 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
921 ac_top_srcdir=$ac_top_builddir$srcdir ;;
922 esac
923
924 # Do not use `cd foo && pwd` to compute absolute paths, because
925 # the directories may not exist.
926 case `pwd` in
927 .) ac_abs_builddir="$ac_dir";;
928 *)
929 case "$ac_dir" in
930 .) ac_abs_builddir=`pwd`;;
931 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
932 *) ac_abs_builddir=`pwd`/"$ac_dir";;
933 esac;;
934 esac
935 case $ac_abs_builddir in
936 .) ac_abs_top_builddir=${ac_top_builddir}.;;
937 *)
938 case ${ac_top_builddir}. in
939 .) ac_abs_top_builddir=$ac_abs_builddir;;
940 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
941 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
942 esac;;
943 esac
944 case $ac_abs_builddir in
945 .) ac_abs_srcdir=$ac_srcdir;;
946 *)
947 case $ac_srcdir in
948 .) ac_abs_srcdir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
950 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
951 esac;;
952 esac
953 case $ac_abs_builddir in
954 .) ac_abs_top_srcdir=$ac_top_srcdir;;
955 *)
956 case $ac_top_srcdir in
957 .) ac_abs_top_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
959 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
960 esac;;
961 esac
962
963 cd $ac_dir
964 # Check for guested configure; otherwise get Cygnus style configure.
965 if test -f $ac_srcdir/configure.gnu; then
966 echo
967 $SHELL $ac_srcdir/configure.gnu --help=recursive
968 elif test -f $ac_srcdir/configure; then
969 echo
970 $SHELL $ac_srcdir/configure --help=recursive
971 elif test -f $ac_srcdir/configure.ac ||
972 test -f $ac_srcdir/configure.in; then
973 echo
974 $ac_configure --help
975 else
976 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
977 fi
978 cd "$ac_popdir"
979 done
980 fi
981
982 test -n "$ac_init_help" && exit 0
983 if $ac_init_version; then
984 cat <<\_ACEOF
985 X3 configure 1.5
986 generated by GNU Autoconf 2.59
987
988 Copyright (C) 2003 Free Software Foundation, Inc.
989 This configure script is free software; the Free Software Foundation
990 gives unlimited permission to copy, distribute and modify it.
991 _ACEOF
992 exit 0
993 fi
994 exec 5>config.log
995 cat >&5 <<_ACEOF
996 This file contains any messages produced by compilers while
997 running configure, to aid debugging if configure makes a mistake.
998
999 It was created by X3 $as_me 1.5, which was
1000 generated by GNU Autoconf 2.59. Invocation command line was
1001
1002 $ $0 $@
1003
1004 _ACEOF
1005 {
1006 cat <<_ASUNAME
1007 ## --------- ##
1008 ## Platform. ##
1009 ## --------- ##
1010
1011 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1012 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1013 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1014 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1015 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1016
1017 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1018 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1019
1020 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1021 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1022 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1023 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1024 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1025 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1026 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1027
1028 _ASUNAME
1029
1030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1031 for as_dir in $PATH
1032 do
1033 IFS=$as_save_IFS
1034 test -z "$as_dir" && as_dir=.
1035 echo "PATH: $as_dir"
1036 done
1037
1038 } >&5
1039
1040 cat >&5 <<_ACEOF
1041
1042
1043 ## ----------- ##
1044 ## Core tests. ##
1045 ## ----------- ##
1046
1047 _ACEOF
1048
1049
1050 # Keep a trace of the command line.
1051 # Strip out --no-create and --no-recursion so they do not pile up.
1052 # Strip out --silent because we don't want to record it for future runs.
1053 # Also quote any args containing shell meta-characters.
1054 # Make two passes to allow for proper duplicate-argument suppression.
1055 ac_configure_args=
1056 ac_configure_args0=
1057 ac_configure_args1=
1058 ac_sep=
1059 ac_must_keep_next=false
1060 for ac_pass in 1 2
1061 do
1062 for ac_arg
1063 do
1064 case $ac_arg in
1065 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067 | -silent | --silent | --silen | --sile | --sil)
1068 continue ;;
1069 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1070 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1071 esac
1072 case $ac_pass in
1073 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1074 2)
1075 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1076 if test $ac_must_keep_next = true; then
1077 ac_must_keep_next=false # Got value, back to normal.
1078 else
1079 case $ac_arg in
1080 *=* | --config-cache | -C | -disable-* | --disable-* \
1081 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1082 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1083 | -with-* | --with-* | -without-* | --without-* | --x)
1084 case "$ac_configure_args0 " in
1085 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1086 esac
1087 ;;
1088 -* ) ac_must_keep_next=true ;;
1089 esac
1090 fi
1091 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1092 # Get rid of the leading space.
1093 ac_sep=" "
1094 ;;
1095 esac
1096 done
1097 done
1098 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1099 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1100
1101 # When interrupted or exit'd, cleanup temporary files, and complete
1102 # config.log. We remove comments because anyway the quotes in there
1103 # would cause problems or look ugly.
1104 # WARNING: Be sure not to use single quotes in there, as some shells,
1105 # such as our DU 5.0 friend, will then `close' the trap.
1106 trap 'exit_status=$?
1107 # Save into config.log some information that might help in debugging.
1108 {
1109 echo
1110
1111 cat <<\_ASBOX
1112 ## ---------------- ##
1113 ## Cache variables. ##
1114 ## ---------------- ##
1115 _ASBOX
1116 echo
1117 # The following way of writing the cache mishandles newlines in values,
1118 {
1119 (set) 2>&1 |
1120 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1121 *ac_space=\ *)
1122 sed -n \
1123 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1124 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1125 ;;
1126 *)
1127 sed -n \
1128 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1129 ;;
1130 esac;
1131 }
1132 echo
1133
1134 cat <<\_ASBOX
1135 ## ----------------- ##
1136 ## Output variables. ##
1137 ## ----------------- ##
1138 _ASBOX
1139 echo
1140 for ac_var in $ac_subst_vars
1141 do
1142 eval ac_val=$`echo $ac_var`
1143 echo "$ac_var='"'"'$ac_val'"'"'"
1144 done | sort
1145 echo
1146
1147 if test -n "$ac_subst_files"; then
1148 cat <<\_ASBOX
1149 ## ------------- ##
1150 ## Output files. ##
1151 ## ------------- ##
1152 _ASBOX
1153 echo
1154 for ac_var in $ac_subst_files
1155 do
1156 eval ac_val=$`echo $ac_var`
1157 echo "$ac_var='"'"'$ac_val'"'"'"
1158 done | sort
1159 echo
1160 fi
1161
1162 if test -s confdefs.h; then
1163 cat <<\_ASBOX
1164 ## ----------- ##
1165 ## confdefs.h. ##
1166 ## ----------- ##
1167 _ASBOX
1168 echo
1169 sed "/^$/d" confdefs.h | sort
1170 echo
1171 fi
1172 test "$ac_signal" != 0 &&
1173 echo "$as_me: caught signal $ac_signal"
1174 echo "$as_me: exit $exit_status"
1175 } >&5
1176 rm -f core *.core &&
1177 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1178 exit $exit_status
1179 ' 0
1180 for ac_signal in 1 2 13 15; do
1181 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1182 done
1183 ac_signal=0
1184
1185 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1186 rm -rf conftest* confdefs.h
1187 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1188 echo >confdefs.h
1189
1190 # Predefined preprocessor variables.
1191
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_NAME "$PACKAGE_NAME"
1194 _ACEOF
1195
1196
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1199 _ACEOF
1200
1201
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1204 _ACEOF
1205
1206
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_STRING "$PACKAGE_STRING"
1209 _ACEOF
1210
1211
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1214 _ACEOF
1215
1216
1217 # Let the site file select an alternate cache file if it wants to.
1218 # Prefer explicitly selected file to automatically selected ones.
1219 if test -z "$CONFIG_SITE"; then
1220 if test "x$prefix" != xNONE; then
1221 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1222 else
1223 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1224 fi
1225 fi
1226 for ac_site_file in $CONFIG_SITE; do
1227 if test -r "$ac_site_file"; then
1228 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1229 echo "$as_me: loading site script $ac_site_file" >&6;}
1230 sed 's/^/| /' "$ac_site_file" >&5
1231 . "$ac_site_file"
1232 fi
1233 done
1234
1235 if test -r "$cache_file"; then
1236 # Some versions of bash will fail to source /dev/null (special
1237 # files actually), so we avoid doing that.
1238 if test -f "$cache_file"; then
1239 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1240 echo "$as_me: loading cache $cache_file" >&6;}
1241 case $cache_file in
1242 [\\/]* | ?:[\\/]* ) . $cache_file;;
1243 *) . ./$cache_file;;
1244 esac
1245 fi
1246 else
1247 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1248 echo "$as_me: creating cache $cache_file" >&6;}
1249 >$cache_file
1250 fi
1251
1252 # Check that the precious variables saved in the cache have kept the same
1253 # value.
1254 ac_cache_corrupted=false
1255 for ac_var in `(set) 2>&1 |
1256 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1257 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1258 eval ac_new_set=\$ac_env_${ac_var}_set
1259 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1260 eval ac_new_val="\$ac_env_${ac_var}_value"
1261 case $ac_old_set,$ac_new_set in
1262 set,)
1263 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1264 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1265 ac_cache_corrupted=: ;;
1266 ,set)
1267 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1268 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1269 ac_cache_corrupted=: ;;
1270 ,);;
1271 *)
1272 if test "x$ac_old_val" != "x$ac_new_val"; then
1273 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1274 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1275 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1276 echo "$as_me: former value: $ac_old_val" >&2;}
1277 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1278 echo "$as_me: current value: $ac_new_val" >&2;}
1279 ac_cache_corrupted=:
1280 fi;;
1281 esac
1282 # Pass precious variables to config.status.
1283 if test "$ac_new_set" = set; then
1284 case $ac_new_val in
1285 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1286 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1287 *) ac_arg=$ac_var=$ac_new_val ;;
1288 esac
1289 case " $ac_configure_args " in
1290 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1291 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1292 esac
1293 fi
1294 done
1295 if $ac_cache_corrupted; then
1296 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1297 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1298 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1299 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1300 { (exit 1); exit 1; }; }
1301 fi
1302
1303 ac_ext=c
1304 ac_cpp='$CPP $CPPFLAGS'
1305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335 CODENAME=X3
1336 ac_config_headers="$ac_config_headers src/config.h"
1337
1338
1339 ac_aux_dir=
1340 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1341 if test -f $ac_dir/install-sh; then
1342 ac_aux_dir=$ac_dir
1343 ac_install_sh="$ac_aux_dir/install-sh -c"
1344 break
1345 elif test -f $ac_dir/install.sh; then
1346 ac_aux_dir=$ac_dir
1347 ac_install_sh="$ac_aux_dir/install.sh -c"
1348 break
1349 elif test -f $ac_dir/shtool; then
1350 ac_aux_dir=$ac_dir
1351 ac_install_sh="$ac_aux_dir/shtool install -c"
1352 break
1353 fi
1354 done
1355 if test -z "$ac_aux_dir"; then
1356 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1357 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1358 { (exit 1); exit 1; }; }
1359 fi
1360 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1361 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1362 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1363
1364 # Make sure we can run config.sub.
1365 $ac_config_sub sun4 >/dev/null 2>&1 ||
1366 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1367 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1368 { (exit 1); exit 1; }; }
1369
1370 echo "$as_me:$LINENO: checking build system type" >&5
1371 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1372 if test "${ac_cv_build+set}" = set; then
1373 echo $ECHO_N "(cached) $ECHO_C" >&6
1374 else
1375 ac_cv_build_alias=$build_alias
1376 test -z "$ac_cv_build_alias" &&
1377 ac_cv_build_alias=`$ac_config_guess`
1378 test -z "$ac_cv_build_alias" &&
1379 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1380 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1381 { (exit 1); exit 1; }; }
1382 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1383 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1384 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1385 { (exit 1); exit 1; }; }
1386
1387 fi
1388 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1389 echo "${ECHO_T}$ac_cv_build" >&6
1390 build=$ac_cv_build
1391 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1392 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1393 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1394
1395
1396 echo "$as_me:$LINENO: checking host system type" >&5
1397 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1398 if test "${ac_cv_host+set}" = set; then
1399 echo $ECHO_N "(cached) $ECHO_C" >&6
1400 else
1401 ac_cv_host_alias=$host_alias
1402 test -z "$ac_cv_host_alias" &&
1403 ac_cv_host_alias=$ac_cv_build_alias
1404 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1405 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1406 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1407 { (exit 1); exit 1; }; }
1408
1409 fi
1410 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1411 echo "${ECHO_T}$ac_cv_host" >&6
1412 host=$ac_cv_host
1413 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1414 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1415 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1416
1417
1418 echo "$as_me:$LINENO: checking target system type" >&5
1419 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1420 if test "${ac_cv_target+set}" = set; then
1421 echo $ECHO_N "(cached) $ECHO_C" >&6
1422 else
1423 ac_cv_target_alias=$target_alias
1424 test "x$ac_cv_target_alias" = "x" &&
1425 ac_cv_target_alias=$ac_cv_host_alias
1426 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1427 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1428 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1429 { (exit 1); exit 1; }; }
1430
1431 fi
1432 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1433 echo "${ECHO_T}$ac_cv_target" >&6
1434 target=$ac_cv_target
1435 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1436 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1437 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1438
1439
1440 # The aliases save the names the user supplied, while $host etc.
1441 # will get canonicalized.
1442 test -n "$target_alias" &&
1443 test "$program_prefix$program_suffix$program_transform_name" = \
1444 NONENONEs,x,x, &&
1445 program_prefix=${target_alias}-
1446 am__api_version="1.9"
1447 # Find a good install program. We prefer a C program (faster),
1448 # so one script is as good as another. But avoid the broken or
1449 # incompatible versions:
1450 # SysV /etc/install, /usr/sbin/install
1451 # SunOS /usr/etc/install
1452 # IRIX /sbin/install
1453 # AIX /bin/install
1454 # AmigaOS /C/install, which installs bootblocks on floppy discs
1455 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1456 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1457 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1458 # OS/2's system install, which has a completely different semantic
1459 # ./install, which can be erroneously created by make from ./install.sh.
1460 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1461 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1462 if test -z "$INSTALL"; then
1463 if test "${ac_cv_path_install+set}" = set; then
1464 echo $ECHO_N "(cached) $ECHO_C" >&6
1465 else
1466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1467 for as_dir in $PATH
1468 do
1469 IFS=$as_save_IFS
1470 test -z "$as_dir" && as_dir=.
1471 # Account for people who put trailing slashes in PATH elements.
1472 case $as_dir/ in
1473 ./ | .// | /cC/* | \
1474 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1475 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1476 /usr/ucb/* ) ;;
1477 *)
1478 # OSF1 and SCO ODT 3.0 have their own names for install.
1479 # Don't use installbsd from OSF since it installs stuff as root
1480 # by default.
1481 for ac_prog in ginstall scoinst install; do
1482 for ac_exec_ext in '' $ac_executable_extensions; do
1483 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1484 if test $ac_prog = install &&
1485 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1486 # AIX install. It has an incompatible calling convention.
1487 :
1488 elif test $ac_prog = install &&
1489 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1490 # program-specific install script used by HP pwplus--don't use.
1491 :
1492 else
1493 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1494 break 3
1495 fi
1496 fi
1497 done
1498 done
1499 ;;
1500 esac
1501 done
1502
1503
1504 fi
1505 if test "${ac_cv_path_install+set}" = set; then
1506 INSTALL=$ac_cv_path_install
1507 else
1508 # As a last resort, use the slow shell script. We don't cache a
1509 # path for INSTALL within a source directory, because that will
1510 # break other packages using the cache if that directory is
1511 # removed, or if the path is relative.
1512 INSTALL=$ac_install_sh
1513 fi
1514 fi
1515 echo "$as_me:$LINENO: result: $INSTALL" >&5
1516 echo "${ECHO_T}$INSTALL" >&6
1517
1518 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1519 # It thinks the first close brace ends the variable substitution.
1520 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1521
1522 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1523
1524 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1525
1526 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1527 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1528 # Just in case
1529 sleep 1
1530 echo timestamp > conftest.file
1531 # Do `set' in a subshell so we don't clobber the current shell's
1532 # arguments. Must try -L first in case configure is actually a
1533 # symlink; some systems play weird games with the mod time of symlinks
1534 # (eg FreeBSD returns the mod time of the symlink's containing
1535 # directory).
1536 if (
1537 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1538 if test "$*" = "X"; then
1539 # -L didn't work.
1540 set X `ls -t $srcdir/configure conftest.file`
1541 fi
1542 rm -f conftest.file
1543 if test "$*" != "X $srcdir/configure conftest.file" \
1544 && test "$*" != "X conftest.file $srcdir/configure"; then
1545
1546 # If neither matched, then we have a broken ls. This can happen
1547 # if, for instance, CONFIG_SHELL is bash and it inherits a
1548 # broken ls alias from the environment. This has actually
1549 # happened. Such a system could not be considered "sane".
1550 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1551 alias in your environment" >&5
1552 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1553 alias in your environment" >&2;}
1554 { (exit 1); exit 1; }; }
1555 fi
1556
1557 test "$2" = conftest.file
1558 )
1559 then
1560 # Ok.
1561 :
1562 else
1563 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1564 Check your system clock" >&5
1565 echo "$as_me: error: newly created file is older than distributed files!
1566 Check your system clock" >&2;}
1567 { (exit 1); exit 1; }; }
1568 fi
1569 echo "$as_me:$LINENO: result: yes" >&5
1570 echo "${ECHO_T}yes" >&6
1571 test "$program_prefix" != NONE &&
1572 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1573 # Use a double $ so make ignores it.
1574 test "$program_suffix" != NONE &&
1575 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1576 # Double any \ or $. echo might interpret backslashes.
1577 # By default was `s,x,x', remove it if useless.
1578 cat <<\_ACEOF >conftest.sed
1579 s/[\\$]/&&/g;s/;s,x,x,$//
1580 _ACEOF
1581 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1582 rm conftest.sed
1583
1584 # expand $ac_aux_dir to an absolute path
1585 am_aux_dir=`cd $ac_aux_dir && pwd`
1586
1587 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1588 # Use eval to expand $SHELL
1589 if eval "$MISSING --run true"; then
1590 am_missing_run="$MISSING --run "
1591 else
1592 am_missing_run=
1593 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1594 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1595 fi
1596
1597 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1598 # We used to keeping the `.' as first argument, in order to
1599 # allow $(mkdir_p) to be used without argument. As in
1600 # $(mkdir_p) $(somedir)
1601 # where $(somedir) is conditionally defined. However this is wrong
1602 # for two reasons:
1603 # 1. if the package is installed by a user who cannot write `.'
1604 # make install will fail,
1605 # 2. the above comment should most certainly read
1606 # $(mkdir_p) $(DESTDIR)$(somedir)
1607 # so it does not work when $(somedir) is undefined and
1608 # $(DESTDIR) is not.
1609 # To support the latter case, we have to write
1610 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1611 # so the `.' trick is pointless.
1612 mkdir_p='mkdir -p --'
1613 else
1614 # On NextStep and OpenStep, the `mkdir' command does not
1615 # recognize any option. It will interpret all options as
1616 # directories to create, and then abort because `.' already
1617 # exists.
1618 for d in ./-p ./--version;
1619 do
1620 test -d $d && rmdir $d
1621 done
1622 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1623 if test -f "$ac_aux_dir/mkinstalldirs"; then
1624 mkdir_p='$(mkinstalldirs)'
1625 else
1626 mkdir_p='$(install_sh) -d'
1627 fi
1628 fi
1629
1630 for ac_prog in gawk mawk nawk awk
1631 do
1632 # Extract the first word of "$ac_prog", so it can be a program name with args.
1633 set dummy $ac_prog; ac_word=$2
1634 echo "$as_me:$LINENO: checking for $ac_word" >&5
1635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1636 if test "${ac_cv_prog_AWK+set}" = set; then
1637 echo $ECHO_N "(cached) $ECHO_C" >&6
1638 else
1639 if test -n "$AWK"; then
1640 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1641 else
1642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1643 for as_dir in $PATH
1644 do
1645 IFS=$as_save_IFS
1646 test -z "$as_dir" && as_dir=.
1647 for ac_exec_ext in '' $ac_executable_extensions; do
1648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1649 ac_cv_prog_AWK="$ac_prog"
1650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1651 break 2
1652 fi
1653 done
1654 done
1655
1656 fi
1657 fi
1658 AWK=$ac_cv_prog_AWK
1659 if test -n "$AWK"; then
1660 echo "$as_me:$LINENO: result: $AWK" >&5
1661 echo "${ECHO_T}$AWK" >&6
1662 else
1663 echo "$as_me:$LINENO: result: no" >&5
1664 echo "${ECHO_T}no" >&6
1665 fi
1666
1667 test -n "$AWK" && break
1668 done
1669
1670 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1671 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1672 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1673 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1674 echo $ECHO_N "(cached) $ECHO_C" >&6
1675 else
1676 cat >conftest.make <<\_ACEOF
1677 all:
1678 @echo 'ac_maketemp="$(MAKE)"'
1679 _ACEOF
1680 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1681 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1682 if test -n "$ac_maketemp"; then
1683 eval ac_cv_prog_make_${ac_make}_set=yes
1684 else
1685 eval ac_cv_prog_make_${ac_make}_set=no
1686 fi
1687 rm -f conftest.make
1688 fi
1689 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1690 echo "$as_me:$LINENO: result: yes" >&5
1691 echo "${ECHO_T}yes" >&6
1692 SET_MAKE=
1693 else
1694 echo "$as_me:$LINENO: result: no" >&5
1695 echo "${ECHO_T}no" >&6
1696 SET_MAKE="MAKE=${MAKE-make}"
1697 fi
1698
1699 rm -rf .tst 2>/dev/null
1700 mkdir .tst 2>/dev/null
1701 if test -d .tst; then
1702 am__leading_dot=.
1703 else
1704 am__leading_dot=_
1705 fi
1706 rmdir .tst 2>/dev/null
1707
1708 # test to see if srcdir already configured
1709 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1710 test -f $srcdir/config.status; then
1711 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1712 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1713 { (exit 1); exit 1; }; }
1714 fi
1715
1716 # test whether we have cygpath
1717 if test -z "$CYGPATH_W"; then
1718 if (cygpath --version) >/dev/null 2>/dev/null; then
1719 CYGPATH_W='cygpath -w'
1720 else
1721 CYGPATH_W=echo
1722 fi
1723 fi
1724
1725
1726 # Define the identity of the package.
1727 PACKAGE='x3'
1728 VERSION='1.5'
1729
1730
1731 cat >>confdefs.h <<_ACEOF
1732 #define PACKAGE "$PACKAGE"
1733 _ACEOF
1734
1735
1736 cat >>confdefs.h <<_ACEOF
1737 #define VERSION "$VERSION"
1738 _ACEOF
1739
1740 # Some tools Automake needs.
1741
1742 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1743
1744
1745 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1746
1747
1748 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1749
1750
1751 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1752
1753
1754 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1755
1756 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1757
1758 # Installed binaries are usually stripped using `strip' when the user
1759 # run `make install-strip'. However `strip' might not be the right
1760 # tool to use in cross-compilation environments, therefore Automake
1761 # will honor the `STRIP' environment variable to overrule this program.
1762 if test "$cross_compiling" != no; then
1763 if test -n "$ac_tool_prefix"; then
1764 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1765 set dummy ${ac_tool_prefix}strip; ac_word=$2
1766 echo "$as_me:$LINENO: checking for $ac_word" >&5
1767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1768 if test "${ac_cv_prog_STRIP+set}" = set; then
1769 echo $ECHO_N "(cached) $ECHO_C" >&6
1770 else
1771 if test -n "$STRIP"; then
1772 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1773 else
1774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1775 for as_dir in $PATH
1776 do
1777 IFS=$as_save_IFS
1778 test -z "$as_dir" && as_dir=.
1779 for ac_exec_ext in '' $ac_executable_extensions; do
1780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1781 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1783 break 2
1784 fi
1785 done
1786 done
1787
1788 fi
1789 fi
1790 STRIP=$ac_cv_prog_STRIP
1791 if test -n "$STRIP"; then
1792 echo "$as_me:$LINENO: result: $STRIP" >&5
1793 echo "${ECHO_T}$STRIP" >&6
1794 else
1795 echo "$as_me:$LINENO: result: no" >&5
1796 echo "${ECHO_T}no" >&6
1797 fi
1798
1799 fi
1800 if test -z "$ac_cv_prog_STRIP"; then
1801 ac_ct_STRIP=$STRIP
1802 # Extract the first word of "strip", so it can be a program name with args.
1803 set dummy strip; ac_word=$2
1804 echo "$as_me:$LINENO: checking for $ac_word" >&5
1805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1806 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1807 echo $ECHO_N "(cached) $ECHO_C" >&6
1808 else
1809 if test -n "$ac_ct_STRIP"; then
1810 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1811 else
1812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1813 for as_dir in $PATH
1814 do
1815 IFS=$as_save_IFS
1816 test -z "$as_dir" && as_dir=.
1817 for ac_exec_ext in '' $ac_executable_extensions; do
1818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1819 ac_cv_prog_ac_ct_STRIP="strip"
1820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1821 break 2
1822 fi
1823 done
1824 done
1825
1826 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1827 fi
1828 fi
1829 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1830 if test -n "$ac_ct_STRIP"; then
1831 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1832 echo "${ECHO_T}$ac_ct_STRIP" >&6
1833 else
1834 echo "$as_me:$LINENO: result: no" >&5
1835 echo "${ECHO_T}no" >&6
1836 fi
1837
1838 STRIP=$ac_ct_STRIP
1839 else
1840 STRIP="$ac_cv_prog_STRIP"
1841 fi
1842
1843 fi
1844 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1845
1846 # We need awk for the "check" target. The system "awk" is bad on
1847 # some platforms.
1848 # Always define AMTAR for backward compatibility.
1849
1850 AMTAR=${AMTAR-"${am_missing_run}tar"}
1851
1852 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1853
1854
1855
1856
1857
1858 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1859 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1860 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1861 if test "${enable_maintainer_mode+set}" = set; then
1862 enableval="$enable_maintainer_mode"
1863 USE_MAINTAINER_MODE=$enableval
1864 else
1865 USE_MAINTAINER_MODE=no
1866 fi;
1867 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1868 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1869
1870
1871 if test $USE_MAINTAINER_MODE = yes; then
1872 MAINTAINER_MODE_TRUE=
1873 MAINTAINER_MODE_FALSE='#'
1874 else
1875 MAINTAINER_MODE_TRUE='#'
1876 MAINTAINER_MODE_FALSE=
1877 fi
1878
1879 MAINT=$MAINTAINER_MODE_TRUE
1880
1881
1882
1883 DEPDIR="${am__leading_dot}deps"
1884
1885 ac_config_commands="$ac_config_commands depfiles"
1886
1887
1888 am_make=${MAKE-make}
1889 cat > confinc << 'END'
1890 am__doit:
1891 @echo done
1892 .PHONY: am__doit
1893 END
1894 # If we don't find an include directive, just comment out the code.
1895 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1896 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1897 am__include="#"
1898 am__quote=
1899 _am_result=none
1900 # First try GNU make style include.
1901 echo "include confinc" > confmf
1902 # We grep out `Entering directory' and `Leaving directory'
1903 # messages which can occur if `w' ends up in MAKEFLAGS.
1904 # In particular we don't look at `^make:' because GNU make might
1905 # be invoked under some other name (usually "gmake"), in which
1906 # case it prints its new name instead of `make'.
1907 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1908 am__include=include
1909 am__quote=
1910 _am_result=GNU
1911 fi
1912 # Now try BSD make style include.
1913 if test "$am__include" = "#"; then
1914 echo '.include "confinc"' > confmf
1915 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1916 am__include=.include
1917 am__quote="\""
1918 _am_result=BSD
1919 fi
1920 fi
1921
1922
1923 echo "$as_me:$LINENO: result: $_am_result" >&5
1924 echo "${ECHO_T}$_am_result" >&6
1925 rm -f confinc confmf
1926
1927 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1928 if test "${enable_dependency_tracking+set}" = set; then
1929 enableval="$enable_dependency_tracking"
1930
1931 fi;
1932 if test "x$enable_dependency_tracking" != xno; then
1933 am_depcomp="$ac_aux_dir/depcomp"
1934 AMDEPBACKSLASH='\'
1935 fi
1936
1937
1938 if test "x$enable_dependency_tracking" != xno; then
1939 AMDEP_TRUE=
1940 AMDEP_FALSE='#'
1941 else
1942 AMDEP_TRUE='#'
1943 AMDEP_FALSE=
1944 fi
1945
1946
1947
1948 ac_ext=c
1949 ac_cpp='$CPP $CPPFLAGS'
1950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1953 if test -n "$ac_tool_prefix"; then
1954 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1955 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1956 echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958 if test "${ac_cv_prog_CC+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1960 else
1961 if test -n "$CC"; then
1962 ac_cv_prog_CC="$CC" # Let the user override the test.
1963 else
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 for as_dir in $PATH
1966 do
1967 IFS=$as_save_IFS
1968 test -z "$as_dir" && as_dir=.
1969 for ac_exec_ext in '' $ac_executable_extensions; do
1970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973 break 2
1974 fi
1975 done
1976 done
1977
1978 fi
1979 fi
1980 CC=$ac_cv_prog_CC
1981 if test -n "$CC"; then
1982 echo "$as_me:$LINENO: result: $CC" >&5
1983 echo "${ECHO_T}$CC" >&6
1984 else
1985 echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6
1987 fi
1988
1989 fi
1990 if test -z "$ac_cv_prog_CC"; then
1991 ac_ct_CC=$CC
1992 # Extract the first word of "gcc", so it can be a program name with args.
1993 set dummy gcc; ac_word=$2
1994 echo "$as_me:$LINENO: checking for $ac_word" >&5
1995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1996 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1997 echo $ECHO_N "(cached) $ECHO_C" >&6
1998 else
1999 if test -n "$ac_ct_CC"; then
2000 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2001 else
2002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003 for as_dir in $PATH
2004 do
2005 IFS=$as_save_IFS
2006 test -z "$as_dir" && as_dir=.
2007 for ac_exec_ext in '' $ac_executable_extensions; do
2008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2009 ac_cv_prog_ac_ct_CC="gcc"
2010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2011 break 2
2012 fi
2013 done
2014 done
2015
2016 fi
2017 fi
2018 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2019 if test -n "$ac_ct_CC"; then
2020 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2021 echo "${ECHO_T}$ac_ct_CC" >&6
2022 else
2023 echo "$as_me:$LINENO: result: no" >&5
2024 echo "${ECHO_T}no" >&6
2025 fi
2026
2027 CC=$ac_ct_CC
2028 else
2029 CC="$ac_cv_prog_CC"
2030 fi
2031
2032 if test -z "$CC"; then
2033 if test -n "$ac_tool_prefix"; then
2034 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2035 set dummy ${ac_tool_prefix}cc; ac_word=$2
2036 echo "$as_me:$LINENO: checking for $ac_word" >&5
2037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2038 if test "${ac_cv_prog_CC+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2040 else
2041 if test -n "$CC"; then
2042 ac_cv_prog_CC="$CC" # Let the user override the test.
2043 else
2044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045 for as_dir in $PATH
2046 do
2047 IFS=$as_save_IFS
2048 test -z "$as_dir" && as_dir=.
2049 for ac_exec_ext in '' $ac_executable_extensions; do
2050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2051 ac_cv_prog_CC="${ac_tool_prefix}cc"
2052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053 break 2
2054 fi
2055 done
2056 done
2057
2058 fi
2059 fi
2060 CC=$ac_cv_prog_CC
2061 if test -n "$CC"; then
2062 echo "$as_me:$LINENO: result: $CC" >&5
2063 echo "${ECHO_T}$CC" >&6
2064 else
2065 echo "$as_me:$LINENO: result: no" >&5
2066 echo "${ECHO_T}no" >&6
2067 fi
2068
2069 fi
2070 if test -z "$ac_cv_prog_CC"; then
2071 ac_ct_CC=$CC
2072 # Extract the first word of "cc", so it can be a program name with args.
2073 set dummy cc; ac_word=$2
2074 echo "$as_me:$LINENO: checking for $ac_word" >&5
2075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2076 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2077 echo $ECHO_N "(cached) $ECHO_C" >&6
2078 else
2079 if test -n "$ac_ct_CC"; then
2080 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2081 else
2082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2083 for as_dir in $PATH
2084 do
2085 IFS=$as_save_IFS
2086 test -z "$as_dir" && as_dir=.
2087 for ac_exec_ext in '' $ac_executable_extensions; do
2088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2089 ac_cv_prog_ac_ct_CC="cc"
2090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2091 break 2
2092 fi
2093 done
2094 done
2095
2096 fi
2097 fi
2098 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2099 if test -n "$ac_ct_CC"; then
2100 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2101 echo "${ECHO_T}$ac_ct_CC" >&6
2102 else
2103 echo "$as_me:$LINENO: result: no" >&5
2104 echo "${ECHO_T}no" >&6
2105 fi
2106
2107 CC=$ac_ct_CC
2108 else
2109 CC="$ac_cv_prog_CC"
2110 fi
2111
2112 fi
2113 if test -z "$CC"; then
2114 # Extract the first word of "cc", so it can be a program name with args.
2115 set dummy cc; ac_word=$2
2116 echo "$as_me:$LINENO: checking for $ac_word" >&5
2117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2118 if test "${ac_cv_prog_CC+set}" = set; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
2120 else
2121 if test -n "$CC"; then
2122 ac_cv_prog_CC="$CC" # Let the user override the test.
2123 else
2124 ac_prog_rejected=no
2125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2126 for as_dir in $PATH
2127 do
2128 IFS=$as_save_IFS
2129 test -z "$as_dir" && as_dir=.
2130 for ac_exec_ext in '' $ac_executable_extensions; do
2131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2132 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2133 ac_prog_rejected=yes
2134 continue
2135 fi
2136 ac_cv_prog_CC="cc"
2137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2138 break 2
2139 fi
2140 done
2141 done
2142
2143 if test $ac_prog_rejected = yes; then
2144 # We found a bogon in the path, so make sure we never use it.
2145 set dummy $ac_cv_prog_CC
2146 shift
2147 if test $# != 0; then
2148 # We chose a different compiler from the bogus one.
2149 # However, it has the same basename, so the bogon will be chosen
2150 # first if we set CC to just the basename; use the full file name.
2151 shift
2152 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2153 fi
2154 fi
2155 fi
2156 fi
2157 CC=$ac_cv_prog_CC
2158 if test -n "$CC"; then
2159 echo "$as_me:$LINENO: result: $CC" >&5
2160 echo "${ECHO_T}$CC" >&6
2161 else
2162 echo "$as_me:$LINENO: result: no" >&5
2163 echo "${ECHO_T}no" >&6
2164 fi
2165
2166 fi
2167 if test -z "$CC"; then
2168 if test -n "$ac_tool_prefix"; then
2169 for ac_prog in cl
2170 do
2171 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2172 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2173 echo "$as_me:$LINENO: checking for $ac_word" >&5
2174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2175 if test "${ac_cv_prog_CC+set}" = set; then
2176 echo $ECHO_N "(cached) $ECHO_C" >&6
2177 else
2178 if test -n "$CC"; then
2179 ac_cv_prog_CC="$CC" # Let the user override the test.
2180 else
2181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2182 for as_dir in $PATH
2183 do
2184 IFS=$as_save_IFS
2185 test -z "$as_dir" && as_dir=.
2186 for ac_exec_ext in '' $ac_executable_extensions; do
2187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2188 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2190 break 2
2191 fi
2192 done
2193 done
2194
2195 fi
2196 fi
2197 CC=$ac_cv_prog_CC
2198 if test -n "$CC"; then
2199 echo "$as_me:$LINENO: result: $CC" >&5
2200 echo "${ECHO_T}$CC" >&6
2201 else
2202 echo "$as_me:$LINENO: result: no" >&5
2203 echo "${ECHO_T}no" >&6
2204 fi
2205
2206 test -n "$CC" && break
2207 done
2208 fi
2209 if test -z "$CC"; then
2210 ac_ct_CC=$CC
2211 for ac_prog in cl
2212 do
2213 # Extract the first word of "$ac_prog", so it can be a program name with args.
2214 set dummy $ac_prog; ac_word=$2
2215 echo "$as_me:$LINENO: checking for $ac_word" >&5
2216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2217 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2218 echo $ECHO_N "(cached) $ECHO_C" >&6
2219 else
2220 if test -n "$ac_ct_CC"; then
2221 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2222 else
2223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2224 for as_dir in $PATH
2225 do
2226 IFS=$as_save_IFS
2227 test -z "$as_dir" && as_dir=.
2228 for ac_exec_ext in '' $ac_executable_extensions; do
2229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2230 ac_cv_prog_ac_ct_CC="$ac_prog"
2231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2232 break 2
2233 fi
2234 done
2235 done
2236
2237 fi
2238 fi
2239 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2240 if test -n "$ac_ct_CC"; then
2241 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2242 echo "${ECHO_T}$ac_ct_CC" >&6
2243 else
2244 echo "$as_me:$LINENO: result: no" >&5
2245 echo "${ECHO_T}no" >&6
2246 fi
2247
2248 test -n "$ac_ct_CC" && break
2249 done
2250
2251 CC=$ac_ct_CC
2252 fi
2253
2254 fi
2255
2256
2257 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2258 See \`config.log' for more details." >&5
2259 echo "$as_me: error: no acceptable C compiler found in \$PATH
2260 See \`config.log' for more details." >&2;}
2261 { (exit 1); exit 1; }; }
2262
2263 # Provide some information about the compiler.
2264 echo "$as_me:$LINENO:" \
2265 "checking for C compiler version" >&5
2266 ac_compiler=`set X $ac_compile; echo $2`
2267 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2268 (eval $ac_compiler --version </dev/null >&5) 2>&5
2269 ac_status=$?
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }
2272 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2273 (eval $ac_compiler -v </dev/null >&5) 2>&5
2274 ac_status=$?
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }
2277 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2278 (eval $ac_compiler -V </dev/null >&5) 2>&5
2279 ac_status=$?
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); }
2282
2283 cat >conftest.$ac_ext <<_ACEOF
2284 /* confdefs.h. */
2285 _ACEOF
2286 cat confdefs.h >>conftest.$ac_ext
2287 cat >>conftest.$ac_ext <<_ACEOF
2288 /* end confdefs.h. */
2289
2290 int
2291 main ()
2292 {
2293
2294 ;
2295 return 0;
2296 }
2297 _ACEOF
2298 ac_clean_files_save=$ac_clean_files
2299 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2300 # Try to create an executable without -o first, disregard a.out.
2301 # It will help us diagnose broken compilers, and finding out an intuition
2302 # of exeext.
2303 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2304 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2305 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2306 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2307 (eval $ac_link_default) 2>&5
2308 ac_status=$?
2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); }; then
2311 # Find the output, starting from the most likely. This scheme is
2312 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2313 # resort.
2314
2315 # Be careful to initialize this variable, since it used to be cached.
2316 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2317 ac_cv_exeext=
2318 # b.out is created by i960 compilers.
2319 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2320 do
2321 test -f "$ac_file" || continue
2322 case $ac_file in
2323 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2324 ;;
2325 conftest.$ac_ext )
2326 # This is the source file.
2327 ;;
2328 [ab].out )
2329 # We found the default executable, but exeext='' is most
2330 # certainly right.
2331 break;;
2332 *.* )
2333 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2334 # FIXME: I believe we export ac_cv_exeext for Libtool,
2335 # but it would be cool to find out if it's true. Does anybody
2336 # maintain Libtool? --akim.
2337 export ac_cv_exeext
2338 break;;
2339 * )
2340 break;;
2341 esac
2342 done
2343 else
2344 echo "$as_me: failed program was:" >&5
2345 sed 's/^/| /' conftest.$ac_ext >&5
2346
2347 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2348 See \`config.log' for more details." >&5
2349 echo "$as_me: error: C compiler cannot create executables
2350 See \`config.log' for more details." >&2;}
2351 { (exit 77); exit 77; }; }
2352 fi
2353
2354 ac_exeext=$ac_cv_exeext
2355 echo "$as_me:$LINENO: result: $ac_file" >&5
2356 echo "${ECHO_T}$ac_file" >&6
2357
2358 # Check the compiler produces executables we can run. If not, either
2359 # the compiler is broken, or we cross compile.
2360 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2361 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2362 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2363 # If not cross compiling, check that we can run a simple program.
2364 if test "$cross_compiling" != yes; then
2365 if { ac_try='./$ac_file'
2366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2367 (eval $ac_try) 2>&5
2368 ac_status=$?
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }; }; then
2371 cross_compiling=no
2372 else
2373 if test "$cross_compiling" = maybe; then
2374 cross_compiling=yes
2375 else
2376 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2377 If you meant to cross compile, use \`--host'.
2378 See \`config.log' for more details." >&5
2379 echo "$as_me: error: cannot run C compiled programs.
2380 If you meant to cross compile, use \`--host'.
2381 See \`config.log' for more details." >&2;}
2382 { (exit 1); exit 1; }; }
2383 fi
2384 fi
2385 fi
2386 echo "$as_me:$LINENO: result: yes" >&5
2387 echo "${ECHO_T}yes" >&6
2388
2389 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2390 ac_clean_files=$ac_clean_files_save
2391 # Check the compiler produces executables we can run. If not, either
2392 # the compiler is broken, or we cross compile.
2393 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2394 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2395 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2396 echo "${ECHO_T}$cross_compiling" >&6
2397
2398 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2399 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2401 (eval $ac_link) 2>&5
2402 ac_status=$?
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; then
2405 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2406 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2407 # work properly (i.e., refer to `conftest.exe'), while it won't with
2408 # `rm'.
2409 for ac_file in conftest.exe conftest conftest.*; do
2410 test -f "$ac_file" || continue
2411 case $ac_file in
2412 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2413 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2414 export ac_cv_exeext
2415 break;;
2416 * ) break;;
2417 esac
2418 done
2419 else
2420 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2421 See \`config.log' for more details." >&5
2422 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2423 See \`config.log' for more details." >&2;}
2424 { (exit 1); exit 1; }; }
2425 fi
2426
2427 rm -f conftest$ac_cv_exeext
2428 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2429 echo "${ECHO_T}$ac_cv_exeext" >&6
2430
2431 rm -f conftest.$ac_ext
2432 EXEEXT=$ac_cv_exeext
2433 ac_exeext=$EXEEXT
2434 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2435 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2436 if test "${ac_cv_objext+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 else
2439 cat >conftest.$ac_ext <<_ACEOF
2440 /* confdefs.h. */
2441 _ACEOF
2442 cat confdefs.h >>conftest.$ac_ext
2443 cat >>conftest.$ac_ext <<_ACEOF
2444 /* end confdefs.h. */
2445
2446 int
2447 main ()
2448 {
2449
2450 ;
2451 return 0;
2452 }
2453 _ACEOF
2454 rm -f conftest.o conftest.obj
2455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2456 (eval $ac_compile) 2>&5
2457 ac_status=$?
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; then
2460 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2461 case $ac_file in
2462 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2463 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2464 break;;
2465 esac
2466 done
2467 else
2468 echo "$as_me: failed program was:" >&5
2469 sed 's/^/| /' conftest.$ac_ext >&5
2470
2471 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2472 See \`config.log' for more details." >&5
2473 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2474 See \`config.log' for more details." >&2;}
2475 { (exit 1); exit 1; }; }
2476 fi
2477
2478 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2479 fi
2480 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2481 echo "${ECHO_T}$ac_cv_objext" >&6
2482 OBJEXT=$ac_cv_objext
2483 ac_objext=$OBJEXT
2484 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2485 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2486 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2487 echo $ECHO_N "(cached) $ECHO_C" >&6
2488 else
2489 cat >conftest.$ac_ext <<_ACEOF
2490 /* confdefs.h. */
2491 _ACEOF
2492 cat confdefs.h >>conftest.$ac_ext
2493 cat >>conftest.$ac_ext <<_ACEOF
2494 /* end confdefs.h. */
2495
2496 int
2497 main ()
2498 {
2499 #ifndef __GNUC__
2500 choke me
2501 #endif
2502
2503 ;
2504 return 0;
2505 }
2506 _ACEOF
2507 rm -f conftest.$ac_objext
2508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2509 (eval $ac_compile) 2>conftest.er1
2510 ac_status=$?
2511 grep -v '^ *+' conftest.er1 >conftest.err
2512 rm -f conftest.er1
2513 cat conftest.err >&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); } &&
2516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518 (eval $ac_try) 2>&5
2519 ac_status=$?
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; } &&
2522 { ac_try='test -s conftest.$ac_objext'
2523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2524 (eval $ac_try) 2>&5
2525 ac_status=$?
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; }; then
2528 ac_compiler_gnu=yes
2529 else
2530 echo "$as_me: failed program was:" >&5
2531 sed 's/^/| /' conftest.$ac_ext >&5
2532
2533 ac_compiler_gnu=no
2534 fi
2535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2536 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2537
2538 fi
2539 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2540 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2541 GCC=`test $ac_compiler_gnu = yes && echo yes`
2542 ac_test_CFLAGS=${CFLAGS+set}
2543 ac_save_CFLAGS=$CFLAGS
2544 CFLAGS="-g"
2545 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2546 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2547 if test "${ac_cv_prog_cc_g+set}" = set; then
2548 echo $ECHO_N "(cached) $ECHO_C" >&6
2549 else
2550 cat >conftest.$ac_ext <<_ACEOF
2551 /* confdefs.h. */
2552 _ACEOF
2553 cat confdefs.h >>conftest.$ac_ext
2554 cat >>conftest.$ac_ext <<_ACEOF
2555 /* end confdefs.h. */
2556
2557 int
2558 main ()
2559 {
2560
2561 ;
2562 return 0;
2563 }
2564 _ACEOF
2565 rm -f conftest.$ac_objext
2566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2567 (eval $ac_compile) 2>conftest.er1
2568 ac_status=$?
2569 grep -v '^ *+' conftest.er1 >conftest.err
2570 rm -f conftest.er1
2571 cat conftest.err >&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); } &&
2574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2576 (eval $ac_try) 2>&5
2577 ac_status=$?
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); }; } &&
2580 { ac_try='test -s conftest.$ac_objext'
2581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582 (eval $ac_try) 2>&5
2583 ac_status=$?
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; }; then
2586 ac_cv_prog_cc_g=yes
2587 else
2588 echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2590
2591 ac_cv_prog_cc_g=no
2592 fi
2593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2594 fi
2595 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2596 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2597 if test "$ac_test_CFLAGS" = set; then
2598 CFLAGS=$ac_save_CFLAGS
2599 elif test $ac_cv_prog_cc_g = yes; then
2600 if test "$GCC" = yes; then
2601 CFLAGS="-g -O2"
2602 else
2603 CFLAGS="-g"
2604 fi
2605 else
2606 if test "$GCC" = yes; then
2607 CFLAGS="-O2"
2608 else
2609 CFLAGS=
2610 fi
2611 fi
2612 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2613 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2614 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2615 echo $ECHO_N "(cached) $ECHO_C" >&6
2616 else
2617 ac_cv_prog_cc_stdc=no
2618 ac_save_CC=$CC
2619 cat >conftest.$ac_ext <<_ACEOF
2620 /* confdefs.h. */
2621 _ACEOF
2622 cat confdefs.h >>conftest.$ac_ext
2623 cat >>conftest.$ac_ext <<_ACEOF
2624 /* end confdefs.h. */
2625 #include <stdarg.h>
2626 #include <stdio.h>
2627 #include <sys/types.h>
2628 #include <sys/stat.h>
2629 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2630 struct buf { int x; };
2631 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2632 static char *e (p, i)
2633 char **p;
2634 int i;
2635 {
2636 return p[i];
2637 }
2638 static char *f (char * (*g) (char **, int), char **p, ...)
2639 {
2640 char *s;
2641 va_list v;
2642 va_start (v,p);
2643 s = g (p, va_arg (v,int));
2644 va_end (v);
2645 return s;
2646 }
2647
2648 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2649 function prototypes and stuff, but not '\xHH' hex character constants.
2650 These don't provoke an error unfortunately, instead are silently treated
2651 as 'x'. The following induces an error, until -std1 is added to get
2652 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2653 array size at least. It's necessary to write '\x00'==0 to get something
2654 that's true only with -std1. */
2655 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2656
2657 int test (int i, double x);
2658 struct s1 {int (*f) (int a);};
2659 struct s2 {int (*f) (double a);};
2660 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2661 int argc;
2662 char **argv;
2663 int
2664 main ()
2665 {
2666 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2667 ;
2668 return 0;
2669 }
2670 _ACEOF
2671 # Don't try gcc -ansi; that turns off useful extensions and
2672 # breaks some systems' header files.
2673 # AIX -qlanglvl=ansi
2674 # Ultrix and OSF/1 -std1
2675 # HP-UX 10.20 and later -Ae
2676 # HP-UX older versions -Aa -D_HPUX_SOURCE
2677 # SVR4 -Xc -D__EXTENSIONS__
2678 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2679 do
2680 CC="$ac_save_CC $ac_arg"
2681 rm -f conftest.$ac_objext
2682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2683 (eval $ac_compile) 2>conftest.er1
2684 ac_status=$?
2685 grep -v '^ *+' conftest.er1 >conftest.err
2686 rm -f conftest.er1
2687 cat conftest.err >&5
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); } &&
2690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692 (eval $ac_try) 2>&5
2693 ac_status=$?
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }; } &&
2696 { ac_try='test -s conftest.$ac_objext'
2697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698 (eval $ac_try) 2>&5
2699 ac_status=$?
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); }; }; then
2702 ac_cv_prog_cc_stdc=$ac_arg
2703 break
2704 else
2705 echo "$as_me: failed program was:" >&5
2706 sed 's/^/| /' conftest.$ac_ext >&5
2707
2708 fi
2709 rm -f conftest.err conftest.$ac_objext
2710 done
2711 rm -f conftest.$ac_ext conftest.$ac_objext
2712 CC=$ac_save_CC
2713
2714 fi
2715
2716 case "x$ac_cv_prog_cc_stdc" in
2717 x|xno)
2718 echo "$as_me:$LINENO: result: none needed" >&5
2719 echo "${ECHO_T}none needed" >&6 ;;
2720 *)
2721 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2722 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2723 CC="$CC $ac_cv_prog_cc_stdc" ;;
2724 esac
2725
2726 # Some people use a C++ compiler to compile C. Since we use `exit',
2727 # in C++ we need to declare it. In case someone uses the same compiler
2728 # for both compiling C and C++ we need to have the C++ compiler decide
2729 # the declaration of exit, since it's the most demanding environment.
2730 cat >conftest.$ac_ext <<_ACEOF
2731 #ifndef __cplusplus
2732 choke me
2733 #endif
2734 _ACEOF
2735 rm -f conftest.$ac_objext
2736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2737 (eval $ac_compile) 2>conftest.er1
2738 ac_status=$?
2739 grep -v '^ *+' conftest.er1 >conftest.err
2740 rm -f conftest.er1
2741 cat conftest.err >&5
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); } &&
2744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746 (eval $ac_try) 2>&5
2747 ac_status=$?
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }; } &&
2750 { ac_try='test -s conftest.$ac_objext'
2751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752 (eval $ac_try) 2>&5
2753 ac_status=$?
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }; }; then
2756 for ac_declaration in \
2757 '' \
2758 'extern "C" void std::exit (int) throw (); using std::exit;' \
2759 'extern "C" void std::exit (int); using std::exit;' \
2760 'extern "C" void exit (int) throw ();' \
2761 'extern "C" void exit (int);' \
2762 'void exit (int);'
2763 do
2764 cat >conftest.$ac_ext <<_ACEOF
2765 /* confdefs.h. */
2766 _ACEOF
2767 cat confdefs.h >>conftest.$ac_ext
2768 cat >>conftest.$ac_ext <<_ACEOF
2769 /* end confdefs.h. */
2770 $ac_declaration
2771 #include <stdlib.h>
2772 int
2773 main ()
2774 {
2775 exit (42);
2776 ;
2777 return 0;
2778 }
2779 _ACEOF
2780 rm -f conftest.$ac_objext
2781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2782 (eval $ac_compile) 2>conftest.er1
2783 ac_status=$?
2784 grep -v '^ *+' conftest.er1 >conftest.err
2785 rm -f conftest.er1
2786 cat conftest.err >&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); } &&
2789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 (eval $ac_try) 2>&5
2792 ac_status=$?
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; } &&
2795 { ac_try='test -s conftest.$ac_objext'
2796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 (eval $ac_try) 2>&5
2798 ac_status=$?
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; }; then
2801 :
2802 else
2803 echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.$ac_ext >&5
2805
2806 continue
2807 fi
2808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2809 cat >conftest.$ac_ext <<_ACEOF
2810 /* confdefs.h. */
2811 _ACEOF
2812 cat confdefs.h >>conftest.$ac_ext
2813 cat >>conftest.$ac_ext <<_ACEOF
2814 /* end confdefs.h. */
2815 $ac_declaration
2816 int
2817 main ()
2818 {
2819 exit (42);
2820 ;
2821 return 0;
2822 }
2823 _ACEOF
2824 rm -f conftest.$ac_objext
2825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2826 (eval $ac_compile) 2>conftest.er1
2827 ac_status=$?
2828 grep -v '^ *+' conftest.er1 >conftest.err
2829 rm -f conftest.er1
2830 cat conftest.err >&5
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); } &&
2833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835 (eval $ac_try) 2>&5
2836 ac_status=$?
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); }; } &&
2839 { ac_try='test -s conftest.$ac_objext'
2840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841 (eval $ac_try) 2>&5
2842 ac_status=$?
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); }; }; then
2845 break
2846 else
2847 echo "$as_me: failed program was:" >&5
2848 sed 's/^/| /' conftest.$ac_ext >&5
2849
2850 fi
2851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2852 done
2853 rm -f conftest*
2854 if test -n "$ac_declaration"; then
2855 echo '#ifdef __cplusplus' >>confdefs.h
2856 echo $ac_declaration >>confdefs.h
2857 echo '#endif' >>confdefs.h
2858 fi
2859
2860 else
2861 echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2863
2864 fi
2865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2866 ac_ext=c
2867 ac_cpp='$CPP $CPPFLAGS'
2868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2871
2872 depcc="$CC" am_compiler_list=
2873
2874 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2875 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2876 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2877 echo $ECHO_N "(cached) $ECHO_C" >&6
2878 else
2879 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2880 # We make a subdir and do the tests there. Otherwise we can end up
2881 # making bogus files that we don't know about and never remove. For
2882 # instance it was reported that on HP-UX the gcc test will end up
2883 # making a dummy file named `D' -- because `-MD' means `put the output
2884 # in D'.
2885 mkdir conftest.dir
2886 # Copy depcomp to subdir because otherwise we won't find it if we're
2887 # using a relative directory.
2888 cp "$am_depcomp" conftest.dir
2889 cd conftest.dir
2890 # We will build objects and dependencies in a subdirectory because
2891 # it helps to detect inapplicable dependency modes. For instance
2892 # both Tru64's cc and ICC support -MD to output dependencies as a
2893 # side effect of compilation, but ICC will put the dependencies in
2894 # the current directory while Tru64 will put them in the object
2895 # directory.
2896 mkdir sub
2897
2898 am_cv_CC_dependencies_compiler_type=none
2899 if test "$am_compiler_list" = ""; then
2900 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2901 fi
2902 for depmode in $am_compiler_list; do
2903 # Setup a source with many dependencies, because some compilers
2904 # like to wrap large dependency lists on column 80 (with \), and
2905 # we should not choose a depcomp mode which is confused by this.
2906 #
2907 # We need to recreate these files for each test, as the compiler may
2908 # overwrite some of them when testing with obscure command lines.
2909 # This happens at least with the AIX C compiler.
2910 : > sub/conftest.c
2911 for i in 1 2 3 4 5 6; do
2912 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2913 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2914 # Solaris 8's {/usr,}/bin/sh.
2915 touch sub/conftst$i.h
2916 done
2917 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2918
2919 case $depmode in
2920 nosideeffect)
2921 # after this tag, mechanisms are not by side-effect, so they'll
2922 # only be used when explicitly requested
2923 if test "x$enable_dependency_tracking" = xyes; then
2924 continue
2925 else
2926 break
2927 fi
2928 ;;
2929 none) break ;;
2930 esac
2931 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2932 # mode. It turns out that the SunPro C++ compiler does not properly
2933 # handle `-M -o', and we need to detect this.
2934 if depmode=$depmode \
2935 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2936 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2937 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2938 >/dev/null 2>conftest.err &&
2939 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2940 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2941 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2942 # icc doesn't choke on unknown options, it will just issue warnings
2943 # or remarks (even with -Werror). So we grep stderr for any message
2944 # that says an option was ignored or not supported.
2945 # When given -MP, icc 7.0 and 7.1 complain thusly:
2946 # icc: Command line warning: ignoring option '-M'; no argument required
2947 # The diagnosis changed in icc 8.0:
2948 # icc: Command line remark: option '-MP' not supported
2949 if (grep 'ignoring option' conftest.err ||
2950 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2951 am_cv_CC_dependencies_compiler_type=$depmode
2952 break
2953 fi
2954 fi
2955 done
2956
2957 cd ..
2958 rm -rf conftest.dir
2959 else
2960 am_cv_CC_dependencies_compiler_type=none
2961 fi
2962
2963 fi
2964 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2965 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2966 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2967
2968
2969
2970 if
2971 test "x$enable_dependency_tracking" != xno \
2972 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2973 am__fastdepCC_TRUE=
2974 am__fastdepCC_FALSE='#'
2975 else
2976 am__fastdepCC_TRUE='#'
2977 am__fastdepCC_FALSE=
2978 fi
2979
2980
2981
2982 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
2983 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
2984 if test "${ac_cv_type_signal+set}" = set; then
2985 echo $ECHO_N "(cached) $ECHO_C" >&6
2986 else
2987 cat >conftest.$ac_ext <<_ACEOF
2988 /* confdefs.h. */
2989 _ACEOF
2990 cat confdefs.h >>conftest.$ac_ext
2991 cat >>conftest.$ac_ext <<_ACEOF
2992 /* end confdefs.h. */
2993 #include <sys/types.h>
2994 #include <signal.h>
2995 #ifdef signal
2996 # undef signal
2997 #endif
2998 #ifdef __cplusplus
2999 extern "C" void (*signal (int, void (*)(int)))(int);
3000 #else
3001 void (*signal ()) ();
3002 #endif
3003
3004 int
3005 main ()
3006 {
3007 int i;
3008 ;
3009 return 0;
3010 }
3011 _ACEOF
3012 rm -f conftest.$ac_objext
3013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3014 (eval $ac_compile) 2>conftest.er1
3015 ac_status=$?
3016 grep -v '^ *+' conftest.er1 >conftest.err
3017 rm -f conftest.er1
3018 cat conftest.err >&5
3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 (exit $ac_status); } &&
3021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3023 (eval $ac_try) 2>&5
3024 ac_status=$?
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); }; } &&
3027 { ac_try='test -s conftest.$ac_objext'
3028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3029 (eval $ac_try) 2>&5
3030 ac_status=$?
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; }; then
3033 ac_cv_type_signal=void
3034 else
3035 echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.$ac_ext >&5
3037
3038 ac_cv_type_signal=int
3039 fi
3040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3041 fi
3042 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3043 echo "${ECHO_T}$ac_cv_type_signal" >&6
3044
3045 cat >>confdefs.h <<_ACEOF
3046 #define RETSIGTYPE $ac_cv_type_signal
3047 _ACEOF
3048
3049
3050 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3051 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3052 if test "${ac_cv_c_const+set}" = set; then
3053 echo $ECHO_N "(cached) $ECHO_C" >&6
3054 else
3055 cat >conftest.$ac_ext <<_ACEOF
3056 /* confdefs.h. */
3057 _ACEOF
3058 cat confdefs.h >>conftest.$ac_ext
3059 cat >>conftest.$ac_ext <<_ACEOF
3060 /* end confdefs.h. */
3061
3062 int
3063 main ()
3064 {
3065 /* FIXME: Include the comments suggested by Paul. */
3066 #ifndef __cplusplus
3067 /* Ultrix mips cc rejects this. */
3068 typedef int charset[2];
3069 const charset x;
3070 /* SunOS 4.1.1 cc rejects this. */
3071 char const *const *ccp;
3072 char **p;
3073 /* NEC SVR4.0.2 mips cc rejects this. */
3074 struct point {int x, y;};
3075 static struct point const zero = {0,0};
3076 /* AIX XL C 1.02.0.0 rejects this.
3077 It does not let you subtract one const X* pointer from another in
3078 an arm of an if-expression whose if-part is not a constant
3079 expression */
3080 const char *g = "string";
3081 ccp = &g + (g ? g-g : 0);
3082 /* HPUX 7.0 cc rejects these. */
3083 ++ccp;
3084 p = (char**) ccp;
3085 ccp = (char const *const *) p;
3086 { /* SCO 3.2v4 cc rejects this. */
3087 char *t;
3088 char const *s = 0 ? (char *) 0 : (char const *) 0;
3089
3090 *t++ = 0;
3091 }
3092 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3093 int x[] = {25, 17};
3094 const int *foo = &x[0];
3095 ++foo;
3096 }
3097 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3098 typedef const int *iptr;
3099 iptr p = 0;
3100 ++p;
3101 }
3102 { /* AIX XL C 1.02.0.0 rejects this saying
3103 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3104 struct s { int j; const int *ap[3]; };
3105 struct s *b; b->j = 5;
3106 }
3107 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3108 const int foo = 10;
3109 }
3110 #endif
3111
3112 ;
3113 return 0;
3114 }
3115 _ACEOF
3116 rm -f conftest.$ac_objext
3117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3118 (eval $ac_compile) 2>conftest.er1
3119 ac_status=$?
3120 grep -v '^ *+' conftest.er1 >conftest.err
3121 rm -f conftest.er1
3122 cat conftest.err >&5
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); } &&
3125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3127 (eval $ac_try) 2>&5
3128 ac_status=$?
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); }; } &&
3131 { ac_try='test -s conftest.$ac_objext'
3132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3133 (eval $ac_try) 2>&5
3134 ac_status=$?
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }; }; then
3137 ac_cv_c_const=yes
3138 else
3139 echo "$as_me: failed program was:" >&5
3140 sed 's/^/| /' conftest.$ac_ext >&5
3141
3142 ac_cv_c_const=no
3143 fi
3144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3145 fi
3146 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3147 echo "${ECHO_T}$ac_cv_c_const" >&6
3148 if test $ac_cv_c_const = no; then
3149
3150 cat >>confdefs.h <<\_ACEOF
3151 #define const
3152 _ACEOF
3153
3154 fi
3155
3156 echo "$as_me:$LINENO: checking for inline" >&5
3157 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3158 if test "${ac_cv_c_inline+set}" = set; then
3159 echo $ECHO_N "(cached) $ECHO_C" >&6
3160 else
3161 ac_cv_c_inline=no
3162 for ac_kw in inline __inline__ __inline; do
3163 cat >conftest.$ac_ext <<_ACEOF
3164 /* confdefs.h. */
3165 _ACEOF
3166 cat confdefs.h >>conftest.$ac_ext
3167 cat >>conftest.$ac_ext <<_ACEOF
3168 /* end confdefs.h. */
3169 #ifndef __cplusplus
3170 typedef int foo_t;
3171 static $ac_kw foo_t static_foo () {return 0; }
3172 $ac_kw foo_t foo () {return 0; }
3173 #endif
3174
3175 _ACEOF
3176 rm -f conftest.$ac_objext
3177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3178 (eval $ac_compile) 2>conftest.er1
3179 ac_status=$?
3180 grep -v '^ *+' conftest.er1 >conftest.err
3181 rm -f conftest.er1
3182 cat conftest.err >&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); } &&
3185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3187 (eval $ac_try) 2>&5
3188 ac_status=$?
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }; } &&
3191 { ac_try='test -s conftest.$ac_objext'
3192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3193 (eval $ac_try) 2>&5
3194 ac_status=$?
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; }; then
3197 ac_cv_c_inline=$ac_kw; break
3198 else
3199 echo "$as_me: failed program was:" >&5
3200 sed 's/^/| /' conftest.$ac_ext >&5
3201
3202 fi
3203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3204 done
3205
3206 fi
3207 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3208 echo "${ECHO_T}$ac_cv_c_inline" >&6
3209
3210
3211 case $ac_cv_c_inline in
3212 inline | yes) ;;
3213 *)
3214 case $ac_cv_c_inline in
3215 no) ac_val=;;
3216 *) ac_val=$ac_cv_c_inline;;
3217 esac
3218 cat >>confdefs.h <<_ACEOF
3219 #ifndef __cplusplus
3220 #define inline $ac_val
3221 #endif
3222 _ACEOF
3223 ;;
3224 esac
3225
3226
3227 for ac_prog in gawk mawk nawk awk
3228 do
3229 # Extract the first word of "$ac_prog", so it can be a program name with args.
3230 set dummy $ac_prog; ac_word=$2
3231 echo "$as_me:$LINENO: checking for $ac_word" >&5
3232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3233 if test "${ac_cv_prog_AWK+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3235 else
3236 if test -n "$AWK"; then
3237 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3238 else
3239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240 for as_dir in $PATH
3241 do
3242 IFS=$as_save_IFS
3243 test -z "$as_dir" && as_dir=.
3244 for ac_exec_ext in '' $ac_executable_extensions; do
3245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3246 ac_cv_prog_AWK="$ac_prog"
3247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3248 break 2
3249 fi
3250 done
3251 done
3252
3253 fi
3254 fi
3255 AWK=$ac_cv_prog_AWK
3256 if test -n "$AWK"; then
3257 echo "$as_me:$LINENO: result: $AWK" >&5
3258 echo "${ECHO_T}$AWK" >&6
3259 else
3260 echo "$as_me:$LINENO: result: no" >&5
3261 echo "${ECHO_T}no" >&6
3262 fi
3263
3264 test -n "$AWK" && break
3265 done
3266
3267 ac_ext=c
3268 ac_cpp='$CPP $CPPFLAGS'
3269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3272 if test -n "$ac_tool_prefix"; then
3273 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3274 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3275 echo "$as_me:$LINENO: checking for $ac_word" >&5
3276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3277 if test "${ac_cv_prog_CC+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3279 else
3280 if test -n "$CC"; then
3281 ac_cv_prog_CC="$CC" # Let the user override the test.
3282 else
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 for as_dir in $PATH
3285 do
3286 IFS=$as_save_IFS
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3290 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 break 2
3293 fi
3294 done
3295 done
3296
3297 fi
3298 fi
3299 CC=$ac_cv_prog_CC
3300 if test -n "$CC"; then
3301 echo "$as_me:$LINENO: result: $CC" >&5
3302 echo "${ECHO_T}$CC" >&6
3303 else
3304 echo "$as_me:$LINENO: result: no" >&5
3305 echo "${ECHO_T}no" >&6
3306 fi
3307
3308 fi
3309 if test -z "$ac_cv_prog_CC"; then
3310 ac_ct_CC=$CC
3311 # Extract the first word of "gcc", so it can be a program name with args.
3312 set dummy gcc; ac_word=$2
3313 echo "$as_me:$LINENO: checking for $ac_word" >&5
3314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3315 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3316 echo $ECHO_N "(cached) $ECHO_C" >&6
3317 else
3318 if test -n "$ac_ct_CC"; then
3319 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3320 else
3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322 for as_dir in $PATH
3323 do
3324 IFS=$as_save_IFS
3325 test -z "$as_dir" && as_dir=.
3326 for ac_exec_ext in '' $ac_executable_extensions; do
3327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3328 ac_cv_prog_ac_ct_CC="gcc"
3329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3330 break 2
3331 fi
3332 done
3333 done
3334
3335 fi
3336 fi
3337 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3338 if test -n "$ac_ct_CC"; then
3339 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3340 echo "${ECHO_T}$ac_ct_CC" >&6
3341 else
3342 echo "$as_me:$LINENO: result: no" >&5
3343 echo "${ECHO_T}no" >&6
3344 fi
3345
3346 CC=$ac_ct_CC
3347 else
3348 CC="$ac_cv_prog_CC"
3349 fi
3350
3351 if test -z "$CC"; then
3352 if test -n "$ac_tool_prefix"; then
3353 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3354 set dummy ${ac_tool_prefix}cc; ac_word=$2
3355 echo "$as_me:$LINENO: checking for $ac_word" >&5
3356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3357 if test "${ac_cv_prog_CC+set}" = set; then
3358 echo $ECHO_N "(cached) $ECHO_C" >&6
3359 else
3360 if test -n "$CC"; then
3361 ac_cv_prog_CC="$CC" # Let the user override the test.
3362 else
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 for as_dir in $PATH
3365 do
3366 IFS=$as_save_IFS
3367 test -z "$as_dir" && as_dir=.
3368 for ac_exec_ext in '' $ac_executable_extensions; do
3369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3370 ac_cv_prog_CC="${ac_tool_prefix}cc"
3371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3372 break 2
3373 fi
3374 done
3375 done
3376
3377 fi
3378 fi
3379 CC=$ac_cv_prog_CC
3380 if test -n "$CC"; then
3381 echo "$as_me:$LINENO: result: $CC" >&5
3382 echo "${ECHO_T}$CC" >&6
3383 else
3384 echo "$as_me:$LINENO: result: no" >&5
3385 echo "${ECHO_T}no" >&6
3386 fi
3387
3388 fi
3389 if test -z "$ac_cv_prog_CC"; then
3390 ac_ct_CC=$CC
3391 # Extract the first word of "cc", so it can be a program name with args.
3392 set dummy cc; ac_word=$2
3393 echo "$as_me:$LINENO: checking for $ac_word" >&5
3394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3395 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3396 echo $ECHO_N "(cached) $ECHO_C" >&6
3397 else
3398 if test -n "$ac_ct_CC"; then
3399 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3400 else
3401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 for as_dir in $PATH
3403 do
3404 IFS=$as_save_IFS
3405 test -z "$as_dir" && as_dir=.
3406 for ac_exec_ext in '' $ac_executable_extensions; do
3407 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3408 ac_cv_prog_ac_ct_CC="cc"
3409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3410 break 2
3411 fi
3412 done
3413 done
3414
3415 fi
3416 fi
3417 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3418 if test -n "$ac_ct_CC"; then
3419 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3420 echo "${ECHO_T}$ac_ct_CC" >&6
3421 else
3422 echo "$as_me:$LINENO: result: no" >&5
3423 echo "${ECHO_T}no" >&6
3424 fi
3425
3426 CC=$ac_ct_CC
3427 else
3428 CC="$ac_cv_prog_CC"
3429 fi
3430
3431 fi
3432 if test -z "$CC"; then
3433 # Extract the first word of "cc", so it can be a program name with args.
3434 set dummy cc; ac_word=$2
3435 echo "$as_me:$LINENO: checking for $ac_word" >&5
3436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3437 if test "${ac_cv_prog_CC+set}" = set; then
3438 echo $ECHO_N "(cached) $ECHO_C" >&6
3439 else
3440 if test -n "$CC"; then
3441 ac_cv_prog_CC="$CC" # Let the user override the test.
3442 else
3443 ac_prog_rejected=no
3444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445 for as_dir in $PATH
3446 do
3447 IFS=$as_save_IFS
3448 test -z "$as_dir" && as_dir=.
3449 for ac_exec_ext in '' $ac_executable_extensions; do
3450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3451 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3452 ac_prog_rejected=yes
3453 continue
3454 fi
3455 ac_cv_prog_CC="cc"
3456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3457 break 2
3458 fi
3459 done
3460 done
3461
3462 if test $ac_prog_rejected = yes; then
3463 # We found a bogon in the path, so make sure we never use it.
3464 set dummy $ac_cv_prog_CC
3465 shift
3466 if test $# != 0; then
3467 # We chose a different compiler from the bogus one.
3468 # However, it has the same basename, so the bogon will be chosen
3469 # first if we set CC to just the basename; use the full file name.
3470 shift
3471 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3472 fi
3473 fi
3474 fi
3475 fi
3476 CC=$ac_cv_prog_CC
3477 if test -n "$CC"; then
3478 echo "$as_me:$LINENO: result: $CC" >&5
3479 echo "${ECHO_T}$CC" >&6
3480 else
3481 echo "$as_me:$LINENO: result: no" >&5
3482 echo "${ECHO_T}no" >&6
3483 fi
3484
3485 fi
3486 if test -z "$CC"; then
3487 if test -n "$ac_tool_prefix"; then
3488 for ac_prog in cl
3489 do
3490 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3491 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3492 echo "$as_me:$LINENO: checking for $ac_word" >&5
3493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3494 if test "${ac_cv_prog_CC+set}" = set; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3496 else
3497 if test -n "$CC"; then
3498 ac_cv_prog_CC="$CC" # Let the user override the test.
3499 else
3500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501 for as_dir in $PATH
3502 do
3503 IFS=$as_save_IFS
3504 test -z "$as_dir" && as_dir=.
3505 for ac_exec_ext in '' $ac_executable_extensions; do
3506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3507 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3509 break 2
3510 fi
3511 done
3512 done
3513
3514 fi
3515 fi
3516 CC=$ac_cv_prog_CC
3517 if test -n "$CC"; then
3518 echo "$as_me:$LINENO: result: $CC" >&5
3519 echo "${ECHO_T}$CC" >&6
3520 else
3521 echo "$as_me:$LINENO: result: no" >&5
3522 echo "${ECHO_T}no" >&6
3523 fi
3524
3525 test -n "$CC" && break
3526 done
3527 fi
3528 if test -z "$CC"; then
3529 ac_ct_CC=$CC
3530 for ac_prog in cl
3531 do
3532 # Extract the first word of "$ac_prog", so it can be a program name with args.
3533 set dummy $ac_prog; ac_word=$2
3534 echo "$as_me:$LINENO: checking for $ac_word" >&5
3535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3536 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3537 echo $ECHO_N "(cached) $ECHO_C" >&6
3538 else
3539 if test -n "$ac_ct_CC"; then
3540 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3541 else
3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543 for as_dir in $PATH
3544 do
3545 IFS=$as_save_IFS
3546 test -z "$as_dir" && as_dir=.
3547 for ac_exec_ext in '' $ac_executable_extensions; do
3548 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3549 ac_cv_prog_ac_ct_CC="$ac_prog"
3550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3551 break 2
3552 fi
3553 done
3554 done
3555
3556 fi
3557 fi
3558 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3559 if test -n "$ac_ct_CC"; then
3560 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3561 echo "${ECHO_T}$ac_ct_CC" >&6
3562 else
3563 echo "$as_me:$LINENO: result: no" >&5
3564 echo "${ECHO_T}no" >&6
3565 fi
3566
3567 test -n "$ac_ct_CC" && break
3568 done
3569
3570 CC=$ac_ct_CC
3571 fi
3572
3573 fi
3574
3575
3576 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3577 See \`config.log' for more details." >&5
3578 echo "$as_me: error: no acceptable C compiler found in \$PATH
3579 See \`config.log' for more details." >&2;}
3580 { (exit 1); exit 1; }; }
3581
3582 # Provide some information about the compiler.
3583 echo "$as_me:$LINENO:" \
3584 "checking for C compiler version" >&5
3585 ac_compiler=`set X $ac_compile; echo $2`
3586 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3587 (eval $ac_compiler --version </dev/null >&5) 2>&5
3588 ac_status=$?
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }
3591 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3592 (eval $ac_compiler -v </dev/null >&5) 2>&5
3593 ac_status=$?
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }
3596 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3597 (eval $ac_compiler -V </dev/null >&5) 2>&5
3598 ac_status=$?
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); }
3601
3602 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3603 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3604 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3605 echo $ECHO_N "(cached) $ECHO_C" >&6
3606 else
3607 cat >conftest.$ac_ext <<_ACEOF
3608 /* confdefs.h. */
3609 _ACEOF
3610 cat confdefs.h >>conftest.$ac_ext
3611 cat >>conftest.$ac_ext <<_ACEOF
3612 /* end confdefs.h. */
3613
3614 int
3615 main ()
3616 {
3617 #ifndef __GNUC__
3618 choke me
3619 #endif
3620
3621 ;
3622 return 0;
3623 }
3624 _ACEOF
3625 rm -f conftest.$ac_objext
3626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3627 (eval $ac_compile) 2>conftest.er1
3628 ac_status=$?
3629 grep -v '^ *+' conftest.er1 >conftest.err
3630 rm -f conftest.er1
3631 cat conftest.err >&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); } &&
3634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3636 (eval $ac_try) 2>&5
3637 ac_status=$?
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); }; } &&
3640 { ac_try='test -s conftest.$ac_objext'
3641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3642 (eval $ac_try) 2>&5
3643 ac_status=$?
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); }; }; then
3646 ac_compiler_gnu=yes
3647 else
3648 echo "$as_me: failed program was:" >&5
3649 sed 's/^/| /' conftest.$ac_ext >&5
3650
3651 ac_compiler_gnu=no
3652 fi
3653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3654 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3655
3656 fi
3657 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3658 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3659 GCC=`test $ac_compiler_gnu = yes && echo yes`
3660 ac_test_CFLAGS=${CFLAGS+set}
3661 ac_save_CFLAGS=$CFLAGS
3662 CFLAGS="-g"
3663 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3664 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3665 if test "${ac_cv_prog_cc_g+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 else
3668 cat >conftest.$ac_ext <<_ACEOF
3669 /* confdefs.h. */
3670 _ACEOF
3671 cat confdefs.h >>conftest.$ac_ext
3672 cat >>conftest.$ac_ext <<_ACEOF
3673 /* end confdefs.h. */
3674
3675 int
3676 main ()
3677 {
3678
3679 ;
3680 return 0;
3681 }
3682 _ACEOF
3683 rm -f conftest.$ac_objext
3684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3685 (eval $ac_compile) 2>conftest.er1
3686 ac_status=$?
3687 grep -v '^ *+' conftest.er1 >conftest.err
3688 rm -f conftest.er1
3689 cat conftest.err >&5
3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); } &&
3692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3694 (eval $ac_try) 2>&5
3695 ac_status=$?
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); }; } &&
3698 { ac_try='test -s conftest.$ac_objext'
3699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3700 (eval $ac_try) 2>&5
3701 ac_status=$?
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); }; }; then
3704 ac_cv_prog_cc_g=yes
3705 else
3706 echo "$as_me: failed program was:" >&5
3707 sed 's/^/| /' conftest.$ac_ext >&5
3708
3709 ac_cv_prog_cc_g=no
3710 fi
3711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3712 fi
3713 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3714 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3715 if test "$ac_test_CFLAGS" = set; then
3716 CFLAGS=$ac_save_CFLAGS
3717 elif test $ac_cv_prog_cc_g = yes; then
3718 if test "$GCC" = yes; then
3719 CFLAGS="-g -O2"
3720 else
3721 CFLAGS="-g"
3722 fi
3723 else
3724 if test "$GCC" = yes; then
3725 CFLAGS="-O2"
3726 else
3727 CFLAGS=
3728 fi
3729 fi
3730 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3731 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3732 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6
3734 else
3735 ac_cv_prog_cc_stdc=no
3736 ac_save_CC=$CC
3737 cat >conftest.$ac_ext <<_ACEOF
3738 /* confdefs.h. */
3739 _ACEOF
3740 cat confdefs.h >>conftest.$ac_ext
3741 cat >>conftest.$ac_ext <<_ACEOF
3742 /* end confdefs.h. */
3743 #include <stdarg.h>
3744 #include <stdio.h>
3745 #include <sys/types.h>
3746 #include <sys/stat.h>
3747 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3748 struct buf { int x; };
3749 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3750 static char *e (p, i)
3751 char **p;
3752 int i;
3753 {
3754 return p[i];
3755 }
3756 static char *f (char * (*g) (char **, int), char **p, ...)
3757 {
3758 char *s;
3759 va_list v;
3760 va_start (v,p);
3761 s = g (p, va_arg (v,int));
3762 va_end (v);
3763 return s;
3764 }
3765
3766 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3767 function prototypes and stuff, but not '\xHH' hex character constants.
3768 These don't provoke an error unfortunately, instead are silently treated
3769 as 'x'. The following induces an error, until -std1 is added to get
3770 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3771 array size at least. It's necessary to write '\x00'==0 to get something
3772 that's true only with -std1. */
3773 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3774
3775 int test (int i, double x);
3776 struct s1 {int (*f) (int a);};
3777 struct s2 {int (*f) (double a);};
3778 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3779 int argc;
3780 char **argv;
3781 int
3782 main ()
3783 {
3784 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3785 ;
3786 return 0;
3787 }
3788 _ACEOF
3789 # Don't try gcc -ansi; that turns off useful extensions and
3790 # breaks some systems' header files.
3791 # AIX -qlanglvl=ansi
3792 # Ultrix and OSF/1 -std1
3793 # HP-UX 10.20 and later -Ae
3794 # HP-UX older versions -Aa -D_HPUX_SOURCE
3795 # SVR4 -Xc -D__EXTENSIONS__
3796 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3797 do
3798 CC="$ac_save_CC $ac_arg"
3799 rm -f conftest.$ac_objext
3800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3801 (eval $ac_compile) 2>conftest.er1
3802 ac_status=$?
3803 grep -v '^ *+' conftest.er1 >conftest.err
3804 rm -f conftest.er1
3805 cat conftest.err >&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); } &&
3808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3810 (eval $ac_try) 2>&5
3811 ac_status=$?
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); }; } &&
3814 { ac_try='test -s conftest.$ac_objext'
3815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3816 (eval $ac_try) 2>&5
3817 ac_status=$?
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); }; }; then
3820 ac_cv_prog_cc_stdc=$ac_arg
3821 break
3822 else
3823 echo "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3825
3826 fi
3827 rm -f conftest.err conftest.$ac_objext
3828 done
3829 rm -f conftest.$ac_ext conftest.$ac_objext
3830 CC=$ac_save_CC
3831
3832 fi
3833
3834 case "x$ac_cv_prog_cc_stdc" in
3835 x|xno)
3836 echo "$as_me:$LINENO: result: none needed" >&5
3837 echo "${ECHO_T}none needed" >&6 ;;
3838 *)
3839 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3840 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3841 CC="$CC $ac_cv_prog_cc_stdc" ;;
3842 esac
3843
3844 # Some people use a C++ compiler to compile C. Since we use `exit',
3845 # in C++ we need to declare it. In case someone uses the same compiler
3846 # for both compiling C and C++ we need to have the C++ compiler decide
3847 # the declaration of exit, since it's the most demanding environment.
3848 cat >conftest.$ac_ext <<_ACEOF
3849 #ifndef __cplusplus
3850 choke me
3851 #endif
3852 _ACEOF
3853 rm -f conftest.$ac_objext
3854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3855 (eval $ac_compile) 2>conftest.er1
3856 ac_status=$?
3857 grep -v '^ *+' conftest.er1 >conftest.err
3858 rm -f conftest.er1
3859 cat conftest.err >&5
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); } &&
3862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864 (eval $ac_try) 2>&5
3865 ac_status=$?
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); }; } &&
3868 { ac_try='test -s conftest.$ac_objext'
3869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3870 (eval $ac_try) 2>&5
3871 ac_status=$?
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); }; }; then
3874 for ac_declaration in \
3875 '' \
3876 'extern "C" void std::exit (int) throw (); using std::exit;' \
3877 'extern "C" void std::exit (int); using std::exit;' \
3878 'extern "C" void exit (int) throw ();' \
3879 'extern "C" void exit (int);' \
3880 'void exit (int);'
3881 do
3882 cat >conftest.$ac_ext <<_ACEOF
3883 /* confdefs.h. */
3884 _ACEOF
3885 cat confdefs.h >>conftest.$ac_ext
3886 cat >>conftest.$ac_ext <<_ACEOF
3887 /* end confdefs.h. */
3888 $ac_declaration
3889 #include <stdlib.h>
3890 int
3891 main ()
3892 {
3893 exit (42);
3894 ;
3895 return 0;
3896 }
3897 _ACEOF
3898 rm -f conftest.$ac_objext
3899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3900 (eval $ac_compile) 2>conftest.er1
3901 ac_status=$?
3902 grep -v '^ *+' conftest.er1 >conftest.err
3903 rm -f conftest.er1
3904 cat conftest.err >&5
3905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906 (exit $ac_status); } &&
3907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3909 (eval $ac_try) 2>&5
3910 ac_status=$?
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); }; } &&
3913 { ac_try='test -s conftest.$ac_objext'
3914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3915 (eval $ac_try) 2>&5
3916 ac_status=$?
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); }; }; then
3919 :
3920 else
3921 echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3923
3924 continue
3925 fi
3926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3927 cat >conftest.$ac_ext <<_ACEOF
3928 /* confdefs.h. */
3929 _ACEOF
3930 cat confdefs.h >>conftest.$ac_ext
3931 cat >>conftest.$ac_ext <<_ACEOF
3932 /* end confdefs.h. */
3933 $ac_declaration
3934 int
3935 main ()
3936 {
3937 exit (42);
3938 ;
3939 return 0;
3940 }
3941 _ACEOF
3942 rm -f conftest.$ac_objext
3943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3944 (eval $ac_compile) 2>conftest.er1
3945 ac_status=$?
3946 grep -v '^ *+' conftest.er1 >conftest.err
3947 rm -f conftest.er1
3948 cat conftest.err >&5
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); } &&
3951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3953 (eval $ac_try) 2>&5
3954 ac_status=$?
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); }; } &&
3957 { ac_try='test -s conftest.$ac_objext'
3958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3959 (eval $ac_try) 2>&5
3960 ac_status=$?
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); }; }; then
3963 break
3964 else
3965 echo "$as_me: failed program was:" >&5
3966 sed 's/^/| /' conftest.$ac_ext >&5
3967
3968 fi
3969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3970 done
3971 rm -f conftest*
3972 if test -n "$ac_declaration"; then
3973 echo '#ifdef __cplusplus' >>confdefs.h
3974 echo $ac_declaration >>confdefs.h
3975 echo '#endif' >>confdefs.h
3976 fi
3977
3978 else
3979 echo "$as_me: failed program was:" >&5
3980 sed 's/^/| /' conftest.$ac_ext >&5
3981
3982 fi
3983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3984 ac_ext=c
3985 ac_cpp='$CPP $CPPFLAGS'
3986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3989
3990 depcc="$CC" am_compiler_list=
3991
3992 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3993 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3994 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
3996 else
3997 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3998 # We make a subdir and do the tests there. Otherwise we can end up
3999 # making bogus files that we don't know about and never remove. For
4000 # instance it was reported that on HP-UX the gcc test will end up
4001 # making a dummy file named `D' -- because `-MD' means `put the output
4002 # in D'.
4003 mkdir conftest.dir
4004 # Copy depcomp to subdir because otherwise we won't find it if we're
4005 # using a relative directory.
4006 cp "$am_depcomp" conftest.dir
4007 cd conftest.dir
4008 # We will build objects and dependencies in a subdirectory because
4009 # it helps to detect inapplicable dependency modes. For instance
4010 # both Tru64's cc and ICC support -MD to output dependencies as a
4011 # side effect of compilation, but ICC will put the dependencies in
4012 # the current directory while Tru64 will put them in the object
4013 # directory.
4014 mkdir sub
4015
4016 am_cv_CC_dependencies_compiler_type=none
4017 if test "$am_compiler_list" = ""; then
4018 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4019 fi
4020 for depmode in $am_compiler_list; do
4021 # Setup a source with many dependencies, because some compilers
4022 # like to wrap large dependency lists on column 80 (with \), and
4023 # we should not choose a depcomp mode which is confused by this.
4024 #
4025 # We need to recreate these files for each test, as the compiler may
4026 # overwrite some of them when testing with obscure command lines.
4027 # This happens at least with the AIX C compiler.
4028 : > sub/conftest.c
4029 for i in 1 2 3 4 5 6; do
4030 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4031 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4032 # Solaris 8's {/usr,}/bin/sh.
4033 touch sub/conftst$i.h
4034 done
4035 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4036
4037 case $depmode in
4038 nosideeffect)
4039 # after this tag, mechanisms are not by side-effect, so they'll
4040 # only be used when explicitly requested
4041 if test "x$enable_dependency_tracking" = xyes; then
4042 continue
4043 else
4044 break
4045 fi
4046 ;;
4047 none) break ;;
4048 esac
4049 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4050 # mode. It turns out that the SunPro C++ compiler does not properly
4051 # handle `-M -o', and we need to detect this.
4052 if depmode=$depmode \
4053 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4054 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4055 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4056 >/dev/null 2>conftest.err &&
4057 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4058 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4059 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4060 # icc doesn't choke on unknown options, it will just issue warnings
4061 # or remarks (even with -Werror). So we grep stderr for any message
4062 # that says an option was ignored or not supported.
4063 # When given -MP, icc 7.0 and 7.1 complain thusly:
4064 # icc: Command line warning: ignoring option '-M'; no argument required
4065 # The diagnosis changed in icc 8.0:
4066 # icc: Command line remark: option '-MP' not supported
4067 if (grep 'ignoring option' conftest.err ||
4068 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4069 am_cv_CC_dependencies_compiler_type=$depmode
4070 break
4071 fi
4072 fi
4073 done
4074
4075 cd ..
4076 rm -rf conftest.dir
4077 else
4078 am_cv_CC_dependencies_compiler_type=none
4079 fi
4080
4081 fi
4082 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4083 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4084 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4085
4086
4087
4088 if
4089 test "x$enable_dependency_tracking" != xno \
4090 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4091 am__fastdepCC_TRUE=
4092 am__fastdepCC_FALSE='#'
4093 else
4094 am__fastdepCC_TRUE='#'
4095 am__fastdepCC_FALSE=
4096 fi
4097
4098
4099 # Find a good install program. We prefer a C program (faster),
4100 # so one script is as good as another. But avoid the broken or
4101 # incompatible versions:
4102 # SysV /etc/install, /usr/sbin/install
4103 # SunOS /usr/etc/install
4104 # IRIX /sbin/install
4105 # AIX /bin/install
4106 # AmigaOS /C/install, which installs bootblocks on floppy discs
4107 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4108 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4109 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4110 # OS/2's system install, which has a completely different semantic
4111 # ./install, which can be erroneously created by make from ./install.sh.
4112 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4113 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4114 if test -z "$INSTALL"; then
4115 if test "${ac_cv_path_install+set}" = set; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4117 else
4118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119 for as_dir in $PATH
4120 do
4121 IFS=$as_save_IFS
4122 test -z "$as_dir" && as_dir=.
4123 # Account for people who put trailing slashes in PATH elements.
4124 case $as_dir/ in
4125 ./ | .// | /cC/* | \
4126 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4127 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4128 /usr/ucb/* ) ;;
4129 *)
4130 # OSF1 and SCO ODT 3.0 have their own names for install.
4131 # Don't use installbsd from OSF since it installs stuff as root
4132 # by default.
4133 for ac_prog in ginstall scoinst install; do
4134 for ac_exec_ext in '' $ac_executable_extensions; do
4135 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4136 if test $ac_prog = install &&
4137 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4138 # AIX install. It has an incompatible calling convention.
4139 :
4140 elif test $ac_prog = install &&
4141 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4142 # program-specific install script used by HP pwplus--don't use.
4143 :
4144 else
4145 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4146 break 3
4147 fi
4148 fi
4149 done
4150 done
4151 ;;
4152 esac
4153 done
4154
4155
4156 fi
4157 if test "${ac_cv_path_install+set}" = set; then
4158 INSTALL=$ac_cv_path_install
4159 else
4160 # As a last resort, use the slow shell script. We don't cache a
4161 # path for INSTALL within a source directory, because that will
4162 # break other packages using the cache if that directory is
4163 # removed, or if the path is relative.
4164 INSTALL=$ac_install_sh
4165 fi
4166 fi
4167 echo "$as_me:$LINENO: result: $INSTALL" >&5
4168 echo "${ECHO_T}$INSTALL" >&6
4169
4170 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4171 # It thinks the first close brace ends the variable substitution.
4172 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4173
4174 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4175
4176 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4177
4178
4179 if test -n "$ac_tool_prefix"; then
4180 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4181 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4182 echo "$as_me:$LINENO: checking for $ac_word" >&5
4183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4184 if test "${ac_cv_prog_RANLIB+set}" = set; then
4185 echo $ECHO_N "(cached) $ECHO_C" >&6
4186 else
4187 if test -n "$RANLIB"; then
4188 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4189 else
4190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 for as_dir in $PATH
4192 do
4193 IFS=$as_save_IFS
4194 test -z "$as_dir" && as_dir=.
4195 for ac_exec_ext in '' $ac_executable_extensions; do
4196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4197 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4199 break 2
4200 fi
4201 done
4202 done
4203
4204 fi
4205 fi
4206 RANLIB=$ac_cv_prog_RANLIB
4207 if test -n "$RANLIB"; then
4208 echo "$as_me:$LINENO: result: $RANLIB" >&5
4209 echo "${ECHO_T}$RANLIB" >&6
4210 else
4211 echo "$as_me:$LINENO: result: no" >&5
4212 echo "${ECHO_T}no" >&6
4213 fi
4214
4215 fi
4216 if test -z "$ac_cv_prog_RANLIB"; then
4217 ac_ct_RANLIB=$RANLIB
4218 # Extract the first word of "ranlib", so it can be a program name with args.
4219 set dummy ranlib; ac_word=$2
4220 echo "$as_me:$LINENO: checking for $ac_word" >&5
4221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4222 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4223 echo $ECHO_N "(cached) $ECHO_C" >&6
4224 else
4225 if test -n "$ac_ct_RANLIB"; then
4226 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4227 else
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 for as_dir in $PATH
4230 do
4231 IFS=$as_save_IFS
4232 test -z "$as_dir" && as_dir=.
4233 for ac_exec_ext in '' $ac_executable_extensions; do
4234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4235 ac_cv_prog_ac_ct_RANLIB="ranlib"
4236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4237 break 2
4238 fi
4239 done
4240 done
4241
4242 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4243 fi
4244 fi
4245 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4246 if test -n "$ac_ct_RANLIB"; then
4247 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4248 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4249 else
4250 echo "$as_me:$LINENO: result: no" >&5
4251 echo "${ECHO_T}no" >&6
4252 fi
4253
4254 RANLIB=$ac_ct_RANLIB
4255 else
4256 RANLIB="$ac_cv_prog_RANLIB"
4257 fi
4258
4259
4260 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4261 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4262 LN_S=$as_ln_s
4263 if test "$LN_S" = "ln -s"; then
4264 echo "$as_me:$LINENO: result: yes" >&5
4265 echo "${ECHO_T}yes" >&6
4266 else
4267 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4268 echo "${ECHO_T}no, using $LN_S" >&6
4269 fi
4270
4271 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4272 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4273 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4274 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4275 echo $ECHO_N "(cached) $ECHO_C" >&6
4276 else
4277 cat >conftest.make <<\_ACEOF
4278 all:
4279 @echo 'ac_maketemp="$(MAKE)"'
4280 _ACEOF
4281 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4282 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4283 if test -n "$ac_maketemp"; then
4284 eval ac_cv_prog_make_${ac_make}_set=yes
4285 else
4286 eval ac_cv_prog_make_${ac_make}_set=no
4287 fi
4288 rm -f conftest.make
4289 fi
4290 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4291 echo "$as_me:$LINENO: result: yes" >&5
4292 echo "${ECHO_T}yes" >&6
4293 SET_MAKE=
4294 else
4295 echo "$as_me:$LINENO: result: no" >&5
4296 echo "${ECHO_T}no" >&6
4297 SET_MAKE="MAKE=${MAKE-make}"
4298 fi
4299
4300 ac_ext=c
4301 ac_cpp='$CPP $CPPFLAGS'
4302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4305 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4306 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4307 # On Suns, sometimes $CPP names a directory.
4308 if test -n "$CPP" && test -d "$CPP"; then
4309 CPP=
4310 fi
4311 if test -z "$CPP"; then
4312 if test "${ac_cv_prog_CPP+set}" = set; then
4313 echo $ECHO_N "(cached) $ECHO_C" >&6
4314 else
4315 # Double quotes because CPP needs to be expanded
4316 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4317 do
4318 ac_preproc_ok=false
4319 for ac_c_preproc_warn_flag in '' yes
4320 do
4321 # Use a header file that comes with gcc, so configuring glibc
4322 # with a fresh cross-compiler works.
4323 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4324 # <limits.h> exists even on freestanding compilers.
4325 # On the NeXT, cc -E runs the code through the compiler's parser,
4326 # not just through cpp. "Syntax error" is here to catch this case.
4327 cat >conftest.$ac_ext <<_ACEOF
4328 /* confdefs.h. */
4329 _ACEOF
4330 cat confdefs.h >>conftest.$ac_ext
4331 cat >>conftest.$ac_ext <<_ACEOF
4332 /* end confdefs.h. */
4333 #ifdef __STDC__
4334 # include <limits.h>
4335 #else
4336 # include <assert.h>
4337 #endif
4338 Syntax error
4339 _ACEOF
4340 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4341 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4342 ac_status=$?
4343 grep -v '^ *+' conftest.er1 >conftest.err
4344 rm -f conftest.er1
4345 cat conftest.err >&5
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); } >/dev/null; then
4348 if test -s conftest.err; then
4349 ac_cpp_err=$ac_c_preproc_warn_flag
4350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4351 else
4352 ac_cpp_err=
4353 fi
4354 else
4355 ac_cpp_err=yes
4356 fi
4357 if test -z "$ac_cpp_err"; then
4358 :
4359 else
4360 echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4362
4363 # Broken: fails on valid input.
4364 continue
4365 fi
4366 rm -f conftest.err conftest.$ac_ext
4367
4368 # OK, works on sane cases. Now check whether non-existent headers
4369 # can be detected and how.
4370 cat >conftest.$ac_ext <<_ACEOF
4371 /* confdefs.h. */
4372 _ACEOF
4373 cat confdefs.h >>conftest.$ac_ext
4374 cat >>conftest.$ac_ext <<_ACEOF
4375 /* end confdefs.h. */
4376 #include <ac_nonexistent.h>
4377 _ACEOF
4378 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4379 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4380 ac_status=$?
4381 grep -v '^ *+' conftest.er1 >conftest.err
4382 rm -f conftest.er1
4383 cat conftest.err >&5
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); } >/dev/null; then
4386 if test -s conftest.err; then
4387 ac_cpp_err=$ac_c_preproc_warn_flag
4388 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4389 else
4390 ac_cpp_err=
4391 fi
4392 else
4393 ac_cpp_err=yes
4394 fi
4395 if test -z "$ac_cpp_err"; then
4396 # Broken: success on invalid input.
4397 continue
4398 else
4399 echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4401
4402 # Passes both tests.
4403 ac_preproc_ok=:
4404 break
4405 fi
4406 rm -f conftest.err conftest.$ac_ext
4407
4408 done
4409 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4410 rm -f conftest.err conftest.$ac_ext
4411 if $ac_preproc_ok; then
4412 break
4413 fi
4414
4415 done
4416 ac_cv_prog_CPP=$CPP
4417
4418 fi
4419 CPP=$ac_cv_prog_CPP
4420 else
4421 ac_cv_prog_CPP=$CPP
4422 fi
4423 echo "$as_me:$LINENO: result: $CPP" >&5
4424 echo "${ECHO_T}$CPP" >&6
4425 ac_preproc_ok=false
4426 for ac_c_preproc_warn_flag in '' yes
4427 do
4428 # Use a header file that comes with gcc, so configuring glibc
4429 # with a fresh cross-compiler works.
4430 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4431 # <limits.h> exists even on freestanding compilers.
4432 # On the NeXT, cc -E runs the code through the compiler's parser,
4433 # not just through cpp. "Syntax error" is here to catch this case.
4434 cat >conftest.$ac_ext <<_ACEOF
4435 /* confdefs.h. */
4436 _ACEOF
4437 cat confdefs.h >>conftest.$ac_ext
4438 cat >>conftest.$ac_ext <<_ACEOF
4439 /* end confdefs.h. */
4440 #ifdef __STDC__
4441 # include <limits.h>
4442 #else
4443 # include <assert.h>
4444 #endif
4445 Syntax error
4446 _ACEOF
4447 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4448 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4449 ac_status=$?
4450 grep -v '^ *+' conftest.er1 >conftest.err
4451 rm -f conftest.er1
4452 cat conftest.err >&5
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); } >/dev/null; then
4455 if test -s conftest.err; then
4456 ac_cpp_err=$ac_c_preproc_warn_flag
4457 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4458 else
4459 ac_cpp_err=
4460 fi
4461 else
4462 ac_cpp_err=yes
4463 fi
4464 if test -z "$ac_cpp_err"; then
4465 :
4466 else
4467 echo "$as_me: failed program was:" >&5
4468 sed 's/^/| /' conftest.$ac_ext >&5
4469
4470 # Broken: fails on valid input.
4471 continue
4472 fi
4473 rm -f conftest.err conftest.$ac_ext
4474
4475 # OK, works on sane cases. Now check whether non-existent headers
4476 # can be detected and how.
4477 cat >conftest.$ac_ext <<_ACEOF
4478 /* confdefs.h. */
4479 _ACEOF
4480 cat confdefs.h >>conftest.$ac_ext
4481 cat >>conftest.$ac_ext <<_ACEOF
4482 /* end confdefs.h. */
4483 #include <ac_nonexistent.h>
4484 _ACEOF
4485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4486 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4487 ac_status=$?
4488 grep -v '^ *+' conftest.er1 >conftest.err
4489 rm -f conftest.er1
4490 cat conftest.err >&5
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); } >/dev/null; then
4493 if test -s conftest.err; then
4494 ac_cpp_err=$ac_c_preproc_warn_flag
4495 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4496 else
4497 ac_cpp_err=
4498 fi
4499 else
4500 ac_cpp_err=yes
4501 fi
4502 if test -z "$ac_cpp_err"; then
4503 # Broken: success on invalid input.
4504 continue
4505 else
4506 echo "$as_me: failed program was:" >&5
4507 sed 's/^/| /' conftest.$ac_ext >&5
4508
4509 # Passes both tests.
4510 ac_preproc_ok=:
4511 break
4512 fi
4513 rm -f conftest.err conftest.$ac_ext
4514
4515 done
4516 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4517 rm -f conftest.err conftest.$ac_ext
4518 if $ac_preproc_ok; then
4519 :
4520 else
4521 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4522 See \`config.log' for more details." >&5
4523 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4524 See \`config.log' for more details." >&2;}
4525 { (exit 1); exit 1; }; }
4526 fi
4527
4528 ac_ext=c
4529 ac_cpp='$CPP $CPPFLAGS'
4530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4533
4534
4535 echo "$as_me:$LINENO: checking for egrep" >&5
4536 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4537 if test "${ac_cv_prog_egrep+set}" = set; then
4538 echo $ECHO_N "(cached) $ECHO_C" >&6
4539 else
4540 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4541 then ac_cv_prog_egrep='grep -E'
4542 else ac_cv_prog_egrep='egrep'
4543 fi
4544 fi
4545 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4546 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4547 EGREP=$ac_cv_prog_egrep
4548
4549
4550 if test $ac_cv_c_compiler_gnu = yes; then
4551 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4552 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
4553 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4554 echo $ECHO_N "(cached) $ECHO_C" >&6
4555 else
4556 ac_pattern="Autoconf.*'x'"
4557 cat >conftest.$ac_ext <<_ACEOF
4558 /* confdefs.h. */
4559 _ACEOF
4560 cat confdefs.h >>conftest.$ac_ext
4561 cat >>conftest.$ac_ext <<_ACEOF
4562 /* end confdefs.h. */
4563 #include <sgtty.h>
4564 Autoconf TIOCGETP
4565 _ACEOF
4566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4567 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4568 ac_cv_prog_gcc_traditional=yes
4569 else
4570 ac_cv_prog_gcc_traditional=no
4571 fi
4572 rm -f conftest*
4573
4574
4575 if test $ac_cv_prog_gcc_traditional = no; then
4576 cat >conftest.$ac_ext <<_ACEOF
4577 /* confdefs.h. */
4578 _ACEOF
4579 cat confdefs.h >>conftest.$ac_ext
4580 cat >>conftest.$ac_ext <<_ACEOF
4581 /* end confdefs.h. */
4582 #include <termio.h>
4583 Autoconf TCGETA
4584 _ACEOF
4585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4586 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4587 ac_cv_prog_gcc_traditional=yes
4588 fi
4589 rm -f conftest*
4590
4591 fi
4592 fi
4593 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4594 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
4595 if test $ac_cv_prog_gcc_traditional = yes; then
4596 CC="$CC -traditional"
4597 fi
4598 fi
4599
4600 # Extract the first word of "gmake", so it can be a program name with args.
4601 set dummy gmake; ac_word=$2
4602 echo "$as_me:$LINENO: checking for $ac_word" >&5
4603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4604 if test "${ac_cv_prog_MAKER+set}" = set; then
4605 echo $ECHO_N "(cached) $ECHO_C" >&6
4606 else
4607 if test -n "$MAKER"; then
4608 ac_cv_prog_MAKER="$MAKER" # Let the user override the test.
4609 else
4610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 for as_dir in $PATH
4612 do
4613 IFS=$as_save_IFS
4614 test -z "$as_dir" && as_dir=.
4615 for ac_exec_ext in '' $ac_executable_extensions; do
4616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4617 ac_cv_prog_MAKER="gmake"
4618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4619 break 2
4620 fi
4621 done
4622 done
4623
4624 test -z "$ac_cv_prog_MAKER" && ac_cv_prog_MAKER="make"
4625 fi
4626 fi
4627 MAKER=$ac_cv_prog_MAKER
4628 if test -n "$MAKER"; then
4629 echo "$as_me:$LINENO: result: $MAKER" >&5
4630 echo "${ECHO_T}$MAKER" >&6
4631 else
4632 echo "$as_me:$LINENO: result: no" >&5
4633 echo "${ECHO_T}no" >&6
4634 fi
4635
4636
4637 case $target in
4638 *-freebsd2* | *-freebsdelf2* | *-freebsd*out3*)
4639 ANSI_SRC=""
4640 ;;
4641 *-freebsd3* | *-freebsdelf3* | *-freebsd*out3*)
4642 ANSI_SRC=""
4643 ;;
4644 *-solaris*)
4645 EXTRA_DEFINE="-D__SOLARIS__"
4646 ANSI_SRC="-fno-builtin"
4647 ;;
4648 *-cygwin)
4649 ANSI_SRC="-fno-builtin"
4650 ;;
4651 *-linux*)
4652 EXTRA_DEFINE="-D_GNU_SOURCE"
4653 ANSI_SRC=""
4654 ;;
4655 *)
4656 ANSI_SRC=""
4657 ;;
4658 esac
4659 CFLAGS="$CFLAGS $EXTRA_DEFINE"
4660
4661
4662 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4663 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4664 if test "${ac_cv_lib_socket_socket+set}" = set; then
4665 echo $ECHO_N "(cached) $ECHO_C" >&6
4666 else
4667 ac_check_lib_save_LIBS=$LIBS
4668 LIBS="-lsocket $LIBS"
4669 cat >conftest.$ac_ext <<_ACEOF
4670 /* confdefs.h. */
4671 _ACEOF
4672 cat confdefs.h >>conftest.$ac_ext
4673 cat >>conftest.$ac_ext <<_ACEOF
4674 /* end confdefs.h. */
4675
4676 /* Override any gcc2 internal prototype to avoid an error. */
4677 #ifdef __cplusplus
4678 extern "C"
4679 #endif
4680 /* We use char because int might match the return type of a gcc2
4681 builtin and then its argument prototype would still apply. */
4682 char socket ();
4683 int
4684 main ()
4685 {
4686 socket ();
4687 ;
4688 return 0;
4689 }
4690 _ACEOF
4691 rm -f conftest.$ac_objext conftest$ac_exeext
4692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4693 (eval $ac_link) 2>conftest.er1
4694 ac_status=$?
4695 grep -v '^ *+' conftest.er1 >conftest.err
4696 rm -f conftest.er1
4697 cat conftest.err >&5
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); } &&
4700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702 (eval $ac_try) 2>&5
4703 ac_status=$?
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); }; } &&
4706 { ac_try='test -s conftest$ac_exeext'
4707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4708 (eval $ac_try) 2>&5
4709 ac_status=$?
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); }; }; then
4712 ac_cv_lib_socket_socket=yes
4713 else
4714 echo "$as_me: failed program was:" >&5
4715 sed 's/^/| /' conftest.$ac_ext >&5
4716
4717 ac_cv_lib_socket_socket=no
4718 fi
4719 rm -f conftest.err conftest.$ac_objext \
4720 conftest$ac_exeext conftest.$ac_ext
4721 LIBS=$ac_check_lib_save_LIBS
4722 fi
4723 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4724 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4725 if test $ac_cv_lib_socket_socket = yes; then
4726 cat >>confdefs.h <<_ACEOF
4727 #define HAVE_LIBSOCKET 1
4728 _ACEOF
4729
4730 LIBS="-lsocket $LIBS"
4731
4732 fi
4733
4734
4735 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4736 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4737 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4738 echo $ECHO_N "(cached) $ECHO_C" >&6
4739 else
4740 ac_check_lib_save_LIBS=$LIBS
4741 LIBS="-lnsl $LIBS"
4742 cat >conftest.$ac_ext <<_ACEOF
4743 /* confdefs.h. */
4744 _ACEOF
4745 cat confdefs.h >>conftest.$ac_ext
4746 cat >>conftest.$ac_ext <<_ACEOF
4747 /* end confdefs.h. */
4748
4749 /* Override any gcc2 internal prototype to avoid an error. */
4750 #ifdef __cplusplus
4751 extern "C"
4752 #endif
4753 /* We use char because int might match the return type of a gcc2
4754 builtin and then its argument prototype would still apply. */
4755 char gethostbyname ();
4756 int
4757 main ()
4758 {
4759 gethostbyname ();
4760 ;
4761 return 0;
4762 }
4763 _ACEOF
4764 rm -f conftest.$ac_objext conftest$ac_exeext
4765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4766 (eval $ac_link) 2>conftest.er1
4767 ac_status=$?
4768 grep -v '^ *+' conftest.er1 >conftest.err
4769 rm -f conftest.er1
4770 cat conftest.err >&5
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); } &&
4773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4775 (eval $ac_try) 2>&5
4776 ac_status=$?
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); }; } &&
4779 { ac_try='test -s conftest$ac_exeext'
4780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781 (eval $ac_try) 2>&5
4782 ac_status=$?
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); }; }; then
4785 ac_cv_lib_nsl_gethostbyname=yes
4786 else
4787 echo "$as_me: failed program was:" >&5
4788 sed 's/^/| /' conftest.$ac_ext >&5
4789
4790 ac_cv_lib_nsl_gethostbyname=no
4791 fi
4792 rm -f conftest.err conftest.$ac_objext \
4793 conftest$ac_exeext conftest.$ac_ext
4794 LIBS=$ac_check_lib_save_LIBS
4795 fi
4796 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4797 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4798 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4799 cat >>confdefs.h <<_ACEOF
4800 #define HAVE_LIBNSL 1
4801 _ACEOF
4802
4803 LIBS="-lnsl $LIBS"
4804
4805 fi
4806
4807
4808 echo "$as_me:$LINENO: checking for main in -lm" >&5
4809 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4810 if test "${ac_cv_lib_m_main+set}" = set; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4812 else
4813 ac_check_lib_save_LIBS=$LIBS
4814 LIBS="-lm $LIBS"
4815 cat >conftest.$ac_ext <<_ACEOF
4816 /* confdefs.h. */
4817 _ACEOF
4818 cat confdefs.h >>conftest.$ac_ext
4819 cat >>conftest.$ac_ext <<_ACEOF
4820 /* end confdefs.h. */
4821
4822
4823 int
4824 main ()
4825 {
4826 main ();
4827 ;
4828 return 0;
4829 }
4830 _ACEOF
4831 rm -f conftest.$ac_objext conftest$ac_exeext
4832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4833 (eval $ac_link) 2>conftest.er1
4834 ac_status=$?
4835 grep -v '^ *+' conftest.er1 >conftest.err
4836 rm -f conftest.er1
4837 cat conftest.err >&5
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); } &&
4840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4842 (eval $ac_try) 2>&5
4843 ac_status=$?
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); }; } &&
4846 { ac_try='test -s conftest$ac_exeext'
4847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4848 (eval $ac_try) 2>&5
4849 ac_status=$?
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); }; }; then
4852 ac_cv_lib_m_main=yes
4853 else
4854 echo "$as_me: failed program was:" >&5
4855 sed 's/^/| /' conftest.$ac_ext >&5
4856
4857 ac_cv_lib_m_main=no
4858 fi
4859 rm -f conftest.err conftest.$ac_objext \
4860 conftest$ac_exeext conftest.$ac_ext
4861 LIBS=$ac_check_lib_save_LIBS
4862 fi
4863 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4864 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4865 if test $ac_cv_lib_m_main = yes; then
4866 cat >>confdefs.h <<_ACEOF
4867 #define HAVE_LIBM 1
4868 _ACEOF
4869
4870 LIBS="-lm $LIBS"
4871
4872 fi
4873
4874
4875 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4876 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4877 if test "${ac_cv_header_stdc+set}" = set; then
4878 echo $ECHO_N "(cached) $ECHO_C" >&6
4879 else
4880 cat >conftest.$ac_ext <<_ACEOF
4881 /* confdefs.h. */
4882 _ACEOF
4883 cat confdefs.h >>conftest.$ac_ext
4884 cat >>conftest.$ac_ext <<_ACEOF
4885 /* end confdefs.h. */
4886 #include <stdlib.h>
4887 #include <stdarg.h>
4888 #include <string.h>
4889 #include <float.h>
4890
4891 int
4892 main ()
4893 {
4894
4895 ;
4896 return 0;
4897 }
4898 _ACEOF
4899 rm -f conftest.$ac_objext
4900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4901 (eval $ac_compile) 2>conftest.er1
4902 ac_status=$?
4903 grep -v '^ *+' conftest.er1 >conftest.err
4904 rm -f conftest.er1
4905 cat conftest.err >&5
4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); } &&
4908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4910 (eval $ac_try) 2>&5
4911 ac_status=$?
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); }; } &&
4914 { ac_try='test -s conftest.$ac_objext'
4915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4916 (eval $ac_try) 2>&5
4917 ac_status=$?
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); }; }; then
4920 ac_cv_header_stdc=yes
4921 else
4922 echo "$as_me: failed program was:" >&5
4923 sed 's/^/| /' conftest.$ac_ext >&5
4924
4925 ac_cv_header_stdc=no
4926 fi
4927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4928
4929 if test $ac_cv_header_stdc = yes; then
4930 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4931 cat >conftest.$ac_ext <<_ACEOF
4932 /* confdefs.h. */
4933 _ACEOF
4934 cat confdefs.h >>conftest.$ac_ext
4935 cat >>conftest.$ac_ext <<_ACEOF
4936 /* end confdefs.h. */
4937 #include <string.h>
4938
4939 _ACEOF
4940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4941 $EGREP "memchr" >/dev/null 2>&1; then
4942 :
4943 else
4944 ac_cv_header_stdc=no
4945 fi
4946 rm -f conftest*
4947
4948 fi
4949
4950 if test $ac_cv_header_stdc = yes; then
4951 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4952 cat >conftest.$ac_ext <<_ACEOF
4953 /* confdefs.h. */
4954 _ACEOF
4955 cat confdefs.h >>conftest.$ac_ext
4956 cat >>conftest.$ac_ext <<_ACEOF
4957 /* end confdefs.h. */
4958 #include <stdlib.h>
4959
4960 _ACEOF
4961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4962 $EGREP "free" >/dev/null 2>&1; then
4963 :
4964 else
4965 ac_cv_header_stdc=no
4966 fi
4967 rm -f conftest*
4968
4969 fi
4970
4971 if test $ac_cv_header_stdc = yes; then
4972 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4973 if test "$cross_compiling" = yes; then
4974 :
4975 else
4976 cat >conftest.$ac_ext <<_ACEOF
4977 /* confdefs.h. */
4978 _ACEOF
4979 cat confdefs.h >>conftest.$ac_ext
4980 cat >>conftest.$ac_ext <<_ACEOF
4981 /* end confdefs.h. */
4982 #include <ctype.h>
4983 #if ((' ' & 0x0FF) == 0x020)
4984 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4985 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4986 #else
4987 # define ISLOWER(c) \
4988 (('a' <= (c) && (c) <= 'i') \
4989 || ('j' <= (c) && (c) <= 'r') \
4990 || ('s' <= (c) && (c) <= 'z'))
4991 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4992 #endif
4993
4994 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4995 int
4996 main ()
4997 {
4998 int i;
4999 for (i = 0; i < 256; i++)
5000 if (XOR (islower (i), ISLOWER (i))
5001 || toupper (i) != TOUPPER (i))
5002 exit(2);
5003 exit (0);
5004 }
5005 _ACEOF
5006 rm -f conftest$ac_exeext
5007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5008 (eval $ac_link) 2>&5
5009 ac_status=$?
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5013 (eval $ac_try) 2>&5
5014 ac_status=$?
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); }; }; then
5017 :
5018 else
5019 echo "$as_me: program exited with status $ac_status" >&5
5020 echo "$as_me: failed program was:" >&5
5021 sed 's/^/| /' conftest.$ac_ext >&5
5022
5023 ( exit $ac_status )
5024 ac_cv_header_stdc=no
5025 fi
5026 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5027 fi
5028 fi
5029 fi
5030 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5031 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5032 if test $ac_cv_header_stdc = yes; then
5033
5034 cat >>confdefs.h <<\_ACEOF
5035 #define STDC_HEADERS 1
5036 _ACEOF
5037
5038 fi
5039
5040
5041 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5042 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5043 if test "${ac_cv_header_time+set}" = set; then
5044 echo $ECHO_N "(cached) $ECHO_C" >&6
5045 else
5046 cat >conftest.$ac_ext <<_ACEOF
5047 /* confdefs.h. */
5048 _ACEOF
5049 cat confdefs.h >>conftest.$ac_ext
5050 cat >>conftest.$ac_ext <<_ACEOF
5051 /* end confdefs.h. */
5052 #include <sys/types.h>
5053 #include <sys/time.h>
5054 #include <time.h>
5055
5056 int
5057 main ()
5058 {
5059 if ((struct tm *) 0)
5060 return 0;
5061 ;
5062 return 0;
5063 }
5064 _ACEOF
5065 rm -f conftest.$ac_objext
5066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5067 (eval $ac_compile) 2>conftest.er1
5068 ac_status=$?
5069 grep -v '^ *+' conftest.er1 >conftest.err
5070 rm -f conftest.er1
5071 cat conftest.err >&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); } &&
5074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5076 (eval $ac_try) 2>&5
5077 ac_status=$?
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); }; } &&
5080 { ac_try='test -s conftest.$ac_objext'
5081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5082 (eval $ac_try) 2>&5
5083 ac_status=$?
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); }; }; then
5086 ac_cv_header_time=yes
5087 else
5088 echo "$as_me: failed program was:" >&5
5089 sed 's/^/| /' conftest.$ac_ext >&5
5090
5091 ac_cv_header_time=no
5092 fi
5093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5094 fi
5095 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5096 echo "${ECHO_T}$ac_cv_header_time" >&6
5097 if test $ac_cv_header_time = yes; then
5098
5099 cat >>confdefs.h <<\_ACEOF
5100 #define TIME_WITH_SYS_TIME 1
5101 _ACEOF
5102
5103 fi
5104
5105 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5106 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5107 if test "${ac_cv_struct_tm+set}" = set; then
5108 echo $ECHO_N "(cached) $ECHO_C" >&6
5109 else
5110 cat >conftest.$ac_ext <<_ACEOF
5111 /* confdefs.h. */
5112 _ACEOF
5113 cat confdefs.h >>conftest.$ac_ext
5114 cat >>conftest.$ac_ext <<_ACEOF
5115 /* end confdefs.h. */
5116 #include <sys/types.h>
5117 #include <time.h>
5118
5119 int
5120 main ()
5121 {
5122 struct tm *tp; tp->tm_sec;
5123 ;
5124 return 0;
5125 }
5126 _ACEOF
5127 rm -f conftest.$ac_objext
5128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5129 (eval $ac_compile) 2>conftest.er1
5130 ac_status=$?
5131 grep -v '^ *+' conftest.er1 >conftest.err
5132 rm -f conftest.er1
5133 cat conftest.err >&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); } &&
5136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5138 (eval $ac_try) 2>&5
5139 ac_status=$?
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); }; } &&
5142 { ac_try='test -s conftest.$ac_objext'
5143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5144 (eval $ac_try) 2>&5
5145 ac_status=$?
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); }; }; then
5148 ac_cv_struct_tm=time.h
5149 else
5150 echo "$as_me: failed program was:" >&5
5151 sed 's/^/| /' conftest.$ac_ext >&5
5152
5153 ac_cv_struct_tm=sys/time.h
5154 fi
5155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5156 fi
5157 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5158 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5159 if test $ac_cv_struct_tm = sys/time.h; then
5160
5161 cat >>confdefs.h <<\_ACEOF
5162 #define TM_IN_SYS_TIME 1
5163 _ACEOF
5164
5165 fi
5166
5167
5168 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5179 inttypes.h stdint.h unistd.h
5180 do
5181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5182 echo "$as_me:$LINENO: checking for $ac_header" >&5
5183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5186 else
5187 cat >conftest.$ac_ext <<_ACEOF
5188 /* confdefs.h. */
5189 _ACEOF
5190 cat confdefs.h >>conftest.$ac_ext
5191 cat >>conftest.$ac_ext <<_ACEOF
5192 /* end confdefs.h. */
5193 $ac_includes_default
5194
5195 #include <$ac_header>
5196 _ACEOF
5197 rm -f conftest.$ac_objext
5198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5199 (eval $ac_compile) 2>conftest.er1
5200 ac_status=$?
5201 grep -v '^ *+' conftest.er1 >conftest.err
5202 rm -f conftest.er1
5203 cat conftest.err >&5
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); } &&
5206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5208 (eval $ac_try) 2>&5
5209 ac_status=$?
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); }; } &&
5212 { ac_try='test -s conftest.$ac_objext'
5213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214 (eval $ac_try) 2>&5
5215 ac_status=$?
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); }; }; then
5218 eval "$as_ac_Header=yes"
5219 else
5220 echo "$as_me: failed program was:" >&5
5221 sed 's/^/| /' conftest.$ac_ext >&5
5222
5223 eval "$as_ac_Header=no"
5224 fi
5225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5226 fi
5227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5230 cat >>confdefs.h <<_ACEOF
5231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5232 _ACEOF
5233
5234 fi
5235
5236 done
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259 for ac_header in fcntl.h tgmath.h malloc.h netdb.h netinet/in.h sys/resource.h sys/timeb.h sys/times.h sys/param.h sys/socket.h sys/time.h sys/types.h sys/wait.h unistd.h getopt.h memory.h arpa/inet.h sys/mman.h sys/stat.h dirent.h
5260 do
5261 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5263 echo "$as_me:$LINENO: checking for $ac_header" >&5
5264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5265 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5266 echo $ECHO_N "(cached) $ECHO_C" >&6
5267 fi
5268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5270 else
5271 # Is the header compilable?
5272 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5273 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5274 cat >conftest.$ac_ext <<_ACEOF
5275 /* confdefs.h. */
5276 _ACEOF
5277 cat confdefs.h >>conftest.$ac_ext
5278 cat >>conftest.$ac_ext <<_ACEOF
5279 /* end confdefs.h. */
5280 $ac_includes_default
5281 #include <$ac_header>
5282 _ACEOF
5283 rm -f conftest.$ac_objext
5284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5285 (eval $ac_compile) 2>conftest.er1
5286 ac_status=$?
5287 grep -v '^ *+' conftest.er1 >conftest.err
5288 rm -f conftest.er1
5289 cat conftest.err >&5
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); } &&
5292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5294 (eval $ac_try) 2>&5
5295 ac_status=$?
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); }; } &&
5298 { ac_try='test -s conftest.$ac_objext'
5299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5300 (eval $ac_try) 2>&5
5301 ac_status=$?
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); }; }; then
5304 ac_header_compiler=yes
5305 else
5306 echo "$as_me: failed program was:" >&5
5307 sed 's/^/| /' conftest.$ac_ext >&5
5308
5309 ac_header_compiler=no
5310 fi
5311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5312 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5313 echo "${ECHO_T}$ac_header_compiler" >&6
5314
5315 # Is the header present?
5316 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5317 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5318 cat >conftest.$ac_ext <<_ACEOF
5319 /* confdefs.h. */
5320 _ACEOF
5321 cat confdefs.h >>conftest.$ac_ext
5322 cat >>conftest.$ac_ext <<_ACEOF
5323 /* end confdefs.h. */
5324 #include <$ac_header>
5325 _ACEOF
5326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5327 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5328 ac_status=$?
5329 grep -v '^ *+' conftest.er1 >conftest.err
5330 rm -f conftest.er1
5331 cat conftest.err >&5
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); } >/dev/null; then
5334 if test -s conftest.err; then
5335 ac_cpp_err=$ac_c_preproc_warn_flag
5336 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5337 else
5338 ac_cpp_err=
5339 fi
5340 else
5341 ac_cpp_err=yes
5342 fi
5343 if test -z "$ac_cpp_err"; then
5344 ac_header_preproc=yes
5345 else
5346 echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.$ac_ext >&5
5348
5349 ac_header_preproc=no
5350 fi
5351 rm -f conftest.err conftest.$ac_ext
5352 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5353 echo "${ECHO_T}$ac_header_preproc" >&6
5354
5355 # So? What about this header?
5356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5357 yes:no: )
5358 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5359 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5361 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5362 ac_header_preproc=yes
5363 ;;
5364 no:yes:* )
5365 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5366 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5367 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5368 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5369 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5370 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5371 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5372 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5374 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5375 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5376 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5377 (
5378 cat <<\_ASBOX
5379 ## -------------------------------------------------- ##
5380 ## Report this to evilnet-devel@lists.sourceforge.net ##
5381 ## -------------------------------------------------- ##
5382 _ASBOX
5383 ) |
5384 sed "s/^/$as_me: WARNING: /" >&2
5385 ;;
5386 esac
5387 echo "$as_me:$LINENO: checking for $ac_header" >&5
5388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5390 echo $ECHO_N "(cached) $ECHO_C" >&6
5391 else
5392 eval "$as_ac_Header=\$ac_header_preproc"
5393 fi
5394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5396
5397 fi
5398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5399 cat >>confdefs.h <<_ACEOF
5400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5401 _ACEOF
5402
5403 fi
5404
5405 done
5406
5407
5408 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
5409 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
5410 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5412 else
5413 cat >conftest.$ac_ext <<_ACEOF
5414 /* confdefs.h. */
5415 _ACEOF
5416 cat confdefs.h >>conftest.$ac_ext
5417 cat >>conftest.$ac_ext <<_ACEOF
5418 /* end confdefs.h. */
5419 #include <sys/types.h>
5420 #include <sys/socket.h>
5421
5422 int
5423 main ()
5424 {
5425 static struct sockaddr ac_aggr;
5426 if (ac_aggr.sa_len)
5427 return 0;
5428 ;
5429 return 0;
5430 }
5431 _ACEOF
5432 rm -f conftest.$ac_objext
5433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5434 (eval $ac_compile) 2>conftest.er1
5435 ac_status=$?
5436 grep -v '^ *+' conftest.er1 >conftest.err
5437 rm -f conftest.er1
5438 cat conftest.err >&5
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); } &&
5441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5443 (eval $ac_try) 2>&5
5444 ac_status=$?
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); }; } &&
5447 { ac_try='test -s conftest.$ac_objext'
5448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5449 (eval $ac_try) 2>&5
5450 ac_status=$?
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); }; }; then
5453 ac_cv_member_struct_sockaddr_sa_len=yes
5454 else
5455 echo "$as_me: failed program was:" >&5
5456 sed 's/^/| /' conftest.$ac_ext >&5
5457
5458 cat >conftest.$ac_ext <<_ACEOF
5459 /* confdefs.h. */
5460 _ACEOF
5461 cat confdefs.h >>conftest.$ac_ext
5462 cat >>conftest.$ac_ext <<_ACEOF
5463 /* end confdefs.h. */
5464 #include <sys/types.h>
5465 #include <sys/socket.h>
5466
5467 int
5468 main ()
5469 {
5470 static struct sockaddr ac_aggr;
5471 if (sizeof ac_aggr.sa_len)
5472 return 0;
5473 ;
5474 return 0;
5475 }
5476 _ACEOF
5477 rm -f conftest.$ac_objext
5478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5479 (eval $ac_compile) 2>conftest.er1
5480 ac_status=$?
5481 grep -v '^ *+' conftest.er1 >conftest.err
5482 rm -f conftest.er1
5483 cat conftest.err >&5
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); } &&
5486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5488 (eval $ac_try) 2>&5
5489 ac_status=$?
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); }; } &&
5492 { ac_try='test -s conftest.$ac_objext'
5493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5494 (eval $ac_try) 2>&5
5495 ac_status=$?
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); }; }; then
5498 ac_cv_member_struct_sockaddr_sa_len=yes
5499 else
5500 echo "$as_me: failed program was:" >&5
5501 sed 's/^/| /' conftest.$ac_ext >&5
5502
5503 ac_cv_member_struct_sockaddr_sa_len=no
5504 fi
5505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5506 fi
5507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5508 fi
5509 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
5510 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
5511 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
5512
5513 cat >>confdefs.h <<\_ACEOF
5514 #define HAVE_SOCKADDR_SA_LEN
5515 _ACEOF
5516
5517 fi
5518
5519 echo "$as_me:$LINENO: checking for struct addrinfo.ai_flags" >&5
5520 echo $ECHO_N "checking for struct addrinfo.ai_flags... $ECHO_C" >&6
5521 if test "${ac_cv_member_struct_addrinfo_ai_flags+set}" = set; then
5522 echo $ECHO_N "(cached) $ECHO_C" >&6
5523 else
5524 cat >conftest.$ac_ext <<_ACEOF
5525 /* confdefs.h. */
5526 _ACEOF
5527 cat confdefs.h >>conftest.$ac_ext
5528 cat >>conftest.$ac_ext <<_ACEOF
5529 /* end confdefs.h. */
5530 #include <sys/types.h>
5531 #include <sys/socket.h>
5532 #include <netdb.h>
5533
5534 int
5535 main ()
5536 {
5537 static struct addrinfo ac_aggr;
5538 if (ac_aggr.ai_flags)
5539 return 0;
5540 ;
5541 return 0;
5542 }
5543 _ACEOF
5544 rm -f conftest.$ac_objext
5545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5546 (eval $ac_compile) 2>conftest.er1
5547 ac_status=$?
5548 grep -v '^ *+' conftest.er1 >conftest.err
5549 rm -f conftest.er1
5550 cat conftest.err >&5
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); } &&
5553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5555 (eval $ac_try) 2>&5
5556 ac_status=$?
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); }; } &&
5559 { ac_try='test -s conftest.$ac_objext'
5560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5561 (eval $ac_try) 2>&5
5562 ac_status=$?
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); }; }; then
5565 ac_cv_member_struct_addrinfo_ai_flags=yes
5566 else
5567 echo "$as_me: failed program was:" >&5
5568 sed 's/^/| /' conftest.$ac_ext >&5
5569
5570 cat >conftest.$ac_ext <<_ACEOF
5571 /* confdefs.h. */
5572 _ACEOF
5573 cat confdefs.h >>conftest.$ac_ext
5574 cat >>conftest.$ac_ext <<_ACEOF
5575 /* end confdefs.h. */
5576 #include <sys/types.h>
5577 #include <sys/socket.h>
5578 #include <netdb.h>
5579
5580 int
5581 main ()
5582 {
5583 static struct addrinfo ac_aggr;
5584 if (sizeof ac_aggr.ai_flags)
5585 return 0;
5586 ;
5587 return 0;
5588 }
5589 _ACEOF
5590 rm -f conftest.$ac_objext
5591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5592 (eval $ac_compile) 2>conftest.er1
5593 ac_status=$?
5594 grep -v '^ *+' conftest.er1 >conftest.err
5595 rm -f conftest.er1
5596 cat conftest.err >&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); } &&
5599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5601 (eval $ac_try) 2>&5
5602 ac_status=$?
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }; } &&
5605 { ac_try='test -s conftest.$ac_objext'
5606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5607 (eval $ac_try) 2>&5
5608 ac_status=$?
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); }; }; then
5611 ac_cv_member_struct_addrinfo_ai_flags=yes
5612 else
5613 echo "$as_me: failed program was:" >&5
5614 sed 's/^/| /' conftest.$ac_ext >&5
5615
5616 ac_cv_member_struct_addrinfo_ai_flags=no
5617 fi
5618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5619 fi
5620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5621 fi
5622 echo "$as_me:$LINENO: result: $ac_cv_member_struct_addrinfo_ai_flags" >&5
5623 echo "${ECHO_T}$ac_cv_member_struct_addrinfo_ai_flags" >&6
5624 if test $ac_cv_member_struct_addrinfo_ai_flags = yes; then
5625
5626 cat >>confdefs.h <<\_ACEOF
5627 #define HAVE_STRUCT_ADDRINFO
5628 _ACEOF
5629
5630 fi
5631
5632
5633 for ac_func in gettimeofday
5634 do
5635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5636 echo "$as_me:$LINENO: checking for $ac_func" >&5
5637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5638 if eval "test \"\${$as_ac_var+set}\" = set"; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5640 else
5641 cat >conftest.$ac_ext <<_ACEOF
5642 /* confdefs.h. */
5643 _ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h. */
5647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5649 #define $ac_func innocuous_$ac_func
5650
5651 /* System header to define __stub macros and hopefully few prototypes,
5652 which can conflict with char $ac_func (); below.
5653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5654 <limits.h> exists even on freestanding compilers. */
5655
5656 #ifdef __STDC__
5657 # include <limits.h>
5658 #else
5659 # include <assert.h>
5660 #endif
5661
5662 #undef $ac_func
5663
5664 /* Override any gcc2 internal prototype to avoid an error. */
5665 #ifdef __cplusplus
5666 extern "C"
5667 {
5668 #endif
5669 /* We use char because int might match the return type of a gcc2
5670 builtin and then its argument prototype would still apply. */
5671 char $ac_func ();
5672 /* The GNU C library defines this for functions which it implements
5673 to always fail with ENOSYS. Some functions are actually named
5674 something starting with __ and the normal name is an alias. */
5675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5676 choke me
5677 #else
5678 char (*f) () = $ac_func;
5679 #endif
5680 #ifdef __cplusplus
5681 }
5682 #endif
5683
5684 int
5685 main ()
5686 {
5687 return f != $ac_func;
5688 ;
5689 return 0;
5690 }
5691 _ACEOF
5692 rm -f conftest.$ac_objext conftest$ac_exeext
5693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5694 (eval $ac_link) 2>conftest.er1
5695 ac_status=$?
5696 grep -v '^ *+' conftest.er1 >conftest.err
5697 rm -f conftest.er1
5698 cat conftest.err >&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); } &&
5701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5703 (eval $ac_try) 2>&5
5704 ac_status=$?
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); }; } &&
5707 { ac_try='test -s conftest$ac_exeext'
5708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5709 (eval $ac_try) 2>&5
5710 ac_status=$?
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); }; }; then
5713 eval "$as_ac_var=yes"
5714 else
5715 echo "$as_me: failed program was:" >&5
5716 sed 's/^/| /' conftest.$ac_ext >&5
5717
5718 eval "$as_ac_var=no"
5719 fi
5720 rm -f conftest.err conftest.$ac_objext \
5721 conftest$ac_exeext conftest.$ac_ext
5722 fi
5723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5724 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5725 if test `eval echo '${'$as_ac_var'}'` = yes; then
5726 cat >>confdefs.h <<_ACEOF
5727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5728 _ACEOF
5729
5730 fi
5731 done
5732
5733 if test $ac_cv_func_gettimeofday = no; then
5734
5735 for ac_func in ftime
5736 do
5737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5738 echo "$as_me:$LINENO: checking for $ac_func" >&5
5739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5740 if eval "test \"\${$as_ac_var+set}\" = set"; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5742 else
5743 cat >conftest.$ac_ext <<_ACEOF
5744 /* confdefs.h. */
5745 _ACEOF
5746 cat confdefs.h >>conftest.$ac_ext
5747 cat >>conftest.$ac_ext <<_ACEOF
5748 /* end confdefs.h. */
5749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5751 #define $ac_func innocuous_$ac_func
5752
5753 /* System header to define __stub macros and hopefully few prototypes,
5754 which can conflict with char $ac_func (); below.
5755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5756 <limits.h> exists even on freestanding compilers. */
5757
5758 #ifdef __STDC__
5759 # include <limits.h>
5760 #else
5761 # include <assert.h>
5762 #endif
5763
5764 #undef $ac_func
5765
5766 /* Override any gcc2 internal prototype to avoid an error. */
5767 #ifdef __cplusplus
5768 extern "C"
5769 {
5770 #endif
5771 /* We use char because int might match the return type of a gcc2
5772 builtin and then its argument prototype would still apply. */
5773 char $ac_func ();
5774 /* The GNU C library defines this for functions which it implements
5775 to always fail with ENOSYS. Some functions are actually named
5776 something starting with __ and the normal name is an alias. */
5777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5778 choke me
5779 #else
5780 char (*f) () = $ac_func;
5781 #endif
5782 #ifdef __cplusplus
5783 }
5784 #endif
5785
5786 int
5787 main ()
5788 {
5789 return f != $ac_func;
5790 ;
5791 return 0;
5792 }
5793 _ACEOF
5794 rm -f conftest.$ac_objext conftest$ac_exeext
5795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5796 (eval $ac_link) 2>conftest.er1
5797 ac_status=$?
5798 grep -v '^ *+' conftest.er1 >conftest.err
5799 rm -f conftest.er1
5800 cat conftest.err >&5
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); } &&
5803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5805 (eval $ac_try) 2>&5
5806 ac_status=$?
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); }; } &&
5809 { ac_try='test -s conftest$ac_exeext'
5810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5811 (eval $ac_try) 2>&5
5812 ac_status=$?
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }; }; then
5815 eval "$as_ac_var=yes"
5816 else
5817 echo "$as_me: failed program was:" >&5
5818 sed 's/^/| /' conftest.$ac_ext >&5
5819
5820 eval "$as_ac_var=no"
5821 fi
5822 rm -f conftest.err conftest.$ac_objext \
5823 conftest$ac_exeext conftest.$ac_ext
5824 fi
5825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5826 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5827 if test `eval echo '${'$as_ac_var'}'` = yes; then
5828 cat >>confdefs.h <<_ACEOF
5829 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5830 _ACEOF
5831
5832 else
5833 { { echo "$as_me:$LINENO: error: ftime or gettimeofday required. X3 build will fail." >&5
5834 echo "$as_me: error: ftime or gettimeofday required. X3 build will fail." >&2;}
5835 { (exit 1); exit 1; }; }
5836 fi
5837 done
5838
5839 fi
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855 for ac_func in freeaddrinfo getaddrinfo getnameinfo getpagesize memcpy memset strdup strerror strsignal localtime_r setrlimit getopt getopt_long sysconf
5856 do
5857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5858 echo "$as_me:$LINENO: checking for $ac_func" >&5
5859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5860 if eval "test \"\${$as_ac_var+set}\" = set"; then
5861 echo $ECHO_N "(cached) $ECHO_C" >&6
5862 else
5863 cat >conftest.$ac_ext <<_ACEOF
5864 /* confdefs.h. */
5865 _ACEOF
5866 cat confdefs.h >>conftest.$ac_ext
5867 cat >>conftest.$ac_ext <<_ACEOF
5868 /* end confdefs.h. */
5869 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5871 #define $ac_func innocuous_$ac_func
5872
5873 /* System header to define __stub macros and hopefully few prototypes,
5874 which can conflict with char $ac_func (); below.
5875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5876 <limits.h> exists even on freestanding compilers. */
5877
5878 #ifdef __STDC__
5879 # include <limits.h>
5880 #else
5881 # include <assert.h>
5882 #endif
5883
5884 #undef $ac_func
5885
5886 /* Override any gcc2 internal prototype to avoid an error. */
5887 #ifdef __cplusplus
5888 extern "C"
5889 {
5890 #endif
5891 /* We use char because int might match the return type of a gcc2
5892 builtin and then its argument prototype would still apply. */
5893 char $ac_func ();
5894 /* The GNU C library defines this for functions which it implements
5895 to always fail with ENOSYS. Some functions are actually named
5896 something starting with __ and the normal name is an alias. */
5897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5898 choke me
5899 #else
5900 char (*f) () = $ac_func;
5901 #endif
5902 #ifdef __cplusplus
5903 }
5904 #endif
5905
5906 int
5907 main ()
5908 {
5909 return f != $ac_func;
5910 ;
5911 return 0;
5912 }
5913 _ACEOF
5914 rm -f conftest.$ac_objext conftest$ac_exeext
5915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5916 (eval $ac_link) 2>conftest.er1
5917 ac_status=$?
5918 grep -v '^ *+' conftest.er1 >conftest.err
5919 rm -f conftest.er1
5920 cat conftest.err >&5
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); } &&
5923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5925 (eval $ac_try) 2>&5
5926 ac_status=$?
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }; } &&
5929 { ac_try='test -s conftest$ac_exeext'
5930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5931 (eval $ac_try) 2>&5
5932 ac_status=$?
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); }; }; then
5935 eval "$as_ac_var=yes"
5936 else
5937 echo "$as_me: failed program was:" >&5
5938 sed 's/^/| /' conftest.$ac_ext >&5
5939
5940 eval "$as_ac_var=no"
5941 fi
5942 rm -f conftest.err conftest.$ac_objext \
5943 conftest$ac_exeext conftest.$ac_ext
5944 fi
5945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5946 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5947 if test `eval echo '${'$as_ac_var'}'` = yes; then
5948 cat >>confdefs.h <<_ACEOF
5949 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5950 _ACEOF
5951
5952 fi
5953 done
5954
5955
5956
5957
5958
5959
5960
5961
5962 for ac_func in select socket strcspn strspn strtod strtoul
5963 do
5964 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5965 echo "$as_me:$LINENO: checking for $ac_func" >&5
5966 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5967 if eval "test \"\${$as_ac_var+set}\" = set"; then
5968 echo $ECHO_N "(cached) $ECHO_C" >&6
5969 else
5970 cat >conftest.$ac_ext <<_ACEOF
5971 /* confdefs.h. */
5972 _ACEOF
5973 cat confdefs.h >>conftest.$ac_ext
5974 cat >>conftest.$ac_ext <<_ACEOF
5975 /* end confdefs.h. */
5976 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5978 #define $ac_func innocuous_$ac_func
5979
5980 /* System header to define __stub macros and hopefully few prototypes,
5981 which can conflict with char $ac_func (); below.
5982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5983 <limits.h> exists even on freestanding compilers. */
5984
5985 #ifdef __STDC__
5986 # include <limits.h>
5987 #else
5988 # include <assert.h>
5989 #endif
5990
5991 #undef $ac_func
5992
5993 /* Override any gcc2 internal prototype to avoid an error. */
5994 #ifdef __cplusplus
5995 extern "C"
5996 {
5997 #endif
5998 /* We use char because int might match the return type of a gcc2
5999 builtin and then its argument prototype would still apply. */
6000 char $ac_func ();
6001 /* The GNU C library defines this for functions which it implements
6002 to always fail with ENOSYS. Some functions are actually named
6003 something starting with __ and the normal name is an alias. */
6004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6005 choke me
6006 #else
6007 char (*f) () = $ac_func;
6008 #endif
6009 #ifdef __cplusplus
6010 }
6011 #endif
6012
6013 int
6014 main ()
6015 {
6016 return f != $ac_func;
6017 ;
6018 return 0;
6019 }
6020 _ACEOF
6021 rm -f conftest.$ac_objext conftest$ac_exeext
6022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6023 (eval $ac_link) 2>conftest.er1
6024 ac_status=$?
6025 grep -v '^ *+' conftest.er1 >conftest.err
6026 rm -f conftest.er1
6027 cat conftest.err >&5
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); } &&
6030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6032 (eval $ac_try) 2>&5
6033 ac_status=$?
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); }; } &&
6036 { ac_try='test -s conftest$ac_exeext'
6037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6038 (eval $ac_try) 2>&5
6039 ac_status=$?
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); }; }; then
6042 eval "$as_ac_var=yes"
6043 else
6044 echo "$as_me: failed program was:" >&5
6045 sed 's/^/| /' conftest.$ac_ext >&5
6046
6047 eval "$as_ac_var=no"
6048 fi
6049 rm -f conftest.err conftest.$ac_objext \
6050 conftest$ac_exeext conftest.$ac_ext
6051 fi
6052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6053 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6054 if test `eval echo '${'$as_ac_var'}'` = yes; then
6055 cat >>confdefs.h <<_ACEOF
6056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6057 _ACEOF
6058
6059 else
6060 { { echo "$as_me:$LINENO: error: a required function was not found. X3 build will fail." >&5
6061 echo "$as_me: error: a required function was not found. X3 build will fail." >&2;}
6062 { (exit 1); exit 1; }; }
6063 fi
6064 done
6065
6066
6067 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6068 # for constant arguments. Useless!
6069 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6070 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6071 if test "${ac_cv_working_alloca_h+set}" = set; then
6072 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 else
6074 cat >conftest.$ac_ext <<_ACEOF
6075 /* confdefs.h. */
6076 _ACEOF
6077 cat confdefs.h >>conftest.$ac_ext
6078 cat >>conftest.$ac_ext <<_ACEOF
6079 /* end confdefs.h. */
6080 #include <alloca.h>
6081 int
6082 main ()
6083 {
6084 char *p = (char *) alloca (2 * sizeof (int));
6085 ;
6086 return 0;
6087 }
6088 _ACEOF
6089 rm -f conftest.$ac_objext conftest$ac_exeext
6090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6091 (eval $ac_link) 2>conftest.er1
6092 ac_status=$?
6093 grep -v '^ *+' conftest.er1 >conftest.err
6094 rm -f conftest.er1
6095 cat conftest.err >&5
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); } &&
6098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6100 (eval $ac_try) 2>&5
6101 ac_status=$?
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); }; } &&
6104 { ac_try='test -s conftest$ac_exeext'
6105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6106 (eval $ac_try) 2>&5
6107 ac_status=$?
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); }; }; then
6110 ac_cv_working_alloca_h=yes
6111 else
6112 echo "$as_me: failed program was:" >&5
6113 sed 's/^/| /' conftest.$ac_ext >&5
6114
6115 ac_cv_working_alloca_h=no
6116 fi
6117 rm -f conftest.err conftest.$ac_objext \
6118 conftest$ac_exeext conftest.$ac_ext
6119 fi
6120 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6121 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6122 if test $ac_cv_working_alloca_h = yes; then
6123
6124 cat >>confdefs.h <<\_ACEOF
6125 #define HAVE_ALLOCA_H 1
6126 _ACEOF
6127
6128 fi
6129
6130 echo "$as_me:$LINENO: checking for alloca" >&5
6131 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6132 if test "${ac_cv_func_alloca_works+set}" = set; then
6133 echo $ECHO_N "(cached) $ECHO_C" >&6
6134 else
6135 cat >conftest.$ac_ext <<_ACEOF
6136 /* confdefs.h. */
6137 _ACEOF
6138 cat confdefs.h >>conftest.$ac_ext
6139 cat >>conftest.$ac_ext <<_ACEOF
6140 /* end confdefs.h. */
6141 #ifdef __GNUC__
6142 # define alloca __builtin_alloca
6143 #else
6144 # ifdef _MSC_VER
6145 # include <malloc.h>
6146 # define alloca _alloca
6147 # else
6148 # if HAVE_ALLOCA_H
6149 # include <alloca.h>
6150 # else
6151 # ifdef _AIX
6152 #pragma alloca
6153 # else
6154 # ifndef alloca /* predefined by HP cc +Olibcalls */
6155 char *alloca ();
6156 # endif
6157 # endif
6158 # endif
6159 # endif
6160 #endif
6161
6162 int
6163 main ()
6164 {
6165 char *p = (char *) alloca (1);
6166 ;
6167 return 0;
6168 }
6169 _ACEOF
6170 rm -f conftest.$ac_objext conftest$ac_exeext
6171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6172 (eval $ac_link) 2>conftest.er1
6173 ac_status=$?
6174 grep -v '^ *+' conftest.er1 >conftest.err
6175 rm -f conftest.er1
6176 cat conftest.err >&5
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); } &&
6179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6181 (eval $ac_try) 2>&5
6182 ac_status=$?
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); }; } &&
6185 { ac_try='test -s conftest$ac_exeext'
6186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6187 (eval $ac_try) 2>&5
6188 ac_status=$?
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); }; }; then
6191 ac_cv_func_alloca_works=yes
6192 else
6193 echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.$ac_ext >&5
6195
6196 ac_cv_func_alloca_works=no
6197 fi
6198 rm -f conftest.err conftest.$ac_objext \
6199 conftest$ac_exeext conftest.$ac_ext
6200 fi
6201 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6202 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6203
6204 if test $ac_cv_func_alloca_works = yes; then
6205
6206 cat >>confdefs.h <<\_ACEOF
6207 #define HAVE_ALLOCA 1
6208 _ACEOF
6209
6210 else
6211 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6212 # that cause trouble. Some versions do not even contain alloca or
6213 # contain a buggy version. If you still want to use their alloca,
6214 # use ar to extract alloca.o from them instead of compiling alloca.c.
6215
6216 ALLOCA=alloca.$ac_objext
6217
6218 cat >>confdefs.h <<\_ACEOF
6219 #define C_ALLOCA 1
6220 _ACEOF
6221
6222
6223 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6224 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6225 if test "${ac_cv_os_cray+set}" = set; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
6227 else
6228 cat >conftest.$ac_ext <<_ACEOF
6229 /* confdefs.h. */
6230 _ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h. */
6234 #if defined(CRAY) && ! defined(CRAY2)
6235 webecray
6236 #else
6237 wenotbecray
6238 #endif
6239
6240 _ACEOF
6241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6242 $EGREP "webecray" >/dev/null 2>&1; then
6243 ac_cv_os_cray=yes
6244 else
6245 ac_cv_os_cray=no
6246 fi
6247 rm -f conftest*
6248
6249 fi
6250 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6251 echo "${ECHO_T}$ac_cv_os_cray" >&6
6252 if test $ac_cv_os_cray = yes; then
6253 for ac_func in _getb67 GETB67 getb67; do
6254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6255 echo "$as_me:$LINENO: checking for $ac_func" >&5
6256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6257 if eval "test \"\${$as_ac_var+set}\" = set"; then
6258 echo $ECHO_N "(cached) $ECHO_C" >&6
6259 else
6260 cat >conftest.$ac_ext <<_ACEOF
6261 /* confdefs.h. */
6262 _ACEOF
6263 cat confdefs.h >>conftest.$ac_ext
6264 cat >>conftest.$ac_ext <<_ACEOF
6265 /* end confdefs.h. */
6266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6268 #define $ac_func innocuous_$ac_func
6269
6270 /* System header to define __stub macros and hopefully few prototypes,
6271 which can conflict with char $ac_func (); below.
6272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6273 <limits.h> exists even on freestanding compilers. */
6274
6275 #ifdef __STDC__
6276 # include <limits.h>
6277 #else
6278 # include <assert.h>
6279 #endif
6280
6281 #undef $ac_func
6282
6283 /* Override any gcc2 internal prototype to avoid an error. */
6284 #ifdef __cplusplus
6285 extern "C"
6286 {
6287 #endif
6288 /* We use char because int might match the return type of a gcc2
6289 builtin and then its argument prototype would still apply. */
6290 char $ac_func ();
6291 /* The GNU C library defines this for functions which it implements
6292 to always fail with ENOSYS. Some functions are actually named
6293 something starting with __ and the normal name is an alias. */
6294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6295 choke me
6296 #else
6297 char (*f) () = $ac_func;
6298 #endif
6299 #ifdef __cplusplus
6300 }
6301 #endif
6302
6303 int
6304 main ()
6305 {
6306 return f != $ac_func;
6307 ;
6308 return 0;
6309 }
6310 _ACEOF
6311 rm -f conftest.$ac_objext conftest$ac_exeext
6312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6313 (eval $ac_link) 2>conftest.er1
6314 ac_status=$?
6315 grep -v '^ *+' conftest.er1 >conftest.err
6316 rm -f conftest.er1
6317 cat conftest.err >&5
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); } &&
6320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6322 (eval $ac_try) 2>&5
6323 ac_status=$?
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); }; } &&
6326 { ac_try='test -s conftest$ac_exeext'
6327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6328 (eval $ac_try) 2>&5
6329 ac_status=$?
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); }; }; then
6332 eval "$as_ac_var=yes"
6333 else
6334 echo "$as_me: failed program was:" >&5
6335 sed 's/^/| /' conftest.$ac_ext >&5
6336
6337 eval "$as_ac_var=no"
6338 fi
6339 rm -f conftest.err conftest.$ac_objext \
6340 conftest$ac_exeext conftest.$ac_ext
6341 fi
6342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6343 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6344 if test `eval echo '${'$as_ac_var'}'` = yes; then
6345
6346 cat >>confdefs.h <<_ACEOF
6347 #define CRAY_STACKSEG_END $ac_func
6348 _ACEOF
6349
6350 break
6351 fi
6352
6353 done
6354 fi
6355
6356 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6357 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6358 if test "${ac_cv_c_stack_direction+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6360 else
6361 if test "$cross_compiling" = yes; then
6362 ac_cv_c_stack_direction=0
6363 else
6364 cat >conftest.$ac_ext <<_ACEOF
6365 /* confdefs.h. */
6366 _ACEOF
6367 cat confdefs.h >>conftest.$ac_ext
6368 cat >>conftest.$ac_ext <<_ACEOF
6369 /* end confdefs.h. */
6370 int
6371 find_stack_direction ()
6372 {
6373 static char *addr = 0;
6374 auto char dummy;
6375 if (addr == 0)
6376 {
6377 addr = &dummy;
6378 return find_stack_direction ();
6379 }
6380 else
6381 return (&dummy > addr) ? 1 : -1;
6382 }
6383
6384 int
6385 main ()
6386 {
6387 exit (find_stack_direction () < 0);
6388 }
6389 _ACEOF
6390 rm -f conftest$ac_exeext
6391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6392 (eval $ac_link) 2>&5
6393 ac_status=$?
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6397 (eval $ac_try) 2>&5
6398 ac_status=$?
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); }; }; then
6401 ac_cv_c_stack_direction=1
6402 else
6403 echo "$as_me: program exited with status $ac_status" >&5
6404 echo "$as_me: failed program was:" >&5
6405 sed 's/^/| /' conftest.$ac_ext >&5
6406
6407 ( exit $ac_status )
6408 ac_cv_c_stack_direction=-1
6409 fi
6410 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6411 fi
6412 fi
6413 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6414 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6415
6416 cat >>confdefs.h <<_ACEOF
6417 #define STACK_DIRECTION $ac_cv_c_stack_direction
6418 _ACEOF
6419
6420
6421 fi
6422
6423
6424
6425 for ac_header in stdlib.h unistd.h
6426 do
6427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6429 echo "$as_me:$LINENO: checking for $ac_header" >&5
6430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6432 echo $ECHO_N "(cached) $ECHO_C" >&6
6433 fi
6434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6436 else
6437 # Is the header compilable?
6438 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6439 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6440 cat >conftest.$ac_ext <<_ACEOF
6441 /* confdefs.h. */
6442 _ACEOF
6443 cat confdefs.h >>conftest.$ac_ext
6444 cat >>conftest.$ac_ext <<_ACEOF
6445 /* end confdefs.h. */
6446 $ac_includes_default
6447 #include <$ac_header>
6448 _ACEOF
6449 rm -f conftest.$ac_objext
6450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6451 (eval $ac_compile) 2>conftest.er1
6452 ac_status=$?
6453 grep -v '^ *+' conftest.er1 >conftest.err
6454 rm -f conftest.er1
6455 cat conftest.err >&5
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); } &&
6458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6460 (eval $ac_try) 2>&5
6461 ac_status=$?
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }; } &&
6464 { ac_try='test -s conftest.$ac_objext'
6465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6466 (eval $ac_try) 2>&5
6467 ac_status=$?
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); }; }; then
6470 ac_header_compiler=yes
6471 else
6472 echo "$as_me: failed program was:" >&5
6473 sed 's/^/| /' conftest.$ac_ext >&5
6474
6475 ac_header_compiler=no
6476 fi
6477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6478 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6479 echo "${ECHO_T}$ac_header_compiler" >&6
6480
6481 # Is the header present?
6482 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6483 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6484 cat >conftest.$ac_ext <<_ACEOF
6485 /* confdefs.h. */
6486 _ACEOF
6487 cat confdefs.h >>conftest.$ac_ext
6488 cat >>conftest.$ac_ext <<_ACEOF
6489 /* end confdefs.h. */
6490 #include <$ac_header>
6491 _ACEOF
6492 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6494 ac_status=$?
6495 grep -v '^ *+' conftest.er1 >conftest.err
6496 rm -f conftest.er1
6497 cat conftest.err >&5
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); } >/dev/null; then
6500 if test -s conftest.err; then
6501 ac_cpp_err=$ac_c_preproc_warn_flag
6502 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6503 else
6504 ac_cpp_err=
6505 fi
6506 else
6507 ac_cpp_err=yes
6508 fi
6509 if test -z "$ac_cpp_err"; then
6510 ac_header_preproc=yes
6511 else
6512 echo "$as_me: failed program was:" >&5
6513 sed 's/^/| /' conftest.$ac_ext >&5
6514
6515 ac_header_preproc=no
6516 fi
6517 rm -f conftest.err conftest.$ac_ext
6518 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6519 echo "${ECHO_T}$ac_header_preproc" >&6
6520
6521 # So? What about this header?
6522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6523 yes:no: )
6524 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6525 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6527 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6528 ac_header_preproc=yes
6529 ;;
6530 no:yes:* )
6531 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6532 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6533 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6534 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6535 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6536 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6537 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6538 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6540 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6541 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6542 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6543 (
6544 cat <<\_ASBOX
6545 ## -------------------------------------------------- ##
6546 ## Report this to evilnet-devel@lists.sourceforge.net ##
6547 ## -------------------------------------------------- ##
6548 _ASBOX
6549 ) |
6550 sed "s/^/$as_me: WARNING: /" >&2
6551 ;;
6552 esac
6553 echo "$as_me:$LINENO: checking for $ac_header" >&5
6554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6556 echo $ECHO_N "(cached) $ECHO_C" >&6
6557 else
6558 eval "$as_ac_Header=\$ac_header_preproc"
6559 fi
6560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6561 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6562
6563 fi
6564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6565 cat >>confdefs.h <<_ACEOF
6566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6567 _ACEOF
6568
6569 fi
6570
6571 done
6572
6573
6574 for ac_func in getpagesize
6575 do
6576 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6577 echo "$as_me:$LINENO: checking for $ac_func" >&5
6578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6579 if eval "test \"\${$as_ac_var+set}\" = set"; then
6580 echo $ECHO_N "(cached) $ECHO_C" >&6
6581 else
6582 cat >conftest.$ac_ext <<_ACEOF
6583 /* confdefs.h. */
6584 _ACEOF
6585 cat confdefs.h >>conftest.$ac_ext
6586 cat >>conftest.$ac_ext <<_ACEOF
6587 /* end confdefs.h. */
6588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6590 #define $ac_func innocuous_$ac_func
6591
6592 /* System header to define __stub macros and hopefully few prototypes,
6593 which can conflict with char $ac_func (); below.
6594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6595 <limits.h> exists even on freestanding compilers. */
6596
6597 #ifdef __STDC__
6598 # include <limits.h>
6599 #else
6600 # include <assert.h>
6601 #endif
6602
6603 #undef $ac_func
6604
6605 /* Override any gcc2 internal prototype to avoid an error. */
6606 #ifdef __cplusplus
6607 extern "C"
6608 {
6609 #endif
6610 /* We use char because int might match the return type of a gcc2
6611 builtin and then its argument prototype would still apply. */
6612 char $ac_func ();
6613 /* The GNU C library defines this for functions which it implements
6614 to always fail with ENOSYS. Some functions are actually named
6615 something starting with __ and the normal name is an alias. */
6616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6617 choke me
6618 #else
6619 char (*f) () = $ac_func;
6620 #endif
6621 #ifdef __cplusplus
6622 }
6623 #endif
6624
6625 int
6626 main ()
6627 {
6628 return f != $ac_func;
6629 ;
6630 return 0;
6631 }
6632 _ACEOF
6633 rm -f conftest.$ac_objext conftest$ac_exeext
6634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6635 (eval $ac_link) 2>conftest.er1
6636 ac_status=$?
6637 grep -v '^ *+' conftest.er1 >conftest.err
6638 rm -f conftest.er1
6639 cat conftest.err >&5
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); } &&
6642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6644 (eval $ac_try) 2>&5
6645 ac_status=$?
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); }; } &&
6648 { ac_try='test -s conftest$ac_exeext'
6649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6650 (eval $ac_try) 2>&5
6651 ac_status=$?
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); }; }; then
6654 eval "$as_ac_var=yes"
6655 else
6656 echo "$as_me: failed program was:" >&5
6657 sed 's/^/| /' conftest.$ac_ext >&5
6658
6659 eval "$as_ac_var=no"
6660 fi
6661 rm -f conftest.err conftest.$ac_objext \
6662 conftest$ac_exeext conftest.$ac_ext
6663 fi
6664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6665 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6666 if test `eval echo '${'$as_ac_var'}'` = yes; then
6667 cat >>confdefs.h <<_ACEOF
6668 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6669 _ACEOF
6670
6671 fi
6672 done
6673
6674 echo "$as_me:$LINENO: checking for working mmap" >&5
6675 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6676 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6677 echo $ECHO_N "(cached) $ECHO_C" >&6
6678 else
6679 if test "$cross_compiling" = yes; then
6680 ac_cv_func_mmap_fixed_mapped=no
6681 else
6682 cat >conftest.$ac_ext <<_ACEOF
6683 /* confdefs.h. */
6684 _ACEOF
6685 cat confdefs.h >>conftest.$ac_ext
6686 cat >>conftest.$ac_ext <<_ACEOF
6687 /* end confdefs.h. */
6688 $ac_includes_default
6689 /* malloc might have been renamed as rpl_malloc. */
6690 #undef malloc
6691
6692 /* Thanks to Mike Haertel and Jim Avera for this test.
6693 Here is a matrix of mmap possibilities:
6694 mmap private not fixed
6695 mmap private fixed at somewhere currently unmapped
6696 mmap private fixed at somewhere already mapped
6697 mmap shared not fixed
6698 mmap shared fixed at somewhere currently unmapped
6699 mmap shared fixed at somewhere already mapped
6700 For private mappings, we should verify that changes cannot be read()
6701 back from the file, nor mmap's back from the file at a different
6702 address. (There have been systems where private was not correctly
6703 implemented like the infamous i386 svr4.0, and systems where the
6704 VM page cache was not coherent with the file system buffer cache
6705 like early versions of FreeBSD and possibly contemporary NetBSD.)
6706 For shared mappings, we should conversely verify that changes get
6707 propagated back to all the places they're supposed to be.
6708
6709 Grep wants private fixed already mapped.
6710 The main things grep needs to know about mmap are:
6711 * does it exist and is it safe to write into the mmap'd area
6712 * how to use it (BSD variants) */
6713
6714 #include <fcntl.h>
6715 #include <sys/mman.h>
6716
6717 #if !STDC_HEADERS && !HAVE_STDLIB_H
6718 char *malloc ();
6719 #endif
6720
6721 /* This mess was copied from the GNU getpagesize.h. */
6722 #if !HAVE_GETPAGESIZE
6723 /* Assume that all systems that can run configure have sys/param.h. */
6724 # if !HAVE_SYS_PARAM_H
6725 # define HAVE_SYS_PARAM_H 1
6726 # endif
6727
6728 # ifdef _SC_PAGESIZE
6729 # define getpagesize() sysconf(_SC_PAGESIZE)
6730 # else /* no _SC_PAGESIZE */
6731 # if HAVE_SYS_PARAM_H
6732 # include <sys/param.h>
6733 # ifdef EXEC_PAGESIZE
6734 # define getpagesize() EXEC_PAGESIZE
6735 # else /* no EXEC_PAGESIZE */
6736 # ifdef NBPG
6737 # define getpagesize() NBPG * CLSIZE
6738 # ifndef CLSIZE
6739 # define CLSIZE 1
6740 # endif /* no CLSIZE */
6741 # else /* no NBPG */
6742 # ifdef NBPC
6743 # define getpagesize() NBPC
6744 # else /* no NBPC */
6745 # ifdef PAGESIZE
6746 # define getpagesize() PAGESIZE
6747 # endif /* PAGESIZE */
6748 # endif /* no NBPC */
6749 # endif /* no NBPG */
6750 # endif /* no EXEC_PAGESIZE */
6751 # else /* no HAVE_SYS_PARAM_H */
6752 # define getpagesize() 8192 /* punt totally */
6753 # endif /* no HAVE_SYS_PARAM_H */
6754 # endif /* no _SC_PAGESIZE */
6755
6756 #endif /* no HAVE_GETPAGESIZE */
6757
6758 int
6759 main ()
6760 {
6761 char *data, *data2, *data3;
6762 int i, pagesize;
6763 int fd;
6764
6765 pagesize = getpagesize ();
6766
6767 /* First, make a file with some known garbage in it. */
6768 data = (char *) malloc (pagesize);
6769 if (!data)
6770 exit (1);
6771 for (i = 0; i < pagesize; ++i)
6772 *(data + i) = rand ();
6773 umask (0);
6774 fd = creat ("conftest.mmap", 0600);
6775 if (fd < 0)
6776 exit (1);
6777 if (write (fd, data, pagesize) != pagesize)
6778 exit (1);
6779 close (fd);
6780
6781 /* Next, try to mmap the file at a fixed address which already has
6782 something else allocated at it. If we can, also make sure that
6783 we see the same garbage. */
6784 fd = open ("conftest.mmap", O_RDWR);
6785 if (fd < 0)
6786 exit (1);
6787 data2 = (char *) malloc (2 * pagesize);
6788 if (!data2)
6789 exit (1);
6790 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6791 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6792 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6793 exit (1);
6794 for (i = 0; i < pagesize; ++i)
6795 if (*(data + i) != *(data2 + i))
6796 exit (1);
6797
6798 /* Finally, make sure that changes to the mapped area do not
6799 percolate back to the file as seen by read(). (This is a bug on
6800 some variants of i386 svr4.0.) */
6801 for (i = 0; i < pagesize; ++i)
6802 *(data2 + i) = *(data2 + i) + 1;
6803 data3 = (char *) malloc (pagesize);
6804 if (!data3)
6805 exit (1);
6806 if (read (fd, data3, pagesize) != pagesize)
6807 exit (1);
6808 for (i = 0; i < pagesize; ++i)
6809 if (*(data + i) != *(data3 + i))
6810 exit (1);
6811 close (fd);
6812 exit (0);
6813 }
6814 _ACEOF
6815 rm -f conftest$ac_exeext
6816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6817 (eval $ac_link) 2>&5
6818 ac_status=$?
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6822 (eval $ac_try) 2>&5
6823 ac_status=$?
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); }; }; then
6826 ac_cv_func_mmap_fixed_mapped=yes
6827 else
6828 echo "$as_me: program exited with status $ac_status" >&5
6829 echo "$as_me: failed program was:" >&5
6830 sed 's/^/| /' conftest.$ac_ext >&5
6831
6832 ( exit $ac_status )
6833 ac_cv_func_mmap_fixed_mapped=no
6834 fi
6835 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6836 fi
6837 fi
6838 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6839 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6840 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6841
6842 cat >>confdefs.h <<\_ACEOF
6843 #define HAVE_MMAP 1
6844 _ACEOF
6845
6846 fi
6847 rm -f conftest.mmap
6848
6849
6850 echo "$as_me:$LINENO: checking for sin_len" >&5
6851 echo $ECHO_N "checking for sin_len... $ECHO_C" >&6
6852 if test "${ac_cv_sin_len+set}" = set; then
6853 echo $ECHO_N "(cached) $ECHO_C" >&6
6854 else
6855 cat >conftest.$ac_ext <<_ACEOF
6856 /* confdefs.h. */
6857 _ACEOF
6858 cat confdefs.h >>conftest.$ac_ext
6859 cat >>conftest.$ac_ext <<_ACEOF
6860 /* end confdefs.h. */
6861 #include <sys/types.h>
6862 #include <netinet/in.h>
6863 int
6864 main ()
6865 {
6866 struct sockaddr_in *sin; sin->sin_len = 0;
6867 ;
6868 return 0;
6869 }
6870 _ACEOF
6871 rm -f conftest.$ac_objext
6872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6873 (eval $ac_compile) 2>conftest.er1
6874 ac_status=$?
6875 grep -v '^ *+' conftest.er1 >conftest.err
6876 rm -f conftest.er1
6877 cat conftest.err >&5
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); } &&
6880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6882 (eval $ac_try) 2>&5
6883 ac_status=$?
6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); }; } &&
6886 { ac_try='test -s conftest.$ac_objext'
6887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6888 (eval $ac_try) 2>&5
6889 ac_status=$?
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); }; }; then
6892 ac_cv_sin_len="yes"
6893 else
6894 echo "$as_me: failed program was:" >&5
6895 sed 's/^/| /' conftest.$ac_ext >&5
6896
6897 ac_cv_sin_len="no"
6898 fi
6899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6900 fi
6901 echo "$as_me:$LINENO: result: $ac_cv_sin_len" >&5
6902 echo "${ECHO_T}$ac_cv_sin_len" >&6
6903 if test $ac_cv_sin_len = yes ; then
6904
6905 cat >>confdefs.h <<\_ACEOF
6906 #define HAVE_SIN_LEN 1
6907 _ACEOF
6908
6909 fi
6910
6911 echo "$as_me:$LINENO: checking for socklen_t" >&5
6912 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
6913 if test "${ac_cv_type_socklen_t+set}" = set; then
6914 echo $ECHO_N "(cached) $ECHO_C" >&6
6915 else
6916 cat >conftest.$ac_ext <<_ACEOF
6917 /* confdefs.h. */
6918 _ACEOF
6919 cat confdefs.h >>conftest.$ac_ext
6920 cat >>conftest.$ac_ext <<_ACEOF
6921 /* end confdefs.h. */
6922 #include <sys/types.h>
6923 #include<sys/socket.h>
6924
6925 int
6926 main ()
6927 {
6928 if ((socklen_t *) 0)
6929 return 0;
6930 if (sizeof (socklen_t))
6931 return 0;
6932 ;
6933 return 0;
6934 }
6935 _ACEOF
6936 rm -f conftest.$ac_objext
6937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6938 (eval $ac_compile) 2>conftest.er1
6939 ac_status=$?
6940 grep -v '^ *+' conftest.er1 >conftest.err
6941 rm -f conftest.er1
6942 cat conftest.err >&5
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); } &&
6945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6947 (eval $ac_try) 2>&5
6948 ac_status=$?
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); }; } &&
6951 { ac_try='test -s conftest.$ac_objext'
6952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6953 (eval $ac_try) 2>&5
6954 ac_status=$?
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); }; }; then
6957 ac_cv_type_socklen_t=yes
6958 else
6959 echo "$as_me: failed program was:" >&5
6960 sed 's/^/| /' conftest.$ac_ext >&5
6961
6962 ac_cv_type_socklen_t=no
6963 fi
6964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6965 fi
6966 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
6967 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
6968 if test $ac_cv_type_socklen_t = yes; then
6969 :
6970 else
6971
6972 echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
6973 echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6
6974 if test "${curl_cv_socklen_t_equiv+set}" = set; then
6975 echo $ECHO_N "(cached) $ECHO_C" >&6
6976 else
6977
6978 curl_cv_socklen_t_equiv=
6979 for arg2 in "struct sockaddr" void ; do
6980 for t in int size_t unsigned long "unsigned long" ; do
6981 cat >conftest.$ac_ext <<_ACEOF
6982 /* confdefs.h. */
6983 _ACEOF
6984 cat confdefs.h >>conftest.$ac_ext
6985 cat >>conftest.$ac_ext <<_ACEOF
6986 /* end confdefs.h. */
6987 #include <sys/types.h>
6988 #include <sys/socket.h>
6989 int getpeername (int $arg2 *, $t *);
6990 int
6991 main ()
6992 {
6993 $t len;
6994 getpeername(0, 0, &len);
6995 ;
6996 return 0;
6997 }
6998 _ACEOF
6999 rm -f conftest.$ac_objext
7000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7001 (eval $ac_compile) 2>conftest.er1
7002 ac_status=$?
7003 grep -v '^ *+' conftest.er1 >conftest.err
7004 rm -f conftest.er1
7005 cat conftest.err >&5
7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); } &&
7008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7010 (eval $ac_try) 2>&5
7011 ac_status=$?
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); }; } &&
7014 { ac_try='test -s conftest.$ac_objext'
7015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7016 (eval $ac_try) 2>&5
7017 ac_status=$?
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); }; }; then
7020 curl_cv_socklen_t_equiv="$t"
7021 break
7022 else
7023 echo "$as_me: failed program was:" >&5
7024 sed 's/^/| /' conftest.$ac_ext >&5
7025
7026 fi
7027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7028 done
7029 done
7030
7031 fi
7032
7033 echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
7034 echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6
7035
7036 cat >>confdefs.h <<_ACEOF
7037 #define socklen_t $curl_cv_socklen_t_equiv
7038 _ACEOF
7039
7040 fi
7041
7042
7043 OLD_CFLAGS=$CFLAGS
7044 CFLAGS="$CFLAGS -W -Wall -Werror"
7045
7046 echo "$as_me:$LINENO: checking for time_t format" >&5
7047 echo $ECHO_N "checking for time_t format... $ECHO_C" >&6
7048 if test "${ac_cv_fmt_time_t+set}" = set; then
7049 echo $ECHO_N "(cached) $ECHO_C" >&6
7050 else
7051
7052 ac_cv_fmt_time_t=no
7053 cat >conftest.$ac_ext <<_ACEOF
7054 #include <sys/types.h>
7055 #include <stdio.h>
7056 void myfunc(void) {
7057 time_t test=0;
7058 printf("%li", test);
7059 }
7060 _ACEOF
7061 rm -f conftest.$ac_objext
7062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7063 (eval $ac_compile) 2>conftest.er1
7064 ac_status=$?
7065 grep -v '^ *+' conftest.er1 >conftest.err
7066 rm -f conftest.er1
7067 cat conftest.err >&5
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); } &&
7070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7072 (eval $ac_try) 2>&5
7073 ac_status=$?
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); }; } &&
7076 { ac_try='test -s conftest.$ac_objext'
7077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7078 (eval $ac_try) 2>&5
7079 ac_status=$?
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); }; }; then
7082 ac_cv_fmt_time_t="\"%li\""
7083 else
7084 echo "$as_me: failed program was:" >&5
7085 sed 's/^/| /' conftest.$ac_ext >&5
7086
7087 fi
7088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7089 if test $ac_cv_fmt_time_t = no; then
7090 cat >conftest.$ac_ext <<_ACEOF
7091 #include <sys/types.h>
7092 #include <stdio.h>
7093 void myfunc(void) {
7094 time_t test=0;
7095 printf("%i", test);
7096 }
7097 _ACEOF
7098 rm -f conftest.$ac_objext
7099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7100 (eval $ac_compile) 2>conftest.er1
7101 ac_status=$?
7102 grep -v '^ *+' conftest.er1 >conftest.err
7103 rm -f conftest.er1
7104 cat conftest.err >&5
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); } &&
7107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7109 (eval $ac_try) 2>&5
7110 ac_status=$?
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); }; } &&
7113 { ac_try='test -s conftest.$ac_objext'
7114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7115 (eval $ac_try) 2>&5
7116 ac_status=$?
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); }; }; then
7119 ac_cv_fmt_time_t="\"%i\""
7120 else
7121 echo "$as_me: failed program was:" >&5
7122 sed 's/^/| /' conftest.$ac_ext >&5
7123
7124 fi
7125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7126 fi
7127 if test $ac_cv_fmt_time_t = no; then
7128 { { echo "$as_me:$LINENO: error: Cannot detect format string for time_t
7129 Please check sys/types.h for the typedef of time_t and submit to a developer" >&5
7130 echo "$as_me: error: Cannot detect format string for time_t
7131 Please check sys/types.h for the typedef of time_t and submit to a developer" >&2;}
7132 { (exit 1); exit 1; }; }
7133 fi
7134
7135 fi
7136
7137
7138 cat >>confdefs.h <<_ACEOF
7139 #define FMT_TIME_T $ac_cv_fmt_time_t
7140 _ACEOF
7141
7142 echo "$as_me:$LINENO: result: $ac_cv_fmt_time_t" >&5
7143 echo "${ECHO_T}$ac_cv_fmt_time_t" >&6
7144
7145 echo "$as_me:$LINENO: checking for va_copy" >&5
7146 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
7147 if test "${ac_cv_c_va_copy+set}" = set; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7149 else
7150 cat >conftest.$ac_ext <<_ACEOF
7151 /* confdefs.h. */
7152 _ACEOF
7153 cat confdefs.h >>conftest.$ac_ext
7154 cat >>conftest.$ac_ext <<_ACEOF
7155 /* end confdefs.h. */
7156 #include <stdarg.h>
7157 int
7158 main ()
7159 {
7160 va_list ap1, ap2; va_copy(ap1, ap2);
7161 ;
7162 return 0;
7163 }
7164 _ACEOF
7165 rm -f conftest.$ac_objext conftest$ac_exeext
7166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7167 (eval $ac_link) 2>conftest.er1
7168 ac_status=$?
7169 grep -v '^ *+' conftest.er1 >conftest.err
7170 rm -f conftest.er1
7171 cat conftest.err >&5
7172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); } &&
7174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7176 (eval $ac_try) 2>&5
7177 ac_status=$?
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); }; } &&
7180 { ac_try='test -s conftest$ac_exeext'
7181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7182 (eval $ac_try) 2>&5
7183 ac_status=$?
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); }; }; then
7186 ac_cv_c_va_copy="yes"
7187 else
7188 echo "$as_me: failed program was:" >&5
7189 sed 's/^/| /' conftest.$ac_ext >&5
7190
7191 ac_cv_c_va_copy="no"
7192
7193 fi
7194 rm -f conftest.err conftest.$ac_objext \
7195 conftest$ac_exeext conftest.$ac_ext
7196 fi
7197 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
7198 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
7199 if test "$ac_cv_c_va_copy" = "yes" ; then
7200
7201 cat >>confdefs.h <<\_ACEOF
7202 #define HAVE_VA_COPY 1
7203 _ACEOF
7204
7205 fi
7206
7207 echo "$as_me:$LINENO: checking for __va_copy" >&5
7208 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
7209 if test "${ac_cv_c___va_copy+set}" = set; then
7210 echo $ECHO_N "(cached) $ECHO_C" >&6
7211 else
7212 cat >conftest.$ac_ext <<_ACEOF
7213 /* confdefs.h. */
7214 _ACEOF
7215 cat confdefs.h >>conftest.$ac_ext
7216 cat >>conftest.$ac_ext <<_ACEOF
7217 /* end confdefs.h. */
7218 #include <stdarg.h>
7219 int
7220 main ()
7221 {
7222 va_list ap1, ap2; __va_copy(ap1, ap2);
7223 ;
7224 return 0;
7225 }
7226 _ACEOF
7227 rm -f conftest.$ac_objext conftest$ac_exeext
7228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7229 (eval $ac_link) 2>conftest.er1
7230 ac_status=$?
7231 grep -v '^ *+' conftest.er1 >conftest.err
7232 rm -f conftest.er1
7233 cat conftest.err >&5
7234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235 (exit $ac_status); } &&
7236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7238 (eval $ac_try) 2>&5
7239 ac_status=$?
7240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241 (exit $ac_status); }; } &&
7242 { ac_try='test -s conftest$ac_exeext'
7243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7244 (eval $ac_try) 2>&5
7245 ac_status=$?
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); }; }; then
7248 ac_cv_c___va_copy="yes"
7249 else
7250 echo "$as_me: failed program was:" >&5
7251 sed 's/^/| /' conftest.$ac_ext >&5
7252
7253 ac_cv_c___va_copy="no"
7254
7255 fi
7256 rm -f conftest.err conftest.$ac_objext \
7257 conftest$ac_exeext conftest.$ac_ext
7258 fi
7259 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
7260 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
7261 if test "$ac_cv_c___va_copy" = "yes" ; then
7262
7263 cat >>confdefs.h <<\_ACEOF
7264 #define HAVE___VA_COPY 1
7265 _ACEOF
7266
7267 fi
7268
7269 CFLAGS=$OLD_CFLAGS
7270
7271 echo "$as_me:$LINENO: checking which malloc to use" >&5
7272 echo $ECHO_N "checking which malloc to use... $ECHO_C" >&6
7273
7274 # Check whether --with-malloc or --without-malloc was given.
7275 if test "${with_malloc+set}" = set; then
7276 withval="$with_malloc"
7277
7278 else
7279 withval="system"
7280 fi;
7281 if test "x$withval" = "xsystem" ; then
7282 echo "$as_me:$LINENO: result: system" >&5
7283 echo "${ECHO_T}system" >&6
7284
7285 cat >>confdefs.h <<\_ACEOF
7286 #define WITH_MALLOC_SYSTEM 1
7287 _ACEOF
7288
7289 x3_malloc="System"
7290 elif test "x$withval" = "xdmalloc" ; then
7291 echo "$as_me:$LINENO: result: dmalloc" >&5
7292 echo "${ECHO_T}dmalloc" >&6
7293
7294 for ac_header in dmalloc.h
7295 do
7296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7298 echo "$as_me:$LINENO: checking for $ac_header" >&5
7299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7302 fi
7303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7305 else
7306 # Is the header compilable?
7307 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7309 cat >conftest.$ac_ext <<_ACEOF
7310 /* confdefs.h. */
7311 _ACEOF
7312 cat confdefs.h >>conftest.$ac_ext
7313 cat >>conftest.$ac_ext <<_ACEOF
7314 /* end confdefs.h. */
7315 $ac_includes_default
7316 #include <$ac_header>
7317 _ACEOF
7318 rm -f conftest.$ac_objext
7319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7320 (eval $ac_compile) 2>conftest.er1
7321 ac_status=$?
7322 grep -v '^ *+' conftest.er1 >conftest.err
7323 rm -f conftest.er1
7324 cat conftest.err >&5
7325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326 (exit $ac_status); } &&
7327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7329 (eval $ac_try) 2>&5
7330 ac_status=$?
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); }; } &&
7333 { ac_try='test -s conftest.$ac_objext'
7334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7335 (eval $ac_try) 2>&5
7336 ac_status=$?
7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); }; }; then
7339 ac_header_compiler=yes
7340 else
7341 echo "$as_me: failed program was:" >&5
7342 sed 's/^/| /' conftest.$ac_ext >&5
7343
7344 ac_header_compiler=no
7345 fi
7346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7347 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7348 echo "${ECHO_T}$ac_header_compiler" >&6
7349
7350 # Is the header present?
7351 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7353 cat >conftest.$ac_ext <<_ACEOF
7354 /* confdefs.h. */
7355 _ACEOF
7356 cat confdefs.h >>conftest.$ac_ext
7357 cat >>conftest.$ac_ext <<_ACEOF
7358 /* end confdefs.h. */
7359 #include <$ac_header>
7360 _ACEOF
7361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7363 ac_status=$?
7364 grep -v '^ *+' conftest.er1 >conftest.err
7365 rm -f conftest.er1
7366 cat conftest.err >&5
7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); } >/dev/null; then
7369 if test -s conftest.err; then
7370 ac_cpp_err=$ac_c_preproc_warn_flag
7371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7372 else
7373 ac_cpp_err=
7374 fi
7375 else
7376 ac_cpp_err=yes
7377 fi
7378 if test -z "$ac_cpp_err"; then
7379 ac_header_preproc=yes
7380 else
7381 echo "$as_me: failed program was:" >&5
7382 sed 's/^/| /' conftest.$ac_ext >&5
7383
7384 ac_header_preproc=no
7385 fi
7386 rm -f conftest.err conftest.$ac_ext
7387 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7388 echo "${ECHO_T}$ac_header_preproc" >&6
7389
7390 # So? What about this header?
7391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7392 yes:no: )
7393 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7396 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7397 ac_header_preproc=yes
7398 ;;
7399 no:yes:* )
7400 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7401 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7402 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7403 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7404 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7405 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7406 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7407 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7410 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7411 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7412 (
7413 cat <<\_ASBOX
7414 ## -------------------------------------------------- ##
7415 ## Report this to evilnet-devel@lists.sourceforge.net ##
7416 ## -------------------------------------------------- ##
7417 _ASBOX
7418 ) |
7419 sed "s/^/$as_me: WARNING: /" >&2
7420 ;;
7421 esac
7422 echo "$as_me:$LINENO: checking for $ac_header" >&5
7423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7425 echo $ECHO_N "(cached) $ECHO_C" >&6
7426 else
7427 eval "$as_ac_Header=\$ac_header_preproc"
7428 fi
7429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7431
7432 fi
7433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7434 cat >>confdefs.h <<_ACEOF
7435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7436 _ACEOF
7437
7438 else
7439 { { echo "$as_me:$LINENO: error: dmalloc header file missing. dmalloc build will fail." >&5
7440 echo "$as_me: error: dmalloc header file missing. dmalloc build will fail." >&2;}
7441 { (exit 1); exit 1; }; }
7442 fi
7443
7444 done
7445
7446
7447 echo "$as_me:$LINENO: checking for malloc in -ldmalloc" >&5
7448 echo $ECHO_N "checking for malloc in -ldmalloc... $ECHO_C" >&6
7449 if test "${ac_cv_lib_dmalloc_malloc+set}" = set; then
7450 echo $ECHO_N "(cached) $ECHO_C" >&6
7451 else
7452 ac_check_lib_save_LIBS=$LIBS
7453 LIBS="-ldmalloc $LIBS"
7454 cat >conftest.$ac_ext <<_ACEOF
7455 /* confdefs.h. */
7456 _ACEOF
7457 cat confdefs.h >>conftest.$ac_ext
7458 cat >>conftest.$ac_ext <<_ACEOF
7459 /* end confdefs.h. */
7460
7461 /* Override any gcc2 internal prototype to avoid an error. */
7462 #ifdef __cplusplus
7463 extern "C"
7464 #endif
7465 /* We use char because int might match the return type of a gcc2
7466 builtin and then its argument prototype would still apply. */
7467 char malloc ();
7468 int
7469 main ()
7470 {
7471 malloc ();
7472 ;
7473 return 0;
7474 }
7475 _ACEOF
7476 rm -f conftest.$ac_objext conftest$ac_exeext
7477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7478 (eval $ac_link) 2>conftest.er1
7479 ac_status=$?
7480 grep -v '^ *+' conftest.er1 >conftest.err
7481 rm -f conftest.er1
7482 cat conftest.err >&5
7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484 (exit $ac_status); } &&
7485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7487 (eval $ac_try) 2>&5
7488 ac_status=$?
7489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490 (exit $ac_status); }; } &&
7491 { ac_try='test -s conftest$ac_exeext'
7492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7493 (eval $ac_try) 2>&5
7494 ac_status=$?
7495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496 (exit $ac_status); }; }; then
7497 ac_cv_lib_dmalloc_malloc=yes
7498 else
7499 echo "$as_me: failed program was:" >&5
7500 sed 's/^/| /' conftest.$ac_ext >&5
7501
7502 ac_cv_lib_dmalloc_malloc=no
7503 fi
7504 rm -f conftest.err conftest.$ac_objext \
7505 conftest$ac_exeext conftest.$ac_ext
7506 LIBS=$ac_check_lib_save_LIBS
7507 fi
7508 echo "$as_me:$LINENO: result: $ac_cv_lib_dmalloc_malloc" >&5
7509 echo "${ECHO_T}$ac_cv_lib_dmalloc_malloc" >&6
7510 if test $ac_cv_lib_dmalloc_malloc = yes; then
7511 cat >>confdefs.h <<_ACEOF
7512 #define HAVE_LIBDMALLOC 1
7513 _ACEOF
7514
7515 LIBS="-ldmalloc $LIBS"
7516
7517 else
7518 { { echo "$as_me:$LINENO: error: dmalloc library is missing. dmalloc build will fail." >&5
7519 echo "$as_me: error: dmalloc library is missing. dmalloc build will fail." >&2;}
7520 { (exit 1); exit 1; }; }
7521 fi
7522
7523
7524 cat >>confdefs.h <<\_ACEOF
7525 #define WITH_MALLOC_DMALLOC 1
7526 _ACEOF
7527
7528 x3_malloc="DMalloc"
7529 elif test "x$withval" = "xmpatrol" ; then
7530 echo "$as_me:$LINENO: result: mpatrol" >&5
7531 echo "${ECHO_T}mpatrol" >&6
7532
7533 for ac_header in mpatrol.h
7534 do
7535 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7537 echo "$as_me:$LINENO: checking for $ac_header" >&5
7538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7540 echo $ECHO_N "(cached) $ECHO_C" >&6
7541 fi
7542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7544 else
7545 # Is the header compilable?
7546 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7547 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7548 cat >conftest.$ac_ext <<_ACEOF
7549 /* confdefs.h. */
7550 _ACEOF
7551 cat confdefs.h >>conftest.$ac_ext
7552 cat >>conftest.$ac_ext <<_ACEOF
7553 /* end confdefs.h. */
7554 $ac_includes_default
7555 #include <$ac_header>
7556 _ACEOF
7557 rm -f conftest.$ac_objext
7558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7559 (eval $ac_compile) 2>conftest.er1
7560 ac_status=$?
7561 grep -v '^ *+' conftest.er1 >conftest.err
7562 rm -f conftest.er1
7563 cat conftest.err >&5
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); } &&
7566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7568 (eval $ac_try) 2>&5
7569 ac_status=$?
7570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); }; } &&
7572 { ac_try='test -s conftest.$ac_objext'
7573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7574 (eval $ac_try) 2>&5
7575 ac_status=$?
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); }; }; then
7578 ac_header_compiler=yes
7579 else
7580 echo "$as_me: failed program was:" >&5
7581 sed 's/^/| /' conftest.$ac_ext >&5
7582
7583 ac_header_compiler=no
7584 fi
7585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7586 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7587 echo "${ECHO_T}$ac_header_compiler" >&6
7588
7589 # Is the header present?
7590 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7591 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7592 cat >conftest.$ac_ext <<_ACEOF
7593 /* confdefs.h. */
7594 _ACEOF
7595 cat confdefs.h >>conftest.$ac_ext
7596 cat >>conftest.$ac_ext <<_ACEOF
7597 /* end confdefs.h. */
7598 #include <$ac_header>
7599 _ACEOF
7600 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7601 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7602 ac_status=$?
7603 grep -v '^ *+' conftest.er1 >conftest.err
7604 rm -f conftest.er1
7605 cat conftest.err >&5
7606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 (exit $ac_status); } >/dev/null; then
7608 if test -s conftest.err; then
7609 ac_cpp_err=$ac_c_preproc_warn_flag
7610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7611 else
7612 ac_cpp_err=
7613 fi
7614 else
7615 ac_cpp_err=yes
7616 fi
7617 if test -z "$ac_cpp_err"; then
7618 ac_header_preproc=yes
7619 else
7620 echo "$as_me: failed program was:" >&5
7621 sed 's/^/| /' conftest.$ac_ext >&5
7622
7623 ac_header_preproc=no
7624 fi
7625 rm -f conftest.err conftest.$ac_ext
7626 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7627 echo "${ECHO_T}$ac_header_preproc" >&6
7628
7629 # So? What about this header?
7630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7631 yes:no: )
7632 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7633 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7635 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7636 ac_header_preproc=yes
7637 ;;
7638 no:yes:* )
7639 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7640 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7641 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7642 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7643 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7644 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7645 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7646 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7649 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7650 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7651 (
7652 cat <<\_ASBOX
7653 ## -------------------------------------------------- ##
7654 ## Report this to evilnet-devel@lists.sourceforge.net ##
7655 ## -------------------------------------------------- ##
7656 _ASBOX
7657 ) |
7658 sed "s/^/$as_me: WARNING: /" >&2
7659 ;;
7660 esac
7661 echo "$as_me:$LINENO: checking for $ac_header" >&5
7662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
7665 else
7666 eval "$as_ac_Header=\$ac_header_preproc"
7667 fi
7668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7670
7671 fi
7672 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7673 cat >>confdefs.h <<_ACEOF
7674 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7675 _ACEOF
7676
7677 else
7678 { { echo "$as_me:$LINENO: error: mpatrol header file missing. mpatrol build will fail." >&5
7679 echo "$as_me: error: mpatrol header file missing. mpatrol build will fail." >&2;}
7680 { (exit 1); exit 1; }; }
7681 fi
7682
7683 done
7684
7685
7686 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
7687 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
7688 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
7689 echo $ECHO_N "(cached) $ECHO_C" >&6
7690 else
7691 ac_check_lib_save_LIBS=$LIBS
7692 LIBS="-lelf $LIBS"
7693 cat >conftest.$ac_ext <<_ACEOF
7694 /* confdefs.h. */
7695 _ACEOF
7696 cat confdefs.h >>conftest.$ac_ext
7697 cat >>conftest.$ac_ext <<_ACEOF
7698 /* end confdefs.h. */
7699
7700 /* Override any gcc2 internal prototype to avoid an error. */
7701 #ifdef __cplusplus
7702 extern "C"
7703 #endif
7704 /* We use char because int might match the return type of a gcc2
7705 builtin and then its argument prototype would still apply. */
7706 char elf_begin ();
7707 int
7708 main ()
7709 {
7710 elf_begin ();
7711 ;
7712 return 0;
7713 }
7714 _ACEOF
7715 rm -f conftest.$ac_objext conftest$ac_exeext
7716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7717 (eval $ac_link) 2>conftest.er1
7718 ac_status=$?
7719 grep -v '^ *+' conftest.er1 >conftest.err
7720 rm -f conftest.er1
7721 cat conftest.err >&5
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); } &&
7724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7726 (eval $ac_try) 2>&5
7727 ac_status=$?
7728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 (exit $ac_status); }; } &&
7730 { ac_try='test -s conftest$ac_exeext'
7731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7732 (eval $ac_try) 2>&5
7733 ac_status=$?
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); }; }; then
7736 ac_cv_lib_elf_elf_begin=yes
7737 else
7738 echo "$as_me: failed program was:" >&5
7739 sed 's/^/| /' conftest.$ac_ext >&5
7740
7741 ac_cv_lib_elf_elf_begin=no
7742 fi
7743 rm -f conftest.err conftest.$ac_objext \
7744 conftest$ac_exeext conftest.$ac_ext
7745 LIBS=$ac_check_lib_save_LIBS
7746 fi
7747 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
7748 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
7749 if test $ac_cv_lib_elf_elf_begin = yes; then
7750 cat >>confdefs.h <<_ACEOF
7751 #define HAVE_LIBELF 1
7752 _ACEOF
7753
7754 LIBS="-lelf $LIBS"
7755
7756 fi
7757
7758
7759 echo "$as_me:$LINENO: checking for __mp_atexit in -lmpatrol" >&5
7760 echo $ECHO_N "checking for __mp_atexit in -lmpatrol... $ECHO_C" >&6
7761 if test "${ac_cv_lib_mpatrol___mp_atexit+set}" = set; then
7762 echo $ECHO_N "(cached) $ECHO_C" >&6
7763 else
7764 ac_check_lib_save_LIBS=$LIBS
7765 LIBS="-lmpatrol $LIBS"
7766 cat >conftest.$ac_ext <<_ACEOF
7767 /* confdefs.h. */
7768 _ACEOF
7769 cat confdefs.h >>conftest.$ac_ext
7770 cat >>conftest.$ac_ext <<_ACEOF
7771 /* end confdefs.h. */
7772
7773 /* Override any gcc2 internal prototype to avoid an error. */
7774 #ifdef __cplusplus
7775 extern "C"
7776 #endif
7777 /* We use char because int might match the return type of a gcc2
7778 builtin and then its argument prototype would still apply. */
7779 char __mp_atexit ();
7780 int
7781 main ()
7782 {
7783 __mp_atexit ();
7784 ;
7785 return 0;
7786 }
7787 _ACEOF
7788 rm -f conftest.$ac_objext conftest$ac_exeext
7789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7790 (eval $ac_link) 2>conftest.er1
7791 ac_status=$?
7792 grep -v '^ *+' conftest.er1 >conftest.err
7793 rm -f conftest.er1
7794 cat conftest.err >&5
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); } &&
7797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7799 (eval $ac_try) 2>&5
7800 ac_status=$?
7801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802 (exit $ac_status); }; } &&
7803 { ac_try='test -s conftest$ac_exeext'
7804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7805 (eval $ac_try) 2>&5
7806 ac_status=$?
7807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808 (exit $ac_status); }; }; then
7809 ac_cv_lib_mpatrol___mp_atexit=yes
7810 else
7811 echo "$as_me: failed program was:" >&5
7812 sed 's/^/| /' conftest.$ac_ext >&5
7813
7814 ac_cv_lib_mpatrol___mp_atexit=no
7815 fi
7816 rm -f conftest.err conftest.$ac_objext \
7817 conftest$ac_exeext conftest.$ac_ext
7818 LIBS=$ac_check_lib_save_LIBS
7819 fi
7820 echo "$as_me:$LINENO: result: $ac_cv_lib_mpatrol___mp_atexit" >&5
7821 echo "${ECHO_T}$ac_cv_lib_mpatrol___mp_atexit" >&6
7822 if test $ac_cv_lib_mpatrol___mp_atexit = yes; then
7823 cat >>confdefs.h <<_ACEOF
7824 #define HAVE_LIBMPATROL 1
7825 _ACEOF
7826
7827 LIBS="-lmpatrol $LIBS"
7828
7829 else
7830 { { echo "$as_me:$LINENO: error: mpatrol library is missing completely. mpatrol build will fail." >&5
7831 echo "$as_me: error: mpatrol library is missing completely. mpatrol build will fail." >&2;}
7832 { (exit 1); exit 1; }; }
7833 fi
7834
7835
7836 cat >>confdefs.h <<\_ACEOF
7837 #define WITH_MALLOC_MPATROL 1
7838 _ACEOF
7839
7840 x3_malloc="MPatrol"
7841 elif test "x$withval" = "xboehm-gc" ; then
7842 echo "$as_me:$LINENO: result: boehm-gc" >&5
7843 echo "${ECHO_T}boehm-gc" >&6
7844
7845 for ac_header in gc/gc.h
7846 do
7847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7849 echo "$as_me:$LINENO: checking for $ac_header" >&5
7850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7852 echo $ECHO_N "(cached) $ECHO_C" >&6
7853 fi
7854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7856 else
7857 # Is the header compilable?
7858 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7859 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7860 cat >conftest.$ac_ext <<_ACEOF
7861 /* confdefs.h. */
7862 _ACEOF
7863 cat confdefs.h >>conftest.$ac_ext
7864 cat >>conftest.$ac_ext <<_ACEOF
7865 /* end confdefs.h. */
7866 $ac_includes_default
7867 #include <$ac_header>
7868 _ACEOF
7869 rm -f conftest.$ac_objext
7870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7871 (eval $ac_compile) 2>conftest.er1
7872 ac_status=$?
7873 grep -v '^ *+' conftest.er1 >conftest.err
7874 rm -f conftest.er1
7875 cat conftest.err >&5
7876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877 (exit $ac_status); } &&
7878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7880 (eval $ac_try) 2>&5
7881 ac_status=$?
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); }; } &&
7884 { ac_try='test -s conftest.$ac_objext'
7885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7886 (eval $ac_try) 2>&5
7887 ac_status=$?
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); }; }; then
7890 ac_header_compiler=yes
7891 else
7892 echo "$as_me: failed program was:" >&5
7893 sed 's/^/| /' conftest.$ac_ext >&5
7894
7895 ac_header_compiler=no
7896 fi
7897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7898 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7899 echo "${ECHO_T}$ac_header_compiler" >&6
7900
7901 # Is the header present?
7902 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7903 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7904 cat >conftest.$ac_ext <<_ACEOF
7905 /* confdefs.h. */
7906 _ACEOF
7907 cat confdefs.h >>conftest.$ac_ext
7908 cat >>conftest.$ac_ext <<_ACEOF
7909 /* end confdefs.h. */
7910 #include <$ac_header>
7911 _ACEOF
7912 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7913 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7914 ac_status=$?
7915 grep -v '^ *+' conftest.er1 >conftest.err
7916 rm -f conftest.er1
7917 cat conftest.err >&5
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); } >/dev/null; then
7920 if test -s conftest.err; then
7921 ac_cpp_err=$ac_c_preproc_warn_flag
7922 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7923 else
7924 ac_cpp_err=
7925 fi
7926 else
7927 ac_cpp_err=yes
7928 fi
7929 if test -z "$ac_cpp_err"; then
7930 ac_header_preproc=yes
7931 else
7932 echo "$as_me: failed program was:" >&5
7933 sed 's/^/| /' conftest.$ac_ext >&5
7934
7935 ac_header_preproc=no
7936 fi
7937 rm -f conftest.err conftest.$ac_ext
7938 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7939 echo "${ECHO_T}$ac_header_preproc" >&6
7940
7941 # So? What about this header?
7942 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7943 yes:no: )
7944 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7945 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7947 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7948 ac_header_preproc=yes
7949 ;;
7950 no:yes:* )
7951 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7952 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7953 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7954 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7955 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7956 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7957 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7958 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7960 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7961 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7962 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7963 (
7964 cat <<\_ASBOX
7965 ## -------------------------------------------------- ##
7966 ## Report this to evilnet-devel@lists.sourceforge.net ##
7967 ## -------------------------------------------------- ##
7968 _ASBOX
7969 ) |
7970 sed "s/^/$as_me: WARNING: /" >&2
7971 ;;
7972 esac
7973 echo "$as_me:$LINENO: checking for $ac_header" >&5
7974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7976 echo $ECHO_N "(cached) $ECHO_C" >&6
7977 else
7978 eval "$as_ac_Header=\$ac_header_preproc"
7979 fi
7980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7981 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7982
7983 fi
7984 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7985 cat >>confdefs.h <<_ACEOF
7986 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7987 _ACEOF
7988
7989 else
7990 { { echo "$as_me:$LINENO: error: Boehm GC header file missing. boehm-gc build will fail." >&5
7991 echo "$as_me: error: Boehm GC header file missing. boehm-gc build will fail." >&2;}
7992 { (exit 1); exit 1; }; }
7993 fi
7994
7995 done
7996
7997
7998 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7999 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8000 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8001 echo $ECHO_N "(cached) $ECHO_C" >&6
8002 else
8003 ac_check_lib_save_LIBS=$LIBS
8004 LIBS="-ldl $LIBS"
8005 cat >conftest.$ac_ext <<_ACEOF
8006 /* confdefs.h. */
8007 _ACEOF
8008 cat confdefs.h >>conftest.$ac_ext
8009 cat >>conftest.$ac_ext <<_ACEOF
8010 /* end confdefs.h. */
8011
8012 /* Override any gcc2 internal prototype to avoid an error. */
8013 #ifdef __cplusplus
8014 extern "C"
8015 #endif
8016 /* We use char because int might match the return type of a gcc2
8017 builtin and then its argument prototype would still apply. */
8018 char dlopen ();
8019 int
8020 main ()
8021 {
8022 dlopen ();
8023 ;
8024 return 0;
8025 }
8026 _ACEOF
8027 rm -f conftest.$ac_objext conftest$ac_exeext
8028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8029 (eval $ac_link) 2>conftest.er1
8030 ac_status=$?
8031 grep -v '^ *+' conftest.er1 >conftest.err
8032 rm -f conftest.er1
8033 cat conftest.err >&5
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); } &&
8036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8038 (eval $ac_try) 2>&5
8039 ac_status=$?
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); }; } &&
8042 { ac_try='test -s conftest$ac_exeext'
8043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8044 (eval $ac_try) 2>&5
8045 ac_status=$?
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); }; }; then
8048 ac_cv_lib_dl_dlopen=yes
8049 else
8050 echo "$as_me: failed program was:" >&5
8051 sed 's/^/| /' conftest.$ac_ext >&5
8052
8053 ac_cv_lib_dl_dlopen=no
8054 fi
8055 rm -f conftest.err conftest.$ac_objext \
8056 conftest$ac_exeext conftest.$ac_ext
8057 LIBS=$ac_check_lib_save_LIBS
8058 fi
8059 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8060 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8061 if test $ac_cv_lib_dl_dlopen = yes; then
8062 cat >>confdefs.h <<_ACEOF
8063 #define HAVE_LIBDL 1
8064 _ACEOF
8065
8066 LIBS="-ldl $LIBS"
8067
8068 else
8069 { { echo "$as_me:$LINENO: error: libdl library is missing. boehm-gc build will fail." >&5
8070 echo "$as_me: error: libdl library is missing. boehm-gc build will fail." >&2;}
8071 { (exit 1); exit 1; }; }
8072 fi
8073
8074
8075 echo "$as_me:$LINENO: checking for GC_gcollect in -lgc" >&5
8076 echo $ECHO_N "checking for GC_gcollect in -lgc... $ECHO_C" >&6
8077 if test "${ac_cv_lib_gc_GC_gcollect+set}" = set; then
8078 echo $ECHO_N "(cached) $ECHO_C" >&6
8079 else
8080 ac_check_lib_save_LIBS=$LIBS
8081 LIBS="-lgc $LIBS"
8082 cat >conftest.$ac_ext <<_ACEOF
8083 /* confdefs.h. */
8084 _ACEOF
8085 cat confdefs.h >>conftest.$ac_ext
8086 cat >>conftest.$ac_ext <<_ACEOF
8087 /* end confdefs.h. */
8088
8089 /* Override any gcc2 internal prototype to avoid an error. */
8090 #ifdef __cplusplus
8091 extern "C"
8092 #endif
8093 /* We use char because int might match the return type of a gcc2
8094 builtin and then its argument prototype would still apply. */
8095 char GC_gcollect ();
8096 int
8097 main ()
8098 {
8099 GC_gcollect ();
8100 ;
8101 return 0;
8102 }
8103 _ACEOF
8104 rm -f conftest.$ac_objext conftest$ac_exeext
8105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8106 (eval $ac_link) 2>conftest.er1
8107 ac_status=$?
8108 grep -v '^ *+' conftest.er1 >conftest.err
8109 rm -f conftest.er1
8110 cat conftest.err >&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); } &&
8113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8115 (eval $ac_try) 2>&5
8116 ac_status=$?
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); }; } &&
8119 { ac_try='test -s conftest$ac_exeext'
8120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8121 (eval $ac_try) 2>&5
8122 ac_status=$?
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); }; }; then
8125 ac_cv_lib_gc_GC_gcollect=yes
8126 else
8127 echo "$as_me: failed program was:" >&5
8128 sed 's/^/| /' conftest.$ac_ext >&5
8129
8130 ac_cv_lib_gc_GC_gcollect=no
8131 fi
8132 rm -f conftest.err conftest.$ac_objext \
8133 conftest$ac_exeext conftest.$ac_ext
8134 LIBS=$ac_check_lib_save_LIBS
8135 fi
8136 echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_gcollect" >&5
8137 echo "${ECHO_T}$ac_cv_lib_gc_GC_gcollect" >&6
8138 if test $ac_cv_lib_gc_GC_gcollect = yes; then
8139 cat >>confdefs.h <<_ACEOF
8140 #define HAVE_LIBGC 1
8141 _ACEOF
8142
8143 LIBS="-lgc $LIBS"
8144
8145 else
8146 { { echo "$as_me:$LINENO: error: Boehm GC library is missing. boehm-gc build will fail." >&5
8147 echo "$as_me: error: Boehm GC library is missing. boehm-gc build will fail." >&2;}
8148 { (exit 1); exit 1; }; }
8149 fi
8150
8151
8152 cat >>confdefs.h <<\_ACEOF
8153 #define WITH_MALLOC_BOEHM_GC 1
8154 _ACEOF
8155
8156 x3_malloc="Boehm"
8157 elif test "x$withval" = "xx3" ; then
8158 echo "$as_me:$LINENO: result: x3" >&5
8159 echo "${ECHO_T}x3" >&6
8160
8161 cat >>confdefs.h <<\_ACEOF
8162 #define WITH_MALLOC_X3 1
8163 _ACEOF
8164
8165 MODULE_OBJS="$MODULE_OBJS alloc-x3.\$(OBJEXT)"
8166 x3_malloc="X3"
8167 elif test "x$withval" = "xslab" ; then
8168 echo "$as_me:$LINENO: result: slab" >&5
8169 echo "${ECHO_T}slab" >&6
8170
8171 cat >>confdefs.h <<\_ACEOF
8172 #define WITH_MALLOC_SLAB 1
8173 _ACEOF
8174
8175 MODULE_OBJS="$MODULE_OBJS alloc-slab.\$(OBJEXT)"
8176 x3_malloc="Slab"
8177 else
8178 { { echo "$as_me:$LINENO: error: Unknown malloc type $withval" >&5
8179 echo "$as_me: error: Unknown malloc type $withval" >&2;}
8180 { (exit 1); exit 1; }; }
8181 fi
8182
8183 echo "$as_me:$LINENO: checking which protocol to use" >&5
8184 echo $ECHO_N "checking which protocol to use... $ECHO_C" >&6
8185
8186 # Check whether --with-protocol or --without-protocol was given.
8187 if test "${with_protocol+set}" = set; then
8188 withval="$with_protocol"
8189
8190 else
8191 withval="p10"
8192 fi;
8193 if test "x$withval" = "xp10" ; then
8194 echo "$as_me:$LINENO: result: P10" >&5
8195 echo "${ECHO_T}P10" >&6
8196
8197 cat >>confdefs.h <<\_ACEOF
8198 #define WITH_PROTOCOL_P10 1
8199 _ACEOF
8200
8201 MODULE_OBJS="$MODULE_OBJS proto-p10.\$(OBJEXT)"
8202 PROTO_FILES=proto-p10.c
8203 x3_ircd="P10"
8204 else
8205 { { echo "$as_me:$LINENO: error: Unknown IRC dialect $withval" >&5
8206 echo "$as_me: error: Unknown IRC dialect $withval" >&2;}
8207 { (exit 1); exit 1; }; }
8208 fi
8209
8210
8211 # Check whether --with-getopt or --without-getopt was given.
8212 if test "${with_getopt+set}" = set; then
8213 withval="$with_getopt"
8214 if test "$withval" = no; then
8215
8216 cat >>confdefs.h <<\_ACEOF
8217 #define IGNORE_GETOPT 1
8218 _ACEOF
8219
8220 fi
8221 fi;
8222
8223 echo "$as_me:$LINENO: checking whether to enable tokenization" >&5
8224 echo $ECHO_N "checking whether to enable tokenization... $ECHO_C" >&6
8225 # Check whether --enable-tokens or --disable-tokens was given.
8226 if test "${enable_tokens+set}" = set; then
8227 enableval="$enable_tokens"
8228
8229 else
8230 enableval=yes
8231 fi;
8232 if test "z$enableval" = zno ; then
8233 echo "$as_me:$LINENO: result: no" >&5
8234 echo "${ECHO_T}no" >&6
8235 else
8236
8237 cat >>confdefs.h <<\_ACEOF
8238 #define ENABLE_TOKENS 1
8239 _ACEOF
8240
8241 echo "$as_me:$LINENO: result: yes" >&5
8242 echo "${ECHO_T}yes" >&6
8243 fi
8244
8245 echo "$as_me:$LINENO: checking whether to enable debug behaviors" >&5
8246 echo $ECHO_N "checking whether to enable debug behaviors... $ECHO_C" >&6
8247 # Check whether --enable-debug or --disable-debug was given.
8248 if test "${enable_debug+set}" = set; then
8249 enableval="$enable_debug"
8250
8251 CPPFLAGS="$CPPFLAGS"
8252 echo "$as_me:$LINENO: result: yes" >&5
8253 echo "${ECHO_T}yes" >&6
8254 x3_debug="Enabled"
8255
8256 else
8257
8258 CPPFLAGS="$CPPFLAGS -DNDEBUG"
8259 echo "$as_me:$LINENO: result: no" >&5
8260 echo "${ECHO_T}no" >&6
8261 x3_debug="Disabled"
8262
8263 fi;
8264
8265 if test -e src ; then
8266 if test ! -d src ; then
8267 { { echo "$as_me:$LINENO: error: src exists but is not a directory; please move it out of the way." >&5
8268 echo "$as_me: error: src exists but is not a directory; please move it out of the way." >&2;}
8269 { (exit 1); exit 1; }; }
8270 fi
8271 else
8272 mkdir src
8273 fi
8274 echo "$as_me:$LINENO: checking for extra module files" >&5
8275 echo $ECHO_N "checking for extra module files... $ECHO_C" >&6
8276 MODULE_DEFINES="src/modules-list.h"
8277 echo > $MODULE_DEFINES
8278 touch $MODULE_DEFINES
8279 # Check whether --enable-modules or --disable-modules was given.
8280 if test "${enable_modules+set}" = set; then
8281 enableval="$enable_modules"
8282
8283 OIFS="$IFS"
8284 IFS=','
8285 EXTRA_MODULE_OBJS=""
8286 module_list=""
8287 for module in $enableval ; do
8288 module=`echo $module | sed -e s/^mod-// -e s/\.c\$//`
8289 EXTRA_MODULE_OBJS="$EXTRA_MODULE_OBJS mod-$module.\$(OBJEXT)"
8290 module_list="$module_list $module"
8291 echo "WITH_MODULE($module)" >> $MODULE_DEFINES
8292 if test "x$module" = "xtrack" ; then
8293 TRACK="-D HAVE_TRACK"
8294 fi
8295 done
8296 IFS="$OIFS"
8297 MODULE_OBJS="$MODULE_OBJS $EXTRA_MODULE_OBJS"
8298 echo "$as_me:$LINENO: result: $module_list" >&5
8299 echo "${ECHO_T}$module_list" >&6
8300
8301 else
8302
8303 echo "$as_me:$LINENO: result: none" >&5
8304 echo "${ECHO_T}none" >&6
8305
8306 fi;
8307
8308 MY_SUBDIRS=""
8309 RX_INCLUDES=""
8310 RX_LIBS=""
8311 if test "${BROKEN_REGEX}" = yes -o "${ac_cv_func_regcomp}" = no; then
8312 MY_SUBDIRS="rx $MY_SUBDIRS"
8313 RX_INCLUDES="-I../rx"
8314 RX_LIBS="../rx/librx.a"
8315 fi
8316 MY_SUBDIRS="$MY_SUBDIRS src"
8317 CFLAGS="$CFLAGS $ANSI_SRC -W -Wall"
8318 if test "z$USE_MAINTAINER_MODE" = zyes ; then
8319 CFLAGS="$CFLAGS -Werror"
8320 fi
8321
8322
8323 withval=''
8324
8325 # Check whether --with-tre or --without-tre was given.
8326 if test "${with_tre+set}" = set; then
8327 withval="$with_tre"
8328
8329 fi;
8330 if test "x$withval" != "x"; then
8331 echo "$as_me:$LINENO: result: Using include dir $withval to find libtre" >&5
8332 echo "${ECHO_T}Using include dir $withval to find libtre" >&6
8333 CPPFLAGS="-I$withval/include -L$withval/lib"
8334 LIBS="$LIBS -L$withval/lib"
8335 else
8336 echo "$as_me:$LINENO: result: Looking for tre in system and home dirs (${HOME})..." >&5
8337 echo "${ECHO_T}Looking for tre in system and home dirs (${HOME})..." >&6
8338 CPPFLAGS="-I${HOME}/include -L${HOME}/lib"
8339 LIBS="$LIBS -L${HOME}/lib"
8340 fi
8341 if test "${ac_cv_header_tre_regex_h+set}" = set; then
8342 echo "$as_me:$LINENO: checking for tre/regex.h" >&5
8343 echo $ECHO_N "checking for tre/regex.h... $ECHO_C" >&6
8344 if test "${ac_cv_header_tre_regex_h+set}" = set; then
8345 echo $ECHO_N "(cached) $ECHO_C" >&6
8346 fi
8347 echo "$as_me:$LINENO: result: $ac_cv_header_tre_regex_h" >&5
8348 echo "${ECHO_T}$ac_cv_header_tre_regex_h" >&6
8349 else
8350 # Is the header compilable?
8351 echo "$as_me:$LINENO: checking tre/regex.h usability" >&5
8352 echo $ECHO_N "checking tre/regex.h usability... $ECHO_C" >&6
8353 cat >conftest.$ac_ext <<_ACEOF
8354 /* confdefs.h. */
8355 _ACEOF
8356 cat confdefs.h >>conftest.$ac_ext
8357 cat >>conftest.$ac_ext <<_ACEOF
8358 /* end confdefs.h. */
8359 $ac_includes_default
8360 #include <tre/regex.h>
8361 _ACEOF
8362 rm -f conftest.$ac_objext
8363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8364 (eval $ac_compile) 2>conftest.er1
8365 ac_status=$?
8366 grep -v '^ *+' conftest.er1 >conftest.err
8367 rm -f conftest.er1
8368 cat conftest.err >&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); } &&
8371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8373 (eval $ac_try) 2>&5
8374 ac_status=$?
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); }; } &&
8377 { ac_try='test -s conftest.$ac_objext'
8378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8379 (eval $ac_try) 2>&5
8380 ac_status=$?
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); }; }; then
8383 ac_header_compiler=yes
8384 else
8385 echo "$as_me: failed program was:" >&5
8386 sed 's/^/| /' conftest.$ac_ext >&5
8387
8388 ac_header_compiler=no
8389 fi
8390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8391 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8392 echo "${ECHO_T}$ac_header_compiler" >&6
8393
8394 # Is the header present?
8395 echo "$as_me:$LINENO: checking tre/regex.h presence" >&5
8396 echo $ECHO_N "checking tre/regex.h presence... $ECHO_C" >&6
8397 cat >conftest.$ac_ext <<_ACEOF
8398 /* confdefs.h. */
8399 _ACEOF
8400 cat confdefs.h >>conftest.$ac_ext
8401 cat >>conftest.$ac_ext <<_ACEOF
8402 /* end confdefs.h. */
8403 #include <tre/regex.h>
8404 _ACEOF
8405 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8406 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8407 ac_status=$?
8408 grep -v '^ *+' conftest.er1 >conftest.err
8409 rm -f conftest.er1
8410 cat conftest.err >&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); } >/dev/null; then
8413 if test -s conftest.err; then
8414 ac_cpp_err=$ac_c_preproc_warn_flag
8415 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8416 else
8417 ac_cpp_err=
8418 fi
8419 else
8420 ac_cpp_err=yes
8421 fi
8422 if test -z "$ac_cpp_err"; then
8423 ac_header_preproc=yes
8424 else
8425 echo "$as_me: failed program was:" >&5
8426 sed 's/^/| /' conftest.$ac_ext >&5
8427
8428 ac_header_preproc=no
8429 fi
8430 rm -f conftest.err conftest.$ac_ext
8431 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8432 echo "${ECHO_T}$ac_header_preproc" >&6
8433
8434 # So? What about this header?
8435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8436 yes:no: )
8437 { echo "$as_me:$LINENO: WARNING: tre/regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
8438 echo "$as_me: WARNING: tre/regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8439 { echo "$as_me:$LINENO: WARNING: tre/regex.h: proceeding with the compiler's result" >&5
8440 echo "$as_me: WARNING: tre/regex.h: proceeding with the compiler's result" >&2;}
8441 ac_header_preproc=yes
8442 ;;
8443 no:yes:* )
8444 { echo "$as_me:$LINENO: WARNING: tre/regex.h: present but cannot be compiled" >&5
8445 echo "$as_me: WARNING: tre/regex.h: present but cannot be compiled" >&2;}
8446 { echo "$as_me:$LINENO: WARNING: tre/regex.h: check for missing prerequisite headers?" >&5
8447 echo "$as_me: WARNING: tre/regex.h: check for missing prerequisite headers?" >&2;}
8448 { echo "$as_me:$LINENO: WARNING: tre/regex.h: see the Autoconf documentation" >&5
8449 echo "$as_me: WARNING: tre/regex.h: see the Autoconf documentation" >&2;}
8450 { echo "$as_me:$LINENO: WARNING: tre/regex.h: section \"Present But Cannot Be Compiled\"" >&5
8451 echo "$as_me: WARNING: tre/regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
8452 { echo "$as_me:$LINENO: WARNING: tre/regex.h: proceeding with the preprocessor's result" >&5
8453 echo "$as_me: WARNING: tre/regex.h: proceeding with the preprocessor's result" >&2;}
8454 { echo "$as_me:$LINENO: WARNING: tre/regex.h: in the future, the compiler will take precedence" >&5
8455 echo "$as_me: WARNING: tre/regex.h: in the future, the compiler will take precedence" >&2;}
8456 (
8457 cat <<\_ASBOX
8458 ## -------------------------------------------------- ##
8459 ## Report this to evilnet-devel@lists.sourceforge.net ##
8460 ## -------------------------------------------------- ##
8461 _ASBOX
8462 ) |
8463 sed "s/^/$as_me: WARNING: /" >&2
8464 ;;
8465 esac
8466 echo "$as_me:$LINENO: checking for tre/regex.h" >&5
8467 echo $ECHO_N "checking for tre/regex.h... $ECHO_C" >&6
8468 if test "${ac_cv_header_tre_regex_h+set}" = set; then
8469 echo $ECHO_N "(cached) $ECHO_C" >&6
8470 else
8471 ac_cv_header_tre_regex_h=$ac_header_preproc
8472 fi
8473 echo "$as_me:$LINENO: result: $ac_cv_header_tre_regex_h" >&5
8474 echo "${ECHO_T}$ac_cv_header_tre_regex_h" >&6
8475
8476 fi
8477 if test $ac_cv_header_tre_regex_h = yes; then
8478 :
8479 else
8480 { { echo "$as_me:$LINENO: error: tre/regex.h, the TRE regex headers, were not found. Install tre or use --with-tre=PATH to tell me how to find it, where PATH/include/tre/regex.h exists. For conveniance, just type 'tools/tre_install.sh' now, to install tre in your home directory." >&5
8481 echo "$as_me: error: tre/regex.h, the TRE regex headers, were not found. Install tre or use --with-tre=PATH to tell me how to find it, where PATH/include/tre/regex.h exists. For conveniance, just type 'tools/tre_install.sh' now, to install tre in your home directory." >&2;}
8482 { (exit 1); exit 1; }; }
8483 fi
8484
8485
8486
8487 echo "$as_me:$LINENO: checking for regexec in -ltre" >&5
8488 echo $ECHO_N "checking for regexec in -ltre... $ECHO_C" >&6
8489 if test "${ac_cv_lib_tre_regexec+set}" = set; then
8490 echo $ECHO_N "(cached) $ECHO_C" >&6
8491 else
8492 ac_check_lib_save_LIBS=$LIBS
8493 LIBS="-ltre $LIBS"
8494 cat >conftest.$ac_ext <<_ACEOF
8495 /* confdefs.h. */
8496 _ACEOF
8497 cat confdefs.h >>conftest.$ac_ext
8498 cat >>conftest.$ac_ext <<_ACEOF
8499 /* end confdefs.h. */
8500
8501 /* Override any gcc2 internal prototype to avoid an error. */
8502 #ifdef __cplusplus
8503 extern "C"
8504 #endif
8505 /* We use char because int might match the return type of a gcc2
8506 builtin and then its argument prototype would still apply. */
8507 char regexec ();
8508 int
8509 main ()
8510 {
8511 regexec ();
8512 ;
8513 return 0;
8514 }
8515 _ACEOF
8516 rm -f conftest.$ac_objext conftest$ac_exeext
8517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8518 (eval $ac_link) 2>conftest.er1
8519 ac_status=$?
8520 grep -v '^ *+' conftest.er1 >conftest.err
8521 rm -f conftest.er1
8522 cat conftest.err >&5
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); } &&
8525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8527 (eval $ac_try) 2>&5
8528 ac_status=$?
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); }; } &&
8531 { ac_try='test -s conftest$ac_exeext'
8532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8533 (eval $ac_try) 2>&5
8534 ac_status=$?
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); }; }; then
8537 ac_cv_lib_tre_regexec=yes
8538 else
8539 echo "$as_me: failed program was:" >&5
8540 sed 's/^/| /' conftest.$ac_ext >&5
8541
8542 ac_cv_lib_tre_regexec=no
8543 fi
8544 rm -f conftest.err conftest.$ac_objext \
8545 conftest$ac_exeext conftest.$ac_ext
8546 LIBS=$ac_check_lib_save_LIBS
8547 fi
8548 echo "$as_me:$LINENO: result: $ac_cv_lib_tre_regexec" >&5
8549 echo "${ECHO_T}$ac_cv_lib_tre_regexec" >&6
8550 if test $ac_cv_lib_tre_regexec = yes; then
8551 cat >>confdefs.h <<_ACEOF
8552 #define HAVE_LIBTRE 1
8553 _ACEOF
8554
8555 LIBS="-ltre $LIBS"
8556
8557 else
8558 { { echo "$as_me:$LINENO: error: TRE regex library not found. Install tre, or use --with-tre=PATH to tell me how to find it, where PATH/lib/libtre.so exists. For conveniance, just type 'tools/tre_install.sh' now, to install tre in your home directory." >&5
8559 echo "$as_me: error: TRE regex library not found. Install tre, or use --with-tre=PATH to tell me how to find it, where PATH/lib/libtre.so exists. For conveniance, just type 'tools/tre_install.sh' now, to install tre in your home directory." >&2;}
8560 { (exit 1); exit 1; }; }
8561 fi
8562
8563
8564
8565 cat >>confdefs.h <<_ACEOF
8566 #define CODENAME "${CODENAME}"
8567 _ACEOF
8568
8569
8570
8571
8572
8573
8574 ac_config_files="$ac_config_files Makefile rx/Makefile src/Makefile"
8575
8576 cat >confcache <<\_ACEOF
8577 # This file is a shell script that caches the results of configure
8578 # tests run on this system so they can be shared between configure
8579 # scripts and configure runs, see configure's option --config-cache.
8580 # It is not useful on other systems. If it contains results you don't
8581 # want to keep, you may remove or edit it.
8582 #
8583 # config.status only pays attention to the cache file if you give it
8584 # the --recheck option to rerun configure.
8585 #
8586 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8587 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8588 # following values.
8589
8590 _ACEOF
8591
8592 # The following way of writing the cache mishandles newlines in values,
8593 # but we know of no workaround that is simple, portable, and efficient.
8594 # So, don't put newlines in cache variables' values.
8595 # Ultrix sh set writes to stderr and can't be redirected directly,
8596 # and sets the high bit in the cache file unless we assign to the vars.
8597 {
8598 (set) 2>&1 |
8599 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8600 *ac_space=\ *)
8601 # `set' does not quote correctly, so add quotes (double-quote
8602 # substitution turns \\\\ into \\, and sed turns \\ into \).
8603 sed -n \
8604 "s/'/'\\\\''/g;
8605 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8606 ;;
8607 *)
8608 # `set' quotes correctly as required by POSIX, so do not add quotes.
8609 sed -n \
8610 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8611 ;;
8612 esac;
8613 } |
8614 sed '
8615 t clear
8616 : clear
8617 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8618 t end
8619 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8620 : end' >>confcache
8621 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8622 if test -w $cache_file; then
8623 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8624 cat confcache >$cache_file
8625 else
8626 echo "not updating unwritable cache $cache_file"
8627 fi
8628 fi
8629 rm -f confcache
8630
8631 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8632 # Let make expand exec_prefix.
8633 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8634
8635 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8636 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8637 # trailing colons and then remove the whole line if VPATH becomes empty
8638 # (actually we leave an empty line to preserve line numbers).
8639 if test "x$srcdir" = x.; then
8640 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8641 s/:*\$(srcdir):*/:/;
8642 s/:*\${srcdir}:*/:/;
8643 s/:*@srcdir@:*/:/;
8644 s/^\([^=]*=[ ]*\):*/\1/;
8645 s/:*$//;
8646 s/^[^=]*=[ ]*$//;
8647 }'
8648 fi
8649
8650 DEFS=-DHAVE_CONFIG_H
8651
8652 ac_libobjs=
8653 ac_ltlibobjs=
8654 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8655 # 1. Remove the extension, and $U if already installed.
8656 ac_i=`echo "$ac_i" |
8657 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8658 # 2. Add them.
8659 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8660 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8661 done
8662 LIBOBJS=$ac_libobjs
8663
8664 LTLIBOBJS=$ac_ltlibobjs
8665
8666
8667 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8668 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
8669 Usually this means the macro was only invoked conditionally." >&5
8670 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
8671 Usually this means the macro was only invoked conditionally." >&2;}
8672 { (exit 1); exit 1; }; }
8673 fi
8674 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8675 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8676 Usually this means the macro was only invoked conditionally." >&5
8677 echo "$as_me: error: conditional \"AMDEP\" was never defined.
8678 Usually this means the macro was only invoked conditionally." >&2;}
8679 { (exit 1); exit 1; }; }
8680 fi
8681 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8682 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8683 Usually this means the macro was only invoked conditionally." >&5
8684 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8685 Usually this means the macro was only invoked conditionally." >&2;}
8686 { (exit 1); exit 1; }; }
8687 fi
8688 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8689 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8690 Usually this means the macro was only invoked conditionally." >&5
8691 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8692 Usually this means the macro was only invoked conditionally." >&2;}
8693 { (exit 1); exit 1; }; }
8694 fi
8695
8696 : ${CONFIG_STATUS=./config.status}
8697 ac_clean_files_save=$ac_clean_files
8698 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8699 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8700 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8701 cat >$CONFIG_STATUS <<_ACEOF
8702 #! $SHELL
8703 # Generated by $as_me.
8704 # Run this file to recreate the current configuration.
8705 # Compiler output produced by configure, useful for debugging
8706 # configure, is in config.log if it exists.
8707
8708 debug=false
8709 ac_cs_recheck=false
8710 ac_cs_silent=false
8711 SHELL=\${CONFIG_SHELL-$SHELL}
8712 _ACEOF
8713
8714 cat >>$CONFIG_STATUS <<\_ACEOF
8715 ## --------------------- ##
8716 ## M4sh Initialization. ##
8717 ## --------------------- ##
8718
8719 # Be Bourne compatible
8720 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8721 emulate sh
8722 NULLCMD=:
8723 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8724 # is contrary to our usage. Disable this feature.
8725 alias -g '${1+"$@"}'='"$@"'
8726 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8727 set -o posix
8728 fi
8729 DUALCASE=1; export DUALCASE # for MKS sh
8730
8731 # Support unset when possible.
8732 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8733 as_unset=unset
8734 else
8735 as_unset=false
8736 fi
8737
8738
8739 # Work around bugs in pre-3.0 UWIN ksh.
8740 $as_unset ENV MAIL MAILPATH
8741 PS1='$ '
8742 PS2='> '
8743 PS4='+ '
8744
8745 # NLS nuisances.
8746 for as_var in \
8747 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8748 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8749 LC_TELEPHONE LC_TIME
8750 do
8751 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8752 eval $as_var=C; export $as_var
8753 else
8754 $as_unset $as_var
8755 fi
8756 done
8757
8758 # Required to use basename.
8759 if expr a : '\(a\)' >/dev/null 2>&1; then
8760 as_expr=expr
8761 else
8762 as_expr=false
8763 fi
8764
8765 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8766 as_basename=basename
8767 else
8768 as_basename=false
8769 fi
8770
8771
8772 # Name of the executable.
8773 as_me=`$as_basename "$0" ||
8774 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8775 X"$0" : 'X\(//\)$' \| \
8776 X"$0" : 'X\(/\)$' \| \
8777 . : '\(.\)' 2>/dev/null ||
8778 echo X/"$0" |
8779 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8780 /^X\/\(\/\/\)$/{ s//\1/; q; }
8781 /^X\/\(\/\).*/{ s//\1/; q; }
8782 s/.*/./; q'`
8783
8784
8785 # PATH needs CR, and LINENO needs CR and PATH.
8786 # Avoid depending upon Character Ranges.
8787 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8788 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8789 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8790 as_cr_digits='0123456789'
8791 as_cr_alnum=$as_cr_Letters$as_cr_digits
8792
8793 # The user is always right.
8794 if test "${PATH_SEPARATOR+set}" != set; then
8795 echo "#! /bin/sh" >conf$$.sh
8796 echo "exit 0" >>conf$$.sh
8797 chmod +x conf$$.sh
8798 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8799 PATH_SEPARATOR=';'
8800 else
8801 PATH_SEPARATOR=:
8802 fi
8803 rm -f conf$$.sh
8804 fi
8805
8806
8807 as_lineno_1=$LINENO
8808 as_lineno_2=$LINENO
8809 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8810 test "x$as_lineno_1" != "x$as_lineno_2" &&
8811 test "x$as_lineno_3" = "x$as_lineno_2" || {
8812 # Find who we are. Look in the path if we contain no path at all
8813 # relative or not.
8814 case $0 in
8815 *[\\/]* ) as_myself=$0 ;;
8816 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8817 for as_dir in $PATH
8818 do
8819 IFS=$as_save_IFS
8820 test -z "$as_dir" && as_dir=.
8821 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8822 done
8823
8824 ;;
8825 esac
8826 # We did not find ourselves, most probably we were run as `sh COMMAND'
8827 # in which case we are not to be found in the path.
8828 if test "x$as_myself" = x; then
8829 as_myself=$0
8830 fi
8831 if test ! -f "$as_myself"; then
8832 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8833 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8834 { (exit 1); exit 1; }; }
8835 fi
8836 case $CONFIG_SHELL in
8837 '')
8838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8839 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8840 do
8841 IFS=$as_save_IFS
8842 test -z "$as_dir" && as_dir=.
8843 for as_base in sh bash ksh sh5; do
8844 case $as_dir in
8845 /*)
8846 if ("$as_dir/$as_base" -c '
8847 as_lineno_1=$LINENO
8848 as_lineno_2=$LINENO
8849 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8850 test "x$as_lineno_1" != "x$as_lineno_2" &&
8851 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8852 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8853 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8854 CONFIG_SHELL=$as_dir/$as_base
8855 export CONFIG_SHELL
8856 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8857 fi;;
8858 esac
8859 done
8860 done
8861 ;;
8862 esac
8863
8864 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8865 # uniformly replaced by the line number. The first 'sed' inserts a
8866 # line-number line before each line; the second 'sed' does the real
8867 # work. The second script uses 'N' to pair each line-number line
8868 # with the numbered line, and appends trailing '-' during
8869 # substitution so that $LINENO is not a special case at line end.
8870 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8871 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8872 sed '=' <$as_myself |
8873 sed '
8874 N
8875 s,$,-,
8876 : loop
8877 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8878 t loop
8879 s,-$,,
8880 s,^['$as_cr_digits']*\n,,
8881 ' >$as_me.lineno &&
8882 chmod +x $as_me.lineno ||
8883 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8884 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8885 { (exit 1); exit 1; }; }
8886
8887 # Don't try to exec as it changes $[0], causing all sort of problems
8888 # (the dirname of $[0] is not the place where we might find the
8889 # original and so on. Autoconf is especially sensible to this).
8890 . ./$as_me.lineno
8891 # Exit status is that of the last command.
8892 exit
8893 }
8894
8895
8896 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8897 *c*,-n*) ECHO_N= ECHO_C='
8898 ' ECHO_T=' ' ;;
8899 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8900 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8901 esac
8902
8903 if expr a : '\(a\)' >/dev/null 2>&1; then
8904 as_expr=expr
8905 else
8906 as_expr=false
8907 fi
8908
8909 rm -f conf$$ conf$$.exe conf$$.file
8910 echo >conf$$.file
8911 if ln -s conf$$.file conf$$ 2>/dev/null; then
8912 # We could just check for DJGPP; but this test a) works b) is more generic
8913 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8914 if test -f conf$$.exe; then
8915 # Don't use ln at all; we don't have any links
8916 as_ln_s='cp -p'
8917 else
8918 as_ln_s='ln -s'
8919 fi
8920 elif ln conf$$.file conf$$ 2>/dev/null; then
8921 as_ln_s=ln
8922 else
8923 as_ln_s='cp -p'
8924 fi
8925 rm -f conf$$ conf$$.exe conf$$.file
8926
8927 if mkdir -p . 2>/dev/null; then
8928 as_mkdir_p=:
8929 else
8930 test -d ./-p && rmdir ./-p
8931 as_mkdir_p=false
8932 fi
8933
8934 as_executable_p="test -f"
8935
8936 # Sed expression to map a string onto a valid CPP name.
8937 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8938
8939 # Sed expression to map a string onto a valid variable name.
8940 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8941
8942
8943 # IFS
8944 # We need space, tab and new line, in precisely that order.
8945 as_nl='
8946 '
8947 IFS=" $as_nl"
8948
8949 # CDPATH.
8950 $as_unset CDPATH
8951
8952 exec 6>&1
8953
8954 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8955 # report actual input values of CONFIG_FILES etc. instead of their
8956 # values after options handling. Logging --version etc. is OK.
8957 exec 5>>config.log
8958 {
8959 echo
8960 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8961 ## Running $as_me. ##
8962 _ASBOX
8963 } >&5
8964 cat >&5 <<_CSEOF
8965
8966 This file was extended by X3 $as_me 1.5, which was
8967 generated by GNU Autoconf 2.59. Invocation command line was
8968
8969 CONFIG_FILES = $CONFIG_FILES
8970 CONFIG_HEADERS = $CONFIG_HEADERS
8971 CONFIG_LINKS = $CONFIG_LINKS
8972 CONFIG_COMMANDS = $CONFIG_COMMANDS
8973 $ $0 $@
8974
8975 _CSEOF
8976 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8977 echo >&5
8978 _ACEOF
8979
8980 # Files that config.status was made for.
8981 if test -n "$ac_config_files"; then
8982 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8983 fi
8984
8985 if test -n "$ac_config_headers"; then
8986 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8987 fi
8988
8989 if test -n "$ac_config_links"; then
8990 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8991 fi
8992
8993 if test -n "$ac_config_commands"; then
8994 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8995 fi
8996
8997 cat >>$CONFIG_STATUS <<\_ACEOF
8998
8999 ac_cs_usage="\
9000 \`$as_me' instantiates files from templates according to the
9001 current configuration.
9002
9003 Usage: $0 [OPTIONS] [FILE]...
9004
9005 -h, --help print this help, then exit
9006 -V, --version print version number, then exit
9007 -q, --quiet do not print progress messages
9008 -d, --debug don't remove temporary files
9009 --recheck update $as_me by reconfiguring in the same conditions
9010 --file=FILE[:TEMPLATE]
9011 instantiate the configuration file FILE
9012 --header=FILE[:TEMPLATE]
9013 instantiate the configuration header FILE
9014
9015 Configuration files:
9016 $config_files
9017
9018 Configuration headers:
9019 $config_headers
9020
9021 Configuration commands:
9022 $config_commands
9023
9024 Report bugs to <bug-autoconf@gnu.org>."
9025 _ACEOF
9026
9027 cat >>$CONFIG_STATUS <<_ACEOF
9028 ac_cs_version="\\
9029 X3 config.status 1.5
9030 configured by $0, generated by GNU Autoconf 2.59,
9031 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9032
9033 Copyright (C) 2003 Free Software Foundation, Inc.
9034 This config.status script is free software; the Free Software Foundation
9035 gives unlimited permission to copy, distribute and modify it."
9036 srcdir=$srcdir
9037 INSTALL="$INSTALL"
9038 _ACEOF
9039
9040 cat >>$CONFIG_STATUS <<\_ACEOF
9041 # If no file are specified by the user, then we need to provide default
9042 # value. By we need to know if files were specified by the user.
9043 ac_need_defaults=:
9044 while test $# != 0
9045 do
9046 case $1 in
9047 --*=*)
9048 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9049 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9050 ac_shift=:
9051 ;;
9052 -*)
9053 ac_option=$1
9054 ac_optarg=$2
9055 ac_shift=shift
9056 ;;
9057 *) # This is not an option, so the user has probably given explicit
9058 # arguments.
9059 ac_option=$1
9060 ac_need_defaults=false;;
9061 esac
9062
9063 case $ac_option in
9064 # Handling of the options.
9065 _ACEOF
9066 cat >>$CONFIG_STATUS <<\_ACEOF
9067 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9068 ac_cs_recheck=: ;;
9069 --version | --vers* | -V )
9070 echo "$ac_cs_version"; exit 0 ;;
9071 --he | --h)
9072 # Conflict between --help and --header
9073 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9074 Try \`$0 --help' for more information." >&5
9075 echo "$as_me: error: ambiguous option: $1
9076 Try \`$0 --help' for more information." >&2;}
9077 { (exit 1); exit 1; }; };;
9078 --help | --hel | -h )
9079 echo "$ac_cs_usage"; exit 0 ;;
9080 --debug | --d* | -d )
9081 debug=: ;;
9082 --file | --fil | --fi | --f )
9083 $ac_shift
9084 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9085 ac_need_defaults=false;;
9086 --header | --heade | --head | --hea )
9087 $ac_shift
9088 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9089 ac_need_defaults=false;;
9090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9091 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9092 ac_cs_silent=: ;;
9093
9094 # This is an error.
9095 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9096 Try \`$0 --help' for more information." >&5
9097 echo "$as_me: error: unrecognized option: $1
9098 Try \`$0 --help' for more information." >&2;}
9099 { (exit 1); exit 1; }; } ;;
9100
9101 *) ac_config_targets="$ac_config_targets $1" ;;
9102
9103 esac
9104 shift
9105 done
9106
9107 ac_configure_extra_args=
9108
9109 if $ac_cs_silent; then
9110 exec 6>/dev/null
9111 ac_configure_extra_args="$ac_configure_extra_args --silent"
9112 fi
9113
9114 _ACEOF
9115 cat >>$CONFIG_STATUS <<_ACEOF
9116 if \$ac_cs_recheck; then
9117 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9118 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9119 fi
9120
9121 _ACEOF
9122
9123 cat >>$CONFIG_STATUS <<_ACEOF
9124 #
9125 # INIT-COMMANDS section.
9126 #
9127
9128 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9129
9130 _ACEOF
9131
9132
9133
9134 cat >>$CONFIG_STATUS <<\_ACEOF
9135 for ac_config_target in $ac_config_targets
9136 do
9137 case "$ac_config_target" in
9138 # Handling of arguments.
9139 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9140 "rx/Makefile" ) CONFIG_FILES="$CONFIG_FILES rx/Makefile" ;;
9141 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9142 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9143 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
9144 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9145 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9146 { (exit 1); exit 1; }; };;
9147 esac
9148 done
9149
9150 # If the user did not use the arguments to specify the items to instantiate,
9151 # then the envvar interface is used. Set only those that are not.
9152 # We use the long form for the default assignment because of an extremely
9153 # bizarre bug on SunOS 4.1.3.
9154 if $ac_need_defaults; then
9155 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9156 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9157 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9158 fi
9159
9160 # Have a temporary directory for convenience. Make it in the build tree
9161 # simply because there is no reason to put it here, and in addition,
9162 # creating and moving files from /tmp can sometimes cause problems.
9163 # Create a temporary directory, and hook for its removal unless debugging.
9164 $debug ||
9165 {
9166 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9167 trap '{ (exit 1); exit 1; }' 1 2 13 15
9168 }
9169
9170 # Create a (secure) tmp directory for tmp files.
9171
9172 {
9173 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9174 test -n "$tmp" && test -d "$tmp"
9175 } ||
9176 {
9177 tmp=./confstat$$-$RANDOM
9178 (umask 077 && mkdir $tmp)
9179 } ||
9180 {
9181 echo "$me: cannot create a temporary directory in ." >&2
9182 { (exit 1); exit 1; }
9183 }
9184
9185 _ACEOF
9186
9187 cat >>$CONFIG_STATUS <<_ACEOF
9188
9189 #
9190 # CONFIG_FILES section.
9191 #
9192
9193 # No need to generate the scripts if there are no CONFIG_FILES.
9194 # This happens for instance when ./config.status config.h
9195 if test -n "\$CONFIG_FILES"; then
9196 # Protect against being on the right side of a sed subst in config.status.
9197 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9198 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9199 s,@SHELL@,$SHELL,;t t
9200 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9201 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9202 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9203 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9204 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9205 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9206 s,@exec_prefix@,$exec_prefix,;t t
9207 s,@prefix@,$prefix,;t t
9208 s,@program_transform_name@,$program_transform_name,;t t
9209 s,@bindir@,$bindir,;t t
9210 s,@sbindir@,$sbindir,;t t
9211 s,@libexecdir@,$libexecdir,;t t
9212 s,@datadir@,$datadir,;t t
9213 s,@sysconfdir@,$sysconfdir,;t t
9214 s,@sharedstatedir@,$sharedstatedir,;t t
9215 s,@localstatedir@,$localstatedir,;t t
9216 s,@libdir@,$libdir,;t t
9217 s,@includedir@,$includedir,;t t
9218 s,@oldincludedir@,$oldincludedir,;t t
9219 s,@infodir@,$infodir,;t t
9220 s,@mandir@,$mandir,;t t
9221 s,@build_alias@,$build_alias,;t t
9222 s,@host_alias@,$host_alias,;t t
9223 s,@target_alias@,$target_alias,;t t
9224 s,@DEFS@,$DEFS,;t t
9225 s,@ECHO_C@,$ECHO_C,;t t
9226 s,@ECHO_N@,$ECHO_N,;t t
9227 s,@ECHO_T@,$ECHO_T,;t t
9228 s,@LIBS@,$LIBS,;t t
9229 s,@build@,$build,;t t
9230 s,@build_cpu@,$build_cpu,;t t
9231 s,@build_vendor@,$build_vendor,;t t
9232 s,@build_os@,$build_os,;t t
9233 s,@host@,$host,;t t
9234 s,@host_cpu@,$host_cpu,;t t
9235 s,@host_vendor@,$host_vendor,;t t
9236 s,@host_os@,$host_os,;t t
9237 s,@target@,$target,;t t
9238 s,@target_cpu@,$target_cpu,;t t
9239 s,@target_vendor@,$target_vendor,;t t
9240 s,@target_os@,$target_os,;t t
9241 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9242 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9243 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9244 s,@CYGPATH_W@,$CYGPATH_W,;t t
9245 s,@PACKAGE@,$PACKAGE,;t t
9246 s,@VERSION@,$VERSION,;t t
9247 s,@ACLOCAL@,$ACLOCAL,;t t
9248 s,@AUTOCONF@,$AUTOCONF,;t t
9249 s,@AUTOMAKE@,$AUTOMAKE,;t t
9250 s,@AUTOHEADER@,$AUTOHEADER,;t t
9251 s,@MAKEINFO@,$MAKEINFO,;t t
9252 s,@install_sh@,$install_sh,;t t
9253 s,@STRIP@,$STRIP,;t t
9254 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9255 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9256 s,@mkdir_p@,$mkdir_p,;t t
9257 s,@AWK@,$AWK,;t t
9258 s,@SET_MAKE@,$SET_MAKE,;t t
9259 s,@am__leading_dot@,$am__leading_dot,;t t
9260 s,@AMTAR@,$AMTAR,;t t
9261 s,@am__tar@,$am__tar,;t t
9262 s,@am__untar@,$am__untar,;t t
9263 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
9264 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
9265 s,@MAINT@,$MAINT,;t t
9266 s,@CC@,$CC,;t t
9267 s,@CFLAGS@,$CFLAGS,;t t
9268 s,@LDFLAGS@,$LDFLAGS,;t t
9269 s,@CPPFLAGS@,$CPPFLAGS,;t t
9270 s,@ac_ct_CC@,$ac_ct_CC,;t t
9271 s,@EXEEXT@,$EXEEXT,;t t
9272 s,@OBJEXT@,$OBJEXT,;t t
9273 s,@DEPDIR@,$DEPDIR,;t t
9274 s,@am__include@,$am__include,;t t
9275 s,@am__quote@,$am__quote,;t t
9276 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9277 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9278 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9279 s,@CCDEPMODE@,$CCDEPMODE,;t t
9280 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
9281 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
9282 s,@RANLIB@,$RANLIB,;t t
9283 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9284 s,@LN_S@,$LN_S,;t t
9285 s,@CPP@,$CPP,;t t
9286 s,@EGREP@,$EGREP,;t t
9287 s,@MAKER@,$MAKER,;t t
9288 s,@ALLOCA@,$ALLOCA,;t t
9289 s,@MODULE_OBJS@,$MODULE_OBJS,;t t
9290 s,@MY_SUBDIRS@,$MY_SUBDIRS,;t t
9291 s,@RX_INCLUDES@,$RX_INCLUDES,;t t
9292 s,@RX_LIBS@,$RX_LIBS,;t t
9293 s,@TRACK@,$TRACK,;t t
9294 s,@LIBOBJS@,$LIBOBJS,;t t
9295 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9296 CEOF
9297
9298 _ACEOF
9299
9300 cat >>$CONFIG_STATUS <<\_ACEOF
9301 # Split the substitutions into bite-sized pieces for seds with
9302 # small command number limits, like on Digital OSF/1 and HP-UX.
9303 ac_max_sed_lines=48
9304 ac_sed_frag=1 # Number of current file.
9305 ac_beg=1 # First line for current file.
9306 ac_end=$ac_max_sed_lines # Line after last line for current file.
9307 ac_more_lines=:
9308 ac_sed_cmds=
9309 while $ac_more_lines; do
9310 if test $ac_beg -gt 1; then
9311 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9312 else
9313 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9314 fi
9315 if test ! -s $tmp/subs.frag; then
9316 ac_more_lines=false
9317 else
9318 # The purpose of the label and of the branching condition is to
9319 # speed up the sed processing (if there are no `@' at all, there
9320 # is no need to browse any of the substitutions).
9321 # These are the two extra sed commands mentioned above.
9322 (echo ':t
9323 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9324 if test -z "$ac_sed_cmds"; then
9325 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9326 else
9327 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9328 fi
9329 ac_sed_frag=`expr $ac_sed_frag + 1`
9330 ac_beg=$ac_end
9331 ac_end=`expr $ac_end + $ac_max_sed_lines`
9332 fi
9333 done
9334 if test -z "$ac_sed_cmds"; then
9335 ac_sed_cmds=cat
9336 fi
9337 fi # test -n "$CONFIG_FILES"
9338
9339 _ACEOF
9340 cat >>$CONFIG_STATUS <<\_ACEOF
9341 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9342 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9343 case $ac_file in
9344 - | *:- | *:-:* ) # input from stdin
9345 cat >$tmp/stdin
9346 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9347 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9348 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9349 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9350 * ) ac_file_in=$ac_file.in ;;
9351 esac
9352
9353 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9354 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9355 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9356 X"$ac_file" : 'X\(//\)[^/]' \| \
9357 X"$ac_file" : 'X\(//\)$' \| \
9358 X"$ac_file" : 'X\(/\)' \| \
9359 . : '\(.\)' 2>/dev/null ||
9360 echo X"$ac_file" |
9361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9362 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9363 /^X\(\/\/\)$/{ s//\1/; q; }
9364 /^X\(\/\).*/{ s//\1/; q; }
9365 s/.*/./; q'`
9366 { if $as_mkdir_p; then
9367 mkdir -p "$ac_dir"
9368 else
9369 as_dir="$ac_dir"
9370 as_dirs=
9371 while test ! -d "$as_dir"; do
9372 as_dirs="$as_dir $as_dirs"
9373 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9374 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9375 X"$as_dir" : 'X\(//\)[^/]' \| \
9376 X"$as_dir" : 'X\(//\)$' \| \
9377 X"$as_dir" : 'X\(/\)' \| \
9378 . : '\(.\)' 2>/dev/null ||
9379 echo X"$as_dir" |
9380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9381 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9382 /^X\(\/\/\)$/{ s//\1/; q; }
9383 /^X\(\/\).*/{ s//\1/; q; }
9384 s/.*/./; q'`
9385 done
9386 test ! -n "$as_dirs" || mkdir $as_dirs
9387 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9388 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9389 { (exit 1); exit 1; }; }; }
9390
9391 ac_builddir=.
9392
9393 if test "$ac_dir" != .; then
9394 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9395 # A "../" for each directory in $ac_dir_suffix.
9396 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9397 else
9398 ac_dir_suffix= ac_top_builddir=
9399 fi
9400
9401 case $srcdir in
9402 .) # No --srcdir option. We are building in place.
9403 ac_srcdir=.
9404 if test -z "$ac_top_builddir"; then
9405 ac_top_srcdir=.
9406 else
9407 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9408 fi ;;
9409 [\\/]* | ?:[\\/]* ) # Absolute path.
9410 ac_srcdir=$srcdir$ac_dir_suffix;
9411 ac_top_srcdir=$srcdir ;;
9412 *) # Relative path.
9413 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9414 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9415 esac
9416
9417 # Do not use `cd foo && pwd` to compute absolute paths, because
9418 # the directories may not exist.
9419 case `pwd` in
9420 .) ac_abs_builddir="$ac_dir";;
9421 *)
9422 case "$ac_dir" in
9423 .) ac_abs_builddir=`pwd`;;
9424 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9425 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9426 esac;;
9427 esac
9428 case $ac_abs_builddir in
9429 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9430 *)
9431 case ${ac_top_builddir}. in
9432 .) ac_abs_top_builddir=$ac_abs_builddir;;
9433 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9434 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9435 esac;;
9436 esac
9437 case $ac_abs_builddir in
9438 .) ac_abs_srcdir=$ac_srcdir;;
9439 *)
9440 case $ac_srcdir in
9441 .) ac_abs_srcdir=$ac_abs_builddir;;
9442 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9443 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9444 esac;;
9445 esac
9446 case $ac_abs_builddir in
9447 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9448 *)
9449 case $ac_top_srcdir in
9450 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9451 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9452 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9453 esac;;
9454 esac
9455
9456
9457 case $INSTALL in
9458 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9459 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9460 esac
9461
9462 # Let's still pretend it is `configure' which instantiates (i.e., don't
9463 # use $as_me), people would be surprised to read:
9464 # /* config.h. Generated by config.status. */
9465 if test x"$ac_file" = x-; then
9466 configure_input=
9467 else
9468 configure_input="$ac_file. "
9469 fi
9470 configure_input=$configure_input"Generated from `echo $ac_file_in |
9471 sed 's,.*/,,'` by configure."
9472
9473 # First look for the input files in the build tree, otherwise in the
9474 # src tree.
9475 ac_file_inputs=`IFS=:
9476 for f in $ac_file_in; do
9477 case $f in
9478 -) echo $tmp/stdin ;;
9479 [\\/$]*)
9480 # Absolute (can't be DOS-style, as IFS=:)
9481 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9482 echo "$as_me: error: cannot find input file: $f" >&2;}
9483 { (exit 1); exit 1; }; }
9484 echo "$f";;
9485 *) # Relative
9486 if test -f "$f"; then
9487 # Build tree
9488 echo "$f"
9489 elif test -f "$srcdir/$f"; then
9490 # Source tree
9491 echo "$srcdir/$f"
9492 else
9493 # /dev/null tree
9494 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9495 echo "$as_me: error: cannot find input file: $f" >&2;}
9496 { (exit 1); exit 1; }; }
9497 fi;;
9498 esac
9499 done` || { (exit 1); exit 1; }
9500
9501 if test x"$ac_file" != x-; then
9502 { echo "$as_me:$LINENO: creating $ac_file" >&5
9503 echo "$as_me: creating $ac_file" >&6;}
9504 rm -f "$ac_file"
9505 fi
9506 _ACEOF
9507 cat >>$CONFIG_STATUS <<_ACEOF
9508 sed "$ac_vpsub
9509 $extrasub
9510 _ACEOF
9511 cat >>$CONFIG_STATUS <<\_ACEOF
9512 :t
9513 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9514 s,@configure_input@,$configure_input,;t t
9515 s,@srcdir@,$ac_srcdir,;t t
9516 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9517 s,@top_srcdir@,$ac_top_srcdir,;t t
9518 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9519 s,@builddir@,$ac_builddir,;t t
9520 s,@abs_builddir@,$ac_abs_builddir,;t t
9521 s,@top_builddir@,$ac_top_builddir,;t t
9522 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9523 s,@INSTALL@,$ac_INSTALL,;t t
9524 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9525 rm -f $tmp/stdin
9526 if test x"$ac_file" != x-; then
9527 mv $tmp/out $ac_file
9528 else
9529 cat $tmp/out
9530 rm -f $tmp/out
9531 fi
9532
9533 done
9534 _ACEOF
9535 cat >>$CONFIG_STATUS <<\_ACEOF
9536
9537 #
9538 # CONFIG_HEADER section.
9539 #
9540
9541 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9542 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9543 #
9544 # ac_d sets the value in "#define NAME VALUE" lines.
9545 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9546 ac_dB='[ ].*$,\1#\2'
9547 ac_dC=' '
9548 ac_dD=',;t'
9549 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9550 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9551 ac_uB='$,\1#\2define\3'
9552 ac_uC=' '
9553 ac_uD=',;t'
9554
9555 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9556 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9557 case $ac_file in
9558 - | *:- | *:-:* ) # input from stdin
9559 cat >$tmp/stdin
9560 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9561 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9562 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9563 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9564 * ) ac_file_in=$ac_file.in ;;
9565 esac
9566
9567 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9568 echo "$as_me: creating $ac_file" >&6;}
9569
9570 # First look for the input files in the build tree, otherwise in the
9571 # src tree.
9572 ac_file_inputs=`IFS=:
9573 for f in $ac_file_in; do
9574 case $f in
9575 -) echo $tmp/stdin ;;
9576 [\\/$]*)
9577 # Absolute (can't be DOS-style, as IFS=:)
9578 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9579 echo "$as_me: error: cannot find input file: $f" >&2;}
9580 { (exit 1); exit 1; }; }
9581 # Do quote $f, to prevent DOS paths from being IFS'd.
9582 echo "$f";;
9583 *) # Relative
9584 if test -f "$f"; then
9585 # Build tree
9586 echo "$f"
9587 elif test -f "$srcdir/$f"; then
9588 # Source tree
9589 echo "$srcdir/$f"
9590 else
9591 # /dev/null tree
9592 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9593 echo "$as_me: error: cannot find input file: $f" >&2;}
9594 { (exit 1); exit 1; }; }
9595 fi;;
9596 esac
9597 done` || { (exit 1); exit 1; }
9598 # Remove the trailing spaces.
9599 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9600
9601 _ACEOF
9602
9603 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9604 # `conftest.undefs', that substitutes the proper values into
9605 # config.h.in to produce config.h. The first handles `#define'
9606 # templates, and the second `#undef' templates.
9607 # And first: Protect against being on the right side of a sed subst in
9608 # config.status. Protect against being in an unquoted here document
9609 # in config.status.
9610 rm -f conftest.defines conftest.undefs
9611 # Using a here document instead of a string reduces the quoting nightmare.
9612 # Putting comments in sed scripts is not portable.
9613 #
9614 # `end' is used to avoid that the second main sed command (meant for
9615 # 0-ary CPP macros) applies to n-ary macro definitions.
9616 # See the Autoconf documentation for `clear'.
9617 cat >confdef2sed.sed <<\_ACEOF
9618 s/[\\&,]/\\&/g
9619 s,[\\$`],\\&,g
9620 t clear
9621 : clear
9622 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9623 t end
9624 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9625 : end
9626 _ACEOF
9627 # If some macros were called several times there might be several times
9628 # the same #defines, which is useless. Nevertheless, we may not want to
9629 # sort them, since we want the *last* AC-DEFINE to be honored.
9630 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9631 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9632 rm -f confdef2sed.sed
9633
9634 # This sed command replaces #undef with comments. This is necessary, for
9635 # example, in the case of _POSIX_SOURCE, which is predefined and required
9636 # on some systems where configure will not decide to define it.
9637 cat >>conftest.undefs <<\_ACEOF
9638 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9639 _ACEOF
9640
9641 # Break up conftest.defines because some shells have a limit on the size
9642 # of here documents, and old seds have small limits too (100 cmds).
9643 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9644 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9645 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9646 echo ' :' >>$CONFIG_STATUS
9647 rm -f conftest.tail
9648 while grep . conftest.defines >/dev/null
9649 do
9650 # Write a limited-size here document to $tmp/defines.sed.
9651 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9652 # Speed up: don't consider the non `#define' lines.
9653 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9654 # Work around the forget-to-reset-the-flag bug.
9655 echo 't clr' >>$CONFIG_STATUS
9656 echo ': clr' >>$CONFIG_STATUS
9657 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9658 echo 'CEOF
9659 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9660 rm -f $tmp/in
9661 mv $tmp/out $tmp/in
9662 ' >>$CONFIG_STATUS
9663 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9664 rm -f conftest.defines
9665 mv conftest.tail conftest.defines
9666 done
9667 rm -f conftest.defines
9668 echo ' fi # grep' >>$CONFIG_STATUS
9669 echo >>$CONFIG_STATUS
9670
9671 # Break up conftest.undefs because some shells have a limit on the size
9672 # of here documents, and old seds have small limits too (100 cmds).
9673 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9674 rm -f conftest.tail
9675 while grep . conftest.undefs >/dev/null
9676 do
9677 # Write a limited-size here document to $tmp/undefs.sed.
9678 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9679 # Speed up: don't consider the non `#undef'
9680 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9681 # Work around the forget-to-reset-the-flag bug.
9682 echo 't clr' >>$CONFIG_STATUS
9683 echo ': clr' >>$CONFIG_STATUS
9684 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9685 echo 'CEOF
9686 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9687 rm -f $tmp/in
9688 mv $tmp/out $tmp/in
9689 ' >>$CONFIG_STATUS
9690 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9691 rm -f conftest.undefs
9692 mv conftest.tail conftest.undefs
9693 done
9694 rm -f conftest.undefs
9695
9696 cat >>$CONFIG_STATUS <<\_ACEOF
9697 # Let's still pretend it is `configure' which instantiates (i.e., don't
9698 # use $as_me), people would be surprised to read:
9699 # /* config.h. Generated by config.status. */
9700 if test x"$ac_file" = x-; then
9701 echo "/* Generated by configure. */" >$tmp/config.h
9702 else
9703 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9704 fi
9705 cat $tmp/in >>$tmp/config.h
9706 rm -f $tmp/in
9707 if test x"$ac_file" != x-; then
9708 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9709 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9710 echo "$as_me: $ac_file is unchanged" >&6;}
9711 else
9712 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9713 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9714 X"$ac_file" : 'X\(//\)[^/]' \| \
9715 X"$ac_file" : 'X\(//\)$' \| \
9716 X"$ac_file" : 'X\(/\)' \| \
9717 . : '\(.\)' 2>/dev/null ||
9718 echo X"$ac_file" |
9719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9721 /^X\(\/\/\)$/{ s//\1/; q; }
9722 /^X\(\/\).*/{ s//\1/; q; }
9723 s/.*/./; q'`
9724 { if $as_mkdir_p; then
9725 mkdir -p "$ac_dir"
9726 else
9727 as_dir="$ac_dir"
9728 as_dirs=
9729 while test ! -d "$as_dir"; do
9730 as_dirs="$as_dir $as_dirs"
9731 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9732 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9733 X"$as_dir" : 'X\(//\)[^/]' \| \
9734 X"$as_dir" : 'X\(//\)$' \| \
9735 X"$as_dir" : 'X\(/\)' \| \
9736 . : '\(.\)' 2>/dev/null ||
9737 echo X"$as_dir" |
9738 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9739 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9740 /^X\(\/\/\)$/{ s//\1/; q; }
9741 /^X\(\/\).*/{ s//\1/; q; }
9742 s/.*/./; q'`
9743 done
9744 test ! -n "$as_dirs" || mkdir $as_dirs
9745 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9746 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9747 { (exit 1); exit 1; }; }; }
9748
9749 rm -f $ac_file
9750 mv $tmp/config.h $ac_file
9751 fi
9752 else
9753 cat $tmp/config.h
9754 rm -f $tmp/config.h
9755 fi
9756 # Compute $ac_file's index in $config_headers.
9757 _am_stamp_count=1
9758 for _am_header in $config_headers :; do
9759 case $_am_header in
9760 $ac_file | $ac_file:* )
9761 break ;;
9762 * )
9763 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9764 esac
9765 done
9766 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
9767 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9768 X$ac_file : 'X\(//\)[^/]' \| \
9769 X$ac_file : 'X\(//\)$' \| \
9770 X$ac_file : 'X\(/\)' \| \
9771 . : '\(.\)' 2>/dev/null ||
9772 echo X$ac_file |
9773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9774 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9775 /^X\(\/\/\)$/{ s//\1/; q; }
9776 /^X\(\/\).*/{ s//\1/; q; }
9777 s/.*/./; q'`/stamp-h$_am_stamp_count
9778 done
9779 _ACEOF
9780 cat >>$CONFIG_STATUS <<\_ACEOF
9781
9782 #
9783 # CONFIG_COMMANDS section.
9784 #
9785 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9786 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9787 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9788 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9789 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9790 X"$ac_dest" : 'X\(//\)[^/]' \| \
9791 X"$ac_dest" : 'X\(//\)$' \| \
9792 X"$ac_dest" : 'X\(/\)' \| \
9793 . : '\(.\)' 2>/dev/null ||
9794 echo X"$ac_dest" |
9795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9796 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9797 /^X\(\/\/\)$/{ s//\1/; q; }
9798 /^X\(\/\).*/{ s//\1/; q; }
9799 s/.*/./; q'`
9800 { if $as_mkdir_p; then
9801 mkdir -p "$ac_dir"
9802 else
9803 as_dir="$ac_dir"
9804 as_dirs=
9805 while test ! -d "$as_dir"; do
9806 as_dirs="$as_dir $as_dirs"
9807 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9808 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9809 X"$as_dir" : 'X\(//\)[^/]' \| \
9810 X"$as_dir" : 'X\(//\)$' \| \
9811 X"$as_dir" : 'X\(/\)' \| \
9812 . : '\(.\)' 2>/dev/null ||
9813 echo X"$as_dir" |
9814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9815 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9816 /^X\(\/\/\)$/{ s//\1/; q; }
9817 /^X\(\/\).*/{ s//\1/; q; }
9818 s/.*/./; q'`
9819 done
9820 test ! -n "$as_dirs" || mkdir $as_dirs
9821 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9822 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9823 { (exit 1); exit 1; }; }; }
9824
9825 ac_builddir=.
9826
9827 if test "$ac_dir" != .; then
9828 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9829 # A "../" for each directory in $ac_dir_suffix.
9830 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9831 else
9832 ac_dir_suffix= ac_top_builddir=
9833 fi
9834
9835 case $srcdir in
9836 .) # No --srcdir option. We are building in place.
9837 ac_srcdir=.
9838 if test -z "$ac_top_builddir"; then
9839 ac_top_srcdir=.
9840 else
9841 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9842 fi ;;
9843 [\\/]* | ?:[\\/]* ) # Absolute path.
9844 ac_srcdir=$srcdir$ac_dir_suffix;
9845 ac_top_srcdir=$srcdir ;;
9846 *) # Relative path.
9847 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9848 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9849 esac
9850
9851 # Do not use `cd foo && pwd` to compute absolute paths, because
9852 # the directories may not exist.
9853 case `pwd` in
9854 .) ac_abs_builddir="$ac_dir";;
9855 *)
9856 case "$ac_dir" in
9857 .) ac_abs_builddir=`pwd`;;
9858 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9859 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9860 esac;;
9861 esac
9862 case $ac_abs_builddir in
9863 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9864 *)
9865 case ${ac_top_builddir}. in
9866 .) ac_abs_top_builddir=$ac_abs_builddir;;
9867 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9868 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9869 esac;;
9870 esac
9871 case $ac_abs_builddir in
9872 .) ac_abs_srcdir=$ac_srcdir;;
9873 *)
9874 case $ac_srcdir in
9875 .) ac_abs_srcdir=$ac_abs_builddir;;
9876 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9877 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9878 esac;;
9879 esac
9880 case $ac_abs_builddir in
9881 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9882 *)
9883 case $ac_top_srcdir in
9884 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9885 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9886 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9887 esac;;
9888 esac
9889
9890
9891 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9892 echo "$as_me: executing $ac_dest commands" >&6;}
9893 case $ac_dest in
9894 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
9895 # Strip MF so we end up with the name of the file.
9896 mf=`echo "$mf" | sed -e 's/:.*$//'`
9897 # Check whether this is an Automake generated Makefile or not.
9898 # We used to match only the files named `Makefile.in', but
9899 # some people rename them; so instead we look at the file content.
9900 # Grep'ing the first line is not enough: some people post-process
9901 # each Makefile.in and add a new line on top of each file to say so.
9902 # So let's grep whole file.
9903 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
9904 dirpart=`(dirname "$mf") 2>/dev/null ||
9905 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9906 X"$mf" : 'X\(//\)[^/]' \| \
9907 X"$mf" : 'X\(//\)$' \| \
9908 X"$mf" : 'X\(/\)' \| \
9909 . : '\(.\)' 2>/dev/null ||
9910 echo X"$mf" |
9911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9912 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9913 /^X\(\/\/\)$/{ s//\1/; q; }
9914 /^X\(\/\).*/{ s//\1/; q; }
9915 s/.*/./; q'`
9916 else
9917 continue
9918 fi
9919 # Extract the definition of DEPDIR, am__include, and am__quote
9920 # from the Makefile without running `make'.
9921 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9922 test -z "$DEPDIR" && continue
9923 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9924 test -z "am__include" && continue
9925 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9926 # When using ansi2knr, U may be empty or an underscore; expand it
9927 U=`sed -n 's/^U = //p' < "$mf"`
9928 # Find all dependency output files, they are included files with
9929 # $(DEPDIR) in their names. We invoke sed twice because it is the
9930 # simplest approach to changing $(DEPDIR) to its actual value in the
9931 # expansion.
9932 for file in `sed -n "
9933 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9934 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9935 # Make sure the directory exists.
9936 test -f "$dirpart/$file" && continue
9937 fdir=`(dirname "$file") 2>/dev/null ||
9938 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9939 X"$file" : 'X\(//\)[^/]' \| \
9940 X"$file" : 'X\(//\)$' \| \
9941 X"$file" : 'X\(/\)' \| \
9942 . : '\(.\)' 2>/dev/null ||
9943 echo X"$file" |
9944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9945 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9946 /^X\(\/\/\)$/{ s//\1/; q; }
9947 /^X\(\/\).*/{ s//\1/; q; }
9948 s/.*/./; q'`
9949 { if $as_mkdir_p; then
9950 mkdir -p $dirpart/$fdir
9951 else
9952 as_dir=$dirpart/$fdir
9953 as_dirs=
9954 while test ! -d "$as_dir"; do
9955 as_dirs="$as_dir $as_dirs"
9956 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9957 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9958 X"$as_dir" : 'X\(//\)[^/]' \| \
9959 X"$as_dir" : 'X\(//\)$' \| \
9960 X"$as_dir" : 'X\(/\)' \| \
9961 . : '\(.\)' 2>/dev/null ||
9962 echo X"$as_dir" |
9963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9964 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9965 /^X\(\/\/\)$/{ s//\1/; q; }
9966 /^X\(\/\).*/{ s//\1/; q; }
9967 s/.*/./; q'`
9968 done
9969 test ! -n "$as_dirs" || mkdir $as_dirs
9970 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
9971 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
9972 { (exit 1); exit 1; }; }; }
9973
9974 # echo "creating $dirpart/$file"
9975 echo '# dummy' > "$dirpart/$file"
9976 done
9977 done
9978 ;;
9979 esac
9980 done
9981 _ACEOF
9982
9983 cat >>$CONFIG_STATUS <<\_ACEOF
9984
9985 { (exit 0); exit 0; }
9986 _ACEOF
9987 chmod +x $CONFIG_STATUS
9988 ac_clean_files=$ac_clean_files_save
9989
9990
9991 # configure is writing to config.log, and then calls config.status.
9992 # config.status does its own redirection, appending to config.log.
9993 # Unfortunately, on DOS this fails, as config.log is still kept open
9994 # by configure, so config.status won't be able to write to it; its
9995 # output is simply discarded. So we exec the FD to /dev/null,
9996 # effectively closing config.log, so it can be properly (re)opened and
9997 # appended to by config.status. When coming back to configure, we
9998 # need to make the FD available again.
9999 if test "$no_create" != yes; then
10000 ac_cs_success=:
10001 ac_config_status_args=
10002 test "$silent" = yes &&
10003 ac_config_status_args="$ac_config_status_args --quiet"
10004 exec 5>/dev/null
10005 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10006 exec 5>>config.log
10007 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10008 # would make configure fail if this is the last instruction.
10009 $ac_cs_success || { (exit 1); exit 1; }
10010 fi
10011
10012
10013
10014
10015 cat <<EOF
10016
10017 Configuration summary
10018 =====================
10019
10020 X3 is now configured as follows:
10021
10022 * Compilation environment
10023
10024 CC = $CC
10025 CFLAGS = $CFLAGS
10026 CPP = $CPP
10027 CPPFLAGS = $CPPFLAGS
10028 LD = $LD
10029 LDFLAGS = $LDFLAGS
10030 LIBS = $LIBS
10031
10032 * X3 options
10033
10034 Debug: $x3_debug
10035 Extra Modules: $module_list
10036 Malloc: $x3_malloc
10037 Protocol: $x3_ircd
10038 Regexp Library TRE $tre_version
10039
10040 Install to: $prefix
10041
10042 Now you can proceed with compiling X3
10043
10044 EOF
10045