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