]> git.wh0rd.org - dump.git/blame - configure
Empty the sigaction structure to be portable.
[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
3e815572
SP
1681echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
1682echo "configure:1683: checking for tgetent in -ltermcap" >&5
1683ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
1684if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1685 echo $ac_n "(cached) $ac_c" 1>&6
1686else
1687 ac_save_LIBS="$LIBS"
1688LIBS="-ltermcap $LIBS"
1689cat > conftest.$ac_ext <<EOF
1690#line 1691 "configure"
1691#include "confdefs.h"
1692/* Override any gcc2 internal prototype to avoid an error. */
1693/* We use char because int might match the return type of a gcc2
1694 builtin and then its argument prototype would still apply. */
1695char tgetent();
1696
1697int main() {
1698tgetent()
1699; return 0; }
1700EOF
1701if { (eval echo configure:1702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1702 rm -rf conftest*
1703 eval "ac_cv_lib_$ac_lib_var=yes"
1704else
1705 echo "configure: failed program was:" >&5
1706 cat conftest.$ac_ext >&5
1707 rm -rf conftest*
1708 eval "ac_cv_lib_$ac_lib_var=no"
1709fi
1710rm -f conftest*
1711LIBS="$ac_save_LIBS"
1712
1713fi
1714if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1715 echo "$ac_t""yes" 1>&6
1716 termcap_lib=yes
1717else
1718 echo "$ac_t""no" 1>&6
1719termcap_lib=no
1720fi
1721
1722if test "$termcap_lib" = no; then
1723 if test "$READLINE" = "-lreadline -ltermcap"; then
1724 { echo "configure: error: You need to install the GNU termcap libraries first" 1>&2; exit 1; }
1725 fi
1726fi
1727
c38e5b6a
SP
1728ac_safe=`echo "readline/readline.h" | sed 'y%./+-%__p_%'`
1729echo $ac_n "checking for readline/readline.h""... $ac_c" 1>&6
3e815572 1730echo "configure:1731: checking for readline/readline.h" >&5
c38e5b6a
SP
1731if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1732 echo $ac_n "(cached) $ac_c" 1>&6
1733else
1734 cat > conftest.$ac_ext <<EOF
3e815572 1735#line 1736 "configure"
c38e5b6a
SP
1736#include "confdefs.h"
1737#include <readline/readline.h>
1738EOF
1739ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3e815572 1740{ (eval echo configure:1741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
c38e5b6a
SP
1741ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1742if test -z "$ac_err"; then
1743 rm -rf conftest*
1744 eval "ac_cv_header_$ac_safe=yes"
1745else
1746 echo "$ac_err" >&5
1747 echo "configure: failed program was:" >&5
1748 cat conftest.$ac_ext >&5
1749 rm -rf conftest*
1750 eval "ac_cv_header_$ac_safe=no"
1751fi
1752rm -f conftest*
1753fi
1754if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1755 echo "$ac_t""yes" 1>&6
1756 readline_h=yes
1757else
1758 echo "$ac_t""no" 1>&6
1759readline_h=no
1760fi
1761
1762echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
3e815572 1763echo "configure:1764: checking for readline in -lreadline" >&5
c38e5b6a
SP
1764ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
1765if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1766 echo $ac_n "(cached) $ac_c" 1>&6
1767else
1768 ac_save_LIBS="$LIBS"
3e815572 1769LIBS="-lreadline "-ltermcap" $LIBS"
c38e5b6a 1770cat > conftest.$ac_ext <<EOF
3e815572 1771#line 1772 "configure"
c38e5b6a
SP
1772#include "confdefs.h"
1773/* Override any gcc2 internal prototype to avoid an error. */
1774/* We use char because int might match the return type of a gcc2
1775 builtin and then its argument prototype would still apply. */
1776char readline();
1777
1778int main() {
1779readline()
1780; return 0; }
1781EOF
3e815572 1782if { (eval echo configure:1783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c38e5b6a
SP
1783 rm -rf conftest*
1784 eval "ac_cv_lib_$ac_lib_var=yes"
1785else
1786 echo "configure: failed program was:" >&5
1787 cat conftest.$ac_ext >&5
1788 rm -rf conftest*
1789 eval "ac_cv_lib_$ac_lib_var=no"
1790fi
1791rm -f conftest*
1792LIBS="$ac_save_LIBS"
1793
1794fi
1795if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1796 echo "$ac_t""yes" 1>&6
1797 readline_lib=yes
1798else
1799 echo "$ac_t""no" 1>&6
1800readline_lib=no
1801fi
1802
1803if test "$readline_h" = no -o "$readline_lib" = no; then
3e815572 1804 if test "$READLINE" = "-lreadline -ltermcap"; then
c38e5b6a
SP
1805 { echo "configure: error: You need to install the GNU readline libraries first" 1>&2; exit 1; }
1806 fi
1807fi
1808
5c1faba5 1809for ac_func in err errx verr verrx vwarn vwarnx warn warnx realpath lchown
1227625a
SP
1810do
1811echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3e815572 1812echo "configure:1813: checking for $ac_func" >&5
1227625a
SP
1813if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1814 echo $ac_n "(cached) $ac_c" 1>&6
1815else
1816 cat > conftest.$ac_ext <<EOF
3e815572 1817#line 1818 "configure"
1227625a
SP
1818#include "confdefs.h"
1819/* System header to define __stub macros and hopefully few prototypes,
1820 which can conflict with char $ac_func(); below. */
1821#include <assert.h>
1822/* Override any gcc2 internal prototype to avoid an error. */
1823/* We use char because int might match the return type of a gcc2
1824 builtin and then its argument prototype would still apply. */
1825char $ac_func();
1826
1827int main() {
1828
1829/* The GNU C library defines this for functions which it implements
1830 to always fail with ENOSYS. Some functions are actually named
1831 something starting with __ and the normal name is an alias. */
1832#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1833choke me
1834#else
1835$ac_func();
1836#endif
1837
1838; return 0; }
1839EOF
3e815572 1840if { (eval echo configure:1841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1227625a
SP
1841 rm -rf conftest*
1842 eval "ac_cv_func_$ac_func=yes"
1843else
1844 echo "configure: failed program was:" >&5
1845 cat conftest.$ac_ext >&5
1846 rm -rf conftest*
1847 eval "ac_cv_func_$ac_func=no"
1848fi
1849rm -f conftest*
1850fi
1851
1852if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1853 echo "$ac_t""yes" 1>&6
1854 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1855 cat >> confdefs.h <<EOF
1856#define $ac_tr_func 1
1857EOF
1858
1859else
1860 echo "$ac_t""no" 1>&6
1861fi
1862done
1863
5c1faba5 1864echo $ac_n "checking for glob""... $ac_c" 1>&6
3e815572 1865echo "configure:1866: checking for glob" >&5
5c1faba5
SP
1866if eval "test \"`echo '$''{'ac_cv_func_glob'+set}'`\" = set"; then
1867 echo $ac_n "(cached) $ac_c" 1>&6
1868else
1869 cat > conftest.$ac_ext <<EOF
3e815572 1870#line 1871 "configure"
5c1faba5
SP
1871#include "confdefs.h"
1872/* System header to define __stub macros and hopefully few prototypes,
1873 which can conflict with char glob(); below. */
1874#include <assert.h>
1875/* Override any gcc2 internal prototype to avoid an error. */
1876/* We use char because int might match the return type of a gcc2
1877 builtin and then its argument prototype would still apply. */
1878char glob();
1879
1880int main() {
1881
1882/* The GNU C library defines this for functions which it implements
1883 to always fail with ENOSYS. Some functions are actually named
1884 something starting with __ and the normal name is an alias. */
1885#if defined (__stub_glob) || defined (__stub___glob)
1886choke me
1887#else
1888glob();
1889#endif
1890
1891; return 0; }
1892EOF
3e815572 1893if { (eval echo configure:1894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5c1faba5
SP
1894 rm -rf conftest*
1895 eval "ac_cv_func_glob=yes"
1896else
1897 echo "configure: failed program was:" >&5
1898 cat conftest.$ac_ext >&5
1899 rm -rf conftest*
1900 eval "ac_cv_func_glob=no"
1901fi
1902rm -f conftest*
1903fi
1904
1905if eval "test \"`echo '$ac_cv_func_'glob`\" = yes"; then
1906 echo "$ac_t""yes" 1>&6
1907 :
1908else
1909 echo "$ac_t""no" 1>&6
1910fi
1911
1912
1913if test "$ac_cv_func_glob" = "yes"; then
1914 cat > conftest.$ac_ext <<EOF
3e815572 1915#line 1916 "configure"
5c1faba5
SP
1916#include "confdefs.h"
1917
1918# include <glob.h>
1919# ifdef GLOB_ALTDIRFUNC
1920 yes
1921# endif
1922
1923EOF
1924if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1925 egrep "yes" >/dev/null 2>&1; then
1926 rm -rf conftest*
1927 cat >> confdefs.h <<\EOF
1928#define HAVE_GLOB 1
1929EOF
1930
1931else
1932 rm -rf conftest*
1933 noglob=yes
1934fi
1935rm -f conftest*
1936
1937 if test "$noglob" = "yes"; then
1938 echo "Your system does not support extended glob, will use the internal routines"
1939 fi
1940fi
1227625a
SP
1941
1942echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
bd731171 1943echo "configure:1944: checking for ANSI C header files" >&5
1227625a
SP
1944if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1945 echo $ac_n "(cached) $ac_c" 1>&6
1946else
1947 cat > conftest.$ac_ext <<EOF
bd731171 1948#line 1949 "configure"
1227625a
SP
1949#include "confdefs.h"
1950#include <stdlib.h>
1951#include <stdarg.h>
1952#include <string.h>
1953#include <float.h>
1954EOF
1955ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
bd731171 1956{ (eval echo configure:1957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ddd2ef55 1957ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1227625a
SP
1958if test -z "$ac_err"; then
1959 rm -rf conftest*
1960 ac_cv_header_stdc=yes
1961else
1962 echo "$ac_err" >&5
1963 echo "configure: failed program was:" >&5
1964 cat conftest.$ac_ext >&5
1965 rm -rf conftest*
1966 ac_cv_header_stdc=no
1967fi
1968rm -f conftest*
1969
1970if test $ac_cv_header_stdc = yes; then
1971 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1972cat > conftest.$ac_ext <<EOF
bd731171 1973#line 1974 "configure"
1227625a
SP
1974#include "confdefs.h"
1975#include <string.h>
1976EOF
1977if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1978 egrep "memchr" >/dev/null 2>&1; then
1979 :
1980else
1981 rm -rf conftest*
1982 ac_cv_header_stdc=no
1983fi
1984rm -f conftest*
1985
1986fi
1987
1988if test $ac_cv_header_stdc = yes; then
1989 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1990cat > conftest.$ac_ext <<EOF
bd731171 1991#line 1992 "configure"
1227625a
SP
1992#include "confdefs.h"
1993#include <stdlib.h>
1994EOF
1995if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1996 egrep "free" >/dev/null 2>&1; then
1997 :
1998else
1999 rm -rf conftest*
2000 ac_cv_header_stdc=no
2001fi
2002rm -f conftest*
2003
2004fi
2005
2006if test $ac_cv_header_stdc = yes; then
2007 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2008if test "$cross_compiling" = yes; then
2009 :
2010else
2011 cat > conftest.$ac_ext <<EOF
bd731171 2012#line 2013 "configure"
1227625a
SP
2013#include "confdefs.h"
2014#include <ctype.h>
2015#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2016#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2017#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2018int main () { int i; for (i = 0; i < 256; i++)
2019if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2020exit (0); }
2021
2022EOF
bd731171 2023if { (eval echo configure:2024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1227625a
SP
2024then
2025 :
2026else
2027 echo "configure: failed program was:" >&5
2028 cat conftest.$ac_ext >&5
2029 rm -fr conftest*
2030 ac_cv_header_stdc=no
2031fi
2032rm -fr conftest*
2033fi
2034
2035fi
2036fi
2037
2038echo "$ac_t""$ac_cv_header_stdc" 1>&6
2039if test $ac_cv_header_stdc = yes; then
2040 cat >> confdefs.h <<\EOF
2041#define STDC_HEADERS 1
2042EOF
2043
2044fi
2045
2046echo $ac_n "checking for quad_t""... $ac_c" 1>&6
bd731171 2047echo "configure:2048: checking for quad_t" >&5
1227625a
SP
2048if eval "test \"`echo '$''{'ac_cv_type_quad_t'+set}'`\" = set"; then
2049 echo $ac_n "(cached) $ac_c" 1>&6
2050else
2051 cat > conftest.$ac_ext <<EOF
bd731171 2052#line 2053 "configure"
1227625a
SP
2053#include "confdefs.h"
2054#include <sys/types.h>
2055#if STDC_HEADERS
2056#include <stdlib.h>
2057#include <stddef.h>
2058#endif
2059EOF
2060if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ddd2ef55 2061 egrep "(^|[^a-zA-Z_0-9])quad_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1227625a
SP
2062 rm -rf conftest*
2063 ac_cv_type_quad_t=yes
2064else
2065 rm -rf conftest*
2066 ac_cv_type_quad_t=no
2067fi
2068rm -f conftest*
2069
2070fi
2071echo "$ac_t""$ac_cv_type_quad_t" 1>&6
2072if test $ac_cv_type_quad_t = no; then
2073 cat >> confdefs.h <<\EOF
2074#define quad_t __s64
2075EOF
2076
2077fi
2078
2079echo $ac_n "checking for u_quad_t""... $ac_c" 1>&6
bd731171 2080echo "configure:2081: checking for u_quad_t" >&5
1227625a
SP
2081if eval "test \"`echo '$''{'ac_cv_type_u_quad_t'+set}'`\" = set"; then
2082 echo $ac_n "(cached) $ac_c" 1>&6
2083else
2084 cat > conftest.$ac_ext <<EOF
bd731171 2085#line 2086 "configure"
1227625a
SP
2086#include "confdefs.h"
2087#include <sys/types.h>
2088#if STDC_HEADERS
2089#include <stdlib.h>
2090#include <stddef.h>
2091#endif
2092EOF
2093if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ddd2ef55 2094 egrep "(^|[^a-zA-Z_0-9])u_quad_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1227625a
SP
2095 rm -rf conftest*
2096 ac_cv_type_u_quad_t=yes
2097else
2098 rm -rf conftest*
2099 ac_cv_type_u_quad_t=no
2100fi
2101rm -f conftest*
2102
2103fi
2104echo "$ac_t""$ac_cv_type_u_quad_t" 1>&6
2105if test $ac_cv_type_u_quad_t = no; then
2106 cat >> confdefs.h <<\EOF
2107#define u_quad_t __u64
2108EOF
2109
2110fi
2111
2112
2113top_builddir=`cd .; pwd`
2114
2115
2116test -d compat || mkdir compat
2117test -d compat/lib || mkdir compat/lib
2118
2119trap '' 1 2 15
2120cat > confcache <<\EOF
2121# This file is a shell script that caches the results of configure
2122# tests run on this system so they can be shared between configure
2123# scripts and configure runs. It is not useful on other systems.
2124# If it contains results you don't want to keep, you may remove or edit it.
2125#
2126# By default, configure uses ./config.cache as the cache file,
2127# creating it if it does not exist already. You can give configure
2128# the --cache-file=FILE option to use a different cache file; that is
2129# what configure does when it calls configure scripts in
2130# subdirectories, so they share the cache.
2131# Giving --cache-file=/dev/null disables caching, for debugging configure.
2132# config.status only pays attention to the cache file if you give it the
2133# --recheck option to rerun configure.
2134#
2135EOF
2136# The following way of writing the cache mishandles newlines in values,
2137# but we know of no workaround that is simple, portable, and efficient.
2138# So, don't put newlines in cache variables' values.
2139# Ultrix sh set writes to stderr and can't be redirected directly,
2140# and sets the high bit in the cache file unless we assign to the vars.
2141(set) 2>&1 |
ddd2ef55 2142 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1227625a
SP
2143 *ac_space=\ *)
2144 # `set' does not quote correctly, so add quotes (double-quote substitution
2145 # turns \\\\ into \\, and sed turns \\ into \).
2146 sed -n \
2147 -e "s/'/'\\\\''/g" \
2148 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2149 ;;
2150 *)
2151 # `set' quotes correctly as required by POSIX, so do not add quotes.
2152 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2153 ;;
2154 esac >> confcache
2155if cmp -s $cache_file confcache; then
2156 :
2157else
2158 if test -w $cache_file; then
2159 echo "updating cache $cache_file"
2160 cat confcache > $cache_file
2161 else
2162 echo "not updating unwritable cache $cache_file"
2163 fi
2164fi
2165rm -f confcache
2166
2167trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2168
2169test "x$prefix" = xNONE && prefix=$ac_default_prefix
2170# Let make expand exec_prefix.
2171test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2172
2173# Any assignment to VPATH causes Sun make to only execute
2174# the first set of double-colon rules, so remove it if not needed.
2175# If there is a colon in the path, we need to keep it.
2176if test "x$srcdir" = x.; then
2177 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2178fi
2179
2180trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2181
2182DEFS=-DHAVE_CONFIG_H
2183
2184# Without the "./", some shells look in PATH for config.status.
2185: ${CONFIG_STATUS=./config.status}
2186
2187echo creating $CONFIG_STATUS
2188rm -f $CONFIG_STATUS
2189cat > $CONFIG_STATUS <<EOF
2190#! /bin/sh
2191# Generated automatically by configure.
2192# Run this file to recreate the current configuration.
2193# This directory was configured as follows,
2194# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2195#
2196# $0 $ac_configure_args
2197#
2198# Compiler output produced by configure, useful for debugging
2199# configure, is in ./config.log if it exists.
2200
2201ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2202for ac_option
2203do
2204 case "\$ac_option" in
2205 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2206 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2207 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2208 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
ddd2ef55 2209 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1227625a
SP
2210 exit 0 ;;
2211 -help | --help | --hel | --he | --h)
2212 echo "\$ac_cs_usage"; exit 0 ;;
2213 *) echo "\$ac_cs_usage"; exit 1 ;;
2214 esac
2215done
2216
2217ac_given_srcdir=$srcdir
2218ac_given_INSTALL="$INSTALL"
2219
8d4197bb 2220trap '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
2221EOF
2222cat >> $CONFIG_STATUS <<EOF
2223
2224# Protect against being on the right side of a sed subst in config.status.
2225sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2226 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2227$ac_vpsub
2228$extrasub
ddd2ef55 2229s%@SHELL@%$SHELL%g
1227625a
SP
2230s%@CFLAGS@%$CFLAGS%g
2231s%@CPPFLAGS@%$CPPFLAGS%g
2232s%@CXXFLAGS@%$CXXFLAGS%g
ddd2ef55 2233s%@FFLAGS@%$FFLAGS%g
1227625a
SP
2234s%@DEFS@%$DEFS%g
2235s%@LDFLAGS@%$LDFLAGS%g
2236s%@LIBS@%$LIBS%g
2237s%@exec_prefix@%$exec_prefix%g
2238s%@prefix@%$prefix%g
2239s%@program_transform_name@%$program_transform_name%g
2240s%@bindir@%$bindir%g
2241s%@sbindir@%$sbindir%g
2242s%@libexecdir@%$libexecdir%g
2243s%@datadir@%$datadir%g
2244s%@sysconfdir@%$sysconfdir%g
2245s%@sharedstatedir@%$sharedstatedir%g
2246s%@localstatedir@%$localstatedir%g
2247s%@libdir@%$libdir%g
2248s%@includedir@%$includedir%g
2249s%@oldincludedir@%$oldincludedir%g
2250s%@infodir@%$infodir%g
2251s%@mandir@%$mandir%g
2252/@MCONFIG@/r $MCONFIG
2253s%@MCONFIG@%%g
2254s%@SET_MAKE@%$SET_MAKE%g
2255s%@LN_S@%$LN_S%g
2256s%@CP@%$CP%g
2257s%@MV@%$MV%g
2258s%@RM@%$RM%g
2259s%@host@%$host%g
2260s%@host_alias@%$host_alias%g
2261s%@host_cpu@%$host_cpu%g
2262s%@host_vendor@%$host_vendor%g
2263s%@host_os@%$host_os%g
2264s%@build@%$build%g
2265s%@build_alias@%$build_alias%g
2266s%@build_cpu@%$build_cpu%g
2267s%@build_vendor@%$build_vendor%g
2268s%@build_os@%$build_os%g
2269s%@AR@%$AR%g
2270s%@RANLIB@%$RANLIB%g
2271s%@PATCH@%$PATCH%g
2272s%@CC@%$CC%g
2273s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
ddd2ef55 2274s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1227625a
SP
2275s%@INSTALL_DATA@%$INSTALL_DATA%g
2276s%@DUMPDEBUG@%$DUMPDEBUG%g
2277s%@RESTOREDEBUG@%$RESTOREDEBUG%g
2278s%@STATIC@%$STATIC%g
2279s%@RMTDIR@%$RMTDIR%g
2ed89fda 2280s%@OPTDEFS@%$OPTDEFS%g
c38e5b6a 2281s%@READLINE@%$READLINE%g
1227625a
SP
2282s%@LD@%$LD%g
2283s%@CCOPTS@%$CCOPTS%g
2284s%@BINOWNER@%$BINOWNER%g
2285s%@BINGRP@%$BINGRP%g
2286s%@BINMODE@%$BINMODE%g
2287s%@MANOWNER@%$MANOWNER%g
2288s%@MANGRP@%$MANGRP%g
2289s%@MANMODE@%$MANMODE%g
8d4197bb 2290s%@DUMPDATESPATH@%$DUMPDATESPATH%g
1227625a
SP
2291s%@CPP@%$CPP%g
2292s%@top_builddir@%$top_builddir%g
2293
2294CEOF
2295EOF
2296
2297cat >> $CONFIG_STATUS <<\EOF
2298
2299# Split the substitutions into bite-sized pieces for seds with
2300# small command number limits, like on Digital OSF/1 and HP-UX.
2301ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2302ac_file=1 # Number of current file.
2303ac_beg=1 # First line for current file.
2304ac_end=$ac_max_sed_cmds # Line after last line for current file.
2305ac_more_lines=:
2306ac_sed_cmds=""
2307while $ac_more_lines; do
2308 if test $ac_beg -gt 1; then
2309 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2310 else
2311 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2312 fi
2313 if test ! -s conftest.s$ac_file; then
2314 ac_more_lines=false
2315 rm -f conftest.s$ac_file
2316 else
2317 if test -z "$ac_sed_cmds"; then
2318 ac_sed_cmds="sed -f conftest.s$ac_file"
2319 else
2320 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2321 fi
2322 ac_file=`expr $ac_file + 1`
2323 ac_beg=$ac_end
2324 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2325 fi
2326done
2327if test -z "$ac_sed_cmds"; then
2328 ac_sed_cmds=cat
2329fi
2330EOF
2331
2332cat >> $CONFIG_STATUS <<EOF
2333
8d4197bb 2334CONFIG_FILES=\${CONFIG_FILES-"MCONFIG Makefile common/Makefile compat/include/Makefile compat/lib/Makefile dump/Makefile restore/Makefile $RMTMAKEFILE"}
1227625a
SP
2335EOF
2336cat >> $CONFIG_STATUS <<\EOF
2337for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2338 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2339 case "$ac_file" in
2340 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2341 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2342 *) ac_file_in="${ac_file}.in" ;;
2343 esac
2344
2345 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2346
2347 # Remove last slash and all that follows it. Not all systems have dirname.
2348 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2349 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2350 # The file is in a subdirectory.
2351 test ! -d "$ac_dir" && mkdir "$ac_dir"
2352 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2353 # A "../" for each directory in $ac_dir_suffix.
2354 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2355 else
2356 ac_dir_suffix= ac_dots=
2357 fi
2358
2359 case "$ac_given_srcdir" in
2360 .) srcdir=.
2361 if test -z "$ac_dots"; then top_srcdir=.
2362 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2363 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2364 *) # Relative path.
2365 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2366 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2367 esac
2368
2369 case "$ac_given_INSTALL" in
2370 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2371 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2372 esac
2373
2374 echo creating "$ac_file"
2375 rm -f "$ac_file"
2376 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2377 case "$ac_file" in
2378 *Makefile*) ac_comsub="1i\\
2379# $configure_input" ;;
2380 *) ac_comsub= ;;
2381 esac
2382
2383 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2384 sed -e "$ac_comsub
2385s%@configure_input@%$configure_input%g
2386s%@srcdir@%$srcdir%g
2387s%@top_srcdir@%$top_srcdir%g
2388s%@INSTALL@%$INSTALL%g
2389" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2390fi; done
2391rm -f conftest.s*
2392
2393# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2394# NAME is the cpp macro being defined and VALUE is the value it is being given.
2395#
2396# ac_d sets the value in "#define NAME VALUE" lines.
2397ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2398ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2399ac_dC='\3'
2400ac_dD='%g'
2401# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2402ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2403ac_uB='\([ ]\)%\1#\2define\3'
2404ac_uC=' '
2405ac_uD='\4%g'
2406# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2407ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2408ac_eB='$%\1#\2define\3'
2409ac_eC=' '
2410ac_eD='%g'
2411
2412if test "${CONFIG_HEADERS+set}" != set; then
2413EOF
2414cat >> $CONFIG_STATUS <<EOF
2415 CONFIG_HEADERS="config.h"
2416EOF
2417cat >> $CONFIG_STATUS <<\EOF
2418fi
2419for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2420 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2421 case "$ac_file" in
2422 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2423 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2424 *) ac_file_in="${ac_file}.in" ;;
2425 esac
2426
2427 echo creating $ac_file
2428
2429 rm -f conftest.frag conftest.in conftest.out
2430 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2431 cat $ac_file_inputs > conftest.in
2432
2433EOF
2434
2435# Transform confdefs.h into a sed script conftest.vals that substitutes
2436# the proper values into config.h.in to produce config.h. And first:
2437# Protect against being on the right side of a sed subst in config.status.
2438# Protect against being in an unquoted here document in config.status.
2439rm -f conftest.vals
2440cat > conftest.hdr <<\EOF
2441s/[\\&%]/\\&/g
2442s%[\\$`]%\\&%g
2443s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2444s%ac_d%ac_u%gp
2445s%ac_u%ac_e%gp
2446EOF
2447sed -n -f conftest.hdr confdefs.h > conftest.vals
2448rm -f conftest.hdr
2449
2450# This sed command replaces #undef with comments. This is necessary, for
2451# example, in the case of _POSIX_SOURCE, which is predefined and required
2452# on some systems where configure will not decide to define it.
2453cat >> conftest.vals <<\EOF
2454s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2455EOF
2456
2457# Break up conftest.vals because some shells have a limit on
2458# the size of here documents, and old seds have small limits too.
2459
2460rm -f conftest.tail
2461while :
2462do
2463 ac_lines=`grep -c . conftest.vals`
2464 # grep -c gives empty output for an empty file on some AIX systems.
2465 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2466 # Write a limited-size here document to conftest.frag.
2467 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2468 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2469 echo 'CEOF
2470 sed -f conftest.frag conftest.in > conftest.out
2471 rm -f conftest.in
2472 mv conftest.out conftest.in
2473' >> $CONFIG_STATUS
2474 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2475 rm -f conftest.vals
2476 mv conftest.tail conftest.vals
2477done
2478rm -f conftest.vals
2479
2480cat >> $CONFIG_STATUS <<\EOF
2481 rm -f conftest.frag conftest.h
2482 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2483 cat conftest.in >> conftest.h
2484 rm -f conftest.in
2485 if cmp -s $ac_file conftest.h 2>/dev/null; then
2486 echo "$ac_file is unchanged"
2487 rm -f conftest.h
2488 else
2489 # Remove last slash and all that follows it. Not all systems have dirname.
2490 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2491 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2492 # The file is in a subdirectory.
2493 test ! -d "$ac_dir" && mkdir "$ac_dir"
2494 fi
2495 rm -f $ac_file
2496 mv conftest.h $ac_file
2497 fi
2498fi; done
2499
2500EOF
2501cat >> $CONFIG_STATUS <<EOF
2502
2503EOF
2504cat >> $CONFIG_STATUS <<\EOF
2505
2506exit 0
2507EOF
2508chmod +x $CONFIG_STATUS
2509rm -fr confdefs* $ac_clean_files
2510test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2511