2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.20101001.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Avoid depending upon Character Ranges.
11 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits='0123456789'
15 as_cr_alnum=$as_cr_Letters$as_cr_digits
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20 # Sed expression to map a string onto a valid CPP name.
21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31 # Name of the executable.
32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
34 if expr a : '\(a\)' >/dev/null 2>&1; then
40 rm -f conf$$ conf$$.exe conf$$.file
42 if ln -s conf$$.file conf$$ 2>/dev/null; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe; then
46 # Don't use ln at all; we don't have any links
51 elif ln conf$$.file conf$$ 2>/dev/null; then
56 rm -f conf$$ conf$$.exe conf$$.file
58 as_executable_p="test -f"
60 # Support unset when possible.
61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
78 # We need space, tab and new line, in precisely that order.
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too.
89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
96 ac_default_prefix=/usr/local
100 SHELL=${CONFIG_SHELL-/bin/sh}
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete. It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
107 ac_unique_file="ncurses.c"
108 # Factoring default headers for most tests.
109 ac_includes_default="\
112 # include <sys/types.h>
115 # include <sys/stat.h>
126 # if !STDC_HEADERS && HAVE_MEMORY_H
132 # include <strings.h>
135 # include <inttypes.h>
145 # Initialize some variables set by options.
147 ac_init_version=false
148 # The variables have the same names as the options, with
149 # dashes changed to underlines.
157 program_transform_name=s,x,x,
165 # Installation directory options.
166 # These are left unexpanded so users can "make install exec_prefix=/foo"
167 # and all the variables that are supposed to be based on exec_prefix
168 # by default will actually change.
169 # Use braces instead of parens because sh, perl, etc. also accept them.
170 bindir='${exec_prefix}/bin'
171 sbindir='${exec_prefix}/sbin'
172 libexecdir='${exec_prefix}/libexec'
173 datadir='${prefix}/share'
174 sysconfdir='${prefix}/etc'
175 sharedstatedir='${prefix}/com'
176 localstatedir='${prefix}/var'
177 libdir='${exec_prefix}/lib'
178 includedir='${prefix}/include'
179 oldincludedir='/usr/include'
180 infodir='${prefix}/info'
181 mandir='${prefix}/man'
183 # Identity of this package.
193 # If the previous option needs an argument, assign it.
194 if test -n "$ac_prev"; then
195 eval "$ac_prev=\$ac_option"
200 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
202 # Accept the important Cygnus configure options, so we can diagnose typos.
206 -bindir | --bindir | --bindi | --bind | --bin | --bi)
208 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
211 -build | --build | --buil | --bui | --bu)
212 ac_prev=build_alias ;;
213 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
214 build_alias=$ac_optarg ;;
216 -cache-file | --cache-file | --cache-fil | --cache-fi \
217 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
218 ac_prev=cache_file ;;
219 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
220 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
221 cache_file=$ac_optarg ;;
224 cache_file=config.cache ;;
226 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
228 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
230 datadir=$ac_optarg ;;
232 -disable-* | --disable-*)
233 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
234 # Reject names that are not valid shell variable names.
235 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
236 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
237 { (exit 1); exit 1; }; }
238 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
239 eval "enable_$ac_feature=no" ;;
241 -enable-* | --enable-*)
242 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
243 # Reject names that are not valid shell variable names.
244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246 { (exit 1); exit 1; }; }
247 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
249 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252 eval "enable_$ac_feature='$ac_optarg'" ;;
254 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
255 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
256 | --exec | --exe | --ex)
257 ac_prev=exec_prefix ;;
258 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
259 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
260 | --exec=* | --exe=* | --ex=*)
261 exec_prefix=$ac_optarg ;;
263 -gas | --gas | --ga | --g)
264 # Obsolete; use --with-gas.
267 -help | --help | --hel | --he | -h)
269 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
270 ac_init_help=recursive ;;
271 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
272 ac_init_help=short ;;
274 -host | --host | --hos | --ho)
275 ac_prev=host_alias ;;
276 -host=* | --host=* | --hos=* | --ho=*)
277 host_alias=$ac_optarg ;;
279 -includedir | --includedir | --includedi | --included | --include \
280 | --includ | --inclu | --incl | --inc)
281 ac_prev=includedir ;;
282 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
283 | --includ=* | --inclu=* | --incl=* | --inc=*)
284 includedir=$ac_optarg ;;
286 -infodir | --infodir | --infodi | --infod | --info | --inf)
288 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
289 infodir=$ac_optarg ;;
291 -libdir | --libdir | --libdi | --libd)
293 -libdir=* | --libdir=* | --libdi=* | --libd=*)
296 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
297 | --libexe | --libex | --libe)
298 ac_prev=libexecdir ;;
299 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
300 | --libexe=* | --libex=* | --libe=*)
301 libexecdir=$ac_optarg ;;
303 -localstatedir | --localstatedir | --localstatedi | --localstated \
304 | --localstate | --localstat | --localsta | --localst \
305 | --locals | --local | --loca | --loc | --lo)
306 ac_prev=localstatedir ;;
307 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
308 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
309 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
310 localstatedir=$ac_optarg ;;
312 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
314 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
318 # Obsolete; use --without-fp.
321 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
325 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
326 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
329 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
330 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
331 | --oldin | --oldi | --old | --ol | --o)
332 ac_prev=oldincludedir ;;
333 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
334 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
335 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
336 oldincludedir=$ac_optarg ;;
338 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
340 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
343 -program-prefix | --program-prefix | --program-prefi | --program-pref \
344 | --program-pre | --program-pr | --program-p)
345 ac_prev=program_prefix ;;
346 -program-prefix=* | --program-prefix=* | --program-prefi=* \
347 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
348 program_prefix=$ac_optarg ;;
350 -program-suffix | --program-suffix | --program-suffi | --program-suff \
351 | --program-suf | --program-su | --program-s)
352 ac_prev=program_suffix ;;
353 -program-suffix=* | --program-suffix=* | --program-suffi=* \
354 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
355 program_suffix=$ac_optarg ;;
357 -program-transform-name | --program-transform-name \
358 | --program-transform-nam | --program-transform-na \
359 | --program-transform-n | --program-transform- \
360 | --program-transform | --program-transfor \
361 | --program-transfo | --program-transf \
362 | --program-trans | --program-tran \
363 | --progr-tra | --program-tr | --program-t)
364 ac_prev=program_transform_name ;;
365 -program-transform-name=* | --program-transform-name=* \
366 | --program-transform-nam=* | --program-transform-na=* \
367 | --program-transform-n=* | --program-transform-=* \
368 | --program-transform=* | --program-transfor=* \
369 | --program-transfo=* | --program-transf=* \
370 | --program-trans=* | --program-tran=* \
371 | --progr-tra=* | --program-tr=* | --program-t=*)
372 program_transform_name=$ac_optarg ;;
374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
375 | -silent | --silent | --silen | --sile | --sil)
378 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
380 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
382 sbindir=$ac_optarg ;;
384 -sharedstatedir | --sharedstatedir | --sharedstatedi \
385 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
386 | --sharedst | --shareds | --shared | --share | --shar \
388 ac_prev=sharedstatedir ;;
389 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
390 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
391 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
393 sharedstatedir=$ac_optarg ;;
395 -site | --site | --sit)
397 -site=* | --site=* | --sit=*)
400 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
402 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
405 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
406 | --syscon | --sysco | --sysc | --sys | --sy)
407 ac_prev=sysconfdir ;;
408 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
409 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
410 sysconfdir=$ac_optarg ;;
412 -target | --target | --targe | --targ | --tar | --ta | --t)
413 ac_prev=target_alias ;;
414 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
415 target_alias=$ac_optarg ;;
417 -v | -verbose | --verbose | --verbos | --verbo | --verb)
420 -version | --version | --versio | --versi | --vers | -V)
424 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
425 # Reject names that are not valid shell variable names.
426 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
427 { echo "$as_me: error: invalid package name: $ac_package" >&2
428 { (exit 1); exit 1; }; }
429 ac_package=`echo $ac_package| sed 's/-/_/g'`
431 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
434 eval "with_$ac_package='$ac_optarg'" ;;
436 -without-* | --without-*)
437 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
438 # Reject names that are not valid shell variable names.
439 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
440 { echo "$as_me: error: invalid package name: $ac_package" >&2
441 { (exit 1); exit 1; }; }
442 ac_package=`echo $ac_package | sed 's/-/_/g'`
443 eval "with_$ac_package=no" ;;
446 # Obsolete; use --with-x.
449 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
450 | --x-incl | --x-inc | --x-in | --x-i)
451 ac_prev=x_includes ;;
452 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
453 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
454 x_includes=$ac_optarg ;;
456 -x-libraries | --x-libraries | --x-librarie | --x-librari \
457 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
458 ac_prev=x_libraries ;;
459 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
460 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
461 x_libraries=$ac_optarg ;;
463 -*) { echo "$as_me: error: unrecognized option: $ac_option
464 Try \`$0 --help' for more information." >&2
465 { (exit 1); exit 1; }; }
469 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
470 # Reject names that are not valid shell variable names.
471 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
472 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
473 { (exit 1); exit 1; }; }
474 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
475 eval "$ac_envvar='$ac_optarg'"
479 # FIXME: should be removed in autoconf 3.0.
480 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
481 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
482 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
483 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
489 if test -n "$ac_prev"; then
490 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
491 { echo "$as_me: error: missing argument to $ac_option" >&2
492 { (exit 1); exit 1; }; }
495 # Be sure to have absolute paths.
496 for ac_var in exec_prefix prefix
498 eval ac_val=$`echo $ac_var`
500 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
501 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
502 { (exit 1); exit 1; }; };;
506 # Be sure to have absolute paths.
507 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
508 localstatedir libdir includedir oldincludedir infodir mandir
510 eval ac_val=$`echo $ac_var`
512 [\\/$]* | ?:[\\/]* ) ;;
513 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
514 { (exit 1); exit 1; }; };;
518 # There might be people who depend on the old broken behavior: `$host'
519 # used to hold the argument of --host etc.
524 # FIXME: should be removed in autoconf 3.0.
525 if test "x$host_alias" != x; then
526 if test "x$build_alias" = x; then
527 cross_compiling=maybe
528 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
529 If a cross compiler is detected then cross compile mode will be used." >&2
530 elif test "x$build_alias" != "x$host_alias"; then
536 test -n "$host_alias" && ac_tool_prefix=$host_alias-
538 test "$silent" = yes && exec 6>/dev/null
540 # Find the source files, if location was not specified.
541 if test -z "$srcdir"; then
542 ac_srcdir_defaulted=yes
543 # Try the directory containing this script, then its parent.
545 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
546 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
548 if test ! -r $srcdir/$ac_unique_file; then
552 ac_srcdir_defaulted=no
554 if test ! -r $srcdir/$ac_unique_file; then
555 if test "$ac_srcdir_defaulted" = yes; then
556 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
557 { (exit 1); exit 1; }; }
559 { echo "$as_me: error: cannot find sources in $srcdir" >&2
560 { (exit 1); exit 1; }; }
563 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
564 ac_env_build_alias_set=${build_alias+set}
565 ac_env_build_alias_value=$build_alias
566 ac_cv_env_build_alias_set=${build_alias+set}
567 ac_cv_env_build_alias_value=$build_alias
568 ac_env_host_alias_set=${host_alias+set}
569 ac_env_host_alias_value=$host_alias
570 ac_cv_env_host_alias_set=${host_alias+set}
571 ac_cv_env_host_alias_value=$host_alias
572 ac_env_target_alias_set=${target_alias+set}
573 ac_env_target_alias_value=$target_alias
574 ac_cv_env_target_alias_set=${target_alias+set}
575 ac_cv_env_target_alias_value=$target_alias
576 ac_env_CC_set=${CC+set}
578 ac_cv_env_CC_set=${CC+set}
579 ac_cv_env_CC_value=$CC
580 ac_env_CFLAGS_set=${CFLAGS+set}
581 ac_env_CFLAGS_value=$CFLAGS
582 ac_cv_env_CFLAGS_set=${CFLAGS+set}
583 ac_cv_env_CFLAGS_value=$CFLAGS
584 ac_env_LDFLAGS_set=${LDFLAGS+set}
585 ac_env_LDFLAGS_value=$LDFLAGS
586 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
587 ac_cv_env_LDFLAGS_value=$LDFLAGS
588 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
589 ac_env_CPPFLAGS_value=$CPPFLAGS
590 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
591 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
592 ac_env_CPP_set=${CPP+set}
593 ac_env_CPP_value=$CPP
594 ac_cv_env_CPP_set=${CPP+set}
595 ac_cv_env_CPP_value=$CPP
598 # Report the --help message.
600 if test "$ac_init_help" = "long"; then
601 # Omit some internal or obsolete options to make the list less imposing.
602 # This message is too long to be a string in the A/UX 3.1 sh.
604 \`configure' configures this package to adapt to many kinds of systems.
606 Usage: $0 [OPTION]... [VAR=VALUE]...
608 To assign environment variables (e.g., CC, CFLAGS...), specify them as
609 VAR=VALUE. See below for descriptions of some of the useful variables.
611 Defaults for the options are specified in brackets.
614 -h, --help display this help and exit
615 --help=short display options specific to this package
616 --help=recursive display the short help of all the included packages
617 -V, --version display version information and exit
618 -q, --quiet, --silent do not print \`checking...' messages
619 --cache-file=FILE cache test results in FILE [disabled]
620 -C, --config-cache alias for \`--cache-file=config.cache'
621 -n, --no-create do not create output files
622 --srcdir=DIR find the sources in DIR [configure dir or \`..']
627 Installation directories:
628 --prefix=PREFIX install architecture-independent files in PREFIX
630 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
633 By default, \`make install' will install all the files in
634 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
635 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
636 for instance \`--prefix=\$HOME'.
638 For better control, use the options below.
640 Fine tuning of the installation directories:
641 --bindir=DIR user executables [EPREFIX/bin]
642 --sbindir=DIR system admin executables [EPREFIX/sbin]
643 --libexecdir=DIR program executables [EPREFIX/libexec]
644 --datadir=DIR read-only architecture-independent data [PREFIX/share]
645 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
646 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
647 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
648 --libdir=DIR object code libraries [EPREFIX/lib]
649 --includedir=DIR C header files [PREFIX/include]
650 --oldincludedir=DIR C header files for non-gcc [/usr/include]
651 --infodir=DIR info documentation [PREFIX/info]
652 --mandir=DIR man documentation [PREFIX/man]
658 --program-prefix=PREFIX prepend PREFIX to installed program names
659 --program-suffix=SUFFIX append SUFFIX to installed program names
660 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
663 --x-includes=DIR X include files are in DIR
664 --x-libraries=DIR X library files are in DIR
667 --build=BUILD configure for building on BUILD [guessed]
668 --host=HOST build programs to run on HOST [BUILD]
672 if test -n "$ac_init_help"; then
677 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
678 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
681 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
682 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
684 --disable-echo display "compiling" commands
685 --enable-warnings test: turn on gcc compiler warnings
686 --with-dmalloc test: use Gray Watson's dmalloc library
687 --with-dbmalloc test: use Conor Cahill's dbmalloc library
688 --with-valgrind test: use valgrind
689 --disable-leaks test: free permanent memory, analyze leaks
690 --with-curses-dir=DIR directory in which (n)curses is installed
691 --with-5lib use SunOS sysv-libraries
692 --with-ncursesw use wide ncurses-libraries (installed)
693 --with-ncurses use ncurses-libraries (installed)
694 --with-pdcurses compile/link with pdcurses X11 library
695 --with-Xaw3d link with Xaw 3d library
696 --with-neXtaw link with neXT Athena library
697 --with-XawPlus link with Athena-Plus library
698 --with-pkg-config{=path} enable/disable use of pkg-config
699 --with-x use the X Window System
700 --with-ncurses-wrap-prefix naming-prefix for ncurses wrapped-variables
702 Some influential environment variables:
703 CC C compiler command
704 CFLAGS C compiler flags
705 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
706 nonstandard directory <lib dir>
707 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
708 headers in a nonstandard directory <include dir>
711 Use these variables to override the choices made by `configure' or to help
712 it to find libraries and programs with nonstandard names/locations.
717 if test "$ac_init_help" = "recursive"; then
718 # If there are subdirs, report their specific --help.
720 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
722 # A "../" for each directory in /$ac_subdir.
723 ac_dots=`echo $ac_subdir |
724 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
727 .) # No --srcdir option. We are building in place.
728 ac_sub_srcdir=$srcdir ;;
729 [\\/]* | ?:[\\/]* ) # Absolute path.
730 ac_sub_srcdir=$srcdir/$ac_subdir ;;
732 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
735 # Check for guested configure; otherwise get Cygnus style configure.
736 if test -f $ac_sub_srcdir/configure.gnu; then
738 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
739 elif test -f $ac_sub_srcdir/configure; then
741 $SHELL $ac_sub_srcdir/configure --help=recursive
742 elif test -f $ac_sub_srcdir/configure.ac ||
743 test -f $ac_sub_srcdir/configure.in; then
747 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
753 test -n "$ac_init_help" && exit 0
754 if $ac_init_version; then
757 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
758 Free Software Foundation, Inc.
759 This configure script is free software; the Free Software Foundation
760 gives unlimited permission to copy, distribute and modify it.
766 This file contains any messages produced by compilers while
767 running configure, to aid debugging if configure makes a mistake.
769 It was created by $as_me, which was
770 generated by GNU Autoconf 2.52.20101001. Invocation command line was
781 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
782 uname -m = `(uname -m) 2>/dev/null || echo unknown`
783 uname -r = `(uname -r) 2>/dev/null || echo unknown`
784 uname -s = `(uname -s) 2>/dev/null || echo unknown`
785 uname -v = `(uname -v) 2>/dev/null || echo unknown`
787 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
788 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
790 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
791 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
792 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
793 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
794 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
795 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
796 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
810 # Keep a trace of the command line.
811 # Strip out --no-create and --no-recursion so they do not pile up.
812 # Also quote any args containing shell meta-characters.
818 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
819 | --no-cr | --no-c) ;;
820 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
821 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
822 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
823 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
824 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
826 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
829 # Get rid of the leading space.
832 # When interrupted or exit'd, cleanup temporary files, and complete
833 # config.log. We remove comments because anyway the quotes in there
834 # would cause problems or look ugly.
836 # Save into config.log some information that might help in debugging.
838 echo "## ----------------- ##" >&5
839 echo "## Cache variables. ##" >&5
840 echo "## ----------------- ##" >&5
842 # The following way of writing the cache mishandles newlines in values,
845 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
848 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
849 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
853 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
857 sed "/^$/d" confdefs.h >conftest.log
858 if test -s conftest.log; then
860 echo "## ------------ ##" >&5
861 echo "## confdefs.h. ##" >&5
862 echo "## ------------ ##" >&5
867 test "$ac_signal" != 0 &&
868 echo "$as_me: caught signal $ac_signal" >&5
869 echo "$as_me: exit $exit_status" >&5
870 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
873 for ac_signal in 1 2 13 15; do
874 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
878 # confdefs.h avoids OS command line length limits that DEFS can exceed.
879 rm -rf conftest* confdefs.h
880 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
883 # Let the site file select an alternate cache file if it wants to.
884 # Prefer explicitly selected file to automatically selected ones.
885 if test -z "$CONFIG_SITE"; then
886 if test "x$prefix" != xNONE; then
887 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
889 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
892 for ac_site_file in $CONFIG_SITE; do
893 if test -r "$ac_site_file"; then
894 { echo "$as_me:894: loading site script $ac_site_file" >&5
895 echo "$as_me: loading site script $ac_site_file" >&6;}
896 cat "$ac_site_file" >&5
901 if test -r "$cache_file"; then
902 # Some versions of bash will fail to source /dev/null (special
903 # files actually), so we avoid doing that.
904 if test -f "$cache_file"; then
905 { echo "$as_me:905: loading cache $cache_file" >&5
906 echo "$as_me: loading cache $cache_file" >&6;}
908 [\\/]* | ?:[\\/]* ) . $cache_file;;
913 { echo "$as_me:913: creating cache $cache_file" >&5
914 echo "$as_me: creating cache $cache_file" >&6;}
918 # Check that the precious variables saved in the cache have kept the same
920 ac_cache_corrupted=false
921 for ac_var in `(set) 2>&1 |
922 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
923 eval ac_old_set=\$ac_cv_env_${ac_var}_set
924 eval ac_new_set=\$ac_env_${ac_var}_set
925 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
926 eval ac_new_val="\$ac_env_${ac_var}_value"
927 case $ac_old_set,$ac_new_set in
929 { echo "$as_me:929: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
930 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
931 ac_cache_corrupted=: ;;
933 { echo "$as_me:933: error: \`$ac_var' was not set in the previous run" >&5
934 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
935 ac_cache_corrupted=: ;;
938 if test "x$ac_old_val" != "x$ac_new_val"; then
939 { echo "$as_me:939: error: \`$ac_var' has changed since the previous run:" >&5
940 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
941 { echo "$as_me:941: former value: $ac_old_val" >&5
942 echo "$as_me: former value: $ac_old_val" >&2;}
943 { echo "$as_me:943: current value: $ac_new_val" >&5
944 echo "$as_me: current value: $ac_new_val" >&2;}
948 # Pass precious variables to config.status. It doesn't matter if
949 # we pass some twice (in addition to the command line arguments).
950 if test "$ac_new_set" = set; then
952 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
953 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
954 ac_configure_args="$ac_configure_args '$ac_arg'"
956 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
961 if $ac_cache_corrupted; then
962 { echo "$as_me:962: error: changes in the environment can compromise the build" >&5
963 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
964 { { echo "$as_me:964: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
965 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
966 { (exit 1); exit 1; }; }
970 ac_cpp='$CPP $CPPFLAGS'
971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
974 ac_main_return=return
976 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
977 *c*,-n*) ECHO_N= ECHO_C='
979 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
980 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
982 echo "#! $SHELL" >conftest.sh
983 echo "exit 0" >>conftest.sh
985 if { (echo "$as_me:985: PATH=\".;.\"; conftest.sh") >&5
986 (PATH=".;."; conftest.sh) 2>&5
988 echo "$as_me:988: \$? = $ac_status" >&5
989 (exit $ac_status); }; then
990 ac_path_separator=';'
994 PATH_SEPARATOR="$ac_path_separator"
997 ac_config_headers="$ac_config_headers ncurses_cfg.h:ncurses_tst.hin"
999 test -f config.guess || ( test -f ../config.guess && cp ../config.guess ./ )
1001 test -f config.sub || ( test -f ../config.sub && cp ../config.sub ./ )
1004 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1005 if test -f $ac_dir/install-sh; then
1007 ac_install_sh="$ac_aux_dir/install-sh -c"
1009 elif test -f $ac_dir/install.sh; then
1011 ac_install_sh="$ac_aux_dir/install.sh -c"
1013 elif test -f $ac_dir/shtool; then
1015 ac_install_sh="$ac_aux_dir/shtool install -c"
1019 if test -z "$ac_aux_dir"; then
1020 { { echo "$as_me:1020: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1021 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1022 { (exit 1); exit 1; }; }
1024 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1025 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1026 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1028 # Make sure we can run config.sub.
1029 $ac_config_sub sun4 >/dev/null 2>&1 ||
1030 { { echo "$as_me:1030: error: cannot run $ac_config_sub" >&5
1031 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1032 { (exit 1); exit 1; }; }
1034 echo "$as_me:1034: checking build system type" >&5
1035 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1036 if test "${ac_cv_build+set}" = set; then
1037 echo $ECHO_N "(cached) $ECHO_C" >&6
1039 ac_cv_build_alias=$build_alias
1040 test -z "$ac_cv_build_alias" &&
1041 ac_cv_build_alias=`$ac_config_guess`
1042 test -z "$ac_cv_build_alias" &&
1043 { { echo "$as_me:1043: error: cannot guess build type; you must specify one" >&5
1044 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1045 { (exit 1); exit 1; }; }
1046 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1047 { { echo "$as_me:1047: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1048 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1049 { (exit 1); exit 1; }; }
1052 echo "$as_me:1052: result: $ac_cv_build" >&5
1053 echo "${ECHO_T}$ac_cv_build" >&6
1055 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1056 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1057 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1059 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1060 echo "$as_me:1060: checking host system type" >&5
1061 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1062 if test "${ac_cv_host+set}" = set; then
1063 echo $ECHO_N "(cached) $ECHO_C" >&6
1065 ac_cv_host_alias=$host_alias
1066 test -z "$ac_cv_host_alias" &&
1067 ac_cv_host_alias=$ac_cv_build_alias
1068 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1069 { { echo "$as_me:1069: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1070 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1071 { (exit 1); exit 1; }; }
1074 echo "$as_me:1074: result: $ac_cv_host" >&5
1075 echo "${ECHO_T}$ac_cv_host" >&6
1077 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1078 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1079 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1081 system_name="$host_os"
1083 system_name="`(uname -s -r) 2>/dev/null`"
1084 if test -z "$system_name" ; then
1085 system_name="`(hostname) 2>/dev/null`"
1088 test -n "$system_name" && cat >>confdefs.h <<EOF
1089 #define SYSTEM_NAME "$system_name"
1092 if test "${cf_cv_system_name+set}" = set; then
1093 echo $ECHO_N "(cached) $ECHO_C" >&6
1095 cf_cv_system_name="$system_name"
1098 test -z "$system_name" && system_name="$cf_cv_system_name"
1099 test -n "$cf_cv_system_name" && echo "$as_me:1099: result: Configuring for $cf_cv_system_name" >&5
1100 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1102 if test ".$system_name" != ".$cf_cv_system_name" ; then
1103 echo "$as_me:1103: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1104 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1105 { { echo "$as_me:1105: error: \"Please remove config.cache and try again.\"" >&5
1106 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1107 { (exit 1); exit 1; }; }
1110 test "$program_prefix" != NONE &&
1111 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1112 # Use a double $ so make ignores it.
1113 test "$program_suffix" != NONE &&
1114 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1115 # Double any \ or $. echo might interpret backslashes.
1116 # By default was `s,x,x', remove it if useless.
1117 cat <<\_ACEOF >conftest.sed
1118 s/[\\$]/&&/g;s/;s,x,x,$//
1120 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1123 echo "$as_me:1123: checking whether ${MAKE-make} sets \${MAKE}" >&5
1124 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1125 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1126 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1127 echo $ECHO_N "(cached) $ECHO_C" >&6
1129 cat >conftest.make <<\EOF
1131 @echo 'ac_maketemp="${MAKE}"'
1133 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1134 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1135 if test -n "$ac_maketemp"; then
1136 eval ac_cv_prog_make_${ac_make}_set=yes
1138 eval ac_cv_prog_make_${ac_make}_set=no
1142 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1143 echo "$as_me:1143: result: yes" >&5
1144 echo "${ECHO_T}yes" >&6
1147 echo "$as_me:1147: result: no" >&5
1148 echo "${ECHO_T}no" >&6
1149 SET_MAKE="MAKE=${MAKE-make}"
1153 ac_cpp='$CPP $CPPFLAGS'
1154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1157 ac_main_return=return
1158 if test -n "$ac_tool_prefix"; then
1159 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1160 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1161 echo "$as_me:1161: checking for $ac_word" >&5
1162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1163 if test "${ac_cv_prog_CC+set}" = set; then
1164 echo $ECHO_N "(cached) $ECHO_C" >&6
1166 if test -n "$CC"; then
1167 ac_cv_prog_CC="$CC" # Let the user override the test.
1169 ac_save_IFS=$IFS; IFS=$ac_path_separator
1171 for ac_dir in $ac_dummy; do
1173 test -z "$ac_dir" && ac_dir=.
1174 $as_executable_p "$ac_dir/$ac_word" || continue
1175 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1176 echo "$as_me:1176: found $ac_dir/$ac_word" >&5
1183 if test -n "$CC"; then
1184 echo "$as_me:1184: result: $CC" >&5
1185 echo "${ECHO_T}$CC" >&6
1187 echo "$as_me:1187: result: no" >&5
1188 echo "${ECHO_T}no" >&6
1192 if test -z "$ac_cv_prog_CC"; then
1194 # Extract the first word of "gcc", so it can be a program name with args.
1195 set dummy gcc; ac_word=$2
1196 echo "$as_me:1196: checking for $ac_word" >&5
1197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1198 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1199 echo $ECHO_N "(cached) $ECHO_C" >&6
1201 if test -n "$ac_ct_CC"; then
1202 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1204 ac_save_IFS=$IFS; IFS=$ac_path_separator
1206 for ac_dir in $ac_dummy; do
1208 test -z "$ac_dir" && ac_dir=.
1209 $as_executable_p "$ac_dir/$ac_word" || continue
1210 ac_cv_prog_ac_ct_CC="gcc"
1211 echo "$as_me:1211: found $ac_dir/$ac_word" >&5
1217 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1218 if test -n "$ac_ct_CC"; then
1219 echo "$as_me:1219: result: $ac_ct_CC" >&5
1220 echo "${ECHO_T}$ac_ct_CC" >&6
1222 echo "$as_me:1222: result: no" >&5
1223 echo "${ECHO_T}no" >&6
1231 if test -z "$CC"; then
1232 if test -n "$ac_tool_prefix"; then
1233 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1234 set dummy ${ac_tool_prefix}cc; ac_word=$2
1235 echo "$as_me:1235: checking for $ac_word" >&5
1236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1237 if test "${ac_cv_prog_CC+set}" = set; then
1238 echo $ECHO_N "(cached) $ECHO_C" >&6
1240 if test -n "$CC"; then
1241 ac_cv_prog_CC="$CC" # Let the user override the test.
1243 ac_save_IFS=$IFS; IFS=$ac_path_separator
1245 for ac_dir in $ac_dummy; do
1247 test -z "$ac_dir" && ac_dir=.
1248 $as_executable_p "$ac_dir/$ac_word" || continue
1249 ac_cv_prog_CC="${ac_tool_prefix}cc"
1250 echo "$as_me:1250: found $ac_dir/$ac_word" >&5
1257 if test -n "$CC"; then
1258 echo "$as_me:1258: result: $CC" >&5
1259 echo "${ECHO_T}$CC" >&6
1261 echo "$as_me:1261: result: no" >&5
1262 echo "${ECHO_T}no" >&6
1266 if test -z "$ac_cv_prog_CC"; then
1268 # Extract the first word of "cc", so it can be a program name with args.
1269 set dummy cc; ac_word=$2
1270 echo "$as_me:1270: checking for $ac_word" >&5
1271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1272 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1273 echo $ECHO_N "(cached) $ECHO_C" >&6
1275 if test -n "$ac_ct_CC"; then
1276 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1278 ac_save_IFS=$IFS; IFS=$ac_path_separator
1280 for ac_dir in $ac_dummy; do
1282 test -z "$ac_dir" && ac_dir=.
1283 $as_executable_p "$ac_dir/$ac_word" || continue
1284 ac_cv_prog_ac_ct_CC="cc"
1285 echo "$as_me:1285: found $ac_dir/$ac_word" >&5
1291 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1292 if test -n "$ac_ct_CC"; then
1293 echo "$as_me:1293: result: $ac_ct_CC" >&5
1294 echo "${ECHO_T}$ac_ct_CC" >&6
1296 echo "$as_me:1296: result: no" >&5
1297 echo "${ECHO_T}no" >&6
1306 if test -z "$CC"; then
1307 # Extract the first word of "cc", so it can be a program name with args.
1308 set dummy cc; ac_word=$2
1309 echo "$as_me:1309: checking for $ac_word" >&5
1310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1311 if test "${ac_cv_prog_CC+set}" = set; then
1312 echo $ECHO_N "(cached) $ECHO_C" >&6
1314 if test -n "$CC"; then
1315 ac_cv_prog_CC="$CC" # Let the user override the test.
1318 ac_save_IFS=$IFS; IFS=$ac_path_separator
1320 for ac_dir in $ac_dummy; do
1322 test -z "$ac_dir" && ac_dir=.
1323 $as_executable_p "$ac_dir/$ac_word" || continue
1324 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1325 ac_prog_rejected=yes
1329 echo "$as_me:1329: found $ac_dir/$ac_word" >&5
1333 if test $ac_prog_rejected = yes; then
1334 # We found a bogon in the path, so make sure we never use it.
1335 set dummy $ac_cv_prog_CC
1337 if test $# != 0; then
1338 # We chose a different compiler from the bogus one.
1339 # However, it has the same basename, so the bogon will be chosen
1340 # first if we set CC to just the basename; use the full file name.
1342 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1350 if test -n "$CC"; then
1351 echo "$as_me:1351: result: $CC" >&5
1352 echo "${ECHO_T}$CC" >&6
1354 echo "$as_me:1354: result: no" >&5
1355 echo "${ECHO_T}no" >&6
1359 if test -z "$CC"; then
1360 if test -n "$ac_tool_prefix"; then
1363 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1364 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1365 echo "$as_me:1365: checking for $ac_word" >&5
1366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1367 if test "${ac_cv_prog_CC+set}" = set; then
1368 echo $ECHO_N "(cached) $ECHO_C" >&6
1370 if test -n "$CC"; then
1371 ac_cv_prog_CC="$CC" # Let the user override the test.
1373 ac_save_IFS=$IFS; IFS=$ac_path_separator
1375 for ac_dir in $ac_dummy; do
1377 test -z "$ac_dir" && ac_dir=.
1378 $as_executable_p "$ac_dir/$ac_word" || continue
1379 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1380 echo "$as_me:1380: found $ac_dir/$ac_word" >&5
1387 if test -n "$CC"; then
1388 echo "$as_me:1388: result: $CC" >&5
1389 echo "${ECHO_T}$CC" >&6
1391 echo "$as_me:1391: result: no" >&5
1392 echo "${ECHO_T}no" >&6
1395 test -n "$CC" && break
1398 if test -z "$CC"; then
1402 # Extract the first word of "$ac_prog", so it can be a program name with args.
1403 set dummy $ac_prog; ac_word=$2
1404 echo "$as_me:1404: checking for $ac_word" >&5
1405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1406 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1407 echo $ECHO_N "(cached) $ECHO_C" >&6
1409 if test -n "$ac_ct_CC"; then
1410 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1412 ac_save_IFS=$IFS; IFS=$ac_path_separator
1414 for ac_dir in $ac_dummy; do
1416 test -z "$ac_dir" && ac_dir=.
1417 $as_executable_p "$ac_dir/$ac_word" || continue
1418 ac_cv_prog_ac_ct_CC="$ac_prog"
1419 echo "$as_me:1419: found $ac_dir/$ac_word" >&5
1425 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1426 if test -n "$ac_ct_CC"; then
1427 echo "$as_me:1427: result: $ac_ct_CC" >&5
1428 echo "${ECHO_T}$ac_ct_CC" >&6
1430 echo "$as_me:1430: result: no" >&5
1431 echo "${ECHO_T}no" >&6
1434 test -n "$ac_ct_CC" && break
1442 test -z "$CC" && { { echo "$as_me:1442: error: no acceptable cc found in \$PATH" >&5
1443 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1444 { (exit 1); exit 1; }; }
1446 # Provide some information about the compiler.
1447 echo "$as_me:1447:" \
1448 "checking for C compiler version" >&5
1449 ac_compiler=`set X $ac_compile; echo $2`
1450 { (eval echo "$as_me:1450: \"$ac_compiler --version </dev/null >&5\"") >&5
1451 (eval $ac_compiler --version </dev/null >&5) 2>&5
1453 echo "$as_me:1453: \$? = $ac_status" >&5
1454 (exit $ac_status); }
1455 { (eval echo "$as_me:1455: \"$ac_compiler -v </dev/null >&5\"") >&5
1456 (eval $ac_compiler -v </dev/null >&5) 2>&5
1458 echo "$as_me:1458: \$? = $ac_status" >&5
1459 (exit $ac_status); }
1460 { (eval echo "$as_me:1460: \"$ac_compiler -V </dev/null >&5\"") >&5
1461 (eval $ac_compiler -V </dev/null >&5) 2>&5
1463 echo "$as_me:1463: \$? = $ac_status" >&5
1464 (exit $ac_status); }
1466 cat >conftest.$ac_ext <<_ACEOF
1467 #line 1467 "configure"
1468 #include "confdefs.h"
1478 ac_clean_files_save=$ac_clean_files
1479 ac_clean_files="$ac_clean_files a.out a.exe"
1480 # Try to create an executable without -o first, disregard a.out.
1481 # It will help us diagnose broken compilers, and finding out an intuition
1483 echo "$as_me:1483: checking for C compiler default output" >&5
1484 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1485 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1486 if { (eval echo "$as_me:1486: \"$ac_link_default\"") >&5
1487 (eval $ac_link_default) 2>&5
1489 echo "$as_me:1489: \$? = $ac_status" >&5
1490 (exit $ac_status); }; then
1491 # Find the output, starting from the most likely. This scheme is
1492 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1494 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1495 ls a.out conftest 2>/dev/null;
1496 ls a.* conftest.* 2>/dev/null`; do
1498 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1499 a.out ) # We found the default executable, but exeext='' is most
1502 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1503 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1510 echo "$as_me: failed program was:" >&5
1511 cat conftest.$ac_ext >&5
1512 { { echo "$as_me:1512: error: C compiler cannot create executables" >&5
1513 echo "$as_me: error: C compiler cannot create executables" >&2;}
1514 { (exit 77); exit 77; }; }
1517 ac_exeext=$ac_cv_exeext
1518 echo "$as_me:1518: result: $ac_file" >&5
1519 echo "${ECHO_T}$ac_file" >&6
1521 # Check the compiler produces executables we can run. If not, either
1522 # the compiler is broken, or we cross compile.
1523 echo "$as_me:1523: checking whether the C compiler works" >&5
1524 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1525 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1526 # If not cross compiling, check that we can run a simple program.
1527 if test "$cross_compiling" != yes; then
1528 if { ac_try='./$ac_file'
1529 { (eval echo "$as_me:1529: \"$ac_try\"") >&5
1532 echo "$as_me:1532: \$? = $ac_status" >&5
1533 (exit $ac_status); }; }; then
1536 if test "$cross_compiling" = maybe; then
1539 { { echo "$as_me:1539: error: cannot run C compiled programs.
1540 If you meant to cross compile, use \`--host'." >&5
1541 echo "$as_me: error: cannot run C compiled programs.
1542 If you meant to cross compile, use \`--host'." >&2;}
1543 { (exit 1); exit 1; }; }
1547 echo "$as_me:1547: result: yes" >&5
1548 echo "${ECHO_T}yes" >&6
1550 rm -f a.out a.exe conftest$ac_cv_exeext
1551 ac_clean_files=$ac_clean_files_save
1552 # Check the compiler produces executables we can run. If not, either
1553 # the compiler is broken, or we cross compile.
1554 echo "$as_me:1554: checking whether we are cross compiling" >&5
1555 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1556 echo "$as_me:1556: result: $cross_compiling" >&5
1557 echo "${ECHO_T}$cross_compiling" >&6
1559 echo "$as_me:1559: checking for executable suffix" >&5
1560 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1561 if { (eval echo "$as_me:1561: \"$ac_link\"") >&5
1562 (eval $ac_link) 2>&5
1564 echo "$as_me:1564: \$? = $ac_status" >&5
1565 (exit $ac_status); }; then
1566 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1567 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1568 # work properly (i.e., refer to `conftest.exe'), while it won't with
1570 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1572 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1573 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1580 { { echo "$as_me:1580: error: cannot compute EXEEXT: cannot compile and link" >&5
1581 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1582 { (exit 1); exit 1; }; }
1585 rm -f conftest$ac_cv_exeext
1586 echo "$as_me:1586: result: $ac_cv_exeext" >&5
1587 echo "${ECHO_T}$ac_cv_exeext" >&6
1589 rm -f conftest.$ac_ext
1590 EXEEXT=$ac_cv_exeext
1592 echo "$as_me:1592: checking for object suffix" >&5
1593 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1594 if test "${ac_cv_objext+set}" = set; then
1595 echo $ECHO_N "(cached) $ECHO_C" >&6
1597 cat >conftest.$ac_ext <<_ACEOF
1598 #line 1598 "configure"
1599 #include "confdefs.h"
1609 rm -f conftest.o conftest.obj
1610 if { (eval echo "$as_me:1610: \"$ac_compile\"") >&5
1611 (eval $ac_compile) 2>&5
1613 echo "$as_me:1613: \$? = $ac_status" >&5
1614 (exit $ac_status); }; then
1615 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1617 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1618 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1623 echo "$as_me: failed program was:" >&5
1624 cat conftest.$ac_ext >&5
1625 { { echo "$as_me:1625: error: cannot compute OBJEXT: cannot compile" >&5
1626 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1627 { (exit 1); exit 1; }; }
1630 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1632 echo "$as_me:1632: result: $ac_cv_objext" >&5
1633 echo "${ECHO_T}$ac_cv_objext" >&6
1634 OBJEXT=$ac_cv_objext
1636 echo "$as_me:1636: checking whether we are using the GNU C compiler" >&5
1637 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1638 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1641 cat >conftest.$ac_ext <<_ACEOF
1642 #line 1642 "configure"
1643 #include "confdefs.h"
1656 rm -f conftest.$ac_objext
1657 if { (eval echo "$as_me:1657: \"$ac_compile\"") >&5
1658 (eval $ac_compile) 2>&5
1660 echo "$as_me:1660: \$? = $ac_status" >&5
1661 (exit $ac_status); } &&
1662 { ac_try='test -s conftest.$ac_objext'
1663 { (eval echo "$as_me:1663: \"$ac_try\"") >&5
1666 echo "$as_me:1666: \$? = $ac_status" >&5
1667 (exit $ac_status); }; }; then
1670 echo "$as_me: failed program was:" >&5
1671 cat conftest.$ac_ext >&5
1674 rm -f conftest.$ac_objext conftest.$ac_ext
1675 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1678 echo "$as_me:1678: result: $ac_cv_c_compiler_gnu" >&5
1679 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1680 GCC=`test $ac_compiler_gnu = yes && echo yes`
1681 ac_test_CFLAGS=${CFLAGS+set}
1682 ac_save_CFLAGS=$CFLAGS
1684 echo "$as_me:1684: checking whether $CC accepts -g" >&5
1685 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1686 if test "${ac_cv_prog_cc_g+set}" = set; then
1687 echo $ECHO_N "(cached) $ECHO_C" >&6
1689 cat >conftest.$ac_ext <<_ACEOF
1690 #line 1690 "configure"
1691 #include "confdefs.h"
1701 rm -f conftest.$ac_objext
1702 if { (eval echo "$as_me:1702: \"$ac_compile\"") >&5
1703 (eval $ac_compile) 2>&5
1705 echo "$as_me:1705: \$? = $ac_status" >&5
1706 (exit $ac_status); } &&
1707 { ac_try='test -s conftest.$ac_objext'
1708 { (eval echo "$as_me:1708: \"$ac_try\"") >&5
1711 echo "$as_me:1711: \$? = $ac_status" >&5
1712 (exit $ac_status); }; }; then
1715 echo "$as_me: failed program was:" >&5
1716 cat conftest.$ac_ext >&5
1719 rm -f conftest.$ac_objext conftest.$ac_ext
1721 echo "$as_me:1721: result: $ac_cv_prog_cc_g" >&5
1722 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1723 if test "$ac_test_CFLAGS" = set; then
1724 CFLAGS=$ac_save_CFLAGS
1725 elif test $ac_cv_prog_cc_g = yes; then
1726 if test "$GCC" = yes; then
1732 if test "$GCC" = yes; then
1738 # Some people use a C++ compiler to compile C. Since we use `exit',
1739 # in C++ we need to declare it. In case someone uses the same compiler
1740 # for both compiling C and C++ we need to have the C++ compiler decide
1741 # the declaration of exit, since it's the most demanding environment.
1742 cat >conftest.$ac_ext <<_ACEOF
1747 rm -f conftest.$ac_objext
1748 if { (eval echo "$as_me:1748: \"$ac_compile\"") >&5
1749 (eval $ac_compile) 2>&5
1751 echo "$as_me:1751: \$? = $ac_status" >&5
1752 (exit $ac_status); } &&
1753 { ac_try='test -s conftest.$ac_objext'
1754 { (eval echo "$as_me:1754: \"$ac_try\"") >&5
1757 echo "$as_me:1757: \$? = $ac_status" >&5
1758 (exit $ac_status); }; }; then
1759 for ac_declaration in \
1761 '#include <stdlib.h>' \
1762 'extern "C" void std::exit (int) throw (); using std::exit;' \
1763 'extern "C" void std::exit (int); using std::exit;' \
1764 'extern "C" void exit (int) throw ();' \
1765 'extern "C" void exit (int);' \
1768 cat >conftest.$ac_ext <<_ACEOF
1769 #line 1769 "configure"
1770 #include "confdefs.h"
1781 rm -f conftest.$ac_objext
1782 if { (eval echo "$as_me:1782: \"$ac_compile\"") >&5
1783 (eval $ac_compile) 2>&5
1785 echo "$as_me:1785: \$? = $ac_status" >&5
1786 (exit $ac_status); } &&
1787 { ac_try='test -s conftest.$ac_objext'
1788 { (eval echo "$as_me:1788: \"$ac_try\"") >&5
1791 echo "$as_me:1791: \$? = $ac_status" >&5
1792 (exit $ac_status); }; }; then
1795 echo "$as_me: failed program was:" >&5
1796 cat conftest.$ac_ext >&5
1799 rm -f conftest.$ac_objext conftest.$ac_ext
1800 cat >conftest.$ac_ext <<_ACEOF
1801 #line 1801 "configure"
1802 #include "confdefs.h"
1812 rm -f conftest.$ac_objext
1813 if { (eval echo "$as_me:1813: \"$ac_compile\"") >&5
1814 (eval $ac_compile) 2>&5
1816 echo "$as_me:1816: \$? = $ac_status" >&5
1817 (exit $ac_status); } &&
1818 { ac_try='test -s conftest.$ac_objext'
1819 { (eval echo "$as_me:1819: \"$ac_try\"") >&5
1822 echo "$as_me:1822: \$? = $ac_status" >&5
1823 (exit $ac_status); }; }; then
1826 echo "$as_me: failed program was:" >&5
1827 cat conftest.$ac_ext >&5
1829 rm -f conftest.$ac_objext conftest.$ac_ext
1832 if test -n "$ac_declaration"; then
1833 echo '#ifdef __cplusplus' >>confdefs.h
1834 echo $ac_declaration >>confdefs.h
1835 echo '#endif' >>confdefs.h
1839 echo "$as_me: failed program was:" >&5
1840 cat conftest.$ac_ext >&5
1842 rm -f conftest.$ac_objext conftest.$ac_ext
1844 ac_cpp='$CPP $CPPFLAGS'
1845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1848 ac_main_return=return
1851 ac_cpp='$CPP $CPPFLAGS'
1852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1855 ac_main_return=return
1856 echo "$as_me:1856: checking how to run the C preprocessor" >&5
1857 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1858 # On Suns, sometimes $CPP names a directory.
1859 if test -n "$CPP" && test -d "$CPP"; then
1862 if test -z "$CPP"; then
1863 if test "${ac_cv_prog_CPP+set}" = set; then
1864 echo $ECHO_N "(cached) $ECHO_C" >&6
1866 # Double quotes because CPP needs to be expanded
1867 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1870 for ac_c_preproc_warn_flag in '' yes
1872 # Use a header file that comes with gcc, so configuring glibc
1873 # with a fresh cross-compiler works.
1874 # On the NeXT, cc -E runs the code through the compiler's parser,
1875 # not just through cpp. "Syntax error" is here to catch this case.
1876 cat >conftest.$ac_ext <<_ACEOF
1877 #line 1877 "configure"
1878 #include "confdefs.h"
1882 if { (eval echo "$as_me:1882: \"$ac_cpp conftest.$ac_ext\"") >&5
1883 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1885 egrep -v '^ *\+' conftest.er1 >conftest.err
1887 cat conftest.err >&5
1888 echo "$as_me:1888: \$? = $ac_status" >&5
1889 (exit $ac_status); } >/dev/null; then
1890 if test -s conftest.err; then
1891 ac_cpp_err=$ac_c_preproc_warn_flag
1898 if test -z "$ac_cpp_err"; then
1901 echo "$as_me: failed program was:" >&5
1902 cat conftest.$ac_ext >&5
1903 # Broken: fails on valid input.
1906 rm -f conftest.err conftest.$ac_ext
1908 # OK, works on sane cases. Now check whether non-existent headers
1909 # can be detected and how.
1910 cat >conftest.$ac_ext <<_ACEOF
1911 #line 1911 "configure"
1912 #include "confdefs.h"
1913 #include <ac_nonexistent.h>
1915 if { (eval echo "$as_me:1915: \"$ac_cpp conftest.$ac_ext\"") >&5
1916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1918 egrep -v '^ *\+' conftest.er1 >conftest.err
1920 cat conftest.err >&5
1921 echo "$as_me:1921: \$? = $ac_status" >&5
1922 (exit $ac_status); } >/dev/null; then
1923 if test -s conftest.err; then
1924 ac_cpp_err=$ac_c_preproc_warn_flag
1931 if test -z "$ac_cpp_err"; then
1932 # Broken: success on invalid input.
1935 echo "$as_me: failed program was:" >&5
1936 cat conftest.$ac_ext >&5
1937 # Passes both tests.
1941 rm -f conftest.err conftest.$ac_ext
1944 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1945 rm -f conftest.err conftest.$ac_ext
1946 if $ac_preproc_ok; then
1958 echo "$as_me:1958: result: $CPP" >&5
1959 echo "${ECHO_T}$CPP" >&6
1961 for ac_c_preproc_warn_flag in '' yes
1963 # Use a header file that comes with gcc, so configuring glibc
1964 # with a fresh cross-compiler works.
1965 # On the NeXT, cc -E runs the code through the compiler's parser,
1966 # not just through cpp. "Syntax error" is here to catch this case.
1967 cat >conftest.$ac_ext <<_ACEOF
1968 #line 1968 "configure"
1969 #include "confdefs.h"
1973 if { (eval echo "$as_me:1973: \"$ac_cpp conftest.$ac_ext\"") >&5
1974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1976 egrep -v '^ *\+' conftest.er1 >conftest.err
1978 cat conftest.err >&5
1979 echo "$as_me:1979: \$? = $ac_status" >&5
1980 (exit $ac_status); } >/dev/null; then
1981 if test -s conftest.err; then
1982 ac_cpp_err=$ac_c_preproc_warn_flag
1989 if test -z "$ac_cpp_err"; then
1992 echo "$as_me: failed program was:" >&5
1993 cat conftest.$ac_ext >&5
1994 # Broken: fails on valid input.
1997 rm -f conftest.err conftest.$ac_ext
1999 # OK, works on sane cases. Now check whether non-existent headers
2000 # can be detected and how.
2001 cat >conftest.$ac_ext <<_ACEOF
2002 #line 2002 "configure"
2003 #include "confdefs.h"
2004 #include <ac_nonexistent.h>
2006 if { (eval echo "$as_me:2006: \"$ac_cpp conftest.$ac_ext\"") >&5
2007 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2009 egrep -v '^ *\+' conftest.er1 >conftest.err
2011 cat conftest.err >&5
2012 echo "$as_me:2012: \$? = $ac_status" >&5
2013 (exit $ac_status); } >/dev/null; then
2014 if test -s conftest.err; then
2015 ac_cpp_err=$ac_c_preproc_warn_flag
2022 if test -z "$ac_cpp_err"; then
2023 # Broken: success on invalid input.
2026 echo "$as_me: failed program was:" >&5
2027 cat conftest.$ac_ext >&5
2028 # Passes both tests.
2032 rm -f conftest.err conftest.$ac_ext
2035 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2036 rm -f conftest.err conftest.$ac_ext
2037 if $ac_preproc_ok; then
2040 { { echo "$as_me:2040: error: C preprocessor \"$CPP\" fails sanity check" >&5
2041 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2042 { (exit 1); exit 1; }; }
2046 ac_cpp='$CPP $CPPFLAGS'
2047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2050 ac_main_return=return
2052 for ac_prog in mawk gawk nawk awk
2054 # Extract the first word of "$ac_prog", so it can be a program name with args.
2055 set dummy $ac_prog; ac_word=$2
2056 echo "$as_me:2056: checking for $ac_word" >&5
2057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2058 if test "${ac_cv_prog_AWK+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
2061 if test -n "$AWK"; then
2062 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2064 ac_save_IFS=$IFS; IFS=$ac_path_separator
2066 for ac_dir in $ac_dummy; do
2068 test -z "$ac_dir" && ac_dir=.
2069 $as_executable_p "$ac_dir/$ac_word" || continue
2070 ac_cv_prog_AWK="$ac_prog"
2071 echo "$as_me:2071: found $ac_dir/$ac_word" >&5
2078 if test -n "$AWK"; then
2079 echo "$as_me:2079: result: $AWK" >&5
2080 echo "${ECHO_T}$AWK" >&6
2082 echo "$as_me:2082: result: no" >&5
2083 echo "${ECHO_T}no" >&6
2086 test -n "$AWK" && break
2089 # Find a good install program. We prefer a C program (faster),
2090 # so one script is as good as another. But avoid the broken or
2091 # incompatible versions:
2092 # SysV /etc/install, /usr/sbin/install
2093 # SunOS /usr/etc/install
2094 # IRIX /sbin/install
2096 # AmigaOS /C/install, which installs bootblocks on floppy discs
2097 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2098 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2099 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2100 # ./install, which can be erroneously created by make from ./install.sh.
2101 echo "$as_me:2101: checking for a BSD compatible install" >&5
2102 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2103 if test -z "$INSTALL"; then
2104 if test "${ac_cv_path_install+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2107 ac_save_IFS=$IFS; IFS=$ac_path_separator
2108 for ac_dir in $PATH; do
2110 # Account for people who put trailing slashes in PATH elements.
2112 / | ./ | .// | /cC/* \
2113 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2116 # OSF1 and SCO ODT 3.0 have their own names for install.
2117 # Don't use installbsd from OSF since it installs stuff as root
2119 for ac_prog in ginstall scoinst install; do
2120 if $as_executable_p "$ac_dir/$ac_prog"; then
2121 if test $ac_prog = install &&
2122 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2123 # AIX install. It has an incompatible calling convention.
2125 elif test $ac_prog = install &&
2126 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2127 # program-specific install script used by HP pwplus--don't use.
2130 ac_cv_path_install="$ac_dir/$ac_prog -c"
2140 if test "${ac_cv_path_install+set}" = set; then
2141 INSTALL=$ac_cv_path_install
2143 # As a last resort, use the slow shell script. We don't cache a
2144 # path for INSTALL within a source directory, because that will
2145 # break other packages using the cache if that directory is
2146 # removed, or if the path is relative.
2147 INSTALL=$ac_install_sh
2150 echo "$as_me:2150: result: $INSTALL" >&5
2151 echo "${ECHO_T}$INSTALL" >&6
2153 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2154 # It thinks the first close brace ends the variable substitution.
2155 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2157 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2159 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2165 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
2166 test -z "$cf_dir" && cf_dir=.
2167 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
2171 for ac_prog in tdlint lint alint splint lclint
2173 # Extract the first word of "$ac_prog", so it can be a program name with args.
2174 set dummy $ac_prog; ac_word=$2
2175 echo "$as_me:2175: checking for $ac_word" >&5
2176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2177 if test "${ac_cv_prog_LINT+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2180 if test -n "$LINT"; then
2181 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2183 ac_save_IFS=$IFS; IFS=$ac_path_separator
2185 for ac_dir in $ac_dummy; do
2187 test -z "$ac_dir" && ac_dir=.
2188 $as_executable_p "$ac_dir/$ac_word" || continue
2189 ac_cv_prog_LINT="$ac_prog"
2190 echo "$as_me:2190: found $ac_dir/$ac_word" >&5
2196 LINT=$ac_cv_prog_LINT
2197 if test -n "$LINT"; then
2198 echo "$as_me:2198: result: $LINT" >&5
2199 echo "${ECHO_T}$LINT" >&6
2201 echo "$as_me:2201: result: no" >&5
2202 echo "${ECHO_T}no" >&6
2205 test -n "$LINT" && break
2208 echo "$as_me:2208: checking if filesystem supports mixed-case filenames" >&5
2209 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2210 if test "${cf_cv_mixedcase+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2214 if test "$cross_compiling" = yes ; then
2215 case $target_alias in #(vi
2216 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
2224 rm -f conftest CONFTEST
2226 if test -f CONFTEST ; then
2231 rm -f conftest CONFTEST
2235 echo "$as_me:2235: result: $cf_cv_mixedcase" >&5
2236 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2237 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
2238 #define MIXEDCASE_FILENAMES 1
2241 for ac_prog in exctags ctags
2243 # Extract the first word of "$ac_prog", so it can be a program name with args.
2244 set dummy $ac_prog; ac_word=$2
2245 echo "$as_me:2245: checking for $ac_word" >&5
2246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2247 if test "${ac_cv_prog_CTAGS+set}" = set; then
2248 echo $ECHO_N "(cached) $ECHO_C" >&6
2250 if test -n "$CTAGS"; then
2251 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2253 ac_save_IFS=$IFS; IFS=$ac_path_separator
2255 for ac_dir in $ac_dummy; do
2257 test -z "$ac_dir" && ac_dir=.
2258 $as_executable_p "$ac_dir/$ac_word" || continue
2259 ac_cv_prog_CTAGS="$ac_prog"
2260 echo "$as_me:2260: found $ac_dir/$ac_word" >&5
2266 CTAGS=$ac_cv_prog_CTAGS
2267 if test -n "$CTAGS"; then
2268 echo "$as_me:2268: result: $CTAGS" >&5
2269 echo "${ECHO_T}$CTAGS" >&6
2271 echo "$as_me:2271: result: no" >&5
2272 echo "${ECHO_T}no" >&6
2275 test -n "$CTAGS" && break
2278 for ac_prog in exetags etags
2280 # Extract the first word of "$ac_prog", so it can be a program name with args.
2281 set dummy $ac_prog; ac_word=$2
2282 echo "$as_me:2282: checking for $ac_word" >&5
2283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2284 if test "${ac_cv_prog_ETAGS+set}" = set; then
2285 echo $ECHO_N "(cached) $ECHO_C" >&6
2287 if test -n "$ETAGS"; then
2288 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2290 ac_save_IFS=$IFS; IFS=$ac_path_separator
2292 for ac_dir in $ac_dummy; do
2294 test -z "$ac_dir" && ac_dir=.
2295 $as_executable_p "$ac_dir/$ac_word" || continue
2296 ac_cv_prog_ETAGS="$ac_prog"
2297 echo "$as_me:2297: found $ac_dir/$ac_word" >&5
2303 ETAGS=$ac_cv_prog_ETAGS
2304 if test -n "$ETAGS"; then
2305 echo "$as_me:2305: result: $ETAGS" >&5
2306 echo "${ECHO_T}$ETAGS" >&6
2308 echo "$as_me:2308: result: no" >&5
2309 echo "${ECHO_T}no" >&6
2312 test -n "$ETAGS" && break
2315 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2316 set dummy ${CTAGS:-ctags}; ac_word=$2
2317 echo "$as_me:2317: checking for $ac_word" >&5
2318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2319 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2322 if test -n "$MAKE_LOWER_TAGS"; then
2323 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2325 ac_save_IFS=$IFS; IFS=$ac_path_separator
2327 for ac_dir in $ac_dummy; do
2329 test -z "$ac_dir" && ac_dir=.
2330 $as_executable_p "$ac_dir/$ac_word" || continue
2331 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2332 echo "$as_me:2332: found $ac_dir/$ac_word" >&5
2336 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2339 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2340 if test -n "$MAKE_LOWER_TAGS"; then
2341 echo "$as_me:2341: result: $MAKE_LOWER_TAGS" >&5
2342 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2344 echo "$as_me:2344: result: no" >&5
2345 echo "${ECHO_T}no" >&6
2348 if test "$cf_cv_mixedcase" = yes ; then
2349 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2350 set dummy ${ETAGS:-etags}; ac_word=$2
2351 echo "$as_me:2351: checking for $ac_word" >&5
2352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2353 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 if test -n "$MAKE_UPPER_TAGS"; then
2357 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2359 ac_save_IFS=$IFS; IFS=$ac_path_separator
2361 for ac_dir in $ac_dummy; do
2363 test -z "$ac_dir" && ac_dir=.
2364 $as_executable_p "$ac_dir/$ac_word" || continue
2365 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2366 echo "$as_me:2366: found $ac_dir/$ac_word" >&5
2370 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2373 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2374 if test -n "$MAKE_UPPER_TAGS"; then
2375 echo "$as_me:2375: result: $MAKE_UPPER_TAGS" >&5
2376 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2378 echo "$as_me:2378: result: no" >&5
2379 echo "${ECHO_T}no" >&6
2386 if test "$MAKE_UPPER_TAGS" = yes ; then
2392 if test "$MAKE_LOWER_TAGS" = yes ; then
2398 echo "$as_me:2398: checking if -lm needed for math functions" >&5
2399 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
2400 if test "${cf_cv_need_libm+set}" = set; then
2401 echo $ECHO_N "(cached) $ECHO_C" >&6
2404 cat >conftest.$ac_ext <<_ACEOF
2405 #line 2405 "configure"
2406 #include "confdefs.h"
2414 double x = rand(); printf("result = %g\n", sin(x))
2419 rm -f conftest.$ac_objext conftest$ac_exeext
2420 if { (eval echo "$as_me:2420: \"$ac_link\"") >&5
2421 (eval $ac_link) 2>&5
2423 echo "$as_me:2423: \$? = $ac_status" >&5
2424 (exit $ac_status); } &&
2425 { ac_try='test -s conftest$ac_exeext'
2426 { (eval echo "$as_me:2426: \"$ac_try\"") >&5
2429 echo "$as_me:2429: \$? = $ac_status" >&5
2430 (exit $ac_status); }; }; then
2433 echo "$as_me: failed program was:" >&5
2434 cat conftest.$ac_ext >&5
2437 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2439 echo "$as_me:2439: result: $cf_cv_need_libm" >&5
2440 echo "${ECHO_T}$cf_cv_need_libm" >&6
2441 if test "$cf_cv_need_libm" = yes
2447 CC_SHARED_OPTS=unknown
2448 CPPFLAGS="$CPPFLAGS"
2450 DFT_OBJ_SUBDIR=`pwd|sed -e's:.*/::'`
2451 DFT_UPR_MODEL="NORMAL"
2467 TINFO_ARGS='$(LIBS_CURSES)'
2468 cf_cv_abi_version=""
2469 cf_cv_rel_version=""
2474 echo "$as_me:2474: checking for ${CC:-cc} option to accept ANSI C" >&5
2475 echo $ECHO_N "checking for ${CC:-cc} option to accept ANSI C... $ECHO_C" >&6
2476 if test "${cf_cv_ansi_cc+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2481 cf_save_CFLAGS="$CFLAGS"
2482 cf_save_CPPFLAGS="$CPPFLAGS"
2483 # Don't try gcc -ansi; that turns off useful extensions and
2484 # breaks some systems' header files.
2485 # AIX -qlanglvl=ansi
2486 # Ultrix and OSF/1 -std1
2487 # HP-UX -Aa -D_HPUX_SOURCE
2489 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2490 for cf_arg in "-DCC_HAS_PROTOS" \
2495 "-Aa -D_HPUX_SOURCE" \
2502 cf_new_extra_cppflags=
2504 for cf_add_cflags in $cf_arg
2506 case $cf_fix_cppflags in
2508 case $cf_add_cflags in #(vi
2509 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2510 case $cf_add_cflags in
2512 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2514 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2515 && test -z "${cf_tst_cflags}" \
2516 && cf_fix_cppflags=yes
2518 if test $cf_fix_cppflags = yes ; then
2519 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2521 elif test "${cf_tst_cflags}" = "\"'" ; then
2522 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2528 *$cf_add_cflags) #(vi
2531 case $cf_add_cflags in #(vi
2533 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2535 CPPFLAGS=`echo "$CPPFLAGS" | \
2536 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2537 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2541 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2546 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2551 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2553 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2555 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2556 && test -z "${cf_tst_cflags}" \
2557 && cf_fix_cppflags=no
2562 if test -n "$cf_new_cflags" ; then
2564 CFLAGS="$CFLAGS $cf_new_cflags"
2567 if test -n "$cf_new_cppflags" ; then
2569 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2572 if test -n "$cf_new_extra_cppflags" ; then
2574 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2577 cat >conftest.$ac_ext <<_ACEOF
2578 #line 2578 "configure"
2579 #include "confdefs.h"
2581 #ifndef CC_HAS_PROTOS
2582 #if !defined(__STDC__) || (__STDC__ != 1)
2591 int test (int i, double x);
2592 struct s1 {int (*f) (int a);};
2593 struct s2 {int (*f) (double a);};
2598 rm -f conftest.$ac_objext
2599 if { (eval echo "$as_me:2599: \"$ac_compile\"") >&5
2600 (eval $ac_compile) 2>&5
2602 echo "$as_me:2602: \$? = $ac_status" >&5
2603 (exit $ac_status); } &&
2604 { ac_try='test -s conftest.$ac_objext'
2605 { (eval echo "$as_me:2605: \"$ac_try\"") >&5
2608 echo "$as_me:2608: \$? = $ac_status" >&5
2609 (exit $ac_status); }; }; then
2610 cf_cv_ansi_cc="$cf_arg"; break
2612 echo "$as_me: failed program was:" >&5
2613 cat conftest.$ac_ext >&5
2615 rm -f conftest.$ac_objext conftest.$ac_ext
2617 CFLAGS="$cf_save_CFLAGS"
2618 CPPFLAGS="$cf_save_CPPFLAGS"
2621 echo "$as_me:2621: result: $cf_cv_ansi_cc" >&5
2622 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2624 if test "$cf_cv_ansi_cc" != "no"; then
2625 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2630 cf_new_extra_cppflags=
2632 for cf_add_cflags in $cf_cv_ansi_cc
2634 case $cf_fix_cppflags in
2636 case $cf_add_cflags in #(vi
2637 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2638 case $cf_add_cflags in
2640 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2642 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2643 && test -z "${cf_tst_cflags}" \
2644 && cf_fix_cppflags=yes
2646 if test $cf_fix_cppflags = yes ; then
2647 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2649 elif test "${cf_tst_cflags}" = "\"'" ; then
2650 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2656 *$cf_add_cflags) #(vi
2659 case $cf_add_cflags in #(vi
2661 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2663 CPPFLAGS=`echo "$CPPFLAGS" | \
2664 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2665 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2669 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2674 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2679 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2681 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2683 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2684 && test -z "${cf_tst_cflags}" \
2685 && cf_fix_cppflags=no
2690 if test -n "$cf_new_cflags" ; then
2692 CFLAGS="$CFLAGS $cf_new_cflags"
2695 if test -n "$cf_new_cppflags" ; then
2697 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2700 if test -n "$cf_new_extra_cppflags" ; then
2702 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2706 cat >>confdefs.h <<\EOF
2707 #define CC_HAS_PROTOS 1
2713 if test "$cf_cv_ansi_cc" = "no"; then
2714 { { echo "$as_me:2714: error: Your compiler does not appear to recognize prototypes.
2715 You have the following choices:
2716 a. adjust your compiler options
2717 b. get an up-to-date compiler
2718 c. use a wrapper such as unproto" >&5
2719 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2720 You have the following choices:
2721 a. adjust your compiler options
2722 b. get an up-to-date compiler
2723 c. use a wrapper such as unproto" >&2;}
2724 { (exit 1); exit 1; }; }
2727 if test "$GCC" = yes
2729 cat > conftest.i <<EOF
2731 #define GCC_PRINTF 0
2736 #ifndef GCC_NORETURN
2737 #define GCC_NORETURN /* nothing */
2740 #define GCC_UNUSED /* nothing */
2743 if test "$GCC" = yes
2745 { echo "$as_me:2745: checking for $CC __attribute__ directives..." >&5
2746 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
2747 cat > conftest.$ac_ext <<EOF
2748 #line 2748 "${as_me:-configure}"
2749 #include "confdefs.h"
2750 #include "conftest.h"
2751 #include "conftest.i"
2753 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2755 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
2758 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2760 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
2762 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
2763 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
2764 extern void foo(void) GCC_NORETURN;
2765 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
2767 cf_printf_attribute=no
2768 cf_scanf_attribute=no
2769 for cf_attribute in scanf printf unused noreturn
2772 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
2774 cf_directive="__attribute__(($cf_attribute))"
2775 echo "checking for $CC $cf_directive" 1>&5
2777 case $cf_attribute in #(vi
2779 cf_printf_attribute=yes
2780 cat >conftest.h <<EOF
2781 #define GCC_$cf_ATTRIBUTE 1
2785 cf_scanf_attribute=yes
2786 cat >conftest.h <<EOF
2787 #define GCC_$cf_ATTRIBUTE 1
2791 cat >conftest.h <<EOF
2792 #define GCC_$cf_ATTRIBUTE $cf_directive
2797 if { (eval echo "$as_me:2797: \"$ac_compile\"") >&5
2798 (eval $ac_compile) 2>&5
2800 echo "$as_me:2800: \$? = $ac_status" >&5
2801 (exit $ac_status); }; then
2802 test -n "$verbose" && echo "$as_me:2802: result: ... $cf_attribute" >&5
2803 echo "${ECHO_T}... $cf_attribute" >&6
2804 cat conftest.h >>confdefs.h
2805 case $cf_attribute in #(vi
2807 if test "$cf_printf_attribute" = no ; then
2808 cat >>confdefs.h <<EOF
2809 #define GCC_PRINTFLIKE(fmt,var) /* nothing */
2812 cat >>confdefs.h <<EOF
2813 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2818 if test "$cf_scanf_attribute" = no ; then
2819 cat >>confdefs.h <<EOF
2820 #define GCC_SCANFLIKE(fmt,var) /* nothing */
2823 cat >>confdefs.h <<EOF
2824 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2832 fgrep define conftest.i >>confdefs.h
2838 cf_POSIX_C_SOURCE=199506L
2841 case $host_os in #(vi
2843 cf_xopen_source="-D_ALL_SOURCE"
2846 cf_xopen_source="-D_APPLE_C_SOURCE"
2849 cf_xopen_source="-D_DARWIN_C_SOURCE"
2851 freebsd*|dragonfly*) #(vi
2852 # 5.x headers associate
2853 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
2854 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
2855 cf_POSIX_C_SOURCE=200112L
2857 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2860 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
2863 cf_xopen_source="-D_HPUX_SOURCE"
2866 cf_xopen_source="-D_SGI_SOURCE"
2868 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
2870 echo "$as_me:2870: checking if we must define _GNU_SOURCE" >&5
2871 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
2872 if test "${cf_cv_gnu_source+set}" = set; then
2873 echo $ECHO_N "(cached) $ECHO_C" >&6
2876 cat >conftest.$ac_ext <<_ACEOF
2877 #line 2877 "configure"
2878 #include "confdefs.h"
2879 #include <sys/types.h>
2884 #ifndef _XOPEN_SOURCE
2891 rm -f conftest.$ac_objext
2892 if { (eval echo "$as_me:2892: \"$ac_compile\"") >&5
2893 (eval $ac_compile) 2>&5
2895 echo "$as_me:2895: \$? = $ac_status" >&5
2896 (exit $ac_status); } &&
2897 { ac_try='test -s conftest.$ac_objext'
2898 { (eval echo "$as_me:2898: \"$ac_try\"") >&5
2901 echo "$as_me:2901: \$? = $ac_status" >&5
2902 (exit $ac_status); }; }; then
2905 echo "$as_me: failed program was:" >&5
2906 cat conftest.$ac_ext >&5
2908 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2909 cat >conftest.$ac_ext <<_ACEOF
2910 #line 2910 "configure"
2911 #include "confdefs.h"
2912 #include <sys/types.h>
2917 #ifdef _XOPEN_SOURCE
2924 rm -f conftest.$ac_objext
2925 if { (eval echo "$as_me:2925: \"$ac_compile\"") >&5
2926 (eval $ac_compile) 2>&5
2928 echo "$as_me:2928: \$? = $ac_status" >&5
2929 (exit $ac_status); } &&
2930 { ac_try='test -s conftest.$ac_objext'
2931 { (eval echo "$as_me:2931: \"$ac_try\"") >&5
2934 echo "$as_me:2934: \$? = $ac_status" >&5
2935 (exit $ac_status); }; }; then
2938 echo "$as_me: failed program was:" >&5
2939 cat conftest.$ac_ext >&5
2940 cf_cv_gnu_source=yes
2942 rm -f conftest.$ac_objext conftest.$ac_ext
2946 rm -f conftest.$ac_objext conftest.$ac_ext
2949 echo "$as_me:2949: result: $cf_cv_gnu_source" >&5
2950 echo "${ECHO_T}$cf_cv_gnu_source" >&6
2951 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2955 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h>
2958 # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
2961 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
2964 cf_xopen_source="-D_OSF_SOURCE"
2967 cf_xopen_source="-D_QNX_SOURCE"
2970 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
2972 solaris2.1[0-9]) #(vi
2973 cf_xopen_source="-D__EXTENSIONS__ -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2975 solaris2.[1-9]) #(vi
2976 cf_xopen_source="-D__EXTENSIONS__"
2979 echo "$as_me:2979: checking if we should define _XOPEN_SOURCE" >&5
2980 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
2981 if test "${cf_cv_xopen_source+set}" = set; then
2982 echo $ECHO_N "(cached) $ECHO_C" >&6
2985 cat >conftest.$ac_ext <<_ACEOF
2986 #line 2986 "configure"
2987 #include "confdefs.h"
2988 #include <sys/types.h>
2993 #ifndef _XOPEN_SOURCE
3000 rm -f conftest.$ac_objext
3001 if { (eval echo "$as_me:3001: \"$ac_compile\"") >&5
3002 (eval $ac_compile) 2>&5
3004 echo "$as_me:3004: \$? = $ac_status" >&5
3005 (exit $ac_status); } &&
3006 { ac_try='test -s conftest.$ac_objext'
3007 { (eval echo "$as_me:3007: \"$ac_try\"") >&5
3010 echo "$as_me:3010: \$? = $ac_status" >&5
3011 (exit $ac_status); }; }; then
3012 cf_cv_xopen_source=no
3014 echo "$as_me: failed program was:" >&5
3015 cat conftest.$ac_ext >&5
3017 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3018 cat >conftest.$ac_ext <<_ACEOF
3019 #line 3019 "configure"
3020 #include "confdefs.h"
3021 #include <sys/types.h>
3026 #ifdef _XOPEN_SOURCE
3033 rm -f conftest.$ac_objext
3034 if { (eval echo "$as_me:3034: \"$ac_compile\"") >&5
3035 (eval $ac_compile) 2>&5
3037 echo "$as_me:3037: \$? = $ac_status" >&5
3038 (exit $ac_status); } &&
3039 { ac_try='test -s conftest.$ac_objext'
3040 { (eval echo "$as_me:3040: \"$ac_try\"") >&5
3043 echo "$as_me:3043: \$? = $ac_status" >&5
3044 (exit $ac_status); }; }; then
3045 cf_cv_xopen_source=no
3047 echo "$as_me: failed program was:" >&5
3048 cat conftest.$ac_ext >&5
3049 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3051 rm -f conftest.$ac_objext conftest.$ac_ext
3055 rm -f conftest.$ac_objext conftest.$ac_ext
3058 echo "$as_me:3058: result: $cf_cv_xopen_source" >&5
3059 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3060 if test "$cf_cv_xopen_source" != no ; then
3062 CFLAGS=`echo "$CFLAGS" | \
3063 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3064 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3066 CPPFLAGS=`echo "$CPPFLAGS" | \
3067 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3068 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3070 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3075 cf_new_extra_cppflags=
3077 for cf_add_cflags in $cf_temp_xopen_source
3079 case $cf_fix_cppflags in
3081 case $cf_add_cflags in #(vi
3082 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3083 case $cf_add_cflags in
3085 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3087 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3088 && test -z "${cf_tst_cflags}" \
3089 && cf_fix_cppflags=yes
3091 if test $cf_fix_cppflags = yes ; then
3092 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3094 elif test "${cf_tst_cflags}" = "\"'" ; then
3095 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3101 *$cf_add_cflags) #(vi
3104 case $cf_add_cflags in #(vi
3106 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3108 CPPFLAGS=`echo "$CPPFLAGS" | \
3109 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3110 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3114 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3119 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3124 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3126 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3128 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3129 && test -z "${cf_tst_cflags}" \
3130 && cf_fix_cppflags=no
3135 if test -n "$cf_new_cflags" ; then
3137 CFLAGS="$CFLAGS $cf_new_cflags"
3140 if test -n "$cf_new_cppflags" ; then
3142 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3145 if test -n "$cf_new_extra_cppflags" ; then
3147 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3152 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3154 cf_save_CFLAGS="$CFLAGS"
3155 cf_save_CPPFLAGS="$CPPFLAGS"
3157 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3158 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3159 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3161 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3162 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3163 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3165 echo "$as_me:3165: checking if we should define _POSIX_C_SOURCE" >&5
3166 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3167 if test "${cf_cv_posix_c_source+set}" = set; then
3168 echo $ECHO_N "(cached) $ECHO_C" >&6
3171 echo "${as_me:-configure}:3171: testing if the symbol is already defined go no further ..." 1>&5
3173 cat >conftest.$ac_ext <<_ACEOF
3174 #line 3174 "configure"
3175 #include "confdefs.h"
3176 #include <sys/types.h>
3181 #ifndef _POSIX_C_SOURCE
3188 rm -f conftest.$ac_objext
3189 if { (eval echo "$as_me:3189: \"$ac_compile\"") >&5
3190 (eval $ac_compile) 2>&5
3192 echo "$as_me:3192: \$? = $ac_status" >&5
3193 (exit $ac_status); } &&
3194 { ac_try='test -s conftest.$ac_objext'
3195 { (eval echo "$as_me:3195: \"$ac_try\"") >&5
3198 echo "$as_me:3198: \$? = $ac_status" >&5
3199 (exit $ac_status); }; }; then
3200 cf_cv_posix_c_source=no
3202 echo "$as_me: failed program was:" >&5
3203 cat conftest.$ac_ext >&5
3204 cf_want_posix_source=no
3205 case .$cf_POSIX_C_SOURCE in #(vi
3207 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3210 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3211 cf_want_posix_source=yes
3214 cf_want_posix_source=yes
3217 if test "$cf_want_posix_source" = yes ; then
3218 cat >conftest.$ac_ext <<_ACEOF
3219 #line 3219 "configure"
3220 #include "confdefs.h"
3221 #include <sys/types.h>
3226 #ifdef _POSIX_SOURCE
3233 rm -f conftest.$ac_objext
3234 if { (eval echo "$as_me:3234: \"$ac_compile\"") >&5
3235 (eval $ac_compile) 2>&5
3237 echo "$as_me:3237: \$? = $ac_status" >&5
3238 (exit $ac_status); } &&
3239 { ac_try='test -s conftest.$ac_objext'
3240 { (eval echo "$as_me:3240: \"$ac_try\"") >&5
3243 echo "$as_me:3243: \$? = $ac_status" >&5
3244 (exit $ac_status); }; }; then
3247 echo "$as_me: failed program was:" >&5
3248 cat conftest.$ac_ext >&5
3249 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3251 rm -f conftest.$ac_objext conftest.$ac_ext
3254 echo "${as_me:-configure}:3254: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3256 CFLAGS="$cf_trim_CFLAGS"
3257 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3259 echo "${as_me:-configure}:3259: testing if the second compile does not leave our definition intact error ..." 1>&5
3261 cat >conftest.$ac_ext <<_ACEOF
3262 #line 3262 "configure"
3263 #include "confdefs.h"
3264 #include <sys/types.h>
3269 #ifndef _POSIX_C_SOURCE
3276 rm -f conftest.$ac_objext
3277 if { (eval echo "$as_me:3277: \"$ac_compile\"") >&5
3278 (eval $ac_compile) 2>&5
3280 echo "$as_me:3280: \$? = $ac_status" >&5
3281 (exit $ac_status); } &&
3282 { ac_try='test -s conftest.$ac_objext'
3283 { (eval echo "$as_me:3283: \"$ac_try\"") >&5
3286 echo "$as_me:3286: \$? = $ac_status" >&5
3287 (exit $ac_status); }; }; then
3290 echo "$as_me: failed program was:" >&5
3291 cat conftest.$ac_ext >&5
3292 cf_cv_posix_c_source=no
3294 rm -f conftest.$ac_objext conftest.$ac_ext
3295 CFLAGS="$cf_save_CFLAGS"
3296 CPPFLAGS="$cf_save_CPPFLAGS"
3299 rm -f conftest.$ac_objext conftest.$ac_ext
3302 echo "$as_me:3302: result: $cf_cv_posix_c_source" >&5
3303 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3305 if test "$cf_cv_posix_c_source" != no ; then
3306 CFLAGS="$cf_trim_CFLAGS"
3307 CPPFLAGS="$cf_trim_CPPFLAGS"
3312 cf_new_extra_cppflags=
3314 for cf_add_cflags in $cf_cv_posix_c_source
3316 case $cf_fix_cppflags in
3318 case $cf_add_cflags in #(vi
3319 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3320 case $cf_add_cflags in
3322 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3324 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3325 && test -z "${cf_tst_cflags}" \
3326 && cf_fix_cppflags=yes
3328 if test $cf_fix_cppflags = yes ; then
3329 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3331 elif test "${cf_tst_cflags}" = "\"'" ; then
3332 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3338 *$cf_add_cflags) #(vi
3341 case $cf_add_cflags in #(vi
3343 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3345 CPPFLAGS=`echo "$CPPFLAGS" | \
3346 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3347 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3351 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3356 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3361 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3363 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3365 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3366 && test -z "${cf_tst_cflags}" \
3367 && cf_fix_cppflags=no
3372 if test -n "$cf_new_cflags" ; then
3374 CFLAGS="$CFLAGS $cf_new_cflags"
3377 if test -n "$cf_new_cppflags" ; then
3379 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3382 if test -n "$cf_new_extra_cppflags" ; then
3384 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3392 if test -n "$cf_xopen_source" ; then
3397 cf_new_extra_cppflags=
3399 for cf_add_cflags in $cf_xopen_source
3401 case $cf_fix_cppflags in
3403 case $cf_add_cflags in #(vi
3404 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3405 case $cf_add_cflags in
3407 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3409 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3410 && test -z "${cf_tst_cflags}" \
3411 && cf_fix_cppflags=yes
3413 if test $cf_fix_cppflags = yes ; then
3414 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3416 elif test "${cf_tst_cflags}" = "\"'" ; then
3417 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3423 *$cf_add_cflags) #(vi
3426 case $cf_add_cflags in #(vi
3428 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3430 CPPFLAGS=`echo "$CPPFLAGS" | \
3431 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3432 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3436 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3441 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3446 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3448 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3450 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3451 && test -z "${cf_tst_cflags}" \
3452 && cf_fix_cppflags=no
3457 if test -n "$cf_new_cflags" ; then
3459 CFLAGS="$CFLAGS $cf_new_cflags"
3462 if test -n "$cf_new_cppflags" ; then
3464 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3467 if test -n "$cf_new_extra_cppflags" ; then
3469 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3474 echo "$as_me:3474: checking for $CC option to accept ANSI C" >&5
3475 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3476 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3477 echo $ECHO_N "(cached) $ECHO_C" >&6
3479 ac_cv_prog_cc_stdc=no
3481 cat >conftest.$ac_ext <<_ACEOF
3482 #line 3482 "configure"
3483 #include "confdefs.h"
3486 #include <sys/types.h>
3487 #include <sys/stat.h>
3488 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3489 struct buf { int x; };
3490 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3491 static char *e (p, i)
3497 static char *f (char * (*g) (char **, int), char **p, ...)
3502 s = g (p, va_arg (v,int));
3506 int test (int i, double x);
3507 struct s1 {int (*f) (int a);};
3508 struct s2 {int (*f) (double a);};
3509 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3515 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3520 # Don't try gcc -ansi; that turns off useful extensions and
3521 # breaks some systems' header files.
3522 # AIX -qlanglvl=ansi
3523 # Ultrix and OSF/1 -std1
3524 # HP-UX 10.20 and later -Ae
3525 # HP-UX older versions -Aa -D_HPUX_SOURCE
3526 # SVR4 -Xc -D__EXTENSIONS__
3527 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3529 CC="$ac_save_CC $ac_arg"
3530 rm -f conftest.$ac_objext
3531 if { (eval echo "$as_me:3531: \"$ac_compile\"") >&5
3532 (eval $ac_compile) 2>&5
3534 echo "$as_me:3534: \$? = $ac_status" >&5
3535 (exit $ac_status); } &&
3536 { ac_try='test -s conftest.$ac_objext'
3537 { (eval echo "$as_me:3537: \"$ac_try\"") >&5
3540 echo "$as_me:3540: \$? = $ac_status" >&5
3541 (exit $ac_status); }; }; then
3542 ac_cv_prog_cc_stdc=$ac_arg
3545 echo "$as_me: failed program was:" >&5
3546 cat conftest.$ac_ext >&5
3548 rm -f conftest.$ac_objext
3550 rm -f conftest.$ac_ext conftest.$ac_objext
3555 case "x$ac_cv_prog_cc_stdc" in
3557 echo "$as_me:3557: result: none needed" >&5
3558 echo "${ECHO_T}none needed" >&6 ;;
3560 echo "$as_me:3560: result: $ac_cv_prog_cc_stdc" >&5
3561 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3562 CC="$CC $ac_cv_prog_cc_stdc" ;;
3565 echo "$as_me:3565: checking for an ANSI C-conforming const" >&5
3566 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3567 if test "${ac_cv_c_const+set}" = set; then
3568 echo $ECHO_N "(cached) $ECHO_C" >&6
3570 cat >conftest.$ac_ext <<_ACEOF
3571 #line 3571 "configure"
3572 #include "confdefs.h"
3577 /* FIXME: Include the comments suggested by Paul. */
3579 /* Ultrix mips cc rejects this. */
3580 typedef int charset[2];
3582 /* SunOS 4.1.1 cc rejects this. */
3583 char const *const *ccp;
3585 /* NEC SVR4.0.2 mips cc rejects this. */
3586 struct point {int x, y;};
3587 static struct point const zero = {0,0};
3588 /* AIX XL C 1.02.0.0 rejects this.
3589 It does not let you subtract one const X* pointer from another in
3590 an arm of an if-expression whose if-part is not a constant
3592 const char *g = "string";
3593 ccp = &g + (g ? g-g : 0);
3594 /* HPUX 7.0 cc rejects these. */
3597 ccp = (char const *const *) p;
3598 { /* SCO 3.2v4 cc rejects this. */
3600 char const *s = 0 ? (char *) 0 : (char const *) 0;
3604 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3606 const int *foo = &x[0];
3609 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3610 typedef const int *iptr;
3614 { /* AIX XL C 1.02.0.0 rejects this saying
3615 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3616 struct s { int j; const int *ap[3]; };
3617 struct s *b; b->j = 5;
3619 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3628 rm -f conftest.$ac_objext
3629 if { (eval echo "$as_me:3629: \"$ac_compile\"") >&5
3630 (eval $ac_compile) 2>&5
3632 echo "$as_me:3632: \$? = $ac_status" >&5
3633 (exit $ac_status); } &&
3634 { ac_try='test -s conftest.$ac_objext'
3635 { (eval echo "$as_me:3635: \"$ac_try\"") >&5
3638 echo "$as_me:3638: \$? = $ac_status" >&5
3639 (exit $ac_status); }; }; then
3642 echo "$as_me: failed program was:" >&5
3643 cat conftest.$ac_ext >&5
3646 rm -f conftest.$ac_objext conftest.$ac_ext
3648 echo "$as_me:3648: result: $ac_cv_c_const" >&5
3649 echo "${ECHO_T}$ac_cv_c_const" >&6
3650 if test $ac_cv_c_const = no; then
3652 cat >>confdefs.h <<\EOF
3658 echo "$as_me:3658: checking for signal global datatype" >&5
3659 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
3660 if test "${cf_cv_sig_atomic_t+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3665 "volatile sig_atomic_t" \
3669 cat >conftest.$ac_ext <<_ACEOF
3670 #line 3670 "configure"
3671 #include "confdefs.h"
3673 #include <sys/types.h>
3679 static void handler(int sig)
3686 signal(SIGINT, handler);
3692 rm -f conftest.$ac_objext
3693 if { (eval echo "$as_me:3693: \"$ac_compile\"") >&5
3694 (eval $ac_compile) 2>&5
3696 echo "$as_me:3696: \$? = $ac_status" >&5
3697 (exit $ac_status); } &&
3698 { ac_try='test -s conftest.$ac_objext'
3699 { (eval echo "$as_me:3699: \"$ac_try\"") >&5
3702 echo "$as_me:3702: \$? = $ac_status" >&5
3703 (exit $ac_status); }; }; then
3704 cf_cv_sig_atomic_t=$cf_type
3706 echo "$as_me: failed program was:" >&5
3707 cat conftest.$ac_ext >&5
3708 cf_cv_sig_atomic_t=no
3710 rm -f conftest.$ac_objext conftest.$ac_ext
3711 test "$cf_cv_sig_atomic_t" != no && break
3716 echo "$as_me:3716: result: $cf_cv_sig_atomic_t" >&5
3717 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
3718 test "$cf_cv_sig_atomic_t" != no && cat >>confdefs.h <<EOF
3719 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
3722 echo "$as_me:3722: checking if you want to see long compiling messages" >&5
3723 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
3725 # Check whether --enable-echo or --disable-echo was given.
3726 if test "${enable_echo+set}" = set; then
3727 enableval="$enable_echo"
3728 test "$enableval" != no && enableval=yes
3729 if test "$enableval" != "yes" ; then
3732 ECHO_LD='@echo linking $@;'
3733 RULE_CC='@echo compiling $<'
3734 SHOW_CC='@echo compiling $@'
3756 echo "$as_me:3756: result: $enableval" >&5
3757 echo "${ECHO_T}$enableval" >&6
3760 if test "$GCC" = yes ; then
3761 echo "$as_me:3761: checking version of $CC" >&5
3762 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
3763 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3764 test -z "$GCC_VERSION" && GCC_VERSION=unknown
3765 echo "$as_me:3765: result: $GCC_VERSION" >&5
3766 echo "${ECHO_T}$GCC_VERSION" >&6
3769 if ( test "$GCC" = yes || test "$GXX" = yes )
3771 echo "$as_me:3771: checking if you want to turn on gcc warnings" >&5
3772 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
3774 # Check whether --enable-warnings or --disable-warnings was given.
3775 if test "${enable_warnings+set}" = set; then
3776 enableval="$enable_warnings"
3777 test "$enableval" != yes && enableval=no
3778 if test "$enableval" != "no" ; then
3788 echo "$as_me:3788: result: $with_warnings" >&5
3789 echo "${ECHO_T}$with_warnings" >&6
3790 if test "$with_warnings" = "yes"
3793 if test "$GCC" = yes
3795 cat > conftest.i <<EOF
3797 #define GCC_PRINTF 0
3802 #ifndef GCC_NORETURN
3803 #define GCC_NORETURN /* nothing */
3806 #define GCC_UNUSED /* nothing */
3809 if test "$GCC" = yes
3811 { echo "$as_me:3811: checking for $CC __attribute__ directives..." >&5
3812 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
3813 cat > conftest.$ac_ext <<EOF
3814 #line 3814 "${as_me:-configure}"
3815 #include "confdefs.h"
3816 #include "conftest.h"
3817 #include "conftest.i"
3819 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
3821 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
3824 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
3826 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
3828 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
3829 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
3830 extern void foo(void) GCC_NORETURN;
3831 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
3833 cf_printf_attribute=no
3834 cf_scanf_attribute=no
3835 for cf_attribute in scanf printf unused noreturn
3838 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3840 cf_directive="__attribute__(($cf_attribute))"
3841 echo "checking for $CC $cf_directive" 1>&5
3843 case $cf_attribute in #(vi
3845 cf_printf_attribute=yes
3846 cat >conftest.h <<EOF
3847 #define GCC_$cf_ATTRIBUTE 1
3851 cf_scanf_attribute=yes
3852 cat >conftest.h <<EOF
3853 #define GCC_$cf_ATTRIBUTE 1
3857 cat >conftest.h <<EOF
3858 #define GCC_$cf_ATTRIBUTE $cf_directive
3863 if { (eval echo "$as_me:3863: \"$ac_compile\"") >&5
3864 (eval $ac_compile) 2>&5
3866 echo "$as_me:3866: \$? = $ac_status" >&5
3867 (exit $ac_status); }; then
3868 test -n "$verbose" && echo "$as_me:3868: result: ... $cf_attribute" >&5
3869 echo "${ECHO_T}... $cf_attribute" >&6
3870 cat conftest.h >>confdefs.h
3871 case $cf_attribute in #(vi
3873 if test "$cf_printf_attribute" = no ; then
3874 cat >>confdefs.h <<EOF
3875 #define GCC_PRINTFLIKE(fmt,var) /* nothing */
3878 cat >>confdefs.h <<EOF
3879 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
3884 if test "$cf_scanf_attribute" = no ; then
3885 cat >>confdefs.h <<EOF
3886 #define GCC_SCANFLIKE(fmt,var) /* nothing */
3889 cat >>confdefs.h <<EOF
3890 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
3898 fgrep define conftest.i >>confdefs.h
3905 if test "$GCC" = yes ; then
3908 echo "$as_me:3908: checking if this is really Intel C compiler" >&5
3909 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
3910 cf_save_CFLAGS="$CFLAGS"
3911 CFLAGS="$CFLAGS -no-gcc"
3912 cat >conftest.$ac_ext <<_ACEOF
3913 #line 3913 "configure"
3914 #include "confdefs.h"
3920 #ifdef __INTEL_COMPILER
3929 rm -f conftest.$ac_objext
3930 if { (eval echo "$as_me:3930: \"$ac_compile\"") >&5
3931 (eval $ac_compile) 2>&5
3933 echo "$as_me:3933: \$? = $ac_status" >&5
3934 (exit $ac_status); } &&
3935 { ac_try='test -s conftest.$ac_objext'
3936 { (eval echo "$as_me:3936: \"$ac_try\"") >&5
3939 echo "$as_me:3939: \$? = $ac_status" >&5
3940 (exit $ac_status); }; }; then
3942 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
3945 echo "$as_me: failed program was:" >&5
3946 cat conftest.$ac_ext >&5
3948 rm -f conftest.$ac_objext conftest.$ac_ext
3949 CFLAGS="$cf_save_CFLAGS"
3950 echo "$as_me:3950: result: $INTEL_COMPILER" >&5
3951 echo "${ECHO_T}$INTEL_COMPILER" >&6
3956 cat > conftest.$ac_ext <<EOF
3957 #line 3957 "${as_me:-configure}"
3958 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
3961 if test "$INTEL_COMPILER" = yes
3963 # The "-wdXXX" options suppress warnings:
3964 # remark #1419: external declaration in primary source file
3965 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
3966 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
3967 # remark #193: zero used for undefined preprocessing identifier
3968 # remark #593: variable "curs_sb_left_arrow" was set but never used
3969 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
3970 # remark #869: parameter "tw" was never referenced
3971 # remark #981: operands are evaluated in unspecified order
3972 # warning #279: controlling expression is constant
3974 { echo "$as_me:3974: checking for $CC warning options..." >&5
3975 echo "$as_me: checking for $CC warning options..." >&6;}
3976 cf_save_CFLAGS="$CFLAGS"
3977 EXTRA_CFLAGS="-Wall"
3989 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
3990 if { (eval echo "$as_me:3990: \"$ac_compile\"") >&5
3991 (eval $ac_compile) 2>&5
3993 echo "$as_me:3993: \$? = $ac_status" >&5
3994 (exit $ac_status); }; then
3995 test -n "$verbose" && echo "$as_me:3995: result: ... -$cf_opt" >&5
3996 echo "${ECHO_T}... -$cf_opt" >&6
3997 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
4000 CFLAGS="$cf_save_CFLAGS"
4002 elif test "$GCC" = yes
4004 { echo "$as_me:4004: checking for $CC warning options..." >&5
4005 echo "$as_me: checking for $CC warning options..." >&6;}
4006 cf_save_CFLAGS="$CFLAGS"
4009 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
4010 for cf_opt in W Wall \
4011 Wbad-function-cast \
4015 Wmissing-declarations \
4016 Wmissing-prototypes \
4020 Wstrict-prototypes \
4021 Wundef $cf_warn_CONST
4023 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
4024 if { (eval echo "$as_me:4024: \"$ac_compile\"") >&5
4025 (eval $ac_compile) 2>&5
4027 echo "$as_me:4027: \$? = $ac_status" >&5
4028 (exit $ac_status); }; then
4029 test -n "$verbose" && echo "$as_me:4029: result: ... -$cf_opt" >&5
4030 echo "${ECHO_T}... -$cf_opt" >&6
4031 case $cf_opt in #(vi
4033 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
4036 case $GCC_VERSION in
4038 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
4040 echo "${as_me:-configure}:4040: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
4046 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
4049 CFLAGS="$cf_save_CFLAGS"
4056 echo "$as_me:4056: checking if you want to use dmalloc for testing" >&5
4057 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
4059 # Check whether --with-dmalloc or --without-dmalloc was given.
4060 if test "${with_dmalloc+set}" = set; then
4061 withval="$with_dmalloc"
4062 cat >>confdefs.h <<\EOF
4063 #define USE_DMALLOC 1
4066 : ${with_cflags:=-g}
4067 : ${with_no_leaks:=yes}
4072 echo "$as_me:4072: result: ${with_dmalloc:-no}" >&5
4073 echo "${ECHO_T}${with_dmalloc:-no}" >&6
4075 case .$with_cflags in #(vi
4077 case .$CFLAGS in #(vi
4085 cf_new_extra_cppflags=
4087 for cf_add_cflags in -g
4089 case $cf_fix_cppflags in
4091 case $cf_add_cflags in #(vi
4092 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
4093 case $cf_add_cflags in
4095 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4097 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4098 && test -z "${cf_tst_cflags}" \
4099 && cf_fix_cppflags=yes
4101 if test $cf_fix_cppflags = yes ; then
4102 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4104 elif test "${cf_tst_cflags}" = "\"'" ; then
4105 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4111 *$cf_add_cflags) #(vi
4114 case $cf_add_cflags in #(vi
4116 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4118 CPPFLAGS=`echo "$CPPFLAGS" | \
4119 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4120 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4124 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4129 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4134 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4136 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4138 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4139 && test -z "${cf_tst_cflags}" \
4140 && cf_fix_cppflags=no
4145 if test -n "$cf_new_cflags" ; then
4147 CFLAGS="$CFLAGS $cf_new_cflags"
4150 if test -n "$cf_new_cppflags" ; then
4152 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4155 if test -n "$cf_new_extra_cppflags" ; then
4157 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4165 if test "$with_dmalloc" = yes ; then
4166 echo "$as_me:4166: checking for dmalloc.h" >&5
4167 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
4168 if test "${ac_cv_header_dmalloc_h+set}" = set; then
4169 echo $ECHO_N "(cached) $ECHO_C" >&6
4171 cat >conftest.$ac_ext <<_ACEOF
4172 #line 4172 "configure"
4173 #include "confdefs.h"
4174 #include <dmalloc.h>
4176 if { (eval echo "$as_me:4176: \"$ac_cpp conftest.$ac_ext\"") >&5
4177 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4179 egrep -v '^ *\+' conftest.er1 >conftest.err
4181 cat conftest.err >&5
4182 echo "$as_me:4182: \$? = $ac_status" >&5
4183 (exit $ac_status); } >/dev/null; then
4184 if test -s conftest.err; then
4185 ac_cpp_err=$ac_c_preproc_warn_flag
4192 if test -z "$ac_cpp_err"; then
4193 ac_cv_header_dmalloc_h=yes
4195 echo "$as_me: failed program was:" >&5
4196 cat conftest.$ac_ext >&5
4197 ac_cv_header_dmalloc_h=no
4199 rm -f conftest.err conftest.$ac_ext
4201 echo "$as_me:4201: result: $ac_cv_header_dmalloc_h" >&5
4202 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
4203 if test $ac_cv_header_dmalloc_h = yes; then
4205 echo "$as_me:4205: checking for dmalloc_debug in -ldmalloc" >&5
4206 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
4207 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
4208 echo $ECHO_N "(cached) $ECHO_C" >&6
4210 ac_check_lib_save_LIBS=$LIBS
4211 LIBS="-ldmalloc $LIBS"
4212 cat >conftest.$ac_ext <<_ACEOF
4213 #line 4213 "configure"
4214 #include "confdefs.h"
4216 /* Override any gcc2 internal prototype to avoid an error. */
4220 /* We use char because int might match the return type of a gcc2
4221 builtin and then its argument prototype would still apply. */
4222 char dmalloc_debug ();
4231 rm -f conftest.$ac_objext conftest$ac_exeext
4232 if { (eval echo "$as_me:4232: \"$ac_link\"") >&5
4233 (eval $ac_link) 2>&5
4235 echo "$as_me:4235: \$? = $ac_status" >&5
4236 (exit $ac_status); } &&
4237 { ac_try='test -s conftest$ac_exeext'
4238 { (eval echo "$as_me:4238: \"$ac_try\"") >&5
4241 echo "$as_me:4241: \$? = $ac_status" >&5
4242 (exit $ac_status); }; }; then
4243 ac_cv_lib_dmalloc_dmalloc_debug=yes
4245 echo "$as_me: failed program was:" >&5
4246 cat conftest.$ac_ext >&5
4247 ac_cv_lib_dmalloc_dmalloc_debug=no
4249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4250 LIBS=$ac_check_lib_save_LIBS
4252 echo "$as_me:4252: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
4253 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
4254 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
4255 cat >>confdefs.h <<EOF
4256 #define HAVE_LIBDMALLOC 1
4259 LIBS="-ldmalloc $LIBS"
4267 echo "$as_me:4267: checking if you want to use dbmalloc for testing" >&5
4268 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
4270 # Check whether --with-dbmalloc or --without-dbmalloc was given.
4271 if test "${with_dbmalloc+set}" = set; then
4272 withval="$with_dbmalloc"
4273 cat >>confdefs.h <<\EOF
4274 #define USE_DBMALLOC 1
4277 : ${with_cflags:=-g}
4278 : ${with_no_leaks:=yes}
4283 echo "$as_me:4283: result: ${with_dbmalloc:-no}" >&5
4284 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
4286 case .$with_cflags in #(vi
4288 case .$CFLAGS in #(vi
4296 cf_new_extra_cppflags=
4298 for cf_add_cflags in -g
4300 case $cf_fix_cppflags in
4302 case $cf_add_cflags in #(vi
4303 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
4304 case $cf_add_cflags in
4306 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4308 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4309 && test -z "${cf_tst_cflags}" \
4310 && cf_fix_cppflags=yes
4312 if test $cf_fix_cppflags = yes ; then
4313 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4315 elif test "${cf_tst_cflags}" = "\"'" ; then
4316 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4322 *$cf_add_cflags) #(vi
4325 case $cf_add_cflags in #(vi
4327 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4329 CPPFLAGS=`echo "$CPPFLAGS" | \
4330 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4331 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4335 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4340 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4345 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4347 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4349 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4350 && test -z "${cf_tst_cflags}" \
4351 && cf_fix_cppflags=no
4356 if test -n "$cf_new_cflags" ; then
4358 CFLAGS="$CFLAGS $cf_new_cflags"
4361 if test -n "$cf_new_cppflags" ; then
4363 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4366 if test -n "$cf_new_extra_cppflags" ; then
4368 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4376 if test "$with_dbmalloc" = yes ; then
4377 echo "$as_me:4377: checking for dbmalloc.h" >&5
4378 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
4379 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4382 cat >conftest.$ac_ext <<_ACEOF
4383 #line 4383 "configure"
4384 #include "confdefs.h"
4385 #include <dbmalloc.h>
4387 if { (eval echo "$as_me:4387: \"$ac_cpp conftest.$ac_ext\"") >&5
4388 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4390 egrep -v '^ *\+' conftest.er1 >conftest.err
4392 cat conftest.err >&5
4393 echo "$as_me:4393: \$? = $ac_status" >&5
4394 (exit $ac_status); } >/dev/null; then
4395 if test -s conftest.err; then
4396 ac_cpp_err=$ac_c_preproc_warn_flag
4403 if test -z "$ac_cpp_err"; then
4404 ac_cv_header_dbmalloc_h=yes
4406 echo "$as_me: failed program was:" >&5
4407 cat conftest.$ac_ext >&5
4408 ac_cv_header_dbmalloc_h=no
4410 rm -f conftest.err conftest.$ac_ext
4412 echo "$as_me:4412: result: $ac_cv_header_dbmalloc_h" >&5
4413 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
4414 if test $ac_cv_header_dbmalloc_h = yes; then
4416 echo "$as_me:4416: checking for debug_malloc in -ldbmalloc" >&5
4417 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
4418 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
4419 echo $ECHO_N "(cached) $ECHO_C" >&6
4421 ac_check_lib_save_LIBS=$LIBS
4422 LIBS="-ldbmalloc $LIBS"
4423 cat >conftest.$ac_ext <<_ACEOF
4424 #line 4424 "configure"
4425 #include "confdefs.h"
4427 /* Override any gcc2 internal prototype to avoid an error. */
4431 /* We use char because int might match the return type of a gcc2
4432 builtin and then its argument prototype would still apply. */
4433 char debug_malloc ();
4442 rm -f conftest.$ac_objext conftest$ac_exeext
4443 if { (eval echo "$as_me:4443: \"$ac_link\"") >&5
4444 (eval $ac_link) 2>&5
4446 echo "$as_me:4446: \$? = $ac_status" >&5
4447 (exit $ac_status); } &&
4448 { ac_try='test -s conftest$ac_exeext'
4449 { (eval echo "$as_me:4449: \"$ac_try\"") >&5
4452 echo "$as_me:4452: \$? = $ac_status" >&5
4453 (exit $ac_status); }; }; then
4454 ac_cv_lib_dbmalloc_debug_malloc=yes
4456 echo "$as_me: failed program was:" >&5
4457 cat conftest.$ac_ext >&5
4458 ac_cv_lib_dbmalloc_debug_malloc=no
4460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4461 LIBS=$ac_check_lib_save_LIBS
4463 echo "$as_me:4463: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
4464 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
4465 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
4466 cat >>confdefs.h <<EOF
4467 #define HAVE_LIBDBMALLOC 1
4470 LIBS="-ldbmalloc $LIBS"
4478 echo "$as_me:4478: checking if you want to use valgrind for testing" >&5
4479 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
4481 # Check whether --with-valgrind or --without-valgrind was given.
4482 if test "${with_valgrind+set}" = set; then
4483 withval="$with_valgrind"
4484 cat >>confdefs.h <<\EOF
4485 #define USE_VALGRIND 1
4488 : ${with_cflags:=-g}
4489 : ${with_no_leaks:=yes}
4494 echo "$as_me:4494: result: ${with_valgrind:-no}" >&5
4495 echo "${ECHO_T}${with_valgrind:-no}" >&6
4497 case .$with_cflags in #(vi
4499 case .$CFLAGS in #(vi
4507 cf_new_extra_cppflags=
4509 for cf_add_cflags in -g
4511 case $cf_fix_cppflags in
4513 case $cf_add_cflags in #(vi
4514 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
4515 case $cf_add_cflags in
4517 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4519 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4520 && test -z "${cf_tst_cflags}" \
4521 && cf_fix_cppflags=yes
4523 if test $cf_fix_cppflags = yes ; then
4524 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4526 elif test "${cf_tst_cflags}" = "\"'" ; then
4527 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4533 *$cf_add_cflags) #(vi
4536 case $cf_add_cflags in #(vi
4538 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4540 CPPFLAGS=`echo "$CPPFLAGS" | \
4541 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4542 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4546 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4551 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4556 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4558 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4560 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4561 && test -z "${cf_tst_cflags}" \
4562 && cf_fix_cppflags=no
4567 if test -n "$cf_new_cflags" ; then
4569 CFLAGS="$CFLAGS $cf_new_cflags"
4572 if test -n "$cf_new_cppflags" ; then
4574 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4577 if test -n "$cf_new_extra_cppflags" ; then
4579 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4587 echo "$as_me:4587: checking if you want to perform memory-leak testing" >&5
4588 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
4590 # Check whether --enable-leaks or --disable-leaks was given.
4591 if test "${enable_leaks+set}" = set; then
4592 enableval="$enable_leaks"
4593 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
4595 : ${with_no_leaks:=no}
4597 echo "$as_me:4597: result: $with_no_leaks" >&5
4598 echo "${ECHO_T}$with_no_leaks" >&6
4600 if test "$with_no_leaks" = yes ; then
4601 cat >>confdefs.h <<\EOF
4605 cat >>confdefs.h <<\EOF
4606 #define YY_NO_LEAKS 1
4611 echo "$as_me:4611: checking for specific curses-directory" >&5
4612 echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
4614 # Check whether --with-curses-dir or --without-curses-dir was given.
4615 if test "${with_curses_dir+set}" = set; then
4616 withval="$with_curses_dir"
4617 cf_cv_curses_dir=$withval
4621 echo "$as_me:4621: result: $cf_cv_curses_dir" >&5
4622 echo "${ECHO_T}$cf_cv_curses_dir" >&6
4624 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
4627 if test "x$prefix" != xNONE; then
4628 cf_path_syntax="$prefix"
4630 cf_path_syntax="$ac_default_prefix"
4633 case ".$withval" in #(vi
4634 .\$\(*\)*|.\'*\'*) #(vi
4638 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4641 eval withval="$withval"
4642 case ".$withval" in #(vi
4644 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
4649 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
4652 { { echo "$as_me:4652: error: expected a pathname, not \"$withval\"" >&5
4653 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
4654 { (exit 1); exit 1; }; }
4658 if test -d "$cf_cv_curses_dir"
4661 if test -n "$cf_cv_curses_dir/include" ; then
4662 for cf_add_incdir in $cf_cv_curses_dir/include
4664 while test $cf_add_incdir != /usr/include
4666 if test -d $cf_add_incdir
4669 if test -n "$CFLAGS$CPPFLAGS" ; then
4670 # a loop is needed to ensure we can add subdirs of existing dirs
4671 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4672 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4673 cf_have_incdir=yes; break
4678 if test "$cf_have_incdir" = no ; then
4679 if test "$cf_add_incdir" = /usr/local/include ; then
4680 if test "$GCC" = yes
4682 cf_save_CPPFLAGS=$CPPFLAGS
4683 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4684 cat >conftest.$ac_ext <<_ACEOF
4685 #line 4685 "configure"
4686 #include "confdefs.h"
4696 rm -f conftest.$ac_objext
4697 if { (eval echo "$as_me:4697: \"$ac_compile\"") >&5
4698 (eval $ac_compile) 2>&5
4700 echo "$as_me:4700: \$? = $ac_status" >&5