]> git.wh0rd.org - dump.git/blame - configure
Update to the latest RedHat RPM spec file.
[dump.git] / configure
CommitLineData
1227625a
SP
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
ddd2ef55 4# Generated automatically using autoconf version 2.13
1227625a
SP
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
1227625a 14ac_help="$ac_help
d8574d45 15 --enable-debug include debugging code"
1227625a 16ac_help="$ac_help
d8574d45 17 --enable-static link dump and restore statically"
1227625a 18ac_help="$ac_help
d8574d45 19 --enable-rmt compile and install rmt"
2ed89fda 20ac_help="$ac_help
d8574d45 21 --enable-kerberos compile kerberos extensions"
c38e5b6a 22ac_help="$ac_help
d8574d45 23 --enable-readline enable readline support in restore"
1227625a 24ac_help="$ac_help
d8574d45 25 --enable-oldstylefscript enable old style F script (no arguments)"
1227625a 26ac_help="$ac_help
d8574d45 27 --with-cc=COMPILER select compiler to use"
1227625a 28ac_help="$ac_help
d8574d45 29 --with-linker=LINKER select linker to use"
1227625a 30ac_help="$ac_help
d8574d45 31 --with-ccopts=CCOPTS select compiler command line options"
1227625a 32ac_help="$ac_help
d8574d45 33 --with-ldopts=LDOPTS select linker command line options"
1227625a 34ac_help="$ac_help
d8574d45 35 --with-binowner=USER select owner for binaries"
1227625a 36ac_help="$ac_help
d8574d45 37 --with-bingrp=GROUP select group for binaries"
1227625a 38ac_help="$ac_help
d8574d45 39 --with-binmode=MODE select mode for binaries"
1227625a 40ac_help="$ac_help
d8574d45 41 --with-manowner=USER select owner for manual pages"
1227625a 42ac_help="$ac_help
d8574d45 43 --with-mangrp=GROUP select group for manual pages"
8d4197bb 44ac_help="$ac_help
d8574d45
SP
45 --with-manmode=MODE select mode for manual pages"
46ac_help="$ac_help
47 --with-dumpdatespath=PATH select path for dumpdates file"
1227625a
SP
48
49# Initialize some variables set by options.
50# The variables have the same names as the options, with
51# dashes changed to underlines.
52build=NONE
53cache_file=./config.cache
54exec_prefix=NONE
55host=NONE
56no_create=
57nonopt=NONE
58no_recursion=
59prefix=NONE
60program_prefix=NONE
61program_suffix=NONE
62program_transform_name=s,x,x,
63silent=
64site=
65srcdir=
66target=NONE
67verbose=
68x_includes=NONE
69x_libraries=NONE
70bindir='${exec_prefix}/bin'
71sbindir='${exec_prefix}/sbin'
72libexecdir='${exec_prefix}/libexec'
73datadir='${prefix}/share'
74sysconfdir='${prefix}/etc'
75sharedstatedir='${prefix}/com'
76localstatedir='${prefix}/var'
77libdir='${exec_prefix}/lib'
78includedir='${prefix}/include'
79oldincludedir='/usr/include'
80infodir='${prefix}/info'
81mandir='${prefix}/man'
82
83# Initialize some other variables.
84subdirs=
85MFLAGS= MAKEFLAGS=
ddd2ef55 86SHELL=${CONFIG_SHELL-/bin/sh}
1227625a
SP
87# Maximum number of lines to put in a shell here document.
88ac_max_here_lines=12
89
90ac_prev=
91for ac_option
92do
93
94 # If the previous option needs an argument, assign it.
95 if test -n "$ac_prev"; then
96 eval "$ac_prev=\$ac_option"
97 ac_prev=
98 continue
99 fi
100
101 case "$ac_option" in
102 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
103 *) ac_optarg= ;;
104 esac
105
106 # Accept the important Cygnus configure options, so we can diagnose typos.
107
108 case "$ac_option" in
109
110 -bindir | --bindir | --bindi | --bind | --bin | --bi)
111 ac_prev=bindir ;;
112 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
113 bindir="$ac_optarg" ;;
114
115 -build | --build | --buil | --bui | --bu)
116 ac_prev=build ;;
117 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
118 build="$ac_optarg" ;;
119
120 -cache-file | --cache-file | --cache-fil | --cache-fi \
121 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
122 ac_prev=cache_file ;;
123 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
124 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
125 cache_file="$ac_optarg" ;;
126
127 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
128 ac_prev=datadir ;;
129 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
130 | --da=*)
131 datadir="$ac_optarg" ;;
132
133 -disable-* | --disable-*)
134 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
135 # Reject names that are not valid shell variable names.
136 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
137 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
138 fi
139 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
140 eval "enable_${ac_feature}=no" ;;
141
142 -enable-* | --enable-*)
143 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
144 # Reject names that are not valid shell variable names.
145 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
146 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
147 fi
148 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
149 case "$ac_option" in
150 *=*) ;;
151 *) ac_optarg=yes ;;
152 esac
153 eval "enable_${ac_feature}='$ac_optarg'" ;;
154
155 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
156 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
157 | --exec | --exe | --ex)
158 ac_prev=exec_prefix ;;
159 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
160 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
161 | --exec=* | --exe=* | --ex=*)
162 exec_prefix="$ac_optarg" ;;
163
164 -gas | --gas | --ga | --g)
165 # Obsolete; use --with-gas.
166 with_gas=yes ;;
167
168 -help | --help | --hel | --he)
169 # Omit some internal or obsolete options to make the list less imposing.
170 # This message is too long to be a string in the A/UX 3.1 sh.
171 cat << EOF
172Usage: configure [options] [host]
173Options: [defaults in brackets after descriptions]
174Configuration:
175 --cache-file=FILE cache test results in FILE
176 --help print this message
177 --no-create do not create output files
178 --quiet, --silent do not print \`checking...' messages
179 --version print the version of autoconf that created configure
180Directory and file names:
181 --prefix=PREFIX install architecture-independent files in PREFIX
182 [$ac_default_prefix]
183 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
184 [same as prefix]
185 --bindir=DIR user executables in DIR [EPREFIX/bin]
186 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
187 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
188 --datadir=DIR read-only architecture-independent data in DIR
189 [PREFIX/share]
190 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
191 --sharedstatedir=DIR modifiable architecture-independent data in DIR
192 [PREFIX/com]
193 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
194 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
195 --includedir=DIR C header files in DIR [PREFIX/include]
196 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
197 --infodir=DIR info documentation in DIR [PREFIX/info]
198 --mandir=DIR man documentation in DIR [PREFIX/man]
199 --srcdir=DIR find the sources in DIR [configure dir or ..]
200 --program-prefix=PREFIX prepend PREFIX to installed program names
201 --program-suffix=SUFFIX append SUFFIX to installed program names
202 --program-transform-name=PROGRAM
203 run sed PROGRAM on installed program names
204EOF
205 cat << EOF
206Host type:
207 --build=BUILD configure for building on BUILD [BUILD=HOST]
208 --host=HOST configure for HOST [guessed]
209 --target=TARGET configure for TARGET [TARGET=HOST]
210Features and packages:
211 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
212 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
213 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
214 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
215 --x-includes=DIR X include files are in DIR
216 --x-libraries=DIR X library files are in DIR
217EOF
218 if test -n "$ac_help"; then
219 echo "--enable and --with options recognized:$ac_help"
220 fi
221 exit 0 ;;
222
223 -host | --host | --hos | --ho)
224 ac_prev=host ;;
225 -host=* | --host=* | --hos=* | --ho=*)
226 host="$ac_optarg" ;;
227
228 -includedir | --includedir | --includedi | --included | --include \
229 | --includ | --inclu | --incl | --inc)
230 ac_prev=includedir ;;
231 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
232 | --includ=* | --inclu=* | --incl=* | --inc=*)
233 includedir="$ac_optarg" ;;
234
235 -infodir | --infodir | --infodi | --infod | --info | --inf)
236 ac_prev=infodir ;;
237 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
238 infodir="$ac_optarg" ;;
239
240 -libdir | --libdir | --libdi | --libd)
241 ac_prev=libdir ;;
242 -libdir=* | --libdir=* | --libdi=* | --libd=*)
243 libdir="$ac_optarg" ;;
244
245 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
246 | --libexe | --libex | --libe)
247 ac_prev=libexecdir ;;
248 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
249 | --libexe=* | --libex=* | --libe=*)
250 libexecdir="$ac_optarg" ;;
251
252 -localstatedir | --localstatedir | --localstatedi | --localstated \
253 | --localstate | --localstat | --localsta | --localst \
254 | --locals | --local | --loca | --loc | --lo)
255 ac_prev=localstatedir ;;
256 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
257 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
258 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
259 localstatedir="$ac_optarg" ;;
260
261 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
262 ac_prev=mandir ;;
263 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
264 mandir="$ac_optarg" ;;
265
266 -nfp | --nfp | --nf)
267 # Obsolete; use --without-fp.
268 with_fp=no ;;
269
270 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
271 | --no-cr | --no-c)
272 no_create=yes ;;
273
274 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
275 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
276 no_recursion=yes ;;
277
278 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
279 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
280 | --oldin | --oldi | --old | --ol | --o)
281 ac_prev=oldincludedir ;;
282 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
283 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
284 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
285 oldincludedir="$ac_optarg" ;;
286
287 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
288 ac_prev=prefix ;;
289 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
290 prefix="$ac_optarg" ;;
291
292 -program-prefix | --program-prefix | --program-prefi | --program-pref \
293 | --program-pre | --program-pr | --program-p)
294 ac_prev=program_prefix ;;
295 -program-prefix=* | --program-prefix=* | --program-prefi=* \
296 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
297 program_prefix="$ac_optarg" ;;
298
299 -program-suffix | --program-suffix | --program-suffi | --program-suff \
300 | --program-suf | --program-su | --program-s)
301 ac_prev=program_suffix ;;
302 -program-suffix=* | --program-suffix=* | --program-suffi=* \
303 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
304 program_suffix="$ac_optarg" ;;
305
306 -program-transform-name | --program-transform-name \
307 | --program-transform-nam | --program-transform-na \
308 | --program-transform-n | --program-transform- \
309 | --program-transform | --program-transfor \
310 | --program-transfo | --program-transf \
311 | --program-trans | --program-tran \
312 | --progr-tra | --program-tr | --program-t)
313 ac_prev=program_transform_name ;;
314 -program-transform-name=* | --program-transform-name=* \
315 | --program-transform-nam=* | --program-transform-na=* \
316 | --program-transform-n=* | --program-transform-=* \
317 | --program-transform=* | --program-transfor=* \
318 | --program-transfo=* | --program-transf=* \
319 | --program-trans=* | --program-tran=* \
320 | --progr-tra=* | --program-tr=* | --program-t=*)
321 program_transform_name="$ac_optarg" ;;
322
323 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
324 | -silent | --silent | --silen | --sile | --sil)
325 silent=yes ;;
326
327 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
328 ac_prev=sbindir ;;
329 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
330 | --sbi=* | --sb=*)
331 sbindir="$ac_optarg" ;;
332
333 -sharedstatedir | --sharedstatedir | --sharedstatedi \
334 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
335 | --sharedst | --shareds | --shared | --share | --shar \
336 | --sha | --sh)
337 ac_prev=sharedstatedir ;;
338 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
339 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
340 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
341 | --sha=* | --sh=*)
342 sharedstatedir="$ac_optarg" ;;
343
344 -site | --site | --sit)
345 ac_prev=site ;;
346 -site=* | --site=* | --sit=*)
347 site="$ac_optarg" ;;
348
349 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
350 ac_prev=srcdir ;;
351 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
352 srcdir="$ac_optarg" ;;
353
354 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
355 | --syscon | --sysco | --sysc | --sys | --sy)
356 ac_prev=sysconfdir ;;
357 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
358 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
359 sysconfdir="$ac_optarg" ;;
360
361 -target | --target | --targe | --targ | --tar | --ta | --t)
362 ac_prev=target ;;
363 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
364 target="$ac_optarg" ;;
365
366 -v | -verbose | --verbose | --verbos | --verbo | --verb)
367 verbose=yes ;;
368
369 -version | --version | --versio | --versi | --vers)
ddd2ef55 370 echo "configure generated by autoconf version 2.13"
1227625a
SP
371 exit 0 ;;
372
373 -with-* | --with-*)
374 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
375 # Reject names that are not valid shell variable names.
376 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
377 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
378 fi
379 ac_package=`echo $ac_package| sed 's/-/_/g'`
380 case "$ac_option" in
381 *=*) ;;
382 *) ac_optarg=yes ;;
383 esac
384 eval "with_${ac_package}='$ac_optarg'" ;;
385
386 -without-* | --without-*)
387 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
388 # Reject names that are not valid shell variable names.
389 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
390 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
391 fi
392 ac_package=`echo $ac_package| sed 's/-/_/g'`
393 eval "with_${ac_package}=no" ;;
394
395 --x)
396 # Obsolete; use --with-x.
397 with_x=yes ;;
398
399 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
400 | --x-incl | --x-inc | --x-in | --x-i)
401 ac_prev=x_includes ;;
402 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
403 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
404 x_includes="$ac_optarg" ;;
405
406 -x-libraries | --x-libraries | --x-librarie | --x-librari \
407 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
408 ac_prev=x_libraries ;;
409 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
410 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
411 x_libraries="$ac_optarg" ;;
412
413 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
414 ;;
415
416 *)
417 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
418 echo "configure: warning: $ac_option: invalid host type" 1>&2
419 fi
420 if test "x$nonopt" != xNONE; then
421 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
422 fi
423 nonopt="$ac_option"
424 ;;
425
426 esac
427done
428
429if test -n "$ac_prev"; then
430 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
431fi
432
433trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
434
435# File descriptor usage:
436# 0 standard input
437# 1 file creation
438# 2 errors and warnings
439# 3 some systems may open it to /dev/tty
440# 4 used on the Kubota Titan
441# 6 checking for... messages and results
442# 5 compiler messages saved in config.log
443if test "$silent" = yes; then
444 exec 6>/dev/null
445else
446 exec 6>&1
447fi
448exec 5>./config.log
449
450echo "\
451This file contains any messages produced by compilers while
452running configure, to aid debugging if configure makes a mistake.
453" 1>&5
454
455# Strip out --no-create and --no-recursion so they do not pile up.
456# Also quote any args containing shell metacharacters.
457ac_configure_args=
458for ac_arg
459do
460 case "$ac_arg" in
461 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
462 | --no-cr | --no-c) ;;
463 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
464 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
465 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
466 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
467 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
468 esac
469done
470
471# NLS nuisances.
472# Only set these to C if already set. These must not be set unconditionally
473# because not all systems understand e.g. LANG=C (notably SCO).
474# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
475# Non-C LC_CTYPE values break the ctype check.
476if test "${LANG+set}" = set; then LANG=C; export LANG; fi
477if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
478if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
479if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
480
481# confdefs.h avoids OS command line length limits that DEFS can exceed.
482rm -rf conftest* confdefs.h
483# AIX cpp loses on an empty file, so make sure it contains at least a newline.
484echo > confdefs.h
485
486# A filename unique to this package, relative to the directory that
487# configure is in, which we can look for to find out if srcdir is correct.
488ac_unique_file=dump/dump.h
489
490# Find the source files, if location was not specified.
491if test -z "$srcdir"; then
492 ac_srcdir_defaulted=yes
493 # Try the directory containing this script, then its parent.
494 ac_prog=$0
495 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
496 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
497 srcdir=$ac_confdir
498 if test ! -r $srcdir/$ac_unique_file; then
499 srcdir=..
500 fi
501else
502 ac_srcdir_defaulted=no
503fi
504if test ! -r $srcdir/$ac_unique_file; then
505 if test "$ac_srcdir_defaulted" = yes; then
506 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
507 else
508 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
509 fi
510fi
511srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
512
513# Prefer explicitly selected file to automatically selected ones.
514if test -z "$CONFIG_SITE"; then
515 if test "x$prefix" != xNONE; then
516 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
517 else
518 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
519 fi
520fi
521for ac_site_file in $CONFIG_SITE; do
522 if test -r "$ac_site_file"; then
523 echo "loading site script $ac_site_file"
524 . "$ac_site_file"
525 fi
526done
527
528if test -r "$cache_file"; then
529 echo "loading cache $cache_file"
530 . $cache_file
531else
532 echo "creating cache $cache_file"
533 > $cache_file
534fi
535
536ac_ext=c
537# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
538ac_cpp='$CPP $CPPFLAGS'
539ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ddd2ef55 540ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1227625a
SP
541cross_compiling=$ac_cv_prog_cc_cross
542
ddd2ef55
SP
543ac_exeext=
544ac_objext=o
1227625a
SP
545if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
546 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
547 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
548 ac_n= ac_c='
549' ac_t=' '
550 else
551 ac_n=-n ac_c= ac_t=
552 fi
553else
554 ac_n= ac_c='\c' ac_t=
555fi
556
557
558
559MCONFIG=./MCONFIG
560
561
562
563
564echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
d8574d45 565echo "configure:566: checking whether ${MAKE-make} sets \${MAKE}" >&5
1227625a
SP
566set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
567if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
568 echo $ac_n "(cached) $ac_c" 1>&6
569else
570 cat > conftestmake <<\EOF
571all:
572 @echo 'ac_maketemp="${MAKE}"'
573EOF
574# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
575eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
576if test -n "$ac_maketemp"; then
577 eval ac_cv_prog_make_${ac_make}_set=yes
578else
579 eval ac_cv_prog_make_${ac_make}_set=no
580fi
581rm -f conftestmake
582fi
583if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
584 echo "$ac_t""yes" 1>&6
585 SET_MAKE=
586else
587 echo "$ac_t""no" 1>&6
588 SET_MAKE="MAKE=${MAKE-make}"
589fi
590
591echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
d8574d45 592echo "configure:593: checking whether ln -s works" >&5
1227625a
SP
593if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
594 echo $ac_n "(cached) $ac_c" 1>&6
595else
596 rm -f conftestdata
597if ln -s X conftestdata 2>/dev/null
598then
599 rm -f conftestdata
600 ac_cv_prog_LN_S="ln -s"
601else
602 ac_cv_prog_LN_S=ln
603fi
604fi
605LN_S="$ac_cv_prog_LN_S"
606if test "$ac_cv_prog_LN_S" = "ln -s"; then
607 echo "$ac_t""yes" 1>&6
608else
609 echo "$ac_t""no" 1>&6
610fi
611
612# Extract the first word of "cp", so it can be a program name with args.
613set dummy cp; ac_word=$2
614echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
d8574d45 615echo "configure:616: checking for $ac_word" >&5
1227625a
SP
616if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
617 echo $ac_n "(cached) $ac_c" 1>&6
618else
619 case "$CP" in
620 /*)
621 ac_cv_path_CP="$CP" # Let the user override the test with a path.
622 ;;
ddd2ef55
SP
623 ?:/*)
624 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
625 ;;
1227625a 626 *)
ddd2ef55
SP
627 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
628 ac_dummy="$PATH"
629 for ac_dir in $ac_dummy; do
1227625a
SP
630 test -z "$ac_dir" && ac_dir=.
631 if test -f $ac_dir/$ac_word; then
632 ac_cv_path_CP="$ac_dir/$ac_word"
633 break
634 fi
635 done
636 IFS="$ac_save_ifs"
637 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
638 ;;
639esac
640fi
641CP="$ac_cv_path_CP"
642if test -n "$CP"; then
643 echo "$ac_t""$CP" 1>&6
644else
645 echo "$ac_t""no" 1>&6
646fi
647
648# Extract the first word of "mv", so it can be a program name with args.
649set dummy mv; ac_word=$2
650echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
d8574d45 651echo "configure:652: checking for $ac_word" >&5
1227625a
SP
652if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
653 echo $ac_n "(cached) $ac_c" 1>&6
654else
655 case "$MV" in
656 /*)
657 ac_cv_path_MV="$MV" # Let the user override the test with a path.
658 ;;
ddd2ef55
SP
659 ?:/*)
660 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
661 ;;
1227625a 662 *)
ddd2ef55
SP
663 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
664 ac_dummy="$PATH"
665 for ac_dir in $ac_dummy; do
1227625a
SP
666 test -z "$ac_dir" && ac_dir=.
667 if test -f $ac_dir/$ac_word; then
668 ac_cv_path_MV="$ac_dir/$ac_word"
669 break
670 fi
671 done
672 IFS="$ac_save_ifs"
673 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
674 ;;
675esac
676fi
677MV="$ac_cv_path_MV"
678if test -n "$MV"; then
679 echo "$ac_t""$MV" 1>&6
680else
681 echo "$ac_t""no" 1>&6
682fi
683
684# Extract the first word of "rm", so it can be a program name with args.
685set dummy rm; ac_word=$2
686echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
d8574d45 687echo "configure:688: checking for $ac_word" >&5
1227625a
SP
688if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
689 echo $ac_n "(cached) $ac_c" 1>&6
690else
691 case "$RM" in
692 /*)
693 ac_cv_path_RM="$RM" # Let the user override the test with a path.
694 ;;
ddd2ef55
SP
695 ?:/*)
696 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
697 ;;
1227625a 698 *)
ddd2ef55
SP
699 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
700 ac_dummy="$PATH"
701 for ac_dir in $ac_dummy; do
1227625a
SP
702 test -z "$ac_dir" && ac_dir=.
703 if test -f $ac_dir/$ac_word; then
704 ac_cv_path_RM="$ac_dir/$ac_word"
705 break
706 fi
707 done
708 IFS="$ac_save_ifs"
709 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
710 ;;
711esac
712fi
713RM="$ac_cv_path_RM"
714if test -n "$RM"; then
715 echo "$ac_t""$RM" 1>&6
716else
717 echo "$ac_t""no" 1>&6
718fi
719
720ac_aux_dir=
721for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
722 if test -f $ac_dir/install-sh; then
723 ac_aux_dir=$ac_dir
724 ac_install_sh="$ac_aux_dir/install-sh -c"
725 break
726 elif test -f $ac_dir/install.sh; then
727 ac_aux_dir=$ac_dir
728 ac_install_sh="$ac_aux_dir/install.sh -c"
729 break
730 fi
731done
732if test -z "$ac_aux_dir"; then
733 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
734fi
735ac_config_guess=$ac_aux_dir/config.guess
736ac_config_sub=$ac_aux_dir/config.sub
737ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
738
739
740# Make sure we can run config.sub.
ddd2ef55 741if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1227625a
SP
742else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
743fi
744
745echo $ac_n "checking host system type""... $ac_c" 1>&6
d8574d45 746echo "configure:747: checking host system type" >&5
1227625a
SP
747
748host_alias=$host
749case "$host_alias" in
750NONE)
751 case $nonopt in
752 NONE)
ddd2ef55 753 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1227625a
SP
754 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
755 fi ;;
756 *) host_alias=$nonopt ;;
757 esac ;;
758esac
759
ddd2ef55 760host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1227625a
SP
761host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
762host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
763host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
764echo "$ac_t""$host" 1>&6
765
766echo $ac_n "checking build system type""... $ac_c" 1>&6
d8574d45 767echo "configure:768: checking build system type" >&5
1227625a
SP
768
769build_alias=$build
770case "$build_alias" in
771NONE)
772 case $nonopt in
773 NONE) build_alias=$host_alias ;;
774 *) build_alias=$nonopt ;;
775 esac ;;
776esac
777
ddd2ef55 778build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1227625a
SP
779build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
780build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
781build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
782echo "$ac_t""$build" 1>&6
783
784if test $host != $build; then
785 ac_tool_prefix=${host_alias}-
786else
787 ac_tool_prefix=
788fi
789
790# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
791set dummy ${ac_tool_prefix}ar; ac_word=$2
792echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
d8574d45 793echo "configure:794: checking for $ac_word" >&5
1227625a
SP
794if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
795 echo $ac_n "(cached) $ac_c" 1>&6
796else
797 if test -n "$AR"; then
798 ac_cv_prog_AR="$AR" # Let the user override the test.
799else
ddd2ef55
SP
800 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
801 ac_dummy="$PATH"
802 for ac_dir in $ac_dummy; do
1227625a
SP
803 test -z "$ac_dir" && ac_dir=.
804 if test -f $ac_dir/$ac_word; then
805 ac_cv_prog_AR="${ac_tool_prefix}ar"
806 break
807 fi
808 done
809 IFS="$ac_save_ifs"
810fi
811fi
812AR="$ac_cv_prog_AR"
813if test -n "$AR"; then
814 echo "$ac_t""$AR" 1>&6
815else
816 echo "$ac_t""no" 1>&6
817fi
818
819
820if test -z "$ac_cv_prog_AR"; then
821if test -n "$ac_tool_prefix"; then
822 # Extract the first word of "ar", so it can be a program name with args.
823set dummy ar; ac_word=$2
824echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
d8574d45 825echo "configure:826: checking for $ac_word" >&5
1227625a
SP
826if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
827 echo $ac_n "(cached) $ac_c" 1>&6
828else
829 if test -n "$AR"; then
830 ac_cv_prog_AR="$AR" # Let the user override the test.
831else
ddd2ef55
SP
832 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
833 ac_dummy="$PATH"
834 for ac_dir in $ac_dummy; do
1227625a
SP
835 test -z "$ac_dir" && ac_dir=.
836 if test -f $ac_dir/$ac_word; then
837 ac_cv_prog_AR="ar"
838 break
839 fi
840 done
841 IFS="$ac_save_ifs"
842 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
843fi
844fi
845AR="$ac_cv_prog_AR"
846if test -n "$AR"; then
847 echo "$ac_t""$AR" 1>&6
848else
849 echo "$ac_t""no" 1>&6
850fi
851
852else
853 AR="ar"
854fi
855fi
856
857# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
858set dummy ${ac_tool_prefix}ranlib; ac_word=$2
859echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
d8574d45 860echo "configure:861: checking for $ac_word" >&5
1227625a
SP
861if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
862 echo $ac_n "(cached) $ac_c" 1>&6
863else
864 if test -n "$RANLIB"; then
865 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
866else
ddd2ef55
SP
867 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
868 ac_dummy="$PATH"
869 for ac_dir in $ac_dummy; do
1227625a
SP
870 test -z "$ac_dir" && ac_dir=.
871 if test -f $ac_dir/$ac_word; then
872 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
873 break
874 fi
875 done
876 IFS="$ac_save_ifs"
877fi
878fi
879RANLIB="$ac_cv_prog_RANLIB"
880if test -n "$RANLIB"; then
881 echo "$ac_t""$RANLIB" 1>&6
882else
883 echo "$ac_t""no" 1>&6
884fi
885
886
887if test -z "$ac_cv_prog_RANLIB"; then
888if test -n "$ac_tool_prefix"; then
889 # Extract the first word of "ranlib", so it can be a program name with args.
890set dummy ranlib; ac_word=$2
891echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
d8574d45 892echo "configure:893: checking for $ac_word" >&5
1227625a
SP
893if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
894 echo $ac_n "(cached) $ac_c" 1>&6
895else
896 if test -n "$RANLIB"; then
897 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
898else
ddd2ef55
SP
899 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
900 ac_dummy="$PATH"
901 for ac_dir in $ac_dummy; do
1227625a
SP
902 test -z "$ac_dir" && ac_dir=.
903 if test -f $ac_dir/$ac_word; then
904 ac_cv_prog_RANLIB="ranlib"
905 break
906 fi
907 done
908 IFS="$ac_save_ifs"
909 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
910fi
911fi
912RANLIB="$ac_cv_prog_RANLIB"
913if test -n "$RANLIB"; then
914 echo "$ac_t""$RANLIB" 1>&6
915else
916 echo "$ac_t""no" 1>&6
917fi
918
919else
920 RANLIB=":"
921fi
922fi
923
924# Extract the first word of "${ac_tool_prefix}patch", so it can be a program name with args.
925set dummy ${ac_tool_prefix}patch; ac_word=$2
926echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
d8574d45 927echo "configure:928: checking for $ac_word" >&5
1227625a
SP
928if eval "test \"`echo '$''{'ac_cv_prog_PATCH'+set}'`\" = set"; then
929 echo $ac_n "(cached) $ac_c" 1>&6
930else
931 if test -n "$PATCH"; then
932 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
933else
ddd2ef55
SP
934 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
935 ac_dummy="$PATH"
936 for ac_dir in $ac_dummy; do
1227625a
SP
937 test -z "$ac_dir" && ac_dir=.
938 if test -f $ac_dir/$ac_word; then
939 ac_cv_prog_PATCH="${ac_tool_prefix}patch"
940 break
941 fi
942 done
943 IFS="$ac_save_ifs"
944fi
945fi
946PATCH="$ac_cv_prog_PATCH"
947if test -n "$PATCH"; then
948 echo "$ac_t""$PATCH" 1>&6
949else
950 echo "$ac_t""no" 1>&6
951fi
952
953
954if test -z "$ac_cv_prog_PATCH"; then
955if test -n "$ac_tool_prefix"; then
956 # Extract the first word of "patch", so it can be a program name with args.
957set dummy patch; ac_word=$2
958echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
d8574d45 959echo "configure:960: checking for $ac_word" >&5
1227625a
SP
960if eval "test \"`echo '$''{'ac_cv_prog_PATCH'+set}'`\" = set"; then
961 echo $ac_n "(cached) $ac_c" 1>&6
962else
963 if test -n "$PATCH"; then
964 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
965else
ddd2ef55
SP
966 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
967 ac_dummy="$PATH"
968 for ac_dir in $ac_dummy; do
1227625a
SP
969 test -z "$ac_dir" && ac_dir=.
970 if test -f $ac_dir/$ac_word; then
971 ac_cv_prog_PATCH="patch"
972 break
973 fi
974 done
975 IFS="$ac_save_ifs"
976 test -z "$ac_cv_prog_PATCH" && ac_cv_prog_PATCH=":"
977fi
978fi
979PATCH="$ac_cv_prog_PATCH"
980if test -n "$PATCH"; then
981 echo "$ac_t""$PATCH" 1>&6
982else
983 echo "$ac_t""no" 1>&6
984fi
985
986else
987 PATCH=":"
988fi
989fi
990
991# Extract the first word of "gcc", so it can be a program name with args.
992set dummy gcc; ac_word=$2
993echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
d8574d45 994echo "configure:995: checking for $ac_word" >&5
1227625a
SP
995if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
996 echo $ac_n "(cached) $ac_c" 1>&6
997else
998 if test -n "$CC"; then
999 ac_cv_prog_CC="$CC" # Let the user override the test.
1000else
ddd2ef55
SP
1001 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1002 ac_dummy="$PATH"
1003 for ac_dir in $ac_dummy; do
1227625a
SP
1004 test -z "$ac_dir" && ac_dir=.
1005 if test -f $ac_dir/$ac_word; then
1006 ac_cv_prog_CC="gcc"
1007 break
1008 fi
1009 done
1010 IFS="$ac_save_ifs"
1011fi
1012fi
1013CC="$ac_cv_prog_CC"
1014if test -n "$CC"; then
1015 echo "$ac_t""$CC" 1>&6
1016else
1017 echo "$ac_t""no" 1>&6
1018fi
1019
1020if test -z "$CC"; then
1021 # Extract the first word of "cc", so it can be a program name with args.
1022set dummy cc; ac_word=$2
1023echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
d8574d45 1024echo "configure:1025: checking for $ac_word" >&5
1227625a
SP
1025if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1026 echo $ac_n "(cached) $ac_c" 1>&6
1027else
1028 if test -n "$CC"; then
1029 ac_cv_prog_CC="$CC" # Let the user override the test.
1030else
ddd2ef55 1031 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1227625a 1032 ac_prog_rejected=no
ddd2ef55
SP
1033 ac_dummy="$PATH"
1034 for ac_dir in $ac_dummy; do
1227625a
SP
1035 test -z "$ac_dir" && ac_dir=.
1036 if test -f $ac_dir/$ac_word; then
1037 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1038 ac_prog_rejected=yes
1039 continue
1040 fi
1041 ac_cv_prog_CC="cc"
1042 break
1043 fi
1044 done
1045 IFS="$ac_save_ifs"
1046if test $ac_prog_rejected = yes; then
1047 # We found a bogon in the path, so make sure we never use it.
1048 set dummy $ac_cv_prog_CC
1049 shift
1050 if test $# -gt 0; then
1051 # We chose a different compiler from the bogus one.
1052 # However, it has the same basename, so the bogon will be chosen
1053 # first if we set CC to just the basename; use the full file name.
1054 shift
1055 set dummy "$ac_dir/$ac_word" "$@"
1056 shift
1057 ac_cv_prog_CC="$@"
1058 fi
1059fi
1060fi
1061fi
1062CC="$ac_cv_prog_CC"
1063if test -n "$CC"; then
1064 echo "$ac_t""$CC" 1>&6
1065else
1066 echo "$ac_t""no" 1>&6
1067fi
1068
ddd2ef55
SP
1069 if test -z "$CC"; then
1070 case "`uname -s`" in
1071 *win32* | *WIN32*)
1072 # Extract the first word of "cl", so it can be a program name with args.
1073set dummy cl; ac_word=$2
1074echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
d8574d45 1075echo "configure:1076: checking for $ac_word" >&5
ddd2ef55
SP
1076if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1077 echo $ac_n "(cached) $ac_c" 1>&6
1078else
1079 if test -n "$CC"; then
1080 ac_cv_prog_CC="$CC" # Let the user override the test.
1081else
1082 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1083 ac_dummy="$PATH"
1084 for ac_dir in $ac_dummy; do
1085 test -z "$ac_dir" && ac_dir=.
1086 if test -f $ac_dir/$ac_word; then
1087 ac_cv_prog_CC="cl"
1088 break
1089 fi
1090 done
1091 IFS="$ac_save_ifs"
1092fi
1093fi
1094CC="$ac_cv_prog_CC"
1095if test -n "$CC"; then
1096 echo "$ac_t""$CC" 1>&6
1097else
1098 echo "$ac_t""no" 1>&6
1099fi
1100 ;;
1101 esac
1102 fi
1227625a
SP
1103 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1104fi
1105
1106echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
d8574d45 1107echo "configure:1108: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1227625a
SP
1108
1109ac_ext=c
1110# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1111ac_cpp='$CPP $CPPFLAGS'
1112ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ddd2ef55 1113ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1227625a
SP
1114cross_compiling=$ac_cv_prog_cc_cross
1115
ddd2ef55
SP
1116cat > conftest.$ac_ext << EOF
1117
d8574d45 1118#line 1119 "configure"
1227625a 1119#include "confdefs.h"
ddd2ef55 1120
1227625a
SP
1121main(){return(0);}
1122EOF
d8574d45 1123if { (eval echo configure:1124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1227625a
SP
1124 ac_cv_prog_cc_works=yes
1125 # If we can't run a trivial program, we are probably using a cross compiler.
1126 if (./conftest; exit) 2>/dev/null; then
1127 ac_cv_prog_cc_cross=no
1128 else
1129 ac_cv_prog_cc_cross=yes
1130 fi
1131else
1132 echo "configure: failed program was:" >&5
1133 cat conftest.$ac_ext >&5
1134 ac_cv_prog_cc_works=no
1135fi
1136rm -fr conftest*
ddd2ef55
SP
1137ac_ext=c
1138# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1139ac_cpp='$CPP $CPPFLAGS'
1140ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1141ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1142cross_compiling=$ac_cv_prog_cc_cross
1227625a
SP
1143
1144echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1145if test $ac_cv_prog_cc_works = no; then
1146 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1147fi
1148echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
d8574d45 1149echo "configure:1150: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1227625a
SP
1150echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1151cross_compiling=$ac_cv_prog_cc_cross
1152
1153echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
d8574d45 1154echo "configure:1155: checking whether we are using GNU C" >&5
1227625a
SP
1155if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1156 echo $ac_n "(cached) $ac_c" 1>&6
1157else
1158 cat > conftest.c <<EOF
1159#ifdef __GNUC__
1160 yes;
1161#endif
1162EOF
d8574d45 1163if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1227625a
SP
1164 ac_cv_prog_gcc=yes
1165else
1166 ac_cv_prog_gcc=no
1167fi
1168fi
1169
1170echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1171
1172if test $ac_cv_prog_gcc = yes; then
1173 GCC=yes
ddd2ef55
SP
1174else
1175 GCC=
1176fi
1177
1178ac_test_CFLAGS="${CFLAGS+set}"
1179ac_save_CFLAGS="$CFLAGS"
1180CFLAGS=
1181echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
d8574d45 1182echo "configure:1183: checking whether ${CC-cc} accepts -g" >&5
1227625a
SP
1183if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1184 echo $ac_n "(cached) $ac_c" 1>&6
1185else
1186 echo 'void f(){}' > conftest.c
1187if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1188 ac_cv_prog_cc_g=yes
1189else
1190 ac_cv_prog_cc_g=no
1191fi
1192rm -f conftest*
1193
1194fi
1195
1196echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
ddd2ef55
SP
1197if test "$ac_test_CFLAGS" = set; then
1198 CFLAGS="$ac_save_CFLAGS"
1199elif test $ac_cv_prog_cc_g = yes; then
1200 if test "$GCC" = yes; then
1227625a
SP
1201 CFLAGS="-g -O2"
1202 else
ddd2ef55 1203 CFLAGS="-g"
1227625a
SP
1204 fi
1205else
ddd2ef55
SP
1206 if test "$GCC" = yes; then
1207 CFLAGS="-O2"
1208 else
1209 CFLAGS=
1210 fi
1227625a
SP
1211fi
1212
1213# Find a good install program. We prefer a C program (faster),
1214# so one script is as good as another. But avoid the broken or
1215# incompatible versions:
1216# SysV /etc/install, /usr/sbin/install
1217# SunOS /usr/etc/install
1218# IRIX /sbin/install
1219# AIX /bin/install
ddd2ef55 1220# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1227625a
SP
1221# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1222# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1223# ./install, which can be erroneously created by make from ./install.sh.
1224echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
d8574d45 1225echo "configure:1226: checking for a BSD compatible install" >&5
1227625a
SP
1226if test -z "$INSTALL"; then
1227if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1228 echo $ac_n "(cached) $ac_c" 1>&6
1229else
ddd2ef55 1230 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1227625a
SP
1231 for ac_dir in $PATH; do
1232 # Account for people who put trailing slashes in PATH elements.
1233 case "$ac_dir/" in
1234 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1235 *)
1236 # OSF1 and SCO ODT 3.0 have their own names for install.
ddd2ef55
SP
1237 # Don't use installbsd from OSF since it installs stuff as root
1238 # by default.
1239 for ac_prog in ginstall scoinst install; do
1227625a
SP
1240 if test -f $ac_dir/$ac_prog; then
1241 if test $ac_prog = install &&
1242 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1243 # AIX install. It has an incompatible calling convention.
1227625a
SP
1244 :
1245 else
1246 ac_cv_path_install="$ac_dir/$ac_prog -c"
1247 break 2
1248 fi
1249 fi
1250 done
1251 ;;
1252 esac
1253 done
1254 IFS="$ac_save_IFS"
1255
1256fi
1257 if test "${ac_cv_path_install+set}" = set; then
1258 INSTALL="$ac_cv_path_install"
1259 else
1260 # As a last resort, use the slow shell script. We don't cache a
1261 # path for INSTALL within a source directory, because that will
1262 # break other packages using the cache if that directory is
1263 # removed, or if the path is relative.
1264 INSTALL="$ac_install_sh"
1265 fi
1266fi
1267echo "$ac_t""$INSTALL" 1>&6
1268
1269# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1270# It thinks the first close brace ends the variable substitution.
1271test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1272
ddd2ef55
SP
1273test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1274
1227625a
SP
1275test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1276
1277
1227625a
SP
1278# Check whether --enable-debug or --disable-debug was given.
1279if test "${enable_debug+set}" = set; then
1280 enableval="$enable_debug"
1281 if test "$enableval" = "no"
1282then
1283 DUMPDEBUG=""
1284 RESTOREDEBUG=""
1285else
1286 DUMPDEBUG="-DFDEBUG -DTDEBUG -DWRITEDEBUG -DDIRDEBUG"
1287 RESTOREDEBUG="-DDIRDEBUG"
1288fi
1289else
1290 DUMPDEBUG=""
1291RESTOREDEBUG=""
1292
1293fi
1294
1295
1296
1297
1298# Check whether --enable-static or --disable-static was given.
1299if test "${enable_static+set}" = set; then
1300 enableval="$enable_static"
1301 if test "$enableval" = "no"
1302then
1303 STATIC=""
1304else
1305 STATIC="-static"
1306fi
1307
1308else
1309 STATIC=""
1310echo "Linking dump and restore dynamically by default"
1311
1312fi
1313
1314
1315
1316# Check whether --enable-rmt or --disable-rmt was given.
1317if test "${enable_rmt+set}" = set; then
1318 enableval="$enable_rmt"
1319 if test "$enableval" = "no"
1320then
1321 RMTDIR=""
1322 RMTMAKEFILE=""
1323else
1324 RMTDIR="rmt"
1325 RMTMAKEFILE="rmt/Makefile"
1326fi
1327
1328else
1329 RMTDIR=""
1330echo "Not compiling rmt by default"
1331
1332fi
1333
1334
1335
2ed89fda
SP
1336# Check whether --enable-kerberos or --disable-kerberos was given.
1337if test "${enable_kerberos+set}" = set; then
1338 enableval="$enable_kerberos"
1339 if test "$enableval" = "yes"
1340then
1341 OPTDEFS="-DKERBEROS"
1342else
1343 OPTDEFS=""
1344fi
1345
1346else
1347 OPTDEFS=""
1348echo "Not compiling kerberos extensions by default"
1349
1350fi
1351
1352
1353
c38e5b6a
SP
1354# Check whether --enable-readline or --disable-readline was given.
1355if test "${enable_readline+set}" = set; then
1356 enableval="$enable_readline"
1357 if test "$enableval" = "no"
1358then
1359 READLINE=""
1360else
5e04cc92 1361 READLINE="-lreadline -ltermcap"
c38e5b6a
SP
1362 cat >> confdefs.h <<\EOF
1363#define HAVE_READLINE 1
1364EOF
1365
1366fi
1367
1368else
1369 READLINE=""
1370echo "Not including readline support by default"
1371
1372fi
1373
1374
1375
d8574d45
SP
1376# Check whether --enable-oldstylefscript or --disable-oldstylefscript was given.
1377if test "${enable_oldstylefscript+set}" = set; then
1378 enableval="$enable_oldstylefscript"
1379 if test "$enableval" = "yes"
1380then
1381 cat >> confdefs.h <<\EOF
1382#define OLD_STYLE_FSCRIPT 1
1383EOF
1384
1385fi
1386
1387else
1388 echo "Using new style F script"
1389
1390fi
1391
1392
1227625a
SP
1393# Check whether --with-cc or --without-cc was given.
1394if test "${with_cc+set}" = set; then
1395 withval="$with_cc"
1396 echo "$ac_t""CC=$withval" 1>&6
1397CC=$withval
1398else
1399 if test -z "$CC" ; then CC=cc; fi
1400echo "$ac_t""CC defaults to $CC" 1>&6
1401fi
1402export CC
1403
1404
1405# Check whether --with-linker or --without-linker was given.
1406if test "${with_linker+set}" = set; then
1407 withval="$with_linker"
1408 echo "$ac_t""LD=$withval" 1>&6
1409LD=$withval
1410else
1411 if test -z "$LD" ; then LD=$CC; fi
1412echo "$ac_t""LD defaults to $LD" 1>&6
1413fi
1414export LD
1415
1416
1417# Check whether --with-ccopts or --without-ccopts was given.
1418if test "${with_ccopts+set}" = set; then
1419 withval="$with_ccopts"
1420 echo "$ac_t""CCOPTS is $withval" 1>&6
1421CCOPTS=$withval
1422CFLAGS="$CFLAGS $withval"
1423else
1424 CCOPTS=
1425fi
1426
1427
1428# Check whether --with-ldopts or --without-ldopts was given.
1429if test "${with_ldopts+set}" = set; then
1430 withval="$with_ldopts"
1431 echo "$ac_t""LDFLAGS is $withval" 1>&6
1432LDFLAGS=$withval
1433else
1434 LDFLAGS=
1435fi
1436
1437
1438# Check whether --with-binowner or --without-binowner was given.
1439if test "${with_binowner+set}" = set; then
1440 withval="$with_binowner"
1441 echo "$ac_t""BINOWNER is $withval" 1>&6
1442BINOWNER=$withval
1443else
1444 BINOWNER=root
1445echo "BINOWNER defaults to $BINOWNER"
1446
1447fi
1448
1449
1450# Check whether --with-bingrp or --without-bingrp was given.
1451if test "${with_bingrp+set}" = set; then
1452 withval="$with_bingrp"
1453 echo "$ac_t""BINGRP is $withval" 1>&6
1454BINGRP=$withval
1455else
1456 BINGRP=tty
1457echo "BINGRP defaults to $BINGRP"
1458
1459fi
1460
1461
1462# Check whether --with-binmode or --without-binmode was given.
1463if test "${with_binmode+set}" = set; then
1464 withval="$with_binmode"
1465 echo "$ac_t""BINMODE is $withval" 1>&6
1466BINMODE=$withval
1467else
882090d1 1468 BINMODE=0755
1227625a
SP
1469echo "BINMODE defaults to $BINMODE"
1470
1471fi
1472
1473
1474# Check whether --with-manowner or --without-manowner was given.
1475if test "${with_manowner+set}" = set; then
1476 withval="$with_manowner"
1477 echo "$ac_t""MANOWNER is $withval" 1>&6
1478MANOWNER=$withval
1479else
1480 MANOWNER=man
1481echo "MANOWNER defaults to $MANOWNER"
1482
1483fi
1484
1485
1486# Check whether --with-mangrp or --without-mangrp was given.
1487if test "${with_mangrp+set}" = set; then
1488 withval="$with_mangrp"
1489 echo "$ac_t""MANGRP is $withval" 1>&6
1490MANGRP=$withval
1491else
1492 MANGRP=tty
1493echo "MANGRP defaults to $MANGRP"
1494
1495fi
1496
1497
1498# Check whether --with-manmode or --without-manmode was given.
1499if test "${with_manmode+set}" = set; then
1500 withval="$with_manmode"
1501 echo "$ac_t""MANMODE is $withval" 1>&6
1502MANMODE=$withval
1503else
882090d1 1504 MANMODE=0644
1227625a
SP
1505echo "MANMODE defaults to $MANMODE"
1506
1507fi
1508
1509
8d4197bb
SP
1510# Check whether --with-dumpdatespath or --without-dumpdatespath was given.
1511if test "${with_dumpdatespath+set}" = set; then
1512 withval="$with_dumpdatespath"
1513 echo "$ac_t""DUMPDATESPATH is $withval" 1>&6
1514DUMPDATESPATH=$withval
1515else
1516 DUMPDATESPATH="/etc/dumpdates"
1517echo "DUMPDATESPATH defaults to $DUMPDATESPATH"
1518
1519fi
1520
1521
1227625a 1522echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
d8574d45 1523echo "configure:1524: checking how to run the C preprocessor" >&5
1227625a
SP
1524# On Suns, sometimes $CPP names a directory.
1525if test -n "$CPP" && test -d "$CPP"; then
1526 CPP=
1527fi
1528if test -z "$CPP"; then
1529if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1530 echo $ac_n "(cached) $ac_c" 1>&6
1531else
1532 # This must be in double quotes, not single quotes, because CPP may get
1533 # substituted into the Makefile and "${CC-cc}" will confuse make.
1534 CPP="${CC-cc} -E"
1535 # On the NeXT, cc -E runs the code through the compiler's parser,
1536 # not just through cpp.
1537 cat > conftest.$ac_ext <<EOF
d8574d45 1538#line 1539 "configure"
1227625a
SP
1539#include "confdefs.h"
1540#include <assert.h>
1541Syntax Error
1542EOF
1543ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
d8574d45 1544{ (eval echo configure:1545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ddd2ef55 1545ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1227625a
SP
1546if test -z "$ac_err"; then
1547 :
1548else
1549 echo "$ac_err" >&5
1550 echo "configure: failed program was:" >&5
1551 cat conftest.$ac_ext >&5
1552 rm -rf conftest*
1553 CPP="${CC-cc} -E -traditional-cpp"
1554 cat > conftest.$ac_ext <<EOF
d8574d45 1555#line 1556 "configure"
1227625a
SP
1556#include "confdefs.h"
1557#include <assert.h>
1558Syntax Error
1559EOF
1560ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
d8574d45 1561{ (eval echo configure:1562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ddd2ef55
SP
1562ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1563if test -z "$ac_err"; then
1564 :
1565else
1566 echo "$ac_err" >&5
1567 echo "configure: failed program was:" >&5
1568 cat conftest.$ac_ext >&5
1569 rm -rf conftest*
1570 CPP="${CC-cc} -nologo -E"
1571 cat > conftest.$ac_ext <<EOF
d8574d45 1572#line 1573 "configure"
ddd2ef55
SP
1573#include "confdefs.h"
1574#include <assert.h>
1575Syntax Error
1576EOF
1577ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
d8574d45 1578{ (eval echo configure:1579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ddd2ef55 1579ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1227625a
SP
1580if test -z "$ac_err"; then
1581 :
1582else
1583 echo "$ac_err" >&5
1584 echo "configure: failed program was:" >&5
1585 cat conftest.$ac_ext >&5
1586 rm -rf conftest*
1587 CPP=/lib/cpp
1588fi
1589rm -f conftest*
1590fi
ddd2ef55
SP
1591rm -f conftest*
1592fi
1227625a
SP
1593rm -f conftest*
1594 ac_cv_prog_CPP="$CPP"
1595fi
1596 CPP="$ac_cv_prog_CPP"
1597else
1598 ac_cv_prog_CPP="$CPP"
1599fi
1600echo "$ac_t""$CPP" 1>&6
1601
1602ac_safe=`echo "ext2fs/ext2fs.h" | sed 'y%./+-%__p_%'`
1603echo $ac_n "checking for ext2fs/ext2fs.h""... $ac_c" 1>&6
d8574d45 1604echo "configure:1605: checking for ext2fs/ext2fs.h" >&5
1227625a
SP
1605if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1606 echo $ac_n "(cached) $ac_c" 1>&6
1607else
1608 cat > conftest.$ac_ext <<EOF
d8574d45 1609#line 1610 "configure"
1227625a
SP
1610#include "confdefs.h"
1611#include <ext2fs/ext2fs.h>
1612EOF
1613ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
d8574d45 1614{ (eval echo configure:1615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ddd2ef55 1615ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1227625a
SP
1616if test -z "$ac_err"; then
1617 rm -rf conftest*
1618 eval "ac_cv_header_$ac_safe=yes"
1619else
1620 echo "$ac_err" >&5
1621 echo "configure: failed program was:" >&5
1622 cat conftest.$ac_ext >&5
1623 rm -rf conftest*
1624 eval "ac_cv_header_$ac_safe=no"
1625fi
1626rm -f conftest*
1627fi
1628if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1629 echo "$ac_t""yes" 1>&6
1630 ext2fs_h=yes
1631else
1632 echo "$ac_t""no" 1>&6
1633ext2fs_h=no
1634fi
1635
1636echo $ac_n "checking for ext2fs_open in -lext2fs""... $ac_c" 1>&6
d8574d45 1637echo "configure:1638: checking for ext2fs_open in -lext2fs" >&5
1227625a
SP
1638ac_lib_var=`echo ext2fs'_'ext2fs_open | sed 'y%./+-%__p_%'`
1639if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1640 echo $ac_n "(cached) $ac_c" 1>&6
1641else
1642 ac_save_LIBS="$LIBS"
1643LIBS="-lext2fs -lcom_err $LIBS"
1644cat > conftest.$ac_ext <<EOF
d8574d45 1645#line 1646 "configure"
1227625a
SP
1646#include "confdefs.h"
1647/* Override any gcc2 internal prototype to avoid an error. */
1648/* We use char because int might match the return type of a gcc2
1649 builtin and then its argument prototype would still apply. */
1650char ext2fs_open();
1651
1652int main() {
1653ext2fs_open()
1654; return 0; }
1655EOF
d8574d45 1656if { (eval echo configure:1657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1227625a
SP
1657 rm -rf conftest*
1658 eval "ac_cv_lib_$ac_lib_var=yes"
1659else
1660 echo "configure: failed program was:" >&5
1661 cat conftest.$ac_ext >&5
1662 rm -rf conftest*
1663 eval "ac_cv_lib_$ac_lib_var=no"
1664fi
1665rm -f conftest*
1666LIBS="$ac_save_LIBS"
1667
1668fi
1669if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1670 echo "$ac_t""yes" 1>&6
1671 ext2fs_lib=yes
1672else
1673 echo "$ac_t""no" 1>&6
1674ext2fs_lib=no
1675fi
1676
1677if test "$ext2fs_h" = no -o "$ext2fs_lib" = no; then
d3393043 1678 { echo "configure: error: You need to install the Ext2fs libraries from the E2fsprogs distribution first - hint: make install-libs" 1>&2; exit 1; }
1227625a
SP
1679fi
1680
c38e5b6a
SP
1681ac_safe=`echo "readline/readline.h" | sed 'y%./+-%__p_%'`
1682echo $ac_n "checking for readline/readline.h""... $ac_c" 1>&6
d8574d45 1683echo "configure:1684: checking for readline/readline.h" >&5
c38e5b6a
SP
1684if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1685 echo $ac_n "(cached) $ac_c" 1>&6
1686else
1687 cat > conftest.$ac_ext <<EOF
d8574d45 1688#line 1689 "configure"
c38e5b6a
SP
1689#include "confdefs.h"
1690#include <readline/readline.h>
1691EOF
1692ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
d8574d45 1693{ (eval echo configure:1694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
c38e5b6a
SP
1694ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1695if test -z "$ac_err"; then
1696 rm -rf conftest*
1697 eval "ac_cv_header_$ac_safe=yes"
1698else
1699 echo "$ac_err" >&5
1700 echo "configure: failed program was:" >&5
1701 cat conftest.$ac_ext >&5
1702 rm -rf conftest*
1703 eval "ac_cv_header_$ac_safe=no"
1704fi
1705rm -f conftest*
1706fi
1707if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1708 echo "$ac_t""yes" 1>&6
1709 readline_h=yes
1710else
1711 echo "$ac_t""no" 1>&6
1712readline_h=no
1713fi
1714
1715echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
d8574d45 1716echo "configure:1717: checking for readline in -lreadline" >&5
c38e5b6a
SP
1717ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
1718if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1719 echo $ac_n "(cached) $ac_c" 1>&6
1720else
1721 ac_save_LIBS="$LIBS"
1722LIBS="-lreadline $LIBS"
1723cat > conftest.$ac_ext <<EOF
d8574d45 1724#line 1725 "configure"
c38e5b6a
SP
1725#include "confdefs.h"
1726/* Override any gcc2 internal prototype to avoid an error. */
1727/* We use char because int might match the return type of a gcc2
1728 builtin and then its argument prototype would still apply. */
1729char readline();
1730
1731int main() {
1732readline()
1733; return 0; }
1734EOF
d8574d45 1735if { (eval echo configure:1736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c38e5b6a
SP
1736 rm -rf conftest*
1737 eval "ac_cv_lib_$ac_lib_var=yes"
1738else
1739 echo "configure: failed program was:" >&5
1740 cat conftest.$ac_ext >&5
1741 rm -rf conftest*
1742 eval "ac_cv_lib_$ac_lib_var=no"
1743fi
1744rm -f conftest*
1745LIBS="$ac_save_LIBS"
1746
1747fi
1748if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1749 echo "$ac_t""yes" 1>&6
1750 readline_lib=yes
1751else
1752 echo "$ac_t""no" 1>&6
1753readline_lib=no
1754fi
1755
1756if test "$readline_h" = no -o "$readline_lib" = no; then
1757 if test "$READLINE" = "-lreadline"; then
1758 { echo "configure: error: You need to install the GNU readline libraries first" 1>&2; exit 1; }
1759 fi
1760fi
1761
5c1faba5 1762for ac_func in err errx verr verrx vwarn vwarnx warn warnx realpath lchown
1227625a
SP
1763do
1764echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
d8574d45 1765echo "configure:1766: checking for $ac_func" >&5
1227625a
SP
1766if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1767 echo $ac_n "(cached) $ac_c" 1>&6
1768else
1769 cat > conftest.$ac_ext <<EOF
d8574d45 1770#line 1771 "configure"
1227625a
SP
1771#include "confdefs.h"
1772/* System header to define __stub macros and hopefully few prototypes,
1773 which can conflict with char $ac_func(); below. */
1774#include <assert.h>
1775/* Override any gcc2 internal prototype to avoid an error. */
1776/* We use char because int might match the return type of a gcc2
1777 builtin and then its argument prototype would still apply. */
1778char $ac_func();
1779
1780int main() {
1781
1782/* The GNU C library defines this for functions which it implements
1783 to always fail with ENOSYS. Some functions are actually named
1784 something starting with __ and the normal name is an alias. */
1785#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1786choke me
1787#else
1788$ac_func();
1789#endif
1790
1791; return 0; }
1792EOF
d8574d45 1793if { (eval echo configure:1794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1227625a
SP
1794 rm -rf conftest*
1795 eval "ac_cv_func_$ac_func=yes"
1796else
1797 echo "configure: failed program was:" >&5
1798 cat conftest.$ac_ext >&5
1799 rm -rf conftest*
1800 eval "ac_cv_func_$ac_func=no"
1801fi
1802rm -f conftest*
1803fi
1804
1805if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1806 echo "$ac_t""yes" 1>&6
1807 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1808 cat >> confdefs.h <<EOF
1809#define $ac_tr_func 1
1810EOF
1811
1812else
1813 echo "$ac_t""no" 1>&6
1814fi
1815done
1816
5c1faba5 1817echo $ac_n "checking for glob""... $ac_c" 1>&6
d8574d45 1818echo "configure:1819: checking for glob" >&5
5c1faba5
SP
1819if eval "test \"`echo '$''{'ac_cv_func_glob'+set}'`\" = set"; then
1820 echo $ac_n "(cached) $ac_c" 1>&6
1821else
1822 cat > conftest.$ac_ext <<EOF
d8574d45 1823#line 1824 "configure"
5c1faba5
SP
1824#include "confdefs.h"
1825/* System header to define __stub macros and hopefully few prototypes,
1826 which can conflict with char glob(); below. */
1827#include <assert.h>
1828/* Override any gcc2 internal prototype to avoid an error. */
1829/* We use char because int might match the return type of a gcc2
1830 builtin and then its argument prototype would still apply. */
1831char glob();
1832
1833int main() {
1834
1835/* The GNU C library defines this for functions which it implements
1836 to always fail with ENOSYS. Some functions are actually named
1837 something starting with __ and the normal name is an alias. */
1838#if defined (__stub_glob) || defined (__stub___glob)
1839choke me
1840#else
1841glob();
1842#endif
1843
1844; return 0; }
1845EOF
d8574d45 1846if { (eval echo configure:1847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5c1faba5
SP
1847 rm -rf conftest*
1848 eval "ac_cv_func_glob=yes"
1849else
1850 echo "configure: failed program was:" >&5
1851 cat conftest.$ac_ext >&5
1852 rm -rf conftest*
1853 eval "ac_cv_func_glob=no"
1854fi
1855rm -f conftest*
1856fi
1857
1858if eval "test \"`echo '$ac_cv_func_'glob`\" = yes"; then
1859 echo "$ac_t""yes" 1>&6
1860 :
1861else
1862 echo "$ac_t""no" 1>&6
1863fi
1864
1865
1866if test "$ac_cv_func_glob" = "yes"; then
1867 cat > conftest.$ac_ext <<EOF
d8574d45 1868#line 1869 "configure"
5c1faba5
SP
1869#include "confdefs.h"
1870
1871# include <glob.h>
1872# ifdef GLOB_ALTDIRFUNC
1873 yes
1874# endif
1875
1876EOF
1877if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1878 egrep "yes" >/dev/null 2>&1; then
1879 rm -rf conftest*
1880 cat >> confdefs.h <<\EOF
1881#define HAVE_GLOB 1
1882EOF
1883
1884else
1885 rm -rf conftest*
1886 noglob=yes
1887fi
1888rm -f conftest*
1889
1890 if test "$noglob" = "yes"; then
1891 echo "Your system does not support extended glob, will use the internal routines"
1892 fi
1893fi
1227625a
SP
1894
1895echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
d8574d45 1896echo "configure:1897: checking for ANSI C header files" >&5
1227625a
SP
1897if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1898 echo $ac_n "(cached) $ac_c" 1>&6
1899else
1900 cat > conftest.$ac_ext <<EOF
d8574d45 1901#line 1902 "configure"
1227625a
SP
1902#include "confdefs.h"
1903#include <stdlib.h>
1904#include <stdarg.h>
1905#include <string.h>
1906#include <float.h>
1907EOF
1908ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
d8574d45 1909{ (eval echo configure:1910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ddd2ef55 1910ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1227625a
SP
1911if test -z "$ac_err"; then
1912 rm -rf conftest*
1913 ac_cv_header_stdc=yes
1914else
1915 echo "$ac_err" >&5
1916 echo "configure: failed program was:" >&5
1917 cat conftest.$ac_ext >&5
1918 rm -rf conftest*
1919 ac_cv_header_stdc=no
1920fi
1921rm -f conftest*
1922
1923if test $ac_cv_header_stdc = yes; then
1924 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1925cat > conftest.$ac_ext <<EOF
d8574d45 1926#line 1927 "configure"
1227625a
SP
1927#include "confdefs.h"
1928#include <string.h>
1929EOF
1930if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1931 egrep "memchr" >/dev/null 2>&1; then
1932 :
1933else
1934 rm -rf conftest*
1935 ac_cv_header_stdc=no
1936fi
1937rm -f conftest*
1938
1939fi
1940
1941if test $ac_cv_header_stdc = yes; then
1942 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1943cat > conftest.$ac_ext <<EOF
d8574d45 1944#line 1945 "configure"
1227625a
SP
1945#include "confdefs.h"
1946#include <stdlib.h>
1947EOF
1948if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1949 egrep "free" >/dev/null 2>&1; then
1950 :
1951else
1952 rm -rf conftest*
1953 ac_cv_header_stdc=no
1954fi
1955rm -f conftest*
1956
1957fi
1958
1959if test $ac_cv_header_stdc = yes; then
1960 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1961if test "$cross_compiling" = yes; then
1962 :
1963else
1964 cat > conftest.$ac_ext <<EOF
d8574d45 1965#line 1966 "configure"
1227625a
SP
1966#include "confdefs.h"
1967#include <ctype.h>
1968#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1969#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1970#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1971int main () { int i; for (i = 0; i < 256; i++)
1972if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1973exit (0); }
1974
1975EOF
d8574d45 1976if { (eval echo configure:1977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1227625a
SP
1977then
1978 :
1979else
1980 echo "configure: failed program was:" >&5
1981 cat conftest.$ac_ext >&5
1982 rm -fr conftest*
1983 ac_cv_header_stdc=no
1984fi
1985rm -fr conftest*
1986fi
1987
1988fi
1989fi
1990
1991echo "$ac_t""$ac_cv_header_stdc" 1>&6
1992if test $ac_cv_header_stdc = yes; then
1993 cat >> confdefs.h <<\EOF
1994#define STDC_HEADERS 1
1995EOF
1996
1997fi
1998
1999echo $ac_n "checking for quad_t""... $ac_c" 1>&6
d8574d45 2000echo "configure:2001: checking for quad_t" >&5
1227625a
SP
2001if eval "test \"`echo '$''{'ac_cv_type_quad_t'+set}'`\" = set"; then
2002 echo $ac_n "(cached) $ac_c" 1>&6
2003else
2004 cat > conftest.$ac_ext <<EOF
d8574d45 2005#line 2006 "configure"
1227625a
SP
2006#include "confdefs.h"
2007#include <sys/types.h>
2008#if STDC_HEADERS
2009#include <stdlib.h>
2010#include <stddef.h>
2011#endif
2012EOF
2013if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ddd2ef55 2014 egrep "(^|[^a-zA-Z_0-9])quad_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1227625a
SP
2015 rm -rf conftest*
2016 ac_cv_type_quad_t=yes
2017else
2018 rm -rf conftest*
2019 ac_cv_type_quad_t=no
2020fi
2021rm -f conftest*
2022
2023fi
2024echo "$ac_t""$ac_cv_type_quad_t" 1>&6
2025if test $ac_cv_type_quad_t = no; then
2026 cat >> confdefs.h <<\EOF
2027#define quad_t __s64
2028EOF
2029
2030fi
2031
2032echo $ac_n "checking for u_quad_t""... $ac_c" 1>&6
d8574d45 2033echo "configure:2034: checking for u_quad_t" >&5
1227625a
SP
2034if eval "test \"`echo '$''{'ac_cv_type_u_quad_t'+set}'`\" = set"; then
2035 echo $ac_n "(cached) $ac_c" 1>&6
2036else
2037 cat > conftest.$ac_ext <<EOF
d8574d45 2038#line 2039 "configure"
1227625a
SP
2039#include "confdefs.h"
2040#include <sys/types.h>
2041#if STDC_HEADERS
2042#include <stdlib.h>
2043#include <stddef.h>
2044#endif
2045EOF
2046if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ddd2ef55 2047 egrep "(^|[^a-zA-Z_0-9])u_quad_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1227625a
SP
2048 rm -rf conftest*
2049 ac_cv_type_u_quad_t=yes
2050else
2051 rm -rf conftest*
2052 ac_cv_type_u_quad_t=no
2053fi
2054rm -f conftest*
2055
2056fi
2057echo "$ac_t""$ac_cv_type_u_quad_t" 1>&6
2058if test $ac_cv_type_u_quad_t = no; then
2059 cat >> confdefs.h <<\EOF
2060#define u_quad_t __u64
2061EOF
2062
2063fi
2064
2065
2066top_builddir=`cd .; pwd`
2067
2068
2069test -d compat || mkdir compat
2070test -d compat/lib || mkdir compat/lib
2071
2072trap '' 1 2 15
2073cat > confcache <<\EOF
2074# This file is a shell script that caches the results of configure
2075# tests run on this system so they can be shared between configure
2076# scripts and configure runs. It is not useful on other systems.
2077# If it contains results you don't want to keep, you may remove or edit it.
2078#
2079# By default, configure uses ./config.cache as the cache file,
2080# creating it if it does not exist already. You can give configure
2081# the --cache-file=FILE option to use a different cache file; that is
2082# what configure does when it calls configure scripts in
2083# subdirectories, so they share the cache.
2084# Giving --cache-file=/dev/null disables caching, for debugging configure.
2085# config.status only pays attention to the cache file if you give it the
2086# --recheck option to rerun configure.
2087#
2088EOF
2089# The following way of writing the cache mishandles newlines in values,
2090# but we know of no workaround that is simple, portable, and efficient.
2091# So, don't put newlines in cache variables' values.
2092# Ultrix sh set writes to stderr and can't be redirected directly,
2093# and sets the high bit in the cache file unless we assign to the vars.
2094(set) 2>&1 |
ddd2ef55 2095 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1227625a
SP
2096 *ac_space=\ *)
2097 # `set' does not quote correctly, so add quotes (double-quote substitution
2098 # turns \\\\ into \\, and sed turns \\ into \).
2099 sed -n \
2100 -e "s/'/'\\\\''/g" \
2101 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2102 ;;
2103 *)
2104 # `set' quotes correctly as required by POSIX, so do not add quotes.
2105 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2106 ;;
2107 esac >> confcache
2108if cmp -s $cache_file confcache; then
2109 :
2110else
2111 if test -w $cache_file; then
2112 echo "updating cache $cache_file"
2113 cat confcache > $cache_file
2114 else
2115 echo "not updating unwritable cache $cache_file"
2116 fi
2117fi
2118rm -f confcache
2119
2120trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2121
2122test "x$prefix" = xNONE && prefix=$ac_default_prefix
2123# Let make expand exec_prefix.
2124test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2125
2126# Any assignment to VPATH causes Sun make to only execute
2127# the first set of double-colon rules, so remove it if not needed.
2128# If there is a colon in the path, we need to keep it.
2129if test "x$srcdir" = x.; then
2130 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2131fi
2132
2133trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2134
2135DEFS=-DHAVE_CONFIG_H
2136
2137# Without the "./", some shells look in PATH for config.status.
2138: ${CONFIG_STATUS=./config.status}
2139
2140echo creating $CONFIG_STATUS
2141rm -f $CONFIG_STATUS
2142cat > $CONFIG_STATUS <<EOF
2143#! /bin/sh
2144# Generated automatically by configure.
2145# Run this file to recreate the current configuration.
2146# This directory was configured as follows,
2147# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2148#
2149# $0 $ac_configure_args
2150#
2151# Compiler output produced by configure, useful for debugging
2152# configure, is in ./config.log if it exists.
2153
2154ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2155for ac_option
2156do
2157 case "\$ac_option" in
2158 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2159 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2160 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2161 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
ddd2ef55 2162 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1227625a
SP
2163 exit 0 ;;
2164 -help | --help | --hel | --he | --h)
2165 echo "\$ac_cs_usage"; exit 0 ;;
2166 *) echo "\$ac_cs_usage"; exit 1 ;;
2167 esac
2168done
2169
2170ac_given_srcdir=$srcdir
2171ac_given_INSTALL="$INSTALL"
2172
8d4197bb 2173trap 'rm -fr `echo "MCONFIG Makefile common/Makefile compat/include/Makefile compat/lib/Makefile dump/Makefile restore/Makefile $RMTMAKEFILE config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1227625a
SP
2174EOF
2175cat >> $CONFIG_STATUS <<EOF
2176
2177# Protect against being on the right side of a sed subst in config.status.
2178sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2179 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2180$ac_vpsub
2181$extrasub
ddd2ef55 2182s%@SHELL@%$SHELL%g
1227625a
SP
2183s%@CFLAGS@%$CFLAGS%g
2184s%@CPPFLAGS@%$CPPFLAGS%g
2185s%@CXXFLAGS@%$CXXFLAGS%g
ddd2ef55 2186s%@FFLAGS@%$FFLAGS%g
1227625a
SP
2187s%@DEFS@%$DEFS%g
2188s%@LDFLAGS@%$LDFLAGS%g
2189s%@LIBS@%$LIBS%g
2190s%@exec_prefix@%$exec_prefix%g
2191s%@prefix@%$prefix%g
2192s%@program_transform_name@%$program_transform_name%g
2193s%@bindir@%$bindir%g
2194s%@sbindir@%$sbindir%g
2195s%@libexecdir@%$libexecdir%g
2196s%@datadir@%$datadir%g
2197s%@sysconfdir@%$sysconfdir%g
2198s%@sharedstatedir@%$sharedstatedir%g
2199s%@localstatedir@%$localstatedir%g
2200s%@libdir@%$libdir%g
2201s%@includedir@%$includedir%g
2202s%@oldincludedir@%$oldincludedir%g
2203s%@infodir@%$infodir%g
2204s%@mandir@%$mandir%g
2205/@MCONFIG@/r $MCONFIG
2206s%@MCONFIG@%%g
2207s%@SET_MAKE@%$SET_MAKE%g
2208s%@LN_S@%$LN_S%g
2209s%@CP@%$CP%g
2210s%@MV@%$MV%g
2211s%@RM@%$RM%g
2212s%@host@%$host%g
2213s%@host_alias@%$host_alias%g
2214s%@host_cpu@%$host_cpu%g
2215s%@host_vendor@%$host_vendor%g
2216s%@host_os@%$host_os%g
2217s%@build@%$build%g
2218s%@build_alias@%$build_alias%g
2219s%@build_cpu@%$build_cpu%g
2220s%@build_vendor@%$build_vendor%g
2221s%@build_os@%$build_os%g
2222s%@AR@%$AR%g
2223s%@RANLIB@%$RANLIB%g
2224s%@PATCH@%$PATCH%g
2225s%@CC@%$CC%g
2226s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
ddd2ef55 2227s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1227625a
SP
2228s%@INSTALL_DATA@%$INSTALL_DATA%g
2229s%@DUMPDEBUG@%$DUMPDEBUG%g
2230s%@RESTOREDEBUG@%$RESTOREDEBUG%g
2231s%@STATIC@%$STATIC%g
2232s%@RMTDIR@%$RMTDIR%g
2ed89fda 2233s%@OPTDEFS@%$OPTDEFS%g
c38e5b6a 2234s%@READLINE@%$READLINE%g
1227625a
SP
2235s%@LD@%$LD%g
2236s%@CCOPTS@%$CCOPTS%g
2237s%@BINOWNER@%$BINOWNER%g
2238s%@BINGRP@%$BINGRP%g
2239s%@BINMODE@%$BINMODE%g
2240s%@MANOWNER@%$MANOWNER%g
2241s%@MANGRP@%$MANGRP%g
2242s%@MANMODE@%$MANMODE%g
8d4197bb 2243s%@DUMPDATESPATH@%$DUMPDATESPATH%g
1227625a
SP
2244s%@CPP@%$CPP%g
2245s%@top_builddir@%$top_builddir%g
2246
2247CEOF
2248EOF
2249
2250cat >> $CONFIG_STATUS <<\EOF
2251
2252# Split the substitutions into bite-sized pieces for seds with
2253# small command number limits, like on Digital OSF/1 and HP-UX.
2254ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2255ac_file=1 # Number of current file.
2256ac_beg=1 # First line for current file.
2257ac_end=$ac_max_sed_cmds # Line after last line for current file.
2258ac_more_lines=:
2259ac_sed_cmds=""
2260while $ac_more_lines; do
2261 if test $ac_beg -gt 1; then
2262 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2263 else
2264 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2265 fi
2266 if test ! -s conftest.s$ac_file; then
2267 ac_more_lines=false
2268 rm -f conftest.s$ac_file
2269 else
2270 if test -z "$ac_sed_cmds"; then
2271 ac_sed_cmds="sed -f conftest.s$ac_file"
2272 else
2273 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2274 fi
2275 ac_file=`expr $ac_file + 1`
2276 ac_beg=$ac_end
2277 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2278 fi
2279done
2280if test -z "$ac_sed_cmds"; then
2281 ac_sed_cmds=cat
2282fi
2283EOF
2284
2285cat >> $CONFIG_STATUS <<EOF
2286
8d4197bb 2287CONFIG_FILES=\${CONFIG_FILES-"MCONFIG Makefile common/Makefile compat/include/Makefile compat/lib/Makefile dump/Makefile restore/Makefile $RMTMAKEFILE"}
1227625a
SP
2288EOF
2289cat >> $CONFIG_STATUS <<\EOF
2290for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2291 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2292 case "$ac_file" in
2293 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2294 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2295 *) ac_file_in="${ac_file}.in" ;;
2296 esac
2297
2298 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2299
2300 # Remove last slash and all that follows it. Not all systems have dirname.
2301 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2302 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2303 # The file is in a subdirectory.
2304 test ! -d "$ac_dir" && mkdir "$ac_dir"
2305 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2306 # A "../" for each directory in $ac_dir_suffix.
2307 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2308 else
2309 ac_dir_suffix= ac_dots=
2310 fi
2311
2312 case "$ac_given_srcdir" in
2313 .) srcdir=.
2314 if test -z "$ac_dots"; then top_srcdir=.
2315 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2316 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2317 *) # Relative path.
2318 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2319 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2320 esac
2321
2322 case "$ac_given_INSTALL" in
2323 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2324 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2325 esac
2326
2327 echo creating "$ac_file"
2328 rm -f "$ac_file"
2329 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2330 case "$ac_file" in
2331 *Makefile*) ac_comsub="1i\\
2332# $configure_input" ;;
2333 *) ac_comsub= ;;
2334 esac
2335
2336 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2337 sed -e "$ac_comsub
2338s%@configure_input@%$configure_input%g
2339s%@srcdir@%$srcdir%g
2340s%@top_srcdir@%$top_srcdir%g
2341s%@INSTALL@%$INSTALL%g
2342" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2343fi; done
2344rm -f conftest.s*
2345
2346# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2347# NAME is the cpp macro being defined and VALUE is the value it is being given.
2348#
2349# ac_d sets the value in "#define NAME VALUE" lines.
2350ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2351ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2352ac_dC='\3'
2353ac_dD='%g'
2354# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2355ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2356ac_uB='\([ ]\)%\1#\2define\3'
2357ac_uC=' '
2358ac_uD='\4%g'
2359# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2360ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2361ac_eB='$%\1#\2define\3'
2362ac_eC=' '
2363ac_eD='%g'
2364
2365if test "${CONFIG_HEADERS+set}" != set; then
2366EOF
2367cat >> $CONFIG_STATUS <<EOF
2368 CONFIG_HEADERS="config.h"
2369EOF
2370cat >> $CONFIG_STATUS <<\EOF
2371fi
2372for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2373 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2374 case "$ac_file" in
2375 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2376 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2377 *) ac_file_in="${ac_file}.in" ;;
2378 esac
2379
2380 echo creating $ac_file
2381
2382 rm -f conftest.frag conftest.in conftest.out
2383 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2384 cat $ac_file_inputs > conftest.in
2385
2386EOF
2387
2388# Transform confdefs.h into a sed script conftest.vals that substitutes
2389# the proper values into config.h.in to produce config.h. And first:
2390# Protect against being on the right side of a sed subst in config.status.
2391# Protect against being in an unquoted here document in config.status.
2392rm -f conftest.vals
2393cat > conftest.hdr <<\EOF
2394s/[\\&%]/\\&/g
2395s%[\\$`]%\\&%g
2396s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2397s%ac_d%ac_u%gp
2398s%ac_u%ac_e%gp
2399EOF
2400sed -n -f conftest.hdr confdefs.h > conftest.vals
2401rm -f conftest.hdr
2402
2403# This sed command replaces #undef with comments. This is necessary, for
2404# example, in the case of _POSIX_SOURCE, which is predefined and required
2405# on some systems where configure will not decide to define it.
2406cat >> conftest.vals <<\EOF
2407s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2408EOF
2409
2410# Break up conftest.vals because some shells have a limit on
2411# the size of here documents, and old seds have small limits too.
2412
2413rm -f conftest.tail
2414while :
2415do
2416 ac_lines=`grep -c . conftest.vals`
2417 # grep -c gives empty output for an empty file on some AIX systems.
2418 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2419 # Write a limited-size here document to conftest.frag.
2420 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2421 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2422 echo 'CEOF
2423 sed -f conftest.frag conftest.in > conftest.out
2424 rm -f conftest.in
2425 mv conftest.out conftest.in
2426' >> $CONFIG_STATUS
2427 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2428 rm -f conftest.vals
2429 mv conftest.tail conftest.vals
2430done
2431rm -f conftest.vals
2432
2433cat >> $CONFIG_STATUS <<\EOF
2434 rm -f conftest.frag conftest.h
2435 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2436 cat conftest.in >> conftest.h
2437 rm -f conftest.in
2438 if cmp -s $ac_file conftest.h 2>/dev/null; then
2439 echo "$ac_file is unchanged"
2440 rm -f conftest.h
2441 else
2442 # Remove last slash and all that follows it. Not all systems have dirname.
2443 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2444 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2445 # The file is in a subdirectory.
2446 test ! -d "$ac_dir" && mkdir "$ac_dir"
2447 fi
2448 rm -f $ac_file
2449 mv conftest.h $ac_file
2450 fi
2451fi; done
2452
2453EOF
2454cat >> $CONFIG_STATUS <<EOF
2455
2456EOF
2457cat >> $CONFIG_STATUS <<\EOF
2458
2459exit 0
2460EOF
2461chmod +x $CONFIG_STATUS
2462rm -fr confdefs* $ac_clean_files
2463test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2464