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 --x-includes=DIR X include files are in DIR
659 --x-libraries=DIR X library files are in DIR
662 --build=BUILD configure for building on BUILD [guessed]
663 --host=HOST build programs to run on HOST [BUILD]
667 if test -n "$ac_init_help"; then
672 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
673 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
676 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
677 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
679 --disable-echo display "compiling" commands
680 --enable-warnings test: turn on gcc compiler warnings
681 --with-curses-dir=DIR directory in which (n)curses is installed
682 --with-5lib use SunOS sysv-libraries
683 --with-ncursesw use wide ncurses-libraries (installed)
684 --with-ncurses use ncurses-libraries (installed)
685 --with-pdcurses compile/link with pdcurses X11 library
686 --with-Xaw3d link with Xaw 3d library
687 --with-neXtaw link with neXT Athena library
688 --with-XawPlus link with Athena-Plus library
689 --with-pkg-config{=path} enable/disable use of pkg-config
690 --with-x use the X Window System
691 --with-ncurses-wrap-prefix naming-prefix for ncurses wrapped-variables
693 Some influential environment variables:
694 CC C compiler command
695 CFLAGS C compiler flags
696 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
697 nonstandard directory <lib dir>
698 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
699 headers in a nonstandard directory <include dir>
702 Use these variables to override the choices made by `configure' or to help
703 it to find libraries and programs with nonstandard names/locations.
708 if test "$ac_init_help" = "recursive"; then
709 # If there are subdirs, report their specific --help.
711 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
713 # A "../" for each directory in /$ac_subdir.
714 ac_dots=`echo $ac_subdir |
715 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
718 .) # No --srcdir option. We are building in place.
719 ac_sub_srcdir=$srcdir ;;
720 [\\/]* | ?:[\\/]* ) # Absolute path.
721 ac_sub_srcdir=$srcdir/$ac_subdir ;;
723 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
726 # Check for guested configure; otherwise get Cygnus style configure.
727 if test -f $ac_sub_srcdir/configure.gnu; then
729 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
730 elif test -f $ac_sub_srcdir/configure; then
732 $SHELL $ac_sub_srcdir/configure --help=recursive
733 elif test -f $ac_sub_srcdir/configure.ac ||
734 test -f $ac_sub_srcdir/configure.in; then
738 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
744 test -n "$ac_init_help" && exit 0
745 if $ac_init_version; then
748 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
749 Free Software Foundation, Inc.
750 This configure script is free software; the Free Software Foundation
751 gives unlimited permission to copy, distribute and modify it.
757 This file contains any messages produced by compilers while
758 running configure, to aid debugging if configure makes a mistake.
760 It was created by $as_me, which was
761 generated by GNU Autoconf 2.52.20101001. Invocation command line was
772 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
773 uname -m = `(uname -m) 2>/dev/null || echo unknown`
774 uname -r = `(uname -r) 2>/dev/null || echo unknown`
775 uname -s = `(uname -s) 2>/dev/null || echo unknown`
776 uname -v = `(uname -v) 2>/dev/null || echo unknown`
778 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
779 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
781 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
782 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
783 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
784 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
785 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
786 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
787 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
801 # Keep a trace of the command line.
802 # Strip out --no-create and --no-recursion so they do not pile up.
803 # Also quote any args containing shell meta-characters.
809 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
810 | --no-cr | --no-c) ;;
811 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
812 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
813 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
814 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
815 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
817 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
820 # Get rid of the leading space.
823 # When interrupted or exit'd, cleanup temporary files, and complete
824 # config.log. We remove comments because anyway the quotes in there
825 # would cause problems or look ugly.
827 # Save into config.log some information that might help in debugging.
829 echo "## ----------------- ##" >&5
830 echo "## Cache variables. ##" >&5
831 echo "## ----------------- ##" >&5
833 # The following way of writing the cache mishandles newlines in values,
836 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
839 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
840 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
844 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
848 sed "/^$/d" confdefs.h >conftest.log
849 if test -s conftest.log; then
851 echo "## ------------ ##" >&5
852 echo "## confdefs.h. ##" >&5
853 echo "## ------------ ##" >&5
858 test "$ac_signal" != 0 &&
859 echo "$as_me: caught signal $ac_signal" >&5
860 echo "$as_me: exit $exit_status" >&5
861 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
864 for ac_signal in 1 2 13 15; do
865 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
869 # confdefs.h avoids OS command line length limits that DEFS can exceed.
870 rm -rf conftest* confdefs.h
871 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
874 # Let the site file select an alternate cache file if it wants to.
875 # Prefer explicitly selected file to automatically selected ones.
876 if test -z "$CONFIG_SITE"; then
877 if test "x$prefix" != xNONE; then
878 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
880 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
883 for ac_site_file in $CONFIG_SITE; do
884 if test -r "$ac_site_file"; then
885 { echo "$as_me:885: loading site script $ac_site_file" >&5
886 echo "$as_me: loading site script $ac_site_file" >&6;}
887 cat "$ac_site_file" >&5
892 if test -r "$cache_file"; then
893 # Some versions of bash will fail to source /dev/null (special
894 # files actually), so we avoid doing that.
895 if test -f "$cache_file"; then
896 { echo "$as_me:896: loading cache $cache_file" >&5
897 echo "$as_me: loading cache $cache_file" >&6;}
899 [\\/]* | ?:[\\/]* ) . $cache_file;;
904 { echo "$as_me:904: creating cache $cache_file" >&5
905 echo "$as_me: creating cache $cache_file" >&6;}
909 # Check that the precious variables saved in the cache have kept the same
911 ac_cache_corrupted=false
912 for ac_var in `(set) 2>&1 |
913 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
914 eval ac_old_set=\$ac_cv_env_${ac_var}_set
915 eval ac_new_set=\$ac_env_${ac_var}_set
916 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
917 eval ac_new_val="\$ac_env_${ac_var}_value"
918 case $ac_old_set,$ac_new_set in
920 { echo "$as_me:920: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
921 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
922 ac_cache_corrupted=: ;;
924 { echo "$as_me:924: error: \`$ac_var' was not set in the previous run" >&5
925 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
926 ac_cache_corrupted=: ;;
929 if test "x$ac_old_val" != "x$ac_new_val"; then
930 { echo "$as_me:930: error: \`$ac_var' has changed since the previous run:" >&5
931 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
932 { echo "$as_me:932: former value: $ac_old_val" >&5
933 echo "$as_me: former value: $ac_old_val" >&2;}
934 { echo "$as_me:934: current value: $ac_new_val" >&5
935 echo "$as_me: current value: $ac_new_val" >&2;}
939 # Pass precious variables to config.status. It doesn't matter if
940 # we pass some twice (in addition to the command line arguments).
941 if test "$ac_new_set" = set; then
943 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
944 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
945 ac_configure_args="$ac_configure_args '$ac_arg'"
947 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
952 if $ac_cache_corrupted; then
953 { echo "$as_me:953: error: changes in the environment can compromise the build" >&5
954 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
955 { { echo "$as_me:955: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
956 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
957 { (exit 1); exit 1; }; }
961 ac_cpp='$CPP $CPPFLAGS'
962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
965 ac_main_return=return
967 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
968 *c*,-n*) ECHO_N= ECHO_C='
970 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
971 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
973 echo "#! $SHELL" >conftest.sh
974 echo "exit 0" >>conftest.sh
976 if { (echo "$as_me:976: PATH=\".;.\"; conftest.sh") >&5
977 (PATH=".;."; conftest.sh) 2>&5
979 echo "$as_me:979: \$? = $ac_status" >&5
980 (exit $ac_status); }; then
981 ac_path_separator=';'
985 PATH_SEPARATOR="$ac_path_separator"
988 ac_config_headers="$ac_config_headers ncurses_cfg.h:ncurses_tst.hin"
990 test -f config.guess || ( test -f ../config.guess && cp ../config.guess ./ )
992 test -f config.sub || ( test -f ../config.sub && cp ../config.sub ./ )
995 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
996 if test -f $ac_dir/install-sh; then
998 ac_install_sh="$ac_aux_dir/install-sh -c"
1000 elif test -f $ac_dir/install.sh; then
1002 ac_install_sh="$ac_aux_dir/install.sh -c"
1004 elif test -f $ac_dir/shtool; then
1006 ac_install_sh="$ac_aux_dir/shtool install -c"
1010 if test -z "$ac_aux_dir"; then
1011 { { echo "$as_me:1011: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1012 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1013 { (exit 1); exit 1; }; }
1015 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1016 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1017 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1019 # Make sure we can run config.sub.
1020 $ac_config_sub sun4 >/dev/null 2>&1 ||
1021 { { echo "$as_me:1021: error: cannot run $ac_config_sub" >&5
1022 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1023 { (exit 1); exit 1; }; }
1025 echo "$as_me:1025: checking build system type" >&5
1026 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1027 if test "${ac_cv_build+set}" = set; then
1028 echo $ECHO_N "(cached) $ECHO_C" >&6
1030 ac_cv_build_alias=$build_alias
1031 test -z "$ac_cv_build_alias" &&
1032 ac_cv_build_alias=`$ac_config_guess`
1033 test -z "$ac_cv_build_alias" &&
1034 { { echo "$as_me:1034: error: cannot guess build type; you must specify one" >&5
1035 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1036 { (exit 1); exit 1; }; }
1037 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1038 { { echo "$as_me:1038: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1039 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1040 { (exit 1); exit 1; }; }
1043 echo "$as_me:1043: result: $ac_cv_build" >&5
1044 echo "${ECHO_T}$ac_cv_build" >&6
1046 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1047 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1048 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1050 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1051 echo "$as_me:1051: checking host system type" >&5
1052 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1053 if test "${ac_cv_host+set}" = set; then
1054 echo $ECHO_N "(cached) $ECHO_C" >&6
1056 ac_cv_host_alias=$host_alias
1057 test -z "$ac_cv_host_alias" &&
1058 ac_cv_host_alias=$ac_cv_build_alias
1059 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1060 { { echo "$as_me:1060: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1061 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1062 { (exit 1); exit 1; }; }
1065 echo "$as_me:1065: result: $ac_cv_host" >&5
1066 echo "${ECHO_T}$ac_cv_host" >&6
1068 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1069 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1070 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1072 system_name="$host_os"
1074 system_name="`(uname -s -r) 2>/dev/null`"
1075 if test -z "$system_name" ; then
1076 system_name="`(hostname) 2>/dev/null`"
1079 test -n "$system_name" && cat >>confdefs.h <<EOF
1080 #define SYSTEM_NAME "$system_name"
1083 if test "${cf_cv_system_name+set}" = set; then
1084 echo $ECHO_N "(cached) $ECHO_C" >&6
1086 cf_cv_system_name="$system_name"
1089 test -z "$system_name" && system_name="$cf_cv_system_name"
1090 test -n "$cf_cv_system_name" && echo "$as_me:1090: result: Configuring for $cf_cv_system_name" >&5
1091 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1093 if test ".$system_name" != ".$cf_cv_system_name" ; then
1094 echo "$as_me:1094: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1095 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1096 { { echo "$as_me:1096: error: \"Please remove config.cache and try again.\"" >&5
1097 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1098 { (exit 1); exit 1; }; }
1101 echo "$as_me:1101: checking whether ${MAKE-make} sets \${MAKE}" >&5
1102 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1103 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1104 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1105 echo $ECHO_N "(cached) $ECHO_C" >&6
1107 cat >conftest.make <<\EOF
1109 @echo 'ac_maketemp="${MAKE}"'
1111 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1112 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1113 if test -n "$ac_maketemp"; then
1114 eval ac_cv_prog_make_${ac_make}_set=yes
1116 eval ac_cv_prog_make_${ac_make}_set=no
1120 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1121 echo "$as_me:1121: result: yes" >&5
1122 echo "${ECHO_T}yes" >&6
1125 echo "$as_me:1125: result: no" >&5
1126 echo "${ECHO_T}no" >&6
1127 SET_MAKE="MAKE=${MAKE-make}"
1131 ac_cpp='$CPP $CPPFLAGS'
1132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1135 ac_main_return=return
1136 if test -n "$ac_tool_prefix"; then
1137 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1138 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1139 echo "$as_me:1139: checking for $ac_word" >&5
1140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1141 if test "${ac_cv_prog_CC+set}" = set; then
1142 echo $ECHO_N "(cached) $ECHO_C" >&6
1144 if test -n "$CC"; then
1145 ac_cv_prog_CC="$CC" # Let the user override the test.
1147 ac_save_IFS=$IFS; IFS=$ac_path_separator
1149 for ac_dir in $ac_dummy; do
1151 test -z "$ac_dir" && ac_dir=.
1152 $as_executable_p "$ac_dir/$ac_word" || continue
1153 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1154 echo "$as_me:1154: found $ac_dir/$ac_word" >&5
1161 if test -n "$CC"; then
1162 echo "$as_me:1162: result: $CC" >&5
1163 echo "${ECHO_T}$CC" >&6
1165 echo "$as_me:1165: result: no" >&5
1166 echo "${ECHO_T}no" >&6
1170 if test -z "$ac_cv_prog_CC"; then
1172 # Extract the first word of "gcc", so it can be a program name with args.
1173 set dummy gcc; ac_word=$2
1174 echo "$as_me:1174: checking for $ac_word" >&5
1175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1176 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1177 echo $ECHO_N "(cached) $ECHO_C" >&6
1179 if test -n "$ac_ct_CC"; then
1180 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1182 ac_save_IFS=$IFS; IFS=$ac_path_separator
1184 for ac_dir in $ac_dummy; do
1186 test -z "$ac_dir" && ac_dir=.
1187 $as_executable_p "$ac_dir/$ac_word" || continue
1188 ac_cv_prog_ac_ct_CC="gcc"
1189 echo "$as_me:1189: found $ac_dir/$ac_word" >&5
1195 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1196 if test -n "$ac_ct_CC"; then
1197 echo "$as_me:1197: result: $ac_ct_CC" >&5
1198 echo "${ECHO_T}$ac_ct_CC" >&6
1200 echo "$as_me:1200: result: no" >&5
1201 echo "${ECHO_T}no" >&6
1209 if test -z "$CC"; then
1210 if test -n "$ac_tool_prefix"; then
1211 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1212 set dummy ${ac_tool_prefix}cc; ac_word=$2
1213 echo "$as_me:1213: checking for $ac_word" >&5
1214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1215 if test "${ac_cv_prog_CC+set}" = set; then
1216 echo $ECHO_N "(cached) $ECHO_C" >&6
1218 if test -n "$CC"; then
1219 ac_cv_prog_CC="$CC" # Let the user override the test.
1221 ac_save_IFS=$IFS; IFS=$ac_path_separator
1223 for ac_dir in $ac_dummy; do
1225 test -z "$ac_dir" && ac_dir=.
1226 $as_executable_p "$ac_dir/$ac_word" || continue
1227 ac_cv_prog_CC="${ac_tool_prefix}cc"
1228 echo "$as_me:1228: found $ac_dir/$ac_word" >&5
1235 if test -n "$CC"; then
1236 echo "$as_me:1236: result: $CC" >&5
1237 echo "${ECHO_T}$CC" >&6
1239 echo "$as_me:1239: result: no" >&5
1240 echo "${ECHO_T}no" >&6
1244 if test -z "$ac_cv_prog_CC"; then
1246 # Extract the first word of "cc", so it can be a program name with args.
1247 set dummy cc; ac_word=$2
1248 echo "$as_me:1248: checking for $ac_word" >&5
1249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1250 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1251 echo $ECHO_N "(cached) $ECHO_C" >&6
1253 if test -n "$ac_ct_CC"; then
1254 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1256 ac_save_IFS=$IFS; IFS=$ac_path_separator
1258 for ac_dir in $ac_dummy; do
1260 test -z "$ac_dir" && ac_dir=.
1261 $as_executable_p "$ac_dir/$ac_word" || continue
1262 ac_cv_prog_ac_ct_CC="cc"
1263 echo "$as_me:1263: found $ac_dir/$ac_word" >&5
1269 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1270 if test -n "$ac_ct_CC"; then
1271 echo "$as_me:1271: result: $ac_ct_CC" >&5
1272 echo "${ECHO_T}$ac_ct_CC" >&6
1274 echo "$as_me:1274: result: no" >&5
1275 echo "${ECHO_T}no" >&6
1284 if test -z "$CC"; then
1285 # Extract the first word of "cc", so it can be a program name with args.
1286 set dummy cc; ac_word=$2
1287 echo "$as_me:1287: checking for $ac_word" >&5
1288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1289 if test "${ac_cv_prog_CC+set}" = set; then
1290 echo $ECHO_N "(cached) $ECHO_C" >&6
1292 if test -n "$CC"; then
1293 ac_cv_prog_CC="$CC" # Let the user override the test.
1296 ac_save_IFS=$IFS; IFS=$ac_path_separator
1298 for ac_dir in $ac_dummy; do
1300 test -z "$ac_dir" && ac_dir=.
1301 $as_executable_p "$ac_dir/$ac_word" || continue
1302 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1303 ac_prog_rejected=yes
1307 echo "$as_me:1307: found $ac_dir/$ac_word" >&5
1311 if test $ac_prog_rejected = yes; then
1312 # We found a bogon in the path, so make sure we never use it.
1313 set dummy $ac_cv_prog_CC
1315 if test $# != 0; then
1316 # We chose a different compiler from the bogus one.
1317 # However, it has the same basename, so the bogon will be chosen
1318 # first if we set CC to just the basename; use the full file name.
1320 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1328 if test -n "$CC"; then
1329 echo "$as_me:1329: result: $CC" >&5
1330 echo "${ECHO_T}$CC" >&6
1332 echo "$as_me:1332: result: no" >&5
1333 echo "${ECHO_T}no" >&6
1337 if test -z "$CC"; then
1338 if test -n "$ac_tool_prefix"; then
1341 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1342 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1343 echo "$as_me:1343: checking for $ac_word" >&5
1344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1345 if test "${ac_cv_prog_CC+set}" = set; then
1346 echo $ECHO_N "(cached) $ECHO_C" >&6
1348 if test -n "$CC"; then
1349 ac_cv_prog_CC="$CC" # Let the user override the test.
1351 ac_save_IFS=$IFS; IFS=$ac_path_separator
1353 for ac_dir in $ac_dummy; do
1355 test -z "$ac_dir" && ac_dir=.
1356 $as_executable_p "$ac_dir/$ac_word" || continue
1357 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1358 echo "$as_me:1358: found $ac_dir/$ac_word" >&5
1365 if test -n "$CC"; then
1366 echo "$as_me:1366: result: $CC" >&5
1367 echo "${ECHO_T}$CC" >&6
1369 echo "$as_me:1369: result: no" >&5
1370 echo "${ECHO_T}no" >&6
1373 test -n "$CC" && break
1376 if test -z "$CC"; then
1380 # Extract the first word of "$ac_prog", so it can be a program name with args.
1381 set dummy $ac_prog; ac_word=$2
1382 echo "$as_me:1382: checking for $ac_word" >&5
1383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1384 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1385 echo $ECHO_N "(cached) $ECHO_C" >&6
1387 if test -n "$ac_ct_CC"; then
1388 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1390 ac_save_IFS=$IFS; IFS=$ac_path_separator
1392 for ac_dir in $ac_dummy; do
1394 test -z "$ac_dir" && ac_dir=.
1395 $as_executable_p "$ac_dir/$ac_word" || continue
1396 ac_cv_prog_ac_ct_CC="$ac_prog"
1397 echo "$as_me:1397: found $ac_dir/$ac_word" >&5
1403 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1404 if test -n "$ac_ct_CC"; then
1405 echo "$as_me:1405: result: $ac_ct_CC" >&5
1406 echo "${ECHO_T}$ac_ct_CC" >&6
1408 echo "$as_me:1408: result: no" >&5
1409 echo "${ECHO_T}no" >&6
1412 test -n "$ac_ct_CC" && break
1420 test -z "$CC" && { { echo "$as_me:1420: error: no acceptable cc found in \$PATH" >&5
1421 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1422 { (exit 1); exit 1; }; }
1424 # Provide some information about the compiler.
1425 echo "$as_me:1425:" \
1426 "checking for C compiler version" >&5
1427 ac_compiler=`set X $ac_compile; echo $2`
1428 { (eval echo "$as_me:1428: \"$ac_compiler --version </dev/null >&5\"") >&5
1429 (eval $ac_compiler --version </dev/null >&5) 2>&5
1431 echo "$as_me:1431: \$? = $ac_status" >&5
1432 (exit $ac_status); }
1433 { (eval echo "$as_me:1433: \"$ac_compiler -v </dev/null >&5\"") >&5
1434 (eval $ac_compiler -v </dev/null >&5) 2>&5
1436 echo "$as_me:1436: \$? = $ac_status" >&5
1437 (exit $ac_status); }
1438 { (eval echo "$as_me:1438: \"$ac_compiler -V </dev/null >&5\"") >&5
1439 (eval $ac_compiler -V </dev/null >&5) 2>&5
1441 echo "$as_me:1441: \$? = $ac_status" >&5
1442 (exit $ac_status); }
1444 cat >conftest.$ac_ext <<_ACEOF
1445 #line 1445 "configure"
1446 #include "confdefs.h"
1456 ac_clean_files_save=$ac_clean_files
1457 ac_clean_files="$ac_clean_files a.out a.exe"
1458 # Try to create an executable without -o first, disregard a.out.
1459 # It will help us diagnose broken compilers, and finding out an intuition
1461 echo "$as_me:1461: checking for C compiler default output" >&5
1462 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1463 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1464 if { (eval echo "$as_me:1464: \"$ac_link_default\"") >&5
1465 (eval $ac_link_default) 2>&5
1467 echo "$as_me:1467: \$? = $ac_status" >&5
1468 (exit $ac_status); }; then
1469 # Find the output, starting from the most likely. This scheme is
1470 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1472 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1473 ls a.out conftest 2>/dev/null;
1474 ls a.* conftest.* 2>/dev/null`; do
1476 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1477 a.out ) # We found the default executable, but exeext='' is most
1480 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1481 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1488 echo "$as_me: failed program was:" >&5
1489 cat conftest.$ac_ext >&5
1490 { { echo "$as_me:1490: error: C compiler cannot create executables" >&5
1491 echo "$as_me: error: C compiler cannot create executables" >&2;}
1492 { (exit 77); exit 77; }; }
1495 ac_exeext=$ac_cv_exeext
1496 echo "$as_me:1496: result: $ac_file" >&5
1497 echo "${ECHO_T}$ac_file" >&6
1499 # Check the compiler produces executables we can run. If not, either
1500 # the compiler is broken, or we cross compile.
1501 echo "$as_me:1501: checking whether the C compiler works" >&5
1502 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1503 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1504 # If not cross compiling, check that we can run a simple program.
1505 if test "$cross_compiling" != yes; then
1506 if { ac_try='./$ac_file'
1507 { (eval echo "$as_me:1507: \"$ac_try\"") >&5
1510 echo "$as_me:1510: \$? = $ac_status" >&5
1511 (exit $ac_status); }; }; then
1514 if test "$cross_compiling" = maybe; then
1517 { { echo "$as_me:1517: error: cannot run C compiled programs.
1518 If you meant to cross compile, use \`--host'." >&5
1519 echo "$as_me: error: cannot run C compiled programs.
1520 If you meant to cross compile, use \`--host'." >&2;}
1521 { (exit 1); exit 1; }; }
1525 echo "$as_me:1525: result: yes" >&5
1526 echo "${ECHO_T}yes" >&6
1528 rm -f a.out a.exe conftest$ac_cv_exeext
1529 ac_clean_files=$ac_clean_files_save
1530 # Check the compiler produces executables we can run. If not, either
1531 # the compiler is broken, or we cross compile.
1532 echo "$as_me:1532: checking whether we are cross compiling" >&5
1533 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1534 echo "$as_me:1534: result: $cross_compiling" >&5
1535 echo "${ECHO_T}$cross_compiling" >&6
1537 echo "$as_me:1537: checking for executable suffix" >&5
1538 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1539 if { (eval echo "$as_me:1539: \"$ac_link\"") >&5
1540 (eval $ac_link) 2>&5
1542 echo "$as_me:1542: \$? = $ac_status" >&5
1543 (exit $ac_status); }; then
1544 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1545 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1546 # work properly (i.e., refer to `conftest.exe'), while it won't with
1548 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1550 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1551 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1558 { { echo "$as_me:1558: error: cannot compute EXEEXT: cannot compile and link" >&5
1559 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1560 { (exit 1); exit 1; }; }
1563 rm -f conftest$ac_cv_exeext
1564 echo "$as_me:1564: result: $ac_cv_exeext" >&5
1565 echo "${ECHO_T}$ac_cv_exeext" >&6
1567 rm -f conftest.$ac_ext
1568 EXEEXT=$ac_cv_exeext
1570 echo "$as_me:1570: checking for object suffix" >&5
1571 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1572 if test "${ac_cv_objext+set}" = set; then
1573 echo $ECHO_N "(cached) $ECHO_C" >&6
1575 cat >conftest.$ac_ext <<_ACEOF
1576 #line 1576 "configure"
1577 #include "confdefs.h"
1587 rm -f conftest.o conftest.obj
1588 if { (eval echo "$as_me:1588: \"$ac_compile\"") >&5
1589 (eval $ac_compile) 2>&5
1591 echo "$as_me:1591: \$? = $ac_status" >&5
1592 (exit $ac_status); }; then
1593 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1595 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1596 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1601 echo "$as_me: failed program was:" >&5
1602 cat conftest.$ac_ext >&5
1603 { { echo "$as_me:1603: error: cannot compute OBJEXT: cannot compile" >&5
1604 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1605 { (exit 1); exit 1; }; }
1608 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1610 echo "$as_me:1610: result: $ac_cv_objext" >&5
1611 echo "${ECHO_T}$ac_cv_objext" >&6
1612 OBJEXT=$ac_cv_objext
1614 echo "$as_me:1614: checking whether we are using the GNU C compiler" >&5
1615 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1616 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1617 echo $ECHO_N "(cached) $ECHO_C" >&6
1619 cat >conftest.$ac_ext <<_ACEOF
1620 #line 1620 "configure"
1621 #include "confdefs.h"
1634 rm -f conftest.$ac_objext
1635 if { (eval echo "$as_me:1635: \"$ac_compile\"") >&5
1636 (eval $ac_compile) 2>&5
1638 echo "$as_me:1638: \$? = $ac_status" >&5
1639 (exit $ac_status); } &&
1640 { ac_try='test -s conftest.$ac_objext'
1641 { (eval echo "$as_me:1641: \"$ac_try\"") >&5
1644 echo "$as_me:1644: \$? = $ac_status" >&5
1645 (exit $ac_status); }; }; then
1648 echo "$as_me: failed program was:" >&5
1649 cat conftest.$ac_ext >&5
1652 rm -f conftest.$ac_objext conftest.$ac_ext
1653 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1656 echo "$as_me:1656: result: $ac_cv_c_compiler_gnu" >&5
1657 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1658 GCC=`test $ac_compiler_gnu = yes && echo yes`
1659 ac_test_CFLAGS=${CFLAGS+set}
1660 ac_save_CFLAGS=$CFLAGS
1662 echo "$as_me:1662: checking whether $CC accepts -g" >&5
1663 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1664 if test "${ac_cv_prog_cc_g+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 cat >conftest.$ac_ext <<_ACEOF
1668 #line 1668 "configure"
1669 #include "confdefs.h"
1679 rm -f conftest.$ac_objext
1680 if { (eval echo "$as_me:1680: \"$ac_compile\"") >&5
1681 (eval $ac_compile) 2>&5
1683 echo "$as_me:1683: \$? = $ac_status" >&5
1684 (exit $ac_status); } &&
1685 { ac_try='test -s conftest.$ac_objext'
1686 { (eval echo "$as_me:1686: \"$ac_try\"") >&5
1689 echo "$as_me:1689: \$? = $ac_status" >&5
1690 (exit $ac_status); }; }; then
1693 echo "$as_me: failed program was:" >&5
1694 cat conftest.$ac_ext >&5
1697 rm -f conftest.$ac_objext conftest.$ac_ext
1699 echo "$as_me:1699: result: $ac_cv_prog_cc_g" >&5
1700 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1701 if test "$ac_test_CFLAGS" = set; then
1702 CFLAGS=$ac_save_CFLAGS
1703 elif test $ac_cv_prog_cc_g = yes; then
1704 if test "$GCC" = yes; then
1710 if test "$GCC" = yes; then
1716 # Some people use a C++ compiler to compile C. Since we use `exit',
1717 # in C++ we need to declare it. In case someone uses the same compiler
1718 # for both compiling C and C++ we need to have the C++ compiler decide
1719 # the declaration of exit, since it's the most demanding environment.
1720 cat >conftest.$ac_ext <<_ACEOF
1725 rm -f conftest.$ac_objext
1726 if { (eval echo "$as_me:1726: \"$ac_compile\"") >&5
1727 (eval $ac_compile) 2>&5
1729 echo "$as_me:1729: \$? = $ac_status" >&5
1730 (exit $ac_status); } &&
1731 { ac_try='test -s conftest.$ac_objext'
1732 { (eval echo "$as_me:1732: \"$ac_try\"") >&5
1735 echo "$as_me:1735: \$? = $ac_status" >&5
1736 (exit $ac_status); }; }; then
1737 for ac_declaration in \
1739 '#include <stdlib.h>' \
1740 'extern "C" void std::exit (int) throw (); using std::exit;' \
1741 'extern "C" void std::exit (int); using std::exit;' \
1742 'extern "C" void exit (int) throw ();' \
1743 'extern "C" void exit (int);' \
1746 cat >conftest.$ac_ext <<_ACEOF
1747 #line 1747 "configure"
1748 #include "confdefs.h"
1759 rm -f conftest.$ac_objext
1760 if { (eval echo "$as_me:1760: \"$ac_compile\"") >&5
1761 (eval $ac_compile) 2>&5
1763 echo "$as_me:1763: \$? = $ac_status" >&5
1764 (exit $ac_status); } &&
1765 { ac_try='test -s conftest.$ac_objext'
1766 { (eval echo "$as_me:1766: \"$ac_try\"") >&5
1769 echo "$as_me:1769: \$? = $ac_status" >&5
1770 (exit $ac_status); }; }; then
1773 echo "$as_me: failed program was:" >&5
1774 cat conftest.$ac_ext >&5
1777 rm -f conftest.$ac_objext conftest.$ac_ext
1778 cat >conftest.$ac_ext <<_ACEOF
1779 #line 1779 "configure"
1780 #include "confdefs.h"
1790 rm -f conftest.$ac_objext
1791 if { (eval echo "$as_me:1791: \"$ac_compile\"") >&5
1792 (eval $ac_compile) 2>&5
1794 echo "$as_me:1794: \$? = $ac_status" >&5
1795 (exit $ac_status); } &&
1796 { ac_try='test -s conftest.$ac_objext'
1797 { (eval echo "$as_me:1797: \"$ac_try\"") >&5
1800 echo "$as_me:1800: \$? = $ac_status" >&5
1801 (exit $ac_status); }; }; then
1804 echo "$as_me: failed program was:" >&5
1805 cat conftest.$ac_ext >&5
1807 rm -f conftest.$ac_objext conftest.$ac_ext
1810 if test -n "$ac_declaration"; then
1811 echo '#ifdef __cplusplus' >>confdefs.h
1812 echo $ac_declaration >>confdefs.h
1813 echo '#endif' >>confdefs.h
1817 echo "$as_me: failed program was:" >&5
1818 cat conftest.$ac_ext >&5
1820 rm -f conftest.$ac_objext conftest.$ac_ext
1822 ac_cpp='$CPP $CPPFLAGS'
1823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1826 ac_main_return=return
1829 ac_cpp='$CPP $CPPFLAGS'
1830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1833 ac_main_return=return
1834 echo "$as_me:1834: checking how to run the C preprocessor" >&5
1835 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1836 # On Suns, sometimes $CPP names a directory.
1837 if test -n "$CPP" && test -d "$CPP"; then
1840 if test -z "$CPP"; then
1841 if test "${ac_cv_prog_CPP+set}" = set; then
1842 echo $ECHO_N "(cached) $ECHO_C" >&6
1844 # Double quotes because CPP needs to be expanded
1845 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1848 for ac_c_preproc_warn_flag in '' yes
1850 # Use a header file that comes with gcc, so configuring glibc
1851 # with a fresh cross-compiler works.
1852 # On the NeXT, cc -E runs the code through the compiler's parser,
1853 # not just through cpp. "Syntax error" is here to catch this case.
1854 cat >conftest.$ac_ext <<_ACEOF
1855 #line 1855 "configure"
1856 #include "confdefs.h"
1860 if { (eval echo "$as_me:1860: \"$ac_cpp conftest.$ac_ext\"") >&5
1861 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1863 egrep -v '^ *\+' conftest.er1 >conftest.err
1865 cat conftest.err >&5
1866 echo "$as_me:1866: \$? = $ac_status" >&5
1867 (exit $ac_status); } >/dev/null; then
1868 if test -s conftest.err; then
1869 ac_cpp_err=$ac_c_preproc_warn_flag
1876 if test -z "$ac_cpp_err"; then
1879 echo "$as_me: failed program was:" >&5
1880 cat conftest.$ac_ext >&5
1881 # Broken: fails on valid input.
1884 rm -f conftest.err conftest.$ac_ext
1886 # OK, works on sane cases. Now check whether non-existent headers
1887 # can be detected and how.
1888 cat >conftest.$ac_ext <<_ACEOF
1889 #line 1889 "configure"
1890 #include "confdefs.h"
1891 #include <ac_nonexistent.h>
1893 if { (eval echo "$as_me:1893: \"$ac_cpp conftest.$ac_ext\"") >&5
1894 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1896 egrep -v '^ *\+' conftest.er1 >conftest.err
1898 cat conftest.err >&5
1899 echo "$as_me:1899: \$? = $ac_status" >&5
1900 (exit $ac_status); } >/dev/null; then
1901 if test -s conftest.err; then
1902 ac_cpp_err=$ac_c_preproc_warn_flag
1909 if test -z "$ac_cpp_err"; then
1910 # Broken: success on invalid input.
1913 echo "$as_me: failed program was:" >&5
1914 cat conftest.$ac_ext >&5
1915 # Passes both tests.
1919 rm -f conftest.err conftest.$ac_ext
1922 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1923 rm -f conftest.err conftest.$ac_ext
1924 if $ac_preproc_ok; then
1936 echo "$as_me:1936: result: $CPP" >&5
1937 echo "${ECHO_T}$CPP" >&6
1939 for ac_c_preproc_warn_flag in '' yes
1941 # Use a header file that comes with gcc, so configuring glibc
1942 # with a fresh cross-compiler works.
1943 # On the NeXT, cc -E runs the code through the compiler's parser,
1944 # not just through cpp. "Syntax error" is here to catch this case.
1945 cat >conftest.$ac_ext <<_ACEOF
1946 #line 1946 "configure"
1947 #include "confdefs.h"
1951 if { (eval echo "$as_me:1951: \"$ac_cpp conftest.$ac_ext\"") >&5
1952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1954 egrep -v '^ *\+' conftest.er1 >conftest.err
1956 cat conftest.err >&5
1957 echo "$as_me:1957: \$? = $ac_status" >&5
1958 (exit $ac_status); } >/dev/null; then
1959 if test -s conftest.err; then
1960 ac_cpp_err=$ac_c_preproc_warn_flag
1967 if test -z "$ac_cpp_err"; then
1970 echo "$as_me: failed program was:" >&5
1971 cat conftest.$ac_ext >&5
1972 # Broken: fails on valid input.
1975 rm -f conftest.err conftest.$ac_ext
1977 # OK, works on sane cases. Now check whether non-existent headers
1978 # can be detected and how.
1979 cat >conftest.$ac_ext <<_ACEOF
1980 #line 1980 "configure"
1981 #include "confdefs.h"
1982 #include <ac_nonexistent.h>
1984 if { (eval echo "$as_me:1984: \"$ac_cpp conftest.$ac_ext\"") >&5
1985 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1987 egrep -v '^ *\+' conftest.er1 >conftest.err
1989 cat conftest.err >&5
1990 echo "$as_me:1990: \$? = $ac_status" >&5
1991 (exit $ac_status); } >/dev/null; then
1992 if test -s conftest.err; then
1993 ac_cpp_err=$ac_c_preproc_warn_flag
2000 if test -z "$ac_cpp_err"; then
2001 # Broken: success on invalid input.
2004 echo "$as_me: failed program was:" >&5
2005 cat conftest.$ac_ext >&5
2006 # Passes both tests.
2010 rm -f conftest.err conftest.$ac_ext
2013 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2014 rm -f conftest.err conftest.$ac_ext
2015 if $ac_preproc_ok; then
2018 { { echo "$as_me:2018: error: C preprocessor \"$CPP\" fails sanity check" >&5
2019 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2020 { (exit 1); exit 1; }; }
2024 ac_cpp='$CPP $CPPFLAGS'
2025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2028 ac_main_return=return
2030 for ac_prog in mawk gawk nawk awk
2032 # Extract the first word of "$ac_prog", so it can be a program name with args.
2033 set dummy $ac_prog; ac_word=$2
2034 echo "$as_me:2034: checking for $ac_word" >&5
2035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2036 if test "${ac_cv_prog_AWK+set}" = set; then
2037 echo $ECHO_N "(cached) $ECHO_C" >&6
2039 if test -n "$AWK"; then
2040 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2042 ac_save_IFS=$IFS; IFS=$ac_path_separator
2044 for ac_dir in $ac_dummy; do
2046 test -z "$ac_dir" && ac_dir=.
2047 $as_executable_p "$ac_dir/$ac_word" || continue
2048 ac_cv_prog_AWK="$ac_prog"
2049 echo "$as_me:2049: found $ac_dir/$ac_word" >&5
2056 if test -n "$AWK"; then
2057 echo "$as_me:2057: result: $AWK" >&5
2058 echo "${ECHO_T}$AWK" >&6
2060 echo "$as_me:2060: result: no" >&5
2061 echo "${ECHO_T}no" >&6
2064 test -n "$AWK" && break
2067 echo "$as_me:2067: checking if filesystem supports mixed-case filenames" >&5
2068 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2069 if test "${cf_cv_mixedcase+set}" = set; then
2070 echo $ECHO_N "(cached) $ECHO_C" >&6
2073 if test "$cross_compiling" = yes ; then
2074 case $target_alias in #(vi
2075 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
2083 rm -f conftest CONFTEST
2085 if test -f CONFTEST ; then
2090 rm -f conftest CONFTEST
2094 echo "$as_me:2094: result: $cf_cv_mixedcase" >&5
2095 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2096 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
2097 #define MIXEDCASE_FILENAMES 1
2100 for ac_prog in exctags ctags
2102 # Extract the first word of "$ac_prog", so it can be a program name with args.
2103 set dummy $ac_prog; ac_word=$2
2104 echo "$as_me:2104: checking for $ac_word" >&5
2105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2106 if test "${ac_cv_prog_CTAGS+set}" = set; then
2107 echo $ECHO_N "(cached) $ECHO_C" >&6
2109 if test -n "$CTAGS"; then
2110 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2112 ac_save_IFS=$IFS; IFS=$ac_path_separator
2114 for ac_dir in $ac_dummy; do
2116 test -z "$ac_dir" && ac_dir=.
2117 $as_executable_p "$ac_dir/$ac_word" || continue
2118 ac_cv_prog_CTAGS="$ac_prog"
2119 echo "$as_me:2119: found $ac_dir/$ac_word" >&5
2125 CTAGS=$ac_cv_prog_CTAGS
2126 if test -n "$CTAGS"; then
2127 echo "$as_me:2127: result: $CTAGS" >&5
2128 echo "${ECHO_T}$CTAGS" >&6
2130 echo "$as_me:2130: result: no" >&5
2131 echo "${ECHO_T}no" >&6
2134 test -n "$CTAGS" && break
2137 for ac_prog in exetags etags
2139 # Extract the first word of "$ac_prog", so it can be a program name with args.
2140 set dummy $ac_prog; ac_word=$2
2141 echo "$as_me:2141: checking for $ac_word" >&5
2142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2143 if test "${ac_cv_prog_ETAGS+set}" = set; then
2144 echo $ECHO_N "(cached) $ECHO_C" >&6
2146 if test -n "$ETAGS"; then
2147 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2149 ac_save_IFS=$IFS; IFS=$ac_path_separator
2151 for ac_dir in $ac_dummy; do
2153 test -z "$ac_dir" && ac_dir=.
2154 $as_executable_p "$ac_dir/$ac_word" || continue
2155 ac_cv_prog_ETAGS="$ac_prog"
2156 echo "$as_me:2156: found $ac_dir/$ac_word" >&5
2162 ETAGS=$ac_cv_prog_ETAGS
2163 if test -n "$ETAGS"; then
2164 echo "$as_me:2164: result: $ETAGS" >&5
2165 echo "${ECHO_T}$ETAGS" >&6
2167 echo "$as_me:2167: result: no" >&5
2168 echo "${ECHO_T}no" >&6
2171 test -n "$ETAGS" && break
2174 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2175 set dummy ${CTAGS:-ctags}; ac_word=$2
2176 echo "$as_me:2176: checking for $ac_word" >&5
2177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2178 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2179 echo $ECHO_N "(cached) $ECHO_C" >&6
2181 if test -n "$MAKE_LOWER_TAGS"; then
2182 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2184 ac_save_IFS=$IFS; IFS=$ac_path_separator
2186 for ac_dir in $ac_dummy; do
2188 test -z "$ac_dir" && ac_dir=.
2189 $as_executable_p "$ac_dir/$ac_word" || continue
2190 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2191 echo "$as_me:2191: found $ac_dir/$ac_word" >&5
2195 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2198 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2199 if test -n "$MAKE_LOWER_TAGS"; then
2200 echo "$as_me:2200: result: $MAKE_LOWER_TAGS" >&5
2201 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2203 echo "$as_me:2203: result: no" >&5
2204 echo "${ECHO_T}no" >&6
2207 if test "$cf_cv_mixedcase" = yes ; then
2208 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2209 set dummy ${ETAGS:-etags}; ac_word=$2
2210 echo "$as_me:2210: checking for $ac_word" >&5
2211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2212 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
2215 if test -n "$MAKE_UPPER_TAGS"; then
2216 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2218 ac_save_IFS=$IFS; IFS=$ac_path_separator
2220 for ac_dir in $ac_dummy; do
2222 test -z "$ac_dir" && ac_dir=.
2223 $as_executable_p "$ac_dir/$ac_word" || continue
2224 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2225 echo "$as_me:2225: found $ac_dir/$ac_word" >&5
2229 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2232 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2233 if test -n "$MAKE_UPPER_TAGS"; then
2234 echo "$as_me:2234: result: $MAKE_UPPER_TAGS" >&5
2235 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2237 echo "$as_me:2237: result: no" >&5
2238 echo "${ECHO_T}no" >&6
2245 if test "$MAKE_UPPER_TAGS" = yes ; then
2251 if test "$MAKE_LOWER_TAGS" = yes ; then
2258 CC_SHARED_OPTS=unknown
2259 CPPFLAGS="$CPPFLAGS"
2261 DFT_OBJ_SUBDIR=`pwd|sed -e's:.*/::'`
2262 DFT_UPR_MODEL="NORMAL"
2281 TINFO_ARGS='$(LIBS_CURSES)'
2282 cf_cv_abi_version=""
2283 cf_cv_rel_version=""
2288 echo "$as_me:2288: checking for ${CC:-cc} option to accept ANSI C" >&5
2289 echo $ECHO_N "checking for ${CC:-cc} option to accept ANSI C... $ECHO_C" >&6
2290 if test "${cf_cv_ansi_cc+set}" = set; then
2291 echo $ECHO_N "(cached) $ECHO_C" >&6
2295 cf_save_CFLAGS="$CFLAGS"
2296 cf_save_CPPFLAGS="$CPPFLAGS"
2297 # Don't try gcc -ansi; that turns off useful extensions and
2298 # breaks some systems' header files.
2299 # AIX -qlanglvl=ansi
2300 # Ultrix and OSF/1 -std1
2301 # HP-UX -Aa -D_HPUX_SOURCE
2303 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2304 for cf_arg in "-DCC_HAS_PROTOS" \
2309 "-Aa -D_HPUX_SOURCE" \
2316 cf_new_extra_cppflags=
2318 for cf_add_cflags in $cf_arg
2320 case $cf_fix_cppflags in
2322 case $cf_add_cflags in #(vi
2323 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2324 case $cf_add_cflags in
2326 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2328 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2329 && test -z "${cf_tst_cflags}" \
2330 && cf_fix_cppflags=yes
2332 if test $cf_fix_cppflags = yes ; then
2333 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2335 elif test "${cf_tst_cflags}" = "\"'" ; then
2336 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2342 *$cf_add_cflags) #(vi
2345 case $cf_add_cflags in #(vi
2347 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2349 CPPFLAGS=`echo "$CPPFLAGS" | \
2350 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2351 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2355 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2360 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2365 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2367 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2369 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2370 && test -z "${cf_tst_cflags}" \
2371 && cf_fix_cppflags=no
2376 if test -n "$cf_new_cflags" ; then
2378 CFLAGS="$CFLAGS $cf_new_cflags"
2381 if test -n "$cf_new_cppflags" ; then
2383 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2386 if test -n "$cf_new_extra_cppflags" ; then
2388 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2391 cat >conftest.$ac_ext <<_ACEOF
2392 #line 2392 "configure"
2393 #include "confdefs.h"
2395 #ifndef CC_HAS_PROTOS
2396 #if !defined(__STDC__) || (__STDC__ != 1)
2405 int test (int i, double x);
2406 struct s1 {int (*f) (int a);};
2407 struct s2 {int (*f) (double a);};
2412 rm -f conftest.$ac_objext
2413 if { (eval echo "$as_me:2413: \"$ac_compile\"") >&5
2414 (eval $ac_compile) 2>&5
2416 echo "$as_me:2416: \$? = $ac_status" >&5
2417 (exit $ac_status); } &&
2418 { ac_try='test -s conftest.$ac_objext'
2419 { (eval echo "$as_me:2419: \"$ac_try\"") >&5
2422 echo "$as_me:2422: \$? = $ac_status" >&5
2423 (exit $ac_status); }; }; then
2424 cf_cv_ansi_cc="$cf_arg"; break
2426 echo "$as_me: failed program was:" >&5
2427 cat conftest.$ac_ext >&5
2429 rm -f conftest.$ac_objext conftest.$ac_ext
2431 CFLAGS="$cf_save_CFLAGS"
2432 CPPFLAGS="$cf_save_CPPFLAGS"
2435 echo "$as_me:2435: result: $cf_cv_ansi_cc" >&5
2436 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2438 if test "$cf_cv_ansi_cc" != "no"; then
2439 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2444 cf_new_extra_cppflags=
2446 for cf_add_cflags in $cf_cv_ansi_cc
2448 case $cf_fix_cppflags in
2450 case $cf_add_cflags in #(vi
2451 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2452 case $cf_add_cflags in
2454 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2456 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2457 && test -z "${cf_tst_cflags}" \
2458 && cf_fix_cppflags=yes
2460 if test $cf_fix_cppflags = yes ; then
2461 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2463 elif test "${cf_tst_cflags}" = "\"'" ; then
2464 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2470 *$cf_add_cflags) #(vi
2473 case $cf_add_cflags in #(vi
2475 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2477 CPPFLAGS=`echo "$CPPFLAGS" | \
2478 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2479 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2483 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2488 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2493 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2495 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2497 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2498 && test -z "${cf_tst_cflags}" \
2499 && cf_fix_cppflags=no
2504 if test -n "$cf_new_cflags" ; then
2506 CFLAGS="$CFLAGS $cf_new_cflags"
2509 if test -n "$cf_new_cppflags" ; then
2511 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2514 if test -n "$cf_new_extra_cppflags" ; then
2516 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2520 cat >>confdefs.h <<\EOF
2521 #define CC_HAS_PROTOS 1
2527 if test "$cf_cv_ansi_cc" = "no"; then
2528 { { echo "$as_me:2528: error: Your compiler does not appear to recognize prototypes.
2529 You have the following choices:
2530 a. adjust your compiler options
2531 b. get an up-to-date compiler
2532 c. use a wrapper such as unproto" >&5
2533 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2534 You have the following choices:
2535 a. adjust your compiler options
2536 b. get an up-to-date compiler
2537 c. use a wrapper such as unproto" >&2;}
2538 { (exit 1); exit 1; }; }
2541 if test "$GCC" = yes
2543 cat > conftest.i <<EOF
2545 #define GCC_PRINTF 0
2550 #ifndef GCC_NORETURN
2551 #define GCC_NORETURN /* nothing */
2554 #define GCC_UNUSED /* nothing */
2557 if test "$GCC" = yes
2559 { echo "$as_me:2559: checking for $CC __attribute__ directives..." >&5
2560 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
2561 cat > conftest.$ac_ext <<EOF
2562 #line 2562 "${as_me:-configure}"
2563 #include "confdefs.h"
2564 #include "conftest.h"
2565 #include "conftest.i"
2567 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2569 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
2572 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2574 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
2576 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
2577 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
2578 extern void foo(void) GCC_NORETURN;
2579 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
2581 cf_printf_attribute=no
2582 cf_scanf_attribute=no
2583 for cf_attribute in scanf printf unused noreturn
2586 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
2588 cf_directive="__attribute__(($cf_attribute))"
2589 echo "checking for $CC $cf_directive" 1>&5
2591 case $cf_attribute in #(vi
2593 cf_printf_attribute=yes
2594 cat >conftest.h <<EOF
2595 #define GCC_$cf_ATTRIBUTE 1
2599 cf_scanf_attribute=yes
2600 cat >conftest.h <<EOF
2601 #define GCC_$cf_ATTRIBUTE 1
2605 cat >conftest.h <<EOF
2606 #define GCC_$cf_ATTRIBUTE $cf_directive
2611 if { (eval echo "$as_me:2611: \"$ac_compile\"") >&5
2612 (eval $ac_compile) 2>&5
2614 echo "$as_me:2614: \$? = $ac_status" >&5
2615 (exit $ac_status); }; then
2616 test -n "$verbose" && echo "$as_me:2616: result: ... $cf_attribute" >&5
2617 echo "${ECHO_T}... $cf_attribute" >&6
2618 cat conftest.h >>confdefs.h
2619 case $cf_attribute in #(vi
2621 if test "$cf_printf_attribute" = no ; then
2622 cat >>confdefs.h <<EOF
2623 #define GCC_PRINTFLIKE(fmt,var) /* nothing */
2626 cat >>confdefs.h <<EOF
2627 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2632 if test "$cf_scanf_attribute" = no ; then
2633 cat >>confdefs.h <<EOF
2634 #define GCC_SCANFLIKE(fmt,var) /* nothing */
2637 cat >>confdefs.h <<EOF
2638 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2646 fgrep define conftest.i >>confdefs.h
2652 cf_POSIX_C_SOURCE=199506L
2655 case $host_os in #(vi
2657 cf_xopen_source="-D_ALL_SOURCE"
2660 cf_xopen_source="-D_APPLE_C_SOURCE"
2663 cf_xopen_source="-D_DARWIN_C_SOURCE"
2665 freebsd*|dragonfly*) #(vi
2666 # 5.x headers associate
2667 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
2668 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
2669 cf_POSIX_C_SOURCE=200112L
2671 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2674 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
2677 cf_xopen_source="-D_HPUX_SOURCE"
2680 cf_xopen_source="-D_SGI_SOURCE"
2682 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
2684 echo "$as_me:2684: checking if we must define _GNU_SOURCE" >&5
2685 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
2686 if test "${cf_cv_gnu_source+set}" = set; then
2687 echo $ECHO_N "(cached) $ECHO_C" >&6
2690 cat >conftest.$ac_ext <<_ACEOF
2691 #line 2691 "configure"
2692 #include "confdefs.h"
2693 #include <sys/types.h>
2698 #ifndef _XOPEN_SOURCE
2705 rm -f conftest.$ac_objext
2706 if { (eval echo "$as_me:2706: \"$ac_compile\"") >&5
2707 (eval $ac_compile) 2>&5
2709 echo "$as_me:2709: \$? = $ac_status" >&5
2710 (exit $ac_status); } &&
2711 { ac_try='test -s conftest.$ac_objext'
2712 { (eval echo "$as_me:2712: \"$ac_try\"") >&5
2715 echo "$as_me:2715: \$? = $ac_status" >&5
2716 (exit $ac_status); }; }; then
2719 echo "$as_me: failed program was:" >&5
2720 cat conftest.$ac_ext >&5
2722 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2723 cat >conftest.$ac_ext <<_ACEOF
2724 #line 2724 "configure"
2725 #include "confdefs.h"
2726 #include <sys/types.h>
2731 #ifdef _XOPEN_SOURCE
2738 rm -f conftest.$ac_objext
2739 if { (eval echo "$as_me:2739: \"$ac_compile\"") >&5
2740 (eval $ac_compile) 2>&5
2742 echo "$as_me:2742: \$? = $ac_status" >&5
2743 (exit $ac_status); } &&
2744 { ac_try='test -s conftest.$ac_objext'
2745 { (eval echo "$as_me:2745: \"$ac_try\"") >&5
2748 echo "$as_me:2748: \$? = $ac_status" >&5
2749 (exit $ac_status); }; }; then
2752 echo "$as_me: failed program was:" >&5
2753 cat conftest.$ac_ext >&5
2754 cf_cv_gnu_source=yes
2756 rm -f conftest.$ac_objext conftest.$ac_ext
2760 rm -f conftest.$ac_objext conftest.$ac_ext
2763 echo "$as_me:2763: result: $cf_cv_gnu_source" >&5
2764 echo "${ECHO_T}$cf_cv_gnu_source" >&6
2765 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2769 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h>
2772 # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
2775 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
2778 cf_xopen_source="-D_OSF_SOURCE"
2781 cf_xopen_source="-D_QNX_SOURCE"
2784 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
2786 solaris2.1[0-9]) #(vi
2787 cf_xopen_source="-D__EXTENSIONS__ -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2789 solaris2.[1-9]) #(vi
2790 cf_xopen_source="-D__EXTENSIONS__"
2793 echo "$as_me:2793: checking if we should define _XOPEN_SOURCE" >&5
2794 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
2795 if test "${cf_cv_xopen_source+set}" = set; then
2796 echo $ECHO_N "(cached) $ECHO_C" >&6
2799 cat >conftest.$ac_ext <<_ACEOF
2800 #line 2800 "configure"
2801 #include "confdefs.h"
2802 #include <sys/types.h>
2807 #ifndef _XOPEN_SOURCE
2814 rm -f conftest.$ac_objext
2815 if { (eval echo "$as_me:2815: \"$ac_compile\"") >&5
2816 (eval $ac_compile) 2>&5
2818 echo "$as_me:2818: \$? = $ac_status" >&5
2819 (exit $ac_status); } &&
2820 { ac_try='test -s conftest.$ac_objext'
2821 { (eval echo "$as_me:2821: \"$ac_try\"") >&5
2824 echo "$as_me:2824: \$? = $ac_status" >&5
2825 (exit $ac_status); }; }; then
2826 cf_cv_xopen_source=no
2828 echo "$as_me: failed program was:" >&5
2829 cat conftest.$ac_ext >&5
2831 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2832 cat >conftest.$ac_ext <<_ACEOF
2833 #line 2833 "configure"
2834 #include "confdefs.h"
2835 #include <sys/types.h>
2840 #ifdef _XOPEN_SOURCE
2847 rm -f conftest.$ac_objext
2848 if { (eval echo "$as_me:2848: \"$ac_compile\"") >&5
2849 (eval $ac_compile) 2>&5
2851 echo "$as_me:2851: \$? = $ac_status" >&5
2852 (exit $ac_status); } &&
2853 { ac_try='test -s conftest.$ac_objext'
2854 { (eval echo "$as_me:2854: \"$ac_try\"") >&5
2857 echo "$as_me:2857: \$? = $ac_status" >&5
2858 (exit $ac_status); }; }; then
2859 cf_cv_xopen_source=no
2861 echo "$as_me: failed program was:" >&5
2862 cat conftest.$ac_ext >&5
2863 cf_cv_xopen_source=$cf_XOPEN_SOURCE
2865 rm -f conftest.$ac_objext conftest.$ac_ext
2869 rm -f conftest.$ac_objext conftest.$ac_ext
2872 echo "$as_me:2872: result: $cf_cv_xopen_source" >&5
2873 echo "${ECHO_T}$cf_cv_xopen_source" >&6
2874 if test "$cf_cv_xopen_source" != no ; then
2876 CFLAGS=`echo "$CFLAGS" | \
2877 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2878 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
2880 CPPFLAGS=`echo "$CPPFLAGS" | \
2881 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2882 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
2884 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
2889 cf_new_extra_cppflags=
2891 for cf_add_cflags in $cf_temp_xopen_source
2893 case $cf_fix_cppflags in
2895 case $cf_add_cflags in #(vi
2896 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2897 case $cf_add_cflags in
2899 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2901 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2902 && test -z "${cf_tst_cflags}" \
2903 && cf_fix_cppflags=yes
2905 if test $cf_fix_cppflags = yes ; then
2906 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2908 elif test "${cf_tst_cflags}" = "\"'" ; then
2909 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2915 *$cf_add_cflags) #(vi
2918 case $cf_add_cflags in #(vi
2920 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2922 CPPFLAGS=`echo "$CPPFLAGS" | \
2923 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2924 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2928 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2933 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2938 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2940 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2942 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2943 && test -z "${cf_tst_cflags}" \
2944 && cf_fix_cppflags=no
2949 if test -n "$cf_new_cflags" ; then
2951 CFLAGS="$CFLAGS $cf_new_cflags"
2954 if test -n "$cf_new_cppflags" ; then
2956 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2959 if test -n "$cf_new_extra_cppflags" ; then
2961 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2966 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
2968 cf_save_CFLAGS="$CFLAGS"
2969 cf_save_CPPFLAGS="$CPPFLAGS"
2971 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
2972 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2973 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2975 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
2976 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2977 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2979 echo "$as_me:2979: checking if we should define _POSIX_C_SOURCE" >&5
2980 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
2981 if test "${cf_cv_posix_c_source+set}" = set; then
2982 echo $ECHO_N "(cached) $ECHO_C" >&6
2985 echo "${as_me:-configure}:2985: testing if the symbol is already defined go no further ..." 1>&5
2987 cat >conftest.$ac_ext <<_ACEOF
2988 #line 2988 "configure"
2989 #include "confdefs.h"
2990 #include <sys/types.h>
2995 #ifndef _POSIX_C_SOURCE
3002 rm -f conftest.$ac_objext
3003 if { (eval echo "$as_me:3003: \"$ac_compile\"") >&5
3004 (eval $ac_compile) 2>&5
3006 echo "$as_me:3006: \$? = $ac_status" >&5
3007 (exit $ac_status); } &&
3008 { ac_try='test -s conftest.$ac_objext'
3009 { (eval echo "$as_me:3009: \"$ac_try\"") >&5
3012 echo "$as_me:3012: \$? = $ac_status" >&5
3013 (exit $ac_status); }; }; then
3014 cf_cv_posix_c_source=no
3016 echo "$as_me: failed program was:" >&5
3017 cat conftest.$ac_ext >&5
3018 cf_want_posix_source=no
3019 case .$cf_POSIX_C_SOURCE in #(vi
3021 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3024 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3025 cf_want_posix_source=yes
3028 cf_want_posix_source=yes
3031 if test "$cf_want_posix_source" = yes ; then
3032 cat >conftest.$ac_ext <<_ACEOF
3033 #line 3033 "configure"
3034 #include "confdefs.h"
3035 #include <sys/types.h>
3040 #ifdef _POSIX_SOURCE
3047 rm -f conftest.$ac_objext
3048 if { (eval echo "$as_me:3048: \"$ac_compile\"") >&5
3049 (eval $ac_compile) 2>&5
3051 echo "$as_me:3051: \$? = $ac_status" >&5
3052 (exit $ac_status); } &&
3053 { ac_try='test -s conftest.$ac_objext'
3054 { (eval echo "$as_me:3054: \"$ac_try\"") >&5
3057 echo "$as_me:3057: \$? = $ac_status" >&5
3058 (exit $ac_status); }; }; then
3061 echo "$as_me: failed program was:" >&5
3062 cat conftest.$ac_ext >&5
3063 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3065 rm -f conftest.$ac_objext conftest.$ac_ext
3068 echo "${as_me:-configure}:3068: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3070 CFLAGS="$cf_trim_CFLAGS"
3071 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3073 echo "${as_me:-configure}:3073: testing if the second compile does not leave our definition intact error ..." 1>&5
3075 cat >conftest.$ac_ext <<_ACEOF
3076 #line 3076 "configure"
3077 #include "confdefs.h"
3078 #include <sys/types.h>
3083 #ifndef _POSIX_C_SOURCE
3090 rm -f conftest.$ac_objext
3091 if { (eval echo "$as_me:3091: \"$ac_compile\"") >&5
3092 (eval $ac_compile) 2>&5
3094 echo "$as_me:3094: \$? = $ac_status" >&5
3095 (exit $ac_status); } &&
3096 { ac_try='test -s conftest.$ac_objext'
3097 { (eval echo "$as_me:3097: \"$ac_try\"") >&5
3100 echo "$as_me:3100: \$? = $ac_status" >&5
3101 (exit $ac_status); }; }; then
3104 echo "$as_me: failed program was:" >&5
3105 cat conftest.$ac_ext >&5
3106 cf_cv_posix_c_source=no
3108 rm -f conftest.$ac_objext conftest.$ac_ext
3109 CFLAGS="$cf_save_CFLAGS"
3110 CPPFLAGS="$cf_save_CPPFLAGS"
3113 rm -f conftest.$ac_objext conftest.$ac_ext
3116 echo "$as_me:3116: result: $cf_cv_posix_c_source" >&5
3117 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3119 if test "$cf_cv_posix_c_source" != no ; then
3120 CFLAGS="$cf_trim_CFLAGS"
3121 CPPFLAGS="$cf_trim_CPPFLAGS"
3126 cf_new_extra_cppflags=
3128 for cf_add_cflags in $cf_cv_posix_c_source
3130 case $cf_fix_cppflags in
3132 case $cf_add_cflags in #(vi
3133 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3134 case $cf_add_cflags in
3136 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3138 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3139 && test -z "${cf_tst_cflags}" \
3140 && cf_fix_cppflags=yes
3142 if test $cf_fix_cppflags = yes ; then
3143 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3145 elif test "${cf_tst_cflags}" = "\"'" ; then
3146 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3152 *$cf_add_cflags) #(vi
3155 case $cf_add_cflags in #(vi
3157 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3159 CPPFLAGS=`echo "$CPPFLAGS" | \
3160 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3161 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3165 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3170 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3175 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3177 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3179 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3180 && test -z "${cf_tst_cflags}" \
3181 && cf_fix_cppflags=no
3186 if test -n "$cf_new_cflags" ; then
3188 CFLAGS="$CFLAGS $cf_new_cflags"
3191 if test -n "$cf_new_cppflags" ; then
3193 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3196 if test -n "$cf_new_extra_cppflags" ; then
3198 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3206 if test -n "$cf_xopen_source" ; then
3211 cf_new_extra_cppflags=
3213 for cf_add_cflags in $cf_xopen_source
3215 case $cf_fix_cppflags in
3217 case $cf_add_cflags in #(vi
3218 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3219 case $cf_add_cflags in
3221 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3223 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3224 && test -z "${cf_tst_cflags}" \
3225 && cf_fix_cppflags=yes
3227 if test $cf_fix_cppflags = yes ; then
3228 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3230 elif test "${cf_tst_cflags}" = "\"'" ; then
3231 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3237 *$cf_add_cflags) #(vi
3240 case $cf_add_cflags in #(vi
3242 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3244 CPPFLAGS=`echo "$CPPFLAGS" | \
3245 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3246 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3250 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3255 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3260 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3262 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3264 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3265 && test -z "${cf_tst_cflags}" \
3266 && cf_fix_cppflags=no
3271 if test -n "$cf_new_cflags" ; then
3273 CFLAGS="$CFLAGS $cf_new_cflags"
3276 if test -n "$cf_new_cppflags" ; then
3278 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3281 if test -n "$cf_new_extra_cppflags" ; then
3283 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3288 echo "$as_me:3288: checking for $CC option to accept ANSI C" >&5
3289 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3290 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3291 echo $ECHO_N "(cached) $ECHO_C" >&6
3293 ac_cv_prog_cc_stdc=no
3295 cat >conftest.$ac_ext <<_ACEOF
3296 #line 3296 "configure"
3297 #include "confdefs.h"
3300 #include <sys/types.h>
3301 #include <sys/stat.h>
3302 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3303 struct buf { int x; };
3304 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3305 static char *e (p, i)
3311 static char *f (char * (*g) (char **, int), char **p, ...)
3316 s = g (p, va_arg (v,int));
3320 int test (int i, double x);
3321 struct s1 {int (*f) (int a);};
3322 struct s2 {int (*f) (double a);};
3323 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3329 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3334 # Don't try gcc -ansi; that turns off useful extensions and
3335 # breaks some systems' header files.
3336 # AIX -qlanglvl=ansi
3337 # Ultrix and OSF/1 -std1
3338 # HP-UX 10.20 and later -Ae
3339 # HP-UX older versions -Aa -D_HPUX_SOURCE
3340 # SVR4 -Xc -D__EXTENSIONS__
3341 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3343 CC="$ac_save_CC $ac_arg"
3344 rm -f conftest.$ac_objext
3345 if { (eval echo "$as_me:3345: \"$ac_compile\"") >&5
3346 (eval $ac_compile) 2>&5
3348 echo "$as_me:3348: \$? = $ac_status" >&5
3349 (exit $ac_status); } &&
3350 { ac_try='test -s conftest.$ac_objext'
3351 { (eval echo "$as_me:3351: \"$ac_try\"") >&5
3354 echo "$as_me:3354: \$? = $ac_status" >&5
3355 (exit $ac_status); }; }; then
3356 ac_cv_prog_cc_stdc=$ac_arg
3359 echo "$as_me: failed program was:" >&5
3360 cat conftest.$ac_ext >&5
3362 rm -f conftest.$ac_objext
3364 rm -f conftest.$ac_ext conftest.$ac_objext
3369 case "x$ac_cv_prog_cc_stdc" in
3371 echo "$as_me:3371: result: none needed" >&5
3372 echo "${ECHO_T}none needed" >&6 ;;
3374 echo "$as_me:3374: result: $ac_cv_prog_cc_stdc" >&5
3375 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3376 CC="$CC $ac_cv_prog_cc_stdc" ;;
3379 echo "$as_me:3379: checking for an ANSI C-conforming const" >&5
3380 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3381 if test "${ac_cv_c_const+set}" = set; then
3382 echo $ECHO_N "(cached) $ECHO_C" >&6
3384 cat >conftest.$ac_ext <<_ACEOF
3385 #line 3385 "configure"
3386 #include "confdefs.h"
3391 /* FIXME: Include the comments suggested by Paul. */
3393 /* Ultrix mips cc rejects this. */
3394 typedef int charset[2];
3396 /* SunOS 4.1.1 cc rejects this. */
3397 char const *const *ccp;
3399 /* NEC SVR4.0.2 mips cc rejects this. */
3400 struct point {int x, y;};
3401 static struct point const zero = {0,0};
3402 /* AIX XL C 1.02.0.0 rejects this.
3403 It does not let you subtract one const X* pointer from another in
3404 an arm of an if-expression whose if-part is not a constant
3406 const char *g = "string";
3407 ccp = &g + (g ? g-g : 0);
3408 /* HPUX 7.0 cc rejects these. */
3411 ccp = (char const *const *) p;
3412 { /* SCO 3.2v4 cc rejects this. */
3414 char const *s = 0 ? (char *) 0 : (char const *) 0;
3418 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3420 const int *foo = &x[0];
3423 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3424 typedef const int *iptr;
3428 { /* AIX XL C 1.02.0.0 rejects this saying
3429 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3430 struct s { int j; const int *ap[3]; };
3431 struct s *b; b->j = 5;
3433 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3442 rm -f conftest.$ac_objext
3443 if { (eval echo "$as_me:3443: \"$ac_compile\"") >&5
3444 (eval $ac_compile) 2>&5
3446 echo "$as_me:3446: \$? = $ac_status" >&5
3447 (exit $ac_status); } &&
3448 { ac_try='test -s conftest.$ac_objext'
3449 { (eval echo "$as_me:3449: \"$ac_try\"") >&5
3452 echo "$as_me:3452: \$? = $ac_status" >&5
3453 (exit $ac_status); }; }; then
3456 echo "$as_me: failed program was:" >&5
3457 cat conftest.$ac_ext >&5
3460 rm -f conftest.$ac_objext conftest.$ac_ext
3462 echo "$as_me:3462: result: $ac_cv_c_const" >&5
3463 echo "${ECHO_T}$ac_cv_c_const" >&6
3464 if test $ac_cv_c_const = no; then
3466 cat >>confdefs.h <<\EOF
3472 echo "$as_me:3472: checking for signal global datatype" >&5
3473 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
3474 if test "${cf_cv_sig_atomic_t+set}" = set; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3479 "volatile sig_atomic_t" \
3483 cat >conftest.$ac_ext <<_ACEOF
3484 #line 3484 "configure"
3485 #include "confdefs.h"
3487 #include <sys/types.h>
3493 static void handler(int sig)
3500 signal(SIGINT, handler);
3506 rm -f conftest.$ac_objext
3507 if { (eval echo "$as_me:3507: \"$ac_compile\"") >&5
3508 (eval $ac_compile) 2>&5
3510 echo "$as_me:3510: \$? = $ac_status" >&5
3511 (exit $ac_status); } &&
3512 { ac_try='test -s conftest.$ac_objext'
3513 { (eval echo "$as_me:3513: \"$ac_try\"") >&5
3516 echo "$as_me:3516: \$? = $ac_status" >&5
3517 (exit $ac_status); }; }; then
3518 cf_cv_sig_atomic_t=$cf_type
3520 echo "$as_me: failed program was:" >&5
3521 cat conftest.$ac_ext >&5
3522 cf_cv_sig_atomic_t=no
3524 rm -f conftest.$ac_objext conftest.$ac_ext
3525 test "$cf_cv_sig_atomic_t" != no && break
3530 echo "$as_me:3530: result: $cf_cv_sig_atomic_t" >&5
3531 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
3532 test "$cf_cv_sig_atomic_t" != no && cat >>confdefs.h <<EOF
3533 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
3536 echo "$as_me:3536: checking if you want to see long compiling messages" >&5
3537 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
3539 # Check whether --enable-echo or --disable-echo was given.
3540 if test "${enable_echo+set}" = set; then
3541 enableval="$enable_echo"
3542 test "$enableval" != no && enableval=yes
3543 if test "$enableval" != "yes" ; then
3546 ECHO_LD='@echo linking $@;'
3547 RULE_CC='@echo compiling $<'
3548 SHOW_CC='@echo compiling $@'
3570 echo "$as_me:3570: result: $enableval" >&5
3571 echo "${ECHO_T}$enableval" >&6
3574 if test "$GCC" = yes ; then
3575 echo "$as_me:3575: checking version of $CC" >&5
3576 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
3577 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3578 test -z "$GCC_VERSION" && GCC_VERSION=unknown
3579 echo "$as_me:3579: result: $GCC_VERSION" >&5
3580 echo "${ECHO_T}$GCC_VERSION" >&6
3583 if ( test "$GCC" = yes || test "$GXX" = yes )
3585 echo "$as_me:3585: checking if you want to turn on gcc warnings" >&5
3586 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
3588 # Check whether --enable-warnings or --disable-warnings was given.
3589 if test "${enable_warnings+set}" = set; then
3590 enableval="$enable_warnings"
3591 test "$enableval" != yes && enableval=no
3592 if test "$enableval" != "no" ; then
3602 echo "$as_me:3602: result: $with_warnings" >&5
3603 echo "${ECHO_T}$with_warnings" >&6
3604 if test "$with_warnings" = "yes"
3607 if test "$GCC" = yes
3609 cat > conftest.i <<EOF
3611 #define GCC_PRINTF 0
3616 #ifndef GCC_NORETURN
3617 #define GCC_NORETURN /* nothing */
3620 #define GCC_UNUSED /* nothing */
3623 if test "$GCC" = yes
3625 { echo "$as_me:3625: checking for $CC __attribute__ directives..." >&5
3626 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
3627 cat > conftest.$ac_ext <<EOF
3628 #line 3628 "${as_me:-configure}"
3629 #include "confdefs.h"
3630 #include "conftest.h"
3631 #include "conftest.i"
3633 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
3635 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
3638 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
3640 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
3642 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
3643 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
3644 extern void foo(void) GCC_NORETURN;
3645 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
3647 cf_printf_attribute=no
3648 cf_scanf_attribute=no
3649 for cf_attribute in scanf printf unused noreturn
3652 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3654 cf_directive="__attribute__(($cf_attribute))"
3655 echo "checking for $CC $cf_directive" 1>&5
3657 case $cf_attribute in #(vi
3659 cf_printf_attribute=yes
3660 cat >conftest.h <<EOF
3661 #define GCC_$cf_ATTRIBUTE 1
3665 cf_scanf_attribute=yes
3666 cat >conftest.h <<EOF
3667 #define GCC_$cf_ATTRIBUTE 1
3671 cat >conftest.h <<EOF
3672 #define GCC_$cf_ATTRIBUTE $cf_directive
3677 if { (eval echo "$as_me:3677: \"$ac_compile\"") >&5
3678 (eval $ac_compile) 2>&5
3680 echo "$as_me:3680: \$? = $ac_status" >&5
3681 (exit $ac_status); }; then
3682 test -n "$verbose" && echo "$as_me:3682: result: ... $cf_attribute" >&5
3683 echo "${ECHO_T}... $cf_attribute" >&6
3684 cat conftest.h >>confdefs.h
3685 case $cf_attribute in #(vi
3687 if test "$cf_printf_attribute" = no ; then
3688 cat >>confdefs.h <<EOF
3689 #define GCC_PRINTFLIKE(fmt,var) /* nothing */
3692 cat >>confdefs.h <<EOF
3693 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
3698 if test "$cf_scanf_attribute" = no ; then
3699 cat >>confdefs.h <<EOF
3700 #define GCC_SCANFLIKE(fmt,var) /* nothing */
3703 cat >>confdefs.h <<EOF
3704 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
3712 fgrep define conftest.i >>confdefs.h
3719 if test "$GCC" = yes ; then
3722 echo "$as_me:3722: checking if this is really Intel C compiler" >&5
3723 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
3724 cf_save_CFLAGS="$CFLAGS"
3725 CFLAGS="$CFLAGS -no-gcc"
3726 cat >conftest.$ac_ext <<_ACEOF
3727 #line 3727 "configure"
3728 #include "confdefs.h"
3734 #ifdef __INTEL_COMPILER
3743 rm -f conftest.$ac_objext
3744 if { (eval echo "$as_me:3744: \"$ac_compile\"") >&5
3745 (eval $ac_compile) 2>&5
3747 echo "$as_me:3747: \$? = $ac_status" >&5
3748 (exit $ac_status); } &&
3749 { ac_try='test -s conftest.$ac_objext'
3750 { (eval echo "$as_me:3750: \"$ac_try\"") >&5
3753 echo "$as_me:3753: \$? = $ac_status" >&5
3754 (exit $ac_status); }; }; then
3756 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
3759 echo "$as_me: failed program was:" >&5
3760 cat conftest.$ac_ext >&5
3762 rm -f conftest.$ac_objext conftest.$ac_ext
3763 CFLAGS="$cf_save_CFLAGS"
3764 echo "$as_me:3764: result: $INTEL_COMPILER" >&5
3765 echo "${ECHO_T}$INTEL_COMPILER" >&6
3770 cat > conftest.$ac_ext <<EOF
3771 #line 3771 "${as_me:-configure}"
3772 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
3775 if test "$INTEL_COMPILER" = yes
3777 # The "-wdXXX" options suppress warnings:
3778 # remark #1419: external declaration in primary source file
3779 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
3780 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
3781 # remark #193: zero used for undefined preprocessing identifier
3782 # remark #593: variable "curs_sb_left_arrow" was set but never used
3783 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
3784 # remark #869: parameter "tw" was never referenced
3785 # remark #981: operands are evaluated in unspecified order
3786 # warning #279: controlling expression is constant
3788 { echo "$as_me:3788: checking for $CC warning options..." >&5
3789 echo "$as_me: checking for $CC warning options..." >&6;}
3790 cf_save_CFLAGS="$CFLAGS"
3791 EXTRA_CFLAGS="-Wall"
3803 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
3804 if { (eval echo "$as_me:3804: \"$ac_compile\"") >&5
3805 (eval $ac_compile) 2>&5
3807 echo "$as_me:3807: \$? = $ac_status" >&5
3808 (exit $ac_status); }; then
3809 test -n "$verbose" && echo "$as_me:3809: result: ... -$cf_opt" >&5
3810 echo "${ECHO_T}... -$cf_opt" >&6
3811 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
3814 CFLAGS="$cf_save_CFLAGS"
3816 elif test "$GCC" = yes
3818 { echo "$as_me:3818: checking for $CC warning options..." >&5
3819 echo "$as_me: checking for $CC warning options..." >&6;}
3820 cf_save_CFLAGS="$CFLAGS"
3823 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
3824 for cf_opt in W Wall \
3825 Wbad-function-cast \
3829 Wmissing-declarations \
3830 Wmissing-prototypes \
3834 Wstrict-prototypes \
3835 Wundef $cf_warn_CONST
3837 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
3838 if { (eval echo "$as_me:3838: \"$ac_compile\"") >&5
3839 (eval $ac_compile) 2>&5
3841 echo "$as_me:3841: \$? = $ac_status" >&5
3842 (exit $ac_status); }; then
3843 test -n "$verbose" && echo "$as_me:3843: result: ... -$cf_opt" >&5
3844 echo "${ECHO_T}... -$cf_opt" >&6
3845 case $cf_opt in #(vi
3847 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
3850 case $GCC_VERSION in
3852 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
3854 echo "${as_me:-configure}:3854: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
3860 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
3863 CFLAGS="$cf_save_CFLAGS"
3870 # Check whether --with-curses-dir or --without-curses-dir was given.
3871 if test "${with_curses_dir+set}" = set; then
3872 withval="$with_curses_dir"
3874 if test "x$prefix" != xNONE; then
3875 cf_path_syntax="$prefix"
3877 cf_path_syntax="$ac_default_prefix"
3880 case ".$withval" in #(vi
3881 .\$\(*\)*|.\'*\'*) #(vi
3885 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3888 eval withval="$withval"
3889 case ".$withval" in #(vi
3891 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
3896 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
3899 { { echo "$as_me:3899: error: expected a pathname, not \"$withval\"" >&5
3900 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
3901 { (exit 1); exit 1; }; }
3905 cf_cv_curses_dir=$withval
3910 # Check whether --with-5lib or --without-5lib was given.
3911 if test "${with_5lib+set}" = set; then
3912 withval="$with_5lib"
3913 LIBS="-L/usr/5lib $LIBS"
3914 CPPFLAGS="$CPPFLAGS -I/usr/5include"
3917 # Check whether --with-ncursesw or --without-ncursesw was given.
3918 if test "${with_ncursesw+set}" = set; then
3919 withval="$with_ncursesw"
3920 cf_cv_screen=ncursesw
3923 # Check whether --with-ncurses or --without-ncurses was given.
3924 if test "${with_ncurses+set}" = set; then
3925 withval="$with_ncurses"
3926 cf_cv_screen=ncurses
3929 # Check whether --with-pdcurses or --without-pdcurses was given.
3930 if test "${with_pdcurses+set}" = set; then
3931 withval="$with_pdcurses"
3932 cf_cv_screen=pdcurses
3937 case $cf_cv_screen in
3940 echo "$as_me:3940: checking for extra include directories" >&5
3941 echo $ECHO_N "checking for extra include directories... $ECHO_C" >&6
3942 if test "${cf_cv_curses_incdir+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3946 cf_cv_curses_incdir=no
3947 case $host_os in #(vi
3949 test -d /usr/include/curses_colr && \
3950 cf_cv_curses_incdir="-I/usr/include/curses_colr"
3953 test -d /usr/5lib && \
3954 test -d /usr/5include && \
3955 cf_cv_curses_incdir="-I/usr/5include"
3960 echo "$as_me:3960: result: $cf_cv_curses_incdir" >&5
3961 echo "${ECHO_T}$cf_cv_curses_incdir" >&6
3962 test "$cf_cv_curses_incdir" != no && CPPFLAGS="$CPPFLAGS $cf_cv_curses_incdir"
3964 echo "$as_me:3964: checking if we have identified curses headers" >&5
3965 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
3966 if test "${cf_cv_ncurses_header+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3970 cf_cv_ncurses_header=none
3973 ncurses.h ncurses/curses.h ncurses/ncurses.h
3975 cat >conftest.$ac_ext <<_ACEOF
3976 #line 3976 "configure"
3977 #include "confdefs.h"
3978 #include <${cf_header}>
3982 initscr(); tgoto("?", 0,0)
3987 rm -f conftest.$ac_objext
3988 if { (eval echo "$as_me:3988: \"$ac_compile\"") >&5
3989 (eval $ac_compile) 2>&5
3991 echo "$as_me:3991: \$? = $ac_status" >&5
3992 (exit $ac_status); } &&
3993 { ac_try='test -s conftest.$ac_objext'
3994 { (eval echo "$as_me:3994: \"$ac_try\"") >&5
3997 echo "$as_me:3997: \$? = $ac_status" >&5
3998 (exit $ac_status); }; }; then
3999 cf_cv_ncurses_header=$cf_header; break
4001 echo "$as_me: failed program was:" >&5
4002 cat conftest.$ac_ext >&5
4004 rm -f conftest.$ac_objext conftest.$ac_ext
4008 echo "$as_me:4008: result: $cf_cv_ncurses_header" >&5
4009 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
4011 if test "$cf_cv_ncurses_header" = none ; then
4012 { { echo "$as_me:4012: error: No curses header-files found" >&5
4013 echo "$as_me: error: No curses header-files found" >&2;}
4014 { (exit 1); exit 1; }; }
4017 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
4019 for ac_header in $cf_cv_ncurses_header
4021 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4022 echo "$as_me:4022: checking for $ac_header" >&5
4023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4025 echo $ECHO_N "(cached) $ECHO_C" >&6
4027 cat >conftest.$ac_ext <<_ACEOF
4028 #line 4028 "configure"
4029 #include "confdefs.h"
4030 #include <$ac_header>
4032 if { (eval echo "$as_me:4032: \"$ac_cpp conftest.$ac_ext\"") >&5
4033 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4035 egrep -v '^ *\+' conftest.er1 >conftest.err
4037 cat conftest.err >&5
4038 echo "$as_me:4038: \$? = $ac_status" >&5
4039 (exit $ac_status); } >/dev/null; then
4040 if test -s conftest.err; then
4041 ac_cpp_err=$ac_c_preproc_warn_flag
4048 if test -z "$ac_cpp_err"; then
4049 eval "$as_ac_Header=yes"
4051 echo "$as_me: failed program was:" >&5
4052 cat conftest.$ac_ext >&5
4053 eval "$as_ac_Header=no"
4055 rm -f conftest.err conftest.$ac_ext
4057 echo "$as_me:4057: result: `eval echo '${'$as_ac_Header'}'`" >&5
4058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4060 cat >>confdefs.h <<EOF
4061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4067 echo "$as_me:4067: checking for terminfo header" >&5
4068 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
4069 if test "${cf_cv_term_header+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 case ${cf_cv_ncurses_header} in #(vi
4074 */ncurses.h|*/ncursesw.h) #(vi
4075 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
4078 cf_term_header=term.h
4082 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
4084 cat >conftest.$ac_ext <<_ACEOF
4085 #line 4085 "configure"
4086 #include "confdefs.h"
4088 #include <${cf_cv_ncurses_header:-curses.h}>
4094 int x = auto_left_margin
4099 rm -f conftest.$ac_objext
4100 if { (eval echo "$as_me:4100: \"$ac_compile\"") >&5
4101 (eval $ac_compile) 2>&5
4103 echo "$as_me:4103: \$? = $ac_status" >&5
4104 (exit $ac_status); } &&
4105 { ac_try='test -s conftest.$ac_objext'
4106 { (eval echo "$as_me:4106: \"$ac_try\"") >&5
4109 echo "$as_me:4109: \$? = $ac_status" >&5
4110 (exit $ac_status); }; }; then
4112 cf_cv_term_header="$cf_test"
4114 echo "$as_me: failed program was:" >&5
4115 cat conftest.$ac_ext >&5
4117 cf_cv_term_header=unknown
4120 rm -f conftest.$ac_objext conftest.$ac_ext
4121 test "$cf_cv_term_header" != unknown && break
4125 echo "$as_me:4125: result: $cf_cv_term_header" >&5
4126 echo "${ECHO_T}$cf_cv_term_header" >&6
4128 # Set definitions to allow ifdef'ing to accommodate subdirectories
4130 case $cf_cv_term_header in # (vi
4132 cat >>confdefs.h <<\EOF
4133 #define HAVE_TERM_H 1
4139 case $cf_cv_term_header in # (vi
4140 ncurses/term.h) #(vi
4141 cat >>confdefs.h <<\EOF
4142 #define HAVE_NCURSES_TERM_H 1
4147 cat >>confdefs.h <<\EOF
4148 #define HAVE_NCURSESW_TERM_H 1
4154 echo "$as_me:4154: checking for ncurses version" >&5
4155 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
4156 if test "${cf_cv_ncurses_version+set}" = set; then
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
4160 cf_cv_ncurses_version=no
4163 if test "$cross_compiling" = yes; then
4165 # This will not work if the preprocessor splits the line after the
4166 # Autoconf token. The 'unproto' program does that.
4167 cat > conftest.$ac_ext <<EOF
4168 #include <${cf_cv_ncurses_header:-curses.h}>
4170 #ifdef NCURSES_VERSION
4171 Autoconf NCURSES_VERSION
4179 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
4180 { (eval echo "$as_me:4180: \"$cf_try\"") >&5
4183 echo "$as_me:4183: \$? = $ac_status" >&5
4184 (exit $ac_status); }
4185 if test -f conftest.out ; then
4186 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
4187 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
4192 cat >conftest.$ac_ext <<_ACEOF
4193 #line 4193 "configure"
4194 #include "confdefs.h"
4196 #include <${cf_cv_ncurses_header:-curses.h}>
4200 FILE *fp = fopen("$cf_tempfile", "w");
4201 #ifdef NCURSES_VERSION
4202 # ifdef NCURSES_VERSION_PATCH
4203 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
4205 fprintf(fp, "%s\n", NCURSES_VERSION);
4209 fprintf(fp, "old\n");
4214 ${cf_cv_main_return:-return}(0);
4217 rm -f conftest$ac_exeext
4218 if { (eval echo "$as_me:4218: \"$ac_link\"") >&5
4219 (eval $ac_link) 2>&5
4221 echo "$as_me:4221: \$? = $ac_status" >&5
4222 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4223 { (eval echo "$as_me:4223: \"$ac_try\"") >&5
4226 echo "$as_me:4226: \$? = $ac_status" >&5
4227 (exit $ac_status); }; }; then
4229 cf_cv_ncurses_version=`cat $cf_tempfile`
4231 echo "$as_me: program exited with status $ac_status" >&5
4232 echo "$as_me: failed program was:" >&5
4233 cat conftest.$ac_ext >&5
4235 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4240 echo "$as_me:4240: result: $cf_cv_ncurses_version" >&5
4241 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
4242 test "$cf_cv_ncurses_version" = no || cat >>confdefs.h <<\EOF
4246 echo "$as_me:4246: checking if we have identified curses libraries" >&5
4247 echo $ECHO_N "checking if we have identified curses libraries... $ECHO_C" >&6
4248 cat >conftest.$ac_ext <<_ACEOF
4249 #line 4249 "configure"
4250 #include "confdefs.h"
4251 #include <${cf_cv_ncurses_header:-curses.h}>
4255 initscr(); tgoto("?", 0,0)
4260 rm -f conftest.$ac_objext conftest$ac_exeext
4261 if { (eval echo "$as_me:4261: \"$ac_link\"") >&5
4262 (eval $ac_link) 2>&5
4264 echo "$as_me:4264: \$? = $ac_status" >&5
4265 (exit $ac_status); } &&
4266 { ac_try='test -s conftest$ac_exeext'
4267 { (eval echo "$as_me:4267: \"$ac_try\"") >&5
4270 echo "$as_me:4270: \$? = $ac_status" >&5
4271 (exit $ac_status); }; }; then
4274 echo "$as_me: failed program was:" >&5
4275 cat conftest.$ac_ext >&5
4278 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4279 echo "$as_me:4279: result: $cf_result" >&5
4280 echo "${ECHO_T}$cf_result" >&6
4282 if test "$cf_result" = no ; then
4283 case $host_os in #(vi
4285 echo "$as_me:4285: checking for tgoto in -lmytinfo" >&5
4286 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
4287 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
4288 echo $ECHO_N "(cached) $ECHO_C" >&6
4290 ac_check_lib_save_LIBS=$LIBS
4291 LIBS="-lmytinfo $LIBS"
4292 cat >conftest.$ac_ext <<_ACEOF
4293 #line 4293 "configure"
4294 #include "confdefs.h"
4296 /* Override any gcc2 internal prototype to avoid an error. */
4300 /* We use char because int might match the return type of a gcc2
4301 builtin and then its argument prototype would still apply. */
4311 rm -f conftest.$ac_objext conftest$ac_exeext
4312 if { (eval echo "$as_me:4312: \"$ac_link\"") >&5
4313 (eval $ac_link) 2>&5
4315 echo "$as_me:4315: \$? = $ac_status" >&5
4316 (exit $ac_status); } &&
4317 { ac_try='test -s conftest$ac_exeext'
4318 { (eval echo "$as_me:4318: \"$ac_try\"") >&5
4321 echo "$as_me:4321: \$? = $ac_status" >&5
4322 (exit $ac_status); }; }; then
4323 ac_cv_lib_mytinfo_tgoto=yes
4325 echo "$as_me: failed program was:" >&5
4326 cat conftest.$ac_ext >&5
4327 ac_cv_lib_mytinfo_tgoto=no
4329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4330 LIBS=$ac_check_lib_save_LIBS
4332 echo "$as_me:4332: result: $ac_cv_lib_mytinfo_tgoto" >&5
4333 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
4334 if test $ac_cv_lib_mytinfo_tgoto = yes; then
4335 LIBS="-lmytinfo $LIBS"
4340 echo "$as_me:4340: checking for initscr in -lcur_colr" >&5
4341 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
4342 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
4345 ac_check_lib_save_LIBS=$LIBS
4346 LIBS="-lcur_colr $LIBS"
4347 cat >conftest.$ac_ext <<_ACEOF
4348 #line 4348 "configure"
4349 #include "confdefs.h"
4351 /* Override any gcc2 internal prototype to avoid an error. */
4355 /* We use char because int might match the return type of a gcc2
4356 builtin and then its argument prototype would still apply. */
4366 rm -f conftest.$ac_objext conftest$ac_exeext
4367 if { (eval echo "$as_me:4367: \"$ac_link\"") >&5
4368 (eval $ac_link) 2>&5
4370 echo "$as_me:4370: \$? = $ac_status" >&5
4371 (exit $ac_status); } &&
4372 { ac_try='test -s conftest$ac_exeext'
4373 { (eval echo "$as_me:4373: \"$ac_try\"") >&5
4376 echo "$as_me:4376: \$? = $ac_status" >&5
4377 (exit $ac_status); }; }; then
4378 ac_cv_lib_cur_colr_initscr=yes
4380 echo "$as_me: failed program was:" >&5
4381 cat conftest.$ac_ext >&5
4382 ac_cv_lib_cur_colr_initscr=no
4384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4385 LIBS=$ac_check_lib_save_LIBS
4387 echo "$as_me:4387: result: $ac_cv_lib_cur_colr_initscr" >&5
4388 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
4389 if test $ac_cv_lib_cur_colr_initscr = yes; then
4391 LIBS="-lcur_colr $LIBS"
4392 ac_cv_func_initscr=yes
4396 echo "$as_me:4396: checking for initscr in -lHcurses" >&5
4397 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
4398 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
4399 echo $ECHO_N "(cached) $ECHO_C" >&6
4401 ac_check_lib_save_LIBS=$LIBS
4402 LIBS="-lHcurses $LIBS"
4403 cat >conftest.$ac_ext <<_ACEOF
4404 #line 4404 "configure"
4405 #include "confdefs.h"
4407 /* Override any gcc2 internal prototype to avoid an error. */
4411 /* We use char because int might match the return type of a gcc2
4412 builtin and then its argument prototype would still apply. */
4422 rm -f conftest.$ac_objext conftest$ac_exeext
4423 if { (eval echo "$as_me:4423: \"$ac_link\"") >&5
4424 (eval $ac_link) 2>&5
4426 echo "$as_me:4426: \$? = $ac_status" >&5
4427 (exit $ac_status); } &&
4428 { ac_try='test -s conftest$ac_exeext'
4429 { (eval echo "$as_me:4429: \"$ac_try\"") >&5
4432 echo "$as_me:4432: \$? = $ac_status" >&5
4433 (exit $ac_status); }; }; then
4434 ac_cv_lib_Hcurses_initscr=yes
4436 echo "$as_me: failed program was:" >&5
4437 cat conftest.$ac_ext >&5
4438 ac_cv_lib_Hcurses_initscr=no
4440 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4441 LIBS=$ac_check_lib_save_LIBS
4443 echo "$as_me:4443: result: $ac_cv_lib_Hcurses_initscr" >&5
4444 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
4445 if test $ac_cv_lib_Hcurses_initscr = yes; then
4447 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
4448 LIBS="-lHcurses $LIBS"
4449 CPPFLAGS="$CPPFLAGS -D__HP_CURSES -D_HP_CURSES"
4450 ac_cv_func_initscr=yes
4457 linux*) # Suse Linux does not follow /usr/lib convention
4459 if test -n "/lib" ; then
4460 for cf_add_libdir in /lib
4462 if test $cf_add_libdir = /usr/lib ; then
4464 elif test -d $cf_add_libdir
4467 if test -n "$LDFLAGS$LIBS" ; then
4468 # a loop is needed to ensure we can add subdirs of existing dirs
4469 for cf_test_libdir in $LDFLAGS $LIBS ; do
4470 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
4471 cf_have_libdir=yes; break
4475 if test "$cf_have_libdir" = no ; then
4476 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
4478 echo "${as_me:-configure}:4478: testing adding $cf_add_libdir to library-path ..." 1>&5
4480 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
4488 if test -d /usr/5lib ; then
4490 if test -n "/usr/5lib" ; then
4491 for cf_add_libdir in /usr/5lib
4493 if test $cf_add_libdir = /usr/lib ; then
4495 elif test -d $cf_add_libdir
4498 if test -n "$LDFLAGS$LIBS" ; then
4499 # a loop is needed to ensure we can add subdirs of existing dirs
4500 for cf_test_libdir in $LDFLAGS $LIBS ; do
4501 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
4502 cf_have_libdir=yes; break
4506 if test "$cf_have_libdir" = no ; then
4507 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
4509 echo "${as_me:-configure}:4509: testing adding $cf_add_libdir to library-path ..." 1>&5
4511 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
4517 LIBS="-lcurses -ltermcap $LIBS"
4519 ac_cv_func_initscr=yes
4523 if test ".$ac_cv_func_initscr" != .yes ; then
4524 cf_save_LIBS="$LIBS"
4528 if test ".${cf_cv_ncurses_version:-no}" != .no
4530 cf_check_list="ncurses curses cursesX"
4532 cf_check_list="cursesX curses ncurses"
4535 # Check for library containing tgoto. Do this before curses library
4536 # because it may be needed to link the test-case for initscr.
4537 echo "$as_me:4537: checking for tgoto" >&5
4538 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
4539 if test "${ac_cv_func_tgoto+set}" = set; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4542 cat >conftest.$ac_ext <<_ACEOF
4543 #line 4543 "configure"
4544 #include "confdefs.h"
4545 /* System header to define __stub macros and hopefully few prototypes,
4546 which can conflict with char tgoto (); below. */
4548 /* Override any gcc2 internal prototype to avoid an error. */
4552 /* We use char because int might match the return type of a gcc2
4553 builtin and then its argument prototype would still apply. */
4560 /* The GNU C library defines this for functions which it implements
4561 to always fail with ENOSYS. Some functions are actually named
4562 something starting with __ and the normal name is an alias. */
4563 #if defined (__stub_tgoto) || defined (__stub___tgoto)
4573 rm -f conftest.$ac_objext conftest$ac_exeext
4574 if { (eval echo "$as_me:4574: \"$ac_link\"") >&5
4575 (eval $ac_link) 2>&5
4577 echo "$as_me:4577: \$? = $ac_status" >&5
4578 (exit $ac_status); } &&
4579 { ac_try='test -s conftest$ac_exeext'
4580 { (eval echo "$as_me:4580: \"$ac_try\"") >&5
4583 echo "$as_me:4583: \$? = $ac_status" >&5
4584 (exit $ac_status); }; }; then
4585 ac_cv_func_tgoto=yes
4587 echo "$as_me: failed program was:" >&5
4588 cat conftest.$ac_ext >&5
4591 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4593 echo "$as_me:4593: result: $ac_cv_func_tgoto" >&5
4594 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
4595 if test $ac_cv_func_tgoto = yes; then
4596 cf_term_lib=predefined
4599 for cf_term_lib in $cf_check_list termcap termlib unknown
4601 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
4602 echo "$as_me:4602: checking for tgoto in -l$cf_term_lib" >&5
4603 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
4604 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
4605 echo $ECHO_N "(cached) $ECHO_C" >&6
4607 ac_check_lib_save_LIBS=$LIBS
4608 LIBS="-l$cf_term_lib $LIBS"
4609 cat >conftest.$ac_ext <<_ACEOF
4610 #line 4610 "configure"
4611 #include "confdefs.h"
4613 /* Override any gcc2 internal prototype to avoid an error. */
4617 /* We use char because int might match the return type of a gcc2
4618 builtin and then its argument prototype would still apply. */
4628 rm -f conftest.$ac_objext conftest$ac_exeext
4629 if { (eval echo "$as_me:4629: \"$ac_link\"") >&5
4630 (eval $ac_link) 2>&5
4632 echo "$as_me:4632: \$? = $ac_status" >&5
4633 (exit $ac_status); } &&
4634 { ac_try='test -s conftest$ac_exeext'
4635 { (eval echo "$as_me:4635: \"$ac_try\"") >&5
4638 echo "$as_me:4638: \$? = $ac_status" >&5
4639 (exit $ac_status); }; }; then
4640 eval "$as_ac_Lib=yes"
4642 echo "$as_me: failed program was:" >&5
4643 cat conftest.$ac_ext >&5
4644 eval "$as_ac_Lib=no"
4646 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4647 LIBS=$ac_check_lib_save_LIBS
4649 echo "$as_me:4649: result: `eval echo '${'$as_ac_Lib'}'`" >&5
4650 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
4651 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
4659 # Check for library containing initscr
4660 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
4661 for cf_curs_lib in $cf_check_list xcurses jcurses pdcurses unknown
4663 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
4664 echo "$as_me:4664: checking for initscr in -l$cf_curs_lib" >&5
4665 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
4666 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
4667 echo $ECHO_N "(cached) $ECHO_C" >&6
4669 ac_check_lib_save_LIBS=$LIBS
4670 LIBS="-l$cf_curs_lib $LIBS"
4671 cat >conftest.$ac_ext <<_ACEOF
4672 #line 4672 "configure"
4673 #include "confdefs.h"
4675 /* Override any gcc2 internal prototype to avoid an error. */
4679 /* We use char because int might match the return type of a gcc2
4680 builtin and then its argument prototype would still apply. */
4690 rm -f conftest.$ac_objext conftest$ac_exeext
4691 if { (eval echo "$as_me:4691: \"$ac_link\"") >&5
4692 (eval $ac_link) 2>&5
4694 echo "$as_me:4694: \$? = $ac_status" >&5
4695 (exit $ac_status); } &&
4696 { ac_try='test -s conftest$ac_exeext'
4697 { (eval echo "$as_me:4697: \"$ac_try\"") >&5
4700 echo "$as_me:4700: \$? = $ac_status" >&5
4701 (exit $ac_status); }; }; then
4702 eval "$as_ac_Lib=yes"
4704 echo "$as_me: failed program was:" >&5
4705 cat conftest.$ac_ext >&5
4706 eval "$as_ac_Lib=no"
4708 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4709 LIBS=$ac_check_lib_save_LIBS
4711 echo "$as_me:4711: result: `eval echo '${'$as_ac_Lib'}'`" >&5
4712 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
4713 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
4718 test $cf_curs_lib = unknown && { { echo "$as_me:4718: error: no curses library found" >&5
4719 echo "$as_me: error: no curses library found" >&2;}
4720 { (exit 1); exit 1; }; }
4722 LIBS="-l$cf_curs_lib $cf_save_LIBS"
4723 if test "$cf_term_lib" = unknown ; then
4724 echo "$as_me:4724: checking if we can link with $cf_curs_lib library" >&5
4725 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
4726 cat >conftest.$ac_ext <<_ACEOF
4727 #line 4727 "configure"
4728 #include "confdefs.h"
4729 #include <${cf_cv_ncurses_header:-curses.h}>
4738 rm -f conftest.$ac_objext conftest$ac_exeext
4739 if { (eval echo "$as_me:4739: \"$ac_link\"") >&5
4740 (eval $ac_link) 2>&5
4742 echo "$as_me:4742: \$? = $ac_status" >&5
4743 (exit $ac_status); } &&
4744 { ac_try='test -s conftest$ac_exeext'
4745 { (eval echo "$as_me:4745: \"$ac_try\"") >&5
4748 echo "$as_me:4748: \$? = $ac_status" >&5
4749 (exit $ac_status); }; }; then
4752 echo "$as_me: failed program was:" >&5
4753 cat conftest.$ac_ext >&5
4756 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4757 echo "$as_me:4757: result: $cf_result" >&5
4758 echo "${ECHO_T}$cf_result" >&6
4759 test $cf_result = no && { { echo "$as_me:4759: error: Cannot link curses library" >&5
4760 echo "$as_me: error: Cannot link curses library" >&2;}
4761 { (exit 1); exit 1; }; }
4762 elif test "$cf_curs_lib" = "$cf_term_lib" ; then