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