2 # From configure.in Revision: 1.442 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20080325.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Avoid depending upon Character Ranges.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
35 if expr a : '\(a\)' >/dev/null 2>&1; then
41 rm -f conf$$ conf$$.exe conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
44 # We could just check for DJGPP; but this test a) works b) is more generic
45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 if test -f conf$$.exe; then
47 # Don't use ln at all; we don't have any links
52 elif ln conf$$.file conf$$ 2>/dev/null; then
57 rm -f conf$$ conf$$.exe conf$$.file
59 as_executable_p="test -f"
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
79 # We need space, tab and new line, in precisely that order.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
97 ac_default_prefix=/usr/local
101 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 # This variable seems obsolete. It should probably be removed, and
105 # only ac_max_sed_lines should be used.
106 : ${ac_max_here_lines=38}
108 ac_unique_file="ncurses/base/lib_initscr.c"
109 # Factoring default headers for most tests.
110 ac_includes_default="\
113 # include <sys/types.h>
116 # include <sys/stat.h>
127 # if !STDC_HEADERS && HAVE_MEMORY_H
133 # include <strings.h>
136 # include <inttypes.h>
146 # Initialize some variables set by options.
148 ac_init_version=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
158 program_transform_name=s,x,x,
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datadir='${prefix}/share'
175 sysconfdir='${prefix}/etc'
176 sharedstatedir='${prefix}/com'
177 localstatedir='${prefix}/var'
178 libdir='${exec_prefix}/lib'
179 includedir='${prefix}/include'
180 oldincludedir='/usr/include'
181 infodir='${prefix}/info'
182 mandir='${prefix}/man'
184 # Identity of this package.
194 # If the previous option needs an argument, assign it.
195 if test -n "$ac_prev"; then
196 eval "$ac_prev=\$ac_option"
201 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
203 # Accept the important Cygnus configure options, so we can diagnose typos.
207 -bindir | --bindir | --bindi | --bind | --bin | --bi)
209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
212 -build | --build | --buil | --bui | --bu)
213 ac_prev=build_alias ;;
214 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
215 build_alias=$ac_optarg ;;
217 -cache-file | --cache-file | --cache-fil | --cache-fi \
218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
219 ac_prev=cache_file ;;
220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
222 cache_file=$ac_optarg ;;
225 cache_file=config.cache ;;
227 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
229 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
231 datadir=$ac_optarg ;;
233 -disable-* | --disable-*)
234 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
235 # Reject names that are not valid shell variable names.
236 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
237 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
238 { (exit 1); exit 1; }; }
239 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
240 eval "enable_$ac_feature=no" ;;
242 -enable-* | --enable-*)
243 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
244 # Reject names that are not valid shell variable names.
245 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
246 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
247 { (exit 1); exit 1; }; }
248 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
250 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
253 eval "enable_$ac_feature='$ac_optarg'" ;;
255 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
256 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
257 | --exec | --exe | --ex)
258 ac_prev=exec_prefix ;;
259 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
260 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
261 | --exec=* | --exe=* | --ex=*)
262 exec_prefix=$ac_optarg ;;
264 -gas | --gas | --ga | --g)
265 # Obsolete; use --with-gas.
268 -help | --help | --hel | --he | -h)
270 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
271 ac_init_help=recursive ;;
272 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
273 ac_init_help=short ;;
275 -host | --host | --hos | --ho)
276 ac_prev=host_alias ;;
277 -host=* | --host=* | --hos=* | --ho=*)
278 host_alias=$ac_optarg ;;
280 -includedir | --includedir | --includedi | --included | --include \
281 | --includ | --inclu | --incl | --inc)
282 ac_prev=includedir ;;
283 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
284 | --includ=* | --inclu=* | --incl=* | --inc=*)
285 includedir=$ac_optarg ;;
287 -infodir | --infodir | --infodi | --infod | --info | --inf)
289 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
290 infodir=$ac_optarg ;;
292 -libdir | --libdir | --libdi | --libd)
294 -libdir=* | --libdir=* | --libdi=* | --libd=*)
297 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
298 | --libexe | --libex | --libe)
299 ac_prev=libexecdir ;;
300 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
301 | --libexe=* | --libex=* | --libe=*)
302 libexecdir=$ac_optarg ;;
304 -localstatedir | --localstatedir | --localstatedi | --localstated \
305 | --localstate | --localstat | --localsta | --localst \
306 | --locals | --local | --loca | --loc | --lo)
307 ac_prev=localstatedir ;;
308 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
309 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
310 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
311 localstatedir=$ac_optarg ;;
313 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
315 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
319 # Obsolete; use --without-fp.
322 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
326 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
327 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
330 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
331 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
332 | --oldin | --oldi | --old | --ol | --o)
333 ac_prev=oldincludedir ;;
334 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
335 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
336 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
337 oldincludedir=$ac_optarg ;;
339 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
341 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
344 -program-prefix | --program-prefix | --program-prefi | --program-pref \
345 | --program-pre | --program-pr | --program-p)
346 ac_prev=program_prefix ;;
347 -program-prefix=* | --program-prefix=* | --program-prefi=* \
348 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
349 program_prefix=$ac_optarg ;;
351 -program-suffix | --program-suffix | --program-suffi | --program-suff \
352 | --program-suf | --program-su | --program-s)
353 ac_prev=program_suffix ;;
354 -program-suffix=* | --program-suffix=* | --program-suffi=* \
355 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
356 program_suffix=$ac_optarg ;;
358 -program-transform-name | --program-transform-name \
359 | --program-transform-nam | --program-transform-na \
360 | --program-transform-n | --program-transform- \
361 | --program-transform | --program-transfor \
362 | --program-transfo | --program-transf \
363 | --program-trans | --program-tran \
364 | --progr-tra | --program-tr | --program-t)
365 ac_prev=program_transform_name ;;
366 -program-transform-name=* | --program-transform-name=* \
367 | --program-transform-nam=* | --program-transform-na=* \
368 | --program-transform-n=* | --program-transform-=* \
369 | --program-transform=* | --program-transfor=* \
370 | --program-transfo=* | --program-transf=* \
371 | --program-trans=* | --program-tran=* \
372 | --progr-tra=* | --program-tr=* | --program-t=*)
373 program_transform_name=$ac_optarg ;;
375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
376 | -silent | --silent | --silen | --sile | --sil)
379 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
381 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
383 sbindir=$ac_optarg ;;
385 -sharedstatedir | --sharedstatedir | --sharedstatedi \
386 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
387 | --sharedst | --shareds | --shared | --share | --shar \
389 ac_prev=sharedstatedir ;;
390 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
391 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
392 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
394 sharedstatedir=$ac_optarg ;;
396 -site | --site | --sit)
398 -site=* | --site=* | --sit=*)
401 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
403 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
406 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
407 | --syscon | --sysco | --sysc | --sys | --sy)
408 ac_prev=sysconfdir ;;
409 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
410 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
411 sysconfdir=$ac_optarg ;;
413 -target | --target | --targe | --targ | --tar | --ta | --t)
414 ac_prev=target_alias ;;
415 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
416 target_alias=$ac_optarg ;;
418 -v | -verbose | --verbose | --verbos | --verbo | --verb)
421 -version | --version | --versio | --versi | --vers | -V)
425 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
426 # Reject names that are not valid shell variable names.
427 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
428 { echo "$as_me: error: invalid package name: $ac_package" >&2
429 { (exit 1); exit 1; }; }
430 ac_package=`echo $ac_package| sed 's/-/_/g'`
432 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
435 eval "with_$ac_package='$ac_optarg'" ;;
437 -without-* | --without-*)
438 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
439 # Reject names that are not valid shell variable names.
440 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
441 { echo "$as_me: error: invalid package name: $ac_package" >&2
442 { (exit 1); exit 1; }; }
443 ac_package=`echo $ac_package | sed 's/-/_/g'`
444 eval "with_$ac_package=no" ;;
447 # Obsolete; use --with-x.
450 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
451 | --x-incl | --x-inc | --x-in | --x-i)
452 ac_prev=x_includes ;;
453 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
454 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
455 x_includes=$ac_optarg ;;
457 -x-libraries | --x-libraries | --x-librarie | --x-librari \
458 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
459 ac_prev=x_libraries ;;
460 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
461 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
462 x_libraries=$ac_optarg ;;
464 -*) { echo "$as_me: error: unrecognized option: $ac_option
465 Try \`$0 --help' for more information." >&2
466 { (exit 1); exit 1; }; }
470 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
471 # Reject names that are not valid shell variable names.
472 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
473 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
474 { (exit 1); exit 1; }; }
475 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
476 eval "$ac_envvar='$ac_optarg'"
480 # FIXME: should be removed in autoconf 3.0.
481 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
482 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
483 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
484 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
490 if test -n "$ac_prev"; then
491 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
492 { echo "$as_me: error: missing argument to $ac_option" >&2
493 { (exit 1); exit 1; }; }
496 # Be sure to have absolute paths.
497 for ac_var in exec_prefix prefix
499 eval ac_val=$`echo $ac_var`
501 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
502 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
503 { (exit 1); exit 1; }; };;
507 # Be sure to have absolute paths.
508 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
509 localstatedir libdir includedir oldincludedir infodir mandir
511 eval ac_val=$`echo $ac_var`
513 [\\/$]* | ?:[\\/]* ) ;;
514 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
515 { (exit 1); exit 1; }; };;
519 # There might be people who depend on the old broken behavior: `$host'
520 # used to hold the argument of --host etc.
525 # FIXME: should be removed in autoconf 3.0.
526 if test "x$host_alias" != x; then
527 if test "x$build_alias" = x; then
528 cross_compiling=maybe
529 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
530 If a cross compiler is detected then cross compile mode will be used." >&2
531 elif test "x$build_alias" != "x$host_alias"; then
537 test -n "$host_alias" && ac_tool_prefix=$host_alias-
539 test "$silent" = yes && exec 6>/dev/null
541 # Find the source files, if location was not specified.
542 if test -z "$srcdir"; then
543 ac_srcdir_defaulted=yes
544 # Try the directory containing this script, then its parent.
546 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
547 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
549 if test ! -r $srcdir/$ac_unique_file; then
553 ac_srcdir_defaulted=no
555 if test ! -r $srcdir/$ac_unique_file; then
556 if test "$ac_srcdir_defaulted" = yes; then
557 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
558 { (exit 1); exit 1; }; }
560 { echo "$as_me: error: cannot find sources in $srcdir" >&2
561 { (exit 1); exit 1; }; }
564 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
565 ac_env_build_alias_set=${build_alias+set}
566 ac_env_build_alias_value=$build_alias
567 ac_cv_env_build_alias_set=${build_alias+set}
568 ac_cv_env_build_alias_value=$build_alias
569 ac_env_host_alias_set=${host_alias+set}
570 ac_env_host_alias_value=$host_alias
571 ac_cv_env_host_alias_set=${host_alias+set}
572 ac_cv_env_host_alias_value=$host_alias
573 ac_env_target_alias_set=${target_alias+set}
574 ac_env_target_alias_value=$target_alias
575 ac_cv_env_target_alias_set=${target_alias+set}
576 ac_cv_env_target_alias_value=$target_alias
577 ac_env_CC_set=${CC+set}
579 ac_cv_env_CC_set=${CC+set}
580 ac_cv_env_CC_value=$CC
581 ac_env_CFLAGS_set=${CFLAGS+set}
582 ac_env_CFLAGS_value=$CFLAGS
583 ac_cv_env_CFLAGS_set=${CFLAGS+set}
584 ac_cv_env_CFLAGS_value=$CFLAGS
585 ac_env_LDFLAGS_set=${LDFLAGS+set}
586 ac_env_LDFLAGS_value=$LDFLAGS
587 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
588 ac_cv_env_LDFLAGS_value=$LDFLAGS
589 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
590 ac_env_CPPFLAGS_value=$CPPFLAGS
591 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
592 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
593 ac_env_CPP_set=${CPP+set}
594 ac_env_CPP_value=$CPP
595 ac_cv_env_CPP_set=${CPP+set}
596 ac_cv_env_CPP_value=$CPP
597 ac_env_CXX_set=${CXX+set}
598 ac_env_CXX_value=$CXX
599 ac_cv_env_CXX_set=${CXX+set}
600 ac_cv_env_CXX_value=$CXX
601 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
602 ac_env_CXXFLAGS_value=$CXXFLAGS
603 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
604 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
605 ac_env_CXXCPP_set=${CXXCPP+set}
606 ac_env_CXXCPP_value=$CXXCPP
607 ac_cv_env_CXXCPP_set=${CXXCPP+set}
608 ac_cv_env_CXXCPP_value=$CXXCPP
611 # Report the --help message.
613 if test "$ac_init_help" = "long"; then
614 # Omit some internal or obsolete options to make the list less imposing.
615 # This message is too long to be a string in the A/UX 3.1 sh.
617 \`configure' configures this package to adapt to many kinds of systems.
619 Usage: $0 [OPTION]... [VAR=VALUE]...
621 To assign environment variables (e.g., CC, CFLAGS...), specify them as
622 VAR=VALUE. See below for descriptions of some of the useful variables.
624 Defaults for the options are specified in brackets.
627 -h, --help display this help and exit
628 --help=short display options specific to this package
629 --help=recursive display the short help of all the included packages
630 -V, --version display version information and exit
631 -q, --quiet, --silent do not print \`checking...' messages
632 --cache-file=FILE cache test results in FILE [disabled]
633 -C, --config-cache alias for \`--cache-file=config.cache'
634 -n, --no-create do not create output files
635 --srcdir=DIR find the sources in DIR [configure dir or \`..']
640 Installation directories:
641 --prefix=PREFIX install architecture-independent files in PREFIX
643 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
646 By default, \`make install' will install all the files in
647 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
648 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
649 for instance \`--prefix=\$HOME'.
651 For better control, use the options below.
653 Fine tuning of the installation directories:
654 --bindir=DIR user executables [EPREFIX/bin]
655 --sbindir=DIR system admin executables [EPREFIX/sbin]
656 --libexecdir=DIR program executables [EPREFIX/libexec]
657 --datadir=DIR read-only architecture-independent data [PREFIX/share]
658 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
659 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
660 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
661 --libdir=DIR object code libraries [EPREFIX/lib]
662 --includedir=DIR C header files [PREFIX/include]
663 --oldincludedir=DIR C header files for non-gcc [/usr/include]
664 --infodir=DIR info documentation [PREFIX/info]
665 --mandir=DIR man documentation [PREFIX/man]
671 --program-prefix=PREFIX prepend PREFIX to installed program names
672 --program-suffix=SUFFIX append SUFFIX to installed program names
673 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
676 --build=BUILD configure for building on BUILD [guessed]
677 --host=HOST build programs to run on HOST [BUILD]
678 --target=TARGET configure for building compilers for TARGET [HOST]
682 if test -n "$ac_init_help"; then
687 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
688 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
691 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
692 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
694 --with-rel-version=XXX override derived release version
695 --with-abi-version=XXX override derived ABI version
696 --with-system-type=XXX test: override derived host system-type
697 --without-cxx do not adjust ncurses bool to match C++
698 --without-cxx-binding do not build C++ binding and demo
699 --without-ada suppress check for Ada95, don't build demo
700 --without-progs suppress build with programs (e.g., tic)
701 --without-curses-h install curses.h as ncurses.h only
702 --enable-mixed-case tic should assume mixed-case filenames
703 --with-install-prefix prefixes actual install-location ($DESTDIR)
704 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
705 --with-build-cc=XXX the build C compiler ($BUILD_CC)
706 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
707 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
708 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
709 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
710 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
711 Options to Specify the Libraries Built/Used:
712 --with-libtool generate libraries with libtool
713 --with-shared generate shared-libraries
714 --with-normal generate normal-libraries (default)
715 --with-debug generate debug-libraries (default)
716 --with-profile generate profile-libraries
717 --with-termlib generate separate terminfo library
718 --with-ticlib generate separate tic library
719 --with-gpm use Alessandro Rubini's GPM library
720 --without-dlsym do not use dlsym() to load GPM dynamically
721 --with-sysmouse use sysmouse (FreeBSD console)
722 --enable-rpath use rpath option when generating shared libraries
723 --disable-relink relink shared libraries during install
724 --with-shlib-version=X Specify rel or abi version for shared libs
725 Fine-Tuning Your Configuration:
726 --disable-overwrite leave out the link to -lcurses
727 --disable-database do not use terminfo, only fallbacks/termcap
728 --with-database=XXX specify terminfo source to install
729 --with-hashed-db specify hashed-database library
730 --with-fallbacks=XXX specify list of fallback terminal descriptions
731 --without-xterm-new specify if xterm terminfo should be old version
732 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
733 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
734 --disable-big-core assume machine has little memory
735 --disable-big-strings assume compiler has only standard-size strings
736 --enable-termcap compile in termcap fallback support
737 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
738 --enable-getcap fast termcap load, no xrefs to terminfo
739 --enable-getcap-cache cache translated termcaps in ~/.terminfo
740 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
741 --disable-root-environ restrict environment when running as root
742 --enable-symlinks make tic use symbolic links not hard links
743 --enable-broken_linker compile with broken-linker support code
744 --enable-bsdpad recognize BSD-style prefix padding
745 --enable-widec compile with wide-char/UTF-8 code
746 --disable-lp64 allow chtype to be long (ignore _LP64)
747 --disable-largefile omit support for large files
748 --disable-tparm-varargs compile tparm() without varargs interface
749 --with-bool=TYPE override fallback type of bool variable
750 --with-caps=alt compile with alternate Caps file
751 --with-chtype=TYPE override type of chtype
752 --with-ospeed=TYPE override type of ospeed variable
753 --with-mmask-t=TYPE override type of mmask_t
754 --with-rcs-ids compile-in RCS identifiers
755 Options to Specify How Manpages are Installed:
756 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
757 optionally formatted/catonly, e.g., gzip,formatted
758 --with-manpage-renames specify manpage-renaming
759 --with-manpage-aliases specify manpage-aliases using .so
760 --with-manpage-symlinks specify manpage-aliases using symlinks
761 --with-manpage-tbl specify manpage processing with tbl
763 --disable-ext-funcs disable function-extensions
764 --enable-const compile with extra/non-standard const
765 --enable-ext-colors compile for 256-color support
766 --enable-ext-mouse compile for extended mouse-encoding
767 --enable-no-padding compile with $NCURSES_NO_PADDING code
768 --enable-signed-char compile using signed Boolean's in term.h
769 --enable-sigwinch compile with SIGWINCH handler
770 --enable-tcap-names compile with user-definable terminal capabilities
772 --without-develop disable development options
773 --enable-hard-tabs compile with hard-tabs code
774 --enable-xmc-glitch compile with support for xmc (magic-cookie)
776 --disable-assumed-color do not assume anything about default-colors
777 --disable-hashmap compile without hashmap scrolling-optimization
778 --enable-colorfgbg compile with $COLORFGBG code
779 --with-pthread use POSIX thread library
780 --enable-weak-symbols enable weak-symbols for pthreads
781 --enable-reentrant compile with experimental reentrant code
782 --enable-safe-sprintf compile with experimental safe-sprintf code
783 --disable-scroll-hints compile without scroll-hints code
784 --enable-wgetch-events compile with experimental wgetch-events code
785 Testing/development Options:
786 --enable-echo build: display "compiling" commands (default)
787 --enable-warnings build: turn on GCC compiler warnings
788 --enable-assertions test: turn on generation of assertion code
789 --with-dmalloc test: use Gray Watson's dmalloc library
790 --with-dbmalloc test: use Conor Cahill's dbmalloc library
791 --with-valgrind test: use valgrind
792 --disable-leaks test: free permanent memory, analyze leaks
793 --enable-expanded test: generate functions for certain macros
794 --disable-macros test: use functions rather than macros
795 --with-trace test: add trace() function to all models of ncurses
796 Ada95 Binding Options:
797 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
798 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/lib/ada/adainclude)
799 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
801 Some influential environment variables:
802 CC C compiler command
803 CFLAGS C compiler flags
804 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
805 nonstandard directory <lib dir>
806 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
807 headers in a nonstandard directory <include dir>
809 CXX C++ compiler command
810 CXXFLAGS C++ compiler flags
811 CXXCPP C++ preprocessor
813 Use these variables to override the choices made by `configure' or to help
814 it to find libraries and programs with nonstandard names/locations.
819 if test "$ac_init_help" = "recursive"; then
820 # If there are subdirs, report their specific --help.
822 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
824 # A "../" for each directory in /$ac_subdir.
825 ac_dots=`echo $ac_subdir |
826 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
829 .) # No --srcdir option. We are building in place.
830 ac_sub_srcdir=$srcdir ;;
831 [\\/]* | ?:[\\/]* ) # Absolute path.
832 ac_sub_srcdir=$srcdir/$ac_subdir ;;
834 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
837 # Check for guested configure; otherwise get Cygnus style configure.
838 if test -f $ac_sub_srcdir/configure.gnu; then
840 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
841 elif test -f $ac_sub_srcdir/configure; then
843 $SHELL $ac_sub_srcdir/configure --help=recursive
844 elif test -f $ac_sub_srcdir/configure.ac ||
845 test -f $ac_sub_srcdir/configure.in; then
849 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
855 test -n "$ac_init_help" && exit 0
856 if $ac_init_version; then
859 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
860 Free Software Foundation, Inc.
861 This configure script is free software; the Free Software Foundation
862 gives unlimited permission to copy, distribute and modify it.
868 This file contains any messages produced by compilers while
869 running configure, to aid debugging if configure makes a mistake.
871 It was created by $as_me, which was
872 generated by GNU Autoconf 2.52.20080325. Invocation command line was
883 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
884 uname -m = `(uname -m) 2>/dev/null || echo unknown`
885 uname -r = `(uname -r) 2>/dev/null || echo unknown`
886 uname -s = `(uname -s) 2>/dev/null || echo unknown`
887 uname -v = `(uname -v) 2>/dev/null || echo unknown`
889 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
890 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
892 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
893 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
894 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
895 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
896 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
897 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
898 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
912 # Keep a trace of the command line.
913 # Strip out --no-create and --no-recursion so they do not pile up.
914 # Also quote any args containing shell meta-characters.
920 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
921 | --no-cr | --no-c) ;;
922 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
923 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
924 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
925 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
926 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
928 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
931 # Get rid of the leading space.
934 # When interrupted or exit'd, cleanup temporary files, and complete
935 # config.log. We remove comments because anyway the quotes in there
936 # would cause problems or look ugly.
938 # Save into config.log some information that might help in debugging.
940 echo "## ----------------- ##" >&5
941 echo "## Cache variables. ##" >&5
942 echo "## ----------------- ##" >&5
944 # The following way of writing the cache mishandles newlines in values,
947 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
950 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
951 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
955 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
959 sed "/^$/d" confdefs.h >conftest.log
960 if test -s conftest.log; then
962 echo "## ------------ ##" >&5
963 echo "## confdefs.h. ##" >&5
964 echo "## ------------ ##" >&5
969 test "$ac_signal" != 0 &&
970 echo "$as_me: caught signal $ac_signal" >&5
971 echo "$as_me: exit $exit_status" >&5
972 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
975 for ac_signal in 1 2 13 15; do
976 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
980 # confdefs.h avoids OS command line length limits that DEFS can exceed.
981 rm -rf conftest* confdefs.h
982 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
985 # Let the site file select an alternate cache file if it wants to.
986 # Prefer explicitly selected file to automatically selected ones.
987 if test -z "$CONFIG_SITE"; then
988 if test "x$prefix" != xNONE; then
989 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
991 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
994 for ac_site_file in $CONFIG_SITE; do
995 if test -r "$ac_site_file"; then
996 { echo "$as_me:996: loading site script $ac_site_file" >&5
997 echo "$as_me: loading site script $ac_site_file" >&6;}
998 cat "$ac_site_file" >&5
1003 if test -r "$cache_file"; then
1004 # Some versions of bash will fail to source /dev/null (special
1005 # files actually), so we avoid doing that.
1006 if test -f "$cache_file"; then
1007 { echo "$as_me:1007: loading cache $cache_file" >&5
1008 echo "$as_me: loading cache $cache_file" >&6;}
1010 [\\/]* | ?:[\\/]* ) . $cache_file;;
1011 *) . ./$cache_file;;
1015 { echo "$as_me:1015: creating cache $cache_file" >&5
1016 echo "$as_me: creating cache $cache_file" >&6;}
1020 # Check that the precious variables saved in the cache have kept the same
1022 ac_cache_corrupted=false
1023 for ac_var in `(set) 2>&1 |
1024 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1025 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1026 eval ac_new_set=\$ac_env_${ac_var}_set
1027 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1028 eval ac_new_val="\$ac_env_${ac_var}_value"
1029 case $ac_old_set,$ac_new_set in
1031 { echo "$as_me:1031: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1032 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1033 ac_cache_corrupted=: ;;
1035 { echo "$as_me:1035: error: \`$ac_var' was not set in the previous run" >&5
1036 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1037 ac_cache_corrupted=: ;;
1040 if test "x$ac_old_val" != "x$ac_new_val"; then
1041 { echo "$as_me:1041: error: \`$ac_var' has changed since the previous run:" >&5
1042 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1043 { echo "$as_me:1043: former value: $ac_old_val" >&5
1044 echo "$as_me: former value: $ac_old_val" >&2;}
1045 { echo "$as_me:1045: current value: $ac_new_val" >&5
1046 echo "$as_me: current value: $ac_new_val" >&2;}
1047 ac_cache_corrupted=:
1050 # Pass precious variables to config.status. It doesn't matter if
1051 # we pass some twice (in addition to the command line arguments).
1052 if test "$ac_new_set" = set; then
1054 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1055 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1056 ac_configure_args="$ac_configure_args '$ac_arg'"
1058 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1063 if $ac_cache_corrupted; then
1064 { echo "$as_me:1064: error: changes in the environment can compromise the build" >&5
1065 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1066 { { echo "$as_me:1066: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1067 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1068 { (exit 1); exit 1; }; }
1072 ac_cpp='$CPP $CPPFLAGS'
1073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1076 ac_main_return=return
1078 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1079 *c*,-n*) ECHO_N= ECHO_C='
1081 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1082 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1084 echo "#! $SHELL" >conftest.sh
1085 echo "exit 0" >>conftest.sh
1086 chmod +x conftest.sh
1087 if { (echo "$as_me:1087: PATH=\".;.\"; conftest.sh") >&5
1088 (PATH=".;."; conftest.sh) 2>&5
1090 echo "$as_me:1090: \$? = $ac_status" >&5
1091 (exit $ac_status); }; then
1092 ac_path_separator=';'
1096 PATH_SEPARATOR="$ac_path_separator"
1099 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1103 echo "$as_me:1103: checking for egrep" >&5
1104 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1105 if test "${ac_cv_prog_egrep+set}" = set; then
1106 echo $ECHO_N "(cached) $ECHO_C" >&6
1108 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1109 then ac_cv_prog_egrep='grep -E'
1110 else ac_cv_prog_egrep='egrep'
1113 echo "$as_me:1113: result: $ac_cv_prog_egrep" >&5
1114 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1115 EGREP=$ac_cv_prog_egrep
1117 test -z "$EGREP" && { { echo "$as_me:1117: error: No egrep program found" >&5
1118 echo "$as_me: error: No egrep program found" >&2;}
1119 { (exit 1); exit 1; }; }
1121 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1122 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1123 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1124 cf_cv_abi_version=${NCURSES_MAJOR}
1125 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1126 cf_cv_timestamp=`date`
1127 echo "$as_me:1127: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1128 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1130 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1132 # Check whether --with-rel-version or --without-rel-version was given.
1133 if test "${with_rel_version+set}" = set; then
1134 withval="$with_rel_version"
1135 { echo "$as_me:1135: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1136 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1137 cf_cv_rel_version=$withval
1140 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1141 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1143 if test -n "$NCURSES_MAJOR" ; then
1144 case $NCURSES_MAJOR in #(vi
1148 { { echo "$as_me:1148: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1149 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1150 { (exit 1); exit 1; }; }
1154 { { echo "$as_me:1154: error: Release major-version value is empty" >&5
1155 echo "$as_me: error: Release major-version value is empty" >&2;}
1156 { (exit 1); exit 1; }; }
1159 if test -n "$NCURSES_MINOR" ; then
1160 case $NCURSES_MINOR in #(vi
1164 { { echo "$as_me:1164: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1165 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1166 { (exit 1); exit 1; }; }
1170 { { echo "$as_me:1170: error: Release minor-version value is empty" >&5
1171 echo "$as_me: error: Release minor-version value is empty" >&2;}
1172 { (exit 1); exit 1; }; }
1175 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1177 # Check whether --with-abi-version or --without-abi-version was given.
1178 if test "${with_abi_version+set}" = set; then
1179 withval="$with_abi_version"
1180 { echo "$as_me:1180: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1181 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1182 cf_cv_abi_version=$withval
1185 if test -n "$cf_cv_abi_version" ; then
1186 case $cf_cv_abi_version in #(vi
1190 { { echo "$as_me:1190: error: ABI version is not a number: $cf_cv_abi_version" >&5
1191 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1192 { (exit 1); exit 1; }; }
1196 { { echo "$as_me:1196: error: ABI version value is empty" >&5
1197 echo "$as_me: error: ABI version value is empty" >&2;}
1198 { (exit 1); exit 1; }; }
1202 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1203 if test -f $ac_dir/install-sh; then
1205 ac_install_sh="$ac_aux_dir/install-sh -c"
1207 elif test -f $ac_dir/install.sh; then
1209 ac_install_sh="$ac_aux_dir/install.sh -c"
1211 elif test -f $ac_dir/shtool; then
1213 ac_install_sh="$ac_aux_dir/shtool install -c"
1217 if test -z "$ac_aux_dir"; then
1218 { { echo "$as_me:1218: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1219 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1220 { (exit 1); exit 1; }; }
1222 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1223 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1224 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1226 # Make sure we can run config.sub.
1227 $ac_config_sub sun4 >/dev/null 2>&1 ||
1228 { { echo "$as_me:1228: error: cannot run $ac_config_sub" >&5
1229 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1230 { (exit 1); exit 1; }; }
1232 echo "$as_me:1232: checking build system type" >&5
1233 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1234 if test "${ac_cv_build+set}" = set; then
1235 echo $ECHO_N "(cached) $ECHO_C" >&6
1237 ac_cv_build_alias=$build_alias
1238 test -z "$ac_cv_build_alias" &&
1239 ac_cv_build_alias=`$ac_config_guess`
1240 test -z "$ac_cv_build_alias" &&
1241 { { echo "$as_me:1241: error: cannot guess build type; you must specify one" >&5
1242 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1243 { (exit 1); exit 1; }; }
1244 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1245 { { echo "$as_me:1245: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1246 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1247 { (exit 1); exit 1; }; }
1250 echo "$as_me:1250: result: $ac_cv_build" >&5
1251 echo "${ECHO_T}$ac_cv_build" >&6
1253 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1254 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1255 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1257 echo "$as_me:1257: checking host system type" >&5
1258 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1259 if test "${ac_cv_host+set}" = set; then
1260 echo $ECHO_N "(cached) $ECHO_C" >&6
1262 ac_cv_host_alias=$host_alias
1263 test -z "$ac_cv_host_alias" &&
1264 ac_cv_host_alias=$ac_cv_build_alias
1265 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1266 { { echo "$as_me:1266: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1267 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1268 { (exit 1); exit 1; }; }
1271 echo "$as_me:1271: result: $ac_cv_host" >&5
1272 echo "${ECHO_T}$ac_cv_host" >&6
1274 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1275 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1276 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1278 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1279 echo "$as_me:1279: checking target system type" >&5
1280 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1281 if test "${ac_cv_target+set}" = set; then
1282 echo $ECHO_N "(cached) $ECHO_C" >&6
1284 ac_cv_target_alias=$target_alias
1285 test "x$ac_cv_target_alias" = "x" &&
1286 ac_cv_target_alias=$ac_cv_host_alias
1287 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1288 { { echo "$as_me:1288: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1289 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1290 { (exit 1); exit 1; }; }
1293 echo "$as_me:1293: result: $ac_cv_target" >&5
1294 echo "${ECHO_T}$ac_cv_target" >&6
1295 target=$ac_cv_target
1296 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1297 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1298 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1300 # The aliases save the names the user supplied, while $host etc.
1301 # will get canonicalized.
1302 test -n "$target_alias" &&
1303 test "$program_prefix$program_suffix$program_transform_name" = \
1305 program_prefix=${target_alias}-
1306 system_name="$host_os"
1308 system_name="`(uname -s -r) 2>/dev/null`"
1309 if test -z "$system_name" ; then
1310 system_name="`(hostname) 2>/dev/null`"
1313 test -n "$system_name" && cat >>confdefs.h <<EOF
1314 #define SYSTEM_NAME "$system_name"
1317 if test "${cf_cv_system_name+set}" = set; then
1318 echo $ECHO_N "(cached) $ECHO_C" >&6
1320 cf_cv_system_name="$system_name"
1323 test -z "$system_name" && system_name="$cf_cv_system_name"
1324 test -n "$cf_cv_system_name" && echo "$as_me:1324: result: Configuring for $cf_cv_system_name" >&5
1325 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1327 if test ".$system_name" != ".$cf_cv_system_name" ; then
1328 echo "$as_me:1328: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1329 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1330 { { echo "$as_me:1330: error: \"Please remove config.cache and try again.\"" >&5
1331 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1332 { (exit 1); exit 1; }; }
1335 # Check whether --with-system-type or --without-system-type was given.
1336 if test "${with_system_type+set}" = set; then
1337 withval="$with_system_type"
1338 { echo "$as_me:1338: WARNING: overriding system type to $withval" >&5
1339 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1340 cf_cv_system_name=$withval
1343 ### Save the given $CFLAGS to allow user-override.
1344 cf_user_CFLAGS="$CFLAGS"
1346 ### Default install-location
1348 echo "$as_me:1348: checking for prefix" >&5
1349 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1350 if test "x$prefix" = "xNONE" ; then
1351 case "$cf_cv_system_name" in
1352 # non-vendor systems don't have a conflict
1353 openbsd*|freebsd*|linux*|cygwin*|k*bsd*-gnu)
1356 *) prefix=$ac_default_prefix
1360 echo "$as_me:1360: result: $prefix" >&5
1361 echo "${ECHO_T}$prefix" >&6
1363 if test "x$prefix" = "xNONE" ; then
1364 echo "$as_me:1364: checking for default include-directory" >&5
1365 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1366 test -n "$verbose" && echo 1>&6
1369 $includedir/ncurses \
1371 $prefix/include/ncurses \
1372 /usr/local/include \
1373 /usr/local/include/ncurses \
1375 /usr/include/ncurses
1377 cf_dir=`eval echo $cf_symbol`
1378 if test -f $cf_dir/curses.h ; then
1379 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1380 includedir="$cf_symbol"
1381 test -n "$verbose" && echo $ac_n " found " 1>&6
1385 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1387 echo "$as_me:1387: result: $includedir" >&5
1388 echo "${ECHO_T}$includedir" >&6
1391 ### Checks for programs.
1393 ac_cpp='$CPP $CPPFLAGS'
1394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1397 ac_main_return=return
1398 if test -n "$ac_tool_prefix"; then
1399 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1400 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1401 echo "$as_me:1401: checking for $ac_word" >&5
1402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1403 if test "${ac_cv_prog_CC+set}" = set; then
1404 echo $ECHO_N "(cached) $ECHO_C" >&6
1406 if test -n "$CC"; then
1407 ac_cv_prog_CC="$CC" # Let the user override the test.
1409 ac_save_IFS=$IFS; IFS=$ac_path_separator
1411 for ac_dir in $ac_dummy; do
1413 test -z "$ac_dir" && ac_dir=.
1414 $as_executable_p "$ac_dir/$ac_word" || continue
1415 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1416 echo "$as_me:1416: found $ac_dir/$ac_word" >&5
1423 if test -n "$CC"; then
1424 echo "$as_me:1424: result: $CC" >&5
1425 echo "${ECHO_T}$CC" >&6
1427 echo "$as_me:1427: result: no" >&5
1428 echo "${ECHO_T}no" >&6
1432 if test -z "$ac_cv_prog_CC"; then
1434 # Extract the first word of "gcc", so it can be a program name with args.
1435 set dummy gcc; ac_word=$2
1436 echo "$as_me:1436: checking for $ac_word" >&5
1437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1438 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1439 echo $ECHO_N "(cached) $ECHO_C" >&6
1441 if test -n "$ac_ct_CC"; then
1442 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1444 ac_save_IFS=$IFS; IFS=$ac_path_separator
1446 for ac_dir in $ac_dummy; do
1448 test -z "$ac_dir" && ac_dir=.
1449 $as_executable_p "$ac_dir/$ac_word" || continue
1450 ac_cv_prog_ac_ct_CC="gcc"
1451 echo "$as_me:1451: found $ac_dir/$ac_word" >&5
1457 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1458 if test -n "$ac_ct_CC"; then
1459 echo "$as_me:1459: result: $ac_ct_CC" >&5
1460 echo "${ECHO_T}$ac_ct_CC" >&6
1462 echo "$as_me:1462: result: no" >&5
1463 echo "${ECHO_T}no" >&6
1471 if test -z "$CC"; then
1472 if test -n "$ac_tool_prefix"; then
1473 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1474 set dummy ${ac_tool_prefix}cc; ac_word=$2
1475 echo "$as_me:1475: checking for $ac_word" >&5
1476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1477 if test "${ac_cv_prog_CC+set}" = set; then
1478 echo $ECHO_N "(cached) $ECHO_C" >&6
1480 if test -n "$CC"; then
1481 ac_cv_prog_CC="$CC" # Let the user override the test.
1483 ac_save_IFS=$IFS; IFS=$ac_path_separator
1485 for ac_dir in $ac_dummy; do
1487 test -z "$ac_dir" && ac_dir=.
1488 $as_executable_p "$ac_dir/$ac_word" || continue
1489 ac_cv_prog_CC="${ac_tool_prefix}cc"
1490 echo "$as_me:1490: found $ac_dir/$ac_word" >&5
1497 if test -n "$CC"; then
1498 echo "$as_me:1498: result: $CC" >&5
1499 echo "${ECHO_T}$CC" >&6
1501 echo "$as_me:1501: result: no" >&5
1502 echo "${ECHO_T}no" >&6
1506 if test -z "$ac_cv_prog_CC"; then
1508 # Extract the first word of "cc", so it can be a program name with args.
1509 set dummy cc; ac_word=$2
1510 echo "$as_me:1510: checking for $ac_word" >&5
1511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1512 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1513 echo $ECHO_N "(cached) $ECHO_C" >&6
1515 if test -n "$ac_ct_CC"; then
1516 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1518 ac_save_IFS=$IFS; IFS=$ac_path_separator
1520 for ac_dir in $ac_dummy; do
1522 test -z "$ac_dir" && ac_dir=.
1523 $as_executable_p "$ac_dir/$ac_word" || continue
1524 ac_cv_prog_ac_ct_CC="cc"
1525 echo "$as_me:1525: found $ac_dir/$ac_word" >&5
1531 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1532 if test -n "$ac_ct_CC"; then
1533 echo "$as_me:1533: result: $ac_ct_CC" >&5
1534 echo "${ECHO_T}$ac_ct_CC" >&6
1536 echo "$as_me:1536: result: no" >&5
1537 echo "${ECHO_T}no" >&6
1546 if test -z "$CC"; then
1547 # Extract the first word of "cc", so it can be a program name with args.
1548 set dummy cc; ac_word=$2
1549 echo "$as_me:1549: checking for $ac_word" >&5
1550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1551 if test "${ac_cv_prog_CC+set}" = set; then
1552 echo $ECHO_N "(cached) $ECHO_C" >&6
1554 if test -n "$CC"; then
1555 ac_cv_prog_CC="$CC" # Let the user override the test.
1558 ac_save_IFS=$IFS; IFS=$ac_path_separator
1560 for ac_dir in $ac_dummy; do
1562 test -z "$ac_dir" && ac_dir=.
1563 $as_executable_p "$ac_dir/$ac_word" || continue
1564 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1565 ac_prog_rejected=yes
1569 echo "$as_me:1569: found $ac_dir/$ac_word" >&5
1573 if test $ac_prog_rejected = yes; then
1574 # We found a bogon in the path, so make sure we never use it.
1575 set dummy $ac_cv_prog_CC
1577 if test $# != 0; then
1578 # We chose a different compiler from the bogus one.
1579 # However, it has the same basename, so the bogon will be chosen
1580 # first if we set CC to just the basename; use the full file name.
1582 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1590 if test -n "$CC"; then
1591 echo "$as_me:1591: result: $CC" >&5
1592 echo "${ECHO_T}$CC" >&6
1594 echo "$as_me:1594: result: no" >&5
1595 echo "${ECHO_T}no" >&6
1599 if test -z "$CC"; then
1600 if test -n "$ac_tool_prefix"; then
1603 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1604 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1605 echo "$as_me:1605: checking for $ac_word" >&5
1606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1607 if test "${ac_cv_prog_CC+set}" = set; then
1608 echo $ECHO_N "(cached) $ECHO_C" >&6
1610 if test -n "$CC"; then
1611 ac_cv_prog_CC="$CC" # Let the user override the test.
1613 ac_save_IFS=$IFS; IFS=$ac_path_separator
1615 for ac_dir in $ac_dummy; do
1617 test -z "$ac_dir" && ac_dir=.
1618 $as_executable_p "$ac_dir/$ac_word" || continue
1619 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1620 echo "$as_me:1620: found $ac_dir/$ac_word" >&5
1627 if test -n "$CC"; then
1628 echo "$as_me:1628: result: $CC" >&5
1629 echo "${ECHO_T}$CC" >&6
1631 echo "$as_me:1631: result: no" >&5
1632 echo "${ECHO_T}no" >&6
1635 test -n "$CC" && break
1638 if test -z "$CC"; then
1642 # Extract the first word of "$ac_prog", so it can be a program name with args.
1643 set dummy $ac_prog; ac_word=$2
1644 echo "$as_me:1644: checking for $ac_word" >&5
1645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1646 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1647 echo $ECHO_N "(cached) $ECHO_C" >&6
1649 if test -n "$ac_ct_CC"; then
1650 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1652 ac_save_IFS=$IFS; IFS=$ac_path_separator
1654 for ac_dir in $ac_dummy; do
1656 test -z "$ac_dir" && ac_dir=.
1657 $as_executable_p "$ac_dir/$ac_word" || continue
1658 ac_cv_prog_ac_ct_CC="$ac_prog"
1659 echo "$as_me:1659: found $ac_dir/$ac_word" >&5
1665 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1666 if test -n "$ac_ct_CC"; then
1667 echo "$as_me:1667: result: $ac_ct_CC" >&5
1668 echo "${ECHO_T}$ac_ct_CC" >&6
1670 echo "$as_me:1670: result: no" >&5
1671 echo "${ECHO_T}no" >&6
1674 test -n "$ac_ct_CC" && break
1682 test -z "$CC" && { { echo "$as_me:1682: error: no acceptable cc found in \$PATH" >&5
1683 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1684 { (exit 1); exit 1; }; }
1686 # Provide some information about the compiler.
1687 echo "$as_me:1687:" \
1688 "checking for C compiler version" >&5
1689 ac_compiler=`set X $ac_compile; echo $2`
1690 { (eval echo "$as_me:1690: \"$ac_compiler --version </dev/null >&5\"") >&5
1691 (eval $ac_compiler --version </dev/null >&5) 2>&5
1693 echo "$as_me:1693: \$? = $ac_status" >&5
1694 (exit $ac_status); }
1695 { (eval echo "$as_me:1695: \"$ac_compiler -v </dev/null >&5\"") >&5
1696 (eval $ac_compiler -v </dev/null >&5) 2>&5
1698 echo "$as_me:1698: \$? = $ac_status" >&5
1699 (exit $ac_status); }
1700 { (eval echo "$as_me:1700: \"$ac_compiler -V </dev/null >&5\"") >&5
1701 (eval $ac_compiler -V </dev/null >&5) 2>&5
1703 echo "$as_me:1703: \$? = $ac_status" >&5
1704 (exit $ac_status); }
1706 cat >conftest.$ac_ext <<_ACEOF
1707 #line 1707 "configure"
1708 #include "confdefs.h"
1718 ac_clean_files_save=$ac_clean_files
1719 ac_clean_files="$ac_clean_files a.out a.exe"
1720 # Try to create an executable without -o first, disregard a.out.
1721 # It will help us diagnose broken compilers, and finding out an intuition
1723 echo "$as_me:1723: checking for C compiler default output" >&5
1724 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1725 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1726 if { (eval echo "$as_me:1726: \"$ac_link_default\"") >&5
1727 (eval $ac_link_default) 2>&5
1729 echo "$as_me:1729: \$? = $ac_status" >&5
1730 (exit $ac_status); }; then
1731 # Find the output, starting from the most likely. This scheme is
1732 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1734 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1735 ls a.out conftest 2>/dev/null;
1736 ls a.* conftest.* 2>/dev/null`; do
1738 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1739 a.out ) # We found the default executable, but exeext='' is most
1742 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1743 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1750 echo "$as_me: failed program was:" >&5
1751 cat conftest.$ac_ext >&5
1752 { { echo "$as_me:1752: error: C compiler cannot create executables" >&5
1753 echo "$as_me: error: C compiler cannot create executables" >&2;}
1754 { (exit 77); exit 77; }; }
1757 ac_exeext=$ac_cv_exeext
1758 echo "$as_me:1758: result: $ac_file" >&5
1759 echo "${ECHO_T}$ac_file" >&6
1761 # Check the compiler produces executables we can run. If not, either
1762 # the compiler is broken, or we cross compile.
1763 echo "$as_me:1763: checking whether the C compiler works" >&5
1764 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1765 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1766 # If not cross compiling, check that we can run a simple program.
1767 if test "$cross_compiling" != yes; then
1768 if { ac_try='./$ac_file'
1769 { (eval echo "$as_me:1769: \"$ac_try\"") >&5
1772 echo "$as_me:1772: \$? = $ac_status" >&5
1773 (exit $ac_status); }; }; then
1776 if test "$cross_compiling" = maybe; then
1779 { { echo "$as_me:1779: error: cannot run C compiled programs.
1780 If you meant to cross compile, use \`--host'." >&5
1781 echo "$as_me: error: cannot run C compiled programs.
1782 If you meant to cross compile, use \`--host'." >&2;}
1783 { (exit 1); exit 1; }; }
1787 echo "$as_me:1787: result: yes" >&5
1788 echo "${ECHO_T}yes" >&6
1790 rm -f a.out a.exe conftest$ac_cv_exeext
1791 ac_clean_files=$ac_clean_files_save
1792 # Check the compiler produces executables we can run. If not, either
1793 # the compiler is broken, or we cross compile.
1794 echo "$as_me:1794: checking whether we are cross compiling" >&5
1795 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1796 echo "$as_me:1796: result: $cross_compiling" >&5
1797 echo "${ECHO_T}$cross_compiling" >&6
1799 echo "$as_me:1799: checking for executable suffix" >&5
1800 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1801 if { (eval echo "$as_me:1801: \"$ac_link\"") >&5
1802 (eval $ac_link) 2>&5
1804 echo "$as_me:1804: \$? = $ac_status" >&5
1805 (exit $ac_status); }; then
1806 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1807 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1808 # work properly (i.e., refer to `conftest.exe'), while it won't with
1810 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1812 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1813 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1820 { { echo "$as_me:1820: error: cannot compute EXEEXT: cannot compile and link" >&5
1821 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1822 { (exit 1); exit 1; }; }
1825 rm -f conftest$ac_cv_exeext
1826 echo "$as_me:1826: result: $ac_cv_exeext" >&5
1827 echo "${ECHO_T}$ac_cv_exeext" >&6
1829 rm -f conftest.$ac_ext
1830 EXEEXT=$ac_cv_exeext
1832 echo "$as_me:1832: checking for object suffix" >&5
1833 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1834 if test "${ac_cv_objext+set}" = set; then
1835 echo $ECHO_N "(cached) $ECHO_C" >&6
1837 cat >conftest.$ac_ext <<_ACEOF
1838 #line 1838 "configure"
1839 #include "confdefs.h"
1849 rm -f conftest.o conftest.obj
1850 if { (eval echo "$as_me:1850: \"$ac_compile\"") >&5
1851 (eval $ac_compile) 2>&5
1853 echo "$as_me:1853: \$? = $ac_status" >&5
1854 (exit $ac_status); }; then
1855 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1857 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1858 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1863 echo "$as_me: failed program was:" >&5
1864 cat conftest.$ac_ext >&5
1865 { { echo "$as_me:1865: error: cannot compute OBJEXT: cannot compile" >&5
1866 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1867 { (exit 1); exit 1; }; }
1870 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1872 echo "$as_me:1872: result: $ac_cv_objext" >&5
1873 echo "${ECHO_T}$ac_cv_objext" >&6
1874 OBJEXT=$ac_cv_objext
1876 echo "$as_me:1876: checking whether we are using the GNU C compiler" >&5
1877 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1878 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1879 echo $ECHO_N "(cached) $ECHO_C" >&6
1881 cat >conftest.$ac_ext <<_ACEOF
1882 #line 1882 "configure"
1883 #include "confdefs.h"
1896 rm -f conftest.$ac_objext
1897 if { (eval echo "$as_me:1897: \"$ac_compile\"") >&5
1898 (eval $ac_compile) 2>&5
1900 echo "$as_me:1900: \$? = $ac_status" >&5
1901 (exit $ac_status); } &&
1902 { ac_try='test -s conftest.$ac_objext'
1903 { (eval echo "$as_me:1903: \"$ac_try\"") >&5
1906 echo "$as_me:1906: \$? = $ac_status" >&5
1907 (exit $ac_status); }; }; then
1910 echo "$as_me: failed program was:" >&5
1911 cat conftest.$ac_ext >&5
1914 rm -f conftest.$ac_objext conftest.$ac_ext
1915 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1918 echo "$as_me:1918: result: $ac_cv_c_compiler_gnu" >&5
1919 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1920 GCC=`test $ac_compiler_gnu = yes && echo yes`
1921 ac_test_CFLAGS=${CFLAGS+set}
1922 ac_save_CFLAGS=$CFLAGS
1924 echo "$as_me:1924: checking whether $CC accepts -g" >&5
1925 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1926 if test "${ac_cv_prog_cc_g+set}" = set; then
1927 echo $ECHO_N "(cached) $ECHO_C" >&6
1929 cat >conftest.$ac_ext <<_ACEOF
1930 #line 1930 "configure"
1931 #include "confdefs.h"
1941 rm -f conftest.$ac_objext
1942 if { (eval echo "$as_me:1942: \"$ac_compile\"") >&5
1943 (eval $ac_compile) 2>&5
1945 echo "$as_me:1945: \$? = $ac_status" >&5
1946 (exit $ac_status); } &&
1947 { ac_try='test -s conftest.$ac_objext'
1948 { (eval echo "$as_me:1948: \"$ac_try\"") >&5
1951 echo "$as_me:1951: \$? = $ac_status" >&5
1952 (exit $ac_status); }; }; then
1955 echo "$as_me: failed program was:" >&5
1956 cat conftest.$ac_ext >&5
1959 rm -f conftest.$ac_objext conftest.$ac_ext
1961 echo "$as_me:1961: result: $ac_cv_prog_cc_g" >&5
1962 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1963 if test "$ac_test_CFLAGS" = set; then
1964 CFLAGS=$ac_save_CFLAGS
1965 elif test $ac_cv_prog_cc_g = yes; then
1966 if test "$GCC" = yes; then
1972 if test "$GCC" = yes; then
1978 # Some people use a C++ compiler to compile C. Since we use `exit',
1979 # in C++ we need to declare it. In case someone uses the same compiler
1980 # for both compiling C and C++ we need to have the C++ compiler decide
1981 # the declaration of exit, since it's the most demanding environment.
1982 cat >conftest.$ac_ext <<_ACEOF
1987 rm -f conftest.$ac_objext
1988 if { (eval echo "$as_me:1988: \"$ac_compile\"") >&5
1989 (eval $ac_compile) 2>&5
1991 echo "$as_me:1991: \$? = $ac_status" >&5
1992 (exit $ac_status); } &&
1993 { ac_try='test -s conftest.$ac_objext'
1994 { (eval echo "$as_me:1994: \"$ac_try\"") >&5
1997 echo "$as_me:1997: \$? = $ac_status" >&5
1998 (exit $ac_status); }; }; then
1999 for ac_declaration in \
2001 '#include <stdlib.h>' \
2002 'extern "C" void std::exit (int) throw (); using std::exit;' \
2003 'extern "C" void std::exit (int); using std::exit;' \
2004 'extern "C" void exit (int) throw ();' \
2005 'extern "C" void exit (int);' \
2008 cat >conftest.$ac_ext <<_ACEOF
2009 #line 2009 "configure"
2010 #include "confdefs.h"
2021 rm -f conftest.$ac_objext
2022 if { (eval echo "$as_me:2022: \"$ac_compile\"") >&5
2023 (eval $ac_compile) 2>&5
2025 echo "$as_me:2025: \$? = $ac_status" >&5
2026 (exit $ac_status); } &&
2027 { ac_try='test -s conftest.$ac_objext'
2028 { (eval echo "$as_me:2028: \"$ac_try\"") >&5
2031 echo "$as_me:2031: \$? = $ac_status" >&5
2032 (exit $ac_status); }; }; then
2035 echo "$as_me: failed program was:" >&5
2036 cat conftest.$ac_ext >&5
2039 rm -f conftest.$ac_objext conftest.$ac_ext
2040 cat >conftest.$ac_ext <<_ACEOF
2041 #line 2041 "configure"
2042 #include "confdefs.h"
2052 rm -f conftest.$ac_objext
2053 if { (eval echo "$as_me:2053: \"$ac_compile\"") >&5
2054 (eval $ac_compile) 2>&5
2056 echo "$as_me:2056: \$? = $ac_status" >&5
2057 (exit $ac_status); } &&
2058 { ac_try='test -s conftest.$ac_objext'
2059 { (eval echo "$as_me:2059: \"$ac_try\"") >&5
2062 echo "$as_me:2062: \$? = $ac_status" >&5
2063 (exit $ac_status); }; }; then
2066 echo "$as_me: failed program was:" >&5
2067 cat conftest.$ac_ext >&5
2069 rm -f conftest.$ac_objext conftest.$ac_ext
2072 if test -n "$ac_declaration"; then
2073 echo '#ifdef __cplusplus' >>confdefs.h
2074 echo $ac_declaration >>confdefs.h
2075 echo '#endif' >>confdefs.h
2079 echo "$as_me: failed program was:" >&5
2080 cat conftest.$ac_ext >&5
2082 rm -f conftest.$ac_objext conftest.$ac_ext
2084 ac_cpp='$CPP $CPPFLAGS'
2085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2088 ac_main_return=return
2091 if test "$GCC" = yes ; then
2092 echo "$as_me:2092: checking version of $CC" >&5
2093 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2094 GCC_VERSION="`${CC} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2095 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2096 echo "$as_me:2096: result: $GCC_VERSION" >&5
2097 echo "${ECHO_T}$GCC_VERSION" >&6
2101 ac_cpp='$CPP $CPPFLAGS'
2102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2105 ac_main_return=return
2106 echo "$as_me:2106: checking how to run the C preprocessor" >&5
2107 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2108 # On Suns, sometimes $CPP names a directory.
2109 if test -n "$CPP" && test -d "$CPP"; then
2112 if test -z "$CPP"; then
2113 if test "${ac_cv_prog_CPP+set}" = set; then
2114 echo $ECHO_N "(cached) $ECHO_C" >&6
2116 # Double quotes because CPP needs to be expanded
2117 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2120 for ac_c_preproc_warn_flag in '' yes
2122 # Use a header file that comes with gcc, so configuring glibc
2123 # with a fresh cross-compiler works.
2124 # On the NeXT, cc -E runs the code through the compiler's parser,
2125 # not just through cpp. "Syntax error" is here to catch this case.
2126 cat >conftest.$ac_ext <<_ACEOF
2127 #line 2127 "configure"
2128 #include "confdefs.h"
2132 if { (eval echo "$as_me:2132: \"$ac_cpp conftest.$ac_ext\"") >&5
2133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2135 egrep -v '^ *\+' conftest.er1 >conftest.err
2137 cat conftest.err >&5
2138 echo "$as_me:2138: \$? = $ac_status" >&5
2139 (exit $ac_status); } >/dev/null; then
2140 if test -s conftest.err; then
2141 ac_cpp_err=$ac_c_preproc_warn_flag
2148 if test -z "$ac_cpp_err"; then
2151 echo "$as_me: failed program was:" >&5
2152 cat conftest.$ac_ext >&5
2153 # Broken: fails on valid input.
2156 rm -f conftest.err conftest.$ac_ext
2158 # OK, works on sane cases. Now check whether non-existent headers
2159 # can be detected and how.
2160 cat >conftest.$ac_ext <<_ACEOF
2161 #line 2161 "configure"
2162 #include "confdefs.h"
2163 #include <ac_nonexistent.h>
2165 if { (eval echo "$as_me:2165: \"$ac_cpp conftest.$ac_ext\"") >&5
2166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2168 egrep -v '^ *\+' conftest.er1 >conftest.err
2170 cat conftest.err >&5
2171 echo "$as_me:2171: \$? = $ac_status" >&5
2172 (exit $ac_status); } >/dev/null; then
2173 if test -s conftest.err; then
2174 ac_cpp_err=$ac_c_preproc_warn_flag
2181 if test -z "$ac_cpp_err"; then
2182 # Broken: success on invalid input.
2185 echo "$as_me: failed program was:" >&5
2186 cat conftest.$ac_ext >&5
2187 # Passes both tests.
2191 rm -f conftest.err conftest.$ac_ext
2194 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2195 rm -f conftest.err conftest.$ac_ext
2196 if $ac_preproc_ok; then
2208 echo "$as_me:2208: result: $CPP" >&5
2209 echo "${ECHO_T}$CPP" >&6
2211 for ac_c_preproc_warn_flag in '' yes
2213 # Use a header file that comes with gcc, so configuring glibc
2214 # with a fresh cross-compiler works.
2215 # On the NeXT, cc -E runs the code through the compiler's parser,
2216 # not just through cpp. "Syntax error" is here to catch this case.
2217 cat >conftest.$ac_ext <<_ACEOF
2218 #line 2218 "configure"
2219 #include "confdefs.h"
2223 if { (eval echo "$as_me:2223: \"$ac_cpp conftest.$ac_ext\"") >&5
2224 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2226 egrep -v '^ *\+' conftest.er1 >conftest.err
2228 cat conftest.err >&5
2229 echo "$as_me:2229: \$? = $ac_status" >&5
2230 (exit $ac_status); } >/dev/null; then
2231 if test -s conftest.err; then
2232 ac_cpp_err=$ac_c_preproc_warn_flag
2239 if test -z "$ac_cpp_err"; then
2242 echo "$as_me: failed program was:" >&5
2243 cat conftest.$ac_ext >&5
2244 # Broken: fails on valid input.
2247 rm -f conftest.err conftest.$ac_ext
2249 # OK, works on sane cases. Now check whether non-existent headers
2250 # can be detected and how.
2251 cat >conftest.$ac_ext <<_ACEOF
2252 #line 2252 "configure"
2253 #include "confdefs.h"
2254 #include <ac_nonexistent.h>
2256 if { (eval echo "$as_me:2256: \"$ac_cpp conftest.$ac_ext\"") >&5
2257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2259 egrep -v '^ *\+' conftest.er1 >conftest.err
2261 cat conftest.err >&5
2262 echo "$as_me:2262: \$? = $ac_status" >&5
2263 (exit $ac_status); } >/dev/null; then
2264 if test -s conftest.err; then
2265 ac_cpp_err=$ac_c_preproc_warn_flag
2272 if test -z "$ac_cpp_err"; then
2273 # Broken: success on invalid input.
2276 echo "$as_me: failed program was:" >&5
2277 cat conftest.$ac_ext >&5
2278 # Passes both tests.
2282 rm -f conftest.err conftest.$ac_ext
2285 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2286 rm -f conftest.err conftest.$ac_ext
2287 if $ac_preproc_ok; then
2290 { { echo "$as_me:2290: error: C preprocessor \"$CPP\" fails sanity check" >&5
2291 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2292 { (exit 1); exit 1; }; }
2296 ac_cpp='$CPP $CPPFLAGS'
2297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2300 ac_main_return=return
2302 if test $ac_cv_c_compiler_gnu = yes; then
2303 echo "$as_me:2303: checking whether $CC needs -traditional" >&5
2304 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2305 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
2308 ac_pattern="Autoconf.*'x'"
2309 cat >conftest.$ac_ext <<_ACEOF
2310 #line 2310 "configure"
2311 #include "confdefs.h"
2313 int Autoconf = TIOCGETP;
2315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2316 egrep "$ac_pattern" >/dev/null 2>&1; then
2317 ac_cv_prog_gcc_traditional=yes
2319 ac_cv_prog_gcc_traditional=no
2323 if test $ac_cv_prog_gcc_traditional = no; then
2324 cat >conftest.$ac_ext <<_ACEOF
2325 #line 2325 "configure"
2326 #include "confdefs.h"
2328 int Autoconf = TCGETA;
2330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2331 egrep "$ac_pattern" >/dev/null 2>&1; then
2332 ac_cv_prog_gcc_traditional=yes
2338 echo "$as_me:2338: result: $ac_cv_prog_gcc_traditional" >&5
2339 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2340 if test $ac_cv_prog_gcc_traditional = yes; then
2341 CC="$CC -traditional"
2345 echo "$as_me:2345: checking whether $CC understands -c and -o together" >&5
2346 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2347 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2348 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 cat > conftest.$ac_ext <<CF_EOF
2355 ${cf_cv_main_return:-return}(0);
2358 # We do the test twice because some compilers refuse to overwrite an
2359 # existing .o file with -o, though they will create one.
2360 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2361 if { (eval echo "$as_me:2361: \"$ac_try\"") >&5
2364 echo "$as_me:2364: \$? = $ac_status" >&5
2365 (exit $ac_status); } &&
2366 test -f conftest2.$ac_objext && { (eval echo "$as_me:2366: \"$ac_try\"") >&5
2369 echo "$as_me:2369: \$? = $ac_status" >&5
2370 (exit $ac_status); };
2372 eval cf_cv_prog_CC_c_o=yes
2374 eval cf_cv_prog_CC_c_o=no
2379 if test $cf_cv_prog_CC_c_o = yes; then
2380 echo "$as_me:2380: result: yes" >&5
2381 echo "${ECHO_T}yes" >&6
2383 echo "$as_me:2383: result: no" >&5
2384 echo "${ECHO_T}no" >&6
2387 echo "$as_me:2387: checking for POSIXized ISC" >&5
2388 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2389 if test -d /etc/conf/kconfig.d &&
2390 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2392 echo "$as_me:2392: result: yes" >&5
2393 echo "${ECHO_T}yes" >&6
2394 ISC=yes # If later tests want to check for ISC.
2396 cat >>confdefs.h <<\EOF
2397 #define _POSIX_SOURCE 1
2400 if test "$GCC" = yes; then
2406 echo "$as_me:2406: result: no" >&5
2407 echo "${ECHO_T}no" >&6
2411 echo "$as_me:2411: checking for ${CC-cc} option to accept ANSI C" >&5
2412 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2413 if test "${cf_cv_ansi_cc+set}" = set; then
2414 echo $ECHO_N "(cached) $ECHO_C" >&6
2418 cf_save_CFLAGS="$CFLAGS"
2419 cf_save_CPPFLAGS="$CPPFLAGS"
2420 # Don't try gcc -ansi; that turns off useful extensions and
2421 # breaks some systems' header files.
2422 # AIX -qlanglvl=ansi
2423 # Ultrix and OSF/1 -std1
2424 # HP-UX -Aa -D_HPUX_SOURCE
2426 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2427 for cf_arg in "-DCC_HAS_PROTOS" \
2432 "-Aa -D_HPUX_SOURCE" \
2439 cf_new_extra_cppflags=
2441 for cf_add_cflags in $cf_arg
2443 case $cf_fix_cppflags in
2445 case $cf_add_cflags in #(vi
2446 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2447 case $cf_add_cflags in
2449 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2451 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2452 && test -z "${cf_tst_cflags}" \
2453 && cf_fix_cppflags=yes
2455 if test $cf_fix_cppflags = yes ; then
2456 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2458 elif test "${cf_tst_cflags}" = "\"'" ; then
2459 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2465 *$cf_add_cflags) #(vi
2468 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2473 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2478 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2480 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2482 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2483 && test -z "${cf_tst_cflags}" \
2484 && cf_fix_cppflags=no
2489 if test -n "$cf_new_cflags" ; then
2491 CFLAGS="$CFLAGS $cf_new_cflags"
2494 if test -n "$cf_new_cppflags" ; then
2496 CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
2499 if test -n "$cf_new_extra_cppflags" ; then
2501 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2504 cat >conftest.$ac_ext <<_ACEOF
2505 #line 2505 "configure"
2506 #include "confdefs.h"
2508 #ifndef CC_HAS_PROTOS
2509 #if !defined(__STDC__) || (__STDC__ != 1)
2518 int test (int i, double x);
2519 struct s1 {int (*f) (int a);};
2520 struct s2 {int (*f) (double a);};
2525 rm -f conftest.$ac_objext
2526 if { (eval echo "$as_me:2526: \"$ac_compile\"") >&5
2527 (eval $ac_compile) 2>&5
2529 echo "$as_me:2529: \$? = $ac_status" >&5
2530 (exit $ac_status); } &&
2531 { ac_try='test -s conftest.$ac_objext'
2532 { (eval echo "$as_me:2532: \"$ac_try\"") >&5
2535 echo "$as_me:2535: \$? = $ac_status" >&5
2536 (exit $ac_status); }; }; then
2537 cf_cv_ansi_cc="$cf_arg"; break
2539 echo "$as_me: failed program was:" >&5
2540 cat conftest.$ac_ext >&5
2542 rm -f conftest.$ac_objext conftest.$ac_ext
2544 CFLAGS="$cf_save_CFLAGS"
2545 CPPFLAGS="$cf_save_CPPFLAGS"
2548 echo "$as_me:2548: result: $cf_cv_ansi_cc" >&5
2549 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2551 if test "$cf_cv_ansi_cc" != "no"; then
2552 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2557 cf_new_extra_cppflags=
2559 for cf_add_cflags in $cf_cv_ansi_cc
2561 case $cf_fix_cppflags in
2563 case $cf_add_cflags in #(vi
2564 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2565 case $cf_add_cflags in
2567 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2569 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2570 && test -z "${cf_tst_cflags}" \
2571 && cf_fix_cppflags=yes
2573 if test $cf_fix_cppflags = yes ; then
2574 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2576 elif test "${cf_tst_cflags}" = "\"'" ; then
2577 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2583 *$cf_add_cflags) #(vi
2586 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2591 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2596 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2598 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2600 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2601 && test -z "${cf_tst_cflags}" \
2602 && cf_fix_cppflags=no
2607 if test -n "$cf_new_cflags" ; then
2609 CFLAGS="$CFLAGS $cf_new_cflags"
2612 if test -n "$cf_new_cppflags" ; then
2614 CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
2617 if test -n "$cf_new_extra_cppflags" ; then
2619 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2623 cat >>confdefs.h <<\EOF
2624 #define CC_HAS_PROTOS 1
2630 if test "$cf_cv_ansi_cc" = "no"; then
2631 { { echo "$as_me:2631: error: Your compiler does not appear to recognize prototypes.
2632 You have the following choices:
2633 a. adjust your compiler options
2634 b. get an up-to-date compiler
2635 c. use a wrapper such as unproto" >&5
2636 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2637 You have the following choices:
2638 a. adjust your compiler options
2639 b. get an up-to-date compiler
2640 c. use a wrapper such as unproto" >&2;}
2641 { (exit 1); exit 1; }; }
2644 case $cf_cv_system_name in
2646 CFLAGS="$CFLAGS -Zmt"
2647 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2648 CXXFLAGS="$CXXFLAGS -Zmt"
2649 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2650 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2657 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2658 #define PROG_EXT "$PROG_EXT"
2661 if test "$cross_compiling" = yes ; then
2664 case "$cf_cv_system_name" in #(vi
2666 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2668 *) LDPATH=$PATH:/sbin:/usr/sbin
2669 # Extract the first word of "ldconfig", so it can be a program name with args.
2670 set dummy ldconfig; ac_word=$2
2671 echo "$as_me:2671: checking for $ac_word" >&5
2672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2673 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2674 echo $ECHO_N "(cached) $ECHO_C" >&6
2678 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2681 ac_save_IFS=$IFS; IFS=$ac_path_separator
2683 for ac_dir in $ac_dummy; do
2685 test -z "$ac_dir" && ac_dir=.
2686 if $as_executable_p "$ac_dir/$ac_word"; then
2687 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2688 echo "$as_me:2688: found $ac_dir/$ac_word" >&5
2696 LDCONFIG=$ac_cv_path_LDCONFIG
2698 if test -n "$LDCONFIG"; then
2699 echo "$as_me:2699: result: $LDCONFIG" >&5
2700 echo "${ECHO_T}$LDCONFIG" >&6
2702 echo "$as_me:2702: result: no" >&5
2703 echo "${ECHO_T}no" >&6
2710 echo "$as_me:2710: checking if you want to ensure bool is consistent with C++" >&5
2711 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2713 # Check whether --with-cxx or --without-cxx was given.
2714 if test "${with_cxx+set}" = set; then
2716 cf_with_cxx=$withval
2720 echo "$as_me:2720: result: $cf_with_cxx" >&5
2721 echo "${ECHO_T}$cf_with_cxx" >&6
2722 if test "X$cf_with_cxx" = Xno ; then
2726 # with autoconf 2.13, we can change the error to a warning:
2728 ac_cpp='$CXXCPP $CPPFLAGS'
2729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2732 ac_main_return=return
2733 if test -n "$ac_tool_prefix"; then
2734 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2736 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2737 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2738 echo "$as_me:2738: checking for $ac_word" >&5
2739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2740 if test "${ac_cv_prog_CXX+set}" = set; then
2741 echo $ECHO_N "(cached) $ECHO_C" >&6
2743 if test -n "$CXX"; then
2744 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2746 ac_save_IFS=$IFS; IFS=$ac_path_separator
2748 for ac_dir in $ac_dummy; do
2750 test -z "$ac_dir" && ac_dir=.
2751 $as_executable_p "$ac_dir/$ac_word" || continue
2752 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2753 echo "$as_me:2753: found $ac_dir/$ac_word" >&5
2760 if test -n "$CXX"; then
2761 echo "$as_me:2761: result: $CXX" >&5
2762 echo "${ECHO_T}$CXX" >&6
2764 echo "$as_me:2764: result: no" >&5
2765 echo "${ECHO_T}no" >&6
2768 test -n "$CXX" && break
2771 if test -z "$CXX"; then
2773 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2775 # Extract the first word of "$ac_prog", so it can be a program name with args.
2776 set dummy $ac_prog; ac_word=$2
2777 echo "$as_me:2777: checking for $ac_word" >&5
2778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2779 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2780 echo $ECHO_N "(cached) $ECHO_C" >&6
2782 if test -n "$ac_ct_CXX"; then
2783 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2785 ac_save_IFS=$IFS; IFS=$ac_path_separator
2787 for ac_dir in $ac_dummy; do
2789 test -z "$ac_dir" && ac_dir=.
2790 $as_executable_p "$ac_dir/$ac_word" || continue
2791 ac_cv_prog_ac_ct_CXX="$ac_prog"
2792 echo "$as_me:2792: found $ac_dir/$ac_word" >&5
2798 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2799 if test -n "$ac_ct_CXX"; then
2800 echo "$as_me:2800: result: $ac_ct_CXX" >&5
2801 echo "${ECHO_T}$ac_ct_CXX" >&6
2803 echo "$as_me:2803: result: no" >&5
2804 echo "${ECHO_T}no" >&6
2807 test -n "$ac_ct_CXX" && break
2809 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2814 # Provide some information about the compiler.
2815 echo "$as_me:2815:" \
2816 "checking for C++ compiler version" >&5
2817 ac_compiler=`set X $ac_compile; echo $2`
2818 { (eval echo "$as_me:2818: \"$ac_compiler --version </dev/null >&5\"") >&5
2819 (eval $ac_compiler --version </dev/null >&5) 2>&5
2821 echo "$as_me:2821: \$? = $ac_status" >&5
2822 (exit $ac_status); }
2823 { (eval echo "$as_me:2823: \"$ac_compiler -v </dev/null >&5\"") >&5
2824 (eval $ac_compiler -v </dev/null >&5) 2>&5
2826 echo "$as_me:2826: \$? = $ac_status" >&5
2827 (exit $ac_status); }
2828 { (eval echo "$as_me:2828: \"$ac_compiler -V </dev/null >&5\"") >&5
2829 (eval $ac_compiler -V </dev/null >&5) 2>&5
2831 echo "$as_me:2831: \$? = $ac_status" >&5
2832 (exit $ac_status); }
2834 echo "$as_me:2834: checking whether we are using the GNU C++ compiler" >&5
2835 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2836 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2837 echo $ECHO_N "(cached) $ECHO_C" >&6
2839 cat >conftest.$ac_ext <<_ACEOF
2840 #line 2840 "configure"
2841 #include "confdefs.h"
2854 rm -f conftest.$ac_objext
2855 if { (eval echo "$as_me:2855: \"$ac_compile\"") >&5
2856 (eval $ac_compile) 2>&5
2858 echo "$as_me:2858: \$? = $ac_status" >&5
2859 (exit $ac_status); } &&
2860 { ac_try='test -s conftest.$ac_objext'
2861 { (eval echo "$as_me:2861: \"$ac_try\"") >&5
2864 echo "$as_me:2864: \$? = $ac_status" >&5
2865 (exit $ac_status); }; }; then
2868 echo "$as_me: failed program was:" >&5
2869 cat conftest.$ac_ext >&5
2872 rm -f conftest.$ac_objext conftest.$ac_ext
2873 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2876 echo "$as_me:2876: result: $ac_cv_cxx_compiler_gnu" >&5
2877 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2878 GXX=`test $ac_compiler_gnu = yes && echo yes`
2879 ac_test_CXXFLAGS=${CXXFLAGS+set}
2880 ac_save_CXXFLAGS=$CXXFLAGS
2882 echo "$as_me:2882: checking whether $CXX accepts -g" >&5
2883 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2884 if test "${ac_cv_prog_cxx_g+set}" = set; then
2885 echo $ECHO_N "(cached) $ECHO_C" >&6
2887 cat >conftest.$ac_ext <<_ACEOF
2888 #line 2888 "configure"
2889 #include "confdefs.h"
2899 rm -f conftest.$ac_objext
2900 if { (eval echo "$as_me:2900: \"$ac_compile\"") >&5
2901 (eval $ac_compile) 2>&5
2903 echo "$as_me:2903: \$? = $ac_status" >&5
2904 (exit $ac_status); } &&
2905 { ac_try='test -s conftest.$ac_objext'
2906 { (eval echo "$as_me:2906: \"$ac_try\"") >&5
2909 echo "$as_me:2909: \$? = $ac_status" >&5
2910 (exit $ac_status); }; }; then
2911 ac_cv_prog_cxx_g=yes
2913 echo "$as_me: failed program was:" >&5
2914 cat conftest.$ac_ext >&5
2917 rm -f conftest.$ac_objext conftest.$ac_ext
2919 echo "$as_me:2919: result: $ac_cv_prog_cxx_g" >&5
2920 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2921 if test "$ac_test_CXXFLAGS" = set; then
2922 CXXFLAGS=$ac_save_CXXFLAGS
2923 elif test $ac_cv_prog_cxx_g = yes; then
2924 if test "$GXX" = yes; then
2930 if test "$GXX" = yes; then
2936 for ac_declaration in \
2938 '#include <stdlib.h>' \
2939 'extern "C" void std::exit (int) throw (); using std::exit;' \
2940 'extern "C" void std::exit (int); using std::exit;' \
2941 'extern "C" void exit (int) throw ();' \
2942 'extern "C" void exit (int);' \
2945 cat >conftest.$ac_ext <<_ACEOF
2946 #line 2946 "configure"
2947 #include "confdefs.h"
2958 rm -f conftest.$ac_objext
2959 if { (eval echo "$as_me:2959: \"$ac_compile\"") >&5
2960 (eval $ac_compile) 2>&5
2962 echo "$as_me:2962: \$? = $ac_status" >&5
2963 (exit $ac_status); } &&
2964 { ac_try='test -s conftest.$ac_objext'
2965 { (eval echo "$as_me:2965: \"$ac_try\"") >&5
2968 echo "$as_me:2968: \$? = $ac_status" >&5
2969 (exit $ac_status); }; }; then
2972 echo "$as_me: failed program was:" >&5
2973 cat conftest.$ac_ext >&5
2976 rm -f conftest.$ac_objext conftest.$ac_ext
2977 cat >conftest.$ac_ext <<_ACEOF
2978 #line 2978 "configure"
2979 #include "confdefs.h"
2989 rm -f conftest.$ac_objext
2990 if { (eval echo "$as_me:2990: \"$ac_compile\"") >&5
2991 (eval $ac_compile) 2>&5
2993 echo "$as_me:2993: \$? = $ac_status" >&5
2994 (exit $ac_status); } &&
2995 { ac_try='test -s conftest.$ac_objext'
2996 { (eval echo "$as_me:2996: \"$ac_try\"") >&5
2999 echo "$as_me:2999: \$? = $ac_status" >&5
3000 (exit $ac_status); }; }; then
3003 echo "$as_me: failed program was:" >&5
3004 cat conftest.$ac_ext >&5
3006 rm -f conftest.$ac_objext conftest.$ac_ext
3009 if test -n "$ac_declaration"; then
3010 echo '#ifdef __cplusplus' >>confdefs.h
3011 echo $ac_declaration >>confdefs.h
3012 echo '#endif' >>confdefs.h
3016 ac_cpp='$CPP $CPPFLAGS'
3017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3020 ac_main_return=return
3022 # autoconf 2.5x removed the error - by hardcoding it to g++.
3023 if test "$CXX" = "g++" ; then
3024 # Extract the first word of "g++", so it can be a program name with args.
3025 set dummy g++; ac_word=$2
3026 echo "$as_me:3026: checking for $ac_word" >&5
3027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3028 if test "${ac_cv_path_CXX+set}" = set; then
3029 echo $ECHO_N "(cached) $ECHO_C" >&6
3033 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3036 ac_save_IFS=$IFS; IFS=$ac_path_separator
3038 for ac_dir in $ac_dummy; do
3040 test -z "$ac_dir" && ac_dir=.
3041 if $as_executable_p "$ac_dir/$ac_word"; then
3042 ac_cv_path_CXX="$ac_dir/$ac_word"
3043 echo "$as_me:3043: found $ac_dir/$ac_word" >&5
3053 if test -n "$CXX"; then
3054 echo "$as_me:3054: result: $CXX" >&5
3055 echo "${ECHO_T}$CXX" >&6
3057 echo "$as_me:3057: result: no" >&5
3058 echo "${ECHO_T}no" >&6
3062 if test "$CXX" = "g++" ; then
3063 { echo "$as_me:3063: WARNING: ignoring hardcoded g++" >&5
3064 echo "$as_me: WARNING: ignoring hardcoded g++" >&2;}
3065 cf_with_cxx=no; CXX=""; GXX="";
3070 if test "$GXX" = yes; then
3071 echo "$as_me:3071: checking version of g++" >&5
3072 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
3073 GXX_VERSION="`${CXX-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3074 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3075 echo "$as_me:3075: result: $GXX_VERSION" >&5
3076 echo "${ECHO_T}$GXX_VERSION" >&6
3079 case $GXX_VERSION in
3081 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3083 { echo "$as_me:3083: WARNING: templates do not work" >&5
3084 echo "$as_me: WARNING: templates do not work" >&2;}
3088 echo "$as_me:3088: checking if you want to build C++ binding and demo" >&5
3089 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3091 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3092 if test "${with_cxx_binding+set}" = set; then
3093 withval="$with_cxx_binding"
3094 cf_with_cxx_binding=$withval
3096 cf_with_cxx_binding=$cf_with_cxx
3098 echo "$as_me:3098: result: $cf_with_cxx_binding" >&5
3099 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3101 echo "$as_me:3101: checking if you want to build with Ada95" >&5
3102 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3104 # Check whether --with-ada or --without-ada was given.
3105 if test "${with_ada+set}" = set; then
3107 cf_with_ada=$withval
3111 echo "$as_me:3111: result: $cf_with_ada" >&5
3112 echo "${ECHO_T}$cf_with_ada" >&6
3114 echo "$as_me:3114: checking if you want to build programs such as tic" >&5
3115 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3117 # Check whether --with-progs or --without-progs was given.
3118 if test "${with_progs+set}" = set; then
3119 withval="$with_progs"
3120 cf_with_progs=$withval
3124 echo "$as_me:3124: result: $cf_with_progs" >&5
3125 echo "${ECHO_T}$cf_with_progs" >&6
3127 echo "$as_me:3127: checking if you wish to install curses.h" >&5
3128 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3130 # Check whether --with-curses-h or --without-curses-h was given.
3131 if test "${with_curses_h+set}" = set; then
3132 withval="$with_curses_h"
3133 with_curses_h=$withval
3137 echo "$as_me:3137: result: $with_curses_h" >&5
3138 echo "${ECHO_T}$with_curses_h" >&6
3140 modules_to_build="ncurses"
3141 if test "X$cf_with_progs" != Xno ; then
3142 modules_to_build="$modules_to_build progs tack"
3144 modules_to_build="$modules_to_build panel menu form"
3146 test "$program_prefix" != NONE &&
3147 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3148 # Use a double $ so make ignores it.
3149 test "$program_suffix" != NONE &&
3150 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3151 # Double any \ or $. echo might interpret backslashes.
3152 # By default was `s,x,x', remove it if useless.
3153 cat <<\_ACEOF >conftest.sed
3154 s/[\\$]/&&/g;s/;s,x,x,$//
3156 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3159 for ac_prog in mawk gawk nawk awk
3161 # Extract the first word of "$ac_prog", so it can be a program name with args.
3162 set dummy $ac_prog; ac_word=$2
3163 echo "$as_me:3163: checking for $ac_word" >&5
3164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3165 if test "${ac_cv_prog_AWK+set}" = set; then
3166 echo $ECHO_N "(cached) $ECHO_C" >&6
3168 if test -n "$AWK"; then
3169 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3171 ac_save_IFS=$IFS; IFS=$ac_path_separator
3173 for ac_dir in $ac_dummy; do
3175 test -z "$ac_dir" && ac_dir=.
3176 $as_executable_p "$ac_dir/$ac_word" || continue
3177 ac_cv_prog_AWK="$ac_prog"
3178 echo "$as_me:3178: found $ac_dir/$ac_word" >&5
3185 if test -n "$AWK"; then
3186 echo "$as_me:3186: result: $AWK" >&5
3187 echo "${ECHO_T}$AWK" >&6
3189 echo "$as_me:3189: result: no" >&5
3190 echo "${ECHO_T}no" >&6
3193 test -n "$AWK" && break
3196 test -z "$AWK" && { { echo "$as_me:3196: error: No awk program found" >&5
3197 echo "$as_me: error: No awk program found" >&2;}
3198 { (exit 1); exit 1; }; }
3200 echo "$as_me:3200: checking for egrep" >&5
3201 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3202 if test "${ac_cv_prog_egrep+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3206 then ac_cv_prog_egrep='grep -E'
3207 else ac_cv_prog_egrep='egrep'
3210 echo "$as_me:3210: result: $ac_cv_prog_egrep" >&5
3211 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3212 EGREP=$ac_cv_prog_egrep
3214 test -z "$EGREP" && { { echo "$as_me:3214: error: No egrep program found" >&5
3215 echo "$as_me: error: No egrep program found" >&2;}
3216 { (exit 1); exit 1; }; }
3218 # Find a good install program. We prefer a C program (faster),
3219 # so one script is as good as another. But avoid the broken or
3220 # incompatible versions:
3221 # SysV /etc/install, /usr/sbin/install
3222 # SunOS /usr/etc/install
3223 # IRIX /sbin/install
3225 # AmigaOS /C/install, which installs bootblocks on floppy discs
3226 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3227 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3228 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3229 # ./install, which can be erroneously created by make from ./install.sh.
3230 echo "$as_me:3230: checking for a BSD compatible install" >&5
3231 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3232 if test -z "$INSTALL"; then
3233 if test "${ac_cv_path_install+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3236 ac_save_IFS=$IFS; IFS=$ac_path_separator
3237 for ac_dir in $PATH; do
3239 # Account for people who put trailing slashes in PATH elements.
3241 / | ./ | .// | /cC/* \
3242 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3245 # OSF1 and SCO ODT 3.0 have their own names for install.
3246 # Don't use installbsd from OSF since it installs stuff as root
3248 for ac_prog in ginstall scoinst install; do
3249 if $as_executable_p "$ac_dir/$ac_prog"; then
3250 if test $ac_prog = install &&
3251 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3252 # AIX install. It has an incompatible calling convention.
3254 elif test $ac_prog = install &&
3255 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3256 # program-specific install script used by HP pwplus--don't use.
3259 ac_cv_path_install="$ac_dir/$ac_prog -c"
3269 if test "${ac_cv_path_install+set}" = set; then
3270 INSTALL=$ac_cv_path_install
3272 # As a last resort, use the slow shell script. We don't cache a
3273 # path for INSTALL within a source directory, because that will
3274 # break other packages using the cache if that directory is
3275 # removed, or if the path is relative.
3276 INSTALL=$ac_install_sh
3279 echo "$as_me:3279: result: $INSTALL" >&5
3280 echo "${ECHO_T}$INSTALL" >&6
3282 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3283 # It thinks the first close brace ends the variable substitution.
3284 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3286 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3288 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3294 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3295 test -z "$cf_dir" && cf_dir=.
3296 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3300 for ac_prog in tdlint lint alint
3302 # Extract the first word of "$ac_prog", so it can be a program name with args.
3303 set dummy $ac_prog; ac_word=$2
3304 echo "$as_me:3304: checking for $ac_word" >&5
3305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3306 if test "${ac_cv_prog_LINT+set}" = set; then
3307 echo $ECHO_N "(cached) $ECHO_C" >&6
3309 if test -n "$LINT"; then
3310 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3312 ac_save_IFS=$IFS; IFS=$ac_path_separator
3314 for ac_dir in $ac_dummy; do
3316 test -z "$ac_dir" && ac_dir=.
3317 $as_executable_p "$ac_dir/$ac_word" || continue
3318 ac_cv_prog_LINT="$ac_prog"
3319 echo "$as_me:3319: found $ac_dir/$ac_word" >&5
3325 LINT=$ac_cv_prog_LINT
3326 if test -n "$LINT"; then
3327 echo "$as_me:3327: result: $LINT" >&5
3328 echo "${ECHO_T}$LINT" >&6
3330 echo "$as_me:3330: result: no" >&5
3331 echo "${ECHO_T}no" >&6
3334 test -n "$LINT" && break
3337 echo "$as_me:3337: checking whether ln -s works" >&5
3338 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3340 if test "$LN_S" = "ln -s"; then
3341 echo "$as_me:3341: result: yes" >&5
3342 echo "${ECHO_T}yes" >&6
3344 echo "$as_me:3344: result: no, using $LN_S" >&5
3345 echo "${ECHO_T}no, using $LN_S" >&6
3348 echo "$as_me:3348: checking for long file names" >&5
3349 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3350 if test "${ac_cv_sys_long_file_names+set}" = set; then
3351 echo $ECHO_N "(cached) $ECHO_C" >&6
3353 ac_cv_sys_long_file_names=yes
3354 # Test for long file names in all the places we know might matter:
3355 # . the current directory, where building will happen
3356 # $prefix/lib where we will be installing things
3357 # $exec_prefix/lib likewise
3358 # eval it to expand exec_prefix.
3359 # $TMPDIR if set, where it might want to write temporary files
3360 # if $TMPDIR is not set:
3361 # /tmp where it might want to write temporary files
3364 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3367 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3369 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3370 test -d $ac_dir || continue
3371 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3372 ac_xdir=$ac_dir/cf$$
3373 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3374 ac_tf1=$ac_xdir/conftest9012345
3375 ac_tf2=$ac_xdir/conftest9012346
3376 (echo 1 >$ac_tf1) 2>/dev/null
3377 (echo 2 >$ac_tf2) 2>/dev/null
3378 ac_val=`cat $ac_tf1 2>/dev/null`
3379 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3380 ac_cv_sys_long_file_names=no
3381 rm -rf $ac_xdir 2>/dev/null
3384 rm -rf $ac_xdir 2>/dev/null
3387 echo "$as_me:3387: result: $ac_cv_sys_long_file_names" >&5
3388 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3389 if test $ac_cv_sys_long_file_names = yes; then
3391 cat >>confdefs.h <<\EOF
3392 #define HAVE_LONG_FILE_NAMES 1
3397 echo "$as_me:3397: checking if we should assume mixed-case filenames" >&5
3398 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3400 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3401 if test "${enable_mixed_case+set}" = set; then
3402 enableval="$enable_mixed_case"
3403 enable_mixedcase=$enableval
3405 enable_mixedcase=auto
3407 echo "$as_me:3407: result: $enable_mixedcase" >&5
3408 echo "${ECHO_T}$enable_mixedcase" >&6
3409 if test "$enable_mixedcase" = "auto" ; then
3411 echo "$as_me:3411: checking if filesystem supports mixed-case filenames" >&5
3412 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3413 if test "${cf_cv_mixedcase+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3417 if test "$cross_compiling" = yes ; then
3418 case $target_alias in #(vi
3419 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3427 rm -f conftest CONFTEST
3429 if test -f CONFTEST ; then
3434 rm -f conftest CONFTEST
3438 echo "$as_me:3438: result: $cf_cv_mixedcase" >&5
3439 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3440 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3441 #define MIXEDCASE_FILENAMES 1
3445 cf_cv_mixedcase=$enable_mixedcase
3446 if test "$enable_mixedcase" = "yes" ; then
3447 cat >>confdefs.h <<\EOF
3448 #define MIXEDCASE_FILENAMES 1
3454 # do this after mixed-case option (tags/TAGS is not as important as tic).
3455 echo "$as_me:3455: checking whether ${MAKE-make} sets \${MAKE}" >&5
3456 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3457 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3458 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3461 cat >conftest.make <<\EOF
3463 @echo 'ac_maketemp="${MAKE}"'
3465 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3466 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3467 if test -n "$ac_maketemp"; then
3468 eval ac_cv_prog_make_${ac_make}_set=yes
3470 eval ac_cv_prog_make_${ac_make}_set=no
3474 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3475 echo "$as_me:3475: result: yes" >&5
3476 echo "${ECHO_T}yes" >&6
3479 echo "$as_me:3479: result: no" >&5
3480 echo "${ECHO_T}no" >&6
3481 SET_MAKE="MAKE=${MAKE-make}"
3484 # Extract the first word of "ctags", so it can be a program name with args.
3485 set dummy ctags; ac_word=$2
3486 echo "$as_me:3486: checking for $ac_word" >&5
3487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3488 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3489 echo $ECHO_N "(cached) $ECHO_C" >&6
3491 if test -n "$MAKE_LOWER_TAGS"; then
3492 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3494 ac_save_IFS=$IFS; IFS=$ac_path_separator
3496 for ac_dir in $ac_dummy; do
3498 test -z "$ac_dir" && ac_dir=.
3499 $as_executable_p "$ac_dir/$ac_word" || continue
3500 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3501 echo "$as_me:3501: found $ac_dir/$ac_word" >&5
3505 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3508 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3509 if test -n "$MAKE_LOWER_TAGS"; then
3510 echo "$as_me:3510: result: $MAKE_LOWER_TAGS" >&5
3511 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3513 echo "$as_me:3513: result: no" >&5
3514 echo "${ECHO_T}no" >&6
3517 if test "$cf_cv_mixedcase" = yes ; then
3518 # Extract the first word of "etags", so it can be a program name with args.
3519 set dummy etags; ac_word=$2
3520 echo "$as_me:3520: checking for $ac_word" >&5
3521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3522 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3523 echo $ECHO_N "(cached) $ECHO_C" >&6
3525 if test -n "$MAKE_UPPER_TAGS"; then
3526 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3528 ac_save_IFS=$IFS; IFS=$ac_path_separator
3530 for ac_dir in $ac_dummy; do
3532 test -z "$ac_dir" && ac_dir=.
3533 $as_executable_p "$ac_dir/$ac_word" || continue
3534 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3535 echo "$as_me:3535: found $ac_dir/$ac_word" >&5
3539 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3542 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3543 if test -n "$MAKE_UPPER_TAGS"; then
3544 echo "$as_me:3544: result: $MAKE_UPPER_TAGS" >&5
3545 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3547 echo "$as_me:3547: result: no" >&5
3548 echo "${ECHO_T}no" >&6
3555 if test "$MAKE_UPPER_TAGS" = yes ; then
3561 if test "$MAKE_LOWER_TAGS" = yes ; then
3567 echo "$as_me:3567: checking for makeflags variable" >&5
3568 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3569 if test "${cf_cv_makeflags+set}" = set; then
3570 echo $ECHO_N "(cached) $ECHO_C" >&6
3574 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3576 cat >cf_makeflags.tmp <<CF_EOF
3579 @ echo '.$cf_option'
3581 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null | sed -e 's,[ ]*$,,'`
3582 case "$cf_result" in
3584 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3585 case "$cf_result" in
3586 .*CC=*) cf_cv_makeflags=
3588 *) cf_cv_makeflags=$cf_option
3594 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3598 rm -f cf_makeflags.tmp
3601 echo "$as_me:3601: result: $cf_cv_makeflags" >&5
3602 echo "${ECHO_T}$cf_cv_makeflags" >&6
3604 if test -n "$ac_tool_prefix"; then
3605 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3606 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3607 echo "$as_me:3607: checking for $ac_word" >&5
3608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3609 if test "${ac_cv_prog_RANLIB+set}" = set; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3612 if test -n "$RANLIB"; then
3613 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3615 ac_save_IFS=$IFS; IFS=$ac_path_separator
3617 for ac_dir in $ac_dummy; do
3619 test -z "$ac_dir" && ac_dir=.
3620 $as_executable_p "$ac_dir/$ac_word" || continue
3621 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3622 echo "$as_me:3622: found $ac_dir/$ac_word" >&5
3628 RANLIB=$ac_cv_prog_RANLIB
3629 if test -n "$RANLIB"; then
3630 echo "$as_me:3630: result: $RANLIB" >&5
3631 echo "${ECHO_T}$RANLIB" >&6
3633 echo "$as_me:3633: result: no" >&5
3634 echo "${ECHO_T}no" >&6
3638 if test -z "$ac_cv_prog_RANLIB"; then
3639 ac_ct_RANLIB=$RANLIB
3640 # Extract the first word of "ranlib", so it can be a program name with args.
3641 set dummy ranlib; ac_word=$2
3642 echo "$as_me:3642: checking for $ac_word" >&5
3643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3644 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
3647 if test -n "$ac_ct_RANLIB"; then
3648 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3650 ac_save_IFS=$IFS; IFS=$ac_path_separator
3652 for ac_dir in $ac_dummy; do
3654 test -z "$ac_dir" && ac_dir=.
3655 $as_executable_p "$ac_dir/$ac_word" || continue
3656 ac_cv_prog_ac_ct_RANLIB="ranlib"
3657 echo "$as_me:3657: found $ac_dir/$ac_word" >&5
3661 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3664 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3665 if test -n "$ac_ct_RANLIB"; then
3666 echo "$as_me:3666: result: $ac_ct_RANLIB" >&5
3667 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3669 echo "$as_me:3669: result: no" >&5
3670 echo "${ECHO_T}no" >&6
3673 RANLIB=$ac_ct_RANLIB
3675 RANLIB="$ac_cv_prog_RANLIB"
3678 if test -n "$ac_tool_prefix"; then
3679 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3680 set dummy ${ac_tool_prefix}ld; ac_word=$2
3681 echo "$as_me:3681: checking for $ac_word" >&5
3682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3683 if test "${ac_cv_prog_LD+set}" = set; then
3684 echo $ECHO_N "(cached) $ECHO_C" >&6
3686 if test -n "$LD"; then
3687 ac_cv_prog_LD="$LD" # Let the user override the test.
3689 ac_save_IFS=$IFS; IFS=$ac_path_separator
3691 for ac_dir in $ac_dummy; do
3693 test -z "$ac_dir" && ac_dir=.
3694 $as_executable_p "$ac_dir/$ac_word" || continue
3695 ac_cv_prog_LD="${ac_tool_prefix}ld"
3696 echo "$as_me:3696: found $ac_dir/$ac_word" >&5
3703 if test -n "$LD"; then
3704 echo "$as_me:3704: result: $LD" >&5
3705 echo "${ECHO_T}$LD" >&6
3707 echo "$as_me:3707: result: no" >&5
3708 echo "${ECHO_T}no" >&6
3712 if test -z "$ac_cv_prog_LD"; then
3714 # Extract the first word of "ld", so it can be a program name with args.
3715 set dummy ld; ac_word=$2
3716 echo "$as_me:3716: checking for $ac_word" >&5
3717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3718 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
3721 if test -n "$ac_ct_LD"; then
3722 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3724 ac_save_IFS=$IFS; IFS=$ac_path_separator
3726 for ac_dir in $ac_dummy; do
3728 test -z "$ac_dir" && ac_dir=.
3729 $as_executable_p "$ac_dir/$ac_word" || continue
3730 ac_cv_prog_ac_ct_LD="ld"
3731 echo "$as_me:3731: found $ac_dir/$ac_word" >&5
3735 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3738 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3739 if test -n "$ac_ct_LD"; then
3740 echo "$as_me:3740: result: $ac_ct_LD" >&5
3741 echo "${ECHO_T}$ac_ct_LD" >&6
3743 echo "$as_me:3743: result: no" >&5
3744 echo "${ECHO_T}no" >&6
3752 if test -n "$ac_tool_prefix"; then
3753 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3754 set dummy ${ac_tool_prefix}ar; ac_word=$2
3755 echo "$as_me:3755: checking for $ac_word" >&5
3756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3757 if test "${ac_cv_prog_AR+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 if test -n "$AR"; then
3761 ac_cv_prog_AR="$AR" # Let the user override the test.
3763 ac_save_IFS=$IFS; IFS=$ac_path_separator
3765 for ac_dir in $ac_dummy; do
3767 test -z "$ac_dir" && ac_dir=.
3768 $as_executable_p "$ac_dir/$ac_word" || continue
3769 ac_cv_prog_AR="${ac_tool_prefix}ar"
3770 echo "$as_me:3770: found $ac_dir/$ac_word" >&5
3777 if test -n "$AR"; then
3778 echo "$as_me:3778: result: $AR" >&5
3779 echo "${ECHO_T}$AR" >&6
3781 echo "$as_me:3781: result: no" >&5
3782 echo "${ECHO_T}no" >&6
3786 if test -z "$ac_cv_prog_AR"; then
3788 # Extract the first word of "ar", so it can be a program name with args.
3789 set dummy ar; ac_word=$2
3790 echo "$as_me:3790: checking for $ac_word" >&5
3791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3792 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3795 if test -n "$ac_ct_AR"; then
3796 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3798 ac_save_IFS=$IFS; IFS=$ac_path_separator
3800 for ac_dir in $ac_dummy; do
3802 test -z "$ac_dir" && ac_dir=.
3803 $as_executable_p "$ac_dir/$ac_word" || continue
3804 ac_cv_prog_ac_ct_AR="ar"
3805 echo "$as_me:3805: found $ac_dir/$ac_word" >&5
3809 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3812 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3813 if test -n "$ac_ct_AR"; then
3814 echo "$as_me:3814: result: $ac_ct_AR" >&5
3815 echo "${ECHO_T}$ac_ct_AR" >&6
3817 echo "$as_me:3817: result: no" >&5
3818 echo "${ECHO_T}no" >&6
3826 if test "${cf_cv_subst_AR_OPTS+set}" = set; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
3830 echo "$as_me:3830: checking for archiver options (symbol AR_OPTS)" >&5
3831 echo $ECHO_N "checking for archiver options (symbol AR_OPTS)... $ECHO_C" >&6
3833 if test -z "$AR_OPTS" ; then
3838 cf_cv_subst_AR_OPTS=$AR_OPTS
3839 echo "$as_me:3839: result: $AR_OPTS" >&5
3840 echo "${ECHO_T}$AR_OPTS" >&6
3844 echo "$as_me:3844: checking if you have specified an install-prefix" >&5
3845 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
3847 # Check whether --with-install-prefix or --without-install-prefix was given.
3848 if test "${with_install_prefix+set}" = set; then
3849 withval="$with_install_prefix"
3850 case "$withval" in #(vi
3853 *) DESTDIR="$withval"
3857 echo "$as_me:3857: result: $DESTDIR" >&5
3858 echo "${ECHO_T}$DESTDIR" >&6
3860 ###############################################################################
3862 # If we're cross-compiling, allow the user to override the tools and their
3863 # options. The configure script is oriented toward identifying the host
3864 # compiler, etc., but we need a build compiler to generate parts of the source.
3866 if test "$cross_compiling" = yes ; then
3868 # defaults that we might want to override
3869 : ${BUILD_CFLAGS:=''}
3870 : ${BUILD_CPPFLAGS:=''}
3871 : ${BUILD_LDFLAGS:=''}
3873 : ${BUILD_EXEEXT:='$x'}
3874 : ${BUILD_OBJEXT:='o'}
3876 # Check whether --with-build-cc or --without-build-cc was given.
3877 if test "${with_build_cc+set}" = set; then
3878 withval="$with_build_cc"
3881 for ac_prog in gcc cc cl
3883 # Extract the first word of "$ac_prog", so it can be a program name with args.
3884 set dummy $ac_prog; ac_word=$2
3885 echo "$as_me:3885: checking for $ac_word" >&5
3886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3887 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3890 if test -n "$BUILD_CC"; then
3891 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3893 ac_save_IFS=$IFS; IFS=$ac_path_separator
3895 for ac_dir in $ac_dummy; do
3897 test -z "$ac_dir" && ac_dir=.
3898 $as_executable_p "$ac_dir/$ac_word" || continue
3899 ac_cv_prog_BUILD_CC="$ac_prog"
3900 echo "$as_me:3900: found $ac_dir/$ac_word" >&5
3906 BUILD_CC=$ac_cv_prog_BUILD_CC
3907 if test -n "$BUILD_CC"; then
3908 echo "$as_me:3908: result: $BUILD_CC" >&5
3909 echo "${ECHO_T}$BUILD_CC" >&6
3911 echo "$as_me:3911: result: no" >&5
3912 echo "${ECHO_T}no" >&6
3915 test -n "$BUILD_CC" && break
3919 echo "$as_me:3919: checking for native build C compiler" >&5
3920 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
3921 echo "$as_me:3921: result: $BUILD_CC" >&5
3922 echo "${ECHO_T}$BUILD_CC" >&6
3924 echo "$as_me:3924: checking for native build C preprocessor" >&5
3925 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
3927 # Check whether --with-build-cpp or --without-build-cpp was given.
3928 if test "${with_build_cpp+set}" = set; then
3929 withval="$with_build_cpp"
3930 BUILD_CPP="$withval"
3932 BUILD_CPP='${BUILD_CC} -E'
3934 echo "$as_me:3934: result: $BUILD_CPP" >&5
3935 echo "${ECHO_T}$BUILD_CPP" >&6
3937 echo "$as_me:3937: checking for native build C flags" >&5
3938 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
3940 # Check whether --with-build-cflags or --without-build-cflags was given.
3941 if test "${with_build_cflags+set}" = set; then
3942 withval="$with_build_cflags"
3943 BUILD_CFLAGS="$withval"
3945 echo "$as_me:3945: result: $BUILD_CFLAGS" >&5
3946 echo "${ECHO_T}$BUILD_CFLAGS" >&6
3948 echo "$as_me:3948: checking for native build C preprocessor-flags" >&5
3949 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
3951 # Check whether --with-build-cppflags or --without-build-cppflags was given.
3952 if test "${with_build_cppflags+set}" = set; then
3953 withval="$with_build_cppflags"
3954 BUILD_CPPFLAGS="$withval"
3956 echo "$as_me:3956: result: $BUILD_CPPFLAGS" >&5
3957 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
3959 echo "$as_me:3959: checking for native build linker-flags" >&5
3960 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
3962 # Check whether --with-build-ldflags or --without-build-ldflags was given.
3963 if test "${with_build_ldflags+set}" = set; then
3964 withval="$with_build_ldflags"
3965 BUILD_LDFLAGS="$withval"
3967 echo "$as_me:3967: result: $BUILD_LDFLAGS" >&5
3968 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
3970 echo "$as_me:3970: checking for native build linker-libraries" >&5
3971 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
3973 # Check whether --with-build-libs or --without-build-libs was given.
3974 if test "${with_build_libs+set}" = set; then
3975 withval="$with_build_libs"
3976 BUILD_LIBS="$withval"
3978 echo "$as_me:3978: result: $BUILD_LIBS" >&5
3979 echo "${ECHO_T}$BUILD_LIBS" >&6
3981 # this assumes we're on Unix.
3985 : ${BUILD_CC:='${CC}'}
3987 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
3988 { { echo "$as_me:3988: error: Cross-build requires two compilers.
3989 Use --with-build-cc to specify the native compiler." >&5
3990 echo "$as_me: error: Cross-build requires two compilers.
3991 Use --with-build-cc to specify the native compiler." >&2;}
3992 { (exit 1); exit 1; }; }
3996 : ${BUILD_CC:='${CC}'}
3997 : ${BUILD_CPP:='${CPP}'}
3998 : ${BUILD_CFLAGS:='${CFLAGS}'}
3999 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4000 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4001 : ${BUILD_LIBS:='${LIBS}'}
4002 : ${BUILD_EXEEXT:='$x'}
4003 : ${BUILD_OBJEXT:='o'}
4006 ###############################################################################
4008 ### Options to allow the user to specify the set of libraries which are used.
4009 ### Use "--without-normal --with-shared" to allow the default model to be
4010 ### shared, for example.
4015 # common library maintenance symbols that are convenient for libtool scripts:
4016 LIB_CREATE='${AR} -cr'
4017 LIB_OBJECT='${OBJECTS}'
4021 # symbols used to prop libtool up to enable it to determine what it should be
4029 echo "$as_me:4029: checking if you want to build libraries with libtool" >&5
4030 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4032 # Check whether --with-libtool or --without-libtool was given.
4033 if test "${with_libtool+set}" = set; then
4034 withval="$with_libtool"
4035 with_libtool=$withval
4039 echo "$as_me:4039: result: $with_libtool" >&5
4040 echo "${ECHO_T}$with_libtool" >&6
4041 if test "$with_libtool" != "no"; then
4043 if test "$with_libtool" != "yes" ; then
4045 if test "x$prefix" != xNONE; then
4046 cf_path_syntax="$prefix"
4048 cf_path_syntax="$ac_default_prefix"
4051 case ".$with_libtool" in #(vi
4052 .\$\(*\)*|.\'*\'*) #(vi
4056 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4059 eval with_libtool="$with_libtool"
4060 case ".$with_libtool" in #(vi
4062 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4067 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4070 { { echo "$as_me:4070: error: expected a pathname, not \"$with_libtool\"" >&5
4071 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4072 { (exit 1); exit 1; }; }
4076 LIBTOOL=$with_libtool
4078 # Extract the first word of "libtool", so it can be a program name with args.
4079 set dummy libtool; ac_word=$2
4080 echo "$as_me:4080: checking for $ac_word" >&5
4081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4082 if test "${ac_cv_path_LIBTOOL+set}" = set; then
4083 echo $ECHO_N "(cached) $ECHO_C" >&6
4087 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
4090 ac_save_IFS=$IFS; IFS=$ac_path_separator
4092 for ac_dir in $ac_dummy; do
4094 test -z "$ac_dir" && ac_dir=.
4095 if $as_executable_p "$ac_dir/$ac_word"; then
4096 ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
4097 echo "$as_me:4097: found $ac_dir/$ac_word" >&5
4105 LIBTOOL=$ac_cv_path_LIBTOOL
4107 if test -n "$LIBTOOL"; then
4108 echo "$as_me:4108: result: $LIBTOOL" >&5
4109 echo "${ECHO_T}$LIBTOOL" >&6
4111 echo "$as_me:4111: result: no" >&5
4112 echo "${ECHO_T}no" >&6
4116 if test -z "$LIBTOOL" ; then
4117 { { echo "$as_me:4117: error: Cannot find libtool" >&5
4118 echo "$as_me: error: Cannot find libtool" >&2;}
4119 { (exit 1); exit 1; }; }
4121 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} -version-info `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} -o'
4122 LIB_OBJECT='${OBJECTS:.o=.lo}'
4124 LIB_CLEAN='${LIBTOOL} --mode=clean'
4125 LIB_COMPILE='${LIBTOOL} --mode=compile'
4126 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
4127 LIB_INSTALL='${LIBTOOL} --mode=install'
4128 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4131 # Show the version of libtool
4132 echo "$as_me:4132: checking version of libtool" >&5
4133 echo $ECHO_N "checking version of libtool... $ECHO_C" >&6
4135 # Save the version in a cache variable - this is not entirely a good
4136 # thing, but the version string from libtool is very ugly, and for
4137 # bug reports it might be useful to have the original string.
4138 cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' |sed -e '2,$d' -e 's/([^)]*)//g' -e 's/^[^1-9]*//' -e 's/[^0-9.].*//'`
4139 echo "$as_me:4139: result: $cf_cv_libtool_version" >&5
4140 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4141 if test -z "$cf_cv_libtool_version" ; then
4142 { { echo "$as_me:4142: error: This is not GNU libtool" >&5
4143 echo "$as_me: error: This is not GNU libtool" >&2;}
4144 { (exit 1); exit 1; }; }
4147 # special hack to add --tag option for C++ compiler
4148 case $cf_cv_libtool_version in
4150 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4151 LIBTOOL="$LIBTOOL --tag=CC"
4154 LIBTOOL_CXX="$LIBTOOL"
4162 test -z "$LIBTOOL" && ECHO_LT=
4164 if test "$with_libtool" != "no" ; then
4166 cf_list_models="$cf_list_models libtool"
4170 echo "$as_me:4170: checking if you want to build shared libraries" >&5
4171 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
4173 # Check whether --with-shared or --without-shared was given.
4174 if test "${with_shared+set}" = set; then
4175 withval="$with_shared"
4176 with_shared=$withval
4180 echo "$as_me:4180: result: $with_shared" >&5
4181 echo "${ECHO_T}$with_shared" >&6
4182 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
4184 echo "$as_me:4184: checking if you want to build static libraries" >&5
4185 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
4187 # Check whether --with-normal or --without-normal was given.
4188 if test "${with_normal+set}" = set; then
4189 withval="$with_normal"
4190 with_normal=$withval
4194 echo "$as_me:4194: result: $with_normal" >&5
4195 echo "${ECHO_T}$with_normal" >&6
4196 test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
4198 echo "$as_me:4198: checking if you want to build debug libraries" >&5
4199 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
4201 # Check whether --with-debug or --without-debug was given.
4202 if test "${with_debug+set}" = set; then
4203 withval="$with_debug"
4208 echo "$as_me:4208: result: $with_debug" >&5
4209 echo "${ECHO_T}$with_debug" >&6
4210 test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
4212 echo "$as_me:4212: checking if you want to build profiling libraries" >&5
4213 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
4215 # Check whether --with-profile or --without-profile was given.
4216 if test "${with_profile+set}" = set; then
4217 withval="$with_profile"
4218 with_profile=$withval
4222 echo "$as_me:4222: result: $with_profile" >&5
4223 echo "${ECHO_T}$with_profile" >&6
4224 test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
4228 ###############################################################################
4230 echo "$as_me:4230: checking for specified models" >&5
4231 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
4232 test -z "$cf_list_models" && cf_list_models=normal
4233 test "$with_libtool" != "no" && cf_list_models=libtool
4234 echo "$as_me:4234: result: $cf_list_models" >&5
4235 echo "${ECHO_T}$cf_list_models" >&6
4237 ### Use the first model as the default, and save its suffix for use in building
4238 ### up test-applications.
4239 echo "$as_me:4239: checking for default model" >&5
4240 echo $ECHO_N "checking for default model... $ECHO_C" >&6
4241 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
4242 echo "$as_me:4242: result: $DFT_LWR_MODEL" >&5
4243 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
4245 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4256 case $cf_cv_system_name in
4257 OS/2*) LIB_PREFIX='' ;;
4258 os2*) LIB_PREFIX='' ;;
4259 *) LIB_PREFIX='lib' ;;
4261 cf_prefix=$LIB_PREFIX
4263 LIB_PREFIX=$cf_prefix
4267 ###############################################################################
4269 echo "$as_me:4269: checking if you want to build a separate terminfo library" >&5
4270 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
4272 # Check whether --with-termlib or --without-termlib was given.
4273 if test "${with_termlib+set}" = set; then
4274 withval="$with_termlib"
4275 with_termlib=$withval
4279 echo "$as_me:4279: result: $with_termlib" >&5
4280 echo "${ECHO_T}$with_termlib" >&6
4282 echo "$as_me:4282: checking if you want to build a separate tic library" >&5
4283 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
4285 # Check whether --with-ticlib or --without-ticlib was given.
4286 if test "${with_ticlib+set}" = set; then
4287 withval="$with_ticlib"
4288 with_ticlib=$withval
4292 echo "$as_me:4292: result: $with_ticlib" >&5
4293 echo "${ECHO_T}$with_ticlib" >&6
4295 ### Checks for special libraries, must be done up-front.
4298 echo "$as_me:4298: checking if you want to link with the GPM mouse library" >&5
4299 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
4301 # Check whether --with-gpm or --without-gpm was given.
4302 if test "${with_gpm+set}" = set; then
4308 echo "$as_me:4308: result: $with_gpm" >&5
4309 echo "${ECHO_T}$with_gpm" >&6
4311 if test "$with_gpm" != no ; then
4312 echo "$as_me:4312: checking for gpm.h" >&5
4313 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
4314 if test "${ac_cv_header_gpm_h+set}" = set; then
4315 echo $ECHO_N "(cached) $ECHO_C" >&6
4317 cat >conftest.$ac_ext <<_ACEOF
4318 #line 4318 "configure"
4319 #include "confdefs.h"
4322 if { (eval echo "$as_me:4322: \"$ac_cpp conftest.$ac_ext\"") >&5
4323 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4325 egrep -v '^ *\+' conftest.er1 >conftest.err
4327 cat conftest.err >&5
4328 echo "$as_me:4328: \$? = $ac_status" >&5
4329 (exit $ac_status); } >/dev/null; then
4330 if test -s conftest.err; then
4331 ac_cpp_err=$ac_c_preproc_warn_flag
4338 if test -z "$ac_cpp_err"; then
4339 ac_cv_header_gpm_h=yes
4341 echo "$as_me: failed program was:" >&5
4342 cat conftest.$ac_ext >&5
4343 ac_cv_header_gpm_h=no
4345 rm -f conftest.err conftest.$ac_ext
4347 echo "$as_me:4347: result: $ac_cv_header_gpm_h" >&5
4348 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
4349 if test $ac_cv_header_gpm_h = yes; then
4351 cat >>confdefs.h <<\EOF
4352 #define HAVE_GPM_H 1
4355 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
4356 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
4358 echo "${as_me-configure}:4358: testing assuming we really have GPM library ..." 1>&5
4360 cat >>confdefs.h <<\EOF
4361 #define HAVE_LIBGPM 1
4365 echo "$as_me:4365: checking for Gpm_Open in -lgpm" >&5
4366 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
4367 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
4368 echo $ECHO_N "(cached) $ECHO_C" >&6
4370 ac_check_lib_save_LIBS=$LIBS
4372 cat >conftest.$ac_ext <<_ACEOF
4373 #line 4373 "configure"
4374 #include "confdefs.h"
4376 /* Override any gcc2 internal prototype to avoid an error. */
4380 /* We use char because int might match the return type of a gcc2
4381 builtin and then its argument prototype would still apply. */
4391 rm -f conftest.$ac_objext conftest$ac_exeext
4392 if { (eval echo "$as_me:4392: \"$ac_link\"") >&5
4393 (eval $ac_link) 2>&5
4395 echo "$as_me:4395: \$? = $ac_status" >&5
4396 (exit $ac_status); } &&
4397 { ac_try='test -s conftest$ac_exeext'
4398 { (eval echo "$as_me:4398: \"$ac_try\"") >&5
4401 echo "$as_me:4401: \$? = $ac_status" >&5
4402 (exit $ac_status); }; }; then
4403 ac_cv_lib_gpm_Gpm_Open=yes
4405 echo "$as_me: failed program was:" >&5
4406 cat conftest.$ac_ext >&5
4407 ac_cv_lib_gpm_Gpm_Open=no
4409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4410 LIBS=$ac_check_lib_save_LIBS
4412 echo "$as_me:4412: result: $ac_cv_lib_gpm_Gpm_Open" >&5
4413 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
4414 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
4418 { { echo "$as_me:4418: error: Cannot link with GPM library" >&5
4419 echo "$as_me: error: Cannot link with GPM library" >&2;}
4420 { (exit 1); exit 1; }; }
4428 test "$with_gpm" != maybe && { echo "$as_me:4428: WARNING: Cannot find GPM header" >&5
4429 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
4436 if test "$with_gpm" != no ; then
4437 echo "$as_me:4437: checking if you want to load GPM dynamically" >&5
4438 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
4440 # Check whether --with-dlsym or --without-dlsym was given.
4441 if test "${with_dlsym+set}" = set; then
4442 withval="$with_dlsym"
4447 echo "$as_me:4447: result: $with_dlsym" >&5
4448 echo "${ECHO_T}$with_dlsym" >&6
4449 if test "$with_dlsym" = yes ; then
4452 echo "$as_me:4452: checking for dlsym" >&5
4453 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
4454 if test "${ac_cv_func_dlsym+set}" = set; then
4455 echo $ECHO_N "(cached) $ECHO_C" >&6
4457 cat >conftest.$ac_ext <<_ACEOF
4458 #line 4458 "configure"
4459 #include "confdefs.h"
4460 /* System header to define __stub macros and hopefully few prototypes,
4461 which can conflict with char dlsym (); below. */
4463 /* Override any gcc2 internal prototype to avoid an error. */
4467 /* We use char because int might match the return type of a gcc2
4468 builtin and then its argument prototype would still apply. */
4475 /* The GNU C library defines this for functions which it implements
4476 to always fail with ENOSYS. Some functions are actually named
4477 something starting with __ and the normal name is an alias. */
4478 #if defined (__stub_dlsym) || defined (__stub___dlsym)
4488 rm -f conftest.$ac_objext conftest$ac_exeext
4489 if { (eval echo "$as_me:4489: \"$ac_link\"") >&5
4490 (eval $ac_link) 2>&5
4492 echo "$as_me:4492: \$? = $ac_status" >&5
4493 (exit $ac_status); } &&
4494 { ac_try='test -s conftest$ac_exeext'
4495 { (eval echo "$as_me:4495: \"$ac_try\"") >&5
4498 echo "$as_me:4498: \$? = $ac_status" >&5
4499 (exit $ac_status); }; }; then
4500 ac_cv_func_dlsym=yes
4502 echo "$as_me: failed program was:" >&5
4503 cat conftest.$ac_ext >&5
4506 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4508 echo "$as_me:4508: result: $ac_cv_func_dlsym" >&5
4509 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
4510 if test $ac_cv_func_dlsym = yes; then
4515 echo "$as_me:4515: checking for dlsym in -ldl" >&5
4516 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
4517 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
4520 ac_check_lib_save_LIBS=$LIBS
4522 cat >conftest.$ac_ext <<_ACEOF
4523 #line 4523 "configure"
4524 #include "confdefs.h"
4526 /* Override any gcc2 internal prototype to avoid an error. */
4530 /* We use char because int might match the return type of a gcc2
4531 builtin and then its argument prototype would still apply. */
4541 rm -f conftest.$ac_objext conftest$ac_exeext
4542 if { (eval echo "$as_me:4542: \"$ac_link\"") >&5
4543 (eval $ac_link) 2>&5
4545 echo "$as_me:4545: \$? = $ac_status" >&5
4546 (exit $ac_status); } &&
4547 { ac_try='test -s conftest$ac_exeext'
4548 { (eval echo "$as_me:4548: \"$ac_try\"") >&5
4551 echo "$as_me:4551: \$? = $ac_status" >&5
4552 (exit $ac_status); }; }; then
4553 ac_cv_lib_dl_dlsym=yes
4555 echo "$as_me: failed program was:" >&5
4556 cat conftest.$ac_ext >&5
4557 ac_cv_lib_dl_dlsym=no
4559 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4560 LIBS=$ac_check_lib_save_LIBS
4562 echo "$as_me:4562: result: $ac_cv_lib_dl_dlsym" >&5
4563 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
4564 if test $ac_cv_lib_dl_dlsym = yes; then
4572 if test "$cf_have_dlsym" = yes ; then
4573 test "$cf_have_libdl" = yes && LIBS="-ldl $LIBS"
4575 echo "$as_me:4575: checking whether able to link to dl*() functions" >&5
4576 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
4577 cat >conftest.$ac_ext <<_ACEOF
4578 #line 4578 "configure"
4579 #include "confdefs.h"
4586 if ((obj = dlopen("filename", 0)) != 0) {
4587 if (dlsym(obj, "symbolname") == 0) {
4595 rm -f conftest.$ac_objext conftest$ac_exeext
4596 if { (eval echo "$as_me:4596: \"$ac_link\"") >&5
4597 (eval $ac_link) 2>&5
4599 echo "$as_me:4599: \$? = $ac_status" >&5
4600 (exit $ac_status); } &&
4601 { ac_try='test -s conftest$ac_exeext'
4602 { (eval echo "$as_me:4602: \"$ac_try\"") >&5
4605 echo "$as_me:4605: \$? = $ac_status" >&5
4606 (exit $ac_status); }; }; then
4608 cat >>confdefs.h <<\EOF
4609 #define HAVE_LIBDL 1
4613 echo "$as_me: failed program was:" >&5
4614 cat conftest.$ac_ext >&5
4616 { { echo "$as_me:4616: error: Cannot link test program for libdl" >&5
4617 echo "$as_me: error: Cannot link test program for libdl" >&2;}
4618 { (exit 1); exit 1; }; }
4620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4621 echo "$as_me:4621: result: ok" >&5
4622 echo "${ECHO_T}ok" >&6
4624 { { echo "$as_me:4624: error: Cannot find dlsym function" >&5
4625 echo "$as_me: error: Cannot find dlsym function" >&2;}
4626 { (exit 1); exit 1; }; }
4629 if test "$with_gpm" != yes ; then
4630 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
4632 echo "${as_me-configure}:4632: testing assuming soname for gpm is $with_gpm ..." 1>&5
4634 cf_cv_gpm_soname="$with_gpm"
4637 echo "$as_me:4637: checking for soname of gpm library" >&5
4638 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
4639 if test "${cf_cv_gpm_soname+set}" = set; then
4640 echo $ECHO_N "(cached) $ECHO_C" >&6
4643 cf_cv_gpm_soname=unknown
4644 if test "$cross_compiling" != yes ; then
4645 cat >conftest.$ac_ext <<CF_EOF
4649 if (Gpm_Open(0,0)) Gpm_Close();
4650 ${cf_cv_main_return:-return}(0);
4653 cf_save_LIBS="$LIBS"
4655 if { (eval echo "$as_me:4655: \"$ac_compile\"") >&5
4656 (eval $ac_compile) 2>&5
4658 echo "$as_me:4658: \$? = $ac_status" >&5
4659 (exit $ac_status); } ; then
4660 if { (eval echo "$as_me:4660: \"$ac_link\"") >&5
4661 (eval $ac_link) 2>&5
4663 echo "$as_me:4663: \$? = $ac_status" >&5
4664 (exit $ac_status); } ; then
4665 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
4666 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
4670 LIBS="$cf_save_LIBS"
4674 echo "$as_me:4674: result: $cf_cv_gpm_soname" >&5
4675 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
4678 test "$cf_cv_gpm_soname" != "unknown" && cat >>confdefs.h <<EOF
4679 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
4682 SHLIB_LIST="-ldl $SHLIB_LIST"
4684 SHLIB_LIST="-lgpm $SHLIB_LIST"
4686 cat >>confdefs.h <<\EOF
4687 #define HAVE_LIBGPM 1
4690 echo "$as_me:4690: checking for Gpm_Wgetch in -lgpm" >&5
4691 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
4692 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4695 ac_check_lib_save_LIBS=$LIBS
4697 cat >conftest.$ac_ext <<_ACEOF
4698 #line 4698 "configure"
4699 #include "confdefs.h"
4701 /* Override any gcc2 internal prototype to avoid an error. */
4705 /* We use char because int might match the return type of a gcc2
4706 builtin and then its argument prototype would still apply. */
4716 rm -f conftest.$ac_objext conftest$ac_exeext
4717 if { (eval echo "$as_me:4717: \"$ac_link\"") >&5
4718 (eval $ac_link) 2>&5
4720 echo "$as_me:4720: \$? = $ac_status" >&5
4721 (exit $ac_status); } &&
4722 { ac_try='test -s conftest$ac_exeext'
4723 { (eval echo "$as_me:4723: \"$ac_try\"") >&5
4726 echo "$as_me:4726: \$? = $ac_status" >&5
4727 (exit $ac_status); }; }; then
4728 ac_cv_lib_gpm_Gpm_Wgetch=yes
4730 echo "$as_me: failed program was:" >&5
4731 cat conftest.$ac_ext >&5
4732 ac_cv_lib_gpm_Gpm_Wgetch=no
4734 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4735 LIBS=$ac_check_lib_save_LIBS
4737 echo "$as_me:4737: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
4738 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
4739 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
4741 echo "$as_me:4741: checking if GPM is weakly bound to curses library" >&5
4742 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
4743 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
4747 cf_cv_check_gpm_wgetch=unknown
4748 if test "$cross_compiling" != yes ; then
4750 cat >conftest.$ac_ext <<CF_EOF
4755 ${cf_cv_main_return:-return}(0);
4759 cf_save_LIBS="$LIBS"
4760 # This only works if we can look at the symbol table. If a shared
4761 # library is stripped for install, we cannot use that. So we're forced
4762 # to rely on the static library, noting that some packagers may not
4764 LIBS="-static -lgpm -dynamic $LIBS"
4765 if { (eval echo "$as_me:4765: \"$ac_compile\"") >&5
4766 (eval $ac_compile) 2>&5
4768 echo "$as_me:4768: \$? = $ac_status" >&5
4769 (exit $ac_status); } ; then
4770 if { (eval echo "$as_me:4770: \"$ac_link\"") >&5
4771 (eval $ac_link) 2>&5
4773 echo "$as_me:4773: \$? = $ac_status" >&5
4774 (exit $ac_status); } ; then
4775 cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
4776 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
4777 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
4781 LIBS="$cf_save_LIBS"
4785 echo "$as_me:4785: result: $cf_cv_check_gpm_wgetch" >&5
4786 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
4788 if test "$cf_cv_check_gpm_wgetch" != yes ; then
4789 { echo "$as_me:4789: WARNING: GPM library is already linked with curses - read the FAQ" >&5
4790 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
4797 # not everyone has "test -c"
4798 if test -c /dev/sysmouse 2>/dev/null ; then
4799 echo "$as_me:4799: checking if you want to use sysmouse" >&5
4800 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
4802 # Check whether --with-sysmouse or --without-sysmouse was given.
4803 if test "${with_sysmouse+set}" = set; then
4804 withval="$with_sysmouse"
4805 cf_with_sysmouse=$withval
4807 cf_with_sysmouse=maybe
4809 if test "$cf_with_sysmouse" != no ; then
4810 cat >conftest.$ac_ext <<_ACEOF
4811 #line 4811 "configure"
4812 #include "confdefs.h"
4814 #include <osreldate.h>
4815 #if (__FreeBSD_version >= 400017)
4816 #include <sys/consio.h>
4817 #include <sys/fbio.h>
4819 #include <machine/console.h>
4826 struct mouse_info the_mouse;
4827 ioctl(0, CONS_MOUSECTL, &the_mouse);
4833 rm -f conftest.$ac_objext
4834 if { (eval echo "$as_me:4834: \"$ac_compile\"") >&5
4835 (eval $ac_compile) 2>&5
4837 echo "$as_me:4837: \$? = $ac_status" >&5
4838 (exit $ac_status); } &&
4839 { ac_try='test -s conftest.$ac_objext'
4840 { (eval echo "$as_me:4840: \"$ac_try\"") >&5
4843 echo "$as_me:4843: \$? = $ac_status" >&5
4844 (exit $ac_status); }; }; then
4845 cf_with_sysmouse=yes
4847 echo "$as_me: failed program was:" >&5
4848 cat conftest.$ac_ext >&5
4851 rm -f conftest.$ac_objext conftest.$ac_ext
4853 echo "$as_me:4853: result: $cf_with_sysmouse" >&5
4854 echo "${ECHO_T}$cf_with_sysmouse" >&6
4855 test "$cf_with_sysmouse" = yes && cat >>confdefs.h <<\EOF
4856 #define USE_SYSMOUSE 1
4861 if test X"$CC_G_OPT" = X"" ; then
4863 test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
4866 if test X"$CXX_G_OPT" = X"" ; then
4868 test -n "$GXX" && test "${ac_cv_prog_cxx_g}" != yes && CXX_G_OPT=''
4871 echo "$as_me:4871: checking for default loader flags" >&5
4872 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
4873 case $DFT_LWR_MODEL in
4874 libtool) LD_MODEL='' ;;
4875 normal) LD_MODEL='' ;;
4876 debug) LD_MODEL=$CC_G_OPT ;;
4877 profile) LD_MODEL='-pg';;
4878 shared) LD_MODEL='' ;;
4880 echo "$as_me:4880: result: $LD_MODEL" >&5
4881 echo "${ECHO_T}$LD_MODEL" >&6
4883 case $DFT_LWR_MODEL in
4885 echo "$as_me:4885: checking if rpath option should be used" >&5
4886 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
4888 # Check whether --enable-rpath or --disable-rpath was given.
4889 if test "${enable_rpath+set}" = set; then
4890 enableval="$enable_rpath"
4891 cf_cv_ld_rpath=$enableval
4895 echo "$as_me:4895: result: $cf_cv_ld_rpath" >&5
4896 echo "${ECHO_T}$cf_cv_ld_rpath" >&6
4897 echo "$as_me:4897: checking if shared libraries should be relinked during install" >&5
4898 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
4900 # Check whether --enable-relink or --disable-relink was given.
4901 if test "${enable_relink+set}" = set; then
4902 enableval="$enable_relink"
4903 cf_cv_do_relink=$enableval
4907 echo "$as_me:4907: result: $cf_cv_do_relink" >&5
4908 echo "${ECHO_T}$cf_cv_do_relink" >&6
4915 INSTALL_LIB="-m 644"
4917 cf_cv_do_symlinks=no
4919 echo "$as_me:4919: checking if release/abi version should be used for shared libs" >&5
4920 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
4922 # Check whether --with-shlib-version or --without-shlib-version was given.
4923 if test "${with_shlib_version+set}" = set; then
4924 withval="$with_shlib_version"
4925 test -z "$withval" && withval=auto
4926 case $withval in #(vi
4928 cf_cv_shlib_version=auto
4930 rel|abi|auto|no) #(vi
4931 cf_cv_shlib_version=$withval
4934 { { echo "$as_me:4934: error: option value must be one of: rel, abi, auto or no" >&5
4935 echo "$as_me: error: option value must be one of: rel, abi, auto or no" >&2;}
4936 { (exit 1); exit 1; }; }
4941 cf_cv_shlib_version=auto
4943 echo "$as_me:4943: result: $cf_cv_shlib_version" >&5
4944 echo "${ECHO_T}$cf_cv_shlib_version" >&6
4948 # Some less-capable ports of gcc support only -fpic
4950 if test "$GCC" = yes
4952 echo "$as_me:4952: checking which $CC option to use" >&5
4953 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
4954 cf_save_CFLAGS="$CFLAGS"
4955 for CC_SHARED_OPTS in -fPIC -fpic ''
4957 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
4958 cat >conftest.$ac_ext <<_ACEOF
4959 #line 4959 "configure"
4960 #include "confdefs.h"
4970 rm -f conftest.$ac_objext
4971 if { (eval echo "$as_me:4971: \"$ac_compile\"") >&5
4972 (eval $ac_compile) 2>&5
4974 echo "$as_me:4974: \$? = $ac_status" >&5
4975 (exit $ac_status); } &&
4976 { ac_try='test -s conftest.$ac_objext'
4977 { (eval echo "$as_me:4977: \"$ac_try\"") >&5
4980 echo "$as_me:4980: \$? = $ac_status" >&5
4981 (exit $ac_status); }; }; then
4984 echo "$as_me: failed program was:" >&5
4985 cat conftest.$ac_ext >&5
4987 rm -f conftest.$ac_objext conftest.$ac_ext
4989 echo "$as_me:4989: result: $CC_SHARED_OPTS" >&5
4990 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
4991 CFLAGS="$cf_save_CFLAGS"
4994 cf_cv_shlib_version_infix=no
4996 case $cf_cv_system_name in
4998 MK_SHARED_LIB='${CC} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
5002 MK_SHARED_LIB='sh ../mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5003 cf_cv_shlib_version=cygdll
5004 cf_cv_shlib_version_infix=cygdll
5005 cat >mk_shared_lib.sh <<-CF_EOF
5008 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
5011 Linking shared library
5012 ** SHARED_LIB \$SHARED_LIB
5013 ** IMPORT_LIB \$IMPORT_LIB
5015 exec \$* -shared -Wl,--out-implib=../lib/\${IMPORT_LIB} -Wl,--export-all-symbols -o ../lib/\${SHARED_LIB}
5017 chmod +x mk_shared_lib.sh
5020 EXTRA_CFLAGS="-no-cpp-precomp"
5021 CC_SHARED_OPTS="-dynamic"
5022 MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
5023 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
5024 cf_cv_shlib_version_infix=yes
5025 echo "$as_me:5025: checking if ld -search_paths_first works" >&5
5026 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
5027 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
5028 echo $ECHO_N "(cached) $ECHO_C" >&6
5031 cf_save_LDFLAGS=$LDFLAGS
5032 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5033 cat >conftest.$ac_ext <<_ACEOF
5034 #line 5034 "configure"
5035 #include "confdefs.h"
5045 rm -f conftest.$ac_objext conftest$ac_exeext
5046 if { (eval echo "$as_me:5046: \"$ac_link\"") >&5
5047 (eval $ac_link) 2>&5
5049 echo "$as_me:5049: \$? = $ac_status" >&5
5050 (exit $ac_status); } &&
5051 { ac_try='test -s conftest$ac_exeext'
5052 { (eval echo "$as_me:5052: \"$ac_try\"") >&5
5055 echo "$as_me:5055: \$? = $ac_status" >&5
5056 (exit $ac_status); }; }; then
5057 cf_cv_ldflags_search_paths_first=yes
5059 echo "$as_me: failed program was:" >&5
5060 cat conftest.$ac_ext >&5
5061 cf_cv_ldflags_search_paths_first=no
5063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5064 LDFLAGS=$cf_save_LDFLAGS
5066 echo "$as_me:5066: result: $cf_cv_ldflags_search_paths_first" >&5
5067 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
5068 if test $cf_cv_ldflags_search_paths_first = yes; then
5069 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5073 # (tested with gcc 2.7.2 -- I don't have c89)
5074 if test "$GCC" = yes; then
5075 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
5078 LD_SHARED_OPTS='-Wl,+b,${libdir}'
5080 MK_SHARED_LIB='${LD} +b ${libdir} -b -o $@'
5081 # HP-UX shared libraries must be executable, and should be
5082 # readonly to exploit a quirk in the memory manager.
5083 INSTALL_LIB="-m 555"
5086 if test "$cf_cv_ld_rpath" = yes ; then
5087 if test "$GCC" = yes; then
5088 cf_ld_rpath_opt="-Wl,-rpath,"
5089 EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
5091 cf_ld_rpath_opt="-rpath "
5092 EXTRA_LDFLAGS="-rpath \${libdir} $EXTRA_LDFLAGS"
5095 # tested with IRIX 5.2 and 'cc'.
5096 if test "$GCC" != yes; then
5097 CC_SHARED_OPTS='-KPIC'
5099 MK_SHARED_LIB='${CC} -shared -rdata_shared -soname `basename $@` -o $@'
5100 cf_cv_rm_so_locs=yes
5102 linux*|gnu*|k*bsd*-gnu)
5103 if test "$DFT_LWR_MODEL" = "shared" ; then
5104 LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
5105 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5107 if test "$cf_cv_ld_rpath" = yes ; then
5108 cf_ld_rpath_opt="-Wl,-rpath,"
5109 EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
5112 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5113 if test "$cf_cv_shlib_version" = rel; then
5114 cf_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5116 cf_shared_soname='`basename $@`'
5119 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_shared_soname',-stats,-lc -o $@'
5122 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5123 MK_SHARED_LIB='${LD} -Bshareable -soname,`basename $@.${ABI_VERSION}` -o $@'
5125 openbsd*|freebsd[12].*)
5126 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5127 MK_SHARED_LIB='${LD} -Bshareable -o $@'
5128 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5131 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5132 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_ld_rpath" = yes ; then
5133 LOCAL_LDFLAGS="-rpath \$(LOCAL_LIBDIR)"
5134 LOCAL_LDFLAGS2="-rpath \${libdir} $LOCAL_LDFLAGS"
5135 cf_ld_rpath_opt="-rpath "
5136 EXTRA_LDFLAGS="-rpath \${libdir} $EXTRA_LDFLAGS"
5139 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5140 if test "$cf_cv_shlib_version" = rel; then
5141 cf_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5143 cf_shared_soname='`basename $@`'
5146 MK_SHARED_LIB='${LD} -Bshareable -soname=`basename $@` -o $@'
5149 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5150 test "$cf_cv_ld_rpath" = yes && cf_ld_rpath_opt="-Wl,-rpath,"
5151 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_ld_rpath" = yes ; then
5152 LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
5153 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5154 EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
5155 if test "$cf_cv_shlib_version" = auto; then
5156 if test -f /usr/libexec/ld.elf_so; then
5157 cf_cv_shlib_version=abi
5159 cf_cv_shlib_version=rel
5163 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5164 if test "$cf_cv_shlib_version" = rel; then
5165 cf_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5167 cf_shared_soname='`basename $@`'
5170 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_shared_soname' -o $@'
5172 MK_SHARED_LIB='${LD} -Bshareable -o $@'
5176 # tested with OSF/1 V3.2 and 'cc'
5177 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
5178 # link with shared libs).
5179 MK_SHARED_LIB='${LD} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
5182 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
5185 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
5186 if test "$DFT_LWR_MODEL" = "shared" ; then
5187 LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
5188 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5190 if test "$cf_cv_ld_rpath" = yes ; then
5191 cf_ld_rpath_opt="-rpath"
5192 # EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
5194 cf_cv_rm_so_locs=yes
5196 sco3.2v5*) # (also uw2* and UW7) hops 13-Apr-98
5197 # tested with osr5.0.5
5198 if test "$GCC" != yes; then
5199 CC_SHARED_OPTS='-belf -KPIC'
5201 MK_SHARED_LIB='${LD} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
5202 if test "$cf_cv_ld_rpath" = yes ; then
5203 # only way is to set LD_RUN_PATH but no switch for it
5206 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5207 LINK_PROGS='LD_RUN_PATH=${libdir}'
5208 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
5211 # tested with SunOS 4.1.1 and gcc 2.7.0
5212 if test "$GCC" != yes; then
5213 CC_SHARED_OPTS='-KPIC'
5215 MK_SHARED_LIB='${LD} -assert pure-text -o $@'
5216 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5219 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
5220 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
5221 if test "$DFT_LWR_MODEL" = "shared" ; then
5222 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
5223 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5225 if test "$cf_cv_ld_rpath" = yes ; then
5226 cf_ld_rpath_opt="-R"
5227 EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
5230 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5231 if test "$cf_cv_shlib_version" = rel; then
5232 cf_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5234 cf_shared_soname='`basename $@`'
5237 if test "$GCC" != yes; then
5238 CC_SHARED_OPTS='-xcode=pic32'
5239 MK_SHARED_LIB='${CC} -dy -G -h '$cf_shared_soname' -o $@'
5241 MK_SHARED_LIB='${CC} -shared -dy -G -h '$cf_shared_soname' -o $@'
5245 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
5246 if test "$GCC" != yes; then
5247 CC_SHARED_OPTS='-KPIC'
5249 MK_SHARED_LIB='${LD} -d y -G -o $@'
5252 CC_SHARED_OPTS='unknown'
5253 MK_SHARED_LIB='echo unknown'
5257 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
5258 case "$cf_cv_shlib_version" in #(vi
5260 case "$MK_SHARED_LIB" in #(vi
5262 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
5265 { echo "$as_me:5265: WARNING: ignored --with-shlib-version" >&5
5266 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
5272 if test -n "$cf_ld_rpath_opt" ; then
5273 echo "$as_me:5273: checking if we need a space after rpath option" >&5
5274 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
5275 cf_save_LIBS="$LIBS"
5276 LIBS="$LIBS ${cf_ld_rpath_opt}$libdir"
5277 cat >conftest.$ac_ext <<_ACEOF
5278 #line 5278 "configure"
5279 #include "confdefs.h"
5289 rm -f conftest.$ac_objext conftest$ac_exeext
5290 if { (eval echo "$as_me:5290: \"$ac_link\"") >&5
5291 (eval $ac_link) 2>&5
5293 echo "$as_me:5293: \$? = $ac_status" >&5
5294 (exit $ac_status); } &&
5295 { ac_try='test -s conftest$ac_exeext'
5296 { (eval echo "$as_me:5296: \"$ac_try\"") >&5
5299 echo "$as_me:5299: \$? = $ac_status" >&5
5300 (exit $ac_status); }; }; then
5303 echo "$as_me: failed program was:" >&5
5304 cat conftest.$ac_ext >&5
5307 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5308 LIBS="$cf_save_LIBS"
5309 echo "$as_me:5309: result: $cf_rpath_space" >&5
5310 echo "${ECHO_T}$cf_rpath_space" >&6
5311 test "$cf_rpath_space" = yes && cf_ld_rpath_opt="$cf_ld_rpath_opt "
5312 MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${libdir}"
5315 if test "$CC_SHARED_OPTS" = "unknown"; then
5316 for model in $cf_list_models; do
5317 if test "$model" = "shared"; then
5318 { { echo "$as_me:5318: error: Shared libraries are not supported in this version" >&5
5319 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
5320 { (exit 1); exit 1; }; }
5325 ###############################################################################
5327 ### use option --disable-overwrite to leave out the link to -lcurses
5328 echo "$as_me:5328: checking if you wish to install ncurses overwriting curses" >&5
5329 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
5331 # Check whether --enable-overwrite or --disable-overwrite was given.
5332 if test "${enable_overwrite+set}" = set; then
5333 enableval="$enable_overwrite"
5334 with_overwrite=$enableval
5336 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
5338 echo "$as_me:5338: result: $with_overwrite" >&5
5339 echo "${ECHO_T}$with_overwrite" >&6
5341 echo "$as_me:5341: checking if external terminfo-database is used" >&5
5342 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
5344 # Check whether --enable-database or --disable-database was given.
5345 if test "${enable_database+set}" = set; then
5346 enableval="$enable_database"
5347 use_database=$enableval
5351 echo "$as_me:5351: result: $use_database" >&5
5352 echo "${ECHO_T}$use_database" >&6
5354 case $host_os in #(vi
5356 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
5359 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
5363 case $cf_cv_system_name in
5364 os2*) PATHSEP=';' ;;
5368 if test "$use_database" != no ; then
5369 cat >>confdefs.h <<\EOF
5370 #define USE_DATABASE 1
5373 echo "$as_me:5373: checking which terminfo source-file will be installed" >&5
5374 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
5376 # Check whether --enable-database or --disable-database was given.
5377 if test "${enable_database+set}" = set; then
5378 enableval="$enable_database"
5379 TERMINFO_SRC=$withval
5381 echo "$as_me:5381: result: $TERMINFO_SRC" >&5
5382 echo "${ECHO_T}$TERMINFO_SRC" >&6
5384 echo "$as_me:5384: checking whether to use hashed database instead of directory/tree" >&5
5385 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
5387 # Check whether --with-hashed-db or --without-hashed-db was given.
5388 if test "${with_hashed_db+set}" = set; then
5389 withval="$with_hashed_db"
5394 echo "$as_me:5394: result: $with_hashed_db" >&5
5395 echo "${ECHO_T}$with_hashed_db" >&6
5398 echo "$as_me:5398: checking for list of fallback descriptions" >&5
5399 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
5401 # Check whether --with-fallbacks or --without-fallbacks was given.
5402 if test "${with_fallbacks+set}" = set; then
5403 withval="$with_fallbacks"
5404 with_fallback=$withval
5408 echo "$as_me:5408: result: $with_fallback" >&5
5409 echo "${ECHO_T}$with_fallback" >&6
5410 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
5412 echo "$as_me:5412: checking if you want modern xterm or antique" >&5
5413 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
5415 # Check whether --with-xterm-new or --without-xterm-new was given.
5416 if test "${with_xterm_new+set}" = set; then
5417 withval="$with_xterm_new"
5418 with_xterm_new=$withval
5422 case $with_xterm_new in
5423 no) with_xterm_new=xterm-old;;
5424 *) with_xterm_new=xterm-new;;
5426 echo "$as_me:5426: result: $with_xterm_new" >&5
5427 echo "${ECHO_T}$with_xterm_new" >&6
5428 WHICH_XTERM=$with_xterm_new
5431 if test "$use_database" = no ; then
5432 TERMINFO="${datadir}/terminfo"
5436 echo "$as_me:5436: checking for list of terminfo directories" >&5
5437 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
5439 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
5440 if test "${with_terminfo_dirs+set}" = set; then
5441 withval="$with_terminfo_dirs"
5444 withval=${TERMINFO_DIRS-${datadir}/terminfo}
5446 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATHSEP}"
5448 for cf_src_path in $withval
5451 if test "x$prefix" != xNONE; then
5452 cf_path_syntax="$prefix"
5454 cf_path_syntax="$ac_default_prefix"
5457 case ".$cf_src_path" in #(vi
5458 .\$\(*\)*|.\'*\'*) #(vi
5462 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
5465 eval cf_src_path="$cf_src_path"
5466 case ".$cf_src_path" in #(vi
5468 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
5473 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
5476 { { echo "$as_me:5476: error: expected a pathname, not \"$cf_src_path\"" >&5
5477 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
5478 { (exit 1); exit 1; }; }
5482 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
5483 cf_dst_path="${cf_dst_path}${cf_src_path}"
5487 eval 'TERMINFO_DIRS="$cf_dst_path"'
5489 echo "$as_me:5489: result: $TERMINFO_DIRS" >&5
5490 echo "${ECHO_T}$TERMINFO_DIRS" >&6
5491 test -n "$TERMINFO_DIRS" && cat >>confdefs.h <<EOF
5492 #define TERMINFO_DIRS "$TERMINFO_DIRS"
5495 echo "$as_me:5495: checking for default terminfo directory" >&5
5496 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
5498 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
5499 if test "${with_default_terminfo_dir+set}" = set; then
5500 withval="$with_default_terminfo_dir"
5503 withval="${TERMINFO-${datadir}/terminfo}"
5504 fi; if test -n "${datadir}/terminfo" ; then
5506 if test "x$prefix" != xNONE; then
5507 cf_path_syntax="$prefix"
5509 cf_path_syntax="$ac_default_prefix"
5512 case ".$withval" in #(vi
5513 .\$\(*\)*|.\'*\'*) #(vi
5517 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
5520 eval withval="$withval"
5521 case ".$withval" in #(vi
5523 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
5528 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
5531 { { echo "$as_me:5531: error: expected a pathname, not \"$withval\"" >&5
5532 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
5533 { (exit 1); exit 1; }; }
5540 echo "$as_me:5540: result: $TERMINFO" >&5
5541 echo "${ECHO_T}$TERMINFO" >&6
5542 cat >>confdefs.h <<EOF
5543 #define TERMINFO "$TERMINFO"
5548 ### use option --disable-big-core to make tic run on small machines
5549 ### We need 4Mb, check if we can allocate 50% more than that.
5550 echo "$as_me:5550: checking if big-core option selected" >&5
5551 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
5553 # Check whether --enable-big-core or --disable-big-core was given.
5554 if test "${enable_big_core+set}" = set; then
5555 enableval="$enable_big_core"
5556 with_big_core=$enableval
5558 if test "$cross_compiling" = yes; then
5561 cat >conftest.$ac_ext <<_ACEOF
5562 #line 5562 "configure"
5563 #include "confdefs.h"
5568 unsigned long n = 6000000L;
5569 char *s = malloc(n);
5572 ${cf_cv_main_return:-return}(s == 0);
5575 rm -f conftest$ac_exeext
5576 if { (eval echo "$as_me:5576: \"$ac_link\"") >&5
5577 (eval $ac_link) 2>&5
5579 echo "$as_me:5579: \$? = $ac_status" >&5
5580 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5581 { (eval echo "$as_me:5581: \"$ac_try\"") >&5
5584 echo "$as_me:5584: \$? = $ac_status" >&5
5585 (exit $ac_status); }; }; then
5588 echo "$as_me: program exited with status $ac_status" >&5
5589 echo "$as_me: failed program was:" >&5
5590 cat conftest.$ac_ext >&5
5593 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5596 echo "$as_me:5596: result: $with_big_core" >&5
5597 echo "${ECHO_T}$with_big_core" >&6
5598 test "$with_big_core" = "yes" && cat >>confdefs.h <<\EOF
5599 #define HAVE_BIG_CORE 1
5602 ### ISO C only guarantees 512-char strings, we have tables which load faster
5603 ### when constructed using "big" strings.
5604 echo "$as_me:5604: checking if big-strings option selected" >&5
5605 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
5607 # Check whether --enable-big-strings or --disable-big-strings was given.
5608 if test "${enable_big_strings+set}" = set; then
5609 enableval="$enable_big_strings"
5612 with_big_strings=yes
5614 echo "$as_me:5614: result: $with_big_strings" >&5
5615 echo "${ECHO_T}$with_big_strings" >&6
5618 test "$with_big_strings" = "yes" && USE_BIG_STRINGS=1
5620 ### use option --enable-termcap to compile in the termcap fallback support
5621 echo "$as_me:5621: checking if you want termcap-fallback support" >&5
5622 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
5624 # Check whether --enable-termcap or --disable-termcap was given.
5625 if test "${enable_termcap+set}" = set; then
5626 enableval="$enable_termcap"
5627 with_termcap=$enableval
5631 echo "$as_me:5631: result: $with_termcap" >&5
5632 echo "${ECHO_T}$with_termcap" >&6
5634 if test "$with_termcap" != "yes" ; then
5635 if test "$use_database" = no ; then
5636 if test -z "$with_fallback" ; then
5637 { { echo "$as_me:5637: error: You have disabled the database w/o specifying fallbacks" >&5
5638 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
5639 { (exit 1); exit 1; }; }
5642 cat >>confdefs.h <<\EOF
5643 #define PURE_TERMINFO 1
5648 if test "$with_ticlib" != no ; then
5649 { { echo "$as_me:5649: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
5650 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
5651 { (exit 1); exit 1; }; }
5654 cat >>confdefs.h <<\EOF
5655 #define USE_TERMCAP 1
5658 echo "$as_me:5658: checking for list of termcap files" >&5
5659 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
5661 # Check whether --with-termpath or --without-termpath was given.
5662 if test "${with_termpath+set}" = set; then
5663 withval="$with_termpath"
5666 withval=${TERMPATH-/etc/termcap:/usr/share/misc/termcap}
5668 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATHSEP}"
5670 for cf_src_path in $withval
5673 if test "x$prefix" != xNONE; then
5674 cf_path_syntax="$prefix"
5676 cf_path_syntax="$ac_default_prefix"
5679 case ".$cf_src_path" in #(vi
5680 .\$\(*\)*|.\'*\'*) #(vi
5684 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
5687 eval cf_src_path="$cf_src_path"
5688 case ".$cf_src_path" in #(vi
5690 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
5695 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
5698 { { echo "$as_me:5698: error: expected a pathname, not \"$cf_src_path\"" >&5
5699 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
5700 { (exit 1); exit 1; }; }
5704 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
5705 cf_dst_path="${cf_dst_path}${cf_src_path}"
5709 eval 'TERMPATH="$cf_dst_path"'
5711 echo "$as_me:5711: result: $TERMPATH" >&5
5712 echo "${ECHO_T}$TERMPATH" >&6
5713 test -n "$TERMPATH" && cat >>confdefs.h <<EOF
5714 #define TERMPATH "$TERMPATH"
5717 ### use option --enable-getcap to use a hacked getcap for reading termcaps
5718 echo "$as_me:5718: checking if fast termcap-loader is needed" >&5
5719 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
5721 # Check whether --enable-getcap or --disable-getcap was given.
5722 if test "${enable_getcap+set}" = set; then
5723 enableval="$enable_getcap"
5724 with_getcap=$enableval
5728 echo "$as_me:5728: result: $with_getcap" >&5
5729 echo "${ECHO_T}$with_getcap" >&6
5730 test "$with_getcap" = "yes" && cat >>confdefs.h <<\EOF
5731 #define USE_GETCAP 1
5734 echo "$as_me:5734: checking if translated termcaps will be cached in ~/.terminfo" >&5
5735 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
5737 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
5738 if test "${enable_getcap_cache+set}" = set; then
5739 enableval="$enable_getcap_cache"
5740 with_getcap_cache=$enableval
5742 with_getcap_cache=no
5744 echo "$as_me:5744: result: $with_getcap_cache" >&5
5745 echo "${ECHO_T}$with_getcap_cache" >&6
5746 test "$with_getcap_cache" = "yes" && cat >>confdefs.h <<\EOF
5747 #define USE_GETCAP_CACHE 1
5752 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
5753 echo "$as_me:5753: checking if ~/.terminfo is wanted" >&5
5754 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
5756 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
5757 if test "${enable_home_terminfo+set}" = set; then
5758 enableval="$enable_home_terminfo"
5759 with_home_terminfo=$enableval
5761 with_home_terminfo=yes
5763 echo "$as_me:5763: result: $with_home_terminfo" >&5
5764 echo "${ECHO_T}$with_home_terminfo" >&6
5765 test "$with_home_terminfo" = "yes" && cat >>confdefs.h <<\EOF
5766 #define USE_HOME_TERMINFO 1
5769 echo "$as_me:5769: checking if you want to use restricted environment when running as root" >&5
5770 echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6
5772 # Check whether --enable-root-environ or --disable-root-environ was given.
5773 if test "${enable_root_environ+set}" = set; then
5774 enableval="$enable_root_environ"
5775 with_root_environ=$enableval
5777 with_root_environ=yes
5779 echo "$as_me:5779: result: $with_root_environ" >&5
5780 echo "${ECHO_T}$with_root_environ" >&6
5781 test "$with_root_environ" = yes && cat >>confdefs.h <<\EOF
5782 #define USE_ROOT_ENVIRON 1
5785 ### Use option --enable-symlinks to make tic use symlinks, not hard links
5786 ### to reduce storage requirements for the terminfo database.
5792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5793 echo "$as_me:5793: checking for $ac_func" >&5
5794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5795 if eval "test \"\${$as_ac_var+set}\" = set"; then
5796 echo $ECHO_N "(cached) $ECHO_C" >&6
5798 cat >conftest.$ac_ext <<_ACEOF
5799 #line 5799 "configure"
5800 #include "confdefs.h"
5801 /* System header to define __stub macros and hopefully few prototypes,
5802 which can conflict with char $ac_func (); below. */
5804 /* Override any gcc2 internal prototype to avoid an error. */
5808 /* We use char because int might match the return type of a gcc2
5809 builtin and then its argument prototype would still apply. */
5816 /* The GNU C library defines this for functions which it implements
5817 to always fail with ENOSYS. Some functions are actually named
5818 something starting with __ and the normal name is an alias. */
5819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5829 rm -f conftest.$ac_objext conftest$ac_exeext
5830 if { (eval echo "$as_me:5830: \"$ac_link\"") >&5
5831 (eval $ac_link) 2>&5
5833 echo "$as_me:5833: \$? = $ac_status" >&5
5834 (exit $ac_status); } &&
5835 { ac_try='test -s conftest$ac_exeext'
5836 { (eval echo "$as_me:5836: \"$ac_try\"") >&5
5839 echo "$as_me:5839: \$? = $ac_status" >&5
5840 (exit $ac_status); }; }; then
5841 eval "$as_ac_var=yes"
5843 echo "$as_me: failed program was:" >&5
5844 cat conftest.$ac_ext >&5
5845 eval "$as_ac_var=no"
5847 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5849 echo "$as_me:5849: result: `eval echo '${'$as_ac_var'}'`" >&5
5850 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5851 if test `eval echo '${'$as_ac_var'}'` = yes; then
5852 cat >>confdefs.h <<EOF
5853 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5859 if test "$cross_compiling" = yes ; then
5865 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5866 echo "$as_me:5866: checking for $ac_func" >&5
5867 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5868 if eval "test \"\${$as_ac_var+set}\" = set"; then
5869 echo $ECHO_N "(cached) $ECHO_C" >&6
5871 cat >conftest.$ac_ext <<_ACEOF
5872 #line 5872 "configure"
5873 #include "confdefs.h"
5874 /* System header to define __stub macros and hopefully few prototypes,
5875 which can conflict with char $ac_func (); below. */
5877 /* Override any gcc2 internal prototype to avoid an error. */
5881 /* We use char because int might match the return type of a gcc2
5882 builtin and then its argument prototype would still apply. */
5889 /* The GNU C library defines this for functions which it implements
5890 to always fail with ENOSYS. Some functions are actually named
5891 something starting with __ and the normal name is an alias. */
5892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5902 rm -f conftest.$ac_objext conftest$ac_exeext
5903 if { (eval echo "$as_me:5903: \"$ac_link\"") >&5
5904 (eval $ac_link) 2>&5
5906 echo "$as_me:5906: \$? = $ac_status" >&5
5907 (exit $ac_status); } &&
5908 { ac_try='test -s conftest$ac_exeext'
5909 { (eval echo "$as_me:5909: \"$ac_try\"") >&5
5912 echo "$as_me:5912: \$? = $ac_status" >&5
5913 (exit $ac_status); }; }; then
5914 eval "$as_ac_var=yes"
5916 echo "$as_me: failed program was:" >&5
5917 cat conftest.$ac_ext >&5
5918 eval "$as_ac_var=no"
5920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5922 echo "$as_me:5922: result: `eval echo '${'$as_ac_var'}'`" >&5
5923 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5924 if test `eval echo '${'$as_ac_var'}'` = yes; then
5925 cat >>confdefs.h <<EOF
5926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5933 echo "$as_me:5933: checking if link/symlink functions work" >&5
5934 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
5935 if test "${cf_cv_link_funcs+set}" = set; then
5936 echo $ECHO_N "(cached) $ECHO_C" >&6
5940 for cf_func in link symlink ; do
5941 if test "$cross_compiling" = yes; then
5943 eval 'ac_cv_func_'$cf_func'=error'
5945 cat >conftest.$ac_ext <<_ACEOF
5946 #line 5946 "configure"
5947 #include "confdefs.h"
5949 #include <sys/types.h>
5950 #include <sys/stat.h>
5951 #ifdef HAVE_UNISTD_H
5957 char *src = "config.log";
5958 char *dst = "conftest.chk";
5963 fail = ($cf_func("config.log", "conftest.chk") < 0)
5964 || (stat(dst, &dst_sb) < 0)
5965 || (dst_sb.st_mtime != src_sb.st_mtime);
5971 ${cf_cv_main_return:-return} (fail);
5975 rm -f conftest$ac_exeext
5976 if { (eval echo "$as_me:5976: \"$ac_link\"") >&5
5977 (eval $ac_link) 2>&5
5979 echo "$as_me:5979: \$? = $ac_status" >&5
5980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5981 { (eval echo "$as_me:5981: \"$ac_try\"") >&5
5984 echo "$as_me:5984: \$? = $ac_status" >&5
5985 (exit $ac_status); }; }; then
5987 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
5988 eval 'ac_cv_func_'$cf_func'=yes'
5990 echo "$as_me: program exited with status $ac_status" >&5
5991 echo "$as_me: failed program was:" >&5
5992 cat conftest.$ac_ext >&5
5994 eval 'ac_cv_func_'$cf_func'=no'
5996 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5999 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
6002 echo "$as_me:6002: result: $cf_cv_link_funcs" >&5
6003 echo "${ECHO_T}$cf_cv_link_funcs" >&6
6004 test "$ac_cv_func_link" = yes && cat >>confdefs.h <<\EOF
6008 test "$ac_cv_func_symlink" = yes && cat >>confdefs.h <<\EOF
6009 #define HAVE_SYMLINK 1
6017 # soft links (symbolic links) are useful for some systems where hard links do
6018 # not work, or to make it simpler to copy terminfo trees around.
6019 if test "$ac_cv_func_symlink" = yes ; then
6020 echo "$as_me:6020: checking if tic should use symbolic links" >&5
6021 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
6023 # Check whether --enable-symlinks or --disable-symlinks was given.
6024 if test "${enable_symlinks+set}" = set; then
6025 enableval="$enable_symlinks"
6026 with_symlinks=$enableval
6030 echo "$as_me:6030: result: $with_symlinks" >&5
6031 echo "${ECHO_T}$with_symlinks" >&6
6034 # If we have hard links and did not choose to use soft links instead, there is
6035 # no reason to make this choice optional - use the hard links.
6036 if test "$with_symlinks" = no ; then
6037 echo "$as_me:6037: checking if tic should use hard links" >&5
6038 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
6039 if test "$ac_cv_func_link" = yes ; then
6044 echo "$as_me:6044: result: $with_links" >&5
6045 echo "${ECHO_T}$with_links" >&6
6048 test "$with_links" = yes && cat >>confdefs.h <<\EOF
6052 test "$with_symlinks" = yes && cat >>confdefs.h <<\EOF
6053 #define USE_SYMLINKS 1
6056 ### use option --enable-broken-linker to force on use of broken-linker support
6057 echo "$as_me:6057: checking if you want broken-linker support code" >&5
6058 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
6060 # Check whether --enable-broken_linker or --disable-broken_linker was given.
6061 if test "${enable_broken_linker+set}" = set; then
6062 enableval="$enable_broken_linker"
6063 with_broken_linker=$enableval
6065 with_broken_linker=${BROKEN_LINKER-no}
6067 echo "$as_me:6067: result: $with_broken_linker" >&5
6068 echo "${ECHO_T}$with_broken_linker" >&6
6071 if test "$with_broken_linker" = yes ; then
6072 cat >>confdefs.h <<\EOF
6073 #define BROKEN_LINKER 1
6077 elif test "$DFT_LWR_MODEL" = shared ; then
6078 case $cf_cv_system_name in #(vi
6080 cat >>confdefs.h <<\EOF
6081 #define BROKEN_LINKER 1
6085 test -n "$verbose" && echo " cygwin linker is broken anyway" 1>&6
6087 echo "${as_me-configure}:6087: testing cygwin linker is broken anyway ..." 1>&5
6093 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
6094 echo "$as_me:6094: checking if tputs should process BSD-style prefix padding" >&5
6095 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
6097 # Check whether --enable-bsdpad or --disable-bsdpad was given.
6098 if test "${enable_bsdpad+set}" = set; then
6099 enableval="$enable_bsdpad"
6100 with_bsdpad=$enableval
6104 echo "$as_me:6104: result: $with_bsdpad" >&5
6105 echo "${ECHO_T}$with_bsdpad" >&6
6106 test "$with_bsdpad" = yes && cat >>confdefs.h <<\EOF
6110 ### use option --enable-widec to turn on use of wide-character support
6119 # Check to define _XOPEN_SOURCE "automatically"
6121 echo "$as_me:6121: checking if $CC -U and -D options work together" >&5
6122 echo $ECHO_N "checking if $CC -U and -D options work together... $ECHO_C" >&6
6123 if test "${cf_cv_cc_u_d_options+set}" = set; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6127 cf_save_CPPFLAGS="$CPPFLAGS"
6128 CPPFLAGS="-UU_D_OPTIONS -DU_D_OPTIONS -DD_U_OPTIONS -UD_U_OPTIONS"
6129 cat >conftest.$ac_ext <<_ACEOF
6130 #line 6130 "configure"
6131 #include "confdefs.h"
6138 make an undefined-error
6141 make a defined-error
6148 rm -f conftest.$ac_objext
6149 if { (eval echo "$as_me:6149: \"$ac_compile\"") >&5
6150 (eval $ac_compile) 2>&5
6152 echo "$as_me:6152: \$? = $ac_status" >&5
6153 (exit $ac_status); } &&
6154 { ac_try='test -s conftest.$ac_objext'
6155 { (eval echo "$as_me:6155: \"$ac_try\"") >&5
6158 echo "$as_me:6158: \$? = $ac_status" >&5
6159 (exit $ac_status); }; }; then
6161 cf_cv_cc_u_d_options=yes
6163 echo "$as_me: failed program was:" >&5
6164 cat conftest.$ac_ext >&5
6166 cf_cv_cc_u_d_options=no
6168 rm -f conftest.$ac_objext conftest.$ac_ext
6169 CPPFLAGS="$cf_save_CPPFLAGS"
6172 echo "$as_me:6172: result: $cf_cv_cc_u_d_options" >&5
6173 echo "${ECHO_T}$cf_cv_cc_u_d_options" >&6
6176 cf_POSIX_C_SOURCE=199506L
6178 case $host_os in #(vi
6180 CPPFLAGS="$CPPFLAGS -D_ALL_SOURCE"
6182 freebsd*|dragonfly*) #(vi
6183 # 5.x headers associate
6184 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
6185 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
6186 cf_POSIX_C_SOURCE=200112L
6188 CPPFLAGS="$CPPFLAGS -D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
6191 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE"
6194 CPPFLAGS="$CPPFLAGS -D_SGI_SOURCE"
6196 linux*|gnu*|k*bsd*-gnu) #(vi
6198 echo "$as_me:6198: checking if we must define _GNU_SOURCE" >&5
6199 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
6200 if test "${cf_cv_gnu_source+set}" = set; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6204 cat >conftest.$ac_ext <<_ACEOF
6205 #line 6205 "configure"
6206 #include "confdefs.h"
6207 #include <sys/types.h>
6212 #ifndef _XOPEN_SOURCE
6219 rm -f conftest.$ac_objext
6220 if { (eval echo "$as_me:6220: \"$ac_compile\"") >&5
6221 (eval $ac_compile) 2>&5
6223 echo "$as_me:6223: \$? = $ac_status" >&5
6224 (exit $ac_status); } &&
6225 { ac_try='test -s conftest.$ac_objext'
6226 { (eval echo "$as_me:6226: \"$ac_try\"") >&5
6229 echo "$as_me:6229: \$? = $ac_status" >&5
6230 (exit $ac_status); }; }; then
6233 echo "$as_me: failed program was:" >&5
6234 cat conftest.$ac_ext >&5
6236 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
6237 cat >conftest.$ac_ext <<_ACEOF
6238 #line 6238 "configure"
6239 #include "confdefs.h"
6240 #include <sys/types.h>
6245 #ifdef _XOPEN_SOURCE
6252 rm -f conftest.$ac_objext
6253 if { (eval echo "$as_me:6253: \"$ac_compile\"") >&5
6254 (eval $ac_compile) 2>&5
6256 echo "$as_me:6256: \$? = $ac_status" >&5
6257 (exit $ac_status); } &&
6258 { ac_try='test -s conftest.$ac_objext'
6259 { (eval echo "$as_me:6259: \"$ac_try\"") >&5
6262 echo "$as_me:6262: \$? = $ac_status" >&5
6263 (exit $ac_status); }; }; then
6266 echo "$as_me: failed program was:" >&5
6267 cat conftest.$ac_ext >&5
6268 cf_cv_gnu_source=yes
6270 rm -f conftest.$ac_objext conftest.$ac_ext
6274 rm -f conftest.$ac_objext conftest.$ac_ext
6277 echo "$as_me:6277: result: $cf_cv_gnu_source" >&5
6278 echo "${ECHO_T}$cf_cv_gnu_source" >&6
6279 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
6283 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h>
6286 # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
6289 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
6292 CPPFLAGS="$CPPFLAGS -D_OSF_SOURCE"
6295 CPPFLAGS="$CPPFLAGS -D_QNX_SOURCE"
6298 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
6301 CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__"
6304 echo "$as_me:6304: checking if we should define _XOPEN_SOURCE" >&5
6305 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
6306 if test "${cf_cv_xopen_source+set}" = set; then
6307 echo $ECHO_N "(cached) $ECHO_C" >&6
6310 cat >conftest.$ac_ext <<_ACEOF
6311 #line 6311 "configure"
6312 #include "confdefs.h"
6313 #include <sys/types.h>
6318 #ifndef _XOPEN_SOURCE
6325 rm -f conftest.$ac_objext
6326 if { (eval echo "$as_me:6326: \"$ac_compile\"") >&5
6327 (eval $ac_compile) 2>&5
6329 echo "$as_me:6329: \$? = $ac_status" >&5
6330 (exit $ac_status); } &&
6331 { ac_try='test -s conftest.$ac_objext'
6332 { (eval echo "$as_me:6332: \"$ac_try\"") >&5
6335 echo "$as_me:6335: \$? = $ac_status" >&5
6336 (exit $ac_status); }; }; then
6337 cf_cv_xopen_source=no
6339 echo "$as_me: failed program was:" >&5
6340 cat conftest.$ac_ext >&5
6342 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
6343 cat >conftest.$ac_ext <<_ACEOF
6344 #line 6344 "configure"
6345 #include "confdefs.h"
6346 #include <sys/types.h>
6351 #ifdef _XOPEN_SOURCE
6358 rm -f conftest.$ac_objext
6359 if { (eval echo "$as_me:6359: \"$ac_compile\"") >&5
6360 (eval $ac_compile) 2>&5
6362 echo "$as_me:6362: \$? = $ac_status" >&5
6363 (exit $ac_status); } &&
6364 { ac_try='test -s conftest.$ac_objext'
6365 { (eval echo "$as_me:6365: \"$ac_try\"") >&5
6368 echo "$as_me:6368: \$? = $ac_status" >&5
6369 (exit $ac_status); }; }; then
6370 cf_cv_xopen_source=no
6372 echo "$as_me: failed program was:" >&5
6373 cat conftest.$ac_ext >&5
6374 cf_cv_xopen_source=$cf_XOPEN_SOURCE
6376 rm -f conftest.$ac_objext conftest.$ac_ext
6380 rm -f conftest.$ac_objext conftest.$ac_ext
6383 echo "$as_me:6383: result: $cf_cv_xopen_source" >&5
6384 echo "${ECHO_T}$cf_cv_xopen_source" >&6
6385 if test "$cf_cv_xopen_source" != no ; then
6387 # remove _XOPEN_SOURCE symbol from $CFLAGS
6388 CFLAGS=`echo "$CFLAGS" | \
6389 sed -e 's/-[UD]_XOPEN_SOURCE\(=[^ ]*\)\?[ ]/ /g' \
6390 -e 's/-[UD]_XOPEN_SOURCE\(=[^ ]*\)\?$//g'`
6392 # remove _XOPEN_SOURCE symbol from $CPPFLAGS
6393 CPPFLAGS=`echo "$CPPFLAGS" | \
6394 sed -e 's/-[UD]_XOPEN_SOURCE\(=[^ ]*\)\?[ ]/ /g' \
6395 -e 's/-[UD]_XOPEN_SOURCE\(=[^ ]*\)\?$//g'`
6397 test "$cf_cv_cc_u_d_options" = yes && \
6398 CPPFLAGS="$CPPFLAGS -U_XOPEN_SOURCE"
6399 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_cv_xopen_source"
6402 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
6404 cf_save_CFLAGS="$CFLAGS"
6405 cf_save_CPPFLAGS="$CPPFLAGS"
6407 # remove _POSIX_C_SOURCE symbol from $cf_save_CFLAGS
6408 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
6409 sed -e 's/-[UD]_POSIX_C_SOURCE\(=[^ ]*\)\?[ ]/ /g' \
6410 -e 's/-[UD]_POSIX_C_SOURCE\(=[^ ]*\)\?$//g'`
6412 # remove _POSIX_C_SOURCE symbol from $cf_save_CPPFLAGS
6413 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
6414 sed -e 's/-[UD]_POSIX_C_SOURCE\(=[^ ]*\)\?[ ]/ /g' \
6415 -e 's/-[UD]_POSIX_C_SOURCE\(=[^ ]*\)\?$//g'`
6417 echo "$as_me:6417: checking if we should define _POSIX_C_SOURCE" >&5
6418 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
6419 if test "${cf_cv_posix_c_source+set}" = set; then
6420 echo $ECHO_N "(cached) $ECHO_C" >&6
6423 echo "${as_me-configure}:6423: testing if the symbol is already defined go no further ..." 1>&5
6425 cat >conftest.$ac_ext <<_ACEOF
6426 #line 6426 "configure"
6427 #include "confdefs.h"
6428 #include <sys/types.h>
6433 #ifndef _POSIX_C_SOURCE
6440 rm -f conftest.$ac_objext
6441 if { (eval echo "$as_me:6441: \"$ac_compile\"") >&5
6442 (eval $ac_compile) 2>&5
6444 echo "$as_me:6444: \$? = $ac_status" >&5
6445 (exit $ac_status); } &&
6446 { ac_try='test -s conftest.$ac_objext'
6447 { (eval echo "$as_me:6447: \"$ac_try\"") >&5
6450 echo "$as_me:6450: \$? = $ac_status" >&5
6451 (exit $ac_status); }; }; then
6452 cf_cv_posix_c_source=no
6454 echo "$as_me: failed program was:" >&5
6455 cat conftest.$ac_ext >&5
6456 cf_want_posix_source=no
6457 case .$cf_POSIX_C_SOURCE in #(vi
6459 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
6462 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
6463 cf_want_posix_source=yes
6466 cf_want_posix_source=yes
6469 if test "$cf_want_posix_source" = yes ; then
6470 cat >conftest.$ac_ext <<_ACEOF
6471 #line 6471 "configure"
6472 #include "confdefs.h"
6473 #include <sys/types.h>
6478 #ifdef _POSIX_SOURCE
6485 rm -f conftest.$ac_objext
6486 if { (eval echo "$as_me:6486: \"$ac_compile\"") >&5
6487 (eval $ac_compile) 2>&5
6489 echo "$as_me:6489: \$? = $ac_status" >&5
6490 (exit $ac_status); } &&
6491 { ac_try='test -s conftest.$ac_objext'
6492 { (eval echo "$as_me:6492: \"$ac_try\"") >&5
6495 echo "$as_me:6495: \$? = $ac_status" >&5
6496 (exit $ac_status); }; }; then
6499 echo "$as_me: failed program was:" >&5
6500 cat conftest.$ac_ext >&5
6501 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
6503 rm -f conftest.$ac_objext conftest.$ac_ext
6506 echo "${as_me-configure}:6506: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
6508 CFLAGS="$cf_trim_CFLAGS"
6509 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
6511 echo "${as_me-configure}:6511: testing if the second compile does not leave our definition intact error ..." 1>&5
6513 cat >conftest.$ac_ext <<_ACEOF
6514 #line 6514 "configure"
6515 #include "confdefs.h"
6516 #include <sys/types.h>
6521 #ifndef _POSIX_C_SOURCE
6528 rm -f conftest.$ac_objext
6529 if { (eval echo "$as_me:6529: \"$ac_compile\"") >&5
6530 (eval $ac_compile) 2>&5
6532 echo "$as_me:6532: \$? = $ac_status" >&5
6533 (exit $ac_status); } &&
6534 { ac_try='test -s conftest.$ac_objext'
6535 { (eval echo "$as_me:6535: \"$ac_try\"") >&5
6538 echo "$as_me:6538: \$? = $ac_status" >&5
6539 (exit $ac_status); }; }; then
6542 echo "$as_me: failed program was:" >&5
6543 cat conftest.$ac_ext >&5
6544 cf_cv_posix_c_source=no
6546 rm -f conftest.$ac_objext conftest.$ac_ext
6547 CFLAGS="$cf_save_CFLAGS"
6548 CPPFLAGS="$cf_save_CPPFLAGS"
6551 rm -f conftest.$ac_objext conftest.$ac_ext
6554 echo "$as_me:6554: result: $cf_cv_posix_c_source" >&5
6555 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
6557 if test "$cf_cv_posix_c_source" != no ; then
6558 CFLAGS="$cf_trim_CFLAGS"
6559 CPPFLAGS="$cf_trim_CPPFLAGS"
6560 if test "$cf_cv_cc_u_d_options" = yes ; then
6561 cf_temp_posix_c_source=`echo "$cf_cv_posix_c_source" | \
6562 sed -e 's/-D/-U/g' -e 's/=[^ ]*//g'`
6563 CPPFLAGS="$CPPFLAGS $cf_temp_posix_c_source"
6565 CPPFLAGS="$CPPFLAGS $cf_cv_posix_c_source"
6571 # Work around breakage on OS X
6573 echo "$as_me:6573: checking if SIGWINCH is defined" >&5
6574 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
6575 if test "${cf_cv_define_sigwinch+set}" = set; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
6579 cat >conftest.$ac_ext <<_ACEOF
6580 #line 6580 "configure"
6581 #include "confdefs.h"
6583 #include <sys/types.h>
6584 #include <sys/signal.h>
6594 rm -f conftest.$ac_objext
6595 if { (eval echo "$as_me:6595: \"$ac_compile\"") >&5
6596 (eval $ac_compile) 2>&5
6598 echo "$as_me:6598: \$? = $ac_status" >&5
6599 (exit $ac_status); } &&
6600 { ac_try='test -s conftest.$ac_objext'
6601 { (eval echo "$as_me:6601: \"$ac_try\"") >&5
6604 echo "$as_me:6604: \$? = $ac_status" >&5
6605 (exit $ac_status); }; }; then
6606 cf_cv_define_sigwinch=yes
6608 echo "$as_me: failed program was:" >&5
6609 cat conftest.$ac_ext >&5
6610 cat >conftest.$ac_ext <<_ACEOF
6611 #line 6611 "configure"
6612 #include "confdefs.h"
6614 #undef _XOPEN_SOURCE
6615 #undef _POSIX_SOURCE
6616 #undef _POSIX_C_SOURCE
6617 #include <sys/types.h>
6618 #include <sys/signal.h>
6628 rm -f conftest.$ac_objext
6629 if { (eval echo "$as_me:6629: \"$ac_compile\"") >&5
6630 (eval $ac_compile) 2>&5
6632 echo "$as_me:6632: \$? = $ac_status" >&5
6633 (exit $ac_status); } &&
6634 { ac_try='test -s conftest.$ac_objext'
6635 { (eval echo "$as_me:6635: \"$ac_try\"") >&5
6638 echo "$as_me:6638: \$? = $ac_status" >&5
6639 (exit $ac_status); }; }; then
6640 cf_cv_define_sigwinch=maybe
6642 echo "$as_me: failed program was:" >&5
6643 cat conftest.$ac_ext >&5
6644 cf_cv_define_sigwinch=no
6646 rm -f conftest.$ac_objext conftest.$ac_ext
6649 rm -f conftest.$ac_objext conftest.$ac_ext
6652 echo "$as_me:6652: result: $cf_cv_define_sigwinch" >&5
6653 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
6655 if test "$cf_cv_define_sigwinch" = maybe ; then
6656 echo "$as_me:6656: checking for actual SIGWINCH definition" >&5
6657 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
6658 if test "${cf_cv_fixup_sigwinch+set}" = set; then
6659 echo $ECHO_N "(cached) $ECHO_C" >&6
6662 cf_cv_fixup_sigwinch=unknown
6664 while test $cf_sigwinch != 1
6666 cat >conftest.$ac_ext <<_ACEOF
6667 #line 6667 "configure"
6668 #include "confdefs.h"
6670 #undef _XOPEN_SOURCE
6671 #undef _POSIX_SOURCE
6672 #undef _POSIX_C_SOURCE
6673 #include <sys/types.h>
6674 #include <sys/signal.h>
6680 #if SIGWINCH != $cf_sigwinch
6688 rm -f conftest.$ac_objext
6689 if { (eval echo "$as_me:6689: \"$ac_compile\"") >&5
6690 (eval $ac_compile) 2>&5
6692 echo "$as_me:6692: \$? = $ac_status" >&5
6693 (exit $ac_status); } &&
6694 { ac_try='test -s conftest.$ac_objext'
6695 { (eval echo "$as_me:6695: \"$ac_try\"") >&5
6698 echo "$as_me:6698: \$? = $ac_status" >&5
6699 (exit $ac_status); }; }; then
6700 cf_cv_fixup_sigwinch=$cf_sigwinch
6703 echo "$as_me: failed program was:" >&5
6704 cat conftest.$ac_ext >&5
6706 rm -f conftest.$ac_objext conftest.$ac_ext
6708 cf_sigwinch=`expr $cf_sigwinch - 1`
6712 echo "$as_me:6712: result: $cf_cv_fixup_sigwinch" >&5
6713 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
6715 if test "$cf_cv_fixup_sigwinch" != unknown ; then
6716 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
6720 # Checks for CODESET support.
6722 echo "$as_me:6722: checking for nl_langinfo and CODESET" >&5
6723 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
6724 if test "${am_cv_langinfo_codeset+set}" = set; then
6725 echo $ECHO_N "(cached) $ECHO_C" >&6
6727 cat >conftest.$ac_ext <<_ACEOF
6728 #line 6728 "configure"
6729 #include "confdefs.h"
6730 #include <langinfo.h>
6734 char* cs = nl_langinfo(CODESET);
6739 rm -f conftest.$ac_objext conftest$ac_exeext
6740 if { (eval echo "$as_me:6740: \"$ac_link\"") >&5
6741 (eval $ac_link) 2>&5
6743 echo "$as_me:6743: \$? = $ac_status" >&5
6744 (exit $ac_status); } &&
6745 { ac_try='test -s conftest$ac_exeext'
6746 { (eval echo "$as_me:6746: \"$ac_try\"") >&5
6749 echo "$as_me:6749: \$? = $ac_status" >&5
6750 (exit $ac_status); }; }; then
6751 am_cv_langinfo_codeset=yes
6753 echo "$as_me: failed program was:" >&5
6754 cat conftest.$ac_ext >&5
6755 am_cv_langinfo_codeset=no
6757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6760 echo "$as_me:6760: result: $am_cv_langinfo_codeset" >&5
6761 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
6762 if test $am_cv_langinfo_codeset = yes; then
6764 cat >>confdefs.h <<\EOF
6765 #define HAVE_LANGINFO_CODESET 1
6770 # use these variables to work around a defect in gcc's fixincludes.
6774 echo "$as_me:6774: checking if you want wide-character code" >&5
6775 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
6777 # Check whether --enable-widec or --disable-widec was given.
6778 if test "${enable_widec+set}" = set; then
6779 enableval="$enable_widec"
6780 with_widec=$enableval
6784 echo "$as_me:6784: result: $with_widec" >&5
6785 echo "${ECHO_T}$with_widec" >&6
6786 if test "$with_widec" = yes ; then
6787 LIB_SUFFIX="w${LIB_SUFFIX}"
6788 cat >>confdefs.h <<\EOF
6789 #define USE_WIDEC_SUPPORT 1
6792 echo "$as_me:6792: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
6793 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
6794 cat >conftest.$ac_ext <<_ACEOF
6795 #line 6795 "configure"
6796 #include "confdefs.h"
6797 #include <sys/types.h>
6803 #ifndef _XOPEN_SOURCE_EXTENDED
6810 rm -f conftest.$ac_objext
6811 if { (eval echo "$as_me:6811: \"$ac_compile\"") >&5
6812 (eval $ac_compile) 2>&5
6814 echo "$as_me:6814: \$? = $ac_status" >&5
6815 (exit $ac_status); } &&
6816 { ac_try='test -s conftest.$ac_objext'
6817 { (eval echo "$as_me:6817: \"$ac_try\"") >&5
6820 echo "$as_me:6820: \$? = $ac_status" >&5
6821 (exit $ac_status); }; }; then
6824 echo "$as_me: failed program was:" >&5
6825 cat conftest.$ac_ext >&5
6828 rm -f conftest.$ac_objext conftest.$ac_ext
6829 echo "$as_me:6829: result: $cf_result" >&5
6830 echo "${ECHO_T}$cf_result" >&6
6832 if test "$cf_result" = yes ; then
6833 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
6834 elif test "x" != "x" ; then
6835 echo "$as_me:6835: checking checking for compatible value versus " >&5
6836 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
6837 cat >conftest.$ac_ext <<_ACEOF
6838 #line 6838 "configure"
6839 #include "confdefs.h"
6840 #include <sys/types.h>
6846 #if _XOPEN_SOURCE_EXTENDED- < 0
6853 rm -f conftest.$ac_objext
6854 if { (eval echo "$as_me:6854: \"$ac_compile\"") >&5
6855 (eval $ac_compile) 2>&5
6857 echo "$as_me:6857: \$? = $ac_status" >&5
6858 (exit $ac_status); } &&
6859 { ac_try='test -s conftest.$ac_objext'
6860 { (eval echo "$as_me:6860: \"$ac_try\"") >&5
6863 echo "$as_me:6863: \$? = $ac_status" >&5
6864 (exit $ac_status); }; }; then
6867 echo "$as_me: failed program was:" >&5
6868 cat conftest.$ac_ext >&5
6871 rm -f conftest.$ac_objext conftest.$ac_ext
6872 echo "$as_me:6872: result: $cf_result" >&5
6873 echo "${ECHO_T}$cf_result" >&6
6874 if test "$cf_result" = no ; then
6875 # perhaps we can override it - try...
6876 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
6881 NCURSES_CH_T=cchar_t
6883 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc
6885 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6886 echo "$as_me:6886: checking for $ac_func" >&5
6887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6888 if eval "test \"\${$as_ac_var+set}\" = set"; then
6889 echo $ECHO_N "(cached) $ECHO_C" >&6
6891 cat >conftest.$ac_ext <<_ACEOF
6892 #line 6892 "configure"
6893 #include "confdefs.h"
6894 /* System header to define __stub macros and hopefully few prototypes,
6895 which can conflict with char $ac_func (); below. */
6897 /* Override any gcc2 internal prototype to avoid an error. */
6901 /* We use char because int might match the return type of a gcc2
6902 builtin and then its argument prototype would still apply. */
6909 /* The GNU C library defines this for functions which it implements
6910 to always fail with ENOSYS. Some functions are actually named
6911 something starting with __ and the normal name is an alias. */
6912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6922 rm -f conftest.$ac_objext conftest$ac_exeext
6923 if { (eval echo "$as_me:6923: \"$ac_link\"") >&5
6924 (eval $ac_link) 2>&5
6926 echo "$as_me:6926: \$? = $ac_status" >&5
6927 (exit $ac_status); } &&
6928 { ac_try='test -s conftest$ac_exeext'
6929 { (eval echo "$as_me:6929: \"$ac_try\"") >&5
6932 echo "$as_me:6932: \$? = $ac_status" >&5
6933 (exit $ac_status); }; }; then
6934 eval "$as_ac_var=yes"
6936 echo "$as_me: failed program was:" >&5
6937 cat conftest.$ac_ext >&5
6938 eval "$as_ac_var=no"
6940 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6942 echo "$as_me:6942: result: `eval echo '${'$as_ac_var'}'`" >&5
6943 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6944 if test `eval echo '${'$as_ac_var'}'` = yes; then
6945 cat >>confdefs.h <<EOF
6946 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6952 if test "$ac_cv_func_putwc" != yes ; then
6954 echo "$as_me:6954: checking for putwc in libutf8" >&5
6955 echo $ECHO_N "checking for putwc in libutf8... $ECHO_C" >&6
6956 if test "${cf_cv_libutf8+set}" = set; then
6957 echo $ECHO_N "(cached) $ECHO_C" >&6
6960 cf_save_LIBS="$LIBS"
6962 cat >conftest.$ac_ext <<_ACEOF
6963 #line 6963 "configure"
6964 #include "confdefs.h"
6966 #include <libutf8.h>
6975 rm -f conftest.$ac_objext conftest$ac_exeext
6976 if { (eval echo "$as_me:6976: \"$ac_link\"") >&5
6977 (eval $ac_link) 2>&5
6979 echo "$as_me:6979: \$? = $ac_status" >&5
6980 (exit $ac_status); } &&
6981 { ac_try='test -s conftest$ac_exeext'
6982 { (eval echo "$as_me:6982: \"$ac_try\"") >&5
6985 echo "$as_me:6985: \$? = $ac_status" >&5
6986 (exit $ac_status); }; }; then
6989 echo "$as_me: failed program was:" >&5
6990 cat conftest.$ac_ext >&5
6993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6994 LIBS="$cf_save_LIBS"
6997 echo "$as_me:6997: result: $cf_cv_libutf8" >&5
6998 echo "${ECHO_T}$cf_cv_libutf8" >&6
7000 if test "$cf_cv_libutf8" = yes ; then
7001 cat >>confdefs.h <<\EOF
7002 #define HAVE_LIBUTF8_H 1
7008 if test "$cf_cv_libutf8" = yes ; then
7013 # This is needed on Tru64 5.0 to declare mbstate_t
7014 echo "$as_me:7014: checking if we must include wchar.h to declare mbstate_t" >&5
7015 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
7016 if test "${cf_cv_mbstate_t+set}" = set; then
7017 echo $ECHO_N "(cached) $ECHO_C" >&6
7020 cat >conftest.$ac_ext <<_ACEOF
7021 #line 7021 "configure"
7022 #include "confdefs.h"
7027 #ifdef HAVE_LIBUTF8_H
7028 #include <libutf8.h>
7038 rm -f conftest.$ac_objext
7039 if { (eval echo "$as_me:7039: \"$ac_compile\"") >&5
7040 (eval $ac_compile) 2>&5
7042 echo "$as_me:7042: \$? = $ac_status" >&5
7043 (exit $ac_status); } &&
7044 { ac_try='test -s conftest.$ac_objext'
7045 { (eval echo "$as_me:7045: \"$ac_try\"") >&5
7048 echo "$as_me:7048: \$? = $ac_status" >&5
7049 (exit $ac_status); }; }; then
7052 echo "$as_me: failed program was:" >&5
7053 cat conftest.$ac_ext >&5
7054 cat >conftest.$ac_ext <<_ACEOF
7055 #line 7055 "configure"
7056 #include "confdefs.h"
7062 #ifdef HAVE_LIBUTF8_H
7063 #include <libutf8.h>
7073 rm -f conftest.$ac_objext
7074 if { (eval echo "$as_me:7074: \"$ac_compile\"") >&5
7075 (eval $ac_compile) 2>&5
7077 echo "$as_me:7077: \$? = $ac_status" >&5
7078 (exit $ac_status); } &&
7079 { ac_try='test -s conftest.$ac_objext'
7080 { (eval echo "$as_me:7080: \"$ac_try\"") >&5
7083 echo "$as_me:7083: \$? = $ac_status" >&5
7084 (exit $ac_status); }; }; then
7087 echo "$as_me: failed program was:" >&5
7088 cat conftest.$ac_ext >&5
7089 cf_cv_mbstate_t=unknown
7091 rm -f conftest.$ac_objext conftest.$ac_ext
7093 rm -f conftest.$ac_objext conftest.$ac_ext
7095 echo "$as_me:7095: result: $cf_cv_mbstate_t" >&5
7096 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
7098 if test "$cf_cv_mbstate_t" = yes ; then
7099 cat >>confdefs.h <<\EOF
7100 #define NEED_WCHAR_H 1
7106 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
7107 if test "$cf_cv_mbstate_t" = unknown ; then
7111 # This is needed on Tru64 5.0 to declare wchar_t
7112 echo "$as_me:7112: checking if we must include wchar.h to declare wchar_t" >&5
7113 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
7114 if test "${cf_cv_wchar_t+set}" = set; then
7115 echo $ECHO_N "(cached) $ECHO_C" >&6
7118 cat >conftest.$ac_ext <<_ACEOF
7119 #line 7119 "configure"
7120 #include "confdefs.h"
7125 #ifdef HAVE_LIBUTF8_H
7126 #include <libutf8.h>
7136 rm -f conftest.$ac_objext
7137 if { (eval echo "$as_me:7137: \"$ac_compile\"") >&5
7138 (eval $ac_compile) 2>&5
7140 echo "$as_me:7140: \$? = $ac_status" >&5
7141 (exit $ac_status); } &&
7142 { ac_try='test -s conftest.$ac_objext'
7143 { (eval echo "$as_me:7143: \"$ac_try\"") >&5
7146 echo "$as_me:7146: \$? = $ac_status" >&5
7147 (exit $ac_status); }; }; then
7150 echo "$as_me: failed program was:" >&5
7151 cat conftest.$ac_ext >&5
7152 cat >conftest.$ac_ext <<_ACEOF
7153 #line 7153 "configure"
7154 #include "confdefs.h"
7160 #ifdef HAVE_LIBUTF8_H
7161 #include <libutf8.h>
7171 rm -f conftest.$ac_objext
7172 if { (eval echo "$as_me:7172: \"$ac_compile\"") >&5
7173 (eval $ac_compile) 2>&5
7175 echo "$as_me:7175: \$? = $ac_status" >&5
7176 (exit $ac_status); } &&
7177 { ac_try='test -s conftest.$ac_objext'
7178 { (eval echo "$as_me:7178: \"$ac_try\"") >&5
7181 echo "$as_me:7181: \$? = $ac_status" >&5
7182 (exit $ac_status); }; }; then
7185 echo "$as_me: failed program was:" >&5
7186 cat conftest.$ac_ext >&5
7187 cf_cv_wchar_t=unknown
7189 rm -f conftest.$ac_objext conftest.$ac_ext
7191 rm -f conftest.$ac_objext conftest.$ac_ext
7193 echo "$as_me:7193: result: $cf_cv_wchar_t" >&5
7194 echo "${ECHO_T}$cf_cv_wchar_t" >&6
7196 if test "$cf_cv_wchar_t" = yes ; then
7197 cat >>confdefs.h <<\EOF
7198 #define NEED_WCHAR_H 1
7204 # if we do not find wchar_t in either place, use substitution to provide a fallback.
7205 if test "$cf_cv_wchar_t" = unknown ; then
7209 # if we find wchar_t in either place, use substitution to provide a fallback.
7210 if test "$cf_cv_wchar_t" != unknown ; then
7211 NCURSES_OK_WCHAR_T=1
7214 # This is needed on Tru64 5.0 to declare wint_t
7215 echo "$as_me:7215: checking if we must include wchar.h to declare wint_t" >&5
7216 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
7217 if test "${cf_cv_wint_t+set}" = set; then
7218 echo $ECHO_N "(cached) $ECHO_C" >&6
7221 cat >conftest.$ac_ext <<_ACEOF
7222 #line 7222 "configure"
7223 #include "confdefs.h"
7228 #ifdef HAVE_LIBUTF8_H
7229 #include <libutf8.h>
7239 rm -f conftest.$ac_objext
7240 if { (eval echo "$as_me:7240: \"$ac_compile\"") >&5
7241 (eval $ac_compile) 2>&5
7243 echo "$as_me:7243: \$? = $ac_status" >&5
7244 (exit $ac_status); } &&
7245 { ac_try='test -s conftest.$ac_objext'
7246 { (eval echo "$as_me:7246: \"$ac_try\"") >&5
7249 echo "$as_me:7249: \$? = $ac_status" >&5
7250 (exit $ac_status); }; }; then
7253 echo "$as_me: failed program was:" >&5
7254 cat conftest.$ac_ext >&5
7255 cat >conftest.$ac_ext <<_ACEOF
7256 #line 7256 "configure"
7257 #include "confdefs.h"
7263 #ifdef HAVE_LIBUTF8_H
7264 #include <libutf8.h>
7274 rm -f conftest.$ac_objext
7275 if { (eval echo "$as_me:7275: \"$ac_compile\"") >&5
7276 (eval $ac_compile) 2>&5
7278 echo "$as_me:7278: \$? = $ac_status" >&5
7279 (exit $ac_status); } &&
7280 { ac_try='test -s conftest.$ac_objext'
7281 { (eval echo "$as_me:7281: \"$ac_try\"") >&5
7284 echo "$as_me:7284: \$? = $ac_status" >&5
7285 (exit $ac_status); }; }; then
7288 echo "$as_me: failed program was:" >&5
7289 cat conftest.$ac_ext >&5
7290 cf_cv_wint_t=unknown
7292 rm -f conftest.$ac_objext conftest.$ac_ext
7294 rm -f conftest.$ac_objext conftest.$ac_ext
7296 echo "$as_me:7296: result: $cf_cv_wint_t" >&5
7297 echo "${ECHO_T}$cf_cv_wint_t" >&6
7299 if test "$cf_cv_wint_t" = yes ; then
7300 cat >>confdefs.h <<\EOF
7301 #define NEED_WCHAR_H 1
7307 # if we do not find wint_t in either place, use substitution to provide a fallback.
7308 if test "$cf_cv_wint_t" = unknown ; then
7312 # if we find wint_t in either place, use substitution to provide a fallback.
7313 if test "$cf_cv_wint_t" != unknown ; then
7317 if test "$NCURSES_MBSTATE_T" != 0; then
7318 cat >>confdefs.h <<\EOF
7319 #define NEED_MBSTATE_T_DEF 1
7325 ### use option --disable-lp64 to allow long chtype
7326 case $cf_cv_abi_version in
7328 default_with_lp64=no
7331 default_with_lp64=yes
7335 echo "$as_me:7335: checking whether to enable _LP64 definition in curses.h" >&5
7336 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
7338 # Check whether --enable-lp64 or --disable-lp64 was given.
7339 if test "${enable_lp64+set}" = set; then
7340 enableval="$enable_lp64"
7341 with_lp64=$enableval
7343 with_lp64=$default_with_lp64
7345 echo "$as_me:7345: result: $with_lp64" >&5
7346 echo "${ECHO_T}$with_lp64" >&6
7348 if test "$with_lp64" = yes ; then
7354 # Check whether --enable-largefile or --disable-largefile was given.
7355 if test "${enable_largefile+set}" = set; then
7356 enableval="$enable_largefile"
7359 if test "$enable_largefile" != no; then
7361 echo "$as_me:7361: checking for special C compiler options needed for large files" >&5
7362 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
7363 if test "${ac_cv_sys_largefile_CC+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
7366 ac_cv_sys_largefile_CC=no
7367 if test "$GCC" != yes; then
7370 # IRIX 6.2 and later do not support large files by default,
7371 # so use the C compiler's -n32 option if that helps.
7372 cat >conftest.$ac_ext <<_ACEOF
7373 #line 7373 "configure"
7374 #include "confdefs.h"
7375 #include <sys/types.h>
7376 /* Check that off_t can represent 2**63 - 1 correctly.
7377 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7378 since some C++ compilers masquerading as C compilers
7379 incorrectly reject 9223372036854775807. */
7380 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7381 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7382 && LARGE_OFF_T % 2147483647 == 1)
7392 rm -f conftest.$ac_objext
7393 if { (eval echo "$as_me:7393: \"$ac_compile\"") >&5
7394 (eval $ac_compile) 2>&5
7396 echo "$as_me:7396: \$? = $ac_status" >&5
7397 (exit $ac_status); } &&
7398 { ac_try='test -s conftest.$ac_objext'
7399 { (eval echo "$as_me:7399: \"$ac_try\"") >&5
7402 echo "$as_me:7402: \$? = $ac_status" >&5
7403 (exit $ac_status); }; }; then
7406 echo "$as_me: failed program was:" >&5
7407 cat conftest.$ac_ext >&5
7409 rm -f conftest.$ac_objext
7411 rm -f conftest.$ac_objext
7412 if { (eval echo "$as_me:7412: \"$ac_compile\"") >&5
7413 (eval $ac_compile) 2>&5
7415 echo "$as_me:7415: \$? = $ac_status" >&5
7416 (exit $ac_status); } &&
7417 { ac_try='test -s conftest.$ac_objext'
7418 { (eval echo "$as_me:7418: \"$ac_try\"") >&5
7421 echo "$as_me:7421: \$? = $ac_status" >&5
7422 (exit $ac_status); }; }; then
7423 ac_cv_sys_largefile_CC=' -n32'; break
7425 echo "$as_me: failed program was:" >&5
7426 cat conftest.$ac_ext >&5
7428 rm -f conftest.$ac_objext
7432 rm -f conftest.$ac_ext
7435 echo "$as_me:7435: result: $ac_cv_sys_largefile_CC" >&5
7436 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
7437 if test "$ac_cv_sys_largefile_CC" != no; then
7438 CC=$CC$ac_cv_sys_largefile_CC
7441 echo "$as_me:7441: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7442 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
7443 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7444 echo $ECHO_N "(cached) $ECHO_C" >&6
7447 ac_cv_sys_file_offset_bits=no
7448 cat >conftest.$ac_ext <<_ACEOF
7449 #line 7449 "configure"
7450 #include "confdefs.h"
7451 #include <sys/types.h>
7452 /* Check that off_t can represent 2**63 - 1 correctly.
7453 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7454 since some C++ compilers masquerading as C compilers
7455 incorrectly reject 9223372036854775807. */
7456 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7457 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7458 && LARGE_OFF_T % 2147483647 == 1)
7468 rm -f conftest.$ac_objext
7469 if { (eval echo "$as_me:7469: \"$ac_compile\"") >&5
7470 (eval $ac_compile) 2>&5
7472 echo "$as_me:7472: \$? = $ac_status" >&5
7473 (exit $ac_status); } &&
7474 { ac_try='test -s conftest.$ac_objext'
7475 { (eval echo "$as_me:7475: \"$ac_try\"") >&5
7478 echo "$as_me:7478: \$? = $ac_status" >&5
7479 (exit $ac_status); }; }; then
7482 echo "$as_me: failed program was:" >&5
7483 cat conftest.$ac_ext >&5
7485 rm -f conftest.$ac_objext conftest.$ac_ext
7486 cat >conftest.$ac_ext <<_ACEOF
7487 #line 7487 "configure"
7488 #include "confdefs.h"
7489 #define _FILE_OFFSET_BITS 64
7490 #include <sys/types.h>
7491 /* Check that off_t can represent 2**63 - 1 correctly.
7492 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7493 since some C++ compilers masquerading as C compilers
7494 incorrectly reject 9223372036854775807. */
7495 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7496 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7497 && LARGE_OFF_T % 2147483647 == 1)
7507 rm -f conftest.$ac_objext
7508 if { (eval echo "$as_me:7508: \"$ac_compile\"") >&5
7509 (eval $ac_compile) 2>&5
7511 echo "$as_me:7511: \$? = $ac_status" >&5
7512 (exit $ac_status); } &&
7513 { ac_try='test -s conftest.$ac_objext'
7514 { (eval echo "$as_me:7514: \"$ac_try\"") >&5
7517 echo "$as_me:7517: \$? = $ac_status" >&5
7518 (exit $ac_status); }; }; then
7519 ac_cv_sys_file_offset_bits=64; break
7521 echo "$as_me: failed program was:" >&5
7522 cat conftest.$ac_ext >&5
7524 rm -f conftest.$ac_objext conftest.$ac_ext
7528 echo "$as_me:7528: result: $ac_cv_sys_file_offset_bits" >&5
7529 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7530 if test "$ac_cv_sys_file_offset_bits" != no; then
7532 cat >>confdefs.h <<EOF
7533 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7538 echo "$as_me:7538: checking for _LARGE_FILES value needed for large files" >&5
7539 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
7540 if test "${ac_cv_sys_large_files+set}" = set; then
7541 echo $ECHO_N "(cached) $ECHO_C" >&6
7544 ac_cv_sys_large_files=no
7545 cat >conftest.$ac_ext <<_ACEOF
7546 #line 7546 "configure"
7547 #include "confdefs.h"
7548 #include <sys/types.h>
7549 /* Check that off_t can represent 2**63 - 1 correctly.
7550 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7551 since some C++ compilers masquerading as C compilers
7552 incorrectly reject 9223372036854775807. */
7553 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7554 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7555 && LARGE_OFF_T % 2147483647 == 1)
7565 rm -f conftest.$ac_objext
7566 if { (eval echo "$as_me:7566: \"$ac_compile\"") >&5
7567 (eval $ac_compile) 2>&5
7569 echo "$as_me:7569: \$? = $ac_status" >&5
7570 (exit $ac_status); } &&
7571 { ac_try='test -s conftest.$ac_objext'
7572 { (eval echo "$as_me:7572: \"$ac_try\"") >&5
7575 echo "$as_me:7575: \$? = $ac_status" >&5
7576 (exit $ac_status); }; }; then
7579 echo "$as_me: failed program was:" >&5
7580 cat conftest.$ac_ext >&5
7582 rm -f conftest.$ac_objext conftest.$ac_ext
7583 cat >conftest.$ac_ext <<_ACEOF
7584 #line 7584 "configure"
7585 #include "confdefs.h"
7586 #define _LARGE_FILES 1
7587 #include <sys/types.h>
7588 /* Check that off_t can represent 2**63 - 1 correctly.
7589 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7590 since some C++ compilers masquerading as C compilers
7591 incorrectly reject 9223372036854775807. */
7592 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7593 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7594 && LARGE_OFF_T % 2147483647 == 1)
7604 rm -f conftest.$ac_objext
7605 if { (eval echo "$as_me:7605: \"$ac_compile\"") >&5
7606 (eval $ac_compile) 2>&5
7608 echo "$as_me:7608: \$? = $ac_status" >&5
7609 (exit $ac_status); } &&
7610 { ac_try='test -s conftest.$ac_objext'
7611 { (eval echo "$as_me:7611: \"$ac_try\"") >&5
7614 echo "$as_me:7614: \$? = $ac_status" >&5
7615 (exit $ac_status); }; }; then
7616 ac_cv_sys_large_files=1; break
7618 echo "$as_me: failed program was:" >&5
7619 cat conftest.$ac_ext >&5
7621 rm -f conftest.$ac_objext conftest.$ac_ext
7625 echo "$as_me:7625: result: $ac_cv_sys_large_files" >&5
7626 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7627 if test "$ac_cv_sys_large_files" != no; then
7629 cat >>confdefs.h <<EOF
7630 #define _LARGE_FILES $ac_cv_sys_large_files
7637 if test "$enable_largefile" != no ; then
7638 echo "$as_me:7638: checking for _LARGEFILE_SOURCE value needed for large files" >&5
7639 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
7640 if test "${ac_cv_sys_largefile_source+set}" = set; then
7641 echo $ECHO_N "(cached) $ECHO_C" >&6
7644 ac_cv_sys_largefile_source=no
7645 cat >conftest.$ac_ext <<_ACEOF
7646 #line 7646 "configure"
7647 #include "confdefs.h"
7657 rm -f conftest.$ac_objext
7658 if { (eval echo "$as_me:7658: \"$ac_compile\"") >&5
7659 (eval $ac_compile) 2>&5
7661 echo "$as_me:7661: \$? = $ac_status" >&5
7662 (exit $ac_status); } &&
7663 { ac_try='test -s conftest.$ac_objext'
7664 { (eval echo "$as_me:7664: \"$ac_try\"") >&5
7667 echo "$as_me:7667: \$? = $ac_status" >&5
7668 (exit $ac_status); }; }; then
7671 echo "$as_me: failed program was:" >&5
7672 cat conftest.$ac_ext >&5
7674 rm -f conftest.$ac_objext conftest.$ac_ext
7675 cat >conftest.$ac_ext <<_ACEOF
7676 #line 7676 "configure"
7677 #include "confdefs.h"
7678 #define _LARGEFILE_SOURCE 1
7688 rm -f conftest.$ac_objext
7689 if { (eval echo "$as_me:7689: \"$ac_compile\"") >&5
7690 (eval $ac_compile) 2>&5
7692 echo "$as_me:7692: \$? = $ac_status" >&5
7693 (exit $ac_status); } &&
7694 { ac_try='test -s conftest.$ac_objext'
7695 { (eval echo "$as_me:7695: \"$ac_try\"") >&5
7698 echo "$as_me:7698: \$? = $ac_status" >&5
7699 (exit $ac_status); }; }; then
7700 ac_cv_sys_largefile_source=1; break
7702 echo "$as_me: failed program was:" >&5
7703 cat conftest.$ac_ext >&5
7705 rm -f conftest.$ac_objext conftest.$ac_ext
7709 echo "$as_me:7709: result: $ac_cv_sys_largefile_source" >&5
7710 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7711 if test "$ac_cv_sys_largefile_source" != no; then
7713 cat >>confdefs.h <<EOF
7714 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7720 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
7721 # in glibc 2.1.3, but that breaks too many other things.
7722 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
7723 echo "$as_me:7723: checking for fseeko" >&5
7724 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
7725 if test "${ac_cv_func_fseeko+set}" = set; then
7726 echo $ECHO_N "(cached) $ECHO_C" >&6
7728 cat >conftest.$ac_ext <<_ACEOF
7729 #line 7729 "configure"
7730 #include "confdefs.h"
7735 return fseeko && fseeko (stdin, 0, 0);
7740 rm -f conftest.$ac_objext conftest$ac_exeext
7741 if { (eval echo "$as_me:7741: \"$ac_link\"") >&5
7742 (eval $ac_link) 2>&5
7744 echo "$as_me:7744: \$? = $ac_status" >&5
7745 (exit $ac_status); } &&
7746 { ac_try='test -s conftest$ac_exeext'
7747 { (eval echo "$as_me:7747: \"$ac_try\"") >&5
7750 echo "$as_me:7750: \$? = $ac_status" >&5
7751 (exit $ac_status); }; }; then
7752 ac_cv_func_fseeko=yes
7754 echo "$as_me: failed program was:" >&5
7755 cat conftest.$ac_ext >&5
7756 ac_cv_func_fseeko=no
7758 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7760 echo "$as_me:7760: result: $ac_cv_func_fseeko" >&5
7761 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
7762 if test $ac_cv_func_fseeko = yes; then
7764 cat >>confdefs.h <<\EOF
7765 #define HAVE_FSEEKO 1
7770 # Normally we would collect these definitions in the config.h,
7771 # but (like _XOPEN_SOURCE), some environments rely on having these
7772 # defined before any of the system headers are included. Another
7773 # case comes up with C++, e.g., on AIX the compiler compiles the
7774 # header files by themselves before looking at the body files it is
7775 # told to compile. For ncurses, those header files do not include
7777 test "$ac_cv_sys_large_files" != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
7778 test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE "
7779 test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits "
7781 echo "$as_me:7781: checking whether to use struct dirent64" >&5
7782 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
7783 if test "${cf_cv_struct_dirent64+set}" = set; then
7784 echo $ECHO_N "(cached) $ECHO_C" >&6
7787 cat >conftest.$ac_ext <<_ACEOF
7788 #line 7788 "configure"
7789 #include "confdefs.h"
7791 #include <sys/types.h>
7798 /* if transitional largefile support is setup, this is true */
7799 extern struct dirent64 * readdir(DIR *);
7800 struct dirent64 *x = readdir((DIR *)0);
7801 struct dirent *y = readdir((DIR *)0);
7808 rm -f conftest.$ac_objext
7809 if { (eval echo "$as_me:7809: \"$ac_compile\"") >&5
7810 (eval $ac_compile) 2>&5
7812 echo "$as_me:7812: \$? = $ac_status" >&5
7813 (exit $ac_status); } &&
7814 { ac_try='test -s conftest.$ac_objext'
7815 { (eval echo "$as_me:7815: \"$ac_try\"") >&5
7818 echo "$as_me:7818: \$? = $ac_status" >&5
7819 (exit $ac_status); }; }; then
7820 cf_cv_struct_dirent64=yes
7822 echo "$as_me: failed program was:" >&5
7823 cat conftest.$ac_ext >&5
7824 cf_cv_struct_dirent64=no
7826 rm -f conftest.$ac_objext conftest.$ac_ext
7829 echo "$as_me:7829: result: $cf_cv_struct_dirent64" >&5
7830 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
7831 test "$cf_cv_struct_dirent64" = yes && cat >>confdefs.h <<\EOF
7832 #define HAVE_STRUCT_DIRENT64 1
7837 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
7838 echo "$as_me:7838: checking if you want tparm not to use X/Open fixed-parameter list" >&5
7839 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
7841 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
7842 if test "${enable_tparm_varargs+set}" = set; then
7843 enableval="$enable_tparm_varargs"
7844 with_tparm_varargs=$enableval
7846 with_tparm_varargs=yes
7848 echo "$as_me:7848: result: $with_tparm_varargs" >&5
7849 echo "${ECHO_T}$with_tparm_varargs" >&6
7850 NCURSES_TPARM_VARARGS=0
7851 test "$with_tparm_varargs" = yes && NCURSES_TPARM_VARARGS=1
7853 ### use option --with-bool to override bool's type
7854 echo "$as_me:7854: checking for type of bool" >&5
7855 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
7857 # Check whether --with-bool or --without-bool was given.
7858 if test "${with_bool+set}" = set; then
7859 withval="$with_bool"
7860 NCURSES_BOOL="$withval"
7864 echo "$as_me:7864: result: $NCURSES_BOOL" >&5
7865 echo "${ECHO_T}$NCURSES_BOOL" >&6
7867 echo "$as_me:7867: checking for alternate terminal capabilities file" >&5
7868 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
7870 # Check whether --with-caps or --without-caps was given.
7871 if test "${with_caps+set}" = set; then
7872 withval="$with_caps"
7873 TERMINFO_CAPS=Caps.$withval
7877 test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
7878 echo "$as_me:7878: result: $TERMINFO_CAPS" >&5
7879 echo "${ECHO_T}$TERMINFO_CAPS" >&6
7881 ### use option --with-chtype to override chtype's type
7882 echo "$as_me:7882: checking for type of chtype" >&5
7883 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
7885 # Check whether --with-chtype or --without-chtype was given.
7886 if test "${with_chtype+set}" = set; then
7887 withval="$with_chtype"
7888 NCURSES_CHTYPE="$withval"
7892 echo "$as_me:7892: result: $NCURSES_CHTYPE" >&5
7893 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
7895 ### use option --with-ospeed to override ospeed's type
7896 echo "$as_me:7896: checking for type of ospeed" >&5
7897 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
7899 # Check whether --with-ospeed or --without-ospeed was given.
7900 if test "${with_ospeed+set}" = set; then
7901 withval="$with_ospeed"
7902 NCURSES_OSPEED="$withval"
7904 NCURSES_OSPEED=short
7906 echo "$as_me:7906: result: $NCURSES_OSPEED" >&5
7907 echo "${ECHO_T}$NCURSES_OSPEED" >&6
7909 ### use option --with-mmask-t to override mmask_t's type
7910 echo "$as_me:7910: checking for type of mmask_t" >&5
7911 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
7913 # Check whether --with-mmask-t or --without-mmask-t was given.
7914 if test "${with_mmask_t+set}" = set; then
7915 withval="$with_mmask_t"
7916 NCURSES_MMASK_T="$withval"
7918 NCURSES_MMASK_T=auto
7920 echo "$as_me:7920: result: $NCURSES_MMASK_T" >&5
7921 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
7923 ### Enable compiling-in rcs id's
7924 echo "$as_me:7924: checking if RCS identifiers should be compiled-in" >&5
7925 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
7927 # Check whether --with-rcs-ids or --without-rcs-ids was given.
7928 if test "${with_rcs_ids+set}" = set; then
7929 withval="$with_rcs_ids"
7930 with_rcs_ids=$withval
7934 echo "$as_me:7934: result: $with_rcs_ids" >&5
7935 echo "${ECHO_T}$with_rcs_ids" >&6
7936 test "$with_rcs_ids" = yes && cat >>confdefs.h <<\EOF
7937 #define USE_RCS_IDS 1
7940 ###############################################################################
7942 echo "$as_me:7942: checking format of man-pages" >&5
7943 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
7945 # Check whether --with-manpage-format or --without-manpage-format was given.
7946 if test "${with_manpage_format+set}" = set; then
7947 withval="$with_manpage_format"
7948 MANPAGE_FORMAT=$withval
7950 MANPAGE_FORMAT=unknown
7953 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
7954 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
7958 case $MANPAGE_FORMAT in
7960 if test -z "$MANPATH" ; then
7961 MANPATH="/usr/man:/usr/share/man"
7964 # look for the 'date' man-page (it's most likely to be installed!)
7970 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATHSEP}"
7971 for cf_dir in $MANPATH; do
7972 test -z "$cf_dir" && cf_dir=/usr/man
7973 for cf_name in $cf_dir/man*/$cf_example.[01]* $cf_dir/cat*/$cf_example.[01]* $cf_dir/man*/$cf_example $cf_dir/cat*/$cf_example
7975 cf_test=`echo $cf_name | sed -e 's/*//'`
7976 if test "x$cf_test" = "x$cf_name" ; then
7979 *.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
7980 *.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
7981 *.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
7982 *) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
7996 # if we found a match in either man* or cat*, stop looking
7997 if test -n "$MANPAGE_FORMAT" ; then
7999 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
8000 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
8006 test $cf_found=yes && break
8009 # only check the first directory in $MANPATH where we find manpages
8010 if test -n "$MANPAGE_FORMAT" ; then
8014 # if we did not find the example, just assume it is normal
8015 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
8019 for cf_option in $MANPAGE_FORMAT; do
8020 case $cf_option in #(vi
8021 gzip|compress|BSDI|normal|formatted|catonly)
8024 cf_unknown="$cf_unknown $cf_option"
8031 echo "$as_me:8031: result: $MANPAGE_FORMAT" >&5
8032 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
8033 if test -n "$cf_unknown" ; then
8034 { echo "$as_me:8034: WARNING: Unexpected manpage-format $cf_unknown" >&5
8035 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
8038 echo "$as_me:8038: checking for manpage renaming" >&5
8039 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
8041 # Check whether --with-manpage-renames or --without-manpage-renames was given.
8042 if test "${with_manpage_renames+set}" = set; then
8043 withval="$with_manpage_renames"
8044 MANPAGE_RENAMES=$withval
8049 case ".$MANPAGE_RENAMES" in #(vi
8053 # Debian 'man' program?
8054 if test -f /etc/debian_version ; then
8055 MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
8062 if test "$MANPAGE_RENAMES" != no ; then
8063 if test -f $srcdir/man/$MANPAGE_RENAMES ; then
8064 MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
8065 elif test ! -f $MANPAGE_RENAMES ; then
8066 { { echo "$as_me:8066: error: not a filename: $MANPAGE_RENAMES" >&5
8067 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
8068 { (exit 1); exit 1; }; }
8071 test ! -d man && mkdir man
8073 # Construct a sed-script to perform renaming within man-pages
8074 if test -n "$MANPAGE_RENAMES" ; then
8075 test ! -d man && mkdir man
8076 sh $srcdir/man/make_sed.sh $MANPAGE_RENAMES >./edit_man.sed
8080 echo "$as_me:8080: result: $MANPAGE_RENAMES" >&5
8081 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
8083 echo "$as_me:8083: checking if manpage aliases will be installed" >&5
8084 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
8086 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
8087 if test "${with_manpage_aliases+set}" = set; then
8088 withval="$with_manpage_aliases"
8089 MANPAGE_ALIASES=$withval
8094 echo "$as_me:8094: result: $MANPAGE_ALIASES" >&5
8095 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
8097 if test "$LN_S" = "ln -s"; then
8104 if test "$MANPAGE_ALIASES" = yes ; then
8105 echo "$as_me:8105: checking if manpage symlinks should be used" >&5
8106 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
8108 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
8109 if test "${with_manpage_symlinks+set}" = set; then
8110 withval="$with_manpage_symlinks"
8111 MANPAGE_SYMLINKS=$withval
8113 MANPAGE_SYMLINKS=$cf_use_symlinks
8116 if test "$$cf_use_symlinks" = no; then
8117 if test "$MANPAGE_SYMLINKS" = yes ; then
8118 { echo "$as_me:8118: WARNING: cannot make symlinks" >&5
8119 echo "$as_me: WARNING: cannot make symlinks" >&2;}
8124 echo "$as_me:8124: result: $MANPAGE_SYMLINKS" >&5
8125 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
8128 echo "$as_me:8128: checking for manpage tbl" >&5
8129 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
8131 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
8132 if test "${with_manpage_tbl+set}" = set; then
8133 withval="$with_manpage_tbl"
8134 MANPAGE_TBL=$withval
8139 echo "$as_me:8139: result: $MANPAGE_TBL" >&5
8140 echo "${ECHO_T}$MANPAGE_TBL" >&6
8142 if test "$prefix" = "NONE" ; then
8143 cf_prefix="$ac_default_prefix"
8148 case "$MANPAGE_FORMAT" in # (vi
8163 test ! -d man && mkdir man
8167 case "$MANPAGE_FORMAT" in #(vi
8170 cf_compress=compress
8178 cf_edit_man=./edit_man.sh
8179 cf_man_alias=`pwd`/man_alias.sed
8181 cat >$cf_edit_man <<CF_EOF
8183 # this script is generated by the configure-script CF_MAN_PAGES macro.
8188 NCURSES_MAJOR="$NCURSES_MAJOR"
8189 NCURSES_MINOR="$NCURSES_MINOR"
8190 NCURSES_PATCH="$NCURSES_PATCH"
8192 NCURSES_OSPEED="$NCURSES_OSPEED"
8193 TERMINFO="$TERMINFO"
8195 MKDIRS="sh `cd $srcdir && pwd`/mkdirs.sh"
8198 INSTALL_DATA="$INSTALL_DATA"
8200 transform="$program_transform_name"
8202 TMP=\${TMPDIR-/tmp}/man\$\$
8203 trap "rm -f \$TMP" 0 1 2 5 15
8215 top_srcdir=\$srcdir/..
8218 if test "\$form" = normal ; then
8219 if test "$cf_format" = yes ; then
8220 if test "$cf_inboth" = no ; then
8221 sh \$0 format \$verb \$mandir \$srcdir \$*
8225 cf_subdir=\$mandir/man
8226 cf_tables=$MANPAGE_TBL
8228 cf_subdir=\$mandir/cat
8232 # process the list of source-files
8235 *.orig|*.rej) ;; #(vi
8237 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
8238 if test \$verb = installing ; then
8239 if test ! -d \$cf_subdir\${section} ; then
8240 \$MKDIRS \$cf_subdir\$section
8244 # replace variables in man page
8245 if test ! -f $cf_man_alias ; then
8246 cat >>$cf_man_alias <<-CF_EOF2
8247 s,@DATADIR@,\$datadir,g
8248 s,@TERMINFO@,\$TERMINFO,g
8249 s,@NCURSES_MAJOR@,\$NCURSES_MAJOR,g
8250 s,@NCURSES_MINOR@,\$NCURSES_MINOR,g
8251 s,@NCURSES_PATCH@,\$NCURSES_PATCH,g
8252 s,@NCURSES_OSPEED@,\$NCURSES_OSPEED,g
8255 for cf_name in captoinfo clear infocmp infotocap tic toe tput
8257 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
8258 cf_name=`echo $cf_name|sed "$program_transform_name"`
8259 cat >>$cf_edit_man <<-CF_EOF
8260 s,@$cf_NAME@,$cf_name,
8264 cat >>$cf_edit_man <<CF_EOF
8266 echo "...made $cf_man_alias"
8270 cf_source=\`basename \$i\`
8272 test ! -f \$inalias && inalias="\$srcdir/\$inalias"
8273 if test ! -f \$inalias ; then
8274 echo .. skipped \$cf_source
8279 if test "$MANPAGE_ALIASES" != no ; then
8280 cat >>$cf_edit_man <<CF_EOF
8281 aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u\`
8285 if test "$MANPAGE_RENAMES" = no ; then
8286 cat >>$cf_edit_man <<CF_EOF
8287 # perform program transformations for section 1 man pages
8288 if test \$section = 1 ; then
8289 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
8291 cf_target=\$cf_subdir\${section}/\$cf_source
8295 cat >>$cf_edit_man <<CF_EOF
8296 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
8297 if test -z "\$cf_target" ; then
8298 echo '? missing rename for '\$cf_source
8299 cf_target="\$cf_source"
8301 cf_target="\$cf_subdir\${section}/\${cf_target}"
8306 cat >>$cf_edit_man <<CF_EOF
8307 sed -f $cf_man_alias \\
8310 if test -f $MANPAGE_RENAMES ; then
8311 cat >>$cf_edit_man <<CF_EOF
8312 < \$i | sed -f `pwd`/edit_man.sed >\$TMP
8315 cat >>$cf_edit_man <<CF_EOF
8320 cat >>$cf_edit_man <<CF_EOF
8321 if test \$cf_tables = yes ; then
8322 tbl \$TMP >\$TMP.out
8327 if test $with_curses_h != yes ; then
8328 cat >>$cf_edit_man <<CF_EOF
8329 sed -e "/\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
8334 cat >>$cf_edit_man <<CF_EOF
8335 if test \$form = format ; then
8336 nroff -man \$TMP >\$TMP.out
8341 if test -n "$cf_compress" ; then
8342 cat >>$cf_edit_man <<CF_EOF
8343 if test \$verb = installing ; then
8344 if ( $cf_compress -f \$TMP )
8346 mv \$TMP.$cf_so_strip \$TMP
8349 cf_target="\$cf_target.$cf_so_strip"
8353 case "$MANPAGE_FORMAT" in #(vi
8355 cat >>$cf_edit_man <<CF_EOF
8356 if test \$form = format ; then
8357 # BSDI installs only .0 suffixes in the cat directories
8358 cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
8364 cat >>$cf_edit_man <<CF_EOF
8365 suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\`
8366 if test \$verb = installing ; then
8367 echo \$verb \$cf_target
8368 \$INSTALL_DATA \$TMP \$cf_target
8369 test -d \$cf_subdir\${section} &&
8370 test -n "\$aliases" && (
8371 cd \$cf_subdir\${section} && (
8372 cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
8373 test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
8374 cf_target=\`basename \$cf_target\`
8375 for cf_alias in \$aliases
8377 if test \$section = 1 ; then
8378 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
8381 if test "$MANPAGE_SYMLINKS" = yes ; then
8382 if test -f \$cf_alias\${suffix} ; then
8383 if ( cmp -s \$cf_target \$cf_alias\${suffix} )
8388 echo .. \$verb alias \$cf_alias\${suffix}
8389 rm -f \$cf_alias\${suffix}
8390 $LN_S \$cf_target \$cf_alias\${suffix}
8391 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
8392 echo ".so \$cf_source" >\$TMP
8394 if test -n "$cf_compress" ; then
8395 cat >>$cf_edit_man <<CF_EOF
8396 if test -n "$cf_so_strip" ; then
8397 $cf_compress -f \$TMP
8398 mv \$TMP.$cf_so_strip \$TMP
8402 cat >>$cf_edit_man <<CF_EOF
8403 echo .. \$verb alias \$cf_alias\${suffix}
8404 rm -f \$cf_alias\${suffix}
8405 \$INSTALL_DATA \$TMP \$cf_alias\${suffix}
8410 elif test \$verb = removing ; then
8411 test -f \$cf_target && (
8412 echo \$verb \$cf_target
8415 test -d \$cf_subdir\${section} &&
8416 test -n "\$aliases" && (
8417 cd \$cf_subdir\${section} && (
8418 for cf_alias in \$aliases
8420 if test \$section = 1 ; then
8421 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
8424 echo .. \$verb alias \$cf_alias\${suffix}
8425 rm -f \$cf_alias\${suffix}
8437 if test $cf_inboth = yes ; then
8438 if test \$form != format ; then
8439 sh \$0 format \$verb \$mandir \$srcdir \$*
8445 chmod 755 $cf_edit_man
8447 ###############################################################################
8449 ### Note that some functions (such as const) are normally disabled anyway.
8450 echo "$as_me:8450: checking if you want to build with function extensions" >&5
8451 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
8453 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
8454 if test "${enable_ext_funcs+set}" = set; then
8455 enableval="$enable_ext_funcs"
8456 with_ext_funcs=$enableval
8460 echo "$as_me:8460: result: $with_ext_funcs" >&5
8461 echo "${ECHO_T}$with_ext_funcs" >&6
8462 if test "$with_ext_funcs" = yes ; then
8464 cat >>confdefs.h <<\EOF
8465 #define HAVE_CURSES_VERSION 1
8468 cat >>confdefs.h <<\EOF
8469 #define HAVE_HAS_KEY 1
8472 cat >>confdefs.h <<\EOF
8473 #define HAVE_RESIZETERM 1
8476 cat >>confdefs.h <<\EOF
8477 #define HAVE_RESIZE_TERM 1
8480 cat >>confdefs.h <<\EOF
8481 #define HAVE_USE_DEFAULT_COLORS 1
8484 cat >>confdefs.h <<\EOF
8485 #define HAVE_WRESIZE 1
8488 cat >>confdefs.h <<\EOF
8489 #define NCURSES_EXT_FUNCS 1
8496 ### use option --enable-const to turn on use of const beyond that in XSI.
8497 echo "$as_me:8497: checking for extended use of const keyword" >&5
8498 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
8500 # Check whether --enable-const or --disable-const was given.
8501 if test "${enable_const+set}" = set; then
8502 enableval="$enable_const"
8503 with_ext_const=$enableval
8507 echo "$as_me:8507: result: $with_ext_const" >&5
8508 echo "${ECHO_T}$with_ext_const" >&6
8509 NCURSES_CONST='/*nothing*/'
8510 if test "$with_ext_const" = yes ; then
8514 ### use option --enable-ext-colors to turn on use of colors beyond 16.
8515 echo "$as_me:8515: checking if you want to use extended colors" >&5
8516 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
8518 # Check whether --enable-ext-colors or --disable-ext-colors was given.
8519 if test "${enable_ext_colors+set}" = set; then
8520 enableval="$enable_ext_colors"
8521 with_ext_colors=$enableval
8525 echo "$as_me:8525: result: $with_ext_colors" >&5
8526 echo "${ECHO_T}$with_ext_colors" >&6
8527 NCURSES_EXT_COLORS=0
8528 if test "$with_ext_colors" = yes ; then
8529 if test "$with_widec" != yes ; then
8530 { { echo "$as_me:8530: error: This option applies only to wide-character library" >&5
8531 echo "$as_me: error: This option applies only to wide-character library" >&2;}
8532 { (exit 1); exit 1; }; }
8534 # cannot be ABI 5 since it changes sizeof(cchar_t)
8536 if test "${with_abi_version+set}" != set; then
8537 case $cf_cv_rel_version in
8539 cf_cv_rel_version=6.0
8541 { echo "$as_me:8541: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
8542 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
8548 NCURSES_EXT_COLORS=1
8549 cat >>confdefs.h <<\EOF
8550 #define NCURSES_EXT_COLORS 1
8555 ### use option --enable-ext-mouse to modify coding to support 5-button mice
8556 echo "$as_me:8556: checking if you want to use extended mouse encoding" >&5
8557 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
8559 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
8560 if test "${enable_ext_mouse+set}" = set; then
8561 enableval="$enable_ext_mouse"
8562 with_ext_mouse=$enableval
8566 echo "$as_me:8566: result: $with_ext_mouse" >&5
8567 echo "${ECHO_T}$with_ext_mouse" >&6
8568 NCURSES_MOUSE_VERSION=1
8569 if test "$with_ext_mouse" = yes ; then
8570 NCURSES_MOUSE_VERSION=2
8572 if test "${with_abi_version+set}" != set; then
8573 case $cf_cv_rel_version in
8575 cf_cv_rel_version=6.0
8577 { echo "$as_me:8577: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
8578 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
8585 echo "$as_me:8585: checking if you want \$NCURSES_NO_PADDING code" >&5
8586 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
8588 # Check whether --enable-no-padding or --disable-no-padding was given.
8589 if test "${enable_no_padding+set}" = set; then
8590 enableval="$enable_no_padding"
8591 with_no_padding=$enableval
8593 with_no_padding=$with_ext_funcs
8595 echo "$as_me:8595: result: $with_no_padding" >&5
8596 echo "${ECHO_T}$with_no_padding" >&6
8597 test "$with_no_padding" = yes && cat >>confdefs.h <<\EOF
8598 #define NCURSES_NO_PADDING 1
8601 echo "$as_me:8601: checking for ANSI C header files" >&5
8602 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8603 if test "${ac_cv_header_stdc+set}" = set; then
8604 echo $ECHO_N "(cached) $ECHO_C" >&6
8606 cat >conftest.$ac_ext <<_ACEOF
8607 #line 8607 "configure"
8608 #include "confdefs.h"
8615 if { (eval echo "$as_me:8615: \"$ac_cpp conftest.$ac_ext\"") >&5
8616 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8618 egrep -v '^ *\+' conftest.er1 >conftest.err
8620 cat conftest.err >&5
8621 echo "$as_me:8621: \$? = $ac_status" >&5
8622 (exit $ac_status); } >/dev/null; then
8623 if test -s conftest.err; then
8624 ac_cpp_err=$ac_c_preproc_warn_flag
8631 if test -z "$ac_cpp_err"; then
8632 ac_cv_header_stdc=yes
8634 echo "$as_me: failed program was:" >&5
8635 cat conftest.$ac_ext >&5
8636 ac_cv_header_stdc=no
8638 rm -f conftest.err conftest.$ac_ext
8640 if test $ac_cv_header_stdc = yes; then
8641 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8642 cat >conftest.$ac_ext <<_ACEOF
8643 #line 8643 "configure"
8644 #include "confdefs.h"
8648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8649 egrep "memchr" >/dev/null 2>&1; then
8652 ac_cv_header_stdc=no
8658 if test $ac_cv_header_stdc = yes; then
8659 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8660 cat >conftest.$ac_ext <<_ACEOF
8661 #line 8661 "configure"
8662 #include "confdefs.h"
8666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8667 egrep "free" >/dev/null 2>&1; then
8670 ac_cv_header_stdc=no
8676 if test $ac_cv_header_stdc = yes; then
8677 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8678 if test "$cross_compiling" = yes; then
8681 cat >conftest.$ac_ext <<_ACEOF
8682 #line 8682 "configure"
8683 #include "confdefs.h"
8685 #if ((' ' & 0x0FF) == 0x020)
8686 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8687 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8689 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8690 || ('j' <= (c) && (c) <= 'r') \
8691 || ('s' <= (c) && (c) <= 'z'))
8692 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8695 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8700 for (i = 0; i < 256; i++)
8701 if (XOR (islower (i), ISLOWER (i))
8702 || toupper (i) != TOUPPER (i))
8704 $ac_main_return (0);
8707 rm -f conftest$ac_exeext
8708 if { (eval echo "$as_me:8708: \"$ac_link\"") >&5
8709 (eval $ac_link) 2>&5
8711 echo "$as_me:8711: \$? = $ac_status" >&5
8712 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8713 { (eval echo "$as_me:8713: \"$ac_try\"") >&5
8716 echo "$as_me:8716: \$? = $ac_status" >&5
8717 (exit $ac_status); }; }; then
8720 echo "$as_me: program exited with status $ac_status" >&5
8721 echo "$as_me: failed program was:" >&5
8722 cat conftest.$ac_ext >&5
8723 ac_cv_header_stdc=no
8725 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8729 echo "$as_me:8729: result: $ac_cv_header_stdc" >&5
8730 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8731 if test $ac_cv_header_stdc = yes; then
8733 cat >>confdefs.h <<\EOF
8734 #define STDC_HEADERS 1
8739 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8741 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8742 inttypes.h stdint.h unistd.h
8744 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8745 echo "$as_me:8745: checking for $ac_header" >&5
8746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8748 echo $ECHO_N "(cached) $ECHO_C" >&6
8750 cat >conftest.$ac_ext <<_ACEOF
8751 #line 8751 "configure"
8752 #include "confdefs.h"
8753 $ac_includes_default
8754 #include <$ac_header>
8756 rm -f conftest.$ac_objext
8757 if { (eval echo "$as_me:8757: \"$ac_compile\"") >&5
8758 (eval $ac_compile) 2>&5
8760 echo "$as_me:8760: \$? = $ac_status" >&5
8761 (exit $ac_status); } &&
8762 { ac_try='test -s conftest.$ac_objext'
8763 { (eval echo "$as_me:8763: \"$ac_try\"") >&5
8766 echo "$as_me:8766: \$? = $ac_status" >&5
8767 (exit $ac_status); }; }; then
8768 eval "$as_ac_Header=yes"
8770 echo "$as_me: failed program was:" >&5
8771 cat conftest.$ac_ext >&5
8772 eval "$as_ac_Header=no"
8774 rm -f conftest.$ac_objext conftest.$ac_ext
8776 echo "$as_me:8776: result: `eval echo '${'$as_ac_Header'}'`" >&5
8777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8778 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8779 cat >>confdefs.h <<EOF
8780 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8786 echo "$as_me:8786: checking for signed char" >&5
8787 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
8788 if test "${ac_cv_type_signed_char+set}" = set; then
8789 echo $ECHO_N "(cached) $ECHO_C" >&6
8791 cat >conftest.$ac_ext <<_ACEOF
8792 #line 8792 "configure"
8793 #include "confdefs.h"
8794 $ac_includes_default
8798 if ((signed char *) 0)
8800 if (sizeof (signed char))
8806 rm -f conftest.$ac_objext
8807 if { (eval echo "$as_me:8807: \"$ac_compile\"") >&5
8808 (eval $ac_compile) 2>&5
8810 echo "$as_me:8810: \$? = $ac_status" >&5
8811 (exit $ac_status); } &&
8812 { ac_try='test -s conftest.$ac_objext'
8813 { (eval echo "$as_me:8813: \"$ac_try\"") >&5
8816 echo "$as_me:8816: \$? = $ac_status" >&5
8817 (exit $ac_status); }; }; then
8818 ac_cv_type_signed_char=yes
8820 echo "$as_me: failed program was:" >&5
8821 cat conftest.$ac_ext >&5
8822 ac_cv_type_signed_char=no
8824 rm -f conftest.$ac_objext conftest.$ac_ext
8826 echo "$as_me:8826: result: $ac_cv_type_signed_char" >&5
8827 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
8829 echo "$as_me:8829: checking size of signed char" >&5
8830 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
8831 if test "${ac_cv_sizeof_signed_char+set}" = set; then
8832 echo $ECHO_N "(cached) $ECHO_C" >&6
8834 if test "$ac_cv_type_signed_char" = yes; then
8835 if test "$cross_compiling" = yes; then
8836 # Depending upon the size, compute the lo and hi bounds.
8837 cat >conftest.$ac_ext <<_ACEOF
8838 #line 8838 "configure"
8839 #include "confdefs.h"
8840 $ac_includes_default
8844 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
8849 rm -f conftest.$ac_objext
8850 if { (eval echo "$as_me:8850: \"$ac_compile\"") >&5
8851 (eval $ac_compile) 2>&5
8853 echo "$as_me:8853: \$? = $ac_status" >&5
8854 (exit $ac_status); } &&
8855 { ac_try='test -s conftest.$ac_objext'
8856 { (eval echo "$as_me:8856: \"$ac_try\"") >&5
8859 echo "$as_me:8859: \$? = $ac_status" >&5
8860 (exit $ac_status); }; }; then
8863 cat >conftest.$ac_ext <<_ACEOF
8864 #line 8864 "configure"
8865 #include "confdefs.h"
8866 $ac_includes_default
8870 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
8875 rm -f conftest.$ac_objext
8876 if { (eval echo "$as_me:8876: \"$ac_compile\"") >&5
8877 (eval $ac_compile) 2>&5
8879 echo "$as_me:8879: \$? = $ac_status" >&5
8880 (exit $ac_status); } &&
8881 { ac_try='test -s conftest.$ac_objext'
8882 { (eval echo "$as_me:8882: \"$ac_try\"") >&5
8885 echo "$as_me:8885: \$? = $ac_status" >&5
8886 (exit $ac_status); }; }; then
8887 ac_hi=$ac_mid; break
8889 echo "$as_me: failed program was:" >&5
8890 cat conftest.$ac_ext >&5
8891 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
8893 rm -f conftest.$ac_objext conftest.$ac_ext
8896 echo "$as_me: failed program was:" >&5
8897 cat conftest.$ac_ext >&5
8900 cat >conftest.$ac_ext <<_ACEOF
8901 #line 8901 "configure"
8902 #include "confdefs.h"
8903 $ac_includes_default
8907 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
8912 rm -f conftest.$ac_objext
8913 if { (eval echo "$as_me:8913: \"$ac_compile\"") >&5
8914 (eval $ac_compile) 2>&5
8916 echo "$as_me:8916: \$? = $ac_status" >&5
8917 (exit $ac_status); } &&
8918 { ac_try='test -s conftest.$ac_objext'
8919 { (eval echo "$as_me:8919: \"$ac_try\"") >&5
8922 echo "$as_me:8922: \$? = $ac_status" >&5
8923 (exit $ac_status); }; }; then
8924 ac_lo=$ac_mid; break
8926 echo "$as_me: failed program was:" >&5
8927 cat conftest.$ac_ext >&5
8928 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
8930 rm -f conftest.$ac_objext conftest.$ac_ext
8933 rm -f conftest.$ac_objext conftest.$ac_ext
8934 # Binary search between lo and hi bounds.
8935 while test "x$ac_lo" != "x$ac_hi"; do
8936 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8937 cat >conftest.$ac_ext <<_ACEOF
8938 #line 8938 "configure"
8939 #include "confdefs.h"
8940 $ac_includes_default
8944 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
8949 rm -f conftest.$ac_objext
8950 if { (eval echo "$as_me:8950: \"$ac_compile\"") >&5
8951 (eval $ac_compile) 2>&5
8953 echo "$as_me:8953: \$? = $ac_status" >&5
8954 (exit $ac_status); } &&
8955 { ac_try='test -s conftest.$ac_objext'
8956 { (eval echo "$as_me:8956: \"$ac_try\"") >&5
8959 echo "$as_me:8959: \$? = $ac_status" >&5
8960 (exit $ac_status); }; }; then
8963 echo "$as_me: failed program was:" >&5
8964 cat conftest.$ac_ext >&5
8965 ac_lo=`expr $ac_mid + 1`
8967 rm -f conftest.$ac_objext conftest.$ac_ext
8969 ac_cv_sizeof_signed_char=$ac_lo
8971 if test "$cross_compiling" = yes; then
8972 { { echo "$as_me:8972: error: cannot run test program while cross compiling" >&5
8973 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8974 { (exit 1); exit 1; }; }
8976 cat >conftest.$ac_ext <<_ACEOF
8977 #line 8977 "configure"
8978 #include "confdefs.h"
8979 $ac_includes_default
8983 FILE *f = fopen ("conftest.val", "w");
8985 $ac_main_return (1);
8986 fprintf (f, "%d", (sizeof (signed char)));
8992 rm -f conftest$ac_exeext
8993 if { (eval echo "$as_me:8993: \"$ac_link\"") >&5
8994 (eval $ac_link) 2>&5
8996 echo "$as_me:8996: \$? = $ac_status" >&5
8997 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8998 { (eval echo "$as_me:8998: \"$ac_try\"") >&5
9001 echo "$as_me:9001: \$? = $ac_status" >&5
9002 (exit $ac_status); }; }; then
9003 ac_cv_sizeof_signed_char=`cat conftest.val`
9005 echo "$as_me: program exited with status $ac_status" >&5
9006 echo "$as_me: failed program was:" >&5
9007 cat conftest.$ac_ext >&5
9009 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9014 ac_cv_sizeof_signed_char=0
9017 echo "$as_me:9017: result: $ac_cv_sizeof_signed_char" >&5
9018 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
9019 cat >>confdefs.h <<EOF
9020 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
9023 if test "$ac_cv_sizeof_signed_char" = 1 ; then
9024 NCURSES_SBOOL="signed char"
9026 NCURSES_SBOOL="char"
9028 echo "$as_me:9028: checking if you want to use signed Boolean array in term.h" >&5
9029 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
9031 # Check whether --enable-signed-char or --disable-signed-char was given.
9032 if test "${enable_signed_char+set}" = set; then
9033 enableval="$enable_signed_char"
9034 with_signed_char=$enableval
9038 echo "$as_me:9038: result: $with_signed_char" >&5
9039 echo "${ECHO_T}$with_signed_char" >&6
9040 test "$with_signed_char" != yes && NCURSES_SBOOL="char"
9042 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
9043 echo "$as_me:9043: checking if you want SIGWINCH handler" >&5
9044 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
9046 # Check whether --enable-sigwinch or --disable-sigwinch was given.
9047 if test "${enable_sigwinch+set}" = set; then
9048 enableval="$enable_sigwinch"
9049 with_sigwinch=$enableval
9051 with_sigwinch=$with_ext_funcs
9053 echo "$as_me:9053: result: $with_sigwinch" >&5
9054 echo "${ECHO_T}$with_sigwinch" >&6
9055 test "$with_sigwinch" = yes && cat >>confdefs.h <<\EOF
9056 #define USE_SIGWINCH 1
9059 ### use option --enable-tcap-names to allow user to define new capabilities
9060 echo "$as_me:9060: checking if you want user-definable terminal capabilities like termcap" >&5
9061 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
9063 # Check whether --enable-tcap-names or --disable-tcap-names was given.
9064 if test "${enable_tcap_names+set}" = set; then
9065 enableval="$enable_tcap_names"
9066 with_tcap_names=$enableval
9068 with_tcap_names=$with_ext_funcs
9070 echo "$as_me:9070: result: $with_tcap_names" >&5
9071 echo "${ECHO_T}$with_tcap_names" >&6
9073 test "$with_tcap_names" = yes && NCURSES_XNAMES=1
9075 ###############################################################################
9076 # These options are relatively safe to experiment with.
9078 echo "$as_me:9078: checking if you want all development code" >&5
9079 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
9081 # Check whether --with-develop or --without-develop was given.
9082 if test "${with_develop+set}" = set; then
9083 withval="$with_develop"
9084 with_develop=$withval
9088 echo "$as_me:9088: result: $with_develop" >&5
9089 echo "${ECHO_T}$with_develop" >&6
9091 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
9092 echo "$as_me:9092: checking if you want hard-tabs code" >&5
9093 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
9095 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
9096 if test "${enable_hard_tabs+set}" = set; then
9097 enableval="$enable_hard_tabs"
9100 enable_hard_tabs=$with_develop
9102 echo "$as_me:9102: result: $enable_hard_tabs" >&5
9103 echo "${ECHO_T}$enable_hard_tabs" >&6
9104 test "$enable_hard_tabs" = yes && cat >>confdefs.h <<\EOF
9105 #define USE_HARD_TABS 1
9108 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
9109 echo "$as_me:9109: checking if you want limited support for xmc" >&5
9110 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
9112 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
9113 if test "${enable_xmc_glitch+set}" = set; then
9114 enableval="$enable_xmc_glitch"
9117 enable_xmc_glitch=$with_develop
9119 echo "$as_me:9119: result: $enable_xmc_glitch" >&5
9120 echo "${ECHO_T}$enable_xmc_glitch" >&6
9121 test "$enable_xmc_glitch" = yes && cat >>confdefs.h <<\EOF
9122 #define USE_XMC_SUPPORT 1
9125 ###############################################################################
9126 # These are just experimental, probably should not be in a package:
9128 echo "$as_me:9128: checking if you do not want to assume colors are white-on-black" >&5
9129 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
9131 # Check whether --enable-assumed-color or --disable-assumed-color was given.
9132 if test "${enable_assumed_color+set}" = set; then
9133 enableval="$enable_assumed_color"
9134 with_assumed_color=$enableval
9136 with_assumed_color=yes
9138 echo "$as_me:9138: result: $with_assumed_color" >&5
9139 echo "${ECHO_T}$with_assumed_color" >&6
9140 test "$with_assumed_color" = yes && cat >>confdefs.h <<\EOF
9141 #define USE_ASSUMED_COLOR 1
9144 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
9145 echo "$as_me:9145: checking if you want hashmap scrolling-optimization code" >&5
9146 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
9148 # Check whether --enable-hashmap or --disable-hashmap was given.
9149 if test "${enable_hashmap+set}" = set; then
9150 enableval="$enable_hashmap"
9151 with_hashmap=$enableval
9155 echo "$as_me:9155: result: $with_hashmap" >&5
9156 echo "${ECHO_T}$with_hashmap" >&6
9157 test "$with_hashmap" = yes && cat >>confdefs.h <<\EOF
9158 #define USE_HASHMAP 1
9161 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
9162 echo "$as_me:9162: checking if you want colorfgbg code" >&5
9163 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
9165 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
9166 if test "${enable_colorfgbg+set}" = set; then
9167 enableval="$enable_colorfgbg"
9168 with_colorfgbg=$enableval
9172 echo "$as_me:9172: result: $with_colorfgbg" >&5
9173 echo "${ECHO_T}$with_colorfgbg" >&6
9174 test "$with_colorfgbg" = yes && cat >>confdefs.h <<\EOF
9175 #define USE_COLORFGBG 1
9178 # This is still experimental (20080329), but should ultimately be moved to
9179 # the script-block --with-normal, etc.
9181 echo "$as_me:9181: checking if you want to link with the pthread library" >&5
9182 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
9184 # Check whether --with-pthread or --without-pthread was given.
9185 if test "${with_pthread+set}" = set; then
9186 withval="$with_pthread"
9187 with_pthread=$withval
9191 echo "$as_me:9191: result: $with_pthread" >&5
9192 echo "${ECHO_T}$with_pthread" >&6
9194 if test "$with_pthread" != no ; then
9195 echo "$as_me:9195: checking for pthread.h" >&5
9196 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
9197 if test "${ac_cv_header_pthread_h+set}" = set; then
9198 echo $ECHO_N "(cached) $ECHO_C" >&6
9200 cat >conftest.$ac_ext <<_ACEOF
9201 #line 9201 "configure"
9202 #include "confdefs.h"
9203 #include <pthread.h>
9205 if { (eval echo "$as_me:9205: \"$ac_cpp conftest.$ac_ext\"") >&5
9206 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9208 egrep -v '^ *\+' conftest.er1 >conftest.err
9210 cat conftest.err >&5
9211 echo "$as_me:9211: \$? = $ac_status" >&5
9212 (exit $ac_status); } >/dev/null; then
9213 if test -s conftest.err; then
9214 ac_cpp_err=$ac_c_preproc_warn_flag
9221 if test -z "$ac_cpp_err"; then
9222 ac_cv_header_pthread_h=yes
9224 echo "$as_me: failed program was:" >&5
9225 cat conftest.$ac_ext >&5
9226 ac_cv_header_pthread_h=no
9228 rm -f conftest.err conftest.$ac_ext
9230 echo "$as_me:9230: result: $ac_cv_header_pthread_h" >&5
9231 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
9232 if test $ac_cv_header_pthread_h = yes; then
9234 cat >>confdefs.h <<\EOF
9235 #define HAVE_PTHREADS_H 1
9238 echo "$as_me:9238: checking if we can link with the pthread library" >&5
9239 echo $ECHO_N "checking if we can link with the pthread library... $ECHO_C" >&6
9240 cf_save_LIBS="$LIBS"
9241 LIBS="-lpthread $LIBS"
9242 cat >conftest.$ac_ext <<_ACEOF
9243 #line 9243 "configure"
9244 #include "confdefs.h"
9246 #include <pthread.h>
9252 int rc = pthread_create(0,0,0,0);
9258 rm -f conftest.$ac_objext conftest$ac_exeext
9259 if { (eval echo "$as_me:9259: \"$ac_link\"") >&5
9260 (eval $ac_link) 2>&5
9262 echo "$as_me:9262: \$? = $ac_status" >&5
9263 (exit $ac_status); } &&
9264 { ac_try='test -s conftest$ac_exeext'
9265 { (eval echo "$as_me:9265: \"$ac_try\"") >&5
9268 echo "$as_me:9268: \$? = $ac_status" >&5
9269 (exit $ac_status); }; }; then
9272 echo "$as_me: failed program was:" >&5
9273 cat conftest.$ac_ext >&5
9276 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9277 LIBS="$cf_save_LIBS"
9278 echo "$as_me:9278: result: $with_pthread" >&5
9279 echo "${ECHO_T}$with_pthread" >&6
9281 if test "$with_pthread" = yes ; then
9282 LIBS="-lpthread $LIBS"
9283 cat >>confdefs.h <<\EOF
9284 #define HAVE_LIBPTHREADS 1
9288 { { echo "$as_me:9288: error: Cannot link with pthread library" >&5
9289 echo "$as_me: error: Cannot link with pthread library" >&2;}
9290 { (exit 1); exit 1; }; }
9297 echo "$as_me:9297: checking if you want to use weak-symbols for pthreads" >&5
9298 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
9300 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
9301 if test "${enable_weak_symbols+set}" = set; then
9302 enableval="$enable_weak_symbols"
9303 use_weak_symbols=$withval
9307 echo "$as_me:9307: result: $use_weak_symbols" >&5
9308 echo "${ECHO_T}$use_weak_symbols" >&6
9309 if test "$use_weak_symbols" = yes ; then
9311 echo "$as_me:9311: checking if $CC supports weak symbols" >&5
9312 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
9313 if test "${cf_cv_weak_symbols+set}" = set; then
9314 echo $ECHO_N "(cached) $ECHO_C" >&6
9317 cat >conftest.$ac_ext <<_ACEOF
9318 #line 9318 "configure"
9319 #include "confdefs.h"
9326 #if defined(__GNUC__)
9327 # if defined __USE_ISOC99
9328 # define _cat_pragma(exp) _Pragma(#exp)
9329 # define _weak_pragma(exp) _cat_pragma(weak name)
9331 # define _weak_pragma(exp)
9333 # define _declare(name) __extension__ extern __typeof__(name) name
9334 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
9343 rm -f conftest.$ac_objext
9344 if { (eval echo "$as_me:9344: \"$ac_compile\"") >&5
9345 (eval $ac_compile) 2>&5
9347 echo "$as_me:9347: \$? = $ac_status" >&5
9348 (exit $ac_status); } &&
9349 { ac_try='test -s conftest.$ac_objext'
9350 { (eval echo "$as_me:9350: \"$ac_try\"") >&5
9353 echo "$as_me:9353: \$? = $ac_status" >&5
9354 (exit $ac_status); }; }; then
9355 cf_cv_weak_symbols=yes
9357 echo "$as_me: failed program was:" >&5
9358 cat conftest.$ac_ext >&5
9359 cf_cv_weak_symbols=no
9361 rm -f conftest.$ac_objext conftest.$ac_ext
9364 echo "$as_me:9364: result: $cf_cv_weak_symbols" >&5
9365 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
9368 cf_cv_weak_symbols=no
9371 if test $cf_cv_weak_symbols = yes ; then
9372 cat >>confdefs.h <<\EOF
9373 #define USE_WEAK_SYMBOLS 1
9379 if test "$with_pthread" = "yes" ; then
9380 cat >>confdefs.h <<\EOF
9381 #define USE_PTHREADS 1
9384 enable_reentrant=yes
9385 if test $cf_cv_weak_symbols = yes ; then
9390 # Reentrant code has to be opaque; there's little advantage to making ncurses
9391 # opaque outside of that, so there is no --enable-opaque option. We can use
9392 # this option without --with-pthreads, but this will be always set for
9394 echo "$as_me:9394: checking if you want experimental reentrant code" >&5
9395 echo $ECHO_N "checking if you want experimental reentrant code... $ECHO_C" >&6
9397 # Check whether --enable-reentrant or --disable-reentrant was given.
9398 if test "${enable_reentrant+set}" = set; then
9399 enableval="$enable_reentrant"
9400 with_reentrant=$enableval
9404 echo "$as_me:9404: result: $with_reentrant" >&5
9405 echo "${ECHO_T}$with_reentrant" >&6
9406 if test "$with_reentrant" = yes ; then
9407 cf_cv_enable_reentrant=1
9408 cf_cv_enable_opaque="NCURSES_INTERNALS"
9411 if test $cf_cv_weak_symbols = yes ; then
9413 # remove pthread library from $LIBS
9414 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
9417 LIB_SUFFIX="t${LIB_SUFFIX}"
9419 cat >>confdefs.h <<\EOF
9420 #define USE_REENTRANT 1
9423 if test "${with_abi_version+set}" != set; then
9424 case $cf_cv_rel_version in
9426 cf_cv_rel_version=6.0
9428 { echo "$as_me:9428: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
9429 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
9435 cf_cv_enable_reentrant=0
9436 cf_cv_enable_opaque="NCURSES_OPAQUE"
9438 NCURSES_SIZE_T=short
9441 echo "$as_me:9441: checking if you want experimental safe-sprintf code" >&5
9442 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
9444 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
9445 if test "${enable_safe_sprintf+set}" = set; then
9446 enableval="$enable_safe_sprintf"
9447 with_safe_sprintf=$enableval
9449 with_safe_sprintf=no
9451 echo "$as_me:9451: result: $with_safe_sprintf" >&5
9452 echo "${ECHO_T}$with_safe_sprintf" >&6
9453 test "$with_safe_sprintf" = yes && cat >>confdefs.h <<\EOF
9454 #define USE_SAFE_SPRINTF 1
9457 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
9458 # when hashmap is used scroll hints are useless
9459 if test "$with_hashmap" = no ; then
9460 echo "$as_me:9460: checking if you want to experiment without scrolling-hints code" >&5
9461 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
9463 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
9464 if test "${enable_scroll_hints+set}" = set; then
9465 enableval="$enable_scroll_hints"
9466 with_scroll_hints=$enableval
9468 with_scroll_hints=yes
9470 echo "$as_me:9470: result: $with_scroll_hints" >&5
9471 echo "${ECHO_T}$with_scroll_hints" >&6
9472 test "$with_scroll_hints" = yes && cat >>confdefs.h <<\EOF
9473 #define USE_SCROLL_HINTS 1
9478 echo "$as_me:9478: checking if you want experimental wgetch-events code" >&5
9479 echo $ECHO_N "checking if you want experimental wgetch-events code... $ECHO_C" >&6
9481 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
9482 if test "${enable_wgetch_events+set}" = set; then
9483 enableval="$enable_wgetch_events"
9484 with_wgetch_events=$enableval
9486 with_wgetch_events=no
9488 echo "$as_me:9488: result: $with_wgetch_events" >&5
9489 echo "${ECHO_T}$with_wgetch_events" >&6
9490 test "$with_wgetch_events" = yes && cat >>confdefs.h <<\EOF
9491 #define NCURSES_WGETCH_EVENTS 1
9494 ###############################################################################
9496 ### use option --disable-echo to suppress full display compiling commands
9497 echo "$as_me:9497: checking if you want to display full commands during build" >&5
9498 echo $ECHO_N "checking if you want to display full commands during build... $ECHO_C" >&6
9500 # Check whether --enable-echo or --disable-echo was given.
9501 if test "${enable_echo+set}" = set; then
9502 enableval="$enable_echo"
9503 with_echo=$enableval
9507 if test "$with_echo" = yes; then
9510 ECHO_LINK='@ echo linking $@ ... ;'
9511 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
9512 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
9514 echo "$as_me:9514: result: $with_echo" >&5
9515 echo "${ECHO_T}$with_echo" >&6
9517 ### use option --enable-warnings to turn on all gcc warnings
9518 echo "$as_me:9518: checking if you want to see compiler warnings" >&5
9519 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
9521 # Check whether --enable-warnings or --disable-warnings was given.
9522 if test "${enable_warnings+set}" = set; then
9523 enableval="$enable_warnings"
9524 with_warnings=$enableval
9526 echo "$as_me:9526: result: $with_warnings" >&5
9527 echo "${ECHO_T}$with_warnings" >&6
9529 if test "x$with_warnings" = "xyes"; then
9530 ADAFLAGS="$ADAFLAGS -gnatg"
9534 if test "$GCC" = yes ; then
9537 echo "$as_me:9537: checking if this is really Intel C compiler" >&5
9538 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
9539 cf_save_CFLAGS="$CFLAGS"
9540 CFLAGS="$CFLAGS -no-gcc"
9541 cat >conftest.$ac_ext <<_ACEOF
9542 #line 9542 "configure"
9543 #include "confdefs.h"
9549 #ifdef __INTEL_COMPILER
9558 rm -f conftest.$ac_objext
9559 if { (eval echo "$as_me:9559: \"$ac_compile\"") >&5
9560 (eval $ac_compile) 2>&5
9562 echo "$as_me:9562: \$? = $ac_status" >&5
9563 (exit $ac_status); } &&
9564 { ac_try='test -s conftest.$ac_objext'
9565 { (eval echo "$as_me:9565: \"$ac_try\"") >&5
9568 echo "$as_me:9568: \$? = $ac_status" >&5
9569 (exit $ac_status); }; }; then
9571 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
9574 echo "$as_me: failed program was:" >&5
9575 cat conftest.$ac_ext >&5
9577 rm -f conftest.$ac_objext conftest.$ac_ext
9578 CFLAGS="$cf_save_CFLAGS"
9579 echo "$as_me:9579: result: $INTEL_COMPILER" >&5
9580 echo "${ECHO_T}$INTEL_COMPILER" >&6
9585 cat > conftest.$ac_ext <<EOF
9586 #line 9586 "${as_me-configure}"
9587 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
9590 if test "$INTEL_COMPILER" = yes
9592 # The "-wdXXX" options suppress warnings:
9593 # remark #1419: external declaration in primary source file
9594 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
9595 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
9596 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
9597 # remark #193: zero used for undefined preprocessing identifier
9598 # remark #593: variable "curs_sb_left_arrow" was set but never used
9599 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
9600 # remark #869: parameter "tw" was never referenced
9601 # remark #981: operands are evaluated in unspecified order
9602 # warning #269: invalid format string conversion
9604 { echo "$as_me:9604: checking for $CC warning options..." >&5
9605 echo "$as_me: checking for $CC warning options..." >&6;}
9606 cf_save_CFLAGS="$CFLAGS"
9607 EXTRA_CFLAGS="-Wall"
9620 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
9621 if { (eval echo "$as_me:9621: \"$ac_compile\"") >&5
9622 (eval $ac_compile) 2>&5
9624 echo "$as_me:9624: \$? = $ac_status" >&5
9625 (exit $ac_status); }; then
9626 test -n "$verbose" && echo "$as_me:9626: result: ... -$cf_opt" >&5
9627 echo "${ECHO_T}... -$cf_opt" >&6
9628 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
9631 CFLAGS="$cf_save_CFLAGS"
9633 elif test "$GCC" = yes
9635 { echo "$as_me:9635: checking for $CC warning options..." >&5
9636 echo "$as_me: checking for $CC warning options..." >&6;}
9637 cf_save_CFLAGS="$CFLAGS"
9638 EXTRA_CFLAGS="-W -Wall"
9640 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
9642 Wbad-function-cast \
9646 Wmissing-declarations \
9647 Wmissing-prototypes \
9651 Wstrict-prototypes \
9652 Wundef $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum
9654 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
9655 if { (eval echo "$as_me:9655: \"$ac_compile\"") >&5
9656 (eval $ac_compile) 2>&5
9658 echo "$as_me:9658: \$? = $ac_status" >&5
9659 (exit $ac_status); }; then
9660 test -n "$verbose" && echo "$as_me:9660: result: ... -$cf_opt" >&5
9661 echo "${ECHO_T}... -$cf_opt" >&6
9662 case $cf_opt in #(vi
9664 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
9667 case $GCC_VERSION in
9669 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
9671 echo "${as_me-configure}:9671: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
9677 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
9680 CFLAGS="$cf_save_CFLAGS"
9684 if test "$cf_with_cxx" = yes ; then
9688 if test "$GCC" = yes ; then
9691 echo "$as_me:9691: checking if this is really Intel C++ compiler" >&5
9692 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
9693 cf_save_CFLAGS="$CXXFLAGS"
9694 CXXFLAGS="$CXXFLAGS -no-gcc"
9695 cat >conftest.$ac_ext <<_ACEOF
9696 #line 9696 "configure"
9697 #include "confdefs.h"
9703 #ifdef __INTEL_COMPILER
9712 rm -f conftest.$ac_objext
9713 if { (eval echo "$as_me:9713: \"$ac_compile\"") >&5
9714 (eval $ac_compile) 2>&5
9716 echo "$as_me:9716: \$? = $ac_status" >&5
9717 (exit $ac_status); } &&
9718 { ac_try='test -s conftest.$ac_objext'
9719 { (eval echo "$as_me:9719: \"$ac_try\"") >&5
9722 echo "$as_me:9722: \$? = $ac_status" >&5
9723 (exit $ac_status); }; }; then
9725 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
9728 echo "$as_me: failed program was:" >&5
9729 cat conftest.$ac_ext >&5
9731 rm -f conftest.$ac_objext conftest.$ac_ext
9732 CXXFLAGS="$cf_save_CFLAGS"
9733 echo "$as_me:9733: result: $INTEL_CPLUSPLUS" >&5
9734 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
9740 ac_cpp='$CXXCPP $CPPFLAGS'
9741 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9742 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9743 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9744 ac_main_return=return
9746 cat > conftest.$ac_ext <<EOF
9747 #line 9747 "configure"
9748 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
9751 if test "$INTEL_CPLUSPLUS" = yes
9753 # The "-wdXXX" options suppress warnings:
9754 # remark #1419: external declaration in primary source file
9755 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
9756 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
9757 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
9758 # remark #193: zero used for undefined preprocessing identifier
9759 # remark #593: variable "curs_sb_left_arrow" was set but never used
9760 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
9761 # remark #869: parameter "tw" was never referenced
9762 # remark #981: operands are evaluated in unspecified order
9763 # warning #269: invalid format string conversion
9765 { echo "$as_me:9765: checking for $CC warning options..." >&5
9766 echo "$as_me: checking for $CC warning options..." >&6;}
9767 cf_save_CXXFLAGS="$CXXFLAGS"
9768 EXTRA_CXXFLAGS="-Wall"
9781 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
9782 if { (eval echo "$as_me:9782: \"$ac_compile\"") >&5
9783 (eval $ac_compile) 2>&5
9785 echo "$as_me:9785: \$? = $ac_status" >&5
9786 (exit $ac_status); }; then
9787 test -n "$verbose" && echo "$as_me:9787: result: ... -$cf_opt" >&5
9788 echo "${ECHO_T}... -$cf_opt" >&6
9789 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
9792 CXXFLAGS="$cf_save_CXXFLAGS"
9794 elif test "$GXX" = yes
9796 { echo "$as_me:9796: checking for $CXX warning options..." >&5
9797 echo "$as_me: checking for $CXX warning options..." >&6;}
9798 cf_save_CXXFLAGS="$CXXFLAGS"
9799 EXTRA_CXXFLAGS="-W -Wall"
9800 cf_gxx_extra_warnings=""
9801 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
9802 case "$GCC_VERSION" in
9806 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
9812 Woverloaded-virtual \
9818 Wmissing-prototypes \
9821 Wstrict-prototypes \
9822 Wundef $cf_gxx_extra_warnings Wno-unused
9824 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
9825 if { (eval echo "$as_me:9825: \"$ac_compile\"") >&5
9826 (eval $ac_compile) 2>&5
9828 echo "$as_me:9828: \$? = $ac_status" >&5
9829 (exit $ac_status); }; then
9830 test -n "$verbose" && echo "$as_me:9830: result: ... -$cf_opt" >&5
9831 echo "${ECHO_T}... -$cf_opt" >&6
9832 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
9834 test -n "$verbose" && echo "$as_me:9834: result: ... no -$cf_opt" >&5
9835 echo "${ECHO_T}... no -$cf_opt" >&6
9838 CXXFLAGS="$cf_save_CXXFLAGS"
9843 ac_cpp='$CPP $CPPFLAGS'
9844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9847 ac_main_return=return
9852 if test "$GCC" = yes
9854 cat > conftest.i <<EOF
9856 #define GCC_PRINTF 0
9861 #ifndef GCC_NORETURN
9862 #define GCC_NORETURN /* nothing */
9865 #define GCC_UNUSED /* nothing */
9868 if test "$GCC" = yes
9870 { echo "$as_me:9870: checking for $CC __attribute__ directives..." >&5
9871 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
9872 cat > conftest.$ac_ext <<EOF
9873 #line 9873 "${as_me-configure}"
9874 #include "confdefs.h"
9875 #include "conftest.h"
9876 #include "conftest.i"
9878 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
9880 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
9883 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
9885 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
9887 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
9888 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
9889 extern void foo(void) GCC_NORETURN;
9890 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
9892 for cf_attribute in scanf printf unused noreturn
9895 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
9897 cf_directive="__attribute__(($cf_attribute))"
9898 echo "checking for $CC $cf_directive" 1>&5
9899 case $cf_attribute in
9901 cat >conftest.h <<EOF
9902 #define GCC_$cf_ATTRIBUTE 1
9906 cat >conftest.h <<EOF
9907 #define GCC_$cf_ATTRIBUTE $cf_directive
9911 if { (eval echo "$as_me:9911: \"$ac_compile\"") >&5
9912 (eval $ac_compile) 2>&5
9914 echo "$as_me:9914: \$? = $ac_status" >&5
9915 (exit $ac_status); }; then
9916 test -n "$verbose" && echo "$as_me:9916: result: ... $cf_attribute" >&5
9917 echo "${ECHO_T}... $cf_attribute" >&6
9918 cat conftest.h >>confdefs.h
9922 fgrep define conftest.i >>confdefs.h
9927 ### use option --enable-assertions to turn on generation of assertion code
9928 echo "$as_me:9928: checking if you want to enable runtime assertions" >&5
9929 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
9931 # Check whether --enable-assertions or --disable-assertions was given.
9932 if test "${enable_assertions+set}" = set; then
9933 enableval="$enable_assertions"
9934 with_assertions=$enableval
9938 echo "$as_me:9938: result: $with_assertions" >&5
9939 echo "${ECHO_T}$with_assertions" >&6
9942 if test "$with_assertions" = no
9944 cat >>confdefs.h <<\EOF
9948 CPPFLAGS="$CPPFLAGS -DNDEBUG"
9950 ADAFLAGS="$ADAFLAGS -gnata"
9954 ### use option --disable-leaks to suppress "permanent" leaks, for testing
9956 echo "$as_me:9956: checking if you want to use dmalloc for testing" >&5
9957 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
9959 # Check whether --with-dmalloc or --without-dmalloc was given.
9960 if test "${with_dmalloc+set}" = set; then
9961 withval="$with_dmalloc"
9962 cat >>confdefs.h <<\EOF
9963 #define USE_DMALLOC 1
9966 : ${with_cflags:=-g}
9967 : ${with_no_leaks:=yes}
9972 echo "$as_me:9972: result: ${with_dmalloc:-no}" >&5
9973 echo "${ECHO_T}${with_dmalloc:-no}" >&6
9975 case .$with_cflags in #(vi
9977 case .$CFLAGS in #(vi
9985 cf_new_extra_cppflags=
9987 for cf_add_cflags in -g
9989 case $cf_fix_cppflags in
9991 case $cf_add_cflags in #(vi
9992 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
9993 case $cf_add_cflags in
9995 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9997 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9998 && test -z "${cf_tst_cflags}" \
9999 && cf_fix_cppflags=yes
10001 if test $cf_fix_cppflags = yes ; then
10002 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10004 elif test "${cf_tst_cflags}" = "\"'" ; then
10005 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10010 case "$CPPFLAGS" in
10011 *$cf_add_cflags) #(vi
10014 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10019 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10024 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10026 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10028 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10029 && test -z "${cf_tst_cflags}" \
10030 && cf_fix_cppflags=no
10035 if test -n "$cf_new_cflags" ; then
10037 CFLAGS="$CFLAGS $cf_new_cflags"
10040 if test -n "$cf_new_cppflags" ; then
10042 CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
10045 if test -n "$cf_new_extra_cppflags" ; then
10047 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10055 if test "$with_dmalloc" = yes ; then
10056 echo "$as_me:10056: checking for dmalloc.h" >&5
10057 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
10058 if test "${ac_cv_header_dmalloc_h+set}" = set; then
10059 echo $ECHO_N "(cached) $ECHO_C" >&6
10061 cat >conftest.$ac_ext <<_ACEOF
10062 #line 10062 "configure"
10063 #include "confdefs.h"
10064 #include <dmalloc.h>
10066 if { (eval echo "$as_me:10066: \"$ac_cpp conftest.$ac_ext\"") >&5
10067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10069 egrep -v '^ *\+' conftest.er1 >conftest.err
10071 cat conftest.err >&5
10072 echo "$as_me:10072: \$? = $ac_status" >&5
10073 (exit $ac_status); } >/dev/null; then
10074 if test -s conftest.err; then
10075 ac_cpp_err=$ac_c_preproc_warn_flag
10082 if test -z "$ac_cpp_err"; then
10083 ac_cv_header_dmalloc_h=yes
10085 echo "$as_me: failed program was:" >&5
10086 cat conftest.$ac_ext >&5
10087 ac_cv_header_dmalloc_h=no
10089 rm -f conftest.err conftest.$ac_ext
10091 echo "$as_me:10091: result: $ac_cv_header_dmalloc_h" >&5
10092 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
10093 if test $ac_cv_header_dmalloc_h = yes; then
10095 echo "$as_me:10095: checking for dmalloc_debug in -ldmalloc" >&5
10096 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
10097 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
10098 echo $ECHO_N "(cached) $ECHO_C" >&6
10100 ac_check_lib_save_LIBS=$LIBS
10101 LIBS="-ldmalloc $LIBS"
10102 cat >conftest.$ac_ext <<_ACEOF
10103 #line 10103 "configure"
10104 #include "confdefs.h"
10106 /* Override any gcc2 internal prototype to avoid an error. */
10110 /* We use char because int might match the return type of a gcc2
10111 builtin and then its argument prototype would still apply. */
10112 char dmalloc_debug ();
10121 rm -f conftest.$ac_objext conftest$ac_exeext
10122 if { (eval echo "$as_me:10122: \"$ac_link\"") >&5
10123 (eval $ac_link) 2>&5
10125 echo "$as_me:10125: \$? = $ac_status" >&5
10126 (exit $ac_status); } &&
10127 { ac_try='test -s conftest$ac_exeext'
10128 { (eval echo "$as_me:10128: \"$ac_try\"") >&5
10129 (eval $ac_try) 2>&5
10131 echo "$as_me:10131: \$? = $ac_status" >&5
10132 (exit $ac_status); }; }; then
10133 ac_cv_lib_dmalloc_dmalloc_debug=yes
10135 echo "$as_me: failed program was:" >&5
10136 cat conftest.$ac_ext >&5
10137 ac_cv_lib_dmalloc_dmalloc_debug=no
10139 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10140 LIBS=$ac_check_lib_save_LIBS
10142 echo "$as_me:10142: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
10143 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
10144 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
10145 cat >>confdefs.h <<EOF
10146 #define HAVE_LIBDMALLOC 1
10149 LIBS="-ldmalloc $LIBS"
10157 echo "$as_me:10157: checking if you want to use dbmalloc for testing" >&5
10158 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
10160 # Check whether --with-dbmalloc or --without-dbmalloc was given.
10161 if test "${with_dbmalloc+set}" = set; then
10162 withval="$with_dbmalloc"
10163 cat >>confdefs.h <<\EOF
10164 #define USE_DBMALLOC 1
10167 : ${with_cflags:=-g}
10168 : ${with_no_leaks:=yes}
10173 echo "$as_me:10173: result: ${with_dbmalloc:-no}" >&5
10174 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
10176 case .$with_cflags in #(vi
10178 case .$CFLAGS in #(vi
10186 cf_new_extra_cppflags=
10188 for cf_add_cflags in -g
10190 case $cf_fix_cppflags in
10192 case $cf_add_cflags in #(vi
10193 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10194 case $cf_add_cflags in
10196 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10198 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10199 && test -z "${cf_tst_cflags}" \
10200 && cf_fix_cppflags=yes
10202 if test $cf_fix_cppflags = yes ; then
10203 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10205 elif test "${cf_tst_cflags}" = "\"'" ; then
10206 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10211 case "$CPPFLAGS" in
10212 *$cf_add_cflags) #(vi
10215 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10220 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10225 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10227 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10229 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10230 && test -z "${cf_tst_cflags}" \
10231 && cf_fix_cppflags=no
10236 if test -n "$cf_new_cflags" ; then
10238 CFLAGS="$CFLAGS $cf_new_cflags"
10241 if test -n "$cf_new_cppflags" ; then
10243 CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
10246 if test -n "$cf_new_extra_cppflags" ; then
10248 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10256 if test "$with_dbmalloc" = yes ; then
10257 echo "$as_me:10257: checking for dbmalloc.h" >&5
10258 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
10259 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
10260 echo $ECHO_N "(cached) $ECHO_C" >&6
10262 cat >conftest.$ac_ext <<_ACEOF
10263 #line 10263 "configure"
10264 #include "confdefs.h"
10265 #include <dbmalloc.h>
10267 if { (eval echo "$as_me:10267: \"$ac_cpp conftest.$ac_ext\"") >&5
10268 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10270 egrep -v '^ *\+' conftest.er1 >conftest.err
10272 cat conftest.err >&5
10273 echo "$as_me:10273: \$? = $ac_status" >&5
10274 (exit $ac_status); } >/dev/null; then
10275 if test -s conftest.err; then
10276 ac_cpp_err=$ac_c_preproc_warn_flag
10283 if test -z "$ac_cpp_err"; then
10284 ac_cv_header_dbmalloc_h=yes
10286 echo "$as_me: failed program was:" >&5
10287 cat conftest.$ac_ext >&5
10288 ac_cv_header_dbmalloc_h=no
10290 rm -f conftest.err conftest.$ac_ext
10292 echo "$as_me:10292: result: $ac_cv_header_dbmalloc_h" >&5
10293 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
10294 if test $ac_cv_header_dbmalloc_h = yes; then
10296 echo "$as_me:10296: checking for debug_malloc in -ldbmalloc" >&5
10297 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
10298 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
10299 echo $ECHO_N "(cached) $ECHO_C" >&6
10301 ac_check_lib_save_LIBS=$LIBS
10302 LIBS="-ldbmalloc $LIBS"
10303 cat >conftest.$ac_ext <<_ACEOF
10304 #line 10304 "configure"
10305 #include "confdefs.h"
10307 /* Override any gcc2 internal prototype to avoid an error. */
10311 /* We use char because int might match the return type of a gcc2
10312 builtin and then its argument prototype would still apply. */
10313 char debug_malloc ();
10322 rm -f conftest.$ac_objext conftest$ac_exeext
10323 if { (eval echo "$as_me:10323: \"$ac_link\"") >&5
10324 (eval $ac_link) 2>&5
10326 echo "$as_me:10326: \$? = $ac_status" >&5
10327 (exit $ac_status); } &&
10328 { ac_try='test -s conftest$ac_exeext'
10329 { (eval echo "$as_me:10329: \"$ac_try\"") >&5
10330 (eval $ac_try) 2>&5
10332 echo "$as_me:10332: \$? = $ac_status" >&5
10333 (exit $ac_status); }; }; then
10334 ac_cv_lib_dbmalloc_debug_malloc=yes
10336 echo "$as_me: failed program was:" >&5
10337 cat conftest.$ac_ext >&5
10338 ac_cv_lib_dbmalloc_debug_malloc=no
10340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10341 LIBS=$ac_check_lib_save_LIBS
10343 echo "$as_me:10343: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
10344 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
10345 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
10346 cat >>confdefs.h <<EOF
10347 #define HAVE_LIBDBMALLOC 1
10350 LIBS="-ldbmalloc $LIBS"
10358 echo "$as_me:10358: checking if you want to use valgrind for testing" >&5
10359 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
10361 # Check whether --with-valgrind or --without-valgrind was given.
10362 if test "${with_valgrind+set}" = set; then
10363 withval="$with_valgrind"
10364 cat >>confdefs.h <<\EOF
10365 #define USE_VALGRIND 1
10368 : ${with_cflags:=-g}
10369 : ${with_no_leaks:=yes}
10374 echo "$as_me:10374: result: ${with_valgrind:-no}" >&5
10375 echo "${ECHO_T}${with_valgrind:-no}" >&6
10377 case .$with_cflags in #(vi
10379 case .$CFLAGS in #(vi
10387 cf_new_extra_cppflags=
10389 for cf_add_cflags in -g
10391 case $cf_fix_cppflags in
10393 case $cf_add_cflags in #(vi
10394 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10395 case $cf_add_cflags in
10397 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10399 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10400 && test -z "${cf_tst_cflags}" \
10401 && cf_fix_cppflags=yes
10403 if test $cf_fix_cppflags = yes ; then
10404 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10406 elif test "${cf_tst_cflags}" = "\"'" ; then
10407 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10412 case "$CPPFLAGS" in
10413 *$cf_add_cflags) #(vi
10416 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10421 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10426 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10428 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10430 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10431 && test -z "${cf_tst_cflags}" \
10432 && cf_fix_cppflags=no
10437 if test -n "$cf_new_cflags" ; then
10439 CFLAGS="$CFLAGS $cf_new_cflags"
10442 if test -n "$cf_new_cppflags" ; then
10444 CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
10447 if test -n "$cf_new_extra_cppflags" ; then
10449 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10457 echo "$as_me:10457: checking if you want to perform memory-leak testing" >&5
10458 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
10460 # Check whether --enable-leaks or --disable-leaks was given.
10461 if test "${enable_leaks+set}" = set; then
10462 enableval="$enable_leaks"
10465 : ${with_no_leaks:=no}
10467 echo "$as_me:10467: result: $with_no_leaks" >&5
10468 echo "${ECHO_T}$with_no_leaks" >&6
10470 if test "$with_no_leaks" = yes ; then
10471 cat >>confdefs.h <<\EOF
10477 cat >>confdefs.h <<\EOF
10478 #define HAVE_NC_ALLOC_H 1
10481 ### use option --enable-expanded to generate certain macros as functions
10483 # Check whether --enable-expanded or --disable-expanded was given.
10484 if test "${enable_expanded+set}" = set; then
10485 enableval="$enable_expanded"
10486 test "$enableval" = yes && cat >>confdefs.h <<\EOF
10487 #define NCURSES_EXPANDED 1
10492 ### use option --disable-macros to suppress macros in favor of functions
10494 # Check whether --enable-macros or --disable-macros was given.
10495 if test "${enable_macros+set}" = set; then
10496 enableval="$enable_macros"
10497 test "$enableval" = no && cat >>confdefs.h <<\EOF
10498 #define NCURSES_NOMACROS 1
10503 # Normally we only add trace() to the debug-library. Allow this to be
10504 # extended to all models of the ncurses library:
10506 case "$CFLAGS $CPPFLAGS" in
10512 echo "$as_me:10512: checking whether to add trace feature to all models" >&5
10513 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
10515 # Check whether --with-trace or --without-trace was given.
10516 if test "${with_trace+set}" = set; then
10517 withval="$with_trace"
10518 cf_with_trace=$withval
10520 cf_with_trace=$cf_all_traces
10522 echo "$as_me:10522: result: $cf_with_trace" >&5
10523 echo "${ECHO_T}$cf_with_trace" >&6
10525 if test "$cf_with_trace" = yes ; then
10532 cf_new_extra_cppflags=
10534 for cf_add_cflags in -DTRACE
10536 case $cf_fix_cppflags in
10538 case $cf_add_cflags in #(vi
10539 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10540 case $cf_add_cflags in
10542 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10544 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10545 && test -z "${cf_tst_cflags}" \
10546 && cf_fix_cppflags=yes
10548 if test $cf_fix_cppflags = yes ; then
10549 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10551 elif test "${cf_tst_cflags}" = "\"'" ; then
10552 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10557 case "$CPPFLAGS" in
10558 *$cf_add_cflags) #(vi
10561 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10566 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10571 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10573 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10575 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10576 && test -z "${cf_tst_cflags}" \
10577 && cf_fix_cppflags=no
10582 if test -n "$cf_new_cflags" ; then
10584 CFLAGS="$CFLAGS $cf_new_cflags"
10587 if test -n "$cf_new_cppflags" ; then
10589 CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
10592 if test -n "$cf_new_extra_cppflags" ; then
10594 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10602 ### Checks for libraries.
10603 echo "$as_me:10603: checking for gettimeofday" >&5
10604 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
10605 if test "${ac_cv_func_gettimeofday+set}" = set; then
10606 echo $ECHO_N "(cached) $ECHO_C" >&6
10608 cat >conftest.$ac_ext <<_ACEOF
10609 #line 10609 "configure"
10610 #include "confdefs.h"
10611 /* System header to define __stub macros and hopefully few prototypes,
10612 which can conflict with char gettimeofday (); below. */
10613 #include <assert.h>
10614 /* Override any gcc2 internal prototype to avoid an error. */
10618 /* We use char because int might match the return type of a gcc2
10619 builtin and then its argument prototype would still apply. */
10620 char gettimeofday ();
10626 /* The GNU C library defines this for functions which it implements
10627 to always fail with ENOSYS. Some functions are actually named
10628 something starting with __ and the normal name is an alias. */
10629 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
10639 rm -f conftest.$ac_objext conftest$ac_exeext
10640 if { (eval echo "$as_me:10640: \"$ac_link\"") >&5
10641 (eval $ac_link) 2>&5
10643 echo "$as_me:10643: \$? = $ac_status" >&5
10644 (exit $ac_status); } &&
10645 { ac_try='test -s conftest$ac_exeext'
10646 { (eval echo "$as_me:10646: \"$ac_try\"") >&5
10647 (eval $ac_try) 2>&5
10649 echo "$as_me:10649: \$? = $ac_status" >&5
10650 (exit $ac_status); }; }; then
10651 ac_cv_func_gettimeofday=yes
10653 echo "$as_me: failed program was:" >&5
10654 cat conftest.$ac_ext >&5
10655 ac_cv_func_gettimeofday=no
10657 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10659 echo "$as_me:10659: result: $ac_cv_func_gettimeofday" >&5
10660 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
10661 if test $ac_cv_func_gettimeofday = yes; then
10662 cat >>confdefs.h <<\EOF
10663 #define HAVE_GETTIMEOFDAY 1
10668 echo "$as_me:10668: checking for gettimeofday in -lbsd" >&5
10669 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
10670 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
10671 echo $ECHO_N "(cached) $ECHO_C" >&6
10673 ac_check_lib_save_LIBS=$LIBS
10675 cat >conftest.$ac_ext <<_ACEOF
10676 #line 10676 "configure"
10677 #include "confdefs.h"
10679 /* Override any gcc2 internal prototype to avoid an error. */
10683 /* We use char because int might match the return type of a gcc2
10684 builtin and then its argument prototype would still apply. */
10685 char gettimeofday ();
10694 rm -f conftest.$ac_objext conftest$ac_exeext
10695 if { (eval echo "$as_me:10695: \"$ac_link\"") >&5
10696 (eval $ac_link) 2>&5
10698 echo "$as_me:10698: \$? = $ac_status" >&5
10699 (exit $ac_status); } &&
10700 { ac_try='test -s conftest$ac_exeext'
10701 { (eval echo "$as_me:10701: \"$ac_try\"") >&5
10702 (eval $ac_try) 2>&5
10704 echo "$as_me:10704: \$? = $ac_status" >&5
10705 (exit $ac_status); }; }; then
10706 ac_cv_lib_bsd_gettimeofday=yes
10708 echo "$as_me: failed program was:" >&5
10709 cat conftest.$ac_ext >&5
10710 ac_cv_lib_bsd_gettimeofday=no
10712 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10713 LIBS=$ac_check_lib_save_LIBS
10715 echo "$as_me:10715: result: $ac_cv_lib_bsd_gettimeofday" >&5
10716 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
10717 if test $ac_cv_lib_bsd_gettimeofday = yes; then
10718 cat >>confdefs.h <<\EOF
10719 #define HAVE_GETTIMEOFDAY 1
10727 echo "$as_me:10727: checking if -lm needed for math functions" >&5
10728 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
10729 if test "${cf_cv_need_libm+set}" = set; then
10730 echo $ECHO_N "(cached) $ECHO_C" >&6
10733 cat >conftest.$ac_ext <<_ACEOF
10734 #line 10734 "configure"
10735 #include "confdefs.h"
10743 double x = rand(); printf("result = %g\n", sin(x))
10748 rm -f conftest.$ac_objext conftest$ac_exeext
10749 if { (eval echo "$as_me:10749: \"$ac_link\"") >&5
10750 (eval $ac_link) 2>&5
10752 echo "$as_me:10752: \$? = $ac_status" >&5
10753 (exit $ac_status); } &&
10754 { ac_try='test -s conftest$ac_exeext'
10755 { (eval echo "$as_me:10755: \"$ac_try\"") >&5
10756 (eval $ac_try) 2>&5
10758 echo "$as_me:10758: \$? = $ac_status" >&5
10759 (exit $ac_status); }; }; then
10762 echo "$as_me: failed program was:" >&5
10763 cat conftest.$ac_ext >&5
10764 cf_cv_need_libm=yes
10766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10768 echo "$as_me:10768: result: $cf_cv_need_libm" >&5
10769 echo "${ECHO_T}$cf_cv_need_libm" >&6
10770 if test "$cf_cv_need_libm" = yes
10775 ### Checks for header files.
10776 echo "$as_me:10776: checking for ANSI C header files" >&5
10777 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10778 if test "${ac_cv_header_stdc+set}" = set; then
10779 echo $ECHO_N "(cached) $ECHO_C" >&6
10781 cat >conftest.$ac_ext <<_ACEOF
10782 #line 10782 "configure"
10783 #include "confdefs.h"
10784 #include <stdlib.h>
10785 #include <stdarg.h>
10786 #include <string.h>
10790 if { (eval echo "$as_me:10790: \"$ac_cpp conftest.$ac_ext\"") >&5
10791 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10793 egrep -v '^ *\+' conftest.er1 >conftest.err
10795 cat conftest.err >&5
10796 echo "$as_me:10796: \$? = $ac_status" >&5
10797 (exit $ac_status); } >/dev/null; then
10798 if test -s conftest.err; then
10799 ac_cpp_err=$ac_c_preproc_warn_flag
10806 if test -z "$ac_cpp_err"; then
10807 ac_cv_header_stdc=yes
10809 echo "$as_me: failed program was:" >&5
10810 cat conftest.$ac_ext >&5
10811 ac_cv_header_stdc=no
10813 rm -f conftest.err conftest.$ac_ext
10815 if test $ac_cv_header_stdc = yes; then
10816 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10817 cat >conftest.$ac_ext <<_ACEOF
10818 #line 10818 "configure"
10819 #include "confdefs.h"
10820 #include <string.h>
10823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10824 egrep "memchr" >/dev/null 2>&1; then
10827 ac_cv_header_stdc=no
10833 if test $ac_cv_header_stdc = yes; then
10834 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10835 cat >conftest.$ac_ext <<_ACEOF
10836 #line 10836 "configure"
10837 #include "confdefs.h"
10838 #include <stdlib.h>
10841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10842 egrep "free" >/dev/null 2>&1; then
10845 ac_cv_header_stdc=no
10851 if test $ac_cv_header_stdc = yes; then
10852 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10853 if test "$cross_compiling" = yes; then
10856 cat >conftest.$ac_ext <<_ACEOF
10857 #line 10857 "configure"
10858 #include "confdefs.h"
10860 #if ((' ' & 0x0FF) == 0x020)
10861 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10862 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10864 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
10865 || ('j' <= (c) && (c) <= 'r') \
10866 || ('s' <= (c) && (c) <= 'z'))
10867 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10870 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10875 for (i = 0; i < 256; i++)
10876 if (XOR (islower (i), ISLOWER (i))
10877 || toupper (i) != TOUPPER (i))
10878 $ac_main_return(2);
10879 $ac_main_return (0);
10882 rm -f conftest$ac_exeext
10883 if { (eval echo "$as_me:10883: \"$ac_link\"") >&5
10884 (eval $ac_link) 2>&5
10886 echo "$as_me:10886: \$? = $ac_status" >&5
10887 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10888 { (eval echo "$as_me:10888: \"$ac_try\"") >&5
10889 (eval $ac_try) 2>&5
10891 echo "$as_me:10891: \$? = $ac_status" >&5
10892 (exit $ac_status); }; }; then
10895 echo "$as_me: program exited with status $ac_status" >&5
10896 echo "$as_me: failed program was:" >&5
10897 cat conftest.$ac_ext >&5
10898 ac_cv_header_stdc=no
10900 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10904 echo "$as_me:10904: result: $ac_cv_header_stdc" >&5
10905 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10906 if test $ac_cv_header_stdc = yes; then
10908 cat >>confdefs.h <<\EOF
10909 #define STDC_HEADERS 1
10914 ac_header_dirent=no
10915 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10916 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10917 echo "$as_me:10917: checking for $ac_hdr that defines DIR" >&5
10918 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
10919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10920 echo $ECHO_N "(cached) $ECHO_C" >&6
10922 cat >conftest.$ac_ext <<_ACEOF
10923 #line 10923 "configure"
10924 #include "confdefs.h"
10925 #include <sys/types.h>
10937 rm -f conftest.$ac_objext
10938 if { (eval echo "$as_me:10938: \"$ac_compile\"") >&5
10939 (eval $ac_compile) 2>&5
10941 echo "$as_me:10941: \$? = $ac_status" >&5
10942 (exit $ac_status); } &&
10943 { ac_try='test -s conftest.$ac_objext'
10944 { (eval echo "$as_me:10944: \"$ac_try\"") >&5
10945 (eval $ac_try) 2>&5
10947 echo "$as_me:10947: \$? = $ac_status" >&5
10948 (exit $ac_status); }; }; then
10949 eval "$as_ac_Header=yes"
10951 echo "$as_me: failed program was:" >&5
10952 cat conftest.$ac_ext >&5
10953 eval "$as_ac_Header=no"
10955 rm -f conftest.$ac_objext conftest.$ac_ext
10957 echo "$as_me:10957: result: `eval echo '${'$as_ac_Header'}'`" >&5
10958 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10960 cat >>confdefs.h <<EOF
10961 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10964 ac_header_dirent=$ac_hdr; break
10968 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10969 if test $ac_header_dirent = dirent.h; then
10970 echo "$as_me:10970: checking for opendir in -ldir" >&5
10971 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
10972 if test "${ac_cv_lib_dir_opendir+set}" = set; then
10973 echo $ECHO_N "(cached) $ECHO_C" >&6
10975 ac_check_lib_save_LIBS=$LIBS
10977 cat >conftest.$ac_ext <<_ACEOF
10978 #line 10978 "configure"
10979 #include "confdefs.h"
10981 /* Override any gcc2 internal prototype to avoid an error. */
10985 /* We use char because int might match the return type of a gcc2
10986 builtin and then its argument prototype would still apply. */
10996 rm -f conftest.$ac_objext conftest$ac_exeext
10997 if { (eval echo "$as_me:10997: \"$ac_link\"") >&5
10998 (eval $ac_link) 2>&5
11000 echo "$as_me:11000: \$? = $ac_status" >&5
11001 (exit $ac_status); } &&
11002 { ac_try='test -s conftest$ac_exeext'
11003 { (eval echo "$as_me:11003: \"$ac_try\"") >&5
11004 (eval $ac_try) 2>&5
11006 echo "$as_me:11006: \$? = $ac_status" >&5
11007 (exit $ac_status); }; }; then
11008 ac_cv_lib_dir_opendir=yes
11010 echo "$as_me: failed program was:" >&5
11011 cat conftest.$ac_ext >&5
11012 ac_cv_lib_dir_opendir=no
11014 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11015 LIBS=$ac_check_lib_save_LIBS
11017 echo "$as_me:11017: result: $ac_cv_lib_dir_opendir" >&5
11018 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
11019 if test $ac_cv_lib_dir_opendir = yes; then
11024 echo "$as_me:11024: checking for opendir in -lx" >&5
11025 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
11026 if test "${ac_cv_lib_x_opendir+set}" = set; then
11027 echo $ECHO_N "(cached) $ECHO_C" >&6
11029 ac_check_lib_save_LIBS=$LIBS
11031 cat >conftest.$ac_ext <<_ACEOF
11032 #line 11032 "configure"
11033 #include "confdefs.h"
11035 /* Override any gcc2 internal prototype to avoid an error. */
11039 /* We use char because int might match the return type of a gcc2
11040 builtin and then its argument prototype would still apply. */
11050 rm -f conftest.$ac_objext conftest$ac_exeext
11051 if { (eval echo "$as_me:11051: \"$ac_link\"") >&5
11052 (eval $ac_link) 2>&5
11054 echo "$as_me:11054: \$? = $ac_status" >&5
11055 (exit $ac_status); } &&
11056 { ac_try='test -s conftest$ac_exeext'
11057 { (eval echo "$as_me:11057: \"$ac_try\"") >&5
11058 (eval $ac_try) 2>&5
11060 echo "$as_me:11060: \$? = $ac_status" >&5
11061 (exit $ac_status); }; }; then
11062 ac_cv_lib_x_opendir=yes
11064 echo "$as_me: failed program was:" >&5
11065 cat conftest.$ac_ext >&5
11066 ac_cv_lib_x_opendir=no
11068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11069 LIBS=$ac_check_lib_save_LIBS
11071 echo "$as_me:11071: result: $ac_cv_lib_x_opendir" >&5
11072 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
11073 if test $ac_cv_lib_x_opendir = yes; then
11079 echo "$as_me:11079: checking whether time.h and sys/time.h may both be included" >&5
11080 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11081 if test "${ac_cv_header_time+set}" = set; then
11082 echo $ECHO_N "(cached) $ECHO_C" >&6
11084 cat >conftest.$ac_ext <<_ACEOF
11085 #line 11085 "configure"
11086 #include "confdefs.h"
11087 #include <sys/types.h>
11088 #include <sys/time.h>
11094 if ((struct tm *) 0)
11100 rm -f conftest.$ac_objext
11101 if { (eval echo "$as_me:11101: \"$ac_compile\"") >&5
11102 (eval $ac_compile) 2>&5
11104 echo "$as_me:11104: \$? = $ac_status" >&5
11105 (exit $ac_status); } &&
11106 { ac_try='test -s conftest.$ac_objext'
11107 { (eval echo "$as_me:11107: \"$ac_try\"") >&5
11108 (eval $ac_try) 2>&5
11110 echo "$as_me:11110: \$? = $ac_status" >&5
11111 (exit $ac_status); }; }; then
11112 ac_cv_header_time=yes
11114 echo "$as_me: failed program was:" >&5
11115 cat conftest.$ac_ext >&5
11116 ac_cv_header_time=no
11118 rm -f conftest.$ac_objext conftest.$ac_ext
11120 echo "$as_me:11120: result: $ac_cv_header_time" >&5
11121 echo "${ECHO_T}$ac_cv_header_time" >&6
11122 if test $ac_cv_header_time = yes; then
11124 cat >>confdefs.h <<\EOF
11125 #define TIME_WITH_SYS_TIME 1
11130 echo "$as_me:11130: checking for regular-expression headers" >&5
11131 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
11132 if test "${cf_cv_regex+set}" = set; then
11133 echo $ECHO_N "(cached) $ECHO_C" >&6
11136 cat >conftest.$ac_ext <<_ACEOF
11137 #line 11137 "configure"
11138 #include "confdefs.h"
11139 #include <sys/types.h>
11146 int x = regcomp(p, "", 0);
11147 int y = regexec(p, "", 0, 0, 0);
11154 rm -f conftest.$ac_objext conftest$ac_exeext
11155 if { (eval echo "$as_me:11155: \"$ac_link\"") >&5
11156 (eval $ac_link) 2>&5
11158 echo "$as_me:11158: \$? = $ac_status" >&5
11159 (exit $ac_status); } &&
11160 { ac_try='test -s conftest$ac_exeext'
11161 { (eval echo "$as_me:11161: \"$ac_try\"") >&5
11162 (eval $ac_try) 2>&5
11164 echo "$as_me:11164: \$? = $ac_status" >&5
11165 (exit $ac_status); }; }; then
11166 cf_cv_regex="regex.h"
11168 echo "$as_me: failed program was:" >&5
11169 cat conftest.$ac_ext >&5
11171 cat >conftest.$ac_ext <<_ACEOF
11172 #line 11172 "configure"
11173 #include "confdefs.h"
11174 #include <regexp.h>
11179 char *p = compile("", "", "", 0);
11180 int x = step("", "");
11186 rm -f conftest.$ac_objext conftest$ac_exeext
11187 if { (eval echo "$as_me:11187: \"$ac_link\"") >&5
11188 (eval $ac_link) 2>&5
11190 echo "$as_me:11190: \$? = $ac_status" >&5
11191 (exit $ac_status); } &&
11192 { ac_try='test -s conftest$ac_exeext'
11193 { (eval echo "$as_me:11193: \"$ac_try\"") >&5
11194 (eval $ac_try) 2>&5
11196 echo "$as_me:11196: \$? = $ac_status" >&5
11197 (exit $ac_status); }; }; then
11198 cf_cv_regex="regexp.h"
11200 echo "$as_me: failed program was:" >&5
11201 cat conftest.$ac_ext >&5
11203 cf_save_LIBS="$LIBS"
11205 cat >conftest.$ac_ext <<_ACEOF
11206 #line 11206 "configure"
11207 #include "confdefs.h"
11208 #include <regexpr.h>
11213 char *p = compile("", "", "");
11214 int x = step("", "");
11220 rm -f conftest.$ac_objext conftest$ac_exeext
11221 if { (eval echo "$as_me:11221: \"$ac_link\"") >&5
11222 (eval $ac_link) 2>&5
11224 echo "$as_me:11224: \$? = $ac_status" >&5
11225 (exit $ac_status); } &&
11226 { ac_try='test -s conftest$ac_exeext'
11227 { (eval echo "$as_me:11227: \"$ac_try\"") >&5
11228 (eval $ac_try) 2>&5
11230 echo "$as_me:11230: \$? = $ac_status" >&5
11231 (exit $ac_status); }; }; then
11232 cf_cv_regex="regexpr.h"
11234 echo "$as_me: failed program was:" >&5
11235 cat conftest.$ac_ext >&5
11236 LIBS="$cf_save_LIBS"
11238 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11240 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11242 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11246 echo "$as_me:11246: result: $cf_cv_regex" >&5
11247 echo "${ECHO_T}$cf_cv_regex" >&6
11248 case $cf_cv_regex in
11249 regex.h) cat >>confdefs.h <<\EOF
11250 #define HAVE_REGEX_H_FUNCS 1
11253 regexp.h) cat >>confdefs.h <<\EOF
11254 #define HAVE_REGEXP_H_FUNCS 1
11257 regexpr.h) cat >>confdefs.h <<\EOF
11258 #define HAVE_REGEXPR_H_FUNCS 1
11281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11282 echo "$as_me:11282: checking for $ac_header" >&5
11283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11285 echo $ECHO_N "(cached) $ECHO_C" >&6
11287 cat >conftest.$ac_ext <<_ACEOF
11288 #line 11288 "configure"
11289 #include "confdefs.h"
11290 #include <$ac_header>
11292 if { (eval echo "$as_me:11292: \"$ac_cpp conftest.$ac_ext\"") >&5
11293 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11295 egrep -v '^ *\+' conftest.er1 >conftest.err
11297 cat conftest.err >&5
11298 echo "$as_me:11298: \$? = $ac_status" >&5
11299 (exit $ac_status); } >/dev/null; then
11300 if test -s conftest.err; then
11301 ac_cpp_err=$ac_c_preproc_warn_flag
11308 if test -z "$ac_cpp_err"; then
11309 eval "$as_ac_Header=yes"
11311 echo "$as_me: failed program was:" >&5
11312 cat conftest.$ac_ext >&5
11313 eval "$as_ac_Header=no"
11315 rm -f conftest.err conftest.$ac_ext
11317 echo "$as_me:11317: result: `eval echo '${'$as_ac_Header'}'`" >&5
11318 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11320 cat >>confdefs.h <<EOF
11321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11327 # check for ISC (this may also define _POSIX_SOURCE)
11328 # Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
11329 if test "$ISC" = yes ; then
11331 echo "$as_me:11331: checking for main in -lcposix" >&5
11332 echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6
11333 if test "${ac_cv_lib_cposix_main+set}" = set; then
11334 echo $ECHO_N "(cached) $ECHO_C" >&6
11336 ac_check_lib_save_LIBS=$LIBS
11337 LIBS="-lcposix $LIBS"
11338 cat >conftest.$ac_ext <<_ACEOF
11339 #line 11339 "configure"
11340 #include "confdefs.h"
11350 rm -f conftest.$ac_objext conftest$ac_exeext
11351 if { (eval echo "$as_me:11351: \"$ac_link\"") >&5
11352 (eval $ac_link) 2>&5
11354 echo "$as_me:11354: \$? = $ac_status" >&5
11355 (exit $ac_status); } &&
11356 { ac_try='test -s conftest$ac_exeext'
11357 { (eval echo "$as_me:11357: \"$ac_try\"") >&5
11358 (eval $ac_try) 2>&5
11360 echo "$as_me:11360: \$? = $ac_status" >&5
11361 (exit $ac_status); }; }; then
11362 ac_cv_lib_cposix_main=yes
11364 echo "$as_me: failed program was:" >&5
11365 cat conftest.$ac_ext >&5
11366 ac_cv_lib_cposix_main=no
11368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11369 LIBS=$ac_check_lib_save_LIBS
11371 echo "$as_me:11371: result: $ac_cv_lib_cposix_main" >&5
11372 echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6
11373 if test $ac_cv_lib_cposix_main = yes; then
11374 cat >>confdefs.h <<EOF
11375 #define HAVE_LIBCPOSIX 1
11378 LIBS="-lcposix $LIBS"
11382 echo "$as_me:11382: checking for bzero in -linet" >&5
11383 echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6
11384 if test "${ac_cv_lib_inet_bzero+set}" = set; then
11385 echo $ECHO_N "(cached) $ECHO_C" >&6
11387 ac_check_lib_save_LIBS=$LIBS
11388 LIBS="-linet $LIBS"
11389 cat >conftest.$ac_ext <<_ACEOF
11390 #line 11390 "configure"
11391 #include "confdefs.h"
11393 /* Override any gcc2 internal prototype to avoid an error. */
11397 /* We use char because int might match the return type of a gcc2
11398 builtin and then its argument prototype would still apply. */
11408 rm -f conftest.$ac_objext conftest$ac_exeext
11409 if { (eval echo "$as_me:11409: \"$ac_link\"") >&5
11410 (eval $ac_link) 2>&5
11412 echo "$as_me:11412: \$? = $ac_status" >&5
11413 (exit $ac_status); } &&
11414 { ac_try='test -s conftest$ac_exeext'
11415 { (eval echo "$as_me:11415: \"$ac_try\"") >&5
11416 (eval $ac_try) 2>&5
11418 echo "$as_me:11418: \$? = $ac_status" >&5
11419 (exit $ac_status); }; }; then
11420 ac_cv_lib_inet_bzero=yes
11422 echo "$as_me: failed program was:" >&5
11423 cat conftest.$ac_ext >&5
11424 ac_cv_lib_inet_bzero=no
11426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11427 LIBS=$ac_check_lib_save_LIBS
11429 echo "$as_me:11429: result: $ac_cv_lib_inet_bzero" >&5
11430 echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6
11431 if test $ac_cv_lib_inet_bzero = yes; then
11432 LIBS="$LIBS -linet"
11436 echo "$as_me:11436: checking if sys/time.h works with sys/select.h" >&5
11437 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
11438 if test "${cf_cv_sys_time_select+set}" = set; then
11439 echo $ECHO_N "(cached) $ECHO_C" >&6
11442 cat >conftest.$ac_ext <<_ACEOF
11443 #line 11443 "configure"
11444 #include "confdefs.h"
11446 #include <sys/types.h>
11447 #ifdef HAVE_SYS_TIME_H
11448 #include <sys/time.h>
11450 #ifdef HAVE_SYS_SELECT_H
11451 #include <sys/select.h>
11462 rm -f conftest.$ac_objext
11463 if { (eval echo "$as_me:11463: \"$ac_compile\"") >&5
11464 (eval $ac_compile) 2>&5
11466 echo "$as_me:11466: \$? = $ac_status" >&5
11467 (exit $ac_status); } &&
11468 { ac_try='test -s conftest.$ac_objext'
11469 { (eval echo "$as_me:11469: \"$ac_try\"") >&5
11470 (eval $ac_try) 2>&5
11472 echo "$as_me:11472: \$? = $ac_status" >&5
11473 (exit $ac_status); }; }; then
11474 cf_cv_sys_time_select=yes
11476 echo "$as_me: failed program was:" >&5
11477 cat conftest.$ac_ext >&5
11478 cf_cv_sys_time_select=no
11480 rm -f conftest.$ac_objext conftest.$ac_ext
11484 echo "$as_me:11484: result: $cf_cv_sys_time_select" >&5
11485 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
11486 test "$cf_cv_sys_time_select" = yes && cat >>confdefs.h <<\EOF
11487 #define HAVE_SYS_TIME_SELECT 1
11490 ### checks for compiler characteristics
11492 ac_cpp='$CPP $CPPFLAGS'
11493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11496 ac_main_return=return
11498 echo "$as_me:11498: checking for $CC option to accept ANSI C" >&5
11499 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11500 if test "${ac_cv_prog_cc_stdc+set}" = set; then
11501 echo $ECHO_N "(cached) $ECHO_C" >&6
11503 ac_cv_prog_cc_stdc=no
11505 cat >conftest.$ac_ext <<_ACEOF
11506 #line 11506 "configure"
11507 #include "confdefs.h"
11508 #include <stdarg.h>
11510 #include <sys/types.h>
11511 #include <sys/stat.h>
11512 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11513 struct buf { int x; };
11514 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11515 static char *e (p, i)
11521 static char *f (char * (*g) (char **, int), char **p, ...)
11526 s = g (p, va_arg (v,int));
11530 int test (int i, double x);
11531 struct s1 {int (*f) (int a);};
11532 struct s2 {int (*f) (double a);};
11533 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11539 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11544 # Don't try gcc -ansi; that turns off useful extensions and
11545 # breaks some systems' header files.
11546 # AIX -qlanglvl=ansi
11547 # Ultrix and OSF/1 -std1
11548 # HP-UX 10.20 and later -Ae
11549 # HP-UX older versions -Aa -D_HPUX_SOURCE
11550 # SVR4 -Xc -D__EXTENSIONS__
11551 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11553 CC="$ac_save_CC $ac_arg"
11554 rm -f conftest.$ac_objext
11555 if { (eval echo "$as_me:11555: \"$ac_compile\"") >&5
11556 (eval $ac_compile) 2>&5
11558 echo "$as_me:11558: \$? = $ac_status" >&5
11559 (exit $ac_status); } &&
11560 { ac_try='test -s conftest.$ac_objext'
11561 { (eval echo "$as_me:11561: \"$ac_try\"") >&5
11562 (eval $ac_try) 2>&5
11564 echo "$as_me:11564: \$? = $ac_status" >&5
11565 (exit $ac_status); }; }; then
11566 ac_cv_prog_cc_stdc=$ac_arg
11569 echo "$as_me: failed program was:" >&5
11570 cat conftest.$ac_ext >&5
11572 rm -f conftest.$ac_objext
11574 rm -f conftest.$ac_ext conftest.$ac_objext
11579 case "x$ac_cv_prog_cc_stdc" in
11581 echo "$as_me:11581: result: none needed" >&5
11582 echo "${ECHO_T}none needed" >&6 ;;
11584 echo "$as_me:11584: result: $ac_cv_prog_cc_stdc" >&5
11585 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11586 CC="$CC $ac_cv_prog_cc_stdc" ;;
11589 echo "$as_me:11589: checking for an ANSI C-conforming const" >&5
11590 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11591 if test "${ac_cv_c_const+set}" = set; then
11592 echo $ECHO_N "(cached) $ECHO_C" >&6
11594 cat >conftest.$ac_ext <<_ACEOF
11595 #line 11595 "configure"
11596 #include "confdefs.h"
11601 /* FIXME: Include the comments suggested by Paul. */
11602 #ifndef __cplusplus
11603 /* Ultrix mips cc rejects this. */
11604 typedef int charset[2];
11606 /* SunOS 4.1.1 cc rejects this. */
11607 char const *const *ccp;
11609 /* NEC SVR4.0.2 mips cc rejects this. */
11610 struct point {int x, y;};
11611 static struct point const zero = {0,0};
11612 /* AIX XL C 1.02.0.0 rejects this.
11613 It does not let you subtract one const X* pointer from another in
11614 an arm of an if-expression whose if-part is not a constant
11616 const char *g = "string";
11617 ccp = &g + (g ? g-g : 0);
11618 /* HPUX 7.0 cc rejects these. */
11621 ccp = (char const *const *) p;
11622 { /* SCO 3.2v4 cc rejects this. */
11624 char const *s = 0 ? (char *) 0 : (char const *) 0;
11628 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11629 int x[] = {25, 17};
11630 const int *foo = &x[0];
11633 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11634 typedef const int *iptr;
11638 { /* AIX XL C 1.02.0.0 rejects this saying
11639 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11640 struct s { int j; const int *ap[3]; };
11641 struct s *b; b->j = 5;
11643 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11644 const int foo = 10;
11652 rm -f conftest.$ac_objext
11653 if { (eval echo "$as_me:11653: \"$ac_compile\"") >&5
11654 (eval $ac_compile) 2>&5
11656 echo "$as_me:11656: \$? = $ac_status" >&5
11657 (exit $ac_status); } &&
11658 { ac_try='test -s conftest.$ac_objext'
11659 { (eval echo "$as_me:11659: \"$ac_try\"") >&5
11660 (eval $ac_try) 2>&5
11662 echo "$as_me:11662: \$? = $ac_status" >&5
11663 (exit $ac_status); }; }; then
11666 echo "$as_me: failed program was:" >&5
11667 cat conftest.$ac_ext >&5
11670 rm -f conftest.$ac_objext conftest.$ac_ext
11672 echo "$as_me:11672: result: $ac_cv_c_const" >&5
11673 echo "${ECHO_T}$ac_cv_c_const" >&6
11674 if test $ac_cv_c_const = no; then
11676 cat >>confdefs.h <<\EOF
11682 echo "$as_me:11682: checking for inline" >&5
11683 echo $ECHO_N "checking for inline... $ECHO_C" >&6
11684 if test "${ac_cv_c_inline+set}" = set; then
11685 echo $ECHO_N "(cached) $ECHO_C" >&6
11688 for ac_kw in inline __inline__ __inline; do
11689 cat >conftest.$ac_ext <<_ACEOF
11690 #line 11690 "configure"
11691 #include "confdefs.h"
11692 #ifndef __cplusplus
11693 static $ac_kw int static_foo () {return 0; }
11694 $ac_kw int foo () {return 0; }
11698 rm -f conftest.$ac_objext
11699 if { (eval echo "$as_me:11699: \"$ac_compile\"") >&5
11700 (eval $ac_compile) 2>&5
11702 echo "$as_me:11702: \$? = $ac_status" >&5
11703 (exit $ac_status); } &&
11704 { ac_try='test -s conftest.$ac_objext'
11705 { (eval echo "$as_me:11705: \"$ac_try\"") >&5
11706 (eval $ac_try) 2>&5
11708 echo "$as_me:11708: \$? = $ac_status" >&5
11709 (exit $ac_status); }; }; then
11710 ac_cv_c_inline=$ac_kw; break
11712 echo "$as_me: failed program was:" >&5
11713 cat conftest.$ac_ext >&5
11715 rm -f conftest.$ac_objext conftest.$ac_ext
11719 echo "$as_me:11719: result: $ac_cv_c_inline" >&5
11720 echo "${ECHO_T}$ac_cv_c_inline" >&6
11721 case $ac_cv_c_inline in
11724 cat >>confdefs.h <<\EOF
11728 *) cat >>confdefs.h <<EOF
11729 #define inline $ac_cv_c_inline
11735 if test "$ac_cv_c_inline" != no ; then
11736 NCURSES_INLINE=inline
11737 if test "$INTEL_COMPILER" = yes
11740 elif test "$GCC" = yes
11742 echo "$as_me:11742: checking if gcc supports options to tune inlining" >&5
11743 echo $ECHO_N "checking if gcc supports options to tune inlining... $ECHO_C" >&6
11744 if test "${cf_cv_gcc_inline+set}" = set; then
11745 echo $ECHO_N "(cached) $ECHO_C" >&6
11748 cf_save_CFLAGS=$CFLAGS
11749 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
11750 cat >conftest.$ac_ext <<_ACEOF
11751 #line 11751 "configure"
11752 #include "confdefs.h"
11753 inline int foo(void) { return 1; }
11757 ${cf_cv_main_return:-return} foo()
11762 rm -f conftest.$ac_objext
11763 if { (eval echo "$as_me:11763: \"$ac_compile\"") >&5
11764 (eval $ac_compile) 2>&5
11766 echo "$as_me:11766: \$? = $ac_status" >&5
11767 (exit $ac_status); } &&
11768 { ac_try='test -s conftest.$ac_objext'
11769 { (eval echo "$as_me:11769: \"$ac_try\"") >&5
11770 (eval $ac_try) 2>&5
11772 echo "$as_me:11772: \$? = $ac_status" >&5
11773 (exit $ac_status); }; }; then
11774 cf_cv_gcc_inline=yes
11776 echo "$as_me: failed program was:" >&5
11777 cat conftest.$ac_ext >&5
11778 cf_cv_gcc_inline=no
11780 rm -f conftest.$ac_objext conftest.$ac_ext
11781 CFLAGS=$cf_save_CFLAGS
11784 echo "$as_me:11784: result: $cf_cv_gcc_inline" >&5
11785 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
11786 if test "$cf_cv_gcc_inline" = yes ; then
11791 cf_new_extra_cppflags=
11793 for cf_add_cflags in --param max-inline-insns-single=1200
11795 case $cf_fix_cppflags in
11797 case $cf_add_cflags in #(vi
11798 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11799 case $cf_add_cflags in
11801 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11803 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11804 && test -z "${cf_tst_cflags}" \
11805 && cf_fix_cppflags=yes
11807 if test $cf_fix_cppflags = yes ; then
11808 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11810 elif test "${cf_tst_cflags}" = "\"'" ; then
11811 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11816 case "$CPPFLAGS" in
11817 *$cf_add_cflags) #(vi
11820 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11825 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11830 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11832 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11834 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11835 && test -z "${cf_tst_cflags}" \
11836 && cf_fix_cppflags=no
11841 if test -n "$cf_new_cflags" ; then
11843 CFLAGS="$CFLAGS $cf_new_cflags"
11846 if test -n "$cf_new_cppflags" ; then
11848 CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
11851 if test -n "$cf_new_extra_cppflags" ; then
11853 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11860 echo "$as_me:11860: checking for signal global datatype" >&5
11861 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
11862 if test "${cf_cv_sig_atomic_t+set}" = set; then
11863 echo $ECHO_N "(cached) $ECHO_C" >&6
11867 "volatile sig_atomic_t" \
11871 cat >conftest.$ac_ext <<_ACEOF
11872 #line 11872 "configure"
11873 #include "confdefs.h"
11875 #include <sys/types.h>
11876 #include <signal.h>
11881 static void handler(int sig)
11888 signal(SIGINT, handler);
11894 rm -f conftest.$ac_objext
11895 if { (eval echo "$as_me:11895: \"$ac_compile\"") >&5
11896 (eval $ac_compile) 2>&5
11898 echo "$as_me:11898: \$? = $ac_status" >&5
11899 (exit $ac_status); } &&
11900 { ac_try='test -s conftest.$ac_objext'
11901 { (eval echo "$as_me:11901: \"$ac_try\"") >&5
11902 (eval $ac_try) 2>&5
11904 echo "$as_me:11904: \$? = $ac_status" >&5
11905 (exit $ac_status); }; }; then
11906 cf_cv_sig_atomic_t=$cf_type
11908 echo "$as_me: failed program was:" >&5
11909 cat conftest.$ac_ext >&5
11910 cf_cv_sig_atomic_t=no
11912 rm -f conftest.$ac_objext conftest.$ac_ext
11913 test "$cf_cv_sig_atomic_t" != no && break
11918 echo "$as_me:11918: result: $cf_cv_sig_atomic_t" >&5
11919 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
11920 test "$cf_cv_sig_atomic_t" != no && cat >>confdefs.h <<EOF
11921 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
11924 if test $NCURSES_CHTYPE = auto ; then
11926 echo "$as_me:11926: checking for type of chtype" >&5
11927 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
11928 if test "${cf_cv_typeof_chtype+set}" = set; then
11929 echo $ECHO_N "(cached) $ECHO_C" >&6
11932 if test "$cross_compiling" = yes; then
11933 cf_cv_typeof_chtype=long
11935 cat >conftest.$ac_ext <<_ACEOF
11936 #line 11936 "configure"
11937 #include "confdefs.h"
11939 #define WANT_BITS 31
11943 FILE *fp = fopen("cf_test.out", "w");
11945 char *result = "long";
11946 if (sizeof(unsigned long) > sizeof(unsigned int)) {
11949 for (n = 0; n < WANT_BITS; n++) {
11952 if (y != 1 || x == 0) {
11958 * If x is nonzero, an int is big enough for the bits
11961 result = (x != 0) ? "int" : "long";
11966 ${cf_cv_main_return:-return}(0);
11970 rm -f conftest$ac_exeext
11971 if { (eval echo "$as_me:11971: \"$ac_link\"") >&5
11972 (eval $ac_link) 2>&5
11974 echo "$as_me:11974: \$? = $ac_status" >&5
11975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11976 { (eval echo "$as_me:11976: \"$ac_try\"") >&5
11977 (eval $ac_try) 2>&5
11979 echo "$as_me:11979: \$? = $ac_status" >&5
11980 (exit $ac_status); }; }; then
11981 cf_cv_typeof_chtype=`cat cf_test.out`
11983 echo "$as_me: program exited with status $ac_status" >&5
11984 echo "$as_me: failed program was:" >&5
11985 cat conftest.$ac_ext >&5
11986 cf_cv_typeof_chtype=long
11988 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11994 echo "$as_me:11994: result: $cf_cv_typeof_chtype" >&5
11995 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
11997 cat >>confdefs.h <<EOF
11998 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
12002 cf_cv_typeof_chtype=$NCURSES_CHTYPE
12004 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
12006 echo "$as_me:12006: checking if unsigned literals are legal" >&5
12007 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
12008 if test "${cf_cv_unsigned_literals+set}" = set; then
12009 echo $ECHO_N "(cached) $ECHO_C" >&6
12012 cat >conftest.$ac_ext <<_ACEOF
12013 #line 12013 "configure"
12014 #include "confdefs.h"
12019 long x = 1L + 1UL + 1U + 1
12024 rm -f conftest.$ac_objext
12025 if { (eval echo "$as_me:12025: \"$ac_compile\"") >&5
12026 (eval $ac_compile) 2>&5
12028 echo "$as_me:12028: \$? = $ac_status" >&5
12029 (exit $ac_status); } &&
12030 { ac_try='test -s conftest.$ac_objext'
12031 { (eval echo "$as_me:12031: \"$ac_try\"") >&5
12032 (eval $ac_try) 2>&5
12034 echo "$as_me:12034: \$? = $ac_status" >&5
12035 (exit $ac_status); }; }; then
12036 cf_cv_unsigned_literals=yes
12038 echo "$as_me: failed program was:" >&5
12039 cat conftest.$ac_ext >&5
12040 cf_cv_unsigned_literals=no
12042 rm -f conftest.$ac_objext conftest.$ac_ext
12046 echo "$as_me:12046: result: $cf_cv_unsigned_literals" >&5
12047 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
12050 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
12051 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
12053 if test $NCURSES_MMASK_T = auto ; then
12054 cf_cv_typeof_mmask_t=long
12056 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
12058 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
12060 ### Checks for external-data
12062 echo "$as_me:12062: checking if external errno is declared" >&5
12063 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
12064 if test "${cf_cv_dcl_errno+set}" = set; then
12065 echo $ECHO_N "(cached) $ECHO_C" >&6
12068 cat >conftest.$ac_ext <<_ACEOF
12069 #line 12069 "configure"
12070 #include "confdefs.h"
12072 #ifdef HAVE_STDLIB_H
12073 #include <stdlib.h>
12076 #include <sys/types.h>
12081 int x = (int) errno
12086 rm -f conftest.$ac_objext
12087 if { (eval echo "$as_me:12087: \"$ac_compile\"") >&5
12088 (eval $ac_compile) 2>&5
12090 echo "$as_me:12090: \$? = $ac_status" >&5
12091 (exit $ac_status); } &&
12092 { ac_try='test -s conftest.$ac_objext'
12093 { (eval echo "$as_me:12093: \"$ac_try\"") >&5
12094 (eval $ac_try) 2>&5
12096 echo "$as_me:12096: \$? = $ac_status" >&5
12097 (exit $ac_status); }; }; then
12098 cf_cv_dcl_errno=yes
12100 echo "$as_me: failed program was:" >&5
12101 cat conftest.$ac_ext >&5
12104 rm -f conftest.$ac_objext conftest.$ac_ext
12107 echo "$as_me:12107: result: $cf_cv_dcl_errno" >&5
12108 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
12110 if test "$cf_cv_dcl_errno" = no ; then
12112 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
12114 cat >>confdefs.h <<EOF
12115 #define $cf_result 1
12120 # It's possible (for near-UNIX clones) that the data doesn't exist
12122 echo "$as_me:12122: checking if external errno exists" >&5
12123 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
12124 if test "${cf_cv_have_errno+set}" = set; then
12125 echo $ECHO_N "(cached) $ECHO_C" >&6
12128 cat >conftest.$ac_ext <<_ACEOF
12129 #line 12129 "configure"
12130 #include "confdefs.h"
12143 rm -f conftest.$ac_objext conftest$ac_exeext
12144 if { (eval echo "$as_me:12144: \"$ac_link\"") >&5
12145 (eval $ac_link) 2>&5
12147 echo "$as_me:12147: \$? = $ac_status" >&5
12148 (exit $ac_status); } &&
12149 { ac_try='test -s conftest$ac_exeext'
12150 { (eval echo "$as_me:12150: \"$ac_try\"") >&5
12151 (eval $ac_try) 2>&5
12153 echo "$as_me:12153: \$? = $ac_status" >&5
12154 (exit $ac_status); }; }; then
12155 cf_cv_have_errno=yes
12157 echo "$as_me: failed program was:" >&5
12158 cat conftest.$ac_ext >&5
12159 cf_cv_have_errno=no
12161 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12164 echo "$as_me:12164: result: $cf_cv_have_errno" >&5
12165 echo "${ECHO_T}$cf_cv_have_errno" >&6
12167 if test "$cf_cv_have_errno" = yes ; then
12169 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
12171 cat >>confdefs.h <<EOF
12172 #define $cf_result 1
12177 echo "$as_me:12177: checking if data-only library module links" >&5
12178 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
12179 if test "${cf_cv_link_dataonly+set}" = set; then
12180 echo $ECHO_N "(cached) $ECHO_C" >&6
12184 cat >conftest.$ac_ext <<EOF
12185 #line 12185 "configure"
12186 int testdata[3] = { 123, 456, 789 };
12188 if { (eval echo "$as_me:12188: \"$ac_compile\"") >&5
12189 (eval $ac_compile) 2>&5
12191 echo "$as_me:12191: \$? = $ac_status" >&5
12192 (exit $ac_status); } ; then
12193 mv conftest.o data.o && \
12194 ( $AR $AR_OPTS conftest.a data.o ) 2>&5 1>/dev/null
12196 rm -f conftest.$ac_ext data.o
12197 cat >conftest.$ac_ext <<EOF
12198 #line 12198 "configure"
12202 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
12204 extern int testdata[3];
12205 return testdata[0] == 123
12206 && testdata[1] == 456
12207 && testdata[2] == 789;
12211 if { (eval echo "$as_me:12211: \"$ac_compile\"") >&5
12212 (eval $ac_compile) 2>&5
12214 echo "$as_me:12214: \$? = $ac_status" >&5
12215 (exit $ac_status); }; then
12216 mv conftest.o func.o && \
12217 ( $AR $AR_OPTS conftest.a func.o ) 2>&5 1>/dev/null
12219 rm -f conftest.$ac_ext func.o
12220 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
12221 cf_saveLIBS="$LIBS"
12222 LIBS="conftest.a $LIBS"
12223 if test "$cross_compiling" = yes; then
12224 cf_cv_link_dataonly=unknown
12226 cat >conftest.$ac_ext <<_ACEOF
12227 #line 12227 "configure"
12228 #include "confdefs.h"
12232 extern int testfunc();
12233 ${cf_cv_main_return:-return} (!testfunc());
12237 rm -f conftest$ac_exeext
12238 if { (eval echo "$as_me:12238: \"$ac_link\"") >&5
12239 (eval $ac_link) 2>&5
12241 echo "$as_me:12241: \$? = $ac_status" >&5
12242 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12243 { (eval echo "$as_me:12243: \"$ac_try\"") >&5
12244 (eval $ac_try) 2>&5
12246 echo "$as_me:12246: \$? = $ac_status" >&5
12247 (exit $ac_status); }; }; then
12248 cf_cv_link_dataonly=yes
12250 echo "$as_me: program exited with status $ac_status" >&5
12251 echo "$as_me: failed program was:" >&5
12252 cat conftest.$ac_ext >&5
12253 cf_cv_link_dataonly=no
12255 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12257 LIBS="$cf_saveLIBS"
12261 echo "$as_me:12261: result: $cf_cv_link_dataonly" >&5
12262 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
12264 if test "$cf_cv_link_dataonly" = no ; then
12265 cat >>confdefs.h <<\EOF
12266 #define BROKEN_LINKER 1
12272 ### Checks for library functions.
12295 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12296 echo "$as_me:12296: checking for $ac_func" >&5
12297 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12298 if eval "test \"\${$as_ac_var+set}\" = set"; then
12299 echo $ECHO_N "(cached) $ECHO_C" >&6
12301 cat >conftest.$ac_ext <<_ACEOF
12302 #line 12302 "configure"
12303 #include "confdefs.h"
12304 /* System header to define __stub macros and hopefully few prototypes,
12305 which can conflict with char $ac_func (); below. */
12306 #include <assert.h>
12307 /* Override any gcc2 internal prototype to avoid an error. */
12311 /* We use char because int might match the return type of a gcc2
12312 builtin and then its argument prototype would still apply. */
12319 /* The GNU C library defines this for functions which it implements
12320 to always fail with ENOSYS. Some functions are actually named
12321 something starting with __ and the normal name is an alias. */
12322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12332 rm -f conftest.$ac_objext conftest$ac_exeext
12333 if { (eval echo "$as_me:12333: \"$ac_link\"") >&5
12334 (eval $ac_link) 2>&5
12336 echo "$as_me:12336: \$? = $ac_status" >&5
12337 (exit $ac_status); } &&
12338 { ac_try='test -s conftest$ac_exeext'
12339 { (eval echo "$as_me:12339: \"$ac_try\"") >&5
12340 (eval $ac_try) 2>&5
12342 echo "$as_me:12342: \$? = $ac_status" >&5
12343 (exit $ac_status); }; }; then
12344 eval "$as_ac_var=yes"
12346 echo "$as_me: failed program was:" >&5
12347 cat conftest.$ac_ext >&5
12348 eval "$as_ac_var=no"
12350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12352 echo "$as_me:12352: result: `eval echo '${'$as_ac_var'}'`" >&5
12353 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12354 if test `eval echo '${'$as_ac_var'}'` = yes; then
12355 cat >>confdefs.h <<EOF
12356 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12362 if test "$with_getcap" = "yes" ; then
12364 echo "$as_me:12364: checking for terminal-capability database functions" >&5
12365 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
12366 if test "${cf_cv_cgetent+set}" = set; then
12367 echo $ECHO_N "(cached) $ECHO_C" >&6
12370 cat >conftest.$ac_ext <<_ACEOF
12371 #line 12371 "configure"
12372 #include "confdefs.h"
12374 #include <stdlib.h>
12381 char *db_array = temp;
12382 cgetent(&buf, /* int *, */ &db_array, "vt100");
12383 cgetcap(buf, "tc", '=');
12384 cgetmatch(buf, "tc");
12390 rm -f conftest.$ac_objext conftest$ac_exeext
12391 if { (eval echo "$as_me:12391: \"$ac_link\"") >&5
12392 (eval $ac_link) 2>&5
12394 echo "$as_me:12394: \$? = $ac_status" >&5
12395 (exit $ac_status); } &&
12396 { ac_try='test -s conftest$ac_exeext'
12397 { (eval echo "$as_me:12397: \"$ac_try\"") >&5
12398 (eval $ac_try) 2>&5
12400 echo "$as_me:12400: \$? = $ac_status" >&5
12401 (exit $ac_status); }; }; then
12404 echo "$as_me: failed program was:" >&5
12405 cat conftest.$ac_ext >&5
12408 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12412 echo "$as_me:12412: result: $cf_cv_cgetent" >&5
12413 echo "${ECHO_T}$cf_cv_cgetent" >&6
12414 test "$cf_cv_cgetent" = yes && cat >>confdefs.h <<\EOF
12415 #define HAVE_BSD_CGETENT 1
12420 echo "$as_me:12420: checking for isascii" >&5
12421 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
12422 if test "${cf_cv_have_isascii+set}" = set; then
12423 echo $ECHO_N "(cached) $ECHO_C" >&6
12426 cat >conftest.$ac_ext <<_ACEOF
12427 #line 12427 "configure"
12428 #include "confdefs.h"
12433 int x = isascii(' ')
12438 rm -f conftest.$ac_objext conftest$ac_exeext
12439 if { (eval echo "$as_me:12439: \"$ac_link\"") >&5
12440 (eval $ac_link) 2>&5
12442 echo "$as_me:12442: \$? = $ac_status" >&5
12443 (exit $ac_status); } &&
12444 { ac_try='test -s conftest$ac_exeext'
12445 { (eval echo "$as_me:12445: \"$ac_try\"") >&5
12446 (eval $ac_try) 2>&5
12448 echo "$as_me:12448: \$? = $ac_status" >&5
12449 (exit $ac_status); }; }; then
12450 cf_cv_have_isascii=yes
12452 echo "$as_me: failed program was:" >&5
12453 cat conftest.$ac_ext >&5
12454 cf_cv_have_isascii=no
12456 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12459 echo "$as_me:12459: result: $cf_cv_have_isascii" >&5
12460 echo "${ECHO_T}$cf_cv_have_isascii" >&6
12461 test "$cf_cv_have_isascii" = yes && cat >>confdefs.h <<\EOF
12462 #define HAVE_ISASCII 1
12465 if test "$ac_cv_func_sigaction" = yes; then
12466 echo "$as_me:12466: checking whether sigaction needs _POSIX_SOURCE" >&5
12467 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
12468 cat >conftest.$ac_ext <<_ACEOF
12469 #line 12469 "configure"
12470 #include "confdefs.h"
12472 #include <sys/types.h>
12473 #include <signal.h>
12477 struct sigaction act
12482 rm -f conftest.$ac_objext
12483 if { (eval echo "$as_me:12483: \"$ac_compile\"") >&5
12484 (eval $ac_compile) 2>&5
12486 echo "$as_me:12486: \$? = $ac_status" >&5
12487 (exit $ac_status); } &&
12488 { ac_try='test -s conftest.$ac_objext'
12489 { (eval echo "$as_me:12489: \"$ac_try\"") >&5
12490 (eval $ac_try) 2>&5
12492 echo "$as_me:12492: \$? = $ac_status" >&5
12493 (exit $ac_status); }; }; then
12496 echo "$as_me: failed program was:" >&5
12497 cat conftest.$ac_ext >&5
12499 cat >conftest.$ac_ext <<_ACEOF
12500 #line 12500 "configure"
12501 #include "confdefs.h"
12503 #define _POSIX_SOURCE
12504 #include <sys/types.h>
12505 #include <signal.h>
12509 struct sigaction act
12514 rm -f conftest.$ac_objext
12515 if { (eval echo "$as_me:12515: \"$ac_compile\"") >&5
12516 (eval $ac_compile) 2>&5
12518 echo "$as_me:12518: \$? = $ac_status" >&5
12519 (exit $ac_status); } &&
12520 { ac_try='test -s conftest.$ac_objext'
12521 { (eval echo "$as_me:12521: \"$ac_try\"") >&5
12522 (eval $ac_try) 2>&5
12524 echo "$as_me:12524: \$? = $ac_status" >&5
12525 (exit $ac_status); }; }; then
12527 cat >>confdefs.h <<\EOF
12528 #define SVR4_ACTION 1
12532 echo "$as_me: failed program was:" >&5
12533 cat conftest.$ac_ext >&5
12536 rm -f conftest.$ac_objext conftest.$ac_ext
12538 rm -f conftest.$ac_objext conftest.$ac_ext
12539 echo "$as_me:12539: result: $sigact_bad" >&5
12540 echo "${ECHO_T}$sigact_bad" >&6
12543 echo "$as_me:12543: checking if nanosleep really works" >&5
12544 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
12545 if test "${cf_cv_func_nanosleep+set}" = set; then
12546 echo $ECHO_N "(cached) $ECHO_C" >&6
12549 if test "$cross_compiling" = yes; then
12550 cf_cv_func_nanosleep=unknown
12552 cat >conftest.$ac_ext <<_ACEOF
12553 #line 12553 "configure"
12554 #include "confdefs.h"
12560 #ifdef HAVE_SYS_TIME_H
12561 #include <sys/time.h>
12565 struct timespec ts1, ts2;
12568 ts1.tv_nsec = 750000000;
12572 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
12573 ${cf_cv_main_return:-return}(code != 0);
12577 rm -f conftest$ac_exeext
12578 if { (eval echo "$as_me:12578: \"$ac_link\"") >&5
12579 (eval $ac_link) 2>&5
12581 echo "$as_me:12581: \$? = $ac_status" >&5
12582 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12583 { (eval echo "$as_me:12583: \"$ac_try\"") >&5
12584 (eval $ac_try) 2>&5
12586 echo "$as_me:12586: \$? = $ac_status" >&5
12587 (exit $ac_status); }; }; then
12588 cf_cv_func_nanosleep=yes
12590 echo "$as_me: program exited with status $ac_status" >&5
12591 echo "$as_me: failed program was:" >&5
12592 cat conftest.$ac_ext >&5
12593 cf_cv_func_nanosleep=no
12595 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12598 echo "$as_me:12598: result: $cf_cv_func_nanosleep" >&5
12599 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
12601 test "$cf_cv_func_nanosleep" = "yes" && cat >>confdefs.h <<\EOF
12602 #define HAVE_NANOSLEEP 1
12611 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12612 echo "$as_me:12612: checking for $ac_header" >&5
12613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12615 echo $ECHO_N "(cached) $ECHO_C" >&6
12617 cat >conftest.$ac_ext <<_ACEOF
12618 #line 12618 "configure"
12619 #include "confdefs.h"
12620 #include <$ac_header>
12622 if { (eval echo "$as_me:12622: \"$ac_cpp conftest.$ac_ext\"") >&5
12623 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12625 egrep -v '^ *\+' conftest.er1 >conftest.err
12627 cat conftest.err >&5
12628 echo "$as_me:12628: \$? = $ac_status" >&5
12629 (exit $ac_status); } >/dev/null; then
12630 if test -s conftest.err; then
12631 ac_cpp_err=$ac_c_preproc_warn_flag
12638 if test -z "$ac_cpp_err"; then
12639 eval "$as_ac_Header=yes"
12641 echo "$as_me: failed program was:" >&5
12642 cat conftest.$ac_ext >&5
12643 eval "$as_ac_Header=no"
12645 rm -f conftest.err conftest.$ac_ext
12647 echo "$as_me:12647: result: `eval echo '${'$as_ac_Header'}'`" >&5
12648 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12649 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12650 cat >>confdefs.h <<EOF
12651 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12657 if test "$ISC" = yes ; then
12659 for ac_header in sys/termio.h
12661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12662 echo "$as_me:12662: checking for $ac_header" >&5
12663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12665 echo $ECHO_N "(cached) $ECHO_C" >&6
12667 cat >conftest.$ac_ext <<_ACEOF
12668 #line 12668 "configure"
12669 #include "confdefs.h"
12670 #include <$ac_header>
12672 if { (eval echo "$as_me:12672: \"$ac_cpp conftest.$ac_ext\"") >&5
12673 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12675 egrep -v '^ *\+' conftest.er1 >conftest.err
12677 cat conftest.err >&5
12678 echo "$as_me:12678: \$? = $ac_status" >&5
12679 (exit $ac_status); } >/dev/null; then
12680 if test -s conftest.err; then
12681 ac_cpp_err=$ac_c_preproc_warn_flag
12688 if test -z "$ac_cpp_err"; then
12689 eval "$as_ac_Header=yes"
12691 echo "$as_me: failed program was:" >&5
12692 cat conftest.$ac_ext >&5
12693 eval "$as_ac_Header=no"
12695 rm -f conftest.err conftest.$ac_ext
12697 echo "$as_me:12697: result: `eval echo '${'$as_ac_Header'}'`" >&5
12698 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12699 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12700 cat >>confdefs.h <<EOF
12701 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12708 if test "$ac_cv_header_termios_h" = yes ; then
12709 case "$CFLAGS $CPPFLAGS" in
12711 termios_bad=dunno ;;
12712 *) termios_bad=maybe ;;
12714 if test "$termios_bad" = maybe ; then
12715 echo "$as_me:12715: checking whether termios.h needs _POSIX_SOURCE" >&5
12716 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
12717 cat >conftest.$ac_ext <<_ACEOF
12718 #line 12718 "configure"
12719 #include "confdefs.h"
12720 #include <termios.h>
12724 struct termios foo; int x = foo.c_iflag
12729 rm -f conftest.$ac_objext
12730 if { (eval echo "$as_me:12730: \"$ac_compile\"") >&5
12731 (eval $ac_compile) 2>&5
12733 echo "$as_me:12733: \$? = $ac_status" >&5
12734 (exit $ac_status); } &&
12735 { ac_try='test -s conftest.$ac_objext'
12736 { (eval echo "$as_me:12736: \"$ac_try\"") >&5
12737 (eval $ac_try) 2>&5
12739 echo "$as_me:12739: \$? = $ac_status" >&5
12740 (exit $ac_status); }; }; then
12743 echo "$as_me: failed program was:" >&5
12744 cat conftest.$ac_ext >&5
12746 cat >conftest.$ac_ext <<_ACEOF
12747 #line 12747 "configure"
12748 #include "confdefs.h"
12750 #define _POSIX_SOURCE
12751 #include <termios.h>
12755 struct termios foo; int x = foo.c_iflag
12760 rm -f conftest.$ac_objext
12761 if { (eval echo "$as_me:12761: \"$ac_compile\"") >&5
12762 (eval $ac_compile) 2>&5
12764 echo "$as_me:12764: \$? = $ac_status" >&5
12765 (exit $ac_status); } &&
12766 { ac_try='test -s conftest.$ac_objext'
12767 { (eval echo "$as_me:12767: \"$ac_try\"") >&5
12768 (eval $ac_try) 2>&5
12770 echo "$as_me:12770: \$? = $ac_status" >&5
12771 (exit $ac_status); }; }; then
12772 termios_bad=unknown
12774 echo "$as_me: failed program was:" >&5
12775 cat conftest.$ac_ext >&5
12776 termios_bad=yes cat >>confdefs.h <<\EOF
12777 #define SVR4_TERMIO 1
12781 rm -f conftest.$ac_objext conftest.$ac_ext
12784 rm -f conftest.$ac_objext conftest.$ac_ext
12785 echo "$as_me:12785: result: $termios_bad" >&5
12786 echo "${ECHO_T}$termios_bad" >&6
12790 echo "$as_me:12790: checking for tcgetattr" >&5
12791 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
12792 if test "${cf_cv_have_tcgetattr+set}" = set; then
12793 echo $ECHO_N "(cached) $ECHO_C" >&6
12796 cat >conftest.$ac_ext <<_ACEOF
12797 #line 12797 "configure"
12798 #include "confdefs.h"
12800 #include <sys/types.h>
12801 #ifdef HAVE_UNISTD_H
12802 #include <unistd.h>
12804 #ifdef HAVE_TERMIOS_H
12805 #include <termios.h>
12806 #define TTY struct termios
12808 #ifdef HAVE_TERMIO_H
12809 #include <termio.h>
12810 #define TTY struct termio
12819 tcgetattr(1, &foo);
12824 rm -f conftest.$ac_objext conftest$ac_exeext
12825 if { (eval echo "$as_me:12825: \"$ac_link\"") >&5
12826 (eval $ac_link) 2>&5
12828 echo "$as_me:12828: \$? = $ac_status" >&5
12829 (exit $ac_status); } &&
12830 { ac_try='test -s conftest$ac_exeext'
12831 { (eval echo "$as_me:12831: \"$ac_try\"") >&5
12832 (eval $ac_try) 2>&5
12834 echo "$as_me:12834: \$? = $ac_status" >&5
12835 (exit $ac_status); }; }; then
12836 cf_cv_have_tcgetattr=yes
12838 echo "$as_me: failed program was:" >&5
12839 cat conftest.$ac_ext >&5
12840 cf_cv_have_tcgetattr=no
12842 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12844 echo "$as_me:12844: result: $cf_cv_have_tcgetattr" >&5
12845 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
12846 test "$cf_cv_have_tcgetattr" = yes && cat >>confdefs.h <<\EOF
12847 #define HAVE_TCGETATTR 1
12850 echo "$as_me:12850: checking for vsscanf function or workaround" >&5
12851 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
12852 if test "${cf_cv_func_vsscanf+set}" = set; then
12853 echo $ECHO_N "(cached) $ECHO_C" >&6
12856 cat >conftest.$ac_ext <<_ACEOF
12857 #line 12857 "configure"
12858 #include "confdefs.h"
12860 #include <stdarg.h>
12867 vsscanf("from", "%d", ap)
12872 rm -f conftest.$ac_objext conftest$ac_exeext
12873 if { (eval echo "$as_me:12873: \"$ac_link\"") >&5
12874 (eval $ac_link) 2>&5
12876 echo "$as_me:12876: \$? = $ac_status" >&5
12877 (exit $ac_status); } &&
12878 { ac_try='test -s conftest$ac_exeext'
12879 { (eval echo "$as_me:12879: \"$ac_try\"") >&5
12880 (eval $ac_try) 2>&5
12882 echo "$as_me:12882: \$? = $ac_status" >&5
12883 (exit $ac_status); }; }; then
12884 cf_cv_func_vsscanf=vsscanf
12886 echo "$as_me: failed program was:" >&5
12887 cat conftest.$ac_ext >&5
12889 cat >conftest.$ac_ext <<_ACEOF
12890 #line 12890 "configure"
12891 #include "confdefs.h"
12893 #include <stdarg.h>
12900 char *str = "from";
12902 strbuf._flag = _IOREAD;
12903 strbuf._ptr = strbuf._base = (unsigned char *) str;
12904 strbuf._cnt = strlen(str);
12905 strbuf._file = _NFILE;
12906 return (vfscanf(&strbuf, "%d", ap))
12911 rm -f conftest.$ac_objext conftest$ac_exeext
12912 if { (eval echo "$as_me:12912: \"$ac_link\"") >&5
12913 (eval $ac_link) 2>&5
12915 echo "$as_me:12915: \$? = $ac_status" >&5
12916 (exit $ac_status); } &&
12917 { ac_try='test -s conftest$ac_exeext'
12918 { (eval echo "$as_me:12918: \"$ac_try\"") >&5
12919 (eval $ac_try) 2>&5
12921 echo "$as_me:12921: \$? = $ac_status" >&5
12922 (exit $ac_status); }; }; then
12923 cf_cv_func_vsscanf=vfscanf
12925 echo "$as_me: failed program was:" >&5
12926 cat conftest.$ac_ext >&5
12928 cat >conftest.$ac_ext <<_ACEOF
12929 #line 12929 "configure"
12930 #include "confdefs.h"
12932 #include <stdarg.h>
12939 char *str = "from";
12941 strbuf._flag = _IOREAD;
12942 strbuf._ptr = strbuf._base = (unsigned char *) str;
12943 strbuf._cnt = strlen(str);
12944 strbuf._file = _NFILE;
12945 return (_doscan(&strbuf, "%d", ap))
12950 rm -f conftest.$ac_objext conftest$ac_exeext
12951 if { (eval echo "$as_me:12951: \"$ac_link\"") >&5
12952 (eval $ac_link) 2>&5
12954 echo "$as_me:12954: \$? = $ac_status" >&5
12955 (exit $ac_status); } &&
12956 { ac_try='test -s conftest$ac_exeext'
12957 { (eval echo "$as_me:12957: \"$ac_try\"") >&5
12958 (eval $ac_try) 2>&5
12960 echo "$as_me:12960: \$? = $ac_status" >&5
12961 (exit $ac_status); }; }; then
12962 cf_cv_func_vsscanf=_doscan
12964 echo "$as_me: failed program was:" >&5
12965 cat conftest.$ac_ext >&5
12967 cf_cv_func_vsscanf=no
12969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12971 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12975 echo "$as_me:12975: result: $cf_cv_func_vsscanf" >&5
12976 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
12978 case $cf_cv_func_vsscanf in #(vi
12979 vsscanf) cat >>confdefs.h <<\EOF
12980 #define HAVE_VSSCANF 1
12983 vfscanf) cat >>confdefs.h <<\EOF
12984 #define HAVE_VFSCANF 1
12987 _doscan) cat >>confdefs.h <<\EOF
12988 #define HAVE__DOSCAN 1
12993 echo "$as_me:12993: checking for working mkstemp" >&5
12994 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
12995 if test "${cf_cv_func_mkstemp+set}" = set; then
12996 echo $ECHO_N "(cached) $ECHO_C" >&6
13000 if test "$cross_compiling" = yes; then
13001 echo "$as_me:13001: checking for mkstemp" >&5
13002 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
13003 if test "${ac_cv_func_mkstemp+set}" = set; then
13004 echo $ECHO_N "(cached) $ECHO_C" >&6
13006 cat >conftest.$ac_ext <<_ACEOF
13007 #line 13007 "configure"
13008 #include "confdefs.h"
13009 /* System header to define __stub macros and hopefully few prototypes,
13010 which can conflict with char mkstemp (); below. */
13011 #include <assert.h>
13012 /* Override any gcc2 internal prototype to avoid an error. */
13016 /* We use char because int might match the return type of a gcc2
13017 builtin and then its argument prototype would still apply. */
13024 /* The GNU C library defines this for functions which it implements
13025 to always fail with ENOSYS. Some functions are actually named
13026 something starting with __ and the normal name is an alias. */
13027 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
13037 rm -f conftest.$ac_objext conftest$ac_exeext
13038 if { (eval echo "$as_me:13038: \"$ac_link\"") >&5
13039 (eval $ac_link) 2>&5
13041 echo "$as_me:13041: \$? = $ac_status" >&5
13042 (exit $ac_status); } &&
13043 { ac_try='test -s conftest$ac_exeext'
13044 { (eval echo "$as_me:13044: \"$ac_try\"") >&5
13045 (eval $ac_try) 2>&5
13047 echo "$as_me:13047: \$? = $ac_status" >&5
13048 (exit $ac_status); }; }; then
13049 ac_cv_func_mkstemp=yes
13051 echo "$as_me: failed program was:" >&5
13052 cat conftest.$ac_ext >&5
13053 ac_cv_func_mkstemp=no
13055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13057 echo "$as_me:13057: result: $ac_cv_func_mkstemp" >&5
13058 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
13061 cat >conftest.$ac_ext <<_ACEOF
13062 #line 13062 "configure"
13063 #include "confdefs.h"
13065 #include <sys/types.h>
13066 #include <stdlib.h>
13068 #include <string.h>
13069 #include <sys/stat.h>
13072 char *tmpl = "conftestXXXXXX";
13080 for (n = 0; n < 2; ++n) {
13081 strcpy(name[n], tmpl);
13082 if ((fd = mkstemp(name[n])) >= 0) {
13083 if (!strcmp(name[n], tmpl)
13084 || stat(name[n], &sb) != 0
13085 || (sb.st_mode & S_IFMT) != S_IFREG
13086 || (sb.st_mode & 077) != 0) {
13093 && !strcmp(name[0], name[1]))
13095 ${cf_cv_main_return:-return}(result);
13099 rm -f conftest$ac_exeext
13100 if { (eval echo "$as_me:13100: \"$ac_link\"") >&5
13101 (eval $ac_link) 2>&5
13103 echo "$as_me:13103: \$? = $ac_status" >&5
13104 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13105 { (eval echo "$as_me:13105: \"$ac_try\"") >&5
13106 (eval $ac_try) 2>&5
13108 echo "$as_me:13108: \$? = $ac_status" >&5
13109 (exit $ac_status); }; }; then
13110 cf_cv_func_mkstemp=yes
13113 echo "$as_me: program exited with status $ac_status" >&5
13114 echo "$as_me: failed program was:" >&5
13115 cat conftest.$ac_ext >&5
13116 cf_cv_func_mkstemp=no
13119 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13123 echo "$as_me:13123: result: $cf_cv_func_mkstemp" >&5
13124 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
13125 if test "$cf_cv_func_mkstemp" = yes ; then
13126 cat >>confdefs.h <<\EOF
13127 #define HAVE_MKSTEMP 1
13132 # setup for prototype of fallback for vsscanf()
13134 if test "$cf_cv_func_vsscanf" = vsscanf ; then
13140 if test "$cross_compiling" = yes ; then
13141 { echo "$as_me:13141: WARNING: cross compiling: assume setvbuf params not reversed" >&5
13142 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
13144 echo "$as_me:13144: checking whether setvbuf arguments are reversed" >&5
13145 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
13146 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
13147 echo $ECHO_N "(cached) $ECHO_C" >&6
13149 if test "$cross_compiling" = yes; then
13150 { { echo "$as_me:13150: error: cannot run test program while cross compiling" >&5
13151 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13152 { (exit 1); exit 1; }; }
13154 cat >conftest.$ac_ext <<_ACEOF
13155 #line 13155 "configure"
13156 #include "confdefs.h"
13158 /* If setvbuf has the reversed format, exit 0. */
13162 /* This call has the arguments reversed.
13163 A reversed system may check and see that the address of main
13164 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
13165 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
13166 $ac_main_return(1);
13167 putc('\r', stdout);
13168 $ac_main_return(0); /* Non-reversed systems segv here. */
13171 rm -f conftest$ac_exeext
13172 if { (eval echo "$as_me:13172: \"$ac_link\"") >&5
13173 (eval $ac_link) 2>&5
13175 echo "$as_me:13175: \$? = $ac_status" >&5
13176 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13177 { (eval echo "$as_me:13177: \"$ac_try\"") >&5
13178 (eval $ac_try) 2>&5
13180 echo "$as_me:13180: \$? = $ac_status" >&5
13181 (exit $ac_status); }; }; then
13182 ac_cv_func_setvbuf_reversed=yes
13184 echo "$as_me: program exited with status $ac_status" >&5
13185 echo "$as_me: failed program was:" >&5
13186 cat conftest.$ac_ext >&5
13187 ac_cv_func_setvbuf_reversed=no
13189 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13191 rm -f core core.* *.core
13193 echo "$as_me:13193: result: $ac_cv_func_setvbuf_reversed" >&5
13194 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
13195 if test $ac_cv_func_setvbuf_reversed = yes; then
13197 cat >>confdefs.h <<\EOF
13198 #define SETVBUF_REVERSED 1
13204 echo "$as_me:13204: checking return type of signal handlers" >&5
13205 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13206 if test "${ac_cv_type_signal+set}" = set; then
13207 echo $ECHO_N "(cached) $ECHO_C" >&6
13209 cat >conftest.$ac_ext <<_ACEOF
13210 #line 13210 "configure"
13211 #include "confdefs.h"
13212 #include <sys/types.h>
13213 #include <signal.h>
13218 extern "C" void (*signal (int, void (*)(int)))(int);
13220 void (*signal ()) ();
13231 rm -f conftest.$ac_objext
13232 if { (eval echo "$as_me:13232: \"$ac_compile\"") >&5
13233 (eval $ac_compile) 2>&5
13235 echo "$as_me:13235: \$? = $ac_status" >&5
13236 (exit $ac_status); } &&
13237 { ac_try='test -s conftest.$ac_objext'
13238 { (eval echo "$as_me:13238: \"$ac_try\"") >&5
13239 (eval $ac_try) 2>&5
13241 echo "$as_me:13241: \$? = $ac_status" >&5
13242 (exit $ac_status); }; }; then
13243 ac_cv_type_signal=void
13245 echo "$as_me: failed program was:" >&5
13246 cat conftest.$ac_ext >&5
13247 ac_cv_type_signal=int
13249 rm -f conftest.$ac_objext conftest.$ac_ext
13251 echo "$as_me:13251: result: $ac_cv_type_signal" >&5
13252 echo "${ECHO_T}$ac_cv_type_signal" >&6
13254 cat >>confdefs.h <<EOF
13255 #define RETSIGTYPE $ac_cv_type_signal
13258 echo "$as_me:13258: checking for type sigaction_t" >&5
13259 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
13260 if test "${cf_cv_type_sigaction+set}" = set; then
13261 echo $ECHO_N "(cached) $ECHO_C" >&6
13264 cat >conftest.$ac_ext <<_ACEOF
13265 #line 13265 "configure"
13266 #include "confdefs.h"
13268 #include <signal.h>
13277 rm -f conftest.$ac_objext
13278 if { (eval echo "$as_me:13278: \"$ac_compile\"") >&5
13279 (eval $ac_compile) 2>&5
13281 echo "$as_me:13281: \$? = $ac_status" >&5
13282 (exit $ac_status); } &&
13283 { ac_try='test -s conftest.$ac_objext'
13284 { (eval echo "$as_me:13284: \"$ac_try\"") >&5
13285 (eval $ac_try) 2>&5
13287 echo "$as_me:13287: \$? = $ac_status" >&5
13288 (exit $ac_status); }; }; then
13289 cf_cv_type_sigaction=yes
13291 echo "$as_me: failed program was:" >&5
13292 cat conftest.$ac_ext >&5
13293 cf_cv_type_sigaction=no
13295 rm -f conftest.$ac_objext conftest.$ac_ext
13298 echo "$as_me:13298: result: $cf_cv_type_sigaction" >&5
13299 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
13300 test "$cf_cv_type_sigaction" = yes && cat >>confdefs.h <<\EOF
13301 #define HAVE_TYPE_SIGACTION 1
13304 echo "$as_me:13304: checking declaration of size-change" >&5
13305 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
13306 if test "${cf_cv_sizechange+set}" = set; then
13307 echo $ECHO_N "(cached) $ECHO_C" >&6
13310 cf_cv_sizechange=unknown
13311 cf_save_CPPFLAGS="$CPPFLAGS"
13313 for cf_opts in "" "NEED_PTEM_H"
13316 CPPFLAGS="$cf_save_CPPFLAGS"
13317 test -n "$cf_opts" && CPPFLAGS="$CPPFLAGS -D$cf_opts"
13318 cat >conftest.$ac_ext <<_ACEOF
13319 #line 13319 "configure"
13320 #include "confdefs.h"
13321 #include <sys/types.h>
13322 #ifdef HAVE_TERMIOS_H
13323 #include <termios.h>
13325 #ifdef HAVE_TERMIO_H
13326 #include <termio.h>
13330 /* This is a workaround for SCO: they neglected to define struct winsize in
13331 * termios.h -- it's only in termio.h and ptem.h
13333 #include <sys/stream.h>
13334 #include <sys/ptem.h>
13336 #if !defined(sun) || !defined(HAVE_TERMIOS_H)
13337 #include <sys/ioctl.h>
13345 struct ttysize win; /* FIXME: what system is this? */
13346 int y = win.ts_lines;
13347 int x = win.ts_cols;
13350 struct winsize win;
13351 int y = win.ws_row;
13352 int x = win.ws_col;
13354 no TIOCGSIZE or TIOCGWINSZ
13355 #endif /* TIOCGWINSZ */
13356 #endif /* TIOCGSIZE */
13362 rm -f conftest.$ac_objext
13363 if { (eval echo "$as_me:13363: \"$ac_compile\"") >&5
13364 (eval $ac_compile) 2>&5
13366 echo "$as_me:13366: \$? = $ac_status" >&5
13367 (exit $ac_status); } &&
13368 { ac_try='test -s conftest.$ac_objext'
13369 { (eval echo "$as_me:13369: \"$ac_try\"") >&5
13370 (eval $ac_try) 2>&5
13372 echo "$as_me:13372: \$? = $ac_status" >&5
13373 (exit $ac_status); }; }; then
13374 cf_cv_sizechange=yes
13376 echo "$as_me: failed program was:" >&5
13377 cat conftest.$ac_ext >&5
13378 cf_cv_sizechange=no
13380 rm -f conftest.$ac_objext conftest.$ac_ext
13382 CPPFLAGS="$cf_save_CPPFLAGS"
13383 if test "$cf_cv_sizechange" = yes ; then
13384 echo "size-change succeeded ($cf_opts)" >&5
13385 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
13391 echo "$as_me:13391: result: $cf_cv_sizechange" >&5
13392 echo "${ECHO_T}$cf_cv_sizechange" >&6
13393 if test "$cf_cv_sizechange" != no ; then
13394 cat >>confdefs.h <<\EOF
13395 #define HAVE_SIZECHANGE 1
13398 case $cf_cv_sizechange in #(vi
13400 cat >>confdefs.h <<EOF
13401 #define $cf_cv_sizechange 1
13408 echo "$as_me:13408: checking for memmove" >&5
13409 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
13410 if test "${ac_cv_func_memmove+set}" = set; then
13411 echo $ECHO_N "(cached) $ECHO_C" >&6
13413 cat >conftest.$ac_ext <<_ACEOF
13414 #line 13414 "configure"
13415 #include "confdefs.h"
13416 /* System header to define __stub macros and hopefully few prototypes,
13417 which can conflict with char memmove (); below. */
13418 #include <assert.h>
13419 /* Override any gcc2 internal prototype to avoid an error. */
13423 /* We use char because int might match the return type of a gcc2
13424 builtin and then its argument prototype would still apply. */
13431 /* The GNU C library defines this for functions which it implements
13432 to always fail with ENOSYS. Some functions are actually named
13433 something starting with __ and the normal name is an alias. */
13434 #if defined (__stub_memmove) || defined (__stub___memmove)
13444 rm -f conftest.$ac_objext conftest$ac_exeext
13445 if { (eval echo "$as_me:13445: \"$ac_link\"") >&5
13446 (eval $ac_link) 2>&5
13448 echo "$as_me:13448: \$? = $ac_status" >&5
13449 (exit $ac_status); } &&
13450 { ac_try='test -s conftest$ac_exeext'
13451 { (eval echo "$as_me:13451: \"$ac_try\"") >&5
13452 (eval $ac_try) 2>&5
13454 echo "$as_me:13454: \$? = $ac_status" >&5
13455 (exit $ac_status); }; }; then
13456 ac_cv_func_memmove=yes
13458 echo "$as_me: failed program was:" >&5
13459 cat conftest.$ac_ext >&5
13460 ac_cv_func_memmove=no
13462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13464 echo "$as_me:13464: result: $ac_cv_func_memmove" >&5
13465 echo "${ECHO_T}$ac_cv_func_memmove" >&6
13466 if test $ac_cv_func_memmove = yes; then
13470 echo "$as_me:13470: checking for bcopy" >&5
13471 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
13472 if test "${ac_cv_func_bcopy+set}" = set; then
13473 echo $ECHO_N "(cached) $ECHO_C" >&6
13475 cat >conftest.$ac_ext <<_ACEOF
13476 #line 13476 "configure"
13477 #include "confdefs.h"
13478 /* System header to define __stub macros and hopefully few prototypes,
13479 which can conflict with char bcopy (); below. */
13480 #include <assert.h>
13481 /* Override any gcc2 internal prototype to avoid an error. */
13485 /* We use char because int might match the return type of a gcc2
13486 builtin and then its argument prototype would still apply. */
13493 /* The GNU C library defines this for functions which it implements
13494 to always fail with ENOSYS. Some functions are actually named
13495 something starting with __ and the normal name is an alias. */
13496 #if defined (__stub_bcopy) || defined (__stub___bcopy)
13506 rm -f conftest.$ac_objext conftest$ac_exeext
13507 if { (eval echo "$as_me:13507: \"$ac_link\"") >&5
13508 (eval $ac_link) 2>&5
13510 echo "$as_me:13510: \$? = $ac_status" >&5
13511 (exit $ac_status); } &&
13512 { ac_try='test -s conftest$ac_exeext'
13513 { (eval echo "$as_me:13513: \"$ac_try\"") >&5
13514 (eval $ac_try) 2>&5
13516 echo "$as_me:13516: \$? = $ac_status" >&5
13517 (exit $ac_status); }; }; then
13518 ac_cv_func_bcopy=yes
13520 echo "$as_me: failed program was:" >&5
13521 cat conftest.$ac_ext >&5
13522 ac_cv_func_bcopy=no
13524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13526 echo "$as_me:13526: result: $ac_cv_func_bcopy" >&5
13527 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
13528 if test $ac_cv_func_bcopy = yes; then
13530 echo "$as_me:13530: checking if bcopy does overlapping moves" >&5
13531 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
13532 if test "${cf_cv_good_bcopy+set}" = set; then
13533 echo $ECHO_N "(cached) $ECHO_C" >&6
13536 if test "$cross_compiling" = yes; then
13537 cf_cv_good_bcopy=unknown
13539 cat >conftest.$ac_ext <<_ACEOF
13540 #line 13540 "configure"
13541 #include "confdefs.h"
13544 static char data[] = "abcdefghijklmnopqrstuwwxyz";
13546 bcopy(data, temp, sizeof(data));
13547 bcopy(temp+10, temp, 15);
13548 bcopy(temp+5, temp+15, 10);
13549 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
13553 rm -f conftest$ac_exeext
13554 if { (eval echo "$as_me:13554: \"$ac_link\"") >&5
13555 (eval $ac_link) 2>&5
13557 echo "$as_me:13557: \$? = $ac_status" >&5
13558 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13559 { (eval echo "$as_me:13559: \"$ac_try\"") >&5
13560 (eval $ac_try) 2>&5
13562 echo "$as_me:13562: \$? = $ac_status" >&5
13563 (exit $ac_status); }; }; then
13564 cf_cv_good_bcopy=yes
13566 echo "$as_me: program exited with status $ac_status" >&5
13567 echo "$as_me: failed program was:" >&5
13568 cat conftest.$ac_ext >&5
13569 cf_cv_good_bcopy=no
13571 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13575 echo "$as_me:13575: result: $cf_cv_good_bcopy" >&5
13576 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
13579 cf_cv_good_bcopy=no
13582 if test "$cf_cv_good_bcopy" = yes ; then
13583 cat >>confdefs.h <<\EOF
13584 #define USE_OK_BCOPY 1
13588 cat >>confdefs.h <<\EOF
13589 #define USE_MY_MEMMOVE 1
13596 echo "$as_me:13596: checking if poll really works" >&5
13597 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
13598 if test "${cf_cv_working_poll+set}" = set; then
13599 echo $ECHO_N "(cached) $ECHO_C" >&6
13602 if test "$cross_compiling" = yes; then
13603 cf_cv_working_poll=unknown
13605 cat >conftest.$ac_ext <<_ACEOF
13606 #line 13606 "configure"
13607 #include "confdefs.h"
13613 #include <sys/poll.h>
13616 struct pollfd myfds;
13620 myfds.events = POLLIN;
13622 ret = poll(&myfds, 1, 100);
13623 ${cf_cv_main_return:-return}(ret != 0);
13626 rm -f conftest$ac_exeext
13627 if { (eval echo "$as_me:13627: \"$ac_link\"") >&5
13628 (eval $ac_link) 2>&5
13630 echo "$as_me:13630: \$? = $ac_status" >&5
13631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13632 { (eval echo "$as_me:13632: \"$ac_try\"") >&5
13633 (eval $ac_try) 2>&5
13635 echo "$as_me:13635: \$? = $ac_status" >&5
13636 (exit $ac_status); }; }; then
13637 cf_cv_working_poll=yes
13639 echo "$as_me: program exited with status $ac_status" >&5
13640 echo "$as_me: failed program was:" >&5
13641 cat conftest.$ac_ext >&5
13642 cf_cv_working_poll=no
13644 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13647 echo "$as_me:13647: result: $cf_cv_working_poll" >&5
13648 echo "${ECHO_T}$cf_cv_working_poll" >&6
13649 test "$cf_cv_working_poll" = "yes" && cat >>confdefs.h <<\EOF
13650 #define HAVE_WORKING_POLL 1
13653 # special check for test/ditto.c
13655 echo "$as_me:13655: checking for openpty in -lutil" >&5
13656 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
13657 if test "${ac_cv_lib_util_openpty+set}" = set; then
13658 echo $ECHO_N "(cached) $ECHO_C" >&6
13660 ac_check_lib_save_LIBS=$LIBS
13661 LIBS="-lutil $LIBS"
13662 cat >conftest.$ac_ext <<_ACEOF
13663 #line 13663 "configure"
13664 #include "confdefs.h"
13666 /* Override any gcc2 internal prototype to avoid an error. */
13670 /* We use char because int might match the return type of a gcc2
13671 builtin and then its argument prototype would still apply. */
13681 rm -f conftest.$ac_objext conftest$ac_exeext
13682 if { (eval echo "$as_me:13682: \"$ac_link\"") >&5
13683 (eval $ac_link) 2>&5
13685 echo "$as_me:13685: \$? = $ac_status" >&5
13686 (exit $ac_status); } &&
13687 { ac_try='test -s conftest$ac_exeext'
13688 { (eval echo "$as_me:13688: \"$ac_try\"") >&5
13689 (eval $ac_try) 2>&5
13691 echo "$as_me:13691: \$? = $ac_status" >&5
13692 (exit $ac_status); }; }; then
13693 ac_cv_lib_util_openpty=yes
13695 echo "$as_me: failed program was:" >&5
13696 cat conftest.$ac_ext >&5
13697 ac_cv_lib_util_openpty=no
13699 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13700 LIBS=$ac_check_lib_save_LIBS
13702 echo "$as_me:13702: result: $ac_cv_lib_util_openpty" >&5
13703 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
13704 if test $ac_cv_lib_util_openpty = yes; then
13710 echo "$as_me:13710: checking for openpty header" >&5
13711 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
13712 if test "${cf_cv_func_openpty+set}" = set; then
13713 echo $ECHO_N "(cached) $ECHO_C" >&6
13716 cf_save_LIBS="$LIBS"
13717 test $cf_cv_lib_util = yes && LIBS="-lutil $LIBS"
13718 for cf_header in pty.h libutil.h util.h
13720 cat >conftest.$ac_ext <<_ACEOF
13721 #line 13721 "configure"
13722 #include "confdefs.h"
13724 #include <$cf_header>
13730 int x = openpty((int *)0, (int *)0, (char *)0,
13731 (struct termios *)0, (struct winsize *)0);
13737 rm -f conftest.$ac_objext conftest$ac_exeext
13738 if { (eval echo "$as_me:13738: \"$ac_link\"") >&5
13739 (eval $ac_link) 2>&5
13741 echo "$as_me:13741: \$? = $ac_status" >&5
13742 (exit $ac_status); } &&
13743 { ac_try='test -s conftest$ac_exeext'
13744 { (eval echo "$as_me:13744: \"$ac_try\"") >&5
13745 (eval $ac_try) 2>&5
13747 echo "$as_me:13747: \$? = $ac_status" >&5
13748 (exit $ac_status); }; }; then
13750 cf_cv_func_openpty=$cf_header
13754 echo "$as_me: failed program was:" >&5
13755 cat conftest.$ac_ext >&5
13757 cf_cv_func_openpty=no
13760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13762 LIBS="$cf_save_LIBS"
13765 echo "$as_me:13765: result: $cf_cv_func_openpty" >&5
13766 echo "${ECHO_T}$cf_cv_func_openpty" >&6
13768 if test "$cf_cv_func_openpty" != no ; then
13769 cat >>confdefs.h <<EOF
13770 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
13773 cat >>confdefs.h <<\EOF
13774 #define USE_XTERM_PTY 1
13777 if test "$cf_cv_lib_util" = yes ; then
13778 TEST_LIBS="-lutil $TEST_LIBS"
13782 if test "$with_hashed_db" != no ; then
13783 cat >>confdefs.h <<\EOF
13784 #define USE_HASHED_DB 1
13787 case $with_hashed_db in #(vi
13791 if test -d "$with_hashed_db" ; then
13793 if test -n "$with_hashed_db/include" ; then
13794 for cf_add_incdir in $with_hashed_db/include
13796 while test $cf_add_incdir != /usr/include
13798 if test -d $cf_add_incdir
13801 if test -n "$CFLAGS$CPPFLAGS" ; then
13802 # a loop is needed to ensure we can add subdirs of existing dirs
13803 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
13804 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
13805 cf_have_incdir=yes; break
13810 if test "$cf_have_incdir" = no ; then
13811 if test "$cf_add_incdir" = /usr/local/include ; then
13812 if test "$GCC" = yes
13814 cf_save_CPPFLAGS=$CPPFLAGS
13815 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
13816 cat >conftest.$ac_ext <<_ACEOF
13817 #line 13817 "configure"
13818 #include "confdefs.h"
13828 rm -f conftest.$ac_objext
13829 if { (eval echo "$as_me:13829: \"$ac_compile\"") >&5
13830 (eval $ac_compile) 2>&5
13832 echo "$as_me:13832: \$? = $ac_status" >&5
13833 (exit $ac_status); } &&
13834 { ac_try='test -s conftest.$ac_objext'
13835 { (eval echo "$as_me:13835: \"$ac_try\"") >&5
13836 (eval $ac_try) 2>&5
13838 echo "$as_me:13838: \$? = $ac_status" >&5
13839 (exit $ac_status); }; }; then
13842 echo "$as_me: failed program was:" >&5
13843 cat conftest.$ac_ext >&5
13846 rm -f conftest.$ac_objext conftest.$ac_ext
13847 CPPFLAGS=$cf_save_CPPFLAGS
13852 if test "$cf_have_incdir" = no ; then
13853 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
13855 echo "${as_me-configure}:13855: testing adding $cf_add_incdir to include-path ..." 1>&5
13857 CPPFLAGS="-I$cf_add_incdir $CPPFLAGS"
13859 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
13860 test "$cf_top_incdir" = "$cf_add_incdir" && break
13861 cf_add_incdir="$cf_top_incdir"
13870 if test -n "$with_hashed_db/lib" ; then
13871 for cf_add_libdir in $with_hashed_db/lib
13873 if test $cf_add_libdir = /usr/lib ; then
13875 elif test -d $cf_add_libdir
13878 if test -n "$LDFLAGS$LIBS" ; then
13879 # a loop is needed to ensure we can add subdirs of existing dirs
13880 for cf_test_libdir in $LDFLAGS $LIBS ; do
13881 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
13882 cf_have_libdir=yes; break
13886 if test "$cf_have_libdir" = no ; then
13887 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
13889 echo "${as_me-configure}:13889: testing adding $cf_add_libdir to library-path ..." 1>&5
13891 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
13900 echo "$as_me:13900: checking for db.h" >&5
13901 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
13902 if test "${ac_cv_header_db_h+set}" = set; then
13903 echo $ECHO_N "(cached) $ECHO_C" >&6
13905 cat >conftest.$ac_ext <<_ACEOF
13906 #line 13906 "configure"
13907 #include "confdefs.h"
13910 if { (eval echo "$as_me:13910: \"$ac_cpp conftest.$ac_ext\"") >&5
13911 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13913 egrep -v '^ *\+' conftest.er1 >conftest.err
13915 cat conftest.err >&5
13916 echo "$as_me:13916: \$? = $ac_status" >&5
13917 (exit $ac_status); } >/dev/null; then
13918 if test -s conftest.err; then
13919 ac_cpp_err=$ac_c_preproc_warn_flag
13926 if test -z "$ac_cpp_err"; then
13927 ac_cv_header_db_h=yes
13929 echo "$as_me: failed program was:" >&5
13930 cat conftest.$ac_ext >&5
13931 ac_cv_header_db_h=no
13933 rm -f conftest.err conftest.$ac_ext
13935 echo "$as_me:13935: result: $ac_cv_header_db_h" >&5
13936 echo "${ECHO_T}$ac_cv_header_db_h" >&6
13937 if test $ac_cv_header_db_h = yes; then
13939 echo "$as_me:13939: checking for version of db" >&5
13940 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
13941 if test "${cf_cv_hashed_db_version+set}" = set; then
13942 echo $ECHO_N "(cached) $ECHO_C" >&6
13945 cf_cv_hashed_db_version=unknown
13947 for cf_db_version in 1 2 3 4 5
13950 echo "${as_me-configure}:13950: testing checking for db version $cf_db_version ..." 1>&5
13952 cat >conftest.$ac_ext <<_ACEOF
13953 #line 13953 "configure"
13954 #include "confdefs.h"
13956 $ac_includes_default
13959 #ifdef DB_VERSION_MAJOR
13960 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
13961 #if $cf_db_version == DB_VERSION_MAJOR
13967 #if $cf_db_version == 1
13968 /* ok: assuming this is DB 1.8.5 */
13982 rm -f conftest.$ac_objext
13983 if { (eval echo "$as_me:13983: \"$ac_compile\"") >&5
13984 (eval $ac_compile) 2>&5
13986 echo "$as_me:13986: \$? = $ac_status" >&5
13987 (exit $ac_status); } &&
13988 { ac_try='test -s conftest.$ac_objext'
13989 { (eval echo "$as_me:13989: \"$ac_try\"") >&5
13990 (eval $ac_try) 2>&5
13992 echo "$as_me:13992: \$? = $ac_status" >&5
13993 (exit $ac_status); }; }; then
13995 cf_cv_hashed_db_version=$cf_db_version
13999 echo "$as_me: failed program was:" >&5
14000 cat conftest.$ac_ext >&5
14002 rm -f conftest.$ac_objext conftest.$ac_ext
14006 echo "$as_me:14006: result: $cf_cv_hashed_db_version" >&5
14007 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
14009 if test "$cf_cv_hashed_db_version" = unknown ; then
14010 { { echo "$as_me:14010: error: Cannot determine version of db" >&5
14011 echo "$as_me: error: Cannot determine version of db" >&2;}
14012 { (exit 1); exit 1; }; }
14015 echo "$as_me:14015: checking for db libraries" >&5
14016 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
14017 if test "${cf_cv_hashed_db_libs+set}" = set; then
14018 echo $ECHO_N "(cached) $ECHO_C" >&6
14021 cf_cv_hashed_db_libs=unknown
14022 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
14024 cf_save_libs="$LIBS"
14025 if test -n "$cf_db_libs"; then
14026 LIBS="-l$cf_db_libs $LIBS"
14029 echo "${as_me-configure}:14029: testing checking for library "$cf_db_libs" ..." 1>&5
14031 cat >conftest.$ac_ext <<_ACEOF
14032 #line 14032 "configure"
14033 #include "confdefs.h"
14035 $ac_includes_default
14042 char *path = "/tmp/foo";
14043 #ifdef DB_VERSION_MAJOR
14044 #if DB_VERSION_MAJOR >= 4
14046 db_create(&result, NULL, 0);
14047 result->open(result,
14054 #elif DB_VERSION_MAJOR >= 3
14056 db_create(&result, NULL, 0);
14057 result->open(result,
14063 #elif DB_VERSION_MAJOR >= 2
14072 #endif /* DB_VERSION_MAJOR */
14074 DB *result = dbopen(path,
14080 ${cf_cv_main_return:-return}(result != 0)
14086 rm -f conftest.$ac_objext conftest$ac_exeext
14087 if { (eval echo "$as_me:14087: \"$ac_link\"") >&5
14088 (eval $ac_link) 2>&5
14090 echo "$as_me:14090: \$? = $ac_status" >&5
14091 (exit $ac_status); } &&
14092 { ac_try='test -s conftest$ac_exeext'
14093 { (eval echo "$as_me:14093: \"$ac_try\"") >&5
14094 (eval $ac_try) 2>&5
14096 echo "$as_me:14096: \$? = $ac_status" >&5
14097 (exit $ac_status); }; }; then
14099 if test -n "$cf_db_libs" ; then
14100 cf_cv_hashed_db_libs=$cf_db_libs
14102 cf_cv_hashed_db_libs=default
14104 LIBS="$cf_save_libs"
14108 echo "$as_me: failed program was:" >&5
14109 cat conftest.$ac_ext >&5
14111 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14112 LIBS="$cf_save_libs"
14116 echo "$as_me:14116: result: $cf_cv_hashed_db_libs" >&5
14117 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
14119 if test "$cf_cv_hashed_db_libs" = unknown ; then
14120 { { echo "$as_me:14120: error: Cannot determine library for db" >&5
14121 echo "$as_me: error: Cannot determine library for db" >&2;}
14122 { (exit 1); exit 1; }; }
14123 elif test "$cf_cv_hashed_db_libs" != default ; then
14124 LIBS="-l$cf_cv_hashed_db_libs $LIBS"
14130 { { echo "$as_me:14130: error: Cannot find db.h" >&5
14131 echo "$as_me: error: Cannot find db.h" >&2;}
14132 { (exit 1); exit 1; }; }
14138 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
14139 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
14140 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
14143 # Just in case, check if the C compiler has a bool type.
14145 echo "$as_me:14145: checking if we should include stdbool.h" >&5
14146 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
14148 if test "${cf_cv_header_stdbool_h+set}" = set; then
14149 echo $ECHO_N "(cached) $ECHO_C" >&6
14152 cat >conftest.$ac_ext <<_ACEOF
14153 #line 14153 "configure"
14154 #include "confdefs.h"
14164 rm -f conftest.$ac_objext
14165 if { (eval echo "$as_me:14165: \"$ac_compile\"") >&5
14166 (eval $ac_compile) 2>&5
14168 echo "$as_me:14168: \$? = $ac_status" >&5
14169 (exit $ac_status); } &&
14170 { ac_try='test -s conftest.$ac_objext'
14171 { (eval echo "$as_me:14171: \"$ac_try\"") >&5
14172 (eval $ac_try) 2>&5
14174 echo "$as_me:14174: \$? = $ac_status" >&5
14175 (exit $ac_status); }; }; then
14176 cf_cv_header_stdbool_h=0
14178 echo "$as_me: failed program was:" >&5
14179 cat conftest.$ac_ext >&5
14180 cat >conftest.$ac_ext <<_ACEOF
14181 #line 14181 "configure"
14182 #include "confdefs.h"
14185 #include <stdbool.h>
14196 rm -f conftest.$ac_objext
14197 if { (eval echo "$as_me:14197: \"$ac_compile\"") >&5
14198 (eval $ac_compile) 2>&5
14200 echo "$as_me:14200: \$? = $ac_status" >&5
14201 (exit $ac_status); } &&
14202 { ac_try='test -s conftest.$ac_objext'
14203 { (eval echo "$as_me:14203: \"$ac_try\"") >&5
14204 (eval $ac_try) 2>&5
14206 echo "$as_me:14206: \$? = $ac_status" >&5
14207 (exit $ac_status); }; }; then
14208 cf_cv_header_stdbool_h=1
14210 echo "$as_me: failed program was:" >&5
14211 cat conftest.$ac_ext >&5
14212 cf_cv_header_stdbool_h=0
14214 rm -f conftest.$ac_objext conftest.$ac_ext
14216 rm -f conftest.$ac_objext conftest.$ac_ext
14219 if test "$cf_cv_header_stdbool_h" = 1
14220 then echo "$as_me:14220: result: yes" >&5
14221 echo "${ECHO_T}yes" >&6
14222 else echo "$as_me:14222: result: no" >&5
14223 echo "${ECHO_T}no" >&6
14226 echo "$as_me:14226: checking for builtin bool type" >&5
14227 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
14229 if test "${cf_cv_cc_bool_type+set}" = set; then
14230 echo $ECHO_N "(cached) $ECHO_C" >&6
14233 cat >conftest.$ac_ext <<_ACEOF
14234 #line 14234 "configure"
14235 #include "confdefs.h"
14238 #include <sys/types.h>
14248 rm -f conftest.$ac_objext
14249 if { (eval echo "$as_me:14249: \"$ac_compile\"") >&5
14250 (eval $ac_compile) 2>&5
14252 echo "$as_me:14252: \$? = $ac_status" >&5
14253 (exit $ac_status); } &&
14254 { ac_try='test -s conftest.$ac_objext'
14255 { (eval echo "$as_me:14255: \"$ac_try\"") >&5
14256 (eval $ac_try) 2>&5
14258 echo "$as_me:14258: \$? = $ac_status" >&5
14259 (exit $ac_status); }; }; then
14260 cf_cv_cc_bool_type=1
14262 echo "$as_me: failed program was:" >&5
14263 cat conftest.$ac_ext >&5
14264 cf_cv_cc_bool_type=0
14266 rm -f conftest.$ac_objext conftest.$ac_ext
14270 if test "$cf_cv_cc_bool_type" = 1
14271 then echo "$as_me:14271: result: yes" >&5
14272 echo "${ECHO_T}yes" >&6
14273 else echo "$as_me:14273: result: no" >&5
14274 echo "${ECHO_T}no" >&6
14277 # Check for C++ compiler characteristics (and ensure that it's there!)
14278 if test -n "$CXX" ; then
14280 ac_cpp='$CXXCPP $CPPFLAGS'
14281 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14282 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14283 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14284 ac_main_return=return
14286 if test -n "$GXX" ; then
14287 case $cf_cv_system_name in #(vi
14289 cf_stdcpp_libname=stdcpp
14292 cf_stdcpp_libname=stdc++
14295 echo "$as_me:14295: checking for library $cf_stdcpp_libname" >&5
14296 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
14297 if test "${cf_cv_libstdcpp+set}" = set; then
14298 echo $ECHO_N "(cached) $ECHO_C" >&6
14302 LIBS="$LIBS -l$cf_stdcpp_libname"
14303 cat >conftest.$ac_ext <<_ACEOF
14304 #line 14304 "configure"
14305 #include "confdefs.h"
14307 #include <strstream.h>
14313 strstreambuf foo(buf, sizeof(buf))
14319 rm -f conftest.$ac_objext conftest$ac_exeext
14320 if { (eval echo "$as_me:14320: \"$ac_link\"") >&5
14321 (eval $ac_link) 2>&5
14323 echo "$as_me:14323: \$? = $ac_status" >&5
14324 (exit $ac_status); } &&
14325 { ac_try='test -s conftest$ac_exeext'
14326 { (eval echo "$as_me:14326: \"$ac_try\"") >&5
14327 (eval $ac_try) 2>&5
14329 echo "$as_me:14329: \$? = $ac_status" >&5
14330 (exit $ac_status); }; }; then
14331 cf_cv_libstdcpp=yes
14333 echo "$as_me: failed program was:" >&5
14334 cat conftest.$ac_ext >&5
14337 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14341 echo "$as_me:14341: result: $cf_cv_libstdcpp" >&5
14342 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
14343 test "$cf_cv_libstdcpp" = yes && CXXLIBS="$CXXLIBS -l$cf_stdcpp_libname"
14346 echo "$as_me:14346: checking whether $CXX understands -c and -o together" >&5
14347 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
14348 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
14349 echo $ECHO_N "(cached) $ECHO_C" >&6
14352 cat > conftest.$ac_ext <<CF_EOF
14356 ${cf_cv_main_return:-return}(0);
14359 # We do the test twice because some compilers refuse to overwrite an
14360 # existing .o file with -o, though they will create one.
14361 ac_try='$CXX -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
14362 if { (eval echo "$as_me:14362: \"$ac_try\"") >&5
14363 (eval $ac_try) 2>&5
14365 echo "$as_me:14365: \$? = $ac_status" >&5
14366 (exit $ac_status); } &&
14367 test -f conftest2.$ac_objext && { (eval echo "$as_me:14367: \"$ac_try\"") >&5
14368 (eval $ac_try) 2>&5
14370 echo "$as_me:14370: \$? = $ac_status" >&5
14371 (exit $ac_status); };
14373 eval cf_cv_prog_CXX_c_o=yes
14375 eval cf_cv_prog_CXX_c_o=no
14380 if test $cf_cv_prog_CXX_c_o = yes; then
14381 echo "$as_me:14381: result: yes" >&5
14382 echo "${ECHO_T}yes" >&6
14384 echo "$as_me:14384: result: no" >&5
14385 echo "${ECHO_T}no" >&6
14388 case $GXX_VERSION in
14394 cf_cxx_library=unknown
14395 case $cf_cv_system_name in #(vi
14403 if test "$GXX" = yes; then
14404 echo "$as_me:14404: checking for lib$cf_gpp_libname" >&5
14405 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
14407 LIBS="$LIBS -l$cf_gpp_libname"
14408 cat >conftest.$ac_ext <<_ACEOF
14409 #line 14409 "configure"
14410 #include "confdefs.h"
14412 #include <$cf_gpp_libname/builtin.h>
14417 two_arg_error_handler_t foo2 = lib_error_handler
14422 rm -f conftest.$ac_objext conftest$ac_exeext
14423 if { (eval echo "$as_me:14423: \"$ac_link\"") >&5
14424 (eval $ac_link) 2>&5
14426 echo "$as_me:14426: \$? = $ac_status" >&5
14427 (exit $ac_status); } &&
14428 { ac_try='test -s conftest$ac_exeext'
14429 { (eval echo "$as_me:14429: \"$ac_try\"") >&5
14430 (eval $ac_try) 2>&5
14432 echo "$as_me:14432: \$? = $ac_status" >&5
14433 (exit $ac_status); }; }; then
14435 CXXLIBS="$CXXLIBS -l$cf_gpp_libname"
14436 if test "$cf_gpp_libname" = cpp ; then
14437 cat >>confdefs.h <<\EOF
14438 #define HAVE_GPP_BUILTIN_H 1
14442 cat >>confdefs.h <<\EOF
14443 #define HAVE_GXX_BUILTIN_H 1
14448 echo "$as_me: failed program was:" >&5
14449 cat conftest.$ac_ext >&5
14450 cat >conftest.$ac_ext <<_ACEOF
14451 #line 14451 "configure"
14452 #include "confdefs.h"
14454 #include <builtin.h>
14459 two_arg_error_handler_t foo2 = lib_error_handler
14464 rm -f conftest.$ac_objext conftest$ac_exeext
14465 if { (eval echo "$as_me:14465: \"$ac_link\"") >&5
14466 (eval $ac_link) 2>&5
14468 echo "$as_me:14468: \$? = $ac_status" >&5
14469 (exit $ac_status); } &&
14470 { ac_try='test -s conftest$ac_exeext'
14471 { (eval echo "$as_me:14471: \"$ac_try\"") >&5
14472 (eval $ac_try) 2>&5
14474 echo "$as_me:14474: \$? = $ac_status" >&5
14475 (exit $ac_status); }; }; then
14477 CXXLIBS="$CXXLIBS -l$cf_gpp_libname"
14478 cat >>confdefs.h <<\EOF
14479 #define HAVE_BUILTIN_H 1
14483 echo "$as_me: failed program was:" >&5
14484 cat conftest.$ac_ext >&5
14487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14489 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14491 echo "$as_me:14491: result: $cf_cxx_library" >&5
14492 echo "${ECHO_T}$cf_cxx_library" >&6
14502 ac_cpp='$CXXCPP $CPPFLAGS'
14503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14504 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14506 ac_main_return=return
14507 echo "$as_me:14507: checking how to run the C++ preprocessor" >&5
14508 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
14509 if test -z "$CXXCPP"; then
14510 if test "${ac_cv_prog_CXXCPP+set}" = set; then
14511 echo $ECHO_N "(cached) $ECHO_C" >&6
14513 # Double quotes because CXXCPP needs to be expanded
14514 for CXXCPP in "$CXX -E" "/lib/cpp"
14516 ac_preproc_ok=false
14517 for ac_cxx_preproc_warn_flag in '' yes
14519 # Use a header file that comes with gcc, so configuring glibc
14520 # with a fresh cross-compiler works.
14521 # On the NeXT, cc -E runs the code through the compiler's parser,
14522 # not just through cpp. "Syntax error" is here to catch this case.
14523 cat >conftest.$ac_ext <<_ACEOF
14524 #line 14524 "configure"
14525 #include "confdefs.h"
14526 #include <assert.h>
14529 if { (eval echo "$as_me:14529: \"$ac_cpp conftest.$ac_ext\"") >&5
14530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14532 egrep -v '^ *\+' conftest.er1 >conftest.err
14534 cat conftest.err >&5
14535 echo "$as_me:14535: \$? = $ac_status" >&5
14536 (exit $ac_status); } >/dev/null; then
14537 if test -s conftest.err; then
14538 ac_cpp_err=$ac_cxx_preproc_warn_flag
14545 if test -z "$ac_cpp_err"; then
14548 echo "$as_me: failed program was:" >&5
14549 cat conftest.$ac_ext >&5
14550 # Broken: fails on valid input.
14553 rm -f conftest.err conftest.$ac_ext
14555 # OK, works on sane cases. Now check whether non-existent headers
14556 # can be detected and how.
14557 cat >conftest.$ac_ext <<_ACEOF
14558 #line 14558 "configure"
14559 #include "confdefs.h"
14560 #include <ac_nonexistent.h>
14562 if { (eval echo "$as_me:14562: \"$ac_cpp conftest.$ac_ext\"") >&5
14563 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14565 egrep -v '^ *\+' conftest.er1 >conftest.err
14567 cat conftest.err >&5
14568 echo "$as_me:14568: \$? = $ac_status" >&5
14569 (exit $ac_status); } >/dev/null; then
14570 if test -s conftest.err; then
14571 ac_cpp_err=$ac_cxx_preproc_warn_flag
14578 if test -z "$ac_cpp_err"; then
14579 # Broken: success on invalid input.
14582 echo "$as_me: failed program was:" >&5
14583 cat conftest.$ac_ext >&5
14584 # Passes both tests.
14588 rm -f conftest.err conftest.$ac_ext
14591 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14592 rm -f conftest.err conftest.$ac_ext
14593 if $ac_preproc_ok; then
14598 ac_cv_prog_CXXCPP=$CXXCPP
14601 CXXCPP=$ac_cv_prog_CXXCPP
14603 ac_cv_prog_CXXCPP=$CXXCPP
14605 echo "$as_me:14605: result: $CXXCPP" >&5
14606 echo "${ECHO_T}$CXXCPP" >&6
14607 ac_preproc_ok=false
14608 for ac_cxx_preproc_warn_flag in '' yes
14610 # Use a header file that comes with gcc, so configuring glibc
14611 # with a fresh cross-compiler works.
14612 # On the NeXT, cc -E runs the code through the compiler's parser,
14613 # not just through cpp. "Syntax error" is here to catch this case.
14614 cat >conftest.$ac_ext <<_ACEOF
14615 #line 14615 "configure"
14616 #include "confdefs.h"
14617 #include <assert.h>
14620 if { (eval echo "$as_me:14620: \"$ac_cpp conftest.$ac_ext\"") >&5
14621 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14623 egrep -v '^ *\+' conftest.er1 >conftest.err
14625 cat conftest.err >&5
14626 echo "$as_me:14626: \$? = $ac_status" >&5
14627 (exit $ac_status); } >/dev/null; then
14628 if test -s conftest.err; then
14629 ac_cpp_err=$ac_cxx_preproc_warn_flag
14636 if test -z "$ac_cpp_err"; then
14639 echo "$as_me: failed program was:" >&5
14640 cat conftest.$ac_ext >&5
14641 # Broken: fails on valid input.
14644 rm -f conftest.err conftest.$ac_ext
14646 # OK, works on sane cases. Now check whether non-existent headers
14647 # can be detected and how.
14648 cat >conftest.$ac_ext <<_ACEOF
14649 #line 14649 "configure"
14650 #include "confdefs.h"
14651 #include <ac_nonexistent.h>
14653 if { (eval echo "$as_me:14653: \"$ac_cpp conftest.$ac_ext\"") >&5
14654 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14656 egrep -v '^ *\+' conftest.er1 >conftest.err
14658 cat conftest.err >&5
14659 echo "$as_me:14659: \$? = $ac_status" >&5
14660 (exit $ac_status); } >/dev/null; then
14661 if test -s conftest.err; then
14662 ac_cpp_err=$ac_cxx_preproc_warn_flag
14669 if test -z "$ac_cpp_err"; then
14670 # Broken: success on invalid input.
14673 echo "$as_me: failed program was:" >&5
14674 cat conftest.$ac_ext >&5
14675 # Passes both tests.
14679 rm -f conftest.err conftest.$ac_ext
14682 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14683 rm -f conftest.err conftest.$ac_ext
14684 if $ac_preproc_ok; then
14687 { { echo "$as_me:14687: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
14688 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
14689 { (exit 1); exit 1; }; }
14693 ac_cpp='$CXXCPP $CPPFLAGS'
14694 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14695 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14696 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14697 ac_main_return=return
14699 for ac_header in iostream typeinfo
14701 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14702 echo "$as_me:14702: checking for $ac_header" >&5
14703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14705 echo $ECHO_N "(cached) $ECHO_C" >&6
14707 cat >conftest.$ac_ext <<_ACEOF
14708 #line 14708 "configure"
14709 #include "confdefs.h"
14710 #include <$ac_header>
14712 if { (eval echo "$as_me:14712: \"$ac_cpp conftest.$ac_ext\"") >&5
14713 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14715 egrep -v '^ *\+' conftest.er1 >conftest.err
14717 cat conftest.err >&5
14718 echo "$as_me:14718: \$? = $ac_status" >&5
14719 (exit $ac_status); } >/dev/null; then
14720 if test -s conftest.err; then
14721 ac_cpp_err=$ac_cxx_preproc_warn_flag
14728 if test -z "$ac_cpp_err"; then
14729 eval "$as_ac_Header=yes"
14731 echo "$as_me: failed program was:" >&5
14732 cat conftest.$ac_ext >&5
14733 eval "$as_ac_Header=no"
14735 rm -f conftest.err conftest.$ac_ext
14737 echo "$as_me:14737: result: `eval echo '${'$as_ac_Header'}'`" >&5
14738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14740 cat >>confdefs.h <<EOF
14741 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14747 echo "$as_me:14747: checking if we should include stdbool.h" >&5
14748 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
14750 if test "${cf_cv_header_stdbool_h+set}" = set; then
14751 echo $ECHO_N "(cached) $ECHO_C" >&6
14754 cat >conftest.$ac_ext <<_ACEOF
14755 #line 14755 "configure"
14756 #include "confdefs.h"
14766 rm -f conftest.$ac_objext
14767 if { (eval echo "$as_me:14767: \"$ac_compile\"") >&5
14768 (eval $ac_compile) 2>&5
14770 echo "$as_me:14770: \$? = $ac_status" >&5
14771 (exit $ac_status); } &&
14772 { ac_try='test -s conftest.$ac_objext'
14773 { (eval echo "$as_me:14773: \"$ac_try\"") >&5
14774 (eval $ac_try) 2>&5
14776 echo "$as_me:14776: \$? = $ac_status" >&5
14777 (exit $ac_status); }; }; then
14778 cf_cv_header_stdbool_h=0
14780 echo "$as_me: failed program was:" >&5
14781 cat conftest.$ac_ext >&5
14782 cat >conftest.$ac_ext <<_ACEOF
14783 #line 14783 "configure"
14784 #include "confdefs.h"
14787 #include <stdbool.h>
14798 rm -f conftest.$ac_objext
14799 if { (eval echo "$as_me:14799: \"$ac_compile\"") >&5
14800 (eval $ac_compile) 2>&5
14802 echo "$as_me:14802: \$? = $ac_status" >&5
14803 (exit $ac_status); } &&
14804 { ac_try='test -s conftest.$ac_objext'
14805 { (eval echo "$as_me:14805: \"$ac_try\"") >&5
14806 (eval $ac_try) 2>&5
14808 echo "$as_me:14808: \$? = $ac_status" >&5
14809 (exit $ac_status); }; }; then
14810 cf_cv_header_stdbool_h=1
14812 echo "$as_me: failed program was:" >&5
14813 cat conftest.$ac_ext >&5
14814 cf_cv_header_stdbool_h=0
14816 rm -f conftest.$ac_objext conftest.$ac_ext
14818 rm -f conftest.$ac_objext conftest.$ac_ext
14821 if test "$cf_cv_header_stdbool_h" = 1
14822 then echo "$as_me:14822: result: yes" >&5
14823 echo "${ECHO_T}yes" >&6
14824 else echo "$as_me:14824: result: no" >&5
14825 echo "${ECHO_T}no" >&6
14828 echo "$as_me:14828: checking for builtin bool type" >&5
14829 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
14831 if test "${cf_cv_builtin_bool+set}" = set; then
14832 echo $ECHO_N "(cached) $ECHO_C" >&6
14835 cat >conftest.$ac_ext <<_ACEOF
14836 #line 14836 "configure"
14837 #include "confdefs.h"
14840 #include <sys/types.h>
14850 rm -f conftest.$ac_objext
14851 if { (eval echo "$as_me:14851: \"$ac_compile\"") >&5
14852 (eval $ac_compile) 2>&5
14854 echo "$as_me:14854: \$? = $ac_status" >&5
14855 (exit $ac_status); } &&
14856 { ac_try='test -s conftest.$ac_objext'
14857 { (eval echo "$as_me:14857: \"$ac_try\"") >&5
14858 (eval $ac_try) 2>&5
14860 echo "$as_me:14860: \$? = $ac_status" >&5
14861 (exit $ac_status); }; }; then
14862 cf_cv_builtin_bool=1
14864 echo "$as_me: failed program was:" >&5
14865 cat conftest.$ac_ext >&5
14866 cf_cv_builtin_bool=0
14868 rm -f conftest.$ac_objext conftest.$ac_ext
14872 if test "$cf_cv_builtin_bool" = 1
14873 then echo "$as_me:14873: result: yes" >&5
14874 echo "${ECHO_T}yes" >&6
14875 else echo "$as_me:14875: result: no" >&5
14876 echo "${ECHO_T}no" >&6
14879 echo "$as_me:14879: checking for size of bool" >&5
14880 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
14881 if test "${cf_cv_type_of_bool+set}" = set; then
14882 echo $ECHO_N "(cached) $ECHO_C" >&6
14886 if test "$cross_compiling" = yes; then
14887 cf_cv_type_of_bool=unknown
14889 cat >conftest.$ac_ext <<_ACEOF
14890 #line 14890 "configure"
14891 #include "confdefs.h"
14893 #include <stdlib.h>
14896 #if defined(__cplusplus)
14898 #ifdef HAVE_GXX_BUILTIN_H
14899 #include <g++/builtin.h>
14900 #elif HAVE_GPP_BUILTIN_H
14901 #include <gpp/builtin.h>
14902 #elif HAVE_BUILTIN_H
14903 #include <builtin.h>
14908 #if $cf_cv_header_stdbool_h
14909 #include <stdbool.h>
14916 FILE *fp = fopen("cf_test.out", "w");
14919 if ((bool)(-x) >= 0)
14920 fputs("unsigned ", fp);
14921 if (sizeof(x) == sizeof(int)) fputs("int", fp);
14922 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
14923 else if (sizeof(x) == sizeof(short))fputs("short",fp);
14924 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
14927 ${cf_cv_main_return:-return}(0);
14931 rm -f conftest$ac_exeext
14932 if { (eval echo "$as_me:14932: \"$ac_link\"") >&5
14933 (eval $ac_link) 2>&5
14935 echo "$as_me:14935: \$? = $ac_status" >&5
14936 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14937 { (eval echo "$as_me:14937: \"$ac_try\"") >&5
14938 (eval $ac_try) 2>&5
14940 echo "$as_me:14940: \$? = $ac_status" >&5
14941 (exit $ac_status); }; }; then
14942 cf_cv_type_of_bool=`cat cf_test.out`
14943 if test -z "$cf_cv_type_of_bool"; then
14944 cf_cv_type_of_bool=unknown
14947 echo "$as_me: program exited with status $ac_status" >&5
14948 echo "$as_me: failed program was:" >&5
14949 cat conftest.$ac_ext >&5
14950 cf_cv_type_of_bool=unknown
14952 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14958 echo "$as_me:14958: result: $cf_cv_type_of_bool" >&5
14959 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
14960 if test "$cf_cv_type_of_bool" = unknown ; then
14961 case .$NCURSES_BOOL in #(vi
14962 .auto|.) NCURSES_BOOL=unsigned;;
14964 { echo "$as_me:14964: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
14965 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
14966 cf_cv_type_of_bool=$NCURSES_BOOL
14969 echo "$as_me:14969: checking for special defines needed for etip.h" >&5
14970 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
14971 cf_save_CXXFLAGS="$CXXFLAGS"
14973 for cf_math in "" MATH_H
14975 for cf_excp in "" MATH_EXCEPTION
14977 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -I${srcdir}/include"
14978 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
14979 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
14980 cat >conftest.$ac_ext <<_ACEOF
14981 #line 14981 "configure"
14982 #include "confdefs.h"
14984 #include <etip.h.in>
14994 rm -f conftest.$ac_objext
14995 if { (eval echo "$as_me:14995: \"$ac_compile\"") >&5
14996 (eval $ac_compile) 2>&5
14998 echo "$as_me:14998: \$? = $ac_status" >&5
14999 (exit $ac_status); } &&
15000 { ac_try='test -s conftest.$ac_objext'
15001 { (eval echo "$as_me:15001: \"$ac_try\"") >&5
15002 (eval $ac_try) 2>&5
15004 echo "$as_me:15004: \$? = $ac_status" >&5
15005 (exit $ac_status); }; }; then
15007 test -n "$cf_math" && cat >>confdefs.h <<EOF
15008 #define ETIP_NEEDS_${cf_math} 1
15011 test -n "$cf_excp" && cat >>confdefs.h <<EOF
15012 #define ETIP_NEEDS_${cf_excp} 1
15015 cf_result="$cf_math $cf_excp"
15019 echo "$as_me: failed program was:" >&5
15020 cat conftest.$ac_ext >&5
15022 rm -f conftest.$ac_objext conftest.$ac_ext
15025 echo "$as_me:15025: result: $cf_result" >&5
15026 echo "${ECHO_T}$cf_result" >&6
15027 CXXFLAGS="$cf_save_CXXFLAGS"
15029 if test -n "$CXX"; then
15030 echo "$as_me:15030: checking if $CXX accepts parameter initialization" >&5
15031 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
15032 if test "${cf_cv_cpp_param_init+set}" = set; then
15033 echo $ECHO_N "(cached) $ECHO_C" >&6
15037 ac_cpp='$CXXCPP $CPPFLAGS'
15038 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15039 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15040 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15041 ac_main_return=return
15043 if test "$cross_compiling" = yes; then
15044 cf_cv_cpp_param_init=unknown
15046 cat >conftest.$ac_ext <<_ACEOF
15047 #line 15047 "configure"
15048 #include "confdefs.h"
15058 TEST::TEST(int x = 1) // some compilers do not like second initializer
15065 rm -f conftest$ac_exeext
15066 if { (eval echo "$as_me:15066: \"$ac_link\"") >&5
15067 (eval $ac_link) 2>&5
15069 echo "$as_me:15069: \$? = $ac_status" >&5
15070 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15071 { (eval echo "$as_me:15071: \"$ac_try\"") >&5
15072 (eval $ac_try) 2>&5
15074 echo "$as_me:15074: \$? = $ac_status" >&5
15075 (exit $ac_status); }; }; then
15076 cf_cv_cpp_param_init=yes
15078 echo "$as_me: program exited with status $ac_status" >&5
15079 echo "$as_me: failed program was:" >&5
15080 cat conftest.$ac_ext >&5
15081 cf_cv_cpp_param_init=no
15083 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15086 ac_cpp='$CXXCPP $CPPFLAGS'
15087 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15088 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15089 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15090 ac_main_return=return
15093 echo "$as_me:15093: result: $cf_cv_cpp_param_init" >&5
15094 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
15096 test "$cf_cv_cpp_param_init" = yes && cat >>confdefs.h <<\EOF
15097 #define CPP_HAS_PARAM_INIT 1
15100 if test -n "$CXX"; then
15102 echo "$as_me:15102: checking if $CXX accepts static_cast" >&5
15103 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
15104 if test "${cf_cv_cpp_static_cast+set}" = set; then
15105 echo $ECHO_N "(cached) $ECHO_C" >&6
15109 ac_cpp='$CXXCPP $CPPFLAGS'
15110 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15111 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15112 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15113 ac_main_return=return
15115 cat >conftest.$ac_ext <<_ACEOF
15116 #line 15116 "configure"
15117 #include "confdefs.h"
15122 NCursesPanel(int nlines,
15132 template<class T> class NCursesUserPanel : public NCursesPanel
15135 NCursesUserPanel (int nlines,
15139 const T* p_UserData = static_cast<T*>(0))
15140 : NCursesPanel (nlines, ncols, begin_y, begin_x)
15143 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
15147 virtual ~NCursesUserPanel() {};
15154 const char* p_UserData = static_cast<char*>(0)
15159 rm -f conftest.$ac_objext
15160 if { (eval echo "$as_me:15160: \"$ac_compile\"") >&5
15161 (eval $ac_compile) 2>&5
15163 echo "$as_me:15163: \$? = $ac_status" >&5
15164 (exit $ac_status); } &&
15165 { ac_try='test -s conftest.$ac_objext'
15166 { (eval echo "$as_me:15166: \"$ac_try\"") >&5
15167 (eval $ac_try) 2>&5
15169 echo "$as_me:15169: \$? = $ac_status" >&5
15170 (exit $ac_status); }; }; then
15171 cf_cv_cpp_static_cast=yes
15173 echo "$as_me: failed program was:" >&5
15174 cat conftest.$ac_ext >&5
15175 cf_cv_cpp_static_cast=no
15177 rm -f conftest.$ac_objext conftest.$ac_ext
15180 ac_cpp='$CXXCPP $CPPFLAGS'
15181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15184 ac_main_return=return
15187 echo "$as_me:15187: result: $cf_cv_cpp_static_cast" >&5
15188 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
15192 test "$cf_cv_cpp_static_cast" = yes && cat >>confdefs.h <<\EOF
15193 #define CPP_HAS_STATIC_CAST 1
15197 CXX_AR_OPTS='$(AR_OPTS)'
15198 case $cf_cv_system_name in #(vi
15200 if test "$GXX" != yes ; then
15202 CXX_AR_OPTS='-ar -o'
15206 CXXLDFLAGS="-u main"
15209 if test "$GXX" != yes ; then
15211 CXX_AR_OPTS='-xar -o'
15218 cf_cv_builtin_bool=1
15220 # Just because we are not configuring against C++ right now does not
15221 # mean that a user will not want to use C++. Some distributors disable
15222 # the C++ portion of this configuration as a shortcut (or just to avoid
15223 # compiling the demo in the c++ directory). So we need a reasonable
15224 # default for the 'bool' type.
15226 # Caveat: since the storage of the bool type is not standardized, it
15229 if test "$NCURSES_BOOL" != auto ; then
15230 cf_cv_type_of_bool=$NCURSES_BOOL
15231 cf_cv_header_stdbool_h=0
15233 if test "$cf_cv_header_stdbool_h" = 1 ; then
15235 echo "$as_me:15235: checking for size of bool" >&5
15236 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
15237 if test "${cf_cv_type_of_bool+set}" = set; then
15238 echo $ECHO_N "(cached) $ECHO_C" >&6
15242 if test "$cross_compiling" = yes; then
15243 cf_cv_type_of_bool=unknown
15245 cat >conftest.$ac_ext <<_ACEOF
15246 #line 15246 "configure"
15247 #include "confdefs.h"
15249 #include <stdlib.h>
15252 #if defined(__cplusplus)
15254 #ifdef HAVE_GXX_BUILTIN_H
15255 #include <g++/builtin.h>
15256 #elif HAVE_GPP_BUILTIN_H
15257 #include <gpp/builtin.h>
15258 #elif HAVE_BUILTIN_H
15259 #include <builtin.h>
15264 #if $cf_cv_header_stdbool_h
15265 #include <stdbool.h>
15272 FILE *fp = fopen("cf_test.out", "w");
15275 if ((bool)(-x) >= 0)
15276 fputs("unsigned ", fp);
15277 if (sizeof(x) == sizeof(int)) fputs("int", fp);
15278 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
15279 else if (sizeof(x) == sizeof(short))fputs("short",fp);
15280 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
15283 ${cf_cv_main_return:-return}(0);
15287 rm -f conftest$ac_exeext
15288 if { (eval echo "$as_me:15288: \"$ac_link\"") >&5
15289 (eval $ac_link) 2>&5
15291 echo "$as_me:15291: \$? = $ac_status" >&5
15292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15293 { (eval echo "$as_me:15293: \"$ac_try\"") >&5
15294 (eval $ac_try) 2>&5
15296 echo "$as_me:15296: \$? = $ac_status" >&5
15297 (exit $ac_status); }; }; then
15298 cf_cv_type_of_bool=`cat cf_test.out`
15299 if test -z "$cf_cv_type_of_bool"; then
15300 cf_cv_type_of_bool=unknown
15303 echo "$as_me: program exited with status $ac_status" >&5
15304 echo "$as_me: failed program was:" >&5
15305 cat conftest.$ac_ext >&5
15306 cf_cv_type_of_bool=unknown
15308 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15314 echo "$as_me:15314: result: $cf_cv_type_of_bool" >&5
15315 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
15316 if test "$cf_cv_type_of_bool" = unknown ; then
15317 case .$NCURSES_BOOL in #(vi
15318 .auto|.) NCURSES_BOOL=unsigned;;
15320 { echo "$as_me:15320: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
15321 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
15322 cf_cv_type_of_bool=$NCURSES_BOOL
15326 echo "$as_me:15326: checking for fallback type of bool" >&5
15327 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
15328 case "$host_cpu" in #(vi
15329 i?86) cf_cv_type_of_bool=char ;; #(vi
15330 *) cf_cv_type_of_bool=int ;;
15332 echo "$as_me:15332: result: $cf_cv_type_of_bool" >&5
15333 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
15338 # If the C compiler did not declare bool, and we did not determine that the C++
15339 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
15340 # ncurses library use the same type as C++ bool. Note that this allows one to
15341 # specify the type of bool in a configure-script option and postpone
15342 # integration with the C++ compiler provided that the types are compatible.
15344 if test $cf_cv_cc_bool_type = 1
15346 # oops: C has a bool. Unlikely, but C++ could differ.
15348 elif test $cf_cv_builtin_bool = 0
15353 # this is the normal case
15354 USE_CXX_BOOL='defined(__cplusplus)'
15357 if test -f "${srcdir}/Ada95/Makefile.in" ; then
15359 if test "$cf_with_ada" != "no" ; then
15360 if test "$with_libtool" != "no"; then
15361 { echo "$as_me:15361: WARNING: libtool does not support Ada - disabling feature" >&5
15362 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
15367 if test "$cf_with_ada" != "no" ; then
15368 cf_ada_make=gnatmake
15369 # Extract the first word of "$cf_ada_make", so it can be a program name with args.
15370 set dummy $cf_ada_make; ac_word=$2
15371 echo "$as_me:15371: checking for $ac_word" >&5
15372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15373 if test "${ac_cv_prog_gnat_exists+set}" = set; then
15374 echo $ECHO_N "(cached) $ECHO_C" >&6
15376 if test -n "$gnat_exists"; then
15377 ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test.
15379 ac_save_IFS=$IFS; IFS=$ac_path_separator
15381 for ac_dir in $ac_dummy; do
15383 test -z "$ac_dir" && ac_dir=.
15384 $as_executable_p "$ac_dir/$ac_word" || continue
15385 ac_cv_prog_gnat_exists="yes"
15386 echo "$as_me:15386: found $ac_dir/$ac_word" >&5
15390 test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no"
15393 gnat_exists=$ac_cv_prog_gnat_exists
15394 if test -n "$gnat_exists"; then
15395 echo "$as_me:15395: result: $gnat_exists" >&5
15396 echo "${ECHO_T}$gnat_exists" >&6
15398 echo "$as_me:15398: result: no" >&5
15399 echo "${ECHO_T}no" >&6
15402 if test "$ac_cv_prog_gnat_exists" = no; then
15406 echo "$as_me:15406: checking for gnat version" >&5
15407 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
15408 cf_gnat_version=`${cf_ada_make-gnatmake} -v 2>&1 | grep '[0-9].[0-9][0-9]*' |\
15409 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
15410 echo "$as_me:15410: result: $cf_gnat_version" >&5
15411 echo "${ECHO_T}$cf_gnat_version" >&6
15413 case $cf_gnat_version in
15414 3.1[1-9]*|3.[2-9]*|[4-9].*)
15415 cf_cv_prog_gnat_correct=yes
15417 *) echo Unsupported GNAT version $cf_gnat_version. Required is 3.11 or better. Disabling Ada95 binding.
15418 cf_cv_prog_gnat_correct=no
15421 case $cf_gnat_version in
15423 cf_compile_generics=generics
15424 cf_generic_objects="\${GENOBJS}"
15426 *) cf_compile_generics=
15427 cf_generic_objects=
15431 # Extract the first word of "m4", so it can be a program name with args.
15432 set dummy m4; ac_word=$2
15433 echo "$as_me:15433: checking for $ac_word" >&5
15434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15435 if test "${ac_cv_prog_M4_exists+set}" = set; then
15436 echo $ECHO_N "(cached) $ECHO_C" >&6
15438 if test -n "$M4_exists"; then
15439 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
15441 ac_save_IFS=$IFS; IFS=$ac_path_separator
15443 for ac_dir in $ac_dummy; do
15445 test -z "$ac_dir" && ac_dir=.
15446 $as_executable_p "$ac_dir/$ac_word" || continue
15447 ac_cv_prog_M4_exists="yes"
15448 echo "$as_me:15448: found $ac_dir/$ac_word" >&5
15452 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
15455 M4_exists=$ac_cv_prog_M4_exists
15456 if test -n "$M4_exists"; then
15457 echo "$as_me:15457: result: $M4_exists" >&5
15458 echo "${ECHO_T}$M4_exists" >&6
15460 echo "$as_me:15460: result: no" >&5
15461 echo "${ECHO_T}no" >&6
15464 if test "$ac_cv_prog_M4_exists" = no; then
15465 cf_cv_prog_gnat_correct=no
15466 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
15468 if test "$cf_cv_prog_gnat_correct" = yes; then
15469 echo "$as_me:15469: checking if GNAT works" >&5
15470 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
15473 cat >>conftest.ads <<CF_EOF
15474 procedure conftest;
15476 cat >>conftest.adb <<CF_EOF
15479 procedure conftest is
15481 Text_IO.Put ("Hello World");
15483 GNAT.OS_Lib.OS_Exit (0);
15486 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
15487 if ( ./conftest 1>&5 2>&1 ) ; then
15488 cf_cv_prog_gnat_correct=yes
15490 cf_cv_prog_gnat_correct=no
15493 cf_cv_prog_gnat_correct=no
15497 echo "$as_me:15497: result: $cf_cv_prog_gnat_correct" >&5
15498 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
15501 if test "$cf_cv_prog_gnat_correct" = yes; then
15502 ADAFLAGS="-O3 -gnatpn $ADAFLAGS"
15504 echo "$as_me:15504: checking if GNAT pragma Unreferenced works" >&5
15505 echo $ECHO_N "checking if GNAT pragma Unreferenced works... $ECHO_C" >&6
15508 cat >>conftest.ads <<CF_EOF
15509 procedure conftest;
15511 cat >>conftest.adb <<CF_EOF
15514 procedure conftest is
15516 pragma Unreferenced (test);
15519 Text_IO.Put ("Hello World");
15521 GNAT.OS_Lib.OS_Exit (0);
15524 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
15525 cf_cv_pragma_unreferenced=yes
15527 cf_cv_pragma_unreferenced=no
15531 echo "$as_me:15531: result: $cf_cv_pragma_unreferenced" >&5
15532 echo "${ECHO_T}$cf_cv_pragma_unreferenced" >&6
15534 # if the pragma is supported, use it (needed in the Trace code).
15535 if test $cf_cv_pragma_unreferenced = yes ; then
15541 # Check whether --with-ada-compiler or --without-ada-compiler was given.
15542 if test "${with_ada_compiler+set}" = set; then
15543 withval="$with_ada_compiler"
15544 cf_ada_compiler=$withval
15546 cf_ada_compiler=gnatmake
15549 cf_ada_package=terminal_interface
15551 # Check whether --with-ada-include or --without-ada-include was given.
15552 if test "${with_ada_include+set}" = set; then
15553 withval="$with_ada_include"
15556 withval="${ADA_INCLUDE-$prefix/lib/ada/adainclude}"
15557 fi; if test -n "$prefix/lib/ada/adainclude" ; then
15559 if test "x$prefix" != xNONE; then
15560 cf_path_syntax="$prefix"
15562 cf_path_syntax="$ac_default_prefix"
15565 case ".$withval" in #(vi
15566 .\$\(*\)*|.\'*\'*) #(vi
15570 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
15572 .\${*prefix}*) #(vi
15573 eval withval="$withval"
15574 case ".$withval" in #(vi
15576 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
15581 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
15584 { { echo "$as_me:15584: error: expected a pathname, not \"$withval\"" >&5
15585 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
15586 { (exit 1); exit 1; }; }
15591 ADA_INCLUDE="$withval"
15593 # Check whether --with-ada-objects or --without-ada-objects was given.
15594 if test "${with_ada_objects+set}" = set; then
15595 withval="$with_ada_objects"
15598 withval="${ADA_OBJECTS-$prefix/lib/ada/adalib}"
15599 fi; if test -n "$prefix/lib/ada/adalib" ; then
15601 if test "x$prefix" != xNONE; then
15602 cf_path_syntax="$prefix"
15604 cf_path_syntax="$ac_default_prefix"
15607 case ".$withval" in #(vi
15608 .\$\(*\)*|.\'*\'*) #(vi
15612 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
15614 .\${*prefix}*) #(vi
15615 eval withval="$withval"
15616 case ".$withval" in #(vi
15618 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
15623 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
15626 { { echo "$as_me:15626: error: expected a pathname, not \"$withval\"" >&5
15627 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
15628 { (exit 1); exit 1; }; }
15633 ADA_OBJECTS="$withval"
15641 ### Construct the ncurses library-subsets, if any, from this set of keywords:
15642 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
15644 ### ticlib modules may be a separate library, otherwise contained in termlib.
15645 ### termlib modules may be a separate library, otherwise contained in ncurses.
15647 ### The of "+" or " " between the tokens controls the way the script
15648 ### chooses to split module lists into libraries.
15650 ### (see CF_LIB_RULES).
15651 echo "$as_me:15651: checking for library subsets" >&5
15652 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
15655 if test "$cf_with_progs" = yes || test "$with_ticlib" != no || test "$with_termcap" != no; then
15656 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
15657 if test "$with_ticlib" != no ; then
15658 LIB_SUBSETS="${LIB_SUBSETS} "
15660 LIB_SUBSETS="${LIB_SUBSETS}+"
15664 LIB_SUBSETS="${LIB_SUBSETS}termlib"
15665 test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
15666 if test "$with_termlib" != no ; then
15667 LIB_SUBSETS="${LIB_SUBSETS} "
15669 LIB_SUBSETS="${LIB_SUBSETS}+"
15672 LIB_SUBSETS="${LIB_SUBSETS}base"
15673 test "$with_widec" = yes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
15674 test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
15676 echo "$as_me:15676: result: $LIB_SUBSETS" >&5
15677 echo "${ECHO_T}$LIB_SUBSETS" >&6
15679 ### Construct the list of include-directories to be generated
15681 CPPFLAGS="-I. -I../include $CPPFLAGS"
15682 if test "$srcdir" != "."; then
15683 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
15685 if test "$GCC" != yes; then
15686 CPPFLAGS="$CPPFLAGS -I\${includedir}"
15687 elif test "$includedir" != "/usr/include"; then
15688 if test "$includedir" = '${prefix}/include' ; then
15689 if test $prefix != /usr ; then
15690 CPPFLAGS="$CPPFLAGS -I\${includedir}"
15693 CPPFLAGS="$CPPFLAGS -I\${includedir}"
15697 ACPPFLAGS="-I. -I../../include $ACPPFLAGS"
15698 if test "$srcdir" != "."; then
15699 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
15701 if test "$GCC" != yes; then
15702 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
15703 elif test "$includedir" != "/usr/include"; then
15704 if test "$includedir" = '${prefix}/include' ; then
15705 if test $prefix != /usr ; then
15706 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
15709 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
15713 ### Build up pieces for makefile rules
15714 echo "$as_me:15714: checking default library suffix" >&5
15715 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
15717 case $DFT_LWR_MODEL in
15718 libtool) DFT_ARG_SUFFIX='' ;;
15719 normal) DFT_ARG_SUFFIX='' ;;
15720 debug) DFT_ARG_SUFFIX='_g' ;;
15721 profile) DFT_ARG_SUFFIX='_p' ;;
15722 shared) DFT_ARG_SUFFIX='' ;;
15724 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
15725 echo "$as_me:15725: result: $DFT_ARG_SUFFIX" >&5
15726 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
15728 echo "$as_me:15728: checking default library-dependency suffix" >&5
15729 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
15731 case $DFT_LWR_MODEL in
15732 libtool) DFT_DEP_SUFFIX='.la' ;;
15733 normal) DFT_DEP_SUFFIX='.a' ;;
15734 debug) DFT_DEP_SUFFIX='_g.a' ;;
15735 profile) DFT_DEP_SUFFIX='_p.a' ;;
15737 case $cf_cv_system_name in
15738 cygwin*) DFT_DEP_SUFFIX='.dll' ;;
15739 darwin*) DFT_DEP_SUFFIX='.dylib' ;;
15742 ia64*) DFT_DEP_SUFFIX='.so' ;;
15743 *) DFT_DEP_SUFFIX='.sl' ;;
15746 *) DFT_DEP_SUFFIX='.so' ;;
15749 test -n "$LIB_SUFFIX" && DFT_DEP_SUFFIX="${LIB_SUFFIX}${DFT_DEP_SUFFIX}"
15750 DFT_LIB_SUFFIX=$DFT_DEP_SUFFIX
15751 if test $DFT_LWR_MODEL = shared ; then
15752 case $cf_cv_system_name in #(vi
15754 DFT_DEP_SUFFIX=".dll.a"
15755 DFT_LIB_SUFFIX=".dll"
15759 echo "$as_me:15759: result: $DFT_DEP_SUFFIX" >&5
15760 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
15762 echo "$as_me:15762: checking default object directory" >&5
15763 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
15765 case $DFT_LWR_MODEL in
15766 libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
15767 normal) DFT_OBJ_SUBDIR='objects' ;;
15768 debug) DFT_OBJ_SUBDIR='obj_g' ;;
15769 profile) DFT_OBJ_SUBDIR='obj_p' ;;
15771 case $cf_cv_system_name in #(vi
15773 DFT_OBJ_SUBDIR='objects' ;;
15775 DFT_OBJ_SUBDIR='obj_s' ;;
15778 echo "$as_me:15778: result: $DFT_OBJ_SUBDIR" >&5
15779 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
15781 # libtool thinks it can make c++ shared libraries (perhaps only g++)
15782 if test "$cf_with_cxx" = yes ; then
15783 echo "$as_me:15783: checking c++ library-dependency suffix" >&5
15784 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
15785 if test "$with_libtool" != "no"; then
15786 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
15790 libtool) CXX_LIB_SUFFIX='.la' ;;
15791 normal) CXX_LIB_SUFFIX='.a' ;;
15792 debug) CXX_LIB_SUFFIX='_g.a' ;;
15793 profile) CXX_LIB_SUFFIX='_p.a' ;;
15795 case $cf_cv_system_name in
15796 cygwin*) CXX_LIB_SUFFIX='.dll' ;;
15797 darwin*) CXX_LIB_SUFFIX='.dylib' ;;
15800 ia64*) CXX_LIB_SUFFIX='.so' ;;
15801 *) CXX_LIB_SUFFIX='.sl' ;;
15804 *) CXX_LIB_SUFFIX='.so' ;;
15807 test -n "$LIB_SUFFIX" && CXX_LIB_SUFFIX="${LIB_SUFFIX}${CXX_LIB_SUFFIX}"
15809 echo "$as_me:15809: result: $CXX_LIB_SUFFIX" >&5
15810 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
15814 # do not want -ldl in build except as needed for -lncurses dependency
15815 if test "$with_dlsym" = yes ; then
15816 if test $DFT_LWR_MODEL = shared || \
15817 test $DFT_LWR_MODEL = libtool ; then
15819 # remove dl library from $LIBS
15820 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
15824 ### Set up low-level terminfo dependencies for makefiles.
15826 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
15827 # do not need libdl
15829 if test "$with_dlsym" = yes ; then
15831 # remove dl library from $SHLIB_LIST
15832 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
15836 if test "$with_ticlib" != no ; then
15838 if test "$with_ticlib" != yes ; then
15839 TICS_NAME=$with_ticlib
15840 TICS_ARG_SUFFIX="${with_ticlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
15841 TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
15842 TICS_LIB_SUFFIX="${with_ticlib}"
15844 TICS_ARG_SUFFIX="${TICS_NAME}${DFT_ARG_SUFFIX}"
15845 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
15846 TICS_LIB_SUFFIX="${TICS_NAME}${LIB_SUFFIX}"
15848 TICS_ARGS="-L${LIB_DIR} -l${TICS_LIB_SUFFIX}"
15850 TICS_ARGS="-L${LIB_DIR} -l${LIB_NAME}${DFT_ARG_SUFFIX}"
15853 if test "$with_termlib" != no ; then
15855 if test "$with_termlib" != yes ; then
15856 TINFO_NAME=$with_termlib
15857 TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
15858 TINFO_ARG_SUFFIX="${with_termlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
15859 TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
15860 TINFO_LIB_SUFFIX="${with_termlib}"
15862 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
15863 TINFO_ARG_SUFFIX="${TINFO_NAME}${DFT_ARG_SUFFIX}"
15864 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
15865 TINFO_LIB_SUFFIX="${TINFO_NAME}${LIB_SUFFIX}"
15868 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
15869 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
15870 if test "$DFT_LWR_MODEL" = "libtool"; then
15871 TEST_ARGS="${TEST_DEPS}"
15872 TEST_ARG2="${TEST_DEP2}"
15873 TINFO_ARGS="-L${LIB_DIR} $TEST_ARGS"
15875 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
15876 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
15877 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
15878 TINFO_ARGS="-L${LIB_DIR} $TEST_ARGS"
15879 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
15882 # the next lines are needed for linking libtic over libncurses
15883 TINFO_NAME=${LIB_NAME}
15884 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
15885 TINFO_ARG_SUFFIX=${LIB_NAME}${DFT_ARG_SUFFIX}
15886 TICS_LIST="$SHLIB_LIST"
15888 TINFO_ARGS="-L${LIB_DIR} -l${LIB_NAME}${DFT_ARG_SUFFIX}"
15891 if test "$DFT_LWR_MODEL" = shared ; then
15892 case $cf_cv_system_name in #(vi
15894 # "lib" files have ".dll.a" suffix, "cyg" files have ".dll"
15900 if test "$with_dlsym" = yes ; then
15902 # remove dl library from $TICS_LIST
15903 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
15907 if test "$DFT_LWR_MODEL" = "libtool"; then
15912 TINFO_ARGS2=`echo "$TINFO_ARGS" | sed -e 's,-L\.\./,-L../../,'`
15914 case $DFT_LWR_MODEL in
15915 normal|debug|profile)
15917 if test "$GCC" = yes ; then
15918 case $cf_cv_system_name in #(
15919 aix[45]*) #( gcc 4.2.4 linkage on AIX is broken
15923 *) #( normally, except when broken
15924 LDFLAGS_STATIC=-static
15925 LDFLAGS_SHARED=-dynamic
15929 case $cf_cv_system_name in #(
15930 aix[45]*) #( from ld manpage
15931 LDFLAGS_STATIC=-bstatic
15932 LDFLAGS_SHARED=-bdynamic
15934 hpux*) #( from ld manpage for hpux10.20, hpux11.11
15935 # We could also use just "archive" and "shared".
15936 LDFLAGS_STATIC=-Wl,-a,archive_shared
15937 LDFLAGS_SHARED=-Wl,-a,shared_archive
15939 irix*) #( from ld manpage IRIX64
15940 LDFLAGS_STATIC=-Bstatic
15941 LDFLAGS_SHARED=-Bdynamic
15943 osf[45]*) #( from ld manpage osf4.0d, osf5.1
15944 # alternative "-oldstyle_liblookup" (not in cc manpage)
15945 LDFLAGS_STATIC=-noso
15946 LDFLAGS_SHARED=-so_archive
15949 LDFLAGS_STATIC=-Bstatic
15950 LDFLAGS_SHARED=-Bdynamic
15958 echo "$as_me:15958: checking where we will install curses.h" >&5
15959 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
15960 test "$with_overwrite" = no && \
15961 test "x$includedir" = 'x${prefix}/include' && \
15962 includedir='${prefix}/include/ncurses'${LIB_SUFFIX}
15963 echo "$as_me:15963: result: $includedir" >&5
15964 echo "${ECHO_T}$includedir" >&6
15966 ### Resolve a conflict between normal and wide-curses by forcing applications
15967 ### that will need libutf8 to add it to their configure script.
15968 if test "$with_overwrite" != no ; then
15969 if test "$NCURSES_LIBUTF8" = 1 ; then
15970 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
15971 { echo "$as_me:15971: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
15972 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
15976 # used to separate tack out of the tree
15979 ### predefined stuff for the test programs
15980 cat >>confdefs.h <<\EOF
15981 #define HAVE_SLK_COLOR 1
15984 ### Construct the list of subdirectories for which we'll customize makefiles
15985 ### with the appropriate compile-rules.
15987 echo "$as_me:15987: checking for src modules" >&5
15988 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
15990 # dependencies and linker-arguments for test-programs
15991 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
15992 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
15993 if test "$DFT_LWR_MODEL" = "libtool"; then
15994 TEST_ARGS="${TEST_DEPS}"
15995 TEST_ARG2="${TEST_DEP2}"
15997 TEST_ARGS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS"
15998 TEST_ARG2="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARG2"
16002 for cf_dir in $modules_to_build
16004 if test -f $srcdir/$cf_dir/modules; then
16006 # We may/may not have tack in the distribution, though the
16008 if test $cf_dir = tack ; then
16009 if test ! -f $srcdir/${cf_dir}/${cf_dir}.h; then
16014 if test -z "$cf_cv_src_modules"; then
16015 cf_cv_src_modules=$cf_dir
16017 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
16020 # Make the ncurses_cfg.h file record the library interface files as
16021 # well. These are header files that are the same name as their
16022 # directory. Ncurses is the only library that does not follow
16024 if test $cf_dir = tack ; then
16026 elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
16028 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16030 cat >>confdefs.h <<EOF
16031 #define HAVE_${cf_have_include}_H 1
16034 cat >>confdefs.h <<EOF
16035 #define HAVE_LIB${cf_have_include} 1
16038 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
16039 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEP2"
16040 if test "$DFT_LWR_MODEL" = "libtool"; then
16041 TEST_ARGS="${TEST_DEPS}"
16042 TEST_ARG2="${TEST_DEP2}"
16044 TEST_ARGS="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARGS"
16045 TEST_ARG2="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARG2"
16050 echo "$as_me:16050: result: $cf_cv_src_modules" >&5
16051 echo "${ECHO_T}$cf_cv_src_modules" >&6
16053 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
16054 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
16056 SRC_SUBDIRS="man include"
16057 for cf_dir in $cf_cv_src_modules
16059 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
16061 SRC_SUBDIRS="$SRC_SUBDIRS test"
16062 test -z "$MAKE_TERMINFO" && SRC_SUBDIRS="$SRC_SUBDIRS misc"
16063 test "$cf_with_cxx_binding" != no && SRC_SUBDIRS="$SRC_SUBDIRS c++"
16066 if test "$cf_cv_prog_gnat_correct" = yes && test -f $srcdir/Ada95/Makefile.in; then
16067 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
16068 ADA_SUBDIRS="gen src samples"
16072 for cf_dir in $SRC_SUBDIRS
16074 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
16077 if test -n "$ADA_SUBDIRS"; then
16078 for cf_dir in $ADA_SUBDIRS
16080 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
16085 if test "$cf_with_ada" != "no" && test "$cf_cv_prog_gnat_correct" != "no"; then
16086 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses-config"
16090 for cf_item in $cf_list_models
16094 libtool) cf_subdir='obj_lo' ;;
16095 normal) cf_subdir='objects' ;;
16096 debug) cf_subdir='obj_g' ;;
16097 profile) cf_subdir='obj_p' ;;
16099 case $cf_cv_system_name in #(vi
16101 cf_subdir='objects' ;;
16103 cf_subdir='obj_s' ;;
16107 for cf_item2 in $DIRS_TO_MAKE
16109 test $cf_item2 = $cf_subdir && break
16111 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
16113 for cf_dir in $DIRS_TO_MAKE
16115 test ! -d $cf_dir && mkdir $cf_dir
16118 cat >>confdefs.h <<EOF
16119 #define NCURSES_PATHSEP '$PATHSEP'
16122 cat >>confdefs.h <<EOF
16123 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
16126 ### Now that we're done running tests, add the compiler-warnings, if any
16131 cf_new_extra_cppflags=
16133 for cf_add_cflags in $EXTRA_CFLAGS
16135 case $cf_fix_cppflags in
16137 case $cf_add_cflags in #(vi
16138 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
16139 case $cf_add_cflags in
16141 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16143 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
16144 && test -z "${cf_tst_cflags}" \
16145 && cf_fix_cppflags=yes
16147 if test $cf_fix_cppflags = yes ; then
16148 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16150 elif test "${cf_tst_cflags}" = "\"'" ; then
16151 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16156 case "$CPPFLAGS" in
16157 *$cf_add_cflags) #(vi
16160 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
16165 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
16170 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16172 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
16174 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
16175 && test -z "${cf_tst_cflags}" \
16176 && cf_fix_cppflags=no
16181 if test -n "$cf_new_cflags" ; then
16183 CFLAGS="$CFLAGS $cf_new_cflags"
16186 if test -n "$cf_new_cppflags" ; then
16188 CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
16191 if test -n "$cf_new_extra_cppflags" ; then
16193 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
16196 ### If we're building with rpath, try to link non-standard libs that way too.
16197 if test "$DFT_LWR_MODEL" = "shared"; then
16199 echo "$as_me:16199: checking for updated LDFLAGS" >&5
16200 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
16201 if test -n "$LDFLAGS" ; then
16202 echo "$as_me:16202: result: maybe" >&5
16203 echo "${ECHO_T}maybe" >&6
16204 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
16206 echo "${as_me-configure}:16206: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
16208 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
16210 echo "${as_me-configure}:16210: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
16212 case "$EXTRA_LDFLAGS" in #(vi
16214 cf_rpath_hack="-Wl,-rpath,"
16217 cf_rpath_hack="-R "
16226 if test -n "$cf_rpath_hack" ; then
16228 for cf_rpath_src in $LDFLAGS
16230 test -n "$verbose" && echo " Filtering $cf_rpath_src" 1>&6
16232 echo "${as_me-configure}:16232: testing Filtering $cf_rpath_src ..." 1>&5
16234 case $cf_rpath_src in #(vi
16236 if test "$cf_rpath_hack" = "-R " ; then
16237 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e 's%-L%-R %'`
16239 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e s%-L%$cf_rpath_hack%`
16241 test -n "$verbose" && echo " ...Filter $cf_rpath_tmp" 1>&6
16243 echo "${as_me-configure}:16243: testing ...Filter $cf_rpath_tmp ..." 1>&5
16245 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
16248 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
16252 LDFLAGS=$cf_rpath_dst
16253 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
16255 echo "${as_me-configure}:16255: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
16257 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
16259 echo "${as_me-configure}:16259: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
16263 echo "$as_me:16263: result: no" >&5
16264 echo "${ECHO_T}no" >&6
16269 ### Define substitutions for header files to avoid name-pollution
16271 if test "$cf_cv_have_tcgetattr" = yes ; then
16277 if test "$ac_cv_header_termio_h" = yes ; then
16283 if test "$ac_cv_header_termios_h" = yes ; then
16289 ################################################################################
16290 test "$use_database" = yes && SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
16291 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
16292 ac_config_files="$ac_config_files include/MKterm.h.awk include/curses.head:include/curses.h.in include/termcap.h include/unctrl.h $SUB_MAKEFILES Makefile"
16293 ac_config_commands="$ac_config_commands default"
16294 cat >confcache <<\_ACEOF
16295 # This file is a shell script that caches the results of configure
16296 # tests run on this system so they can be shared between configure
16297 # scripts and configure runs, see configure's option --config-cache.
16298 # It is not useful on other systems. If it contains results you don't
16299 # want to keep, you may remove or edit it.
16301 # config.status only pays attention to the cache file if you give it
16302 # the --recheck option to rerun configure.
16304 # `ac_cv_env_foo' variables (set or unset) will be overriden when
16305 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16306 # following values.
16310 # The following way of writing the cache mishandles newlines in values,
16311 # but we know of no workaround that is simple, portable, and efficient.
16312 # So, don't put newlines in cache variables' values.
16313 # Ultrix sh set writes to stderr and can't be redirected directly,
16314 # and sets the high bit in the cache file unless we assign to the vars.
16317 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16319 # `set' does not quote correctly, so add quotes (double-quote
16320 # substitution turns \\\\ into \\, and sed turns \\ into \).
16323 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16326 # `set' quotes correctly as required by POSIX, so do not add quotes.
16328 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16335 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16337 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16339 if cmp -s $cache_file confcache; then :; else
16340 if test -w $cache_file; then
16341 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16342 cat confcache >$cache_file
16344 echo "not updating unwritable cache $cache_file"
16349 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16350 # Let make expand exec_prefix.
16351 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16353 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16354 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16355 # trailing colons and then remove the whole line if VPATH becomes empty
16356 # (actually we leave an empty line to preserve line numbers).
16357 if test "x$srcdir" = x.; then
16358 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16359 s/:*\$(srcdir):*/:/;
16360 s/:*\${srcdir}:*/:/;
16362 s/^\([^=]*=[ ]*\):*/\1/;
16368 DEFS=-DHAVE_CONFIG_H
16370 : ${CONFIG_STATUS=./config.status}
16371 ac_clean_files_save=$ac_clean_files
16372 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16373 { echo "$as_me:16373: creating $CONFIG_STATUS" >&5
16374 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16375 cat >$CONFIG_STATUS <<_ACEOF
16377 # Generated automatically by configure.
16378 # Run this file to recreate the current configuration.
16379 # Compiler output produced by configure, useful for debugging
16380 # configure, is in config.log if it exists.
16383 SHELL=\${CONFIG_SHELL-$SHELL}
16384 ac_cs_invocation="\$0 \$@"
16388 cat >>$CONFIG_STATUS <<\_ACEOF
16389 # Be Bourne compatible
16390 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16393 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16397 # Name of the executable.
16398 as_me=`echo "$0" |sed 's,.*[\\/],,'`
16400 if expr a : '\(a\)' >/dev/null 2>&1; then
16406 rm -f conf$$ conf$$.exe conf$$.file
16408 if ln -s conf$$.file conf$$ 2>/dev/null; then
16409 # We could just check for DJGPP; but this test a) works b) is more generic
16410 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16411 if test -f conf$$.exe; then
16412 # Don't use ln at all; we don't have any links
16417 elif ln conf$$.file conf$$ 2>/dev/null; then
16422 rm -f conf$$ conf$$.exe conf$$.file
16424 as_executable_p="test -f"
16426 # Support unset when possible.
16427 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16434 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
16435 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
16436 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
16437 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
16438 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
16439 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
16440 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
16441 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
16444 # We need space, tab and new line, in precisely that order.
16450 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
16456 # Files that config.status was made for.
16457 if test -n "$ac_config_files"; then
16458 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16461 if test -n "$ac_config_headers"; then
16462 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16465 if test -n "$ac_config_links"; then
16466 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16469 if test -n "$ac_config_commands"; then
16470 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16473 cat >>$CONFIG_STATUS <<\EOF
16476 \`$as_me' instantiates files from templates according to the
16477 current configuration.
16479 Usage: $0 [OPTIONS] [FILE]...
16481 -h, --help print this help, then exit
16482 -V, --version print version number, then exit
16483 -d, --debug don't remove temporary files
16484 --recheck update $as_me by reconfiguring in the same conditions
16485 --file=FILE[:TEMPLATE]
16486 instantiate the configuration file FILE
16487 --header=FILE[:TEMPLATE]
16488 instantiate the configuration header FILE
16490 Configuration files:
16493 Configuration headers:
16496 Configuration commands:
16499 Report bugs to <bug-autoconf@gnu.org>."
16502 cat >>$CONFIG_STATUS <<EOF
16505 configured by $0, generated by GNU Autoconf 2.52.20080325,
16506 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16508 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16509 Free Software Foundation, Inc.
16510 This config.status script is free software; the Free Software Foundation
16511 gives unlimited permission to copy, distribute and modify it."
16516 cat >>$CONFIG_STATUS <<\EOF
16517 # If no file are specified by the user, then we need to provide default
16518 # value. By we need to know if files were specified by the user.
16524 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16525 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16527 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
16531 *) # This is not an option, so the user has probably given explicit
16533 ac_need_defaults=false;;
16537 # Handling of the options.
16539 cat >>$CONFIG_STATUS <<EOF
16540 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16541 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16542 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16544 cat >>$CONFIG_STATUS <<\EOF
16545 --version | --vers* | -V )
16546 echo "$ac_cs_version"; exit 0 ;;
16548 # Conflict between --help and --header
16549 { { echo "$as_me:16549: error: ambiguous option: $1
16550 Try \`$0 --help' for more information." >&5
16551 echo "$as_me: error: ambiguous option: $1
16552 Try \`$0 --help' for more information." >&2;}
16553 { (exit 1); exit 1; }; };;
16554 --help | --hel | -h )
16555 echo "$ac_cs_usage"; exit 0 ;;
16556 --debug | --d* | -d )
16558 --file | --fil | --fi | --f )
16560 CONFIG_FILES="$CONFIG_FILES $1"
16561 ac_need_defaults=false;;
16562 --header | --heade | --head | --hea )
16564 CONFIG_HEADERS="$CONFIG_HEADERS $1"
16565 ac_need_defaults=false;;
16567 # This is an error.
16568 -*) { { echo "$as_me:16568: error: unrecognized option: $1
16569 Try \`$0 --help' for more information." >&5
16570 echo "$as_me: error: unrecognized option: $1
16571 Try \`$0 --help' for more information." >&2;}
16572 { (exit 1); exit 1; }; } ;;
16574 *) ac_config_targets="$ac_config_targets $1" ;;
16583 ## ----------------------- ##
16584 ## Running config.status. ##
16585 ## ----------------------- ##
16587 This file was extended by $as_me 2.52.20080325, executed with
16588 CONFIG_FILES = $CONFIG_FILES
16589 CONFIG_HEADERS = $CONFIG_HEADERS
16590 CONFIG_LINKS = $CONFIG_LINKS
16591 CONFIG_COMMANDS = $CONFIG_COMMANDS
16592 > $ac_cs_invocation
16593 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16598 cat >>$CONFIG_STATUS <<EOF
16600 # INIT-COMMANDS section.
16603 ### Special initialization commands, used to pass information from the
16604 ### configuration-run into config.status
16607 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
16608 DFT_LWR_MODEL="$DFT_LWR_MODEL"
16609 ECHO_LINK="$ECHO_LINK"
16610 LDCONFIG="$LDCONFIG"
16611 LIB_NAME="$LIB_NAME"
16612 LIB_SUBSETS="$LIB_SUBSETS"
16613 LIB_SUFFIX="$LIB_SUFFIX"
16614 LIB_TRACING="$LIB_TRACING"
16615 MAKE_TERMINFO="$MAKE_TERMINFO"
16616 NCURSES_MAJOR="$NCURSES_MAJOR"
16617 NCURSES_MINOR="$NCURSES_MINOR"
16618 NCURSES_OSPEED="$NCURSES_OSPEED"
16619 NCURSES_PATCH="$NCURSES_PATCH"
16620 SRC_SUBDIRS="$SRC_SUBDIRS"
16621 TERMINFO="$TERMINFO"
16622 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
16623 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
16624 TINFO_NAME="$TINFO_NAME"
16625 TINFO_SUFFIX="$TINFO_SUFFIX"
16626 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
16627 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
16628 TICS_NAME="$TICS_NAME"
16629 WITH_CURSES_H="$with_curses_h"
16630 WITH_ECHO="$with_echo"
16631 WITH_OVERWRITE="$with_overwrite"
16632 cf_LIST_MODELS="$cf_list_models"
16633 cf_cv_abi_version="$cf_cv_abi_version"
16634 cf_cv_do_relink="$cf_cv_do_relink"
16635 cf_cv_do_symlinks="$cf_cv_do_symlinks"
16636 cf_cv_enable_lp64="$cf_cv_enable_lp64"
16637 cf_cv_enable_opaque="$cf_cv_enable_opaque"
16638 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
16639 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
16640 cf_cv_rel_version="$cf_cv_rel_version"
16641 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
16642 cf_cv_shlib_version="$cf_cv_shlib_version"
16643 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
16644 cf_cv_system_name="$cf_cv_system_name"
16645 cf_with_cxx_binding="$cf_with_cxx_binding"
16651 cat >>$CONFIG_STATUS <<\EOF
16652 for ac_config_target in $ac_config_targets
16654 case "$ac_config_target" in
16655 # Handling of arguments.
16656 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
16657 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
16658 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
16659 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
16660 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
16661 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16662 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16663 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
16664 *) { { echo "$as_me:16664: error: invalid argument: $ac_config_target" >&5
16665 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16666 { (exit 1); exit 1; }; };;
16670 # If the user did not use the arguments to specify the items to instantiate,
16671 # then the envvar interface is used. Set only those that are not.
16672 # We use the long form for the default assignment because of an extremely
16673 # bizarre bug on SunOS 4.1.3.
16674 if $ac_need_defaults; then
16675 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16676 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16677 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16680 # Create a temporary directory, and hook for its removal unless debugging.
16683 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16684 trap '{ (exit 1); exit 1; }' 1 2 13 15
16687 # Create a (secure) tmp directory for tmp files.
16690 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
16691 test -n "$tmp" && test -d "$tmp"
16694 tmp=$TMPDIR/cs$$-$RANDOM
16695 (umask 077 && mkdir $tmp)
16698 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
16699 { (exit 1); exit 1; }
16704 cat >>$CONFIG_STATUS <<EOF
16707 # CONFIG_FILES section.
16710 # No need to generate the scripts if there are no CONFIG_FILES.
16711 # This happens for instance when ./config.status config.h
16712 if test -n "\$CONFIG_FILES"; then
16713 # Protect against being on the right side of a sed subst in config.status.
16714 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16715 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16716 s,@SHELL@,$SHELL,;t t
16717 s,@exec_prefix@,$exec_prefix,;t t
16718 s,@prefix@,$prefix,;t t
16719 s,@program_transform_name@,$program_transform_name,;t t
16720 s,@bindir@,$bindir,;t t
16721 s,@sbindir@,$sbindir,;t t
16722 s,@libexecdir@,$libexecdir,;t t
16723 s,@datadir@,$datadir,;t t
16724 s,@sysconfdir@,$sysconfdir,;t t
16725 s,@sharedstatedir@,$sharedstatedir,;t t
16726 s,@localstatedir@,$localstatedir,;t t
16727 s,@libdir@,$libdir,;t t
16728 s,@includedir@,$includedir,;t t
16729 s,@oldincludedir@,$oldincludedir,;t t
16730 s,@infodir@,$infodir,;t t
16731 s,@mandir@,$mandir,;t t
16732 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16733 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16734 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16735 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16736 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16737 s,@build_alias@,$build_alias,;t t
16738 s,@host_alias@,$host_alias,;t t
16739 s,@target_alias@,$target_alias,;t t
16740 s,@ECHO_C@,$ECHO_C,;t t
16741 s,@ECHO_N@,$ECHO_N,;t t
16742 s,@ECHO_T@,$ECHO_T,;t t
16743 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16744 s,@DEFS@,$DEFS,;t t
16745 s,@LIBS@,$LIBS,;t t
16746 s,@top_builddir@,$top_builddir,;t t
16747 s,@EGREP@,$EGREP,;t t
16748 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
16749 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
16750 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
16751 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
16752 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
16753 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
16754 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
16755 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
16756 s,@build@,$build,;t t
16757 s,@build_cpu@,$build_cpu,;t t
16758 s,@build_vendor@,$build_vendor,;t t
16759 s,@build_os@,$build_os,;t t
16760 s,@host@,$host,;t t
16761 s,@host_cpu@,$host_cpu,;t t
16762 s,@host_vendor@,$host_vendor,;t t
16763 s,@host_os@,$host_os,;t t
16764 s,@target@,$target,;t t
16765 s,@target_cpu@,$target_cpu,;t t
16766 s,@target_vendor@,$target_vendor,;t t
16767 s,@target_os@,$target_os,;t t
16769 s,@CFLAGS@,$CFLAGS,;t t
16770 s,@LDFLAGS@,$LDFLAGS,;t t
16771 s,@CPPFLAGS@,$CPPFLAGS,;t t
16772 s,@ac_ct_CC@,$ac_ct_CC,;t t
16773 s,@EXEEXT@,$EXEEXT,;t t
16774 s,@OBJEXT@,$OBJEXT,;t t
16776 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
16777 s,@PROG_EXT@,$PROG_EXT,;t t
16778 s,@LDCONFIG@,$LDCONFIG,;t t
16780 s,@CXXFLAGS@,$CXXFLAGS,;t t
16781 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
16783 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16784 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16785 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16786 s,@LINT@,$LINT,;t t
16787 s,@LINT_OPTS@,$LINT_OPTS,;t t
16788 s,@LN_S@,$LN_S,;t t
16789 s,@SET_MAKE@,$SET_MAKE,;t t
16790 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
16791 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
16792 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
16793 s,@RANLIB@,$RANLIB,;t t
16794 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16796 s,@ac_ct_LD@,$ac_ct_LD,;t t
16798 s,@ac_ct_AR@,$ac_ct_AR,;t t
16799 s,@AR_OPTS@,$AR_OPTS,;t t
16800 s,@DESTDIR@,$DESTDIR,;t t
16801 s,@BUILD_CC@,$BUILD_CC,;t t
16802 s,@BUILD_CPP@,$BUILD_CPP,;t t
16803 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
16804 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
16805 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
16806 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
16807 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
16808 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
16809 s,@cf_list_models@,$cf_list_models,;t t
16810 s,@LIBTOOL@,$LIBTOOL,;t t
16811 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
16812 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
16813 s,@LIB_CREATE@,$LIB_CREATE,;t t
16814 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
16815 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
16816 s,@LIB_PREP@,$LIB_PREP,;t t
16817 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
16818 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
16819 s,@LIB_LINK@,$LIB_LINK,;t t
16820 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
16821 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
16822 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
16823 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
16824 s,@TICS_NAME@,$TICS_NAME,;t t
16825 s,@TINFO_NAME@,$TINFO_NAME,;t t
16826 s,@LIB_NAME@,$LIB_NAME,;t t
16827 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
16828 s,@CC_G_OPT@,$CC_G_OPT,;t t
16829 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
16830 s,@LD_MODEL@,$LD_MODEL,;t t
16831 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
16832 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
16833 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
16834 s,@LINK_PROGS@,$LINK_PROGS,;t t
16835 s,@LINK_TESTS@,$LINK_TESTS,;t t
16836 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
16837 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
16838 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
16839 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
16840 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
16841 s,@PATHSEP@,$PATHSEP,;t t
16842 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
16843 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
16844 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
16845 s,@TERMINFO@,$TERMINFO,;t t
16846 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
16847 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
16848 s,@TERMPATH@,$TERMPATH,;t t
16849 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
16850 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
16851 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
16852 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
16853 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
16854 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
16855 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
16856 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
16857 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
16858 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
16859 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
16860 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
16861 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
16862 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
16863 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
16864 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
16865 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
16866 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
16867 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
16868 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
16869 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
16870 s,@PTHREAD@,$PTHREAD,;t t
16871 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
16872 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
16873 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
16874 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
16875 s,@ECHO_LINK@,$ECHO_LINK,;t t
16876 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
16877 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
16878 s,@ADA_TRACE@,$ADA_TRACE,;t t
16879 s,@MATH_LIB@,$MATH_LIB,;t t
16880 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
16881 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
16882 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
16883 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
16884 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
16885 s,@TEST_LIBS@,$TEST_LIBS,;t t
16886 s,@CXXCPP@,$CXXCPP,;t t
16887 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
16888 s,@CXX_AR@,$CXX_AR,;t t
16889 s,@CXX_AR_OPTS@,$CXX_AR_OPTS,;t t
16890 s,@CXXLIBS@,$CXXLIBS,;t t
16891 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
16892 s,@gnat_exists@,$gnat_exists,;t t
16893 s,@M4_exists@,$M4_exists,;t t
16894 s,@cf_ada_make@,$cf_ada_make,;t t
16895 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
16896 s,@cf_ada_package@,$cf_ada_package,;t t
16897 s,@ADAFLAGS@,$ADAFLAGS,;t t
16898 s,@cf_compile_generics@,$cf_compile_generics,;t t
16899 s,@cf_generic_objects@,$cf_generic_objects,;t t
16900 s,@PRAGMA_UNREF@,$PRAGMA_UNREF,;t t
16901 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
16902 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
16903 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
16904 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
16905 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
16906 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
16907 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
16908 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
16909 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
16910 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
16911 s,@TICS_ARGS@,$TICS_ARGS,;t t
16912 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
16913 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
16914 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
16915 s,@TINFO_ARGS@,$TINFO_ARGS,;t t
16916 s,@TINFO_ARGS2@,$TINFO_ARGS2,;t t
16917 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
16918 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
16919 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
16920 s,@TICS_LIST@,$TICS_LIST,;t t
16921 s,@TINFO_LIST@,$TINFO_LIST,;t t
16922 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
16923 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
16924 s,@TEST_ARGS@,$TEST_ARGS,;t t
16925 s,@TEST_DEPS@,$TEST_DEPS,;t t
16926 s,@TEST_ARG2@,$TEST_ARG2,;t t
16927 s,@TEST_DEP2@,$TEST_DEP2,;t t
16928 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
16929 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
16930 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
16931 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
16932 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
16937 cat >>$CONFIG_STATUS <<\EOF
16938 # Split the substitutions into bite-sized pieces for seds with
16939 # small command number limits, like on Digital OSF/1 and HP-UX.
16940 ac_max_sed_lines=48
16941 ac_sed_frag=1 # Number of current file.
16942 ac_beg=1 # First line for current file.
16943 ac_end=$ac_max_sed_lines # Line after last line for current file.
16946 while $ac_more_lines; do
16947 if test $ac_beg -gt 1; then
16948 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16950 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16952 if test ! -s $tmp/subs.frag; then
16953 ac_more_lines=false
16955 # The purpose of the label and of the branching condition is to
16956 # speed up the sed processing (if there are no `@' at all, there
16957 # is no need to browse any of the substitutions).
16958 # These are the two extra sed commands mentioned above.
16960 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16961 if test -z "$ac_sed_cmds"; then
16962 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16964 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16966 ac_sed_frag=`expr $ac_sed_frag + 1`
16968 ac_end=`expr $ac_end + $ac_max_sed_lines`
16971 if test -z "$ac_sed_cmds"; then
16974 fi # test -n "$CONFIG_FILES"
16977 cat >>$CONFIG_STATUS <<\EOF
16978 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16979 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16981 - | *:- | *:-:* ) # input from stdin
16983 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16984 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16985 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16986 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16987 * ) ac_file_in=$ac_file.in ;;
16990 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16991 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16992 X"$ac_file" : 'X\(//\)[^/]' \| \
16993 X"$ac_file" : 'X\(//\)$' \| \
16994 X"$ac_file" : 'X\(/\)' \| \
16995 . : '\(.\)' 2>/dev/null ||
16997 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16998 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16999 /^X\(\/\/\)$/{ s//\1/; q; }
17000 /^X\(\/\).*/{ s//\1/; q; }
17002 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17003 { case "$ac_dir" in
17004 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17008 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17009 case $as_mkdir_dir in
17010 # Skip DOS drivespec
17011 ?:) as_incr_dir=$as_mkdir_dir ;;
17013 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17014 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
17019 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
17020 # A "../" for each directory in $ac_dir_suffix.
17021 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
17023 ac_dir_suffix= ac_dots=
17028 if test -z "$ac_dots"; then
17031 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
17033 [\\/]* | ?:[\\/]* )
17034 ac_srcdir=$srcdir$ac_dir_suffix;
17035 ac_top_srcdir=$srcdir ;;
17036 *) # Relative path.
17037 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
17038 ac_top_srcdir=$ac_dots$srcdir ;;
17042 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17043 *) ac_INSTALL=$ac_dots$INSTALL ;;
17046 if test x"$ac_file" != x-; then
17047 { echo "$as_me:17047: creating $ac_file" >&5
17048 echo "$as_me: creating $ac_file" >&6;}
17051 # Let's still pretend it is `configure' which instantiates (i.e., don't
17052 # use $as_me), people would be surprised to read:
17053 # /* config.h. Generated automatically by config.status. */
17054 configure_input="Generated automatically from `echo $ac_file_in |
17055 sed 's,.*/,,'` by configure."
17057 # First look for the input files in the build tree, otherwise in the
17059 ac_file_inputs=`IFS=:
17060 for f in $ac_file_in; do
17062 -) echo $tmp/stdin ;;
17064 # Absolute (can't be DOS-style, as IFS=:)
17065 test -f "$f" || { { echo "$as_me:17065: error: cannot find input file: $f" >&5
17066 echo "$as_me: error: cannot find input file: $f" >&2;}
17067 { (exit 1); exit 1; }; }
17070 if test -f "$f"; then
17073 elif test -f "$srcdir/$f"; then
17078 { { echo "$as_me:17078: error: cannot find input file: $f" >&5
17079 echo "$as_me: error: cannot find input file: $f" >&2;}
17080 { (exit 1); exit 1; }; }
17083 done` || { (exit 1); exit 1; }
17085 cat >>$CONFIG_STATUS <<EOF
17089 cat >>$CONFIG_STATUS <<\EOF
17091 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17092 s,@configure_input@,$configure_input,;t t
17093 s,@srcdir@,$ac_srcdir,;t t
17094 s,@top_srcdir@,$ac_top_srcdir,;t t
17095 s,@INSTALL@,$ac_INSTALL,;t t
17096 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17098 if test x"$ac_file" != x-; then
17099 mv $tmp/out $ac_file
17107 cat >>$CONFIG_STATUS <<\EOF
17110 # CONFIG_HEADER section.
17113 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17114 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17116 # ac_d sets the value in "#define NAME VALUE" lines.
17117 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17118 ac_dB='[ ].*$,\1#\2'
17121 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
17122 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17123 ac_iB='\([ ]\),\1#\2define\3'
17126 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17127 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17128 ac_uB='$,\1#\2define\3'
17132 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17133 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17135 - | *:- | *:-:* ) # input from stdin
17137 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17138 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17139 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17140 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17141 * ) ac_file_in=$ac_file.in ;;
17144 test x"$ac_file" != x- && { echo "$as_me:17144: creating $ac_file" >&5
17145 echo "$as_me: creating $ac_file" >&6;}
17147 # First look for the input files in the build tree, otherwise in the
17149 ac_file_inputs=`IFS=:
17150 for f in $ac_file_in; do
17152 -) echo $tmp/stdin ;;
17154 # Absolute (can't be DOS-style, as IFS=:)
17155 test -f "$f" || { { echo "$as_me:17155: error: cannot find input file: $f" >&5
17156 echo "$as_me: error: cannot find input file: $f" >&2;}
17157 { (exit 1); exit 1; }; }
17160 if test -f "$f"; then
17163 elif test -f "$srcdir/$f"; then
17168 { { echo "$as_me:17168: error: cannot find input file: $f" >&5
17169 echo "$as_me: error: cannot find input file: $f" >&2;}
17170 { (exit 1); exit 1; }; }
17173 done` || { (exit 1); exit 1; }
17174 # Remove the trailing spaces.
17175 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17179 # Transform confdefs.h into a list of #define's. We won't use it as a sed
17180 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
17181 # be either 'cat' or 'sort'.
17182 cat confdefs.h | uniq >conftest.vals
17184 # Break up conftest.vals because some shells have a limit on
17185 # the size of here documents, and old seds have small limits too.
17187 rm -f conftest.tail
17188 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
17189 while grep . conftest.vals >/dev/null
17191 # Write chunks of a limited-size here document to conftest.frag.
17192 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
17193 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
17194 echo 'CEOF' >> $CONFIG_STATUS
17195 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
17196 rm -f conftest.vals
17197 mv conftest.tail conftest.vals
17199 rm -f conftest.vals
17201 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
17203 echo ' cat >> conftest.edit <<CEOF
17204 /@DEFS@/r conftest.frag
17207 sed -f conftest.edit $tmp/in > $tmp/out
17209 mv $tmp/out $tmp/in
17210 rm -f conftest.edit conftest.frag
17211 ' >> $CONFIG_STATUS
17213 cat >>$CONFIG_STATUS <<\EOF
17214 # Let's still pretend it is `configure' which instantiates (i.e., don't
17215 # use $as_me), people would be surprised to read:
17216 # /* config.h. Generated automatically by config.status. */
17217 if test x"$ac_file" = x-; then
17218 echo "/* Generated automatically by configure. */" >$tmp/config.h
17220 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
17222 cat $tmp/in >>$tmp/config.h
17224 if test x"$ac_file" != x-; then
17225 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
17226 { echo "$as_me:17226: $ac_file is unchanged" >&5
17227 echo "$as_me: $ac_file is unchanged" >&6;}
17229 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17230 X"$ac_file" : 'X\(//\)[^/]' \| \
17231 X"$ac_file" : 'X\(//\)$' \| \
17232 X"$ac_file" : 'X\(/\)' \| \
17233 . : '\(.\)' 2>/dev/null ||
17235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17236 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17237 /^X\(\/\/\)$/{ s//\1/; q; }
17238 /^X\(\/\).*/{ s//\1/; q; }
17240 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17241 { case "$ac_dir" in
17242 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17246 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17247 case $as_mkdir_dir in
17248 # Skip DOS drivespec
17249 ?:) as_incr_dir=$as_mkdir_dir ;;
17251 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17252 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
17259 mv $tmp/config.h $ac_file
17263 rm -f $tmp/config.h
17267 cat >>$CONFIG_STATUS <<\EOF
17270 # CONFIG_COMMANDS section.
17272 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17273 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17274 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17281 if test ! -d $srcdir/$cf_dir; then
17283 elif test -f $srcdir/$cf_dir/programs; then
17284 $AWK -f $srcdir/test/mk-test.awk ECHO_LINK="$ECHO_LINK" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
17288 case $cf_cv_system_name in
17289 OS/2*) LIB_PREFIX='' ;;
17290 os2*) LIB_PREFIX='' ;;
17291 *) LIB_PREFIX='lib' ;;
17293 cf_prefix=$LIB_PREFIX
17295 for cf_dir in $SRC_SUBDIRS
17297 if test ! -d $srcdir/$cf_dir ; then
17299 elif test -f $srcdir/$cf_dir/modules; then
17303 for cf_item in $cf_LIST_MODELS
17307 libtool) cf_suffix='.la' ;;
17308 normal) cf_suffix='.a' ;;
17309 debug) cf_suffix='_g.a' ;;
17310 profile) cf_suffix='_p.a' ;;
17312 case $cf_cv_system_name in
17313 cygwin*) cf_suffix='.dll' ;;
17314 darwin*) cf_suffix='.dylib' ;;
17317 ia64*) cf_suffix='.so' ;;
17318 *) cf_suffix='.sl' ;;
17321 *) cf_suffix='.so' ;;
17324 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
17326 if test $cf_item = shared ; then
17327 if test "$cf_cv_do_symlinks" = yes ; then
17328 case "$cf_cv_shlib_version" in #(vi
17330 case "$cf_cv_system_name" in #(vi
17332 case .${LIB_SUFFIX} in
17334 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
17335 cf_suffix=w'.${REL_VERSION}'"$cf_suffix"
17338 cf_suffix='.${REL_VERSION}'"$cf_suffix"
17342 *) cf_suffix="$cf_suffix"'.${REL_VERSION}' ;;
17346 case "$cf_cv_system_name" in #(vi
17348 case .${LIB_SUFFIX} in
17350 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
17351 cf_suffix=w'.${ABI_VERSION}'"$cf_suffix"
17354 cf_suffix='.${ABI_VERSION}'"$cf_suffix"
17358 *) cf_suffix="$cf_suffix"'.${ABI_VERSION}' ;;
17363 # cygwin needs import library, and has unique naming convention
17364 # use autodetected ${cf_prefix} for import lib and static lib, but
17365 # use 'cyg' prefix for shared lib.
17366 if test $cf_cv_shlib_version = cygdll ; then
17367 LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/cyg${cf_dir}\${ABI_VERSION}.dll"
17371 LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/${cf_prefix}${cf_dir}${cf_suffix}"
17374 if test $cf_dir = ncurses ; then
17375 cf_subsets="$LIB_SUBSETS"
17376 cf_r_parts="$cf_subsets"
17378 while test -n "$cf_r_parts"
17380 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
17381 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
17382 if test "$cf_l_parts" != "$cf_r_parts" ; then
17383 case $cf_l_parts in #(vi
17385 cf_item=`echo $LIBS_TO_MAKE |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
17388 cf_item=`echo $LIBS_TO_MAKE |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
17394 LIBS_TO_MAKE="$cf_item $LIBS_TO_MAKE"
17400 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
17403 sed -e "s%@LIBS_TO_MAKE@%$LIBS_TO_MAKE%" \
17404 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
17405 $cf_dir/Makefile >$cf_dir/Makefile.out
17406 mv $cf_dir/Makefile.out $cf_dir/Makefile
17408 $AWK -f $srcdir/mk-0th.awk \
17409 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" \
17410 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
17412 for cf_subset in $cf_subsets
17415 for cf_item in $cf_LIST_MODELS
17417 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
17419 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17422 libtool) cf_suffix='.la' ;;
17423 normal) cf_suffix='.a' ;;
17424 debug) cf_suffix='_g.a' ;;
17425 profile) cf_suffix='_p.a' ;;
17427 case $cf_cv_system_name in
17428 cygwin*) cf_suffix='.dll' ;;
17429 darwin*) cf_suffix='.dylib' ;;
17432 ia64*) cf_suffix='.so' ;;
17433 *) cf_suffix='.sl' ;;
17436 *) cf_suffix='.so' ;;
17439 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
17442 libtool) cf_subdir='obj_lo' ;;
17443 normal) cf_subdir='objects' ;;
17444 debug) cf_subdir='obj_g' ;;
17445 profile) cf_subdir='obj_p' ;;
17447 case $cf_cv_system_name in #(vi
17449 cf_subdir='objects' ;;
17451 cf_subdir='obj_s' ;;
17455 # Test for case where we build libtinfo with a different name.
17457 if test $cf_dir = ncurses ; then
17462 cf_libname=$TINFO_LIB_SUFFIX
17463 if test -n "${DFT_ARG_SUFFIX}" ; then
17464 # undo $LIB_SUFFIX add-on in CF_LIB_SUFFIX
17465 cf_suffix=`echo $cf_suffix |sed -e "s%^${LIB_SUFFIX}%%"`
17469 cf_libname=$TICS_LIB_SUFFIX
17470 if test -n "${DFT_ARG_SUFFIX}" ; then
17471 # undo $LIB_SUFFIX add-on in CF_LIB_SUFFIX
17472 cf_suffix=`echo $cf_suffix |sed -e "s%^${LIB_SUFFIX}%%"`
17478 # These dependencies really are for development, not
17479 # builds, but they are useful in porting, too.
17480 cf_depend="../include/ncurses_cfg.h"
17481 if test "$srcdir" = "."; then
17484 cf_reldir="\${srcdir}"
17487 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
17488 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
17489 elif test -f $srcdir/$cf_dir/curses.priv.h; then
17490 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
17494 old_cf_suffix="$cf_suffix"
17495 if test "$cf_cv_shlib_version_infix" = yes ; then
17496 if test -n "$LIB_SUFFIX" ; then
17497 case $LIB_SUFFIX in
17499 cf_libname=`echo $cf_libname | sed 's/w$//'`
17500 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
17507 $AWK -f $srcdir/mk-1st.awk \
17508 name=${cf_libname}${cf_dir_suffix} \
17509 traces=$LIB_TRACING \
17512 prefix=$cf_prefix \
17513 suffix=$cf_suffix \
17514 subset=$cf_subset \
17515 TermlibRoot=$TINFO_NAME \
17516 TermlibSuffix=$TINFO_SUFFIX \
17517 ShlibVer=$cf_cv_shlib_version \
17518 ShlibVerInfix=$cf_cv_shlib_version_infix \
17519 ReLink=${cf_cv_do_relink-no} \
17520 DoLinks=$cf_cv_do_symlinks \
17521 rmSoLocs=$cf_cv_rm_so_locs \
17522 ldconfig="$LDCONFIG" \
17523 overwrite=$WITH_OVERWRITE \
17524 depend="$cf_depend" \
17526 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
17528 cf_suffix="$old_cf_suffix"
17530 for cf_subdir2 in $cf_subdirs lib
17532 test $cf_subdir = $cf_subdir2 && break
17534 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
17535 $AWK -f $srcdir/mk-2nd.awk \
17537 traces=$LIB_TRACING \
17540 subset=$cf_subset \
17543 crenames=$cf_cv_prog_CC_c_o \
17544 cxxrenames=$cf_cv_prog_CXX_c_o \
17545 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
17546 cf_subdirs="$cf_subdirs $cf_subdir"
17551 echo ' cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@' >>Makefile
17554 for cf_dir in $SRC_SUBDIRS
17556 if test ! -d $srcdir/$cf_dir ; then
17560 if test -f $cf_dir/Makefile ; then
17563 echo 'libs \' >> Makefile
17564 echo 'install.libs \' >> Makefile
17565 echo 'uninstall.libs ::' >> Makefile
17566 echo ' cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@' >> Makefile
17571 if test -f $srcdir/$cf_dir/modules; then
17573 if test -f $srcdir/$cf_dir/headers; then
17574 cat >> Makefile <<CF_EOF
17575 install.includes \\
17576 uninstall.includes \\
17579 if test "$cf_dir" != "c++" ; then
17580 echo 'lint \' >> Makefile
17582 cat >> Makefile <<CF_EOF
17588 uninstall.$cf_dir ::
17589 cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@
17591 elif test -f $srcdir/$cf_dir/headers; then
17592 cat >> Makefile <<CF_EOF
17597 install.includes \\
17598 uninstall.includes ::
17599 cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@
17604 cat >> Makefile <<CF_EOF
17606 install.libs uninstall.libs \\
17607 install.data uninstall.data ::
17608 $MAKE_TERMINFO cd misc && \${MAKE} \${CF_MFLAGS} \$@
17612 cd man && \${MAKE} \${CF_MFLAGS} \$@
17615 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
17616 rm -f headers.sh headers.sed mk_shared_lib.sh
17617 rm -rf \${DIRS_TO_MAKE}
17620 # Special case: tack's manpage lives in its own directory.
17621 if test -d tack ; then
17622 if test -f $srcdir/$tack.h; then
17623 cat >> Makefile <<CF_EOF
17627 cd tack && \${MAKE} \${CF_MFLAGS} \$@
17632 rm -f headers.sed headers.sh
17634 echo creating headers.sh
17635 cat >headers.sh <<CF_EOF
17637 # This shell script is generated by the 'configure' script. It is invoked in a
17638 # subdirectory of the build tree. It generates a sed-script in the parent
17639 # directory that is used to adjust includes for header files that reside in a
17640 # subdirectory of /usr/include, etc.
17642 while test \$# != 3
17644 PRG="\$PRG \$1"; shift
17649 TMPSRC=\${TMPDIR-/tmp}/\`basename \$SRC\`\$\$
17650 TMPSED=\${TMPDIR-/tmp}/headers.sed\$\$
17651 echo installing \$SRC in \$DST
17654 if test $WITH_CURSES_H = yes; then
17655 cat >>headers.sh <<CF_EOF
17658 END=\`basename \$DST\`
17659 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
17661 NAME=\`basename \$i\`
17662 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
17666 echo "" >> \$TMPSED
17672 cat >>headers.sh <<CF_EOF
17675 END=\`basename \$DST\`
17676 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
17678 NAME=\`basename \$i\`
17679 if test "\$NAME" = "curses.h"
17681 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
17684 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
17688 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
17693 cat >>headers.sh <<CF_EOF
17695 sed -f \$TMPSED \$SRC > \$TMPSRC
17696 NAME=\`basename \$SRC\`
17698 if test $WITH_CURSES_H != yes; then
17699 cat >>headers.sh <<CF_EOF
17700 test "\$NAME" = "curses.h" && NAME=ncurses.h
17703 cat >>headers.sh <<CF_EOF
17704 # Just in case someone gzip'd manpages, remove the conflicting copy.
17705 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
17707 eval \$PRG \$TMPSRC \$DST/\$NAME
17708 rm -f \$TMPSRC \$TMPSED
17711 chmod 0755 headers.sh
17713 for cf_dir in $SRC_SUBDIRS
17715 if test ! -d $srcdir/$cf_dir ; then
17719 if test -f $srcdir/$cf_dir/headers; then
17720 $AWK -f $srcdir/mk-hdr.awk \
17721 subset="$LIB_SUBSETS" \
17722 compat="$WITH_CURSES_H" \
17723 $srcdir/$cf_dir/headers >>$cf_dir/Makefile
17726 if test -f $srcdir/$cf_dir/modules; then
17727 if test "$cf_dir" != "c++" ; then
17728 cat >>$cf_dir/Makefile <<"CF_EOF"
17729 depend : ${AUTO_SRC}
17730 makedepend -- ${CPPFLAGS} -- ${C_SRC}
17732 # DO NOT DELETE THIS LINE -- make depend depends on it.
17743 cat >>$CONFIG_STATUS <<\EOF
17745 { (exit 0); exit 0; }
17747 chmod +x $CONFIG_STATUS
17748 ac_clean_files=$ac_clean_files_save
17750 # configure is writing to config.log, and then calls config.status.
17751 # config.status does its own redirection, appending to config.log.
17752 # Unfortunately, on DOS this fails, as config.log is still kept open
17753 # by configure, so config.status won't be able to write to it; its
17754 # output is simply discarded. So we exec the FD to /dev/null,
17755 # effectively closing config.log, so it can be properly (re)opened and
17756 # appended to by config.status. When coming back to configure, we
17757 # need to make the FD available again.
17758 if test "$no_create" != yes; then
17761 $SHELL $CONFIG_STATUS || ac_cs_success=false
17763 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17764 # would make configure fail if this is the last instruction.
17765 $ac_cs_success || { (exit 1); exit 1; }
17767 ${MAKE-make} preinstall