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