3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-dumpdates-patch apply the dumpdates patch from Debian"
17 --enable-debug include debugging code"
19 --enable-static link dump and restore statically"
21 --enable-rmt compile and install rmt"
23 --with-cc=COMPILER select compiler to use"
25 --with-linker=LINKER select linker to use"
27 --with-ccopts=CCOPTS select compiler command line options"
29 --with-ldopts=LDOPTS select linker command line options"
31 --with-binowner=USER select owner for binaries"
33 --with-bingrp=GROUP select group for binaries"
35 --with-binmode=MODE select mode for binaries"
37 --with-manowner=USER select owner for manual pages"
39 --with-mangrp=group select group for manual pages"
41 --with-manmode=MODE select mode for manual pages"
43 # Initialize some variables set by options.
44 # The variables have the same names as the options, with
45 # dashes changed to underlines.
47 cache_file
=.
/config.cache
56 program_transform_name
=s
,x
,x
,
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'
77 # Initialize some other variables.
80 # Maximum number of lines to put in a shell here document.
87 # If the previous option needs an argument, assign it.
88 if test -n "$ac_prev"; then
89 eval "$ac_prev=\$ac_option"
95 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
99 # Accept the important Cygnus configure options, so we can diagnose typos.
103 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
105 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
106 bindir
="$ac_optarg" ;;
108 -build |
--build |
--buil |
--bui |
--bu)
110 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
111 build
="$ac_optarg" ;;
113 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
114 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
115 ac_prev
=cache_file
;;
116 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
117 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
118 cache_file
="$ac_optarg" ;;
120 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
122 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
124 datadir
="$ac_optarg" ;;
126 -disable-* |
--disable-*)
127 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
128 # Reject names that are not valid shell variable names.
129 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
130 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
132 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
133 eval "enable_${ac_feature}=no" ;;
135 -enable-* |
--enable-*)
136 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
137 # Reject names that are not valid shell variable names.
138 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
139 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
141 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
146 eval "enable_${ac_feature}='$ac_optarg'" ;;
148 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
149 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
150 |
--exec |
--exe |
--ex)
151 ac_prev
=exec_prefix
;;
152 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
153 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
154 |
--exec=* |
--exe=* |
--ex=*)
155 exec_prefix
="$ac_optarg" ;;
157 -gas |
--gas |
--ga |
--g)
158 # Obsolete; use --with-gas.
161 -help |
--help |
--hel |
--he)
162 # Omit some internal or obsolete options to make the list less imposing.
163 # This message is too long to be a string in the A/UX 3.1 sh.
165 Usage: configure [options] [host]
166 Options: [defaults in brackets after descriptions]
168 --cache-file=FILE cache test results in FILE
169 --help print this message
170 --no-create do not create output files
171 --quiet, --silent do not print \`checking...' messages
172 --version print the version of autoconf that created configure
173 Directory and file names:
174 --prefix=PREFIX install architecture-independent files in PREFIX
176 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
178 --bindir=DIR user executables in DIR [EPREFIX/bin]
179 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
180 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
181 --datadir=DIR read-only architecture-independent data in DIR
183 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
184 --sharedstatedir=DIR modifiable architecture-independent data in DIR
186 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
187 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
188 --includedir=DIR C header files in DIR [PREFIX/include]
189 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
190 --infodir=DIR info documentation in DIR [PREFIX/info]
191 --mandir=DIR man documentation in DIR [PREFIX/man]
192 --srcdir=DIR find the sources in DIR [configure dir or ..]
193 --program-prefix=PREFIX prepend PREFIX to installed program names
194 --program-suffix=SUFFIX append SUFFIX to installed program names
195 --program-transform-name=PROGRAM
196 run sed PROGRAM on installed program names
200 --build=BUILD configure for building on BUILD [BUILD=HOST]
201 --host=HOST configure for HOST [guessed]
202 --target=TARGET configure for TARGET [TARGET=HOST]
203 Features and packages:
204 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
205 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
206 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
207 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
208 --x-includes=DIR X include files are in DIR
209 --x-libraries=DIR X library files are in DIR
211 if test -n "$ac_help"; then
212 echo "--enable and --with options recognized:$ac_help"
216 -host |
--host |
--hos |
--ho)
218 -host=* |
--host=* |
--hos=* |
--ho=*)
221 -includedir |
--includedir |
--includedi |
--included |
--include \
222 |
--includ |
--inclu |
--incl |
--inc)
223 ac_prev
=includedir
;;
224 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
225 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
226 includedir
="$ac_optarg" ;;
228 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
230 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
231 infodir
="$ac_optarg" ;;
233 -libdir |
--libdir |
--libdi |
--libd)
235 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
236 libdir
="$ac_optarg" ;;
238 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
239 |
--libexe |
--libex |
--libe)
240 ac_prev
=libexecdir
;;
241 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
242 |
--libexe=* |
--libex=* |
--libe=*)
243 libexecdir
="$ac_optarg" ;;
245 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
246 |
--localstate |
--localstat |
--localsta |
--localst \
247 |
--locals |
--local |
--loca |
--loc |
--lo)
248 ac_prev
=localstatedir
;;
249 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
250 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
251 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
252 localstatedir
="$ac_optarg" ;;
254 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
256 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
257 mandir
="$ac_optarg" ;;
260 # Obsolete; use --without-fp.
263 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
267 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
268 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
271 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
272 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
273 |
--oldin |
--oldi |
--old |
--ol |
--o)
274 ac_prev
=oldincludedir
;;
275 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
276 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
277 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
278 oldincludedir
="$ac_optarg" ;;
280 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
282 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
283 prefix
="$ac_optarg" ;;
285 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
286 |
--program-pre |
--program-pr |
--program-p)
287 ac_prev
=program_prefix
;;
288 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
289 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
290 program_prefix
="$ac_optarg" ;;
292 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
293 |
--program-suf |
--program-su |
--program-s)
294 ac_prev
=program_suffix
;;
295 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
296 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
297 program_suffix
="$ac_optarg" ;;
299 -program-transform-name |
--program-transform-name \
300 |
--program-transform-nam |
--program-transform-na \
301 |
--program-transform-n |
--program-transform- \
302 |
--program-transform |
--program-transfor \
303 |
--program-transfo |
--program-transf \
304 |
--program-trans |
--program-tran \
305 |
--progr-tra |
--program-tr |
--program-t)
306 ac_prev
=program_transform_name
;;
307 -program-transform-name=* |
--program-transform-name=* \
308 |
--program-transform-nam=* |
--program-transform-na=* \
309 |
--program-transform-n=* |
--program-transform-=* \
310 |
--program-transform=* |
--program-transfor=* \
311 |
--program-transfo=* |
--program-transf=* \
312 |
--program-trans=* |
--program-tran=* \
313 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
314 program_transform_name
="$ac_optarg" ;;
316 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
317 |
-silent |
--silent |
--silen |
--sile |
--sil)
320 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
322 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
324 sbindir
="$ac_optarg" ;;
326 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
327 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
328 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
330 ac_prev
=sharedstatedir
;;
331 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
332 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
333 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
335 sharedstatedir
="$ac_optarg" ;;
337 -site |
--site |
--sit)
339 -site=* |
--site=* |
--sit=*)
342 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
344 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
345 srcdir
="$ac_optarg" ;;
347 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
348 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
349 ac_prev
=sysconfdir
;;
350 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
351 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
352 sysconfdir
="$ac_optarg" ;;
354 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
356 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
357 target
="$ac_optarg" ;;
359 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
362 -version |
--version |
--versio |
--versi |
--vers)
363 echo "configure generated by autoconf version 2.12"
367 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
368 # Reject names that are not valid shell variable names.
369 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
370 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
372 ac_package
=`echo $ac_package| sed 's/-/_/g'`
377 eval "with_${ac_package}='$ac_optarg'" ;;
379 -without-* |
--without-*)
380 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
381 # Reject names that are not valid shell variable names.
382 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
383 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
385 ac_package
=`echo $ac_package| sed 's/-/_/g'`
386 eval "with_${ac_package}=no" ;;
389 # Obsolete; use --with-x.
392 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
393 |
--x-incl |
--x-inc |
--x-in |
--x-i)
394 ac_prev
=x_includes
;;
395 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
396 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
397 x_includes
="$ac_optarg" ;;
399 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
400 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
401 ac_prev
=x_libraries
;;
402 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
403 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
404 x_libraries
="$ac_optarg" ;;
406 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
410 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
411 echo "configure: warning: $ac_option: invalid host type" 1>&2
413 if test "x$nonopt" != xNONE
; then
414 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
422 if test -n "$ac_prev"; then
423 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
426 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
428 # File descriptor usage:
431 # 2 errors and warnings
432 # 3 some systems may open it to /dev/tty
433 # 4 used on the Kubota Titan
434 # 6 checking for... messages and results
435 # 5 compiler messages saved in config.log
436 if test "$silent" = yes; then
444 This file contains any messages produced by compilers while
445 running configure, to aid debugging if configure makes a mistake.
448 # Strip out --no-create and --no-recursion so they do not pile up.
449 # Also quote any args containing shell metacharacters.
454 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
455 |
--no-cr |
--no-c) ;;
456 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
457 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
458 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
459 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
460 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
465 # Only set these to C if already set. These must not be set unconditionally
466 # because not all systems understand e.g. LANG=C (notably SCO).
467 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
468 # Non-C LC_CTYPE values break the ctype check.
469 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
470 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
471 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
472 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
474 # confdefs.h avoids OS command line length limits that DEFS can exceed.
475 rm -rf conftest
* confdefs.h
476 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
479 # A filename unique to this package, relative to the directory that
480 # configure is in, which we can look for to find out if srcdir is correct.
481 ac_unique_file
=dump
/dump.h
483 # Find the source files, if location was not specified.
484 if test -z "$srcdir"; then
485 ac_srcdir_defaulted
=yes
486 # Try the directory containing this script, then its parent.
488 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
489 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
491 if test ! -r $srcdir/$ac_unique_file; then
495 ac_srcdir_defaulted
=no
497 if test ! -r $srcdir/$ac_unique_file; then
498 if test "$ac_srcdir_defaulted" = yes; then
499 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
501 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
504 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
506 # Prefer explicitly selected file to automatically selected ones.
507 if test -z "$CONFIG_SITE"; then
508 if test "x$prefix" != xNONE
; then
509 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
511 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
514 for ac_site_file
in $CONFIG_SITE; do
515 if test -r "$ac_site_file"; then
516 echo "loading site script $ac_site_file"
521 if test -r "$cache_file"; then
522 echo "loading cache $cache_file"
525 echo "creating cache $cache_file"
530 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
531 ac_cpp
='$CPP $CPPFLAGS'
532 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
533 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
534 cross_compiling
=$ac_cv_prog_cc_cross
536 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
537 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
538 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
545 ac_n
= ac_c
='\c' ac_t
=
555 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
556 echo "configure:557: checking whether ${MAKE-make} sets \${MAKE}" >&5
557 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
558 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
559 echo $ac_n "(cached) $ac_c" 1>&6
561 cat > conftestmake
<<\EOF
563 @
echo 'ac_maketemp="${MAKE}"'
565 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
566 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
567 if test -n "$ac_maketemp"; then
568 eval ac_cv_prog_make_
${ac_make}_set
=yes
570 eval ac_cv_prog_make_
${ac_make}_set
=no
574 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
575 echo "$ac_t""yes" 1>&6
578 echo "$ac_t""no" 1>&6
579 SET_MAKE
="MAKE=${MAKE-make}"
582 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
583 echo "configure:584: checking whether ln -s works" >&5
584 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
585 echo $ac_n "(cached) $ac_c" 1>&6
588 if ln -s X conftestdata
2>/dev
/null
591 ac_cv_prog_LN_S
="ln -s"
596 LN_S
="$ac_cv_prog_LN_S"
597 if test "$ac_cv_prog_LN_S" = "ln -s"; then
598 echo "$ac_t""yes" 1>&6
600 echo "$ac_t""no" 1>&6
603 # Extract the first word of "cp", so it can be a program name with args.
604 set dummy
cp; ac_word
=$2
605 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
606 echo "configure:607: checking for $ac_word" >&5
607 if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
608 echo $ac_n "(cached) $ac_c" 1>&6
612 ac_cv_path_CP
="$CP" # Let the user override the test with a path.
615 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
616 for ac_dir
in $PATH; do
617 test -z "$ac_dir" && ac_dir
=.
618 if test -f $ac_dir/$ac_word; then
619 ac_cv_path_CP
="$ac_dir/$ac_word"
624 test -z "$ac_cv_path_CP" && ac_cv_path_CP
="cp"
629 if test -n "$CP"; then
630 echo "$ac_t""$CP" 1>&6
632 echo "$ac_t""no" 1>&6
635 # Extract the first word of "mv", so it can be a program name with args.
636 set dummy
mv; ac_word
=$2
637 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
638 echo "configure:639: checking for $ac_word" >&5
639 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
640 echo $ac_n "(cached) $ac_c" 1>&6
644 ac_cv_path_MV
="$MV" # Let the user override the test with a path.
647 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
648 for ac_dir
in $PATH; do
649 test -z "$ac_dir" && ac_dir
=.
650 if test -f $ac_dir/$ac_word; then
651 ac_cv_path_MV
="$ac_dir/$ac_word"
656 test -z "$ac_cv_path_MV" && ac_cv_path_MV
="mv"
661 if test -n "$MV"; then
662 echo "$ac_t""$MV" 1>&6
664 echo "$ac_t""no" 1>&6
667 # Extract the first word of "rm", so it can be a program name with args.
668 set dummy
rm; ac_word
=$2
669 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
670 echo "configure:671: checking for $ac_word" >&5
671 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
672 echo $ac_n "(cached) $ac_c" 1>&6
676 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
679 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
680 for ac_dir
in $PATH; do
681 test -z "$ac_dir" && ac_dir
=.
682 if test -f $ac_dir/$ac_word; then
683 ac_cv_path_RM
="$ac_dir/$ac_word"
688 test -z "$ac_cv_path_RM" && ac_cv_path_RM
="rm"
693 if test -n "$RM"; then
694 echo "$ac_t""$RM" 1>&6
696 echo "$ac_t""no" 1>&6
700 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
701 if test -f $ac_dir/install-sh
; then
703 ac_install_sh
="$ac_aux_dir/install-sh -c"
705 elif test -f $ac_dir/install.sh
; then
707 ac_install_sh
="$ac_aux_dir/install.sh -c"
711 if test -z "$ac_aux_dir"; then
712 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
714 ac_config_guess
=$ac_aux_dir/config.guess
715 ac_config_sub
=$ac_aux_dir/config.sub
716 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
719 # Make sure we can run config.sub.
720 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
721 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
724 echo $ac_n "checking host system type""... $ac_c" 1>&6
725 echo "configure:726: checking host system type" >&5
728 case "$host_alias" in
732 if host_alias
=`$ac_config_guess`; then :
733 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
735 *) host_alias
=$nonopt ;;
739 host=`$ac_config_sub $host_alias`
740 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
741 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
742 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
743 echo "$ac_t""$host" 1>&6
745 echo $ac_n "checking build system type""... $ac_c" 1>&6
746 echo "configure:747: checking build system type" >&5
749 case "$build_alias" in
752 NONE
) build_alias
=$host_alias ;;
753 *) build_alias
=$nonopt ;;
757 build
=`$ac_config_sub $build_alias`
758 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
759 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
760 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
761 echo "$ac_t""$build" 1>&6
763 if test $host != $build; then
764 ac_tool_prefix
=${host_alias}-
769 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
770 set dummy
${ac_tool_prefix}ar; ac_word
=$2
771 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
772 echo "configure:773: checking for $ac_word" >&5
773 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
774 echo $ac_n "(cached) $ac_c" 1>&6
776 if test -n "$AR"; then
777 ac_cv_prog_AR
="$AR" # Let the user override the test.
779 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
780 for ac_dir
in $PATH; do
781 test -z "$ac_dir" && ac_dir
=.
782 if test -f $ac_dir/$ac_word; then
783 ac_cv_prog_AR
="${ac_tool_prefix}ar"
791 if test -n "$AR"; then
792 echo "$ac_t""$AR" 1>&6
794 echo "$ac_t""no" 1>&6
798 if test -z "$ac_cv_prog_AR"; then
799 if test -n "$ac_tool_prefix"; then
800 # Extract the first word of "ar", so it can be a program name with args.
801 set dummy
ar; ac_word
=$2
802 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
803 echo "configure:804: checking for $ac_word" >&5
804 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
805 echo $ac_n "(cached) $ac_c" 1>&6
807 if test -n "$AR"; then
808 ac_cv_prog_AR
="$AR" # Let the user override the test.
810 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
811 for ac_dir
in $PATH; do
812 test -z "$ac_dir" && ac_dir
=.
813 if test -f $ac_dir/$ac_word; then
819 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
823 if test -n "$AR"; then
824 echo "$ac_t""$AR" 1>&6
826 echo "$ac_t""no" 1>&6
834 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
835 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
836 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
837 echo "configure:838: checking for $ac_word" >&5
838 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
839 echo $ac_n "(cached) $ac_c" 1>&6
841 if test -n "$RANLIB"; then
842 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
844 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
845 for ac_dir
in $PATH; do
846 test -z "$ac_dir" && ac_dir
=.
847 if test -f $ac_dir/$ac_word; then
848 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
855 RANLIB
="$ac_cv_prog_RANLIB"
856 if test -n "$RANLIB"; then
857 echo "$ac_t""$RANLIB" 1>&6
859 echo "$ac_t""no" 1>&6
863 if test -z "$ac_cv_prog_RANLIB"; then
864 if test -n "$ac_tool_prefix"; then
865 # Extract the first word of "ranlib", so it can be a program name with args.
866 set dummy ranlib
; ac_word
=$2
867 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
868 echo "configure:869: checking for $ac_word" >&5
869 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
870 echo $ac_n "(cached) $ac_c" 1>&6
872 if test -n "$RANLIB"; then
873 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
875 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
876 for ac_dir
in $PATH; do
877 test -z "$ac_dir" && ac_dir
=.
878 if test -f $ac_dir/$ac_word; then
879 ac_cv_prog_RANLIB
="ranlib"
884 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
887 RANLIB
="$ac_cv_prog_RANLIB"
888 if test -n "$RANLIB"; then
889 echo "$ac_t""$RANLIB" 1>&6
891 echo "$ac_t""no" 1>&6
899 # Extract the first word of "${ac_tool_prefix}patch", so it can be a program name with args.
900 set dummy
${ac_tool_prefix}patch; ac_word
=$2
901 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
902 echo "configure:903: checking for $ac_word" >&5
903 if eval "test \"`echo '$''{'ac_cv_prog_PATCH'+set}'`\" = set"; then
904 echo $ac_n "(cached) $ac_c" 1>&6
906 if test -n "$PATCH"; then
907 ac_cv_prog_PATCH
="$PATCH" # Let the user override the test.
909 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
910 for ac_dir
in $PATH; do
911 test -z "$ac_dir" && ac_dir
=.
912 if test -f $ac_dir/$ac_word; then
913 ac_cv_prog_PATCH
="${ac_tool_prefix}patch"
920 PATCH
="$ac_cv_prog_PATCH"
921 if test -n "$PATCH"; then
922 echo "$ac_t""$PATCH" 1>&6
924 echo "$ac_t""no" 1>&6
928 if test -z "$ac_cv_prog_PATCH"; then
929 if test -n "$ac_tool_prefix"; then
930 # Extract the first word of "patch", so it can be a program name with args.
931 set dummy
patch; ac_word
=$2
932 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
933 echo "configure:934: checking for $ac_word" >&5
934 if eval "test \"`echo '$''{'ac_cv_prog_PATCH'+set}'`\" = set"; then
935 echo $ac_n "(cached) $ac_c" 1>&6
937 if test -n "$PATCH"; then
938 ac_cv_prog_PATCH
="$PATCH" # Let the user override the test.
940 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
941 for ac_dir
in $PATH; do
942 test -z "$ac_dir" && ac_dir
=.
943 if test -f $ac_dir/$ac_word; then
944 ac_cv_prog_PATCH
="patch"
949 test -z "$ac_cv_prog_PATCH" && ac_cv_prog_PATCH
=":"
952 PATCH
="$ac_cv_prog_PATCH"
953 if test -n "$PATCH"; then
954 echo "$ac_t""$PATCH" 1>&6
956 echo "$ac_t""no" 1>&6
964 # Extract the first word of "gcc", so it can be a program name with args.
965 set dummy gcc
; ac_word
=$2
966 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
967 echo "configure:968: checking for $ac_word" >&5
968 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
969 echo $ac_n "(cached) $ac_c" 1>&6
971 if test -n "$CC"; then
972 ac_cv_prog_CC
="$CC" # Let the user override the test.
974 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
975 for ac_dir
in $PATH; do
976 test -z "$ac_dir" && ac_dir
=.
977 if test -f $ac_dir/$ac_word; then
986 if test -n "$CC"; then
987 echo "$ac_t""$CC" 1>&6
989 echo "$ac_t""no" 1>&6
992 if test -z "$CC"; then
993 # Extract the first word of "cc", so it can be a program name with args.
994 set dummy cc
; ac_word
=$2
995 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
996 echo "configure:997: checking for $ac_word" >&5
997 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
998 echo $ac_n "(cached) $ac_c" 1>&6
1000 if test -n "$CC"; then
1001 ac_cv_prog_CC
="$CC" # Let the user override the test.
1003 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1005 for ac_dir
in $PATH; do
1006 test -z "$ac_dir" && ac_dir
=.
1007 if test -f $ac_dir/$ac_word; then
1008 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1009 ac_prog_rejected
=yes
1017 if test $ac_prog_rejected = yes; then
1018 # We found a bogon in the path, so make sure we never use it.
1019 set dummy
$ac_cv_prog_CC
1021 if test $# -gt 0; then
1022 # We chose a different compiler from the bogus one.
1023 # However, it has the same basename, so the bogon will be chosen
1024 # first if we set CC to just the basename; use the full file name.
1026 set dummy
"$ac_dir/$ac_word" "$@"
1034 if test -n "$CC"; then
1035 echo "$ac_t""$CC" 1>&6
1037 echo "$ac_t""no" 1>&6
1040 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1043 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1044 echo "configure:1045: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1047 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1048 ac_cpp
='$CPP $CPPFLAGS'
1049 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1050 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1051 cross_compiling
=$ac_cv_prog_cc_cross
1053 cat > conftest.
$ac_ext <<EOF
1054 #line 1055 "configure"
1055 #include "confdefs.h"
1058 if { (eval echo configure
:1059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1059 ac_cv_prog_cc_works
=yes
1060 # If we can't run a trivial program, we are probably using a cross compiler.
1061 if (.
/conftest
; exit) 2>/dev
/null
; then
1062 ac_cv_prog_cc_cross
=no
1064 ac_cv_prog_cc_cross
=yes
1067 echo "configure: failed program was:" >&5
1068 cat conftest.
$ac_ext >&5
1069 ac_cv_prog_cc_works
=no
1073 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1074 if test $ac_cv_prog_cc_works = no
; then
1075 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1077 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1078 echo "configure:1079: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1079 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1080 cross_compiling
=$ac_cv_prog_cc_cross
1082 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1083 echo "configure:1084: checking whether we are using GNU C" >&5
1084 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1085 echo $ac_n "(cached) $ac_c" 1>&6
1087 cat > conftest.c
<<EOF
1092 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1099 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1101 if test $ac_cv_prog_gcc = yes; then
1103 ac_test_CFLAGS
="${CFLAGS+set}"
1104 ac_save_CFLAGS
="$CFLAGS"
1106 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1107 echo "configure:1108: checking whether ${CC-cc} accepts -g" >&5
1108 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1109 echo $ac_n "(cached) $ac_c" 1>&6
1111 echo 'void f(){}' > conftest.c
1112 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1121 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1122 if test "$ac_test_CFLAGS" = set; then
1123 CFLAGS
="$ac_save_CFLAGS"
1124 elif test $ac_cv_prog_cc_g = yes; then
1131 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1134 # Find a good install program. We prefer a C program (faster),
1135 # so one script is as good as another. But avoid the broken or
1136 # incompatible versions:
1137 # SysV /etc/install, /usr/sbin/install
1138 # SunOS /usr/etc/install
1139 # IRIX /sbin/install
1141 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1142 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1143 # ./install, which can be erroneously created by make from ./install.sh.
1144 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1145 echo "configure:1146: checking for a BSD compatible install" >&5
1146 if test -z "$INSTALL"; then
1147 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1148 echo $ac_n "(cached) $ac_c" 1>&6
1150 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1151 for ac_dir
in $PATH; do
1152 # Account for people who put trailing slashes in PATH elements.
1154 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1156 # OSF1 and SCO ODT 3.0 have their own names for install.
1157 for ac_prog
in ginstall installbsd scoinst
install; do
1158 if test -f $ac_dir/$ac_prog; then
1159 if test $ac_prog = install &&
1160 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1161 # AIX install. It has an incompatible calling convention.
1162 # OSF/1 installbsd also uses dspmsg, but is usable.
1165 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1176 if test "${ac_cv_path_install+set}" = set; then
1177 INSTALL
="$ac_cv_path_install"
1179 # As a last resort, use the slow shell script. We don't cache a
1180 # path for INSTALL within a source directory, because that will
1181 # break other packages using the cache if that directory is
1182 # removed, or if the path is relative.
1183 INSTALL
="$ac_install_sh"
1186 echo "$ac_t""$INSTALL" 1>&6
1188 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1189 # It thinks the first close brace ends the variable substitution.
1190 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1192 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1195 # Check whether --enable-dumpdates-patch or --disable-dumpdates-patch was given.
1196 if test "${enable_dumpdates_patch+set}" = set; then
1197 enableval
="$enable_dumpdates_patch"
1198 if test "$enableval" = "yes"
1200 if test "$PATCH" = ":"
1202 { echo "configure: error: The patch program was not found on your system" 1>&2; exit 1; }
1204 (cd $srcdir; $PATCH -p < debian-patch
)
1210 # Check whether --enable-debug or --disable-debug was given.
1211 if test "${enable_debug+set}" = set; then
1212 enableval
="$enable_debug"
1213 if test "$enableval" = "no"
1218 DUMPDEBUG
="-DFDEBUG -DTDEBUG -DWRITEDEBUG -DDIRDEBUG"
1219 RESTOREDEBUG
="-DDIRDEBUG"
1230 # Check whether --enable-static or --disable-static was given.
1231 if test "${enable_static+set}" = set; then
1232 enableval
="$enable_static"
1233 if test "$enableval" = "no"
1242 echo "Linking dump and restore dynamically by default"
1248 # Check whether --enable-rmt or --disable-rmt was given.
1249 if test "${enable_rmt+set}" = set; then
1250 enableval
="$enable_rmt"
1251 if test "$enableval" = "no"
1257 RMTMAKEFILE
="rmt/Makefile"
1262 echo "Not compiling rmt by default"
1268 # Check whether --with-cc or --without-cc was given.
1269 if test "${with_cc+set}" = set; then
1271 echo "$ac_t""CC=$withval" 1>&6
1274 if test -z "$CC" ; then CC
=cc
; fi
1275 echo "$ac_t""CC defaults to $CC" 1>&6
1280 # Check whether --with-linker or --without-linker was given.
1281 if test "${with_linker+set}" = set; then
1282 withval
="$with_linker"
1283 echo "$ac_t""LD=$withval" 1>&6
1286 if test -z "$LD" ; then LD
=$CC; fi
1287 echo "$ac_t""LD defaults to $LD" 1>&6
1292 # Check whether --with-ccopts or --without-ccopts was given.
1293 if test "${with_ccopts+set}" = set; then
1294 withval
="$with_ccopts"
1295 echo "$ac_t""CCOPTS is $withval" 1>&6
1297 CFLAGS
="$CFLAGS $withval"
1303 # Check whether --with-ldopts or --without-ldopts was given.
1304 if test "${with_ldopts+set}" = set; then
1305 withval
="$with_ldopts"
1306 echo "$ac_t""LDFLAGS is $withval" 1>&6
1313 # Check whether --with-binowner or --without-binowner was given.
1314 if test "${with_binowner+set}" = set; then
1315 withval
="$with_binowner"
1316 echo "$ac_t""BINOWNER is $withval" 1>&6
1320 echo "BINOWNER defaults to $BINOWNER"
1325 # Check whether --with-bingrp or --without-bingrp was given.
1326 if test "${with_bingrp+set}" = set; then
1327 withval
="$with_bingrp"
1328 echo "$ac_t""BINGRP is $withval" 1>&6
1332 echo "BINGRP defaults to $BINGRP"
1337 # Check whether --with-binmode or --without-binmode was given.
1338 if test "${with_binmode+set}" = set; then
1339 withval
="$with_binmode"
1340 echo "$ac_t""BINMODE is $withval" 1>&6
1344 echo "BINMODE defaults to $BINMODE"
1349 # Check whether --with-manowner or --without-manowner was given.
1350 if test "${with_manowner+set}" = set; then
1351 withval
="$with_manowner"
1352 echo "$ac_t""MANOWNER is $withval" 1>&6
1356 echo "MANOWNER defaults to $MANOWNER"
1361 # Check whether --with-mangrp or --without-mangrp was given.
1362 if test "${with_mangrp+set}" = set; then
1363 withval
="$with_mangrp"
1364 echo "$ac_t""MANGRP is $withval" 1>&6
1368 echo "MANGRP defaults to $MANGRP"
1373 # Check whether --with-manmode or --without-manmode was given.
1374 if test "${with_manmode+set}" = set; then
1375 withval
="$with_manmode"
1376 echo "$ac_t""MANMODE is $withval" 1>&6
1380 echo "MANMODE defaults to $MANMODE"
1385 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1386 echo "configure:1387: checking how to run the C preprocessor" >&5
1387 # On Suns, sometimes $CPP names a directory.
1388 if test -n "$CPP" && test -d "$CPP"; then
1391 if test -z "$CPP"; then
1392 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1393 echo $ac_n "(cached) $ac_c" 1>&6
1395 # This must be in double quotes, not single quotes, because CPP may get
1396 # substituted into the Makefile and "${CC-cc}" will confuse make.
1398 # On the NeXT, cc -E runs the code through the compiler's parser,
1399 # not just through cpp.
1400 cat > conftest.
$ac_ext <<EOF
1401 #line 1402 "configure"
1402 #include "confdefs.h"
1406 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1407 { (eval echo configure
:1408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1408 ac_err
=`grep -v '^ *+' conftest.out`
1409 if test -z "$ac_err"; then
1413 echo "configure: failed program was:" >&5
1414 cat conftest.
$ac_ext >&5
1416 CPP
="${CC-cc} -E -traditional-cpp"
1417 cat > conftest.
$ac_ext <<EOF
1418 #line 1419 "configure"
1419 #include "confdefs.h"
1423 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1424 { (eval echo configure
:1425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1425 ac_err
=`grep -v '^ *+' conftest.out`
1426 if test -z "$ac_err"; then
1430 echo "configure: failed program was:" >&5
1431 cat conftest.
$ac_ext >&5
1438 ac_cv_prog_CPP
="$CPP"
1440 CPP
="$ac_cv_prog_CPP"
1442 ac_cv_prog_CPP
="$CPP"
1444 echo "$ac_t""$CPP" 1>&6
1446 ac_safe
=`echo "ext2fs/ext2fs.h" | sed 'y%./+-%__p_%'`
1447 echo $ac_n "checking for ext2fs/ext2fs.h""... $ac_c" 1>&6
1448 echo "configure:1449: checking for ext2fs/ext2fs.h" >&5
1449 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1450 echo $ac_n "(cached) $ac_c" 1>&6
1452 cat > conftest.
$ac_ext <<EOF
1453 #line 1454 "configure"
1454 #include "confdefs.h"
1455 #include <ext2fs/ext2fs.h>
1457 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1458 { (eval echo configure
:1459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1459 ac_err
=`grep -v '^ *+' conftest.out`
1460 if test -z "$ac_err"; then
1462 eval "ac_cv_header_$ac_safe=yes"
1465 echo "configure: failed program was:" >&5
1466 cat conftest.
$ac_ext >&5
1468 eval "ac_cv_header_$ac_safe=no"
1472 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1473 echo "$ac_t""yes" 1>&6
1476 echo "$ac_t""no" 1>&6
1480 echo $ac_n "checking for ext2fs_open in -lext2fs""... $ac_c" 1>&6
1481 echo "configure:1482: checking for ext2fs_open in -lext2fs" >&5
1482 ac_lib_var
=`echo ext2fs'_'ext2fs_open | sed 'y%./+-%__p_%'`
1483 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1484 echo $ac_n "(cached) $ac_c" 1>&6
1486 ac_save_LIBS
="$LIBS"
1487 LIBS
="-lext2fs -lcom_err $LIBS"
1488 cat > conftest.
$ac_ext <<EOF
1489 #line 1490 "configure"
1490 #include "confdefs.h"
1491 /* Override any gcc2 internal prototype to avoid an error. */
1492 /* We use char because int might match the return type of a gcc2
1493 builtin and then its argument prototype would still apply. */
1500 if { (eval echo configure
:1501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1502 eval "ac_cv_lib_$ac_lib_var=yes"
1504 echo "configure: failed program was:" >&5
1505 cat conftest.
$ac_ext >&5
1507 eval "ac_cv_lib_$ac_lib_var=no"
1510 LIBS
="$ac_save_LIBS"
1513 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1514 echo "$ac_t""yes" 1>&6
1517 echo "$ac_t""no" 1>&6
1521 if test "$ext2fs_h" = no
-o "$ext2fs_lib" = no
; then
1522 { echo "configure: error: You need to install the Ext2fs libraries from the E2fsprogs distribution first" 1>&2; exit 1; }
1525 for ac_func
in err errc errx verr verrc verrx vwarn vwarnc vwarnx warn warnc warnx realpath
1527 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1528 echo "configure:1529: checking for $ac_func" >&5
1529 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1530 echo $ac_n "(cached) $ac_c" 1>&6
1532 cat > conftest.
$ac_ext <<EOF
1533 #line 1534 "configure"
1534 #include "confdefs.h"
1535 /* System header to define __stub macros and hopefully few prototypes,
1536 which can conflict with char $ac_func(); below. */
1538 /* Override any gcc2 internal prototype to avoid an error. */
1539 /* We use char because int might match the return type of a gcc2
1540 builtin and then its argument prototype would still apply. */
1545 /* The GNU C library defines this for functions which it implements
1546 to always fail with ENOSYS. Some functions are actually named
1547 something starting with __ and the normal name is an alias. */
1548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1556 if { (eval echo configure
:1557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1558 eval "ac_cv_func_$ac_func=yes"
1560 echo "configure: failed program was:" >&5
1561 cat conftest.
$ac_ext >&5
1563 eval "ac_cv_func_$ac_func=no"
1568 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1569 echo "$ac_t""yes" 1>&6
1570 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1571 cat >> confdefs.h
<<EOF
1572 #define $ac_tr_func 1
1576 echo "$ac_t""no" 1>&6
1581 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1582 echo "configure:1583: checking for ANSI C header files" >&5
1583 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1584 echo $ac_n "(cached) $ac_c" 1>&6
1586 cat > conftest.
$ac_ext <<EOF
1587 #line 1588 "configure"
1588 #include "confdefs.h"
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`
1597 if test -z "$ac_err"; then
1599 ac_cv_header_stdc
=yes
1602 echo "configure: failed program was:" >&5
1603 cat conftest.
$ac_ext >&5
1605 ac_cv_header_stdc
=no
1609 if test $ac_cv_header_stdc = yes; then
1610 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1611 cat > conftest.
$ac_ext <<EOF
1612 #line 1613 "configure"
1613 #include "confdefs.h"
1616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1617 egrep "memchr" >/dev
/null
2>&1; then
1621 ac_cv_header_stdc
=no
1627 if test $ac_cv_header_stdc = yes; then
1628 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1629 cat > conftest.
$ac_ext <<EOF
1630 #line 1631 "configure"
1631 #include "confdefs.h"
1634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1635 egrep "free" >/dev
/null
2>&1; then
1639 ac_cv_header_stdc
=no
1645 if test $ac_cv_header_stdc = yes; then
1646 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1647 if test "$cross_compiling" = yes; then
1650 cat > conftest.
$ac_ext <<EOF
1651 #line 1652 "configure"
1652 #include "confdefs.h"
1654 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1655 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1656 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1657 int main () { int i; for (i = 0; i < 256; i++)
1658 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1662 if { (eval echo configure
:1663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1666 echo "configure: failed program was:" >&5
1667 cat conftest.
$ac_ext >&5
1669 ac_cv_header_stdc
=no
1677 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1678 if test $ac_cv_header_stdc = yes; then
1679 cat >> confdefs.h
<<\EOF
1680 #define STDC_HEADERS 1
1685 echo $ac_n "checking for quad_t""... $ac_c" 1>&6
1686 echo "configure:1687: checking for quad_t" >&5
1687 if eval "test \"`echo '$''{'ac_cv_type_quad_t'+set}'`\" = set"; then
1688 echo $ac_n "(cached) $ac_c" 1>&6
1690 cat > conftest.
$ac_ext <<EOF
1691 #line 1692 "configure"
1692 #include "confdefs.h"
1693 #include <sys/types.h>
1699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1700 egrep "quad_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1702 ac_cv_type_quad_t
=yes
1705 ac_cv_type_quad_t
=no
1710 echo "$ac_t""$ac_cv_type_quad_t" 1>&6
1711 if test $ac_cv_type_quad_t = no
; then
1712 cat >> confdefs.h
<<\EOF
1713 #define quad_t __s64
1718 echo $ac_n "checking for u_quad_t""... $ac_c" 1>&6
1719 echo "configure:1720: checking for u_quad_t" >&5
1720 if eval "test \"`echo '$''{'ac_cv_type_u_quad_t'+set}'`\" = set"; then
1721 echo $ac_n "(cached) $ac_c" 1>&6
1723 cat > conftest.
$ac_ext <<EOF
1724 #line 1725 "configure"
1725 #include "confdefs.h"
1726 #include <sys/types.h>
1732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1733 egrep "u_quad_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1735 ac_cv_type_u_quad_t
=yes
1738 ac_cv_type_u_quad_t
=no
1743 echo "$ac_t""$ac_cv_type_u_quad_t" 1>&6
1744 if test $ac_cv_type_u_quad_t = no
; then
1745 cat >> confdefs.h
<<\EOF
1746 #define u_quad_t __u64
1752 top_builddir
=`cd .; pwd`
1755 test -d compat || mkdir compat
1756 test -d compat
/lib || mkdir compat
/lib
1759 cat > confcache
<<\EOF
1760 # This file is a shell script that caches the results of configure
1761 # tests run on this system so they can be shared between configure
1762 # scripts and configure runs. It is not useful on other systems.
1763 # If it contains results you don't want to keep, you may remove or edit it.
1765 # By default, configure uses ./config.cache as the cache file,
1766 # creating it if it does not exist already. You can give configure
1767 # the --cache-file=FILE option to use a different cache file; that is
1768 # what configure does when it calls configure scripts in
1769 # subdirectories, so they share the cache.
1770 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1771 # config.status only pays attention to the cache file if you give it the
1772 # --recheck option to rerun configure.
1775 # The following way of writing the cache mishandles newlines in values,
1776 # but we know of no workaround that is simple, portable, and efficient.
1777 # So, don't put newlines in cache variables' values.
1778 # Ultrix sh set writes to stderr and can't be redirected directly,
1779 # and sets the high bit in the cache file unless we assign to the vars.
1781 case `(ac_space=' '; set) 2>&1` in
1783 # `set' does not quote correctly, so add quotes (double-quote substitution
1784 # turns \\\\ into \\, and sed turns \\ into \).
1786 -e "s/'/'\\\\''/g" \
1787 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1790 # `set' quotes correctly as required by POSIX, so do not add quotes.
1791 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1794 if cmp -s $cache_file confcache
; then
1797 if test -w $cache_file; then
1798 echo "updating cache $cache_file"
1799 cat confcache
> $cache_file
1801 echo "not updating unwritable cache $cache_file"
1806 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1808 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1809 # Let make expand exec_prefix.
1810 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1812 # Any assignment to VPATH causes Sun make to only execute
1813 # the first set of double-colon rules, so remove it if not needed.
1814 # If there is a colon in the path, we need to keep it.
1815 if test "x$srcdir" = x.
; then
1816 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
1819 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1821 DEFS
=-DHAVE_CONFIG_H
1823 # Without the "./", some shells look in PATH for config.status.
1824 : ${CONFIG_STATUS=./config.status}
1826 echo creating
$CONFIG_STATUS
1827 rm -f $CONFIG_STATUS
1828 cat > $CONFIG_STATUS <<EOF
1830 # Generated automatically by configure.
1831 # Run this file to recreate the current configuration.
1832 # This directory was configured as follows,
1833 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1835 # $0 $ac_configure_args
1837 # Compiler output produced by configure, useful for debugging
1838 # configure, is in ./config.log if it exists.
1840 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1843 case "\$ac_option" in
1844 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1845 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1846 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1847 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1848 echo "$CONFIG_STATUS generated by autoconf version 2.12"
1850 -help | --help | --hel | --he | --h)
1851 echo "\$ac_cs_usage"; exit 0 ;;
1852 *) echo "\$ac_cs_usage"; exit 1 ;;
1856 ac_given_srcdir=$srcdir
1857 ac_given_INSTALL="$INSTALL"
1859 trap 'rm -fr `echo "MCONFIG Makefile common/Makefile compat/lib/Makefile dump/Makefile restore/Makefile $RMTMAKEFILE config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1861 cat >> $CONFIG_STATUS <<EOF
1863 # Protect against being on the right side of a sed subst in config.status.
1864 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1865 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1868 s%@CFLAGS@%$CFLAGS%g
1869 s%@CPPFLAGS@%$CPPFLAGS%g
1870 s%@CXXFLAGS@%$CXXFLAGS%g
1872 s%@LDFLAGS@%$LDFLAGS%g
1874 s%@exec_prefix@%$exec_prefix%g
1875 s%@prefix@%$prefix%g
1876 s%@program_transform_name@%$program_transform_name%g
1877 s%@bindir@%$bindir%g
1878 s%@sbindir@%$sbindir%g
1879 s%@libexecdir@%$libexecdir%g
1880 s%@datadir@%$datadir%g
1881 s%@sysconfdir@%$sysconfdir%g
1882 s%@sharedstatedir@%$sharedstatedir%g
1883 s%@localstatedir@%$localstatedir%g
1884 s%@libdir@%$libdir%g
1885 s%@includedir@%$includedir%g
1886 s%@oldincludedir@%$oldincludedir%g
1887 s%@infodir@%$infodir%g
1888 s%@mandir@%$mandir%g
1889 /@MCONFIG@/r $MCONFIG
1891 s%@SET_MAKE@%$SET_MAKE%g
1897 s%@host_alias@%$host_alias%g
1898 s%@host_cpu@%$host_cpu%g
1899 s%@host_vendor@%$host_vendor%g
1900 s%@host_os@%$host_os%g
1902 s%@build_alias@%$build_alias%g
1903 s%@build_cpu@%$build_cpu%g
1904 s%@build_vendor@%$build_vendor%g
1905 s%@build_os@%$build_os%g
1907 s%@RANLIB@%$RANLIB%g
1910 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1911 s%@INSTALL_DATA@%$INSTALL_DATA%g
1912 s%@DUMPDEBUG@%$DUMPDEBUG%g
1913 s%@RESTOREDEBUG@%$RESTOREDEBUG%g
1914 s%@STATIC@%$STATIC%g
1915 s%@RMTDIR@%$RMTDIR%g
1917 s%@CCOPTS@%$CCOPTS%g
1918 s%@BINOWNER@%$BINOWNER%g
1919 s%@BINGRP@%$BINGRP%g
1920 s%@BINMODE@%$BINMODE%g
1921 s%@MANOWNER@%$MANOWNER%g
1922 s%@MANGRP@%$MANGRP%g
1923 s%@MANMODE@%$MANMODE%g
1925 s%@top_builddir@%$top_builddir%g
1930 cat >> $CONFIG_STATUS <<\EOF
1932 # Split the substitutions into bite-sized pieces for seds with
1933 # small command number limits, like on Digital OSF/1 and HP-UX.
1934 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
1935 ac_file
=1 # Number of current file.
1936 ac_beg
=1 # First line for current file.
1937 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
1940 while $ac_more_lines; do
1941 if test $ac_beg -gt 1; then
1942 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
1944 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
1946 if test ! -s conftest.s
$ac_file; then
1948 rm -f conftest.s
$ac_file
1950 if test -z "$ac_sed_cmds"; then
1951 ac_sed_cmds
="sed -f conftest.s$ac_file"
1953 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
1955 ac_file
=`expr $ac_file + 1`
1957 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
1960 if test -z "$ac_sed_cmds"; then
1965 cat >> $CONFIG_STATUS <<EOF
1967 CONFIG_FILES=\${CONFIG_FILES-"MCONFIG Makefile common/Makefile compat/lib/Makefile dump/Makefile restore/Makefile $RMTMAKEFILE"}
1969 cat >> $CONFIG_STATUS <<\EOF
1970 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
1971 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1973 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
1974 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1975 *) ac_file_in
="${ac_file}.in" ;;
1978 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1980 # Remove last slash and all that follows it. Not all systems have dirname.
1981 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1982 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
1983 # The file is in a subdirectory.
1984 test ! -d "$ac_dir" && mkdir
"$ac_dir"
1985 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
1986 # A "../" for each directory in $ac_dir_suffix.
1987 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1989 ac_dir_suffix
= ac_dots
=
1992 case "$ac_given_srcdir" in
1994 if test -z "$ac_dots"; then top_srcdir
=.
1995 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1996 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
1998 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1999 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
2002 case "$ac_given_INSTALL" in
2003 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
2004 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
2007 echo creating
"$ac_file"
2009 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2011 *Makefile
*) ac_comsub
="1i\\
2012 # $configure_input" ;;
2016 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2018 s%@configure_input@%$configure_input%g
2019 s%@srcdir@%$srcdir%g
2020 s%@top_srcdir@%$top_srcdir%g
2021 s%@INSTALL@%$INSTALL%g
2022 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
2026 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2027 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2029 # ac_d sets the value in "#define NAME VALUE" lines.
2030 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2031 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
2034 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2035 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2036 ac_uB
='\([ ]\)%\1#\2define\3'
2039 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2040 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2041 ac_eB
='$%\1#\2define\3'
2045 if test "${CONFIG_HEADERS+set}" != set; then
2047 cat >> $CONFIG_STATUS <<EOF
2048 CONFIG_HEADERS="config.h"
2050 cat >> $CONFIG_STATUS <<\EOF
2052 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
2053 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2055 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2056 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2057 *) ac_file_in
="${ac_file}.in" ;;
2060 echo creating
$ac_file
2062 rm -f conftest.frag conftest.
in conftest.out
2063 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2064 cat $ac_file_inputs > conftest.
in
2068 # Transform confdefs.h into a sed script conftest.vals that substitutes
2069 # the proper values into config.h.in to produce config.h. And first:
2070 # Protect against being on the right side of a sed subst in config.status.
2071 # Protect against being in an unquoted here document in config.status.
2073 cat > conftest.hdr
<<\EOF
2076 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2080 sed -n -f conftest.hdr confdefs.h > conftest.vals
2083 # This sed command replaces #undef with comments. This is necessary, for
2084 # example, in the case of _POSIX_SOURCE, which is predefined and required
2085 # on some systems where configure will not decide to define it.
2086 cat >> conftest.vals <<\EOF
2087 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2090 # Break up conftest.vals because some shells have a limit on
2091 # the size of here documents, and old seds have small limits too.
2096 ac_lines=`grep -c . conftest.vals
`
2097 # grep -c gives empty output for an empty file on some AIX systems.
2098 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2099 # Write a limited-size here document to conftest.frag.
2100 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2101 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2103 sed -f conftest.frag conftest.in > conftest.out
2105 mv conftest.out conftest.in
2107 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2109 mv conftest.tail conftest.vals
2113 cat >> $CONFIG_STATUS <<\EOF
2114 rm -f conftest.frag conftest.h
2115 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2116 cat conftest.in >> conftest.h
2118 if cmp -s $ac_file conftest.h 2>/dev/null; then
2119 echo "$ac_file is unchanged"
2122 # Remove last slash and all that follows it. Not all systems have dirname.
2123 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
2124 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2125 # The file is in a subdirectory.
2126 test ! -d "$ac_dir" && mkdir "$ac_dir"
2129 mv conftest.h $ac_file
2134 cat >> $CONFIG_STATUS <<EOF
2137 cat >> $CONFIG_STATUS <<\EOF
2141 chmod +x $CONFIG_STATUS
2142 rm -fr confdefs* $ac_clean_files
2143 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1