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