]> git.wh0rd.org - dump.git/blob - configure
Empty the sigaction structure to be portable.
[dump.git] / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
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:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-debug include debugging code"
16 ac_help="$ac_help
17 --enable-static link dump and restore statically"
18 ac_help="$ac_help
19 --enable-rmt compile and install rmt"
20 ac_help="$ac_help
21 --enable-kerberos compile kerberos extensions"
22 ac_help="$ac_help
23 --enable-readline enable readline support in restore"
24 ac_help="$ac_help
25 --enable-oldstylefscript enable old style F script (no arguments)"
26 ac_help="$ac_help
27 --with-cc=COMPILER select compiler to use"
28 ac_help="$ac_help
29 --with-linker=LINKER select linker to use"
30 ac_help="$ac_help
31 --with-ccopts=CCOPTS select compiler command line options"
32 ac_help="$ac_help
33 --with-ldopts=LDOPTS select linker command line options"
34 ac_help="$ac_help
35 --with-binowner=USER select owner for binaries"
36 ac_help="$ac_help
37 --with-bingrp=GROUP select group for binaries"
38 ac_help="$ac_help
39 --with-binmode=MODE select mode for binaries"
40 ac_help="$ac_help
41 --with-manowner=USER select owner for manual pages"
42 ac_help="$ac_help
43 --with-mangrp=GROUP select group for manual pages"
44 ac_help="$ac_help
45 --with-manmode=MODE select mode for manual pages"
46 ac_help="$ac_help
47 --with-dumpdatespath=PATH select path for dumpdates file"
48
49 # Initialize some variables set by options.
50 # The variables have the same names as the options, with
51 # dashes changed to underlines.
52 build=NONE
53 cache_file=./config.cache
54 exec_prefix=NONE
55 host=NONE
56 no_create=
57 nonopt=NONE
58 no_recursion=
59 prefix=NONE
60 program_prefix=NONE
61 program_suffix=NONE
62 program_transform_name=s,x,x,
63 silent=
64 site=
65 srcdir=
66 target=NONE
67 verbose=
68 x_includes=NONE
69 x_libraries=NONE
70 bindir='${exec_prefix}/bin'
71 sbindir='${exec_prefix}/sbin'
72 libexecdir='${exec_prefix}/libexec'
73 datadir='${prefix}/share'
74 sysconfdir='${prefix}/etc'
75 sharedstatedir='${prefix}/com'
76 localstatedir='${prefix}/var'
77 libdir='${exec_prefix}/lib'
78 includedir='${prefix}/include'
79 oldincludedir='/usr/include'
80 infodir='${prefix}/info'
81 mandir='${prefix}/man'
82
83 # Initialize some other variables.
84 subdirs=
85 MFLAGS= MAKEFLAGS=
86 SHELL=${CONFIG_SHELL-/bin/sh}
87 # Maximum number of lines to put in a shell here document.
88 ac_max_here_lines=12
89
90 ac_prev=
91 for ac_option
92 do
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
172 Usage: configure [options] [host]
173 Options: [defaults in brackets after descriptions]
174 Configuration:
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
180 Directory 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
204 EOF
205 cat << EOF
206 Host 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]
210 Features 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
217 EOF
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)
370 echo "configure generated by autoconf version 2.13"
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
427 done
428
429 if test -n "$ac_prev"; then
430 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
431 fi
432
433 trap '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
443 if test "$silent" = yes; then
444 exec 6>/dev/null
445 else
446 exec 6>&1
447 fi
448 exec 5>./config.log
449
450 echo "\
451 This file contains any messages produced by compilers while
452 running 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.
457 ac_configure_args=
458 for ac_arg
459 do
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
469 done
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.
476 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
477 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
478 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
479 if 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.
482 rm -rf conftest* confdefs.h
483 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
484 echo > 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.
488 ac_unique_file=dump/dump.h
489
490 # Find the source files, if location was not specified.
491 if 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
501 else
502 ac_srcdir_defaulted=no
503 fi
504 if 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
510 fi
511 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
512
513 # Prefer explicitly selected file to automatically selected ones.
514 if 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
520 fi
521 for 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
526 done
527
528 if test -r "$cache_file"; then
529 echo "loading cache $cache_file"
530 . $cache_file
531 else
532 echo "creating cache $cache_file"
533 > $cache_file
534 fi
535
536 ac_ext=c
537 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
538 ac_cpp='$CPP $CPPFLAGS'
539 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
540 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
541 cross_compiling=$ac_cv_prog_cc_cross
542
543 ac_exeext=
544 ac_objext=o
545 if (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
553 else
554 ac_n= ac_c='\c' ac_t=
555 fi
556
557
558
559 MCONFIG=./MCONFIG
560
561
562
563
564 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
565 echo "configure:566: checking whether ${MAKE-make} sets \${MAKE}" >&5
566 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
567 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
568 echo $ac_n "(cached) $ac_c" 1>&6
569 else
570 cat > conftestmake <<\EOF
571 all:
572 @echo 'ac_maketemp="${MAKE}"'
573 EOF
574 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
575 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
576 if test -n "$ac_maketemp"; then
577 eval ac_cv_prog_make_${ac_make}_set=yes
578 else
579 eval ac_cv_prog_make_${ac_make}_set=no
580 fi
581 rm -f conftestmake
582 fi
583 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
584 echo "$ac_t""yes" 1>&6
585 SET_MAKE=
586 else
587 echo "$ac_t""no" 1>&6
588 SET_MAKE="MAKE=${MAKE-make}"
589 fi
590
591 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
592 echo "configure:593: checking whether ln -s works" >&5
593 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
594 echo $ac_n "(cached) $ac_c" 1>&6
595 else
596 rm -f conftestdata
597 if ln -s X conftestdata 2>/dev/null
598 then
599 rm -f conftestdata
600 ac_cv_prog_LN_S="ln -s"
601 else
602 ac_cv_prog_LN_S=ln
603 fi
604 fi
605 LN_S="$ac_cv_prog_LN_S"
606 if test "$ac_cv_prog_LN_S" = "ln -s"; then
607 echo "$ac_t""yes" 1>&6
608 else
609 echo "$ac_t""no" 1>&6
610 fi
611
612 # Extract the first word of "cp", so it can be a program name with args.
613 set dummy cp; ac_word=$2
614 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
615 echo "configure:616: checking for $ac_word" >&5
616 if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
617 echo $ac_n "(cached) $ac_c" 1>&6
618 else
619 case "$CP" in
620 /*)
621 ac_cv_path_CP="$CP" # Let the user override the test with a path.
622 ;;
623 ?:/*)
624 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
625 ;;
626 *)
627 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
628 ac_dummy="$PATH"
629 for ac_dir in $ac_dummy; do
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 ;;
639 esac
640 fi
641 CP="$ac_cv_path_CP"
642 if test -n "$CP"; then
643 echo "$ac_t""$CP" 1>&6
644 else
645 echo "$ac_t""no" 1>&6
646 fi
647
648 # Extract the first word of "mv", so it can be a program name with args.
649 set dummy mv; ac_word=$2
650 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
651 echo "configure:652: checking for $ac_word" >&5
652 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
653 echo $ac_n "(cached) $ac_c" 1>&6
654 else
655 case "$MV" in
656 /*)
657 ac_cv_path_MV="$MV" # Let the user override the test with a path.
658 ;;
659 ?:/*)
660 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
661 ;;
662 *)
663 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
664 ac_dummy="$PATH"
665 for ac_dir in $ac_dummy; do
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 ;;
675 esac
676 fi
677 MV="$ac_cv_path_MV"
678 if test -n "$MV"; then
679 echo "$ac_t""$MV" 1>&6
680 else
681 echo "$ac_t""no" 1>&6
682 fi
683
684 # Extract the first word of "rm", so it can be a program name with args.
685 set dummy rm; ac_word=$2
686 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
687 echo "configure:688: checking for $ac_word" >&5
688 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
689 echo $ac_n "(cached) $ac_c" 1>&6
690 else
691 case "$RM" in
692 /*)
693 ac_cv_path_RM="$RM" # Let the user override the test with a path.
694 ;;
695 ?:/*)
696 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
697 ;;
698 *)
699 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
700 ac_dummy="$PATH"
701 for ac_dir in $ac_dummy; do
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 ;;
711 esac
712 fi
713 RM="$ac_cv_path_RM"
714 if test -n "$RM"; then
715 echo "$ac_t""$RM" 1>&6
716 else
717 echo "$ac_t""no" 1>&6
718 fi
719
720 ac_aux_dir=
721 for 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
731 done
732 if 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; }
734 fi
735 ac_config_guess=$ac_aux_dir/config.guess
736 ac_config_sub=$ac_aux_dir/config.sub
737 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
738
739
740 # Make sure we can run config.sub.
741 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
742 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
743 fi
744
745 echo $ac_n "checking host system type""... $ac_c" 1>&6
746 echo "configure:747: checking host system type" >&5
747
748 host_alias=$host
749 case "$host_alias" in
750 NONE)
751 case $nonopt in
752 NONE)
753 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
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 ;;
758 esac
759
760 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
761 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
762 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
763 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
764 echo "$ac_t""$host" 1>&6
765
766 echo $ac_n "checking build system type""... $ac_c" 1>&6
767 echo "configure:768: checking build system type" >&5
768
769 build_alias=$build
770 case "$build_alias" in
771 NONE)
772 case $nonopt in
773 NONE) build_alias=$host_alias ;;
774 *) build_alias=$nonopt ;;
775 esac ;;
776 esac
777
778 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
779 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
780 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
781 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
782 echo "$ac_t""$build" 1>&6
783
784 if test $host != $build; then
785 ac_tool_prefix=${host_alias}-
786 else
787 ac_tool_prefix=
788 fi
789
790 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
791 set dummy ${ac_tool_prefix}ar; ac_word=$2
792 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
793 echo "configure:794: checking for $ac_word" >&5
794 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
795 echo $ac_n "(cached) $ac_c" 1>&6
796 else
797 if test -n "$AR"; then
798 ac_cv_prog_AR="$AR" # Let the user override the test.
799 else
800 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
801 ac_dummy="$PATH"
802 for ac_dir in $ac_dummy; do
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"
810 fi
811 fi
812 AR="$ac_cv_prog_AR"
813 if test -n "$AR"; then
814 echo "$ac_t""$AR" 1>&6
815 else
816 echo "$ac_t""no" 1>&6
817 fi
818
819
820 if test -z "$ac_cv_prog_AR"; then
821 if test -n "$ac_tool_prefix"; then
822 # Extract the first word of "ar", so it can be a program name with args.
823 set dummy ar; ac_word=$2
824 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
825 echo "configure:826: checking for $ac_word" >&5
826 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
827 echo $ac_n "(cached) $ac_c" 1>&6
828 else
829 if test -n "$AR"; then
830 ac_cv_prog_AR="$AR" # Let the user override the test.
831 else
832 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
833 ac_dummy="$PATH"
834 for ac_dir in $ac_dummy; do
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"
843 fi
844 fi
845 AR="$ac_cv_prog_AR"
846 if test -n "$AR"; then
847 echo "$ac_t""$AR" 1>&6
848 else
849 echo "$ac_t""no" 1>&6
850 fi
851
852 else
853 AR="ar"
854 fi
855 fi
856
857 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
858 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
859 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
860 echo "configure:861: checking for $ac_word" >&5
861 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
862 echo $ac_n "(cached) $ac_c" 1>&6
863 else
864 if test -n "$RANLIB"; then
865 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
866 else
867 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
868 ac_dummy="$PATH"
869 for ac_dir in $ac_dummy; do
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"
877 fi
878 fi
879 RANLIB="$ac_cv_prog_RANLIB"
880 if test -n "$RANLIB"; then
881 echo "$ac_t""$RANLIB" 1>&6
882 else
883 echo "$ac_t""no" 1>&6
884 fi
885
886
887 if test -z "$ac_cv_prog_RANLIB"; then
888 if test -n "$ac_tool_prefix"; then
889 # Extract the first word of "ranlib", so it can be a program name with args.
890 set dummy ranlib; ac_word=$2
891 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
892 echo "configure:893: checking for $ac_word" >&5
893 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
894 echo $ac_n "(cached) $ac_c" 1>&6
895 else
896 if test -n "$RANLIB"; then
897 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
898 else
899 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
900 ac_dummy="$PATH"
901 for ac_dir in $ac_dummy; do
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=":"
910 fi
911 fi
912 RANLIB="$ac_cv_prog_RANLIB"
913 if test -n "$RANLIB"; then
914 echo "$ac_t""$RANLIB" 1>&6
915 else
916 echo "$ac_t""no" 1>&6
917 fi
918
919 else
920 RANLIB=":"
921 fi
922 fi
923
924 # Extract the first word of "${ac_tool_prefix}patch", so it can be a program name with args.
925 set dummy ${ac_tool_prefix}patch; ac_word=$2
926 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
927 echo "configure:928: checking for $ac_word" >&5
928 if eval "test \"`echo '$''{'ac_cv_prog_PATCH'+set}'`\" = set"; then
929 echo $ac_n "(cached) $ac_c" 1>&6
930 else
931 if test -n "$PATCH"; then
932 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
933 else
934 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
935 ac_dummy="$PATH"
936 for ac_dir in $ac_dummy; do
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"
944 fi
945 fi
946 PATCH="$ac_cv_prog_PATCH"
947 if test -n "$PATCH"; then
948 echo "$ac_t""$PATCH" 1>&6
949 else
950 echo "$ac_t""no" 1>&6
951 fi
952
953
954 if test -z "$ac_cv_prog_PATCH"; then
955 if test -n "$ac_tool_prefix"; then
956 # Extract the first word of "patch", so it can be a program name with args.
957 set dummy patch; ac_word=$2
958 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
959 echo "configure:960: checking for $ac_word" >&5
960 if eval "test \"`echo '$''{'ac_cv_prog_PATCH'+set}'`\" = set"; then
961 echo $ac_n "(cached) $ac_c" 1>&6
962 else
963 if test -n "$PATCH"; then
964 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
965 else
966 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
967 ac_dummy="$PATH"
968 for ac_dir in $ac_dummy; do
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=":"
977 fi
978 fi
979 PATCH="$ac_cv_prog_PATCH"
980 if test -n "$PATCH"; then
981 echo "$ac_t""$PATCH" 1>&6
982 else
983 echo "$ac_t""no" 1>&6
984 fi
985
986 else
987 PATCH=":"
988 fi
989 fi
990
991 # Extract the first word of "gcc", so it can be a program name with args.
992 set dummy gcc; ac_word=$2
993 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
994 echo "configure:995: checking for $ac_word" >&5
995 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
996 echo $ac_n "(cached) $ac_c" 1>&6
997 else
998 if test -n "$CC"; then
999 ac_cv_prog_CC="$CC" # Let the user override the test.
1000 else
1001 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1002 ac_dummy="$PATH"
1003 for ac_dir in $ac_dummy; do
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"
1011 fi
1012 fi
1013 CC="$ac_cv_prog_CC"
1014 if test -n "$CC"; then
1015 echo "$ac_t""$CC" 1>&6
1016 else
1017 echo "$ac_t""no" 1>&6
1018 fi
1019
1020 if test -z "$CC"; then
1021 # Extract the first word of "cc", so it can be a program name with args.
1022 set dummy cc; ac_word=$2
1023 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1024 echo "configure:1025: checking for $ac_word" >&5
1025 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1026 echo $ac_n "(cached) $ac_c" 1>&6
1027 else
1028 if test -n "$CC"; then
1029 ac_cv_prog_CC="$CC" # Let the user override the test.
1030 else
1031 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1032 ac_prog_rejected=no
1033 ac_dummy="$PATH"
1034 for ac_dir in $ac_dummy; do
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"
1046 if 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
1059 fi
1060 fi
1061 fi
1062 CC="$ac_cv_prog_CC"
1063 if test -n "$CC"; then
1064 echo "$ac_t""$CC" 1>&6
1065 else
1066 echo "$ac_t""no" 1>&6
1067 fi
1068
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.
1073 set dummy cl; ac_word=$2
1074 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1075 echo "configure:1076: checking for $ac_word" >&5
1076 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1077 echo $ac_n "(cached) $ac_c" 1>&6
1078 else
1079 if test -n "$CC"; then
1080 ac_cv_prog_CC="$CC" # Let the user override the test.
1081 else
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"
1092 fi
1093 fi
1094 CC="$ac_cv_prog_CC"
1095 if test -n "$CC"; then
1096 echo "$ac_t""$CC" 1>&6
1097 else
1098 echo "$ac_t""no" 1>&6
1099 fi
1100 ;;
1101 esac
1102 fi
1103 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1104 fi
1105
1106 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1107 echo "configure:1108: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1108
1109 ac_ext=c
1110 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1111 ac_cpp='$CPP $CPPFLAGS'
1112 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1113 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1114 cross_compiling=$ac_cv_prog_cc_cross
1115
1116 cat > conftest.$ac_ext << EOF
1117
1118 #line 1119 "configure"
1119 #include "confdefs.h"
1120
1121 main(){return(0);}
1122 EOF
1123 if { (eval echo configure:1124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
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
1131 else
1132 echo "configure: failed program was:" >&5
1133 cat conftest.$ac_ext >&5
1134 ac_cv_prog_cc_works=no
1135 fi
1136 rm -fr conftest*
1137 ac_ext=c
1138 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1139 ac_cpp='$CPP $CPPFLAGS'
1140 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1141 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1142 cross_compiling=$ac_cv_prog_cc_cross
1143
1144 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1145 if 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; }
1147 fi
1148 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1149 echo "configure:1150: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1150 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1151 cross_compiling=$ac_cv_prog_cc_cross
1152
1153 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1154 echo "configure:1155: checking whether we are using GNU C" >&5
1155 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1156 echo $ac_n "(cached) $ac_c" 1>&6
1157 else
1158 cat > conftest.c <<EOF
1159 #ifdef __GNUC__
1160 yes;
1161 #endif
1162 EOF
1163 if { 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
1164 ac_cv_prog_gcc=yes
1165 else
1166 ac_cv_prog_gcc=no
1167 fi
1168 fi
1169
1170 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1171
1172 if test $ac_cv_prog_gcc = yes; then
1173 GCC=yes
1174 else
1175 GCC=
1176 fi
1177
1178 ac_test_CFLAGS="${CFLAGS+set}"
1179 ac_save_CFLAGS="$CFLAGS"
1180 CFLAGS=
1181 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1182 echo "configure:1183: checking whether ${CC-cc} accepts -g" >&5
1183 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1184 echo $ac_n "(cached) $ac_c" 1>&6
1185 else
1186 echo 'void f(){}' > conftest.c
1187 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1188 ac_cv_prog_cc_g=yes
1189 else
1190 ac_cv_prog_cc_g=no
1191 fi
1192 rm -f conftest*
1193
1194 fi
1195
1196 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1197 if test "$ac_test_CFLAGS" = set; then
1198 CFLAGS="$ac_save_CFLAGS"
1199 elif test $ac_cv_prog_cc_g = yes; then
1200 if test "$GCC" = yes; then
1201 CFLAGS="-g -O2"
1202 else
1203 CFLAGS="-g"
1204 fi
1205 else
1206 if test "$GCC" = yes; then
1207 CFLAGS="-O2"
1208 else
1209 CFLAGS=
1210 fi
1211 fi
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
1220 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
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.
1224 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1225 echo "configure:1226: checking for a BSD compatible install" >&5
1226 if test -z "$INSTALL"; then
1227 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1228 echo $ac_n "(cached) $ac_c" 1>&6
1229 else
1230 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
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.
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
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.
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
1256 fi
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
1266 fi
1267 echo "$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.
1271 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1272
1273 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1274
1275 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1276
1277
1278 # Check whether --enable-debug or --disable-debug was given.
1279 if test "${enable_debug+set}" = set; then
1280 enableval="$enable_debug"
1281 if test "$enableval" = "no"
1282 then
1283 DUMPDEBUG=""
1284 RESTOREDEBUG=""
1285 else
1286 DUMPDEBUG="-DFDEBUG -DTDEBUG -DWRITEDEBUG -DDIRDEBUG"
1287 RESTOREDEBUG="-DDIRDEBUG"
1288 fi
1289 else
1290 DUMPDEBUG=""
1291 RESTOREDEBUG=""
1292
1293 fi
1294
1295
1296
1297
1298 # Check whether --enable-static or --disable-static was given.
1299 if test "${enable_static+set}" = set; then
1300 enableval="$enable_static"
1301 if test "$enableval" = "no"
1302 then
1303 STATIC=""
1304 else
1305 STATIC="-static"
1306 fi
1307
1308 else
1309 STATIC=""
1310 echo "Linking dump and restore dynamically by default"
1311
1312 fi
1313
1314
1315
1316 # Check whether --enable-rmt or --disable-rmt was given.
1317 if test "${enable_rmt+set}" = set; then
1318 enableval="$enable_rmt"
1319 if test "$enableval" = "no"
1320 then
1321 RMTDIR=""
1322 RMTMAKEFILE=""
1323 else
1324 RMTDIR="rmt"
1325 RMTMAKEFILE="rmt/Makefile"
1326 fi
1327
1328 else
1329 RMTDIR=""
1330 echo "Not compiling rmt by default"
1331
1332 fi
1333
1334
1335
1336 # Check whether --enable-kerberos or --disable-kerberos was given.
1337 if test "${enable_kerberos+set}" = set; then
1338 enableval="$enable_kerberos"
1339 if test "$enableval" = "yes"
1340 then
1341 OPTDEFS="-DKERBEROS"
1342 else
1343 OPTDEFS=""
1344 fi
1345
1346 else
1347 OPTDEFS=""
1348 echo "Not compiling kerberos extensions by default"
1349
1350 fi
1351
1352
1353
1354 # Check whether --enable-readline or --disable-readline was given.
1355 if test "${enable_readline+set}" = set; then
1356 enableval="$enable_readline"
1357 if test "$enableval" = "no"
1358 then
1359 READLINE=""
1360 else
1361 READLINE="-lreadline -ltermcap"
1362 cat >> confdefs.h <<\EOF
1363 #define HAVE_READLINE 1
1364 EOF
1365
1366 fi
1367
1368 else
1369 READLINE=""
1370 echo "Not including readline support by default"
1371
1372 fi
1373
1374
1375
1376 # Check whether --enable-oldstylefscript or --disable-oldstylefscript was given.
1377 if test "${enable_oldstylefscript+set}" = set; then
1378 enableval="$enable_oldstylefscript"
1379 if test "$enableval" = "yes"
1380 then
1381 cat >> confdefs.h <<\EOF
1382 #define OLD_STYLE_FSCRIPT 1
1383 EOF
1384
1385 fi
1386
1387 else
1388 echo "Using new style F script"
1389
1390 fi
1391
1392
1393 # Check whether --with-cc or --without-cc was given.
1394 if test "${with_cc+set}" = set; then
1395 withval="$with_cc"
1396 echo "$ac_t""CC=$withval" 1>&6
1397 CC=$withval
1398 else
1399 if test -z "$CC" ; then CC=cc; fi
1400 echo "$ac_t""CC defaults to $CC" 1>&6
1401 fi
1402 export CC
1403
1404
1405 # Check whether --with-linker or --without-linker was given.
1406 if test "${with_linker+set}" = set; then
1407 withval="$with_linker"
1408 echo "$ac_t""LD=$withval" 1>&6
1409 LD=$withval
1410 else
1411 if test -z "$LD" ; then LD=$CC; fi
1412 echo "$ac_t""LD defaults to $LD" 1>&6
1413 fi
1414 export LD
1415
1416
1417 # Check whether --with-ccopts or --without-ccopts was given.
1418 if test "${with_ccopts+set}" = set; then
1419 withval="$with_ccopts"
1420 echo "$ac_t""CCOPTS is $withval" 1>&6
1421 CCOPTS=$withval
1422 CFLAGS="$CFLAGS $withval"
1423 else
1424 CCOPTS=
1425 fi
1426
1427
1428 # Check whether --with-ldopts or --without-ldopts was given.
1429 if test "${with_ldopts+set}" = set; then
1430 withval="$with_ldopts"
1431 echo "$ac_t""LDFLAGS is $withval" 1>&6
1432 LDFLAGS=$withval
1433 else
1434 LDFLAGS=
1435 fi
1436
1437
1438 # Check whether --with-binowner or --without-binowner was given.
1439 if test "${with_binowner+set}" = set; then
1440 withval="$with_binowner"
1441 echo "$ac_t""BINOWNER is $withval" 1>&6
1442 BINOWNER=$withval
1443 else
1444 BINOWNER=root
1445 echo "BINOWNER defaults to $BINOWNER"
1446
1447 fi
1448
1449
1450 # Check whether --with-bingrp or --without-bingrp was given.
1451 if test "${with_bingrp+set}" = set; then
1452 withval="$with_bingrp"
1453 echo "$ac_t""BINGRP is $withval" 1>&6
1454 BINGRP=$withval
1455 else
1456 BINGRP=tty
1457 echo "BINGRP defaults to $BINGRP"
1458
1459 fi
1460
1461
1462 # Check whether --with-binmode or --without-binmode was given.
1463 if test "${with_binmode+set}" = set; then
1464 withval="$with_binmode"
1465 echo "$ac_t""BINMODE is $withval" 1>&6
1466 BINMODE=$withval
1467 else
1468 BINMODE=0755
1469 echo "BINMODE defaults to $BINMODE"
1470
1471 fi
1472
1473
1474 # Check whether --with-manowner or --without-manowner was given.
1475 if test "${with_manowner+set}" = set; then
1476 withval="$with_manowner"
1477 echo "$ac_t""MANOWNER is $withval" 1>&6
1478 MANOWNER=$withval
1479 else
1480 MANOWNER=man
1481 echo "MANOWNER defaults to $MANOWNER"
1482
1483 fi
1484
1485
1486 # Check whether --with-mangrp or --without-mangrp was given.
1487 if test "${with_mangrp+set}" = set; then
1488 withval="$with_mangrp"
1489 echo "$ac_t""MANGRP is $withval" 1>&6
1490 MANGRP=$withval
1491 else
1492 MANGRP=tty
1493 echo "MANGRP defaults to $MANGRP"
1494
1495 fi
1496
1497
1498 # Check whether --with-manmode or --without-manmode was given.
1499 if test "${with_manmode+set}" = set; then
1500 withval="$with_manmode"
1501 echo "$ac_t""MANMODE is $withval" 1>&6
1502 MANMODE=$withval
1503 else
1504 MANMODE=0644
1505 echo "MANMODE defaults to $MANMODE"
1506
1507 fi
1508
1509
1510 # Check whether --with-dumpdatespath or --without-dumpdatespath was given.
1511 if test "${with_dumpdatespath+set}" = set; then
1512 withval="$with_dumpdatespath"
1513 echo "$ac_t""DUMPDATESPATH is $withval" 1>&6
1514 DUMPDATESPATH=$withval
1515 else
1516 DUMPDATESPATH="/etc/dumpdates"
1517 echo "DUMPDATESPATH defaults to $DUMPDATESPATH"
1518
1519 fi
1520
1521
1522 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1523 echo "configure:1524: checking how to run the C preprocessor" >&5
1524 # On Suns, sometimes $CPP names a directory.
1525 if test -n "$CPP" && test -d "$CPP"; then
1526 CPP=
1527 fi
1528 if test -z "$CPP"; then
1529 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1530 echo $ac_n "(cached) $ac_c" 1>&6
1531 else
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
1538 #line 1539 "configure"
1539 #include "confdefs.h"
1540 #include <assert.h>
1541 Syntax Error
1542 EOF
1543 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1544 { (eval echo configure:1545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1545 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1546 if test -z "$ac_err"; then
1547 :
1548 else
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
1555 #line 1556 "configure"
1556 #include "confdefs.h"
1557 #include <assert.h>
1558 Syntax Error
1559 EOF
1560 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1561 { (eval echo configure:1562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1562 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1563 if test -z "$ac_err"; then
1564 :
1565 else
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
1572 #line 1573 "configure"
1573 #include "confdefs.h"
1574 #include <assert.h>
1575 Syntax Error
1576 EOF
1577 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1578 { (eval echo configure:1579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1579 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1580 if test -z "$ac_err"; then
1581 :
1582 else
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
1588 fi
1589 rm -f conftest*
1590 fi
1591 rm -f conftest*
1592 fi
1593 rm -f conftest*
1594 ac_cv_prog_CPP="$CPP"
1595 fi
1596 CPP="$ac_cv_prog_CPP"
1597 else
1598 ac_cv_prog_CPP="$CPP"
1599 fi
1600 echo "$ac_t""$CPP" 1>&6
1601
1602 ac_safe=`echo "ext2fs/ext2fs.h" | sed 'y%./+-%__p_%'`
1603 echo $ac_n "checking for ext2fs/ext2fs.h""... $ac_c" 1>&6
1604 echo "configure:1605: checking for ext2fs/ext2fs.h" >&5
1605 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1606 echo $ac_n "(cached) $ac_c" 1>&6
1607 else
1608 cat > conftest.$ac_ext <<EOF
1609 #line 1610 "configure"
1610 #include "confdefs.h"
1611 #include <ext2fs/ext2fs.h>
1612 EOF
1613 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1614 { (eval echo configure:1615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1615 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1616 if test -z "$ac_err"; then
1617 rm -rf conftest*
1618 eval "ac_cv_header_$ac_safe=yes"
1619 else
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"
1625 fi
1626 rm -f conftest*
1627 fi
1628 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1629 echo "$ac_t""yes" 1>&6
1630 ext2fs_h=yes
1631 else
1632 echo "$ac_t""no" 1>&6
1633 ext2fs_h=no
1634 fi
1635
1636 echo $ac_n "checking for ext2fs_open in -lext2fs""... $ac_c" 1>&6
1637 echo "configure:1638: checking for ext2fs_open in -lext2fs" >&5
1638 ac_lib_var=`echo ext2fs'_'ext2fs_open | sed 'y%./+-%__p_%'`
1639 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1640 echo $ac_n "(cached) $ac_c" 1>&6
1641 else
1642 ac_save_LIBS="$LIBS"
1643 LIBS="-lext2fs -lcom_err $LIBS"
1644 cat > conftest.$ac_ext <<EOF
1645 #line 1646 "configure"
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. */
1650 char ext2fs_open();
1651
1652 int main() {
1653 ext2fs_open()
1654 ; return 0; }
1655 EOF
1656 if { (eval echo configure:1657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1657 rm -rf conftest*
1658 eval "ac_cv_lib_$ac_lib_var=yes"
1659 else
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"
1664 fi
1665 rm -f conftest*
1666 LIBS="$ac_save_LIBS"
1667
1668 fi
1669 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1670 echo "$ac_t""yes" 1>&6
1671 ext2fs_lib=yes
1672 else
1673 echo "$ac_t""no" 1>&6
1674 ext2fs_lib=no
1675 fi
1676
1677 if test "$ext2fs_h" = no -o "$ext2fs_lib" = no; then
1678 { echo "configure: error: You need to install the Ext2fs libraries from the E2fsprogs distribution first - hint: make install-libs" 1>&2; exit 1; }
1679 fi
1680
1681 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
1682 echo "configure:1683: checking for tgetent in -ltermcap" >&5
1683 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
1684 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1685 echo $ac_n "(cached) $ac_c" 1>&6
1686 else
1687 ac_save_LIBS="$LIBS"
1688 LIBS="-ltermcap $LIBS"
1689 cat > 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. */
1695 char tgetent();
1696
1697 int main() {
1698 tgetent()
1699 ; return 0; }
1700 EOF
1701 if { (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"
1704 else
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"
1709 fi
1710 rm -f conftest*
1711 LIBS="$ac_save_LIBS"
1712
1713 fi
1714 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1715 echo "$ac_t""yes" 1>&6
1716 termcap_lib=yes
1717 else
1718 echo "$ac_t""no" 1>&6
1719 termcap_lib=no
1720 fi
1721
1722 if 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
1726 fi
1727
1728 ac_safe=`echo "readline/readline.h" | sed 'y%./+-%__p_%'`
1729 echo $ac_n "checking for readline/readline.h""... $ac_c" 1>&6
1730 echo "configure:1731: checking for readline/readline.h" >&5
1731 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1732 echo $ac_n "(cached) $ac_c" 1>&6
1733 else
1734 cat > conftest.$ac_ext <<EOF
1735 #line 1736 "configure"
1736 #include "confdefs.h"
1737 #include <readline/readline.h>
1738 EOF
1739 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1740 { (eval echo configure:1741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1741 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1742 if test -z "$ac_err"; then
1743 rm -rf conftest*
1744 eval "ac_cv_header_$ac_safe=yes"
1745 else
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"
1751 fi
1752 rm -f conftest*
1753 fi
1754 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1755 echo "$ac_t""yes" 1>&6
1756 readline_h=yes
1757 else
1758 echo "$ac_t""no" 1>&6
1759 readline_h=no
1760 fi
1761
1762 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
1763 echo "configure:1764: checking for readline in -lreadline" >&5
1764 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
1765 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1766 echo $ac_n "(cached) $ac_c" 1>&6
1767 else
1768 ac_save_LIBS="$LIBS"
1769 LIBS="-lreadline "-ltermcap" $LIBS"
1770 cat > conftest.$ac_ext <<EOF
1771 #line 1772 "configure"
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. */
1776 char readline();
1777
1778 int main() {
1779 readline()
1780 ; return 0; }
1781 EOF
1782 if { (eval echo configure:1783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1783 rm -rf conftest*
1784 eval "ac_cv_lib_$ac_lib_var=yes"
1785 else
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"
1790 fi
1791 rm -f conftest*
1792 LIBS="$ac_save_LIBS"
1793
1794 fi
1795 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1796 echo "$ac_t""yes" 1>&6
1797 readline_lib=yes
1798 else
1799 echo "$ac_t""no" 1>&6
1800 readline_lib=no
1801 fi
1802
1803 if test "$readline_h" = no -o "$readline_lib" = no; then
1804 if test "$READLINE" = "-lreadline -ltermcap"; then
1805 { echo "configure: error: You need to install the GNU readline libraries first" 1>&2; exit 1; }
1806 fi
1807 fi
1808
1809 for ac_func in err errx verr verrx vwarn vwarnx warn warnx realpath lchown
1810 do
1811 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1812 echo "configure:1813: checking for $ac_func" >&5
1813 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1814 echo $ac_n "(cached) $ac_c" 1>&6
1815 else
1816 cat > conftest.$ac_ext <<EOF
1817 #line 1818 "configure"
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. */
1825 char $ac_func();
1826
1827 int 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)
1833 choke me
1834 #else
1835 $ac_func();
1836 #endif
1837
1838 ; return 0; }
1839 EOF
1840 if { (eval echo configure:1841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1841 rm -rf conftest*
1842 eval "ac_cv_func_$ac_func=yes"
1843 else
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"
1848 fi
1849 rm -f conftest*
1850 fi
1851
1852 if 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
1857 EOF
1858
1859 else
1860 echo "$ac_t""no" 1>&6
1861 fi
1862 done
1863
1864 echo $ac_n "checking for glob""... $ac_c" 1>&6
1865 echo "configure:1866: checking for glob" >&5
1866 if eval "test \"`echo '$''{'ac_cv_func_glob'+set}'`\" = set"; then
1867 echo $ac_n "(cached) $ac_c" 1>&6
1868 else
1869 cat > conftest.$ac_ext <<EOF
1870 #line 1871 "configure"
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. */
1878 char glob();
1879
1880 int 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)
1886 choke me
1887 #else
1888 glob();
1889 #endif
1890
1891 ; return 0; }
1892 EOF
1893 if { (eval echo configure:1894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1894 rm -rf conftest*
1895 eval "ac_cv_func_glob=yes"
1896 else
1897 echo "configure: failed program was:" >&5
1898 cat conftest.$ac_ext >&5
1899 rm -rf conftest*
1900 eval "ac_cv_func_glob=no"
1901 fi
1902 rm -f conftest*
1903 fi
1904
1905 if eval "test \"`echo '$ac_cv_func_'glob`\" = yes"; then
1906 echo "$ac_t""yes" 1>&6
1907 :
1908 else
1909 echo "$ac_t""no" 1>&6
1910 fi
1911
1912
1913 if test "$ac_cv_func_glob" = "yes"; then
1914 cat > conftest.$ac_ext <<EOF
1915 #line 1916 "configure"
1916 #include "confdefs.h"
1917
1918 # include <glob.h>
1919 # ifdef GLOB_ALTDIRFUNC
1920 yes
1921 # endif
1922
1923 EOF
1924 if (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
1929 EOF
1930
1931 else
1932 rm -rf conftest*
1933 noglob=yes
1934 fi
1935 rm -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
1940 fi
1941
1942 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1943 echo "configure:1944: checking for ANSI C header files" >&5
1944 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1945 echo $ac_n "(cached) $ac_c" 1>&6
1946 else
1947 cat > conftest.$ac_ext <<EOF
1948 #line 1949 "configure"
1949 #include "confdefs.h"
1950 #include <stdlib.h>
1951 #include <stdarg.h>
1952 #include <string.h>
1953 #include <float.h>
1954 EOF
1955 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1956 { (eval echo configure:1957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1957 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1958 if test -z "$ac_err"; then
1959 rm -rf conftest*
1960 ac_cv_header_stdc=yes
1961 else
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
1967 fi
1968 rm -f conftest*
1969
1970 if test $ac_cv_header_stdc = yes; then
1971 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1972 cat > conftest.$ac_ext <<EOF
1973 #line 1974 "configure"
1974 #include "confdefs.h"
1975 #include <string.h>
1976 EOF
1977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1978 egrep "memchr" >/dev/null 2>&1; then
1979 :
1980 else
1981 rm -rf conftest*
1982 ac_cv_header_stdc=no
1983 fi
1984 rm -f conftest*
1985
1986 fi
1987
1988 if test $ac_cv_header_stdc = yes; then
1989 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1990 cat > conftest.$ac_ext <<EOF
1991 #line 1992 "configure"
1992 #include "confdefs.h"
1993 #include <stdlib.h>
1994 EOF
1995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1996 egrep "free" >/dev/null 2>&1; then
1997 :
1998 else
1999 rm -rf conftest*
2000 ac_cv_header_stdc=no
2001 fi
2002 rm -f conftest*
2003
2004 fi
2005
2006 if test $ac_cv_header_stdc = yes; then
2007 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2008 if test "$cross_compiling" = yes; then
2009 :
2010 else
2011 cat > conftest.$ac_ext <<EOF
2012 #line 2013 "configure"
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)))
2018 int main () { int i; for (i = 0; i < 256; i++)
2019 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2020 exit (0); }
2021
2022 EOF
2023 if { (eval echo configure:2024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2024 then
2025 :
2026 else
2027 echo "configure: failed program was:" >&5
2028 cat conftest.$ac_ext >&5
2029 rm -fr conftest*
2030 ac_cv_header_stdc=no
2031 fi
2032 rm -fr conftest*
2033 fi
2034
2035 fi
2036 fi
2037
2038 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2039 if test $ac_cv_header_stdc = yes; then
2040 cat >> confdefs.h <<\EOF
2041 #define STDC_HEADERS 1
2042 EOF
2043
2044 fi
2045
2046 echo $ac_n "checking for quad_t""... $ac_c" 1>&6
2047 echo "configure:2048: checking for quad_t" >&5
2048 if eval "test \"`echo '$''{'ac_cv_type_quad_t'+set}'`\" = set"; then
2049 echo $ac_n "(cached) $ac_c" 1>&6
2050 else
2051 cat > conftest.$ac_ext <<EOF
2052 #line 2053 "configure"
2053 #include "confdefs.h"
2054 #include <sys/types.h>
2055 #if STDC_HEADERS
2056 #include <stdlib.h>
2057 #include <stddef.h>
2058 #endif
2059 EOF
2060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2061 egrep "(^|[^a-zA-Z_0-9])quad_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2062 rm -rf conftest*
2063 ac_cv_type_quad_t=yes
2064 else
2065 rm -rf conftest*
2066 ac_cv_type_quad_t=no
2067 fi
2068 rm -f conftest*
2069
2070 fi
2071 echo "$ac_t""$ac_cv_type_quad_t" 1>&6
2072 if test $ac_cv_type_quad_t = no; then
2073 cat >> confdefs.h <<\EOF
2074 #define quad_t __s64
2075 EOF
2076
2077 fi
2078
2079 echo $ac_n "checking for u_quad_t""... $ac_c" 1>&6
2080 echo "configure:2081: checking for u_quad_t" >&5
2081 if eval "test \"`echo '$''{'ac_cv_type_u_quad_t'+set}'`\" = set"; then
2082 echo $ac_n "(cached) $ac_c" 1>&6
2083 else
2084 cat > conftest.$ac_ext <<EOF
2085 #line 2086 "configure"
2086 #include "confdefs.h"
2087 #include <sys/types.h>
2088 #if STDC_HEADERS
2089 #include <stdlib.h>
2090 #include <stddef.h>
2091 #endif
2092 EOF
2093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2094 egrep "(^|[^a-zA-Z_0-9])u_quad_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2095 rm -rf conftest*
2096 ac_cv_type_u_quad_t=yes
2097 else
2098 rm -rf conftest*
2099 ac_cv_type_u_quad_t=no
2100 fi
2101 rm -f conftest*
2102
2103 fi
2104 echo "$ac_t""$ac_cv_type_u_quad_t" 1>&6
2105 if test $ac_cv_type_u_quad_t = no; then
2106 cat >> confdefs.h <<\EOF
2107 #define u_quad_t __u64
2108 EOF
2109
2110 fi
2111
2112
2113 top_builddir=`cd .; pwd`
2114
2115
2116 test -d compat || mkdir compat
2117 test -d compat/lib || mkdir compat/lib
2118
2119 trap '' 1 2 15
2120 cat > 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 #
2135 EOF
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 |
2142 case `(ac_space=' '; set | grep ac_space) 2>&1` in
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
2155 if cmp -s $cache_file confcache; then
2156 :
2157 else
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
2164 fi
2165 rm -f confcache
2166
2167 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2168
2169 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2170 # Let make expand exec_prefix.
2171 test "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.
2176 if test "x$srcdir" = x.; then
2177 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2178 fi
2179
2180 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2181
2182 DEFS=-DHAVE_CONFIG_H
2183
2184 # Without the "./", some shells look in PATH for config.status.
2185 : ${CONFIG_STATUS=./config.status}
2186
2187 echo creating $CONFIG_STATUS
2188 rm -f $CONFIG_STATUS
2189 cat > $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
2201 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2202 for ac_option
2203 do
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)
2209 echo "$CONFIG_STATUS generated by autoconf version 2.13"
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
2215 done
2216
2217 ac_given_srcdir=$srcdir
2218 ac_given_INSTALL="$INSTALL"
2219
2220 trap '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
2221 EOF
2222 cat >> $CONFIG_STATUS <<EOF
2223
2224 # Protect against being on the right side of a sed subst in config.status.
2225 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2226 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2227 $ac_vpsub
2228 $extrasub
2229 s%@SHELL@%$SHELL%g
2230 s%@CFLAGS@%$CFLAGS%g
2231 s%@CPPFLAGS@%$CPPFLAGS%g
2232 s%@CXXFLAGS@%$CXXFLAGS%g
2233 s%@FFLAGS@%$FFLAGS%g
2234 s%@DEFS@%$DEFS%g
2235 s%@LDFLAGS@%$LDFLAGS%g
2236 s%@LIBS@%$LIBS%g
2237 s%@exec_prefix@%$exec_prefix%g
2238 s%@prefix@%$prefix%g
2239 s%@program_transform_name@%$program_transform_name%g
2240 s%@bindir@%$bindir%g
2241 s%@sbindir@%$sbindir%g
2242 s%@libexecdir@%$libexecdir%g
2243 s%@datadir@%$datadir%g
2244 s%@sysconfdir@%$sysconfdir%g
2245 s%@sharedstatedir@%$sharedstatedir%g
2246 s%@localstatedir@%$localstatedir%g
2247 s%@libdir@%$libdir%g
2248 s%@includedir@%$includedir%g
2249 s%@oldincludedir@%$oldincludedir%g
2250 s%@infodir@%$infodir%g
2251 s%@mandir@%$mandir%g
2252 /@MCONFIG@/r $MCONFIG
2253 s%@MCONFIG@%%g
2254 s%@SET_MAKE@%$SET_MAKE%g
2255 s%@LN_S@%$LN_S%g
2256 s%@CP@%$CP%g
2257 s%@MV@%$MV%g
2258 s%@RM@%$RM%g
2259 s%@host@%$host%g
2260 s%@host_alias@%$host_alias%g
2261 s%@host_cpu@%$host_cpu%g
2262 s%@host_vendor@%$host_vendor%g
2263 s%@host_os@%$host_os%g
2264 s%@build@%$build%g
2265 s%@build_alias@%$build_alias%g
2266 s%@build_cpu@%$build_cpu%g
2267 s%@build_vendor@%$build_vendor%g
2268 s%@build_os@%$build_os%g
2269 s%@AR@%$AR%g
2270 s%@RANLIB@%$RANLIB%g
2271 s%@PATCH@%$PATCH%g
2272 s%@CC@%$CC%g
2273 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2274 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2275 s%@INSTALL_DATA@%$INSTALL_DATA%g
2276 s%@DUMPDEBUG@%$DUMPDEBUG%g
2277 s%@RESTOREDEBUG@%$RESTOREDEBUG%g
2278 s%@STATIC@%$STATIC%g
2279 s%@RMTDIR@%$RMTDIR%g
2280 s%@OPTDEFS@%$OPTDEFS%g
2281 s%@READLINE@%$READLINE%g
2282 s%@LD@%$LD%g
2283 s%@CCOPTS@%$CCOPTS%g
2284 s%@BINOWNER@%$BINOWNER%g
2285 s%@BINGRP@%$BINGRP%g
2286 s%@BINMODE@%$BINMODE%g
2287 s%@MANOWNER@%$MANOWNER%g
2288 s%@MANGRP@%$MANGRP%g
2289 s%@MANMODE@%$MANMODE%g
2290 s%@DUMPDATESPATH@%$DUMPDATESPATH%g
2291 s%@CPP@%$CPP%g
2292 s%@top_builddir@%$top_builddir%g
2293
2294 CEOF
2295 EOF
2296
2297 cat >> $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.
2301 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2302 ac_file=1 # Number of current file.
2303 ac_beg=1 # First line for current file.
2304 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2305 ac_more_lines=:
2306 ac_sed_cmds=""
2307 while $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
2326 done
2327 if test -z "$ac_sed_cmds"; then
2328 ac_sed_cmds=cat
2329 fi
2330 EOF
2331
2332 cat >> $CONFIG_STATUS <<EOF
2333
2334 CONFIG_FILES=\${CONFIG_FILES-"MCONFIG Makefile common/Makefile compat/include/Makefile compat/lib/Makefile dump/Makefile restore/Makefile $RMTMAKEFILE"}
2335 EOF
2336 cat >> $CONFIG_STATUS <<\EOF
2337 for 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
2385 s%@configure_input@%$configure_input%g
2386 s%@srcdir@%$srcdir%g
2387 s%@top_srcdir@%$top_srcdir%g
2388 s%@INSTALL@%$INSTALL%g
2389 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2390 fi; done
2391 rm -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.
2397 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2398 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2399 ac_dC='\3'
2400 ac_dD='%g'
2401 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2402 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2403 ac_uB='\([ ]\)%\1#\2define\3'
2404 ac_uC=' '
2405 ac_uD='\4%g'
2406 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2407 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2408 ac_eB='$%\1#\2define\3'
2409 ac_eC=' '
2410 ac_eD='%g'
2411
2412 if test "${CONFIG_HEADERS+set}" != set; then
2413 EOF
2414 cat >> $CONFIG_STATUS <<EOF
2415 CONFIG_HEADERS="config.h"
2416 EOF
2417 cat >> $CONFIG_STATUS <<\EOF
2418 fi
2419 for 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
2433 EOF
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.
2439 rm -f conftest.vals
2440 cat > conftest.hdr <<\EOF
2441 s/[\\&%]/\\&/g
2442 s%[\\$`]%\\&%g
2443 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2444 s%ac_d%ac_u%gp
2445 s%ac_u%ac_e%gp
2446 EOF
2447 sed -n -f conftest.hdr confdefs.h > conftest.vals
2448 rm -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.
2453 cat >> conftest.vals <<\EOF
2454 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2455 EOF
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
2460 rm -f conftest.tail
2461 while :
2462 do
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
2477 done
2478 rm -f conftest.vals
2479
2480 cat >> $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
2498 fi; done
2499
2500 EOF
2501 cat >> $CONFIG_STATUS <<EOF
2502
2503 EOF
2504 cat >> $CONFIG_STATUS <<\EOF
2505
2506 exit 0
2507 EOF
2508 chmod +x $CONFIG_STATUS
2509 rm -fr confdefs* $ac_clean_files
2510 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2511