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