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