dnsmasq: stay close as possible to master branch
[tomato.git] / release / src-rt-6.x.4708 / router / nocat / configure
blob5d4fa645731ad7bdf70dd209d85f77b2b1546755
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for nocat 0.93pre2.
5 # Report bugs to <schuyler@nocat.net>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
98 rm -f conf$$.sh
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
156 esac
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS=" $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251 exec 6>&1
254 # Initializations.
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='nocat'
271 PACKAGE_TARNAME='NoCatSplash'
272 PACKAGE_VERSION='0.93pre2'
273 PACKAGE_STRING='nocat 0.93pre2'
274 PACKAGE_BUGREPORT='schuyler@nocat.net'
276 ac_unique_file="src/http.c"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 # include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 # include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 # include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
314 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot 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 GLIB_CONFIG GLIB_CFLAGS GLIB_LIBS CPP EGREP POW_LIB LIBOBJS SPLASHD_MODE GHTTPD_PROGRAM firewall libexecscripts pkglibexecdir htdocsdir imagesdir pgpdir LTLIBOBJS'
315 ac_subst_files=''
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
355 ac_prev=
356 for ac_option
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
369 case $ac_option in
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
388 --config-cache | -C)
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 *) ac_optarg=yes ;;
416 esac
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
588 -with-* | --with-*)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 *) ac_optarg=yes ;;
598 esac
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 esac
652 done
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
668 esac
669 done
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
680 esac
681 done
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
727 else
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
734 else
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
777 # Report the --help message.
779 if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
782 cat <<_ACEOF
783 \`configure' configures nocat 0.93pre2 to adapt to many kinds of systems.
785 Usage: $0 [OPTION]... [VAR=VALUE]...
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
790 Defaults for the options are specified in brackets.
792 Configuration:
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803 _ACEOF
805 cat <<_ACEOF
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
808 [$ac_default_prefix]
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 [PREFIX]
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
817 For better control, use the options below.
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
832 _ACEOF
834 cat <<\_ACEOF
836 Program names:
837 --program-prefix=PREFIX prepend PREFIX to installed program names
838 --program-suffix=SUFFIX append SUFFIX to installed program names
839 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840 _ACEOF
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of nocat 0.93pre2:";;
846 esac
847 cat <<\_ACEOF
849 Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --enable-maintainer-mode enable make rules and dependencies not useful
853 (and sometimes confusing) to the casual installer
854 --disable-dependency-tracking speeds up one-time build
855 --enable-dependency-tracking do not reject slow dependency extractors
856 --disable-glibtest Do not try to compile and run a test GLIB program
858 Optional Packages:
859 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
860 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
861 --with-glib-prefix=PFX Prefix where GLIB is installed (optional)
862 --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)
863 --with-mode Authentication mode (open)
864 --with-remote-splash Fetch splash page from elsewhere with libghttp.
865 --with-ghttpd Build and install ghttpd, a lightweight httpd.
866 --with-firewall=FW Firewall to configure NoCat for.
867 --with-docroot=PATH Directory to store HTML templates in.
869 Some influential environment variables:
870 CC C compiler command
871 CFLAGS C compiler flags
872 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
873 nonstandard directory <lib dir>
874 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
875 headers in a nonstandard directory <include dir>
876 CPP C preprocessor
878 Use these variables to override the choices made by `configure' or to help
879 it to find libraries and programs with nonstandard names/locations.
881 Report bugs to <schuyler@nocat.net>.
882 _ACEOF
885 if test "$ac_init_help" = "recursive"; then
886 # If there are subdirs, report their specific --help.
887 ac_popdir=`pwd`
888 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
889 test -d $ac_dir || continue
890 ac_builddir=.
892 if test "$ac_dir" != .; then
893 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
894 # A "../" for each directory in $ac_dir_suffix.
895 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
896 else
897 ac_dir_suffix= ac_top_builddir=
900 case $srcdir in
901 .) # No --srcdir option. We are building in place.
902 ac_srcdir=.
903 if test -z "$ac_top_builddir"; then
904 ac_top_srcdir=.
905 else
906 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
907 fi ;;
908 [\\/]* | ?:[\\/]* ) # Absolute path.
909 ac_srcdir=$srcdir$ac_dir_suffix;
910 ac_top_srcdir=$srcdir ;;
911 *) # Relative path.
912 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
913 ac_top_srcdir=$ac_top_builddir$srcdir ;;
914 esac
916 # Do not use `cd foo && pwd` to compute absolute paths, because
917 # the directories may not exist.
918 case `pwd` in
919 .) ac_abs_builddir="$ac_dir";;
921 case "$ac_dir" in
922 .) ac_abs_builddir=`pwd`;;
923 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
924 *) ac_abs_builddir=`pwd`/"$ac_dir";;
925 esac;;
926 esac
927 case $ac_abs_builddir in
928 .) ac_abs_top_builddir=${ac_top_builddir}.;;
930 case ${ac_top_builddir}. in
931 .) ac_abs_top_builddir=$ac_abs_builddir;;
932 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
933 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
934 esac;;
935 esac
936 case $ac_abs_builddir in
937 .) ac_abs_srcdir=$ac_srcdir;;
939 case $ac_srcdir in
940 .) ac_abs_srcdir=$ac_abs_builddir;;
941 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
942 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
943 esac;;
944 esac
945 case $ac_abs_builddir in
946 .) ac_abs_top_srcdir=$ac_top_srcdir;;
948 case $ac_top_srcdir in
949 .) ac_abs_top_srcdir=$ac_abs_builddir;;
950 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
951 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
952 esac;;
953 esac
955 cd $ac_dir
956 # Check for guested configure; otherwise get Cygnus style configure.
957 if test -f $ac_srcdir/configure.gnu; then
958 echo
959 $SHELL $ac_srcdir/configure.gnu --help=recursive
960 elif test -f $ac_srcdir/configure; then
961 echo
962 $SHELL $ac_srcdir/configure --help=recursive
963 elif test -f $ac_srcdir/configure.ac ||
964 test -f $ac_srcdir/configure.in; then
965 echo
966 $ac_configure --help
967 else
968 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
970 cd $ac_popdir
971 done
974 test -n "$ac_init_help" && exit 0
975 if $ac_init_version; then
976 cat <<\_ACEOF
977 nocat configure 0.93pre2
978 generated by GNU Autoconf 2.59
980 Copyright (C) 2003 Free Software Foundation, Inc.
981 This configure script is free software; the Free Software Foundation
982 gives unlimited permission to copy, distribute and modify it.
983 _ACEOF
984 exit 0
986 exec 5>config.log
987 cat >&5 <<_ACEOF
988 This file contains any messages produced by compilers while
989 running configure, to aid debugging if configure makes a mistake.
991 It was created by nocat $as_me 0.93pre2, which was
992 generated by GNU Autoconf 2.59. Invocation command line was
994 $ $0 $@
996 _ACEOF
998 cat <<_ASUNAME
999 ## --------- ##
1000 ## Platform. ##
1001 ## --------- ##
1003 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1004 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1005 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1006 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1007 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1009 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1010 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1012 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1013 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1014 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1015 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1016 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1017 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1018 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1020 _ASUNAME
1022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1023 for as_dir in $PATH
1025 IFS=$as_save_IFS
1026 test -z "$as_dir" && as_dir=.
1027 echo "PATH: $as_dir"
1028 done
1030 } >&5
1032 cat >&5 <<_ACEOF
1035 ## ----------- ##
1036 ## Core tests. ##
1037 ## ----------- ##
1039 _ACEOF
1042 # Keep a trace of the command line.
1043 # Strip out --no-create and --no-recursion so they do not pile up.
1044 # Strip out --silent because we don't want to record it for future runs.
1045 # Also quote any args containing shell meta-characters.
1046 # Make two passes to allow for proper duplicate-argument suppression.
1047 ac_configure_args=
1048 ac_configure_args0=
1049 ac_configure_args1=
1050 ac_sep=
1051 ac_must_keep_next=false
1052 for ac_pass in 1 2
1054 for ac_arg
1056 case $ac_arg in
1057 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1059 | -silent | --silent | --silen | --sile | --sil)
1060 continue ;;
1061 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1062 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1063 esac
1064 case $ac_pass in
1065 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1067 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1068 if test $ac_must_keep_next = true; then
1069 ac_must_keep_next=false # Got value, back to normal.
1070 else
1071 case $ac_arg in
1072 *=* | --config-cache | -C | -disable-* | --disable-* \
1073 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1074 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1075 | -with-* | --with-* | -without-* | --without-* | --x)
1076 case "$ac_configure_args0 " in
1077 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1078 esac
1080 -* ) ac_must_keep_next=true ;;
1081 esac
1083 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1084 # Get rid of the leading space.
1085 ac_sep=" "
1087 esac
1088 done
1089 done
1090 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1091 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1093 # When interrupted or exit'd, cleanup temporary files, and complete
1094 # config.log. We remove comments because anyway the quotes in there
1095 # would cause problems or look ugly.
1096 # WARNING: Be sure not to use single quotes in there, as some shells,
1097 # such as our DU 5.0 friend, will then `close' the trap.
1098 trap 'exit_status=$?
1099 # Save into config.log some information that might help in debugging.
1101 echo
1103 cat <<\_ASBOX
1104 ## ---------------- ##
1105 ## Cache variables. ##
1106 ## ---------------- ##
1107 _ASBOX
1108 echo
1109 # The following way of writing the cache mishandles newlines in values,
1111 (set) 2>&1 |
1112 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1113 *ac_space=\ *)
1114 sed -n \
1115 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1116 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1119 sed -n \
1120 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1122 esac;
1124 echo
1126 cat <<\_ASBOX
1127 ## ----------------- ##
1128 ## Output variables. ##
1129 ## ----------------- ##
1130 _ASBOX
1131 echo
1132 for ac_var in $ac_subst_vars
1134 eval ac_val=$`echo $ac_var`
1135 echo "$ac_var='"'"'$ac_val'"'"'"
1136 done | sort
1137 echo
1139 if test -n "$ac_subst_files"; then
1140 cat <<\_ASBOX
1141 ## ------------- ##
1142 ## Output files. ##
1143 ## ------------- ##
1144 _ASBOX
1145 echo
1146 for ac_var in $ac_subst_files
1148 eval ac_val=$`echo $ac_var`
1149 echo "$ac_var='"'"'$ac_val'"'"'"
1150 done | sort
1151 echo
1154 if test -s confdefs.h; then
1155 cat <<\_ASBOX
1156 ## ----------- ##
1157 ## confdefs.h. ##
1158 ## ----------- ##
1159 _ASBOX
1160 echo
1161 sed "/^$/d" confdefs.h | sort
1162 echo
1164 test "$ac_signal" != 0 &&
1165 echo "$as_me: caught signal $ac_signal"
1166 echo "$as_me: exit $exit_status"
1167 } >&5
1168 rm -f core *.core &&
1169 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1170 exit $exit_status
1172 for ac_signal in 1 2 13 15; do
1173 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1174 done
1175 ac_signal=0
1177 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1178 rm -rf conftest* confdefs.h
1179 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1180 echo >confdefs.h
1182 # Predefined preprocessor variables.
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_NAME "$PACKAGE_NAME"
1186 _ACEOF
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1191 _ACEOF
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1196 _ACEOF
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_STRING "$PACKAGE_STRING"
1201 _ACEOF
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1206 _ACEOF
1209 # Let the site file select an alternate cache file if it wants to.
1210 # Prefer explicitly selected file to automatically selected ones.
1211 if test -z "$CONFIG_SITE"; then
1212 if test "x$prefix" != xNONE; then
1213 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1214 else
1215 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1218 for ac_site_file in $CONFIG_SITE; do
1219 if test -r "$ac_site_file"; then
1220 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1221 echo "$as_me: loading site script $ac_site_file" >&6;}
1222 sed 's/^/| /' "$ac_site_file" >&5
1223 . "$ac_site_file"
1225 done
1227 if test -r "$cache_file"; then
1228 # Some versions of bash will fail to source /dev/null (special
1229 # files actually), so we avoid doing that.
1230 if test -f "$cache_file"; then
1231 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1232 echo "$as_me: loading cache $cache_file" >&6;}
1233 case $cache_file in
1234 [\\/]* | ?:[\\/]* ) . $cache_file;;
1235 *) . ./$cache_file;;
1236 esac
1238 else
1239 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1240 echo "$as_me: creating cache $cache_file" >&6;}
1241 >$cache_file
1244 # Check that the precious variables saved in the cache have kept the same
1245 # value.
1246 ac_cache_corrupted=false
1247 for ac_var in `(set) 2>&1 |
1248 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1249 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1250 eval ac_new_set=\$ac_env_${ac_var}_set
1251 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1252 eval ac_new_val="\$ac_env_${ac_var}_value"
1253 case $ac_old_set,$ac_new_set in
1254 set,)
1255 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1256 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1257 ac_cache_corrupted=: ;;
1258 ,set)
1259 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1260 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1261 ac_cache_corrupted=: ;;
1262 ,);;
1264 if test "x$ac_old_val" != "x$ac_new_val"; then
1265 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1266 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1267 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1268 echo "$as_me: former value: $ac_old_val" >&2;}
1269 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1270 echo "$as_me: current value: $ac_new_val" >&2;}
1271 ac_cache_corrupted=:
1272 fi;;
1273 esac
1274 # Pass precious variables to config.status.
1275 if test "$ac_new_set" = set; then
1276 case $ac_new_val in
1277 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1278 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1279 *) ac_arg=$ac_var=$ac_new_val ;;
1280 esac
1281 case " $ac_configure_args " in
1282 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1283 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1284 esac
1286 done
1287 if $ac_cache_corrupted; then
1288 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1289 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1290 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1291 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1292 { (exit 1); exit 1; }; }
1295 ac_ext=c
1296 ac_cpp='$CPP $CPPFLAGS'
1297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1328 ac_config_headers="$ac_config_headers src/config.h"
1330 am__api_version="1.8"
1331 ac_aux_dir=
1332 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1333 if test -f $ac_dir/install-sh; then
1334 ac_aux_dir=$ac_dir
1335 ac_install_sh="$ac_aux_dir/install-sh -c"
1336 break
1337 elif test -f $ac_dir/install.sh; then
1338 ac_aux_dir=$ac_dir
1339 ac_install_sh="$ac_aux_dir/install.sh -c"
1340 break
1341 elif test -f $ac_dir/shtool; then
1342 ac_aux_dir=$ac_dir
1343 ac_install_sh="$ac_aux_dir/shtool install -c"
1344 break
1346 done
1347 if test -z "$ac_aux_dir"; then
1348 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1349 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1350 { (exit 1); exit 1; }; }
1352 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1353 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1354 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1356 # Find a good install program. We prefer a C program (faster),
1357 # so one script is as good as another. But avoid the broken or
1358 # incompatible versions:
1359 # SysV /etc/install, /usr/sbin/install
1360 # SunOS /usr/etc/install
1361 # IRIX /sbin/install
1362 # AIX /bin/install
1363 # AmigaOS /C/install, which installs bootblocks on floppy discs
1364 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1365 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1366 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1367 # OS/2's system install, which has a completely different semantic
1368 # ./install, which can be erroneously created by make from ./install.sh.
1369 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1370 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1371 if test -z "$INSTALL"; then
1372 if test "${ac_cv_path_install+set}" = set; then
1373 echo $ECHO_N "(cached) $ECHO_C" >&6
1374 else
1375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1376 for as_dir in $PATH
1378 IFS=$as_save_IFS
1379 test -z "$as_dir" && as_dir=.
1380 # Account for people who put trailing slashes in PATH elements.
1381 case $as_dir/ in
1382 ./ | .// | /cC/* | \
1383 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1384 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1385 /usr/ucb/* ) ;;
1387 # OSF1 and SCO ODT 3.0 have their own names for install.
1388 # Don't use installbsd from OSF since it installs stuff as root
1389 # by default.
1390 for ac_prog in ginstall scoinst install; do
1391 for ac_exec_ext in '' $ac_executable_extensions; do
1392 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1393 if test $ac_prog = install &&
1394 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1395 # AIX install. It has an incompatible calling convention.
1397 elif test $ac_prog = install &&
1398 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1399 # program-specific install script used by HP pwplus--don't use.
1401 else
1402 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1403 break 3
1406 done
1407 done
1409 esac
1410 done
1414 if test "${ac_cv_path_install+set}" = set; then
1415 INSTALL=$ac_cv_path_install
1416 else
1417 # As a last resort, use the slow shell script. We don't cache a
1418 # path for INSTALL within a source directory, because that will
1419 # break other packages using the cache if that directory is
1420 # removed, or if the path is relative.
1421 INSTALL=$ac_install_sh
1424 echo "$as_me:$LINENO: result: $INSTALL" >&5
1425 echo "${ECHO_T}$INSTALL" >&6
1427 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1428 # It thinks the first close brace ends the variable substitution.
1429 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1431 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1433 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1435 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1436 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1437 # Just in case
1438 sleep 1
1439 echo timestamp > conftest.file
1440 # Do `set' in a subshell so we don't clobber the current shell's
1441 # arguments. Must try -L first in case configure is actually a
1442 # symlink; some systems play weird games with the mod time of symlinks
1443 # (eg FreeBSD returns the mod time of the symlink's containing
1444 # directory).
1445 if (
1446 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1447 if test "$*" = "X"; then
1448 # -L didn't work.
1449 set X `ls -t $srcdir/configure conftest.file`
1451 rm -f conftest.file
1452 if test "$*" != "X $srcdir/configure conftest.file" \
1453 && test "$*" != "X conftest.file $srcdir/configure"; then
1455 # If neither matched, then we have a broken ls. This can happen
1456 # if, for instance, CONFIG_SHELL is bash and it inherits a
1457 # broken ls alias from the environment. This has actually
1458 # happened. Such a system could not be considered "sane".
1459 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1460 alias in your environment" >&5
1461 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1462 alias in your environment" >&2;}
1463 { (exit 1); exit 1; }; }
1466 test "$2" = conftest.file
1468 then
1469 # Ok.
1471 else
1472 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1473 Check your system clock" >&5
1474 echo "$as_me: error: newly created file is older than distributed files!
1475 Check your system clock" >&2;}
1476 { (exit 1); exit 1; }; }
1478 echo "$as_me:$LINENO: result: yes" >&5
1479 echo "${ECHO_T}yes" >&6
1480 test "$program_prefix" != NONE &&
1481 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1482 # Use a double $ so make ignores it.
1483 test "$program_suffix" != NONE &&
1484 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1485 # Double any \ or $. echo might interpret backslashes.
1486 # By default was `s,x,x', remove it if useless.
1487 cat <<\_ACEOF >conftest.sed
1488 s/[\\$]/&&/g;s/;s,x,x,$//
1489 _ACEOF
1490 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1491 rm conftest.sed
1493 # expand $ac_aux_dir to an absolute path
1494 am_aux_dir=`cd $ac_aux_dir && pwd`
1496 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1497 # Use eval to expand $SHELL
1498 if eval "$MISSING --run true"; then
1499 am_missing_run="$MISSING --run "
1500 else
1501 am_missing_run=
1502 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1503 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1506 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1507 # Keeping the `.' argument allows $(mkdir_p) to be used without
1508 # argument. Indeed, we sometimes output rules like
1509 # $(mkdir_p) $(somedir)
1510 # where $(somedir) is conditionally defined.
1511 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1512 # expensive solution, as it forces Make to start a sub-shell.)
1513 mkdir_p='mkdir -p -- .'
1514 else
1515 # On NextStep and OpenStep, the `mkdir' command does not
1516 # recognize any option. It will interpret all options as
1517 # directories to create, and then abort because `.' already
1518 # exists.
1519 for d in ./-p ./--version;
1521 test -d $d && rmdir $d
1522 done
1523 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1524 if test -f "$ac_aux_dir/mkinstalldirs"; then
1525 mkdir_p='$(mkinstalldirs)'
1526 else
1527 mkdir_p='$(install_sh) -d'
1531 for ac_prog in gawk mawk nawk awk
1533 # Extract the first word of "$ac_prog", so it can be a program name with args.
1534 set dummy $ac_prog; ac_word=$2
1535 echo "$as_me:$LINENO: checking for $ac_word" >&5
1536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1537 if test "${ac_cv_prog_AWK+set}" = set; then
1538 echo $ECHO_N "(cached) $ECHO_C" >&6
1539 else
1540 if test -n "$AWK"; then
1541 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1542 else
1543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1544 for as_dir in $PATH
1546 IFS=$as_save_IFS
1547 test -z "$as_dir" && as_dir=.
1548 for ac_exec_ext in '' $ac_executable_extensions; do
1549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1550 ac_cv_prog_AWK="$ac_prog"
1551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1552 break 2
1554 done
1555 done
1559 AWK=$ac_cv_prog_AWK
1560 if test -n "$AWK"; then
1561 echo "$as_me:$LINENO: result: $AWK" >&5
1562 echo "${ECHO_T}$AWK" >&6
1563 else
1564 echo "$as_me:$LINENO: result: no" >&5
1565 echo "${ECHO_T}no" >&6
1568 test -n "$AWK" && break
1569 done
1571 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1572 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1573 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1574 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1575 echo $ECHO_N "(cached) $ECHO_C" >&6
1576 else
1577 cat >conftest.make <<\_ACEOF
1578 all:
1579 @echo 'ac_maketemp="$(MAKE)"'
1580 _ACEOF
1581 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1582 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1583 if test -n "$ac_maketemp"; then
1584 eval ac_cv_prog_make_${ac_make}_set=yes
1585 else
1586 eval ac_cv_prog_make_${ac_make}_set=no
1588 rm -f conftest.make
1590 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1591 echo "$as_me:$LINENO: result: yes" >&5
1592 echo "${ECHO_T}yes" >&6
1593 SET_MAKE=
1594 else
1595 echo "$as_me:$LINENO: result: no" >&5
1596 echo "${ECHO_T}no" >&6
1597 SET_MAKE="MAKE=${MAKE-make}"
1600 rm -rf .tst 2>/dev/null
1601 mkdir .tst 2>/dev/null
1602 if test -d .tst; then
1603 am__leading_dot=.
1604 else
1605 am__leading_dot=_
1607 rmdir .tst 2>/dev/null
1609 # test to see if srcdir already configured
1610 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1611 test -f $srcdir/config.status; then
1612 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1613 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1614 { (exit 1); exit 1; }; }
1617 # test whether we have cygpath
1618 if test -z "$CYGPATH_W"; then
1619 if (cygpath --version) >/dev/null 2>/dev/null; then
1620 CYGPATH_W='cygpath -w'
1621 else
1622 CYGPATH_W=echo
1627 # Define the identity of the package.
1628 PACKAGE='NoCatSplash'
1629 VERSION='0.93pre2'
1632 cat >>confdefs.h <<_ACEOF
1633 #define PACKAGE "$PACKAGE"
1634 _ACEOF
1637 cat >>confdefs.h <<_ACEOF
1638 #define VERSION "$VERSION"
1639 _ACEOF
1641 # Some tools Automake needs.
1643 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1646 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1649 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1652 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1655 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1658 AMTAR=${AMTAR-"${am_missing_run}tar"}
1660 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1662 # Installed binaries are usually stripped using `strip' when the user
1663 # run `make install-strip'. However `strip' might not be the right
1664 # tool to use in cross-compilation environments, therefore Automake
1665 # will honor the `STRIP' environment variable to overrule this program.
1666 if test "$cross_compiling" != no; then
1667 if test -n "$ac_tool_prefix"; then
1668 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1669 set dummy ${ac_tool_prefix}strip; ac_word=$2
1670 echo "$as_me:$LINENO: checking for $ac_word" >&5
1671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1672 if test "${ac_cv_prog_STRIP+set}" = set; then
1673 echo $ECHO_N "(cached) $ECHO_C" >&6
1674 else
1675 if test -n "$STRIP"; then
1676 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1677 else
1678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1679 for as_dir in $PATH
1681 IFS=$as_save_IFS
1682 test -z "$as_dir" && as_dir=.
1683 for ac_exec_ext in '' $ac_executable_extensions; do
1684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1685 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1687 break 2
1689 done
1690 done
1694 STRIP=$ac_cv_prog_STRIP
1695 if test -n "$STRIP"; then
1696 echo "$as_me:$LINENO: result: $STRIP" >&5
1697 echo "${ECHO_T}$STRIP" >&6
1698 else
1699 echo "$as_me:$LINENO: result: no" >&5
1700 echo "${ECHO_T}no" >&6
1704 if test -z "$ac_cv_prog_STRIP"; then
1705 ac_ct_STRIP=$STRIP
1706 # Extract the first word of "strip", so it can be a program name with args.
1707 set dummy strip; ac_word=$2
1708 echo "$as_me:$LINENO: checking for $ac_word" >&5
1709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1710 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1711 echo $ECHO_N "(cached) $ECHO_C" >&6
1712 else
1713 if test -n "$ac_ct_STRIP"; then
1714 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1715 else
1716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717 for as_dir in $PATH
1719 IFS=$as_save_IFS
1720 test -z "$as_dir" && as_dir=.
1721 for ac_exec_ext in '' $ac_executable_extensions; do
1722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1723 ac_cv_prog_ac_ct_STRIP="strip"
1724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1725 break 2
1727 done
1728 done
1730 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1733 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1734 if test -n "$ac_ct_STRIP"; then
1735 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1736 echo "${ECHO_T}$ac_ct_STRIP" >&6
1737 else
1738 echo "$as_me:$LINENO: result: no" >&5
1739 echo "${ECHO_T}no" >&6
1742 STRIP=$ac_ct_STRIP
1743 else
1744 STRIP="$ac_cv_prog_STRIP"
1748 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1750 # We need awk for the "check" target. The system "awk" is bad on
1751 # some platforms.
1755 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1756 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1757 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1758 if test "${enable_maintainer_mode+set}" = set; then
1759 enableval="$enable_maintainer_mode"
1760 USE_MAINTAINER_MODE=$enableval
1761 else
1762 USE_MAINTAINER_MODE=no
1764 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1765 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1768 if test $USE_MAINTAINER_MODE = yes; then
1769 MAINTAINER_MODE_TRUE=
1770 MAINTAINER_MODE_FALSE='#'
1771 else
1772 MAINTAINER_MODE_TRUE='#'
1773 MAINTAINER_MODE_FALSE=
1776 MAINT=$MAINTAINER_MODE_TRUE
1780 # Checks for programs.
1781 ac_ext=c
1782 ac_cpp='$CPP $CPPFLAGS'
1783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1786 if test -n "$ac_tool_prefix"; then
1787 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1788 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1789 echo "$as_me:$LINENO: checking for $ac_word" >&5
1790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1791 if test "${ac_cv_prog_CC+set}" = set; then
1792 echo $ECHO_N "(cached) $ECHO_C" >&6
1793 else
1794 if test -n "$CC"; then
1795 ac_cv_prog_CC="$CC" # Let the user override the test.
1796 else
1797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1798 for as_dir in $PATH
1800 IFS=$as_save_IFS
1801 test -z "$as_dir" && as_dir=.
1802 for ac_exec_ext in '' $ac_executable_extensions; do
1803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1804 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1806 break 2
1808 done
1809 done
1813 CC=$ac_cv_prog_CC
1814 if test -n "$CC"; then
1815 echo "$as_me:$LINENO: result: $CC" >&5
1816 echo "${ECHO_T}$CC" >&6
1817 else
1818 echo "$as_me:$LINENO: result: no" >&5
1819 echo "${ECHO_T}no" >&6
1823 if test -z "$ac_cv_prog_CC"; then
1824 ac_ct_CC=$CC
1825 # Extract the first word of "gcc", so it can be a program name with args.
1826 set dummy gcc; ac_word=$2
1827 echo "$as_me:$LINENO: checking for $ac_word" >&5
1828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1829 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1830 echo $ECHO_N "(cached) $ECHO_C" >&6
1831 else
1832 if test -n "$ac_ct_CC"; then
1833 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1834 else
1835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1836 for as_dir in $PATH
1838 IFS=$as_save_IFS
1839 test -z "$as_dir" && as_dir=.
1840 for ac_exec_ext in '' $ac_executable_extensions; do
1841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1842 ac_cv_prog_ac_ct_CC="gcc"
1843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1844 break 2
1846 done
1847 done
1851 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1852 if test -n "$ac_ct_CC"; then
1853 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1854 echo "${ECHO_T}$ac_ct_CC" >&6
1855 else
1856 echo "$as_me:$LINENO: result: no" >&5
1857 echo "${ECHO_T}no" >&6
1860 CC=$ac_ct_CC
1861 else
1862 CC="$ac_cv_prog_CC"
1865 if test -z "$CC"; then
1866 if test -n "$ac_tool_prefix"; then
1867 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1868 set dummy ${ac_tool_prefix}cc; ac_word=$2
1869 echo "$as_me:$LINENO: checking for $ac_word" >&5
1870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1871 if test "${ac_cv_prog_CC+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1873 else
1874 if test -n "$CC"; then
1875 ac_cv_prog_CC="$CC" # Let the user override the test.
1876 else
1877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878 for as_dir in $PATH
1880 IFS=$as_save_IFS
1881 test -z "$as_dir" && as_dir=.
1882 for ac_exec_ext in '' $ac_executable_extensions; do
1883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1884 ac_cv_prog_CC="${ac_tool_prefix}cc"
1885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1886 break 2
1888 done
1889 done
1893 CC=$ac_cv_prog_CC
1894 if test -n "$CC"; then
1895 echo "$as_me:$LINENO: result: $CC" >&5
1896 echo "${ECHO_T}$CC" >&6
1897 else
1898 echo "$as_me:$LINENO: result: no" >&5
1899 echo "${ECHO_T}no" >&6
1903 if test -z "$ac_cv_prog_CC"; then
1904 ac_ct_CC=$CC
1905 # Extract the first word of "cc", so it can be a program name with args.
1906 set dummy cc; ac_word=$2
1907 echo "$as_me:$LINENO: checking for $ac_word" >&5
1908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1909 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1910 echo $ECHO_N "(cached) $ECHO_C" >&6
1911 else
1912 if test -n "$ac_ct_CC"; then
1913 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1914 else
1915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916 for as_dir in $PATH
1918 IFS=$as_save_IFS
1919 test -z "$as_dir" && as_dir=.
1920 for ac_exec_ext in '' $ac_executable_extensions; do
1921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1922 ac_cv_prog_ac_ct_CC="cc"
1923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1924 break 2
1926 done
1927 done
1931 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1932 if test -n "$ac_ct_CC"; then
1933 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1934 echo "${ECHO_T}$ac_ct_CC" >&6
1935 else
1936 echo "$as_me:$LINENO: result: no" >&5
1937 echo "${ECHO_T}no" >&6
1940 CC=$ac_ct_CC
1941 else
1942 CC="$ac_cv_prog_CC"
1946 if test -z "$CC"; then
1947 # Extract the first word of "cc", so it can be a program name with args.
1948 set dummy cc; ac_word=$2
1949 echo "$as_me:$LINENO: checking for $ac_word" >&5
1950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1951 if test "${ac_cv_prog_CC+set}" = set; then
1952 echo $ECHO_N "(cached) $ECHO_C" >&6
1953 else
1954 if test -n "$CC"; then
1955 ac_cv_prog_CC="$CC" # Let the user override the test.
1956 else
1957 ac_prog_rejected=no
1958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1959 for as_dir in $PATH
1961 IFS=$as_save_IFS
1962 test -z "$as_dir" && as_dir=.
1963 for ac_exec_ext in '' $ac_executable_extensions; do
1964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1965 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1966 ac_prog_rejected=yes
1967 continue
1969 ac_cv_prog_CC="cc"
1970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1971 break 2
1973 done
1974 done
1976 if test $ac_prog_rejected = yes; then
1977 # We found a bogon in the path, so make sure we never use it.
1978 set dummy $ac_cv_prog_CC
1979 shift
1980 if test $# != 0; then
1981 # We chose a different compiler from the bogus one.
1982 # However, it has the same basename, so the bogon will be chosen
1983 # first if we set CC to just the basename; use the full file name.
1984 shift
1985 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1990 CC=$ac_cv_prog_CC
1991 if test -n "$CC"; then
1992 echo "$as_me:$LINENO: result: $CC" >&5
1993 echo "${ECHO_T}$CC" >&6
1994 else
1995 echo "$as_me:$LINENO: result: no" >&5
1996 echo "${ECHO_T}no" >&6
2000 if test -z "$CC"; then
2001 if test -n "$ac_tool_prefix"; then
2002 for ac_prog in cl
2004 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2005 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2006 echo "$as_me:$LINENO: checking for $ac_word" >&5
2007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2008 if test "${ac_cv_prog_CC+set}" = set; then
2009 echo $ECHO_N "(cached) $ECHO_C" >&6
2010 else
2011 if test -n "$CC"; then
2012 ac_cv_prog_CC="$CC" # Let the user override the test.
2013 else
2014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015 for as_dir in $PATH
2017 IFS=$as_save_IFS
2018 test -z "$as_dir" && as_dir=.
2019 for ac_exec_ext in '' $ac_executable_extensions; do
2020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2021 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2023 break 2
2025 done
2026 done
2030 CC=$ac_cv_prog_CC
2031 if test -n "$CC"; then
2032 echo "$as_me:$LINENO: result: $CC" >&5
2033 echo "${ECHO_T}$CC" >&6
2034 else
2035 echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6
2039 test -n "$CC" && break
2040 done
2042 if test -z "$CC"; then
2043 ac_ct_CC=$CC
2044 for ac_prog in cl
2046 # Extract the first word of "$ac_prog", so it can be a program name with args.
2047 set dummy $ac_prog; ac_word=$2
2048 echo "$as_me:$LINENO: checking for $ac_word" >&5
2049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2050 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
2052 else
2053 if test -n "$ac_ct_CC"; then
2054 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2055 else
2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057 for as_dir in $PATH
2059 IFS=$as_save_IFS
2060 test -z "$as_dir" && as_dir=.
2061 for ac_exec_ext in '' $ac_executable_extensions; do
2062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2063 ac_cv_prog_ac_ct_CC="$ac_prog"
2064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065 break 2
2067 done
2068 done
2072 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2073 if test -n "$ac_ct_CC"; then
2074 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2075 echo "${ECHO_T}$ac_ct_CC" >&6
2076 else
2077 echo "$as_me:$LINENO: result: no" >&5
2078 echo "${ECHO_T}no" >&6
2081 test -n "$ac_ct_CC" && break
2082 done
2084 CC=$ac_ct_CC
2090 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2091 See \`config.log' for more details." >&5
2092 echo "$as_me: error: no acceptable C compiler found in \$PATH
2093 See \`config.log' for more details." >&2;}
2094 { (exit 1); exit 1; }; }
2096 # Provide some information about the compiler.
2097 echo "$as_me:$LINENO:" \
2098 "checking for C compiler version" >&5
2099 ac_compiler=`set X $ac_compile; echo $2`
2100 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2101 (eval $ac_compiler --version </dev/null >&5) 2>&5
2102 ac_status=$?
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }
2105 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2106 (eval $ac_compiler -v </dev/null >&5) 2>&5
2107 ac_status=$?
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); }
2110 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2111 (eval $ac_compiler -V </dev/null >&5) 2>&5
2112 ac_status=$?
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }
2116 cat >conftest.$ac_ext <<_ACEOF
2117 /* confdefs.h. */
2118 _ACEOF
2119 cat confdefs.h >>conftest.$ac_ext
2120 cat >>conftest.$ac_ext <<_ACEOF
2121 /* end confdefs.h. */
2124 main ()
2128 return 0;
2130 _ACEOF
2131 ac_clean_files_save=$ac_clean_files
2132 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2133 # Try to create an executable without -o first, disregard a.out.
2134 # It will help us diagnose broken compilers, and finding out an intuition
2135 # of exeext.
2136 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2137 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2138 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2139 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2140 (eval $ac_link_default) 2>&5
2141 ac_status=$?
2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); }; then
2144 # Find the output, starting from the most likely. This scheme is
2145 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2146 # resort.
2148 # Be careful to initialize this variable, since it used to be cached.
2149 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2150 ac_cv_exeext=
2151 # b.out is created by i960 compilers.
2152 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2154 test -f "$ac_file" || continue
2155 case $ac_file in
2156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2158 conftest.$ac_ext )
2159 # This is the source file.
2161 [ab].out )
2162 # We found the default executable, but exeext='' is most
2163 # certainly right.
2164 break;;
2165 *.* )
2166 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2167 # FIXME: I believe we export ac_cv_exeext for Libtool,
2168 # but it would be cool to find out if it's true. Does anybody
2169 # maintain Libtool? --akim.
2170 export ac_cv_exeext
2171 break;;
2173 break;;
2174 esac
2175 done
2176 else
2177 echo "$as_me: failed program was:" >&5
2178 sed 's/^/| /' conftest.$ac_ext >&5
2180 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2181 See \`config.log' for more details." >&5
2182 echo "$as_me: error: C compiler cannot create executables
2183 See \`config.log' for more details." >&2;}
2184 { (exit 77); exit 77; }; }
2187 ac_exeext=$ac_cv_exeext
2188 echo "$as_me:$LINENO: result: $ac_file" >&5
2189 echo "${ECHO_T}$ac_file" >&6
2191 # Check the compiler produces executables we can run. If not, either
2192 # the compiler is broken, or we cross compile.
2193 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2194 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2195 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2196 # If not cross compiling, check that we can run a simple program.
2197 if test "$cross_compiling" != yes; then
2198 if { ac_try='./$ac_file'
2199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2200 (eval $ac_try) 2>&5
2201 ac_status=$?
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }; }; then
2204 cross_compiling=no
2205 else
2206 if test "$cross_compiling" = maybe; then
2207 cross_compiling=yes
2208 else
2209 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2210 If you meant to cross compile, use \`--host'.
2211 See \`config.log' for more details." >&5
2212 echo "$as_me: error: cannot run C compiled programs.
2213 If you meant to cross compile, use \`--host'.
2214 See \`config.log' for more details." >&2;}
2215 { (exit 1); exit 1; }; }
2219 echo "$as_me:$LINENO: result: yes" >&5
2220 echo "${ECHO_T}yes" >&6
2222 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2223 ac_clean_files=$ac_clean_files_save
2224 # Check the compiler produces executables we can run. If not, either
2225 # the compiler is broken, or we cross compile.
2226 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2227 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2228 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2229 echo "${ECHO_T}$cross_compiling" >&6
2231 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2232 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2234 (eval $ac_link) 2>&5
2235 ac_status=$?
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); }; then
2238 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2239 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2240 # work properly (i.e., refer to `conftest.exe'), while it won't with
2241 # `rm'.
2242 for ac_file in conftest.exe conftest conftest.*; do
2243 test -f "$ac_file" || continue
2244 case $ac_file in
2245 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2246 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2247 export ac_cv_exeext
2248 break;;
2249 * ) break;;
2250 esac
2251 done
2252 else
2253 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2254 See \`config.log' for more details." >&5
2255 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2256 See \`config.log' for more details." >&2;}
2257 { (exit 1); exit 1; }; }
2260 rm -f conftest$ac_cv_exeext
2261 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2262 echo "${ECHO_T}$ac_cv_exeext" >&6
2264 rm -f conftest.$ac_ext
2265 EXEEXT=$ac_cv_exeext
2266 ac_exeext=$EXEEXT
2267 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2268 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2269 if test "${ac_cv_objext+set}" = set; then
2270 echo $ECHO_N "(cached) $ECHO_C" >&6
2271 else
2272 cat >conftest.$ac_ext <<_ACEOF
2273 /* confdefs.h. */
2274 _ACEOF
2275 cat confdefs.h >>conftest.$ac_ext
2276 cat >>conftest.$ac_ext <<_ACEOF
2277 /* end confdefs.h. */
2280 main ()
2284 return 0;
2286 _ACEOF
2287 rm -f conftest.o conftest.obj
2288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2289 (eval $ac_compile) 2>&5
2290 ac_status=$?
2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); }; then
2293 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2294 case $ac_file in
2295 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2296 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2297 break;;
2298 esac
2299 done
2300 else
2301 echo "$as_me: failed program was:" >&5
2302 sed 's/^/| /' conftest.$ac_ext >&5
2304 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2305 See \`config.log' for more details." >&5
2306 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2307 See \`config.log' for more details." >&2;}
2308 { (exit 1); exit 1; }; }
2311 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2313 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2314 echo "${ECHO_T}$ac_cv_objext" >&6
2315 OBJEXT=$ac_cv_objext
2316 ac_objext=$OBJEXT
2317 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2318 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2319 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2321 else
2322 cat >conftest.$ac_ext <<_ACEOF
2323 /* confdefs.h. */
2324 _ACEOF
2325 cat confdefs.h >>conftest.$ac_ext
2326 cat >>conftest.$ac_ext <<_ACEOF
2327 /* end confdefs.h. */
2330 main ()
2332 #ifndef __GNUC__
2333 choke me
2334 #endif
2337 return 0;
2339 _ACEOF
2340 rm -f conftest.$ac_objext
2341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2342 (eval $ac_compile) 2>conftest.er1
2343 ac_status=$?
2344 grep -v '^ *+' conftest.er1 >conftest.err
2345 rm -f conftest.er1
2346 cat conftest.err >&5
2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); } &&
2349 { ac_try='test -z "$ac_c_werror_flag"
2350 || test ! -s conftest.err'
2351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2352 (eval $ac_try) 2>&5
2353 ac_status=$?
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); }; } &&
2356 { ac_try='test -s conftest.$ac_objext'
2357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2358 (eval $ac_try) 2>&5
2359 ac_status=$?
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); }; }; then
2362 ac_compiler_gnu=yes
2363 else
2364 echo "$as_me: failed program was:" >&5
2365 sed 's/^/| /' conftest.$ac_ext >&5
2367 ac_compiler_gnu=no
2369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2370 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2373 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2374 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2375 GCC=`test $ac_compiler_gnu = yes && echo yes`
2376 ac_test_CFLAGS=${CFLAGS+set}
2377 ac_save_CFLAGS=$CFLAGS
2378 CFLAGS="-g"
2379 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2380 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2381 if test "${ac_cv_prog_cc_g+set}" = set; then
2382 echo $ECHO_N "(cached) $ECHO_C" >&6
2383 else
2384 cat >conftest.$ac_ext <<_ACEOF
2385 /* confdefs.h. */
2386 _ACEOF
2387 cat confdefs.h >>conftest.$ac_ext
2388 cat >>conftest.$ac_ext <<_ACEOF
2389 /* end confdefs.h. */
2392 main ()
2396 return 0;
2398 _ACEOF
2399 rm -f conftest.$ac_objext
2400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2401 (eval $ac_compile) 2>conftest.er1
2402 ac_status=$?
2403 grep -v '^ *+' conftest.er1 >conftest.err
2404 rm -f conftest.er1
2405 cat conftest.err >&5
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); } &&
2408 { ac_try='test -z "$ac_c_werror_flag"
2409 || test ! -s conftest.err'
2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411 (eval $ac_try) 2>&5
2412 ac_status=$?
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; } &&
2415 { ac_try='test -s conftest.$ac_objext'
2416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417 (eval $ac_try) 2>&5
2418 ac_status=$?
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; }; then
2421 ac_cv_prog_cc_g=yes
2422 else
2423 echo "$as_me: failed program was:" >&5
2424 sed 's/^/| /' conftest.$ac_ext >&5
2426 ac_cv_prog_cc_g=no
2428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2430 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2431 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2432 if test "$ac_test_CFLAGS" = set; then
2433 CFLAGS=$ac_save_CFLAGS
2434 elif test $ac_cv_prog_cc_g = yes; then
2435 if test "$GCC" = yes; then
2436 CFLAGS="-g -O2"
2437 else
2438 CFLAGS="-g"
2440 else
2441 if test "$GCC" = yes; then
2442 CFLAGS="-O2"
2443 else
2444 CFLAGS=
2447 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2448 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2449 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2450 echo $ECHO_N "(cached) $ECHO_C" >&6
2451 else
2452 ac_cv_prog_cc_stdc=no
2453 ac_save_CC=$CC
2454 cat >conftest.$ac_ext <<_ACEOF
2455 /* confdefs.h. */
2456 _ACEOF
2457 cat confdefs.h >>conftest.$ac_ext
2458 cat >>conftest.$ac_ext <<_ACEOF
2459 /* end confdefs.h. */
2460 #include <stdarg.h>
2461 #include <stdio.h>
2462 #include <sys/types.h>
2463 #include <sys/stat.h>
2464 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2465 struct buf { int x; };
2466 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2467 static char *e (p, i)
2468 char **p;
2469 int i;
2471 return p[i];
2473 static char *f (char * (*g) (char **, int), char **p, ...)
2475 char *s;
2476 va_list v;
2477 va_start (v,p);
2478 s = g (p, va_arg (v,int));
2479 va_end (v);
2480 return s;
2483 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2484 function prototypes and stuff, but not '\xHH' hex character constants.
2485 These don't provoke an error unfortunately, instead are silently treated
2486 as 'x'. The following induces an error, until -std1 is added to get
2487 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2488 array size at least. It's necessary to write '\x00'==0 to get something
2489 that's true only with -std1. */
2490 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2492 int test (int i, double x);
2493 struct s1 {int (*f) (int a);};
2494 struct s2 {int (*f) (double a);};
2495 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2496 int argc;
2497 char **argv;
2499 main ()
2501 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2503 return 0;
2505 _ACEOF
2506 # Don't try gcc -ansi; that turns off useful extensions and
2507 # breaks some systems' header files.
2508 # AIX -qlanglvl=ansi
2509 # Ultrix and OSF/1 -std1
2510 # HP-UX 10.20 and later -Ae
2511 # HP-UX older versions -Aa -D_HPUX_SOURCE
2512 # SVR4 -Xc -D__EXTENSIONS__
2513 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2515 CC="$ac_save_CC $ac_arg"
2516 rm -f conftest.$ac_objext
2517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2518 (eval $ac_compile) 2>conftest.er1
2519 ac_status=$?
2520 grep -v '^ *+' conftest.er1 >conftest.err
2521 rm -f conftest.er1
2522 cat conftest.err >&5
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); } &&
2525 { ac_try='test -z "$ac_c_werror_flag"
2526 || test ! -s conftest.err'
2527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2528 (eval $ac_try) 2>&5
2529 ac_status=$?
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); }; } &&
2532 { ac_try='test -s conftest.$ac_objext'
2533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2534 (eval $ac_try) 2>&5
2535 ac_status=$?
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); }; }; then
2538 ac_cv_prog_cc_stdc=$ac_arg
2539 break
2540 else
2541 echo "$as_me: failed program was:" >&5
2542 sed 's/^/| /' conftest.$ac_ext >&5
2545 rm -f conftest.err conftest.$ac_objext
2546 done
2547 rm -f conftest.$ac_ext conftest.$ac_objext
2548 CC=$ac_save_CC
2552 case "x$ac_cv_prog_cc_stdc" in
2553 x|xno)
2554 echo "$as_me:$LINENO: result: none needed" >&5
2555 echo "${ECHO_T}none needed" >&6 ;;
2557 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2558 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2559 CC="$CC $ac_cv_prog_cc_stdc" ;;
2560 esac
2562 # Some people use a C++ compiler to compile C. Since we use `exit',
2563 # in C++ we need to declare it. In case someone uses the same compiler
2564 # for both compiling C and C++ we need to have the C++ compiler decide
2565 # the declaration of exit, since it's the most demanding environment.
2566 cat >conftest.$ac_ext <<_ACEOF
2567 #ifndef __cplusplus
2568 choke me
2569 #endif
2570 _ACEOF
2571 rm -f conftest.$ac_objext
2572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2573 (eval $ac_compile) 2>conftest.er1
2574 ac_status=$?
2575 grep -v '^ *+' conftest.er1 >conftest.err
2576 rm -f conftest.er1
2577 cat conftest.err >&5
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); } &&
2580 { ac_try='test -z "$ac_c_werror_flag"
2581 || test ! -s conftest.err'
2582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583 (eval $ac_try) 2>&5
2584 ac_status=$?
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }; } &&
2587 { ac_try='test -s conftest.$ac_objext'
2588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2589 (eval $ac_try) 2>&5
2590 ac_status=$?
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; }; then
2593 for ac_declaration in \
2594 '' \
2595 'extern "C" void std::exit (int) throw (); using std::exit;' \
2596 'extern "C" void std::exit (int); using std::exit;' \
2597 'extern "C" void exit (int) throw ();' \
2598 'extern "C" void exit (int);' \
2599 'void exit (int);'
2601 cat >conftest.$ac_ext <<_ACEOF
2602 /* confdefs.h. */
2603 _ACEOF
2604 cat confdefs.h >>conftest.$ac_ext
2605 cat >>conftest.$ac_ext <<_ACEOF
2606 /* end confdefs.h. */
2607 $ac_declaration
2608 #include <stdlib.h>
2610 main ()
2612 exit (42);
2614 return 0;
2616 _ACEOF
2617 rm -f conftest.$ac_objext
2618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2619 (eval $ac_compile) 2>conftest.er1
2620 ac_status=$?
2621 grep -v '^ *+' conftest.er1 >conftest.err
2622 rm -f conftest.er1
2623 cat conftest.err >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); } &&
2626 { ac_try='test -z "$ac_c_werror_flag"
2627 || test ! -s conftest.err'
2628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629 (eval $ac_try) 2>&5
2630 ac_status=$?
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; } &&
2633 { ac_try='test -s conftest.$ac_objext'
2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635 (eval $ac_try) 2>&5
2636 ac_status=$?
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; }; then
2640 else
2641 echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2644 continue
2646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2647 cat >conftest.$ac_ext <<_ACEOF
2648 /* confdefs.h. */
2649 _ACEOF
2650 cat confdefs.h >>conftest.$ac_ext
2651 cat >>conftest.$ac_ext <<_ACEOF
2652 /* end confdefs.h. */
2653 $ac_declaration
2655 main ()
2657 exit (42);
2659 return 0;
2661 _ACEOF
2662 rm -f conftest.$ac_objext
2663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2664 (eval $ac_compile) 2>conftest.er1
2665 ac_status=$?
2666 grep -v '^ *+' conftest.er1 >conftest.err
2667 rm -f conftest.er1
2668 cat conftest.err >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); } &&
2671 { ac_try='test -z "$ac_c_werror_flag"
2672 || test ! -s conftest.err'
2673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674 (eval $ac_try) 2>&5
2675 ac_status=$?
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }; } &&
2678 { ac_try='test -s conftest.$ac_objext'
2679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680 (eval $ac_try) 2>&5
2681 ac_status=$?
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); }; }; then
2684 break
2685 else
2686 echo "$as_me: failed program was:" >&5
2687 sed 's/^/| /' conftest.$ac_ext >&5
2690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2691 done
2692 rm -f conftest*
2693 if test -n "$ac_declaration"; then
2694 echo '#ifdef __cplusplus' >>confdefs.h
2695 echo $ac_declaration >>confdefs.h
2696 echo '#endif' >>confdefs.h
2699 else
2700 echo "$as_me: failed program was:" >&5
2701 sed 's/^/| /' conftest.$ac_ext >&5
2704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2705 ac_ext=c
2706 ac_cpp='$CPP $CPPFLAGS'
2707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2710 DEPDIR="${am__leading_dot}deps"
2712 ac_config_commands="$ac_config_commands depfiles"
2715 am_make=${MAKE-make}
2716 cat > confinc << 'END'
2717 am__doit:
2718 @echo done
2719 .PHONY: am__doit
2721 # If we don't find an include directive, just comment out the code.
2722 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2723 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2724 am__include="#"
2725 am__quote=
2726 _am_result=none
2727 # First try GNU make style include.
2728 echo "include confinc" > confmf
2729 # We grep out `Entering directory' and `Leaving directory'
2730 # messages which can occur if `w' ends up in MAKEFLAGS.
2731 # In particular we don't look at `^make:' because GNU make might
2732 # be invoked under some other name (usually "gmake"), in which
2733 # case it prints its new name instead of `make'.
2734 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2735 am__include=include
2736 am__quote=
2737 _am_result=GNU
2739 # Now try BSD make style include.
2740 if test "$am__include" = "#"; then
2741 echo '.include "confinc"' > confmf
2742 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2743 am__include=.include
2744 am__quote="\""
2745 _am_result=BSD
2750 echo "$as_me:$LINENO: result: $_am_result" >&5
2751 echo "${ECHO_T}$_am_result" >&6
2752 rm -f confinc confmf
2754 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2755 if test "${enable_dependency_tracking+set}" = set; then
2756 enableval="$enable_dependency_tracking"
2759 if test "x$enable_dependency_tracking" != xno; then
2760 am_depcomp="$ac_aux_dir/depcomp"
2761 AMDEPBACKSLASH='\'
2765 if test "x$enable_dependency_tracking" != xno; then
2766 AMDEP_TRUE=
2767 AMDEP_FALSE='#'
2768 else
2769 AMDEP_TRUE='#'
2770 AMDEP_FALSE=
2776 depcc="$CC" am_compiler_list=
2778 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2779 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2780 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2781 echo $ECHO_N "(cached) $ECHO_C" >&6
2782 else
2783 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2784 # We make a subdir and do the tests there. Otherwise we can end up
2785 # making bogus files that we don't know about and never remove. For
2786 # instance it was reported that on HP-UX the gcc test will end up
2787 # making a dummy file named `D' -- because `-MD' means `put the output
2788 # in D'.
2789 mkdir conftest.dir
2790 # Copy depcomp to subdir because otherwise we won't find it if we're
2791 # using a relative directory.
2792 cp "$am_depcomp" conftest.dir
2793 cd conftest.dir
2794 # We will build objects and dependencies in a subdirectory because
2795 # it helps to detect inapplicable dependency modes. For instance
2796 # both Tru64's cc and ICC support -MD to output dependencies as a
2797 # side effect of compilation, but ICC will put the dependencies in
2798 # the current directory while Tru64 will put them in the object
2799 # directory.
2800 mkdir sub
2802 am_cv_CC_dependencies_compiler_type=none
2803 if test "$am_compiler_list" = ""; then
2804 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2806 for depmode in $am_compiler_list; do
2807 # Setup a source with many dependencies, because some compilers
2808 # like to wrap large dependency lists on column 80 (with \), and
2809 # we should not choose a depcomp mode which is confused by this.
2811 # We need to recreate these files for each test, as the compiler may
2812 # overwrite some of them when testing with obscure command lines.
2813 # This happens at least with the AIX C compiler.
2814 : > sub/conftest.c
2815 for i in 1 2 3 4 5 6; do
2816 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2817 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2818 # Solaris 8's {/usr,}/bin/sh.
2819 touch sub/conftst$i.h
2820 done
2821 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2823 case $depmode in
2824 nosideeffect)
2825 # after this tag, mechanisms are not by side-effect, so they'll
2826 # only be used when explicitly requested
2827 if test "x$enable_dependency_tracking" = xyes; then
2828 continue
2829 else
2830 break
2833 none) break ;;
2834 esac
2835 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2836 # mode. It turns out that the SunPro C++ compiler does not properly
2837 # handle `-M -o', and we need to detect this.
2838 if depmode=$depmode \
2839 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2840 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2841 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2842 >/dev/null 2>conftest.err &&
2843 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2844 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2845 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2846 # icc doesn't choke on unknown options, it will just issue warnings
2847 # (even with -Werror). So we grep stderr for any message
2848 # that says an option was ignored.
2849 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2850 am_cv_CC_dependencies_compiler_type=$depmode
2851 break
2854 done
2856 cd ..
2857 rm -rf conftest.dir
2858 else
2859 am_cv_CC_dependencies_compiler_type=none
2863 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2864 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2865 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2870 test "x$enable_dependency_tracking" != xno \
2871 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2872 am__fastdepCC_TRUE=
2873 am__fastdepCC_FALSE='#'
2874 else
2875 am__fastdepCC_TRUE='#'
2876 am__fastdepCC_FALSE=
2880 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2881 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2882 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2883 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2884 echo $ECHO_N "(cached) $ECHO_C" >&6
2885 else
2886 cat >conftest.make <<\_ACEOF
2887 all:
2888 @echo 'ac_maketemp="$(MAKE)"'
2889 _ACEOF
2890 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2891 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2892 if test -n "$ac_maketemp"; then
2893 eval ac_cv_prog_make_${ac_make}_set=yes
2894 else
2895 eval ac_cv_prog_make_${ac_make}_set=no
2897 rm -f conftest.make
2899 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2900 echo "$as_me:$LINENO: result: yes" >&5
2901 echo "${ECHO_T}yes" >&6
2902 SET_MAKE=
2903 else
2904 echo "$as_me:$LINENO: result: no" >&5
2905 echo "${ECHO_T}no" >&6
2906 SET_MAKE="MAKE=${MAKE-make}"
2909 if test -n "$ac_tool_prefix"; then
2910 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2911 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2912 echo "$as_me:$LINENO: checking for $ac_word" >&5
2913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2914 if test "${ac_cv_prog_RANLIB+set}" = set; then
2915 echo $ECHO_N "(cached) $ECHO_C" >&6
2916 else
2917 if test -n "$RANLIB"; then
2918 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2919 else
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921 for as_dir in $PATH
2923 IFS=$as_save_IFS
2924 test -z "$as_dir" && as_dir=.
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2927 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2929 break 2
2931 done
2932 done
2936 RANLIB=$ac_cv_prog_RANLIB
2937 if test -n "$RANLIB"; then
2938 echo "$as_me:$LINENO: result: $RANLIB" >&5
2939 echo "${ECHO_T}$RANLIB" >&6
2940 else
2941 echo "$as_me:$LINENO: result: no" >&5
2942 echo "${ECHO_T}no" >&6
2946 if test -z "$ac_cv_prog_RANLIB"; then
2947 ac_ct_RANLIB=$RANLIB
2948 # Extract the first word of "ranlib", so it can be a program name with args.
2949 set dummy ranlib; ac_word=$2
2950 echo "$as_me:$LINENO: checking for $ac_word" >&5
2951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2952 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2953 echo $ECHO_N "(cached) $ECHO_C" >&6
2954 else
2955 if test -n "$ac_ct_RANLIB"; then
2956 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2957 else
2958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959 for as_dir in $PATH
2961 IFS=$as_save_IFS
2962 test -z "$as_dir" && as_dir=.
2963 for ac_exec_ext in '' $ac_executable_extensions; do
2964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2965 ac_cv_prog_ac_ct_RANLIB="ranlib"
2966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 break 2
2969 done
2970 done
2972 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2975 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2976 if test -n "$ac_ct_RANLIB"; then
2977 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2978 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2979 else
2980 echo "$as_me:$LINENO: result: no" >&5
2981 echo "${ECHO_T}no" >&6
2984 RANLIB=$ac_ct_RANLIB
2985 else
2986 RANLIB="$ac_cv_prog_RANLIB"
2990 # Checks for libraries.
2991 # FIXME: Replace `main' with a function in `-lsplash':
2992 # AC_CHECK_LIB([splash], [http_request_new])
2995 # Check whether --with-glib-prefix or --without-glib-prefix was given.
2996 if test "${with_glib_prefix+set}" = set; then
2997 withval="$with_glib_prefix"
2998 glib_config_prefix="$withval"
2999 else
3000 glib_config_prefix=""
3003 # Check whether --with-glib-exec-prefix or --without-glib-exec-prefix was given.
3004 if test "${with_glib_exec_prefix+set}" = set; then
3005 withval="$with_glib_exec_prefix"
3006 glib_config_exec_prefix="$withval"
3007 else
3008 glib_config_exec_prefix=""
3010 # Check whether --enable-glibtest or --disable-glibtest was given.
3011 if test "${enable_glibtest+set}" = set; then
3012 enableval="$enable_glibtest"
3014 else
3015 enable_glibtest=yes
3018 if test x$glib_config_exec_prefix != x ; then
3019 glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix"
3020 if test x${GLIB_CONFIG+set} != xset ; then
3021 GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config
3024 if test x$glib_config_prefix != x ; then
3025 glib_config_args="$glib_config_args --prefix=$glib_config_prefix"
3026 if test x${GLIB_CONFIG+set} != xset ; then
3027 GLIB_CONFIG=$glib_config_prefix/bin/glib-config
3031 for module in . :
3033 case "$module" in
3034 gmodule)
3035 glib_config_args="$glib_config_args gmodule"
3037 gthread)
3038 glib_config_args="$glib_config_args gthread"
3040 esac
3041 done
3043 # Extract the first word of "glib-config", so it can be a program name with args.
3044 set dummy glib-config; ac_word=$2
3045 echo "$as_me:$LINENO: checking for $ac_word" >&5
3046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3047 if test "${ac_cv_path_GLIB_CONFIG+set}" = set; then
3048 echo $ECHO_N "(cached) $ECHO_C" >&6
3049 else
3050 case $GLIB_CONFIG in
3051 [\\/]* | ?:[\\/]*)
3052 ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a path.
3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 for as_dir in $PATH
3058 IFS=$as_save_IFS
3059 test -z "$as_dir" && as_dir=.
3060 for ac_exec_ext in '' $ac_executable_extensions; do
3061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3062 ac_cv_path_GLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3064 break 2
3066 done
3067 done
3069 test -z "$ac_cv_path_GLIB_CONFIG" && ac_cv_path_GLIB_CONFIG="no"
3071 esac
3073 GLIB_CONFIG=$ac_cv_path_GLIB_CONFIG
3075 if test -n "$GLIB_CONFIG"; then
3076 echo "$as_me:$LINENO: result: $GLIB_CONFIG" >&5
3077 echo "${ECHO_T}$GLIB_CONFIG" >&6
3078 else
3079 echo "$as_me:$LINENO: result: no" >&5
3080 echo "${ECHO_T}no" >&6
3083 min_glib_version=1.2.0
3084 echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5
3085 echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6
3086 no_glib=""
3087 if test "$GLIB_CONFIG" = "no" ; then
3088 no_glib=yes
3089 else
3090 GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags`
3091 GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs`
3092 glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \
3093 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
3094 glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \
3095 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
3096 glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \
3097 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
3098 if test "x$enable_glibtest" = "xyes" ; then
3099 ac_save_CFLAGS="$CFLAGS"
3100 ac_save_LIBS="$LIBS"
3101 CFLAGS="$CFLAGS $GLIB_CFLAGS"
3102 LIBS="$GLIB_LIBS $LIBS"
3103 rm -f conf.glibtest
3104 if test "$cross_compiling" = yes; then
3105 echo $ac_n "cross compiling; assumed OK... $ac_c"
3106 else
3107 cat >conftest.$ac_ext <<_ACEOF
3108 /* confdefs.h. */
3109 _ACEOF
3110 cat confdefs.h >>conftest.$ac_ext
3111 cat >>conftest.$ac_ext <<_ACEOF
3112 /* end confdefs.h. */
3114 #include <glib.h>
3115 #include <stdio.h>
3116 #include <stdlib.h>
3119 main ()
3121 int major, minor, micro;
3122 char *tmp_version;
3124 system ("touch conf.glibtest");
3126 /* HP/UX 9 (%@#!) writes to sscanf strings */
3127 tmp_version = g_strdup("$min_glib_version");
3128 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
3129 printf("%s, bad version string\n", "$min_glib_version");
3130 exit(1);
3133 if ((glib_major_version != $glib_config_major_version) ||
3134 (glib_minor_version != $glib_config_minor_version) ||
3135 (glib_micro_version != $glib_config_micro_version))
3137 printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
3138 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
3139 glib_major_version, glib_minor_version, glib_micro_version);
3140 printf ("*** was found! If glib-config was correct, then it is best\n");
3141 printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n");
3142 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
3143 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
3144 printf("*** required on your system.\n");
3145 printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n");
3146 printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n");
3147 printf("*** before re-running configure\n");
3149 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
3150 (glib_minor_version != GLIB_MINOR_VERSION) ||
3151 (glib_micro_version != GLIB_MICRO_VERSION))
3153 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
3154 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
3155 printf("*** library (version %d.%d.%d)\n",
3156 glib_major_version, glib_minor_version, glib_micro_version);
3158 else
3160 if ((glib_major_version > major) ||
3161 ((glib_major_version == major) && (glib_minor_version > minor)) ||
3162 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
3164 return 0;
3166 else
3168 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
3169 glib_major_version, glib_minor_version, glib_micro_version);
3170 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
3171 major, minor, micro);
3172 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
3173 printf("***\n");
3174 printf("*** If you have already installed a sufficiently new version, this error\n");
3175 printf("*** probably means that the wrong copy of the glib-config shell script is\n");
3176 printf("*** being found. The easiest way to fix this is to remove the old version\n");
3177 printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n");
3178 printf("*** correct copy of glib-config. (In this case, you will have to\n");
3179 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
3180 printf("*** so that the correct libraries are found at run-time))\n");
3183 return 1;
3186 _ACEOF
3187 rm -f conftest$ac_exeext
3188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3189 (eval $ac_link) 2>&5
3190 ac_status=$?
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3194 (eval $ac_try) 2>&5
3195 ac_status=$?
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }; }; then
3199 else
3200 echo "$as_me: program exited with status $ac_status" >&5
3201 echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3204 ( exit $ac_status )
3205 no_glib=yes
3207 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3209 CFLAGS="$ac_save_CFLAGS"
3210 LIBS="$ac_save_LIBS"
3213 if test "x$no_glib" = x ; then
3214 echo "$as_me:$LINENO: result: yes" >&5
3215 echo "${ECHO_T}yes" >&6
3217 else
3218 echo "$as_me:$LINENO: result: no" >&5
3219 echo "${ECHO_T}no" >&6
3220 if test "$GLIB_CONFIG" = "no" ; then
3221 echo "*** The glib-config script installed by GLIB could not be found"
3222 echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in"
3223 echo "*** your path, or set the GLIB_CONFIG environment variable to the"
3224 echo "*** full path to glib-config."
3225 else
3226 if test -f conf.glibtest ; then
3228 else
3229 echo "*** Could not run GLIB test program, checking why..."
3230 CFLAGS="$CFLAGS $GLIB_CFLAGS"
3231 LIBS="$LIBS $GLIB_LIBS"
3232 cat >conftest.$ac_ext <<_ACEOF
3233 /* confdefs.h. */
3234 _ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h. */
3239 #include <glib.h>
3240 #include <stdio.h>
3243 main ()
3245 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
3247 return 0;
3249 _ACEOF
3250 rm -f conftest.$ac_objext conftest$ac_exeext
3251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3252 (eval $ac_link) 2>conftest.er1
3253 ac_status=$?
3254 grep -v '^ *+' conftest.er1 >conftest.err
3255 rm -f conftest.er1
3256 cat conftest.err >&5
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); } &&
3259 { ac_try='test -z "$ac_c_werror_flag"
3260 || test ! -s conftest.err'
3261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3262 (eval $ac_try) 2>&5
3263 ac_status=$?
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); }; } &&
3266 { ac_try='test -s conftest$ac_exeext'
3267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3268 (eval $ac_try) 2>&5
3269 ac_status=$?
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); }; }; then
3272 echo "*** The test program compiled, but did not run. This usually means"
3273 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
3274 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
3275 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
3276 echo "*** to the installed location Also, make sure you have run ldconfig if that"
3277 echo "*** is required on your system"
3278 echo "***"
3279 echo "*** If you have an old version installed, it is best to remove it, although"
3280 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
3281 echo "***"
3282 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
3283 echo "*** came with the system with the command"
3284 echo "***"
3285 echo "*** rpm --erase --nodeps gtk gtk-devel"
3286 else
3287 echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.$ac_ext >&5
3290 echo "*** The test program failed to compile or link. See the file config.log for the"
3291 echo "*** exact error that occured. This usually means GLIB was incorrectly installed"
3292 echo "*** or that you have moved GLIB since it was installed. In the latter case, you"
3293 echo "*** may want to edit the glib-config script: $GLIB_CONFIG"
3295 rm -f conftest.err conftest.$ac_objext \
3296 conftest$ac_exeext conftest.$ac_ext
3297 CFLAGS="$ac_save_CFLAGS"
3298 LIBS="$ac_save_LIBS"
3301 GLIB_CFLAGS=""
3302 GLIB_LIBS=""
3303 { { echo "$as_me:$LINENO: error: You must have glib-1.2 installed." >&5
3304 echo "$as_me: error: You must have glib-1.2 installed." >&2;}
3305 { (exit 1); exit 1; }; }
3309 rm -f conf.glibtest
3312 # Checks for header files.
3313 ac_ext=c
3314 ac_cpp='$CPP $CPPFLAGS'
3315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3318 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3319 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3320 # On Suns, sometimes $CPP names a directory.
3321 if test -n "$CPP" && test -d "$CPP"; then
3322 CPP=
3324 if test -z "$CPP"; then
3325 if test "${ac_cv_prog_CPP+set}" = set; then
3326 echo $ECHO_N "(cached) $ECHO_C" >&6
3327 else
3328 # Double quotes because CPP needs to be expanded
3329 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3331 ac_preproc_ok=false
3332 for ac_c_preproc_warn_flag in '' yes
3334 # Use a header file that comes with gcc, so configuring glibc
3335 # with a fresh cross-compiler works.
3336 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3337 # <limits.h> exists even on freestanding compilers.
3338 # On the NeXT, cc -E runs the code through the compiler's parser,
3339 # not just through cpp. "Syntax error" is here to catch this case.
3340 cat >conftest.$ac_ext <<_ACEOF
3341 /* confdefs.h. */
3342 _ACEOF
3343 cat confdefs.h >>conftest.$ac_ext
3344 cat >>conftest.$ac_ext <<_ACEOF
3345 /* end confdefs.h. */
3346 #ifdef __STDC__
3347 # include <limits.h>
3348 #else
3349 # include <assert.h>
3350 #endif
3351 Syntax error
3352 _ACEOF
3353 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3354 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3355 ac_status=$?
3356 grep -v '^ *+' conftest.er1 >conftest.err
3357 rm -f conftest.er1
3358 cat conftest.err >&5
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); } >/dev/null; then
3361 if test -s conftest.err; then
3362 ac_cpp_err=$ac_c_preproc_warn_flag
3363 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3364 else
3365 ac_cpp_err=
3367 else
3368 ac_cpp_err=yes
3370 if test -z "$ac_cpp_err"; then
3372 else
3373 echo "$as_me: failed program was:" >&5
3374 sed 's/^/| /' conftest.$ac_ext >&5
3376 # Broken: fails on valid input.
3377 continue
3379 rm -f conftest.err conftest.$ac_ext
3381 # OK, works on sane cases. Now check whether non-existent headers
3382 # can be detected and how.
3383 cat >conftest.$ac_ext <<_ACEOF
3384 /* confdefs.h. */
3385 _ACEOF
3386 cat confdefs.h >>conftest.$ac_ext
3387 cat >>conftest.$ac_ext <<_ACEOF
3388 /* end confdefs.h. */
3389 #include <ac_nonexistent.h>
3390 _ACEOF
3391 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3392 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3393 ac_status=$?
3394 grep -v '^ *+' conftest.er1 >conftest.err
3395 rm -f conftest.er1
3396 cat conftest.err >&5
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); } >/dev/null; then
3399 if test -s conftest.err; then
3400 ac_cpp_err=$ac_c_preproc_warn_flag
3401 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3402 else
3403 ac_cpp_err=
3405 else
3406 ac_cpp_err=yes
3408 if test -z "$ac_cpp_err"; then
3409 # Broken: success on invalid input.
3410 continue
3411 else
3412 echo "$as_me: failed program was:" >&5
3413 sed 's/^/| /' conftest.$ac_ext >&5
3415 # Passes both tests.
3416 ac_preproc_ok=:
3417 break
3419 rm -f conftest.err conftest.$ac_ext
3421 done
3422 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3423 rm -f conftest.err conftest.$ac_ext
3424 if $ac_preproc_ok; then
3425 break
3428 done
3429 ac_cv_prog_CPP=$CPP
3432 CPP=$ac_cv_prog_CPP
3433 else
3434 ac_cv_prog_CPP=$CPP
3436 echo "$as_me:$LINENO: result: $CPP" >&5
3437 echo "${ECHO_T}$CPP" >&6
3438 ac_preproc_ok=false
3439 for ac_c_preproc_warn_flag in '' yes
3441 # Use a header file that comes with gcc, so configuring glibc
3442 # with a fresh cross-compiler works.
3443 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3444 # <limits.h> exists even on freestanding compilers.
3445 # On the NeXT, cc -E runs the code through the compiler's parser,
3446 # not just through cpp. "Syntax error" is here to catch this case.
3447 cat >conftest.$ac_ext <<_ACEOF
3448 /* confdefs.h. */
3449 _ACEOF
3450 cat confdefs.h >>conftest.$ac_ext
3451 cat >>conftest.$ac_ext <<_ACEOF
3452 /* end confdefs.h. */
3453 #ifdef __STDC__
3454 # include <limits.h>
3455 #else
3456 # include <assert.h>
3457 #endif
3458 Syntax error
3459 _ACEOF
3460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3462 ac_status=$?
3463 grep -v '^ *+' conftest.er1 >conftest.err
3464 rm -f conftest.er1
3465 cat conftest.err >&5
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); } >/dev/null; then
3468 if test -s conftest.err; then
3469 ac_cpp_err=$ac_c_preproc_warn_flag
3470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3471 else
3472 ac_cpp_err=
3474 else
3475 ac_cpp_err=yes
3477 if test -z "$ac_cpp_err"; then
3479 else
3480 echo "$as_me: failed program was:" >&5
3481 sed 's/^/| /' conftest.$ac_ext >&5
3483 # Broken: fails on valid input.
3484 continue
3486 rm -f conftest.err conftest.$ac_ext
3488 # OK, works on sane cases. Now check whether non-existent headers
3489 # can be detected and how.
3490 cat >conftest.$ac_ext <<_ACEOF
3491 /* confdefs.h. */
3492 _ACEOF
3493 cat confdefs.h >>conftest.$ac_ext
3494 cat >>conftest.$ac_ext <<_ACEOF
3495 /* end confdefs.h. */
3496 #include <ac_nonexistent.h>
3497 _ACEOF
3498 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3499 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3500 ac_status=$?
3501 grep -v '^ *+' conftest.er1 >conftest.err
3502 rm -f conftest.er1
3503 cat conftest.err >&5
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); } >/dev/null; then
3506 if test -s conftest.err; then
3507 ac_cpp_err=$ac_c_preproc_warn_flag
3508 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3509 else
3510 ac_cpp_err=
3512 else
3513 ac_cpp_err=yes
3515 if test -z "$ac_cpp_err"; then
3516 # Broken: success on invalid input.
3517 continue
3518 else
3519 echo "$as_me: failed program was:" >&5
3520 sed 's/^/| /' conftest.$ac_ext >&5
3522 # Passes both tests.
3523 ac_preproc_ok=:
3524 break
3526 rm -f conftest.err conftest.$ac_ext
3528 done
3529 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3530 rm -f conftest.err conftest.$ac_ext
3531 if $ac_preproc_ok; then
3533 else
3534 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3535 See \`config.log' for more details." >&5
3536 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3537 See \`config.log' for more details." >&2;}
3538 { (exit 1); exit 1; }; }
3541 ac_ext=c
3542 ac_cpp='$CPP $CPPFLAGS'
3543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3548 echo "$as_me:$LINENO: checking for egrep" >&5
3549 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3550 if test "${ac_cv_prog_egrep+set}" = set; then
3551 echo $ECHO_N "(cached) $ECHO_C" >&6
3552 else
3553 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3554 then ac_cv_prog_egrep='grep -E'
3555 else ac_cv_prog_egrep='egrep'
3558 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3559 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3560 EGREP=$ac_cv_prog_egrep
3563 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3564 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3565 if test "${ac_cv_header_stdc+set}" = set; then
3566 echo $ECHO_N "(cached) $ECHO_C" >&6
3567 else
3568 cat >conftest.$ac_ext <<_ACEOF
3569 /* confdefs.h. */
3570 _ACEOF
3571 cat confdefs.h >>conftest.$ac_ext
3572 cat >>conftest.$ac_ext <<_ACEOF
3573 /* end confdefs.h. */
3574 #include <stdlib.h>
3575 #include <stdarg.h>
3576 #include <string.h>
3577 #include <float.h>
3580 main ()
3584 return 0;
3586 _ACEOF
3587 rm -f conftest.$ac_objext
3588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3589 (eval $ac_compile) 2>conftest.er1
3590 ac_status=$?
3591 grep -v '^ *+' conftest.er1 >conftest.err
3592 rm -f conftest.er1
3593 cat conftest.err >&5
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); } &&
3596 { ac_try='test -z "$ac_c_werror_flag"
3597 || test ! -s conftest.err'
3598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3599 (eval $ac_try) 2>&5
3600 ac_status=$?
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); }; } &&
3603 { ac_try='test -s conftest.$ac_objext'
3604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3605 (eval $ac_try) 2>&5
3606 ac_status=$?
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); }; }; then
3609 ac_cv_header_stdc=yes
3610 else
3611 echo "$as_me: failed program was:" >&5
3612 sed 's/^/| /' conftest.$ac_ext >&5
3614 ac_cv_header_stdc=no
3616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3618 if test $ac_cv_header_stdc = yes; then
3619 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3620 cat >conftest.$ac_ext <<_ACEOF
3621 /* confdefs.h. */
3622 _ACEOF
3623 cat confdefs.h >>conftest.$ac_ext
3624 cat >>conftest.$ac_ext <<_ACEOF
3625 /* end confdefs.h. */
3626 #include <string.h>
3628 _ACEOF
3629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3630 $EGREP "memchr" >/dev/null 2>&1; then
3632 else
3633 ac_cv_header_stdc=no
3635 rm -f conftest*
3639 if test $ac_cv_header_stdc = yes; then
3640 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3641 cat >conftest.$ac_ext <<_ACEOF
3642 /* confdefs.h. */
3643 _ACEOF
3644 cat confdefs.h >>conftest.$ac_ext
3645 cat >>conftest.$ac_ext <<_ACEOF
3646 /* end confdefs.h. */
3647 #include <stdlib.h>
3649 _ACEOF
3650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3651 $EGREP "free" >/dev/null 2>&1; then
3653 else
3654 ac_cv_header_stdc=no
3656 rm -f conftest*
3660 if test $ac_cv_header_stdc = yes; then
3661 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3662 if test "$cross_compiling" = yes; then
3664 else
3665 cat >conftest.$ac_ext <<_ACEOF
3666 /* confdefs.h. */
3667 _ACEOF
3668 cat confdefs.h >>conftest.$ac_ext
3669 cat >>conftest.$ac_ext <<_ACEOF
3670 /* end confdefs.h. */
3671 #include <ctype.h>
3672 #if ((' ' & 0x0FF) == 0x020)
3673 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3674 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3675 #else
3676 # define ISLOWER(c) \
3677 (('a' <= (c) && (c) <= 'i') \
3678 || ('j' <= (c) && (c) <= 'r') \
3679 || ('s' <= (c) && (c) <= 'z'))
3680 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3681 #endif
3683 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3685 main ()
3687 int i;
3688 for (i = 0; i < 256; i++)
3689 if (XOR (islower (i), ISLOWER (i))
3690 || toupper (i) != TOUPPER (i))
3691 exit(2);
3692 exit (0);
3694 _ACEOF
3695 rm -f conftest$ac_exeext
3696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3697 (eval $ac_link) 2>&5
3698 ac_status=$?
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3702 (eval $ac_try) 2>&5
3703 ac_status=$?
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); }; }; then
3707 else
3708 echo "$as_me: program exited with status $ac_status" >&5
3709 echo "$as_me: failed program was:" >&5
3710 sed 's/^/| /' conftest.$ac_ext >&5
3712 ( exit $ac_status )
3713 ac_cv_header_stdc=no
3715 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3719 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3720 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3721 if test $ac_cv_header_stdc = yes; then
3723 cat >>confdefs.h <<\_ACEOF
3724 #define STDC_HEADERS 1
3725 _ACEOF
3729 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3730 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3731 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3732 echo $ECHO_N "(cached) $ECHO_C" >&6
3733 else
3734 cat >conftest.$ac_ext <<_ACEOF
3735 /* confdefs.h. */
3736 _ACEOF
3737 cat confdefs.h >>conftest.$ac_ext
3738 cat >>conftest.$ac_ext <<_ACEOF
3739 /* end confdefs.h. */
3740 #include <sys/types.h>
3741 #include <sys/wait.h>
3742 #ifndef WEXITSTATUS
3743 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3744 #endif
3745 #ifndef WIFEXITED
3746 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3747 #endif
3750 main ()
3752 int s;
3753 wait (&s);
3754 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3756 return 0;
3758 _ACEOF
3759 rm -f conftest.$ac_objext
3760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3761 (eval $ac_compile) 2>conftest.er1
3762 ac_status=$?
3763 grep -v '^ *+' conftest.er1 >conftest.err
3764 rm -f conftest.er1
3765 cat conftest.err >&5
3766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767 (exit $ac_status); } &&
3768 { ac_try='test -z "$ac_c_werror_flag"
3769 || test ! -s conftest.err'
3770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3771 (eval $ac_try) 2>&5
3772 ac_status=$?
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); }; } &&
3775 { ac_try='test -s conftest.$ac_objext'
3776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3777 (eval $ac_try) 2>&5
3778 ac_status=$?
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); }; }; then
3781 ac_cv_header_sys_wait_h=yes
3782 else
3783 echo "$as_me: failed program was:" >&5
3784 sed 's/^/| /' conftest.$ac_ext >&5
3786 ac_cv_header_sys_wait_h=no
3788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3790 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3791 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3792 if test $ac_cv_header_sys_wait_h = yes; then
3794 cat >>confdefs.h <<\_ACEOF
3795 #define HAVE_SYS_WAIT_H 1
3796 _ACEOF
3800 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3810 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3811 inttypes.h stdint.h unistd.h
3813 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3814 echo "$as_me:$LINENO: checking for $ac_header" >&5
3815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3817 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 else
3819 cat >conftest.$ac_ext <<_ACEOF
3820 /* confdefs.h. */
3821 _ACEOF
3822 cat confdefs.h >>conftest.$ac_ext
3823 cat >>conftest.$ac_ext <<_ACEOF
3824 /* end confdefs.h. */
3825 $ac_includes_default
3827 #include <$ac_header>
3828 _ACEOF
3829 rm -f conftest.$ac_objext
3830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3831 (eval $ac_compile) 2>conftest.er1
3832 ac_status=$?
3833 grep -v '^ *+' conftest.er1 >conftest.err
3834 rm -f conftest.er1
3835 cat conftest.err >&5
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); } &&
3838 { ac_try='test -z "$ac_c_werror_flag"
3839 || test ! -s conftest.err'
3840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841 (eval $ac_try) 2>&5
3842 ac_status=$?
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); }; } &&
3845 { ac_try='test -s conftest.$ac_objext'
3846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3847 (eval $ac_try) 2>&5
3848 ac_status=$?
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }; }; then
3851 eval "$as_ac_Header=yes"
3852 else
3853 echo "$as_me: failed program was:" >&5
3854 sed 's/^/| /' conftest.$ac_ext >&5
3856 eval "$as_ac_Header=no"
3858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3863 cat >>confdefs.h <<_ACEOF
3864 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3865 _ACEOF
3869 done
3880 for ac_header in arpa/inet.h fcntl.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h unistd.h
3882 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3884 echo "$as_me:$LINENO: checking for $ac_header" >&5
3885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3890 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3891 else
3892 # Is the header compilable?
3893 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3894 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3895 cat >conftest.$ac_ext <<_ACEOF
3896 /* confdefs.h. */
3897 _ACEOF
3898 cat confdefs.h >>conftest.$ac_ext
3899 cat >>conftest.$ac_ext <<_ACEOF
3900 /* end confdefs.h. */
3901 $ac_includes_default
3902 #include <$ac_header>
3903 _ACEOF
3904 rm -f conftest.$ac_objext
3905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3906 (eval $ac_compile) 2>conftest.er1
3907 ac_status=$?
3908 grep -v '^ *+' conftest.er1 >conftest.err
3909 rm -f conftest.er1
3910 cat conftest.err >&5
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); } &&
3913 { ac_try='test -z "$ac_c_werror_flag"
3914 || test ! -s conftest.err'
3915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3916 (eval $ac_try) 2>&5
3917 ac_status=$?
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); }; } &&
3920 { ac_try='test -s conftest.$ac_objext'
3921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3922 (eval $ac_try) 2>&5
3923 ac_status=$?
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); }; }; then
3926 ac_header_compiler=yes
3927 else
3928 echo "$as_me: failed program was:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3931 ac_header_compiler=no
3933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3934 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3935 echo "${ECHO_T}$ac_header_compiler" >&6
3937 # Is the header present?
3938 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3939 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3940 cat >conftest.$ac_ext <<_ACEOF
3941 /* confdefs.h. */
3942 _ACEOF
3943 cat confdefs.h >>conftest.$ac_ext
3944 cat >>conftest.$ac_ext <<_ACEOF
3945 /* end confdefs.h. */
3946 #include <$ac_header>
3947 _ACEOF
3948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3949 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3950 ac_status=$?
3951 grep -v '^ *+' conftest.er1 >conftest.err
3952 rm -f conftest.er1
3953 cat conftest.err >&5
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); } >/dev/null; then
3956 if test -s conftest.err; then
3957 ac_cpp_err=$ac_c_preproc_warn_flag
3958 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3959 else
3960 ac_cpp_err=
3962 else
3963 ac_cpp_err=yes
3965 if test -z "$ac_cpp_err"; then
3966 ac_header_preproc=yes
3967 else
3968 echo "$as_me: failed program was:" >&5
3969 sed 's/^/| /' conftest.$ac_ext >&5
3971 ac_header_preproc=no
3973 rm -f conftest.err conftest.$ac_ext
3974 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3975 echo "${ECHO_T}$ac_header_preproc" >&6
3977 # So? What about this header?
3978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3979 yes:no: )
3980 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3981 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3983 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3984 ac_header_preproc=yes
3986 no:yes:* )
3987 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3988 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3989 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3990 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3991 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3992 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3993 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3994 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3996 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3997 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3998 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4000 cat <<\_ASBOX
4001 ## --------------------------------- ##
4002 ## Report this to schuyler@nocat.net ##
4003 ## --------------------------------- ##
4004 _ASBOX
4006 sed "s/^/$as_me: WARNING: /" >&2
4008 esac
4009 echo "$as_me:$LINENO: checking for $ac_header" >&5
4010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4012 echo $ECHO_N "(cached) $ECHO_C" >&6
4013 else
4014 eval "$as_ac_Header=\$ac_header_preproc"
4016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4021 cat >>confdefs.h <<_ACEOF
4022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4023 _ACEOF
4027 done
4030 # Checks for typedefs, structures, and compiler characteristics.
4031 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4032 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4033 if test "${ac_cv_c_const+set}" = set; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
4035 else
4036 cat >conftest.$ac_ext <<_ACEOF
4037 /* confdefs.h. */
4038 _ACEOF
4039 cat confdefs.h >>conftest.$ac_ext
4040 cat >>conftest.$ac_ext <<_ACEOF
4041 /* end confdefs.h. */
4044 main ()
4046 /* FIXME: Include the comments suggested by Paul. */
4047 #ifndef __cplusplus
4048 /* Ultrix mips cc rejects this. */
4049 typedef int charset[2];
4050 const charset x;
4051 /* SunOS 4.1.1 cc rejects this. */
4052 char const *const *ccp;
4053 char **p;
4054 /* NEC SVR4.0.2 mips cc rejects this. */
4055 struct point {int x, y;};
4056 static struct point const zero = {0,0};
4057 /* AIX XL C 1.02.0.0 rejects this.
4058 It does not let you subtract one const X* pointer from another in
4059 an arm of an if-expression whose if-part is not a constant
4060 expression */
4061 const char *g = "string";
4062 ccp = &g + (g ? g-g : 0);
4063 /* HPUX 7.0 cc rejects these. */
4064 ++ccp;
4065 p = (char**) ccp;
4066 ccp = (char const *const *) p;
4067 { /* SCO 3.2v4 cc rejects this. */
4068 char *t;
4069 char const *s = 0 ? (char *) 0 : (char const *) 0;
4071 *t++ = 0;
4073 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4074 int x[] = {25, 17};
4075 const int *foo = &x[0];
4076 ++foo;
4078 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4079 typedef const int *iptr;
4080 iptr p = 0;
4081 ++p;
4083 { /* AIX XL C 1.02.0.0 rejects this saying
4084 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4085 struct s { int j; const int *ap[3]; };
4086 struct s *b; b->j = 5;
4088 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4089 const int foo = 10;
4091 #endif
4094 return 0;
4096 _ACEOF
4097 rm -f conftest.$ac_objext
4098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4099 (eval $ac_compile) 2>conftest.er1
4100 ac_status=$?
4101 grep -v '^ *+' conftest.er1 >conftest.err
4102 rm -f conftest.er1
4103 cat conftest.err >&5
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); } &&
4106 { ac_try='test -z "$ac_c_werror_flag"
4107 || test ! -s conftest.err'
4108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4109 (eval $ac_try) 2>&5
4110 ac_status=$?
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); }; } &&
4113 { ac_try='test -s conftest.$ac_objext'
4114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4115 (eval $ac_try) 2>&5
4116 ac_status=$?
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); }; }; then
4119 ac_cv_c_const=yes
4120 else
4121 echo "$as_me: failed program was:" >&5
4122 sed 's/^/| /' conftest.$ac_ext >&5
4124 ac_cv_c_const=no
4126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4128 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4129 echo "${ECHO_T}$ac_cv_c_const" >&6
4130 if test $ac_cv_c_const = no; then
4132 cat >>confdefs.h <<\_ACEOF
4133 #define const
4134 _ACEOF
4138 echo "$as_me:$LINENO: checking for off_t" >&5
4139 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4140 if test "${ac_cv_type_off_t+set}" = set; then
4141 echo $ECHO_N "(cached) $ECHO_C" >&6
4142 else
4143 cat >conftest.$ac_ext <<_ACEOF
4144 /* confdefs.h. */
4145 _ACEOF
4146 cat confdefs.h >>conftest.$ac_ext
4147 cat >>conftest.$ac_ext <<_ACEOF
4148 /* end confdefs.h. */
4149 $ac_includes_default
4151 main ()
4153 if ((off_t *) 0)
4154 return 0;
4155 if (sizeof (off_t))
4156 return 0;
4158 return 0;
4160 _ACEOF
4161 rm -f conftest.$ac_objext
4162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4163 (eval $ac_compile) 2>conftest.er1
4164 ac_status=$?
4165 grep -v '^ *+' conftest.er1 >conftest.err
4166 rm -f conftest.er1
4167 cat conftest.err >&5
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); } &&
4170 { ac_try='test -z "$ac_c_werror_flag"
4171 || test ! -s conftest.err'
4172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4173 (eval $ac_try) 2>&5
4174 ac_status=$?
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); }; } &&
4177 { ac_try='test -s conftest.$ac_objext'
4178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179 (eval $ac_try) 2>&5
4180 ac_status=$?
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; }; then
4183 ac_cv_type_off_t=yes
4184 else
4185 echo "$as_me: failed program was:" >&5
4186 sed 's/^/| /' conftest.$ac_ext >&5
4188 ac_cv_type_off_t=no
4190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4192 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4193 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4194 if test $ac_cv_type_off_t = yes; then
4196 else
4198 cat >>confdefs.h <<_ACEOF
4199 #define off_t long
4200 _ACEOF
4204 echo "$as_me:$LINENO: checking for pid_t" >&5
4205 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4206 if test "${ac_cv_type_pid_t+set}" = set; then
4207 echo $ECHO_N "(cached) $ECHO_C" >&6
4208 else
4209 cat >conftest.$ac_ext <<_ACEOF
4210 /* confdefs.h. */
4211 _ACEOF
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h. */
4215 $ac_includes_default
4217 main ()
4219 if ((pid_t *) 0)
4220 return 0;
4221 if (sizeof (pid_t))
4222 return 0;
4224 return 0;
4226 _ACEOF
4227 rm -f conftest.$ac_objext
4228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4229 (eval $ac_compile) 2>conftest.er1
4230 ac_status=$?
4231 grep -v '^ *+' conftest.er1 >conftest.err
4232 rm -f conftest.er1
4233 cat conftest.err >&5
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); } &&
4236 { ac_try='test -z "$ac_c_werror_flag"
4237 || test ! -s conftest.err'
4238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4239 (eval $ac_try) 2>&5
4240 ac_status=$?
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); }; } &&
4243 { ac_try='test -s conftest.$ac_objext'
4244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4245 (eval $ac_try) 2>&5
4246 ac_status=$?
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); }; }; then
4249 ac_cv_type_pid_t=yes
4250 else
4251 echo "$as_me: failed program was:" >&5
4252 sed 's/^/| /' conftest.$ac_ext >&5
4254 ac_cv_type_pid_t=no
4256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4258 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4259 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4260 if test $ac_cv_type_pid_t = yes; then
4262 else
4264 cat >>confdefs.h <<_ACEOF
4265 #define pid_t int
4266 _ACEOF
4271 # Checks for library functions.
4274 for ac_header in unistd.h vfork.h
4276 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4278 echo "$as_me:$LINENO: checking for $ac_header" >&5
4279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4280 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4281 echo $ECHO_N "(cached) $ECHO_C" >&6
4283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4284 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4285 else
4286 # Is the header compilable?
4287 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4288 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4289 cat >conftest.$ac_ext <<_ACEOF
4290 /* confdefs.h. */
4291 _ACEOF
4292 cat confdefs.h >>conftest.$ac_ext
4293 cat >>conftest.$ac_ext <<_ACEOF
4294 /* end confdefs.h. */
4295 $ac_includes_default
4296 #include <$ac_header>
4297 _ACEOF
4298 rm -f conftest.$ac_objext
4299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4300 (eval $ac_compile) 2>conftest.er1
4301 ac_status=$?
4302 grep -v '^ *+' conftest.er1 >conftest.err
4303 rm -f conftest.er1
4304 cat conftest.err >&5
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); } &&
4307 { ac_try='test -z "$ac_c_werror_flag"
4308 || test ! -s conftest.err'
4309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4310 (eval $ac_try) 2>&5
4311 ac_status=$?
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); }; } &&
4314 { ac_try='test -s conftest.$ac_objext'
4315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4316 (eval $ac_try) 2>&5
4317 ac_status=$?
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); }; }; then
4320 ac_header_compiler=yes
4321 else
4322 echo "$as_me: failed program was:" >&5
4323 sed 's/^/| /' conftest.$ac_ext >&5
4325 ac_header_compiler=no
4327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4328 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4329 echo "${ECHO_T}$ac_header_compiler" >&6
4331 # Is the header present?
4332 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4333 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4334 cat >conftest.$ac_ext <<_ACEOF
4335 /* confdefs.h. */
4336 _ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h. */
4340 #include <$ac_header>
4341 _ACEOF
4342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4343 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4344 ac_status=$?
4345 grep -v '^ *+' conftest.er1 >conftest.err
4346 rm -f conftest.er1
4347 cat conftest.err >&5
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); } >/dev/null; then
4350 if test -s conftest.err; then
4351 ac_cpp_err=$ac_c_preproc_warn_flag
4352 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4353 else
4354 ac_cpp_err=
4356 else
4357 ac_cpp_err=yes
4359 if test -z "$ac_cpp_err"; then
4360 ac_header_preproc=yes
4361 else
4362 echo "$as_me: failed program was:" >&5
4363 sed 's/^/| /' conftest.$ac_ext >&5
4365 ac_header_preproc=no
4367 rm -f conftest.err conftest.$ac_ext
4368 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4369 echo "${ECHO_T}$ac_header_preproc" >&6
4371 # So? What about this header?
4372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4373 yes:no: )
4374 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4375 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4377 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4378 ac_header_preproc=yes
4380 no:yes:* )
4381 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4382 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4383 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4384 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4385 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4386 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4387 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4388 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4391 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4392 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4394 cat <<\_ASBOX
4395 ## --------------------------------- ##
4396 ## Report this to schuyler@nocat.net ##
4397 ## --------------------------------- ##
4398 _ASBOX
4400 sed "s/^/$as_me: WARNING: /" >&2
4402 esac
4403 echo "$as_me:$LINENO: checking for $ac_header" >&5
4404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4406 echo $ECHO_N "(cached) $ECHO_C" >&6
4407 else
4408 eval "$as_ac_Header=\$ac_header_preproc"
4410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4411 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4414 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4415 cat >>confdefs.h <<_ACEOF
4416 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4417 _ACEOF
4421 done
4425 for ac_func in fork vfork
4427 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4428 echo "$as_me:$LINENO: checking for $ac_func" >&5
4429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4430 if eval "test \"\${$as_ac_var+set}\" = set"; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4432 else
4433 cat >conftest.$ac_ext <<_ACEOF
4434 /* confdefs.h. */
4435 _ACEOF
4436 cat confdefs.h >>conftest.$ac_ext
4437 cat >>conftest.$ac_ext <<_ACEOF
4438 /* end confdefs.h. */
4439 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4441 #define $ac_func innocuous_$ac_func
4443 /* System header to define __stub macros and hopefully few prototypes,
4444 which can conflict with char $ac_func (); below.
4445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4446 <limits.h> exists even on freestanding compilers. */
4448 #ifdef __STDC__
4449 # include <limits.h>
4450 #else
4451 # include <assert.h>
4452 #endif
4454 #undef $ac_func
4456 /* Override any gcc2 internal prototype to avoid an error. */
4457 #ifdef __cplusplus
4458 extern "C"
4460 #endif
4461 /* We use char because int might match the return type of a gcc2
4462 builtin and then its argument prototype would still apply. */
4463 char $ac_func ();
4464 /* The GNU C library defines this for functions which it implements
4465 to always fail with ENOSYS. Some functions are actually named
4466 something starting with __ and the normal name is an alias. */
4467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4468 choke me
4469 #else
4470 char (*f) () = $ac_func;
4471 #endif
4472 #ifdef __cplusplus
4474 #endif
4477 main ()
4479 return f != $ac_func;
4481 return 0;
4483 _ACEOF
4484 rm -f conftest.$ac_objext conftest$ac_exeext
4485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4486 (eval $ac_link) 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); } &&
4493 { ac_try='test -z "$ac_c_werror_flag"
4494 || test ! -s conftest.err'
4495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4496 (eval $ac_try) 2>&5
4497 ac_status=$?
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); }; } &&
4500 { ac_try='test -s conftest$ac_exeext'
4501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4502 (eval $ac_try) 2>&5
4503 ac_status=$?
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); }; }; then
4506 eval "$as_ac_var=yes"
4507 else
4508 echo "$as_me: failed program was:" >&5
4509 sed 's/^/| /' conftest.$ac_ext >&5
4511 eval "$as_ac_var=no"
4513 rm -f conftest.err conftest.$ac_objext \
4514 conftest$ac_exeext conftest.$ac_ext
4516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4517 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4518 if test `eval echo '${'$as_ac_var'}'` = yes; then
4519 cat >>confdefs.h <<_ACEOF
4520 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4521 _ACEOF
4524 done
4526 if test "x$ac_cv_func_fork" = xyes; then
4527 echo "$as_me:$LINENO: checking for working fork" >&5
4528 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
4529 if test "${ac_cv_func_fork_works+set}" = set; then
4530 echo $ECHO_N "(cached) $ECHO_C" >&6
4531 else
4532 if test "$cross_compiling" = yes; then
4533 ac_cv_func_fork_works=cross
4534 else
4535 cat >conftest.$ac_ext <<_ACEOF
4536 /* By Ruediger Kuhlmann. */
4537 #include <sys/types.h>
4538 #if HAVE_UNISTD_H
4539 # include <unistd.h>
4540 #endif
4541 /* Some systems only have a dummy stub for fork() */
4542 int main ()
4544 if (fork() < 0)
4545 exit (1);
4546 exit (0);
4548 _ACEOF
4549 rm -f conftest$ac_exeext
4550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4551 (eval $ac_link) 2>&5
4552 ac_status=$?
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556 (eval $ac_try) 2>&5
4557 ac_status=$?
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); }; }; then
4560 ac_cv_func_fork_works=yes
4561 else
4562 echo "$as_me: program exited with status $ac_status" >&5
4563 echo "$as_me: failed program was:" >&5
4564 sed 's/^/| /' conftest.$ac_ext >&5
4566 ( exit $ac_status )
4567 ac_cv_func_fork_works=no
4569 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4572 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
4573 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
4575 else
4576 ac_cv_func_fork_works=$ac_cv_func_fork
4578 if test "x$ac_cv_func_fork_works" = xcross; then
4579 case $host in
4580 *-*-amigaos* | *-*-msdosdjgpp*)
4581 # Override, as these systems have only a dummy fork() stub
4582 ac_cv_func_fork_works=no
4585 ac_cv_func_fork_works=yes
4587 esac
4588 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
4589 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
4591 ac_cv_func_vfork_works=$ac_cv_func_vfork
4592 if test "x$ac_cv_func_vfork" = xyes; then
4593 echo "$as_me:$LINENO: checking for working vfork" >&5
4594 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
4595 if test "${ac_cv_func_vfork_works+set}" = set; then
4596 echo $ECHO_N "(cached) $ECHO_C" >&6
4597 else
4598 if test "$cross_compiling" = yes; then
4599 ac_cv_func_vfork_works=cross
4600 else
4601 cat >conftest.$ac_ext <<_ACEOF
4602 /* confdefs.h. */
4603 _ACEOF
4604 cat confdefs.h >>conftest.$ac_ext
4605 cat >>conftest.$ac_ext <<_ACEOF
4606 /* end confdefs.h. */
4607 /* Thanks to Paul Eggert for this test. */
4608 #include <stdio.h>
4609 #include <stdlib.h>
4610 #include <sys/types.h>
4611 #include <sys/stat.h>
4612 #include <sys/wait.h>
4613 #if HAVE_UNISTD_H
4614 # include <unistd.h>
4615 #endif
4616 #if HAVE_VFORK_H
4617 # include <vfork.h>
4618 #endif
4619 /* On some sparc systems, changes by the child to local and incoming
4620 argument registers are propagated back to the parent. The compiler
4621 is told about this with #include <vfork.h>, but some compilers
4622 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
4623 static variable whose address is put into a register that is
4624 clobbered by the vfork. */
4625 static void
4626 #ifdef __cplusplus
4627 sparc_address_test (int arg)
4628 # else
4629 sparc_address_test (arg) int arg;
4630 #endif
4632 static pid_t child;
4633 if (!child) {
4634 child = vfork ();
4635 if (child < 0) {
4636 perror ("vfork");
4637 _exit(2);
4639 if (!child) {
4640 arg = getpid();
4641 write(-1, "", 0);
4642 _exit (arg);
4648 main ()
4650 pid_t parent = getpid ();
4651 pid_t child;
4653 sparc_address_test (0);
4655 child = vfork ();
4657 if (child == 0) {
4658 /* Here is another test for sparc vfork register problems. This
4659 test uses lots of local variables, at least as many local
4660 variables as main has allocated so far including compiler
4661 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
4662 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
4663 reuse the register of parent for one of the local variables,
4664 since it will think that parent can't possibly be used any more
4665 in this routine. Assigning to the local variable will thus
4666 munge parent in the parent process. */
4667 pid_t
4668 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
4669 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
4670 /* Convince the compiler that p..p7 are live; otherwise, it might
4671 use the same hardware register for all 8 local variables. */
4672 if (p != p1 || p != p2 || p != p3 || p != p4
4673 || p != p5 || p != p6 || p != p7)
4674 _exit(1);
4676 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
4677 from child file descriptors. If the child closes a descriptor
4678 before it execs or exits, this munges the parent's descriptor
4679 as well. Test for this by closing stdout in the child. */
4680 _exit(close(fileno(stdout)) != 0);
4681 } else {
4682 int status;
4683 struct stat st;
4685 while (wait(&status) != child)
4687 exit(
4688 /* Was there some problem with vforking? */
4689 child < 0
4691 /* Did the child fail? (This shouldn't happen.) */
4692 || status
4694 /* Did the vfork/compiler bug occur? */
4695 || parent != getpid()
4697 /* Did the file descriptor bug occur? */
4698 || fstat(fileno(stdout), &st) != 0
4702 _ACEOF
4703 rm -f conftest$ac_exeext
4704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4705 (eval $ac_link) 2>&5
4706 ac_status=$?
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710 (eval $ac_try) 2>&5
4711 ac_status=$?
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }; }; then
4714 ac_cv_func_vfork_works=yes
4715 else
4716 echo "$as_me: program exited with status $ac_status" >&5
4717 echo "$as_me: failed program was:" >&5
4718 sed 's/^/| /' conftest.$ac_ext >&5
4720 ( exit $ac_status )
4721 ac_cv_func_vfork_works=no
4723 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4726 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
4727 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
4730 if test "x$ac_cv_func_fork_works" = xcross; then
4731 ac_cv_func_vfork_works=$ac_cv_func_vfork
4732 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
4733 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
4736 if test "x$ac_cv_func_vfork_works" = xyes; then
4738 cat >>confdefs.h <<\_ACEOF
4739 #define HAVE_WORKING_VFORK 1
4740 _ACEOF
4742 else
4744 cat >>confdefs.h <<\_ACEOF
4745 #define vfork fork
4746 _ACEOF
4749 if test "x$ac_cv_func_fork_works" = xyes; then
4751 cat >>confdefs.h <<\_ACEOF
4752 #define HAVE_WORKING_FORK 1
4753 _ACEOF
4759 for ac_header in stdlib.h unistd.h
4761 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4763 echo "$as_me:$LINENO: checking for $ac_header" >&5
4764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4766 echo $ECHO_N "(cached) $ECHO_C" >&6
4768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4769 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4770 else
4771 # Is the header compilable?
4772 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4773 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4774 cat >conftest.$ac_ext <<_ACEOF
4775 /* confdefs.h. */
4776 _ACEOF
4777 cat confdefs.h >>conftest.$ac_ext
4778 cat >>conftest.$ac_ext <<_ACEOF
4779 /* end confdefs.h. */
4780 $ac_includes_default
4781 #include <$ac_header>
4782 _ACEOF
4783 rm -f conftest.$ac_objext
4784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4785 (eval $ac_compile) 2>conftest.er1
4786 ac_status=$?
4787 grep -v '^ *+' conftest.er1 >conftest.err
4788 rm -f conftest.er1
4789 cat conftest.err >&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); } &&
4792 { ac_try='test -z "$ac_c_werror_flag"
4793 || test ! -s conftest.err'
4794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4795 (eval $ac_try) 2>&5
4796 ac_status=$?
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); }; } &&
4799 { ac_try='test -s conftest.$ac_objext'
4800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4801 (eval $ac_try) 2>&5
4802 ac_status=$?
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); }; }; then
4805 ac_header_compiler=yes
4806 else
4807 echo "$as_me: failed program was:" >&5
4808 sed 's/^/| /' conftest.$ac_ext >&5
4810 ac_header_compiler=no
4812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4813 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4814 echo "${ECHO_T}$ac_header_compiler" >&6
4816 # Is the header present?
4817 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4818 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4819 cat >conftest.$ac_ext <<_ACEOF
4820 /* confdefs.h. */
4821 _ACEOF
4822 cat confdefs.h >>conftest.$ac_ext
4823 cat >>conftest.$ac_ext <<_ACEOF
4824 /* end confdefs.h. */
4825 #include <$ac_header>
4826 _ACEOF
4827 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4828 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4829 ac_status=$?
4830 grep -v '^ *+' conftest.er1 >conftest.err
4831 rm -f conftest.er1
4832 cat conftest.err >&5
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); } >/dev/null; then
4835 if test -s conftest.err; then
4836 ac_cpp_err=$ac_c_preproc_warn_flag
4837 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4838 else
4839 ac_cpp_err=
4841 else
4842 ac_cpp_err=yes
4844 if test -z "$ac_cpp_err"; then
4845 ac_header_preproc=yes
4846 else
4847 echo "$as_me: failed program was:" >&5
4848 sed 's/^/| /' conftest.$ac_ext >&5
4850 ac_header_preproc=no
4852 rm -f conftest.err conftest.$ac_ext
4853 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4854 echo "${ECHO_T}$ac_header_preproc" >&6
4856 # So? What about this header?
4857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4858 yes:no: )
4859 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4860 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4862 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4863 ac_header_preproc=yes
4865 no:yes:* )
4866 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4867 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4868 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4869 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4870 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4871 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4872 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4873 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4875 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4876 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4877 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4879 cat <<\_ASBOX
4880 ## --------------------------------- ##
4881 ## Report this to schuyler@nocat.net ##
4882 ## --------------------------------- ##
4883 _ASBOX
4885 sed "s/^/$as_me: WARNING: /" >&2
4887 esac
4888 echo "$as_me:$LINENO: checking for $ac_header" >&5
4889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4891 echo $ECHO_N "(cached) $ECHO_C" >&6
4892 else
4893 eval "$as_ac_Header=\$ac_header_preproc"
4895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4896 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4900 cat >>confdefs.h <<_ACEOF
4901 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4902 _ACEOF
4906 done
4909 for ac_func in getpagesize
4911 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4912 echo "$as_me:$LINENO: checking for $ac_func" >&5
4913 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4914 if eval "test \"\${$as_ac_var+set}\" = set"; then
4915 echo $ECHO_N "(cached) $ECHO_C" >&6
4916 else
4917 cat >conftest.$ac_ext <<_ACEOF
4918 /* confdefs.h. */
4919 _ACEOF
4920 cat confdefs.h >>conftest.$ac_ext
4921 cat >>conftest.$ac_ext <<_ACEOF
4922 /* end confdefs.h. */
4923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4925 #define $ac_func innocuous_$ac_func
4927 /* System header to define __stub macros and hopefully few prototypes,
4928 which can conflict with char $ac_func (); below.
4929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4930 <limits.h> exists even on freestanding compilers. */
4932 #ifdef __STDC__
4933 # include <limits.h>
4934 #else
4935 # include <assert.h>
4936 #endif
4938 #undef $ac_func
4940 /* Override any gcc2 internal prototype to avoid an error. */
4941 #ifdef __cplusplus
4942 extern "C"
4944 #endif
4945 /* We use char because int might match the return type of a gcc2
4946 builtin and then its argument prototype would still apply. */
4947 char $ac_func ();
4948 /* The GNU C library defines this for functions which it implements
4949 to always fail with ENOSYS. Some functions are actually named
4950 something starting with __ and the normal name is an alias. */
4951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4952 choke me
4953 #else
4954 char (*f) () = $ac_func;
4955 #endif
4956 #ifdef __cplusplus
4958 #endif
4961 main ()
4963 return f != $ac_func;
4965 return 0;
4967 _ACEOF
4968 rm -f conftest.$ac_objext conftest$ac_exeext
4969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4970 (eval $ac_link) 2>conftest.er1
4971 ac_status=$?
4972 grep -v '^ *+' conftest.er1 >conftest.err
4973 rm -f conftest.er1
4974 cat conftest.err >&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); } &&
4977 { ac_try='test -z "$ac_c_werror_flag"
4978 || test ! -s conftest.err'
4979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4980 (eval $ac_try) 2>&5
4981 ac_status=$?
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); }; } &&
4984 { ac_try='test -s conftest$ac_exeext'
4985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4986 (eval $ac_try) 2>&5
4987 ac_status=$?
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); }; }; then
4990 eval "$as_ac_var=yes"
4991 else
4992 echo "$as_me: failed program was:" >&5
4993 sed 's/^/| /' conftest.$ac_ext >&5
4995 eval "$as_ac_var=no"
4997 rm -f conftest.err conftest.$ac_objext \
4998 conftest$ac_exeext conftest.$ac_ext
5000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5001 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5002 if test `eval echo '${'$as_ac_var'}'` = yes; then
5003 cat >>confdefs.h <<_ACEOF
5004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5005 _ACEOF
5008 done
5010 echo "$as_me:$LINENO: checking for working mmap" >&5
5011 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5012 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5013 echo $ECHO_N "(cached) $ECHO_C" >&6
5014 else
5015 if test "$cross_compiling" = yes; then
5016 ac_cv_func_mmap_fixed_mapped=no
5017 else
5018 cat >conftest.$ac_ext <<_ACEOF
5019 /* confdefs.h. */
5020 _ACEOF
5021 cat confdefs.h >>conftest.$ac_ext
5022 cat >>conftest.$ac_ext <<_ACEOF
5023 /* end confdefs.h. */
5024 $ac_includes_default
5025 /* malloc might have been renamed as rpl_malloc. */
5026 #undef malloc
5028 /* Thanks to Mike Haertel and Jim Avera for this test.
5029 Here is a matrix of mmap possibilities:
5030 mmap private not fixed
5031 mmap private fixed at somewhere currently unmapped
5032 mmap private fixed at somewhere already mapped
5033 mmap shared not fixed
5034 mmap shared fixed at somewhere currently unmapped
5035 mmap shared fixed at somewhere already mapped
5036 For private mappings, we should verify that changes cannot be read()
5037 back from the file, nor mmap's back from the file at a different
5038 address. (There have been systems where private was not correctly
5039 implemented like the infamous i386 svr4.0, and systems where the
5040 VM page cache was not coherent with the file system buffer cache
5041 like early versions of FreeBSD and possibly contemporary NetBSD.)
5042 For shared mappings, we should conversely verify that changes get
5043 propagated back to all the places they're supposed to be.
5045 Grep wants private fixed already mapped.
5046 The main things grep needs to know about mmap are:
5047 * does it exist and is it safe to write into the mmap'd area
5048 * how to use it (BSD variants) */
5050 #include <fcntl.h>
5051 #include <sys/mman.h>
5053 #if !STDC_HEADERS && !HAVE_STDLIB_H
5054 char *malloc ();
5055 #endif
5057 /* This mess was copied from the GNU getpagesize.h. */
5058 #if !HAVE_GETPAGESIZE
5059 /* Assume that all systems that can run configure have sys/param.h. */
5060 # if !HAVE_SYS_PARAM_H
5061 # define HAVE_SYS_PARAM_H 1
5062 # endif
5064 # ifdef _SC_PAGESIZE
5065 # define getpagesize() sysconf(_SC_PAGESIZE)
5066 # else /* no _SC_PAGESIZE */
5067 # if HAVE_SYS_PARAM_H
5068 # include <sys/param.h>
5069 # ifdef EXEC_PAGESIZE
5070 # define getpagesize() EXEC_PAGESIZE
5071 # else /* no EXEC_PAGESIZE */
5072 # ifdef NBPG
5073 # define getpagesize() NBPG * CLSIZE
5074 # ifndef CLSIZE
5075 # define CLSIZE 1
5076 # endif /* no CLSIZE */
5077 # else /* no NBPG */
5078 # ifdef NBPC
5079 # define getpagesize() NBPC
5080 # else /* no NBPC */
5081 # ifdef PAGESIZE
5082 # define getpagesize() PAGESIZE
5083 # endif /* PAGESIZE */
5084 # endif /* no NBPC */
5085 # endif /* no NBPG */
5086 # endif /* no EXEC_PAGESIZE */
5087 # else /* no HAVE_SYS_PARAM_H */
5088 # define getpagesize() 8192 /* punt totally */
5089 # endif /* no HAVE_SYS_PARAM_H */
5090 # endif /* no _SC_PAGESIZE */
5092 #endif /* no HAVE_GETPAGESIZE */
5095 main ()
5097 char *data, *data2, *data3;
5098 int i, pagesize;
5099 int fd;
5101 pagesize = getpagesize ();
5103 /* First, make a file with some known garbage in it. */
5104 data = (char *) malloc (pagesize);
5105 if (!data)
5106 exit (1);
5107 for (i = 0; i < pagesize; ++i)
5108 *(data + i) = rand ();
5109 umask (0);
5110 fd = creat ("conftest.mmap", 0600);
5111 if (fd < 0)
5112 exit (1);
5113 if (write (fd, data, pagesize) != pagesize)
5114 exit (1);
5115 close (fd);
5117 /* Next, try to mmap the file at a fixed address which already has
5118 something else allocated at it. If we can, also make sure that
5119 we see the same garbage. */
5120 fd = open ("conftest.mmap", O_RDWR);
5121 if (fd < 0)
5122 exit (1);
5123 data2 = (char *) malloc (2 * pagesize);
5124 if (!data2)
5125 exit (1);
5126 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5127 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5128 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5129 exit (1);
5130 for (i = 0; i < pagesize; ++i)
5131 if (*(data + i) != *(data2 + i))
5132 exit (1);
5134 /* Finally, make sure that changes to the mapped area do not
5135 percolate back to the file as seen by read(). (This is a bug on
5136 some variants of i386 svr4.0.) */
5137 for (i = 0; i < pagesize; ++i)
5138 *(data2 + i) = *(data2 + i) + 1;
5139 data3 = (char *) malloc (pagesize);
5140 if (!data3)
5141 exit (1);
5142 if (read (fd, data3, pagesize) != pagesize)
5143 exit (1);
5144 for (i = 0; i < pagesize; ++i)
5145 if (*(data + i) != *(data3 + i))
5146 exit (1);
5147 close (fd);
5148 exit (0);
5150 _ACEOF
5151 rm -f conftest$ac_exeext
5152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5153 (eval $ac_link) 2>&5
5154 ac_status=$?
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5158 (eval $ac_try) 2>&5
5159 ac_status=$?
5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); }; }; then
5162 ac_cv_func_mmap_fixed_mapped=yes
5163 else
5164 echo "$as_me: program exited with status $ac_status" >&5
5165 echo "$as_me: failed program was:" >&5
5166 sed 's/^/| /' conftest.$ac_ext >&5
5168 ( exit $ac_status )
5169 ac_cv_func_mmap_fixed_mapped=no
5171 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5174 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5175 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5176 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5178 cat >>confdefs.h <<\_ACEOF
5179 #define HAVE_MMAP 1
5180 _ACEOF
5183 rm -f conftest.mmap
5185 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5186 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5187 if test "${ac_cv_type_signal+set}" = set; then
5188 echo $ECHO_N "(cached) $ECHO_C" >&6
5189 else
5190 cat >conftest.$ac_ext <<_ACEOF
5191 /* confdefs.h. */
5192 _ACEOF
5193 cat confdefs.h >>conftest.$ac_ext
5194 cat >>conftest.$ac_ext <<_ACEOF
5195 /* end confdefs.h. */
5196 #include <sys/types.h>
5197 #include <signal.h>
5198 #ifdef signal
5199 # undef signal
5200 #endif
5201 #ifdef __cplusplus
5202 extern "C" void (*signal (int, void (*)(int)))(int);
5203 #else
5204 void (*signal ()) ();
5205 #endif
5208 main ()
5210 int i;
5212 return 0;
5214 _ACEOF
5215 rm -f conftest.$ac_objext
5216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5217 (eval $ac_compile) 2>conftest.er1
5218 ac_status=$?
5219 grep -v '^ *+' conftest.er1 >conftest.err
5220 rm -f conftest.er1
5221 cat conftest.err >&5
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); } &&
5224 { ac_try='test -z "$ac_c_werror_flag"
5225 || test ! -s conftest.err'
5226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5227 (eval $ac_try) 2>&5
5228 ac_status=$?
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); }; } &&
5231 { ac_try='test -s conftest.$ac_objext'
5232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5233 (eval $ac_try) 2>&5
5234 ac_status=$?
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); }; }; then
5237 ac_cv_type_signal=void
5238 else
5239 echo "$as_me: failed program was:" >&5
5240 sed 's/^/| /' conftest.$ac_ext >&5
5242 ac_cv_type_signal=int
5244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5246 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5247 echo "${ECHO_T}$ac_cv_type_signal" >&6
5249 cat >>confdefs.h <<_ACEOF
5250 #define RETSIGTYPE $ac_cv_type_signal
5251 _ACEOF
5254 echo "$as_me:$LINENO: checking for working strtod" >&5
5255 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
5256 if test "${ac_cv_func_strtod+set}" = set; then
5257 echo $ECHO_N "(cached) $ECHO_C" >&6
5258 else
5259 if test "$cross_compiling" = yes; then
5260 ac_cv_func_strtod=no
5261 else
5262 cat >conftest.$ac_ext <<_ACEOF
5263 /* confdefs.h. */
5264 _ACEOF
5265 cat confdefs.h >>conftest.$ac_ext
5266 cat >>conftest.$ac_ext <<_ACEOF
5267 /* end confdefs.h. */
5269 double strtod ();
5271 main()
5274 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
5275 char *string = " +69";
5276 char *term;
5277 double value;
5278 value = strtod (string, &term);
5279 if (value != 69 || term != (string + 4))
5280 exit (1);
5284 /* Under Solaris 2.4, strtod returns the wrong value for the
5285 terminating character under some conditions. */
5286 char *string = "NaN";
5287 char *term;
5288 strtod (string, &term);
5289 if (term != string && *(term - 1) == 0)
5290 exit (1);
5292 exit (0);
5295 _ACEOF
5296 rm -f conftest$ac_exeext
5297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5298 (eval $ac_link) 2>&5
5299 ac_status=$?
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303 (eval $ac_try) 2>&5
5304 ac_status=$?
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); }; }; then
5307 ac_cv_func_strtod=yes
5308 else
5309 echo "$as_me: program exited with status $ac_status" >&5
5310 echo "$as_me: failed program was:" >&5
5311 sed 's/^/| /' conftest.$ac_ext >&5
5313 ( exit $ac_status )
5314 ac_cv_func_strtod=no
5316 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5319 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
5320 echo "${ECHO_T}$ac_cv_func_strtod" >&6
5321 if test $ac_cv_func_strtod = no; then
5322 case $LIBOBJS in
5323 "strtod.$ac_objext" | \
5324 *" strtod.$ac_objext" | \
5325 "strtod.$ac_objext "* | \
5326 *" strtod.$ac_objext "* ) ;;
5327 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;;
5328 esac
5330 echo "$as_me:$LINENO: checking for pow" >&5
5331 echo $ECHO_N "checking for pow... $ECHO_C" >&6
5332 if test "${ac_cv_func_pow+set}" = set; then
5333 echo $ECHO_N "(cached) $ECHO_C" >&6
5334 else
5335 cat >conftest.$ac_ext <<_ACEOF
5336 /* confdefs.h. */
5337 _ACEOF
5338 cat confdefs.h >>conftest.$ac_ext
5339 cat >>conftest.$ac_ext <<_ACEOF
5340 /* end confdefs.h. */
5341 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
5342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5343 #define pow innocuous_pow
5345 /* System header to define __stub macros and hopefully few prototypes,
5346 which can conflict with char pow (); below.
5347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5348 <limits.h> exists even on freestanding compilers. */
5350 #ifdef __STDC__
5351 # include <limits.h>
5352 #else
5353 # include <assert.h>
5354 #endif
5356 #undef pow
5358 /* Override any gcc2 internal prototype to avoid an error. */
5359 #ifdef __cplusplus
5360 extern "C"
5362 #endif
5363 /* We use char because int might match the return type of a gcc2
5364 builtin and then its argument prototype would still apply. */
5365 char pow ();
5366 /* The GNU C library defines this for functions which it implements
5367 to always fail with ENOSYS. Some functions are actually named
5368 something starting with __ and the normal name is an alias. */
5369 #if defined (__stub_pow) || defined (__stub___pow)
5370 choke me
5371 #else
5372 char (*f) () = pow;
5373 #endif
5374 #ifdef __cplusplus
5376 #endif
5379 main ()
5381 return f != pow;
5383 return 0;
5385 _ACEOF
5386 rm -f conftest.$ac_objext conftest$ac_exeext
5387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5388 (eval $ac_link) 2>conftest.er1
5389 ac_status=$?
5390 grep -v '^ *+' conftest.er1 >conftest.err
5391 rm -f conftest.er1
5392 cat conftest.err >&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); } &&
5395 { ac_try='test -z "$ac_c_werror_flag"
5396 || test ! -s conftest.err'
5397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5398 (eval $ac_try) 2>&5
5399 ac_status=$?
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); }; } &&
5402 { ac_try='test -s conftest$ac_exeext'
5403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5404 (eval $ac_try) 2>&5
5405 ac_status=$?
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); }; }; then
5408 ac_cv_func_pow=yes
5409 else
5410 echo "$as_me: failed program was:" >&5
5411 sed 's/^/| /' conftest.$ac_ext >&5
5413 ac_cv_func_pow=no
5415 rm -f conftest.err conftest.$ac_objext \
5416 conftest$ac_exeext conftest.$ac_ext
5418 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
5419 echo "${ECHO_T}$ac_cv_func_pow" >&6
5421 if test $ac_cv_func_pow = no; then
5422 echo "$as_me:$LINENO: checking for pow in -lm" >&5
5423 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
5424 if test "${ac_cv_lib_m_pow+set}" = set; then
5425 echo $ECHO_N "(cached) $ECHO_C" >&6
5426 else
5427 ac_check_lib_save_LIBS=$LIBS
5428 LIBS="-lm $LIBS"
5429 cat >conftest.$ac_ext <<_ACEOF
5430 /* confdefs.h. */
5431 _ACEOF
5432 cat confdefs.h >>conftest.$ac_ext
5433 cat >>conftest.$ac_ext <<_ACEOF
5434 /* end confdefs.h. */
5436 /* Override any gcc2 internal prototype to avoid an error. */
5437 #ifdef __cplusplus
5438 extern "C"
5439 #endif
5440 /* We use char because int might match the return type of a gcc2
5441 builtin and then its argument prototype would still apply. */
5442 char pow ();
5444 main ()
5446 pow ();
5448 return 0;
5450 _ACEOF
5451 rm -f conftest.$ac_objext conftest$ac_exeext
5452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5453 (eval $ac_link) 2>conftest.er1
5454 ac_status=$?
5455 grep -v '^ *+' conftest.er1 >conftest.err
5456 rm -f conftest.er1
5457 cat conftest.err >&5
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); } &&
5460 { ac_try='test -z "$ac_c_werror_flag"
5461 || test ! -s conftest.err'
5462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5463 (eval $ac_try) 2>&5
5464 ac_status=$?
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); }; } &&
5467 { ac_try='test -s conftest$ac_exeext'
5468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5469 (eval $ac_try) 2>&5
5470 ac_status=$?
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); }; }; then
5473 ac_cv_lib_m_pow=yes
5474 else
5475 echo "$as_me: failed program was:" >&5
5476 sed 's/^/| /' conftest.$ac_ext >&5
5478 ac_cv_lib_m_pow=no
5480 rm -f conftest.err conftest.$ac_objext \
5481 conftest$ac_exeext conftest.$ac_ext
5482 LIBS=$ac_check_lib_save_LIBS
5484 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
5485 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
5486 if test $ac_cv_lib_m_pow = yes; then
5487 POW_LIB=-lm
5488 else
5489 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
5490 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
5504 for ac_func in munmap socket strchr strcspn strrchr strstr strtol
5506 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5507 echo "$as_me:$LINENO: checking for $ac_func" >&5
5508 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5509 if eval "test \"\${$as_ac_var+set}\" = set"; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 else
5512 cat >conftest.$ac_ext <<_ACEOF
5513 /* confdefs.h. */
5514 _ACEOF
5515 cat confdefs.h >>conftest.$ac_ext
5516 cat >>conftest.$ac_ext <<_ACEOF
5517 /* end confdefs.h. */
5518 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5519 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5520 #define $ac_func innocuous_$ac_func
5522 /* System header to define __stub macros and hopefully few prototypes,
5523 which can conflict with char $ac_func (); below.
5524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5525 <limits.h> exists even on freestanding compilers. */
5527 #ifdef __STDC__
5528 # include <limits.h>
5529 #else
5530 # include <assert.h>
5531 #endif
5533 #undef $ac_func
5535 /* Override any gcc2 internal prototype to avoid an error. */
5536 #ifdef __cplusplus
5537 extern "C"
5539 #endif
5540 /* We use char because int might match the return type of a gcc2
5541 builtin and then its argument prototype would still apply. */
5542 char $ac_func ();
5543 /* The GNU C library defines this for functions which it implements
5544 to always fail with ENOSYS. Some functions are actually named
5545 something starting with __ and the normal name is an alias. */
5546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5547 choke me
5548 #else
5549 char (*f) () = $ac_func;
5550 #endif
5551 #ifdef __cplusplus
5553 #endif
5556 main ()
5558 return f != $ac_func;
5560 return 0;
5562 _ACEOF
5563 rm -f conftest.$ac_objext conftest$ac_exeext
5564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5565 (eval $ac_link) 2>conftest.er1
5566 ac_status=$?
5567 grep -v '^ *+' conftest.er1 >conftest.err
5568 rm -f conftest.er1
5569 cat conftest.err >&5
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); } &&
5572 { ac_try='test -z "$ac_c_werror_flag"
5573 || test ! -s conftest.err'
5574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5575 (eval $ac_try) 2>&5
5576 ac_status=$?
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); }; } &&
5579 { ac_try='test -s conftest$ac_exeext'
5580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5581 (eval $ac_try) 2>&5
5582 ac_status=$?
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); }; }; then
5585 eval "$as_ac_var=yes"
5586 else
5587 echo "$as_me: failed program was:" >&5
5588 sed 's/^/| /' conftest.$ac_ext >&5
5590 eval "$as_ac_var=no"
5592 rm -f conftest.err conftest.$ac_objext \
5593 conftest$ac_exeext conftest.$ac_ext
5595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5596 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5597 if test `eval echo '${'$as_ac_var'}'` = yes; then
5598 cat >>confdefs.h <<_ACEOF
5599 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5600 _ACEOF
5603 done
5606 # Make sure we have values for prefix and exec_prefix
5607 if test "$prefix" = "NONE"; then
5608 prefix="$ac_default_prefix"
5610 if test "$exec_prefix" = "NONE"; then
5611 exec_prefix="$prefix"
5613 if test "$pkgdatadir" = ""; then
5614 pkgdatadir="$datadir/$PACKAGE_NAME"
5617 # which g/w mode?
5619 # Check whether --with-mode or --without-mode was given.
5620 if test "${with_mode+set}" = set; then
5621 withval="$with_mode"
5622 case "${withval}" in
5623 open) splashd_mode="open.c" ;;
5624 passive)
5625 splashd_mode="passive.c base64.c"
5627 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
5628 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
5629 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
5630 echo $ECHO_N "(cached) $ECHO_C" >&6
5631 else
5632 ac_check_lib_save_LIBS=$LIBS
5633 LIBS="-lcrypt $LIBS"
5634 cat >conftest.$ac_ext <<_ACEOF
5635 /* confdefs.h. */
5636 _ACEOF
5637 cat confdefs.h >>conftest.$ac_ext
5638 cat >>conftest.$ac_ext <<_ACEOF
5639 /* end confdefs.h. */
5641 /* Override any gcc2 internal prototype to avoid an error. */
5642 #ifdef __cplusplus
5643 extern "C"
5644 #endif
5645 /* We use char because int might match the return type of a gcc2
5646 builtin and then its argument prototype would still apply. */
5647 char crypt ();
5649 main ()
5651 crypt ();
5653 return 0;
5655 _ACEOF
5656 rm -f conftest.$ac_objext conftest$ac_exeext
5657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5658 (eval $ac_link) 2>conftest.er1
5659 ac_status=$?
5660 grep -v '^ *+' conftest.er1 >conftest.err
5661 rm -f conftest.er1
5662 cat conftest.err >&5
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); } &&
5665 { ac_try='test -z "$ac_c_werror_flag"
5666 || test ! -s conftest.err'
5667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5668 (eval $ac_try) 2>&5
5669 ac_status=$?
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); }; } &&
5672 { ac_try='test -s conftest$ac_exeext'
5673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5674 (eval $ac_try) 2>&5
5675 ac_status=$?
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); }; }; then
5678 ac_cv_lib_crypt_crypt=yes
5679 else
5680 echo "$as_me: failed program was:" >&5
5681 sed 's/^/| /' conftest.$ac_ext >&5
5683 ac_cv_lib_crypt_crypt=no
5685 rm -f conftest.err conftest.$ac_objext \
5686 conftest$ac_exeext conftest.$ac_ext
5687 LIBS=$ac_check_lib_save_LIBS
5689 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
5690 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
5691 if test $ac_cv_lib_crypt_crypt = yes; then
5692 cat >>confdefs.h <<_ACEOF
5693 #define HAVE_LIBCRYPT 1
5694 _ACEOF
5696 LIBS="-lcrypt $LIBS"
5701 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for --with-mode" >&5
5702 echo "$as_me: error: bad value ${withval} for --with-mode" >&2;}
5703 { (exit 1); exit 1; }; } ;;
5704 esac
5706 cat >>confdefs.h <<_ACEOF
5707 #define NC_SPLASHD_MODE "${withval}"
5708 _ACEOF
5711 else
5712 splashd_mode="open.c"
5715 SPLASHD_MODE="$splashd_mode"
5719 # Check whether --with-remote-splash or --without-remote-splash was given.
5720 if test "${with_remote_splash+set}" = set; then
5721 withval="$with_remote_splash"
5723 echo "$as_me:$LINENO: checking for ghttp_request_new in -lghttp" >&5
5724 echo $ECHO_N "checking for ghttp_request_new in -lghttp... $ECHO_C" >&6
5725 if test "${ac_cv_lib_ghttp_ghttp_request_new+set}" = set; then
5726 echo $ECHO_N "(cached) $ECHO_C" >&6
5727 else
5728 ac_check_lib_save_LIBS=$LIBS
5729 LIBS="-lghttp $LIBS"
5730 cat >conftest.$ac_ext <<_ACEOF
5731 /* confdefs.h. */
5732 _ACEOF
5733 cat confdefs.h >>conftest.$ac_ext
5734 cat >>conftest.$ac_ext <<_ACEOF
5735 /* end confdefs.h. */
5737 /* Override any gcc2 internal prototype to avoid an error. */
5738 #ifdef __cplusplus
5739 extern "C"
5740 #endif
5741 /* We use char because int might match the return type of a gcc2
5742 builtin and then its argument prototype would still apply. */
5743 char ghttp_request_new ();
5745 main ()
5747 ghttp_request_new ();
5749 return 0;
5751 _ACEOF
5752 rm -f conftest.$ac_objext conftest$ac_exeext
5753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5754 (eval $ac_link) 2>conftest.er1
5755 ac_status=$?
5756 grep -v '^ *+' conftest.er1 >conftest.err
5757 rm -f conftest.er1
5758 cat conftest.err >&5
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); } &&
5761 { ac_try='test -z "$ac_c_werror_flag"
5762 || test ! -s conftest.err'
5763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5764 (eval $ac_try) 2>&5
5765 ac_status=$?
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }; } &&
5768 { ac_try='test -s conftest$ac_exeext'
5769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5770 (eval $ac_try) 2>&5
5771 ac_status=$?
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); }; }; then
5774 ac_cv_lib_ghttp_ghttp_request_new=yes
5775 else
5776 echo "$as_me: failed program was:" >&5
5777 sed 's/^/| /' conftest.$ac_ext >&5
5779 ac_cv_lib_ghttp_ghttp_request_new=no
5781 rm -f conftest.err conftest.$ac_objext \
5782 conftest$ac_exeext conftest.$ac_ext
5783 LIBS=$ac_check_lib_save_LIBS
5785 echo "$as_me:$LINENO: result: $ac_cv_lib_ghttp_ghttp_request_new" >&5
5786 echo "${ECHO_T}$ac_cv_lib_ghttp_ghttp_request_new" >&6
5787 if test $ac_cv_lib_ghttp_ghttp_request_new = yes; then
5788 cat >>confdefs.h <<_ACEOF
5789 #define HAVE_LIBGHTTP 1
5790 _ACEOF
5792 LIBS="-lghttp $LIBS"
5799 # with ghttpd?
5801 # Check whether --with-ghttpd or --without-ghttpd was given.
5802 if test "${with_ghttpd+set}" = set; then
5803 withval="$with_ghttpd"
5804 GHTTPD_PROGRAM="ghttpd"
5806 else
5811 # Check for firewall software
5812 supported_fw=`find libexec/ -type d ! -path "*CVS*" -exec echo -n "{} " \;`
5814 # Check whether --with-firewall or --without-firewall was given.
5815 if test "${with_firewall+set}" = set; then
5816 withval="$with_firewall"
5817 firewall="$withval"
5818 else
5819 for ac_prog in `cd ./libexec; ls | grep -v CVS`
5821 # Extract the first word of "$ac_prog", so it can be a program name with args.
5822 set dummy $ac_prog; ac_word=$2
5823 echo "$as_me:$LINENO: checking for $ac_word" >&5
5824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5825 if test "${ac_cv_prog_firewall+set}" = set; then
5826 echo $ECHO_N "(cached) $ECHO_C" >&6
5827 else
5828 if test -n "$firewall"; then
5829 ac_cv_prog_firewall="$firewall" # Let the user override the test.
5830 else
5831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832 for as_dir in $PATH
5834 IFS=$as_save_IFS
5835 test -z "$as_dir" && as_dir=.
5836 for ac_exec_ext in '' $ac_executable_extensions; do
5837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5838 ac_cv_prog_firewall="$ac_prog"
5839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5840 break 2
5842 done
5843 done
5847 firewall=$ac_cv_prog_firewall
5848 if test -n "$firewall"; then
5849 echo "$as_me:$LINENO: result: $firewall" >&5
5850 echo "${ECHO_T}$firewall" >&6
5851 else
5852 echo "$as_me:$LINENO: result: no" >&5
5853 echo "${ECHO_T}no" >&6
5856 test -n "$firewall" && break
5857 done
5858 test -n "$firewall" || firewall=""""
5862 if test "$firewall" = ""; then
5863 { { echo "$as_me:$LINENO: error: No supported firewalls found in \$PATH." >&5
5864 echo "$as_me: error: No supported firewalls found in \$PATH." >&2;}
5865 { (exit 1); exit 1; }; }
5867 libexecscripts=`find libexec/$firewall -type f ! -path "*CVS*" -exec echo -n "{} " \;`
5869 pkglibexecdir=$libexecdir/$PACKAGE_NAME
5871 eval "NC_FIREWALL_PATH=`eval echo ${pkglibexecdir}`"
5873 cat >>confdefs.h <<_ACEOF
5874 #define NC_FIREWALL_PATH "$NC_FIREWALL_PATH"
5875 _ACEOF
5878 # Check for htdocs files
5880 # Check whether --with-docroot or --without-docroot was given.
5881 if test "${with_docroot+set}" = set; then
5882 withval="$with_docroot"
5883 htdocsdir="$withval"
5884 else
5885 htdocsdir="${pkgdatadir}/htdocs"
5888 imagesdir=$htdocsdir/images
5890 eval "NC_DOCUMENT_ROOT=`eval echo ${htdocsdir}`"
5892 cat >>confdefs.h <<_ACEOF
5893 #define NC_DOCUMENT_ROOT "$NC_DOCUMENT_ROOT"
5894 _ACEOF
5897 # Where do I find nocat.conf?
5898 eval "NC_CONF_PATH=`eval echo ${sysconfdir}`"
5900 cat >>confdefs.h <<_ACEOF
5901 #define NC_CONF_PATH "$NC_CONF_PATH"
5902 _ACEOF
5905 eval "NC_STATE_DIR=`eval echo ${localstatedir}`"
5907 cat >>confdefs.h <<_ACEOF
5908 #define NC_STATE_DIR "$NC_STATE_DIR"
5909 _ACEOF
5913 cat >>confdefs.h <<_ACEOF
5914 #define NC_PID_FILE "$NC_STATE_DIR/run/splashd.pid"
5915 _ACEOF
5918 # PGP files?
5919 pgpdir="$pkgdatadir/pgp"
5921 eval "NC_PGP_PATH=`eval echo ${pgpdir}`"
5923 cat >>confdefs.h <<_ACEOF
5924 #define NC_PGP_PATH "$NC_PGP_PATH"
5925 _ACEOF
5928 # Build makefiles
5929 ac_config_files="$ac_config_files Makefile src/Makefile"
5931 cat >confcache <<\_ACEOF
5932 # This file is a shell script that caches the results of configure
5933 # tests run on this system so they can be shared between configure
5934 # scripts and configure runs, see configure's option --config-cache.
5935 # It is not useful on other systems. If it contains results you don't
5936 # want to keep, you may remove or edit it.
5938 # config.status only pays attention to the cache file if you give it
5939 # the --recheck option to rerun configure.
5941 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5942 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5943 # following values.
5945 _ACEOF
5947 # The following way of writing the cache mishandles newlines in values,
5948 # but we know of no workaround that is simple, portable, and efficient.
5949 # So, don't put newlines in cache variables' values.
5950 # Ultrix sh set writes to stderr and can't be redirected directly,
5951 # and sets the high bit in the cache file unless we assign to the vars.
5953 (set) 2>&1 |
5954 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5955 *ac_space=\ *)
5956 # `set' does not quote correctly, so add quotes (double-quote
5957 # substitution turns \\\\ into \\, and sed turns \\ into \).
5958 sed -n \
5959 "s/'/'\\\\''/g;
5960 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5963 # `set' quotes correctly as required by POSIX, so do not add quotes.
5964 sed -n \
5965 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5967 esac;
5969 sed '
5970 t clear
5971 : clear
5972 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5973 t end
5974 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5975 : end' >>confcache
5976 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5977 if test -w $cache_file; then
5978 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5979 cat confcache >$cache_file
5980 else
5981 echo "not updating unwritable cache $cache_file"
5984 rm -f confcache
5986 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5987 # Let make expand exec_prefix.
5988 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5990 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5991 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5992 # trailing colons and then remove the whole line if VPATH becomes empty
5993 # (actually we leave an empty line to preserve line numbers).
5994 if test "x$srcdir" = x.; then
5995 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5996 s/:*\$(srcdir):*/:/;
5997 s/:*\${srcdir}:*/:/;
5998 s/:*@srcdir@:*/:/;
5999 s/^\([^=]*=[ ]*\):*/\1/;
6000 s/:*$//;
6001 s/^[^=]*=[ ]*$//;
6005 DEFS=-DHAVE_CONFIG_H
6007 ac_libobjs=
6008 ac_ltlibobjs=
6009 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6010 # 1. Remove the extension, and $U if already installed.
6011 ac_i=`echo "$ac_i" |
6012 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6013 # 2. Add them.
6014 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6015 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6016 done
6017 LIBOBJS=$ac_libobjs
6019 LTLIBOBJS=$ac_ltlibobjs
6022 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6023 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
6024 Usually this means the macro was only invoked conditionally." >&5
6025 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
6026 Usually this means the macro was only invoked conditionally." >&2;}
6027 { (exit 1); exit 1; }; }
6029 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6030 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6031 Usually this means the macro was only invoked conditionally." >&5
6032 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6033 Usually this means the macro was only invoked conditionally." >&2;}
6034 { (exit 1); exit 1; }; }
6036 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6037 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6038 Usually this means the macro was only invoked conditionally." >&5
6039 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6040 Usually this means the macro was only invoked conditionally." >&2;}
6041 { (exit 1); exit 1; }; }
6044 : ${CONFIG_STATUS=./config.status}
6045 ac_clean_files_save=$ac_clean_files
6046 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6047 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6048 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6049 cat >$CONFIG_STATUS <<_ACEOF
6050 #! $SHELL
6051 # Generated by $as_me.
6052 # Run this file to recreate the current configuration.
6053 # Compiler output produced by configure, useful for debugging
6054 # configure, is in config.log if it exists.
6056 debug=false
6057 ac_cs_recheck=false
6058 ac_cs_silent=false
6059 SHELL=\${CONFIG_SHELL-$SHELL}
6060 _ACEOF
6062 cat >>$CONFIG_STATUS <<\_ACEOF
6063 ## --------------------- ##
6064 ## M4sh Initialization. ##
6065 ## --------------------- ##
6067 # Be Bourne compatible
6068 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6069 emulate sh
6070 NULLCMD=:
6071 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6072 # is contrary to our usage. Disable this feature.
6073 alias -g '${1+"$@"}'='"$@"'
6074 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6075 set -o posix
6077 DUALCASE=1; export DUALCASE # for MKS sh
6079 # Support unset when possible.
6080 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6081 as_unset=unset
6082 else
6083 as_unset=false
6087 # Work around bugs in pre-3.0 UWIN ksh.
6088 $as_unset ENV MAIL MAILPATH
6089 PS1='$ '
6090 PS2='> '
6091 PS4='+ '
6093 # NLS nuisances.
6094 for as_var in \
6095 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6096 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6097 LC_TELEPHONE LC_TIME
6099 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6100 eval $as_var=C; export $as_var
6101 else
6102 $as_unset $as_var
6104 done
6106 # Required to use basename.
6107 if expr a : '\(a\)' >/dev/null 2>&1; then
6108 as_expr=expr
6109 else
6110 as_expr=false
6113 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6114 as_basename=basename
6115 else
6116 as_basename=false
6120 # Name of the executable.
6121 as_me=`$as_basename "$0" ||
6122 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6123 X"$0" : 'X\(//\)$' \| \
6124 X"$0" : 'X\(/\)$' \| \
6125 . : '\(.\)' 2>/dev/null ||
6126 echo X/"$0" |
6127 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6128 /^X\/\(\/\/\)$/{ s//\1/; q; }
6129 /^X\/\(\/\).*/{ s//\1/; q; }
6130 s/.*/./; q'`
6133 # PATH needs CR, and LINENO needs CR and PATH.
6134 # Avoid depending upon Character Ranges.
6135 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6136 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6137 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6138 as_cr_digits='0123456789'
6139 as_cr_alnum=$as_cr_Letters$as_cr_digits
6141 # The user is always right.
6142 if test "${PATH_SEPARATOR+set}" != set; then
6143 echo "#! /bin/sh" >conf$$.sh
6144 echo "exit 0" >>conf$$.sh
6145 chmod +x conf$$.sh
6146 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6147 PATH_SEPARATOR=';'
6148 else
6149 PATH_SEPARATOR=:
6151 rm -f conf$$.sh
6155 as_lineno_1=$LINENO
6156 as_lineno_2=$LINENO
6157 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6158 test "x$as_lineno_1" != "x$as_lineno_2" &&
6159 test "x$as_lineno_3" = "x$as_lineno_2" || {
6160 # Find who we are. Look in the path if we contain no path at all
6161 # relative or not.
6162 case $0 in
6163 *[\\/]* ) as_myself=$0 ;;
6164 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 for as_dir in $PATH
6167 IFS=$as_save_IFS
6168 test -z "$as_dir" && as_dir=.
6169 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6170 done
6173 esac
6174 # We did not find ourselves, most probably we were run as `sh COMMAND'
6175 # in which case we are not to be found in the path.
6176 if test "x$as_myself" = x; then
6177 as_myself=$0
6179 if test ! -f "$as_myself"; then
6180 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6181 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6182 { (exit 1); exit 1; }; }
6184 case $CONFIG_SHELL in
6186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6189 IFS=$as_save_IFS
6190 test -z "$as_dir" && as_dir=.
6191 for as_base in sh bash ksh sh5; do
6192 case $as_dir in
6194 if ("$as_dir/$as_base" -c '
6195 as_lineno_1=$LINENO
6196 as_lineno_2=$LINENO
6197 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6198 test "x$as_lineno_1" != "x$as_lineno_2" &&
6199 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6200 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6201 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6202 CONFIG_SHELL=$as_dir/$as_base
6203 export CONFIG_SHELL
6204 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6205 fi;;
6206 esac
6207 done
6208 done
6210 esac
6212 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6213 # uniformly replaced by the line number. The first 'sed' inserts a
6214 # line-number line before each line; the second 'sed' does the real
6215 # work. The second script uses 'N' to pair each line-number line
6216 # with the numbered line, and appends trailing '-' during
6217 # substitution so that $LINENO is not a special case at line end.
6218 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6219 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6220 sed '=' <$as_myself |
6221 sed '
6223 s,$,-,
6224 : loop
6225 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6226 t loop
6227 s,-$,,
6228 s,^['$as_cr_digits']*\n,,
6229 ' >$as_me.lineno &&
6230 chmod +x $as_me.lineno ||
6231 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6232 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6233 { (exit 1); exit 1; }; }
6235 # Don't try to exec as it changes $[0], causing all sort of problems
6236 # (the dirname of $[0] is not the place where we might find the
6237 # original and so on. Autoconf is especially sensible to this).
6238 . ./$as_me.lineno
6239 # Exit status is that of the last command.
6240 exit
6244 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6245 *c*,-n*) ECHO_N= ECHO_C='
6246 ' ECHO_T=' ' ;;
6247 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6248 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6249 esac
6251 if expr a : '\(a\)' >/dev/null 2>&1; then
6252 as_expr=expr
6253 else
6254 as_expr=false
6257 rm -f conf$$ conf$$.exe conf$$.file
6258 echo >conf$$.file
6259 if ln -s conf$$.file conf$$ 2>/dev/null; then
6260 # We could just check for DJGPP; but this test a) works b) is more generic
6261 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6262 if test -f conf$$.exe; then
6263 # Don't use ln at all; we don't have any links
6264 as_ln_s='cp -p'
6265 else
6266 as_ln_s='ln -s'
6268 elif ln conf$$.file conf$$ 2>/dev/null; then
6269 as_ln_s=ln
6270 else
6271 as_ln_s='cp -p'
6273 rm -f conf$$ conf$$.exe conf$$.file
6275 if mkdir -p . 2>/dev/null; then
6276 as_mkdir_p=:
6277 else
6278 test -d ./-p && rmdir ./-p
6279 as_mkdir_p=false
6282 as_executable_p="test -f"
6284 # Sed expression to map a string onto a valid CPP name.
6285 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6287 # Sed expression to map a string onto a valid variable name.
6288 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6291 # IFS
6292 # We need space, tab and new line, in precisely that order.
6293 as_nl='
6295 IFS=" $as_nl"
6297 # CDPATH.
6298 $as_unset CDPATH
6300 exec 6>&1
6302 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6303 # report actual input values of CONFIG_FILES etc. instead of their
6304 # values after options handling. Logging --version etc. is OK.
6305 exec 5>>config.log
6307 echo
6308 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6309 ## Running $as_me. ##
6310 _ASBOX
6311 } >&5
6312 cat >&5 <<_CSEOF
6314 This file was extended by nocat $as_me 0.93pre2, which was
6315 generated by GNU Autoconf 2.59. Invocation command line was
6317 CONFIG_FILES = $CONFIG_FILES
6318 CONFIG_HEADERS = $CONFIG_HEADERS
6319 CONFIG_LINKS = $CONFIG_LINKS
6320 CONFIG_COMMANDS = $CONFIG_COMMANDS
6321 $ $0 $@
6323 _CSEOF
6324 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6325 echo >&5
6326 _ACEOF
6328 # Files that config.status was made for.
6329 if test -n "$ac_config_files"; then
6330 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6333 if test -n "$ac_config_headers"; then
6334 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6337 if test -n "$ac_config_links"; then
6338 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6341 if test -n "$ac_config_commands"; then
6342 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6345 cat >>$CONFIG_STATUS <<\_ACEOF
6347 ac_cs_usage="\
6348 \`$as_me' instantiates files from templates according to the
6349 current configuration.
6351 Usage: $0 [OPTIONS] [FILE]...
6353 -h, --help print this help, then exit
6354 -V, --version print version number, then exit
6355 -q, --quiet do not print progress messages
6356 -d, --debug don't remove temporary files
6357 --recheck update $as_me by reconfiguring in the same conditions
6358 --file=FILE[:TEMPLATE]
6359 instantiate the configuration file FILE
6360 --header=FILE[:TEMPLATE]
6361 instantiate the configuration header FILE
6363 Configuration files:
6364 $config_files
6366 Configuration headers:
6367 $config_headers
6369 Configuration commands:
6370 $config_commands
6372 Report bugs to <bug-autoconf@gnu.org>."
6373 _ACEOF
6375 cat >>$CONFIG_STATUS <<_ACEOF
6376 ac_cs_version="\\
6377 nocat config.status 0.93pre2
6378 configured by $0, generated by GNU Autoconf 2.59,
6379 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6381 Copyright (C) 2003 Free Software Foundation, Inc.
6382 This config.status script is free software; the Free Software Foundation
6383 gives unlimited permission to copy, distribute and modify it."
6384 srcdir=$srcdir
6385 INSTALL="$INSTALL"
6386 _ACEOF
6388 cat >>$CONFIG_STATUS <<\_ACEOF
6389 # If no file are specified by the user, then we need to provide default
6390 # value. By we need to know if files were specified by the user.
6391 ac_need_defaults=:
6392 while test $# != 0
6394 case $1 in
6395 --*=*)
6396 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6397 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6398 ac_shift=:
6401 ac_option=$1
6402 ac_optarg=$2
6403 ac_shift=shift
6405 *) # This is not an option, so the user has probably given explicit
6406 # arguments.
6407 ac_option=$1
6408 ac_need_defaults=false;;
6409 esac
6411 case $ac_option in
6412 # Handling of the options.
6413 _ACEOF
6414 cat >>$CONFIG_STATUS <<\_ACEOF
6415 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6416 ac_cs_recheck=: ;;
6417 --version | --vers* | -V )
6418 echo "$ac_cs_version"; exit 0 ;;
6419 --he | --h)
6420 # Conflict between --help and --header
6421 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6422 Try \`$0 --help' for more information." >&5
6423 echo "$as_me: error: ambiguous option: $1
6424 Try \`$0 --help' for more information." >&2;}
6425 { (exit 1); exit 1; }; };;
6426 --help | --hel | -h )
6427 echo "$ac_cs_usage"; exit 0 ;;
6428 --debug | --d* | -d )
6429 debug=: ;;
6430 --file | --fil | --fi | --f )
6431 $ac_shift
6432 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6433 ac_need_defaults=false;;
6434 --header | --heade | --head | --hea )
6435 $ac_shift
6436 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6437 ac_need_defaults=false;;
6438 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6439 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6440 ac_cs_silent=: ;;
6442 # This is an error.
6443 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6444 Try \`$0 --help' for more information." >&5
6445 echo "$as_me: error: unrecognized option: $1
6446 Try \`$0 --help' for more information." >&2;}
6447 { (exit 1); exit 1; }; } ;;
6449 *) ac_config_targets="$ac_config_targets $1" ;;
6451 esac
6452 shift
6453 done
6455 ac_configure_extra_args=
6457 if $ac_cs_silent; then
6458 exec 6>/dev/null
6459 ac_configure_extra_args="$ac_configure_extra_args --silent"
6462 _ACEOF
6463 cat >>$CONFIG_STATUS <<_ACEOF
6464 if \$ac_cs_recheck; then
6465 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6466 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6469 _ACEOF
6471 cat >>$CONFIG_STATUS <<_ACEOF
6473 # INIT-COMMANDS section.
6476 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6478 _ACEOF
6482 cat >>$CONFIG_STATUS <<\_ACEOF
6483 for ac_config_target in $ac_config_targets
6485 case "$ac_config_target" in
6486 # Handling of arguments.
6487 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6488 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6489 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6490 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
6491 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6492 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6493 { (exit 1); exit 1; }; };;
6494 esac
6495 done
6497 # If the user did not use the arguments to specify the items to instantiate,
6498 # then the envvar interface is used. Set only those that are not.
6499 # We use the long form for the default assignment because of an extremely
6500 # bizarre bug on SunOS 4.1.3.
6501 if $ac_need_defaults; then
6502 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6503 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6504 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6507 # Have a temporary directory for convenience. Make it in the build tree
6508 # simply because there is no reason to put it here, and in addition,
6509 # creating and moving files from /tmp can sometimes cause problems.
6510 # Create a temporary directory, and hook for its removal unless debugging.
6511 $debug ||
6513 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6514 trap '{ (exit 1); exit 1; }' 1 2 13 15
6517 # Create a (secure) tmp directory for tmp files.
6520 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6521 test -n "$tmp" && test -d "$tmp"
6522 } ||
6524 tmp=./confstat$$-$RANDOM
6525 (umask 077 && mkdir $tmp)
6526 } ||
6528 echo "$me: cannot create a temporary directory in ." >&2
6529 { (exit 1); exit 1; }
6532 _ACEOF
6534 cat >>$CONFIG_STATUS <<_ACEOF
6537 # CONFIG_FILES section.
6540 # No need to generate the scripts if there are no CONFIG_FILES.
6541 # This happens for instance when ./config.status config.h
6542 if test -n "\$CONFIG_FILES"; then
6543 # Protect against being on the right side of a sed subst in config.status.
6544 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6545 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6546 s,@SHELL@,$SHELL,;t t
6547 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6548 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6549 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6550 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6551 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6552 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6553 s,@exec_prefix@,$exec_prefix,;t t
6554 s,@prefix@,$prefix,;t t
6555 s,@program_transform_name@,$program_transform_name,;t t
6556 s,@bindir@,$bindir,;t t
6557 s,@sbindir@,$sbindir,;t t
6558 s,@libexecdir@,$libexecdir,;t t
6559 s,@datadir@,$datadir,;t t
6560 s,@sysconfdir@,$sysconfdir,;t t
6561 s,@sharedstatedir@,$sharedstatedir,;t t
6562 s,@localstatedir@,$localstatedir,;t t
6563 s,@libdir@,$libdir,;t t
6564 s,@includedir@,$includedir,;t t
6565 s,@oldincludedir@,$oldincludedir,;t t
6566 s,@infodir@,$infodir,;t t
6567 s,@mandir@,$mandir,;t t
6568 s,@build_alias@,$build_alias,;t t
6569 s,@host_alias@,$host_alias,;t t
6570 s,@target_alias@,$target_alias,;t t
6571 s,@DEFS@,$DEFS,;t t
6572 s,@ECHO_C@,$ECHO_C,;t t
6573 s,@ECHO_N@,$ECHO_N,;t t
6574 s,@ECHO_T@,$ECHO_T,;t t
6575 s,@LIBS@,$LIBS,;t t
6576 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6577 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6578 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6579 s,@CYGPATH_W@,$CYGPATH_W,;t t
6580 s,@PACKAGE@,$PACKAGE,;t t
6581 s,@VERSION@,$VERSION,;t t
6582 s,@ACLOCAL@,$ACLOCAL,;t t
6583 s,@AUTOCONF@,$AUTOCONF,;t t
6584 s,@AUTOMAKE@,$AUTOMAKE,;t t
6585 s,@AUTOHEADER@,$AUTOHEADER,;t t
6586 s,@MAKEINFO@,$MAKEINFO,;t t
6587 s,@AMTAR@,$AMTAR,;t t
6588 s,@install_sh@,$install_sh,;t t
6589 s,@STRIP@,$STRIP,;t t
6590 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6591 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
6592 s,@mkdir_p@,$mkdir_p,;t t
6593 s,@AWK@,$AWK,;t t
6594 s,@SET_MAKE@,$SET_MAKE,;t t
6595 s,@am__leading_dot@,$am__leading_dot,;t t
6596 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
6597 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
6598 s,@MAINT@,$MAINT,;t t
6599 s,@CC@,$CC,;t t
6600 s,@CFLAGS@,$CFLAGS,;t t
6601 s,@LDFLAGS@,$LDFLAGS,;t t
6602 s,@CPPFLAGS@,$CPPFLAGS,;t t
6603 s,@ac_ct_CC@,$ac_ct_CC,;t t
6604 s,@EXEEXT@,$EXEEXT,;t t
6605 s,@OBJEXT@,$OBJEXT,;t t
6606 s,@DEPDIR@,$DEPDIR,;t t
6607 s,@am__include@,$am__include,;t t
6608 s,@am__quote@,$am__quote,;t t
6609 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
6610 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
6611 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
6612 s,@CCDEPMODE@,$CCDEPMODE,;t t
6613 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
6614 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
6615 s,@RANLIB@,$RANLIB,;t t
6616 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6617 s,@GLIB_CONFIG@,$GLIB_CONFIG,;t t
6618 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
6619 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
6620 s,@CPP@,$CPP,;t t
6621 s,@EGREP@,$EGREP,;t t
6622 s,@POW_LIB@,$POW_LIB,;t t
6623 s,@LIBOBJS@,$LIBOBJS,;t t
6624 s,@SPLASHD_MODE@,$SPLASHD_MODE,;t t
6625 s,@GHTTPD_PROGRAM@,$GHTTPD_PROGRAM,;t t
6626 s,@firewall@,$firewall,;t t
6627 s,@libexecscripts@,$libexecscripts,;t t
6628 s,@pkglibexecdir@,$pkglibexecdir,;t t
6629 s,@htdocsdir@,$htdocsdir,;t t
6630 s,@imagesdir@,$imagesdir,;t t
6631 s,@pgpdir@,$pgpdir,;t t
6632 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6633 CEOF
6635 _ACEOF
6637 cat >>$CONFIG_STATUS <<\_ACEOF
6638 # Split the substitutions into bite-sized pieces for seds with
6639 # small command number limits, like on Digital OSF/1 and HP-UX.
6640 ac_max_sed_lines=48
6641 ac_sed_frag=1 # Number of current file.
6642 ac_beg=1 # First line for current file.
6643 ac_end=$ac_max_sed_lines # Line after last line for current file.
6644 ac_more_lines=:
6645 ac_sed_cmds=
6646 while $ac_more_lines; do
6647 if test $ac_beg -gt 1; then
6648 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6649 else
6650 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6652 if test ! -s $tmp/subs.frag; then
6653 ac_more_lines=false
6654 else
6655 # The purpose of the label and of the branching condition is to
6656 # speed up the sed processing (if there are no `@' at all, there
6657 # is no need to browse any of the substitutions).
6658 # These are the two extra sed commands mentioned above.
6659 (echo ':t
6660 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6661 if test -z "$ac_sed_cmds"; then
6662 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6663 else
6664 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6666 ac_sed_frag=`expr $ac_sed_frag + 1`
6667 ac_beg=$ac_end
6668 ac_end=`expr $ac_end + $ac_max_sed_lines`
6670 done
6671 if test -z "$ac_sed_cmds"; then
6672 ac_sed_cmds=cat
6674 fi # test -n "$CONFIG_FILES"
6676 _ACEOF
6677 cat >>$CONFIG_STATUS <<\_ACEOF
6678 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6679 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6680 case $ac_file in
6681 - | *:- | *:-:* ) # input from stdin
6682 cat >$tmp/stdin
6683 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6684 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6685 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6686 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6687 * ) ac_file_in=$ac_file.in ;;
6688 esac
6690 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6691 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6692 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6693 X"$ac_file" : 'X\(//\)[^/]' \| \
6694 X"$ac_file" : 'X\(//\)$' \| \
6695 X"$ac_file" : 'X\(/\)' \| \
6696 . : '\(.\)' 2>/dev/null ||
6697 echo X"$ac_file" |
6698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6699 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6700 /^X\(\/\/\)$/{ s//\1/; q; }
6701 /^X\(\/\).*/{ s//\1/; q; }
6702 s/.*/./; q'`
6703 { if $as_mkdir_p; then
6704 mkdir -p "$ac_dir"
6705 else
6706 as_dir="$ac_dir"
6707 as_dirs=
6708 while test ! -d "$as_dir"; do
6709 as_dirs="$as_dir $as_dirs"
6710 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6711 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6712 X"$as_dir" : 'X\(//\)[^/]' \| \
6713 X"$as_dir" : 'X\(//\)$' \| \
6714 X"$as_dir" : 'X\(/\)' \| \
6715 . : '\(.\)' 2>/dev/null ||
6716 echo X"$as_dir" |
6717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6719 /^X\(\/\/\)$/{ s//\1/; q; }
6720 /^X\(\/\).*/{ s//\1/; q; }
6721 s/.*/./; q'`
6722 done
6723 test ! -n "$as_dirs" || mkdir $as_dirs
6724 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6725 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6726 { (exit 1); exit 1; }; }; }
6728 ac_builddir=.
6730 if test "$ac_dir" != .; then
6731 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6732 # A "../" for each directory in $ac_dir_suffix.
6733 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6734 else
6735 ac_dir_suffix= ac_top_builddir=
6738 case $srcdir in
6739 .) # No --srcdir option. We are building in place.
6740 ac_srcdir=.
6741 if test -z "$ac_top_builddir"; then
6742 ac_top_srcdir=.
6743 else
6744 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6745 fi ;;
6746 [\\/]* | ?:[\\/]* ) # Absolute path.
6747 ac_srcdir=$srcdir$ac_dir_suffix;
6748 ac_top_srcdir=$srcdir ;;
6749 *) # Relative path.
6750 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6751 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6752 esac
6754 # Do not use `cd foo && pwd` to compute absolute paths, because
6755 # the directories may not exist.
6756 case `pwd` in
6757 .) ac_abs_builddir="$ac_dir";;
6759 case "$ac_dir" in
6760 .) ac_abs_builddir=`pwd`;;
6761 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6762 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6763 esac;;
6764 esac
6765 case $ac_abs_builddir in
6766 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6768 case ${ac_top_builddir}. in
6769 .) ac_abs_top_builddir=$ac_abs_builddir;;
6770 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6771 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6772 esac;;
6773 esac
6774 case $ac_abs_builddir in
6775 .) ac_abs_srcdir=$ac_srcdir;;
6777 case $ac_srcdir in
6778 .) ac_abs_srcdir=$ac_abs_builddir;;
6779 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6780 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6781 esac;;
6782 esac
6783 case $ac_abs_builddir in
6784 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6786 case $ac_top_srcdir in
6787 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6788 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6789 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6790 esac;;
6791 esac
6794 case $INSTALL in
6795 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6796 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6797 esac
6799 if test x"$ac_file" != x-; then
6800 { echo "$as_me:$LINENO: creating $ac_file" >&5
6801 echo "$as_me: creating $ac_file" >&6;}
6802 rm -f "$ac_file"
6804 # Let's still pretend it is `configure' which instantiates (i.e., don't
6805 # use $as_me), people would be surprised to read:
6806 # /* config.h. Generated by config.status. */
6807 if test x"$ac_file" = x-; then
6808 configure_input=
6809 else
6810 configure_input="$ac_file. "
6812 configure_input=$configure_input"Generated from `echo $ac_file_in |
6813 sed 's,.*/,,'` by configure."
6815 # First look for the input files in the build tree, otherwise in the
6816 # src tree.
6817 ac_file_inputs=`IFS=:
6818 for f in $ac_file_in; do
6819 case $f in
6820 -) echo $tmp/stdin ;;
6821 [\\/$]*)
6822 # Absolute (can't be DOS-style, as IFS=:)
6823 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6824 echo "$as_me: error: cannot find input file: $f" >&2;}
6825 { (exit 1); exit 1; }; }
6826 echo "$f";;
6827 *) # Relative
6828 if test -f "$f"; then
6829 # Build tree
6830 echo "$f"
6831 elif test -f "$srcdir/$f"; then
6832 # Source tree
6833 echo "$srcdir/$f"
6834 else
6835 # /dev/null tree
6836 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6837 echo "$as_me: error: cannot find input file: $f" >&2;}
6838 { (exit 1); exit 1; }; }
6839 fi;;
6840 esac
6841 done` || { (exit 1); exit 1; }
6842 _ACEOF
6843 cat >>$CONFIG_STATUS <<_ACEOF
6844 sed "$ac_vpsub
6845 $extrasub
6846 _ACEOF
6847 cat >>$CONFIG_STATUS <<\_ACEOF
6849 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6850 s,@configure_input@,$configure_input,;t t
6851 s,@srcdir@,$ac_srcdir,;t t
6852 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6853 s,@top_srcdir@,$ac_top_srcdir,;t t
6854 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6855 s,@builddir@,$ac_builddir,;t t
6856 s,@abs_builddir@,$ac_abs_builddir,;t t
6857 s,@top_builddir@,$ac_top_builddir,;t t
6858 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6859 s,@INSTALL@,$ac_INSTALL,;t t
6860 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6861 rm -f $tmp/stdin
6862 if test x"$ac_file" != x-; then
6863 mv $tmp/out $ac_file
6864 else
6865 cat $tmp/out
6866 rm -f $tmp/out
6869 done
6870 _ACEOF
6871 cat >>$CONFIG_STATUS <<\_ACEOF
6874 # CONFIG_HEADER section.
6877 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6878 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6880 # ac_d sets the value in "#define NAME VALUE" lines.
6881 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6882 ac_dB='[ ].*$,\1#\2'
6883 ac_dC=' '
6884 ac_dD=',;t'
6885 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6886 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6887 ac_uB='$,\1#\2define\3'
6888 ac_uC=' '
6889 ac_uD=',;t'
6891 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6892 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6893 case $ac_file in
6894 - | *:- | *:-:* ) # input from stdin
6895 cat >$tmp/stdin
6896 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6897 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6898 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6899 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6900 * ) ac_file_in=$ac_file.in ;;
6901 esac
6903 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6904 echo "$as_me: creating $ac_file" >&6;}
6906 # First look for the input files in the build tree, otherwise in the
6907 # src tree.
6908 ac_file_inputs=`IFS=:
6909 for f in $ac_file_in; do
6910 case $f in
6911 -) echo $tmp/stdin ;;
6912 [\\/$]*)
6913 # Absolute (can't be DOS-style, as IFS=:)
6914 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6915 echo "$as_me: error: cannot find input file: $f" >&2;}
6916 { (exit 1); exit 1; }; }
6917 # Do quote $f, to prevent DOS paths from being IFS'd.
6918 echo "$f";;
6919 *) # Relative
6920 if test -f "$f"; then
6921 # Build tree
6922 echo "$f"
6923 elif test -f "$srcdir/$f"; then
6924 # Source tree
6925 echo "$srcdir/$f"
6926 else
6927 # /dev/null tree
6928 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6929 echo "$as_me: error: cannot find input file: $f" >&2;}
6930 { (exit 1); exit 1; }; }
6931 fi;;
6932 esac
6933 done` || { (exit 1); exit 1; }
6934 # Remove the trailing spaces.
6935 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6937 _ACEOF
6939 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6940 # `conftest.undefs', that substitutes the proper values into
6941 # config.h.in to produce config.h. The first handles `#define'
6942 # templates, and the second `#undef' templates.
6943 # And first: Protect against being on the right side of a sed subst in
6944 # config.status. Protect against being in an unquoted here document
6945 # in config.status.
6946 rm -f conftest.defines conftest.undefs
6947 # Using a here document instead of a string reduces the quoting nightmare.
6948 # Putting comments in sed scripts is not portable.
6950 # `end' is used to avoid that the second main sed command (meant for
6951 # 0-ary CPP macros) applies to n-ary macro definitions.
6952 # See the Autoconf documentation for `clear'.
6953 cat >confdef2sed.sed <<\_ACEOF
6954 s/[\\&,]/\\&/g
6955 s,[\\$`],\\&,g
6956 t clear
6957 : clear
6958 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6959 t end
6960 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6961 : end
6962 _ACEOF
6963 # If some macros were called several times there might be several times
6964 # the same #defines, which is useless. Nevertheless, we may not want to
6965 # sort them, since we want the *last* AC-DEFINE to be honored.
6966 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6967 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6968 rm -f confdef2sed.sed
6970 # This sed command replaces #undef with comments. This is necessary, for
6971 # example, in the case of _POSIX_SOURCE, which is predefined and required
6972 # on some systems where configure will not decide to define it.
6973 cat >>conftest.undefs <<\_ACEOF
6974 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6975 _ACEOF
6977 # Break up conftest.defines because some shells have a limit on the size
6978 # of here documents, and old seds have small limits too (100 cmds).
6979 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6980 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6981 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6982 echo ' :' >>$CONFIG_STATUS
6983 rm -f conftest.tail
6984 while grep . conftest.defines >/dev/null
6986 # Write a limited-size here document to $tmp/defines.sed.
6987 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6988 # Speed up: don't consider the non `#define' lines.
6989 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6990 # Work around the forget-to-reset-the-flag bug.
6991 echo 't clr' >>$CONFIG_STATUS
6992 echo ': clr' >>$CONFIG_STATUS
6993 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6994 echo 'CEOF
6995 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6996 rm -f $tmp/in
6997 mv $tmp/out $tmp/in
6998 ' >>$CONFIG_STATUS
6999 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7000 rm -f conftest.defines
7001 mv conftest.tail conftest.defines
7002 done
7003 rm -f conftest.defines
7004 echo ' fi # grep' >>$CONFIG_STATUS
7005 echo >>$CONFIG_STATUS
7007 # Break up conftest.undefs because some shells have a limit on the size
7008 # of here documents, and old seds have small limits too (100 cmds).
7009 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7010 rm -f conftest.tail
7011 while grep . conftest.undefs >/dev/null
7013 # Write a limited-size here document to $tmp/undefs.sed.
7014 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7015 # Speed up: don't consider the non `#undef'
7016 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7017 # Work around the forget-to-reset-the-flag bug.
7018 echo 't clr' >>$CONFIG_STATUS
7019 echo ': clr' >>$CONFIG_STATUS
7020 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7021 echo 'CEOF
7022 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7023 rm -f $tmp/in
7024 mv $tmp/out $tmp/in
7025 ' >>$CONFIG_STATUS
7026 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7027 rm -f conftest.undefs
7028 mv conftest.tail conftest.undefs
7029 done
7030 rm -f conftest.undefs
7032 cat >>$CONFIG_STATUS <<\_ACEOF
7033 # Let's still pretend it is `configure' which instantiates (i.e., don't
7034 # use $as_me), people would be surprised to read:
7035 # /* config.h. Generated by config.status. */
7036 if test x"$ac_file" = x-; then
7037 echo "/* Generated by configure. */" >$tmp/config.h
7038 else
7039 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7041 cat $tmp/in >>$tmp/config.h
7042 rm -f $tmp/in
7043 if test x"$ac_file" != x-; then
7044 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7045 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7046 echo "$as_me: $ac_file is unchanged" >&6;}
7047 else
7048 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7049 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7050 X"$ac_file" : 'X\(//\)[^/]' \| \
7051 X"$ac_file" : 'X\(//\)$' \| \
7052 X"$ac_file" : 'X\(/\)' \| \
7053 . : '\(.\)' 2>/dev/null ||
7054 echo X"$ac_file" |
7055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7056 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7057 /^X\(\/\/\)$/{ s//\1/; q; }
7058 /^X\(\/\).*/{ s//\1/; q; }
7059 s/.*/./; q'`
7060 { if $as_mkdir_p; then
7061 mkdir -p "$ac_dir"
7062 else
7063 as_dir="$ac_dir"
7064 as_dirs=
7065 while test ! -d "$as_dir"; do
7066 as_dirs="$as_dir $as_dirs"
7067 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7068 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7069 X"$as_dir" : 'X\(//\)[^/]' \| \
7070 X"$as_dir" : 'X\(//\)$' \| \
7071 X"$as_dir" : 'X\(/\)' \| \
7072 . : '\(.\)' 2>/dev/null ||
7073 echo X"$as_dir" |
7074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7075 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7076 /^X\(\/\/\)$/{ s//\1/; q; }
7077 /^X\(\/\).*/{ s//\1/; q; }
7078 s/.*/./; q'`
7079 done
7080 test ! -n "$as_dirs" || mkdir $as_dirs
7081 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7082 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7083 { (exit 1); exit 1; }; }; }
7085 rm -f $ac_file
7086 mv $tmp/config.h $ac_file
7088 else
7089 cat $tmp/config.h
7090 rm -f $tmp/config.h
7092 # Compute $ac_file's index in $config_headers.
7093 _am_stamp_count=1
7094 for _am_header in $config_headers :; do
7095 case $_am_header in
7096 $ac_file | $ac_file:* )
7097 break ;;
7099 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7100 esac
7101 done
7102 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
7103 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7104 X$ac_file : 'X\(//\)[^/]' \| \
7105 X$ac_file : 'X\(//\)$' \| \
7106 X$ac_file : 'X\(/\)' \| \
7107 . : '\(.\)' 2>/dev/null ||
7108 echo X$ac_file |
7109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7110 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7111 /^X\(\/\/\)$/{ s//\1/; q; }
7112 /^X\(\/\).*/{ s//\1/; q; }
7113 s/.*/./; q'`/stamp-h$_am_stamp_count
7114 done
7115 _ACEOF
7116 cat >>$CONFIG_STATUS <<\_ACEOF
7119 # CONFIG_COMMANDS section.
7121 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7122 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7123 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7124 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7125 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7126 X"$ac_dest" : 'X\(//\)[^/]' \| \
7127 X"$ac_dest" : 'X\(//\)$' \| \
7128 X"$ac_dest" : 'X\(/\)' \| \
7129 . : '\(.\)' 2>/dev/null ||
7130 echo X"$ac_dest" |
7131 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7132 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7133 /^X\(\/\/\)$/{ s//\1/; q; }
7134 /^X\(\/\).*/{ s//\1/; q; }
7135 s/.*/./; q'`
7136 { if $as_mkdir_p; then
7137 mkdir -p "$ac_dir"
7138 else
7139 as_dir="$ac_dir"
7140 as_dirs=
7141 while test ! -d "$as_dir"; do
7142 as_dirs="$as_dir $as_dirs"
7143 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7144 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7145 X"$as_dir" : 'X\(//\)[^/]' \| \
7146 X"$as_dir" : 'X\(//\)$' \| \
7147 X"$as_dir" : 'X\(/\)' \| \
7148 . : '\(.\)' 2>/dev/null ||
7149 echo X"$as_dir" |
7150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7151 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7152 /^X\(\/\/\)$/{ s//\1/; q; }
7153 /^X\(\/\).*/{ s//\1/; q; }
7154 s/.*/./; q'`
7155 done
7156 test ! -n "$as_dirs" || mkdir $as_dirs
7157 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7158 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7159 { (exit 1); exit 1; }; }; }
7161 ac_builddir=.
7163 if test "$ac_dir" != .; then
7164 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7165 # A "../" for each directory in $ac_dir_suffix.
7166 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7167 else
7168 ac_dir_suffix= ac_top_builddir=
7171 case $srcdir in
7172 .) # No --srcdir option. We are building in place.
7173 ac_srcdir=.
7174 if test -z "$ac_top_builddir"; then
7175 ac_top_srcdir=.
7176 else
7177 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7178 fi ;;
7179 [\\/]* | ?:[\\/]* ) # Absolute path.
7180 ac_srcdir=$srcdir$ac_dir_suffix;
7181 ac_top_srcdir=$srcdir ;;
7182 *) # Relative path.
7183 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7184 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7185 esac
7187 # Do not use `cd foo && pwd` to compute absolute paths, because
7188 # the directories may not exist.
7189 case `pwd` in
7190 .) ac_abs_builddir="$ac_dir";;
7192 case "$ac_dir" in
7193 .) ac_abs_builddir=`pwd`;;
7194 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7195 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7196 esac;;
7197 esac
7198 case $ac_abs_builddir in
7199 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7201 case ${ac_top_builddir}. in
7202 .) ac_abs_top_builddir=$ac_abs_builddir;;
7203 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7204 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7205 esac;;
7206 esac
7207 case $ac_abs_builddir in
7208 .) ac_abs_srcdir=$ac_srcdir;;
7210 case $ac_srcdir in
7211 .) ac_abs_srcdir=$ac_abs_builddir;;
7212 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7213 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7214 esac;;
7215 esac
7216 case $ac_abs_builddir in
7217 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7219 case $ac_top_srcdir in
7220 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7221 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7222 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7223 esac;;
7224 esac
7227 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7228 echo "$as_me: executing $ac_dest commands" >&6;}
7229 case $ac_dest in
7230 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7231 # Strip MF so we end up with the name of the file.
7232 mf=`echo "$mf" | sed -e 's/:.*$//'`
7233 # Check whether this is an Automake generated Makefile or not.
7234 # We used to match only the files named `Makefile.in', but
7235 # some people rename them; so instead we look at the file content.
7236 # Grep'ing the first line is not enough: some people post-process
7237 # each Makefile.in and add a new line on top of each file to say so.
7238 # So let's grep whole file.
7239 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7240 dirpart=`(dirname "$mf") 2>/dev/null ||
7241 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7242 X"$mf" : 'X\(//\)[^/]' \| \
7243 X"$mf" : 'X\(//\)$' \| \
7244 X"$mf" : 'X\(/\)' \| \
7245 . : '\(.\)' 2>/dev/null ||
7246 echo X"$mf" |
7247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7248 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7249 /^X\(\/\/\)$/{ s//\1/; q; }
7250 /^X\(\/\).*/{ s//\1/; q; }
7251 s/.*/./; q'`
7252 else
7253 continue
7255 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
7256 # Extract the definition of DEP_FILES from the Makefile without
7257 # running `make'.
7258 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7259 test -z "$DEPDIR" && continue
7260 # When using ansi2knr, U may be empty or an underscore; expand it
7261 U=`sed -n 's/^U = //p' < "$mf"`
7262 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
7263 # We invoke sed twice because it is the simplest approach to
7264 # changing $(DEPDIR) to its actual value in the expansion.
7265 for file in `sed -n '
7266 /^DEP_FILES = .*\\\\$/ {
7267 s/^DEP_FILES = //
7268 :loop
7269 s/\\\\$//
7272 /\\\\$/ b loop
7275 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
7276 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7277 # Make sure the directory exists.
7278 test -f "$dirpart/$file" && continue
7279 fdir=`(dirname "$file") 2>/dev/null ||
7280 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7281 X"$file" : 'X\(//\)[^/]' \| \
7282 X"$file" : 'X\(//\)$' \| \
7283 X"$file" : 'X\(/\)' \| \
7284 . : '\(.\)' 2>/dev/null ||
7285 echo X"$file" |
7286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7287 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7288 /^X\(\/\/\)$/{ s//\1/; q; }
7289 /^X\(\/\).*/{ s//\1/; q; }
7290 s/.*/./; q'`
7291 { if $as_mkdir_p; then
7292 mkdir -p $dirpart/$fdir
7293 else
7294 as_dir=$dirpart/$fdir
7295 as_dirs=
7296 while test ! -d "$as_dir"; do
7297 as_dirs="$as_dir $as_dirs"
7298 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7299 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7300 X"$as_dir" : 'X\(//\)[^/]' \| \
7301 X"$as_dir" : 'X\(//\)$' \| \
7302 X"$as_dir" : 'X\(/\)' \| \
7303 . : '\(.\)' 2>/dev/null ||
7304 echo X"$as_dir" |
7305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7306 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7307 /^X\(\/\/\)$/{ s//\1/; q; }
7308 /^X\(\/\).*/{ s//\1/; q; }
7309 s/.*/./; q'`
7310 done
7311 test ! -n "$as_dirs" || mkdir $as_dirs
7312 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
7313 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
7314 { (exit 1); exit 1; }; }; }
7316 # echo "creating $dirpart/$file"
7317 echo '# dummy' > "$dirpart/$file"
7318 done
7319 done
7321 esac
7322 done
7323 _ACEOF
7325 cat >>$CONFIG_STATUS <<\_ACEOF
7327 { (exit 0); exit 0; }
7328 _ACEOF
7329 chmod +x $CONFIG_STATUS
7330 ac_clean_files=$ac_clean_files_save
7333 # configure is writing to config.log, and then calls config.status.
7334 # config.status does its own redirection, appending to config.log.
7335 # Unfortunately, on DOS this fails, as config.log is still kept open
7336 # by configure, so config.status won't be able to write to it; its
7337 # output is simply discarded. So we exec the FD to /dev/null,
7338 # effectively closing config.log, so it can be properly (re)opened and
7339 # appended to by config.status. When coming back to configure, we
7340 # need to make the FD available again.
7341 if test "$no_create" != yes; then
7342 ac_cs_success=:
7343 ac_config_status_args=
7344 test "$silent" = yes &&
7345 ac_config_status_args="$ac_config_status_args --quiet"
7346 exec 5>/dev/null
7347 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7348 exec 5>>config.log
7349 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7350 # would make configure fail if this is the last instruction.
7351 $ac_cs_success || { (exit 1); exit 1; }