3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-xferlog Enable transfer log support"
17 --enable-ascii Enable ASCII mode support"
19 --enable-fullscreen Run in fullscreen mode (implies --disable-fork)"
21 --enable-fork Make the server fork into the background"
23 --enable-upload Enable upload support"
25 --enable-stat Enable STAT command (see README first)"
27 --enable-dcache Enable directory listing cache"
29 --enable-message Enable .message files etc."
31 --enable-shadow Enable shadow password support"
33 --enable-nonroot Do not need root access (EXPERIMENTAL)"
35 --with-linux-sendfile Force sendfile() support"
37 # Initialize some variables set by options.
38 # The variables have the same names as the options, with
39 # dashes changed to underlines.
41 cache_file=./config.cache
50 program_transform_name=s,x,x,
58 bindir='${exec_prefix}/bin'
59 sbindir='${exec_prefix}/sbin'
60 libexecdir='${exec_prefix}/libexec'
61 datadir='${prefix}/share'
62 sysconfdir='${prefix}/etc'
63 sharedstatedir='${prefix}/com'
64 localstatedir='${prefix}/var'
65 libdir='${exec_prefix}/lib'
66 includedir='${prefix}/include'
67 oldincludedir='/usr/include'
68 infodir='${prefix}/info'
69 mandir='${prefix}/man'
71 # Initialize some other variables.
74 SHELL=${CONFIG_SHELL-/bin/sh}
75 # Maximum number of lines to put in a shell here document.
82 # If the previous option needs an argument, assign it.
83 if test -n "$ac_prev"; then
84 eval "$ac_prev=\$ac_option"
90 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
94 # Accept the important Cygnus configure options, so we can diagnose typos.
98 -bindir | --bindir | --bindi | --bind | --bin | --bi)
100 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
101 bindir="$ac_optarg" ;;
103 -build | --build | --buil | --bui | --bu)
105 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
106 build="$ac_optarg" ;;
108 -cache-file | --cache-file | --cache-fil | --cache-fi \
109 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
110 ac_prev=cache_file ;;
111 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
112 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
113 cache_file="$ac_optarg" ;;
115 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
117 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
119 datadir="$ac_optarg" ;;
121 -disable-* | --disable-*)
122 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
123 # Reject names that are not valid shell variable names.
124 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
125 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
127 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128 eval "enable_${ac_feature}=no" ;;
130 -enable-* | --enable-*)
131 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
132 # Reject names that are not valid shell variable names.
133 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
136 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
141 eval "enable_${ac_feature}='$ac_optarg'" ;;
143 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
144 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
145 | --exec | --exe | --ex)
146 ac_prev=exec_prefix ;;
147 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
148 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
149 | --exec=* | --exe=* | --ex=*)
150 exec_prefix="$ac_optarg" ;;
152 -gas | --gas | --ga | --g)
153 # Obsolete; use --with-gas.
156 -help | --help | --hel | --he)
157 # Omit some internal or obsolete options to make the list less imposing.
158 # This message is too long to be a string in the A/UX 3.1 sh.
160 Usage: configure [options] [host]
161 Options: [defaults in brackets after descriptions]
163 --cache-file=FILE cache test results in FILE
164 --help print this message
165 --no-create do not create output files
166 --quiet, --silent do not print \`checking...' messages
167 --version print the version of autoconf that created configure
168 Directory and file names:
169 --prefix=PREFIX install architecture-independent files in PREFIX
171 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
173 --bindir=DIR user executables in DIR [EPREFIX/bin]
174 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
175 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
176 --datadir=DIR read-only architecture-independent data in DIR
178 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
179 --sharedstatedir=DIR modifiable architecture-independent data in DIR
181 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
182 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
183 --includedir=DIR C header files in DIR [PREFIX/include]
184 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
185 --infodir=DIR info documentation in DIR [PREFIX/info]
186 --mandir=DIR man documentation in DIR [PREFIX/man]
187 --srcdir=DIR find the sources in DIR [configure dir or ..]
188 --program-prefix=PREFIX prepend PREFIX to installed program names
189 --program-suffix=SUFFIX append SUFFIX to installed program names
190 --program-transform-name=PROGRAM
191 run sed PROGRAM on installed program names
195 --build=BUILD configure for building on BUILD [BUILD=HOST]
196 --host=HOST configure for HOST [guessed]
197 --target=TARGET configure for TARGET [TARGET=HOST]
198 Features and packages:
199 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
200 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
201 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
202 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
203 --x-includes=DIR X include files are in DIR
204 --x-libraries=DIR X library files are in DIR
206 if test -n "$ac_help"; then
207 echo "--enable and --with options recognized:$ac_help"
211 -host | --host | --hos | --ho)
213 -host=* | --host=* | --hos=* | --ho=*)
216 -includedir | --includedir | --includedi | --included | --include \
217 | --includ | --inclu | --incl | --inc)
218 ac_prev=includedir ;;
219 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
220 | --includ=* | --inclu=* | --incl=* | --inc=*)
221 includedir="$ac_optarg" ;;
223 -infodir | --infodir | --infodi | --infod | --info | --inf)
225 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
226 infodir="$ac_optarg" ;;
228 -libdir | --libdir | --libdi | --libd)
230 -libdir=* | --libdir=* | --libdi=* | --libd=*)
231 libdir="$ac_optarg" ;;
233 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
234 | --libexe | --libex | --libe)
235 ac_prev=libexecdir ;;
236 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
237 | --libexe=* | --libex=* | --libe=*)
238 libexecdir="$ac_optarg" ;;
240 -localstatedir | --localstatedir | --localstatedi | --localstated \
241 | --localstate | --localstat | --localsta | --localst \
242 | --locals | --local | --loca | --loc | --lo)
243 ac_prev=localstatedir ;;
244 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
245 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
246 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
247 localstatedir="$ac_optarg" ;;
249 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
251 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
252 mandir="$ac_optarg" ;;
255 # Obsolete; use --without-fp.
258 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
262 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
263 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
266 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
267 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
268 | --oldin | --oldi | --old | --ol | --o)
269 ac_prev=oldincludedir ;;
270 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
271 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
272 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
273 oldincludedir="$ac_optarg" ;;
275 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
277 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
278 prefix="$ac_optarg" ;;
280 -program-prefix | --program-prefix | --program-prefi | --program-pref \
281 | --program-pre | --program-pr | --program-p)
282 ac_prev=program_prefix ;;
283 -program-prefix=* | --program-prefix=* | --program-prefi=* \
284 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
285 program_prefix="$ac_optarg" ;;
287 -program-suffix | --program-suffix | --program-suffi | --program-suff \
288 | --program-suf | --program-su | --program-s)
289 ac_prev=program_suffix ;;
290 -program-suffix=* | --program-suffix=* | --program-suffi=* \
291 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
292 program_suffix="$ac_optarg" ;;
294 -program-transform-name | --program-transform-name \
295 | --program-transform-nam | --program-transform-na \
296 | --program-transform-n | --program-transform- \
297 | --program-transform | --program-transfor \
298 | --program-transfo | --program-transf \
299 | --program-trans | --program-tran \
300 | --progr-tra | --program-tr | --program-t)
301 ac_prev=program_transform_name ;;
302 -program-transform-name=* | --program-transform-name=* \
303 | --program-transform-nam=* | --program-transform-na=* \
304 | --program-transform-n=* | --program-transform-=* \
305 | --program-transform=* | --program-transfor=* \
306 | --program-transfo=* | --program-transf=* \
307 | --program-trans=* | --program-tran=* \
308 | --progr-tra=* | --program-tr=* | --program-t=*)
309 program_transform_name="$ac_optarg" ;;
311 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
312 | -silent | --silent | --silen | --sile | --sil)
315 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
317 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
319 sbindir="$ac_optarg" ;;
321 -sharedstatedir | --sharedstatedir | --sharedstatedi \
322 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
323 | --sharedst | --shareds | --shared | --share | --shar \
325 ac_prev=sharedstatedir ;;
326 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
327 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
328 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
330 sharedstatedir="$ac_optarg" ;;
332 -site | --site | --sit)
334 -site=* | --site=* | --sit=*)
337 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
339 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
340 srcdir="$ac_optarg" ;;
342 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
343 | --syscon | --sysco | --sysc | --sys | --sy)
344 ac_prev=sysconfdir ;;
345 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
346 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
347 sysconfdir="$ac_optarg" ;;
349 -target | --target | --targe | --targ | --tar | --ta | --t)
351 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
352 target="$ac_optarg" ;;
354 -v | -verbose | --verbose | --verbos | --verbo | --verb)
357 -version | --version | --versio | --versi | --vers)
358 echo "configure generated by autoconf version 2.13"
362 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
363 # Reject names that are not valid shell variable names.
364 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
365 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
367 ac_package=`echo $ac_package| sed 's/-/_/g'`
372 eval "with_${ac_package}='$ac_optarg'" ;;
374 -without-* | --without-*)
375 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
376 # Reject names that are not valid shell variable names.
377 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
378 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
380 ac_package=`echo $ac_package| sed 's/-/_/g'`
381 eval "with_${ac_package}=no" ;;
384 # Obsolete; use --with-x.
387 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
388 | --x-incl | --x-inc | --x-in | --x-i)
389 ac_prev=x_includes ;;
390 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
391 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
392 x_includes="$ac_optarg" ;;
394 -x-libraries | --x-libraries | --x-librarie | --x-librari \
395 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
396 ac_prev=x_libraries ;;
397 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
398 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
399 x_libraries="$ac_optarg" ;;
401 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
405 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
406 echo "configure: warning: $ac_option: invalid host type" 1>&2
408 if test "x$nonopt" != xNONE; then
409 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
417 if test -n "$ac_prev"; then
418 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
421 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
423 # File descriptor usage:
426 # 2 errors and warnings
427 # 3 some systems may open it to /dev/tty
428 # 4 used on the Kubota Titan
429 # 6 checking for... messages and results
430 # 5 compiler messages saved in config.log
431 if test "$silent" = yes; then
439 This file contains any messages produced by compilers while
440 running configure, to aid debugging if configure makes a mistake.
443 # Strip out --no-create and --no-recursion so they do not pile up.
444 # Also quote any args containing shell metacharacters.
449 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
450 | --no-cr | --no-c) ;;
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
453 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
454 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
455 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
460 # Only set these to C if already set. These must not be set unconditionally
461 # because not all systems understand e.g. LANG=C (notably SCO).
462 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
463 # Non-C LC_CTYPE values break the ctype check.
464 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
465 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
466 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
467 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
469 # confdefs.h avoids OS command line length limits that DEFS can exceed.
470 rm -rf conftest* confdefs.h
471 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
474 # A filename unique to this package, relative to the directory that
475 # configure is in, which we can look for to find out if srcdir is correct.
476 ac_unique_file=cmds.c
478 # Find the source files, if location was not specified.
479 if test -z "$srcdir"; then
480 ac_srcdir_defaulted=yes
481 # Try the directory containing this script, then its parent.
483 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
484 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
486 if test ! -r $srcdir/$ac_unique_file; then
490 ac_srcdir_defaulted=no
492 if test ! -r $srcdir/$ac_unique_file; then
493 if test "$ac_srcdir_defaulted" = yes; then
494 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
496 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
499 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
501 # Prefer explicitly selected file to automatically selected ones.
502 if test -z "$CONFIG_SITE"; then
503 if test "x$prefix" != xNONE; then
504 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
506 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
509 for ac_site_file in $CONFIG_SITE; do
510 if test -r "$ac_site_file"; then
511 echo "loading site script $ac_site_file"
516 if test -r "$cache_file"; then
517 echo "loading cache $cache_file"
520 echo "creating cache $cache_file"
525 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
526 ac_cpp='$CPP $CPPFLAGS'
527 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
528 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
529 cross_compiling=$ac_cv_prog_cc_cross
533 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
534 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
535 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
542 ac_n= ac_c='\c' ac_t=
546 if test "x$prefix" = xNONE; then
547 echo $ac_n "checking for prefix by $ac_c" 1>&6
548 # Extract the first word of "ftpd", so it can be a program name with args.
549 set dummy ftpd; ac_word=$2
550 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
551 echo "configure:552: checking for $ac_word" >&5
552 if eval "test \"`echo '$''{'ac_cv_path_FTPD'+set}'`\" = set"; then
553 echo $ac_n "(cached) $ac_c" 1>&6
557 ac_cv_path_FTPD="$FTPD" # Let the user override the test with a path.
560 ac_cv_path_FTPD="$FTPD" # Let the user override the test with a dos path.
563 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
565 for ac_dir in $ac_dummy; do
566 test -z "$ac_dir" && ac_dir=.
567 if test -f $ac_dir/$ac_word; then
568 ac_cv_path_FTPD="$ac_dir/$ac_word"
576 FTPD="$ac_cv_path_FTPD"
577 if test -n "$FTPD"; then
578 echo "$ac_t""$FTPD" 1>&6
580 echo "$ac_t""no" 1>&6
583 if test -n "$ac_cv_path_FTPD"; then
584 prefix=`echo $ac_cv_path_FTPD|sed 's%/[^/][^/]*//*[^/][^/]*$%%'`
589 # Extract the first word of "gcc", so it can be a program name with args.
590 set dummy gcc; ac_word=$2
591 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
592 echo "configure:593: checking for $ac_word" >&5
593 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
594 echo $ac_n "(cached) $ac_c" 1>&6
596 if test -n "$CC"; then
597 ac_cv_prog_CC="$CC" # Let the user override the test.
599 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
601 for ac_dir in $ac_dummy; do
602 test -z "$ac_dir" && ac_dir=.
603 if test -f $ac_dir/$ac_word; then
612 if test -n "$CC"; then
613 echo "$ac_t""$CC" 1>&6
615 echo "$ac_t""no" 1>&6
618 if test -z "$CC"; then
619 # Extract the first word of "cc", so it can be a program name with args.
620 set dummy cc; ac_word=$2
621 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
622 echo "configure:623: checking for $ac_word" >&5
623 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
624 echo $ac_n "(cached) $ac_c" 1>&6
626 if test -n "$CC"; then
627 ac_cv_prog_CC="$CC" # Let the user override the test.
629 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
632 for ac_dir in $ac_dummy; do
633 test -z "$ac_dir" && ac_dir=.
634 if test -f $ac_dir/$ac_word; then
635 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
644 if test $ac_prog_rejected = yes; then
645 # We found a bogon in the path, so make sure we never use it.
646 set dummy $ac_cv_prog_CC
648 if test $# -gt 0; then
649 # We chose a different compiler from the bogus one.
650 # However, it has the same basename, so the bogon will be chosen
651 # first if we set CC to just the basename; use the full file name.
653 set dummy "$ac_dir/$ac_word" "$@"
661 if test -n "$CC"; then
662 echo "$ac_t""$CC" 1>&6
664 echo "$ac_t""no" 1>&6
667 if test -z "$CC"; then
670 # Extract the first word of "cl", so it can be a program name with args.
671 set dummy cl; ac_word=$2
672 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
673 echo "configure:674: checking for $ac_word" >&5
674 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
675 echo $ac_n "(cached) $ac_c" 1>&6
677 if test -n "$CC"; then
678 ac_cv_prog_CC="$CC" # Let the user override the test.
680 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
682 for ac_dir in $ac_dummy; do
683 test -z "$ac_dir" && ac_dir=.
684 if test -f $ac_dir/$ac_word; then
693 if test -n "$CC"; then
694 echo "$ac_t""$CC" 1>&6
696 echo "$ac_t""no" 1>&6
701 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
704 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
705 echo "configure:706: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
708 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
709 ac_cpp='$CPP $CPPFLAGS'
710 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
711 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
712 cross_compiling=$ac_cv_prog_cc_cross
714 cat > conftest.$ac_ext << EOF
716 #line 717 "configure"
717 #include "confdefs.h"
721 if { (eval echo configure:722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
722 ac_cv_prog_cc_works=yes
723 # If we can't run a trivial program, we are probably using a cross compiler.
724 if (./conftest; exit) 2>/dev/null; then
725 ac_cv_prog_cc_cross=no
727 ac_cv_prog_cc_cross=yes
730 echo "configure: failed program was:" >&5
731 cat conftest.$ac_ext >&5
732 ac_cv_prog_cc_works=no
736 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
737 ac_cpp='$CPP $CPPFLAGS'
738 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
739 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
740 cross_compiling=$ac_cv_prog_cc_cross
742 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
743 if test $ac_cv_prog_cc_works = no; then
744 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
746 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
747 echo "configure:748: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
748 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
749 cross_compiling=$ac_cv_prog_cc_cross
751 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
752 echo "configure:753: checking whether we are using GNU C" >&5
753 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
754 echo $ac_n "(cached) $ac_c" 1>&6
756 cat > conftest.c <<EOF
761 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
768 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
770 if test $ac_cv_prog_gcc = yes; then
776 ac_test_CFLAGS="${CFLAGS+set}"
777 ac_save_CFLAGS="$CFLAGS"
779 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
780 echo "configure:781: checking whether ${CC-cc} accepts -g" >&5
781 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
782 echo $ac_n "(cached) $ac_c" 1>&6
784 echo 'void f(){}' > conftest.c
785 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
794 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
795 if test "$ac_test_CFLAGS" = set; then
796 CFLAGS="$ac_save_CFLAGS"
797 elif test $ac_cv_prog_cc_g = yes; then
798 if test "$GCC" = yes; then
804 if test "$GCC" = yes; then
815 echo $ac_n "checking for working const""... $ac_c" 1>&6
816 echo "configure:817: checking for working const" >&5
817 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
818 echo $ac_n "(cached) $ac_c" 1>&6
820 cat > conftest.$ac_ext <<EOF
821 #line 822 "configure"
822 #include "confdefs.h"
826 /* Ultrix mips cc rejects this. */
827 typedef int charset[2]; const charset x;
828 /* SunOS 4.1.1 cc rejects this. */
829 char const *const *ccp;
831 /* NEC SVR4.0.2 mips cc rejects this. */
832 struct point {int x, y;};
833 static struct point const zero = {0,0};
834 /* AIX XL C 1.02.0.0 rejects this.
835 It does not let you subtract one const X* pointer from another in an arm
836 of an if-expression whose if-part is not a constant expression */
837 const char *g = "string";
838 ccp = &g + (g ? g-g : 0);
839 /* HPUX 7.0 cc rejects these. */
842 ccp = (char const *const *) p;
843 { /* SCO 3.2v4 cc rejects this. */
845 char const *s = 0 ? (char *) 0 : (char const *) 0;
849 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
851 const int *foo = &x[0];
854 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
855 typedef const int *iptr;
859 { /* AIX XL C 1.02.0.0 rejects this saying
860 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
861 struct s { int j; const int *ap[3]; };
862 struct s *b; b->j = 5;
864 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
870 if { (eval echo configure:871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
874 echo "configure: failed program was:" >&5
875 cat conftest.$ac_ext >&5
882 echo "$ac_t""$ac_cv_c_const" 1>&6
883 if test $ac_cv_c_const = no; then
884 cat >> confdefs.h <<\EOF
890 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
891 echo "configure:892: checking how to run the C preprocessor" >&5
892 # On Suns, sometimes $CPP names a directory.
893 if test -n "$CPP" && test -d "$CPP"; then
896 if test -z "$CPP"; then
897 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
898 echo $ac_n "(cached) $ac_c" 1>&6
900 # This must be in double quotes, not single quotes, because CPP may get
901 # substituted into the Makefile and "${CC-cc}" will confuse make.
903 # On the NeXT, cc -E runs the code through the compiler's parser,
904 # not just through cpp.
905 cat > conftest.$ac_ext <<EOF
906 #line 907 "configure"
907 #include "confdefs.h"
911 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
912 { (eval echo configure:913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
913 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
914 if test -z "$ac_err"; then
918 echo "configure: failed program was:" >&5
919 cat conftest.$ac_ext >&5
921 CPP="${CC-cc} -E -traditional-cpp"
922 cat > conftest.$ac_ext <<EOF
923 #line 924 "configure"
924 #include "confdefs.h"
928 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
929 { (eval echo configure:930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
930 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
931 if test -z "$ac_err"; then
935 echo "configure: failed program was:" >&5
936 cat conftest.$ac_ext >&5
938 CPP="${CC-cc} -nologo -E"
939 cat > conftest.$ac_ext <<EOF
940 #line 941 "configure"
941 #include "confdefs.h"
945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
946 { (eval echo configure:947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
947 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
948 if test -z "$ac_err"; then
952 echo "configure: failed program was:" >&5
953 cat conftest.$ac_ext >&5
962 ac_cv_prog_CPP="$CPP"
964 CPP="$ac_cv_prog_CPP"
966 ac_cv_prog_CPP="$CPP"
968 echo "$ac_t""$CPP" 1>&6
970 for ac_hdr in unistd.h
972 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
973 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
974 echo "configure:975: checking for $ac_hdr" >&5
975 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
976 echo $ac_n "(cached) $ac_c" 1>&6
978 cat > conftest.$ac_ext <<EOF
979 #line 980 "configure"
980 #include "confdefs.h"
983 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
984 { (eval echo configure:985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
985 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
986 if test -z "$ac_err"; then
988 eval "ac_cv_header_$ac_safe=yes"
991 echo "configure: failed program was:" >&5
992 cat conftest.$ac_ext >&5
994 eval "ac_cv_header_$ac_safe=no"
998 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
999 echo "$ac_t""yes" 1>&6
1000 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1001 cat >> confdefs.h <<EOF
1002 #define $ac_tr_hdr 1
1006 echo "$ac_t""no" 1>&6
1010 for ac_func in getpagesize
1012 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1013 echo "configure:1014: checking for $ac_func" >&5
1014 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1015 echo $ac_n "(cached) $ac_c" 1>&6
1017 cat > conftest.$ac_ext <<EOF
1018 #line 1019 "configure"
1019 #include "confdefs.h"
1020 /* System header to define __stub macros and hopefully few prototypes,
1021 which can conflict with char $ac_func(); below. */
1023 /* Override any gcc2 internal prototype to avoid an error. */
1024 /* We use char because int might match the return type of a gcc2
1025 builtin and then its argument prototype would still apply. */
1030 /* The GNU C library defines this for functions which it implements
1031 to always fail with ENOSYS. Some functions are actually named
1032 something starting with __ and the normal name is an alias. */
1033 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1041 if { (eval echo configure:1042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1043 eval "ac_cv_func_$ac_func=yes"
1045 echo "configure: failed program was:" >&5
1046 cat conftest.$ac_ext >&5
1048 eval "ac_cv_func_$ac_func=no"
1053 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1054 echo "$ac_t""yes" 1>&6
1055 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1056 cat >> confdefs.h <<EOF
1057 #define $ac_tr_func 1
1061 echo "$ac_t""no" 1>&6
1065 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1066 echo "configure:1067: checking for working mmap" >&5
1067 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1068 echo $ac_n "(cached) $ac_c" 1>&6
1070 if test "$cross_compiling" = yes; then
1071 ac_cv_func_mmap_fixed_mapped=no
1073 cat > conftest.$ac_ext <<EOF
1074 #line 1075 "configure"
1075 #include "confdefs.h"
1077 /* Thanks to Mike Haertel and Jim Avera for this test.
1078 Here is a matrix of mmap possibilities:
1079 mmap private not fixed
1080 mmap private fixed at somewhere currently unmapped
1081 mmap private fixed at somewhere already mapped
1082 mmap shared not fixed
1083 mmap shared fixed at somewhere currently unmapped
1084 mmap shared fixed at somewhere already mapped
1085 For private mappings, we should verify that changes cannot be read()
1086 back from the file, nor mmap's back from the file at a different
1087 address. (There have been systems where private was not correctly
1088 implemented like the infamous i386 svr4.0, and systems where the
1089 VM page cache was not coherent with the filesystem buffer cache
1090 like early versions of FreeBSD and possibly contemporary NetBSD.)
1091 For shared mappings, we should conversely verify that changes get
1092 propogated back to all the places they're supposed to be.
1094 Grep wants private fixed already mapped.
1095 The main things grep needs to know about mmap are:
1096 * does it exist and is it safe to write into the mmap'd area
1097 * how to use it (BSD variants) */
1098 #include <sys/types.h>
1100 #include <sys/mman.h>
1102 /* This mess was copied from the GNU getpagesize.h. */
1103 #ifndef HAVE_GETPAGESIZE
1104 # ifdef HAVE_UNISTD_H
1105 # include <unistd.h>
1108 /* Assume that all systems that can run configure have sys/param.h. */
1109 # ifndef HAVE_SYS_PARAM_H
1110 # define HAVE_SYS_PARAM_H 1
1113 # ifdef _SC_PAGESIZE
1114 # define getpagesize() sysconf(_SC_PAGESIZE)
1115 # else /* no _SC_PAGESIZE */
1116 # ifdef HAVE_SYS_PARAM_H
1117 # include <sys/param.h>
1118 # ifdef EXEC_PAGESIZE
1119 # define getpagesize() EXEC_PAGESIZE
1120 # else /* no EXEC_PAGESIZE */
1122 # define getpagesize() NBPG * CLSIZE
1125 # endif /* no CLSIZE */
1126 # else /* no NBPG */
1128 # define getpagesize() NBPC
1129 # else /* no NBPC */
1131 # define getpagesize() PAGESIZE
1132 # endif /* PAGESIZE */
1133 # endif /* no NBPC */
1134 # endif /* no NBPG */
1135 # endif /* no EXEC_PAGESIZE */
1136 # else /* no HAVE_SYS_PARAM_H */
1137 # define getpagesize() 8192 /* punt totally */
1138 # endif /* no HAVE_SYS_PARAM_H */
1139 # endif /* no _SC_PAGESIZE */
1141 #endif /* no HAVE_GETPAGESIZE */
1144 extern "C" { void *malloc(unsigned); }
1152 char *data, *data2, *data3;
1156 pagesize = getpagesize();
1159 * First, make a file with some known garbage in it.
1161 data = malloc(pagesize);
1164 for (i = 0; i < pagesize; ++i)
1165 *(data + i) = rand();
1167 fd = creat("conftestmmap", 0600);
1170 if (write(fd, data, pagesize) != pagesize)
1175 * Next, try to mmap the file at a fixed address which
1176 * already has something else allocated at it. If we can,
1177 * also make sure that we see the same garbage.
1179 fd = open("conftestmmap", O_RDWR);
1182 data2 = malloc(2 * pagesize);
1185 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1186 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1187 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1189 for (i = 0; i < pagesize; ++i)
1190 if (*(data + i) != *(data2 + i))
1194 * Finally, make sure that changes to the mapped area
1195 * do not percolate back to the file as seen by read().
1196 * (This is a bug on some variants of i386 svr4.0.)
1198 for (i = 0; i < pagesize; ++i)
1199 *(data2 + i) = *(data2 + i) + 1;
1200 data3 = malloc(pagesize);
1203 if (read(fd, data3, pagesize) != pagesize)
1205 for (i = 0; i < pagesize; ++i)
1206 if (*(data + i) != *(data3 + i))
1209 unlink("conftestmmap");
1214 if { (eval echo configure:1215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1216 ac_cv_func_mmap_fixed_mapped=yes
1218 echo "configure: failed program was:" >&5
1219 cat conftest.$ac_ext >&5
1221 ac_cv_func_mmap_fixed_mapped=no
1228 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1229 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1230 cat >> confdefs.h <<\EOF
1236 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1237 echo "configure:1238: checking return type of signal handlers" >&5
1238 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1239 echo $ac_n "(cached) $ac_c" 1>&6
1241 cat > conftest.$ac_ext <<EOF
1242 #line 1243 "configure"
1243 #include "confdefs.h"
1244 #include <sys/types.h>
1250 extern "C" void (*signal (int, void (*)(int)))(int);
1252 void (*signal ()) ();
1259 if { (eval echo configure:1260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1261 ac_cv_type_signal=void
1263 echo "configure: failed program was:" >&5
1264 cat conftest.$ac_ext >&5
1266 ac_cv_type_signal=int
1271 echo "$ac_t""$ac_cv_type_signal" 1>&6
1272 cat >> confdefs.h <<EOF
1273 #define RETSIGTYPE $ac_cv_type_signal
1277 for ac_func in snprintf vsnprintf
1279 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1280 echo "configure:1281: checking for $ac_func" >&5
1281 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1282 echo $ac_n "(cached) $ac_c" 1>&6
1284 cat > conftest.$ac_ext <<EOF
1285 #line 1286 "configure"
1286 #include "confdefs.h"
1287 /* System header to define __stub macros and hopefully few prototypes,
1288 which can conflict with char $ac_func(); below. */
1290 /* Override any gcc2 internal prototype to avoid an error. */
1291 /* We use char because int might match the return type of a gcc2
1292 builtin and then its argument prototype would still apply. */
1297 /* The GNU C library defines this for functions which it implements
1298 to always fail with ENOSYS. Some functions are actually named
1299 something starting with __ and the normal name is an alias. */
1300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1308 if { (eval echo configure:1309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1310 eval "ac_cv_func_$ac_func=yes"
1312 echo "configure: failed program was:" >&5
1313 cat conftest.$ac_ext >&5
1315 eval "ac_cv_func_$ac_func=no"
1320 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1321 echo "$ac_t""yes" 1>&6
1322 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1323 cat >> confdefs.h <<EOF
1324 #define $ac_tr_func 1
1328 echo "$ac_t""no" 1>&6
1333 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1334 echo "configure:1335: checking for socket in -lsocket" >&5
1335 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1336 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1337 echo $ac_n "(cached) $ac_c" 1>&6
1339 ac_save_LIBS="$LIBS"
1340 LIBS="-lsocket $LIBS"
1341 cat > conftest.$ac_ext <<EOF
1342 #line 1343 "configure"
1343 #include "confdefs.h"
1344 /* Override any gcc2 internal prototype to avoid an error. */
1345 /* We use char because int might match the return type of a gcc2
1346 builtin and then its argument prototype would still apply. */
1353 if { (eval echo configure:1354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1355 eval "ac_cv_lib_$ac_lib_var=yes"
1357 echo "configure: failed program was:" >&5
1358 cat conftest.$ac_ext >&5
1360 eval "ac_cv_lib_$ac_lib_var=no"
1363 LIBS="$ac_save_LIBS"
1366 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1367 echo "$ac_t""yes" 1>&6
1370 echo "$ac_t""no" 1>&6
1374 if test "$result" = "yes"; then
1375 LIBS="$LIBS -lsocket"
1377 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1378 echo "configure:1379: checking for connect in -lsocket" >&5
1379 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1380 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1381 echo $ac_n "(cached) $ac_c" 1>&6
1383 ac_save_LIBS="$LIBS"
1384 LIBS="-lsocket $LIBS"
1385 cat > conftest.$ac_ext <<EOF
1386 #line 1387 "configure"
1387 #include "confdefs.h"
1388 /* Override any gcc2 internal prototype to avoid an error. */
1389 /* We use char because int might match the return type of a gcc2
1390 builtin and then its argument prototype would still apply. */
1397 if { (eval echo configure:1398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1399 eval "ac_cv_lib_$ac_lib_var=yes"
1401 echo "configure: failed program was:" >&5
1402 cat conftest.$ac_ext >&5
1404 eval "ac_cv_lib_$ac_lib_var=no"
1407 LIBS="$ac_save_LIBS"
1410 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1411 echo "$ac_t""yes" 1>&6
1414 echo "$ac_t""no" 1>&6
1418 if test "$result" = "yes"; then
1419 LIBS="$LIBS -lsocket"
1423 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
1424 echo "configure:1425: checking for crypt in -lcrypt" >&5
1425 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
1426 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1427 echo $ac_n "(cached) $ac_c" 1>&6
1429 ac_save_LIBS="$LIBS"
1430 LIBS="-lcrypt $LIBS"
1431 cat > conftest.$ac_ext <<EOF
1432 #line 1433 "configure"
1433 #include "confdefs.h"
1434 /* Override any gcc2 internal prototype to avoid an error. */
1435 /* We use char because int might match the return type of a gcc2
1436 builtin and then its argument prototype would still apply. */
1443 if { (eval echo configure:1444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1445 eval "ac_cv_lib_$ac_lib_var=yes"
1447 echo "configure: failed program was:" >&5
1448 cat conftest.$ac_ext >&5
1450 eval "ac_cv_lib_$ac_lib_var=no"
1453 LIBS="$ac_save_LIBS"
1456 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1457 echo "$ac_t""yes" 1>&6
1460 echo "$ac_t""no" 1>&6
1464 if test "$result" = "yes"; then
1465 LIBS="$LIBS -lcrypt"
1471 echo $ac_n "checking whether to enable xferlog""... $ac_c" 1>&6
1472 echo "configure:1473: checking whether to enable xferlog" >&5
1473 # Check whether --enable-xferlog or --disable-xferlog was given.
1474 if test "${enable_xferlog+set}" = set; then
1475 enableval="$enable_xferlog"
1481 if test "$result" = "no"; then
1485 if test "$enableval" = "yes"; then
1486 cat >> confdefs.h <<\EOF
1487 #define WANT_XFERLOG 1
1491 echo "$ac_t""$enableval" 1>&6
1494 echo $ac_n "checking whether to enable ascii""... $ac_c" 1>&6
1495 echo "configure:1496: checking whether to enable ascii" >&5
1496 # Check whether --enable-ascii or --disable-ascii was given.
1497 if test "${enable_ascii+set}" = set; then
1498 enableval="$enable_ascii"
1504 if test "$result" = "no"; then
1508 if test "$enableval" = "yes"; then
1509 cat >> confdefs.h <<\EOF
1510 #define WANT_ASCII 1
1514 echo "$ac_t""$enableval" 1>&6
1517 echo $ac_n "checking whether to enable fullscreen""... $ac_c" 1>&6
1518 echo "configure:1519: checking whether to enable fullscreen" >&5
1519 # Check whether --enable-fullscreen or --disable-fullscreen was given.
1520 if test "${enable_fullscreen+set}" = set; then
1521 enableval="$enable_fullscreen"
1527 if test "$result" = "no"; then
1531 if test "$enableval" = "yes"; then
1532 cat >> confdefs.h <<\EOF
1533 #define WANT_FULLSCREEN 1
1537 echo "$ac_t""$enableval" 1>&6
1540 if test "$enableval" = "no"; then
1542 echo $ac_n "checking whether to enable fork""... $ac_c" 1>&6
1543 echo "configure:1544: checking whether to enable fork" >&5
1544 # Check whether --enable-fork or --disable-fork was given.
1545 if test "${enable_fork+set}" = set; then
1546 enableval="$enable_fork"
1552 if test "$result" = "no"; then
1556 if test "$enableval" = "yes"; then
1557 cat >> confdefs.h <<\EOF
1562 echo "$ac_t""$enableval" 1>&6
1567 echo $ac_n "checking whether to enable upload""... $ac_c" 1>&6
1568 echo "configure:1569: checking whether to enable upload" >&5
1569 # Check whether --enable-upload or --disable-upload was given.
1570 if test "${enable_upload+set}" = set; then
1571 enableval="$enable_upload"
1577 if test "$result" = "no"; then
1581 if test "$enableval" = "yes"; then
1582 cat >> confdefs.h <<\EOF
1583 #define WANT_UPLOAD 1
1587 echo "$ac_t""$enableval" 1>&6
1590 echo $ac_n "checking whether to enable stat""... $ac_c" 1>&6
1591 echo "configure:1592: checking whether to enable stat" >&5
1592 # Check whether --enable-stat or --disable-stat was given.
1593 if test "${enable_stat+set}" = set; then
1594 enableval="$enable_stat"
1600 if test "$result" = "no"; then
1604 if test "$enableval" = "yes"; then
1605 cat >> confdefs.h <<\EOF
1610 echo "$ac_t""$enableval" 1>&6
1613 echo $ac_n "checking whether to enable dcache""... $ac_c" 1>&6
1614 echo "configure:1615: checking whether to enable dcache" >&5
1615 # Check whether --enable-dcache or --disable-dcache was given.
1616 if test "${enable_dcache+set}" = set; then
1617 enableval="$enable_dcache"
1623 if test "$result" = "no"; then
1627 if test "$enableval" = "yes"; then
1628 cat >> confdefs.h <<\EOF
1629 #define WANT_DCACHE 1
1633 echo "$ac_t""$enableval" 1>&6
1636 echo $ac_n "checking whether to enable message""... $ac_c" 1>&6
1637 echo "configure:1638: checking whether to enable message" >&5
1638 # Check whether --enable-message or --disable-message was given.
1639 if test "${enable_message+set}" = set; then
1640 enableval="$enable_message"
1646 if test "$result" = "no"; then
1650 if test "$enableval" = "yes"; then
1651 cat >> confdefs.h <<\EOF
1652 #define WANT_MESSAGE 1
1656 echo "$ac_t""$enableval" 1>&6
1660 echo $ac_n "checking whether to enable shadow""... $ac_c" 1>&6
1661 echo "configure:1662: checking whether to enable shadow" >&5
1662 # Check whether --enable-shadow or --disable-shadow was given.
1663 if test "${enable_shadow+set}" = set; then
1664 enableval="$enable_shadow"
1670 if test "$result" = "no"; then
1674 if test "$enableval" = "yes"; then
1675 cat >> confdefs.h <<\EOF
1676 #define WANT_SHADOW 1
1680 echo "$ac_t""$enableval" 1>&6
1685 if test "$enableval" = "yes"; then
1686 for ac_hdr in shadow.h
1688 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1689 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1690 echo "configure:1691: checking for $ac_hdr" >&5
1691 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1692 echo $ac_n "(cached) $ac_c" 1>&6
1694 cat > conftest.$ac_ext <<EOF
1695 #line 1696 "configure"
1696 #include "confdefs.h"
1699 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1700 { (eval echo configure:1701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1701 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1702 if test -z "$ac_err"; then
1704 eval "ac_cv_header_$ac_safe=yes"
1707 echo "configure: failed program was:" >&5
1708 cat conftest.$ac_ext >&5
1710 eval "ac_cv_header_$ac_safe=no"
1714 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1715 echo "$ac_t""yes" 1>&6
1716 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1717 cat >> confdefs.h <<EOF
1718 #define $ac_tr_hdr 1
1722 echo "$ac_t""no" 1>&6
1731 if test "$nonroot_support" = "yes"; then
1733 echo $ac_n "checking whether to enable nonroot""... $ac_c" 1>&6
1734 echo "configure:1735: checking whether to enable nonroot" >&5
1735 # Check whether --enable-nonroot or --disable-nonroot was given.
1736 if test "${enable_nonroot+set}" = set; then
1737 enableval="$enable_nonroot"
1743 if test "$result" = "no"; then
1747 if test "$enableval" = "yes"; then
1748 cat >> confdefs.h <<\EOF
1749 #define WANT_NONROOT 1
1753 echo "$ac_t""$enableval" 1>&6
1759 if test "$enableval" = "yes"; then
1760 echo "configure: warning: " 1>&2
1761 echo "configure: warning: Please read the README.nonroot file before using --enable-nonroot" 1>&2
1762 echo "configure: warning: " 1>&2
1765 echo $ac_n "checking how to get effective uid""... $ac_c" 1>&6
1766 echo "configure:1767: checking how to get effective uid" >&5
1767 if test -n "$EUID"; then
1769 echo "$ac_t""\$EUID ($EUID)" 1>&6
1770 elif test -n "$euid"; then
1772 echo "$ac_t""\$euid ($euid)" 1>&6
1773 elif test -n "$UID"; then
1775 echo "$ac_t""\$UID ($UID)" 1>&6
1776 elif test -n "$uid"; then
1778 echo "$ac_t""\$uid ($uid)" 1>&6
1779 elif test "`whoami 2>/dev/null`" = "root"; then
1781 echo "$ac_t""whoami (root)" 1>&6
1783 # assume we're not root
1785 echo "$ac_t""not found" 1>&6
1788 if test "$B_UID" -ne 0; then
1789 echo "configure: warning: " 1>&2
1790 echo "configure: warning: You do not seem to have root privilegies. If you" 1>&2
1791 echo "configure: warning: want to run BetaFTPD without being root, please" 1>&2
1792 echo "configure: warning: consider giving the --enable-nonroot flag to" 1>&2
1793 echo "configure: warning: configure, and read the README.nonroot file." 1>&2
1794 echo "configure: warning: " 1>&2
1798 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1799 echo "configure:1800: checking for ANSI C header files" >&5
1800 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1801 echo $ac_n "(cached) $ac_c" 1>&6
1803 cat > conftest.$ac_ext <<EOF
1804 #line 1805 "configure"
1805 #include "confdefs.h"
1811 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1812 { (eval echo configure:1813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1813 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1814 if test -z "$ac_err"; then
1816 ac_cv_header_stdc=yes
1819 echo "configure: failed program was:" >&5
1820 cat conftest.$ac_ext >&5
1822 ac_cv_header_stdc=no
1826 if test $ac_cv_header_stdc = yes; then
1827 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1828 cat > conftest.$ac_ext <<EOF
1829 #line 1830 "configure"
1830 #include "confdefs.h"
1833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1834 egrep "memchr" >/dev/null 2>&1; then
1838 ac_cv_header_stdc=no
1844 if test $ac_cv_header_stdc = yes; then
1845 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1846 cat > conftest.$ac_ext <<EOF
1847 #line 1848 "configure"
1848 #include "confdefs.h"
1851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1852 egrep "free" >/dev/null 2>&1; then
1856 ac_cv_header_stdc=no
1862 if test $ac_cv_header_stdc = yes; then
1863 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1864 if test "$cross_compiling" = yes; then
1867 cat > conftest.$ac_ext <<EOF
1868 #line 1869 "configure"
1869 #include "confdefs.h"
1871 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1872 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1873 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1874 int main () { int i; for (i = 0; i < 256; i++)
1875 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1879 if { (eval echo configure:1880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1883 echo "configure: failed program was:" >&5
1884 cat conftest.$ac_ext >&5
1886 ac_cv_header_stdc=no
1894 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1895 if test $ac_cv_header_stdc = yes; then
1896 cat >> confdefs.h <<\EOF
1897 #define STDC_HEADERS 1
1902 echo $ac_n "checking for uid_t""... $ac_c" 1>&6
1903 echo "configure:1904: checking for uid_t" >&5
1904 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
1905 echo $ac_n "(cached) $ac_c" 1>&6
1907 cat > conftest.$ac_ext <<EOF
1908 #line 1909 "configure"
1909 #include "confdefs.h"
1910 #include <sys/types.h>
1916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1917 egrep "(^|[^a-zA-Z_0-9])uid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1919 ac_cv_type_uid_t=yes
1927 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
1928 if test $ac_cv_type_uid_t = no; then
1929 cat >> confdefs.h <<\EOF
1935 echo $ac_n "checking for gid_t""... $ac_c" 1>&6
1936 echo "configure:1937: checking for gid_t" >&5
1937 if eval "test \"`echo '$''{'ac_cv_type_gid_t'+set}'`\" = set"; then
1938 echo $ac_n "(cached) $ac_c" 1>&6
1940 cat > conftest.$ac_ext <<EOF
1941 #line 1942 "configure"
1942 #include "confdefs.h"
1943 #include <sys/types.h>
1949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1950 egrep "(^|[^a-zA-Z_0-9])gid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1952 ac_cv_type_gid_t=yes
1960 echo "$ac_t""$ac_cv_type_gid_t" 1>&6
1961 if test $ac_cv_type_gid_t = no; then
1962 cat >> confdefs.h <<\EOF
1969 for ac_hdr in crypt.h unistd.h time.h sys/time.h errno.h netinet/in.h
1971 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1972 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1973 echo "configure:1974: checking for $ac_hdr" >&5
1974 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1975 echo $ac_n "(cached) $ac_c" 1>&6
1977 cat > conftest.$ac_ext <<EOF
1978 #line 1979 "configure"
1979 #include "confdefs.h"
1982 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1983 { (eval echo configure:1984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1984 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1985 if test -z "$ac_err"; then
1987 eval "ac_cv_header_$ac_safe=yes"
1990 echo "configure: failed program was:" >&5
1991 cat conftest.$ac_ext >&5
1993 eval "ac_cv_header_$ac_safe=no"
1997 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1998 echo "$ac_t""yes" 1>&6
1999 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2000 cat >> confdefs.h <<EOF
2001 #define $ac_tr_hdr 1
2005 echo "$ac_t""no" 1>&6
2009 for ac_hdr in netinet/ip.h stropts.h sys/conf.h arpa/inet.h sys/filio.h
2011 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2012 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2013 echo "configure:2014: checking for $ac_hdr" >&5
2014 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2015 echo $ac_n "(cached) $ac_c" 1>&6
2017 cat > conftest.$ac_ext <<EOF
2018 #line 2019 "configure"
2019 #include "confdefs.h"
2022 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2023 { (eval echo configure:2024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2024 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2025 if test -z "$ac_err"; then
2027 eval "ac_cv_header_$ac_safe=yes"
2030 echo "configure: failed program was:" >&5
2031 cat conftest.$ac_ext >&5
2033 eval "ac_cv_header_$ac_safe=no"
2037 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2038 echo "$ac_t""yes" 1>&6
2039 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2040 cat >> confdefs.h <<EOF
2041 #define $ac_tr_hdr 1
2045 echo "$ac_t""no" 1>&6
2049 for ac_hdr in netinet/tcp.h sys/types.h netdb.h glob.h stdio.h
2051 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2052 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2053 echo "configure:2054: checking for $ac_hdr" >&5
2054 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2055 echo $ac_n "(cached) $ac_c" 1>&6
2057 cat > conftest.$ac_ext <<EOF
2058 #line 2059 "configure"
2059 #include "confdefs.h"
2062 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2063 { (eval echo configure:2064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2064 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2065 if test -z "$ac_err"; then
2067 eval "ac_cv_header_$ac_safe=yes"
2070 echo "configure: failed program was:" >&5
2071 cat conftest.$ac_ext >&5
2073 eval "ac_cv_header_$ac_safe=no"
2077 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2078 echo "$ac_t""yes" 1>&6
2079 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2080 cat >> confdefs.h <<EOF
2081 #define $ac_tr_hdr 1
2085 echo "$ac_t""no" 1>&6
2089 for ac_hdr in stdlib.h stdarg.h stdlib.h string.h strings.h fcntl.h
2091 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2092 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2093 echo "configure:2094: checking for $ac_hdr" >&5
2094 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2095 echo $ac_n "(cached) $ac_c" 1>&6
2097 cat > conftest.$ac_ext <<EOF
2098 #line 2099 "configure"
2099 #include "confdefs.h"
2102 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2103 { (eval echo configure:2104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2104 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2105 if test -z "$ac_err"; then
2107 eval "ac_cv_header_$ac_safe=yes"
2110 echo "configure: failed program was:" >&5
2111 cat conftest.$ac_ext >&5
2113 eval "ac_cv_header_$ac_safe=no"
2117 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2118 echo "$ac_t""yes" 1>&6
2119 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2120 cat >> confdefs.h <<EOF
2121 #define $ac_tr_hdr 1
2125 echo "$ac_t""no" 1>&6
2129 for ac_hdr in sys/ioctl.h sys/socket.h sys/stat.h sys/param.h signal.h
2131 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2132 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2133 echo "configure:2134: checking for $ac_hdr" >&5
2134 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2135 echo $ac_n "(cached) $ac_c" 1>&6
2137 cat > conftest.$ac_ext <<EOF
2138 #line 2139 "configure"
2139 #include "confdefs.h"
2142 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2143 { (eval echo configure:2144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2144 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2145 if test -z "$ac_err"; then
2147 eval "ac_cv_header_$ac_safe=yes"
2150 echo "configure: failed program was:" >&5
2151 cat conftest.$ac_ext >&5
2153 eval "ac_cv_header_$ac_safe=no"
2157 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2158 echo "$ac_t""yes" 1>&6
2159 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2160 cat >> confdefs.h <<EOF
2161 #define $ac_tr_hdr 1
2165 echo "$ac_t""no" 1>&6
2169 for ac_hdr in sys/signal.h dirent.h pwd.h grp.h netinet/in_systm.h
2171 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2172 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2173 echo "configure:2174: checking for $ac_hdr" >&5
2174 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2175 echo $ac_n "(cached) $ac_c" 1>&6
2177 cat > conftest.$ac_ext <<EOF
2178 #line 2179 "configure"
2179 #include "confdefs.h"
2182 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2183 { (eval echo configure:2184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2184 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2185 if test -z "$ac_err"; then
2187 eval "ac_cv_header_$ac_safe=yes"
2190 echo "configure: failed program was:" >&5
2191 cat conftest.$ac_ext >&5
2193 eval "ac_cv_header_$ac_safe=no"
2197 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2198 echo "$ac_t""yes" 1>&6
2199 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2200 cat >> confdefs.h <<EOF
2201 #define $ac_tr_hdr 1
2205 echo "$ac_t""no" 1>&6
2209 for ac_hdr in assert.h
2211 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2212 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2213 echo "configure:2214: checking for $ac_hdr" >&5
2214 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2215 echo $ac_n "(cached) $ac_c" 1>&6
2217 cat > conftest.$ac_ext <<EOF
2218 #line 2219 "configure"
2219 #include "confdefs.h"
2222 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2223 { (eval echo configure:2224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2224 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2225 if test -z "$ac_err"; then
2227 eval "ac_cv_header_$ac_safe=yes"
2230 echo "configure: failed program was:" >&5
2231 cat conftest.$ac_ext >&5
2233 eval "ac_cv_header_$ac_safe=no"
2237 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2238 echo "$ac_t""yes" 1>&6
2239 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2240 cat >> confdefs.h <<EOF
2241 #define $ac_tr_hdr 1
2245 echo "$ac_t""no" 1>&6
2250 ac_safe=`echo "netinet/tcp.h" | sed 'y%./+-%__p_%'`
2251 echo $ac_n "checking for netinet/tcp.h""... $ac_c" 1>&6
2252 echo "configure:2253: checking for netinet/tcp.h" >&5
2253 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2254 echo $ac_n "(cached) $ac_c" 1>&6
2256 cat > conftest.$ac_ext <<EOF
2257 #line 2258 "configure"
2258 #include "confdefs.h"
2259 #include <netinet/tcp.h>
2261 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2262 { (eval echo configure:2263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2263 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2264 if test -z "$ac_err"; then
2266 eval "ac_cv_header_$ac_safe=yes"
2269 echo "configure: failed program was:" >&5
2270 cat conftest.$ac_ext >&5
2272 eval "ac_cv_header_$ac_safe=no"
2276 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2277 echo "$ac_t""yes" 1>&6
2280 echo "$ac_t""no" 1>&6
2286 if test "$result" = "yes"; then
2287 echo $ac_n "checking if netinet/tcp.h is enough""... $ac_c" 1>&6
2288 echo "configure:2289: checking if netinet/tcp.h is enough" >&5
2289 cat > conftest.$ac_ext <<EOF
2290 #line 2291 "configure"
2291 #include "confdefs.h"
2292 #include <netinet/tcp.h>
2298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2299 egrep "yes" >/dev/null 2>&1; then
2308 echo "$ac_t""$result" 1>&6
2311 if test "$result" = "no"; then
2312 ac_safe=`echo "linux/socket.h" | sed 'y%./+-%__p_%'`
2313 echo $ac_n "checking for linux/socket.h""... $ac_c" 1>&6
2314 echo "configure:2315: checking for linux/socket.h" >&5
2315 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2316 echo $ac_n "(cached) $ac_c" 1>&6
2318 cat > conftest.$ac_ext <<EOF
2319 #line 2320 "configure"
2320 #include "confdefs.h"
2321 #include <linux/socket.h>
2323 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2324 { (eval echo configure:2325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2325 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2326 if test -z "$ac_err"; then
2328 eval "ac_cv_header_$ac_safe=yes"
2331 echo "configure: failed program was:" >&5
2332 cat conftest.$ac_ext >&5
2334 eval "ac_cv_header_$ac_safe=no"
2338 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2339 echo "$ac_t""yes" 1>&6
2342 echo "$ac_t""no" 1>&6
2345 ac_safe=`echo "linux/tcp.h" | sed 'y%./+-%__p_%'`
2346 echo $ac_n "checking for linux/tcp.h""... $ac_c" 1>&6
2347 echo "configure:2348: checking for linux/tcp.h" >&5
2348 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2349 echo $ac_n "(cached) $ac_c" 1>&6
2351 cat > conftest.$ac_ext <<EOF
2352 #line 2353 "configure"
2353 #include "confdefs.h"
2354 #include <linux/tcp.h>
2356 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2357 { (eval echo configure:2358: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2358 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2359 if test -z "$ac_err"; then
2361 eval "ac_cv_header_$ac_safe=yes"
2364 echo "configure: failed program was:" >&5
2365 cat conftest.$ac_ext >&5
2367 eval "ac_cv_header_$ac_safe=no"
2371 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2372 echo "$ac_t""yes" 1>&6
2375 echo "$ac_t""no" 1>&6
2380 for ac_hdr in sys/poll.h
2382 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2383 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2384 echo "configure:2385: checking for $ac_hdr" >&5
2385 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2386 echo $ac_n "(cached) $ac_c" 1>&6
2388 cat > conftest.$ac_ext <<EOF
2389 #line 2390 "configure"
2390 #include "confdefs.h"
2393 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2394 { (eval echo configure:2395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2395 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2396 if test -z "$ac_err"; then
2398 eval "ac_cv_header_$ac_safe=yes"
2401 echo "configure: failed program was:" >&5
2402 cat conftest.$ac_ext >&5
2404 eval "ac_cv_header_$ac_safe=no"
2408 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2409 echo "$ac_t""yes" 1>&6
2410 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2411 cat >> confdefs.h <<EOF
2412 #define $ac_tr_hdr 1
2416 echo "$ac_t""no" 1>&6
2421 echo $ac_n "checking for poll()""... $ac_c" 1>&6
2422 echo "configure:2423: checking for poll()" >&5
2423 cat > conftest.$ac_ext <<EOF
2424 #line 2425 "configure"
2425 #include "confdefs.h"
2428 #include <sys/poll.h>
2433 struct pollfd fds[1];
2435 fds[0].events = POLLIN | POLLOUT | POLLERR | POLLHUP | POLLNVAL;
2441 if { (eval echo configure:2442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2445 echo "configure: failed program was:" >&5
2446 cat conftest.$ac_ext >&5
2451 echo "$ac_t""$enableval" 1>&6
2453 if test "$enableval" = "yes"; then
2454 cat >> confdefs.h <<\EOF
2460 for ac_hdr in sys/sendfile.h
2462 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2463 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2464 echo "configure:2465: checking for $ac_hdr" >&5
2465 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2466 echo $ac_n "(cached) $ac_c" 1>&6
2468 cat > conftest.$ac_ext <<EOF
2469 #line 2470 "configure"
2470 #include "confdefs.h"
2473 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2474 { (eval echo configure:2475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2475 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2476 if test -z "$ac_err"; then
2478 eval "ac_cv_header_$ac_safe=yes"
2481 echo "configure: failed program was:" >&5
2482 cat conftest.$ac_ext >&5
2484 eval "ac_cv_header_$ac_safe=no"
2488 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2489 echo "$ac_t""yes" 1>&6
2490 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2491 cat >> confdefs.h <<EOF
2492 #define $ac_tr_hdr 1
2496 echo "$ac_t""no" 1>&6
2502 if test "$result" = "yes"; then
2503 echo $ac_n "checking for Linux sendfile()""... $ac_c" 1>&6
2504 echo "configure:2505: checking for Linux sendfile()" >&5
2505 cat > conftest.$ac_ext <<EOF
2506 #line 2507 "configure"
2507 #include "confdefs.h"
2509 #if HAVE_SYS_SOCKET_H
2510 #include <sys/socket.h>
2513 #if HAVE_SYS_LIMITS_H
2514 #include <sys/limits.h>
2521 #if HAVE_SYS_SENDFILE_H
2522 #include <sys/sendfile.h>
2525 #if HAVE_SYS_TYPES_H
2526 #include <sys/types.h>
2534 #include <sys/uio.h>
2539 int out_fd = 1, in_fd = 0;
2543 sendfile(out_fd, in_fd, &offset, size);
2547 if { (eval echo configure:2548: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2551 echo "configure: failed program was:" >&5
2552 cat conftest.$ac_ext >&5
2557 echo "$ac_t""$enableval" 1>&6
2559 if test "$enableval" = "yes"; then
2560 echo $ac_n "checking that sendfile() really is implemented""... $ac_c" 1>&6
2561 echo "configure:2562: checking that sendfile() really is implemented" >&5
2563 if test "$cross_compiling" = yes; then
2564 enableval="cross-compiling, not checked"
2566 cat > conftest.$ac_ext <<EOF
2567 #line 2568 "configure"
2568 #include "confdefs.h"
2570 #if HAVE_SYS_SOCKET_H
2571 #include <sys/socket.h>
2574 #if HAVE_SYS_LIMITS_H
2575 #include <sys/limits.h>
2582 #if HAVE_SYS_SENDFILE_H
2583 #include <sys/sendfile.h>
2586 #if HAVE_SYS_TYPES_H
2587 #include <sys/types.h>
2595 #include <sys/uio.h>
2599 int out_fd = 1, in_fd = 0;
2604 sendfile(out_fd, in_fd, &offset, size);
2605 if (errno == ENOSYS)
2611 if { (eval echo configure:2612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2615 echo "configure: failed program was:" >&5
2616 cat conftest.$ac_ext >&5
2623 echo "$ac_t""$enableval" 1>&6
2625 has_sendfile=$enableval
2627 # Check whether --with-linux-sendfile or --without-linux-sendfile was given.
2628 if test "${with_linux_sendfile+set}" = set; then
2629 withval="$with_linux_sendfile"
2630 has_sendfile=$withval
2634 if test $has_sendfile != "no"; then
2635 cat >> confdefs.h <<\EOF
2636 #define HAVE_LINUX_SENDFILE 1
2639 has_sendfile=enabled
2641 has_sendfile=disabled
2643 echo $ac_n "checking final status of Linux sendfile() support""... $ac_c" 1>&6
2644 echo "configure:2645: checking final status of Linux sendfile() support" >&5
2645 echo "$ac_t""$has_sendfile" 1>&6
2649 ac_safe=`echo "sys/uio.h" | sed 'y%./+-%__p_%'`
2650 echo $ac_n "checking for sys/uio.h""... $ac_c" 1>&6
2651 echo "configure:2652: checking for sys/uio.h" >&5
2652 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2653 echo $ac_n "(cached) $ac_c" 1>&6
2655 cat > conftest.$ac_ext <<EOF
2656 #line 2657 "configure"
2657 #include "confdefs.h"
2658 #include <sys/uio.h>
2660 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2661 { (eval echo configure:2662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2662 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2663 if test -z "$ac_err"; then
2665 eval "ac_cv_header_$ac_safe=yes"
2668 echo "configure: failed program was:" >&5
2669 cat conftest.$ac_ext >&5
2671 eval "ac_cv_header_$ac_safe=no"
2675 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2676 echo "$ac_t""yes" 1>&6
2679 echo "$ac_t""no" 1>&6
2683 if test "$result" = "yes"; then
2684 echo $ac_n "checking for BSD sendfile()""... $ac_c" 1>&6
2685 echo "configure:2686: checking for BSD sendfile()" >&5
2686 cat > conftest.$ac_ext <<EOF
2687 #line 2688 "configure"
2688 #include "confdefs.h"
2690 #if HAVE_SYS_LIMITS_H
2691 #include <sys/limits.h>
2698 #if HAVE_SYS_SENDFILE_H
2699 #include <sys/sendfile.h>
2702 #if HAVE_SYS_TYPES_H
2703 #include <sys/types.h>
2706 #if HAVE_SYS_SOCKET_H
2707 #include <sys/socket.h>
2711 #include <sys/uio.h>
2716 int in_fd = 0, out_sock = 3;
2719 struct sf_hdtr hdtr;
2724 sendfile(in_fd, out_sock, offset, size, &hdtr, &offset, 0);
2728 if { (eval echo configure:2729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2732 echo "configure: failed program was:" >&5
2733 cat conftest.$ac_ext >&5
2738 echo "$ac_t""$enableval" 1>&6
2740 if test "$enableval" = "yes"; then
2741 cat >> confdefs.h <<\EOF
2742 #define HAVE_BSD_SENDFILE 1
2749 cat > confcache <<\EOF
2750 # This file is a shell script that caches the results of configure
2751 # tests run on this system so they can be shared between configure
2752 # scripts and configure runs. It is not useful on other systems.
2753 # If it contains results you don't want to keep, you may remove or edit it.
2755 # By default, configure uses ./config.cache as the cache file,
2756 # creating it if it does not exist already. You can give configure
2757 # the --cache-file=FILE option to use a different cache file; that is
2758 # what configure does when it calls configure scripts in
2759 # subdirectories, so they share the cache.
2760 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2761 # config.status only pays attention to the cache file if you give it the
2762 # --recheck option to rerun configure.
2765 # The following way of writing the cache mishandles newlines in values,
2766 # but we know of no workaround that is simple, portable, and efficient.
2767 # So, don't put newlines in cache variables' values.
2768 # Ultrix sh set writes to stderr and can't be redirected directly,
2769 # and sets the high bit in the cache file unless we assign to the vars.
2771 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2773 # `set' does not quote correctly, so add quotes (double-quote substitution
2774 # turns \\\\ into \\, and sed turns \\ into \).
2776 -e "s/'/'\\\\''/g" \
2777 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2780 # `set' quotes correctly as required by POSIX, so do not add quotes.
2781 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2784 if cmp -s $cache_file confcache; then
2787 if test -w $cache_file; then
2788 echo "updating cache $cache_file"
2789 cat confcache > $cache_file
2791 echo "not updating unwritable cache $cache_file"
2796 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2798 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2799 # Let make expand exec_prefix.
2800 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2802 # Any assignment to VPATH causes Sun make to only execute
2803 # the first set of double-colon rules, so remove it if not needed.
2804 # If there is a colon in the path, we need to keep it.
2805 if test "x$srcdir" = x.; then
2806 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2809 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2811 DEFS=-DHAVE_CONFIG_H
2813 # Without the "./", some shells look in PATH for config.status.
2814 : ${CONFIG_STATUS=./config.status}
2816 echo creating $CONFIG_STATUS
2817 rm -f $CONFIG_STATUS
2818 cat > $CONFIG_STATUS <<EOF
2820 # Generated automatically by configure.
2821 # Run this file to recreate the current configuration.
2822 # This directory was configured as follows,
2823 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2825 # $0 $ac_configure_args
2827 # Compiler output produced by configure, useful for debugging
2828 # configure, is in ./config.log if it exists.
2830 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2833 case "\$ac_option" in
2834 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2835 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2836 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2837 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2838 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2840 -help | --help | --hel | --he | --h)
2841 echo "\$ac_cs_usage"; exit 0 ;;
2842 *) echo "\$ac_cs_usage"; exit 1 ;;
2846 ac_given_srcdir=$srcdir
2848 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2850 cat >> $CONFIG_STATUS <<EOF
2852 # Protect against being on the right side of a sed subst in config.status.
2853 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2854 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2858 s%@CFLAGS@%$CFLAGS%g
2859 s%@CPPFLAGS@%$CPPFLAGS%g
2860 s%@CXXFLAGS@%$CXXFLAGS%g
2861 s%@FFLAGS@%$FFLAGS%g
2863 s%@LDFLAGS@%$LDFLAGS%g
2865 s%@exec_prefix@%$exec_prefix%g
2866 s%@prefix@%$prefix%g
2867 s%@program_transform_name@%$program_transform_name%g
2868 s%@bindir@%$bindir%g
2869 s%@sbindir@%$sbindir%g
2870 s%@libexecdir@%$libexecdir%g
2871 s%@datadir@%$datadir%g
2872 s%@sysconfdir@%$sysconfdir%g
2873 s%@sharedstatedir@%$sharedstatedir%g
2874 s%@localstatedir@%$localstatedir%g
2875 s%@libdir@%$libdir%g
2876 s%@includedir@%$includedir%g
2877 s%@oldincludedir@%$oldincludedir%g
2878 s%@infodir@%$infodir%g
2879 s%@mandir@%$mandir%g
2887 cat >> $CONFIG_STATUS <<\EOF
2889 # Split the substitutions into bite-sized pieces for seds with
2890 # small command number limits, like on Digital OSF/1 and HP-UX.
2891 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2892 ac_file=1 # Number of current file.
2893 ac_beg=1 # First line for current file.
2894 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2897 while $ac_more_lines; do
2898 if test $ac_beg -gt 1; then
2899 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2901 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2903 if test ! -s conftest.s$ac_file; then
2905 rm -f conftest.s$ac_file
2907 if test -z "$ac_sed_cmds"; then
2908 ac_sed_cmds="sed -f conftest.s$ac_file"
2910 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2912 ac_file=`expr $ac_file + 1`
2914 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2917 if test -z "$ac_sed_cmds"; then
2922 cat >> $CONFIG_STATUS <<EOF
2924 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2926 cat >> $CONFIG_STATUS <<\EOF
2927 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2928 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2930 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2931 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2932 *) ac_file_in="${ac_file}.in" ;;
2935 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2937 # Remove last slash and all that follows it. Not all systems have dirname.
2938 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2939 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2940 # The file is in a subdirectory.
2941 test ! -d "$ac_dir" && mkdir "$ac_dir"
2942 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2943 # A "../" for each directory in $ac_dir_suffix.
2944 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2946 ac_dir_suffix= ac_dots=
2949 case "$ac_given_srcdir" in
2951 if test -z "$ac_dots"; then top_srcdir=.
2952 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2953 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2955 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2956 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2960 echo creating "$ac_file"
2962 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2964 *Makefile*) ac_comsub="1i\\
2965 # $configure_input" ;;
2969 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2971 s%@configure_input@%$configure_input%g
2972 s%@srcdir@%$srcdir%g
2973 s%@top_srcdir@%$top_srcdir%g
2974 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2978 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2979 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2981 # ac_d sets the value in "#define NAME VALUE" lines.
2982 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2983 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2986 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2987 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2988 ac_uB='\([ ]\)%\1#\2define\3'
2991 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2992 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2993 ac_eB='$%\1#\2define\3'
2997 if test "${CONFIG_HEADERS+set}" != set; then
2999 cat >> $CONFIG_STATUS <<EOF
3000 CONFIG_HEADERS="config.h"
3002 cat >> $CONFIG_STATUS <<\EOF
3004 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3005 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3007 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3008 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3009 *) ac_file_in="${ac_file}.in" ;;
3012 echo creating $ac_file
3014 rm -f conftest.frag conftest.in conftest.out
3015 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3016 cat $ac_file_inputs > conftest.in
3020 # Transform confdefs.h into a sed script conftest.vals that substitutes
3021 # the proper values into config.h.in to produce config.h. And first:
3022 # Protect against being on the right side of a sed subst in config.status.
3023 # Protect against being in an unquoted here document in config.status.
3025 cat > conftest.hdr <<\EOF
3028 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3032 sed -n -f conftest.hdr confdefs.h > conftest.vals
3035 # This sed command replaces #undef with comments. This is necessary, for
3036 # example, in the case of _POSIX_SOURCE, which is predefined and required
3037 # on some systems where configure will not decide to define it.
3038 cat >> conftest.vals <<\EOF
3039 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3042 # Break up conftest.vals because some shells have a limit on
3043 # the size of here documents, and old seds have small limits too.
3048 ac_lines=`grep -c . conftest.vals`
3049 # grep -c gives empty output for an empty file on some AIX systems.
3050 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3051 # Write a limited-size here document to conftest.frag.
3052 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3053 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3055 sed -f conftest.frag conftest.in > conftest.out
3057 mv conftest.out conftest.in
3059 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3061 mv conftest.tail conftest.vals
3065 cat >> $CONFIG_STATUS <<\EOF
3066 rm -f conftest.frag conftest.h
3067 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3068 cat conftest.in >> conftest.h
3070 if cmp -s $ac_file conftest.h 2>/dev/null; then
3071 echo "$ac_file is unchanged"
3074 # Remove last slash and all that follows it. Not all systems have dirname.
3075 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3076 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3077 # The file is in a subdirectory.
3078 test ! -d "$ac_dir" && mkdir "$ac_dir"
3081 mv conftest.h $ac_file
3086 cat >> $CONFIG_STATUS <<EOF
3089 cat >> $CONFIG_STATUS <<\EOF
3093 chmod +x $CONFIG_STATUS
3094 rm -fr confdefs* $ac_clean_files
3095 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1