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