2 # From configure.in Revision: 1.457 .
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-manpages suppress install of manpages
701 --without-progs suppress build with programs (e.g., tic)
702 --without-curses-h install curses.h as ncurses.h only
703 --enable-mixed-case tic should assume mixed-case filenames
704 --with-install-prefix prefixes actual install-location ($DESTDIR)
705 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
706 --with-build-cc=XXX the build C compiler ($BUILD_CC)
707 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
708 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
709 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
710 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
711 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
712 Options to Specify the Libraries Built/Used:
713 --with-libtool generate libraries with libtool
714 --with-shared generate shared-libraries
715 --with-normal generate normal-libraries (default)
716 --with-debug generate debug-libraries (default)
717 --with-profile generate profile-libraries
718 --with-termlib generate separate terminfo library
719 --with-ticlib generate separate tic library
720 --with-gpm use Alessandro Rubini's GPM library
721 --without-dlsym do not use dlsym() to load GPM dynamically
722 --with-sysmouse use sysmouse (FreeBSD console)
723 --enable-rpath use rpath option when generating shared libraries
724 --disable-relink relink shared libraries during install
725 --with-shlib-version=X Specify rel or abi version for shared libs
726 Fine-Tuning Your Configuration:
727 --disable-overwrite leave out the link to -lcurses
728 --disable-database do not use terminfo, only fallbacks/termcap
729 --with-database=XXX specify terminfo source to install
730 --with-hashed-db specify hashed-database library
731 --with-fallbacks=XXX specify list of fallback terminal descriptions
732 --without-xterm-new specify if xterm terminfo should be old version
733 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
734 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
735 --disable-big-core assume machine has little memory
736 --disable-big-strings assume compiler has only standard-size strings
737 --enable-termcap compile in termcap fallback support
738 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
739 --enable-getcap fast termcap load, no xrefs to terminfo
740 --enable-getcap-cache cache translated termcaps in ~/.terminfo
741 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
742 --disable-root-environ restrict environment when running as root
743 --enable-symlinks make tic use symbolic links not hard links
744 --enable-broken_linker compile with broken-linker support code
745 --enable-bsdpad recognize BSD-style prefix padding
746 --enable-widec compile with wide-char/UTF-8 code
747 --disable-lp64 allow chtype to be long (ignore _LP64)
748 --disable-largefile omit support for large files
749 --disable-tparm-varargs compile tparm() without varargs interface
750 --disable-tic-depends link tic library without explicit dependency on ncurses library
751 --with-bool=TYPE override fallback type of bool variable
752 --with-caps=alt compile with alternate Caps file
753 --with-chtype=TYPE override type of chtype
754 --with-ospeed=TYPE override type of ospeed variable
755 --with-mmask-t=TYPE override type of mmask_t
756 --with-rcs-ids compile-in RCS identifiers
757 Options to Specify How Manpages are Installed:
758 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
759 optionally formatted/catonly, e.g., gzip,formatted
760 --with-manpage-renames specify manpage-renaming
761 --with-manpage-aliases specify manpage-aliases using .so
762 --with-manpage-symlinks specify manpage-aliases using symlinks
763 --with-manpage-tbl specify manpage processing with tbl
765 --disable-ext-funcs disable function-extensions
766 --enable-const compile with extra/non-standard const
767 --enable-ext-colors compile for 256-color support
768 --enable-ext-mouse compile for extended mouse-encoding
769 --enable-no-padding compile with $NCURSES_NO_PADDING code
770 --enable-signed-char compile using signed Boolean's in term.h
771 --enable-sigwinch compile with SIGWINCH handler
772 --enable-tcap-names compile with user-definable terminal capabilities
774 --without-develop disable development options
775 --enable-hard-tabs compile with hard-tabs code
776 --enable-xmc-glitch compile with support for xmc (magic-cookie)
778 --disable-assumed-color do not assume anything about default-colors
779 --disable-hashmap compile without hashmap scrolling-optimization
780 --enable-colorfgbg compile with $COLORFGBG code
781 --with-pthread use POSIX thread library
782 --enable-weak-symbols enable weak-symbols for pthreads
783 --enable-reentrant compile with experimental reentrant code
784 --enable-safe-sprintf compile with experimental safe-sprintf code
785 --disable-scroll-hints compile without scroll-hints code
786 --enable-wgetch-events compile with experimental wgetch-events code
787 Testing/development Options:
788 --enable-echo build: display "compiling" commands (default)
789 --enable-warnings build: turn on GCC compiler warnings
790 --enable-assertions test: turn on generation of assertion code
791 --with-dmalloc test: use Gray Watson's dmalloc library
792 --with-dbmalloc test: use Conor Cahill's dbmalloc library
793 --with-valgrind test: use valgrind
794 --disable-leaks test: free permanent memory, analyze leaks
795 --enable-expanded test: generate functions for certain macros
796 --disable-macros test: use functions rather than macros
797 --with-trace test: add trace() function to all models of ncurses
798 Ada95 Binding Options:
799 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
800 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/lib/ada/adainclude)
801 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
803 Some influential environment variables:
804 CC C compiler command
805 CFLAGS C compiler flags
806 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
807 nonstandard directory <lib dir>
808 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
809 headers in a nonstandard directory <include dir>
811 CXX C++ compiler command
812 CXXFLAGS C++ compiler flags
813 CXXCPP C++ preprocessor
815 Use these variables to override the choices made by `configure' or to help
816 it to find libraries and programs with nonstandard names/locations.
821 if test "$ac_init_help" = "recursive"; then
822 # If there are subdirs, report their specific --help.
824 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
826 # A "../" for each directory in /$ac_subdir.
827 ac_dots=`echo $ac_subdir |
828 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
831 .) # No --srcdir option. We are building in place.
832 ac_sub_srcdir=$srcdir ;;
833 [\\/]* | ?:[\\/]* ) # Absolute path.
834 ac_sub_srcdir=$srcdir/$ac_subdir ;;
836 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
839 # Check for guested configure; otherwise get Cygnus style configure.
840 if test -f $ac_sub_srcdir/configure.gnu; then
842 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
843 elif test -f $ac_sub_srcdir/configure; then
845 $SHELL $ac_sub_srcdir/configure --help=recursive
846 elif test -f $ac_sub_srcdir/configure.ac ||
847 test -f $ac_sub_srcdir/configure.in; then
851 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
857 test -n "$ac_init_help" && exit 0
858 if $ac_init_version; then
861 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
862 Free Software Foundation, Inc.
863 This configure script is free software; the Free Software Foundation
864 gives unlimited permission to copy, distribute and modify it.
870 This file contains any messages produced by compilers while
871 running configure, to aid debugging if configure makes a mistake.
873 It was created by $as_me, which was
874 generated by GNU Autoconf 2.52.20080325. Invocation command line was
885 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
886 uname -m = `(uname -m) 2>/dev/null || echo unknown`
887 uname -r = `(uname -r) 2>/dev/null || echo unknown`
888 uname -s = `(uname -s) 2>/dev/null || echo unknown`
889 uname -v = `(uname -v) 2>/dev/null || echo unknown`
891 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
892 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
894 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
895 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
896 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
897 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
898 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
899 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
900 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
914 # Keep a trace of the command line.
915 # Strip out --no-create and --no-recursion so they do not pile up.
916 # Also quote any args containing shell meta-characters.
922 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
923 | --no-cr | --no-c) ;;
924 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
925 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
926 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
927 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
928 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
930 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
933 # Get rid of the leading space.
936 # When interrupted or exit'd, cleanup temporary files, and complete
937 # config.log. We remove comments because anyway the quotes in there
938 # would cause problems or look ugly.
940 # Save into config.log some information that might help in debugging.
942 echo "## ----------------- ##" >&5
943 echo "## Cache variables. ##" >&5
944 echo "## ----------------- ##" >&5
946 # The following way of writing the cache mishandles newlines in values,
949 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
952 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
953 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
957 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
961 sed "/^$/d" confdefs.h >conftest.log
962 if test -s conftest.log; then
964 echo "## ------------ ##" >&5
965 echo "## confdefs.h. ##" >&5
966 echo "## ------------ ##" >&5
971 test "$ac_signal" != 0 &&
972 echo "$as_me: caught signal $ac_signal" >&5
973 echo "$as_me: exit $exit_status" >&5
974 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
977 for ac_signal in 1 2 13 15; do
978 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
982 # confdefs.h avoids OS command line length limits that DEFS can exceed.
983 rm -rf conftest* confdefs.h
984 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
987 # Let the site file select an alternate cache file if it wants to.
988 # Prefer explicitly selected file to automatically selected ones.
989 if test -z "$CONFIG_SITE"; then
990 if test "x$prefix" != xNONE; then
991 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
993 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
996 for ac_site_file in $CONFIG_SITE; do
997 if test -r "$ac_site_file"; then
998 { echo "$as_me:998: loading site script $ac_site_file" >&5
999 echo "$as_me: loading site script $ac_site_file" >&6;}
1000 cat "$ac_site_file" >&5
1005 if test -r "$cache_file"; then
1006 # Some versions of bash will fail to source /dev/null (special
1007 # files actually), so we avoid doing that.
1008 if test -f "$cache_file"; then
1009 { echo "$as_me:1009: loading cache $cache_file" >&5
1010 echo "$as_me: loading cache $cache_file" >&6;}
1012 [\\/]* | ?:[\\/]* ) . $cache_file;;
1013 *) . ./$cache_file;;
1017 { echo "$as_me:1017: creating cache $cache_file" >&5
1018 echo "$as_me: creating cache $cache_file" >&6;}
1022 # Check that the precious variables saved in the cache have kept the same
1024 ac_cache_corrupted=false
1025 for ac_var in `(set) 2>&1 |
1026 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1027 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1028 eval ac_new_set=\$ac_env_${ac_var}_set
1029 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1030 eval ac_new_val="\$ac_env_${ac_var}_value"
1031 case $ac_old_set,$ac_new_set in
1033 { echo "$as_me:1033: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1034 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1035 ac_cache_corrupted=: ;;
1037 { echo "$as_me:1037: error: \`$ac_var' was not set in the previous run" >&5
1038 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1039 ac_cache_corrupted=: ;;
1042 if test "x$ac_old_val" != "x$ac_new_val"; then
1043 { echo "$as_me:1043: error: \`$ac_var' has changed since the previous run:" >&5
1044 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1045 { echo "$as_me:1045: former value: $ac_old_val" >&5
1046 echo "$as_me: former value: $ac_old_val" >&2;}
1047 { echo "$as_me:1047: current value: $ac_new_val" >&5
1048 echo "$as_me: current value: $ac_new_val" >&2;}
1049 ac_cache_corrupted=:
1052 # Pass precious variables to config.status. It doesn't matter if
1053 # we pass some twice (in addition to the command line arguments).
1054 if test "$ac_new_set" = set; then
1056 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1057 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1058 ac_configure_args="$ac_configure_args '$ac_arg'"
1060 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1065 if $ac_cache_corrupted; then
1066 { echo "$as_me:1066: error: changes in the environment can compromise the build" >&5
1067 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1068 { { echo "$as_me:1068: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1069 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1070 { (exit 1); exit 1; }; }
1074 ac_cpp='$CPP $CPPFLAGS'
1075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1078 ac_main_return=return
1080 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1081 *c*,-n*) ECHO_N= ECHO_C='
1083 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1084 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1086 echo "#! $SHELL" >conftest.sh
1087 echo "exit 0" >>conftest.sh
1088 chmod +x conftest.sh
1089 if { (echo "$as_me:1089: PATH=\".;.\"; conftest.sh") >&5
1090 (PATH=".;."; conftest.sh) 2>&5
1092 echo "$as_me:1092: \$? = $ac_status" >&5
1093 (exit $ac_status); }; then
1094 ac_path_separator=';'
1098 PATH_SEPARATOR="$ac_path_separator"
1101 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1105 echo "$as_me:1105: checking for egrep" >&5
1106 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1107 if test "${ac_cv_prog_egrep+set}" = set; then
1108 echo $ECHO_N "(cached) $ECHO_C" >&6
1110 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1111 then ac_cv_prog_egrep='grep -E'
1112 else ac_cv_prog_egrep='egrep'
1115 echo "$as_me:1115: result: $ac_cv_prog_egrep" >&5
1116 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1117 EGREP=$ac_cv_prog_egrep
1119 test -z "$EGREP" && { { echo "$as_me:1119: error: No egrep program found" >&5
1120 echo "$as_me: error: No egrep program found" >&2;}
1121 { (exit 1); exit 1; }; }
1123 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1124 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1125 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1126 cf_cv_abi_version=${NCURSES_MAJOR}
1127 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1128 cf_cv_timestamp=`date`
1129 echo "$as_me:1129: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1130 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1132 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1134 # Check whether --with-rel-version or --without-rel-version was given.
1135 if test "${with_rel_version+set}" = set; then
1136 withval="$with_rel_version"
1137 { echo "$as_me:1137: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1138 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1139 cf_cv_rel_version=$withval
1142 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1143 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1145 if test -n "$NCURSES_MAJOR" ; then
1146 case $NCURSES_MAJOR in #(vi
1150 { { echo "$as_me:1150: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1151 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1152 { (exit 1); exit 1; }; }
1156 { { echo "$as_me:1156: error: Release major-version value is empty" >&5
1157 echo "$as_me: error: Release major-version value is empty" >&2;}
1158 { (exit 1); exit 1; }; }
1161 if test -n "$NCURSES_MINOR" ; then
1162 case $NCURSES_MINOR in #(vi
1166 { { echo "$as_me:1166: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1167 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1168 { (exit 1); exit 1; }; }
1172 { { echo "$as_me:1172: error: Release minor-version value is empty" >&5
1173 echo "$as_me: error: Release minor-version value is empty" >&2;}
1174 { (exit 1); exit 1; }; }
1177 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1179 # Check whether --with-abi-version or --without-abi-version was given.
1180 if test "${with_abi_version+set}" = set; then
1181 withval="$with_abi_version"
1182 { echo "$as_me:1182: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1183 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1184 cf_cv_abi_version=$withval
1187 if test -n "$cf_cv_abi_version" ; then
1188 case $cf_cv_abi_version in #(vi
1192 { { echo "$as_me:1192: error: ABI version is not a number: $cf_cv_abi_version" >&5
1193 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1194 { (exit 1); exit 1; }; }
1198 { { echo "$as_me:1198: error: ABI version value is empty" >&5
1199 echo "$as_me: error: ABI version value is empty" >&2;}
1200 { (exit 1); exit 1; }; }
1204 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1205 if test -f $ac_dir/install-sh; then
1207 ac_install_sh="$ac_aux_dir/install-sh -c"
1209 elif test -f $ac_dir/install.sh; then
1211 ac_install_sh="$ac_aux_dir/install.sh -c"
1213 elif test -f $ac_dir/shtool; then
1215 ac_install_sh="$ac_aux_dir/shtool install -c"
1219 if test -z "$ac_aux_dir"; then
1220 { { echo "$as_me:1220: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1221 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1222 { (exit 1); exit 1; }; }
1224 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1225 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1226 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1228 # Make sure we can run config.sub.
1229 $ac_config_sub sun4 >/dev/null 2>&1 ||
1230 { { echo "$as_me:1230: error: cannot run $ac_config_sub" >&5
1231 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1232 { (exit 1); exit 1; }; }
1234 echo "$as_me:1234: checking build system type" >&5
1235 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1236 if test "${ac_cv_build+set}" = set; then
1237 echo $ECHO_N "(cached) $ECHO_C" >&6
1239 ac_cv_build_alias=$build_alias
1240 test -z "$ac_cv_build_alias" &&
1241 ac_cv_build_alias=`$ac_config_guess`
1242 test -z "$ac_cv_build_alias" &&
1243 { { echo "$as_me:1243: error: cannot guess build type; you must specify one" >&5
1244 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1245 { (exit 1); exit 1; }; }
1246 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1247 { { echo "$as_me:1247: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1248 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1249 { (exit 1); exit 1; }; }
1252 echo "$as_me:1252: result: $ac_cv_build" >&5
1253 echo "${ECHO_T}$ac_cv_build" >&6
1255 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1256 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1257 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1259 echo "$as_me:1259: checking host system type" >&5
1260 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1261 if test "${ac_cv_host+set}" = set; then
1262 echo $ECHO_N "(cached) $ECHO_C" >&6
1264 ac_cv_host_alias=$host_alias
1265 test -z "$ac_cv_host_alias" &&
1266 ac_cv_host_alias=$ac_cv_build_alias
1267 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1268 { { echo "$as_me:1268: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1269 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1270 { (exit 1); exit 1; }; }
1273 echo "$as_me:1273: result: $ac_cv_host" >&5
1274 echo "${ECHO_T}$ac_cv_host" >&6
1276 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1277 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1278 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1280 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1281 echo "$as_me:1281: checking target system type" >&5
1282 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1283 if test "${ac_cv_target+set}" = set; then
1284 echo $ECHO_N "(cached) $ECHO_C" >&6
1286 ac_cv_target_alias=$target_alias
1287 test "x$ac_cv_target_alias" = "x" &&
1288 ac_cv_target_alias=$ac_cv_host_alias
1289 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1290 { { echo "$as_me:1290: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1291 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1292 { (exit 1); exit 1; }; }
1295 echo "$as_me:1295: result: $ac_cv_target" >&5
1296 echo "${ECHO_T}$ac_cv_target" >&6
1297 target=$ac_cv_target
1298 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1299 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1300 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1302 # The aliases save the names the user supplied, while $host etc.
1303 # will get canonicalized.
1304 test -n "$target_alias" &&
1305 test "$program_prefix$program_suffix$program_transform_name" = \
1307 program_prefix=${target_alias}-
1308 system_name="$host_os"
1310 system_name="`(uname -s -r) 2>/dev/null`"
1311 if test -z "$system_name" ; then
1312 system_name="`(hostname) 2>/dev/null`"
1315 test -n "$system_name" && cat >>confdefs.h <<EOF
1316 #define SYSTEM_NAME "$system_name"
1319 if test "${cf_cv_system_name+set}" = set; then
1320 echo $ECHO_N "(cached) $ECHO_C" >&6
1322 cf_cv_system_name="$system_name"
1325 test -z "$system_name" && system_name="$cf_cv_system_name"
1326 test -n "$cf_cv_system_name" && echo "$as_me:1326: result: Configuring for $cf_cv_system_name" >&5
1327 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1329 if test ".$system_name" != ".$cf_cv_system_name" ; then
1330 echo "$as_me:1330: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1331 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1332 { { echo "$as_me:1332: error: \"Please remove config.cache and try again.\"" >&5
1333 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1334 { (exit 1); exit 1; }; }
1337 # Check whether --with-system-type or --without-system-type was given.
1338 if test "${with_system_type+set}" = set; then
1339 withval="$with_system_type"
1340 { echo "$as_me:1340: WARNING: overriding system type to $withval" >&5
1341 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1342 cf_cv_system_name=$withval
1345 ### Save the given $CFLAGS to allow user-override.
1346 cf_user_CFLAGS="$CFLAGS"
1348 ### Default install-location
1350 echo "$as_me:1350: checking for prefix" >&5
1351 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1352 if test "x$prefix" = "xNONE" ; then
1353 case "$cf_cv_system_name" in
1354 # non-vendor systems don't have a conflict
1355 openbsd*|freebsd*|linux*|cygwin*|k*bsd*-gnu)
1358 *) prefix=$ac_default_prefix
1362 echo "$as_me:1362: result: $prefix" >&5
1363 echo "${ECHO_T}$prefix" >&6
1365 if test "x$prefix" = "xNONE" ; then
1366 echo "$as_me:1366: checking for default include-directory" >&5
1367 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1368 test -n "$verbose" && echo 1>&6
1371 $includedir/ncurses \
1373 $prefix/include/ncurses \
1374 /usr/local/include \
1375 /usr/local/include/ncurses \
1377 /usr/include/ncurses
1379 cf_dir=`eval echo $cf_symbol`
1380 if test -f $cf_dir/curses.h ; then
1381 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1382 includedir="$cf_symbol"
1383 test -n "$verbose" && echo $ac_n " found " 1>&6
1387 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1389 echo "$as_me:1389: result: $includedir" >&5
1390 echo "${ECHO_T}$includedir" >&6
1393 ### Checks for programs.
1395 ac_cpp='$CPP $CPPFLAGS'
1396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1399 ac_main_return=return
1400 if test -n "$ac_tool_prefix"; then
1401 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1402 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1403 echo "$as_me:1403: checking for $ac_word" >&5
1404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1405 if test "${ac_cv_prog_CC+set}" = set; then
1406 echo $ECHO_N "(cached) $ECHO_C" >&6
1408 if test -n "$CC"; then
1409 ac_cv_prog_CC="$CC" # Let the user override the test.
1411 ac_save_IFS=$IFS; IFS=$ac_path_separator
1413 for ac_dir in $ac_dummy; do
1415 test -z "$ac_dir" && ac_dir=.
1416 $as_executable_p "$ac_dir/$ac_word" || continue
1417 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1418 echo "$as_me:1418: found $ac_dir/$ac_word" >&5
1425 if test -n "$CC"; then
1426 echo "$as_me:1426: result: $CC" >&5
1427 echo "${ECHO_T}$CC" >&6
1429 echo "$as_me:1429: result: no" >&5
1430 echo "${ECHO_T}no" >&6
1434 if test -z "$ac_cv_prog_CC"; then
1436 # Extract the first word of "gcc", so it can be a program name with args.
1437 set dummy gcc; ac_word=$2
1438 echo "$as_me:1438: checking for $ac_word" >&5
1439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1440 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1441 echo $ECHO_N "(cached) $ECHO_C" >&6
1443 if test -n "$ac_ct_CC"; then
1444 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1446 ac_save_IFS=$IFS; IFS=$ac_path_separator
1448 for ac_dir in $ac_dummy; do
1450 test -z "$ac_dir" && ac_dir=.
1451 $as_executable_p "$ac_dir/$ac_word" || continue
1452 ac_cv_prog_ac_ct_CC="gcc"
1453 echo "$as_me:1453: found $ac_dir/$ac_word" >&5
1459 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1460 if test -n "$ac_ct_CC"; then
1461 echo "$as_me:1461: result: $ac_ct_CC" >&5
1462 echo "${ECHO_T}$ac_ct_CC" >&6
1464 echo "$as_me:1464: result: no" >&5
1465 echo "${ECHO_T}no" >&6
1473 if test -z "$CC"; then
1474 if test -n "$ac_tool_prefix"; then
1475 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1476 set dummy ${ac_tool_prefix}cc; ac_word=$2
1477 echo "$as_me:1477: checking for $ac_word" >&5
1478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1479 if test "${ac_cv_prog_CC+set}" = set; then
1480 echo $ECHO_N "(cached) $ECHO_C" >&6
1482 if test -n "$CC"; then
1483 ac_cv_prog_CC="$CC" # Let the user override the test.
1485 ac_save_IFS=$IFS; IFS=$ac_path_separator
1487 for ac_dir in $ac_dummy; do
1489 test -z "$ac_dir" && ac_dir=.
1490 $as_executable_p "$ac_dir/$ac_word" || continue
1491 ac_cv_prog_CC="${ac_tool_prefix}cc"
1492 echo "$as_me:1492: found $ac_dir/$ac_word" >&5
1499 if test -n "$CC"; then
1500 echo "$as_me:1500: result: $CC" >&5
1501 echo "${ECHO_T}$CC" >&6
1503 echo "$as_me:1503: result: no" >&5
1504 echo "${ECHO_T}no" >&6
1508 if test -z "$ac_cv_prog_CC"; then
1510 # Extract the first word of "cc", so it can be a program name with args.
1511 set dummy cc; ac_word=$2
1512 echo "$as_me:1512: checking for $ac_word" >&5
1513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1514 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1515 echo $ECHO_N "(cached) $ECHO_C" >&6
1517 if test -n "$ac_ct_CC"; then
1518 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1520 ac_save_IFS=$IFS; IFS=$ac_path_separator
1522 for ac_dir in $ac_dummy; do
1524 test -z "$ac_dir" && ac_dir=.
1525 $as_executable_p "$ac_dir/$ac_word" || continue
1526 ac_cv_prog_ac_ct_CC="cc"
1527 echo "$as_me:1527: found $ac_dir/$ac_word" >&5
1533 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1534 if test -n "$ac_ct_CC"; then
1535 echo "$as_me:1535: result: $ac_ct_CC" >&5
1536 echo "${ECHO_T}$ac_ct_CC" >&6
1538 echo "$as_me:1538: result: no" >&5
1539 echo "${ECHO_T}no" >&6
1548 if test -z "$CC"; then
1549 # Extract the first word of "cc", so it can be a program name with args.
1550 set dummy cc; ac_word=$2
1551 echo "$as_me:1551: checking for $ac_word" >&5
1552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1553 if test "${ac_cv_prog_CC+set}" = set; then
1554 echo $ECHO_N "(cached) $ECHO_C" >&6
1556 if test -n "$CC"; then
1557 ac_cv_prog_CC="$CC" # Let the user override the test.
1560 ac_save_IFS=$IFS; IFS=$ac_path_separator
1562 for ac_dir in $ac_dummy; do
1564 test -z "$ac_dir" && ac_dir=.
1565 $as_executable_p "$ac_dir/$ac_word" || continue
1566 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1567 ac_prog_rejected=yes
1571 echo "$as_me:1571: found $ac_dir/$ac_word" >&5
1575 if test $ac_prog_rejected = yes; then
1576 # We found a bogon in the path, so make sure we never use it.
1577 set dummy $ac_cv_prog_CC
1579 if test $# != 0; then
1580 # We chose a different compiler from the bogus one.
1581 # However, it has the same basename, so the bogon will be chosen
1582 # first if we set CC to just the basename; use the full file name.
1584 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1592 if test -n "$CC"; then
1593 echo "$as_me:1593: result: $CC" >&5
1594 echo "${ECHO_T}$CC" >&6
1596 echo "$as_me:1596: result: no" >&5
1597 echo "${ECHO_T}no" >&6
1601 if test -z "$CC"; then
1602 if test -n "$ac_tool_prefix"; then
1605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1606 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1607 echo "$as_me:1607: checking for $ac_word" >&5
1608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1609 if test "${ac_cv_prog_CC+set}" = set; then
1610 echo $ECHO_N "(cached) $ECHO_C" >&6
1612 if test -n "$CC"; then
1613 ac_cv_prog_CC="$CC" # Let the user override the test.
1615 ac_save_IFS=$IFS; IFS=$ac_path_separator
1617 for ac_dir in $ac_dummy; do
1619 test -z "$ac_dir" && ac_dir=.
1620 $as_executable_p "$ac_dir/$ac_word" || continue
1621 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1622 echo "$as_me:1622: found $ac_dir/$ac_word" >&5
1629 if test -n "$CC"; then
1630 echo "$as_me:1630: result: $CC" >&5
1631 echo "${ECHO_T}$CC" >&6
1633 echo "$as_me:1633: result: no" >&5
1634 echo "${ECHO_T}no" >&6
1637 test -n "$CC" && break
1640 if test -z "$CC"; then
1644 # Extract the first word of "$ac_prog", so it can be a program name with args.
1645 set dummy $ac_prog; ac_word=$2
1646 echo "$as_me:1646: checking for $ac_word" >&5
1647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1648 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1649 echo $ECHO_N "(cached) $ECHO_C" >&6
1651 if test -n "$ac_ct_CC"; then
1652 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1654 ac_save_IFS=$IFS; IFS=$ac_path_separator
1656 for ac_dir in $ac_dummy; do
1658 test -z "$ac_dir" && ac_dir=.
1659 $as_executable_p "$ac_dir/$ac_word" || continue
1660 ac_cv_prog_ac_ct_CC="$ac_prog"
1661 echo "$as_me:1661: found $ac_dir/$ac_word" >&5
1667 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1668 if test -n "$ac_ct_CC"; then
1669 echo "$as_me:1669: result: $ac_ct_CC" >&5
1670 echo "${ECHO_T}$ac_ct_CC" >&6
1672 echo "$as_me:1672: result: no" >&5
1673 echo "${ECHO_T}no" >&6
1676 test -n "$ac_ct_CC" && break
1684 test -z "$CC" && { { echo "$as_me:1684: error: no acceptable cc found in \$PATH" >&5
1685 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1686 { (exit 1); exit 1; }; }
1688 # Provide some information about the compiler.
1689 echo "$as_me:1689:" \
1690 "checking for C compiler version" >&5
1691 ac_compiler=`set X $ac_compile; echo $2`
1692 { (eval echo "$as_me:1692: \"$ac_compiler --version </dev/null >&5\"") >&5
1693 (eval $ac_compiler --version </dev/null >&5) 2>&5
1695 echo "$as_me:1695: \$? = $ac_status" >&5
1696 (exit $ac_status); }
1697 { (eval echo "$as_me:1697: \"$ac_compiler -v </dev/null >&5\"") >&5
1698 (eval $ac_compiler -v </dev/null >&5) 2>&5
1700 echo "$as_me:1700: \$? = $ac_status" >&5
1701 (exit $ac_status); }
1702 { (eval echo "$as_me:1702: \"$ac_compiler -V </dev/null >&5\"") >&5
1703 (eval $ac_compiler -V </dev/null >&5) 2>&5
1705 echo "$as_me:1705: \$? = $ac_status" >&5
1706 (exit $ac_status); }
1708 cat >conftest.$ac_ext <<_ACEOF
1709 #line 1709 "configure"
1710 #include "confdefs.h"
1720 ac_clean_files_save=$ac_clean_files
1721 ac_clean_files="$ac_clean_files a.out a.exe"
1722 # Try to create an executable without -o first, disregard a.out.
1723 # It will help us diagnose broken compilers, and finding out an intuition
1725 echo "$as_me:1725: checking for C compiler default output" >&5
1726 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1727 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1728 if { (eval echo "$as_me:1728: \"$ac_link_default\"") >&5
1729 (eval $ac_link_default) 2>&5
1731 echo "$as_me:1731: \$? = $ac_status" >&5
1732 (exit $ac_status); }; then
1733 # Find the output, starting from the most likely. This scheme is
1734 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1736 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1737 ls a.out conftest 2>/dev/null;
1738 ls a.* conftest.* 2>/dev/null`; do
1740 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1741 a.out ) # We found the default executable, but exeext='' is most
1744 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1745 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1752 echo "$as_me: failed program was:" >&5
1753 cat conftest.$ac_ext >&5
1754 { { echo "$as_me:1754: error: C compiler cannot create executables" >&5
1755 echo "$as_me: error: C compiler cannot create executables" >&2;}
1756 { (exit 77); exit 77; }; }
1759 ac_exeext=$ac_cv_exeext
1760 echo "$as_me:1760: result: $ac_file" >&5
1761 echo "${ECHO_T}$ac_file" >&6
1763 # Check the compiler produces executables we can run. If not, either
1764 # the compiler is broken, or we cross compile.
1765 echo "$as_me:1765: checking whether the C compiler works" >&5
1766 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1767 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1768 # If not cross compiling, check that we can run a simple program.
1769 if test "$cross_compiling" != yes; then
1770 if { ac_try='./$ac_file'
1771 { (eval echo "$as_me:1771: \"$ac_try\"") >&5
1774 echo "$as_me:1774: \$? = $ac_status" >&5
1775 (exit $ac_status); }; }; then
1778 if test "$cross_compiling" = maybe; then
1781 { { echo "$as_me:1781: error: cannot run C compiled programs.
1782 If you meant to cross compile, use \`--host'." >&5
1783 echo "$as_me: error: cannot run C compiled programs.
1784 If you meant to cross compile, use \`--host'." >&2;}
1785 { (exit 1); exit 1; }; }
1789 echo "$as_me:1789: result: yes" >&5
1790 echo "${ECHO_T}yes" >&6
1792 rm -f a.out a.exe conftest$ac_cv_exeext
1793 ac_clean_files=$ac_clean_files_save
1794 # Check the compiler produces executables we can run. If not, either
1795 # the compiler is broken, or we cross compile.
1796 echo "$as_me:1796: checking whether we are cross compiling" >&5
1797 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1798 echo "$as_me:1798: result: $cross_compiling" >&5
1799 echo "${ECHO_T}$cross_compiling" >&6
1801 echo "$as_me:1801: checking for executable suffix" >&5
1802 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1803 if { (eval echo "$as_me:1803: \"$ac_link\"") >&5
1804 (eval $ac_link) 2>&5
1806 echo "$as_me:1806: \$? = $ac_status" >&5
1807 (exit $ac_status); }; then
1808 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1809 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1810 # work properly (i.e., refer to `conftest.exe'), while it won't with
1812 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1814 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1815 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1822 { { echo "$as_me:1822: error: cannot compute EXEEXT: cannot compile and link" >&5
1823 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1824 { (exit 1); exit 1; }; }
1827 rm -f conftest$ac_cv_exeext
1828 echo "$as_me:1828: result: $ac_cv_exeext" >&5
1829 echo "${ECHO_T}$ac_cv_exeext" >&6
1831 rm -f conftest.$ac_ext
1832 EXEEXT=$ac_cv_exeext
1834 echo "$as_me:1834: checking for object suffix" >&5
1835 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1836 if test "${ac_cv_objext+set}" = set; then
1837 echo $ECHO_N "(cached) $ECHO_C" >&6
1839 cat >conftest.$ac_ext <<_ACEOF
1840 #line 1840 "configure"
1841 #include "confdefs.h"
1851 rm -f conftest.o conftest.obj
1852 if { (eval echo "$as_me:1852: \"$ac_compile\"") >&5
1853 (eval $ac_compile) 2>&5
1855 echo "$as_me:1855: \$? = $ac_status" >&5
1856 (exit $ac_status); }; then
1857 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1859 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1860 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1865 echo "$as_me: failed program was:" >&5
1866 cat conftest.$ac_ext >&5
1867 { { echo "$as_me:1867: error: cannot compute OBJEXT: cannot compile" >&5
1868 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1869 { (exit 1); exit 1; }; }
1872 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1874 echo "$as_me:1874: result: $ac_cv_objext" >&5
1875 echo "${ECHO_T}$ac_cv_objext" >&6
1876 OBJEXT=$ac_cv_objext
1878 echo "$as_me:1878: checking whether we are using the GNU C compiler" >&5
1879 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1880 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1881 echo $ECHO_N "(cached) $ECHO_C" >&6
1883 cat >conftest.$ac_ext <<_ACEOF
1884 #line 1884 "configure"
1885 #include "confdefs.h"
1898 rm -f conftest.$ac_objext
1899 if { (eval echo "$as_me:1899: \"$ac_compile\"") >&5
1900 (eval $ac_compile) 2>&5
1902 echo "$as_me:1902: \$? = $ac_status" >&5
1903 (exit $ac_status); } &&
1904 { ac_try='test -s conftest.$ac_objext'
1905 { (eval echo "$as_me:1905: \"$ac_try\"") >&5
1908 echo "$as_me:1908: \$? = $ac_status" >&5
1909 (exit $ac_status); }; }; then
1912 echo "$as_me: failed program was:" >&5
1913 cat conftest.$ac_ext >&5
1916 rm -f conftest.$ac_objext conftest.$ac_ext
1917 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1920 echo "$as_me:1920: result: $ac_cv_c_compiler_gnu" >&5
1921 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1922 GCC=`test $ac_compiler_gnu = yes && echo yes`
1923 ac_test_CFLAGS=${CFLAGS+set}
1924 ac_save_CFLAGS=$CFLAGS
1926 echo "$as_me:1926: checking whether $CC accepts -g" >&5
1927 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1928 if test "${ac_cv_prog_cc_g+set}" = set; then
1929 echo $ECHO_N "(cached) $ECHO_C" >&6
1931 cat >conftest.$ac_ext <<_ACEOF
1932 #line 1932 "configure"
1933 #include "confdefs.h"
1943 rm -f conftest.$ac_objext
1944 if { (eval echo "$as_me:1944: \"$ac_compile\"") >&5
1945 (eval $ac_compile) 2>&5
1947 echo "$as_me:1947: \$? = $ac_status" >&5
1948 (exit $ac_status); } &&
1949 { ac_try='test -s conftest.$ac_objext'
1950 { (eval echo "$as_me:1950: \"$ac_try\"") >&5
1953 echo "$as_me:1953: \$? = $ac_status" >&5
1954 (exit $ac_status); }; }; then
1957 echo "$as_me: failed program was:" >&5
1958 cat conftest.$ac_ext >&5
1961 rm -f conftest.$ac_objext conftest.$ac_ext
1963 echo "$as_me:1963: result: $ac_cv_prog_cc_g" >&5
1964 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1965 if test "$ac_test_CFLAGS" = set; then
1966 CFLAGS=$ac_save_CFLAGS
1967 elif test $ac_cv_prog_cc_g = yes; then
1968 if test "$GCC" = yes; then
1974 if test "$GCC" = yes; then
1980 # Some people use a C++ compiler to compile C. Since we use `exit',
1981 # in C++ we need to declare it. In case someone uses the same compiler
1982 # for both compiling C and C++ we need to have the C++ compiler decide
1983 # the declaration of exit, since it's the most demanding environment.
1984 cat >conftest.$ac_ext <<_ACEOF
1989 rm -f conftest.$ac_objext
1990 if { (eval echo "$as_me:1990: \"$ac_compile\"") >&5
1991 (eval $ac_compile) 2>&5
1993 echo "$as_me:1993: \$? = $ac_status" >&5
1994 (exit $ac_status); } &&
1995 { ac_try='test -s conftest.$ac_objext'
1996 { (eval echo "$as_me:1996: \"$ac_try\"") >&5
1999 echo "$as_me:1999: \$? = $ac_status" >&5
2000 (exit $ac_status); }; }; then
2001 for ac_declaration in \
2003 '#include <stdlib.h>' \
2004 'extern "C" void std::exit (int) throw (); using std::exit;' \
2005 'extern "C" void std::exit (int); using std::exit;' \
2006 'extern "C" void exit (int) throw ();' \
2007 'extern "C" void exit (int);' \
2010 cat >conftest.$ac_ext <<_ACEOF
2011 #line 2011 "configure"
2012 #include "confdefs.h"
2023 rm -f conftest.$ac_objext
2024 if { (eval echo "$as_me:2024: \"$ac_compile\"") >&5
2025 (eval $ac_compile) 2>&5
2027 echo "$as_me:2027: \$? = $ac_status" >&5
2028 (exit $ac_status); } &&
2029 { ac_try='test -s conftest.$ac_objext'
2030 { (eval echo "$as_me:2030: \"$ac_try\"") >&5
2033 echo "$as_me:2033: \$? = $ac_status" >&5
2034 (exit $ac_status); }; }; then
2037 echo "$as_me: failed program was:" >&5
2038 cat conftest.$ac_ext >&5
2041 rm -f conftest.$ac_objext conftest.$ac_ext
2042 cat >conftest.$ac_ext <<_ACEOF
2043 #line 2043 "configure"
2044 #include "confdefs.h"
2054 rm -f conftest.$ac_objext
2055 if { (eval echo "$as_me:2055: \"$ac_compile\"") >&5
2056 (eval $ac_compile) 2>&5
2058 echo "$as_me:2058: \$? = $ac_status" >&5
2059 (exit $ac_status); } &&
2060 { ac_try='test -s conftest.$ac_objext'
2061 { (eval echo "$as_me:2061: \"$ac_try\"") >&5
2064 echo "$as_me:2064: \$? = $ac_status" >&5
2065 (exit $ac_status); }; }; then
2068 echo "$as_me: failed program was:" >&5
2069 cat conftest.$ac_ext >&5
2071 rm -f conftest.$ac_objext conftest.$ac_ext
2074 if test -n "$ac_declaration"; then
2075 echo '#ifdef __cplusplus' >>confdefs.h
2076 echo $ac_declaration >>confdefs.h
2077 echo '#endif' >>confdefs.h
2081 echo "$as_me: failed program was:" >&5
2082 cat conftest.$ac_ext >&5
2084 rm -f conftest.$ac_objext conftest.$ac_ext
2086 ac_cpp='$CPP $CPPFLAGS'
2087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2090 ac_main_return=return
2093 if test "$GCC" = yes ; then
2094 echo "$as_me:2094: checking version of $CC" >&5
2095 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2096 GCC_VERSION="`${CC} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2097 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2098 echo "$as_me:2098: result: $GCC_VERSION" >&5
2099 echo "${ECHO_T}$GCC_VERSION" >&6
2103 ac_cpp='$CPP $CPPFLAGS'
2104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2107 ac_main_return=return
2108 echo "$as_me:2108: checking how to run the C preprocessor" >&5
2109 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2110 # On Suns, sometimes $CPP names a directory.
2111 if test -n "$CPP" && test -d "$CPP"; then
2114 if test -z "$CPP"; then
2115 if test "${ac_cv_prog_CPP+set}" = set; then
2116 echo $ECHO_N "(cached) $ECHO_C" >&6
2118 # Double quotes because CPP needs to be expanded
2119 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2122 for ac_c_preproc_warn_flag in '' yes
2124 # Use a header file that comes with gcc, so configuring glibc
2125 # with a fresh cross-compiler works.
2126 # On the NeXT, cc -E runs the code through the compiler's parser,
2127 # not just through cpp. "Syntax error" is here to catch this case.
2128 cat >conftest.$ac_ext <<_ACEOF
2129 #line 2129 "configure"
2130 #include "confdefs.h"
2134 if { (eval echo "$as_me:2134: \"$ac_cpp conftest.$ac_ext\"") >&5
2135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2137 egrep -v '^ *\+' conftest.er1 >conftest.err
2139 cat conftest.err >&5
2140 echo "$as_me:2140: \$? = $ac_status" >&5
2141 (exit $ac_status); } >/dev/null; then
2142 if test -s conftest.err; then
2143 ac_cpp_err=$ac_c_preproc_warn_flag
2150 if test -z "$ac_cpp_err"; then
2153 echo "$as_me: failed program was:" >&5
2154 cat conftest.$ac_ext >&5
2155 # Broken: fails on valid input.
2158 rm -f conftest.err conftest.$ac_ext
2160 # OK, works on sane cases. Now check whether non-existent headers
2161 # can be detected and how.
2162 cat >conftest.$ac_ext <<_ACEOF
2163 #line 2163 "configure"
2164 #include "confdefs.h"
2165 #include <ac_nonexistent.h>
2167 if { (eval echo "$as_me:2167: \"$ac_cpp conftest.$ac_ext\"") >&5
2168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2170 egrep -v '^ *\+' conftest.er1 >conftest.err
2172 cat conftest.err >&5
2173 echo "$as_me:2173: \$? = $ac_status" >&5
2174 (exit $ac_status); } >/dev/null; then
2175 if test -s conftest.err; then
2176 ac_cpp_err=$ac_c_preproc_warn_flag
2183 if test -z "$ac_cpp_err"; then
2184 # Broken: success on invalid input.
2187 echo "$as_me: failed program was:" >&5
2188 cat conftest.$ac_ext >&5
2189 # Passes both tests.
2193 rm -f conftest.err conftest.$ac_ext
2196 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2197 rm -f conftest.err conftest.$ac_ext
2198 if $ac_preproc_ok; then
2210 echo "$as_me:2210: result: $CPP" >&5
2211 echo "${ECHO_T}$CPP" >&6
2213 for ac_c_preproc_warn_flag in '' yes
2215 # Use a header file that comes with gcc, so configuring glibc
2216 # with a fresh cross-compiler works.
2217 # On the NeXT, cc -E runs the code through the compiler's parser,
2218 # not just through cpp. "Syntax error" is here to catch this case.
2219 cat >conftest.$ac_ext <<_ACEOF
2220 #line 2220 "configure"
2221 #include "confdefs.h"
2225 if { (eval echo "$as_me:2225: \"$ac_cpp conftest.$ac_ext\"") >&5
2226 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2228 egrep -v '^ *\+' conftest.er1 >conftest.err
2230 cat conftest.err >&5
2231 echo "$as_me:2231: \$? = $ac_status" >&5
2232 (exit $ac_status); } >/dev/null; then
2233 if test -s conftest.err; then
2234 ac_cpp_err=$ac_c_preproc_warn_flag
2241 if test -z "$ac_cpp_err"; then
2244 echo "$as_me: failed program was:" >&5
2245 cat conftest.$ac_ext >&5
2246 # Broken: fails on valid input.
2249 rm -f conftest.err conftest.$ac_ext
2251 # OK, works on sane cases. Now check whether non-existent headers
2252 # can be detected and how.
2253 cat >conftest.$ac_ext <<_ACEOF
2254 #line 2254 "configure"
2255 #include "confdefs.h"
2256 #include <ac_nonexistent.h>
2258 if { (eval echo "$as_me:2258: \"$ac_cpp conftest.$ac_ext\"") >&5
2259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2261 egrep -v '^ *\+' conftest.er1 >conftest.err
2263 cat conftest.err >&5
2264 echo "$as_me:2264: \$? = $ac_status" >&5
2265 (exit $ac_status); } >/dev/null; then
2266 if test -s conftest.err; then
2267 ac_cpp_err=$ac_c_preproc_warn_flag
2274 if test -z "$ac_cpp_err"; then
2275 # Broken: success on invalid input.
2278 echo "$as_me: failed program was:" >&5
2279 cat conftest.$ac_ext >&5
2280 # Passes both tests.
2284 rm -f conftest.err conftest.$ac_ext
2287 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2288 rm -f conftest.err conftest.$ac_ext
2289 if $ac_preproc_ok; then
2292 { { echo "$as_me:2292: error: C preprocessor \"$CPP\" fails sanity check" >&5
2293 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2294 { (exit 1); exit 1; }; }
2298 ac_cpp='$CPP $CPPFLAGS'
2299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2302 ac_main_return=return
2304 if test $ac_cv_c_compiler_gnu = yes; then
2305 echo "$as_me:2305: checking whether $CC needs -traditional" >&5
2306 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2307 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2308 echo $ECHO_N "(cached) $ECHO_C" >&6
2310 ac_pattern="Autoconf.*'x'"
2311 cat >conftest.$ac_ext <<_ACEOF
2312 #line 2312 "configure"
2313 #include "confdefs.h"
2315 int Autoconf = TIOCGETP;
2317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2318 egrep "$ac_pattern" >/dev/null 2>&1; then
2319 ac_cv_prog_gcc_traditional=yes
2321 ac_cv_prog_gcc_traditional=no
2325 if test $ac_cv_prog_gcc_traditional = no; then
2326 cat >conftest.$ac_ext <<_ACEOF
2327 #line 2327 "configure"
2328 #include "confdefs.h"
2330 int Autoconf = TCGETA;
2332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2333 egrep "$ac_pattern" >/dev/null 2>&1; then
2334 ac_cv_prog_gcc_traditional=yes
2340 echo "$as_me:2340: result: $ac_cv_prog_gcc_traditional" >&5
2341 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2342 if test $ac_cv_prog_gcc_traditional = yes; then
2343 CC="$CC -traditional"
2347 echo "$as_me:2347: checking whether $CC understands -c and -o together" >&5
2348 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2349 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2353 cat > conftest.$ac_ext <<CF_EOF
2357 ${cf_cv_main_return:-return}(0);
2360 # We do the test twice because some compilers refuse to overwrite an
2361 # existing .o file with -o, though they will create one.
2362 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2363 if { (eval echo "$as_me:2363: \"$ac_try\"") >&5
2366 echo "$as_me:2366: \$? = $ac_status" >&5
2367 (exit $ac_status); } &&
2368 test -f conftest2.$ac_objext && { (eval echo "$as_me:2368: \"$ac_try\"") >&5
2371 echo "$as_me:2371: \$? = $ac_status" >&5
2372 (exit $ac_status); };
2374 eval cf_cv_prog_CC_c_o=yes
2376 eval cf_cv_prog_CC_c_o=no
2381 if test $cf_cv_prog_CC_c_o = yes; then
2382 echo "$as_me:2382: result: yes" >&5
2383 echo "${ECHO_T}yes" >&6
2385 echo "$as_me:2385: result: no" >&5
2386 echo "${ECHO_T}no" >&6
2389 echo "$as_me:2389: checking for POSIXized ISC" >&5
2390 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2391 if test -d /etc/conf/kconfig.d &&
2392 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2394 echo "$as_me:2394: result: yes" >&5
2395 echo "${ECHO_T}yes" >&6
2396 ISC=yes # If later tests want to check for ISC.
2398 cat >>confdefs.h <<\EOF
2399 #define _POSIX_SOURCE 1
2402 if test "$GCC" = yes; then
2408 echo "$as_me:2408: result: no" >&5
2409 echo "${ECHO_T}no" >&6
2413 echo "$as_me:2413: checking for ${CC-cc} option to accept ANSI C" >&5
2414 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2415 if test "${cf_cv_ansi_cc+set}" = set; then
2416 echo $ECHO_N "(cached) $ECHO_C" >&6
2420 cf_save_CFLAGS="$CFLAGS"
2421 cf_save_CPPFLAGS="$CPPFLAGS"
2422 # Don't try gcc -ansi; that turns off useful extensions and
2423 # breaks some systems' header files.
2424 # AIX -qlanglvl=ansi
2425 # Ultrix and OSF/1 -std1
2426 # HP-UX -Aa -D_HPUX_SOURCE
2428 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2429 for cf_arg in "-DCC_HAS_PROTOS" \
2434 "-Aa -D_HPUX_SOURCE" \
2441 cf_new_extra_cppflags=
2443 for cf_add_cflags in $cf_arg
2445 case $cf_fix_cppflags in
2447 case $cf_add_cflags in #(vi
2448 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2449 case $cf_add_cflags in
2451 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2453 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2454 && test -z "${cf_tst_cflags}" \
2455 && cf_fix_cppflags=yes
2457 if test $cf_fix_cppflags = yes ; then
2458 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2460 elif test "${cf_tst_cflags}" = "\"'" ; then
2461 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2467 *$cf_add_cflags) #(vi
2470 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2475 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2480 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2482 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2484 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2485 && test -z "${cf_tst_cflags}" \
2486 && cf_fix_cppflags=no
2491 if test -n "$cf_new_cflags" ; then
2493 CFLAGS="$CFLAGS $cf_new_cflags"
2496 if test -n "$cf_new_cppflags" ; then
2498 CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
2501 if test -n "$cf_new_extra_cppflags" ; then
2503 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2506 cat >conftest.$ac_ext <<_ACEOF
2507 #line 2507 "configure"
2508 #include "confdefs.h"
2510 #ifndef CC_HAS_PROTOS
2511 #if !defined(__STDC__) || (__STDC__ != 1)
2520 int test (int i, double x);
2521 struct s1 {int (*f) (int a);};
2522 struct s2 {int (*f) (double a);};
2527 rm -f conftest.$ac_objext
2528 if { (eval echo "$as_me:2528: \"$ac_compile\"") >&5
2529 (eval $ac_compile) 2>&5
2531 echo "$as_me:2531: \$? = $ac_status" >&5
2532 (exit $ac_status); } &&
2533 { ac_try='test -s conftest.$ac_objext'
2534 { (eval echo "$as_me:2534: \"$ac_try\"") >&5
2537 echo "$as_me:2537: \$? = $ac_status" >&5
2538 (exit $ac_status); }; }; then
2539 cf_cv_ansi_cc="$cf_arg"; break
2541 echo "$as_me: failed program was:" >&5
2542 cat conftest.$ac_ext >&5
2544 rm -f conftest.$ac_objext conftest.$ac_ext
2546 CFLAGS="$cf_save_CFLAGS"
2547 CPPFLAGS="$cf_save_CPPFLAGS"
2550 echo "$as_me:2550: result: $cf_cv_ansi_cc" >&5
2551 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2553 if test "$cf_cv_ansi_cc" != "no"; then
2554 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2559 cf_new_extra_cppflags=
2561 for cf_add_cflags in $cf_cv_ansi_cc
2563 case $cf_fix_cppflags in
2565 case $cf_add_cflags in #(vi
2566 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2567 case $cf_add_cflags in
2569 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2571 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2572 && test -z "${cf_tst_cflags}" \
2573 && cf_fix_cppflags=yes
2575 if test $cf_fix_cppflags = yes ; then
2576 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2578 elif test "${cf_tst_cflags}" = "\"'" ; then
2579 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2585 *$cf_add_cflags) #(vi
2588 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2593 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2598 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2600 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2602 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2603 && test -z "${cf_tst_cflags}" \
2604 && cf_fix_cppflags=no
2609 if test -n "$cf_new_cflags" ; then
2611 CFLAGS="$CFLAGS $cf_new_cflags"
2614 if test -n "$cf_new_cppflags" ; then
2616 CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
2619 if test -n "$cf_new_extra_cppflags" ; then
2621 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2625 cat >>confdefs.h <<\EOF
2626 #define CC_HAS_PROTOS 1
2632 if test "$cf_cv_ansi_cc" = "no"; then
2633 { { echo "$as_me:2633: error: Your compiler does not appear to recognize prototypes.
2634 You have the following choices:
2635 a. adjust your compiler options
2636 b. get an up-to-date compiler
2637 c. use a wrapper such as unproto" >&5
2638 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2639 You have the following choices:
2640 a. adjust your compiler options
2641 b. get an up-to-date compiler
2642 c. use a wrapper such as unproto" >&2;}
2643 { (exit 1); exit 1; }; }
2646 case $cf_cv_system_name in
2648 CFLAGS="$CFLAGS -Zmt"
2649 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2650 CXXFLAGS="$CXXFLAGS -Zmt"
2651 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2652 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2659 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2660 #define PROG_EXT "$PROG_EXT"
2663 if test "$cross_compiling" = yes ; then
2666 case "$cf_cv_system_name" in #(vi
2667 dragonfly*|freebsd*) #(vi
2668 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2670 *) LDPATH=$PATH:/sbin:/usr/sbin
2671 # Extract the first word of "ldconfig", so it can be a program name with args.
2672 set dummy ldconfig; ac_word=$2
2673 echo "$as_me:2673: checking for $ac_word" >&5
2674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2675 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2680 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2683 ac_save_IFS=$IFS; IFS=$ac_path_separator
2685 for ac_dir in $ac_dummy; do
2687 test -z "$ac_dir" && ac_dir=.
2688 if $as_executable_p "$ac_dir/$ac_word"; then
2689 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2690 echo "$as_me:2690: found $ac_dir/$ac_word" >&5
2698 LDCONFIG=$ac_cv_path_LDCONFIG
2700 if test -n "$LDCONFIG"; then
2701 echo "$as_me:2701: result: $LDCONFIG" >&5
2702 echo "${ECHO_T}$LDCONFIG" >&6
2704 echo "$as_me:2704: result: no" >&5
2705 echo "${ECHO_T}no" >&6
2712 echo "$as_me:2712: checking if you want to ensure bool is consistent with C++" >&5
2713 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2715 # Check whether --with-cxx or --without-cxx was given.
2716 if test "${with_cxx+set}" = set; then
2718 cf_with_cxx=$withval
2722 echo "$as_me:2722: result: $cf_with_cxx" >&5
2723 echo "${ECHO_T}$cf_with_cxx" >&6
2724 if test "X$cf_with_cxx" = Xno ; then
2728 # with autoconf 2.13, we can change the error to a warning:
2730 ac_cpp='$CXXCPP $CPPFLAGS'
2731 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2732 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2733 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2734 ac_main_return=return
2735 if test -n "$ac_tool_prefix"; then
2736 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2738 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2739 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2740 echo "$as_me:2740: checking for $ac_word" >&5
2741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2742 if test "${ac_cv_prog_CXX+set}" = set; then
2743 echo $ECHO_N "(cached) $ECHO_C" >&6
2745 if test -n "$CXX"; then
2746 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2748 ac_save_IFS=$IFS; IFS=$ac_path_separator
2750 for ac_dir in $ac_dummy; do
2752 test -z "$ac_dir" && ac_dir=.
2753 $as_executable_p "$ac_dir/$ac_word" || continue
2754 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2755 echo "$as_me:2755: found $ac_dir/$ac_word" >&5
2762 if test -n "$CXX"; then
2763 echo "$as_me:2763: result: $CXX" >&5
2764 echo "${ECHO_T}$CXX" >&6
2766 echo "$as_me:2766: result: no" >&5
2767 echo "${ECHO_T}no" >&6
2770 test -n "$CXX" && break
2773 if test -z "$CXX"; then
2775 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2777 # Extract the first word of "$ac_prog", so it can be a program name with args.
2778 set dummy $ac_prog; ac_word=$2
2779 echo "$as_me:2779: checking for $ac_word" >&5
2780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2781 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2784 if test -n "$ac_ct_CXX"; then
2785 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2787 ac_save_IFS=$IFS; IFS=$ac_path_separator
2789 for ac_dir in $ac_dummy; do
2791 test -z "$ac_dir" && ac_dir=.
2792 $as_executable_p "$ac_dir/$ac_word" || continue
2793 ac_cv_prog_ac_ct_CXX="$ac_prog"
2794 echo "$as_me:2794: found $ac_dir/$ac_word" >&5
2800 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2801 if test -n "$ac_ct_CXX"; then
2802 echo "$as_me:2802: result: $ac_ct_CXX" >&5
2803 echo "${ECHO_T}$ac_ct_CXX" >&6
2805 echo "$as_me:2805: result: no" >&5
2806 echo "${ECHO_T}no" >&6
2809 test -n "$ac_ct_CXX" && break
2811 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2816 # Provide some information about the compiler.
2817 echo "$as_me:2817:" \
2818 "checking for C++ compiler version" >&5
2819 ac_compiler=`set X $ac_compile; echo $2`
2820 { (eval echo "$as_me:2820: \"$ac_compiler --version </dev/null >&5\"") >&5
2821 (eval $ac_compiler --version </dev/null >&5) 2>&5
2823 echo "$as_me:2823: \$? = $ac_status" >&5
2824 (exit $ac_status); }
2825 { (eval echo "$as_me:2825: \"$ac_compiler -v </dev/null >&5\"") >&5
2826 (eval $ac_compiler -v </dev/null >&5) 2>&5
2828 echo "$as_me:2828: \$? = $ac_status" >&5
2829 (exit $ac_status); }
2830 { (eval echo "$as_me:2830: \"$ac_compiler -V </dev/null >&5\"") >&5
2831 (eval $ac_compiler -V </dev/null >&5) 2>&5
2833 echo "$as_me:2833: \$? = $ac_status" >&5
2834 (exit $ac_status); }
2836 echo "$as_me:2836: checking whether we are using the GNU C++ compiler" >&5
2837 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2838 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2839 echo $ECHO_N "(cached) $ECHO_C" >&6
2841 cat >conftest.$ac_ext <<_ACEOF
2842 #line 2842 "configure"
2843 #include "confdefs.h"
2856 rm -f conftest.$ac_objext
2857 if { (eval echo "$as_me:2857: \"$ac_compile\"") >&5
2858 (eval $ac_compile) 2>&5
2860 echo "$as_me:2860: \$? = $ac_status" >&5
2861 (exit $ac_status); } &&
2862 { ac_try='test -s conftest.$ac_objext'
2863 { (eval echo "$as_me:2863: \"$ac_try\"") >&5
2866 echo "$as_me:2866: \$? = $ac_status" >&5
2867 (exit $ac_status); }; }; then
2870 echo "$as_me: failed program was:" >&5
2871 cat conftest.$ac_ext >&5
2874 rm -f conftest.$ac_objext conftest.$ac_ext
2875 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2878 echo "$as_me:2878: result: $ac_cv_cxx_compiler_gnu" >&5
2879 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2880 GXX=`test $ac_compiler_gnu = yes && echo yes`
2881 ac_test_CXXFLAGS=${CXXFLAGS+set}
2882 ac_save_CXXFLAGS=$CXXFLAGS
2884 echo "$as_me:2884: checking whether $CXX accepts -g" >&5
2885 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2886 if test "${ac_cv_prog_cxx_g+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2889 cat >conftest.$ac_ext <<_ACEOF
2890 #line 2890 "configure"
2891 #include "confdefs.h"
2901 rm -f conftest.$ac_objext
2902 if { (eval echo "$as_me:2902: \"$ac_compile\"") >&5
2903 (eval $ac_compile) 2>&5
2905 echo "$as_me:2905: \$? = $ac_status" >&5
2906 (exit $ac_status); } &&
2907 { ac_try='test -s conftest.$ac_objext'
2908 { (eval echo "$as_me:2908: \"$ac_try\"") >&5
2911 echo "$as_me:2911: \$? = $ac_status" >&5
2912 (exit $ac_status); }; }; then
2913 ac_cv_prog_cxx_g=yes
2915 echo "$as_me: failed program was:" >&5
2916 cat conftest.$ac_ext >&5
2919 rm -f conftest.$ac_objext conftest.$ac_ext
2921 echo "$as_me:2921: result: $ac_cv_prog_cxx_g" >&5
2922 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2923 if test "$ac_test_CXXFLAGS" = set; then
2924 CXXFLAGS=$ac_save_CXXFLAGS
2925 elif test $ac_cv_prog_cxx_g = yes; then
2926 if test "$GXX" = yes; then
2932 if test "$GXX" = yes; then
2938 for ac_declaration in \
2940 '#include <stdlib.h>' \
2941 'extern "C" void std::exit (int) throw (); using std::exit;' \
2942 'extern "C" void std::exit (int); using std::exit;' \
2943 'extern "C" void exit (int) throw ();' \
2944 'extern "C" void exit (int);' \
2947 cat >conftest.$ac_ext <<_ACEOF
2948 #line 2948 "configure"
2949 #include "confdefs.h"
2960 rm -f conftest.$ac_objext
2961 if { (eval echo "$as_me:2961: \"$ac_compile\"") >&5
2962 (eval $ac_compile) 2>&5
2964 echo "$as_me:2964: \$? = $ac_status" >&5
2965 (exit $ac_status); } &&
2966 { ac_try='test -s conftest.$ac_objext'
2967 { (eval echo "$as_me:2967: \"$ac_try\"") >&5
2970 echo "$as_me:2970: \$? = $ac_status" >&5
2971 (exit $ac_status); }; }; then
2974 echo "$as_me: failed program was:" >&5
2975 cat conftest.$ac_ext >&5
2978 rm -f conftest.$ac_objext conftest.$ac_ext
2979 cat >conftest.$ac_ext <<_ACEOF
2980 #line 2980 "configure"
2981 #include "confdefs.h"
2991 rm -f conftest.$ac_objext
2992 if { (eval echo "$as_me:2992: \"$ac_compile\"") >&5
2993 (eval $ac_compile) 2>&5
2995 echo "$as_me:2995: \$? = $ac_status" >&5
2996 (exit $ac_status); } &&
2997 { ac_try='test -s conftest.$ac_objext'
2998 { (eval echo "$as_me:2998: \"$ac_try\"") >&5
3001 echo "$as_me:3001: \$? = $ac_status" >&5
3002 (exit $ac_status); }; }; then
3005 echo "$as_me: failed program was:" >&5
3006 cat conftest.$ac_ext >&5
3008 rm -f conftest.$ac_objext conftest.$ac_ext
3011 if test -n "$ac_declaration"; then
3012 echo '#ifdef __cplusplus' >>confdefs.h
3013 echo $ac_declaration >>confdefs.h
3014 echo '#endif' >>confdefs.h
3018 ac_cpp='$CPP $CPPFLAGS'
3019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3022 ac_main_return=return
3024 # autoconf 2.5x removed the error - by hardcoding it to g++.
3025 if test "$CXX" = "g++" ; then
3026 # Extract the first word of "g++", so it can be a program name with args.
3027 set dummy g++; ac_word=$2
3028 echo "$as_me:3028: checking for $ac_word" >&5
3029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3030 if test "${ac_cv_path_CXX+set}" = set; then
3031 echo $ECHO_N "(cached) $ECHO_C" >&6
3035 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3038 ac_save_IFS=$IFS; IFS=$ac_path_separator
3040 for ac_dir in $ac_dummy; do
3042 test -z "$ac_dir" && ac_dir=.
3043 if $as_executable_p "$ac_dir/$ac_word"; then
3044 ac_cv_path_CXX="$ac_dir/$ac_word"
3045 echo "$as_me:3045: found $ac_dir/$ac_word" >&5
3055 if test -n "$CXX"; then
3056 echo "$as_me:3056: result: $CXX" >&5
3057 echo "${ECHO_T}$CXX" >&6
3059 echo "$as_me:3059: result: no" >&5
3060 echo "${ECHO_T}no" >&6
3064 if test "$CXX" = "g++" ; then
3065 { echo "$as_me:3065: WARNING: ignoring hardcoded g++" >&5
3066 echo "$as_me: WARNING: ignoring hardcoded g++" >&2;}
3067 cf_with_cxx=no; CXX=""; GXX="";
3072 if test "$GXX" = yes; then
3073 echo "$as_me:3073: checking version of g++" >&5
3074 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
3075 GXX_VERSION="`${CXX-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3076 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3077 echo "$as_me:3077: result: $GXX_VERSION" >&5
3078 echo "${ECHO_T}$GXX_VERSION" >&6
3081 case $GXX_VERSION in
3083 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3085 { echo "$as_me:3085: WARNING: templates do not work" >&5
3086 echo "$as_me: WARNING: templates do not work" >&2;}
3090 echo "$as_me:3090: checking if you want to build C++ binding and demo" >&5
3091 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3093 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3094 if test "${with_cxx_binding+set}" = set; then
3095 withval="$with_cxx_binding"
3096 cf_with_cxx_binding=$withval
3098 cf_with_cxx_binding=$cf_with_cxx
3100 echo "$as_me:3100: result: $cf_with_cxx_binding" >&5
3101 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3103 echo "$as_me:3103: checking if you want to build with Ada95" >&5
3104 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3106 # Check whether --with-ada or --without-ada was given.
3107 if test "${with_ada+set}" = set; then
3109 cf_with_ada=$withval
3113 echo "$as_me:3113: result: $cf_with_ada" >&5
3114 echo "${ECHO_T}$cf_with_ada" >&6
3116 echo "$as_me:3116: checking if you want to install manpages" >&5
3117 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3119 # Check whether --with-manpages or --without-manpages was given.
3120 if test "${with_manpages+set}" = set; then
3121 withval="$with_manpages"
3122 cf_with_manpages=$withval
3124 cf_with_manpages=yes
3126 echo "$as_me:3126: result: $cf_with_manpages" >&5
3127 echo "${ECHO_T}$cf_with_manpages" >&6
3129 echo "$as_me:3129: checking if you want to build programs such as tic" >&5
3130 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3132 # Check whether --with-progs or --without-progs was given.
3133 if test "${with_progs+set}" = set; then
3134 withval="$with_progs"
3135 cf_with_progs=$withval
3139 echo "$as_me:3139: result: $cf_with_progs" >&5
3140 echo "${ECHO_T}$cf_with_progs" >&6
3142 echo "$as_me:3142: checking if you wish to install curses.h" >&5
3143 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3145 # Check whether --with-curses-h or --without-curses-h was given.
3146 if test "${with_curses_h+set}" = set; then
3147 withval="$with_curses_h"
3148 with_curses_h=$withval
3152 echo "$as_me:3152: result: $with_curses_h" >&5
3153 echo "${ECHO_T}$with_curses_h" >&6
3155 modules_to_build="ncurses"
3156 if test "X$cf_with_progs" != Xno ; then
3157 modules_to_build="$modules_to_build progs tack"
3159 modules_to_build="$modules_to_build panel menu form"
3161 test "$program_prefix" != NONE &&
3162 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3163 # Use a double $ so make ignores it.
3164 test "$program_suffix" != NONE &&
3165 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3166 # Double any \ or $. echo might interpret backslashes.
3167 # By default was `s,x,x', remove it if useless.
3168 cat <<\_ACEOF >conftest.sed
3169 s/[\\$]/&&/g;s/;s,x,x,$//
3171 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3174 for ac_prog in mawk gawk nawk awk
3176 # Extract the first word of "$ac_prog", so it can be a program name with args.
3177 set dummy $ac_prog; ac_word=$2
3178 echo "$as_me:3178: checking for $ac_word" >&5
3179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3180 if test "${ac_cv_prog_AWK+set}" = set; then
3181 echo $ECHO_N "(cached) $ECHO_C" >&6
3183 if test -n "$AWK"; then
3184 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3186 ac_save_IFS=$IFS; IFS=$ac_path_separator
3188 for ac_dir in $ac_dummy; do
3190 test -z "$ac_dir" && ac_dir=.
3191 $as_executable_p "$ac_dir/$ac_word" || continue
3192 ac_cv_prog_AWK="$ac_prog"
3193 echo "$as_me:3193: found $ac_dir/$ac_word" >&5
3200 if test -n "$AWK"; then
3201 echo "$as_me:3201: result: $AWK" >&5
3202 echo "${ECHO_T}$AWK" >&6
3204 echo "$as_me:3204: result: no" >&5
3205 echo "${ECHO_T}no" >&6
3208 test -n "$AWK" && break
3211 test -z "$AWK" && { { echo "$as_me:3211: error: No awk program found" >&5
3212 echo "$as_me: error: No awk program found" >&2;}
3213 { (exit 1); exit 1; }; }
3215 echo "$as_me:3215: checking for egrep" >&5
3216 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3217 if test "${ac_cv_prog_egrep+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3220 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3221 then ac_cv_prog_egrep='grep -E'
3222 else ac_cv_prog_egrep='egrep'
3225 echo "$as_me:3225: result: $ac_cv_prog_egrep" >&5
3226 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3227 EGREP=$ac_cv_prog_egrep
3229 test -z "$EGREP" && { { echo "$as_me:3229: error: No egrep program found" >&5
3230 echo "$as_me: error: No egrep program found" >&2;}
3231 { (exit 1); exit 1; }; }
3233 # Find a good install program. We prefer a C program (faster),
3234 # so one script is as good as another. But avoid the broken or
3235 # incompatible versions:
3236 # SysV /etc/install, /usr/sbin/install
3237 # SunOS /usr/etc/install
3238 # IRIX /sbin/install
3240 # AmigaOS /C/install, which installs bootblocks on floppy discs
3241 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3242 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3243 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3244 # ./install, which can be erroneously created by make from ./install.sh.
3245 echo "$as_me:3245: checking for a BSD compatible install" >&5
3246 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3247 if test -z "$INSTALL"; then
3248 if test "${ac_cv_path_install+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3251 ac_save_IFS=$IFS; IFS=$ac_path_separator
3252 for ac_dir in $PATH; do
3254 # Account for people who put trailing slashes in PATH elements.
3256 / | ./ | .// | /cC/* \
3257 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3260 # OSF1 and SCO ODT 3.0 have their own names for install.
3261 # Don't use installbsd from OSF since it installs stuff as root
3263 for ac_prog in ginstall scoinst install; do
3264 if $as_executable_p "$ac_dir/$ac_prog"; then
3265 if test $ac_prog = install &&
3266 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3267 # AIX install. It has an incompatible calling convention.
3269 elif test $ac_prog = install &&
3270 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3271 # program-specific install script used by HP pwplus--don't use.
3274 ac_cv_path_install="$ac_dir/$ac_prog -c"
3284 if test "${ac_cv_path_install+set}" = set; then
3285 INSTALL=$ac_cv_path_install
3287 # As a last resort, use the slow shell script. We don't cache a
3288 # path for INSTALL within a source directory, because that will
3289 # break other packages using the cache if that directory is
3290 # removed, or if the path is relative.
3291 INSTALL=$ac_install_sh
3294 echo "$as_me:3294: result: $INSTALL" >&5
3295 echo "${ECHO_T}$INSTALL" >&6
3297 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3298 # It thinks the first close brace ends the variable substitution.
3299 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3301 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3303 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3309 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3310 test -z "$cf_dir" && cf_dir=.
3311 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3315 for ac_prog in tdlint lint alint
3317 # Extract the first word of "$ac_prog", so it can be a program name with args.
3318 set dummy $ac_prog; ac_word=$2
3319 echo "$as_me:3319: checking for $ac_word" >&5
3320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3321 if test "${ac_cv_prog_LINT+set}" = set; then
3322 echo $ECHO_N "(cached) $ECHO_C" >&6
3324 if test -n "$LINT"; then
3325 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3327 ac_save_IFS=$IFS; IFS=$ac_path_separator
3329 for ac_dir in $ac_dummy; do
3331 test -z "$ac_dir" && ac_dir=.
3332 $as_executable_p "$ac_dir/$ac_word" || continue
3333 ac_cv_prog_LINT="$ac_prog"
3334 echo "$as_me:3334: found $ac_dir/$ac_word" >&5
3340 LINT=$ac_cv_prog_LINT
3341 if test -n "$LINT"; then
3342 echo "$as_me:3342: result: $LINT" >&5
3343 echo "${ECHO_T}$LINT" >&6
3345 echo "$as_me:3345: result: no" >&5
3346 echo "${ECHO_T}no" >&6
3349 test -n "$LINT" && break
3352 echo "$as_me:3352: checking whether ln -s works" >&5
3353 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3355 if test "$LN_S" = "ln -s"; then
3356 echo "$as_me:3356: result: yes" >&5
3357 echo "${ECHO_T}yes" >&6
3359 echo "$as_me:3359: result: no, using $LN_S" >&5
3360 echo "${ECHO_T}no, using $LN_S" >&6
3363 echo "$as_me:3363: checking for long file names" >&5
3364 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3365 if test "${ac_cv_sys_long_file_names+set}" = set; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3368 ac_cv_sys_long_file_names=yes
3369 # Test for long file names in all the places we know might matter:
3370 # . the current directory, where building will happen
3371 # $prefix/lib where we will be installing things
3372 # $exec_prefix/lib likewise
3373 # eval it to expand exec_prefix.
3374 # $TMPDIR if set, where it might want to write temporary files
3375 # if $TMPDIR is not set:
3376 # /tmp where it might want to write temporary files
3379 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3382 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3384 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3385 test -d $ac_dir || continue
3386 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3387 ac_xdir=$ac_dir/cf$$
3388 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3389 ac_tf1=$ac_xdir/conftest9012345
3390 ac_tf2=$ac_xdir/conftest9012346
3391 (echo 1 >$ac_tf1) 2>/dev/null
3392 (echo 2 >$ac_tf2) 2>/dev/null
3393 ac_val=`cat $ac_tf1 2>/dev/null`
3394 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3395 ac_cv_sys_long_file_names=no
3396 rm -rf $ac_xdir 2>/dev/null
3399 rm -rf $ac_xdir 2>/dev/null
3402 echo "$as_me:3402: result: $ac_cv_sys_long_file_names" >&5
3403 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3404 if test $ac_cv_sys_long_file_names = yes; then
3406 cat >>confdefs.h <<\EOF
3407 #define HAVE_LONG_FILE_NAMES 1
3412 echo "$as_me:3412: checking if we should assume mixed-case filenames" >&5
3413 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3415 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3416 if test "${enable_mixed_case+set}" = set; then
3417 enableval="$enable_mixed_case"
3418 enable_mixedcase=$enableval
3420 enable_mixedcase=auto
3422 echo "$as_me:3422: result: $enable_mixedcase" >&5
3423 echo "${ECHO_T}$enable_mixedcase" >&6
3424 if test "$enable_mixedcase" = "auto" ; then
3426 echo "$as_me:3426: checking if filesystem supports mixed-case filenames" >&5
3427 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3428 if test "${cf_cv_mixedcase+set}" = set; then
3429 echo $ECHO_N "(cached) $ECHO_C" >&6
3432 if test "$cross_compiling" = yes ; then
3433 case $target_alias in #(vi
3434 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3442 rm -f conftest CONFTEST
3444 if test -f CONFTEST ; then
3449 rm -f conftest CONFTEST
3453 echo "$as_me:3453: result: $cf_cv_mixedcase" >&5
3454 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3455 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3456 #define MIXEDCASE_FILENAMES 1
3460 cf_cv_mixedcase=$enable_mixedcase
3461 if test "$enable_mixedcase" = "yes" ; then
3462 cat >>confdefs.h <<\EOF
3463 #define MIXEDCASE_FILENAMES 1
3469 # do this after mixed-case option (tags/TAGS is not as important as tic).
3470 echo "$as_me:3470: checking whether ${MAKE-make} sets \${MAKE}" >&5
3471 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3472 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3473 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3476 cat >conftest.make <<\EOF
3478 @echo 'ac_maketemp="${MAKE}"'
3480 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3481 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3482 if test -n "$ac_maketemp"; then
3483 eval ac_cv_prog_make_${ac_make}_set=yes
3485 eval ac_cv_prog_make_${ac_make}_set=no
3489 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3490 echo "$as_me:3490: result: yes" >&5
3491 echo "${ECHO_T}yes" >&6
3494 echo "$as_me:3494: result: no" >&5
3495 echo "${ECHO_T}no" >&6
3496 SET_MAKE="MAKE=${MAKE-make}"
3499 # Extract the first word of "ctags", so it can be a program name with args.
3500 set dummy ctags; ac_word=$2
3501 echo "$as_me:3501: checking for $ac_word" >&5
3502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3503 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3504 echo $ECHO_N "(cached) $ECHO_C" >&6
3506 if test -n "$MAKE_LOWER_TAGS"; then
3507 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3509 ac_save_IFS=$IFS; IFS=$ac_path_separator
3511 for ac_dir in $ac_dummy; do
3513 test -z "$ac_dir" && ac_dir=.
3514 $as_executable_p "$ac_dir/$ac_word" || continue
3515 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3516 echo "$as_me:3516: found $ac_dir/$ac_word" >&5
3520 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3523 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3524 if test -n "$MAKE_LOWER_TAGS"; then
3525 echo "$as_me:3525: result: $MAKE_LOWER_TAGS" >&5
3526 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3528 echo "$as_me:3528: result: no" >&5
3529 echo "${ECHO_T}no" >&6
3532 if test "$cf_cv_mixedcase" = yes ; then
3533 # Extract the first word of "etags", so it can be a program name with args.
3534 set dummy etags; ac_word=$2
3535 echo "$as_me:3535: checking for $ac_word" >&5
3536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3537 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3540 if test -n "$MAKE_UPPER_TAGS"; then
3541 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3543 ac_save_IFS=$IFS; IFS=$ac_path_separator
3545 for ac_dir in $ac_dummy; do
3547 test -z "$ac_dir" && ac_dir=.
3548 $as_executable_p "$ac_dir/$ac_word" || continue
3549 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3550 echo "$as_me:3550: found $ac_dir/$ac_word" >&5
3554 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3557 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3558 if test -n "$MAKE_UPPER_TAGS"; then
3559 echo "$as_me:3559: result: $MAKE_UPPER_TAGS" >&5
3560 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3562 echo "$as_me:3562: result: no" >&5
3563 echo "${ECHO_T}no" >&6
3570 if test "$MAKE_UPPER_TAGS" = yes ; then
3576 if test "$MAKE_LOWER_TAGS" = yes ; then
3582 echo "$as_me:3582: checking for makeflags variable" >&5
3583 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3584 if test "${cf_cv_makeflags+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3589 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3591 cat >cf_makeflags.tmp <<CF_EOF
3594 @ echo '.$cf_option'
3596 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null | sed -e 's,[ ]*$,,'`
3597 case "$cf_result" in
3599 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3600 case "$cf_result" in
3601 .*CC=*) cf_cv_makeflags=
3603 *) cf_cv_makeflags=$cf_option
3609 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3613 rm -f cf_makeflags.tmp
3616 echo "$as_me:3616: result: $cf_cv_makeflags" >&5
3617 echo "${ECHO_T}$cf_cv_makeflags" >&6
3619 if test -n "$ac_tool_prefix"; then
3620 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3621 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3622 echo "$as_me:3622: checking for $ac_word" >&5
3623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3624 if test "${ac_cv_prog_RANLIB+set}" = set; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
3627 if test -n "$RANLIB"; then
3628 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3630 ac_save_IFS=$IFS; IFS=$ac_path_separator
3632 for ac_dir in $ac_dummy; do
3634 test -z "$ac_dir" && ac_dir=.
3635 $as_executable_p "$ac_dir/$ac_word" || continue
3636 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3637 echo "$as_me:3637: found $ac_dir/$ac_word" >&5
3643 RANLIB=$ac_cv_prog_RANLIB
3644 if test -n "$RANLIB"; then
3645 echo "$as_me:3645: result: $RANLIB" >&5
3646 echo "${ECHO_T}$RANLIB" >&6
3648 echo "$as_me:3648: result: no" >&5
3649 echo "${ECHO_T}no" >&6
3653 if test -z "$ac_cv_prog_RANLIB"; then
3654 ac_ct_RANLIB=$RANLIB
3655 # Extract the first word of "ranlib", so it can be a program name with args.
3656 set dummy ranlib; ac_word=$2
3657 echo "$as_me:3657: checking for $ac_word" >&5
3658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3659 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3660 echo $ECHO_N "(cached) $ECHO_C" >&6
3662 if test -n "$ac_ct_RANLIB"; then
3663 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3665 ac_save_IFS=$IFS; IFS=$ac_path_separator
3667 for ac_dir in $ac_dummy; do
3669 test -z "$ac_dir" && ac_dir=.
3670 $as_executable_p "$ac_dir/$ac_word" || continue
3671 ac_cv_prog_ac_ct_RANLIB="ranlib"
3672 echo "$as_me:3672: found $ac_dir/$ac_word" >&5
3676 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3679 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3680 if test -n "$ac_ct_RANLIB"; then
3681 echo "$as_me:3681: result: $ac_ct_RANLIB" >&5
3682 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3684 echo "$as_me:3684: result: no" >&5
3685 echo "${ECHO_T}no" >&6
3688 RANLIB=$ac_ct_RANLIB
3690 RANLIB="$ac_cv_prog_RANLIB"
3693 if test -n "$ac_tool_prefix"; then
3694 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3695 set dummy ${ac_tool_prefix}ld; ac_word=$2
3696 echo "$as_me:3696: checking for $ac_word" >&5
3697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3698 if test "${ac_cv_prog_LD+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3701 if test -n "$LD"; then
3702 ac_cv_prog_LD="$LD" # Let the user override the test.
3704 ac_save_IFS=$IFS; IFS=$ac_path_separator
3706 for ac_dir in $ac_dummy; do
3708 test -z "$ac_dir" && ac_dir=.
3709 $as_executable_p "$ac_dir/$ac_word" || continue
3710 ac_cv_prog_LD="${ac_tool_prefix}ld"
3711 echo "$as_me:3711: found $ac_dir/$ac_word" >&5
3718 if test -n "$LD"; then
3719 echo "$as_me:3719: result: $LD" >&5
3720 echo "${ECHO_T}$LD" >&6
3722 echo "$as_me:3722: result: no" >&5
3723 echo "${ECHO_T}no" >&6
3727 if test -z "$ac_cv_prog_LD"; then
3729 # Extract the first word of "ld", so it can be a program name with args.
3730 set dummy ld; ac_word=$2
3731 echo "$as_me:3731: checking for $ac_word" >&5
3732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3733 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3736 if test -n "$ac_ct_LD"; then
3737 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3739 ac_save_IFS=$IFS; IFS=$ac_path_separator
3741 for ac_dir in $ac_dummy; do
3743 test -z "$ac_dir" && ac_dir=.
3744 $as_executable_p "$ac_dir/$ac_word" || continue
3745 ac_cv_prog_ac_ct_LD="ld"
3746 echo "$as_me:3746: found $ac_dir/$ac_word" >&5
3750 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3753 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3754 if test -n "$ac_ct_LD"; then
3755 echo "$as_me:3755: result: $ac_ct_LD" >&5
3756 echo "${ECHO_T}$ac_ct_LD" >&6
3758 echo "$as_me:3758: result: no" >&5
3759 echo "${ECHO_T}no" >&6
3767 if test -n "$ac_tool_prefix"; then
3768 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3769 set dummy ${ac_tool_prefix}ar; ac_word=$2
3770 echo "$as_me:3770: checking for $ac_word" >&5
3771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3772 if test "${ac_cv_prog_AR+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3775 if test -n "$AR"; then
3776 ac_cv_prog_AR="$AR" # Let the user override the test.
3778 ac_save_IFS=$IFS; IFS=$ac_path_separator
3780 for ac_dir in $ac_dummy; do
3782 test -z "$ac_dir" && ac_dir=.
3783 $as_executable_p "$ac_dir/$ac_word" || continue
3784 ac_cv_prog_AR="${ac_tool_prefix}ar"
3785 echo "$as_me:3785: found $ac_dir/$ac_word" >&5
3792 if test -n "$AR"; then
3793 echo "$as_me:3793: result: $AR" >&5
3794 echo "${ECHO_T}$AR" >&6
3796 echo "$as_me:3796: result: no" >&5
3797 echo "${ECHO_T}no" >&6
3801 if test -z "$ac_cv_prog_AR"; then
3803 # Extract the first word of "ar", so it can be a program name with args.
3804 set dummy ar; ac_word=$2
3805 echo "$as_me:3805: checking for $ac_word" >&5
3806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3807 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3808 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 if test -n "$ac_ct_AR"; then
3811 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3813 ac_save_IFS=$IFS; IFS=$ac_path_separator
3815 for ac_dir in $ac_dummy; do
3817 test -z "$ac_dir" && ac_dir=.
3818 $as_executable_p "$ac_dir/$ac_word" || continue
3819 ac_cv_prog_ac_ct_AR="ar"
3820 echo "$as_me:3820: found $ac_dir/$ac_word" >&5
3824 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3827 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3828 if test -n "$ac_ct_AR"; then
3829 echo "$as_me:3829: result: $ac_ct_AR" >&5
3830 echo "${ECHO_T}$ac_ct_AR" >&6
3832 echo "$as_me:3832: result: no" >&5
3833 echo "${ECHO_T}no" >&6
3841 if test "${cf_cv_subst_AR_OPTS+set}" = set; then
3842 echo $ECHO_N "(cached) $ECHO_C" >&6
3845 echo "$as_me:3845: checking for archiver options (symbol AR_OPTS)" >&5
3846 echo $ECHO_N "checking for archiver options (symbol AR_OPTS)... $ECHO_C" >&6
3848 if test -z "$AR_OPTS" ; then
3853 cf_cv_subst_AR_OPTS=$AR_OPTS
3854 echo "$as_me:3854: result: $AR_OPTS" >&5
3855 echo "${ECHO_T}$AR_OPTS" >&6
3859 echo "$as_me:3859: checking if you have specified an install-prefix" >&5
3860 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
3862 # Check whether --with-install-prefix or --without-install-prefix was given.
3863 if test "${with_install_prefix+set}" = set; then
3864 withval="$with_install_prefix"
3865 case "$withval" in #(vi
3868 *) DESTDIR="$withval"
3872 echo "$as_me:3872: result: $DESTDIR" >&5
3873 echo "${ECHO_T}$DESTDIR" >&6
3875 ###############################################################################
3877 # If we're cross-compiling, allow the user to override the tools and their
3878 # options. The configure script is oriented toward identifying the host
3879 # compiler, etc., but we need a build compiler to generate parts of the source.
3881 if test "$cross_compiling" = yes ; then
3883 # defaults that we might want to override
3884 : ${BUILD_CFLAGS:=''}
3885 : ${BUILD_CPPFLAGS:=''}
3886 : ${BUILD_LDFLAGS:=''}
3888 : ${BUILD_EXEEXT:='$x'}
3889 : ${BUILD_OBJEXT:='o'}
3891 # Check whether --with-build-cc or --without-build-cc was given.
3892 if test "${with_build_cc+set}" = set; then
3893 withval="$with_build_cc"
3896 for ac_prog in gcc cc cl
3898 # Extract the first word of "$ac_prog", so it can be a program name with args.
3899 set dummy $ac_prog; ac_word=$2
3900 echo "$as_me:3900: checking for $ac_word" >&5
3901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3902 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3905 if test -n "$BUILD_CC"; then
3906 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3908 ac_save_IFS=$IFS; IFS=$ac_path_separator
3910 for ac_dir in $ac_dummy; do
3912 test -z "$ac_dir" && ac_dir=.
3913 $as_executable_p "$ac_dir/$ac_word" || continue
3914 ac_cv_prog_BUILD_CC="$ac_prog"
3915 echo "$as_me:3915: found $ac_dir/$ac_word" >&5
3921 BUILD_CC=$ac_cv_prog_BUILD_CC
3922 if test -n "$BUILD_CC"; then
3923 echo "$as_me:3923: result: $BUILD_CC" >&5
3924 echo "${ECHO_T}$BUILD_CC" >&6
3926 echo "$as_me:3926: result: no" >&5
3927 echo "${ECHO_T}no" >&6
3930 test -n "$BUILD_CC" && break
3934 echo "$as_me:3934: checking for native build C compiler" >&5
3935 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
3936 echo "$as_me:3936: result: $BUILD_CC" >&5
3937 echo "${ECHO_T}$BUILD_CC" >&6
3939 echo "$as_me:3939: checking for native build C preprocessor" >&5
3940 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
3942 # Check whether --with-build-cpp or --without-build-cpp was given.
3943 if test "${with_build_cpp+set}" = set; then
3944 withval="$with_build_cpp"
3945 BUILD_CPP="$withval"
3947 BUILD_CPP='${BUILD_CC} -E'
3949 echo "$as_me:3949: result: $BUILD_CPP" >&5
3950 echo "${ECHO_T}$BUILD_CPP" >&6
3952 echo "$as_me:3952: checking for native build C flags" >&5
3953 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
3955 # Check whether --with-build-cflags or --without-build-cflags was given.
3956 if test "${with_build_cflags+set}" = set; then
3957 withval="$with_build_cflags"
3958 BUILD_CFLAGS="$withval"
3960 echo "$as_me:3960: result: $BUILD_CFLAGS" >&5
3961 echo "${ECHO_T}$BUILD_CFLAGS" >&6
3963 echo "$as_me:3963: checking for native build C preprocessor-flags" >&5
3964 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
3966 # Check whether --with-build-cppflags or --without-build-cppflags was given.
3967 if test "${with_build_cppflags+set}" = set; then
3968 withval="$with_build_cppflags"
3969 BUILD_CPPFLAGS="$withval"
3971 echo "$as_me:3971: result: $BUILD_CPPFLAGS" >&5
3972 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
3974 echo "$as_me:3974: checking for native build linker-flags" >&5
3975 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
3977 # Check whether --with-build-ldflags or --without-build-ldflags was given.
3978 if test "${with_build_ldflags+set}" = set; then
3979 withval="$with_build_ldflags"
3980 BUILD_LDFLAGS="$withval"
3982 echo "$as_me:3982: result: $BUILD_LDFLAGS" >&5
3983 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
3985 echo "$as_me:3985: checking for native build linker-libraries" >&5
3986 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
3988 # Check whether --with-build-libs or --without-build-libs was given.
3989 if test "${with_build_libs+set}" = set; then
3990 withval="$with_build_libs"
3991 BUILD_LIBS="$withval"
3993 echo "$as_me:3993: result: $BUILD_LIBS" >&5
3994 echo "${ECHO_T}$BUILD_LIBS" >&6
3996 # this assumes we're on Unix.
4000 : ${BUILD_CC:='${CC}'}
4002 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4003 { { echo "$as_me:4003: error: Cross-build requires two compilers.
4004 Use --with-build-cc to specify the native compiler." >&5
4005 echo "$as_me: error: Cross-build requires two compilers.
4006 Use --with-build-cc to specify the native compiler." >&2;}
4007 { (exit 1); exit 1; }; }
4011 : ${BUILD_CC:='${CC}'}
4012 : ${BUILD_CPP:='${CPP}'}
4013 : ${BUILD_CFLAGS:='${CFLAGS}'}
4014 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4015 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4016 : ${BUILD_LIBS:='${LIBS}'}
4017 : ${BUILD_EXEEXT:='$x'}
4018 : ${BUILD_OBJEXT:='o'}
4021 ###############################################################################
4023 ### Options to allow the user to specify the set of libraries which are used.
4024 ### Use "--without-normal --with-shared" to allow the default model to be
4025 ### shared, for example.
4030 # common library maintenance symbols that are convenient for libtool scripts:
4031 LIB_CREATE='${AR} -cr'
4032 LIB_OBJECT='${OBJECTS}'
4036 # symbols used to prop libtool up to enable it to determine what it should be
4044 echo "$as_me:4044: checking if you want to build libraries with libtool" >&5
4045 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4047 # Check whether --with-libtool or --without-libtool was given.
4048 if test "${with_libtool+set}" = set; then
4049 withval="$with_libtool"
4050 with_libtool=$withval
4054 echo "$as_me:4054: result: $with_libtool" >&5
4055 echo "${ECHO_T}$with_libtool" >&6
4056 if test "$with_libtool" != "no"; then
4058 if test "$with_libtool" != "yes" ; then
4060 if test "x$prefix" != xNONE; then
4061 cf_path_syntax="$prefix"
4063 cf_path_syntax="$ac_default_prefix"
4066 case ".$with_libtool" in #(vi
4067 .\$\(*\)*|.\'*\'*) #(vi
4071 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4074 eval with_libtool="$with_libtool"
4075 case ".$with_libtool" in #(vi
4077 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4082 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4085 { { echo "$as_me:4085: error: expected a pathname, not \"$with_libtool\"" >&5
4086 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4087 { (exit 1); exit 1; }; }
4091 LIBTOOL=$with_libtool
4093 # Extract the first word of "libtool", so it can be a program name with args.
4094 set dummy libtool; ac_word=$2
4095 echo "$as_me:4095: checking for $ac_word" >&5
4096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4097 if test "${ac_cv_path_LIBTOOL+set}" = set; then
4098 echo $ECHO_N "(cached) $ECHO_C" >&6
4102 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
4105 ac_save_IFS=$IFS; IFS=$ac_path_separator
4107 for ac_dir in $ac_dummy; do
4109 test -z "$ac_dir" && ac_dir=.
4110 if $as_executable_p "$ac_dir/$ac_word"; then
4111 ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
4112 echo "$as_me:4112: found $ac_dir/$ac_word" >&5
4120 LIBTOOL=$ac_cv_path_LIBTOOL
4122 if test -n "$LIBTOOL"; then
4123 echo "$as_me:4123: result: $LIBTOOL" >&5
4124 echo "${ECHO_T}$LIBTOOL" >&6
4126 echo "$as_me:4126: result: no" >&5
4127 echo "${ECHO_T}no" >&6
4131 if test -z "$LIBTOOL" ; then
4132 { { echo "$as_me:4132: error: Cannot find libtool" >&5
4133 echo "$as_me: error: Cannot find libtool" >&2;}
4134 { (exit 1); exit 1; }; }
4136 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} -version-info `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} -o'
4137 LIB_OBJECT='${OBJECTS:.o=.lo}'
4139 LIB_CLEAN='${LIBTOOL} --mode=clean'
4140 LIB_COMPILE='${LIBTOOL} --mode=compile'
4141 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
4142 LIB_INSTALL='${LIBTOOL} --mode=install'
4143 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4146 # Show the version of libtool
4147 echo "$as_me:4147: checking version of libtool" >&5
4148 echo $ECHO_N "checking version of libtool... $ECHO_C" >&6
4150 # Save the version in a cache variable - this is not entirely a good
4151 # thing, but the version string from libtool is very ugly, and for
4152 # bug reports it might be useful to have the original string.
4153 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.].*//'`
4154 echo "$as_me:4154: result: $cf_cv_libtool_version" >&5
4155 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4156 if test -z "$cf_cv_libtool_version" ; then
4157 { { echo "$as_me:4157: error: This is not GNU libtool" >&5
4158 echo "$as_me: error: This is not GNU libtool" >&2;}
4159 { (exit 1); exit 1; }; }
4162 # special hack to add --tag option for C++ compiler
4163 case $cf_cv_libtool_version in
4165 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4166 LIBTOOL="$LIBTOOL --tag=CC"
4169 LIBTOOL_CXX="$LIBTOOL"
4177 test -z "$LIBTOOL" && ECHO_LT=
4179 if test "$with_libtool" != "no" ; then
4181 cf_list_models="$cf_list_models libtool"
4185 echo "$as_me:4185: checking if you want to build shared libraries" >&5
4186 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
4188 # Check whether --with-shared or --without-shared was given.
4189 if test "${with_shared+set}" = set; then
4190 withval="$with_shared"
4191 with_shared=$withval
4195 echo "$as_me:4195: result: $with_shared" >&5
4196 echo "${ECHO_T}$with_shared" >&6
4197 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
4199 echo "$as_me:4199: checking if you want to build static libraries" >&5
4200 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
4202 # Check whether --with-normal or --without-normal was given.
4203 if test "${with_normal+set}" = set; then
4204 withval="$with_normal"
4205 with_normal=$withval
4209 echo "$as_me:4209: result: $with_normal" >&5
4210 echo "${ECHO_T}$with_normal" >&6
4211 test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
4213 echo "$as_me:4213: checking if you want to build debug libraries" >&5
4214 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
4216 # Check whether --with-debug or --without-debug was given.
4217 if test "${with_debug+set}" = set; then
4218 withval="$with_debug"
4223 echo "$as_me:4223: result: $with_debug" >&5
4224 echo "${ECHO_T}$with_debug" >&6
4225 test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
4227 echo "$as_me:4227: checking if you want to build profiling libraries" >&5
4228 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
4230 # Check whether --with-profile or --without-profile was given.
4231 if test "${with_profile+set}" = set; then
4232 withval="$with_profile"
4233 with_profile=$withval
4237 echo "$as_me:4237: result: $with_profile" >&5
4238 echo "${ECHO_T}$with_profile" >&6
4239 test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
4243 ###############################################################################
4245 echo "$as_me:4245: checking for specified models" >&5
4246 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
4247 test -z "$cf_list_models" && cf_list_models=normal
4248 test "$with_libtool" != "no" && cf_list_models=libtool
4249 echo "$as_me:4249: result: $cf_list_models" >&5
4250 echo "${ECHO_T}$cf_list_models" >&6
4252 ### Use the first model as the default, and save its suffix for use in building
4253 ### up test-applications.
4254 echo "$as_me:4254: checking for default model" >&5
4255 echo $ECHO_N "checking for default model... $ECHO_C" >&6
4256 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
4257 echo "$as_me:4257: result: $DFT_LWR_MODEL" >&5
4258 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
4260 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4271 case $cf_cv_system_name in #(vi
4278 cf_prefix=$LIB_PREFIX
4280 LIB_PREFIX=$cf_prefix
4284 ###############################################################################
4286 echo "$as_me:4286: checking if you want to build a separate terminfo library" >&5
4287 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
4289 # Check whether --with-termlib or --without-termlib was given.
4290 if test "${with_termlib+set}" = set; then
4291 withval="$with_termlib"
4292 with_termlib=$withval
4296 echo "$as_me:4296: result: $with_termlib" >&5
4297 echo "${ECHO_T}$with_termlib" >&6
4299 echo "$as_me:4299: checking if you want to build a separate tic library" >&5
4300 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
4302 # Check whether --with-ticlib or --without-ticlib was given.
4303 if test "${with_ticlib+set}" = set; then
4304 withval="$with_ticlib"
4305 with_ticlib=$withval
4309 echo "$as_me:4309: result: $with_ticlib" >&5
4310 echo "${ECHO_T}$with_ticlib" >&6
4312 ### Checks for special libraries, must be done up-front.
4315 echo "$as_me:4315: checking if you want to link with the GPM mouse library" >&5
4316 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
4318 # Check whether --with-gpm or --without-gpm was given.
4319 if test "${with_gpm+set}" = set; then
4325 echo "$as_me:4325: result: $with_gpm" >&5
4326 echo "${ECHO_T}$with_gpm" >&6
4328 if test "$with_gpm" != no ; then
4329 echo "$as_me:4329: checking for gpm.h" >&5
4330 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
4331 if test "${ac_cv_header_gpm_h+set}" = set; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4334 cat >conftest.$ac_ext <<_ACEOF
4335 #line 4335 "configure"
4336 #include "confdefs.h"
4339 if { (eval echo "$as_me:4339: \"$ac_cpp conftest.$ac_ext\"") >&5
4340 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4342 egrep -v '^ *\+' conftest.er1 >conftest.err
4344 cat conftest.err >&5
4345 echo "$as_me:4345: \$? = $ac_status" >&5
4346 (exit $ac_status); } >/dev/null; then
4347 if test -s conftest.err; then
4348 ac_cpp_err=$ac_c_preproc_warn_flag
4355 if test -z "$ac_cpp_err"; then
4356 ac_cv_header_gpm_h=yes
4358 echo "$as_me: failed program was:" >&5
4359 cat conftest.$ac_ext >&5
4360 ac_cv_header_gpm_h=no
4362 rm -f conftest.err conftest.$ac_ext
4364 echo "$as_me:4364: result: $ac_cv_header_gpm_h" >&5
4365 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
4366 if test $ac_cv_header_gpm_h = yes; then
4368 cat >>confdefs.h <<\EOF
4369 #define HAVE_GPM_H 1
4372 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
4373 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
4375 echo "${as_me-configure}:4375: testing assuming we really have GPM library ..." 1>&5
4377 cat >>confdefs.h <<\EOF
4378 #define HAVE_LIBGPM 1
4382 echo "$as_me:4382: checking for Gpm_Open in -lgpm" >&5
4383 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
4384 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
4385 echo $ECHO_N "(cached) $ECHO_C" >&6
4387 ac_check_lib_save_LIBS=$LIBS
4389 cat >conftest.$ac_ext <<_ACEOF
4390 #line 4390 "configure"
4391 #include "confdefs.h"
4393 /* Override any gcc2 internal prototype to avoid an error. */
4397 /* We use char because int might match the return type of a gcc2
4398 builtin and then its argument prototype would still apply. */
4408 rm -f conftest.$ac_objext conftest$ac_exeext
4409 if { (eval echo "$as_me:4409: \"$ac_link\"") >&5
4410 (eval $ac_link) 2>&5
4412 echo "$as_me:4412: \$? = $ac_status" >&5
4413 (exit $ac_status); } &&
4414 { ac_try='test -s conftest$ac_exeext'
4415 { (eval echo "$as_me:4415: \"$ac_try\"") >&5
4418 echo "$as_me:4418: \$? = $ac_status" >&5
4419 (exit $ac_status); }; }; then
4420 ac_cv_lib_gpm_Gpm_Open=yes
4422 echo "$as_me: failed program was:" >&5
4423 cat conftest.$ac_ext >&5
4424 ac_cv_lib_gpm_Gpm_Open=no
4426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4427 LIBS=$ac_check_lib_save_LIBS
4429 echo "$as_me:4429: result: $ac_cv_lib_gpm_Gpm_Open" >&5
4430 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
4431 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
4435 { { echo "$as_me:4435: error: Cannot link with GPM library" >&5
4436 echo "$as_me: error: Cannot link with GPM library" >&2;}
4437 { (exit 1); exit 1; }; }
4445 test "$with_gpm" != maybe && { echo "$as_me:4445: WARNING: Cannot find GPM header" >&5
4446 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
4453 if test "$with_gpm" != no ; then
4454 echo "$as_me:4454: checking if you want to load GPM dynamically" >&5
4455 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
4457 # Check whether --with-dlsym or --without-dlsym was given.
4458 if test "${with_dlsym+set}" = set; then
4459 withval="$with_dlsym"
4464 echo "$as_me:4464: result: $with_dlsym" >&5
4465 echo "${ECHO_T}$with_dlsym" >&6
4466 if test "$with_dlsym" = yes ; then
4469 echo "$as_me:4469: checking for dlsym" >&5
4470 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
4471 if test "${ac_cv_func_dlsym+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4474 cat >conftest.$ac_ext <<_ACEOF
4475 #line 4475 "configure"
4476 #include "confdefs.h"
4477 /* System header to define __stub macros and hopefully few prototypes,
4478 which can conflict with char dlsym (); below. */
4480 /* Override any gcc2 internal prototype to avoid an error. */
4484 /* We use char because int might match the return type of a gcc2
4485 builtin and then its argument prototype would still apply. */
4492 /* The GNU C library defines this for functions which it implements
4493 to always fail with ENOSYS. Some functions are actually named
4494 something starting with __ and the normal name is an alias. */
4495 #if defined (__stub_dlsym) || defined (__stub___dlsym)
4505 rm -f conftest.$ac_objext conftest$ac_exeext
4506 if { (eval echo "$as_me:4506: \"$ac_link\"") >&5
4507 (eval $ac_link) 2>&5
4509 echo "$as_me:4509: \$? = $ac_status" >&5
4510 (exit $ac_status); } &&
4511 { ac_try='test -s conftest$ac_exeext'
4512 { (eval echo "$as_me:4512: \"$ac_try\"") >&5
4515 echo "$as_me:4515: \$? = $ac_status" >&5
4516 (exit $ac_status); }; }; then
4517 ac_cv_func_dlsym=yes
4519 echo "$as_me: failed program was:" >&5
4520 cat conftest.$ac_ext >&5
4523 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4525 echo "$as_me:4525: result: $ac_cv_func_dlsym" >&5
4526 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
4527 if test $ac_cv_func_dlsym = yes; then
4532 echo "$as_me:4532: checking for dlsym in -ldl" >&5
4533 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
4534 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
4535 echo $ECHO_N "(cached) $ECHO_C" >&6
4537 ac_check_lib_save_LIBS=$LIBS
4539 cat >conftest.$ac_ext <<_ACEOF
4540 #line 4540 "configure"
4541 #include "confdefs.h"
4543 /* Override any gcc2 internal prototype to avoid an error. */
4547 /* We use char because int might match the return type of a gcc2
4548 builtin and then its argument prototype would still apply. */
4558 rm -f conftest.$ac_objext conftest$ac_exeext
4559 if { (eval echo "$as_me:4559: \"$ac_link\"") >&5
4560 (eval $ac_link) 2>&5
4562 echo "$as_me:4562: \$? = $ac_status" >&5
4563 (exit $ac_status); } &&
4564 { ac_try='test -s conftest$ac_exeext'
4565 { (eval echo "$as_me:4565: \"$ac_try\"") >&5
4568 echo "$as_me:4568: \$? = $ac_status" >&5
4569 (exit $ac_status); }; }; then
4570 ac_cv_lib_dl_dlsym=yes
4572 echo "$as_me: failed program was:" >&5
4573 cat conftest.$ac_ext >&5
4574 ac_cv_lib_dl_dlsym=no
4576 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4577 LIBS=$ac_check_lib_save_LIBS
4579 echo "$as_me:4579: result: $ac_cv_lib_dl_dlsym" >&5
4580 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
4581 if test $ac_cv_lib_dl_dlsym = yes; then
4589 if test "$cf_have_dlsym" = yes ; then
4590 test "$cf_have_libdl" = yes && LIBS="-ldl $LIBS"
4592 echo "$as_me:4592: checking whether able to link to dl*() functions" >&5
4593 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
4594 cat >conftest.$ac_ext <<_ACEOF
4595 #line 4595 "configure"
4596 #include "confdefs.h"
4603 if ((obj = dlopen("filename", 0)) != 0) {
4604 if (dlsym(obj, "symbolname") == 0) {
4612 rm -f conftest.$ac_objext conftest$ac_exeext
4613 if { (eval echo "$as_me:4613: \"$ac_link\"") >&5
4614 (eval $ac_link) 2>&5
4616 echo "$as_me:4616: \$? = $ac_status" >&5
4617 (exit $ac_status); } &&
4618 { ac_try='test -s conftest$ac_exeext'
4619 { (eval echo "$as_me:4619: \"$ac_try\"") >&5
4622 echo "$as_me:4622: \$? = $ac_status" >&5
4623 (exit $ac_status); }; }; then
4625 cat >>confdefs.h <<\EOF
4626 #define HAVE_LIBDL 1
4630 echo "$as_me: failed program was:" >&5
4631 cat conftest.$ac_ext >&5
4633 { { echo "$as_me:4633: error: Cannot link test program for libdl" >&5
4634 echo "$as_me: error: Cannot link test program for libdl" >&2;}
4635 { (exit 1); exit 1; }; }
4637 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4638 echo "$as_me:4638: result: ok" >&5
4639 echo "${ECHO_T}ok" >&6
4641 { { echo "$as_me:4641: error: Cannot find dlsym function" >&5
4642 echo "$as_me: error: Cannot find dlsym function" >&2;}
4643 { (exit 1); exit 1; }; }
4646 if test "$with_gpm" != yes ; then
4647 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
4649 echo "${as_me-configure}:4649: testing assuming soname for gpm is $with_gpm ..." 1>&5
4651 cf_cv_gpm_soname="$with_gpm"
4654 echo "$as_me:4654: checking for soname of gpm library" >&5
4655 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
4656 if test "${cf_cv_gpm_soname+set}" = set; then
4657 echo $ECHO_N "(cached) $ECHO_C" >&6
4660 cf_cv_gpm_soname=unknown
4661 if test "$cross_compiling" != yes ; then
4662 cat >conftest.$ac_ext <<CF_EOF
4666 if (Gpm_Open(0,0)) Gpm_Close();
4667 ${cf_cv_main_return:-return}(0);
4670 cf_save_LIBS="$LIBS"
4672 if { (eval echo "$as_me:4672: \"$ac_compile\"") >&5
4673 (eval $ac_compile) 2>&5
4675 echo "$as_me:4675: \$? = $ac_status" >&5
4676 (exit $ac_status); } ; then
4677 if { (eval echo "$as_me:4677: \"$ac_link\"") >&5
4678 (eval $ac_link) 2>&5
4680 echo "$as_me:4680: \$? = $ac_status" >&5
4681 (exit $ac_status); } ; then
4682 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
4683 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
4687 LIBS="$cf_save_LIBS"
4691 echo "$as_me:4691: result: $cf_cv_gpm_soname" >&5
4692 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
4695 test "$cf_cv_gpm_soname" != "unknown" && cat >>confdefs.h <<EOF
4696 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
4699 SHLIB_LIST="-ldl $SHLIB_LIST"
4701 SHLIB_LIST="-lgpm $SHLIB_LIST"
4703 cat >>confdefs.h <<\EOF
4704 #define HAVE_LIBGPM 1
4707 echo "$as_me:4707: checking for Gpm_Wgetch in -lgpm" >&5
4708 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
4709 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
4710 echo $ECHO_N "(cached) $ECHO_C" >&6
4712 ac_check_lib_save_LIBS=$LIBS
4714 cat >conftest.$ac_ext <<_ACEOF
4715 #line 4715 "configure"
4716 #include "confdefs.h"
4718 /* Override any gcc2 internal prototype to avoid an error. */
4722 /* We use char because int might match the return type of a gcc2
4723 builtin and then its argument prototype would still apply. */
4733 rm -f conftest.$ac_objext conftest$ac_exeext
4734 if { (eval echo "$as_me:4734: \"$ac_link\"") >&5
4735 (eval $ac_link) 2>&5
4737 echo "$as_me:4737: \$? = $ac_status" >&5
4738 (exit $ac_status); } &&
4739 { ac_try='test -s conftest$ac_exeext'
4740 { (eval echo "$as_me:4740: \"$ac_try\"") >&5
4743 echo "$as_me:4743: \$? = $ac_status" >&5
4744 (exit $ac_status); }; }; then
4745 ac_cv_lib_gpm_Gpm_Wgetch=yes
4747 echo "$as_me: failed program was:" >&5
4748 cat conftest.$ac_ext >&5
4749 ac_cv_lib_gpm_Gpm_Wgetch=no
4751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4752 LIBS=$ac_check_lib_save_LIBS
4754 echo "$as_me:4754: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
4755 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
4756 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
4758 echo "$as_me:4758: checking if GPM is weakly bound to curses library" >&5
4759 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
4760 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4764 cf_cv_check_gpm_wgetch=unknown
4765 if test "$cross_compiling" != yes ; then
4767 cat >conftest.$ac_ext <<CF_EOF
4772 ${cf_cv_main_return:-return}(0);
4776 cf_save_LIBS="$LIBS"
4777 # This only works if we can look at the symbol table. If a shared
4778 # library is stripped for install, we cannot use that. So we're forced
4779 # to rely on the static library, noting that some packagers may not
4781 LIBS="-static -lgpm -dynamic $LIBS"
4782 if { (eval echo "$as_me:4782: \"$ac_compile\"") >&5
4783 (eval $ac_compile) 2>&5
4785 echo "$as_me:4785: \$? = $ac_status" >&5
4786 (exit $ac_status); } ; then
4787 if { (eval echo "$as_me:4787: \"$ac_link\"") >&5
4788 (eval $ac_link) 2>&5
4790 echo "$as_me:4790: \$? = $ac_status" >&5
4791 (exit $ac_status); } ; then
4792 cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
4793 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
4794 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
4798 LIBS="$cf_save_LIBS"
4802 echo "$as_me:4802: result: $cf_cv_check_gpm_wgetch" >&5
4803 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
4805 if test "$cf_cv_check_gpm_wgetch" != yes ; then
4806 { echo "$as_me:4806: WARNING: GPM library is already linked with curses - read the FAQ" >&5
4807 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
4814 # not everyone has "test -c"
4815 if test -c /dev/sysmouse 2>/dev/null ; then
4816 echo "$as_me:4816: checking if you want to use sysmouse" >&5
4817 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
4819 # Check whether --with-sysmouse or --without-sysmouse was given.
4820 if test "${with_sysmouse+set}" = set; then
4821 withval="$with_sysmouse"
4822 cf_with_sysmouse=$withval
4824 cf_with_sysmouse=maybe
4826 if test "$cf_with_sysmouse" != no ; then
4827 cat >conftest.$ac_ext <<_ACEOF
4828 #line 4828 "configure"
4829 #include "confdefs.h"
4831 #include <osreldate.h>
4832 #if (__FreeBSD_version >= 400017)
4833 #include <sys/consio.h>
4834 #include <sys/fbio.h>
4836 #include <machine/console.h>
4843 struct mouse_info the_mouse;
4844 ioctl(0, CONS_MOUSECTL, &the_mouse);
4850 rm -f conftest.$ac_objext
4851 if { (eval echo "$as_me:4851: \"$ac_compile\"") >&5
4852 (eval $ac_compile) 2>&5
4854 echo "$as_me:4854: \$? = $ac_status" >&5
4855 (exit $ac_status); } &&
4856 { ac_try='test -s conftest.$ac_objext'
4857 { (eval echo "$as_me:4857: \"$ac_try\"") >&5
4860 echo "$as_me:4860: \$? = $ac_status" >&5
4861 (exit $ac_status); }; }; then
4862 cf_with_sysmouse=yes
4864 echo "$as_me: failed program was:" >&5
4865 cat conftest.$ac_ext >&5
4868 rm -f conftest.$ac_objext conftest.$ac_ext
4870 echo "$as_me:4870: result: $cf_with_sysmouse" >&5
4871 echo "${ECHO_T}$cf_with_sysmouse" >&6
4872 test "$cf_with_sysmouse" = yes && cat >>confdefs.h <<\EOF
4873 #define USE_SYSMOUSE 1
4878 if test X"$CC_G_OPT" = X"" ; then
4880 test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
4883 if test X"$CXX_G_OPT" = X"" ; then
4885 test -n "$GXX" && test "${ac_cv_prog_cxx_g}" != yes && CXX_G_OPT=''
4888 echo "$as_me:4888: checking for default loader flags" >&5
4889 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
4890 case $DFT_LWR_MODEL in
4891 libtool) LD_MODEL='' ;;
4892 normal) LD_MODEL='' ;;
4893 debug) LD_MODEL=$CC_G_OPT ;;
4894 profile) LD_MODEL='-pg';;
4895 shared) LD_MODEL='' ;;
4897 echo "$as_me:4897: result: $LD_MODEL" >&5
4898 echo "${ECHO_T}$LD_MODEL" >&6
4900 case $DFT_LWR_MODEL in
4903 echo "$as_me:4903: checking if rpath option should be used" >&5
4904 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
4906 # Check whether --enable-rpath or --disable-rpath was given.
4907 if test "${enable_rpath+set}" = set; then
4908 enableval="$enable_rpath"
4909 cf_cv_ld_rpath=$enableval
4913 echo "$as_me:4913: result: $cf_cv_ld_rpath" >&5
4914 echo "${ECHO_T}$cf_cv_ld_rpath" >&6
4916 echo "$as_me:4916: checking if shared libraries should be relinked during install" >&5
4917 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
4919 # Check whether --enable-relink or --disable-relink was given.
4920 if test "${enable_relink+set}" = set; then
4921 enableval="$enable_relink"
4922 cf_cv_do_relink=$enableval
4926 echo "$as_me:4926: result: $cf_cv_do_relink" >&5
4927 echo "${ECHO_T}$cf_cv_do_relink" >&6
4934 INSTALL_LIB="-m 644"
4936 cf_cv_do_symlinks=no
4938 echo "$as_me:4938: checking if release/abi version should be used for shared libs" >&5
4939 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
4941 # Check whether --with-shlib-version or --without-shlib-version was given.
4942 if test "${with_shlib_version+set}" = set; then
4943 withval="$with_shlib_version"
4944 test -z "$withval" && withval=auto
4945 case $withval in #(vi
4947 cf_cv_shlib_version=auto
4949 rel|abi|auto|no) #(vi
4950 cf_cv_shlib_version=$withval
4953 { { echo "$as_me:4953: error: option value must be one of: rel, abi, auto or no" >&5
4954 echo "$as_me: error: option value must be one of: rel, abi, auto or no" >&2;}
4955 { (exit 1); exit 1; }; }
4960 cf_cv_shlib_version=auto
4962 echo "$as_me:4962: result: $cf_cv_shlib_version" >&5
4963 echo "${ECHO_T}$cf_cv_shlib_version" >&6
4967 # Some less-capable ports of gcc support only -fpic
4969 if test "$GCC" = yes
4971 echo "$as_me:4971: checking which $CC option to use" >&5
4972 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
4973 cf_save_CFLAGS="$CFLAGS"
4974 for CC_SHARED_OPTS in -fPIC -fpic ''
4976 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
4977 cat >conftest.$ac_ext <<_ACEOF
4978 #line 4978 "configure"
4979 #include "confdefs.h"
4989 rm -f conftest.$ac_objext
4990 if { (eval echo "$as_me:4990: \"$ac_compile\"") >&5
4991 (eval $ac_compile) 2>&5
4993 echo "$as_me:4993: \$? = $ac_status" >&5
4994 (exit $ac_status); } &&
4995 { ac_try='test -s conftest.$ac_objext'
4996 { (eval echo "$as_me:4996: \"$ac_try\"") >&5
4999 echo "$as_me:4999: \$? = $ac_status" >&5
5000 (exit $ac_status); }; }; then
5003 echo "$as_me: failed program was:" >&5
5004 cat conftest.$ac_ext >&5
5006 rm -f conftest.$ac_objext conftest.$ac_ext
5008 echo "$as_me:5008: result: $CC_SHARED_OPTS" >&5
5009 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
5010 CFLAGS="$cf_save_CFLAGS"
5013 cf_cv_shlib_version_infix=no
5015 case $cf_cv_system_name in
5017 MK_SHARED_LIB='${CC} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
5021 MK_SHARED_LIB='sh ../mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5022 cf_cv_shlib_version=cygdll
5023 cf_cv_shlib_version_infix=cygdll
5024 cat >mk_shared_lib.sh <<-CF_EOF
5027 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
5030 Linking shared library
5031 ** SHARED_LIB \$SHARED_LIB
5032 ** IMPORT_LIB \$IMPORT_LIB
5034 exec \$* -shared -Wl,--out-implib=../lib/\${IMPORT_LIB} -Wl,--export-all-symbols -o ../lib/\${SHARED_LIB}
5036 chmod +x mk_shared_lib.sh
5039 EXTRA_CFLAGS="-no-cpp-precomp"
5040 CC_SHARED_OPTS="-dynamic"
5041 MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
5042 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
5043 cf_cv_shlib_version_infix=yes
5044 echo "$as_me:5044: checking if ld -search_paths_first works" >&5
5045 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
5046 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
5047 echo $ECHO_N "(cached) $ECHO_C" >&6
5050 cf_save_LDFLAGS=$LDFLAGS
5051 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5052 cat >conftest.$ac_ext <<_ACEOF
5053 #line 5053 "configure"
5054 #include "confdefs.h"
5064 rm -f conftest.$ac_objext conftest$ac_exeext
5065 if { (eval echo "$as_me:5065: \"$ac_link\"") >&5
5066 (eval $ac_link) 2>&5
5068 echo "$as_me:5068: \$? = $ac_status" >&5
5069 (exit $ac_status); } &&
5070 { ac_try='test -s conftest$ac_exeext'
5071 { (eval echo "$as_me:5071: \"$ac_try\"") >&5
5074 echo "$as_me:5074: \$? = $ac_status" >&5
5075 (exit $ac_status); }; }; then
5076 cf_cv_ldflags_search_paths_first=yes
5078 echo "$as_me: failed program was:" >&5
5079 cat conftest.$ac_ext >&5
5080 cf_cv_ldflags_search_paths_first=no
5082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5083 LDFLAGS=$cf_save_LDFLAGS
5085 echo "$as_me:5085: result: $cf_cv_ldflags_search_paths_first" >&5
5086 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
5087 if test $cf_cv_ldflags_search_paths_first = yes; then
5088 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5092 # (tested with gcc 2.7.2 -- I don't have c89)
5093 if test "$GCC" = yes; then
5094 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
5097 LD_SHARED_OPTS='-Wl,+b,${libdir}'
5099 MK_SHARED_LIB='${LD} +b ${libdir} -b -o $@'
5100 # HP-UX shared libraries must be executable, and should be
5101 # readonly to exploit a quirk in the memory manager.
5102 INSTALL_LIB="-m 555"
5105 if test "$cf_cv_ld_rpath" = yes ; then
5106 if test "$GCC" = yes; then
5107 cf_ld_rpath_opt="-Wl,-rpath,"
5108 EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
5110 cf_ld_rpath_opt="-rpath "
5111 EXTRA_LDFLAGS="-rpath \${libdir} $EXTRA_LDFLAGS"
5114 # tested with IRIX 5.2 and 'cc'.
5115 if test "$GCC" != yes; then
5116 CC_SHARED_OPTS='-KPIC'
5117 MK_SHARED_LIB='${CC} -shared -rdata_shared -soname `basename $@` -o $@'
5119 MK_SHARED_LIB='${CC} -shared -Wl,-soname,`basename $@` -o $@'
5121 cf_cv_rm_so_locs=yes
5123 linux*|gnu*|k*bsd*-gnu)
5124 if test "$DFT_LWR_MODEL" = "shared" ; then
5125 LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
5126 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5128 if test "$cf_cv_ld_rpath" = yes ; then
5129 cf_ld_rpath_opt="-Wl,-rpath,"
5130 EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
5133 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5134 if test "$cf_cv_shlib_version" = rel; then
5135 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5137 cf_cv_shared_soname='`basename $@`'
5140 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5143 if test "$DFT_LWR_MODEL" = "shared" ; then
5144 LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
5145 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5147 if test "$cf_cv_ld_rpath" = yes ; then
5148 cf_ld_rpath_opt="-Wl,-rpath,"
5149 EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
5151 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5153 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5154 if test "$cf_cv_shlib_version" = rel; then
5155 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5157 cf_cv_shared_soname='`basename $@`'
5160 MK_SHARED_LIB='${CC} ${CFLAGS} -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5162 nto-qnx*|openbsd*|freebsd[12].*)
5163 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5164 MK_SHARED_LIB='${LD} -Bshareable -o $@'
5165 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5168 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5169 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_ld_rpath" = yes ; then
5170 LOCAL_LDFLAGS="-rpath \$(LOCAL_LIBDIR)"
5171 LOCAL_LDFLAGS2="-rpath \${libdir} $LOCAL_LDFLAGS"
5172 cf_ld_rpath_opt="-rpath "
5173 EXTRA_LDFLAGS="-rpath \${libdir} $EXTRA_LDFLAGS"
5176 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5177 if test "$cf_cv_shlib_version" = rel; then
5178 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5180 cf_cv_shared_soname='`basename $@`'
5183 MK_SHARED_LIB='${LD} -Bshareable -soname=`basename $@` -o $@'
5186 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5187 test "$cf_cv_ld_rpath" = yes && cf_ld_rpath_opt="-Wl,-rpath,"
5188 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_ld_rpath" = yes ; then
5189 LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
5190 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5191 EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
5192 if test "$cf_cv_shlib_version" = auto; then
5193 if test -f /usr/libexec/ld.elf_so; then
5194 cf_cv_shlib_version=abi
5196 cf_cv_shlib_version=rel
5200 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5201 if test "$cf_cv_shlib_version" = rel; then
5202 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5204 cf_cv_shared_soname='`basename $@`'
5207 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
5209 MK_SHARED_LIB='${LD} -Bshareable -o $@'
5213 # tested with OSF/1 V3.2 and 'cc'
5214 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
5215 # link with shared libs).
5216 MK_SHARED_LIB='${LD} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
5219 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
5222 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
5223 if test "$DFT_LWR_MODEL" = "shared" ; then
5224 LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
5225 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5227 if test "$cf_cv_ld_rpath" = yes ; then
5228 cf_ld_rpath_opt="-rpath"
5229 # EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
5231 cf_cv_rm_so_locs=yes
5233 sco3.2v5*) # (also uw2* and UW7) hops 13-Apr-98
5234 # tested with osr5.0.5
5235 if test "$GCC" != yes; then
5236 CC_SHARED_OPTS='-belf -KPIC'
5238 MK_SHARED_LIB='${LD} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
5239 if test "$cf_cv_ld_rpath" = yes ; then
5240 # only way is to set LD_RUN_PATH but no switch for it
5243 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5244 LINK_PROGS='LD_RUN_PATH=${libdir}'
5245 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
5248 # tested with SunOS 4.1.1 and gcc 2.7.0
5249 if test "$GCC" != yes; then
5250 CC_SHARED_OPTS='-KPIC'
5252 MK_SHARED_LIB='${LD} -assert pure-text -o $@'
5253 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5256 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
5257 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
5258 if test "$DFT_LWR_MODEL" = "shared" ; then
5259 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
5260 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5262 if test "$cf_cv_ld_rpath" = yes ; then
5263 cf_ld_rpath_opt="-R"
5264 EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
5267 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5268 if test "$cf_cv_shlib_version" = rel; then
5269 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5271 cf_cv_shared_soname='`basename $@`'
5274 if test "$GCC" != yes; then
5275 CC_SHARED_OPTS='-xcode=pic32'
5276 MK_SHARED_LIB='${CC} -dy -G -h '$cf_cv_shared_soname' -o $@'
5278 MK_SHARED_LIB='${CC} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
5282 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
5283 if test "$GCC" != yes; then
5284 CC_SHARED_OPTS='-KPIC'
5286 MK_SHARED_LIB='${LD} -d y -G -o $@'
5289 CC_SHARED_OPTS='unknown'
5290 MK_SHARED_LIB='echo unknown'
5294 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
5295 case "$cf_cv_shlib_version" in #(vi
5297 case "$MK_SHARED_LIB" in #(vi
5299 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
5302 { echo "$as_me:5302: WARNING: ignored --with-shlib-version" >&5
5303 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
5309 if test -n "$cf_ld_rpath_opt" ; then
5310 echo "$as_me:5310: checking if we need a space after rpath option" >&5
5311 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
5312 cf_save_LIBS="$LIBS"
5313 LIBS="$LIBS ${cf_ld_rpath_opt}$libdir"
5314 cat >conftest.$ac_ext <<_ACEOF
5315 #line 5315 "configure"
5316 #include "confdefs.h"
5326 rm -f conftest.$ac_objext conftest$ac_exeext
5327 if { (eval echo "$as_me:5327: \"$ac_link\"") >&5
5328 (eval $ac_link) 2>&5
5330 echo "$as_me:5330: \$? = $ac_status" >&5
5331 (exit $ac_status); } &&
5332 { ac_try='test -s conftest$ac_exeext'
5333 { (eval echo "$as_me:5333: \"$ac_try\"") >&5
5336 echo "$as_me:5336: \$? = $ac_status" >&5
5337 (exit $ac_status); }; }; then
5340 echo "$as_me: failed program was:" >&5
5341 cat conftest.$ac_ext >&5
5344 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5345 LIBS="$cf_save_LIBS"
5346 echo "$as_me:5346: result: $cf_rpath_space" >&5
5347 echo "${ECHO_T}$cf_rpath_space" >&6
5348 test "$cf_rpath_space" = yes && cf_ld_rpath_opt="$cf_ld_rpath_opt "
5349 MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${libdir}"
5352 if test "$CC_SHARED_OPTS" = "unknown"; then
5353 for model in $cf_list_models; do
5354 if test "$model" = "shared"; then
5355 { { echo "$as_me:5355: error: Shared libraries are not supported in this version" >&5
5356 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
5357 { (exit 1); exit 1; }; }
5362 ###############################################################################
5364 ### use option --disable-overwrite to leave out the link to -lcurses
5365 echo "$as_me:5365: checking if you wish to install ncurses overwriting curses" >&5
5366 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
5368 # Check whether --enable-overwrite or --disable-overwrite was given.
5369 if test "${enable_overwrite+set}" = set; then
5370 enableval="$enable_overwrite"
5371 with_overwrite=$enableval
5373 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
5375 echo "$as_me:5375: result: $with_overwrite" >&5
5376 echo "${ECHO_T}$with_overwrite" >&6
5378 echo "$as_me:5378: checking if external terminfo-database is used" >&5
5379 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
5381 # Check whether --enable-database or --disable-database was given.
5382 if test "${enable_database+set}" = set; then
5383 enableval="$enable_database"
5384 use_database=$enableval
5388 echo "$as_me:5388: result: $use_database" >&5
5389 echo "${ECHO_T}$use_database" >&6
5391 case $host_os in #(vi
5393 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
5396 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
5400 case $cf_cv_system_name in
5401 os2*) PATHSEP=';' ;;
5405 if test "$use_database" != no ; then
5406 cat >>confdefs.h <<\EOF
5407 #define USE_DATABASE 1
5410 echo "$as_me:5410: checking which terminfo source-file will be installed" >&5
5411 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
5413 # Check whether --enable-database or --disable-database was given.
5414 if test "${enable_database+set}" = set; then
5415 enableval="$enable_database"
5416 TERMINFO_SRC=$withval
5418 echo "$as_me:5418: result: $TERMINFO_SRC" >&5
5419 echo "${ECHO_T}$TERMINFO_SRC" >&6
5421 echo "$as_me:5421: checking whether to use hashed database instead of directory/tree" >&5
5422 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
5424 # Check whether --with-hashed-db or --without-hashed-db was given.
5425 if test "${with_hashed_db+set}" = set; then
5426 withval="$with_hashed_db"
5431 echo "$as_me:5431: result: $with_hashed_db" >&5
5432 echo "${ECHO_T}$with_hashed_db" >&6
5437 echo "$as_me:5437: checking for list of fallback descriptions" >&5
5438 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
5440 # Check whether --with-fallbacks or --without-fallbacks was given.
5441 if test "${with_fallbacks+set}" = set; then
5442 withval="$with_fallbacks"
5443 with_fallback=$withval
5447 echo "$as_me:5447: result: $with_fallback" >&5
5448 echo "${ECHO_T}$with_fallback" >&6
5449 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
5451 echo "$as_me:5451: checking if you want modern xterm or antique" >&5
5452 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
5454 # Check whether --with-xterm-new or --without-xterm-new was given.
5455 if test "${with_xterm_new+set}" = set; then
5456 withval="$with_xterm_new"
5457 with_xterm_new=$withval
5461 case $with_xterm_new in
5462 no) with_xterm_new=xterm-old;;
5463 *) with_xterm_new=xterm-new;;
5465 echo "$as_me:5465: result: $with_xterm_new" >&5
5466 echo "${ECHO_T}$with_xterm_new" >&6
5467 WHICH_XTERM=$with_xterm_new
5470 if test "$use_database" = no ; then
5471 TERMINFO="${datadir}/terminfo"
5475 echo "$as_me:5475: checking for list of terminfo directories" >&5
5476 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
5478 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
5479 if test "${with_terminfo_dirs+set}" = set; then
5480 withval="$with_terminfo_dirs"
5483 withval=${TERMINFO_DIRS-${datadir}/terminfo}
5485 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATHSEP}"
5487 for cf_src_path in $withval
5490 if test "x$prefix" != xNONE; then
5491 cf_path_syntax="$prefix"
5493 cf_path_syntax="$ac_default_prefix"
5496 case ".$cf_src_path" in #(vi
5497 .\$\(*\)*|.\'*\'*) #(vi
5501 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
5504 eval cf_src_path="$cf_src_path"
5505 case ".$cf_src_path" in #(vi
5507 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
5512 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
5515 { { echo "$as_me:5515: error: expected a pathname, not \"$cf_src_path\"" >&5
5516 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
5517 { (exit 1); exit 1; }; }
5521 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
5522 cf_dst_path="${cf_dst_path}${cf_src_path}"
5526 eval 'TERMINFO_DIRS="$cf_dst_path"'
5528 echo "$as_me:5528: result: $TERMINFO_DIRS" >&5
5529 echo "${ECHO_T}$TERMINFO_DIRS" >&6
5530 test -n "$TERMINFO_DIRS" && cat >>confdefs.h <<EOF
5531 #define TERMINFO_DIRS "$TERMINFO_DIRS"
5534 echo "$as_me:5534: checking for default terminfo directory" >&5
5535 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
5537 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
5538 if test "${with_default_terminfo_dir+set}" = set; then
5539 withval="$with_default_terminfo_dir"
5542 withval="${TERMINFO-${datadir}/terminfo}"
5543 fi; if test -n "${datadir}/terminfo" ; then
5545 if test "x$prefix" != xNONE; then
5546 cf_path_syntax="$prefix"
5548 cf_path_syntax="$ac_default_prefix"
5551 case ".$withval" in #(vi
5552 .\$\(*\)*|.\'*\'*) #(vi
5556 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
5559 eval withval="$withval"
5560 case ".$withval" in #(vi
5562 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
5567 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
5570 { { echo "$as_me:5570: error: expected a pathname, not \"$withval\"" >&5
5571 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
5572 { (exit 1); exit 1; }; }
5579 echo "$as_me:5579: result: $TERMINFO" >&5
5580 echo "${ECHO_T}$TERMINFO" >&6
5581 cat >>confdefs.h <<EOF
5582 #define TERMINFO "$TERMINFO"
5587 ### use option --disable-big-core to make tic run on small machines
5588 ### We need 4Mb, check if we can allocate 50% more than that.
5589 echo "$as_me:5589: checking if big-core option selected" >&5
5590 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
5592 # Check whether --enable-big-core or --disable-big-core was given.
5593 if test "${enable_big_core+set}" = set; then
5594 enableval="$enable_big_core"
5595 with_big_core=$enableval
5597 if test "$cross_compiling" = yes; then
5600 cat >conftest.$ac_ext <<_ACEOF
5601 #line 5601 "configure"
5602 #include "confdefs.h"
5607 unsigned long n = 6000000L;
5608 char *s = malloc(n);
5611 ${cf_cv_main_return:-return}(s == 0);
5614 rm -f conftest$ac_exeext
5615 if { (eval echo "$as_me:5615: \"$ac_link\"") >&5
5616 (eval $ac_link) 2>&5
5618 echo "$as_me:5618: \$? = $ac_status" >&5
5619 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5620 { (eval echo "$as_me:5620: \"$ac_try\"") >&5
5623 echo "$as_me:5623: \$? = $ac_status" >&5
5624 (exit $ac_status); }; }; then
5627 echo "$as_me: program exited with status $ac_status" >&5
5628 echo "$as_me: failed program was:" >&5
5629 cat conftest.$ac_ext >&5
5632 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5635 echo "$as_me:5635: result: $with_big_core" >&5
5636 echo "${ECHO_T}$with_big_core" >&6
5637 test "$with_big_core" = "yes" && cat >>confdefs.h <<\EOF
5638 #define HAVE_BIG_CORE 1
5641 ### ISO C only guarantees 512-char strings, we have tables which load faster
5642 ### when constructed using "big" strings. More than the C compiler, the awk
5643 ### program is a limit on most vendor UNIX systems. Check that we can build.
5644 echo "$as_me:5644: checking if big-strings option selected" >&5
5645 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
5647 # Check whether --enable-big-strings or --disable-big-strings was given.
5648 if test "${enable_big_strings+set}" = set; then
5649 enableval="$enable_big_strings"
5650 with_big_strings=$enableval
5655 eval with_big_strings=no
5658 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' \
5659 | $AWK '{ printf "%d\n", length($0); }' | $AWK 'BEGIN { eqls=0; recs=0; } { recs++; if ($0 == 12000) eqls++; } END { if (recs != 1 || eqls != 1) exit 1; }' 2>/dev/null >/dev/null ) ; then
5660 eval with_big_strings=yes
5662 eval with_big_strings=no
5668 echo "$as_me:5668: result: $with_big_strings" >&5
5669 echo "${ECHO_T}$with_big_strings" >&6
5672 test "$with_big_strings" = "yes" && USE_BIG_STRINGS=1
5674 ### use option --enable-termcap to compile in the termcap fallback support
5675 echo "$as_me:5675: checking if you want termcap-fallback support" >&5
5676 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
5678 # Check whether --enable-termcap or --disable-termcap was given.
5679 if test "${enable_termcap+set}" = set; then
5680 enableval="$enable_termcap"
5681 with_termcap=$enableval
5685 echo "$as_me:5685: result: $with_termcap" >&5
5686 echo "${ECHO_T}$with_termcap" >&6
5688 if test "$with_termcap" != "yes" ; then
5689 if test "$use_database" = no ; then
5690 if test -z "$with_fallback" ; then
5691 { { echo "$as_me:5691: error: You have disabled the database w/o specifying fallbacks" >&5
5692 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
5693 { (exit 1); exit 1; }; }
5696 cat >>confdefs.h <<\EOF
5697 #define PURE_TERMINFO 1
5702 if test "$with_ticlib" != no ; then
5703 { { echo "$as_me:5703: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
5704 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
5705 { (exit 1); exit 1; }; }
5708 cat >>confdefs.h <<\EOF
5709 #define USE_TERMCAP 1
5712 echo "$as_me:5712: checking for list of termcap files" >&5
5713 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
5715 # Check whether --with-termpath or --without-termpath was given.
5716 if test "${with_termpath+set}" = set; then
5717 withval="$with_termpath"
5720 withval=${TERMPATH-/etc/termcap:/usr/share/misc/termcap}
5722 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATHSEP}"
5724 for cf_src_path in $withval
5727 if test "x$prefix" != xNONE; then
5728 cf_path_syntax="$prefix"
5730 cf_path_syntax="$ac_default_prefix"
5733 case ".$cf_src_path" in #(vi
5734 .\$\(*\)*|.\'*\'*) #(vi
5738 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
5741 eval cf_src_path="$cf_src_path"
5742 case ".$cf_src_path" in #(vi
5744 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
5749 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
5752 { { echo "$as_me:5752: error: expected a pathname, not \"$cf_src_path\"" >&5
5753 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
5754 { (exit 1); exit 1; }; }
5758 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
5759 cf_dst_path="${cf_dst_path}${cf_src_path}"
5763 eval 'TERMPATH="$cf_dst_path"'
5765 echo "$as_me:5765: result: $TERMPATH" >&5
5766 echo "${ECHO_T}$TERMPATH" >&6
5767 test -n "$TERMPATH" && cat >>confdefs.h <<EOF
5768 #define TERMPATH "$TERMPATH"
5771 ### use option --enable-getcap to use a hacked getcap for reading termcaps
5772 echo "$as_me:5772: checking if fast termcap-loader is needed" >&5
5773 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
5775 # Check whether --enable-getcap or --disable-getcap was given.
5776 if test "${enable_getcap+set}" = set; then
5777 enableval="$enable_getcap"
5778 with_getcap=$enableval
5782 echo "$as_me:5782: result: $with_getcap" >&5
5783 echo "${ECHO_T}$with_getcap" >&6
5784 test "$with_getcap" = "yes" && cat >>confdefs.h <<\EOF
5785 #define USE_GETCAP 1
5788 echo "$as_me:5788: checking if translated termcaps will be cached in ~/.terminfo" >&5
5789 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
5791 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
5792 if test "${enable_getcap_cache+set}" = set; then
5793 enableval="$enable_getcap_cache"
5794 with_getcap_cache=$enableval
5796 with_getcap_cache=no
5798 echo "$as_me:5798: result: $with_getcap_cache" >&5
5799 echo "${ECHO_T}$with_getcap_cache" >&6
5800 test "$with_getcap_cache" = "yes" && cat >>confdefs.h <<\EOF
5801 #define USE_GETCAP_CACHE 1
5806 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
5807 echo "$as_me:5807: checking if ~/.terminfo is wanted" >&5
5808 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
5810 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
5811 if test "${enable_home_terminfo+set}" = set; then
5812 enableval="$enable_home_terminfo"
5813 with_home_terminfo=$enableval
5815 with_home_terminfo=yes
5817 echo "$as_me:5817: result: $with_home_terminfo" >&5
5818 echo "${ECHO_T}$with_home_terminfo" >&6
5819 test "$with_home_terminfo" = "yes" && cat >>confdefs.h <<\EOF
5820 #define USE_HOME_TERMINFO 1
5823 echo "$as_me:5823: checking if you want to use restricted environment when running as root" >&5
5824 echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6
5826 # Check whether --enable-root-environ or --disable-root-environ was given.
5827 if test "${enable_root_environ+set}" = set; then
5828 enableval="$enable_root_environ"
5829 with_root_environ=$enableval
5831 with_root_environ=yes
5833 echo "$as_me:5833: result: $with_root_environ" >&5
5834 echo "${ECHO_T}$with_root_environ" >&6
5835 test "$with_root_environ" = yes && cat >>confdefs.h <<\EOF
5836 #define USE_ROOT_ENVIRON 1
5839 ### Use option --enable-symlinks to make tic use symlinks, not hard links
5840 ### to reduce storage requirements for the terminfo database.
5846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5847 echo "$as_me:5847: checking for $ac_func" >&5
5848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5849 if eval "test \"\${$as_ac_var+set}\" = set"; then
5850 echo $ECHO_N "(cached) $ECHO_C" >&6
5852 cat >conftest.$ac_ext <<_ACEOF
5853 #line 5853 "configure"
5854 #include "confdefs.h"
5855 /* System header to define __stub macros and hopefully few prototypes,
5856 which can conflict with char $ac_func (); below. */
5858 /* Override any gcc2 internal prototype to avoid an error. */
5862 /* We use char because int might match the return type of a gcc2
5863 builtin and then its argument prototype would still apply. */
5870 /* The GNU C library defines this for functions which it implements
5871 to always fail with ENOSYS. Some functions are actually named
5872 something starting with __ and the normal name is an alias. */
5873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5883 rm -f conftest.$ac_objext conftest$ac_exeext
5884 if { (eval echo "$as_me:5884: \"$ac_link\"") >&5
5885 (eval $ac_link) 2>&5
5887 echo "$as_me:5887: \$? = $ac_status" >&5
5888 (exit $ac_status); } &&
5889 { ac_try='test -s conftest$ac_exeext'
5890 { (eval echo "$as_me:5890: \"$ac_try\"") >&5
5893 echo "$as_me:5893: \$? = $ac_status" >&5
5894 (exit $ac_status); }; }; then
5895 eval "$as_ac_var=yes"
5897 echo "$as_me: failed program was:" >&5
5898 cat conftest.$ac_ext >&5
5899 eval "$as_ac_var=no"
5901 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5903 echo "$as_me:5903: result: `eval echo '${'$as_ac_var'}'`" >&5
5904 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5905 if test `eval echo '${'$as_ac_var'}'` = yes; then
5906 cat >>confdefs.h <<EOF
5907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5913 if test "$cross_compiling" = yes ; then
5919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5920 echo "$as_me:5920: checking for $ac_func" >&5
5921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5922 if eval "test \"\${$as_ac_var+set}\" = set"; then
5923 echo $ECHO_N "(cached) $ECHO_C" >&6
5925 cat >conftest.$ac_ext <<_ACEOF
5926 #line 5926 "configure"
5927 #include "confdefs.h"
5928 /* System header to define __stub macros and hopefully few prototypes,
5929 which can conflict with char $ac_func (); below. */
5931 /* Override any gcc2 internal prototype to avoid an error. */
5935 /* We use char because int might match the return type of a gcc2
5936 builtin and then its argument prototype would still apply. */
5943 /* The GNU C library defines this for functions which it implements
5944 to always fail with ENOSYS. Some functions are actually named
5945 something starting with __ and the normal name is an alias. */
5946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5956 rm -f conftest.$ac_objext conftest$ac_exeext
5957 if { (eval echo "$as_me:5957: \"$ac_link\"") >&5
5958 (eval $ac_link) 2>&5
5960 echo "$as_me:5960: \$? = $ac_status" >&5
5961 (exit $ac_status); } &&
5962 { ac_try='test -s conftest$ac_exeext'
5963 { (eval echo "$as_me:5963: \"$ac_try\"") >&5
5966 echo "$as_me:5966: \$? = $ac_status" >&5
5967 (exit $ac_status); }; }; then
5968 eval "$as_ac_var=yes"
5970 echo "$as_me: failed program was:" >&5
5971 cat conftest.$ac_ext >&5
5972 eval "$as_ac_var=no"
5974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5976 echo "$as_me:5976: result: `eval echo '${'$as_ac_var'}'`" >&5
5977 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5978 if test `eval echo '${'$as_ac_var'}'` = yes; then
5979 cat >>confdefs.h <<EOF
5980 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5987 echo "$as_me:5987: checking if link/symlink functions work" >&5
5988 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
5989 if test "${cf_cv_link_funcs+set}" = set; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
5994 for cf_func in link symlink ; do
5995 if test "$cross_compiling" = yes; then
5997 eval 'ac_cv_func_'$cf_func'=error'
5999 cat >conftest.$ac_ext <<_ACEOF
6000 #line 6000 "configure"
6001 #include "confdefs.h"
6003 #include <sys/types.h>
6004 #include <sys/stat.h>
6005 #ifdef HAVE_UNISTD_H
6011 char *src = "config.log";
6012 char *dst = "conftest.chk";
6017 fail = ($cf_func("config.log", "conftest.chk") < 0)
6018 || (stat(dst, &dst_sb) < 0)
6019 || (dst_sb.st_mtime != src_sb.st_mtime);
6025 ${cf_cv_main_return:-return} (fail);
6029 rm -f conftest$ac_exeext
6030 if { (eval echo "$as_me:6030: \"$ac_link\"") >&5
6031 (eval $ac_link) 2>&5
6033 echo "$as_me:6033: \$? = $ac_status" >&5
6034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6035 { (eval echo "$as_me:6035: \"$ac_try\"") >&5
6038 echo "$as_me:6038: \$? = $ac_status" >&5
6039 (exit $ac_status); }; }; then
6041 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
6042 eval 'ac_cv_func_'$cf_func'=yes'
6044 echo "$as_me: program exited with status $ac_status" >&5
6045 echo "$as_me: failed program was:" >&5
6046 cat conftest.$ac_ext >&5
6048 eval 'ac_cv_func_'$cf_func'=no'
6050 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6053 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
6056 echo "$as_me:6056: result: $cf_cv_link_funcs" >&5
6057 echo "${ECHO_T}$cf_cv_link_funcs" >&6
6058 test "$ac_cv_func_link" = yes && cat >>confdefs.h <<\EOF
6062 test "$ac_cv_func_symlink" = yes && cat >>confdefs.h <<\EOF
6063 #define HAVE_SYMLINK 1
6071 # soft links (symbolic links) are useful for some systems where hard links do
6072 # not work, or to make it simpler to copy terminfo trees around.
6073 if test "$ac_cv_func_symlink" = yes ; then
6074 echo "$as_me:6074: checking if tic should use symbolic links" >&5
6075 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
6077 # Check whether --enable-symlinks or --disable-symlinks was given.
6078 if test "${enable_symlinks+set}" = set; then
6079 enableval="$enable_symlinks"
6080 with_symlinks=$enableval
6084 echo "$as_me:6084: result: $with_symlinks" >&5
6085 echo "${ECHO_T}$with_symlinks" >&6
6088 # If we have hard links and did not choose to use soft links instead, there is
6089 # no reason to make this choice optional - use the hard links.
6090 if test "$with_symlinks" = no ; then
6091 echo "$as_me:6091: checking if tic should use hard links" >&5
6092 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
6093 if test "$ac_cv_func_link" = yes ; then
6098 echo "$as_me:6098: result: $with_links" >&5
6099 echo "${ECHO_T}$with_links" >&6
6102 test "$with_links" = yes && cat >>confdefs.h <<\EOF
6106 test "$with_symlinks" = yes && cat >>confdefs.h <<\EOF
6107 #define USE_SYMLINKS 1
6110 ### use option --enable-broken-linker to force on use of broken-linker support
6111 echo "$as_me:6111: checking if you want broken-linker support code" >&5
6112 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
6114 # Check whether --enable-broken_linker or --disable-broken_linker was given.
6115 if test "${enable_broken_linker+set}" = set; then
6116 enableval="$enable_broken_linker"
6117 with_broken_linker=$enableval
6119 with_broken_linker=${BROKEN_LINKER-no}
6121 echo "$as_me:6121: result: $with_broken_linker" >&5
6122 echo "${ECHO_T}$with_broken_linker" >&6
6125 if test "$with_broken_linker" = yes ; then
6126 cat >>confdefs.h <<\EOF
6127 #define BROKEN_LINKER 1
6131 elif test "$DFT_LWR_MODEL" = shared ; then
6132 case $cf_cv_system_name in #(vi
6134 cat >>confdefs.h <<\EOF
6135 #define BROKEN_LINKER 1
6139 test -n "$verbose" && echo " cygwin linker is broken anyway" 1>&6
6141 echo "${as_me-configure}:6141: testing cygwin linker is broken anyway ..." 1>&5
6147 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
6148 echo "$as_me:6148: checking if tputs should process BSD-style prefix padding" >&5
6149 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
6151 # Check whether --enable-bsdpad or --disable-bsdpad was given.
6152 if test "${enable_bsdpad+set}" = set; then
6153 enableval="$enable_bsdpad"
6154 with_bsdpad=$enableval
6158 echo "$as_me:6158: result: $with_bsdpad" >&5
6159 echo "${ECHO_T}$with_bsdpad" >&6
6160 test "$with_bsdpad" = yes && cat >>confdefs.h <<\EOF
6164 ### use option --enable-widec to turn on use of wide-character support
6173 # Check to define _XOPEN_SOURCE "automatically"
6175 echo "$as_me:6175: checking if $CC -U and -D options work together" >&5
6176 echo $ECHO_N "checking if $CC -U and -D options work together... $ECHO_C" >&6
6177 if test "${cf_cv_cc_u_d_options+set}" = set; then
6178 echo $ECHO_N "(cached) $ECHO_C" >&6
6181 cf_save_CPPFLAGS="$CPPFLAGS"
6182 CPPFLAGS="-UU_D_OPTIONS -DU_D_OPTIONS -DD_U_OPTIONS -UD_U_OPTIONS"
6183 cat >conftest.$ac_ext <<_ACEOF
6184 #line 6184 "configure"
6185 #include "confdefs.h"
6192 make an undefined-error
6195 make a defined-error
6202 rm -f conftest.$ac_objext
6203 if { (eval echo "$as_me:6203: \"$ac_compile\"") >&5
6204 (eval $ac_compile) 2>&5
6206 echo "$as_me:6206: \$? = $ac_status" >&5
6207 (exit $ac_status); } &&
6208 { ac_try='test -s conftest.$ac_objext'
6209 { (eval echo "$as_me:6209: \"$ac_try\"") >&5
6212 echo "$as_me:6212: \$? = $ac_status" >&5
6213 (exit $ac_status); }; }; then
6215 cf_cv_cc_u_d_options=yes
6217 echo "$as_me: failed program was:" >&5
6218 cat conftest.$ac_ext >&5
6220 cf_cv_cc_u_d_options=no
6222 rm -f conftest.$ac_objext conftest.$ac_ext
6223 CPPFLAGS="$cf_save_CPPFLAGS"
6226 echo "$as_me:6226: result: $cf_cv_cc_u_d_options" >&5
6227 echo "${ECHO_T}$cf_cv_cc_u_d_options" >&6
6230 cf_POSIX_C_SOURCE=199506L
6232 case $host_os in #(vi
6234 CPPFLAGS="$CPPFLAGS -D_ALL_SOURCE"
6236 freebsd*|dragonfly*) #(vi
6237 # 5.x headers associate
6238 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
6239 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
6240 cf_POSIX_C_SOURCE=200112L
6242 CPPFLAGS="$CPPFLAGS -D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
6245 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE"
6248 CPPFLAGS="$CPPFLAGS -D_SGI_SOURCE"
6250 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
6252 echo "$as_me:6252: checking if we must define _GNU_SOURCE" >&5
6253 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
6254 if test "${cf_cv_gnu_source+set}" = set; then
6255 echo $ECHO_N "(cached) $ECHO_C" >&6
6258 cat >conftest.$ac_ext <<_ACEOF
6259 #line 6259 "configure"
6260 #include "confdefs.h"
6261 #include <sys/types.h>
6266 #ifndef _XOPEN_SOURCE
6273 rm -f conftest.$ac_objext
6274 if { (eval echo "$as_me:6274: \"$ac_compile\"") >&5
6275 (eval $ac_compile) 2>&5
6277 echo "$as_me:6277: \$? = $ac_status" >&5
6278 (exit $ac_status); } &&
6279 { ac_try='test -s conftest.$ac_objext'
6280 { (eval echo "$as_me:6280: \"$ac_try\"") >&5
6283 echo "$as_me:6283: \$? = $ac_status" >&5
6284 (exit $ac_status); }; }; then
6287 echo "$as_me: failed program was:" >&5
6288 cat conftest.$ac_ext >&5
6290 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
6291 cat >conftest.$ac_ext <<_ACEOF
6292 #line 6292 "configure"
6293 #include "confdefs.h"
6294 #include <sys/types.h>
6299 #ifdef _XOPEN_SOURCE
6306 rm -f conftest.$ac_objext
6307 if { (eval echo "$as_me:6307: \"$ac_compile\"") >&5
6308 (eval $ac_compile) 2>&5
6310 echo "$as_me:6310: \$? = $ac_status" >&5
6311 (exit $ac_status); } &&
6312 { ac_try='test -s conftest.$ac_objext'
6313 { (eval echo "$as_me:6313: \"$ac_try\"") >&5
6316 echo "$as_me:6316: \$? = $ac_status" >&5
6317 (exit $ac_status); }; }; then
6320 echo "$as_me: failed program was:" >&5
6321 cat conftest.$ac_ext >&5
6322 cf_cv_gnu_source=yes
6324 rm -f conftest.$ac_objext conftest.$ac_ext
6328 rm -f conftest.$ac_objext conftest.$ac_ext
6331 echo "$as_me:6331: result: $cf_cv_gnu_source" >&5
6332 echo "${ECHO_T}$cf_cv_gnu_source" >&6
6333 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
6337 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h>
6340 # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
6343 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
6346 CPPFLAGS="$CPPFLAGS -D_OSF_SOURCE"
6349 CPPFLAGS="$CPPFLAGS -D_QNX_SOURCE"
6352 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
6355 CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__"
6358 echo "$as_me:6358: checking if we should define _XOPEN_SOURCE" >&5
6359 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
6360 if test "${cf_cv_xopen_source+set}" = set; then
6361 echo $ECHO_N "(cached) $ECHO_C" >&6
6364 cat >conftest.$ac_ext <<_ACEOF
6365 #line 6365 "configure"
6366 #include "confdefs.h"
6367 #include <sys/types.h>
6372 #ifndef _XOPEN_SOURCE
6379 rm -f conftest.$ac_objext
6380 if { (eval echo "$as_me:6380: \"$ac_compile\"") >&5
6381 (eval $ac_compile) 2>&5
6383 echo "$as_me:6383: \$? = $ac_status" >&5
6384 (exit $ac_status); } &&
6385 { ac_try='test -s conftest.$ac_objext'
6386 { (eval echo "$as_me:6386: \"$ac_try\"") >&5
6389 echo "$as_me:6389: \$? = $ac_status" >&5
6390 (exit $ac_status); }; }; then
6391 cf_cv_xopen_source=no
6393 echo "$as_me: failed program was:" >&5
6394 cat conftest.$ac_ext >&5
6396 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
6397 cat >conftest.$ac_ext <<_ACEOF
6398 #line 6398 "configure"
6399 #include "confdefs.h"
6400 #include <sys/types.h>
6405 #ifdef _XOPEN_SOURCE
6412 rm -f conftest.$ac_objext
6413 if { (eval echo "$as_me:6413: \"$ac_compile\"") >&5
6414 (eval $ac_compile) 2>&5
6416 echo "$as_me:6416: \$? = $ac_status" >&5
6417 (exit $ac_status); } &&
6418 { ac_try='test -s conftest.$ac_objext'
6419 { (eval echo "$as_me:6419: \"$ac_try\"") >&5
6422 echo "$as_me:6422: \$? = $ac_status" >&5
6423 (exit $ac_status); }; }; then
6424 cf_cv_xopen_source=no
6426 echo "$as_me: failed program was:" >&5
6427 cat conftest.$ac_ext >&5
6428 cf_cv_xopen_source=$cf_XOPEN_SOURCE
6430 rm -f conftest.$ac_objext conftest.$ac_ext
6434 rm -f conftest.$ac_objext conftest.$ac_ext
6437 echo "$as_me:6437: result: $cf_cv_xopen_source" >&5
6438 echo "${ECHO_T}$cf_cv_xopen_source" >&6
6439 if test "$cf_cv_xopen_source" != no ; then
6441 # remove _XOPEN_SOURCE symbol from $CFLAGS
6442 CFLAGS=`echo "$CFLAGS" | \
6443 sed -e 's/-[UD]_XOPEN_SOURCE\(=[^ ]*\)\?[ ]/ /g' \
6444 -e 's/-[UD]_XOPEN_SOURCE\(=[^ ]*\)\?$//g'`
6446 # remove _XOPEN_SOURCE symbol from $CPPFLAGS
6447 CPPFLAGS=`echo "$CPPFLAGS" | \
6448 sed -e 's/-[UD]_XOPEN_SOURCE\(=[^ ]*\)\?[ ]/ /g' \
6449 -e 's/-[UD]_XOPEN_SOURCE\(=[^ ]*\)\?$//g'`
6451 test "$cf_cv_cc_u_d_options" = yes && \
6452 CPPFLAGS="$CPPFLAGS -U_XOPEN_SOURCE"
6453 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_cv_xopen_source"
6456 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
6458 cf_save_CFLAGS="$CFLAGS"
6459 cf_save_CPPFLAGS="$CPPFLAGS"
6461 # remove _POSIX_C_SOURCE symbol from $cf_save_CFLAGS
6462 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
6463 sed -e 's/-[UD]_POSIX_C_SOURCE\(=[^ ]*\)\?[ ]/ /g' \
6464 -e 's/-[UD]_POSIX_C_SOURCE\(=[^ ]*\)\?$//g'`
6466 # remove _POSIX_C_SOURCE symbol from $cf_save_CPPFLAGS
6467 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
6468 sed -e 's/-[UD]_POSIX_C_SOURCE\(=[^ ]*\)\?[ ]/ /g' \
6469 -e 's/-[UD]_POSIX_C_SOURCE\(=[^ ]*\)\?$//g'`
6471 echo "$as_me:6471: checking if we should define _POSIX_C_SOURCE" >&5
6472 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
6473 if test "${cf_cv_posix_c_source+set}" = set; then
6474 echo $ECHO_N "(cached) $ECHO_C" >&6
6477 echo "${as_me-configure}:6477: testing if the symbol is already defined go no further ..." 1>&5
6479 cat >conftest.$ac_ext <<_ACEOF
6480 #line 6480 "configure"
6481 #include "confdefs.h"
6482 #include <sys/types.h>
6487 #ifndef _POSIX_C_SOURCE
6494 rm -f conftest.$ac_objext
6495 if { (eval echo "$as_me:6495: \"$ac_compile\"") >&5
6496 (eval $ac_compile) 2>&5
6498 echo "$as_me:6498: \$? = $ac_status" >&5
6499 (exit $ac_status); } &&
6500 { ac_try='test -s conftest.$ac_objext'
6501 { (eval echo "$as_me:6501: \"$ac_try\"") >&5
6504 echo "$as_me:6504: \$? = $ac_status" >&5
6505 (exit $ac_status); }; }; then
6506 cf_cv_posix_c_source=no
6508 echo "$as_me: failed program was:" >&5
6509 cat conftest.$ac_ext >&5
6510 cf_want_posix_source=no
6511 case .$cf_POSIX_C_SOURCE in #(vi
6513 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
6516 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
6517 cf_want_posix_source=yes
6520 cf_want_posix_source=yes
6523 if test "$cf_want_posix_source" = yes ; then
6524 cat >conftest.$ac_ext <<_ACEOF
6525 #line 6525 "configure"
6526 #include "confdefs.h"
6527 #include <sys/types.h>
6532 #ifdef _POSIX_SOURCE
6539 rm -f conftest.$ac_objext
6540 if { (eval echo "$as_me:6540: \"$ac_compile\"") >&5
6541 (eval $ac_compile) 2>&5
6543 echo "$as_me:6543: \$? = $ac_status" >&5
6544 (exit $ac_status); } &&
6545 { ac_try='test -s conftest.$ac_objext'
6546 { (eval echo "$as_me:6546: \"$ac_try\"") >&5
6549 echo "$as_me:6549: \$? = $ac_status" >&5
6550 (exit $ac_status); }; }; then
6553 echo "$as_me: failed program was:" >&5
6554 cat conftest.$ac_ext >&5
6555 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
6557 rm -f conftest.$ac_objext conftest.$ac_ext
6560 echo "${as_me-configure}:6560: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
6562 CFLAGS="$cf_trim_CFLAGS"
6563 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
6565 echo "${as_me-configure}:6565: testing if the second compile does not leave our definition intact error ..." 1>&5
6567 cat >conftest.$ac_ext <<_ACEOF
6568 #line 6568 "configure"
6569 #include "confdefs.h"
6570 #include <sys/types.h>
6575 #ifndef _POSIX_C_SOURCE
6582 rm -f conftest.$ac_objext
6583 if { (eval echo "$as_me:6583: \"$ac_compile\"") >&5
6584 (eval $ac_compile) 2>&5
6586 echo "$as_me:6586: \$? = $ac_status" >&5
6587 (exit $ac_status); } &&
6588 { ac_try='test -s conftest.$ac_objext'
6589 { (eval echo "$as_me:6589: \"$ac_try\"") >&5
6592 echo "$as_me:6592: \$? = $ac_status" >&5
6593 (exit $ac_status); }; }; then
6596 echo "$as_me: failed program was:" >&5
6597 cat conftest.$ac_ext >&5
6598 cf_cv_posix_c_source=no
6600 rm -f conftest.$ac_objext conftest.$ac_ext
6601 CFLAGS="$cf_save_CFLAGS"
6602 CPPFLAGS="$cf_save_CPPFLAGS"
6605 rm -f conftest.$ac_objext conftest.$ac_ext
6608 echo "$as_me:6608: result: $cf_cv_posix_c_source" >&5
6609 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
6611 if test "$cf_cv_posix_c_source" != no ; then
6612 CFLAGS="$cf_trim_CFLAGS"
6613 CPPFLAGS="$cf_trim_CPPFLAGS"
6614 if test "$cf_cv_cc_u_d_options" = yes ; then
6615 cf_temp_posix_c_source=`echo "$cf_cv_posix_c_source" | \
6616 sed -e 's/-D/-U/g' -e 's/=[^ ]*//g'`
6617 CPPFLAGS="$CPPFLAGS $cf_temp_posix_c_source"
6619 CPPFLAGS="$CPPFLAGS $cf_cv_posix_c_source"
6625 # Work around breakage on OS X
6627 echo "$as_me:6627: checking if SIGWINCH is defined" >&5
6628 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
6629 if test "${cf_cv_define_sigwinch+set}" = set; then
6630 echo $ECHO_N "(cached) $ECHO_C" >&6
6633 cat >conftest.$ac_ext <<_ACEOF
6634 #line 6634 "configure"
6635 #include "confdefs.h"
6637 #include <sys/types.h>
6638 #include <sys/signal.h>
6648 rm -f conftest.$ac_objext
6649 if { (eval echo "$as_me:6649: \"$ac_compile\"") >&5
6650 (eval $ac_compile) 2>&5
6652 echo "$as_me:6652: \$? = $ac_status" >&5
6653 (exit $ac_status); } &&
6654 { ac_try='test -s conftest.$ac_objext'
6655 { (eval echo "$as_me:6655: \"$ac_try\"") >&5
6658 echo "$as_me:6658: \$? = $ac_status" >&5
6659 (exit $ac_status); }; }; then
6660 cf_cv_define_sigwinch=yes
6662 echo "$as_me: failed program was:" >&5
6663 cat conftest.$ac_ext >&5
6664 cat >conftest.$ac_ext <<_ACEOF
6665 #line 6665 "configure"
6666 #include "confdefs.h"
6668 #undef _XOPEN_SOURCE
6669 #undef _POSIX_SOURCE
6670 #undef _POSIX_C_SOURCE
6671 #include <sys/types.h>
6672 #include <sys/signal.h>
6682 rm -f conftest.$ac_objext
6683 if { (eval echo "$as_me:6683: \"$ac_compile\"") >&5
6684 (eval $ac_compile) 2>&5
6686 echo "$as_me:6686: \$? = $ac_status" >&5
6687 (exit $ac_status); } &&
6688 { ac_try='test -s conftest.$ac_objext'
6689 { (eval echo "$as_me:6689: \"$ac_try\"") >&5
6692 echo "$as_me:6692: \$? = $ac_status" >&5
6693 (exit $ac_status); }; }; then
6694 cf_cv_define_sigwinch=maybe
6696 echo "$as_me: failed program was:" >&5
6697 cat conftest.$ac_ext >&5
6698 cf_cv_define_sigwinch=no
6700 rm -f conftest.$ac_objext conftest.$ac_ext
6703 rm -f conftest.$ac_objext conftest.$ac_ext
6706 echo "$as_me:6706: result: $cf_cv_define_sigwinch" >&5
6707 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
6709 if test "$cf_cv_define_sigwinch" = maybe ; then
6710 echo "$as_me:6710: checking for actual SIGWINCH definition" >&5
6711 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
6712 if test "${cf_cv_fixup_sigwinch+set}" = set; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6716 cf_cv_fixup_sigwinch=unknown
6718 while test $cf_sigwinch != 1
6720 cat >conftest.$ac_ext <<_ACEOF
6721 #line 6721 "configure"
6722 #include "confdefs.h"
6724 #undef _XOPEN_SOURCE
6725 #undef _POSIX_SOURCE
6726 #undef _POSIX_C_SOURCE
6727 #include <sys/types.h>
6728 #include <sys/signal.h>
6734 #if SIGWINCH != $cf_sigwinch
6742 rm -f conftest.$ac_objext
6743 if { (eval echo "$as_me:6743: \"$ac_compile\"") >&5
6744 (eval $ac_compile) 2>&5
6746 echo "$as_me:6746: \$? = $ac_status" >&5
6747 (exit $ac_status); } &&
6748 { ac_try='test -s conftest.$ac_objext'
6749 { (eval echo "$as_me:6749: \"$ac_try\"") >&5
6752 echo "$as_me:6752: \$? = $ac_status" >&5
6753 (exit $ac_status); }; }; then
6754 cf_cv_fixup_sigwinch=$cf_sigwinch
6757 echo "$as_me: failed program was:" >&5
6758 cat conftest.$ac_ext >&5
6760 rm -f conftest.$ac_objext conftest.$ac_ext
6762 cf_sigwinch=`expr $cf_sigwinch - 1`
6766 echo "$as_me:6766: result: $cf_cv_fixup_sigwinch" >&5
6767 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
6769 if test "$cf_cv_fixup_sigwinch" != unknown ; then
6770 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
6774 # Checks for CODESET support.
6776 echo "$as_me:6776: checking for nl_langinfo and CODESET" >&5
6777 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
6778 if test "${am_cv_langinfo_codeset+set}" = set; then
6779 echo $ECHO_N "(cached) $ECHO_C" >&6
6781 cat >conftest.$ac_ext <<_ACEOF
6782 #line 6782 "configure"
6783 #include "confdefs.h"
6784 #include <langinfo.h>
6788 char* cs = nl_langinfo(CODESET);
6793 rm -f conftest.$ac_objext conftest$ac_exeext
6794 if { (eval echo "$as_me:6794: \"$ac_link\"") >&5
6795 (eval $ac_link) 2>&5
6797 echo "$as_me:6797: \$? = $ac_status" >&5
6798 (exit $ac_status); } &&
6799 { ac_try='test -s conftest$ac_exeext'
6800 { (eval echo "$as_me:6800: \"$ac_try\"") >&5
6803 echo "$as_me:6803: \$? = $ac_status" >&5
6804 (exit $ac_status); }; }; then
6805 am_cv_langinfo_codeset=yes
6807 echo "$as_me: failed program was:" >&5
6808 cat conftest.$ac_ext >&5
6809 am_cv_langinfo_codeset=no
6811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6814 echo "$as_me:6814: result: $am_cv_langinfo_codeset" >&5
6815 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
6816 if test $am_cv_langinfo_codeset = yes; then
6818 cat >>confdefs.h <<\EOF
6819 #define HAVE_LANGINFO_CODESET 1
6824 # use these variables to work around a defect in gcc's fixincludes.
6828 echo "$as_me:6828: checking if you want wide-character code" >&5
6829 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
6831 # Check whether --enable-widec or --disable-widec was given.
6832 if test "${enable_widec+set}" = set; then
6833 enableval="$enable_widec"
6834 with_widec=$enableval
6838 echo "$as_me:6838: result: $with_widec" >&5
6839 echo "${ECHO_T}$with_widec" >&6
6840 if test "$with_widec" = yes ; then
6841 LIB_SUFFIX="w${LIB_SUFFIX}"
6842 cat >>confdefs.h <<\EOF
6843 #define USE_WIDEC_SUPPORT 1
6846 echo "$as_me:6846: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
6847 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
6848 cat >conftest.$ac_ext <<_ACEOF
6849 #line 6849 "configure"
6850 #include "confdefs.h"
6851 #include <sys/types.h>
6857 #ifndef _XOPEN_SOURCE_EXTENDED
6864 rm -f conftest.$ac_objext
6865 if { (eval echo "$as_me:6865: \"$ac_compile\"") >&5
6866 (eval $ac_compile) 2>&5
6868 echo "$as_me:6868: \$? = $ac_status" >&5
6869 (exit $ac_status); } &&
6870 { ac_try='test -s conftest.$ac_objext'
6871 { (eval echo "$as_me:6871: \"$ac_try\"") >&5
6874 echo "$as_me:6874: \$? = $ac_status" >&5
6875 (exit $ac_status); }; }; then
6878 echo "$as_me: failed program was:" >&5
6879 cat conftest.$ac_ext >&5
6882 rm -f conftest.$ac_objext conftest.$ac_ext
6883 echo "$as_me:6883: result: $cf_result" >&5
6884 echo "${ECHO_T}$cf_result" >&6
6886 if test "$cf_result" = yes ; then
6887 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
6888 elif test "x" != "x" ; then
6889 echo "$as_me:6889: checking checking for compatible value versus " >&5
6890 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
6891 cat >conftest.$ac_ext <<_ACEOF
6892 #line 6892 "configure"
6893 #include "confdefs.h"
6894 #include <sys/types.h>
6900 #if _XOPEN_SOURCE_EXTENDED- < 0
6907 rm -f conftest.$ac_objext
6908 if { (eval echo "$as_me:6908: \"$ac_compile\"") >&5
6909 (eval $ac_compile) 2>&5
6911 echo "$as_me:6911: \$? = $ac_status" >&5
6912 (exit $ac_status); } &&
6913 { ac_try='test -s conftest.$ac_objext'
6914 { (eval echo "$as_me:6914: \"$ac_try\"") >&5
6917 echo "$as_me:6917: \$? = $ac_status" >&5
6918 (exit $ac_status); }; }; then
6921 echo "$as_me: failed program was:" >&5
6922 cat conftest.$ac_ext >&5
6925 rm -f conftest.$ac_objext conftest.$ac_ext
6926 echo "$as_me:6926: result: $cf_result" >&5
6927 echo "${ECHO_T}$cf_result" >&6
6928 if test "$cf_result" = no ; then
6929 # perhaps we can override it - try...
6930 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
6935 NCURSES_CH_T=cchar_t
6937 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
6939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6940 echo "$as_me:6940: checking for $ac_func" >&5
6941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6942 if eval "test \"\${$as_ac_var+set}\" = set"; then
6943 echo $ECHO_N "(cached) $ECHO_C" >&6
6945 cat >conftest.$ac_ext <<_ACEOF
6946 #line 6946 "configure"
6947 #include "confdefs.h"
6948 /* System header to define __stub macros and hopefully few prototypes,
6949 which can conflict with char $ac_func (); below. */
6951 /* Override any gcc2 internal prototype to avoid an error. */
6955 /* We use char because int might match the return type of a gcc2
6956 builtin and then its argument prototype would still apply. */
6963 /* The GNU C library defines this for functions which it implements
6964 to always fail with ENOSYS. Some functions are actually named
6965 something starting with __ and the normal name is an alias. */
6966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6976 rm -f conftest.$ac_objext conftest$ac_exeext
6977 if { (eval echo "$as_me:6977: \"$ac_link\"") >&5
6978 (eval $ac_link) 2>&5
6980 echo "$as_me:6980: \$? = $ac_status" >&5
6981 (exit $ac_status); } &&
6982 { ac_try='test -s conftest$ac_exeext'
6983 { (eval echo "$as_me:6983: \"$ac_try\"") >&5
6986 echo "$as_me:6986: \$? = $ac_status" >&5
6987 (exit $ac_status); }; }; then
6988 eval "$as_ac_var=yes"
6990 echo "$as_me: failed program was:" >&5
6991 cat conftest.$ac_ext >&5
6992 eval "$as_ac_var=no"
6994 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6996 echo "$as_me:6996: result: `eval echo '${'$as_ac_var'}'`" >&5
6997 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6998 if test `eval echo '${'$as_ac_var'}'` = yes; then
6999 cat >>confdefs.h <<EOF
7000 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7006 if test "$ac_cv_func_putwc" != yes ; then
7008 echo "$as_me:7008: checking for multibyte character support" >&5
7009 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
7010 if test "${cf_cv_utf8_lib+set}" = set; then
7011 echo $ECHO_N "(cached) $ECHO_C" >&6
7014 cf_save_LIBS="$LIBS"
7015 cat >conftest.$ac_ext <<_ACEOF
7016 #line 7016 "configure"
7017 #include "confdefs.h"
7028 rm -f conftest.$ac_objext conftest$ac_exeext
7029 if { (eval echo "$as_me:7029: \"$ac_link\"") >&5
7030 (eval $ac_link) 2>&5
7032 echo "$as_me:7032: \$? = $ac_status" >&5
7033 (exit $ac_status); } &&
7034 { ac_try='test -s conftest$ac_exeext'
7035 { (eval echo "$as_me:7035: \"$ac_try\"") >&5
7038 echo "$as_me:7038: \$? = $ac_status" >&5
7039 (exit $ac_status); }; }; then
7042 echo "$as_me: failed program was:" >&5
7043 cat conftest.$ac_ext >&5
7045 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
7046 # will be set on completion of the AC_TRY_LINK below.
7047 cf_cv_header_path_utf8=
7048 cf_cv_library_path_utf8=
7050 echo "${as_me-configure}:7050: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
7052 cat >conftest.$ac_ext <<_ACEOF
7053 #line 7053 "configure"
7054 #include "confdefs.h"
7056 #include <libutf8.h>
7065 rm -f conftest.$ac_objext conftest$ac_exeext
7066 if { (eval echo "$as_me:7066: \"$ac_link\"") >&5
7067 (eval $ac_link) 2>&5
7069 echo "$as_me:7069: \$? = $ac_status" >&5
7070 (exit $ac_status); } &&
7071 { ac_try='test -s conftest$ac_exeext'
7072 { (eval echo "$as_me:7072: \"$ac_try\"") >&5
7075 echo "$as_me:7075: \$? = $ac_status" >&5
7076 (exit $ac_status); }; }; then
7077 cf_cv_find_linkage_utf8=yes
7079 echo "$as_me: failed program was:" >&5
7080 cat conftest.$ac_ext >&5
7082 cf_cv_find_linkage_utf8=no
7084 echo "${as_me-configure}:7084: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
7086 cf_save_CPPFLAGS="$CPPFLAGS"
7087 cf_test_CPPFLAGS="$CPPFLAGS"
7089 cf_header_path_list=""
7090 if test -n "${CFLAGS}${CPPFLAGS}" ; then
7091 for cf_header_path in $CPPFLAGS $CFLAGS
7093 case $cf_header_path in #(vi
7095 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
7097 test "$cf_header_path" != "NONE" && \
7098 test -d "$cf_header_path" && \
7100 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
7101 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
7102 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
7103 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
7104 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
7105 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
7108 cf_header_path_list="$cf_header_path_list $cf_search"
7116 test "/usr" != "$prefix" && \
7118 (test $prefix = NONE || test -d $prefix) && {
7119 test -n "$verbose" && echo " ... testing for include-directories under /usr"
7120 test -d /usr/include && cf_search="$cf_search /usr/include"
7121 test -d /usr/include/utf8 && cf_search="$cf_search /usr/include/utf8"
7122 test -d /usr/include/utf8/include && cf_search="$cf_search /usr/include/utf8/include"
7123 test -d /usr/utf8/include && cf_search="$cf_search /usr/utf8/include"
7124 test -d /usr/utf8/include/utf8 && cf_search="$cf_search /usr/utf8/include/utf8"
7127 test "$prefix" != "NONE" && \
7128 test -d "$prefix" && \
7130 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
7131 test -d $prefix/include && cf_search="$cf_search $prefix/include"
7132 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
7133 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
7134 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
7135 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
7138 test "/usr/local" != "$prefix" && \
7139 test -d "/usr/local" && \
7140 (test $prefix = NONE || test -d $prefix) && {
7141 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
7142 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
7143 test -d /usr/local/include/utf8 && cf_search="$cf_search /usr/local/include/utf8"
7144 test -d /usr/local/include/utf8/include && cf_search="$cf_search /usr/local/include/utf8/include"
7145 test -d /usr/local/utf8/include && cf_search="$cf_search /usr/local/utf8/include"
7146 test -d /usr/local/utf8/include/utf8 && cf_search="$cf_search /usr/local/utf8/include/utf8"
7149 test "/opt" != "$prefix" && \
7151 (test $prefix = NONE || test -d $prefix) && {
7152 test -n "$verbose" && echo " ... testing for include-directories under /opt"
7153 test -d /opt/include && cf_search="$cf_search /opt/include"
7154 test -d /opt/include/utf8 && cf_search="$cf_search /opt/include/utf8"
7155 test -d /opt/include/utf8/include && cf_search="$cf_search /opt/include/utf8/include"
7156 test -d /opt/utf8/include && cf_search="$cf_search /opt/utf8/include"
7157 test -d /opt/utf8/include/utf8 && cf_search="$cf_search /opt/utf8/include/utf8"
7160 test "$HOME" != "$prefix" && \
7161 test -d "$HOME" && \
7162 (test $prefix = NONE || test -d $prefix) && {
7163 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
7164 test -d $HOME/include && cf_search="$cf_search $HOME/include"
7165 test -d $HOME/include/utf8 && cf_search="$cf_search $HOME/include/utf8"
7166 test -d $HOME/include/utf8/include && cf_search="$cf_search $HOME/include/utf8/include"
7167 test -d $HOME/utf8/include && cf_search="$cf_search $HOME/utf8/include"
7168 test -d $HOME/utf8/include/utf8 && cf_search="$cf_search $HOME/utf8/include/utf8"
7171 test "$includedir" != NONE && \
7172 test "$includedir" != "/usr/include" && \
7173 test -d "$includedir" && {
7174 test -d $includedir && cf_search="$cf_search $includedir"
7175 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
7178 test "$oldincludedir" != NONE && \
7179 test "$oldincludedir" != "/usr/include" && \
7180 test -d "$oldincludedir" && {
7181 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
7182 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
7185 cf_search="$cf_header_path_list $cf_search"
7187 for cf_cv_header_path_utf8 in $cf_search
7189 if test -d $cf_cv_header_path_utf8 ; then
7190 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
7192 echo "${as_me-configure}:7192: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
7194 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
7195 cat >conftest.$ac_ext <<_ACEOF
7196 #line 7196 "configure"
7197 #include "confdefs.h"
7199 #include <libutf8.h>
7208 rm -f conftest.$ac_objext
7209 if { (eval echo "$as_me:7209: \"$ac_compile\"") >&5
7210 (eval $ac_compile) 2>&5
7212 echo "$as_me:7212: \$? = $ac_status" >&5
7213 (exit $ac_status); } &&
7214 { ac_try='test -s conftest.$ac_objext'
7215 { (eval echo "$as_me:7215: \"$ac_try\"") >&5
7218 echo "$as_me:7218: \$? = $ac_status" >&5
7219 (exit $ac_status); }; }; then
7221 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
7223 echo "${as_me-configure}:7223: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
7225 cf_cv_find_linkage_utf8=maybe
7226 cf_test_CPPFLAGS="$CPPFLAGS"
7229 echo "$as_me: failed program was:" >&5
7230 cat conftest.$ac_ext >&5
7232 CPPFLAGS="$cf_save_CPPFLAGS"
7235 rm -f conftest.$ac_objext conftest.$ac_ext
7239 if test "$cf_cv_find_linkage_utf8" = maybe ; then
7241 echo "${as_me-configure}:7241: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
7243 cf_save_LIBS="$LIBS"
7244 cf_save_LDFLAGS="$LDFLAGS"
7246 if test "$cf_cv_find_linkage_utf8" != yes ; then
7248 cf_library_path_list=""
7249 if test -n "${LDFLAGS}${LIBS}" ; then
7250 for cf_library_path in $LDFLAGS $LIBS
7252 case $cf_library_path in #(vi
7254 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
7256 test "$cf_library_path" != "NONE" && \
7257 test -d "$cf_library_path" && \
7259 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
7260 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
7261 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
7262 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
7263 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
7264 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
7267 cf_library_path_list="$cf_library_path_list $cf_search"
7275 test "/usr" != "$prefix" && \
7277 (test $prefix = NONE || test -d $prefix) && {
7278 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
7279 test -d /usr/lib && cf_search="$cf_search /usr/lib"
7280 test -d /usr/lib/utf8 && cf_search="$cf_search /usr/lib/utf8"
7281 test -d /usr/lib/utf8/lib && cf_search="$cf_search /usr/lib/utf8/lib"
7282 test -d /usr/utf8/lib && cf_search="$cf_search /usr/utf8/lib"
7283 test -d /usr/utf8/lib/utf8 && cf_search="$cf_search /usr/utf8/lib/utf8"
7286 test "$prefix" != "NONE" && \
7287 test -d "$prefix" && \
7289 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
7290 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
7291 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
7292 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
7293 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
7294 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
7297 test "/usr/local" != "$prefix" && \
7298 test -d "/usr/local" && \
7299 (test $prefix = NONE || test -d $prefix) && {
7300 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
7301 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
7302 test -d /usr/local/lib/utf8 && cf_search="$cf_search /usr/local/lib/utf8"
7303 test -d /usr/local/lib/utf8/lib && cf_search="$cf_search /usr/local/lib/utf8/lib"
7304 test -d /usr/local/utf8/lib && cf_search="$cf_search /usr/local/utf8/lib"
7305 test -d /usr/local/utf8/lib/utf8 && cf_search="$cf_search /usr/local/utf8/lib/utf8"
7308 test "/opt" != "$prefix" && \
7310 (test $prefix = NONE || test -d $prefix) && {
7311 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
7312 test -d /opt/lib && cf_search="$cf_search /opt/lib"
7313 test -d /opt/lib/utf8 && cf_search="$cf_search /opt/lib/utf8"
7314 test -d /opt/lib/utf8/lib && cf_search="$cf_search /opt/lib/utf8/lib"
7315 test -d /opt/utf8/lib && cf_search="$cf_search /opt/utf8/lib"
7316 test -d /opt/utf8/lib/utf8 && cf_search="$cf_search /opt/utf8/lib/utf8"
7319 test "$HOME" != "$prefix" && \
7320 test -d "$HOME" && \
7321 (test $prefix = NONE || test -d $prefix) && {
7322 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
7323 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
7324 test -d $HOME/lib/utf8 && cf_search="$cf_search $HOME/lib/utf8"
7325 test -d $HOME/lib/utf8/lib && cf_search="$cf_search $HOME/lib/utf8/lib"
7326 test -d $HOME/utf8/lib && cf_search="$cf_search $HOME/utf8/lib"
7327 test -d $HOME/utf8/lib/utf8 && cf_search="$cf_search $HOME/utf8/lib/utf8"
7330 cf_search="$cf_library_path_list $cf_search"
7332 for cf_cv_library_path_utf8 in $cf_search
7334 if test -d $cf_cv_library_path_utf8 ; then
7335 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
7337 echo "${as_me-configure}:7337: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
7339 CPPFLAGS="$cf_test_CPPFLAGS"
7340 LIBS="-lutf8 $cf_save_LIBS"
7341 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
7342 cat >conftest.$ac_ext <<_ACEOF
7343 #line 7343 "configure"
7344 #include "confdefs.h"
7346 #include <libutf8.h>
7355 rm -f conftest.$ac_objext conftest$ac_exeext
7356 if { (eval echo "$as_me:7356: \"$ac_link\"") >&5
7357 (eval $ac_link) 2>&5
7359 echo "$as_me:7359: \$? = $ac_status" >&5
7360 (exit $ac_status); } &&
7361 { ac_try='test -s conftest$ac_exeext'
7362 { (eval echo "$as_me:7362: \"$ac_try\"") >&5
7365 echo "$as_me:7365: \$? = $ac_status" >&5
7366 (exit $ac_status); }; }; then
7368 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
7370 echo "${as_me-configure}:7370: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
7372 cf_cv_find_linkage_utf8=yes
7373 cf_cv_library_file_utf8="-lutf8"
7376 echo "$as_me: failed program was:" >&5
7377 cat conftest.$ac_ext >&5
7379 CPPFLAGS="$cf_save_CPPFLAGS"
7380 LIBS="$cf_save_LIBS"
7381 LDFLAGS="$cf_save_LDFLAGS"
7384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7387 LIBS="$cf_save_LIBS"
7388 CPPFLAGS="$cf_save_CPPFLAGS"
7389 LDFLAGS="$cf_save_LDFLAGS"
7393 cf_cv_find_linkage_utf8=no
7397 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7399 if test "$cf_cv_find_linkage_utf8" = yes ; then
7400 cf_cv_utf8_lib=add-on
7406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7408 echo "$as_me:7408: result: $cf_cv_utf8_lib" >&5
7409 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
7411 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
7413 if test "$cf_cv_utf8_lib" = "add-on" ; then
7414 cat >>confdefs.h <<\EOF
7415 #define HAVE_LIBUTF8_H 1
7418 if test -n "$cf_cv_header_path_utf8" ; then
7419 for cf_add_incdir in $cf_cv_header_path_utf8
7421 while test $cf_add_incdir != /usr/include
7423 if test -d $cf_add_incdir
7426 if test -n "$CFLAGS$CPPFLAGS" ; then
7427 # a loop is needed to ensure we can add subdirs of existing dirs
7428 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
7429 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7430 cf_have_incdir=yes; break
7435 if test "$cf_have_incdir" = no ; then
7436 if test "$cf_add_incdir" = /usr/local/include ; then
7437 if test "$GCC" = yes
7439 cf_save_CPPFLAGS=$CPPFLAGS
7440 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7441 cat >conftest.$ac_ext <<_ACEOF
7442 #line 7442 "configure"
7443 #include "confdefs.h"
7453 rm -f conftest.$ac_objext
7454 if { (eval echo "$as_me:7454: \"$ac_compile\"") >&5
7455 (eval $ac_compile) 2>&5
7457 echo "$as_me:7457: \$? = $ac_status" >&5
7458 (exit $ac_status); } &&
7459 { ac_try='test -s conftest.$ac_objext'
7460 { (eval echo "$as_me:7460: \"$ac_try\"") >&5
7463 echo "$as_me:7463: \$? = $ac_status" >&5
7464 (exit $ac_status); }; }; then
7467 echo "$as_me: failed program was:" >&5
7468 cat conftest.$ac_ext >&5
7471 rm -f conftest.$ac_objext conftest.$ac_ext
7472 CPPFLAGS=$cf_save_CPPFLAGS
7477 if test "$cf_have_incdir" = no ; then
7478 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
7480 echo "${as_me-configure}:7480: testing adding $cf_add_incdir to include-path ..." 1>&5
7482 CPPFLAGS="-I$cf_add_incdir $CPPFLAGS"
7484 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
7485 test "$cf_top_incdir" = "$cf_add_incdir" && break
7486 cf_add_incdir="$cf_top_incdir"
7495 if test -n "$cf_cv_library_path_utf8" ; then
7496 for cf_add_libdir in $cf_cv_library_path_utf8
7498 if test $cf_add_libdir = /usr/lib ; then
7500 elif test -d $cf_add_libdir
7503 if test -n "$LDFLAGS$LIBS" ; then
7504 # a loop is needed to ensure we can add subdirs of existing dirs
7505 for cf_test_libdir in $LDFLAGS $LIBS ; do
7506 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
7507 cf_have_libdir=yes; break
7511 if test "$cf_have_libdir" = no ; then
7512 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
7514 echo "${as_me-configure}:7514: testing adding $cf_add_libdir to library-path ..." 1>&5
7516 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
7525 if test "$cf_cv_utf8_lib" != no ; then
7530 # This is needed on Tru64 5.0 to declare mbstate_t
7531 echo "$as_me:7531: checking if we must include wchar.h to declare mbstate_t" >&5
7532 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
7533 if test "${cf_cv_mbstate_t+set}" = set; then
7534 echo $ECHO_N "(cached) $ECHO_C" >&6
7537 cat >conftest.$ac_ext <<_ACEOF
7538 #line 7538 "configure"
7539 #include "confdefs.h"
7544 #ifdef HAVE_LIBUTF8_H
7545 #include <libutf8.h>
7555 rm -f conftest.$ac_objext
7556 if { (eval echo "$as_me:7556: \"$ac_compile\"") >&5
7557 (eval $ac_compile) 2>&5
7559 echo "$as_me:7559: \$? = $ac_status" >&5
7560 (exit $ac_status); } &&
7561 { ac_try='test -s conftest.$ac_objext'
7562 { (eval echo "$as_me:7562: \"$ac_try\"") >&5
7565 echo "$as_me:7565: \$? = $ac_status" >&5
7566 (exit $ac_status); }; }; then
7569 echo "$as_me: failed program was:" >&5
7570 cat conftest.$ac_ext >&5
7571 cat >conftest.$ac_ext <<_ACEOF
7572 #line 7572 "configure"
7573 #include "confdefs.h"
7579 #ifdef HAVE_LIBUTF8_H
7580 #include <libutf8.h>
7590 rm -f conftest.$ac_objext
7591 if { (eval echo "$as_me:7591: \"$ac_compile\"") >&5
7592 (eval $ac_compile) 2>&5
7594 echo "$as_me:7594: \$? = $ac_status" >&5
7595 (exit $ac_status); } &&
7596 { ac_try='test -s conftest.$ac_objext'
7597 { (eval echo "$as_me:7597: \"$ac_try\"") >&5
7600 echo "$as_me:7600: \$? = $ac_status" >&5
7601 (exit $ac_status); }; }; then
7604 echo "$as_me: failed program was:" >&5
7605 cat conftest.$ac_ext >&5
7606 cf_cv_mbstate_t=unknown
7608 rm -f conftest.$ac_objext conftest.$ac_ext
7610 rm -f conftest.$ac_objext conftest.$ac_ext
7612 echo "$as_me:7612: result: $cf_cv_mbstate_t" >&5
7613 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
7615 if test "$cf_cv_mbstate_t" = yes ; then
7616 cat >>confdefs.h <<\EOF
7617 #define NEED_WCHAR_H 1
7623 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
7624 if test "$cf_cv_mbstate_t" = unknown ; then
7628 # This is needed on Tru64 5.0 to declare wchar_t
7629 echo "$as_me:7629: checking if we must include wchar.h to declare wchar_t" >&5
7630 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
7631 if test "${cf_cv_wchar_t+set}" = set; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
7635 cat >conftest.$ac_ext <<_ACEOF
7636 #line 7636 "configure"
7637 #include "confdefs.h"
7642 #ifdef HAVE_LIBUTF8_H
7643 #include <libutf8.h>
7653 rm -f conftest.$ac_objext
7654 if { (eval echo "$as_me:7654: \"$ac_compile\"") >&5
7655 (eval $ac_compile) 2>&5
7657 echo "$as_me:7657: \$? = $ac_status" >&5
7658 (exit $ac_status); } &&
7659 { ac_try='test -s conftest.$ac_objext'
7660 { (eval echo "$as_me:7660: \"$ac_try\"") >&5
7663 echo "$as_me:7663: \$? = $ac_status" >&5
7664 (exit $ac_status); }; }; then
7667 echo "$as_me: failed program was:" >&5
7668 cat conftest.$ac_ext >&5
7669 cat >conftest.$ac_ext <<_ACEOF
7670 #line 7670 "configure"
7671 #include "confdefs.h"
7677 #ifdef HAVE_LIBUTF8_H
7678 #include <libutf8.h>
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
7702 echo "$as_me: failed program was:" >&5
7703 cat conftest.$ac_ext >&5
7704 cf_cv_wchar_t=unknown
7706 rm -f conftest.$ac_objext conftest.$ac_ext
7708 rm -f conftest.$ac_objext conftest.$ac_ext
7710 echo "$as_me:7710: result: $cf_cv_wchar_t" >&5
7711 echo "${ECHO_T}$cf_cv_wchar_t" >&6
7713 if test "$cf_cv_wchar_t" = yes ; then
7714 cat >>confdefs.h <<\EOF
7715 #define NEED_WCHAR_H 1
7721 # if we do not find wchar_t in either place, use substitution to provide a fallback.
7722 if test "$cf_cv_wchar_t" = unknown ; then
7726 # if we find wchar_t in either place, use substitution to provide a fallback.
7727 if test "$cf_cv_wchar_t" != unknown ; then
7728 NCURSES_OK_WCHAR_T=1
7731 # This is needed on Tru64 5.0 to declare wint_t
7732 echo "$as_me:7732: checking if we must include wchar.h to declare wint_t" >&5
7733 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
7734 if test "${cf_cv_wint_t+set}" = set; then
7735 echo $ECHO_N "(cached) $ECHO_C" >&6
7738 cat >conftest.$ac_ext <<_ACEOF
7739 #line 7739 "configure"
7740 #include "confdefs.h"
7745 #ifdef HAVE_LIBUTF8_H
7746 #include <libutf8.h>
7756 rm -f conftest.$ac_objext
7757 if { (eval echo "$as_me:7757: \"$ac_compile\"") >&5
7758 (eval $ac_compile) 2>&5
7760 echo "$as_me:7760: \$? = $ac_status" >&5
7761 (exit $ac_status); } &&
7762 { ac_try='test -s conftest.$ac_objext'
7763 { (eval echo "$as_me:7763: \"$ac_try\"") >&5
7766 echo "$as_me:7766: \$? = $ac_status" >&5
7767 (exit $ac_status); }; }; then
7770 echo "$as_me: failed program was:" >&5
7771 cat conftest.$ac_ext >&5
7772 cat >conftest.$ac_ext <<_ACEOF
7773 #line 7773 "configure"
7774 #include "confdefs.h"
7780 #ifdef HAVE_LIBUTF8_H
7781 #include <libutf8.h>
7791 rm -f conftest.$ac_objext
7792 if { (eval echo "$as_me:7792: \"$ac_compile\"") >&5
7793 (eval $ac_compile) 2>&5
7795 echo "$as_me:7795: \$? = $ac_status" >&5
7796 (exit $ac_status); } &&
7797 { ac_try='test -s conftest.$ac_objext'
7798 { (eval echo "$as_me:7798: \"$ac_try\"") >&5
7801 echo "$as_me:7801: \$? = $ac_status" >&5
7802 (exit $ac_status); }; }; then
7805 echo "$as_me: failed program was:" >&5
7806 cat conftest.$ac_ext >&5
7807 cf_cv_wint_t=unknown
7809 rm -f conftest.$ac_objext conftest.$ac_ext
7811 rm -f conftest.$ac_objext conftest.$ac_ext
7813 echo "$as_me:7813: result: $cf_cv_wint_t" >&5
7814 echo "${ECHO_T}$cf_cv_wint_t" >&6
7816 if test "$cf_cv_wint_t" = yes ; then
7817 cat >>confdefs.h <<\EOF
7818 #define NEED_WCHAR_H 1
7824 # if we do not find wint_t in either place, use substitution to provide a fallback.
7825 if test "$cf_cv_wint_t" = unknown ; then
7829 # if we find wint_t in either place, use substitution to provide a fallback.
7830 if test "$cf_cv_wint_t" != unknown ; then
7834 if test "$NCURSES_MBSTATE_T" != 0; then
7835 cat >>confdefs.h <<\EOF
7836 #define NEED_MBSTATE_T_DEF 1
7842 ### use option --disable-lp64 to allow long chtype
7843 case $cf_cv_abi_version in
7845 default_with_lp64=no
7848 default_with_lp64=yes
7852 echo "$as_me:7852: checking whether to enable _LP64 definition in curses.h" >&5
7853 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
7855 # Check whether --enable-lp64 or --disable-lp64 was given.
7856 if test "${enable_lp64+set}" = set; then
7857 enableval="$enable_lp64"
7858 with_lp64=$enableval
7860 with_lp64=$default_with_lp64
7862 echo "$as_me:7862: result: $with_lp64" >&5
7863 echo "${ECHO_T}$with_lp64" >&6
7865 if test "$with_lp64" = yes ; then
7871 # Check whether --enable-largefile or --disable-largefile was given.
7872 if test "${enable_largefile+set}" = set; then
7873 enableval="$enable_largefile"
7876 if test "$enable_largefile" != no; then
7878 echo "$as_me:7878: checking for special C compiler options needed for large files" >&5
7879 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
7880 if test "${ac_cv_sys_largefile_CC+set}" = set; then
7881 echo $ECHO_N "(cached) $ECHO_C" >&6
7883 ac_cv_sys_largefile_CC=no
7884 if test "$GCC" != yes; then
7887 # IRIX 6.2 and later do not support large files by default,
7888 # so use the C compiler's -n32 option if that helps.
7889 cat >conftest.$ac_ext <<_ACEOF
7890 #line 7890 "configure"
7891 #include "confdefs.h"
7892 #include <sys/types.h>
7893 /* Check that off_t can represent 2**63 - 1 correctly.
7894 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7895 since some C++ compilers masquerading as C compilers
7896 incorrectly reject 9223372036854775807. */
7897 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7898 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7899 && LARGE_OFF_T % 2147483647 == 1)
7909 rm -f conftest.$ac_objext
7910 if { (eval echo "$as_me:7910: \"$ac_compile\"") >&5
7911 (eval $ac_compile) 2>&5
7913 echo "$as_me:7913: \$? = $ac_status" >&5
7914 (exit $ac_status); } &&
7915 { ac_try='test -s conftest.$ac_objext'
7916 { (eval echo "$as_me:7916: \"$ac_try\"") >&5
7919 echo "$as_me:7919: \$? = $ac_status" >&5
7920 (exit $ac_status); }; }; then
7923 echo "$as_me: failed program was:" >&5
7924 cat conftest.$ac_ext >&5
7926 rm -f conftest.$ac_objext
7928 rm -f conftest.$ac_objext
7929 if { (eval echo "$as_me:7929: \"$ac_compile\"") >&5
7930 (eval $ac_compile) 2>&5
7932 echo "$as_me:7932: \$? = $ac_status" >&5
7933 (exit $ac_status); } &&
7934 { ac_try='test -s conftest.$ac_objext'
7935 { (eval echo "$as_me:7935: \"$ac_try\"") >&5
7938 echo "$as_me:7938: \$? = $ac_status" >&5
7939 (exit $ac_status); }; }; then
7940 ac_cv_sys_largefile_CC=' -n32'; break
7942 echo "$as_me: failed program was:" >&5
7943 cat conftest.$ac_ext >&5
7945 rm -f conftest.$ac_objext
7949 rm -f conftest.$ac_ext
7952 echo "$as_me:7952: result: $ac_cv_sys_largefile_CC" >&5
7953 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
7954 if test "$ac_cv_sys_largefile_CC" != no; then
7955 CC=$CC$ac_cv_sys_largefile_CC
7958 echo "$as_me:7958: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7959 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
7960 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7961 echo $ECHO_N "(cached) $ECHO_C" >&6
7964 ac_cv_sys_file_offset_bits=no
7965 cat >conftest.$ac_ext <<_ACEOF
7966 #line 7966 "configure"
7967 #include "confdefs.h"
7968 #include <sys/types.h>
7969 /* Check that off_t can represent 2**63 - 1 correctly.
7970 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7971 since some C++ compilers masquerading as C compilers
7972 incorrectly reject 9223372036854775807. */
7973 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7974 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7975 && LARGE_OFF_T % 2147483647 == 1)
7985 rm -f conftest.$ac_objext
7986 if { (eval echo "$as_me:7986: \"$ac_compile\"") >&5
7987 (eval $ac_compile) 2>&5
7989 echo "$as_me:7989: \$? = $ac_status" >&5
7990 (exit $ac_status); } &&
7991 { ac_try='test -s conftest.$ac_objext'
7992 { (eval echo "$as_me:7992: \"$ac_try\"") >&5
7995 echo "$as_me:7995: \$? = $ac_status" >&5
7996 (exit $ac_status); }; }; then
7999 echo "$as_me: failed program was:" >&5
8000 cat conftest.$ac_ext >&5
8002 rm -f conftest.$ac_objext conftest.$ac_ext
8003 cat >conftest.$ac_ext <<_ACEOF
8004 #line 8004 "configure"
8005 #include "confdefs.h"
8006 #define _FILE_OFFSET_BITS 64
8007 #include <sys/types.h>
8008 /* Check that off_t can represent 2**63 - 1 correctly.
8009 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8010 since some C++ compilers masquerading as C compilers
8011 incorrectly reject 9223372036854775807. */
8012 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8013 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8014 && LARGE_OFF_T % 2147483647 == 1)
8024 rm -f conftest.$ac_objext
8025 if { (eval echo "$as_me:8025: \"$ac_compile\"") >&5
8026 (eval $ac_compile) 2>&5
8028 echo "$as_me:8028: \$? = $ac_status" >&5
8029 (exit $ac_status); } &&
8030 { ac_try='test -s conftest.$ac_objext'
8031 { (eval echo "$as_me:8031: \"$ac_try\"") >&5
8034 echo "$as_me:8034: \$? = $ac_status" >&5
8035 (exit $ac_status); }; }; then
8036 ac_cv_sys_file_offset_bits=64; break
8038 echo "$as_me: failed program was:" >&5
8039 cat conftest.$ac_ext >&5
8041 rm -f conftest.$ac_objext conftest.$ac_ext
8045 echo "$as_me:8045: result: $ac_cv_sys_file_offset_bits" >&5
8046 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
8047 if test "$ac_cv_sys_file_offset_bits" != no; then
8049 cat >>confdefs.h <<EOF
8050 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8055 echo "$as_me:8055: checking for _LARGE_FILES value needed for large files" >&5
8056 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
8057 if test "${ac_cv_sys_large_files+set}" = set; then
8058 echo $ECHO_N "(cached) $ECHO_C" >&6
8061 ac_cv_sys_large_files=no
8062 cat >conftest.$ac_ext <<_ACEOF
8063 #line 8063 "configure"
8064 #include "confdefs.h"
8065 #include <sys/types.h>
8066 /* Check that off_t can represent 2**63 - 1 correctly.
8067 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8068 since some C++ compilers masquerading as C compilers
8069 incorrectly reject 9223372036854775807. */
8070 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8071 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8072 && LARGE_OFF_T % 2147483647 == 1)
8082 rm -f conftest.$ac_objext
8083 if { (eval echo "$as_me:8083: \"$ac_compile\"") >&5
8084 (eval $ac_compile) 2>&5
8086 echo "$as_me:8086: \$? = $ac_status" >&5
8087 (exit $ac_status); } &&
8088 { ac_try='test -s conftest.$ac_objext'
8089 { (eval echo "$as_me:8089: \"$ac_try\"") >&5
8092 echo "$as_me:8092: \$? = $ac_status" >&5
8093 (exit $ac_status); }; }; then
8096 echo "$as_me: failed program was:" >&5
8097 cat conftest.$ac_ext >&5
8099 rm -f conftest.$ac_objext conftest.$ac_ext
8100 cat >conftest.$ac_ext <<_ACEOF
8101 #line 8101 "configure"
8102 #include "confdefs.h"
8103 #define _LARGE_FILES 1
8104 #include <sys/types.h>
8105 /* Check that off_t can represent 2**63 - 1 correctly.
8106 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8107 since some C++ compilers masquerading as C compilers
8108 incorrectly reject 9223372036854775807. */
8109 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8110 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8111 && LARGE_OFF_T % 2147483647 == 1)
8121 rm -f conftest.$ac_objext
8122 if { (eval echo "$as_me:8122: \"$ac_compile\"") >&5
8123 (eval $ac_compile) 2>&5
8125 echo "$as_me:8125: \$? = $ac_status" >&5
8126 (exit $ac_status); } &&
8127 { ac_try='test -s conftest.$ac_objext'
8128 { (eval echo "$as_me:8128: \"$ac_try\"") >&5
8131 echo "$as_me:8131: \$? = $ac_status" >&5
8132 (exit $ac_status); }; }; then
8133 ac_cv_sys_large_files=1; break
8135 echo "$as_me: failed program was:" >&5
8136 cat conftest.$ac_ext >&5
8138 rm -f conftest.$ac_objext conftest.$ac_ext
8142 echo "$as_me:8142: result: $ac_cv_sys_large_files" >&5
8143 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
8144 if test "$ac_cv_sys_large_files" != no; then
8146 cat >>confdefs.h <<EOF
8147 #define _LARGE_FILES $ac_cv_sys_large_files
8154 if test "$enable_largefile" != no ; then
8155 echo "$as_me:8155: checking for _LARGEFILE_SOURCE value needed for large files" >&5
8156 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
8157 if test "${ac_cv_sys_largefile_source+set}" = set; then
8158 echo $ECHO_N "(cached) $ECHO_C" >&6
8161 ac_cv_sys_largefile_source=no
8162 cat >conftest.$ac_ext <<_ACEOF
8163 #line 8163 "configure"
8164 #include "confdefs.h"
8174 rm -f conftest.$ac_objext
8175 if { (eval echo "$as_me:8175: \"$ac_compile\"") >&5
8176 (eval $ac_compile) 2>&5
8178 echo "$as_me:8178: \$? = $ac_status" >&5
8179 (exit $ac_status); } &&
8180 { ac_try='test -s conftest.$ac_objext'
8181 { (eval echo "$as_me:8181: \"$ac_try\"") >&5
8184 echo "$as_me:8184: \$? = $ac_status" >&5
8185 (exit $ac_status); }; }; then
8188 echo "$as_me: failed program was:" >&5
8189 cat conftest.$ac_ext >&5
8191 rm -f conftest.$ac_objext conftest.$ac_ext
8192 cat >conftest.$ac_ext <<_ACEOF
8193 #line 8193 "configure"
8194 #include "confdefs.h"
8195 #define _LARGEFILE_SOURCE 1
8205 rm -f conftest.$ac_objext
8206 if { (eval echo "$as_me:8206: \"$ac_compile\"") >&5
8207 (eval $ac_compile) 2>&5
8209 echo "$as_me:8209: \$? = $ac_status" >&5
8210 (exit $ac_status); } &&
8211 { ac_try='test -s conftest.$ac_objext'
8212 { (eval echo "$as_me:8212: \"$ac_try\"") >&5
8215 echo "$as_me:8215: \$? = $ac_status" >&5
8216 (exit $ac_status); }; }; then
8217 ac_cv_sys_largefile_source=1; break
8219 echo "$as_me: failed program was:" >&5
8220 cat conftest.$ac_ext >&5
8222 rm -f conftest.$ac_objext conftest.$ac_ext
8226 echo "$as_me:8226: result: $ac_cv_sys_largefile_source" >&5
8227 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
8228 if test "$ac_cv_sys_largefile_source" != no; then
8230 cat >>confdefs.h <<EOF
8231 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8237 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
8238 # in glibc 2.1.3, but that breaks too many other things.
8239 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
8240 echo "$as_me:8240: checking for fseeko" >&5
8241 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
8242 if test "${ac_cv_func_fseeko+set}" = set; then
8243 echo $ECHO_N "(cached) $ECHO_C" >&6
8245 cat >conftest.$ac_ext <<_ACEOF
8246 #line 8246 "configure"
8247 #include "confdefs.h"
8252 return fseeko && fseeko (stdin, 0, 0);
8257 rm -f conftest.$ac_objext conftest$ac_exeext
8258 if { (eval echo "$as_me:8258: \"$ac_link\"") >&5
8259 (eval $ac_link) 2>&5
8261 echo "$as_me:8261: \$? = $ac_status" >&5
8262 (exit $ac_status); } &&
8263 { ac_try='test -s conftest$ac_exeext'
8264 { (eval echo "$as_me:8264: \"$ac_try\"") >&5
8267 echo "$as_me:8267: \$? = $ac_status" >&5
8268 (exit $ac_status); }; }; then
8269 ac_cv_func_fseeko=yes
8271 echo "$as_me: failed program was:" >&5
8272 cat conftest.$ac_ext >&5
8273 ac_cv_func_fseeko=no
8275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8277 echo "$as_me:8277: result: $ac_cv_func_fseeko" >&5
8278 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
8279 if test $ac_cv_func_fseeko = yes; then
8281 cat >>confdefs.h <<\EOF
8282 #define HAVE_FSEEKO 1
8287 # Normally we would collect these definitions in the config.h,
8288 # but (like _XOPEN_SOURCE), some environments rely on having these
8289 # defined before any of the system headers are included. Another
8290 # case comes up with C++, e.g., on AIX the compiler compiles the
8291 # header files by themselves before looking at the body files it is
8292 # told to compile. For ncurses, those header files do not include
8294 test "$ac_cv_sys_large_files" != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
8295 test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE "
8296 test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits "
8298 echo "$as_me:8298: checking whether to use struct dirent64" >&5
8299 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
8300 if test "${cf_cv_struct_dirent64+set}" = set; then
8301 echo $ECHO_N "(cached) $ECHO_C" >&6
8304 cat >conftest.$ac_ext <<_ACEOF
8305 #line 8305 "configure"
8306 #include "confdefs.h"
8308 #include <sys/types.h>
8315 /* if transitional largefile support is setup, this is true */
8316 extern struct dirent64 * readdir(DIR *);
8317 struct dirent64 *x = readdir((DIR *)0);
8318 struct dirent *y = readdir((DIR *)0);
8325 rm -f conftest.$ac_objext
8326 if { (eval echo "$as_me:8326: \"$ac_compile\"") >&5
8327 (eval $ac_compile) 2>&5
8329 echo "$as_me:8329: \$? = $ac_status" >&5
8330 (exit $ac_status); } &&
8331 { ac_try='test -s conftest.$ac_objext'
8332 { (eval echo "$as_me:8332: \"$ac_try\"") >&5
8335 echo "$as_me:8335: \$? = $ac_status" >&5
8336 (exit $ac_status); }; }; then
8337 cf_cv_struct_dirent64=yes
8339 echo "$as_me: failed program was:" >&5
8340 cat conftest.$ac_ext >&5
8341 cf_cv_struct_dirent64=no
8343 rm -f conftest.$ac_objext conftest.$ac_ext
8346 echo "$as_me:8346: result: $cf_cv_struct_dirent64" >&5
8347 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
8348 test "$cf_cv_struct_dirent64" = yes && cat >>confdefs.h <<\EOF
8349 #define HAVE_STRUCT_DIRENT64 1
8354 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
8355 echo "$as_me:8355: checking if you want tparm not to use X/Open fixed-parameter list" >&5
8356 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
8358 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
8359 if test "${enable_tparm_varargs+set}" = set; then
8360 enableval="$enable_tparm_varargs"
8361 with_tparm_varargs=$enableval
8363 with_tparm_varargs=yes
8365 echo "$as_me:8365: result: $with_tparm_varargs" >&5
8366 echo "${ECHO_T}$with_tparm_varargs" >&6
8367 NCURSES_TPARM_VARARGS=0
8368 test "$with_tparm_varargs" = yes && NCURSES_TPARM_VARARGS=1
8370 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
8371 if test "$with_ticlib" != no ; then
8372 echo "$as_me:8372: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
8373 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
8375 # Check whether --enable-tic-depends or --disable-tic-depends was given.
8376 if test "${enable_tic_depends+set}" = set; then
8377 enableval="$enable_tic_depends"
8378 with_tic_depends=$enableval
8380 with_tic_depends=yes
8382 echo "$as_me:8382: result: $with_tic_depends" >&5
8383 echo "${ECHO_T}$with_tic_depends" >&6
8388 ### use option --with-bool to override bool's type
8389 echo "$as_me:8389: checking for type of bool" >&5
8390 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
8392 # Check whether --with-bool or --without-bool was given.
8393 if test "${with_bool+set}" = set; then
8394 withval="$with_bool"
8395 NCURSES_BOOL="$withval"
8399 echo "$as_me:8399: result: $NCURSES_BOOL" >&5
8400 echo "${ECHO_T}$NCURSES_BOOL" >&6
8402 echo "$as_me:8402: checking for alternate terminal capabilities file" >&5
8403 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
8405 # Check whether --with-caps or --without-caps was given.
8406 if test "${with_caps+set}" = set; then
8407 withval="$with_caps"
8408 TERMINFO_CAPS=Caps.$withval
8412 test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
8413 echo "$as_me:8413: result: $TERMINFO_CAPS" >&5
8414 echo "${ECHO_T}$TERMINFO_CAPS" >&6
8416 ### use option --with-chtype to override chtype's type
8417 echo "$as_me:8417: checking for type of chtype" >&5
8418 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
8420 # Check whether --with-chtype or --without-chtype was given.
8421 if test "${with_chtype+set}" = set; then
8422 withval="$with_chtype"
8423 NCURSES_CHTYPE="$withval"
8427 echo "$as_me:8427: result: $NCURSES_CHTYPE" >&5
8428 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
8430 ### use option --with-ospeed to override ospeed's type
8431 echo "$as_me:8431: checking for type of ospeed" >&5
8432 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
8434 # Check whether --with-ospeed or --without-ospeed was given.
8435 if test "${with_ospeed+set}" = set; then
8436 withval="$with_ospeed"
8437 NCURSES_OSPEED="$withval"
8439 NCURSES_OSPEED=short
8441 echo "$as_me:8441: result: $NCURSES_OSPEED" >&5
8442 echo "${ECHO_T}$NCURSES_OSPEED" >&6
8444 ### use option --with-mmask-t to override mmask_t's type
8445 echo "$as_me:8445: checking for type of mmask_t" >&5
8446 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
8448 # Check whether --with-mmask-t or --without-mmask-t was given.
8449 if test "${with_mmask_t+set}" = set; then
8450 withval="$with_mmask_t"
8451 NCURSES_MMASK_T="$withval"
8453 NCURSES_MMASK_T=auto
8455 echo "$as_me:8455: result: $NCURSES_MMASK_T" >&5
8456 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
8458 ### Enable compiling-in rcs id's
8459 echo "$as_me:8459: checking if RCS identifiers should be compiled-in" >&5
8460 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
8462 # Check whether --with-rcs-ids or --without-rcs-ids was given.
8463 if test "${with_rcs_ids+set}" = set; then
8464 withval="$with_rcs_ids"
8465 with_rcs_ids=$withval
8469 echo "$as_me:8469: result: $with_rcs_ids" >&5
8470 echo "${ECHO_T}$with_rcs_ids" >&6
8471 test "$with_rcs_ids" = yes && cat >>confdefs.h <<\EOF
8472 #define USE_RCS_IDS 1
8475 ###############################################################################
8477 echo "$as_me:8477: checking format of man-pages" >&5
8478 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
8480 # Check whether --with-manpage-format or --without-manpage-format was given.
8481 if test "${with_manpage_format+set}" = set; then
8482 withval="$with_manpage_format"
8483 MANPAGE_FORMAT=$withval
8485 MANPAGE_FORMAT=unknown
8488 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
8489 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
8493 case $MANPAGE_FORMAT in
8495 if test -z "$MANPATH" ; then
8496 MANPATH="/usr/man:/usr/share/man"
8499 # look for the 'date' man-page (it's most likely to be installed!)
8505 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATHSEP}"
8506 for cf_dir in $MANPATH; do
8507 test -z "$cf_dir" && cf_dir=/usr/man
8508 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
8510 cf_test=`echo $cf_name | sed -e 's/*//'`
8511 if test "x$cf_test" = "x$cf_name" ; then
8514 *.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
8515 *.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
8516 *.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
8517 *) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
8531 # if we found a match in either man* or cat*, stop looking
8532 if test -n "$MANPAGE_FORMAT" ; then
8534 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
8535 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
8541 test $cf_found=yes && break
8544 # only check the first directory in $MANPATH where we find manpages
8545 if test -n "$MANPAGE_FORMAT" ; then
8549 # if we did not find the example, just assume it is normal
8550 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
8554 for cf_option in $MANPAGE_FORMAT; do
8555 case $cf_option in #(vi
8556 gzip|compress|BSDI|normal|formatted|catonly)
8559 cf_unknown="$cf_unknown $cf_option"
8566 echo "$as_me:8566: result: $MANPAGE_FORMAT" >&5
8567 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
8568 if test -n "$cf_unknown" ; then
8569 { echo "$as_me:8569: WARNING: Unexpected manpage-format $cf_unknown" >&5
8570 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
8573 echo "$as_me:8573: checking for manpage renaming" >&5
8574 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
8576 # Check whether --with-manpage-renames or --without-manpage-renames was given.
8577 if test "${with_manpage_renames+set}" = set; then
8578 withval="$with_manpage_renames"
8579 MANPAGE_RENAMES=$withval
8584 case ".$MANPAGE_RENAMES" in #(vi
8588 # Debian 'man' program?
8589 if test -f /etc/debian_version ; then
8590 MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
8597 if test "$MANPAGE_RENAMES" != no ; then
8598 if test -f $srcdir/man/$MANPAGE_RENAMES ; then
8599 MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
8600 elif test ! -f $MANPAGE_RENAMES ; then
8601 { { echo "$as_me:8601: error: not a filename: $MANPAGE_RENAMES" >&5
8602 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
8603 { (exit 1); exit 1; }; }
8606 test ! -d man && mkdir man
8608 # Construct a sed-script to perform renaming within man-pages
8609 if test -n "$MANPAGE_RENAMES" ; then
8610 test ! -d man && mkdir man
8611 sh $srcdir/man/make_sed.sh $MANPAGE_RENAMES >./edit_man.sed
8615 echo "$as_me:8615: result: $MANPAGE_RENAMES" >&5
8616 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
8618 echo "$as_me:8618: checking if manpage aliases will be installed" >&5
8619 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
8621 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
8622 if test "${with_manpage_aliases+set}" = set; then
8623 withval="$with_manpage_aliases"
8624 MANPAGE_ALIASES=$withval
8629 echo "$as_me:8629: result: $MANPAGE_ALIASES" >&5
8630 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
8632 if test "$LN_S" = "ln -s"; then
8639 if test "$MANPAGE_ALIASES" = yes ; then
8640 echo "$as_me:8640: checking if manpage symlinks should be used" >&5
8641 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
8643 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
8644 if test "${with_manpage_symlinks+set}" = set; then
8645 withval="$with_manpage_symlinks"
8646 MANPAGE_SYMLINKS=$withval
8648 MANPAGE_SYMLINKS=$cf_use_symlinks
8651 if test "$$cf_use_symlinks" = no; then
8652 if test "$MANPAGE_SYMLINKS" = yes ; then
8653 { echo "$as_me:8653: WARNING: cannot make symlinks" >&5
8654 echo "$as_me: WARNING: cannot make symlinks" >&2;}
8659 echo "$as_me:8659: result: $MANPAGE_SYMLINKS" >&5
8660 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
8663 echo "$as_me:8663: checking for manpage tbl" >&5
8664 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
8666 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
8667 if test "${with_manpage_tbl+set}" = set; then
8668 withval="$with_manpage_tbl"
8669 MANPAGE_TBL=$withval
8674 echo "$as_me:8674: result: $MANPAGE_TBL" >&5
8675 echo "${ECHO_T}$MANPAGE_TBL" >&6
8677 if test "$prefix" = "NONE" ; then
8678 cf_prefix="$ac_default_prefix"
8683 case "$MANPAGE_FORMAT" in # (vi
8698 test ! -d man && mkdir man
8702 case "$MANPAGE_FORMAT" in #(vi
8705 cf_compress=compress
8713 cf_edit_man=./edit_man.sh
8714 cf_man_alias=`pwd`/man_alias.sed
8716 cat >$cf_edit_man <<CF_EOF
8718 # this script is generated by the configure-script CF_MAN_PAGES macro.
8723 NCURSES_MAJOR="$NCURSES_MAJOR"
8724 NCURSES_MINOR="$NCURSES_MINOR"
8725 NCURSES_PATCH="$NCURSES_PATCH"
8727 NCURSES_OSPEED="$NCURSES_OSPEED"
8728 TERMINFO="$TERMINFO"
8730 MKDIRS="sh `cd $srcdir && pwd`/mkdirs.sh"
8733 INSTALL_DATA="$INSTALL_DATA"
8735 transform="$program_transform_name"
8737 TMP=\${TMPDIR-/tmp}/man\$\$
8738 trap "rm -f \$TMP" 0 1 2 5 15
8750 top_srcdir=\$srcdir/..
8753 if test "\$form" = normal ; then
8754 if test "$cf_format" = yes ; then
8755 if test "$cf_inboth" = no ; then
8756 sh \$0 format \$verb \$mandir \$srcdir \$*
8760 cf_subdir=\$mandir/man
8761 cf_tables=$MANPAGE_TBL
8763 cf_subdir=\$mandir/cat
8767 # process the list of source-files
8770 *.orig|*.rej) ;; #(vi
8772 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
8773 if test \$verb = installing ; then
8774 if test ! -d \$cf_subdir\${section} ; then
8775 \$MKDIRS \$cf_subdir\$section
8779 # replace variables in man page
8780 if test ! -f $cf_man_alias ; then
8781 cat >>$cf_man_alias <<-CF_EOF2
8782 s,@DATADIR@,\$datadir,g
8783 s,@TERMINFO@,\$TERMINFO,g
8784 s,@NCURSES_MAJOR@,\$NCURSES_MAJOR,g
8785 s,@NCURSES_MINOR@,\$NCURSES_MINOR,g
8786 s,@NCURSES_PATCH@,\$NCURSES_PATCH,g
8787 s,@NCURSES_OSPEED@,\$NCURSES_OSPEED,g
8790 for cf_name in captoinfo clear infocmp infotocap tabs tic toe tput tset
8792 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
8793 cf_name=`echo $cf_name|sed "$program_transform_name"`
8794 cat >>$cf_edit_man <<-CF_EOF
8795 s,@$cf_NAME@,$cf_name,
8799 cat >>$cf_edit_man <<CF_EOF
8801 echo "...made $cf_man_alias"
8805 cf_source=\`basename \$i\`
8807 test ! -f \$inalias && inalias="\$srcdir/\$inalias"
8808 if test ! -f \$inalias ; then
8809 echo .. skipped \$cf_source
8814 if test "$MANPAGE_ALIASES" != no ; then
8815 cat >>$cf_edit_man <<CF_EOF
8816 aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u\`
8820 if test "$MANPAGE_RENAMES" = no ; then
8821 cat >>$cf_edit_man <<CF_EOF
8822 # perform program transformations for section 1 man pages
8823 if test \$section = 1 ; then
8824 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
8826 cf_target=\$cf_subdir\${section}/\$cf_source
8830 cat >>$cf_edit_man <<CF_EOF
8831 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
8832 if test -z "\$cf_target" ; then
8833 echo '? missing rename for '\$cf_source
8834 cf_target="\$cf_source"
8836 cf_target="\$cf_subdir\${section}/\${cf_target}"
8841 cat >>$cf_edit_man <<CF_EOF
8842 sed -f $cf_man_alias \\
8845 if test -f $MANPAGE_RENAMES ; then
8846 cat >>$cf_edit_man <<CF_EOF
8847 < \$i | sed -f `pwd`/edit_man.sed >\$TMP
8850 cat >>$cf_edit_man <<CF_EOF
8855 cat >>$cf_edit_man <<CF_EOF
8856 if test \$cf_tables = yes ; then
8857 tbl \$TMP >\$TMP.out
8862 if test $with_curses_h != yes ; then
8863 cat >>$cf_edit_man <<CF_EOF
8864 sed -e "/\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
8869 cat >>$cf_edit_man <<CF_EOF
8870 if test \$form = format ; then
8871 nroff -man \$TMP >\$TMP.out
8876 if test -n "$cf_compress" ; then
8877 cat >>$cf_edit_man <<CF_EOF
8878 if test \$verb = installing ; then
8879 if ( $cf_compress -f \$TMP )
8881 mv \$TMP.$cf_so_strip \$TMP
8884 cf_target="\$cf_target.$cf_so_strip"
8888 case "$MANPAGE_FORMAT" in #(vi
8890 cat >>$cf_edit_man <<CF_EOF
8891 if test \$form = format ; then
8892 # BSDI installs only .0 suffixes in the cat directories
8893 cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
8899 cat >>$cf_edit_man <<CF_EOF
8900 suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\`
8901 if test \$verb = installing ; then
8902 echo \$verb \$cf_target
8903 \$INSTALL_DATA \$TMP \$cf_target
8904 test -d \$cf_subdir\${section} &&
8905 test -n "\$aliases" && (
8906 cd \$cf_subdir\${section} && (
8907 cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
8908 test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
8909 cf_target=\`basename \$cf_target\`
8910 for cf_alias in \$aliases
8912 if test \$section = 1 ; then
8913 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
8916 if test "$MANPAGE_SYMLINKS" = yes ; then
8917 if test -f \$cf_alias\${suffix} ; then
8918 if ( cmp -s \$cf_target \$cf_alias\${suffix} )
8923 echo .. \$verb alias \$cf_alias\${suffix}
8924 rm -f \$cf_alias\${suffix}
8925 $LN_S \$cf_target \$cf_alias\${suffix}
8926 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
8927 echo ".so \$cf_source" >\$TMP
8929 if test -n "$cf_compress" ; then
8930 cat >>$cf_edit_man <<CF_EOF
8931 if test -n "$cf_so_strip" ; then
8932 $cf_compress -f \$TMP
8933 mv \$TMP.$cf_so_strip \$TMP
8937 cat >>$cf_edit_man <<CF_EOF
8938 echo .. \$verb alias \$cf_alias\${suffix}
8939 rm -f \$cf_alias\${suffix}
8940 \$INSTALL_DATA \$TMP \$cf_alias\${suffix}
8945 elif test \$verb = removing ; then
8946 test -f \$cf_target && (
8947 echo \$verb \$cf_target
8950 test -d \$cf_subdir\${section} &&
8951 test -n "\$aliases" && (
8952 cd \$cf_subdir\${section} && (
8953 for cf_alias in \$aliases
8955 if test \$section = 1 ; then
8956 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
8959 echo .. \$verb alias \$cf_alias\${suffix}
8960 rm -f \$cf_alias\${suffix}
8972 if test $cf_inboth = yes ; then
8973 if test \$form != format ; then
8974 sh \$0 format \$verb \$mandir \$srcdir \$*
8980 chmod 755 $cf_edit_man
8982 ###############################################################################
8984 ### Note that some functions (such as const) are normally disabled anyway.
8985 echo "$as_me:8985: checking if you want to build with function extensions" >&5
8986 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
8988 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
8989 if test "${enable_ext_funcs+set}" = set; then
8990 enableval="$enable_ext_funcs"
8991 with_ext_funcs=$enableval
8995 echo "$as_me:8995: result: $with_ext_funcs" >&5
8996 echo "${ECHO_T}$with_ext_funcs" >&6
8997 if test "$with_ext_funcs" = yes ; then
8999 cat >>confdefs.h <<\EOF
9000 #define HAVE_CURSES_VERSION 1
9003 cat >>confdefs.h <<\EOF
9004 #define HAVE_HAS_KEY 1
9007 cat >>confdefs.h <<\EOF
9008 #define HAVE_RESIZETERM 1
9011 cat >>confdefs.h <<\EOF
9012 #define HAVE_RESIZE_TERM 1
9015 cat >>confdefs.h <<\EOF
9016 #define HAVE_USE_DEFAULT_COLORS 1
9019 cat >>confdefs.h <<\EOF
9020 #define HAVE_WRESIZE 1
9023 cat >>confdefs.h <<\EOF
9024 #define NCURSES_EXT_FUNCS 1
9027 GENERATED_EXT_FUNCS=generated
9030 GENERATED_EXT_FUNCS=
9033 ### use option --enable-const to turn on use of const beyond that in XSI.
9034 echo "$as_me:9034: checking for extended use of const keyword" >&5
9035 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
9037 # Check whether --enable-const or --disable-const was given.
9038 if test "${enable_const+set}" = set; then
9039 enableval="$enable_const"
9040 with_ext_const=$enableval
9044 echo "$as_me:9044: result: $with_ext_const" >&5
9045 echo "${ECHO_T}$with_ext_const" >&6
9046 NCURSES_CONST='/*nothing*/'
9047 if test "$with_ext_const" = yes ; then
9051 ### use option --enable-ext-colors to turn on use of colors beyond 16.
9052 echo "$as_me:9052: checking if you want to use extended colors" >&5
9053 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
9055 # Check whether --enable-ext-colors or --disable-ext-colors was given.
9056 if test "${enable_ext_colors+set}" = set; then
9057 enableval="$enable_ext_colors"
9058 with_ext_colors=$enableval
9062 echo "$as_me:9062: result: $with_ext_colors" >&5
9063 echo "${ECHO_T}$with_ext_colors" >&6
9064 NCURSES_EXT_COLORS=0
9065 if test "$with_ext_colors" = yes ; then
9066 if test "$with_widec" != yes ; then
9067 { { echo "$as_me:9067: error: This option applies only to wide-character library" >&5
9068 echo "$as_me: error: This option applies only to wide-character library" >&2;}
9069 { (exit 1); exit 1; }; }
9071 # cannot be ABI 5 since it changes sizeof(cchar_t)
9073 if test "${with_abi_version+set}" != set; then
9074 case $cf_cv_rel_version in
9076 cf_cv_rel_version=6.0
9078 { echo "$as_me:9078: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
9079 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
9085 NCURSES_EXT_COLORS=1
9086 cat >>confdefs.h <<\EOF
9087 #define NCURSES_EXT_COLORS 1
9092 ### use option --enable-ext-mouse to modify coding to support 5-button mice
9093 echo "$as_me:9093: checking if you want to use extended mouse encoding" >&5
9094 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
9096 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
9097 if test "${enable_ext_mouse+set}" = set; then
9098 enableval="$enable_ext_mouse"
9099 with_ext_mouse=$enableval
9103 echo "$as_me:9103: result: $with_ext_mouse" >&5
9104 echo "${ECHO_T}$with_ext_mouse" >&6
9105 NCURSES_MOUSE_VERSION=1
9106 if test "$with_ext_mouse" = yes ; then
9107 NCURSES_MOUSE_VERSION=2
9109 if test "${with_abi_version+set}" != set; then
9110 case $cf_cv_rel_version in
9112 cf_cv_rel_version=6.0
9114 { echo "$as_me:9114: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
9115 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
9122 echo "$as_me:9122: checking if you want \$NCURSES_NO_PADDING code" >&5
9123 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
9125 # Check whether --enable-no-padding or --disable-no-padding was given.
9126 if test "${enable_no_padding+set}" = set; then
9127 enableval="$enable_no_padding"
9128 with_no_padding=$enableval
9130 with_no_padding=$with_ext_funcs
9132 echo "$as_me:9132: result: $with_no_padding" >&5
9133 echo "${ECHO_T}$with_no_padding" >&6
9134 test "$with_no_padding" = yes && cat >>confdefs.h <<\EOF
9135 #define NCURSES_NO_PADDING 1
9138 echo "$as_me:9138: checking for ANSI C header files" >&5
9139 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9140 if test "${ac_cv_header_stdc+set}" = set; then
9141 echo $ECHO_N "(cached) $ECHO_C" >&6
9143 cat >conftest.$ac_ext <<_ACEOF
9144 #line 9144 "configure"
9145 #include "confdefs.h"
9152 if { (eval echo "$as_me:9152: \"$ac_cpp conftest.$ac_ext\"") >&5
9153 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9155 egrep -v '^ *\+' conftest.er1 >conftest.err
9157 cat conftest.err >&5
9158 echo "$as_me:9158: \$? = $ac_status" >&5
9159 (exit $ac_status); } >/dev/null; then
9160 if test -s conftest.err; then
9161 ac_cpp_err=$ac_c_preproc_warn_flag
9168 if test -z "$ac_cpp_err"; then
9169 ac_cv_header_stdc=yes
9171 echo "$as_me: failed program was:" >&5
9172 cat conftest.$ac_ext >&5
9173 ac_cv_header_stdc=no
9175 rm -f conftest.err conftest.$ac_ext
9177 if test $ac_cv_header_stdc = yes; then
9178 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9179 cat >conftest.$ac_ext <<_ACEOF
9180 #line 9180 "configure"
9181 #include "confdefs.h"
9185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9186 egrep "memchr" >/dev/null 2>&1; then
9189 ac_cv_header_stdc=no
9195 if test $ac_cv_header_stdc = yes; then
9196 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9197 cat >conftest.$ac_ext <<_ACEOF
9198 #line 9198 "configure"
9199 #include "confdefs.h"
9203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9204 egrep "free" >/dev/null 2>&1; then
9207 ac_cv_header_stdc=no
9213 if test $ac_cv_header_stdc = yes; then
9214 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9215 if test "$cross_compiling" = yes; then
9218 cat >conftest.$ac_ext <<_ACEOF
9219 #line 9219 "configure"
9220 #include "confdefs.h"
9222 #if ((' ' & 0x0FF) == 0x020)
9223 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9224 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9226 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
9227 || ('j' <= (c) && (c) <= 'r') \
9228 || ('s' <= (c) && (c) <= 'z'))
9229 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9232 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9237 for (i = 0; i < 256; i++)
9238 if (XOR (islower (i), ISLOWER (i))
9239 || toupper (i) != TOUPPER (i))
9241 $ac_main_return (0);
9244 rm -f conftest$ac_exeext
9245 if { (eval echo "$as_me:9245: \"$ac_link\"") >&5
9246 (eval $ac_link) 2>&5
9248 echo "$as_me:9248: \$? = $ac_status" >&5
9249 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9250 { (eval echo "$as_me:9250: \"$ac_try\"") >&5
9253 echo "$as_me:9253: \$? = $ac_status" >&5
9254 (exit $ac_status); }; }; then
9257 echo "$as_me: program exited with status $ac_status" >&5
9258 echo "$as_me: failed program was:" >&5
9259 cat conftest.$ac_ext >&5
9260 ac_cv_header_stdc=no
9262 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9266 echo "$as_me:9266: result: $ac_cv_header_stdc" >&5
9267 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9268 if test $ac_cv_header_stdc = yes; then
9270 cat >>confdefs.h <<\EOF
9271 #define STDC_HEADERS 1
9276 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9278 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9279 inttypes.h stdint.h unistd.h
9281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9282 echo "$as_me:9282: checking for $ac_header" >&5
9283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9285 echo $ECHO_N "(cached) $ECHO_C" >&6
9287 cat >conftest.$ac_ext <<_ACEOF
9288 #line 9288 "configure"
9289 #include "confdefs.h"
9290 $ac_includes_default
9291 #include <$ac_header>
9293 rm -f conftest.$ac_objext
9294 if { (eval echo "$as_me:9294: \"$ac_compile\"") >&5
9295 (eval $ac_compile) 2>&5
9297 echo "$as_me:9297: \$? = $ac_status" >&5
9298 (exit $ac_status); } &&
9299 { ac_try='test -s conftest.$ac_objext'
9300 { (eval echo "$as_me:9300: \"$ac_try\"") >&5
9303 echo "$as_me:9303: \$? = $ac_status" >&5
9304 (exit $ac_status); }; }; then
9305 eval "$as_ac_Header=yes"
9307 echo "$as_me: failed program was:" >&5
9308 cat conftest.$ac_ext >&5
9309 eval "$as_ac_Header=no"
9311 rm -f conftest.$ac_objext conftest.$ac_ext
9313 echo "$as_me:9313: result: `eval echo '${'$as_ac_Header'}'`" >&5
9314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9316 cat >>confdefs.h <<EOF
9317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9323 echo "$as_me:9323: checking for signed char" >&5
9324 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
9325 if test "${ac_cv_type_signed_char+set}" = set; then
9326 echo $ECHO_N "(cached) $ECHO_C" >&6
9328 cat >conftest.$ac_ext <<_ACEOF
9329 #line 9329 "configure"
9330 #include "confdefs.h"
9331 $ac_includes_default
9335 if ((signed char *) 0)
9337 if (sizeof (signed char))
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 ac_cv_type_signed_char=yes
9357 echo "$as_me: failed program was:" >&5
9358 cat conftest.$ac_ext >&5
9359 ac_cv_type_signed_char=no
9361 rm -f conftest.$ac_objext conftest.$ac_ext
9363 echo "$as_me:9363: result: $ac_cv_type_signed_char" >&5
9364 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
9366 echo "$as_me:9366: checking size of signed char" >&5
9367 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
9368 if test "${ac_cv_sizeof_signed_char+set}" = set; then
9369 echo $ECHO_N "(cached) $ECHO_C" >&6
9371 if test "$ac_cv_type_signed_char" = yes; then
9372 if test "$cross_compiling" = yes; then
9373 # Depending upon the size, compute the lo and hi bounds.
9374 cat >conftest.$ac_ext <<_ACEOF
9375 #line 9375 "configure"
9376 #include "confdefs.h"
9377 $ac_includes_default
9381 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
9386 rm -f conftest.$ac_objext
9387 if { (eval echo "$as_me:9387: \"$ac_compile\"") >&5
9388 (eval $ac_compile) 2>&5
9390 echo "$as_me:9390: \$? = $ac_status" >&5
9391 (exit $ac_status); } &&
9392 { ac_try='test -s conftest.$ac_objext'
9393 { (eval echo "$as_me:9393: \"$ac_try\"") >&5
9396 echo "$as_me:9396: \$? = $ac_status" >&5
9397 (exit $ac_status); }; }; then
9400 cat >conftest.$ac_ext <<_ACEOF
9401 #line 9401 "configure"
9402 #include "confdefs.h"
9403 $ac_includes_default
9407 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
9412 rm -f conftest.$ac_objext
9413 if { (eval echo "$as_me:9413: \"$ac_compile\"") >&5
9414 (eval $ac_compile) 2>&5
9416 echo "$as_me:9416: \$? = $ac_status" >&5
9417 (exit $ac_status); } &&
9418 { ac_try='test -s conftest.$ac_objext'
9419 { (eval echo "$as_me:9419: \"$ac_try\"") >&5
9422 echo "$as_me:9422: \$? = $ac_status" >&5
9423 (exit $ac_status); }; }; then
9424 ac_hi=$ac_mid; break
9426 echo "$as_me: failed program was:" >&5
9427 cat conftest.$ac_ext >&5
9428 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
9430 rm -f conftest.$ac_objext conftest.$ac_ext
9433 echo "$as_me: failed program was:" >&5
9434 cat conftest.$ac_ext >&5
9437 cat >conftest.$ac_ext <<_ACEOF
9438 #line 9438 "configure"
9439 #include "confdefs.h"
9440 $ac_includes_default
9444 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
9449 rm -f conftest.$ac_objext
9450 if { (eval echo "$as_me:9450: \"$ac_compile\"") >&5
9451 (eval $ac_compile) 2>&5
9453 echo "$as_me:9453: \$? = $ac_status" >&5
9454 (exit $ac_status); } &&
9455 { ac_try='test -s conftest.$ac_objext'
9456 { (eval echo "$as_me:9456: \"$ac_try\"") >&5
9459 echo "$as_me:9459: \$? = $ac_status" >&5
9460 (exit $ac_status); }; }; then
9461 ac_lo=$ac_mid; break
9463 echo "$as_me: failed program was:" >&5
9464 cat conftest.$ac_ext >&5
9465 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
9467 rm -f conftest.$ac_objext conftest.$ac_ext
9470 rm -f conftest.$ac_objext conftest.$ac_ext
9471 # Binary search between lo and hi bounds.
9472 while test "x$ac_lo" != "x$ac_hi"; do
9473 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9474 cat >conftest.$ac_ext <<_ACEOF
9475 #line 9475 "configure"
9476 #include "confdefs.h"
9477 $ac_includes_default
9481 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
9486 rm -f conftest.$ac_objext
9487 if { (eval echo "$as_me:9487: \"$ac_compile\"") >&5
9488 (eval $ac_compile) 2>&5
9490 echo "$as_me:9490: \$? = $ac_status" >&5
9491 (exit $ac_status); } &&
9492 { ac_try='test -s conftest.$ac_objext'
9493 { (eval echo "$as_me:9493: \"$ac_try\"") >&5
9496 echo "$as_me:9496: \$? = $ac_status" >&5
9497 (exit $ac_status); }; }; then
9500 echo "$as_me: failed program was:" >&5
9501 cat conftest.$ac_ext >&5
9502 ac_lo=`expr $ac_mid + 1`
9504 rm -f conftest.$ac_objext conftest.$ac_ext
9506 ac_cv_sizeof_signed_char=$ac_lo
9508 if test "$cross_compiling" = yes; then
9509 { { echo "$as_me:9509: error: cannot run test program while cross compiling" >&5
9510 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9511 { (exit 1); exit 1; }; }
9513 cat >conftest.$ac_ext <<_ACEOF
9514 #line 9514 "configure"
9515 #include "confdefs.h"
9516 $ac_includes_default
9520 FILE *f = fopen ("conftest.val", "w");
9522 $ac_main_return (1);
9523 fprintf (f, "%d", (sizeof (signed char)));
9529 rm -f conftest$ac_exeext
9530 if { (eval echo "$as_me:9530: \"$ac_link\"") >&5
9531 (eval $ac_link) 2>&5
9533 echo "$as_me:9533: \$? = $ac_status" >&5
9534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9535 { (eval echo "$as_me:9535: \"$ac_try\"") >&5
9538 echo "$as_me:9538: \$? = $ac_status" >&5
9539 (exit $ac_status); }; }; then
9540 ac_cv_sizeof_signed_char=`cat conftest.val`
9542 echo "$as_me: program exited with status $ac_status" >&5
9543 echo "$as_me: failed program was:" >&5
9544 cat conftest.$ac_ext >&5
9546 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9551 ac_cv_sizeof_signed_char=0
9554 echo "$as_me:9554: result: $ac_cv_sizeof_signed_char" >&5
9555 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
9556 cat >>confdefs.h <<EOF
9557 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
9560 if test "$ac_cv_sizeof_signed_char" = 1 ; then
9561 NCURSES_SBOOL="signed char"
9563 NCURSES_SBOOL="char"
9565 echo "$as_me:9565: checking if you want to use signed Boolean array in term.h" >&5
9566 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
9568 # Check whether --enable-signed-char or --disable-signed-char was given.
9569 if test "${enable_signed_char+set}" = set; then
9570 enableval="$enable_signed_char"
9571 with_signed_char=$enableval
9575 echo "$as_me:9575: result: $with_signed_char" >&5
9576 echo "${ECHO_T}$with_signed_char" >&6
9577 test "$with_signed_char" != yes && NCURSES_SBOOL="char"
9579 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
9580 echo "$as_me:9580: checking if you want SIGWINCH handler" >&5
9581 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
9583 # Check whether --enable-sigwinch or --disable-sigwinch was given.
9584 if test "${enable_sigwinch+set}" = set; then
9585 enableval="$enable_sigwinch"
9586 with_sigwinch=$enableval
9588 with_sigwinch=$with_ext_funcs
9590 echo "$as_me:9590: result: $with_sigwinch" >&5
9591 echo "${ECHO_T}$with_sigwinch" >&6
9592 test "$with_sigwinch" = yes && cat >>confdefs.h <<\EOF
9593 #define USE_SIGWINCH 1
9596 ### use option --enable-tcap-names to allow user to define new capabilities
9597 echo "$as_me:9597: checking if you want user-definable terminal capabilities like termcap" >&5
9598 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
9600 # Check whether --enable-tcap-names or --disable-tcap-names was given.
9601 if test "${enable_tcap_names+set}" = set; then
9602 enableval="$enable_tcap_names"
9603 with_tcap_names=$enableval
9605 with_tcap_names=$with_ext_funcs
9607 echo "$as_me:9607: result: $with_tcap_names" >&5
9608 echo "${ECHO_T}$with_tcap_names" >&6
9610 test "$with_tcap_names" = yes && NCURSES_XNAMES=1
9612 ###############################################################################
9613 # These options are relatively safe to experiment with.
9615 echo "$as_me:9615: checking if you want all development code" >&5
9616 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
9618 # Check whether --with-develop or --without-develop was given.
9619 if test "${with_develop+set}" = set; then
9620 withval="$with_develop"
9621 with_develop=$withval
9625 echo "$as_me:9625: result: $with_develop" >&5
9626 echo "${ECHO_T}$with_develop" >&6
9628 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
9629 echo "$as_me:9629: checking if you want hard-tabs code" >&5
9630 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
9632 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
9633 if test "${enable_hard_tabs+set}" = set; then
9634 enableval="$enable_hard_tabs"
9637 enable_hard_tabs=$with_develop
9639 echo "$as_me:9639: result: $enable_hard_tabs" >&5
9640 echo "${ECHO_T}$enable_hard_tabs" >&6
9641 test "$enable_hard_tabs" = yes && cat >>confdefs.h <<\EOF
9642 #define USE_HARD_TABS 1
9645 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
9646 echo "$as_me:9646: checking if you want limited support for xmc" >&5
9647 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
9649 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
9650 if test "${enable_xmc_glitch+set}" = set; then
9651 enableval="$enable_xmc_glitch"
9654 enable_xmc_glitch=$with_develop
9656 echo "$as_me:9656: result: $enable_xmc_glitch" >&5
9657 echo "${ECHO_T}$enable_xmc_glitch" >&6
9658 test "$enable_xmc_glitch" = yes && cat >>confdefs.h <<\EOF
9659 #define USE_XMC_SUPPORT 1
9662 ###############################################################################
9663 # These are just experimental, probably should not be in a package:
9665 echo "$as_me:9665: checking if you do not want to assume colors are white-on-black" >&5
9666 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
9668 # Check whether --enable-assumed-color or --disable-assumed-color was given.
9669 if test "${enable_assumed_color+set}" = set; then
9670 enableval="$enable_assumed_color"
9671 with_assumed_color=$enableval
9673 with_assumed_color=yes
9675 echo "$as_me:9675: result: $with_assumed_color" >&5
9676 echo "${ECHO_T}$with_assumed_color" >&6
9677 test "$with_assumed_color" = yes && cat >>confdefs.h <<\EOF
9678 #define USE_ASSUMED_COLOR 1
9681 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
9682 echo "$as_me:9682: checking if you want hashmap scrolling-optimization code" >&5
9683 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
9685 # Check whether --enable-hashmap or --disable-hashmap was given.
9686 if test "${enable_hashmap+set}" = set; then
9687 enableval="$enable_hashmap"
9688 with_hashmap=$enableval
9692 echo "$as_me:9692: result: $with_hashmap" >&5
9693 echo "${ECHO_T}$with_hashmap" >&6
9694 test "$with_hashmap" = yes && cat >>confdefs.h <<\EOF
9695 #define USE_HASHMAP 1
9698 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
9699 echo "$as_me:9699: checking if you want colorfgbg code" >&5
9700 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
9702 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
9703 if test "${enable_colorfgbg+set}" = set; then
9704 enableval="$enable_colorfgbg"
9705 with_colorfgbg=$enableval
9709 echo "$as_me:9709: result: $with_colorfgbg" >&5
9710 echo "${ECHO_T}$with_colorfgbg" >&6
9711 test "$with_colorfgbg" = yes && cat >>confdefs.h <<\EOF
9712 #define USE_COLORFGBG 1
9715 # This is still experimental (20080329), but should ultimately be moved to
9716 # the script-block --with-normal, etc.
9718 echo "$as_me:9718: checking if you want to link with the pthread library" >&5
9719 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
9721 # Check whether --with-pthread or --without-pthread was given.
9722 if test "${with_pthread+set}" = set; then
9723 withval="$with_pthread"
9724 with_pthread=$withval
9728 echo "$as_me:9728: result: $with_pthread" >&5
9729 echo "${ECHO_T}$with_pthread" >&6
9731 if test "$with_pthread" != no ; then
9732 echo "$as_me:9732: checking for pthread.h" >&5
9733 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
9734 if test "${ac_cv_header_pthread_h+set}" = set; then
9735 echo $ECHO_N "(cached) $ECHO_C" >&6
9737 cat >conftest.$ac_ext <<_ACEOF
9738 #line 9738 "configure"
9739 #include "confdefs.h"
9740 #include <pthread.h>
9742 if { (eval echo "$as_me:9742: \"$ac_cpp conftest.$ac_ext\"") >&5
9743 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9745 egrep -v '^ *\+' conftest.er1 >conftest.err
9747 cat conftest.err >&5
9748 echo "$as_me:9748: \$? = $ac_status" >&5
9749 (exit $ac_status); } >/dev/null; then
9750 if test -s conftest.err; then
9751 ac_cpp_err=$ac_c_preproc_warn_flag
9758 if test -z "$ac_cpp_err"; then
9759 ac_cv_header_pthread_h=yes
9761 echo "$as_me: failed program was:" >&5
9762 cat conftest.$ac_ext >&5
9763 ac_cv_header_pthread_h=no
9765 rm -f conftest.err conftest.$ac_ext
9767 echo "$as_me:9767: result: $ac_cv_header_pthread_h" >&5
9768 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
9769 if test $ac_cv_header_pthread_h = yes; then
9771 cat >>confdefs.h <<\EOF
9772 #define HAVE_PTHREADS_H 1
9775 echo "$as_me:9775: checking if we can link with the pthread library" >&5
9776 echo $ECHO_N "checking if we can link with the pthread library... $ECHO_C" >&6
9777 cf_save_LIBS="$LIBS"
9778 LIBS="-lpthread $LIBS"
9779 cat >conftest.$ac_ext <<_ACEOF
9780 #line 9780 "configure"
9781 #include "confdefs.h"
9783 #include <pthread.h>
9789 int rc = pthread_create(0,0,0,0);
9795 rm -f conftest.$ac_objext conftest$ac_exeext
9796 if { (eval echo "$as_me:9796: \"$ac_link\"") >&5
9797 (eval $ac_link) 2>&5
9799 echo "$as_me:9799: \$? = $ac_status" >&5
9800 (exit $ac_status); } &&
9801 { ac_try='test -s conftest$ac_exeext'
9802 { (eval echo "$as_me:9802: \"$ac_try\"") >&5
9805 echo "$as_me:9805: \$? = $ac_status" >&5
9806 (exit $ac_status); }; }; then
9809 echo "$as_me: failed program was:" >&5
9810 cat conftest.$ac_ext >&5
9813 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9814 LIBS="$cf_save_LIBS"
9815 echo "$as_me:9815: result: $with_pthread" >&5
9816 echo "${ECHO_T}$with_pthread" >&6
9818 if test "$with_pthread" = yes ; then
9819 LIBS="-lpthread $LIBS"
9820 cat >>confdefs.h <<\EOF
9821 #define HAVE_LIBPTHREADS 1
9825 { { echo "$as_me:9825: error: Cannot link with pthread library" >&5
9826 echo "$as_me: error: Cannot link with pthread library" >&2;}
9827 { (exit 1); exit 1; }; }
9834 echo "$as_me:9834: checking if you want to use weak-symbols for pthreads" >&5
9835 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
9837 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
9838 if test "${enable_weak_symbols+set}" = set; then
9839 enableval="$enable_weak_symbols"
9840 use_weak_symbols=$withval
9844 echo "$as_me:9844: result: $use_weak_symbols" >&5
9845 echo "${ECHO_T}$use_weak_symbols" >&6
9846 if test "$use_weak_symbols" = yes ; then
9848 echo "$as_me:9848: checking if $CC supports weak symbols" >&5
9849 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
9850 if test "${cf_cv_weak_symbols+set}" = set; then
9851 echo $ECHO_N "(cached) $ECHO_C" >&6
9854 cat >conftest.$ac_ext <<_ACEOF
9855 #line 9855 "configure"
9856 #include "confdefs.h"
9863 #if defined(__GNUC__)
9864 # if defined __USE_ISOC99
9865 # define _cat_pragma(exp) _Pragma(#exp)
9866 # define _weak_pragma(exp) _cat_pragma(weak name)
9868 # define _weak_pragma(exp)
9870 # define _declare(name) __extension__ extern __typeof__(name) name
9871 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
9880 rm -f conftest.$ac_objext
9881 if { (eval echo "$as_me:9881: \"$ac_compile\"") >&5
9882 (eval $ac_compile) 2>&5
9884 echo "$as_me:9884: \$? = $ac_status" >&5
9885 (exit $ac_status); } &&
9886 { ac_try='test -s conftest.$ac_objext'
9887 { (eval echo "$as_me:9887: \"$ac_try\"") >&5
9890 echo "$as_me:9890: \$? = $ac_status" >&5
9891 (exit $ac_status); }; }; then
9892 cf_cv_weak_symbols=yes
9894 echo "$as_me: failed program was:" >&5
9895 cat conftest.$ac_ext >&5
9896 cf_cv_weak_symbols=no
9898 rm -f conftest.$ac_objext conftest.$ac_ext
9901 echo "$as_me:9901: result: $cf_cv_weak_symbols" >&5
9902 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
9905 cf_cv_weak_symbols=no
9908 if test $cf_cv_weak_symbols = yes ; then
9909 cat >>confdefs.h <<\EOF
9910 #define USE_WEAK_SYMBOLS 1
9916 if test "$with_pthread" = "yes" ; then
9917 cat >>confdefs.h <<\EOF
9918 #define USE_PTHREADS 1
9921 enable_reentrant=yes
9922 if test $cf_cv_weak_symbols = yes ; then
9927 # Reentrant code has to be opaque; there's little advantage to making ncurses
9928 # opaque outside of that, so there is no --enable-opaque option. We can use
9929 # this option without --with-pthreads, but this will be always set for
9931 echo "$as_me:9931: checking if you want experimental reentrant code" >&5
9932 echo $ECHO_N "checking if you want experimental reentrant code... $ECHO_C" >&6
9934 # Check whether --enable-reentrant or --disable-reentrant was given.
9935 if test "${enable_reentrant+set}" = set; then
9936 enableval="$enable_reentrant"
9937 with_reentrant=$enableval
9941 echo "$as_me:9941: result: $with_reentrant" >&5
9942 echo "${ECHO_T}$with_reentrant" >&6
9943 if test "$with_reentrant" = yes ; then
9944 cf_cv_enable_reentrant=1
9945 cf_cv_enable_opaque="NCURSES_INTERNALS"
9948 if test $cf_cv_weak_symbols = yes ; then
9950 # remove pthread library from $LIBS
9951 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
9954 LIB_SUFFIX="t${LIB_SUFFIX}"
9956 cat >>confdefs.h <<\EOF
9957 #define USE_REENTRANT 1
9960 if test "${with_abi_version+set}" != set; then
9961 case $cf_cv_rel_version in
9963 cf_cv_rel_version=6.0
9965 { echo "$as_me:9965: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
9966 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
9972 cf_cv_enable_reentrant=0
9973 cf_cv_enable_opaque="NCURSES_OPAQUE"
9975 NCURSES_SIZE_T=short
9978 echo "$as_me:9978: checking if you want experimental safe-sprintf code" >&5
9979 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
9981 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
9982 if test "${enable_safe_sprintf+set}" = set; then
9983 enableval="$enable_safe_sprintf"
9984 with_safe_sprintf=$enableval
9986 with_safe_sprintf=no
9988 echo "$as_me:9988: result: $with_safe_sprintf" >&5
9989 echo "${ECHO_T}$with_safe_sprintf" >&6
9990 test "$with_safe_sprintf" = yes && cat >>confdefs.h <<\EOF
9991 #define USE_SAFE_SPRINTF 1
9994 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
9995 # when hashmap is used scroll hints are useless
9996 if test "$with_hashmap" = no ; then
9997 echo "$as_me:9997: checking if you want to experiment without scrolling-hints code" >&5
9998 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
10000 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
10001 if test "${enable_scroll_hints+set}" = set; then
10002 enableval="$enable_scroll_hints"
10003 with_scroll_hints=$enableval
10005 with_scroll_hints=yes
10007 echo "$as_me:10007: result: $with_scroll_hints" >&5
10008 echo "${ECHO_T}$with_scroll_hints" >&6
10009 test "$with_scroll_hints" = yes && cat >>confdefs.h <<\EOF
10010 #define USE_SCROLL_HINTS 1
10015 echo "$as_me:10015: checking if you want experimental wgetch-events code" >&5
10016 echo $ECHO_N "checking if you want experimental wgetch-events code... $ECHO_C" >&6
10018 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
10019 if test "${enable_wgetch_events+set}" = set; then
10020 enableval="$enable_wgetch_events"
10021 with_wgetch_events=$enableval
10023 with_wgetch_events=no
10025 echo "$as_me:10025: result: $with_wgetch_events" >&5
10026 echo "${ECHO_T}$with_wgetch_events" >&6
10027 test "$with_wgetch_events" = yes && cat >>confdefs.h <<\EOF
10028 #define NCURSES_WGETCH_EVENTS 1
10031 ###############################################################################
10033 ### use option --disable-echo to suppress full display compiling commands
10034 echo "$as_me:10034: checking if you want to display full commands during build" >&5
10035 echo $ECHO_N "checking if you want to display full commands during build... $ECHO_C" >&6
10037 # Check whether --enable-echo or --disable-echo was given.
10038 if test "${enable_echo+set}" = set; then
10039 enableval="$enable_echo"
10040 with_echo=$enableval
10044 if test "$with_echo" = yes; then
10047 ECHO_LINK='@ echo linking $@ ... ;'
10048 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
10049 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
10051 echo "$as_me:10051: result: $with_echo" >&5
10052 echo "${ECHO_T}$with_echo" >&6
10054 ### use option --enable-warnings to turn on all gcc warnings
10055 echo "$as_me:10055: checking if you want to see compiler warnings" >&5
10056 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
10058 # Check whether --enable-warnings or --disable-warnings was given.
10059 if test "${enable_warnings+set}" = set; then
10060 enableval="$enable_warnings"
10061 with_warnings=$enableval
10063 echo "$as_me:10063: result: $with_warnings" >&5
10064 echo "${ECHO_T}$with_warnings" >&6
10066 if test "x$with_warnings" = "xyes"; then
10067 ADAFLAGS="$ADAFLAGS -gnatg"
10071 if test "$GCC" = yes ; then
10074 echo "$as_me:10074: checking if this is really Intel C compiler" >&5
10075 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
10076 cf_save_CFLAGS="$CFLAGS"
10077 CFLAGS="$CFLAGS -no-gcc"
10078 cat >conftest.$ac_ext <<_ACEOF
10079 #line 10079 "configure"
10080 #include "confdefs.h"
10086 #ifdef __INTEL_COMPILER
10095 rm -f conftest.$ac_objext
10096 if { (eval echo "$as_me:10096: \"$ac_compile\"") >&5
10097 (eval $ac_compile) 2>&5
10099 echo "$as_me:10099: \$? = $ac_status" >&5
10100 (exit $ac_status); } &&
10101 { ac_try='test -s conftest.$ac_objext'
10102 { (eval echo "$as_me:10102: \"$ac_try\"") >&5
10103 (eval $ac_try) 2>&5
10105 echo "$as_me:10105: \$? = $ac_status" >&5
10106 (exit $ac_status); }; }; then
10108 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
10111 echo "$as_me: failed program was:" >&5
10112 cat conftest.$ac_ext >&5
10114 rm -f conftest.$ac_objext conftest.$ac_ext
10115 CFLAGS="$cf_save_CFLAGS"
10116 echo "$as_me:10116: result: $INTEL_COMPILER" >&5
10117 echo "${ECHO_T}$INTEL_COMPILER" >&6
10122 cat > conftest.$ac_ext <<EOF
10123 #line 10123 "${as_me-configure}"
10124 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
10127 if test "$INTEL_COMPILER" = yes
10129 # The "-wdXXX" options suppress warnings:
10130 # remark #1419: external declaration in primary source file
10131 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
10132 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
10133 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
10134 # remark #193: zero used for undefined preprocessing identifier
10135 # remark #593: variable "curs_sb_left_arrow" was set but never used
10136 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
10137 # remark #869: parameter "tw" was never referenced
10138 # remark #981: operands are evaluated in unspecified order
10139 # warning #269: invalid format string conversion
10141 { echo "$as_me:10141: checking for $CC warning options..." >&5
10142 echo "$as_me: checking for $CC warning options..." >&6;}
10143 cf_save_CFLAGS="$CFLAGS"
10144 EXTRA_CFLAGS="-Wall"
10157 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
10158 if { (eval echo "$as_me:10158: \"$ac_compile\"") >&5
10159 (eval $ac_compile) 2>&5
10161 echo "$as_me:10161: \$? = $ac_status" >&5
10162 (exit $ac_status); }; then
10163 test -n "$verbose" && echo "$as_me:10163: result: ... -$cf_opt" >&5
10164 echo "${ECHO_T}... -$cf_opt" >&6
10165 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
10168 CFLAGS="$cf_save_CFLAGS"
10170 elif test "$GCC" = yes
10172 { echo "$as_me:10172: checking for $CC warning options..." >&5
10173 echo "$as_me: checking for $CC warning options..." >&6;}
10174 cf_save_CFLAGS="$CFLAGS"
10175 EXTRA_CFLAGS="-W -Wall"
10177 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
10179 Wbad-function-cast \
10183 Wmissing-declarations \
10184 Wmissing-prototypes \
10188 Wstrict-prototypes \
10189 Wundef $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum
10191 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
10192 if { (eval echo "$as_me:10192: \"$ac_compile\"") >&5
10193 (eval $ac_compile) 2>&5
10195 echo "$as_me:10195: \$? = $ac_status" >&5
10196 (exit $ac_status); }; then
10197 test -n "$verbose" && echo "$as_me:10197: result: ... -$cf_opt" >&5
10198 echo "${ECHO_T}... -$cf_opt" >&6
10199 case $cf_opt in #(vi
10201 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
10204 case $GCC_VERSION in
10206 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
10208 echo "${as_me-configure}:10208: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
10214 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
10217 CFLAGS="$cf_save_CFLAGS"
10221 if test "$cf_with_cxx" = yes ; then
10225 if test "$GCC" = yes ; then
10228 echo "$as_me:10228: checking if this is really Intel C++ compiler" >&5
10229 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
10230 cf_save_CFLAGS="$CXXFLAGS"
10231 CXXFLAGS="$CXXFLAGS -no-gcc"
10232 cat >conftest.$ac_ext <<_ACEOF
10233 #line 10233 "configure"
10234 #include "confdefs.h"
10240 #ifdef __INTEL_COMPILER
10249 rm -f conftest.$ac_objext
10250 if { (eval echo "$as_me:10250: \"$ac_compile\"") >&5
10251 (eval $ac_compile) 2>&5
10253 echo "$as_me:10253: \$? = $ac_status" >&5
10254 (exit $ac_status); } &&
10255 { ac_try='test -s conftest.$ac_objext'
10256 { (eval echo "$as_me:10256: \"$ac_try\"") >&5
10257 (eval $ac_try) 2>&5
10259 echo "$as_me:10259: \$? = $ac_status" >&5
10260 (exit $ac_status); }; }; then
10261 INTEL_CPLUSPLUS=yes
10262 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
10265 echo "$as_me: failed program was:" >&5
10266 cat conftest.$ac_ext >&5
10268 rm -f conftest.$ac_objext conftest.$ac_ext
10269 CXXFLAGS="$cf_save_CFLAGS"
10270 echo "$as_me:10270: result: $INTEL_CPLUSPLUS" >&5
10271 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
10277 ac_cpp='$CXXCPP $CPPFLAGS'
10278 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10279 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10280 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10281 ac_main_return=return
10283 cat > conftest.$ac_ext <<EOF
10284 #line 10284 "configure"
10285 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
10288 if test "$INTEL_CPLUSPLUS" = yes
10290 # The "-wdXXX" options suppress warnings:
10291 # remark #1419: external declaration in primary source file
10292 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
10293 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
10294 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
10295 # remark #193: zero used for undefined preprocessing identifier
10296 # remark #593: variable "curs_sb_left_arrow" was set but never used
10297 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
10298 # remark #869: parameter "tw" was never referenced
10299 # remark #981: operands are evaluated in unspecified order
10300 # warning #269: invalid format string conversion
10302 { echo "$as_me:10302: checking for $CC warning options..." >&5
10303 echo "$as_me: checking for $CC warning options..." >&6;}
10304 cf_save_CXXFLAGS="$CXXFLAGS"
10305 EXTRA_CXXFLAGS="-Wall"
10318 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
10319 if { (eval echo "$as_me:10319: \"$ac_compile\"") >&5
10320 (eval $ac_compile) 2>&5
10322 echo "$as_me:10322: \$? = $ac_status" >&5
10323 (exit $ac_status); }; then
10324 test -n "$verbose" && echo "$as_me:10324: result: ... -$cf_opt" >&5
10325 echo "${ECHO_T}... -$cf_opt" >&6
10326 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
10329 CXXFLAGS="$cf_save_CXXFLAGS"
10331 elif test "$GXX" = yes
10333 { echo "$as_me:10333: checking for $CXX warning options..." >&5
10334 echo "$as_me: checking for $CXX warning options..." >&6;}
10335 cf_save_CXXFLAGS="$CXXFLAGS"
10336 EXTRA_CXXFLAGS="-W -Wall"
10337 cf_gxx_extra_warnings=""
10338 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
10339 case "$GCC_VERSION" in
10343 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
10349 Woverloaded-virtual \
10355 Wmissing-prototypes \
10358 Wstrict-prototypes \
10359 Wundef $cf_gxx_extra_warnings Wno-unused
10361 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
10362 if { (eval echo "$as_me:10362: \"$ac_compile\"") >&5
10363 (eval $ac_compile) 2>&5
10365 echo "$as_me:10365: \$? = $ac_status" >&5
10366 (exit $ac_status); }; then
10367 test -n "$verbose" && echo "$as_me:10367: result: ... -$cf_opt" >&5
10368 echo "${ECHO_T}... -$cf_opt" >&6
10369 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
10371 test -n "$verbose" && echo "$as_me:10371: result: ... no -$cf_opt" >&5
10372 echo "${ECHO_T}... no -$cf_opt" >&6
10375 CXXFLAGS="$cf_save_CXXFLAGS"
10380 ac_cpp='$CPP $CPPFLAGS'
10381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10384 ac_main_return=return
10389 if test "$GCC" = yes
10391 cat > conftest.i <<EOF
10393 #define GCC_PRINTF 0
10396 #define GCC_SCANF 0
10398 #ifndef GCC_NORETURN
10399 #define GCC_NORETURN /* nothing */
10402 #define GCC_UNUSED /* nothing */
10405 if test "$GCC" = yes
10407 { echo "$as_me:10407: checking for $CC __attribute__ directives..." >&5
10408 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
10409 cat > conftest.$ac_ext <<EOF
10410 #line 10410 "${as_me-configure}"
10411 #include "confdefs.h"
10412 #include "conftest.h"
10413 #include "conftest.i"
10415 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
10417 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
10420 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
10422 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
10424 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
10425 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
10426 extern void foo(void) GCC_NORETURN;
10427 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
10429 for cf_attribute in scanf printf unused noreturn
10432 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
10434 cf_directive="__attribute__(($cf_attribute))"
10435 echo "checking for $CC $cf_directive" 1>&5
10436 case $cf_attribute in
10438 cat >conftest.h <<EOF
10439 #define GCC_$cf_ATTRIBUTE 1
10443 cat >conftest.h <<EOF
10444 #define GCC_$cf_ATTRIBUTE $cf_directive
10448 if { (eval echo "$as_me:10448: \"$ac_compile\"") >&5
10449 (eval $ac_compile) 2>&5
10451 echo "$as_me:10451: \$? = $ac_status" >&5
10452 (exit $ac_status); }; then
10453 test -n "$verbose" && echo "$as_me:10453: result: ... $cf_attribute" >&5
10454 echo "${ECHO_T}... $cf_attribute" >&6
10455 cat conftest.h >>confdefs.h
10459 fgrep define conftest.i >>confdefs.h
10464 ### use option --enable-assertions to turn on generation of assertion code
10465 echo "$as_me:10465: checking if you want to enable runtime assertions" >&5
10466 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
10468 # Check whether --enable-assertions or --disable-assertions was given.
10469 if test "${enable_assertions+set}" = set; then
10470 enableval="$enable_assertions"
10471 with_assertions=$enableval
10475 echo "$as_me:10475: result: $with_assertions" >&5
10476 echo "${ECHO_T}$with_assertions" >&6
10479 if test "$with_assertions" = no
10481 cat >>confdefs.h <<\EOF
10485 CPPFLAGS="$CPPFLAGS -DNDEBUG"
10487 ADAFLAGS="$ADAFLAGS -gnata"
10491 ### use option --disable-leaks to suppress "permanent" leaks, for testing
10493 echo "$as_me:10493: checking if you want to use dmalloc for testing" >&5
10494 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
10496 # Check whether --with-dmalloc or --without-dmalloc was given.
10497 if test "${with_dmalloc+set}" = set; then
10498 withval="$with_dmalloc"
10499 cat >>confdefs.h <<\EOF
10500 #define USE_DMALLOC 1
10503 : ${with_cflags:=-g}
10504 : ${with_no_leaks:=yes}
10509 echo "$as_me:10509: result: ${with_dmalloc:-no}" >&5
10510 echo "${ECHO_T}${with_dmalloc:-no}" >&6
10512 case .$with_cflags in #(vi
10514 case .$CFLAGS in #(vi
10522 cf_new_extra_cppflags=
10524 for cf_add_cflags in -g
10526 case $cf_fix_cppflags in
10528 case $cf_add_cflags in #(vi
10529 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10530 case $cf_add_cflags in
10532 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10534 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10535 && test -z "${cf_tst_cflags}" \
10536 && cf_fix_cppflags=yes
10538 if test $cf_fix_cppflags = yes ; then
10539 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10541 elif test "${cf_tst_cflags}" = "\"'" ; then
10542 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10547 case "$CPPFLAGS" in
10548 *$cf_add_cflags) #(vi
10551 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10556 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10561 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10563 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10565 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10566 && test -z "${cf_tst_cflags}" \
10567 && cf_fix_cppflags=no
10572 if test -n "$cf_new_cflags" ; then
10574 CFLAGS="$CFLAGS $cf_new_cflags"
10577 if test -n "$cf_new_cppflags" ; then
10579 CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
10582 if test -n "$cf_new_extra_cppflags" ; then
10584 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10592 if test "$with_dmalloc" = yes ; then
10593 echo "$as_me:10593: checking for dmalloc.h" >&5
10594 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
10595 if test "${ac_cv_header_dmalloc_h+set}" = set; then
10596 echo $ECHO_N "(cached) $ECHO_C" >&6
10598 cat >conftest.$ac_ext <<_ACEOF
10599 #line 10599 "configure"
10600 #include "confdefs.h"
10601 #include <dmalloc.h>
10603 if { (eval echo "$as_me:10603: \"$ac_cpp conftest.$ac_ext\"") >&5
10604 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10606 egrep -v '^ *\+' conftest.er1 >conftest.err
10608 cat conftest.err >&5
10609 echo "$as_me:10609: \$? = $ac_status" >&5
10610 (exit $ac_status); } >/dev/null; then
10611 if test -s conftest.err; then
10612 ac_cpp_err=$ac_c_preproc_warn_flag
10619 if test -z "$ac_cpp_err"; then
10620 ac_cv_header_dmalloc_h=yes
10622 echo "$as_me: failed program was:" >&5
10623 cat conftest.$ac_ext >&5
10624 ac_cv_header_dmalloc_h=no
10626 rm -f conftest.err conftest.$ac_ext
10628 echo "$as_me:10628: result: $ac_cv_header_dmalloc_h" >&5
10629 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
10630 if test $ac_cv_header_dmalloc_h = yes; then
10632 echo "$as_me:10632: checking for dmalloc_debug in -ldmalloc" >&5
10633 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
10634 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
10635 echo $ECHO_N "(cached) $ECHO_C" >&6
10637 ac_check_lib_save_LIBS=$LIBS
10638 LIBS="-ldmalloc $LIBS"
10639 cat >conftest.$ac_ext <<_ACEOF
10640 #line 10640 "configure"
10641 #include "confdefs.h"
10643 /* Override any gcc2 internal prototype to avoid an error. */
10647 /* We use char because int might match the return type of a gcc2
10648 builtin and then its argument prototype would still apply. */
10649 char dmalloc_debug ();
10658 rm -f conftest.$ac_objext conftest$ac_exeext
10659 if { (eval echo "$as_me:10659: \"$ac_link\"") >&5
10660 (eval $ac_link) 2>&5
10662 echo "$as_me:10662: \$? = $ac_status" >&5
10663 (exit $ac_status); } &&
10664 { ac_try='test -s conftest$ac_exeext'
10665 { (eval echo "$as_me:10665: \"$ac_try\"") >&5
10666 (eval $ac_try) 2>&5
10668 echo "$as_me:10668: \$? = $ac_status" >&5
10669 (exit $ac_status); }; }; then
10670 ac_cv_lib_dmalloc_dmalloc_debug=yes
10672 echo "$as_me: failed program was:" >&5
10673 cat conftest.$ac_ext >&5
10674 ac_cv_lib_dmalloc_dmalloc_debug=no
10676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10677 LIBS=$ac_check_lib_save_LIBS
10679 echo "$as_me:10679: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
10680 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
10681 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
10682 cat >>confdefs.h <<EOF
10683 #define HAVE_LIBDMALLOC 1
10686 LIBS="-ldmalloc $LIBS"
10694 echo "$as_me:10694: checking if you want to use dbmalloc for testing" >&5
10695 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
10697 # Check whether --with-dbmalloc or --without-dbmalloc was given.
10698 if test "${with_dbmalloc+set}" = set; then
10699 withval="$with_dbmalloc"
10700 cat >>confdefs.h <<\EOF
10701 #define USE_DBMALLOC 1
10704 : ${with_cflags:=-g}
10705 : ${with_no_leaks:=yes}
10710 echo "$as_me:10710: result: ${with_dbmalloc:-no}" >&5
10711 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
10713 case .$with_cflags in #(vi
10715 case .$CFLAGS in #(vi
10723 cf_new_extra_cppflags=
10725 for cf_add_cflags in -g
10727 case $cf_fix_cppflags in
10729 case $cf_add_cflags in #(vi
10730 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10731 case $cf_add_cflags in
10733 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10735 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10736 && test -z "${cf_tst_cflags}" \
10737 && cf_fix_cppflags=yes
10739 if test $cf_fix_cppflags = yes ; then
10740 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10742 elif test "${cf_tst_cflags}" = "\"'" ; then
10743 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10748 case "$CPPFLAGS" in
10749 *$cf_add_cflags) #(vi
10752 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10757 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10762 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10764 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10766 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10767 && test -z "${cf_tst_cflags}" \
10768 && cf_fix_cppflags=no
10773 if test -n "$cf_new_cflags" ; then
10775 CFLAGS="$CFLAGS $cf_new_cflags"
10778 if test -n "$cf_new_cppflags" ; then
10780 CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
10783 if test -n "$cf_new_extra_cppflags" ; then
10785 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10793 if test "$with_dbmalloc" = yes ; then
10794 echo "$as_me:10794: checking for dbmalloc.h" >&5
10795 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
10796 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
10797 echo $ECHO_N "(cached) $ECHO_C" >&6
10799 cat >conftest.$ac_ext <<_ACEOF
10800 #line 10800 "configure"
10801 #include "confdefs.h"
10802 #include <dbmalloc.h>
10804 if { (eval echo "$as_me:10804: \"$ac_cpp conftest.$ac_ext\"") >&5
10805 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10807 egrep -v '^ *\+' conftest.er1 >conftest.err
10809 cat conftest.err >&5
10810 echo "$as_me:10810: \$? = $ac_status" >&5
10811 (exit $ac_status); } >/dev/null; then
10812 if test -s conftest.err; then
10813 ac_cpp_err=$ac_c_preproc_warn_flag
10820 if test -z "$ac_cpp_err"; then
10821 ac_cv_header_dbmalloc_h=yes
10823 echo "$as_me: failed program was:" >&5
10824 cat conftest.$ac_ext >&5
10825 ac_cv_header_dbmalloc_h=no
10827 rm -f conftest.err conftest.$ac_ext
10829 echo "$as_me:10829: result: $ac_cv_header_dbmalloc_h" >&5
10830 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
10831 if test $ac_cv_header_dbmalloc_h = yes; then
10833 echo "$as_me:10833: checking for debug_malloc in -ldbmalloc" >&5
10834 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
10835 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
10836 echo $ECHO_N "(cached) $ECHO_C" >&6
10838 ac_check_lib_save_LIBS=$LIBS
10839 LIBS="-ldbmalloc $LIBS"
10840 cat >conftest.$ac_ext <<_ACEOF
10841 #line 10841 "configure"
10842 #include "confdefs.h"
10844 /* Override any gcc2 internal prototype to avoid an error. */
10848 /* We use char because int might match the return type of a gcc2
10849 builtin and then its argument prototype would still apply. */
10850 char debug_malloc ();
10859 rm -f conftest.$ac_objext conftest$ac_exeext
10860 if { (eval echo "$as_me:10860: \"$ac_link\"") >&5
10861 (eval $ac_link) 2>&5
10863 echo "$as_me:10863: \$? = $ac_status" >&5
10864 (exit $ac_status); } &&
10865 { ac_try='test -s conftest$ac_exeext'
10866 { (eval echo "$as_me:10866: \"$ac_try\"") >&5
10867 (eval $ac_try) 2>&5
10869 echo "$as_me:10869: \$? = $ac_status" >&5
10870 (exit $ac_status); }; }; then
10871 ac_cv_lib_dbmalloc_debug_malloc=yes
10873 echo "$as_me: failed program was:" >&5
10874 cat conftest.$ac_ext >&5
10875 ac_cv_lib_dbmalloc_debug_malloc=no
10877 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10878 LIBS=$ac_check_lib_save_LIBS
10880 echo "$as_me:10880: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
10881 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
10882 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
10883 cat >>confdefs.h <<EOF
10884 #define HAVE_LIBDBMALLOC 1
10887 LIBS="-ldbmalloc $LIBS"
10895 echo "$as_me:10895: checking if you want to use valgrind for testing" >&5
10896 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
10898 # Check whether --with-valgrind or --without-valgrind was given.
10899 if test "${with_valgrind+set}" = set; then
10900 withval="$with_valgrind"
10901 cat >>confdefs.h <<\EOF
10902 #define USE_VALGRIND 1
10905 : ${with_cflags:=-g}
10906 : ${with_no_leaks:=yes}
10911 echo "$as_me:10911: result: ${with_valgrind:-no}" >&5
10912 echo "${ECHO_T}${with_valgrind:-no}" >&6
10914 case .$with_cflags in #(vi
10916 case .$CFLAGS in #(vi
10924 cf_new_extra_cppflags=
10926 for cf_add_cflags in -g
10928 case $cf_fix_cppflags in
10930 case $cf_add_cflags in #(vi
10931 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10932 case $cf_add_cflags in
10934 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10936 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10937 && test -z "${cf_tst_cflags}" \
10938 && cf_fix_cppflags=yes
10940 if test $cf_fix_cppflags = yes ; then
10941 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10943 elif test "${cf_tst_cflags}" = "\"'" ; then
10944 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10949 case "$CPPFLAGS" in
10950 *$cf_add_cflags) #(vi
10953 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10958 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10963 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10965 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10967 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10968 && test -z "${cf_tst_cflags}" \
10969 && cf_fix_cppflags=no
10974 if test -n "$cf_new_cflags" ; then
10976 CFLAGS="$CFLAGS $cf_new_cflags"
10979 if test -n "$cf_new_cppflags" ; then
10981 CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
10984 if test -n "$cf_new_extra_cppflags" ; then
10986 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10994 echo "$as_me:10994: checking if you want to perform memory-leak testing" >&5
10995 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
10997 # Check whether --enable-leaks or --disable-leaks was given.
10998 if test "${enable_leaks+set}" = set; then
10999 enableval="$enable_leaks"
11002 : ${with_no_leaks:=no}
11004 echo "$as_me:11004: result: $with_no_leaks" >&5
11005 echo "${ECHO_T}$with_no_leaks" >&6
11007 if test "$with_no_leaks" = yes ; then
11008 cat >>confdefs.h <<\EOF
11014 cat >>confdefs.h <<\EOF
11015 #define HAVE_NC_ALLOC_H 1
11018 ### use option --enable-expanded to generate certain macros as functions
11020 # Check whether --enable-expanded or --disable-expanded was given.
11021 if test "${enable_expanded+set}" = set; then
11022 enableval="$enable_expanded"
11023 test "$enableval" = yes && cat >>confdefs.h <<\EOF
11024 #define NCURSES_EXPANDED 1
11029 ### use option --disable-macros to suppress macros in favor of functions
11031 # Check whether --enable-macros or --disable-macros was given.
11032 if test "${enable_macros+set}" = set; then
11033 enableval="$enable_macros"
11034 test "$enableval" = no && cat >>confdefs.h <<\EOF
11035 #define NCURSES_NOMACROS 1
11040 # Normally we only add trace() to the debug-library. Allow this to be
11041 # extended to all models of the ncurses library:
11043 case "$CFLAGS $CPPFLAGS" in
11049 echo "$as_me:11049: checking whether to add trace feature to all models" >&5
11050 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
11052 # Check whether --with-trace or --without-trace was given.
11053 if test "${with_trace+set}" = set; then
11054 withval="$with_trace"
11055 cf_with_trace=$withval
11057 cf_with_trace=$cf_all_traces
11059 echo "$as_me:11059: result: $cf_with_trace" >&5
11060 echo "${ECHO_T}$cf_with_trace" >&6
11062 if test "$cf_with_trace" = yes ; then
11069 cf_new_extra_cppflags=
11071 for cf_add_cflags in -DTRACE
11073 case $cf_fix_cppflags in
11075 case $cf_add_cflags in #(vi
11076 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11077 case $cf_add_cflags in
11079 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11081 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11082 && test -z "${cf_tst_cflags}" \
11083 && cf_fix_cppflags=yes
11085 if test $cf_fix_cppflags = yes ; then
11086 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11088 elif test "${cf_tst_cflags}" = "\"'" ; then
11089 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11094 case "$CPPFLAGS" in
11095 *$cf_add_cflags) #(vi
11098 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11103 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11108 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11110 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11112 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11113 && test -z "${cf_tst_cflags}" \
11114 && cf_fix_cppflags=no
11119 if test -n "$cf_new_cflags" ; then
11121 CFLAGS="$CFLAGS $cf_new_cflags"
11124 if test -n "$cf_new_cppflags" ; then
11126 CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
11129 if test -n "$cf_new_extra_cppflags" ; then
11131 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11139 ### Checks for libraries.
11140 echo "$as_me:11140: checking for gettimeofday" >&5
11141 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
11142 if test "${ac_cv_func_gettimeofday+set}" = set; then
11143 echo $ECHO_N "(cached) $ECHO_C" >&6
11145 cat >conftest.$ac_ext <<_ACEOF
11146 #line 11146 "configure"
11147 #include "confdefs.h"
11148 /* System header to define __stub macros and hopefully few prototypes,
11149 which can conflict with char gettimeofday (); below. */
11150 #include <assert.h>
11151 /* Override any gcc2 internal prototype to avoid an error. */
11155 /* We use char because int might match the return type of a gcc2
11156 builtin and then its argument prototype would still apply. */
11157 char gettimeofday ();
11163 /* The GNU C library defines this for functions which it implements
11164 to always fail with ENOSYS. Some functions are actually named
11165 something starting with __ and the normal name is an alias. */
11166 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
11176 rm -f conftest.$ac_objext conftest$ac_exeext
11177 if { (eval echo "$as_me:11177: \"$ac_link\"") >&5
11178 (eval $ac_link) 2>&5
11180 echo "$as_me:11180: \$? = $ac_status" >&5
11181 (exit $ac_status); } &&
11182 { ac_try='test -s conftest$ac_exeext'
11183 { (eval echo "$as_me:11183: \"$ac_try\"") >&5
11184 (eval $ac_try) 2>&5
11186 echo "$as_me:11186: \$? = $ac_status" >&5
11187 (exit $ac_status); }; }; then
11188 ac_cv_func_gettimeofday=yes
11190 echo "$as_me: failed program was:" >&5
11191 cat conftest.$ac_ext >&5
11192 ac_cv_func_gettimeofday=no
11194 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11196 echo "$as_me:11196: result: $ac_cv_func_gettimeofday" >&5
11197 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
11198 if test $ac_cv_func_gettimeofday = yes; then
11199 cat >>confdefs.h <<\EOF
11200 #define HAVE_GETTIMEOFDAY 1
11205 echo "$as_me:11205: checking for gettimeofday in -lbsd" >&5
11206 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
11207 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
11208 echo $ECHO_N "(cached) $ECHO_C" >&6
11210 ac_check_lib_save_LIBS=$LIBS
11212 cat >conftest.$ac_ext <<_ACEOF
11213 #line 11213 "configure"
11214 #include "confdefs.h"
11216 /* Override any gcc2 internal prototype to avoid an error. */
11220 /* We use char because int might match the return type of a gcc2
11221 builtin and then its argument prototype would still apply. */
11222 char gettimeofday ();
11231 rm -f conftest.$ac_objext conftest$ac_exeext
11232 if { (eval echo "$as_me:11232: \"$ac_link\"") >&5
11233 (eval $ac_link) 2>&5
11235 echo "$as_me:11235: \$? = $ac_status" >&5
11236 (exit $ac_status); } &&
11237 { ac_try='test -s conftest$ac_exeext'
11238 { (eval echo "$as_me:11238: \"$ac_try\"") >&5
11239 (eval $ac_try) 2>&5
11241 echo "$as_me:11241: \$? = $ac_status" >&5
11242 (exit $ac_status); }; }; then
11243 ac_cv_lib_bsd_gettimeofday=yes
11245 echo "$as_me: failed program was:" >&5
11246 cat conftest.$ac_ext >&5
11247 ac_cv_lib_bsd_gettimeofday=no
11249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11250 LIBS=$ac_check_lib_save_LIBS
11252 echo "$as_me:11252: result: $ac_cv_lib_bsd_gettimeofday" >&5
11253 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
11254 if test $ac_cv_lib_bsd_gettimeofday = yes; then
11255 cat >>confdefs.h <<\EOF
11256 #define HAVE_GETTIMEOFDAY 1
11264 echo "$as_me:11264: checking if -lm needed for math functions" >&5
11265 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
11266 if test "${cf_cv_need_libm+set}" = set; then
11267 echo $ECHO_N "(cached) $ECHO_C" >&6
11270 cat >conftest.$ac_ext <<_ACEOF
11271 #line 11271 "configure"
11272 #include "confdefs.h"
11280 double x = rand(); printf("result = %g\n", sin(x))
11285 rm -f conftest.$ac_objext conftest$ac_exeext
11286 if { (eval echo "$as_me:11286: \"$ac_link\"") >&5
11287 (eval $ac_link) 2>&5
11289 echo "$as_me:11289: \$? = $ac_status" >&5
11290 (exit $ac_status); } &&
11291 { ac_try='test -s conftest$ac_exeext'
11292 { (eval echo "$as_me:11292: \"$ac_try\"") >&5
11293 (eval $ac_try) 2>&5
11295 echo "$as_me:11295: \$? = $ac_status" >&5
11296 (exit $ac_status); }; }; then
11299 echo "$as_me: failed program was:" >&5
11300 cat conftest.$ac_ext >&5
11301 cf_cv_need_libm=yes
11303 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11305 echo "$as_me:11305: result: $cf_cv_need_libm" >&5
11306 echo "${ECHO_T}$cf_cv_need_libm" >&6
11307 if test "$cf_cv_need_libm" = yes
11312 ### Checks for header files.
11313 echo "$as_me:11313: checking for ANSI C header files" >&5
11314 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11315 if test "${ac_cv_header_stdc+set}" = set; then
11316 echo $ECHO_N "(cached) $ECHO_C" >&6
11318 cat >conftest.$ac_ext <<_ACEOF
11319 #line 11319 "configure"
11320 #include "confdefs.h"
11321 #include <stdlib.h>
11322 #include <stdarg.h>
11323 #include <string.h>
11327 if { (eval echo "$as_me:11327: \"$ac_cpp conftest.$ac_ext\"") >&5
11328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11330 egrep -v '^ *\+' conftest.er1 >conftest.err
11332 cat conftest.err >&5
11333 echo "$as_me:11333: \$? = $ac_status" >&5
11334 (exit $ac_status); } >/dev/null; then
11335 if test -s conftest.err; then
11336 ac_cpp_err=$ac_c_preproc_warn_flag
11343 if test -z "$ac_cpp_err"; then
11344 ac_cv_header_stdc=yes
11346 echo "$as_me: failed program was:" >&5
11347 cat conftest.$ac_ext >&5
11348 ac_cv_header_stdc=no
11350 rm -f conftest.err conftest.$ac_ext
11352 if test $ac_cv_header_stdc = yes; then
11353 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11354 cat >conftest.$ac_ext <<_ACEOF
11355 #line 11355 "configure"
11356 #include "confdefs.h"
11357 #include <string.h>
11360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11361 egrep "memchr" >/dev/null 2>&1; then
11364 ac_cv_header_stdc=no
11370 if test $ac_cv_header_stdc = yes; then
11371 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11372 cat >conftest.$ac_ext <<_ACEOF
11373 #line 11373 "configure"
11374 #include "confdefs.h"
11375 #include <stdlib.h>
11378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11379 egrep "free" >/dev/null 2>&1; then
11382 ac_cv_header_stdc=no
11388 if test $ac_cv_header_stdc = yes; then
11389 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11390 if test "$cross_compiling" = yes; then
11393 cat >conftest.$ac_ext <<_ACEOF
11394 #line 11394 "configure"
11395 #include "confdefs.h"
11397 #if ((' ' & 0x0FF) == 0x020)
11398 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11399 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11401 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
11402 || ('j' <= (c) && (c) <= 'r') \
11403 || ('s' <= (c) && (c) <= 'z'))
11404 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11407 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11412 for (i = 0; i < 256; i++)
11413 if (XOR (islower (i), ISLOWER (i))
11414 || toupper (i) != TOUPPER (i))
11415 $ac_main_return(2);
11416 $ac_main_return (0);
11419 rm -f conftest$ac_exeext
11420 if { (eval echo "$as_me:11420: \"$ac_link\"") >&5
11421 (eval $ac_link) 2>&5
11423 echo "$as_me:11423: \$? = $ac_status" >&5
11424 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11425 { (eval echo "$as_me:11425: \"$ac_try\"") >&5
11426 (eval $ac_try) 2>&5
11428 echo "$as_me:11428: \$? = $ac_status" >&5
11429 (exit $ac_status); }; }; then
11432 echo "$as_me: program exited with status $ac_status" >&5
11433 echo "$as_me: failed program was:" >&5
11434 cat conftest.$ac_ext >&5
11435 ac_cv_header_stdc=no
11437 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11441 echo "$as_me:11441: result: $ac_cv_header_stdc" >&5
11442 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11443 if test $ac_cv_header_stdc = yes; then
11445 cat >>confdefs.h <<\EOF
11446 #define STDC_HEADERS 1
11451 ac_header_dirent=no
11452 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11453 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11454 echo "$as_me:11454: checking for $ac_hdr that defines DIR" >&5
11455 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11457 echo $ECHO_N "(cached) $ECHO_C" >&6
11459 cat >conftest.$ac_ext <<_ACEOF
11460 #line 11460 "configure"
11461 #include "confdefs.h"
11462 #include <sys/types.h>
11474 rm -f conftest.$ac_objext
11475 if { (eval echo "$as_me:11475: \"$ac_compile\"") >&5
11476 (eval $ac_compile) 2>&5
11478 echo "$as_me:11478: \$? = $ac_status" >&5
11479 (exit $ac_status); } &&
11480 { ac_try='test -s conftest.$ac_objext'
11481 { (eval echo "$as_me:11481: \"$ac_try\"") >&5
11482 (eval $ac_try) 2>&5
11484 echo "$as_me:11484: \$? = $ac_status" >&5
11485 (exit $ac_status); }; }; then
11486 eval "$as_ac_Header=yes"
11488 echo "$as_me: failed program was:" >&5
11489 cat conftest.$ac_ext >&5
11490 eval "$as_ac_Header=no"
11492 rm -f conftest.$ac_objext conftest.$ac_ext
11494 echo "$as_me:11494: result: `eval echo '${'$as_ac_Header'}'`" >&5
11495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11496 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11497 cat >>confdefs.h <<EOF
11498 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11501 ac_header_dirent=$ac_hdr; break
11505 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11506 if test $ac_header_dirent = dirent.h; then
11507 echo "$as_me:11507: checking for opendir in -ldir" >&5
11508 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
11509 if test "${ac_cv_lib_dir_opendir+set}" = set; then
11510 echo $ECHO_N "(cached) $ECHO_C" >&6
11512 ac_check_lib_save_LIBS=$LIBS
11514 cat >conftest.$ac_ext <<_ACEOF
11515 #line 11515 "configure"
11516 #include "confdefs.h"
11518 /* Override any gcc2 internal prototype to avoid an error. */
11522 /* We use char because int might match the return type of a gcc2
11523 builtin and then its argument prototype would still apply. */
11533 rm -f conftest.$ac_objext conftest$ac_exeext
11534 if { (eval echo "$as_me:11534: \"$ac_link\"") >&5
11535 (eval $ac_link) 2>&5
11537 echo "$as_me:11537: \$? = $ac_status" >&5
11538 (exit $ac_status); } &&
11539 { ac_try='test -s conftest$ac_exeext'
11540 { (eval echo "$as_me:11540: \"$ac_try\"") >&5
11541 (eval $ac_try) 2>&5
11543 echo "$as_me:11543: \$? = $ac_status" >&5
11544 (exit $ac_status); }; }; then
11545 ac_cv_lib_dir_opendir=yes
11547 echo "$as_me: failed program was:" >&5
11548 cat conftest.$ac_ext >&5
11549 ac_cv_lib_dir_opendir=no
11551 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11552 LIBS=$ac_check_lib_save_LIBS
11554 echo "$as_me:11554: result: $ac_cv_lib_dir_opendir" >&5
11555 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
11556 if test $ac_cv_lib_dir_opendir = yes; then
11561 echo "$as_me:11561: checking for opendir in -lx" >&5
11562 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
11563 if test "${ac_cv_lib_x_opendir+set}" = set; then
11564 echo $ECHO_N "(cached) $ECHO_C" >&6
11566 ac_check_lib_save_LIBS=$LIBS
11568 cat >conftest.$ac_ext <<_ACEOF
11569 #line 11569 "configure"
11570 #include "confdefs.h"
11572 /* Override any gcc2 internal prototype to avoid an error. */
11576 /* We use char because int might match the return type of a gcc2
11577 builtin and then its argument prototype would still apply. */
11587 rm -f conftest.$ac_objext conftest$ac_exeext
11588 if { (eval echo "$as_me:11588: \"$ac_link\"") >&5
11589 (eval $ac_link) 2>&5
11591 echo "$as_me:11591: \$? = $ac_status" >&5
11592 (exit $ac_status); } &&
11593 { ac_try='test -s conftest$ac_exeext'
11594 { (eval echo "$as_me:11594: \"$ac_try\"") >&5
11595 (eval $ac_try) 2>&5
11597 echo "$as_me:11597: \$? = $ac_status" >&5
11598 (exit $ac_status); }; }; then
11599 ac_cv_lib_x_opendir=yes
11601 echo "$as_me: failed program was:" >&5
11602 cat conftest.$ac_ext >&5
11603 ac_cv_lib_x_opendir=no
11605 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11606 LIBS=$ac_check_lib_save_LIBS
11608 echo "$as_me:11608: result: $ac_cv_lib_x_opendir" >&5
11609 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
11610 if test $ac_cv_lib_x_opendir = yes; then
11616 echo "$as_me:11616: checking whether time.h and sys/time.h may both be included" >&5
11617 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11618 if test "${ac_cv_header_time+set}" = set; then
11619 echo $ECHO_N "(cached) $ECHO_C" >&6
11621 cat >conftest.$ac_ext <<_ACEOF
11622 #line 11622 "configure"
11623 #include "confdefs.h"
11624 #include <sys/types.h>
11625 #include <sys/time.h>
11631 if ((struct tm *) 0)
11637 rm -f conftest.$ac_objext
11638 if { (eval echo "$as_me:11638: \"$ac_compile\"") >&5
11639 (eval $ac_compile) 2>&5
11641 echo "$as_me:11641: \$? = $ac_status" >&5
11642 (exit $ac_status); } &&
11643 { ac_try='test -s conftest.$ac_objext'
11644 { (eval echo "$as_me:11644: \"$ac_try\"") >&5
11645 (eval $ac_try) 2>&5
11647 echo "$as_me:11647: \$? = $ac_status" >&5
11648 (exit $ac_status); }; }; then
11649 ac_cv_header_time=yes
11651 echo "$as_me: failed program was:" >&5
11652 cat conftest.$ac_ext >&5
11653 ac_cv_header_time=no
11655 rm -f conftest.$ac_objext conftest.$ac_ext
11657 echo "$as_me:11657: result: $ac_cv_header_time" >&5
11658 echo "${ECHO_T}$ac_cv_header_time" >&6
11659 if test $ac_cv_header_time = yes; then
11661 cat >>confdefs.h <<\EOF
11662 #define TIME_WITH_SYS_TIME 1
11667 echo "$as_me:11667: checking for regular-expression headers" >&5
11668 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
11669 if test "${cf_cv_regex+set}" = set; then
11670 echo $ECHO_N "(cached) $ECHO_C" >&6
11673 cat >conftest.$ac_ext <<_ACEOF
11674 #line 11674 "configure"
11675 #include "confdefs.h"
11676 #include <sys/types.h>
11683 int x = regcomp(p, "", 0);
11684 int y = regexec(p, "", 0, 0, 0);
11691 rm -f conftest.$ac_objext conftest$ac_exeext
11692 if { (eval echo "$as_me:11692: \"$ac_link\"") >&5
11693 (eval $ac_link) 2>&5
11695 echo "$as_me:11695: \$? = $ac_status" >&5
11696 (exit $ac_status); } &&
11697 { ac_try='test -s conftest$ac_exeext'
11698 { (eval echo "$as_me:11698: \"$ac_try\"") >&5
11699 (eval $ac_try) 2>&5
11701 echo "$as_me:11701: \$? = $ac_status" >&5
11702 (exit $ac_status); }; }; then
11703 cf_cv_regex="regex.h"
11705 echo "$as_me: failed program was:" >&5
11706 cat conftest.$ac_ext >&5
11708 cat >conftest.$ac_ext <<_ACEOF
11709 #line 11709 "configure"
11710 #include "confdefs.h"
11711 #include <regexp.h>
11716 char *p = compile("", "", "", 0);
11717 int x = step("", "");
11723 rm -f conftest.$ac_objext conftest$ac_exeext
11724 if { (eval echo "$as_me:11724: \"$ac_link\"") >&5
11725 (eval $ac_link) 2>&5
11727 echo "$as_me:11727: \$? = $ac_status" >&5
11728 (exit $ac_status); } &&
11729 { ac_try='test -s conftest$ac_exeext'
11730 { (eval echo "$as_me:11730: \"$ac_try\"") >&5
11731 (eval $ac_try) 2>&5
11733 echo "$as_me:11733: \$? = $ac_status" >&5
11734 (exit $ac_status); }; }; then
11735 cf_cv_regex="regexp.h"
11737 echo "$as_me: failed program was:" >&5
11738 cat conftest.$ac_ext >&5
11740 cf_save_LIBS="$LIBS"
11742 cat >conftest.$ac_ext <<_ACEOF
11743 #line 11743 "configure"
11744 #include "confdefs.h"
11745 #include <regexpr.h>
11750 char *p = compile("", "", "");
11751 int x = step("", "");
11757 rm -f conftest.$ac_objext conftest$ac_exeext
11758 if { (eval echo "$as_me:11758: \"$ac_link\"") >&5
11759 (eval $ac_link) 2>&5
11761 echo "$as_me:11761: \$? = $ac_status" >&5
11762 (exit $ac_status); } &&
11763 { ac_try='test -s conftest$ac_exeext'
11764 { (eval echo "$as_me:11764: \"$ac_try\"") >&5
11765 (eval $ac_try) 2>&5
11767 echo "$as_me:11767: \$? = $ac_status" >&5
11768 (exit $ac_status); }; }; then
11769 cf_cv_regex="regexpr.h"
11771 echo "$as_me: failed program was:" >&5
11772 cat conftest.$ac_ext >&5
11773 LIBS="$cf_save_LIBS"
11775 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11779 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11783 echo "$as_me:11783: result: $cf_cv_regex" >&5
11784 echo "${ECHO_T}$cf_cv_regex" >&6
11785 case $cf_cv_regex in
11786 regex.h) cat >>confdefs.h <<\EOF
11787 #define HAVE_REGEX_H_FUNCS 1
11790 regexp.h) cat >>confdefs.h <<\EOF
11791 #define HAVE_REGEXP_H_FUNCS 1
11794 regexpr.h) cat >>confdefs.h <<\EOF
11795 #define HAVE_REGEXPR_H_FUNCS 1
11818 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11819 echo "$as_me:11819: checking for $ac_header" >&5
11820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11822 echo $ECHO_N "(cached) $ECHO_C" >&6
11824 cat >conftest.$ac_ext <<_ACEOF
11825 #line 11825 "configure"
11826 #include "confdefs.h"
11827 #include <$ac_header>
11829 if { (eval echo "$as_me:11829: \"$ac_cpp conftest.$ac_ext\"") >&5
11830 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11832 egrep -v '^ *\+' conftest.er1 >conftest.err
11834 cat conftest.err >&5
11835 echo "$as_me:11835: \$? = $ac_status" >&5
11836 (exit $ac_status); } >/dev/null; then
11837 if test -s conftest.err; then
11838 ac_cpp_err=$ac_c_preproc_warn_flag
11845 if test -z "$ac_cpp_err"; then
11846 eval "$as_ac_Header=yes"
11848 echo "$as_me: failed program was:" >&5
11849 cat conftest.$ac_ext >&5
11850 eval "$as_ac_Header=no"
11852 rm -f conftest.err conftest.$ac_ext
11854 echo "$as_me:11854: result: `eval echo '${'$as_ac_Header'}'`" >&5
11855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11857 cat >>confdefs.h <<EOF
11858 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11864 # check for ISC (this may also define _POSIX_SOURCE)
11865 # Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
11866 if test "$ISC" = yes ; then
11868 echo "$as_me:11868: checking for main in -lcposix" >&5
11869 echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6
11870 if test "${ac_cv_lib_cposix_main+set}" = set; then
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11873 ac_check_lib_save_LIBS=$LIBS
11874 LIBS="-lcposix $LIBS"
11875 cat >conftest.$ac_ext <<_ACEOF
11876 #line 11876 "configure"
11877 #include "confdefs.h"
11887 rm -f conftest.$ac_objext conftest$ac_exeext
11888 if { (eval echo "$as_me:11888: \"$ac_link\"") >&5
11889 (eval $ac_link) 2>&5
11891 echo "$as_me:11891: \$? = $ac_status" >&5
11892 (exit $ac_status); } &&
11893 { ac_try='test -s conftest$ac_exeext'
11894 { (eval echo "$as_me:11894: \"$ac_try\"") >&5
11895 (eval $ac_try) 2>&5
11897 echo "$as_me:11897: \$? = $ac_status" >&5
11898 (exit $ac_status); }; }; then
11899 ac_cv_lib_cposix_main=yes
11901 echo "$as_me: failed program was:" >&5
11902 cat conftest.$ac_ext >&5
11903 ac_cv_lib_cposix_main=no
11905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11906 LIBS=$ac_check_lib_save_LIBS
11908 echo "$as_me:11908: result: $ac_cv_lib_cposix_main" >&5
11909 echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6
11910 if test $ac_cv_lib_cposix_main = yes; then
11911 cat >>confdefs.h <<EOF
11912 #define HAVE_LIBCPOSIX 1
11915 LIBS="-lcposix $LIBS"
11919 echo "$as_me:11919: checking for bzero in -linet" >&5
11920 echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6
11921 if test "${ac_cv_lib_inet_bzero+set}" = set; then
11922 echo $ECHO_N "(cached) $ECHO_C" >&6
11924 ac_check_lib_save_LIBS=$LIBS
11925 LIBS="-linet $LIBS"
11926 cat >conftest.$ac_ext <<_ACEOF
11927 #line 11927 "configure"
11928 #include "confdefs.h"
11930 /* Override any gcc2 internal prototype to avoid an error. */
11934 /* We use char because int might match the return type of a gcc2
11935 builtin and then its argument prototype would still apply. */
11945 rm -f conftest.$ac_objext conftest$ac_exeext
11946 if { (eval echo "$as_me:11946: \"$ac_link\"") >&5
11947 (eval $ac_link) 2>&5
11949 echo "$as_me:11949: \$? = $ac_status" >&5
11950 (exit $ac_status); } &&
11951 { ac_try='test -s conftest$ac_exeext'
11952 { (eval echo "$as_me:11952: \"$ac_try\"") >&5
11953 (eval $ac_try) 2>&5
11955 echo "$as_me:11955: \$? = $ac_status" >&5
11956 (exit $ac_status); }; }; then
11957 ac_cv_lib_inet_bzero=yes
11959 echo "$as_me: failed program was:" >&5
11960 cat conftest.$ac_ext >&5
11961 ac_cv_lib_inet_bzero=no
11963 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11964 LIBS=$ac_check_lib_save_LIBS
11966 echo "$as_me:11966: result: $ac_cv_lib_inet_bzero" >&5
11967 echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6
11968 if test $ac_cv_lib_inet_bzero = yes; then
11969 LIBS="$LIBS -linet"
11973 echo "$as_me:11973: checking if sys/time.h works with sys/select.h" >&5
11974 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
11975 if test "${cf_cv_sys_time_select+set}" = set; then
11976 echo $ECHO_N "(cached) $ECHO_C" >&6
11979 cat >conftest.$ac_ext <<_ACEOF
11980 #line 11980 "configure"
11981 #include "confdefs.h"
11983 #include <sys/types.h>
11984 #ifdef HAVE_SYS_TIME_H
11985 #include <sys/time.h>
11987 #ifdef HAVE_SYS_SELECT_H
11988 #include <sys/select.h>
11999 rm -f conftest.$ac_objext
12000 if { (eval echo "$as_me:12000: \"$ac_compile\"") >&5
12001 (eval $ac_compile) 2>&5
12003 echo "$as_me:12003: \$? = $ac_status" >&5
12004 (exit $ac_status); } &&
12005 { ac_try='test -s conftest.$ac_objext'
12006 { (eval echo "$as_me:12006: \"$ac_try\"") >&5
12007 (eval $ac_try) 2>&5
12009 echo "$as_me:12009: \$? = $ac_status" >&5
12010 (exit $ac_status); }; }; then
12011 cf_cv_sys_time_select=yes
12013 echo "$as_me: failed program was:" >&5
12014 cat conftest.$ac_ext >&5
12015 cf_cv_sys_time_select=no
12017 rm -f conftest.$ac_objext conftest.$ac_ext
12021 echo "$as_me:12021: result: $cf_cv_sys_time_select" >&5
12022 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
12023 test "$cf_cv_sys_time_select" = yes && cat >>confdefs.h <<\EOF
12024 #define HAVE_SYS_TIME_SELECT 1
12027 ### checks for compiler characteristics
12029 ac_cpp='$CPP $CPPFLAGS'
12030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12033 ac_main_return=return
12035 echo "$as_me:12035: checking for $CC option to accept ANSI C" >&5
12036 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12037 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12038 echo $ECHO_N "(cached) $ECHO_C" >&6
12040 ac_cv_prog_cc_stdc=no
12042 cat >conftest.$ac_ext <<_ACEOF
12043 #line 12043 "configure"
12044 #include "confdefs.h"
12045 #include <stdarg.h>
12047 #include <sys/types.h>
12048 #include <sys/stat.h>
12049 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12050 struct buf { int x; };
12051 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12052 static char *e (p, i)
12058 static char *f (char * (*g) (char **, int), char **p, ...)
12063 s = g (p, va_arg (v,int));
12067 int test (int i, double x);
12068 struct s1 {int (*f) (int a);};
12069 struct s2 {int (*f) (double a);};
12070 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12076 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12081 # Don't try gcc -ansi; that turns off useful extensions and
12082 # breaks some systems' header files.
12083 # AIX -qlanglvl=ansi
12084 # Ultrix and OSF/1 -std1
12085 # HP-UX 10.20 and later -Ae
12086 # HP-UX older versions -Aa -D_HPUX_SOURCE
12087 # SVR4 -Xc -D__EXTENSIONS__
12088 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12090 CC="$ac_save_CC $ac_arg"
12091 rm -f conftest.$ac_objext
12092 if { (eval echo "$as_me:12092: \"$ac_compile\"") >&5
12093 (eval $ac_compile) 2>&5
12095 echo "$as_me:12095: \$? = $ac_status" >&5
12096 (exit $ac_status); } &&
12097 { ac_try='test -s conftest.$ac_objext'
12098 { (eval echo "$as_me:12098: \"$ac_try\"") >&5
12099 (eval $ac_try) 2>&5
12101 echo "$as_me:12101: \$? = $ac_status" >&5
12102 (exit $ac_status); }; }; then
12103 ac_cv_prog_cc_stdc=$ac_arg
12106 echo "$as_me: failed program was:" >&5
12107 cat conftest.$ac_ext >&5
12109 rm -f conftest.$ac_objext
12111 rm -f conftest.$ac_ext conftest.$ac_objext
12116 case "x$ac_cv_prog_cc_stdc" in
12118 echo "$as_me:12118: result: none needed" >&5
12119 echo "${ECHO_T}none needed" >&6 ;;
12121 echo "$as_me:12121: result: $ac_cv_prog_cc_stdc" >&5
12122 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12123 CC="$CC $ac_cv_prog_cc_stdc" ;;
12126 echo "$as_me:12126: checking for an ANSI C-conforming const" >&5
12127 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12128 if test "${ac_cv_c_const+set}" = set; then
12129 echo $ECHO_N "(cached) $ECHO_C" >&6
12131 cat >conftest.$ac_ext <<_ACEOF
12132 #line 12132 "configure"
12133 #include "confdefs.h"
12138 /* FIXME: Include the comments suggested by Paul. */
12139 #ifndef __cplusplus
12140 /* Ultrix mips cc rejects this. */
12141 typedef int charset[2];
12143 /* SunOS 4.1.1 cc rejects this. */
12144 char const *const *ccp;
12146 /* NEC SVR4.0.2 mips cc rejects this. */
12147 struct point {int x, y;};
12148 static struct point const zero = {0,0};
12149 /* AIX XL C 1.02.0.0 rejects this.
12150 It does not let you subtract one const X* pointer from another in
12151 an arm of an if-expression whose if-part is not a constant
12153 const char *g = "string";
12154 ccp = &g + (g ? g-g : 0);
12155 /* HPUX 7.0 cc rejects these. */
12158 ccp = (char const *const *) p;
12159 { /* SCO 3.2v4 cc rejects this. */
12161 char const *s = 0 ? (char *) 0 : (char const *) 0;
12165 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12166 int x[] = {25, 17};
12167 const int *foo = &x[0];
12170 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12171 typedef const int *iptr;
12175 { /* AIX XL C 1.02.0.0 rejects this saying
12176 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12177 struct s { int j; const int *ap[3]; };
12178 struct s *b; b->j = 5;
12180 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12181 const int foo = 10;
12189 rm -f conftest.$ac_objext
12190 if { (eval echo "$as_me:12190: \"$ac_compile\"") >&5
12191 (eval $ac_compile) 2>&5
12193 echo "$as_me:12193: \$? = $ac_status" >&5
12194 (exit $ac_status); } &&
12195 { ac_try='test -s conftest.$ac_objext'
12196 { (eval echo "$as_me:12196: \"$ac_try\"") >&5
12197 (eval $ac_try) 2>&5
12199 echo "$as_me:12199: \$? = $ac_status" >&5
12200 (exit $ac_status); }; }; then
12203 echo "$as_me: failed program was:" >&5
12204 cat conftest.$ac_ext >&5
12207 rm -f conftest.$ac_objext conftest.$ac_ext
12209 echo "$as_me:12209: result: $ac_cv_c_const" >&5
12210 echo "${ECHO_T}$ac_cv_c_const" >&6
12211 if test $ac_cv_c_const = no; then
12213 cat >>confdefs.h <<\EOF
12219 echo "$as_me:12219: checking for inline" >&5
12220 echo $ECHO_N "checking for inline... $ECHO_C" >&6
12221 if test "${ac_cv_c_inline+set}" = set; then
12222 echo $ECHO_N "(cached) $ECHO_C" >&6
12225 for ac_kw in inline __inline__ __inline; do
12226 cat >conftest.$ac_ext <<_ACEOF
12227 #line 12227 "configure"
12228 #include "confdefs.h"
12229 #ifndef __cplusplus
12230 static $ac_kw int static_foo () {return 0; }
12231 $ac_kw int foo () {return 0; }
12235 rm -f conftest.$ac_objext
12236 if { (eval echo "$as_me:12236: \"$ac_compile\"") >&5
12237 (eval $ac_compile) 2>&5
12239 echo "$as_me:12239: \$? = $ac_status" >&5
12240 (exit $ac_status); } &&
12241 { ac_try='test -s conftest.$ac_objext'
12242 { (eval echo "$as_me:12242: \"$ac_try\"") >&5
12243 (eval $ac_try) 2>&5
12245 echo "$as_me:12245: \$? = $ac_status" >&5
12246 (exit $ac_status); }; }; then
12247 ac_cv_c_inline=$ac_kw; break
12249 echo "$as_me: failed program was:" >&5
12250 cat conftest.$ac_ext >&5
12252 rm -f conftest.$ac_objext conftest.$ac_ext
12256 echo "$as_me:12256: result: $ac_cv_c_inline" >&5
12257 echo "${ECHO_T}$ac_cv_c_inline" >&6
12258 case $ac_cv_c_inline in
12261 cat >>confdefs.h <<\EOF
12265 *) cat >>confdefs.h <<EOF
12266 #define inline $ac_cv_c_inline
12272 if test "$ac_cv_c_inline" != no ; then
12273 NCURSES_INLINE=inline
12274 if test "$INTEL_COMPILER" = yes
12277 elif test "$GCC" = yes
12279 echo "$as_me:12279: checking if gcc supports options to tune inlining" >&5
12280 echo $ECHO_N "checking if gcc supports options to tune inlining... $ECHO_C" >&6
12281 if test "${cf_cv_gcc_inline+set}" = set; then
12282 echo $ECHO_N "(cached) $ECHO_C" >&6
12285 cf_save_CFLAGS=$CFLAGS
12286 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
12287 cat >conftest.$ac_ext <<_ACEOF
12288 #line 12288 "configure"
12289 #include "confdefs.h"
12290 inline int foo(void) { return 1; }
12294 ${cf_cv_main_return:-return} foo()
12299 rm -f conftest.$ac_objext
12300 if { (eval echo "$as_me:12300: \"$ac_compile\"") >&5
12301 (eval $ac_compile) 2>&5
12303 echo "$as_me:12303: \$? = $ac_status" >&5
12304 (exit $ac_status); } &&
12305 { ac_try='test -s conftest.$ac_objext'
12306 { (eval echo "$as_me:12306: \"$ac_try\"") >&5
12307 (eval $ac_try) 2>&5
12309 echo "$as_me:12309: \$? = $ac_status" >&5
12310 (exit $ac_status); }; }; then
12311 cf_cv_gcc_inline=yes
12313 echo "$as_me: failed program was:" >&5
12314 cat conftest.$ac_ext >&5
12315 cf_cv_gcc_inline=no
12317 rm -f conftest.$ac_objext conftest.$ac_ext
12318 CFLAGS=$cf_save_CFLAGS
12321 echo "$as_me:12321: result: $cf_cv_gcc_inline" >&5
12322 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
12323 if test "$cf_cv_gcc_inline" = yes ; then
12328 cf_new_extra_cppflags=
12330 for cf_add_cflags in --param max-inline-insns-single=1200
12332 case $cf_fix_cppflags in
12334 case $cf_add_cflags in #(vi
12335 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
12336 case $cf_add_cflags in
12338 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12340 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12341 && test -z "${cf_tst_cflags}" \
12342 && cf_fix_cppflags=yes
12344 if test $cf_fix_cppflags = yes ; then
12345 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12347 elif test "${cf_tst_cflags}" = "\"'" ; then
12348 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12353 case "$CPPFLAGS" in
12354 *$cf_add_cflags) #(vi
12357 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12362 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12367 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12369 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12371 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12372 && test -z "${cf_tst_cflags}" \
12373 && cf_fix_cppflags=no
12378 if test -n "$cf_new_cflags" ; then
12380 CFLAGS="$CFLAGS $cf_new_cflags"
12383 if test -n "$cf_new_cppflags" ; then
12385 CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
12388 if test -n "$cf_new_extra_cppflags" ; then
12390 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12397 echo "$as_me:12397: checking for signal global datatype" >&5
12398 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
12399 if test "${cf_cv_sig_atomic_t+set}" = set; then
12400 echo $ECHO_N "(cached) $ECHO_C" >&6
12404 "volatile sig_atomic_t" \
12408 cat >conftest.$ac_ext <<_ACEOF
12409 #line 12409 "configure"
12410 #include "confdefs.h"
12412 #include <sys/types.h>
12413 #include <signal.h>
12418 static void handler(int sig)
12425 signal(SIGINT, handler);
12431 rm -f conftest.$ac_objext
12432 if { (eval echo "$as_me:12432: \"$ac_compile\"") >&5
12433 (eval $ac_compile) 2>&5
12435 echo "$as_me:12435: \$? = $ac_status" >&5
12436 (exit $ac_status); } &&
12437 { ac_try='test -s conftest.$ac_objext'
12438 { (eval echo "$as_me:12438: \"$ac_try\"") >&5
12439 (eval $ac_try) 2>&5
12441 echo "$as_me:12441: \$? = $ac_status" >&5
12442 (exit $ac_status); }; }; then
12443 cf_cv_sig_atomic_t=$cf_type
12445 echo "$as_me: failed program was:" >&5
12446 cat conftest.$ac_ext >&5
12447 cf_cv_sig_atomic_t=no
12449 rm -f conftest.$ac_objext conftest.$ac_ext
12450 test "$cf_cv_sig_atomic_t" != no && break
12455 echo "$as_me:12455: result: $cf_cv_sig_atomic_t" >&5
12456 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
12457 test "$cf_cv_sig_atomic_t" != no && cat >>confdefs.h <<EOF
12458 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
12461 if test $NCURSES_CHTYPE = auto ; then
12463 echo "$as_me:12463: checking for type of chtype" >&5
12464 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
12465 if test "${cf_cv_typeof_chtype+set}" = set; then
12466 echo $ECHO_N "(cached) $ECHO_C" >&6
12469 if test "$cross_compiling" = yes; then
12470 cf_cv_typeof_chtype=long
12472 cat >conftest.$ac_ext <<_ACEOF
12473 #line 12473 "configure"
12474 #include "confdefs.h"
12476 #define WANT_BITS 31
12480 FILE *fp = fopen("cf_test.out", "w");
12482 char *result = "long";
12483 if (sizeof(unsigned long) > sizeof(unsigned int)) {
12486 for (n = 0; n < WANT_BITS; n++) {
12489 if (y != 1 || x == 0) {
12495 * If x is nonzero, an int is big enough for the bits
12498 result = (x != 0) ? "int" : "long";
12503 ${cf_cv_main_return:-return}(0);
12507 rm -f conftest$ac_exeext
12508 if { (eval echo "$as_me:12508: \"$ac_link\"") >&5
12509 (eval $ac_link) 2>&5
12511 echo "$as_me:12511: \$? = $ac_status" >&5
12512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12513 { (eval echo "$as_me:12513: \"$ac_try\"") >&5
12514 (eval $ac_try) 2>&5
12516 echo "$as_me:12516: \$? = $ac_status" >&5
12517 (exit $ac_status); }; }; then
12518 cf_cv_typeof_chtype=`cat cf_test.out`
12520 echo "$as_me: program exited with status $ac_status" >&5
12521 echo "$as_me: failed program was:" >&5
12522 cat conftest.$ac_ext >&5
12523 cf_cv_typeof_chtype=long
12525 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12531 echo "$as_me:12531: result: $cf_cv_typeof_chtype" >&5
12532 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
12534 cat >>confdefs.h <<EOF
12535 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
12539 cf_cv_typeof_chtype=$NCURSES_CHTYPE
12541 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
12543 echo "$as_me:12543: checking if unsigned literals are legal" >&5
12544 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
12545 if test "${cf_cv_unsigned_literals+set}" = set; then
12546 echo $ECHO_N "(cached) $ECHO_C" >&6
12549 cat >conftest.$ac_ext <<_ACEOF
12550 #line 12550 "configure"
12551 #include "confdefs.h"
12556 long x = 1L + 1UL + 1U + 1
12561 rm -f conftest.$ac_objext
12562 if { (eval echo "$as_me:12562: \"$ac_compile\"") >&5
12563 (eval $ac_compile) 2>&5
12565 echo "$as_me:12565: \$? = $ac_status" >&5
12566 (exit $ac_status); } &&
12567 { ac_try='test -s conftest.$ac_objext'
12568 { (eval echo "$as_me:12568: \"$ac_try\"") >&5
12569 (eval $ac_try) 2>&5
12571 echo "$as_me:12571: \$? = $ac_status" >&5
12572 (exit $ac_status); }; }; then
12573 cf_cv_unsigned_literals=yes
12575 echo "$as_me: failed program was:" >&5
12576 cat conftest.$ac_ext >&5
12577 cf_cv_unsigned_literals=no
12579 rm -f conftest.$ac_objext conftest.$ac_ext
12583 echo "$as_me:12583: result: $cf_cv_unsigned_literals" >&5
12584 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
12587 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
12588 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
12590 if test $NCURSES_MMASK_T = auto ; then
12591 cf_cv_typeof_mmask_t=long
12593 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
12595 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
12597 ### Checks for external-data
12599 echo "$as_me:12599: checking if external errno is declared" >&5
12600 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
12601 if test "${cf_cv_dcl_errno+set}" = set; then
12602 echo $ECHO_N "(cached) $ECHO_C" >&6
12605 cat >conftest.$ac_ext <<_ACEOF
12606 #line 12606 "configure"
12607 #include "confdefs.h"
12609 #ifdef HAVE_STDLIB_H
12610 #include <stdlib.h>
12613 #include <sys/types.h>
12618 int x = (int) errno
12623 rm -f conftest.$ac_objext
12624 if { (eval echo "$as_me:12624: \"$ac_compile\"") >&5
12625 (eval $ac_compile) 2>&5
12627 echo "$as_me:12627: \$? = $ac_status" >&5
12628 (exit $ac_status); } &&
12629 { ac_try='test -s conftest.$ac_objext'
12630 { (eval echo "$as_me:12630: \"$ac_try\"") >&5
12631 (eval $ac_try) 2>&5
12633 echo "$as_me:12633: \$? = $ac_status" >&5
12634 (exit $ac_status); }; }; then
12635 cf_cv_dcl_errno=yes
12637 echo "$as_me: failed program was:" >&5
12638 cat conftest.$ac_ext >&5
12641 rm -f conftest.$ac_objext conftest.$ac_ext
12644 echo "$as_me:12644: result: $cf_cv_dcl_errno" >&5
12645 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
12647 if test "$cf_cv_dcl_errno" = no ; then
12649 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
12651 cat >>confdefs.h <<EOF
12652 #define $cf_result 1
12657 # It's possible (for near-UNIX clones) that the data doesn't exist
12659 echo "$as_me:12659: checking if external errno exists" >&5
12660 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
12661 if test "${cf_cv_have_errno+set}" = set; then
12662 echo $ECHO_N "(cached) $ECHO_C" >&6
12665 cat >conftest.$ac_ext <<_ACEOF
12666 #line 12666 "configure"
12667 #include "confdefs.h"
12680 rm -f conftest.$ac_objext conftest$ac_exeext
12681 if { (eval echo "$as_me:12681: \"$ac_link\"") >&5
12682 (eval $ac_link) 2>&5
12684 echo "$as_me:12684: \$? = $ac_status" >&5
12685 (exit $ac_status); } &&
12686 { ac_try='test -s conftest$ac_exeext'
12687 { (eval echo "$as_me:12687: \"$ac_try\"") >&5
12688 (eval $ac_try) 2>&5
12690 echo "$as_me:12690: \$? = $ac_status" >&5
12691 (exit $ac_status); }; }; then
12692 cf_cv_have_errno=yes
12694 echo "$as_me: failed program was:" >&5
12695 cat conftest.$ac_ext >&5
12696 cf_cv_have_errno=no
12698 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12701 echo "$as_me:12701: result: $cf_cv_have_errno" >&5
12702 echo "${ECHO_T}$cf_cv_have_errno" >&6
12704 if test "$cf_cv_have_errno" = yes ; then
12706 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
12708 cat >>confdefs.h <<EOF
12709 #define $cf_result 1
12714 echo "$as_me:12714: checking if data-only library module links" >&5
12715 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
12716 if test "${cf_cv_link_dataonly+set}" = set; then
12717 echo $ECHO_N "(cached) $ECHO_C" >&6
12721 cat >conftest.$ac_ext <<EOF
12722 #line 12722 "configure"
12723 int testdata[3] = { 123, 456, 789 };
12725 if { (eval echo "$as_me:12725: \"$ac_compile\"") >&5
12726 (eval $ac_compile) 2>&5
12728 echo "$as_me:12728: \$? = $ac_status" >&5
12729 (exit $ac_status); } ; then
12730 mv conftest.o data.o && \
12731 ( $AR $AR_OPTS conftest.a data.o ) 2>&5 1>/dev/null
12733 rm -f conftest.$ac_ext data.o
12734 cat >conftest.$ac_ext <<EOF
12735 #line 12735 "configure"
12739 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
12741 extern int testdata[3];
12742 return testdata[0] == 123
12743 && testdata[1] == 456
12744 && testdata[2] == 789;
12748 if { (eval echo "$as_me:12748: \"$ac_compile\"") >&5
12749 (eval $ac_compile) 2>&5
12751 echo "$as_me:12751: \$? = $ac_status" >&5
12752 (exit $ac_status); }; then
12753 mv conftest.o func.o && \
12754 ( $AR $AR_OPTS conftest.a func.o ) 2>&5 1>/dev/null
12756 rm -f conftest.$ac_ext func.o
12757 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
12758 cf_saveLIBS="$LIBS"
12759 LIBS="conftest.a $LIBS"
12760 if test "$cross_compiling" = yes; then
12761 cf_cv_link_dataonly=unknown
12763 cat >conftest.$ac_ext <<_ACEOF
12764 #line 12764 "configure"
12765 #include "confdefs.h"
12769 extern int testfunc();
12770 ${cf_cv_main_return:-return} (!testfunc());
12774 rm -f conftest$ac_exeext
12775 if { (eval echo "$as_me:12775: \"$ac_link\"") >&5
12776 (eval $ac_link) 2>&5
12778 echo "$as_me:12778: \$? = $ac_status" >&5
12779 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12780 { (eval echo "$as_me:12780: \"$ac_try\"") >&5
12781 (eval $ac_try) 2>&5
12783 echo "$as_me:12783: \$? = $ac_status" >&5
12784 (exit $ac_status); }; }; then
12785 cf_cv_link_dataonly=yes
12787 echo "$as_me: program exited with status $ac_status" >&5
12788 echo "$as_me: failed program was:" >&5
12789 cat conftest.$ac_ext >&5
12790 cf_cv_link_dataonly=no
12792 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12794 LIBS="$cf_saveLIBS"
12798 echo "$as_me:12798: result: $cf_cv_link_dataonly" >&5
12799 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
12801 if test "$cf_cv_link_dataonly" = no ; then
12802 cat >>confdefs.h <<\EOF
12803 #define BROKEN_LINKER 1
12809 ### Checks for library functions.
12832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12833 echo "$as_me:12833: checking for $ac_func" >&5
12834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12835 if eval "test \"\${$as_ac_var+set}\" = set"; then
12836 echo $ECHO_N "(cached) $ECHO_C" >&6
12838 cat >conftest.$ac_ext <<_ACEOF
12839 #line 12839 "configure"
12840 #include "confdefs.h"
12841 /* System header to define __stub macros and hopefully few prototypes,
12842 which can conflict with char $ac_func (); below. */
12843 #include <assert.h>
12844 /* Override any gcc2 internal prototype to avoid an error. */
12848 /* We use char because int might match the return type of a gcc2
12849 builtin and then its argument prototype would still apply. */
12856 /* The GNU C library defines this for functions which it implements
12857 to always fail with ENOSYS. Some functions are actually named
12858 something starting with __ and the normal name is an alias. */
12859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12869 rm -f conftest.$ac_objext conftest$ac_exeext
12870 if { (eval echo "$as_me:12870: \"$ac_link\"") >&5
12871 (eval $ac_link) 2>&5
12873 echo "$as_me:12873: \$? = $ac_status" >&5
12874 (exit $ac_status); } &&
12875 { ac_try='test -s conftest$ac_exeext'
12876 { (eval echo "$as_me:12876: \"$ac_try\"") >&5
12877 (eval $ac_try) 2>&5
12879 echo "$as_me:12879: \$? = $ac_status" >&5
12880 (exit $ac_status); }; }; then
12881 eval "$as_ac_var=yes"
12883 echo "$as_me: failed program was:" >&5
12884 cat conftest.$ac_ext >&5
12885 eval "$as_ac_var=no"
12887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12889 echo "$as_me:12889: result: `eval echo '${'$as_ac_var'}'`" >&5
12890 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12891 if test `eval echo '${'$as_ac_var'}'` = yes; then
12892 cat >>confdefs.h <<EOF
12893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12899 if test "$with_getcap" = "yes" ; then
12901 echo "$as_me:12901: checking for terminal-capability database functions" >&5
12902 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
12903 if test "${cf_cv_cgetent+set}" = set; then
12904 echo $ECHO_N "(cached) $ECHO_C" >&6
12907 cat >conftest.$ac_ext <<_ACEOF
12908 #line 12908 "configure"
12909 #include "confdefs.h"
12911 #include <stdlib.h>
12918 char *db_array = temp;
12919 cgetent(&buf, /* int *, */ &db_array, "vt100");
12920 cgetcap(buf, "tc", '=');
12921 cgetmatch(buf, "tc");
12927 rm -f conftest.$ac_objext conftest$ac_exeext
12928 if { (eval echo "$as_me:12928: \"$ac_link\"") >&5
12929 (eval $ac_link) 2>&5
12931 echo "$as_me:12931: \$? = $ac_status" >&5
12932 (exit $ac_status); } &&
12933 { ac_try='test -s conftest$ac_exeext'
12934 { (eval echo "$as_me:12934: \"$ac_try\"") >&5
12935 (eval $ac_try) 2>&5
12937 echo "$as_me:12937: \$? = $ac_status" >&5
12938 (exit $ac_status); }; }; then
12941 echo "$as_me: failed program was:" >&5
12942 cat conftest.$ac_ext >&5
12945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12949 echo "$as_me:12949: result: $cf_cv_cgetent" >&5
12950 echo "${ECHO_T}$cf_cv_cgetent" >&6
12951 test "$cf_cv_cgetent" = yes && cat >>confdefs.h <<\EOF
12952 #define HAVE_BSD_CGETENT 1
12957 echo "$as_me:12957: checking for isascii" >&5
12958 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
12959 if test "${cf_cv_have_isascii+set}" = set; then
12960 echo $ECHO_N "(cached) $ECHO_C" >&6
12963 cat >conftest.$ac_ext <<_ACEOF
12964 #line 12964 "configure"
12965 #include "confdefs.h"
12970 int x = isascii(' ')
12975 rm -f conftest.$ac_objext conftest$ac_exeext
12976 if { (eval echo "$as_me:12976: \"$ac_link\"") >&5
12977 (eval $ac_link) 2>&5
12979 echo "$as_me:12979: \$? = $ac_status" >&5
12980 (exit $ac_status); } &&
12981 { ac_try='test -s conftest$ac_exeext'
12982 { (eval echo "$as_me:12982: \"$ac_try\"") >&5
12983 (eval $ac_try) 2>&5
12985 echo "$as_me:12985: \$? = $ac_status" >&5
12986 (exit $ac_status); }; }; then
12987 cf_cv_have_isascii=yes
12989 echo "$as_me: failed program was:" >&5
12990 cat conftest.$ac_ext >&5
12991 cf_cv_have_isascii=no
12993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12996 echo "$as_me:12996: result: $cf_cv_have_isascii" >&5
12997 echo "${ECHO_T}$cf_cv_have_isascii" >&6
12998 test "$cf_cv_have_isascii" = yes && cat >>confdefs.h <<\EOF
12999 #define HAVE_ISASCII 1
13002 if test "$ac_cv_func_sigaction" = yes; then
13003 echo "$as_me:13003: checking whether sigaction needs _POSIX_SOURCE" >&5
13004 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
13005 cat >conftest.$ac_ext <<_ACEOF
13006 #line 13006 "configure"
13007 #include "confdefs.h"
13009 #include <sys/types.h>
13010 #include <signal.h>
13014 struct sigaction act
13019 rm -f conftest.$ac_objext
13020 if { (eval echo "$as_me:13020: \"$ac_compile\"") >&5
13021 (eval $ac_compile) 2>&5
13023 echo "$as_me:13023: \$? = $ac_status" >&5
13024 (exit $ac_status); } &&
13025 { ac_try='test -s conftest.$ac_objext'
13026 { (eval echo "$as_me:13026: \"$ac_try\"") >&5
13027 (eval $ac_try) 2>&5
13029 echo "$as_me:13029: \$? = $ac_status" >&5
13030 (exit $ac_status); }; }; then
13033 echo "$as_me: failed program was:" >&5
13034 cat conftest.$ac_ext >&5
13036 cat >conftest.$ac_ext <<_ACEOF
13037 #line 13037 "configure"
13038 #include "confdefs.h"
13040 #define _POSIX_SOURCE
13041 #include <sys/types.h>
13042 #include <signal.h>
13046 struct sigaction act
13051 rm -f conftest.$ac_objext
13052 if { (eval echo "$as_me:13052: \"$ac_compile\"") >&5
13053 (eval $ac_compile) 2>&5
13055 echo "$as_me:13055: \$? = $ac_status" >&5
13056 (exit $ac_status); } &&
13057 { ac_try='test -s conftest.$ac_objext'
13058 { (eval echo "$as_me:13058: \"$ac_try\"") >&5
13059 (eval $ac_try) 2>&5
13061 echo "$as_me:13061: \$? = $ac_status" >&5
13062 (exit $ac_status); }; }; then
13064 cat >>confdefs.h <<\EOF
13065 #define SVR4_ACTION 1
13069 echo "$as_me: failed program was:" >&5
13070 cat conftest.$ac_ext >&5
13073 rm -f conftest.$ac_objext conftest.$ac_ext
13075 rm -f conftest.$ac_objext conftest.$ac_ext
13076 echo "$as_me:13076: result: $sigact_bad" >&5
13077 echo "${ECHO_T}$sigact_bad" >&6
13080 echo "$as_me:13080: checking if nanosleep really works" >&5
13081 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
13082 if test "${cf_cv_func_nanosleep+set}" = set; then
13083 echo $ECHO_N "(cached) $ECHO_C" >&6
13086 if test "$cross_compiling" = yes; then
13087 cf_cv_func_nanosleep=unknown
13089 cat >conftest.$ac_ext <<_ACEOF
13090 #line 13090 "configure"
13091 #include "confdefs.h"
13097 #ifdef HAVE_SYS_TIME_H
13098 #include <sys/time.h>
13102 struct timespec ts1, ts2;
13105 ts1.tv_nsec = 750000000;
13109 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
13110 ${cf_cv_main_return:-return}(code != 0);
13114 rm -f conftest$ac_exeext
13115 if { (eval echo "$as_me:13115: \"$ac_link\"") >&5
13116 (eval $ac_link) 2>&5
13118 echo "$as_me:13118: \$? = $ac_status" >&5
13119 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13120 { (eval echo "$as_me:13120: \"$ac_try\"") >&5
13121 (eval $ac_try) 2>&5
13123 echo "$as_me:13123: \$? = $ac_status" >&5
13124 (exit $ac_status); }; }; then
13125 cf_cv_func_nanosleep=yes
13127 echo "$as_me: program exited with status $ac_status" >&5
13128 echo "$as_me: failed program was:" >&5
13129 cat conftest.$ac_ext >&5
13130 cf_cv_func_nanosleep=no
13132 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13135 echo "$as_me:13135: result: $cf_cv_func_nanosleep" >&5
13136 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
13138 test "$cf_cv_func_nanosleep" = "yes" && cat >>confdefs.h <<\EOF
13139 #define HAVE_NANOSLEEP 1
13148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13149 echo "$as_me:13149: checking for $ac_header" >&5
13150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13152 echo $ECHO_N "(cached) $ECHO_C" >&6
13154 cat >conftest.$ac_ext <<_ACEOF
13155 #line 13155 "configure"
13156 #include "confdefs.h"
13157 #include <$ac_header>
13159 if { (eval echo "$as_me:13159: \"$ac_cpp conftest.$ac_ext\"") >&5
13160 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13162 egrep -v '^ *\+' conftest.er1 >conftest.err
13164 cat conftest.err >&5
13165 echo "$as_me:13165: \$? = $ac_status" >&5
13166 (exit $ac_status); } >/dev/null; then
13167 if test -s conftest.err; then
13168 ac_cpp_err=$ac_c_preproc_warn_flag
13175 if test -z "$ac_cpp_err"; then
13176 eval "$as_ac_Header=yes"
13178 echo "$as_me: failed program was:" >&5
13179 cat conftest.$ac_ext >&5
13180 eval "$as_ac_Header=no"
13182 rm -f conftest.err conftest.$ac_ext
13184 echo "$as_me:13184: result: `eval echo '${'$as_ac_Header'}'`" >&5
13185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13186 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13187 cat >>confdefs.h <<EOF
13188 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13194 if test "$ISC" = yes ; then
13196 for ac_header in sys/termio.h
13198 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13199 echo "$as_me:13199: checking for $ac_header" >&5
13200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13202 echo $ECHO_N "(cached) $ECHO_C" >&6
13204 cat >conftest.$ac_ext <<_ACEOF
13205 #line 13205 "configure"
13206 #include "confdefs.h"
13207 #include <$ac_header>
13209 if { (eval echo "$as_me:13209: \"$ac_cpp conftest.$ac_ext\"") >&5
13210 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13212 egrep -v '^ *\+' conftest.er1 >conftest.err
13214 cat conftest.err >&5
13215 echo "$as_me:13215: \$? = $ac_status" >&5
13216 (exit $ac_status); } >/dev/null; then
13217 if test -s conftest.err; then
13218 ac_cpp_err=$ac_c_preproc_warn_flag
13225 if test -z "$ac_cpp_err"; then
13226 eval "$as_ac_Header=yes"
13228 echo "$as_me: failed program was:" >&5
13229 cat conftest.$ac_ext >&5
13230 eval "$as_ac_Header=no"
13232 rm -f conftest.err conftest.$ac_ext
13234 echo "$as_me:13234: result: `eval echo '${'$as_ac_Header'}'`" >&5
13235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13237 cat >>confdefs.h <<EOF
13238 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13245 if test "$ac_cv_header_termios_h" = yes ; then
13246 case "$CFLAGS $CPPFLAGS" in
13248 termios_bad=dunno ;;
13249 *) termios_bad=maybe ;;
13251 if test "$termios_bad" = maybe ; then
13252 echo "$as_me:13252: checking whether termios.h needs _POSIX_SOURCE" >&5
13253 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
13254 cat >conftest.$ac_ext <<_ACEOF
13255 #line 13255 "configure"
13256 #include "confdefs.h"
13257 #include <termios.h>
13261 struct termios foo; int x = foo.c_iflag
13266 rm -f conftest.$ac_objext
13267 if { (eval echo "$as_me:13267: \"$ac_compile\"") >&5
13268 (eval $ac_compile) 2>&5
13270 echo "$as_me:13270: \$? = $ac_status" >&5
13271 (exit $ac_status); } &&
13272 { ac_try='test -s conftest.$ac_objext'
13273 { (eval echo "$as_me:13273: \"$ac_try\"") >&5
13274 (eval $ac_try) 2>&5
13276 echo "$as_me:13276: \$? = $ac_status" >&5
13277 (exit $ac_status); }; }; then
13280 echo "$as_me: failed program was:" >&5
13281 cat conftest.$ac_ext >&5
13283 cat >conftest.$ac_ext <<_ACEOF
13284 #line 13284 "configure"
13285 #include "confdefs.h"
13287 #define _POSIX_SOURCE
13288 #include <termios.h>
13292 struct termios foo; int x = foo.c_iflag
13297 rm -f conftest.$ac_objext
13298 if { (eval echo "$as_me:13298: \"$ac_compile\"") >&5
13299 (eval $ac_compile) 2>&5
13301 echo "$as_me:13301: \$? = $ac_status" >&5
13302 (exit $ac_status); } &&
13303 { ac_try='test -s conftest.$ac_objext'
13304 { (eval echo "$as_me:13304: \"$ac_try\"") >&5
13305 (eval $ac_try) 2>&5
13307 echo "$as_me:13307: \$? = $ac_status" >&5
13308 (exit $ac_status); }; }; then
13309 termios_bad=unknown
13311 echo "$as_me: failed program was:" >&5
13312 cat conftest.$ac_ext >&5
13313 termios_bad=yes cat >>confdefs.h <<\EOF
13314 #define SVR4_TERMIO 1
13318 rm -f conftest.$ac_objext conftest.$ac_ext
13321 rm -f conftest.$ac_objext conftest.$ac_ext
13322 echo "$as_me:13322: result: $termios_bad" >&5
13323 echo "${ECHO_T}$termios_bad" >&6
13327 echo "$as_me:13327: checking for tcgetattr" >&5
13328 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
13329 if test "${cf_cv_have_tcgetattr+set}" = set; then
13330 echo $ECHO_N "(cached) $ECHO_C" >&6
13333 cat >conftest.$ac_ext <<_ACEOF
13334 #line 13334 "configure"
13335 #include "confdefs.h"
13337 #include <sys/types.h>
13338 #ifdef HAVE_UNISTD_H
13339 #include <unistd.h>
13341 #ifdef HAVE_TERMIOS_H
13342 #include <termios.h>
13343 #define TTY struct termios
13345 #ifdef HAVE_TERMIO_H
13346 #include <termio.h>
13347 #define TTY struct termio
13356 tcgetattr(1, &foo);
13361 rm -f conftest.$ac_objext conftest$ac_exeext
13362 if { (eval echo "$as_me:13362: \"$ac_link\"") >&5
13363 (eval $ac_link) 2>&5
13365 echo "$as_me:13365: \$? = $ac_status" >&5
13366 (exit $ac_status); } &&
13367 { ac_try='test -s conftest$ac_exeext'
13368 { (eval echo "$as_me:13368: \"$ac_try\"") >&5
13369 (eval $ac_try) 2>&5
13371 echo "$as_me:13371: \$? = $ac_status" >&5
13372 (exit $ac_status); }; }; then
13373 cf_cv_have_tcgetattr=yes
13375 echo "$as_me: failed program was:" >&5
13376 cat conftest.$ac_ext >&5
13377 cf_cv_have_tcgetattr=no
13379 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13381 echo "$as_me:13381: result: $cf_cv_have_tcgetattr" >&5
13382 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
13383 test "$cf_cv_have_tcgetattr" = yes && cat >>confdefs.h <<\EOF
13384 #define HAVE_TCGETATTR 1
13387 echo "$as_me:13387: checking for vsscanf function or workaround" >&5
13388 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
13389 if test "${cf_cv_func_vsscanf+set}" = set; then
13390 echo $ECHO_N "(cached) $ECHO_C" >&6
13393 cat >conftest.$ac_ext <<_ACEOF
13394 #line 13394 "configure"
13395 #include "confdefs.h"
13397 #include <stdarg.h>
13404 vsscanf("from", "%d", ap)
13409 rm -f conftest.$ac_objext conftest$ac_exeext
13410 if { (eval echo "$as_me:13410: \"$ac_link\"") >&5
13411 (eval $ac_link) 2>&5
13413 echo "$as_me:13413: \$? = $ac_status" >&5
13414 (exit $ac_status); } &&
13415 { ac_try='test -s conftest$ac_exeext'
13416 { (eval echo "$as_me:13416: \"$ac_try\"") >&5
13417 (eval $ac_try) 2>&5
13419 echo "$as_me:13419: \$? = $ac_status" >&5
13420 (exit $ac_status); }; }; then
13421 cf_cv_func_vsscanf=vsscanf
13423 echo "$as_me: failed program was:" >&5
13424 cat conftest.$ac_ext >&5
13426 cat >conftest.$ac_ext <<_ACEOF
13427 #line 13427 "configure"
13428 #include "confdefs.h"
13430 #include <stdarg.h>
13437 char *str = "from";
13439 strbuf._flag = _IOREAD;
13440 strbuf._ptr = strbuf._base = (unsigned char *) str;
13441 strbuf._cnt = strlen(str);
13442 strbuf._file = _NFILE;
13443 return (vfscanf(&strbuf, "%d", ap))
13448 rm -f conftest.$ac_objext conftest$ac_exeext
13449 if { (eval echo "$as_me:13449: \"$ac_link\"") >&5
13450 (eval $ac_link) 2>&5
13452 echo "$as_me:13452: \$? = $ac_status" >&5
13453 (exit $ac_status); } &&
13454 { ac_try='test -s conftest$ac_exeext'
13455 { (eval echo "$as_me:13455: \"$ac_try\"") >&5
13456 (eval $ac_try) 2>&5
13458 echo "$as_me:13458: \$? = $ac_status" >&5
13459 (exit $ac_status); }; }; then
13460 cf_cv_func_vsscanf=vfscanf
13462 echo "$as_me: failed program was:" >&5
13463 cat conftest.$ac_ext >&5
13465 cat >conftest.$ac_ext <<_ACEOF
13466 #line 13466 "configure"
13467 #include "confdefs.h"
13469 #include <stdarg.h>
13476 char *str = "from";
13478 strbuf._flag = _IOREAD;
13479 strbuf._ptr = strbuf._base = (unsigned char *) str;
13480 strbuf._cnt = strlen(str);
13481 strbuf._file = _NFILE;
13482 return (_doscan(&strbuf, "%d", ap))
13487 rm -f conftest.$ac_objext conftest$ac_exeext
13488 if { (eval echo "$as_me:13488: \"$ac_link\"") >&5
13489 (eval $ac_link) 2>&5
13491 echo "$as_me:13491: \$? = $ac_status" >&5
13492 (exit $ac_status); } &&
13493 { ac_try='test -s conftest$ac_exeext'
13494 { (eval echo "$as_me:13494: \"$ac_try\"") >&5
13495 (eval $ac_try) 2>&5
13497 echo "$as_me:13497: \$? = $ac_status" >&5
13498 (exit $ac_status); }; }; then
13499 cf_cv_func_vsscanf=_doscan
13501 echo "$as_me: failed program was:" >&5
13502 cat conftest.$ac_ext >&5
13504 cf_cv_func_vsscanf=no
13506 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13510 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13512 echo "$as_me:13512: result: $cf_cv_func_vsscanf" >&5
13513 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
13515 case $cf_cv_func_vsscanf in #(vi
13516 vsscanf) cat >>confdefs.h <<\EOF
13517 #define HAVE_VSSCANF 1
13520 vfscanf) cat >>confdefs.h <<\EOF
13521 #define HAVE_VFSCANF 1
13524 _doscan) cat >>confdefs.h <<\EOF
13525 #define HAVE__DOSCAN 1
13530 echo "$as_me:13530: checking for working mkstemp" >&5
13531 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
13532 if test "${cf_cv_func_mkstemp+set}" = set; then
13533 echo $ECHO_N "(cached) $ECHO_C" >&6
13537 if test "$cross_compiling" = yes; then
13538 echo "$as_me:13538: checking for mkstemp" >&5
13539 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
13540 if test "${ac_cv_func_mkstemp+set}" = set; then
13541 echo $ECHO_N "(cached) $ECHO_C" >&6
13543 cat >conftest.$ac_ext <<_ACEOF
13544 #line 13544 "configure"
13545 #include "confdefs.h"
13546 /* System header to define __stub macros and hopefully few prototypes,
13547 which can conflict with char mkstemp (); below. */
13548 #include <assert.h>
13549 /* Override any gcc2 internal prototype to avoid an error. */
13553 /* We use char because int might match the return type of a gcc2
13554 builtin and then its argument prototype would still apply. */
13561 /* The GNU C library defines this for functions which it implements
13562 to always fail with ENOSYS. Some functions are actually named
13563 something starting with __ and the normal name is an alias. */
13564 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
13574 rm -f conftest.$ac_objext conftest$ac_exeext
13575 if { (eval echo "$as_me:13575: \"$ac_link\"") >&5
13576 (eval $ac_link) 2>&5
13578 echo "$as_me:13578: \$? = $ac_status" >&5
13579 (exit $ac_status); } &&
13580 { ac_try='test -s conftest$ac_exeext'
13581 { (eval echo "$as_me:13581: \"$ac_try\"") >&5
13582 (eval $ac_try) 2>&5
13584 echo "$as_me:13584: \$? = $ac_status" >&5
13585 (exit $ac_status); }; }; then
13586 ac_cv_func_mkstemp=yes
13588 echo "$as_me: failed program was:" >&5
13589 cat conftest.$ac_ext >&5
13590 ac_cv_func_mkstemp=no
13592 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13594 echo "$as_me:13594: result: $ac_cv_func_mkstemp" >&5
13595 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
13598 cat >conftest.$ac_ext <<_ACEOF
13599 #line 13599 "configure"
13600 #include "confdefs.h"
13602 #include <sys/types.h>
13603 #include <stdlib.h>
13605 #include <string.h>
13606 #include <sys/stat.h>
13609 char *tmpl = "conftestXXXXXX";
13617 for (n = 0; n < 2; ++n) {
13618 strcpy(name[n], tmpl);
13619 if ((fd = mkstemp(name[n])) >= 0) {
13620 if (!strcmp(name[n], tmpl)
13621 || stat(name[n], &sb) != 0
13622 || (sb.st_mode & S_IFMT) != S_IFREG
13623 || (sb.st_mode & 077) != 0) {
13630 && !strcmp(name[0], name[1]))
13632 ${cf_cv_main_return:-return}(result);
13636 rm -f conftest$ac_exeext
13637 if { (eval echo "$as_me:13637: \"$ac_link\"") >&5
13638 (eval $ac_link) 2>&5
13640 echo "$as_me:13640: \$? = $ac_status" >&5
13641 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13642 { (eval echo "$as_me:13642: \"$ac_try\"") >&5
13643 (eval $ac_try) 2>&5
13645 echo "$as_me:13645: \$? = $ac_status" >&5
13646 (exit $ac_status); }; }; then
13647 cf_cv_func_mkstemp=yes
13650 echo "$as_me: program exited with status $ac_status" >&5
13651 echo "$as_me: failed program was:" >&5
13652 cat conftest.$ac_ext >&5
13653 cf_cv_func_mkstemp=no
13656 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13660 echo "$as_me:13660: result: $cf_cv_func_mkstemp" >&5
13661 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
13662 if test "$cf_cv_func_mkstemp" = yes ; then
13663 cat >>confdefs.h <<\EOF
13664 #define HAVE_MKSTEMP 1
13669 # setup for prototype of fallback for vsscanf()
13671 if test "$cf_cv_func_vsscanf" = vsscanf ; then
13677 if test "$cross_compiling" = yes ; then
13678 { echo "$as_me:13678: WARNING: cross compiling: assume setvbuf params not reversed" >&5
13679 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
13681 echo "$as_me:13681: checking whether setvbuf arguments are reversed" >&5
13682 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
13683 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
13684 echo $ECHO_N "(cached) $ECHO_C" >&6
13686 if test "$cross_compiling" = yes; then
13687 { { echo "$as_me:13687: error: cannot run test program while cross compiling" >&5
13688 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13689 { (exit 1); exit 1; }; }
13691 cat >conftest.$ac_ext <<_ACEOF
13692 #line 13692 "configure"
13693 #include "confdefs.h"
13695 /* If setvbuf has the reversed format, exit 0. */
13699 /* This call has the arguments reversed.
13700 A reversed system may check and see that the address of main
13701 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
13702 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
13703 $ac_main_return(1);
13704 putc('\r', stdout);
13705 $ac_main_return(0); /* Non-reversed systems segv here. */
13708 rm -f conftest$ac_exeext
13709 if { (eval echo "$as_me:13709: \"$ac_link\"") >&5
13710 (eval $ac_link) 2>&5
13712 echo "$as_me:13712: \$? = $ac_status" >&5
13713 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13714 { (eval echo "$as_me:13714: \"$ac_try\"") >&5
13715 (eval $ac_try) 2>&5
13717 echo "$as_me:13717: \$? = $ac_status" >&5
13718 (exit $ac_status); }; }; then
13719 ac_cv_func_setvbuf_reversed=yes
13721 echo "$as_me: program exited with status $ac_status" >&5
13722 echo "$as_me: failed program was:" >&5
13723 cat conftest.$ac_ext >&5
13724 ac_cv_func_setvbuf_reversed=no
13726 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13728 rm -f core core.* *.core
13730 echo "$as_me:13730: result: $ac_cv_func_setvbuf_reversed" >&5
13731 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
13732 if test $ac_cv_func_setvbuf_reversed = yes; then
13734 cat >>confdefs.h <<\EOF
13735 #define SETVBUF_REVERSED 1
13741 echo "$as_me:13741: checking return type of signal handlers" >&5
13742 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13743 if test "${ac_cv_type_signal+set}" = set; then
13744 echo $ECHO_N "(cached) $ECHO_C" >&6
13746 cat >conftest.$ac_ext <<_ACEOF
13747 #line 13747 "configure"
13748 #include "confdefs.h"
13749 #include <sys/types.h>
13750 #include <signal.h>
13755 extern "C" void (*signal (int, void (*)(int)))(int);
13757 void (*signal ()) ();
13768 rm -f conftest.$ac_objext
13769 if { (eval echo "$as_me:13769: \"$ac_compile\"") >&5
13770 (eval $ac_compile) 2>&5
13772 echo "$as_me:13772: \$? = $ac_status" >&5
13773 (exit $ac_status); } &&
13774 { ac_try='test -s conftest.$ac_objext'
13775 { (eval echo "$as_me:13775: \"$ac_try\"") >&5
13776 (eval $ac_try) 2>&5
13778 echo "$as_me:13778: \$? = $ac_status" >&5
13779 (exit $ac_status); }; }; then
13780 ac_cv_type_signal=void
13782 echo "$as_me: failed program was:" >&5
13783 cat conftest.$ac_ext >&5
13784 ac_cv_type_signal=int
13786 rm -f conftest.$ac_objext conftest.$ac_ext
13788 echo "$as_me:13788: result: $ac_cv_type_signal" >&5
13789 echo "${ECHO_T}$ac_cv_type_signal" >&6
13791 cat >>confdefs.h <<EOF
13792 #define RETSIGTYPE $ac_cv_type_signal
13795 echo "$as_me:13795: checking for type sigaction_t" >&5
13796 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
13797 if test "${cf_cv_type_sigaction+set}" = set; then
13798 echo $ECHO_N "(cached) $ECHO_C" >&6
13801 cat >conftest.$ac_ext <<_ACEOF
13802 #line 13802 "configure"
13803 #include "confdefs.h"
13805 #include <signal.h>
13814 rm -f conftest.$ac_objext
13815 if { (eval echo "$as_me:13815: \"$ac_compile\"") >&5
13816 (eval $ac_compile) 2>&5
13818 echo "$as_me:13818: \$? = $ac_status" >&5
13819 (exit $ac_status); } &&
13820 { ac_try='test -s conftest.$ac_objext'
13821 { (eval echo "$as_me:13821: \"$ac_try\"") >&5
13822 (eval $ac_try) 2>&5
13824 echo "$as_me:13824: \$? = $ac_status" >&5
13825 (exit $ac_status); }; }; then
13826 cf_cv_type_sigaction=yes
13828 echo "$as_me: failed program was:" >&5
13829 cat conftest.$ac_ext >&5
13830 cf_cv_type_sigaction=no
13832 rm -f conftest.$ac_objext conftest.$ac_ext
13835 echo "$as_me:13835: result: $cf_cv_type_sigaction" >&5
13836 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
13837 test "$cf_cv_type_sigaction" = yes && cat >>confdefs.h <<\EOF
13838 #define HAVE_TYPE_SIGACTION 1
13841 echo "$as_me:13841: checking declaration of size-change" >&5
13842 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
13843 if test "${cf_cv_sizechange+set}" = set; then
13844 echo $ECHO_N "(cached) $ECHO_C" >&6
13847 cf_cv_sizechange=unknown
13848 cf_save_CPPFLAGS="$CPPFLAGS"
13850 for cf_opts in "" "NEED_PTEM_H"
13853 CPPFLAGS="$cf_save_CPPFLAGS"
13854 test -n "$cf_opts" && CPPFLAGS="$CPPFLAGS -D$cf_opts"
13855 cat >conftest.$ac_ext <<_ACEOF
13856 #line 13856 "configure"
13857 #include "confdefs.h"
13858 #include <sys/types.h>
13859 #ifdef HAVE_TERMIOS_H
13860 #include <termios.h>
13862 #ifdef HAVE_TERMIO_H
13863 #include <termio.h>
13867 /* This is a workaround for SCO: they neglected to define struct winsize in
13868 * termios.h -- it's only in termio.h and ptem.h
13870 #include <sys/stream.h>
13871 #include <sys/ptem.h>
13873 #if !defined(sun) || !defined(HAVE_TERMIOS_H)
13874 #include <sys/ioctl.h>
13882 struct ttysize win; /* FIXME: what system is this? */
13883 int y = win.ts_lines;
13884 int x = win.ts_cols;
13887 struct winsize win;
13888 int y = win.ws_row;
13889 int x = win.ws_col;
13891 no TIOCGSIZE or TIOCGWINSZ
13892 #endif /* TIOCGWINSZ */
13893 #endif /* TIOCGSIZE */
13899 rm -f conftest.$ac_objext
13900 if { (eval echo "$as_me:13900: \"$ac_compile\"") >&5
13901 (eval $ac_compile) 2>&5
13903 echo "$as_me:13903: \$? = $ac_status" >&5
13904 (exit $ac_status); } &&
13905 { ac_try='test -s conftest.$ac_objext'
13906 { (eval echo "$as_me:13906: \"$ac_try\"") >&5
13907 (eval $ac_try) 2>&5
13909 echo "$as_me:13909: \$? = $ac_status" >&5
13910 (exit $ac_status); }; }; then
13911 cf_cv_sizechange=yes
13913 echo "$as_me: failed program was:" >&5
13914 cat conftest.$ac_ext >&5
13915 cf_cv_sizechange=no
13917 rm -f conftest.$ac_objext conftest.$ac_ext
13919 CPPFLAGS="$cf_save_CPPFLAGS"
13920 if test "$cf_cv_sizechange" = yes ; then
13921 echo "size-change succeeded ($cf_opts)" >&5
13922 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
13928 echo "$as_me:13928: result: $cf_cv_sizechange" >&5
13929 echo "${ECHO_T}$cf_cv_sizechange" >&6
13930 if test "$cf_cv_sizechange" != no ; then
13931 cat >>confdefs.h <<\EOF
13932 #define HAVE_SIZECHANGE 1
13935 case $cf_cv_sizechange in #(vi
13937 cat >>confdefs.h <<EOF
13938 #define $cf_cv_sizechange 1
13945 echo "$as_me:13945: checking for memmove" >&5
13946 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
13947 if test "${ac_cv_func_memmove+set}" = set; then
13948 echo $ECHO_N "(cached) $ECHO_C" >&6
13950 cat >conftest.$ac_ext <<_ACEOF
13951 #line 13951 "configure"
13952 #include "confdefs.h"
13953 /* System header to define __stub macros and hopefully few prototypes,
13954 which can conflict with char memmove (); below. */
13955 #include <assert.h>
13956 /* Override any gcc2 internal prototype to avoid an error. */
13960 /* We use char because int might match the return type of a gcc2
13961 builtin and then its argument prototype would still apply. */
13968 /* The GNU C library defines this for functions which it implements
13969 to always fail with ENOSYS. Some functions are actually named
13970 something starting with __ and the normal name is an alias. */
13971 #if defined (__stub_memmove) || defined (__stub___memmove)
13981 rm -f conftest.$ac_objext conftest$ac_exeext
13982 if { (eval echo "$as_me:13982: \"$ac_link\"") >&5
13983 (eval $ac_link) 2>&5
13985 echo "$as_me:13985: \$? = $ac_status" >&5
13986 (exit $ac_status); } &&
13987 { ac_try='test -s conftest$ac_exeext'
13988 { (eval echo "$as_me:13988: \"$ac_try\"") >&5
13989 (eval $ac_try) 2>&5
13991 echo "$as_me:13991: \$? = $ac_status" >&5
13992 (exit $ac_status); }; }; then
13993 ac_cv_func_memmove=yes
13995 echo "$as_me: failed program was:" >&5
13996 cat conftest.$ac_ext >&5
13997 ac_cv_func_memmove=no
13999 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14001 echo "$as_me:14001: result: $ac_cv_func_memmove" >&5
14002 echo "${ECHO_T}$ac_cv_func_memmove" >&6
14003 if test $ac_cv_func_memmove = yes; then
14007 echo "$as_me:14007: checking for bcopy" >&5
14008 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
14009 if test "${ac_cv_func_bcopy+set}" = set; then
14010 echo $ECHO_N "(cached) $ECHO_C" >&6
14012 cat >conftest.$ac_ext <<_ACEOF
14013 #line 14013 "configure"
14014 #include "confdefs.h"
14015 /* System header to define __stub macros and hopefully few prototypes,
14016 which can conflict with char bcopy (); below. */
14017 #include <assert.h>
14018 /* Override any gcc2 internal prototype to avoid an error. */
14022 /* We use char because int might match the return type of a gcc2
14023 builtin and then its argument prototype would still apply. */
14030 /* The GNU C library defines this for functions which it implements
14031 to always fail with ENOSYS. Some functions are actually named
14032 something starting with __ and the normal name is an alias. */
14033 #if defined (__stub_bcopy) || defined (__stub___bcopy)
14043 rm -f conftest.$ac_objext conftest$ac_exeext
14044 if { (eval echo "$as_me:14044: \"$ac_link\"") >&5
14045 (eval $ac_link) 2>&5
14047 echo "$as_me:14047: \$? = $ac_status" >&5
14048 (exit $ac_status); } &&
14049 { ac_try='test -s conftest$ac_exeext'
14050 { (eval echo "$as_me:14050: \"$ac_try\"") >&5
14051 (eval $ac_try) 2>&5
14053 echo "$as_me:14053: \$? = $ac_status" >&5
14054 (exit $ac_status); }; }; then
14055 ac_cv_func_bcopy=yes
14057 echo "$as_me: failed program was:" >&5
14058 cat conftest.$ac_ext >&5
14059 ac_cv_func_bcopy=no
14061 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14063 echo "$as_me:14063: result: $ac_cv_func_bcopy" >&5
14064 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
14065 if test $ac_cv_func_bcopy = yes; then
14067 echo "$as_me:14067: checking if bcopy does overlapping moves" >&5
14068 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
14069 if test "${cf_cv_good_bcopy+set}" = set; then
14070 echo $ECHO_N "(cached) $ECHO_C" >&6
14073 if test "$cross_compiling" = yes; then
14074 cf_cv_good_bcopy=unknown
14076 cat >conftest.$ac_ext <<_ACEOF
14077 #line 14077 "configure"
14078 #include "confdefs.h"
14081 static char data[] = "abcdefghijklmnopqrstuwwxyz";
14083 bcopy(data, temp, sizeof(data));
14084 bcopy(temp+10, temp, 15);
14085 bcopy(temp+5, temp+15, 10);
14086 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
14090 rm -f conftest$ac_exeext
14091 if { (eval echo "$as_me:14091: \"$ac_link\"") >&5
14092 (eval $ac_link) 2>&5
14094 echo "$as_me:14094: \$? = $ac_status" >&5
14095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14096 { (eval echo "$as_me:14096: \"$ac_try\"") >&5
14097 (eval $ac_try) 2>&5
14099 echo "$as_me:14099: \$? = $ac_status" >&5
14100 (exit $ac_status); }; }; then
14101 cf_cv_good_bcopy=yes
14103 echo "$as_me: program exited with status $ac_status" >&5
14104 echo "$as_me: failed program was:" >&5
14105 cat conftest.$ac_ext >&5
14106 cf_cv_good_bcopy=no
14108 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14112 echo "$as_me:14112: result: $cf_cv_good_bcopy" >&5
14113 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
14116 cf_cv_good_bcopy=no
14119 if test "$cf_cv_good_bcopy" = yes ; then
14120 cat >>confdefs.h <<\EOF
14121 #define USE_OK_BCOPY 1
14125 cat >>confdefs.h <<\EOF
14126 #define USE_MY_MEMMOVE 1
14133 echo "$as_me:14133: checking if poll really works" >&5
14134 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
14135 if test "${cf_cv_working_poll+set}" = set; then
14136 echo $ECHO_N "(cached) $ECHO_C" >&6
14139 if test "$cross_compiling" = yes; then
14140 cf_cv_working_poll=unknown
14142 cat >conftest.$ac_ext <<_ACEOF
14143 #line 14143 "configure"
14144 #include "confdefs.h"
14150 #include <sys/poll.h>
14153 struct pollfd myfds;
14157 myfds.events = POLLIN;
14159 ret = poll(&myfds, 1, 100);
14160 ${cf_cv_main_return:-return}(ret != 0);
14163 rm -f conftest$ac_exeext
14164 if { (eval echo "$as_me:14164: \"$ac_link\"") >&5
14165 (eval $ac_link) 2>&5
14167 echo "$as_me:14167: \$? = $ac_status" >&5
14168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14169 { (eval echo "$as_me:14169: \"$ac_try\"") >&5
14170 (eval $ac_try) 2>&5
14172 echo "$as_me:14172: \$? = $ac_status" >&5
14173 (exit $ac_status); }; }; then
14174 cf_cv_working_poll=yes
14176 echo "$as_me: program exited with status $ac_status" >&5
14177 echo "$as_me: failed program was:" >&5
14178 cat conftest.$ac_ext >&5
14179 cf_cv_working_poll=no
14181 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14184 echo "$as_me:14184: result: $cf_cv_working_poll" >&5
14185 echo "${ECHO_T}$cf_cv_working_poll" >&6
14186 test "$cf_cv_working_poll" = "yes" && cat >>confdefs.h <<\EOF
14187 #define HAVE_WORKING_POLL 1
14190 # special check for test/ditto.c
14192 echo "$as_me:14192: checking for openpty in -lutil" >&5
14193 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
14194 if test "${ac_cv_lib_util_openpty+set}" = set; then
14195 echo $ECHO_N "(cached) $ECHO_C" >&6
14197 ac_check_lib_save_LIBS=$LIBS
14198 LIBS="-lutil $LIBS"
14199 cat >conftest.$ac_ext <<_ACEOF
14200 #line 14200 "configure"
14201 #include "confdefs.h"
14203 /* Override any gcc2 internal prototype to avoid an error. */
14207 /* We use char because int might match the return type of a gcc2
14208 builtin and then its argument prototype would still apply. */
14218 rm -f conftest.$ac_objext conftest$ac_exeext
14219 if { (eval echo "$as_me:14219: \"$ac_link\"") >&5
14220 (eval $ac_link) 2>&5
14222 echo "$as_me:14222: \$? = $ac_status" >&5
14223 (exit $ac_status); } &&
14224 { ac_try='test -s conftest$ac_exeext'
14225 { (eval echo "$as_me:14225: \"$ac_try\"") >&5
14226 (eval $ac_try) 2>&5
14228 echo "$as_me:14228: \$? = $ac_status" >&5
14229 (exit $ac_status); }; }; then
14230 ac_cv_lib_util_openpty=yes
14232 echo "$as_me: failed program was:" >&5
14233 cat conftest.$ac_ext >&5
14234 ac_cv_lib_util_openpty=no
14236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14237 LIBS=$ac_check_lib_save_LIBS
14239 echo "$as_me:14239: result: $ac_cv_lib_util_openpty" >&5
14240 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
14241 if test $ac_cv_lib_util_openpty = yes; then
14247 echo "$as_me:14247: checking for openpty header" >&5
14248 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
14249 if test "${cf_cv_func_openpty+set}" = set; then
14250 echo $ECHO_N "(cached) $ECHO_C" >&6
14253 cf_save_LIBS="$LIBS"
14254 test $cf_cv_lib_util = yes && LIBS="-lutil $LIBS"
14255 for cf_header in pty.h libutil.h util.h
14257 cat >conftest.$ac_ext <<_ACEOF
14258 #line 14258 "configure"
14259 #include "confdefs.h"
14261 #include <$cf_header>
14267 int x = openpty((int *)0, (int *)0, (char *)0,
14268 (struct termios *)0, (struct winsize *)0);
14274 rm -f conftest.$ac_objext conftest$ac_exeext
14275 if { (eval echo "$as_me:14275: \"$ac_link\"") >&5
14276 (eval $ac_link) 2>&5
14278 echo "$as_me:14278: \$? = $ac_status" >&5
14279 (exit $ac_status); } &&
14280 { ac_try='test -s conftest$ac_exeext'
14281 { (eval echo "$as_me:14281: \"$ac_try\"") >&5
14282 (eval $ac_try) 2>&5
14284 echo "$as_me:14284: \$? = $ac_status" >&5
14285 (exit $ac_status); }; }; then
14287 cf_cv_func_openpty=$cf_header
14291 echo "$as_me: failed program was:" >&5
14292 cat conftest.$ac_ext >&5
14294 cf_cv_func_openpty=no
14297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14299 LIBS="$cf_save_LIBS"
14302 echo "$as_me:14302: result: $cf_cv_func_openpty" >&5
14303 echo "${ECHO_T}$cf_cv_func_openpty" >&6
14305 if test "$cf_cv_func_openpty" != no ; then
14306 cat >>confdefs.h <<EOF
14307 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
14310 cat >>confdefs.h <<\EOF
14311 #define USE_XTERM_PTY 1
14314 if test "$cf_cv_lib_util" = yes ; then
14315 TEST_LIBS="-lutil $TEST_LIBS"
14319 if test "$with_hashed_db" != no ; then
14320 cat >>confdefs.h <<\EOF
14321 #define USE_HASHED_DB 1
14324 case $with_hashed_db in #(vi
14328 if test -d "$with_hashed_db" ; then
14330 if test -n "$with_hashed_db/include" ; then
14331 for cf_add_incdir in $with_hashed_db/include
14333 while test $cf_add_incdir != /usr/include
14335 if test -d $cf_add_incdir
14338 if test -n "$CFLAGS$CPPFLAGS" ; then
14339 # a loop is needed to ensure we can add subdirs of existing dirs
14340 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
14341 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
14342 cf_have_incdir=yes; break
14347 if test "$cf_have_incdir" = no ; then
14348 if test "$cf_add_incdir" = /usr/local/include ; then
14349 if test "$GCC" = yes
14351 cf_save_CPPFLAGS=$CPPFLAGS
14352 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
14353 cat >conftest.$ac_ext <<_ACEOF
14354 #line 14354 "configure"
14355 #include "confdefs.h"
14365 rm -f conftest.$ac_objext
14366 if { (eval echo "$as_me:14366: \"$ac_compile\"") >&5
14367 (eval $ac_compile) 2>&5
14369 echo "$as_me:14369: \$? = $ac_status" >&5
14370 (exit $ac_status); } &&
14371 { ac_try='test -s conftest.$ac_objext'
14372 { (eval echo "$as_me:14372: \"$ac_try\"") >&5
14373 (eval $ac_try) 2>&5
14375 echo "$as_me:14375: \$? = $ac_status" >&5
14376 (exit $ac_status); }; }; then
14379 echo "$as_me: failed program was:" >&5
14380 cat conftest.$ac_ext >&5
14383 rm -f conftest.$ac_objext conftest.$ac_ext
14384 CPPFLAGS=$cf_save_CPPFLAGS
14389 if test "$cf_have_incdir" = no ; then
14390 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
14392 echo "${as_me-configure}:14392: testing adding $cf_add_incdir to include-path ..." 1>&5
14394 CPPFLAGS="-I$cf_add_incdir $CPPFLAGS"
14396 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
14397 test "$cf_top_incdir" = "$cf_add_incdir" && break
14398 cf_add_incdir="$cf_top_incdir"
14407 if test -n "$with_hashed_db/lib" ; then
14408 for cf_add_libdir in $with_hashed_db/lib
14410 if test $cf_add_libdir = /usr/lib ; then
14412 elif test -d $cf_add_libdir
14415 if test -n "$LDFLAGS$LIBS" ; then
14416 # a loop is needed to ensure we can add subdirs of existing dirs
14417 for cf_test_libdir in $LDFLAGS $LIBS ; do
14418 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
14419 cf_have_libdir=yes; break
14423 if test "$cf_have_libdir" = no ; then
14424 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
14426 echo "${as_me-configure}:14426: testing adding $cf_add_libdir to library-path ..." 1>&5
14428 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
14437 echo "$as_me:14437: checking for db.h" >&5
14438 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
14439 if test "${ac_cv_header_db_h+set}" = set; then
14440 echo $ECHO_N "(cached) $ECHO_C" >&6
14442 cat >conftest.$ac_ext <<_ACEOF
14443 #line 14443 "configure"
14444 #include "confdefs.h"
14447 if { (eval echo "$as_me:14447: \"$ac_cpp conftest.$ac_ext\"") >&5
14448 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14450 egrep -v '^ *\+' conftest.er1 >conftest.err
14452 cat conftest.err >&5
14453 echo "$as_me:14453: \$? = $ac_status" >&5
14454 (exit $ac_status); } >/dev/null; then
14455 if test -s conftest.err; then
14456 ac_cpp_err=$ac_c_preproc_warn_flag
14463 if test -z "$ac_cpp_err"; then
14464 ac_cv_header_db_h=yes
14466 echo "$as_me: failed program was:" >&5
14467 cat conftest.$ac_ext >&5
14468 ac_cv_header_db_h=no
14470 rm -f conftest.err conftest.$ac_ext
14472 echo "$as_me:14472: result: $ac_cv_header_db_h" >&5
14473 echo "${ECHO_T}$ac_cv_header_db_h" >&6
14474 if test $ac_cv_header_db_h = yes; then
14476 echo "$as_me:14476: checking for version of db" >&5
14477 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
14478 if test "${cf_cv_hashed_db_version+set}" = set; then
14479 echo $ECHO_N "(cached) $ECHO_C" >&6
14482 cf_cv_hashed_db_version=unknown
14484 for cf_db_version in 1 2 3 4 5
14487 echo "${as_me-configure}:14487: testing checking for db version $cf_db_version ..." 1>&5
14489 cat >conftest.$ac_ext <<_ACEOF
14490 #line 14490 "configure"
14491 #include "confdefs.h"
14493 $ac_includes_default
14496 #ifdef DB_VERSION_MAJOR
14497 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
14498 #if $cf_db_version == DB_VERSION_MAJOR
14504 #if $cf_db_version == 1
14505 /* ok: assuming this is DB 1.8.5 */
14519 rm -f conftest.$ac_objext
14520 if { (eval echo "$as_me:14520: \"$ac_compile\"") >&5
14521 (eval $ac_compile) 2>&5
14523 echo "$as_me:14523: \$? = $ac_status" >&5
14524 (exit $ac_status); } &&
14525 { ac_try='test -s conftest.$ac_objext'
14526 { (eval echo "$as_me:14526: \"$ac_try\"") >&5
14527 (eval $ac_try) 2>&5
14529 echo "$as_me:14529: \$? = $ac_status" >&5
14530 (exit $ac_status); }; }; then
14532 cf_cv_hashed_db_version=$cf_db_version
14536 echo "$as_me: failed program was:" >&5
14537 cat conftest.$ac_ext >&5
14539 rm -f conftest.$ac_objext conftest.$ac_ext
14543 echo "$as_me:14543: result: $cf_cv_hashed_db_version" >&5
14544 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
14546 if test "$cf_cv_hashed_db_version" = unknown ; then
14547 { { echo "$as_me:14547: error: Cannot determine version of db" >&5
14548 echo "$as_me: error: Cannot determine version of db" >&2;}
14549 { (exit 1); exit 1; }; }
14552 echo "$as_me:14552: checking for db libraries" >&5
14553 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
14554 if test "${cf_cv_hashed_db_libs+set}" = set; then
14555 echo $ECHO_N "(cached) $ECHO_C" >&6
14558 cf_cv_hashed_db_libs=unknown
14559 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
14561 cf_save_libs="$LIBS"
14562 if test -n "$cf_db_libs"; then
14563 LIBS="-l$cf_db_libs $LIBS"
14566 echo "${as_me-configure}:14566: testing checking for library "$cf_db_libs" ..." 1>&5
14568 cat >conftest.$ac_ext <<_ACEOF
14569 #line 14569 "configure"
14570 #include "confdefs.h"
14572 $ac_includes_default
14579 char *path = "/tmp/foo";
14580 #ifdef DB_VERSION_MAJOR
14581 #if DB_VERSION_MAJOR >= 4
14583 db_create(&result, NULL, 0);
14584 result->open(result,
14591 #elif DB_VERSION_MAJOR >= 3
14593 db_create(&result, NULL, 0);
14594 result->open(result,
14600 #elif DB_VERSION_MAJOR >= 2
14609 #endif /* DB_VERSION_MAJOR */
14611 DB *result = dbopen(path,
14617 ${cf_cv_main_return:-return}(result != 0)
14623 rm -f conftest.$ac_objext conftest$ac_exeext
14624 if { (eval echo "$as_me:14624: \"$ac_link\"") >&5
14625 (eval $ac_link) 2>&5
14627 echo "$as_me:14627: \$? = $ac_status" >&5
14628 (exit $ac_status); } &&
14629 { ac_try='test -s conftest$ac_exeext'
14630 { (eval echo "$as_me:14630: \"$ac_try\"") >&5
14631 (eval $ac_try) 2>&5
14633 echo "$as_me:14633: \$? = $ac_status" >&5
14634 (exit $ac_status); }; }; then
14636 if test -n "$cf_db_libs" ; then
14637 cf_cv_hashed_db_libs=$cf_db_libs
14639 cf_cv_hashed_db_libs=default
14641 LIBS="$cf_save_libs"
14645 echo "$as_me: failed program was:" >&5
14646 cat conftest.$ac_ext >&5
14648 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14649 LIBS="$cf_save_libs"
14653 echo "$as_me:14653: result: $cf_cv_hashed_db_libs" >&5
14654 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
14656 if test "$cf_cv_hashed_db_libs" = unknown ; then
14657 { { echo "$as_me:14657: error: Cannot determine library for db" >&5
14658 echo "$as_me: error: Cannot determine library for db" >&2;}
14659 { (exit 1); exit 1; }; }
14660 elif test "$cf_cv_hashed_db_libs" != default ; then
14661 LIBS="-l$cf_cv_hashed_db_libs $LIBS"
14667 { { echo "$as_me:14667: error: Cannot find db.h" >&5
14668 echo "$as_me: error: Cannot find db.h" >&2;}
14669 { (exit 1); exit 1; }; }
14675 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
14676 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
14677 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
14680 # Just in case, check if the C compiler has a bool type.
14682 echo "$as_me:14682: checking if we should include stdbool.h" >&5
14683 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
14685 if test "${cf_cv_header_stdbool_h+set}" = set; then
14686 echo $ECHO_N "(cached) $ECHO_C" >&6
14689 cat >conftest.$ac_ext <<_ACEOF
14690 #line 14690 "configure"
14691 #include "confdefs.h"
14701 rm -f conftest.$ac_objext
14702 if { (eval echo "$as_me:14702: \"$ac_compile\"") >&5
14703 (eval $ac_compile) 2>&5
14705 echo "$as_me:14705: \$? = $ac_status" >&5
14706 (exit $ac_status); } &&
14707 { ac_try='test -s conftest.$ac_objext'
14708 { (eval echo "$as_me:14708: \"$ac_try\"") >&5
14709 (eval $ac_try) 2>&5
14711 echo "$as_me:14711: \$? = $ac_status" >&5
14712 (exit $ac_status); }; }; then
14713 cf_cv_header_stdbool_h=0
14715 echo "$as_me: failed program was:" >&5
14716 cat conftest.$ac_ext >&5
14717 cat >conftest.$ac_ext <<_ACEOF
14718 #line 14718 "configure"
14719 #include "confdefs.h"
14722 #include <stdbool.h>
14733 rm -f conftest.$ac_objext
14734 if { (eval echo "$as_me:14734: \"$ac_compile\"") >&5
14735 (eval $ac_compile) 2>&5
14737 echo "$as_me:14737: \$? = $ac_status" >&5
14738 (exit $ac_status); } &&
14739 { ac_try='test -s conftest.$ac_objext'
14740 { (eval echo "$as_me:14740: \"$ac_try\"") >&5
14741 (eval $ac_try) 2>&5
14743 echo "$as_me:14743: \$? = $ac_status" >&5
14744 (exit $ac_status); }; }; then
14745 cf_cv_header_stdbool_h=1
14747 echo "$as_me: failed program was:" >&5
14748 cat conftest.$ac_ext >&5
14749 cf_cv_header_stdbool_h=0
14751 rm -f conftest.$ac_objext conftest.$ac_ext
14753 rm -f conftest.$ac_objext conftest.$ac_ext
14756 if test "$cf_cv_header_stdbool_h" = 1
14757 then echo "$as_me:14757: result: yes" >&5
14758 echo "${ECHO_T}yes" >&6
14759 else echo "$as_me:14759: result: no" >&5
14760 echo "${ECHO_T}no" >&6
14763 echo "$as_me:14763: checking for builtin bool type" >&5
14764 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
14766 if test "${cf_cv_cc_bool_type+set}" = set; then
14767 echo $ECHO_N "(cached) $ECHO_C" >&6
14770 cat >conftest.$ac_ext <<_ACEOF
14771 #line 14771 "configure"
14772 #include "confdefs.h"
14775 #include <sys/types.h>
14785 rm -f conftest.$ac_objext
14786 if { (eval echo "$as_me:14786: \"$ac_compile\"") >&5
14787 (eval $ac_compile) 2>&5
14789 echo "$as_me:14789: \$? = $ac_status" >&5
14790 (exit $ac_status); } &&
14791 { ac_try='test -s conftest.$ac_objext'
14792 { (eval echo "$as_me:14792: \"$ac_try\"") >&5
14793 (eval $ac_try) 2>&5
14795 echo "$as_me:14795: \$? = $ac_status" >&5
14796 (exit $ac_status); }; }; then
14797 cf_cv_cc_bool_type=1
14799 echo "$as_me: failed program was:" >&5
14800 cat conftest.$ac_ext >&5
14801 cf_cv_cc_bool_type=0
14803 rm -f conftest.$ac_objext conftest.$ac_ext
14807 if test "$cf_cv_cc_bool_type" = 1
14808 then echo "$as_me:14808: result: yes" >&5
14809 echo "${ECHO_T}yes" >&6
14810 else echo "$as_me:14810: result: no" >&5
14811 echo "${ECHO_T}no" >&6
14814 # Check for C++ compiler characteristics (and ensure that it's there!)
14815 if test -n "$CXX" ; then
14817 ac_cpp='$CXXCPP $CPPFLAGS'
14818 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14819 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14820 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14821 ac_main_return=return
14823 if test -n "$GXX" ; then
14824 case $cf_cv_system_name in #(vi
14826 cf_stdcpp_libname=stdcpp
14829 cf_stdcpp_libname=stdc++
14832 echo "$as_me:14832: checking for library $cf_stdcpp_libname" >&5
14833 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
14834 if test "${cf_cv_libstdcpp+set}" = set; then
14835 echo $ECHO_N "(cached) $ECHO_C" >&6
14839 LIBS="$LIBS -l$cf_stdcpp_libname"
14840 cat >conftest.$ac_ext <<_ACEOF
14841 #line 14841 "configure"
14842 #include "confdefs.h"
14844 #include <strstream.h>
14850 strstreambuf foo(buf, sizeof(buf))
14856 rm -f conftest.$ac_objext conftest$ac_exeext
14857 if { (eval echo "$as_me:14857: \"$ac_link\"") >&5
14858 (eval $ac_link) 2>&5
14860 echo "$as_me:14860: \$? = $ac_status" >&5
14861 (exit $ac_status); } &&
14862 { ac_try='test -s conftest$ac_exeext'
14863 { (eval echo "$as_me:14863: \"$ac_try\"") >&5
14864 (eval $ac_try) 2>&5
14866 echo "$as_me:14866: \$? = $ac_status" >&5
14867 (exit $ac_status); }; }; then
14868 cf_cv_libstdcpp=yes
14870 echo "$as_me: failed program was:" >&5
14871 cat conftest.$ac_ext >&5
14874 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14878 echo "$as_me:14878: result: $cf_cv_libstdcpp" >&5
14879 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
14880 test "$cf_cv_libstdcpp" = yes && CXXLIBS="$CXXLIBS -l$cf_stdcpp_libname"
14883 echo "$as_me:14883: checking whether $CXX understands -c and -o together" >&5
14884 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
14885 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
14886 echo $ECHO_N "(cached) $ECHO_C" >&6
14889 cat > conftest.$ac_ext <<CF_EOF
14893 ${cf_cv_main_return:-return}(0);
14896 # We do the test twice because some compilers refuse to overwrite an
14897 # existing .o file with -o, though they will create one.
14898 ac_try='$CXX -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
14899 if { (eval echo "$as_me:14899: \"$ac_try\"") >&5
14900 (eval $ac_try) 2>&5
14902 echo "$as_me:14902: \$? = $ac_status" >&5
14903 (exit $ac_status); } &&
14904 test -f conftest2.$ac_objext && { (eval echo "$as_me:14904: \"$ac_try\"") >&5
14905 (eval $ac_try) 2>&5
14907 echo "$as_me:14907: \$? = $ac_status" >&5
14908 (exit $ac_status); };
14910 eval cf_cv_prog_CXX_c_o=yes
14912 eval cf_cv_prog_CXX_c_o=no
14917 if test $cf_cv_prog_CXX_c_o = yes; then
14918 echo "$as_me:14918: result: yes" >&5
14919 echo "${ECHO_T}yes" >&6
14921 echo "$as_me:14921: result: no" >&5
14922 echo "${ECHO_T}no" >&6
14925 case $GXX_VERSION in
14931 cf_cxx_library=unknown
14932 case $cf_cv_system_name in #(vi
14940 if test "$GXX" = yes; then
14941 echo "$as_me:14941: checking for lib$cf_gpp_libname" >&5
14942 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
14944 LIBS="$LIBS -l$cf_gpp_libname"
14945 cat >conftest.$ac_ext <<_ACEOF
14946 #line 14946 "configure"
14947 #include "confdefs.h"
14949 #include <$cf_gpp_libname/builtin.h>
14954 two_arg_error_handler_t foo2 = lib_error_handler
14959 rm -f conftest.$ac_objext conftest$ac_exeext
14960 if { (eval echo "$as_me:14960: \"$ac_link\"") >&5
14961 (eval $ac_link) 2>&5
14963 echo "$as_me:14963: \$? = $ac_status" >&5
14964 (exit $ac_status); } &&
14965 { ac_try='test -s conftest$ac_exeext'
14966 { (eval echo "$as_me:14966: \"$ac_try\"") >&5
14967 (eval $ac_try) 2>&5
14969 echo "$as_me:14969: \$? = $ac_status" >&5
14970 (exit $ac_status); }; }; then
14972 CXXLIBS="$CXXLIBS -l$cf_gpp_libname"
14973 if test "$cf_gpp_libname" = cpp ; then
14974 cat >>confdefs.h <<\EOF
14975 #define HAVE_GPP_BUILTIN_H 1
14979 cat >>confdefs.h <<\EOF
14980 #define HAVE_GXX_BUILTIN_H 1
14985 echo "$as_me: failed program was:" >&5
14986 cat conftest.$ac_ext >&5
14987 cat >conftest.$ac_ext <<_ACEOF
14988 #line 14988 "configure"
14989 #include "confdefs.h"
14991 #include <builtin.h>
14996 two_arg_error_handler_t foo2 = lib_error_handler
15001 rm -f conftest.$ac_objext conftest$ac_exeext
15002 if { (eval echo "$as_me:15002: \"$ac_link\"") >&5
15003 (eval $ac_link) 2>&5
15005 echo "$as_me:15005: \$? = $ac_status" >&5
15006 (exit $ac_status); } &&
15007 { ac_try='test -s conftest$ac_exeext'
15008 { (eval echo "$as_me:15008: \"$ac_try\"") >&5
15009 (eval $ac_try) 2>&5
15011 echo "$as_me:15011: \$? = $ac_status" >&5
15012 (exit $ac_status); }; }; then
15014 CXXLIBS="$CXXLIBS -l$cf_gpp_libname"
15015 cat >>confdefs.h <<\EOF
15016 #define HAVE_BUILTIN_H 1
15020 echo "$as_me: failed program was:" >&5
15021 cat conftest.$ac_ext >&5
15024 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15028 echo "$as_me:15028: result: $cf_cxx_library" >&5
15029 echo "${ECHO_T}$cf_cxx_library" >&6
15039 ac_cpp='$CXXCPP $CPPFLAGS'
15040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15041 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15043 ac_main_return=return
15044 echo "$as_me:15044: checking how to run the C++ preprocessor" >&5
15045 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
15046 if test -z "$CXXCPP"; then
15047 if test "${ac_cv_prog_CXXCPP+set}" = set; then
15048 echo $ECHO_N "(cached) $ECHO_C" >&6
15050 # Double quotes because CXXCPP needs to be expanded
15051 for CXXCPP in "$CXX -E" "/lib/cpp"
15053 ac_preproc_ok=false
15054 for ac_cxx_preproc_warn_flag in '' yes
15056 # Use a header file that comes with gcc, so configuring glibc
15057 # with a fresh cross-compiler works.
15058 # On the NeXT, cc -E runs the code through the compiler's parser,
15059 # not just through cpp. "Syntax error" is here to catch this case.
15060 cat >conftest.$ac_ext <<_ACEOF
15061 #line 15061 "configure"
15062 #include "confdefs.h"
15063 #include <assert.h>
15066 if { (eval echo "$as_me:15066: \"$ac_cpp conftest.$ac_ext\"") >&5
15067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15069 egrep -v '^ *\+' conftest.er1 >conftest.err
15071 cat conftest.err >&5
15072 echo "$as_me:15072: \$? = $ac_status" >&5
15073 (exit $ac_status); } >/dev/null; then
15074 if test -s conftest.err; then
15075 ac_cpp_err=$ac_cxx_preproc_warn_flag
15082 if test -z "$ac_cpp_err"; then
15085 echo "$as_me: failed program was:" >&5
15086 cat conftest.$ac_ext >&5
15087 # Broken: fails on valid input.
15090 rm -f conftest.err conftest.$ac_ext
15092 # OK, works on sane cases. Now check whether non-existent headers
15093 # can be detected and how.
15094 cat >conftest.$ac_ext <<_ACEOF
15095 #line 15095 "configure"
15096 #include "confdefs.h"
15097 #include <ac_nonexistent.h>
15099 if { (eval echo "$as_me:15099: \"$ac_cpp conftest.$ac_ext\"") >&5
15100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15102 egrep -v '^ *\+' conftest.er1 >conftest.err
15104 cat conftest.err >&5
15105 echo "$as_me:15105: \$? = $ac_status" >&5
15106 (exit $ac_status); } >/dev/null; then
15107 if test -s conftest.err; then
15108 ac_cpp_err=$ac_cxx_preproc_warn_flag
15115 if test -z "$ac_cpp_err"; then
15116 # Broken: success on invalid input.
15119 echo "$as_me: failed program was:" >&5
15120 cat conftest.$ac_ext >&5
15121 # Passes both tests.
15125 rm -f conftest.err conftest.$ac_ext
15128 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15129 rm -f conftest.err conftest.$ac_ext
15130 if $ac_preproc_ok; then
15135 ac_cv_prog_CXXCPP=$CXXCPP
15138 CXXCPP=$ac_cv_prog_CXXCPP
15140 ac_cv_prog_CXXCPP=$CXXCPP
15142 echo "$as_me:15142: result: $CXXCPP" >&5
15143 echo "${ECHO_T}$CXXCPP" >&6
15144 ac_preproc_ok=false
15145 for ac_cxx_preproc_warn_flag in '' yes
15147 # Use a header file that comes with gcc, so configuring glibc
15148 # with a fresh cross-compiler works.
15149 # On the NeXT, cc -E runs the code through the compiler's parser,
15150 # not just through cpp. "Syntax error" is here to catch this case.
15151 cat >conftest.$ac_ext <<_ACEOF
15152 #line 15152 "configure"
15153 #include "confdefs.h"
15154 #include <assert.h>
15157 if { (eval echo "$as_me:15157: \"$ac_cpp conftest.$ac_ext\"") >&5
15158 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15160 egrep -v '^ *\+' conftest.er1 >conftest.err
15162 cat conftest.err >&5
15163 echo "$as_me:15163: \$? = $ac_status" >&5
15164 (exit $ac_status); } >/dev/null; then
15165 if test -s conftest.err; then
15166 ac_cpp_err=$ac_cxx_preproc_warn_flag
15173 if test -z "$ac_cpp_err"; then
15176 echo "$as_me: failed program was:" >&5
15177 cat conftest.$ac_ext >&5
15178 # Broken: fails on valid input.
15181 rm -f conftest.err conftest.$ac_ext
15183 # OK, works on sane cases. Now check whether non-existent headers
15184 # can be detected and how.
15185 cat >conftest.$ac_ext <<_ACEOF
15186 #line 15186 "configure"
15187 #include "confdefs.h"
15188 #include <ac_nonexistent.h>
15190 if { (eval echo "$as_me:15190: \"$ac_cpp conftest.$ac_ext\"") >&5
15191 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15193 egrep -v '^ *\+' conftest.er1 >conftest.err
15195 cat conftest.err >&5
15196 echo "$as_me:15196: \$? = $ac_status" >&5
15197 (exit $ac_status); } >/dev/null; then
15198 if test -s conftest.err; then
15199 ac_cpp_err=$ac_cxx_preproc_warn_flag
15206 if test -z "$ac_cpp_err"; then
15207 # Broken: success on invalid input.
15210 echo "$as_me: failed program was:" >&5
15211 cat conftest.$ac_ext >&5
15212 # Passes both tests.
15216 rm -f conftest.err conftest.$ac_ext
15219 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15220 rm -f conftest.err conftest.$ac_ext
15221 if $ac_preproc_ok; then
15224 { { echo "$as_me:15224: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
15225 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
15226 { (exit 1); exit 1; }; }
15230 ac_cpp='$CXXCPP $CPPFLAGS'
15231 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15232 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15233 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15234 ac_main_return=return
15236 for ac_header in iostream typeinfo
15238 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15239 echo "$as_me:15239: checking for $ac_header" >&5
15240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15242 echo $ECHO_N "(cached) $ECHO_C" >&6
15244 cat >conftest.$ac_ext <<_ACEOF
15245 #line 15245 "configure"
15246 #include "confdefs.h"
15247 #include <$ac_header>
15249 if { (eval echo "$as_me:15249: \"$ac_cpp conftest.$ac_ext\"") >&5
15250 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15252 egrep -v '^ *\+' conftest.er1 >conftest.err
15254 cat conftest.err >&5
15255 echo "$as_me:15255: \$? = $ac_status" >&5
15256 (exit $ac_status); } >/dev/null; then
15257 if test -s conftest.err; then
15258 ac_cpp_err=$ac_cxx_preproc_warn_flag
15265 if test -z "$ac_cpp_err"; then
15266 eval "$as_ac_Header=yes"
15268 echo "$as_me: failed program was:" >&5
15269 cat conftest.$ac_ext >&5
15270 eval "$as_ac_Header=no"
15272 rm -f conftest.err conftest.$ac_ext
15274 echo "$as_me:15274: result: `eval echo '${'$as_ac_Header'}'`" >&5
15275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15277 cat >>confdefs.h <<EOF
15278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15284 if test x"$ac_cv_header_iostream" = xyes ; then
15285 echo "$as_me:15285: checking if iostream uses std-namespace" >&5
15286 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
15287 cat >conftest.$ac_ext <<_ACEOF
15288 #line 15288 "configure"
15289 #include "confdefs.h"
15291 #include <iostream>
15298 cerr << "testing" << endl;
15304 rm -f conftest.$ac_objext
15305 if { (eval echo "$as_me:15305: \"$ac_compile\"") >&5
15306 (eval $ac_compile) 2>&5
15308 echo "$as_me:15308: \$? = $ac_status" >&5
15309 (exit $ac_status); } &&
15310 { ac_try='test -s conftest.$ac_objext'
15311 { (eval echo "$as_me:15311: \"$ac_try\"") >&5
15312 (eval $ac_try) 2>&5
15314 echo "$as_me:15314: \$? = $ac_status" >&5
15315 (exit $ac_status); }; }; then
15316 cf_iostream_namespace=yes
15318 echo "$as_me: failed program was:" >&5
15319 cat conftest.$ac_ext >&5
15320 cf_iostream_namespace=no
15322 rm -f conftest.$ac_objext conftest.$ac_ext
15323 echo "$as_me:15323: result: $cf_iostream_namespace" >&5
15324 echo "${ECHO_T}$cf_iostream_namespace" >&6
15325 if test "$cf_iostream_namespace" = yes ; then
15326 cat >>confdefs.h <<\EOF
15327 #define IOSTREAM_NAMESPACE 1
15333 echo "$as_me:15333: checking if we should include stdbool.h" >&5
15334 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
15336 if test "${cf_cv_header_stdbool_h+set}" = set; then
15337 echo $ECHO_N "(cached) $ECHO_C" >&6
15340 cat >conftest.$ac_ext <<_ACEOF
15341 #line 15341 "configure"
15342 #include "confdefs.h"
15352 rm -f conftest.$ac_objext
15353 if { (eval echo "$as_me:15353: \"$ac_compile\"") >&5
15354 (eval $ac_compile) 2>&5
15356 echo "$as_me:15356: \$? = $ac_status" >&5
15357 (exit $ac_status); } &&
15358 { ac_try='test -s conftest.$ac_objext'
15359 { (eval echo "$as_me:15359: \"$ac_try\"") >&5
15360 (eval $ac_try) 2>&5
15362 echo "$as_me:15362: \$? = $ac_status" >&5
15363 (exit $ac_status); }; }; then
15364 cf_cv_header_stdbool_h=0
15366 echo "$as_me: failed program was:" >&5
15367 cat conftest.$ac_ext >&5
15368 cat >conftest.$ac_ext <<_ACEOF
15369 #line 15369 "configure"
15370 #include "confdefs.h"
15373 #include <stdbool.h>
15384 rm -f conftest.$ac_objext
15385 if { (eval echo "$as_me:15385: \"$ac_compile\"") >&5
15386 (eval $ac_compile) 2>&5
15388 echo "$as_me:15388: \$? = $ac_status" >&5
15389 (exit $ac_status); } &&
15390 { ac_try='test -s conftest.$ac_objext'
15391 { (eval echo "$as_me:15391: \"$ac_try\"") >&5
15392 (eval $ac_try) 2>&5
15394 echo "$as_me:15394: \$? = $ac_status" >&5
15395 (exit $ac_status); }; }; then
15396 cf_cv_header_stdbool_h=1
15398 echo "$as_me: failed program was:" >&5
15399 cat conftest.$ac_ext >&5
15400 cf_cv_header_stdbool_h=0
15402 rm -f conftest.$ac_objext conftest.$ac_ext
15404 rm -f conftest.$ac_objext conftest.$ac_ext
15407 if test "$cf_cv_header_stdbool_h" = 1
15408 then echo "$as_me:15408: result: yes" >&5
15409 echo "${ECHO_T}yes" >&6
15410 else echo "$as_me:15410: result: no" >&5
15411 echo "${ECHO_T}no" >&6
15414 echo "$as_me:15414: checking for builtin bool type" >&5
15415 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
15417 if test "${cf_cv_builtin_bool+set}" = set; then
15418 echo $ECHO_N "(cached) $ECHO_C" >&6
15421 cat >conftest.$ac_ext <<_ACEOF
15422 #line 15422 "configure"
15423 #include "confdefs.h"
15426 #include <sys/types.h>
15436 rm -f conftest.$ac_objext
15437 if { (eval echo "$as_me:15437: \"$ac_compile\"") >&5
15438 (eval $ac_compile) 2>&5
15440 echo "$as_me:15440: \$? = $ac_status" >&5
15441 (exit $ac_status); } &&
15442 { ac_try='test -s conftest.$ac_objext'
15443 { (eval echo "$as_me:15443: \"$ac_try\"") >&5
15444 (eval $ac_try) 2>&5
15446 echo "$as_me:15446: \$? = $ac_status" >&5
15447 (exit $ac_status); }; }; then
15448 cf_cv_builtin_bool=1
15450 echo "$as_me: failed program was:" >&5
15451 cat conftest.$ac_ext >&5
15452 cf_cv_builtin_bool=0
15454 rm -f conftest.$ac_objext conftest.$ac_ext
15458 if test "$cf_cv_builtin_bool" = 1
15459 then echo "$as_me:15459: result: yes" >&5
15460 echo "${ECHO_T}yes" >&6
15461 else echo "$as_me:15461: result: no" >&5
15462 echo "${ECHO_T}no" >&6
15465 echo "$as_me:15465: checking for size of bool" >&5
15466 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
15467 if test "${cf_cv_type_of_bool+set}" = set; then
15468 echo $ECHO_N "(cached) $ECHO_C" >&6
15472 if test "$cross_compiling" = yes; then
15473 cf_cv_type_of_bool=unknown
15475 cat >conftest.$ac_ext <<_ACEOF
15476 #line 15476 "configure"
15477 #include "confdefs.h"
15479 #include <stdlib.h>
15482 #if defined(__cplusplus)
15484 #ifdef HAVE_GXX_BUILTIN_H
15485 #include <g++/builtin.h>
15486 #elif HAVE_GPP_BUILTIN_H
15487 #include <gpp/builtin.h>
15488 #elif HAVE_BUILTIN_H
15489 #include <builtin.h>
15494 #if $cf_cv_header_stdbool_h
15495 #include <stdbool.h>
15502 FILE *fp = fopen("cf_test.out", "w");
15505 if ((bool)(-x) >= 0)
15506 fputs("unsigned ", fp);
15507 if (sizeof(x) == sizeof(int)) fputs("int", fp);
15508 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
15509 else if (sizeof(x) == sizeof(short))fputs("short",fp);
15510 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
15513 ${cf_cv_main_return:-return}(0);
15517 rm -f conftest$ac_exeext
15518 if { (eval echo "$as_me:15518: \"$ac_link\"") >&5
15519 (eval $ac_link) 2>&5
15521 echo "$as_me:15521: \$? = $ac_status" >&5
15522 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15523 { (eval echo "$as_me:15523: \"$ac_try\"") >&5
15524 (eval $ac_try) 2>&5
15526 echo "$as_me:15526: \$? = $ac_status" >&5
15527 (exit $ac_status); }; }; then
15528 cf_cv_type_of_bool=`cat cf_test.out`
15529 if test -z "$cf_cv_type_of_bool"; then
15530 cf_cv_type_of_bool=unknown
15533 echo "$as_me: program exited with status $ac_status" >&5
15534 echo "$as_me: failed program was:" >&5
15535 cat conftest.$ac_ext >&5
15536 cf_cv_type_of_bool=unknown
15538 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15544 echo "$as_me:15544: result: $cf_cv_type_of_bool" >&5
15545 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
15546 if test "$cf_cv_type_of_bool" = unknown ; then
15547 case .$NCURSES_BOOL in #(vi
15548 .auto|.) NCURSES_BOOL=unsigned;;
15550 { echo "$as_me:15550: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
15551 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
15552 cf_cv_type_of_bool=$NCURSES_BOOL
15555 echo "$as_me:15555: checking for special defines needed for etip.h" >&5
15556 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
15557 cf_save_CXXFLAGS="$CXXFLAGS"
15559 for cf_math in "" MATH_H
15561 for cf_excp in "" MATH_EXCEPTION
15563 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -I${srcdir}/include"
15564 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
15565 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
15566 cat >conftest.$ac_ext <<_ACEOF
15567 #line 15567 "configure"
15568 #include "confdefs.h"
15570 #include <etip.h.in>
15580 rm -f conftest.$ac_objext
15581 if { (eval echo "$as_me:15581: \"$ac_compile\"") >&5
15582 (eval $ac_compile) 2>&5
15584 echo "$as_me:15584: \$? = $ac_status" >&5
15585 (exit $ac_status); } &&
15586 { ac_try='test -s conftest.$ac_objext'
15587 { (eval echo "$as_me:15587: \"$ac_try\"") >&5
15588 (eval $ac_try) 2>&5
15590 echo "$as_me:15590: \$? = $ac_status" >&5
15591 (exit $ac_status); }; }; then
15593 test -n "$cf_math" && cat >>confdefs.h <<EOF
15594 #define ETIP_NEEDS_${cf_math} 1
15597 test -n "$cf_excp" && cat >>confdefs.h <<EOF
15598 #define ETIP_NEEDS_${cf_excp} 1
15601 cf_result="$cf_math $cf_excp"
15605 echo "$as_me: failed program was:" >&5
15606 cat conftest.$ac_ext >&5
15608 rm -f conftest.$ac_objext conftest.$ac_ext
15611 echo "$as_me:15611: result: $cf_result" >&5
15612 echo "${ECHO_T}$cf_result" >&6
15613 CXXFLAGS="$cf_save_CXXFLAGS"
15615 if test -n "$CXX"; then
15616 echo "$as_me:15616: checking if $CXX accepts parameter initialization" >&5
15617 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
15618 if test "${cf_cv_cpp_param_init+set}" = set; then
15619 echo $ECHO_N "(cached) $ECHO_C" >&6
15623 ac_cpp='$CXXCPP $CPPFLAGS'
15624 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15625 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15626 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15627 ac_main_return=return
15629 if test "$cross_compiling" = yes; then
15630 cf_cv_cpp_param_init=unknown
15632 cat >conftest.$ac_ext <<_ACEOF
15633 #line 15633 "configure"
15634 #include "confdefs.h"
15644 TEST::TEST(int x = 1) // some compilers do not like second initializer
15651 rm -f conftest$ac_exeext
15652 if { (eval echo "$as_me:15652: \"$ac_link\"") >&5
15653 (eval $ac_link) 2>&5
15655 echo "$as_me:15655: \$? = $ac_status" >&5
15656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15657 { (eval echo "$as_me:15657: \"$ac_try\"") >&5
15658 (eval $ac_try) 2>&5
15660 echo "$as_me:15660: \$? = $ac_status" >&5
15661 (exit $ac_status); }; }; then
15662 cf_cv_cpp_param_init=yes
15664 echo "$as_me: program exited with status $ac_status" >&5
15665 echo "$as_me: failed program was:" >&5
15666 cat conftest.$ac_ext >&5
15667 cf_cv_cpp_param_init=no
15669 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15672 ac_cpp='$CXXCPP $CPPFLAGS'
15673 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15674 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15675 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15676 ac_main_return=return
15679 echo "$as_me:15679: result: $cf_cv_cpp_param_init" >&5
15680 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
15682 test "$cf_cv_cpp_param_init" = yes && cat >>confdefs.h <<\EOF
15683 #define CPP_HAS_PARAM_INIT 1
15686 if test -n "$CXX"; then
15688 echo "$as_me:15688: checking if $CXX accepts static_cast" >&5
15689 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
15690 if test "${cf_cv_cpp_static_cast+set}" = set; then
15691 echo $ECHO_N "(cached) $ECHO_C" >&6
15695 ac_cpp='$CXXCPP $CPPFLAGS'
15696 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15697 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15698 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15699 ac_main_return=return
15701 cat >conftest.$ac_ext <<_ACEOF
15702 #line 15702 "configure"
15703 #include "confdefs.h"
15708 NCursesPanel(int nlines,
15718 template<class T> class NCursesUserPanel : public NCursesPanel
15721 NCursesUserPanel (int nlines,
15725 const T* p_UserData = static_cast<T*>(0))
15726 : NCursesPanel (nlines, ncols, begin_y, begin_x)
15729 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
15733 virtual ~NCursesUserPanel() {};
15740 const char* p_UserData = static_cast<char*>(0)
15745 rm -f conftest.$ac_objext
15746 if { (eval echo "$as_me:15746: \"$ac_compile\"") >&5
15747 (eval $ac_compile) 2>&5
15749 echo "$as_me:15749: \$? = $ac_status" >&5
15750 (exit $ac_status); } &&
15751 { ac_try='test -s conftest.$ac_objext'
15752 { (eval echo "$as_me:15752: \"$ac_try\"") >&5
15753 (eval $ac_try) 2>&5
15755 echo "$as_me:15755: \$? = $ac_status" >&5
15756 (exit $ac_status); }; }; then
15757 cf_cv_cpp_static_cast=yes
15759 echo "$as_me: failed program was:" >&5
15760 cat conftest.$ac_ext >&5
15761 cf_cv_cpp_static_cast=no
15763 rm -f conftest.$ac_objext conftest.$ac_ext
15766 ac_cpp='$CXXCPP $CPPFLAGS'
15767 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15768 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15769 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15770 ac_main_return=return
15773 echo "$as_me:15773: result: $cf_cv_cpp_static_cast" >&5
15774 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
15778 test "$cf_cv_cpp_static_cast" = yes && cat >>confdefs.h <<\EOF
15779 #define CPP_HAS_STATIC_CAST 1
15783 CXX_AR_OPTS='$(AR_OPTS)'
15784 case $cf_cv_system_name in #(vi
15786 if test "$GXX" != yes ; then
15788 CXX_AR_OPTS='-ar -o'
15792 CXXLDFLAGS="-u main"
15795 if test "$GXX" != yes ; then
15797 CXX_AR_OPTS='-xar -o'
15804 cf_cv_builtin_bool=1
15806 # Just because we are not configuring against C++ right now does not
15807 # mean that a user will not want to use C++. Some distributors disable
15808 # the C++ portion of this configuration as a shortcut (or just to avoid
15809 # compiling the demo in the c++ directory). So we need a reasonable
15810 # default for the 'bool' type.
15812 # Caveat: since the storage of the bool type is not standardized, it
15815 if test "$NCURSES_BOOL" != auto ; then
15816 cf_cv_type_of_bool=$NCURSES_BOOL
15817 cf_cv_header_stdbool_h=0
15819 if test "$cf_cv_header_stdbool_h" = 1 ; then
15821 echo "$as_me:15821: checking for size of bool" >&5
15822 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
15823 if test "${cf_cv_type_of_bool+set}" = set; then
15824 echo $ECHO_N "(cached) $ECHO_C" >&6
15828 if test "$cross_compiling" = yes; then
15829 cf_cv_type_of_bool=unknown
15831 cat >conftest.$ac_ext <<_ACEOF
15832 #line 15832 "configure"
15833 #include "confdefs.h"
15835 #include <stdlib.h>
15838 #if defined(__cplusplus)
15840 #ifdef HAVE_GXX_BUILTIN_H
15841 #include <g++/builtin.h>
15842 #elif HAVE_GPP_BUILTIN_H
15843 #include <gpp/builtin.h>
15844 #elif HAVE_BUILTIN_H
15845 #include <builtin.h>
15850 #if $cf_cv_header_stdbool_h
15851 #include <stdbool.h>
15858 FILE *fp = fopen("cf_test.out", "w");
15861 if ((bool)(-x) >= 0)
15862 fputs("unsigned ", fp);
15863 if (sizeof(x) == sizeof(int)) fputs("int", fp);
15864 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
15865 else if (sizeof(x) == sizeof(short))fputs("short",fp);
15866 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
15869 ${cf_cv_main_return:-return}(0);
15873 rm -f conftest$ac_exeext
15874 if { (eval echo "$as_me:15874: \"$ac_link\"") >&5
15875 (eval $ac_link) 2>&5
15877 echo "$as_me:15877: \$? = $ac_status" >&5
15878 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15879 { (eval echo "$as_me:15879: \"$ac_try\"") >&5
15880 (eval $ac_try) 2>&5
15882 echo "$as_me:15882: \$? = $ac_status" >&5
15883 (exit $ac_status); }; }; then
15884 cf_cv_type_of_bool=`cat cf_test.out`
15885 if test -z "$cf_cv_type_of_bool"; then
15886 cf_cv_type_of_bool=unknown
15889 echo "$as_me: program exited with status $ac_status" >&5
15890 echo "$as_me: failed program was:" >&5
15891 cat conftest.$ac_ext >&5
15892 cf_cv_type_of_bool=unknown
15894 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15900 echo "$as_me:15900: result: $cf_cv_type_of_bool" >&5
15901 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
15902 if test "$cf_cv_type_of_bool" = unknown ; then
15903 case .$NCURSES_BOOL in #(vi
15904 .auto|.) NCURSES_BOOL=unsigned;;
15906 { echo "$as_me:15906: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
15907 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
15908 cf_cv_type_of_bool=$NCURSES_BOOL
15912 echo "$as_me:15912: checking for fallback type of bool" >&5
15913 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
15914 case "$host_cpu" in #(vi
15915 i?86) cf_cv_type_of_bool=char ;; #(vi
15916 *) cf_cv_type_of_bool=int ;;
15918 echo "$as_me:15918: result: $cf_cv_type_of_bool" >&5
15919 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
15924 # If the C compiler did not declare bool, and we did not determine that the C++
15925 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
15926 # ncurses library use the same type as C++ bool. Note that this allows one to
15927 # specify the type of bool in a configure-script option and postpone
15928 # integration with the C++ compiler provided that the types are compatible.
15930 if test $cf_cv_cc_bool_type = 1
15932 # oops: C has a bool. Unlikely, but C++ could differ.
15934 elif test $cf_cv_builtin_bool = 0
15939 # this is the normal case
15940 USE_CXX_BOOL='defined(__cplusplus)'
15943 if test -f "${srcdir}/Ada95/Makefile.in" ; then
15945 if test "$cf_with_ada" != "no" ; then
15946 if test "$with_libtool" != "no"; then
15947 { echo "$as_me:15947: WARNING: libtool does not support Ada - disabling feature" >&5
15948 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
15953 if test "$cf_with_ada" != "no" ; then
15954 cf_ada_make=gnatmake
15955 # Extract the first word of "$cf_ada_make", so it can be a program name with args.
15956 set dummy $cf_ada_make; ac_word=$2
15957 echo "$as_me:15957: checking for $ac_word" >&5
15958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15959 if test "${ac_cv_prog_gnat_exists+set}" = set; then
15960 echo $ECHO_N "(cached) $ECHO_C" >&6
15962 if test -n "$gnat_exists"; then
15963 ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test.
15965 ac_save_IFS=$IFS; IFS=$ac_path_separator
15967 for ac_dir in $ac_dummy; do
15969 test -z "$ac_dir" && ac_dir=.
15970 $as_executable_p "$ac_dir/$ac_word" || continue
15971 ac_cv_prog_gnat_exists="yes"
15972 echo "$as_me:15972: found $ac_dir/$ac_word" >&5
15976 test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no"
15979 gnat_exists=$ac_cv_prog_gnat_exists
15980 if test -n "$gnat_exists"; then
15981 echo "$as_me:15981: result: $gnat_exists" >&5
15982 echo "${ECHO_T}$gnat_exists" >&6
15984 echo "$as_me:15984: result: no" >&5
15985 echo "${ECHO_T}no" >&6
15988 if test "$ac_cv_prog_gnat_exists" = no; then
15992 echo "$as_me:15992: checking for gnat version" >&5
15993 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
15994 cf_gnat_version=`${cf_ada_make-gnatmake} -v 2>&1 | grep '[0-9].[0-9][0-9]*' |\
15995 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
15996 echo "$as_me:15996: result: $cf_gnat_version" >&5
15997 echo "${ECHO_T}$cf_gnat_version" >&6
15999 case $cf_gnat_version in
16000 3.1[1-9]*|3.[2-9]*|[4-9].*)
16001 cf_cv_prog_gnat_correct=yes
16003 *) echo Unsupported GNAT version $cf_gnat_version. Required is 3.11 or better. Disabling Ada95 binding.
16004 cf_cv_prog_gnat_correct=no
16007 case $cf_gnat_version in
16009 cf_compile_generics=generics
16010 cf_generic_objects="\${GENOBJS}"
16012 *) cf_compile_generics=
16013 cf_generic_objects=
16017 # Extract the first word of "m4", so it can be a program name with args.
16018 set dummy m4; ac_word=$2
16019 echo "$as_me:16019: checking for $ac_word" >&5
16020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16021 if test "${ac_cv_prog_M4_exists+set}" = set; then
16022 echo $ECHO_N "(cached) $ECHO_C" >&6
16024 if test -n "$M4_exists"; then
16025 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
16027 ac_save_IFS=$IFS; IFS=$ac_path_separator
16029 for ac_dir in $ac_dummy; do
16031 test -z "$ac_dir" && ac_dir=.
16032 $as_executable_p "$ac_dir/$ac_word" || continue
16033 ac_cv_prog_M4_exists="yes"
16034 echo "$as_me:16034: found $ac_dir/$ac_word" >&5
16038 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
16041 M4_exists=$ac_cv_prog_M4_exists
16042 if test -n "$M4_exists"; then
16043 echo "$as_me:16043: result: $M4_exists" >&5
16044 echo "${ECHO_T}$M4_exists" >&6
16046 echo "$as_me:16046: result: no" >&5
16047 echo "${ECHO_T}no" >&6
16050 if test "$ac_cv_prog_M4_exists" = no; then
16051 cf_cv_prog_gnat_correct=no
16052 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
16054 if test "$cf_cv_prog_gnat_correct" = yes; then
16055 echo "$as_me:16055: checking if GNAT works" >&5
16056 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
16059 cat >>conftest.ads <<CF_EOF
16060 procedure conftest;
16062 cat >>conftest.adb <<CF_EOF
16065 procedure conftest is
16067 Text_IO.Put ("Hello World");
16069 GNAT.OS_Lib.OS_Exit (0);
16072 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
16073 if ( ./conftest 1>&5 2>&1 ) ; then
16074 cf_cv_prog_gnat_correct=yes
16076 cf_cv_prog_gnat_correct=no
16079 cf_cv_prog_gnat_correct=no
16083 echo "$as_me:16083: result: $cf_cv_prog_gnat_correct" >&5
16084 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
16087 if test "$cf_cv_prog_gnat_correct" = yes; then
16088 ADAFLAGS="-O3 -gnatpn $ADAFLAGS"
16090 echo "$as_me:16090: checking if GNAT pragma Unreferenced works" >&5
16091 echo $ECHO_N "checking if GNAT pragma Unreferenced works... $ECHO_C" >&6
16094 cat >>conftest.ads <<CF_EOF
16095 procedure conftest;
16097 cat >>conftest.adb <<CF_EOF
16100 procedure conftest is
16102 pragma Unreferenced (test);
16105 Text_IO.Put ("Hello World");
16107 GNAT.OS_Lib.OS_Exit (0);
16110 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
16111 cf_cv_pragma_unreferenced=yes
16113 cf_cv_pragma_unreferenced=no
16117 echo "$as_me:16117: result: $cf_cv_pragma_unreferenced" >&5
16118 echo "${ECHO_T}$cf_cv_pragma_unreferenced" >&6
16120 # if the pragma is supported, use it (needed in the Trace code).
16121 if test $cf_cv_pragma_unreferenced = yes ; then
16127 # Check whether --with-ada-compiler or --without-ada-compiler was given.
16128 if test "${with_ada_compiler+set}" = set; then
16129 withval="$with_ada_compiler"
16130 cf_ada_compiler=$withval
16132 cf_ada_compiler=gnatmake
16135 cf_ada_package=terminal_interface
16137 # Check whether --with-ada-include or --without-ada-include was given.
16138 if test "${with_ada_include+set}" = set; then
16139 withval="$with_ada_include"
16142 withval="${ADA_INCLUDE-$prefix/lib/ada/adainclude}"
16143 fi; if test -n "$prefix/lib/ada/adainclude" ; then
16145 if test "x$prefix" != xNONE; then
16146 cf_path_syntax="$prefix"
16148 cf_path_syntax="$ac_default_prefix"
16151 case ".$withval" in #(vi
16152 .\$\(*\)*|.\'*\'*) #(vi
16156 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
16158 .\${*prefix}*) #(vi
16159 eval withval="$withval"
16160 case ".$withval" in #(vi
16162 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
16167 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
16170 { { echo "$as_me:16170: error: expected a pathname, not \"$withval\"" >&5
16171 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
16172 { (exit 1); exit 1; }; }
16177 ADA_INCLUDE="$withval"
16179 # Check whether --with-ada-objects or --without-ada-objects was given.
16180 if test "${with_ada_objects+set}" = set; then
16181 withval="$with_ada_objects"
16184 withval="${ADA_OBJECTS-$prefix/lib/ada/adalib}"
16185 fi; if test -n "$prefix/lib/ada/adalib" ; then
16187 if test "x$prefix" != xNONE; then
16188 cf_path_syntax="$prefix"
16190 cf_path_syntax="$ac_default_prefix"
16193 case ".$withval" in #(vi
16194 .\$\(*\)*|.\'*\'*) #(vi
16198 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
16200 .\${*prefix}*) #(vi
16201 eval withval="$withval"
16202 case ".$withval" in #(vi
16204 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
16209 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
16212 { { echo "$as_me:16212: error: expected a pathname, not \"$withval\"" >&5
16213 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
16214 { (exit 1); exit 1; }; }
16219 ADA_OBJECTS="$withval"
16227 ### Construct the ncurses library-subsets, if any, from this set of keywords:
16228 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
16230 ### ticlib modules may be a separate library, otherwise contained in termlib.
16231 ### termlib modules may be a separate library, otherwise contained in ncurses.
16233 ### The of "+" or " " between the tokens controls the way the script
16234 ### chooses to split module lists into libraries.
16236 ### (see CF_LIB_RULES).
16237 echo "$as_me:16237: checking for library subsets" >&5
16238 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
16241 if test "$cf_with_progs" = yes || test "$with_ticlib" != no || test "$with_termcap" != no; then
16242 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
16243 if test "$with_ticlib" != no ; then
16244 LIB_SUBSETS="${LIB_SUBSETS} "
16246 LIB_SUBSETS="${LIB_SUBSETS}+"
16250 LIB_SUBSETS="${LIB_SUBSETS}termlib"
16251 test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
16252 if test "$with_termlib" != no ; then
16253 LIB_SUBSETS="${LIB_SUBSETS} "
16255 LIB_SUBSETS="${LIB_SUBSETS}+"
16258 LIB_SUBSETS="${LIB_SUBSETS}base"
16259 test "$with_widec" = yes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
16260 test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
16262 echo "$as_me:16262: result: $LIB_SUBSETS" >&5
16263 echo "${ECHO_T}$LIB_SUBSETS" >&6
16265 ### Construct the list of include-directories to be generated
16267 CPPFLAGS="-I. -I../include $CPPFLAGS"
16268 if test "$srcdir" != "."; then
16269 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
16271 if test "$GCC" != yes; then
16272 CPPFLAGS="$CPPFLAGS -I\${includedir}"
16273 elif test "$includedir" != "/usr/include"; then
16274 if test "$includedir" = '${prefix}/include' ; then
16275 if test $prefix != /usr ; then
16276 CPPFLAGS="$CPPFLAGS -I\${includedir}"
16279 CPPFLAGS="$CPPFLAGS -I\${includedir}"
16283 ACPPFLAGS="-I. -I../../include $ACPPFLAGS"
16284 if test "$srcdir" != "."; then
16285 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
16287 if test "$GCC" != yes; then
16288 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
16289 elif test "$includedir" != "/usr/include"; then
16290 if test "$includedir" = '${prefix}/include' ; then
16291 if test $prefix != /usr ; then
16292 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
16295 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
16299 ### Build up pieces for makefile rules
16300 echo "$as_me:16300: checking default library suffix" >&5
16301 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
16303 case $DFT_LWR_MODEL in
16304 libtool) DFT_ARG_SUFFIX='' ;;
16305 normal) DFT_ARG_SUFFIX='' ;;
16306 debug) DFT_ARG_SUFFIX='_g' ;;
16307 profile) DFT_ARG_SUFFIX='_p' ;;
16308 shared) DFT_ARG_SUFFIX='' ;;
16310 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
16311 echo "$as_me:16311: result: $DFT_ARG_SUFFIX" >&5
16312 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
16314 echo "$as_me:16314: checking default library-dependency suffix" >&5
16315 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
16317 case $DFT_LWR_MODEL in
16319 DFT_LIB_SUFFIX='.la'
16320 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
16323 DFT_LIB_SUFFIX='.a'
16324 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
16327 DFT_LIB_SUFFIX='_g.a'
16328 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
16331 DFT_LIB_SUFFIX='_p.a'
16332 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
16335 case $cf_cv_system_name in
16337 DFT_LIB_SUFFIX='.dll'
16338 DFT_DEP_SUFFIX='.dll.a'
16341 DFT_LIB_SUFFIX='.dylib'
16342 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
16347 DFT_LIB_SUFFIX='.so'
16348 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
16351 DFT_LIB_SUFFIX='.sl'
16352 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
16356 *) DFT_LIB_SUFFIX='.so'
16357 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
16361 test -n "$LIB_SUFFIX" && DFT_LIB_SUFFIX="${LIB_SUFFIX}${DFT_LIB_SUFFIX}"
16362 test -n "$LIB_SUFFIX" && DFT_DEP_SUFFIX="${LIB_SUFFIX}${DFT_DEP_SUFFIX}"
16363 echo "$as_me:16363: result: $DFT_DEP_SUFFIX" >&5
16364 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
16366 echo "$as_me:16366: checking default object directory" >&5
16367 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
16369 case $DFT_LWR_MODEL in
16370 libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
16371 normal) DFT_OBJ_SUBDIR='objects' ;;
16372 debug) DFT_OBJ_SUBDIR='obj_g' ;;
16373 profile) DFT_OBJ_SUBDIR='obj_p' ;;
16375 case $cf_cv_system_name in #(vi
16377 DFT_OBJ_SUBDIR='objects' ;;
16379 DFT_OBJ_SUBDIR='obj_s' ;;
16382 echo "$as_me:16382: result: $DFT_OBJ_SUBDIR" >&5
16383 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
16385 # libtool thinks it can make c++ shared libraries (perhaps only g++)
16386 if test "$cf_with_cxx" = yes ; then
16387 echo "$as_me:16387: checking c++ library-dependency suffix" >&5
16388 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
16389 if test "$with_libtool" != "no"; then
16390 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
16395 CXX_LIB_SUFFIX='.la'
16396 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
16399 CXX_LIB_SUFFIX='.a'
16400 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
16403 CXX_LIB_SUFFIX='_g.a'
16404 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
16407 CXX_LIB_SUFFIX='_p.a'
16408 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
16411 case $cf_cv_system_name in
16413 CXX_LIB_SUFFIX='.dll'
16414 CXX_DEP_SUFFIX='.dll.a'
16417 CXX_LIB_SUFFIX='.dylib'
16418 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
16423 CXX_LIB_SUFFIX='.so'
16424 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
16427 CXX_LIB_SUFFIX='.sl'
16428 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
16432 *) CXX_LIB_SUFFIX='.so'
16433 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
16437 test -n "$LIB_SUFFIX" && CXX_LIB_SUFFIX="${LIB_SUFFIX}${CXX_LIB_SUFFIX}"
16438 test -n "$LIB_SUFFIX" && CXX_DEP_SUFFIX="${LIB_SUFFIX}${CXX_DEP_SUFFIX}"
16440 echo "$as_me:16440: result: $CXX_LIB_SUFFIX" >&5
16441 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
16445 # do not want -ldl in build except as needed for -lncurses dependency
16446 if test "$with_dlsym" = yes ; then
16447 if test $DFT_LWR_MODEL = shared || \
16448 test $DFT_LWR_MODEL = libtool ; then
16450 # remove dl library from $LIBS
16451 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
16455 ### Set up low-level terminfo dependencies for makefiles.
16457 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
16458 # do not need libdl
16460 if test "$with_dlsym" = yes ; then
16462 # remove dl library from $SHLIB_LIST
16463 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
16467 if test "$with_ticlib" != no ; then
16469 if test "$with_ticlib" != yes ; then
16470 TICS_NAME=$with_ticlib
16471 TICS_ARG_SUFFIX="${with_ticlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
16472 TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
16473 TICS_LIB_SUFFIX="${with_ticlib}"
16475 TICS_ARG_SUFFIX="${TICS_NAME}${DFT_ARG_SUFFIX}"
16476 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
16477 TICS_LIB_SUFFIX="${TICS_NAME}${LIB_SUFFIX}"
16479 TICS_ARGS="-L${LIB_DIR} -l${TICS_LIB_SUFFIX}"
16481 TICS_ARGS="-L${LIB_DIR} -l${LIB_NAME}${DFT_ARG_SUFFIX}"
16484 if test "$with_termlib" != no ; then
16486 if test "$with_termlib" != yes ; then
16487 TINFO_NAME=$with_termlib
16488 TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
16489 TINFO_ARG_SUFFIX="${with_termlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
16490 TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
16491 TINFO_LIB_SUFFIX="${with_termlib}"
16493 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
16494 TINFO_ARG_SUFFIX="${TINFO_NAME}${DFT_ARG_SUFFIX}"
16495 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
16496 TINFO_LIB_SUFFIX="${TINFO_NAME}${LIB_SUFFIX}"
16499 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
16500 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
16501 if test "$DFT_LWR_MODEL" = "libtool"; then
16502 TEST_ARGS="${TEST_DEPS}"
16503 TEST_ARG2="${TEST_DEP2}"
16504 TINFO_ARGS="-L${LIB_DIR} $TEST_ARGS"
16506 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
16507 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
16508 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
16509 TINFO_ARGS="-L${LIB_DIR} $TEST_ARGS"
16510 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
16513 # the next lines are needed for linking libtic over libncurses
16514 TINFO_NAME=${LIB_NAME}
16515 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
16516 TINFO_ARG_SUFFIX=${LIB_NAME}${DFT_ARG_SUFFIX}
16517 if test "$with_tic_depends" = yes ; then
16518 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${DFT_ARG_SUFFIX}"
16520 TICS_LIST="$SHLIB_LIST"
16523 TINFO_ARGS="-L${LIB_DIR} -l${LIB_NAME}${DFT_ARG_SUFFIX}"
16526 if test "$DFT_LWR_MODEL" = shared ; then
16527 case $cf_cv_system_name in #(vi
16529 # "lib" files have ".dll.a" suffix, "cyg" files have ".dll"
16535 if test "$with_dlsym" = yes ; then
16537 # remove dl library from $TICS_LIST
16538 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
16542 if test "$DFT_LWR_MODEL" = "libtool"; then
16547 TINFO_ARGS2=`echo "$TINFO_ARGS" | sed -e 's,-L\.\./,-L../../,'`
16549 case $DFT_LWR_MODEL in
16550 normal|debug|profile)
16552 if test "$GCC" = yes ; then
16553 case $cf_cv_system_name in #(
16554 OS/2*|os2*|aix[45]*) #( vi
16558 *) #( normally, except when broken
16559 LDFLAGS_STATIC=-static
16560 LDFLAGS_SHARED=-dynamic
16564 case $cf_cv_system_name in #(
16565 aix[45]*) #( from ld manpage
16566 LDFLAGS_STATIC=-bstatic
16567 LDFLAGS_SHARED=-bdynamic
16569 hpux*) #( from ld manpage for hpux10.20, hpux11.11
16570 # We could also use just "archive" and "shared".
16571 LDFLAGS_STATIC=-Wl,-a,archive_shared
16572 LDFLAGS_SHARED=-Wl,-a,shared_archive
16574 irix*) #( from ld manpage IRIX64
16575 LDFLAGS_STATIC=-Bstatic
16576 LDFLAGS_SHARED=-Bdynamic
16578 osf[45]*) #( from ld manpage osf4.0d, osf5.1
16579 # alternative "-oldstyle_liblookup" (not in cc manpage)
16580 LDFLAGS_STATIC=-noso
16581 LDFLAGS_SHARED=-so_archive
16584 LDFLAGS_STATIC=-Bstatic
16585 LDFLAGS_SHARED=-Bdynamic
16593 echo "$as_me:16593: checking where we will install curses.h" >&5
16594 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
16595 test "$with_overwrite" = no && \
16596 test "x$includedir" = 'x${prefix}/include' && \
16597 includedir='${prefix}/include/ncurses'${LIB_SUFFIX}
16598 echo "$as_me:16598: result: $includedir" >&5
16599 echo "${ECHO_T}$includedir" >&6
16601 ### Resolve a conflict between normal and wide-curses by forcing applications
16602 ### that will need libutf8 to add it to their configure script.
16603 if test "$with_overwrite" != no ; then
16604 if test "$NCURSES_LIBUTF8" = 1 ; then
16605 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
16606 { echo "$as_me:16606: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
16607 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
16611 # used to separate tack out of the tree
16614 ### predefined stuff for the test programs
16615 cat >>confdefs.h <<\EOF
16616 #define HAVE_SLK_COLOR 1
16619 ### Construct the list of subdirectories for which we'll customize makefiles
16620 ### with the appropriate compile-rules.
16622 echo "$as_me:16622: checking for src modules" >&5
16623 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
16625 # dependencies and linker-arguments for test-programs
16626 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
16627 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
16628 if test "$DFT_LWR_MODEL" = "libtool"; then
16629 TEST_ARGS="${TEST_DEPS}"
16630 TEST_ARG2="${TEST_DEP2}"
16632 TEST_ARGS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS"
16633 TEST_ARG2="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARG2"
16637 for cf_dir in $modules_to_build
16639 if test -f $srcdir/$cf_dir/modules; then
16641 # We may/may not have tack in the distribution, though the
16643 if test $cf_dir = tack ; then
16644 if test ! -f $srcdir/${cf_dir}/${cf_dir}.h; then
16649 if test -z "$cf_cv_src_modules"; then
16650 cf_cv_src_modules=$cf_dir
16652 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
16655 # Make the ncurses_cfg.h file record the library interface files as
16656 # well. These are header files that are the same name as their
16657 # directory. Ncurses is the only library that does not follow
16659 if test $cf_dir = tack ; then
16661 elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
16663 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16665 cat >>confdefs.h <<EOF
16666 #define HAVE_${cf_have_include}_H 1
16669 cat >>confdefs.h <<EOF
16670 #define HAVE_LIB${cf_have_include} 1
16673 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
16674 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEP2"
16675 if test "$DFT_LWR_MODEL" = "libtool"; then
16676 TEST_ARGS="${TEST_DEPS}"
16677 TEST_ARG2="${TEST_DEP2}"
16679 TEST_ARGS="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARGS"
16680 TEST_ARG2="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARG2"
16685 echo "$as_me:16685: result: $cf_cv_src_modules" >&5
16686 echo "${ECHO_T}$cf_cv_src_modules" >&6
16688 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
16689 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
16692 if test "x$cf_with_manpages" != xno ; then
16693 SRC_SUBDIRS="$SRC_SUBDIRS man"
16695 SRC_SUBDIRS="$SRC_SUBDIRS include"
16696 for cf_dir in $cf_cv_src_modules
16698 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
16700 SRC_SUBDIRS="$SRC_SUBDIRS test"
16701 test -z "$MAKE_TERMINFO" && SRC_SUBDIRS="$SRC_SUBDIRS misc"
16702 test "$cf_with_cxx_binding" != no && SRC_SUBDIRS="$SRC_SUBDIRS c++"
16705 if test "$cf_cv_prog_gnat_correct" = yes && test -f $srcdir/Ada95/Makefile.in; then
16706 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
16707 ADA_SUBDIRS="gen src samples"
16711 for cf_dir in $SRC_SUBDIRS
16713 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
16716 if test -n "$ADA_SUBDIRS"; then
16717 for cf_dir in $ADA_SUBDIRS
16719 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
16724 if test "$cf_with_ada" != "no" && test "$cf_cv_prog_gnat_correct" != "no"; then
16725 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses-config"
16729 for cf_item in $cf_list_models
16733 libtool) cf_subdir='obj_lo' ;;
16734 normal) cf_subdir='objects' ;;
16735 debug) cf_subdir='obj_g' ;;
16736 profile) cf_subdir='obj_p' ;;
16738 case $cf_cv_system_name in #(vi
16740 cf_subdir='objects' ;;
16742 cf_subdir='obj_s' ;;
16746 for cf_item2 in $DIRS_TO_MAKE
16748 test $cf_item2 = $cf_subdir && break
16750 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
16752 for cf_dir in $DIRS_TO_MAKE
16754 test ! -d $cf_dir && mkdir $cf_dir
16757 cat >>confdefs.h <<EOF
16758 #define NCURSES_PATHSEP '$PATHSEP'
16761 cat >>confdefs.h <<EOF
16762 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
16765 ### Now that we're done running tests, add the compiler-warnings, if any
16770 cf_new_extra_cppflags=
16772 for cf_add_cflags in $EXTRA_CFLAGS
16774 case $cf_fix_cppflags in
16776 case $cf_add_cflags in #(vi
16777 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
16778 case $cf_add_cflags in
16780 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16782 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
16783 && test -z "${cf_tst_cflags}" \
16784 && cf_fix_cppflags=yes
16786 if test $cf_fix_cppflags = yes ; then
16787 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16789 elif test "${cf_tst_cflags}" = "\"'" ; then
16790 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16795 case "$CPPFLAGS" in
16796 *$cf_add_cflags) #(vi
16799 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
16804 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
16809 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16811 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
16813 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
16814 && test -z "${cf_tst_cflags}" \
16815 && cf_fix_cppflags=no
16820 if test -n "$cf_new_cflags" ; then
16822 CFLAGS="$CFLAGS $cf_new_cflags"
16825 if test -n "$cf_new_cppflags" ; then
16827 CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
16830 if test -n "$cf_new_extra_cppflags" ; then
16832 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
16835 ### If we're building with rpath, try to link non-standard libs that way too.
16836 if test "$DFT_LWR_MODEL" = "shared"; then
16838 echo "$as_me:16838: checking for updated LDFLAGS" >&5
16839 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
16840 if test -n "$LDFLAGS" ; then
16841 echo "$as_me:16841: result: maybe" >&5
16842 echo "${ECHO_T}maybe" >&6
16843 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
16845 echo "${as_me-configure}:16845: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
16847 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
16849 echo "${as_me-configure}:16849: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
16851 case "$EXTRA_LDFLAGS" in #(vi
16853 cf_rpath_hack="-Wl,-rpath,"
16856 cf_rpath_hack="-R "
16865 if test -n "$cf_rpath_hack" ; then
16867 for cf_rpath_src in $LDFLAGS
16869 test -n "$verbose" && echo " Filtering $cf_rpath_src" 1>&6
16871 echo "${as_me-configure}:16871: testing Filtering $cf_rpath_src ..." 1>&5
16873 case $cf_rpath_src in #(vi
16875 if test "$cf_rpath_hack" = "-R " ; then
16876 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e 's%-L%-R %'`
16878 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e s%-L%$cf_rpath_hack%`
16880 test -n "$verbose" && echo " ...Filter $cf_rpath_tmp" 1>&6
16882 echo "${as_me-configure}:16882: testing ...Filter $cf_rpath_tmp ..." 1>&5
16884 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
16887 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
16889 LDFLAGS=$cf_rpath_dst
16890 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
16892 echo "${as_me-configure}:16892: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
16894 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
16896 echo "${as_me-configure}:16896: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
16900 echo "$as_me:16900: result: no" >&5
16901 echo "${ECHO_T}no" >&6
16906 ### Define substitutions for header files to avoid name-pollution
16908 if test "$cf_cv_have_tcgetattr" = yes ; then
16914 if test "$ac_cv_header_termio_h" = yes ; then
16920 if test "$ac_cv_header_termios_h" = yes ; then
16926 ################################################################################
16927 test "$use_database" = yes && SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
16928 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
16929 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"
16930 ac_config_commands="$ac_config_commands default"
16931 cat >confcache <<\_ACEOF
16932 # This file is a shell script that caches the results of configure
16933 # tests run on this system so they can be shared between configure
16934 # scripts and configure runs, see configure's option --config-cache.
16935 # It is not useful on other systems. If it contains results you don't
16936 # want to keep, you may remove or edit it.
16938 # config.status only pays attention to the cache file if you give it
16939 # the --recheck option to rerun configure.
16941 # `ac_cv_env_foo' variables (set or unset) will be overriden when
16942 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16943 # following values.
16947 # The following way of writing the cache mishandles newlines in values,
16948 # but we know of no workaround that is simple, portable, and efficient.
16949 # So, don't put newlines in cache variables' values.
16950 # Ultrix sh set writes to stderr and can't be redirected directly,
16951 # and sets the high bit in the cache file unless we assign to the vars.
16954 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16956 # `set' does not quote correctly, so add quotes (double-quote
16957 # substitution turns \\\\ into \\, and sed turns \\ into \).
16960 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16963 # `set' quotes correctly as required by POSIX, so do not add quotes.
16965 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16972 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16974 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16976 if cmp -s $cache_file confcache; then :; else
16977 if test -w $cache_file; then
16978 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16979 cat confcache >$cache_file
16981 echo "not updating unwritable cache $cache_file"
16986 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16987 # Let make expand exec_prefix.
16988 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16990 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16991 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16992 # trailing colons and then remove the whole line if VPATH becomes empty
16993 # (actually we leave an empty line to preserve line numbers).
16994 if test "x$srcdir" = x.; then
16995 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16996 s/:*\$(srcdir):*/:/;
16997 s/:*\${srcdir}:*/:/;
16999 s/^\([^=]*=[ ]*\):*/\1/;
17005 DEFS=-DHAVE_CONFIG_H
17007 : ${CONFIG_STATUS=./config.status}
17008 ac_clean_files_save=$ac_clean_files
17009 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17010 { echo "$as_me:17010: creating $CONFIG_STATUS" >&5
17011 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17012 cat >$CONFIG_STATUS <<_ACEOF
17014 # Generated automatically by configure.
17015 # Run this file to recreate the current configuration.
17016 # Compiler output produced by configure, useful for debugging
17017 # configure, is in config.log if it exists.
17020 SHELL=\${CONFIG_SHELL-$SHELL}
17021 ac_cs_invocation="\$0 \$@"
17025 cat >>$CONFIG_STATUS <<\_ACEOF
17026 # Be Bourne compatible
17027 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17030 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17034 # Name of the executable.
17035 as_me=`echo "$0" |sed 's,.*[\\/],,'`
17037 if expr a : '\(a\)' >/dev/null 2>&1; then
17043 rm -f conf$$ conf$$.exe conf$$.file
17045 if ln -s conf$$.file conf$$ 2>/dev/null; then
17046 # We could just check for DJGPP; but this test a) works b) is more generic
17047 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17048 if test -f conf$$.exe; then
17049 # Don't use ln at all; we don't have any links
17054 elif ln conf$$.file conf$$ 2>/dev/null; then
17059 rm -f conf$$ conf$$.exe conf$$.file
17061 as_executable_p="test -f"
17063 # Support unset when possible.
17064 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17071 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
17072 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
17073 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
17074 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
17075 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
17076 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
17077 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
17078 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
17081 # We need space, tab and new line, in precisely that order.
17087 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
17093 # Files that config.status was made for.
17094 if test -n "$ac_config_files"; then
17095 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17098 if test -n "$ac_config_headers"; then
17099 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17102 if test -n "$ac_config_links"; then
17103 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17106 if test -n "$ac_config_commands"; then
17107 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17110 cat >>$CONFIG_STATUS <<\EOF
17113 \`$as_me' instantiates files from templates according to the
17114 current configuration.
17116 Usage: $0 [OPTIONS] [FILE]...
17118 -h, --help print this help, then exit
17119 -V, --version print version number, then exit
17120 -d, --debug don't remove temporary files
17121 --recheck update $as_me by reconfiguring in the same conditions
17122 --file=FILE[:TEMPLATE]
17123 instantiate the configuration file FILE
17124 --header=FILE[:TEMPLATE]
17125 instantiate the configuration header FILE
17127 Configuration files:
17130 Configuration headers:
17133 Configuration commands:
17136 Report bugs to <bug-autoconf@gnu.org>."
17139 cat >>$CONFIG_STATUS <<EOF
17142 configured by $0, generated by GNU Autoconf 2.52.20080325,
17143 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17145 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17146 Free Software Foundation, Inc.
17147 This config.status script is free software; the Free Software Foundation
17148 gives unlimited permission to copy, distribute and modify it."
17153 cat >>$CONFIG_STATUS <<\EOF
17154 # If no file are specified by the user, then we need to provide default
17155 # value. By we need to know if files were specified by the user.
17161 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17162 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17164 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17168 *) # This is not an option, so the user has probably given explicit
17170 ac_need_defaults=false;;
17174 # Handling of the options.
17176 cat >>$CONFIG_STATUS <<EOF
17177 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17178 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17179 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17181 cat >>$CONFIG_STATUS <<\EOF
17182 --version | --vers* | -V )
17183 echo "$ac_cs_version"; exit 0 ;;
17185 # Conflict between --help and --header
17186 { { echo "$as_me:17186: error: ambiguous option: $1
17187 Try \`$0 --help' for more information." >&5
17188 echo "$as_me: error: ambiguous option: $1
17189 Try \`$0 --help' for more information." >&2;}
17190 { (exit 1); exit 1; }; };;
17191 --help | --hel | -h )
17192 echo "$ac_cs_usage"; exit 0 ;;
17193 --debug | --d* | -d )
17195 --file | --fil | --fi | --f )
17197 CONFIG_FILES="$CONFIG_FILES $1"
17198 ac_need_defaults=false;;
17199 --header | --heade | --head | --hea )
17201 CONFIG_HEADERS="$CONFIG_HEADERS $1"
17202 ac_need_defaults=false;;
17204 # This is an error.
17205 -*) { { echo "$as_me:17205: error: unrecognized option: $1
17206 Try \`$0 --help' for more information." >&5
17207 echo "$as_me: error: unrecognized option: $1
17208 Try \`$0 --help' for more information." >&2;}
17209 { (exit 1); exit 1; }; } ;;
17211 *) ac_config_targets="$ac_config_targets $1" ;;
17220 ## ----------------------- ##
17221 ## Running config.status. ##
17222 ## ----------------------- ##
17224 This file was extended by $as_me 2.52.20080325, executed with
17225 CONFIG_FILES = $CONFIG_FILES
17226 CONFIG_HEADERS = $CONFIG_HEADERS
17227 CONFIG_LINKS = $CONFIG_LINKS
17228 CONFIG_COMMANDS = $CONFIG_COMMANDS
17229 > $ac_cs_invocation
17230 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17235 cat >>$CONFIG_STATUS <<EOF
17237 # INIT-COMMANDS section.
17240 ### Special initialization commands, used to pass information from the
17241 ### configuration-run into config.status
17244 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
17245 DFT_LWR_MODEL="$DFT_LWR_MODEL"
17246 ECHO_LINK="$ECHO_LINK"
17247 LDCONFIG="$LDCONFIG"
17248 LIB_NAME="$LIB_NAME"
17249 LIB_SUBSETS="$LIB_SUBSETS"
17250 LIB_SUFFIX="$LIB_SUFFIX"
17251 LIB_TRACING="$LIB_TRACING"
17252 MAKE_TERMINFO="$MAKE_TERMINFO"
17253 NCURSES_MAJOR="$NCURSES_MAJOR"
17254 NCURSES_MINOR="$NCURSES_MINOR"
17255 NCURSES_OSPEED="$NCURSES_OSPEED"
17256 NCURSES_PATCH="$NCURSES_PATCH"
17257 SRC_SUBDIRS="$SRC_SUBDIRS"
17258 TERMINFO="$TERMINFO"
17259 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
17260 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
17261 TINFO_NAME="$TINFO_NAME"
17262 TINFO_SUFFIX="$TINFO_SUFFIX"
17263 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
17264 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
17265 TICS_NAME="$TICS_NAME"
17266 WITH_CURSES_H="$with_curses_h"
17267 WITH_ECHO="$with_echo"
17268 WITH_OVERWRITE="$with_overwrite"
17269 cf_LIST_MODELS="$cf_list_models"
17270 cf_cv_abi_version="$cf_cv_abi_version"
17271 cf_cv_do_relink="$cf_cv_do_relink"
17272 cf_cv_do_symlinks="$cf_cv_do_symlinks"
17273 cf_cv_enable_lp64="$cf_cv_enable_lp64"
17274 cf_cv_enable_opaque="$cf_cv_enable_opaque"
17275 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
17276 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
17277 cf_cv_rel_version="$cf_cv_rel_version"
17278 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
17279 cf_cv_shared_soname='$cf_cv_shared_soname'
17280 cf_cv_shlib_version="$cf_cv_shlib_version"
17281 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
17282 cf_cv_system_name="$cf_cv_system_name"
17283 cf_with_cxx_binding="$cf_with_cxx_binding"
17284 cf_with_manpages="$cf_with_manpages"
17290 cat >>$CONFIG_STATUS <<\EOF
17291 for ac_config_target in $ac_config_targets
17293 case "$ac_config_target" in
17294 # Handling of arguments.
17295 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
17296 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
17297 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
17298 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
17299 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
17300 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17301 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17302 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
17303 *) { { echo "$as_me:17303: error: invalid argument: $ac_config_target" >&5
17304 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17305 { (exit 1); exit 1; }; };;
17309 # If the user did not use the arguments to specify the items to instantiate,
17310 # then the envvar interface is used. Set only those that are not.
17311 # We use the long form for the default assignment because of an extremely
17312 # bizarre bug on SunOS 4.1.3.
17313 if $ac_need_defaults; then
17314 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17315 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17316 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17319 # Create a temporary directory, and hook for its removal unless debugging.
17322 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17323 trap '{ (exit 1); exit 1; }' 1 2 13 15
17326 # Create a (secure) tmp directory for tmp files.
17329 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17330 test -n "$tmp" && test -d "$tmp"
17333 tmp=$TMPDIR/cs$$-$RANDOM
17334 (umask 077 && mkdir $tmp)
17337 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17338 { (exit 1); exit 1; }
17343 cat >>$CONFIG_STATUS <<EOF
17346 # CONFIG_FILES section.
17349 # No need to generate the scripts if there are no CONFIG_FILES.
17350 # This happens for instance when ./config.status config.h
17351 if test -n "\$CONFIG_FILES"; then
17352 # Protect against being on the right side of a sed subst in config.status.
17353 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17354 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17355 s,@SHELL@,$SHELL,;t t
17356 s,@exec_prefix@,$exec_prefix,;t t
17357 s,@prefix@,$prefix,;t t
17358 s,@program_transform_name@,$program_transform_name,;t t
17359 s,@bindir@,$bindir,;t t
17360 s,@sbindir@,$sbindir,;t t
17361 s,@libexecdir@,$libexecdir,;t t
17362 s,@datadir@,$datadir,;t t
17363 s,@sysconfdir@,$sysconfdir,;t t
17364 s,@sharedstatedir@,$sharedstatedir,;t t
17365 s,@localstatedir@,$localstatedir,;t t
17366 s,@libdir@,$libdir,;t t
17367 s,@includedir@,$includedir,;t t
17368 s,@oldincludedir@,$oldincludedir,;t t
17369 s,@infodir@,$infodir,;t t
17370 s,@mandir@,$mandir,;t t
17371 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17372 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17373 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17374 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17375 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17376 s,@build_alias@,$build_alias,;t t
17377 s,@host_alias@,$host_alias,;t t
17378 s,@target_alias@,$target_alias,;t t
17379 s,@ECHO_C@,$ECHO_C,;t t
17380 s,@ECHO_N@,$ECHO_N,;t t
17381 s,@ECHO_T@,$ECHO_T,;t t
17382 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17383 s,@DEFS@,$DEFS,;t t
17384 s,@LIBS@,$LIBS,;t t
17385 s,@top_builddir@,$top_builddir,;t t
17386 s,@EGREP@,$EGREP,;t t
17387 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
17388 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
17389 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
17390 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
17391 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
17392 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
17393 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
17394 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
17395 s,@build@,$build,;t t
17396 s,@build_cpu@,$build_cpu,;t t
17397 s,@build_vendor@,$build_vendor,;t t
17398 s,@build_os@,$build_os,;t t
17399 s,@host@,$host,;t t
17400 s,@host_cpu@,$host_cpu,;t t
17401 s,@host_vendor@,$host_vendor,;t t
17402 s,@host_os@,$host_os,;t t
17403 s,@target@,$target,;t t
17404 s,@target_cpu@,$target_cpu,;t t
17405 s,@target_vendor@,$target_vendor,;t t
17406 s,@target_os@,$target_os,;t t
17408 s,@CFLAGS@,$CFLAGS,;t t
17409 s,@LDFLAGS@,$LDFLAGS,;t t
17410 s,@CPPFLAGS@,$CPPFLAGS,;t t
17411 s,@ac_ct_CC@,$ac_ct_CC,;t t
17412 s,@EXEEXT@,$EXEEXT,;t t
17413 s,@OBJEXT@,$OBJEXT,;t t
17415 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
17416 s,@PROG_EXT@,$PROG_EXT,;t t
17417 s,@LDCONFIG@,$LDCONFIG,;t t
17419 s,@CXXFLAGS@,$CXXFLAGS,;t t
17420 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17422 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17423 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17424 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17425 s,@LINT@,$LINT,;t t
17426 s,@LINT_OPTS@,$LINT_OPTS,;t t
17427 s,@LN_S@,$LN_S,;t t
17428 s,@SET_MAKE@,$SET_MAKE,;t t
17429 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
17430 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
17431 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
17432 s,@RANLIB@,$RANLIB,;t t
17433 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17435 s,@ac_ct_LD@,$ac_ct_LD,;t t
17437 s,@ac_ct_AR@,$ac_ct_AR,;t t
17438 s,@AR_OPTS@,$AR_OPTS,;t t
17439 s,@DESTDIR@,$DESTDIR,;t t
17440 s,@BUILD_CC@,$BUILD_CC,;t t
17441 s,@BUILD_CPP@,$BUILD_CPP,;t t
17442 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
17443 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
17444 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
17445 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
17446 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
17447 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
17448 s,@cf_list_models@,$cf_list_models,;t t
17449 s,@LIBTOOL@,$LIBTOOL,;t t
17450 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
17451 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
17452 s,@LIB_CREATE@,$LIB_CREATE,;t t
17453 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
17454 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
17455 s,@LIB_PREP@,$LIB_PREP,;t t
17456 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
17457 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
17458 s,@LIB_LINK@,$LIB_LINK,;t t
17459 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
17460 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
17461 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
17462 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
17463 s,@TICS_NAME@,$TICS_NAME,;t t
17464 s,@TINFO_NAME@,$TINFO_NAME,;t t
17465 s,@LIB_NAME@,$LIB_NAME,;t t
17466 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
17467 s,@CC_G_OPT@,$CC_G_OPT,;t t
17468 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
17469 s,@LD_MODEL@,$LD_MODEL,;t t
17470 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
17471 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
17472 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
17473 s,@LINK_PROGS@,$LINK_PROGS,;t t
17474 s,@LINK_TESTS@,$LINK_TESTS,;t t
17475 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
17476 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
17477 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
17478 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
17479 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
17480 s,@PATHSEP@,$PATHSEP,;t t
17481 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
17482 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
17483 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
17484 s,@TERMINFO@,$TERMINFO,;t t
17485 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
17486 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
17487 s,@TERMPATH@,$TERMPATH,;t t
17488 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
17489 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
17490 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
17491 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
17492 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
17493 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
17494 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
17495 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
17496 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
17497 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
17498 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
17499 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
17500 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
17501 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
17502 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
17503 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
17504 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
17505 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
17506 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
17507 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
17508 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
17509 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
17510 s,@PTHREAD@,$PTHREAD,;t t
17511 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
17512 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
17513 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
17514 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
17515 s,@ECHO_LINK@,$ECHO_LINK,;t t
17516 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
17517 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
17518 s,@ADA_TRACE@,$ADA_TRACE,;t t
17519 s,@MATH_LIB@,$MATH_LIB,;t t
17520 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
17521 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
17522 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
17523 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
17524 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
17525 s,@TEST_LIBS@,$TEST_LIBS,;t t
17526 s,@CXXCPP@,$CXXCPP,;t t
17527 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
17528 s,@CXX_AR@,$CXX_AR,;t t
17529 s,@CXX_AR_OPTS@,$CXX_AR_OPTS,;t t
17530 s,@CXXLIBS@,$CXXLIBS,;t t
17531 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
17532 s,@gnat_exists@,$gnat_exists,;t t
17533 s,@M4_exists@,$M4_exists,;t t
17534 s,@cf_ada_make@,$cf_ada_make,;t t
17535 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
17536 s,@cf_ada_package@,$cf_ada_package,;t t
17537 s,@ADAFLAGS@,$ADAFLAGS,;t t
17538 s,@cf_compile_generics@,$cf_compile_generics,;t t
17539 s,@cf_generic_objects@,$cf_generic_objects,;t t
17540 s,@PRAGMA_UNREF@,$PRAGMA_UNREF,;t t
17541 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
17542 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
17543 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
17544 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
17545 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
17546 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
17547 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
17548 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
17549 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
17550 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
17551 s,@TICS_ARGS@,$TICS_ARGS,;t t
17552 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
17553 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
17554 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
17555 s,@TINFO_ARGS@,$TINFO_ARGS,;t t
17556 s,@TINFO_ARGS2@,$TINFO_ARGS2,;t t
17557 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
17558 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
17559 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
17560 s,@TICS_LIST@,$TICS_LIST,;t t
17561 s,@TINFO_LIST@,$TINFO_LIST,;t t
17562 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
17563 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
17564 s,@TEST_ARGS@,$TEST_ARGS,;t t
17565 s,@TEST_DEPS@,$TEST_DEPS,;t t
17566 s,@TEST_ARG2@,$TEST_ARG2,;t t
17567 s,@TEST_DEP2@,$TEST_DEP2,;t t
17568 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
17569 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
17570 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
17571 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
17572 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
17577 cat >>$CONFIG_STATUS <<\EOF
17578 # Split the substitutions into bite-sized pieces for seds with
17579 # small command number limits, like on Digital OSF/1 and HP-UX.
17580 ac_max_sed_lines=48
17581 ac_sed_frag=1 # Number of current file.
17582 ac_beg=1 # First line for current file.
17583 ac_end=$ac_max_sed_lines # Line after last line for current file.
17586 while $ac_more_lines; do
17587 if test $ac_beg -gt 1; then
17588 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17590 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17592 if test ! -s $tmp/subs.frag; then
17593 ac_more_lines=false
17595 # The purpose of the label and of the branching condition is to
17596 # speed up the sed processing (if there are no `@' at all, there
17597 # is no need to browse any of the substitutions).
17598 # These are the two extra sed commands mentioned above.
17600 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17601 if test -z "$ac_sed_cmds"; then
17602 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17604 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17606 ac_sed_frag=`expr $ac_sed_frag + 1`
17608 ac_end=`expr $ac_end + $ac_max_sed_lines`
17611 if test -z "$ac_sed_cmds"; then
17614 fi # test -n "$CONFIG_FILES"
17617 cat >>$CONFIG_STATUS <<\EOF
17618 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17619 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17621 - | *:- | *:-:* ) # input from stdin
17623 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17624 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17625 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17626 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17627 * ) ac_file_in=$ac_file.in ;;
17630 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17631 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17632 X"$ac_file" : 'X\(//\)[^/]' \| \
17633 X"$ac_file" : 'X\(//\)$' \| \
17634 X"$ac_file" : 'X\(/\)' \| \
17635 . : '\(.\)' 2>/dev/null ||
17637 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17638 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17639 /^X\(\/\/\)$/{ s//\1/; q; }
17640 /^X\(\/\).*/{ s//\1/; q; }
17642 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17643 { case "$ac_dir" in
17644 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17648 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17649 case $as_mkdir_dir in
17650 # Skip DOS drivespec
17651 ?:) as_incr_dir=$as_mkdir_dir ;;
17653 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17654 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
17659 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
17660 # A "../" for each directory in $ac_dir_suffix.
17661 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
17663 ac_dir_suffix= ac_dots=
17668 if test -z "$ac_dots"; then
17671 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
17673 [\\/]* | ?:[\\/]* )
17674 ac_srcdir=$srcdir$ac_dir_suffix;
17675 ac_top_srcdir=$srcdir ;;
17676 *) # Relative path.
17677 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
17678 ac_top_srcdir=$ac_dots$srcdir ;;
17682 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17683 *) ac_INSTALL=$ac_dots$INSTALL ;;
17686 if test x"$ac_file" != x-; then
17687 { echo "$as_me:17687: creating $ac_file" >&5
17688 echo "$as_me: creating $ac_file" >&6;}
17691 # Let's still pretend it is `configure' which instantiates (i.e., don't
17692 # use $as_me), people would be surprised to read:
17693 # /* config.h. Generated automatically by config.status. */
17694 configure_input="Generated automatically from `echo $ac_file_in |
17695 sed 's,.*/,,'` by configure."
17697 # First look for the input files in the build tree, otherwise in the
17699 ac_file_inputs=`IFS=:
17700 for f in $ac_file_in; do
17702 -) echo $tmp/stdin ;;
17704 # Absolute (can't be DOS-style, as IFS=:)
17705 test -f "$f" || { { echo "$as_me:17705: error: cannot find input file: $f" >&5
17706 echo "$as_me: error: cannot find input file: $f" >&2;}
17707 { (exit 1); exit 1; }; }
17710 if test -f "$f"; then
17713 elif test -f "$srcdir/$f"; then
17718 { { echo "$as_me:17718: error: cannot find input file: $f" >&5
17719 echo "$as_me: error: cannot find input file: $f" >&2;}
17720 { (exit 1); exit 1; }; }
17723 done` || { (exit 1); exit 1; }
17725 cat >>$CONFIG_STATUS <<EOF
17729 cat >>$CONFIG_STATUS <<\EOF
17731 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17732 s,@configure_input@,$configure_input,;t t
17733 s,@srcdir@,$ac_srcdir,;t t
17734 s,@top_srcdir@,$ac_top_srcdir,;t t
17735 s,@INSTALL@,$ac_INSTALL,;t t
17736 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17738 if test x"$ac_file" != x-; then
17739 mv $tmp/out $ac_file
17747 cat >>$CONFIG_STATUS <<\EOF
17750 # CONFIG_HEADER section.
17753 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17754 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17756 # ac_d sets the value in "#define NAME VALUE" lines.
17757 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17758 ac_dB='[ ].*$,\1#\2'
17761 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
17762 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17763 ac_iB='\([ ]\),\1#\2define\3'
17766 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17767 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17768 ac_uB='$,\1#\2define\3'
17772 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17773 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17775 - | *:- | *:-:* ) # input from stdin
17777 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17778 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17779 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17780 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17781 * ) ac_file_in=$ac_file.in ;;
17784 test x"$ac_file" != x- && { echo "$as_me:17784: creating $ac_file" >&5
17785 echo "$as_me: creating $ac_file" >&6;}
17787 # First look for the input files in the build tree, otherwise in the
17789 ac_file_inputs=`IFS=:
17790 for f in $ac_file_in; do
17792 -) echo $tmp/stdin ;;
17794 # Absolute (can't be DOS-style, as IFS=:)
17795 test -f "$f" || { { echo "$as_me:17795: error: cannot find input file: $f" >&5
17796 echo "$as_me: error: cannot find input file: $f" >&2;}
17797 { (exit 1); exit 1; }; }
17800 if test -f "$f"; then
17803 elif test -f "$srcdir/$f"; then
17808 { { echo "$as_me:17808: error: cannot find input file: $f" >&5
17809 echo "$as_me: error: cannot find input file: $f" >&2;}
17810 { (exit 1); exit 1; }; }
17813 done` || { (exit 1); exit 1; }
17814 # Remove the trailing spaces.
17815 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17819 # Transform confdefs.h into a list of #define's. We won't use it as a sed
17820 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
17821 # be either 'cat' or 'sort'.
17822 cat confdefs.h | uniq >conftest.vals
17824 # Break up conftest.vals because some shells have a limit on
17825 # the size of here documents, and old seds have small limits too.
17827 rm -f conftest.tail
17828 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
17829 while grep . conftest.vals >/dev/null
17831 # Write chunks of a limited-size here document to conftest.frag.
17832 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
17833 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
17834 echo 'CEOF' >> $CONFIG_STATUS
17835 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
17836 rm -f conftest.vals
17837 mv conftest.tail conftest.vals
17839 rm -f conftest.vals
17841 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
17843 echo ' cat >> conftest.edit <<CEOF
17844 /@DEFS@/r conftest.frag
17847 sed -f conftest.edit $tmp/in > $tmp/out
17849 mv $tmp/out $tmp/in
17850 rm -f conftest.edit conftest.frag
17851 ' >> $CONFIG_STATUS
17853 cat >>$CONFIG_STATUS <<\EOF
17854 # Let's still pretend it is `configure' which instantiates (i.e., don't
17855 # use $as_me), people would be surprised to read:
17856 # /* config.h. Generated automatically by config.status. */
17857 if test x"$ac_file" = x-; then
17858 echo "/* Generated automatically by configure. */" >$tmp/config.h
17860 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
17862 cat $tmp/in >>$tmp/config.h
17864 if test x"$ac_file" != x-; then
17865 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
17866 { echo "$as_me:17866: $ac_file is unchanged" >&5
17867 echo "$as_me: $ac_file is unchanged" >&6;}
17869 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17870 X"$ac_file" : 'X\(//\)[^/]' \| \
17871 X"$ac_file" : 'X\(//\)$' \| \
17872 X"$ac_file" : 'X\(/\)' \| \
17873 . : '\(.\)' 2>/dev/null ||
17875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17876 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17877 /^X\(\/\/\)$/{ s//\1/; q; }
17878 /^X\(\/\).*/{ s//\1/; q; }
17880 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17881 { case "$ac_dir" in
17882 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17886 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17887 case $as_mkdir_dir in
17888 # Skip DOS drivespec
17889 ?:) as_incr_dir=$as_mkdir_dir ;;
17891 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17892 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
17899 mv $tmp/config.h $ac_file
17903 rm -f $tmp/config.h
17907 cat >>$CONFIG_STATUS <<\EOF
17910 # CONFIG_COMMANDS section.
17912 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17913 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17914 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17921 if test ! -d $srcdir/$cf_dir; then
17923 elif test -f $srcdir/$cf_dir/programs; then
17924 $AWK -f $srcdir/test/mk-test.awk ECHO_LINK="$ECHO_LINK" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
17928 case $cf_cv_system_name in #(vi
17932 *) LIB_PREFIX='lib'
17935 cf_prefix=$LIB_PREFIX
17937 if test $cf_cv_shlib_version = cygdll ; then
17938 TINFO_NAME=$TINFO_ARG_SUFFIX
17942 for cf_dir in $SRC_SUBDIRS
17944 if test ! -d $srcdir/$cf_dir ; then
17946 elif test -f $srcdir/$cf_dir/modules; then
17950 for cf_item in $cf_LIST_MODELS
17956 cf_depsuf=$cf_suffix
17960 cf_depsuf=$cf_suffix
17964 cf_depsuf=$cf_suffix
17968 cf_depsuf=$cf_suffix
17971 case $cf_cv_system_name in
17978 cf_depsuf=$cf_suffix
17984 cf_depsuf=$cf_suffix
17988 cf_depsuf=$cf_suffix
17993 cf_depsuf=$cf_suffix
17997 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
17998 test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"
18000 if test $cf_item = shared ; then
18001 if test "$cf_cv_do_symlinks" = yes ; then
18002 case "$cf_cv_shlib_version" in #(vi
18004 case "$cf_cv_system_name" in #(vi
18006 case .${LIB_SUFFIX} in
18008 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
18009 cf_suffix=w'.${REL_VERSION}'"$cf_suffix"
18012 cf_suffix='.${REL_VERSION}'"$cf_suffix"
18016 *) cf_suffix="$cf_suffix"'.${REL_VERSION}' ;;
18020 case "$cf_cv_system_name" in #(vi
18022 case .${LIB_SUFFIX} in
18024 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
18025 cf_suffix=w'.${ABI_VERSION}'"$cf_suffix"
18028 cf_suffix='.${ABI_VERSION}'"$cf_suffix"
18032 *) cf_suffix="$cf_suffix"'.${ABI_VERSION}' ;;
18037 # cygwin needs import library, and has unique naming convention
18038 # use autodetected ${cf_prefix} for import lib and static lib, but
18039 # use 'cyg' prefix for shared lib.
18040 if test $cf_cv_shlib_version = cygdll ; then
18041 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
18042 LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/cyg${cf_dir}${cf_cygsuf}"
18046 LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/${cf_prefix}${cf_dir}${cf_suffix}"
18049 if test $cf_dir = ncurses ; then
18050 cf_subsets="$LIB_SUBSETS"
18051 cf_r_parts="$cf_subsets"
18052 cf_liblist="$LIBS_TO_MAKE"
18054 while test -n "$cf_r_parts"
18056 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
18057 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
18058 if test "$cf_l_parts" != "$cf_r_parts" ; then
18060 case $cf_l_parts in #(vi
18062 cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
18065 cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
18071 if test -n "$cf_item"; then
18072 LIBS_TO_MAKE="$cf_item $LIBS_TO_MAKE"
18079 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
18082 sed -e "s%@LIBS_TO_MAKE@%$LIBS_TO_MAKE%" \
18083 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
18084 $cf_dir/Makefile >$cf_dir/Makefile.out
18085 mv $cf_dir/Makefile.out $cf_dir/Makefile
18087 $AWK -f $srcdir/mk-0th.awk \
18088 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" \
18089 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
18091 for cf_subset in $cf_subsets
18094 for cf_item in $cf_LIST_MODELS
18096 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
18098 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
18103 cf_depsuf=$cf_suffix
18107 cf_depsuf=$cf_suffix
18111 cf_depsuf=$cf_suffix
18115 cf_depsuf=$cf_suffix
18118 case $cf_cv_system_name in
18125 cf_depsuf=$cf_suffix
18131 cf_depsuf=$cf_suffix
18135 cf_depsuf=$cf_suffix
18140 cf_depsuf=$cf_suffix
18144 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
18145 test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"
18148 libtool) cf_subdir='obj_lo' ;;
18149 normal) cf_subdir='objects' ;;
18150 debug) cf_subdir='obj_g' ;;
18151 profile) cf_subdir='obj_p' ;;
18153 case $cf_cv_system_name in #(vi
18155 cf_subdir='objects' ;;
18157 cf_subdir='obj_s' ;;
18161 # Test for case where we build libtinfo with a different name.
18163 if test $cf_dir = ncurses ; then
18166 cf_libname=${cf_libname}$LIB_SUFFIX
18169 cf_libname=$TINFO_LIB_SUFFIX
18172 cf_libname=$TICS_LIB_SUFFIX
18176 cf_libname=${cf_libname}$LIB_SUFFIX
18178 if test -n "${DFT_ARG_SUFFIX}" ; then
18179 # undo $LIB_SUFFIX add-on in CF_LIB_SUFFIX
18180 cf_suffix=`echo $cf_suffix |sed -e "s%^${LIB_SUFFIX}%%"`
18183 # These dependencies really are for development, not
18184 # builds, but they are useful in porting, too.
18185 cf_depend="../include/ncurses_cfg.h"
18186 if test "$srcdir" = "."; then
18189 cf_reldir="\${srcdir}"
18192 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
18193 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
18194 elif test -f $srcdir/$cf_dir/curses.priv.h; then
18195 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
18199 old_cf_suffix="$cf_suffix"
18200 if test "$cf_cv_shlib_version_infix" = yes ; then
18201 if test -n "$LIB_SUFFIX" ; then
18202 case $LIB_SUFFIX in
18204 cf_libname=`echo $cf_libname | sed 's/w$//'`
18205 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
18212 $AWK -f $srcdir/mk-1st.awk \
18213 name=${cf_libname}${cf_dir_suffix} \
18214 traces=$LIB_TRACING \
18217 prefix=$cf_prefix \
18218 suffix=$cf_suffix \
18219 subset=$cf_subset \
18220 TermlibRoot=$TINFO_NAME \
18221 TermlibSuffix=$TINFO_SUFFIX \
18222 ShlibVer=$cf_cv_shlib_version \
18223 ShlibVerInfix=$cf_cv_shlib_version_infix \
18224 ReLink=${cf_cv_do_relink-no} \
18225 DoLinks=$cf_cv_do_symlinks \
18226 rmSoLocs=$cf_cv_rm_so_locs \
18227 ldconfig="$LDCONFIG" \
18228 overwrite=$WITH_OVERWRITE \
18229 depend="$cf_depend" \
18231 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
18233 cf_suffix="$old_cf_suffix"
18235 for cf_subdir2 in $cf_subdirs lib
18237 test $cf_subdir = $cf_subdir2 && break
18239 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
18240 $AWK -f $srcdir/mk-2nd.awk \
18242 traces=$LIB_TRACING \
18245 subset=$cf_subset \
18248 crenames=$cf_cv_prog_CC_c_o \
18249 cxxrenames=$cf_cv_prog_CXX_c_o \
18250 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
18251 cf_subdirs="$cf_subdirs $cf_subdir"
18256 echo ' cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@' >>Makefile
18259 for cf_dir in $SRC_SUBDIRS
18261 if test ! -d $srcdir/$cf_dir ; then
18265 if test -f $cf_dir/Makefile ; then
18268 echo 'libs \' >> Makefile
18269 echo 'install.libs \' >> Makefile
18270 echo 'uninstall.libs ::' >> Makefile
18271 echo ' cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@' >> Makefile
18276 if test -f $srcdir/$cf_dir/modules; then
18278 if test -f $srcdir/$cf_dir/headers; then
18279 cat >> Makefile <<CF_EOF
18280 install.includes \\
18281 uninstall.includes \\
18284 if test "$cf_dir" != "c++" ; then
18285 echo 'lint \' >> Makefile
18287 cat >> Makefile <<CF_EOF
18293 uninstall.$cf_dir ::
18294 cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@
18296 elif test -f $srcdir/$cf_dir/headers; then
18297 cat >> Makefile <<CF_EOF
18302 install.includes \\
18303 uninstall.includes ::
18304 cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@
18309 cat >> Makefile <<CF_EOF
18311 install.libs uninstall.libs \\
18312 install.data uninstall.data ::
18313 $MAKE_TERMINFO cd misc && \${MAKE} \${CF_MFLAGS} \$@
18316 if test "x$cf_with_manpages" = xyes; then
18317 cat >> Makefile <<CF_EOF
18321 cd man && \${MAKE} \${CF_MFLAGS} \$@
18325 cat >> Makefile <<CF_EOF
18328 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
18329 rm -f headers.sh headers.sed mk_shared_lib.sh
18330 rm -f edit_man.* man_alias.*
18331 rm -rf \${DIRS_TO_MAKE}
18334 # Special case: tack's manpage lives in its own directory.
18335 if test "x$cf_with_manpages" = xyes; then
18336 if test -d tack ; then
18337 if test -f $srcdir/$tack.h; then
18338 cat >> Makefile <<CF_EOF
18342 cd tack && \${MAKE} \${CF_MFLAGS} \$@
18348 rm -f headers.sed headers.sh
18350 echo creating headers.sh
18351 cat >headers.sh <<CF_EOF
18353 # This shell script is generated by the 'configure' script. It is invoked in a
18354 # subdirectory of the build tree. It generates a sed-script in the parent
18355 # directory that is used to adjust includes for header files that reside in a
18356 # subdirectory of /usr/include, etc.
18358 while test \$# != 3
18360 PRG="\$PRG \$1"; shift
18365 TMPSRC=\${TMPDIR-/tmp}/\`basename \$SRC\`\$\$
18366 TMPSED=\${TMPDIR-/tmp}/headers.sed\$\$
18367 echo installing \$SRC in \$DST
18370 if test $WITH_CURSES_H = yes; then
18371 cat >>headers.sh <<CF_EOF
18374 END=\`basename \$DST\`
18375 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
18377 NAME=\`basename \$i\`
18378 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
18382 echo "" >> \$TMPSED
18388 cat >>headers.sh <<CF_EOF
18391 END=\`basename \$DST\`
18392 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
18394 NAME=\`basename \$i\`
18395 if test "\$NAME" = "curses.h"
18397 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
18400 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
18404 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
18409 cat >>headers.sh <<CF_EOF
18411 sed -f \$TMPSED \$SRC > \$TMPSRC
18412 NAME=\`basename \$SRC\`
18414 if test $WITH_CURSES_H != yes; then
18415 cat >>headers.sh <<CF_EOF
18416 test "\$NAME" = "curses.h" && NAME=ncurses.h
18419 cat >>headers.sh <<CF_EOF
18420 # Just in case someone gzip'd manpages, remove the conflicting copy.
18421 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
18423 eval \$PRG \$TMPSRC \$DST/\$NAME
18424 rm -f \$TMPSRC \$TMPSED
18427 chmod 0755 headers.sh
18429 for cf_dir in $SRC_SUBDIRS
18431 if test ! -d $srcdir/$cf_dir ; then
18435 if test -f $srcdir/$cf_dir/headers; then
18436 $AWK -f $srcdir/mk-hdr.awk \
18437 subset="$LIB_SUBSETS" \
18438 compat="$WITH_CURSES_H" \
18439 $srcdir/$cf_dir/headers >>$cf_dir/Makefile
18442 if test -f $srcdir/$cf_dir/modules; then
18443 if test "$cf_dir" != "c++" ; then
18444 cat >>$cf_dir/Makefile <<"CF_EOF"
18445 depend : ${AUTO_SRC}
18446 makedepend -- ${CPPFLAGS} -- ${C_SRC}
18448 # DO NOT DELETE THIS LINE -- make depend depends on it.
18459 cat >>$CONFIG_STATUS <<\EOF
18461 { (exit 0); exit 0; }
18463 chmod +x $CONFIG_STATUS
18464 ac_clean_files=$ac_clean_files_save
18466 # configure is writing to config.log, and then calls config.status.
18467 # config.status does its own redirection, appending to config.log.
18468 # Unfortunately, on DOS this fails, as config.log is still kept open
18469 # by configure, so config.status won't be able to write to it; its
18470 # output is simply discarded. So we exec the FD to /dev/null,
18471 # effectively closing config.log, so it can be properly (re)opened and
18472 # appended to by config.status. When coming back to configure, we
18473 # need to make the FD available again.
18474 if test "$no_create" != yes; then
18477 $SHELL $CONFIG_STATUS || ac_cs_success=false
18479 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18480 # would make configure fail if this is the last instruction.
18481 $ac_cs_success || { (exit 1); exit 1; }
18483 ${MAKE-make} preinstall