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