comparison configure @ 43:2842f50feb55 noffle

[svn] * client.c, client.h, common.h, config.c, config.h, content.c, content.h, control.c, control.h, database.c, database.h, dynamicstring.c, dynamicstring.h, fetch.c, fetch.h, fetchlist.c, fetchlist.h, group.c, group.h, itemlist.c, itemlist.h, lock.c, lock.h, log.c, log.h, noffle.c, online.c, online.h, outgoing.c, outgoing.h, over.c, over.h, post.c, post.h, protocol.c, protocol.h, pseudo.c, pseudo.h, request.c, request.h, server.c, server.h, util.c, util.h, wildmat.c, wildmat.h: Moved files to the subdirectory src/ * Makefile.am, acconfig.h, configure.in, docs/Makefile.am, src/Makefile.am, Makefile.in, aclocal.m4, config.h.in, configure, install-sh, missing, mkinstalldirs, stamp-h.in, docs/Makefile.in, src/Makefile.in: Added files. They are used by aclocal, autoheader, autoconf and automake. * src/config.c, src/config.h: Renamed to configfile.c and configfile.h, because configure will generate a config.h file itself. * src/client.c, src/content.c, src/database.c, src/fetch.c, src/fetchlist.c, src/group.c, src/lock.c, src/noffle.c, src/online.c, src/outgoing.c, src/over.c, src/pseudo.c, src/request.c, src/server.c, src/util.c: Changed '#include "config.h"' to '#include "configfile.h"'. * src/client.c, src/content.c, src/database.c, src/fetch.c, src/fetchlist.c, src/group.c, src/lock.c, src/online.c, src/outgoing.c, src/post.c, src/protocol.c, src/request.c, src/server.c: Files now #include <config.h>. Added missing <stdio.h>. This removes the warnings about snprintf() not being declared. * Makefile: Removed. This is now generated by configure.
author uh1763
date Fri, 05 May 2000 22:45:56 +0100
parents
children 32ba1198c6fa
comparison
equal deleted inserted replaced
42:2467ff423c15 43:2842f50feb55
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15
16 NOFFLE options:
17 --enable-debug turn on debugging (default=yes)"
18 ac_help="$ac_help
19 --with-docdir=PATH specify where to put the documentation
20 "
21
22 # Initialize some variables set by options.
23 # The variables have the same names as the options, with
24 # dashes changed to underlines.
25 build=NONE
26 cache_file=./config.cache
27 exec_prefix=NONE
28 host=NONE
29 no_create=
30 nonopt=NONE
31 no_recursion=
32 prefix=NONE
33 program_prefix=NONE
34 program_suffix=NONE
35 program_transform_name=s,x,x,
36 silent=
37 site=
38 srcdir=
39 target=NONE
40 verbose=
41 x_includes=NONE
42 x_libraries=NONE
43 bindir='${exec_prefix}/bin'
44 sbindir='${exec_prefix}/sbin'
45 libexecdir='${exec_prefix}/libexec'
46 datadir='${prefix}/share'
47 sysconfdir='${prefix}/etc'
48 sharedstatedir='${prefix}/com'
49 localstatedir='${prefix}/var'
50 libdir='${exec_prefix}/lib'
51 includedir='${prefix}/include'
52 oldincludedir='/usr/include'
53 infodir='${prefix}/info'
54 mandir='${prefix}/man'
55
56 # Initialize some other variables.
57 subdirs=
58 MFLAGS= MAKEFLAGS=
59 SHELL=${CONFIG_SHELL-/bin/sh}
60 # Maximum number of lines to put in a shell here document.
61 ac_max_here_lines=12
62
63 ac_prev=
64 for ac_option
65 do
66
67 # If the previous option needs an argument, assign it.
68 if test -n "$ac_prev"; then
69 eval "$ac_prev=\$ac_option"
70 ac_prev=
71 continue
72 fi
73
74 case "$ac_option" in
75 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
76 *) ac_optarg= ;;
77 esac
78
79 # Accept the important Cygnus configure options, so we can diagnose typos.
80
81 case "$ac_option" in
82
83 -bindir | --bindir | --bindi | --bind | --bin | --bi)
84 ac_prev=bindir ;;
85 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
86 bindir="$ac_optarg" ;;
87
88 -build | --build | --buil | --bui | --bu)
89 ac_prev=build ;;
90 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
91 build="$ac_optarg" ;;
92
93 -cache-file | --cache-file | --cache-fil | --cache-fi \
94 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
95 ac_prev=cache_file ;;
96 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
97 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
98 cache_file="$ac_optarg" ;;
99
100 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
101 ac_prev=datadir ;;
102 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
103 | --da=*)
104 datadir="$ac_optarg" ;;
105
106 -disable-* | --disable-*)
107 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
108 # Reject names that are not valid shell variable names.
109 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
110 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
111 fi
112 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
113 eval "enable_${ac_feature}=no" ;;
114
115 -enable-* | --enable-*)
116 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
117 # Reject names that are not valid shell variable names.
118 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
119 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
120 fi
121 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
122 case "$ac_option" in
123 *=*) ;;
124 *) ac_optarg=yes ;;
125 esac
126 eval "enable_${ac_feature}='$ac_optarg'" ;;
127
128 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
129 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
130 | --exec | --exe | --ex)
131 ac_prev=exec_prefix ;;
132 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
133 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
134 | --exec=* | --exe=* | --ex=*)
135 exec_prefix="$ac_optarg" ;;
136
137 -gas | --gas | --ga | --g)
138 # Obsolete; use --with-gas.
139 with_gas=yes ;;
140
141 -help | --help | --hel | --he)
142 # Omit some internal or obsolete options to make the list less imposing.
143 # This message is too long to be a string in the A/UX 3.1 sh.
144 cat << EOF
145 Usage: configure [options] [host]
146 Options: [defaults in brackets after descriptions]
147 Configuration:
148 --cache-file=FILE cache test results in FILE
149 --help print this message
150 --no-create do not create output files
151 --quiet, --silent do not print \`checking...' messages
152 --version print the version of autoconf that created configure
153 Directory and file names:
154 --prefix=PREFIX install architecture-independent files in PREFIX
155 [$ac_default_prefix]
156 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
157 [same as prefix]
158 --bindir=DIR user executables in DIR [EPREFIX/bin]
159 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
160 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
161 --datadir=DIR read-only architecture-independent data in DIR
162 [PREFIX/share]
163 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
164 --sharedstatedir=DIR modifiable architecture-independent data in DIR
165 [PREFIX/com]
166 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
167 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
168 --includedir=DIR C header files in DIR [PREFIX/include]
169 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
170 --infodir=DIR info documentation in DIR [PREFIX/info]
171 --mandir=DIR man documentation in DIR [PREFIX/man]
172 --srcdir=DIR find the sources in DIR [configure dir or ..]
173 --program-prefix=PREFIX prepend PREFIX to installed program names
174 --program-suffix=SUFFIX append SUFFIX to installed program names
175 --program-transform-name=PROGRAM
176 run sed PROGRAM on installed program names
177 EOF
178 cat << EOF
179 Host type:
180 --build=BUILD configure for building on BUILD [BUILD=HOST]
181 --host=HOST configure for HOST [guessed]
182 --target=TARGET configure for TARGET [TARGET=HOST]
183 Features and packages:
184 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
185 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
186 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
187 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
188 --x-includes=DIR X include files are in DIR
189 --x-libraries=DIR X library files are in DIR
190 EOF
191 if test -n "$ac_help"; then
192 echo "--enable and --with options recognized:$ac_help"
193 fi
194 exit 0 ;;
195
196 -host | --host | --hos | --ho)
197 ac_prev=host ;;
198 -host=* | --host=* | --hos=* | --ho=*)
199 host="$ac_optarg" ;;
200
201 -includedir | --includedir | --includedi | --included | --include \
202 | --includ | --inclu | --incl | --inc)
203 ac_prev=includedir ;;
204 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
205 | --includ=* | --inclu=* | --incl=* | --inc=*)
206 includedir="$ac_optarg" ;;
207
208 -infodir | --infodir | --infodi | --infod | --info | --inf)
209 ac_prev=infodir ;;
210 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
211 infodir="$ac_optarg" ;;
212
213 -libdir | --libdir | --libdi | --libd)
214 ac_prev=libdir ;;
215 -libdir=* | --libdir=* | --libdi=* | --libd=*)
216 libdir="$ac_optarg" ;;
217
218 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
219 | --libexe | --libex | --libe)
220 ac_prev=libexecdir ;;
221 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
222 | --libexe=* | --libex=* | --libe=*)
223 libexecdir="$ac_optarg" ;;
224
225 -localstatedir | --localstatedir | --localstatedi | --localstated \
226 | --localstate | --localstat | --localsta | --localst \
227 | --locals | --local | --loca | --loc | --lo)
228 ac_prev=localstatedir ;;
229 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
230 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
231 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
232 localstatedir="$ac_optarg" ;;
233
234 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
235 ac_prev=mandir ;;
236 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
237 mandir="$ac_optarg" ;;
238
239 -nfp | --nfp | --nf)
240 # Obsolete; use --without-fp.
241 with_fp=no ;;
242
243 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
244 | --no-cr | --no-c)
245 no_create=yes ;;
246
247 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
248 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
249 no_recursion=yes ;;
250
251 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
252 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
253 | --oldin | --oldi | --old | --ol | --o)
254 ac_prev=oldincludedir ;;
255 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
256 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
257 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
258 oldincludedir="$ac_optarg" ;;
259
260 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
261 ac_prev=prefix ;;
262 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
263 prefix="$ac_optarg" ;;
264
265 -program-prefix | --program-prefix | --program-prefi | --program-pref \
266 | --program-pre | --program-pr | --program-p)
267 ac_prev=program_prefix ;;
268 -program-prefix=* | --program-prefix=* | --program-prefi=* \
269 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
270 program_prefix="$ac_optarg" ;;
271
272 -program-suffix | --program-suffix | --program-suffi | --program-suff \
273 | --program-suf | --program-su | --program-s)
274 ac_prev=program_suffix ;;
275 -program-suffix=* | --program-suffix=* | --program-suffi=* \
276 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
277 program_suffix="$ac_optarg" ;;
278
279 -program-transform-name | --program-transform-name \
280 | --program-transform-nam | --program-transform-na \
281 | --program-transform-n | --program-transform- \
282 | --program-transform | --program-transfor \
283 | --program-transfo | --program-transf \
284 | --program-trans | --program-tran \
285 | --progr-tra | --program-tr | --program-t)
286 ac_prev=program_transform_name ;;
287 -program-transform-name=* | --program-transform-name=* \
288 | --program-transform-nam=* | --program-transform-na=* \
289 | --program-transform-n=* | --program-transform-=* \
290 | --program-transform=* | --program-transfor=* \
291 | --program-transfo=* | --program-transf=* \
292 | --program-trans=* | --program-tran=* \
293 | --progr-tra=* | --program-tr=* | --program-t=*)
294 program_transform_name="$ac_optarg" ;;
295
296 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
297 | -silent | --silent | --silen | --sile | --sil)
298 silent=yes ;;
299
300 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
301 ac_prev=sbindir ;;
302 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
303 | --sbi=* | --sb=*)
304 sbindir="$ac_optarg" ;;
305
306 -sharedstatedir | --sharedstatedir | --sharedstatedi \
307 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
308 | --sharedst | --shareds | --shared | --share | --shar \
309 | --sha | --sh)
310 ac_prev=sharedstatedir ;;
311 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
312 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
313 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
314 | --sha=* | --sh=*)
315 sharedstatedir="$ac_optarg" ;;
316
317 -site | --site | --sit)
318 ac_prev=site ;;
319 -site=* | --site=* | --sit=*)
320 site="$ac_optarg" ;;
321
322 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
323 ac_prev=srcdir ;;
324 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
325 srcdir="$ac_optarg" ;;
326
327 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
328 | --syscon | --sysco | --sysc | --sys | --sy)
329 ac_prev=sysconfdir ;;
330 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
331 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
332 sysconfdir="$ac_optarg" ;;
333
334 -target | --target | --targe | --targ | --tar | --ta | --t)
335 ac_prev=target ;;
336 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
337 target="$ac_optarg" ;;
338
339 -v | -verbose | --verbose | --verbos | --verbo | --verb)
340 verbose=yes ;;
341
342 -version | --version | --versio | --versi | --vers)
343 echo "configure generated by autoconf version 2.13"
344 exit 0 ;;
345
346 -with-* | --with-*)
347 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
348 # Reject names that are not valid shell variable names.
349 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
350 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
351 fi
352 ac_package=`echo $ac_package| sed 's/-/_/g'`
353 case "$ac_option" in
354 *=*) ;;
355 *) ac_optarg=yes ;;
356 esac
357 eval "with_${ac_package}='$ac_optarg'" ;;
358
359 -without-* | --without-*)
360 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
361 # Reject names that are not valid shell variable names.
362 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
363 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364 fi
365 ac_package=`echo $ac_package| sed 's/-/_/g'`
366 eval "with_${ac_package}=no" ;;
367
368 --x)
369 # Obsolete; use --with-x.
370 with_x=yes ;;
371
372 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
373 | --x-incl | --x-inc | --x-in | --x-i)
374 ac_prev=x_includes ;;
375 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
376 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
377 x_includes="$ac_optarg" ;;
378
379 -x-libraries | --x-libraries | --x-librarie | --x-librari \
380 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
381 ac_prev=x_libraries ;;
382 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
383 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
384 x_libraries="$ac_optarg" ;;
385
386 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
387 ;;
388
389 *)
390 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
391 echo "configure: warning: $ac_option: invalid host type" 1>&2
392 fi
393 if test "x$nonopt" != xNONE; then
394 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
395 fi
396 nonopt="$ac_option"
397 ;;
398
399 esac
400 done
401
402 if test -n "$ac_prev"; then
403 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
404 fi
405
406 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
407
408 # File descriptor usage:
409 # 0 standard input
410 # 1 file creation
411 # 2 errors and warnings
412 # 3 some systems may open it to /dev/tty
413 # 4 used on the Kubota Titan
414 # 6 checking for... messages and results
415 # 5 compiler messages saved in config.log
416 if test "$silent" = yes; then
417 exec 6>/dev/null
418 else
419 exec 6>&1
420 fi
421 exec 5>./config.log
422
423 echo "\
424 This file contains any messages produced by compilers while
425 running configure, to aid debugging if configure makes a mistake.
426 " 1>&5
427
428 # Strip out --no-create and --no-recursion so they do not pile up.
429 # Also quote any args containing shell metacharacters.
430 ac_configure_args=
431 for ac_arg
432 do
433 case "$ac_arg" in
434 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
435 | --no-cr | --no-c) ;;
436 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
437 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
438 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
439 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
440 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
441 esac
442 done
443
444 # NLS nuisances.
445 # Only set these to C if already set. These must not be set unconditionally
446 # because not all systems understand e.g. LANG=C (notably SCO).
447 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
448 # Non-C LC_CTYPE values break the ctype check.
449 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
450 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
451 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
452 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
453
454 # confdefs.h avoids OS command line length limits that DEFS can exceed.
455 rm -rf conftest* confdefs.h
456 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
457 echo > confdefs.h
458
459 # A filename unique to this package, relative to the directory that
460 # configure is in, which we can look for to find out if srcdir is correct.
461 ac_unique_file=src/noffle.c
462
463 # Find the source files, if location was not specified.
464 if test -z "$srcdir"; then
465 ac_srcdir_defaulted=yes
466 # Try the directory containing this script, then its parent.
467 ac_prog=$0
468 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
469 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
470 srcdir=$ac_confdir
471 if test ! -r $srcdir/$ac_unique_file; then
472 srcdir=..
473 fi
474 else
475 ac_srcdir_defaulted=no
476 fi
477 if test ! -r $srcdir/$ac_unique_file; then
478 if test "$ac_srcdir_defaulted" = yes; then
479 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
480 else
481 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
482 fi
483 fi
484 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
485
486 # Prefer explicitly selected file to automatically selected ones.
487 if test -z "$CONFIG_SITE"; then
488 if test "x$prefix" != xNONE; then
489 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
490 else
491 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
492 fi
493 fi
494 for ac_site_file in $CONFIG_SITE; do
495 if test -r "$ac_site_file"; then
496 echo "loading site script $ac_site_file"
497 . "$ac_site_file"
498 fi
499 done
500
501 if test -r "$cache_file"; then
502 echo "loading cache $cache_file"
503 . $cache_file
504 else
505 echo "creating cache $cache_file"
506 > $cache_file
507 fi
508
509 ac_ext=c
510 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
511 ac_cpp='$CPP $CPPFLAGS'
512 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
513 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
514 cross_compiling=$ac_cv_prog_cc_cross
515
516 ac_exeext=
517 ac_objext=o
518 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
519 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
520 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
521 ac_n= ac_c='
522 ' ac_t=' '
523 else
524 ac_n=-n ac_c= ac_t=
525 fi
526 else
527 ac_n= ac_c='\c' ac_t=
528 fi
529
530
531
532
533
534 PACKAGE=noffle
535 VERSION=1.0pre6
536
537
538
539
540 ac_aux_dir=
541 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
542 if test -f $ac_dir/install-sh; then
543 ac_aux_dir=$ac_dir
544 ac_install_sh="$ac_aux_dir/install-sh -c"
545 break
546 elif test -f $ac_dir/install.sh; then
547 ac_aux_dir=$ac_dir
548 ac_install_sh="$ac_aux_dir/install.sh -c"
549 break
550 fi
551 done
552 if test -z "$ac_aux_dir"; then
553 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
554 fi
555 ac_config_guess=$ac_aux_dir/config.guess
556 ac_config_sub=$ac_aux_dir/config.sub
557 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
558
559 # Find a good install program. We prefer a C program (faster),
560 # so one script is as good as another. But avoid the broken or
561 # incompatible versions:
562 # SysV /etc/install, /usr/sbin/install
563 # SunOS /usr/etc/install
564 # IRIX /sbin/install
565 # AIX /bin/install
566 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
567 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
568 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
569 # ./install, which can be erroneously created by make from ./install.sh.
570 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
571 echo "configure:572: checking for a BSD compatible install" >&5
572 if test -z "$INSTALL"; then
573 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
574 echo $ac_n "(cached) $ac_c" 1>&6
575 else
576 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
577 for ac_dir in $PATH; do
578 # Account for people who put trailing slashes in PATH elements.
579 case "$ac_dir/" in
580 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
581 *)
582 # OSF1 and SCO ODT 3.0 have their own names for install.
583 # Don't use installbsd from OSF since it installs stuff as root
584 # by default.
585 for ac_prog in ginstall scoinst install; do
586 if test -f $ac_dir/$ac_prog; then
587 if test $ac_prog = install &&
588 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
589 # AIX install. It has an incompatible calling convention.
590 :
591 else
592 ac_cv_path_install="$ac_dir/$ac_prog -c"
593 break 2
594 fi
595 fi
596 done
597 ;;
598 esac
599 done
600 IFS="$ac_save_IFS"
601
602 fi
603 if test "${ac_cv_path_install+set}" = set; then
604 INSTALL="$ac_cv_path_install"
605 else
606 # As a last resort, use the slow shell script. We don't cache a
607 # path for INSTALL within a source directory, because that will
608 # break other packages using the cache if that directory is
609 # removed, or if the path is relative.
610 INSTALL="$ac_install_sh"
611 fi
612 fi
613 echo "$ac_t""$INSTALL" 1>&6
614
615 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
616 # It thinks the first close brace ends the variable substitution.
617 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
618
619 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
620
621 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
622
623 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
624 echo "configure:625: checking whether build environment is sane" >&5
625 # Just in case
626 sleep 1
627 echo timestamp > conftestfile
628 # Do `set' in a subshell so we don't clobber the current shell's
629 # arguments. Must try -L first in case configure is actually a
630 # symlink; some systems play weird games with the mod time of symlinks
631 # (eg FreeBSD returns the mod time of the symlink's containing
632 # directory).
633 if (
634 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
635 if test "$*" = "X"; then
636 # -L didn't work.
637 set X `ls -t $srcdir/configure conftestfile`
638 fi
639 if test "$*" != "X $srcdir/configure conftestfile" \
640 && test "$*" != "X conftestfile $srcdir/configure"; then
641
642 # If neither matched, then we have a broken ls. This can happen
643 # if, for instance, CONFIG_SHELL is bash and it inherits a
644 # broken ls alias from the environment. This has actually
645 # happened. Such a system could not be considered "sane".
646 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
647 alias in your environment" 1>&2; exit 1; }
648 fi
649
650 test "$2" = conftestfile
651 )
652 then
653 # Ok.
654 :
655 else
656 { echo "configure: error: newly created file is older than distributed files!
657 Check your system clock" 1>&2; exit 1; }
658 fi
659 rm -f conftest*
660 echo "$ac_t""yes" 1>&6
661 if test "$program_transform_name" = s,x,x,; then
662 program_transform_name=
663 else
664 # Double any \ or $. echo might interpret backslashes.
665 cat <<\EOF_SED > conftestsed
666 s,\\,\\\\,g; s,\$,$$,g
667 EOF_SED
668 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
669 rm -f conftestsed
670 fi
671 test "$program_prefix" != NONE &&
672 program_transform_name="s,^,${program_prefix},; $program_transform_name"
673 # Use a double $ so make ignores it.
674 test "$program_suffix" != NONE &&
675 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
676
677 # sed with no file args requires a program.
678 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
679
680 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
681 echo "configure:682: checking whether ${MAKE-make} sets \${MAKE}" >&5
682 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
683 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
684 echo $ac_n "(cached) $ac_c" 1>&6
685 else
686 cat > conftestmake <<\EOF
687 all:
688 @echo 'ac_maketemp="${MAKE}"'
689 EOF
690 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
691 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
692 if test -n "$ac_maketemp"; then
693 eval ac_cv_prog_make_${ac_make}_set=yes
694 else
695 eval ac_cv_prog_make_${ac_make}_set=no
696 fi
697 rm -f conftestmake
698 fi
699 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
700 echo "$ac_t""yes" 1>&6
701 SET_MAKE=
702 else
703 echo "$ac_t""no" 1>&6
704 SET_MAKE="MAKE=${MAKE-make}"
705 fi
706
707
708 PACKAGE=$PACKAGE
709
710 VERSION=$VERSION
711
712 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
713 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
714 fi
715 cat >> confdefs.h <<EOF
716 #define PACKAGE "$PACKAGE"
717 EOF
718
719 cat >> confdefs.h <<EOF
720 #define VERSION "$VERSION"
721 EOF
722
723
724
725 missing_dir=`cd $ac_aux_dir && pwd`
726 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
727 echo "configure:728: checking for working aclocal" >&5
728 # Run test in a subshell; some versions of sh will print an error if
729 # an executable is not found, even if stderr is redirected.
730 # Redirect stdin to placate older versions of autoconf. Sigh.
731 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
732 ACLOCAL=aclocal
733 echo "$ac_t""found" 1>&6
734 else
735 ACLOCAL="$missing_dir/missing aclocal"
736 echo "$ac_t""missing" 1>&6
737 fi
738
739 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
740 echo "configure:741: checking for working autoconf" >&5
741 # Run test in a subshell; some versions of sh will print an error if
742 # an executable is not found, even if stderr is redirected.
743 # Redirect stdin to placate older versions of autoconf. Sigh.
744 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
745 AUTOCONF=autoconf
746 echo "$ac_t""found" 1>&6
747 else
748 AUTOCONF="$missing_dir/missing autoconf"
749 echo "$ac_t""missing" 1>&6
750 fi
751
752 echo $ac_n "checking for working automake""... $ac_c" 1>&6
753 echo "configure:754: checking for working automake" >&5
754 # Run test in a subshell; some versions of sh will print an error if
755 # an executable is not found, even if stderr is redirected.
756 # Redirect stdin to placate older versions of autoconf. Sigh.
757 if (automake --version) < /dev/null > /dev/null 2>&1; then
758 AUTOMAKE=automake
759 echo "$ac_t""found" 1>&6
760 else
761 AUTOMAKE="$missing_dir/missing automake"
762 echo "$ac_t""missing" 1>&6
763 fi
764
765 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
766 echo "configure:767: checking for working autoheader" >&5
767 # Run test in a subshell; some versions of sh will print an error if
768 # an executable is not found, even if stderr is redirected.
769 # Redirect stdin to placate older versions of autoconf. Sigh.
770 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
771 AUTOHEADER=autoheader
772 echo "$ac_t""found" 1>&6
773 else
774 AUTOHEADER="$missing_dir/missing autoheader"
775 echo "$ac_t""missing" 1>&6
776 fi
777
778 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
779 echo "configure:780: checking for working makeinfo" >&5
780 # Run test in a subshell; some versions of sh will print an error if
781 # an executable is not found, even if stderr is redirected.
782 # Redirect stdin to placate older versions of autoconf. Sigh.
783 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
784 MAKEINFO=makeinfo
785 echo "$ac_t""found" 1>&6
786 else
787 MAKEINFO="$missing_dir/missing makeinfo"
788 echo "$ac_t""missing" 1>&6
789 fi
790
791
792
793
794 cat >> confdefs.h <<\EOF
795 #define _GNU_SOURCE 1
796 EOF
797
798
799 ac_ext=c
800 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
801 ac_cpp='$CPP $CPPFLAGS'
802 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
803 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
804 cross_compiling=$ac_cv_prog_cc_cross
805
806
807
808
809 # Extract the first word of "gcc", so it can be a program name with args.
810 set dummy gcc; ac_word=$2
811 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
812 echo "configure:813: checking for $ac_word" >&5
813 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
814 echo $ac_n "(cached) $ac_c" 1>&6
815 else
816 if test -n "$CC"; then
817 ac_cv_prog_CC="$CC" # Let the user override the test.
818 else
819 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
820 ac_dummy="$PATH"
821 for ac_dir in $ac_dummy; do
822 test -z "$ac_dir" && ac_dir=.
823 if test -f $ac_dir/$ac_word; then
824 ac_cv_prog_CC="gcc"
825 break
826 fi
827 done
828 IFS="$ac_save_ifs"
829 fi
830 fi
831 CC="$ac_cv_prog_CC"
832 if test -n "$CC"; then
833 echo "$ac_t""$CC" 1>&6
834 else
835 echo "$ac_t""no" 1>&6
836 fi
837
838 if test -z "$CC"; then
839 # Extract the first word of "cc", so it can be a program name with args.
840 set dummy cc; ac_word=$2
841 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
842 echo "configure:843: checking for $ac_word" >&5
843 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
844 echo $ac_n "(cached) $ac_c" 1>&6
845 else
846 if test -n "$CC"; then
847 ac_cv_prog_CC="$CC" # Let the user override the test.
848 else
849 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
850 ac_prog_rejected=no
851 ac_dummy="$PATH"
852 for ac_dir in $ac_dummy; do
853 test -z "$ac_dir" && ac_dir=.
854 if test -f $ac_dir/$ac_word; then
855 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
856 ac_prog_rejected=yes
857 continue
858 fi
859 ac_cv_prog_CC="cc"
860 break
861 fi
862 done
863 IFS="$ac_save_ifs"
864 if test $ac_prog_rejected = yes; then
865 # We found a bogon in the path, so make sure we never use it.
866 set dummy $ac_cv_prog_CC
867 shift
868 if test $# -gt 0; then
869 # We chose a different compiler from the bogus one.
870 # However, it has the same basename, so the bogon will be chosen
871 # first if we set CC to just the basename; use the full file name.
872 shift
873 set dummy "$ac_dir/$ac_word" "$@"
874 shift
875 ac_cv_prog_CC="$@"
876 fi
877 fi
878 fi
879 fi
880 CC="$ac_cv_prog_CC"
881 if test -n "$CC"; then
882 echo "$ac_t""$CC" 1>&6
883 else
884 echo "$ac_t""no" 1>&6
885 fi
886
887 if test -z "$CC"; then
888 case "`uname -s`" in
889 *win32* | *WIN32*)
890 # Extract the first word of "cl", so it can be a program name with args.
891 set dummy cl; ac_word=$2
892 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
893 echo "configure:894: checking for $ac_word" >&5
894 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
895 echo $ac_n "(cached) $ac_c" 1>&6
896 else
897 if test -n "$CC"; then
898 ac_cv_prog_CC="$CC" # Let the user override the test.
899 else
900 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
901 ac_dummy="$PATH"
902 for ac_dir in $ac_dummy; do
903 test -z "$ac_dir" && ac_dir=.
904 if test -f $ac_dir/$ac_word; then
905 ac_cv_prog_CC="cl"
906 break
907 fi
908 done
909 IFS="$ac_save_ifs"
910 fi
911 fi
912 CC="$ac_cv_prog_CC"
913 if test -n "$CC"; then
914 echo "$ac_t""$CC" 1>&6
915 else
916 echo "$ac_t""no" 1>&6
917 fi
918 ;;
919 esac
920 fi
921 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
922 fi
923
924 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
925 echo "configure:926: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
926
927 ac_ext=c
928 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
929 ac_cpp='$CPP $CPPFLAGS'
930 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
931 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
932 cross_compiling=$ac_cv_prog_cc_cross
933
934 cat > conftest.$ac_ext << EOF
935
936 #line 937 "configure"
937 #include "confdefs.h"
938
939 main(){return(0);}
940 EOF
941 if { (eval echo configure:942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
942 ac_cv_prog_cc_works=yes
943 # If we can't run a trivial program, we are probably using a cross compiler.
944 if (./conftest; exit) 2>/dev/null; then
945 ac_cv_prog_cc_cross=no
946 else
947 ac_cv_prog_cc_cross=yes
948 fi
949 else
950 echo "configure: failed program was:" >&5
951 cat conftest.$ac_ext >&5
952 ac_cv_prog_cc_works=no
953 fi
954 rm -fr conftest*
955 ac_ext=c
956 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
957 ac_cpp='$CPP $CPPFLAGS'
958 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
959 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
960 cross_compiling=$ac_cv_prog_cc_cross
961
962 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
963 if test $ac_cv_prog_cc_works = no; then
964 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
965 fi
966 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
967 echo "configure:968: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
968 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
969 cross_compiling=$ac_cv_prog_cc_cross
970
971 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
972 echo "configure:973: checking whether we are using GNU C" >&5
973 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
974 echo $ac_n "(cached) $ac_c" 1>&6
975 else
976 cat > conftest.c <<EOF
977 #ifdef __GNUC__
978 yes;
979 #endif
980 EOF
981 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
982 ac_cv_prog_gcc=yes
983 else
984 ac_cv_prog_gcc=no
985 fi
986 fi
987
988 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
989
990 if test $ac_cv_prog_gcc = yes; then
991 GCC=yes
992 else
993 GCC=
994 fi
995
996 ac_test_CFLAGS="${CFLAGS+set}"
997 ac_save_CFLAGS="$CFLAGS"
998 CFLAGS=
999 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1000 echo "configure:1001: checking whether ${CC-cc} accepts -g" >&5
1001 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1002 echo $ac_n "(cached) $ac_c" 1>&6
1003 else
1004 echo 'void f(){}' > conftest.c
1005 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1006 ac_cv_prog_cc_g=yes
1007 else
1008 ac_cv_prog_cc_g=no
1009 fi
1010 rm -f conftest*
1011
1012 fi
1013
1014 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1015 if test "$ac_test_CFLAGS" = set; then
1016 CFLAGS="$ac_save_CFLAGS"
1017 elif test $ac_cv_prog_cc_g = yes; then
1018 if test "$GCC" = yes; then
1019 CFLAGS="-g -O2"
1020 else
1021 CFLAGS="-g"
1022 fi
1023 else
1024 if test "$GCC" = yes; then
1025 CFLAGS="-O2"
1026 else
1027 CFLAGS=
1028 fi
1029 fi
1030
1031 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1032 echo "configure:1033: checking how to run the C preprocessor" >&5
1033 # On Suns, sometimes $CPP names a directory.
1034 if test -n "$CPP" && test -d "$CPP"; then
1035 CPP=
1036 fi
1037 if test -z "$CPP"; then
1038 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1039 echo $ac_n "(cached) $ac_c" 1>&6
1040 else
1041 # This must be in double quotes, not single quotes, because CPP may get
1042 # substituted into the Makefile and "${CC-cc}" will confuse make.
1043 CPP="${CC-cc} -E"
1044 # On the NeXT, cc -E runs the code through the compiler's parser,
1045 # not just through cpp.
1046 cat > conftest.$ac_ext <<EOF
1047 #line 1048 "configure"
1048 #include "confdefs.h"
1049 #include <assert.h>
1050 Syntax Error
1051 EOF
1052 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1053 { (eval echo configure:1054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1054 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1055 if test -z "$ac_err"; then
1056 :
1057 else
1058 echo "$ac_err" >&5
1059 echo "configure: failed program was:" >&5
1060 cat conftest.$ac_ext >&5
1061 rm -rf conftest*
1062 CPP="${CC-cc} -E -traditional-cpp"
1063 cat > conftest.$ac_ext <<EOF
1064 #line 1065 "configure"
1065 #include "confdefs.h"
1066 #include <assert.h>
1067 Syntax Error
1068 EOF
1069 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1070 { (eval echo configure:1071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1071 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1072 if test -z "$ac_err"; then
1073 :
1074 else
1075 echo "$ac_err" >&5
1076 echo "configure: failed program was:" >&5
1077 cat conftest.$ac_ext >&5
1078 rm -rf conftest*
1079 CPP="${CC-cc} -nologo -E"
1080 cat > conftest.$ac_ext <<EOF
1081 #line 1082 "configure"
1082 #include "confdefs.h"
1083 #include <assert.h>
1084 Syntax Error
1085 EOF
1086 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1087 { (eval echo configure:1088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1088 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1089 if test -z "$ac_err"; then
1090 :
1091 else
1092 echo "$ac_err" >&5
1093 echo "configure: failed program was:" >&5
1094 cat conftest.$ac_ext >&5
1095 rm -rf conftest*
1096 CPP=/lib/cpp
1097 fi
1098 rm -f conftest*
1099 fi
1100 rm -f conftest*
1101 fi
1102 rm -f conftest*
1103 ac_cv_prog_CPP="$CPP"
1104 fi
1105 CPP="$ac_cv_prog_CPP"
1106 else
1107 ac_cv_prog_CPP="$CPP"
1108 fi
1109 echo "$ac_t""$CPP" 1>&6
1110
1111 if test $ac_cv_prog_gcc = yes; then
1112 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1113 echo "configure:1114: checking whether ${CC-cc} needs -traditional" >&5
1114 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1115 echo $ac_n "(cached) $ac_c" 1>&6
1116 else
1117 ac_pattern="Autoconf.*'x'"
1118 cat > conftest.$ac_ext <<EOF
1119 #line 1120 "configure"
1120 #include "confdefs.h"
1121 #include <sgtty.h>
1122 Autoconf TIOCGETP
1123 EOF
1124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1125 egrep "$ac_pattern" >/dev/null 2>&1; then
1126 rm -rf conftest*
1127 ac_cv_prog_gcc_traditional=yes
1128 else
1129 rm -rf conftest*
1130 ac_cv_prog_gcc_traditional=no
1131 fi
1132 rm -f conftest*
1133
1134
1135 if test $ac_cv_prog_gcc_traditional = no; then
1136 cat > conftest.$ac_ext <<EOF
1137 #line 1138 "configure"
1138 #include "confdefs.h"
1139 #include <termio.h>
1140 Autoconf TCGETA
1141 EOF
1142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1143 egrep "$ac_pattern" >/dev/null 2>&1; then
1144 rm -rf conftest*
1145 ac_cv_prog_gcc_traditional=yes
1146 fi
1147 rm -f conftest*
1148
1149 fi
1150 fi
1151
1152 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1153 if test $ac_cv_prog_gcc_traditional = yes; then
1154 CC="$CC -traditional"
1155 fi
1156 fi
1157
1158 # Find a good install program. We prefer a C program (faster),
1159 # so one script is as good as another. But avoid the broken or
1160 # incompatible versions:
1161 # SysV /etc/install, /usr/sbin/install
1162 # SunOS /usr/etc/install
1163 # IRIX /sbin/install
1164 # AIX /bin/install
1165 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1166 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1167 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1168 # ./install, which can be erroneously created by make from ./install.sh.
1169 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1170 echo "configure:1171: checking for a BSD compatible install" >&5
1171 if test -z "$INSTALL"; then
1172 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1173 echo $ac_n "(cached) $ac_c" 1>&6
1174 else
1175 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1176 for ac_dir in $PATH; do
1177 # Account for people who put trailing slashes in PATH elements.
1178 case "$ac_dir/" in
1179 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1180 *)
1181 # OSF1 and SCO ODT 3.0 have their own names for install.
1182 # Don't use installbsd from OSF since it installs stuff as root
1183 # by default.
1184 for ac_prog in ginstall scoinst install; do
1185 if test -f $ac_dir/$ac_prog; then
1186 if test $ac_prog = install &&
1187 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1188 # AIX install. It has an incompatible calling convention.
1189 :
1190 else
1191 ac_cv_path_install="$ac_dir/$ac_prog -c"
1192 break 2
1193 fi
1194 fi
1195 done
1196 ;;
1197 esac
1198 done
1199 IFS="$ac_save_IFS"
1200
1201 fi
1202 if test "${ac_cv_path_install+set}" = set; then
1203 INSTALL="$ac_cv_path_install"
1204 else
1205 # As a last resort, use the slow shell script. We don't cache a
1206 # path for INSTALL within a source directory, because that will
1207 # break other packages using the cache if that directory is
1208 # removed, or if the path is relative.
1209 INSTALL="$ac_install_sh"
1210 fi
1211 fi
1212 echo "$ac_t""$INSTALL" 1>&6
1213
1214 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1215 # It thinks the first close brace ends the variable substitution.
1216 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1217
1218 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1219
1220 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1221
1222 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1223 echo "configure:1224: checking whether ${MAKE-make} sets \${MAKE}" >&5
1224 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1225 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1226 echo $ac_n "(cached) $ac_c" 1>&6
1227 else
1228 cat > conftestmake <<\EOF
1229 all:
1230 @echo 'ac_maketemp="${MAKE}"'
1231 EOF
1232 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1233 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1234 if test -n "$ac_maketemp"; then
1235 eval ac_cv_prog_make_${ac_make}_set=yes
1236 else
1237 eval ac_cv_prog_make_${ac_make}_set=no
1238 fi
1239 rm -f conftestmake
1240 fi
1241 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1242 echo "$ac_t""yes" 1>&6
1243 SET_MAKE=
1244 else
1245 echo "$ac_t""no" 1>&6
1246 SET_MAKE="MAKE=${MAKE-make}"
1247 fi
1248
1249
1250
1251
1252 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1253 echo "configure:1254: checking for AIX" >&5
1254 cat > conftest.$ac_ext <<EOF
1255 #line 1256 "configure"
1256 #include "confdefs.h"
1257 #ifdef _AIX
1258 yes
1259 #endif
1260
1261 EOF
1262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1263 egrep "yes" >/dev/null 2>&1; then
1264 rm -rf conftest*
1265 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1266 #define _ALL_SOURCE 1
1267 EOF
1268
1269 else
1270 rm -rf conftest*
1271 echo "$ac_t""no" 1>&6
1272 fi
1273 rm -f conftest*
1274
1275
1276 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1277 echo "configure:1278: checking for POSIXized ISC" >&5
1278 if test -d /etc/conf/kconfig.d &&
1279 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1280 then
1281 echo "$ac_t""yes" 1>&6
1282 ISC=yes # If later tests want to check for ISC.
1283 cat >> confdefs.h <<\EOF
1284 #define _POSIX_SOURCE 1
1285 EOF
1286
1287 if test "$GCC" = yes; then
1288 CC="$CC -posix"
1289 else
1290 CC="$CC -Xp"
1291 fi
1292 else
1293 echo "$ac_t""no" 1>&6
1294 ISC=
1295 fi
1296
1297 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1298 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1299 echo "configure:1300: checking for minix/config.h" >&5
1300 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1301 echo $ac_n "(cached) $ac_c" 1>&6
1302 else
1303 cat > conftest.$ac_ext <<EOF
1304 #line 1305 "configure"
1305 #include "confdefs.h"
1306 #include <minix/config.h>
1307 EOF
1308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1309 { (eval echo configure:1310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1310 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1311 if test -z "$ac_err"; then
1312 rm -rf conftest*
1313 eval "ac_cv_header_$ac_safe=yes"
1314 else
1315 echo "$ac_err" >&5
1316 echo "configure: failed program was:" >&5
1317 cat conftest.$ac_ext >&5
1318 rm -rf conftest*
1319 eval "ac_cv_header_$ac_safe=no"
1320 fi
1321 rm -f conftest*
1322 fi
1323 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1324 echo "$ac_t""yes" 1>&6
1325 MINIX=yes
1326 else
1327 echo "$ac_t""no" 1>&6
1328 MINIX=
1329 fi
1330
1331 if test "$MINIX" = yes; then
1332 cat >> confdefs.h <<\EOF
1333 #define _POSIX_SOURCE 1
1334 EOF
1335
1336 cat >> confdefs.h <<\EOF
1337 #define _POSIX_1_SOURCE 2
1338 EOF
1339
1340 cat >> confdefs.h <<\EOF
1341 #define _MINIX 1
1342 EOF
1343
1344 fi
1345
1346
1347
1348
1349 # Whenever both -lsocket and -lnsl are needed, it seems to be always the
1350 # case that gethostbyname requires -lnsl. So, check -lnsl first, for it
1351 # to be in LIBS before the setsockopt checks are performed. *However*,
1352 # on SINIX-N 5.43, this is false, and gethostent seems to be a better
1353 # candidate. So, let's use it below instead of gethostbyname, and see.
1354
1355 # [ This is ripped from GNU tar. ]
1356
1357 echo $ac_n "checking for gethostent""... $ac_c" 1>&6
1358 echo "configure:1359: checking for gethostent" >&5
1359 if eval "test \"`echo '$''{'ac_cv_func_gethostent'+set}'`\" = set"; then
1360 echo $ac_n "(cached) $ac_c" 1>&6
1361 else
1362 cat > conftest.$ac_ext <<EOF
1363 #line 1364 "configure"
1364 #include "confdefs.h"
1365 /* System header to define __stub macros and hopefully few prototypes,
1366 which can conflict with char gethostent(); below. */
1367 #include <assert.h>
1368 /* Override any gcc2 internal prototype to avoid an error. */
1369 /* We use char because int might match the return type of a gcc2
1370 builtin and then its argument prototype would still apply. */
1371 char gethostent();
1372
1373 int main() {
1374
1375 /* The GNU C library defines this for functions which it implements
1376 to always fail with ENOSYS. Some functions are actually named
1377 something starting with __ and the normal name is an alias. */
1378 #if defined (__stub_gethostent) || defined (__stub___gethostent)
1379 choke me
1380 #else
1381 gethostent();
1382 #endif
1383
1384 ; return 0; }
1385 EOF
1386 if { (eval echo configure:1387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1387 rm -rf conftest*
1388 eval "ac_cv_func_gethostent=yes"
1389 else
1390 echo "configure: failed program was:" >&5
1391 cat conftest.$ac_ext >&5
1392 rm -rf conftest*
1393 eval "ac_cv_func_gethostent=no"
1394 fi
1395 rm -f conftest*
1396 fi
1397
1398 if eval "test \"`echo '$ac_cv_func_'gethostent`\" = yes"; then
1399 echo "$ac_t""yes" 1>&6
1400 :
1401 else
1402 echo "$ac_t""no" 1>&6
1403 fi
1404
1405 if test $ac_cv_func_gethostent = no; then
1406 echo $ac_n "checking for gethostent in -lnsl""... $ac_c" 1>&6
1407 echo "configure:1408: checking for gethostent in -lnsl" >&5
1408 ac_lib_var=`echo nsl'_'gethostent | sed 'y%./+-%__p_%'`
1409 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1410 echo $ac_n "(cached) $ac_c" 1>&6
1411 else
1412 ac_save_LIBS="$LIBS"
1413 LIBS="-lnsl $LIBS"
1414 cat > conftest.$ac_ext <<EOF
1415 #line 1416 "configure"
1416 #include "confdefs.h"
1417 /* Override any gcc2 internal prototype to avoid an error. */
1418 /* We use char because int might match the return type of a gcc2
1419 builtin and then its argument prototype would still apply. */
1420 char gethostent();
1421
1422 int main() {
1423 gethostent()
1424 ; return 0; }
1425 EOF
1426 if { (eval echo configure:1427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1427 rm -rf conftest*
1428 eval "ac_cv_lib_$ac_lib_var=yes"
1429 else
1430 echo "configure: failed program was:" >&5
1431 cat conftest.$ac_ext >&5
1432 rm -rf conftest*
1433 eval "ac_cv_lib_$ac_lib_var=no"
1434 fi
1435 rm -f conftest*
1436 LIBS="$ac_save_LIBS"
1437
1438 fi
1439 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1440 echo "$ac_t""yes" 1>&6
1441 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1442 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1443 cat >> confdefs.h <<EOF
1444 #define $ac_tr_lib 1
1445 EOF
1446
1447 LIBS="-lnsl $LIBS"
1448
1449 else
1450 echo "$ac_t""no" 1>&6
1451 fi
1452
1453 fi
1454 echo $ac_n "checking for setsockopt""... $ac_c" 1>&6
1455 echo "configure:1456: checking for setsockopt" >&5
1456 if eval "test \"`echo '$''{'ac_cv_func_setsockopt'+set}'`\" = set"; then
1457 echo $ac_n "(cached) $ac_c" 1>&6
1458 else
1459 cat > conftest.$ac_ext <<EOF
1460 #line 1461 "configure"
1461 #include "confdefs.h"
1462 /* System header to define __stub macros and hopefully few prototypes,
1463 which can conflict with char setsockopt(); below. */
1464 #include <assert.h>
1465 /* Override any gcc2 internal prototype to avoid an error. */
1466 /* We use char because int might match the return type of a gcc2
1467 builtin and then its argument prototype would still apply. */
1468 char setsockopt();
1469
1470 int main() {
1471
1472 /* The GNU C library defines this for functions which it implements
1473 to always fail with ENOSYS. Some functions are actually named
1474 something starting with __ and the normal name is an alias. */
1475 #if defined (__stub_setsockopt) || defined (__stub___setsockopt)
1476 choke me
1477 #else
1478 setsockopt();
1479 #endif
1480
1481 ; return 0; }
1482 EOF
1483 if { (eval echo configure:1484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1484 rm -rf conftest*
1485 eval "ac_cv_func_setsockopt=yes"
1486 else
1487 echo "configure: failed program was:" >&5
1488 cat conftest.$ac_ext >&5
1489 rm -rf conftest*
1490 eval "ac_cv_func_setsockopt=no"
1491 fi
1492 rm -f conftest*
1493 fi
1494
1495 if eval "test \"`echo '$ac_cv_func_'setsockopt`\" = yes"; then
1496 echo "$ac_t""yes" 1>&6
1497 :
1498 else
1499 echo "$ac_t""no" 1>&6
1500 fi
1501
1502 if test $ac_cv_func_setsockopt = no; then
1503 echo $ac_n "checking for setsockopt in -lsocket""... $ac_c" 1>&6
1504 echo "configure:1505: checking for setsockopt in -lsocket" >&5
1505 ac_lib_var=`echo socket'_'setsockopt | sed 'y%./+-%__p_%'`
1506 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1507 echo $ac_n "(cached) $ac_c" 1>&6
1508 else
1509 ac_save_LIBS="$LIBS"
1510 LIBS="-lsocket $LIBS"
1511 cat > conftest.$ac_ext <<EOF
1512 #line 1513 "configure"
1513 #include "confdefs.h"
1514 /* Override any gcc2 internal prototype to avoid an error. */
1515 /* We use char because int might match the return type of a gcc2
1516 builtin and then its argument prototype would still apply. */
1517 char setsockopt();
1518
1519 int main() {
1520 setsockopt()
1521 ; return 0; }
1522 EOF
1523 if { (eval echo configure:1524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1524 rm -rf conftest*
1525 eval "ac_cv_lib_$ac_lib_var=yes"
1526 else
1527 echo "configure: failed program was:" >&5
1528 cat conftest.$ac_ext >&5
1529 rm -rf conftest*
1530 eval "ac_cv_lib_$ac_lib_var=no"
1531 fi
1532 rm -f conftest*
1533 LIBS="$ac_save_LIBS"
1534
1535 fi
1536 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1537 echo "$ac_t""yes" 1>&6
1538 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1539 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1540 cat >> confdefs.h <<EOF
1541 #define $ac_tr_lib 1
1542 EOF
1543
1544 LIBS="-lsocket $LIBS"
1545
1546 else
1547 echo "$ac_t""no" 1>&6
1548 fi
1549
1550 fi
1551
1552
1553 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
1554 echo "configure:1555: checking for gdbm_open in -lgdbm" >&5
1555 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
1556 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1557 echo $ac_n "(cached) $ac_c" 1>&6
1558 else
1559 ac_save_LIBS="$LIBS"
1560 LIBS="-lgdbm $LIBS"
1561 cat > conftest.$ac_ext <<EOF
1562 #line 1563 "configure"
1563 #include "confdefs.h"
1564 /* Override any gcc2 internal prototype to avoid an error. */
1565 /* We use char because int might match the return type of a gcc2
1566 builtin and then its argument prototype would still apply. */
1567 char gdbm_open();
1568
1569 int main() {
1570 gdbm_open()
1571 ; return 0; }
1572 EOF
1573 if { (eval echo configure:1574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1574 rm -rf conftest*
1575 eval "ac_cv_lib_$ac_lib_var=yes"
1576 else
1577 echo "configure: failed program was:" >&5
1578 cat conftest.$ac_ext >&5
1579 rm -rf conftest*
1580 eval "ac_cv_lib_$ac_lib_var=no"
1581 fi
1582 rm -f conftest*
1583 LIBS="$ac_save_LIBS"
1584
1585 fi
1586 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1587 echo "$ac_t""yes" 1>&6
1588 ac_tr_lib=HAVE_LIB`echo gdbm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1589 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1590 cat >> confdefs.h <<EOF
1591 #define $ac_tr_lib 1
1592 EOF
1593
1594 LIBS="-lgdbm $LIBS"
1595
1596 else
1597 echo "$ac_t""no" 1>&6
1598 fi
1599
1600
1601
1602
1603 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1604 echo "configure:1605: checking for ANSI C header files" >&5
1605 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1606 echo $ac_n "(cached) $ac_c" 1>&6
1607 else
1608 cat > conftest.$ac_ext <<EOF
1609 #line 1610 "configure"
1610 #include "confdefs.h"
1611 #include <stdlib.h>
1612 #include <stdarg.h>
1613 #include <string.h>
1614 #include <float.h>
1615 EOF
1616 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1617 { (eval echo configure:1618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1618 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1619 if test -z "$ac_err"; then
1620 rm -rf conftest*
1621 ac_cv_header_stdc=yes
1622 else
1623 echo "$ac_err" >&5
1624 echo "configure: failed program was:" >&5
1625 cat conftest.$ac_ext >&5
1626 rm -rf conftest*
1627 ac_cv_header_stdc=no
1628 fi
1629 rm -f conftest*
1630
1631 if test $ac_cv_header_stdc = yes; then
1632 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1633 cat > conftest.$ac_ext <<EOF
1634 #line 1635 "configure"
1635 #include "confdefs.h"
1636 #include <string.h>
1637 EOF
1638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1639 egrep "memchr" >/dev/null 2>&1; then
1640 :
1641 else
1642 rm -rf conftest*
1643 ac_cv_header_stdc=no
1644 fi
1645 rm -f conftest*
1646
1647 fi
1648
1649 if test $ac_cv_header_stdc = yes; then
1650 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1651 cat > conftest.$ac_ext <<EOF
1652 #line 1653 "configure"
1653 #include "confdefs.h"
1654 #include <stdlib.h>
1655 EOF
1656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1657 egrep "free" >/dev/null 2>&1; then
1658 :
1659 else
1660 rm -rf conftest*
1661 ac_cv_header_stdc=no
1662 fi
1663 rm -f conftest*
1664
1665 fi
1666
1667 if test $ac_cv_header_stdc = yes; then
1668 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1669 if test "$cross_compiling" = yes; then
1670 :
1671 else
1672 cat > conftest.$ac_ext <<EOF
1673 #line 1674 "configure"
1674 #include "confdefs.h"
1675 #include <ctype.h>
1676 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1677 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1678 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1679 int main () { int i; for (i = 0; i < 256; i++)
1680 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1681 exit (0); }
1682
1683 EOF
1684 if { (eval echo configure:1685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1685 then
1686 :
1687 else
1688 echo "configure: failed program was:" >&5
1689 cat conftest.$ac_ext >&5
1690 rm -fr conftest*
1691 ac_cv_header_stdc=no
1692 fi
1693 rm -fr conftest*
1694 fi
1695
1696 fi
1697 fi
1698
1699 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1700 if test $ac_cv_header_stdc = yes; then
1701 cat >> confdefs.h <<\EOF
1702 #define STDC_HEADERS 1
1703 EOF
1704
1705 fi
1706
1707 ac_header_dirent=no
1708 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1709 do
1710 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1711 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1712 echo "configure:1713: checking for $ac_hdr that defines DIR" >&5
1713 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1714 echo $ac_n "(cached) $ac_c" 1>&6
1715 else
1716 cat > conftest.$ac_ext <<EOF
1717 #line 1718 "configure"
1718 #include "confdefs.h"
1719 #include <sys/types.h>
1720 #include <$ac_hdr>
1721 int main() {
1722 DIR *dirp = 0;
1723 ; return 0; }
1724 EOF
1725 if { (eval echo configure:1726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1726 rm -rf conftest*
1727 eval "ac_cv_header_dirent_$ac_safe=yes"
1728 else
1729 echo "configure: failed program was:" >&5
1730 cat conftest.$ac_ext >&5
1731 rm -rf conftest*
1732 eval "ac_cv_header_dirent_$ac_safe=no"
1733 fi
1734 rm -f conftest*
1735 fi
1736 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1737 echo "$ac_t""yes" 1>&6
1738 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1739 cat >> confdefs.h <<EOF
1740 #define $ac_tr_hdr 1
1741 EOF
1742 ac_header_dirent=$ac_hdr; break
1743 else
1744 echo "$ac_t""no" 1>&6
1745 fi
1746 done
1747 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1748 if test $ac_header_dirent = dirent.h; then
1749 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1750 echo "configure:1751: checking for opendir in -ldir" >&5
1751 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1752 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1753 echo $ac_n "(cached) $ac_c" 1>&6
1754 else
1755 ac_save_LIBS="$LIBS"
1756 LIBS="-ldir $LIBS"
1757 cat > conftest.$ac_ext <<EOF
1758 #line 1759 "configure"
1759 #include "confdefs.h"
1760 /* Override any gcc2 internal prototype to avoid an error. */
1761 /* We use char because int might match the return type of a gcc2
1762 builtin and then its argument prototype would still apply. */
1763 char opendir();
1764
1765 int main() {
1766 opendir()
1767 ; return 0; }
1768 EOF
1769 if { (eval echo configure:1770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1770 rm -rf conftest*
1771 eval "ac_cv_lib_$ac_lib_var=yes"
1772 else
1773 echo "configure: failed program was:" >&5
1774 cat conftest.$ac_ext >&5
1775 rm -rf conftest*
1776 eval "ac_cv_lib_$ac_lib_var=no"
1777 fi
1778 rm -f conftest*
1779 LIBS="$ac_save_LIBS"
1780
1781 fi
1782 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1783 echo "$ac_t""yes" 1>&6
1784 LIBS="$LIBS -ldir"
1785 else
1786 echo "$ac_t""no" 1>&6
1787 fi
1788
1789 else
1790 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1791 echo "configure:1792: checking for opendir in -lx" >&5
1792 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1793 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1794 echo $ac_n "(cached) $ac_c" 1>&6
1795 else
1796 ac_save_LIBS="$LIBS"
1797 LIBS="-lx $LIBS"
1798 cat > conftest.$ac_ext <<EOF
1799 #line 1800 "configure"
1800 #include "confdefs.h"
1801 /* Override any gcc2 internal prototype to avoid an error. */
1802 /* We use char because int might match the return type of a gcc2
1803 builtin and then its argument prototype would still apply. */
1804 char opendir();
1805
1806 int main() {
1807 opendir()
1808 ; return 0; }
1809 EOF
1810 if { (eval echo configure:1811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1811 rm -rf conftest*
1812 eval "ac_cv_lib_$ac_lib_var=yes"
1813 else
1814 echo "configure: failed program was:" >&5
1815 cat conftest.$ac_ext >&5
1816 rm -rf conftest*
1817 eval "ac_cv_lib_$ac_lib_var=no"
1818 fi
1819 rm -f conftest*
1820 LIBS="$ac_save_LIBS"
1821
1822 fi
1823 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1824 echo "$ac_t""yes" 1>&6
1825 LIBS="$LIBS -lx"
1826 else
1827 echo "$ac_t""no" 1>&6
1828 fi
1829
1830 fi
1831
1832 for ac_hdr in gdbm.h syslog.h sys/resource.h sys/utsname.h
1833 do
1834 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1835 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1836 echo "configure:1837: checking for $ac_hdr" >&5
1837 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1839 else
1840 cat > conftest.$ac_ext <<EOF
1841 #line 1842 "configure"
1842 #include "confdefs.h"
1843 #include <$ac_hdr>
1844 EOF
1845 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1846 { (eval echo configure:1847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1847 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1848 if test -z "$ac_err"; then
1849 rm -rf conftest*
1850 eval "ac_cv_header_$ac_safe=yes"
1851 else
1852 echo "$ac_err" >&5
1853 echo "configure: failed program was:" >&5
1854 cat conftest.$ac_ext >&5
1855 rm -rf conftest*
1856 eval "ac_cv_header_$ac_safe=no"
1857 fi
1858 rm -f conftest*
1859 fi
1860 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1861 echo "$ac_t""yes" 1>&6
1862 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1863 cat >> confdefs.h <<EOF
1864 #define $ac_tr_hdr 1
1865 EOF
1866
1867 else
1868 echo "$ac_t""no" 1>&6
1869 fi
1870 done
1871
1872 for ac_hdr in fnmatch.h errno.h getopt.h time.h sys/time.h signal.h
1873 do
1874 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1875 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1876 echo "configure:1877: checking for $ac_hdr" >&5
1877 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1878 echo $ac_n "(cached) $ac_c" 1>&6
1879 else
1880 cat > conftest.$ac_ext <<EOF
1881 #line 1882 "configure"
1882 #include "confdefs.h"
1883 #include <$ac_hdr>
1884 EOF
1885 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1886 { (eval echo configure:1887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1887 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1888 if test -z "$ac_err"; then
1889 rm -rf conftest*
1890 eval "ac_cv_header_$ac_safe=yes"
1891 else
1892 echo "$ac_err" >&5
1893 echo "configure: failed program was:" >&5
1894 cat conftest.$ac_ext >&5
1895 rm -rf conftest*
1896 eval "ac_cv_header_$ac_safe=no"
1897 fi
1898 rm -f conftest*
1899 fi
1900 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1901 echo "$ac_t""yes" 1>&6
1902 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1903 cat >> confdefs.h <<EOF
1904 #define $ac_tr_hdr 1
1905 EOF
1906
1907 else
1908 echo "$ac_t""no" 1>&6
1909 fi
1910 done
1911
1912 for ac_hdr in netdb.h sys/socket.h fcntl.h limits.h unistd.h
1913 do
1914 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1915 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1916 echo "configure:1917: checking for $ac_hdr" >&5
1917 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1918 echo $ac_n "(cached) $ac_c" 1>&6
1919 else
1920 cat > conftest.$ac_ext <<EOF
1921 #line 1922 "configure"
1922 #include "confdefs.h"
1923 #include <$ac_hdr>
1924 EOF
1925 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1926 { (eval echo configure:1927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1927 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1928 if test -z "$ac_err"; then
1929 rm -rf conftest*
1930 eval "ac_cv_header_$ac_safe=yes"
1931 else
1932 echo "$ac_err" >&5
1933 echo "configure: failed program was:" >&5
1934 cat conftest.$ac_ext >&5
1935 rm -rf conftest*
1936 eval "ac_cv_header_$ac_safe=no"
1937 fi
1938 rm -f conftest*
1939 fi
1940 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1941 echo "$ac_t""yes" 1>&6
1942 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1943 cat >> confdefs.h <<EOF
1944 #define $ac_tr_hdr 1
1945 EOF
1946
1947 else
1948 echo "$ac_t""no" 1>&6
1949 fi
1950 done
1951
1952
1953
1954
1955 echo $ac_n "checking for working const""... $ac_c" 1>&6
1956 echo "configure:1957: checking for working const" >&5
1957 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1958 echo $ac_n "(cached) $ac_c" 1>&6
1959 else
1960 cat > conftest.$ac_ext <<EOF
1961 #line 1962 "configure"
1962 #include "confdefs.h"
1963
1964 int main() {
1965
1966 /* Ultrix mips cc rejects this. */
1967 typedef int charset[2]; const charset x;
1968 /* SunOS 4.1.1 cc rejects this. */
1969 char const *const *ccp;
1970 char **p;
1971 /* NEC SVR4.0.2 mips cc rejects this. */
1972 struct point {int x, y;};
1973 static struct point const zero = {0,0};
1974 /* AIX XL C 1.02.0.0 rejects this.
1975 It does not let you subtract one const X* pointer from another in an arm
1976 of an if-expression whose if-part is not a constant expression */
1977 const char *g = "string";
1978 ccp = &g + (g ? g-g : 0);
1979 /* HPUX 7.0 cc rejects these. */
1980 ++ccp;
1981 p = (char**) ccp;
1982 ccp = (char const *const *) p;
1983 { /* SCO 3.2v4 cc rejects this. */
1984 char *t;
1985 char const *s = 0 ? (char *) 0 : (char const *) 0;
1986
1987 *t++ = 0;
1988 }
1989 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1990 int x[] = {25, 17};
1991 const int *foo = &x[0];
1992 ++foo;
1993 }
1994 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1995 typedef const int *iptr;
1996 iptr p = 0;
1997 ++p;
1998 }
1999 { /* AIX XL C 1.02.0.0 rejects this saying
2000 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2001 struct s { int j; const int *ap[3]; };
2002 struct s *b; b->j = 5;
2003 }
2004 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2005 const int foo = 10;
2006 }
2007
2008 ; return 0; }
2009 EOF
2010 if { (eval echo configure:2011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2011 rm -rf conftest*
2012 ac_cv_c_const=yes
2013 else
2014 echo "configure: failed program was:" >&5
2015 cat conftest.$ac_ext >&5
2016 rm -rf conftest*
2017 ac_cv_c_const=no
2018 fi
2019 rm -f conftest*
2020 fi
2021
2022 echo "$ac_t""$ac_cv_c_const" 1>&6
2023 if test $ac_cv_c_const = no; then
2024 cat >> confdefs.h <<\EOF
2025 #define const
2026 EOF
2027
2028 fi
2029
2030 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2031 echo "configure:2032: checking for size_t" >&5
2032 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2033 echo $ac_n "(cached) $ac_c" 1>&6
2034 else
2035 cat > conftest.$ac_ext <<EOF
2036 #line 2037 "configure"
2037 #include "confdefs.h"
2038 #include <sys/types.h>
2039 #if STDC_HEADERS
2040 #include <stdlib.h>
2041 #include <stddef.h>
2042 #endif
2043 EOF
2044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2045 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2046 rm -rf conftest*
2047 ac_cv_type_size_t=yes
2048 else
2049 rm -rf conftest*
2050 ac_cv_type_size_t=no
2051 fi
2052 rm -f conftest*
2053
2054 fi
2055 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2056 if test $ac_cv_type_size_t = no; then
2057 cat >> confdefs.h <<\EOF
2058 #define size_t unsigned
2059 EOF
2060
2061 fi
2062
2063 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2064 echo "configure:2065: checking whether time.h and sys/time.h may both be included" >&5
2065 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2066 echo $ac_n "(cached) $ac_c" 1>&6
2067 else
2068 cat > conftest.$ac_ext <<EOF
2069 #line 2070 "configure"
2070 #include "confdefs.h"
2071 #include <sys/types.h>
2072 #include <sys/time.h>
2073 #include <time.h>
2074 int main() {
2075 struct tm *tp;
2076 ; return 0; }
2077 EOF
2078 if { (eval echo configure:2079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2079 rm -rf conftest*
2080 ac_cv_header_time=yes
2081 else
2082 echo "configure: failed program was:" >&5
2083 cat conftest.$ac_ext >&5
2084 rm -rf conftest*
2085 ac_cv_header_time=no
2086 fi
2087 rm -f conftest*
2088 fi
2089
2090 echo "$ac_t""$ac_cv_header_time" 1>&6
2091 if test $ac_cv_header_time = yes; then
2092 cat >> confdefs.h <<\EOF
2093 #define TIME_WITH_SYS_TIME 1
2094 EOF
2095
2096 fi
2097
2098 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2099 echo "configure:2100: checking whether struct tm is in sys/time.h or time.h" >&5
2100 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2101 echo $ac_n "(cached) $ac_c" 1>&6
2102 else
2103 cat > conftest.$ac_ext <<EOF
2104 #line 2105 "configure"
2105 #include "confdefs.h"
2106 #include <sys/types.h>
2107 #include <time.h>
2108 int main() {
2109 struct tm *tp; tp->tm_sec;
2110 ; return 0; }
2111 EOF
2112 if { (eval echo configure:2113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2113 rm -rf conftest*
2114 ac_cv_struct_tm=time.h
2115 else
2116 echo "configure: failed program was:" >&5
2117 cat conftest.$ac_ext >&5
2118 rm -rf conftest*
2119 ac_cv_struct_tm=sys/time.h
2120 fi
2121 rm -f conftest*
2122 fi
2123
2124 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2125 if test $ac_cv_struct_tm = sys/time.h; then
2126 cat >> confdefs.h <<\EOF
2127 #define TM_IN_SYS_TIME 1
2128 EOF
2129
2130 fi
2131
2132
2133 echo $ac_n "checking socklen_t""... $ac_c" 1>&6
2134 echo "configure:2135: checking socklen_t" >&5
2135 if eval "test \"`echo '$''{'noffle_cv_type_socklen_t'+set}'`\" = set"; then
2136 echo $ac_n "(cached) $ac_c" 1>&6
2137 else
2138 cat > conftest.$ac_ext <<EOF
2139 #line 2140 "configure"
2140 #include "confdefs.h"
2141
2142 #include <sys/types.h>
2143 #include <sys/socket.h>
2144
2145 int main() {
2146 socklen_t s;
2147 ; return 0; }
2148 EOF
2149 if { (eval echo configure:2150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2150 rm -rf conftest*
2151 noffle_cv_type_socklen_t=yes
2152 else
2153 echo "configure: failed program was:" >&5
2154 cat conftest.$ac_ext >&5
2155 rm -rf conftest*
2156 noffle_cv_type_socklen_t=no
2157 fi
2158 rm -f conftest*
2159
2160 fi
2161
2162 echo "$ac_t""$noffle_cv_type_socklen_t" 1>&6
2163
2164 if test "x$noffle_cv_type_socklen_t" = "xno"
2165 then
2166 cat >> confdefs.h <<EOF
2167 #define socklen_t unsigned int
2168 EOF
2169
2170 fi
2171
2172
2173
2174 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2175 echo "configure:2176: checking return type of signal handlers" >&5
2176 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2177 echo $ac_n "(cached) $ac_c" 1>&6
2178 else
2179 cat > conftest.$ac_ext <<EOF
2180 #line 2181 "configure"
2181 #include "confdefs.h"
2182 #include <sys/types.h>
2183 #include <signal.h>
2184 #ifdef signal
2185 #undef signal
2186 #endif
2187 #ifdef __cplusplus
2188 extern "C" void (*signal (int, void (*)(int)))(int);
2189 #else
2190 void (*signal ()) ();
2191 #endif
2192
2193 int main() {
2194 int i;
2195 ; return 0; }
2196 EOF
2197 if { (eval echo configure:2198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2198 rm -rf conftest*
2199 ac_cv_type_signal=void
2200 else
2201 echo "configure: failed program was:" >&5
2202 cat conftest.$ac_ext >&5
2203 rm -rf conftest*
2204 ac_cv_type_signal=int
2205 fi
2206 rm -f conftest*
2207 fi
2208
2209 echo "$ac_t""$ac_cv_type_signal" 1>&6
2210 cat >> confdefs.h <<EOF
2211 #define RETSIGTYPE $ac_cv_type_signal
2212 EOF
2213
2214
2215 echo $ac_n "checking for strftime""... $ac_c" 1>&6
2216 echo "configure:2217: checking for strftime" >&5
2217 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
2218 echo $ac_n "(cached) $ac_c" 1>&6
2219 else
2220 cat > conftest.$ac_ext <<EOF
2221 #line 2222 "configure"
2222 #include "confdefs.h"
2223 /* System header to define __stub macros and hopefully few prototypes,
2224 which can conflict with char strftime(); below. */
2225 #include <assert.h>
2226 /* Override any gcc2 internal prototype to avoid an error. */
2227 /* We use char because int might match the return type of a gcc2
2228 builtin and then its argument prototype would still apply. */
2229 char strftime();
2230
2231 int main() {
2232
2233 /* The GNU C library defines this for functions which it implements
2234 to always fail with ENOSYS. Some functions are actually named
2235 something starting with __ and the normal name is an alias. */
2236 #if defined (__stub_strftime) || defined (__stub___strftime)
2237 choke me
2238 #else
2239 strftime();
2240 #endif
2241
2242 ; return 0; }
2243 EOF
2244 if { (eval echo configure:2245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2245 rm -rf conftest*
2246 eval "ac_cv_func_strftime=yes"
2247 else
2248 echo "configure: failed program was:" >&5
2249 cat conftest.$ac_ext >&5
2250 rm -rf conftest*
2251 eval "ac_cv_func_strftime=no"
2252 fi
2253 rm -f conftest*
2254 fi
2255
2256 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
2257 echo "$ac_t""yes" 1>&6
2258 cat >> confdefs.h <<\EOF
2259 #define HAVE_STRFTIME 1
2260 EOF
2261
2262 else
2263 echo "$ac_t""no" 1>&6
2264 # strftime is in -lintl on SCO UNIX.
2265 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
2266 echo "configure:2267: checking for strftime in -lintl" >&5
2267 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
2268 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2269 echo $ac_n "(cached) $ac_c" 1>&6
2270 else
2271 ac_save_LIBS="$LIBS"
2272 LIBS="-lintl $LIBS"
2273 cat > conftest.$ac_ext <<EOF
2274 #line 2275 "configure"
2275 #include "confdefs.h"
2276 /* Override any gcc2 internal prototype to avoid an error. */
2277 /* We use char because int might match the return type of a gcc2
2278 builtin and then its argument prototype would still apply. */
2279 char strftime();
2280
2281 int main() {
2282 strftime()
2283 ; return 0; }
2284 EOF
2285 if { (eval echo configure:2286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2286 rm -rf conftest*
2287 eval "ac_cv_lib_$ac_lib_var=yes"
2288 else
2289 echo "configure: failed program was:" >&5
2290 cat conftest.$ac_ext >&5
2291 rm -rf conftest*
2292 eval "ac_cv_lib_$ac_lib_var=no"
2293 fi
2294 rm -f conftest*
2295 LIBS="$ac_save_LIBS"
2296
2297 fi
2298 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2299 echo "$ac_t""yes" 1>&6
2300 cat >> confdefs.h <<\EOF
2301 #define HAVE_STRFTIME 1
2302 EOF
2303
2304 LIBS="-lintl $LIBS"
2305 else
2306 echo "$ac_t""no" 1>&6
2307 fi
2308
2309 fi
2310
2311 echo $ac_n "checking for working fnmatch""... $ac_c" 1>&6
2312 echo "configure:2313: checking for working fnmatch" >&5
2313 if eval "test \"`echo '$''{'ac_cv_func_fnmatch_works'+set}'`\" = set"; then
2314 echo $ac_n "(cached) $ac_c" 1>&6
2315 else
2316 # Some versions of Solaris or SCO have a broken fnmatch function.
2317 # So we run a test program. If we are cross-compiling, take no chance.
2318 # Thanks to John Oleynick and Franc,ois Pinard for this test.
2319 if test "$cross_compiling" = yes; then
2320 ac_cv_func_fnmatch_works=no
2321 else
2322 cat > conftest.$ac_ext <<EOF
2323 #line 2324 "configure"
2324 #include "confdefs.h"
2325 main() { exit (fnmatch ("a*", "abc", 0) != 0); }
2326 EOF
2327 if { (eval echo configure:2328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2328 then
2329 ac_cv_func_fnmatch_works=yes
2330 else
2331 echo "configure: failed program was:" >&5
2332 cat conftest.$ac_ext >&5
2333 rm -fr conftest*
2334 ac_cv_func_fnmatch_works=no
2335 fi
2336 rm -fr conftest*
2337 fi
2338
2339 fi
2340
2341 echo "$ac_t""$ac_cv_func_fnmatch_works" 1>&6
2342 if test $ac_cv_func_fnmatch_works = yes; then
2343 cat >> confdefs.h <<\EOF
2344 #define HAVE_FNMATCH 1
2345 EOF
2346
2347 fi
2348
2349 for ac_func in fdopen vsnprintf snprintf __vsnprintf __snprintf
2350 do
2351 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2352 echo "configure:2353: checking for $ac_func" >&5
2353 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2354 echo $ac_n "(cached) $ac_c" 1>&6
2355 else
2356 cat > conftest.$ac_ext <<EOF
2357 #line 2358 "configure"
2358 #include "confdefs.h"
2359 /* System header to define __stub macros and hopefully few prototypes,
2360 which can conflict with char $ac_func(); below. */
2361 #include <assert.h>
2362 /* Override any gcc2 internal prototype to avoid an error. */
2363 /* We use char because int might match the return type of a gcc2
2364 builtin and then its argument prototype would still apply. */
2365 char $ac_func();
2366
2367 int main() {
2368
2369 /* The GNU C library defines this for functions which it implements
2370 to always fail with ENOSYS. Some functions are actually named
2371 something starting with __ and the normal name is an alias. */
2372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2373 choke me
2374 #else
2375 $ac_func();
2376 #endif
2377
2378 ; return 0; }
2379 EOF
2380 if { (eval echo configure:2381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2381 rm -rf conftest*
2382 eval "ac_cv_func_$ac_func=yes"
2383 else
2384 echo "configure: failed program was:" >&5
2385 cat conftest.$ac_ext >&5
2386 rm -rf conftest*
2387 eval "ac_cv_func_$ac_func=no"
2388 fi
2389 rm -f conftest*
2390 fi
2391
2392 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2393 echo "$ac_t""yes" 1>&6
2394 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2395 cat >> confdefs.h <<EOF
2396 #define $ac_tr_func 1
2397 EOF
2398
2399 else
2400 echo "$ac_t""no" 1>&6
2401 fi
2402 done
2403
2404 for ac_func in gethostname mkdir mktime select socket strerror strstr uname
2405 do
2406 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2407 echo "configure:2408: checking for $ac_func" >&5
2408 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2409 echo $ac_n "(cached) $ac_c" 1>&6
2410 else
2411 cat > conftest.$ac_ext <<EOF
2412 #line 2413 "configure"
2413 #include "confdefs.h"
2414 /* System header to define __stub macros and hopefully few prototypes,
2415 which can conflict with char $ac_func(); below. */
2416 #include <assert.h>
2417 /* Override any gcc2 internal prototype to avoid an error. */
2418 /* We use char because int might match the return type of a gcc2
2419 builtin and then its argument prototype would still apply. */
2420 char $ac_func();
2421
2422 int main() {
2423
2424 /* The GNU C library defines this for functions which it implements
2425 to always fail with ENOSYS. Some functions are actually named
2426 something starting with __ and the normal name is an alias. */
2427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2428 choke me
2429 #else
2430 $ac_func();
2431 #endif
2432
2433 ; return 0; }
2434 EOF
2435 if { (eval echo configure:2436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2436 rm -rf conftest*
2437 eval "ac_cv_func_$ac_func=yes"
2438 else
2439 echo "configure: failed program was:" >&5
2440 cat conftest.$ac_ext >&5
2441 rm -rf conftest*
2442 eval "ac_cv_func_$ac_func=no"
2443 fi
2444 rm -f conftest*
2445 fi
2446
2447 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2448 echo "$ac_t""yes" 1>&6
2449 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2450 cat >> confdefs.h <<EOF
2451 #define $ac_tr_func 1
2452 EOF
2453
2454 else
2455 echo "$ac_t""no" 1>&6
2456 fi
2457 done
2458
2459
2460
2461
2462
2463
2464 # Check whether --enable-debug or --disable-debug was given.
2465 if test "${enable_debug+set}" = set; then
2466 enableval="$enable_debug"
2467 :
2468 else
2469 enable_debug=yes
2470 fi
2471
2472
2473 if test "x$enable_debug" = "xyes"
2474 then
2475 CFLAGS="$CFLAGS \
2476 -Wall -O2 -g -pedantic -ansi -W -Wtraditional -Wshadow -Wpointer-arith \
2477 -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion \
2478 -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes \
2479 -Wmissing-declarations -Wnested-externs -Winline \
2480 -D__USE_BSD -D__USE_XOPEN_EXTENDED -D__USE_POSIX -DDEBUG"
2481 fi
2482
2483
2484 # [ This is adapted from mutt. ]
2485 # Check whether --with-docdir or --without-docdir was given.
2486 if test "${with_docdir+set}" = set; then
2487 withval="$with_docdir"
2488 noffle_cv_docdir=$withval
2489 else
2490 echo $ac_n "checking where to put the documentation""... $ac_c" 1>&6
2491 echo "configure:2492: checking where to put the documentation" >&5
2492 if eval "test \"`echo '$''{'noffle_cv_docdir'+set}'`\" = set"; then
2493 echo $ac_n "(cached) $ac_c" 1>&6
2494 else
2495 if test x$prefix = xNONE; then
2496 noffle_cv_prefix=$ac_default_prefix
2497 else
2498 noffle_cv_prefix=$prefix
2499 fi
2500 noffle_cv_docdir=$noffle_cv_prefix/doc/noffle
2501
2502 fi
2503
2504 echo "$ac_t""$noffle_cv_docdir" 1>&6
2505
2506 fi
2507
2508
2509
2510
2511 CONFIGFILE="/etc/noffle.conf"
2512 cat >> confdefs.h <<EOF
2513 #define CONFIGFILE "$CONFIGFILE"
2514 EOF
2515
2516
2517
2518
2519
2520 SPOOLDIR="/var/spool/$PACKAGE"
2521 cat >> confdefs.h <<EOF
2522 #define SPOOLDIR "$SPOOLDIR"
2523 EOF
2524
2525
2526
2527 DOCDIR=$noffle_cv_docdir
2528
2529
2530
2531
2532 trap '' 1 2 15
2533 cat > confcache <<\EOF
2534 # This file is a shell script that caches the results of configure
2535 # tests run on this system so they can be shared between configure
2536 # scripts and configure runs. It is not useful on other systems.
2537 # If it contains results you don't want to keep, you may remove or edit it.
2538 #
2539 # By default, configure uses ./config.cache as the cache file,
2540 # creating it if it does not exist already. You can give configure
2541 # the --cache-file=FILE option to use a different cache file; that is
2542 # what configure does when it calls configure scripts in
2543 # subdirectories, so they share the cache.
2544 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2545 # config.status only pays attention to the cache file if you give it the
2546 # --recheck option to rerun configure.
2547 #
2548 EOF
2549 # The following way of writing the cache mishandles newlines in values,
2550 # but we know of no workaround that is simple, portable, and efficient.
2551 # So, don't put newlines in cache variables' values.
2552 # Ultrix sh set writes to stderr and can't be redirected directly,
2553 # and sets the high bit in the cache file unless we assign to the vars.
2554 (set) 2>&1 |
2555 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2556 *ac_space=\ *)
2557 # `set' does not quote correctly, so add quotes (double-quote substitution
2558 # turns \\\\ into \\, and sed turns \\ into \).
2559 sed -n \
2560 -e "s/'/'\\\\''/g" \
2561 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2562 ;;
2563 *)
2564 # `set' quotes correctly as required by POSIX, so do not add quotes.
2565 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2566 ;;
2567 esac >> confcache
2568 if cmp -s $cache_file confcache; then
2569 :
2570 else
2571 if test -w $cache_file; then
2572 echo "updating cache $cache_file"
2573 cat confcache > $cache_file
2574 else
2575 echo "not updating unwritable cache $cache_file"
2576 fi
2577 fi
2578 rm -f confcache
2579
2580 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2581
2582 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2583 # Let make expand exec_prefix.
2584 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2585
2586 # Any assignment to VPATH causes Sun make to only execute
2587 # the first set of double-colon rules, so remove it if not needed.
2588 # If there is a colon in the path, we need to keep it.
2589 if test "x$srcdir" = x.; then
2590 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2591 fi
2592
2593 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2594
2595 DEFS=-DHAVE_CONFIG_H
2596
2597 # Without the "./", some shells look in PATH for config.status.
2598 : ${CONFIG_STATUS=./config.status}
2599
2600 echo creating $CONFIG_STATUS
2601 rm -f $CONFIG_STATUS
2602 cat > $CONFIG_STATUS <<EOF
2603 #! /bin/sh
2604 # Generated automatically by configure.
2605 # Run this file to recreate the current configuration.
2606 # This directory was configured as follows,
2607 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2608 #
2609 # $0 $ac_configure_args
2610 #
2611 # Compiler output produced by configure, useful for debugging
2612 # configure, is in ./config.log if it exists.
2613
2614 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2615 for ac_option
2616 do
2617 case "\$ac_option" in
2618 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2619 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2620 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2621 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2622 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2623 exit 0 ;;
2624 -help | --help | --hel | --he | --h)
2625 echo "\$ac_cs_usage"; exit 0 ;;
2626 *) echo "\$ac_cs_usage"; exit 1 ;;
2627 esac
2628 done
2629
2630 ac_given_srcdir=$srcdir
2631 ac_given_INSTALL="$INSTALL"
2632
2633 trap 'rm -fr `echo "Makefile src/Makefile docs/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2634 EOF
2635 cat >> $CONFIG_STATUS <<EOF
2636
2637 # Protect against being on the right side of a sed subst in config.status.
2638 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2639 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2640 $ac_vpsub
2641 $extrasub
2642 s%@SHELL@%$SHELL%g
2643 s%@CFLAGS@%$CFLAGS%g
2644 s%@CPPFLAGS@%$CPPFLAGS%g
2645 s%@CXXFLAGS@%$CXXFLAGS%g
2646 s%@FFLAGS@%$FFLAGS%g
2647 s%@DEFS@%$DEFS%g
2648 s%@LDFLAGS@%$LDFLAGS%g
2649 s%@LIBS@%$LIBS%g
2650 s%@exec_prefix@%$exec_prefix%g
2651 s%@prefix@%$prefix%g
2652 s%@program_transform_name@%$program_transform_name%g
2653 s%@bindir@%$bindir%g
2654 s%@sbindir@%$sbindir%g
2655 s%@libexecdir@%$libexecdir%g
2656 s%@datadir@%$datadir%g
2657 s%@sysconfdir@%$sysconfdir%g
2658 s%@sharedstatedir@%$sharedstatedir%g
2659 s%@localstatedir@%$localstatedir%g
2660 s%@libdir@%$libdir%g
2661 s%@includedir@%$includedir%g
2662 s%@oldincludedir@%$oldincludedir%g
2663 s%@infodir@%$infodir%g
2664 s%@mandir@%$mandir%g
2665 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2666 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2667 s%@INSTALL_DATA@%$INSTALL_DATA%g
2668 s%@PACKAGE@%$PACKAGE%g
2669 s%@VERSION@%$VERSION%g
2670 s%@ACLOCAL@%$ACLOCAL%g
2671 s%@AUTOCONF@%$AUTOCONF%g
2672 s%@AUTOMAKE@%$AUTOMAKE%g
2673 s%@AUTOHEADER@%$AUTOHEADER%g
2674 s%@MAKEINFO@%$MAKEINFO%g
2675 s%@SET_MAKE@%$SET_MAKE%g
2676 s%@CC@%$CC%g
2677 s%@CPP@%$CPP%g
2678 s%@CONFIGFILE@%$CONFIGFILE%g
2679 s%@SPOOLDIR@%$SPOOLDIR%g
2680 s%@DOCDIR@%$DOCDIR%g
2681
2682 CEOF
2683 EOF
2684
2685 cat >> $CONFIG_STATUS <<\EOF
2686
2687 # Split the substitutions into bite-sized pieces for seds with
2688 # small command number limits, like on Digital OSF/1 and HP-UX.
2689 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2690 ac_file=1 # Number of current file.
2691 ac_beg=1 # First line for current file.
2692 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2693 ac_more_lines=:
2694 ac_sed_cmds=""
2695 while $ac_more_lines; do
2696 if test $ac_beg -gt 1; then
2697 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2698 else
2699 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2700 fi
2701 if test ! -s conftest.s$ac_file; then
2702 ac_more_lines=false
2703 rm -f conftest.s$ac_file
2704 else
2705 if test -z "$ac_sed_cmds"; then
2706 ac_sed_cmds="sed -f conftest.s$ac_file"
2707 else
2708 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2709 fi
2710 ac_file=`expr $ac_file + 1`
2711 ac_beg=$ac_end
2712 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2713 fi
2714 done
2715 if test -z "$ac_sed_cmds"; then
2716 ac_sed_cmds=cat
2717 fi
2718 EOF
2719
2720 cat >> $CONFIG_STATUS <<EOF
2721
2722 CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile docs/Makefile"}
2723 EOF
2724 cat >> $CONFIG_STATUS <<\EOF
2725 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2726 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2727 case "$ac_file" in
2728 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2729 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2730 *) ac_file_in="${ac_file}.in" ;;
2731 esac
2732
2733 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2734
2735 # Remove last slash and all that follows it. Not all systems have dirname.
2736 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2737 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2738 # The file is in a subdirectory.
2739 test ! -d "$ac_dir" && mkdir "$ac_dir"
2740 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2741 # A "../" for each directory in $ac_dir_suffix.
2742 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2743 else
2744 ac_dir_suffix= ac_dots=
2745 fi
2746
2747 case "$ac_given_srcdir" in
2748 .) srcdir=.
2749 if test -z "$ac_dots"; then top_srcdir=.
2750 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2751 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2752 *) # Relative path.
2753 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2754 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2755 esac
2756
2757 case "$ac_given_INSTALL" in
2758 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2759 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2760 esac
2761
2762 echo creating "$ac_file"
2763 rm -f "$ac_file"
2764 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2765 case "$ac_file" in
2766 *Makefile*) ac_comsub="1i\\
2767 # $configure_input" ;;
2768 *) ac_comsub= ;;
2769 esac
2770
2771 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2772 sed -e "$ac_comsub
2773 s%@configure_input@%$configure_input%g
2774 s%@srcdir@%$srcdir%g
2775 s%@top_srcdir@%$top_srcdir%g
2776 s%@INSTALL@%$INSTALL%g
2777 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2778 fi; done
2779 rm -f conftest.s*
2780
2781 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2782 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2783 #
2784 # ac_d sets the value in "#define NAME VALUE" lines.
2785 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2786 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2787 ac_dC='\3'
2788 ac_dD='%g'
2789 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2790 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2791 ac_uB='\([ ]\)%\1#\2define\3'
2792 ac_uC=' '
2793 ac_uD='\4%g'
2794 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2795 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2796 ac_eB='$%\1#\2define\3'
2797 ac_eC=' '
2798 ac_eD='%g'
2799
2800 if test "${CONFIG_HEADERS+set}" != set; then
2801 EOF
2802 cat >> $CONFIG_STATUS <<EOF
2803 CONFIG_HEADERS="config.h"
2804 EOF
2805 cat >> $CONFIG_STATUS <<\EOF
2806 fi
2807 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2808 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2809 case "$ac_file" in
2810 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2811 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2812 *) ac_file_in="${ac_file}.in" ;;
2813 esac
2814
2815 echo creating $ac_file
2816
2817 rm -f conftest.frag conftest.in conftest.out
2818 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2819 cat $ac_file_inputs > conftest.in
2820
2821 EOF
2822
2823 # Transform confdefs.h into a sed script conftest.vals that substitutes
2824 # the proper values into config.h.in to produce config.h. And first:
2825 # Protect against being on the right side of a sed subst in config.status.
2826 # Protect against being in an unquoted here document in config.status.
2827 rm -f conftest.vals
2828 cat > conftest.hdr <<\EOF
2829 s/[\\&%]/\\&/g
2830 s%[\\$`]%\\&%g
2831 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2832 s%ac_d%ac_u%gp
2833 s%ac_u%ac_e%gp
2834 EOF
2835 sed -n -f conftest.hdr confdefs.h > conftest.vals
2836 rm -f conftest.hdr
2837
2838 # This sed command replaces #undef with comments. This is necessary, for
2839 # example, in the case of _POSIX_SOURCE, which is predefined and required
2840 # on some systems where configure will not decide to define it.
2841 cat >> conftest.vals <<\EOF
2842 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2843 EOF
2844
2845 # Break up conftest.vals because some shells have a limit on
2846 # the size of here documents, and old seds have small limits too.
2847
2848 rm -f conftest.tail
2849 while :
2850 do
2851 ac_lines=`grep -c . conftest.vals`
2852 # grep -c gives empty output for an empty file on some AIX systems.
2853 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2854 # Write a limited-size here document to conftest.frag.
2855 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2856 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2857 echo 'CEOF
2858 sed -f conftest.frag conftest.in > conftest.out
2859 rm -f conftest.in
2860 mv conftest.out conftest.in
2861 ' >> $CONFIG_STATUS
2862 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2863 rm -f conftest.vals
2864 mv conftest.tail conftest.vals
2865 done
2866 rm -f conftest.vals
2867
2868 cat >> $CONFIG_STATUS <<\EOF
2869 rm -f conftest.frag conftest.h
2870 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2871 cat conftest.in >> conftest.h
2872 rm -f conftest.in
2873 if cmp -s $ac_file conftest.h 2>/dev/null; then
2874 echo "$ac_file is unchanged"
2875 rm -f conftest.h
2876 else
2877 # Remove last slash and all that follows it. Not all systems have dirname.
2878 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2879 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2880 # The file is in a subdirectory.
2881 test ! -d "$ac_dir" && mkdir "$ac_dir"
2882 fi
2883 rm -f $ac_file
2884 mv conftest.h $ac_file
2885 fi
2886 fi; done
2887
2888 EOF
2889 cat >> $CONFIG_STATUS <<EOF
2890
2891
2892 EOF
2893 cat >> $CONFIG_STATUS <<\EOF
2894 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2895
2896 exit 0
2897 EOF
2898 chmod +x $CONFIG_STATUS
2899 rm -fr confdefs* $ac_clean_files
2900 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2901
2902