]> cygwin.com Git - cygwin-apps/cygutils.git/blame - configure
Add col; regenerate autofiles
[cygwin-apps/cygutils.git] / configure
CommitLineData
d4a28ab0
CW
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
ad412770 3# Generated by GNU Autoconf 2.53a for cygutils 1.0.0.
d4a28ab0
CW
4#
5# Report bugs to <cwilson@ece.gatech.edu>.
6#
ad412770 7# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
d4a28ab0
CW
8# Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
ad412770
CW
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
d4a28ab0 14
ad412770
CW
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
25
26# NLS nuisances.
27# Support unset when possible.
28if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
35 { $as_unset LANG || test "${LANG+set}" != set; } ||
36 { LANG=C; export LANG; }
37(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
38 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
39 { LC_ALL=C; export LC_ALL; }
40(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
41 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
42 { LC_TIME=C; export LC_TIME; }
43(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
44 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
45 { LC_CTYPE=C; export LC_CTYPE; }
46(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
47 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
48 { LANGUAGE=C; export LANGUAGE; }
49(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
50 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
51 { LC_COLLATE=C; export LC_COLLATE; }
52(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
53 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
54 { LC_NUMERIC=C; export LC_NUMERIC; }
55(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
56 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
57 { LC_MESSAGES=C; export LC_MESSAGES; }
58
59
60# Required to use basename.
61if expr a : '\(a\)' >/dev/null 2>&1; then
62 as_expr=expr
63else
64 as_expr=false
65fi
66
67if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68 as_basename=basename
69else
70 as_basename=false
71fi
72
73
74# Name of the executable.
75as_me=`$as_basename "$0" ||
76$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
77 X"$0" : 'X\(//\)$' \| \
78 X"$0" : 'X\(/\)$' \| \
79 . : '\(.\)' 2>/dev/null ||
80echo X/"$0" |
81 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
82 /^X\/\(\/\/\)$/{ s//\1/; q; }
83 /^X\/\(\/\).*/{ s//\1/; q; }
84 s/.*/./; q'`
85
86
87# PATH needs CR, and LINENO needs CR and PATH.
d4a28ab0
CW
88# Avoid depending upon Character Ranges.
89as_cr_letters='abcdefghijklmnopqrstuvwxyz'
90as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
91as_cr_Letters=$as_cr_letters$as_cr_LETTERS
92as_cr_digits='0123456789'
93as_cr_alnum=$as_cr_Letters$as_cr_digits
94
ad412770
CW
95# The user is always right.
96if test "${PATH_SEPARATOR+set}" != set; then
97 echo "#! /bin/sh" >conftest.sh
98 echo "exit 0" >>conftest.sh
99 chmod +x conftest.sh
100 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
101 PATH_SEPARATOR=';'
102 else
103 PATH_SEPARATOR=:
104 fi
105 rm -f conftest.sh
106fi
d4a28ab0 107
d4a28ab0 108
ad412770
CW
109 as_lineno_1=$LINENO
110 as_lineno_2=$LINENO
111 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
112 test "x$as_lineno_1" != "x$as_lineno_2" &&
113 test "x$as_lineno_3" = "x$as_lineno_2" || {
114 # Find who we are. Look in the path if we contain no path at all
115 # relative or not.
116 case $0 in
117 *[\\/]* ) as_myself=$0 ;;
118 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
119for as_dir in $PATH
120do
121 IFS=$as_save_IFS
122 test -z "$as_dir" && as_dir=.
123 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
124done
d4a28ab0 125
ad412770
CW
126 ;;
127 esac
128 # We did not find ourselves, most probably we were run as `sh COMMAND'
129 # in which case we are not to be found in the path.
130 if test "x$as_myself" = x; then
131 as_myself=$0
132 fi
133 if test ! -f "$as_myself"; then
134 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
135 { (exit 1); exit 1; }; }
136 fi
137 case $CONFIG_SHELL in
138 '')
139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
140for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
141do
142 IFS=$as_save_IFS
143 test -z "$as_dir" && as_dir=.
144 for as_base in sh bash ksh sh5; do
145 case $as_dir in
146 /*)
147 if ("$as_dir/$as_base" -c '
148 as_lineno_1=$LINENO
149 as_lineno_2=$LINENO
150 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
151 test "x$as_lineno_1" != "x$as_lineno_2" &&
152 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
153 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
154 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
155 CONFIG_SHELL=$as_dir/$as_base
156 export CONFIG_SHELL
157 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 fi;;
159 esac
160 done
161done
162;;
163 esac
164
165 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
166 # uniformly replaced by the line number. The first 'sed' inserts a
167 # line-number line before each line; the second 'sed' does the real
168 # work. The second script uses 'N' to pair each line-number line
169 # with the numbered line, and appends trailing '-' during
170 # substitution so that $LINENO is not a special case at line end.
171 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
172 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
173 sed '=' <$as_myself |
174 sed '
175 N
176 s,$,-,
177 : loop
178 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
179 t loop
180 s,-$,,
181 s,^['$as_cr_digits']*\n,,
182 ' >$as_me.lineno &&
183 chmod +x $as_me.lineno ||
184 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
185 { (exit 1); exit 1; }; }
186
187 # Don't try to exec as it changes $[0], causing all sort of problems
188 # (the dirname of $[0] is not the place where we might find the
189 # original and so on. Autoconf is especially sensible to this).
190 . ./$as_me.lineno
191 # Exit status is that of the last command.
192 exit
193}
194
195
196case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
197 *c*,-n*) ECHO_N= ECHO_C='
198' ECHO_T=' ' ;;
199 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
200 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
201esac
d4a28ab0
CW
202
203if expr a : '\(a\)' >/dev/null 2>&1; then
204 as_expr=expr
205else
206 as_expr=false
207fi
208
209rm -f conf$$ conf$$.exe conf$$.file
210echo >conf$$.file
211if ln -s conf$$.file conf$$ 2>/dev/null; then
212 # We could just check for DJGPP; but this test a) works b) is more generic
213 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
214 if test -f conf$$.exe; then
215 # Don't use ln at all; we don't have any links
216 as_ln_s='cp -p'
217 else
218 as_ln_s='ln -s'
219 fi
220elif ln conf$$.file conf$$ 2>/dev/null; then
221 as_ln_s=ln
222else
223 as_ln_s='cp -p'
224fi
225rm -f conf$$ conf$$.exe conf$$.file
226
ad412770
CW
227if mkdir -p . 2>/dev/null; then
228 as_mkdir_p=:
d4a28ab0 229else
ad412770 230 as_mkdir_p=false
d4a28ab0
CW
231fi
232
ad412770
CW
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
240
d4a28ab0
CW
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS=" $as_nl"
247
248# CDPATH.
ad412770
CW
249$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
250
d4a28ab0
CW
251
252# Name of the host.
253# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
254# so uname gets run too.
255ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
256
257exec 6>&1
258
259#
260# Initializations.
261#
262ac_default_prefix=/usr/local
263cross_compiling=no
264subdirs=
ad412770
CW
265MFLAGS=
266MAKEFLAGS=
d4a28ab0
CW
267SHELL=${CONFIG_SHELL-/bin/sh}
268
269# Maximum number of lines to put in a shell here document.
270# This variable seems obsolete. It should probably be removed, and
271# only ac_max_sed_lines should be used.
272: ${ac_max_here_lines=38}
273
ad412770
CW
274# Identity of this package.
275PACKAGE_NAME='cygutils'
276PACKAGE_TARNAME='cygutils'
277PACKAGE_VERSION='1.0.0'
278PACKAGE_STRING='cygutils 1.0.0'
279PACKAGE_BUGREPORT='cwilson@ece.gatech.edu'
280
d4a28ab0
CW
281ac_unique_file="config.h.in"
282# Factoring default headers for most tests.
283ac_includes_default="\
284#include <stdio.h>
285#if HAVE_SYS_TYPES_H
286# include <sys/types.h>
287#endif
288#if HAVE_SYS_STAT_H
289# include <sys/stat.h>
290#endif
291#if STDC_HEADERS
292# include <stdlib.h>
293# include <stddef.h>
294#else
295# if HAVE_STDLIB_H
296# include <stdlib.h>
297# endif
298#endif
299#if HAVE_STRING_H
300# if !STDC_HEADERS && HAVE_MEMORY_H
301# include <memory.h>
302# endif
303# include <string.h>
304#endif
305#if HAVE_STRINGS_H
306# include <strings.h>
307#endif
308#if HAVE_INTTYPES_H
309# include <inttypes.h>
310#else
311# if HAVE_STDINT_H
312# include <stdint.h>
313# endif
314#endif
315#if HAVE_UNISTD_H
316# include <unistd.h>
317#endif"
318
ad412770 319
d4a28ab0
CW
320# Initialize some variables set by options.
321ac_init_help=
322ac_init_version=false
323# The variables have the same names as the options, with
324# dashes changed to underlines.
325cache_file=/dev/null
326exec_prefix=NONE
327no_create=
328no_recursion=
329prefix=NONE
330program_prefix=NONE
331program_suffix=NONE
332program_transform_name=s,x,x,
333silent=
334site=
335srcdir=
336verbose=
337x_includes=NONE
338x_libraries=NONE
339
340# Installation directory options.
341# These are left unexpanded so users can "make install exec_prefix=/foo"
342# and all the variables that are supposed to be based on exec_prefix
343# by default will actually change.
344# Use braces instead of parens because sh, perl, etc. also accept them.
345bindir='${exec_prefix}/bin'
346sbindir='${exec_prefix}/sbin'
347libexecdir='${exec_prefix}/libexec'
348datadir='${prefix}/share'
349sysconfdir='${prefix}/etc'
350sharedstatedir='${prefix}/com'
351localstatedir='${prefix}/var'
352libdir='${exec_prefix}/lib'
353includedir='${prefix}/include'
354oldincludedir='/usr/include'
355infodir='${prefix}/info'
356mandir='${prefix}/man'
357
d4a28ab0
CW
358ac_prev=
359for ac_option
360do
361 # If the previous option needs an argument, assign it.
362 if test -n "$ac_prev"; then
363 eval "$ac_prev=\$ac_option"
364 ac_prev=
365 continue
366 fi
367
368 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
369
370 # Accept the important Cygnus configure options, so we can diagnose typos.
371
372 case $ac_option in
373
374 -bindir | --bindir | --bindi | --bind | --bin | --bi)
375 ac_prev=bindir ;;
376 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
377 bindir=$ac_optarg ;;
378
379 -build | --build | --buil | --bui | --bu)
380 ac_prev=build_alias ;;
381 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
382 build_alias=$ac_optarg ;;
383
384 -cache-file | --cache-file | --cache-fil | --cache-fi \
385 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
386 ac_prev=cache_file ;;
387 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
388 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
389 cache_file=$ac_optarg ;;
390
391 --config-cache | -C)
392 cache_file=config.cache ;;
393
394 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
395 ac_prev=datadir ;;
396 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
397 | --da=*)
398 datadir=$ac_optarg ;;
399
400 -disable-* | --disable-*)
401 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
402 # Reject names that are not valid shell variable names.
403 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405 { (exit 1); exit 1; }; }
406 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
407 eval "enable_$ac_feature=no" ;;
408
409 -enable-* | --enable-*)
410 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
411 # Reject names that are not valid shell variable names.
412 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
413 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
414 { (exit 1); exit 1; }; }
415 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
416 case $ac_option in
417 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
418 *) ac_optarg=yes ;;
419 esac
420 eval "enable_$ac_feature='$ac_optarg'" ;;
421
422 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
423 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
424 | --exec | --exe | --ex)
425 ac_prev=exec_prefix ;;
426 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
427 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
428 | --exec=* | --exe=* | --ex=*)
429 exec_prefix=$ac_optarg ;;
430
431 -gas | --gas | --ga | --g)
432 # Obsolete; use --with-gas.
433 with_gas=yes ;;
434
435 -help | --help | --hel | --he | -h)
436 ac_init_help=long ;;
437 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
438 ac_init_help=recursive ;;
439 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
440 ac_init_help=short ;;
441
442 -host | --host | --hos | --ho)
443 ac_prev=host_alias ;;
444 -host=* | --host=* | --hos=* | --ho=*)
445 host_alias=$ac_optarg ;;
446
447 -includedir | --includedir | --includedi | --included | --include \
448 | --includ | --inclu | --incl | --inc)
449 ac_prev=includedir ;;
450 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
451 | --includ=* | --inclu=* | --incl=* | --inc=*)
452 includedir=$ac_optarg ;;
453
454 -infodir | --infodir | --infodi | --infod | --info | --inf)
455 ac_prev=infodir ;;
456 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
457 infodir=$ac_optarg ;;
458
459 -libdir | --libdir | --libdi | --libd)
460 ac_prev=libdir ;;
461 -libdir=* | --libdir=* | --libdi=* | --libd=*)
462 libdir=$ac_optarg ;;
463
464 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
465 | --libexe | --libex | --libe)
466 ac_prev=libexecdir ;;
467 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
468 | --libexe=* | --libex=* | --libe=*)
469 libexecdir=$ac_optarg ;;
470
471 -localstatedir | --localstatedir | --localstatedi | --localstated \
472 | --localstate | --localstat | --localsta | --localst \
473 | --locals | --local | --loca | --loc | --lo)
474 ac_prev=localstatedir ;;
475 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
476 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
477 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
478 localstatedir=$ac_optarg ;;
479
480 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
481 ac_prev=mandir ;;
482 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483 mandir=$ac_optarg ;;
484
485 -nfp | --nfp | --nf)
486 # Obsolete; use --without-fp.
487 with_fp=no ;;
488
489 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad412770 490 | --no-cr | --no-c | -n)
d4a28ab0
CW
491 no_create=yes ;;
492
493 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
495 no_recursion=yes ;;
496
497 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
498 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
499 | --oldin | --oldi | --old | --ol | --o)
500 ac_prev=oldincludedir ;;
501 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
502 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
503 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
504 oldincludedir=$ac_optarg ;;
505
506 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
507 ac_prev=prefix ;;
508 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
509 prefix=$ac_optarg ;;
510
511 -program-prefix | --program-prefix | --program-prefi | --program-pref \
512 | --program-pre | --program-pr | --program-p)
513 ac_prev=program_prefix ;;
514 -program-prefix=* | --program-prefix=* | --program-prefi=* \
515 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
516 program_prefix=$ac_optarg ;;
517
518 -program-suffix | --program-suffix | --program-suffi | --program-suff \
519 | --program-suf | --program-su | --program-s)
520 ac_prev=program_suffix ;;
521 -program-suffix=* | --program-suffix=* | --program-suffi=* \
522 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
523 program_suffix=$ac_optarg ;;
524
525 -program-transform-name | --program-transform-name \
526 | --program-transform-nam | --program-transform-na \
527 | --program-transform-n | --program-transform- \
528 | --program-transform | --program-transfor \
529 | --program-transfo | --program-transf \
530 | --program-trans | --program-tran \
531 | --progr-tra | --program-tr | --program-t)
532 ac_prev=program_transform_name ;;
533 -program-transform-name=* | --program-transform-name=* \
534 | --program-transform-nam=* | --program-transform-na=* \
535 | --program-transform-n=* | --program-transform-=* \
536 | --program-transform=* | --program-transfor=* \
537 | --program-transfo=* | --program-transf=* \
538 | --program-trans=* | --program-tran=* \
539 | --progr-tra=* | --program-tr=* | --program-t=*)
540 program_transform_name=$ac_optarg ;;
541
542 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
543 | -silent | --silent | --silen | --sile | --sil)
544 silent=yes ;;
545
546 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
547 ac_prev=sbindir ;;
548 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
549 | --sbi=* | --sb=*)
550 sbindir=$ac_optarg ;;
551
552 -sharedstatedir | --sharedstatedir | --sharedstatedi \
553 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
554 | --sharedst | --shareds | --shared | --share | --shar \
555 | --sha | --sh)
556 ac_prev=sharedstatedir ;;
557 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
558 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
559 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
560 | --sha=* | --sh=*)
561 sharedstatedir=$ac_optarg ;;
562
563 -site | --site | --sit)
564 ac_prev=site ;;
565 -site=* | --site=* | --sit=*)
566 site=$ac_optarg ;;
567
568 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
569 ac_prev=srcdir ;;
570 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
571 srcdir=$ac_optarg ;;
572
573 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
574 | --syscon | --sysco | --sysc | --sys | --sy)
575 ac_prev=sysconfdir ;;
576 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
577 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
578 sysconfdir=$ac_optarg ;;
579
580 -target | --target | --targe | --targ | --tar | --ta | --t)
581 ac_prev=target_alias ;;
582 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
583 target_alias=$ac_optarg ;;
584
585 -v | -verbose | --verbose | --verbos | --verbo | --verb)
586 verbose=yes ;;
587
588 -version | --version | --versio | --versi | --vers | -V)
589 ac_init_version=: ;;
590
591 -with-* | --with-*)
592 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
593 # Reject names that are not valid shell variable names.
594 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
595 { echo "$as_me: error: invalid package name: $ac_package" >&2
596 { (exit 1); exit 1; }; }
597 ac_package=`echo $ac_package| sed 's/-/_/g'`
598 case $ac_option in
599 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
600 *) ac_optarg=yes ;;
601 esac
602 eval "with_$ac_package='$ac_optarg'" ;;
603
604 -without-* | --without-*)
605 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
606 # Reject names that are not valid shell variable names.
607 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
608 { echo "$as_me: error: invalid package name: $ac_package" >&2
609 { (exit 1); exit 1; }; }
610 ac_package=`echo $ac_package | sed 's/-/_/g'`
611 eval "with_$ac_package=no" ;;
612
613 --x)
614 # Obsolete; use --with-x.
615 with_x=yes ;;
616
617 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
618 | --x-incl | --x-inc | --x-in | --x-i)
619 ac_prev=x_includes ;;
620 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
621 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
622 x_includes=$ac_optarg ;;
623
624 -x-libraries | --x-libraries | --x-librarie | --x-librari \
625 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
626 ac_prev=x_libraries ;;
627 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
628 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
629 x_libraries=$ac_optarg ;;
630
631 -*) { echo "$as_me: error: unrecognized option: $ac_option
632Try \`$0 --help' for more information." >&2
633 { (exit 1); exit 1; }; }
634 ;;
635
636 *=*)
637 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
638 # Reject names that are not valid shell variable names.
639 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
640 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
641 { (exit 1); exit 1; }; }
642 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
643 eval "$ac_envvar='$ac_optarg'"
644 export $ac_envvar ;;
645
646 *)
647 # FIXME: should be removed in autoconf 3.0.
648 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
649 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
650 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
651 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 ;;
653
654 esac
655done
656
657if test -n "$ac_prev"; then
658 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
659 { echo "$as_me: error: missing argument to $ac_option" >&2
660 { (exit 1); exit 1; }; }
661fi
662
663# Be sure to have absolute paths.
664for ac_var in exec_prefix prefix
665do
666 eval ac_val=$`echo $ac_var`
667 case $ac_val in
668 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
ad412770 669 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
d4a28ab0
CW
670 { (exit 1); exit 1; }; };;
671 esac
672done
673
674# Be sure to have absolute paths.
675for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
676 localstatedir libdir includedir oldincludedir infodir mandir
677do
678 eval ac_val=$`echo $ac_var`
679 case $ac_val in
680 [\\/$]* | ?:[\\/]* ) ;;
ad412770 681 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
d4a28ab0
CW
682 { (exit 1); exit 1; }; };;
683 esac
684done
685
686# There might be people who depend on the old broken behavior: `$host'
687# used to hold the argument of --host etc.
ad412770 688# FIXME: To remove some day.
d4a28ab0
CW
689build=$build_alias
690host=$host_alias
691target=$target_alias
692
ad412770 693# FIXME: To remove some day.
d4a28ab0
CW
694if test "x$host_alias" != x; then
695 if test "x$build_alias" = x; then
696 cross_compiling=maybe
697 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
698 If a cross compiler is detected then cross compile mode will be used." >&2
699 elif test "x$build_alias" != "x$host_alias"; then
700 cross_compiling=yes
701 fi
702fi
703
704ac_tool_prefix=
705test -n "$host_alias" && ac_tool_prefix=$host_alias-
706
707test "$silent" = yes && exec 6>/dev/null
708
ad412770 709
d4a28ab0
CW
710# Find the source files, if location was not specified.
711if test -z "$srcdir"; then
712 ac_srcdir_defaulted=yes
713 # Try the directory containing this script, then its parent.
ad412770
CW
714 ac_confdir=`(dirname "$0") 2>/dev/null ||
715$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
716 X"$0" : 'X\(//\)[^/]' \| \
717 X"$0" : 'X\(//\)$' \| \
718 X"$0" : 'X\(/\)' \| \
719 . : '\(.\)' 2>/dev/null ||
720echo X"$0" |
721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
722 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
723 /^X\(\/\/\)$/{ s//\1/; q; }
724 /^X\(\/\).*/{ s//\1/; q; }
725 s/.*/./; q'`
d4a28ab0
CW
726 srcdir=$ac_confdir
727 if test ! -r $srcdir/$ac_unique_file; then
728 srcdir=..
729 fi
730else
731 ac_srcdir_defaulted=no
732fi
733if test ! -r $srcdir/$ac_unique_file; then
734 if test "$ac_srcdir_defaulted" = yes; then
ad412770 735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
d4a28ab0
CW
736 { (exit 1); exit 1; }; }
737 else
ad412770 738 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
d4a28ab0
CW
739 { (exit 1); exit 1; }; }
740 fi
741fi
742srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743ac_env_build_alias_set=${build_alias+set}
744ac_env_build_alias_value=$build_alias
745ac_cv_env_build_alias_set=${build_alias+set}
746ac_cv_env_build_alias_value=$build_alias
747ac_env_host_alias_set=${host_alias+set}
748ac_env_host_alias_value=$host_alias
749ac_cv_env_host_alias_set=${host_alias+set}
750ac_cv_env_host_alias_value=$host_alias
751ac_env_target_alias_set=${target_alias+set}
752ac_env_target_alias_value=$target_alias
753ac_cv_env_target_alias_set=${target_alias+set}
754ac_cv_env_target_alias_value=$target_alias
755ac_env_CC_set=${CC+set}
756ac_env_CC_value=$CC
757ac_cv_env_CC_set=${CC+set}
758ac_cv_env_CC_value=$CC
759ac_env_CFLAGS_set=${CFLAGS+set}
760ac_env_CFLAGS_value=$CFLAGS
761ac_cv_env_CFLAGS_set=${CFLAGS+set}
762ac_cv_env_CFLAGS_value=$CFLAGS
763ac_env_LDFLAGS_set=${LDFLAGS+set}
764ac_env_LDFLAGS_value=$LDFLAGS
765ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766ac_cv_env_LDFLAGS_value=$LDFLAGS
767ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_env_CPPFLAGS_value=$CPPFLAGS
769ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771ac_env_CPP_set=${CPP+set}
772ac_env_CPP_value=$CPP
773ac_cv_env_CPP_set=${CPP+set}
774ac_cv_env_CPP_value=$CPP
775
776#
777# Report the --help message.
778#
779if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
ad412770 782 cat <<_ACEOF
a18613f3 783\`configure' configures cygutils 1.0.0 to adapt to many kinds of systems.
d4a28ab0
CW
784
785Usage: $0 [OPTION]... [VAR=VALUE]...
786
787To assign environment variables (e.g., CC, CFLAGS...), specify them as
788VAR=VALUE. See below for descriptions of some of the useful variables.
789
790Defaults for the options are specified in brackets.
791
792Configuration:
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
802
ad412770 803_ACEOF
d4a28ab0 804
ad412770 805 cat <<_ACEOF
d4a28ab0
CW
806Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
808 [$ac_default_prefix]
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 [PREFIX]
811
812By default, \`make install' will install all the files in
813\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815for instance \`--prefix=\$HOME'.
816
817For better control, use the options below.
818
819Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
ad412770 832_ACEOF
d4a28ab0 833
ad412770 834 cat <<\_ACEOF
d4a28ab0
CW
835
836Program names:
837 --program-prefix=PREFIX prepend PREFIX to installed program names
838 --program-suffix=SUFFIX append SUFFIX to installed program names
839 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
ad412770 840_ACEOF
d4a28ab0
CW
841fi
842
843if test -n "$ac_init_help"; then
844 case $ac_init_help in
a18613f3 845 short | recursive ) echo "Configuration of cygutils 1.0.0:";;
d4a28ab0 846 esac
ad412770 847 cat <<\_ACEOF
d4a28ab0
CW
848
849Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
d4a28ab0
CW
852 --enable-maintainer-mode enable make rules and dependencies not useful
853 (and sometimes confusing) to the casual installer
13a7ef4c
CW
854 --disable-dependency-tracking Speeds up one-time builds
855 --enable-dependency-tracking Do not reject slow dependency extractors
d4a28ab0
CW
856
857Some influential environment variables:
858 CC C compiler command
859 CFLAGS C compiler flags
860 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
861 nonstandard directory <lib dir>
862 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
863 headers in a nonstandard directory <include dir>
864 CPP C preprocessor
865
866Use these variables to override the choices made by `configure' or to help
867it to find libraries and programs with nonstandard names/locations.
868
869Report bugs to <cwilson@ece.gatech.edu>.
ad412770 870_ACEOF
d4a28ab0
CW
871fi
872
873if test "$ac_init_help" = "recursive"; then
874 # If there are subdirs, report their specific --help.
875 ac_popdir=`pwd`
ad412770
CW
876 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
877 test -d $ac_dir || continue
878 ac_builddir=.
879
880if test "$ac_dir" != .; then
881 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
882 # A "../" for each directory in $ac_dir_suffix.
883 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
884else
885 ac_dir_suffix= ac_top_builddir=
886fi
d4a28ab0 887
ad412770
CW
888case $srcdir in
889 .) # No --srcdir option. We are building in place.
890 ac_srcdir=.
891 if test -z "$ac_top_builddir"; then
892 ac_top_srcdir=.
893 else
894 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
895 fi ;;
896 [\\/]* | ?:[\\/]* ) # Absolute path.
897 ac_srcdir=$srcdir$ac_dir_suffix;
898 ac_top_srcdir=$srcdir ;;
899 *) # Relative path.
900 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
901 ac_top_srcdir=$ac_top_builddir$srcdir ;;
902esac
903# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
904# absolute.
905ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
906ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
907ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
908ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
909
910 cd $ac_dir
d4a28ab0 911 # Check for guested configure; otherwise get Cygnus style configure.
ad412770 912 if test -f $ac_srcdir/configure.gnu; then
d4a28ab0 913 echo
ad412770
CW
914 $SHELL $ac_srcdir/configure.gnu --help=recursive
915 elif test -f $ac_srcdir/configure; then
d4a28ab0 916 echo
ad412770
CW
917 $SHELL $ac_srcdir/configure --help=recursive
918 elif test -f $ac_srcdir/configure.ac ||
919 test -f $ac_srcdir/configure.in; then
d4a28ab0
CW
920 echo
921 $ac_configure --help
922 else
ad412770 923 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
d4a28ab0
CW
924 fi
925 cd $ac_popdir
926 done
927fi
928
929test -n "$ac_init_help" && exit 0
930if $ac_init_version; then
ad412770 931 cat <<\_ACEOF
a18613f3 932cygutils configure 1.0.0
ad412770 933generated by GNU Autoconf 2.53a
d4a28ab0 934
ad412770 935Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
d4a28ab0
CW
936Free Software Foundation, Inc.
937This configure script is free software; the Free Software Foundation
938gives unlimited permission to copy, distribute and modify it.
ad412770 939_ACEOF
d4a28ab0
CW
940 exit 0
941fi
942exec 5>config.log
ad412770 943cat >&5 <<_ACEOF
d4a28ab0
CW
944This file contains any messages produced by compilers while
945running configure, to aid debugging if configure makes a mistake.
946
a18613f3 947It was created by cygutils $as_me 1.0.0, which was
ad412770 948generated by GNU Autoconf 2.53a. Invocation command line was
d4a28ab0
CW
949
950 $ $0 $@
951
ad412770 952_ACEOF
d4a28ab0
CW
953{
954cat <<_ASUNAME
ad412770
CW
955## --------- ##
956## Platform. ##
957## --------- ##
d4a28ab0
CW
958
959hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
960uname -m = `(uname -m) 2>/dev/null || echo unknown`
961uname -r = `(uname -r) 2>/dev/null || echo unknown`
962uname -s = `(uname -s) 2>/dev/null || echo unknown`
963uname -v = `(uname -v) 2>/dev/null || echo unknown`
964
965/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
966/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
967
968/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
969/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
970/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
971hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
972/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
973/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
974/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
975
d4a28ab0 976_ASUNAME
ad412770
CW
977
978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
979for as_dir in $PATH
980do
981 IFS=$as_save_IFS
982 test -z "$as_dir" && as_dir=.
983 echo "PATH: $as_dir"
984done
985
d4a28ab0
CW
986} >&5
987
ad412770
CW
988cat >&5 <<_ACEOF
989
990
991## ----------- ##
992## Core tests. ##
993## ----------- ##
994
995_ACEOF
d4a28ab0 996
d4a28ab0
CW
997
998# Keep a trace of the command line.
999# Strip out --no-create and --no-recursion so they do not pile up.
1000# Also quote any args containing shell meta-characters.
1001ac_configure_args=
1002ac_sep=
1003for ac_arg
1004do
1005 case $ac_arg in
1006 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad412770 1007 | --no-cr | --no-c | -n ) continue ;;
d4a28ab0 1008 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
ad412770
CW
1009 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1010 continue ;;
d4a28ab0 1011 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
ad412770
CW
1012 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1013 esac
1014 case " $ac_configure_args " in
1015 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1016 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1017 ac_sep=" " ;;
d4a28ab0
CW
1018 esac
1019 # Get rid of the leading space.
1020done
1021
1022# When interrupted or exit'd, cleanup temporary files, and complete
1023# config.log. We remove comments because anyway the quotes in there
1024# would cause problems or look ugly.
ad412770
CW
1025# WARNING: Be sure not to use single quotes in there, as some shells,
1026# such as our DU 5.0 friend, will then `close' the trap.
d4a28ab0
CW
1027trap 'exit_status=$?
1028 # Save into config.log some information that might help in debugging.
ad412770
CW
1029 {
1030 echo
1031 cat <<\_ASBOX
1032## ---------------- ##
1033## Cache variables. ##
1034## ---------------- ##
1035_ASBOX
1036 echo
1037 # The following way of writing the cache mishandles newlines in values,
d4a28ab0
CW
1038{
1039 (set) 2>&1 |
1040 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1041 *ac_space=\ *)
1042 sed -n \
1043 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1044 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1045 ;;
1046 *)
1047 sed -n \
1048 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1049 ;;
1050 esac;
ad412770
CW
1051}
1052 echo
1053 if test -s confdefs.h; then
1054 cat <<\_ASBOX
1055## ----------- ##
1056## confdefs.h. ##
1057## ----------- ##
1058_ASBOX
1059 echo
1060 sed "/^$/d" confdefs.h
1061 echo
1062 fi
1063 test "$ac_signal" != 0 &&
1064 echo "$as_me: caught signal $ac_signal"
1065 echo "$as_me: exit $exit_status"
1066 } >&5
1067 rm -f core core.* *.core &&
1068 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
d4a28ab0
CW
1069 exit $exit_status
1070 ' 0
1071for ac_signal in 1 2 13 15; do
1072 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1073done
1074ac_signal=0
1075
1076# confdefs.h avoids OS command line length limits that DEFS can exceed.
1077rm -rf conftest* confdefs.h
1078# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1079echo >confdefs.h
1080
ad412770
CW
1081# Predefined preprocessor variables.
1082
1083cat >>confdefs.h <<_ACEOF
1084#define PACKAGE_NAME "$PACKAGE_NAME"
1085_ACEOF
1086
1087
1088cat >>confdefs.h <<_ACEOF
1089#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1090_ACEOF
1091
1092
1093cat >>confdefs.h <<_ACEOF
1094#define PACKAGE_VERSION "$PACKAGE_VERSION"
1095_ACEOF
1096
1097
1098cat >>confdefs.h <<_ACEOF
1099#define PACKAGE_STRING "$PACKAGE_STRING"
1100_ACEOF
1101
1102
1103cat >>confdefs.h <<_ACEOF
1104#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1105_ACEOF
1106
1107
d4a28ab0
CW
1108# Let the site file select an alternate cache file if it wants to.
1109# Prefer explicitly selected file to automatically selected ones.
1110if test -z "$CONFIG_SITE"; then
1111 if test "x$prefix" != xNONE; then
1112 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1113 else
1114 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1115 fi
1116fi
1117for ac_site_file in $CONFIG_SITE; do
1118 if test -r "$ac_site_file"; then
ad412770 1119 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
d4a28ab0 1120echo "$as_me: loading site script $ac_site_file" >&6;}
ad412770 1121 sed 's/^/| /' "$ac_site_file" >&5
d4a28ab0
CW
1122 . "$ac_site_file"
1123 fi
1124done
1125
1126if test -r "$cache_file"; then
1127 # Some versions of bash will fail to source /dev/null (special
1128 # files actually), so we avoid doing that.
1129 if test -f "$cache_file"; then
ad412770 1130 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
d4a28ab0
CW
1131echo "$as_me: loading cache $cache_file" >&6;}
1132 case $cache_file in
1133 [\\/]* | ?:[\\/]* ) . $cache_file;;
1134 *) . ./$cache_file;;
1135 esac
1136 fi
1137else
ad412770 1138 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
d4a28ab0
CW
1139echo "$as_me: creating cache $cache_file" >&6;}
1140 >$cache_file
1141fi
1142
1143# Check that the precious variables saved in the cache have kept the same
1144# value.
1145ac_cache_corrupted=false
1146for ac_var in `(set) 2>&1 |
1147 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1148 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1149 eval ac_new_set=\$ac_env_${ac_var}_set
1150 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1151 eval ac_new_val="\$ac_env_${ac_var}_value"
1152 case $ac_old_set,$ac_new_set in
1153 set,)
ad412770 1154 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
d4a28ab0
CW
1155echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1156 ac_cache_corrupted=: ;;
1157 ,set)
ad412770 1158 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
d4a28ab0
CW
1159echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1160 ac_cache_corrupted=: ;;
1161 ,);;
1162 *)
1163 if test "x$ac_old_val" != "x$ac_new_val"; then
ad412770 1164 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
d4a28ab0 1165echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ad412770 1166 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
d4a28ab0 1167echo "$as_me: former value: $ac_old_val" >&2;}
ad412770 1168 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
d4a28ab0
CW
1169echo "$as_me: current value: $ac_new_val" >&2;}
1170 ac_cache_corrupted=:
1171 fi;;
1172 esac
ad412770 1173 # Pass precious variables to config.status.
d4a28ab0
CW
1174 if test "$ac_new_set" = set; then
1175 case $ac_new_val in
1176 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
ad412770
CW
1177 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1178 *) ac_arg=$ac_var=$ac_new_val ;;
1179 esac
1180 case " $ac_configure_args " in
1181 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1182 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
d4a28ab0
CW
1183 esac
1184 fi
1185done
1186if $ac_cache_corrupted; then
ad412770 1187 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
d4a28ab0 1188echo "$as_me: error: changes in the environment can compromise the build" >&2;}
ad412770 1189 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
d4a28ab0
CW
1190echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1191 { (exit 1); exit 1; }; }
1192fi
1193
1194ac_ext=c
1195ac_cpp='$CPP $CPPFLAGS'
1196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1198ac_compiler_gnu=$ac_cv_c_compiler_gnu
1199
ad412770
CW
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
d4a28ab0 1226
13a7ef4c
CW
1227# Add the stamp file to the list of files AC keeps track of,
1228# along with our hook.
ad412770
CW
1229 ac_config_headers="$ac_config_headers config.h"
1230
1231
d4a28ab0 1232
13a7ef4c 1233am__api_version="1.6"
d4a28ab0
CW
1234ac_aux_dir=
1235for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1236 if test -f $ac_dir/install-sh; then
1237 ac_aux_dir=$ac_dir
1238 ac_install_sh="$ac_aux_dir/install-sh -c"
1239 break
1240 elif test -f $ac_dir/install.sh; then
1241 ac_aux_dir=$ac_dir
1242 ac_install_sh="$ac_aux_dir/install.sh -c"
1243 break
1244 elif test -f $ac_dir/shtool; then
1245 ac_aux_dir=$ac_dir
1246 ac_install_sh="$ac_aux_dir/shtool install -c"
1247 break
1248 fi
1249done
1250if test -z "$ac_aux_dir"; then
ad412770 1251 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
d4a28ab0
CW
1252echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1253 { (exit 1); exit 1; }; }
1254fi
1255ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1256ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1257ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1258
1259# Find a good install program. We prefer a C program (faster),
1260# so one script is as good as another. But avoid the broken or
1261# incompatible versions:
1262# SysV /etc/install, /usr/sbin/install
1263# SunOS /usr/etc/install
1264# IRIX /sbin/install
1265# AIX /bin/install
1266# AmigaOS /C/install, which installs bootblocks on floppy discs
1267# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1268# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1269# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1270# ./install, which can be erroneously created by make from ./install.sh.
ad412770
CW
1271echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1272echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
d4a28ab0
CW
1273if test -z "$INSTALL"; then
1274if test "${ac_cv_path_install+set}" = set; then
1275 echo $ECHO_N "(cached) $ECHO_C" >&6
1276else
ad412770
CW
1277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1278for as_dir in $PATH
1279do
1280 IFS=$as_save_IFS
1281 test -z "$as_dir" && as_dir=.
1282 # Account for people who put trailing slashes in PATH elements.
1283case $as_dir/ in
1284 ./ | .// | /cC/* | \
1285 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1286 /usr/ucb/* ) ;;
1287 *)
1288 # OSF1 and SCO ODT 3.0 have their own names for install.
1289 # Don't use installbsd from OSF since it installs stuff as root
1290 # by default.
1291 for ac_prog in ginstall scoinst install; do
1292 for ac_exec_ext in '' $ac_executable_extensions; do
1293 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1294 if test $ac_prog = install &&
1295 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1296 # AIX install. It has an incompatible calling convention.
1297 :
1298 elif test $ac_prog = install &&
1299 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1300 # program-specific install script used by HP pwplus--don't use.
1301 :
1302 else
1303 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1304 break 3
1305 fi
1306 fi
d4a28ab0 1307 done
ad412770
CW
1308 done
1309 ;;
1310esac
1311done
1312
d4a28ab0
CW
1313
1314fi
1315 if test "${ac_cv_path_install+set}" = set; then
1316 INSTALL=$ac_cv_path_install
1317 else
1318 # As a last resort, use the slow shell script. We don't cache a
1319 # path for INSTALL within a source directory, because that will
1320 # break other packages using the cache if that directory is
1321 # removed, or if the path is relative.
1322 INSTALL=$ac_install_sh
1323 fi
1324fi
ad412770 1325echo "$as_me:$LINENO: result: $INSTALL" >&5
d4a28ab0
CW
1326echo "${ECHO_T}$INSTALL" >&6
1327
1328# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1329# It thinks the first close brace ends the variable substitution.
1330test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1331
1332test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1333
1334test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1335
ad412770 1336echo "$as_me:$LINENO: checking whether build environment is sane" >&5
d4a28ab0
CW
1337echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1338# Just in case
1339sleep 1
1340echo timestamp > conftest.file
1341# Do `set' in a subshell so we don't clobber the current shell's
1342# arguments. Must try -L first in case configure is actually a
1343# symlink; some systems play weird games with the mod time of symlinks
1344# (eg FreeBSD returns the mod time of the symlink's containing
1345# directory).
1346if (
1347 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1348 if test "$*" = "X"; then
1349 # -L didn't work.
1350 set X `ls -t $srcdir/configure conftest.file`
1351 fi
1352 rm -f conftest.file
1353 if test "$*" != "X $srcdir/configure conftest.file" \
1354 && test "$*" != "X conftest.file $srcdir/configure"; then
1355
1356 # If neither matched, then we have a broken ls. This can happen
1357 # if, for instance, CONFIG_SHELL is bash and it inherits a
1358 # broken ls alias from the environment. This has actually
1359 # happened. Such a system could not be considered "sane".
ad412770 1360 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
d4a28ab0
CW
1361alias in your environment" >&5
1362echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1363alias in your environment" >&2;}
1364 { (exit 1); exit 1; }; }
1365 fi
1366
1367 test "$2" = conftest.file
1368 )
1369then
1370 # Ok.
1371 :
1372else
ad412770 1373 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
d4a28ab0
CW
1374Check your system clock" >&5
1375echo "$as_me: error: newly created file is older than distributed files!
1376Check your system clock" >&2;}
1377 { (exit 1); exit 1; }; }
1378fi
ad412770 1379echo "$as_me:$LINENO: result: yes" >&5
d4a28ab0
CW
1380echo "${ECHO_T}yes" >&6
1381test "$program_prefix" != NONE &&
1382 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1383# Use a double $ so make ignores it.
1384test "$program_suffix" != NONE &&
1385 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1386# Double any \ or $. echo might interpret backslashes.
1387# By default was `s,x,x', remove it if useless.
1388cat <<\_ACEOF >conftest.sed
1389s/[\\$]/&&/g;s/;s,x,x,$//
1390_ACEOF
1391program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1392rm conftest.sed
1393
ad412770 1394
d4a28ab0 1395# expand $ac_aux_dir to an absolute path
13a7ef4c 1396am_aux_dir=`cd $ac_aux_dir && pwd`
d4a28ab0
CW
1397
1398test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1399# Use eval to expand $SHELL
1400if eval "$MISSING --run true"; then
1401 am_missing_run="$MISSING --run "
1402else
1403 am_missing_run=
ad412770 1404 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
13a7ef4c 1405echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
d4a28ab0
CW
1406fi
1407
ad412770 1408for ac_prog in gawk mawk nawk awk
d4a28ab0
CW
1409do
1410 # Extract the first word of "$ac_prog", so it can be a program name with args.
1411set dummy $ac_prog; ac_word=$2
ad412770 1412echo "$as_me:$LINENO: checking for $ac_word" >&5
d4a28ab0
CW
1413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1414if test "${ac_cv_prog_AWK+set}" = set; then
1415 echo $ECHO_N "(cached) $ECHO_C" >&6
1416else
1417 if test -n "$AWK"; then
1418 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1419else
ad412770
CW
1420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1421for as_dir in $PATH
1422do
1423 IFS=$as_save_IFS
1424 test -z "$as_dir" && as_dir=.
1425 for ac_exec_ext in '' $ac_executable_extensions; do
1426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1427 ac_cv_prog_AWK="$ac_prog"
1428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1429 break 2
1430 fi
1431done
d4a28ab0
CW
1432done
1433
1434fi
1435fi
1436AWK=$ac_cv_prog_AWK
1437if test -n "$AWK"; then
ad412770 1438 echo "$as_me:$LINENO: result: $AWK" >&5
d4a28ab0
CW
1439echo "${ECHO_T}$AWK" >&6
1440else
ad412770 1441 echo "$as_me:$LINENO: result: no" >&5
d4a28ab0
CW
1442echo "${ECHO_T}no" >&6
1443fi
1444
1445 test -n "$AWK" && break
1446done
1447
ad412770 1448echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
d4a28ab0
CW
1449echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1450set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1451if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1452 echo $ECHO_N "(cached) $ECHO_C" >&6
1453else
ad412770 1454 cat >conftest.make <<\_ACEOF
d4a28ab0
CW
1455all:
1456 @echo 'ac_maketemp="${MAKE}"'
ad412770 1457_ACEOF
d4a28ab0
CW
1458# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1459eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1460if test -n "$ac_maketemp"; then
1461 eval ac_cv_prog_make_${ac_make}_set=yes
1462else
1463 eval ac_cv_prog_make_${ac_make}_set=no
1464fi
1465rm -f conftest.make
1466fi
1467if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
ad412770 1468 echo "$as_me:$LINENO: result: yes" >&5
d4a28ab0
CW
1469echo "${ECHO_T}yes" >&6
1470 SET_MAKE=
1471else
ad412770 1472 echo "$as_me:$LINENO: result: no" >&5
d4a28ab0
CW
1473echo "${ECHO_T}no" >&6
1474 SET_MAKE="MAKE=${MAKE-make}"
1475fi
1476
13a7ef4c
CW
1477 # test to see if srcdir already configured
1478if test "`cd $srcdir && pwd`" != "`pwd`" &&
d4a28ab0 1479 test -f $srcdir/config.status; then
ad412770 1480 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
d4a28ab0
CW
1481echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1482 { (exit 1); exit 1; }; }
1483fi
1484
1485# Define the identity of the package.
13a7ef4c
CW
1486 PACKAGE=cygutils
1487 VERSION=1.0.0
d4a28ab0 1488
ad412770
CW
1489
1490cat >>confdefs.h <<_ACEOF
d4a28ab0 1491#define PACKAGE "$PACKAGE"
ad412770 1492_ACEOF
d4a28ab0 1493
ad412770
CW
1494
1495cat >>confdefs.h <<_ACEOF
d4a28ab0 1496#define VERSION "$VERSION"
ad412770 1497_ACEOF
d4a28ab0 1498
d4a28ab0
CW
1499# Some tools Automake needs.
1500
ad412770
CW
1501ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1502
d4a28ab0
CW
1503
1504AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1505
ad412770
CW
1506
1507AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1508
d4a28ab0
CW
1509
1510AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1511
ad412770 1512
d4a28ab0
CW
1513MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1514
ad412770 1515
d4a28ab0
CW
1516AMTAR=${AMTAR-"${am_missing_run}tar"}
1517
1518install_sh=${install_sh-"$am_aux_dir/install-sh"}
1519
13a7ef4c
CW
1520# Installed binaries are usually stripped using `strip' when the user
1521# run `make install-strip'. However `strip' might not be the right
1522# tool to use in cross-compilation environments, therefore Automake
1523# will honor the `STRIP' environment variable to overrule this program.
1524if test "$cross_compiling" != no; then
1525 if test -n "$ac_tool_prefix"; then
1526 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1527set dummy ${ac_tool_prefix}strip; ac_word=$2
ad412770 1528echo "$as_me:$LINENO: checking for $ac_word" >&5
13a7ef4c
CW
1529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1530if test "${ac_cv_prog_STRIP+set}" = set; then
1531 echo $ECHO_N "(cached) $ECHO_C" >&6
1532else
1533 if test -n "$STRIP"; then
1534 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1535else
ad412770
CW
1536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1537for as_dir in $PATH
1538do
1539 IFS=$as_save_IFS
1540 test -z "$as_dir" && as_dir=.
1541 for ac_exec_ext in '' $ac_executable_extensions; do
1542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1543 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1545 break 2
1546 fi
1547done
13a7ef4c
CW
1548done
1549
1550fi
1551fi
1552STRIP=$ac_cv_prog_STRIP
1553if test -n "$STRIP"; then
ad412770 1554 echo "$as_me:$LINENO: result: $STRIP" >&5
13a7ef4c
CW
1555echo "${ECHO_T}$STRIP" >&6
1556else
ad412770 1557 echo "$as_me:$LINENO: result: no" >&5
13a7ef4c
CW
1558echo "${ECHO_T}no" >&6
1559fi
1560
1561fi
1562if test -z "$ac_cv_prog_STRIP"; then
1563 ac_ct_STRIP=$STRIP
1564 # Extract the first word of "strip", so it can be a program name with args.
1565set dummy strip; ac_word=$2
ad412770 1566echo "$as_me:$LINENO: checking for $ac_word" >&5
13a7ef4c
CW
1567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1568if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1569 echo $ECHO_N "(cached) $ECHO_C" >&6
1570else
1571 if test -n "$ac_ct_STRIP"; then
1572 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1573else
ad412770
CW
1574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1575for as_dir in $PATH
1576do
1577 IFS=$as_save_IFS
1578 test -z "$as_dir" && as_dir=.
1579 for ac_exec_ext in '' $ac_executable_extensions; do
1580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1581 ac_cv_prog_ac_ct_STRIP="strip"
1582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1583 break 2
1584 fi
1585done
13a7ef4c
CW
1586done
1587
1588 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1589fi
1590fi
1591ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1592if test -n "$ac_ct_STRIP"; then
ad412770 1593 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13a7ef4c
CW
1594echo "${ECHO_T}$ac_ct_STRIP" >&6
1595else
ad412770 1596 echo "$as_me:$LINENO: result: no" >&5
13a7ef4c
CW
1597echo "${ECHO_T}no" >&6
1598fi
1599
1600 STRIP=$ac_ct_STRIP
1601else
1602 STRIP="$ac_cv_prog_STRIP"
1603fi
1604
1605fi
d4a28ab0
CW
1606INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1607
1608# We need awk for the "check" target. The system "awk" is bad on
1609# some platforms.
1610
ad412770
CW
1611
1612
1613echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
d4a28ab0
CW
1614echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1615 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1616if test "${enable_maintainer_mode+set}" = set; then
1617 enableval="$enable_maintainer_mode"
1618 USE_MAINTAINER_MODE=$enableval
1619else
1620 USE_MAINTAINER_MODE=no
1621fi;
ad412770 1622 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
d4a28ab0
CW
1623echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1624
ad412770 1625
d4a28ab0
CW
1626if test $USE_MAINTAINER_MODE = yes; then
1627 MAINTAINER_MODE_TRUE=
1628 MAINTAINER_MODE_FALSE='#'
1629else
1630 MAINTAINER_MODE_TRUE='#'
1631 MAINTAINER_MODE_FALSE=
1632fi
13a7ef4c 1633
d4a28ab0
CW
1634 MAINT=$MAINTAINER_MODE_TRUE
1635
ad412770
CW
1636
1637
d4a28ab0
CW
1638# Checks for programs.
1639ac_ext=c
1640ac_cpp='$CPP $CPPFLAGS'
1641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1643ac_compiler_gnu=$ac_cv_c_compiler_gnu
1644if test -n "$ac_tool_prefix"; then
1645 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1646set dummy ${ac_tool_prefix}gcc; ac_word=$2
ad412770 1647echo "$as_me:$LINENO: checking for $ac_word" >&5
d4a28ab0
CW
1648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1649if test "${ac_cv_prog_CC+set}" = set; then
1650 echo $ECHO_N "(cached) $ECHO_C" >&6
1651else
1652 if test -n "$CC"; then
1653 ac_cv_prog_CC="$CC" # Let the user override the test.
1654else
ad412770
CW
1655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656for as_dir in $PATH
1657do
1658 IFS=$as_save_IFS
1659 test -z "$as_dir" && as_dir=.
1660 for ac_exec_ext in '' $ac_executable_extensions; do
1661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1662 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1664 break 2
1665 fi
1666done
d4a28ab0
CW
1667done
1668
1669fi
1670fi
1671CC=$ac_cv_prog_CC
1672if test -n "$CC"; then
ad412770 1673 echo "$as_me:$LINENO: result: $CC" >&5
d4a28ab0
CW
1674echo "${ECHO_T}$CC" >&6
1675else
ad412770 1676 echo "$as_me:$LINENO: result: no" >&5
d4a28ab0
CW
1677echo "${ECHO_T}no" >&6
1678fi
1679
1680fi
1681if test -z "$ac_cv_prog_CC"; then
1682 ac_ct_CC=$CC
1683 # Extract the first word of "gcc", so it can be a program name with args.
1684set dummy gcc; ac_word=$2
ad412770 1685echo "$as_me:$LINENO: checking for $ac_word" >&5
d4a28ab0
CW
1686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1687if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1688 echo $ECHO_N "(cached) $ECHO_C" >&6
1689else
1690 if test -n "$ac_ct_CC"; then
1691 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1692else
ad412770
CW
1693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1694for as_dir in $PATH
1695do
1696 IFS=$as_save_IFS
1697 test -z "$as_dir" && as_dir=.
1698 for ac_exec_ext in '' $ac_executable_extensions; do
1699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1700 ac_cv_prog_ac_ct_CC="gcc"
1701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1702 break 2
1703 fi
1704done
d4a28ab0
CW
1705done
1706
1707fi
1708fi
1709ac_ct_CC=$ac_cv_prog_ac_ct_CC
1710if test -n "$ac_ct_CC"; then
ad412770 1711 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
d4a28ab0
CW
1712echo "${ECHO_T}$ac_ct_CC" >&6
1713else
ad412770 1714 echo "$as_me:$LINENO: result: no" >&5
d4a28ab0
CW
1715echo "${ECHO_T}no" >&6
1716fi
1717
1718 CC=$ac_ct_CC
1719else
1720 CC="$ac_cv_prog_CC"
1721fi
1722
1723if test -z "$CC"; then
1724 if test -n "$ac_tool_prefix"; then
1725 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1726set dummy ${ac_tool_prefix}cc; ac_word=$2
ad412770 1727echo "$as_me:$LINENO: checking for $ac_word" >&5
d4a28ab0
CW
1728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1729if test "${ac_cv_prog_CC+set}" = set; then
1730 echo $ECHO_N "(cached) $ECHO_C" >&6
1731else
1732 if test -n "$CC"; then
1733 ac_cv_prog_CC="$CC" # Let the user override the test.
1734else
ad412770
CW
1735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1736for as_dir in $PATH
1737do
1738 IFS=$as_save_IFS
1739 test -z "$as_dir" && as_dir=.
1740 for ac_exec_ext in '' $ac_executable_extensions; do
1741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1742 ac_cv_prog_CC="${ac_tool_prefix}cc"
1743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1744 break 2
1745 fi
1746done
d4a28ab0
CW
1747done
1748
1749fi
1750fi
1751CC=$ac_cv_prog_CC
1752if test -n "$CC"; then
ad412770 1753 echo "$as_me:$LINENO: result: $CC" >&5
d4a28ab0
CW
1754echo "${ECHO_T}$CC" >&6
1755else
ad412770 1756 echo "$as_me:$LINENO: result: no" >&5
d4a28ab0
CW
1757echo "${ECHO_T}no" >&6
1758fi
1759
1760fi
1761if test -z "$ac_cv_prog_CC"; then
1762 ac_ct_CC=$CC
1763 # Extract the first word of "cc", so it can be a program name with args.
1764set dummy cc; ac_word=$2
ad412770 1765echo "$as_me:$LINENO: checking for $ac_word" >&5
d4a28ab0
CW
1766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1767if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1768 echo $ECHO_N "(cached) $ECHO_C" >&6
1769else
1770 if test -n "$ac_ct_CC"; then
1771 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1772else
ad412770
CW
1773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1774for as_dir in $PATH
1775do
1776 IFS=$as_save_IFS
1777 test -z "$as_dir" && as_dir=.
1778 for ac_exec_ext in '' $ac_executable_extensions; do
1779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1780 ac_cv_prog_ac_ct_CC="cc"
1781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1782 break 2
1783 fi
1784done
d4a28ab0
CW
1785done
1786
1787fi
1788fi
1789ac_ct_CC=$ac_cv_prog_ac_ct_CC
1790if test -n "$ac_ct_CC"; then
ad412770 1791 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
d4a28ab0
CW
1792echo "${ECHO_T}$ac_ct_CC" >&6
1793else
ad412770 1794 echo "$as_me:$LINENO: result: no" >&5
d4a28ab0
CW
1795echo "${ECHO_T}no" >&6
1796fi
1797
1798 CC=$ac_ct_CC
1799else
1800 CC="$ac_cv_prog_CC"
1801fi
1802
1803fi
1804if test -z "$CC"; then
1805 # Extract the first word of "cc", so it can be a program name with args.
1806set dummy cc; ac_word=$2
ad412770 1807echo "$as_me:$LINENO: checking for $ac_word" >&5
d4a28ab0
CW
1808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1809if test "${ac_cv_prog_CC+set}" = set; then
1810 echo $ECHO_N "(cached) $ECHO_C" >&6
1811else
1812 if test -n "$CC"; then
1813 ac_cv_prog_CC="$CC" # Let the user override the test.
1814else
1815 ac_prog_rejected=no
ad412770
CW
1816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1817for as_dir in $PATH
1818do
1819 IFS=$as_save_IFS
1820 test -z "$as_dir" && as_dir=.
1821 for ac_exec_ext in '' $ac_executable_extensions; do
1822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1824 ac_prog_rejected=yes
1825 continue
1826 fi
1827 ac_cv_prog_CC="cc"
1828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1829 break 2
1830 fi
1831done
d4a28ab0
CW
1832done
1833
1834if test $ac_prog_rejected = yes; then
1835 # We found a bogon in the path, so make sure we never use it.
1836 set dummy $ac_cv_prog_CC
1837 shift
1838 if test $# != 0; then
1839 # We chose a different compiler from the bogus one.
1840 # However, it has the same basename, so the bogon will be chosen
1841 # first if we set CC to just the basename; use the full file name.
1842 shift
ad412770 1843 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
d4a28ab0
CW
1844 fi
1845fi
1846fi
1847fi
1848CC=$ac_cv_prog_CC
1849if test -n "$CC"; then
ad412770 1850 echo "$as_me:$LINENO: result: $CC" >&5
d4a28ab0
CW
1851echo "${ECHO_T}$CC" >&6
1852else
ad412770 1853 echo "$as_me:$LINENO: result: no" >&5
d4a28ab0
CW
1854echo "${ECHO_T}no" >&6
1855fi
1856
1857fi
1858if test -z "$CC"; then
1859 if test -n "$ac_tool_prefix"; then
1860 for ac_prog in cl
1861 do
1862 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1863set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ad412770 1864echo "$as_me:$LINENO: checking for $ac_word" >&5
d4a28ab0
CW
1865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1866if test "${ac_cv_prog_CC+set}" = set; then
1867 echo $ECHO_N "(cached) $ECHO_C" >&6
1868else
1869 if test -n "$CC"; then
1870 ac_cv_prog_CC="$CC" # Let the user override the test.
1871else
ad412770
CW
1872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1873for as_dir in $PATH
1874do
1875 IFS=$as_save_IFS
1876 test -z "$as_dir" && as_dir=.
1877 for ac_exec_ext in '' $ac_executable_extensions; do
1878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1879 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1881 break 2
1882 fi
1883done
d4a28ab0
CW
1884done
1885
1886fi
1887fi
1888CC=$ac_cv_prog_CC
1889if test -n "$CC"; then
ad412770 1890 echo "$as_me:$LINENO: result: $CC" >&5
d4a28ab0
CW
1891echo "${ECHO_T}$CC" >&6
1892else
ad412770 1893 echo "$as_me:$LINENO: result: no" >&5
d4a28ab0
CW
1894echo "${ECHO_T}no" >&6
1895fi
1896
1897 test -n "$CC" && break
1898 done
1899fi
1900if test -z "$CC"; then
1901 ac_ct_CC=$CC
1902 for ac_prog in cl
1903do
1904 # Extract the first word of "$ac_prog", so it can be a program name with args.
1905set dummy $ac_prog; ac_word=$2
ad412770 1906echo "$as_me:$LINENO: checking for $ac_word" >&5
d4a28ab0
CW
1907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1908if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1909 echo $ECHO_N "(cached) $ECHO_C" >&6
1910else
1911 if test -n "$ac_ct_CC"; then
1912 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1913else
ad412770
CW
1914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1915for as_dir in $PATH
1916do
1917 IFS=$as_save_IFS
1918 test -z "$as_dir" && as_dir=.
1919 for ac_exec_ext in '' $ac_executable_extensions; do
1920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1921 ac_cv_prog_ac_ct_CC="$ac_prog"
1922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1923 break 2
1924 fi
1925done
d4a28ab0
CW
1926done
1927
1928fi
1929fi
1930ac_ct_CC=$ac_cv_prog_ac_ct_CC
1931if test -n "$ac_ct_CC"; then
ad412770 1932 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
d4a28ab0
CW
1933echo "${ECHO_T}$ac_ct_CC" >&6
1934else
ad412770 1935 echo "$as_me:$LINENO: result: no" >&5
d4a28ab0
CW
1936echo "${ECHO_T}no" >&6
1937fi
1938
1939 test -n "$ac_ct_CC" && break
1940done
1941
1942 CC=$ac_ct_CC
1943fi
1944
1945fi
1946
ad412770
CW
1947
1948test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1949echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
d4a28ab0
CW
1950 { (exit 1); exit 1; }; }
1951
1952# Provide some information about the compiler.
ad412770 1953echo "$as_me:$LINENO:" \
d4a28ab0
CW
1954 "checking for C compiler version" >&5
1955ac_compiler=`set X $ac_compile; echo $2`
ad412770 1956{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
d4a28ab0
CW
1957 (eval $ac_compiler --version </dev/null >&5) 2>&5
1958 ac_status=$?
ad412770 1959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0 1960 (exit $ac_status); }
ad412770 1961{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
d4a28ab0
CW
1962 (eval $ac_compiler -v </dev/null >&5) 2>&5
1963 ac_status=$?
ad412770 1964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0 1965 (exit $ac_status); }
ad412770 1966{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
d4a28ab0
CW
1967 (eval $ac_compiler -V </dev/null >&5) 2>&5
1968 ac_status=$?
ad412770 1969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
1970 (exit $ac_status); }
1971
1972cat >conftest.$ac_ext <<_ACEOF
ad412770 1973#line $LINENO "configure"
d4a28ab0
CW
1974#include "confdefs.h"
1975
ad412770
CW
1976#ifdef F77_DUMMY_MAIN
1977# ifdef __cplusplus
1978 extern "C"
1979# endif
1980 int F77_DUMMY_MAIN() { return 1; }
1981#endif
d4a28ab0
CW
1982int
1983main ()
1984{
1985
1986 ;
1987 return 0;
1988}
1989_ACEOF
1990ac_clean_files_save=$ac_clean_files
1991ac_clean_files="$ac_clean_files a.out a.exe"
1992# Try to create an executable without -o first, disregard a.out.
1993# It will help us diagnose broken compilers, and finding out an intuition
1994# of exeext.
ad412770 1995echo "$as_me:$LINENO: checking for C compiler default output" >&5
d4a28ab0
CW
1996echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1997ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
ad412770 1998if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
d4a28ab0
CW
1999 (eval $ac_link_default) 2>&5
2000 ac_status=$?
ad412770 2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
2002 (exit $ac_status); }; then
2003 # Find the output, starting from the most likely. This scheme is
2004# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2005# resort.
ad412770
CW
2006
2007# Be careful to initialize this variable, since it used to be cached.
2008# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2009ac_cv_exeext=
2010for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
d4a28ab0
CW
2011 ls a.out conftest 2>/dev/null;
2012 ls a.* conftest.* 2>/dev/null`; do
2013 case $ac_file in
ad412770 2014 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
d4a28ab0
CW
2015 a.out ) # We found the default executable, but exeext='' is most
2016 # certainly right.
2017 break;;
2018 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2019 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2020 export ac_cv_exeext
2021 break;;
2022 * ) break;;
2023 esac
2024done
2025else
2026 echo "$as_me: failed program was:" >&5
2027cat conftest.$ac_ext >&5
ad412770 2028{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
d4a28ab0
CW
2029echo "$as_me: error: C compiler cannot create executables" >&2;}
2030 { (exit 77); exit 77; }; }
2031fi
2032
2033ac_exeext=$ac_cv_exeext
ad412770 2034echo "$as_me:$LINENO: result: $ac_file" >&5
d4a28ab0
CW
2035echo "${ECHO_T}$ac_file" >&6
2036
2037# Check the compiler produces executables we can run. If not, either
2038# the compiler is broken, or we cross compile.
ad412770 2039echo "$as_me:$LINENO: checking whether the C compiler works" >&5
d4a28ab0
CW
2040echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2041# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2042# If not cross compiling, check that we can run a simple program.
2043if test "$cross_compiling" != yes; then
2044 if { ac_try='./$ac_file'
ad412770 2045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d4a28ab0
CW
2046 (eval $ac_try) 2>&5
2047 ac_status=$?
ad412770 2048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
2049 (exit $ac_status); }; }; then
2050 cross_compiling=no
2051 else
2052 if test "$cross_compiling" = maybe; then
2053 cross_compiling=yes
2054 else
ad412770 2055 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
d4a28ab0
CW
2056If you meant to cross compile, use \`--host'." >&5
2057echo "$as_me: error: cannot run C compiled programs.
2058If you meant to cross compile, use \`--host'." >&2;}
2059 { (exit 1); exit 1; }; }
2060 fi
2061 fi
2062fi
ad412770 2063echo "$as_me:$LINENO: result: yes" >&5
d4a28ab0
CW
2064echo "${ECHO_T}yes" >&6
2065
2066rm -f a.out a.exe conftest$ac_cv_exeext
2067ac_clean_files=$ac_clean_files_save
2068# Check the compiler produces executables we can run. If not, either
2069# the compiler is broken, or we cross compile.
ad412770 2070echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
d4a28ab0 2071echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
ad412770 2072echo "$as_me:$LINENO: result: $cross_compiling" >&5
d4a28ab0
CW
2073echo "${ECHO_T}$cross_compiling" >&6
2074
ad412770
CW
2075echo "$as_me:$LINENO: checking for suffix of executables" >&5
2076echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d4a28ab0
CW
2078 (eval $ac_link) 2>&5
2079 ac_status=$?
ad412770 2080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
2081 (exit $ac_status); }; then
2082 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2083# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2084# work properly (i.e., refer to `conftest.exe'), while it won't with
2085# `rm'.
2086for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2087 case $ac_file in
ad412770 2088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
d4a28ab0
CW
2089 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2090 export ac_cv_exeext
2091 break;;
2092 * ) break;;
2093 esac
2094done
2095else
ad412770
CW
2096 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2097echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
d4a28ab0
CW
2098 { (exit 1); exit 1; }; }
2099fi
2100
2101rm -f conftest$ac_cv_exeext
ad412770 2102echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
d4a28ab0
CW
2103echo "${ECHO_T}$ac_cv_exeext" >&6
2104
2105rm -f conftest.$ac_ext
2106EXEEXT=$ac_cv_exeext
2107ac_exeext=$EXEEXT
ad412770
CW
2108echo "$as_me:$LINENO: checking for suffix of object files" >&5
2109echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
d4a28ab0
CW
2110if test "${ac_cv_objext+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2112else
2113 cat >conftest.$ac_ext <<_ACEOF
ad412770 2114#line $LINENO "configure"
d4a28ab0
CW
2115#include "confdefs.h"
2116
ad412770
CW
2117#ifdef F77_DUMMY_MAIN
2118# ifdef __cplusplus
2119 extern "C"
2120# endif
2121 int F77_DUMMY_MAIN() { return 1; }
2122#endif
d4a28ab0
CW
2123int
2124main ()
2125{
2126
2127 ;
2128 return 0;
2129}
2130_ACEOF
2131rm -f conftest.o conftest.obj
ad412770 2132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d4a28ab0
CW
2133 (eval $ac_compile) 2>&5
2134 ac_status=$?
ad412770 2135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
2136 (exit $ac_status); }; then
2137 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2138 case $ac_file in
ad412770 2139 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
d4a28ab0
CW
2140 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2141 break;;
2142 esac
2143done
2144else
2145 echo "$as_me: failed program was:" >&5
2146cat conftest.$ac_ext >&5
ad412770
CW
2147{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2148echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
d4a28ab0
CW
2149 { (exit 1); exit 1; }; }
2150fi
2151
2152rm -f conftest.$ac_cv_objext conftest.$ac_ext
2153fi
ad412770 2154echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
d4a28ab0
CW
2155echo "${ECHO_T}$ac_cv_objext" >&6
2156OBJEXT=$ac_cv_objext
2157ac_objext=$OBJEXT
ad412770 2158echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
d4a28ab0
CW
2159echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2160if test "${ac_cv_c_compiler_gnu+set}" = set; then
2161 echo $ECHO_N "(cached) $ECHO_C" >&6
2162else
2163 cat >conftest.$ac_ext <<_ACEOF
ad412770 2164#line $LINENO "configure"
d4a28ab0
CW
2165#include "confdefs.h"
2166
ad412770
CW
2167#ifdef F77_DUMMY_MAIN
2168# ifdef __cplusplus
2169 extern "C"
2170# endif
2171 int F77_DUMMY_MAIN() { return 1; }
2172#endif
d4a28ab0
CW
2173int
2174main ()
2175{
2176#ifndef __GNUC__
2177 choke me
2178#endif
2179
2180 ;
2181 return 0;
2182}
2183_ACEOF
2184rm -f conftest.$ac_objext
ad412770 2185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d4a28ab0
CW
2186 (eval $ac_compile) 2>&5
2187 ac_status=$?
ad412770 2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
2189 (exit $ac_status); } &&
2190 { ac_try='test -s conftest.$ac_objext'
ad412770 2191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d4a28ab0
CW
2192 (eval $ac_try) 2>&5
2193 ac_status=$?
ad412770 2194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
2195 (exit $ac_status); }; }; then
2196 ac_compiler_gnu=yes
2197else
2198 echo "$as_me: failed program was:" >&5
2199cat conftest.$ac_ext >&5
2200ac_compiler_gnu=no
2201fi
2202rm -f conftest.$ac_objext conftest.$ac_ext
2203ac_cv_c_compiler_gnu=$ac_compiler_gnu
2204
2205fi
ad412770 2206echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
d4a28ab0
CW
2207echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2208GCC=`test $ac_compiler_gnu = yes && echo yes`
2209ac_test_CFLAGS=${CFLAGS+set}
2210ac_save_CFLAGS=$CFLAGS
2211CFLAGS="-g"
ad412770 2212echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
d4a28ab0
CW
2213echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2214if test "${ac_cv_prog_cc_g+set}" = set; then
2215 echo $ECHO_N "(cached) $ECHO_C" >&6
2216else
2217 cat >conftest.$ac_ext <<_ACEOF
ad412770 2218#line $LINENO "configure"
d4a28ab0
CW
2219#include "confdefs.h"
2220
ad412770
CW
2221#ifdef F77_DUMMY_MAIN
2222# ifdef __cplusplus
2223 extern "C"
2224# endif
2225 int F77_DUMMY_MAIN() { return 1; }
2226#endif
d4a28ab0
CW
2227int
2228main ()
2229{
2230
2231 ;
2232 return 0;
2233}
2234_ACEOF
2235rm -f conftest.$ac_objext
ad412770 2236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d4a28ab0
CW
2237 (eval $ac_compile) 2>&5
2238 ac_status=$?
ad412770 2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
2240 (exit $ac_status); } &&
2241 { ac_try='test -s conftest.$ac_objext'
ad412770 2242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d4a28ab0
CW
2243 (eval $ac_try) 2>&5
2244 ac_status=$?
ad412770 2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
2246 (exit $ac_status); }; }; then
2247 ac_cv_prog_cc_g=yes
2248else
2249 echo "$as_me: failed program was:" >&5
2250cat conftest.$ac_ext >&5
2251ac_cv_prog_cc_g=no
2252fi
2253rm -f conftest.$ac_objext conftest.$ac_ext
2254fi
ad412770 2255echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
d4a28ab0
CW
2256echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2257if test "$ac_test_CFLAGS" = set; then
2258 CFLAGS=$ac_save_CFLAGS
2259elif test $ac_cv_prog_cc_g = yes; then
2260 if test "$GCC" = yes; then
2261 CFLAGS="-g -O2"
2262 else
2263 CFLAGS="-g"
2264 fi
2265else
2266 if test "$GCC" = yes; then
2267 CFLAGS="-O2"
2268 else
2269 CFLAGS=
2270 fi
2271fi
ad412770
CW
2272echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2273echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2274if test "${ac_cv_prog_cc_stdc+set}" = set; then
2275 echo $ECHO_N "(cached) $ECHO_C" >&6
2276else
2277 ac_cv_prog_cc_stdc=no
2278ac_save_CC=$CC
2279cat >conftest.$ac_ext <<_ACEOF
2280#line $LINENO "configure"
2281#include "confdefs.h"
2282#include <stdarg.h>
2283#include <stdio.h>
2284#include <sys/types.h>
2285#include <sys/stat.h>
2286/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2287struct buf { int x; };
2288FILE * (*rcsopen) (struct buf *, struct stat *, int);
2289static char *e (p, i)
2290 char **p;
2291 int i;
2292{
2293 return p[i];
2294}
2295static char *f (char * (*g) (char **, int), char **p, ...)
2296{
2297 char *s;
2298 va_list v;
2299 va_start (v,p);
2300 s = g (p, va_arg (v,int));
2301 va_end (v);
2302 return s;
2303}
2304int test (int i, double x);
2305struct s1 {int (*f) (int a);};
2306struct s2 {int (*f) (double a);};
2307int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2308int argc;
2309char **argv;
2310#ifdef F77_DUMMY_MAIN
2311# ifdef __cplusplus
2312 extern "C"
2313# endif
2314 int F77_DUMMY_MAIN() { return 1; }
2315#endif
2316int
2317main ()
2318{
2319return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2320 ;
2321 return 0;
2322}
2323_ACEOF
2324# Don't try gcc -ansi; that turns off useful extensions and
2325# breaks some systems' header files.
2326# AIX -qlanglvl=ansi
2327# Ultrix and OSF/1 -std1
2328# HP-UX 10.20 and later -Ae
2329# HP-UX older versions -Aa -D_HPUX_SOURCE
2330# SVR4 -Xc -D__EXTENSIONS__
2331for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2332do
2333 CC="$ac_save_CC $ac_arg"
2334 rm -f conftest.$ac_objext
2335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2336 (eval $ac_compile) 2>&5
2337 ac_status=$?
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); } &&
2340 { ac_try='test -s conftest.$ac_objext'
2341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342 (eval $ac_try) 2>&5
2343 ac_status=$?
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }; }; then
2346 ac_cv_prog_cc_stdc=$ac_arg
2347break
2348else
2349 echo "$as_me: failed program was:" >&5
2350cat conftest.$ac_ext >&5
2351fi
2352rm -f conftest.$ac_objext
2353done
2354rm -f conftest.$ac_ext conftest.$ac_objext
2355CC=$ac_save_CC
2356
2357fi
2358
2359case "x$ac_cv_prog_cc_stdc" in
2360 x|xno)
2361 echo "$as_me:$LINENO: result: none needed" >&5
2362echo "${ECHO_T}none needed" >&6 ;;
2363 *)
2364 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2365echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2366 CC="$CC $ac_cv_prog_cc_stdc" ;;
2367esac
2368
d4a28ab0
CW
2369# Some people use a C++ compiler to compile C. Since we use `exit',
2370# in C++ we need to declare it. In case someone uses the same compiler
2371# for both compiling C and C++ we need to have the C++ compiler decide
2372# the declaration of exit, since it's the most demanding environment.
2373cat >conftest.$ac_ext <<_ACEOF
2374#ifndef __cplusplus
2375 choke me
2376#endif
2377_ACEOF
2378rm -f conftest.$ac_objext
ad412770 2379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d4a28ab0
CW
2380 (eval $ac_compile) 2>&5
2381 ac_status=$?
ad412770 2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
2383 (exit $ac_status); } &&
2384 { ac_try='test -s conftest.$ac_objext'
ad412770 2385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d4a28ab0
CW
2386 (eval $ac_try) 2>&5
2387 ac_status=$?
ad412770 2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
2389 (exit $ac_status); }; }; then
2390 for ac_declaration in \
2391 ''\
2392 '#include <stdlib.h>' \
2393 'extern "C" void std::exit (int) throw (); using std::exit;' \
2394 'extern "C" void std::exit (int); using std::exit;' \
2395 'extern "C" void exit (int) throw ();' \
2396 'extern "C" void exit (int);' \
2397 'void exit (int);'
2398do
2399 cat >conftest.$ac_ext <<_ACEOF
ad412770 2400#line $LINENO "configure"
d4a28ab0
CW
2401#include "confdefs.h"
2402#include <stdlib.h>
2403$ac_declaration
ad412770
CW
2404#ifdef F77_DUMMY_MAIN
2405# ifdef __cplusplus
2406 extern "C"
2407# endif
2408 int F77_DUMMY_MAIN() { return 1; }
2409#endif
d4a28ab0
CW
2410int
2411main ()
2412{
2413exit (42);
2414 ;
2415 return 0;
2416}
2417_ACEOF
2418rm -f conftest.$ac_objext
ad412770 2419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d4a28ab0
CW
2420 (eval $ac_compile) 2>&5
2421 ac_status=$?
ad412770 2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
2423 (exit $ac_status); } &&
2424 { ac_try='test -s conftest.$ac_objext'
ad412770 2425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d4a28ab0
CW
2426 (eval $ac_try) 2>&5
2427 ac_status=$?
ad412770 2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
2429 (exit $ac_status); }; }; then
2430 :
2431else
2432 echo "$as_me: failed program was:" >&5
2433cat conftest.$ac_ext >&5
2434continue
2435fi
2436rm -f conftest.$ac_objext conftest.$ac_ext
2437 cat >conftest.$ac_ext <<_ACEOF
ad412770 2438#line $LINENO "configure"
d4a28ab0
CW
2439#include "confdefs.h"
2440$ac_declaration
ad412770
CW
2441#ifdef F77_DUMMY_MAIN
2442# ifdef __cplusplus
2443 extern "C"
2444# endif
2445 int F77_DUMMY_MAIN() { return 1; }
2446#endif
d4a28ab0
CW
2447int
2448main ()
2449{
2450exit (42);
2451 ;
2452 return 0;
2453}
2454_ACEOF
2455rm -f conftest.$ac_objext
ad412770 2456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d4a28ab0
CW
2457 (eval $ac_compile) 2>&5
2458 ac_status=$?
ad412770 2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
2460 (exit $ac_status); } &&
2461 { ac_try='test -s conftest.$ac_objext'
ad412770 2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d4a28ab0
CW
2463 (eval $ac_try) 2>&5
2464 ac_status=$?
ad412770 2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
2466 (exit $ac_status); }; }; then
2467 break
2468else
2469 echo "$as_me: failed program was:" >&5
2470cat conftest.$ac_ext >&5
2471fi
2472rm -f conftest.$ac_objext conftest.$ac_ext
2473done
2474rm -f conftest*
2475if test -n "$ac_declaration"; then
2476 echo '#ifdef __cplusplus' >>confdefs.h
2477 echo $ac_declaration >>confdefs.h
2478 echo '#endif' >>confdefs.h
2479fi
2480
2481else
2482 echo "$as_me: failed program was:" >&5
2483cat conftest.$ac_ext >&5
2484fi
2485rm -f conftest.$ac_objext conftest.$ac_ext
2486ac_ext=c
2487ac_cpp='$CPP $CPPFLAGS'
2488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2490ac_compiler_gnu=$ac_cv_c_compiler_gnu
13a7ef4c
CW
2491rm -f .deps 2>/dev/null
2492mkdir .deps 2>/dev/null
2493if test -d .deps; then
2494 DEPDIR=.deps
2495else
2496 # MS-DOS does not allow filenames that begin with a dot.
2497 DEPDIR=_deps
2498fi
2499rmdir .deps 2>/dev/null
d4a28ab0 2500
ad412770
CW
2501
2502 ac_config_commands="$ac_config_commands depfiles"
2503
d4a28ab0
CW
2504
2505am_make=${MAKE-make}
2506cat > confinc << 'END'
2507doit:
2508 @echo done
2509END
2510# If we don't find an include directive, just comment out the code.
ad412770 2511echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
d4a28ab0 2512echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
13a7ef4c 2513am__include="#"
d4a28ab0
CW
2514am__quote=
2515_am_result=none
2516# First try GNU make style include.
2517echo "include confinc" > confmf
2518# We grep out `Entering directory' and `Leaving directory'
2519# messages which can occur if `w' ends up in MAKEFLAGS.
2520# In particular we don't look at `^make:' because GNU make might
2521# be invoked under some other name (usually "gmake"), in which
2522# case it prints its new name instead of `make'.
2523if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2524 am__include=include
2525 am__quote=
2526 _am_result=GNU
2527fi
2528# Now try BSD make style include.
2529if test "$am__include" = "#"; then
2530 echo '.include "confinc"' > confmf
2531 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2532 am__include=.include
13a7ef4c 2533 am__quote="\""
d4a28ab0
CW
2534 _am_result=BSD
2535 fi
2536fi
2537
ad412770
CW
2538
2539echo "$as_me:$LINENO: result: $_am_result" >&5
d4a28ab0
CW
2540echo "${ECHO_T}$_am_result" >&6
2541rm -f confinc confmf
2542
13a7ef4c
CW
2543# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2544if test "${enable_dependency_tracking+set}" = set; then
2545 enableval="$enable_dependency_tracking"
2546
2547fi;
2548if test "x$enable_dependency_tracking" != xno; then
2549 am_depcomp="$ac_aux_dir/depcomp"
2550 AMDEPBACKSLASH='\'
2551fi
2552
ad412770 2553
13a7ef4c
CW
2554if test "x$enable_dependency_tracking" != xno; then
2555 AMDEP_TRUE=
2556 AMDEP_FALSE='#'
2557else
2558 AMDEP_TRUE='#'
2559 AMDEP_FALSE=
2560fi
2561
ad412770
CW
2562
2563
2564
d4a28ab0
CW
2565depcc="$CC" am_compiler_list=
2566
ad412770 2567echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
d4a28ab0
CW
2568echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2569if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2570 echo $ECHO_N "(cached) $ECHO_C" >&6
2571else
2572 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2573 # We make a subdir and do the tests there. Otherwise we can end up
2574 # making bogus files that we don't know about and never remove. For
2575 # instance it was reported that on HP-UX the gcc test will end up
2576 # making a dummy file named `D' -- because `-MD' means `put the output
2577 # in D'.
2578 mkdir conftest.dir
2579 # Copy depcomp to subdir because otherwise we won't find it if we're
2580 # using a relative directory.
2581 cp "$am_depcomp" conftest.dir
2582 cd conftest.dir
2583
2584 am_cv_CC_dependencies_compiler_type=none
2585 if test "$am_compiler_list" = ""; then
2586 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2587 fi
2588 for depmode in $am_compiler_list; do
2589 # We need to recreate these files for each test, as the compiler may
2590 # overwrite some of them when testing with obscure command lines.
2591 # This happens at least with the AIX C compiler.
2592 echo '#include "conftest.h"' > conftest.c
2593 echo 'int i;' > conftest.h
2594 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2595
2596 case $depmode in
2597 nosideeffect)
2598 # after this tag, mechanisms are not by side-effect, so they'll
2599 # only be used when explicitly requested
2600 if test "x$enable_dependency_tracking" = xyes; then
2601 continue
2602 else
2603 break
2604 fi
2605 ;;
2606 none) break ;;
2607 esac
2608 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2609 # mode. It turns out that the SunPro C++ compiler does not properly
2610 # handle `-M -o', and we need to detect this.
2611 if depmode=$depmode \
2612 source=conftest.c object=conftest.o \
2613 depfile=conftest.Po tmpdepfile=conftest.TPo \
2614 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2615 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2616 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2617 am_cv_CC_dependencies_compiler_type=$depmode
2618 break
2619 fi
2620 done
2621
2622 cd ..
2623 rm -rf conftest.dir
2624else
2625 am_cv_CC_dependencies_compiler_type=none
2626fi
2627
2628fi
ad412770 2629echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
d4a28ab0 2630echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
13a7ef4c 2631CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
d4a28ab0 2632
ad412770 2633
d4a28ab0
CW
2634# Find a good install program. We prefer a C program (faster),
2635# so one script is as good as another. But avoid the broken or
2636# incompatible versions:
2637# SysV /etc/install, /usr/sbin/install
2638# SunOS /usr/etc/install
2639# IRIX /sbin/install
2640# AIX /bin/install
2641# AmigaOS /C/install, which installs bootblocks on floppy discs
2642# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2643# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2644# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2645# ./install, which can be erroneously created by make from ./install.sh.
ad412770
CW
2646echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2647echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
d4a28ab0
CW
2648if test -z "$INSTALL"; then
2649if test "${ac_cv_path_install+set}" = set; then
2650 echo $ECHO_N "(cached) $ECHO_C" >&6
2651else
ad412770
CW
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653for as_dir in $PATH
2654do
2655 IFS=$as_save_IFS
2656 test -z "$as_dir" && as_dir=.
2657 # Account for people who put trailing slashes in PATH elements.
2658case $as_dir/ in
2659 ./ | .// | /cC/* | \
2660 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2661 /usr/ucb/* ) ;;
2662 *)
2663 # OSF1 and SCO ODT 3.0 have their own names for install.
2664 # Don't use installbsd from OSF since it installs stuff as root
2665 # by default.
2666 for ac_prog in ginstall scoinst install; do
2667 for ac_exec_ext in '' $ac_executable_extensions; do
2668 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2669 if test $ac_prog = install &&
2670 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2671 # AIX install. It has an incompatible calling convention.
2672 :
2673 elif test $ac_prog = install &&
2674 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2675 # program-specific install script used by HP pwplus--don't use.
2676 :
2677 else
2678 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2679 break 3
2680 fi
2681 fi
d4a28ab0 2682 done
ad412770
CW
2683 done
2684 ;;
2685esac
2686done
2687
d4a28ab0
CW
2688
2689fi
2690 if test "${ac_cv_path_install+set}" = set; then
2691 INSTALL=$ac_cv_path_install
2692 else
2693 # As a last resort, use the slow shell script. We don't cache a
2694 # path for INSTALL within a source directory, because that will
2695 # break other packages using the cache if that directory is
2696 # removed, or if the path is relative.
2697 INSTALL=$ac_install_sh
2698 fi
2699fi
ad412770 2700echo "$as_me:$LINENO: result: $INSTALL" >&5
d4a28ab0
CW
2701echo "${ECHO_T}$INSTALL" >&6
2702
2703# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2704# It thinks the first close brace ends the variable substitution.
2705test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2706
2707test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2708
2709test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2710
ad412770 2711
d4a28ab0
CW
2712# Checks for libraries.
2713
ad412770
CW
2714
2715echo "$as_me:$LINENO: checking for poptPrintHelp in -lpopt" >&5
d4a28ab0
CW
2716echo $ECHO_N "checking for poptPrintHelp in -lpopt... $ECHO_C" >&6
2717if test "${ac_cv_lib_popt_poptPrintHelp+set}" = set; then
2718 echo $ECHO_N "(cached) $ECHO_C" >&6
2719else
2720 ac_check_lib_save_LIBS=$LIBS
2721LIBS="-lpopt $LIBS"
2722cat >conftest.$ac_ext <<_ACEOF
ad412770 2723#line $LINENO "configure"
d4a28ab0
CW
2724#include "confdefs.h"
2725
2726/* Override any gcc2 internal prototype to avoid an error. */
2727#ifdef __cplusplus
2728extern "C"
2729#endif
2730/* We use char because int might match the return type of a gcc2
2731 builtin and then its argument prototype would still apply. */
2732char poptPrintHelp ();
ad412770
CW
2733#ifdef F77_DUMMY_MAIN
2734# ifdef __cplusplus
2735 extern "C"
2736# endif
2737 int F77_DUMMY_MAIN() { return 1; }
2738#endif
d4a28ab0
CW
2739int
2740main ()
2741{
2742poptPrintHelp ();
2743 ;
2744 return 0;
2745}
2746_ACEOF
2747rm -f conftest.$ac_objext conftest$ac_exeext
ad412770 2748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d4a28ab0
CW
2749 (eval $ac_link) 2>&5
2750 ac_status=$?
ad412770 2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
2752 (exit $ac_status); } &&
2753 { ac_try='test -s conftest$ac_exeext'
ad412770 2754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d4a28ab0
CW
2755 (eval $ac_try) 2>&5
2756 ac_status=$?
ad412770 2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
2758 (exit $ac_status); }; }; then
2759 ac_cv_lib_popt_poptPrintHelp=yes
2760else
2761 echo "$as_me: failed program was:" >&5
2762cat conftest.$ac_ext >&5
2763ac_cv_lib_popt_poptPrintHelp=no
2764fi
2765rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2766LIBS=$ac_check_lib_save_LIBS
2767fi
ad412770 2768echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptPrintHelp" >&5
d4a28ab0
CW
2769echo "${ECHO_T}$ac_cv_lib_popt_poptPrintHelp" >&6
2770if test $ac_cv_lib_popt_poptPrintHelp = yes; then
ad412770 2771 cat >>confdefs.h <<_ACEOF
d4a28ab0 2772#define HAVE_LIBPOPT 1
ad412770 2773_ACEOF
d4a28ab0
CW
2774
2775 LIBS="-lpopt $LIBS"
2776
2777fi
2778
ad412770
CW
2779
2780echo "$as_me:$LINENO: checking for semget in -lcygipc" >&5
d4a28ab0
CW
2781echo $ECHO_N "checking for semget in -lcygipc... $ECHO_C" >&6
2782if test "${ac_cv_lib_cygipc_semget+set}" = set; then
2783 echo $ECHO_N "(cached) $ECHO_C" >&6
2784else
2785 ac_check_lib_save_LIBS=$LIBS
2786LIBS="-lcygipc $LIBS"
2787cat >conftest.$ac_ext <<_ACEOF
ad412770 2788#line $LINENO "configure"
d4a28ab0
CW
2789#include "confdefs.h"
2790
2791/* Override any gcc2 internal prototype to avoid an error. */
2792#ifdef __cplusplus
2793extern "C"
2794#endif
2795/* We use char because int might match the return type of a gcc2
2796 builtin and then its argument prototype would still apply. */
2797char semget ();
ad412770
CW
2798#ifdef F77_DUMMY_MAIN
2799# ifdef __cplusplus
2800 extern "C"
2801# endif
2802 int F77_DUMMY_MAIN() { return 1; }
2803#endif
d4a28ab0
CW
2804int
2805main ()
2806{
2807semget ();
2808 ;
2809 return 0;
2810}
2811_ACEOF
2812rm -f conftest.$ac_objext conftest$ac_exeext
ad412770 2813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d4a28ab0
CW
2814 (eval $ac_link) 2>&5
2815 ac_status=$?
ad412770 2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
2817 (exit $ac_status); } &&
2818 { ac_try='test -s conftest$ac_exeext'
ad412770 2819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d4a28ab0
CW
2820 (eval $ac_try) 2>&5
2821 ac_status=$?
ad412770 2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
2823 (exit $ac_status); }; }; then
2824 ac_cv_lib_cygipc_semget=yes
2825else
2826 echo "$as_me: failed program was:" >&5
2827cat conftest.$ac_ext >&5
2828ac_cv_lib_cygipc_semget=no
2829fi
2830rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2831LIBS=$ac_check_lib_save_LIBS
2832fi
ad412770 2833echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_semget" >&5
d4a28ab0
CW
2834echo "${ECHO_T}$ac_cv_lib_cygipc_semget" >&6
2835if test $ac_cv_lib_cygipc_semget = yes; then
ad412770 2836 cat >>confdefs.h <<_ACEOF
d4a28ab0 2837#define HAVE_LIBCYGIPC 1
ad412770 2838_ACEOF
d4a28ab0
CW
2839
2840 LIBS="-lcygipc $LIBS"
2841
2842fi
2843
ad412770
CW
2844
2845echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
d4a28ab0
CW
2846echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6
2847if test "${ac_cv_lib_intl_gettext+set}" = set; then
2848 echo $ECHO_N "(cached) $ECHO_C" >&6
2849else
2850 ac_check_lib_save_LIBS=$LIBS
2851LIBS="-lintl $LIBS"
2852cat >conftest.$ac_ext <<_ACEOF
ad412770 2853#line $LINENO "configure"
d4a28ab0
CW
2854#include "confdefs.h"
2855
2856/* Override any gcc2 internal prototype to avoid an error. */
2857#ifdef __cplusplus
2858extern "C"
2859#endif
2860/* We use char because int might match the return type of a gcc2
2861 builtin and then its argument prototype would still apply. */
2862char gettext ();
ad412770
CW
2863#ifdef F77_DUMMY_MAIN
2864# ifdef __cplusplus
2865 extern "C"
2866# endif
2867 int F77_DUMMY_MAIN() { return 1; }
2868#endif
d4a28ab0
CW
2869int
2870main ()
2871{
2872gettext ();
2873 ;
2874 return 0;
2875}
2876_ACEOF
2877rm -f conftest.$ac_objext conftest$ac_exeext
ad412770 2878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d4a28ab0
CW
2879 (eval $ac_link) 2>&5
2880 ac_status=$?
ad412770 2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
2882 (exit $ac_status); } &&
2883 { ac_try='test -s conftest$ac_exeext'
ad412770 2884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d4a28ab0
CW
2885 (eval $ac_try) 2>&5
2886 ac_status=$?
ad412770 2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
2888 (exit $ac_status); }; }; then
2889 ac_cv_lib_intl_gettext=yes
2890else
2891 echo "$as_me: failed program was:" >&5
2892cat conftest.$ac_ext >&5
2893ac_cv_lib_intl_gettext=no
2894fi
2895rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2896LIBS=$ac_check_lib_save_LIBS
2897fi
ad412770 2898echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
d4a28ab0
CW
2899echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6
2900if test $ac_cv_lib_intl_gettext = yes; then
ad412770 2901 cat >>confdefs.h <<_ACEOF
d4a28ab0 2902#define HAVE_LIBINTL 1
ad412770 2903_ACEOF
d4a28ab0
CW
2904
2905 LIBS="-lintl $LIBS"
2906
2907fi
2908
ad412770 2909
d4a28ab0
CW
2910# Checks for header files.
2911ac_ext=c
2912ac_cpp='$CPP $CPPFLAGS'
2913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2915ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad412770 2916echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
d4a28ab0
CW
2917echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2918# On Suns, sometimes $CPP names a directory.
2919if test -n "$CPP" && test -d "$CPP"; then
2920 CPP=
2921fi
2922if test -z "$CPP"; then
2923 if test "${ac_cv_prog_CPP+set}" = set; then
2924 echo $ECHO_N "(cached) $ECHO_C" >&6
2925else
2926 # Double quotes because CPP needs to be expanded
2927 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2928 do
2929 ac_preproc_ok=false
2930for ac_c_preproc_warn_flag in '' yes
2931do
2932 # Use a header file that comes with gcc, so configuring glibc
2933 # with a fresh cross-compiler works.
2934 # On the NeXT, cc -E runs the code through the compiler's parser,
2935 # not just through cpp. "Syntax error" is here to catch this case.
2936 cat >conftest.$ac_ext <<_ACEOF
ad412770 2937#line $LINENO "configure"
d4a28ab0
CW
2938#include "confdefs.h"
2939#include <assert.h>
2940 Syntax error
2941_ACEOF
ad412770 2942if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
d4a28ab0
CW
2943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2944 ac_status=$?
2945 egrep -v '^ *\+' conftest.er1 >conftest.err
2946 rm -f conftest.er1
2947 cat conftest.err >&5
ad412770 2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
2949 (exit $ac_status); } >/dev/null; then
2950 if test -s conftest.err; then
2951 ac_cpp_err=$ac_c_preproc_warn_flag
2952 else
2953 ac_cpp_err=
2954 fi
2955else
2956 ac_cpp_err=yes
2957fi
2958if test -z "$ac_cpp_err"; then
2959 :
2960else
2961 echo "$as_me: failed program was:" >&5
2962 cat conftest.$ac_ext >&5
2963 # Broken: fails on valid input.
2964continue
2965fi
2966rm -f conftest.err conftest.$ac_ext
2967
2968 # OK, works on sane cases. Now check whether non-existent headers
2969 # can be detected and how.
2970 cat >conftest.$ac_ext <<_ACEOF
ad412770 2971#line $LINENO "configure"
d4a28ab0
CW
2972#include "confdefs.h"
2973#include <ac_nonexistent.h>
2974_ACEOF
ad412770 2975if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
d4a28ab0
CW
2976 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2977 ac_status=$?
2978 egrep -v '^ *\+' conftest.er1 >conftest.err
2979 rm -f conftest.er1
2980 cat conftest.err >&5
ad412770 2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
2982 (exit $ac_status); } >/dev/null; then
2983 if test -s conftest.err; then
2984 ac_cpp_err=$ac_c_preproc_warn_flag
2985 else
2986 ac_cpp_err=
2987 fi
2988else
2989 ac_cpp_err=yes
2990fi
2991if test -z "$ac_cpp_err"; then
2992 # Broken: success on invalid input.
2993continue
2994else
2995 echo "$as_me: failed program was:" >&5
2996 cat conftest.$ac_ext >&5
2997 # Passes both tests.
2998ac_preproc_ok=:
2999break
3000fi
3001rm -f conftest.err conftest.$ac_ext
3002
3003done
3004# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3005rm -f conftest.err conftest.$ac_ext
3006if $ac_preproc_ok; then
3007 break
3008fi
3009
3010 done
3011 ac_cv_prog_CPP=$CPP
3012
3013fi
3014 CPP=$ac_cv_prog_CPP
3015else
3016 ac_cv_prog_CPP=$CPP
3017fi
ad412770 3018echo "$as_me:$LINENO: result: $CPP" >&5
d4a28ab0
CW
3019echo "${ECHO_T}$CPP" >&6
3020ac_preproc_ok=false
3021for ac_c_preproc_warn_flag in '' yes
3022do
3023 # Use a header file that comes with gcc, so configuring glibc
3024 # with a fresh cross-compiler works.
3025 # On the NeXT, cc -E runs the code through the compiler's parser,
3026 # not just through cpp. "Syntax error" is here to catch this case.
3027 cat >conftest.$ac_ext <<_ACEOF
ad412770 3028#line $LINENO "configure"
d4a28ab0
CW
3029#include "confdefs.h"
3030#include <assert.h>
3031 Syntax error
3032_ACEOF
ad412770 3033if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
d4a28ab0
CW
3034 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3035 ac_status=$?
3036 egrep -v '^ *\+' conftest.er1 >conftest.err
3037 rm -f conftest.er1
3038 cat conftest.err >&5
ad412770 3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
3040 (exit $ac_status); } >/dev/null; then
3041 if test -s conftest.err; then
3042 ac_cpp_err=$ac_c_preproc_warn_flag
3043 else
3044 ac_cpp_err=
3045 fi
3046else
3047 ac_cpp_err=yes
3048fi
3049if test -z "$ac_cpp_err"; then
3050 :
3051else
3052 echo "$as_me: failed program was:" >&5
3053 cat conftest.$ac_ext >&5
3054 # Broken: fails on valid input.
3055continue
3056fi
3057rm -f conftest.err conftest.$ac_ext
3058
3059 # OK, works on sane cases. Now check whether non-existent headers
3060 # can be detected and how.
3061 cat >conftest.$ac_ext <<_ACEOF
ad412770 3062#line $LINENO "configure"
d4a28ab0
CW
3063#include "confdefs.h"
3064#include <ac_nonexistent.h>
3065_ACEOF
ad412770 3066if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
d4a28ab0
CW
3067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3068 ac_status=$?
3069 egrep -v '^ *\+' conftest.er1 >conftest.err
3070 rm -f conftest.er1
3071 cat conftest.err >&5
ad412770 3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
3073 (exit $ac_status); } >/dev/null; then
3074 if test -s conftest.err; then
3075 ac_cpp_err=$ac_c_preproc_warn_flag
3076 else
3077 ac_cpp_err=
3078 fi
3079else
3080 ac_cpp_err=yes
3081fi
3082if test -z "$ac_cpp_err"; then
3083 # Broken: success on invalid input.
3084continue
3085else
3086 echo "$as_me: failed program was:" >&5
3087 cat conftest.$ac_ext >&5
3088 # Passes both tests.
3089ac_preproc_ok=:
3090break
3091fi
3092rm -f conftest.err conftest.$ac_ext
3093
3094done
3095# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3096rm -f conftest.err conftest.$ac_ext
3097if $ac_preproc_ok; then
3098 :
3099else
ad412770 3100 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
d4a28ab0
CW
3101echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3102 { (exit 1); exit 1; }; }
3103fi
3104
3105ac_ext=c
3106ac_cpp='$CPP $CPPFLAGS'
3107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3109ac_compiler_gnu=$ac_cv_c_compiler_gnu
3110
ad412770
CW
3111
3112echo "$as_me:$LINENO: checking for ANSI C header files" >&5
d4a28ab0
CW
3113echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3114if test "${ac_cv_header_stdc+set}" = set; then
3115 echo $ECHO_N "(cached) $ECHO_C" >&6
3116else
3117 cat >conftest.$ac_ext <<_ACEOF
ad412770 3118#line $LINENO "configure"
d4a28ab0
CW
3119#include "confdefs.h"
3120#include <stdlib.h>
3121#include <stdarg.h>
3122#include <string.h>
3123#include <float.h>
3124
3125_ACEOF
ad412770 3126if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
d4a28ab0
CW
3127 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3128 ac_status=$?
3129 egrep -v '^ *\+' conftest.er1 >conftest.err
3130 rm -f conftest.er1
3131 cat conftest.err >&5
ad412770 3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
3133 (exit $ac_status); } >/dev/null; then
3134 if test -s conftest.err; then
3135 ac_cpp_err=$ac_c_preproc_warn_flag
3136 else
3137 ac_cpp_err=
3138 fi
3139else
3140 ac_cpp_err=yes
3141fi
3142if test -z "$ac_cpp_err"; then
3143 ac_cv_header_stdc=yes
3144else
3145 echo "$as_me: failed program was:" >&5
3146 cat conftest.$ac_ext >&5
3147 ac_cv_header_stdc=no
3148fi
3149rm -f conftest.err conftest.$ac_ext
3150
3151if test $ac_cv_header_stdc = yes; then
3152 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3153 cat >conftest.$ac_ext <<_ACEOF
ad412770 3154#line $LINENO "configure"
d4a28ab0
CW
3155#include "confdefs.h"
3156#include <string.h>
3157
3158_ACEOF
3159if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3160 egrep "memchr" >/dev/null 2>&1; then
3161 :
3162else
3163 ac_cv_header_stdc=no
3164fi
3165rm -f conftest*
3166
3167fi
3168
3169if test $ac_cv_header_stdc = yes; then
3170 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3171 cat >conftest.$ac_ext <<_ACEOF
ad412770 3172#line $LINENO "configure"
d4a28ab0
CW
3173#include "confdefs.h"
3174#include <stdlib.h>
3175
3176_ACEOF
3177if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3178 egrep "free" >/dev/null 2>&1; then
3179 :
3180else
3181 ac_cv_header_stdc=no
3182fi
3183rm -f conftest*
3184
3185fi
3186
3187if test $ac_cv_header_stdc = yes; then
3188 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3189 if test "$cross_compiling" = yes; then
3190 :
3191else
3192 cat >conftest.$ac_ext <<_ACEOF
ad412770 3193#line $LINENO "configure"
d4a28ab0
CW
3194#include "confdefs.h"
3195#include <ctype.h>
3196#if ((' ' & 0x0FF) == 0x020)
3197# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3198# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3199#else
3200# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3201 || ('j' <= (c) && (c) <= 'r') \
3202 || ('s' <= (c) && (c) <= 'z'))
3203# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3204#endif
3205
3206#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3207int
3208main ()
3209{
3210 int i;
3211 for (i = 0; i < 256; i++)
3212 if (XOR (islower (i), ISLOWER (i))
3213 || toupper (i) != TOUPPER (i))
3214 exit(2);
3215 exit (0);
3216}
3217_ACEOF
3218rm -f conftest$ac_exeext
ad412770 3219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d4a28ab0
CW
3220 (eval $ac_link) 2>&5
3221 ac_status=$?
ad412770 3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0 3223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
ad412770 3224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d4a28ab0
CW
3225 (eval $ac_try) 2>&5
3226 ac_status=$?
ad412770 3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
3228 (exit $ac_status); }; }; then
3229 :
3230else
3231 echo "$as_me: program exited with status $ac_status" >&5
3232echo "$as_me: failed program was:" >&5
3233cat conftest.$ac_ext >&5
ad412770 3234( exit $ac_status )
d4a28ab0
CW
3235ac_cv_header_stdc=no
3236fi
3237rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3238fi
3239fi
3240fi
ad412770 3241echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
d4a28ab0
CW
3242echo "${ECHO_T}$ac_cv_header_stdc" >&6
3243if test $ac_cv_header_stdc = yes; then
3244
ad412770 3245cat >>confdefs.h <<\_ACEOF
d4a28ab0 3246#define STDC_HEADERS 1
ad412770 3247_ACEOF
d4a28ab0
CW
3248
3249fi
3250
ad412770 3251echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
bd695173
CW
3252echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3253if test "${ac_cv_header_time+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3255else
3256 cat >conftest.$ac_ext <<_ACEOF
ad412770 3257#line $LINENO "configure"
bd695173
CW
3258#include "confdefs.h"
3259#include <sys/types.h>
3260#include <sys/time.h>
3261#include <time.h>
3262
ad412770
CW
3263#ifdef F77_DUMMY_MAIN
3264# ifdef __cplusplus
3265 extern "C"
3266# endif
3267 int F77_DUMMY_MAIN() { return 1; }
3268#endif
bd695173
CW
3269int
3270main ()
3271{
3272if ((struct tm *) 0)
3273return 0;
3274 ;
3275 return 0;
3276}
3277_ACEOF
3278rm -f conftest.$ac_objext
ad412770 3279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
bd695173
CW
3280 (eval $ac_compile) 2>&5
3281 ac_status=$?
ad412770 3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
bd695173
CW
3283 (exit $ac_status); } &&
3284 { ac_try='test -s conftest.$ac_objext'
ad412770 3285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
bd695173
CW
3286 (eval $ac_try) 2>&5
3287 ac_status=$?
ad412770 3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
bd695173
CW
3289 (exit $ac_status); }; }; then
3290 ac_cv_header_time=yes
3291else
3292 echo "$as_me: failed program was:" >&5
3293cat conftest.$ac_ext >&5
3294ac_cv_header_time=no
3295fi
3296rm -f conftest.$ac_objext conftest.$ac_ext
3297fi
ad412770 3298echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
bd695173
CW
3299echo "${ECHO_T}$ac_cv_header_time" >&6
3300if test $ac_cv_header_time = yes; then
3301
ad412770 3302cat >>confdefs.h <<\_ACEOF
bd695173 3303#define TIME_WITH_SYS_TIME 1
ad412770 3304_ACEOF
bd695173
CW
3305
3306fi
3307
ad412770
CW
3308# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3319 inttypes.h stdint.h unistd.h
bd695173
CW
3320do
3321as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
ad412770 3322echo "$as_me:$LINENO: checking for $ac_header" >&5
bd695173
CW
3323echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3324if eval "test \"\${$as_ac_Header+set}\" = set"; then
3325 echo $ECHO_N "(cached) $ECHO_C" >&6
3326else
3327 cat >conftest.$ac_ext <<_ACEOF
ad412770 3328#line $LINENO "configure"
bd695173 3329#include "confdefs.h"
ad412770
CW
3330$ac_includes_default
3331
bd695173
CW
3332#include <$ac_header>
3333_ACEOF
ad412770
CW
3334rm -f conftest.$ac_objext
3335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3336 (eval $ac_compile) 2>&5
bd695173 3337 ac_status=$?
ad412770
CW
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); } &&
3340 { ac_try='test -s conftest.$ac_objext'
3341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3342 (eval $ac_try) 2>&5
3343 ac_status=$?
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }; }; then
bd695173
CW
3346 eval "$as_ac_Header=yes"
3347else
3348 echo "$as_me: failed program was:" >&5
ad412770
CW
3349cat conftest.$ac_ext >&5
3350eval "$as_ac_Header=no"
bd695173 3351fi
ad412770 3352rm -f conftest.$ac_objext conftest.$ac_ext
bd695173 3353fi
ad412770 3354echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
bd695173
CW
3355echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3356if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad412770 3357 cat >>confdefs.h <<_ACEOF
bd695173 3358#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad412770 3359_ACEOF
bd695173
CW
3360
3361fi
ad412770 3362
bd695173
CW
3363done
3364
ad412770
CW
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375for ac_header in stdlib.h stddef.h errno.h limits.h malloc.h \
3376ctype.h getopt.h popt.h windows.h
bd695173
CW
3377do
3378as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
ad412770
CW
3379if eval "test \"\${$as_ac_Header+set}\" = set"; then
3380 echo "$as_me:$LINENO: checking for $ac_header" >&5
bd695173
CW
3381echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3382if eval "test \"\${$as_ac_Header+set}\" = set"; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
ad412770
CW
3384fi
3385echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3386echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bd695173 3387else
ad412770
CW
3388 # Is the header compilable?
3389echo "$as_me:$LINENO: checking $ac_header usability" >&5
3390echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3391cat >conftest.$ac_ext <<_ACEOF
3392#line $LINENO "configure"
3393#include "confdefs.h"
3394$ac_includes_default
3395#include <$ac_header>
3396_ACEOF
3397rm -f conftest.$ac_objext
3398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3399 (eval $ac_compile) 2>&5
3400 ac_status=$?
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); } &&
3403 { ac_try='test -s conftest.$ac_objext'
3404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3405 (eval $ac_try) 2>&5
3406 ac_status=$?
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); }; }; then
3409 ac_header_compiler=yes
3410else
3411 echo "$as_me: failed program was:" >&5
3412cat conftest.$ac_ext >&5
3413ac_header_compiler=no
3414fi
3415rm -f conftest.$ac_objext conftest.$ac_ext
3416echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3417echo "${ECHO_T}$ac_header_compiler" >&6
3418
3419# Is the header present?
3420echo "$as_me:$LINENO: checking $ac_header presence" >&5
3421echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3422cat >conftest.$ac_ext <<_ACEOF
3423#line $LINENO "configure"
bd695173
CW
3424#include "confdefs.h"
3425#include <$ac_header>
3426_ACEOF
ad412770 3427if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
bd695173
CW
3428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3429 ac_status=$?
3430 egrep -v '^ *\+' conftest.er1 >conftest.err
3431 rm -f conftest.er1
3432 cat conftest.err >&5
ad412770 3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
bd695173
CW
3434 (exit $ac_status); } >/dev/null; then
3435 if test -s conftest.err; then
3436 ac_cpp_err=$ac_c_preproc_warn_flag
3437 else
3438 ac_cpp_err=
3439 fi
3440else
3441 ac_cpp_err=yes
3442fi
3443if test -z "$ac_cpp_err"; then
ad412770 3444 ac_header_preproc=yes
bd695173
CW
3445else
3446 echo "$as_me: failed program was:" >&5
3447 cat conftest.$ac_ext >&5
ad412770 3448 ac_header_preproc=no
bd695173
CW
3449fi
3450rm -f conftest.err conftest.$ac_ext
ad412770
CW
3451echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3452echo "${ECHO_T}$ac_header_preproc" >&6
3453
3454# So? What about this header?
3455case $ac_header_compiler:$ac_header_preproc in
3456 yes:no )
3457 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3458echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3460echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3461 no:yes )
3462 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3463echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3464 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3465echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3467echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3468esac
3469echo "$as_me:$LINENO: checking for $ac_header" >&5
3470echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3471if eval "test \"\${$as_ac_Header+set}\" = set"; then
3472 echo $ECHO_N "(cached) $ECHO_C" >&6
3473else
3474 eval "$as_ac_Header=$ac_header_preproc"
bd695173 3475fi
ad412770 3476echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
bd695173 3477echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
ad412770
CW
3478
3479fi
bd695173 3480if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad412770 3481 cat >>confdefs.h <<_ACEOF
bd695173 3482#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad412770
CW
3483_ACEOF
3484
bd695173 3485fi
ad412770 3486
bd695173
CW
3487done
3488
ad412770
CW
3489
3490
3491for ac_header in string.h strings.h
bd695173
CW
3492do
3493as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
ad412770
CW
3494if eval "test \"\${$as_ac_Header+set}\" = set"; then
3495 echo "$as_me:$LINENO: checking for $ac_header" >&5
bd695173
CW
3496echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3497if eval "test \"\${$as_ac_Header+set}\" = set"; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
ad412770
CW
3499fi
3500echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3501echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bd695173 3502else
ad412770
CW
3503 # Is the header compilable?
3504echo "$as_me:$LINENO: checking $ac_header usability" >&5
3505echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3506cat >conftest.$ac_ext <<_ACEOF
3507#line $LINENO "configure"
3508#include "confdefs.h"
3509$ac_includes_default
3510#include <$ac_header>
3511_ACEOF
3512rm -f conftest.$ac_objext
3513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3514 (eval $ac_compile) 2>&5
3515 ac_status=$?
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); } &&
3518 { ac_try='test -s conftest.$ac_objext'
3519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3520 (eval $ac_try) 2>&5
3521 ac_status=$?
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); }; }; then
3524 ac_header_compiler=yes
3525else
3526 echo "$as_me: failed program was:" >&5
3527cat conftest.$ac_ext >&5
3528ac_header_compiler=no
3529fi
3530rm -f conftest.$ac_objext conftest.$ac_ext
3531echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3532echo "${ECHO_T}$ac_header_compiler" >&6
3533
3534# Is the header present?
3535echo "$as_me:$LINENO: checking $ac_header presence" >&5
3536echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3537cat >conftest.$ac_ext <<_ACEOF
3538#line $LINENO "configure"
bd695173
CW
3539#include "confdefs.h"
3540#include <$ac_header>
3541_ACEOF
ad412770 3542if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
bd695173
CW
3543 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3544 ac_status=$?
3545 egrep -v '^ *\+' conftest.er1 >conftest.err
3546 rm -f conftest.er1
3547 cat conftest.err >&5
ad412770 3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
bd695173
CW
3549 (exit $ac_status); } >/dev/null; then
3550 if test -s conftest.err; then
3551 ac_cpp_err=$ac_c_preproc_warn_flag
3552 else
3553 ac_cpp_err=
3554 fi
3555else
3556 ac_cpp_err=yes
3557fi
3558if test -z "$ac_cpp_err"; then
ad412770 3559 ac_header_preproc=yes
bd695173
CW
3560else
3561 echo "$as_me: failed program was:" >&5
3562 cat conftest.$ac_ext >&5
ad412770 3563 ac_header_preproc=no
bd695173
CW
3564fi
3565rm -f conftest.err conftest.$ac_ext
ad412770
CW
3566echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3567echo "${ECHO_T}$ac_header_preproc" >&6
3568
3569# So? What about this header?
3570case $ac_header_compiler:$ac_header_preproc in
3571 yes:no )
3572 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3573echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3575echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3576 no:yes )
3577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3578echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3580echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3582echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3583esac
3584echo "$as_me:$LINENO: checking for $ac_header" >&5
3585echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3586if eval "test \"\${$as_ac_Header+set}\" = set"; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3588else
3589 eval "$as_ac_Header=$ac_header_preproc"
bd695173 3590fi
ad412770 3591echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
bd695173 3592echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
ad412770
CW
3593
3594fi
3595if test `eval echo '${'$as_ac_Header'}'` = yes; then
3596 cat >>confdefs.h <<_ACEOF
3597#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3598_ACEOF
3599 break
3600fi
3601
3602done
3603
3604
3605
3606for ac_header in stdarg.h varargs.h
3607do
3608as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3609if eval "test \"\${$as_ac_Header+set}\" = set"; then
3610 echo "$as_me:$LINENO: checking for $ac_header" >&5
3611echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3612if eval "test \"\${$as_ac_Header+set}\" = set"; then
3613 echo $ECHO_N "(cached) $ECHO_C" >&6
3614fi
3615echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3616echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3617else
3618 # Is the header compilable?
3619echo "$as_me:$LINENO: checking $ac_header usability" >&5
3620echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3621cat >conftest.$ac_ext <<_ACEOF
3622#line $LINENO "configure"
3623#include "confdefs.h"
3624$ac_includes_default
3625#include <$ac_header>
3626_ACEOF
3627rm -f conftest.$ac_objext
3628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3629 (eval $ac_compile) 2>&5
3630 ac_status=$?
3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632 (exit $ac_status); } &&
3633 { ac_try='test -s conftest.$ac_objext'
3634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3635 (eval $ac_try) 2>&5
3636 ac_status=$?
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); }; }; then
3639 ac_header_compiler=yes
3640else
3641 echo "$as_me: failed program was:" >&5
3642cat conftest.$ac_ext >&5
3643ac_header_compiler=no
3644fi
3645rm -f conftest.$ac_objext conftest.$ac_ext
3646echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3647echo "${ECHO_T}$ac_header_compiler" >&6
3648
3649# Is the header present?
3650echo "$as_me:$LINENO: checking $ac_header presence" >&5
3651echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3652cat >conftest.$ac_ext <<_ACEOF
3653#line $LINENO "configure"
3654#include "confdefs.h"
3655#include <$ac_header>
3656_ACEOF
3657if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3658 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3659 ac_status=$?
3660 egrep -v '^ *\+' conftest.er1 >conftest.err
3661 rm -f conftest.er1
3662 cat conftest.err >&5
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); } >/dev/null; then
3665 if test -s conftest.err; then
3666 ac_cpp_err=$ac_c_preproc_warn_flag
3667 else
3668 ac_cpp_err=
3669 fi
3670else
3671 ac_cpp_err=yes
3672fi
3673if test -z "$ac_cpp_err"; then
3674 ac_header_preproc=yes
3675else
3676 echo "$as_me: failed program was:" >&5
3677 cat conftest.$ac_ext >&5
3678 ac_header_preproc=no
3679fi
3680rm -f conftest.err conftest.$ac_ext
3681echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3682echo "${ECHO_T}$ac_header_preproc" >&6
3683
3684# So? What about this header?
3685case $ac_header_compiler:$ac_header_preproc in
3686 yes:no )
3687 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3688echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3690echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3691 no:yes )
3692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3693echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3695echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3697echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3698esac
3699echo "$as_me:$LINENO: checking for $ac_header" >&5
3700echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3701if eval "test \"\${$as_ac_Header+set}\" = set"; then
3702 echo $ECHO_N "(cached) $ECHO_C" >&6
3703else
3704 eval "$as_ac_Header=$ac_header_preproc"
3705fi
3706echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3707echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3708
3709fi
bd695173 3710if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad412770 3711 cat >>confdefs.h <<_ACEOF
bd695173 3712#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad412770 3713_ACEOF
bd695173
CW
3714 break
3715fi
ad412770 3716
bd695173
CW
3717done
3718
ad412770
CW
3719
3720
3721
3722
3723
3724
bd695173
CW
3725for ac_header in utmp.h signal.h netinet/in.h netdb.h arpa/inet.h \
3726sys/socket.h
d4a28ab0
CW
3727do
3728as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
ad412770
CW
3729if eval "test \"\${$as_ac_Header+set}\" = set"; then
3730 echo "$as_me:$LINENO: checking for $ac_header" >&5
d4a28ab0
CW
3731echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3732if eval "test \"\${$as_ac_Header+set}\" = set"; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6
ad412770
CW
3734fi
3735echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3736echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
d4a28ab0 3737else
ad412770
CW
3738 # Is the header compilable?
3739echo "$as_me:$LINENO: checking $ac_header usability" >&5
3740echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3741cat >conftest.$ac_ext <<_ACEOF
3742#line $LINENO "configure"
3743#include "confdefs.h"
3744$ac_includes_default
3745#include <$ac_header>
3746_ACEOF
3747rm -f conftest.$ac_objext
3748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3749 (eval $ac_compile) 2>&5
3750 ac_status=$?
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); } &&
3753 { ac_try='test -s conftest.$ac_objext'
3754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755 (eval $ac_try) 2>&5
3756 ac_status=$?
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); }; }; then
3759 ac_header_compiler=yes
3760else
3761 echo "$as_me: failed program was:" >&5
3762cat conftest.$ac_ext >&5
3763ac_header_compiler=no
3764fi
3765rm -f conftest.$ac_objext conftest.$ac_ext
3766echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3767echo "${ECHO_T}$ac_header_compiler" >&6
3768
3769# Is the header present?
3770echo "$as_me:$LINENO: checking $ac_header presence" >&5
3771echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3772cat >conftest.$ac_ext <<_ACEOF
3773#line $LINENO "configure"
d4a28ab0
CW
3774#include "confdefs.h"
3775#include <$ac_header>
3776_ACEOF
ad412770 3777if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
d4a28ab0
CW
3778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3779 ac_status=$?
3780 egrep -v '^ *\+' conftest.er1 >conftest.err
3781 rm -f conftest.er1
3782 cat conftest.err >&5
ad412770 3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
3784 (exit $ac_status); } >/dev/null; then
3785 if test -s conftest.err; then
3786 ac_cpp_err=$ac_c_preproc_warn_flag
3787 else
3788 ac_cpp_err=
3789 fi
3790else
3791 ac_cpp_err=yes
3792fi
3793if test -z "$ac_cpp_err"; then
ad412770 3794 ac_header_preproc=yes
d4a28ab0
CW
3795else
3796 echo "$as_me: failed program was:" >&5
3797 cat conftest.$ac_ext >&5
ad412770 3798 ac_header_preproc=no
d4a28ab0
CW
3799fi
3800rm -f conftest.err conftest.$ac_ext
ad412770
CW
3801echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3802echo "${ECHO_T}$ac_header_preproc" >&6
3803
3804# So? What about this header?
3805case $ac_header_compiler:$ac_header_preproc in
3806 yes:no )
3807 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3808echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3810echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3811 no:yes )
3812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3813echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3815echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3817echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3818esac
3819echo "$as_me:$LINENO: checking for $ac_header" >&5
3820echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3821if eval "test \"\${$as_ac_Header+set}\" = set"; then
3822 echo $ECHO_N "(cached) $ECHO_C" >&6
3823else
3824 eval "$as_ac_Header=$ac_header_preproc"
d4a28ab0 3825fi
ad412770 3826echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
d4a28ab0 3827echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
ad412770
CW
3828
3829fi
d4a28ab0 3830if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad412770 3831 cat >>confdefs.h <<_ACEOF
d4a28ab0 3832#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad412770 3833_ACEOF
d4a28ab0
CW
3834
3835fi
ad412770 3836
d4a28ab0
CW
3837done
3838
ad412770
CW
3839
3840
3841
d4a28ab0
CW
3842for ac_header in sys/sem.h sys/shm.h sys/msg.h
3843do
3844as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
ad412770
CW
3845if eval "test \"\${$as_ac_Header+set}\" = set"; then
3846 echo "$as_me:$LINENO: checking for $ac_header" >&5
bd695173
CW
3847echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3848if eval "test \"\${$as_ac_Header+set}\" = set"; then
3849 echo $ECHO_N "(cached) $ECHO_C" >&6
ad412770
CW
3850fi
3851echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3852echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bd695173 3853else
ad412770
CW
3854 # Is the header compilable?
3855echo "$as_me:$LINENO: checking $ac_header usability" >&5
3856echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3857cat >conftest.$ac_ext <<_ACEOF
3858#line $LINENO "configure"
3859#include "confdefs.h"
3860$ac_includes_default
3861#include <$ac_header>
3862_ACEOF
3863rm -f conftest.$ac_objext
3864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3865 (eval $ac_compile) 2>&5
3866 ac_status=$?
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); } &&
3869 { ac_try='test -s conftest.$ac_objext'
3870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3871 (eval $ac_try) 2>&5
3872 ac_status=$?
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); }; }; then
3875 ac_header_compiler=yes
3876else
3877 echo "$as_me: failed program was:" >&5
3878cat conftest.$ac_ext >&5
3879ac_header_compiler=no
3880fi
3881rm -f conftest.$ac_objext conftest.$ac_ext
3882echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3883echo "${ECHO_T}$ac_header_compiler" >&6
3884
3885# Is the header present?
3886echo "$as_me:$LINENO: checking $ac_header presence" >&5
3887echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3888cat >conftest.$ac_ext <<_ACEOF
3889#line $LINENO "configure"
bd695173
CW
3890#include "confdefs.h"
3891#include <$ac_header>
3892_ACEOF
ad412770 3893if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
bd695173
CW
3894 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3895 ac_status=$?
3896 egrep -v '^ *\+' conftest.er1 >conftest.err
3897 rm -f conftest.er1
3898 cat conftest.err >&5
ad412770 3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
bd695173
CW
3900 (exit $ac_status); } >/dev/null; then
3901 if test -s conftest.err; then
3902 ac_cpp_err=$ac_c_preproc_warn_flag
3903 else
3904 ac_cpp_err=
3905 fi
3906else
3907 ac_cpp_err=yes
3908fi
3909if test -z "$ac_cpp_err"; then
ad412770 3910 ac_header_preproc=yes
bd695173
CW
3911else
3912 echo "$as_me: failed program was:" >&5
3913 cat conftest.$ac_ext >&5
ad412770 3914 ac_header_preproc=no
bd695173
CW
3915fi
3916rm -f conftest.err conftest.$ac_ext
ad412770
CW
3917echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3918echo "${ECHO_T}$ac_header_preproc" >&6
3919
3920# So? What about this header?
3921case $ac_header_compiler:$ac_header_preproc in
3922 yes:no )
3923 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3924echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3926echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3927 no:yes )
3928 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3929echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3930 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3931echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3933echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3934esac
3935echo "$as_me:$LINENO: checking for $ac_header" >&5
3936echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3937if eval "test \"\${$as_ac_Header+set}\" = set"; then
3938 echo $ECHO_N "(cached) $ECHO_C" >&6
3939else
3940 eval "$as_ac_Header=$ac_header_preproc"
bd695173 3941fi
ad412770 3942echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
bd695173 3943echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
ad412770
CW
3944
3945fi
bd695173 3946if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad412770 3947 cat >>confdefs.h <<_ACEOF
bd695173 3948#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad412770 3949_ACEOF
bd695173
CW
3950
3951fi
ad412770 3952
bd695173
CW
3953done
3954
ad412770
CW
3955
3956
3957
3958
3959
bd695173
CW
3960for ac_header in langinfo.h libintl.h sys/param.h fcntl.h unistd.h
3961do
3962as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
ad412770
CW
3963if eval "test \"\${$as_ac_Header+set}\" = set"; then
3964 echo "$as_me:$LINENO: checking for $ac_header" >&5
d4a28ab0
CW
3965echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3966if eval "test \"\${$as_ac_Header+set}\" = set"; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
ad412770
CW
3968fi
3969echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3970echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
d4a28ab0 3971else
ad412770
CW
3972 # Is the header compilable?
3973echo "$as_me:$LINENO: checking $ac_header usability" >&5
3974echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3975cat >conftest.$ac_ext <<_ACEOF
3976#line $LINENO "configure"
3977#include "confdefs.h"
3978$ac_includes_default
3979#include <$ac_header>
3980_ACEOF
3981rm -f conftest.$ac_objext
3982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3983 (eval $ac_compile) 2>&5
3984 ac_status=$?
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); } &&
3987 { ac_try='test -s conftest.$ac_objext'
3988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989 (eval $ac_try) 2>&5
3990 ac_status=$?
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); }; }; then
3993 ac_header_compiler=yes
3994else
3995 echo "$as_me: failed program was:" >&5
3996cat conftest.$ac_ext >&5
3997ac_header_compiler=no
3998fi
3999rm -f conftest.$ac_objext conftest.$ac_ext
4000echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4001echo "${ECHO_T}$ac_header_compiler" >&6
4002
4003# Is the header present?
4004echo "$as_me:$LINENO: checking $ac_header presence" >&5
4005echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4006cat >conftest.$ac_ext <<_ACEOF
4007#line $LINENO "configure"
d4a28ab0
CW
4008#include "confdefs.h"
4009#include <$ac_header>
4010_ACEOF
ad412770 4011if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
d4a28ab0
CW
4012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4013 ac_status=$?
4014 egrep -v '^ *\+' conftest.er1 >conftest.err
4015 rm -f conftest.er1
4016 cat conftest.err >&5
ad412770 4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
4018 (exit $ac_status); } >/dev/null; then
4019 if test -s conftest.err; then
4020 ac_cpp_err=$ac_c_preproc_warn_flag
4021 else
4022 ac_cpp_err=
4023 fi
4024else
4025 ac_cpp_err=yes
4026fi
4027if test -z "$ac_cpp_err"; then
ad412770 4028 ac_header_preproc=yes
d4a28ab0
CW
4029else
4030 echo "$as_me: failed program was:" >&5
4031 cat conftest.$ac_ext >&5
ad412770 4032 ac_header_preproc=no
d4a28ab0
CW
4033fi
4034rm -f conftest.err conftest.$ac_ext
ad412770
CW
4035echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4036echo "${ECHO_T}$ac_header_preproc" >&6
4037
4038# So? What about this header?
4039case $ac_header_compiler:$ac_header_preproc in
4040 yes:no )
4041 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4042echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4044echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4045 no:yes )
4046 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4047echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4048 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4049echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4051echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4052esac
4053echo "$as_me:$LINENO: checking for $ac_header" >&5
4054echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4055if eval "test \"\${$as_ac_Header+set}\" = set"; then
4056 echo $ECHO_N "(cached) $ECHO_C" >&6
4057else
4058 eval "$as_ac_Header=$ac_header_preproc"
d4a28ab0 4059fi
ad412770 4060echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
d4a28ab0 4061echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
ad412770
CW
4062
4063fi
d4a28ab0 4064if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad412770 4065 cat >>confdefs.h <<_ACEOF
d4a28ab0 4066#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad412770 4067_ACEOF
d4a28ab0
CW
4068
4069fi
ad412770 4070
d4a28ab0
CW
4071done
4072
ad412770 4073
bd695173 4074for ac_header in wchar.h
d4a28ab0
CW
4075do
4076as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
ad412770
CW
4077if eval "test \"\${$as_ac_Header+set}\" = set"; then
4078 echo "$as_me:$LINENO: checking for $ac_header" >&5
d4a28ab0
CW
4079echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4080if eval "test \"\${$as_ac_Header+set}\" = set"; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
ad412770
CW
4082fi
4083echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4084echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
d4a28ab0 4085else
ad412770
CW
4086 # Is the header compilable?
4087echo "$as_me:$LINENO: checking $ac_header usability" >&5
4088echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4089cat >conftest.$ac_ext <<_ACEOF
4090#line $LINENO "configure"
4091#include "confdefs.h"
4092$ac_includes_default
4093#include <$ac_header>
4094_ACEOF
4095rm -f conftest.$ac_objext
4096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4097 (eval $ac_compile) 2>&5
4098 ac_status=$?
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); } &&
4101 { ac_try='test -s conftest.$ac_objext'
4102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4103 (eval $ac_try) 2>&5
4104 ac_status=$?
4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106 (exit $ac_status); }; }; then
4107 ac_header_compiler=yes
4108else
4109 echo "$as_me: failed program was:" >&5
4110cat conftest.$ac_ext >&5
4111ac_header_compiler=no
4112fi
4113rm -f conftest.$ac_objext conftest.$ac_ext
4114echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4115echo "${ECHO_T}$ac_header_compiler" >&6
4116
4117# Is the header present?
4118echo "$as_me:$LINENO: checking $ac_header presence" >&5
4119echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4120cat >conftest.$ac_ext <<_ACEOF
4121#line $LINENO "configure"
d4a28ab0
CW
4122#include "confdefs.h"
4123#include <$ac_header>
4124_ACEOF
ad412770 4125if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
d4a28ab0
CW
4126 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4127 ac_status=$?
4128 egrep -v '^ *\+' conftest.er1 >conftest.err
4129 rm -f conftest.er1
4130 cat conftest.err >&5
ad412770 4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
4132 (exit $ac_status); } >/dev/null; then
4133 if test -s conftest.err; then
4134 ac_cpp_err=$ac_c_preproc_warn_flag
4135 else
4136 ac_cpp_err=
4137 fi
4138else
4139 ac_cpp_err=yes
4140fi
4141if test -z "$ac_cpp_err"; then
ad412770 4142 ac_header_preproc=yes
d4a28ab0
CW
4143else
4144 echo "$as_me: failed program was:" >&5
4145 cat conftest.$ac_ext >&5
ad412770 4146 ac_header_preproc=no
d4a28ab0
CW
4147fi
4148rm -f conftest.err conftest.$ac_ext
ad412770
CW
4149echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4150echo "${ECHO_T}$ac_header_preproc" >&6
4151
4152# So? What about this header?
4153case $ac_header_compiler:$ac_header_preproc in
4154 yes:no )
4155 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4156echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4158echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4159 no:yes )
4160 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4161echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4162 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4163echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4165echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4166esac
4167echo "$as_me:$LINENO: checking for $ac_header" >&5
4168echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4169if eval "test \"\${$as_ac_Header+set}\" = set"; then
4170 echo $ECHO_N "(cached) $ECHO_C" >&6
4171else
4172 eval "$as_ac_Header=$ac_header_preproc"
d4a28ab0 4173fi
ad412770 4174echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
d4a28ab0 4175echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
ad412770
CW
4176
4177fi
d4a28ab0 4178if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad412770 4179 cat >>confdefs.h <<_ACEOF
d4a28ab0 4180#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad412770 4181_ACEOF
d4a28ab0
CW
4182
4183fi
ad412770 4184
d4a28ab0
CW
4185done
4186
ad412770 4187
bd695173 4188for ac_header in locale.h
d4a28ab0
CW
4189do
4190as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
ad412770
CW
4191if eval "test \"\${$as_ac_Header+set}\" = set"; then
4192 echo "$as_me:$LINENO: checking for $ac_header" >&5
d4a28ab0
CW
4193echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4194if eval "test \"\${$as_ac_Header+set}\" = set"; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
ad412770
CW
4196fi
4197echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4198echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
d4a28ab0 4199else
ad412770
CW
4200 # Is the header compilable?
4201echo "$as_me:$LINENO: checking $ac_header usability" >&5
4202echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4203cat >conftest.$ac_ext <<_ACEOF
4204#line $LINENO "configure"
4205#include "confdefs.h"
4206$ac_includes_default
4207#include <$ac_header>
4208_ACEOF
4209rm -f conftest.$ac_objext
4210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4211 (eval $ac_compile) 2>&5
4212 ac_status=$?
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); } &&
4215 { ac_try='test -s conftest.$ac_objext'
4216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4217 (eval $ac_try) 2>&5
4218 ac_status=$?
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); }; }; then
4221 ac_header_compiler=yes
4222else
4223 echo "$as_me: failed program was:" >&5
4224cat conftest.$ac_ext >&5
4225ac_header_compiler=no
4226fi
4227rm -f conftest.$ac_objext conftest.$ac_ext
4228echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4229echo "${ECHO_T}$ac_header_compiler" >&6
4230
4231# Is the header present?
4232echo "$as_me:$LINENO: checking $ac_header presence" >&5
4233echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4234cat >conftest.$ac_ext <<_ACEOF
4235#line $LINENO "configure"
d4a28ab0
CW
4236#include "confdefs.h"
4237#include <$ac_header>
4238_ACEOF
ad412770 4239if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
d4a28ab0
CW
4240 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4241 ac_status=$?
4242 egrep -v '^ *\+' conftest.er1 >conftest.err
4243 rm -f conftest.er1
4244 cat conftest.err >&5
ad412770 4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
4246 (exit $ac_status); } >/dev/null; then
4247 if test -s conftest.err; then
4248 ac_cpp_err=$ac_c_preproc_warn_flag
4249 else
4250 ac_cpp_err=
4251 fi
4252else
4253 ac_cpp_err=yes
4254fi
4255if test -z "$ac_cpp_err"; then
ad412770 4256 ac_header_preproc=yes
d4a28ab0
CW
4257else
4258 echo "$as_me: failed program was:" >&5
4259 cat conftest.$ac_ext >&5
ad412770 4260 ac_header_preproc=no
d4a28ab0
CW
4261fi
4262rm -f conftest.err conftest.$ac_ext
ad412770
CW
4263echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4264echo "${ECHO_T}$ac_header_preproc" >&6
4265
4266# So? What about this header?
4267case $ac_header_compiler:$ac_header_preproc in
4268 yes:no )
4269 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4270echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4272echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4273 no:yes )
4274 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4275echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4276 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4277echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4279echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4280esac
4281echo "$as_me:$LINENO: checking for $ac_header" >&5
4282echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4283if eval "test \"\${$as_ac_Header+set}\" = set"; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4285else
4286 eval "$as_ac_Header=$ac_header_preproc"
d4a28ab0 4287fi
ad412770 4288echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
d4a28ab0 4289echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
ad412770
CW
4290
4291fi
d4a28ab0 4292if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad412770 4293 cat >>confdefs.h <<_ACEOF
d4a28ab0 4294#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad412770 4295_ACEOF
d4a28ab0 4296
bd695173
CW
4297for ac_func in setlocale
4298do
4299as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
ad412770 4300echo "$as_me:$LINENO: checking for $ac_func" >&5
bd695173
CW
4301echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4302if eval "test \"\${$as_ac_var+set}\" = set"; then
4303 echo $ECHO_N "(cached) $ECHO_C" >&6
4304else
4305 cat >conftest.$ac_ext <<_ACEOF
ad412770 4306#line $LINENO "configure"
bd695173
CW
4307#include "confdefs.h"
4308/* System header to define __stub macros and hopefully few prototypes
4309else
4310 which can conflict with char $ac_func (); below. */
4311#include <assert.h>
4312/* Override any gcc2 internal prototype to avoid an error. */
4313#ifdef __cplusplus
4314extern "C"
4315#endif
4316/* We use char because int might match the return type of a gcc2
4317 builtin and then its argument prototype would still apply. */
4318char $ac_func ();
4319char (*f) ();
4320
ad412770
CW
4321#ifdef F77_DUMMY_MAIN
4322# ifdef __cplusplus
4323 extern "C"
4324# endif
4325 int F77_DUMMY_MAIN() { return 1; }
4326#endif
bd695173
CW
4327int
4328main ()
4329{
4330/* The GNU C library defines this for functions which it implements
4331 to always fail with ENOSYS. Some functions are actually named
4332 something starting with __ and the normal name is an alias. */
4333#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4334choke me
4335#else
4336f = $ac_func;
4337#endif
4338
4339 ;
4340 return 0;
4341}
4342_ACEOF
4343rm -f conftest.$ac_objext conftest$ac_exeext
ad412770 4344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
bd695173
CW
4345 (eval $ac_link) 2>&5
4346 ac_status=$?
ad412770 4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
bd695173
CW
4348 (exit $ac_status); } &&
4349 { ac_try='test -s conftest$ac_exeext'
ad412770 4350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
bd695173
CW
4351 (eval $ac_try) 2>&5
4352 ac_status=$?
ad412770 4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
bd695173
CW
4354 (exit $ac_status); }; }; then
4355 eval "$as_ac_var=yes"
4356else
4357 echo "$as_me: failed program was:" >&5
4358cat conftest.$ac_ext >&5
4359eval "$as_ac_var=no"
4360fi
4361rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4362fi
ad412770 4363echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
bd695173
CW
4364echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4365if test `eval echo '${'$as_ac_var'}'` = yes; then
ad412770 4366 cat >>confdefs.h <<_ACEOF
bd695173 4367#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad412770 4368_ACEOF
bd695173
CW
4369
4370fi
4371done
4372
d4a28ab0 4373fi
d4a28ab0 4374
d4a28ab0 4375done
d4a28ab0 4376
d4a28ab0 4377
ad412770
CW
4378# Checks for typedefs, structures, and compiler characteristics.
4379echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
d4a28ab0
CW
4380echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4381if test "${ac_cv_c_const+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4383else
4384 cat >conftest.$ac_ext <<_ACEOF
ad412770 4385#line $LINENO "configure"
d4a28ab0
CW
4386#include "confdefs.h"
4387
ad412770
CW
4388#ifdef F77_DUMMY_MAIN
4389# ifdef __cplusplus
4390 extern "C"
4391# endif
4392 int F77_DUMMY_MAIN() { return 1; }
4393#endif
d4a28ab0
CW
4394int
4395main ()
4396{
4397/* FIXME: Include the comments suggested by Paul. */
4398#ifndef __cplusplus
4399 /* Ultrix mips cc rejects this. */
4400 typedef int charset[2];
4401 const charset x;
4402 /* SunOS 4.1.1 cc rejects this. */
4403 char const *const *ccp;
4404 char **p;
4405 /* NEC SVR4.0.2 mips cc rejects this. */
4406 struct point {int x, y;};
4407 static struct point const zero = {0,0};
4408 /* AIX XL C 1.02.0.0 rejects this.
4409 It does not let you subtract one const X* pointer from another in
4410 an arm of an if-expression whose if-part is not a constant
4411 expression */
4412 const char *g = "string";
4413 ccp = &g + (g ? g-g : 0);
4414 /* HPUX 7.0 cc rejects these. */
4415 ++ccp;
4416 p = (char**) ccp;
4417 ccp = (char const *const *) p;
4418 { /* SCO 3.2v4 cc rejects this. */
4419 char *t;
4420 char const *s = 0 ? (char *) 0 : (char const *) 0;
4421
4422 *t++ = 0;
4423 }
4424 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4425 int x[] = {25, 17};
4426 const int *foo = &x[0];
4427 ++foo;
4428 }
4429 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4430 typedef const int *iptr;
4431 iptr p = 0;
4432 ++p;
4433 }
4434 { /* AIX XL C 1.02.0.0 rejects this saying
4435 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4436 struct s { int j; const int *ap[3]; };
4437 struct s *b; b->j = 5;
4438 }
4439 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4440 const int foo = 10;
4441 }
4442#endif
4443
4444 ;
4445 return 0;
4446}
4447_ACEOF
4448rm -f conftest.$ac_objext
ad412770 4449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d4a28ab0
CW
4450 (eval $ac_compile) 2>&5
4451 ac_status=$?
ad412770 4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
4453 (exit $ac_status); } &&
4454 { ac_try='test -s conftest.$ac_objext'
ad412770 4455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d4a28ab0
CW
4456 (eval $ac_try) 2>&5
4457 ac_status=$?
ad412770 4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
4459 (exit $ac_status); }; }; then
4460 ac_cv_c_const=yes
4461else
4462 echo "$as_me: failed program was:" >&5
4463cat conftest.$ac_ext >&5
4464ac_cv_c_const=no
4465fi
4466rm -f conftest.$ac_objext conftest.$ac_ext
4467fi
ad412770 4468echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
d4a28ab0
CW
4469echo "${ECHO_T}$ac_cv_c_const" >&6
4470if test $ac_cv_c_const = no; then
4471
ad412770 4472cat >>confdefs.h <<\_ACEOF
d4a28ab0 4473#define const
ad412770 4474_ACEOF
d4a28ab0
CW
4475
4476fi
4477
ad412770 4478echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
d4a28ab0
CW
4479echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4480if test "${ac_cv_struct_tm+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4482else
4483 cat >conftest.$ac_ext <<_ACEOF
ad412770 4484#line $LINENO "configure"
d4a28ab0
CW
4485#include "confdefs.h"
4486#include <sys/types.h>
4487#include <time.h>
4488
ad412770
CW
4489#ifdef F77_DUMMY_MAIN
4490# ifdef __cplusplus
4491 extern "C"
4492# endif
4493 int F77_DUMMY_MAIN() { return 1; }
4494#endif
d4a28ab0
CW
4495int
4496main ()
4497{
4498struct tm *tp; tp->tm_sec;
4499 ;
4500 return 0;
4501}
4502_ACEOF
4503rm -f conftest.$ac_objext
ad412770 4504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d4a28ab0
CW
4505 (eval $ac_compile) 2>&5
4506 ac_status=$?
ad412770 4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
4508 (exit $ac_status); } &&
4509 { ac_try='test -s conftest.$ac_objext'
ad412770 4510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d4a28ab0
CW
4511 (eval $ac_try) 2>&5
4512 ac_status=$?
ad412770 4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
4514 (exit $ac_status); }; }; then
4515 ac_cv_struct_tm=time.h
4516else
4517 echo "$as_me: failed program was:" >&5
4518cat conftest.$ac_ext >&5
4519ac_cv_struct_tm=sys/time.h
4520fi
4521rm -f conftest.$ac_objext conftest.$ac_ext
4522fi
ad412770 4523echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
d4a28ab0
CW
4524echo "${ECHO_T}$ac_cv_struct_tm" >&6
4525if test $ac_cv_struct_tm = sys/time.h; then
4526
ad412770 4527cat >>confdefs.h <<\_ACEOF
d4a28ab0 4528#define TM_IN_SYS_TIME 1
ad412770 4529_ACEOF
d4a28ab0
CW
4530
4531fi
4532
ad412770 4533
d4a28ab0
CW
4534# Checks for library functions.
4535
4536for ac_header in stdlib.h
4537do
4538as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
ad412770
CW
4539if eval "test \"\${$as_ac_Header+set}\" = set"; then
4540 echo "$as_me:$LINENO: checking for $ac_header" >&5
d4a28ab0
CW
4541echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4542if eval "test \"\${$as_ac_Header+set}\" = set"; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
ad412770
CW
4544fi
4545echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4546echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
d4a28ab0 4547else
ad412770
CW
4548 # Is the header compilable?
4549echo "$as_me:$LINENO: checking $ac_header usability" >&5
4550echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4551cat >conftest.$ac_ext <<_ACEOF
4552#line $LINENO "configure"
4553#include "confdefs.h"
4554$ac_includes_default
4555#include <$ac_header>
4556_ACEOF
4557rm -f conftest.$ac_objext
4558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4559 (eval $ac_compile) 2>&5
4560 ac_status=$?
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); } &&
4563 { ac_try='test -s conftest.$ac_objext'
4564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4565 (eval $ac_try) 2>&5
4566 ac_status=$?
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); }; }; then
4569 ac_header_compiler=yes
4570else
4571 echo "$as_me: failed program was:" >&5
4572cat conftest.$ac_ext >&5
4573ac_header_compiler=no
4574fi
4575rm -f conftest.$ac_objext conftest.$ac_ext
4576echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4577echo "${ECHO_T}$ac_header_compiler" >&6
4578
4579# Is the header present?
4580echo "$as_me:$LINENO: checking $ac_header presence" >&5
4581echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4582cat >conftest.$ac_ext <<_ACEOF
4583#line $LINENO "configure"
d4a28ab0
CW
4584#include "confdefs.h"
4585#include <$ac_header>
4586_ACEOF
ad412770 4587if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
d4a28ab0
CW
4588 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4589 ac_status=$?
4590 egrep -v '^ *\+' conftest.er1 >conftest.err
4591 rm -f conftest.er1
4592 cat conftest.err >&5
ad412770 4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
4594 (exit $ac_status); } >/dev/null; then
4595 if test -s conftest.err; then
4596 ac_cpp_err=$ac_c_preproc_warn_flag
4597 else
4598 ac_cpp_err=
4599 fi
4600else
4601 ac_cpp_err=yes
4602fi
4603if test -z "$ac_cpp_err"; then
ad412770 4604 ac_header_preproc=yes
d4a28ab0
CW
4605else
4606 echo "$as_me: failed program was:" >&5
4607 cat conftest.$ac_ext >&5
ad412770 4608 ac_header_preproc=no
d4a28ab0
CW
4609fi
4610rm -f conftest.err conftest.$ac_ext
ad412770
CW
4611echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4612echo "${ECHO_T}$ac_header_preproc" >&6
4613
4614# So? What about this header?
4615case $ac_header_compiler:$ac_header_preproc in
4616 yes:no )
4617 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4618echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4620echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4621 no:yes )
4622 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4623echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4624 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4625echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4627echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4628esac
4629echo "$as_me:$LINENO: checking for $ac_header" >&5
4630echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4631if eval "test \"\${$as_ac_Header+set}\" = set"; then
4632 echo $ECHO_N "(cached) $ECHO_C" >&6
4633else
4634 eval "$as_ac_Header=$ac_header_preproc"
d4a28ab0 4635fi
ad412770 4636echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
d4a28ab0 4637echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
ad412770
CW
4638
4639fi
d4a28ab0 4640if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad412770 4641 cat >>confdefs.h <<_ACEOF
d4a28ab0 4642#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad412770 4643_ACEOF
d4a28ab0
CW
4644
4645fi
ad412770 4646
d4a28ab0
CW
4647done
4648
ad412770 4649echo "$as_me:$LINENO: checking for working malloc" >&5
d4a28ab0
CW
4650echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
4651if test "${ac_cv_func_malloc_works+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4653else
4654 if test "$cross_compiling" = yes; then
4655 ac_cv_func_malloc_works=no
4656else
4657 cat >conftest.$ac_ext <<_ACEOF
ad412770 4658#line $LINENO "configure"
d4a28ab0
CW
4659#include "confdefs.h"
4660#if STDC_HEADERS || HAVE_STDLIB_H
4661# include <stdlib.h>
4662#else
4663char *malloc ();
4664#endif
4665
ad412770
CW
4666#ifdef F77_DUMMY_MAIN
4667# ifdef __cplusplus
4668 extern "C"
4669# endif
4670 int F77_DUMMY_MAIN() { return 1; }
4671#endif
d4a28ab0
CW
4672int
4673main ()
4674{
4675exit (malloc (0) ? 0 : 1);
4676 ;
4677 return 0;
4678}
4679_ACEOF
4680rm -f conftest$ac_exeext
ad412770 4681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d4a28ab0
CW
4682 (eval $ac_link) 2>&5
4683 ac_status=$?
ad412770 4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0 4685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
ad412770 4686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d4a28ab0
CW
4687 (eval $ac_try) 2>&5
4688 ac_status=$?
ad412770 4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
4690 (exit $ac_status); }; }; then
4691 ac_cv_func_malloc_works=yes
4692else
4693 echo "$as_me: program exited with status $ac_status" >&5
4694echo "$as_me: failed program was:" >&5
4695cat conftest.$ac_ext >&5
ad412770 4696( exit $ac_status )
d4a28ab0
CW
4697ac_cv_func_malloc_works=no
4698fi
4699rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4700fi
4701fi
ad412770 4702echo "$as_me:$LINENO: result: $ac_cv_func_malloc_works" >&5
d4a28ab0
CW
4703echo "${ECHO_T}$ac_cv_func_malloc_works" >&6
4704if test $ac_cv_func_malloc_works = yes; then
4705
ad412770 4706cat >>confdefs.h <<\_ACEOF
d4a28ab0 4707#define HAVE_MALLOC 1
ad412770 4708_ACEOF
d4a28ab0
CW
4709
4710fi
4711
ad412770
CW
4712
4713
4714
4715
4716
d4a28ab0
CW
4717for ac_func in strcasecmp strchr strdup strrchr strerror
4718do
4719as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
ad412770 4720echo "$as_me:$LINENO: checking for $ac_func" >&5
d4a28ab0
CW
4721echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4722if eval "test \"\${$as_ac_var+set}\" = set"; then
4723 echo $ECHO_N "(cached) $ECHO_C" >&6
4724else
4725 cat >conftest.$ac_ext <<_ACEOF
ad412770 4726#line $LINENO "configure"
d4a28ab0
CW
4727#include "confdefs.h"
4728/* System header to define __stub macros and hopefully few prototypes,
4729 which can conflict with char $ac_func (); below. */
4730#include <assert.h>
4731/* Override any gcc2 internal prototype to avoid an error. */
4732#ifdef __cplusplus
4733extern "C"
4734#endif
4735/* We use char because int might match the return type of a gcc2
4736 builtin and then its argument prototype would still apply. */
4737char $ac_func ();
4738char (*f) ();
4739
ad412770
CW
4740#ifdef F77_DUMMY_MAIN
4741# ifdef __cplusplus
4742 extern "C"
4743# endif
4744 int F77_DUMMY_MAIN() { return 1; }
4745#endif
d4a28ab0
CW
4746int
4747main ()
4748{
4749/* The GNU C library defines this for functions which it implements
4750 to always fail with ENOSYS. Some functions are actually named
4751 something starting with __ and the normal name is an alias. */
4752#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4753choke me
4754#else
4755f = $ac_func;
4756#endif
4757
4758 ;
4759 return 0;
4760}
4761_ACEOF
4762rm -f conftest.$ac_objext conftest$ac_exeext
ad412770 4763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d4a28ab0
CW
4764 (eval $ac_link) 2>&5
4765 ac_status=$?
ad412770 4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
4767 (exit $ac_status); } &&
4768 { ac_try='test -s conftest$ac_exeext'
ad412770 4769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d4a28ab0
CW
4770 (eval $ac_try) 2>&5
4771 ac_status=$?
ad412770 4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
4773 (exit $ac_status); }; }; then
4774 eval "$as_ac_var=yes"
4775else
4776 echo "$as_me: failed program was:" >&5
4777cat conftest.$ac_ext >&5
4778eval "$as_ac_var=no"
4779fi
4780rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4781fi
ad412770 4782echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
d4a28ab0
CW
4783echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4784if test `eval echo '${'$as_ac_var'}'` = yes; then
ad412770 4785 cat >>confdefs.h <<_ACEOF
d4a28ab0 4786#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad412770 4787_ACEOF
d4a28ab0
CW
4788
4789fi
4790done
4791
ad412770
CW
4792
4793
4794
4795
bd695173 4796for ac_func in bzero getcwd memset nl_langinfo
d4a28ab0
CW
4797do
4798as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
ad412770 4799echo "$as_me:$LINENO: checking for $ac_func" >&5
d4a28ab0
CW
4800echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4801if eval "test \"\${$as_ac_var+set}\" = set"; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
4803else
4804 cat >conftest.$ac_ext <<_ACEOF
ad412770 4805#line $LINENO "configure"
d4a28ab0
CW
4806#include "confdefs.h"
4807/* System header to define __stub macros and hopefully few prototypes,
4808 which can conflict with char $ac_func (); below. */
4809#include <assert.h>
4810/* Override any gcc2 internal prototype to avoid an error. */
4811#ifdef __cplusplus
4812extern "C"
4813#endif
4814/* We use char because int might match the return type of a gcc2
4815 builtin and then its argument prototype would still apply. */
4816char $ac_func ();
4817char (*f) ();
4818
ad412770
CW
4819#ifdef F77_DUMMY_MAIN
4820# ifdef __cplusplus
4821 extern "C"
4822# endif
4823 int F77_DUMMY_MAIN() { return 1; }
4824#endif
d4a28ab0
CW
4825int
4826main ()
4827{
4828/* The GNU C library defines this for functions which it implements
4829 to always fail with ENOSYS. Some functions are actually named
ad412770
CW
4830 something starting with __ and the normal name is an alias. */
4831#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4832choke me
4833#else
4834f = $ac_func;
4835#endif
4836
4837 ;
4838 return 0;
4839}
d4a28ab0 4840_ACEOF
ad412770
CW
4841rm -f conftest.$ac_objext conftest$ac_exeext
4842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4843 (eval $ac_link) 2>&5
d4a28ab0 4844 ac_status=$?
ad412770 4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0 4846 (exit $ac_status); } &&
ad412770
CW
4847 { ac_try='test -s conftest$ac_exeext'
4848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d4a28ab0
CW
4849 (eval $ac_try) 2>&5
4850 ac_status=$?
ad412770 4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0 4852 (exit $ac_status); }; }; then
ad412770 4853 eval "$as_ac_var=yes"
d4a28ab0
CW
4854else
4855 echo "$as_me: failed program was:" >&5
4856cat conftest.$ac_ext >&5
ad412770 4857eval "$as_ac_var=no"
d4a28ab0 4858fi
ad412770 4859rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d4a28ab0 4860fi
ad412770
CW
4861echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4862echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4863if test `eval echo '${'$as_ac_var'}'` = yes; then
4864 cat >>confdefs.h <<_ACEOF
4865#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4866_ACEOF
d4a28ab0
CW
4867
4868fi
4869done
4870
ad412770 4871echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
d4a28ab0
CW
4872echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
4873if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
4874 echo $ECHO_N "(cached) $ECHO_C" >&6
4875else
4876 rm -f conftest.sym conftest.file
4877echo >conftest.file
ad412770 4878if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
d4a28ab0
CW
4879 if test "$cross_compiling" = yes; then
4880 ac_cv_func_lstat_dereferences_slashed_symlink=no
4881else
4882 cat >conftest.$ac_ext <<_ACEOF
ad412770 4883#line $LINENO "configure"
d4a28ab0
CW
4884#include "confdefs.h"
4885$ac_includes_default
ad412770
CW
4886#ifdef F77_DUMMY_MAIN
4887# ifdef __cplusplus
4888 extern "C"
4889# endif
4890 int F77_DUMMY_MAIN() { return 1; }
4891#endif
d4a28ab0
CW
4892int
4893main ()
4894{
4895struct stat sbuf;
4896 /* Linux will dereference the symlink and fail.
4897 That is better in the sense that it means we will not
4898 have to compile and use the lstat wrapper. */
4899 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
4900 ;
4901 return 0;
4902}
4903_ACEOF
4904rm -f conftest$ac_exeext
ad412770 4905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d4a28ab0
CW
4906 (eval $ac_link) 2>&5
4907 ac_status=$?
ad412770 4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0 4909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
ad412770 4910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d4a28ab0
CW
4911 (eval $ac_try) 2>&5
4912 ac_status=$?
ad412770 4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
4914 (exit $ac_status); }; }; then
4915 ac_cv_func_lstat_dereferences_slashed_symlink=yes
4916else
4917 echo "$as_me: program exited with status $ac_status" >&5
4918echo "$as_me: failed program was:" >&5
4919cat conftest.$ac_ext >&5
ad412770 4920( exit $ac_status )
d4a28ab0
CW
4921ac_cv_func_lstat_dereferences_slashed_symlink=no
4922fi
4923rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4924fi
4925else
4926 # If the `ln -s' command failed, then we probably don't even
4927 # have an lstat function.
4928 ac_cv_func_lstat_dereferences_slashed_symlink=no
4929fi
4930rm -f conftest.sym conftest.file
4931
4932fi
ad412770 4933echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
d4a28ab0
CW
4934echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
4935
4936test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
4937
ad412770 4938cat >>confdefs.h <<_ACEOF
d4a28ab0 4939#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
ad412770
CW
4940_ACEOF
4941
d4a28ab0
CW
4942
4943if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
4944 LIBOBJS="$LIBOBJS lstat.$ac_objext"
4945fi
4946
ad412770 4947echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
d4a28ab0
CW
4948echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
4949if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
4950 echo $ECHO_N "(cached) $ECHO_C" >&6
4951else
4952 if test "$cross_compiling" = yes; then
4953 ac_cv_func_lstat_empty_string_bug=yes
4954else
4955 cat >conftest.$ac_ext <<_ACEOF
ad412770 4956#line $LINENO "configure"
d4a28ab0
CW
4957#include "confdefs.h"
4958$ac_includes_default
ad412770
CW
4959#ifdef F77_DUMMY_MAIN
4960# ifdef __cplusplus
4961 extern "C"
4962# endif
4963 int F77_DUMMY_MAIN() { return 1; }
4964#endif
d4a28ab0
CW
4965int
4966main ()
4967{
4968struct stat sbuf;
4969 exit (lstat ("", &sbuf) ? 1 : 0);
4970 ;
4971 return 0;
4972}
4973_ACEOF
4974rm -f conftest$ac_exeext
ad412770 4975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d4a28ab0
CW
4976 (eval $ac_link) 2>&5
4977 ac_status=$?
ad412770 4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0 4979 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
ad412770 4980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d4a28ab0
CW
4981 (eval $ac_try) 2>&5
4982 ac_status=$?
ad412770 4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
4984 (exit $ac_status); }; }; then
4985 ac_cv_func_lstat_empty_string_bug=yes
4986else
4987 echo "$as_me: program exited with status $ac_status" >&5
4988echo "$as_me: failed program was:" >&5
4989cat conftest.$ac_ext >&5
ad412770 4990( exit $ac_status )
d4a28ab0
CW
4991ac_cv_func_lstat_empty_string_bug=no
4992fi
4993rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4994fi
4995fi
ad412770 4996echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
d4a28ab0
CW
4997echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
4998if test $ac_cv_func_lstat_empty_string_bug = yes; then
4999 LIBOBJS="$LIBOBJS lstat.$ac_objext"
5000
ad412770 5001cat >>confdefs.h <<_ACEOF
d4a28ab0 5002#define HAVE_LSTAT_EMPTY_STRING_BUG 1
ad412770 5003_ACEOF
d4a28ab0
CW
5004
5005fi
5006
ad412770 5007echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
d4a28ab0
CW
5008echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
5009if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
5010 echo $ECHO_N "(cached) $ECHO_C" >&6
5011else
5012 if test "$cross_compiling" = yes; then
5013 ac_cv_func_stat_empty_string_bug=yes
5014else
5015 cat >conftest.$ac_ext <<_ACEOF
ad412770 5016#line $LINENO "configure"
d4a28ab0
CW
5017#include "confdefs.h"
5018$ac_includes_default
ad412770
CW
5019#ifdef F77_DUMMY_MAIN
5020# ifdef __cplusplus
5021 extern "C"
5022# endif
5023 int F77_DUMMY_MAIN() { return 1; }
5024#endif
d4a28ab0
CW
5025int
5026main ()
5027{
5028struct stat sbuf;
5029 exit (stat ("", &sbuf) ? 1 : 0);
5030 ;
5031 return 0;
5032}
5033_ACEOF
5034rm -f conftest$ac_exeext
ad412770 5035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d4a28ab0
CW
5036 (eval $ac_link) 2>&5
5037 ac_status=$?
ad412770 5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0 5039 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
ad412770 5040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d4a28ab0
CW
5041 (eval $ac_try) 2>&5
5042 ac_status=$?
ad412770 5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
5044 (exit $ac_status); }; }; then
5045 ac_cv_func_stat_empty_string_bug=yes
5046else
5047 echo "$as_me: program exited with status $ac_status" >&5
5048echo "$as_me: failed program was:" >&5
5049cat conftest.$ac_ext >&5
ad412770 5050( exit $ac_status )
d4a28ab0
CW
5051ac_cv_func_stat_empty_string_bug=no
5052fi
5053rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5054fi
5055fi
ad412770 5056echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
d4a28ab0
CW
5057echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
5058if test $ac_cv_func_stat_empty_string_bug = yes; then
5059 LIBOBJS="$LIBOBJS stat.$ac_objext"
5060
ad412770 5061cat >>confdefs.h <<_ACEOF
d4a28ab0 5062#define HAVE_STAT_EMPTY_STRING_BUG 1
ad412770 5063_ACEOF
d4a28ab0
CW
5064
5065fi
5066
ad412770 5067
d4a28ab0
CW
5068for ac_func in vprintf
5069do
5070as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
ad412770 5071echo "$as_me:$LINENO: checking for $ac_func" >&5
d4a28ab0
CW
5072echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5073if eval "test \"\${$as_ac_var+set}\" = set"; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
5075else
5076 cat >conftest.$ac_ext <<_ACEOF
ad412770 5077#line $LINENO "configure"
d4a28ab0
CW
5078#include "confdefs.h"
5079/* System header to define __stub macros and hopefully few prototypes,
5080 which can conflict with char $ac_func (); below. */
5081#include <assert.h>
5082/* Override any gcc2 internal prototype to avoid an error. */
5083#ifdef __cplusplus
5084extern "C"
5085#endif
5086/* We use char because int might match the return type of a gcc2
5087 builtin and then its argument prototype would still apply. */
5088char $ac_func ();
5089char (*f) ();
5090
ad412770
CW
5091#ifdef F77_DUMMY_MAIN
5092# ifdef __cplusplus
5093 extern "C"
5094# endif
5095 int F77_DUMMY_MAIN() { return 1; }
5096#endif
d4a28ab0
CW
5097int
5098main ()
5099{
5100/* The GNU C library defines this for functions which it implements
5101 to always fail with ENOSYS. Some functions are actually named
5102 something starting with __ and the normal name is an alias. */
5103#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5104choke me
5105#else
5106f = $ac_func;
5107#endif
5108
5109 ;
5110 return 0;
5111}
5112_ACEOF
5113rm -f conftest.$ac_objext conftest$ac_exeext
ad412770 5114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d4a28ab0
CW
5115 (eval $ac_link) 2>&5
5116 ac_status=$?
ad412770 5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
5118 (exit $ac_status); } &&
5119 { ac_try='test -s conftest$ac_exeext'
ad412770 5120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d4a28ab0
CW
5121 (eval $ac_try) 2>&5
5122 ac_status=$?
ad412770 5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
5124 (exit $ac_status); }; }; then
5125 eval "$as_ac_var=yes"
5126else
5127 echo "$as_me: failed program was:" >&5
5128cat conftest.$ac_ext >&5
5129eval "$as_ac_var=no"
5130fi
5131rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5132fi
ad412770 5133echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
d4a28ab0
CW
5134echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5135if test `eval echo '${'$as_ac_var'}'` = yes; then
ad412770 5136 cat >>confdefs.h <<_ACEOF
d4a28ab0 5137#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad412770 5138_ACEOF
d4a28ab0 5139
ad412770 5140echo "$as_me:$LINENO: checking for _doprnt" >&5
d4a28ab0
CW
5141echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
5142if test "${ac_cv_func__doprnt+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5144else
5145 cat >conftest.$ac_ext <<_ACEOF
ad412770 5146#line $LINENO "configure"
d4a28ab0
CW
5147#include "confdefs.h"
5148/* System header to define __stub macros and hopefully few prototypes,
5149 which can conflict with char _doprnt (); below. */
5150#include <assert.h>
5151/* Override any gcc2 internal prototype to avoid an error. */
5152#ifdef __cplusplus
5153extern "C"
5154#endif
5155/* We use char because int might match the return type of a gcc2
5156 builtin and then its argument prototype would still apply. */
5157char _doprnt ();
5158char (*f) ();
5159
ad412770
CW
5160#ifdef F77_DUMMY_MAIN
5161# ifdef __cplusplus
5162 extern "C"
5163# endif
5164 int F77_DUMMY_MAIN() { return 1; }
5165#endif
d4a28ab0
CW
5166int
5167main ()
5168{
5169/* The GNU C library defines this for functions which it implements
5170 to always fail with ENOSYS. Some functions are actually named
5171 something starting with __ and the normal name is an alias. */
5172#if defined (__stub__doprnt) || defined (__stub____doprnt)
5173choke me
5174#else
5175f = _doprnt;
5176#endif
5177
5178 ;
5179 return 0;
5180}
5181_ACEOF
5182rm -f conftest.$ac_objext conftest$ac_exeext
ad412770 5183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d4a28ab0
CW
5184 (eval $ac_link) 2>&5
5185 ac_status=$?
ad412770 5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
5187 (exit $ac_status); } &&
5188 { ac_try='test -s conftest$ac_exeext'
ad412770 5189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d4a28ab0
CW
5190 (eval $ac_try) 2>&5
5191 ac_status=$?
ad412770 5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d4a28ab0
CW
5193 (exit $ac_status); }; }; then
5194 ac_cv_func__doprnt=yes
5195else
5196 echo "$as_me: failed program was:" >&5
5197cat conftest.$ac_ext >&5
5198ac_cv_func__doprnt=no
5199fi
5200rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5201fi
ad412770 5202echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
d4a28ab0
CW
5203echo "${ECHO_T}$ac_cv_func__doprnt" >&6
5204if test $ac_cv_func__doprnt = yes; then
5205
ad412770 5206cat >>confdefs.h <<\_ACEOF
d4a28ab0 5207#define HAVE_DOPRNT 1
ad412770 5208_ACEOF
d4a28ab0
CW
5209
5210fi
5211
5212fi
5213done
5214
ad412770
CW
5215
5216echo "$as_me:$LINENO: checking for OpenClipboard" >&5
d2b03e6a
CW
5217echo $ECHO_N "checking for OpenClipboard... $ECHO_C" >&6
5218if test "${ac_cv_func_OpenClipboard+set}" = set; then
5219 echo $ECHO_N "(cached) $ECHO_C" >&6
5220else
5221 cat >conftest.$ac_ext <<_ACEOF
ad412770 5222#line $LINENO "configure"
d2b03e6a
CW
5223#include "confdefs.h"
5224/* System header to define __stub macros and hopefully few prototypes,
5225 which can conflict with char __stdcall OpenClipboard ( void * ) below. */
5226#include <assert.h>
5227/* Override any gcc2 internal prototype to avoid an error. */
5228#ifdef __cplusplus
5229extern "C"
5230#endif
5231/* We use char because int might match the return type of a gcc2
5232 builtin and then its argument prototype would still apply. */
5233char __stdcall OpenClipboard ( void * );
5234char (*f) ( void * );
5235
ad412770
CW
5236#ifdef F77_DUMMY_MAIN
5237# ifdef __cplusplus
5238 extern "C"
5239# endif
5240 int F77_DUMMY_MAIN() { return 1; }
5241#endif
d2b03e6a
CW
5242int
5243main ()
5244{
5245/* The GNU C library defines this for functions which it implements
5246 to always fail with ENOSYS. Some functions are actually named
5247 something starting with __ and the normal name is an alias. */
5248#if defined (__stub_OpenClipboard) || defined (__stub___OpenClipboard)
5249choke me
5250#else
5251f = OpenClipboard;
5252#endif
5253
5254 ;
5255 return 0;
5256}
5257_ACEOF
5258rm -f conftest.$ac_objext conftest$ac_exeext
ad412770 5259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d2b03e6a
CW
5260 (eval $ac_link) 2>&5
5261 ac_status=$?
ad412770 5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d2b03e6a
CW
5263 (exit $ac_status); } &&
5264 { ac_try='test -s conftest$ac_exeext'
ad412770 5265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d2b03e6a
CW
5266 (eval $ac_try) 2>&5
5267 ac_status=$?
ad412770 5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d2b03e6a
CW
5269 (exit $ac_status); }; }; then
5270 ac_cv_func_OpenClipboard=yes
5271else
5272 echo "$as_me: failed program was:" >&5
5273cat conftest.$ac_ext >&5
5274ac_cv_func_OpenClipboard=no
5275fi
5276rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5277fi
ad412770 5278echo "$as_me:$LINENO: result: $ac_cv_func_OpenClipboard" >&5
d2b03e6a
CW
5279echo "${ECHO_T}$ac_cv_func_OpenClipboard" >&6
5280
ad412770
CW
5281
5282
5283
d2b03e6a
CW
5284if test "$ac_cv_func_OpenClipboard" = yes; then
5285 WITH_WINDOWS_PROGRAMS_TRUE=
5286 WITH_WINDOWS_PROGRAMS_FALSE='#'
5287else
5288 WITH_WINDOWS_PROGRAMS_TRUE='#'
5289 WITH_WINDOWS_PROGRAMS_FALSE=
5290fi
5291
ad412770
CW
5292
5293
d2b03e6a
CW
5294if test "$ac_cv_lib_cygipc_semget" = yes; then
5295 WITH_CYGIPC_PROGRAMS_TRUE=
5296 WITH_CYGIPC_PROGRAMS_FALSE='#'
5297else
5298 WITH_CYGIPC_PROGRAMS_TRUE='#'
5299 WITH_CYGIPC_PROGRAMS_FALSE=
5300fi
5301
ad412770
CW
5302
5303 ac_config_files="$ac_config_files Makefile src/Makefile src/ascii/Makefile src/banner/Makefile src/cal/Makefile src/clip/Makefile src/col/Makefile src/conv/Makefile src/ddate/Makefile src/dump/Makefile src/ipc/Makefile src/last/Makefile src/lpr/Makefile src/mkshortcut/Makefile src/namei/Makefile src/realpath/Makefile src/cygstart/Makefile"
5304
d4a28ab0
CW
5305
5306cat >confcache <<\_ACEOF
5307# This file is a shell script that caches the results of configure
5308# tests run on this system so they can be shared between configure
5309# scripts and configure runs, see configure's option --config-cache.
5310# It is not useful on other systems. If it contains results you don't
5311# want to keep, you may remove or edit it.
5312#
5313# config.status only pays attention to the cache file if you give it
5314# the --recheck option to rerun configure.
5315#
ad412770 5316# `ac_cv_env_foo' variables (set or unset) will be overridden when
d4a28ab0
CW
5317# loading this file, other *unset* `ac_cv_foo' will be assigned the
5318# following values.
5319
5320_ACEOF
5321
5322# The following way of writing the cache mishandles newlines in values,
5323# but we know of no workaround that is simple, portable, and efficient.
5324# So, don't put newlines in cache variables' values.
5325# Ultrix sh set writes to stderr and can't be redirected directly,
5326# and sets the high bit in the cache file unless we assign to the vars.
5327{
5328 (set) 2>&1 |
5329 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5330 *ac_space=\ *)
5331 # `set' does not quote correctly, so add quotes (double-quote
5332 # substitution turns \\\\ into \\, and sed turns \\ into \).
5333 sed -n \
5334 "s/'/'\\\\''/g;
5335 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5336 ;;
5337 *)
5338 # `set' quotes correctly as required by POSIX, so do not add quotes.
5339 sed -n \
5340 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5341 ;;
5342 esac;
5343} |
5344 sed '
5345 t clear
5346 : clear
5347 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5348 t end
5349 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5350 : end' >>confcache
5351if cmp -s $cache_file confcache; then :; else
5352 if test -w $cache_file; then
5353 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5354 cat confcache >$cache_file
5355 else
5356 echo "not updating unwritable cache $cache_file"
5357 fi
5358fi
5359rm -f confcache
5360
5361test "x$prefix" = xNONE && prefix=$ac_default_prefix
5362# Let make expand exec_prefix.
5363test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5364
5365# VPATH may cause trouble with some makes, so we remove $(srcdir),
5366# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5367# trailing colons and then remove the whole line if VPATH becomes empty
5368# (actually we leave an empty line to preserve line numbers).
5369if test "x$srcdir" = x.; then
5370 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5371s/:*\$(srcdir):*/:/;
5372s/:*\${srcdir}:*/:/;
5373s/:*@srcdir@:*/:/;
5374s/^\([^=]*=[ ]*\):*/\1/;
5375s/:*$//;
5376s/^[^=]*=[ ]*$//;
5377}'
5378fi
5379
5380DEFS=-DHAVE_CONFIG_H
5381
13a7ef4c 5382if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
ad412770 5383 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13a7ef4c
CW
5384Usually this means the macro was only invoked conditionally." >&5
5385echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
5386Usually this means the macro was only invoked conditionally." >&2;}
5387 { (exit 1); exit 1; }; }
5388fi
5389if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
ad412770 5390 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13a7ef4c
CW
5391Usually this means the macro was only invoked conditionally." >&5
5392echo "$as_me: error: conditional \"AMDEP\" was never defined.
5393Usually this means the macro was only invoked conditionally." >&2;}
5394 { (exit 1); exit 1; }; }
5395fi
5396if test -z "${WITH_WINDOWS_PROGRAMS_TRUE}" && test -z "${WITH_WINDOWS_PROGRAMS_FALSE}"; then
ad412770 5397 { { echo "$as_me:$LINENO: error: conditional \"WITH_WINDOWS_PROGRAMS\" was never defined.
13a7ef4c
CW
5398Usually this means the macro was only invoked conditionally." >&5
5399echo "$as_me: error: conditional \"WITH_WINDOWS_PROGRAMS\" was never defined.
5400Usually this means the macro was only invoked conditionally." >&2;}
5401 { (exit 1); exit 1; }; }
5402fi
5403if test -z "${WITH_CYGIPC_PROGRAMS_TRUE}" && test -z "${WITH_CYGIPC_PROGRAMS_FALSE}"; then
ad412770 5404 { { echo "$as_me:$LINENO: error: conditional \"WITH_CYGIPC_PROGRAMS\" was never defined.
13a7ef4c
CW
5405Usually this means the macro was only invoked conditionally." >&5
5406echo "$as_me: error: conditional \"WITH_CYGIPC_PROGRAMS\" was never defined.
5407Usually this means the macro was only invoked conditionally." >&2;}
5408 { (exit 1); exit 1; }; }
5409fi
5410
d4a28ab0
CW
5411: ${CONFIG_STATUS=./config.status}
5412ac_clean_files_save=$ac_clean_files
5413ac_clean_files="$ac_clean_files $CONFIG_STATUS"
ad412770 5414{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
d4a28ab0
CW
5415echo "$as_me: creating $CONFIG_STATUS" >&6;}
5416cat >$CONFIG_STATUS <<_ACEOF
5417#! $SHELL
ad412770 5418# Generated by $as_me.
d4a28ab0
CW
5419# Run this file to recreate the current configuration.
5420# Compiler output produced by configure, useful for debugging
5421# configure, is in config.log if it exists.
5422
5423debug=false
5424SHELL=\${CONFIG_SHELL-$SHELL}
d4a28ab0
CW
5425_ACEOF
5426
5427cat >>$CONFIG_STATUS <<\_ACEOF
ad412770
CW
5428## --------------------- ##
5429## M4sh Initialization. ##
5430## --------------------- ##
5431
d4a28ab0
CW
5432# Be Bourne compatible
5433if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5434 emulate sh
5435 NULLCMD=:
ad412770
CW
5436 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5437 # is contrary to our usage. Disable this feature.
5438 alias -g '${1+"$@"}'='"$@"'
d4a28ab0
CW
5439elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5440 set -o posix
5441fi
5442
ad412770
CW
5443# NLS nuisances.
5444# Support unset when possible.
5445if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5446 as_unset=unset
5447else
5448 as_unset=false
5449fi
5450
5451(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
5452 { $as_unset LANG || test "${LANG+set}" != set; } ||
5453 { LANG=C; export LANG; }
5454(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
5455 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
5456 { LC_ALL=C; export LC_ALL; }
5457(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
5458 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
5459 { LC_TIME=C; export LC_TIME; }
5460(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
5461 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
5462 { LC_CTYPE=C; export LC_CTYPE; }
5463(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
5464 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
5465 { LANGUAGE=C; export LANGUAGE; }
5466(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
5467 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
5468 { LC_COLLATE=C; export LC_COLLATE; }
5469(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
5470 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
5471 { LC_NUMERIC=C; export LC_NUMERIC; }
5472(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
5473 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
5474 { LC_MESSAGES=C; export LC_MESSAGES; }
5475
5476
5477# Required to use basename.
5478if expr a : '\(a\)' >/dev/null 2>&1; then
5479 as_expr=expr
5480else
5481 as_expr=false
5482fi
5483
5484if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5485 as_basename=basename
5486else
5487 as_basename=false
5488fi
5489
5490
d4a28ab0 5491# Name of the executable.
ad412770
CW
5492as_me=`$as_basename "$0" ||
5493$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5494 X"$0" : 'X\(//\)$' \| \
5495 X"$0" : 'X\(/\)$' \| \
5496 . : '\(.\)' 2>/dev/null ||
5497echo X/"$0" |
5498 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5499 /^X\/\(\/\/\)$/{ s//\1/; q; }
5500 /^X\/\(\/\).*/{ s//\1/; q; }
5501 s/.*/./; q'`
5502
5503
5504# PATH needs CR, and LINENO needs CR and PATH.
5505# Avoid depending upon Character Ranges.
5506as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5507as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5508as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5509as_cr_digits='0123456789'
5510as_cr_alnum=$as_cr_Letters$as_cr_digits
5511
5512# The user is always right.
5513if test "${PATH_SEPARATOR+set}" != set; then
5514 echo "#! /bin/sh" >conftest.sh
5515 echo "exit 0" >>conftest.sh
5516 chmod +x conftest.sh
5517 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
5518 PATH_SEPARATOR=';'
5519 else
5520 PATH_SEPARATOR=:
5521 fi
5522 rm -f conftest.sh
5523fi
5524
5525
5526 as_lineno_1=$LINENO
5527 as_lineno_2=$LINENO
5528 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5529 test "x$as_lineno_1" != "x$as_lineno_2" &&
5530 test "x$as_lineno_3" = "x$as_lineno_2" || {
5531 # Find who we are. Look in the path if we contain no path at all
5532 # relative or not.
5533 case $0 in
5534 *[\\/]* ) as_myself=$0 ;;
5535 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536for as_dir in $PATH
5537do
5538 IFS=$as_save_IFS
5539 test -z "$as_dir" && as_dir=.
5540 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5541done
5542
5543 ;;
5544 esac
5545 # We did not find ourselves, most probably we were run as `sh COMMAND'
5546 # in which case we are not to be found in the path.
5547 if test "x$as_myself" = x; then
5548 as_myself=$0
5549 fi
5550 if test ! -f "$as_myself"; then
5551 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5552echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5553 { (exit 1); exit 1; }; }
5554 fi
5555 case $CONFIG_SHELL in
5556 '')
5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5559do
5560 IFS=$as_save_IFS
5561 test -z "$as_dir" && as_dir=.
5562 for as_base in sh bash ksh sh5; do
5563 case $as_dir in
5564 /*)
5565 if ("$as_dir/$as_base" -c '
5566 as_lineno_1=$LINENO
5567 as_lineno_2=$LINENO
5568 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5569 test "x$as_lineno_1" != "x$as_lineno_2" &&
5570 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5571 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5572 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5573 CONFIG_SHELL=$as_dir/$as_base
5574 export CONFIG_SHELL
5575 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5576 fi;;
5577 esac
5578 done
5579done
5580;;
5581 esac
5582
5583 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5584 # uniformly replaced by the line number. The first 'sed' inserts a
5585 # line-number line before each line; the second 'sed' does the real
5586 # work. The second script uses 'N' to pair each line-number line
5587 # with the numbered line, and appends trailing '-' during
5588 # substitution so that $LINENO is not a special case at line end.
5589 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5590 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5591 sed '=' <$as_myself |
5592 sed '
5593 N
5594 s,$,-,
5595 : loop
5596 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5597 t loop
5598 s,-$,,
5599 s,^['$as_cr_digits']*\n,,
5600 ' >$as_me.lineno &&
5601 chmod +x $as_me.lineno ||
5602 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5603echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5604 { (exit 1); exit 1; }; }
5605
5606 # Don't try to exec as it changes $[0], causing all sort of problems
5607 # (the dirname of $[0] is not the place where we might find the
5608 # original and so on. Autoconf is especially sensible to this).
5609 . ./$as_me.lineno
5610 # Exit status is that of the last command.
5611 exit
5612}
5613
5614
5615case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5616 *c*,-n*) ECHO_N= ECHO_C='
5617' ECHO_T=' ' ;;
5618 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5619 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5620esac
d4a28ab0
CW
5621
5622if expr a : '\(a\)' >/dev/null 2>&1; then
5623 as_expr=expr
5624else
5625 as_expr=false
5626fi
5627
5628rm -f conf$$ conf$$.exe conf$$.file
5629echo >conf$$.file
5630if ln -s conf$$.file conf$$ 2>/dev/null; then
5631 # We could just check for DJGPP; but this test a) works b) is more generic
5632 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5633 if test -f conf$$.exe; then
5634 # Don't use ln at all; we don't have any links
5635 as_ln_s='cp -p'
5636 else
5637 as_ln_s='ln -s'
5638 fi
5639elif ln conf$$.file conf$$ 2>/dev/null; then
5640 as_ln_s=ln
5641else
5642 as_ln_s='cp -p'
5643fi
5644rm -f conf$$ conf$$.exe conf$$.file
5645
ad412770
CW
5646if mkdir -p . 2>/dev/null; then
5647 as_mkdir_p=:
d4a28ab0 5648else
ad412770 5649 as_mkdir_p=false
d4a28ab0
CW
5650fi
5651
ad412770
CW
5652as_executable_p="test -f"
5653
5654# Sed expression to map a string onto a valid CPP name.
5655as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5656
5657# Sed expression to map a string onto a valid variable name.
5658as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5659
d4a28ab0
CW
5660
5661# IFS
5662# We need space, tab and new line, in precisely that order.
5663as_nl='
5664'
5665IFS=" $as_nl"
5666
5667# CDPATH.
ad412770 5668$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
d4a28ab0
CW
5669
5670exec 6>&1
5671
ad412770
CW
5672# Open the log real soon, to keep \$[0] and so on meaningful, and to
5673# report actual input values of CONFIG_FILES etc. instead of their
5674# values after options handling. Logging --version etc. is OK.
5675exec 5>>config.log
5676{
5677 echo
5678 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5679## Running $as_me. ##
5680_ASBOX
5681} >&5
5682cat >&5 <<_CSEOF
5683
5684This file was extended by cygutils $as_me 1.0.0, which was
5685generated by GNU Autoconf 2.53a. Invocation command line was
5686
5687 CONFIG_FILES = $CONFIG_FILES
5688 CONFIG_HEADERS = $CONFIG_HEADERS
5689 CONFIG_LINKS = $CONFIG_LINKS
5690 CONFIG_COMMANDS = $CONFIG_COMMANDS
5691 $ $0 $@
5692
5693_CSEOF
5694echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5695echo >&5
d4a28ab0
CW
5696_ACEOF
5697
5698# Files that config.status was made for.
5699if test -n "$ac_config_files"; then
5700 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5701fi
5702
5703if test -n "$ac_config_headers"; then
5704 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5705fi
5706
5707if test -n "$ac_config_links"; then
5708 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5709fi
5710
5711if test -n "$ac_config_commands"; then
5712 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5713fi
5714
ad412770 5715cat >>$CONFIG_STATUS <<\_ACEOF
d4a28ab0
CW
5716
5717ac_cs_usage="\
5718\`$as_me' instantiates files from templates according to the
5719current configuration.
5720
5721Usage: $0 [OPTIONS] [FILE]...
5722
5723 -h, --help print this help, then exit
5724 -V, --version print version number, then exit
5725 -d, --debug don't remove temporary files
5726 --recheck update $as_me by reconfiguring in the same conditions
5727 --file=FILE[:TEMPLATE]
5728 instantiate the configuration file FILE
5729 --header=FILE[:TEMPLATE]
5730 instantiate the configuration header FILE
5731
5732Configuration files:
5733$config_files
5734
5735Configuration headers:
5736$config_headers
5737
5738Configuration commands:
5739$config_commands
5740
5741Report bugs to <bug-autoconf@gnu.org>."
ad412770 5742_ACEOF
d4a28ab0 5743
ad412770 5744cat >>$CONFIG_STATUS <<_ACEOF
d4a28ab0 5745ac_cs_version="\\
a18613f3 5746cygutils config.status 1.0.0
ad412770 5747configured by $0, generated by GNU Autoconf 2.53a,
d4a28ab0
CW
5748 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5749
5750Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5751Free Software Foundation, Inc.
5752This config.status script is free software; the Free Software Foundation
5753gives unlimited permission to copy, distribute and modify it."
5754srcdir=$srcdir
5755INSTALL="$INSTALL"
ad412770 5756_ACEOF
d4a28ab0 5757
ad412770 5758cat >>$CONFIG_STATUS <<\_ACEOF
d4a28ab0
CW
5759# If no file are specified by the user, then we need to provide default
5760# value. By we need to know if files were specified by the user.
5761ac_need_defaults=:
5762while test $# != 0
5763do
5764 case $1 in
5765 --*=*)
5766 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5767 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
ad412770
CW
5768 ac_shift=:
5769 ;;
5770 -*)
5771 ac_option=$1
5772 ac_optarg=$2
5773 ac_shift=shift
d4a28ab0 5774 ;;
d4a28ab0
CW
5775 *) # This is not an option, so the user has probably given explicit
5776 # arguments.
ad412770 5777 ac_option=$1
d4a28ab0
CW
5778 ac_need_defaults=false;;
5779 esac
5780
ad412770 5781 case $ac_option in
d4a28ab0 5782 # Handling of the options.
ad412770
CW
5783_ACEOF
5784cat >>$CONFIG_STATUS <<_ACEOF
d4a28ab0
CW
5785 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5786 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5787 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
ad412770
CW
5788_ACEOF
5789cat >>$CONFIG_STATUS <<\_ACEOF
d4a28ab0
CW
5790 --version | --vers* | -V )
5791 echo "$ac_cs_version"; exit 0 ;;
5792 --he | --h)
5793 # Conflict between --help and --header
ad412770 5794 { { echo "$as_me:$LINENO: error: ambiguous option: $1
d4a28ab0
CW
5795Try \`$0 --help' for more information." >&5
5796echo "$as_me: error: ambiguous option: $1
5797Try \`$0 --help' for more information." >&2;}
5798 { (exit 1); exit 1; }; };;
5799 --help | --hel | -h )
5800 echo "$ac_cs_usage"; exit 0 ;;
5801 --debug | --d* | -d )
5802 debug=: ;;
5803 --file | --fil | --fi | --f )
ad412770
CW
5804 $ac_shift
5805 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
d4a28ab0
CW
5806 ac_need_defaults=false;;
5807 --header | --heade | --head | --hea )
ad412770
CW
5808 $ac_shift
5809 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
d4a28ab0
CW
5810 ac_need_defaults=false;;
5811
5812 # This is an error.
ad412770 5813 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
d4a28ab0
CW
5814Try \`$0 --help' for more information." >&5
5815echo "$as_me: error: unrecognized option: $1
5816Try \`$0 --help' for more information." >&2;}
5817 { (exit 1); exit 1; }; } ;;
5818
5819 *) ac_config_targets="$ac_config_targets $1" ;;
5820
5821 esac
5822 shift
5823done
5824
d4a28ab0 5825_ACEOF
d4a28ab0 5826
ad412770 5827cat >>$CONFIG_STATUS <<_ACEOF
d4a28ab0
CW
5828#
5829# INIT-COMMANDS section.
5830#
5831
13a7ef4c 5832AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d4a28ab0 5833
ad412770
CW
5834_ACEOF
5835
5836
d4a28ab0 5837
ad412770 5838cat >>$CONFIG_STATUS <<\_ACEOF
d4a28ab0
CW
5839for ac_config_target in $ac_config_targets
5840do
5841 case "$ac_config_target" in
5842 # Handling of arguments.
5843 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6cc111d5 5844 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6cc111d5
CW
5845 "src/ascii/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/ascii/Makefile" ;;
5846 "src/banner/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/banner/Makefile" ;;
5847 "src/cal/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cal/Makefile" ;;
5848 "src/clip/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/clip/Makefile" ;;
ad412770 5849 "src/col/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/col/Makefile" ;;
6cc111d5
CW
5850 "src/conv/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/conv/Makefile" ;;
5851 "src/ddate/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/ddate/Makefile" ;;
5852 "src/dump/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dump/Makefile" ;;
5853 "src/ipc/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/ipc/Makefile" ;;
5854 "src/last/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/last/Makefile" ;;
5855 "src/lpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lpr/Makefile" ;;
5856 "src/mkshortcut/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mkshortcut/Makefile" ;;
5857 "src/namei/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/namei/Makefile" ;;
5858 "src/realpath/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/realpath/Makefile" ;;
13a7ef4c
CW
5859 "src/cygstart/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cygstart/Makefile" ;;
5860 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d4a28ab0 5861 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
ad412770 5862 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
d4a28ab0
CW
5863echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5864 { (exit 1); exit 1; }; };;
5865 esac
5866done
5867
5868# If the user did not use the arguments to specify the items to instantiate,
5869# then the envvar interface is used. Set only those that are not.
5870# We use the long form for the default assignment because of an extremely
5871# bizarre bug on SunOS 4.1.3.
5872if $ac_need_defaults; then
5873 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5874 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5875 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5876fi
5877
5878# Create a temporary directory, and hook for its removal unless debugging.
5879$debug ||
5880{
5881 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5882 trap '{ (exit 1); exit 1; }' 1 2 13 15
5883}
5884
5885# Create a (secure) tmp directory for tmp files.
5886: ${TMPDIR=/tmp}
5887{
5888 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5889 test -n "$tmp" && test -d "$tmp"
5890} ||
5891{
5892 tmp=$TMPDIR/cs$$-$RANDOM
5893 (umask 077 && mkdir $tmp)
5894} ||
5895{
5896 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5897 { (exit 1); exit 1; }
5898}
5899
ad412770 5900_ACEOF
d4a28ab0 5901
ad412770 5902cat >>$CONFIG_STATUS <<_ACEOF
d4a28ab0
CW
5903
5904#
5905# CONFIG_FILES section.
5906#
5907
5908# No need to generate the scripts if there are no CONFIG_FILES.
5909# This happens for instance when ./config.status config.h
5910if test -n "\$CONFIG_FILES"; then
5911 # Protect against being on the right side of a sed subst in config.status.
5912 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5913 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5914s,@SHELL@,$SHELL,;t t
ad412770
CW
5915s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5916s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5917s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5918s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5919s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5920s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
d4a28ab0
CW
5921s,@exec_prefix@,$exec_prefix,;t t
5922s,@prefix@,$prefix,;t t
5923s,@program_transform_name@,$program_transform_name,;t t
5924s,@bindir@,$bindir,;t t
5925s,@sbindir@,$sbindir,;t t
5926s,@libexecdir@,$libexecdir,;t t
5927s,@datadir@,$datadir,;t t
5928s,@sysconfdir@,$sysconfdir,;t t
5929s,@sharedstatedir@,$sharedstatedir,;t t
5930s,@localstatedir@,$localstatedir,;t t
5931s,@libdir@,$libdir,;t t
5932s,@includedir@,$includedir,;t t
5933s,@oldincludedir@,$oldincludedir,;t t
5934s,@infodir@,$infodir,;t t
5935s,@mandir@,$mandir,;t t
d4a28ab0
CW
5936s,@build_alias@,$build_alias,;t t
5937s,@host_alias@,$host_alias,;t t
5938s,@target_alias@,$target_alias,;t t
ad412770 5939s,@DEFS@,$DEFS,;t t
d4a28ab0
CW
5940s,@ECHO_C@,$ECHO_C,;t t
5941s,@ECHO_N@,$ECHO_N,;t t
5942s,@ECHO_T@,$ECHO_T,;t t
d4a28ab0
CW
5943s,@LIBS@,$LIBS,;t t
5944s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5945s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5946s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5947s,@PACKAGE@,$PACKAGE,;t t
5948s,@VERSION@,$VERSION,;t t
d4a28ab0
CW
5949s,@ACLOCAL@,$ACLOCAL,;t t
5950s,@AUTOCONF@,$AUTOCONF,;t t
5951s,@AUTOMAKE@,$AUTOMAKE,;t t
5952s,@AUTOHEADER@,$AUTOHEADER,;t t
5953s,@MAKEINFO@,$MAKEINFO,;t t
5954s,@AMTAR@,$AMTAR,;t t
5955s,@install_sh@,$install_sh,;t t
13a7ef4c
CW
5956s,@STRIP@,$STRIP,;t t
5957s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
d4a28ab0
CW
5958s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
5959s,@AWK@,$AWK,;t t
5960s,@SET_MAKE@,$SET_MAKE,;t t
d4a28ab0
CW
5961s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
5962s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
5963s,@MAINT@,$MAINT,;t t
5964s,@CC@,$CC,;t t
5965s,@CFLAGS@,$CFLAGS,;t t
5966s,@LDFLAGS@,$LDFLAGS,;t t
5967s,@CPPFLAGS@,$CPPFLAGS,;t t
5968s,@ac_ct_CC@,$ac_ct_CC,;t t
13a7ef4c
CW
5969s,@EXEEXT@,$EXEEXT,;t t
5970s,@OBJEXT@,$OBJEXT,;t t
5971s,@DEPDIR@,$DEPDIR,;t t
d4a28ab0
CW
5972s,@am__include@,$am__include,;t t
5973s,@am__quote@,$am__quote,;t t
13a7ef4c
CW
5974s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
5975s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
5976s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
d4a28ab0
CW
5977s,@CCDEPMODE@,$CCDEPMODE,;t t
5978s,@CPP@,$CPP,;t t
5979s,@LIBOBJS@,$LIBOBJS,;t t
d2b03e6a
CW
5980s,@WITH_WINDOWS_PROGRAMS_TRUE@,$WITH_WINDOWS_PROGRAMS_TRUE,;t t
5981s,@WITH_WINDOWS_PROGRAMS_FALSE@,$WITH_WINDOWS_PROGRAMS_FALSE,;t t
5982s,@WITH_CYGIPC_PROGRAMS_TRUE@,$WITH_CYGIPC_PROGRAMS_TRUE,;t t
5983s,@WITH_CYGIPC_PROGRAMS_FALSE@,$WITH_CYGIPC_PROGRAMS_FALSE,;t t
d4a28ab0
CW
5984CEOF
5985
ad412770 5986_ACEOF
d4a28ab0 5987
ad412770 5988 cat >>$CONFIG_STATUS <<\_ACEOF
d4a28ab0
CW
5989 # Split the substitutions into bite-sized pieces for seds with
5990 # small command number limits, like on Digital OSF/1 and HP-UX.
5991 ac_max_sed_lines=48
5992 ac_sed_frag=1 # Number of current file.
5993 ac_beg=1 # First line for current file.
5994 ac_end=$ac_max_sed_lines # Line after last line for current file.
5995 ac_more_lines=:
5996 ac_sed_cmds=
5997 while $ac_more_lines; do
5998 if test $ac_beg -gt 1; then
5999 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6000 else
6001 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6002 fi
6003 if test ! -s $tmp/subs.frag; then
6004 ac_more_lines=false
6005 else
6006 # The purpose of the label and of the branching condition is to
6007 # speed up the sed processing (if there are no `@' at all, there
6008 # is no need to browse any of the substitutions).
6009 # These are the two extra sed commands mentioned above.
6010 (echo ':t
6011 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6012 if test -z "$ac_sed_cmds"; then
6013 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6014 else
6015 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6016 fi
6017 ac_sed_frag=`expr $ac_sed_frag + 1`
6018 ac_beg=$ac_end
6019 ac_end=`expr $ac_end + $ac_max_sed_lines`
6020 fi
6021 done
6022 if test -z "$ac_sed_cmds"; then
6023 ac_sed_cmds=cat
6024 fi
6025fi # test -n "$CONFIG_FILES"
6026
ad412770
CW
6027_ACEOF
6028cat >>$CONFIG_STATUS <<\_ACEOF
d4a28ab0
CW
6029for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6030 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6031 case $ac_file in
6032 - | *:- | *:-:* ) # input from stdin
6033 cat >$tmp/stdin
6034 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6035 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6036 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6037 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6038 * ) ac_file_in=$ac_file.in ;;
6039 esac
6040
6041 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
ad412770
CW
6042 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6043$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
d4a28ab0
CW
6044 X"$ac_file" : 'X\(//\)[^/]' \| \
6045 X"$ac_file" : 'X\(//\)$' \| \
6046 X"$ac_file" : 'X\(/\)' \| \
6047 . : '\(.\)' 2>/dev/null ||
6048echo X"$ac_file" |
6049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6050 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6051 /^X\(\/\/\)$/{ s//\1/; q; }
6052 /^X\(\/\).*/{ s//\1/; q; }
6053 s/.*/./; q'`
ad412770
CW
6054 { if $as_mkdir_p; then
6055 mkdir -p "$ac_dir"
d4a28ab0 6056 else
ad412770
CW
6057 as_dir="$ac_dir"
6058 as_dirs=
6059 while test ! -d "$as_dir"; do
6060 as_dirs="$as_dir $as_dirs"
6061 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6062$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6063 X"$as_dir" : 'X\(//\)[^/]' \| \
6064 X"$as_dir" : 'X\(//\)$' \| \
6065 X"$as_dir" : 'X\(/\)' \| \
6066 . : '\(.\)' 2>/dev/null ||
6067echo X"$as_dir" |
6068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6069 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6070 /^X\(\/\/\)$/{ s//\1/; q; }
6071 /^X\(\/\).*/{ s//\1/; q; }
6072 s/.*/./; q'`
6073 done
6074 test ! -n "$as_dirs" || mkdir $as_dirs
6075 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6076echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6077 { (exit 1); exit 1; }; }; }
d4a28ab0 6078
ad412770
CW
6079 ac_builddir=.
6080
6081if test "$ac_dir" != .; then
6082 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6083 # A "../" for each directory in $ac_dir_suffix.
6084 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6085else
6086 ac_dir_suffix= ac_top_builddir=
6087fi
6088
6089case $srcdir in
6090 .) # No --srcdir option. We are building in place.
6091 ac_srcdir=.
6092 if test -z "$ac_top_builddir"; then
6093 ac_top_srcdir=.
6094 else
6095 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6096 fi ;;
6097 [\\/]* | ?:[\\/]* ) # Absolute path.
6098 ac_srcdir=$srcdir$ac_dir_suffix;
6099 ac_top_srcdir=$srcdir ;;
d4a28ab0 6100 *) # Relative path.
ad412770
CW
6101 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6102 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6103esac
6104# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6105# absolute.
6106ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6107ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6108ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6109ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6110
d4a28ab0
CW
6111
6112 case $INSTALL in
6113 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
ad412770 6114 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
d4a28ab0
CW
6115 esac
6116
6117 if test x"$ac_file" != x-; then
ad412770 6118 { echo "$as_me:$LINENO: creating $ac_file" >&5
d4a28ab0
CW
6119echo "$as_me: creating $ac_file" >&6;}
6120 rm -f "$ac_file"
6121 fi
6122 # Let's still pretend it is `configure' which instantiates (i.e., don't
6123 # use $as_me), people would be surprised to read:
ad412770
CW
6124 # /* config.h. Generated by config.status. */
6125 if test x"$ac_file" = x-; then
6126 configure_input=
6127 else
6128 configure_input="$ac_file. "
6129 fi
6130 configure_input=$configure_input"Generated from `echo $ac_file_in |
6131 sed 's,.*/,,'` by configure."
d4a28ab0
CW
6132
6133 # First look for the input files in the build tree, otherwise in the
6134 # src tree.
6135 ac_file_inputs=`IFS=:
6136 for f in $ac_file_in; do
6137 case $f in
6138 -) echo $tmp/stdin ;;
6139 [\\/$]*)
6140 # Absolute (can't be DOS-style, as IFS=:)
ad412770 6141 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
d4a28ab0
CW
6142echo "$as_me: error: cannot find input file: $f" >&2;}
6143 { (exit 1); exit 1; }; }
6144 echo $f;;
6145 *) # Relative
6146 if test -f "$f"; then
6147 # Build tree
6148 echo $f
6149 elif test -f "$srcdir/$f"; then
6150 # Source tree
6151 echo $srcdir/$f
6152 else
6153 # /dev/null tree
ad412770 6154 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
d4a28ab0
CW
6155echo "$as_me: error: cannot find input file: $f" >&2;}
6156 { (exit 1); exit 1; }; }
6157 fi;;
6158 esac
6159 done` || { (exit 1); exit 1; }
ad412770
CW
6160_ACEOF
6161cat >>$CONFIG_STATUS <<_ACEOF
d4a28ab0
CW
6162 sed "$ac_vpsub
6163$extrasub
ad412770
CW
6164_ACEOF
6165cat >>$CONFIG_STATUS <<\_ACEOF
d4a28ab0
CW
6166:t
6167/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6168s,@configure_input@,$configure_input,;t t
6169s,@srcdir@,$ac_srcdir,;t t
ad412770 6170s,@abs_srcdir@,$ac_abs_srcdir,;t t
d4a28ab0 6171s,@top_srcdir@,$ac_top_srcdir,;t t
ad412770
CW
6172s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6173s,@builddir@,$ac_builddir,;t t
6174s,@abs_builddir@,$ac_abs_builddir,;t t
6175s,@top_builddir@,$ac_top_builddir,;t t
6176s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
d4a28ab0
CW
6177s,@INSTALL@,$ac_INSTALL,;t t
6178" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6179 rm -f $tmp/stdin
6180 if test x"$ac_file" != x-; then
6181 mv $tmp/out $ac_file
6182 else
6183 cat $tmp/out
6184 rm -f $tmp/out
6185 fi
6186
6187done
ad412770
CW
6188_ACEOF
6189cat >>$CONFIG_STATUS <<\_ACEOF
d4a28ab0
CW
6190
6191#
6192# CONFIG_HEADER section.
6193#
6194
6195# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6196# NAME is the cpp macro being defined and VALUE is the value it is being given.
6197#
6198# ac_d sets the value in "#define NAME VALUE" lines.
6199ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6200ac_dB='[ ].*$,\1#\2'
6201ac_dC=' '
6202ac_dD=',;t'
6203# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6204ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6205ac_uB='$,\1#\2define\3'
6206ac_uC=' '
6207ac_uD=',;t'
6208
6209for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6210 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6211 case $ac_file in
6212 - | *:- | *:-:* ) # input from stdin
6213 cat >$tmp/stdin
6214 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6215 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6216 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6217 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6218 * ) ac_file_in=$ac_file.in ;;
6219 esac
6220
ad412770 6221 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
d4a28ab0
CW
6222echo "$as_me: creating $ac_file" >&6;}
6223
6224 # First look for the input files in the build tree, otherwise in the
6225 # src tree.
6226 ac_file_inputs=`IFS=:
6227 for f in $ac_file_in; do
6228 case $f in
6229 -) echo $tmp/stdin ;;
6230 [\\/$]*)
6231 # Absolute (can't be DOS-style, as IFS=:)
ad412770 6232 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
d4a28ab0
CW
6233echo "$as_me: error: cannot find input file: $f" >&2;}
6234 { (exit 1); exit 1; }; }
6235 echo $f;;
6236 *) # Relative
6237 if test -f "$f"; then
6238 # Build tree
6239 echo $f
6240 elif test -f "$srcdir/$f"; then
6241 # Source tree
6242 echo $srcdir/$f
6243 else
6244 # /dev/null tree
ad412770 6245 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
d4a28ab0
CW
6246echo "$as_me: error: cannot find input file: $f" >&2;}
6247 { (exit 1); exit 1; }; }
6248 fi;;
6249 esac
6250 done` || { (exit 1); exit 1; }
6251 # Remove the trailing spaces.
6252 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6253
ad412770 6254_ACEOF
d4a28ab0
CW
6255
6256# Transform confdefs.h into two sed scripts, `conftest.defines' and
6257# `conftest.undefs', that substitutes the proper values into
6258# config.h.in to produce config.h. The first handles `#define'
6259# templates, and the second `#undef' templates.
6260# And first: Protect against being on the right side of a sed subst in
6261# config.status. Protect against being in an unquoted here document
6262# in config.status.
6263rm -f conftest.defines conftest.undefs
6264# Using a here document instead of a string reduces the quoting nightmare.
6265# Putting comments in sed scripts is not portable.
6266#
6267# `end' is used to avoid that the second main sed command (meant for
6268# 0-ary CPP macros) applies to n-ary macro definitions.
6269# See the Autoconf documentation for `clear'.
ad412770 6270cat >confdef2sed.sed <<\_ACEOF
d4a28ab0
CW
6271s/[\\&,]/\\&/g
6272s,[\\$`],\\&,g
6273t clear
6274: clear
ad412770 6275s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
d4a28ab0
CW
6276t end
6277s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6278: end
ad412770 6279_ACEOF
d4a28ab0
CW
6280# If some macros were called several times there might be several times
6281# the same #defines, which is useless. Nevertheless, we may not want to
6282# sort them, since we want the *last* AC-DEFINE to be honored.
6283uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6284sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6285rm -f confdef2sed.sed
6286
6287# This sed command replaces #undef with comments. This is necessary, for
6288# example, in the case of _POSIX_SOURCE, which is predefined and required
6289# on some systems where configure will not decide to define it.
ad412770 6290cat >>conftest.undefs <<\_ACEOF
d4a28ab0 6291s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
ad412770 6292_ACEOF
d4a28ab0
CW
6293
6294# Break up conftest.defines because some shells have a limit on the size
6295# of here documents, and old seds have small limits too (100 cmds).
6296echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6297echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6298echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6299echo ' :' >>$CONFIG_STATUS
6300rm -f conftest.tail
6301while grep . conftest.defines >/dev/null
6302do
6303 # Write a limited-size here document to $tmp/defines.sed.
6304 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6305 # Speed up: don't consider the non `#define' lines.
6306 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6307 # Work around the forget-to-reset-the-flag bug.
6308 echo 't clr' >>$CONFIG_STATUS
6309 echo ': clr' >>$CONFIG_STATUS
6310 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6311 echo 'CEOF
6312 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6313 rm -f $tmp/in
6314 mv $tmp/out $tmp/in
6315' >>$CONFIG_STATUS
6316 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6317 rm -f conftest.defines
6318 mv conftest.tail conftest.defines
6319done
6320rm -f conftest.defines
6321echo ' fi # egrep' >>$CONFIG_STATUS
6322echo >>$CONFIG_STATUS
6323
6324# Break up conftest.undefs because some shells have a limit on the size
6325# of here documents, and old seds have small limits too (100 cmds).
6326echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6327rm -f conftest.tail
6328while grep . conftest.undefs >/dev/null
6329do
6330 # Write a limited-size here document to $tmp/undefs.sed.
6331 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6332 # Speed up: don't consider the non `#undef'
6333 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6334 # Work around the forget-to-reset-the-flag bug.
6335 echo 't clr' >>$CONFIG_STATUS
6336 echo ': clr' >>$CONFIG_STATUS
6337 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6338 echo 'CEOF
6339 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6340 rm -f $tmp/in
6341 mv $tmp/out $tmp/in
6342' >>$CONFIG_STATUS
6343 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6344 rm -f conftest.undefs
6345 mv conftest.tail conftest.undefs
6346done
6347rm -f conftest.undefs
6348
ad412770 6349cat >>$CONFIG_STATUS <<\_ACEOF
d4a28ab0
CW
6350 # Let's still pretend it is `configure' which instantiates (i.e., don't
6351 # use $as_me), people would be surprised to read:
ad412770 6352 # /* config.h. Generated by config.status. */
d4a28ab0 6353 if test x"$ac_file" = x-; then
ad412770 6354 echo "/* Generated by configure. */" >$tmp/config.h
d4a28ab0 6355 else
ad412770 6356 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
d4a28ab0
CW
6357 fi
6358 cat $tmp/in >>$tmp/config.h
6359 rm -f $tmp/in
6360 if test x"$ac_file" != x-; then
6361 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
ad412770 6362 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
d4a28ab0
CW
6363echo "$as_me: $ac_file is unchanged" >&6;}
6364 else
ad412770
CW
6365 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6366$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
d4a28ab0
CW
6367 X"$ac_file" : 'X\(//\)[^/]' \| \
6368 X"$ac_file" : 'X\(//\)$' \| \
6369 X"$ac_file" : 'X\(/\)' \| \
6370 . : '\(.\)' 2>/dev/null ||
6371echo X"$ac_file" |
6372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6373 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6374 /^X\(\/\/\)$/{ s//\1/; q; }
6375 /^X\(\/\).*/{ s//\1/; q; }
6376 s/.*/./; q'`
ad412770
CW
6377 { if $as_mkdir_p; then
6378 mkdir -p "$ac_dir"
6379 else
6380 as_dir="$ac_dir"
6381 as_dirs=
6382 while test ! -d "$as_dir"; do
6383 as_dirs="$as_dir $as_dirs"
6384 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6385$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6386 X"$as_dir" : 'X\(//\)[^/]' \| \
6387 X"$as_dir" : 'X\(//\)$' \| \
6388 X"$as_dir" : 'X\(/\)' \| \
6389 . : '\(.\)' 2>/dev/null ||
6390echo X"$as_dir" |
6391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6392 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6393 /^X\(\/\/\)$/{ s//\1/; q; }
6394 /^X\(\/\).*/{ s//\1/; q; }
6395 s/.*/./; q'`
6396 done
6397 test ! -n "$as_dirs" || mkdir $as_dirs
6398 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6399echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6400 { (exit 1); exit 1; }; }; }
d4a28ab0 6401
d4a28ab0
CW
6402 rm -f $ac_file
6403 mv $tmp/config.h $ac_file
6404 fi
6405 else
6406 cat $tmp/config.h
6407 rm -f $tmp/config.h
6408 fi
6409 # Run the commands associated with the file.
6410 case $ac_file in
6411 config.h ) # update the timestamp
13a7ef4c 6412echo 'timestamp for config.h' >"./stamp-h1"
d4a28ab0
CW
6413 ;;
6414 esac
6415done
ad412770
CW
6416_ACEOF
6417cat >>$CONFIG_STATUS <<\_ACEOF
d4a28ab0
CW
6418
6419#
6420# CONFIG_COMMANDS section.
6421#
6422for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6423 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6424 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
ad412770
CW
6425 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6426$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6427 X"$ac_dest" : 'X\(//\)[^/]' \| \
6428 X"$ac_dest" : 'X\(//\)$' \| \
6429 X"$ac_dest" : 'X\(/\)' \| \
6430 . : '\(.\)' 2>/dev/null ||
6431echo X"$ac_dest" |
6432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6433 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6434 /^X\(\/\/\)$/{ s//\1/; q; }
6435 /^X\(\/\).*/{ s//\1/; q; }
6436 s/.*/./; q'`
6437 ac_builddir=.
6438
6439if test "$ac_dir" != .; then
6440 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6441 # A "../" for each directory in $ac_dir_suffix.
6442 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6443else
6444 ac_dir_suffix= ac_top_builddir=
6445fi
6446
6447case $srcdir in
6448 .) # No --srcdir option. We are building in place.
6449 ac_srcdir=.
6450 if test -z "$ac_top_builddir"; then
6451 ac_top_srcdir=.
6452 else
6453 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6454 fi ;;
6455 [\\/]* | ?:[\\/]* ) # Absolute path.
6456 ac_srcdir=$srcdir$ac_dir_suffix;
6457 ac_top_srcdir=$srcdir ;;
6458 *) # Relative path.
6459 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6460 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6461esac
6462# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6463# absolute.
6464ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6465ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6466ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6467ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6468
d4a28ab0 6469
ad412770
CW
6470 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6471echo "$as_me: executing $ac_dest commands" >&6;}
d4a28ab0 6472 case $ac_dest in
13a7ef4c
CW
6473 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6474 # Strip MF so we end up with the name of the file.
6475 mf=`echo "$mf" | sed -e 's/:.*$//'`
6476 if (sed 1q $mf | fgrep 'generated by automake') > /dev/null 2>&1; then
ad412770
CW
6477 dirpart=`(dirname "$mf") 2>/dev/null ||
6478$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13a7ef4c
CW
6479 X"$mf" : 'X\(//\)[^/]' \| \
6480 X"$mf" : 'X\(//\)$' \| \
6481 X"$mf" : 'X\(/\)' \| \
6482 . : '\(.\)' 2>/dev/null ||
6483echo X"$mf" |
6484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6485 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6486 /^X\(\/\/\)$/{ s//\1/; q; }
6487 /^X\(\/\).*/{ s//\1/; q; }
6488 s/.*/./; q'`
6489 else
6490 continue
6491 fi
d4a28ab0
CW
6492 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
6493 # Extract the definition of DEP_FILES from the Makefile without
6494 # running `make'.
6495 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
6496 test -z "$DEPDIR" && continue
6497 # When using ansi2knr, U may be empty or an underscore; expand it
6498 U=`sed -n -e '/^U = / s///p' < "$mf"`
6499 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
6500 # We invoke sed twice because it is the simplest approach to
6501 # changing $(DEPDIR) to its actual value in the expansion.
6502 for file in `sed -n -e '
6503 /^DEP_FILES = .*\\\\$/ {
6504 s/^DEP_FILES = //
6505 :loop
6506 s/\\\\$//
6507 p
6508 n
6509 /\\\\$/ b loop
6510 p
6511 }
6512 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
6513 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6514 # Make sure the directory exists.
6515 test -f "$dirpart/$file" && continue
ad412770
CW
6516 fdir=`(dirname "$file") 2>/dev/null ||
6517$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13a7ef4c
CW
6518 X"$file" : 'X\(//\)[^/]' \| \
6519 X"$file" : 'X\(//\)$' \| \
6520 X"$file" : 'X\(/\)' \| \
6521 . : '\(.\)' 2>/dev/null ||
6522echo X"$file" |
6523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6524 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6525 /^X\(\/\/\)$/{ s//\1/; q; }
6526 /^X\(\/\).*/{ s//\1/; q; }
6527 s/.*/./; q'`
ad412770
CW
6528 { if $as_mkdir_p; then
6529 mkdir -p $dirpart/$fdir
6530 else
6531 as_dir=$dirpart/$fdir
6532 as_dirs=
6533 while test ! -d "$as_dir"; do
6534 as_dirs="$as_dir $as_dirs"
6535 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6536$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6537 X"$as_dir" : 'X\(//\)[^/]' \| \
6538 X"$as_dir" : 'X\(//\)$' \| \
6539 X"$as_dir" : 'X\(/\)' \| \
6540 . : '\(.\)' 2>/dev/null ||
6541echo X"$as_dir" |
6542 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6543 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6544 /^X\(\/\/\)$/{ s//\1/; q; }
6545 /^X\(\/\).*/{ s//\1/; q; }
6546 s/.*/./; q'`
6547 done
6548 test ! -n "$as_dirs" || mkdir $as_dirs
6549 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
6550echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
6551 { (exit 1); exit 1; }; }; }
13a7ef4c 6552
d4a28ab0
CW
6553 # echo "creating $dirpart/$file"
6554 echo '# dummy' > "$dirpart/$file"
6555 done
6556done
6557 ;;
6558 esac
6559done
ad412770 6560_ACEOF
d4a28ab0 6561
ad412770 6562cat >>$CONFIG_STATUS <<\_ACEOF
d4a28ab0
CW
6563
6564{ (exit 0); exit 0; }
ad412770 6565_ACEOF
d4a28ab0
CW
6566chmod +x $CONFIG_STATUS
6567ac_clean_files=$ac_clean_files_save
6568
ad412770 6569
d4a28ab0
CW
6570# configure is writing to config.log, and then calls config.status.
6571# config.status does its own redirection, appending to config.log.
6572# Unfortunately, on DOS this fails, as config.log is still kept open
6573# by configure, so config.status won't be able to write to it; its
6574# output is simply discarded. So we exec the FD to /dev/null,
6575# effectively closing config.log, so it can be properly (re)opened and
6576# appended to by config.status. When coming back to configure, we
6577# need to make the FD available again.
6578if test "$no_create" != yes; then
6579 ac_cs_success=:
6580 exec 5>/dev/null
6581 $SHELL $CONFIG_STATUS || ac_cs_success=false
6582 exec 5>>config.log
6583 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6584 # would make configure fail if this is the last instruction.
6585 $ac_cs_success || { (exit 1); exit 1; }
6586fi
6587
This page took 0.682 seconds and 5 git commands to generate.