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