3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
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 --with-socks use the socks library"
17 --disable-opie disable support for opie or s/key FTP login"
19 --disable-digest disable support for HTTP digest authorization"
21 --disable-debug disable support for debugging output"
23 --disable-nls do not use Native Language Support"
25 # Initialize some variables set by options.
26 # The variables have the same names as the options, with
27 # dashes changed to underlines.
29 cache_file=./config.cache
38 program_transform_name=s,x,x,
46 bindir='${exec_prefix}/bin'
47 sbindir='${exec_prefix}/sbin'
48 libexecdir='${exec_prefix}/libexec'
49 datadir='${prefix}/share'
50 sysconfdir='${prefix}/etc'
51 sharedstatedir='${prefix}/com'
52 localstatedir='${prefix}/var'
53 libdir='${exec_prefix}/lib'
54 includedir='${prefix}/include'
55 oldincludedir='/usr/include'
56 infodir='${prefix}/info'
57 mandir='${prefix}/man'
59 # Initialize some other variables.
62 # Maximum number of lines to put in a shell here document.
69 # If the previous option needs an argument, assign it.
70 if test -n "$ac_prev"; then
71 eval "$ac_prev=\$ac_option"
77 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
81 # Accept the important Cygnus configure options, so we can diagnose typos.
85 -bindir | --bindir | --bindi | --bind | --bin | --bi)
87 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
88 bindir="$ac_optarg" ;;
90 -build | --build | --buil | --bui | --bu)
92 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
95 -cache-file | --cache-file | --cache-fil | --cache-fi \
96 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
98 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
99 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
100 cache_file="$ac_optarg" ;;
102 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
104 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
106 datadir="$ac_optarg" ;;
108 -disable-* | --disable-*)
109 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
110 # Reject names that are not valid shell variable names.
111 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
112 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
114 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
115 eval "enable_${ac_feature}=no" ;;
117 -enable-* | --enable-*)
118 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
119 # Reject names that are not valid shell variable names.
120 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
121 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
123 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128 eval "enable_${ac_feature}='$ac_optarg'" ;;
130 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
131 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
132 | --exec | --exe | --ex)
133 ac_prev=exec_prefix ;;
134 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
135 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
136 | --exec=* | --exe=* | --ex=*)
137 exec_prefix="$ac_optarg" ;;
139 -gas | --gas | --ga | --g)
140 # Obsolete; use --with-gas.
143 -help | --help | --hel | --he)
144 # Omit some internal or obsolete options to make the list less imposing.
145 # This message is too long to be a string in the A/UX 3.1 sh.
147 Usage: configure [options] [host]
148 Options: [defaults in brackets after descriptions]
150 --cache-file=FILE cache test results in FILE
151 --help print this message
152 --no-create do not create output files
153 --quiet, --silent do not print \`checking...' messages
154 --version print the version of autoconf that created configure
155 Directory and file names:
156 --prefix=PREFIX install architecture-independent files in PREFIX
158 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
160 --bindir=DIR user executables in DIR [EPREFIX/bin]
161 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
162 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
163 --datadir=DIR read-only architecture-independent data in DIR
165 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
166 --sharedstatedir=DIR modifiable architecture-independent data in DIR
168 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
169 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
170 --includedir=DIR C header files in DIR [PREFIX/include]
171 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
172 --infodir=DIR info documentation in DIR [PREFIX/info]
173 --mandir=DIR man documentation in DIR [PREFIX/man]
174 --srcdir=DIR find the sources in DIR [configure dir or ..]
175 --program-prefix=PREFIX prepend PREFIX to installed program names
176 --program-suffix=SUFFIX append SUFFIX to installed program names
177 --program-transform-name=PROGRAM
178 run sed PROGRAM on installed program names
182 --build=BUILD configure for building on BUILD [BUILD=HOST]
183 --host=HOST configure for HOST [guessed]
184 --target=TARGET configure for TARGET [TARGET=HOST]
185 Features and packages:
186 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
187 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
188 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
189 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
190 --x-includes=DIR X include files are in DIR
191 --x-libraries=DIR X library files are in DIR
193 if test -n "$ac_help"; then
194 echo "--enable and --with options recognized:$ac_help"
198 -host | --host | --hos | --ho)
200 -host=* | --host=* | --hos=* | --ho=*)
203 -includedir | --includedir | --includedi | --included | --include \
204 | --includ | --inclu | --incl | --inc)
205 ac_prev=includedir ;;
206 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
207 | --includ=* | --inclu=* | --incl=* | --inc=*)
208 includedir="$ac_optarg" ;;
210 -infodir | --infodir | --infodi | --infod | --info | --inf)
212 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
213 infodir="$ac_optarg" ;;
215 -libdir | --libdir | --libdi | --libd)
217 -libdir=* | --libdir=* | --libdi=* | --libd=*)
218 libdir="$ac_optarg" ;;
220 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
221 | --libexe | --libex | --libe)
222 ac_prev=libexecdir ;;
223 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
224 | --libexe=* | --libex=* | --libe=*)
225 libexecdir="$ac_optarg" ;;
227 -localstatedir | --localstatedir | --localstatedi | --localstated \
228 | --localstate | --localstat | --localsta | --localst \
229 | --locals | --local | --loca | --loc | --lo)
230 ac_prev=localstatedir ;;
231 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
232 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
233 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
234 localstatedir="$ac_optarg" ;;
236 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
238 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
239 mandir="$ac_optarg" ;;
242 # Obsolete; use --without-fp.
245 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
249 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
250 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
253 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
254 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
255 | --oldin | --oldi | --old | --ol | --o)
256 ac_prev=oldincludedir ;;
257 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
258 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
259 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
260 oldincludedir="$ac_optarg" ;;
262 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
264 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
265 prefix="$ac_optarg" ;;
267 -program-prefix | --program-prefix | --program-prefi | --program-pref \
268 | --program-pre | --program-pr | --program-p)
269 ac_prev=program_prefix ;;
270 -program-prefix=* | --program-prefix=* | --program-prefi=* \
271 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
272 program_prefix="$ac_optarg" ;;
274 -program-suffix | --program-suffix | --program-suffi | --program-suff \
275 | --program-suf | --program-su | --program-s)
276 ac_prev=program_suffix ;;
277 -program-suffix=* | --program-suffix=* | --program-suffi=* \
278 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
279 program_suffix="$ac_optarg" ;;
281 -program-transform-name | --program-transform-name \
282 | --program-transform-nam | --program-transform-na \
283 | --program-transform-n | --program-transform- \
284 | --program-transform | --program-transfor \
285 | --program-transfo | --program-transf \
286 | --program-trans | --program-tran \
287 | --progr-tra | --program-tr | --program-t)
288 ac_prev=program_transform_name ;;
289 -program-transform-name=* | --program-transform-name=* \
290 | --program-transform-nam=* | --program-transform-na=* \
291 | --program-transform-n=* | --program-transform-=* \
292 | --program-transform=* | --program-transfor=* \
293 | --program-transfo=* | --program-transf=* \
294 | --program-trans=* | --program-tran=* \
295 | --progr-tra=* | --program-tr=* | --program-t=*)
296 program_transform_name="$ac_optarg" ;;
298 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
299 | -silent | --silent | --silen | --sile | --sil)
302 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
304 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
306 sbindir="$ac_optarg" ;;
308 -sharedstatedir | --sharedstatedir | --sharedstatedi \
309 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
310 | --sharedst | --shareds | --shared | --share | --shar \
312 ac_prev=sharedstatedir ;;
313 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
314 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
315 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
317 sharedstatedir="$ac_optarg" ;;
319 -site | --site | --sit)
321 -site=* | --site=* | --sit=*)
324 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
326 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
327 srcdir="$ac_optarg" ;;
329 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
330 | --syscon | --sysco | --sysc | --sys | --sy)
331 ac_prev=sysconfdir ;;
332 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
333 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
334 sysconfdir="$ac_optarg" ;;
336 -target | --target | --targe | --targ | --tar | --ta | --t)
338 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
339 target="$ac_optarg" ;;
341 -v | -verbose | --verbose | --verbos | --verbo | --verb)
344 -version | --version | --versio | --versi | --vers)
345 echo "configure generated by autoconf version 2.12"
349 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
350 # Reject names that are not valid shell variable names.
351 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
352 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
354 ac_package=`echo $ac_package| sed 's/-/_/g'`
359 eval "with_${ac_package}='$ac_optarg'" ;;
361 -without-* | --without-*)
362 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
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'`
368 eval "with_${ac_package}=no" ;;
371 # Obsolete; use --with-x.
374 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
375 | --x-incl | --x-inc | --x-in | --x-i)
376 ac_prev=x_includes ;;
377 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
378 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
379 x_includes="$ac_optarg" ;;
381 -x-libraries | --x-libraries | --x-librarie | --x-librari \
382 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
383 ac_prev=x_libraries ;;
384 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
385 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
386 x_libraries="$ac_optarg" ;;
388 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
392 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
393 echo "configure: warning: $ac_option: invalid host type" 1>&2
395 if test "x$nonopt" != xNONE; then
396 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
404 if test -n "$ac_prev"; then
405 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
408 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
410 # File descriptor usage:
413 # 2 errors and warnings
414 # 3 some systems may open it to /dev/tty
415 # 4 used on the Kubota Titan
416 # 6 checking for... messages and results
417 # 5 compiler messages saved in config.log
418 if test "$silent" = yes; then
426 This file contains any messages produced by compilers while
427 running configure, to aid debugging if configure makes a mistake.
430 # Strip out --no-create and --no-recursion so they do not pile up.
431 # Also quote any args containing shell metacharacters.
436 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
437 | --no-cr | --no-c) ;;
438 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
439 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
440 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
441 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
442 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
447 # Only set these to C if already set. These must not be set unconditionally
448 # because not all systems understand e.g. LANG=C (notably SCO).
449 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
450 # Non-C LC_CTYPE values break the ctype check.
451 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
452 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
453 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
454 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
456 # confdefs.h avoids OS command line length limits that DEFS can exceed.
457 rm -rf conftest* confdefs.h
458 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
461 # A filename unique to this package, relative to the directory that
462 # configure is in, which we can look for to find out if srcdir is correct.
463 ac_unique_file=src/version.c
465 # Find the source files, if location was not specified.
466 if test -z "$srcdir"; then
467 ac_srcdir_defaulted=yes
468 # Try the directory containing this script, then its parent.
470 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
471 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
473 if test ! -r $srcdir/$ac_unique_file; then
477 ac_srcdir_defaulted=no
479 if test ! -r $srcdir/$ac_unique_file; then
480 if test "$ac_srcdir_defaulted" = yes; then
481 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
483 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
486 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
488 # Prefer explicitly selected file to automatically selected ones.
489 if test -z "$CONFIG_SITE"; then
490 if test "x$prefix" != xNONE; then
491 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
493 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
496 for ac_site_file in $CONFIG_SITE; do
497 if test -r "$ac_site_file"; then
498 echo "loading site script $ac_site_file"
503 if test -r "$cache_file"; then
504 echo "loading cache $cache_file"
507 echo "creating cache $cache_file"
512 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
513 ac_cpp='$CPP $CPPFLAGS'
514 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
515 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
516 cross_compiling=$ac_cv_prog_cc_cross
518 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
519 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
520 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
527 ac_n= ac_c='\c' ac_t=
534 VERSION=`sed -e 's/^.*"\(.*\)";$/\1/' ${srcdir}/src/version.c`
535 echo "configuring for GNU Wget $VERSION"
541 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
542 if test -f $ac_dir/install-sh; then
544 ac_install_sh="$ac_aux_dir/install-sh -c"
546 elif test -f $ac_dir/install.sh; then
548 ac_install_sh="$ac_aux_dir/install.sh -c"
552 if test -z "$ac_aux_dir"; then
553 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
555 ac_config_guess=$ac_aux_dir/config.guess
556 ac_config_sub=$ac_aux_dir/config.sub
557 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
560 # Make sure we can run config.sub.
561 if $ac_config_sub sun4 >/dev/null 2>&1; then :
562 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
565 echo $ac_n "checking host system type""... $ac_c" 1>&6
566 echo "configure:567: checking host system type" >&5
569 case "$host_alias" in
573 if host_alias=`$ac_config_guess`; then :
574 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
576 *) host_alias=$nonopt ;;
580 host=`$ac_config_sub $host_alias`
581 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
582 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
583 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
584 echo "$ac_t""$host" 1>&6
586 cat >> confdefs.h <<EOF
587 #define OS_TYPE "$host_os"
591 # Check whether --with-socks or --without-socks was given.
592 if test "${with_socks+set}" = set; then
593 withval="$with_socks"
594 cat >> confdefs.h <<\EOF
601 # Check whether --enable-opie or --disable-opie was given.
602 if test "${enable_opie+set}" = set; then
603 enableval="$enable_opie"
609 test x"${USE_OPIE}" = xyes && cat >> confdefs.h <<\EOF
614 # Check whether --enable-digest or --disable-digest was given.
615 if test "${enable_digest+set}" = set; then
616 enableval="$enable_digest"
617 USE_DIGEST=$enableval
622 test x"${USE_DIGEST}" = xyes && cat >> confdefs.h <<\EOF
627 # Check whether --enable-debug or --disable-debug was given.
628 if test "${enable_debug+set}" = set; then
629 enableval="$enable_debug"
635 test x"${DEBUG}" = xyes && cat >> confdefs.h <<\EOF
640 case "${USE_OPIE}${USE_DIGEST}" in
644 if test x"$USE_OPIE" = xyes; then
645 OPIE_OBJ='ftp-opie$o'
650 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
651 echo "configure:652: checking whether ${MAKE-make} sets \${MAKE}" >&5
652 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
653 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
654 echo $ac_n "(cached) $ac_c" 1>&6
656 cat > conftestmake <<\EOF
658 @echo 'ac_maketemp="${MAKE}"'
660 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
661 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
662 if test -n "$ac_maketemp"; then
663 eval ac_cv_prog_make_${ac_make}_set=yes
665 eval ac_cv_prog_make_${ac_make}_set=no
669 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
670 echo "$ac_t""yes" 1>&6
673 echo "$ac_t""no" 1>&6
674 SET_MAKE="MAKE=${MAKE-make}"
678 # Find a good install program. We prefer a C program (faster),
679 # so one script is as good as another. But avoid the broken or
680 # incompatible versions:
681 # SysV /etc/install, /usr/sbin/install
682 # SunOS /usr/etc/install
685 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
686 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
687 # ./install, which can be erroneously created by make from ./install.sh.
688 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
689 echo "configure:690: checking for a BSD compatible install" >&5
690 if test -z "$INSTALL"; then
691 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
692 echo $ac_n "(cached) $ac_c" 1>&6
694 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
695 for ac_dir in $PATH; do
696 # Account for people who put trailing slashes in PATH elements.
698 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
700 # OSF1 and SCO ODT 3.0 have their own names for install.
701 for ac_prog in ginstall installbsd scoinst install; do
702 if test -f $ac_dir/$ac_prog; then
703 if test $ac_prog = install &&
704 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
705 # AIX install. It has an incompatible calling convention.
706 # OSF/1 installbsd also uses dspmsg, but is usable.
709 ac_cv_path_install="$ac_dir/$ac_prog -c"
720 if test "${ac_cv_path_install+set}" = set; then
721 INSTALL="$ac_cv_path_install"
723 # As a last resort, use the slow shell script. We don't cache a
724 # path for INSTALL within a source directory, because that will
725 # break other packages using the cache if that directory is
726 # removed, or if the path is relative.
727 INSTALL="$ac_install_sh"
730 echo "$ac_t""$INSTALL" 1>&6
732 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
733 # It thinks the first close brace ends the variable substitution.
734 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
736 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
740 test -z "$CFLAGS" && CFLAGS= auto_cflags=1
741 test -z "$CC" && cc_specified=yes
743 # Extract the first word of "gcc", so it can be a program name with args.
744 set dummy gcc; ac_word=$2
745 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
746 echo "configure:747: checking for $ac_word" >&5
747 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
748 echo $ac_n "(cached) $ac_c" 1>&6
750 if test -n "$CC"; then
751 ac_cv_prog_CC="$CC" # Let the user override the test.
753 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
754 for ac_dir in $PATH; do
755 test -z "$ac_dir" && ac_dir=.
756 if test -f $ac_dir/$ac_word; then
765 if test -n "$CC"; then
766 echo "$ac_t""$CC" 1>&6
768 echo "$ac_t""no" 1>&6
771 if test -z "$CC"; then
772 # Extract the first word of "cc", so it can be a program name with args.
773 set dummy cc; ac_word=$2
774 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
775 echo "configure:776: checking for $ac_word" >&5
776 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
777 echo $ac_n "(cached) $ac_c" 1>&6
779 if test -n "$CC"; then
780 ac_cv_prog_CC="$CC" # Let the user override the test.
782 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
784 for ac_dir in $PATH; do
785 test -z "$ac_dir" && ac_dir=.
786 if test -f $ac_dir/$ac_word; then
787 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
796 if test $ac_prog_rejected = yes; then
797 # We found a bogon in the path, so make sure we never use it.
798 set dummy $ac_cv_prog_CC
800 if test $# -gt 0; then
801 # We chose a different compiler from the bogus one.
802 # However, it has the same basename, so the bogon will be chosen
803 # first if we set CC to just the basename; use the full file name.
805 set dummy "$ac_dir/$ac_word" "$@"
813 if test -n "$CC"; then
814 echo "$ac_t""$CC" 1>&6
816 echo "$ac_t""no" 1>&6
819 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
822 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
823 echo "configure:824: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
826 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
827 ac_cpp='$CPP $CPPFLAGS'
828 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
829 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
830 cross_compiling=$ac_cv_prog_cc_cross
832 cat > conftest.$ac_ext <<EOF
833 #line 834 "configure"
834 #include "confdefs.h"
837 if { (eval echo configure:838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
838 ac_cv_prog_cc_works=yes
839 # If we can't run a trivial program, we are probably using a cross compiler.
840 if (./conftest; exit) 2>/dev/null; then
841 ac_cv_prog_cc_cross=no
843 ac_cv_prog_cc_cross=yes
846 echo "configure: failed program was:" >&5
847 cat conftest.$ac_ext >&5
848 ac_cv_prog_cc_works=no
852 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
853 if test $ac_cv_prog_cc_works = no; then
854 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
856 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
857 echo "configure:858: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
858 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
859 cross_compiling=$ac_cv_prog_cc_cross
861 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
862 echo "configure:863: checking whether we are using GNU C" >&5
863 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
864 echo $ac_n "(cached) $ac_c" 1>&6
866 cat > conftest.c <<EOF
871 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
878 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
880 if test $ac_cv_prog_gcc = yes; then
882 ac_test_CFLAGS="${CFLAGS+set}"
883 ac_save_CFLAGS="$CFLAGS"
885 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
886 echo "configure:887: checking whether ${CC-cc} accepts -g" >&5
887 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
888 echo $ac_n "(cached) $ac_c" 1>&6
890 echo 'void f(){}' > conftest.c
891 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
900 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
901 if test "$ac_test_CFLAGS" = set; then
902 CFLAGS="$ac_save_CFLAGS"
903 elif test $ac_cv_prog_cc_g = yes; then
910 test "${CFLAGS+set}" = set || CFLAGS="-g"
914 if test -n "$auto_cflags"; then
915 if test -n "$GCC"; then
916 CFLAGS="$CFLAGS -O2 -Wall -Wno-implicit"
919 *hpux*) CFLAGS="$CFLAGS +O3" ;;
920 *ultrix* | *osf*) CFLAGS="$CFLAGS -O -Olimit 2000" ;;
921 *) CFLAGS="$CFLAGS -O" ;;
926 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
927 echo "configure:928: checking how to run the C preprocessor" >&5
928 # On Suns, sometimes $CPP names a directory.
929 if test -n "$CPP" && test -d "$CPP"; then
932 if test -z "$CPP"; then
933 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
934 echo $ac_n "(cached) $ac_c" 1>&6
936 # This must be in double quotes, not single quotes, because CPP may get
937 # substituted into the Makefile and "${CC-cc}" will confuse make.
939 # On the NeXT, cc -E runs the code through the compiler's parser,
940 # not just through cpp.
941 cat > conftest.$ac_ext <<EOF
942 #line 943 "configure"
943 #include "confdefs.h"
947 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
948 { (eval echo configure:949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
949 ac_err=`grep -v '^ *+' conftest.out`
950 if test -z "$ac_err"; then
954 echo "configure: failed program was:" >&5
955 cat conftest.$ac_ext >&5
957 CPP="${CC-cc} -E -traditional-cpp"
958 cat > conftest.$ac_ext <<EOF
959 #line 960 "configure"
960 #include "confdefs.h"
964 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
965 { (eval echo configure:966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
966 ac_err=`grep -v '^ *+' conftest.out`
967 if test -z "$ac_err"; then
971 echo "configure: failed program was:" >&5
972 cat conftest.$ac_ext >&5
979 ac_cv_prog_CPP="$CPP"
981 CPP="$ac_cv_prog_CPP"
983 ac_cv_prog_CPP="$CPP"
985 echo "$ac_t""$CPP" 1>&6
987 echo $ac_n "checking for AIX""... $ac_c" 1>&6
988 echo "configure:989: checking for AIX" >&5
989 cat > conftest.$ac_ext <<EOF
990 #line 991 "configure"
991 #include "confdefs.h"
997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
998 egrep "yes" >/dev/null 2>&1; then
1000 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1001 #define _ALL_SOURCE 1
1006 echo "$ac_t""no" 1>&6
1013 *win32) exeext='.exe';;
1019 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
1020 echo "configure:1021: checking for ${CC-cc} option to accept ANSI C" >&5
1021 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
1022 echo $ac_n "(cached) $ac_c" 1>&6
1024 am_cv_prog_cc_stdc=no
1026 # Don't try gcc -ansi; that turns off useful extensions and
1027 # breaks some systems' header files.
1028 # AIX -qlanglvl=ansi
1029 # Ultrix and OSF/1 -std1
1030 # HP-UX -Aa -D_HPUX_SOURCE
1031 # SVR4 -Xc -D__EXTENSIONS__
1032 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1034 CC="$ac_save_CC $ac_arg"
1035 cat > conftest.$ac_ext <<EOF
1036 #line 1037 "configure"
1037 #include "confdefs.h"
1038 #if !defined(__STDC__) || __STDC__ != 1
1041 /* DYNIX/ptx V4.1.3 can't compile sys/stat.h with -Xc -D__EXTENSIONS__. */
1043 # include <sys/types.h>
1044 # include <sys/stat.h>
1049 int test (int i, double x);
1050 struct s1 {int (*f) (int a);};
1051 struct s2 {int (*f) (double a);};
1054 if { (eval echo configure:1055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1056 am_cv_prog_cc_stdc="$ac_arg"; break
1058 echo "configure: failed program was:" >&5
1059 cat conftest.$ac_ext >&5
1067 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1068 case "x$am_cv_prog_cc_stdc" in
1070 *) CC="$CC $am_cv_prog_cc_stdc" ;;
1075 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
1076 echo "configure:1077: checking for function prototypes" >&5
1077 if test "$am_cv_prog_cc_stdc" != no; then
1078 echo "$ac_t""yes" 1>&6
1079 cat >> confdefs.h <<\EOF
1080 #define PROTOTYPES 1
1085 echo "$ac_t""no" 1>&6
1086 U=_ ANSI2KNR=./ansi2knr
1087 # Ensure some checks needed by ansi2knr itself.
1088 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1089 echo "configure:1090: checking for ANSI C header files" >&5
1090 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1091 echo $ac_n "(cached) $ac_c" 1>&6
1093 cat > conftest.$ac_ext <<EOF
1094 #line 1095 "configure"
1095 #include "confdefs.h"
1101 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1102 { (eval echo configure:1103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1103 ac_err=`grep -v '^ *+' conftest.out`
1104 if test -z "$ac_err"; then
1106 ac_cv_header_stdc=yes
1109 echo "configure: failed program was:" >&5
1110 cat conftest.$ac_ext >&5
1112 ac_cv_header_stdc=no
1116 if test $ac_cv_header_stdc = yes; then
1117 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1118 cat > conftest.$ac_ext <<EOF
1119 #line 1120 "configure"
1120 #include "confdefs.h"
1123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1124 egrep "memchr" >/dev/null 2>&1; then
1128 ac_cv_header_stdc=no
1134 if test $ac_cv_header_stdc = yes; then
1135 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1136 cat > conftest.$ac_ext <<EOF
1137 #line 1138 "configure"
1138 #include "confdefs.h"
1141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1142 egrep "free" >/dev/null 2>&1; then
1146 ac_cv_header_stdc=no
1152 if test $ac_cv_header_stdc = yes; then
1153 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1154 if test "$cross_compiling" = yes; then
1157 cat > conftest.$ac_ext <<EOF
1158 #line 1159 "configure"
1159 #include "confdefs.h"
1161 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1162 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1163 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1164 int main () { int i; for (i = 0; i < 256; i++)
1165 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1169 if { (eval echo configure:1170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1173 echo "configure: failed program was:" >&5
1174 cat conftest.$ac_ext >&5
1176 ac_cv_header_stdc=no
1184 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1185 if test $ac_cv_header_stdc = yes; then
1186 cat >> confdefs.h <<\EOF
1187 #define STDC_HEADERS 1
1192 for ac_hdr in string.h
1194 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1195 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1196 echo "configure:1197: checking for $ac_hdr" >&5
1197 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1198 echo $ac_n "(cached) $ac_c" 1>&6
1200 cat > conftest.$ac_ext <<EOF
1201 #line 1202 "configure"
1202 #include "confdefs.h"
1205 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1206 { (eval echo configure:1207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1207 ac_err=`grep -v '^ *+' conftest.out`
1208 if test -z "$ac_err"; then
1210 eval "ac_cv_header_$ac_safe=yes"
1213 echo "configure: failed program was:" >&5
1214 cat conftest.$ac_ext >&5
1216 eval "ac_cv_header_$ac_safe=no"
1220 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1221 echo "$ac_t""yes" 1>&6
1222 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1223 cat >> confdefs.h <<EOF
1224 #define $ac_tr_hdr 1
1228 echo "$ac_t""no" 1>&6
1235 echo $ac_n "checking for working const""... $ac_c" 1>&6
1236 echo "configure:1237: checking for working const" >&5
1237 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1238 echo $ac_n "(cached) $ac_c" 1>&6
1240 cat > conftest.$ac_ext <<EOF
1241 #line 1242 "configure"
1242 #include "confdefs.h"
1246 /* Ultrix mips cc rejects this. */
1247 typedef int charset[2]; const charset x;
1248 /* SunOS 4.1.1 cc rejects this. */
1249 char const *const *ccp;
1251 /* NEC SVR4.0.2 mips cc rejects this. */
1252 struct point {int x, y;};
1253 static struct point const zero = {0,0};
1254 /* AIX XL C 1.02.0.0 rejects this.
1255 It does not let you subtract one const X* pointer from another in an arm
1256 of an if-expression whose if-part is not a constant expression */
1257 const char *g = "string";
1258 ccp = &g + (g ? g-g : 0);
1259 /* HPUX 7.0 cc rejects these. */
1262 ccp = (char const *const *) p;
1263 { /* SCO 3.2v4 cc rejects this. */
1265 char const *s = 0 ? (char *) 0 : (char const *) 0;
1269 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1271 const int *foo = &x[0];
1274 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1275 typedef const int *iptr;
1279 { /* AIX XL C 1.02.0.0 rejects this saying
1280 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1281 struct s { int j; const int *ap[3]; };
1282 struct s *b; b->j = 5;
1284 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1290 if { (eval echo configure:1291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1294 echo "configure: failed program was:" >&5
1295 cat conftest.$ac_ext >&5
1302 echo "$ac_t""$ac_cv_c_const" 1>&6
1303 if test $ac_cv_c_const = no; then
1304 cat >> confdefs.h <<\EOF
1310 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1311 echo "configure:1312: checking for size_t" >&5
1312 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1313 echo $ac_n "(cached) $ac_c" 1>&6
1315 cat > conftest.$ac_ext <<EOF
1316 #line 1317 "configure"
1317 #include "confdefs.h"
1318 #include <sys/types.h>
1324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1325 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1327 ac_cv_type_size_t=yes
1330 ac_cv_type_size_t=no
1335 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1336 if test $ac_cv_type_size_t = no; then
1337 cat >> confdefs.h <<\EOF
1338 #define size_t unsigned
1343 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1344 echo "configure:1345: checking for pid_t" >&5
1345 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
1346 echo $ac_n "(cached) $ac_c" 1>&6
1348 cat > conftest.$ac_ext <<EOF
1349 #line 1350 "configure"
1350 #include "confdefs.h"
1351 #include <sys/types.h>
1357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1358 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1360 ac_cv_type_pid_t=yes
1368 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
1369 if test $ac_cv_type_pid_t = no; then
1370 cat >> confdefs.h <<\EOF
1376 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1377 echo "configure:1378: checking whether byte ordering is bigendian" >&5
1378 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1379 echo $ac_n "(cached) $ac_c" 1>&6
1381 ac_cv_c_bigendian=unknown
1382 # See if sys/param.h defines the BYTE_ORDER macro.
1383 cat > conftest.$ac_ext <<EOF
1384 #line 1385 "configure"
1385 #include "confdefs.h"
1386 #include <sys/types.h>
1387 #include <sys/param.h>
1390 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1395 if { (eval echo configure:1396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1397 # It does; now see whether it defined to BIG_ENDIAN or not.
1398 cat > conftest.$ac_ext <<EOF
1399 #line 1400 "configure"
1400 #include "confdefs.h"
1401 #include <sys/types.h>
1402 #include <sys/param.h>
1405 #if BYTE_ORDER != BIG_ENDIAN
1410 if { (eval echo configure:1411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1412 ac_cv_c_bigendian=yes
1414 echo "configure: failed program was:" >&5
1415 cat conftest.$ac_ext >&5
1417 ac_cv_c_bigendian=no
1421 echo "configure: failed program was:" >&5
1422 cat conftest.$ac_ext >&5
1425 if test $ac_cv_c_bigendian = unknown; then
1426 if test "$cross_compiling" = yes; then
1427 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1429 cat > conftest.$ac_ext <<EOF
1430 #line 1431 "configure"
1431 #include "confdefs.h"
1433 /* Are we little or big endian? From Harbison&Steele. */
1437 char c[sizeof (long)];
1440 exit (u.c[sizeof (long) - 1] == 1);
1443 if { (eval echo configure:1444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1445 ac_cv_c_bigendian=no
1447 echo "configure: failed program was:" >&5
1448 cat conftest.$ac_ext >&5
1450 ac_cv_c_bigendian=yes
1458 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1459 if test $ac_cv_c_bigendian = yes; then
1460 cat >> confdefs.h <<\EOF
1461 #define WORDS_BIGENDIAN 1
1467 for ac_hdr in string.h stdarg.h unistd.h sys/time.h utime.h sys/utime.h
1469 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1470 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1471 echo "configure:1472: checking for $ac_hdr" >&5
1472 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1473 echo $ac_n "(cached) $ac_c" 1>&6
1475 cat > conftest.$ac_ext <<EOF
1476 #line 1477 "configure"
1477 #include "confdefs.h"
1480 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1481 { (eval echo configure:1482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1482 ac_err=`grep -v '^ *+' conftest.out`
1483 if test -z "$ac_err"; then
1485 eval "ac_cv_header_$ac_safe=yes"
1488 echo "configure: failed program was:" >&5
1489 cat conftest.$ac_ext >&5
1491 eval "ac_cv_header_$ac_safe=no"
1495 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1496 echo "$ac_t""yes" 1>&6
1497 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1498 cat >> confdefs.h <<EOF
1499 #define $ac_tr_hdr 1
1503 echo "$ac_t""no" 1>&6
1507 for ac_hdr in sys/select.h sys/utsname.h pwd.h signal.h
1509 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1510 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1511 echo "configure:1512: checking for $ac_hdr" >&5
1512 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1513 echo $ac_n "(cached) $ac_c" 1>&6
1515 cat > conftest.$ac_ext <<EOF
1516 #line 1517 "configure"
1517 #include "confdefs.h"
1520 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1521 { (eval echo configure:1522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1522 ac_err=`grep -v '^ *+' conftest.out`
1523 if test -z "$ac_err"; then
1525 eval "ac_cv_header_$ac_safe=yes"
1528 echo "configure: failed program was:" >&5
1529 cat conftest.$ac_ext >&5
1531 eval "ac_cv_header_$ac_safe=no"
1535 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1536 echo "$ac_t""yes" 1>&6
1537 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1538 cat >> confdefs.h <<EOF
1539 #define $ac_tr_hdr 1
1543 echo "$ac_t""no" 1>&6
1547 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1548 echo "configure:1549: checking whether time.h and sys/time.h may both be included" >&5
1549 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1550 echo $ac_n "(cached) $ac_c" 1>&6
1552 cat > conftest.$ac_ext <<EOF
1553 #line 1554 "configure"
1554 #include "confdefs.h"
1555 #include <sys/types.h>
1556 #include <sys/time.h>
1562 if { (eval echo configure:1563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1564 ac_cv_header_time=yes
1566 echo "configure: failed program was:" >&5
1567 cat conftest.$ac_ext >&5
1569 ac_cv_header_time=no
1574 echo "$ac_t""$ac_cv_header_time" 1>&6
1575 if test $ac_cv_header_time = yes; then
1576 cat >> confdefs.h <<\EOF
1577 #define TIME_WITH_SYS_TIME 1
1583 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1584 echo "configure:1585: checking return type of signal handlers" >&5
1585 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1586 echo $ac_n "(cached) $ac_c" 1>&6
1588 cat > conftest.$ac_ext <<EOF
1589 #line 1590 "configure"
1590 #include "confdefs.h"
1591 #include <sys/types.h>
1597 extern "C" void (*signal (int, void (*)(int)))(int);
1599 void (*signal ()) ();
1606 if { (eval echo configure:1607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1608 ac_cv_type_signal=void
1610 echo "configure: failed program was:" >&5
1611 cat conftest.$ac_ext >&5
1613 ac_cv_type_signal=int
1618 echo "$ac_t""$ac_cv_type_signal" 1>&6
1619 cat >> confdefs.h <<EOF
1620 #define RETSIGTYPE $ac_cv_type_signal
1625 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
1626 echo "configure:1627: checking for struct utimbuf" >&5
1627 if test x"$ac_cv_header_utime_h" = xyes; then
1628 cat > conftest.$ac_ext <<EOF
1629 #line 1630 "configure"
1630 #include "confdefs.h"
1633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1634 egrep "struct[ ]+utimbuf" >/dev/null 2>&1; then
1636 cat >> confdefs.h <<\EOF
1637 #define HAVE_STRUCT_UTIMBUF 1
1640 echo "$ac_t""yes" 1>&6
1643 echo "$ac_t""no" 1>&6
1648 echo "$ac_t""no" 1>&6
1651 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1652 # for constant arguments. Useless!
1653 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1654 echo "configure:1655: checking for working alloca.h" >&5
1655 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1656 echo $ac_n "(cached) $ac_c" 1>&6
1658 cat > conftest.$ac_ext <<EOF
1659 #line 1660 "configure"
1660 #include "confdefs.h"
1663 char *p = alloca(2 * sizeof(int));
1666 if { (eval echo configure:1667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1668 ac_cv_header_alloca_h=yes
1670 echo "configure: failed program was:" >&5
1671 cat conftest.$ac_ext >&5
1673 ac_cv_header_alloca_h=no
1678 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1679 if test $ac_cv_header_alloca_h = yes; then
1680 cat >> confdefs.h <<\EOF
1681 #define HAVE_ALLOCA_H 1
1686 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1687 echo "configure:1688: checking for alloca" >&5
1688 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1689 echo $ac_n "(cached) $ac_c" 1>&6
1691 cat > conftest.$ac_ext <<EOF
1692 #line 1693 "configure"
1693 #include "confdefs.h"
1696 # define alloca __builtin_alloca
1699 # include <alloca.h>
1704 # ifndef alloca /* predefined by HP cc +Olibcalls */
1712 char *p = (char *) alloca(1);
1715 if { (eval echo configure:1716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1717 ac_cv_func_alloca_works=yes
1719 echo "configure: failed program was:" >&5
1720 cat conftest.$ac_ext >&5
1722 ac_cv_func_alloca_works=no
1727 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1728 if test $ac_cv_func_alloca_works = yes; then
1729 cat >> confdefs.h <<\EOF
1730 #define HAVE_ALLOCA 1
1735 if test $ac_cv_func_alloca_works = no; then
1736 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1737 # that cause trouble. Some versions do not even contain alloca or
1738 # contain a buggy version. If you still want to use their alloca,
1739 # use ar to extract alloca.o from them instead of compiling alloca.c.
1741 cat >> confdefs.h <<\EOF
1746 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1747 echo "configure:1748: checking whether alloca needs Cray hooks" >&5
1748 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1749 echo $ac_n "(cached) $ac_c" 1>&6
1751 cat > conftest.$ac_ext <<EOF
1752 #line 1753 "configure"
1753 #include "confdefs.h"
1754 #if defined(CRAY) && ! defined(CRAY2)
1761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1762 egrep "webecray" >/dev/null 2>&1; then
1773 echo "$ac_t""$ac_cv_os_cray" 1>&6
1774 if test $ac_cv_os_cray = yes; then
1775 for ac_func in _getb67 GETB67 getb67; do
1776 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1777 echo "configure:1778: checking for $ac_func" >&5
1778 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1779 echo $ac_n "(cached) $ac_c" 1>&6
1781 cat > conftest.$ac_ext <<EOF
1782 #line 1783 "configure"
1783 #include "confdefs.h"
1784 /* System header to define __stub macros and hopefully few prototypes,
1785 which can conflict with char $ac_func(); below. */
1787 /* Override any gcc2 internal prototype to avoid an error. */
1788 /* We use char because int might match the return type of a gcc2
1789 builtin and then its argument prototype would still apply. */
1794 /* The GNU C library defines this for functions which it implements
1795 to always fail with ENOSYS. Some functions are actually named
1796 something starting with __ and the normal name is an alias. */
1797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1805 if { (eval echo configure:1806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1807 eval "ac_cv_func_$ac_func=yes"
1809 echo "configure: failed program was:" >&5
1810 cat conftest.$ac_ext >&5
1812 eval "ac_cv_func_$ac_func=no"
1817 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1818 echo "$ac_t""yes" 1>&6
1819 cat >> confdefs.h <<EOF
1820 #define CRAY_STACKSEG_END $ac_func
1825 echo "$ac_t""no" 1>&6
1831 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1832 echo "configure:1833: checking stack direction for C alloca" >&5
1833 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1834 echo $ac_n "(cached) $ac_c" 1>&6
1836 if test "$cross_compiling" = yes; then
1837 ac_cv_c_stack_direction=0
1839 cat > conftest.$ac_ext <<EOF
1840 #line 1841 "configure"
1841 #include "confdefs.h"
1842 find_stack_direction ()
1844 static char *addr = 0;
1849 return find_stack_direction ();
1852 return (&dummy > addr) ? 1 : -1;
1856 exit (find_stack_direction() < 0);
1859 if { (eval echo configure:1860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1861 ac_cv_c_stack_direction=1
1863 echo "configure: failed program was:" >&5
1864 cat conftest.$ac_ext >&5
1866 ac_cv_c_stack_direction=-1
1873 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1874 cat >> confdefs.h <<EOF
1875 #define STACK_DIRECTION $ac_cv_c_stack_direction
1880 for ac_func in strdup strstr strcasecmp strncasecmp
1882 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1883 echo "configure:1884: checking for $ac_func" >&5
1884 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1885 echo $ac_n "(cached) $ac_c" 1>&6
1887 cat > conftest.$ac_ext <<EOF
1888 #line 1889 "configure"
1889 #include "confdefs.h"
1890 /* System header to define __stub macros and hopefully few prototypes,
1891 which can conflict with char $ac_func(); below. */
1893 /* Override any gcc2 internal prototype to avoid an error. */
1894 /* We use char because int might match the return type of a gcc2
1895 builtin and then its argument prototype would still apply. */
1900 /* The GNU C library defines this for functions which it implements
1901 to always fail with ENOSYS. Some functions are actually named
1902 something starting with __ and the normal name is an alias. */
1903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1911 if { (eval echo configure:1912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1913 eval "ac_cv_func_$ac_func=yes"
1915 echo "configure: failed program was:" >&5
1916 cat conftest.$ac_ext >&5
1918 eval "ac_cv_func_$ac_func=no"
1923 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1924 echo "$ac_t""yes" 1>&6
1925 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1926 cat >> confdefs.h <<EOF
1927 #define $ac_tr_func 1
1931 echo "$ac_t""no" 1>&6
1935 for ac_func in gettimeofday mktime strptime
1937 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1938 echo "configure:1939: checking for $ac_func" >&5
1939 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1940 echo $ac_n "(cached) $ac_c" 1>&6
1942 cat > conftest.$ac_ext <<EOF
1943 #line 1944 "configure"
1944 #include "confdefs.h"
1945 /* System header to define __stub macros and hopefully few prototypes,
1946 which can conflict with char $ac_func(); below. */
1948 /* Override any gcc2 internal prototype to avoid an error. */
1949 /* We use char because int might match the return type of a gcc2
1950 builtin and then its argument prototype would still apply. */
1955 /* The GNU C library defines this for functions which it implements
1956 to always fail with ENOSYS. Some functions are actually named
1957 something starting with __ and the normal name is an alias. */
1958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1966 if { (eval echo configure:1967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1968 eval "ac_cv_func_$ac_func=yes"
1970 echo "configure: failed program was:" >&5
1971 cat conftest.$ac_ext >&5
1973 eval "ac_cv_func_$ac_func=no"
1978 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1979 echo "$ac_t""yes" 1>&6
1980 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1981 cat >> confdefs.h <<EOF
1982 #define $ac_tr_func 1
1986 echo "$ac_t""no" 1>&6
1990 for ac_func in strerror vsnprintf select signal symlink access isatty
1992 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1993 echo "configure:1994: checking for $ac_func" >&5
1994 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1995 echo $ac_n "(cached) $ac_c" 1>&6
1997 cat > conftest.$ac_ext <<EOF
1998 #line 1999 "configure"
1999 #include "confdefs.h"
2000 /* System header to define __stub macros and hopefully few prototypes,
2001 which can conflict with char $ac_func(); below. */
2003 /* Override any gcc2 internal prototype to avoid an error. */
2004 /* We use char because int might match the return type of a gcc2
2005 builtin and then its argument prototype would still apply. */
2010 /* The GNU C library defines this for functions which it implements
2011 to always fail with ENOSYS. Some functions are actually named
2012 something starting with __ and the normal name is an alias. */
2013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2021 if { (eval echo configure:2022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2023 eval "ac_cv_func_$ac_func=yes"
2025 echo "configure: failed program was:" >&5
2026 cat conftest.$ac_ext >&5
2028 eval "ac_cv_func_$ac_func=no"
2033 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2034 echo "$ac_t""yes" 1>&6
2035 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2036 cat >> confdefs.h <<EOF
2037 #define $ac_tr_func 1
2041 echo "$ac_t""no" 1>&6
2045 for ac_func in uname gethostname
2047 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2048 echo "configure:2049: checking for $ac_func" >&5
2049 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2050 echo $ac_n "(cached) $ac_c" 1>&6
2052 cat > conftest.$ac_ext <<EOF
2053 #line 2054 "configure"
2054 #include "confdefs.h"
2055 /* System header to define __stub macros and hopefully few prototypes,
2056 which can conflict with char $ac_func(); below. */
2058 /* Override any gcc2 internal prototype to avoid an error. */
2059 /* We use char because int might match the return type of a gcc2
2060 builtin and then its argument prototype would still apply. */
2065 /* The GNU C library defines this for functions which it implements
2066 to always fail with ENOSYS. Some functions are actually named
2067 something starting with __ and the normal name is an alias. */
2068 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2076 if { (eval echo configure:2077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2078 eval "ac_cv_func_$ac_func=yes"
2080 echo "configure: failed program was:" >&5
2081 cat conftest.$ac_ext >&5
2083 eval "ac_cv_func_$ac_func=no"
2088 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2089 echo "$ac_t""yes" 1>&6
2090 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2091 cat >> confdefs.h <<EOF
2092 #define $ac_tr_func 1
2096 echo "$ac_t""no" 1>&6
2101 for ac_func in gethostbyname
2103 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2104 echo "configure:2105: checking for $ac_func" >&5
2105 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2106 echo $ac_n "(cached) $ac_c" 1>&6
2108 cat > conftest.$ac_ext <<EOF
2109 #line 2110 "configure"
2110 #include "confdefs.h"
2111 /* System header to define __stub macros and hopefully few prototypes,
2112 which can conflict with char $ac_func(); below. */
2114 /* Override any gcc2 internal prototype to avoid an error. */
2115 /* We use char because int might match the return type of a gcc2
2116 builtin and then its argument prototype would still apply. */
2121 /* The GNU C library defines this for functions which it implements
2122 to always fail with ENOSYS. Some functions are actually named
2123 something starting with __ and the normal name is an alias. */
2124 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2132 if { (eval echo configure:2133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2134 eval "ac_cv_func_$ac_func=yes"
2136 echo "configure: failed program was:" >&5
2137 cat conftest.$ac_ext >&5
2139 eval "ac_cv_func_$ac_func=no"
2144 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2145 echo "$ac_t""yes" 1>&6
2146 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2147 cat >> confdefs.h <<EOF
2148 #define $ac_tr_func 1
2152 echo "$ac_t""no" 1>&6
2153 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2154 echo "configure:2155: checking for gethostbyname in -lnsl" >&5
2155 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2156 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2157 echo $ac_n "(cached) $ac_c" 1>&6
2159 ac_save_LIBS="$LIBS"
2161 cat > conftest.$ac_ext <<EOF
2162 #line 2163 "configure"
2163 #include "confdefs.h"
2164 /* Override any gcc2 internal prototype to avoid an error. */
2165 /* We use char because int might match the return type of a gcc2
2166 builtin and then its argument prototype would still apply. */
2167 char gethostbyname();
2173 if { (eval echo configure:2174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2175 eval "ac_cv_lib_$ac_lib_var=yes"
2177 echo "configure: failed program was:" >&5
2178 cat conftest.$ac_ext >&5
2180 eval "ac_cv_lib_$ac_lib_var=no"
2183 LIBS="$ac_save_LIBS"
2186 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2187 echo "$ac_t""yes" 1>&6
2188 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
2189 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2190 cat >> confdefs.h <<EOF
2191 #define $ac_tr_lib 1
2197 echo "$ac_t""no" 1>&6
2206 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
2207 echo "configure:2208: checking for socket in -lsocket" >&5
2208 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2209 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2210 echo $ac_n "(cached) $ac_c" 1>&6
2212 ac_save_LIBS="$LIBS"
2213 LIBS="-lsocket $LIBS"
2214 cat > conftest.$ac_ext <<EOF
2215 #line 2216 "configure"
2216 #include "confdefs.h"
2217 /* Override any gcc2 internal prototype to avoid an error. */
2218 /* We use char because int might match the return type of a gcc2
2219 builtin and then its argument prototype would still apply. */
2226 if { (eval echo configure:2227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2228 eval "ac_cv_lib_$ac_lib_var=yes"
2230 echo "configure: failed program was:" >&5
2231 cat conftest.$ac_ext >&5
2233 eval "ac_cv_lib_$ac_lib_var=no"
2236 LIBS="$ac_save_LIBS"
2239 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2240 echo "$ac_t""yes" 1>&6
2241 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2242 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2243 cat >> confdefs.h <<EOF
2244 #define $ac_tr_lib 1
2247 LIBS="-lsocket $LIBS"
2250 echo "$ac_t""no" 1>&6
2254 if test "x${with_socks}" = xyes
2256 echo $ac_n "checking for main in -lresolv""... $ac_c" 1>&6
2257 echo "configure:2258: checking for main in -lresolv" >&5
2258 ac_lib_var=`echo resolv'_'main | sed 'y%./+-%__p_%'`
2259 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2260 echo $ac_n "(cached) $ac_c" 1>&6
2262 ac_save_LIBS="$LIBS"
2263 LIBS="-lresolv $LIBS"
2264 cat > conftest.$ac_ext <<EOF
2265 #line 2266 "configure"
2266 #include "confdefs.h"
2272 if { (eval echo configure:2273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2274 eval "ac_cv_lib_$ac_lib_var=yes"
2276 echo "configure: failed program was:" >&5
2277 cat conftest.$ac_ext >&5
2279 eval "ac_cv_lib_$ac_lib_var=no"
2282 LIBS="$ac_save_LIBS"
2285 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2286 echo "$ac_t""yes" 1>&6
2287 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2288 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2289 cat >> confdefs.h <<EOF
2290 #define $ac_tr_lib 1
2293 LIBS="-lresolv $LIBS"
2296 echo "$ac_t""no" 1>&6
2299 echo $ac_n "checking for Rconnect in -lsocks""... $ac_c" 1>&6
2300 echo "configure:2301: checking for Rconnect in -lsocks" >&5
2301 ac_lib_var=`echo socks'_'Rconnect | sed 'y%./+-%__p_%'`
2302 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2303 echo $ac_n "(cached) $ac_c" 1>&6
2305 ac_save_LIBS="$LIBS"
2306 LIBS="-lsocks $LIBS"
2307 cat > conftest.$ac_ext <<EOF
2308 #line 2309 "configure"
2309 #include "confdefs.h"
2310 /* Override any gcc2 internal prototype to avoid an error. */
2311 /* We use char because int might match the return type of a gcc2
2312 builtin and then its argument prototype would still apply. */
2319 if { (eval echo configure:2320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2321 eval "ac_cv_lib_$ac_lib_var=yes"
2323 echo "configure: failed program was:" >&5
2324 cat conftest.$ac_ext >&5
2326 eval "ac_cv_lib_$ac_lib_var=no"
2329 LIBS="$ac_save_LIBS"
2332 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2333 echo "$ac_t""yes" 1>&6
2334 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2335 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2336 cat >> confdefs.h <<EOF
2337 #define $ac_tr_lib 1
2340 LIBS="-lsocks $LIBS"
2343 echo "$ac_t""no" 1>&6
2348 ALL_LINGUAS="cs de hr no it pt_BR"
2350 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2351 echo "configure:2352: checking whether NLS is requested" >&5
2352 # Check whether --enable-nls or --disable-nls was given.
2353 if test "${enable_nls+set}" = set; then
2354 enableval="$enable_nls"
2360 echo "$ac_t""$HAVE_NLS" 1>&6
2363 if test x"$HAVE_NLS" = xyes; then
2364 echo "$ac_t"""language catalogs: $ALL_LINGUAS"" 1>&6
2365 # Extract the first word of "msgfmt", so it can be a program name with args.
2366 set dummy msgfmt; ac_word=$2
2367 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2368 echo "configure:2369: checking for $ac_word" >&5
2369 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2370 echo $ac_n "(cached) $ac_c" 1>&6
2374 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2377 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2378 for ac_dir in $PATH; do
2379 test -z "$ac_dir" && ac_dir=.
2380 if test -f $ac_dir/$ac_word; then
2381 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2382 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2388 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2392 MSGFMT="$ac_cv_path_MSGFMT"
2393 if test -n "$MSGFMT"; then
2394 echo "$ac_t""$MSGFMT" 1>&6
2396 echo "$ac_t""no" 1>&6
2399 # Extract the first word of "xgettext", so it can be a program name with args.
2400 set dummy xgettext; ac_word=$2
2401 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2402 echo "configure:2403: checking for $ac_word" >&5
2403 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2404 echo $ac_n "(cached) $ac_c" 1>&6
2408 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2411 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2412 for ac_dir in $PATH; do
2413 test -z "$ac_dir" && ac_dir=.
2414 if test -f $ac_dir/$ac_word; then
2415 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2416 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2422 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2426 XGETTEXT="$ac_cv_path_XGETTEXT"
2427 if test -n "$XGETTEXT"; then
2428 echo "$ac_t""$XGETTEXT" 1>&6
2430 echo "$ac_t""no" 1>&6
2434 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2435 set dummy gmsgfmt; ac_word=$2
2436 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2437 echo "configure:2438: checking for $ac_word" >&5
2438 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2439 echo $ac_n "(cached) $ac_c" 1>&6
2443 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2446 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2447 for ac_dir in $PATH; do
2448 test -z "$ac_dir" && ac_dir=.
2449 if test -f $ac_dir/$ac_word; then
2450 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2455 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2459 GMSGFMT="$ac_cv_path_GMSGFMT"
2460 if test -n "$GMSGFMT"; then
2461 echo "$ac_t""$GMSGFMT" 1>&6
2463 echo "$ac_t""no" 1>&6
2470 if test "$XGETTEXT" != ":"; then
2471 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
2474 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2479 for ac_hdr in locale.h libintl.h
2481 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2482 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2483 echo "configure:2484: checking for $ac_hdr" >&5
2484 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2485 echo $ac_n "(cached) $ac_c" 1>&6
2487 cat > conftest.$ac_ext <<EOF
2488 #line 2489 "configure"
2489 #include "confdefs.h"
2492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2493 { (eval echo configure:2494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2494 ac_err=`grep -v '^ *+' conftest.out`
2495 if test -z "$ac_err"; then
2497 eval "ac_cv_header_$ac_safe=yes"
2500 echo "configure: failed program was:" >&5
2501 cat conftest.$ac_ext >&5
2503 eval "ac_cv_header_$ac_safe=no"
2507 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2508 echo "$ac_t""yes" 1>&6
2509 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2510 cat >> confdefs.h <<EOF
2511 #define $ac_tr_hdr 1
2515 echo "$ac_t""no" 1>&6
2520 for ac_func in gettext
2522 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2523 echo "configure:2524: checking for $ac_func" >&5
2524 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2525 echo $ac_n "(cached) $ac_c" 1>&6
2527 cat > conftest.$ac_ext <<EOF
2528 #line 2529 "configure"
2529 #include "confdefs.h"
2530 /* System header to define __stub macros and hopefully few prototypes,
2531 which can conflict with char $ac_func(); below. */
2533 /* Override any gcc2 internal prototype to avoid an error. */
2534 /* We use char because int might match the return type of a gcc2
2535 builtin and then its argument prototype would still apply. */
2540 /* The GNU C library defines this for functions which it implements
2541 to always fail with ENOSYS. Some functions are actually named
2542 something starting with __ and the normal name is an alias. */
2543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2551 if { (eval echo configure:2552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2553 eval "ac_cv_func_$ac_func=yes"
2555 echo "configure: failed program was:" >&5
2556 cat conftest.$ac_ext >&5
2558 eval "ac_cv_func_$ac_func=no"
2563 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2564 echo "$ac_t""yes" 1>&6
2565 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2566 cat >> confdefs.h <<EOF
2567 #define $ac_tr_func 1
2571 echo "$ac_t""no" 1>&6
2572 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2573 echo "configure:2574: checking for gettext in -lintl" >&5
2574 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2575 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2576 echo $ac_n "(cached) $ac_c" 1>&6
2578 ac_save_LIBS="$LIBS"
2580 cat > conftest.$ac_ext <<EOF
2581 #line 2582 "configure"
2582 #include "confdefs.h"
2583 /* Override any gcc2 internal prototype to avoid an error. */
2584 /* We use char because int might match the return type of a gcc2
2585 builtin and then its argument prototype would still apply. */
2592 if { (eval echo configure:2593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2594 eval "ac_cv_lib_$ac_lib_var=yes"
2596 echo "configure: failed program was:" >&5
2597 cat conftest.$ac_ext >&5
2599 eval "ac_cv_lib_$ac_lib_var=no"
2602 LIBS="$ac_save_LIBS"
2605 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2606 echo "$ac_t""yes" 1>&6
2609 cat >> confdefs.h <<\EOF
2610 #define HAVE_GETTEXT 1
2615 echo "$ac_t""no" 1>&6
2617 echo "$ac_t""gettext not found; disabling NLS" 1>&6
2627 for lang in $ALL_LINGUAS; do
2628 GMOFILES="$GMOFILES $lang.gmo"
2629 POFILES="$POFILES $lang.po"
2631 for lang in $ALL_LINGUAS; do
2632 CATALOGS="$CATALOGS ${lang}${CATOBJEXT}"
2646 if test "x$HAVE_NLS" = xyes; then
2647 cat >> confdefs.h <<\EOF
2655 for ac_prog in makeinfo emacs xemacs
2657 # Extract the first word of "$ac_prog", so it can be a program name with args.
2658 set dummy $ac_prog; ac_word=$2
2659 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2660 echo "configure:2661: checking for $ac_word" >&5
2661 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2662 echo $ac_n "(cached) $ac_c" 1>&6
2664 if test -n "$MAKEINFO"; then
2665 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2667 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2668 for ac_dir in $PATH; do
2669 test -z "$ac_dir" && ac_dir=.
2670 if test -f $ac_dir/$ac_word; then
2671 ac_cv_prog_MAKEINFO="$ac_prog"
2678 MAKEINFO="$ac_cv_prog_MAKEINFO"
2679 if test -n "$MAKEINFO"; then
2680 echo "$ac_t""$MAKEINFO" 1>&6
2682 echo "$ac_t""no" 1>&6
2685 test -n "$MAKEINFO" && break
2689 case "${MAKEINFO}" in
2690 *makeinfo) MAKEINFO="${MAKEINFO} \$(srcdir)/wget.texi" ;;
2691 *emacs | *xemacs) MAKEINFO="${MAKEINFO} -batch -q -no-site-file -eval '(find-file \"\$(srcdir)/wget.texi\")' -l texinfmt -f texinfo-format-buffer -f save-buffer" ;;
2692 *) MAKEINFO="makeinfo \$(srcdir)/wget.texi" ;;
2696 cat > confcache <<\EOF
2697 # This file is a shell script that caches the results of configure
2698 # tests run on this system so they can be shared between configure
2699 # scripts and configure runs. It is not useful on other systems.
2700 # If it contains results you don't want to keep, you may remove or edit it.
2702 # By default, configure uses ./config.cache as the cache file,
2703 # creating it if it does not exist already. You can give configure
2704 # the --cache-file=FILE option to use a different cache file; that is
2705 # what configure does when it calls configure scripts in
2706 # subdirectories, so they share the cache.
2707 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2708 # config.status only pays attention to the cache file if you give it the
2709 # --recheck option to rerun configure.
2712 # The following way of writing the cache mishandles newlines in values,
2713 # but we know of no workaround that is simple, portable, and efficient.
2714 # So, don't put newlines in cache variables' values.
2715 # Ultrix sh set writes to stderr and can't be redirected directly,
2716 # and sets the high bit in the cache file unless we assign to the vars.
2718 case `(ac_space=' '; set) 2>&1` in
2720 # `set' does not quote correctly, so add quotes (double-quote substitution
2721 # turns \\\\ into \\, and sed turns \\ into \).
2723 -e "s/'/'\\\\''/g" \
2724 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2727 # `set' quotes correctly as required by POSIX, so do not add quotes.
2728 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2731 if cmp -s $cache_file confcache; then
2734 if test -w $cache_file; then
2735 echo "updating cache $cache_file"
2736 cat confcache > $cache_file
2738 echo "not updating unwritable cache $cache_file"
2743 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2745 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2746 # Let make expand exec_prefix.
2747 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2749 # Any assignment to VPATH causes Sun make to only execute
2750 # the first set of double-colon rules, so remove it if not needed.
2751 # If there is a colon in the path, we need to keep it.
2752 if test "x$srcdir" = x.; then
2753 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2756 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2758 DEFS=-DHAVE_CONFIG_H
2760 # Without the "./", some shells look in PATH for config.status.
2761 : ${CONFIG_STATUS=./config.status}
2763 echo creating $CONFIG_STATUS
2764 rm -f $CONFIG_STATUS
2765 cat > $CONFIG_STATUS <<EOF
2767 # Generated automatically by configure.
2768 # Run this file to recreate the current configuration.
2769 # This directory was configured as follows,
2770 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2772 # $0 $ac_configure_args
2774 # Compiler output produced by configure, useful for debugging
2775 # configure, is in ./config.log if it exists.
2777 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2780 case "\$ac_option" in
2781 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2782 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2783 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2784 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2785 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2787 -help | --help | --hel | --he | --h)
2788 echo "\$ac_cs_usage"; exit 0 ;;
2789 *) echo "\$ac_cs_usage"; exit 1 ;;
2793 ac_given_srcdir=$srcdir
2794 ac_given_INSTALL="$INSTALL"
2796 trap 'rm -fr `echo "Makefile src/Makefile doc/Makefile util/Makefile po/Makefile.in src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2798 cat >> $CONFIG_STATUS <<EOF
2800 # Protect against being on the right side of a sed subst in config.status.
2801 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2802 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2805 s%@CFLAGS@%$CFLAGS%g
2806 s%@CPPFLAGS@%$CPPFLAGS%g
2807 s%@CXXFLAGS@%$CXXFLAGS%g
2809 s%@LDFLAGS@%$LDFLAGS%g
2811 s%@exec_prefix@%$exec_prefix%g
2812 s%@prefix@%$prefix%g
2813 s%@program_transform_name@%$program_transform_name%g
2814 s%@bindir@%$bindir%g
2815 s%@sbindir@%$sbindir%g
2816 s%@libexecdir@%$libexecdir%g
2817 s%@datadir@%$datadir%g
2818 s%@sysconfdir@%$sysconfdir%g
2819 s%@sharedstatedir@%$sharedstatedir%g
2820 s%@localstatedir@%$localstatedir%g
2821 s%@libdir@%$libdir%g
2822 s%@includedir@%$includedir%g
2823 s%@oldincludedir@%$oldincludedir%g
2824 s%@infodir@%$infodir%g
2825 s%@mandir@%$mandir%g
2826 s%@VERSION@%$VERSION%g
2827 s%@PACKAGE@%$PACKAGE%g
2829 s%@host_alias@%$host_alias%g
2830 s%@host_cpu@%$host_cpu%g
2831 s%@host_vendor@%$host_vendor%g
2832 s%@host_os@%$host_os%g
2833 s%@MD5_OBJ@%$MD5_OBJ%g
2834 s%@OPIE_OBJ@%$OPIE_OBJ%g
2835 s%@SET_MAKE@%$SET_MAKE%g
2836 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2837 s%@INSTALL_DATA@%$INSTALL_DATA%g
2840 s%@exeext@%$exeext%g
2842 s%@ANSI2KNR@%$ANSI2KNR%g
2843 s%@ALLOCA@%$ALLOCA%g
2844 s%@MSGFMT@%$MSGFMT%g
2845 s%@XGETTEXT@%$XGETTEXT%g
2846 s%@GMSGFMT@%$GMSGFMT%g
2847 s%@CATALOGS@%$CATALOGS%g
2848 s%@CATOBJEXT@%$CATOBJEXT%g
2849 s%@DATADIRNAME@%$DATADIRNAME%g
2850 s%@GMOFILES@%$GMOFILES%g
2851 s%@INSTOBJEXT@%$INSTOBJEXT%g
2852 s%@INTLLIBS@%$INTLLIBS%g
2853 s%@POFILES@%$POFILES%g
2854 s%@HAVE_NLS@%$HAVE_NLS%g
2855 s%@USE_NLS@%$USE_NLS%g
2856 s%@MAKEINFO@%$MAKEINFO%g
2861 cat >> $CONFIG_STATUS <<\EOF
2863 # Split the substitutions into bite-sized pieces for seds with
2864 # small command number limits, like on Digital OSF/1 and HP-UX.
2865 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2866 ac_file=1 # Number of current file.
2867 ac_beg=1 # First line for current file.
2868 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2871 while $ac_more_lines; do
2872 if test $ac_beg -gt 1; then
2873 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2875 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2877 if test ! -s conftest.s$ac_file; then
2879 rm -f conftest.s$ac_file
2881 if test -z "$ac_sed_cmds"; then
2882 ac_sed_cmds="sed -f conftest.s$ac_file"
2884 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2886 ac_file=`expr $ac_file + 1`
2888 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2891 if test -z "$ac_sed_cmds"; then
2896 cat >> $CONFIG_STATUS <<EOF
2898 CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile doc/Makefile util/Makefile po/Makefile.in"}
2900 cat >> $CONFIG_STATUS <<\EOF
2901 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2902 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2904 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2905 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2906 *) ac_file_in="${ac_file}.in" ;;
2909 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2911 # Remove last slash and all that follows it. Not all systems have dirname.
2912 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2913 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2914 # The file is in a subdirectory.
2915 test ! -d "$ac_dir" && mkdir "$ac_dir"
2916 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2917 # A "../" for each directory in $ac_dir_suffix.
2918 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2920 ac_dir_suffix= ac_dots=
2923 case "$ac_given_srcdir" in
2925 if test -z "$ac_dots"; then top_srcdir=.
2926 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2927 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2929 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2930 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2933 case "$ac_given_INSTALL" in
2934 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2935 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2938 echo creating "$ac_file"
2940 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2942 *Makefile*) ac_comsub="1i\\
2943 # $configure_input" ;;
2947 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2949 s%@configure_input@%$configure_input%g
2950 s%@srcdir@%$srcdir%g
2951 s%@top_srcdir@%$top_srcdir%g
2952 s%@INSTALL@%$INSTALL%g
2953 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2957 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2958 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2960 # ac_d sets the value in "#define NAME VALUE" lines.
2961 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2962 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2965 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2966 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2967 ac_uB='\([ ]\)%\1#\2define\3'
2970 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2971 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2972 ac_eB='$%\1#\2define\3'
2976 if test "${CONFIG_HEADERS+set}" != set; then
2978 cat >> $CONFIG_STATUS <<EOF
2979 CONFIG_HEADERS="src/config.h"
2981 cat >> $CONFIG_STATUS <<\EOF
2983 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2984 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2986 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2987 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2988 *) ac_file_in="${ac_file}.in" ;;
2991 echo creating $ac_file
2993 rm -f conftest.frag conftest.in conftest.out
2994 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2995 cat $ac_file_inputs > conftest.in
2999 # Transform confdefs.h into a sed script conftest.vals that substitutes
3000 # the proper values into config.h.in to produce config.h. And first:
3001 # Protect against being on the right side of a sed subst in config.status.
3002 # Protect against being in an unquoted here document in config.status.
3004 cat > conftest.hdr <<\EOF
3007 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3011 sed -n -f conftest.hdr confdefs.h > conftest.vals
3014 # This sed command replaces #undef with comments. This is necessary, for
3015 # example, in the case of _POSIX_SOURCE, which is predefined and required
3016 # on some systems where configure will not decide to define it.
3017 cat >> conftest.vals <<\EOF
3018 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3021 # Break up conftest.vals because some shells have a limit on
3022 # the size of here documents, and old seds have small limits too.
3027 ac_lines=`grep -c . conftest.vals`
3028 # grep -c gives empty output for an empty file on some AIX systems.
3029 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3030 # Write a limited-size here document to conftest.frag.
3031 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3032 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3034 sed -f conftest.frag conftest.in > conftest.out
3036 mv conftest.out conftest.in
3038 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3040 mv conftest.tail conftest.vals
3044 cat >> $CONFIG_STATUS <<\EOF
3045 rm -f conftest.frag conftest.h
3046 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3047 cat conftest.in >> conftest.h
3049 if cmp -s $ac_file conftest.h 2>/dev/null; then
3050 echo "$ac_file is unchanged"
3053 # Remove last slash and all that follows it. Not all systems have dirname.
3054 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3055 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3056 # The file is in a subdirectory.
3057 test ! -d "$ac_dir" && mkdir "$ac_dir"
3060 mv conftest.h $ac_file
3065 cat >> $CONFIG_STATUS <<EOF
3068 cat >> $CONFIG_STATUS <<\EOF
3069 srcdir=$ac_given_srcdir # Advanced autoconf hackery
3070 if test "x$srcdir" != "x."; then
3071 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3072 posrcprefix="$srcdir/"
3074 posrcprefix="../$srcdir/"
3080 echo "generating po/POTFILES from $srcdir/po/POTFILES.in"
3081 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," \
3082 -e "\$s/\(.*\) \\\\/\1/" \
3083 < $srcdir/po/POTFILES.in > po/POTFILES
3084 echo "creating po/Makefile"
3085 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
3087 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3090 chmod +x $CONFIG_STATUS
3091 rm -fr confdefs* $ac_clean_files
3092 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1