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