2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.
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.
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
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
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"
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31 # Name of the executable.
32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
34 if expr a : '\(a\)' >/dev/null 2>&1; then
40 rm -f conf$$ conf$$.exe 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
51 elif ln conf$$.file conf$$ 2>/dev/null; then
56 rm -f conf$$ conf$$.exe conf$$.file
58 as_executable_p="test -f"
60 # Support unset when possible.
61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
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; }
78 # We need space, tab and new line, in precisely that order.
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
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`
96 ac_default_prefix=/usr/local
100 SHELL=${CONFIG_SHELL-/bin/sh}
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}
107 # Factoring default headers for most tests.
108 ac_includes_default="\
111 # include <sys/types.h>
114 # include <sys/stat.h>
125 # if !STDC_HEADERS && HAVE_MEMORY_H
131 # include <strings.h>
134 # include <inttypes.h>
144 # Initialize some variables set by options.
146 ac_init_version=false
147 # The variables have the same names as the options, with
148 # dashes changed to underlines.
156 program_transform_name=s,x,x,
164 # Installation directory options.
165 # These are left unexpanded so users can "make install exec_prefix=/foo"
166 # and all the variables that are supposed to be based on exec_prefix
167 # by default will actually change.
168 # Use braces instead of parens because sh, perl, etc. also accept them.
169 bindir='${exec_prefix}/bin'
170 sbindir='${exec_prefix}/sbin'
171 libexecdir='${exec_prefix}/libexec'
172 datadir='${prefix}/share'
173 sysconfdir='${prefix}/etc'
174 sharedstatedir='${prefix}/com'
175 localstatedir='${prefix}/var'
176 libdir='${exec_prefix}/lib'
177 includedir='${prefix}/include'
178 oldincludedir='/usr/include'
179 infodir='${prefix}/info'
180 mandir='${prefix}/man'
182 # Identity of this package.
192 # If the previous option needs an argument, assign it.
193 if test -n "$ac_prev"; then
194 eval "$ac_prev=\$ac_option"
199 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
201 # Accept the important Cygnus configure options, so we can diagnose typos.
205 -bindir | --bindir | --bindi | --bind | --bin | --bi)
207 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
210 -build | --build | --buil | --bui | --bu)
211 ac_prev=build_alias ;;
212 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
213 build_alias=$ac_optarg ;;
215 -cache-file | --cache-file | --cache-fil | --cache-fi \
216 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
217 ac_prev=cache_file ;;
218 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
219 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
220 cache_file=$ac_optarg ;;
223 cache_file=config.cache ;;
225 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
227 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
229 datadir=$ac_optarg ;;
231 -disable-* | --disable-*)
232 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
233 # Reject names that are not valid shell variable names.
234 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
235 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
236 { (exit 1); exit 1; }; }
237 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
238 eval "enable_$ac_feature=no" ;;
240 -enable-* | --enable-*)
241 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
242 # Reject names that are not valid shell variable names.
243 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
244 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
245 { (exit 1); exit 1; }; }
246 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
248 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
251 eval "enable_$ac_feature='$ac_optarg'" ;;
253 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
254 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
255 | --exec | --exe | --ex)
256 ac_prev=exec_prefix ;;
257 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
258 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
259 | --exec=* | --exe=* | --ex=*)
260 exec_prefix=$ac_optarg ;;
262 -gas | --gas | --ga | --g)
263 # Obsolete; use --with-gas.
266 -help | --help | --hel | --he | -h)
268 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
269 ac_init_help=recursive ;;
270 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
271 ac_init_help=short ;;
273 -host | --host | --hos | --ho)
274 ac_prev=host_alias ;;
275 -host=* | --host=* | --hos=* | --ho=*)
276 host_alias=$ac_optarg ;;
278 -includedir | --includedir | --includedi | --included | --include \
279 | --includ | --inclu | --incl | --inc)
280 ac_prev=includedir ;;
281 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
282 | --includ=* | --inclu=* | --incl=* | --inc=*)
283 includedir=$ac_optarg ;;
285 -infodir | --infodir | --infodi | --infod | --info | --inf)
287 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
288 infodir=$ac_optarg ;;
290 -libdir | --libdir | --libdi | --libd)
292 -libdir=* | --libdir=* | --libdi=* | --libd=*)
295 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
296 | --libexe | --libex | --libe)
297 ac_prev=libexecdir ;;
298 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
299 | --libexe=* | --libex=* | --libe=*)
300 libexecdir=$ac_optarg ;;
302 -localstatedir | --localstatedir | --localstatedi | --localstated \
303 | --localstate | --localstat | --localsta | --localst \
304 | --locals | --local | --loca | --loc | --lo)
305 ac_prev=localstatedir ;;
306 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
307 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
308 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
309 localstatedir=$ac_optarg ;;
311 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
313 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
317 # Obsolete; use --without-fp.
320 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
324 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
325 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
328 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
329 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
330 | --oldin | --oldi | --old | --ol | --o)
331 ac_prev=oldincludedir ;;
332 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
333 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
334 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
335 oldincludedir=$ac_optarg ;;
337 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
339 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
342 -program-prefix | --program-prefix | --program-prefi | --program-pref \
343 | --program-pre | --program-pr | --program-p)
344 ac_prev=program_prefix ;;
345 -program-prefix=* | --program-prefix=* | --program-prefi=* \
346 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
347 program_prefix=$ac_optarg ;;
349 -program-suffix | --program-suffix | --program-suffi | --program-suff \
350 | --program-suf | --program-su | --program-s)
351 ac_prev=program_suffix ;;
352 -program-suffix=* | --program-suffix=* | --program-suffi=* \
353 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
354 program_suffix=$ac_optarg ;;
356 -program-transform-name | --program-transform-name \
357 | --program-transform-nam | --program-transform-na \
358 | --program-transform-n | --program-transform- \
359 | --program-transform | --program-transfor \
360 | --program-transfo | --program-transf \
361 | --program-trans | --program-tran \
362 | --progr-tra | --program-tr | --program-t)
363 ac_prev=program_transform_name ;;
364 -program-transform-name=* | --program-transform-name=* \
365 | --program-transform-nam=* | --program-transform-na=* \
366 | --program-transform-n=* | --program-transform-=* \
367 | --program-transform=* | --program-transfor=* \
368 | --program-transfo=* | --program-transf=* \
369 | --program-trans=* | --program-tran=* \
370 | --progr-tra=* | --program-tr=* | --program-t=*)
371 program_transform_name=$ac_optarg ;;
373 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
374 | -silent | --silent | --silen | --sile | --sil)
377 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
379 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
381 sbindir=$ac_optarg ;;
383 -sharedstatedir | --sharedstatedir | --sharedstatedi \
384 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
385 | --sharedst | --shareds | --shared | --share | --shar \
387 ac_prev=sharedstatedir ;;
388 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
389 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
390 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
392 sharedstatedir=$ac_optarg ;;
394 -site | --site | --sit)
396 -site=* | --site=* | --sit=*)
399 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
401 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
404 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
405 | --syscon | --sysco | --sysc | --sys | --sy)
406 ac_prev=sysconfdir ;;
407 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
408 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
409 sysconfdir=$ac_optarg ;;
411 -target | --target | --targe | --targ | --tar | --ta | --t)
412 ac_prev=target_alias ;;
413 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
414 target_alias=$ac_optarg ;;
416 -v | -verbose | --verbose | --verbos | --verbo | --verb)
419 -version | --version | --versio | --versi | --vers | -V)
423 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
424 # Reject names that are not valid shell variable names.
425 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
426 { echo "$as_me: error: invalid package name: $ac_package" >&2
427 { (exit 1); exit 1; }; }
428 ac_package=`echo $ac_package| sed 's/-/_/g'`
430 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
433 eval "with_$ac_package='$ac_optarg'" ;;
435 -without-* | --without-*)
436 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
437 # Reject names that are not valid shell variable names.
438 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
439 { echo "$as_me: error: invalid package name: $ac_package" >&2
440 { (exit 1); exit 1; }; }
441 ac_package=`echo $ac_package | sed 's/-/_/g'`
442 eval "with_$ac_package=no" ;;
445 # Obsolete; use --with-x.
448 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
449 | --x-incl | --x-inc | --x-in | --x-i)
450 ac_prev=x_includes ;;
451 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
452 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
453 x_includes=$ac_optarg ;;
455 -x-libraries | --x-libraries | --x-librarie | --x-librari \
456 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
457 ac_prev=x_libraries ;;
458 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
459 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
460 x_libraries=$ac_optarg ;;
462 -*) { echo "$as_me: error: unrecognized option: $ac_option
463 Try \`$0 --help' for more information." >&2
464 { (exit 1); exit 1; }; }
468 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
469 # Reject names that are not valid shell variable names.
470 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
471 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
472 { (exit 1); exit 1; }; }
473 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
474 eval "$ac_envvar='$ac_optarg'"
478 # FIXME: should be removed in autoconf 3.0.
479 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
480 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
481 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
482 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
488 if test -n "$ac_prev"; then
489 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
490 { echo "$as_me: error: missing argument to $ac_option" >&2
491 { (exit 1); exit 1; }; }
494 # Be sure to have absolute paths.
495 for ac_var in exec_prefix prefix
497 eval ac_val=$`echo $ac_var`
499 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
500 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
501 { (exit 1); exit 1; }; };;
505 # Be sure to have absolute paths.
506 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
507 localstatedir libdir includedir oldincludedir infodir mandir
509 eval ac_val=$`echo $ac_var`
511 [\\/$]* | ?:[\\/]* ) ;;
512 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
513 { (exit 1); exit 1; }; };;
517 # There might be people who depend on the old broken behavior: `$host'
518 # used to hold the argument of --host etc.
523 # FIXME: should be removed in autoconf 3.0.
524 if test "x$host_alias" != x; then
525 if test "x$build_alias" = x; then
526 cross_compiling=maybe
527 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
528 If a cross compiler is detected then cross compile mode will be used." >&2
529 elif test "x$build_alias" != "x$host_alias"; then
535 test -n "$host_alias" && ac_tool_prefix=$host_alias-
537 test "$silent" = yes && exec 6>/dev/null
539 # Find the source files, if location was not specified.
540 if test -z "$srcdir"; then
541 ac_srcdir_defaulted=yes
542 # Try the directory containing this script, then its parent.
544 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
545 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
547 if test ! -r $srcdir/$ac_unique_file; then
551 ac_srcdir_defaulted=no
553 if test ! -r $srcdir/$ac_unique_file; then
554 if test "$ac_srcdir_defaulted" = yes; then
555 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
556 { (exit 1); exit 1; }; }
558 { echo "$as_me: error: cannot find sources in $srcdir" >&2
559 { (exit 1); exit 1; }; }
562 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
563 ac_env_build_alias_set=${build_alias+set}
564 ac_env_build_alias_value=$build_alias
565 ac_cv_env_build_alias_set=${build_alias+set}
566 ac_cv_env_build_alias_value=$build_alias
567 ac_env_host_alias_set=${host_alias+set}
568 ac_env_host_alias_value=$host_alias
569 ac_cv_env_host_alias_set=${host_alias+set}
570 ac_cv_env_host_alias_value=$host_alias
571 ac_env_target_alias_set=${target_alias+set}
572 ac_env_target_alias_value=$target_alias
573 ac_cv_env_target_alias_set=${target_alias+set}
574 ac_cv_env_target_alias_value=$target_alias
575 ac_env_CC_set=${CC+set}
577 ac_cv_env_CC_set=${CC+set}
578 ac_cv_env_CC_value=$CC
579 ac_env_CFLAGS_set=${CFLAGS+set}
580 ac_env_CFLAGS_value=$CFLAGS
581 ac_cv_env_CFLAGS_set=${CFLAGS+set}
582 ac_cv_env_CFLAGS_value=$CFLAGS
583 ac_env_LDFLAGS_set=${LDFLAGS+set}
584 ac_env_LDFLAGS_value=$LDFLAGS
585 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
586 ac_cv_env_LDFLAGS_value=$LDFLAGS
587 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
588 ac_env_CPPFLAGS_value=$CPPFLAGS
589 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
590 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
591 ac_env_CPP_set=${CPP+set}
592 ac_env_CPP_value=$CPP
593 ac_cv_env_CPP_set=${CPP+set}
594 ac_cv_env_CPP_value=$CPP
597 # Report the --help message.
599 if test "$ac_init_help" = "long"; then
600 # Omit some internal or obsolete options to make the list less imposing.
601 # This message is too long to be a string in the A/UX 3.1 sh.
603 \`configure' configures this package to adapt to many kinds of systems.
605 Usage: $0 [OPTION]... [VAR=VALUE]...
607 To assign environment variables (e.g., CC, CFLAGS...), specify them as
608 VAR=VALUE. See below for descriptions of some of the useful variables.
610 Defaults for the options are specified in brackets.
613 -h, --help display this help and exit
614 --help=short display options specific to this package
615 --help=recursive display the short help of all the included packages
616 -V, --version display version information and exit
617 -q, --quiet, --silent do not print \`checking...' messages
618 --cache-file=FILE cache test results in FILE [disabled]
619 -C, --config-cache alias for \`--cache-file=config.cache'
620 -n, --no-create do not create output files
621 --srcdir=DIR find the sources in DIR [configure dir or \`..']
626 Installation directories:
627 --prefix=PREFIX install architecture-independent files in PREFIX
629 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
632 By default, \`make install' will install all the files in
633 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
634 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
635 for instance \`--prefix=\$HOME'.
637 For better control, use the options below.
639 Fine tuning of the installation directories:
640 --bindir=DIR user executables [EPREFIX/bin]
641 --sbindir=DIR system admin executables [EPREFIX/sbin]
642 --libexecdir=DIR program executables [EPREFIX/libexec]
643 --datadir=DIR read-only architecture-independent data [PREFIX/share]
644 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
645 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
646 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
647 --libdir=DIR object code libraries [EPREFIX/lib]
648 --includedir=DIR C header files [PREFIX/include]
649 --oldincludedir=DIR C header files for non-gcc [/usr/include]
650 --infodir=DIR info documentation [PREFIX/info]
651 --mandir=DIR man documentation [PREFIX/man]
658 if test -n "$ac_init_help"; then
662 Some influential environment variables:
663 CC C compiler command
664 CFLAGS C compiler flags
665 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
666 nonstandard directory <lib dir>
667 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
668 headers in a nonstandard directory <include dir>
671 Use these variables to override the choices made by `configure' or to help
672 it to find libraries and programs with nonstandard names/locations.
677 if test "$ac_init_help" = "recursive"; then
678 # If there are subdirs, report their specific --help.
680 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
682 # A "../" for each directory in /$ac_subdir.
683 ac_dots=`echo $ac_subdir |
684 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
687 .) # No --srcdir option. We are building in place.
688 ac_sub_srcdir=$srcdir ;;
689 [\\/]* | ?:[\\/]* ) # Absolute path.
690 ac_sub_srcdir=$srcdir/$ac_subdir ;;
692 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
695 # Check for guested configure; otherwise get Cygnus style configure.
696 if test -f $ac_sub_srcdir/configure.gnu; then
698 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
699 elif test -f $ac_sub_srcdir/configure; then
701 $SHELL $ac_sub_srcdir/configure --help=recursive
702 elif test -f $ac_sub_srcdir/configure.ac ||
703 test -f $ac_sub_srcdir/configure.in; then
707 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
713 test -n "$ac_init_help" && exit 0
714 if $ac_init_version; then
717 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
718 Free Software Foundation, Inc.
719 This configure script is free software; the Free Software Foundation
720 gives unlimited permission to copy, distribute and modify it.
726 This file contains any messages produced by compilers while
727 running configure, to aid debugging if configure makes a mistake.
729 It was created by $as_me, which was
730 generated by GNU Autoconf 2.52. Invocation command line was
741 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
742 uname -m = `(uname -m) 2>/dev/null || echo unknown`
743 uname -r = `(uname -r) 2>/dev/null || echo unknown`
744 uname -s = `(uname -s) 2>/dev/null || echo unknown`
745 uname -v = `(uname -v) 2>/dev/null || echo unknown`
747 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
748 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
750 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
751 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
752 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
753 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
754 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
755 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
756 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
770 # Keep a trace of the command line.
771 # Strip out --no-create and --no-recursion so they do not pile up.
772 # Also quote any args containing shell meta-characters.
778 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
779 | --no-cr | --no-c) ;;
780 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
781 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
782 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
783 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
784 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
786 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
789 # Get rid of the leading space.
792 # When interrupted or exit'd, cleanup temporary files, and complete
793 # config.log. We remove comments because anyway the quotes in there
794 # would cause problems or look ugly.
796 # Save into config.log some information that might help in debugging.
798 echo "## ----------------- ##" >&5
799 echo "## Cache variables. ##" >&5
800 echo "## ----------------- ##" >&5
802 # The following way of writing the cache mishandles newlines in values,
805 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
808 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
809 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
813 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
817 sed "/^$/d" confdefs.h >conftest.log
818 if test -s conftest.log; then
820 echo "## ------------ ##" >&5
821 echo "## confdefs.h. ##" >&5
822 echo "## ------------ ##" >&5
827 test "$ac_signal" != 0 &&
828 echo "$as_me: caught signal $ac_signal" >&5
829 echo "$as_me: exit $exit_status" >&5
830 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
833 for ac_signal in 1 2 13 15; do
834 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
838 # confdefs.h avoids OS command line length limits that DEFS can exceed.
839 rm -rf conftest* confdefs.h
840 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
843 # Let the site file select an alternate cache file if it wants to.
844 # Prefer explicitly selected file to automatically selected ones.
845 if test -z "$CONFIG_SITE"; then
846 if test "x$prefix" != xNONE; then
847 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
849 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
852 for ac_site_file in $CONFIG_SITE; do
853 if test -r "$ac_site_file"; then
854 { echo "$as_me:854: loading site script $ac_site_file" >&5
855 echo "$as_me: loading site script $ac_site_file" >&6;}
856 cat "$ac_site_file" >&5
861 if test -r "$cache_file"; then
862 # Some versions of bash will fail to source /dev/null (special
863 # files actually), so we avoid doing that.
864 if test -f "$cache_file"; then
865 { echo "$as_me:865: loading cache $cache_file" >&5
866 echo "$as_me: loading cache $cache_file" >&6;}
868 [\\/]* | ?:[\\/]* ) . $cache_file;;
873 { echo "$as_me:873: creating cache $cache_file" >&5
874 echo "$as_me: creating cache $cache_file" >&6;}
878 # Check that the precious variables saved in the cache have kept the same
880 ac_cache_corrupted=false
881 for ac_var in `(set) 2>&1 |
882 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
883 eval ac_old_set=\$ac_cv_env_${ac_var}_set
884 eval ac_new_set=\$ac_env_${ac_var}_set
885 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
886 eval ac_new_val="\$ac_env_${ac_var}_value"
887 case $ac_old_set,$ac_new_set in
889 { echo "$as_me:889: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
890 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
891 ac_cache_corrupted=: ;;
893 { echo "$as_me:893: error: \`$ac_var' was not set in the previous run" >&5
894 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
895 ac_cache_corrupted=: ;;
898 if test "x$ac_old_val" != "x$ac_new_val"; then
899 { echo "$as_me:899: error: \`$ac_var' has changed since the previous run:" >&5
900 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
901 { echo "$as_me:901: former value: $ac_old_val" >&5
902 echo "$as_me: former value: $ac_old_val" >&2;}
903 { echo "$as_me:903: current value: $ac_new_val" >&5
904 echo "$as_me: current value: $ac_new_val" >&2;}
908 # Pass precious variables to config.status. It doesn't matter if
909 # we pass some twice (in addition to the command line arguments).
910 if test "$ac_new_set" = set; then
912 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
913 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
914 ac_configure_args="$ac_configure_args '$ac_arg'"
916 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
921 if $ac_cache_corrupted; then
922 { echo "$as_me:922: error: changes in the environment can compromise the build" >&5
923 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
924 { { echo "$as_me:924: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
925 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
926 { (exit 1); exit 1; }; }
930 ac_cpp='$CPP $CPPFLAGS'
931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
935 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
936 *c*,-n*) ECHO_N= ECHO_C='
938 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
939 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
941 echo "#! $SHELL" >conftest.sh
942 echo "exit 0" >>conftest.sh
944 if { (echo "$as_me:944: PATH=\".;.\"; conftest.sh") >&5
945 (PATH=".;."; conftest.sh) 2>&5
947 echo "$as_me:947: \$? = $ac_status" >&5
948 (exit $ac_status); }; then
949 ac_path_separator=';'
953 PATH_SEPARATOR="$ac_path_separator"
956 if test -f "FCGI.XL"; then
960 if test "$FCGI_BUILD"; then
961 ac_config_headers="$ac_config_headers fcgi_config.h"
964 ac_config_headers="$ac_config_headers include/fcgi_config.h"
969 ac_cpp='$CPP $CPPFLAGS'
970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
973 if test -n "$ac_tool_prefix"; then
974 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
975 set dummy ${ac_tool_prefix}gcc; ac_word=$2
976 echo "$as_me:976: checking for $ac_word" >&5
977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
978 if test "${ac_cv_prog_CC+set}" = set; then
979 echo $ECHO_N "(cached) $ECHO_C" >&6
981 if test -n "$CC"; then
982 ac_cv_prog_CC="$CC" # Let the user override the test.
984 ac_save_IFS=$IFS; IFS=$ac_path_separator
986 for ac_dir in $ac_dummy; do
988 test -z "$ac_dir" && ac_dir=.
989 $as_executable_p "$ac_dir/$ac_word" || continue
990 ac_cv_prog_CC="${ac_tool_prefix}gcc"
991 echo "$as_me:991: found $ac_dir/$ac_word" >&5
998 if test -n "$CC"; then
999 echo "$as_me:999: result: $CC" >&5
1000 echo "${ECHO_T}$CC" >&6
1002 echo "$as_me:1002: result: no" >&5
1003 echo "${ECHO_T}no" >&6
1007 if test -z "$ac_cv_prog_CC"; then
1009 # Extract the first word of "gcc", so it can be a program name with args.
1010 set dummy gcc; ac_word=$2
1011 echo "$as_me:1011: checking for $ac_word" >&5
1012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1013 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1014 echo $ECHO_N "(cached) $ECHO_C" >&6
1016 if test -n "$ac_ct_CC"; then
1017 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1019 ac_save_IFS=$IFS; IFS=$ac_path_separator
1021 for ac_dir in $ac_dummy; do
1023 test -z "$ac_dir" && ac_dir=.
1024 $as_executable_p "$ac_dir/$ac_word" || continue
1025 ac_cv_prog_ac_ct_CC="gcc"
1026 echo "$as_me:1026: found $ac_dir/$ac_word" >&5
1032 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1033 if test -n "$ac_ct_CC"; then
1034 echo "$as_me:1034: result: $ac_ct_CC" >&5
1035 echo "${ECHO_T}$ac_ct_CC" >&6
1037 echo "$as_me:1037: result: no" >&5
1038 echo "${ECHO_T}no" >&6
1046 if test -z "$CC"; then
1047 if test -n "$ac_tool_prefix"; then
1048 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1049 set dummy ${ac_tool_prefix}cc; ac_word=$2
1050 echo "$as_me:1050: checking for $ac_word" >&5
1051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1052 if test "${ac_cv_prog_CC+set}" = set; then
1053 echo $ECHO_N "(cached) $ECHO_C" >&6
1055 if test -n "$CC"; then
1056 ac_cv_prog_CC="$CC" # Let the user override the test.
1058 ac_save_IFS=$IFS; IFS=$ac_path_separator
1060 for ac_dir in $ac_dummy; do
1062 test -z "$ac_dir" && ac_dir=.
1063 $as_executable_p "$ac_dir/$ac_word" || continue
1064 ac_cv_prog_CC="${ac_tool_prefix}cc"
1065 echo "$as_me:1065: found $ac_dir/$ac_word" >&5
1072 if test -n "$CC"; then
1073 echo "$as_me:1073: result: $CC" >&5
1074 echo "${ECHO_T}$CC" >&6
1076 echo "$as_me:1076: result: no" >&5
1077 echo "${ECHO_T}no" >&6
1081 if test -z "$ac_cv_prog_CC"; then
1083 # Extract the first word of "cc", so it can be a program name with args.
1084 set dummy cc; ac_word=$2
1085 echo "$as_me:1085: checking for $ac_word" >&5
1086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1087 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1088 echo $ECHO_N "(cached) $ECHO_C" >&6
1090 if test -n "$ac_ct_CC"; then
1091 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1093 ac_save_IFS=$IFS; IFS=$ac_path_separator
1095 for ac_dir in $ac_dummy; do
1097 test -z "$ac_dir" && ac_dir=.
1098 $as_executable_p "$ac_dir/$ac_word" || continue
1099 ac_cv_prog_ac_ct_CC="cc"
1100 echo "$as_me:1100: found $ac_dir/$ac_word" >&5
1106 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1107 if test -n "$ac_ct_CC"; then
1108 echo "$as_me:1108: result: $ac_ct_CC" >&5
1109 echo "${ECHO_T}$ac_ct_CC" >&6
1111 echo "$as_me:1111: result: no" >&5
1112 echo "${ECHO_T}no" >&6
1121 if test -z "$CC"; then
1122 # Extract the first word of "cc", so it can be a program name with args.
1123 set dummy cc; ac_word=$2
1124 echo "$as_me:1124: checking for $ac_word" >&5
1125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1126 if test "${ac_cv_prog_CC+set}" = set; then
1127 echo $ECHO_N "(cached) $ECHO_C" >&6
1129 if test -n "$CC"; then
1130 ac_cv_prog_CC="$CC" # Let the user override the test.
1133 ac_save_IFS=$IFS; IFS=$ac_path_separator
1135 for ac_dir in $ac_dummy; do
1137 test -z "$ac_dir" && ac_dir=.
1138 $as_executable_p "$ac_dir/$ac_word" || continue
1139 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1140 ac_prog_rejected=yes
1144 echo "$as_me:1144: found $ac_dir/$ac_word" >&5
1148 if test $ac_prog_rejected = yes; then
1149 # We found a bogon in the path, so make sure we never use it.
1150 set dummy $ac_cv_prog_CC
1152 if test $# != 0; then
1153 # We chose a different compiler from the bogus one.
1154 # However, it has the same basename, so the bogon will be chosen
1155 # first if we set CC to just the basename; use the full file name.
1157 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1165 if test -n "$CC"; then
1166 echo "$as_me:1166: result: $CC" >&5
1167 echo "${ECHO_T}$CC" >&6
1169 echo "$as_me:1169: result: no" >&5
1170 echo "${ECHO_T}no" >&6
1174 if test -z "$CC"; then
1175 if test -n "$ac_tool_prefix"; then
1178 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1179 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1180 echo "$as_me:1180: checking for $ac_word" >&5
1181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1182 if test "${ac_cv_prog_CC+set}" = set; then
1183 echo $ECHO_N "(cached) $ECHO_C" >&6
1185 if test -n "$CC"; then
1186 ac_cv_prog_CC="$CC" # Let the user override the test.
1188 ac_save_IFS=$IFS; IFS=$ac_path_separator
1190 for ac_dir in $ac_dummy; do
1192 test -z "$ac_dir" && ac_dir=.
1193 $as_executable_p "$ac_dir/$ac_word" || continue
1194 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1195 echo "$as_me:1195: found $ac_dir/$ac_word" >&5
1202 if test -n "$CC"; then
1203 echo "$as_me:1203: result: $CC" >&5
1204 echo "${ECHO_T}$CC" >&6
1206 echo "$as_me:1206: result: no" >&5
1207 echo "${ECHO_T}no" >&6
1210 test -n "$CC" && break
1213 if test -z "$CC"; then
1217 # Extract the first word of "$ac_prog", so it can be a program name with args.
1218 set dummy $ac_prog; ac_word=$2
1219 echo "$as_me:1219: checking for $ac_word" >&5
1220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1221 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1222 echo $ECHO_N "(cached) $ECHO_C" >&6
1224 if test -n "$ac_ct_CC"; then
1225 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1227 ac_save_IFS=$IFS; IFS=$ac_path_separator
1229 for ac_dir in $ac_dummy; do
1231 test -z "$ac_dir" && ac_dir=.
1232 $as_executable_p "$ac_dir/$ac_word" || continue
1233 ac_cv_prog_ac_ct_CC="$ac_prog"
1234 echo "$as_me:1234: found $ac_dir/$ac_word" >&5
1240 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1241 if test -n "$ac_ct_CC"; then
1242 echo "$as_me:1242: result: $ac_ct_CC" >&5
1243 echo "${ECHO_T}$ac_ct_CC" >&6
1245 echo "$as_me:1245: result: no" >&5
1246 echo "${ECHO_T}no" >&6
1249 test -n "$ac_ct_CC" && break
1257 test -z "$CC" && { { echo "$as_me:1257: error: no acceptable cc found in \$PATH" >&5
1258 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1259 { (exit 1); exit 1; }; }
1261 # Provide some information about the compiler.
1262 echo "$as_me:1262:" \
1263 "checking for C compiler version" >&5
1264 ac_compiler=`set X $ac_compile; echo $2`
1265 { (eval echo "$as_me:1265: \"$ac_compiler --version </dev/null >&5\"") >&5
1266 (eval $ac_compiler --version </dev/null >&5) 2>&5
1268 echo "$as_me:1268: \$? = $ac_status" >&5
1269 (exit $ac_status); }
1270 { (eval echo "$as_me:1270: \"$ac_compiler -v </dev/null >&5\"") >&5
1271 (eval $ac_compiler -v </dev/null >&5) 2>&5
1273 echo "$as_me:1273: \$? = $ac_status" >&5
1274 (exit $ac_status); }
1275 { (eval echo "$as_me:1275: \"$ac_compiler -V </dev/null >&5\"") >&5
1276 (eval $ac_compiler -V </dev/null >&5) 2>&5
1278 echo "$as_me:1278: \$? = $ac_status" >&5
1279 (exit $ac_status); }
1281 cat >conftest.$ac_ext <<_ACEOF
1282 #line 1282 "configure"
1283 #include "confdefs.h"
1293 ac_clean_files_save=$ac_clean_files
1294 ac_clean_files="$ac_clean_files a.out a.exe"
1295 # Try to create an executable without -o first, disregard a.out.
1296 # It will help us diagnose broken compilers, and finding out an intuition
1298 echo "$as_me:1298: checking for C compiler default output" >&5
1299 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1300 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1301 if { (eval echo "$as_me:1301: \"$ac_link_default\"") >&5
1302 (eval $ac_link_default) 2>&5
1304 echo "$as_me:1304: \$? = $ac_status" >&5
1305 (exit $ac_status); }; then
1306 # Find the output, starting from the most likely. This scheme is
1307 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1309 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1310 ls a.out conftest 2>/dev/null;
1311 ls a.* conftest.* 2>/dev/null`; do
1313 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1314 a.out ) # We found the default executable, but exeext='' is most
1317 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1318 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1325 echo "$as_me: failed program was:" >&5
1326 cat conftest.$ac_ext >&5
1327 { { echo "$as_me:1327: error: C compiler cannot create executables" >&5
1328 echo "$as_me: error: C compiler cannot create executables" >&2;}
1329 { (exit 77); exit 77; }; }
1332 ac_exeext=$ac_cv_exeext
1333 echo "$as_me:1333: result: $ac_file" >&5
1334 echo "${ECHO_T}$ac_file" >&6
1336 # Check the compiler produces executables we can run. If not, either
1337 # the compiler is broken, or we cross compile.
1338 echo "$as_me:1338: checking whether the C compiler works" >&5
1339 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1340 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1341 # If not cross compiling, check that we can run a simple program.
1342 if test "$cross_compiling" != yes; then
1343 if { ac_try='./$ac_file'
1344 { (eval echo "$as_me:1344: \"$ac_try\"") >&5
1347 echo "$as_me:1347: \$? = $ac_status" >&5
1348 (exit $ac_status); }; }; then
1351 if test "$cross_compiling" = maybe; then
1354 { { echo "$as_me:1354: error: cannot run C compiled programs.
1355 If you meant to cross compile, use \`--host'." >&5
1356 echo "$as_me: error: cannot run C compiled programs.
1357 If you meant to cross compile, use \`--host'." >&2;}
1358 { (exit 1); exit 1; }; }
1362 echo "$as_me:1362: result: yes" >&5
1363 echo "${ECHO_T}yes" >&6
1365 rm -f a.out a.exe conftest$ac_cv_exeext
1366 ac_clean_files=$ac_clean_files_save
1367 # Check the compiler produces executables we can run. If not, either
1368 # the compiler is broken, or we cross compile.
1369 echo "$as_me:1369: checking whether we are cross compiling" >&5
1370 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1371 echo "$as_me:1371: result: $cross_compiling" >&5
1372 echo "${ECHO_T}$cross_compiling" >&6
1374 echo "$as_me:1374: checking for executable suffix" >&5
1375 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1376 if { (eval echo "$as_me:1376: \"$ac_link\"") >&5
1377 (eval $ac_link) 2>&5
1379 echo "$as_me:1379: \$? = $ac_status" >&5
1380 (exit $ac_status); }; then
1381 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1382 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1383 # work properly (i.e., refer to `conftest.exe'), while it won't with
1385 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1387 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1388 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1395 { { echo "$as_me:1395: error: cannot compute EXEEXT: cannot compile and link" >&5
1396 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1397 { (exit 1); exit 1; }; }
1400 rm -f conftest$ac_cv_exeext
1401 echo "$as_me:1401: result: $ac_cv_exeext" >&5
1402 echo "${ECHO_T}$ac_cv_exeext" >&6
1404 rm -f conftest.$ac_ext
1405 EXEEXT=$ac_cv_exeext
1407 echo "$as_me:1407: checking for object suffix" >&5
1408 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1409 if test "${ac_cv_objext+set}" = set; then
1410 echo $ECHO_N "(cached) $ECHO_C" >&6
1412 cat >conftest.$ac_ext <<_ACEOF
1413 #line 1413 "configure"
1414 #include "confdefs.h"
1424 rm -f conftest.o conftest.obj
1425 if { (eval echo "$as_me:1425: \"$ac_compile\"") >&5
1426 (eval $ac_compile) 2>&5
1428 echo "$as_me:1428: \$? = $ac_status" >&5
1429 (exit $ac_status); }; then
1430 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1432 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1433 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1438 echo "$as_me: failed program was:" >&5
1439 cat conftest.$ac_ext >&5
1440 { { echo "$as_me:1440: error: cannot compute OBJEXT: cannot compile" >&5
1441 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1442 { (exit 1); exit 1; }; }
1445 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1447 echo "$as_me:1447: result: $ac_cv_objext" >&5
1448 echo "${ECHO_T}$ac_cv_objext" >&6
1449 OBJEXT=$ac_cv_objext
1451 echo "$as_me:1451: checking whether we are using the GNU C compiler" >&5
1452 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1453 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1454 echo $ECHO_N "(cached) $ECHO_C" >&6
1456 cat >conftest.$ac_ext <<_ACEOF
1457 #line 1457 "configure"
1458 #include "confdefs.h"
1471 rm -f conftest.$ac_objext
1472 if { (eval echo "$as_me:1472: \"$ac_compile\"") >&5
1473 (eval $ac_compile) 2>&5
1475 echo "$as_me:1475: \$? = $ac_status" >&5
1476 (exit $ac_status); } &&
1477 { ac_try='test -s conftest.$ac_objext'
1478 { (eval echo "$as_me:1478: \"$ac_try\"") >&5
1481 echo "$as_me:1481: \$? = $ac_status" >&5
1482 (exit $ac_status); }; }; then
1485 echo "$as_me: failed program was:" >&5
1486 cat conftest.$ac_ext >&5
1489 rm -f conftest.$ac_objext conftest.$ac_ext
1490 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1493 echo "$as_me:1493: result: $ac_cv_c_compiler_gnu" >&5
1494 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1495 GCC=`test $ac_compiler_gnu = yes && echo yes`
1496 ac_test_CFLAGS=${CFLAGS+set}
1497 ac_save_CFLAGS=$CFLAGS
1499 echo "$as_me:1499: checking whether $CC accepts -g" >&5
1500 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1501 if test "${ac_cv_prog_cc_g+set}" = set; then
1502 echo $ECHO_N "(cached) $ECHO_C" >&6
1504 cat >conftest.$ac_ext <<_ACEOF
1505 #line 1505 "configure"
1506 #include "confdefs.h"
1516 rm -f conftest.$ac_objext
1517 if { (eval echo "$as_me:1517: \"$ac_compile\"") >&5
1518 (eval $ac_compile) 2>&5
1520 echo "$as_me:1520: \$? = $ac_status" >&5
1521 (exit $ac_status); } &&
1522 { ac_try='test -s conftest.$ac_objext'
1523 { (eval echo "$as_me:1523: \"$ac_try\"") >&5
1526 echo "$as_me:1526: \$? = $ac_status" >&5
1527 (exit $ac_status); }; }; then
1530 echo "$as_me: failed program was:" >&5
1531 cat conftest.$ac_ext >&5
1534 rm -f conftest.$ac_objext conftest.$ac_ext
1536 echo "$as_me:1536: result: $ac_cv_prog_cc_g" >&5
1537 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1538 if test "$ac_test_CFLAGS" = set; then
1539 CFLAGS=$ac_save_CFLAGS
1540 elif test $ac_cv_prog_cc_g = yes; then
1541 if test "$GCC" = yes; then
1547 if test "$GCC" = yes; then
1553 # Some people use a C++ compiler to compile C. Since we use `exit',
1554 # in C++ we need to declare it. In case someone uses the same compiler
1555 # for both compiling C and C++ we need to have the C++ compiler decide
1556 # the declaration of exit, since it's the most demanding environment.
1557 cat >conftest.$ac_ext <<_ACEOF
1562 rm -f conftest.$ac_objext
1563 if { (eval echo "$as_me:1563: \"$ac_compile\"") >&5
1564 (eval $ac_compile) 2>&5
1566 echo "$as_me:1566: \$? = $ac_status" >&5
1567 (exit $ac_status); } &&
1568 { ac_try='test -s conftest.$ac_objext'
1569 { (eval echo "$as_me:1569: \"$ac_try\"") >&5
1572 echo "$as_me:1572: \$? = $ac_status" >&5
1573 (exit $ac_status); }; }; then
1574 for ac_declaration in \
1576 '#include <stdlib.h>' \
1577 'extern "C" void std::exit (int) throw (); using std::exit;' \
1578 'extern "C" void std::exit (int); using std::exit;' \
1579 'extern "C" void exit (int) throw ();' \
1580 'extern "C" void exit (int);' \
1583 cat >conftest.$ac_ext <<_ACEOF
1584 #line 1584 "configure"
1585 #include "confdefs.h"
1596 rm -f conftest.$ac_objext
1597 if { (eval echo "$as_me:1597: \"$ac_compile\"") >&5
1598 (eval $ac_compile) 2>&5
1600 echo "$as_me:1600: \$? = $ac_status" >&5
1601 (exit $ac_status); } &&
1602 { ac_try='test -s conftest.$ac_objext'
1603 { (eval echo "$as_me:1603: \"$ac_try\"") >&5
1606 echo "$as_me:1606: \$? = $ac_status" >&5
1607 (exit $ac_status); }; }; then
1610 echo "$as_me: failed program was:" >&5
1611 cat conftest.$ac_ext >&5
1614 rm -f conftest.$ac_objext conftest.$ac_ext
1615 cat >conftest.$ac_ext <<_ACEOF
1616 #line 1616 "configure"
1617 #include "confdefs.h"
1627 rm -f conftest.$ac_objext
1628 if { (eval echo "$as_me:1628: \"$ac_compile\"") >&5
1629 (eval $ac_compile) 2>&5
1631 echo "$as_me:1631: \$? = $ac_status" >&5
1632 (exit $ac_status); } &&
1633 { ac_try='test -s conftest.$ac_objext'
1634 { (eval echo "$as_me:1634: \"$ac_try\"") >&5
1637 echo "$as_me:1637: \$? = $ac_status" >&5
1638 (exit $ac_status); }; }; then
1641 echo "$as_me: failed program was:" >&5
1642 cat conftest.$ac_ext >&5
1644 rm -f conftest.$ac_objext conftest.$ac_ext
1647 if test -n "$ac_declaration"; then
1648 echo '#ifdef __cplusplus' >>confdefs.h
1649 echo $ac_declaration >>confdefs.h
1650 echo '#endif' >>confdefs.h
1654 echo "$as_me: failed program was:" >&5
1655 cat conftest.$ac_ext >&5
1657 rm -f conftest.$ac_objext conftest.$ac_ext
1659 ac_cpp='$CPP $CPPFLAGS'
1660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1665 ac_cpp='$CPP $CPPFLAGS'
1666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1669 echo "$as_me:1669: checking how to run the C preprocessor" >&5
1670 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1671 # On Suns, sometimes $CPP names a directory.
1672 if test -n "$CPP" && test -d "$CPP"; then
1675 if test -z "$CPP"; then
1676 if test "${ac_cv_prog_CPP+set}" = set; then
1677 echo $ECHO_N "(cached) $ECHO_C" >&6
1679 # Double quotes because CPP needs to be expanded
1680 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1683 for ac_c_preproc_warn_flag in '' yes
1685 # Use a header file that comes with gcc, so configuring glibc
1686 # with a fresh cross-compiler works.
1687 # On the NeXT, cc -E runs the code through the compiler's parser,
1688 # not just through cpp. "Syntax error" is here to catch this case.
1689 cat >conftest.$ac_ext <<_ACEOF
1690 #line 1690 "configure"
1691 #include "confdefs.h"
1695 if { (eval echo "$as_me:1695: \"$ac_cpp conftest.$ac_ext\"") >&5
1696 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1698 egrep -v '^ *\+' conftest.er1 >conftest.err
1700 cat conftest.err >&5
1701 echo "$as_me:1701: \$? = $ac_status" >&5
1702 (exit $ac_status); } >/dev/null; then
1703 if test -s conftest.err; then
1704 ac_cpp_err=$ac_c_preproc_warn_flag
1711 if test -z "$ac_cpp_err"; then
1714 echo "$as_me: failed program was:" >&5
1715 cat conftest.$ac_ext >&5
1716 # Broken: fails on valid input.
1719 rm -f conftest.err conftest.$ac_ext
1721 # OK, works on sane cases. Now check whether non-existent headers
1722 # can be detected and how.
1723 cat >conftest.$ac_ext <<_ACEOF
1724 #line 1724 "configure"
1725 #include "confdefs.h"
1726 #include <ac_nonexistent.h>
1728 if { (eval echo "$as_me:1728: \"$ac_cpp conftest.$ac_ext\"") >&5
1729 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1731 egrep -v '^ *\+' conftest.er1 >conftest.err
1733 cat conftest.err >&5
1734 echo "$as_me:1734: \$? = $ac_status" >&5
1735 (exit $ac_status); } >/dev/null; then
1736 if test -s conftest.err; then
1737 ac_cpp_err=$ac_c_preproc_warn_flag
1744 if test -z "$ac_cpp_err"; then
1745 # Broken: success on invalid input.
1748 echo "$as_me: failed program was:" >&5
1749 cat conftest.$ac_ext >&5
1750 # Passes both tests.
1754 rm -f conftest.err conftest.$ac_ext
1757 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1758 rm -f conftest.err conftest.$ac_ext
1759 if $ac_preproc_ok; then
1771 echo "$as_me:1771: result: $CPP" >&5
1772 echo "${ECHO_T}$CPP" >&6
1774 for ac_c_preproc_warn_flag in '' yes
1776 # Use a header file that comes with gcc, so configuring glibc
1777 # with a fresh cross-compiler works.
1778 # On the NeXT, cc -E runs the code through the compiler's parser,
1779 # not just through cpp. "Syntax error" is here to catch this case.
1780 cat >conftest.$ac_ext <<_ACEOF
1781 #line 1781 "configure"
1782 #include "confdefs.h"
1786 if { (eval echo "$as_me:1786: \"$ac_cpp conftest.$ac_ext\"") >&5
1787 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1789 egrep -v '^ *\+' conftest.er1 >conftest.err
1791 cat conftest.err >&5
1792 echo "$as_me:1792: \$? = $ac_status" >&5
1793 (exit $ac_status); } >/dev/null; then
1794 if test -s conftest.err; then
1795 ac_cpp_err=$ac_c_preproc_warn_flag
1802 if test -z "$ac_cpp_err"; then
1805 echo "$as_me: failed program was:" >&5
1806 cat conftest.$ac_ext >&5
1807 # Broken: fails on valid input.
1810 rm -f conftest.err conftest.$ac_ext
1812 # OK, works on sane cases. Now check whether non-existent headers
1813 # can be detected and how.
1814 cat >conftest.$ac_ext <<_ACEOF
1815 #line 1815 "configure"
1816 #include "confdefs.h"
1817 #include <ac_nonexistent.h>
1819 if { (eval echo "$as_me:1819: \"$ac_cpp conftest.$ac_ext\"") >&5
1820 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1822 egrep -v '^ *\+' conftest.er1 >conftest.err
1824 cat conftest.err >&5
1825 echo "$as_me:1825: \$? = $ac_status" >&5
1826 (exit $ac_status); } >/dev/null; then
1827 if test -s conftest.err; then
1828 ac_cpp_err=$ac_c_preproc_warn_flag
1835 if test -z "$ac_cpp_err"; then
1836 # Broken: success on invalid input.
1839 echo "$as_me: failed program was:" >&5
1840 cat conftest.$ac_ext >&5
1841 # Passes both tests.
1845 rm -f conftest.err conftest.$ac_ext
1848 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1849 rm -f conftest.err conftest.$ac_ext
1850 if $ac_preproc_ok; then
1853 { { echo "$as_me:1853: error: C preprocessor \"$CPP\" fails sanity check" >&5
1854 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
1855 { (exit 1); exit 1; }; }
1859 ac_cpp='$CPP $CPPFLAGS'
1860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1865 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1866 if test -f $ac_dir/install-sh; then
1868 ac_install_sh="$ac_aux_dir/install-sh -c"
1870 elif test -f $ac_dir/install.sh; then
1872 ac_install_sh="$ac_aux_dir/install.sh -c"
1874 elif test -f $ac_dir/shtool; then
1876 ac_install_sh="$ac_aux_dir/shtool install -c"
1880 if test -z "$ac_aux_dir"; then
1881 { { echo "$as_me:1881: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1882 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1883 { (exit 1); exit 1; }; }
1885 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1886 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1887 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1889 # Find a good install program. We prefer a C program (faster),
1890 # so one script is as good as another. But avoid the broken or
1891 # incompatible versions:
1892 # SysV /etc/install, /usr/sbin/install
1893 # SunOS /usr/etc/install
1894 # IRIX /sbin/install
1896 # AmigaOS /C/install, which installs bootblocks on floppy discs
1897 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1898 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1899 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1900 # ./install, which can be erroneously created by make from ./install.sh.
1901 echo "$as_me:1901: checking for a BSD compatible install" >&5
1902 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1903 if test -z "$INSTALL"; then
1904 if test "${ac_cv_path_install+set}" = set; then
1905 echo $ECHO_N "(cached) $ECHO_C" >&6
1907 ac_save_IFS=$IFS; IFS=$ac_path_separator
1908 for ac_dir in $PATH; do
1910 # Account for people who put trailing slashes in PATH elements.
1912 / | ./ | .// | /cC/* \
1913 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1916 # OSF1 and SCO ODT 3.0 have their own names for install.
1917 # Don't use installbsd from OSF since it installs stuff as root
1919 for ac_prog in ginstall scoinst install; do
1920 if $as_executable_p "$ac_dir/$ac_prog"; then
1921 if test $ac_prog = install &&
1922 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1923 # AIX install. It has an incompatible calling convention.
1925 elif test $ac_prog = install &&
1926 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1927 # program-specific install script used by HP pwplus--don't use.
1930 ac_cv_path_install="$ac_dir/$ac_prog -c"
1940 if test "${ac_cv_path_install+set}" = set; then
1941 INSTALL=$ac_cv_path_install
1943 # As a last resort, use the slow shell script. We don't cache a
1944 # path for INSTALL within a source directory, because that will
1945 # break other packages using the cache if that directory is
1946 # removed, or if the path is relative.
1947 INSTALL=$ac_install_sh
1950 echo "$as_me:1950: result: $INSTALL" >&5
1951 echo "${ECHO_T}$INSTALL" >&6
1953 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1954 # It thinks the first close brace ends the variable substitution.
1955 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1957 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1959 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1961 if test -n "$ac_tool_prefix"; then
1962 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1963 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1964 echo "$as_me:1964: checking for $ac_word" >&5
1965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1966 if test "${ac_cv_prog_RANLIB+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1969 if test -n "$RANLIB"; then
1970 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1972 ac_save_IFS=$IFS; IFS=$ac_path_separator
1974 for ac_dir in $ac_dummy; do
1976 test -z "$ac_dir" && ac_dir=.
1977 $as_executable_p "$ac_dir/$ac_word" || continue
1978 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1979 echo "$as_me:1979: found $ac_dir/$ac_word" >&5
1985 RANLIB=$ac_cv_prog_RANLIB
1986 if test -n "$RANLIB"; then
1987 echo "$as_me:1987: result: $RANLIB" >&5
1988 echo "${ECHO_T}$RANLIB" >&6
1990 echo "$as_me:1990: result: no" >&5
1991 echo "${ECHO_T}no" >&6
1995 if test -z "$ac_cv_prog_RANLIB"; then
1996 ac_ct_RANLIB=$RANLIB
1997 # Extract the first word of "ranlib", so it can be a program name with args.
1998 set dummy ranlib; ac_word=$2
1999 echo "$as_me:1999: checking for $ac_word" >&5
2000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2001 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2002 echo $ECHO_N "(cached) $ECHO_C" >&6
2004 if test -n "$ac_ct_RANLIB"; then
2005 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2007 ac_save_IFS=$IFS; IFS=$ac_path_separator
2009 for ac_dir in $ac_dummy; do
2011 test -z "$ac_dir" && ac_dir=.
2012 $as_executable_p "$ac_dir/$ac_word" || continue
2013 ac_cv_prog_ac_ct_RANLIB="ranlib"
2014 echo "$as_me:2014: found $ac_dir/$ac_word" >&5
2018 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2021 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2022 if test -n "$ac_ct_RANLIB"; then
2023 echo "$as_me:2023: result: $ac_ct_RANLIB" >&5
2024 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2026 echo "$as_me:2026: result: no" >&5
2027 echo "${ECHO_T}no" >&6
2030 RANLIB=$ac_ct_RANLIB
2032 RANLIB="$ac_cv_prog_RANLIB"
2035 if test -n "$ac_tool_prefix"; then
2036 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2037 set dummy ${ac_tool_prefix}ar; ac_word=$2
2038 echo "$as_me:2038: checking for $ac_word" >&5
2039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2040 if test "${ac_cv_prog_AR+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2043 if test -n "$AR"; then
2044 ac_cv_prog_AR="$AR" # Let the user override the test.
2046 ac_save_IFS=$IFS; IFS=$ac_path_separator
2048 for ac_dir in $ac_dummy; do
2050 test -z "$ac_dir" && ac_dir=.
2051 $as_executable_p "$ac_dir/$ac_word" || continue
2052 ac_cv_prog_AR="${ac_tool_prefix}ar"
2053 echo "$as_me:2053: found $ac_dir/$ac_word" >&5
2060 if test -n "$AR"; then
2061 echo "$as_me:2061: result: $AR" >&5
2062 echo "${ECHO_T}$AR" >&6
2064 echo "$as_me:2064: result: no" >&5
2065 echo "${ECHO_T}no" >&6
2069 if test -z "$ac_cv_prog_AR"; then
2071 # Extract the first word of "ar", so it can be a program name with args.
2072 set dummy ar; ac_word=$2
2073 echo "$as_me:2073: checking for $ac_word" >&5
2074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2075 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2078 if test -n "$ac_ct_AR"; then
2079 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2081 ac_save_IFS=$IFS; IFS=$ac_path_separator
2083 for ac_dir in $ac_dummy; do
2085 test -z "$ac_dir" && ac_dir=.
2086 $as_executable_p "$ac_dir/$ac_word" || continue
2087 ac_cv_prog_ac_ct_AR="ar"
2088 echo "$as_me:2088: found $ac_dir/$ac_word" >&5
2092 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
2095 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2096 if test -n "$ac_ct_AR"; then
2097 echo "$as_me:2097: result: $ac_ct_AR" >&5
2098 echo "${ECHO_T}$ac_ct_AR" >&6
2100 echo "$as_me:2100: result: no" >&5
2101 echo "${ECHO_T}no" >&6
2109 echo "$as_me:2109: checking for main in -lnsl" >&5
2110 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
2111 if test "${ac_cv_lib_nsl_main+set}" = set; then
2112 echo $ECHO_N "(cached) $ECHO_C" >&6
2114 ac_check_lib_save_LIBS=$LIBS
2116 cat >conftest.$ac_ext <<_ACEOF
2117 #line 2117 "configure"
2118 #include "confdefs.h"
2128 rm -f conftest.$ac_objext conftest$ac_exeext
2129 if { (eval echo "$as_me:2129: \"$ac_link\"") >&5
2130 (eval $ac_link) 2>&5
2132 echo "$as_me:2132: \$? = $ac_status" >&5
2133 (exit $ac_status); } &&
2134 { ac_try='test -s conftest$ac_exeext'
2135 { (eval echo "$as_me:2135: \"$ac_try\"") >&5
2138 echo "$as_me:2138: \$? = $ac_status" >&5
2139 (exit $ac_status); }; }; then
2140 ac_cv_lib_nsl_main=yes
2142 echo "$as_me: failed program was:" >&5
2143 cat conftest.$ac_ext >&5
2144 ac_cv_lib_nsl_main=no
2146 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2147 LIBS=$ac_check_lib_save_LIBS
2149 echo "$as_me:2149: result: $ac_cv_lib_nsl_main" >&5
2150 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
2151 if test $ac_cv_lib_nsl_main = yes; then
2152 cat >>confdefs.h <<EOF
2153 #define HAVE_LIBNSL 1
2159 ac_cv_lib_nsl=ac_cv_lib_nsl_main
2161 echo "$as_me:2161: checking for main in -lresolv" >&5
2162 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
2163 if test "${ac_cv_lib_resolv_main+set}" = set; then
2164 echo $ECHO_N "(cached) $ECHO_C" >&6
2166 ac_check_lib_save_LIBS=$LIBS
2167 LIBS="-lresolv $LIBS"
2168 cat >conftest.$ac_ext <<_ACEOF
2169 #line 2169 "configure"
2170 #include "confdefs.h"
2180 rm -f conftest.$ac_objext conftest$ac_exeext
2181 if { (eval echo "$as_me:2181: \"$ac_link\"") >&5
2182 (eval $ac_link) 2>&5
2184 echo "$as_me:2184: \$? = $ac_status" >&5
2185 (exit $ac_status); } &&
2186 { ac_try='test -s conftest$ac_exeext'
2187 { (eval echo "$as_me:2187: \"$ac_try\"") >&5
2190 echo "$as_me:2190: \$? = $ac_status" >&5
2191 (exit $ac_status); }; }; then
2192 ac_cv_lib_resolv_main=yes
2194 echo "$as_me: failed program was:" >&5
2195 cat conftest.$ac_ext >&5
2196 ac_cv_lib_resolv_main=no
2198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2199 LIBS=$ac_check_lib_save_LIBS
2201 echo "$as_me:2201: result: $ac_cv_lib_resolv_main" >&5
2202 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
2203 if test $ac_cv_lib_resolv_main = yes; then
2204 cat >>confdefs.h <<EOF
2205 #define HAVE_LIBRESOLV 1
2208 LIBS="-lresolv $LIBS"
2211 ac_cv_lib_resolv=ac_cv_lib_resolv_main
2213 echo "$as_me:2213: checking for main in -lsocket" >&5
2214 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
2215 if test "${ac_cv_lib_socket_main+set}" = set; then
2216 echo $ECHO_N "(cached) $ECHO_C" >&6
2218 ac_check_lib_save_LIBS=$LIBS
2219 LIBS="-lsocket $LIBS"
2220 cat >conftest.$ac_ext <<_ACEOF
2221 #line 2221 "configure"
2222 #include "confdefs.h"
2232 rm -f conftest.$ac_objext conftest$ac_exeext
2233 if { (eval echo "$as_me:2233: \"$ac_link\"") >&5
2234 (eval $ac_link) 2>&5
2236 echo "$as_me:2236: \$? = $ac_status" >&5
2237 (exit $ac_status); } &&
2238 { ac_try='test -s conftest$ac_exeext'
2239 { (eval echo "$as_me:2239: \"$ac_try\"") >&5
2242 echo "$as_me:2242: \$? = $ac_status" >&5
2243 (exit $ac_status); }; }; then
2244 ac_cv_lib_socket_main=yes
2246 echo "$as_me: failed program was:" >&5
2247 cat conftest.$ac_ext >&5
2248 ac_cv_lib_socket_main=no
2250 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2251 LIBS=$ac_check_lib_save_LIBS
2253 echo "$as_me:2253: result: $ac_cv_lib_socket_main" >&5
2254 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
2255 if test $ac_cv_lib_socket_main = yes; then
2256 cat >>confdefs.h <<EOF
2257 #define HAVE_LIBSOCKET 1
2260 LIBS="-lsocket $LIBS"
2263 ac_cv_lib_socket=ac_cv_lib_socket_main
2265 echo "$as_me:2265: checking for main in -ldnet_stub" >&5
2266 echo $ECHO_N "checking for main in -ldnet_stub... $ECHO_C" >&6
2267 if test "${ac_cv_lib_dnet_stub_main+set}" = set; then
2268 echo $ECHO_N "(cached) $ECHO_C" >&6
2270 ac_check_lib_save_LIBS=$LIBS
2271 LIBS="-ldnet_stub $LIBS"
2272 cat >conftest.$ac_ext <<_ACEOF
2273 #line 2273 "configure"
2274 #include "confdefs.h"
2284 rm -f conftest.$ac_objext conftest$ac_exeext
2285 if { (eval echo "$as_me:2285: \"$ac_link\"") >&5
2286 (eval $ac_link) 2>&5
2288 echo "$as_me:2288: \$? = $ac_status" >&5
2289 (exit $ac_status); } &&
2290 { ac_try='test -s conftest$ac_exeext'
2291 { (eval echo "$as_me:2291: \"$ac_try\"") >&5
2294 echo "$as_me:2294: \$? = $ac_status" >&5
2295 (exit $ac_status); }; }; then
2296 ac_cv_lib_dnet_stub_main=yes
2298 echo "$as_me: failed program was:" >&5
2299 cat conftest.$ac_ext >&5
2300 ac_cv_lib_dnet_stub_main=no
2302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2303 LIBS=$ac_check_lib_save_LIBS
2305 echo "$as_me:2305: result: $ac_cv_lib_dnet_stub_main" >&5
2306 echo "${ECHO_T}$ac_cv_lib_dnet_stub_main" >&6
2307 if test $ac_cv_lib_dnet_stub_main = yes; then
2308 cat >>confdefs.h <<EOF
2309 #define HAVE_LIBDNET_STUB 1
2312 LIBS="-ldnet_stub $LIBS"
2315 ac_cv_lib_dnet_stub=ac_cv_lib_dnet_stub_main
2317 echo "$as_me:2317: checking for main in -lieee" >&5
2318 echo $ECHO_N "checking for main in -lieee... $ECHO_C" >&6
2319 if test "${ac_cv_lib_ieee_main+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2322 ac_check_lib_save_LIBS=$LIBS
2324 cat >conftest.$ac_ext <<_ACEOF
2325 #line 2325 "configure"
2326 #include "confdefs.h"
2336 rm -f conftest.$ac_objext conftest$ac_exeext
2337 if { (eval echo "$as_me:2337: \"$ac_link\"") >&5
2338 (eval $ac_link) 2>&5
2340 echo "$as_me:2340: \$? = $ac_status" >&5
2341 (exit $ac_status); } &&
2342 { ac_try='test -s conftest$ac_exeext'
2343 { (eval echo "$as_me:2343: \"$ac_try\"") >&5
2346 echo "$as_me:2346: \$? = $ac_status" >&5
2347 (exit $ac_status); }; }; then
2348 ac_cv_lib_ieee_main=yes
2350 echo "$as_me: failed program was:" >&5
2351 cat conftest.$ac_ext >&5
2352 ac_cv_lib_ieee_main=no
2354 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2355 LIBS=$ac_check_lib_save_LIBS
2357 echo "$as_me:2357: result: $ac_cv_lib_ieee_main" >&5
2358 echo "${ECHO_T}$ac_cv_lib_ieee_main" >&6
2359 if test $ac_cv_lib_ieee_main = yes; then
2360 cat >>confdefs.h <<EOF
2361 #define HAVE_LIBIEEE 1
2367 ac_cv_lib_ieee=ac_cv_lib_ieee_main
2369 echo "$as_me:2369: checking for main in -lpthread" >&5
2370 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
2371 if test "${ac_cv_lib_pthread_main+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2374 ac_check_lib_save_LIBS=$LIBS
2375 LIBS="-lpthread $LIBS"
2376 cat >conftest.$ac_ext <<_ACEOF
2377 #line 2377 "configure"
2378 #include "confdefs.h"
2388 rm -f conftest.$ac_objext conftest$ac_exeext
2389 if { (eval echo "$as_me:2389: \"$ac_link\"") >&5
2390 (eval $ac_link) 2>&5
2392 echo "$as_me:2392: \$? = $ac_status" >&5
2393 (exit $ac_status); } &&
2394 { ac_try='test -s conftest$ac_exeext'
2395 { (eval echo "$as_me:2395: \"$ac_try\"") >&5
2398 echo "$as_me:2398: \$? = $ac_status" >&5
2399 (exit $ac_status); }; }; then
2400 ac_cv_lib_pthread_main=yes
2402 echo "$as_me: failed program was:" >&5
2403 cat conftest.$ac_ext >&5
2404 ac_cv_lib_pthread_main=no
2406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2407 LIBS=$ac_check_lib_save_LIBS
2409 echo "$as_me:2409: result: $ac_cv_lib_pthread_main" >&5
2410 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
2411 if test $ac_cv_lib_pthread_main = yes; then
2413 cat >>confdefs.h <<\EOF
2414 #define HAVE_LIBPTHREAD 1
2419 ac_cv_lib_pthread=ac_cv_lib_pthread_main
2421 echo "$as_me:2421: checking for ANSI C header files" >&5
2422 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2423 if test "${ac_cv_header_stdc+set}" = set; then
2424 echo $ECHO_N "(cached) $ECHO_C" >&6
2426 cat >conftest.$ac_ext <<_ACEOF
2427 #line 2427 "configure"
2428 #include "confdefs.h"
2435 if { (eval echo "$as_me:2435: \"$ac_cpp conftest.$ac_ext\"") >&5
2436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2438 egrep -v '^ *\+' conftest.er1 >conftest.err
2440 cat conftest.err >&5
2441 echo "$as_me:2441: \$? = $ac_status" >&5
2442 (exit $ac_status); } >/dev/null; then
2443 if test -s conftest.err; then
2444 ac_cpp_err=$ac_c_preproc_warn_flag
2451 if test -z "$ac_cpp_err"; then
2452 ac_cv_header_stdc=yes
2454 echo "$as_me: failed program was:" >&5
2455 cat conftest.$ac_ext >&5
2456 ac_cv_header_stdc=no
2458 rm -f conftest.err conftest.$ac_ext
2460 if test $ac_cv_header_stdc = yes; then
2461 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2462 cat >conftest.$ac_ext <<_ACEOF
2463 #line 2463 "configure"
2464 #include "confdefs.h"
2468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2469 egrep "memchr" >/dev/null 2>&1; then
2472 ac_cv_header_stdc=no
2478 if test $ac_cv_header_stdc = yes; then
2479 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2480 cat >conftest.$ac_ext <<_ACEOF
2481 #line 2481 "configure"
2482 #include "confdefs.h"
2486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2487 egrep "free" >/dev/null 2>&1; then
2490 ac_cv_header_stdc=no
2496 if test $ac_cv_header_stdc = yes; then
2497 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2498 if test "$cross_compiling" = yes; then
2501 cat >conftest.$ac_ext <<_ACEOF
2502 #line 2502 "configure"
2503 #include "confdefs.h"
2505 #if ((' ' & 0x0FF) == 0x020)
2506 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2507 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2509 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2510 || ('j' <= (c) && (c) <= 'r') \
2511 || ('s' <= (c) && (c) <= 'z'))
2512 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2515 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2520 for (i = 0; i < 256; i++)
2521 if (XOR (islower (i), ISLOWER (i))
2522 || toupper (i) != TOUPPER (i))
2527 rm -f conftest$ac_exeext
2528 if { (eval echo "$as_me:2528: \"$ac_link\"") >&5
2529 (eval $ac_link) 2>&5
2531 echo "$as_me:2531: \$? = $ac_status" >&5
2532 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2533 { (eval echo "$as_me:2533: \"$ac_try\"") >&5
2536 echo "$as_me:2536: \$? = $ac_status" >&5
2537 (exit $ac_status); }; }; then
2540 echo "$as_me: program exited with status $ac_status" >&5
2541 echo "$as_me: failed program was:" >&5
2542 cat conftest.$ac_ext >&5
2543 ac_cv_header_stdc=no
2545 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2549 echo "$as_me:2549: result: $ac_cv_header_stdc" >&5
2550 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2551 if test $ac_cv_header_stdc = yes; then
2553 cat >>confdefs.h <<\EOF
2554 #define STDC_HEADERS 1
2559 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2561 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2562 inttypes.h stdint.h unistd.h
2564 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2565 echo "$as_me:2565: checking for $ac_header" >&5
2566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
2570 cat >conftest.$ac_ext <<_ACEOF
2571 #line 2571 "configure"
2572 #include "confdefs.h"
2573 $ac_includes_default
2574 #include <$ac_header>
2576 rm -f conftest.$ac_objext
2577 if { (eval echo "$as_me:2577: \"$ac_compile\"") >&5
2578 (eval $ac_compile) 2>&5
2580 echo "$as_me:2580: \$? = $ac_status" >&5
2581 (exit $ac_status); } &&
2582 { ac_try='test -s conftest.$ac_objext'
2583 { (eval echo "$as_me:2583: \"$ac_try\"") >&5
2586 echo "$as_me:2586: \$? = $ac_status" >&5
2587 (exit $ac_status); }; }; then
2588 eval "$as_ac_Header=yes"
2590 echo "$as_me: failed program was:" >&5
2591 cat conftest.$ac_ext >&5
2592 eval "$as_ac_Header=no"
2594 rm -f conftest.$ac_objext conftest.$ac_ext
2596 echo "$as_me:2596: result: `eval echo '${'$as_ac_Header'}'`" >&5
2597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2599 cat >>confdefs.h <<EOF
2600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2606 echo "$as_me:2606: checking for ssize_t" >&5
2607 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
2608 if test "${ac_cv_type_ssize_t+set}" = set; then
2609 echo $ECHO_N "(cached) $ECHO_C" >&6
2611 cat >conftest.$ac_ext <<_ACEOF
2612 #line 2612 "configure"
2613 #include "confdefs.h"
2614 $ac_includes_default
2620 if (sizeof (ssize_t))
2626 rm -f conftest.$ac_objext
2627 if { (eval echo "$as_me:2627: \"$ac_compile\"") >&5
2628 (eval $ac_compile) 2>&5
2630 echo "$as_me:2630: \$? = $ac_status" >&5
2631 (exit $ac_status); } &&
2632 { ac_try='test -s conftest.$ac_objext'
2633 { (eval echo "$as_me:2633: \"$ac_try\"") >&5
2636 echo "$as_me:2636: \$? = $ac_status" >&5
2637 (exit $ac_status); }; }; then
2638 ac_cv_type_ssize_t=yes
2640 echo "$as_me: failed program was:" >&5
2641 cat conftest.$ac_ext >&5
2642 ac_cv_type_ssize_t=no
2644 rm -f conftest.$ac_objext conftest.$ac_ext
2646 echo "$as_me:2646: result: $ac_cv_type_ssize_t" >&5
2647 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
2648 if test $ac_cv_type_ssize_t = yes; then
2652 cat >>confdefs.h <<EOF
2658 echo "$as_me:2658: checking for sun_len in sys/un.h" >&5
2659 echo $ECHO_N "checking for sun_len in sys/un.h... $ECHO_C" >&6
2660 cat >conftest.$ac_ext <<_ACEOF
2661 #line 2661 "configure"
2662 #include "confdefs.h"
2666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2667 egrep "sun_len" >/dev/null 2>&1; then
2668 echo "$as_me:2668: result: yes" >&5
2669 echo "${ECHO_T}yes" >&6
2671 cat >>confdefs.h <<\EOF
2672 #define HAVE_SOCKADDR_UN_SUN_LEN 1
2676 echo "$as_me:2676: result: no" >&5
2677 echo "${ECHO_T}no" >&6
2681 for ac_func in strerror
2683 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2684 echo "$as_me:2684: checking for $ac_func" >&5
2685 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2686 if eval "test \"\${$as_ac_var+set}\" = set"; then
2687 echo $ECHO_N "(cached) $ECHO_C" >&6
2689 cat >conftest.$ac_ext <<_ACEOF
2690 #line 2690 "configure"
2691 #include "confdefs.h"
2692 /* System header to define __stub macros and hopefully few prototypes,
2693 which can conflict with char $ac_func (); below. */
2695 /* Override any gcc2 internal prototype to avoid an error. */
2699 /* We use char because int might match the return type of a gcc2
2700 builtin and then its argument prototype would still apply. */
2707 /* The GNU C library defines this for functions which it implements
2708 to always fail with ENOSYS. Some functions are actually named
2709 something starting with __ and the normal name is an alias. */
2710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2720 rm -f conftest.$ac_objext conftest$ac_exeext
2721 if { (eval echo "$as_me:2721: \"$ac_link\"") >&5
2722 (eval $ac_link) 2>&5
2724 echo "$as_me:2724: \$? = $ac_status" >&5
2725 (exit $ac_status); } &&
2726 { ac_try='test -s conftest$ac_exeext'
2727 { (eval echo "$as_me:2727: \"$ac_try\"") >&5
2730 echo "$as_me:2730: \$? = $ac_status" >&5
2731 (exit $ac_status); }; }; then
2732 eval "$as_ac_var=yes"
2734 echo "$as_me: failed program was:" >&5
2735 cat conftest.$ac_ext >&5
2736 eval "$as_ac_var=no"
2738 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2740 echo "$as_me:2740: result: `eval echo '${'$as_ac_var'}'`" >&5
2741 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2742 if test `eval echo '${'$as_ac_var'}'` = yes; then
2743 cat >>confdefs.h <<EOF
2744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2748 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
2752 echo "$as_me:2752: checking for fpos_t in stdio.h" >&5
2753 echo $ECHO_N "checking for fpos_t in stdio.h... $ECHO_C" >&6
2754 cat >conftest.$ac_ext <<_ACEOF
2755 #line 2755 "configure"
2756 #include "confdefs.h"
2760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2761 egrep "fpos_t" >/dev/null 2>&1; then
2762 echo "$as_me:2762: result: yes" >&5
2763 echo "${ECHO_T}yes" >&6
2765 cat >>confdefs.h <<\EOF
2770 echo "$as_me:2770: result: no" >&5
2771 echo "${ECHO_T}no" >&6
2775 for ac_header in sys/socket.h netdb.h netinet/in.h arpa/inet.h sys/time.h limits.h sys/param.h unistd.h
2777 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2778 echo "$as_me:2778: checking for $ac_header" >&5
2779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2781 echo $ECHO_N "(cached) $ECHO_C" >&6
2783 cat >conftest.$ac_ext <<_ACEOF
2784 #line 2784 "configure"
2785 #include "confdefs.h"
2786 #include <$ac_header>
2788 if { (eval echo "$as_me:2788: \"$ac_cpp conftest.$ac_ext\"") >&5
2789 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2791 egrep -v '^ *\+' conftest.er1 >conftest.err
2793 cat conftest.err >&5
2794 echo "$as_me:2794: \$? = $ac_status" >&5
2795 (exit $ac_status); } >/dev/null; then
2796 if test -s conftest.err; then
2797 ac_cpp_err=$ac_c_preproc_warn_flag
2804 if test -z "$ac_cpp_err"; then
2805 eval "$as_ac_Header=yes"
2807 echo "$as_me: failed program was:" >&5
2808 cat conftest.$ac_ext >&5
2809 eval "$as_ac_Header=no"
2811 rm -f conftest.err conftest.$ac_ext
2813 echo "$as_me:2813: result: `eval echo '${'$as_ac_Header'}'`" >&5
2814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2816 cat >>confdefs.h <<EOF
2817 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2823 echo "$as_me:2823: checking for a fileno() prototype in stdio.h" >&5
2824 echo $ECHO_N "checking for a fileno() prototype in stdio.h... $ECHO_C" >&6
2825 cat >conftest.$ac_ext <<_ACEOF
2826 #line 2826 "configure"
2827 #include "confdefs.h"
2831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2832 egrep "fileno" >/dev/null 2>&1; then
2833 echo "$as_me:2833: result: yes" >&5
2834 echo "${ECHO_T}yes" >&6
2836 cat >>confdefs.h <<\EOF
2837 #define HAVE_FILENO_PROTO 1
2841 echo "$as_me:2841: result: no" >&5
2842 echo "${ECHO_T}no" >&6
2846 if test "$HAVE_SYS_SOCKET_H"; then
2847 echo "$as_me:2847: checking for socklen_t in sys/socket.h" >&5
2848 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
2849 cat >conftest.$ac_ext <<_ACEOF
2850 #line 2850 "configure"
2851 #include "confdefs.h"
2852 #include <sys/socket.h>
2855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2856 egrep "socklen_t" >/dev/null 2>&1; then
2857 echo "$as_me:2857: result: yes" >&5
2858 echo "${ECHO_T}yes" >&6
2860 cat >>confdefs.h <<\EOF
2861 #define HAVE_SOCKLEN 1
2865 echo "$as_me:2865: result: no" >&5
2866 echo "${ECHO_T}no" >&6
2872 #--------------------------------------------------------------------
2873 # Do we need cross-process locking on this platform?
2874 #--------------------------------------------------------------------
2875 echo "$as_me:2875: checking whether cross-process locking is required by accept()" >&5
2876 echo $ECHO_N "checking whether cross-process locking is required by accept()... $ECHO_C" >&6
2877 case "`uname -sr`" in
2878 IRIX\ 5.* | SunOS\ 5.* | UNIX_System_V\ 4.0)
2879 echo "$as_me:2879: result: yes" >&5
2880 echo "${ECHO_T}yes" >&6
2882 cat >>confdefs.h <<\EOF
2883 #define USE_LOCKING 1
2888 echo "$as_me:2888: result: no" >&5
2889 echo "${ECHO_T}no" >&6
2893 #--------------------------------------------------------------------
2894 # Does va_arg(arg, long double) crash the compiler?
2895 # hpux 9.04 compiler does and so does Stratus FTX (uses HP's compiler)
2896 #--------------------------------------------------------------------
2897 echo "$as_me:2897: checking whether va_arg(arg, long double) crashes the compiler" >&5
2898 echo $ECHO_N "checking whether va_arg(arg, long double) crashes the compiler... $ECHO_C" >&6
2899 cat >conftest.$ac_ext <<_ACEOF
2900 #line 2900 "configure"
2901 #include "confdefs.h"
2906 long double lDblArg; va_list arg; lDblArg = va_arg(arg, long double);
2911 rm -f conftest.$ac_objext
2912 if { (eval echo "$as_me:2912: \"$ac_compile\"") >&5
2913 (eval $ac_compile) 2>&5
2915 echo "$as_me:2915: \$? = $ac_status" >&5
2916 (exit $ac_status); } &&
2917 { ac_try='test -s conftest.$ac_objext'
2918 { (eval echo "$as_me:2918: \"$ac_try\"") >&5
2921 echo "$as_me:2921: \$? = $ac_status" >&5
2922 (exit $ac_status); }; }; then
2923 echo "$as_me:2923: result: no" >&5
2924 echo "${ECHO_T}no" >&6
2926 echo "$as_me: failed program was:" >&5
2927 cat conftest.$ac_ext >&5
2928 echo "$as_me:2928: result: yes" >&5
2929 echo "${ECHO_T}yes" >&6
2931 cat >>confdefs.h <<\EOF
2932 #define HAVE_VA_ARG_LONG_DOUBLE_BUG 1
2936 rm -f conftest.$ac_objext conftest.$ac_ext
2938 echo "$as_me:2938: checking for $CC option to accept ANSI C" >&5
2939 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2940 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2941 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 ac_cv_prog_cc_stdc=no
2945 cat >conftest.$ac_ext <<_ACEOF
2946 #line 2946 "configure"
2947 #include "confdefs.h"
2950 #include <sys/types.h>
2951 #include <sys/stat.h>
2952 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2953 struct buf { int x; };
2954 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2955 static char *e (p, i)
2961 static char *f (char * (*g) (char **, int), char **p, ...)
2966 s = g (p, va_arg (v,int));
2970 int test (int i, double x);
2971 struct s1 {int (*f) (int a);};
2972 struct s2 {int (*f) (double a);};
2973 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2979 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2984 # Don't try gcc -ansi; that turns off useful extensions and
2985 # breaks some systems' header files.
2986 # AIX -qlanglvl=ansi
2987 # Ultrix and OSF/1 -std1
2988 # HP-UX 10.20 and later -Ae
2989 # HP-UX older versions -Aa -D_HPUX_SOURCE
2990 # SVR4 -Xc -D__EXTENSIONS__
2991 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2993 CC="$ac_save_CC $ac_arg"
2994 rm -f conftest.$ac_objext
2995 if { (eval echo "$as_me:2995: \"$ac_compile\"") >&5
2996 (eval $ac_compile) 2>&5
2998 echo "$as_me:2998: \$? = $ac_status" >&5
2999 (exit $ac_status); } &&
3000 { ac_try='test -s conftest.$ac_objext'
3001 { (eval echo "$as_me:3001: \"$ac_try\"") >&5
3004 echo "$as_me:3004: \$? = $ac_status" >&5
3005 (exit $ac_status); }; }; then
3006 ac_cv_prog_cc_stdc=$ac_arg
3009 echo "$as_me: failed program was:" >&5
3010 cat conftest.$ac_ext >&5
3012 rm -f conftest.$ac_objext
3014 rm -f conftest.$ac_ext conftest.$ac_objext
3019 case "x$ac_cv_prog_cc_stdc" in
3021 echo "$as_me:3021: result: none needed" >&5
3022 echo "${ECHO_T}none needed" >&6 ;;
3024 echo "$as_me:3024: result: $ac_cv_prog_cc_stdc" >&5
3025 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3026 CC="$CC $ac_cv_prog_cc_stdc" ;;
3029 echo "$as_me:3029: checking for an ANSI C-conforming const" >&5
3030 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3031 if test "${ac_cv_c_const+set}" = set; then
3032 echo $ECHO_N "(cached) $ECHO_C" >&6
3034 cat >conftest.$ac_ext <<_ACEOF
3035 #line 3035 "configure"
3036 #include "confdefs.h"
3041 /* FIXME: Include the comments suggested by Paul. */
3043 /* Ultrix mips cc rejects this. */
3044 typedef int charset[2];
3046 /* SunOS 4.1.1 cc rejects this. */
3047 char const *const *ccp;
3049 /* NEC SVR4.0.2 mips cc rejects this. */
3050 struct point {int x, y;};
3051 static struct point const zero = {0,0};
3052 /* AIX XL C 1.02.0.0 rejects this.
3053 It does not let you subtract one const X* pointer from another in
3054 an arm of an if-expression whose if-part is not a constant
3056 const char *g = "string";
3057 ccp = &g + (g ? g-g : 0);
3058 /* HPUX 7.0 cc rejects these. */
3061 ccp = (char const *const *) p;
3062 { /* SCO 3.2v4 cc rejects this. */
3064 char const *s = 0 ? (char *) 0 : (char const *) 0;
3068 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3070 const int *foo = &x[0];
3073 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3074 typedef const int *iptr;
3078 { /* AIX XL C 1.02.0.0 rejects this saying
3079 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3080 struct s { int j; const int *ap[3]; };
3081 struct s *b; b->j = 5;
3083 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3092 rm -f conftest.$ac_objext
3093 if { (eval echo "$as_me:3093: \"$ac_compile\"") >&5
3094 (eval $ac_compile) 2>&5
3096 echo "$as_me:3096: \$? = $ac_status" >&5
3097 (exit $ac_status); } &&
3098 { ac_try='test -s conftest.$ac_objext'
3099 { (eval echo "$as_me:3099: \"$ac_try\"") >&5
3102 echo "$as_me:3102: \$? = $ac_status" >&5
3103 (exit $ac_status); }; }; then
3106 echo "$as_me: failed program was:" >&5
3107 cat conftest.$ac_ext >&5
3110 rm -f conftest.$ac_objext conftest.$ac_ext
3112 echo "$as_me:3112: result: $ac_cv_c_const" >&5
3113 echo "${ECHO_T}$ac_cv_c_const" >&6
3114 if test $ac_cv_c_const = no; then
3116 cat >>confdefs.h <<\EOF
3122 echo "$as_me:3122: checking for inline" >&5
3123 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3124 if test "${ac_cv_c_inline+set}" = set; then
3125 echo $ECHO_N "(cached) $ECHO_C" >&6
3128 for ac_kw in inline __inline__ __inline; do
3129 cat >conftest.$ac_ext <<_ACEOF
3130 #line 3130 "configure"
3131 #include "confdefs.h"
3133 static $ac_kw int static_foo () {return 0; }
3134 $ac_kw int foo () {return 0; }
3138 rm -f conftest.$ac_objext
3139 if { (eval echo "$as_me:3139: \"$ac_compile\"") >&5
3140 (eval $ac_compile) 2>&5
3142 echo "$as_me:3142: \$? = $ac_status" >&5
3143 (exit $ac_status); } &&
3144 { ac_try='test -s conftest.$ac_objext'
3145 { (eval echo "$as_me:3145: \"$ac_try\"") >&5
3148 echo "$as_me:3148: \$? = $ac_status" >&5
3149 (exit $ac_status); }; }; then
3150 ac_cv_c_inline=$ac_kw; break
3152 echo "$as_me: failed program was:" >&5
3153 cat conftest.$ac_ext >&5
3155 rm -f conftest.$ac_objext conftest.$ac_ext
3159 echo "$as_me:3159: result: $ac_cv_c_inline" >&5
3160 echo "${ECHO_T}$ac_cv_c_inline" >&6
3161 case $ac_cv_c_inline in
3164 cat >>confdefs.h <<\EOF
3168 *) cat >>confdefs.h <<EOF
3169 #define inline $ac_cv_c_inline
3174 #--------------------------------------------------------------------
3175 # This is a little hokie in that it avoids including config.guess
3176 # and config.sub in the distribution, but its been working so far.
3177 # Windows builds don't run configure so we should be safe fixing
3178 # this to 'unix' (at least for now).
3179 #--------------------------------------------------------------------
3184 if test "$GCC"; then
3185 CCDEFS="$CCDEFS -Wall -Wmissing-prototypes"
3188 if test -z "$FCGI_BUILD"; then
3189 ac_config_files="$ac_config_files Makefile libfcgi/Makefile cgi-fcgi/Makefile examples/Makefile"
3193 cat >confcache <<\_ACEOF
3194 # This file is a shell script that caches the results of configure
3195 # tests run on this system so they can be shared between configure
3196 # scripts and configure runs, see configure's option --config-cache.
3197 # It is not useful on other systems. If it contains results you don't
3198 # want to keep, you may remove or edit it.
3200 # config.status only pays attention to the cache file if you give it
3201 # the --recheck option to rerun configure.
3203 # `ac_cv_env_foo' variables (set or unset) will be overriden when
3204 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3209 # The following way of writing the cache mishandles newlines in values,
3210 # but we know of no workaround that is simple, portable, and efficient.
3211 # So, don't put newlines in cache variables' values.
3212 # Ultrix sh set writes to stderr and can't be redirected directly,
3213 # and sets the high bit in the cache file unless we assign to the vars.
3216 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3218 # `set' does not quote correctly, so add quotes (double-quote
3219 # substitution turns \\\\ into \\, and sed turns \\ into \).
3222 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3225 # `set' quotes correctly as required by POSIX, so do not add quotes.
3227 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3234 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3236 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3238 if cmp -s $cache_file confcache; then :; else
3239 if test -w $cache_file; then
3240 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3241 cat confcache >$cache_file
3243 echo "not updating unwritable cache $cache_file"
3248 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3249 # Let make expand exec_prefix.
3250 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3252 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3253 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3254 # trailing colons and then remove the whole line if VPATH becomes empty
3255 # (actually we leave an empty line to preserve line numbers).
3256 if test "x$srcdir" = x.; then
3257 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3258 s/:*\$(srcdir):*/:/;
3259 s/:*\${srcdir}:*/:/;
3261 s/^\([^=]*=[ ]*\):*/\1/;
3267 DEFS=-DHAVE_CONFIG_H
3269 : ${CONFIG_STATUS=./config.status}
3270 ac_clean_files_save=$ac_clean_files
3271 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3272 { echo "$as_me:3272: creating $CONFIG_STATUS" >&5
3273 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3274 cat >$CONFIG_STATUS <<_ACEOF
3276 # Generated automatically by configure.
3277 # Run this file to recreate the current configuration.
3278 # Compiler output produced by configure, useful for debugging
3279 # configure, is in config.log if it exists.
3282 SHELL=\${CONFIG_SHELL-$SHELL}
3283 ac_cs_invocation="\$0 \$@"
3287 cat >>$CONFIG_STATUS <<\_ACEOF
3288 # Be Bourne compatible
3289 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3292 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3296 # Name of the executable.
3297 as_me=`echo "$0" |sed 's,.*[\\/],,'`
3299 if expr a : '\(a\)' >/dev/null 2>&1; then
3305 rm -f conf$$ conf$$.exe conf$$.file
3307 if ln -s conf$$.file conf$$ 2>/dev/null; then
3308 # We could just check for DJGPP; but this test a) works b) is more generic
3309 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3310 if test -f conf$$.exe; then
3311 # Don't use ln at all; we don't have any links
3316 elif ln conf$$.file conf$$ 2>/dev/null; then
3321 rm -f conf$$ conf$$.exe conf$$.file
3323 as_executable_p="test -f"
3325 # Support unset when possible.
3326 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3333 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
3334 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
3335 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
3336 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
3337 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
3338 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
3339 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
3340 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
3343 # We need space, tab and new line, in precisely that order.
3349 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
3355 # Files that config.status was made for.
3356 if test -n "$ac_config_files"; then
3357 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3360 if test -n "$ac_config_headers"; then
3361 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3364 if test -n "$ac_config_links"; then
3365 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3368 if test -n "$ac_config_commands"; then
3369 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3372 cat >>$CONFIG_STATUS <<\EOF
3375 \`$as_me' instantiates files from templates according to the
3376 current configuration.
3378 Usage: $0 [OPTIONS] [FILE]...
3380 -h, --help print this help, then exit
3381 -V, --version print version number, then exit
3382 -d, --debug don't remove temporary files
3383 --recheck update $as_me by reconfiguring in the same conditions
3384 --file=FILE[:TEMPLATE]
3385 instantiate the configuration file FILE
3386 --header=FILE[:TEMPLATE]
3387 instantiate the configuration header FILE
3389 Configuration files:
3392 Configuration headers:
3395 Report bugs to <bug-autoconf@gnu.org>."
3398 cat >>$CONFIG_STATUS <<EOF
3401 configured by $0, generated by GNU Autoconf 2.52,
3402 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3404 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
3405 Free Software Foundation, Inc.
3406 This config.status script is free software; the Free Software Foundation
3407 gives unlimited permission to copy, distribute and modify it."
3412 cat >>$CONFIG_STATUS <<\EOF
3413 # If no file are specified by the user, then we need to provide default
3414 # value. By we need to know if files were specified by the user.
3420 ac_option=`expr "x$1" : 'x\([^=]*\)='`
3421 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3423 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
3427 *) # This is not an option, so the user has probably given explicit
3429 ac_need_defaults=false;;
3433 # Handling of the options.
3435 cat >>$CONFIG_STATUS <<EOF
3436 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3437 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
3438 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
3440 cat >>$CONFIG_STATUS <<\EOF
3441 --version | --vers* | -V )
3442 echo "$ac_cs_version"; exit 0 ;;
3444 # Conflict between --help and --header
3445 { { echo "$as_me:3445: error: ambiguous option: $1
3446 Try \`$0 --help' for more information." >&5
3447 echo "$as_me: error: ambiguous option: $1
3448 Try \`$0 --help' for more information." >&2;}
3449 { (exit 1); exit 1; }; };;
3450 --help | --hel | -h )
3451 echo "$ac_cs_usage"; exit 0 ;;
3452 --debug | --d* | -d )
3454 --file | --fil | --fi | --f )
3456 CONFIG_FILES="$CONFIG_FILES $1"
3457 ac_need_defaults=false;;
3458 --header | --heade | --head | --hea )
3460 CONFIG_HEADERS="$CONFIG_HEADERS $1"
3461 ac_need_defaults=false;;
3464 -*) { { echo "$as_me:3464: error: unrecognized option: $1
3465 Try \`$0 --help' for more information." >&5
3466 echo "$as_me: error: unrecognized option: $1
3467 Try \`$0 --help' for more information." >&2;}
3468 { (exit 1); exit 1; }; } ;;
3470 *) ac_config_targets="$ac_config_targets $1" ;;
3479 ## ----------------------- ##
3480 ## Running config.status. ##
3481 ## ----------------------- ##
3483 This file was extended by $as_me 2.52, executed with
3484 CONFIG_FILES = $CONFIG_FILES
3485 CONFIG_HEADERS = $CONFIG_HEADERS
3486 CONFIG_LINKS = $CONFIG_LINKS
3487 CONFIG_COMMANDS = $CONFIG_COMMANDS
3489 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3494 cat >>$CONFIG_STATUS <<\EOF
3495 for ac_config_target in $ac_config_targets
3497 case "$ac_config_target" in
3498 # Handling of arguments.
3499 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3500 "libfcgi/Makefile" ) CONFIG_FILES="$CONFIG_FILES libfcgi/Makefile" ;;
3501 "cgi-fcgi/Makefile" ) CONFIG_FILES="$CONFIG_FILES cgi-fcgi/Makefile" ;;
3502 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
3503 "fcgi_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS fcgi_config.h" ;;
3504 "include/fcgi_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/fcgi_config.h" ;;
3505 *) { { echo "$as_me:3505: error: invalid argument: $ac_config_target" >&5
3506 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3507 { (exit 1); exit 1; }; };;
3511 # If the user did not use the arguments to specify the items to instantiate,
3512 # then the envvar interface is used. Set only those that are not.
3513 # We use the long form for the default assignment because of an extremely
3514 # bizarre bug on SunOS 4.1.3.
3515 if $ac_need_defaults; then
3516 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3517 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3520 # Create a temporary directory, and hook for its removal unless debugging.
3523 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3524 trap '{ (exit 1); exit 1; }' 1 2 13 15
3527 # Create a (secure) tmp directory for tmp files.
3530 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
3531 test -n "$tmp" && test -d "$tmp"
3534 tmp=$TMPDIR/cs$$-$RANDOM
3535 (umask 077 && mkdir $tmp)
3538 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3539 { (exit 1); exit 1; }
3544 cat >>$CONFIG_STATUS <<EOF
3547 # CONFIG_FILES section.
3550 # No need to generate the scripts if there are no CONFIG_FILES.
3551 # This happens for instance when ./config.status config.h
3552 if test -n "\$CONFIG_FILES"; then
3553 # Protect against being on the right side of a sed subst in config.status.
3554 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3555 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3556 s,@SHELL@,$SHELL,;t t
3557 s,@exec_prefix@,$exec_prefix,;t t
3558 s,@prefix@,$prefix,;t t
3559 s,@program_transform_name@,$program_transform_name,;t t
3560 s,@bindir@,$bindir,;t t
3561 s,@sbindir@,$sbindir,;t t
3562 s,@libexecdir@,$libexecdir,;t t
3563 s,@datadir@,$datadir,;t t
3564 s,@sysconfdir@,$sysconfdir,;t t
3565 s,@sharedstatedir@,$sharedstatedir,;t t
3566 s,@localstatedir@,$localstatedir,;t t
3567 s,@libdir@,$libdir,;t t
3568 s,@includedir@,$includedir,;t t
3569 s,@oldincludedir@,$oldincludedir,;t t
3570 s,@infodir@,$infodir,;t t
3571 s,@mandir@,$mandir,;t t
3572 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3573 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3574 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3575 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3576 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3577 s,@build_alias@,$build_alias,;t t
3578 s,@host_alias@,$host_alias,;t t
3579 s,@target_alias@,$target_alias,;t t
3580 s,@ECHO_C@,$ECHO_C,;t t
3581 s,@ECHO_N@,$ECHO_N,;t t
3582 s,@ECHO_T@,$ECHO_T,;t t
3583 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3587 s,@CFLAGS@,$CFLAGS,;t t
3588 s,@LDFLAGS@,$LDFLAGS,;t t
3589 s,@CPPFLAGS@,$CPPFLAGS,;t t
3590 s,@ac_ct_CC@,$ac_ct_CC,;t t
3591 s,@EXEEXT@,$EXEEXT,;t t
3592 s,@OBJEXT@,$OBJEXT,;t t
3594 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
3595 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
3596 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
3597 s,@RANLIB@,$RANLIB,;t t
3598 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
3600 s,@ac_ct_AR@,$ac_ct_AR,;t t
3601 s,@HAVE_LIBPTHREAD@,$HAVE_LIBPTHREAD,;t t
3602 s,@LIBOBJS@,$LIBOBJS,;t t
3603 s,@SYSTEM@,$SYSTEM,;t t
3605 s,@CCDEFS@,$CCDEFS,;t t
3610 cat >>$CONFIG_STATUS <<\EOF
3611 # Split the substitutions into bite-sized pieces for seds with
3612 # small command number limits, like on Digital OSF/1 and HP-UX.
3614 ac_sed_frag=1 # Number of current file.
3615 ac_beg=1 # First line for current file.
3616 ac_end=$ac_max_sed_lines # Line after last line for current file.
3619 while $ac_more_lines; do
3620 if test $ac_beg -gt 1; then
3621 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3623 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3625 if test ! -s $tmp/subs.frag; then
3628 # The purpose of the label and of the branching condition is to
3629 # speed up the sed processing (if there are no `@' at all, there
3630 # is no need to browse any of the substitutions).
3631 # These are the two extra sed commands mentioned above.
3633 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3634 if test -z "$ac_sed_cmds"; then
3635 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3637 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3639 ac_sed_frag=`expr $ac_sed_frag + 1`
3641 ac_end=`expr $ac_end + $ac_max_sed_lines`
3644 if test -z "$ac_sed_cmds"; then
3647 fi # test -n "$CONFIG_FILES"
3650 cat >>$CONFIG_STATUS <<\EOF
3651 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3652 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3654 - | *:- | *:-:* ) # input from stdin
3656 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3657 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3658 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3659 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3660 * ) ac_file_in=$ac_file.in ;;
3663 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3664 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3665 X"$ac_file" : 'X\(//\)[^/]' \| \
3666 X"$ac_file" : 'X\(//\)$' \| \
3667 X"$ac_file" : 'X\(/\)' \| \
3668 . : '\(.\)' 2>/dev/null ||
3670 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3671 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3672 /^X\(\/\/\)$/{ s//\1/; q; }
3673 /^X\(\/\).*/{ s//\1/; q; }
3675 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3677 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
3681 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
3682 case $as_mkdir_dir in
3683 # Skip DOS drivespec
3684 ?:) as_incr_dir=$as_mkdir_dir ;;
3686 as_incr_dir=$as_incr_dir/$as_mkdir_dir
3687 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
3692 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
3693 # A "../" for each directory in $ac_dir_suffix.
3694 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
3696 ac_dir_suffix= ac_dots=
3701 if test -z "$ac_dots"; then
3704 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
3707 ac_srcdir=$srcdir$ac_dir_suffix;
3708 ac_top_srcdir=$srcdir ;;
3710 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
3711 ac_top_srcdir=$ac_dots$srcdir ;;
3715 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3716 *) ac_INSTALL=$ac_dots$INSTALL ;;
3719 if test x"$ac_file" != x-; then
3720 { echo "$as_me:3720: creating $ac_file" >&5
3721 echo "$as_me: creating $ac_file" >&6;}
3724 # Let's still pretend it is `configure' which instantiates (i.e., don't
3725 # use $as_me), people would be surprised to read:
3726 # /* config.h. Generated automatically by config.status. */
3727 configure_input="Generated automatically from `echo $ac_file_in |
3728 sed 's,.*/,,'` by configure."
3730 # First look for the input files in the build tree, otherwise in the
3732 ac_file_inputs=`IFS=:
3733 for f in $ac_file_in; do
3735 -) echo $tmp/stdin ;;
3737 # Absolute (can't be DOS-style, as IFS=:)
3738 test -f "$f" || { { echo "$as_me:3738: error: cannot find input file: $f" >&5
3739 echo "$as_me: error: cannot find input file: $f" >&2;}
3740 { (exit 1); exit 1; }; }
3743 if test -f "$f"; then
3746 elif test -f "$srcdir/$f"; then
3751 { { echo "$as_me:3751: error: cannot find input file: $f" >&5
3752 echo "$as_me: error: cannot find input file: $f" >&2;}
3753 { (exit 1); exit 1; }; }
3756 done` || { (exit 1); exit 1; }
3758 cat >>$CONFIG_STATUS <<EOF
3762 cat >>$CONFIG_STATUS <<\EOF
3764 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3765 s,@configure_input@,$configure_input,;t t
3766 s,@srcdir@,$ac_srcdir,;t t
3767 s,@top_srcdir@,$ac_top_srcdir,;t t
3768 s,@INSTALL@,$ac_INSTALL,;t t
3769 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3771 if test x"$ac_file" != x-; then
3772 mv $tmp/out $ac_file
3780 cat >>$CONFIG_STATUS <<\EOF
3783 # CONFIG_HEADER section.
3786 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3787 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3789 # ac_d sets the value in "#define NAME VALUE" lines.
3790 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3791 ac_dB='[ ].*$,\1#\2'
3794 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3795 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3796 ac_uB='$,\1#\2define\3'
3800 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
3801 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3803 - | *:- | *:-:* ) # input from stdin
3805 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3806 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3807 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3808 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3809 * ) ac_file_in=$ac_file.in ;;
3812 test x"$ac_file" != x- && { echo "$as_me:3812: creating $ac_file" >&5
3813 echo "$as_me: creating $ac_file" >&6;}
3815 # First look for the input files in the build tree, otherwise in the
3817 ac_file_inputs=`IFS=:
3818 for f in $ac_file_in; do
3820 -) echo $tmp/stdin ;;
3822 # Absolute (can't be DOS-style, as IFS=:)
3823 test -f "$f" || { { echo "$as_me:3823: error: cannot find input file: $f" >&5
3824 echo "$as_me: error: cannot find input file: $f" >&2;}
3825 { (exit 1); exit 1; }; }
3828 if test -f "$f"; then
3831 elif test -f "$srcdir/$f"; then
3836 { { echo "$as_me:3836: error: cannot find input file: $f" >&5
3837 echo "$as_me: error: cannot find input file: $f" >&2;}
3838 { (exit 1); exit 1; }; }
3841 done` || { (exit 1); exit 1; }
3842 # Remove the trailing spaces.
3843 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
3847 # Transform confdefs.h into two sed scripts, `conftest.defines' and
3848 # `conftest.undefs', that substitutes the proper values into
3849 # config.h.in to produce config.h. The first handles `#define'
3850 # templates, and the second `#undef' templates.
3851 # And first: Protect against being on the right side of a sed subst in
3852 # config.status. Protect against being in an unquoted here document
3854 rm -f conftest.defines conftest.undefs
3855 # Using a here document instead of a string reduces the quoting nightmare.
3856 # Putting comments in sed scripts is not portable.
3858 # `end' is used to avoid that the second main sed command (meant for
3859 # 0-ary CPP macros) applies to n-ary macro definitions.
3860 # See the Autoconf documentation for `clear'.
3861 cat >confdef2sed.sed <<\EOF
3866 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
3868 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
3871 # If some macros were called several times there might be several times
3872 # the same #defines, which is useless. Nevertheless, we may not want to
3873 # sort them, since we want the *last* AC-DEFINE to be honored.
3874 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
3875 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
3876 rm -f confdef2sed.sed
3878 # This sed command replaces #undef with comments. This is necessary, for
3879 # example, in the case of _POSIX_SOURCE, which is predefined and required
3880 # on some systems where configure will not decide to define it.
3881 cat >>conftest.undefs <<\EOF
3882 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
3885 # Break up conftest.defines because some shells have a limit on the size
3886 # of here documents, and old seds have small limits too (100 cmds).
3887 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
3888 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
3889 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
3890 echo ' :' >>$CONFIG_STATUS
3892 while grep . conftest.defines >/dev/null
3894 # Write a limited-size here document to $tmp/defines.sed.
3895 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
3896 # Speed up: don't consider the non `#define' lines.
3897 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
3898 # Work around the forget-to-reset-the-flag bug.
3899 echo 't clr' >>$CONFIG_STATUS
3900 echo ': clr' >>$CONFIG_STATUS
3901 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
3903 sed -f $tmp/defines.sed $tmp/in >$tmp/out
3907 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
3908 rm -f conftest.defines
3909 mv conftest.tail conftest.defines
3911 rm -f conftest.defines
3912 echo ' fi # egrep' >>$CONFIG_STATUS
3913 echo >>$CONFIG_STATUS
3915 # Break up conftest.undefs because some shells have a limit on the size
3916 # of here documents, and old seds have small limits too (100 cmds).
3917 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
3919 while grep . conftest.undefs >/dev/null
3921 # Write a limited-size here document to $tmp/undefs.sed.
3922 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
3923 # Speed up: don't consider the non `#undef'
3924 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
3925 # Work around the forget-to-reset-the-flag bug.
3926 echo 't clr' >>$CONFIG_STATUS
3927 echo ': clr' >>$CONFIG_STATUS
3928 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
3930 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
3934 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
3935 rm -f conftest.undefs
3936 mv conftest.tail conftest.undefs
3938 rm -f conftest.undefs
3940 cat >>$CONFIG_STATUS <<\EOF
3941 # Let's still pretend it is `configure' which instantiates (i.e., don't
3942 # use $as_me), people would be surprised to read:
3943 # /* config.h. Generated automatically by config.status. */
3944 if test x"$ac_file" = x-; then
3945 echo "/* Generated automatically by configure. */" >$tmp/config.h
3947 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
3949 cat $tmp/in >>$tmp/config.h
3951 if test x"$ac_file" != x-; then
3952 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
3953 { echo "$as_me:3953: $ac_file is unchanged" >&5
3954 echo "$as_me: $ac_file is unchanged" >&6;}
3956 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3957 X"$ac_file" : 'X\(//\)[^/]' \| \
3958 X"$ac_file" : 'X\(//\)$' \| \
3959 X"$ac_file" : 'X\(/\)' \| \
3960 . : '\(.\)' 2>/dev/null ||
3962 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3963 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3964 /^X\(\/\/\)$/{ s//\1/; q; }
3965 /^X\(\/\).*/{ s//\1/; q; }
3967 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3969 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
3973 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
3974 case $as_mkdir_dir in
3975 # Skip DOS drivespec
3976 ?:) as_incr_dir=$as_mkdir_dir ;;
3978 as_incr_dir=$as_incr_dir/$as_mkdir_dir
3979 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
3986 mv $tmp/config.h $ac_file
3995 cat >>$CONFIG_STATUS <<\EOF
3997 { (exit 0); exit 0; }
3999 chmod +x $CONFIG_STATUS
4000 ac_clean_files=$ac_clean_files_save
4002 # configure is writing to config.log, and then calls config.status.
4003 # config.status does its own redirection, appending to config.log.
4004 # Unfortunately, on DOS this fails, as config.log is still kept open
4005 # by configure, so config.status won't be able to write to it; its
4006 # output is simply discarded. So we exec the FD to /dev/null,
4007 # effectively closing config.log, so it can be properly (re)opened and
4008 # appended to by config.status. When coming back to configure, we
4009 # need to make the FD available again.
4010 if test "$no_create" != yes; then
4013 $SHELL $CONFIG_STATUS || ac_cs_success=false
4015 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4016 # would make configure fail if this is the last instruction.
4017 $ac_cs_success || { (exit 1); exit 1; }