]> git.wh0rd.org - dump.git/blob - configure
Fixed the configure scripts to only check not build headers
[dump.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 if expr a : '\(a\)' >/dev/null 2>&1; then
11 as_expr=expr
12 else
13 as_expr=false
14 fi
15
16
17 ## --------------------- ##
18 ## M4sh Initialization. ##
19 ## --------------------- ##
20
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23 emulate sh
24 NULLCMD=:
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 set -o posix
27 fi
28
29 # NLS nuisances.
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 as_unset=unset
33 else
34 as_unset=false
35 fi
36
37 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38 { $as_unset LANG || test "${LANG+set}" != set; } ||
39 { LANG=C; export LANG; }
40 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42 { LC_ALL=C; export LC_ALL; }
43 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45 { LC_TIME=C; export LC_TIME; }
46 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48 { LC_CTYPE=C; export LC_CTYPE; }
49 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51 { LANGUAGE=C; export LANGUAGE; }
52 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54 { LC_COLLATE=C; export LC_COLLATE; }
55 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57 { LC_NUMERIC=C; export LC_NUMERIC; }
58 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60 { LC_MESSAGES=C; export LC_MESSAGES; }
61
62
63 # Name of the executable.
64 as_me=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
69 echo X/"$0" |
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; q; }
73 s/.*/./; q'`
74
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
87 chmod +x conftest.sh
88 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
89 PATH_SEPARATOR=';'
90 else
91 PATH_SEPARATOR=:
92 fi
93 rm -f conftest.sh
94 fi
95
96
97 as_lineno_1=$LINENO
98 as_lineno_2=$LINENO
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
103 # relative or not.
104 case $0 in
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 for as_dir in $PATH
108 do
109 IFS=$as_save_IFS
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
113
114 ;;
115 esac
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
119 as_myself=$0
120 fi
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
124 fi
125 case $CONFIG_SHELL in
126 '')
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129 do
130 IFS=$as_save_IFS
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
133 case $as_dir in
134 /*)
135 if ("$as_dir/$as_base" -c '
136 as_lineno_1=$LINENO
137 as_lineno_2=$LINENO
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 CONFIG_SHELL=$as_dir/$as_base
142 export CONFIG_SHELL
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144 fi;;
145 esac
146 done
147 done
148 ;;
149 esac
150
151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152 # uniformly replaced by the line number. The first 'sed' inserts a
153 # line-number line before each line; the second 'sed' does the real
154 # work. The second script uses 'N' to pair each line-number line
155 # with the numbered line, and appends trailing '-' during
156 # substitution so that $LINENO is not a special case at line end.
157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
159 sed '=' <$as_myself |
160 sed '
161 N
162 s,$,-,
163 : loop
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165 t loop
166 s,-$,,
167 s,^['$as_cr_digits']*\n,,
168 ' >$as_me.lineno &&
169 chmod +x $as_me.lineno ||
170 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171 { (exit 1); exit 1; }; }
172
173 # Don't try to exec as it changes $[0], causing all sort of problems
174 # (the dirname of $[0] is not the place where we might find the
175 # original and so on. Autoconf is especially sensible to this).
176 . ./$as_me.lineno
177 # Exit status is that of the last command.
178 exit
179 }
180
181
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c*,-n*) ECHO_N= ECHO_C='
184 ' ECHO_T=' ' ;;
185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
187 esac
188
189 if expr a : '\(a\)' >/dev/null 2>&1; then
190 as_expr=expr
191 else
192 as_expr=false
193 fi
194
195 rm -f conf$$ conf$$.exe conf$$.file
196 echo >conf$$.file
197 if ln -s conf$$.file conf$$ 2>/dev/null; then
198 # We could just check for DJGPP; but this test a) works b) is more generic
199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200 if test -f conf$$.exe; then
201 # Don't use ln at all; we don't have any links
202 as_ln_s='cp -p'
203 else
204 as_ln_s='ln -s'
205 fi
206 elif ln conf$$.file conf$$ 2>/dev/null; then
207 as_ln_s=ln
208 else
209 as_ln_s='cp -p'
210 fi
211 rm -f conf$$ conf$$.exe conf$$.file
212
213 as_executable_p="test -f"
214
215 # Sed expression to map a string onto a valid CPP name.
216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
217
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
220
221
222 # IFS
223 # We need space, tab and new line, in precisely that order.
224 as_nl='
225 '
226 IFS=" $as_nl"
227
228 # CDPATH.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
230
231
232 # Name of the host.
233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234 # so uname gets run too.
235 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
236
237 exec 6>&1
238
239 #
240 # Initializations.
241 #
242 ac_default_prefix=/usr/local
243 cross_compiling=no
244 subdirs=
245 MFLAGS=
246 MAKEFLAGS=
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
249 # Maximum number of lines to put in a shell here document.
250 # This variable seems obsolete. It should probably be removed, and
251 # only ac_max_sed_lines should be used.
252 : ${ac_max_here_lines=38}
253
254 # Identity of this package.
255 PACKAGE_NAME=
256 PACKAGE_TARNAME=
257 PACKAGE_VERSION=
258 PACKAGE_STRING=
259 PACKAGE_BUGREPORT=
260
261 ac_unique_file="dump/dump.h"
262 # Factoring default headers for most tests.
263 ac_includes_default="\
264 #include <stdio.h>
265 #if HAVE_SYS_TYPES_H
266 # include <sys/types.h>
267 #endif
268 #if HAVE_SYS_STAT_H
269 # include <sys/stat.h>
270 #endif
271 #if STDC_HEADERS
272 # include <stdlib.h>
273 # include <stddef.h>
274 #else
275 # if HAVE_STDLIB_H
276 # include <stdlib.h>
277 # endif
278 #endif
279 #if HAVE_STRING_H
280 # if !STDC_HEADERS && HAVE_MEMORY_H
281 # include <memory.h>
282 # endif
283 # include <string.h>
284 #endif
285 #if HAVE_STRINGS_H
286 # include <strings.h>
287 #endif
288 #if HAVE_INTTYPES_H
289 # include <inttypes.h>
290 #else
291 # if HAVE_STDINT_H
292 # include <stdint.h>
293 # endif
294 #endif
295 #if HAVE_UNISTD_H
296 # include <unistd.h>
297 #endif"
298
299
300 # Initialize some variables set by options.
301 ac_init_help=
302 ac_init_version=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
305 cache_file=/dev/null
306 exec_prefix=NONE
307 no_create=
308 no_recursion=
309 prefix=NONE
310 program_prefix=NONE
311 program_suffix=NONE
312 program_transform_name=s,x,x,
313 silent=
314 site=
315 srcdir=
316 verbose=
317 x_includes=NONE
318 x_libraries=NONE
319
320 # Installation directory options.
321 # These are left unexpanded so users can "make install exec_prefix=/foo"
322 # and all the variables that are supposed to be based on exec_prefix
323 # by default will actually change.
324 # Use braces instead of parens because sh, perl, etc. also accept them.
325 bindir='${exec_prefix}/bin'
326 sbindir='${exec_prefix}/sbin'
327 libexecdir='${exec_prefix}/libexec'
328 datadir='${prefix}/share'
329 sysconfdir='${prefix}/etc'
330 sharedstatedir='${prefix}/com'
331 localstatedir='${prefix}/var'
332 libdir='${exec_prefix}/lib'
333 includedir='${prefix}/include'
334 oldincludedir='/usr/include'
335 infodir='${prefix}/info'
336 mandir='${prefix}/man'
337
338 ac_prev=
339 for ac_option
340 do
341 # If the previous option needs an argument, assign it.
342 if test -n "$ac_prev"; then
343 eval "$ac_prev=\$ac_option"
344 ac_prev=
345 continue
346 fi
347
348 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
349
350 # Accept the important Cygnus configure options, so we can diagnose typos.
351
352 case $ac_option in
353
354 -bindir | --bindir | --bindi | --bind | --bin | --bi)
355 ac_prev=bindir ;;
356 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
357 bindir=$ac_optarg ;;
358
359 -build | --build | --buil | --bui | --bu)
360 ac_prev=build_alias ;;
361 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362 build_alias=$ac_optarg ;;
363
364 -cache-file | --cache-file | --cache-fil | --cache-fi \
365 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366 ac_prev=cache_file ;;
367 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369 cache_file=$ac_optarg ;;
370
371 --config-cache | -C)
372 cache_file=config.cache ;;
373
374 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
375 ac_prev=datadir ;;
376 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
377 | --da=*)
378 datadir=$ac_optarg ;;
379
380 -disable-* | --disable-*)
381 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382 # Reject names that are not valid shell variable names.
383 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385 { (exit 1); exit 1; }; }
386 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387 eval "enable_$ac_feature=no" ;;
388
389 -enable-* | --enable-*)
390 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391 # Reject names that are not valid shell variable names.
392 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394 { (exit 1); exit 1; }; }
395 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
396 case $ac_option in
397 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398 *) ac_optarg=yes ;;
399 esac
400 eval "enable_$ac_feature='$ac_optarg'" ;;
401
402 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404 | --exec | --exe | --ex)
405 ac_prev=exec_prefix ;;
406 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408 | --exec=* | --exe=* | --ex=*)
409 exec_prefix=$ac_optarg ;;
410
411 -gas | --gas | --ga | --g)
412 # Obsolete; use --with-gas.
413 with_gas=yes ;;
414
415 -help | --help | --hel | --he | -h)
416 ac_init_help=long ;;
417 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418 ac_init_help=recursive ;;
419 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420 ac_init_help=short ;;
421
422 -host | --host | --hos | --ho)
423 ac_prev=host_alias ;;
424 -host=* | --host=* | --hos=* | --ho=*)
425 host_alias=$ac_optarg ;;
426
427 -includedir | --includedir | --includedi | --included | --include \
428 | --includ | --inclu | --incl | --inc)
429 ac_prev=includedir ;;
430 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431 | --includ=* | --inclu=* | --incl=* | --inc=*)
432 includedir=$ac_optarg ;;
433
434 -infodir | --infodir | --infodi | --infod | --info | --inf)
435 ac_prev=infodir ;;
436 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437 infodir=$ac_optarg ;;
438
439 -libdir | --libdir | --libdi | --libd)
440 ac_prev=libdir ;;
441 -libdir=* | --libdir=* | --libdi=* | --libd=*)
442 libdir=$ac_optarg ;;
443
444 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445 | --libexe | --libex | --libe)
446 ac_prev=libexecdir ;;
447 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448 | --libexe=* | --libex=* | --libe=*)
449 libexecdir=$ac_optarg ;;
450
451 -localstatedir | --localstatedir | --localstatedi | --localstated \
452 | --localstate | --localstat | --localsta | --localst \
453 | --locals | --local | --loca | --loc | --lo)
454 ac_prev=localstatedir ;;
455 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458 localstatedir=$ac_optarg ;;
459
460 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
461 ac_prev=mandir ;;
462 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
463 mandir=$ac_optarg ;;
464
465 -nfp | --nfp | --nf)
466 # Obsolete; use --without-fp.
467 with_fp=no ;;
468
469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470 | --no-cr | --no-c | -n)
471 no_create=yes ;;
472
473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
475 no_recursion=yes ;;
476
477 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479 | --oldin | --oldi | --old | --ol | --o)
480 ac_prev=oldincludedir ;;
481 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484 oldincludedir=$ac_optarg ;;
485
486 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
487 ac_prev=prefix ;;
488 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
489 prefix=$ac_optarg ;;
490
491 -program-prefix | --program-prefix | --program-prefi | --program-pref \
492 | --program-pre | --program-pr | --program-p)
493 ac_prev=program_prefix ;;
494 -program-prefix=* | --program-prefix=* | --program-prefi=* \
495 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496 program_prefix=$ac_optarg ;;
497
498 -program-suffix | --program-suffix | --program-suffi | --program-suff \
499 | --program-suf | --program-su | --program-s)
500 ac_prev=program_suffix ;;
501 -program-suffix=* | --program-suffix=* | --program-suffi=* \
502 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503 program_suffix=$ac_optarg ;;
504
505 -program-transform-name | --program-transform-name \
506 | --program-transform-nam | --program-transform-na \
507 | --program-transform-n | --program-transform- \
508 | --program-transform | --program-transfor \
509 | --program-transfo | --program-transf \
510 | --program-trans | --program-tran \
511 | --progr-tra | --program-tr | --program-t)
512 ac_prev=program_transform_name ;;
513 -program-transform-name=* | --program-transform-name=* \
514 | --program-transform-nam=* | --program-transform-na=* \
515 | --program-transform-n=* | --program-transform-=* \
516 | --program-transform=* | --program-transfor=* \
517 | --program-transfo=* | --program-transf=* \
518 | --program-trans=* | --program-tran=* \
519 | --progr-tra=* | --program-tr=* | --program-t=*)
520 program_transform_name=$ac_optarg ;;
521
522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523 | -silent | --silent | --silen | --sile | --sil)
524 silent=yes ;;
525
526 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
527 ac_prev=sbindir ;;
528 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
529 | --sbi=* | --sb=*)
530 sbindir=$ac_optarg ;;
531
532 -sharedstatedir | --sharedstatedir | --sharedstatedi \
533 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534 | --sharedst | --shareds | --shared | --share | --shar \
535 | --sha | --sh)
536 ac_prev=sharedstatedir ;;
537 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
540 | --sha=* | --sh=*)
541 sharedstatedir=$ac_optarg ;;
542
543 -site | --site | --sit)
544 ac_prev=site ;;
545 -site=* | --site=* | --sit=*)
546 site=$ac_optarg ;;
547
548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
549 ac_prev=srcdir ;;
550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
551 srcdir=$ac_optarg ;;
552
553 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554 | --syscon | --sysco | --sysc | --sys | --sy)
555 ac_prev=sysconfdir ;;
556 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558 sysconfdir=$ac_optarg ;;
559
560 -target | --target | --targe | --targ | --tar | --ta | --t)
561 ac_prev=target_alias ;;
562 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563 target_alias=$ac_optarg ;;
564
565 -v | -verbose | --verbose | --verbos | --verbo | --verb)
566 verbose=yes ;;
567
568 -version | --version | --versio | --versi | --vers | -V)
569 ac_init_version=: ;;
570
571 -with-* | --with-*)
572 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid package name: $ac_package" >&2
576 { (exit 1); exit 1; }; }
577 ac_package=`echo $ac_package| sed 's/-/_/g'`
578 case $ac_option in
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580 *) ac_optarg=yes ;;
581 esac
582 eval "with_$ac_package='$ac_optarg'" ;;
583
584 -without-* | --without-*)
585 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586 # Reject names that are not valid shell variable names.
587 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588 { echo "$as_me: error: invalid package name: $ac_package" >&2
589 { (exit 1); exit 1; }; }
590 ac_package=`echo $ac_package | sed 's/-/_/g'`
591 eval "with_$ac_package=no" ;;
592
593 --x)
594 # Obsolete; use --with-x.
595 with_x=yes ;;
596
597 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598 | --x-incl | --x-inc | --x-in | --x-i)
599 ac_prev=x_includes ;;
600 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602 x_includes=$ac_optarg ;;
603
604 -x-libraries | --x-libraries | --x-librarie | --x-librari \
605 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606 ac_prev=x_libraries ;;
607 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609 x_libraries=$ac_optarg ;;
610
611 -*) { echo "$as_me: error: unrecognized option: $ac_option
612 Try \`$0 --help' for more information." >&2
613 { (exit 1); exit 1; }; }
614 ;;
615
616 *=*)
617 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618 # Reject names that are not valid shell variable names.
619 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621 { (exit 1); exit 1; }; }
622 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623 eval "$ac_envvar='$ac_optarg'"
624 export $ac_envvar ;;
625
626 *)
627 # FIXME: should be removed in autoconf 3.0.
628 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
632 ;;
633
634 esac
635 done
636
637 if test -n "$ac_prev"; then
638 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639 { echo "$as_me: error: missing argument to $ac_option" >&2
640 { (exit 1); exit 1; }; }
641 fi
642
643 # Be sure to have absolute paths.
644 for ac_var in exec_prefix prefix
645 do
646 eval ac_val=$`echo $ac_var`
647 case $ac_val in
648 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650 { (exit 1); exit 1; }; };;
651 esac
652 done
653
654 # Be sure to have absolute paths.
655 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656 localstatedir libdir includedir oldincludedir infodir mandir
657 do
658 eval ac_val=$`echo $ac_var`
659 case $ac_val in
660 [\\/$]* | ?:[\\/]* ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
663 esac
664 done
665
666 # There might be people who depend on the old broken behavior: `$host'
667 # used to hold the argument of --host etc.
668 # FIXME: To remove some day.
669 build=$build_alias
670 host=$host_alias
671 target=$target_alias
672
673 # FIXME: To remove some day.
674 if test "x$host_alias" != x; then
675 if test "x$build_alias" = x; then
676 cross_compiling=maybe
677 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678 If a cross compiler is detected then cross compile mode will be used." >&2
679 elif test "x$build_alias" != "x$host_alias"; then
680 cross_compiling=yes
681 fi
682 fi
683
684 ac_tool_prefix=
685 test -n "$host_alias" && ac_tool_prefix=$host_alias-
686
687 test "$silent" = yes && exec 6>/dev/null
688
689
690 # Find the source files, if location was not specified.
691 if test -z "$srcdir"; then
692 ac_srcdir_defaulted=yes
693 # Try the directory containing this script, then its parent.
694 ac_confdir=`(dirname "$0") 2>/dev/null ||
695 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696 X"$0" : 'X\(//\)[^/]' \| \
697 X"$0" : 'X\(//\)$' \| \
698 X"$0" : 'X\(/\)' \| \
699 . : '\(.\)' 2>/dev/null ||
700 echo X"$0" |
701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703 /^X\(\/\/\)$/{ s//\1/; q; }
704 /^X\(\/\).*/{ s//\1/; q; }
705 s/.*/./; q'`
706 srcdir=$ac_confdir
707 if test ! -r $srcdir/$ac_unique_file; then
708 srcdir=..
709 fi
710 else
711 ac_srcdir_defaulted=no
712 fi
713 if test ! -r $srcdir/$ac_unique_file; then
714 if test "$ac_srcdir_defaulted" = yes; then
715 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716 { (exit 1); exit 1; }; }
717 else
718 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719 { (exit 1); exit 1; }; }
720 fi
721 fi
722 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set=${build_alias+set}
724 ac_env_build_alias_value=$build_alias
725 ac_cv_env_build_alias_set=${build_alias+set}
726 ac_cv_env_build_alias_value=$build_alias
727 ac_env_host_alias_set=${host_alias+set}
728 ac_env_host_alias_value=$host_alias
729 ac_cv_env_host_alias_set=${host_alias+set}
730 ac_cv_env_host_alias_value=$host_alias
731 ac_env_target_alias_set=${target_alias+set}
732 ac_env_target_alias_value=$target_alias
733 ac_cv_env_target_alias_set=${target_alias+set}
734 ac_cv_env_target_alias_value=$target_alias
735 ac_env_CC_set=${CC+set}
736 ac_env_CC_value=$CC
737 ac_cv_env_CC_set=${CC+set}
738 ac_cv_env_CC_value=$CC
739 ac_env_CFLAGS_set=${CFLAGS+set}
740 ac_env_CFLAGS_value=$CFLAGS
741 ac_cv_env_CFLAGS_set=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value=$CFLAGS
743 ac_env_LDFLAGS_set=${LDFLAGS+set}
744 ac_env_LDFLAGS_value=$LDFLAGS
745 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value=$LDFLAGS
747 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751 ac_env_CPP_set=${CPP+set}
752 ac_env_CPP_value=$CPP
753 ac_cv_env_CPP_set=${CPP+set}
754 ac_cv_env_CPP_value=$CPP
755
756 #
757 # Report the --help message.
758 #
759 if test "$ac_init_help" = "long"; then
760 # Omit some internal or obsolete options to make the list less imposing.
761 # This message is too long to be a string in the A/UX 3.1 sh.
762 cat <<_ACEOF
763 \`configure' configures this package to adapt to many kinds of systems.
764
765 Usage: $0 [OPTION]... [VAR=VALUE]...
766
767 To assign environment variables (e.g., CC, CFLAGS...), specify them as
768 VAR=VALUE. See below for descriptions of some of the useful variables.
769
770 Defaults for the options are specified in brackets.
771
772 Configuration:
773 -h, --help display this help and exit
774 --help=short display options specific to this package
775 --help=recursive display the short help of all the included packages
776 -V, --version display version information and exit
777 -q, --quiet, --silent do not print \`checking...' messages
778 --cache-file=FILE cache test results in FILE [disabled]
779 -C, --config-cache alias for \`--cache-file=config.cache'
780 -n, --no-create do not create output files
781 --srcdir=DIR find the sources in DIR [configure dir or \`..']
782
783 _ACEOF
784
785 cat <<_ACEOF
786 Installation directories:
787 --prefix=PREFIX install architecture-independent files in PREFIX
788 [$ac_default_prefix]
789 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
790 [PREFIX]
791
792 By default, \`make install' will install all the files in
793 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
794 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795 for instance \`--prefix=\$HOME'.
796
797 For better control, use the options below.
798
799 Fine tuning of the installation directories:
800 --bindir=DIR user executables [EPREFIX/bin]
801 --sbindir=DIR system admin executables [EPREFIX/sbin]
802 --libexecdir=DIR program executables [EPREFIX/libexec]
803 --datadir=DIR read-only architecture-independent data [PREFIX/share]
804 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
805 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
806 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
807 --libdir=DIR object code libraries [EPREFIX/lib]
808 --includedir=DIR C header files [PREFIX/include]
809 --oldincludedir=DIR C header files for non-gcc [/usr/include]
810 --infodir=DIR info documentation [PREFIX/info]
811 --mandir=DIR man documentation [PREFIX/man]
812 _ACEOF
813
814 cat <<\_ACEOF
815 _ACEOF
816 fi
817
818 if test -n "$ac_init_help"; then
819
820 cat <<\_ACEOF
821
822 Optional Features:
823 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
824 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
825 --enable-debug include debugging code (default is NO)
826 --enable-static link dump and restore statically (default is NO)
827 --enable-rmt compile and install rmt (default is YES)
828 --enable-kerberos compile kerberos extensions (default is NO)
829 --enable-readline enable readline support in restore (default is YES)
830 --enable-oldstylefscript enable old style F script (no arguments) (default is NO)
831 --enable-largefile enable Large File System support (default is YES)
832 --enable-qfa enable Quick File Access support (default is YES)
833 --enable-qfadebug include Quick File Access debugging code (default is NO)
834
835 Optional Packages:
836 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
837 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
838 --with-cc=COMPILER select compiler to use
839 --with-linker=LINKER select linker to use
840 --with-ccopts=CCOPTS select compiler command line options
841 --with-ldopts=LDOPTS select linker command line options
842 --with-binowner=USER select owner for binaries
843 --with-bingrp=GROUP select group for binaries
844 --with-binmode=MODE select mode for binaries
845 --with-manowner=USER select owner for manual pages
846 --with-mangrp=GROUP select group for manual pages
847 --with-manmode=MODE select mode for manual pages
848 --with-dumpdatespath=PATH select path for dumpdates file
849
850 Some influential environment variables:
851 CC C compiler command
852 CFLAGS C compiler flags
853 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
854 nonstandard directory <lib dir>
855 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
856 headers in a nonstandard directory <include dir>
857 CPP C preprocessor
858
859 Use these variables to override the choices made by `configure' or to help
860 it to find libraries and programs with nonstandard names/locations.
861
862 _ACEOF
863 fi
864
865 if test "$ac_init_help" = "recursive"; then
866 # If there are subdirs, report their specific --help.
867 ac_popdir=`pwd`
868 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
869 test -d $ac_dir || continue
870 ac_builddir=.
871
872 if test "$ac_dir" != .; then
873 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
874 # A "../" for each directory in $ac_dir_suffix.
875 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
876 else
877 ac_dir_suffix= ac_top_builddir=
878 fi
879
880 case $srcdir in
881 .) # No --srcdir option. We are building in place.
882 ac_srcdir=.
883 if test -z "$ac_top_builddir"; then
884 ac_top_srcdir=.
885 else
886 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
887 fi ;;
888 [\\/]* | ?:[\\/]* ) # Absolute path.
889 ac_srcdir=$srcdir$ac_dir_suffix;
890 ac_top_srcdir=$srcdir ;;
891 *) # Relative path.
892 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
893 ac_top_srcdir=$ac_top_builddir$srcdir ;;
894 esac
895 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
896 # absolute.
897 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
898 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
899 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
900 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
901
902 cd $ac_dir
903 # Check for guested configure; otherwise get Cygnus style configure.
904 if test -f $ac_srcdir/configure.gnu; then
905 echo
906 $SHELL $ac_srcdir/configure.gnu --help=recursive
907 elif test -f $ac_srcdir/configure; then
908 echo
909 $SHELL $ac_srcdir/configure --help=recursive
910 elif test -f $ac_srcdir/configure.ac ||
911 test -f $ac_srcdir/configure.in; then
912 echo
913 $ac_configure --help
914 else
915 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
916 fi
917 cd $ac_popdir
918 done
919 fi
920
921 test -n "$ac_init_help" && exit 0
922 if $ac_init_version; then
923 cat <<\_ACEOF
924
925 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
926 Free Software Foundation, Inc.
927 This configure script is free software; the Free Software Foundation
928 gives unlimited permission to copy, distribute and modify it.
929 _ACEOF
930 exit 0
931 fi
932 exec 5>config.log
933 cat >&5 <<_ACEOF
934 This file contains any messages produced by compilers while
935 running configure, to aid debugging if configure makes a mistake.
936
937 It was created by $as_me, which was
938 generated by GNU Autoconf 2.53. Invocation command line was
939
940 $ $0 $@
941
942 _ACEOF
943 {
944 cat <<_ASUNAME
945 ## --------- ##
946 ## Platform. ##
947 ## --------- ##
948
949 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
950 uname -m = `(uname -m) 2>/dev/null || echo unknown`
951 uname -r = `(uname -r) 2>/dev/null || echo unknown`
952 uname -s = `(uname -s) 2>/dev/null || echo unknown`
953 uname -v = `(uname -v) 2>/dev/null || echo unknown`
954
955 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
956 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
957
958 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
959 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
960 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
961 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
962 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
963 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
964 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
965
966 _ASUNAME
967
968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
969 for as_dir in $PATH
970 do
971 IFS=$as_save_IFS
972 test -z "$as_dir" && as_dir=.
973 echo "PATH: $as_dir"
974 done
975
976 } >&5
977
978 cat >&5 <<_ACEOF
979
980
981 ## ----------- ##
982 ## Core tests. ##
983 ## ----------- ##
984
985 _ACEOF
986
987
988 # Keep a trace of the command line.
989 # Strip out --no-create and --no-recursion so they do not pile up.
990 # Also quote any args containing shell meta-characters.
991 ac_configure_args=
992 ac_sep=
993 for ac_arg
994 do
995 case $ac_arg in
996 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
997 | --no-cr | --no-c | -n ) continue ;;
998 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
999 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1000 continue ;;
1001 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1002 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1003 esac
1004 case " $ac_configure_args " in
1005 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1006 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1007 ac_sep=" " ;;
1008 esac
1009 # Get rid of the leading space.
1010 done
1011
1012 # When interrupted or exit'd, cleanup temporary files, and complete
1013 # config.log. We remove comments because anyway the quotes in there
1014 # would cause problems or look ugly.
1015 # WARNING: Be sure not to use single quotes in there, as some shells,
1016 # such as our DU 5.0 friend, will then `close' the trap.
1017 trap 'exit_status=$?
1018 # Save into config.log some information that might help in debugging.
1019 {
1020 echo
1021 cat <<\_ASBOX
1022 ## ---------------- ##
1023 ## Cache variables. ##
1024 ## ---------------- ##
1025 _ASBOX
1026 echo
1027 # The following way of writing the cache mishandles newlines in values,
1028 {
1029 (set) 2>&1 |
1030 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1031 *ac_space=\ *)
1032 sed -n \
1033 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1034 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1035 ;;
1036 *)
1037 sed -n \
1038 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1039 ;;
1040 esac;
1041 }
1042 echo
1043 if test -s confdefs.h; then
1044 cat <<\_ASBOX
1045 ## ----------- ##
1046 ## confdefs.h. ##
1047 ## ----------- ##
1048 _ASBOX
1049 echo
1050 sed "/^$/d" confdefs.h
1051 echo
1052 fi
1053 test "$ac_signal" != 0 &&
1054 echo "$as_me: caught signal $ac_signal"
1055 echo "$as_me: exit $exit_status"
1056 } >&5
1057 rm -f core core.* *.core &&
1058 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1059 exit $exit_status
1060 ' 0
1061 for ac_signal in 1 2 13 15; do
1062 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1063 done
1064 ac_signal=0
1065
1066 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1067 rm -rf conftest* confdefs.h
1068 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1069 echo >confdefs.h
1070
1071 # Predefined preprocessor variables.
1072
1073 cat >>confdefs.h <<_ACEOF
1074 #define PACKAGE_NAME "$PACKAGE_NAME"
1075 _ACEOF
1076
1077
1078 cat >>confdefs.h <<_ACEOF
1079 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1080 _ACEOF
1081
1082
1083 cat >>confdefs.h <<_ACEOF
1084 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1085 _ACEOF
1086
1087
1088 cat >>confdefs.h <<_ACEOF
1089 #define PACKAGE_STRING "$PACKAGE_STRING"
1090 _ACEOF
1091
1092
1093 cat >>confdefs.h <<_ACEOF
1094 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1095 _ACEOF
1096
1097
1098 # Let the site file select an alternate cache file if it wants to.
1099 # Prefer explicitly selected file to automatically selected ones.
1100 if test -z "$CONFIG_SITE"; then
1101 if test "x$prefix" != xNONE; then
1102 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1103 else
1104 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1105 fi
1106 fi
1107 for ac_site_file in $CONFIG_SITE; do
1108 if test -r "$ac_site_file"; then
1109 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1110 echo "$as_me: loading site script $ac_site_file" >&6;}
1111 sed 's/^/| /' "$ac_site_file" >&5
1112 . "$ac_site_file"
1113 fi
1114 done
1115
1116 if test -r "$cache_file"; then
1117 # Some versions of bash will fail to source /dev/null (special
1118 # files actually), so we avoid doing that.
1119 if test -f "$cache_file"; then
1120 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1121 echo "$as_me: loading cache $cache_file" >&6;}
1122 case $cache_file in
1123 [\\/]* | ?:[\\/]* ) . $cache_file;;
1124 *) . ./$cache_file;;
1125 esac
1126 fi
1127 else
1128 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1129 echo "$as_me: creating cache $cache_file" >&6;}
1130 >$cache_file
1131 fi
1132
1133 # Check that the precious variables saved in the cache have kept the same
1134 # value.
1135 ac_cache_corrupted=false
1136 for ac_var in `(set) 2>&1 |
1137 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1138 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1139 eval ac_new_set=\$ac_env_${ac_var}_set
1140 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1141 eval ac_new_val="\$ac_env_${ac_var}_value"
1142 case $ac_old_set,$ac_new_set in
1143 set,)
1144 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1145 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1146 ac_cache_corrupted=: ;;
1147 ,set)
1148 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1149 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1150 ac_cache_corrupted=: ;;
1151 ,);;
1152 *)
1153 if test "x$ac_old_val" != "x$ac_new_val"; then
1154 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1155 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1156 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1157 echo "$as_me: former value: $ac_old_val" >&2;}
1158 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1159 echo "$as_me: current value: $ac_new_val" >&2;}
1160 ac_cache_corrupted=:
1161 fi;;
1162 esac
1163 # Pass precious variables to config.status.
1164 if test "$ac_new_set" = set; then
1165 case $ac_new_val in
1166 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1167 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1168 *) ac_arg=$ac_var=$ac_new_val ;;
1169 esac
1170 case " $ac_configure_args " in
1171 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1172 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1173 esac
1174 fi
1175 done
1176 if $ac_cache_corrupted; then
1177 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1178 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1179 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1180 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1181 { (exit 1); exit 1; }; }
1182 fi
1183
1184 ac_ext=c
1185 ac_cpp='$CPP $CPPFLAGS'
1186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208 MCONFIG=./MCONFIG
1209
1210
1211 ac_config_headers="$ac_config_headers config.h"
1212
1213
1214 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1215 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1216 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1217 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1218 echo $ECHO_N "(cached) $ECHO_C" >&6
1219 else
1220 cat >conftest.make <<\_ACEOF
1221 all:
1222 @echo 'ac_maketemp="${MAKE}"'
1223 _ACEOF
1224 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1225 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1226 if test -n "$ac_maketemp"; then
1227 eval ac_cv_prog_make_${ac_make}_set=yes
1228 else
1229 eval ac_cv_prog_make_${ac_make}_set=no
1230 fi
1231 rm -f conftest.make
1232 fi
1233 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1234 echo "$as_me:$LINENO: result: yes" >&5
1235 echo "${ECHO_T}yes" >&6
1236 SET_MAKE=
1237 else
1238 echo "$as_me:$LINENO: result: no" >&5
1239 echo "${ECHO_T}no" >&6
1240 SET_MAKE="MAKE=${MAKE-make}"
1241 fi
1242
1243 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1244 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1245 LN_S=$as_ln_s
1246 if test "$LN_S" = "ln -s"; then
1247 echo "$as_me:$LINENO: result: yes" >&5
1248 echo "${ECHO_T}yes" >&6
1249 else
1250 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1251 echo "${ECHO_T}no, using $LN_S" >&6
1252 fi
1253
1254 # Extract the first word of "cp", so it can be a program name with args.
1255 set dummy cp; ac_word=$2
1256 echo "$as_me:$LINENO: checking for $ac_word" >&5
1257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1258 if test "${ac_cv_path_CP+set}" = set; then
1259 echo $ECHO_N "(cached) $ECHO_C" >&6
1260 else
1261 case $CP in
1262 [\\/]* | ?:[\\/]*)
1263 ac_cv_path_CP="$CP" # Let the user override the test with a path.
1264 ;;
1265 *)
1266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1267 for as_dir in $PATH
1268 do
1269 IFS=$as_save_IFS
1270 test -z "$as_dir" && as_dir=.
1271 for ac_exec_ext in '' $ac_executable_extensions; do
1272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1273 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
1274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1275 break 2
1276 fi
1277 done
1278 done
1279
1280 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
1281 ;;
1282 esac
1283 fi
1284 CP=$ac_cv_path_CP
1285
1286 if test -n "$CP"; then
1287 echo "$as_me:$LINENO: result: $CP" >&5
1288 echo "${ECHO_T}$CP" >&6
1289 else
1290 echo "$as_me:$LINENO: result: no" >&5
1291 echo "${ECHO_T}no" >&6
1292 fi
1293
1294 # Extract the first word of "mv", so it can be a program name with args.
1295 set dummy mv; ac_word=$2
1296 echo "$as_me:$LINENO: checking for $ac_word" >&5
1297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1298 if test "${ac_cv_path_MV+set}" = set; then
1299 echo $ECHO_N "(cached) $ECHO_C" >&6
1300 else
1301 case $MV in
1302 [\\/]* | ?:[\\/]*)
1303 ac_cv_path_MV="$MV" # Let the user override the test with a path.
1304 ;;
1305 *)
1306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1307 for as_dir in $PATH
1308 do
1309 IFS=$as_save_IFS
1310 test -z "$as_dir" && as_dir=.
1311 for ac_exec_ext in '' $ac_executable_extensions; do
1312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1313 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
1314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1315 break 2
1316 fi
1317 done
1318 done
1319
1320 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
1321 ;;
1322 esac
1323 fi
1324 MV=$ac_cv_path_MV
1325
1326 if test -n "$MV"; then
1327 echo "$as_me:$LINENO: result: $MV" >&5
1328 echo "${ECHO_T}$MV" >&6
1329 else
1330 echo "$as_me:$LINENO: result: no" >&5
1331 echo "${ECHO_T}no" >&6
1332 fi
1333
1334 # Extract the first word of "rm", so it can be a program name with args.
1335 set dummy rm; ac_word=$2
1336 echo "$as_me:$LINENO: checking for $ac_word" >&5
1337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1338 if test "${ac_cv_path_RM+set}" = set; then
1339 echo $ECHO_N "(cached) $ECHO_C" >&6
1340 else
1341 case $RM in
1342 [\\/]* | ?:[\\/]*)
1343 ac_cv_path_RM="$RM" # Let the user override the test with a path.
1344 ;;
1345 *)
1346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1347 for as_dir in $PATH
1348 do
1349 IFS=$as_save_IFS
1350 test -z "$as_dir" && as_dir=.
1351 for ac_exec_ext in '' $ac_executable_extensions; do
1352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1353 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
1354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1355 break 2
1356 fi
1357 done
1358 done
1359
1360 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
1361 ;;
1362 esac
1363 fi
1364 RM=$ac_cv_path_RM
1365
1366 if test -n "$RM"; then
1367 echo "$as_me:$LINENO: result: $RM" >&5
1368 echo "${ECHO_T}$RM" >&6
1369 else
1370 echo "$as_me:$LINENO: result: no" >&5
1371 echo "${ECHO_T}no" >&6
1372 fi
1373
1374 if test -n "$ac_tool_prefix"; then
1375 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1376 set dummy ${ac_tool_prefix}ar; ac_word=$2
1377 echo "$as_me:$LINENO: checking for $ac_word" >&5
1378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1379 if test "${ac_cv_prog_AR+set}" = set; then
1380 echo $ECHO_N "(cached) $ECHO_C" >&6
1381 else
1382 if test -n "$AR"; then
1383 ac_cv_prog_AR="$AR" # Let the user override the test.
1384 else
1385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1386 for as_dir in $PATH
1387 do
1388 IFS=$as_save_IFS
1389 test -z "$as_dir" && as_dir=.
1390 for ac_exec_ext in '' $ac_executable_extensions; do
1391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1392 ac_cv_prog_AR="${ac_tool_prefix}ar"
1393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1394 break 2
1395 fi
1396 done
1397 done
1398
1399 fi
1400 fi
1401 AR=$ac_cv_prog_AR
1402 if test -n "$AR"; then
1403 echo "$as_me:$LINENO: result: $AR" >&5
1404 echo "${ECHO_T}$AR" >&6
1405 else
1406 echo "$as_me:$LINENO: result: no" >&5
1407 echo "${ECHO_T}no" >&6
1408 fi
1409
1410 fi
1411 if test -z "$ac_cv_prog_AR"; then
1412 ac_ct_AR=$AR
1413 # Extract the first word of "ar", so it can be a program name with args.
1414 set dummy ar; ac_word=$2
1415 echo "$as_me:$LINENO: checking for $ac_word" >&5
1416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1417 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
1418 echo $ECHO_N "(cached) $ECHO_C" >&6
1419 else
1420 if test -n "$ac_ct_AR"; then
1421 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
1422 else
1423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1424 for as_dir in $PATH
1425 do
1426 IFS=$as_save_IFS
1427 test -z "$as_dir" && as_dir=.
1428 for ac_exec_ext in '' $ac_executable_extensions; do
1429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1430 ac_cv_prog_ac_ct_AR="ar"
1431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1432 break 2
1433 fi
1434 done
1435 done
1436
1437 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
1438 fi
1439 fi
1440 ac_ct_AR=$ac_cv_prog_ac_ct_AR
1441 if test -n "$ac_ct_AR"; then
1442 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
1443 echo "${ECHO_T}$ac_ct_AR" >&6
1444 else
1445 echo "$as_me:$LINENO: result: no" >&5
1446 echo "${ECHO_T}no" >&6
1447 fi
1448
1449 AR=$ac_ct_AR
1450 else
1451 AR="$ac_cv_prog_AR"
1452 fi
1453
1454 if test -n "$ac_tool_prefix"; then
1455 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1456 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1457 echo "$as_me:$LINENO: checking for $ac_word" >&5
1458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1459 if test "${ac_cv_prog_RANLIB+set}" = set; then
1460 echo $ECHO_N "(cached) $ECHO_C" >&6
1461 else
1462 if test -n "$RANLIB"; then
1463 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1464 else
1465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1466 for as_dir in $PATH
1467 do
1468 IFS=$as_save_IFS
1469 test -z "$as_dir" && as_dir=.
1470 for ac_exec_ext in '' $ac_executable_extensions; do
1471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1472 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1474 break 2
1475 fi
1476 done
1477 done
1478
1479 fi
1480 fi
1481 RANLIB=$ac_cv_prog_RANLIB
1482 if test -n "$RANLIB"; then
1483 echo "$as_me:$LINENO: result: $RANLIB" >&5
1484 echo "${ECHO_T}$RANLIB" >&6
1485 else
1486 echo "$as_me:$LINENO: result: no" >&5
1487 echo "${ECHO_T}no" >&6
1488 fi
1489
1490 fi
1491 if test -z "$ac_cv_prog_RANLIB"; then
1492 ac_ct_RANLIB=$RANLIB
1493 # Extract the first word of "ranlib", so it can be a program name with args.
1494 set dummy ranlib; ac_word=$2
1495 echo "$as_me:$LINENO: checking for $ac_word" >&5
1496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1497 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1498 echo $ECHO_N "(cached) $ECHO_C" >&6
1499 else
1500 if test -n "$ac_ct_RANLIB"; then
1501 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1502 else
1503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1504 for as_dir in $PATH
1505 do
1506 IFS=$as_save_IFS
1507 test -z "$as_dir" && as_dir=.
1508 for ac_exec_ext in '' $ac_executable_extensions; do
1509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1510 ac_cv_prog_ac_ct_RANLIB="ranlib"
1511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1512 break 2
1513 fi
1514 done
1515 done
1516
1517 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1518 fi
1519 fi
1520 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1521 if test -n "$ac_ct_RANLIB"; then
1522 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1523 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1524 else
1525 echo "$as_me:$LINENO: result: no" >&5
1526 echo "${ECHO_T}no" >&6
1527 fi
1528
1529 RANLIB=$ac_ct_RANLIB
1530 else
1531 RANLIB="$ac_cv_prog_RANLIB"
1532 fi
1533
1534 if test -n "$ac_tool_prefix"; then
1535 # Extract the first word of "${ac_tool_prefix}patch", so it can be a program name with args.
1536 set dummy ${ac_tool_prefix}patch; ac_word=$2
1537 echo "$as_me:$LINENO: checking for $ac_word" >&5
1538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1539 if test "${ac_cv_prog_PATCH+set}" = set; then
1540 echo $ECHO_N "(cached) $ECHO_C" >&6
1541 else
1542 if test -n "$PATCH"; then
1543 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
1544 else
1545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1546 for as_dir in $PATH
1547 do
1548 IFS=$as_save_IFS
1549 test -z "$as_dir" && as_dir=.
1550 for ac_exec_ext in '' $ac_executable_extensions; do
1551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1552 ac_cv_prog_PATCH="${ac_tool_prefix}patch"
1553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1554 break 2
1555 fi
1556 done
1557 done
1558
1559 fi
1560 fi
1561 PATCH=$ac_cv_prog_PATCH
1562 if test -n "$PATCH"; then
1563 echo "$as_me:$LINENO: result: $PATCH" >&5
1564 echo "${ECHO_T}$PATCH" >&6
1565 else
1566 echo "$as_me:$LINENO: result: no" >&5
1567 echo "${ECHO_T}no" >&6
1568 fi
1569
1570 fi
1571 if test -z "$ac_cv_prog_PATCH"; then
1572 ac_ct_PATCH=$PATCH
1573 # Extract the first word of "patch", so it can be a program name with args.
1574 set dummy patch; ac_word=$2
1575 echo "$as_me:$LINENO: checking for $ac_word" >&5
1576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1577 if test "${ac_cv_prog_ac_ct_PATCH+set}" = set; then
1578 echo $ECHO_N "(cached) $ECHO_C" >&6
1579 else
1580 if test -n "$ac_ct_PATCH"; then
1581 ac_cv_prog_ac_ct_PATCH="$ac_ct_PATCH" # Let the user override the test.
1582 else
1583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1584 for as_dir in $PATH
1585 do
1586 IFS=$as_save_IFS
1587 test -z "$as_dir" && as_dir=.
1588 for ac_exec_ext in '' $ac_executable_extensions; do
1589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1590 ac_cv_prog_ac_ct_PATCH="patch"
1591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1592 break 2
1593 fi
1594 done
1595 done
1596
1597 test -z "$ac_cv_prog_ac_ct_PATCH" && ac_cv_prog_ac_ct_PATCH=":"
1598 fi
1599 fi
1600 ac_ct_PATCH=$ac_cv_prog_ac_ct_PATCH
1601 if test -n "$ac_ct_PATCH"; then
1602 echo "$as_me:$LINENO: result: $ac_ct_PATCH" >&5
1603 echo "${ECHO_T}$ac_ct_PATCH" >&6
1604 else
1605 echo "$as_me:$LINENO: result: no" >&5
1606 echo "${ECHO_T}no" >&6
1607 fi
1608
1609 PATCH=$ac_ct_PATCH
1610 else
1611 PATCH="$ac_cv_prog_PATCH"
1612 fi
1613
1614 ac_ext=c
1615 ac_cpp='$CPP $CPPFLAGS'
1616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1619 if test -n "$ac_tool_prefix"; then
1620 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1621 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1622 echo "$as_me:$LINENO: checking for $ac_word" >&5
1623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1624 if test "${ac_cv_prog_CC+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1626 else
1627 if test -n "$CC"; then
1628 ac_cv_prog_CC="$CC" # Let the user override the test.
1629 else
1630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1631 for as_dir in $PATH
1632 do
1633 IFS=$as_save_IFS
1634 test -z "$as_dir" && as_dir=.
1635 for ac_exec_ext in '' $ac_executable_extensions; do
1636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1637 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1639 break 2
1640 fi
1641 done
1642 done
1643
1644 fi
1645 fi
1646 CC=$ac_cv_prog_CC
1647 if test -n "$CC"; then
1648 echo "$as_me:$LINENO: result: $CC" >&5
1649 echo "${ECHO_T}$CC" >&6
1650 else
1651 echo "$as_me:$LINENO: result: no" >&5
1652 echo "${ECHO_T}no" >&6
1653 fi
1654
1655 fi
1656 if test -z "$ac_cv_prog_CC"; then
1657 ac_ct_CC=$CC
1658 # Extract the first word of "gcc", so it can be a program name with args.
1659 set dummy gcc; ac_word=$2
1660 echo "$as_me:$LINENO: checking for $ac_word" >&5
1661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1662 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1663 echo $ECHO_N "(cached) $ECHO_C" >&6
1664 else
1665 if test -n "$ac_ct_CC"; then
1666 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1667 else
1668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1669 for as_dir in $PATH
1670 do
1671 IFS=$as_save_IFS
1672 test -z "$as_dir" && as_dir=.
1673 for ac_exec_ext in '' $ac_executable_extensions; do
1674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1675 ac_cv_prog_ac_ct_CC="gcc"
1676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1677 break 2
1678 fi
1679 done
1680 done
1681
1682 fi
1683 fi
1684 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1685 if test -n "$ac_ct_CC"; then
1686 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1687 echo "${ECHO_T}$ac_ct_CC" >&6
1688 else
1689 echo "$as_me:$LINENO: result: no" >&5
1690 echo "${ECHO_T}no" >&6
1691 fi
1692
1693 CC=$ac_ct_CC
1694 else
1695 CC="$ac_cv_prog_CC"
1696 fi
1697
1698 if test -z "$CC"; then
1699 if test -n "$ac_tool_prefix"; then
1700 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1701 set dummy ${ac_tool_prefix}cc; ac_word=$2
1702 echo "$as_me:$LINENO: checking for $ac_word" >&5
1703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1704 if test "${ac_cv_prog_CC+set}" = set; then
1705 echo $ECHO_N "(cached) $ECHO_C" >&6
1706 else
1707 if test -n "$CC"; then
1708 ac_cv_prog_CC="$CC" # Let the user override the test.
1709 else
1710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711 for as_dir in $PATH
1712 do
1713 IFS=$as_save_IFS
1714 test -z "$as_dir" && as_dir=.
1715 for ac_exec_ext in '' $ac_executable_extensions; do
1716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1717 ac_cv_prog_CC="${ac_tool_prefix}cc"
1718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1719 break 2
1720 fi
1721 done
1722 done
1723
1724 fi
1725 fi
1726 CC=$ac_cv_prog_CC
1727 if test -n "$CC"; then
1728 echo "$as_me:$LINENO: result: $CC" >&5
1729 echo "${ECHO_T}$CC" >&6
1730 else
1731 echo "$as_me:$LINENO: result: no" >&5
1732 echo "${ECHO_T}no" >&6
1733 fi
1734
1735 fi
1736 if test -z "$ac_cv_prog_CC"; then
1737 ac_ct_CC=$CC
1738 # Extract the first word of "cc", so it can be a program name with args.
1739 set dummy cc; ac_word=$2
1740 echo "$as_me:$LINENO: checking for $ac_word" >&5
1741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1742 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1743 echo $ECHO_N "(cached) $ECHO_C" >&6
1744 else
1745 if test -n "$ac_ct_CC"; then
1746 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1747 else
1748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1749 for as_dir in $PATH
1750 do
1751 IFS=$as_save_IFS
1752 test -z "$as_dir" && as_dir=.
1753 for ac_exec_ext in '' $ac_executable_extensions; do
1754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1755 ac_cv_prog_ac_ct_CC="cc"
1756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1757 break 2
1758 fi
1759 done
1760 done
1761
1762 fi
1763 fi
1764 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1765 if test -n "$ac_ct_CC"; then
1766 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1767 echo "${ECHO_T}$ac_ct_CC" >&6
1768 else
1769 echo "$as_me:$LINENO: result: no" >&5
1770 echo "${ECHO_T}no" >&6
1771 fi
1772
1773 CC=$ac_ct_CC
1774 else
1775 CC="$ac_cv_prog_CC"
1776 fi
1777
1778 fi
1779 if test -z "$CC"; then
1780 # Extract the first word of "cc", so it can be a program name with args.
1781 set dummy cc; ac_word=$2
1782 echo "$as_me:$LINENO: checking for $ac_word" >&5
1783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1784 if test "${ac_cv_prog_CC+set}" = set; then
1785 echo $ECHO_N "(cached) $ECHO_C" >&6
1786 else
1787 if test -n "$CC"; then
1788 ac_cv_prog_CC="$CC" # Let the user override the test.
1789 else
1790 ac_prog_rejected=no
1791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1792 for as_dir in $PATH
1793 do
1794 IFS=$as_save_IFS
1795 test -z "$as_dir" && as_dir=.
1796 for ac_exec_ext in '' $ac_executable_extensions; do
1797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1798 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1799 ac_prog_rejected=yes
1800 continue
1801 fi
1802 ac_cv_prog_CC="cc"
1803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1804 break 2
1805 fi
1806 done
1807 done
1808
1809 if test $ac_prog_rejected = yes; then
1810 # We found a bogon in the path, so make sure we never use it.
1811 set dummy $ac_cv_prog_CC
1812 shift
1813 if test $# != 0; then
1814 # We chose a different compiler from the bogus one.
1815 # However, it has the same basename, so the bogon will be chosen
1816 # first if we set CC to just the basename; use the full file name.
1817 shift
1818 set dummy "$as_dir/$ac_word" ${1+"$@"}
1819 shift
1820 ac_cv_prog_CC="$@"
1821 fi
1822 fi
1823 fi
1824 fi
1825 CC=$ac_cv_prog_CC
1826 if test -n "$CC"; then
1827 echo "$as_me:$LINENO: result: $CC" >&5
1828 echo "${ECHO_T}$CC" >&6
1829 else
1830 echo "$as_me:$LINENO: result: no" >&5
1831 echo "${ECHO_T}no" >&6
1832 fi
1833
1834 fi
1835 if test -z "$CC"; then
1836 if test -n "$ac_tool_prefix"; then
1837 for ac_prog in cl
1838 do
1839 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1840 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1841 echo "$as_me:$LINENO: checking for $ac_word" >&5
1842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1843 if test "${ac_cv_prog_CC+set}" = set; then
1844 echo $ECHO_N "(cached) $ECHO_C" >&6
1845 else
1846 if test -n "$CC"; then
1847 ac_cv_prog_CC="$CC" # Let the user override the test.
1848 else
1849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1850 for as_dir in $PATH
1851 do
1852 IFS=$as_save_IFS
1853 test -z "$as_dir" && as_dir=.
1854 for ac_exec_ext in '' $ac_executable_extensions; do
1855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1856 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1858 break 2
1859 fi
1860 done
1861 done
1862
1863 fi
1864 fi
1865 CC=$ac_cv_prog_CC
1866 if test -n "$CC"; then
1867 echo "$as_me:$LINENO: result: $CC" >&5
1868 echo "${ECHO_T}$CC" >&6
1869 else
1870 echo "$as_me:$LINENO: result: no" >&5
1871 echo "${ECHO_T}no" >&6
1872 fi
1873
1874 test -n "$CC" && break
1875 done
1876 fi
1877 if test -z "$CC"; then
1878 ac_ct_CC=$CC
1879 for ac_prog in cl
1880 do
1881 # Extract the first word of "$ac_prog", so it can be a program name with args.
1882 set dummy $ac_prog; ac_word=$2
1883 echo "$as_me:$LINENO: checking for $ac_word" >&5
1884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1886 echo $ECHO_N "(cached) $ECHO_C" >&6
1887 else
1888 if test -n "$ac_ct_CC"; then
1889 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1890 else
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 for as_dir in $PATH
1893 do
1894 IFS=$as_save_IFS
1895 test -z "$as_dir" && as_dir=.
1896 for ac_exec_ext in '' $ac_executable_extensions; do
1897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1898 ac_cv_prog_ac_ct_CC="$ac_prog"
1899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1900 break 2
1901 fi
1902 done
1903 done
1904
1905 fi
1906 fi
1907 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1908 if test -n "$ac_ct_CC"; then
1909 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1910 echo "${ECHO_T}$ac_ct_CC" >&6
1911 else
1912 echo "$as_me:$LINENO: result: no" >&5
1913 echo "${ECHO_T}no" >&6
1914 fi
1915
1916 test -n "$ac_ct_CC" && break
1917 done
1918
1919 CC=$ac_ct_CC
1920 fi
1921
1922 fi
1923
1924
1925 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1926 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1927 { (exit 1); exit 1; }; }
1928
1929 # Provide some information about the compiler.
1930 echo "$as_me:$LINENO:" \
1931 "checking for C compiler version" >&5
1932 ac_compiler=`set X $ac_compile; echo $2`
1933 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1934 (eval $ac_compiler --version </dev/null >&5) 2>&5
1935 ac_status=$?
1936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937 (exit $ac_status); }
1938 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1939 (eval $ac_compiler -v </dev/null >&5) 2>&5
1940 ac_status=$?
1941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942 (exit $ac_status); }
1943 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1944 (eval $ac_compiler -V </dev/null >&5) 2>&5
1945 ac_status=$?
1946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947 (exit $ac_status); }
1948
1949 cat >conftest.$ac_ext <<_ACEOF
1950 #line $LINENO "configure"
1951 #include "confdefs.h"
1952
1953 #ifdef F77_DUMMY_MAIN
1954 # ifdef __cplusplus
1955 extern "C"
1956 # endif
1957 int F77_DUMMY_MAIN() { return 1; }
1958 #endif
1959 int
1960 main ()
1961 {
1962
1963 ;
1964 return 0;
1965 }
1966 _ACEOF
1967 ac_clean_files_save=$ac_clean_files
1968 ac_clean_files="$ac_clean_files a.out a.exe"
1969 # Try to create an executable without -o first, disregard a.out.
1970 # It will help us diagnose broken compilers, and finding out an intuition
1971 # of exeext.
1972 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1973 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1974 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1975 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1976 (eval $ac_link_default) 2>&5
1977 ac_status=$?
1978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979 (exit $ac_status); }; then
1980 # Find the output, starting from the most likely. This scheme is
1981 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1982 # resort.
1983
1984 # Be careful to initialize this variable, since it used to be cached.
1985 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1986 ac_cv_exeext=
1987 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1988 ls a.out conftest 2>/dev/null;
1989 ls a.* conftest.* 2>/dev/null`; do
1990 case $ac_file in
1991 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1992 a.out ) # We found the default executable, but exeext='' is most
1993 # certainly right.
1994 break;;
1995 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1996 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1997 export ac_cv_exeext
1998 break;;
1999 * ) break;;
2000 esac
2001 done
2002 else
2003 echo "$as_me: failed program was:" >&5
2004 cat conftest.$ac_ext >&5
2005 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2006 echo "$as_me: error: C compiler cannot create executables" >&2;}
2007 { (exit 77); exit 77; }; }
2008 fi
2009
2010 ac_exeext=$ac_cv_exeext
2011 echo "$as_me:$LINENO: result: $ac_file" >&5
2012 echo "${ECHO_T}$ac_file" >&6
2013
2014 # Check the compiler produces executables we can run. If not, either
2015 # the compiler is broken, or we cross compile.
2016 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2017 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2018 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2019 # If not cross compiling, check that we can run a simple program.
2020 if test "$cross_compiling" != yes; then
2021 if { ac_try='./$ac_file'
2022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2023 (eval $ac_try) 2>&5
2024 ac_status=$?
2025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2026 (exit $ac_status); }; }; then
2027 cross_compiling=no
2028 else
2029 if test "$cross_compiling" = maybe; then
2030 cross_compiling=yes
2031 else
2032 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2033 If you meant to cross compile, use \`--host'." >&5
2034 echo "$as_me: error: cannot run C compiled programs.
2035 If you meant to cross compile, use \`--host'." >&2;}
2036 { (exit 1); exit 1; }; }
2037 fi
2038 fi
2039 fi
2040 echo "$as_me:$LINENO: result: yes" >&5
2041 echo "${ECHO_T}yes" >&6
2042
2043 rm -f a.out a.exe conftest$ac_cv_exeext
2044 ac_clean_files=$ac_clean_files_save
2045 # Check the compiler produces executables we can run. If not, either
2046 # the compiler is broken, or we cross compile.
2047 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2048 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2049 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2050 echo "${ECHO_T}$cross_compiling" >&6
2051
2052 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2053 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2055 (eval $ac_link) 2>&5
2056 ac_status=$?
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); }; then
2059 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2060 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2061 # work properly (i.e., refer to `conftest.exe'), while it won't with
2062 # `rm'.
2063 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2064 case $ac_file in
2065 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2066 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2067 export ac_cv_exeext
2068 break;;
2069 * ) break;;
2070 esac
2071 done
2072 else
2073 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2074 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2075 { (exit 1); exit 1; }; }
2076 fi
2077
2078 rm -f conftest$ac_cv_exeext
2079 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2080 echo "${ECHO_T}$ac_cv_exeext" >&6
2081
2082 rm -f conftest.$ac_ext
2083 EXEEXT=$ac_cv_exeext
2084 ac_exeext=$EXEEXT
2085 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2086 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2087 if test "${ac_cv_objext+set}" = set; then
2088 echo $ECHO_N "(cached) $ECHO_C" >&6
2089 else
2090 cat >conftest.$ac_ext <<_ACEOF
2091 #line $LINENO "configure"
2092 #include "confdefs.h"
2093
2094 #ifdef F77_DUMMY_MAIN
2095 # ifdef __cplusplus
2096 extern "C"
2097 # endif
2098 int F77_DUMMY_MAIN() { return 1; }
2099 #endif
2100 int
2101 main ()
2102 {
2103
2104 ;
2105 return 0;
2106 }
2107 _ACEOF
2108 rm -f conftest.o conftest.obj
2109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2110 (eval $ac_compile) 2>&5
2111 ac_status=$?
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); }; then
2114 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2115 case $ac_file in
2116 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2117 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2118 break;;
2119 esac
2120 done
2121 else
2122 echo "$as_me: failed program was:" >&5
2123 cat conftest.$ac_ext >&5
2124 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2125 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2126 { (exit 1); exit 1; }; }
2127 fi
2128
2129 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2130 fi
2131 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2132 echo "${ECHO_T}$ac_cv_objext" >&6
2133 OBJEXT=$ac_cv_objext
2134 ac_objext=$OBJEXT
2135 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2136 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2137 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2139 else
2140 cat >conftest.$ac_ext <<_ACEOF
2141 #line $LINENO "configure"
2142 #include "confdefs.h"
2143
2144 #ifdef F77_DUMMY_MAIN
2145 # ifdef __cplusplus
2146 extern "C"
2147 # endif
2148 int F77_DUMMY_MAIN() { return 1; }
2149 #endif
2150 int
2151 main ()
2152 {
2153 #ifndef __GNUC__
2154 choke me
2155 #endif
2156
2157 ;
2158 return 0;
2159 }
2160 _ACEOF
2161 rm -f conftest.$ac_objext
2162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2163 (eval $ac_compile) 2>&5
2164 ac_status=$?
2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); } &&
2167 { ac_try='test -s conftest.$ac_objext'
2168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2169 (eval $ac_try) 2>&5
2170 ac_status=$?
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }; }; then
2173 ac_compiler_gnu=yes
2174 else
2175 echo "$as_me: failed program was:" >&5
2176 cat conftest.$ac_ext >&5
2177 ac_compiler_gnu=no
2178 fi
2179 rm -f conftest.$ac_objext conftest.$ac_ext
2180 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2181
2182 fi
2183 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2184 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2185 GCC=`test $ac_compiler_gnu = yes && echo yes`
2186 ac_test_CFLAGS=${CFLAGS+set}
2187 ac_save_CFLAGS=$CFLAGS
2188 CFLAGS="-g"
2189 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2190 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2191 if test "${ac_cv_prog_cc_g+set}" = set; then
2192 echo $ECHO_N "(cached) $ECHO_C" >&6
2193 else
2194 cat >conftest.$ac_ext <<_ACEOF
2195 #line $LINENO "configure"
2196 #include "confdefs.h"
2197
2198 #ifdef F77_DUMMY_MAIN
2199 # ifdef __cplusplus
2200 extern "C"
2201 # endif
2202 int F77_DUMMY_MAIN() { return 1; }
2203 #endif
2204 int
2205 main ()
2206 {
2207
2208 ;
2209 return 0;
2210 }
2211 _ACEOF
2212 rm -f conftest.$ac_objext
2213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2214 (eval $ac_compile) 2>&5
2215 ac_status=$?
2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217 (exit $ac_status); } &&
2218 { ac_try='test -s conftest.$ac_objext'
2219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220 (eval $ac_try) 2>&5
2221 ac_status=$?
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); }; }; then
2224 ac_cv_prog_cc_g=yes
2225 else
2226 echo "$as_me: failed program was:" >&5
2227 cat conftest.$ac_ext >&5
2228 ac_cv_prog_cc_g=no
2229 fi
2230 rm -f conftest.$ac_objext conftest.$ac_ext
2231 fi
2232 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2233 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2234 if test "$ac_test_CFLAGS" = set; then
2235 CFLAGS=$ac_save_CFLAGS
2236 elif test $ac_cv_prog_cc_g = yes; then
2237 if test "$GCC" = yes; then
2238 CFLAGS="-g -O2"
2239 else
2240 CFLAGS="-g"
2241 fi
2242 else
2243 if test "$GCC" = yes; then
2244 CFLAGS="-O2"
2245 else
2246 CFLAGS=
2247 fi
2248 fi
2249 # Some people use a C++ compiler to compile C. Since we use `exit',
2250 # in C++ we need to declare it. In case someone uses the same compiler
2251 # for both compiling C and C++ we need to have the C++ compiler decide
2252 # the declaration of exit, since it's the most demanding environment.
2253 cat >conftest.$ac_ext <<_ACEOF
2254 #ifndef __cplusplus
2255 choke me
2256 #endif
2257 _ACEOF
2258 rm -f conftest.$ac_objext
2259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2260 (eval $ac_compile) 2>&5
2261 ac_status=$?
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); } &&
2264 { ac_try='test -s conftest.$ac_objext'
2265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266 (eval $ac_try) 2>&5
2267 ac_status=$?
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }; }; then
2270 for ac_declaration in \
2271 ''\
2272 '#include <stdlib.h>' \
2273 'extern "C" void std::exit (int) throw (); using std::exit;' \
2274 'extern "C" void std::exit (int); using std::exit;' \
2275 'extern "C" void exit (int) throw ();' \
2276 'extern "C" void exit (int);' \
2277 'void exit (int);'
2278 do
2279 cat >conftest.$ac_ext <<_ACEOF
2280 #line $LINENO "configure"
2281 #include "confdefs.h"
2282 #include <stdlib.h>
2283 $ac_declaration
2284 #ifdef F77_DUMMY_MAIN
2285 # ifdef __cplusplus
2286 extern "C"
2287 # endif
2288 int F77_DUMMY_MAIN() { return 1; }
2289 #endif
2290 int
2291 main ()
2292 {
2293 exit (42);
2294 ;
2295 return 0;
2296 }
2297 _ACEOF
2298 rm -f conftest.$ac_objext
2299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2300 (eval $ac_compile) 2>&5
2301 ac_status=$?
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); } &&
2304 { ac_try='test -s conftest.$ac_objext'
2305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2306 (eval $ac_try) 2>&5
2307 ac_status=$?
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }; }; then
2310 :
2311 else
2312 echo "$as_me: failed program was:" >&5
2313 cat conftest.$ac_ext >&5
2314 continue
2315 fi
2316 rm -f conftest.$ac_objext conftest.$ac_ext
2317 cat >conftest.$ac_ext <<_ACEOF
2318 #line $LINENO "configure"
2319 #include "confdefs.h"
2320 $ac_declaration
2321 #ifdef F77_DUMMY_MAIN
2322 # ifdef __cplusplus
2323 extern "C"
2324 # endif
2325 int F77_DUMMY_MAIN() { return 1; }
2326 #endif
2327 int
2328 main ()
2329 {
2330 exit (42);
2331 ;
2332 return 0;
2333 }
2334 _ACEOF
2335 rm -f conftest.$ac_objext
2336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2337 (eval $ac_compile) 2>&5
2338 ac_status=$?
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); } &&
2341 { ac_try='test -s conftest.$ac_objext'
2342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343 (eval $ac_try) 2>&5
2344 ac_status=$?
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; }; then
2347 break
2348 else
2349 echo "$as_me: failed program was:" >&5
2350 cat conftest.$ac_ext >&5
2351 fi
2352 rm -f conftest.$ac_objext conftest.$ac_ext
2353 done
2354 rm -f conftest*
2355 if test -n "$ac_declaration"; then
2356 echo '#ifdef __cplusplus' >>confdefs.h
2357 echo $ac_declaration >>confdefs.h
2358 echo '#endif' >>confdefs.h
2359 fi
2360
2361 else
2362 echo "$as_me: failed program was:" >&5
2363 cat conftest.$ac_ext >&5
2364 fi
2365 rm -f conftest.$ac_objext conftest.$ac_ext
2366 ac_ext=c
2367 ac_cpp='$CPP $CPPFLAGS'
2368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2371
2372 ac_aux_dir=
2373 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2374 if test -f $ac_dir/install-sh; then
2375 ac_aux_dir=$ac_dir
2376 ac_install_sh="$ac_aux_dir/install-sh -c"
2377 break
2378 elif test -f $ac_dir/install.sh; then
2379 ac_aux_dir=$ac_dir
2380 ac_install_sh="$ac_aux_dir/install.sh -c"
2381 break
2382 elif test -f $ac_dir/shtool; then
2383 ac_aux_dir=$ac_dir
2384 ac_install_sh="$ac_aux_dir/shtool install -c"
2385 break
2386 fi
2387 done
2388 if test -z "$ac_aux_dir"; then
2389 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2390 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2391 { (exit 1); exit 1; }; }
2392 fi
2393 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2394 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2395 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2396
2397 # Find a good install program. We prefer a C program (faster),
2398 # so one script is as good as another. But avoid the broken or
2399 # incompatible versions:
2400 # SysV /etc/install, /usr/sbin/install
2401 # SunOS /usr/etc/install
2402 # IRIX /sbin/install
2403 # AIX /bin/install
2404 # AmigaOS /C/install, which installs bootblocks on floppy discs
2405 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2406 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2407 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2408 # ./install, which can be erroneously created by make from ./install.sh.
2409 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2410 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2411 if test -z "$INSTALL"; then
2412 if test "${ac_cv_path_install+set}" = set; then
2413 echo $ECHO_N "(cached) $ECHO_C" >&6
2414 else
2415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416 for as_dir in $PATH
2417 do
2418 IFS=$as_save_IFS
2419 test -z "$as_dir" && as_dir=.
2420 # Account for people who put trailing slashes in PATH elements.
2421 case $as_dir/ in
2422 ./ | .// | /cC/* | \
2423 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2424 /usr/ucb/* ) ;;
2425 *)
2426 # OSF1 and SCO ODT 3.0 have their own names for install.
2427 # Don't use installbsd from OSF since it installs stuff as root
2428 # by default.
2429 for ac_prog in ginstall scoinst install; do
2430 for ac_exec_ext in '' $ac_executable_extensions; do
2431 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2432 if test $ac_prog = install &&
2433 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2434 # AIX install. It has an incompatible calling convention.
2435 :
2436 elif test $ac_prog = install &&
2437 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2438 # program-specific install script used by HP pwplus--don't use.
2439 :
2440 else
2441 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2442 break 3
2443 fi
2444 fi
2445 done
2446 done
2447 ;;
2448 esac
2449 done
2450
2451
2452 fi
2453 if test "${ac_cv_path_install+set}" = set; then
2454 INSTALL=$ac_cv_path_install
2455 else
2456 # As a last resort, use the slow shell script. We don't cache a
2457 # path for INSTALL within a source directory, because that will
2458 # break other packages using the cache if that directory is
2459 # removed, or if the path is relative.
2460 INSTALL=$ac_install_sh
2461 fi
2462 fi
2463 echo "$as_me:$LINENO: result: $INSTALL" >&5
2464 echo "${ECHO_T}$INSTALL" >&6
2465
2466 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2467 # It thinks the first close brace ends the variable substitution.
2468 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2469
2470 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2471
2472 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2473
2474
2475 # Check whether --enable-debug or --disable-debug was given.
2476 if test "${enable_debug+set}" = set; then
2477 enableval="$enable_debug"
2478 if test "$enableval" = "no"
2479 then
2480 DUMPDEBUG=""
2481 RESTOREDEBUG=""
2482 echo "Not including debugging code"
2483 else
2484 DUMPDEBUG="-DFDEBUG -DTDEBUG -DWRITEDEBUG -DDIRDEBUG"
2485 RESTOREDEBUG="-DDIRDEBUG"
2486 echo "Including debugging code"
2487 fi
2488 else
2489 DUMPDEBUG=""
2490 RESTOREDEBUG=""
2491 echo "Not including debugging code by default"
2492
2493 fi;
2494
2495
2496
2497 # Check whether --enable-static or --disable-static was given.
2498 if test "${enable_static+set}" = set; then
2499 enableval="$enable_static"
2500 if test "$enableval" = "no"
2501 then
2502 STATIC=""
2503 echo "Linking dump and restore dynamically"
2504 else
2505 STATIC="-static"
2506 echo "Linking dump and restore statically"
2507 fi
2508
2509 else
2510 STATIC=""
2511 echo "Linking dump and restore dynamically by default"
2512
2513 fi;
2514
2515
2516 # Check whether --enable-rmt or --disable-rmt was given.
2517 if test "${enable_rmt+set}" = set; then
2518 enableval="$enable_rmt"
2519 if test "$enableval" = "no"
2520 then
2521 RMTDIR=""
2522 RMTMAKEFILE=""
2523 echo "Not compiling rmt"
2524 else
2525 RMTDIR="rmt"
2526 RMTMAKEFILE="rmt/Makefile"
2527 echo "Compiling rmt"
2528 fi
2529
2530 else
2531 RMTDIR="rmt"
2532 RMTMAKEFILE="rmt/Makefile"
2533 echo "Compiling rmt by default"
2534
2535 fi;
2536
2537
2538 # Check whether --enable-kerberos or --disable-kerberos was given.
2539 if test "${enable_kerberos+set}" = set; then
2540 enableval="$enable_kerberos"
2541 if test "$enableval" = "yes"
2542 then
2543 OPTDEFS="-DKERBEROS"
2544 echo "Compiling kerberos extensions"
2545 else
2546 OPTDEFS=""
2547 echo "Not compiling kerberos extensions"
2548 fi
2549
2550 else
2551 OPTDEFS=""
2552 echo "Not compiling kerberos extensions by default"
2553
2554 fi;
2555
2556
2557 # Check whether --enable-readline or --disable-readline was given.
2558 if test "${enable_readline+set}" = set; then
2559 enableval="$enable_readline"
2560 if test "$enableval" = "no"
2561 then
2562 READLINE=""
2563 echo "Not including readline support"
2564 else
2565 READLINE="-lreadline -ltermcap"
2566 cat >>confdefs.h <<\_ACEOF
2567 #define HAVE_READLINE 1
2568 _ACEOF
2569
2570 echo "Including readline support"
2571 fi
2572
2573 else
2574 READLINE="-lreadline -ltermcap"
2575 cat >>confdefs.h <<\_ACEOF
2576 #define HAVE_READLINE 1
2577 _ACEOF
2578
2579 echo "Including readline support by default"
2580
2581 fi;
2582
2583
2584 # Check whether --enable-oldstylefscript or --disable-oldstylefscript was given.
2585 if test "${enable_oldstylefscript+set}" = set; then
2586 enableval="$enable_oldstylefscript"
2587 if test "$enableval" = "yes"
2588 then
2589 cat >>confdefs.h <<\_ACEOF
2590 #define OLD_STYLE_FSCRIPT 1
2591 _ACEOF
2592
2593 echo "Using old style F script"
2594 else
2595 echo "Using new style F script"
2596 fi
2597
2598 else
2599 echo "Using new style F script by default"
2600
2601 fi;
2602
2603 # Check whether --enable-largefile or --disable-largefile was given.
2604 if test "${enable_largefile+set}" = set; then
2605 enableval="$enable_largefile"
2606 if test "$enableval" = "yes"
2607 then
2608 cat >>confdefs.h <<\_ACEOF
2609 #define USE_LFS 1
2610 _ACEOF
2611
2612 echo "Enabling Large File System support"
2613 else
2614 echo "Not enabling Large File System support"
2615 fi
2616
2617 else
2618 cat >>confdefs.h <<\_ACEOF
2619 #define USE_LFS 1
2620 _ACEOF
2621
2622 echo "Enabling Large File System support by default"
2623
2624 fi;
2625
2626 # Check whether --enable-qfa or --disable-qfa was given.
2627 if test "${enable_qfa+set}" = set; then
2628 enableval="$enable_qfa"
2629 if test "$enableval" = "yes"
2630 then
2631 cat >>confdefs.h <<\_ACEOF
2632 #define USE_QFA 1
2633 _ACEOF
2634
2635 echo "Enabling Quick File Access support"
2636 else
2637 echo "Not enabling Quick File Access support"
2638 fi
2639
2640 else
2641 cat >>confdefs.h <<\_ACEOF
2642 #define USE_QFA 1
2643 _ACEOF
2644
2645 echo "Enabling Quick File Access support by default"
2646
2647 fi;
2648
2649 # Check whether --enable-qfadebug or --disable-qfadebug was given.
2650 if test "${enable_qfadebug+set}" = set; then
2651 enableval="$enable_qfadebug"
2652 if test "$enableval" = "yes"
2653 then
2654 cat >>confdefs.h <<\_ACEOF
2655 #define DEBUG_QFA 1
2656 _ACEOF
2657
2658 echo "Including Quick File Access debugging code"
2659 else
2660 echo "Not including Quick File Access debugging code"
2661 fi
2662
2663 else
2664 echo "Not including Quick File Access debugging code by default"
2665
2666 fi;
2667
2668
2669 # Check whether --with-cc or --without-cc was given.
2670 if test "${with_cc+set}" = set; then
2671 withval="$with_cc"
2672 echo "$as_me:$LINENO: result: CC=$withval" >&5
2673 echo "${ECHO_T}CC=$withval" >&6
2674 CC=$withval
2675 else
2676 if test -z "$CC" ; then CC=cc; fi
2677 echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2678 echo "${ECHO_T}CC defaults to $CC" >&6
2679 fi; export CC
2680
2681
2682
2683 # Check whether --with-linker or --without-linker was given.
2684 if test "${with_linker+set}" = set; then
2685 withval="$with_linker"
2686 echo "$as_me:$LINENO: result: LD=$withval" >&5
2687 echo "${ECHO_T}LD=$withval" >&6
2688 LD=$withval
2689 else
2690 if test -z "$LD" ; then LD=$CC; fi
2691 echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
2692 echo "${ECHO_T}LD defaults to $LD" >&6
2693 fi; export LD
2694
2695
2696
2697 # Check whether --with-ccopts or --without-ccopts was given.
2698 if test "${with_ccopts+set}" = set; then
2699 withval="$with_ccopts"
2700 echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
2701 echo "${ECHO_T}CCOPTS is $withval" >&6
2702 CCOPTS=$withval
2703 CFLAGS="$CFLAGS $withval"
2704 else
2705 CCOPTS=
2706 fi;
2707
2708
2709 # Check whether --with-ldopts or --without-ldopts was given.
2710 if test "${with_ldopts+set}" = set; then
2711 withval="$with_ldopts"
2712 echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
2713 echo "${ECHO_T}LDFLAGS is $withval" >&6
2714 LDOPTS=$withval
2715 LDFLAGS="$LDFLAGS $withval"
2716 else
2717 LDOPTS=
2718 fi;
2719
2720
2721 # Check whether --with-binowner or --without-binowner was given.
2722 if test "${with_binowner+set}" = set; then
2723 withval="$with_binowner"
2724 echo "$as_me:$LINENO: result: BINOWNER is $withval" >&5
2725 echo "${ECHO_T}BINOWNER is $withval" >&6
2726 BINOWNER=$withval
2727 else
2728 BINOWNER=root
2729 echo "BINOWNER defaults to $BINOWNER"
2730
2731 fi;
2732
2733
2734 # Check whether --with-bingrp or --without-bingrp was given.
2735 if test "${with_bingrp+set}" = set; then
2736 withval="$with_bingrp"
2737 echo "$as_me:$LINENO: result: BINGRP is $withval" >&5
2738 echo "${ECHO_T}BINGRP is $withval" >&6
2739 BINGRP=$withval
2740 else
2741 BINGRP=tty
2742 echo "BINGRP defaults to $BINGRP"
2743
2744 fi;
2745
2746
2747 # Check whether --with-binmode or --without-binmode was given.
2748 if test "${with_binmode+set}" = set; then
2749 withval="$with_binmode"
2750 echo "$as_me:$LINENO: result: BINMODE is $withval" >&5
2751 echo "${ECHO_T}BINMODE is $withval" >&6
2752 BINMODE=$withval
2753 else
2754 BINMODE=0755
2755 echo "BINMODE defaults to $BINMODE"
2756
2757 fi;
2758
2759
2760 # Check whether --with-manowner or --without-manowner was given.
2761 if test "${with_manowner+set}" = set; then
2762 withval="$with_manowner"
2763 echo "$as_me:$LINENO: result: MANOWNER is $withval" >&5
2764 echo "${ECHO_T}MANOWNER is $withval" >&6
2765 MANOWNER=$withval
2766 else
2767 MANOWNER=man
2768 echo "MANOWNER defaults to $MANOWNER"
2769
2770 fi;
2771
2772
2773 # Check whether --with-mangrp or --without-mangrp was given.
2774 if test "${with_mangrp+set}" = set; then
2775 withval="$with_mangrp"
2776 echo "$as_me:$LINENO: result: MANGRP is $withval" >&5
2777 echo "${ECHO_T}MANGRP is $withval" >&6
2778 MANGRP=$withval
2779 else
2780 MANGRP=tty
2781 echo "MANGRP defaults to $MANGRP"
2782
2783 fi;
2784
2785
2786 # Check whether --with-manmode or --without-manmode was given.
2787 if test "${with_manmode+set}" = set; then
2788 withval="$with_manmode"
2789 echo "$as_me:$LINENO: result: MANMODE is $withval" >&5
2790 echo "${ECHO_T}MANMODE is $withval" >&6
2791 MANMODE=$withval
2792 else
2793 MANMODE=0644
2794 echo "MANMODE defaults to $MANMODE"
2795
2796 fi;
2797
2798
2799 # Check whether --with-dumpdatespath or --without-dumpdatespath was given.
2800 if test "${with_dumpdatespath+set}" = set; then
2801 withval="$with_dumpdatespath"
2802 echo "$as_me:$LINENO: result: DUMPDATESPATH is $withval" >&5
2803 echo "${ECHO_T}DUMPDATESPATH is $withval" >&6
2804 DUMPDATESPATH=$withval
2805 else
2806 DUMPDATESPATH="${sysconfdir}/dumpdates"
2807 echo "DUMPDATESPATH defaults to $DUMPDATESPATH"
2808
2809 fi;
2810
2811
2812 ac_ext=c
2813 ac_cpp='$CPP $CPPFLAGS'
2814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2817 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2818 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2819 # On Suns, sometimes $CPP names a directory.
2820 if test -n "$CPP" && test -d "$CPP"; then
2821 CPP=
2822 fi
2823 if test -z "$CPP"; then
2824 if test "${ac_cv_prog_CPP+set}" = set; then
2825 echo $ECHO_N "(cached) $ECHO_C" >&6
2826 else
2827 # Double quotes because CPP needs to be expanded
2828 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2829 do
2830 ac_preproc_ok=false
2831 for ac_c_preproc_warn_flag in '' yes
2832 do
2833 # Use a header file that comes with gcc, so configuring glibc
2834 # with a fresh cross-compiler works.
2835 # On the NeXT, cc -E runs the code through the compiler's parser,
2836 # not just through cpp. "Syntax error" is here to catch this case.
2837 cat >conftest.$ac_ext <<_ACEOF
2838 #line $LINENO "configure"
2839 #include "confdefs.h"
2840 #include <assert.h>
2841 Syntax error
2842 _ACEOF
2843 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2844 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2845 ac_status=$?
2846 egrep -v '^ *\+' conftest.er1 >conftest.err
2847 rm -f conftest.er1
2848 cat conftest.err >&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); } >/dev/null; then
2851 if test -s conftest.err; then
2852 ac_cpp_err=$ac_c_preproc_warn_flag
2853 else
2854 ac_cpp_err=
2855 fi
2856 else
2857 ac_cpp_err=yes
2858 fi
2859 if test -z "$ac_cpp_err"; then
2860 :
2861 else
2862 echo "$as_me: failed program was:" >&5
2863 cat conftest.$ac_ext >&5
2864 # Broken: fails on valid input.
2865 continue
2866 fi
2867 rm -f conftest.err conftest.$ac_ext
2868
2869 # OK, works on sane cases. Now check whether non-existent headers
2870 # can be detected and how.
2871 cat >conftest.$ac_ext <<_ACEOF
2872 #line $LINENO "configure"
2873 #include "confdefs.h"
2874 #include <ac_nonexistent.h>
2875 _ACEOF
2876 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2877 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2878 ac_status=$?
2879 egrep -v '^ *\+' conftest.er1 >conftest.err
2880 rm -f conftest.er1
2881 cat conftest.err >&5
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); } >/dev/null; then
2884 if test -s conftest.err; then
2885 ac_cpp_err=$ac_c_preproc_warn_flag
2886 else
2887 ac_cpp_err=
2888 fi
2889 else
2890 ac_cpp_err=yes
2891 fi
2892 if test -z "$ac_cpp_err"; then
2893 # Broken: success on invalid input.
2894 continue
2895 else
2896 echo "$as_me: failed program was:" >&5
2897 cat conftest.$ac_ext >&5
2898 # Passes both tests.
2899 ac_preproc_ok=:
2900 break
2901 fi
2902 rm -f conftest.err conftest.$ac_ext
2903
2904 done
2905 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2906 rm -f conftest.err conftest.$ac_ext
2907 if $ac_preproc_ok; then
2908 break
2909 fi
2910
2911 done
2912 ac_cv_prog_CPP=$CPP
2913
2914 fi
2915 CPP=$ac_cv_prog_CPP
2916 else
2917 ac_cv_prog_CPP=$CPP
2918 fi
2919 echo "$as_me:$LINENO: result: $CPP" >&5
2920 echo "${ECHO_T}$CPP" >&6
2921 ac_preproc_ok=false
2922 for ac_c_preproc_warn_flag in '' yes
2923 do
2924 # Use a header file that comes with gcc, so configuring glibc
2925 # with a fresh cross-compiler works.
2926 # On the NeXT, cc -E runs the code through the compiler's parser,
2927 # not just through cpp. "Syntax error" is here to catch this case.
2928 cat >conftest.$ac_ext <<_ACEOF
2929 #line $LINENO "configure"
2930 #include "confdefs.h"
2931 #include <assert.h>
2932 Syntax error
2933 _ACEOF
2934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2935 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2936 ac_status=$?
2937 egrep -v '^ *\+' conftest.er1 >conftest.err
2938 rm -f conftest.er1
2939 cat conftest.err >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } >/dev/null; then
2942 if test -s conftest.err; then
2943 ac_cpp_err=$ac_c_preproc_warn_flag
2944 else
2945 ac_cpp_err=
2946 fi
2947 else
2948 ac_cpp_err=yes
2949 fi
2950 if test -z "$ac_cpp_err"; then
2951 :
2952 else
2953 echo "$as_me: failed program was:" >&5
2954 cat conftest.$ac_ext >&5
2955 # Broken: fails on valid input.
2956 continue
2957 fi
2958 rm -f conftest.err conftest.$ac_ext
2959
2960 # OK, works on sane cases. Now check whether non-existent headers
2961 # can be detected and how.
2962 cat >conftest.$ac_ext <<_ACEOF
2963 #line $LINENO "configure"
2964 #include "confdefs.h"
2965 #include <ac_nonexistent.h>
2966 _ACEOF
2967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2969 ac_status=$?
2970 egrep -v '^ *\+' conftest.er1 >conftest.err
2971 rm -f conftest.er1
2972 cat conftest.err >&5
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); } >/dev/null; then
2975 if test -s conftest.err; then
2976 ac_cpp_err=$ac_c_preproc_warn_flag
2977 else
2978 ac_cpp_err=
2979 fi
2980 else
2981 ac_cpp_err=yes
2982 fi
2983 if test -z "$ac_cpp_err"; then
2984 # Broken: success on invalid input.
2985 continue
2986 else
2987 echo "$as_me: failed program was:" >&5
2988 cat conftest.$ac_ext >&5
2989 # Passes both tests.
2990 ac_preproc_ok=:
2991 break
2992 fi
2993 rm -f conftest.err conftest.$ac_ext
2994
2995 done
2996 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2997 rm -f conftest.err conftest.$ac_ext
2998 if $ac_preproc_ok; then
2999 :
3000 else
3001 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3002 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3003 { (exit 1); exit 1; }; }
3004 fi
3005
3006 ac_ext=c
3007 ac_cpp='$CPP $CPPFLAGS'
3008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3011
3012
3013 echo "$as_me:$LINENO: checking for ext2fs/ext2fs.h" >&5
3014 echo $ECHO_N "checking for ext2fs/ext2fs.h... $ECHO_C" >&6
3015 if test "${ac_cv_header_ext2fs_ext2fs_h+set}" = set; then
3016 echo $ECHO_N "(cached) $ECHO_C" >&6
3017 else
3018 cat >conftest.$ac_ext <<_ACEOF
3019 #line $LINENO "configure"
3020 #include "confdefs.h"
3021 #include <ext2fs/ext2fs.h>
3022 _ACEOF
3023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3025 ac_status=$?
3026 egrep -v '^ *\+' conftest.er1 >conftest.err
3027 rm -f conftest.er1
3028 cat conftest.err >&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } >/dev/null; then
3031 if test -s conftest.err; then
3032 ac_cpp_err=$ac_c_preproc_warn_flag
3033 else
3034 ac_cpp_err=
3035 fi
3036 else
3037 ac_cpp_err=yes
3038 fi
3039 if test -z "$ac_cpp_err"; then
3040 ac_cv_header_ext2fs_ext2fs_h=yes
3041 else
3042 echo "$as_me: failed program was:" >&5
3043 cat conftest.$ac_ext >&5
3044 ac_cv_header_ext2fs_ext2fs_h=no
3045 fi
3046 rm -f conftest.err conftest.$ac_ext
3047 fi
3048 echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2fs_h" >&5
3049 echo "${ECHO_T}$ac_cv_header_ext2fs_ext2fs_h" >&6
3050 if test $ac_cv_header_ext2fs_ext2fs_h = yes; then
3051 ext2fs_h=yes
3052 else
3053 ext2fs_h=no
3054 fi
3055
3056
3057 echo "$as_me:$LINENO: checking for ext2fs_open in -lext2fs" >&5
3058 echo $ECHO_N "checking for ext2fs_open in -lext2fs... $ECHO_C" >&6
3059 if test "${ac_cv_lib_ext2fs_ext2fs_open+set}" = set; then
3060 echo $ECHO_N "(cached) $ECHO_C" >&6
3061 else
3062 ac_check_lib_save_LIBS=$LIBS
3063 LIBS="-lext2fs -lcom_err $LIBS"
3064 cat >conftest.$ac_ext <<_ACEOF
3065 #line $LINENO "configure"
3066 #include "confdefs.h"
3067
3068 /* Override any gcc2 internal prototype to avoid an error. */
3069 #ifdef __cplusplus
3070 extern "C"
3071 #endif
3072 /* We use char because int might match the return type of a gcc2
3073 builtin and then its argument prototype would still apply. */
3074 char ext2fs_open ();
3075 #ifdef F77_DUMMY_MAIN
3076 # ifdef __cplusplus
3077 extern "C"
3078 # endif
3079 int F77_DUMMY_MAIN() { return 1; }
3080 #endif
3081 int
3082 main ()
3083 {
3084 ext2fs_open ();
3085 ;
3086 return 0;
3087 }
3088 _ACEOF
3089 rm -f conftest.$ac_objext conftest$ac_exeext
3090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3091 (eval $ac_link) 2>&5
3092 ac_status=$?
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); } &&
3095 { ac_try='test -s conftest$ac_exeext'
3096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3097 (eval $ac_try) 2>&5
3098 ac_status=$?
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); }; }; then
3101 ac_cv_lib_ext2fs_ext2fs_open=yes
3102 else
3103 echo "$as_me: failed program was:" >&5
3104 cat conftest.$ac_ext >&5
3105 ac_cv_lib_ext2fs_ext2fs_open=no
3106 fi
3107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3108 LIBS=$ac_check_lib_save_LIBS
3109 fi
3110 echo "$as_me:$LINENO: result: $ac_cv_lib_ext2fs_ext2fs_open" >&5
3111 echo "${ECHO_T}$ac_cv_lib_ext2fs_ext2fs_open" >&6
3112 if test $ac_cv_lib_ext2fs_ext2fs_open = yes; then
3113 ext2fs_lib=yes
3114 else
3115 ext2fs_lib=no
3116 fi
3117
3118 if test "$ext2fs_h" = no -o "$ext2fs_lib" = no; then
3119 { { echo "$as_me:$LINENO: error: You need to install the Ext2fs libraries from the E2fsprogs distribution first - hint: make install-libs" >&5
3120 echo "$as_me: error: You need to install the Ext2fs libraries from the E2fsprogs distribution first - hint: make install-libs" >&2;}
3121 { (exit 1); exit 1; }; }
3122 fi
3123
3124
3125 for ac_header in ext2fs/ext2_fs.h
3126 do
3127 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3128 echo "$as_me:$LINENO: checking for $ac_header" >&5
3129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3131 echo $ECHO_N "(cached) $ECHO_C" >&6
3132 else
3133 cat >conftest.$ac_ext <<_ACEOF
3134 #line $LINENO "configure"
3135 #include "confdefs.h"
3136 #include <$ac_header>
3137 _ACEOF
3138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3139 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3140 ac_status=$?
3141 egrep -v '^ *\+' conftest.er1 >conftest.err
3142 rm -f conftest.er1
3143 cat conftest.err >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); } >/dev/null; then
3146 if test -s conftest.err; then
3147 ac_cpp_err=$ac_c_preproc_warn_flag
3148 else
3149 ac_cpp_err=
3150 fi
3151 else
3152 ac_cpp_err=yes
3153 fi
3154 if test -z "$ac_cpp_err"; then
3155 eval "$as_ac_Header=yes"
3156 else
3157 echo "$as_me: failed program was:" >&5
3158 cat conftest.$ac_ext >&5
3159 eval "$as_ac_Header=no"
3160 fi
3161 rm -f conftest.err conftest.$ac_ext
3162 fi
3163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3164 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3166 cat >>confdefs.h <<_ACEOF
3167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3168 _ACEOF
3169
3170 fi
3171
3172 done
3173
3174
3175 echo "$as_me:$LINENO: checking for ext2_ino_t type in libext2fs headers" >&5
3176 echo $ECHO_N "checking for ext2_ino_t type in libext2fs headers... $ECHO_C" >&6
3177 cat >conftest.$ac_ext <<_ACEOF
3178 #line $LINENO "configure"
3179 #include "confdefs.h"
3180 #include <stdio.h>
3181 #ifdef HAVE_EXT2FS_EXT2_FS_H
3182 #include <ext2fs/ext2_fs.h>
3183 #else
3184 #include <linux/ext2_fs.h>
3185 #endif
3186 #include <ext2fs/ext2fs.h>
3187 #ifdef F77_DUMMY_MAIN
3188 # ifdef __cplusplus
3189 extern "C"
3190 # endif
3191 int F77_DUMMY_MAIN() { return 1; }
3192 #endif
3193 int
3194 main ()
3195 {
3196 ext2_ino_t ino = 0;
3197 ;
3198 return 0;
3199 }
3200 _ACEOF
3201 rm -f conftest.$ac_objext
3202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3203 (eval $ac_compile) 2>&5
3204 ac_status=$?
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); } &&
3207 { ac_try='test -s conftest.$ac_objext'
3208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3209 (eval $ac_try) 2>&5
3210 ac_status=$?
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); }; }; then
3213 cat >>confdefs.h <<\_ACEOF
3214 #define HAVE_EXT2_INO_T 1
3215 _ACEOF
3216 echo "$as_me:$LINENO: result: yes" >&5
3217 echo "${ECHO_T}yes" >&6
3218 else
3219 echo "$as_me: failed program was:" >&5
3220 cat conftest.$ac_ext >&5
3221 echo "$as_me:$LINENO: result: no" >&5
3222 echo "${ECHO_T}no" >&6
3223 fi
3224 rm -f conftest.$ac_objext conftest.$ac_ext
3225
3226 echo "$as_me:$LINENO: checking for s_journal_inum field in ext2_super_block struct" >&5
3227 echo $ECHO_N "checking for s_journal_inum field in ext2_super_block struct... $ECHO_C" >&6
3228 cat >conftest.$ac_ext <<_ACEOF
3229 #line $LINENO "configure"
3230 #include "confdefs.h"
3231 #include <stdio.h>
3232 #ifdef HAVE_EXT2FS_EXT2_FS_H
3233 #include <ext2fs/ext2_fs.h>
3234 #else
3235 #include <linux/ext2_fs.h>
3236 #endif
3237 #include <ext2fs/ext2fs.h>
3238 #ifdef F77_DUMMY_MAIN
3239 # ifdef __cplusplus
3240 extern "C"
3241 # endif
3242 int F77_DUMMY_MAIN() { return 1; }
3243 #endif
3244 int
3245 main ()
3246 {
3247 struct ext2_super_block es; es.s_journal_inum = 0;
3248 ;
3249 return 0;
3250 }
3251 _ACEOF
3252 rm -f conftest.$ac_objext
3253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3254 (eval $ac_compile) 2>&5
3255 ac_status=$?
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); } &&
3258 { ac_try='test -s conftest.$ac_objext'
3259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3260 (eval $ac_try) 2>&5
3261 ac_status=$?
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); }; }; then
3264 cat >>confdefs.h <<\_ACEOF
3265 #define HAVE_EXT2_JOURNAL_INUM 1
3266 _ACEOF
3267 echo "$as_me:$LINENO: result: yes" >&5
3268 echo "${ECHO_T}yes" >&6
3269 else
3270 echo "$as_me: failed program was:" >&5
3271 cat conftest.$ac_ext >&5
3272 echo "$as_me:$LINENO: result: no" >&5
3273 echo "${ECHO_T}no" >&6
3274 fi
3275 rm -f conftest.$ac_objext conftest.$ac_ext
3276
3277 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
3278 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
3279 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
3281 else
3282 ac_check_lib_save_LIBS=$LIBS
3283 LIBS="-ltermcap $LIBS"
3284 cat >conftest.$ac_ext <<_ACEOF
3285 #line $LINENO "configure"
3286 #include "confdefs.h"
3287
3288 /* Override any gcc2 internal prototype to avoid an error. */
3289 #ifdef __cplusplus
3290 extern "C"
3291 #endif
3292 /* We use char because int might match the return type of a gcc2
3293 builtin and then its argument prototype would still apply. */
3294 char tgetent ();
3295 #ifdef F77_DUMMY_MAIN
3296 # ifdef __cplusplus
3297 extern "C"
3298 # endif
3299 int F77_DUMMY_MAIN() { return 1; }
3300 #endif
3301 int
3302 main ()
3303 {
3304 tgetent ();
3305 ;
3306 return 0;
3307 }
3308 _ACEOF
3309 rm -f conftest.$ac_objext conftest$ac_exeext
3310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3311 (eval $ac_link) 2>&5
3312 ac_status=$?
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); } &&
3315 { ac_try='test -s conftest$ac_exeext'
3316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3317 (eval $ac_try) 2>&5
3318 ac_status=$?
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); }; }; then
3321 ac_cv_lib_termcap_tgetent=yes
3322 else
3323 echo "$as_me: failed program was:" >&5
3324 cat conftest.$ac_ext >&5
3325 ac_cv_lib_termcap_tgetent=no
3326 fi
3327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3328 LIBS=$ac_check_lib_save_LIBS
3329 fi
3330 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
3331 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
3332 if test $ac_cv_lib_termcap_tgetent = yes; then
3333 termcap_lib=yes
3334 else
3335 termcap_lib=no
3336 fi
3337
3338 if test "$termcap_lib" = no; then
3339 if test "$READLINE" = "-lreadline -ltermcap"; then
3340 { { echo "$as_me:$LINENO: error: You need to install the GNU termcap library or configure without --enable-readline" >&5
3341 echo "$as_me: error: You need to install the GNU termcap library or configure without --enable-readline" >&2;}
3342 { (exit 1); exit 1; }; }
3343 fi
3344 fi
3345
3346 echo "$as_me:$LINENO: checking for readline/readline.h" >&5
3347 echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6
3348 if test "${ac_cv_header_readline_readline_h+set}" = set; then
3349 echo $ECHO_N "(cached) $ECHO_C" >&6
3350 else
3351 cat >conftest.$ac_ext <<_ACEOF
3352 #line $LINENO "configure"
3353 #include "confdefs.h"
3354 #include <readline/readline.h>
3355 _ACEOF
3356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3357 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3358 ac_status=$?
3359 egrep -v '^ *\+' conftest.er1 >conftest.err
3360 rm -f conftest.er1
3361 cat conftest.err >&5
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); } >/dev/null; then
3364 if test -s conftest.err; then
3365 ac_cpp_err=$ac_c_preproc_warn_flag
3366 else
3367 ac_cpp_err=
3368 fi
3369 else
3370 ac_cpp_err=yes
3371 fi
3372 if test -z "$ac_cpp_err"; then
3373 ac_cv_header_readline_readline_h=yes
3374 else
3375 echo "$as_me: failed program was:" >&5
3376 cat conftest.$ac_ext >&5
3377 ac_cv_header_readline_readline_h=no
3378 fi
3379 rm -f conftest.err conftest.$ac_ext
3380 fi
3381 echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
3382 echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6
3383 if test $ac_cv_header_readline_readline_h = yes; then
3384 readline_h=yes
3385 else
3386 readline_h=no
3387 fi
3388
3389
3390 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
3391 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
3392 if test "${ac_cv_lib_readline_readline+set}" = set; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
3394 else
3395 ac_check_lib_save_LIBS=$LIBS
3396 LIBS="-lreadline "-ltermcap" $LIBS"
3397 cat >conftest.$ac_ext <<_ACEOF
3398 #line $LINENO "configure"
3399 #include "confdefs.h"
3400
3401 /* Override any gcc2 internal prototype to avoid an error. */
3402 #ifdef __cplusplus
3403 extern "C"
3404 #endif
3405 /* We use char because int might match the return type of a gcc2
3406 builtin and then its argument prototype would still apply. */
3407 char readline ();
3408 #ifdef F77_DUMMY_MAIN
3409 # ifdef __cplusplus
3410 extern "C"
3411 # endif
3412 int F77_DUMMY_MAIN() { return 1; }
3413 #endif
3414 int
3415 main ()
3416 {
3417 readline ();
3418 ;
3419 return 0;
3420 }
3421 _ACEOF
3422 rm -f conftest.$ac_objext conftest$ac_exeext
3423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3424 (eval $ac_link) 2>&5
3425 ac_status=$?
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); } &&
3428 { ac_try='test -s conftest$ac_exeext'
3429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3430 (eval $ac_try) 2>&5
3431 ac_status=$?
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); }; }; then
3434 ac_cv_lib_readline_readline=yes
3435 else
3436 echo "$as_me: failed program was:" >&5
3437 cat conftest.$ac_ext >&5
3438 ac_cv_lib_readline_readline=no
3439 fi
3440 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3441 LIBS=$ac_check_lib_save_LIBS
3442 fi
3443 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
3444 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
3445 if test $ac_cv_lib_readline_readline = yes; then
3446 readline_lib=yes
3447 else
3448 readline_lib=no
3449 fi
3450
3451 if test "$readline_h" = no -o "$readline_lib" = no; then
3452 if test "$READLINE" = "-lreadline -ltermcap"; then
3453 { { echo "$as_me:$LINENO: error: You need to install the GNU readline library or configure without --enable-readline" >&5
3454 echo "$as_me: error: You need to install the GNU readline library or configure without --enable-readline" >&2;}
3455 { (exit 1); exit 1; }; }
3456 fi
3457 fi
3458
3459 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
3460 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
3461 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3463 else
3464 ac_check_lib_save_LIBS=$LIBS
3465 LIBS="-lreadline "-ltermcap" $LIBS"
3466 cat >conftest.$ac_ext <<_ACEOF
3467 #line $LINENO "configure"
3468 #include "confdefs.h"
3469
3470 /* Override any gcc2 internal prototype to avoid an error. */
3471 #ifdef __cplusplus
3472 extern "C"
3473 #endif
3474 /* We use char because int might match the return type of a gcc2
3475 builtin and then its argument prototype would still apply. */
3476 char rl_completion_matches ();
3477 #ifdef F77_DUMMY_MAIN
3478 # ifdef __cplusplus
3479 extern "C"
3480 # endif
3481 int F77_DUMMY_MAIN() { return 1; }
3482 #endif
3483 int
3484 main ()
3485 {
3486 rl_completion_matches ();
3487 ;
3488 return 0;
3489 }
3490 _ACEOF
3491 rm -f conftest.$ac_objext conftest$ac_exeext
3492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3493 (eval $ac_link) 2>&5
3494 ac_status=$?
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); } &&
3497 { ac_try='test -s conftest$ac_exeext'
3498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3499 (eval $ac_try) 2>&5
3500 ac_status=$?
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); }; }; then
3503 ac_cv_lib_readline_rl_completion_matches=yes
3504 else
3505 echo "$as_me: failed program was:" >&5
3506 cat conftest.$ac_ext >&5
3507 ac_cv_lib_readline_rl_completion_matches=no
3508 fi
3509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3510 LIBS=$ac_check_lib_save_LIBS
3511 fi
3512 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
3513 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
3514 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
3515 rlcm=yes
3516 else
3517 rlcm=no
3518 fi
3519
3520 if test "$rlcm" = yes; then
3521 cat >>confdefs.h <<\_ACEOF
3522 #define HAVE_READLINE_RLCM 1
3523 _ACEOF
3524
3525 fi
3526
3527 echo "$as_me:$LINENO: checking for rl_completion_append_character in -lreadline" >&5
3528 echo $ECHO_N "checking for rl_completion_append_character in -lreadline... $ECHO_C" >&6
3529 if test "${ac_cv_lib_readline_rl_completion_append_character+set}" = set; then
3530 echo $ECHO_N "(cached) $ECHO_C" >&6
3531 else
3532 ac_check_lib_save_LIBS=$LIBS
3533 LIBS="-lreadline "-ltermcap" $LIBS"
3534 cat >conftest.$ac_ext <<_ACEOF
3535 #line $LINENO "configure"
3536 #include "confdefs.h"
3537
3538 /* Override any gcc2 internal prototype to avoid an error. */
3539 #ifdef __cplusplus
3540 extern "C"
3541 #endif
3542 /* We use char because int might match the return type of a gcc2
3543 builtin and then its argument prototype would still apply. */
3544 char rl_completion_append_character ();
3545 #ifdef F77_DUMMY_MAIN
3546 # ifdef __cplusplus
3547 extern "C"
3548 # endif
3549 int F77_DUMMY_MAIN() { return 1; }
3550 #endif
3551 int
3552 main ()
3553 {
3554 rl_completion_append_character ();
3555 ;
3556 return 0;
3557 }
3558 _ACEOF
3559 rm -f conftest.$ac_objext conftest$ac_exeext
3560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3561 (eval $ac_link) 2>&5
3562 ac_status=$?
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); } &&
3565 { ac_try='test -s conftest$ac_exeext'
3566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3567 (eval $ac_try) 2>&5
3568 ac_status=$?
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); }; }; then
3571 ac_cv_lib_readline_rl_completion_append_character=yes
3572 else
3573 echo "$as_me: failed program was:" >&5
3574 cat conftest.$ac_ext >&5
3575 ac_cv_lib_readline_rl_completion_append_character=no
3576 fi
3577 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3578 LIBS=$ac_check_lib_save_LIBS
3579 fi
3580 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_append_character" >&5
3581 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_append_character" >&6
3582 if test $ac_cv_lib_readline_rl_completion_append_character = yes; then
3583 rcac=yes
3584 else
3585 rcac=no
3586 fi
3587
3588 if test "$rcac" = yes; then
3589 cat >>confdefs.h <<\_ACEOF
3590 #define HAVE_READLINE_CAC 1
3591 _ACEOF
3592
3593 fi
3594
3595 echo "$as_me:$LINENO: checking for zlib.h" >&5
3596 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
3597 if test "${ac_cv_header_zlib_h+set}" = set; then
3598 echo $ECHO_N "(cached) $ECHO_C" >&6
3599 else
3600 cat >conftest.$ac_ext <<_ACEOF
3601 #line $LINENO "configure"
3602 #include "confdefs.h"
3603 #include <zlib.h>
3604 _ACEOF
3605 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3606 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3607 ac_status=$?
3608 egrep -v '^ *\+' conftest.er1 >conftest.err
3609 rm -f conftest.er1
3610 cat conftest.err >&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); } >/dev/null; then
3613 if test -s conftest.err; then
3614 ac_cpp_err=$ac_c_preproc_warn_flag
3615 else
3616 ac_cpp_err=
3617 fi
3618 else
3619 ac_cpp_err=yes
3620 fi
3621 if test -z "$ac_cpp_err"; then
3622 ac_cv_header_zlib_h=yes
3623 else
3624 echo "$as_me: failed program was:" >&5
3625 cat conftest.$ac_ext >&5
3626 ac_cv_header_zlib_h=no
3627 fi
3628 rm -f conftest.err conftest.$ac_ext
3629 fi
3630 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
3631 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
3632 if test $ac_cv_header_zlib_h = yes; then
3633 zlib_h=yes
3634 else
3635 zlib_h=no
3636 fi
3637
3638
3639 echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
3640 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6
3641 if test "${ac_cv_lib_z_compress2+set}" = set; then
3642 echo $ECHO_N "(cached) $ECHO_C" >&6
3643 else
3644 ac_check_lib_save_LIBS=$LIBS
3645 LIBS="-lz $LIBS"
3646 cat >conftest.$ac_ext <<_ACEOF
3647 #line $LINENO "configure"
3648 #include "confdefs.h"
3649
3650 /* Override any gcc2 internal prototype to avoid an error. */
3651 #ifdef __cplusplus
3652 extern "C"
3653 #endif
3654 /* We use char because int might match the return type of a gcc2
3655 builtin and then its argument prototype would still apply. */
3656 char compress2 ();
3657 #ifdef F77_DUMMY_MAIN
3658 # ifdef __cplusplus
3659 extern "C"
3660 # endif
3661 int F77_DUMMY_MAIN() { return 1; }
3662 #endif
3663 int
3664 main ()
3665 {
3666 compress2 ();
3667 ;
3668 return 0;
3669 }
3670 _ACEOF
3671 rm -f conftest.$ac_objext conftest$ac_exeext
3672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3673 (eval $ac_link) 2>&5
3674 ac_status=$?
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); } &&
3677 { ac_try='test -s conftest$ac_exeext'
3678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3679 (eval $ac_try) 2>&5
3680 ac_status=$?
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); }; }; then
3683 ac_cv_lib_z_compress2=yes
3684 else
3685 echo "$as_me: failed program was:" >&5
3686 cat conftest.$ac_ext >&5
3687 ac_cv_lib_z_compress2=no
3688 fi
3689 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3690 LIBS=$ac_check_lib_save_LIBS
3691 fi
3692 echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
3693 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6
3694 if test $ac_cv_lib_z_compress2 = yes; then
3695 zlib_lib=yes
3696 else
3697 zlib_lib=no
3698 fi
3699
3700 if test "$zlib_h" = yes -a "$zlib_lib" = yes; then
3701 ZLIB="-lz"
3702 cat >>confdefs.h <<\_ACEOF
3703 #define HAVE_ZLIB 1
3704 _ACEOF
3705
3706 else
3707 ZLIB=""
3708 fi
3709
3710
3711 echo "$as_me:$LINENO: checking for bzlib.h" >&5
3712 echo $ECHO_N "checking for bzlib.h... $ECHO_C" >&6
3713 if test "${ac_cv_header_bzlib_h+set}" = set; then
3714 echo $ECHO_N "(cached) $ECHO_C" >&6
3715 else
3716 cat >conftest.$ac_ext <<_ACEOF
3717 #line $LINENO "configure"
3718 #include "confdefs.h"
3719 #include <bzlib.h>
3720 _ACEOF
3721 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3722 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3723 ac_status=$?
3724 egrep -v '^ *\+' conftest.er1 >conftest.err
3725 rm -f conftest.er1
3726 cat conftest.err >&5
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); } >/dev/null; then
3729 if test -s conftest.err; then
3730 ac_cpp_err=$ac_c_preproc_warn_flag
3731 else
3732 ac_cpp_err=
3733 fi
3734 else
3735 ac_cpp_err=yes
3736 fi
3737 if test -z "$ac_cpp_err"; then
3738 ac_cv_header_bzlib_h=yes
3739 else
3740 echo "$as_me: failed program was:" >&5
3741 cat conftest.$ac_ext >&5
3742 ac_cv_header_bzlib_h=no
3743 fi
3744 rm -f conftest.err conftest.$ac_ext
3745 fi
3746 echo "$as_me:$LINENO: result: $ac_cv_header_bzlib_h" >&5
3747 echo "${ECHO_T}$ac_cv_header_bzlib_h" >&6
3748 if test $ac_cv_header_bzlib_h = yes; then
3749 bzlib_h=yes
3750 else
3751 bzlib_h=no
3752 fi
3753
3754
3755 echo "$as_me:$LINENO: checking for BZ2_bzBuffToBuffCompress in -lbz2" >&5
3756 echo $ECHO_N "checking for BZ2_bzBuffToBuffCompress in -lbz2... $ECHO_C" >&6
3757 if test "${ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 else
3760 ac_check_lib_save_LIBS=$LIBS
3761 LIBS="-lbz2 $LIBS"
3762 cat >conftest.$ac_ext <<_ACEOF
3763 #line $LINENO "configure"
3764 #include "confdefs.h"
3765
3766 /* Override any gcc2 internal prototype to avoid an error. */
3767 #ifdef __cplusplus
3768 extern "C"
3769 #endif
3770 /* We use char because int might match the return type of a gcc2
3771 builtin and then its argument prototype would still apply. */
3772 char BZ2_bzBuffToBuffCompress ();
3773 #ifdef F77_DUMMY_MAIN
3774 # ifdef __cplusplus
3775 extern "C"
3776 # endif
3777 int F77_DUMMY_MAIN() { return 1; }
3778 #endif
3779 int
3780 main ()
3781 {
3782 BZ2_bzBuffToBuffCompress ();
3783 ;
3784 return 0;
3785 }
3786 _ACEOF
3787 rm -f conftest.$ac_objext conftest$ac_exeext
3788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3789 (eval $ac_link) 2>&5
3790 ac_status=$?
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } &&
3793 { ac_try='test -s conftest$ac_exeext'
3794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3795 (eval $ac_try) 2>&5
3796 ac_status=$?
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); }; }; then
3799 ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress=yes
3800 else
3801 echo "$as_me: failed program was:" >&5
3802 cat conftest.$ac_ext >&5
3803 ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress=no
3804 fi
3805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3806 LIBS=$ac_check_lib_save_LIBS
3807 fi
3808 echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress" >&5
3809 echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress" >&6
3810 if test $ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress = yes; then
3811 bzlib_lib=yes
3812 else
3813 bzlib_lib=no
3814 fi
3815
3816 if test "$bzlib_h" = yes -a "$bzlib_lib" = yes; then
3817 BZLIB="-lbz2"
3818 cat >>confdefs.h <<\_ACEOF
3819 #define HAVE_BZLIB 1
3820 _ACEOF
3821
3822 else
3823 BZLIB=""
3824 fi
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837 for ac_func in err errx verr verrx vwarn vwarnx warn warnx realpath lchown
3838 do
3839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3840 echo "$as_me:$LINENO: checking for $ac_func" >&5
3841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3842 if eval "test \"\${$as_ac_var+set}\" = set"; then
3843 echo $ECHO_N "(cached) $ECHO_C" >&6
3844 else
3845 cat >conftest.$ac_ext <<_ACEOF
3846 #line $LINENO "configure"
3847 #include "confdefs.h"
3848 /* System header to define __stub macros and hopefully few prototypes,
3849 which can conflict with char $ac_func (); below. */
3850 #include <assert.h>
3851 /* Override any gcc2 internal prototype to avoid an error. */
3852 #ifdef __cplusplus
3853 extern "C"
3854 #endif
3855 /* We use char because int might match the return type of a gcc2
3856 builtin and then its argument prototype would still apply. */
3857 char $ac_func ();
3858 char (*f) ();
3859
3860 #ifdef F77_DUMMY_MAIN
3861 # ifdef __cplusplus
3862 extern "C"
3863 # endif
3864 int F77_DUMMY_MAIN() { return 1; }
3865 #endif
3866 int
3867 main ()
3868 {
3869 /* The GNU C library defines this for functions which it implements
3870 to always fail with ENOSYS. Some functions are actually named
3871 something starting with __ and the normal name is an alias. */
3872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3873 choke me
3874 #else
3875 f = $ac_func;
3876 #endif
3877
3878 ;
3879 return 0;
3880 }
3881 _ACEOF
3882 rm -f conftest.$ac_objext conftest$ac_exeext
3883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3884 (eval $ac_link) 2>&5
3885 ac_status=$?
3886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887 (exit $ac_status); } &&
3888 { ac_try='test -s conftest$ac_exeext'
3889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3890 (eval $ac_try) 2>&5
3891 ac_status=$?
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); }; }; then
3894 eval "$as_ac_var=yes"
3895 else
3896 echo "$as_me: failed program was:" >&5
3897 cat conftest.$ac_ext >&5
3898 eval "$as_ac_var=no"
3899 fi
3900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3901 fi
3902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3903 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3904 if test `eval echo '${'$as_ac_var'}'` = yes; then
3905 cat >>confdefs.h <<_ACEOF
3906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3907 _ACEOF
3908
3909 fi
3910 done
3911
3912 echo "$as_me:$LINENO: checking for glob" >&5
3913 echo $ECHO_N "checking for glob... $ECHO_C" >&6
3914 if test "${ac_cv_func_glob+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917 cat >conftest.$ac_ext <<_ACEOF
3918 #line $LINENO "configure"
3919 #include "confdefs.h"
3920 /* System header to define __stub macros and hopefully few prototypes,
3921 which can conflict with char glob (); below. */
3922 #include <assert.h>
3923 /* Override any gcc2 internal prototype to avoid an error. */
3924 #ifdef __cplusplus
3925 extern "C"
3926 #endif
3927 /* We use char because int might match the return type of a gcc2
3928 builtin and then its argument prototype would still apply. */
3929 char glob ();
3930 char (*f) ();
3931
3932 #ifdef F77_DUMMY_MAIN
3933 # ifdef __cplusplus
3934 extern "C"
3935 # endif
3936 int F77_DUMMY_MAIN() { return 1; }
3937 #endif
3938 int
3939 main ()
3940 {
3941 /* The GNU C library defines this for functions which it implements
3942 to always fail with ENOSYS. Some functions are actually named
3943 something starting with __ and the normal name is an alias. */
3944 #if defined (__stub_glob) || defined (__stub___glob)
3945 choke me
3946 #else
3947 f = glob;
3948 #endif
3949
3950 ;
3951 return 0;
3952 }
3953 _ACEOF
3954 rm -f conftest.$ac_objext conftest$ac_exeext
3955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3956 (eval $ac_link) 2>&5
3957 ac_status=$?
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); } &&
3960 { ac_try='test -s conftest$ac_exeext'
3961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3962 (eval $ac_try) 2>&5
3963 ac_status=$?
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); }; }; then
3966 ac_cv_func_glob=yes
3967 else
3968 echo "$as_me: failed program was:" >&5
3969 cat conftest.$ac_ext >&5
3970 ac_cv_func_glob=no
3971 fi
3972 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3973 fi
3974 echo "$as_me:$LINENO: result: $ac_cv_func_glob" >&5
3975 echo "${ECHO_T}$ac_cv_func_glob" >&6
3976
3977
3978 echo "$as_me:$LINENO: checking for extended glob routines" >&5
3979 echo $ECHO_N "checking for extended glob routines... $ECHO_C" >&6
3980 if test "$ac_cv_func_glob" = "yes"; then
3981 cat >conftest.$ac_ext <<_ACEOF
3982 #line $LINENO "configure"
3983 #include "confdefs.h"
3984
3985 # include <glob.h>
3986 # ifdef GLOB_ALTDIRFUNC
3987 yes
3988 # endif
3989
3990 _ACEOF
3991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3992 egrep "yes" >/dev/null 2>&1; then
3993
3994 cat >>confdefs.h <<\_ACEOF
3995 #define HAVE_GLOB 1
3996 _ACEOF
3997
3998 echo "$as_me:$LINENO: result: yes" >&5
3999 echo "${ECHO_T}yes" >&6
4000
4001 else
4002
4003 echo "$as_me:$LINENO: result: no" >&5
4004 echo "${ECHO_T}no" >&6
4005 echo "Your system does not support extended glob, will use the internal routines"
4006
4007 fi
4008 rm -f conftest*
4009
4010 fi
4011
4012 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4013 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4014 if test "${ac_cv_header_stdc+set}" = set; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4016 else
4017 cat >conftest.$ac_ext <<_ACEOF
4018 #line $LINENO "configure"
4019 #include "confdefs.h"
4020 #include <stdlib.h>
4021 #include <stdarg.h>
4022 #include <string.h>
4023 #include <float.h>
4024
4025 _ACEOF
4026 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4028 ac_status=$?
4029 egrep -v '^ *\+' conftest.er1 >conftest.err
4030 rm -f conftest.er1
4031 cat conftest.err >&5
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); } >/dev/null; then
4034 if test -s conftest.err; then
4035 ac_cpp_err=$ac_c_preproc_warn_flag
4036 else
4037 ac_cpp_err=
4038 fi
4039 else
4040 ac_cpp_err=yes
4041 fi
4042 if test -z "$ac_cpp_err"; then
4043 ac_cv_header_stdc=yes
4044 else
4045 echo "$as_me: failed program was:" >&5
4046 cat conftest.$ac_ext >&5
4047 ac_cv_header_stdc=no
4048 fi
4049 rm -f conftest.err conftest.$ac_ext
4050
4051 if test $ac_cv_header_stdc = yes; then
4052 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4053 cat >conftest.$ac_ext <<_ACEOF
4054 #line $LINENO "configure"
4055 #include "confdefs.h"
4056 #include <string.h>
4057
4058 _ACEOF
4059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4060 egrep "memchr" >/dev/null 2>&1; then
4061 :
4062 else
4063 ac_cv_header_stdc=no
4064 fi
4065 rm -f conftest*
4066
4067 fi
4068
4069 if test $ac_cv_header_stdc = yes; then
4070 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4071 cat >conftest.$ac_ext <<_ACEOF
4072 #line $LINENO "configure"
4073 #include "confdefs.h"
4074 #include <stdlib.h>
4075
4076 _ACEOF
4077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4078 egrep "free" >/dev/null 2>&1; then
4079 :
4080 else
4081 ac_cv_header_stdc=no
4082 fi
4083 rm -f conftest*
4084
4085 fi
4086
4087 if test $ac_cv_header_stdc = yes; then
4088 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4089 if test "$cross_compiling" = yes; then
4090 :
4091 else
4092 cat >conftest.$ac_ext <<_ACEOF
4093 #line $LINENO "configure"
4094 #include "confdefs.h"
4095 #include <ctype.h>
4096 #if ((' ' & 0x0FF) == 0x020)
4097 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4098 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4099 #else
4100 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4101 || ('j' <= (c) && (c) <= 'r') \
4102 || ('s' <= (c) && (c) <= 'z'))
4103 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4104 #endif
4105
4106 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4107 int
4108 main ()
4109 {
4110 int i;
4111 for (i = 0; i < 256; i++)
4112 if (XOR (islower (i), ISLOWER (i))
4113 || toupper (i) != TOUPPER (i))
4114 exit(2);
4115 exit (0);
4116 }
4117 _ACEOF
4118 rm -f conftest$ac_exeext
4119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4120 (eval $ac_link) 2>&5
4121 ac_status=$?
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4125 (eval $ac_try) 2>&5
4126 ac_status=$?
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); }; }; then
4129 :
4130 else
4131 echo "$as_me: program exited with status $ac_status" >&5
4132 echo "$as_me: failed program was:" >&5
4133 cat conftest.$ac_ext >&5
4134 ( exit $ac_status )
4135 ac_cv_header_stdc=no
4136 fi
4137 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4138 fi
4139 fi
4140 fi
4141 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4142 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4143 if test $ac_cv_header_stdc = yes; then
4144
4145 cat >>confdefs.h <<\_ACEOF
4146 #define STDC_HEADERS 1
4147 _ACEOF
4148
4149 fi
4150
4151 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4162 inttypes.h stdint.h unistd.h
4163 do
4164 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4165 echo "$as_me:$LINENO: checking for $ac_header" >&5
4166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
4169 else
4170 cat >conftest.$ac_ext <<_ACEOF
4171 #line $LINENO "configure"
4172 #include "confdefs.h"
4173 $ac_includes_default
4174
4175 #include <$ac_header>
4176 _ACEOF
4177 rm -f conftest.$ac_objext
4178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4179 (eval $ac_compile) 2>&5
4180 ac_status=$?
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } &&
4183 { ac_try='test -s conftest.$ac_objext'
4184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185 (eval $ac_try) 2>&5
4186 ac_status=$?
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; }; then
4189 eval "$as_ac_Header=yes"
4190 else
4191 echo "$as_me: failed program was:" >&5
4192 cat conftest.$ac_ext >&5
4193 eval "$as_ac_Header=no"
4194 fi
4195 rm -f conftest.$ac_objext conftest.$ac_ext
4196 fi
4197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4200 cat >>confdefs.h <<_ACEOF
4201 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4202 _ACEOF
4203
4204 fi
4205
4206 done
4207
4208
4209 echo "$as_me:$LINENO: checking for quad_t" >&5
4210 echo $ECHO_N "checking for quad_t... $ECHO_C" >&6
4211 if test "${ac_cv_type_quad_t+set}" = set; then
4212 echo $ECHO_N "(cached) $ECHO_C" >&6
4213 else
4214 cat >conftest.$ac_ext <<_ACEOF
4215 #line $LINENO "configure"
4216 #include "confdefs.h"
4217 $ac_includes_default
4218 #ifdef F77_DUMMY_MAIN
4219 # ifdef __cplusplus
4220 extern "C"
4221 # endif
4222 int F77_DUMMY_MAIN() { return 1; }
4223 #endif
4224 int
4225 main ()
4226 {
4227 if ((quad_t *) 0)
4228 return 0;
4229 if (sizeof (quad_t))
4230 return 0;
4231 ;
4232 return 0;
4233 }
4234 _ACEOF
4235 rm -f conftest.$ac_objext
4236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4237 (eval $ac_compile) 2>&5
4238 ac_status=$?
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); } &&
4241 { ac_try='test -s conftest.$ac_objext'
4242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4243 (eval $ac_try) 2>&5
4244 ac_status=$?
4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); }; }; then
4247 ac_cv_type_quad_t=yes
4248 else
4249 echo "$as_me: failed program was:" >&5
4250 cat conftest.$ac_ext >&5
4251 ac_cv_type_quad_t=no
4252 fi
4253 rm -f conftest.$ac_objext conftest.$ac_ext
4254 fi
4255 echo "$as_me:$LINENO: result: $ac_cv_type_quad_t" >&5
4256 echo "${ECHO_T}$ac_cv_type_quad_t" >&6
4257 if test $ac_cv_type_quad_t = yes; then
4258 :
4259 else
4260
4261 cat >>confdefs.h <<_ACEOF
4262 #define quad_t int64_t
4263 _ACEOF
4264
4265 fi
4266
4267 echo "$as_me:$LINENO: checking for u_quad_t" >&5
4268 echo $ECHO_N "checking for u_quad_t... $ECHO_C" >&6
4269 if test "${ac_cv_type_u_quad_t+set}" = set; then
4270 echo $ECHO_N "(cached) $ECHO_C" >&6
4271 else
4272 cat >conftest.$ac_ext <<_ACEOF
4273 #line $LINENO "configure"
4274 #include "confdefs.h"
4275 $ac_includes_default
4276 #ifdef F77_DUMMY_MAIN
4277 # ifdef __cplusplus
4278 extern "C"
4279 # endif
4280 int F77_DUMMY_MAIN() { return 1; }
4281 #endif
4282 int
4283 main ()
4284 {
4285 if ((u_quad_t *) 0)
4286 return 0;
4287 if (sizeof (u_quad_t))
4288 return 0;
4289 ;
4290 return 0;
4291 }
4292 _ACEOF
4293 rm -f conftest.$ac_objext
4294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4295 (eval $ac_compile) 2>&5
4296 ac_status=$?
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); } &&
4299 { ac_try='test -s conftest.$ac_objext'
4300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301 (eval $ac_try) 2>&5
4302 ac_status=$?
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; }; then
4305 ac_cv_type_u_quad_t=yes
4306 else
4307 echo "$as_me: failed program was:" >&5
4308 cat conftest.$ac_ext >&5
4309 ac_cv_type_u_quad_t=no
4310 fi
4311 rm -f conftest.$ac_objext conftest.$ac_ext
4312 fi
4313 echo "$as_me:$LINENO: result: $ac_cv_type_u_quad_t" >&5
4314 echo "${ECHO_T}$ac_cv_type_u_quad_t" >&6
4315 if test $ac_cv_type_u_quad_t = yes; then
4316 :
4317 else
4318
4319 cat >>confdefs.h <<_ACEOF
4320 #define u_quad_t uint64_t
4321 _ACEOF
4322
4323 fi
4324
4325
4326 top_builddir=`cd .; pwd`
4327
4328
4329 test -d compat || mkdir compat
4330 test -d compat/lib || mkdir compat/lib
4331
4332 ac_config_files="$ac_config_files MCONFIG Makefile common/Makefile compat/include/Makefile compat/lib/Makefile dump/Makefile restore/Makefile $RMTMAKEFILE"
4333 cat >confcache <<\_ACEOF
4334 # This file is a shell script that caches the results of configure
4335 # tests run on this system so they can be shared between configure
4336 # scripts and configure runs, see configure's option --config-cache.
4337 # It is not useful on other systems. If it contains results you don't
4338 # want to keep, you may remove or edit it.
4339 #
4340 # config.status only pays attention to the cache file if you give it
4341 # the --recheck option to rerun configure.
4342 #
4343 # `ac_cv_env_foo' variables (set or unset) will be overriden when
4344 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4345 # following values.
4346
4347 _ACEOF
4348
4349 # The following way of writing the cache mishandles newlines in values,
4350 # but we know of no workaround that is simple, portable, and efficient.
4351 # So, don't put newlines in cache variables' values.
4352 # Ultrix sh set writes to stderr and can't be redirected directly,
4353 # and sets the high bit in the cache file unless we assign to the vars.
4354 {
4355 (set) 2>&1 |
4356 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4357 *ac_space=\ *)
4358 # `set' does not quote correctly, so add quotes (double-quote
4359 # substitution turns \\\\ into \\, and sed turns \\ into \).
4360 sed -n \
4361 "s/'/'\\\\''/g;
4362 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4363 ;;
4364 *)
4365 # `set' quotes correctly as required by POSIX, so do not add quotes.
4366 sed -n \
4367 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4368 ;;
4369 esac;
4370 } |
4371 sed '
4372 t clear
4373 : clear
4374 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4375 t end
4376 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4377 : end' >>confcache
4378 if cmp -s $cache_file confcache; then :; else
4379 if test -w $cache_file; then
4380 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4381 cat confcache >$cache_file
4382 else
4383 echo "not updating unwritable cache $cache_file"
4384 fi
4385 fi
4386 rm -f confcache
4387
4388 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4389 # Let make expand exec_prefix.
4390 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4391
4392 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4393 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4394 # trailing colons and then remove the whole line if VPATH becomes empty
4395 # (actually we leave an empty line to preserve line numbers).
4396 if test "x$srcdir" = x.; then
4397 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4398 s/:*\$(srcdir):*/:/;
4399 s/:*\${srcdir}:*/:/;
4400 s/:*@srcdir@:*/:/;
4401 s/^\([^=]*=[ ]*\):*/\1/;
4402 s/:*$//;
4403 s/^[^=]*=[ ]*$//;
4404 }'
4405 fi
4406
4407 DEFS=-DHAVE_CONFIG_H
4408
4409
4410 : ${CONFIG_STATUS=./config.status}
4411 ac_clean_files_save=$ac_clean_files
4412 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4413 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4414 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4415 cat >$CONFIG_STATUS <<_ACEOF
4416 #! $SHELL
4417 # Generated by $as_me.
4418 # Run this file to recreate the current configuration.
4419 # Compiler output produced by configure, useful for debugging
4420 # configure, is in config.log if it exists.
4421
4422 debug=false
4423 SHELL=\${CONFIG_SHELL-$SHELL}
4424 _ACEOF
4425
4426 cat >>$CONFIG_STATUS <<\_ACEOF
4427
4428 ## --------------------- ##
4429 ## M4sh Initialization. ##
4430 ## --------------------- ##
4431
4432 # Be Bourne compatible
4433 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4434 emulate sh
4435 NULLCMD=:
4436 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4437 set -o posix
4438 fi
4439
4440 # NLS nuisances.
4441 # Support unset when possible.
4442 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4443 as_unset=unset
4444 else
4445 as_unset=false
4446 fi
4447
4448 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
4449 { $as_unset LANG || test "${LANG+set}" != set; } ||
4450 { LANG=C; export LANG; }
4451 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
4452 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
4453 { LC_ALL=C; export LC_ALL; }
4454 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
4455 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
4456 { LC_TIME=C; export LC_TIME; }
4457 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
4458 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
4459 { LC_CTYPE=C; export LC_CTYPE; }
4460 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
4461 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
4462 { LANGUAGE=C; export LANGUAGE; }
4463 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
4464 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
4465 { LC_COLLATE=C; export LC_COLLATE; }
4466 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
4467 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
4468 { LC_NUMERIC=C; export LC_NUMERIC; }
4469 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
4470 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
4471 { LC_MESSAGES=C; export LC_MESSAGES; }
4472
4473
4474 # Name of the executable.
4475 as_me=`(basename "$0") 2>/dev/null ||
4476 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4477 X"$0" : 'X\(//\)$' \| \
4478 X"$0" : 'X\(/\)$' \| \
4479 . : '\(.\)' 2>/dev/null ||
4480 echo X/"$0" |
4481 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4482 /^X\/\(\/\/\)$/{ s//\1/; q; }
4483 /^X\/\(\/\).*/{ s//\1/; q; }
4484 s/.*/./; q'`
4485
4486 # PATH needs CR, and LINENO needs CR and PATH.
4487 # Avoid depending upon Character Ranges.
4488 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4489 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4490 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4491 as_cr_digits='0123456789'
4492 as_cr_alnum=$as_cr_Letters$as_cr_digits
4493
4494 # The user is always right.
4495 if test "${PATH_SEPARATOR+set}" != set; then
4496 echo "#! /bin/sh" >conftest.sh
4497 echo "exit 0" >>conftest.sh
4498 chmod +x conftest.sh
4499 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
4500 PATH_SEPARATOR=';'
4501 else
4502 PATH_SEPARATOR=:
4503 fi
4504 rm -f conftest.sh
4505 fi
4506
4507
4508 as_lineno_1=$LINENO
4509 as_lineno_2=$LINENO
4510 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4511 test "x$as_lineno_1" != "x$as_lineno_2" &&
4512 test "x$as_lineno_3" = "x$as_lineno_2" || {
4513 # Find who we are. Look in the path if we contain no path at all
4514 # relative or not.
4515 case $0 in
4516 *[\\/]* ) as_myself=$0 ;;
4517 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 for as_dir in $PATH
4519 do
4520 IFS=$as_save_IFS
4521 test -z "$as_dir" && as_dir=.
4522 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4523 done
4524
4525 ;;
4526 esac
4527 # We did not find ourselves, most probably we were run as `sh COMMAND'
4528 # in which case we are not to be found in the path.
4529 if test "x$as_myself" = x; then
4530 as_myself=$0
4531 fi
4532 if test ! -f "$as_myself"; then
4533 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4534 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4535 { (exit 1); exit 1; }; }
4536 fi
4537 case $CONFIG_SHELL in
4538 '')
4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4541 do
4542 IFS=$as_save_IFS
4543 test -z "$as_dir" && as_dir=.
4544 for as_base in sh bash ksh sh5; do
4545 case $as_dir in
4546 /*)
4547 if ("$as_dir/$as_base" -c '
4548 as_lineno_1=$LINENO
4549 as_lineno_2=$LINENO
4550 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4551 test "x$as_lineno_1" != "x$as_lineno_2" &&
4552 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4553 CONFIG_SHELL=$as_dir/$as_base
4554 export CONFIG_SHELL
4555 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4556 fi;;
4557 esac
4558 done
4559 done
4560 ;;
4561 esac
4562
4563 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4564 # uniformly replaced by the line number. The first 'sed' inserts a
4565 # line-number line before each line; the second 'sed' does the real
4566 # work. The second script uses 'N' to pair each line-number line
4567 # with the numbered line, and appends trailing '-' during
4568 # substitution so that $LINENO is not a special case at line end.
4569 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4570 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4571 sed '=' <$as_myself |
4572 sed '
4573 N
4574 s,$,-,
4575 : loop
4576 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4577 t loop
4578 s,-$,,
4579 s,^['$as_cr_digits']*\n,,
4580 ' >$as_me.lineno &&
4581 chmod +x $as_me.lineno ||
4582 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4583 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4584 { (exit 1); exit 1; }; }
4585
4586 # Don't try to exec as it changes $[0], causing all sort of problems
4587 # (the dirname of $[0] is not the place where we might find the
4588 # original and so on. Autoconf is especially sensible to this).
4589 . ./$as_me.lineno
4590 # Exit status is that of the last command.
4591 exit
4592 }
4593
4594
4595 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4596 *c*,-n*) ECHO_N= ECHO_C='
4597 ' ECHO_T=' ' ;;
4598 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4599 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4600 esac
4601
4602 if expr a : '\(a\)' >/dev/null 2>&1; then
4603 as_expr=expr
4604 else
4605 as_expr=false
4606 fi
4607
4608 rm -f conf$$ conf$$.exe conf$$.file
4609 echo >conf$$.file
4610 if ln -s conf$$.file conf$$ 2>/dev/null; then
4611 # We could just check for DJGPP; but this test a) works b) is more generic
4612 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4613 if test -f conf$$.exe; then
4614 # Don't use ln at all; we don't have any links
4615 as_ln_s='cp -p'
4616 else
4617 as_ln_s='ln -s'
4618 fi
4619 elif ln conf$$.file conf$$ 2>/dev/null; then
4620 as_ln_s=ln
4621 else
4622 as_ln_s='cp -p'
4623 fi
4624 rm -f conf$$ conf$$.exe conf$$.file
4625
4626 as_executable_p="test -f"
4627
4628 # Sed expression to map a string onto a valid CPP name.
4629 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
4630
4631 # Sed expression to map a string onto a valid variable name.
4632 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
4633
4634
4635 # IFS
4636 # We need space, tab and new line, in precisely that order.
4637 as_nl='
4638 '
4639 IFS=" $as_nl"
4640
4641 # CDPATH.
4642 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
4643
4644 exec 6>&1
4645
4646 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4647 # report actual input values of CONFIG_FILES etc. instead of their
4648 # values after options handling. Logging --version etc. is OK.
4649 exec 5>>config.log
4650 {
4651 echo
4652 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4653 ## Running $as_me. ##
4654 _ASBOX
4655 } >&5
4656 cat >&5 <<_CSEOF
4657
4658 This file was extended by $as_me, which was
4659 generated by GNU Autoconf 2.53. Invocation command line was
4660
4661 CONFIG_FILES = $CONFIG_FILES
4662 CONFIG_HEADERS = $CONFIG_HEADERS
4663 CONFIG_LINKS = $CONFIG_LINKS
4664 CONFIG_COMMANDS = $CONFIG_COMMANDS
4665 $ $0 $@
4666
4667 _CSEOF
4668 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4669 echo >&5
4670 _ACEOF
4671
4672 # Files that config.status was made for.
4673 if test -n "$ac_config_files"; then
4674 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4675 fi
4676
4677 if test -n "$ac_config_headers"; then
4678 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4679 fi
4680
4681 if test -n "$ac_config_links"; then
4682 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4683 fi
4684
4685 if test -n "$ac_config_commands"; then
4686 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4687 fi
4688
4689 cat >>$CONFIG_STATUS <<\_ACEOF
4690
4691 ac_cs_usage="\
4692 \`$as_me' instantiates files from templates according to the
4693 current configuration.
4694
4695 Usage: $0 [OPTIONS] [FILE]...
4696
4697 -h, --help print this help, then exit
4698 -V, --version print version number, then exit
4699 -d, --debug don't remove temporary files
4700 --recheck update $as_me by reconfiguring in the same conditions
4701 --file=FILE[:TEMPLATE]
4702 instantiate the configuration file FILE
4703 --header=FILE[:TEMPLATE]
4704 instantiate the configuration header FILE
4705
4706 Configuration files:
4707 $config_files
4708
4709 Configuration headers:
4710 $config_headers
4711
4712 Report bugs to <bug-autoconf@gnu.org>."
4713 _ACEOF
4714
4715 cat >>$CONFIG_STATUS <<_ACEOF
4716 ac_cs_version="\\
4717 config.status
4718 configured by $0, generated by GNU Autoconf 2.53,
4719 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4720
4721 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4722 Free Software Foundation, Inc.
4723 This config.status script is free software; the Free Software Foundation
4724 gives unlimited permission to copy, distribute and modify it."
4725 srcdir=$srcdir
4726 INSTALL="$INSTALL"
4727 _ACEOF
4728
4729 cat >>$CONFIG_STATUS <<\_ACEOF
4730 # If no file are specified by the user, then we need to provide default
4731 # value. By we need to know if files were specified by the user.
4732 ac_need_defaults=:
4733 while test $# != 0
4734 do
4735 case $1 in
4736 --*=*)
4737 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4738 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4739 shift
4740 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
4741 shift
4742 ;;
4743 -*);;
4744 *) # This is not an option, so the user has probably given explicit
4745 # arguments.
4746 ac_need_defaults=false;;
4747 esac
4748
4749 case $1 in
4750 # Handling of the options.
4751 _ACEOF
4752 cat >>$CONFIG_STATUS <<_ACEOF
4753 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4754 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
4755 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
4756 _ACEOF
4757 cat >>$CONFIG_STATUS <<\_ACEOF
4758 --version | --vers* | -V )
4759 echo "$ac_cs_version"; exit 0 ;;
4760 --he | --h)
4761 # Conflict between --help and --header
4762 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4763 Try \`$0 --help' for more information." >&5
4764 echo "$as_me: error: ambiguous option: $1
4765 Try \`$0 --help' for more information." >&2;}
4766 { (exit 1); exit 1; }; };;
4767 --help | --hel | -h )
4768 echo "$ac_cs_usage"; exit 0 ;;
4769 --debug | --d* | -d )
4770 debug=: ;;
4771 --file | --fil | --fi | --f )
4772 shift
4773 CONFIG_FILES="$CONFIG_FILES $1"
4774 ac_need_defaults=false;;
4775 --header | --heade | --head | --hea )
4776 shift
4777 CONFIG_HEADERS="$CONFIG_HEADERS $1"
4778 ac_need_defaults=false;;
4779
4780 # This is an error.
4781 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4782 Try \`$0 --help' for more information." >&5
4783 echo "$as_me: error: unrecognized option: $1
4784 Try \`$0 --help' for more information." >&2;}
4785 { (exit 1); exit 1; }; } ;;
4786
4787 *) ac_config_targets="$ac_config_targets $1" ;;
4788
4789 esac
4790 shift
4791 done
4792
4793 _ACEOF
4794
4795
4796
4797
4798
4799 cat >>$CONFIG_STATUS <<\_ACEOF
4800 for ac_config_target in $ac_config_targets
4801 do
4802 case "$ac_config_target" in
4803 # Handling of arguments.
4804 "MCONFIG" ) CONFIG_FILES="$CONFIG_FILES MCONFIG" ;;
4805 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4806 "common/Makefile" ) CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
4807 "compat/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES compat/include/Makefile" ;;
4808 "compat/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES compat/lib/Makefile" ;;
4809 "dump/Makefile" ) CONFIG_FILES="$CONFIG_FILES dump/Makefile" ;;
4810 "restore/Makefile" ) CONFIG_FILES="$CONFIG_FILES restore/Makefile" ;;
4811 "$RMTMAKEFILE" ) CONFIG_FILES="$CONFIG_FILES $RMTMAKEFILE" ;;
4812 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4813 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4814 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4815 { (exit 1); exit 1; }; };;
4816 esac
4817 done
4818
4819 # If the user did not use the arguments to specify the items to instantiate,
4820 # then the envvar interface is used. Set only those that are not.
4821 # We use the long form for the default assignment because of an extremely
4822 # bizarre bug on SunOS 4.1.3.
4823 if $ac_need_defaults; then
4824 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4825 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4826 fi
4827
4828 # Create a temporary directory, and hook for its removal unless debugging.
4829 $debug ||
4830 {
4831 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4832 trap '{ (exit 1); exit 1; }' 1 2 13 15
4833 }
4834
4835 # Create a (secure) tmp directory for tmp files.
4836 : ${TMPDIR=/tmp}
4837 {
4838 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
4839 test -n "$tmp" && test -d "$tmp"
4840 } ||
4841 {
4842 tmp=$TMPDIR/cs$$-$RANDOM
4843 (umask 077 && mkdir $tmp)
4844 } ||
4845 {
4846 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4847 { (exit 1); exit 1; }
4848 }
4849
4850 _ACEOF
4851
4852 cat >>$CONFIG_STATUS <<_ACEOF
4853
4854 #
4855 # CONFIG_FILES section.
4856 #
4857
4858 # No need to generate the scripts if there are no CONFIG_FILES.
4859 # This happens for instance when ./config.status config.h
4860 if test -n "\$CONFIG_FILES"; then
4861 # Protect against being on the right side of a sed subst in config.status.
4862 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4863 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4864 s,@SHELL@,$SHELL,;t t
4865 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4866 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4867 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4868 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4869 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4870 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4871 s,@exec_prefix@,$exec_prefix,;t t
4872 s,@prefix@,$prefix,;t t
4873 s,@program_transform_name@,$program_transform_name,;t t
4874 s,@bindir@,$bindir,;t t
4875 s,@sbindir@,$sbindir,;t t
4876 s,@libexecdir@,$libexecdir,;t t
4877 s,@datadir@,$datadir,;t t
4878 s,@sysconfdir@,$sysconfdir,;t t
4879 s,@sharedstatedir@,$sharedstatedir,;t t
4880 s,@localstatedir@,$localstatedir,;t t
4881 s,@libdir@,$libdir,;t t
4882 s,@includedir@,$includedir,;t t
4883 s,@oldincludedir@,$oldincludedir,;t t
4884 s,@infodir@,$infodir,;t t
4885 s,@mandir@,$mandir,;t t
4886 s,@build_alias@,$build_alias,;t t
4887 s,@host_alias@,$host_alias,;t t
4888 s,@target_alias@,$target_alias,;t t
4889 s,@DEFS@,$DEFS,;t t
4890 s,@ECHO_C@,$ECHO_C,;t t
4891 s,@ECHO_N@,$ECHO_N,;t t
4892 s,@ECHO_T@,$ECHO_T,;t t
4893 s,@LIBS@,$LIBS,;t t
4894 /@MCONFIG@/r $MCONFIG
4895 s,@MCONFIG@,,;t t
4896 s,@SET_MAKE@,$SET_MAKE,;t t
4897 s,@LN_S@,$LN_S,;t t
4898 s,@CP@,$CP,;t t
4899 s,@MV@,$MV,;t t
4900 s,@RM@,$RM,;t t
4901 s,@AR@,$AR,;t t
4902 s,@ac_ct_AR@,$ac_ct_AR,;t t
4903 s,@RANLIB@,$RANLIB,;t t
4904 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
4905 s,@PATCH@,$PATCH,;t t
4906 s,@ac_ct_PATCH@,$ac_ct_PATCH,;t t
4907 s,@CC@,$CC,;t t
4908 s,@CFLAGS@,$CFLAGS,;t t
4909 s,@LDFLAGS@,$LDFLAGS,;t t
4910 s,@CPPFLAGS@,$CPPFLAGS,;t t
4911 s,@ac_ct_CC@,$ac_ct_CC,;t t
4912 s,@EXEEXT@,$EXEEXT,;t t
4913 s,@OBJEXT@,$OBJEXT,;t t
4914 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4915 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4916 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4917 s,@DUMPDEBUG@,$DUMPDEBUG,;t t
4918 s,@RESTOREDEBUG@,$RESTOREDEBUG,;t t
4919 s,@STATIC@,$STATIC,;t t
4920 s,@RMTDIR@,$RMTDIR,;t t
4921 s,@OPTDEFS@,$OPTDEFS,;t t
4922 s,@READLINE@,$READLINE,;t t
4923 s,@LD@,$LD,;t t
4924 s,@CCOPTS@,$CCOPTS,;t t
4925 s,@LDOPTS@,$LDOPTS,;t t
4926 s,@BINOWNER@,$BINOWNER,;t t
4927 s,@BINGRP@,$BINGRP,;t t
4928 s,@BINMODE@,$BINMODE,;t t
4929 s,@MANOWNER@,$MANOWNER,;t t
4930 s,@MANGRP@,$MANGRP,;t t
4931 s,@MANMODE@,$MANMODE,;t t
4932 s,@DUMPDATESPATH@,$DUMPDATESPATH,;t t
4933 s,@CPP@,$CPP,;t t
4934 s,@ZLIB@,$ZLIB,;t t
4935 s,@BZLIB@,$BZLIB,;t t
4936 s,@top_builddir@,$top_builddir,;t t
4937 CEOF
4938
4939 _ACEOF
4940
4941 cat >>$CONFIG_STATUS <<\_ACEOF
4942 # Split the substitutions into bite-sized pieces for seds with
4943 # small command number limits, like on Digital OSF/1 and HP-UX.
4944 ac_max_sed_lines=48
4945 ac_sed_frag=1 # Number of current file.
4946 ac_beg=1 # First line for current file.
4947 ac_end=$ac_max_sed_lines # Line after last line for current file.
4948 ac_more_lines=:
4949 ac_sed_cmds=
4950 while $ac_more_lines; do
4951 if test $ac_beg -gt 1; then
4952 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4953 else
4954 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4955 fi
4956 if test ! -s $tmp/subs.frag; then
4957 ac_more_lines=false
4958 else
4959 # The purpose of the label and of the branching condition is to
4960 # speed up the sed processing (if there are no `@' at all, there
4961 # is no need to browse any of the substitutions).
4962 # These are the two extra sed commands mentioned above.
4963 (echo ':t
4964 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4965 if test -z "$ac_sed_cmds"; then
4966 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4967 else
4968 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4969 fi
4970 ac_sed_frag=`expr $ac_sed_frag + 1`
4971 ac_beg=$ac_end
4972 ac_end=`expr $ac_end + $ac_max_sed_lines`
4973 fi
4974 done
4975 if test -z "$ac_sed_cmds"; then
4976 ac_sed_cmds=cat
4977 fi
4978 fi # test -n "$CONFIG_FILES"
4979
4980 _ACEOF
4981 cat >>$CONFIG_STATUS <<\_ACEOF
4982 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4983 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4984 case $ac_file in
4985 - | *:- | *:-:* ) # input from stdin
4986 cat >$tmp/stdin
4987 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4988 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4989 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4990 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4991 * ) ac_file_in=$ac_file.in ;;
4992 esac
4993
4994 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4995 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4996 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4997 X"$ac_file" : 'X\(//\)[^/]' \| \
4998 X"$ac_file" : 'X\(//\)$' \| \
4999 X"$ac_file" : 'X\(/\)' \| \
5000 . : '\(.\)' 2>/dev/null ||
5001 echo X"$ac_file" |
5002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5003 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5004 /^X\(\/\/\)$/{ s//\1/; q; }
5005 /^X\(\/\).*/{ s//\1/; q; }
5006 s/.*/./; q'`
5007 { case "$ac_dir" in
5008 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5009 *) as_incr_dir=.;;
5010 esac
5011 as_dummy="$ac_dir"
5012 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5013 case $as_mkdir_dir in
5014 # Skip DOS drivespec
5015 ?:) as_incr_dir=$as_mkdir_dir ;;
5016 *)
5017 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5018 test -d "$as_incr_dir" ||
5019 mkdir "$as_incr_dir" ||
5020 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
5021 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
5022 { (exit 1); exit 1; }; }
5023 ;;
5024 esac
5025 done; }
5026
5027 ac_builddir=.
5028
5029 if test "$ac_dir" != .; then
5030 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5031 # A "../" for each directory in $ac_dir_suffix.
5032 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5033 else
5034 ac_dir_suffix= ac_top_builddir=
5035 fi
5036
5037 case $srcdir in
5038 .) # No --srcdir option. We are building in place.
5039 ac_srcdir=.
5040 if test -z "$ac_top_builddir"; then
5041 ac_top_srcdir=.
5042 else
5043 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5044 fi ;;
5045 [\\/]* | ?:[\\/]* ) # Absolute path.
5046 ac_srcdir=$srcdir$ac_dir_suffix;
5047 ac_top_srcdir=$srcdir ;;
5048 *) # Relative path.
5049 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5050 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5051 esac
5052 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5053 # absolute.
5054 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5055 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
5056 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5057 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5058
5059
5060 case $INSTALL in
5061 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5062 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5063 esac
5064
5065 if test x"$ac_file" != x-; then
5066 { echo "$as_me:$LINENO: creating $ac_file" >&5
5067 echo "$as_me: creating $ac_file" >&6;}
5068 rm -f "$ac_file"
5069 fi
5070 # Let's still pretend it is `configure' which instantiates (i.e., don't
5071 # use $as_me), people would be surprised to read:
5072 # /* config.h. Generated by config.status. */
5073 if test x"$ac_file" = x-; then
5074 configure_input=
5075 else
5076 configure_input="$ac_file. "
5077 fi
5078 configure_input=$configure_input"Generated from `echo $ac_file_in |
5079 sed 's,.*/,,'` by configure."
5080
5081 # First look for the input files in the build tree, otherwise in the
5082 # src tree.
5083 ac_file_inputs=`IFS=:
5084 for f in $ac_file_in; do
5085 case $f in
5086 -) echo $tmp/stdin ;;
5087 [\\/$]*)
5088 # Absolute (can't be DOS-style, as IFS=:)
5089 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5090 echo "$as_me: error: cannot find input file: $f" >&2;}
5091 { (exit 1); exit 1; }; }
5092 echo $f;;
5093 *) # Relative
5094 if test -f "$f"; then
5095 # Build tree
5096 echo $f
5097 elif test -f "$srcdir/$f"; then
5098 # Source tree
5099 echo $srcdir/$f
5100 else
5101 # /dev/null tree
5102 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5103 echo "$as_me: error: cannot find input file: $f" >&2;}
5104 { (exit 1); exit 1; }; }
5105 fi;;
5106 esac
5107 done` || { (exit 1); exit 1; }
5108 _ACEOF
5109 cat >>$CONFIG_STATUS <<_ACEOF
5110 sed "$ac_vpsub
5111 $extrasub
5112 _ACEOF
5113 cat >>$CONFIG_STATUS <<\_ACEOF
5114 :t
5115 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5116 s,@configure_input@,$configure_input,;t t
5117 s,@srcdir@,$ac_srcdir,;t t
5118 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5119 s,@top_srcdir@,$ac_top_srcdir,;t t
5120 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5121 s,@builddir@,$ac_builddir,;t t
5122 s,@abs_builddir@,$ac_abs_builddir,;t t
5123 s,@top_builddir@,$ac_top_builddir,;t t
5124 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5125 s,@INSTALL@,$ac_INSTALL,;t t
5126 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5127 rm -f $tmp/stdin
5128 if test x"$ac_file" != x-; then
5129 mv $tmp/out $ac_file
5130 else
5131 cat $tmp/out
5132 rm -f $tmp/out
5133 fi
5134
5135 done
5136 _ACEOF
5137 cat >>$CONFIG_STATUS <<\_ACEOF
5138
5139 #
5140 # CONFIG_HEADER section.
5141 #
5142
5143 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5144 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5145 #
5146 # ac_d sets the value in "#define NAME VALUE" lines.
5147 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5148 ac_dB='[ ].*$,\1#\2'
5149 ac_dC=' '
5150 ac_dD=',;t'
5151 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5152 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5153 ac_uB='$,\1#\2define\3'
5154 ac_uC=' '
5155 ac_uD=',;t'
5156
5157 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5158 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5159 case $ac_file in
5160 - | *:- | *:-:* ) # input from stdin
5161 cat >$tmp/stdin
5162 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5163 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5164 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5165 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5166 * ) ac_file_in=$ac_file.in ;;
5167 esac
5168
5169 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5170 echo "$as_me: creating $ac_file" >&6;}
5171
5172 # First look for the input files in the build tree, otherwise in the
5173 # src tree.
5174 ac_file_inputs=`IFS=:
5175 for f in $ac_file_in; do
5176 case $f in
5177 -) echo $tmp/stdin ;;
5178 [\\/$]*)
5179 # Absolute (can't be DOS-style, as IFS=:)
5180 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5181 echo "$as_me: error: cannot find input file: $f" >&2;}
5182 { (exit 1); exit 1; }; }
5183 echo $f;;
5184 *) # Relative
5185 if test -f "$f"; then
5186 # Build tree
5187 echo $f
5188 elif test -f "$srcdir/$f"; then
5189 # Source tree
5190 echo $srcdir/$f
5191 else
5192 # /dev/null tree
5193 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5194 echo "$as_me: error: cannot find input file: $f" >&2;}
5195 { (exit 1); exit 1; }; }
5196 fi;;
5197 esac
5198 done` || { (exit 1); exit 1; }
5199 # Remove the trailing spaces.
5200 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5201
5202 _ACEOF
5203
5204 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5205 # `conftest.undefs', that substitutes the proper values into
5206 # config.h.in to produce config.h. The first handles `#define'
5207 # templates, and the second `#undef' templates.
5208 # And first: Protect against being on the right side of a sed subst in
5209 # config.status. Protect against being in an unquoted here document
5210 # in config.status.
5211 rm -f conftest.defines conftest.undefs
5212 # Using a here document instead of a string reduces the quoting nightmare.
5213 # Putting comments in sed scripts is not portable.
5214 #
5215 # `end' is used to avoid that the second main sed command (meant for
5216 # 0-ary CPP macros) applies to n-ary macro definitions.
5217 # See the Autoconf documentation for `clear'.
5218 cat >confdef2sed.sed <<\_ACEOF
5219 s/[\\&,]/\\&/g
5220 s,[\\$`],\\&,g
5221 t clear
5222 : clear
5223 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5224 t end
5225 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5226 : end
5227 _ACEOF
5228 # If some macros were called several times there might be several times
5229 # the same #defines, which is useless. Nevertheless, we may not want to
5230 # sort them, since we want the *last* AC-DEFINE to be honored.
5231 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5232 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5233 rm -f confdef2sed.sed
5234
5235 # This sed command replaces #undef with comments. This is necessary, for
5236 # example, in the case of _POSIX_SOURCE, which is predefined and required
5237 # on some systems where configure will not decide to define it.
5238 cat >>conftest.undefs <<\_ACEOF
5239 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5240 _ACEOF
5241
5242 # Break up conftest.defines because some shells have a limit on the size
5243 # of here documents, and old seds have small limits too (100 cmds).
5244 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5245 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5246 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5247 echo ' :' >>$CONFIG_STATUS
5248 rm -f conftest.tail
5249 while grep . conftest.defines >/dev/null
5250 do
5251 # Write a limited-size here document to $tmp/defines.sed.
5252 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5253 # Speed up: don't consider the non `#define' lines.
5254 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5255 # Work around the forget-to-reset-the-flag bug.
5256 echo 't clr' >>$CONFIG_STATUS
5257 echo ': clr' >>$CONFIG_STATUS
5258 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5259 echo 'CEOF
5260 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5261 rm -f $tmp/in
5262 mv $tmp/out $tmp/in
5263 ' >>$CONFIG_STATUS
5264 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5265 rm -f conftest.defines
5266 mv conftest.tail conftest.defines
5267 done
5268 rm -f conftest.defines
5269 echo ' fi # egrep' >>$CONFIG_STATUS
5270 echo >>$CONFIG_STATUS
5271
5272 # Break up conftest.undefs because some shells have a limit on the size
5273 # of here documents, and old seds have small limits too (100 cmds).
5274 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5275 rm -f conftest.tail
5276 while grep . conftest.undefs >/dev/null
5277 do
5278 # Write a limited-size here document to $tmp/undefs.sed.
5279 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5280 # Speed up: don't consider the non `#undef'
5281 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5282 # Work around the forget-to-reset-the-flag bug.
5283 echo 't clr' >>$CONFIG_STATUS
5284 echo ': clr' >>$CONFIG_STATUS
5285 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5286 echo 'CEOF
5287 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5288 rm -f $tmp/in
5289 mv $tmp/out $tmp/in
5290 ' >>$CONFIG_STATUS
5291 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5292 rm -f conftest.undefs
5293 mv conftest.tail conftest.undefs
5294 done
5295 rm -f conftest.undefs
5296
5297 cat >>$CONFIG_STATUS <<\_ACEOF
5298 # Let's still pretend it is `configure' which instantiates (i.e., don't
5299 # use $as_me), people would be surprised to read:
5300 # /* config.h. Generated by config.status. */
5301 if test x"$ac_file" = x-; then
5302 echo "/* Generated by configure. */" >$tmp/config.h
5303 else
5304 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5305 fi
5306 cat $tmp/in >>$tmp/config.h
5307 rm -f $tmp/in
5308 if test x"$ac_file" != x-; then
5309 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
5310 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5311 echo "$as_me: $ac_file is unchanged" >&6;}
5312 else
5313 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5314 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5315 X"$ac_file" : 'X\(//\)[^/]' \| \
5316 X"$ac_file" : 'X\(//\)$' \| \
5317 X"$ac_file" : 'X\(/\)' \| \
5318 . : '\(.\)' 2>/dev/null ||
5319 echo X"$ac_file" |
5320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5321 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5322 /^X\(\/\/\)$/{ s//\1/; q; }
5323 /^X\(\/\).*/{ s//\1/; q; }
5324 s/.*/./; q'`
5325 { case "$ac_dir" in
5326 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5327 *) as_incr_dir=.;;
5328 esac
5329 as_dummy="$ac_dir"
5330 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5331 case $as_mkdir_dir in
5332 # Skip DOS drivespec
5333 ?:) as_incr_dir=$as_mkdir_dir ;;
5334 *)
5335 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5336 test -d "$as_incr_dir" ||
5337 mkdir "$as_incr_dir" ||
5338 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
5339 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
5340 { (exit 1); exit 1; }; }
5341 ;;
5342 esac
5343 done; }
5344
5345 rm -f $ac_file
5346 mv $tmp/config.h $ac_file
5347 fi
5348 else
5349 cat $tmp/config.h
5350 rm -f $tmp/config.h
5351 fi
5352 done
5353 _ACEOF
5354
5355 cat >>$CONFIG_STATUS <<\_ACEOF
5356
5357 { (exit 0); exit 0; }
5358 _ACEOF
5359 chmod +x $CONFIG_STATUS
5360 ac_clean_files=$ac_clean_files_save
5361
5362
5363 # configure is writing to config.log, and then calls config.status.
5364 # config.status does its own redirection, appending to config.log.
5365 # Unfortunately, on DOS this fails, as config.log is still kept open
5366 # by configure, so config.status won't be able to write to it; its
5367 # output is simply discarded. So we exec the FD to /dev/null,
5368 # effectively closing config.log, so it can be properly (re)opened and
5369 # appended to by config.status. When coming back to configure, we
5370 # need to make the FD available again.
5371 if test "$no_create" != yes; then
5372 ac_cs_success=:
5373 exec 5>/dev/null
5374 $SHELL $CONFIG_STATUS || ac_cs_success=false
5375 exec 5>>config.log
5376 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5377 # would make configure fail if this is the last instruction.
5378 $ac_cs_success || { (exit 1); exit 1; }
5379 fi
5380