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