2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.52f.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
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.
10 if expr a : '\(a\)' >/dev/null 2>&1; then
16 ## --------------------- ##
17 ## M4sh Initialization. ##
18 ## --------------------- ##
20 # Be Bourne compatible
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29 # Support unset when possible.
30 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
36 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
37 { $as_unset LANG || test "${LANG+set}" != set; } ||
38 { LANG=C; export LANG; }
39 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
40 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
41 { LC_ALL=C; export LC_ALL; }
42 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
43 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
44 { LC_TIME=C; export LC_TIME; }
45 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
46 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
47 { LC_CTYPE=C; export LC_CTYPE; }
48 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
49 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
50 { LANGUAGE=C; export LANGUAGE; }
51 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
52 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
53 { LC_COLLATE=C; export LC_COLLATE; }
54 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
55 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
56 { LC_NUMERIC=C; export LC_NUMERIC; }
57 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
58 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
59 { LC_MESSAGES=C; export LC_MESSAGES; }
61 # Name of the executable.
62 as_me=`(basename "$0") 2>/dev/null ||
63 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
64 X"$0" : 'X\(//\)$' \| \
65 X"$0" : 'X\(/\)$' \| \
66 . : '\(.\)' 2>/dev/null ||
68 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
69 /^X\/\(\/\/\)$/{ s//\1/; q; }
70 /^X\/\(\/\).*/{ s//\1/; q; }
73 # PATH needs CR, and LINENO needs CR and PATH.
74 # Avoid depending upon Character Ranges.
75 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
76 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
77 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
78 as_cr_digits='0123456789'
79 as_cr_alnum=$as_cr_Letters$as_cr_digits
81 # The user is always right.
82 if test "${PATH_SEPARATOR+set}" != set; then
83 echo "#! $SHELL" >conftest.sh
84 echo "exit 0" >>conftest.sh
86 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
96 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
97 test "x$as_lineno_1" != "x$as_lineno_2" &&
98 test "x$as_lineno_3" = "x$as_lineno_2" || {
99 # Find who we are. Look in the path if we contain no path at all
102 *[\\/]* ) as_myself=$0 ;;
103 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 test -z "$as_dir" && as_dir=.
108 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
113 # We did not find ourselves, most probably we were run as `sh COMMAND'
114 # in which case we are not to be found in the path.
115 if test "x$as_myself" = x; then
118 if test ! -f "$as_myself"; then
119 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
120 { (exit 1); exit 1; }; }
122 case $CONFIG_SHELL in
124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
125 for as_dir in /bin:/usr/bin:$PATH
128 test -z "$as_dir" && as_dir=.
129 for as_base in sh bash ksh sh5; do
132 if ("$as_dir/$as_base" -c '
135 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
136 test "x$as_lineno_1" != "x$as_lineno_2" &&
137 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
138 CONFIG_SHELL=$as_dir/$as_base
140 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
148 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
149 # uniformly replaced by the line number. The first 'sed' inserts a
150 # line-number line before each line; the second 'sed' does the real
151 # work. The second script uses 'N' to pair each line-number line
152 # with the numbered line, and appends trailing '-' during
153 # substitution so that $LINENO is not a special case at line end.
154 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
155 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
156 sed '=' <$as_myself |
161 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
164 s,^['$as_cr_digits']*\n,,
166 chmod +x $as_me.lineno ||
167 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
168 { (exit 1); exit 1; }; }
170 # Don't try to exec as it changes $[0], causing all sort of problems
171 # (the dirname of $[0] is not the place where we might find the
172 # original and so on. Autoconf is especially sensible to this).
174 # Exit status is that of the last command.
178 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
179 *c*,-n*) ECHO_N= ECHO_C='
181 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
182 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
185 if expr a : '\(a\)' >/dev/null 2>&1; then
191 rm -f conf$$ conf$$.exe conf$$.file
193 if ln -s conf$$.file conf$$ 2>/dev/null; then
194 # We could just check for DJGPP; but this test a) works b) is more generic
195 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
196 if test -f conf$$.exe; then
197 # Don't use ln at all; we don't have any links
202 elif ln conf$$.file conf$$ 2>/dev/null; then
207 rm -f conf$$ conf$$.exe conf$$.file
209 as_executable_p="test -f"
211 # Sed expression to map a string onto a valid CPP name.
212 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
214 # Sed expression to map a string onto a valid variable name.
215 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
218 # We need space, tab and new line, in precisely that order.
224 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
227 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
228 # so uname gets run too.
229 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
236 ac_default_prefix=/usr/local
241 SHELL=${CONFIG_SHELL-/bin/sh}
243 # Maximum number of lines to put in a shell here document.
244 # This variable seems obsolete. It should probably be removed, and
245 # only ac_max_sed_lines should be used.
246 : ${ac_max_here_lines=38}
248 ac_unique_file="gzip.c"
249 # Factoring default headers for most tests.
250 ac_includes_default="\
253 # include <sys/types.h>
256 # include <sys/stat.h>
267 # if !STDC_HEADERS && HAVE_MEMORY_H
273 # include <strings.h>
276 # include <inttypes.h>
286 # Initialize some variables set by options.
288 ac_init_version=false
289 # The variables have the same names as the options, with
290 # dashes changed to underlines.
298 program_transform_name=s,x,x,
306 # Installation directory options.
307 # These are left unexpanded so users can "make install exec_prefix=/foo"
308 # and all the variables that are supposed to be based on exec_prefix
309 # by default will actually change.
310 # Use braces instead of parens because sh, perl, etc. also accept them.
311 bindir='${exec_prefix}/bin'
312 sbindir='${exec_prefix}/sbin'
313 libexecdir='${exec_prefix}/libexec'
314 datadir='${prefix}/share'
315 sysconfdir='${prefix}/etc'
316 sharedstatedir='${prefix}/com'
317 localstatedir='${prefix}/var'
318 libdir='${exec_prefix}/lib'
319 includedir='${prefix}/include'
320 oldincludedir='/usr/include'
321 infodir='${prefix}/info'
322 mandir='${prefix}/man'
324 # Identity of this package.
334 # If the previous option needs an argument, assign it.
335 if test -n "$ac_prev"; then
336 eval "$ac_prev=\$ac_option"
341 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
343 # Accept the important Cygnus configure options, so we can diagnose typos.
347 -bindir | --bindir | --bindi | --bind | --bin | --bi)
349 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
352 -build | --build | --buil | --bui | --bu)
353 ac_prev=build_alias ;;
354 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
355 build_alias=$ac_optarg ;;
357 -cache-file | --cache-file | --cache-fil | --cache-fi \
358 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
359 ac_prev=cache_file ;;
360 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
361 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
362 cache_file=$ac_optarg ;;
365 cache_file=config.cache ;;
367 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
369 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
371 datadir=$ac_optarg ;;
373 -disable-* | --disable-*)
374 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
375 # Reject names that are not valid shell variable names.
376 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
377 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
378 { (exit 1); exit 1; }; }
379 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
380 eval "enable_$ac_feature=no" ;;
382 -enable-* | --enable-*)
383 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
384 # Reject names that are not valid shell variable names.
385 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
386 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
387 { (exit 1); exit 1; }; }
388 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
390 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
393 eval "enable_$ac_feature='$ac_optarg'" ;;
395 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
396 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
397 | --exec | --exe | --ex)
398 ac_prev=exec_prefix ;;
399 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
400 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
401 | --exec=* | --exe=* | --ex=*)
402 exec_prefix=$ac_optarg ;;
404 -gas | --gas | --ga | --g)
405 # Obsolete; use --with-gas.
408 -help | --help | --hel | --he | -h)
410 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
411 ac_init_help=recursive ;;
412 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
413 ac_init_help=short ;;
415 -host | --host | --hos | --ho)
416 ac_prev=host_alias ;;
417 -host=* | --host=* | --hos=* | --ho=*)
418 host_alias=$ac_optarg ;;
420 -includedir | --includedir | --includedi | --included | --include \
421 | --includ | --inclu | --incl | --inc)
422 ac_prev=includedir ;;
423 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
424 | --includ=* | --inclu=* | --incl=* | --inc=*)
425 includedir=$ac_optarg ;;
427 -infodir | --infodir | --infodi | --infod | --info | --inf)
429 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
430 infodir=$ac_optarg ;;
432 -libdir | --libdir | --libdi | --libd)
434 -libdir=* | --libdir=* | --libdi=* | --libd=*)
437 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
438 | --libexe | --libex | --libe)
439 ac_prev=libexecdir ;;
440 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
441 | --libexe=* | --libex=* | --libe=*)
442 libexecdir=$ac_optarg ;;
444 -localstatedir | --localstatedir | --localstatedi | --localstated \
445 | --localstate | --localstat | --localsta | --localst \
446 | --locals | --local | --loca | --loc | --lo)
447 ac_prev=localstatedir ;;
448 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
449 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
450 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
451 localstatedir=$ac_optarg ;;
453 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
455 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
459 # Obsolete; use --without-fp.
462 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
466 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
467 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
470 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
471 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
472 | --oldin | --oldi | --old | --ol | --o)
473 ac_prev=oldincludedir ;;
474 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
475 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
476 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
477 oldincludedir=$ac_optarg ;;
479 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
481 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
484 -program-prefix | --program-prefix | --program-prefi | --program-pref \
485 | --program-pre | --program-pr | --program-p)
486 ac_prev=program_prefix ;;
487 -program-prefix=* | --program-prefix=* | --program-prefi=* \
488 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
489 program_prefix=$ac_optarg ;;
491 -program-suffix | --program-suffix | --program-suffi | --program-suff \
492 | --program-suf | --program-su | --program-s)
493 ac_prev=program_suffix ;;
494 -program-suffix=* | --program-suffix=* | --program-suffi=* \
495 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
496 program_suffix=$ac_optarg ;;
498 -program-transform-name | --program-transform-name \
499 | --program-transform-nam | --program-transform-na \
500 | --program-transform-n | --program-transform- \
501 | --program-transform | --program-transfor \
502 | --program-transfo | --program-transf \
503 | --program-trans | --program-tran \
504 | --progr-tra | --program-tr | --program-t)
505 ac_prev=program_transform_name ;;
506 -program-transform-name=* | --program-transform-name=* \
507 | --program-transform-nam=* | --program-transform-na=* \
508 | --program-transform-n=* | --program-transform-=* \
509 | --program-transform=* | --program-transfor=* \
510 | --program-transfo=* | --program-transf=* \
511 | --program-trans=* | --program-tran=* \
512 | --progr-tra=* | --program-tr=* | --program-t=*)
513 program_transform_name=$ac_optarg ;;
515 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
516 | -silent | --silent | --silen | --sile | --sil)
519 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
521 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
523 sbindir=$ac_optarg ;;
525 -sharedstatedir | --sharedstatedir | --sharedstatedi \
526 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
527 | --sharedst | --shareds | --shared | --share | --shar \
529 ac_prev=sharedstatedir ;;
530 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
531 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
532 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
534 sharedstatedir=$ac_optarg ;;
536 -site | --site | --sit)
538 -site=* | --site=* | --sit=*)
541 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
543 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
546 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
547 | --syscon | --sysco | --sysc | --sys | --sy)
548 ac_prev=sysconfdir ;;
549 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
550 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
551 sysconfdir=$ac_optarg ;;
553 -target | --target | --targe | --targ | --tar | --ta | --t)
554 ac_prev=target_alias ;;
555 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
556 target_alias=$ac_optarg ;;
558 -v | -verbose | --verbose | --verbos | --verbo | --verb)
561 -version | --version | --versio | --versi | --vers | -V)
565 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
566 # Reject names that are not valid shell variable names.
567 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
568 { echo "$as_me: error: invalid package name: $ac_package" >&2
569 { (exit 1); exit 1; }; }
570 ac_package=`echo $ac_package| sed 's/-/_/g'`
572 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
575 eval "with_$ac_package='$ac_optarg'" ;;
577 -without-* | --without-*)
578 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
579 # Reject names that are not valid shell variable names.
580 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
581 { echo "$as_me: error: invalid package name: $ac_package" >&2
582 { (exit 1); exit 1; }; }
583 ac_package=`echo $ac_package | sed 's/-/_/g'`
584 eval "with_$ac_package=no" ;;
587 # Obsolete; use --with-x.
590 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
591 | --x-incl | --x-inc | --x-in | --x-i)
592 ac_prev=x_includes ;;
593 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
594 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
595 x_includes=$ac_optarg ;;
597 -x-libraries | --x-libraries | --x-librarie | --x-librari \
598 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
599 ac_prev=x_libraries ;;
600 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
601 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
602 x_libraries=$ac_optarg ;;
604 -*) { echo "$as_me: error: unrecognized option: $ac_option
605 Try \`$0 --help' for more information." >&2
606 { (exit 1); exit 1; }; }
610 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
611 # Reject names that are not valid shell variable names.
612 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
613 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
614 { (exit 1); exit 1; }; }
615 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
616 eval "$ac_envvar='$ac_optarg'"
620 # FIXME: should be removed in autoconf 3.0.
621 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
622 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
623 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
624 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
630 if test -n "$ac_prev"; then
631 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
632 { echo "$as_me: error: missing argument to $ac_option" >&2
633 { (exit 1); exit 1; }; }
636 # Be sure to have absolute paths.
637 for ac_var in exec_prefix prefix
639 eval ac_val=$`echo $ac_var`
641 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
642 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
643 { (exit 1); exit 1; }; };;
647 # Be sure to have absolute paths.
648 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
649 localstatedir libdir includedir oldincludedir infodir mandir
651 eval ac_val=$`echo $ac_var`
653 [\\/$]* | ?:[\\/]* ) ;;
654 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
655 { (exit 1); exit 1; }; };;
659 # There might be people who depend on the old broken behavior: `$host'
660 # used to hold the argument of --host etc.
665 # FIXME: should be removed in autoconf 3.0.
666 if test "x$host_alias" != x; then
667 if test "x$build_alias" = x; then
668 cross_compiling=maybe
669 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
670 If a cross compiler is detected then cross compile mode will be used." >&2
671 elif test "x$build_alias" != "x$host_alias"; then
677 test -n "$host_alias" && ac_tool_prefix=$host_alias-
679 test "$silent" = yes && exec 6>/dev/null
681 # Find the source files, if location was not specified.
682 if test -z "$srcdir"; then
683 ac_srcdir_defaulted=yes
684 # Try the directory containing this script, then its parent.
685 ac_confdir=`(dirname "$0") 2>/dev/null ||
686 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
687 X"$0" : 'X\(//\)[^/]' \| \
688 X"$0" : 'X\(//\)$' \| \
689 X"$0" : 'X\(/\)' \| \
690 . : '\(.\)' 2>/dev/null ||
692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
693 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
694 /^X\(\/\/\)$/{ s//\1/; q; }
695 /^X\(\/\).*/{ s//\1/; q; }
698 if test ! -r $srcdir/$ac_unique_file; then
702 ac_srcdir_defaulted=no
704 if test ! -r $srcdir/$ac_unique_file; then
705 if test "$ac_srcdir_defaulted" = yes; then
706 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
707 { (exit 1); exit 1; }; }
709 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
710 { (exit 1); exit 1; }; }
713 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
714 ac_env_build_alias_set=${build_alias+set}
715 ac_env_build_alias_value=$build_alias
716 ac_cv_env_build_alias_set=${build_alias+set}
717 ac_cv_env_build_alias_value=$build_alias
718 ac_env_host_alias_set=${host_alias+set}
719 ac_env_host_alias_value=$host_alias
720 ac_cv_env_host_alias_set=${host_alias+set}
721 ac_cv_env_host_alias_value=$host_alias
722 ac_env_target_alias_set=${target_alias+set}
723 ac_env_target_alias_value=$target_alias
724 ac_cv_env_target_alias_set=${target_alias+set}
725 ac_cv_env_target_alias_value=$target_alias
726 ac_env_CC_set=${CC+set}
728 ac_cv_env_CC_set=${CC+set}
729 ac_cv_env_CC_value=$CC
730 ac_env_CFLAGS_set=${CFLAGS+set}
731 ac_env_CFLAGS_value=$CFLAGS
732 ac_cv_env_CFLAGS_set=${CFLAGS+set}
733 ac_cv_env_CFLAGS_value=$CFLAGS
734 ac_env_LDFLAGS_set=${LDFLAGS+set}
735 ac_env_LDFLAGS_value=$LDFLAGS
736 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
737 ac_cv_env_LDFLAGS_value=$LDFLAGS
738 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
739 ac_env_CPPFLAGS_value=$CPPFLAGS
740 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
741 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
742 ac_env_CPP_set=${CPP+set}
743 ac_env_CPP_value=$CPP
744 ac_cv_env_CPP_set=${CPP+set}
745 ac_cv_env_CPP_value=$CPP
748 # Report the --help message.
750 if test "$ac_init_help" = "long"; then
751 # Omit some internal or obsolete options to make the list less imposing.
752 # This message is too long to be a string in the A/UX 3.1 sh.
754 \`configure' configures this package to adapt to many kinds of systems.
756 Usage: $0 [OPTION]... [VAR=VALUE]...
758 To assign environment variables (e.g., CC, CFLAGS...), specify them as
759 VAR=VALUE. See below for descriptions of some of the useful variables.
761 Defaults for the options are specified in brackets.
764 -h, --help display this help and exit
765 --help=short display options specific to this package
766 --help=recursive display the short help of all the included packages
767 -V, --version display version information and exit
768 -q, --quiet, --silent do not print \`checking...' messages
769 --cache-file=FILE cache test results in FILE [disabled]
770 -C, --config-cache alias for \`--cache-file=config.cache'
771 -n, --no-create do not create output files
772 --srcdir=DIR find the sources in DIR [configure dir or \`..']
777 Installation directories:
778 --prefix=PREFIX install architecture-independent files in PREFIX
780 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
783 By default, \`make install' will install all the files in
784 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
785 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
786 for instance \`--prefix=\$HOME'.
788 For better control, use the options below.
790 Fine tuning of the installation directories:
791 --bindir=DIR user executables [EPREFIX/bin]
792 --sbindir=DIR system admin executables [EPREFIX/sbin]
793 --libexecdir=DIR program executables [EPREFIX/libexec]
794 --datadir=DIR read-only architecture-independent data [PREFIX/share]
795 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
796 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
797 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
798 --libdir=DIR object code libraries [EPREFIX/lib]
799 --includedir=DIR C header files [PREFIX/include]
800 --oldincludedir=DIR C header files for non-gcc [/usr/include]
801 --infodir=DIR info documentation [PREFIX/info]
802 --mandir=DIR man documentation [PREFIX/man]
808 --program-prefix=PREFIX prepend PREFIX to installed program names
809 --program-suffix=SUFFIX append SUFFIX to installed program names
810 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
814 if test -n "$ac_init_help"; then
819 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
820 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
821 --disable-dependency-tracking Speeds up one-time builds
822 --enable-dependency-tracking Do not reject slow dependency extractors
823 --disable-largefile omit support for large files
825 Some influential environment variables:
826 CC C compiler command
827 CFLAGS C compiler flags
828 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
829 nonstandard directory <lib dir>
830 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
831 headers in a nonstandard directory <include dir>
834 Use these variables to override the choices made by `configure' or to help
835 it to find libraries and programs with nonstandard names/locations.
840 if test "$ac_init_help" = "recursive"; then
841 # If there are subdirs, report their specific --help.
843 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
844 test -d $ac_dir || continue
847 if test "$ac_dir" != .; then
848 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
849 # A "../" for each directory in $ac_dir_suffix.
850 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
852 ac_dir_suffix= ac_top_builddir=
856 .) # No --srcdir option. We are building in place.
858 if test -z "$ac_top_builddir"; then
861 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
863 [\\/]* | ?:[\\/]* ) # Absolute path.
864 ac_srcdir=$srcdir$ac_dir_suffix;
865 ac_top_srcdir=$srcdir ;;
867 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
868 ac_top_srcdir=$ac_top_builddir$srcdir ;;
870 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
872 ac_buildpath=`cd "$ac_dir" && cd $ac_builddir && pwd`
873 ac_top_buildpath=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
874 ac_srcpath=`cd "$ac_dir" && cd $ac_srcdir && pwd`
875 ac_top_srcpath=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
878 # Check for guested configure; otherwise get Cygnus style configure.
879 if test -f $ac_srcdir/configure.gnu; then
881 $SHELL $ac_srcdir/configure.gnu --help=recursive
882 elif test -f $ac_srcdir/configure; then
884 $SHELL $ac_srcdir/configure --help=recursive
885 elif test -f $ac_srcdir/configure.ac ||
886 test -f $ac_srcdir/configure.in; then
890 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
896 test -n "$ac_init_help" && exit 0
897 if $ac_init_version; then
900 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
901 Free Software Foundation, Inc.
902 This configure script is free software; the Free Software Foundation
903 gives unlimited permission to copy, distribute and modify it.
909 This file contains any messages produced by compilers while
910 running configure, to aid debugging if configure makes a mistake.
912 It was created by $as_me, which was
913 generated by GNU Autoconf 2.52f. Invocation command line was
924 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
925 uname -m = `(uname -m) 2>/dev/null || echo unknown`
926 uname -r = `(uname -r) 2>/dev/null || echo unknown`
927 uname -s = `(uname -s) 2>/dev/null || echo unknown`
928 uname -v = `(uname -v) 2>/dev/null || echo unknown`
930 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
931 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
933 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
934 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
935 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
936 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
937 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
938 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
939 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
947 test -z "$as_dir" && as_dir=.
961 # Keep a trace of the command line.
962 # Strip out --no-create and --no-recursion so they do not pile up.
963 # Also quote any args containing shell meta-characters.
969 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
970 | --no-cr | --no-c) ;;
971 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
972 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
973 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
974 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
975 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
977 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
980 # Get rid of the leading space.
983 # When interrupted or exit'd, cleanup temporary files, and complete
984 # config.log. We remove comments because anyway the quotes in there
985 # would cause problems or look ugly.
986 # WARNING: Be sure not to use single quotes in there, as some shells,
987 # such as our DU 5.0 friend, will then `close' the trap.
989 # Save into config.log some information that might help in debugging.
993 ## ---------------- ##
994 ## Cache variables. ##
995 ## ---------------- ##
998 # The following way of writing the cache mishandles newlines in values,
1001 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1004 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1005 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1009 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1014 if test -s confdefs.h; then
1021 sed "/^$/d" confdefs.h
1024 test "$ac_signal" != 0 &&
1025 echo "$as_me: caught signal $ac_signal"
1026 echo "$as_me: exit $exit_status"
1028 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1031 for ac_signal in 1 2 13 15; do
1032 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1036 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1037 rm -rf conftest* confdefs.h
1038 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1041 # Let the site file select an alternate cache file if it wants to.
1042 # Prefer explicitly selected file to automatically selected ones.
1043 if test -z "$CONFIG_SITE"; then
1044 if test "x$prefix" != xNONE; then
1045 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1047 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1050 for ac_site_file in $CONFIG_SITE; do
1051 if test -r "$ac_site_file"; then
1052 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1053 echo "$as_me: loading site script $ac_site_file" >&6;}
1054 sed 's/^/| /' "$ac_site_file" >&5
1059 if test -r "$cache_file"; then
1060 # Some versions of bash will fail to source /dev/null (special
1061 # files actually), so we avoid doing that.
1062 if test -f "$cache_file"; then
1063 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1064 echo "$as_me: loading cache $cache_file" >&6;}
1066 [\\/]* | ?:[\\/]* ) . $cache_file;;
1067 *) . ./$cache_file;;
1071 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1072 echo "$as_me: creating cache $cache_file" >&6;}
1076 # Check that the precious variables saved in the cache have kept the same
1078 ac_cache_corrupted=false
1079 for ac_var in `(set) 2>&1 |
1080 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1081 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1082 eval ac_new_set=\$ac_env_${ac_var}_set
1083 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1084 eval ac_new_val="\$ac_env_${ac_var}_value"
1085 case $ac_old_set,$ac_new_set in
1087 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1088 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1089 ac_cache_corrupted=: ;;
1091 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1092 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1093 ac_cache_corrupted=: ;;
1096 if test "x$ac_old_val" != "x$ac_new_val"; then
1097 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1098 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1099 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1100 echo "$as_me: former value: $ac_old_val" >&2;}
1101 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1102 echo "$as_me: current value: $ac_new_val" >&2;}
1103 ac_cache_corrupted=:
1106 # Pass precious variables to config.status. It doesn't matter if
1107 # we pass some twice (in addition to the command line arguments).
1108 if test "$ac_new_set" = set; then
1110 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1111 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1112 ac_configure_args="$ac_configure_args '$ac_arg'"
1114 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1119 if $ac_cache_corrupted; then
1120 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1121 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1122 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1123 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1124 { (exit 1); exit 1; }; }
1128 ac_cpp='$CPP $CPPFLAGS'
1129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1134 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1135 if test -f $ac_dir/install-sh; then
1137 ac_install_sh="$ac_aux_dir/install-sh -c"
1139 elif test -f $ac_dir/install.sh; then
1141 ac_install_sh="$ac_aux_dir/install.sh -c"
1143 elif test -f $ac_dir/shtool; then
1145 ac_install_sh="$ac_aux_dir/shtool install -c"
1149 if test -z "$ac_aux_dir"; then
1150 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1151 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1152 { (exit 1); exit 1; }; }
1154 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1155 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1156 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1158 # Find a good install program. We prefer a C program (faster),
1159 # so one script is as good as another. But avoid the broken or
1160 # incompatible versions:
1161 # SysV /etc/install, /usr/sbin/install
1162 # SunOS /usr/etc/install
1163 # IRIX /sbin/install
1165 # AmigaOS /C/install, which installs bootblocks on floppy discs
1166 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1167 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1168 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1169 # ./install, which can be erroneously created by make from ./install.sh.
1170 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
1171 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1172 if test -z "$INSTALL"; then
1173 if test "${ac_cv_path_install+set}" = set; then
1174 echo $ECHO_N "(cached) $ECHO_C" >&6
1176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1180 test -z "$as_dir" && as_dir=.
1181 # Account for people who put trailing slashes in PATH elements.
1183 ./ | .// | /cC/* | \
1184 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1187 # OSF1 and SCO ODT 3.0 have their own names for install.
1188 # Don't use installbsd from OSF since it installs stuff as root
1190 for ac_prog in ginstall scoinst install; do
1191 for ac_exec_ext in '' $ac_executable_extensions; do
1192 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1193 if test $ac_prog = install &&
1194 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1195 # AIX install. It has an incompatible calling convention.
1197 elif test $ac_prog = install &&
1198 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1199 # program-specific install script used by HP pwplus--don't use.
1202 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1213 if test "${ac_cv_path_install+set}" = set; then
1214 INSTALL=$ac_cv_path_install
1216 # As a last resort, use the slow shell script. We don't cache a
1217 # path for INSTALL within a source directory, because that will
1218 # break other packages using the cache if that directory is
1219 # removed, or if the path is relative.
1220 INSTALL=$ac_install_sh
1223 echo "$as_me:$LINENO: result: $INSTALL" >&5
1224 echo "${ECHO_T}$INSTALL" >&6
1226 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1227 # It thinks the first close brace ends the variable substitution.
1228 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1230 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1232 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1234 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1235 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1238 echo timestamp > conftest.file
1239 # Do `set' in a subshell so we don't clobber the current shell's
1240 # arguments. Must try -L first in case configure is actually a
1241 # symlink; some systems play weird games with the mod time of symlinks
1242 # (eg FreeBSD returns the mod time of the symlink's containing
1245 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1246 if test "$*" = "X"; then
1248 set X `ls -t $srcdir/configure conftest.file`
1251 if test "$*" != "X $srcdir/configure conftest.file" \
1252 && test "$*" != "X conftest.file $srcdir/configure"; then
1254 # If neither matched, then we have a broken ls. This can happen
1255 # if, for instance, CONFIG_SHELL is bash and it inherits a
1256 # broken ls alias from the environment. This has actually
1257 # happened. Such a system could not be considered "sane".
1258 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1259 alias in your environment" >&5
1260 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1261 alias in your environment" >&2;}
1262 { (exit 1); exit 1; }; }
1265 test "$2" = conftest.file
1271 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1272 Check your system clock" >&5
1273 echo "$as_me: error: newly created file is older than distributed files!
1274 Check your system clock" >&2;}
1275 { (exit 1); exit 1; }; }
1277 echo "$as_me:$LINENO: result: yes" >&5
1278 echo "${ECHO_T}yes" >&6
1279 test "$program_prefix" != NONE &&
1280 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1281 # Use a double $ so make ignores it.
1282 test "$program_suffix" != NONE &&
1283 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1284 # Double any \ or $. echo might interpret backslashes.
1285 # By default was `s,x,x', remove it if useless.
1286 cat <<\_ACEOF >conftest.sed
1287 s/[\\$]/&&/g;s/;s,x,x,$//
1289 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1292 # expand $ac_aux_dir to an absolute path
1293 am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
1295 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1296 # Use eval to expand $SHELL
1297 if eval "$MISSING --run true"; then
1298 am_missing_run="$MISSING --run "
1302 { echo "$as_me:$LINENO: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1303 echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1306 for ac_prog in gawk mawk nawk awk
1308 # Extract the first word of "$ac_prog", so it can be a program name with args.
1309 set dummy $ac_prog; ac_word=$2
1310 echo "$as_me:$LINENO: checking for $ac_word" >&5
1311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1312 if test "${ac_cv_prog_AWK+set}" = set; then
1313 echo $ECHO_N "(cached) $ECHO_C" >&6
1315 if test -n "$AWK"; then
1316 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1322 test -z "$as_dir" && as_dir=.
1323 for ac_exec_ext in '' $ac_executable_extensions; do
1324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1325 ac_cv_prog_AWK="$ac_prog"
1326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1335 if test -n "$AWK"; then
1336 echo "$as_me:$LINENO: result: $AWK" >&5
1337 echo "${ECHO_T}$AWK" >&6
1339 echo "$as_me:$LINENO: result: no" >&5
1340 echo "${ECHO_T}no" >&6
1343 test -n "$AWK" && break
1346 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1347 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1348 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1349 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1350 echo $ECHO_N "(cached) $ECHO_C" >&6
1352 cat >conftest.make <<\_ACEOF
1354 @echo 'ac_maketemp="${MAKE}"'
1356 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1357 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1358 if test -n "$ac_maketemp"; then
1359 eval ac_cv_prog_make_${ac_make}_set=yes
1361 eval ac_cv_prog_make_${ac_make}_set=no
1365 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1366 echo "$as_me:$LINENO: result: yes" >&5
1367 echo "${ECHO_T}yes" >&6
1370 echo "$as_me:$LINENO: result: no" >&5
1371 echo "${ECHO_T}no" >&6
1372 SET_MAKE="MAKE=${MAKE-make}"
1375 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1376 if test "${enable_dependency_tracking+set}" = set; then
1377 enableval="$enable_dependency_tracking"
1380 if test "x$enable_dependency_tracking" != xno; then
1381 am_depcomp="$ac_aux_dir/depcomp"
1385 if test "x$enable_dependency_tracking" != xno; then
1393 rm -f .deps 2>/dev/null
1394 mkdir .deps 2>/dev/null
1395 if test -d .deps; then
1398 # MS-DOS does not allow filenames that begin with a dot.
1401 rmdir .deps 2>/dev/null
1403 # test to see if srcdir already configured
1404 if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
1405 test -f $srcdir/config.status; then
1406 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1407 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1408 { (exit 1); exit 1; }; }
1411 # Define the identity of the package.
1415 cat >>confdefs.h <<_ACEOF
1416 #define PACKAGE "$PACKAGE"
1419 cat >>confdefs.h <<_ACEOF
1420 #define VERSION "$VERSION"
1423 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
1424 # the ones we care about.
1426 # Autoconf 2.50 always computes EXEEXT. However we need to be
1427 # compatible with 2.13, for now. So we always define EXEEXT, but we
1430 # Similar for OBJEXT -- only we only use OBJEXT if the user actually
1431 # requests that it be used. This is a bit dumb.
1434 # Some tools Automake needs.
1436 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
1438 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1440 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
1442 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1444 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1446 AMTAR=${AMTAR-"${am_missing_run}tar"}
1448 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1450 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1452 # We need awk for the "check" target. The system "awk" is bad on
1455 ac_config_headers="$ac_config_headers config.h"
1458 ac_cpp='$CPP $CPPFLAGS'
1459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1462 if test -n "$ac_tool_prefix"; then
1463 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1464 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1465 echo "$as_me:$LINENO: checking for $ac_word" >&5
1466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1467 if test "${ac_cv_prog_CC+set}" = set; then
1468 echo $ECHO_N "(cached) $ECHO_C" >&6
1470 if test -n "$CC"; then
1471 ac_cv_prog_CC="$CC" # Let the user override the test.
1473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1477 test -z "$as_dir" && as_dir=.
1478 for ac_exec_ext in '' $ac_executable_extensions; do
1479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1480 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1490 if test -n "$CC"; then
1491 echo "$as_me:$LINENO: result: $CC" >&5
1492 echo "${ECHO_T}$CC" >&6
1494 echo "$as_me:$LINENO: result: no" >&5
1495 echo "${ECHO_T}no" >&6
1499 if test -z "$ac_cv_prog_CC"; then
1501 # Extract the first word of "gcc", so it can be a program name with args.
1502 set dummy gcc; ac_word=$2
1503 echo "$as_me:$LINENO: checking for $ac_word" >&5
1504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1505 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1508 if test -n "$ac_ct_CC"; then
1509 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1515 test -z "$as_dir" && as_dir=.
1516 for ac_exec_ext in '' $ac_executable_extensions; do
1517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1518 ac_cv_prog_ac_ct_CC="gcc"
1519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1527 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1528 if test -n "$ac_ct_CC"; then
1529 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1530 echo "${ECHO_T}$ac_ct_CC" >&6
1532 echo "$as_me:$LINENO: result: no" >&5
1533 echo "${ECHO_T}no" >&6
1541 if test -z "$CC"; then
1542 if test -n "$ac_tool_prefix"; then
1543 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1544 set dummy ${ac_tool_prefix}cc; ac_word=$2
1545 echo "$as_me:$LINENO: checking for $ac_word" >&5
1546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1547 if test "${ac_cv_prog_CC+set}" = set; then
1548 echo $ECHO_N "(cached) $ECHO_C" >&6
1550 if test -n "$CC"; then
1551 ac_cv_prog_CC="$CC" # Let the user override the test.
1553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1557 test -z "$as_dir" && as_dir=.
1558 for ac_exec_ext in '' $ac_executable_extensions; do
1559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1560 ac_cv_prog_CC="${ac_tool_prefix}cc"
1561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1570 if test -n "$CC"; then
1571 echo "$as_me:$LINENO: result: $CC" >&5
1572 echo "${ECHO_T}$CC" >&6
1574 echo "$as_me:$LINENO: result: no" >&5
1575 echo "${ECHO_T}no" >&6
1579 if test -z "$ac_cv_prog_CC"; then
1581 # Extract the first word of "cc", so it can be a program name with args.
1582 set dummy cc; ac_word=$2
1583 echo "$as_me:$LINENO: checking for $ac_word" >&5
1584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1585 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1586 echo $ECHO_N "(cached) $ECHO_C" >&6
1588 if test -n "$ac_ct_CC"; then
1589 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1595 test -z "$as_dir" && as_dir=.
1596 for ac_exec_ext in '' $ac_executable_extensions; do
1597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1598 ac_cv_prog_ac_ct_CC="cc"
1599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1607 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1608 if test -n "$ac_ct_CC"; then
1609 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1610 echo "${ECHO_T}$ac_ct_CC" >&6
1612 echo "$as_me:$LINENO: result: no" >&5
1613 echo "${ECHO_T}no" >&6
1622 if test -z "$CC"; then
1623 # Extract the first word of "cc", so it can be a program name with args.
1624 set dummy cc; ac_word=$2
1625 echo "$as_me:$LINENO: checking for $ac_word" >&5
1626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1627 if test "${ac_cv_prog_CC+set}" = set; then
1628 echo $ECHO_N "(cached) $ECHO_C" >&6
1630 if test -n "$CC"; then
1631 ac_cv_prog_CC="$CC" # Let the user override the test.
1634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638 test -z "$as_dir" && as_dir=.
1639 for ac_exec_ext in '' $ac_executable_extensions; do
1640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1641 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1642 ac_prog_rejected=yes
1646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1652 if test $ac_prog_rejected = yes; then
1653 # We found a bogon in the path, so make sure we never use it.
1654 set dummy $ac_cv_prog_CC
1656 if test $# != 0; then
1657 # We chose a different compiler from the bogus one.
1658 # However, it has the same basename, so the bogon will be chosen
1659 # first if we set CC to just the basename; use the full file name.
1661 set dummy "$as_dir/$ac_word" ${1+"$@"}
1669 if test -n "$CC"; then
1670 echo "$as_me:$LINENO: result: $CC" >&5
1671 echo "${ECHO_T}$CC" >&6
1673 echo "$as_me:$LINENO: result: no" >&5
1674 echo "${ECHO_T}no" >&6
1678 if test -z "$CC"; then
1679 if test -n "$ac_tool_prefix"; then
1682 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1683 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1684 echo "$as_me:$LINENO: checking for $ac_word" >&5
1685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1686 if test "${ac_cv_prog_CC+set}" = set; then
1687 echo $ECHO_N "(cached) $ECHO_C" >&6
1689 if test -n "$CC"; then
1690 ac_cv_prog_CC="$CC" # Let the user override the test.
1692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1696 test -z "$as_dir" && as_dir=.
1697 for ac_exec_ext in '' $ac_executable_extensions; do
1698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1699 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1709 if test -n "$CC"; then
1710 echo "$as_me:$LINENO: result: $CC" >&5
1711 echo "${ECHO_T}$CC" >&6
1713 echo "$as_me:$LINENO: result: no" >&5
1714 echo "${ECHO_T}no" >&6
1717 test -n "$CC" && break
1720 if test -z "$CC"; then
1724 # Extract the first word of "$ac_prog", so it can be a program name with args.
1725 set dummy $ac_prog; ac_word=$2
1726 echo "$as_me:$LINENO: checking for $ac_word" >&5
1727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1728 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1729 echo $ECHO_N "(cached) $ECHO_C" >&6
1731 if test -n "$ac_ct_CC"; then
1732 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1738 test -z "$as_dir" && as_dir=.
1739 for ac_exec_ext in '' $ac_executable_extensions; do
1740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1741 ac_cv_prog_ac_ct_CC="$ac_prog"
1742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1750 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1751 if test -n "$ac_ct_CC"; then
1752 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1753 echo "${ECHO_T}$ac_ct_CC" >&6
1755 echo "$as_me:$LINENO: result: no" >&5
1756 echo "${ECHO_T}no" >&6
1759 test -n "$ac_ct_CC" && break
1767 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
1768 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1769 { (exit 1); exit 1; }; }
1771 # Provide some information about the compiler.
1772 echo "$as_me:$LINENO:" \
1773 "checking for C compiler version" >&5
1774 ac_compiler=`set X $ac_compile; echo $2`
1775 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1776 (eval $ac_compiler --version </dev/null >&5) 2>&5
1778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1779 (exit $ac_status); }
1780 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1781 (eval $ac_compiler -v </dev/null >&5) 2>&5
1783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1784 (exit $ac_status); }
1785 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1786 (eval $ac_compiler -V </dev/null >&5) 2>&5
1788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1789 (exit $ac_status); }
1791 cat >conftest.$ac_ext <<_ACEOF
1792 #line $LINENO "configure"
1793 #include "confdefs.h"
1795 #ifdef F77_DUMMY_MAIN
1799 int F77_DUMMY_MAIN() { return 1; }
1809 ac_clean_files_save=$ac_clean_files
1810 ac_clean_files="$ac_clean_files a.out a.exe"
1811 # Try to create an executable without -o first, disregard a.out.
1812 # It will help us diagnose broken compilers, and finding out an intuition
1814 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1815 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1816 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1817 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1818 (eval $ac_link_default) 2>&5
1820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1821 (exit $ac_status); }; then
1822 # Find the output, starting from the most likely. This scheme is
1823 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1825 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1826 ls a.out conftest 2>/dev/null;
1827 ls a.* conftest.* 2>/dev/null`; do
1829 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1830 a.out ) # We found the default executable, but exeext='' is most
1833 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1834 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1841 echo "$as_me: failed program was:" >&5
1842 cat conftest.$ac_ext >&5
1843 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1844 echo "$as_me: error: C compiler cannot create executables" >&2;}
1845 { (exit 77); exit 77; }; }
1848 ac_exeext=$ac_cv_exeext
1849 echo "$as_me:$LINENO: result: $ac_file" >&5
1850 echo "${ECHO_T}$ac_file" >&6
1852 # Check the compiler produces executables we can run. If not, either
1853 # the compiler is broken, or we cross compile.
1854 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1855 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1856 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1857 # If not cross compiling, check that we can run a simple program.
1858 if test "$cross_compiling" != yes; then
1859 if { ac_try='./$ac_file'
1860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1864 (exit $ac_status); }; }; then
1867 if test "$cross_compiling" = maybe; then
1870 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1871 If you meant to cross compile, use \`--host'." >&5
1872 echo "$as_me: error: cannot run C compiled programs.
1873 If you meant to cross compile, use \`--host'." >&2;}
1874 { (exit 1); exit 1; }; }
1878 echo "$as_me:$LINENO: result: yes" >&5
1879 echo "${ECHO_T}yes" >&6
1881 rm -f a.out a.exe conftest$ac_cv_exeext
1882 ac_clean_files=$ac_clean_files_save
1883 # Check the compiler produces executables we can run. If not, either
1884 # the compiler is broken, or we cross compile.
1885 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1886 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1887 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1888 echo "${ECHO_T}$cross_compiling" >&6
1890 echo "$as_me:$LINENO: checking for executable suffix" >&5
1891 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1893 (eval $ac_link) 2>&5
1895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1896 (exit $ac_status); }; then
1897 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1898 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1899 # work properly (i.e., refer to `conftest.exe'), while it won't with
1901 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1903 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1904 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1911 { { echo "$as_me:$LINENO: error: cannot compute EXEEXT: cannot compile and link" >&5
1912 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1913 { (exit 1); exit 1; }; }
1916 rm -f conftest$ac_cv_exeext
1917 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1918 echo "${ECHO_T}$ac_cv_exeext" >&6
1920 rm -f conftest.$ac_ext
1921 EXEEXT=$ac_cv_exeext
1923 echo "$as_me:$LINENO: checking for object suffix" >&5
1924 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1925 if test "${ac_cv_objext+set}" = set; then
1926 echo $ECHO_N "(cached) $ECHO_C" >&6
1928 cat >conftest.$ac_ext <<_ACEOF
1929 #line $LINENO "configure"
1930 #include "confdefs.h"
1932 #ifdef F77_DUMMY_MAIN
1936 int F77_DUMMY_MAIN() { return 1; }
1946 rm -f conftest.o conftest.obj
1947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1948 (eval $ac_compile) 2>&5
1950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1951 (exit $ac_status); }; then
1952 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1954 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1955 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1960 echo "$as_me: failed program was:" >&5
1961 cat conftest.$ac_ext >&5
1962 { { echo "$as_me:$LINENO: error: cannot compute OBJEXT: cannot compile" >&5
1963 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1964 { (exit 1); exit 1; }; }
1967 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1969 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1970 echo "${ECHO_T}$ac_cv_objext" >&6
1971 OBJEXT=$ac_cv_objext
1973 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1974 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1975 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1976 echo $ECHO_N "(cached) $ECHO_C" >&6
1978 cat >conftest.$ac_ext <<_ACEOF
1979 #line $LINENO "configure"
1980 #include "confdefs.h"
1982 #ifdef F77_DUMMY_MAIN
1986 int F77_DUMMY_MAIN() { return 1; }
1999 rm -f conftest.$ac_objext
2000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2001 (eval $ac_compile) 2>&5
2003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004 (exit $ac_status); } &&
2005 { ac_try='test -s conftest.$ac_objext'
2006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010 (exit $ac_status); }; }; then
2013 echo "$as_me: failed program was:" >&5
2014 cat conftest.$ac_ext >&5
2017 rm -f conftest.$ac_objext conftest.$ac_ext
2018 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2021 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2022 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2023 GCC=`test $ac_compiler_gnu = yes && echo yes`
2024 ac_test_CFLAGS=${CFLAGS+set}
2025 ac_save_CFLAGS=$CFLAGS
2027 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2028 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2029 if test "${ac_cv_prog_cc_g+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 cat >conftest.$ac_ext <<_ACEOF
2033 #line $LINENO "configure"
2034 #include "confdefs.h"
2036 #ifdef F77_DUMMY_MAIN
2040 int F77_DUMMY_MAIN() { return 1; }
2050 rm -f conftest.$ac_objext
2051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2052 (eval $ac_compile) 2>&5
2054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055 (exit $ac_status); } &&
2056 { ac_try='test -s conftest.$ac_objext'
2057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061 (exit $ac_status); }; }; then
2064 echo "$as_me: failed program was:" >&5
2065 cat conftest.$ac_ext >&5
2068 rm -f conftest.$ac_objext conftest.$ac_ext
2070 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2071 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2072 if test "$ac_test_CFLAGS" = set; then
2073 CFLAGS=$ac_save_CFLAGS
2074 elif test $ac_cv_prog_cc_g = yes; then
2075 if test "$GCC" = yes; then
2081 if test "$GCC" = yes; then
2087 # Some people use a C++ compiler to compile C. Since we use `exit',
2088 # in C++ we need to declare it. In case someone uses the same compiler
2089 # for both compiling C and C++ we need to have the C++ compiler decide
2090 # the declaration of exit, since it's the most demanding environment.
2091 cat >conftest.$ac_ext <<_ACEOF
2096 rm -f conftest.$ac_objext
2097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2098 (eval $ac_compile) 2>&5
2100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101 (exit $ac_status); } &&
2102 { ac_try='test -s conftest.$ac_objext'
2103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); }; }; then
2108 for ac_declaration in \
2110 '#include <stdlib.h>' \
2111 'extern "C" void std::exit (int) throw (); using std::exit;' \
2112 'extern "C" void std::exit (int); using std::exit;' \
2113 'extern "C" void exit (int) throw ();' \
2114 'extern "C" void exit (int);' \
2117 cat >conftest.$ac_ext <<_ACEOF
2118 #line $LINENO "configure"
2119 #include "confdefs.h"
2122 #ifdef F77_DUMMY_MAIN
2126 int F77_DUMMY_MAIN() { return 1; }
2136 rm -f conftest.$ac_objext
2137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2138 (eval $ac_compile) 2>&5
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); } &&
2142 { ac_try='test -s conftest.$ac_objext'
2143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); }; }; then
2150 echo "$as_me: failed program was:" >&5
2151 cat conftest.$ac_ext >&5
2154 rm -f conftest.$ac_objext conftest.$ac_ext
2155 cat >conftest.$ac_ext <<_ACEOF
2156 #line $LINENO "configure"
2157 #include "confdefs.h"
2159 #ifdef F77_DUMMY_MAIN
2163 int F77_DUMMY_MAIN() { return 1; }
2173 rm -f conftest.$ac_objext
2174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2175 (eval $ac_compile) 2>&5
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); } &&
2179 { ac_try='test -s conftest.$ac_objext'
2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; }; then
2187 echo "$as_me: failed program was:" >&5
2188 cat conftest.$ac_ext >&5
2190 rm -f conftest.$ac_objext conftest.$ac_ext
2193 if test -n "$ac_declaration"; then
2194 echo '#ifdef __cplusplus' >>confdefs.h
2195 echo $ac_declaration >>confdefs.h
2196 echo '#endif' >>confdefs.h
2200 echo "$as_me: failed program was:" >&5
2201 cat conftest.$ac_ext >&5
2203 rm -f conftest.$ac_objext conftest.$ac_ext
2205 ac_cpp='$CPP $CPPFLAGS'
2206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2210 ac_config_commands="$ac_config_commands default-1"
2212 am_make=${MAKE-make}
2213 cat > confinc << 'END'
2217 # If we don't find an include directive, just comment out the code.
2218 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2219 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2223 # First try GNU make style include.
2224 echo "include confinc" > confmf
2225 # We grep out `Entering directory' and `Leaving directory'
2226 # messages which can occur if `w' ends up in MAKEFLAGS.
2227 # In particular we don't look at `^make:' because GNU make might
2228 # be invoked under some other name (usually "gmake"), in which
2229 # case it prints its new name instead of `make'.
2230 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2235 # Now try BSD make style include.
2236 if test "$am__include" = "#"; then
2237 echo '.include "confinc"' > confmf
2238 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2239 am__include=.include
2245 echo "$as_me:$LINENO: result: $_am_result" >&5
2246 echo "${ECHO_T}$_am_result" >&6
2247 rm -f confinc confmf
2249 depcc="$CC" am_compiler_list=
2251 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2252 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2253 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2254 echo $ECHO_N "(cached) $ECHO_C" >&6
2256 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2257 # We make a subdir and do the tests there. Otherwise we can end up
2258 # making bogus files that we don't know about and never remove. For
2259 # instance it was reported that on HP-UX the gcc test will end up
2260 # making a dummy file named `D' -- because `-MD' means `put the output
2263 # Copy depcomp to subdir because otherwise we won't find it if we're
2264 # using a relative directory.
2265 cp "$am_depcomp" conftest.dir
2268 am_cv_CC_dependencies_compiler_type=none
2269 if test "$am_compiler_list" = ""; then
2270 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2272 for depmode in $am_compiler_list; do
2273 # We need to recreate these files for each test, as the compiler may
2274 # overwrite some of them when testing with obscure command lines.
2275 # This happens at least with the AIX C compiler.
2276 echo '#include "conftest.h"' > conftest.c
2277 echo 'int i;' > conftest.h
2278 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2282 # after this tag, mechanisms are not by side-effect, so they'll
2283 # only be used when explicitly requested
2284 if test "x$enable_dependency_tracking" = xyes; then
2292 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2293 # mode. It turns out that the SunPro C++ compiler does not properly
2294 # handle `-M -o', and we need to detect this.
2295 if depmode=$depmode \
2296 source=conftest.c object=conftest.o \
2297 depfile=conftest.Po tmpdepfile=conftest.TPo \
2298 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2299 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2300 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2301 am_cv_CC_dependencies_compiler_type=$depmode
2309 am_cv_CC_dependencies_compiler_type=none
2313 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2314 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2315 CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
2317 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2318 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2320 if test "$LN_S" = "ln -s"; then
2321 echo "$as_me:$LINENO: result: yes" >&5
2322 echo "${ECHO_T}yes" >&6
2324 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2325 echo "${ECHO_T}no, using $LN_S" >&6
2328 echo "$as_me:$LINENO: checking for a POSIX-compliant shell" >&5
2329 echo $ECHO_N "checking for a POSIX-compliant shell... $ECHO_C" >&6
2330 if test "${ac_cv_path_shell+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2334 # Test the noclobber option, using the portable POSIX.2 syntax.
2338 >|conftest.c || exit
2339 !>conftest.c || exit
2346 if ("$SHELL" -c "$ac_command") 2>/dev/null; then
2347 ac_cv_path_shell=$SHELL
2351 case $ac_cv_path_shell in
2353 # Prefer shells that are more likely to be installed in the
2354 # same place on all hosts of this platform. Therefore, prefer
2355 # shells in /bin and /usr/bin to shells in the installer's
2356 # PATH. Also, loop through PATH first and then through
2357 # shells, since less-"nice" shells in /bin and /usr/bin are
2358 # more likely to be installed than "nicer" shells elsewhere.
2359 as_save_IFS=$IFS; IFS=:
2360 for as_dir in /bin /usr/bin $PATH
2365 for ac_base in sh bash ksh sh5; do
2367 if ("$as_dir/$ac_base" -c "$ac_command") 2>/dev/null; then
2368 ac_cv_path_shell=$as_dir/$ac_base
2372 case $ac_cv_path_shell in
2381 echo "$as_me:$LINENO: result: $ac_cv_path_shell" >&5
2382 echo "${ECHO_T}$ac_cv_path_shell" >&6
2383 SHELL=$ac_cv_path_shell
2384 if test "$SHELL" = no; then
2386 { echo "$as_me:$LINENO: WARNING: using $SHELL, even though it does not conform to POSIX" >&5
2387 echo "$as_me: WARNING: using $SHELL, even though it does not conform to POSIX" >&2;}
2391 ac_cpp='$CPP $CPPFLAGS'
2392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2395 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2396 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2397 # On Suns, sometimes $CPP names a directory.
2398 if test -n "$CPP" && test -d "$CPP"; then
2401 if test -z "$CPP"; then
2402 if test "${ac_cv_prog_CPP+set}" = set; then
2403 echo $ECHO_N "(cached) $ECHO_C" >&6
2405 # Double quotes because CPP needs to be expanded
2406 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2409 for ac_c_preproc_warn_flag in '' yes
2411 # Use a header file that comes with gcc, so configuring glibc
2412 # with a fresh cross-compiler works.
2413 # On the NeXT, cc -E runs the code through the compiler's parser,
2414 # not just through cpp. "Syntax error" is here to catch this case.
2415 cat >conftest.$ac_ext <<_ACEOF
2416 #line $LINENO "configure"
2417 #include "confdefs.h"
2421 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2422 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2424 egrep -v '^ *\+' conftest.er1 >conftest.err
2426 cat conftest.err >&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); } >/dev/null; then
2429 if test -s conftest.err; then
2430 ac_cpp_err=$ac_c_preproc_warn_flag
2437 if test -z "$ac_cpp_err"; then
2440 echo "$as_me: failed program was:" >&5
2441 cat conftest.$ac_ext >&5
2442 # Broken: fails on valid input.
2445 rm -f conftest.err conftest.$ac_ext
2447 # OK, works on sane cases. Now check whether non-existent headers
2448 # can be detected and how.
2449 cat >conftest.$ac_ext <<_ACEOF
2450 #line $LINENO "configure"
2451 #include "confdefs.h"
2452 #include <ac_nonexistent.h>
2454 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2455 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2457 egrep -v '^ *\+' conftest.er1 >conftest.err
2459 cat conftest.err >&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); } >/dev/null; then
2462 if test -s conftest.err; then
2463 ac_cpp_err=$ac_c_preproc_warn_flag
2470 if test -z "$ac_cpp_err"; then
2471 # Broken: success on invalid input.
2474 echo "$as_me: failed program was:" >&5
2475 cat conftest.$ac_ext >&5
2476 # Passes both tests.
2480 rm -f conftest.err conftest.$ac_ext
2483 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2484 rm -f conftest.err conftest.$ac_ext
2485 if $ac_preproc_ok; then
2497 echo "$as_me:$LINENO: result: $CPP" >&5
2498 echo "${ECHO_T}$CPP" >&6
2500 for ac_c_preproc_warn_flag in '' yes
2502 # Use a header file that comes with gcc, so configuring glibc
2503 # with a fresh cross-compiler works.
2504 # On the NeXT, cc -E runs the code through the compiler's parser,
2505 # not just through cpp. "Syntax error" is here to catch this case.
2506 cat >conftest.$ac_ext <<_ACEOF
2507 #line $LINENO "configure"
2508 #include "confdefs.h"
2512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2513 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2515 egrep -v '^ *\+' conftest.er1 >conftest.err
2517 cat conftest.err >&5
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); } >/dev/null; then
2520 if test -s conftest.err; then
2521 ac_cpp_err=$ac_c_preproc_warn_flag
2528 if test -z "$ac_cpp_err"; then
2531 echo "$as_me: failed program was:" >&5
2532 cat conftest.$ac_ext >&5
2533 # Broken: fails on valid input.
2536 rm -f conftest.err conftest.$ac_ext
2538 # OK, works on sane cases. Now check whether non-existent headers
2539 # can be detected and how.
2540 cat >conftest.$ac_ext <<_ACEOF
2541 #line $LINENO "configure"
2542 #include "confdefs.h"
2543 #include <ac_nonexistent.h>
2545 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2546 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2548 egrep -v '^ *\+' conftest.er1 >conftest.err
2550 cat conftest.err >&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); } >/dev/null; then
2553 if test -s conftest.err; then
2554 ac_cpp_err=$ac_c_preproc_warn_flag
2561 if test -z "$ac_cpp_err"; then
2562 # Broken: success on invalid input.
2565 echo "$as_me: failed program was:" >&5
2566 cat conftest.$ac_ext >&5
2567 # Passes both tests.
2571 rm -f conftest.err conftest.$ac_ext
2574 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2575 rm -f conftest.err conftest.$ac_ext
2576 if $ac_preproc_ok; then
2579 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2580 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2581 { (exit 1); exit 1; }; }
2585 ac_cpp='$CPP $CPPFLAGS'
2586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2590 echo "$as_me:$LINENO: checking for AIX" >&5
2591 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2592 cat >conftest.$ac_ext <<_ACEOF
2593 #line $LINENO "configure"
2594 #include "confdefs.h"
2600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2601 egrep "yes" >/dev/null 2>&1; then
2602 echo "$as_me:$LINENO: result: yes" >&5
2603 echo "${ECHO_T}yes" >&6
2604 cat >>confdefs.h <<\_ACEOF
2605 #define _ALL_SOURCE 1
2609 echo "$as_me:$LINENO: result: no" >&5
2610 echo "${ECHO_T}no" >&6
2614 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2615 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2616 if test "${ac_cv_header_stdc+set}" = set; then
2617 echo $ECHO_N "(cached) $ECHO_C" >&6
2619 cat >conftest.$ac_ext <<_ACEOF
2620 #line $LINENO "configure"
2621 #include "confdefs.h"
2628 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2629 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2631 egrep -v '^ *\+' conftest.er1 >conftest.err
2633 cat conftest.err >&5
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); } >/dev/null; then
2636 if test -s conftest.err; then
2637 ac_cpp_err=$ac_c_preproc_warn_flag
2644 if test -z "$ac_cpp_err"; then
2645 ac_cv_header_stdc=yes
2647 echo "$as_me: failed program was:" >&5
2648 cat conftest.$ac_ext >&5
2649 ac_cv_header_stdc=no
2651 rm -f conftest.err conftest.$ac_ext
2653 if test $ac_cv_header_stdc = yes; then
2654 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2655 cat >conftest.$ac_ext <<_ACEOF
2656 #line $LINENO "configure"
2657 #include "confdefs.h"
2661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2662 egrep "memchr" >/dev/null 2>&1; then
2665 ac_cv_header_stdc=no
2671 if test $ac_cv_header_stdc = yes; then
2672 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2673 cat >conftest.$ac_ext <<_ACEOF
2674 #line $LINENO "configure"
2675 #include "confdefs.h"
2679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2680 egrep "free" >/dev/null 2>&1; then
2683 ac_cv_header_stdc=no
2689 if test $ac_cv_header_stdc = yes; then
2690 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2691 if test "$cross_compiling" = yes; then
2694 cat >conftest.$ac_ext <<_ACEOF
2695 #line $LINENO "configure"
2696 #include "confdefs.h"
2698 #if ((' ' & 0x0FF) == 0x020)
2699 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2700 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2702 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2703 || ('j' <= (c) && (c) <= 'r') \
2704 || ('s' <= (c) && (c) <= 'z'))
2705 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2708 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2713 for (i = 0; i < 256; i++)
2714 if (XOR (islower (i), ISLOWER (i))
2715 || toupper (i) != TOUPPER (i))
2720 rm -f conftest$ac_exeext
2721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2722 (eval $ac_link) 2>&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }; }; then
2733 echo "$as_me: program exited with status $ac_status" >&5
2734 echo "$as_me: failed program was:" >&5
2735 cat conftest.$ac_ext >&5
2737 ac_cv_header_stdc=no
2739 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2743 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2744 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2745 if test $ac_cv_header_stdc = yes; then
2747 cat >>confdefs.h <<\_ACEOF
2748 #define STDC_HEADERS 1
2753 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2755 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2756 inttypes.h stdint.h unistd.h
2758 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2759 echo "$as_me:$LINENO: checking for $ac_header" >&5
2760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2762 echo $ECHO_N "(cached) $ECHO_C" >&6
2764 cat >conftest.$ac_ext <<_ACEOF
2765 #line $LINENO "configure"
2766 #include "confdefs.h"
2767 $ac_includes_default
2769 #include <$ac_header>
2771 rm -f conftest.$ac_objext
2772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2773 (eval $ac_compile) 2>&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); } &&
2777 { ac_try='test -s conftest.$ac_objext'
2778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }; }; then
2783 eval "$as_ac_Header=yes"
2785 echo "$as_me: failed program was:" >&5
2786 cat conftest.$ac_ext >&5
2787 eval "$as_ac_Header=no"
2789 rm -f conftest.$ac_objext conftest.$ac_ext
2791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2794 cat >>confdefs.h <<_ACEOF
2795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2802 if test "${ac_cv_header_minix_config_h+set}" = set; then
2803 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2804 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2805 if test "${ac_cv_header_minix_config_h+set}" = set; then
2806 echo $ECHO_N "(cached) $ECHO_C" >&6
2808 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2809 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2811 # Is the header compilable?
2812 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
2813 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
2814 cat >conftest.$ac_ext <<_ACEOF
2815 #line $LINENO "configure"
2816 #include "confdefs.h"
2817 $ac_includes_default
2818 #include <minix/config.h>
2820 rm -f conftest.$ac_objext
2821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2822 (eval $ac_compile) 2>&5
2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 (exit $ac_status); } &&
2826 { ac_try='test -s conftest.$ac_objext'
2827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }; }; then
2832 ac_header_compiler=yes
2834 echo "$as_me: failed program was:" >&5
2835 cat conftest.$ac_ext >&5
2836 ac_header_compiler=no
2838 rm -f conftest.$ac_objext conftest.$ac_ext
2839 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2840 echo "${ECHO_T}$ac_header_compiler" >&6
2842 # Is the header present?
2843 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
2844 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
2845 cat >conftest.$ac_ext <<_ACEOF
2846 #line $LINENO "configure"
2847 #include "confdefs.h"
2848 #include <minix/config.h>
2850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2853 egrep -v '^ *\+' conftest.er1 >conftest.err
2855 cat conftest.err >&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); } >/dev/null; then
2858 if test -s conftest.err; then
2859 ac_cpp_err=$ac_c_preproc_warn_flag
2866 if test -z "$ac_cpp_err"; then
2867 ac_header_preproc=yes
2869 echo "$as_me: failed program was:" >&5
2870 cat conftest.$ac_ext >&5
2871 ac_header_preproc=no
2873 rm -f conftest.err conftest.$ac_ext
2874 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2875 echo "${ECHO_T}$ac_header_preproc" >&6
2877 # So? What about this header?
2878 case $ac_header_compiler:$ac_header_preproc in
2880 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
2881 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2882 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2883 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2885 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled." >&5
2886 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled." >&2;}
2887 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
2888 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
2889 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2890 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2892 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2893 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2894 if test "${ac_cv_header_minix_config_h+set}" = set; then
2895 echo $ECHO_N "(cached) $ECHO_C" >&6
2897 ac_cv_header_minix_config_h=$ac_header_preproc
2899 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2900 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2903 if test $ac_cv_header_minix_config_h = yes; then
2909 if test "$MINIX" = yes; then
2911 cat >>confdefs.h <<\_ACEOF
2912 #define _POSIX_SOURCE 1
2915 cat >>confdefs.h <<\_ACEOF
2916 #define _POSIX_1_SOURCE 2
2919 cat >>confdefs.h <<\_ACEOF
2925 # Check whether --enable-largefile or --disable-largefile was given.
2926 if test "${enable_largefile+set}" = set; then
2927 enableval="$enable_largefile"
2930 if test "$enable_largefile" != no; then
2932 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
2933 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
2934 if test "${ac_cv_sys_largefile_CC+set}" = set; then
2935 echo $ECHO_N "(cached) $ECHO_C" >&6
2937 ac_cv_sys_largefile_CC=no
2938 if test "$GCC" != yes; then
2941 # IRIX 6.2 and later do not support large files by default,
2942 # so use the C compiler's -n32 option if that helps.
2943 cat >conftest.$ac_ext <<_ACEOF
2944 #line $LINENO "configure"
2945 #include "confdefs.h"
2946 #include <sys/types.h>
2947 /* Check that off_t can represent 2**63 - 1 correctly.
2948 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2949 since some C++ compilers masquerading as C compilers
2950 incorrectly reject 9223372036854775807. */
2951 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2952 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2953 && LARGE_OFF_T % 2147483647 == 1)
2955 #ifdef F77_DUMMY_MAIN
2959 int F77_DUMMY_MAIN() { return 1; }
2969 rm -f conftest.$ac_objext
2970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2971 (eval $ac_compile) 2>&5
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); } &&
2975 { ac_try='test -s conftest.$ac_objext'
2976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; }; then
2983 echo "$as_me: failed program was:" >&5
2984 cat conftest.$ac_ext >&5
2986 rm -f conftest.$ac_objext
2988 rm -f conftest.$ac_objext
2989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2990 (eval $ac_compile) 2>&5
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); } &&
2994 { ac_try='test -s conftest.$ac_objext'
2995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); }; }; then
3000 ac_cv_sys_largefile_CC=' -n32'; break
3002 echo "$as_me: failed program was:" >&5
3003 cat conftest.$ac_ext >&5
3005 rm -f conftest.$ac_objext
3009 rm -f conftest.$ac_ext
3012 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3013 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3014 if test "$ac_cv_sys_largefile_CC" != no; then
3015 CC=$CC$ac_cv_sys_largefile_CC
3018 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3019 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3020 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
3024 ac_cv_sys_file_offset_bits=no
3025 cat >conftest.$ac_ext <<_ACEOF
3026 #line $LINENO "configure"
3027 #include "confdefs.h"
3028 #include <sys/types.h>
3029 /* Check that off_t can represent 2**63 - 1 correctly.
3030 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3031 since some C++ compilers masquerading as C compilers
3032 incorrectly reject 9223372036854775807. */
3033 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3034 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3035 && LARGE_OFF_T % 2147483647 == 1)
3037 #ifdef F77_DUMMY_MAIN
3041 int F77_DUMMY_MAIN() { return 1; }
3051 rm -f conftest.$ac_objext
3052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3053 (eval $ac_compile) 2>&5
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); } &&
3057 { ac_try='test -s conftest.$ac_objext'
3058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); }; }; then
3065 echo "$as_me: failed program was:" >&5
3066 cat conftest.$ac_ext >&5
3068 rm -f conftest.$ac_objext conftest.$ac_ext
3069 cat >conftest.$ac_ext <<_ACEOF
3070 #line $LINENO "configure"
3071 #include "confdefs.h"
3072 #define _FILE_OFFSET_BITS 64
3073 #include <sys/types.h>
3074 /* Check that off_t can represent 2**63 - 1 correctly.
3075 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3076 since some C++ compilers masquerading as C compilers
3077 incorrectly reject 9223372036854775807. */
3078 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3079 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3080 && LARGE_OFF_T % 2147483647 == 1)
3082 #ifdef F77_DUMMY_MAIN
3086 int F77_DUMMY_MAIN() { return 1; }
3096 rm -f conftest.$ac_objext
3097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3098 (eval $ac_compile) 2>&5
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); } &&
3102 { ac_try='test -s conftest.$ac_objext'
3103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }; }; then
3108 ac_cv_sys_file_offset_bits=64; break
3110 echo "$as_me: failed program was:" >&5
3111 cat conftest.$ac_ext >&5
3113 rm -f conftest.$ac_objext conftest.$ac_ext
3117 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3118 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3119 if test "$ac_cv_sys_file_offset_bits" != no; then
3121 cat >>confdefs.h <<_ACEOF
3122 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3127 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3128 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3129 if test "${ac_cv_sys_large_files+set}" = set; then
3130 echo $ECHO_N "(cached) $ECHO_C" >&6
3133 ac_cv_sys_large_files=no
3134 cat >conftest.$ac_ext <<_ACEOF
3135 #line $LINENO "configure"
3136 #include "confdefs.h"
3137 #include <sys/types.h>
3138 /* Check that off_t can represent 2**63 - 1 correctly.
3139 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3140 since some C++ compilers masquerading as C compilers
3141 incorrectly reject 9223372036854775807. */
3142 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3143 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3144 && LARGE_OFF_T % 2147483647 == 1)
3146 #ifdef F77_DUMMY_MAIN
3150 int F77_DUMMY_MAIN() { return 1; }
3160 rm -f conftest.$ac_objext
3161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3162 (eval $ac_compile) 2>&5
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); } &&
3166 { ac_try='test -s conftest.$ac_objext'
3167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); }; }; then
3174 echo "$as_me: failed program was:" >&5
3175 cat conftest.$ac_ext >&5
3177 rm -f conftest.$ac_objext conftest.$ac_ext
3178 cat >conftest.$ac_ext <<_ACEOF
3179 #line $LINENO "configure"
3180 #include "confdefs.h"
3181 #define _LARGE_FILES 1
3182 #include <sys/types.h>
3183 /* Check that off_t can represent 2**63 - 1 correctly.
3184 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3185 since some C++ compilers masquerading as C compilers
3186 incorrectly reject 9223372036854775807. */
3187 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3188 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3189 && LARGE_OFF_T % 2147483647 == 1)
3191 #ifdef F77_DUMMY_MAIN
3195 int F77_DUMMY_MAIN() { return 1; }
3205 rm -f conftest.$ac_objext
3206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3207 (eval $ac_compile) 2>&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); } &&
3211 { ac_try='test -s conftest.$ac_objext'
3212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); }; }; then
3217 ac_cv_sys_large_files=1; break
3219 echo "$as_me: failed program was:" >&5
3220 cat conftest.$ac_ext >&5
3222 rm -f conftest.$ac_objext conftest.$ac_ext
3226 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3227 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3228 if test "$ac_cv_sys_large_files" != no; then
3230 cat >>confdefs.h <<_ACEOF
3231 #define _LARGE_FILES $ac_cv_sys_large_files
3238 echo checking for underline in external names
3239 test -z "$ASCPP" -a -f /lib/cpp && ASCPP=/lib/cpp
3240 test -z "$ASCPP" && ASCPP="$CC -E"
3241 cat > conftest.c <<EOF
3242 int foo() {return 0;}
3244 eval "$CC -c conftest.c > /dev/null 2>&1"
3245 if nm conftest.$OBJEXT | grep _foo > /dev/null 2>&1 ; then
3248 ASCPP="${ASCPP} -DNO_UNDERLINE"
3250 rm -f _match.$OBJEXT conftest.c conftest.$OBJEXT
3251 if echo "$DEFS" | grep NO_ASM >/dev/null; then
3254 echo checking for assembler
3255 if eval "$ASCPP $srcdir/match.S > _match.s 2>/dev/null"; then
3256 if test ! -s _match.s || grep error < _match.s > /dev/null; then
3258 elif eval "$CC -c _match.s >/dev/null 2>&1" && test -f _match.$OBJEXT; then
3260 cat >>confdefs.h <<\_ACEOF
3264 LIBOBJS="$LIBOBJS match.$OBJEXT"
3265 # Work around automake 1.4 bug
3266 : LIBOBJS="$LIBOBJS match.o"
3269 rm -f _match.s _match.$OBJEXT
3272 echo "$as_me:$LINENO: checking for library containing strerror" >&5
3273 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3274 if test "${ac_cv_search_strerror+set}" = set; then
3275 echo $ECHO_N "(cached) $ECHO_C" >&6
3277 ac_func_search_save_LIBS=$LIBS
3278 ac_cv_search_strerror=no
3279 cat >conftest.$ac_ext <<_ACEOF
3280 #line $LINENO "configure"
3281 #include "confdefs.h"
3283 /* Override any gcc2 internal prototype to avoid an error. */
3287 /* We use char because int might match the return type of a gcc2
3288 builtin and then its argument prototype would still apply. */
3290 #ifdef F77_DUMMY_MAIN
3294 int F77_DUMMY_MAIN() { return 1; }
3304 rm -f conftest.$ac_objext conftest$ac_exeext
3305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3306 (eval $ac_link) 2>&5
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); } &&
3310 { ac_try='test -s conftest$ac_exeext'
3311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); }; }; then
3316 ac_cv_search_strerror="none required"
3318 echo "$as_me: failed program was:" >&5
3319 cat conftest.$ac_ext >&5
3321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3322 if test "$ac_cv_search_strerror" = no; then
3323 for ac_lib in cposix; do
3324 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3325 cat >conftest.$ac_ext <<_ACEOF
3326 #line $LINENO "configure"
3327 #include "confdefs.h"
3329 /* Override any gcc2 internal prototype to avoid an error. */
3333 /* We use char because int might match the return type of a gcc2
3334 builtin and then its argument prototype would still apply. */
3336 #ifdef F77_DUMMY_MAIN
3340 int F77_DUMMY_MAIN() { return 1; }
3350 rm -f conftest.$ac_objext conftest$ac_exeext
3351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3352 (eval $ac_link) 2>&5
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); } &&
3356 { ac_try='test -s conftest$ac_exeext'
3357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }; }; then
3362 ac_cv_search_strerror="-l$ac_lib"
3365 echo "$as_me: failed program was:" >&5
3366 cat conftest.$ac_ext >&5
3368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3371 LIBS=$ac_func_search_save_LIBS
3373 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3374 echo "${ECHO_T}$ac_cv_search_strerror" >&6
3375 if test "$ac_cv_search_strerror" != no; then
3376 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3380 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3381 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3382 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3385 ac_cv_prog_cc_stdc=no
3387 cat >conftest.$ac_ext <<_ACEOF
3388 #line $LINENO "configure"
3389 #include "confdefs.h"
3392 #include <sys/types.h>
3393 #include <sys/stat.h>
3394 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3395 struct buf { int x; };
3396 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3397 static char *e (p, i)
3403 static char *f (char * (*g) (char **, int), char **p, ...)
3408 s = g (p, va_arg (v,int));
3412 int test (int i, double x);
3413 struct s1 {int (*f) (int a);};
3414 struct s2 {int (*f) (double a);};
3415 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3418 #ifdef F77_DUMMY_MAIN
3422 int F77_DUMMY_MAIN() { return 1; }
3427 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3432 # Don't try gcc -ansi; that turns off useful extensions and
3433 # breaks some systems' header files.
3434 # AIX -qlanglvl=ansi
3435 # Ultrix and OSF/1 -std1
3436 # HP-UX 10.20 and later -Ae
3437 # HP-UX older versions -Aa -D_HPUX_SOURCE
3438 # SVR4 -Xc -D__EXTENSIONS__
3439 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3441 CC="$ac_save_CC $ac_arg"
3442 rm -f conftest.$ac_objext
3443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3444 (eval $ac_compile) 2>&5
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); } &&
3448 { ac_try='test -s conftest.$ac_objext'
3449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); }; }; then
3454 ac_cv_prog_cc_stdc=$ac_arg
3457 echo "$as_me: failed program was:" >&5
3458 cat conftest.$ac_ext >&5
3460 rm -f conftest.$ac_objext
3462 rm -f conftest.$ac_ext conftest.$ac_objext
3467 case "x$ac_cv_prog_cc_stdc" in
3469 echo "$as_me:$LINENO: result: none needed" >&5
3470 echo "${ECHO_T}none needed" >&6 ;;
3472 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3473 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3474 CC="$CC $ac_cv_prog_cc_stdc" ;;
3477 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3478 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3479 if test "${ac_cv_c_const+set}" = set; then
3480 echo $ECHO_N "(cached) $ECHO_C" >&6
3482 cat >conftest.$ac_ext <<_ACEOF
3483 #line $LINENO "configure"
3484 #include "confdefs.h"
3486 #ifdef F77_DUMMY_MAIN
3490 int F77_DUMMY_MAIN() { return 1; }
3495 /* FIXME: Include the comments suggested by Paul. */
3497 /* Ultrix mips cc rejects this. */
3498 typedef int charset[2];
3500 /* SunOS 4.1.1 cc rejects this. */
3501 char const *const *ccp;
3503 /* NEC SVR4.0.2 mips cc rejects this. */
3504 struct point {int x, y;};
3505 static struct point const zero = {0,0};
3506 /* AIX XL C 1.02.0.0 rejects this.
3507 It does not let you subtract one const X* pointer from another in
3508 an arm of an if-expression whose if-part is not a constant
3510 const char *g = "string";
3511 ccp = &g + (g ? g-g : 0);
3512 /* HPUX 7.0 cc rejects these. */
3515 ccp = (char const *const *) p;
3516 { /* SCO 3.2v4 cc rejects this. */
3518 char const *s = 0 ? (char *) 0 : (char const *) 0;
3522 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3524 const int *foo = &x[0];
3527 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3528 typedef const int *iptr;
3532 { /* AIX XL C 1.02.0.0 rejects this saying
3533 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3534 struct s { int j; const int *ap[3]; };
3535 struct s *b; b->j = 5;
3537 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3546 rm -f conftest.$ac_objext
3547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3548 (eval $ac_compile) 2>&5
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); } &&
3552 { ac_try='test -s conftest.$ac_objext'
3553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); }; }; then
3560 echo "$as_me: failed program was:" >&5
3561 cat conftest.$ac_ext >&5
3564 rm -f conftest.$ac_objext conftest.$ac_ext
3566 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3567 echo "${ECHO_T}$ac_cv_c_const" >&6
3568 if test $ac_cv_c_const = no; then
3570 cat >>confdefs.h <<\_ACEOF
3576 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3577 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3578 if test "${ac_cv_header_stdc+set}" = set; then
3579 echo $ECHO_N "(cached) $ECHO_C" >&6
3581 cat >conftest.$ac_ext <<_ACEOF
3582 #line $LINENO "configure"
3583 #include "confdefs.h"
3590 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3591 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3593 egrep -v '^ *\+' conftest.er1 >conftest.err
3595 cat conftest.err >&5
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); } >/dev/null; then
3598 if test -s conftest.err; then
3599 ac_cpp_err=$ac_c_preproc_warn_flag
3606 if test -z "$ac_cpp_err"; then
3607 ac_cv_header_stdc=yes
3609 echo "$as_me: failed program was:" >&5
3610 cat conftest.$ac_ext >&5
3611 ac_cv_header_stdc=no
3613 rm -f conftest.err conftest.$ac_ext
3615 if test $ac_cv_header_stdc = yes; then
3616 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3617 cat >conftest.$ac_ext <<_ACEOF
3618 #line $LINENO "configure"
3619 #include "confdefs.h"
3623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3624 egrep "memchr" >/dev/null 2>&1; then
3627 ac_cv_header_stdc=no
3633 if test $ac_cv_header_stdc = yes; then
3634 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3635 cat >conftest.$ac_ext <<_ACEOF
3636 #line $LINENO "configure"
3637 #include "confdefs.h"
3641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3642 egrep "free" >/dev/null 2>&1; then
3645 ac_cv_header_stdc=no
3651 if test $ac_cv_header_stdc = yes; then
3652 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3653 if test "$cross_compiling" = yes; then
3656 cat >conftest.$ac_ext <<_ACEOF
3657 #line $LINENO "configure"
3658 #include "confdefs.h"
3660 #if ((' ' & 0x0FF) == 0x020)
3661 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3662 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3664 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3665 || ('j' <= (c) && (c) <= 'r') \
3666 || ('s' <= (c) && (c) <= 'z'))
3667 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3670 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3675 for (i = 0; i < 256; i++)
3676 if (XOR (islower (i), ISLOWER (i))
3677 || toupper (i) != TOUPPER (i))
3682 rm -f conftest$ac_exeext
3683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3684 (eval $ac_link) 2>&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); }; }; then
3695 echo "$as_me: program exited with status $ac_status" >&5
3696 echo "$as_me: failed program was:" >&5
3697 cat conftest.$ac_ext >&5
3699 ac_cv_header_stdc=no
3701 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3705 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3706 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3707 if test $ac_cv_header_stdc = yes; then
3709 cat >>confdefs.h <<\_ACEOF
3710 #define STDC_HEADERS 1
3715 for ac_header in fcntl.h limits.h memory.h \
3716 stdlib.h string.h sys/utime.h time.h unistd.h utime.h
3718 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3720 echo "$as_me:$LINENO: checking for $ac_header" >&5
3721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3723 echo $ECHO_N "(cached) $ECHO_C" >&6
3725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3726 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3728 # Is the header compilable?
3729 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3730 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3731 cat >conftest.$ac_ext <<_ACEOF
3732 #line $LINENO "configure"
3733 #include "confdefs.h"
3734 $ac_includes_default
3735 #include <$ac_header>
3737 rm -f conftest.$ac_objext
3738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3739 (eval $ac_compile) 2>&5
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); } &&
3743 { ac_try='test -s conftest.$ac_objext'
3744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); }; }; then
3749 ac_header_compiler=yes
3751 echo "$as_me: failed program was:" >&5
3752 cat conftest.$ac_ext >&5
3753 ac_header_compiler=no
3755 rm -f conftest.$ac_objext conftest.$ac_ext
3756 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3757 echo "${ECHO_T}$ac_header_compiler" >&6
3759 # Is the header present?
3760 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3761 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3762 cat >conftest.$ac_ext <<_ACEOF
3763 #line $LINENO "configure"
3764 #include "confdefs.h"
3765 #include <$ac_header>
3767 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3768 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3770 egrep -v '^ *\+' conftest.er1 >conftest.err
3772 cat conftest.err >&5
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); } >/dev/null; then
3775 if test -s conftest.err; then
3776 ac_cpp_err=$ac_c_preproc_warn_flag
3783 if test -z "$ac_cpp_err"; then
3784 ac_header_preproc=yes
3786 echo "$as_me: failed program was:" >&5
3787 cat conftest.$ac_ext >&5
3788 ac_header_preproc=no
3790 rm -f conftest.err conftest.$ac_ext
3791 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3792 echo "${ECHO_T}$ac_header_preproc" >&6
3794 # So? What about this header?
3795 case $ac_header_compiler:$ac_header_preproc in
3797 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3798 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3802 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
3803 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
3804 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3805 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3807 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3809 echo "$as_me:$LINENO: checking for $ac_header" >&5
3810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3814 eval "$as_ac_Header=$ac_header_preproc"
3816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3821 cat >>confdefs.h <<_ACEOF
3822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3829 for ac_func in lstat utime
3831 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3832 echo "$as_me:$LINENO: checking for $ac_func" >&5
3833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3834 if eval "test \"\${$as_ac_var+set}\" = set"; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3837 cat >conftest.$ac_ext <<_ACEOF
3838 #line $LINENO "configure"
3839 #include "confdefs.h"
3840 /* System header to define __stub macros and hopefully few prototypes,
3841 which can conflict with char $ac_func (); below. */
3843 /* Override any gcc2 internal prototype to avoid an error. */
3847 /* We use char because int might match the return type of a gcc2
3848 builtin and then its argument prototype would still apply. */
3852 #ifdef F77_DUMMY_MAIN
3856 int F77_DUMMY_MAIN() { return 1; }
3861 /* The GNU C library defines this for functions which it implements
3862 to always fail with ENOSYS. Some functions are actually named
3863 something starting with __ and the normal name is an alias. */
3864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3874 rm -f conftest.$ac_objext conftest$ac_exeext
3875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3876 (eval $ac_link) 2>&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); } &&
3880 { ac_try='test -s conftest$ac_exeext'
3881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); }; }; then
3886 eval "$as_ac_var=yes"
3888 echo "$as_me: failed program was:" >&5
3889 cat conftest.$ac_ext >&5
3890 eval "$as_ac_var=no"
3892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3895 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3896 if test `eval echo '${'$as_ac_var'}'` = yes; then
3897 cat >>confdefs.h <<_ACEOF
3898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3904 for ac_func in rpmatch
3906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3907 echo "$as_me:$LINENO: checking for $ac_func" >&5
3908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3909 if eval "test \"\${$as_ac_var+set}\" = set"; then
3910 echo $ECHO_N "(cached) $ECHO_C" >&6
3912 cat >conftest.$ac_ext <<_ACEOF
3913 #line $LINENO "configure"
3914 #include "confdefs.h"
3915 /* System header to define __stub macros and hopefully few prototypes,
3916 which can conflict with char $ac_func (); below. */
3918 /* Override any gcc2 internal prototype to avoid an error. */
3922 /* We use char because int might match the return type of a gcc2
3923 builtin and then its argument prototype would still apply. */
3927 #ifdef F77_DUMMY_MAIN
3931 int F77_DUMMY_MAIN() { return 1; }
3936 /* The GNU C library defines this for functions which it implements
3937 to always fail with ENOSYS. Some functions are actually named
3938 something starting with __ and the normal name is an alias. */
3939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3949 rm -f conftest.$ac_objext conftest$ac_exeext
3950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3951 (eval $ac_link) 2>&5
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); } &&
3955 { ac_try='test -s conftest$ac_exeext'
3956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); }; }; then
3961 eval "$as_ac_var=yes"
3963 echo "$as_me: failed program was:" >&5
3964 cat conftest.$ac_ext >&5
3965 eval "$as_ac_var=no"
3967 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3970 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3971 if test `eval echo '${'$as_ac_var'}'` = yes; then
3972 cat >>confdefs.h <<_ACEOF
3973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3977 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
3982 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3983 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3984 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3985 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3987 echo $ECHO_N "(cached) $ECHO_C" >&6
3989 cat >conftest.$ac_ext <<_ACEOF
3990 #line $LINENO "configure"
3991 #include "confdefs.h"
3992 #include <sys/types.h>
3995 #ifdef F77_DUMMY_MAIN
3999 int F77_DUMMY_MAIN() { return 1; }
4010 rm -f conftest.$ac_objext
4011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4012 (eval $ac_compile) 2>&5
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); } &&
4016 { ac_try='test -s conftest.$ac_objext'
4017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); }; }; then
4022 eval "$as_ac_Header=yes"
4024 echo "$as_me: failed program was:" >&5
4025 cat conftest.$ac_ext >&5
4026 eval "$as_ac_Header=no"
4028 rm -f conftest.$ac_objext conftest.$ac_ext
4030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4033 cat >>confdefs.h <<_ACEOF
4034 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4037 ac_header_dirent=$ac_hdr; break
4041 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4042 if test $ac_header_dirent = dirent.h; then
4043 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4044 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4045 if test "${ac_cv_search_opendir+set}" = set; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 ac_func_search_save_LIBS=$LIBS
4049 ac_cv_search_opendir=no
4050 cat >conftest.$ac_ext <<_ACEOF
4051 #line $LINENO "configure"
4052 #include "confdefs.h"
4054 /* Override any gcc2 internal prototype to avoid an error. */
4058 /* We use char because int might match the return type of a gcc2
4059 builtin and then its argument prototype would still apply. */
4061 #ifdef F77_DUMMY_MAIN
4065 int F77_DUMMY_MAIN() { return 1; }
4075 rm -f conftest.$ac_objext conftest$ac_exeext
4076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4077 (eval $ac_link) 2>&5
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); } &&
4081 { ac_try='test -s conftest$ac_exeext'
4082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }; }; then
4087 ac_cv_search_opendir="none required"
4089 echo "$as_me: failed program was:" >&5
4090 cat conftest.$ac_ext >&5
4092 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4093 if test "$ac_cv_search_opendir" = no; then
4094 for ac_lib in dir; do
4095 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4096 cat >conftest.$ac_ext <<_ACEOF
4097 #line $LINENO "configure"
4098 #include "confdefs.h"
4100 /* Override any gcc2 internal prototype to avoid an error. */
4104 /* We use char because int might match the return type of a gcc2
4105 builtin and then its argument prototype would still apply. */
4107 #ifdef F77_DUMMY_MAIN
4111 int F77_DUMMY_MAIN() { return 1; }
4121 rm -f conftest.$ac_objext conftest$ac_exeext
4122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4123 (eval $ac_link) 2>&5
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); } &&
4127 { ac_try='test -s conftest$ac_exeext'
4128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); }; }; then
4133 ac_cv_search_opendir="-l$ac_lib"
4136 echo "$as_me: failed program was:" >&5
4137 cat conftest.$ac_ext >&5
4139 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4142 LIBS=$ac_func_search_save_LIBS
4144 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4145 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4146 if test "$ac_cv_search_opendir" != no; then
4147 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4152 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4153 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4154 if test "${ac_cv_search_opendir+set}" = set; then
4155 echo $ECHO_N "(cached) $ECHO_C" >&6
4157 ac_func_search_save_LIBS=$LIBS
4158 ac_cv_search_opendir=no
4159 cat >conftest.$ac_ext <<_ACEOF
4160 #line $LINENO "configure"
4161 #include "confdefs.h"
4163 /* Override any gcc2 internal prototype to avoid an error. */
4167 /* We use char because int might match the return type of a gcc2
4168 builtin and then its argument prototype would still apply. */
4170 #ifdef F77_DUMMY_MAIN
4174 int F77_DUMMY_MAIN() { return 1; }
4184 rm -f conftest.$ac_objext conftest$ac_exeext
4185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4186 (eval $ac_link) 2>&5
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); } &&
4190 { ac_try='test -s conftest$ac_exeext'
4191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; }; then
4196 ac_cv_search_opendir="none required"
4198 echo "$as_me: failed program was:" >&5
4199 cat conftest.$ac_ext >&5
4201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4202 if test "$ac_cv_search_opendir" = no; then
4204 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4205 cat >conftest.$ac_ext <<_ACEOF
4206 #line $LINENO "configure"
4207 #include "confdefs.h"
4209 /* Override any gcc2 internal prototype to avoid an error. */
4213 /* We use char because int might match the return type of a gcc2
4214 builtin and then its argument prototype would still apply. */
4216 #ifdef F77_DUMMY_MAIN
4220 int F77_DUMMY_MAIN() { return 1; }
4230 rm -f conftest.$ac_objext conftest$ac_exeext
4231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4232 (eval $ac_link) 2>&5
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); } &&
4236 { ac_try='test -s conftest$ac_exeext'
4237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); }; }; then
4242 ac_cv_search_opendir="-l$ac_lib"
4245 echo "$as_me: failed program was:" >&5
4246 cat conftest.$ac_ext >&5
4248 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4251 LIBS=$ac_func_search_save_LIBS
4253 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4254 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4255 if test "$ac_cv_search_opendir" != no; then
4256 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4262 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4263 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4264 if test "${ac_cv_type_signal+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 cat >conftest.$ac_ext <<_ACEOF
4268 #line $LINENO "configure"
4269 #include "confdefs.h"
4270 #include <sys/types.h>
4276 extern "C" void (*signal (int, void (*)(int)))(int);
4278 void (*signal ()) ();
4281 #ifdef F77_DUMMY_MAIN
4285 int F77_DUMMY_MAIN() { return 1; }
4295 rm -f conftest.$ac_objext
4296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4297 (eval $ac_compile) 2>&5
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); } &&
4301 { ac_try='test -s conftest.$ac_objext'
4302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); }; }; then
4307 ac_cv_type_signal=void
4309 echo "$as_me: failed program was:" >&5
4310 cat conftest.$ac_ext >&5
4311 ac_cv_type_signal=int
4313 rm -f conftest.$ac_objext conftest.$ac_ext
4315 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4316 echo "${ECHO_T}$ac_cv_type_signal" >&6
4318 cat >>confdefs.h <<_ACEOF
4319 #define RETSIGTYPE $ac_cv_type_signal
4322 echo "$as_me:$LINENO: checking for size_t" >&5
4323 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4324 if test "${ac_cv_type_size_t+set}" = set; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
4327 cat >conftest.$ac_ext <<_ACEOF
4328 #line $LINENO "configure"
4329 #include "confdefs.h"
4330 $ac_includes_default
4331 #ifdef F77_DUMMY_MAIN
4335 int F77_DUMMY_MAIN() { return 1; }
4342 if (sizeof (size_t))
4348 rm -f conftest.$ac_objext
4349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4350 (eval $ac_compile) 2>&5
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); } &&
4354 { ac_try='test -s conftest.$ac_objext'
4355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); }; }; then
4360 ac_cv_type_size_t=yes
4362 echo "$as_me: failed program was:" >&5
4363 cat conftest.$ac_ext >&5
4364 ac_cv_type_size_t=no
4366 rm -f conftest.$ac_objext conftest.$ac_ext
4368 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4369 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4370 if test $ac_cv_type_size_t = yes; then
4374 cat >>confdefs.h <<_ACEOF
4375 #define size_t unsigned
4380 echo "$as_me:$LINENO: checking for off_t" >&5
4381 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4382 if test "${ac_cv_type_off_t+set}" = set; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
4385 cat >conftest.$ac_ext <<_ACEOF
4386 #line $LINENO "configure"
4387 #include "confdefs.h"
4388 $ac_includes_default
4389 #ifdef F77_DUMMY_MAIN
4393 int F77_DUMMY_MAIN() { return 1; }
4406 rm -f conftest.$ac_objext
4407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4408 (eval $ac_compile) 2>&5
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); } &&
4412 { ac_try='test -s conftest.$ac_objext'
4413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); }; }; then
4418 ac_cv_type_off_t=yes
4420 echo "$as_me: failed program was:" >&5
4421 cat conftest.$ac_ext >&5
4424 rm -f conftest.$ac_objext conftest.$ac_ext
4426 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4427 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4428 if test $ac_cv_type_off_t = yes; then
4432 cat >>confdefs.h <<_ACEOF
4438 echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
4439 echo $ECHO_N "checking whether #! works in shell scripts... $ECHO_C" >&6
4440 if test "${ac_cv_sys_interpreter+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4447 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null)
4448 if test $? -ne 69; then
4449 ac_cv_sys_interpreter=yes
4451 ac_cv_sys_interpreter=no
4455 echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
4456 echo "${ECHO_T}$ac_cv_sys_interpreter" >&6
4457 interpval=$ac_cv_sys_interpreter
4464 if test "x$prefix" = xNONE; then
4465 echo $ECHO_N "checking for prefix by$ECHO_C" >&6
4466 # Extract the first word of "gzip", so it can be a program name with args.
4467 set dummy gzip; ac_word=$2
4468 echo "$as_me:$LINENO: checking for $ac_word" >&5
4469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4470 if test "${ac_cv_path_GZIP+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4475 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 test -z "$as_dir" && as_dir=.
4483 for ac_exec_ext in '' $ac_executable_extensions; do
4484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4485 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
4486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 GZIP=$ac_cv_path_GZIP
4497 if test -n "$GZIP"; then
4498 echo "$as_me:$LINENO: result: $GZIP" >&5
4499 echo "${ECHO_T}$GZIP" >&6
4501 echo "$as_me:$LINENO: result: no" >&5
4502 echo "${ECHO_T}no" >&6
4505 if test -n "$ac_cv_path_GZIP"; then
4506 prefix=`(dirname "$ac_cv_path_GZIP") 2>/dev/null ||
4507 $as_expr X"$ac_cv_path_GZIP" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4508 X"$ac_cv_path_GZIP" : 'X\(//\)[^/]' \| \
4509 X"$ac_cv_path_GZIP" : 'X\(//\)$' \| \
4510 X"$ac_cv_path_GZIP" : 'X\(/\)' \| \
4511 . : '\(.\)' 2>/dev/null ||
4512 echo X"$ac_cv_path_GZIP" |
4513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4514 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4515 /^X\(\/\/\)$/{ s//\1/; q; }
4516 /^X\(\/\).*/{ s//\1/; q; }
4518 prefix=`(dirname "$prefix") 2>/dev/null ||
4519 $as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4520 X"$prefix" : 'X\(//\)[^/]' \| \
4521 X"$prefix" : 'X\(//\)$' \| \
4522 X"$prefix" : 'X\(/\)' \| \
4523 . : '\(.\)' 2>/dev/null ||
4525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4526 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4527 /^X\(\/\/\)$/{ s//\1/; q; }
4528 /^X\(\/\).*/{ s//\1/; q; }
4533 ac_config_files="$ac_config_files Makefile"
4534 cat >confcache <<\_ACEOF
4535 # This file is a shell script that caches the results of configure
4536 # tests run on this system so they can be shared between configure
4537 # scripts and configure runs, see configure's option --config-cache.
4538 # It is not useful on other systems. If it contains results you don't
4539 # want to keep, you may remove or edit it.
4541 # config.status only pays attention to the cache file if you give it
4542 # the --recheck option to rerun configure.
4544 # `ac_cv_env_foo' variables (set or unset) will be overriden when
4545 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4550 # The following way of writing the cache mishandles newlines in values,
4551 # but we know of no workaround that is simple, portable, and efficient.
4552 # So, don't put newlines in cache variables' values.
4553 # Ultrix sh set writes to stderr and can't be redirected directly,
4554 # and sets the high bit in the cache file unless we assign to the vars.
4557 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4559 # `set' does not quote correctly, so add quotes (double-quote
4560 # substitution turns \\\\ into \\, and sed turns \\ into \).
4563 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4566 # `set' quotes correctly as required by POSIX, so do not add quotes.
4568 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4575 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4577 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4579 if cmp -s $cache_file confcache; then :; else
4580 if test -w $cache_file; then
4581 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4582 cat confcache >$cache_file
4584 echo "not updating unwritable cache $cache_file"
4589 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4590 # Let make expand exec_prefix.
4591 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4593 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4594 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4595 # trailing colons and then remove the whole line if VPATH becomes empty
4596 # (actually we leave an empty line to preserve line numbers).
4597 if test "x$srcdir" = x.; then
4598 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4599 s/:*\$(srcdir):*/:/;
4600 s/:*\${srcdir}:*/:/;
4602 s/^\([^=]*=[ ]*\):*/\1/;
4608 DEFS=-DHAVE_CONFIG_H
4610 : ${CONFIG_STATUS=./config.status}
4611 ac_clean_files_save=$ac_clean_files
4612 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4613 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4614 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4615 cat >$CONFIG_STATUS <<_ACEOF
4617 # Generated by $as_me.
4618 # Run this file to recreate the current configuration.
4619 # Compiler output produced by configure, useful for debugging
4620 # configure, is in config.log if it exists.
4623 SHELL=\${CONFIG_SHELL-$SHELL}
4626 cat >>$CONFIG_STATUS <<\_ACEOF
4628 ## --------------------- ##
4629 ## M4sh Initialization. ##
4630 ## --------------------- ##
4632 # Be Bourne compatible
4633 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4636 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4641 # Support unset when possible.
4642 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4648 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
4649 { $as_unset LANG || test "${LANG+set}" != set; } ||
4650 { LANG=C; export LANG; }
4651 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
4652 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
4653 { LC_ALL=C; export LC_ALL; }
4654 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
4655 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
4656 { LC_TIME=C; export LC_TIME; }
4657 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
4658 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
4659 { LC_CTYPE=C; export LC_CTYPE; }
4660 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
4661 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
4662 { LANGUAGE=C; export LANGUAGE; }
4663 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
4664 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
4665 { LC_COLLATE=C; export LC_COLLATE; }
4666 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
4667 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
4668 { LC_NUMERIC=C; export LC_NUMERIC; }
4669 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
4670 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
4671 { LC_MESSAGES=C; export LC_MESSAGES; }
4673 # Name of the executable.
4674 as_me=`(basename "$0") 2>/dev/null ||
4675 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4676 X"$0" : 'X\(//\)$' \| \
4677 X"$0" : 'X\(/\)$' \| \
4678 . : '\(.\)' 2>/dev/null ||
4680 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4681 /^X\/\(\/\/\)$/{ s//\1/; q; }
4682 /^X\/\(\/\).*/{ s//\1/; q; }
4685 # PATH needs CR, and LINENO needs CR and PATH.
4686 # Avoid depending upon Character Ranges.
4687 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4688 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4689 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4690 as_cr_digits='0123456789'
4691 as_cr_alnum=$as_cr_Letters$as_cr_digits
4693 # The user is always right.
4694 if test "${PATH_SEPARATOR+set}" != set; then
4695 echo "#! $SHELL" >conftest.sh
4696 echo "exit 0" >>conftest.sh
4697 chmod +x conftest.sh
4698 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
4708 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4709 test "x$as_lineno_1" != "x$as_lineno_2" &&
4710 test "x$as_lineno_3" = "x$as_lineno_2" || {
4711 # Find who we are. Look in the path if we contain no path at all
4714 *[\\/]* ) as_myself=$0 ;;
4715 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719 test -z "$as_dir" && as_dir=.
4720 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4725 # We did not find ourselves, most probably we were run as `sh COMMAND'
4726 # in which case we are not to be found in the path.
4727 if test "x$as_myself" = x; then
4730 if test ! -f "$as_myself"; then
4731 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4732 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4733 { (exit 1); exit 1; }; }
4735 case $CONFIG_SHELL in
4737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738 for as_dir in /bin:/usr/bin:$PATH
4741 test -z "$as_dir" && as_dir=.
4742 for as_base in sh bash ksh sh5; do
4745 if ("$as_dir/$as_base" -c '
4748 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4749 test "x$as_lineno_1" != "x$as_lineno_2" &&
4750 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4751 CONFIG_SHELL=$as_dir/$as_base
4753 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4761 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4762 # uniformly replaced by the line number. The first 'sed' inserts a
4763 # line-number line before each line; the second 'sed' does the real
4764 # work. The second script uses 'N' to pair each line-number line
4765 # with the numbered line, and appends trailing '-' during
4766 # substitution so that $LINENO is not a special case at line end.
4767 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4768 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4769 sed '=' <$as_myself |
4774 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4777 s,^['$as_cr_digits']*\n,,
4779 chmod +x $as_me.lineno ||
4780 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4781 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4782 { (exit 1); exit 1; }; }
4784 # Don't try to exec as it changes $[0], causing all sort of problems
4785 # (the dirname of $[0] is not the place where we might find the
4786 # original and so on. Autoconf is especially sensible to this).
4788 # Exit status is that of the last command.
4792 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4793 *c*,-n*) ECHO_N= ECHO_C='
4795 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4796 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4799 if expr a : '\(a\)' >/dev/null 2>&1; then
4805 rm -f conf$$ conf$$.exe conf$$.file
4807 if ln -s conf$$.file conf$$ 2>/dev/null; then
4808 # We could just check for DJGPP; but this test a) works b) is more generic
4809 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4810 if test -f conf$$.exe; then
4811 # Don't use ln at all; we don't have any links
4816 elif ln conf$$.file conf$$ 2>/dev/null; then
4821 rm -f conf$$ conf$$.exe conf$$.file
4823 as_executable_p="test -f"
4825 # Sed expression to map a string onto a valid CPP name.
4826 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
4828 # Sed expression to map a string onto a valid variable name.
4829 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
4832 # We need space, tab and new line, in precisely that order.
4838 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
4842 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4843 # report actual input values of CONFIG_FILES etc. instead of their
4844 # values after options handling. Logging --version etc. is OK.
4848 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4849 ## Running $as_me. ##
4854 This file was extended by $as_me, which was
4855 generated by GNU Autoconf 2.52f. Invocation command line was
4857 CONFIG_FILES = $CONFIG_FILES
4858 CONFIG_HEADERS = $CONFIG_HEADERS
4859 CONFIG_LINKS = $CONFIG_LINKS
4860 CONFIG_COMMANDS = $CONFIG_COMMANDS
4864 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4868 # Files that config.status was made for.
4869 if test -n "$ac_config_files"; then
4870 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4873 if test -n "$ac_config_headers"; then
4874 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4877 if test -n "$ac_config_links"; then
4878 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4881 if test -n "$ac_config_commands"; then
4882 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4885 cat >>$CONFIG_STATUS <<\_ACEOF
4888 \`$as_me' instantiates files from templates according to the
4889 current configuration.
4891 Usage: $0 [OPTIONS] [FILE]...
4893 -h, --help print this help, then exit
4894 -V, --version print version number, then exit
4895 -d, --debug don't remove temporary files
4896 --recheck update $as_me by reconfiguring in the same conditions
4897 --file=FILE[:TEMPLATE]
4898 instantiate the configuration file FILE
4899 --header=FILE[:TEMPLATE]
4900 instantiate the configuration header FILE
4902 Configuration files:
4905 Configuration headers:
4908 Configuration commands:
4911 Report bugs to <bug-autoconf@gnu.org>."
4914 cat >>$CONFIG_STATUS <<_ACEOF
4917 configured by $0, generated by GNU Autoconf 2.52f,
4918 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4920 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4921 Free Software Foundation, Inc.
4922 This config.status script is free software; the Free Software Foundation
4923 gives unlimited permission to copy, distribute and modify it."
4928 cat >>$CONFIG_STATUS <<\_ACEOF
4929 # If no file are specified by the user, then we need to provide default
4930 # value. By we need to know if files were specified by the user.
4936 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4937 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4939 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
4943 *) # This is not an option, so the user has probably given explicit
4945 ac_need_defaults=false;;
4949 # Handling of the options.
4951 cat >>$CONFIG_STATUS <<_ACEOF
4952 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4953 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
4954 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
4956 cat >>$CONFIG_STATUS <<\_ACEOF
4957 --version | --vers* | -V )
4958 echo "$ac_cs_version"; exit 0 ;;
4960 # Conflict between --help and --header
4961 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4962 Try \`$0 --help' for more information." >&5
4963 echo "$as_me: error: ambiguous option: $1
4964 Try \`$0 --help' for more information." >&2;}
4965 { (exit 1); exit 1; }; };;
4966 --help | --hel | -h )
4967 echo "$ac_cs_usage"; exit 0 ;;
4968 --debug | --d* | -d )
4970 --file | --fil | --fi | --f )
4972 CONFIG_FILES="$CONFIG_FILES $1"
4973 ac_need_defaults=false;;
4974 --header | --heade | --head | --hea )
4976 CONFIG_HEADERS="$CONFIG_HEADERS $1"
4977 ac_need_defaults=false;;
4980 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4981 Try \`$0 --help' for more information." >&5
4982 echo "$as_me: error: unrecognized option: $1
4983 Try \`$0 --help' for more information." >&2;}
4984 { (exit 1); exit 1; }; } ;;
4986 *) ac_config_targets="$ac_config_targets $1" ;;
4994 cat >>$CONFIG_STATUS <<_ACEOF
4996 # INIT-COMMANDS section.
4999 AMDEP_TRUE="$AMDEP_TRUE"
5000 ac_aux_dir="$ac_aux_dir"
5004 cat >>$CONFIG_STATUS <<\_ACEOF
5005 for ac_config_target in $ac_config_targets
5007 case "$ac_config_target" in
5008 # Handling of arguments.
5009 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5010 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
5011 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5012 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5013 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5014 { (exit 1); exit 1; }; };;
5018 # If the user did not use the arguments to specify the items to instantiate,
5019 # then the envvar interface is used. Set only those that are not.
5020 # We use the long form for the default assignment because of an extremely
5021 # bizarre bug on SunOS 4.1.3.
5022 if $ac_need_defaults; then
5023 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5024 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5025 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5028 # Create a temporary directory, and hook for its removal unless debugging.
5031 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5032 trap '{ (exit 1); exit 1; }' 1 2 13 15
5035 # Create a (secure) tmp directory for tmp files.
5038 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5039 test -n "$tmp" && test -d "$tmp"
5042 tmp=$TMPDIR/cs$$-$RANDOM
5043 (umask 077 && mkdir $tmp)
5046 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5047 { (exit 1); exit 1; }
5052 cat >>$CONFIG_STATUS <<_ACEOF
5055 # CONFIG_FILES section.
5058 # No need to generate the scripts if there are no CONFIG_FILES.
5059 # This happens for instance when ./config.status config.h
5060 if test -n "\$CONFIG_FILES"; then
5061 # Protect against being on the right side of a sed subst in config.status.
5062 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5063 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5064 s,@SHELL@,$SHELL,;t t
5065 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5066 s,@exec_prefix@,$exec_prefix,;t t
5067 s,@prefix@,$prefix,;t t
5068 s,@program_transform_name@,$program_transform_name,;t t
5069 s,@bindir@,$bindir,;t t
5070 s,@sbindir@,$sbindir,;t t
5071 s,@libexecdir@,$libexecdir,;t t
5072 s,@datadir@,$datadir,;t t
5073 s,@sysconfdir@,$sysconfdir,;t t
5074 s,@sharedstatedir@,$sharedstatedir,;t t
5075 s,@localstatedir@,$localstatedir,;t t
5076 s,@libdir@,$libdir,;t t
5077 s,@includedir@,$includedir,;t t
5078 s,@oldincludedir@,$oldincludedir,;t t
5079 s,@infodir@,$infodir,;t t
5080 s,@mandir@,$mandir,;t t
5081 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5082 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5083 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5084 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5085 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5086 s,@build_alias@,$build_alias,;t t
5087 s,@host_alias@,$host_alias,;t t
5088 s,@target_alias@,$target_alias,;t t
5090 s,@ECHO_C@,$ECHO_C,;t t
5091 s,@ECHO_N@,$ECHO_N,;t t
5092 s,@ECHO_T@,$ECHO_T,;t t
5094 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5095 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5096 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5097 s,@PACKAGE@,$PACKAGE,;t t
5098 s,@VERSION@,$VERSION,;t t
5099 s,@EXEEXT@,$EXEEXT,;t t
5100 s,@OBJEXT@,$OBJEXT,;t t
5101 s,@ACLOCAL@,$ACLOCAL,;t t
5102 s,@AUTOCONF@,$AUTOCONF,;t t
5103 s,@AUTOMAKE@,$AUTOMAKE,;t t
5104 s,@AUTOHEADER@,$AUTOHEADER,;t t
5105 s,@MAKEINFO@,$MAKEINFO,;t t
5106 s,@AMTAR@,$AMTAR,;t t
5107 s,@install_sh@,$install_sh,;t t
5108 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
5110 s,@SET_MAKE@,$SET_MAKE,;t t
5111 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
5112 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
5113 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
5114 s,@DEPDIR@,$DEPDIR,;t t
5116 s,@CFLAGS@,$CFLAGS,;t t
5117 s,@LDFLAGS@,$LDFLAGS,;t t
5118 s,@CPPFLAGS@,$CPPFLAGS,;t t
5119 s,@ac_ct_CC@,$ac_ct_CC,;t t
5120 s,@am__include@,$am__include,;t t
5121 s,@am__quote@,$am__quote,;t t
5122 s,@CCDEPMODE@,$CCDEPMODE,;t t
5125 s,@LIBOBJS@,$LIBOBJS,;t t
5127 s,@ASCPP@,$ASCPP,;t t
5128 s,@SEDCMD@,$SEDCMD,;t t
5133 cat >>$CONFIG_STATUS <<\_ACEOF
5134 # Split the substitutions into bite-sized pieces for seds with
5135 # small command number limits, like on Digital OSF/1 and HP-UX.
5137 ac_sed_frag=1 # Number of current file.
5138 ac_beg=1 # First line for current file.
5139 ac_end=$ac_max_sed_lines # Line after last line for current file.
5142 while $ac_more_lines; do
5143 if test $ac_beg -gt 1; then
5144 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5146 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5148 if test ! -s $tmp/subs.frag; then
5151 # The purpose of the label and of the branching condition is to
5152 # speed up the sed processing (if there are no `@' at all, there
5153 # is no need to browse any of the substitutions).
5154 # These are the two extra sed commands mentioned above.
5156 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5157 if test -z "$ac_sed_cmds"; then
5158 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5160 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5162 ac_sed_frag=`expr $ac_sed_frag + 1`
5164 ac_end=`expr $ac_end + $ac_max_sed_lines`
5167 if test -z "$ac_sed_cmds"; then
5170 fi # test -n "$CONFIG_FILES"
5173 cat >>$CONFIG_STATUS <<\_ACEOF
5174 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5175 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5177 - | *:- | *:-:* ) # input from stdin
5179 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5180 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5181 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5182 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5183 * ) ac_file_in=$ac_file.in ;;
5186 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5187 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5188 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5189 X"$ac_file" : 'X\(//\)[^/]' \| \
5190 X"$ac_file" : 'X\(//\)$' \| \
5191 X"$ac_file" : 'X\(/\)' \| \
5192 . : '\(.\)' 2>/dev/null ||
5194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5195 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5196 /^X\(\/\/\)$/{ s//\1/; q; }
5197 /^X\(\/\).*/{ s//\1/; q; }
5200 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5204 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5205 case $as_mkdir_dir in
5206 # Skip DOS drivespec
5207 ?:) as_incr_dir=$as_mkdir_dir ;;
5209 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5210 test -d "$as_incr_dir" ||
5211 mkdir "$as_incr_dir" ||
5212 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
5213 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
5214 { (exit 1); exit 1; }; }
5221 if test "$ac_dir" != .; then
5222 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5223 # A "../" for each directory in $ac_dir_suffix.
5224 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5226 ac_dir_suffix= ac_top_builddir=
5230 .) # No --srcdir option. We are building in place.
5232 if test -z "$ac_top_builddir"; then
5235 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5237 [\\/]* | ?:[\\/]* ) # Absolute path.
5238 ac_srcdir=$srcdir$ac_dir_suffix;
5239 ac_top_srcdir=$srcdir ;;
5241 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5242 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5244 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5246 ac_buildpath=`cd "$ac_dir" && cd $ac_builddir && pwd`
5247 ac_top_buildpath=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
5248 ac_srcpath=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5249 ac_top_srcpath=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5252 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5253 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5256 if test x"$ac_file" != x-; then
5257 { echo "$as_me:$LINENO: creating $ac_file" >&5
5258 echo "$as_me: creating $ac_file" >&6;}
5261 # Let's still pretend it is `configure' which instantiates (i.e., don't
5262 # use $as_me), people would be surprised to read:
5263 # /* config.h. Generated by config.status. */
5264 if test x"$ac_file" = x-; then
5267 configure_input="$ac_file. "
5269 configure_input=$configure_input"Generated from `echo $ac_file_in |
5270 sed 's,.*/,,'` by configure."
5272 # First look for the input files in the build tree, otherwise in the
5274 ac_file_inputs=`IFS=:
5275 for f in $ac_file_in; do
5277 -) echo $tmp/stdin ;;
5279 # Absolute (can't be DOS-style, as IFS=:)
5280 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5281 echo "$as_me: error: cannot find input file: $f" >&2;}
5282 { (exit 1); exit 1; }; }
5285 if test -f "$f"; then
5288 elif test -f "$srcdir/$f"; then
5293 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5294 echo "$as_me: error: cannot find input file: $f" >&2;}
5295 { (exit 1); exit 1; }; }
5298 done` || { (exit 1); exit 1; }
5300 cat >>$CONFIG_STATUS <<_ACEOF
5304 cat >>$CONFIG_STATUS <<\_ACEOF
5306 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5307 s,@configure_input@,$configure_input,;t t
5308 s,@srcdir@,$ac_srcdir,;t t
5309 s,@srcpath@,$ac_srcpath,;t t
5310 s,@top_srcdir@,$ac_top_srcdir,;t t
5311 s,@top_srcpath@,$ac_top_srcpath,;t t
5312 s,@builddir@,$ac_builddir,;t t
5313 s,@buildpath@,$ac_buildpath,;t t
5314 s,@top_builddir@,$ac_top_builddir,;t t
5315 s,@top_buildpath@,$ac_top_buildpath,;t t
5316 s,@INSTALL@,$ac_INSTALL,;t t
5317 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5319 if test x"$ac_file" != x-; then
5320 mv $tmp/out $ac_file
5328 cat >>$CONFIG_STATUS <<\_ACEOF
5331 # CONFIG_HEADER section.
5334 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5335 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5337 # ac_d sets the value in "#define NAME VALUE" lines.
5338 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5339 ac_dB='[ ].*$,\1#\2'
5342 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5343 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5344 ac_uB='$,\1#\2define\3'
5348 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5349 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5351 - | *:- | *:-:* ) # input from stdin
5353 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5354 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5355 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5356 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5357 * ) ac_file_in=$ac_file.in ;;
5360 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5361 echo "$as_me: creating $ac_file" >&6;}
5363 # First look for the input files in the build tree, otherwise in the
5365 ac_file_inputs=`IFS=:
5366 for f in $ac_file_in; do
5368 -) echo $tmp/stdin ;;
5370 # Absolute (can't be DOS-style, as IFS=:)
5371 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5372 echo "$as_me: error: cannot find input file: $f" >&2;}
5373 { (exit 1); exit 1; }; }
5376 if test -f "$f"; then
5379 elif test -f "$srcdir/$f"; then
5384 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5385 echo "$as_me: error: cannot find input file: $f" >&2;}
5386 { (exit 1); exit 1; }; }
5389 done` || { (exit 1); exit 1; }
5390 # Remove the trailing spaces.
5391 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5395 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5396 # `conftest.undefs', that substitutes the proper values into
5397 # config.h.in to produce config.h. The first handles `#define'
5398 # templates, and the second `#undef' templates.
5399 # And first: Protect against being on the right side of a sed subst in
5400 # config.status. Protect against being in an unquoted here document
5402 rm -f conftest.defines conftest.undefs
5403 # Using a here document instead of a string reduces the quoting nightmare.
5404 # Putting comments in sed scripts is not portable.
5406 # `end' is used to avoid that the second main sed command (meant for
5407 # 0-ary CPP macros) applies to n-ary macro definitions.
5408 # See the Autoconf documentation for `clear'.
5409 cat >confdef2sed.sed <<\_ACEOF
5414 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5416 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5419 # If some macros were called several times there might be several times
5420 # the same #defines, which is useless. Nevertheless, we may not want to
5421 # sort them, since we want the *last* AC-DEFINE to be honored.
5422 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5423 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5424 rm -f confdef2sed.sed
5426 # This sed command replaces #undef with comments. This is necessary, for
5427 # example, in the case of _POSIX_SOURCE, which is predefined and required
5428 # on some systems where configure will not decide to define it.
5429 cat >>conftest.undefs <<\_ACEOF
5430 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5433 # Break up conftest.defines because some shells have a limit on the size
5434 # of here documents, and old seds have small limits too (100 cmds).
5435 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5436 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5437 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5438 echo ' :' >>$CONFIG_STATUS
5440 while grep . conftest.defines >/dev/null
5442 # Write a limited-size here document to $tmp/defines.sed.
5443 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5444 # Speed up: don't consider the non `#define' lines.
5445 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5446 # Work around the forget-to-reset-the-flag bug.
5447 echo 't clr' >>$CONFIG_STATUS
5448 echo ': clr' >>$CONFIG_STATUS
5449 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5451 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5455 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5456 rm -f conftest.defines
5457 mv conftest.tail conftest.defines
5459 rm -f conftest.defines
5460 echo ' fi # egrep' >>$CONFIG_STATUS
5461 echo >>$CONFIG_STATUS
5463 # Break up conftest.undefs because some shells have a limit on the size
5464 # of here documents, and old seds have small limits too (100 cmds).
5465 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5467 while grep . conftest.undefs >/dev/null
5469 # Write a limited-size here document to $tmp/undefs.sed.
5470 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5471 # Speed up: don't consider the non `#undef'
5472 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5473 # Work around the forget-to-reset-the-flag bug.
5474 echo 't clr' >>$CONFIG_STATUS
5475 echo ': clr' >>$CONFIG_STATUS
5476 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5478 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5482 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5483 rm -f conftest.undefs
5484 mv conftest.tail conftest.undefs
5486 rm -f conftest.undefs
5488 cat >>$CONFIG_STATUS <<\_ACEOF
5489 # Let's still pretend it is `configure' which instantiates (i.e., don't
5490 # use $as_me), people would be surprised to read:
5491 # /* config.h. Generated by config.status. */
5492 if test x"$ac_file" = x-; then
5493 echo "/* Generated by configure. */" >$tmp/config.h
5495 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5497 cat $tmp/in >>$tmp/config.h
5499 if test x"$ac_file" != x-; then
5500 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
5501 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5502 echo "$as_me: $ac_file is unchanged" >&6;}
5504 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5505 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5506 X"$ac_file" : 'X\(//\)[^/]' \| \
5507 X"$ac_file" : 'X\(//\)$' \| \
5508 X"$ac_file" : 'X\(/\)' \| \
5509 . : '\(.\)' 2>/dev/null ||
5511 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5512 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5513 /^X\(\/\/\)$/{ s//\1/; q; }
5514 /^X\(\/\).*/{ s//\1/; q; }
5517 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5521 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5522 case $as_mkdir_dir in
5523 # Skip DOS drivespec
5524 ?:) as_incr_dir=$as_mkdir_dir ;;
5526 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5527 test -d "$as_incr_dir" ||
5528 mkdir "$as_incr_dir" ||
5529 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
5530 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
5531 { (exit 1); exit 1; }; }
5537 mv $tmp/config.h $ac_file
5543 # Run the commands associated with the file.
5545 config.h ) # update the timestamp
5546 echo timestamp >"./stamp-h"
5551 cat >>$CONFIG_STATUS <<\_ACEOF
5554 # CONFIG_COMMANDS section.
5556 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5557 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5558 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5559 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5560 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5561 X"$ac_dest" : 'X\(//\)[^/]' \| \
5562 X"$ac_dest" : 'X\(//\)$' \| \
5563 X"$ac_dest" : 'X\(/\)' \| \
5564 . : '\(.\)' 2>/dev/null ||
5566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5567 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5568 /^X\(\/\/\)$/{ s//\1/; q; }
5569 /^X\(\/\).*/{ s//\1/; q; }
5573 if test "$ac_dir" != .; then
5574 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5575 # A "../" for each directory in $ac_dir_suffix.
5576 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5578 ac_dir_suffix= ac_top_builddir=
5582 .) # No --srcdir option. We are building in place.
5584 if test -z "$ac_top_builddir"; then
5587 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5589 [\\/]* | ?:[\\/]* ) # Absolute path.
5590 ac_srcdir=$srcdir$ac_dir_suffix;
5591 ac_top_srcdir=$srcdir ;;
5593 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5594 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5596 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5598 ac_buildpath=`cd "$ac_dir" && cd $ac_builddir && pwd`
5599 ac_top_buildpath=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
5600 ac_srcpath=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5601 ac_top_srcpath=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5603 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5604 echo "$as_me: executing $ac_dest commands" >&6;}
5607 test x"$AMDEP_TRUE" != x"" ||
5608 for mf in $CONFIG_FILES; do
5610 Makefile) dirpart=.;;
5611 */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
5614 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
5615 # Extract the definition of DEP_FILES from the Makefile without
5617 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
5618 test -z "$DEPDIR" && continue
5619 # When using ansi2knr, U may be empty or an underscore; expand it
5620 U=`sed -n -e '/^U = / s///p' < "$mf"`
5621 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
5622 # We invoke sed twice because it is the simplest approach to
5623 # changing $(DEPDIR) to its actual value in the expansion.
5624 for file in `sed -n -e '
5625 /^DEP_FILES = .*\\\\$/ {
5634 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
5635 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
5636 # Make sure the directory exists.
5637 test -f "$dirpart/$file" && continue
5638 fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
5639 $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
5640 # echo "creating $dirpart/$file"
5641 echo '# dummy' > "$dirpart/$file"
5649 cat >>$CONFIG_STATUS <<\_ACEOF
5651 { (exit 0); exit 0; }
5653 chmod +x $CONFIG_STATUS
5654 ac_clean_files=$ac_clean_files_save
5656 # configure is writing to config.log, and then calls config.status.
5657 # config.status does its own redirection, appending to config.log.
5658 # Unfortunately, on DOS this fails, as config.log is still kept open
5659 # by configure, so config.status won't be able to write to it; its
5660 # output is simply discarded. So we exec the FD to /dev/null,
5661 # effectively closing config.log, so it can be properly (re)opened and
5662 # appended to by config.status. When coming back to configure, we
5663 # need to make the FD available again.
5664 if test "$no_create" != yes; then
5667 $SHELL $CONFIG_STATUS || ac_cs_success=false
5669 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5670 # would make configure fail if this is the last instruction.
5671 $ac_cs_success || { (exit 1); exit 1; }