2 # From configure.in Revision: 1.22 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20101002.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Avoid depending upon Character Ranges.
12 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits
='0123456789'
16 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
28 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
32 # Name of the executable.
33 as_me
=`echo "$0" |sed 's,.*[\\/],,'`
35 if expr a
: '\(a\)' >/dev
/null
2>&1; then
41 rm -f conf$$ conf$$.exe conf$$.
file
43 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
44 # We could just check for DJGPP; but this test a) works b) is more generic
45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 if test -f conf$$.exe
; then
47 # Don't use ln at all; we don't have any links
52 elif ln conf$$.
file conf$$
2>/dev
/null
; then
57 rm -f conf$$ conf$$.exe conf$$.
file
59 as_executable_p
="test -f"
61 # Support unset when possible.
62 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
69 $as_unset LANG
|| test "${LANG+set}" != set || { LANG
=C
; export LANG
; }
70 $as_unset LC_ALL
|| test "${LC_ALL+set}" != set || { LC_ALL
=C
; export LC_ALL
; }
71 $as_unset LC_TIME
|| test "${LC_TIME+set}" != set || { LC_TIME
=C
; export LC_TIME
; }
72 $as_unset LC_CTYPE
|| test "${LC_CTYPE+set}" != set || { LC_CTYPE
=C
; export LC_CTYPE
; }
73 $as_unset LANGUAGE
|| test "${LANGUAGE+set}" != set || { LANGUAGE
=C
; export LANGUAGE
; }
74 $as_unset LC_COLLATE
|| test "${LC_COLLATE+set}" != set || { LC_COLLATE
=C
; export LC_COLLATE
; }
75 $as_unset LC_NUMERIC
|| test "${LC_NUMERIC+set}" != set || { LC_NUMERIC
=C
; export LC_NUMERIC
; }
76 $as_unset LC_MESSAGES
|| test "${LC_MESSAGES+set}" != set || { LC_MESSAGES
=C
; export LC_MESSAGES
; }
79 # We need space, tab and new line, in precisely that order.
85 $as_unset CDPATH
|| test "${CDPATH+set}" != set || { CDPATH
=:; export CDPATH
; }
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
97 ac_default_prefix
=/usr
/local
101 SHELL
=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 # This variable seems obsolete. It should probably be removed, and
105 # only ac_max_sed_lines should be used.
106 : ${ac_max_here_lines=38}
108 ac_unique_file
="diffstat.c"
109 # Factoring default headers for most tests.
110 ac_includes_default
="\
113 # include <sys/types.h>
116 # include <sys/stat.h>
127 # if !STDC_HEADERS && HAVE_MEMORY_H
133 # include <strings.h>
136 # include <inttypes.h>
146 # Initialize some variables set by options.
148 ac_init_version
=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
158 program_transform_name
=s
,x
,x
,
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir
='${exec_prefix}/bin'
172 sbindir
='${exec_prefix}/sbin'
173 libexecdir
='${exec_prefix}/libexec'
174 datadir
='${prefix}/share'
175 sysconfdir
='${prefix}/etc'
176 sharedstatedir
='${prefix}/com'
177 localstatedir
='${prefix}/var'
178 libdir
='${exec_prefix}/lib'
179 includedir
='${prefix}/include'
180 oldincludedir
='/usr/include'
181 infodir
='${prefix}/info'
182 mandir
='${prefix}/man'
184 # Identity of this package.
194 # If the previous option needs an argument, assign it.
195 if test -n "$ac_prev"; then
196 eval "$ac_prev=\$ac_option"
201 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
203 # Accept the important Cygnus configure options, so we can diagnose typos.
207 -bindir | --bindir | --bindi | --bind | --bin | --bi)
209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
212 -build | --build | --buil | --bui | --bu)
213 ac_prev
=build_alias
;;
214 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
215 build_alias
=$ac_optarg ;;
217 -cache-file | --cache-file | --cache-fil | --cache-fi \
218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
219 ac_prev
=cache_file
;;
220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
222 cache_file
=$ac_optarg ;;
225 cache_file
=config.cache
;;
227 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
229 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
231 datadir
=$ac_optarg ;;
233 -disable-* | --disable-*)
234 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
235 # Reject names that are not valid shell variable names.
236 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
237 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
238 { (exit 1); exit 1; }; }
239 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
240 eval "enable_$ac_feature=no" ;;
242 -enable-* | --enable-*)
243 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
244 # Reject names that are not valid shell variable names.
245 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
246 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
247 { (exit 1); exit 1; }; }
248 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
250 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
253 eval "enable_$ac_feature='$ac_optarg'" ;;
255 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
256 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
257 | --exec | --exe | --ex)
258 ac_prev
=exec_prefix
;;
259 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
260 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
261 | --exec=* | --exe=* | --ex=*)
262 exec_prefix
=$ac_optarg ;;
264 -gas | --gas | --ga | --g)
265 # Obsolete; use --with-gas.
268 -help | --help | --hel | --he | -h)
270 -help=r
* | --help=r
* | --hel=r
* | --he=r
* | -hr*)
271 ac_init_help
=recursive
;;
272 -help=s
* | --help=s
* | --hel=s
* | --he=s
* | -hs*)
273 ac_init_help
=short
;;
275 -host | --host | --hos | --ho)
276 ac_prev
=host_alias
;;
277 -host=* | --host=* | --hos=* | --ho=*)
278 host_alias
=$ac_optarg ;;
280 -includedir | --includedir | --includedi | --included | --include \
281 | --includ | --inclu | --incl | --inc)
282 ac_prev
=includedir
;;
283 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
284 | --includ=* | --inclu=* | --incl=* | --inc=*)
285 includedir
=$ac_optarg ;;
287 -infodir | --infodir | --infodi | --infod | --info | --inf)
289 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
290 infodir
=$ac_optarg ;;
292 -libdir | --libdir | --libdi | --libd)
294 -libdir=* | --libdir=* | --libdi=* | --libd=*)
297 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
298 | --libexe | --libex | --libe)
299 ac_prev
=libexecdir
;;
300 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
301 | --libexe=* | --libex=* | --libe=*)
302 libexecdir
=$ac_optarg ;;
304 -localstatedir | --localstatedir | --localstatedi | --localstated \
305 | --localstate | --localstat | --localsta | --localst \
306 | --locals | --local | --loca | --loc | --lo)
307 ac_prev
=localstatedir
;;
308 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
309 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
310 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
311 localstatedir
=$ac_optarg ;;
313 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
315 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
319 # Obsolete; use --without-fp.
322 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
326 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
327 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
330 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
331 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
332 | --oldin | --oldi | --old | --ol | --o)
333 ac_prev
=oldincludedir
;;
334 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
335 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
336 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
337 oldincludedir
=$ac_optarg ;;
339 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
341 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
344 -program-prefix | --program-prefix | --program-prefi | --program-pref \
345 | --program-pre | --program-pr | --program-p)
346 ac_prev
=program_prefix
;;
347 -program-prefix=* | --program-prefix=* | --program-prefi=* \
348 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
349 program_prefix
=$ac_optarg ;;
351 -program-suffix | --program-suffix | --program-suffi | --program-suff \
352 | --program-suf | --program-su | --program-s)
353 ac_prev
=program_suffix
;;
354 -program-suffix=* | --program-suffix=* | --program-suffi=* \
355 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
356 program_suffix
=$ac_optarg ;;
358 -program-transform-name | --program-transform-name \
359 | --program-transform-nam | --program-transform-na \
360 | --program-transform-n | --program-transform- \
361 | --program-transform | --program-transfor \
362 | --program-transfo | --program-transf \
363 | --program-trans | --program-tran \
364 | --progr-tra | --program-tr | --program-t)
365 ac_prev
=program_transform_name
;;
366 -program-transform-name=* | --program-transform-name=* \
367 | --program-transform-nam=* | --program-transform-na=* \
368 | --program-transform-n=* | --program-transform-=* \
369 | --program-transform=* | --program-transfor=* \
370 | --program-transfo=* | --program-transf=* \
371 | --program-trans=* | --program-tran=* \
372 | --progr-tra=* | --program-tr=* | --program-t=*)
373 program_transform_name
=$ac_optarg ;;
375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
376 | -silent | --silent | --silen | --sile | --sil)
379 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
381 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
383 sbindir
=$ac_optarg ;;
385 -sharedstatedir | --sharedstatedir | --sharedstatedi \
386 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
387 | --sharedst | --shareds | --shared | --share | --shar \
389 ac_prev
=sharedstatedir
;;
390 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
391 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
392 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
394 sharedstatedir
=$ac_optarg ;;
396 -site | --site | --sit)
398 -site=* | --site=* | --sit=*)
401 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
403 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
406 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
407 | --syscon | --sysco | --sysc | --sys | --sy)
408 ac_prev
=sysconfdir
;;
409 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
410 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
411 sysconfdir
=$ac_optarg ;;
413 -target | --target | --targe | --targ | --tar | --ta | --t)
414 ac_prev
=target_alias
;;
415 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
416 target_alias
=$ac_optarg ;;
418 -v | -verbose | --verbose | --verbos | --verbo | --verb)
421 -version | --version | --versio | --versi | --vers | -V)
425 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
426 # Reject names that are not valid shell variable names.
427 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
428 { echo "$as_me: error: invalid package name: $ac_package" >&2
429 { (exit 1); exit 1; }; }
430 ac_package
=`echo $ac_package| sed 's/-/_/g'`
432 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
435 eval "with_$ac_package='$ac_optarg'" ;;
437 -without-* | --without-*)
438 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
439 # Reject names that are not valid shell variable names.
440 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
441 { echo "$as_me: error: invalid package name: $ac_package" >&2
442 { (exit 1); exit 1; }; }
443 ac_package
=`echo $ac_package | sed 's/-/_/g'`
444 eval "with_$ac_package=no" ;;
447 # Obsolete; use --with-x.
450 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
451 | --x-incl | --x-inc | --x-in | --x-i)
452 ac_prev
=x_includes
;;
453 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
454 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
455 x_includes
=$ac_optarg ;;
457 -x-libraries | --x-libraries | --x-librarie | --x-librari \
458 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
459 ac_prev
=x_libraries
;;
460 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
461 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
462 x_libraries
=$ac_optarg ;;
464 -*) { echo "$as_me: error: unrecognized option: $ac_option
465 Try \`$0 --help' for more information." >&2
466 { (exit 1); exit 1; }; }
470 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
471 # Reject names that are not valid shell variable names.
472 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
473 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
474 { (exit 1); exit 1; }; }
475 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
476 eval "$ac_envvar='$ac_optarg'"
480 # FIXME: should be removed in autoconf 3.0.
481 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
482 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
483 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
484 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
490 if test -n "$ac_prev"; then
491 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
492 { echo "$as_me: error: missing argument to $ac_option" >&2
493 { (exit 1); exit 1; }; }
496 # Be sure to have absolute paths.
497 for ac_var
in exec_prefix prefix
499 eval ac_val
=$
`echo $ac_var`
501 [\\/$
]* | ?
:[\\/]* | NONE
| '' ) ;;
502 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
503 { (exit 1); exit 1; }; };;
507 # Be sure to have absolute paths.
508 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
509 localstatedir libdir includedir oldincludedir infodir mandir
511 eval ac_val
=$
`echo $ac_var`
513 [\\/$
]* | ?
:[\\/]* ) ;;
514 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
515 { (exit 1); exit 1; }; };;
519 # There might be people who depend on the old broken behavior: `$host'
520 # used to hold the argument of --host etc.
525 # FIXME: should be removed in autoconf 3.0.
526 if test "x$host_alias" != x
; then
527 if test "x$build_alias" = x
; then
528 cross_compiling
=maybe
529 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
530 If a cross compiler is detected then cross compile mode will be used." >&2
531 elif test "x$build_alias" != "x$host_alias"; then
537 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
539 test "$silent" = yes && exec 6>/dev
/null
541 # Find the source files, if location was not specified.
542 if test -z "$srcdir"; then
543 ac_srcdir_defaulted
=yes
544 # Try the directory containing this script, then its parent.
546 ac_confdir
=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
547 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
549 if test ! -r $srcdir/$ac_unique_file; then
553 ac_srcdir_defaulted
=no
555 if test ! -r $srcdir/$ac_unique_file; then
556 if test "$ac_srcdir_defaulted" = yes; then
557 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
558 { (exit 1); exit 1; }; }
560 { echo "$as_me: error: cannot find sources in $srcdir" >&2
561 { (exit 1); exit 1; }; }
564 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
565 ac_env_build_alias_set
=${build_alias+set}
566 ac_env_build_alias_value
=$build_alias
567 ac_cv_env_build_alias_set
=${build_alias+set}
568 ac_cv_env_build_alias_value
=$build_alias
569 ac_env_host_alias_set
=${host_alias+set}
570 ac_env_host_alias_value
=$host_alias
571 ac_cv_env_host_alias_set
=${host_alias+set}
572 ac_cv_env_host_alias_value
=$host_alias
573 ac_env_target_alias_set
=${target_alias+set}
574 ac_env_target_alias_value
=$target_alias
575 ac_cv_env_target_alias_set
=${target_alias+set}
576 ac_cv_env_target_alias_value
=$target_alias
577 ac_env_CC_set
=${CC+set}
579 ac_cv_env_CC_set
=${CC+set}
580 ac_cv_env_CC_value
=$CC
581 ac_env_CFLAGS_set
=${CFLAGS+set}
582 ac_env_CFLAGS_value
=$CFLAGS
583 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
584 ac_cv_env_CFLAGS_value
=$CFLAGS
585 ac_env_LDFLAGS_set
=${LDFLAGS+set}
586 ac_env_LDFLAGS_value
=$LDFLAGS
587 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
588 ac_cv_env_LDFLAGS_value
=$LDFLAGS
589 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
590 ac_env_CPPFLAGS_value
=$CPPFLAGS
591 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
592 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
593 ac_env_CPP_set
=${CPP+set}
594 ac_env_CPP_value
=$CPP
595 ac_cv_env_CPP_set
=${CPP+set}
596 ac_cv_env_CPP_value
=$CPP
599 # Report the --help message.
601 if test "$ac_init_help" = "long"; then
602 # Omit some internal or obsolete options to make the list less imposing.
603 # This message is too long to be a string in the A/UX 3.1 sh.
605 \`configure' configures this package to adapt to many kinds of systems.
607 Usage: $0 [OPTION]... [VAR=VALUE]...
609 To assign environment variables (e.g., CC, CFLAGS...), specify them as
610 VAR=VALUE. See below for descriptions of some of the useful variables.
612 Defaults for the options are specified in brackets.
615 -h, --help display this help and exit
616 --help=short display options specific to this package
617 --help=recursive display the short help of all the included packages
618 -V, --version display version information and exit
619 -q, --quiet, --silent do not print \`checking...' messages
620 --cache-file=FILE cache test results in FILE [disabled]
621 -C, --config-cache alias for \`--cache-file=config.cache'
622 -n, --no-create do not create output files
623 --srcdir=DIR find the sources in DIR [configure dir or \`..']
628 Installation directories:
629 --prefix=PREFIX install architecture-independent files in PREFIX
631 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
634 By default, \`make install' will install all the files in
635 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
636 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
637 for instance \`--prefix=\$HOME'.
639 For better control, use the options below.
641 Fine tuning of the installation directories:
642 --bindir=DIR user executables [EPREFIX/bin]
643 --sbindir=DIR system admin executables [EPREFIX/sbin]
644 --libexecdir=DIR program executables [EPREFIX/libexec]
645 --datadir=DIR read-only architecture-independent data [PREFIX/share]
646 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
647 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
648 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
649 --libdir=DIR object code libraries [EPREFIX/lib]
650 --includedir=DIR C header files [PREFIX/include]
651 --oldincludedir=DIR C header files for non-gcc [/usr/include]
652 --infodir=DIR info documentation [PREFIX/info]
653 --mandir=DIR man documentation [PREFIX/man]
659 --build=BUILD configure
for building on BUILD
[guessed
]
660 --host=HOST build programs to run on HOST
[BUILD
]
664 if test -n "$ac_init_help"; then
669 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
670 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
673 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
674 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
676 --disable-echo display
"compiling" commands
677 --with-install-prefix=XXX sets DESTDIR
, useful
for packaging
678 --with-warnings test: turn on gcc warnings
679 --with-dmalloc test: use Gray Watson
's dmalloc library
680 --with-dbmalloc test: use Conor Cahill's dbmalloc library
681 --with-valgrind test: use valgrind
682 --disable-leaks test: free permanent memory
, analyze leaks
684 Some influential environment variables
:
685 CC C compiler
command
686 CFLAGS C compiler flags
687 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
688 nonstandard directory
<lib dir
>
689 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
690 headers
in a nonstandard directory
<include dir
>
693 Use these variables to override the choices made by
`configure' or to help
694 it to find libraries and programs with nonstandard names/locations.
699 if test "$ac_init_help" = "recursive"; then
700 # If there are subdirs, report their specific --help.
702 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
704 # A "../" for each directory in /$ac_subdir.
705 ac_dots=`echo $ac_subdir |
706 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
709 .) # No --srcdir option. We are building in place.
710 ac_sub_srcdir=$srcdir ;;
711 [\\/]* | ?:[\\/]* ) # Absolute path.
712 ac_sub_srcdir=$srcdir/$ac_subdir ;;
714 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
717 # Check for guested configure; otherwise get Cygnus style configure.
718 if test -f $ac_sub_srcdir/configure.gnu; then
720 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
721 elif test -f $ac_sub_srcdir/configure; then
723 $SHELL $ac_sub_srcdir/configure --help=recursive
724 elif test -f $ac_sub_srcdir/configure.ac ||
725 test -f $ac_sub_srcdir/configure.in; then
729 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
735 test -n "$ac_init_help" && exit 0
736 if $ac_init_version; then
739 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
740 Free Software Foundation, Inc.
741 This configure script is free software; the Free Software Foundation
742 gives unlimited permission to copy, distribute and modify it.
748 This file contains any messages produced by compilers while
749 running configure, to aid debugging if configure makes a mistake.
751 It was created by $as_me, which was
752 generated by GNU Autoconf 2.52.20101002. Invocation command line was
763 hostname = `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`
764 uname -m = `(uname
-m) 2>/dev
/null
|| echo unknown
`
765 uname -r = `(uname
-r) 2>/dev
/null
|| echo unknown
`
766 uname -s = `(uname
-s) 2>/dev
/null
|| echo unknown
`
767 uname -v = `(uname
-v) 2>/dev
/null
|| echo unknown
`
769 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null
|| echo unknown
`
770 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null
|| echo unknown
`
772 /bin/arch = `(/bin
/arch
) 2>/dev
/null
|| echo unknown
`
773 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null
|| echo unknown
`
774 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null
|| echo unknown
`
775 hostinfo = `(hostinfo
) 2>/dev
/null
|| echo unknown
`
776 /bin/machine = `(/bin
/machine
) 2>/dev
/null
|| echo unknown
`
777 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null
|| echo unknown
`
778 /bin/universe = `(/bin
/universe
) 2>/dev
/null
|| echo unknown
`
792 # Keep a trace of the command line.
793 # Strip out --no-create and --no-recursion so they do not pile up.
794 # Also quote any args containing shell meta-characters.
800 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
801 | --no-cr | --no-c) ;;
802 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
803 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
804 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
805 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
806 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
808 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
811 # Get rid of the leading space.
814 # When interrupted or exit'd, cleanup temporary files, and complete
815 # config.log. We remove comments because anyway the quotes in there
816 # would cause problems or look ugly.
818 # Save into config.log some information that might help in debugging.
820 echo "## ----------------- ##" >&5
821 echo "## Cache variables. ##" >&5
822 echo "## ----------------- ##" >&5
824 # The following way of writing the cache mishandles newlines in values,
827 case `(ac_space
='"'"' '"'"'; set | grep ac_space
) 2>&1` in
830 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
831 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
835 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
839 sed "/^$/d" confdefs.h >conftest.log
840 if test -s conftest.log; then
842 echo "## ------------ ##" >&5
843 echo "## confdefs.h. ##" >&5
844 echo "## ------------ ##" >&5
849 test "$ac_signal" != 0 &&
850 echo "$as_me: caught signal $ac_signal" >&5
851 echo "$as_me: exit $exit_status" >&5
852 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
855 for ac_signal in 1 2 13 15; do
856 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
860 # confdefs.h avoids OS command line length limits that DEFS can exceed.
861 rm -rf conftest* confdefs.h
862 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
865 # Let the site file select an alternate cache file if it wants to.
866 # Prefer explicitly selected file to automatically selected ones.
867 if test -z "$CONFIG_SITE"; then
868 if test "x$prefix" != xNONE; then
869 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
871 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
874 for ac_site_file in $CONFIG_SITE; do
875 if test -r "$ac_site_file"; then
876 { echo "$as_me:876: loading site script $ac_site_file" >&5
877 echo "$as_me: loading site script $ac_site_file" >&6;}
878 cat "$ac_site_file" >&5
883 if test -r "$cache_file"; then
884 # Some versions of bash will fail to source /dev/null (special
885 # files actually), so we avoid doing that.
886 if test -f "$cache_file"; then
887 { echo "$as_me:887: loading cache $cache_file" >&5
888 echo "$as_me: loading cache $cache_file" >&6;}
890 [\\/]* | ?:[\\/]* ) . $cache_file;;
895 { echo "$as_me:895: creating cache $cache_file" >&5
896 echo "$as_me: creating cache $cache_file" >&6;}
900 # Check that the precious variables saved in the cache have kept the same
902 ac_cache_corrupted=false
903 for ac_var in `(set) 2>&1 |
904 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
905 eval ac_old_set=\$ac_cv_env_${ac_var}_set
906 eval ac_new_set=\$ac_env_${ac_var}_set
907 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
908 eval ac_new_val="\$ac_env_${ac_var}_value"
909 case $ac_old_set,$ac_new_set in
911 { echo "$as_me:911: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
912 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
913 ac_cache_corrupted=: ;;
915 { echo "$as_me:915: error: \`$ac_var' was not
set in the previous run
" >&5
916 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
917 ac_cache_corrupted=: ;;
920 if test "x$ac_old_val" != "x$ac_new_val"; then
921 { echo "$as_me:921: error: \`$ac_var' has changed since the previous run:" >&5
922 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
923 { echo "$as_me:923: former value
: $ac_old_val" >&5
924 echo "$as_me: former value
: $ac_old_val" >&2;}
925 { echo "$as_me:925: current value
: $ac_new_val" >&5
926 echo "$as_me: current value
: $ac_new_val" >&2;}
930 # Pass precious variables to config.status. It doesn't matter if
931 # we pass some twice (in addition to the command line arguments).
932 if test "$ac_new_set" = set; then
934 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
935 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"`
936 ac_configure_args="$ac_configure_args '$ac_arg'"
938 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
943 if $ac_cache_corrupted; then
944 { echo "$as_me:944: error
: changes
in the environment can compromise the build
" >&5
945 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
946 { { echo "$as_me:946: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
947 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
948 { (exit 1); exit 1; }; }
952 ac_cpp='$CPP $CPPFLAGS'
953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
956 ac_main_return=return
958 case `echo "testing\c"; echo 1,2,3`,`echo -n testing
; echo 1,2,3` in
959 *c*,-n*) ECHO_N= ECHO_C='
961 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
962 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
964 echo "#! $SHELL" >conftest.sh
965 echo "exit 0" >>conftest.sh
967 if { (echo "$as_me:967: PATH=\".;.\"; conftest.sh") >&5
968 (PATH=".;."; conftest.sh) 2>&5
970 echo "$as_me:970: \$? = $ac_status" >&5
971 (exit $ac_status); }; then
972 ac_path_separator=';'
976 PATH_SEPARATOR="$ac_path_separator"
979 ac_config_headers="$ac_config_headers config.h:config_h.in"
982 ac_cpp='$CPP $CPPFLAGS'
983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
986 ac_main_return=return
987 if test -n "$ac_tool_prefix"; then
988 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
989 set dummy ${ac_tool_prefix}gcc; ac_word=$2
990 echo "$as_me:990: checking for $ac_word" >&5
991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
992 if test "${ac_cv_prog_CC+set}" = set; then
993 echo $ECHO_N "(cached) $ECHO_C" >&6
995 if test -n "$CC"; then
996 ac_cv_prog_CC="$CC" # Let the user override the test.
998 ac_save_IFS=$IFS; IFS=$ac_path_separator
1000 for ac_dir in $ac_dummy; do
1002 test -z "$ac_dir" && ac_dir=.
1003 $as_executable_p "$ac_dir/$ac_word" || continue
1004 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1005 echo "$as_me:1005: found $ac_dir/$ac_word" >&5
1012 if test -n "$CC"; then
1013 echo "$as_me:1013: result: $CC" >&5
1014 echo "${ECHO_T}$CC" >&6
1016 echo "$as_me:1016: result: no" >&5
1017 echo "${ECHO_T}no" >&6
1021 if test -z "$ac_cv_prog_CC"; then
1023 # Extract the first word of "gcc", so it can be a program name with args.
1024 set dummy gcc; ac_word=$2
1025 echo "$as_me:1025: checking for $ac_word" >&5
1026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1027 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1028 echo $ECHO_N "(cached) $ECHO_C" >&6
1030 if test -n "$ac_ct_CC"; then
1031 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1033 ac_save_IFS=$IFS; IFS=$ac_path_separator
1035 for ac_dir in $ac_dummy; do
1037 test -z "$ac_dir" && ac_dir=.
1038 $as_executable_p "$ac_dir/$ac_word" || continue
1039 ac_cv_prog_ac_ct_CC="gcc"
1040 echo "$as_me:1040: found $ac_dir/$ac_word" >&5
1046 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1047 if test -n "$ac_ct_CC"; then
1048 echo "$as_me:1048: result: $ac_ct_CC" >&5
1049 echo "${ECHO_T}$ac_ct_CC" >&6
1051 echo "$as_me:1051: result: no" >&5
1052 echo "${ECHO_T}no" >&6
1060 if test -z "$CC"; then
1061 if test -n "$ac_tool_prefix"; then
1062 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1063 set dummy ${ac_tool_prefix}cc; ac_word=$2
1064 echo "$as_me:1064: checking for $ac_word" >&5
1065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1066 if test "${ac_cv_prog_CC+set}" = set; then
1067 echo $ECHO_N "(cached) $ECHO_C" >&6
1069 if test -n "$CC"; then
1070 ac_cv_prog_CC="$CC" # Let the user override the test.
1072 ac_save_IFS=$IFS; IFS=$ac_path_separator
1074 for ac_dir in $ac_dummy; do
1076 test -z "$ac_dir" && ac_dir=.
1077 $as_executable_p "$ac_dir/$ac_word" || continue
1078 ac_cv_prog_CC="${ac_tool_prefix}cc"
1079 echo "$as_me:1079: found $ac_dir/$ac_word" >&5
1086 if test -n "$CC"; then
1087 echo "$as_me:1087: result: $CC" >&5
1088 echo "${ECHO_T}$CC" >&6
1090 echo "$as_me:1090: result: no" >&5
1091 echo "${ECHO_T}no" >&6
1095 if test -z "$ac_cv_prog_CC"; then
1097 # Extract the first word of "cc", so it can be a program name with args.
1098 set dummy cc; ac_word=$2
1099 echo "$as_me:1099: checking for $ac_word" >&5
1100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1101 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1102 echo $ECHO_N "(cached) $ECHO_C" >&6
1104 if test -n "$ac_ct_CC"; then
1105 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1107 ac_save_IFS=$IFS; IFS=$ac_path_separator
1109 for ac_dir in $ac_dummy; do
1111 test -z "$ac_dir" && ac_dir=.
1112 $as_executable_p "$ac_dir/$ac_word" || continue
1113 ac_cv_prog_ac_ct_CC="cc"
1114 echo "$as_me:1114: found $ac_dir/$ac_word" >&5
1120 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1121 if test -n "$ac_ct_CC"; then
1122 echo "$as_me:1122: result: $ac_ct_CC" >&5
1123 echo "${ECHO_T}$ac_ct_CC" >&6
1125 echo "$as_me:1125: result: no" >&5
1126 echo "${ECHO_T}no" >&6
1135 if test -z "$CC"; then
1136 # Extract the first word of "cc", so it can be a program name with args.
1137 set dummy cc; ac_word=$2
1138 echo "$as_me:1138: checking for $ac_word" >&5
1139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1140 if test "${ac_cv_prog_CC+set}" = set; then
1141 echo $ECHO_N "(cached) $ECHO_C" >&6
1143 if test -n "$CC"; then
1144 ac_cv_prog_CC="$CC" # Let the user override the test.
1147 ac_save_IFS=$IFS; IFS=$ac_path_separator
1149 for ac_dir in $ac_dummy; do
1151 test -z "$ac_dir" && ac_dir=.
1152 $as_executable_p "$ac_dir/$ac_word" || continue
1153 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1154 ac_prog_rejected=yes
1158 echo "$as_me:1158: found $ac_dir/$ac_word" >&5
1162 if test $ac_prog_rejected = yes; then
1163 # We found a bogon in the path, so make sure we never use it.
1164 set dummy $ac_cv_prog_CC
1166 if test $# != 0; then
1167 # We chose a different compiler from the bogus one.
1168 # However, it has the same basename, so the bogon will be chosen
1169 # first if we set CC to just the basename; use the full file name.
1171 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1179 if test -n "$CC"; then
1180 echo "$as_me:1180: result: $CC" >&5
1181 echo "${ECHO_T}$CC" >&6
1183 echo "$as_me:1183: result: no" >&5
1184 echo "${ECHO_T}no" >&6
1188 if test -z "$CC"; then
1189 if test -n "$ac_tool_prefix"; then
1192 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1193 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1194 echo "$as_me:1194: checking for $ac_word" >&5
1195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1196 if test "${ac_cv_prog_CC+set}" = set; then
1197 echo $ECHO_N "(cached) $ECHO_C" >&6
1199 if test -n "$CC"; then
1200 ac_cv_prog_CC="$CC" # Let the user override the test.
1202 ac_save_IFS=$IFS; IFS=$ac_path_separator
1204 for ac_dir in $ac_dummy; do
1206 test -z "$ac_dir" && ac_dir=.
1207 $as_executable_p "$ac_dir/$ac_word" || continue
1208 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1209 echo "$as_me:1209: found $ac_dir/$ac_word" >&5
1216 if test -n "$CC"; then
1217 echo "$as_me:1217: result: $CC" >&5
1218 echo "${ECHO_T}$CC" >&6
1220 echo "$as_me:1220: result: no" >&5
1221 echo "${ECHO_T}no" >&6
1224 test -n "$CC" && break
1227 if test -z "$CC"; then
1231 # Extract the first word of "$ac_prog", so it can be a program name with args.
1232 set dummy $ac_prog; ac_word=$2
1233 echo "$as_me:1233: checking for $ac_word" >&5
1234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1235 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1236 echo $ECHO_N "(cached) $ECHO_C" >&6
1238 if test -n "$ac_ct_CC"; then
1239 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1241 ac_save_IFS=$IFS; IFS=$ac_path_separator
1243 for ac_dir in $ac_dummy; do
1245 test -z "$ac_dir" && ac_dir=.
1246 $as_executable_p "$ac_dir/$ac_word" || continue
1247 ac_cv_prog_ac_ct_CC="$ac_prog"
1248 echo "$as_me:1248: found $ac_dir/$ac_word" >&5
1254 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1255 if test -n "$ac_ct_CC"; then
1256 echo "$as_me:1256: result: $ac_ct_CC" >&5
1257 echo "${ECHO_T}$ac_ct_CC" >&6
1259 echo "$as_me:1259: result: no" >&5
1260 echo "${ECHO_T}no" >&6
1263 test -n "$ac_ct_CC" && break
1271 test -z "$CC" && { { echo "$as_me:1271: error: no acceptable cc found in \$PATH" >&5
1272 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1273 { (exit 1); exit 1; }; }
1275 # Provide some information about the compiler.
1276 echo "$as_me:1276:" \
1277 "checking for C compiler version" >&5
1278 ac_compiler=`set X
$ac_compile; echo $2`
1279 { (eval echo "$as_me:1279: \"$ac_compiler --version </dev/null >&5\"") >&5
1280 (eval $ac_compiler --version </dev/null >&5) 2>&5
1282 echo "$as_me:1282: \$? = $ac_status" >&5
1283 (exit $ac_status); }
1284 { (eval echo "$as_me:1284: \"$ac_compiler -v </dev/null >&5\"") >&5
1285 (eval $ac_compiler -v </dev/null >&5) 2>&5
1287 echo "$as_me:1287: \$? = $ac_status" >&5
1288 (exit $ac_status); }
1289 { (eval echo "$as_me:1289: \"$ac_compiler -V </dev/null >&5\"") >&5
1290 (eval $ac_compiler -V </dev/null >&5) 2>&5
1292 echo "$as_me:1292: \$? = $ac_status" >&5
1293 (exit $ac_status); }
1295 cat >conftest.$ac_ext <<_ACEOF
1296 #line 1296 "configure"
1297 #include "confdefs.h"
1307 ac_clean_files_save=$ac_clean_files
1308 ac_clean_files="$ac_clean_files a.out a.exe"
1309 # Try to create an executable without -o first, disregard a.out.
1310 # It will help us diagnose broken compilers, and finding out an intuition
1312 echo "$as_me:1312: checking for C compiler default output" >&5
1313 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1314 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1315 if { (eval echo "$as_me:1315: \"$ac_link_default\"") >&5
1316 (eval $ac_link_default) 2>&5
1318 echo "$as_me:1318: \$? = $ac_status" >&5
1319 (exit $ac_status); }; then
1320 # Find the output, starting from the most likely. This scheme is
1321 # not robust to junk in `.
', hence go to wildcards (a.*) only as a last
1323 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1324 ls a.out conftest 2>/dev/null;
1325 ls a.* conftest.* 2>/dev/null`; do
1327 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1328 a.out ) # We found the default executable, but exeext='' is most
1331 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.
]*\
(\..
*\
)'`
1332 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1339 echo "$as_me: failed program was:" >&5
1340 cat conftest.$ac_ext >&5
1341 { { echo "$as_me:1341: error: C compiler cannot create executables" >&5
1342 echo "$as_me: error: C compiler cannot create executables" >&2;}
1343 { (exit 77); exit 77; }; }
1346 ac_exeext=$ac_cv_exeext
1347 echo "$as_me:1347: result: $ac_file" >&5
1348 echo "${ECHO_T}$ac_file" >&6
1350 # Check the compiler produces executables we can run. If not, either
1351 # the compiler is broken, or we cross compile.
1352 echo "$as_me:1352: checking whether the C compiler works" >&5
1353 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1354 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1355 # If not cross compiling, check that we can run a simple program.
1356 if test "$cross_compiling" != yes; then
1357 if { ac_try='.
/$ac_file'
1358 { (eval echo "$as_me:1358: \"$ac_try\"") >&5
1361 echo "$as_me:1361: \$? = $ac_status" >&5
1362 (exit $ac_status); }; }; then
1365 if test "$cross_compiling" = maybe; then
1368 { { echo "$as_me:1368: error: cannot run C compiled programs.
1369 If you meant to cross compile, use \`--host'.
" >&5
1370 echo "$as_me: error
: cannot run C compiled programs.
1371 If you meant to cross compile
, use \
`--host'." >&2;}
1372 { (exit 1); exit 1; }; }
1376 echo "$as_me:1376: result: yes" >&5
1377 echo "${ECHO_T}yes" >&6
1379 rm -f a.out a.exe conftest$ac_cv_exeext
1380 ac_clean_files=$ac_clean_files_save
1381 # Check the compiler produces executables we can run. If not, either
1382 # the compiler is broken, or we cross compile.
1383 echo "$as_me:1383: checking whether we are cross compiling" >&5
1384 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1385 echo "$as_me:1385: result: $cross_compiling" >&5
1386 echo "${ECHO_T}$cross_compiling" >&6
1388 echo "$as_me:1388: checking for executable suffix" >&5
1389 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1390 if { (eval echo "$as_me:1390: \"$ac_link\"") >&5
1391 (eval $ac_link) 2>&5
1393 echo "$as_me:1393: \$? = $ac_status" >&5
1394 (exit $ac_status); }; then
1395 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
1396 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
1397 # work properly (i.e., refer to `conftest.exe'), while it won't with
1399 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1401 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.dbg
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.o
| *.obj
) ;;
1402 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1409 { { echo "$as_me:1409: error: cannot compute EXEEXT: cannot compile and link" >&5
1410 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1411 { (exit 1); exit 1; }; }
1414 rm -f conftest
$ac_cv_exeext
1415 echo "$as_me:1415: result: $ac_cv_exeext" >&5
1416 echo "${ECHO_T}$ac_cv_exeext" >&6
1418 rm -f conftest.
$ac_ext
1419 EXEEXT
=$ac_cv_exeext
1421 echo "$as_me:1421: checking for object suffix" >&5
1422 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1423 if test "${ac_cv_objext+set}" = set; then
1424 echo $ECHO_N "(cached) $ECHO_C" >&6
1426 cat >conftest.
$ac_ext <<_ACEOF
1427 #line 1427 "configure"
1428 #include "confdefs.h"
1438 rm -f conftest.o conftest.obj
1439 if { (eval echo "$as_me:1439: \"$ac_compile\"") >&5
1440 (eval $ac_compile) 2>&5
1442 echo "$as_me:1442: \$? = $ac_status" >&5
1443 (exit $ac_status); }; then
1444 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1446 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.dbg
| *.pdb
| *.xSYM
| *.map
| *.inf
) ;;
1447 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1452 echo "$as_me: failed program was:" >&5
1453 cat conftest.
$ac_ext >&5
1454 { { echo "$as_me:1454: error: cannot compute OBJEXT: cannot compile" >&5
1455 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1456 { (exit 1); exit 1; }; }
1459 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1461 echo "$as_me:1461: result: $ac_cv_objext" >&5
1462 echo "${ECHO_T}$ac_cv_objext" >&6
1463 OBJEXT
=$ac_cv_objext
1465 echo "$as_me:1465: checking whether we are using the GNU C compiler" >&5
1466 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1467 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1468 echo $ECHO_N "(cached) $ECHO_C" >&6
1470 cat >conftest.
$ac_ext <<_ACEOF
1471 #line 1471 "configure"
1472 #include "confdefs.h"
1485 rm -f conftest.
$ac_objext
1486 if { (eval echo "$as_me:1486: \"$ac_compile\"") >&5
1487 (eval $ac_compile) 2>&5
1489 echo "$as_me:1489: \$? = $ac_status" >&5
1490 (exit $ac_status); } &&
1491 { ac_try
='test -s conftest.$ac_objext'
1492 { (eval echo "$as_me:1492: \"$ac_try\"") >&5
1495 echo "$as_me:1495: \$? = $ac_status" >&5
1496 (exit $ac_status); }; }; then
1499 echo "$as_me: failed program was:" >&5
1500 cat conftest.
$ac_ext >&5
1503 rm -f conftest.
$ac_objext conftest.
$ac_ext
1504 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
1507 echo "$as_me:1507: result: $ac_cv_c_compiler_gnu" >&5
1508 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1509 GCC
=`test $ac_compiler_gnu = yes && echo yes`
1510 ac_test_CFLAGS
=${CFLAGS+set}
1511 ac_save_CFLAGS
=$CFLAGS
1513 echo "$as_me:1513: checking whether $CC accepts -g" >&5
1514 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1515 if test "${ac_cv_prog_cc_g+set}" = set; then
1516 echo $ECHO_N "(cached) $ECHO_C" >&6
1518 cat >conftest.
$ac_ext <<_ACEOF
1519 #line 1519 "configure"
1520 #include "confdefs.h"
1530 rm -f conftest.
$ac_objext
1531 if { (eval echo "$as_me:1531: \"$ac_compile\"") >&5
1532 (eval $ac_compile) 2>&5
1534 echo "$as_me:1534: \$? = $ac_status" >&5
1535 (exit $ac_status); } &&
1536 { ac_try
='test -s conftest.$ac_objext'
1537 { (eval echo "$as_me:1537: \"$ac_try\"") >&5
1540 echo "$as_me:1540: \$? = $ac_status" >&5
1541 (exit $ac_status); }; }; then
1544 echo "$as_me: failed program was:" >&5
1545 cat conftest.
$ac_ext >&5
1548 rm -f conftest.
$ac_objext conftest.
$ac_ext
1550 echo "$as_me:1550: result: $ac_cv_prog_cc_g" >&5
1551 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1552 if test "$ac_test_CFLAGS" = set; then
1553 CFLAGS
=$ac_save_CFLAGS
1554 elif test $ac_cv_prog_cc_g = yes; then
1555 if test "$GCC" = yes; then
1561 if test "$GCC" = yes; then
1567 # Some people use a C++ compiler to compile C. Since we use `exit',
1568 # in C++ we need to declare it. In case someone uses the same compiler
1569 # for both compiling C and C++ we need to have the C++ compiler decide
1570 # the declaration of exit, since it's the most demanding environment.
1571 cat >conftest.
$ac_ext <<_ACEOF
1576 rm -f conftest.
$ac_objext
1577 if { (eval echo "$as_me:1577: \"$ac_compile\"") >&5
1578 (eval $ac_compile) 2>&5
1580 echo "$as_me:1580: \$? = $ac_status" >&5
1581 (exit $ac_status); } &&
1582 { ac_try
='test -s conftest.$ac_objext'
1583 { (eval echo "$as_me:1583: \"$ac_try\"") >&5
1586 echo "$as_me:1586: \$? = $ac_status" >&5
1587 (exit $ac_status); }; }; then
1588 for ac_declaration
in \
1590 '#include <stdlib.h>' \
1591 'extern "C" void std::exit (int) throw (); using std::exit;' \
1592 'extern "C" void std::exit (int); using std::exit;' \
1593 'extern "C" void exit (int) throw ();' \
1594 'extern "C" void exit (int);' \
1597 cat >conftest.
$ac_ext <<_ACEOF
1598 #line 1598 "configure"
1599 #include "confdefs.h"
1610 rm -f conftest.
$ac_objext
1611 if { (eval echo "$as_me:1611: \"$ac_compile\"") >&5
1612 (eval $ac_compile) 2>&5
1614 echo "$as_me:1614: \$? = $ac_status" >&5
1615 (exit $ac_status); } &&
1616 { ac_try
='test -s conftest.$ac_objext'
1617 { (eval echo "$as_me:1617: \"$ac_try\"") >&5
1620 echo "$as_me:1620: \$? = $ac_status" >&5
1621 (exit $ac_status); }; }; then
1624 echo "$as_me: failed program was:" >&5
1625 cat conftest.
$ac_ext >&5
1628 rm -f conftest.
$ac_objext conftest.
$ac_ext
1629 cat >conftest.
$ac_ext <<_ACEOF
1630 #line 1630 "configure"
1631 #include "confdefs.h"
1641 rm -f conftest.
$ac_objext
1642 if { (eval echo "$as_me:1642: \"$ac_compile\"") >&5
1643 (eval $ac_compile) 2>&5
1645 echo "$as_me:1645: \$? = $ac_status" >&5
1646 (exit $ac_status); } &&
1647 { ac_try
='test -s conftest.$ac_objext'
1648 { (eval echo "$as_me:1648: \"$ac_try\"") >&5
1651 echo "$as_me:1651: \$? = $ac_status" >&5
1652 (exit $ac_status); }; }; then
1655 echo "$as_me: failed program was:" >&5
1656 cat conftest.
$ac_ext >&5
1658 rm -f conftest.
$ac_objext conftest.
$ac_ext
1661 if test -n "$ac_declaration"; then
1662 echo '#ifdef __cplusplus' >>confdefs.h
1663 echo $ac_declaration >>confdefs.h
1664 echo '#endif' >>confdefs.h
1668 echo "$as_me: failed program was:" >&5
1669 cat conftest.
$ac_ext >&5
1671 rm -f conftest.
$ac_objext conftest.
$ac_ext
1673 ac_cpp
='$CPP $CPPFLAGS'
1674 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1675 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1676 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1677 ac_main_return
=return
1680 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1681 if test -f $ac_dir/install-sh; then
1683 ac_install_sh
="$ac_aux_dir/install-sh -c"
1685 elif test -f $ac_dir/install.sh
; then
1687 ac_install_sh
="$ac_aux_dir/install.sh -c"
1689 elif test -f $ac_dir/shtool
; then
1691 ac_install_sh
="$ac_aux_dir/shtool install -c"
1695 if test -z "$ac_aux_dir"; then
1696 { { echo "$as_me:1696: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1697 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1698 { (exit 1); exit 1; }; }
1700 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1701 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1702 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1704 # Find a good install program. We prefer a C program (faster),
1705 # so one script is as good as another. But avoid the broken or
1706 # incompatible versions:
1707 # SysV /etc/install, /usr/sbin/install
1708 # SunOS /usr/etc/install
1709 # IRIX /sbin/install
1711 # AmigaOS /C/install, which installs bootblocks on floppy discs
1712 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1713 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1714 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1715 # ./install, which can be erroneously created by make from ./install.sh.
1716 echo "$as_me:1716: checking for a BSD compatible install" >&5
1717 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1718 if test -z "$INSTALL"; then
1719 if test "${ac_cv_path_install+set}" = set; then
1720 echo $ECHO_N "(cached) $ECHO_C" >&6
1722 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1723 for ac_dir
in $PATH; do
1725 # Account for people who put trailing slashes in PATH elements.
1727 / | .
/ | .
// | /cC
/* \
1728 | /etc
/* | /usr
/sbin
/* | /usr
/etc
/* | /sbin
/* | /usr
/afsws
/bin
/* \
1731 # OSF1 and SCO ODT 3.0 have their own names for install.
1732 # Don't use installbsd from OSF since it installs stuff as root
1734 for ac_prog
in ginstall scoinst
install; do
1735 if $as_executable_p "$ac_dir/$ac_prog"; then
1736 if test $ac_prog = install &&
1737 grep dspmsg
"$ac_dir/$ac_prog" >/dev
/null
2>&1; then
1738 # AIX install. It has an incompatible calling convention.
1740 elif test $ac_prog = install &&
1741 grep pwplus
"$ac_dir/$ac_prog" >/dev
/null
2>&1; then
1742 # program-specific install script used by HP pwplus--don't use.
1745 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1755 if test "${ac_cv_path_install+set}" = set; then
1756 INSTALL
=$ac_cv_path_install
1758 # As a last resort, use the slow shell script. We don't cache a
1759 # path for INSTALL within a source directory, because that will
1760 # break other packages using the cache if that directory is
1761 # removed, or if the path is relative.
1762 INSTALL
=$ac_install_sh
1765 echo "$as_me:1765: result: $INSTALL" >&5
1766 echo "${ECHO_T}$INSTALL" >&6
1768 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1769 # It thinks the first close brace ends the variable substitution.
1770 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1772 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1774 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1776 for ac_prog
in tdlint lint alint splint lclint
1778 # Extract the first word of "$ac_prog", so it can be a program name with args.
1779 set dummy
$ac_prog; ac_word
=$2
1780 echo "$as_me:1780: checking for $ac_word" >&5
1781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1782 if test "${ac_cv_prog_LINT+set}" = set; then
1783 echo $ECHO_N "(cached) $ECHO_C" >&6
1785 if test -n "$LINT"; then
1786 ac_cv_prog_LINT
="$LINT" # Let the user override the test.
1788 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1790 for ac_dir
in $ac_dummy; do
1792 test -z "$ac_dir" && ac_dir
=.
1793 $as_executable_p "$ac_dir/$ac_word" || continue
1794 ac_cv_prog_LINT
="$ac_prog"
1795 echo "$as_me:1795: found $ac_dir/$ac_word" >&5
1801 LINT
=$ac_cv_prog_LINT
1802 if test -n "$LINT"; then
1803 echo "$as_me:1803: result: $LINT" >&5
1804 echo "${ECHO_T}$LINT" >&6
1806 echo "$as_me:1806: result: no" >&5
1807 echo "${ECHO_T}no" >&6
1810 test -n "$LINT" && break
1813 echo "$as_me:1813: checking if filesystem supports mixed-case filenames" >&5
1814 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
1815 if test "${cf_cv_mixedcase+set}" = set; then
1816 echo $ECHO_N "(cached) $ECHO_C" >&6
1819 if test "$cross_compiling" = yes ; then
1820 case $target_alias in #(vi
1821 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
1829 rm -f conftest CONFTEST
1831 if test -f CONFTEST
; then
1836 rm -f conftest CONFTEST
1840 echo "$as_me:1840: result: $cf_cv_mixedcase" >&5
1841 echo "${ECHO_T}$cf_cv_mixedcase" >&6
1842 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h
<<\EOF
1843 #define MIXEDCASE_FILENAMES 1
1846 for ac_prog
in exctags ctags
1848 # Extract the first word of "$ac_prog", so it can be a program name with args.
1849 set dummy
$ac_prog; ac_word
=$2
1850 echo "$as_me:1850: checking for $ac_word" >&5
1851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1852 if test "${ac_cv_prog_CTAGS+set}" = set; then
1853 echo $ECHO_N "(cached) $ECHO_C" >&6
1855 if test -n "$CTAGS"; then
1856 ac_cv_prog_CTAGS
="$CTAGS" # Let the user override the test.
1858 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1860 for ac_dir
in $ac_dummy; do
1862 test -z "$ac_dir" && ac_dir
=.
1863 $as_executable_p "$ac_dir/$ac_word" || continue
1864 ac_cv_prog_CTAGS
="$ac_prog"
1865 echo "$as_me:1865: found $ac_dir/$ac_word" >&5
1871 CTAGS
=$ac_cv_prog_CTAGS
1872 if test -n "$CTAGS"; then
1873 echo "$as_me:1873: result: $CTAGS" >&5
1874 echo "${ECHO_T}$CTAGS" >&6
1876 echo "$as_me:1876: result: no" >&5
1877 echo "${ECHO_T}no" >&6
1880 test -n "$CTAGS" && break
1883 for ac_prog
in exetags etags
1885 # Extract the first word of "$ac_prog", so it can be a program name with args.
1886 set dummy
$ac_prog; ac_word
=$2
1887 echo "$as_me:1887: checking for $ac_word" >&5
1888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889 if test "${ac_cv_prog_ETAGS+set}" = set; then
1890 echo $ECHO_N "(cached) $ECHO_C" >&6
1892 if test -n "$ETAGS"; then
1893 ac_cv_prog_ETAGS
="$ETAGS" # Let the user override the test.
1895 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1897 for ac_dir
in $ac_dummy; do
1899 test -z "$ac_dir" && ac_dir
=.
1900 $as_executable_p "$ac_dir/$ac_word" || continue
1901 ac_cv_prog_ETAGS
="$ac_prog"
1902 echo "$as_me:1902: found $ac_dir/$ac_word" >&5
1908 ETAGS
=$ac_cv_prog_ETAGS
1909 if test -n "$ETAGS"; then
1910 echo "$as_me:1910: result: $ETAGS" >&5
1911 echo "${ECHO_T}$ETAGS" >&6
1913 echo "$as_me:1913: result: no" >&5
1914 echo "${ECHO_T}no" >&6
1917 test -n "$ETAGS" && break
1920 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
1921 set dummy
${CTAGS:-ctags}; ac_word
=$2
1922 echo "$as_me:1922: checking for $ac_word" >&5
1923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1924 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
1925 echo $ECHO_N "(cached) $ECHO_C" >&6
1927 if test -n "$MAKE_LOWER_TAGS"; then
1928 ac_cv_prog_MAKE_LOWER_TAGS
="$MAKE_LOWER_TAGS" # Let the user override the test.
1930 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1932 for ac_dir
in $ac_dummy; do
1934 test -z "$ac_dir" && ac_dir
=.
1935 $as_executable_p "$ac_dir/$ac_word" || continue
1936 ac_cv_prog_MAKE_LOWER_TAGS
="yes"
1937 echo "$as_me:1937: found $ac_dir/$ac_word" >&5
1941 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS
="no"
1944 MAKE_LOWER_TAGS
=$ac_cv_prog_MAKE_LOWER_TAGS
1945 if test -n "$MAKE_LOWER_TAGS"; then
1946 echo "$as_me:1946: result: $MAKE_LOWER_TAGS" >&5
1947 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
1949 echo "$as_me:1949: result: no" >&5
1950 echo "${ECHO_T}no" >&6
1953 if test "$cf_cv_mixedcase" = yes ; then
1954 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
1955 set dummy
${ETAGS:-etags}; ac_word
=$2
1956 echo "$as_me:1956: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1961 if test -n "$MAKE_UPPER_TAGS"; then
1962 ac_cv_prog_MAKE_UPPER_TAGS
="$MAKE_UPPER_TAGS" # Let the user override the test.
1964 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1966 for ac_dir
in $ac_dummy; do
1968 test -z "$ac_dir" && ac_dir
=.
1969 $as_executable_p "$ac_dir/$ac_word" || continue
1970 ac_cv_prog_MAKE_UPPER_TAGS
="yes"
1971 echo "$as_me:1971: found $ac_dir/$ac_word" >&5
1975 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS
="no"
1978 MAKE_UPPER_TAGS
=$ac_cv_prog_MAKE_UPPER_TAGS
1979 if test -n "$MAKE_UPPER_TAGS"; then
1980 echo "$as_me:1980: result: $MAKE_UPPER_TAGS" >&5
1981 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
1983 echo "$as_me:1983: result: no" >&5
1984 echo "${ECHO_T}no" >&6
1991 if test "$MAKE_UPPER_TAGS" = yes ; then
1997 if test "$MAKE_LOWER_TAGS" = yes ; then
2003 # This should have been defined by AC_PROG_CC
2006 # Check for user's environment-breakage by stuffing CFLAGS/CPPFLAGS content
2007 # into CC. This will not help with broken scripts that wrap the compiler with
2008 # options, but eliminates a more common category of user confusion.
2009 echo "$as_me:2009: checking \$CC variable" >&5
2010 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2013 echo "$as_me:2013: result: broken" >&5
2014 echo "${ECHO_T}broken" >&6
2015 { echo "$as_me:2015: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2016 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2018 cf_flags
=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
2019 CC
=`echo "$CC" | sed -e 's/[ ].*//'`
2024 cf_new_extra_cppflags
=
2026 for cf_add_cflags
in $cf_flags
2028 case $cf_fix_cppflags in
2030 case $cf_add_cflags in #(vi
2031 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2032 case $cf_add_cflags in
2034 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2036 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2037 && test -z "${cf_tst_cflags}" \
2038 && cf_fix_cppflags
=yes
2040 if test $cf_fix_cppflags = yes ; then
2041 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
2043 elif test "${cf_tst_cflags}" = "\"'" ; then
2044 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
2050 *$cf_add_cflags) #(vi
2053 case $cf_add_cflags in #(vi
2055 cf_tst_cppflags
=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2057 CPPFLAGS
=`echo "$CPPFLAGS" | \
2058 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2059 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2063 cf_new_cppflags
="$cf_new_cppflags $cf_add_cflags"
2068 cf_new_cflags
="$cf_new_cflags $cf_add_cflags"
2073 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
2075 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2077 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2078 && test -z "${cf_tst_cflags}" \
2079 && cf_fix_cppflags
=no
2084 if test -n "$cf_new_cflags" ; then
2086 CFLAGS
="$CFLAGS $cf_new_cflags"
2089 if test -n "$cf_new_cppflags" ; then
2091 CPPFLAGS
="$CPPFLAGS $cf_new_cppflags"
2094 if test -n "$cf_new_extra_cppflags" ; then
2096 EXTRA_CPPFLAGS
="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2101 echo "$as_me:2101: result: ok" >&5
2102 echo "${ECHO_T}ok" >&6
2106 echo "$as_me:2106: checking for ${CC:-cc} option to accept ANSI C" >&5
2107 echo $ECHO_N "checking for ${CC:-cc} option to accept ANSI C... $ECHO_C" >&6
2108 if test "${cf_cv_ansi_cc+set}" = set; then
2109 echo $ECHO_N "(cached) $ECHO_C" >&6
2113 cf_save_CFLAGS
="$CFLAGS"
2114 cf_save_CPPFLAGS
="$CPPFLAGS"
2115 # Don't try gcc -ansi; that turns off useful extensions and
2116 # breaks some systems' header files.
2117 # AIX -qlanglvl=ansi
2118 # Ultrix and OSF/1 -std1
2119 # HP-UX -Aa -D_HPUX_SOURCE
2121 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2122 for cf_arg
in "-DCC_HAS_PROTOS" \
2127 "-Aa -D_HPUX_SOURCE" \
2134 cf_new_extra_cppflags
=
2136 for cf_add_cflags
in $cf_arg
2138 case $cf_fix_cppflags in
2140 case $cf_add_cflags in #(vi
2141 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2142 case $cf_add_cflags in
2144 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2146 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2147 && test -z "${cf_tst_cflags}" \
2148 && cf_fix_cppflags
=yes
2150 if test $cf_fix_cppflags = yes ; then
2151 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
2153 elif test "${cf_tst_cflags}" = "\"'" ; then
2154 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
2160 *$cf_add_cflags) #(vi
2163 case $cf_add_cflags in #(vi
2165 cf_tst_cppflags
=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2167 CPPFLAGS
=`echo "$CPPFLAGS" | \
2168 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2169 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2173 cf_new_cppflags
="$cf_new_cppflags $cf_add_cflags"
2178 cf_new_cflags
="$cf_new_cflags $cf_add_cflags"
2183 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
2185 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2187 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2188 && test -z "${cf_tst_cflags}" \
2189 && cf_fix_cppflags
=no
2194 if test -n "$cf_new_cflags" ; then
2196 CFLAGS
="$CFLAGS $cf_new_cflags"
2199 if test -n "$cf_new_cppflags" ; then
2201 CPPFLAGS
="$CPPFLAGS $cf_new_cppflags"
2204 if test -n "$cf_new_extra_cppflags" ; then
2206 EXTRA_CPPFLAGS
="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2209 cat >conftest.
$ac_ext <<_ACEOF
2210 #line 2210 "configure"
2211 #include "confdefs.h"
2213 #ifndef CC_HAS_PROTOS
2214 #if !defined(__STDC__) || (__STDC__ != 1)
2223 int test (int i, double x);
2224 struct s1 {int (*f) (int a);};
2225 struct s2 {int (*f) (double a);};
2230 rm -f conftest.
$ac_objext
2231 if { (eval echo "$as_me:2231: \"$ac_compile\"") >&5
2232 (eval $ac_compile) 2>&5
2234 echo "$as_me:2234: \$? = $ac_status" >&5
2235 (exit $ac_status); } &&
2236 { ac_try
='test -s conftest.$ac_objext'
2237 { (eval echo "$as_me:2237: \"$ac_try\"") >&5
2240 echo "$as_me:2240: \$? = $ac_status" >&5
2241 (exit $ac_status); }; }; then
2242 cf_cv_ansi_cc
="$cf_arg"; break
2244 echo "$as_me: failed program was:" >&5
2245 cat conftest.
$ac_ext >&5
2247 rm -f conftest.
$ac_objext conftest.
$ac_ext
2249 CFLAGS
="$cf_save_CFLAGS"
2250 CPPFLAGS
="$cf_save_CPPFLAGS"
2253 echo "$as_me:2253: result: $cf_cv_ansi_cc" >&5
2254 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2256 if test "$cf_cv_ansi_cc" != "no"; then
2257 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2262 cf_new_extra_cppflags
=
2264 for cf_add_cflags
in $cf_cv_ansi_cc
2266 case $cf_fix_cppflags in
2268 case $cf_add_cflags in #(vi
2269 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2270 case $cf_add_cflags in
2272 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2274 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2275 && test -z "${cf_tst_cflags}" \
2276 && cf_fix_cppflags
=yes
2278 if test $cf_fix_cppflags = yes ; then
2279 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
2281 elif test "${cf_tst_cflags}" = "\"'" ; then
2282 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
2288 *$cf_add_cflags) #(vi
2291 case $cf_add_cflags in #(vi
2293 cf_tst_cppflags
=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2295 CPPFLAGS
=`echo "$CPPFLAGS" | \
2296 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2297 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2301 cf_new_cppflags
="$cf_new_cppflags $cf_add_cflags"
2306 cf_new_cflags
="$cf_new_cflags $cf_add_cflags"
2311 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
2313 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2315 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2316 && test -z "${cf_tst_cflags}" \
2317 && cf_fix_cppflags
=no
2322 if test -n "$cf_new_cflags" ; then
2324 CFLAGS
="$CFLAGS $cf_new_cflags"
2327 if test -n "$cf_new_cppflags" ; then
2329 CPPFLAGS
="$CPPFLAGS $cf_new_cppflags"
2332 if test -n "$cf_new_extra_cppflags" ; then
2334 EXTRA_CPPFLAGS
="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2338 cat >>confdefs.h
<<\EOF
2339 #define CC_HAS_PROTOS 1
2345 if test "$cf_cv_ansi_cc" = "no"; then
2346 { { echo "$as_me:2346: error: Your compiler does not appear to recognize prototypes.
2347 You have the following choices:
2348 a. adjust your compiler options
2349 b. get an up-to-date compiler
2350 c. use a wrapper such as unproto" >&5
2351 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2352 You have the following choices:
2353 a. adjust your compiler options
2354 b. get an up-to-date compiler
2355 c. use a wrapper such as unproto" >&2;}
2356 { (exit 1); exit 1; }; }
2359 echo "$as_me:2359: checking if you want to see long compiling messages" >&5
2360 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
2362 # Check whether --enable-echo or --disable-echo was given.
2363 if test "${enable_echo+set}" = set; then
2364 enableval
="$enable_echo"
2365 test "$enableval" != no
&& enableval
=yes
2366 if test "$enableval" != "yes" ; then
2369 ECHO_LD
='@echo linking $@;'
2370 RULE_CC
='@echo compiling $<'
2371 SHOW_CC
='@echo compiling $@'
2393 echo "$as_me:2393: result: $enableval" >&5
2394 echo "${ECHO_T}$enableval" >&6
2396 # Make sure we can run config.sub.
2397 $ac_config_sub sun4
>/dev
/null
2>&1 ||
2398 { { echo "$as_me:2398: error: cannot run $ac_config_sub" >&5
2399 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2400 { (exit 1); exit 1; }; }
2402 echo "$as_me:2402: checking build system type" >&5
2403 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2404 if test "${ac_cv_build+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2407 ac_cv_build_alias
=$build_alias
2408 test -z "$ac_cv_build_alias" &&
2409 ac_cv_build_alias
=`$ac_config_guess`
2410 test -z "$ac_cv_build_alias" &&
2411 { { echo "$as_me:2411: error: cannot guess build type; you must specify one" >&5
2412 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2413 { (exit 1); exit 1; }; }
2414 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
2415 { { echo "$as_me:2415: error: $ac_config_sub $ac_cv_build_alias failed." >&5
2416 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
2417 { (exit 1); exit 1; }; }
2420 echo "$as_me:2420: result: $ac_cv_build" >&5
2421 echo "${ECHO_T}$ac_cv_build" >&6
2423 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2424 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2425 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2427 if test -f $srcdir/config.guess
|| test -f $ac_aux_dir/config.guess
; then
2428 echo "$as_me:2428: checking host system type" >&5
2429 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2430 if test "${ac_cv_host+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2433 ac_cv_host_alias
=$host_alias
2434 test -z "$ac_cv_host_alias" &&
2435 ac_cv_host_alias
=$ac_cv_build_alias
2436 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
2437 { { echo "$as_me:2437: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2438 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2439 { (exit 1); exit 1; }; }
2442 echo "$as_me:2442: result: $ac_cv_host" >&5
2443 echo "${ECHO_T}$ac_cv_host" >&6
2445 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2446 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2447 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2449 system_name
="$host_os"
2451 system_name
="`(uname -s -r) 2>/dev/null`"
2452 if test -z "$system_name" ; then
2453 system_name
="`(hostname) 2>/dev/null`"
2456 test -n "$system_name" && cat >>confdefs.h
<<EOF
2457 #define SYSTEM_NAME "$system_name"
2460 if test "${cf_cv_system_name+set}" = set; then
2461 echo $ECHO_N "(cached) $ECHO_C" >&6
2463 cf_cv_system_name
="$system_name"
2466 test -z "$system_name" && system_name
="$cf_cv_system_name"
2467 test -n "$cf_cv_system_name" && echo "$as_me:2467: result: Configuring for $cf_cv_system_name" >&5
2468 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
2470 if test ".$system_name" != ".$cf_cv_system_name" ; then
2471 echo "$as_me:2471: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
2472 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
2473 { { echo "$as_me:2473: error: \"Please remove config.cache and try again.\"" >&5
2474 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
2475 { (exit 1); exit 1; }; }
2478 case $cf_cv_system_name in
2480 CFLAGS
="$CFLAGS -Zmt"
2481 CPPFLAGS
="$CPPFLAGS -D__ST_MT_ERRNO__"
2482 CXXFLAGS
="$CXXFLAGS -Zmt"
2483 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2484 LDFLAGS
="$LDFLAGS -Zmt -Zcrtdll"
2491 test -n "$PROG_EXT" && cat >>confdefs.h
<<EOF
2492 #define PROG_EXT "$PROG_EXT"
2495 echo "$as_me:2495: checking for install-prefix" >&5
2496 echo $ECHO_N "checking for install-prefix... $ECHO_C" >&6
2498 # Check whether --with-install-prefix or --without-install-prefix was given.
2499 if test "${with_install_prefix+set}" = set; then
2500 withval
="$with_install_prefix"
2501 cf_opt_with_install_prefix
=$withval
2503 cf_opt_with_install_prefix
=${DESTDIR:-no}
2505 echo "$as_me:2505: result: $cf_opt_with_install_prefix" >&5
2506 echo "${ECHO_T}$cf_opt_with_install_prefix" >&6
2507 if test "$cf_opt_with_install_prefix" != no
; then
2509 if test "x$prefix" != xNONE
; then
2510 cf_path_syntax
="$prefix"
2512 cf_path_syntax
="$ac_default_prefix"
2515 case ".$cf_opt_with_install_prefix" in #(vi
2516 .\$\
(*\
)*|.
\'*\'*) #(vi
2520 .
[a
-zA-Z]:[\\/]*) #(vi OS/2 EMX
2523 eval cf_opt_with_install_prefix
="$cf_opt_with_install_prefix"
2524 case ".$cf_opt_with_install_prefix" in #(vi
2526 cf_opt_with_install_prefix
=`echo $cf_opt_with_install_prefix | sed -e s%NONE%$cf_path_syntax%`
2531 cf_opt_with_install_prefix
=`echo $cf_opt_with_install_prefix | sed -e s%NONE%$cf_path_syntax%`
2534 { { echo "$as_me:2534: error: expected a pathname, not \"$cf_opt_with_install_prefix\"" >&5
2535 echo "$as_me: error: expected a pathname, not \"$cf_opt_with_install_prefix\"" >&2;}
2536 { (exit 1); exit 1; }; }
2540 DESTDIR
=$cf_opt_with_install_prefix
2545 case $cf_cv_system_name in
2546 os2
*) PATH_SEPARATOR
=';' ;;
2547 *) PATH_SEPARATOR
=':' ;;
2550 test -z "$BZCAT" && BZCAT
=bzcat
2551 for ac_prog
in $BZCAT bzcat
2553 # Extract the first word of "$ac_prog", so it can be a program name with args.
2554 set dummy
$ac_prog; ac_word
=$2
2555 echo "$as_me:2555: checking for $ac_word" >&5
2556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2557 if test "${ac_cv_path_BZCAT+set}" = set; then
2558 echo $ECHO_N "(cached) $ECHO_C" >&6
2562 ac_cv_path_BZCAT
="$BZCAT" # Let the user override the test with a path.
2565 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2567 for ac_dir
in $ac_dummy; do
2569 test -z "$ac_dir" && ac_dir
=.
2570 if $as_executable_p "$ac_dir/$ac_word"; then
2571 ac_cv_path_BZCAT
="$ac_dir/$ac_word"
2572 echo "$as_me:2572: found $ac_dir/$ac_word" >&5
2580 BZCAT
=$ac_cv_path_BZCAT
2582 if test -n "$BZCAT"; then
2583 echo "$as_me:2583: result: $BZCAT" >&5
2584 echo "${ECHO_T}$BZCAT" >&6
2586 echo "$as_me:2586: result: no" >&5
2587 echo "${ECHO_T}no" >&6
2590 test -n "$BZCAT" && break
2592 test -n "$BZCAT" || BZCAT
="$BZCAT"
2596 IFS
="${IFS:- }"; cf_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR"
2597 for cf_temp
in $ac_cv_path_BZCAT
2599 if test -z "$cf_path_prog" ; then
2600 if test "$with_full_paths" = yes ; then
2602 if test "x$prefix" != xNONE
; then
2603 cf_path_syntax
="$prefix"
2605 cf_path_syntax
="$ac_default_prefix"
2608 case ".$cf_temp" in #(vi
2609 .\$\
(*\
)*|.
\'*\'*) #(vi
2613 .
[a
-zA-Z]:[\\/]*) #(vi OS/2 EMX
2616 eval cf_temp
="$cf_temp"
2617 case ".$cf_temp" in #(vi
2619 cf_temp
=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
2624 cf_temp
=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
2631 cf_path_prog
="$cf_temp"
2633 cf_path_prog
="`basename $cf_temp`"
2635 elif test -z "$cf_path_args" ; then
2636 cf_path_args
="$cf_temp"
2638 cf_path_args
="$cf_path_args $cf_temp"
2643 if test -n "$cf_path_prog" ; then
2645 echo "${as_me:-configure}:2645: testing defining path for ${cf_path_prog} ..." 1>&5
2647 cat >>confdefs.h
<<EOF
2648 #define BZCAT_PATH "$cf_path_prog"
2651 test -n "$cf_path_args" && cat >>confdefs.h
<<EOF
2652 #define BZCAT_ARGS "$cf_path_args"
2657 test -z "$BZIP2" && BZIP2
=bzip2
2658 for ac_prog
in $BZIP2 bzip2
2660 # Extract the first word of "$ac_prog", so it can be a program name with args.
2661 set dummy
$ac_prog; ac_word
=$2
2662 echo "$as_me:2662: checking for $ac_word" >&5
2663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2664 if test "${ac_cv_path_BZIP2+set}" = set; then
2665 echo $ECHO_N "(cached) $ECHO_C" >&6
2669 ac_cv_path_BZIP2
="$BZIP2" # Let the user override the test with a path.
2672 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2674 for ac_dir
in $ac_dummy; do
2676 test -z "$ac_dir" && ac_dir
=.
2677 if $as_executable_p "$ac_dir/$ac_word"; then
2678 ac_cv_path_BZIP2
="$ac_dir/$ac_word"
2679 echo "$as_me:2679: found $ac_dir/$ac_word" >&5
2687 BZIP2
=$ac_cv_path_BZIP2
2689 if test -n "$BZIP2"; then
2690 echo "$as_me:2690: result: $BZIP2" >&5
2691 echo "${ECHO_T}$BZIP2" >&6
2693 echo "$as_me:2693: result: no" >&5
2694 echo "${ECHO_T}no" >&6
2697 test -n "$BZIP2" && break
2699 test -n "$BZIP2" || BZIP2
="$BZIP2"
2703 IFS
="${IFS:- }"; cf_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR"
2704 for cf_temp
in $ac_cv_path_BZIP2
2706 if test -z "$cf_path_prog" ; then
2707 if test "$with_full_paths" = yes ; then
2709 if test "x$prefix" != xNONE
; then
2710 cf_path_syntax
="$prefix"
2712 cf_path_syntax
="$ac_default_prefix"
2715 case ".$cf_temp" in #(vi
2716 .\$\
(*\
)*|.
\'*\'*) #(vi
2720 .
[a
-zA-Z]:[\\/]*) #(vi OS/2 EMX
2723 eval cf_temp
="$cf_temp"
2724 case ".$cf_temp" in #(vi
2726 cf_temp
=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
2731 cf_temp
=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
2738 cf_path_prog
="$cf_temp"
2740 cf_path_prog
="`basename $cf_temp`"
2742 elif test -z "$cf_path_args" ; then
2743 cf_path_args
="$cf_temp"
2745 cf_path_args
="$cf_path_args $cf_temp"
2750 if test -n "$cf_path_prog" ; then
2752 echo "${as_me:-configure}:2752: testing defining path for ${cf_path_prog} ..." 1>&5
2754 cat >>confdefs.h
<<EOF
2755 #define BZIP2_PATH "$cf_path_prog"
2758 test -n "$cf_path_args" && cat >>confdefs.h
<<EOF
2759 #define BZIP2_ARGS "$cf_path_args"
2764 test -z "$COMPRESS" && COMPRESS
=compress
2765 for ac_prog
in $COMPRESS compress gzip
2767 # Extract the first word of "$ac_prog", so it can be a program name with args.
2768 set dummy
$ac_prog; ac_word
=$2
2769 echo "$as_me:2769: checking for $ac_word" >&5
2770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2771 if test "${ac_cv_path_COMPRESS+set}" = set; then
2772 echo $ECHO_N "(cached) $ECHO_C" >&6
2776 ac_cv_path_COMPRESS
="$COMPRESS" # Let the user override the test with a path.
2779 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2781 for ac_dir
in $ac_dummy; do
2783 test -z "$ac_dir" && ac_dir
=.
2784 if $as_executable_p "$ac_dir/$ac_word"; then
2785 ac_cv_path_COMPRESS
="$ac_dir/$ac_word"
2786 echo "$as_me:2786: found $ac_dir/$ac_word" >&5
2794 COMPRESS
=$ac_cv_path_COMPRESS
2796 if test -n "$COMPRESS"; then
2797 echo "$as_me:2797: result: $COMPRESS" >&5
2798 echo "${ECHO_T}$COMPRESS" >&6
2800 echo "$as_me:2800: result: no" >&5
2801 echo "${ECHO_T}no" >&6
2804 test -n "$COMPRESS" && break
2806 test -n "$COMPRESS" || COMPRESS
="$COMPRESS"
2810 IFS
="${IFS:- }"; cf_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR"
2811 for cf_temp
in $ac_cv_path_COMPRESS
2813 if test -z "$cf_path_prog" ; then
2814 if test "$with_full_paths" = yes ; then
2816 if test "x$prefix" != xNONE
; then
2817 cf_path_syntax
="$prefix"
2819 cf_path_syntax
="$ac_default_prefix"
2822 case ".$cf_temp" in #(vi
2823 .\$\
(*\
)*|.
\'*\'*) #(vi
2827 .
[a
-zA-Z]:[\\/]*) #(vi OS/2 EMX
2830 eval cf_temp
="$cf_temp"
2831 case ".$cf_temp" in #(vi
2833 cf_temp
=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
2838 cf_temp
=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
2845 cf_path_prog
="$cf_temp"
2847 cf_path_prog
="`basename $cf_temp`"
2849 elif test -z "$cf_path_args" ; then
2850 cf_path_args
="$cf_temp"
2852 cf_path_args
="$cf_path_args $cf_temp"
2857 if test -n "$cf_path_prog" ; then
2859 echo "${as_me:-configure}:2859: testing defining path for ${cf_path_prog} ..." 1>&5
2861 cat >>confdefs.h
<<EOF
2862 #define COMPRESS_PATH "$cf_path_prog"
2865 test -n "$cf_path_args" && cat >>confdefs.h
<<EOF
2866 #define COMPRESS_ARGS "$cf_path_args"
2871 test -z "$GZIP" && GZIP
=gzip
2872 for ac_prog
in $GZIP gzip
2874 # Extract the first word of "$ac_prog", so it can be a program name with args.
2875 set dummy
$ac_prog; ac_word
=$2
2876 echo "$as_me:2876: checking for $ac_word" >&5
2877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2878 if test "${ac_cv_path_GZIP+set}" = set; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2883 ac_cv_path_GZIP
="$GZIP" # Let the user override the test with a path.
2886 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2888 for ac_dir
in $ac_dummy; do
2890 test -z "$ac_dir" && ac_dir
=.
2891 if $as_executable_p "$ac_dir/$ac_word"; then
2892 ac_cv_path_GZIP
="$ac_dir/$ac_word"
2893 echo "$as_me:2893: found $ac_dir/$ac_word" >&5
2901 GZIP
=$ac_cv_path_GZIP
2903 if test -n "$GZIP"; then
2904 echo "$as_me:2904: result: $GZIP" >&5
2905 echo "${ECHO_T}$GZIP" >&6
2907 echo "$as_me:2907: result: no" >&5
2908 echo "${ECHO_T}no" >&6
2911 test -n "$GZIP" && break
2913 test -n "$GZIP" || GZIP
="$GZIP"
2917 IFS
="${IFS:- }"; cf_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR"
2918 for cf_temp
in $ac_cv_path_GZIP
2920 if test -z "$cf_path_prog" ; then
2921 if test "$with_full_paths" = yes ; then
2923 if test "x$prefix" != xNONE
; then
2924 cf_path_syntax
="$prefix"
2926 cf_path_syntax
="$ac_default_prefix"
2929 case ".$cf_temp" in #(vi
2930 .\$\
(*\
)*|.
\'*\'*) #(vi
2934 .
[a
-zA-Z]:[\\/]*) #(vi OS/2 EMX
2937 eval cf_temp
="$cf_temp"
2938 case ".$cf_temp" in #(vi
2940 cf_temp
=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
2945 cf_temp
=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
2952 cf_path_prog
="$cf_temp"
2954 cf_path_prog
="`basename $cf_temp`"
2956 elif test -z "$cf_path_args" ; then
2957 cf_path_args
="$cf_temp"
2959 cf_path_args
="$cf_path_args $cf_temp"
2964 if test -n "$cf_path_prog" ; then
2966 echo "${as_me:-configure}:2966: testing defining path for ${cf_path_prog} ..." 1>&5
2968 cat >>confdefs.h
<<EOF
2969 #define GZIP_PATH "$cf_path_prog"
2972 test -n "$cf_path_args" && cat >>confdefs.h
<<EOF
2973 #define GZIP_ARGS "$cf_path_args"
2978 test -z "$LZCAT" && LZCAT
=lzcat
2979 for ac_prog
in $LZCAT lzcat xz
2981 # Extract the first word of "$ac_prog", so it can be a program name with args.
2982 set dummy
$ac_prog; ac_word
=$2
2983 echo "$as_me:2983: checking for $ac_word" >&5
2984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2985 if test "${ac_cv_path_LZCAT+set}" = set; then
2986 echo $ECHO_N "(cached) $ECHO_C" >&6
2990 ac_cv_path_LZCAT
="$LZCAT" # Let the user override the test with a path.
2993 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2995 for ac_dir
in $ac_dummy; do
2997 test -z "$ac_dir" && ac_dir
=.
2998 if $as_executable_p "$ac_dir/$ac_word"; then
2999 ac_cv_path_LZCAT
="$ac_dir/$ac_word"
3000 echo "$as_me:3000: found $ac_dir/$ac_word" >&5
3008 LZCAT
=$ac_cv_path_LZCAT
3010 if test -n "$LZCAT"; then
3011 echo "$as_me:3011: result: $LZCAT" >&5
3012 echo "${ECHO_T}$LZCAT" >&6
3014 echo "$as_me:3014: result: no" >&5
3015 echo "${ECHO_T}no" >&6
3018 test -n "$LZCAT" && break
3020 test -n "$LZCAT" || LZCAT
="$LZCAT"
3024 IFS
="${IFS:- }"; cf_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR"
3025 for cf_temp
in $ac_cv_path_LZCAT
3027 if test -z "$cf_path_prog" ; then
3028 if test "$with_full_paths" = yes ; then
3030 if test "x$prefix" != xNONE
; then
3031 cf_path_syntax
="$prefix"
3033 cf_path_syntax
="$ac_default_prefix"
3036 case ".$cf_temp" in #(vi
3037 .\$\
(*\
)*|.
\'*\'*) #(vi
3041 .
[a
-zA-Z]:[\\/]*) #(vi OS/2 EMX
3044 eval cf_temp
="$cf_temp"
3045 case ".$cf_temp" in #(vi
3047 cf_temp
=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
3052 cf_temp
=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
3059 cf_path_prog
="$cf_temp"
3061 cf_path_prog
="`basename $cf_temp`"
3063 elif test -z "$cf_path_args" ; then
3064 cf_path_args
="$cf_temp"
3066 cf_path_args
="$cf_path_args $cf_temp"
3071 if test -n "$cf_path_prog" ; then
3073 echo "${as_me:-configure}:3073: testing defining path for ${cf_path_prog} ..." 1>&5
3075 cat >>confdefs.h
<<EOF
3076 #define LZCAT_PATH "$cf_path_prog"
3079 test -n "$cf_path_args" && cat >>confdefs.h
<<EOF
3080 #define LZCAT_ARGS "$cf_path_args"
3085 test -z "$PCAT" && PCAT
=pcat
3086 for ac_prog
in $PCAT pcat
3088 # Extract the first word of "$ac_prog", so it can be a program name with args.
3089 set dummy
$ac_prog; ac_word
=$2
3090 echo "$as_me:3090: checking for $ac_word" >&5
3091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3092 if test "${ac_cv_path_PCAT+set}" = set; then
3093 echo $ECHO_N "(cached) $ECHO_C" >&6
3097 ac_cv_path_PCAT
="$PCAT" # Let the user override the test with a path.
3100 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3102 for ac_dir
in $ac_dummy; do
3104 test -z "$ac_dir" && ac_dir
=.
3105 if $as_executable_p "$ac_dir/$ac_word"; then
3106 ac_cv_path_PCAT
="$ac_dir/$ac_word"
3107 echo "$as_me:3107: found $ac_dir/$ac_word" >&5
3115 PCAT
=$ac_cv_path_PCAT
3117 if test -n "$PCAT"; then
3118 echo "$as_me:3118: result: $PCAT" >&5
3119 echo "${ECHO_T}$PCAT" >&6
3121 echo "$as_me:3121: result: no" >&5
3122 echo "${ECHO_T}no" >&6
3125 test -n "$PCAT" && break
3127 test -n "$PCAT" || PCAT
="$PCAT"
3131 IFS
="${IFS:- }"; cf_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR"
3132 for cf_temp
in $ac_cv_path_PCAT
3134 if test -z "$cf_path_prog" ; then
3135 if test "$with_full_paths" = yes ; then
3137 if test "x$prefix" != xNONE
; then
3138 cf_path_syntax
="$prefix"
3140 cf_path_syntax
="$ac_default_prefix"
3143 case ".$cf_temp" in #(vi
3144 .\$\
(*\
)*|.
\'*\'*) #(vi
3148 .
[a
-zA-Z]:[\\/]*) #(vi OS/2 EMX
3151 eval cf_temp
="$cf_temp"
3152 case ".$cf_temp" in #(vi
3154 cf_temp
=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
3159 cf_temp
=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
3166 cf_path_prog
="$cf_temp"
3168 cf_path_prog
="`basename $cf_temp`"
3170 elif test -z "$cf_path_args" ; then
3171 cf_path_args
="$cf_temp"
3173 cf_path_args
="$cf_path_args $cf_temp"
3178 if test -n "$cf_path_prog" ; then
3180 echo "${as_me:-configure}:3180: testing defining path for ${cf_path_prog} ..." 1>&5
3182 cat >>confdefs.h
<<EOF
3183 #define PCAT_PATH "$cf_path_prog"
3186 test -n "$cf_path_args" && cat >>confdefs.h
<<EOF
3187 #define PCAT_ARGS "$cf_path_args"
3192 test -z "$UNCOMPRESS" && UNCOMPRESS
=uncompress.real
3193 for ac_prog
in $UNCOMPRESS uncompress.real
uncompress
3195 # Extract the first word of "$ac_prog", so it can be a program name with args.
3196 set dummy
$ac_prog; ac_word
=$2
3197 echo "$as_me:3197: checking for $ac_word" >&5
3198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3199 if test "${ac_cv_path_UNCOMPRESS+set}" = set; then
3200 echo $ECHO_N "(cached) $ECHO_C" >&6
3204 ac_cv_path_UNCOMPRESS
="$UNCOMPRESS" # Let the user override the test with a path.
3207 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3209 for ac_dir
in $ac_dummy; do
3211 test -z "$ac_dir" && ac_dir
=.
3212 if $as_executable_p "$ac_dir/$ac_word"; then
3213 ac_cv_path_UNCOMPRESS
="$ac_dir/$ac_word"
3214 echo "$as_me:3214: found $ac_dir/$ac_word" >&5
3222 UNCOMPRESS
=$ac_cv_path_UNCOMPRESS
3224 if test -n "$UNCOMPRESS"; then
3225 echo "$as_me:3225: result: $UNCOMPRESS" >&5
3226 echo "${ECHO_T}$UNCOMPRESS" >&6
3228 echo "$as_me:3228: result: no" >&5
3229 echo "${ECHO_T}no" >&6
3232 test -n "$UNCOMPRESS" && break
3234 test -n "$UNCOMPRESS" || UNCOMPRESS
="$UNCOMPRESS"
3238 IFS
="${IFS:- }"; cf_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR"
3239 for cf_temp
in $ac_cv_path_UNCOMPRESS
3241 if test -z "$cf_path_prog" ; then
3242 if test "$with_full_paths" = yes ; then
3244 if test "x$prefix" != xNONE
; then
3245 cf_path_syntax
="$prefix"
3247 cf_path_syntax
="$ac_default_prefix"
3250 case ".$cf_temp" in #(vi
3251 .\$\
(*\
)*|.
\'*\'*) #(vi
3255 .
[a
-zA-Z]:[\\/]*) #(vi OS/2 EMX
3258 eval cf_temp
="$cf_temp"
3259 case ".$cf_temp" in #(vi
3261 cf_temp
=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
3266 cf_temp
=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
3273 cf_path_prog
="$cf_temp"
3275 cf_path_prog
="`basename $cf_temp`"
3277 elif test -z "$cf_path_args" ; then
3278 cf_path_args
="$cf_temp"
3280 cf_path_args
="$cf_path_args $cf_temp"
3285 if test -n "$cf_path_prog" ; then
3287 echo "${as_me:-configure}:3287: testing defining path for ${cf_path_prog} ..." 1>&5
3289 cat >>confdefs.h
<<EOF
3290 #define UNCOMPRESS_PATH "$cf_path_prog"
3293 test -n "$cf_path_args" && cat >>confdefs.h
<<EOF
3294 #define UNCOMPRESS_ARGS "$cf_path_args"
3299 test -z "$XZ" && XZ
=xz
3300 for ac_prog
in $XZ xz lzcat
3302 # Extract the first word of "$ac_prog", so it can be a program name with args.
3303 set dummy
$ac_prog; ac_word
=$2
3304 echo "$as_me:3304: checking for $ac_word" >&5
3305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3306 if test "${ac_cv_path_XZ+set}" = set; then
3307 echo $ECHO_N "(cached) $ECHO_C" >&6
3311 ac_cv_path_XZ
="$XZ" # Let the user override the test with a path.
3314 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3316 for ac_dir
in $ac_dummy; do
3318 test -z "$ac_dir" && ac_dir
=.
3319 if $as_executable_p "$ac_dir/$ac_word"; then
3320 ac_cv_path_XZ
="$ac_dir/$ac_word"
3321 echo "$as_me:3321: found $ac_dir/$ac_word" >&5
3331 if test -n "$XZ"; then
3332 echo "$as_me:3332: result: $XZ" >&5
3333 echo "${ECHO_T}$XZ" >&6
3335 echo "$as_me:3335: result: no" >&5
3336 echo "${ECHO_T}no" >&6
3339 test -n "$XZ" && break
3341 test -n "$XZ" || XZ
="$XZ"
3345 IFS
="${IFS:- }"; cf_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR"
3346 for cf_temp
in $ac_cv_path_XZ
3348 if test -z "$cf_path_prog" ; then
3349 if test "$with_full_paths" = yes ; then
3351 if test "x$prefix" != xNONE
; then
3352 cf_path_syntax
="$prefix"
3354 cf_path_syntax
="$ac_default_prefix"
3357 case ".$cf_temp" in #(vi
3358 .\$\
(*\
)*|.
\'*\'*) #(vi
3362 .
[a
-zA-Z]:[\\/]*) #(vi OS/2 EMX
3365 eval cf_temp
="$cf_temp"
3366 case ".$cf_temp" in #(vi
3368 cf_temp
=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
3373 cf_temp
=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
3380 cf_path_prog
="$cf_temp"
3382 cf_path_prog
="`basename $cf_temp`"
3384 elif test -z "$cf_path_args" ; then
3385 cf_path_args
="$cf_temp"
3387 cf_path_args
="$cf_path_args $cf_temp"
3392 if test -n "$cf_path_prog" ; then
3394 echo "${as_me:-configure}:3394: testing defining path for ${cf_path_prog} ..." 1>&5
3396 cat >>confdefs.h
<<EOF
3397 #define XZ_PATH "$cf_path_prog"
3400 test -n "$cf_path_args" && cat >>confdefs.h
<<EOF
3401 #define XZ_ARGS "$cf_path_args"
3406 test -z "$ZCAT" && ZCAT
=zcat
3407 for ac_prog
in $ZCAT zcat
3409 # Extract the first word of "$ac_prog", so it can be a program name with args.
3410 set dummy
$ac_prog; ac_word
=$2
3411 echo "$as_me:3411: checking for $ac_word" >&5
3412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3413 if test "${ac_cv_path_ZCAT+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3418 ac_cv_path_ZCAT
="$ZCAT" # Let the user override the test with a path.
3421 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3423 for ac_dir
in $ac_dummy; do
3425 test -z "$ac_dir" && ac_dir
=.
3426 if $as_executable_p "$ac_dir/$ac_word"; then
3427 ac_cv_path_ZCAT
="$ac_dir/$ac_word"
3428 echo "$as_me:3428: found $ac_dir/$ac_word" >&5
3436 ZCAT
=$ac_cv_path_ZCAT
3438 if test -n "$ZCAT"; then
3439 echo "$as_me:3439: result: $ZCAT" >&5
3440 echo "${ECHO_T}$ZCAT" >&6
3442 echo "$as_me:3442: result: no" >&5
3443 echo "${ECHO_T}no" >&6
3446 test -n "$ZCAT" && break
3448 test -n "$ZCAT" || ZCAT
="$ZCAT"
3452 IFS
="${IFS:- }"; cf_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR"
3453 for cf_temp
in $ac_cv_path_ZCAT
3455 if test -z "$cf_path_prog" ; then
3456 if test "$with_full_paths" = yes ; then
3458 if test "x$prefix" != xNONE
; then
3459 cf_path_syntax
="$prefix"
3461 cf_path_syntax
="$ac_default_prefix"
3464 case ".$cf_temp" in #(vi
3465 .\$\
(*\
)*|.
\'*\'*) #(vi
3469 .
[a
-zA-Z]:[\\/]*) #(vi OS/2 EMX
3472 eval cf_temp
="$cf_temp"
3473 case ".$cf_temp" in #(vi
3475 cf_temp
=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
3480 cf_temp
=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
3487 cf_path_prog
="$cf_temp"
3489 cf_path_prog
="`basename $cf_temp`"
3491 elif test -z "$cf_path_args" ; then
3492 cf_path_args
="$cf_temp"
3494 cf_path_args
="$cf_path_args $cf_temp"
3499 if test -n "$cf_path_prog" ; then
3501 echo "${as_me:-configure}:3501: testing defining path for ${cf_path_prog} ..." 1>&5
3503 cat >>confdefs.h
<<EOF
3504 #define ZCAT_PATH "$cf_path_prog"
3507 test -n "$cf_path_args" && cat >>confdefs.h
<<EOF
3508 #define ZCAT_ARGS "$cf_path_args"
3514 cf_POSIX_C_SOURCE
=199506L
3517 case $host_os in #(vi
3519 cf_xopen_source
="-D_ALL_SOURCE"
3525 cf_xopen_source
="-D_APPLE_C_SOURCE"
3528 cf_xopen_source
="-D_DARWIN_C_SOURCE"
3530 freebsd
*|dragonfly
*) #(vi
3531 # 5.x headers associate
3532 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
3533 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
3534 cf_POSIX_C_SOURCE
=200112L
3536 cf_xopen_source
="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3539 cf_xopen_source
="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
3542 cf_xopen_source
="-D_HPUX_SOURCE"
3545 cf_xopen_source
="-D_SGI_SOURCE"
3548 linux
*|gnu
*|mint
*|k
*bsd
*-gnu) #(vi
3550 echo "$as_me:3550: checking if we must define _GNU_SOURCE" >&5
3551 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
3552 if test "${cf_cv_gnu_source+set}" = set; then
3553 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 cat >conftest.
$ac_ext <<_ACEOF
3557 #line 3557 "configure"
3558 #include "confdefs.h"
3559 #include <sys/types.h>
3564 #ifndef _XOPEN_SOURCE
3571 rm -f conftest.
$ac_objext
3572 if { (eval echo "$as_me:3572: \"$ac_compile\"") >&5
3573 (eval $ac_compile) 2>&5
3575 echo "$as_me:3575: \$? = $ac_status" >&5
3576 (exit $ac_status); } &&
3577 { ac_try
='test -s conftest.$ac_objext'
3578 { (eval echo "$as_me:3578: \"$ac_try\"") >&5
3581 echo "$as_me:3581: \$? = $ac_status" >&5
3582 (exit $ac_status); }; }; then
3585 echo "$as_me: failed program was:" >&5
3586 cat conftest.
$ac_ext >&5
3588 CPPFLAGS
="$CPPFLAGS -D_GNU_SOURCE"
3589 cat >conftest.
$ac_ext <<_ACEOF
3590 #line 3590 "configure"
3591 #include "confdefs.h"
3592 #include <sys/types.h>
3597 #ifdef _XOPEN_SOURCE
3604 rm -f conftest.
$ac_objext
3605 if { (eval echo "$as_me:3605: \"$ac_compile\"") >&5
3606 (eval $ac_compile) 2>&5
3608 echo "$as_me:3608: \$? = $ac_status" >&5
3609 (exit $ac_status); } &&
3610 { ac_try
='test -s conftest.$ac_objext'
3611 { (eval echo "$as_me:3611: \"$ac_try\"") >&5
3614 echo "$as_me:3614: \$? = $ac_status" >&5
3615 (exit $ac_status); }; }; then
3618 echo "$as_me: failed program was:" >&5
3619 cat conftest.
$ac_ext >&5
3620 cf_cv_gnu_source
=yes
3622 rm -f conftest.
$ac_objext conftest.
$ac_ext
3626 rm -f conftest.
$ac_objext conftest.
$ac_ext
3629 echo "$as_me:3629: result: $cf_cv_gnu_source" >&5
3630 echo "${ECHO_T}$cf_cv_gnu_source" >&6
3631 test "$cf_cv_gnu_source" = yes && CPPFLAGS
="$CPPFLAGS -D_GNU_SOURCE"
3635 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
3638 cf_POSIX_C_SOURCE
=$cf_POSIX_C_SOURCE
3640 cf_save_CFLAGS
="$CFLAGS"
3641 cf_save_CPPFLAGS
="$CPPFLAGS"
3643 cf_trim_CFLAGS
=`echo "$cf_save_CFLAGS" | \
3644 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3645 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3647 cf_trim_CPPFLAGS
=`echo "$cf_save_CPPFLAGS" | \
3648 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3649 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3651 echo "$as_me:3651: checking if we should define _POSIX_C_SOURCE" >&5
3652 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3653 if test "${cf_cv_posix_c_source+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 echo "${as_me:-configure}:3657: testing if the symbol is already defined go no further ..." 1>&5
3659 cat >conftest.
$ac_ext <<_ACEOF
3660 #line 3660 "configure"
3661 #include "confdefs.h"
3662 #include <sys/types.h>
3667 #ifndef _POSIX_C_SOURCE
3674 rm -f conftest.
$ac_objext
3675 if { (eval echo "$as_me:3675: \"$ac_compile\"") >&5
3676 (eval $ac_compile) 2>&5
3678 echo "$as_me:3678: \$? = $ac_status" >&5
3679 (exit $ac_status); } &&
3680 { ac_try
='test -s conftest.$ac_objext'
3681 { (eval echo "$as_me:3681: \"$ac_try\"") >&5
3684 echo "$as_me:3684: \$? = $ac_status" >&5
3685 (exit $ac_status); }; }; then
3686 cf_cv_posix_c_source
=no
3688 echo "$as_me: failed program was:" >&5
3689 cat conftest.
$ac_ext >&5
3690 cf_want_posix_source
=no
3691 case .
$cf_POSIX_C_SOURCE in #(vi
3693 cf_cv_posix_c_source
="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3696 cf_cv_posix_c_source
="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3697 cf_want_posix_source
=yes
3700 cf_want_posix_source
=yes
3703 if test "$cf_want_posix_source" = yes ; then
3704 cat >conftest.
$ac_ext <<_ACEOF
3705 #line 3705 "configure"
3706 #include "confdefs.h"
3707 #include <sys/types.h>
3712 #ifdef _POSIX_SOURCE
3719 rm -f conftest.
$ac_objext
3720 if { (eval echo "$as_me:3720: \"$ac_compile\"") >&5
3721 (eval $ac_compile) 2>&5
3723 echo "$as_me:3723: \$? = $ac_status" >&5
3724 (exit $ac_status); } &&
3725 { ac_try
='test -s conftest.$ac_objext'
3726 { (eval echo "$as_me:3726: \"$ac_try\"") >&5
3729 echo "$as_me:3729: \$? = $ac_status" >&5
3730 (exit $ac_status); }; }; then
3733 echo "$as_me: failed program was:" >&5
3734 cat conftest.
$ac_ext >&5
3735 cf_cv_posix_c_source
="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3737 rm -f conftest.
$ac_objext conftest.
$ac_ext
3740 echo "${as_me:-configure}:3740: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3742 CFLAGS
="$cf_trim_CFLAGS"
3743 CPPFLAGS
="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3745 echo "${as_me:-configure}:3745: testing if the second compile does not leave our definition intact error ..." 1>&5
3747 cat >conftest.
$ac_ext <<_ACEOF
3748 #line 3748 "configure"
3749 #include "confdefs.h"
3750 #include <sys/types.h>
3755 #ifndef _POSIX_C_SOURCE
3762 rm -f conftest.
$ac_objext
3763 if { (eval echo "$as_me:3763: \"$ac_compile\"") >&5
3764 (eval $ac_compile) 2>&5
3766 echo "$as_me:3766: \$? = $ac_status" >&5
3767 (exit $ac_status); } &&
3768 { ac_try
='test -s conftest.$ac_objext'
3769 { (eval echo "$as_me:3769: \"$ac_try\"") >&5
3772 echo "$as_me:3772: \$? = $ac_status" >&5
3773 (exit $ac_status); }; }; then
3776 echo "$as_me: failed program was:" >&5
3777 cat conftest.
$ac_ext >&5
3778 cf_cv_posix_c_source
=no
3780 rm -f conftest.
$ac_objext conftest.
$ac_ext
3781 CFLAGS
="$cf_save_CFLAGS"
3782 CPPFLAGS
="$cf_save_CPPFLAGS"
3785 rm -f conftest.
$ac_objext conftest.
$ac_ext
3788 echo "$as_me:3788: result: $cf_cv_posix_c_source" >&5
3789 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3791 if test "$cf_cv_posix_c_source" != no
; then
3792 CFLAGS
="$cf_trim_CFLAGS"
3793 CPPFLAGS
="$cf_trim_CPPFLAGS"
3798 cf_new_extra_cppflags
=
3800 for cf_add_cflags
in $cf_cv_posix_c_source
3802 case $cf_fix_cppflags in
3804 case $cf_add_cflags in #(vi
3805 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3806 case $cf_add_cflags in
3808 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3810 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3811 && test -z "${cf_tst_cflags}" \
3812 && cf_fix_cppflags
=yes
3814 if test $cf_fix_cppflags = yes ; then
3815 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
3817 elif test "${cf_tst_cflags}" = "\"'" ; then
3818 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
3824 *$cf_add_cflags) #(vi
3827 case $cf_add_cflags in #(vi
3829 cf_tst_cppflags
=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3831 CPPFLAGS
=`echo "$CPPFLAGS" | \
3832 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3833 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3837 cf_new_cppflags
="$cf_new_cppflags $cf_add_cflags"
3842 cf_new_cflags
="$cf_new_cflags $cf_add_cflags"
3847 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
3849 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3851 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3852 && test -z "${cf_tst_cflags}" \
3853 && cf_fix_cppflags
=no
3858 if test -n "$cf_new_cflags" ; then
3860 CFLAGS
="$CFLAGS $cf_new_cflags"
3863 if test -n "$cf_new_cppflags" ; then
3865 CPPFLAGS
="$CPPFLAGS $cf_new_cppflags"
3868 if test -n "$cf_new_extra_cppflags" ; then
3870 EXTRA_CPPFLAGS
="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3877 cf_xopen_source
="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
3880 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
3884 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
3887 cf_xopen_source
="-D_OSF_SOURCE"
3890 cf_xopen_source
="-D_QNX_SOURCE"
3893 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
3896 cf_xopen_source
="-D__EXTENSIONS__"
3900 echo "$as_me:3900: checking if we should define _XOPEN_SOURCE" >&5
3901 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3902 if test "${cf_cv_xopen_source+set}" = set; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3906 cat >conftest.
$ac_ext <<_ACEOF
3907 #line 3907 "configure"
3908 #include "confdefs.h"
3912 #include <sys/types.h>
3918 #ifndef _XOPEN_SOURCE
3925 rm -f conftest.
$ac_objext
3926 if { (eval echo "$as_me:3926: \"$ac_compile\"") >&5
3927 (eval $ac_compile) 2>&5
3929 echo "$as_me:3929: \$? = $ac_status" >&5
3930 (exit $ac_status); } &&
3931 { ac_try
='test -s conftest.$ac_objext'
3932 { (eval echo "$as_me:3932: \"$ac_try\"") >&5
3935 echo "$as_me:3935: \$? = $ac_status" >&5
3936 (exit $ac_status); }; }; then
3937 cf_cv_xopen_source
=no
3939 echo "$as_me: failed program was:" >&5
3940 cat conftest.
$ac_ext >&5
3942 CPPFLAGS
="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3943 cat >conftest.
$ac_ext <<_ACEOF
3944 #line 3944 "configure"
3945 #include "confdefs.h"
3949 #include <sys/types.h>
3955 #ifdef _XOPEN_SOURCE
3962 rm -f conftest.
$ac_objext
3963 if { (eval echo "$as_me:3963: \"$ac_compile\"") >&5
3964 (eval $ac_compile) 2>&5
3966 echo "$as_me:3966: \$? = $ac_status" >&5
3967 (exit $ac_status); } &&
3968 { ac_try
='test -s conftest.$ac_objext'
3969 { (eval echo "$as_me:3969: \"$ac_try\"") >&5
3972 echo "$as_me:3972: \$? = $ac_status" >&5
3973 (exit $ac_status); }; }; then
3974 cf_cv_xopen_source
=no
3976 echo "$as_me: failed program was:" >&5
3977 cat conftest.
$ac_ext >&5
3978 cf_cv_xopen_source
=$cf_XOPEN_SOURCE
3980 rm -f conftest.
$ac_objext conftest.
$ac_ext
3984 rm -f conftest.
$ac_objext conftest.
$ac_ext
3987 echo "$as_me:3987: result: $cf_cv_xopen_source" >&5
3988 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3990 if test "$cf_cv_xopen_source" != no
; then
3992 CFLAGS
=`echo "$CFLAGS" | \
3993 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3994 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3996 CPPFLAGS
=`echo "$CPPFLAGS" | \
3997 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3998 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4000 cf_temp_xopen_source
="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
4005 cf_new_extra_cppflags
=
4007 for cf_add_cflags
in $cf_temp_xopen_source
4009 case $cf_fix_cppflags in
4011 case $cf_add_cflags in #(vi
4012 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
4013 case $cf_add_cflags in
4015 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4017 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4018 && test -z "${cf_tst_cflags}" \
4019 && cf_fix_cppflags
=yes
4021 if test $cf_fix_cppflags = yes ; then
4022 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
4024 elif test "${cf_tst_cflags}" = "\"'" ; then
4025 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
4031 *$cf_add_cflags) #(vi
4034 case $cf_add_cflags in #(vi
4036 cf_tst_cppflags
=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4038 CPPFLAGS
=`echo "$CPPFLAGS" | \
4039 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4040 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4044 cf_new_cppflags
="$cf_new_cppflags $cf_add_cflags"
4049 cf_new_cflags
="$cf_new_cflags $cf_add_cflags"
4054 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
4056 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4058 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4059 && test -z "${cf_tst_cflags}" \
4060 && cf_fix_cppflags
=no
4065 if test -n "$cf_new_cflags" ; then
4067 CFLAGS
="$CFLAGS $cf_new_cflags"
4070 if test -n "$cf_new_cppflags" ; then
4072 CPPFLAGS
="$CPPFLAGS $cf_new_cppflags"
4075 if test -n "$cf_new_extra_cppflags" ; then
4077 EXTRA_CPPFLAGS
="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4082 cf_POSIX_C_SOURCE
=$cf_POSIX_C_SOURCE
4084 cf_save_CFLAGS
="$CFLAGS"
4085 cf_save_CPPFLAGS
="$CPPFLAGS"
4087 cf_trim_CFLAGS
=`echo "$cf_save_CFLAGS" | \
4088 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4089 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
4091 cf_trim_CPPFLAGS
=`echo "$cf_save_CPPFLAGS" | \
4092 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4093 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
4095 echo "$as_me:4095: checking if we should define _POSIX_C_SOURCE" >&5
4096 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
4097 if test "${cf_cv_posix_c_source+set}" = set; then
4098 echo $ECHO_N "(cached) $ECHO_C" >&6
4101 echo "${as_me:-configure}:4101: testing if the symbol is already defined go no further ..." 1>&5
4103 cat >conftest.
$ac_ext <<_ACEOF
4104 #line 4104 "configure"
4105 #include "confdefs.h"
4106 #include <sys/types.h>
4111 #ifndef _POSIX_C_SOURCE
4118 rm -f conftest.
$ac_objext
4119 if { (eval echo "$as_me:4119: \"$ac_compile\"") >&5
4120 (eval $ac_compile) 2>&5
4122 echo "$as_me:4122: \$? = $ac_status" >&5
4123 (exit $ac_status); } &&
4124 { ac_try
='test -s conftest.$ac_objext'
4125 { (eval echo "$as_me:4125: \"$ac_try\"") >&5
4128 echo "$as_me:4128: \$? = $ac_status" >&5
4129 (exit $ac_status); }; }; then
4130 cf_cv_posix_c_source
=no
4132 echo "$as_me: failed program was:" >&5
4133 cat conftest.
$ac_ext >&5
4134 cf_want_posix_source
=no
4135 case .
$cf_POSIX_C_SOURCE in #(vi
4137 cf_cv_posix_c_source
="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
4140 cf_cv_posix_c_source
="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
4141 cf_want_posix_source
=yes
4144 cf_want_posix_source
=yes
4147 if test "$cf_want_posix_source" = yes ; then
4148 cat >conftest.
$ac_ext <<_ACEOF
4149 #line 4149 "configure"
4150 #include "confdefs.h"
4151 #include <sys/types.h>
4156 #ifdef _POSIX_SOURCE
4163 rm -f conftest.
$ac_objext
4164 if { (eval echo "$as_me:4164: \"$ac_compile\"") >&5
4165 (eval $ac_compile) 2>&5
4167 echo "$as_me:4167: \$? = $ac_status" >&5
4168 (exit $ac_status); } &&
4169 { ac_try
='test -s conftest.$ac_objext'
4170 { (eval echo "$as_me:4170: \"$ac_try\"") >&5
4173 echo "$as_me:4173: \$? = $ac_status" >&5
4174 (exit $ac_status); }; }; then
4177 echo "$as_me: failed program was:" >&5
4178 cat conftest.
$ac_ext >&5
4179 cf_cv_posix_c_source
="$cf_cv_posix_c_source -D_POSIX_SOURCE"
4181 rm -f conftest.
$ac_objext conftest.
$ac_ext
4184 echo "${as_me:-configure}:4184: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
4186 CFLAGS
="$cf_trim_CFLAGS"
4187 CPPFLAGS
="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
4189 echo "${as_me:-configure}:4189: testing if the second compile does not leave our definition intact error ..." 1>&5
4191 cat >conftest.
$ac_ext <<_ACEOF
4192 #line 4192 "configure"
4193 #include "confdefs.h"
4194 #include <sys/types.h>
4199 #ifndef _POSIX_C_SOURCE
4206 rm -f conftest.
$ac_objext
4207 if { (eval echo "$as_me:4207: \"$ac_compile\"") >&5
4208 (eval $ac_compile) 2>&5
4210 echo "$as_me:4210: \$? = $ac_status" >&5
4211 (exit $ac_status); } &&
4212 { ac_try
='test -s conftest.$ac_objext'
4213 { (eval echo "$as_me:4213: \"$ac_try\"") >&5
4216 echo "$as_me:4216: \$? = $ac_status" >&5
4217 (exit $ac_status); }; }; then
4220 echo "$as_me: failed program was:" >&5
4221 cat conftest.
$ac_ext >&5
4222 cf_cv_posix_c_source
=no
4224 rm -f conftest.
$ac_objext conftest.
$ac_ext
4225 CFLAGS
="$cf_save_CFLAGS"
4226 CPPFLAGS
="$cf_save_CPPFLAGS"
4229 rm -f conftest.
$ac_objext conftest.
$ac_ext
4232 echo "$as_me:4232: result: $cf_cv_posix_c_source" >&5
4233 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
4235 if test "$cf_cv_posix_c_source" != no
; then
4236 CFLAGS
="$cf_trim_CFLAGS"
4237 CPPFLAGS
="$cf_trim_CPPFLAGS"
4242 cf_new_extra_cppflags
=
4244 for cf_add_cflags
in $cf_cv_posix_c_source
4246 case $cf_fix_cppflags in
4248 case $cf_add_cflags in #(vi
4249 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
4250 case $cf_add_cflags in
4252 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4254 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4255 && test -z "${cf_tst_cflags}" \
4256 && cf_fix_cppflags
=yes
4258 if test $cf_fix_cppflags = yes ; then
4259 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
4261 elif test "${cf_tst_cflags}" = "\"'" ; then
4262 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
4268 *$cf_add_cflags) #(vi
4271 case $cf_add_cflags in #(vi
4273 cf_tst_cppflags
=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4275 CPPFLAGS
=`echo "$CPPFLAGS" | \
4276 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4277 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4281 cf_new_cppflags
="$cf_new_cppflags $cf_add_cflags"
4286 cf_new_cflags
="$cf_new_cflags $cf_add_cflags"
4291 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
4293 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4295 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4296 && test -z "${cf_tst_cflags}" \
4297 && cf_fix_cppflags
=no
4302 if test -n "$cf_new_cflags" ; then
4304 CFLAGS
="$CFLAGS $cf_new_cflags"
4307 if test -n "$cf_new_cppflags" ; then
4309 CPPFLAGS
="$CPPFLAGS $cf_new_cppflags"
4312 if test -n "$cf_new_extra_cppflags" ; then
4314 EXTRA_CPPFLAGS
="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4322 if test -n "$cf_xopen_source" ; then
4327 cf_new_extra_cppflags
=
4329 for cf_add_cflags
in $cf_xopen_source
4331 case $cf_fix_cppflags in
4333 case $cf_add_cflags in #(vi
4334 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
4335 case $cf_add_cflags in
4337 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4339 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4340 && test -z "${cf_tst_cflags}" \
4341 && cf_fix_cppflags
=yes
4343 if test $cf_fix_cppflags = yes ; then
4344 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
4346 elif test "${cf_tst_cflags}" = "\"'" ; then
4347 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
4353 *$cf_add_cflags) #(vi
4356 case $cf_add_cflags in #(vi
4358 cf_tst_cppflags
=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4360 CPPFLAGS
=`echo "$CPPFLAGS" | \
4361 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4362 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4366 cf_new_cppflags
="$cf_new_cppflags $cf_add_cflags"
4371 cf_new_cflags
="$cf_new_cflags $cf_add_cflags"
4376 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
4378 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4380 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4381 && test -z "${cf_tst_cflags}" \
4382 && cf_fix_cppflags
=no
4387 if test -n "$cf_new_cflags" ; then
4389 CFLAGS
="$CFLAGS $cf_new_cflags"
4392 if test -n "$cf_new_cppflags" ; then
4394 CPPFLAGS
="$CPPFLAGS $cf_new_cppflags"
4397 if test -n "$cf_new_extra_cppflags" ; then
4399 EXTRA_CPPFLAGS
="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4404 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
4405 echo "$as_me:4405: checking if _XOPEN_SOURCE really is set" >&5
4406 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
4407 cat >conftest.
$ac_ext <<_ACEOF
4408 #line 4408 "configure"
4409 #include "confdefs.h"
4415 #ifndef _XOPEN_SOURCE
4422 rm -f conftest.
$ac_objext
4423 if { (eval echo "$as_me:4423: \"$ac_compile\"") >&5
4424 (eval $ac_compile) 2>&5
4426 echo "$as_me:4426: \$? = $ac_status" >&5
4427 (exit $ac_status); } &&
4428 { ac_try
='test -s conftest.$ac_objext'
4429 { (eval echo "$as_me:4429: \"$ac_try\"") >&5
4432 echo "$as_me:4432: \$? = $ac_status" >&5
4433 (exit $ac_status); }; }; then
4434 cf_XOPEN_SOURCE_set
=yes
4436 echo "$as_me: failed program was:" >&5
4437 cat conftest.
$ac_ext >&5
4438 cf_XOPEN_SOURCE_set
=no
4440 rm -f conftest.
$ac_objext conftest.
$ac_ext
4441 echo "$as_me:4441: result: $cf_XOPEN_SOURCE_set" >&5
4442 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
4443 if test $cf_XOPEN_SOURCE_set = yes
4445 cat >conftest.
$ac_ext <<_ACEOF
4446 #line 4446 "configure"
4447 #include "confdefs.h"
4453 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
4460 rm -f conftest.
$ac_objext
4461 if { (eval echo "$as_me:4461: \"$ac_compile\"") >&5
4462 (eval $ac_compile) 2>&5
4464 echo "$as_me:4464: \$? = $ac_status" >&5
4465 (exit $ac_status); } &&
4466 { ac_try
='test -s conftest.$ac_objext'
4467 { (eval echo "$as_me:4467: \"$ac_try\"") >&5
4470 echo "$as_me:4470: \$? = $ac_status" >&5
4471 (exit $ac_status); }; }; then
4472 cf_XOPEN_SOURCE_set_ok
=yes
4474 echo "$as_me: failed program was:" >&5
4475 cat conftest.
$ac_ext >&5
4476 cf_XOPEN_SOURCE_set_ok
=no
4478 rm -f conftest.
$ac_objext conftest.
$ac_ext
4479 if test $cf_XOPEN_SOURCE_set_ok = no
4481 { echo "$as_me:4481: WARNING: _XOPEN_SOURCE is lower than requested" >&5
4482 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
4486 echo "$as_me:4486: checking if we should define _XOPEN_SOURCE" >&5
4487 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
4488 if test "${cf_cv_xopen_source+set}" = set; then
4489 echo $ECHO_N "(cached) $ECHO_C" >&6
4492 cat >conftest.
$ac_ext <<_ACEOF
4493 #line 4493 "configure"
4494 #include "confdefs.h"
4498 #include <sys/types.h>
4504 #ifndef _XOPEN_SOURCE
4511 rm -f conftest.
$ac_objext
4512 if { (eval echo "$as_me:4512: \"$ac_compile\"") >&5
4513 (eval $ac_compile) 2>&5
4515 echo "$as_me:4515: \$? = $ac_status" >&5
4516 (exit $ac_status); } &&
4517 { ac_try
='test -s conftest.$ac_objext'
4518 { (eval echo "$as_me:4518: \"$ac_try\"") >&5
4521 echo "$as_me:4521: \$? = $ac_status" >&5
4522 (exit $ac_status); }; }; then
4523 cf_cv_xopen_source
=no
4525 echo "$as_me: failed program was:" >&5
4526 cat conftest.
$ac_ext >&5
4528 CPPFLAGS
="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
4529 cat >conftest.
$ac_ext <<_ACEOF
4530 #line 4530 "configure"
4531 #include "confdefs.h"
4535 #include <sys/types.h>
4541 #ifdef _XOPEN_SOURCE
4548 rm -f conftest.
$ac_objext
4549 if { (eval echo "$as_me:4549: \"$ac_compile\"") >&5
4550 (eval $ac_compile) 2>&5
4552 echo "$as_me:4552: \$? = $ac_status" >&5
4553 (exit $ac_status); } &&
4554 { ac_try
='test -s conftest.$ac_objext'
4555 { (eval echo "$as_me:4555: \"$ac_try\"") >&5
4558 echo "$as_me:4558: \$? = $ac_status" >&5
4559 (exit $ac_status); }; }; then
4560 cf_cv_xopen_source
=no
4562 echo "$as_me: failed program was:" >&5
4563 cat conftest.
$ac_ext >&5
4564 cf_cv_xopen_source
=$cf_XOPEN_SOURCE
4566 rm -f conftest.
$ac_objext conftest.
$ac_ext
4570 rm -f conftest.
$ac_objext conftest.
$ac_ext
4573 echo "$as_me:4573: result: $cf_cv_xopen_source" >&5
4574 echo "${ECHO_T}$cf_cv_xopen_source" >&6
4576 if test "$cf_cv_xopen_source" != no
; then
4578 CFLAGS
=`echo "$CFLAGS" | \
4579 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4580 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4582 CPPFLAGS
=`echo "$CPPFLAGS" | \
4583 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4584 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4586 cf_temp_xopen_source
="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
4591 cf_new_extra_cppflags
=
4593 for cf_add_cflags
in $cf_temp_xopen_source
4595 case $cf_fix_cppflags in
4597 case $cf_add_cflags in #(vi
4598 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
4599 case $cf_add_cflags in
4601 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4603 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4604 && test -z "${cf_tst_cflags}" \
4605 && cf_fix_cppflags
=yes
4607 if test $cf_fix_cppflags = yes ; then
4608 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
4610 elif test "${cf_tst_cflags}" = "\"'" ; then
4611 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
4617 *$cf_add_cflags) #(vi
4620 case $cf_add_cflags in #(vi
4622 cf_tst_cppflags
=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4624 CPPFLAGS
=`echo "$CPPFLAGS" | \
4625 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4626 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4630 cf_new_cppflags
="$cf_new_cppflags $cf_add_cflags"
4635 cf_new_cflags
="$cf_new_cflags $cf_add_cflags"
4640 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
4642 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4644 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4645 && test -z "${cf_tst_cflags}" \
4646 && cf_fix_cppflags
=no
4651 if test -n "$cf_new_cflags" ; then
4653 CFLAGS
="$CFLAGS $cf_new_cflags"
4656 if test -n "$cf_new_cppflags" ; then
4658 CPPFLAGS
="$CPPFLAGS $cf_new_cppflags"
4661 if test -n "$cf_new_extra_cppflags" ; then
4663 EXTRA_CPPFLAGS
="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4672 if test "$GCC" = yes ; then
4673 echo "$as_me:4673: checking version of $CC" >&5
4674 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
4675 GCC_VERSION
="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
4676 test -z "$GCC_VERSION" && GCC_VERSION
=unknown
4677 echo "$as_me:4677: result: $GCC_VERSION" >&5
4678 echo "${ECHO_T}$GCC_VERSION" >&6
4681 if ( test "$GCC" = yes || test "$GXX" = yes )
4683 echo "$as_me:4683: checking if you want to check for gcc warnings" >&5
4684 echo $ECHO_N "checking if you want to check for gcc warnings... $ECHO_C" >&6
4686 # Check whether --with-warnings or --without-warnings was given.
4687 if test "${with_warnings+set}" = set; then
4688 withval
="$with_warnings"
4689 cf_opt_with_warnings
=$withval
4691 cf_opt_with_warnings
=no
4693 echo "$as_me:4693: result: $cf_opt_with_warnings" >&5
4694 echo "${ECHO_T}$cf_opt_with_warnings" >&6
4695 if test "$cf_opt_with_warnings" != no
; then
4697 if test "$GCC" = yes
4699 cat > conftest.i
<<EOF
4701 #define GCC_PRINTF 0
4706 #ifndef GCC_NORETURN
4707 #define GCC_NORETURN /* nothing */
4710 #define GCC_UNUSED /* nothing */
4713 if test "$GCC" = yes
4715 { echo "$as_me:4715: checking for $CC __attribute__ directives..." >&5
4716 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
4717 cat > conftest.
$ac_ext <<EOF
4718 #line 4718 "${as_me:-configure}"
4719 #include "confdefs.h"
4720 #include "conftest.h"
4721 #include "conftest.i"
4723 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
4725 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
4728 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
4730 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
4732 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
4733 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
4734 extern void foo(void) GCC_NORETURN;
4735 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
4737 cf_printf_attribute
=no
4738 cf_scanf_attribute
=no
4739 for cf_attribute
in scanf
printf unused noreturn
4742 cf_ATTRIBUTE
=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4744 cf_directive
="__attribute__(($cf_attribute))"
4745 echo "checking for $CC $cf_directive" 1>&5
4747 case $cf_attribute in #(vi
4749 cf_printf_attribute
=yes
4750 cat >conftest.h
<<EOF
4751 #define GCC_$cf_ATTRIBUTE 1
4755 cf_scanf_attribute
=yes
4756 cat >conftest.h
<<EOF
4757 #define GCC_$cf_ATTRIBUTE 1
4761 cat >conftest.h
<<EOF
4762 #define GCC_$cf_ATTRIBUTE $cf_directive
4767 if { (eval echo "$as_me:4767: \"$ac_compile\"") >&5
4768 (eval $ac_compile) 2>&5
4770 echo "$as_me:4770: \$? = $ac_status" >&5
4771 (exit $ac_status); }; then
4772 test -n "$verbose" && echo "$as_me:4772: result: ... $cf_attribute" >&5
4773 echo "${ECHO_T}... $cf_attribute" >&6
4774 cat conftest.h
>>confdefs.h
4775 case $cf_attribute in #(vi
4777 if test "$cf_printf_attribute" = no
; then
4778 cat >>confdefs.h
<<EOF
4779 #define GCC_PRINTFLIKE(fmt,var) /* nothing */
4782 cat >>confdefs.h
<<EOF
4783 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
4788 if test "$cf_scanf_attribute" = no
; then
4789 cat >>confdefs.h
<<EOF
4790 #define GCC_SCANFLIKE(fmt,var) /* nothing */
4793 cat >>confdefs.h
<<EOF
4794 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
4802 fgrep define conftest.i
>>confdefs.h
4809 if test "$GCC" = yes ; then
4812 echo "$as_me:4812: checking if this is really Intel C compiler" >&5
4813 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
4814 cf_save_CFLAGS
="$CFLAGS"
4815 CFLAGS
="$CFLAGS -no-gcc"
4816 cat >conftest.
$ac_ext <<_ACEOF
4817 #line 4817 "configure"
4818 #include "confdefs.h"
4824 #ifdef __INTEL_COMPILER
4833 rm -f conftest.
$ac_objext
4834 if { (eval echo "$as_me:4834: \"$ac_compile\"") >&5
4835 (eval $ac_compile) 2>&5
4837 echo "$as_me:4837: \$? = $ac_status" >&5
4838 (exit $ac_status); } &&
4839 { ac_try
='test -s conftest.$ac_objext'
4840 { (eval echo "$as_me:4840: \"$ac_try\"") >&5
4843 echo "$as_me:4843: \$? = $ac_status" >&5
4844 (exit $ac_status); }; }; then
4846 cf_save_CFLAGS
="$cf_save_CFLAGS -we147 -no-gcc"
4849 echo "$as_me: failed program was:" >&5
4850 cat conftest.
$ac_ext >&5
4852 rm -f conftest.
$ac_objext conftest.
$ac_ext
4853 CFLAGS
="$cf_save_CFLAGS"
4854 echo "$as_me:4854: result: $INTEL_COMPILER" >&5
4855 echo "${ECHO_T}$INTEL_COMPILER" >&6
4860 cat > conftest.
$ac_ext <<EOF
4861 #line 4861 "${as_me:-configure}"
4862 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
4865 if test "$INTEL_COMPILER" = yes
4867 # The "-wdXXX" options suppress warnings:
4868 # remark #1419: external declaration in primary source file
4869 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
4870 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
4871 # remark #193: zero used for undefined preprocessing identifier
4872 # remark #593: variable "curs_sb_left_arrow" was set but never used
4873 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
4874 # remark #869: parameter "tw" was never referenced
4875 # remark #981: operands are evaluated in unspecified order
4876 # warning #279: controlling expression is constant
4878 { echo "$as_me:4878: checking for $CC warning options..." >&5
4879 echo "$as_me: checking for $CC warning options..." >&6;}
4880 cf_save_CFLAGS
="$CFLAGS"
4881 EXTRA_CFLAGS
="-Wall"
4893 CFLAGS
="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
4894 if { (eval echo "$as_me:4894: \"$ac_compile\"") >&5
4895 (eval $ac_compile) 2>&5
4897 echo "$as_me:4897: \$? = $ac_status" >&5
4898 (exit $ac_status); }; then
4899 test -n "$verbose" && echo "$as_me:4899: result: ... -$cf_opt" >&5
4900 echo "${ECHO_T}... -$cf_opt" >&6
4901 EXTRA_CFLAGS
="$EXTRA_CFLAGS -$cf_opt"
4904 CFLAGS
="$cf_save_CFLAGS"
4906 elif test "$GCC" = yes
4908 { echo "$as_me:4908: checking for $CC warning options..." >&5
4909 echo "$as_me: checking for $CC warning options..." >&6;}
4910 cf_save_CFLAGS
="$CFLAGS"
4913 test "$with_ext_const" = yes && cf_warn_CONST
="Wwrite-strings"
4914 for cf_opt
in W Wall \
4915 Wbad
-function-cast \
4919 Wmissing
-declarations \
4920 Wmissing
-prototypes \
4924 Wstrict
-prototypes \
4925 Wundef
$cf_warn_CONST
4927 CFLAGS
="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
4928 if { (eval echo "$as_me:4928: \"$ac_compile\"") >&5
4929 (eval $ac_compile) 2>&5
4931 echo "$as_me:4931: \$? = $ac_status" >&5
4932 (exit $ac_status); }; then
4933 test -n "$verbose" && echo "$as_me:4933: result: ... -$cf_opt" >&5
4934 echo "${ECHO_T}... -$cf_opt" >&6
4935 case $cf_opt in #(vi
4937 CPPFLAGS
="$CPPFLAGS -DXTSTRINGDEFINES"
4940 case $GCC_VERSION in
4942 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
4944 echo "${as_me:-configure}:4944: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
4950 EXTRA_CFLAGS
="$EXTRA_CFLAGS -$cf_opt"
4953 CFLAGS
="$cf_save_CFLAGS"
4960 echo "$as_me:4960: checking for $CC option to accept ANSI C" >&5
4961 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4962 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4963 echo $ECHO_N "(cached) $ECHO_C" >&6
4965 ac_cv_prog_cc_stdc
=no
4967 cat >conftest.
$ac_ext <<_ACEOF
4968 #line 4968 "configure"
4969 #include "confdefs.h"
4972 #include <sys/types.h>
4973 #include <sys/stat.h>
4974 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4975 struct buf { int x; };
4976 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4977 static char *e (p, i)
4983 static char *f (char * (*g) (char **, int), char **p, ...)
4988 s = g (p, va_arg (v,int));
4992 int test (int i, double x);
4993 struct s1 {int (*f) (int a);};
4994 struct s2 {int (*f) (double a);};
4995 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5001 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5006 # Don't try gcc -ansi; that turns off useful extensions and
5007 # breaks some systems' header files.
5008 # AIX -qlanglvl=ansi
5009 # Ultrix and OSF/1 -std1
5010 # HP-UX 10.20 and later -Ae
5011 # HP-UX older versions -Aa -D_HPUX_SOURCE
5012 # SVR4 -Xc -D__EXTENSIONS__
5013 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5015 CC
="$ac_save_CC $ac_arg"
5016 rm -f conftest.
$ac_objext
5017 if { (eval echo "$as_me:5017: \"$ac_compile\"") >&5
5018 (eval $ac_compile) 2>&5
5020 echo "$as_me:5020: \$? = $ac_status" >&5
5021 (exit $ac_status); } &&
5022 { ac_try
='test -s conftest.$ac_objext'
5023 { (eval echo "$as_me:5023: \"$ac_try\"") >&5
5026 echo "$as_me:5026: \$? = $ac_status" >&5
5027 (exit $ac_status); }; }; then
5028 ac_cv_prog_cc_stdc
=$ac_arg
5031 echo "$as_me: failed program was:" >&5
5032 cat conftest.
$ac_ext >&5
5034 rm -f conftest.
$ac_objext
5036 rm -f conftest.
$ac_ext conftest.
$ac_objext
5041 case "x$ac_cv_prog_cc_stdc" in
5043 echo "$as_me:5043: result: none needed" >&5
5044 echo "${ECHO_T}none needed" >&6 ;;
5046 echo "$as_me:5046: result: $ac_cv_prog_cc_stdc" >&5
5047 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5048 CC
="$CC $ac_cv_prog_cc_stdc" ;;
5051 echo "$as_me:5051: checking for an ANSI C-conforming const" >&5
5052 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5053 if test "${ac_cv_c_const+set}" = set; then
5054 echo $ECHO_N "(cached) $ECHO_C" >&6
5056 cat >conftest.
$ac_ext <<_ACEOF
5057 #line 5057 "configure"
5058 #include "confdefs.h"
5063 /* FIXME: Include the comments suggested by Paul. */
5065 /* Ultrix mips cc rejects this. */
5066 typedef int charset[2];
5068 /* SunOS 4.1.1 cc rejects this. */
5069 char const *const *ccp;
5071 /* NEC SVR4.0.2 mips cc rejects this. */
5072 struct point {int x, y;};
5073 static struct point const zero = {0,0};
5074 /* AIX XL C 1.02.0.0 rejects this.
5075 It does not let you subtract one const X* pointer from another in
5076 an arm of an if-expression whose if-part is not a constant
5078 const char *g = "string";
5079 ccp = &g + (g ? g-g : 0);
5080 /* HPUX 7.0 cc rejects these. */
5083 ccp = (char const *const *) p;
5084 { /* SCO 3.2v4 cc rejects this. */
5086 char const *s = 0 ? (char *) 0 : (char const *) 0;
5090 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5092 const int *foo = &x[0];
5095 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5096 typedef const int *iptr;
5100 { /* AIX XL C 1.02.0.0 rejects this saying
5101 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5102 struct s { int j; const int *ap[3]; };
5103 struct s *b; b->j = 5;
5105 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5114 rm -f conftest.
$ac_objext
5115 if { (eval echo "$as_me:5115: \"$ac_compile\"") >&5
5116 (eval $ac_compile) 2>&5
5118 echo "$as_me:5118: \$? = $ac_status" >&5
5119 (exit $ac_status); } &&
5120 { ac_try
='test -s conftest.$ac_objext'
5121 { (eval echo "$as_me:5121: \"$ac_try\"") >&5
5124 echo "$as_me:5124: \$? = $ac_status" >&5
5125 (exit $ac_status); }; }; then
5128 echo "$as_me: failed program was:" >&5
5129 cat conftest.
$ac_ext >&5
5132 rm -f conftest.
$ac_objext conftest.
$ac_ext
5134 echo "$as_me:5134: result: $ac_cv_c_const" >&5
5135 echo "${ECHO_T}$ac_cv_c_const" >&6
5136 if test $ac_cv_c_const = no
; then
5138 cat >>confdefs.h
<<\EOF
5145 ac_cpp
='$CPP $CPPFLAGS'
5146 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5147 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5148 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5149 ac_main_return
=return
5150 echo "$as_me:5150: checking how to run the C preprocessor" >&5
5151 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5152 # On Suns, sometimes $CPP names a directory.
5153 if test -n "$CPP" && test -d "$CPP"; then
5156 if test -z "$CPP"; then
5157 if test "${ac_cv_prog_CPP+set}" = set; then
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
5160 # Double quotes because CPP needs to be expanded
5161 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5164 for ac_c_preproc_warn_flag
in '' yes
5166 # Use a header file that comes with gcc, so configuring glibc
5167 # with a fresh cross-compiler works.
5168 # On the NeXT, cc -E runs the code through the compiler's parser,
5169 # not just through cpp. "Syntax error" is here to catch this case.
5170 cat >conftest.
$ac_ext <<_ACEOF
5171 #line 5171 "configure"
5172 #include "confdefs.h"
5176 if { (eval echo "$as_me:5176: \"$ac_cpp conftest.$ac_ext\"") >&5
5177 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5179 egrep -v '^ *\+' conftest.er1
>conftest.err
5181 cat conftest.err
>&5
5182 echo "$as_me:5182: \$? = $ac_status" >&5
5183 (exit $ac_status); } >/dev
/null
; then
5184 if test -s conftest.err
; then
5185 ac_cpp_err
=$ac_c_preproc_warn_flag
5192 if test -z "$ac_cpp_err"; then
5195 echo "$as_me: failed program was:" >&5
5196 cat conftest.
$ac_ext >&5
5197 # Broken: fails on valid input.
5200 rm -f conftest.err conftest.
$ac_ext
5202 # OK, works on sane cases. Now check whether non-existent headers
5203 # can be detected and how.
5204 cat >conftest.
$ac_ext <<_ACEOF
5205 #line 5205 "configure"
5206 #include "confdefs.h"
5207 #include <ac_nonexistent.h>
5209 if { (eval echo "$as_me:5209: \"$ac_cpp conftest.$ac_ext\"") >&5
5210 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5212 egrep -v '^ *\+' conftest.er1
>conftest.err
5214 cat conftest.err
>&5
5215 echo "$as_me:5215: \$? = $ac_status" >&5
5216 (exit $ac_status); } >/dev
/null
; then
5217 if test -s conftest.err
; then
5218 ac_cpp_err
=$ac_c_preproc_warn_flag
5225 if test -z "$ac_cpp_err"; then
5226 # Broken: success on invalid input.
5229 echo "$as_me: failed program was:" >&5
5230 cat conftest.
$ac_ext >&5
5231 # Passes both tests.
5235 rm -f conftest.err conftest.
$ac_ext
5238 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5239 rm -f conftest.err conftest.
$ac_ext
5240 if $ac_preproc_ok; then
5252 echo "$as_me:5252: result: $CPP" >&5
5253 echo "${ECHO_T}$CPP" >&6
5255 for ac_c_preproc_warn_flag
in '' yes
5257 # Use a header file that comes with gcc, so configuring glibc
5258 # with a fresh cross-compiler works.
5259 # On the NeXT, cc -E runs the code through the compiler's parser,
5260 # not just through cpp. "Syntax error" is here to catch this case.
5261 cat >conftest.
$ac_ext <<_ACEOF
5262 #line 5262 "configure"
5263 #include "confdefs.h"
5267 if { (eval echo "$as_me:5267: \"$ac_cpp conftest.$ac_ext\"") >&5
5268 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5270 egrep -v '^ *\+' conftest.er1
>conftest.err
5272 cat conftest.err
>&5
5273 echo "$as_me:5273: \$? = $ac_status" >&5
5274 (exit $ac_status); } >/dev
/null
; then
5275 if test -s conftest.err
; then
5276 ac_cpp_err
=$ac_c_preproc_warn_flag
5283 if test -z "$ac_cpp_err"; then
5286 echo "$as_me: failed program was:" >&5
5287 cat conftest.
$ac_ext >&5
5288 # Broken: fails on valid input.
5291 rm -f conftest.err conftest.
$ac_ext
5293 # OK, works on sane cases. Now check whether non-existent headers
5294 # can be detected and how.
5295 cat >conftest.
$ac_ext <<_ACEOF
5296 #line 5296 "configure"
5297 #include "confdefs.h"
5298 #include <ac_nonexistent.h>
5300 if { (eval echo "$as_me:5300: \"$ac_cpp conftest.$ac_ext\"") >&5
5301 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5303 egrep -v '^ *\+' conftest.er1
>conftest.err
5305 cat conftest.err
>&5
5306 echo "$as_me:5306: \$? = $ac_status" >&5
5307 (exit $ac_status); } >/dev
/null
; then
5308 if test -s conftest.err
; then
5309 ac_cpp_err
=$ac_c_preproc_warn_flag
5316 if test -z "$ac_cpp_err"; then
5317 # Broken: success on invalid input.
5320 echo "$as_me: failed program was:" >&5
5321 cat conftest.
$ac_ext >&5
5322 # Passes both tests.
5326 rm -f conftest.err conftest.
$ac_ext
5329 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5330 rm -f conftest.err conftest.
$ac_ext
5331 if $ac_preproc_ok; then
5334 { { echo "$as_me:5334: error: C preprocessor \"$CPP\" fails sanity check" >&5
5335 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
5336 { (exit 1); exit 1; }; }
5340 ac_cpp
='$CPP $CPPFLAGS'
5341 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5342 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5343 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5344 ac_main_return
=return
5346 echo "$as_me:5346: checking for ANSI C header files" >&5
5347 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5348 if test "${ac_cv_header_stdc+set}" = set; then
5349 echo $ECHO_N "(cached) $ECHO_C" >&6
5351 cat >conftest.
$ac_ext <<_ACEOF
5352 #line 5352 "configure"
5353 #include "confdefs.h"
5360 if { (eval echo "$as_me:5360: \"$ac_cpp conftest.$ac_ext\"") >&5
5361 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5363 egrep -v '^ *\+' conftest.er1
>conftest.err
5365 cat conftest.err
>&5
5366 echo "$as_me:5366: \$? = $ac_status" >&5
5367 (exit $ac_status); } >/dev
/null
; then
5368 if test -s conftest.err
; then
5369 ac_cpp_err
=$ac_c_preproc_warn_flag
5376 if test -z "$ac_cpp_err"; then
5377 ac_cv_header_stdc
=yes
5379 echo "$as_me: failed program was:" >&5
5380 cat conftest.
$ac_ext >&5
5381 ac_cv_header_stdc
=no
5383 rm -f conftest.err conftest.
$ac_ext
5385 if test $ac_cv_header_stdc = yes; then
5386 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5387 cat >conftest.
$ac_ext <<_ACEOF
5388 #line 5388 "configure"
5389 #include "confdefs.h"
5393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5394 egrep "memchr" >/dev
/null
2>&1; then
5397 ac_cv_header_stdc
=no
5403 if test $ac_cv_header_stdc = yes; then
5404 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5405 cat >conftest.
$ac_ext <<_ACEOF
5406 #line 5406 "configure"
5407 #include "confdefs.h"
5411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5412 egrep "free" >/dev
/null
2>&1; then
5415 ac_cv_header_stdc
=no
5421 if test $ac_cv_header_stdc = yes; then
5422 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5423 if test "$cross_compiling" = yes; then
5426 cat >conftest.
$ac_ext <<_ACEOF
5427 #line 5427 "configure"
5428 #include "confdefs.h"
5430 #if ((' ' & 0x0FF) == 0x020)
5431 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5432 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5434 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5435 || ('j' <= (c) && (c) <= 'r') \
5436 || ('s' <= (c) && (c) <= 'z'))
5437 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5440 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5445 for (i = 0; i < 256; i++)
5446 if (XOR (islower (i), ISLOWER (i))
5447 || toupper (i) != TOUPPER (i))
5449 $ac_main_return (0);
5452 rm -f conftest
$ac_exeext
5453 if { (eval echo "$as_me:5453: \"$ac_link\"") >&5
5454 (eval $ac_link) 2>&5
5456 echo "$as_me:5456: \$? = $ac_status" >&5
5457 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5458 { (eval echo "$as_me:5458: \"$ac_try\"") >&5
5461 echo "$as_me:5461: \$? = $ac_status" >&5
5462 (exit $ac_status); }; }; then
5465 echo "$as_me: program exited with status $ac_status" >&5
5466 echo "$as_me: failed program was:" >&5
5467 cat conftest.
$ac_ext >&5
5468 ac_cv_header_stdc
=no
5470 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5474 echo "$as_me:5474: result: $ac_cv_header_stdc" >&5
5475 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5476 if test $ac_cv_header_stdc = yes; then
5478 cat >>confdefs.h
<<\EOF
5479 #define STDC_HEADERS 1
5490 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5491 echo "$as_me:5491: checking for $ac_header" >&5
5492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5494 echo $ECHO_N "(cached) $ECHO_C" >&6
5496 cat >conftest.
$ac_ext <<_ACEOF
5497 #line 5497 "configure"
5498 #include "confdefs.h"
5499 #include <$ac_header>
5501 if { (eval echo "$as_me:5501: \"$ac_cpp conftest.$ac_ext\"") >&5
5502 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5504 egrep -v '^ *\+' conftest.er1
>conftest.err
5506 cat conftest.err
>&5
5507 echo "$as_me:5507: \$? = $ac_status" >&5
5508 (exit $ac_status); } >/dev
/null
; then
5509 if test -s conftest.err
; then
5510 ac_cpp_err
=$ac_c_preproc_warn_flag
5517 if test -z "$ac_cpp_err"; then
5518 eval "$as_ac_Header=yes"
5520 echo "$as_me: failed program was:" >&5
5521 cat conftest.
$ac_ext >&5
5522 eval "$as_ac_Header=no"
5524 rm -f conftest.err conftest.
$ac_ext
5526 echo "$as_me:5526: result: `eval echo '${'$as_ac_Header'}'`" >&5
5527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5529 cat >>confdefs.h
<<EOF
5530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5536 for ac_header
in unistd.h getopt.h
5538 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5539 echo "$as_me:5539: checking for $ac_header" >&5
5540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5542 echo $ECHO_N "(cached) $ECHO_C" >&6
5544 cat >conftest.
$ac_ext <<_ACEOF
5545 #line 5545 "configure"
5546 #include "confdefs.h"
5547 #include <$ac_header>
5549 if { (eval echo "$as_me:5549: \"$ac_cpp conftest.$ac_ext\"") >&5
5550 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5552 egrep -v '^ *\+' conftest.er1
>conftest.err
5554 cat conftest.err
>&5
5555 echo "$as_me:5555: \$? = $ac_status" >&5
5556 (exit $ac_status); } >/dev
/null
; then
5557 if test -s conftest.err
; then
5558 ac_cpp_err
=$ac_c_preproc_warn_flag
5565 if test -z "$ac_cpp_err"; then
5566 eval "$as_ac_Header=yes"
5568 echo "$as_me: failed program was:" >&5
5569 cat conftest.
$ac_ext >&5
5570 eval "$as_ac_Header=no"
5572 rm -f conftest.err conftest.
$ac_ext
5574 echo "$as_me:5574: result: `eval echo '${'$as_ac_Header'}'`" >&5
5575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5577 cat >>confdefs.h
<<EOF
5578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5584 echo "$as_me:5584: checking for header declaring getopt variables" >&5
5585 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
5586 if test "${cf_cv_getopt_header+set}" = set; then
5587 echo $ECHO_N "(cached) $ECHO_C" >&6
5590 cf_cv_getopt_header
=none
5591 for cf_header
in stdio.h stdlib.h unistd.h getopt.h
5593 cat >conftest.
$ac_ext <<_ACEOF
5594 #line 5594 "configure"
5595 #include "confdefs.h"
5597 #include <$cf_header>
5601 int x = optind; char *y = optarg
5606 rm -f conftest.
$ac_objext
5607 if { (eval echo "$as_me:5607: \"$ac_compile\"") >&5
5608 (eval $ac_compile) 2>&5
5610 echo "$as_me:5610: \$? = $ac_status" >&5
5611 (exit $ac_status); } &&
5612 { ac_try
='test -s conftest.$ac_objext'
5613 { (eval echo "$as_me:5613: \"$ac_try\"") >&5
5616 echo "$as_me:5616: \$? = $ac_status" >&5
5617 (exit $ac_status); }; }; then
5618 cf_cv_getopt_header
=$cf_header
5621 echo "$as_me: failed program was:" >&5
5622 cat conftest.
$ac_ext >&5
5624 rm -f conftest.
$ac_objext conftest.
$ac_ext
5628 echo "$as_me:5628: result: $cf_cv_getopt_header" >&5
5629 echo "${ECHO_T}$cf_cv_getopt_header" >&6
5630 if test $cf_cv_getopt_header != none
; then
5631 cat >>confdefs.h
<<\EOF
5632 #define HAVE_GETOPT_HEADER 1
5637 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5639 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5640 inttypes.h stdint.h unistd.h
5642 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5643 echo "$as_me:5643: checking for $ac_header" >&5
5644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5646 echo $ECHO_N "(cached) $ECHO_C" >&6
5648 cat >conftest.
$ac_ext <<_ACEOF
5649 #line 5649 "configure"
5650 #include "confdefs.h"
5651 $ac_includes_default
5652 #include <$ac_header>
5654 rm -f conftest.
$ac_objext
5655 if { (eval echo "$as_me:5655: \"$ac_compile\"") >&5
5656 (eval $ac_compile) 2>&5
5658 echo "$as_me:5658: \$? = $ac_status" >&5
5659 (exit $ac_status); } &&
5660 { ac_try
='test -s conftest.$ac_objext'
5661 { (eval echo "$as_me:5661: \"$ac_try\"") >&5
5664 echo "$as_me:5664: \$? = $ac_status" >&5
5665 (exit $ac_status); }; }; then
5666 eval "$as_ac_Header=yes"
5668 echo "$as_me: failed program was:" >&5
5669 cat conftest.
$ac_ext >&5
5670 eval "$as_ac_Header=no"
5672 rm -f conftest.
$ac_objext conftest.
$ac_ext
5674 echo "$as_me:5674: result: `eval echo '${'$as_ac_Header'}'`" >&5
5675 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5677 cat >>confdefs.h
<<EOF
5678 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5684 echo "$as_me:5684: checking for size_t" >&5
5685 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5686 if test "${ac_cv_type_size_t+set}" = set; then
5687 echo $ECHO_N "(cached) $ECHO_C" >&6
5689 cat >conftest.
$ac_ext <<_ACEOF
5690 #line 5690 "configure"
5691 #include "confdefs.h"
5692 $ac_includes_default
5698 if (sizeof (size_t))
5704 rm -f conftest.
$ac_objext
5705 if { (eval echo "$as_me:5705: \"$ac_compile\"") >&5
5706 (eval $ac_compile) 2>&5
5708 echo "$as_me:5708: \$? = $ac_status" >&5
5709 (exit $ac_status); } &&
5710 { ac_try
='test -s conftest.$ac_objext'
5711 { (eval echo "$as_me:5711: \"$ac_try\"") >&5
5714 echo "$as_me:5714: \$? = $ac_status" >&5
5715 (exit $ac_status); }; }; then
5716 ac_cv_type_size_t
=yes
5718 echo "$as_me: failed program was:" >&5
5719 cat conftest.
$ac_ext >&5
5720 ac_cv_type_size_t
=no
5722 rm -f conftest.
$ac_objext conftest.
$ac_ext
5724 echo "$as_me:5724: result: $ac_cv_type_size_t" >&5
5725 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5726 if test $ac_cv_type_size_t = yes; then
5730 cat >>confdefs.h
<<EOF
5731 #define size_t unsigned
5742 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5743 echo "$as_me:5743: checking for $ac_func" >&5
5744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5745 if eval "test \"\${$as_ac_var+set}\" = set"; then
5746 echo $ECHO_N "(cached) $ECHO_C" >&6
5748 cat >conftest.
$ac_ext <<_ACEOF
5749 #line 5749 "configure"
5750 #include "confdefs.h"
5751 /* System header to define __stub macros and hopefully few prototypes,
5752 which can conflict with char $ac_func (); below. */
5754 /* Override any gcc2 internal prototype to avoid an error. */
5758 /* We use char because int might match the return type of a gcc2
5759 builtin and then its argument prototype would still apply. */
5766 /* The GNU C library defines this for functions which it implements
5767 to always fail with ENOSYS. Some functions are actually named
5768 something starting with __ and the normal name is an alias. */
5769 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5779 rm -f conftest.
$ac_objext conftest
$ac_exeext
5780 if { (eval echo "$as_me:5780: \"$ac_link\"") >&5
5781 (eval $ac_link) 2>&5
5783 echo "$as_me:5783: \$? = $ac_status" >&5
5784 (exit $ac_status); } &&
5785 { ac_try
='test -s conftest$ac_exeext'
5786 { (eval echo "$as_me:5786: \"$ac_try\"") >&5
5789 echo "$as_me:5789: \$? = $ac_status" >&5
5790 (exit $ac_status); }; }; then
5791 eval "$as_ac_var=yes"
5793 echo "$as_me: failed program was:" >&5
5794 cat conftest.
$ac_ext >&5
5795 eval "$as_ac_var=no"
5797 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5799 echo "$as_me:5799: result: `eval echo '${'$as_ac_var'}'`" >&5
5800 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5801 if test `eval echo '${'$as_ac_var'}'` = yes; then
5802 cat >>confdefs.h
<<EOF
5803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5809 cf_stdio_unlocked
=no
5811 for ac_func
in getc_unlocked
5813 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5814 echo "$as_me:5814: checking for $ac_func" >&5
5815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5816 if eval "test \"\${$as_ac_var+set}\" = set"; then
5817 echo $ECHO_N "(cached) $ECHO_C" >&6
5819 cat >conftest.
$ac_ext <<_ACEOF
5820 #line 5820 "configure"
5821 #include "confdefs.h"
5822 /* System header to define __stub macros and hopefully few prototypes,
5823 which can conflict with char $ac_func (); below. */
5825 /* Override any gcc2 internal prototype to avoid an error. */
5829 /* We use char because int might match the return type of a gcc2
5830 builtin and then its argument prototype would still apply. */
5837 /* The GNU C library defines this for functions which it implements
5838 to always fail with ENOSYS. Some functions are actually named
5839 something starting with __ and the normal name is an alias. */
5840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5850 rm -f conftest.
$ac_objext conftest
$ac_exeext
5851 if { (eval echo "$as_me:5851: \"$ac_link\"") >&5
5852 (eval $ac_link) 2>&5
5854 echo "$as_me:5854: \$? = $ac_status" >&5
5855 (exit $ac_status); } &&
5856 { ac_try
='test -s conftest$ac_exeext'
5857 { (eval echo "$as_me:5857: \"$ac_try\"") >&5
5860 echo "$as_me:5860: \$? = $ac_status" >&5
5861 (exit $ac_status); }; }; then
5862 eval "$as_ac_var=yes"
5864 echo "$as_me: failed program was:" >&5
5865 cat conftest.
$ac_ext >&5
5866 eval "$as_ac_var=no"
5868 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5870 echo "$as_me:5870: result: `eval echo '${'$as_ac_var'}'`" >&5
5871 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5872 if test `eval echo '${'$as_ac_var'}'` = yes; then
5873 cat >>confdefs.h
<<EOF
5874 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5876 cf_stdio_unlocked
=$ac_func
5880 if test "$cf_stdio_unlocked" != no
; then
5881 case "$CPPFLAGS" in #(vi
5882 *-D_REENTRANT*) #(vi
5885 echo "$as_me:5885: checking if we should define _REENTRANT" >&5
5886 echo $ECHO_N "checking if we should define _REENTRANT... $ECHO_C" >&6
5887 if test "${cf_cv_stdio_unlocked+set}" = set; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
5891 cat >conftest.
$ac_ext <<_ACEOF
5892 #line 5892 "configure"
5893 #include "confdefs.h"
5899 extern void *$cf_stdio_unlocked(void *);
5900 void *dummy = $cf_stdio_unlocked(0)
5905 rm -f conftest.
$ac_objext
5906 if { (eval echo "$as_me:5906: \"$ac_compile\"") >&5
5907 (eval $ac_compile) 2>&5
5909 echo "$as_me:5909: \$? = $ac_status" >&5
5910 (exit $ac_status); } &&
5911 { ac_try
='test -s conftest.$ac_objext'
5912 { (eval echo "$as_me:5912: \"$ac_try\"") >&5
5915 echo "$as_me:5915: \$? = $ac_status" >&5
5916 (exit $ac_status); }; }; then
5917 cf_cv_stdio_unlocked
=yes
5919 echo "$as_me: failed program was:" >&5
5920 cat conftest.
$ac_ext >&5
5921 cf_cv_stdio_unlocked
=no
5923 rm -f conftest.
$ac_objext conftest.
$ac_ext
5925 echo "$as_me:5925: result: $cf_cv_stdio_unlocked" >&5
5926 echo "${ECHO_T}$cf_cv_stdio_unlocked" >&6
5927 if test "$cf_cv_stdio_unlocked" = yes ; then
5928 cat >>confdefs.h
<<\EOF
5929 #define _REENTRANT 1
5937 echo "$as_me:5937: checking if you want to use dmalloc for testing" >&5
5938 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
5940 # Check whether --with-dmalloc or --without-dmalloc was given.
5941 if test "${with_dmalloc+set}" = set; then
5942 withval
="$with_dmalloc"
5943 cat >>confdefs.h
<<\EOF
5944 #define USE_DMALLOC 1
5947 : ${with_cflags:=-g}
5948 : ${with_no_leaks:=yes}
5953 echo "$as_me:5953: result: ${with_dmalloc:-no}" >&5
5954 echo "${ECHO_T}${with_dmalloc:-no}" >&6
5956 case .
$with_cflags in #(vi
5958 case .
$CFLAGS in #(vi
5966 cf_new_extra_cppflags
=
5968 for cf_add_cflags
in -g
5970 case $cf_fix_cppflags in
5972 case $cf_add_cflags in #(vi
5973 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
5974 case $cf_add_cflags in
5976 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
5978 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
5979 && test -z "${cf_tst_cflags}" \
5980 && cf_fix_cppflags
=yes
5982 if test $cf_fix_cppflags = yes ; then
5983 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
5985 elif test "${cf_tst_cflags}" = "\"'" ; then
5986 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
5992 *$cf_add_cflags) #(vi
5995 case $cf_add_cflags in #(vi
5997 cf_tst_cppflags
=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
5999 CPPFLAGS
=`echo "$CPPFLAGS" | \
6000 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
6001 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
6005 cf_new_cppflags
="$cf_new_cppflags $cf_add_cflags"
6010 cf_new_cflags
="$cf_new_cflags $cf_add_cflags"
6015 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
6017 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
6019 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
6020 && test -z "${cf_tst_cflags}" \
6021 && cf_fix_cppflags
=no
6026 if test -n "$cf_new_cflags" ; then
6028 CFLAGS
="$CFLAGS $cf_new_cflags"
6031 if test -n "$cf_new_cppflags" ; then
6033 CPPFLAGS
="$CPPFLAGS $cf_new_cppflags"
6036 if test -n "$cf_new_extra_cppflags" ; then
6038 EXTRA_CPPFLAGS
="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
6046 if test "$with_dmalloc" = yes ; then
6047 echo "$as_me:6047: checking for dmalloc.h" >&5
6048 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
6049 if test "${ac_cv_header_dmalloc_h+set}" = set; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 cat >conftest.
$ac_ext <<_ACEOF
6053 #line 6053 "configure"
6054 #include "confdefs.h"
6055 #include <dmalloc.h>
6057 if { (eval echo "$as_me:6057: \"$ac_cpp conftest.$ac_ext\"") >&5
6058 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6060 egrep -v '^ *\+' conftest.er1
>conftest.err
6062 cat conftest.err
>&5
6063 echo "$as_me:6063: \$? = $ac_status" >&5
6064 (exit $ac_status); } >/dev
/null
; then
6065 if test -s conftest.err
; then
6066 ac_cpp_err
=$ac_c_preproc_warn_flag
6073 if test -z "$ac_cpp_err"; then
6074 ac_cv_header_dmalloc_h
=yes
6076 echo "$as_me: failed program was:" >&5
6077 cat conftest.
$ac_ext >&5
6078 ac_cv_header_dmalloc_h
=no
6080 rm -f conftest.err conftest.
$ac_ext
6082 echo "$as_me:6082: result: $ac_cv_header_dmalloc_h" >&5
6083 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
6084 if test $ac_cv_header_dmalloc_h = yes; then
6086 echo "$as_me:6086: checking for dmalloc_debug in -ldmalloc" >&5
6087 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
6088 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
6089 echo $ECHO_N "(cached) $ECHO_C" >&6
6091 ac_check_lib_save_LIBS
=$LIBS
6092 LIBS
="-ldmalloc $LIBS"
6093 cat >conftest.
$ac_ext <<_ACEOF
6094 #line 6094 "configure"
6095 #include "confdefs.h"
6097 /* Override any gcc2 internal prototype to avoid an error. */
6101 /* We use char because int might match the return type of a gcc2
6102 builtin and then its argument prototype would still apply. */
6103 char dmalloc_debug ();
6112 rm -f conftest.
$ac_objext conftest
$ac_exeext
6113 if { (eval echo "$as_me:6113: \"$ac_link\"") >&5
6114 (eval $ac_link) 2>&5
6116 echo "$as_me:6116: \$? = $ac_status" >&5
6117 (exit $ac_status); } &&
6118 { ac_try
='test -s conftest$ac_exeext'
6119 { (eval echo "$as_me:6119: \"$ac_try\"") >&5
6122 echo "$as_me:6122: \$? = $ac_status" >&5
6123 (exit $ac_status); }; }; then
6124 ac_cv_lib_dmalloc_dmalloc_debug
=yes
6126 echo "$as_me: failed program was:" >&5
6127 cat conftest.
$ac_ext >&5
6128 ac_cv_lib_dmalloc_dmalloc_debug
=no
6130 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6131 LIBS
=$ac_check_lib_save_LIBS
6133 echo "$as_me:6133: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
6134 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
6135 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
6136 cat >>confdefs.h
<<EOF
6137 #define HAVE_LIBDMALLOC 1
6140 LIBS
="-ldmalloc $LIBS"
6148 echo "$as_me:6148: checking if you want to use dbmalloc for testing" >&5
6149 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
6151 # Check whether --with-dbmalloc or --without-dbmalloc was given.
6152 if test "${with_dbmalloc+set}" = set; then
6153 withval
="$with_dbmalloc"
6154 cat >>confdefs.h
<<\EOF
6155 #define USE_DBMALLOC 1
6158 : ${with_cflags:=-g}
6159 : ${with_no_leaks:=yes}
6164 echo "$as_me:6164: result: ${with_dbmalloc:-no}" >&5
6165 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
6167 case .
$with_cflags in #(vi
6169 case .
$CFLAGS in #(vi
6177 cf_new_extra_cppflags
=
6179 for cf_add_cflags
in -g
6181 case $cf_fix_cppflags in
6183 case $cf_add_cflags in #(vi
6184 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
6185 case $cf_add_cflags in
6187 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
6189 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
6190 && test -z "${cf_tst_cflags}" \
6191 && cf_fix_cppflags
=yes
6193 if test $cf_fix_cppflags = yes ; then
6194 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
6196 elif test "${cf_tst_cflags}" = "\"'" ; then
6197 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
6203 *$cf_add_cflags) #(vi
6206 case $cf_add_cflags in #(vi
6208 cf_tst_cppflags
=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
6210 CPPFLAGS
=`echo "$CPPFLAGS" | \
6211 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
6212 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
6216 cf_new_cppflags
="$cf_new_cppflags $cf_add_cflags"
6221 cf_new_cflags
="$cf_new_cflags $cf_add_cflags"
6226 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
6228 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
6230 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
6231 && test -z "${cf_tst_cflags}" \
6232 && cf_fix_cppflags
=no
6237 if test -n "$cf_new_cflags" ; then
6239 CFLAGS
="$CFLAGS $cf_new_cflags"
6242 if test -n "$cf_new_cppflags" ; then
6244 CPPFLAGS
="$CPPFLAGS $cf_new_cppflags"
6247 if test -n "$cf_new_extra_cppflags" ; then
6249 EXTRA_CPPFLAGS
="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
6257 if test "$with_dbmalloc" = yes ; then
6258 echo "$as_me:6258: checking for dbmalloc.h" >&5
6259 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
6260 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
6261 echo $ECHO_N "(cached) $ECHO_C" >&6
6263 cat >conftest.
$ac_ext <<_ACEOF
6264 #line 6264 "configure"
6265 #include "confdefs.h"
6266 #include <dbmalloc.h>
6268 if { (eval echo "$as_me:6268: \"$ac_cpp conftest.$ac_ext\"") >&5
6269 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6271 egrep -v '^ *\+' conftest.er1
>conftest.err
6273 cat conftest.err
>&5
6274 echo "$as_me:6274: \$? = $ac_status" >&5
6275 (exit $ac_status); } >/dev
/null
; then
6276 if test -s conftest.err
; then
6277 ac_cpp_err
=$ac_c_preproc_warn_flag
6284 if test -z "$ac_cpp_err"; then
6285 ac_cv_header_dbmalloc_h
=yes
6287 echo "$as_me: failed program was:" >&5
6288 cat conftest.
$ac_ext >&5
6289 ac_cv_header_dbmalloc_h
=no
6291 rm -f conftest.err conftest.
$ac_ext
6293 echo "$as_me:6293: result: $ac_cv_header_dbmalloc_h" >&5
6294 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
6295 if test $ac_cv_header_dbmalloc_h = yes; then
6297 echo "$as_me:6297: checking for debug_malloc in -ldbmalloc" >&5
6298 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
6299 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
6300 echo $ECHO_N "(cached) $ECHO_C" >&6
6302 ac_check_lib_save_LIBS
=$LIBS
6303 LIBS
="-ldbmalloc $LIBS"
6304 cat >conftest.
$ac_ext <<_ACEOF
6305 #line 6305 "configure"
6306 #include "confdefs.h"
6308 /* Override any gcc2 internal prototype to avoid an error. */
6312 /* We use char because int might match the return type of a gcc2
6313 builtin and then its argument prototype would still apply. */
6314 char debug_malloc ();
6323 rm -f conftest.
$ac_objext conftest
$ac_exeext
6324 if { (eval echo "$as_me:6324: \"$ac_link\"") >&5
6325 (eval $ac_link) 2>&5
6327 echo "$as_me:6327: \$? = $ac_status" >&5
6328 (exit $ac_status); } &&
6329 { ac_try
='test -s conftest$ac_exeext'
6330 { (eval echo "$as_me:6330: \"$ac_try\"") >&5
6333 echo "$as_me:6333: \$? = $ac_status" >&5
6334 (exit $ac_status); }; }; then
6335 ac_cv_lib_dbmalloc_debug_malloc
=yes
6337 echo "$as_me: failed program was:" >&5
6338 cat conftest.
$ac_ext >&5
6339 ac_cv_lib_dbmalloc_debug_malloc
=no
6341 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6342 LIBS
=$ac_check_lib_save_LIBS
6344 echo "$as_me:6344: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
6345 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
6346 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
6347 cat >>confdefs.h
<<EOF
6348 #define HAVE_LIBDBMALLOC 1
6351 LIBS
="-ldbmalloc $LIBS"
6359 echo "$as_me:6359: checking if you want to use valgrind for testing" >&5
6360 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
6362 # Check whether --with-valgrind or --without-valgrind was given.
6363 if test "${with_valgrind+set}" = set; then
6364 withval
="$with_valgrind"
6365 cat >>confdefs.h
<<\EOF
6366 #define USE_VALGRIND 1
6369 : ${with_cflags:=-g}
6370 : ${with_no_leaks:=yes}
6375 echo "$as_me:6375: result: ${with_valgrind:-no}" >&5
6376 echo "${ECHO_T}${with_valgrind:-no}" >&6
6378 case .
$with_cflags in #(vi
6380 case .
$CFLAGS in #(vi
6388 cf_new_extra_cppflags
=
6390 for cf_add_cflags
in -g
6392 case $cf_fix_cppflags in
6394 case $cf_add_cflags in #(vi
6395 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
6396 case $cf_add_cflags in
6398 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
6400 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
6401 && test -z "${cf_tst_cflags}" \
6402 && cf_fix_cppflags
=yes
6404 if test $cf_fix_cppflags = yes ; then
6405 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
6407 elif test "${cf_tst_cflags}" = "\"'" ; then
6408 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
6414 *$cf_add_cflags) #(vi
6417 case $cf_add_cflags in #(vi
6419 cf_tst_cppflags
=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
6421 CPPFLAGS
=`echo "$CPPFLAGS" | \
6422 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
6423 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
6427 cf_new_cppflags
="$cf_new_cppflags $cf_add_cflags"
6432 cf_new_cflags
="$cf_new_cflags $cf_add_cflags"
6437 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
6439 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
6441 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
6442 && test -z "${cf_tst_cflags}" \
6443 && cf_fix_cppflags
=no
6448 if test -n "$cf_new_cflags" ; then
6450 CFLAGS
="$CFLAGS $cf_new_cflags"
6453 if test -n "$cf_new_cppflags" ; then
6455 CPPFLAGS
="$CPPFLAGS $cf_new_cppflags"
6458 if test -n "$cf_new_extra_cppflags" ; then
6460 EXTRA_CPPFLAGS
="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
6468 echo "$as_me:6468: checking if you want to perform memory-leak testing" >&5
6469 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
6471 # Check whether --enable-leaks or --disable-leaks was given.
6472 if test "${enable_leaks+set}" = set; then
6473 enableval
="$enable_leaks"
6474 if test "x$enableval" = xno
; then with_no_leaks
=yes; else with_no_leaks
=no
; fi
6476 : ${with_no_leaks:=no}
6478 echo "$as_me:6478: result: $with_no_leaks" >&5
6479 echo "${ECHO_T}$with_no_leaks" >&6
6481 if test "$with_no_leaks" = yes ; then
6482 cat >>confdefs.h
<<\EOF
6486 cat >>confdefs.h
<<\EOF
6487 #define YY_NO_LEAKS 1
6492 ### output makefile and config.h
6493 ac_config_files
="$ac_config_files makefile"
6494 ac_config_commands
="$ac_config_commands default"
6495 cat >confcache
<<\_ACEOF
6496 # This file is a shell script that caches the results of configure
6497 # tests run on this system so they can be shared between configure
6498 # scripts and configure runs, see configure's option --config-cache.
6499 # It is not useful on other systems. If it contains results you don't
6500 # want to keep, you may remove or edit it.
6502 # config.status only pays attention to the cache file if you give it
6503 # the --recheck option to rerun configure.
6505 # `ac_cv_env_foo' variables (set or unset) will be overriden when
6506 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6511 # The following way of writing the cache mishandles newlines in values,
6512 # but we know of no workaround that is simple, portable, and efficient.
6513 # So, don't put newlines in cache variables' values.
6514 # Ultrix sh set writes to stderr and can't be redirected directly,
6515 # and sets the high bit in the cache file unless we assign to the vars.
6518 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6520 # `set' does not quote correctly, so add quotes (double-quote
6521 # substitution turns \\\\ into \\, and sed turns \\ into \).
6524 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6527 # `set' quotes correctly as required by POSIX, so do not add quotes.
6529 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6536 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6538 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6540 if cmp -s $cache_file confcache
; then :; else
6541 if test -w $cache_file; then
6542 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6543 cat confcache
>$cache_file
6545 echo "not updating unwritable cache $cache_file"
6550 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6551 # Let make expand exec_prefix.
6552 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6554 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6555 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6556 # trailing colons and then remove the whole line if VPATH becomes empty
6557 # (actually we leave an empty line to preserve line numbers).
6558 if test "x$srcdir" = x.
; then
6559 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
6560 s/:*\$(srcdir):*/:/;
6561 s/:*\${srcdir}:*/:/;
6563 s/^\([^=]*=[ ]*\):*/\1/;
6569 DEFS
=-DHAVE_CONFIG_H
6571 : ${CONFIG_STATUS=./config.status}
6572 ac_clean_files_save
=$ac_clean_files
6573 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
6574 { echo "$as_me:6574: creating $CONFIG_STATUS" >&5
6575 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6576 cat >$CONFIG_STATUS <<_ACEOF
6578 # Generated automatically by configure.
6579 # Run this file to recreate the current configuration.
6580 # Compiler output produced by configure, useful for debugging
6581 # configure, is in config.log if it exists.
6584 SHELL=\${CONFIG_SHELL-$SHELL}
6585 ac_cs_invocation="\$0 \$@"
6589 cat >>$CONFIG_STATUS <<\_ACEOF
6590 # Be Bourne compatible
6591 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
6594 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
6598 # Name of the executable.
6599 as_me
=`echo "$0" |sed 's,.*[\\/],,'`
6601 if expr a
: '\(a\)' >/dev
/null
2>&1; then
6607 rm -f conf$$ conf$$.exe conf$$.
file
6609 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
6610 # We could just check for DJGPP; but this test a) works b) is more generic
6611 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6612 if test -f conf$$.exe
; then
6613 # Don't use ln at all; we don't have any links
6618 elif ln conf$$.
file conf$$
2>/dev
/null
; then
6623 rm -f conf$$ conf$$.exe conf$$.
file
6625 as_executable_p
="test -f"
6627 # Support unset when possible.
6628 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
6635 $as_unset LANG
|| test "${LANG+set}" != set || { LANG
=C
; export LANG
; }
6636 $as_unset LC_ALL
|| test "${LC_ALL+set}" != set || { LC_ALL
=C
; export LC_ALL
; }
6637 $as_unset LC_TIME
|| test "${LC_TIME+set}" != set || { LC_TIME
=C
; export LC_TIME
; }
6638 $as_unset LC_CTYPE
|| test "${LC_CTYPE+set}" != set || { LC_CTYPE
=C
; export LC_CTYPE
; }
6639 $as_unset LANGUAGE
|| test "${LANGUAGE+set}" != set || { LANGUAGE
=C
; export LANGUAGE
; }
6640 $as_unset LC_COLLATE
|| test "${LC_COLLATE+set}" != set || { LC_COLLATE
=C
; export LC_COLLATE
; }
6641 $as_unset LC_NUMERIC
|| test "${LC_NUMERIC+set}" != set || { LC_NUMERIC
=C
; export LC_NUMERIC
; }
6642 $as_unset LC_MESSAGES
|| test "${LC_MESSAGES+set}" != set || { LC_MESSAGES
=C
; export LC_MESSAGES
; }
6645 # We need space, tab and new line, in precisely that order.
6651 $as_unset CDPATH
|| test "${CDPATH+set}" != set || { CDPATH
=:; export CDPATH
; }
6657 # Files that config.status was made for.
6658 if test -n "$ac_config_files"; then
6659 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6662 if test -n "$ac_config_headers"; then
6663 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6666 if test -n "$ac_config_links"; then
6667 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6670 if test -n "$ac_config_commands"; then
6671 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6674 cat >>$CONFIG_STATUS <<\EOF
6677 \`$as_me' instantiates files from templates according to the
6678 current configuration.
6680 Usage: $0 [OPTIONS] [FILE]...
6682 -h, --help print this help, then exit
6683 -V, --version print version number, then exit
6684 -d, --debug don't remove temporary files
6685 --recheck update $as_me by reconfiguring in the same conditions
6686 --file=FILE[:TEMPLATE]
6687 instantiate the configuration file FILE
6688 --header=FILE[:TEMPLATE]
6689 instantiate the configuration header FILE
6691 Configuration files:
6694 Configuration headers:
6697 Configuration commands:
6700 Report bugs to <dickey@invisible-island.net>."
6703 cat >>$CONFIG_STATUS <<EOF
6706 configured by $0, generated by GNU Autoconf 2.52.20101002,
6707 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6709 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6710 Free Software Foundation, Inc.
6711 This config.status script is free software; the Free Software Foundation
6712 gives unlimited permission to copy, distribute and modify it."
6717 cat >>$CONFIG_STATUS <<\EOF
6718 # If no file are specified by the user, then we need to provide default
6719 # value. By we need to know if files were specified by the user.
6725 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
6726 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
6728 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
6732 *) # This is not an option, so the user has probably given explicit
6734 ac_need_defaults
=false
;;
6738 # Handling of the options.
6740 cat >>$CONFIG_STATUS <<EOF
6741 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6742 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
6743 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
6745 cat >>$CONFIG_STATUS <<\EOF
6746 --version | --vers* | -V )
6747 echo "$ac_cs_version"; exit 0 ;;
6749 # Conflict between --help and --header
6750 { { echo "$as_me:6750: error: ambiguous option: $1
6751 Try \`$0 --help' for more information." >&5
6752 echo "$as_me: error: ambiguous option: $1
6753 Try \`$0 --help' for more information." >&2;}
6754 { (exit 1); exit 1; }; };;
6755 --help | --hel | -h )
6756 echo "$ac_cs_usage"; exit 0 ;;
6757 --debug | --d* | -d )
6759 --file | --fil | --fi | --f )
6761 CONFIG_FILES
="$CONFIG_FILES $1"
6762 ac_need_defaults
=false
;;
6763 --header | --heade | --head | --hea )
6765 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
6766 ac_need_defaults
=false
;;
6769 -*) { { echo "$as_me:6769: error: unrecognized option: $1
6770 Try \`$0 --help' for more information." >&5
6771 echo "$as_me: error: unrecognized option: $1
6772 Try \`$0 --help' for more information." >&2;}
6773 { (exit 1); exit 1; }; } ;;
6775 *) ac_config_targets
="$ac_config_targets $1" ;;
6784 ## ----------------------- ##
6785 ## Running config.status. ##
6786 ## ----------------------- ##
6788 This file was extended by $as_me 2.52.20101002, executed with
6789 CONFIG_FILES = $CONFIG_FILES
6790 CONFIG_HEADERS = $CONFIG_HEADERS
6791 CONFIG_LINKS = $CONFIG_LINKS
6792 CONFIG_COMMANDS = $CONFIG_COMMANDS
6794 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6799 cat >>$CONFIG_STATUS <<\EOF
6800 for ac_config_target
in $ac_config_targets
6802 case "$ac_config_target" in
6803 # Handling of arguments.
6804 "makefile" ) CONFIG_FILES
="$CONFIG_FILES makefile" ;;
6805 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
6806 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config_h.in" ;;
6807 *) { { echo "$as_me:6807: error: invalid argument: $ac_config_target" >&5
6808 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6809 { (exit 1); exit 1; }; };;
6813 # If the user did not use the arguments to specify the items to instantiate,
6814 # then the envvar interface is used. Set only those that are not.
6815 # We use the long form for the default assignment because of an extremely
6816 # bizarre bug on SunOS 4.1.3.
6817 if $ac_need_defaults; then
6818 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
6819 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
6820 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
6823 # Create a temporary directory, and hook for its removal unless debugging.
6826 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6827 trap '{ (exit 1); exit 1; }' 1 2 13 15
6830 # Create a (secure) tmp directory for tmp files.
6833 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
6834 test -n "$tmp" && test -d "$tmp"
6837 tmp
=$TMPDIR/cs$$
-$RANDOM
6838 (umask 077 && mkdir $tmp)
6841 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
6842 { (exit 1); exit 1; }
6847 cat >>$CONFIG_STATUS <<EOF
6850 # CONFIG_FILES section.
6853 # No need to generate the scripts if there are no CONFIG_FILES.
6854 # This happens for instance when ./config.status config.h
6855 if test -n "\$CONFIG_FILES"; then
6856 # Protect against being on the right side of a sed subst in config.status.
6857 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6858 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6859 s,@SHELL@,$SHELL,;t t
6860 s,@exec_prefix@,$exec_prefix,;t t
6861 s,@prefix@,$prefix,;t t
6862 s,@program_transform_name@,$program_transform_name,;t t
6863 s,@bindir@,$bindir,;t t
6864 s,@sbindir@,$sbindir,;t t
6865 s,@libexecdir@,$libexecdir,;t t
6866 s,@datadir@,$datadir,;t t
6867 s,@sysconfdir@,$sysconfdir,;t t
6868 s,@sharedstatedir@,$sharedstatedir,;t t
6869 s,@localstatedir@,$localstatedir,;t t
6870 s,@libdir@,$libdir,;t t
6871 s,@includedir@,$includedir,;t t
6872 s,@oldincludedir@,$oldincludedir,;t t
6873 s,@infodir@,$infodir,;t t
6874 s,@mandir@,$mandir,;t t
6875 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6876 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6877 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6878 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6879 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6880 s,@build_alias@,$build_alias,;t t
6881 s,@host_alias@,$host_alias,;t t
6882 s,@target_alias@,$target_alias,;t t
6883 s,@ECHO_C@,$ECHO_C,;t t
6884 s,@ECHO_N@,$ECHO_N,;t t
6885 s,@ECHO_T@,$ECHO_T,;t t
6886 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6890 s,@CFLAGS@,$CFLAGS,;t t
6891 s,@LDFLAGS@,$LDFLAGS,;t t
6892 s,@CPPFLAGS@,$CPPFLAGS,;t t
6893 s,@ac_ct_CC@,$ac_ct_CC,;t t
6894 s,@EXEEXT@,$EXEEXT,;t t
6895 s,@OBJEXT@,$OBJEXT,;t t
6896 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6897 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6898 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6900 s,@LINT_OPTS@,$LINT_OPTS,;t t
6901 s,@CTAGS@,$CTAGS,;t t
6902 s,@ETAGS@,$ETAGS,;t t
6903 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
6904 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
6905 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
6906 s,@ECHO_LT@,$ECHO_LT,;t t
6907 s,@ECHO_LD@,$ECHO_LD,;t t
6908 s,@RULE_CC@,$RULE_CC,;t t
6909 s,@SHOW_CC@,$SHOW_CC,;t t
6910 s,@ECHO_CC@,$ECHO_CC,;t t
6911 s,@build@,$build,;t t
6912 s,@build_cpu@,$build_cpu,;t t
6913 s,@build_vendor@,$build_vendor,;t t
6914 s,@build_os@,$build_os,;t t
6916 s,@host_cpu@,$host_cpu,;t t
6917 s,@host_vendor@,$host_vendor,;t t
6918 s,@host_os@,$host_os,;t t
6919 s,@PROG_EXT@,$PROG_EXT,;t t
6920 s,@DESTDIR@,$DESTDIR,;t t
6921 s,@BZCAT@,$BZCAT,;t t
6922 s,@BZIP2@,$BZIP2,;t t
6923 s,@COMPRESS@,$COMPRESS,;t t
6925 s,@LZCAT@,$LZCAT,;t t
6927 s,@UNCOMPRESS@,$UNCOMPRESS,;t t
6930 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
6936 cat >>$CONFIG_STATUS <<\EOF
6937 # Split the substitutions into bite-sized pieces for seds with
6938 # small command number limits, like on Digital OSF/1 and HP-UX.
6940 ac_sed_frag
=1 # Number of current file.
6941 ac_beg
=1 # First line for current file.
6942 ac_end
=$ac_max_sed_lines # Line after last line for current file.
6945 while $ac_more_lines; do
6946 if test $ac_beg -gt 1; then
6947 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
6949 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
6951 if test ! -s $tmp/subs.frag
; then
6954 # The purpose of the label and of the branching condition is to
6955 # speed up the sed processing (if there are no `@' at all, there
6956 # is no need to browse any of the substitutions).
6957 # These are the two extra sed commands mentioned above.
6959 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs
-$ac_sed_frag.
sed
6960 if test -z "$ac_sed_cmds"; then
6961 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
6963 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6965 ac_sed_frag
=`expr $ac_sed_frag + 1`
6967 ac_end
=`expr $ac_end + $ac_max_sed_lines`
6970 if test -z "$ac_sed_cmds"; then
6973 fi # test -n "$CONFIG_FILES"
6976 cat >>$CONFIG_STATUS <<\EOF
6977 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
6978 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6980 - | *:- | *:-:* ) # input from stdin
6982 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
6983 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
6984 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
6985 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
6986 * ) ac_file_in
=$ac_file.
in ;;
6989 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6990 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6991 X"$ac_file" : 'X\(//\)[^/]' \| \
6992 X"$ac_file" : 'X\(//\)$' \| \
6993 X"$ac_file" : 'X\(/\)' \| \
6994 . : '\(.\)' 2>/dev/null ||
6996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6997 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6998 /^X\(\/\/\)$/{ s//\1/; q; }
6999 /^X\(\/\).*/{ s//\1/; q; }
7001 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
7003 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
7007 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7008 case $as_mkdir_dir in
7009 # Skip DOS drivespec
7010 ?
:) as_incr_dir
=$as_mkdir_dir ;;
7012 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
7013 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
7018 ac_dir_suffix
="/`echo $ac_dir|sed 's,^\./,,'`"
7019 # A "../" for each directory in $ac_dir_suffix.
7020 ac_dots
=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
7022 ac_dir_suffix
= ac_dots
=
7027 if test -z "$ac_dots"; then
7030 ac_top_srcdir
=`echo $ac_dots | sed 's,/$,,'`
7033 ac_srcdir
=$srcdir$ac_dir_suffix;
7034 ac_top_srcdir
=$srcdir ;;
7036 ac_srcdir
=$ac_dots$srcdir$ac_dir_suffix
7037 ac_top_srcdir
=$ac_dots$srcdir ;;
7041 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
7042 *) ac_INSTALL
=$ac_dots$INSTALL ;;
7045 if test x
"$ac_file" != x
-; then
7046 { echo "$as_me:7046: creating $ac_file" >&5
7047 echo "$as_me: creating $ac_file" >&6;}
7050 # Let's still pretend it is `configure' which instantiates (i.e., don't
7051 # use $as_me), people would be surprised to read:
7052 # /* config.h. Generated automatically by config.status. */
7053 configure_input
="Generated automatically from `echo $ac_file_in |
7054 sed 's,.*/,,'` by configure."
7056 # First look for the input files in the build tree, otherwise in the
7058 ac_file_inputs
=`IFS=:
7059 for f in $ac_file_in; do
7061 -) echo $tmp/stdin ;;
7063 # Absolute (can't be DOS-style, as IFS=:)
7064 test -f "$f" || { { echo "$as_me:7064: error: cannot find input file: $f" >&5
7065 echo "$as_me: error: cannot find input file: $f" >&2;}
7066 { (exit 1); exit 1; }; }
7069 if test -f "$f"; then
7072 elif test -f "$srcdir/$f"; then
7077 { { echo "$as_me:7077: error: cannot find input file: $f" >&5
7078 echo "$as_me: error: cannot find input file: $f" >&2;}
7079 { (exit 1); exit 1; }; }
7082 done` || { (exit 1); exit 1; }
7084 cat >>$CONFIG_STATUS <<EOF
7088 cat >>$CONFIG_STATUS <<\EOF
7090 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
7091 s
,@configure_input@
,$configure_input,;t t
7092 s
,@srcdir@
,$ac_srcdir,;t t
7093 s
,@top_srcdir@
,$ac_top_srcdir,;t t
7094 s
,@INSTALL@
,$ac_INSTALL,;t t
7095 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7097 if test x"$ac_file" != x-; then
7098 mv $tmp/out $ac_file
7106 cat >>$CONFIG_STATUS <<\EOF
7109 # CONFIG_HEADER section.
7112 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
7113 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7115 # ac_d sets the value in "#define NAME VALUE" lines.
7116 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7117 ac_dB
='[ ].*$,\1#\2'
7120 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7121 ac_iA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7122 ac_iB
='\([ ]\),\1#\2define\3'
7125 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7126 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7127 ac_uB
='$,\1#\2define\3'
7131 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
7132 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7134 - | *:- | *:-:* ) # input from stdin
7136 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7137 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7138 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7139 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7140 * ) ac_file_in
=$ac_file.
in ;;
7143 test x
"$ac_file" != x
- && { echo "$as_me:7143: creating $ac_file" >&5
7144 echo "$as_me: creating $ac_file" >&6;}
7146 # First look for the input files in the build tree, otherwise in the
7148 ac_file_inputs
=`IFS=:
7149 for f in $ac_file_in; do
7151 -) echo $tmp/stdin ;;
7153 # Absolute (can't be DOS-style, as IFS=:)
7154 test -f "$f" || { { echo "$as_me:7154: error: cannot find input file: $f" >&5
7155 echo "$as_me: error: cannot find input file: $f" >&2;}
7156 { (exit 1); exit 1; }; }
7159 if test -f "$f"; then
7162 elif test -f "$srcdir/$f"; then
7167 { { echo "$as_me:7167: error: cannot find input file: $f" >&5
7168 echo "$as_me: error: cannot find input file: $f" >&2;}
7169 { (exit 1); exit 1; }; }
7172 done` || { (exit 1); exit 1; }
7173 # Remove the trailing spaces.
7174 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7178 # Transform confdefs.h into a list of #define's. We won't use it as a sed
7179 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
7180 # be either 'cat' or 'sort'.
7181 cat confdefs.h
| uniq >conftest.vals
7183 # Break up conftest.vals because some shells have a limit on
7184 # the size of here documents, and old seds have small limits too.
7187 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
7188 while grep . conftest.vals
>/dev
/null
7190 # Write chunks of a limited-size here document to conftest.frag.
7191 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
7192 sed ${ac_max_here_lines}q conftest.vals | sed -e 's
/#ifdef.*/#if 0/' >> $CONFIG_STATUS
7193 echo 'CEOF' >> $CONFIG_STATUS
7194 sed 1,${ac_max_here_lines}d conftest.vals
> conftest.
tail
7196 mv conftest.
tail conftest.vals
7200 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
7202 echo ' cat >> conftest.edit <<CEOF
7203 /@DEFS@/r conftest.frag
7206 sed -f conftest.edit $tmp/in > $tmp/out
7209 rm -f conftest.edit conftest.frag
7212 cat >>$CONFIG_STATUS <<\EOF
7213 # Let's still pretend it is `configure' which instantiates (i.e., don't
7214 # use $as_me), people would be surprised to read:
7215 # /* config.h. Generated automatically by config.status. */
7216 if test x
"$ac_file" = x
-; then
7217 echo "/* Generated automatically by configure. */" >$tmp/config.h
7219 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
7221 cat $tmp/in >>$tmp/config.h
7223 if test x
"$ac_file" != x
-; then
7224 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
7225 { echo "$as_me:7225: $ac_file is unchanged" >&5
7226 echo "$as_me: $ac_file is unchanged" >&6;}
7228 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7229 X"$ac_file" : 'X\(//\)[^/]' \| \
7230 X"$ac_file" : 'X\(//\)$' \| \
7231 X"$ac_file" : 'X\(/\)' \| \
7232 . : '\(.\)' 2>/dev/null ||
7234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7235 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7236 /^X\(\/\/\)$/{ s//\1/; q; }
7237 /^X\(\/\).*/{ s//\1/; q; }
7239 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
7241 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
7245 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7246 case $as_mkdir_dir in
7247 # Skip DOS drivespec
7248 ?
:) as_incr_dir
=$as_mkdir_dir ;;
7250 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
7251 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
7258 mv $tmp/config.h
$ac_file
7267 cat >>$CONFIG_STATUS <<\EOF
7269 { (exit 0); exit 0; }
7271 chmod +x
$CONFIG_STATUS
7272 ac_clean_files
=$ac_clean_files_save
7274 # configure is writing to config.log, and then calls config.status.
7275 # config.status does its own redirection, appending to config.log.
7276 # Unfortunately, on DOS this fails, as config.log is still kept open
7277 # by configure, so config.status won't be able to write to it; its
7278 # output is simply discarded. So we exec the FD to /dev/null,
7279 # effectively closing config.log, so it can be properly (re)opened and
7280 # appended to by config.status. When coming back to configure, we
7281 # need to make the FD available again.
7282 if test "$no_create" != yes; then
7285 $SHELL $CONFIG_STATUS || ac_cs_success
=false
7287 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7288 # would make configure fail if this is the last instruction.
7289 $ac_cs_success || { (exit 1); exit 1; }