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