2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.20101001.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Avoid depending upon Character Ranges.
11 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits='0123456789'
15 as_cr_alnum=$as_cr_Letters$as_cr_digits
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20 # Sed expression to map a string onto a valid CPP name.
21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31 # Name of the executable.
32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
34 if expr a : '\(a\)' >/dev/null 2>&1; then
40 rm -f conf$$ conf$$.exe conf$$.file
42 if ln -s conf$$.file conf$$ 2>/dev/null; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe; then
46 # Don't use ln at all; we don't have any links
51 elif ln conf$$.file conf$$ 2>/dev/null; then
56 rm -f conf$$ conf$$.exe conf$$.file
58 as_executable_p="test -f"
60 # Support unset when possible.
61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
78 # We need space, tab and new line, in precisely that order.
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too.
89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
96 ac_default_prefix=/usr/local
100 SHELL=${CONFIG_SHELL-/bin/sh}
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete. It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
107 ac_unique_file="ncurses.c"
108 # Factoring default headers for most tests.
109 ac_includes_default="\
112 # include <sys/types.h>
115 # include <sys/stat.h>
126 # if !STDC_HEADERS && HAVE_MEMORY_H
132 # include <strings.h>
135 # include <inttypes.h>
145 # Initialize some variables set by options.
147 ac_init_version=false
148 # The variables have the same names as the options, with
149 # dashes changed to underlines.
157 program_transform_name=s,x,x,
165 # Installation directory options.
166 # These are left unexpanded so users can "make install exec_prefix=/foo"
167 # and all the variables that are supposed to be based on exec_prefix
168 # by default will actually change.
169 # Use braces instead of parens because sh, perl, etc. also accept them.
170 bindir='${exec_prefix}/bin'
171 sbindir='${exec_prefix}/sbin'
172 libexecdir='${exec_prefix}/libexec'
173 datadir='${prefix}/share'
174 sysconfdir='${prefix}/etc'
175 sharedstatedir='${prefix}/com'
176 localstatedir='${prefix}/var'
177 libdir='${exec_prefix}/lib'
178 includedir='${prefix}/include'
179 oldincludedir='/usr/include'
180 infodir='${prefix}/info'
181 mandir='${prefix}/man'
183 # Identity of this package.
193 # If the previous option needs an argument, assign it.
194 if test -n "$ac_prev"; then
195 eval "$ac_prev=\$ac_option"
200 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
202 # Accept the important Cygnus configure options, so we can diagnose typos.
206 -bindir | --bindir | --bindi | --bind | --bin | --bi)
208 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
211 -build | --build | --buil | --bui | --bu)
212 ac_prev=build_alias ;;
213 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
214 build_alias=$ac_optarg ;;
216 -cache-file | --cache-file | --cache-fil | --cache-fi \
217 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
218 ac_prev=cache_file ;;
219 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
220 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
221 cache_file=$ac_optarg ;;
224 cache_file=config.cache ;;
226 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
228 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
230 datadir=$ac_optarg ;;
232 -disable-* | --disable-*)
233 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
234 # Reject names that are not valid shell variable names.
235 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
236 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
237 { (exit 1); exit 1; }; }
238 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
239 eval "enable_$ac_feature=no" ;;
241 -enable-* | --enable-*)
242 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
243 # Reject names that are not valid shell variable names.
244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246 { (exit 1); exit 1; }; }
247 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
249 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252 eval "enable_$ac_feature='$ac_optarg'" ;;
254 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
255 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
256 | --exec | --exe | --ex)
257 ac_prev=exec_prefix ;;
258 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
259 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
260 | --exec=* | --exe=* | --ex=*)
261 exec_prefix=$ac_optarg ;;
263 -gas | --gas | --ga | --g)
264 # Obsolete; use --with-gas.
267 -help | --help | --hel | --he | -h)
269 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
270 ac_init_help=recursive ;;
271 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
272 ac_init_help=short ;;
274 -host | --host | --hos | --ho)
275 ac_prev=host_alias ;;
276 -host=* | --host=* | --hos=* | --ho=*)
277 host_alias=$ac_optarg ;;
279 -includedir | --includedir | --includedi | --included | --include \
280 | --includ | --inclu | --incl | --inc)
281 ac_prev=includedir ;;
282 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
283 | --includ=* | --inclu=* | --incl=* | --inc=*)
284 includedir=$ac_optarg ;;
286 -infodir | --infodir | --infodi | --infod | --info | --inf)
288 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
289 infodir=$ac_optarg ;;
291 -libdir | --libdir | --libdi | --libd)
293 -libdir=* | --libdir=* | --libdi=* | --libd=*)
296 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
297 | --libexe | --libex | --libe)
298 ac_prev=libexecdir ;;
299 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
300 | --libexe=* | --libex=* | --libe=*)
301 libexecdir=$ac_optarg ;;
303 -localstatedir | --localstatedir | --localstatedi | --localstated \
304 | --localstate | --localstat | --localsta | --localst \
305 | --locals | --local | --loca | --loc | --lo)
306 ac_prev=localstatedir ;;
307 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
308 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
309 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
310 localstatedir=$ac_optarg ;;
312 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
314 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
318 # Obsolete; use --without-fp.
321 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
325 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
326 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
329 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
330 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
331 | --oldin | --oldi | --old | --ol | --o)
332 ac_prev=oldincludedir ;;
333 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
334 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
335 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
336 oldincludedir=$ac_optarg ;;
338 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
340 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
343 -program-prefix | --program-prefix | --program-prefi | --program-pref \
344 | --program-pre | --program-pr | --program-p)
345 ac_prev=program_prefix ;;
346 -program-prefix=* | --program-prefix=* | --program-prefi=* \
347 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
348 program_prefix=$ac_optarg ;;
350 -program-suffix | --program-suffix | --program-suffi | --program-suff \
351 | --program-suf | --program-su | --program-s)
352 ac_prev=program_suffix ;;
353 -program-suffix=* | --program-suffix=* | --program-suffi=* \
354 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
355 program_suffix=$ac_optarg ;;
357 -program-transform-name | --program-transform-name \
358 | --program-transform-nam | --program-transform-na \
359 | --program-transform-n | --program-transform- \
360 | --program-transform | --program-transfor \
361 | --program-transfo | --program-transf \
362 | --program-trans | --program-tran \
363 | --progr-tra | --program-tr | --program-t)
364 ac_prev=program_transform_name ;;
365 -program-transform-name=* | --program-transform-name=* \
366 | --program-transform-nam=* | --program-transform-na=* \
367 | --program-transform-n=* | --program-transform-=* \
368 | --program-transform=* | --program-transfor=* \
369 | --program-transfo=* | --program-transf=* \
370 | --program-trans=* | --program-tran=* \
371 | --progr-tra=* | --program-tr=* | --program-t=*)
372 program_transform_name=$ac_optarg ;;
374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
375 | -silent | --silent | --silen | --sile | --sil)
378 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
380 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
382 sbindir=$ac_optarg ;;
384 -sharedstatedir | --sharedstatedir | --sharedstatedi \
385 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
386 | --sharedst | --shareds | --shared | --share | --shar \
388 ac_prev=sharedstatedir ;;
389 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
390 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
391 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
393 sharedstatedir=$ac_optarg ;;
395 -site | --site | --sit)
397 -site=* | --site=* | --sit=*)
400 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
402 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
405 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
406 | --syscon | --sysco | --sysc | --sys | --sy)
407 ac_prev=sysconfdir ;;
408 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
409 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
410 sysconfdir=$ac_optarg ;;
412 -target | --target | --targe | --targ | --tar | --ta | --t)
413 ac_prev=target_alias ;;
414 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
415 target_alias=$ac_optarg ;;
417 -v | -verbose | --verbose | --verbos | --verbo | --verb)
420 -version | --version | --versio | --versi | --vers | -V)
424 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
425 # Reject names that are not valid shell variable names.
426 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
427 { echo "$as_me: error: invalid package name: $ac_package" >&2
428 { (exit 1); exit 1; }; }
429 ac_package=`echo $ac_package| sed 's/-/_/g'`
431 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
434 eval "with_$ac_package='$ac_optarg'" ;;
436 -without-* | --without-*)
437 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
438 # Reject names that are not valid shell variable names.
439 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
440 { echo "$as_me: error: invalid package name: $ac_package" >&2
441 { (exit 1); exit 1; }; }
442 ac_package=`echo $ac_package | sed 's/-/_/g'`
443 eval "with_$ac_package=no" ;;
446 # Obsolete; use --with-x.
449 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
450 | --x-incl | --x-inc | --x-in | --x-i)
451 ac_prev=x_includes ;;
452 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
453 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
454 x_includes=$ac_optarg ;;
456 -x-libraries | --x-libraries | --x-librarie | --x-librari \
457 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
458 ac_prev=x_libraries ;;
459 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
460 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
461 x_libraries=$ac_optarg ;;
463 -*) { echo "$as_me: error: unrecognized option: $ac_option
464 Try \`$0 --help' for more information." >&2
465 { (exit 1); exit 1; }; }
469 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
470 # Reject names that are not valid shell variable names.
471 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
472 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
473 { (exit 1); exit 1; }; }
474 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
475 eval "$ac_envvar='$ac_optarg'"
479 # FIXME: should be removed in autoconf 3.0.
480 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
481 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
482 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
483 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
489 if test -n "$ac_prev"; then
490 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
491 { echo "$as_me: error: missing argument to $ac_option" >&2
492 { (exit 1); exit 1; }; }
495 # Be sure to have absolute paths.
496 for ac_var in exec_prefix prefix
498 eval ac_val=$`echo $ac_var`
500 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
501 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
502 { (exit 1); exit 1; }; };;
506 # Be sure to have absolute paths.
507 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
508 localstatedir libdir includedir oldincludedir infodir mandir
510 eval ac_val=$`echo $ac_var`
512 [\\/$]* | ?:[\\/]* ) ;;
513 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
514 { (exit 1); exit 1; }; };;
518 # There might be people who depend on the old broken behavior: `$host'
519 # used to hold the argument of --host etc.
524 # FIXME: should be removed in autoconf 3.0.
525 if test "x$host_alias" != x; then
526 if test "x$build_alias" = x; then
527 cross_compiling=maybe
528 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
529 If a cross compiler is detected then cross compile mode will be used." >&2
530 elif test "x$build_alias" != "x$host_alias"; then
536 test -n "$host_alias" && ac_tool_prefix=$host_alias-
538 test "$silent" = yes && exec 6>/dev/null
540 # Find the source files, if location was not specified.
541 if test -z "$srcdir"; then
542 ac_srcdir_defaulted=yes
543 # Try the directory containing this script, then its parent.
545 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
546 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
548 if test ! -r $srcdir/$ac_unique_file; then
552 ac_srcdir_defaulted=no
554 if test ! -r $srcdir/$ac_unique_file; then
555 if test "$ac_srcdir_defaulted" = yes; then
556 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
557 { (exit 1); exit 1; }; }
559 { echo "$as_me: error: cannot find sources in $srcdir" >&2
560 { (exit 1); exit 1; }; }
563 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
564 ac_env_build_alias_set=${build_alias+set}
565 ac_env_build_alias_value=$build_alias
566 ac_cv_env_build_alias_set=${build_alias+set}
567 ac_cv_env_build_alias_value=$build_alias
568 ac_env_host_alias_set=${host_alias+set}
569 ac_env_host_alias_value=$host_alias
570 ac_cv_env_host_alias_set=${host_alias+set}
571 ac_cv_env_host_alias_value=$host_alias
572 ac_env_target_alias_set=${target_alias+set}
573 ac_env_target_alias_value=$target_alias
574 ac_cv_env_target_alias_set=${target_alias+set}
575 ac_cv_env_target_alias_value=$target_alias
576 ac_env_CC_set=${CC+set}
578 ac_cv_env_CC_set=${CC+set}
579 ac_cv_env_CC_value=$CC
580 ac_env_CFLAGS_set=${CFLAGS+set}
581 ac_env_CFLAGS_value=$CFLAGS
582 ac_cv_env_CFLAGS_set=${CFLAGS+set}
583 ac_cv_env_CFLAGS_value=$CFLAGS
584 ac_env_LDFLAGS_set=${LDFLAGS+set}
585 ac_env_LDFLAGS_value=$LDFLAGS
586 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
587 ac_cv_env_LDFLAGS_value=$LDFLAGS
588 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
589 ac_env_CPPFLAGS_value=$CPPFLAGS
590 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
591 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
592 ac_env_CPP_set=${CPP+set}
593 ac_env_CPP_value=$CPP
594 ac_cv_env_CPP_set=${CPP+set}
595 ac_cv_env_CPP_value=$CPP
598 # Report the --help message.
600 if test "$ac_init_help" = "long"; then
601 # Omit some internal or obsolete options to make the list less imposing.
602 # This message is too long to be a string in the A/UX 3.1 sh.
604 \`configure' configures this package to adapt to many kinds of systems.
606 Usage: $0 [OPTION]... [VAR=VALUE]...
608 To assign environment variables (e.g., CC, CFLAGS...), specify them as
609 VAR=VALUE. See below for descriptions of some of the useful variables.
611 Defaults for the options are specified in brackets.
614 -h, --help display this help and exit
615 --help=short display options specific to this package
616 --help=recursive display the short help of all the included packages
617 -V, --version display version information and exit
618 -q, --quiet, --silent do not print \`checking...' messages
619 --cache-file=FILE cache test results in FILE [disabled]
620 -C, --config-cache alias for \`--cache-file=config.cache'
621 -n, --no-create do not create output files
622 --srcdir=DIR find the sources in DIR [configure dir or \`..']
627 Installation directories:
628 --prefix=PREFIX install architecture-independent files in PREFIX
630 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
633 By default, \`make install' will install all the files in
634 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
635 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
636 for instance \`--prefix=\$HOME'.
638 For better control, use the options below.
640 Fine tuning of the installation directories:
641 --bindir=DIR user executables [EPREFIX/bin]
642 --sbindir=DIR system admin executables [EPREFIX/sbin]
643 --libexecdir=DIR program executables [EPREFIX/libexec]
644 --datadir=DIR read-only architecture-independent data [PREFIX/share]
645 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
646 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
647 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
648 --libdir=DIR object code libraries [EPREFIX/lib]
649 --includedir=DIR C header files [PREFIX/include]
650 --oldincludedir=DIR C header files for non-gcc [/usr/include]
651 --infodir=DIR info documentation [PREFIX/info]
652 --mandir=DIR man documentation [PREFIX/man]
658 --program-prefix=PREFIX prepend PREFIX to installed program names
659 --program-suffix=SUFFIX append SUFFIX to installed program names
660 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
663 --x-includes=DIR X include files are in DIR
664 --x-libraries=DIR X library files are in DIR
667 --build=BUILD configure for building on BUILD [guessed]
668 --host=HOST build programs to run on HOST [BUILD]
672 if test -n "$ac_init_help"; then
677 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
678 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
681 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
682 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
684 --disable-echo display "compiling" commands
685 --enable-warnings test: turn on gcc compiler warnings
686 --with-curses-dir=DIR directory in which (n)curses is installed
687 --with-5lib use SunOS sysv-libraries
688 --with-ncursesw use wide ncurses-libraries (installed)
689 --with-ncurses use ncurses-libraries (installed)
690 --with-pdcurses compile/link with pdcurses X11 library
691 --with-Xaw3d link with Xaw 3d library
692 --with-neXtaw link with neXT Athena library
693 --with-XawPlus link with Athena-Plus library
694 --with-pkg-config{=path} enable/disable use of pkg-config
695 --with-x use the X Window System
696 --with-ncurses-wrap-prefix naming-prefix for ncurses wrapped-variables
698 Some influential environment variables:
699 CC C compiler command
700 CFLAGS C compiler flags
701 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
702 nonstandard directory <lib dir>
703 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
704 headers in a nonstandard directory <include dir>
707 Use these variables to override the choices made by `configure' or to help
708 it to find libraries and programs with nonstandard names/locations.
713 if test "$ac_init_help" = "recursive"; then
714 # If there are subdirs, report their specific --help.
716 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
718 # A "../" for each directory in /$ac_subdir.
719 ac_dots=`echo $ac_subdir |
720 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
723 .) # No --srcdir option. We are building in place.
724 ac_sub_srcdir=$srcdir ;;
725 [\\/]* | ?:[\\/]* ) # Absolute path.
726 ac_sub_srcdir=$srcdir/$ac_subdir ;;
728 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
731 # Check for guested configure; otherwise get Cygnus style configure.
732 if test -f $ac_sub_srcdir/configure.gnu; then
734 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
735 elif test -f $ac_sub_srcdir/configure; then
737 $SHELL $ac_sub_srcdir/configure --help=recursive
738 elif test -f $ac_sub_srcdir/configure.ac ||
739 test -f $ac_sub_srcdir/configure.in; then
743 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
749 test -n "$ac_init_help" && exit 0
750 if $ac_init_version; then
753 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
754 Free Software Foundation, Inc.
755 This configure script is free software; the Free Software Foundation
756 gives unlimited permission to copy, distribute and modify it.
762 This file contains any messages produced by compilers while
763 running configure, to aid debugging if configure makes a mistake.
765 It was created by $as_me, which was
766 generated by GNU Autoconf 2.52.20101001. Invocation command line was
777 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
778 uname -m = `(uname -m) 2>/dev/null || echo unknown`
779 uname -r = `(uname -r) 2>/dev/null || echo unknown`
780 uname -s = `(uname -s) 2>/dev/null || echo unknown`
781 uname -v = `(uname -v) 2>/dev/null || echo unknown`
783 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
784 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
786 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
787 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
788 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
789 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
790 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
791 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
792 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
806 # Keep a trace of the command line.
807 # Strip out --no-create and --no-recursion so they do not pile up.
808 # Also quote any args containing shell meta-characters.
814 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
815 | --no-cr | --no-c) ;;
816 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
817 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
818 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
819 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
820 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
822 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
825 # Get rid of the leading space.
828 # When interrupted or exit'd, cleanup temporary files, and complete
829 # config.log. We remove comments because anyway the quotes in there
830 # would cause problems or look ugly.
832 # Save into config.log some information that might help in debugging.
834 echo "## ----------------- ##" >&5
835 echo "## Cache variables. ##" >&5
836 echo "## ----------------- ##" >&5
838 # The following way of writing the cache mishandles newlines in values,
841 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
844 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
845 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
849 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
853 sed "/^$/d" confdefs.h >conftest.log
854 if test -s conftest.log; then
856 echo "## ------------ ##" >&5
857 echo "## confdefs.h. ##" >&5
858 echo "## ------------ ##" >&5
863 test "$ac_signal" != 0 &&
864 echo "$as_me: caught signal $ac_signal" >&5
865 echo "$as_me: exit $exit_status" >&5
866 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
869 for ac_signal in 1 2 13 15; do
870 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
874 # confdefs.h avoids OS command line length limits that DEFS can exceed.
875 rm -rf conftest* confdefs.h
876 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
879 # Let the site file select an alternate cache file if it wants to.
880 # Prefer explicitly selected file to automatically selected ones.
881 if test -z "$CONFIG_SITE"; then
882 if test "x$prefix" != xNONE; then
883 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
885 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
888 for ac_site_file in $CONFIG_SITE; do
889 if test -r "$ac_site_file"; then
890 { echo "$as_me:890: loading site script $ac_site_file" >&5
891 echo "$as_me: loading site script $ac_site_file" >&6;}
892 cat "$ac_site_file" >&5
897 if test -r "$cache_file"; then
898 # Some versions of bash will fail to source /dev/null (special
899 # files actually), so we avoid doing that.
900 if test -f "$cache_file"; then
901 { echo "$as_me:901: loading cache $cache_file" >&5
902 echo "$as_me: loading cache $cache_file" >&6;}
904 [\\/]* | ?:[\\/]* ) . $cache_file;;
909 { echo "$as_me:909: creating cache $cache_file" >&5
910 echo "$as_me: creating cache $cache_file" >&6;}
914 # Check that the precious variables saved in the cache have kept the same
916 ac_cache_corrupted=false
917 for ac_var in `(set) 2>&1 |
918 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
919 eval ac_old_set=\$ac_cv_env_${ac_var}_set
920 eval ac_new_set=\$ac_env_${ac_var}_set
921 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
922 eval ac_new_val="\$ac_env_${ac_var}_value"
923 case $ac_old_set,$ac_new_set in
925 { echo "$as_me:925: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
926 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
927 ac_cache_corrupted=: ;;
929 { echo "$as_me:929: error: \`$ac_var' was not set in the previous run" >&5
930 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
931 ac_cache_corrupted=: ;;
934 if test "x$ac_old_val" != "x$ac_new_val"; then
935 { echo "$as_me:935: error: \`$ac_var' has changed since the previous run:" >&5
936 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
937 { echo "$as_me:937: former value: $ac_old_val" >&5
938 echo "$as_me: former value: $ac_old_val" >&2;}
939 { echo "$as_me:939: current value: $ac_new_val" >&5
940 echo "$as_me: current value: $ac_new_val" >&2;}
944 # Pass precious variables to config.status. It doesn't matter if
945 # we pass some twice (in addition to the command line arguments).
946 if test "$ac_new_set" = set; then
948 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
949 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
950 ac_configure_args="$ac_configure_args '$ac_arg'"
952 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
957 if $ac_cache_corrupted; then
958 { echo "$as_me:958: error: changes in the environment can compromise the build" >&5
959 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
960 { { echo "$as_me:960: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
961 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
962 { (exit 1); exit 1; }; }
966 ac_cpp='$CPP $CPPFLAGS'
967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
970 ac_main_return=return
972 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
973 *c*,-n*) ECHO_N= ECHO_C='
975 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
976 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
978 echo "#! $SHELL" >conftest.sh
979 echo "exit 0" >>conftest.sh
981 if { (echo "$as_me:981: PATH=\".;.\"; conftest.sh") >&5
982 (PATH=".;."; conftest.sh) 2>&5
984 echo "$as_me:984: \$? = $ac_status" >&5
985 (exit $ac_status); }; then
986 ac_path_separator=';'
990 PATH_SEPARATOR="$ac_path_separator"
993 ac_config_headers="$ac_config_headers ncurses_cfg.h:ncurses_tst.hin"
995 test -f config.guess || ( test -f ../config.guess && cp ../config.guess ./ )
997 test -f config.sub || ( test -f ../config.sub && cp ../config.sub ./ )
1000 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1001 if test -f $ac_dir/install-sh; then
1003 ac_install_sh="$ac_aux_dir/install-sh -c"
1005 elif test -f $ac_dir/install.sh; then
1007 ac_install_sh="$ac_aux_dir/install.sh -c"
1009 elif test -f $ac_dir/shtool; then
1011 ac_install_sh="$ac_aux_dir/shtool install -c"
1015 if test -z "$ac_aux_dir"; then
1016 { { echo "$as_me:1016: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1017 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1018 { (exit 1); exit 1; }; }
1020 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1021 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1022 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1024 # Make sure we can run config.sub.
1025 $ac_config_sub sun4 >/dev/null 2>&1 ||
1026 { { echo "$as_me:1026: error: cannot run $ac_config_sub" >&5
1027 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1028 { (exit 1); exit 1; }; }
1030 echo "$as_me:1030: checking build system type" >&5
1031 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1032 if test "${ac_cv_build+set}" = set; then
1033 echo $ECHO_N "(cached) $ECHO_C" >&6
1035 ac_cv_build_alias=$build_alias
1036 test -z "$ac_cv_build_alias" &&
1037 ac_cv_build_alias=`$ac_config_guess`
1038 test -z "$ac_cv_build_alias" &&
1039 { { echo "$as_me:1039: error: cannot guess build type; you must specify one" >&5
1040 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1041 { (exit 1); exit 1; }; }
1042 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1043 { { echo "$as_me:1043: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1044 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1045 { (exit 1); exit 1; }; }
1048 echo "$as_me:1048: result: $ac_cv_build" >&5
1049 echo "${ECHO_T}$ac_cv_build" >&6
1051 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1052 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1053 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1055 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1056 echo "$as_me:1056: checking host system type" >&5
1057 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1058 if test "${ac_cv_host+set}" = set; then
1059 echo $ECHO_N "(cached) $ECHO_C" >&6
1061 ac_cv_host_alias=$host_alias
1062 test -z "$ac_cv_host_alias" &&
1063 ac_cv_host_alias=$ac_cv_build_alias
1064 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1065 { { echo "$as_me:1065: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1066 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1067 { (exit 1); exit 1; }; }
1070 echo "$as_me:1070: result: $ac_cv_host" >&5
1071 echo "${ECHO_T}$ac_cv_host" >&6
1073 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1074 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1075 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1077 system_name="$host_os"
1079 system_name="`(uname -s -r) 2>/dev/null`"
1080 if test -z "$system_name" ; then
1081 system_name="`(hostname) 2>/dev/null`"
1084 test -n "$system_name" && cat >>confdefs.h <<EOF
1085 #define SYSTEM_NAME "$system_name"
1088 if test "${cf_cv_system_name+set}" = set; then
1089 echo $ECHO_N "(cached) $ECHO_C" >&6
1091 cf_cv_system_name="$system_name"
1094 test -z "$system_name" && system_name="$cf_cv_system_name"
1095 test -n "$cf_cv_system_name" && echo "$as_me:1095: result: Configuring for $cf_cv_system_name" >&5
1096 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1098 if test ".$system_name" != ".$cf_cv_system_name" ; then
1099 echo "$as_me:1099: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1100 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1101 { { echo "$as_me:1101: error: \"Please remove config.cache and try again.\"" >&5
1102 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1103 { (exit 1); exit 1; }; }
1106 test "$program_prefix" != NONE &&
1107 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1108 # Use a double $ so make ignores it.
1109 test "$program_suffix" != NONE &&
1110 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1111 # Double any \ or $. echo might interpret backslashes.
1112 # By default was `s,x,x', remove it if useless.
1113 cat <<\_ACEOF >conftest.sed
1114 s/[\\$]/&&/g;s/;s,x,x,$//
1116 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1119 echo "$as_me:1119: checking whether ${MAKE-make} sets \${MAKE}" >&5
1120 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1121 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1122 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1123 echo $ECHO_N "(cached) $ECHO_C" >&6
1125 cat >conftest.make <<\EOF
1127 @echo 'ac_maketemp="${MAKE}"'
1129 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1130 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1131 if test -n "$ac_maketemp"; then
1132 eval ac_cv_prog_make_${ac_make}_set=yes
1134 eval ac_cv_prog_make_${ac_make}_set=no
1138 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1139 echo "$as_me:1139: result: yes" >&5
1140 echo "${ECHO_T}yes" >&6
1143 echo "$as_me:1143: result: no" >&5
1144 echo "${ECHO_T}no" >&6
1145 SET_MAKE="MAKE=${MAKE-make}"
1149 ac_cpp='$CPP $CPPFLAGS'
1150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1153 ac_main_return=return
1154 if test -n "$ac_tool_prefix"; then
1155 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1156 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1157 echo "$as_me:1157: checking for $ac_word" >&5
1158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1159 if test "${ac_cv_prog_CC+set}" = set; then
1160 echo $ECHO_N "(cached) $ECHO_C" >&6
1162 if test -n "$CC"; then
1163 ac_cv_prog_CC="$CC" # Let the user override the test.
1165 ac_save_IFS=$IFS; IFS=$ac_path_separator
1167 for ac_dir in $ac_dummy; do
1169 test -z "$ac_dir" && ac_dir=.
1170 $as_executable_p "$ac_dir/$ac_word" || continue
1171 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1172 echo "$as_me:1172: found $ac_dir/$ac_word" >&5
1179 if test -n "$CC"; then
1180 echo "$as_me:1180: result: $CC" >&5
1181 echo "${ECHO_T}$CC" >&6
1183 echo "$as_me:1183: result: no" >&5
1184 echo "${ECHO_T}no" >&6
1188 if test -z "$ac_cv_prog_CC"; then
1190 # Extract the first word of "gcc", so it can be a program name with args.
1191 set dummy gcc; ac_word=$2
1192 echo "$as_me:1192: checking for $ac_word" >&5
1193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1194 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1195 echo $ECHO_N "(cached) $ECHO_C" >&6
1197 if test -n "$ac_ct_CC"; then
1198 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1200 ac_save_IFS=$IFS; IFS=$ac_path_separator
1202 for ac_dir in $ac_dummy; do
1204 test -z "$ac_dir" && ac_dir=.
1205 $as_executable_p "$ac_dir/$ac_word" || continue
1206 ac_cv_prog_ac_ct_CC="gcc"
1207 echo "$as_me:1207: found $ac_dir/$ac_word" >&5
1213 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1214 if test -n "$ac_ct_CC"; then
1215 echo "$as_me:1215: result: $ac_ct_CC" >&5
1216 echo "${ECHO_T}$ac_ct_CC" >&6
1218 echo "$as_me:1218: result: no" >&5
1219 echo "${ECHO_T}no" >&6
1227 if test -z "$CC"; then
1228 if test -n "$ac_tool_prefix"; then
1229 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1230 set dummy ${ac_tool_prefix}cc; ac_word=$2
1231 echo "$as_me:1231: checking for $ac_word" >&5
1232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1233 if test "${ac_cv_prog_CC+set}" = set; then
1234 echo $ECHO_N "(cached) $ECHO_C" >&6
1236 if test -n "$CC"; then
1237 ac_cv_prog_CC="$CC" # Let the user override the test.
1239 ac_save_IFS=$IFS; IFS=$ac_path_separator
1241 for ac_dir in $ac_dummy; do
1243 test -z "$ac_dir" && ac_dir=.
1244 $as_executable_p "$ac_dir/$ac_word" || continue
1245 ac_cv_prog_CC="${ac_tool_prefix}cc"
1246 echo "$as_me:1246: found $ac_dir/$ac_word" >&5
1253 if test -n "$CC"; then
1254 echo "$as_me:1254: result: $CC" >&5
1255 echo "${ECHO_T}$CC" >&6
1257 echo "$as_me:1257: result: no" >&5
1258 echo "${ECHO_T}no" >&6
1262 if test -z "$ac_cv_prog_CC"; then
1264 # Extract the first word of "cc", so it can be a program name with args.
1265 set dummy cc; ac_word=$2
1266 echo "$as_me:1266: checking for $ac_word" >&5
1267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1268 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1269 echo $ECHO_N "(cached) $ECHO_C" >&6
1271 if test -n "$ac_ct_CC"; then
1272 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1274 ac_save_IFS=$IFS; IFS=$ac_path_separator
1276 for ac_dir in $ac_dummy; do
1278 test -z "$ac_dir" && ac_dir=.
1279 $as_executable_p "$ac_dir/$ac_word" || continue
1280 ac_cv_prog_ac_ct_CC="cc"
1281 echo "$as_me:1281: found $ac_dir/$ac_word" >&5
1287 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1288 if test -n "$ac_ct_CC"; then
1289 echo "$as_me:1289: result: $ac_ct_CC" >&5
1290 echo "${ECHO_T}$ac_ct_CC" >&6
1292 echo "$as_me:1292: result: no" >&5
1293 echo "${ECHO_T}no" >&6
1302 if test -z "$CC"; then
1303 # Extract the first word of "cc", so it can be a program name with args.
1304 set dummy cc; ac_word=$2
1305 echo "$as_me:1305: checking for $ac_word" >&5
1306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1307 if test "${ac_cv_prog_CC+set}" = set; then
1308 echo $ECHO_N "(cached) $ECHO_C" >&6
1310 if test -n "$CC"; then
1311 ac_cv_prog_CC="$CC" # Let the user override the test.
1314 ac_save_IFS=$IFS; IFS=$ac_path_separator
1316 for ac_dir in $ac_dummy; do
1318 test -z "$ac_dir" && ac_dir=.
1319 $as_executable_p "$ac_dir/$ac_word" || continue
1320 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1321 ac_prog_rejected=yes
1325 echo "$as_me:1325: found $ac_dir/$ac_word" >&5
1329 if test $ac_prog_rejected = yes; then
1330 # We found a bogon in the path, so make sure we never use it.
1331 set dummy $ac_cv_prog_CC
1333 if test $# != 0; then
1334 # We chose a different compiler from the bogus one.
1335 # However, it has the same basename, so the bogon will be chosen
1336 # first if we set CC to just the basename; use the full file name.
1338 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1346 if test -n "$CC"; then
1347 echo "$as_me:1347: result: $CC" >&5
1348 echo "${ECHO_T}$CC" >&6
1350 echo "$as_me:1350: result: no" >&5
1351 echo "${ECHO_T}no" >&6
1355 if test -z "$CC"; then
1356 if test -n "$ac_tool_prefix"; then
1359 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1360 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1361 echo "$as_me:1361: checking for $ac_word" >&5
1362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1363 if test "${ac_cv_prog_CC+set}" = set; then
1364 echo $ECHO_N "(cached) $ECHO_C" >&6
1366 if test -n "$CC"; then
1367 ac_cv_prog_CC="$CC" # Let the user override the test.
1369 ac_save_IFS=$IFS; IFS=$ac_path_separator
1371 for ac_dir in $ac_dummy; do
1373 test -z "$ac_dir" && ac_dir=.
1374 $as_executable_p "$ac_dir/$ac_word" || continue
1375 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1376 echo "$as_me:1376: found $ac_dir/$ac_word" >&5
1383 if test -n "$CC"; then
1384 echo "$as_me:1384: result: $CC" >&5
1385 echo "${ECHO_T}$CC" >&6
1387 echo "$as_me:1387: result: no" >&5
1388 echo "${ECHO_T}no" >&6
1391 test -n "$CC" && break
1394 if test -z "$CC"; then
1398 # Extract the first word of "$ac_prog", so it can be a program name with args.
1399 set dummy $ac_prog; ac_word=$2
1400 echo "$as_me:1400: checking for $ac_word" >&5
1401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1402 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1403 echo $ECHO_N "(cached) $ECHO_C" >&6
1405 if test -n "$ac_ct_CC"; then
1406 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1408 ac_save_IFS=$IFS; IFS=$ac_path_separator
1410 for ac_dir in $ac_dummy; do
1412 test -z "$ac_dir" && ac_dir=.
1413 $as_executable_p "$ac_dir/$ac_word" || continue
1414 ac_cv_prog_ac_ct_CC="$ac_prog"
1415 echo "$as_me:1415: found $ac_dir/$ac_word" >&5
1421 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1422 if test -n "$ac_ct_CC"; then
1423 echo "$as_me:1423: result: $ac_ct_CC" >&5
1424 echo "${ECHO_T}$ac_ct_CC" >&6
1426 echo "$as_me:1426: result: no" >&5
1427 echo "${ECHO_T}no" >&6
1430 test -n "$ac_ct_CC" && break
1438 test -z "$CC" && { { echo "$as_me:1438: error: no acceptable cc found in \$PATH" >&5
1439 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1440 { (exit 1); exit 1; }; }
1442 # Provide some information about the compiler.
1443 echo "$as_me:1443:" \
1444 "checking for C compiler version" >&5
1445 ac_compiler=`set X $ac_compile; echo $2`
1446 { (eval echo "$as_me:1446: \"$ac_compiler --version </dev/null >&5\"") >&5
1447 (eval $ac_compiler --version </dev/null >&5) 2>&5
1449 echo "$as_me:1449: \$? = $ac_status" >&5
1450 (exit $ac_status); }
1451 { (eval echo "$as_me:1451: \"$ac_compiler -v </dev/null >&5\"") >&5
1452 (eval $ac_compiler -v </dev/null >&5) 2>&5
1454 echo "$as_me:1454: \$? = $ac_status" >&5
1455 (exit $ac_status); }
1456 { (eval echo "$as_me:1456: \"$ac_compiler -V </dev/null >&5\"") >&5
1457 (eval $ac_compiler -V </dev/null >&5) 2>&5
1459 echo "$as_me:1459: \$? = $ac_status" >&5
1460 (exit $ac_status); }
1462 cat >conftest.$ac_ext <<_ACEOF
1463 #line 1463 "configure"
1464 #include "confdefs.h"
1474 ac_clean_files_save=$ac_clean_files
1475 ac_clean_files="$ac_clean_files a.out a.exe"
1476 # Try to create an executable without -o first, disregard a.out.
1477 # It will help us diagnose broken compilers, and finding out an intuition
1479 echo "$as_me:1479: checking for C compiler default output" >&5
1480 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1481 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1482 if { (eval echo "$as_me:1482: \"$ac_link_default\"") >&5
1483 (eval $ac_link_default) 2>&5
1485 echo "$as_me:1485: \$? = $ac_status" >&5
1486 (exit $ac_status); }; then
1487 # Find the output, starting from the most likely. This scheme is
1488 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1490 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1491 ls a.out conftest 2>/dev/null;
1492 ls a.* conftest.* 2>/dev/null`; do
1494 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1495 a.out ) # We found the default executable, but exeext='' is most
1498 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1499 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1506 echo "$as_me: failed program was:" >&5
1507 cat conftest.$ac_ext >&5
1508 { { echo "$as_me:1508: error: C compiler cannot create executables" >&5
1509 echo "$as_me: error: C compiler cannot create executables" >&2;}
1510 { (exit 77); exit 77; }; }
1513 ac_exeext=$ac_cv_exeext
1514 echo "$as_me:1514: result: $ac_file" >&5
1515 echo "${ECHO_T}$ac_file" >&6
1517 # Check the compiler produces executables we can run. If not, either
1518 # the compiler is broken, or we cross compile.
1519 echo "$as_me:1519: checking whether the C compiler works" >&5
1520 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1521 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1522 # If not cross compiling, check that we can run a simple program.
1523 if test "$cross_compiling" != yes; then
1524 if { ac_try='./$ac_file'
1525 { (eval echo "$as_me:1525: \"$ac_try\"") >&5
1528 echo "$as_me:1528: \$? = $ac_status" >&5
1529 (exit $ac_status); }; }; then
1532 if test "$cross_compiling" = maybe; then
1535 { { echo "$as_me:1535: error: cannot run C compiled programs.
1536 If you meant to cross compile, use \`--host'." >&5
1537 echo "$as_me: error: cannot run C compiled programs.
1538 If you meant to cross compile, use \`--host'." >&2;}
1539 { (exit 1); exit 1; }; }
1543 echo "$as_me:1543: result: yes" >&5
1544 echo "${ECHO_T}yes" >&6
1546 rm -f a.out a.exe conftest$ac_cv_exeext
1547 ac_clean_files=$ac_clean_files_save
1548 # Check the compiler produces executables we can run. If not, either
1549 # the compiler is broken, or we cross compile.
1550 echo "$as_me:1550: checking whether we are cross compiling" >&5
1551 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1552 echo "$as_me:1552: result: $cross_compiling" >&5
1553 echo "${ECHO_T}$cross_compiling" >&6
1555 echo "$as_me:1555: checking for executable suffix" >&5
1556 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1557 if { (eval echo "$as_me:1557: \"$ac_link\"") >&5
1558 (eval $ac_link) 2>&5
1560 echo "$as_me:1560: \$? = $ac_status" >&5
1561 (exit $ac_status); }; then
1562 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1563 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1564 # work properly (i.e., refer to `conftest.exe'), while it won't with
1566 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1568 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1569 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1576 { { echo "$as_me:1576: error: cannot compute EXEEXT: cannot compile and link" >&5
1577 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1578 { (exit 1); exit 1; }; }
1581 rm -f conftest$ac_cv_exeext
1582 echo "$as_me:1582: result: $ac_cv_exeext" >&5
1583 echo "${ECHO_T}$ac_cv_exeext" >&6
1585 rm -f conftest.$ac_ext
1586 EXEEXT=$ac_cv_exeext
1588 echo "$as_me:1588: checking for object suffix" >&5
1589 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1590 if test "${ac_cv_objext+set}" = set; then
1591 echo $ECHO_N "(cached) $ECHO_C" >&6
1593 cat >conftest.$ac_ext <<_ACEOF
1594 #line 1594 "configure"
1595 #include "confdefs.h"
1605 rm -f conftest.o conftest.obj
1606 if { (eval echo "$as_me:1606: \"$ac_compile\"") >&5
1607 (eval $ac_compile) 2>&5
1609 echo "$as_me:1609: \$? = $ac_status" >&5
1610 (exit $ac_status); }; then
1611 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1613 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1614 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1619 echo "$as_me: failed program was:" >&5
1620 cat conftest.$ac_ext >&5
1621 { { echo "$as_me:1621: error: cannot compute OBJEXT: cannot compile" >&5
1622 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1623 { (exit 1); exit 1; }; }
1626 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1628 echo "$as_me:1628: result: $ac_cv_objext" >&5
1629 echo "${ECHO_T}$ac_cv_objext" >&6
1630 OBJEXT=$ac_cv_objext
1632 echo "$as_me:1632: checking whether we are using the GNU C compiler" >&5
1633 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1634 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1635 echo $ECHO_N "(cached) $ECHO_C" >&6
1637 cat >conftest.$ac_ext <<_ACEOF
1638 #line 1638 "configure"
1639 #include "confdefs.h"
1652 rm -f conftest.$ac_objext
1653 if { (eval echo "$as_me:1653: \"$ac_compile\"") >&5
1654 (eval $ac_compile) 2>&5
1656 echo "$as_me:1656: \$? = $ac_status" >&5
1657 (exit $ac_status); } &&
1658 { ac_try='test -s conftest.$ac_objext'
1659 { (eval echo "$as_me:1659: \"$ac_try\"") >&5
1662 echo "$as_me:1662: \$? = $ac_status" >&5
1663 (exit $ac_status); }; }; then
1666 echo "$as_me: failed program was:" >&5
1667 cat conftest.$ac_ext >&5
1670 rm -f conftest.$ac_objext conftest.$ac_ext
1671 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1674 echo "$as_me:1674: result: $ac_cv_c_compiler_gnu" >&5
1675 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1676 GCC=`test $ac_compiler_gnu = yes && echo yes`
1677 ac_test_CFLAGS=${CFLAGS+set}
1678 ac_save_CFLAGS=$CFLAGS
1680 echo "$as_me:1680: checking whether $CC accepts -g" >&5
1681 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1682 if test "${ac_cv_prog_cc_g+set}" = set; then
1683 echo $ECHO_N "(cached) $ECHO_C" >&6
1685 cat >conftest.$ac_ext <<_ACEOF
1686 #line 1686 "configure"
1687 #include "confdefs.h"
1697 rm -f conftest.$ac_objext
1698 if { (eval echo "$as_me:1698: \"$ac_compile\"") >&5
1699 (eval $ac_compile) 2>&5
1701 echo "$as_me:1701: \$? = $ac_status" >&5
1702 (exit $ac_status); } &&
1703 { ac_try='test -s conftest.$ac_objext'
1704 { (eval echo "$as_me:1704: \"$ac_try\"") >&5
1707 echo "$as_me:1707: \$? = $ac_status" >&5
1708 (exit $ac_status); }; }; then
1711 echo "$as_me: failed program was:" >&5
1712 cat conftest.$ac_ext >&5
1715 rm -f conftest.$ac_objext conftest.$ac_ext
1717 echo "$as_me:1717: result: $ac_cv_prog_cc_g" >&5
1718 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1719 if test "$ac_test_CFLAGS" = set; then
1720 CFLAGS=$ac_save_CFLAGS
1721 elif test $ac_cv_prog_cc_g = yes; then
1722 if test "$GCC" = yes; then
1728 if test "$GCC" = yes; then
1734 # Some people use a C++ compiler to compile C. Since we use `exit',
1735 # in C++ we need to declare it. In case someone uses the same compiler
1736 # for both compiling C and C++ we need to have the C++ compiler decide
1737 # the declaration of exit, since it's the most demanding environment.
1738 cat >conftest.$ac_ext <<_ACEOF
1743 rm -f conftest.$ac_objext
1744 if { (eval echo "$as_me:1744: \"$ac_compile\"") >&5
1745 (eval $ac_compile) 2>&5
1747 echo "$as_me:1747: \$? = $ac_status" >&5
1748 (exit $ac_status); } &&
1749 { ac_try='test -s conftest.$ac_objext'
1750 { (eval echo "$as_me:1750: \"$ac_try\"") >&5
1753 echo "$as_me:1753: \$? = $ac_status" >&5
1754 (exit $ac_status); }; }; then
1755 for ac_declaration in \
1757 '#include <stdlib.h>' \
1758 'extern "C" void std::exit (int) throw (); using std::exit;' \
1759 'extern "C" void std::exit (int); using std::exit;' \
1760 'extern "C" void exit (int) throw ();' \
1761 'extern "C" void exit (int);' \
1764 cat >conftest.$ac_ext <<_ACEOF
1765 #line 1765 "configure"
1766 #include "confdefs.h"
1777 rm -f conftest.$ac_objext
1778 if { (eval echo "$as_me:1778: \"$ac_compile\"") >&5
1779 (eval $ac_compile) 2>&5
1781 echo "$as_me:1781: \$? = $ac_status" >&5
1782 (exit $ac_status); } &&
1783 { ac_try='test -s conftest.$ac_objext'
1784 { (eval echo "$as_me:1784: \"$ac_try\"") >&5
1787 echo "$as_me:1787: \$? = $ac_status" >&5
1788 (exit $ac_status); }; }; then
1791 echo "$as_me: failed program was:" >&5
1792 cat conftest.$ac_ext >&5
1795 rm -f conftest.$ac_objext conftest.$ac_ext
1796 cat >conftest.$ac_ext <<_ACEOF
1797 #line 1797 "configure"
1798 #include "confdefs.h"
1808 rm -f conftest.$ac_objext
1809 if { (eval echo "$as_me:1809: \"$ac_compile\"") >&5
1810 (eval $ac_compile) 2>&5
1812 echo "$as_me:1812: \$? = $ac_status" >&5
1813 (exit $ac_status); } &&
1814 { ac_try='test -s conftest.$ac_objext'
1815 { (eval echo "$as_me:1815: \"$ac_try\"") >&5
1818 echo "$as_me:1818: \$? = $ac_status" >&5
1819 (exit $ac_status); }; }; then
1822 echo "$as_me: failed program was:" >&5
1823 cat conftest.$ac_ext >&5
1825 rm -f conftest.$ac_objext conftest.$ac_ext
1828 if test -n "$ac_declaration"; then
1829 echo '#ifdef __cplusplus' >>confdefs.h
1830 echo $ac_declaration >>confdefs.h
1831 echo '#endif' >>confdefs.h
1835 echo "$as_me: failed program was:" >&5
1836 cat conftest.$ac_ext >&5
1838 rm -f conftest.$ac_objext conftest.$ac_ext
1840 ac_cpp='$CPP $CPPFLAGS'
1841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1844 ac_main_return=return
1847 ac_cpp='$CPP $CPPFLAGS'
1848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1851 ac_main_return=return
1852 echo "$as_me:1852: checking how to run the C preprocessor" >&5
1853 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1854 # On Suns, sometimes $CPP names a directory.
1855 if test -n "$CPP" && test -d "$CPP"; then
1858 if test -z "$CPP"; then
1859 if test "${ac_cv_prog_CPP+set}" = set; then
1860 echo $ECHO_N "(cached) $ECHO_C" >&6
1862 # Double quotes because CPP needs to be expanded
1863 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1866 for ac_c_preproc_warn_flag in '' yes
1868 # Use a header file that comes with gcc, so configuring glibc
1869 # with a fresh cross-compiler works.
1870 # On the NeXT, cc -E runs the code through the compiler's parser,
1871 # not just through cpp. "Syntax error" is here to catch this case.
1872 cat >conftest.$ac_ext <<_ACEOF
1873 #line 1873 "configure"
1874 #include "confdefs.h"
1878 if { (eval echo "$as_me:1878: \"$ac_cpp conftest.$ac_ext\"") >&5
1879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1881 egrep -v '^ *\+' conftest.er1 >conftest.err
1883 cat conftest.err >&5
1884 echo "$as_me:1884: \$? = $ac_status" >&5
1885 (exit $ac_status); } >/dev/null; then
1886 if test -s conftest.err; then
1887 ac_cpp_err=$ac_c_preproc_warn_flag
1894 if test -z "$ac_cpp_err"; then
1897 echo "$as_me: failed program was:" >&5
1898 cat conftest.$ac_ext >&5
1899 # Broken: fails on valid input.
1902 rm -f conftest.err conftest.$ac_ext
1904 # OK, works on sane cases. Now check whether non-existent headers
1905 # can be detected and how.
1906 cat >conftest.$ac_ext <<_ACEOF
1907 #line 1907 "configure"
1908 #include "confdefs.h"
1909 #include <ac_nonexistent.h>
1911 if { (eval echo "$as_me:1911: \"$ac_cpp conftest.$ac_ext\"") >&5
1912 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1914 egrep -v '^ *\+' conftest.er1 >conftest.err
1916 cat conftest.err >&5
1917 echo "$as_me:1917: \$? = $ac_status" >&5
1918 (exit $ac_status); } >/dev/null; then
1919 if test -s conftest.err; then
1920 ac_cpp_err=$ac_c_preproc_warn_flag
1927 if test -z "$ac_cpp_err"; then
1928 # Broken: success on invalid input.
1931 echo "$as_me: failed program was:" >&5
1932 cat conftest.$ac_ext >&5
1933 # Passes both tests.
1937 rm -f conftest.err conftest.$ac_ext
1940 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1941 rm -f conftest.err conftest.$ac_ext
1942 if $ac_preproc_ok; then
1954 echo "$as_me:1954: result: $CPP" >&5
1955 echo "${ECHO_T}$CPP" >&6
1957 for ac_c_preproc_warn_flag in '' yes
1959 # Use a header file that comes with gcc, so configuring glibc
1960 # with a fresh cross-compiler works.
1961 # On the NeXT, cc -E runs the code through the compiler's parser,
1962 # not just through cpp. "Syntax error" is here to catch this case.
1963 cat >conftest.$ac_ext <<_ACEOF
1964 #line 1964 "configure"
1965 #include "confdefs.h"
1969 if { (eval echo "$as_me:1969: \"$ac_cpp conftest.$ac_ext\"") >&5
1970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1972 egrep -v '^ *\+' conftest.er1 >conftest.err
1974 cat conftest.err >&5
1975 echo "$as_me:1975: \$? = $ac_status" >&5
1976 (exit $ac_status); } >/dev/null; then
1977 if test -s conftest.err; then
1978 ac_cpp_err=$ac_c_preproc_warn_flag
1985 if test -z "$ac_cpp_err"; then
1988 echo "$as_me: failed program was:" >&5
1989 cat conftest.$ac_ext >&5
1990 # Broken: fails on valid input.
1993 rm -f conftest.err conftest.$ac_ext
1995 # OK, works on sane cases. Now check whether non-existent headers
1996 # can be detected and how.
1997 cat >conftest.$ac_ext <<_ACEOF
1998 #line 1998 "configure"
1999 #include "confdefs.h"
2000 #include <ac_nonexistent.h>
2002 if { (eval echo "$as_me:2002: \"$ac_cpp conftest.$ac_ext\"") >&5
2003 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2005 egrep -v '^ *\+' conftest.er1 >conftest.err
2007 cat conftest.err >&5
2008 echo "$as_me:2008: \$? = $ac_status" >&5
2009 (exit $ac_status); } >/dev/null; then
2010 if test -s conftest.err; then
2011 ac_cpp_err=$ac_c_preproc_warn_flag
2018 if test -z "$ac_cpp_err"; then
2019 # Broken: success on invalid input.
2022 echo "$as_me: failed program was:" >&5
2023 cat conftest.$ac_ext >&5
2024 # Passes both tests.
2028 rm -f conftest.err conftest.$ac_ext
2031 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2032 rm -f conftest.err conftest.$ac_ext
2033 if $ac_preproc_ok; then
2036 { { echo "$as_me:2036: error: C preprocessor \"$CPP\" fails sanity check" >&5
2037 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2038 { (exit 1); exit 1; }; }
2042 ac_cpp='$CPP $CPPFLAGS'
2043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2046 ac_main_return=return
2048 for ac_prog in mawk gawk nawk awk
2050 # Extract the first word of "$ac_prog", so it can be a program name with args.
2051 set dummy $ac_prog; ac_word=$2
2052 echo "$as_me:2052: checking for $ac_word" >&5
2053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2054 if test "${ac_cv_prog_AWK+set}" = set; then
2055 echo $ECHO_N "(cached) $ECHO_C" >&6
2057 if test -n "$AWK"; then
2058 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2060 ac_save_IFS=$IFS; IFS=$ac_path_separator
2062 for ac_dir in $ac_dummy; do
2064 test -z "$ac_dir" && ac_dir=.
2065 $as_executable_p "$ac_dir/$ac_word" || continue
2066 ac_cv_prog_AWK="$ac_prog"
2067 echo "$as_me:2067: found $ac_dir/$ac_word" >&5
2074 if test -n "$AWK"; then
2075 echo "$as_me:2075: result: $AWK" >&5
2076 echo "${ECHO_T}$AWK" >&6
2078 echo "$as_me:2078: result: no" >&5
2079 echo "${ECHO_T}no" >&6
2082 test -n "$AWK" && break
2085 # Find a good install program. We prefer a C program (faster),
2086 # so one script is as good as another. But avoid the broken or
2087 # incompatible versions:
2088 # SysV /etc/install, /usr/sbin/install
2089 # SunOS /usr/etc/install
2090 # IRIX /sbin/install
2092 # AmigaOS /C/install, which installs bootblocks on floppy discs
2093 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2094 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2095 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2096 # ./install, which can be erroneously created by make from ./install.sh.
2097 echo "$as_me:2097: checking for a BSD compatible install" >&5
2098 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2099 if test -z "$INSTALL"; then
2100 if test "${ac_cv_path_install+set}" = set; then
2101 echo $ECHO_N "(cached) $ECHO_C" >&6
2103 ac_save_IFS=$IFS; IFS=$ac_path_separator
2104 for ac_dir in $PATH; do
2106 # Account for people who put trailing slashes in PATH elements.
2108 / | ./ | .// | /cC/* \
2109 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2112 # OSF1 and SCO ODT 3.0 have their own names for install.
2113 # Don't use installbsd from OSF since it installs stuff as root
2115 for ac_prog in ginstall scoinst install; do
2116 if $as_executable_p "$ac_dir/$ac_prog"; then
2117 if test $ac_prog = install &&
2118 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2119 # AIX install. It has an incompatible calling convention.
2121 elif test $ac_prog = install &&
2122 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2123 # program-specific install script used by HP pwplus--don't use.
2126 ac_cv_path_install="$ac_dir/$ac_prog -c"
2136 if test "${ac_cv_path_install+set}" = set; then
2137 INSTALL=$ac_cv_path_install
2139 # As a last resort, use the slow shell script. We don't cache a
2140 # path for INSTALL within a source directory, because that will
2141 # break other packages using the cache if that directory is
2142 # removed, or if the path is relative.
2143 INSTALL=$ac_install_sh
2146 echo "$as_me:2146: result: $INSTALL" >&5
2147 echo "${ECHO_T}$INSTALL" >&6
2149 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2150 # It thinks the first close brace ends the variable substitution.
2151 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2153 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2155 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2161 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
2162 test -z "$cf_dir" && cf_dir=.
2163 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
2167 for ac_prog in tdlint lint alint splint lclint
2169 # Extract the first word of "$ac_prog", so it can be a program name with args.
2170 set dummy $ac_prog; ac_word=$2
2171 echo "$as_me:2171: checking for $ac_word" >&5
2172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2173 if test "${ac_cv_prog_LINT+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2176 if test -n "$LINT"; then
2177 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2179 ac_save_IFS=$IFS; IFS=$ac_path_separator
2181 for ac_dir in $ac_dummy; do
2183 test -z "$ac_dir" && ac_dir=.
2184 $as_executable_p "$ac_dir/$ac_word" || continue
2185 ac_cv_prog_LINT="$ac_prog"
2186 echo "$as_me:2186: found $ac_dir/$ac_word" >&5
2192 LINT=$ac_cv_prog_LINT
2193 if test -n "$LINT"; then
2194 echo "$as_me:2194: result: $LINT" >&5
2195 echo "${ECHO_T}$LINT" >&6
2197 echo "$as_me:2197: result: no" >&5
2198 echo "${ECHO_T}no" >&6
2201 test -n "$LINT" && break
2204 echo "$as_me:2204: checking if filesystem supports mixed-case filenames" >&5
2205 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2206 if test "${cf_cv_mixedcase+set}" = set; then
2207 echo $ECHO_N "(cached) $ECHO_C" >&6
2210 if test "$cross_compiling" = yes ; then
2211 case $target_alias in #(vi
2212 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
2220 rm -f conftest CONFTEST
2222 if test -f CONFTEST ; then
2227 rm -f conftest CONFTEST
2231 echo "$as_me:2231: result: $cf_cv_mixedcase" >&5
2232 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2233 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
2234 #define MIXEDCASE_FILENAMES 1
2237 for ac_prog in exctags ctags
2239 # Extract the first word of "$ac_prog", so it can be a program name with args.
2240 set dummy $ac_prog; ac_word=$2
2241 echo "$as_me:2241: checking for $ac_word" >&5
2242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2243 if test "${ac_cv_prog_CTAGS+set}" = set; then
2244 echo $ECHO_N "(cached) $ECHO_C" >&6
2246 if test -n "$CTAGS"; then
2247 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2249 ac_save_IFS=$IFS; IFS=$ac_path_separator
2251 for ac_dir in $ac_dummy; do
2253 test -z "$ac_dir" && ac_dir=.
2254 $as_executable_p "$ac_dir/$ac_word" || continue
2255 ac_cv_prog_CTAGS="$ac_prog"
2256 echo "$as_me:2256: found $ac_dir/$ac_word" >&5
2262 CTAGS=$ac_cv_prog_CTAGS
2263 if test -n "$CTAGS"; then
2264 echo "$as_me:2264: result: $CTAGS" >&5
2265 echo "${ECHO_T}$CTAGS" >&6
2267 echo "$as_me:2267: result: no" >&5
2268 echo "${ECHO_T}no" >&6
2271 test -n "$CTAGS" && break
2274 for ac_prog in exetags etags
2276 # Extract the first word of "$ac_prog", so it can be a program name with args.
2277 set dummy $ac_prog; ac_word=$2
2278 echo "$as_me:2278: checking for $ac_word" >&5
2279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2280 if test "${ac_cv_prog_ETAGS+set}" = set; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6
2283 if test -n "$ETAGS"; then
2284 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2286 ac_save_IFS=$IFS; IFS=$ac_path_separator
2288 for ac_dir in $ac_dummy; do
2290 test -z "$ac_dir" && ac_dir=.
2291 $as_executable_p "$ac_dir/$ac_word" || continue
2292 ac_cv_prog_ETAGS="$ac_prog"
2293 echo "$as_me:2293: found $ac_dir/$ac_word" >&5
2299 ETAGS=$ac_cv_prog_ETAGS
2300 if test -n "$ETAGS"; then
2301 echo "$as_me:2301: result: $ETAGS" >&5
2302 echo "${ECHO_T}$ETAGS" >&6
2304 echo "$as_me:2304: result: no" >&5
2305 echo "${ECHO_T}no" >&6
2308 test -n "$ETAGS" && break
2311 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2312 set dummy ${CTAGS:-ctags}; ac_word=$2
2313 echo "$as_me:2313: checking for $ac_word" >&5
2314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2315 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2316 echo $ECHO_N "(cached) $ECHO_C" >&6
2318 if test -n "$MAKE_LOWER_TAGS"; then
2319 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2321 ac_save_IFS=$IFS; IFS=$ac_path_separator
2323 for ac_dir in $ac_dummy; do
2325 test -z "$ac_dir" && ac_dir=.
2326 $as_executable_p "$ac_dir/$ac_word" || continue
2327 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2328 echo "$as_me:2328: found $ac_dir/$ac_word" >&5
2332 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2335 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2336 if test -n "$MAKE_LOWER_TAGS"; then
2337 echo "$as_me:2337: result: $MAKE_LOWER_TAGS" >&5
2338 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2340 echo "$as_me:2340: result: no" >&5
2341 echo "${ECHO_T}no" >&6
2344 if test "$cf_cv_mixedcase" = yes ; then
2345 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2346 set dummy ${ETAGS:-etags}; ac_word=$2
2347 echo "$as_me:2347: checking for $ac_word" >&5
2348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2349 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2352 if test -n "$MAKE_UPPER_TAGS"; then
2353 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2355 ac_save_IFS=$IFS; IFS=$ac_path_separator
2357 for ac_dir in $ac_dummy; do
2359 test -z "$ac_dir" && ac_dir=.
2360 $as_executable_p "$ac_dir/$ac_word" || continue
2361 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2362 echo "$as_me:2362: found $ac_dir/$ac_word" >&5
2366 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2369 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2370 if test -n "$MAKE_UPPER_TAGS"; then
2371 echo "$as_me:2371: result: $MAKE_UPPER_TAGS" >&5
2372 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2374 echo "$as_me:2374: result: no" >&5
2375 echo "${ECHO_T}no" >&6
2382 if test "$MAKE_UPPER_TAGS" = yes ; then
2388 if test "$MAKE_LOWER_TAGS" = yes ; then
2394 echo "$as_me:2394: checking if -lm needed for math functions" >&5
2395 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
2396 if test "${cf_cv_need_libm+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2400 cat >conftest.$ac_ext <<_ACEOF
2401 #line 2401 "configure"
2402 #include "confdefs.h"
2410 double x = rand(); printf("result = %g\n", sin(x))
2415 rm -f conftest.$ac_objext conftest$ac_exeext
2416 if { (eval echo "$as_me:2416: \"$ac_link\"") >&5
2417 (eval $ac_link) 2>&5
2419 echo "$as_me:2419: \$? = $ac_status" >&5
2420 (exit $ac_status); } &&
2421 { ac_try='test -s conftest$ac_exeext'
2422 { (eval echo "$as_me:2422: \"$ac_try\"") >&5
2425 echo "$as_me:2425: \$? = $ac_status" >&5
2426 (exit $ac_status); }; }; then
2429 echo "$as_me: failed program was:" >&5
2430 cat conftest.$ac_ext >&5
2433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2435 echo "$as_me:2435: result: $cf_cv_need_libm" >&5
2436 echo "${ECHO_T}$cf_cv_need_libm" >&6
2437 if test "$cf_cv_need_libm" = yes
2443 CC_SHARED_OPTS=unknown
2444 CPPFLAGS="$CPPFLAGS"
2446 DFT_OBJ_SUBDIR=`pwd|sed -e's:.*/::'`
2447 DFT_UPR_MODEL="NORMAL"
2463 TINFO_ARGS='$(LIBS_CURSES)'
2464 cf_cv_abi_version=""
2465 cf_cv_rel_version=""
2470 echo "$as_me:2470: checking for ${CC:-cc} option to accept ANSI C" >&5
2471 echo $ECHO_N "checking for ${CC:-cc} option to accept ANSI C... $ECHO_C" >&6
2472 if test "${cf_cv_ansi_cc+set}" = set; then
2473 echo $ECHO_N "(cached) $ECHO_C" >&6
2477 cf_save_CFLAGS="$CFLAGS"
2478 cf_save_CPPFLAGS="$CPPFLAGS"
2479 # Don't try gcc -ansi; that turns off useful extensions and
2480 # breaks some systems' header files.
2481 # AIX -qlanglvl=ansi
2482 # Ultrix and OSF/1 -std1
2483 # HP-UX -Aa -D_HPUX_SOURCE
2485 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2486 for cf_arg in "-DCC_HAS_PROTOS" \
2491 "-Aa -D_HPUX_SOURCE" \
2498 cf_new_extra_cppflags=
2500 for cf_add_cflags in $cf_arg
2502 case $cf_fix_cppflags in
2504 case $cf_add_cflags in #(vi
2505 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2506 case $cf_add_cflags in
2508 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2510 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2511 && test -z "${cf_tst_cflags}" \
2512 && cf_fix_cppflags=yes
2514 if test $cf_fix_cppflags = yes ; then
2515 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2517 elif test "${cf_tst_cflags}" = "\"'" ; then
2518 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2524 *$cf_add_cflags) #(vi
2527 case $cf_add_cflags in #(vi
2529 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2531 CPPFLAGS=`echo "$CPPFLAGS" | \
2532 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2533 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2537 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2542 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2547 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2549 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2551 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2552 && test -z "${cf_tst_cflags}" \
2553 && cf_fix_cppflags=no
2558 if test -n "$cf_new_cflags" ; then
2560 CFLAGS="$CFLAGS $cf_new_cflags"
2563 if test -n "$cf_new_cppflags" ; then
2565 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2568 if test -n "$cf_new_extra_cppflags" ; then
2570 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2573 cat >conftest.$ac_ext <<_ACEOF
2574 #line 2574 "configure"
2575 #include "confdefs.h"
2577 #ifndef CC_HAS_PROTOS
2578 #if !defined(__STDC__) || (__STDC__ != 1)
2587 int test (int i, double x);
2588 struct s1 {int (*f) (int a);};
2589 struct s2 {int (*f) (double a);};
2594 rm -f conftest.$ac_objext
2595 if { (eval echo "$as_me:2595: \"$ac_compile\"") >&5
2596 (eval $ac_compile) 2>&5
2598 echo "$as_me:2598: \$? = $ac_status" >&5
2599 (exit $ac_status); } &&
2600 { ac_try='test -s conftest.$ac_objext'
2601 { (eval echo "$as_me:2601: \"$ac_try\"") >&5
2604 echo "$as_me:2604: \$? = $ac_status" >&5
2605 (exit $ac_status); }; }; then
2606 cf_cv_ansi_cc="$cf_arg"; break
2608 echo "$as_me: failed program was:" >&5
2609 cat conftest.$ac_ext >&5
2611 rm -f conftest.$ac_objext conftest.$ac_ext
2613 CFLAGS="$cf_save_CFLAGS"
2614 CPPFLAGS="$cf_save_CPPFLAGS"
2617 echo "$as_me:2617: result: $cf_cv_ansi_cc" >&5
2618 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2620 if test "$cf_cv_ansi_cc" != "no"; then
2621 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2626 cf_new_extra_cppflags=
2628 for cf_add_cflags in $cf_cv_ansi_cc
2630 case $cf_fix_cppflags in
2632 case $cf_add_cflags in #(vi
2633 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2634 case $cf_add_cflags in
2636 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2638 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2639 && test -z "${cf_tst_cflags}" \
2640 && cf_fix_cppflags=yes
2642 if test $cf_fix_cppflags = yes ; then
2643 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2645 elif test "${cf_tst_cflags}" = "\"'" ; then
2646 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2652 *$cf_add_cflags) #(vi
2655 case $cf_add_cflags in #(vi
2657 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2659 CPPFLAGS=`echo "$CPPFLAGS" | \
2660 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2661 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2665 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2670 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2675 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2677 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2679 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2680 && test -z "${cf_tst_cflags}" \
2681 && cf_fix_cppflags=no
2686 if test -n "$cf_new_cflags" ; then
2688 CFLAGS="$CFLAGS $cf_new_cflags"
2691 if test -n "$cf_new_cppflags" ; then
2693 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2696 if test -n "$cf_new_extra_cppflags" ; then
2698 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2702 cat >>confdefs.h <<\EOF
2703 #define CC_HAS_PROTOS 1
2709 if test "$cf_cv_ansi_cc" = "no"; then
2710 { { echo "$as_me:2710: error: Your compiler does not appear to recognize prototypes.
2711 You have the following choices:
2712 a. adjust your compiler options
2713 b. get an up-to-date compiler
2714 c. use a wrapper such as unproto" >&5
2715 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2716 You have the following choices:
2717 a. adjust your compiler options
2718 b. get an up-to-date compiler
2719 c. use a wrapper such as unproto" >&2;}
2720 { (exit 1); exit 1; }; }
2723 if test "$GCC" = yes
2725 cat > conftest.i <<EOF
2727 #define GCC_PRINTF 0
2732 #ifndef GCC_NORETURN
2733 #define GCC_NORETURN /* nothing */
2736 #define GCC_UNUSED /* nothing */
2739 if test "$GCC" = yes
2741 { echo "$as_me:2741: checking for $CC __attribute__ directives..." >&5
2742 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
2743 cat > conftest.$ac_ext <<EOF
2744 #line 2744 "${as_me:-configure}"
2745 #include "confdefs.h"
2746 #include "conftest.h"
2747 #include "conftest.i"
2749 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2751 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
2754 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2756 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
2758 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
2759 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
2760 extern void foo(void) GCC_NORETURN;
2761 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
2763 cf_printf_attribute=no
2764 cf_scanf_attribute=no
2765 for cf_attribute in scanf printf unused noreturn
2768 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
2770 cf_directive="__attribute__(($cf_attribute))"
2771 echo "checking for $CC $cf_directive" 1>&5
2773 case $cf_attribute in #(vi
2775 cf_printf_attribute=yes
2776 cat >conftest.h <<EOF
2777 #define GCC_$cf_ATTRIBUTE 1
2781 cf_scanf_attribute=yes
2782 cat >conftest.h <<EOF
2783 #define GCC_$cf_ATTRIBUTE 1
2787 cat >conftest.h <<EOF
2788 #define GCC_$cf_ATTRIBUTE $cf_directive
2793 if { (eval echo "$as_me:2793: \"$ac_compile\"") >&5
2794 (eval $ac_compile) 2>&5
2796 echo "$as_me:2796: \$? = $ac_status" >&5
2797 (exit $ac_status); }; then
2798 test -n "$verbose" && echo "$as_me:2798: result: ... $cf_attribute" >&5
2799 echo "${ECHO_T}... $cf_attribute" >&6
2800 cat conftest.h >>confdefs.h
2801 case $cf_attribute in #(vi
2803 if test "$cf_printf_attribute" = no ; then
2804 cat >>confdefs.h <<EOF
2805 #define GCC_PRINTFLIKE(fmt,var) /* nothing */
2808 cat >>confdefs.h <<EOF
2809 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2814 if test "$cf_scanf_attribute" = no ; then
2815 cat >>confdefs.h <<EOF
2816 #define GCC_SCANFLIKE(fmt,var) /* nothing */
2819 cat >>confdefs.h <<EOF
2820 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2828 fgrep define conftest.i >>confdefs.h
2834 cf_POSIX_C_SOURCE=199506L
2837 case $host_os in #(vi
2839 cf_xopen_source="-D_ALL_SOURCE"
2842 cf_xopen_source="-D_APPLE_C_SOURCE"
2845 cf_xopen_source="-D_DARWIN_C_SOURCE"
2847 freebsd*|dragonfly*) #(vi
2848 # 5.x headers associate
2849 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
2850 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
2851 cf_POSIX_C_SOURCE=200112L
2853 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2856 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
2859 cf_xopen_source="-D_HPUX_SOURCE"
2862 cf_xopen_source="-D_SGI_SOURCE"
2864 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
2866 echo "$as_me:2866: checking if we must define _GNU_SOURCE" >&5
2867 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
2868 if test "${cf_cv_gnu_source+set}" = set; then
2869 echo $ECHO_N "(cached) $ECHO_C" >&6
2872 cat >conftest.$ac_ext <<_ACEOF
2873 #line 2873 "configure"
2874 #include "confdefs.h"
2875 #include <sys/types.h>
2880 #ifndef _XOPEN_SOURCE
2887 rm -f conftest.$ac_objext
2888 if { (eval echo "$as_me:2888: \"$ac_compile\"") >&5
2889 (eval $ac_compile) 2>&5
2891 echo "$as_me:2891: \$? = $ac_status" >&5
2892 (exit $ac_status); } &&
2893 { ac_try='test -s conftest.$ac_objext'
2894 { (eval echo "$as_me:2894: \"$ac_try\"") >&5
2897 echo "$as_me:2897: \$? = $ac_status" >&5
2898 (exit $ac_status); }; }; then
2901 echo "$as_me: failed program was:" >&5
2902 cat conftest.$ac_ext >&5
2904 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2905 cat >conftest.$ac_ext <<_ACEOF
2906 #line 2906 "configure"
2907 #include "confdefs.h"
2908 #include <sys/types.h>
2913 #ifdef _XOPEN_SOURCE
2920 rm -f conftest.$ac_objext
2921 if { (eval echo "$as_me:2921: \"$ac_compile\"") >&5
2922 (eval $ac_compile) 2>&5
2924 echo "$as_me:2924: \$? = $ac_status" >&5
2925 (exit $ac_status); } &&
2926 { ac_try='test -s conftest.$ac_objext'
2927 { (eval echo "$as_me:2927: \"$ac_try\"") >&5
2930 echo "$as_me:2930: \$? = $ac_status" >&5
2931 (exit $ac_status); }; }; then
2934 echo "$as_me: failed program was:" >&5
2935 cat conftest.$ac_ext >&5
2936 cf_cv_gnu_source=yes
2938 rm -f conftest.$ac_objext conftest.$ac_ext
2942 rm -f conftest.$ac_objext conftest.$ac_ext
2945 echo "$as_me:2945: result: $cf_cv_gnu_source" >&5
2946 echo "${ECHO_T}$cf_cv_gnu_source" >&6
2947 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2951 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h>
2954 # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
2957 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
2960 cf_xopen_source="-D_OSF_SOURCE"
2963 cf_xopen_source="-D_QNX_SOURCE"
2966 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
2968 solaris2.1[0-9]) #(vi
2969 cf_xopen_source="-D__EXTENSIONS__ -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2971 solaris2.[1-9]) #(vi
2972 cf_xopen_source="-D__EXTENSIONS__"
2975 echo "$as_me:2975: checking if we should define _XOPEN_SOURCE" >&5
2976 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
2977 if test "${cf_cv_xopen_source+set}" = set; then
2978 echo $ECHO_N "(cached) $ECHO_C" >&6
2981 cat >conftest.$ac_ext <<_ACEOF
2982 #line 2982 "configure"
2983 #include "confdefs.h"
2984 #include <sys/types.h>
2989 #ifndef _XOPEN_SOURCE
2996 rm -f conftest.$ac_objext
2997 if { (eval echo "$as_me:2997: \"$ac_compile\"") >&5
2998 (eval $ac_compile) 2>&5
3000 echo "$as_me:3000: \$? = $ac_status" >&5
3001 (exit $ac_status); } &&
3002 { ac_try='test -s conftest.$ac_objext'
3003 { (eval echo "$as_me:3003: \"$ac_try\"") >&5
3006 echo "$as_me:3006: \$? = $ac_status" >&5
3007 (exit $ac_status); }; }; then
3008 cf_cv_xopen_source=no
3010 echo "$as_me: failed program was:" >&5
3011 cat conftest.$ac_ext >&5
3013 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3014 cat >conftest.$ac_ext <<_ACEOF
3015 #line 3015 "configure"
3016 #include "confdefs.h"
3017 #include <sys/types.h>
3022 #ifdef _XOPEN_SOURCE
3029 rm -f conftest.$ac_objext
3030 if { (eval echo "$as_me:3030: \"$ac_compile\"") >&5
3031 (eval $ac_compile) 2>&5
3033 echo "$as_me:3033: \$? = $ac_status" >&5
3034 (exit $ac_status); } &&
3035 { ac_try='test -s conftest.$ac_objext'
3036 { (eval echo "$as_me:3036: \"$ac_try\"") >&5
3039 echo "$as_me:3039: \$? = $ac_status" >&5
3040 (exit $ac_status); }; }; then
3041 cf_cv_xopen_source=no
3043 echo "$as_me: failed program was:" >&5
3044 cat conftest.$ac_ext >&5
3045 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3047 rm -f conftest.$ac_objext conftest.$ac_ext
3051 rm -f conftest.$ac_objext conftest.$ac_ext
3054 echo "$as_me:3054: result: $cf_cv_xopen_source" >&5
3055 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3056 if test "$cf_cv_xopen_source" != no ; then
3058 CFLAGS=`echo "$CFLAGS" | \
3059 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3060 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3062 CPPFLAGS=`echo "$CPPFLAGS" | \
3063 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3064 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3066 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3071 cf_new_extra_cppflags=
3073 for cf_add_cflags in $cf_temp_xopen_source
3075 case $cf_fix_cppflags in
3077 case $cf_add_cflags in #(vi
3078 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3079 case $cf_add_cflags in
3081 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3083 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3084 && test -z "${cf_tst_cflags}" \
3085 && cf_fix_cppflags=yes
3087 if test $cf_fix_cppflags = yes ; then
3088 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3090 elif test "${cf_tst_cflags}" = "\"'" ; then
3091 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3097 *$cf_add_cflags) #(vi
3100 case $cf_add_cflags in #(vi
3102 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3104 CPPFLAGS=`echo "$CPPFLAGS" | \
3105 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3106 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3110 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3115 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3120 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3122 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3124 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3125 && test -z "${cf_tst_cflags}" \
3126 && cf_fix_cppflags=no
3131 if test -n "$cf_new_cflags" ; then
3133 CFLAGS="$CFLAGS $cf_new_cflags"
3136 if test -n "$cf_new_cppflags" ; then
3138 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3141 if test -n "$cf_new_extra_cppflags" ; then
3143 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3148 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3150 cf_save_CFLAGS="$CFLAGS"
3151 cf_save_CPPFLAGS="$CPPFLAGS"
3153 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3154 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3155 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3157 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3158 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3159 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3161 echo "$as_me:3161: checking if we should define _POSIX_C_SOURCE" >&5
3162 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3163 if test "${cf_cv_posix_c_source+set}" = set; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
3167 echo "${as_me:-configure}:3167: testing if the symbol is already defined go no further ..." 1>&5
3169 cat >conftest.$ac_ext <<_ACEOF
3170 #line 3170 "configure"
3171 #include "confdefs.h"
3172 #include <sys/types.h>
3177 #ifndef _POSIX_C_SOURCE
3184 rm -f conftest.$ac_objext
3185 if { (eval echo "$as_me:3185: \"$ac_compile\"") >&5
3186 (eval $ac_compile) 2>&5
3188 echo "$as_me:3188: \$? = $ac_status" >&5
3189 (exit $ac_status); } &&
3190 { ac_try='test -s conftest.$ac_objext'
3191 { (eval echo "$as_me:3191: \"$ac_try\"") >&5
3194 echo "$as_me:3194: \$? = $ac_status" >&5
3195 (exit $ac_status); }; }; then
3196 cf_cv_posix_c_source=no
3198 echo "$as_me: failed program was:" >&5
3199 cat conftest.$ac_ext >&5
3200 cf_want_posix_source=no
3201 case .$cf_POSIX_C_SOURCE in #(vi
3203 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3206 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3207 cf_want_posix_source=yes
3210 cf_want_posix_source=yes
3213 if test "$cf_want_posix_source" = yes ; then
3214 cat >conftest.$ac_ext <<_ACEOF
3215 #line 3215 "configure"
3216 #include "confdefs.h"
3217 #include <sys/types.h>
3222 #ifdef _POSIX_SOURCE
3229 rm -f conftest.$ac_objext
3230 if { (eval echo "$as_me:3230: \"$ac_compile\"") >&5
3231 (eval $ac_compile) 2>&5
3233 echo "$as_me:3233: \$? = $ac_status" >&5
3234 (exit $ac_status); } &&
3235 { ac_try='test -s conftest.$ac_objext'
3236 { (eval echo "$as_me:3236: \"$ac_try\"") >&5
3239 echo "$as_me:3239: \$? = $ac_status" >&5
3240 (exit $ac_status); }; }; then
3243 echo "$as_me: failed program was:" >&5
3244 cat conftest.$ac_ext >&5
3245 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3247 rm -f conftest.$ac_objext conftest.$ac_ext
3250 echo "${as_me:-configure}:3250: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3252 CFLAGS="$cf_trim_CFLAGS"
3253 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3255 echo "${as_me:-configure}:3255: testing if the second compile does not leave our definition intact error ..." 1>&5
3257 cat >conftest.$ac_ext <<_ACEOF
3258 #line 3258 "configure"
3259 #include "confdefs.h"
3260 #include <sys/types.h>
3265 #ifndef _POSIX_C_SOURCE
3272 rm -f conftest.$ac_objext
3273 if { (eval echo "$as_me:3273: \"$ac_compile\"") >&5
3274 (eval $ac_compile) 2>&5
3276 echo "$as_me:3276: \$? = $ac_status" >&5
3277 (exit $ac_status); } &&
3278 { ac_try='test -s conftest.$ac_objext'
3279 { (eval echo "$as_me:3279: \"$ac_try\"") >&5
3282 echo "$as_me:3282: \$? = $ac_status" >&5
3283 (exit $ac_status); }; }; then
3286 echo "$as_me: failed program was:" >&5
3287 cat conftest.$ac_ext >&5
3288 cf_cv_posix_c_source=no
3290 rm -f conftest.$ac_objext conftest.$ac_ext
3291 CFLAGS="$cf_save_CFLAGS"
3292 CPPFLAGS="$cf_save_CPPFLAGS"
3295 rm -f conftest.$ac_objext conftest.$ac_ext
3298 echo "$as_me:3298: result: $cf_cv_posix_c_source" >&5
3299 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3301 if test "$cf_cv_posix_c_source" != no ; then
3302 CFLAGS="$cf_trim_CFLAGS"
3303 CPPFLAGS="$cf_trim_CPPFLAGS"
3308 cf_new_extra_cppflags=
3310 for cf_add_cflags in $cf_cv_posix_c_source
3312 case $cf_fix_cppflags in
3314 case $cf_add_cflags in #(vi
3315 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3316 case $cf_add_cflags in
3318 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3320 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3321 && test -z "${cf_tst_cflags}" \
3322 && cf_fix_cppflags=yes
3324 if test $cf_fix_cppflags = yes ; then
3325 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3327 elif test "${cf_tst_cflags}" = "\"'" ; then
3328 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3334 *$cf_add_cflags) #(vi
3337 case $cf_add_cflags in #(vi
3339 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3341 CPPFLAGS=`echo "$CPPFLAGS" | \
3342 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3343 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3347 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3352 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3357 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3359 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3361 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3362 && test -z "${cf_tst_cflags}" \
3363 && cf_fix_cppflags=no
3368 if test -n "$cf_new_cflags" ; then
3370 CFLAGS="$CFLAGS $cf_new_cflags"
3373 if test -n "$cf_new_cppflags" ; then
3375 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3378 if test -n "$cf_new_extra_cppflags" ; then
3380 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3388 if test -n "$cf_xopen_source" ; then
3393 cf_new_extra_cppflags=
3395 for cf_add_cflags in $cf_xopen_source
3397 case $cf_fix_cppflags in
3399 case $cf_add_cflags in #(vi
3400 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3401 case $cf_add_cflags in
3403 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3405 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3406 && test -z "${cf_tst_cflags}" \
3407 && cf_fix_cppflags=yes
3409 if test $cf_fix_cppflags = yes ; then
3410 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3412 elif test "${cf_tst_cflags}" = "\"'" ; then
3413 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3419 *$cf_add_cflags) #(vi
3422 case $cf_add_cflags in #(vi
3424 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3426 CPPFLAGS=`echo "$CPPFLAGS" | \
3427 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3428 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3432 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3437 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3442 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3444 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3446 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3447 && test -z "${cf_tst_cflags}" \
3448 && cf_fix_cppflags=no
3453 if test -n "$cf_new_cflags" ; then
3455 CFLAGS="$CFLAGS $cf_new_cflags"
3458 if test -n "$cf_new_cppflags" ; then
3460 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3463 if test -n "$cf_new_extra_cppflags" ; then
3465 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3470 echo "$as_me:3470: checking for $CC option to accept ANSI C" >&5
3471 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3472 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3473 echo $ECHO_N "(cached) $ECHO_C" >&6
3475 ac_cv_prog_cc_stdc=no
3477 cat >conftest.$ac_ext <<_ACEOF
3478 #line 3478 "configure"
3479 #include "confdefs.h"
3482 #include <sys/types.h>
3483 #include <sys/stat.h>
3484 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3485 struct buf { int x; };
3486 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3487 static char *e (p, i)
3493 static char *f (char * (*g) (char **, int), char **p, ...)
3498 s = g (p, va_arg (v,int));
3502 int test (int i, double x);
3503 struct s1 {int (*f) (int a);};
3504 struct s2 {int (*f) (double a);};
3505 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3511 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3516 # Don't try gcc -ansi; that turns off useful extensions and
3517 # breaks some systems' header files.
3518 # AIX -qlanglvl=ansi
3519 # Ultrix and OSF/1 -std1
3520 # HP-UX 10.20 and later -Ae
3521 # HP-UX older versions -Aa -D_HPUX_SOURCE
3522 # SVR4 -Xc -D__EXTENSIONS__
3523 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3525 CC="$ac_save_CC $ac_arg"
3526 rm -f conftest.$ac_objext
3527 if { (eval echo "$as_me:3527: \"$ac_compile\"") >&5
3528 (eval $ac_compile) 2>&5
3530 echo "$as_me:3530: \$? = $ac_status" >&5
3531 (exit $ac_status); } &&
3532 { ac_try='test -s conftest.$ac_objext'
3533 { (eval echo "$as_me:3533: \"$ac_try\"") >&5
3536 echo "$as_me:3536: \$? = $ac_status" >&5
3537 (exit $ac_status); }; }; then
3538 ac_cv_prog_cc_stdc=$ac_arg
3541 echo "$as_me: failed program was:" >&5
3542 cat conftest.$ac_ext >&5
3544 rm -f conftest.$ac_objext
3546 rm -f conftest.$ac_ext conftest.$ac_objext
3551 case "x$ac_cv_prog_cc_stdc" in
3553 echo "$as_me:3553: result: none needed" >&5
3554 echo "${ECHO_T}none needed" >&6 ;;
3556 echo "$as_me:3556: result: $ac_cv_prog_cc_stdc" >&5
3557 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3558 CC="$CC $ac_cv_prog_cc_stdc" ;;
3561 echo "$as_me:3561: checking for an ANSI C-conforming const" >&5
3562 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3563 if test "${ac_cv_c_const+set}" = set; then
3564 echo $ECHO_N "(cached) $ECHO_C" >&6
3566 cat >conftest.$ac_ext <<_ACEOF
3567 #line 3567 "configure"
3568 #include "confdefs.h"
3573 /* FIXME: Include the comments suggested by Paul. */
3575 /* Ultrix mips cc rejects this. */
3576 typedef int charset[2];
3578 /* SunOS 4.1.1 cc rejects this. */
3579 char const *const *ccp;
3581 /* NEC SVR4.0.2 mips cc rejects this. */
3582 struct point {int x, y;};
3583 static struct point const zero = {0,0};
3584 /* AIX XL C 1.02.0.0 rejects this.
3585 It does not let you subtract one const X* pointer from another in
3586 an arm of an if-expression whose if-part is not a constant
3588 const char *g = "string";
3589 ccp = &g + (g ? g-g : 0);
3590 /* HPUX 7.0 cc rejects these. */
3593 ccp = (char const *const *) p;
3594 { /* SCO 3.2v4 cc rejects this. */
3596 char const *s = 0 ? (char *) 0 : (char const *) 0;
3600 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3602 const int *foo = &x[0];
3605 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3606 typedef const int *iptr;
3610 { /* AIX XL C 1.02.0.0 rejects this saying
3611 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3612 struct s { int j; const int *ap[3]; };
3613 struct s *b; b->j = 5;
3615 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3624 rm -f conftest.$ac_objext
3625 if { (eval echo "$as_me:3625: \"$ac_compile\"") >&5
3626 (eval $ac_compile) 2>&5
3628 echo "$as_me:3628: \$? = $ac_status" >&5
3629 (exit $ac_status); } &&
3630 { ac_try='test -s conftest.$ac_objext'
3631 { (eval echo "$as_me:3631: \"$ac_try\"") >&5
3634 echo "$as_me:3634: \$? = $ac_status" >&5
3635 (exit $ac_status); }; }; then
3638 echo "$as_me: failed program was:" >&5
3639 cat conftest.$ac_ext >&5
3642 rm -f conftest.$ac_objext conftest.$ac_ext
3644 echo "$as_me:3644: result: $ac_cv_c_const" >&5
3645 echo "${ECHO_T}$ac_cv_c_const" >&6
3646 if test $ac_cv_c_const = no; then
3648 cat >>confdefs.h <<\EOF
3654 echo "$as_me:3654: checking for signal global datatype" >&5
3655 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
3656 if test "${cf_cv_sig_atomic_t+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3661 "volatile sig_atomic_t" \
3665 cat >conftest.$ac_ext <<_ACEOF
3666 #line 3666 "configure"
3667 #include "confdefs.h"
3669 #include <sys/types.h>
3675 static void handler(int sig)
3682 signal(SIGINT, handler);
3688 rm -f conftest.$ac_objext
3689 if { (eval echo "$as_me:3689: \"$ac_compile\"") >&5
3690 (eval $ac_compile) 2>&5
3692 echo "$as_me:3692: \$? = $ac_status" >&5
3693 (exit $ac_status); } &&
3694 { ac_try='test -s conftest.$ac_objext'
3695 { (eval echo "$as_me:3695: \"$ac_try\"") >&5
3698 echo "$as_me:3698: \$? = $ac_status" >&5
3699 (exit $ac_status); }; }; then
3700 cf_cv_sig_atomic_t=$cf_type
3702 echo "$as_me: failed program was:" >&5
3703 cat conftest.$ac_ext >&5
3704 cf_cv_sig_atomic_t=no
3706 rm -f conftest.$ac_objext conftest.$ac_ext
3707 test "$cf_cv_sig_atomic_t" != no && break
3712 echo "$as_me:3712: result: $cf_cv_sig_atomic_t" >&5
3713 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
3714 test "$cf_cv_sig_atomic_t" != no && cat >>confdefs.h <<EOF
3715 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
3718 echo "$as_me:3718: checking if you want to see long compiling messages" >&5
3719 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
3721 # Check whether --enable-echo or --disable-echo was given.
3722 if test "${enable_echo+set}" = set; then
3723 enableval="$enable_echo"
3724 test "$enableval" != no && enableval=yes
3725 if test "$enableval" != "yes" ; then
3728 ECHO_LD='@echo linking $@;'
3729 RULE_CC='@echo compiling $<'
3730 SHOW_CC='@echo compiling $@'
3752 echo "$as_me:3752: result: $enableval" >&5
3753 echo "${ECHO_T}$enableval" >&6
3756 if test "$GCC" = yes ; then
3757 echo "$as_me:3757: checking version of $CC" >&5
3758 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
3759 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3760 test -z "$GCC_VERSION" && GCC_VERSION=unknown
3761 echo "$as_me:3761: result: $GCC_VERSION" >&5
3762 echo "${ECHO_T}$GCC_VERSION" >&6
3765 if ( test "$GCC" = yes || test "$GXX" = yes )
3767 echo "$as_me:3767: checking if you want to turn on gcc warnings" >&5
3768 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
3770 # Check whether --enable-warnings or --disable-warnings was given.
3771 if test "${enable_warnings+set}" = set; then
3772 enableval="$enable_warnings"
3773 test "$enableval" != yes && enableval=no
3774 if test "$enableval" != "no" ; then
3784 echo "$as_me:3784: result: $with_warnings" >&5
3785 echo "${ECHO_T}$with_warnings" >&6
3786 if test "$with_warnings" = "yes"
3789 if test "$GCC" = yes
3791 cat > conftest.i <<EOF
3793 #define GCC_PRINTF 0
3798 #ifndef GCC_NORETURN
3799 #define GCC_NORETURN /* nothing */
3802 #define GCC_UNUSED /* nothing */
3805 if test "$GCC" = yes
3807 { echo "$as_me:3807: checking for $CC __attribute__ directives..." >&5
3808 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
3809 cat > conftest.$ac_ext <<EOF
3810 #line 3810 "${as_me:-configure}"
3811 #include "confdefs.h"
3812 #include "conftest.h"
3813 #include "conftest.i"
3815 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
3817 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
3820 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
3822 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
3824 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
3825 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
3826 extern void foo(void) GCC_NORETURN;
3827 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
3829 cf_printf_attribute=no
3830 cf_scanf_attribute=no
3831 for cf_attribute in scanf printf unused noreturn
3834 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3836 cf_directive="__attribute__(($cf_attribute))"
3837 echo "checking for $CC $cf_directive" 1>&5
3839 case $cf_attribute in #(vi
3841 cf_printf_attribute=yes
3842 cat >conftest.h <<EOF
3843 #define GCC_$cf_ATTRIBUTE 1
3847 cf_scanf_attribute=yes
3848 cat >conftest.h <<EOF
3849 #define GCC_$cf_ATTRIBUTE 1
3853 cat >conftest.h <<EOF
3854 #define GCC_$cf_ATTRIBUTE $cf_directive
3859 if { (eval echo "$as_me:3859: \"$ac_compile\"") >&5
3860 (eval $ac_compile) 2>&5
3862 echo "$as_me:3862: \$? = $ac_status" >&5
3863 (exit $ac_status); }; then
3864 test -n "$verbose" && echo "$as_me:3864: result: ... $cf_attribute" >&5
3865 echo "${ECHO_T}... $cf_attribute" >&6
3866 cat conftest.h >>confdefs.h
3867 case $cf_attribute in #(vi
3869 if test "$cf_printf_attribute" = no ; then
3870 cat >>confdefs.h <<EOF
3871 #define GCC_PRINTFLIKE(fmt,var) /* nothing */
3874 cat >>confdefs.h <<EOF
3875 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
3880 if test "$cf_scanf_attribute" = no ; then
3881 cat >>confdefs.h <<EOF
3882 #define GCC_SCANFLIKE(fmt,var) /* nothing */
3885 cat >>confdefs.h <<EOF
3886 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
3894 fgrep define conftest.i >>confdefs.h
3901 if test "$GCC" = yes ; then
3904 echo "$as_me:3904: checking if this is really Intel C compiler" >&5
3905 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
3906 cf_save_CFLAGS="$CFLAGS"
3907 CFLAGS="$CFLAGS -no-gcc"
3908 cat >conftest.$ac_ext <<_ACEOF
3909 #line 3909 "configure"
3910 #include "confdefs.h"
3916 #ifdef __INTEL_COMPILER
3925 rm -f conftest.$ac_objext
3926 if { (eval echo "$as_me:3926: \"$ac_compile\"") >&5
3927 (eval $ac_compile) 2>&5
3929 echo "$as_me:3929: \$? = $ac_status" >&5
3930 (exit $ac_status); } &&
3931 { ac_try='test -s conftest.$ac_objext'
3932 { (eval echo "$as_me:3932: \"$ac_try\"") >&5
3935 echo "$as_me:3935: \$? = $ac_status" >&5
3936 (exit $ac_status); }; }; then
3938 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
3941 echo "$as_me: failed program was:" >&5
3942 cat conftest.$ac_ext >&5
3944 rm -f conftest.$ac_objext conftest.$ac_ext
3945 CFLAGS="$cf_save_CFLAGS"
3946 echo "$as_me:3946: result: $INTEL_COMPILER" >&5
3947 echo "${ECHO_T}$INTEL_COMPILER" >&6
3952 cat > conftest.$ac_ext <<EOF
3953 #line 3953 "${as_me:-configure}"
3954 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
3957 if test "$INTEL_COMPILER" = yes
3959 # The "-wdXXX" options suppress warnings:
3960 # remark #1419: external declaration in primary source file
3961 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
3962 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
3963 # remark #193: zero used for undefined preprocessing identifier
3964 # remark #593: variable "curs_sb_left_arrow" was set but never used
3965 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
3966 # remark #869: parameter "tw" was never referenced
3967 # remark #981: operands are evaluated in unspecified order
3968 # warning #279: controlling expression is constant
3970 { echo "$as_me:3970: checking for $CC warning options..." >&5
3971 echo "$as_me: checking for $CC warning options..." >&6;}
3972 cf_save_CFLAGS="$CFLAGS"
3973 EXTRA_CFLAGS="-Wall"
3985 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
3986 if { (eval echo "$as_me:3986: \"$ac_compile\"") >&5
3987 (eval $ac_compile) 2>&5
3989 echo "$as_me:3989: \$? = $ac_status" >&5
3990 (exit $ac_status); }; then
3991 test -n "$verbose" && echo "$as_me:3991: result: ... -$cf_opt" >&5
3992 echo "${ECHO_T}... -$cf_opt" >&6
3993 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
3996 CFLAGS="$cf_save_CFLAGS"
3998 elif test "$GCC" = yes
4000 { echo "$as_me:4000: checking for $CC warning options..." >&5
4001 echo "$as_me: checking for $CC warning options..." >&6;}
4002 cf_save_CFLAGS="$CFLAGS"
4005 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
4006 for cf_opt in W Wall \
4007 Wbad-function-cast \
4011 Wmissing-declarations \
4012 Wmissing-prototypes \
4016 Wstrict-prototypes \
4017 Wundef $cf_warn_CONST
4019 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
4020 if { (eval echo "$as_me:4020: \"$ac_compile\"") >&5
4021 (eval $ac_compile) 2>&5
4023 echo "$as_me:4023: \$? = $ac_status" >&5
4024 (exit $ac_status); }; then
4025 test -n "$verbose" && echo "$as_me:4025: result: ... -$cf_opt" >&5
4026 echo "${ECHO_T}... -$cf_opt" >&6
4027 case $cf_opt in #(vi
4029 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
4032 case $GCC_VERSION in
4034 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
4036 echo "${as_me:-configure}:4036: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
4042 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
4045 CFLAGS="$cf_save_CFLAGS"
4052 # Check whether --with-curses-dir or --without-curses-dir was given.
4053 if test "${with_curses_dir+set}" = set; then
4054 withval="$with_curses_dir"
4056 if test "x$prefix" != xNONE; then
4057 cf_path_syntax="$prefix"
4059 cf_path_syntax="$ac_default_prefix"
4062 case ".$withval" in #(vi
4063 .\$\(*\)*|.\'*\'*) #(vi
4067 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4070 eval withval="$withval"
4071 case ".$withval" in #(vi
4073 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
4078 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
4081 { { echo "$as_me:4081: error: expected a pathname, not \"$withval\"" >&5
4082 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
4083 { (exit 1); exit 1; }; }
4087 cf_cv_curses_dir=$withval
4092 # Check whether --with-5lib or --without-5lib was given.
4093 if test "${with_5lib+set}" = set; then
4094 withval="$with_5lib"
4095 LIBS="-L/usr/5lib $LIBS"
4096 CPPFLAGS="$CPPFLAGS -I/usr/5include"
4099 # Check whether --with-ncursesw or --without-ncursesw was given.
4100 if test "${with_ncursesw+set}" = set; then
4101 withval="$with_ncursesw"
4102 cf_cv_screen=ncursesw
4105 # Check whether --with-ncurses or --without-ncurses was given.
4106 if test "${with_ncurses+set}" = set; then
4107 withval="$with_ncurses"
4108 cf_cv_screen=ncurses
4111 # Check whether --with-pdcurses or --without-pdcurses was given.
4112 if test "${with_pdcurses+set}" = set; then
4113 withval="$with_pdcurses"
4114 cf_cv_screen=pdcurses
4119 case $cf_cv_screen in
4122 echo "$as_me:4122: checking for extra include directories" >&5
4123 echo $ECHO_N "checking for extra include directories... $ECHO_C" >&6
4124 if test "${cf_cv_curses_incdir+set}" = set; then
4125 echo $ECHO_N "(cached) $ECHO_C" >&6
4128 cf_cv_curses_incdir=no
4129 case $host_os in #(vi
4131 test -d /usr/include/curses_colr && \
4132 cf_cv_curses_incdir="-I/usr/include/curses_colr"
4135 test -d /usr/5lib && \
4136 test -d /usr/5include && \
4137 cf_cv_curses_incdir="-I/usr/5include"
4142 echo "$as_me:4142: result: $cf_cv_curses_incdir" >&5
4143 echo "${ECHO_T}$cf_cv_curses_incdir" >&6
4144 test "$cf_cv_curses_incdir" != no && CPPFLAGS="$CPPFLAGS $cf_cv_curses_incdir"
4146 echo "$as_me:4146: checking if we have identified curses headers" >&5
4147 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
4148 if test "${cf_cv_ncurses_header+set}" = set; then
4149 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 cf_cv_ncurses_header=none
4155 ncurses.h ncurses/curses.h ncurses/ncurses.h
4157 cat >conftest.$ac_ext <<_ACEOF
4158 #line 4158 "configure"
4159 #include "confdefs.h"
4160 #include <${cf_header}>
4164 initscr(); tgoto("?", 0,0)
4169 rm -f conftest.$ac_objext
4170 if { (eval echo "$as_me:4170: \"$ac_compile\"") >&5
4171 (eval $ac_compile) 2>&5
4173 echo "$as_me:4173: \$? = $ac_status" >&5
4174 (exit $ac_status); } &&
4175 { ac_try='test -s conftest.$ac_objext'
4176 { (eval echo "$as_me:4176: \"$ac_try\"") >&5
4179 echo "$as_me:4179: \$? = $ac_status" >&5
4180 (exit $ac_status); }; }; then
4181 cf_cv_ncurses_header=$cf_header; break
4183 echo "$as_me: failed program was:" >&5
4184 cat conftest.$ac_ext >&5
4186 rm -f conftest.$ac_objext conftest.$ac_ext
4190 echo "$as_me:4190: result: $cf_cv_ncurses_header" >&5
4191 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
4193 if test "$cf_cv_ncurses_header" = none ; then
4194 { { echo "$as_me:4194: error: No curses header-files found" >&5
4195 echo "$as_me: error: No curses header-files found" >&2;}
4196 { (exit 1); exit 1; }; }
4199 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
4201 for ac_header in $cf_cv_ncurses_header
4203 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4204 echo "$as_me:4204: checking for $ac_header" >&5
4205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4207 echo $ECHO_N "(cached) $ECHO_C" >&6
4209 cat >conftest.$ac_ext <<_ACEOF
4210 #line 4210 "configure"
4211 #include "confdefs.h"
4212 #include <$ac_header>
4214 if { (eval echo "$as_me:4214: \"$ac_cpp conftest.$ac_ext\"") >&5
4215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4217 egrep -v '^ *\+' conftest.er1 >conftest.err
4219 cat conftest.err >&5
4220 echo "$as_me:4220: \$? = $ac_status" >&5
4221 (exit $ac_status); } >/dev/null; then
4222 if test -s conftest.err; then
4223 ac_cpp_err=$ac_c_preproc_warn_flag
4230 if test -z "$ac_cpp_err"; then
4231 eval "$as_ac_Header=yes"
4233 echo "$as_me: failed program was:" >&5
4234 cat conftest.$ac_ext >&5
4235 eval "$as_ac_Header=no"
4237 rm -f conftest.err conftest.$ac_ext
4239 echo "$as_me:4239: result: `eval echo '${'$as_ac_Header'}'`" >&5
4240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4242 cat >>confdefs.h <<EOF
4243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4249 echo "$as_me:4249: checking for terminfo header" >&5
4250 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
4251 if test "${cf_cv_term_header+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4255 case ${cf_cv_ncurses_header} in #(vi
4256 */ncurses.h|*/ncursesw.h) #(vi
4257 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
4260 cf_term_header=term.h
4264 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
4266 cat >conftest.$ac_ext <<_ACEOF
4267 #line 4267 "configure"
4268 #include "confdefs.h"
4270 #include <${cf_cv_ncurses_header:-curses.h}>
4276 int x = auto_left_margin
4281 rm -f conftest.$ac_objext
4282 if { (eval echo "$as_me:4282: \"$ac_compile\"") >&5
4283 (eval $ac_compile) 2>&5
4285 echo "$as_me:4285: \$? = $ac_status" >&5
4286 (exit $ac_status); } &&
4287 { ac_try='test -s conftest.$ac_objext'
4288 { (eval echo "$as_me:4288: \"$ac_try\"") >&5
4291 echo "$as_me:4291: \$? = $ac_status" >&5
4292 (exit $ac_status); }; }; then
4294 cf_cv_term_header="$cf_test"
4296 echo "$as_me: failed program was:" >&5
4297 cat conftest.$ac_ext >&5
4299 cf_cv_term_header=unknown
4302 rm -f conftest.$ac_objext conftest.$ac_ext
4303 test "$cf_cv_term_header" != unknown && break
4307 echo "$as_me:4307: result: $cf_cv_term_header" >&5
4308 echo "${ECHO_T}$cf_cv_term_header" >&6
4310 # Set definitions to allow ifdef'ing to accommodate subdirectories
4312 case $cf_cv_term_header in # (vi
4314 cat >>confdefs.h <<\EOF
4315 #define HAVE_TERM_H 1
4321 case $cf_cv_term_header in # (vi
4322 ncurses/term.h) #(vi
4323 cat >>confdefs.h <<\EOF
4324 #define HAVE_NCURSES_TERM_H 1
4329 cat >>confdefs.h <<\EOF
4330 #define HAVE_NCURSESW_TERM_H 1
4336 echo "$as_me:4336: checking for ncurses version" >&5
4337 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
4338 if test "${cf_cv_ncurses_version+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4342 cf_cv_ncurses_version=no
4345 if test "$cross_compiling" = yes; then
4347 # This will not work if the preprocessor splits the line after the
4348 # Autoconf token. The 'unproto' program does that.
4349 cat > conftest.$ac_ext <<EOF
4350 #include <${cf_cv_ncurses_header:-curses.h}>
4352 #ifdef NCURSES_VERSION
4353 Autoconf NCURSES_VERSION
4361 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
4362 { (eval echo "$as_me:4362: \"$cf_try\"") >&5
4365 echo "$as_me:4365: \$? = $ac_status" >&5
4366 (exit $ac_status); }
4367 if test -f conftest.out ; then
4368 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
4369 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
4374 cat >conftest.$ac_ext <<_ACEOF
4375 #line 4375 "configure"
4376 #include "confdefs.h"
4378 #include <${cf_cv_ncurses_header:-curses.h}>
4382 FILE *fp = fopen("$cf_tempfile", "w");
4383 #ifdef NCURSES_VERSION
4384 # ifdef NCURSES_VERSION_PATCH
4385 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
4387 fprintf(fp, "%s\n", NCURSES_VERSION);
4391 fprintf(fp, "old\n");
4396 ${cf_cv_main_return:-return}(0);
4399 rm -f conftest$ac_exeext
4400 if { (eval echo "$as_me:4400: \"$ac_link\"") >&5
4401 (eval $ac_link) 2>&5
4403 echo "$as_me:4403: \$? = $ac_status" >&5
4404 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4405 { (eval echo "$as_me:4405: \"$ac_try\"") >&5
4408 echo "$as_me:4408: \$? = $ac_status" >&5
4409 (exit $ac_status); }; }; then
4411 cf_cv_ncurses_version=`cat $cf_tempfile`
4413 echo "$as_me: program exited with status $ac_status" >&5
4414 echo "$as_me: failed program was:" >&5
4415 cat conftest.$ac_ext >&5
4417 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4422 echo "$as_me:4422: result: $cf_cv_ncurses_version" >&5
4423 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
4424 test "$cf_cv_ncurses_version" = no || cat >>confdefs.h <<\EOF
4428 echo "$as_me:4428: checking if we have identified curses libraries" >&5
4429 echo $ECHO_N "checking if we have identified curses libraries... $ECHO_C" >&6
4430 cat >conftest.$ac_ext <<_ACEOF
4431 #line 4431 "configure"
4432 #include "confdefs.h"
4433 #include <${cf_cv_ncurses_header:-curses.h}>
4437 initscr(); tgoto("?", 0,0)
4442 rm -f conftest.$ac_objext conftest$ac_exeext
4443 if { (eval echo "$as_me:4443: \"$ac_link\"") >&5
4444 (eval $ac_link) 2>&5
4446 echo "$as_me:4446: \$? = $ac_status" >&5
4447 (exit $ac_status); } &&
4448 { ac_try='test -s conftest$ac_exeext'
4449 { (eval echo "$as_me:4449: \"$ac_try\"") >&5
4452 echo "$as_me:4452: \$? = $ac_status" >&5
4453 (exit $ac_status); }; }; then
4456 echo "$as_me: failed program was:" >&5
4457 cat conftest.$ac_ext >&5
4460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4461 echo "$as_me:4461: result: $cf_result" >&5
4462 echo "${ECHO_T}$cf_result" >&6
4464 if test "$cf_result" = no ; then
4465 case $host_os in #(vi
4467 echo "$as_me:4467: checking for tgoto in -lmytinfo" >&5
4468 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
4469 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 ac_check_lib_save_LIBS=$LIBS
4473 LIBS="-lmytinfo $LIBS"
4474 cat >conftest.$ac_ext <<_ACEOF
4475 #line 4475 "configure"
4476 #include "confdefs.h"
4478 /* Override any gcc2 internal prototype to avoid an error. */
4482 /* We use char because int might match the return type of a gcc2
4483 builtin and then its argument prototype would still apply. */
4493 rm -f conftest.$ac_objext conftest$ac_exeext
4494 if { (eval echo "$as_me:4494: \"$ac_link\"") >&5
4495 (eval $ac_link) 2>&5
4497 echo "$as_me:4497: \$? = $ac_status" >&5
4498 (exit $ac_status); } &&
4499 { ac_try='test -s conftest$ac_exeext'
4500 { (eval echo "$as_me:4500: \"$ac_try\"") >&5
4503 echo "$as_me:4503: \$? = $ac_status" >&5
4504 (exit $ac_status); }; }; then
4505 ac_cv_lib_mytinfo_tgoto=yes
4507 echo "$as_me: failed program was:" >&5
4508 cat conftest.$ac_ext >&5
4509 ac_cv_lib_mytinfo_tgoto=no
4511 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4512 LIBS=$ac_check_lib_save_LIBS
4514 echo "$as_me:4514: result: $ac_cv_lib_mytinfo_tgoto" >&5
4515 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
4516 if test $ac_cv_lib_mytinfo_tgoto = yes; then
4517 LIBS="-lmytinfo $LIBS"
4522 echo "$as_me:4522: checking for initscr in -lcur_colr" >&5
4523 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
4524 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
4525 echo $ECHO_N "(cached) $ECHO_C" >&6
4527 ac_check_lib_save_LIBS=$LIBS
4528 LIBS="-lcur_colr $LIBS"
4529 cat >conftest.$ac_ext <<_ACEOF
4530 #line 4530 "configure"
4531 #include "confdefs.h"
4533 /* Override any gcc2 internal prototype to avoid an error. */
4537 /* We use char because int might match the return type of a gcc2
4538 builtin and then its argument prototype would still apply. */
4548 rm -f conftest.$ac_objext conftest$ac_exeext
4549 if { (eval echo "$as_me:4549: \"$ac_link\"") >&5
4550 (eval $ac_link) 2>&5
4552 echo "$as_me:4552: \$? = $ac_status" >&5
4553 (exit $ac_status); } &&
4554 { ac_try='test -s conftest$ac_exeext'
4555 { (eval echo "$as_me:4555: \"$ac_try\"") >&5
4558 echo "$as_me:4558: \$? = $ac_status" >&5
4559 (exit $ac_status); }; }; then
4560 ac_cv_lib_cur_colr_initscr=yes
4562 echo "$as_me: failed program was:" >&5
4563 cat conftest.$ac_ext >&5
4564 ac_cv_lib_cur_colr_initscr=no
4566 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4567 LIBS=$ac_check_lib_save_LIBS
4569 echo "$as_me:4569: result: $ac_cv_lib_cur_colr_initscr" >&5
4570 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
4571 if test $ac_cv_lib_cur_colr_initscr = yes; then
4573 LIBS="-lcur_colr $LIBS"
4574 ac_cv_func_initscr=yes
4578 echo "$as_me:4578: checking for initscr in -lHcurses" >&5
4579 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
4580 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
4581 echo $ECHO_N "(cached) $ECHO_C" >&6
4583 ac_check_lib_save_LIBS=$LIBS
4584 LIBS="-lHcurses $LIBS"
4585 cat >conftest.$ac_ext <<_ACEOF
4586 #line 4586 "configure"
4587 #include "confdefs.h"
4589 /* Override any gcc2 internal prototype to avoid an error. */
4593 /* We use char because int might match the return type of a gcc2
4594 builtin and then its argument prototype would still apply. */
4604 rm -f conftest.$ac_objext conftest$ac_exeext
4605 if { (eval echo "$as_me:4605: \"$ac_link\"") >&5
4606 (eval $ac_link) 2>&5
4608 echo "$as_me:4608: \$? = $ac_status" >&5
4609 (exit $ac_status); } &&
4610 { ac_try='test -s conftest$ac_exeext'
4611 { (eval echo "$as_me:4611: \"$ac_try\"") >&5
4614 echo "$as_me:4614: \$? = $ac_status" >&5
4615 (exit $ac_status); }; }; then
4616 ac_cv_lib_Hcurses_initscr=yes
4618 echo "$as_me: failed program was:" >&5
4619 cat conftest.$ac_ext >&5
4620 ac_cv_lib_Hcurses_initscr=no
4622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4623 LIBS=$ac_check_lib_save_LIBS
4625 echo "$as_me:4625: result: $ac_cv_lib_Hcurses_initscr" >&5
4626 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
4627 if test $ac_cv_lib_Hcurses_initscr = yes; then
4629 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
4630 LIBS="-lHcurses $LIBS"
4631 CPPFLAGS="$CPPFLAGS -D__HP_CURSES -D_HP_CURSES"
4632 ac_cv_func_initscr=yes
4639 linux*) # Suse Linux does not follow /usr/lib convention
4641 if test -n "/lib" ; then
4642 for cf_add_libdir in /lib
4644 if test $cf_add_libdir = /usr/lib ; then
4646 elif test -d $cf_add_libdir
4649 if test -n "$LDFLAGS$LIBS" ; then
4650 # a loop is needed to ensure we can add subdirs of existing dirs
4651 for cf_test_libdir in $LDFLAGS $LIBS ; do
4652 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
4653 cf_have_libdir=yes; break
4657 if test "$cf_have_libdir" = no ; then
4658 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
4660 echo "${as_me:-configure}:4660: testing adding $cf_add_libdir to library-path ..." 1>&5
4662 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
4670 if test -d /usr/5lib ; then
4672 if test -n "/usr/5lib" ; then
4673 for cf_add_libdir in /usr/5lib
4675 if test $cf_add_libdir = /usr/lib ; then
4677 elif test -d $cf_add_libdir
4680 if test -n "$LDFLAGS$LIBS" ; then
4681 # a loop is needed to ensure we can add subdirs of existing dirs
4682 for cf_test_libdir in $LDFLAGS $LIBS ; do
4683 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
4684 cf_have_libdir=yes; break
4688 if test "$cf_have_libdir" = no ; then
4689 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
4691 echo "${as_me:-configure}:4691: testing adding $cf_add_libdir to library-path ..." 1>&5
4693 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
4699 LIBS="-lcurses -ltermcap $LIBS"
4701 ac_cv_func_initscr=yes
4705 if test ".$ac_cv_func_initscr" != .yes ; then
4706 cf_save_LIBS="$LIBS"
4710 if test ".${cf_cv_ncurses_version:-no}" != .no
4712 cf_check_list="ncurses curses cursesX"
4714 cf_check_list="cursesX curses ncurses"
4717 # Check for library containing tgoto. Do this before curses library
4718 # because it may be needed to link the test-case for initscr.
4719 echo "$as_me:4719: checking for tgoto" >&5
4720 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
4721 if test "${ac_cv_func_tgoto+set}" = set; then
4722 echo $ECHO_N "(cached) $ECHO_C" >&6
4724 cat >conftest.$ac_ext <<_ACEOF
4725 #line 4725 "configure"
4726 #include "confdefs.h"
4727 /* System header to define __stub macros and hopefully few prototypes,
4728 which can conflict with char tgoto (); below. */
4730 /* Override any gcc2 internal prototype to avoid an error. */
4734 /* We use char because int might match the return type of a gcc2
4735 builtin and then its argument prototype would still apply. */
4742 /* The GNU C library defines this for functions which it implements
4743 to always fail with ENOSYS. Some functions are actually named
4744 something starting with __ and the normal name is an alias. */
4745 #if defined (__stub_tgoto) || defined (__stub___tgoto)
4755 rm -f conftest.$ac_objext conftest$ac_exeext
4756 if { (eval echo "$as_me:4756: \"$ac_link\"") >&5
4757 (eval $ac_link) 2>&5