2 # From configure.in Revision: 1.531 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20101002.
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-tests suppress build with test-programs
703 --without-curses-h install curses.h as ncurses.h only
704 --with-pkg-config{=path} enable/disable use of pkg-config
705 --with-pkg-config-libdir=XXX use given directory for installing pc-files
706 --enable-pc-files generate and install .pc files for pkg-config
707 --enable-mixed-case tic should assume mixed-case filenames
708 --with-install-prefix prefixes actual install-location ($DESTDIR)
709 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
710 --with-build-cc=XXX the build C compiler ($BUILD_CC)
711 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
712 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
713 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
714 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
715 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
716 Options to Specify the Libraries Built/Used:
717 --disable-libtool-version enable to use libtool's incompatible naming scheme
718 --with-libtool generate libraries with libtool
719 --with-shared generate shared-libraries
720 --with-normal generate normal-libraries (default)
721 --with-debug generate debug-libraries (default)
722 --with-profile generate profile-libraries
723 --with-termlib generate separate terminfo library
724 --with-ticlib generate separate tic library
725 --with-gpm use Alessandro Rubini's GPM library
726 --without-dlsym do not use dlsym() to load GPM dynamically
727 --with-sysmouse use sysmouse (FreeBSD console)
728 --enable-rpath use rpath option when generating shared libraries
729 --disable-relink relink shared libraries during install
730 --with-shlib-version=X Specify rel or abi version for shared libs
731 --disable-rpath-hack don't add rpath options for additional libraries
732 Fine-Tuning Your Configuration:
733 --disable-overwrite leave out the link to -lcurses
734 --disable-database do not use terminfo, only fallbacks/termcap
735 --with-database=XXX specify terminfo source to install
736 --with-hashed-db specify hashed-database library
737 --with-fallbacks=XXX specify list of fallback terminal descriptions
738 --without-xterm-new specify if xterm terminfo should be old version
739 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
740 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
741 --disable-big-core assume machine has little memory
742 --disable-big-strings assume compiler has only standard-size strings
743 --enable-termcap compile in termcap fallback support
744 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
745 --enable-getcap fast termcap load, no xrefs to terminfo
746 --enable-getcap-cache cache translated termcaps in ~/.terminfo
747 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
748 --disable-root-environ restrict environment when running as root
749 --enable-symlinks make tic use symbolic links not hard links
750 --enable-broken_linker compile with broken-linker support code
751 --enable-bsdpad recognize BSD-style prefix padding
752 --enable-widec compile with wide-char/UTF-8 code
753 --disable-lp64 allow chtype to be long (ignore _LP64)
754 --disable-largefile omit support for large files
755 --disable-tparm-varargs compile tparm() without varargs interface
756 --disable-tic-depends link tic library without explicit dependency on ncurses library
757 --with-bool=TYPE override fallback type of bool variable
758 --with-caps=alt compile with alternate Caps file
759 --with-chtype=TYPE override type of chtype
760 --with-ospeed=TYPE override type of ospeed variable
761 --with-mmask-t=TYPE override type of mmask_t
762 --with-ccharw-max=XXX override size CCHARW_MAX
763 --with-rcs-ids compile-in RCS identifiers
764 Options to Specify How Manpages are Installed:
765 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
766 optionally formatted/catonly, e.g., gzip,formatted
767 --with-manpage-renames specify manpage-renaming
768 --with-manpage-aliases specify manpage-aliases using .so
769 --with-manpage-symlinks specify manpage-aliases using symlinks
770 --with-manpage-tbl specify manpage processing with tbl
772 --disable-ext-funcs disable function-extensions
773 --enable-sp-funcs enable experimental SCREEN-extensions
774 --enable-term-driver enable experimental terminal-driver
775 --enable-const compile with extra/non-standard const
776 --enable-ext-colors compile for 256-color support
777 --enable-ext-mouse compile for extended mouse-encoding
778 --enable-no-padding compile with $NCURSES_NO_PADDING code
779 --enable-signed-char compile using signed Boolean's in term.h
780 --enable-sigwinch compile with SIGWINCH handler
781 --enable-tcap-names compile with user-definable terminal capabilities
783 --without-develop disable development options
784 --enable-hard-tabs compile with hard-tabs code
785 --enable-xmc-glitch compile with support for xmc (magic-cookie)
787 --disable-assumed-color do not assume anything about default-colors
788 --disable-hashmap compile without hashmap scrolling-optimization
789 --enable-colorfgbg compile-in experimental $COLORFGBG code
790 --enable-interop compile-in experimental interop bindings
791 --with-pthread use POSIX thread library
792 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
793 --enable-weak-symbols enable weak-symbols for pthreads
794 --enable-reentrant compile with experimental reentrant code
795 --with-wrap-prefix=XXX override prefix used for public variables
796 --enable-safe-sprintf compile with experimental safe-sprintf code
797 --disable-scroll-hints compile without scroll-hints code
798 --enable-wgetch-events compile with experimental wgetch-events code
799 Testing/development Options:
800 --enable-echo build: display "compiling" commands (default)
801 --enable-warnings build: turn on GCC compiler warnings
802 --enable-assertions test: turn on generation of assertion code
803 --with-dmalloc test: use Gray Watson's dmalloc library
804 --with-dbmalloc test: use Conor Cahill's dbmalloc library
805 --with-valgrind test: use valgrind
806 --disable-leaks test: free permanent memory, analyze leaks
807 --enable-expanded test: generate functions for certain macros
808 --disable-macros test: use functions rather than macros
809 --with-trace test: add trace() function to all models of ncurses
810 Ada95 Binding Options:
811 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
812 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
813 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
814 --with-ada-sharedlib=XX build Ada95 shared-library
816 Some influential environment variables:
817 CC C compiler command
818 CFLAGS C compiler flags
819 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
820 nonstandard directory <lib dir>
821 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
822 headers in a nonstandard directory <include dir>
824 CXX C++ compiler command
825 CXXFLAGS C++ compiler flags
826 CXXCPP C++ preprocessor
828 Use these variables to override the choices made by `configure' or to help
829 it to find libraries and programs with nonstandard names/locations.
834 if test "$ac_init_help" = "recursive"; then
835 # If there are subdirs, report their specific --help.
837 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
839 # A "../" for each directory in /$ac_subdir.
840 ac_dots=`echo $ac_subdir |
841 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
844 .) # No --srcdir option. We are building in place.
845 ac_sub_srcdir=$srcdir ;;
846 [\\/]* | ?:[\\/]* ) # Absolute path.
847 ac_sub_srcdir=$srcdir/$ac_subdir ;;
849 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
852 # Check for guested configure; otherwise get Cygnus style configure.
853 if test -f $ac_sub_srcdir/configure.gnu; then
855 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
856 elif test -f $ac_sub_srcdir/configure; then
858 $SHELL $ac_sub_srcdir/configure --help=recursive
859 elif test -f $ac_sub_srcdir/configure.ac ||
860 test -f $ac_sub_srcdir/configure.in; then
864 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
870 test -n "$ac_init_help" && exit 0
871 if $ac_init_version; then
874 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
875 Free Software Foundation, Inc.
876 This configure script is free software; the Free Software Foundation
877 gives unlimited permission to copy, distribute and modify it.
883 This file contains any messages produced by compilers while
884 running configure, to aid debugging if configure makes a mistake.
886 It was created by $as_me, which was
887 generated by GNU Autoconf 2.52.20101002. Invocation command line was
898 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
899 uname -m = `(uname -m) 2>/dev/null || echo unknown`
900 uname -r = `(uname -r) 2>/dev/null || echo unknown`
901 uname -s = `(uname -s) 2>/dev/null || echo unknown`
902 uname -v = `(uname -v) 2>/dev/null || echo unknown`
904 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
905 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
907 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
908 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
909 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
910 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
911 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
912 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
913 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
927 # Keep a trace of the command line.
928 # Strip out --no-create and --no-recursion so they do not pile up.
929 # Also quote any args containing shell meta-characters.
935 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
936 | --no-cr | --no-c) ;;
937 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
938 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
939 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
940 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
941 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
943 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
946 # Get rid of the leading space.
949 # When interrupted or exit'd, cleanup temporary files, and complete
950 # config.log. We remove comments because anyway the quotes in there
951 # would cause problems or look ugly.
953 # Save into config.log some information that might help in debugging.
955 echo "## ----------------- ##" >&5
956 echo "## Cache variables. ##" >&5
957 echo "## ----------------- ##" >&5
959 # The following way of writing the cache mishandles newlines in values,
962 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
965 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
966 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
970 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
974 sed "/^$/d" confdefs.h >conftest.log
975 if test -s conftest.log; then
977 echo "## ------------ ##" >&5
978 echo "## confdefs.h. ##" >&5
979 echo "## ------------ ##" >&5
984 test "$ac_signal" != 0 &&
985 echo "$as_me: caught signal $ac_signal" >&5
986 echo "$as_me: exit $exit_status" >&5
987 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
990 for ac_signal in 1 2 13 15; do
991 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
995 # confdefs.h avoids OS command line length limits that DEFS can exceed.
996 rm -rf conftest* confdefs.h
997 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1000 # Let the site file select an alternate cache file if it wants to.
1001 # Prefer explicitly selected file to automatically selected ones.
1002 if test -z "$CONFIG_SITE"; then
1003 if test "x$prefix" != xNONE; then
1004 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1006 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1009 for ac_site_file in $CONFIG_SITE; do
1010 if test -r "$ac_site_file"; then
1011 { echo "$as_me:1011: loading site script $ac_site_file" >&5
1012 echo "$as_me: loading site script $ac_site_file" >&6;}
1013 cat "$ac_site_file" >&5
1018 if test -r "$cache_file"; then
1019 # Some versions of bash will fail to source /dev/null (special
1020 # files actually), so we avoid doing that.
1021 if test -f "$cache_file"; then
1022 { echo "$as_me:1022: loading cache $cache_file" >&5
1023 echo "$as_me: loading cache $cache_file" >&6;}
1025 [\\/]* | ?:[\\/]* ) . $cache_file;;
1026 *) . ./$cache_file;;
1030 { echo "$as_me:1030: creating cache $cache_file" >&5
1031 echo "$as_me: creating cache $cache_file" >&6;}
1035 # Check that the precious variables saved in the cache have kept the same
1037 ac_cache_corrupted=false
1038 for ac_var in `(set) 2>&1 |
1039 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1040 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1041 eval ac_new_set=\$ac_env_${ac_var}_set
1042 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1043 eval ac_new_val="\$ac_env_${ac_var}_value"
1044 case $ac_old_set,$ac_new_set in
1046 { echo "$as_me:1046: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1047 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1048 ac_cache_corrupted=: ;;
1050 { echo "$as_me:1050: error: \`$ac_var' was not set in the previous run" >&5
1051 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1052 ac_cache_corrupted=: ;;
1055 if test "x$ac_old_val" != "x$ac_new_val"; then
1056 { echo "$as_me:1056: error: \`$ac_var' has changed since the previous run:" >&5
1057 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1058 { echo "$as_me:1058: former value: $ac_old_val" >&5
1059 echo "$as_me: former value: $ac_old_val" >&2;}
1060 { echo "$as_me:1060: current value: $ac_new_val" >&5
1061 echo "$as_me: current value: $ac_new_val" >&2;}
1062 ac_cache_corrupted=:
1065 # Pass precious variables to config.status. It doesn't matter if
1066 # we pass some twice (in addition to the command line arguments).
1067 if test "$ac_new_set" = set; then
1069 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1070 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1071 ac_configure_args="$ac_configure_args '$ac_arg'"
1073 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1078 if $ac_cache_corrupted; then
1079 { echo "$as_me:1079: error: changes in the environment can compromise the build" >&5
1080 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1081 { { echo "$as_me:1081: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1082 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1083 { (exit 1); exit 1; }; }
1087 ac_cpp='$CPP $CPPFLAGS'
1088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1091 ac_main_return=return
1093 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1094 *c*,-n*) ECHO_N= ECHO_C='
1096 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1097 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1099 echo "#! $SHELL" >conftest.sh
1100 echo "exit 0" >>conftest.sh
1101 chmod +x conftest.sh
1102 if { (echo "$as_me:1102: PATH=\".;.\"; conftest.sh") >&5
1103 (PATH=".;."; conftest.sh) 2>&5
1105 echo "$as_me:1105: \$? = $ac_status" >&5
1106 (exit $ac_status); }; then
1107 ac_path_separator=';'
1111 PATH_SEPARATOR="$ac_path_separator"
1114 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1118 echo "$as_me:1118: checking for egrep" >&5
1119 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1120 if test "${ac_cv_prog_egrep+set}" = set; then
1121 echo $ECHO_N "(cached) $ECHO_C" >&6
1123 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1124 then ac_cv_prog_egrep='grep -E'
1125 else ac_cv_prog_egrep='egrep'
1128 echo "$as_me:1128: result: $ac_cv_prog_egrep" >&5
1129 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1130 EGREP=$ac_cv_prog_egrep
1132 test -z "$EGREP" && { { echo "$as_me:1132: error: No egrep program found" >&5
1133 echo "$as_me: error: No egrep program found" >&2;}
1134 { (exit 1); exit 1; }; }
1136 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1137 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1138 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1139 cf_cv_abi_version=${NCURSES_MAJOR}
1140 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1141 cf_cv_timestamp=`date`
1142 echo "$as_me:1142: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1143 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1145 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1147 # Check whether --with-rel-version or --without-rel-version was given.
1148 if test "${with_rel_version+set}" = set; then
1149 withval="$with_rel_version"
1150 { echo "$as_me:1150: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1151 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1152 cf_cv_rel_version=$withval
1155 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1156 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1158 if test -n "$NCURSES_MAJOR" ; then
1159 case $NCURSES_MAJOR in #(vi
1163 { { echo "$as_me:1163: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1164 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1165 { (exit 1); exit 1; }; }
1169 { { echo "$as_me:1169: error: Release major-version value is empty" >&5
1170 echo "$as_me: error: Release major-version value is empty" >&2;}
1171 { (exit 1); exit 1; }; }
1174 if test -n "$NCURSES_MINOR" ; then
1175 case $NCURSES_MINOR in #(vi
1179 { { echo "$as_me:1179: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1180 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1181 { (exit 1); exit 1; }; }
1185 { { echo "$as_me:1185: error: Release minor-version value is empty" >&5
1186 echo "$as_me: error: Release minor-version value is empty" >&2;}
1187 { (exit 1); exit 1; }; }
1190 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1192 # Check whether --with-abi-version or --without-abi-version was given.
1193 if test "${with_abi_version+set}" = set; then
1194 withval="$with_abi_version"
1195 { echo "$as_me:1195: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1196 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1197 cf_cv_abi_version=$withval
1200 if test -n "$cf_cv_abi_version" ; then
1201 case $cf_cv_abi_version in #(vi
1205 { { echo "$as_me:1205: error: ABI version is not a number: $cf_cv_abi_version" >&5
1206 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1207 { (exit 1); exit 1; }; }
1211 { { echo "$as_me:1211: error: ABI version value is empty" >&5
1212 echo "$as_me: error: ABI version value is empty" >&2;}
1213 { (exit 1); exit 1; }; }
1217 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1218 if test -f $ac_dir/install-sh; then
1220 ac_install_sh="$ac_aux_dir/install-sh -c"
1222 elif test -f $ac_dir/install.sh; then
1224 ac_install_sh="$ac_aux_dir/install.sh -c"
1226 elif test -f $ac_dir/shtool; then
1228 ac_install_sh="$ac_aux_dir/shtool install -c"
1232 if test -z "$ac_aux_dir"; then
1233 { { echo "$as_me:1233: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1234 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1235 { (exit 1); exit 1; }; }
1237 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1238 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1239 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1241 # Make sure we can run config.sub.
1242 $ac_config_sub sun4 >/dev/null 2>&1 ||
1243 { { echo "$as_me:1243: error: cannot run $ac_config_sub" >&5
1244 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1245 { (exit 1); exit 1; }; }
1247 echo "$as_me:1247: checking build system type" >&5
1248 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1249 if test "${ac_cv_build+set}" = set; then
1250 echo $ECHO_N "(cached) $ECHO_C" >&6
1252 ac_cv_build_alias=$build_alias
1253 test -z "$ac_cv_build_alias" &&
1254 ac_cv_build_alias=`$ac_config_guess`
1255 test -z "$ac_cv_build_alias" &&
1256 { { echo "$as_me:1256: error: cannot guess build type; you must specify one" >&5
1257 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1258 { (exit 1); exit 1; }; }
1259 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1260 { { echo "$as_me:1260: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1261 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1262 { (exit 1); exit 1; }; }
1265 echo "$as_me:1265: result: $ac_cv_build" >&5
1266 echo "${ECHO_T}$ac_cv_build" >&6
1268 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1269 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1270 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1272 echo "$as_me:1272: checking host system type" >&5
1273 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1274 if test "${ac_cv_host+set}" = set; then
1275 echo $ECHO_N "(cached) $ECHO_C" >&6
1277 ac_cv_host_alias=$host_alias
1278 test -z "$ac_cv_host_alias" &&
1279 ac_cv_host_alias=$ac_cv_build_alias
1280 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1281 { { echo "$as_me:1281: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1282 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1283 { (exit 1); exit 1; }; }
1286 echo "$as_me:1286: result: $ac_cv_host" >&5
1287 echo "${ECHO_T}$ac_cv_host" >&6
1289 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1290 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1291 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1293 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1294 echo "$as_me:1294: checking target system type" >&5
1295 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1296 if test "${ac_cv_target+set}" = set; then
1297 echo $ECHO_N "(cached) $ECHO_C" >&6
1299 ac_cv_target_alias=$target_alias
1300 test "x$ac_cv_target_alias" = "x" &&
1301 ac_cv_target_alias=$ac_cv_host_alias
1302 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1303 { { echo "$as_me:1303: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1304 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1305 { (exit 1); exit 1; }; }
1308 echo "$as_me:1308: result: $ac_cv_target" >&5
1309 echo "${ECHO_T}$ac_cv_target" >&6
1310 target=$ac_cv_target
1311 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1312 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1313 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1315 # The aliases save the names the user supplied, while $host etc.
1316 # will get canonicalized.
1317 test -n "$target_alias" &&
1318 test "$program_prefix$program_suffix$program_transform_name" = \
1320 program_prefix=${target_alias}-
1321 system_name="$host_os"
1323 system_name="`(uname -s -r) 2>/dev/null`"
1324 if test -z "$system_name" ; then
1325 system_name="`(hostname) 2>/dev/null`"
1328 test -n "$system_name" && cat >>confdefs.h <<EOF
1329 #define SYSTEM_NAME "$system_name"
1332 if test "${cf_cv_system_name+set}" = set; then
1333 echo $ECHO_N "(cached) $ECHO_C" >&6
1335 cf_cv_system_name="$system_name"
1338 test -z "$system_name" && system_name="$cf_cv_system_name"
1339 test -n "$cf_cv_system_name" && echo "$as_me:1339: result: Configuring for $cf_cv_system_name" >&5
1340 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1342 if test ".$system_name" != ".$cf_cv_system_name" ; then
1343 echo "$as_me:1343: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1344 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1345 { { echo "$as_me:1345: error: \"Please remove config.cache and try again.\"" >&5
1346 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1347 { (exit 1); exit 1; }; }
1350 # Check whether --with-system-type or --without-system-type was given.
1351 if test "${with_system_type+set}" = set; then
1352 withval="$with_system_type"
1353 { echo "$as_me:1353: WARNING: overriding system type to $withval" >&5
1354 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1355 cf_cv_system_name=$withval
1358 ### Save the given $CFLAGS to allow user-override.
1359 cf_user_CFLAGS="$CFLAGS"
1361 ### Default install-location
1363 echo "$as_me:1363: checking for prefix" >&5
1364 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1365 if test "x$prefix" = "xNONE" ; then
1366 case "$cf_cv_system_name" in
1367 # non-vendor systems don't have a conflict
1368 openbsd*|freebsd*|mirbsd*|linux*|cygwin*|k*bsd*-gnu)
1371 *) prefix=$ac_default_prefix
1375 echo "$as_me:1375: result: $prefix" >&5
1376 echo "${ECHO_T}$prefix" >&6
1378 if test "x$prefix" = "xNONE" ; then
1379 echo "$as_me:1379: checking for default include-directory" >&5
1380 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1381 test -n "$verbose" && echo 1>&6
1384 $includedir/ncurses \
1386 $prefix/include/ncurses \
1387 /usr/local/include \
1388 /usr/local/include/ncurses \
1390 /usr/include/ncurses
1392 cf_dir=`eval echo $cf_symbol`
1393 if test -f $cf_dir/curses.h ; then
1394 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1395 includedir="$cf_symbol"
1396 test -n "$verbose" && echo $ac_n " found " 1>&6
1400 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1402 echo "$as_me:1402: result: $includedir" >&5
1403 echo "${ECHO_T}$includedir" >&6
1406 ### Checks for programs.
1408 ac_cpp='$CPP $CPPFLAGS'
1409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1412 ac_main_return=return
1413 if test -n "$ac_tool_prefix"; then
1414 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1415 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1416 echo "$as_me:1416: checking for $ac_word" >&5
1417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1418 if test "${ac_cv_prog_CC+set}" = set; then
1419 echo $ECHO_N "(cached) $ECHO_C" >&6
1421 if test -n "$CC"; then
1422 ac_cv_prog_CC="$CC" # Let the user override the test.
1424 ac_save_IFS=$IFS; IFS=$ac_path_separator
1426 for ac_dir in $ac_dummy; do
1428 test -z "$ac_dir" && ac_dir=.
1429 $as_executable_p "$ac_dir/$ac_word" || continue
1430 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1431 echo "$as_me:1431: found $ac_dir/$ac_word" >&5
1438 if test -n "$CC"; then
1439 echo "$as_me:1439: result: $CC" >&5
1440 echo "${ECHO_T}$CC" >&6
1442 echo "$as_me:1442: result: no" >&5
1443 echo "${ECHO_T}no" >&6
1447 if test -z "$ac_cv_prog_CC"; then
1449 # Extract the first word of "gcc", so it can be a program name with args.
1450 set dummy gcc; ac_word=$2
1451 echo "$as_me:1451: checking for $ac_word" >&5
1452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1453 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1454 echo $ECHO_N "(cached) $ECHO_C" >&6
1456 if test -n "$ac_ct_CC"; then
1457 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1459 ac_save_IFS=$IFS; IFS=$ac_path_separator
1461 for ac_dir in $ac_dummy; do
1463 test -z "$ac_dir" && ac_dir=.
1464 $as_executable_p "$ac_dir/$ac_word" || continue
1465 ac_cv_prog_ac_ct_CC="gcc"
1466 echo "$as_me:1466: found $ac_dir/$ac_word" >&5
1472 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1473 if test -n "$ac_ct_CC"; then
1474 echo "$as_me:1474: result: $ac_ct_CC" >&5
1475 echo "${ECHO_T}$ac_ct_CC" >&6
1477 echo "$as_me:1477: result: no" >&5
1478 echo "${ECHO_T}no" >&6
1486 if test -z "$CC"; then
1487 if test -n "$ac_tool_prefix"; then
1488 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1489 set dummy ${ac_tool_prefix}cc; ac_word=$2
1490 echo "$as_me:1490: checking for $ac_word" >&5
1491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1492 if test "${ac_cv_prog_CC+set}" = set; then
1493 echo $ECHO_N "(cached) $ECHO_C" >&6
1495 if test -n "$CC"; then
1496 ac_cv_prog_CC="$CC" # Let the user override the test.
1498 ac_save_IFS=$IFS; IFS=$ac_path_separator
1500 for ac_dir in $ac_dummy; do
1502 test -z "$ac_dir" && ac_dir=.
1503 $as_executable_p "$ac_dir/$ac_word" || continue
1504 ac_cv_prog_CC="${ac_tool_prefix}cc"
1505 echo "$as_me:1505: found $ac_dir/$ac_word" >&5
1512 if test -n "$CC"; then
1513 echo "$as_me:1513: result: $CC" >&5
1514 echo "${ECHO_T}$CC" >&6
1516 echo "$as_me:1516: result: no" >&5
1517 echo "${ECHO_T}no" >&6
1521 if test -z "$ac_cv_prog_CC"; then
1523 # Extract the first word of "cc", so it can be a program name with args.
1524 set dummy cc; ac_word=$2
1525 echo "$as_me:1525: checking for $ac_word" >&5
1526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1527 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1528 echo $ECHO_N "(cached) $ECHO_C" >&6
1530 if test -n "$ac_ct_CC"; then
1531 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1533 ac_save_IFS=$IFS; IFS=$ac_path_separator
1535 for ac_dir in $ac_dummy; do
1537 test -z "$ac_dir" && ac_dir=.
1538 $as_executable_p "$ac_dir/$ac_word" || continue
1539 ac_cv_prog_ac_ct_CC="cc"
1540 echo "$as_me:1540: found $ac_dir/$ac_word" >&5
1546 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1547 if test -n "$ac_ct_CC"; then
1548 echo "$as_me:1548: result: $ac_ct_CC" >&5
1549 echo "${ECHO_T}$ac_ct_CC" >&6
1551 echo "$as_me:1551: result: no" >&5
1552 echo "${ECHO_T}no" >&6
1561 if test -z "$CC"; then
1562 # Extract the first word of "cc", so it can be a program name with args.
1563 set dummy cc; ac_word=$2
1564 echo "$as_me:1564: checking for $ac_word" >&5
1565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1566 if test "${ac_cv_prog_CC+set}" = set; then
1567 echo $ECHO_N "(cached) $ECHO_C" >&6
1569 if test -n "$CC"; then
1570 ac_cv_prog_CC="$CC" # Let the user override the test.
1573 ac_save_IFS=$IFS; IFS=$ac_path_separator
1575 for ac_dir in $ac_dummy; do
1577 test -z "$ac_dir" && ac_dir=.
1578 $as_executable_p "$ac_dir/$ac_word" || continue
1579 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1580 ac_prog_rejected=yes
1584 echo "$as_me:1584: found $ac_dir/$ac_word" >&5
1588 if test $ac_prog_rejected = yes; then
1589 # We found a bogon in the path, so make sure we never use it.
1590 set dummy $ac_cv_prog_CC
1592 if test $# != 0; then
1593 # We chose a different compiler from the bogus one.
1594 # However, it has the same basename, so the bogon will be chosen
1595 # first if we set CC to just the basename; use the full file name.
1597 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1605 if test -n "$CC"; then
1606 echo "$as_me:1606: result: $CC" >&5
1607 echo "${ECHO_T}$CC" >&6
1609 echo "$as_me:1609: result: no" >&5
1610 echo "${ECHO_T}no" >&6
1614 if test -z "$CC"; then
1615 if test -n "$ac_tool_prefix"; then
1618 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1619 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1620 echo "$as_me:1620: checking for $ac_word" >&5
1621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1622 if test "${ac_cv_prog_CC+set}" = set; then
1623 echo $ECHO_N "(cached) $ECHO_C" >&6
1625 if test -n "$CC"; then
1626 ac_cv_prog_CC="$CC" # Let the user override the test.
1628 ac_save_IFS=$IFS; IFS=$ac_path_separator
1630 for ac_dir in $ac_dummy; do
1632 test -z "$ac_dir" && ac_dir=.
1633 $as_executable_p "$ac_dir/$ac_word" || continue
1634 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1635 echo "$as_me:1635: found $ac_dir/$ac_word" >&5
1642 if test -n "$CC"; then
1643 echo "$as_me:1643: result: $CC" >&5
1644 echo "${ECHO_T}$CC" >&6
1646 echo "$as_me:1646: result: no" >&5
1647 echo "${ECHO_T}no" >&6
1650 test -n "$CC" && break
1653 if test -z "$CC"; then
1657 # Extract the first word of "$ac_prog", so it can be a program name with args.
1658 set dummy $ac_prog; ac_word=$2
1659 echo "$as_me:1659: checking for $ac_word" >&5
1660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1661 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
1664 if test -n "$ac_ct_CC"; then
1665 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1667 ac_save_IFS=$IFS; IFS=$ac_path_separator
1669 for ac_dir in $ac_dummy; do
1671 test -z "$ac_dir" && ac_dir=.
1672 $as_executable_p "$ac_dir/$ac_word" || continue
1673 ac_cv_prog_ac_ct_CC="$ac_prog"
1674 echo "$as_me:1674: found $ac_dir/$ac_word" >&5
1680 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1681 if test -n "$ac_ct_CC"; then
1682 echo "$as_me:1682: result: $ac_ct_CC" >&5
1683 echo "${ECHO_T}$ac_ct_CC" >&6
1685 echo "$as_me:1685: result: no" >&5
1686 echo "${ECHO_T}no" >&6
1689 test -n "$ac_ct_CC" && break
1697 test -z "$CC" && { { echo "$as_me:1697: error: no acceptable cc found in \$PATH" >&5
1698 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1699 { (exit 1); exit 1; }; }
1701 # Provide some information about the compiler.
1702 echo "$as_me:1702:" \
1703 "checking for C compiler version" >&5
1704 ac_compiler=`set X $ac_compile; echo $2`
1705 { (eval echo "$as_me:1705: \"$ac_compiler --version </dev/null >&5\"") >&5
1706 (eval $ac_compiler --version </dev/null >&5) 2>&5
1708 echo "$as_me:1708: \$? = $ac_status" >&5
1709 (exit $ac_status); }
1710 { (eval echo "$as_me:1710: \"$ac_compiler -v </dev/null >&5\"") >&5
1711 (eval $ac_compiler -v </dev/null >&5) 2>&5
1713 echo "$as_me:1713: \$? = $ac_status" >&5
1714 (exit $ac_status); }
1715 { (eval echo "$as_me:1715: \"$ac_compiler -V </dev/null >&5\"") >&5
1716 (eval $ac_compiler -V </dev/null >&5) 2>&5
1718 echo "$as_me:1718: \$? = $ac_status" >&5
1719 (exit $ac_status); }
1721 cat >conftest.$ac_ext <<_ACEOF
1722 #line 1722 "configure"
1723 #include "confdefs.h"
1733 ac_clean_files_save=$ac_clean_files
1734 ac_clean_files="$ac_clean_files a.out a.exe"
1735 # Try to create an executable without -o first, disregard a.out.
1736 # It will help us diagnose broken compilers, and finding out an intuition
1738 echo "$as_me:1738: checking for C compiler default output" >&5
1739 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1740 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1741 if { (eval echo "$as_me:1741: \"$ac_link_default\"") >&5
1742 (eval $ac_link_default) 2>&5
1744 echo "$as_me:1744: \$? = $ac_status" >&5
1745 (exit $ac_status); }; then
1746 # Find the output, starting from the most likely. This scheme is
1747 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1749 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1750 ls a.out conftest 2>/dev/null;
1751 ls a.* conftest.* 2>/dev/null`; do
1753 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1754 a.out ) # We found the default executable, but exeext='' is most
1757 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1758 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1765 echo "$as_me: failed program was:" >&5
1766 cat conftest.$ac_ext >&5
1767 { { echo "$as_me:1767: error: C compiler cannot create executables" >&5
1768 echo "$as_me: error: C compiler cannot create executables" >&2;}
1769 { (exit 77); exit 77; }; }
1772 ac_exeext=$ac_cv_exeext
1773 echo "$as_me:1773: result: $ac_file" >&5
1774 echo "${ECHO_T}$ac_file" >&6
1776 # Check the compiler produces executables we can run. If not, either
1777 # the compiler is broken, or we cross compile.
1778 echo "$as_me:1778: checking whether the C compiler works" >&5
1779 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1780 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1781 # If not cross compiling, check that we can run a simple program.
1782 if test "$cross_compiling" != yes; then
1783 if { ac_try='./$ac_file'
1784 { (eval echo "$as_me:1784: \"$ac_try\"") >&5
1787 echo "$as_me:1787: \$? = $ac_status" >&5
1788 (exit $ac_status); }; }; then
1791 if test "$cross_compiling" = maybe; then
1794 { { echo "$as_me:1794: error: cannot run C compiled programs.
1795 If you meant to cross compile, use \`--host'." >&5
1796 echo "$as_me: error: cannot run C compiled programs.
1797 If you meant to cross compile, use \`--host'." >&2;}
1798 { (exit 1); exit 1; }; }
1802 echo "$as_me:1802: result: yes" >&5
1803 echo "${ECHO_T}yes" >&6
1805 rm -f a.out a.exe conftest$ac_cv_exeext
1806 ac_clean_files=$ac_clean_files_save
1807 # Check the compiler produces executables we can run. If not, either
1808 # the compiler is broken, or we cross compile.
1809 echo "$as_me:1809: checking whether we are cross compiling" >&5
1810 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1811 echo "$as_me:1811: result: $cross_compiling" >&5
1812 echo "${ECHO_T}$cross_compiling" >&6
1814 echo "$as_me:1814: checking for executable suffix" >&5
1815 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1816 if { (eval echo "$as_me:1816: \"$ac_link\"") >&5
1817 (eval $ac_link) 2>&5
1819 echo "$as_me:1819: \$? = $ac_status" >&5
1820 (exit $ac_status); }; then
1821 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1822 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1823 # work properly (i.e., refer to `conftest.exe'), while it won't with
1825 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1827 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1828 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1835 { { echo "$as_me:1835: error: cannot compute EXEEXT: cannot compile and link" >&5
1836 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1837 { (exit 1); exit 1; }; }
1840 rm -f conftest$ac_cv_exeext
1841 echo "$as_me:1841: result: $ac_cv_exeext" >&5
1842 echo "${ECHO_T}$ac_cv_exeext" >&6
1844 rm -f conftest.$ac_ext
1845 EXEEXT=$ac_cv_exeext
1847 echo "$as_me:1847: checking for object suffix" >&5
1848 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1849 if test "${ac_cv_objext+set}" = set; then
1850 echo $ECHO_N "(cached) $ECHO_C" >&6
1852 cat >conftest.$ac_ext <<_ACEOF
1853 #line 1853 "configure"
1854 #include "confdefs.h"
1864 rm -f conftest.o conftest.obj
1865 if { (eval echo "$as_me:1865: \"$ac_compile\"") >&5
1866 (eval $ac_compile) 2>&5
1868 echo "$as_me:1868: \$? = $ac_status" >&5
1869 (exit $ac_status); }; then
1870 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1872 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1873 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1878 echo "$as_me: failed program was:" >&5
1879 cat conftest.$ac_ext >&5
1880 { { echo "$as_me:1880: error: cannot compute OBJEXT: cannot compile" >&5
1881 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1882 { (exit 1); exit 1; }; }
1885 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1887 echo "$as_me:1887: result: $ac_cv_objext" >&5
1888 echo "${ECHO_T}$ac_cv_objext" >&6
1889 OBJEXT=$ac_cv_objext
1891 echo "$as_me:1891: checking whether we are using the GNU C compiler" >&5
1892 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1893 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1894 echo $ECHO_N "(cached) $ECHO_C" >&6
1896 cat >conftest.$ac_ext <<_ACEOF
1897 #line 1897 "configure"
1898 #include "confdefs.h"
1911 rm -f conftest.$ac_objext
1912 if { (eval echo "$as_me:1912: \"$ac_compile\"") >&5
1913 (eval $ac_compile) 2>&5
1915 echo "$as_me:1915: \$? = $ac_status" >&5
1916 (exit $ac_status); } &&
1917 { ac_try='test -s conftest.$ac_objext'
1918 { (eval echo "$as_me:1918: \"$ac_try\"") >&5
1921 echo "$as_me:1921: \$? = $ac_status" >&5
1922 (exit $ac_status); }; }; then
1925 echo "$as_me: failed program was:" >&5
1926 cat conftest.$ac_ext >&5
1929 rm -f conftest.$ac_objext conftest.$ac_ext
1930 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1933 echo "$as_me:1933: result: $ac_cv_c_compiler_gnu" >&5
1934 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1935 GCC=`test $ac_compiler_gnu = yes && echo yes`
1936 ac_test_CFLAGS=${CFLAGS+set}
1937 ac_save_CFLAGS=$CFLAGS
1939 echo "$as_me:1939: checking whether $CC accepts -g" >&5
1940 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1941 if test "${ac_cv_prog_cc_g+set}" = set; then
1942 echo $ECHO_N "(cached) $ECHO_C" >&6
1944 cat >conftest.$ac_ext <<_ACEOF
1945 #line 1945 "configure"
1946 #include "confdefs.h"
1956 rm -f conftest.$ac_objext
1957 if { (eval echo "$as_me:1957: \"$ac_compile\"") >&5
1958 (eval $ac_compile) 2>&5
1960 echo "$as_me:1960: \$? = $ac_status" >&5
1961 (exit $ac_status); } &&
1962 { ac_try='test -s conftest.$ac_objext'
1963 { (eval echo "$as_me:1963: \"$ac_try\"") >&5
1966 echo "$as_me:1966: \$? = $ac_status" >&5
1967 (exit $ac_status); }; }; then
1970 echo "$as_me: failed program was:" >&5
1971 cat conftest.$ac_ext >&5
1974 rm -f conftest.$ac_objext conftest.$ac_ext
1976 echo "$as_me:1976: result: $ac_cv_prog_cc_g" >&5
1977 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1978 if test "$ac_test_CFLAGS" = set; then
1979 CFLAGS=$ac_save_CFLAGS
1980 elif test $ac_cv_prog_cc_g = yes; then
1981 if test "$GCC" = yes; then
1987 if test "$GCC" = yes; then
1993 # Some people use a C++ compiler to compile C. Since we use `exit',
1994 # in C++ we need to declare it. In case someone uses the same compiler
1995 # for both compiling C and C++ we need to have the C++ compiler decide
1996 # the declaration of exit, since it's the most demanding environment.
1997 cat >conftest.$ac_ext <<_ACEOF
2002 rm -f conftest.$ac_objext
2003 if { (eval echo "$as_me:2003: \"$ac_compile\"") >&5
2004 (eval $ac_compile) 2>&5
2006 echo "$as_me:2006: \$? = $ac_status" >&5
2007 (exit $ac_status); } &&
2008 { ac_try='test -s conftest.$ac_objext'
2009 { (eval echo "$as_me:2009: \"$ac_try\"") >&5
2012 echo "$as_me:2012: \$? = $ac_status" >&5
2013 (exit $ac_status); }; }; then
2014 for ac_declaration in \
2016 '#include <stdlib.h>' \
2017 'extern "C" void std::exit (int) throw (); using std::exit;' \
2018 'extern "C" void std::exit (int); using std::exit;' \
2019 'extern "C" void exit (int) throw ();' \
2020 'extern "C" void exit (int);' \
2023 cat >conftest.$ac_ext <<_ACEOF
2024 #line 2024 "configure"
2025 #include "confdefs.h"
2036 rm -f conftest.$ac_objext
2037 if { (eval echo "$as_me:2037: \"$ac_compile\"") >&5
2038 (eval $ac_compile) 2>&5
2040 echo "$as_me:2040: \$? = $ac_status" >&5
2041 (exit $ac_status); } &&
2042 { ac_try='test -s conftest.$ac_objext'
2043 { (eval echo "$as_me:2043: \"$ac_try\"") >&5
2046 echo "$as_me:2046: \$? = $ac_status" >&5
2047 (exit $ac_status); }; }; then
2050 echo "$as_me: failed program was:" >&5
2051 cat conftest.$ac_ext >&5
2054 rm -f conftest.$ac_objext conftest.$ac_ext
2055 cat >conftest.$ac_ext <<_ACEOF
2056 #line 2056 "configure"
2057 #include "confdefs.h"
2067 rm -f conftest.$ac_objext
2068 if { (eval echo "$as_me:2068: \"$ac_compile\"") >&5
2069 (eval $ac_compile) 2>&5
2071 echo "$as_me:2071: \$? = $ac_status" >&5
2072 (exit $ac_status); } &&
2073 { ac_try='test -s conftest.$ac_objext'
2074 { (eval echo "$as_me:2074: \"$ac_try\"") >&5
2077 echo "$as_me:2077: \$? = $ac_status" >&5
2078 (exit $ac_status); }; }; then
2081 echo "$as_me: failed program was:" >&5
2082 cat conftest.$ac_ext >&5
2084 rm -f conftest.$ac_objext conftest.$ac_ext
2087 if test -n "$ac_declaration"; then
2088 echo '#ifdef __cplusplus' >>confdefs.h
2089 echo $ac_declaration >>confdefs.h
2090 echo '#endif' >>confdefs.h
2094 echo "$as_me: failed program was:" >&5
2095 cat conftest.$ac_ext >&5
2097 rm -f conftest.$ac_objext conftest.$ac_ext
2099 ac_cpp='$CPP $CPPFLAGS'
2100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2103 ac_main_return=return
2106 if test "$GCC" = yes ; then
2107 echo "$as_me:2107: checking version of $CC" >&5
2108 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2109 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2110 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2111 echo "$as_me:2111: result: $GCC_VERSION" >&5
2112 echo "${ECHO_T}$GCC_VERSION" >&6
2116 ac_cpp='$CPP $CPPFLAGS'
2117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2120 ac_main_return=return
2121 echo "$as_me:2121: checking how to run the C preprocessor" >&5
2122 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2123 # On Suns, sometimes $CPP names a directory.
2124 if test -n "$CPP" && test -d "$CPP"; then
2127 if test -z "$CPP"; then
2128 if test "${ac_cv_prog_CPP+set}" = set; then
2129 echo $ECHO_N "(cached) $ECHO_C" >&6
2131 # Double quotes because CPP needs to be expanded
2132 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2135 for ac_c_preproc_warn_flag in '' yes
2137 # Use a header file that comes with gcc, so configuring glibc
2138 # with a fresh cross-compiler works.
2139 # On the NeXT, cc -E runs the code through the compiler's parser,
2140 # not just through cpp. "Syntax error" is here to catch this case.
2141 cat >conftest.$ac_ext <<_ACEOF
2142 #line 2142 "configure"
2143 #include "confdefs.h"
2147 if { (eval echo "$as_me:2147: \"$ac_cpp conftest.$ac_ext\"") >&5
2148 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2150 egrep -v '^ *\+' conftest.er1 >conftest.err
2152 cat conftest.err >&5
2153 echo "$as_me:2153: \$? = $ac_status" >&5
2154 (exit $ac_status); } >/dev/null; then
2155 if test -s conftest.err; then
2156 ac_cpp_err=$ac_c_preproc_warn_flag
2163 if test -z "$ac_cpp_err"; then
2166 echo "$as_me: failed program was:" >&5
2167 cat conftest.$ac_ext >&5
2168 # Broken: fails on valid input.
2171 rm -f conftest.err conftest.$ac_ext
2173 # OK, works on sane cases. Now check whether non-existent headers
2174 # can be detected and how.
2175 cat >conftest.$ac_ext <<_ACEOF
2176 #line 2176 "configure"
2177 #include "confdefs.h"
2178 #include <ac_nonexistent.h>
2180 if { (eval echo "$as_me:2180: \"$ac_cpp conftest.$ac_ext\"") >&5
2181 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2183 egrep -v '^ *\+' conftest.er1 >conftest.err
2185 cat conftest.err >&5
2186 echo "$as_me:2186: \$? = $ac_status" >&5
2187 (exit $ac_status); } >/dev/null; then
2188 if test -s conftest.err; then
2189 ac_cpp_err=$ac_c_preproc_warn_flag
2196 if test -z "$ac_cpp_err"; then
2197 # Broken: success on invalid input.
2200 echo "$as_me: failed program was:" >&5
2201 cat conftest.$ac_ext >&5
2202 # Passes both tests.
2206 rm -f conftest.err conftest.$ac_ext
2209 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2210 rm -f conftest.err conftest.$ac_ext
2211 if $ac_preproc_ok; then
2223 echo "$as_me:2223: result: $CPP" >&5
2224 echo "${ECHO_T}$CPP" >&6
2226 for ac_c_preproc_warn_flag in '' yes
2228 # Use a header file that comes with gcc, so configuring glibc
2229 # with a fresh cross-compiler works.
2230 # On the NeXT, cc -E runs the code through the compiler's parser,
2231 # not just through cpp. "Syntax error" is here to catch this case.
2232 cat >conftest.$ac_ext <<_ACEOF
2233 #line 2233 "configure"
2234 #include "confdefs.h"
2238 if { (eval echo "$as_me:2238: \"$ac_cpp conftest.$ac_ext\"") >&5
2239 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2241 egrep -v '^ *\+' conftest.er1 >conftest.err
2243 cat conftest.err >&5
2244 echo "$as_me:2244: \$? = $ac_status" >&5
2245 (exit $ac_status); } >/dev/null; then
2246 if test -s conftest.err; then
2247 ac_cpp_err=$ac_c_preproc_warn_flag
2254 if test -z "$ac_cpp_err"; then
2257 echo "$as_me: failed program was:" >&5
2258 cat conftest.$ac_ext >&5
2259 # Broken: fails on valid input.
2262 rm -f conftest.err conftest.$ac_ext
2264 # OK, works on sane cases. Now check whether non-existent headers
2265 # can be detected and how.
2266 cat >conftest.$ac_ext <<_ACEOF
2267 #line 2267 "configure"
2268 #include "confdefs.h"
2269 #include <ac_nonexistent.h>
2271 if { (eval echo "$as_me:2271: \"$ac_cpp conftest.$ac_ext\"") >&5
2272 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2274 egrep -v '^ *\+' conftest.er1 >conftest.err
2276 cat conftest.err >&5
2277 echo "$as_me:2277: \$? = $ac_status" >&5
2278 (exit $ac_status); } >/dev/null; then
2279 if test -s conftest.err; then
2280 ac_cpp_err=$ac_c_preproc_warn_flag
2287 if test -z "$ac_cpp_err"; then
2288 # Broken: success on invalid input.
2291 echo "$as_me: failed program was:" >&5
2292 cat conftest.$ac_ext >&5
2293 # Passes both tests.
2297 rm -f conftest.err conftest.$ac_ext
2300 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2301 rm -f conftest.err conftest.$ac_ext
2302 if $ac_preproc_ok; then
2305 { { echo "$as_me:2305: error: C preprocessor \"$CPP\" fails sanity check" >&5
2306 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2307 { (exit 1); exit 1; }; }
2311 ac_cpp='$CPP $CPPFLAGS'
2312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2315 ac_main_return=return
2317 if test $ac_cv_c_compiler_gnu = yes; then
2318 echo "$as_me:2318: checking whether $CC needs -traditional" >&5
2319 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2320 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2321 echo $ECHO_N "(cached) $ECHO_C" >&6
2323 ac_pattern="Autoconf.*'x'"
2324 cat >conftest.$ac_ext <<_ACEOF
2325 #line 2325 "configure"
2326 #include "confdefs.h"
2328 int Autoconf = TIOCGETP;
2330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2331 egrep "$ac_pattern" >/dev/null 2>&1; then
2332 ac_cv_prog_gcc_traditional=yes
2334 ac_cv_prog_gcc_traditional=no
2338 if test $ac_cv_prog_gcc_traditional = no; then
2339 cat >conftest.$ac_ext <<_ACEOF
2340 #line 2340 "configure"
2341 #include "confdefs.h"
2343 int Autoconf = TCGETA;
2345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2346 egrep "$ac_pattern" >/dev/null 2>&1; then
2347 ac_cv_prog_gcc_traditional=yes
2353 echo "$as_me:2353: result: $ac_cv_prog_gcc_traditional" >&5
2354 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2355 if test $ac_cv_prog_gcc_traditional = yes; then
2356 CC="$CC -traditional"
2360 echo "$as_me:2360: checking whether $CC understands -c and -o together" >&5
2361 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2362 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 cat > conftest.$ac_ext <<CF_EOF
2370 ${cf_cv_main_return:-return}(0);
2373 # We do the test twice because some compilers refuse to overwrite an
2374 # existing .o file with -o, though they will create one.
2375 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2376 if { (eval echo "$as_me:2376: \"$ac_try\"") >&5
2379 echo "$as_me:2379: \$? = $ac_status" >&5
2380 (exit $ac_status); } &&
2381 test -f conftest2.$ac_objext && { (eval echo "$as_me:2381: \"$ac_try\"") >&5
2384 echo "$as_me:2384: \$? = $ac_status" >&5
2385 (exit $ac_status); };
2387 eval cf_cv_prog_CC_c_o=yes
2389 eval cf_cv_prog_CC_c_o=no
2394 if test $cf_cv_prog_CC_c_o = yes; then
2395 echo "$as_me:2395: result: yes" >&5
2396 echo "${ECHO_T}yes" >&6
2398 echo "$as_me:2398: result: no" >&5
2399 echo "${ECHO_T}no" >&6
2402 echo "$as_me:2402: checking for POSIXized ISC" >&5
2403 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2404 if test -d /etc/conf/kconfig.d &&
2405 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2407 echo "$as_me:2407: result: yes" >&5
2408 echo "${ECHO_T}yes" >&6
2409 ISC=yes # If later tests want to check for ISC.
2411 cat >>confdefs.h <<\EOF
2412 #define _POSIX_SOURCE 1
2415 if test "$GCC" = yes; then
2421 echo "$as_me:2421: result: no" >&5
2422 echo "${ECHO_T}no" >&6
2426 # This should have been defined by AC_PROG_CC
2429 # Check for user's environment-breakage by stuffing CFLAGS/CPPFLAGS content
2430 # into CC. This will not help with broken scripts that wrap the compiler with
2431 # options, but eliminates a more common category of user confusion.
2432 echo "$as_me:2432: checking \$CC variable" >&5
2433 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2436 echo "$as_me:2436: result: broken" >&5
2437 echo "${ECHO_T}broken" >&6
2438 { echo "$as_me:2438: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2439 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2441 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
2442 CC=`echo "$CC" | sed -e 's/[ ].*//'`
2447 cf_new_extra_cppflags=
2449 for cf_add_cflags in $cf_flags
2451 case $cf_fix_cppflags in
2453 case $cf_add_cflags in #(vi
2454 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2455 case $cf_add_cflags in
2457 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2459 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2460 && test -z "${cf_tst_cflags}" \
2461 && cf_fix_cppflags=yes
2463 if test $cf_fix_cppflags = yes ; then
2464 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2466 elif test "${cf_tst_cflags}" = "\"'" ; then
2467 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2473 *$cf_add_cflags) #(vi
2476 case $cf_add_cflags in #(vi
2478 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2480 CPPFLAGS=`echo "$CPPFLAGS" | \
2481 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2482 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2486 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2491 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2496 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2498 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2500 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2501 && test -z "${cf_tst_cflags}" \
2502 && cf_fix_cppflags=no
2507 if test -n "$cf_new_cflags" ; then
2509 CFLAGS="$CFLAGS $cf_new_cflags"
2512 if test -n "$cf_new_cppflags" ; then
2514 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2517 if test -n "$cf_new_extra_cppflags" ; then
2519 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2524 echo "$as_me:2524: result: ok" >&5
2525 echo "${ECHO_T}ok" >&6
2529 echo "$as_me:2529: checking for ${CC:-cc} option to accept ANSI C" >&5
2530 echo $ECHO_N "checking for ${CC:-cc} option to accept ANSI C... $ECHO_C" >&6
2531 if test "${cf_cv_ansi_cc+set}" = set; then
2532 echo $ECHO_N "(cached) $ECHO_C" >&6
2536 cf_save_CFLAGS="$CFLAGS"
2537 cf_save_CPPFLAGS="$CPPFLAGS"
2538 # Don't try gcc -ansi; that turns off useful extensions and
2539 # breaks some systems' header files.
2540 # AIX -qlanglvl=ansi
2541 # Ultrix and OSF/1 -std1
2542 # HP-UX -Aa -D_HPUX_SOURCE
2544 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2545 for cf_arg in "-DCC_HAS_PROTOS" \
2550 "-Aa -D_HPUX_SOURCE" \
2557 cf_new_extra_cppflags=
2559 for cf_add_cflags in $cf_arg
2561 case $cf_fix_cppflags in
2563 case $cf_add_cflags in #(vi
2564 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2565 case $cf_add_cflags in
2567 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2569 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2570 && test -z "${cf_tst_cflags}" \
2571 && cf_fix_cppflags=yes
2573 if test $cf_fix_cppflags = yes ; then
2574 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2576 elif test "${cf_tst_cflags}" = "\"'" ; then
2577 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2583 *$cf_add_cflags) #(vi
2586 case $cf_add_cflags in #(vi
2588 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2590 CPPFLAGS=`echo "$CPPFLAGS" | \
2591 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2592 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2596 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2601 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2606 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2608 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2610 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2611 && test -z "${cf_tst_cflags}" \
2612 && cf_fix_cppflags=no
2617 if test -n "$cf_new_cflags" ; then
2619 CFLAGS="$CFLAGS $cf_new_cflags"
2622 if test -n "$cf_new_cppflags" ; then
2624 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2627 if test -n "$cf_new_extra_cppflags" ; then
2629 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2632 cat >conftest.$ac_ext <<_ACEOF
2633 #line 2633 "configure"
2634 #include "confdefs.h"
2636 #ifndef CC_HAS_PROTOS
2637 #if !defined(__STDC__) || (__STDC__ != 1)
2646 int test (int i, double x);
2647 struct s1 {int (*f) (int a);};
2648 struct s2 {int (*f) (double a);};
2653 rm -f conftest.$ac_objext
2654 if { (eval echo "$as_me:2654: \"$ac_compile\"") >&5
2655 (eval $ac_compile) 2>&5
2657 echo "$as_me:2657: \$? = $ac_status" >&5
2658 (exit $ac_status); } &&
2659 { ac_try='test -s conftest.$ac_objext'
2660 { (eval echo "$as_me:2660: \"$ac_try\"") >&5
2663 echo "$as_me:2663: \$? = $ac_status" >&5
2664 (exit $ac_status); }; }; then
2665 cf_cv_ansi_cc="$cf_arg"; break
2667 echo "$as_me: failed program was:" >&5
2668 cat conftest.$ac_ext >&5
2670 rm -f conftest.$ac_objext conftest.$ac_ext
2672 CFLAGS="$cf_save_CFLAGS"
2673 CPPFLAGS="$cf_save_CPPFLAGS"
2676 echo "$as_me:2676: result: $cf_cv_ansi_cc" >&5
2677 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2679 if test "$cf_cv_ansi_cc" != "no"; then
2680 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2685 cf_new_extra_cppflags=
2687 for cf_add_cflags in $cf_cv_ansi_cc
2689 case $cf_fix_cppflags in
2691 case $cf_add_cflags in #(vi
2692 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2693 case $cf_add_cflags in
2695 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2697 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2698 && test -z "${cf_tst_cflags}" \
2699 && cf_fix_cppflags=yes
2701 if test $cf_fix_cppflags = yes ; then
2702 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2704 elif test "${cf_tst_cflags}" = "\"'" ; then
2705 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2711 *$cf_add_cflags) #(vi
2714 case $cf_add_cflags in #(vi
2716 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2718 CPPFLAGS=`echo "$CPPFLAGS" | \
2719 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2720 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2724 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2729 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2734 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2736 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2738 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2739 && test -z "${cf_tst_cflags}" \
2740 && cf_fix_cppflags=no
2745 if test -n "$cf_new_cflags" ; then
2747 CFLAGS="$CFLAGS $cf_new_cflags"
2750 if test -n "$cf_new_cppflags" ; then
2752 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2755 if test -n "$cf_new_extra_cppflags" ; then
2757 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2761 cat >>confdefs.h <<\EOF
2762 #define CC_HAS_PROTOS 1
2768 if test "$cf_cv_ansi_cc" = "no"; then
2769 { { echo "$as_me:2769: error: Your compiler does not appear to recognize prototypes.
2770 You have the following choices:
2771 a. adjust your compiler options
2772 b. get an up-to-date compiler
2773 c. use a wrapper such as unproto" >&5
2774 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2775 You have the following choices:
2776 a. adjust your compiler options
2777 b. get an up-to-date compiler
2778 c. use a wrapper such as unproto" >&2;}
2779 { (exit 1); exit 1; }; }
2782 case $cf_cv_system_name in
2784 CFLAGS="$CFLAGS -Zmt"
2785 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2786 CXXFLAGS="$CXXFLAGS -Zmt"
2787 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2788 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2795 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2796 #define PROG_EXT "$PROG_EXT"
2799 if test "$cross_compiling" = yes ; then
2802 case "$cf_cv_system_name" in #(vi
2803 dragonfly*|mirbsd*|freebsd*) #(vi
2804 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2806 *) LDPATH=$PATH:/sbin:/usr/sbin
2807 # Extract the first word of "ldconfig", so it can be a program name with args.
2808 set dummy ldconfig; ac_word=$2
2809 echo "$as_me:2809: checking for $ac_word" >&5
2810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2811 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2812 echo $ECHO_N "(cached) $ECHO_C" >&6
2816 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2819 ac_save_IFS=$IFS; IFS=$ac_path_separator
2821 for ac_dir in $ac_dummy; do
2823 test -z "$ac_dir" && ac_dir=.
2824 if $as_executable_p "$ac_dir/$ac_word"; then
2825 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2826 echo "$as_me:2826: found $ac_dir/$ac_word" >&5
2834 LDCONFIG=$ac_cv_path_LDCONFIG
2836 if test -n "$LDCONFIG"; then
2837 echo "$as_me:2837: result: $LDCONFIG" >&5
2838 echo "${ECHO_T}$LDCONFIG" >&6
2840 echo "$as_me:2840: result: no" >&5
2841 echo "${ECHO_T}no" >&6
2848 echo "$as_me:2848: checking if you want to ensure bool is consistent with C++" >&5
2849 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2851 # Check whether --with-cxx or --without-cxx was given.
2852 if test "${with_cxx+set}" = set; then
2854 cf_with_cxx=$withval
2858 echo "$as_me:2858: result: $cf_with_cxx" >&5
2859 echo "${ECHO_T}$cf_with_cxx" >&6
2860 if test "X$cf_with_cxx" = Xno ; then
2864 # with autoconf 2.13, we can change the error to a warning:
2866 ac_cpp='$CXXCPP $CPPFLAGS'
2867 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2868 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2869 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2870 ac_main_return=return
2871 if test -n "$ac_tool_prefix"; then
2872 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2874 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2875 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2876 echo "$as_me:2876: checking for $ac_word" >&5
2877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2878 if test "${ac_cv_prog_CXX+set}" = set; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2881 if test -n "$CXX"; then
2882 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2884 ac_save_IFS=$IFS; IFS=$ac_path_separator
2886 for ac_dir in $ac_dummy; do
2888 test -z "$ac_dir" && ac_dir=.
2889 $as_executable_p "$ac_dir/$ac_word" || continue
2890 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2891 echo "$as_me:2891: found $ac_dir/$ac_word" >&5
2898 if test -n "$CXX"; then
2899 echo "$as_me:2899: result: $CXX" >&5
2900 echo "${ECHO_T}$CXX" >&6
2902 echo "$as_me:2902: result: no" >&5
2903 echo "${ECHO_T}no" >&6
2906 test -n "$CXX" && break
2909 if test -z "$CXX"; then
2911 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2913 # Extract the first word of "$ac_prog", so it can be a program name with args.
2914 set dummy $ac_prog; ac_word=$2
2915 echo "$as_me:2915: checking for $ac_word" >&5
2916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2917 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2918 echo $ECHO_N "(cached) $ECHO_C" >&6
2920 if test -n "$ac_ct_CXX"; then
2921 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2923 ac_save_IFS=$IFS; IFS=$ac_path_separator
2925 for ac_dir in $ac_dummy; do
2927 test -z "$ac_dir" && ac_dir=.
2928 $as_executable_p "$ac_dir/$ac_word" || continue
2929 ac_cv_prog_ac_ct_CXX="$ac_prog"
2930 echo "$as_me:2930: found $ac_dir/$ac_word" >&5
2936 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2937 if test -n "$ac_ct_CXX"; then
2938 echo "$as_me:2938: result: $ac_ct_CXX" >&5
2939 echo "${ECHO_T}$ac_ct_CXX" >&6
2941 echo "$as_me:2941: result: no" >&5
2942 echo "${ECHO_T}no" >&6
2945 test -n "$ac_ct_CXX" && break
2947 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2952 # Provide some information about the compiler.
2953 echo "$as_me:2953:" \
2954 "checking for C++ compiler version" >&5
2955 ac_compiler=`set X $ac_compile; echo $2`
2956 { (eval echo "$as_me:2956: \"$ac_compiler --version </dev/null >&5\"") >&5
2957 (eval $ac_compiler --version </dev/null >&5) 2>&5
2959 echo "$as_me:2959: \$? = $ac_status" >&5
2960 (exit $ac_status); }
2961 { (eval echo "$as_me:2961: \"$ac_compiler -v </dev/null >&5\"") >&5
2962 (eval $ac_compiler -v </dev/null >&5) 2>&5
2964 echo "$as_me:2964: \$? = $ac_status" >&5
2965 (exit $ac_status); }
2966 { (eval echo "$as_me:2966: \"$ac_compiler -V </dev/null >&5\"") >&5
2967 (eval $ac_compiler -V </dev/null >&5) 2>&5
2969 echo "$as_me:2969: \$? = $ac_status" >&5
2970 (exit $ac_status); }
2972 echo "$as_me:2972: checking whether we are using the GNU C++ compiler" >&5
2973 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2974 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
2977 cat >conftest.$ac_ext <<_ACEOF
2978 #line 2978 "configure"
2979 #include "confdefs.h"
2992 rm -f conftest.$ac_objext
2993 if { (eval echo "$as_me:2993: \"$ac_compile\"") >&5
2994 (eval $ac_compile) 2>&5
2996 echo "$as_me:2996: \$? = $ac_status" >&5
2997 (exit $ac_status); } &&
2998 { ac_try='test -s conftest.$ac_objext'
2999 { (eval echo "$as_me:2999: \"$ac_try\"") >&5
3002 echo "$as_me:3002: \$? = $ac_status" >&5
3003 (exit $ac_status); }; }; then
3006 echo "$as_me: failed program was:" >&5
3007 cat conftest.$ac_ext >&5
3010 rm -f conftest.$ac_objext conftest.$ac_ext
3011 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3014 echo "$as_me:3014: result: $ac_cv_cxx_compiler_gnu" >&5
3015 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3016 GXX=`test $ac_compiler_gnu = yes && echo yes`
3017 ac_test_CXXFLAGS=${CXXFLAGS+set}
3018 ac_save_CXXFLAGS=$CXXFLAGS
3020 echo "$as_me:3020: checking whether $CXX accepts -g" >&5
3021 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3022 if test "${ac_cv_prog_cxx_g+set}" = set; then
3023 echo $ECHO_N "(cached) $ECHO_C" >&6
3025 cat >conftest.$ac_ext <<_ACEOF
3026 #line 3026 "configure"
3027 #include "confdefs.h"
3037 rm -f conftest.$ac_objext
3038 if { (eval echo "$as_me:3038: \"$ac_compile\"") >&5
3039 (eval $ac_compile) 2>&5
3041 echo "$as_me:3041: \$? = $ac_status" >&5
3042 (exit $ac_status); } &&
3043 { ac_try='test -s conftest.$ac_objext'
3044 { (eval echo "$as_me:3044: \"$ac_try\"") >&5
3047 echo "$as_me:3047: \$? = $ac_status" >&5
3048 (exit $ac_status); }; }; then
3049 ac_cv_prog_cxx_g=yes
3051 echo "$as_me: failed program was:" >&5
3052 cat conftest.$ac_ext >&5
3055 rm -f conftest.$ac_objext conftest.$ac_ext
3057 echo "$as_me:3057: result: $ac_cv_prog_cxx_g" >&5
3058 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3059 if test "$ac_test_CXXFLAGS" = set; then
3060 CXXFLAGS=$ac_save_CXXFLAGS
3061 elif test $ac_cv_prog_cxx_g = yes; then
3062 if test "$GXX" = yes; then
3068 if test "$GXX" = yes; then
3074 for ac_declaration in \
3076 '#include <stdlib.h>' \
3077 'extern "C" void std::exit (int) throw (); using std::exit;' \
3078 'extern "C" void std::exit (int); using std::exit;' \
3079 'extern "C" void exit (int) throw ();' \
3080 'extern "C" void exit (int);' \
3083 cat >conftest.$ac_ext <<_ACEOF
3084 #line 3084 "configure"
3085 #include "confdefs.h"
3096 rm -f conftest.$ac_objext
3097 if { (eval echo "$as_me:3097: \"$ac_compile\"") >&5
3098 (eval $ac_compile) 2>&5
3100 echo "$as_me:3100: \$? = $ac_status" >&5
3101 (exit $ac_status); } &&
3102 { ac_try='test -s conftest.$ac_objext'
3103 { (eval echo "$as_me:3103: \"$ac_try\"") >&5
3106 echo "$as_me:3106: \$? = $ac_status" >&5
3107 (exit $ac_status); }; }; then
3110 echo "$as_me: failed program was:" >&5
3111 cat conftest.$ac_ext >&5
3114 rm -f conftest.$ac_objext conftest.$ac_ext
3115 cat >conftest.$ac_ext <<_ACEOF
3116 #line 3116 "configure"
3117 #include "confdefs.h"
3127 rm -f conftest.$ac_objext
3128 if { (eval echo "$as_me:3128: \"$ac_compile\"") >&5
3129 (eval $ac_compile) 2>&5
3131 echo "$as_me:3131: \$? = $ac_status" >&5
3132 (exit $ac_status); } &&
3133 { ac_try='test -s conftest.$ac_objext'
3134 { (eval echo "$as_me:3134: \"$ac_try\"") >&5
3137 echo "$as_me:3137: \$? = $ac_status" >&5
3138 (exit $ac_status); }; }; then
3141 echo "$as_me: failed program was:" >&5
3142 cat conftest.$ac_ext >&5
3144 rm -f conftest.$ac_objext conftest.$ac_ext
3147 if test -n "$ac_declaration"; then
3148 echo '#ifdef __cplusplus' >>confdefs.h
3149 echo $ac_declaration >>confdefs.h
3150 echo '#endif' >>confdefs.h
3154 ac_cpp='$CPP $CPPFLAGS'
3155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3158 ac_main_return=return
3160 # autoconf 2.5x removed the error - by hardcoding it to g++.
3161 if test "$CXX" = "g++" ; then
3162 # Extract the first word of "g++", so it can be a program name with args.
3163 set dummy g++; ac_word=$2
3164 echo "$as_me:3164: checking for $ac_word" >&5
3165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3166 if test "${ac_cv_path_CXX+set}" = set; then
3167 echo $ECHO_N "(cached) $ECHO_C" >&6
3171 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3174 ac_save_IFS=$IFS; IFS=$ac_path_separator
3176 for ac_dir in $ac_dummy; do
3178 test -z "$ac_dir" && ac_dir=.
3179 if $as_executable_p "$ac_dir/$ac_word"; then
3180 ac_cv_path_CXX="$ac_dir/$ac_word"
3181 echo "$as_me:3181: found $ac_dir/$ac_word" >&5
3191 if test -n "$CXX"; then
3192 echo "$as_me:3192: result: $CXX" >&5
3193 echo "${ECHO_T}$CXX" >&6
3195 echo "$as_me:3195: result: no" >&5
3196 echo "${ECHO_T}no" >&6
3200 if test "$CXX" = "g++" ; then
3201 { echo "$as_me:3201: WARNING: ignoring hardcoded g++" >&5
3202 echo "$as_me: WARNING: ignoring hardcoded g++" >&2;}
3203 cf_with_cxx=no; CXX=""; GXX="";
3208 if test "$GXX" = yes; then
3209 echo "$as_me:3209: checking version of g++" >&5
3210 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
3211 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3212 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3213 echo "$as_me:3213: result: $GXX_VERSION" >&5
3214 echo "${ECHO_T}$GXX_VERSION" >&6
3217 case $GXX_VERSION in
3219 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3221 { echo "$as_me:3221: WARNING: templates do not work" >&5
3222 echo "$as_me: WARNING: templates do not work" >&2;}
3226 echo "$as_me:3226: checking if you want to build C++ binding and demo" >&5
3227 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3229 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3230 if test "${with_cxx_binding+set}" = set; then
3231 withval="$with_cxx_binding"
3232 cf_with_cxx_binding=$withval
3234 cf_with_cxx_binding=$cf_with_cxx
3236 echo "$as_me:3236: result: $cf_with_cxx_binding" >&5
3237 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3239 echo "$as_me:3239: checking if you want to build with Ada95" >&5
3240 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3242 # Check whether --with-ada or --without-ada was given.
3243 if test "${with_ada+set}" = set; then
3245 cf_with_ada=$withval
3249 echo "$as_me:3249: result: $cf_with_ada" >&5
3250 echo "${ECHO_T}$cf_with_ada" >&6
3252 echo "$as_me:3252: checking if you want to install manpages" >&5
3253 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3255 # Check whether --with-manpages or --without-manpages was given.
3256 if test "${with_manpages+set}" = set; then
3257 withval="$with_manpages"
3258 cf_with_manpages=$withval
3260 cf_with_manpages=yes
3262 echo "$as_me:3262: result: $cf_with_manpages" >&5
3263 echo "${ECHO_T}$cf_with_manpages" >&6
3265 echo "$as_me:3265: checking if you want to build programs such as tic" >&5
3266 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3268 # Check whether --with-progs or --without-progs was given.
3269 if test "${with_progs+set}" = set; then
3270 withval="$with_progs"
3271 cf_with_progs=$withval
3275 echo "$as_me:3275: result: $cf_with_progs" >&5
3276 echo "${ECHO_T}$cf_with_progs" >&6
3278 echo "$as_me:3278: checking if you want to build test-programs" >&5
3279 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3281 # Check whether --with-tests or --without-tests was given.
3282 if test "${with_tests+set}" = set; then
3283 withval="$with_tests"
3284 cf_with_tests=$withval
3288 echo "$as_me:3288: result: $cf_with_tests" >&5
3289 echo "${ECHO_T}$cf_with_tests" >&6
3291 echo "$as_me:3291: checking if you wish to install curses.h" >&5
3292 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3294 # Check whether --with-curses-h or --without-curses-h was given.
3295 if test "${with_curses_h+set}" = set; then
3296 withval="$with_curses_h"
3297 with_curses_h=$withval
3301 echo "$as_me:3301: result: $with_curses_h" >&5
3302 echo "${ECHO_T}$with_curses_h" >&6
3304 modules_to_build="ncurses"
3305 if test "X$cf_with_progs" != Xno ; then
3306 modules_to_build="$modules_to_build progs tack"
3308 modules_to_build="$modules_to_build panel menu form"
3310 test "$program_prefix" != NONE &&
3311 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3312 # Use a double $ so make ignores it.
3313 test "$program_suffix" != NONE &&
3314 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3315 # Double any \ or $. echo might interpret backslashes.
3316 # By default was `s,x,x', remove it if useless.
3317 cat <<\_ACEOF >conftest.sed
3318 s/[\\$]/&&/g;s/;s,x,x,$//
3320 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3323 for ac_prog in mawk gawk nawk awk
3325 # Extract the first word of "$ac_prog", so it can be a program name with args.
3326 set dummy $ac_prog; ac_word=$2
3327 echo "$as_me:3327: checking for $ac_word" >&5
3328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3329 if test "${ac_cv_prog_AWK+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3332 if test -n "$AWK"; then
3333 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3335 ac_save_IFS=$IFS; IFS=$ac_path_separator
3337 for ac_dir in $ac_dummy; do
3339 test -z "$ac_dir" && ac_dir=.
3340 $as_executable_p "$ac_dir/$ac_word" || continue
3341 ac_cv_prog_AWK="$ac_prog"
3342 echo "$as_me:3342: found $ac_dir/$ac_word" >&5
3349 if test -n "$AWK"; then
3350 echo "$as_me:3350: result: $AWK" >&5
3351 echo "${ECHO_T}$AWK" >&6
3353 echo "$as_me:3353: result: no" >&5
3354 echo "${ECHO_T}no" >&6
3357 test -n "$AWK" && break
3360 test -z "$AWK" && { { echo "$as_me:3360: error: No awk program found" >&5
3361 echo "$as_me: error: No awk program found" >&2;}
3362 { (exit 1); exit 1; }; }
3364 echo "$as_me:3364: checking for egrep" >&5
3365 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3366 if test "${ac_cv_prog_egrep+set}" = set; then
3367 echo $ECHO_N "(cached) $ECHO_C" >&6
3369 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3370 then ac_cv_prog_egrep='grep -E'
3371 else ac_cv_prog_egrep='egrep'
3374 echo "$as_me:3374: result: $ac_cv_prog_egrep" >&5
3375 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3376 EGREP=$ac_cv_prog_egrep
3378 test -z "$EGREP" && { { echo "$as_me:3378: error: No egrep program found" >&5
3379 echo "$as_me: error: No egrep program found" >&2;}
3380 { (exit 1); exit 1; }; }
3382 # Find a good install program. We prefer a C program (faster),
3383 # so one script is as good as another. But avoid the broken or
3384 # incompatible versions:
3385 # SysV /etc/install, /usr/sbin/install
3386 # SunOS /usr/etc/install
3387 # IRIX /sbin/install
3389 # AmigaOS /C/install, which installs bootblocks on floppy discs
3390 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3391 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3392 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3393 # ./install, which can be erroneously created by make from ./install.sh.
3394 echo "$as_me:3394: checking for a BSD compatible install" >&5
3395 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3396 if test -z "$INSTALL"; then
3397 if test "${ac_cv_path_install+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3400 ac_save_IFS=$IFS; IFS=$ac_path_separator
3401 for ac_dir in $PATH; do
3403 # Account for people who put trailing slashes in PATH elements.
3405 / | ./ | .// | /cC/* \
3406 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3409 # OSF1 and SCO ODT 3.0 have their own names for install.
3410 # Don't use installbsd from OSF since it installs stuff as root
3412 for ac_prog in ginstall scoinst install; do
3413 if $as_executable_p "$ac_dir/$ac_prog"; then
3414 if test $ac_prog = install &&
3415 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3416 # AIX install. It has an incompatible calling convention.
3418 elif test $ac_prog = install &&
3419 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3420 # program-specific install script used by HP pwplus--don't use.
3423 ac_cv_path_install="$ac_dir/$ac_prog -c"
3433 if test "${ac_cv_path_install+set}" = set; then
3434 INSTALL=$ac_cv_path_install
3436 # As a last resort, use the slow shell script. We don't cache a
3437 # path for INSTALL within a source directory, because that will
3438 # break other packages using the cache if that directory is
3439 # removed, or if the path is relative.
3440 INSTALL=$ac_install_sh
3443 echo "$as_me:3443: result: $INSTALL" >&5
3444 echo "${ECHO_T}$INSTALL" >&6
3446 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3447 # It thinks the first close brace ends the variable substitution.
3448 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3450 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3452 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3458 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3459 test -z "$cf_dir" && cf_dir=.
3460 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3464 for ac_prog in tdlint lint alint splint lclint
3466 # Extract the first word of "$ac_prog", so it can be a program name with args.
3467 set dummy $ac_prog; ac_word=$2
3468 echo "$as_me:3468: checking for $ac_word" >&5
3469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3470 if test "${ac_cv_prog_LINT+set}" = set; then
3471 echo $ECHO_N "(cached) $ECHO_C" >&6
3473 if test -n "$LINT"; then
3474 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3476 ac_save_IFS=$IFS; IFS=$ac_path_separator
3478 for ac_dir in $ac_dummy; do
3480 test -z "$ac_dir" && ac_dir=.
3481 $as_executable_p "$ac_dir/$ac_word" || continue
3482 ac_cv_prog_LINT="$ac_prog"
3483 echo "$as_me:3483: found $ac_dir/$ac_word" >&5
3489 LINT=$ac_cv_prog_LINT
3490 if test -n "$LINT"; then
3491 echo "$as_me:3491: result: $LINT" >&5
3492 echo "${ECHO_T}$LINT" >&6
3494 echo "$as_me:3494: result: no" >&5
3495 echo "${ECHO_T}no" >&6
3498 test -n "$LINT" && break
3501 echo "$as_me:3501: checking whether ln -s works" >&5
3502 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3504 if test "$LN_S" = "ln -s"; then
3505 echo "$as_me:3505: result: yes" >&5
3506 echo "${ECHO_T}yes" >&6
3508 echo "$as_me:3508: result: no, using $LN_S" >&5
3509 echo "${ECHO_T}no, using $LN_S" >&6
3512 echo "$as_me:3512: checking if $LN_S -f options work" >&5
3513 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3515 rm -f conf$$.src conf$$dst
3517 echo first >conf$$.src
3518 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3523 rm -f conf$$.dst conf$$src
3524 echo "$as_me:3524: result: $cf_prog_ln_sf" >&5
3525 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3527 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3529 echo "$as_me:3529: checking for long file names" >&5
3530 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3531 if test "${ac_cv_sys_long_file_names+set}" = set; then
3532 echo $ECHO_N "(cached) $ECHO_C" >&6
3534 ac_cv_sys_long_file_names=yes
3535 # Test for long file names in all the places we know might matter:
3536 # . the current directory, where building will happen
3537 # $prefix/lib where we will be installing things
3538 # $exec_prefix/lib likewise
3539 # eval it to expand exec_prefix.
3540 # $TMPDIR if set, where it might want to write temporary files
3541 # if $TMPDIR is not set:
3542 # /tmp where it might want to write temporary files
3545 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3548 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3550 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3551 test -d $ac_dir || continue
3552 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3553 ac_xdir=$ac_dir/cf$$
3554 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3555 ac_tf1=$ac_xdir/conftest9012345
3556 ac_tf2=$ac_xdir/conftest9012346
3557 (echo 1 >$ac_tf1) 2>/dev/null
3558 (echo 2 >$ac_tf2) 2>/dev/null
3559 ac_val=`cat $ac_tf1 2>/dev/null`
3560 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3561 ac_cv_sys_long_file_names=no
3562 rm -rf $ac_xdir 2>/dev/null
3565 rm -rf $ac_xdir 2>/dev/null
3568 echo "$as_me:3568: result: $ac_cv_sys_long_file_names" >&5
3569 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3570 if test $ac_cv_sys_long_file_names = yes; then
3572 cat >>confdefs.h <<\EOF
3573 #define HAVE_LONG_FILE_NAMES 1
3578 # if we find pkg-config, check if we should install the ".pc" files.
3580 echo "$as_me:3580: checking if you want to use pkg-config" >&5
3581 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3583 # Check whether --with-pkg-config or --without-pkg-config was given.
3584 if test "${with_pkg_config+set}" = set; then
3585 withval="$with_pkg_config"
3586 cf_pkg_config=$withval
3590 echo "$as_me:3590: result: $cf_pkg_config" >&5
3591 echo "${ECHO_T}$cf_pkg_config" >&6
3593 case $cf_pkg_config in #(vi
3599 if test -n "$ac_tool_prefix"; then
3600 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3601 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3602 echo "$as_me:3602: checking for $ac_word" >&5
3603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3604 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3605 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3612 ac_save_IFS=$IFS; IFS=$ac_path_separator
3614 for ac_dir in $ac_dummy; do
3616 test -z "$ac_dir" && ac_dir=.
3617 if $as_executable_p "$ac_dir/$ac_word"; then
3618 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3619 echo "$as_me:3619: found $ac_dir/$ac_word" >&5
3627 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3629 if test -n "$PKG_CONFIG"; then
3630 echo "$as_me:3630: result: $PKG_CONFIG" >&5
3631 echo "${ECHO_T}$PKG_CONFIG" >&6
3633 echo "$as_me:3633: result: no" >&5
3634 echo "${ECHO_T}no" >&6
3638 if test -z "$ac_cv_path_PKG_CONFIG"; then
3639 ac_pt_PKG_CONFIG=$PKG_CONFIG
3640 # Extract the first word of "pkg-config", so it can be a program name with args.
3641 set dummy pkg-config; ac_word=$2
3642 echo "$as_me:3642: checking for $ac_word" >&5
3643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3644 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
3647 case $ac_pt_PKG_CONFIG in
3649 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3652 ac_save_IFS=$IFS; IFS=$ac_path_separator
3654 for ac_dir in $ac_dummy; do
3656 test -z "$ac_dir" && ac_dir=.
3657 if $as_executable_p "$ac_dir/$ac_word"; then
3658 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3659 echo "$as_me:3659: found $ac_dir/$ac_word" >&5
3664 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3668 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3670 if test -n "$ac_pt_PKG_CONFIG"; then
3671 echo "$as_me:3671: result: $ac_pt_PKG_CONFIG" >&5
3672 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3674 echo "$as_me:3674: result: no" >&5
3675 echo "${ECHO_T}no" >&6
3678 PKG_CONFIG=$ac_pt_PKG_CONFIG
3680 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3689 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3690 if test "$PKG_CONFIG" != none ; then
3692 if test "x$prefix" != xNONE; then
3693 cf_path_syntax="$prefix"
3695 cf_path_syntax="$ac_default_prefix"
3698 case ".$PKG_CONFIG" in #(vi
3699 .\$\(*\)*|.\'*\'*) #(vi
3703 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3706 eval PKG_CONFIG="$PKG_CONFIG"
3707 case ".$PKG_CONFIG" in #(vi
3709 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3714 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3717 { { echo "$as_me:3717: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3718 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3719 { (exit 1); exit 1; }; }
3725 if test "$PKG_CONFIG" != no ; then
3726 echo "$as_me:3726: checking for $PKG_CONFIG library directory" >&5
3727 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3729 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3730 if test "${with_pkg_config_libdir+set}" = set; then
3731 withval="$with_pkg_config_libdir"
3732 PKG_CONFIG_LIBDIR=$withval
3734 PKG_CONFIG_LIBDIR=yes
3737 case x$PKG_CONFIG_LIBDIR in #(vi
3741 # look for the library directory using the same prefix as the executable
3742 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3743 case x`(arch) 2>/dev/null` in #(vi
3745 for cf_config in $cf_path/share $cf_path/lib64 $cf_path/lib32 $cf_path/lib
3747 if test -d $cf_config/pkgconfig
3749 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3755 PKG_CONFIG_LIBDIR=$cf_path/lib/pkgconfig
3763 echo "$as_me:3763: result: $PKG_CONFIG_LIBDIR" >&5
3764 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3767 if test "$PKG_CONFIG" != no ; then
3768 if test -n "$PKG_CONFIG_LIBDIR" && test -d "$PKG_CONFIG_LIBDIR" ; then
3769 echo "$as_me:3769: checking if we should install .pc files for $PKG_CONFIG" >&5
3770 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3772 # Check whether --enable-pc-files or --disable-pc-files was given.
3773 if test "${enable_pc_files+set}" = set; then
3774 enableval="$enable_pc_files"
3775 enable_pc_files=$enableval
3779 echo "$as_me:3779: result: $enable_pc_files" >&5
3780 echo "${ECHO_T}$enable_pc_files" >&6
3781 elif test -z "$PKG_CONFIG_LIBDIR" || test "$PKG_CONFIG_LIBDIR" != no; then
3783 { echo "$as_me:3783: WARNING: did not find $PKG_CONFIG library" >&5
3784 echo "$as_me: WARNING: did not find $PKG_CONFIG library" >&2;}
3790 echo "$as_me:3790: checking if we should assume mixed-case filenames" >&5
3791 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3793 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3794 if test "${enable_mixed_case+set}" = set; then
3795 enableval="$enable_mixed_case"
3796 enable_mixedcase=$enableval
3798 enable_mixedcase=auto
3800 echo "$as_me:3800: result: $enable_mixedcase" >&5
3801 echo "${ECHO_T}$enable_mixedcase" >&6
3802 if test "$enable_mixedcase" = "auto" ; then
3804 echo "$as_me:3804: checking if filesystem supports mixed-case filenames" >&5
3805 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3806 if test "${cf_cv_mixedcase+set}" = set; then
3807 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 if test "$cross_compiling" = yes ; then
3811 case $target_alias in #(vi
3812 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3820 rm -f conftest CONFTEST
3822 if test -f CONFTEST ; then
3827 rm -f conftest CONFTEST
3831 echo "$as_me:3831: result: $cf_cv_mixedcase" >&5
3832 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3833 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3834 #define MIXEDCASE_FILENAMES 1
3838 cf_cv_mixedcase=$enable_mixedcase
3839 if test "$enable_mixedcase" = "yes" ; then
3840 cat >>confdefs.h <<\EOF
3841 #define MIXEDCASE_FILENAMES 1
3847 # do this after mixed-case option (tags/TAGS is not as important as tic).
3848 echo "$as_me:3848: checking whether ${MAKE-make} sets \${MAKE}" >&5
3849 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3850 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3851 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3854 cat >conftest.make <<\EOF
3856 @echo 'ac_maketemp="${MAKE}"'
3858 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3859 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3860 if test -n "$ac_maketemp"; then
3861 eval ac_cv_prog_make_${ac_make}_set=yes
3863 eval ac_cv_prog_make_${ac_make}_set=no
3867 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3868 echo "$as_me:3868: result: yes" >&5
3869 echo "${ECHO_T}yes" >&6
3872 echo "$as_me:3872: result: no" >&5
3873 echo "${ECHO_T}no" >&6
3874 SET_MAKE="MAKE=${MAKE-make}"
3877 for ac_prog in exctags ctags
3879 # Extract the first word of "$ac_prog", so it can be a program name with args.
3880 set dummy $ac_prog; ac_word=$2
3881 echo "$as_me:3881: checking for $ac_word" >&5
3882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3883 if test "${ac_cv_prog_CTAGS+set}" = set; then
3884 echo $ECHO_N "(cached) $ECHO_C" >&6
3886 if test -n "$CTAGS"; then
3887 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3889 ac_save_IFS=$IFS; IFS=$ac_path_separator
3891 for ac_dir in $ac_dummy; do
3893 test -z "$ac_dir" && ac_dir=.
3894 $as_executable_p "$ac_dir/$ac_word" || continue
3895 ac_cv_prog_CTAGS="$ac_prog"
3896 echo "$as_me:3896: found $ac_dir/$ac_word" >&5
3902 CTAGS=$ac_cv_prog_CTAGS
3903 if test -n "$CTAGS"; then
3904 echo "$as_me:3904: result: $CTAGS" >&5
3905 echo "${ECHO_T}$CTAGS" >&6
3907 echo "$as_me:3907: result: no" >&5
3908 echo "${ECHO_T}no" >&6
3911 test -n "$CTAGS" && break
3914 for ac_prog in exetags etags
3916 # Extract the first word of "$ac_prog", so it can be a program name with args.
3917 set dummy $ac_prog; ac_word=$2
3918 echo "$as_me:3918: checking for $ac_word" >&5
3919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3920 if test "${ac_cv_prog_ETAGS+set}" = set; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
3923 if test -n "$ETAGS"; then
3924 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3926 ac_save_IFS=$IFS; IFS=$ac_path_separator
3928 for ac_dir in $ac_dummy; do
3930 test -z "$ac_dir" && ac_dir=.
3931 $as_executable_p "$ac_dir/$ac_word" || continue
3932 ac_cv_prog_ETAGS="$ac_prog"
3933 echo "$as_me:3933: found $ac_dir/$ac_word" >&5
3939 ETAGS=$ac_cv_prog_ETAGS
3940 if test -n "$ETAGS"; then
3941 echo "$as_me:3941: result: $ETAGS" >&5
3942 echo "${ECHO_T}$ETAGS" >&6
3944 echo "$as_me:3944: result: no" >&5
3945 echo "${ECHO_T}no" >&6
3948 test -n "$ETAGS" && break
3951 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3952 set dummy ${CTAGS:-ctags}; ac_word=$2
3953 echo "$as_me:3953: checking for $ac_word" >&5
3954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3955 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3958 if test -n "$MAKE_LOWER_TAGS"; then
3959 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3961 ac_save_IFS=$IFS; IFS=$ac_path_separator
3963 for ac_dir in $ac_dummy; do
3965 test -z "$ac_dir" && ac_dir=.
3966 $as_executable_p "$ac_dir/$ac_word" || continue
3967 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3968 echo "$as_me:3968: found $ac_dir/$ac_word" >&5
3972 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3975 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3976 if test -n "$MAKE_LOWER_TAGS"; then
3977 echo "$as_me:3977: result: $MAKE_LOWER_TAGS" >&5
3978 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3980 echo "$as_me:3980: result: no" >&5
3981 echo "${ECHO_T}no" >&6
3984 if test "$cf_cv_mixedcase" = yes ; then
3985 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3986 set dummy ${ETAGS:-etags}; ac_word=$2
3987 echo "$as_me:3987: checking for $ac_word" >&5
3988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3989 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
3992 if test -n "$MAKE_UPPER_TAGS"; then
3993 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3995 ac_save_IFS=$IFS; IFS=$ac_path_separator
3997 for ac_dir in $ac_dummy; do
3999 test -z "$ac_dir" && ac_dir=.
4000 $as_executable_p "$ac_dir/$ac_word" || continue
4001 ac_cv_prog_MAKE_UPPER_TAGS="yes"
4002 echo "$as_me:4002: found $ac_dir/$ac_word" >&5
4006 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
4009 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
4010 if test -n "$MAKE_UPPER_TAGS"; then
4011 echo "$as_me:4011: result: $MAKE_UPPER_TAGS" >&5
4012 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
4014 echo "$as_me:4014: result: no" >&5
4015 echo "${ECHO_T}no" >&6
4022 if test "$MAKE_UPPER_TAGS" = yes ; then
4028 if test "$MAKE_LOWER_TAGS" = yes ; then
4034 echo "$as_me:4034: checking for makeflags variable" >&5
4035 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
4036 if test "${cf_cv_makeflags+set}" = set; then
4037 echo $ECHO_N "(cached) $ECHO_C" >&6
4041 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
4043 cat >cf_makeflags.tmp <<CF_EOF
4046 @ echo '.$cf_option'
4048 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
4049 case "$cf_result" in
4051 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
4052 case "$cf_result" in
4053 .*CC=*) cf_cv_makeflags=
4055 *) cf_cv_makeflags=$cf_option
4061 *) echo "given option \"$cf_option\", no match \"$cf_result\""
4065 rm -f cf_makeflags.tmp
4068 echo "$as_me:4068: result: $cf_cv_makeflags" >&5
4069 echo "${ECHO_T}$cf_cv_makeflags" >&6
4071 if test -n "$ac_tool_prefix"; then
4072 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4073 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4074 echo "$as_me:4074: checking for $ac_word" >&5
4075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4076 if test "${ac_cv_prog_RANLIB+set}" = set; then
4077 echo $ECHO_N "(cached) $ECHO_C" >&6
4079 if test -n "$RANLIB"; then
4080 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4082 ac_save_IFS=$IFS; IFS=$ac_path_separator
4084 for ac_dir in $ac_dummy; do
4086 test -z "$ac_dir" && ac_dir=.
4087 $as_executable_p "$ac_dir/$ac_word" || continue
4088 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4089 echo "$as_me:4089: found $ac_dir/$ac_word" >&5
4095 RANLIB=$ac_cv_prog_RANLIB
4096 if test -n "$RANLIB"; then
4097 echo "$as_me:4097: result: $RANLIB" >&5
4098 echo "${ECHO_T}$RANLIB" >&6
4100 echo "$as_me:4100: result: no" >&5
4101 echo "${ECHO_T}no" >&6
4105 if test -z "$ac_cv_prog_RANLIB"; then
4106 ac_ct_RANLIB=$RANLIB
4107 # Extract the first word of "ranlib", so it can be a program name with args.
4108 set dummy ranlib; ac_word=$2
4109 echo "$as_me:4109: checking for $ac_word" >&5
4110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4111 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4114 if test -n "$ac_ct_RANLIB"; then
4115 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4117 ac_save_IFS=$IFS; IFS=$ac_path_separator
4119 for ac_dir in $ac_dummy; do
4121 test -z "$ac_dir" && ac_dir=.
4122 $as_executable_p "$ac_dir/$ac_word" || continue
4123 ac_cv_prog_ac_ct_RANLIB="ranlib"
4124 echo "$as_me:4124: found $ac_dir/$ac_word" >&5
4128 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4131 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4132 if test -n "$ac_ct_RANLIB"; then
4133 echo "$as_me:4133: result: $ac_ct_RANLIB" >&5
4134 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4136 echo "$as_me:4136: result: no" >&5
4137 echo "${ECHO_T}no" >&6
4140 RANLIB=$ac_ct_RANLIB
4142 RANLIB="$ac_cv_prog_RANLIB"
4145 if test -n "$ac_tool_prefix"; then
4146 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4147 set dummy ${ac_tool_prefix}ld; ac_word=$2
4148 echo "$as_me:4148: checking for $ac_word" >&5
4149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4150 if test "${ac_cv_prog_LD+set}" = set; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4153 if test -n "$LD"; then
4154 ac_cv_prog_LD="$LD" # Let the user override the test.
4156 ac_save_IFS=$IFS; IFS=$ac_path_separator
4158 for ac_dir in $ac_dummy; do
4160 test -z "$ac_dir" && ac_dir=.
4161 $as_executable_p "$ac_dir/$ac_word" || continue
4162 ac_cv_prog_LD="${ac_tool_prefix}ld"
4163 echo "$as_me:4163: found $ac_dir/$ac_word" >&5
4170 if test -n "$LD"; then
4171 echo "$as_me:4171: result: $LD" >&5
4172 echo "${ECHO_T}$LD" >&6
4174 echo "$as_me:4174: result: no" >&5
4175 echo "${ECHO_T}no" >&6
4179 if test -z "$ac_cv_prog_LD"; then
4181 # Extract the first word of "ld", so it can be a program name with args.
4182 set dummy ld; ac_word=$2
4183 echo "$as_me:4183: checking for $ac_word" >&5
4184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4185 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4186 echo $ECHO_N "(cached) $ECHO_C" >&6
4188 if test -n "$ac_ct_LD"; then
4189 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4191 ac_save_IFS=$IFS; IFS=$ac_path_separator
4193 for ac_dir in $ac_dummy; do
4195 test -z "$ac_dir" && ac_dir=.
4196 $as_executable_p "$ac_dir/$ac_word" || continue
4197 ac_cv_prog_ac_ct_LD="ld"
4198 echo "$as_me:4198: found $ac_dir/$ac_word" >&5
4202 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4205 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4206 if test -n "$ac_ct_LD"; then
4207 echo "$as_me:4207: result: $ac_ct_LD" >&5
4208 echo "${ECHO_T}$ac_ct_LD" >&6
4210 echo "$as_me:4210: result: no" >&5
4211 echo "${ECHO_T}no" >&6
4219 if test -n "$ac_tool_prefix"; then
4220 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4221 set dummy ${ac_tool_prefix}ar; ac_word=$2
4222 echo "$as_me:4222: checking for $ac_word" >&5
4223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4224 if test "${ac_cv_prog_AR+set}" = set; then
4225 echo $ECHO_N "(cached) $ECHO_C" >&6
4227 if test -n "$AR"; then
4228 ac_cv_prog_AR="$AR" # Let the user override the test.
4230 ac_save_IFS=$IFS; IFS=$ac_path_separator
4232 for ac_dir in $ac_dummy; do
4234 test -z "$ac_dir" && ac_dir=.
4235 $as_executable_p "$ac_dir/$ac_word" || continue
4236 ac_cv_prog_AR="${ac_tool_prefix}ar"
4237 echo "$as_me:4237: found $ac_dir/$ac_word" >&5
4244 if test -n "$AR"; then
4245 echo "$as_me:4245: result: $AR" >&5
4246 echo "${ECHO_T}$AR" >&6
4248 echo "$as_me:4248: result: no" >&5
4249 echo "${ECHO_T}no" >&6
4253 if test -z "$ac_cv_prog_AR"; then
4255 # Extract the first word of "ar", so it can be a program name with args.
4256 set dummy ar; ac_word=$2
4257 echo "$as_me:4257: checking for $ac_word" >&5
4258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4259 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4260 echo $ECHO_N "(cached) $ECHO_C" >&6
4262 if test -n "$ac_ct_AR"; then
4263 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4265 ac_save_IFS=$IFS; IFS=$ac_path_separator
4267 for ac_dir in $ac_dummy; do
4269 test -z "$ac_dir" && ac_dir=.
4270 $as_executable_p "$ac_dir/$ac_word" || continue
4271 ac_cv_prog_ac_ct_AR="ar"
4272 echo "$as_me:4272: found $ac_dir/$ac_word" >&5
4276 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4279 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4280 if test -n "$ac_ct_AR"; then
4281 echo "$as_me:4281: result: $ac_ct_AR" >&5
4282 echo "${ECHO_T}$ac_ct_AR" >&6
4284 echo "$as_me:4284: result: no" >&5
4285 echo "${ECHO_T}no" >&6
4293 if test -n "$ac_tool_prefix"; then
4294 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4295 set dummy ${ac_tool_prefix}ar; ac_word=$2
4296 echo "$as_me:4296: checking for $ac_word" >&5
4297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4298 if test "${ac_cv_prog_AR+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4301 if test -n "$AR"; then
4302 ac_cv_prog_AR="$AR" # Let the user override the test.
4304 ac_save_IFS=$IFS; IFS=$ac_path_separator
4306 for ac_dir in $ac_dummy; do
4308 test -z "$ac_dir" && ac_dir=.
4309 $as_executable_p "$ac_dir/$ac_word" || continue
4310 ac_cv_prog_AR="${ac_tool_prefix}ar"
4311 echo "$as_me:4311: found $ac_dir/$ac_word" >&5
4318 if test -n "$AR"; then
4319 echo "$as_me:4319: result: $AR" >&5
4320 echo "${ECHO_T}$AR" >&6
4322 echo "$as_me:4322: result: no" >&5
4323 echo "${ECHO_T}no" >&6
4327 if test -z "$ac_cv_prog_AR"; then
4329 # Extract the first word of "ar", so it can be a program name with args.
4330 set dummy ar; ac_word=$2
4331 echo "$as_me:4331: checking for $ac_word" >&5
4332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4333 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4334 echo $ECHO_N "(cached) $ECHO_C" >&6
4336 if test -n "$ac_ct_AR"; then
4337 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4339 ac_save_IFS=$IFS; IFS=$ac_path_separator
4341 for ac_dir in $ac_dummy; do
4343 test -z "$ac_dir" && ac_dir=.
4344 $as_executable_p "$ac_dir/$ac_word" || continue
4345 ac_cv_prog_ac_ct_AR="ar"
4346 echo "$as_me:4346: found $ac_dir/$ac_word" >&5
4350 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4353 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4354 if test -n "$ac_ct_AR"; then
4355 echo "$as_me:4355: result: $ac_ct_AR" >&5
4356 echo "${ECHO_T}$ac_ct_AR" >&6
4358 echo "$as_me:4358: result: no" >&5
4359 echo "${ECHO_T}no" >&6
4367 echo "$as_me:4367: checking for options to update archives" >&5
4368 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4369 if test "${cf_cv_ar_flags+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4373 cf_cv_ar_flags=unknown
4374 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
4377 # check if $ARFLAGS already contains this choice
4378 if test "x$ARFLAGS" != "x" ; then
4379 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4380 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4386 rm -f conftest.$ac_cv_objext
4389 cat >conftest.$ac_ext <<EOF
4390 #line 4390 "configure"
4391 int testdata[3] = { 123, 456, 789 };
4393 if { (eval echo "$as_me:4393: \"$ac_compile\"") >&5
4394 (eval $ac_compile) 2>&5
4396 echo "$as_me:4396: \$? = $ac_status" >&5
4397 (exit $ac_status); } ; then
4398 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4399 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4400 if test -f conftest.a ; then
4401 cf_cv_ar_flags=$cf_ar_flags
4405 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4407 echo "${as_me:-configure}:4407: testing cannot compile test-program ..." 1>&5
4412 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4415 echo "$as_me:4415: result: $cf_cv_ar_flags" >&5
4416 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4418 if test -n "$ARFLAGS" ; then
4419 if test -n "$cf_cv_ar_flags" ; then
4420 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4423 ARFLAGS=$cf_cv_ar_flags
4426 echo "$as_me:4426: checking if you have specified an install-prefix" >&5
4427 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4429 # Check whether --with-install-prefix or --without-install-prefix was given.
4430 if test "${with_install_prefix+set}" = set; then
4431 withval="$with_install_prefix"
4432 case "$withval" in #(vi
4435 *) DESTDIR="$withval"
4439 echo "$as_me:4439: result: $DESTDIR" >&5
4440 echo "${ECHO_T}$DESTDIR" >&6
4442 ###############################################################################
4444 # If we're cross-compiling, allow the user to override the tools and their
4445 # options. The configure script is oriented toward identifying the host
4446 # compiler, etc., but we need a build compiler to generate parts of the source.
4448 if test "$cross_compiling" = yes ; then
4450 # defaults that we might want to override
4451 : ${BUILD_CFLAGS:=''}
4452 : ${BUILD_CPPFLAGS:=''}
4453 : ${BUILD_LDFLAGS:=''}
4455 : ${BUILD_EXEEXT:='$x'}
4456 : ${BUILD_OBJEXT:='o'}
4458 # Check whether --with-build-cc or --without-build-cc was given.
4459 if test "${with_build_cc+set}" = set; then
4460 withval="$with_build_cc"
4463 for ac_prog in gcc cc cl
4465 # Extract the first word of "$ac_prog", so it can be a program name with args.
4466 set dummy $ac_prog; ac_word=$2
4467 echo "$as_me:4467: checking for $ac_word" >&5
4468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4469 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 if test -n "$BUILD_CC"; then
4473 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4475 ac_save_IFS=$IFS; IFS=$ac_path_separator
4477 for ac_dir in $ac_dummy; do
4479 test -z "$ac_dir" && ac_dir=.
4480 $as_executable_p "$ac_dir/$ac_word" || continue
4481 ac_cv_prog_BUILD_CC="$ac_prog"
4482 echo "$as_me:4482: found $ac_dir/$ac_word" >&5
4488 BUILD_CC=$ac_cv_prog_BUILD_CC
4489 if test -n "$BUILD_CC"; then
4490 echo "$as_me:4490: result: $BUILD_CC" >&5
4491 echo "${ECHO_T}$BUILD_CC" >&6
4493 echo "$as_me:4493: result: no" >&5
4494 echo "${ECHO_T}no" >&6
4497 test -n "$BUILD_CC" && break
4501 echo "$as_me:4501: checking for native build C compiler" >&5
4502 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4503 echo "$as_me:4503: result: $BUILD_CC" >&5
4504 echo "${ECHO_T}$BUILD_CC" >&6
4506 echo "$as_me:4506: checking for native build C preprocessor" >&5
4507 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4509 # Check whether --with-build-cpp or --without-build-cpp was given.
4510 if test "${with_build_cpp+set}" = set; then
4511 withval="$with_build_cpp"
4512 BUILD_CPP="$withval"
4514 BUILD_CPP='${BUILD_CC} -E'
4516 echo "$as_me:4516: result: $BUILD_CPP" >&5
4517 echo "${ECHO_T}$BUILD_CPP" >&6
4519 echo "$as_me:4519: checking for native build C flags" >&5
4520 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4522 # Check whether --with-build-cflags or --without-build-cflags was given.
4523 if test "${with_build_cflags+set}" = set; then
4524 withval="$with_build_cflags"
4525 BUILD_CFLAGS="$withval"
4527 echo "$as_me:4527: result: $BUILD_CFLAGS" >&5
4528 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4530 echo "$as_me:4530: checking for native build C preprocessor-flags" >&5
4531 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4533 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4534 if test "${with_build_cppflags+set}" = set; then
4535 withval="$with_build_cppflags"
4536 BUILD_CPPFLAGS="$withval"
4538 echo "$as_me:4538: result: $BUILD_CPPFLAGS" >&5
4539 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4541 echo "$as_me:4541: checking for native build linker-flags" >&5
4542 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4544 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4545 if test "${with_build_ldflags+set}" = set; then
4546 withval="$with_build_ldflags"
4547 BUILD_LDFLAGS="$withval"
4549 echo "$as_me:4549: result: $BUILD_LDFLAGS" >&5
4550 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4552 echo "$as_me:4552: checking for native build linker-libraries" >&5
4553 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4555 # Check whether --with-build-libs or --without-build-libs was given.
4556 if test "${with_build_libs+set}" = set; then
4557 withval="$with_build_libs"
4558 BUILD_LIBS="$withval"
4560 echo "$as_me:4560: result: $BUILD_LIBS" >&5
4561 echo "${ECHO_T}$BUILD_LIBS" >&6
4563 # this assumes we're on Unix.
4567 : ${BUILD_CC:='${CC}'}
4569 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4570 { { echo "$as_me:4570: error: Cross-build requires two compilers.
4571 Use --with-build-cc to specify the native compiler." >&5
4572 echo "$as_me: error: Cross-build requires two compilers.
4573 Use --with-build-cc to specify the native compiler." >&2;}
4574 { (exit 1); exit 1; }; }
4578 : ${BUILD_CC:='${CC}'}
4579 : ${BUILD_CPP:='${CPP}'}
4580 : ${BUILD_CFLAGS:='${CFLAGS}'}
4581 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4582 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4583 : ${BUILD_LIBS:='${LIBS}'}
4584 : ${BUILD_EXEEXT:='$x'}
4585 : ${BUILD_OBJEXT:='o'}
4588 ###############################################################################
4590 ### Options to allow the user to specify the set of libraries which are used.
4591 ### Use "--without-normal --with-shared" to allow the default model to be
4592 ### shared, for example.
4595 echo "$as_me:4595: checking if libtool -version-number should be used" >&5
4596 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
4598 # Check whether --enable-libtool-version or --disable-libtool-version was given.
4599 if test "${enable_libtool_version+set}" = set; then
4600 enableval="$enable_libtool_version"
4601 test "$enableval" != no && enableval=yes
4602 if test "$enableval" != "yes" ; then
4603 cf_libtool_version=no
4605 cf_libtool_version=yes
4609 cf_libtool_version=yes
4612 echo "$as_me:4612: result: $cf_libtool_version" >&5
4613 echo "${ECHO_T}$cf_libtool_version" >&6
4615 if test "$cf_libtool_version" = yes ; then
4616 LIBTOOL_VERSION="-version-number"
4618 LIBTOOL_VERSION="-version-info"
4623 # common library maintenance symbols that are convenient for libtool scripts:
4624 LIB_CREATE='${AR} -cr'
4625 LIB_OBJECT='${OBJECTS}'
4629 # symbols used to prop libtool up to enable it to determine what it should be
4637 echo "$as_me:4637: checking if you want to build libraries with libtool" >&5
4638 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4640 # Check whether --with-libtool or --without-libtool was given.
4641 if test "${with_libtool+set}" = set; then
4642 withval="$with_libtool"
4643 with_libtool=$withval
4647 echo "$as_me:4647: result: $with_libtool" >&5
4648 echo "${ECHO_T}$with_libtool" >&6
4649 if test "$with_libtool" != "no"; then
4651 if test "$with_libtool" != "yes" ; then
4653 if test "x$prefix" != xNONE; then
4654 cf_path_syntax="$prefix"
4656 cf_path_syntax="$ac_default_prefix"
4659 case ".$with_libtool" in #(vi
4660 .\$\(*\)*|.\'*\'*) #(vi
4664 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4667 eval with_libtool="$with_libtool"
4668 case ".$with_libtool" in #(vi
4670 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4675 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4678 { { echo "$as_me:4678: error: expected a pathname, not \"$with_libtool\"" >&5
4679 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4680 { (exit 1); exit 1; }; }
4684 LIBTOOL=$with_libtool
4686 # Extract the first word of "libtool", so it can be a program name with args.
4687 set dummy libtool; ac_word=$2
4688 echo "$as_me:4688: checking for $ac_word" >&5
4689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4690 if test "${ac_cv_path_LIBTOOL+set}" = set; then
4691 echo $ECHO_N "(cached) $ECHO_C" >&6
4695 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
4698 ac_save_IFS=$IFS; IFS=$ac_path_separator
4700 for ac_dir in $ac_dummy; do
4702 test -z "$ac_dir" && ac_dir=.
4703 if $as_executable_p "$ac_dir/$ac_word"; then
4704 ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
4705 echo "$as_me:4705: found $ac_dir/$ac_word" >&5
4713 LIBTOOL=$ac_cv_path_LIBTOOL
4715 if test -n "$LIBTOOL"; then
4716 echo "$as_me:4716: result: $LIBTOOL" >&5
4717 echo "${ECHO_T}$LIBTOOL" >&6
4719 echo "$as_me:4719: result: no" >&5
4720 echo "${ECHO_T}no" >&6
4724 if test -z "$LIBTOOL" ; then
4725 { { echo "$as_me:4725: error: Cannot find libtool" >&5
4726 echo "$as_me: error: Cannot find libtool" >&2;}
4727 { (exit 1); exit 1; }; }
4729 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} ${LIBTOOL_VERSION} `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
4730 LIB_OBJECT='${OBJECTS:.o=.lo}'
4732 LIB_CLEAN='${LIBTOOL} --mode=clean'
4733 LIB_COMPILE='${LIBTOOL} --mode=compile'
4734 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
4735 LIB_INSTALL='${LIBTOOL} --mode=install'
4736 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4739 # Show the version of libtool
4740 echo "$as_me:4740: checking version of libtool" >&5
4741 echo $ECHO_N "checking version of libtool... $ECHO_C" >&6
4743 # Save the version in a cache variable - this is not entirely a good
4744 # thing, but the version string from libtool is very ugly, and for
4745 # bug reports it might be useful to have the original string. "("
4746 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.].*//'`
4747 echo "$as_me:4747: result: $cf_cv_libtool_version" >&5
4748 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4749 if test -z "$cf_cv_libtool_version" ; then
4750 { { echo "$as_me:4750: error: This is not GNU libtool" >&5
4751 echo "$as_me: error: This is not GNU libtool" >&2;}
4752 { (exit 1); exit 1; }; }
4755 # special hack to add -no-undefined (which libtool should do for itself)
4757 case "$cf_cv_system_name" in #(vi
4758 cygwin*|mingw32*|uwin*|aix[4-7]) #(vi
4759 LT_UNDEF=-no-undefined
4763 # special hack to add --tag option for C++ compiler
4764 case $cf_cv_libtool_version in #(vi
4765 1.[5-9]*|[2-9].[0-9.a-z]*) #(vi
4766 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4767 LIBTOOL="$LIBTOOL --tag=CC"
4770 LIBTOOL_CXX="$LIBTOOL"
4778 test -z "$LIBTOOL" && ECHO_LT=
4780 if test "$with_libtool" != "no" ; then
4782 cf_list_models="$cf_list_models libtool"
4786 echo "$as_me:4786: checking if you want to build shared libraries" >&5
4787 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
4789 # Check whether --with-shared or --without-shared was given.
4790 if test "${with_shared+set}" = set; then
4791 withval="$with_shared"
4792 with_shared=$withval
4796 echo "$as_me:4796: result: $with_shared" >&5
4797 echo "${ECHO_T}$with_shared" >&6
4798 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
4800 echo "$as_me:4800: checking if you want to build static libraries" >&5
4801 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
4803 # Check whether --with-normal or --without-normal was given.
4804 if test "${with_normal+set}" = set; then
4805 withval="$with_normal"
4806 with_normal=$withval
4810 echo "$as_me:4810: result: $with_normal" >&5
4811 echo "${ECHO_T}$with_normal" >&6
4812 test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
4814 echo "$as_me:4814: checking if you want to build debug libraries" >&5
4815 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
4817 # Check whether --with-debug or --without-debug was given.
4818 if test "${with_debug+set}" = set; then
4819 withval="$with_debug"
4824 echo "$as_me:4824: result: $with_debug" >&5
4825 echo "${ECHO_T}$with_debug" >&6
4826 test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
4828 echo "$as_me:4828: checking if you want to build profiling libraries" >&5
4829 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
4831 # Check whether --with-profile or --without-profile was given.
4832 if test "${with_profile+set}" = set; then
4833 withval="$with_profile"
4834 with_profile=$withval
4838 echo "$as_me:4838: result: $with_profile" >&5
4839 echo "${ECHO_T}$with_profile" >&6
4840 test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
4844 ###############################################################################
4846 echo "$as_me:4846: checking for specified models" >&5
4847 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
4848 test -z "$cf_list_models" && cf_list_models=normal
4849 test "$with_libtool" != "no" && cf_list_models=libtool
4850 echo "$as_me:4850: result: $cf_list_models" >&5
4851 echo "${ECHO_T}$cf_list_models" >&6
4853 ### Use the first model as the default, and save its suffix for use in building
4854 ### up test-applications.
4855 echo "$as_me:4855: checking for default model" >&5
4856 echo $ECHO_N "checking for default model... $ECHO_C" >&6
4857 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
4858 echo "$as_me:4858: result: $DFT_LWR_MODEL" >&5
4859 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
4861 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4872 case $cf_cv_system_name in #(vi
4879 cf_prefix=$LIB_PREFIX
4881 LIB_PREFIX=$cf_prefix
4885 ###############################################################################
4887 echo "$as_me:4887: checking if you want to build a separate terminfo library" >&5
4888 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
4890 # Check whether --with-termlib or --without-termlib was given.
4891 if test "${with_termlib+set}" = set; then
4892 withval="$with_termlib"
4893 with_termlib=$withval
4897 echo "$as_me:4897: result: $with_termlib" >&5
4898 echo "${ECHO_T}$with_termlib" >&6
4900 echo "$as_me:4900: checking if you want to build a separate tic library" >&5
4901 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
4903 # Check whether --with-ticlib or --without-ticlib was given.
4904 if test "${with_ticlib+set}" = set; then
4905 withval="$with_ticlib"
4906 with_ticlib=$withval
4910 echo "$as_me:4910: result: $with_ticlib" >&5
4911 echo "${ECHO_T}$with_ticlib" >&6
4913 ### Checks for special libraries, must be done up-front.
4916 echo "$as_me:4916: checking if you want to link with the GPM mouse library" >&5
4917 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
4919 # Check whether --with-gpm or --without-gpm was given.
4920 if test "${with_gpm+set}" = set; then
4926 echo "$as_me:4926: result: $with_gpm" >&5
4927 echo "${ECHO_T}$with_gpm" >&6
4929 if test "$with_gpm" != no ; then
4930 echo "$as_me:4930: checking for gpm.h" >&5
4931 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
4932 if test "${ac_cv_header_gpm_h+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4935 cat >conftest.$ac_ext <<_ACEOF
4936 #line 4936 "configure"
4937 #include "confdefs.h"
4940 if { (eval echo "$as_me:4940: \"$ac_cpp conftest.$ac_ext\"") >&5
4941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4943 egrep -v '^ *\+' conftest.er1 >conftest.err
4945 cat conftest.err >&5
4946 echo "$as_me:4946: \$? = $ac_status" >&5
4947 (exit $ac_status); } >/dev/null; then
4948 if test -s conftest.err; then
4949 ac_cpp_err=$ac_c_preproc_warn_flag
4956 if test -z "$ac_cpp_err"; then
4957 ac_cv_header_gpm_h=yes
4959 echo "$as_me: failed program was:" >&5
4960 cat conftest.$ac_ext >&5
4961 ac_cv_header_gpm_h=no
4963 rm -f conftest.err conftest.$ac_ext
4965 echo "$as_me:4965: result: $ac_cv_header_gpm_h" >&5
4966 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
4967 if test $ac_cv_header_gpm_h = yes; then
4969 cat >>confdefs.h <<\EOF
4970 #define HAVE_GPM_H 1
4973 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
4974 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
4976 echo "${as_me:-configure}:4976: testing assuming we really have GPM library ..." 1>&5
4978 cat >>confdefs.h <<\EOF
4979 #define HAVE_LIBGPM 1
4983 echo "$as_me:4983: checking for Gpm_Open in -lgpm" >&5
4984 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
4985 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
4986 echo $ECHO_N "(cached) $ECHO_C" >&6
4988 ac_check_lib_save_LIBS=$LIBS
4990 cat >conftest.$ac_ext <<_ACEOF
4991 #line 4991 "configure"
4992 #include "confdefs.h"
4994 /* Override any gcc2 internal prototype to avoid an error. */
4998 /* We use char because int might match the return type of a gcc2
4999 builtin and then its argument prototype would still apply. */
5009 rm -f conftest.$ac_objext conftest$ac_exeext
5010 if { (eval echo "$as_me:5010: \"$ac_link\"") >&5
5011 (eval $ac_link) 2>&5
5013 echo "$as_me:5013: \$? = $ac_status" >&5
5014 (exit $ac_status); } &&
5015 { ac_try='test -s conftest$ac_exeext'
5016 { (eval echo "$as_me:5016: \"$ac_try\"") >&5
5019 echo "$as_me:5019: \$? = $ac_status" >&5
5020 (exit $ac_status); }; }; then
5021 ac_cv_lib_gpm_Gpm_Open=yes
5023 echo "$as_me: failed program was:" >&5
5024 cat conftest.$ac_ext >&5
5025 ac_cv_lib_gpm_Gpm_Open=no
5027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5028 LIBS=$ac_check_lib_save_LIBS
5030 echo "$as_me:5030: result: $ac_cv_lib_gpm_Gpm_Open" >&5
5031 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
5032 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
5036 { { echo "$as_me:5036: error: Cannot link with GPM library" >&5
5037 echo "$as_me: error: Cannot link with GPM library" >&2;}
5038 { (exit 1); exit 1; }; }
5046 test "$with_gpm" != maybe && { echo "$as_me:5046: WARNING: Cannot find GPM header" >&5
5047 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
5054 if test "$with_gpm" != no ; then
5055 echo "$as_me:5055: checking if you want to load GPM dynamically" >&5
5056 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
5058 # Check whether --with-dlsym or --without-dlsym was given.
5059 if test "${with_dlsym+set}" = set; then
5060 withval="$with_dlsym"
5065 echo "$as_me:5065: result: $with_dlsym" >&5
5066 echo "${ECHO_T}$with_dlsym" >&6
5067 if test "$with_dlsym" = yes ; then
5070 echo "$as_me:5070: checking for dlsym" >&5
5071 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
5072 if test "${ac_cv_func_dlsym+set}" = set; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
5075 cat >conftest.$ac_ext <<_ACEOF
5076 #line 5076 "configure"
5077 #include "confdefs.h"
5078 /* System header to define __stub macros and hopefully few prototypes,
5079 which can conflict with char dlsym (); below. */
5081 /* Override any gcc2 internal prototype to avoid an error. */
5085 /* We use char because int might match the return type of a gcc2
5086 builtin and then its argument prototype would still apply. */
5093 /* The GNU C library defines this for functions which it implements
5094 to always fail with ENOSYS. Some functions are actually named
5095 something starting with __ and the normal name is an alias. */
5096 #if defined (__stub_dlsym) || defined (__stub___dlsym)
5106 rm -f conftest.$ac_objext conftest$ac_exeext
5107 if { (eval echo "$as_me:5107: \"$ac_link\"") >&5
5108 (eval $ac_link) 2>&5
5110 echo "$as_me:5110: \$? = $ac_status" >&5
5111 (exit $ac_status); } &&
5112 { ac_try='test -s conftest$ac_exeext'
5113 { (eval echo "$as_me:5113: \"$ac_try\"") >&5
5116 echo "$as_me:5116: \$? = $ac_status" >&5
5117 (exit $ac_status); }; }; then
5118 ac_cv_func_dlsym=yes
5120 echo "$as_me: failed program was:" >&5
5121 cat conftest.$ac_ext >&5
5124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5126 echo "$as_me:5126: result: $ac_cv_func_dlsym" >&5
5127 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
5128 if test $ac_cv_func_dlsym = yes; then
5133 echo "$as_me:5133: checking for dlsym in -ldl" >&5
5134 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
5135 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5138 ac_check_lib_save_LIBS=$LIBS
5140 cat >conftest.$ac_ext <<_ACEOF
5141 #line 5141 "configure"
5142 #include "confdefs.h"
5144 /* Override any gcc2 internal prototype to avoid an error. */
5148 /* We use char because int might match the return type of a gcc2
5149 builtin and then its argument prototype would still apply. */
5159 rm -f conftest.$ac_objext conftest$ac_exeext
5160 if { (eval echo "$as_me:5160: \"$ac_link\"") >&5
5161 (eval $ac_link) 2>&5
5163 echo "$as_me:5163: \$? = $ac_status" >&5
5164 (exit $ac_status); } &&
5165 { ac_try='test -s conftest$ac_exeext'
5166 { (eval echo "$as_me:5166: \"$ac_try\"") >&5
5169 echo "$as_me:5169: \$? = $ac_status" >&5
5170 (exit $ac_status); }; }; then
5171 ac_cv_lib_dl_dlsym=yes
5173 echo "$as_me: failed program was:" >&5
5174 cat conftest.$ac_ext >&5
5175 ac_cv_lib_dl_dlsym=no
5177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5178 LIBS=$ac_check_lib_save_LIBS
5180 echo "$as_me:5180: result: $ac_cv_lib_dl_dlsym" >&5
5181 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
5182 if test $ac_cv_lib_dl_dlsym = yes; then
5190 if test "$cf_have_dlsym" = yes ; then
5191 test "$cf_have_libdl" = yes && LIBS="-ldl $LIBS"
5193 echo "$as_me:5193: checking whether able to link to dl*() functions" >&5
5194 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
5195 cat >conftest.$ac_ext <<_ACEOF
5196 #line 5196 "configure"
5197 #include "confdefs.h"
5204 if ((obj = dlopen("filename", 0)) != 0) {
5205 if (dlsym(obj, "symbolname") == 0) {
5213 rm -f conftest.$ac_objext conftest$ac_exeext
5214 if { (eval echo "$as_me:5214: \"$ac_link\"") >&5
5215 (eval $ac_link) 2>&5
5217 echo "$as_me:5217: \$? = $ac_status" >&5
5218 (exit $ac_status); } &&
5219 { ac_try='test -s conftest$ac_exeext'
5220 { (eval echo "$as_me:5220: \"$ac_try\"") >&5
5223 echo "$as_me:5223: \$? = $ac_status" >&5
5224 (exit $ac_status); }; }; then
5226 cat >>confdefs.h <<\EOF
5227 #define HAVE_LIBDL 1
5231 echo "$as_me: failed program was:" >&5
5232 cat conftest.$ac_ext >&5
5234 { { echo "$as_me:5234: error: Cannot link test program for libdl" >&5
5235 echo "$as_me: error: Cannot link test program for libdl" >&2;}
5236 { (exit 1); exit 1; }; }
5238 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5239 echo "$as_me:5239: result: ok" >&5
5240 echo "${ECHO_T}ok" >&6
5242 { { echo "$as_me:5242: error: Cannot find dlsym function" >&5
5243 echo "$as_me: error: Cannot find dlsym function" >&2;}
5244 { (exit 1); exit 1; }; }
5247 if test "$with_gpm" != yes ; then
5248 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
5250 echo "${as_me:-configure}:5250: testing assuming soname for gpm is $with_gpm ..." 1>&5
5252 cf_cv_gpm_soname="$with_gpm"
5255 echo "$as_me:5255: checking for soname of gpm library" >&5
5256 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
5257 if test "${cf_cv_gpm_soname+set}" = set; then
5258 echo $ECHO_N "(cached) $ECHO_C" >&6
5261 cf_cv_gpm_soname=unknown
5262 if test "$cross_compiling" != yes ; then
5263 cat >conftest.$ac_ext <<CF_EOF
5267 if (Gpm_Open(0,0)) Gpm_Close();
5268 ${cf_cv_main_return:-return}(0);
5271 cf_save_LIBS="$LIBS"
5273 if { (eval echo "$as_me:5273: \"$ac_compile\"") >&5
5274 (eval $ac_compile) 2>&5
5276 echo "$as_me:5276: \$? = $ac_status" >&5
5277 (exit $ac_status); } ; then
5278 if { (eval echo "$as_me:5278: \"$ac_link\"") >&5
5279 (eval $ac_link) 2>&5
5281 echo "$as_me:5281: \$? = $ac_status" >&5
5282 (exit $ac_status); } ; then
5283 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
5284 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
5288 LIBS="$cf_save_LIBS"
5292 echo "$as_me:5292: result: $cf_cv_gpm_soname" >&5
5293 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
5296 test "$cf_cv_gpm_soname" != "unknown" && cat >>confdefs.h <<EOF
5297 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
5300 SHLIB_LIST="-ldl $SHLIB_LIST"
5302 SHLIB_LIST="-lgpm $SHLIB_LIST"
5303 TEST_LIBS="-lgpm $TEST_LIBS"
5305 cat >>confdefs.h <<\EOF
5306 #define HAVE_LIBGPM 1
5309 echo "$as_me:5309: checking for Gpm_Wgetch in -lgpm" >&5
5310 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
5311 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
5312 echo $ECHO_N "(cached) $ECHO_C" >&6
5314 ac_check_lib_save_LIBS=$LIBS
5316 cat >conftest.$ac_ext <<_ACEOF
5317 #line 5317 "configure"
5318 #include "confdefs.h"
5320 /* Override any gcc2 internal prototype to avoid an error. */
5324 /* We use char because int might match the return type of a gcc2
5325 builtin and then its argument prototype would still apply. */
5335 rm -f conftest.$ac_objext conftest$ac_exeext
5336 if { (eval echo "$as_me:5336: \"$ac_link\"") >&5
5337 (eval $ac_link) 2>&5
5339 echo "$as_me:5339: \$? = $ac_status" >&5
5340 (exit $ac_status); } &&
5341 { ac_try='test -s conftest$ac_exeext'
5342 { (eval echo "$as_me:5342: \"$ac_try\"") >&5
5345 echo "$as_me:5345: \$? = $ac_status" >&5
5346 (exit $ac_status); }; }; then
5347 ac_cv_lib_gpm_Gpm_Wgetch=yes
5349 echo "$as_me: failed program was:" >&5
5350 cat conftest.$ac_ext >&5
5351 ac_cv_lib_gpm_Gpm_Wgetch=no
5353 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5354 LIBS=$ac_check_lib_save_LIBS
5356 echo "$as_me:5356: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
5357 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
5358 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
5360 echo "$as_me:5360: checking if GPM is weakly bound to curses library" >&5
5361 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
5362 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
5363 echo $ECHO_N "(cached) $ECHO_C" >&6
5366 cf_cv_check_gpm_wgetch=unknown
5367 if test "$cross_compiling" != yes ; then
5369 cat >conftest.$ac_ext <<CF_EOF
5374 ${cf_cv_main_return:-return}(0);
5378 cf_save_LIBS="$LIBS"
5379 # This only works if we can look at the symbol table. If a shared
5380 # library is stripped for install, we cannot use that. So we're forced
5381 # to rely on the static library, noting that some packagers may not
5383 LIBS="-static -lgpm -dynamic $LIBS"
5384 if { (eval echo "$as_me:5384: \"$ac_compile\"") >&5
5385 (eval $ac_compile) 2>&5
5387 echo "$as_me:5387: \$? = $ac_status" >&5
5388 (exit $ac_status); } ; then
5389 if { (eval echo "$as_me:5389: \"$ac_link\"") >&5
5390 (eval $ac_link) 2>&5
5392 echo "$as_me:5392: \$? = $ac_status" >&5
5393 (exit $ac_status); } ; then
5394 cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
5395 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
5396 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
5400 LIBS="$cf_save_LIBS"
5404 echo "$as_me:5404: result: $cf_cv_check_gpm_wgetch" >&5
5405 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
5407 if test "$cf_cv_check_gpm_wgetch" != yes ; then
5408 { echo "$as_me:5408: WARNING: GPM library is already linked with curses - read the FAQ" >&5
5409 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
5416 # not everyone has "test -c"
5417 if test -c /dev/sysmouse 2>/dev/null ; then
5418 echo "$as_me:5418: checking if you want to use sysmouse" >&5
5419 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
5421 # Check whether --with-sysmouse or --without-sysmouse was given.
5422 if test "${with_sysmouse+set}" = set; then
5423 withval="$with_sysmouse"
5424 cf_with_sysmouse=$withval
5426 cf_with_sysmouse=maybe
5428 if test "$cf_with_sysmouse" != no ; then
5429 cat >conftest.$ac_ext <<_ACEOF
5430 #line 5430 "configure"
5431 #include "confdefs.h"
5433 #include <osreldate.h>
5434 #if (__FreeBSD_version >= 400017)
5435 #include <sys/consio.h>
5436 #include <sys/fbio.h>
5438 #include <machine/console.h>
5445 struct mouse_info the_mouse;
5446 ioctl(0, CONS_MOUSECTL, &the_mouse);
5452 rm -f conftest.$ac_objext
5453 if { (eval echo "$as_me:5453: \"$ac_compile\"") >&5
5454 (eval $ac_compile) 2>&5
5456 echo "$as_me:5456: \$? = $ac_status" >&5
5457 (exit $ac_status); } &&
5458 { ac_try='test -s conftest.$ac_objext'
5459 { (eval echo "$as_me:5459: \"$ac_try\"") >&5
5462 echo "$as_me:5462: \$? = $ac_status" >&5
5463 (exit $ac_status); }; }; then
5464 cf_with_sysmouse=yes
5466 echo "$as_me: failed program was:" >&5
5467 cat conftest.$ac_ext >&5
5470 rm -f conftest.$ac_objext conftest.$ac_ext
5472 echo "$as_me:5472: result: $cf_with_sysmouse" >&5
5473 echo "${ECHO_T}$cf_with_sysmouse" >&6
5474 test "$cf_with_sysmouse" = yes && cat >>confdefs.h <<\EOF
5475 #define USE_SYSMOUSE 1
5480 if test X"$CC_G_OPT" = X"" ; then
5482 test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
5485 if test X"$CXX_G_OPT" = X"" ; then
5487 test -n "$GXX" && test "${ac_cv_prog_cxx_g}" != yes && CXX_G_OPT=''
5490 echo "$as_me:5490: checking for default loader flags" >&5
5491 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
5492 case $DFT_LWR_MODEL in
5493 libtool) LD_MODEL='' ;;
5494 normal) LD_MODEL='' ;;
5495 debug) LD_MODEL=$CC_G_OPT ;;
5496 profile) LD_MODEL='-pg';;
5497 shared) LD_MODEL='' ;;
5499 echo "$as_me:5499: result: $LD_MODEL" >&5
5500 echo "${ECHO_T}$LD_MODEL" >&6
5502 case $DFT_LWR_MODEL in
5505 echo "$as_me:5505: checking if rpath option should be used" >&5
5506 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
5508 # Check whether --enable-rpath or --disable-rpath was given.
5509 if test "${enable_rpath+set}" = set; then
5510 enableval="$enable_rpath"
5511 cf_cv_enable_rpath=$enableval
5513 cf_cv_enable_rpath=no
5515 echo "$as_me:5515: result: $cf_cv_enable_rpath" >&5
5516 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
5518 echo "$as_me:5518: checking if shared libraries should be relinked during install" >&5
5519 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
5521 # Check whether --enable-relink or --disable-relink was given.
5522 if test "${enable_relink+set}" = set; then
5523 enableval="$enable_relink"
5524 cf_cv_do_relink=$enableval
5528 echo "$as_me:5528: result: $cf_cv_do_relink" >&5
5529 echo "${ECHO_T}$cf_cv_do_relink" >&6
5534 echo "$as_me:5534: checking for an rpath option" >&5
5535 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
5536 case $cf_cv_system_name in #(vi
5538 if test "$GCC" = yes; then
5539 LD_RPATH_OPT="-Wl,-rpath,"
5541 LD_RPATH_OPT="-rpath "
5544 linux*|gnu*|k*bsd*-gnu) #(vi
5545 LD_RPATH_OPT="-Wl,-rpath,"
5547 openbsd[2-9].*|mirbsd*) #(vi
5548 LD_RPATH_OPT="-Wl,-rpath,"
5550 dragonfly*|freebsd*) #(vi
5551 LD_RPATH_OPT="-rpath "
5554 LD_RPATH_OPT="-Wl,-rpath,"
5557 LD_RPATH_OPT="-rpath "
5565 echo "$as_me:5565: result: $LD_RPATH_OPT" >&5
5566 echo "${ECHO_T}$LD_RPATH_OPT" >&6
5568 case "x$LD_RPATH_OPT" in #(vi
5570 echo "$as_me:5570: checking if we need a space after rpath option" >&5
5571 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
5572 cf_save_LIBS="$LIBS"
5573 LIBS="${LD_RPATH_OPT}$libdir $LIBS"
5574 cat >conftest.$ac_ext <<_ACEOF
5575 #line 5575 "configure"
5576 #include "confdefs.h"
5586 rm -f conftest.$ac_objext conftest$ac_exeext
5587 if { (eval echo "$as_me:5587: \"$ac_link\"") >&5
5588 (eval $ac_link) 2>&5
5590 echo "$as_me:5590: \$? = $ac_status" >&5
5591 (exit $ac_status); } &&
5592 { ac_try='test -s conftest$ac_exeext'
5593 { (eval echo "$as_me:5593: \"$ac_try\"") >&5
5596 echo "$as_me:5596: \$? = $ac_status" >&5
5597 (exit $ac_status); }; }; then
5600 echo "$as_me: failed program was:" >&5
5601 cat conftest.$ac_ext >&5
5604 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5605 LIBS="$cf_save_LIBS"
5606 echo "$as_me:5606: result: $cf_rpath_space" >&5
5607 echo "${ECHO_T}$cf_rpath_space" >&6
5608 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
5615 INSTALL_LIB="-m 644"
5617 cf_cv_do_symlinks=no
5619 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
5621 echo "$as_me:5621: checking if release/abi version should be used for shared libs" >&5
5622 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
5624 # Check whether --with-shlib-version or --without-shlib-version was given.
5625 if test "${with_shlib_version+set}" = set; then
5626 withval="$with_shlib_version"
5627 test -z "$withval" && withval=auto
5628 case $withval in #(vi
5630 cf_cv_shlib_version=auto
5632 rel|abi|auto|no) #(vi
5633 cf_cv_shlib_version=$withval
5636 { { echo "$as_me:5636: error: option value must be one of: rel, abi, auto or no" >&5
5637 echo "$as_me: error: option value must be one of: rel, abi, auto or no" >&2;}
5638 { (exit 1); exit 1; }; }
5643 cf_cv_shlib_version=auto
5645 echo "$as_me:5645: result: $cf_cv_shlib_version" >&5
5646 echo "${ECHO_T}$cf_cv_shlib_version" >&6
5650 # Some less-capable ports of gcc support only -fpic
5652 if test "$GCC" = yes
5654 echo "$as_me:5654: checking which $CC option to use" >&5
5655 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
5656 cf_save_CFLAGS="$CFLAGS"
5657 for CC_SHARED_OPTS in -fPIC -fpic ''
5659 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
5660 cat >conftest.$ac_ext <<_ACEOF
5661 #line 5661 "configure"
5662 #include "confdefs.h"
5672 rm -f conftest.$ac_objext
5673 if { (eval echo "$as_me:5673: \"$ac_compile\"") >&5
5674 (eval $ac_compile) 2>&5
5676 echo "$as_me:5676: \$? = $ac_status" >&5
5677 (exit $ac_status); } &&
5678 { ac_try='test -s conftest.$ac_objext'
5679 { (eval echo "$as_me:5679: \"$ac_try\"") >&5
5682 echo "$as_me:5682: \$? = $ac_status" >&5
5683 (exit $ac_status); }; }; then
5686 echo "$as_me: failed program was:" >&5
5687 cat conftest.$ac_ext >&5
5689 rm -f conftest.$ac_objext conftest.$ac_ext
5691 echo "$as_me:5691: result: $CC_SHARED_OPTS" >&5
5692 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
5693 CFLAGS="$cf_save_CFLAGS"
5696 cf_cv_shlib_version_infix=no
5698 case $cf_cv_system_name in #(vi
5699 aix4.3-9*|aix[5-7]*) #(vi
5700 if test "$GCC" = yes; then
5702 MK_SHARED_LIB='${CC} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
5704 # CC_SHARED_OPTS='-qpic=large -G'
5705 # perhaps "-bM:SRE -bnoentry -bexpall"
5706 MK_SHARED_LIB='${CC} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
5710 MK_SHARED_LIB='${CC} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
5714 MK_SHARED_LIB='sh ../mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5715 cf_cv_shlib_version=cygdll
5716 cf_cv_shlib_version_infix=cygdll
5717 cat >mk_shared_lib.sh <<-CF_EOF
5720 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
5723 Linking shared library
5724 ** SHARED_LIB \$SHARED_LIB
5725 ** IMPORT_LIB \$IMPORT_LIB
5727 exec \$* -shared -Wl,--out-implib=../lib/\${IMPORT_LIB} -Wl,--export-all-symbols -o ../lib/\${SHARED_LIB}
5729 chmod +x mk_shared_lib.sh
5732 EXTRA_CFLAGS="-no-cpp-precomp"
5733 CC_SHARED_OPTS="-dynamic"
5734 MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
5735 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
5736 cf_cv_shlib_version_infix=yes
5737 echo "$as_me:5737: checking if ld -search_paths_first works" >&5
5738 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
5739 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
5740 echo $ECHO_N "(cached) $ECHO_C" >&6
5743 cf_save_LDFLAGS=$LDFLAGS
5744 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5745 cat >conftest.$ac_ext <<_ACEOF
5746 #line 5746 "configure"
5747 #include "confdefs.h"
5757 rm -f conftest.$ac_objext conftest$ac_exeext
5758 if { (eval echo "$as_me:5758: \"$ac_link\"") >&5
5759 (eval $ac_link) 2>&5
5761 echo "$as_me:5761: \$? = $ac_status" >&5
5762 (exit $ac_status); } &&
5763 { ac_try='test -s conftest$ac_exeext'
5764 { (eval echo "$as_me:5764: \"$ac_try\"") >&5
5767 echo "$as_me:5767: \$? = $ac_status" >&5
5768 (exit $ac_status); }; }; then
5769 cf_cv_ldflags_search_paths_first=yes
5771 echo "$as_me: failed program was:" >&5
5772 cat conftest.$ac_ext >&5
5773 cf_cv_ldflags_search_paths_first=no
5775 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5776 LDFLAGS=$cf_save_LDFLAGS
5778 echo "$as_me:5778: result: $cf_cv_ldflags_search_paths_first" >&5
5779 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
5780 if test $cf_cv_ldflags_search_paths_first = yes; then
5781 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5785 # (tested with gcc 2.7.2 -- I don't have c89)
5786 if test "$GCC" = yes; then
5787 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
5790 LD_SHARED_OPTS='-Wl,+b,${libdir}'
5792 MK_SHARED_LIB='${LD} +b ${libdir} -b -o $@'
5793 # HP-UX shared libraries must be executable, and should be
5794 # readonly to exploit a quirk in the memory manager.
5795 INSTALL_LIB="-m 555"
5798 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5799 if test "$cf_cv_shlib_version" = rel; then
5800 cf_shared_soname='`basename .${REL_VERSION}`.${ABI_VERSION}'
5802 cf_shared_soname='`basename `'
5805 MK_SHARED_LIB='${CC} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o '
5808 if test "$cf_cv_enable_rpath" = yes ; then
5809 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5811 # tested with IRIX 5.2 and 'cc'.
5812 if test "$GCC" != yes; then
5813 CC_SHARED_OPTS='-KPIC'
5814 MK_SHARED_LIB='${CC} -shared -rdata_shared -soname `basename $@` -o $@'
5816 MK_SHARED_LIB='${CC} -shared -Wl,-soname,`basename $@` -o $@'
5818 cf_cv_rm_so_locs=yes
5820 linux*|gnu*|k*bsd*-gnu) #(vi
5821 if test "$DFT_LWR_MODEL" = "shared" ; then
5822 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5823 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5825 if test "$cf_cv_enable_rpath" = yes ; then
5826 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5829 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5830 if test "$cf_cv_shlib_version" = rel; then
5831 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5833 cf_cv_shared_soname='`basename $@`'
5836 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5838 openbsd[2-9].*|mirbsd*) #(vi
5839 if test "$DFT_LWR_MODEL" = "shared" ; then
5840 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5841 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5843 if test "$cf_cv_enable_rpath" = yes ; then
5844 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5846 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5848 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5849 if test "$cf_cv_shlib_version" = rel; then
5850 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5852 cf_cv_shared_soname='`basename $@`'
5855 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5857 nto-qnx*|openbsd*|freebsd[12].*) #(vi
5858 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5859 MK_SHARED_LIB='${LD} -Bshareable -o $@'
5860 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5862 dragonfly*|freebsd*) #(vi
5863 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5864 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
5865 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
5866 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
5867 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5870 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5871 if test "$cf_cv_shlib_version" = rel; then
5872 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5874 cf_cv_shared_soname='`basename $@`'
5877 MK_SHARED_LIB='${LD} -shared -Bshareable -soname=`basename $@` -o $@'
5880 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5881 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
5882 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
5883 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5884 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5885 if test "$cf_cv_shlib_version" = auto; then
5886 if test -f /usr/libexec/ld.elf_so; then
5887 cf_cv_shlib_version=abi
5889 cf_cv_shlib_version=rel
5893 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5894 if test "$cf_cv_shlib_version" = rel; then
5895 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5897 cf_cv_shared_soname='`basename $@`'
5900 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
5902 MK_SHARED_LIB='${LD} -shared -Bshareable -o $@'
5906 # tested with OSF/1 V3.2 and 'cc'
5907 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
5908 # link with shared libs).
5909 MK_SHARED_LIB='${LD} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
5910 case $host_os in #(vi
5912 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
5915 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
5916 if test "$DFT_LWR_MODEL" = "shared" ; then
5917 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5918 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5920 cf_cv_rm_so_locs=yes
5922 sco3.2v5*) # (also uw2* and UW7: hops 13-Apr-98
5923 # tested with osr5.0.5
5924 if test "$GCC" != yes; then
5925 CC_SHARED_OPTS='-belf -KPIC'
5927 MK_SHARED_LIB='${LD} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
5928 if test "$cf_cv_enable_rpath" = yes ; then
5929 # only way is to set LD_RUN_PATH but no switch for it
5932 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5933 LINK_PROGS='LD_RUN_PATH=${libdir}'
5934 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
5937 # tested with SunOS 4.1.1 and gcc 2.7.0
5938 if test "$GCC" != yes; then
5939 CC_SHARED_OPTS='-KPIC'
5941 MK_SHARED_LIB='${LD} -assert pure-text -o $@'
5942 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5945 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
5946 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
5947 if test "$DFT_LWR_MODEL" = "shared" ; then
5948 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
5949 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5951 if test "$cf_cv_enable_rpath" = yes ; then
5952 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
5955 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5956 if test "$cf_cv_shlib_version" = rel; then
5957 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5959 cf_cv_shared_soname='`basename $@`'
5962 if test "$GCC" != yes; then
5963 cf_save_CFLAGS="$CFLAGS"
5964 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
5966 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
5967 cat >conftest.$ac_ext <<_ACEOF
5968 #line 5968 "configure"
5969 #include "confdefs.h"
5979 rm -f conftest.$ac_objext
5980 if { (eval echo "$as_me:5980: \"$ac_compile\"") >&5
5981 (eval $ac_compile) 2>&5
5983 echo "$as_me:5983: \$? = $ac_status" >&5
5984 (exit $ac_status); } &&
5985 { ac_try='test -s conftest.$ac_objext'
5986 { (eval echo "$as_me:5986: \"$ac_try\"") >&5
5989 echo "$as_me:5989: \$? = $ac_status" >&5
5990 (exit $ac_status); }; }; then
5993 echo "$as_me: failed program was:" >&5
5994 cat conftest.$ac_ext >&5
5996 rm -f conftest.$ac_objext conftest.$ac_ext
5998 CFLAGS="$cf_save_CFLAGS"
5999 CC_SHARED_OPTS=$cf_shared_opts
6000 MK_SHARED_LIB='${CC} -dy -G -h '$cf_cv_shared_soname' -o $@'
6002 MK_SHARED_LIB='${CC} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
6005 sysv5uw7*|unix_sv*) #(vi
6006 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
6007 if test "$GCC" != yes; then
6008 CC_SHARED_OPTS='-KPIC'
6010 MK_SHARED_LIB='${LD} -d y -G -o $@'
6013 CC_SHARED_OPTS='unknown'
6014 MK_SHARED_LIB='echo unknown'
6018 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
6019 case "$cf_cv_shlib_version" in #(vi
6021 case "$MK_SHARED_LIB" in #(vi
6023 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
6026 { echo "$as_me:6026: WARNING: ignored --with-shlib-version" >&5
6027 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
6033 # RPATH_LIST is a colon-separated list of directories
6034 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
6035 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
6037 if test "$CC_SHARED_OPTS" = "unknown"; then
6038 for model in $cf_list_models; do
6039 if test "$model" = "shared"; then
6040 { { echo "$as_me:6040: error: Shared libraries are not supported in this version" >&5
6041 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
6042 { (exit 1); exit 1; }; }
6047 ### If we're building with rpath, try to link non-standard libs that way too.
6048 if test "$DFT_LWR_MODEL" = "shared"; then
6050 echo "$as_me:6050: checking if rpath-hack should be disabled" >&5
6051 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
6053 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
6054 if test "${enable_rpath_hack+set}" = set; then
6055 enableval="$enable_rpath_hack"
6056 test "$enableval" != no && enableval=yes
6057 if test "$enableval" != "yes" ; then
6058 cf_disable_rpath_hack=yes
6060 cf_disable_rpath_hack=no
6064 cf_disable_rpath_hack=no
6067 echo "$as_me:6067: result: $cf_disable_rpath_hack" >&5
6068 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
6069 if test "$cf_disable_rpath_hack" = no ; then
6071 echo "$as_me:6071: checking for updated LDFLAGS" >&5
6072 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
6073 if test -n "$LD_RPATH_OPT" ; then
6074 echo "$as_me:6074: result: maybe" >&5
6075 echo "${ECHO_T}maybe" >&6
6079 # Extract the first word of "$ac_prog", so it can be a program name with args.
6080 set dummy $ac_prog; ac_word=$2
6081 echo "$as_me:6081: checking for $ac_word" >&5
6082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6083 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
6086 if test -n "$cf_ldd_prog"; then
6087 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
6089 ac_save_IFS=$IFS; IFS=$ac_path_separator
6091 for ac_dir in $ac_dummy; do
6093 test -z "$ac_dir" && ac_dir=.
6094 $as_executable_p "$ac_dir/$ac_word" || continue
6095 ac_cv_prog_cf_ldd_prog="$ac_prog"
6096 echo "$as_me:6096: found $ac_dir/$ac_word" >&5
6102 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
6103 if test -n "$cf_ldd_prog"; then
6104 echo "$as_me:6104: result: $cf_ldd_prog" >&5
6105 echo "${ECHO_T}$cf_ldd_prog" >&6
6107 echo "$as_me:6107: result: no" >&5
6108 echo "${ECHO_T}no" >&6
6111 test -n "$cf_ldd_prog" && break
6113 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
6115 cf_rpath_list="/usr/lib /lib"
6116 if test "$cf_ldd_prog" != no
6120 cat >conftest.$ac_ext <<_ACEOF
6121 #line 6121 "configure"
6122 #include "confdefs.h"
6132 rm -f conftest.$ac_objext conftest$ac_exeext
6133 if { (eval echo "$as_me:6133: \"$ac_link\"") >&5
6134 (eval $ac_link) 2>&5
6136 echo "$as_me:6136: \$? = $ac_status" >&5
6137 (exit $ac_status); } &&
6138 { ac_try='test -s conftest$ac_exeext'
6139 { (eval echo "$as_me:6139: \"$ac_try\"") >&5
6142 echo "$as_me:6142: \$? = $ac_status" >&5
6143 (exit $ac_status); }; }; then
6144 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort -u`
6145 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort -u`
6147 echo "$as_me: failed program was:" >&5
6148 cat conftest.$ac_ext >&5
6150 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6152 # If we passed the link-test, but get a "not found" on a given library,
6153 # this could be due to inept reconfiguration of gcc to make it only
6154 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
6155 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
6156 # /usr/local libraries.
6157 if test -n "$cf_rpath_oops"
6159 for cf_rpath_src in $cf_rpath_oops
6161 for cf_rpath_dir in \
6166 if test -f $cf_rpath_dir/lib/$cf_rpath_src
6168 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
6170 echo "${as_me:-configure}:6170: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
6172 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
6180 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
6182 echo "${as_me:-configure}:6182: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
6184 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
6186 echo "${as_me:-configure}:6186: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
6189 for cf_rpath_src in $LDFLAGS
6191 case $cf_rpath_src in #(vi
6194 # check if this refers to a directory which we will ignore
6196 if test -n "$cf_rpath_list"
6198 for cf_rpath_item in $cf_rpath_list
6200 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
6208 if test "$cf_rpath_skip" = no
6210 # transform the option
6211 if test "$LD_RPATH_OPT" = "-R " ; then
6212 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
6214 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
6217 # if we have not already added this, add it now
6218 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
6219 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
6221 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
6223 echo "${as_me:-configure}:6223: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
6225 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
6230 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
6232 LDFLAGS=$cf_rpath_dst
6234 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
6236 echo "${as_me:-configure}:6236: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
6238 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
6240 echo "${as_me:-configure}:6240: testing ...checking LIBS $LIBS ..." 1>&5
6243 for cf_rpath_src in $LIBS
6245 case $cf_rpath_src in #(vi
6248 # check if this refers to a directory which we will ignore
6250 if test -n "$cf_rpath_list"
6252 for cf_rpath_item in $cf_rpath_list
6254 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
6262 if test "$cf_rpath_skip" = no
6264 # transform the option
6265 if test "$LD_RPATH_OPT" = "-R " ; then
6266 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
6268 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
6271 # if we have not already added this, add it now
6272 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
6273 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
6275 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
6277 echo "${as_me:-configure}:6277: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
6279 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
6284 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
6288 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
6290 echo "${as_me:-configure}:6290: testing ...checked LIBS $LIBS ..." 1>&5
6292 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
6294 echo "${as_me:-configure}:6294: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
6302 ###############################################################################
6304 ### use option --disable-overwrite to leave out the link to -lcurses
6305 echo "$as_me:6305: checking if you wish to install ncurses overwriting curses" >&5
6306 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
6308 # Check whether --enable-overwrite or --disable-overwrite was given.
6309 if test "${enable_overwrite+set}" = set; then
6310 enableval="$enable_overwrite"
6311 with_overwrite=$enableval
6313 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
6315 echo "$as_me:6315: result: $with_overwrite" >&5
6316 echo "${ECHO_T}$with_overwrite" >&6
6318 echo "$as_me:6318: checking if external terminfo-database is used" >&5
6319 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
6321 # Check whether --enable-database or --disable-database was given.
6322 if test "${enable_database+set}" = set; then
6323 enableval="$enable_database"
6324 use_database=$enableval
6328 echo "$as_me:6328: result: $use_database" >&5
6329 echo "${ECHO_T}$use_database" >&6
6331 case $host_os in #(vi
6333 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
6336 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
6340 if test "$use_database" != no ; then
6341 cat >>confdefs.h <<\EOF
6342 #define USE_DATABASE 1
6345 echo "$as_me:6345: checking which terminfo source-file will be installed" >&5
6346 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
6348 # Check whether --with-database or --without-database was given.
6349 if test "${with_database+set}" = set; then
6350 withval="$with_database"
6351 TERMINFO_SRC=$withval
6353 echo "$as_me:6353: result: $TERMINFO_SRC" >&5
6354 echo "${ECHO_T}$TERMINFO_SRC" >&6
6356 echo "$as_me:6356: checking whether to use hashed database instead of directory/tree" >&5
6357 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
6359 # Check whether --with-hashed-db or --without-hashed-db was given.
6360 if test "${with_hashed_db+set}" = set; then
6361 withval="$with_hashed_db"
6366 echo "$as_me:6366: result: $with_hashed_db" >&5
6367 echo "${ECHO_T}$with_hashed_db" >&6
6372 echo "$as_me:6372: checking for list of fallback descriptions" >&5
6373 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
6375 # Check whether --with-fallbacks or --without-fallbacks was given.
6376 if test "${with_fallbacks+set}" = set; then
6377 withval="$with_fallbacks"
6378 with_fallback=$withval
6382 echo "$as_me:6382: result: $with_fallback" >&5
6383 echo "${ECHO_T}$with_fallback" >&6
6384 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
6386 echo "$as_me:6386: checking if you want modern xterm or antique" >&5
6387 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
6389 # Check whether --with-xterm-new or --without-xterm-new was given.
6390 if test "${with_xterm_new+set}" = set; then
6391 withval="$with_xterm_new"
6392 with_xterm_new=$withval
6396 case $with_xterm_new in
6397 no) with_xterm_new=xterm-old;;
6398 *) with_xterm_new=xterm-new;;
6400 echo "$as_me:6400: result: $with_xterm_new" >&5
6401 echo "${ECHO_T}$with_xterm_new" >&6
6402 WHICH_XTERM=$with_xterm_new
6405 if test "$use_database" = no ; then
6406 TERMINFO="${datadir}/terminfo"
6410 echo "$as_me:6410: checking for list of terminfo directories" >&5
6411 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
6413 case $cf_cv_system_name in
6414 os2*) PATH_SEPARATOR=';' ;;
6415 *) PATH_SEPARATOR=':' ;;
6418 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
6419 if test "${with_terminfo_dirs+set}" = set; then
6420 withval="$with_terminfo_dirs"
6423 withval=${TERMINFO_DIRS:-${datadir}/terminfo}
6425 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
6427 for cf_src_path in $withval
6430 if test "x$prefix" != xNONE; then
6431 cf_path_syntax="$prefix"
6433 cf_path_syntax="$ac_default_prefix"
6436 case ".$cf_src_path" in #(vi
6437 .\$\(*\)*|.\'*\'*) #(vi
6441 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6444 eval cf_src_path="$cf_src_path"
6445 case ".$cf_src_path" in #(vi
6447 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6452 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6455 { { echo "$as_me:6455: error: expected a pathname, not \"$cf_src_path\"" >&5
6456 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
6457 { (exit 1); exit 1; }; }
6461 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
6462 cf_dst_path="${cf_dst_path}${cf_src_path}"
6466 eval 'TERMINFO_DIRS="$cf_dst_path"'
6468 echo "$as_me:6468: result: $TERMINFO_DIRS" >&5
6469 echo "${ECHO_T}$TERMINFO_DIRS" >&6
6470 test -n "$TERMINFO_DIRS" && cat >>confdefs.h <<EOF
6471 #define TERMINFO_DIRS "$TERMINFO_DIRS"
6474 echo "$as_me:6474: checking for default terminfo directory" >&5
6475 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
6477 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
6478 if test "${with_default_terminfo_dir+set}" = set; then
6479 withval="$with_default_terminfo_dir"
6482 withval="${TERMINFO:-${datadir}/terminfo}"
6483 fi; if test -n "${datadir}/terminfo" ; then
6485 if test "x$prefix" != xNONE; then
6486 cf_path_syntax="$prefix"
6488 cf_path_syntax="$ac_default_prefix"
6491 case ".$withval" in #(vi
6492 .\$\(*\)*|.\'*\'*) #(vi
6496 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6499 eval withval="$withval"
6500 case ".$withval" in #(vi
6502 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
6507 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
6510 { { echo "$as_me:6510: error: expected a pathname, not \"$withval\"" >&5
6511 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
6512 { (exit 1); exit 1; }; }
6519 echo "$as_me:6519: result: $TERMINFO" >&5
6520 echo "${ECHO_T}$TERMINFO" >&6
6521 cat >>confdefs.h <<EOF
6522 #define TERMINFO "$TERMINFO"
6527 ### use option --disable-big-core to make tic run on small machines
6528 ### We need 4Mb, check if we can allocate 50% more than that.
6529 echo "$as_me:6529: checking if big-core option selected" >&5
6530 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
6532 # Check whether --enable-big-core or --disable-big-core was given.
6533 if test "${enable_big_core+set}" = set; then
6534 enableval="$enable_big_core"
6535 with_big_core=$enableval
6537 if test "$cross_compiling" = yes; then
6540 cat >conftest.$ac_ext <<_ACEOF
6541 #line 6541 "configure"
6542 #include "confdefs.h"
6547 unsigned long n = 6000000L;
6548 char *s = malloc(n);
6551 ${cf_cv_main_return:-return}(s == 0);
6554 rm -f conftest$ac_exeext
6555 if { (eval echo "$as_me:6555: \"$ac_link\"") >&5
6556 (eval $ac_link) 2>&5
6558 echo "$as_me:6558: \$? = $ac_status" >&5
6559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6560 { (eval echo "$as_me:6560: \"$ac_try\"") >&5
6563 echo "$as_me:6563: \$? = $ac_status" >&5
6564 (exit $ac_status); }; }; then
6567 echo "$as_me: program exited with status $ac_status" >&5
6568 echo "$as_me: failed program was:" >&5
6569 cat conftest.$ac_ext >&5
6572 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6575 echo "$as_me:6575: result: $with_big_core" >&5
6576 echo "${ECHO_T}$with_big_core" >&6
6577 test "$with_big_core" = "yes" && cat >>confdefs.h <<\EOF
6578 #define HAVE_BIG_CORE 1
6581 ### ISO C only guarantees 512-char strings, we have tables which load faster
6582 ### when constructed using "big" strings. More than the C compiler, the awk
6583 ### program is a limit on most vendor UNIX systems. Check that we can build.
6584 echo "$as_me:6584: checking if big-strings option selected" >&5
6585 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
6587 # Check whether --enable-big-strings or --disable-big-strings was given.
6588 if test "${enable_big_strings+set}" = set; then
6589 enableval="$enable_big_strings"
6590 with_big_strings=$enableval
6595 eval with_big_strings=no
6598 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' 2>/dev/null \
6599 | $AWK '{ printf "%d\n", length($0); }' 2>/dev/null | $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
6600 eval with_big_strings=yes
6602 eval with_big_strings=no
6608 echo "$as_me:6608: result: $with_big_strings" >&5
6609 echo "${ECHO_T}$with_big_strings" >&6
6612 test "$with_big_strings" = "yes" && USE_BIG_STRINGS=1
6614 ### use option --enable-termcap to compile in the termcap fallback support
6615 echo "$as_me:6615: checking if you want termcap-fallback support" >&5
6616 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
6618 # Check whether --enable-termcap or --disable-termcap was given.
6619 if test "${enable_termcap+set}" = set; then
6620 enableval="$enable_termcap"
6621 with_termcap=$enableval
6625 echo "$as_me:6625: result: $with_termcap" >&5
6626 echo "${ECHO_T}$with_termcap" >&6
6628 if test "$with_termcap" != "yes" ; then
6629 if test "$use_database" = no ; then
6630 if test -z "$with_fallback" ; then
6631 { { echo "$as_me:6631: error: You have disabled the database w/o specifying fallbacks" >&5
6632 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
6633 { (exit 1); exit 1; }; }
6636 cat >>confdefs.h <<\EOF
6637 #define PURE_TERMINFO 1
6642 if test "$with_ticlib" != no ; then
6643 { { echo "$as_me:6643: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
6644 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
6645 { (exit 1); exit 1; }; }
6648 cat >>confdefs.h <<\EOF
6649 #define USE_TERMCAP 1
6652 echo "$as_me:6652: checking for list of termcap files" >&5
6653 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
6655 # Check whether --with-termpath or --without-termpath was given.
6656 if test "${with_termpath+set}" = set; then
6657 withval="$with_termpath"
6660 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap}
6662 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
6664 for cf_src_path in $withval
6667 if test "x$prefix" != xNONE; then
6668 cf_path_syntax="$prefix"
6670 cf_path_syntax="$ac_default_prefix"
6673 case ".$cf_src_path" in #(vi
6674 .\$\(*\)*|.\'*\'*) #(vi
6678 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6681 eval cf_src_path="$cf_src_path"
6682 case ".$cf_src_path" in #(vi
6684 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6689 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6692 { { echo "$as_me:6692: error: expected a pathname, not \"$cf_src_path\"" >&5
6693 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
6694 { (exit 1); exit 1; }; }
6698 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
6699 cf_dst_path="${cf_dst_path}${cf_src_path}"
6703 eval 'TERMPATH="$cf_dst_path"'
6705 echo "$as_me:6705: result: $TERMPATH" >&5
6706 echo "${ECHO_T}$TERMPATH" >&6
6707 test -n "$TERMPATH" && cat >>confdefs.h <<EOF
6708 #define TERMPATH "$TERMPATH"
6711 ### use option --enable-getcap to use a hacked getcap for reading termcaps
6712 echo "$as_me:6712: checking if fast termcap-loader is needed" >&5
6713 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
6715 # Check whether --enable-getcap or --disable-getcap was given.
6716 if test "${enable_getcap+set}" = set; then
6717 enableval="$enable_getcap"
6718 with_getcap=$enableval
6722 echo "$as_me:6722: result: $with_getcap" >&5
6723 echo "${ECHO_T}$with_getcap" >&6
6724 test "$with_getcap" = "yes" && cat >>confdefs.h <<\EOF
6725 #define USE_GETCAP 1
6728 echo "$as_me:6728: checking if translated termcaps will be cached in ~/.terminfo" >&5
6729 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
6731 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
6732 if test "${enable_getcap_cache+set}" = set; then
6733 enableval="$enable_getcap_cache"
6734 with_getcap_cache=$enableval
6736 with_getcap_cache=no
6738 echo "$as_me:6738: result: $with_getcap_cache" >&5
6739 echo "${ECHO_T}$with_getcap_cache" >&6
6740 test "$with_getcap_cache" = "yes" && cat >>confdefs.h <<\EOF
6741 #define USE_GETCAP_CACHE 1
6746 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
6747 echo "$as_me:6747: checking if ~/.terminfo is wanted" >&5
6748 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
6750 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
6751 if test "${enable_home_terminfo+set}" = set; then
6752 enableval="$enable_home_terminfo"
6753 with_home_terminfo=$enableval
6755 with_home_terminfo=yes
6757 echo "$as_me:6757: result: $with_home_terminfo" >&5
6758 echo "${ECHO_T}$with_home_terminfo" >&6
6759 test "$with_home_terminfo" = "yes" && cat >>confdefs.h <<\EOF
6760 #define USE_HOME_TERMINFO 1
6763 echo "$as_me:6763: checking if you want to use restricted environment when running as root" >&5
6764 echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6
6766 # Check whether --enable-root-environ or --disable-root-environ was given.
6767 if test "${enable_root_environ+set}" = set; then
6768 enableval="$enable_root_environ"
6769 with_root_environ=$enableval
6771 with_root_environ=yes
6773 echo "$as_me:6773: result: $with_root_environ" >&5
6774 echo "${ECHO_T}$with_root_environ" >&6
6775 test "$with_root_environ" = yes && cat >>confdefs.h <<\EOF
6776 #define USE_ROOT_ENVIRON 1
6779 ### Use option --enable-symlinks to make tic use symlinks, not hard links
6780 ### to reduce storage requirements for the terminfo database.
6786 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6787 echo "$as_me:6787: checking for $ac_func" >&5
6788 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6789 if eval "test \"\${$as_ac_var+set}\" = set"; then
6790 echo $ECHO_N "(cached) $ECHO_C" >&6
6792 cat >conftest.$ac_ext <<_ACEOF
6793 #line 6793 "configure"
6794 #include "confdefs.h"
6795 /* System header to define __stub macros and hopefully few prototypes,
6796 which can conflict with char $ac_func (); below. */
6798 /* Override any gcc2 internal prototype to avoid an error. */
6802 /* We use char because int might match the return type of a gcc2
6803 builtin and then its argument prototype would still apply. */
6810 /* The GNU C library defines this for functions which it implements
6811 to always fail with ENOSYS. Some functions are actually named
6812 something starting with __ and the normal name is an alias. */
6813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6823 rm -f conftest.$ac_objext conftest$ac_exeext
6824 if { (eval echo "$as_me:6824: \"$ac_link\"") >&5
6825 (eval $ac_link) 2>&5
6827 echo "$as_me:6827: \$? = $ac_status" >&5
6828 (exit $ac_status); } &&
6829 { ac_try='test -s conftest$ac_exeext'
6830 { (eval echo "$as_me:6830: \"$ac_try\"") >&5
6833 echo "$as_me:6833: \$? = $ac_status" >&5
6834 (exit $ac_status); }; }; then
6835 eval "$as_ac_var=yes"
6837 echo "$as_me: failed program was:" >&5
6838 cat conftest.$ac_ext >&5
6839 eval "$as_ac_var=no"
6841 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6843 echo "$as_me:6843: result: `eval echo '${'$as_ac_var'}'`" >&5
6844 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6845 if test `eval echo '${'$as_ac_var'}'` = yes; then
6846 cat >>confdefs.h <<EOF
6847 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6853 if test "$cross_compiling" = yes ; then
6859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6860 echo "$as_me:6860: checking for $ac_func" >&5
6861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6862 if eval "test \"\${$as_ac_var+set}\" = set"; then
6863 echo $ECHO_N "(cached) $ECHO_C" >&6
6865 cat >conftest.$ac_ext <<_ACEOF
6866 #line 6866 "configure"
6867 #include "confdefs.h"
6868 /* System header to define __stub macros and hopefully few prototypes,
6869 which can conflict with char $ac_func (); below. */
6871 /* Override any gcc2 internal prototype to avoid an error. */
6875 /* We use char because int might match the return type of a gcc2
6876 builtin and then its argument prototype would still apply. */
6883 /* The GNU C library defines this for functions which it implements
6884 to always fail with ENOSYS. Some functions are actually named
6885 something starting with __ and the normal name is an alias. */
6886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6896 rm -f conftest.$ac_objext conftest$ac_exeext
6897 if { (eval echo "$as_me:6897: \"$ac_link\"") >&5
6898 (eval $ac_link) 2>&5
6900 echo "$as_me:6900: \$? = $ac_status" >&5
6901 (exit $ac_status); } &&
6902 { ac_try='test -s conftest$ac_exeext'
6903 { (eval echo "$as_me:6903: \"$ac_try\"") >&5
6906 echo "$as_me:6906: \$? = $ac_status" >&5
6907 (exit $ac_status); }; }; then
6908 eval "$as_ac_var=yes"
6910 echo "$as_me: failed program was:" >&5
6911 cat conftest.$ac_ext >&5
6912 eval "$as_ac_var=no"
6914 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6916 echo "$as_me:6916: result: `eval echo '${'$as_ac_var'}'`" >&5
6917 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6918 if test `eval echo '${'$as_ac_var'}'` = yes; then
6919 cat >>confdefs.h <<EOF
6920 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6927 echo "$as_me:6927: checking if link/symlink functions work" >&5
6928 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
6929 if test "${cf_cv_link_funcs+set}" = set; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
6934 for cf_func in link symlink ; do
6935 if test "$cross_compiling" = yes; then
6937 eval 'ac_cv_func_'$cf_func'=error'
6939 cat >conftest.$ac_ext <<_ACEOF
6940 #line 6940 "configure"
6941 #include "confdefs.h"
6943 #include <sys/types.h>
6944 #include <sys/stat.h>
6945 #ifdef HAVE_UNISTD_H
6951 char *src = "config.log";
6952 char *dst = "conftest.chk";
6957 fail = ($cf_func("config.log", "conftest.chk") < 0)
6958 || (stat(dst, &dst_sb) < 0)
6959 || (dst_sb.st_mtime != src_sb.st_mtime);
6965 ${cf_cv_main_return:-return} (fail);
6969 rm -f conftest$ac_exeext
6970 if { (eval echo "$as_me:6970: \"$ac_link\"") >&5
6971 (eval $ac_link) 2>&5
6973 echo "$as_me:6973: \$? = $ac_status" >&5
6974 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6975 { (eval echo "$as_me:6975: \"$ac_try\"") >&5
6978 echo "$as_me:6978: \$? = $ac_status" >&5
6979 (exit $ac_status); }; }; then
6981 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
6982 eval 'ac_cv_func_'$cf_func'=yes'
6984 echo "$as_me: program exited with status $ac_status" >&5
6985 echo "$as_me: failed program was:" >&5
6986 cat conftest.$ac_ext >&5
6988 eval 'ac_cv_func_'$cf_func'=no'
6990 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6993 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
6996 echo "$as_me:6996: result: $cf_cv_link_funcs" >&5
6997 echo "${ECHO_T}$cf_cv_link_funcs" >&6
6998 test "$ac_cv_func_link" = yes && cat >>confdefs.h <<\EOF
7002 test "$ac_cv_func_symlink" = yes && cat >>confdefs.h <<\EOF
7003 #define HAVE_SYMLINK 1
7011 # soft links (symbolic links) are useful for some systems where hard links do
7012 # not work, or to make it simpler to copy terminfo trees around.
7013 if test "$ac_cv_func_symlink" = yes ; then
7014 echo "$as_me:7014: checking if tic should use symbolic links" >&5
7015 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
7017 # Check whether --enable-symlinks or --disable-symlinks was given.
7018 if test "${enable_symlinks+set}" = set; then
7019 enableval="$enable_symlinks"
7020 with_symlinks=$enableval
7024 echo "$as_me:7024: result: $with_symlinks" >&5
7025 echo "${ECHO_T}$with_symlinks" >&6
7028 # If we have hard links and did not choose to use soft links instead, there is
7029 # no reason to make this choice optional - use the hard links.
7030 if test "$with_symlinks" = no ; then
7031 echo "$as_me:7031: checking if tic should use hard links" >&5
7032 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
7033 if test "$ac_cv_func_link" = yes ; then
7038 echo "$as_me:7038: result: $with_links" >&5
7039 echo "${ECHO_T}$with_links" >&6
7042 test "$with_links" = yes && cat >>confdefs.h <<\EOF
7046 test "$with_symlinks" = yes && cat >>confdefs.h <<\EOF
7047 #define USE_SYMLINKS 1
7050 ### use option --enable-broken-linker to force on use of broken-linker support
7051 echo "$as_me:7051: checking if you want broken-linker support code" >&5
7052 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
7054 # Check whether --enable-broken_linker or --disable-broken_linker was given.
7055 if test "${enable_broken_linker+set}" = set; then
7056 enableval="$enable_broken_linker"
7057 with_broken_linker=$enableval
7059 with_broken_linker=${BROKEN_LINKER:-no}
7061 echo "$as_me:7061: result: $with_broken_linker" >&5
7062 echo "${ECHO_T}$with_broken_linker" >&6
7065 if test "$with_broken_linker" = yes ; then
7066 cat >>confdefs.h <<\EOF
7067 #define BROKEN_LINKER 1
7071 elif test "$DFT_LWR_MODEL" = shared ; then
7072 case $cf_cv_system_name in #(vi
7074 cat >>confdefs.h <<\EOF
7075 #define BROKEN_LINKER 1
7079 test -n "$verbose" && echo " cygwin linker is broken anyway" 1>&6
7081 echo "${as_me:-configure}:7081: testing cygwin linker is broken anyway ..." 1>&5
7087 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
7088 echo "$as_me:7088: checking if tputs should process BSD-style prefix padding" >&5
7089 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
7091 # Check whether --enable-bsdpad or --disable-bsdpad was given.
7092 if test "${enable_bsdpad+set}" = set; then
7093 enableval="$enable_bsdpad"
7094 with_bsdpad=$enableval
7098 echo "$as_me:7098: result: $with_bsdpad" >&5
7099 echo "${ECHO_T}$with_bsdpad" >&6
7100 test "$with_bsdpad" = yes && cat >>confdefs.h <<\EOF
7104 ### use option --enable-widec to turn on use of wide-character support
7113 # Check to define _XOPEN_SOURCE "automatically"
7116 cf_POSIX_C_SOURCE=199506L
7119 case $host_os in #(vi
7121 cf_xopen_source="-D_ALL_SOURCE"
7127 cf_xopen_source="-D_APPLE_C_SOURCE"
7130 cf_xopen_source="-D_DARWIN_C_SOURCE"
7132 freebsd*|dragonfly*) #(vi
7133 # 5.x headers associate
7134 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
7135 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
7136 cf_POSIX_C_SOURCE=200112L
7138 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
7141 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
7144 cf_xopen_source="-D_HPUX_SOURCE"
7147 cf_xopen_source="-D_SGI_SOURCE"
7149 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
7151 echo "$as_me:7151: checking if we must define _GNU_SOURCE" >&5
7152 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
7153 if test "${cf_cv_gnu_source+set}" = set; then
7154 echo $ECHO_N "(cached) $ECHO_C" >&6
7157 cat >conftest.$ac_ext <<_ACEOF
7158 #line 7158 "configure"
7159 #include "confdefs.h"
7160 #include <sys/types.h>
7165 #ifndef _XOPEN_SOURCE
7172 rm -f conftest.$ac_objext
7173 if { (eval echo "$as_me:7173: \"$ac_compile\"") >&5
7174 (eval $ac_compile) 2>&5
7176 echo "$as_me:7176: \$? = $ac_status" >&5
7177 (exit $ac_status); } &&
7178 { ac_try='test -s conftest.$ac_objext'
7179 { (eval echo "$as_me:7179: \"$ac_try\"") >&5
7182 echo "$as_me:7182: \$? = $ac_status" >&5
7183 (exit $ac_status); }; }; then
7186 echo "$as_me: failed program was:" >&5
7187 cat conftest.$ac_ext >&5
7189 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7190 cat >conftest.$ac_ext <<_ACEOF
7191 #line 7191 "configure"
7192 #include "confdefs.h"
7193 #include <sys/types.h>
7198 #ifdef _XOPEN_SOURCE
7205 rm -f conftest.$ac_objext
7206 if { (eval echo "$as_me:7206: \"$ac_compile\"") >&5
7207 (eval $ac_compile) 2>&5
7209 echo "$as_me:7209: \$? = $ac_status" >&5
7210 (exit $ac_status); } &&
7211 { ac_try='test -s conftest.$ac_objext'
7212 { (eval echo "$as_me:7212: \"$ac_try\"") >&5
7215 echo "$as_me:7215: \$? = $ac_status" >&5
7216 (exit $ac_status); }; }; then
7219 echo "$as_me: failed program was:" >&5
7220 cat conftest.$ac_ext >&5
7221 cf_cv_gnu_source=yes
7223 rm -f conftest.$ac_objext conftest.$ac_ext
7227 rm -f conftest.$ac_objext conftest.$ac_ext
7230 echo "$as_me:7230: result: $cf_cv_gnu_source" >&5
7231 echo "${ECHO_T}$cf_cv_gnu_source" >&6
7232 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7236 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
7239 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
7241 cf_save_CFLAGS="$CFLAGS"
7242 cf_save_CPPFLAGS="$CPPFLAGS"
7244 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
7245 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7246 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7248 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
7249 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7250 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7252 echo "$as_me:7252: checking if we should define _POSIX_C_SOURCE" >&5
7253 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
7254 if test "${cf_cv_posix_c_source+set}" = set; then
7255 echo $ECHO_N "(cached) $ECHO_C" >&6
7258 echo "${as_me:-configure}:7258: testing if the symbol is already defined go no further ..." 1>&5
7260 cat >conftest.$ac_ext <<_ACEOF
7261 #line 7261 "configure"
7262 #include "confdefs.h"
7263 #include <sys/types.h>
7268 #ifndef _POSIX_C_SOURCE
7275 rm -f conftest.$ac_objext
7276 if { (eval echo "$as_me:7276: \"$ac_compile\"") >&5
7277 (eval $ac_compile) 2>&5
7279 echo "$as_me:7279: \$? = $ac_status" >&5
7280 (exit $ac_status); } &&
7281 { ac_try='test -s conftest.$ac_objext'
7282 { (eval echo "$as_me:7282: \"$ac_try\"") >&5
7285 echo "$as_me:7285: \$? = $ac_status" >&5
7286 (exit $ac_status); }; }; then
7287 cf_cv_posix_c_source=no
7289 echo "$as_me: failed program was:" >&5
7290 cat conftest.$ac_ext >&5
7291 cf_want_posix_source=no
7292 case .$cf_POSIX_C_SOURCE in #(vi
7294 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7297 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7298 cf_want_posix_source=yes
7301 cf_want_posix_source=yes
7304 if test "$cf_want_posix_source" = yes ; then
7305 cat >conftest.$ac_ext <<_ACEOF
7306 #line 7306 "configure"
7307 #include "confdefs.h"
7308 #include <sys/types.h>
7313 #ifdef _POSIX_SOURCE
7320 rm -f conftest.$ac_objext
7321 if { (eval echo "$as_me:7321: \"$ac_compile\"") >&5
7322 (eval $ac_compile) 2>&5
7324 echo "$as_me:7324: \$? = $ac_status" >&5
7325 (exit $ac_status); } &&
7326 { ac_try='test -s conftest.$ac_objext'
7327 { (eval echo "$as_me:7327: \"$ac_try\"") >&5
7330 echo "$as_me:7330: \$? = $ac_status" >&5
7331 (exit $ac_status); }; }; then
7334 echo "$as_me: failed program was:" >&5
7335 cat conftest.$ac_ext >&5
7336 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
7338 rm -f conftest.$ac_objext conftest.$ac_ext
7341 echo "${as_me:-configure}:7341: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
7343 CFLAGS="$cf_trim_CFLAGS"
7344 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
7346 echo "${as_me:-configure}:7346: testing if the second compile does not leave our definition intact error ..." 1>&5
7348 cat >conftest.$ac_ext <<_ACEOF
7349 #line 7349 "configure"
7350 #include "confdefs.h"
7351 #include <sys/types.h>
7356 #ifndef _POSIX_C_SOURCE
7363 rm -f conftest.$ac_objext
7364 if { (eval echo "$as_me:7364: \"$ac_compile\"") >&5
7365 (eval $ac_compile) 2>&5
7367 echo "$as_me:7367: \$? = $ac_status" >&5
7368 (exit $ac_status); } &&
7369 { ac_try='test -s conftest.$ac_objext'
7370 { (eval echo "$as_me:7370: \"$ac_try\"") >&5
7373 echo "$as_me:7373: \$? = $ac_status" >&5
7374 (exit $ac_status); }; }; then
7377 echo "$as_me: failed program was:" >&5
7378 cat conftest.$ac_ext >&5
7379 cf_cv_posix_c_source=no
7381 rm -f conftest.$ac_objext conftest.$ac_ext
7382 CFLAGS="$cf_save_CFLAGS"
7383 CPPFLAGS="$cf_save_CPPFLAGS"
7386 rm -f conftest.$ac_objext conftest.$ac_ext
7389 echo "$as_me:7389: result: $cf_cv_posix_c_source" >&5
7390 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
7392 if test "$cf_cv_posix_c_source" != no ; then
7393 CFLAGS="$cf_trim_CFLAGS"
7394 CPPFLAGS="$cf_trim_CPPFLAGS"
7399 cf_new_extra_cppflags=
7401 for cf_add_cflags in $cf_cv_posix_c_source
7403 case $cf_fix_cppflags in
7405 case $cf_add_cflags in #(vi
7406 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7407 case $cf_add_cflags in
7409 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7411 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7412 && test -z "${cf_tst_cflags}" \
7413 && cf_fix_cppflags=yes
7415 if test $cf_fix_cppflags = yes ; then
7416 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7418 elif test "${cf_tst_cflags}" = "\"'" ; then
7419 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7425 *$cf_add_cflags) #(vi
7428 case $cf_add_cflags in #(vi
7430 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7432 CPPFLAGS=`echo "$CPPFLAGS" | \
7433 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7434 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7438 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7443 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7448 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7450 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7452 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7453 && test -z "${cf_tst_cflags}" \
7454 && cf_fix_cppflags=no
7459 if test -n "$cf_new_cflags" ; then
7461 CFLAGS="$CFLAGS $cf_new_cflags"
7464 if test -n "$cf_new_cppflags" ; then
7466 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7469 if test -n "$cf_new_extra_cppflags" ; then
7471 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7478 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
7481 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
7485 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
7488 cf_xopen_source="-D_OSF_SOURCE"
7491 cf_xopen_source="-D_QNX_SOURCE"
7494 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
7497 cf_xopen_source="-D__EXTENSIONS__"
7501 echo "$as_me:7501: checking if we should define _XOPEN_SOURCE" >&5
7502 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
7503 if test "${cf_cv_xopen_source+set}" = set; then
7504 echo $ECHO_N "(cached) $ECHO_C" >&6
7507 cat >conftest.$ac_ext <<_ACEOF
7508 #line 7508 "configure"
7509 #include "confdefs.h"
7513 #include <sys/types.h>
7519 #ifndef _XOPEN_SOURCE
7526 rm -f conftest.$ac_objext
7527 if { (eval echo "$as_me:7527: \"$ac_compile\"") >&5
7528 (eval $ac_compile) 2>&5
7530 echo "$as_me:7530: \$? = $ac_status" >&5
7531 (exit $ac_status); } &&
7532 { ac_try='test -s conftest.$ac_objext'
7533 { (eval echo "$as_me:7533: \"$ac_try\"") >&5
7536 echo "$as_me:7536: \$? = $ac_status" >&5
7537 (exit $ac_status); }; }; then
7538 cf_cv_xopen_source=no
7540 echo "$as_me: failed program was:" >&5
7541 cat conftest.$ac_ext >&5
7543 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
7544 cat >conftest.$ac_ext <<_ACEOF
7545 #line 7545 "configure"
7546 #include "confdefs.h"
7550 #include <sys/types.h>
7556 #ifdef _XOPEN_SOURCE
7563 rm -f conftest.$ac_objext
7564 if { (eval echo "$as_me:7564: \"$ac_compile\"") >&5
7565 (eval $ac_compile) 2>&5
7567 echo "$as_me:7567: \$? = $ac_status" >&5
7568 (exit $ac_status); } &&
7569 { ac_try='test -s conftest.$ac_objext'
7570 { (eval echo "$as_me:7570: \"$ac_try\"") >&5
7573 echo "$as_me:7573: \$? = $ac_status" >&5
7574 (exit $ac_status); }; }; then
7575 cf_cv_xopen_source=no
7577 echo "$as_me: failed program was:" >&5
7578 cat conftest.$ac_ext >&5
7579 cf_cv_xopen_source=$cf_XOPEN_SOURCE
7581 rm -f conftest.$ac_objext conftest.$ac_ext
7585 rm -f conftest.$ac_objext conftest.$ac_ext
7588 echo "$as_me:7588: result: $cf_cv_xopen_source" >&5
7589 echo "${ECHO_T}$cf_cv_xopen_source" >&6
7591 if test "$cf_cv_xopen_source" != no ; then
7593 CFLAGS=`echo "$CFLAGS" | \
7594 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7595 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
7597 CPPFLAGS=`echo "$CPPFLAGS" | \
7598 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7599 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
7601 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
7606 cf_new_extra_cppflags=
7608 for cf_add_cflags in $cf_temp_xopen_source
7610 case $cf_fix_cppflags in
7612 case $cf_add_cflags in #(vi
7613 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7614 case $cf_add_cflags in
7616 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7618 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7619 && test -z "${cf_tst_cflags}" \
7620 && cf_fix_cppflags=yes
7622 if test $cf_fix_cppflags = yes ; then
7623 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7625 elif test "${cf_tst_cflags}" = "\"'" ; then
7626 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7632 *$cf_add_cflags) #(vi
7635 case $cf_add_cflags in #(vi
7637 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7639 CPPFLAGS=`echo "$CPPFLAGS" | \
7640 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7641 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7645 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7650 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7655 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7657 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7659 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7660 && test -z "${cf_tst_cflags}" \
7661 && cf_fix_cppflags=no
7666 if test -n "$cf_new_cflags" ; then
7668 CFLAGS="$CFLAGS $cf_new_cflags"
7671 if test -n "$cf_new_cppflags" ; then
7673 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7676 if test -n "$cf_new_extra_cppflags" ; then
7678 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7683 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
7685 cf_save_CFLAGS="$CFLAGS"
7686 cf_save_CPPFLAGS="$CPPFLAGS"
7688 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
7689 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7690 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7692 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
7693 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7694 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7696 echo "$as_me:7696: checking if we should define _POSIX_C_SOURCE" >&5
7697 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
7698 if test "${cf_cv_posix_c_source+set}" = set; then
7699 echo $ECHO_N "(cached) $ECHO_C" >&6
7702 echo "${as_me:-configure}:7702: testing if the symbol is already defined go no further ..." 1>&5
7704 cat >conftest.$ac_ext <<_ACEOF
7705 #line 7705 "configure"
7706 #include "confdefs.h"
7707 #include <sys/types.h>
7712 #ifndef _POSIX_C_SOURCE
7719 rm -f conftest.$ac_objext
7720 if { (eval echo "$as_me:7720: \"$ac_compile\"") >&5
7721 (eval $ac_compile) 2>&5
7723 echo "$as_me:7723: \$? = $ac_status" >&5
7724 (exit $ac_status); } &&
7725 { ac_try='test -s conftest.$ac_objext'
7726 { (eval echo "$as_me:7726: \"$ac_try\"") >&5
7729 echo "$as_me:7729: \$? = $ac_status" >&5
7730 (exit $ac_status); }; }; then
7731 cf_cv_posix_c_source=no
7733 echo "$as_me: failed program was:" >&5
7734 cat conftest.$ac_ext >&5
7735 cf_want_posix_source=no
7736 case .$cf_POSIX_C_SOURCE in #(vi
7738 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7741 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7742 cf_want_posix_source=yes
7745 cf_want_posix_source=yes
7748 if test "$cf_want_posix_source" = yes ; then
7749 cat >conftest.$ac_ext <<_ACEOF
7750 #line 7750 "configure"
7751 #include "confdefs.h"
7752 #include <sys/types.h>
7757 #ifdef _POSIX_SOURCE
7764 rm -f conftest.$ac_objext
7765 if { (eval echo "$as_me:7765: \"$ac_compile\"") >&5
7766 (eval $ac_compile) 2>&5
7768 echo "$as_me:7768: \$? = $ac_status" >&5
7769 (exit $ac_status); } &&
7770 { ac_try='test -s conftest.$ac_objext'
7771 { (eval echo "$as_me:7771: \"$ac_try\"") >&5
7774 echo "$as_me:7774: \$? = $ac_status" >&5
7775 (exit $ac_status); }; }; then
7778 echo "$as_me: failed program was:" >&5
7779 cat conftest.$ac_ext >&5
7780 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
7782 rm -f conftest.$ac_objext conftest.$ac_ext
7785 echo "${as_me:-configure}:7785: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
7787 CFLAGS="$cf_trim_CFLAGS"
7788 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
7790 echo "${as_me:-configure}:7790: testing if the second compile does not leave our definition intact error ..." 1>&5
7792 cat >conftest.$ac_ext <<_ACEOF
7793 #line 7793 "configure"
7794 #include "confdefs.h"
7795 #include <sys/types.h>
7800 #ifndef _POSIX_C_SOURCE
7807 rm -f conftest.$ac_objext
7808 if { (eval echo "$as_me:7808: \"$ac_compile\"") >&5
7809 (eval $ac_compile) 2>&5
7811 echo "$as_me:7811: \$? = $ac_status" >&5
7812 (exit $ac_status); } &&
7813 { ac_try='test -s conftest.$ac_objext'
7814 { (eval echo "$as_me:7814: \"$ac_try\"") >&5
7817 echo "$as_me:7817: \$? = $ac_status" >&5
7818 (exit $ac_status); }; }; then
7821 echo "$as_me: failed program was:" >&5
7822 cat conftest.$ac_ext >&5
7823 cf_cv_posix_c_source=no
7825 rm -f conftest.$ac_objext conftest.$ac_ext
7826 CFLAGS="$cf_save_CFLAGS"
7827 CPPFLAGS="$cf_save_CPPFLAGS"
7830 rm -f conftest.$ac_objext conftest.$ac_ext
7833 echo "$as_me:7833: result: $cf_cv_posix_c_source" >&5
7834 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
7836 if test "$cf_cv_posix_c_source" != no ; then
7837 CFLAGS="$cf_trim_CFLAGS"
7838 CPPFLAGS="$cf_trim_CPPFLAGS"
7843 cf_new_extra_cppflags=
7845 for cf_add_cflags in $cf_cv_posix_c_source
7847 case $cf_fix_cppflags in
7849 case $cf_add_cflags in #(vi
7850 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7851 case $cf_add_cflags in
7853 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7855 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7856 && test -z "${cf_tst_cflags}" \
7857 && cf_fix_cppflags=yes
7859 if test $cf_fix_cppflags = yes ; then
7860 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7862 elif test "${cf_tst_cflags}" = "\"'" ; then
7863 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7869 *$cf_add_cflags) #(vi
7872 case $cf_add_cflags in #(vi
7874 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7876 CPPFLAGS=`echo "$CPPFLAGS" | \
7877 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7878 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7882 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7887 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7892 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7894 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7896 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7897 && test -z "${cf_tst_cflags}" \
7898 && cf_fix_cppflags=no
7903 if test -n "$cf_new_cflags" ; then
7905 CFLAGS="$CFLAGS $cf_new_cflags"
7908 if test -n "$cf_new_cppflags" ; then
7910 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7913 if test -n "$cf_new_extra_cppflags" ; then
7915 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7923 if test -n "$cf_xopen_source" ; then
7928 cf_new_extra_cppflags=
7930 for cf_add_cflags in $cf_xopen_source
7932 case $cf_fix_cppflags in
7934 case $cf_add_cflags in #(vi
7935 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7936 case $cf_add_cflags in
7938 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7940 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7941 && test -z "${cf_tst_cflags}" \
7942 && cf_fix_cppflags=yes
7944 if test $cf_fix_cppflags = yes ; then
7945 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7947 elif test "${cf_tst_cflags}" = "\"'" ; then
7948 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7954 *$cf_add_cflags) #(vi
7957 case $cf_add_cflags in #(vi
7959 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7961 CPPFLAGS=`echo "$CPPFLAGS" | \
7962 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7963 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7967 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7972 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7977 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7979 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7981 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7982 && test -z "${cf_tst_cflags}" \
7983 && cf_fix_cppflags=no
7988 if test -n "$cf_new_cflags" ; then
7990 CFLAGS="$CFLAGS $cf_new_cflags"
7993 if test -n "$cf_new_cppflags" ; then
7995 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7998 if test -n "$cf_new_extra_cppflags" ; then
8000 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8005 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
8006 echo "$as_me:8006: checking if _XOPEN_SOURCE really is set" >&5
8007 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
8008 cat >conftest.$ac_ext <<_ACEOF
8009 #line 8009 "configure"
8010 #include "confdefs.h"
8016 #ifndef _XOPEN_SOURCE
8023 rm -f conftest.$ac_objext
8024 if { (eval echo "$as_me:8024: \"$ac_compile\"") >&5
8025 (eval $ac_compile) 2>&5
8027 echo "$as_me:8027: \$? = $ac_status" >&5
8028 (exit $ac_status); } &&
8029 { ac_try='test -s conftest.$ac_objext'
8030 { (eval echo "$as_me:8030: \"$ac_try\"") >&5
8033 echo "$as_me:8033: \$? = $ac_status" >&5
8034 (exit $ac_status); }; }; then
8035 cf_XOPEN_SOURCE_set=yes
8037 echo "$as_me: failed program was:" >&5
8038 cat conftest.$ac_ext >&5
8039 cf_XOPEN_SOURCE_set=no
8041 rm -f conftest.$ac_objext conftest.$ac_ext
8042 echo "$as_me:8042: result: $cf_XOPEN_SOURCE_set" >&5
8043 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
8044 if test $cf_XOPEN_SOURCE_set = yes
8046 cat >conftest.$ac_ext <<_ACEOF
8047 #line 8047 "configure"
8048 #include "confdefs.h"
8054 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
8061 rm -f conftest.$ac_objext
8062 if { (eval echo "$as_me:8062: \"$ac_compile\"") >&5
8063 (eval $ac_compile) 2>&5
8065 echo "$as_me:8065: \$? = $ac_status" >&5
8066 (exit $ac_status); } &&
8067 { ac_try='test -s conftest.$ac_objext'
8068 { (eval echo "$as_me:8068: \"$ac_try\"") >&5
8071 echo "$as_me:8071: \$? = $ac_status" >&5
8072 (exit $ac_status); }; }; then
8073 cf_XOPEN_SOURCE_set_ok=yes
8075 echo "$as_me: failed program was:" >&5
8076 cat conftest.$ac_ext >&5
8077 cf_XOPEN_SOURCE_set_ok=no
8079 rm -f conftest.$ac_objext conftest.$ac_ext
8080 if test $cf_XOPEN_SOURCE_set_ok = no
8082 { echo "$as_me:8082: WARNING: _XOPEN_SOURCE is lower than requested" >&5
8083 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
8087 echo "$as_me:8087: checking if we should define _XOPEN_SOURCE" >&5
8088 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
8089 if test "${cf_cv_xopen_source+set}" = set; then
8090 echo $ECHO_N "(cached) $ECHO_C" >&6
8093 cat >conftest.$ac_ext <<_ACEOF
8094 #line 8094 "configure"
8095 #include "confdefs.h"
8099 #include <sys/types.h>
8105 #ifndef _XOPEN_SOURCE
8112 rm -f conftest.$ac_objext
8113 if { (eval echo "$as_me:8113: \"$ac_compile\"") >&5
8114 (eval $ac_compile) 2>&5
8116 echo "$as_me:8116: \$? = $ac_status" >&5
8117 (exit $ac_status); } &&
8118 { ac_try='test -s conftest.$ac_objext'
8119 { (eval echo "$as_me:8119: \"$ac_try\"") >&5
8122 echo "$as_me:8122: \$? = $ac_status" >&5
8123 (exit $ac_status); }; }; then
8124 cf_cv_xopen_source=no
8126 echo "$as_me: failed program was:" >&5
8127 cat conftest.$ac_ext >&5
8129 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
8130 cat >conftest.$ac_ext <<_ACEOF
8131 #line 8131 "configure"
8132 #include "confdefs.h"
8136 #include <sys/types.h>
8142 #ifdef _XOPEN_SOURCE
8149 rm -f conftest.$ac_objext
8150 if { (eval echo "$as_me:8150: \"$ac_compile\"") >&5
8151 (eval $ac_compile) 2>&5
8153 echo "$as_me:8153: \$? = $ac_status" >&5
8154 (exit $ac_status); } &&
8155 { ac_try='test -s conftest.$ac_objext'
8156 { (eval echo "$as_me:8156: \"$ac_try\"") >&5
8159 echo "$as_me:8159: \$? = $ac_status" >&5
8160 (exit $ac_status); }; }; then
8161 cf_cv_xopen_source=no
8163 echo "$as_me: failed program was:" >&5
8164 cat conftest.$ac_ext >&5
8165 cf_cv_xopen_source=$cf_XOPEN_SOURCE
8167 rm -f conftest.$ac_objext conftest.$ac_ext
8171 rm -f conftest.$ac_objext conftest.$ac_ext
8174 echo "$as_me:8174: result: $cf_cv_xopen_source" >&5
8175 echo "${ECHO_T}$cf_cv_xopen_source" >&6
8177 if test "$cf_cv_xopen_source" != no ; then
8179 CFLAGS=`echo "$CFLAGS" | \
8180 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8181 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8183 CPPFLAGS=`echo "$CPPFLAGS" | \
8184 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8185 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8187 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
8192 cf_new_extra_cppflags=
8194 for cf_add_cflags in $cf_temp_xopen_source
8196 case $cf_fix_cppflags in
8198 case $cf_add_cflags in #(vi
8199 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
8200 case $cf_add_cflags in
8202 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8204 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8205 && test -z "${cf_tst_cflags}" \
8206 && cf_fix_cppflags=yes
8208 if test $cf_fix_cppflags = yes ; then
8209 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8211 elif test "${cf_tst_cflags}" = "\"'" ; then
8212 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8218 *$cf_add_cflags) #(vi
8221 case $cf_add_cflags in #(vi
8223 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8225 CPPFLAGS=`echo "$CPPFLAGS" | \
8226 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8227 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8231 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8236 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8241 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8243 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8245 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8246 && test -z "${cf_tst_cflags}" \
8247 && cf_fix_cppflags=no
8252 if test -n "$cf_new_cflags" ; then
8254 CFLAGS="$CFLAGS $cf_new_cflags"
8257 if test -n "$cf_new_cppflags" ; then
8259 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8262 if test -n "$cf_new_extra_cppflags" ; then
8264 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8272 # Work around breakage on OS X
8274 echo "$as_me:8274: checking if SIGWINCH is defined" >&5
8275 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
8276 if test "${cf_cv_define_sigwinch+set}" = set; then
8277 echo $ECHO_N "(cached) $ECHO_C" >&6
8280 cat >conftest.$ac_ext <<_ACEOF
8281 #line 8281 "configure"
8282 #include "confdefs.h"
8284 #include <sys/types.h>
8285 #include <sys/signal.h>
8295 rm -f conftest.$ac_objext
8296 if { (eval echo "$as_me:8296: \"$ac_compile\"") >&5
8297 (eval $ac_compile) 2>&5
8299 echo "$as_me:8299: \$? = $ac_status" >&5
8300 (exit $ac_status); } &&
8301 { ac_try='test -s conftest.$ac_objext'
8302 { (eval echo "$as_me:8302: \"$ac_try\"") >&5
8305 echo "$as_me:8305: \$? = $ac_status" >&5
8306 (exit $ac_status); }; }; then
8307 cf_cv_define_sigwinch=yes
8309 echo "$as_me: failed program was:" >&5
8310 cat conftest.$ac_ext >&5
8311 cat >conftest.$ac_ext <<_ACEOF
8312 #line 8312 "configure"
8313 #include "confdefs.h"
8315 #undef _XOPEN_SOURCE
8316 #undef _POSIX_SOURCE
8317 #undef _POSIX_C_SOURCE
8318 #include <sys/types.h>
8319 #include <sys/signal.h>
8329 rm -f conftest.$ac_objext
8330 if { (eval echo "$as_me:8330: \"$ac_compile\"") >&5
8331 (eval $ac_compile) 2>&5
8333 echo "$as_me:8333: \$? = $ac_status" >&5
8334 (exit $ac_status); } &&
8335 { ac_try='test -s conftest.$ac_objext'
8336 { (eval echo "$as_me:8336: \"$ac_try\"") >&5
8339 echo "$as_me:8339: \$? = $ac_status" >&5
8340 (exit $ac_status); }; }; then
8341 cf_cv_define_sigwinch=maybe
8343 echo "$as_me: failed program was:" >&5
8344 cat conftest.$ac_ext >&5
8345 cf_cv_define_sigwinch=no
8347 rm -f conftest.$ac_objext conftest.$ac_ext
8350 rm -f conftest.$ac_objext conftest.$ac_ext
8353 echo "$as_me:8353: result: $cf_cv_define_sigwinch" >&5
8354 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
8356 if test "$cf_cv_define_sigwinch" = maybe ; then
8357 echo "$as_me:8357: checking for actual SIGWINCH definition" >&5
8358 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
8359 if test "${cf_cv_fixup_sigwinch+set}" = set; then
8360 echo $ECHO_N "(cached) $ECHO_C" >&6
8363 cf_cv_fixup_sigwinch=unknown
8365 while test $cf_sigwinch != 1
8367 cat >conftest.$ac_ext <<_ACEOF
8368 #line 8368 "configure"
8369 #include "confdefs.h"
8371 #undef _XOPEN_SOURCE
8372 #undef _POSIX_SOURCE
8373 #undef _POSIX_C_SOURCE
8374 #include <sys/types.h>
8375 #include <sys/signal.h>
8381 #if SIGWINCH != $cf_sigwinch
8389 rm -f conftest.$ac_objext
8390 if { (eval echo "$as_me:8390: \"$ac_compile\"") >&5
8391 (eval $ac_compile) 2>&5
8393 echo "$as_me:8393: \$? = $ac_status" >&5
8394 (exit $ac_status); } &&
8395 { ac_try='test -s conftest.$ac_objext'
8396 { (eval echo "$as_me:8396: \"$ac_try\"") >&5
8399 echo "$as_me:8399: \$? = $ac_status" >&5
8400 (exit $ac_status); }; }; then
8401 cf_cv_fixup_sigwinch=$cf_sigwinch
8404 echo "$as_me: failed program was:" >&5
8405 cat conftest.$ac_ext >&5
8407 rm -f conftest.$ac_objext conftest.$ac_ext
8409 cf_sigwinch=`expr $cf_sigwinch - 1`
8413 echo "$as_me:8413: result: $cf_cv_fixup_sigwinch" >&5
8414 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
8416 if test "$cf_cv_fixup_sigwinch" != unknown ; then
8417 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
8421 # Checks for CODESET support.
8423 echo "$as_me:8423: checking for nl_langinfo and CODESET" >&5
8424 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
8425 if test "${am_cv_langinfo_codeset+set}" = set; then
8426 echo $ECHO_N "(cached) $ECHO_C" >&6
8428 cat >conftest.$ac_ext <<_ACEOF
8429 #line 8429 "configure"
8430 #include "confdefs.h"
8431 #include <langinfo.h>
8435 char* cs = nl_langinfo(CODESET);
8440 rm -f conftest.$ac_objext conftest$ac_exeext
8441 if { (eval echo "$as_me:8441: \"$ac_link\"") >&5
8442 (eval $ac_link) 2>&5
8444 echo "$as_me:8444: \$? = $ac_status" >&5
8445 (exit $ac_status); } &&
8446 { ac_try='test -s conftest$ac_exeext'
8447 { (eval echo "$as_me:8447: \"$ac_try\"") >&5
8450 echo "$as_me:8450: \$? = $ac_status" >&5
8451 (exit $ac_status); }; }; then
8452 am_cv_langinfo_codeset=yes
8454 echo "$as_me: failed program was:" >&5
8455 cat conftest.$ac_ext >&5
8456 am_cv_langinfo_codeset=no
8458 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8461 echo "$as_me:8461: result: $am_cv_langinfo_codeset" >&5
8462 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
8463 if test $am_cv_langinfo_codeset = yes; then
8465 cat >>confdefs.h <<\EOF
8466 #define HAVE_LANGINFO_CODESET 1
8471 # use these variables to work around a defect in gcc's fixincludes.
8475 echo "$as_me:8475: checking if you want wide-character code" >&5
8476 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
8478 # Check whether --enable-widec or --disable-widec was given.
8479 if test "${enable_widec+set}" = set; then
8480 enableval="$enable_widec"
8481 with_widec=$enableval
8485 echo "$as_me:8485: result: $with_widec" >&5
8486 echo "${ECHO_T}$with_widec" >&6
8487 if test "$with_widec" = yes ; then
8488 LIB_SUFFIX="w${LIB_SUFFIX}"
8489 cat >>confdefs.h <<\EOF
8490 #define USE_WIDEC_SUPPORT 1
8493 cat >>confdefs.h <<\EOF
8494 #define NCURSES_WIDECHAR 1
8497 echo "$as_me:8497: checking if wchar.h can be used as is" >&5
8498 echo $ECHO_N "checking if wchar.h can be used as is... $ECHO_C" >&6
8499 if test "${cf_cv_wchar_h_okay+set}" = set; then
8500 echo $ECHO_N "(cached) $ECHO_C" >&6
8503 cat >conftest.$ac_ext <<_ACEOF
8504 #line 8504 "configure"
8505 #include "confdefs.h"
8515 int bar = iswpunct(foo)
8520 rm -f conftest.$ac_objext
8521 if { (eval echo "$as_me:8521: \"$ac_compile\"") >&5
8522 (eval $ac_compile) 2>&5
8524 echo "$as_me:8524: \$? = $ac_status" >&5
8525 (exit $ac_status); } &&
8526 { ac_try='test -s conftest.$ac_objext'
8527 { (eval echo "$as_me:8527: \"$ac_try\"") >&5
8530 echo "$as_me:8530: \$? = $ac_status" >&5
8531 (exit $ac_status); }; }; then
8532 cf_cv_wchar_h_okay=yes
8534 echo "$as_me: failed program was:" >&5
8535 cat conftest.$ac_ext >&5
8536 cf_cv_wchar_h_okay=no
8538 rm -f conftest.$ac_objext conftest.$ac_ext
8540 echo "$as_me:8540: result: $cf_cv_wchar_h_okay" >&5
8541 echo "${ECHO_T}$cf_cv_wchar_h_okay" >&6
8543 if test $cf_cv_wchar_h_okay = no
8546 echo "$as_me:8546: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
8547 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
8548 cat >conftest.$ac_ext <<_ACEOF
8549 #line 8549 "configure"
8550 #include "confdefs.h"
8551 #include <sys/types.h>
8557 #ifndef _XOPEN_SOURCE_EXTENDED
8564 rm -f conftest.$ac_objext
8565 if { (eval echo "$as_me:8565: \"$ac_compile\"") >&5
8566 (eval $ac_compile) 2>&5
8568 echo "$as_me:8568: \$? = $ac_status" >&5
8569 (exit $ac_status); } &&
8570 { ac_try='test -s conftest.$ac_objext'
8571 { (eval echo "$as_me:8571: \"$ac_try\"") >&5
8574 echo "$as_me:8574: \$? = $ac_status" >&5
8575 (exit $ac_status); }; }; then
8578 echo "$as_me: failed program was:" >&5
8579 cat conftest.$ac_ext >&5
8582 rm -f conftest.$ac_objext conftest.$ac_ext
8583 echo "$as_me:8583: result: $cf_result" >&5
8584 echo "${ECHO_T}$cf_result" >&6
8586 if test "$cf_result" = yes ; then
8587 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
8588 elif test "x" != "x" ; then
8589 echo "$as_me:8589: checking checking for compatible value versus " >&5
8590 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
8591 cat >conftest.$ac_ext <<_ACEOF
8592 #line 8592 "configure"
8593 #include "confdefs.h"
8594 #include <sys/types.h>
8600 #if _XOPEN_SOURCE_EXTENDED- < 0
8607 rm -f conftest.$ac_objext
8608 if { (eval echo "$as_me:8608: \"$ac_compile\"") >&5
8609 (eval $ac_compile) 2>&5
8611 echo "$as_me:8611: \$? = $ac_status" >&5
8612 (exit $ac_status); } &&
8613 { ac_try='test -s conftest.$ac_objext'
8614 { (eval echo "$as_me:8614: \"$ac_try\"") >&5
8617 echo "$as_me:8617: \$? = $ac_status" >&5
8618 (exit $ac_status); }; }; then
8621 echo "$as_me: failed program was:" >&5
8622 cat conftest.$ac_ext >&5
8625 rm -f conftest.$ac_objext conftest.$ac_ext
8626 echo "$as_me:8626: result: $cf_result" >&5
8627 echo "${ECHO_T}$cf_result" >&6
8628 if test "$cf_result" = no ; then
8629 # perhaps we can override it - try...
8630 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
8637 NCURSES_CH_T=cchar_t
8639 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
8641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8642 echo "$as_me:8642: checking for $ac_func" >&5
8643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8644 if eval "test \"\${$as_ac_var+set}\" = set"; then
8645 echo $ECHO_N "(cached) $ECHO_C" >&6
8647 cat >conftest.$ac_ext <<_ACEOF
8648 #line 8648 "configure"
8649 #include "confdefs.h"
8650 /* System header to define __stub macros and hopefully few prototypes,
8651 which can conflict with char $ac_func (); below. */
8653 /* Override any gcc2 internal prototype to avoid an error. */
8657 /* We use char because int might match the return type of a gcc2
8658 builtin and then its argument prototype would still apply. */
8665 /* The GNU C library defines this for functions which it implements
8666 to always fail with ENOSYS. Some functions are actually named
8667 something starting with __ and the normal name is an alias. */
8668 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8678 rm -f conftest.$ac_objext conftest$ac_exeext
8679 if { (eval echo "$as_me:8679: \"$ac_link\"") >&5
8680 (eval $ac_link) 2>&5
8682 echo "$as_me:8682: \$? = $ac_status" >&5
8683 (exit $ac_status); } &&
8684 { ac_try='test -s conftest$ac_exeext'
8685 { (eval echo "$as_me:8685: \"$ac_try\"") >&5
8688 echo "$as_me:8688: \$? = $ac_status" >&5
8689 (exit $ac_status); }; }; then
8690 eval "$as_ac_var=yes"
8692 echo "$as_me: failed program was:" >&5
8693 cat conftest.$ac_ext >&5
8694 eval "$as_ac_var=no"
8696 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8698 echo "$as_me:8698: result: `eval echo '${'$as_ac_var'}'`" >&5
8699 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8700 if test `eval echo '${'$as_ac_var'}'` = yes; then
8701 cat >>confdefs.h <<EOF
8702 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8708 if test "$ac_cv_func_putwc" != yes ; then
8710 echo "$as_me:8710: checking for multibyte character support" >&5
8711 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
8712 if test "${cf_cv_utf8_lib+set}" = set; then
8713 echo $ECHO_N "(cached) $ECHO_C" >&6
8716 cf_save_LIBS="$LIBS"
8717 cat >conftest.$ac_ext <<_ACEOF
8718 #line 8718 "configure"
8719 #include "confdefs.h"
8730 rm -f conftest.$ac_objext conftest$ac_exeext
8731 if { (eval echo "$as_me:8731: \"$ac_link\"") >&5
8732 (eval $ac_link) 2>&5
8734 echo "$as_me:8734: \$? = $ac_status" >&5
8735 (exit $ac_status); } &&
8736 { ac_try='test -s conftest$ac_exeext'
8737 { (eval echo "$as_me:8737: \"$ac_try\"") >&5
8740 echo "$as_me:8740: \$? = $ac_status" >&5
8741 (exit $ac_status); }; }; then
8744 echo "$as_me: failed program was:" >&5
8745 cat conftest.$ac_ext >&5
8747 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
8748 # will be set on completion of the AC_TRY_LINK below.
8749 cf_cv_header_path_utf8=
8750 cf_cv_library_path_utf8=
8752 echo "${as_me:-configure}:8752: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
8754 cf_save_LIBS="$LIBS"
8756 cat >conftest.$ac_ext <<_ACEOF
8757 #line 8757 "configure"
8758 #include "confdefs.h"
8760 #include <libutf8.h>
8769 rm -f conftest.$ac_objext conftest$ac_exeext
8770 if { (eval echo "$as_me:8770: \"$ac_link\"") >&5
8771 (eval $ac_link) 2>&5
8773 echo "$as_me:8773: \$? = $ac_status" >&5
8774 (exit $ac_status); } &&
8775 { ac_try='test -s conftest$ac_exeext'
8776 { (eval echo "$as_me:8776: \"$ac_try\"") >&5
8779 echo "$as_me:8779: \$? = $ac_status" >&5
8780 (exit $ac_status); }; }; then
8782 cf_cv_find_linkage_utf8=yes
8783 cf_cv_header_path_utf8=/usr/include
8784 cf_cv_library_path_utf8=/usr/lib
8787 echo "$as_me: failed program was:" >&5
8788 cat conftest.$ac_ext >&5
8790 LIBS="-lutf8 $cf_save_LIBS"
8792 cat >conftest.$ac_ext <<_ACEOF
8793 #line 8793 "configure"
8794 #include "confdefs.h"
8796 #include <libutf8.h>
8805 rm -f conftest.$ac_objext conftest$ac_exeext
8806 if { (eval echo "$as_me:8806: \"$ac_link\"") >&5
8807 (eval $ac_link) 2>&5
8809 echo "$as_me:8809: \$? = $ac_status" >&5
8810 (exit $ac_status); } &&
8811 { ac_try='test -s conftest$ac_exeext'
8812 { (eval echo "$as_me:8812: \"$ac_try\"") >&5
8815 echo "$as_me:8815: \$? = $ac_status" >&5
8816 (exit $ac_status); }; }; then
8818 cf_cv_find_linkage_utf8=yes
8819 cf_cv_header_path_utf8=/usr/include
8820 cf_cv_library_path_utf8=/usr/lib
8821 cf_cv_library_file_utf8="-lutf8"
8824 echo "$as_me: failed program was:" >&5
8825 cat conftest.$ac_ext >&5
8827 cf_cv_find_linkage_utf8=no
8828 LIBS="$cf_save_LIBS"
8830 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
8832 echo "${as_me:-configure}:8832: testing find linkage for utf8 library ..." 1>&5
8834 echo "${as_me:-configure}:8834: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
8836 cf_save_CPPFLAGS="$CPPFLAGS"
8837 cf_test_CPPFLAGS="$CPPFLAGS"
8841 # collect the current set of include-directories from compiler flags
8842 cf_header_path_list=""
8843 if test -n "${CFLAGS}${CPPFLAGS}" ; then
8844 for cf_header_path in $CPPFLAGS $CFLAGS
8846 case $cf_header_path in #(vi
8848 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
8850 test "$cf_header_path" != "NONE" && \
8851 test -d "$cf_header_path" && \
8853 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
8854 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
8855 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
8856 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
8857 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
8858 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
8861 cf_header_path_list="$cf_header_path_list $cf_search"
8867 # add the variations for the package we are looking for
8871 test "/usr" != "$prefix" && \
8873 (test $prefix = NONE || test "/usr" != "$prefix") && {
8874 test -n "$verbose" && echo " ... testing for include-directories under /usr"
8875 test -d /usr/include && cf_search="$cf_search /usr/include"
8876 test -d /usr/include/utf8 && cf_search="$cf_search /usr/include/utf8"
8877 test -d /usr/include/utf8/include && cf_search="$cf_search /usr/include/utf8/include"
8878 test -d /usr/utf8/include && cf_search="$cf_search /usr/utf8/include"
8879 test -d /usr/utf8/include/utf8 && cf_search="$cf_search /usr/utf8/include/utf8"
8882 test "$prefix" != "NONE" && \
8883 test -d "$prefix" && \
8885 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
8886 test -d $prefix/include && cf_search="$cf_search $prefix/include"
8887 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
8888 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
8889 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
8890 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
8893 test "/usr/local" != "$prefix" && \
8894 test -d "/usr/local" && \
8895 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
8896 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
8897 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
8898 test -d /usr/local/include/utf8 && cf_search="$cf_search /usr/local/include/utf8"
8899 test -d /usr/local/include/utf8/include && cf_search="$cf_search /usr/local/include/utf8/include"
8900 test -d /usr/local/utf8/include && cf_search="$cf_search /usr/local/utf8/include"
8901 test -d /usr/local/utf8/include/utf8 && cf_search="$cf_search /usr/local/utf8/include/utf8"
8904 test "/opt" != "$prefix" && \
8906 (test $prefix = NONE || test "/opt" != "$prefix") && {
8907 test -n "$verbose" && echo " ... testing for include-directories under /opt"
8908 test -d /opt/include && cf_search="$cf_search /opt/include"
8909 test -d /opt/include/utf8 && cf_search="$cf_search /opt/include/utf8"
8910 test -d /opt/include/utf8/include && cf_search="$cf_search /opt/include/utf8/include"
8911 test -d /opt/utf8/include && cf_search="$cf_search /opt/utf8/include"
8912 test -d /opt/utf8/include/utf8 && cf_search="$cf_search /opt/utf8/include/utf8"
8915 test "$HOME" != "$prefix" && \
8916 test -d "$HOME" && \
8917 (test $prefix = NONE || test "$HOME" != "$prefix") && {
8918 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
8919 test -d $HOME/include && cf_search="$cf_search $HOME/include"
8920 test -d $HOME/include/utf8 && cf_search="$cf_search $HOME/include/utf8"
8921 test -d $HOME/include/utf8/include && cf_search="$cf_search $HOME/include/utf8/include"
8922 test -d $HOME/utf8/include && cf_search="$cf_search $HOME/utf8/include"
8923 test -d $HOME/utf8/include/utf8 && cf_search="$cf_search $HOME/utf8/include/utf8"
8926 test "$includedir" != NONE && \
8927 test "$includedir" != "/usr/include" && \
8928 test -d "$includedir" && {
8929 test -d $includedir && cf_search="$cf_search $includedir"
8930 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
8933 test "$oldincludedir" != NONE && \
8934 test "$oldincludedir" != "/usr/include" && \
8935 test -d "$oldincludedir" && {
8936 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
8937 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
8940 cf_search="$cf_search $cf_header_path_list"
8942 for cf_cv_header_path_utf8 in $cf_search
8944 if test -d $cf_cv_header_path_utf8 ; then
8945 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
8947 echo "${as_me:-configure}:8947: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
8949 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
8950 cat >conftest.$ac_ext <<_ACEOF
8951 #line 8951 "configure"
8952 #include "confdefs.h"
8954 #include <libutf8.h>
8963 rm -f conftest.$ac_objext
8964 if { (eval echo "$as_me:8964: \"$ac_compile\"") >&5
8965 (eval $ac_compile) 2>&5
8967 echo "$as_me:8967: \$? = $ac_status" >&5
8968 (exit $ac_status); } &&
8969 { ac_try='test -s conftest.$ac_objext'
8970 { (eval echo "$as_me:8970: \"$ac_try\"") >&5
8973 echo "$as_me:8973: \$? = $ac_status" >&5
8974 (exit $ac_status); }; }; then
8976 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
8978 echo "${as_me:-configure}:8978: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
8980 cf_cv_find_linkage_utf8=maybe
8981 cf_test_CPPFLAGS="$CPPFLAGS"
8984 echo "$as_me: failed program was:" >&5
8985 cat conftest.$ac_ext >&5
8987 CPPFLAGS="$cf_save_CPPFLAGS"
8990 rm -f conftest.$ac_objext conftest.$ac_ext
8994 if test "$cf_cv_find_linkage_utf8" = maybe ; then
8996 echo "${as_me:-configure}:8996: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
8998 cf_save_LIBS="$LIBS"
8999 cf_save_LDFLAGS="$LDFLAGS"
9001 if test "$cf_cv_find_linkage_utf8" != yes ; then
9004 cf_library_path_list=""
9005 if test -n "${LDFLAGS}${LIBS}" ; then
9006 for cf_library_path in $LDFLAGS $LIBS
9008 case $cf_library_path in #(vi
9010 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
9012 test "$cf_library_path" != "NONE" && \
9013 test -d "$cf_library_path" && \
9015 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
9016 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
9017 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
9018 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
9019 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
9020 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
9023 cf_library_path_list="$cf_library_path_list $cf_search"
9031 test "/usr" != "$prefix" && \
9033 (test $prefix = NONE || test "/usr" != "$prefix") && {
9034 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
9035 test -d /usr/lib && cf_search="$cf_search /usr/lib"
9036 test -d /usr/lib/utf8 && cf_search="$cf_search /usr/lib/utf8"
9037 test -d /usr/lib/utf8/lib && cf_search="$cf_search /usr/lib/utf8/lib"
9038 test -d /usr/utf8/lib && cf_search="$cf_search /usr/utf8/lib"
9039 test -d /usr/utf8/lib/utf8 && cf_search="$cf_search /usr/utf8/lib/utf8"
9042 test "$prefix" != "NONE" && \
9043 test -d "$prefix" && \
9045 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
9046 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
9047 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
9048 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
9049 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
9050 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
9053 test "/usr/local" != "$prefix" && \
9054 test -d "/usr/local" && \
9055 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
9056 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
9057 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
9058 test -d /usr/local/lib/utf8 && cf_search="$cf_search /usr/local/lib/utf8"
9059 test -d /usr/local/lib/utf8/lib && cf_search="$cf_search /usr/local/lib/utf8/lib"
9060 test -d /usr/local/utf8/lib && cf_search="$cf_search /usr/local/utf8/lib"
9061 test -d /usr/local/utf8/lib/utf8 && cf_search="$cf_search /usr/local/utf8/lib/utf8"
9064 test "/opt" != "$prefix" && \
9066 (test $prefix = NONE || test "/opt" != "$prefix") && {
9067 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
9068 test -d /opt/lib && cf_search="$cf_search /opt/lib"
9069 test -d /opt/lib/utf8 && cf_search="$cf_search /opt/lib/utf8"
9070 test -d /opt/lib/utf8/lib && cf_search="$cf_search /opt/lib/utf8/lib"
9071 test -d /opt/utf8/lib && cf_search="$cf_search /opt/utf8/lib"
9072 test -d /opt/utf8/lib/utf8 && cf_search="$cf_search /opt/utf8/lib/utf8"
9075 test "$HOME" != "$prefix" && \
9076 test -d "$HOME" && \
9077 (test $prefix = NONE || test "$HOME" != "$prefix") && {
9078 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
9079 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
9080 test -d $HOME/lib/utf8 && cf_search="$cf_search $HOME/lib/utf8"
9081 test -d $HOME/lib/utf8/lib && cf_search="$cf_search $HOME/lib/utf8/lib"
9082 test -d $HOME/utf8/lib && cf_search="$cf_search $HOME/utf8/lib"
9083 test -d $HOME/utf8/lib/utf8 && cf_search="$cf_search $HOME/utf8/lib/utf8"
9086 cf_search="$cf_library_path_list $cf_search"
9088 for cf_cv_library_path_utf8 in $cf_search
9090 if test -d $cf_cv_library_path_utf8 ; then
9091 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
9093 echo "${as_me:-configure}:9093: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
9095 CPPFLAGS="$cf_test_CPPFLAGS"
9096 LIBS="-lutf8 $cf_save_LIBS"
9097 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
9098 cat >conftest.$ac_ext <<_ACEOF
9099 #line 9099 "configure"
9100 #include "confdefs.h"
9102 #include <libutf8.h>
9111 rm -f conftest.$ac_objext conftest$ac_exeext
9112 if { (eval echo "$as_me:9112: \"$ac_link\"") >&5
9113 (eval $ac_link) 2>&5
9115 echo "$as_me:9115: \$? = $ac_status" >&5
9116 (exit $ac_status); } &&
9117 { ac_try='test -s conftest$ac_exeext'
9118 { (eval echo "$as_me:9118: \"$ac_try\"") >&5
9121 echo "$as_me:9121: \$? = $ac_status" >&5
9122 (exit $ac_status); }; }; then
9124 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
9126 echo "${as_me:-configure}:9126: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
9128 cf_cv_find_linkage_utf8=yes
9129 cf_cv_library_file_utf8="-lutf8"
9132 echo "$as_me: failed program was:" >&5
9133 cat conftest.$ac_ext >&5
9135 CPPFLAGS="$cf_save_CPPFLAGS"
9136 LIBS="$cf_save_LIBS"
9137 LDFLAGS="$cf_save_LDFLAGS"
9140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9143 CPPFLAGS="$cf_save_CPPFLAGS"
9144 LDFLAGS="$cf_save_LDFLAGS"
9148 cf_cv_find_linkage_utf8=no
9152 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9155 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9157 LIBS="$cf_save_LIBS"
9159 if test "$cf_cv_find_linkage_utf8" = yes ; then
9160 cf_cv_utf8_lib=add-on
9166 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9168 echo "$as_me:9168: result: $cf_cv_utf8_lib" >&5
9169 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
9171 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
9173 if test "$cf_cv_utf8_lib" = "add-on" ; then
9174 cat >>confdefs.h <<\EOF
9175 #define HAVE_LIBUTF8_H 1
9178 if test -n "$cf_cv_header_path_utf8" ; then
9179 for cf_add_incdir in $cf_cv_header_path_utf8
9181 while test $cf_add_incdir != /usr/include
9183 if test -d $cf_add_incdir
9186 if test -n "$CFLAGS$CPPFLAGS" ; then
9187 # a loop is needed to ensure we can add subdirs of existing dirs
9188 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
9189 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
9190 cf_have_incdir=yes; break
9195 if test "$cf_have_incdir" = no ; then
9196 if test "$cf_add_incdir" = /usr/local/include ; then
9197 if test "$GCC" = yes
9199 cf_save_CPPFLAGS=$CPPFLAGS
9200 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9201 cat >conftest.$ac_ext <<_ACEOF
9202 #line 9202 "configure"
9203 #include "confdefs.h"
9213 rm -f conftest.$ac_objext
9214 if { (eval echo "$as_me:9214: \"$ac_compile\"") >&5
9215 (eval $ac_compile) 2>&5
9217 echo "$as_me:9217: \$? = $ac_status" >&5
9218 (exit $ac_status); } &&
9219 { ac_try='test -s conftest.$ac_objext'
9220 { (eval echo "$as_me:9220: \"$ac_try\"") >&5
9223 echo "$as_me:9223: \$? = $ac_status" >&5
9224 (exit $ac_status); }; }; then
9227 echo "$as_me: failed program was:" >&5
9228 cat conftest.$ac_ext >&5
9231 rm -f conftest.$ac_objext conftest.$ac_ext
9232 CPPFLAGS=$cf_save_CPPFLAGS
9237 if test "$cf_have_incdir" = no ; then
9238 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
9240 echo "${as_me:-configure}:9240: testing adding $cf_add_incdir to include-path ..." 1>&5
9242 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9244 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
9245 test "$cf_top_incdir" = "$cf_add_incdir" && break
9246 cf_add_incdir="$cf_top_incdir"
9255 if test -n "$cf_cv_library_path_utf8" ; then
9256 for cf_add_libdir in $cf_cv_library_path_utf8
9258 if test $cf_add_libdir = /usr/lib ; then
9260 elif test -d $cf_add_libdir
9263 if test -n "$LDFLAGS$LIBS" ; then
9264 # a loop is needed to ensure we can add subdirs of existing dirs
9265 for cf_test_libdir in $LDFLAGS $LIBS ; do
9266 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
9267 cf_have_libdir=yes; break
9271 if test "$cf_have_libdir" = no ; then
9272 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
9274 echo "${as_me:-configure}:9274: testing adding $cf_add_libdir to library-path ..." 1>&5
9276 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
9282 LIBS="$cf_cv_library_file_utf8 $LIBS"
9285 if test "$cf_cv_utf8_lib" != no ; then
9290 # This is needed on Tru64 5.0 to declare mbstate_t
9291 echo "$as_me:9291: checking if we must include wchar.h to declare mbstate_t" >&5
9292 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
9293 if test "${cf_cv_mbstate_t+set}" = set; then
9294 echo $ECHO_N "(cached) $ECHO_C" >&6
9297 cat >conftest.$ac_ext <<_ACEOF
9298 #line 9298 "configure"
9299 #include "confdefs.h"
9304 #ifdef HAVE_LIBUTF8_H
9305 #include <libutf8.h>
9315 rm -f conftest.$ac_objext
9316 if { (eval echo "$as_me:9316: \"$ac_compile\"") >&5
9317 (eval $ac_compile) 2>&5
9319 echo "$as_me:9319: \$? = $ac_status" >&5
9320 (exit $ac_status); } &&
9321 { ac_try='test -s conftest.$ac_objext'
9322 { (eval echo "$as_me:9322: \"$ac_try\"") >&5
9325 echo "$as_me:9325: \$? = $ac_status" >&5
9326 (exit $ac_status); }; }; then
9329 echo "$as_me: failed program was:" >&5
9330 cat conftest.$ac_ext >&5
9331 cat >conftest.$ac_ext <<_ACEOF
9332 #line 9332 "configure"
9333 #include "confdefs.h"
9339 #ifdef HAVE_LIBUTF8_H
9340 #include <libutf8.h>
9350 rm -f conftest.$ac_objext
9351 if { (eval echo "$as_me:9351: \"$ac_compile\"") >&5
9352 (eval $ac_compile) 2>&5
9354 echo "$as_me:9354: \$? = $ac_status" >&5
9355 (exit $ac_status); } &&
9356 { ac_try='test -s conftest.$ac_objext'
9357 { (eval echo "$as_me:9357: \"$ac_try\"") >&5
9360 echo "$as_me:9360: \$? = $ac_status" >&5
9361 (exit $ac_status); }; }; then
9364 echo "$as_me: failed program was:" >&5
9365 cat conftest.$ac_ext >&5
9366 cf_cv_mbstate_t=unknown
9368 rm -f conftest.$ac_objext conftest.$ac_ext
9370 rm -f conftest.$ac_objext conftest.$ac_ext
9372 echo "$as_me:9372: result: $cf_cv_mbstate_t" >&5
9373 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
9375 if test "$cf_cv_mbstate_t" = yes ; then
9376 cat >>confdefs.h <<\EOF
9377 #define NEED_WCHAR_H 1
9383 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
9384 if test "$cf_cv_mbstate_t" = unknown ; then
9388 # This is needed on Tru64 5.0 to declare wchar_t
9389 echo "$as_me:9389: checking if we must include wchar.h to declare wchar_t" >&5
9390 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
9391 if test "${cf_cv_wchar_t+set}" = set; then
9392 echo $ECHO_N "(cached) $ECHO_C" >&6
9395 cat >conftest.$ac_ext <<_ACEOF
9396 #line 9396 "configure"
9397 #include "confdefs.h"
9402 #ifdef HAVE_LIBUTF8_H
9403 #include <libutf8.h>
9413 rm -f conftest.$ac_objext
9414 if { (eval echo "$as_me:9414: \"$ac_compile\"") >&5
9415 (eval $ac_compile) 2>&5
9417 echo "$as_me:9417: \$? = $ac_status" >&5
9418 (exit $ac_status); } &&
9419 { ac_try='test -s conftest.$ac_objext'
9420 { (eval echo "$as_me:9420: \"$ac_try\"") >&5
9423 echo "$as_me:9423: \$? = $ac_status" >&5
9424 (exit $ac_status); }; }; then
9427 echo "$as_me: failed program was:" >&5
9428 cat conftest.$ac_ext >&5
9429 cat >conftest.$ac_ext <<_ACEOF
9430 #line 9430 "configure"
9431 #include "confdefs.h"
9437 #ifdef HAVE_LIBUTF8_H
9438 #include <libutf8.h>
9448 rm -f conftest.$ac_objext
9449 if { (eval echo "$as_me:9449: \"$ac_compile\"") >&5
9450 (eval $ac_compile) 2>&5
9452 echo "$as_me:9452: \$? = $ac_status" >&5
9453 (exit $ac_status); } &&
9454 { ac_try='test -s conftest.$ac_objext'
9455 { (eval echo "$as_me:9455: \"$ac_try\"") >&5
9458 echo "$as_me:9458: \$? = $ac_status" >&5
9459 (exit $ac_status); }; }; then
9462 echo "$as_me: failed program was:" >&5
9463 cat conftest.$ac_ext >&5
9464 cf_cv_wchar_t=unknown
9466 rm -f conftest.$ac_objext conftest.$ac_ext
9468 rm -f conftest.$ac_objext conftest.$ac_ext
9470 echo "$as_me:9470: result: $cf_cv_wchar_t" >&5
9471 echo "${ECHO_T}$cf_cv_wchar_t" >&6
9473 if test "$cf_cv_wchar_t" = yes ; then
9474 cat >>confdefs.h <<\EOF
9475 #define NEED_WCHAR_H 1
9481 # if we do not find wchar_t in either place, use substitution to provide a fallback.
9482 if test "$cf_cv_wchar_t" = unknown ; then
9486 # if we find wchar_t in either place, use substitution to provide a fallback.
9487 if test "$cf_cv_wchar_t" != unknown ; then
9488 NCURSES_OK_WCHAR_T=1
9491 # This is needed on Tru64 5.0 to declare wint_t
9492 echo "$as_me:9492: checking if we must include wchar.h to declare wint_t" >&5
9493 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
9494 if test "${cf_cv_wint_t+set}" = set; then
9495 echo $ECHO_N "(cached) $ECHO_C" >&6
9498 cat >conftest.$ac_ext <<_ACEOF
9499 #line 9499 "configure"
9500 #include "confdefs.h"
9505 #ifdef HAVE_LIBUTF8_H
9506 #include <libutf8.h>
9516 rm -f conftest.$ac_objext
9517 if { (eval echo "$as_me:9517: \"$ac_compile\"") >&5
9518 (eval $ac_compile) 2>&5
9520 echo "$as_me:9520: \$? = $ac_status" >&5
9521 (exit $ac_status); } &&
9522 { ac_try='test -s conftest.$ac_objext'
9523 { (eval echo "$as_me:9523: \"$ac_try\"") >&5
9526 echo "$as_me:9526: \$? = $ac_status" >&5
9527 (exit $ac_status); }; }; then
9530 echo "$as_me: failed program was:" >&5
9531 cat conftest.$ac_ext >&5
9532 cat >conftest.$ac_ext <<_ACEOF
9533 #line 9533 "configure"
9534 #include "confdefs.h"
9540 #ifdef HAVE_LIBUTF8_H
9541 #include <libutf8.h>
9551 rm -f conftest.$ac_objext
9552 if { (eval echo "$as_me:9552: \"$ac_compile\"") >&5
9553 (eval $ac_compile) 2>&5
9555 echo "$as_me:9555: \$? = $ac_status" >&5
9556 (exit $ac_status); } &&
9557 { ac_try='test -s conftest.$ac_objext'
9558 { (eval echo "$as_me:9558: \"$ac_try\"") >&5
9561 echo "$as_me:9561: \$? = $ac_status" >&5
9562 (exit $ac_status); }; }; then
9565 echo "$as_me: failed program was:" >&5
9566 cat conftest.$ac_ext >&5
9567 cf_cv_wint_t=unknown
9569 rm -f conftest.$ac_objext conftest.$ac_ext
9571 rm -f conftest.$ac_objext conftest.$ac_ext
9573 echo "$as_me:9573: result: $cf_cv_wint_t" >&5
9574 echo "${ECHO_T}$cf_cv_wint_t" >&6
9576 if test "$cf_cv_wint_t" = yes ; then
9577 cat >>confdefs.h <<\EOF
9578 #define NEED_WCHAR_H 1
9584 # if we do not find wint_t in either place, use substitution to provide a fallback.
9585 if test "$cf_cv_wint_t" = unknown ; then
9589 # if we find wint_t in either place, use substitution to provide a fallback.
9590 if test "$cf_cv_wint_t" != unknown ; then
9594 if test "$NCURSES_MBSTATE_T" != 0; then
9595 cat >>confdefs.h <<\EOF
9596 #define NEED_MBSTATE_T_DEF 1
9602 ### use option --disable-lp64 to allow long chtype
9603 case $cf_cv_abi_version in
9605 default_with_lp64=no
9608 default_with_lp64=yes
9612 echo "$as_me:9612: checking whether to enable _LP64 definition in curses.h" >&5
9613 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
9615 # Check whether --enable-lp64 or --disable-lp64 was given.
9616 if test "${enable_lp64+set}" = set; then
9617 enableval="$enable_lp64"
9618 with_lp64=$enableval
9620 with_lp64=$default_with_lp64
9622 echo "$as_me:9622: result: $with_lp64" >&5
9623 echo "${ECHO_T}$with_lp64" >&6
9625 if test "$with_lp64" = yes ; then
9631 # Check whether --enable-largefile or --disable-largefile was given.
9632 if test "${enable_largefile+set}" = set; then
9633 enableval="$enable_largefile"
9636 if test "$enable_largefile" != no; then
9638 echo "$as_me:9638: checking for special C compiler options needed for large files" >&5
9639 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
9640 if test "${ac_cv_sys_largefile_CC+set}" = set; then
9641 echo $ECHO_N "(cached) $ECHO_C" >&6
9643 ac_cv_sys_largefile_CC=no
9644 if test "$GCC" != yes; then
9647 # IRIX 6.2 and later do not support large files by default,
9648 # so use the C compiler's -n32 option if that helps.
9649 cat >conftest.$ac_ext <<_ACEOF
9650 #line 9650 "configure"
9651 #include "confdefs.h"
9652 #include <sys/types.h>
9653 /* Check that off_t can represent 2**63 - 1 correctly.
9654 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9655 since some C++ compilers masquerading as C compilers
9656 incorrectly reject 9223372036854775807. */
9657 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9658 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9659 && LARGE_OFF_T % 2147483647 == 1)
9669 rm -f conftest.$ac_objext
9670 if { (eval echo "$as_me:9670: \"$ac_compile\"") >&5
9671 (eval $ac_compile) 2>&5
9673 echo "$as_me:9673: \$? = $ac_status" >&5
9674 (exit $ac_status); } &&
9675 { ac_try='test -s conftest.$ac_objext'
9676 { (eval echo "$as_me:9676: \"$ac_try\"") >&5
9679 echo "$as_me:9679: \$? = $ac_status" >&5
9680 (exit $ac_status); }; }; then
9683 echo "$as_me: failed program was:" >&5
9684 cat conftest.$ac_ext >&5
9686 rm -f conftest.$ac_objext
9688 rm -f conftest.$ac_objext
9689 if { (eval echo "$as_me:9689: \"$ac_compile\"") >&5
9690 (eval $ac_compile) 2>&5
9692 echo "$as_me:9692: \$? = $ac_status" >&5
9693 (exit $ac_status); } &&
9694 { ac_try='test -s conftest.$ac_objext'
9695 { (eval echo "$as_me:9695: \"$ac_try\"") >&5
9698 echo "$as_me:9698: \$? = $ac_status" >&5
9699 (exit $ac_status); }; }; then
9700 ac_cv_sys_largefile_CC=' -n32'; break
9702 echo "$as_me: failed program was:" >&5
9703 cat conftest.$ac_ext >&5
9705 rm -f conftest.$ac_objext
9709 rm -f conftest.$ac_ext
9712 echo "$as_me:9712: result: $ac_cv_sys_largefile_CC" >&5
9713 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
9714 if test "$ac_cv_sys_largefile_CC" != no; then
9715 CC=$CC$ac_cv_sys_largefile_CC
9718 echo "$as_me:9718: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9719 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
9720 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9721 echo $ECHO_N "(cached) $ECHO_C" >&6
9724 ac_cv_sys_file_offset_bits=no
9725 cat >conftest.$ac_ext <<_ACEOF
9726 #line 9726 "configure"
9727 #include "confdefs.h"
9728 #include <sys/types.h>
9729 /* Check that off_t can represent 2**63 - 1 correctly.
9730 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9731 since some C++ compilers masquerading as C compilers
9732 incorrectly reject 9223372036854775807. */
9733 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9734 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9735 && LARGE_OFF_T % 2147483647 == 1)
9745 rm -f conftest.$ac_objext
9746 if { (eval echo "$as_me:9746: \"$ac_compile\"") >&5
9747 (eval $ac_compile) 2>&5
9749 echo "$as_me:9749: \$? = $ac_status" >&5
9750 (exit $ac_status); } &&
9751 { ac_try='test -s conftest.$ac_objext'
9752 { (eval echo "$as_me:9752: \"$ac_try\"") >&5
9755 echo "$as_me:9755: \$? = $ac_status" >&5
9756 (exit $ac_status); }; }; then
9759 echo "$as_me: failed program was:" >&5
9760 cat conftest.$ac_ext >&5
9762 rm -f conftest.$ac_objext conftest.$ac_ext
9763 cat >conftest.$ac_ext <<_ACEOF
9764 #line 9764 "configure"
9765 #include "confdefs.h"
9766 #define _FILE_OFFSET_BITS 64
9767 #include <sys/types.h>
9768 /* Check that off_t can represent 2**63 - 1 correctly.
9769 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9770 since some C++ compilers masquerading as C compilers
9771 incorrectly reject 9223372036854775807. */
9772 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9773 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9774 && LARGE_OFF_T % 2147483647 == 1)
9784 rm -f conftest.$ac_objext
9785 if { (eval echo "$as_me:9785: \"$ac_compile\"") >&5
9786 (eval $ac_compile) 2>&5
9788 echo "$as_me:9788: \$? = $ac_status" >&5
9789 (exit $ac_status); } &&
9790 { ac_try='test -s conftest.$ac_objext'
9791 { (eval echo "$as_me:9791: \"$ac_try\"") >&5
9794 echo "$as_me:9794: \$? = $ac_status" >&5
9795 (exit $ac_status); }; }; then
9796 ac_cv_sys_file_offset_bits=64; break
9798 echo "$as_me: failed program was:" >&5
9799 cat conftest.$ac_ext >&5
9801 rm -f conftest.$ac_objext conftest.$ac_ext
9805 echo "$as_me:9805: result: $ac_cv_sys_file_offset_bits" >&5
9806 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9807 if test "$ac_cv_sys_file_offset_bits" != no; then
9809 cat >>confdefs.h <<EOF
9810 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9815 echo "$as_me:9815: checking for _LARGE_FILES value needed for large files" >&5
9816 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
9817 if test "${ac_cv_sys_large_files+set}" = set; then
9818 echo $ECHO_N "(cached) $ECHO_C" >&6
9821 ac_cv_sys_large_files=no
9822 cat >conftest.$ac_ext <<_ACEOF
9823 #line 9823 "configure"
9824 #include "confdefs.h"
9825 #include <sys/types.h>
9826 /* Check that off_t can represent 2**63 - 1 correctly.
9827 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9828 since some C++ compilers masquerading as C compilers
9829 incorrectly reject 9223372036854775807. */
9830 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9831 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9832 && LARGE_OFF_T % 2147483647 == 1)
9842 rm -f conftest.$ac_objext
9843 if { (eval echo "$as_me:9843: \"$ac_compile\"") >&5
9844 (eval $ac_compile) 2>&5
9846 echo "$as_me:9846: \$? = $ac_status" >&5
9847 (exit $ac_status); } &&
9848 { ac_try='test -s conftest.$ac_objext'
9849 { (eval echo "$as_me:9849: \"$ac_try\"") >&5
9852 echo "$as_me:9852: \$? = $ac_status" >&5
9853 (exit $ac_status); }; }; then
9856 echo "$as_me: failed program was:" >&5
9857 cat conftest.$ac_ext >&5
9859 rm -f conftest.$ac_objext conftest.$ac_ext
9860 cat >conftest.$ac_ext <<_ACEOF
9861 #line 9861 "configure"
9862 #include "confdefs.h"
9863 #define _LARGE_FILES 1
9864 #include <sys/types.h>
9865 /* Check that off_t can represent 2**63 - 1 correctly.
9866 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9867 since some C++ compilers masquerading as C compilers
9868 incorrectly reject 9223372036854775807. */
9869 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9870 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9871 && LARGE_OFF_T % 2147483647 == 1)
9881 rm -f conftest.$ac_objext
9882 if { (eval echo "$as_me:9882: \"$ac_compile\"") >&5
9883 (eval $ac_compile) 2>&5
9885 echo "$as_me:9885: \$? = $ac_status" >&5
9886 (exit $ac_status); } &&
9887 { ac_try='test -s conftest.$ac_objext'
9888 { (eval echo "$as_me:9888: \"$ac_try\"") >&5
9891 echo "$as_me:9891: \$? = $ac_status" >&5
9892 (exit $ac_status); }; }; then
9893 ac_cv_sys_large_files=1; break
9895 echo "$as_me: failed program was:" >&5
9896 cat conftest.$ac_ext >&5
9898 rm -f conftest.$ac_objext conftest.$ac_ext
9902 echo "$as_me:9902: result: $ac_cv_sys_large_files" >&5
9903 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9904 if test "$ac_cv_sys_large_files" != no; then
9906 cat >>confdefs.h <<EOF
9907 #define _LARGE_FILES $ac_cv_sys_large_files
9914 if test "$enable_largefile" != no ; then
9915 echo "$as_me:9915: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9916 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
9917 if test "${ac_cv_sys_largefile_source+set}" = set; then
9918 echo $ECHO_N "(cached) $ECHO_C" >&6
9921 ac_cv_sys_largefile_source=no
9922 cat >conftest.$ac_ext <<_ACEOF
9923 #line 9923 "configure"
9924 #include "confdefs.h"
9934 rm -f conftest.$ac_objext
9935 if { (eval echo "$as_me:9935: \"$ac_compile\"") >&5
9936 (eval $ac_compile) 2>&5
9938 echo "$as_me:9938: \$? = $ac_status" >&5
9939 (exit $ac_status); } &&
9940 { ac_try='test -s conftest.$ac_objext'
9941 { (eval echo "$as_me:9941: \"$ac_try\"") >&5
9944 echo "$as_me:9944: \$? = $ac_status" >&5
9945 (exit $ac_status); }; }; then
9948 echo "$as_me: failed program was:" >&5
9949 cat conftest.$ac_ext >&5
9951 rm -f conftest.$ac_objext conftest.$ac_ext
9952 cat >conftest.$ac_ext <<_ACEOF
9953 #line 9953 "configure"
9954 #include "confdefs.h"
9955 #define _LARGEFILE_SOURCE 1
9965 rm -f conftest.$ac_objext
9966 if { (eval echo "$as_me:9966: \"$ac_compile\"") >&5
9967 (eval $ac_compile) 2>&5
9969 echo "$as_me:9969: \$? = $ac_status" >&5
9970 (exit $ac_status); } &&
9971 { ac_try='test -s conftest.$ac_objext'
9972 { (eval echo "$as_me:9972: \"$ac_try\"") >&5
9975 echo "$as_me:9975: \$? = $ac_status" >&5
9976 (exit $ac_status); }; }; then
9977 ac_cv_sys_largefile_source=1; break
9979 echo "$as_me: failed program was:" >&5
9980 cat conftest.$ac_ext >&5
9982 rm -f conftest.$ac_objext conftest.$ac_ext
9986 echo "$as_me:9986: result: $ac_cv_sys_largefile_source" >&5
9987 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9988 if test "$ac_cv_sys_largefile_source" != no; then
9990 cat >>confdefs.h <<EOF
9991 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9997 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9998 # in glibc 2.1.3, but that breaks too many other things.
9999 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10000 echo "$as_me:10000: checking for fseeko" >&5
10001 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
10002 if test "${ac_cv_func_fseeko+set}" = set; then
10003 echo $ECHO_N "(cached) $ECHO_C" >&6
10005 cat >conftest.$ac_ext <<_ACEOF
10006 #line 10006 "configure"
10007 #include "confdefs.h"
10012 return fseeko && fseeko (stdin, 0, 0);
10017 rm -f conftest.$ac_objext conftest$ac_exeext
10018 if { (eval echo "$as_me:10018: \"$ac_link\"") >&5
10019 (eval $ac_link) 2>&5
10021 echo "$as_me:10021: \$? = $ac_status" >&5
10022 (exit $ac_status); } &&
10023 { ac_try='test -s conftest$ac_exeext'
10024 { (eval echo "$as_me:10024: \"$ac_try\"") >&5
10025 (eval $ac_try) 2>&5
10027 echo "$as_me:10027: \$? = $ac_status" >&5
10028 (exit $ac_status); }; }; then
10029 ac_cv_func_fseeko=yes
10031 echo "$as_me: failed program was:" >&5
10032 cat conftest.$ac_ext >&5
10033 ac_cv_func_fseeko=no
10035 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10037 echo "$as_me:10037: result: $ac_cv_func_fseeko" >&5
10038 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
10039 if test $ac_cv_func_fseeko = yes; then
10041 cat >>confdefs.h <<\EOF
10042 #define HAVE_FSEEKO 1
10047 # Normally we would collect these definitions in the config.h,
10048 # but (like _XOPEN_SOURCE), some environments rely on having these
10049 # defined before any of the system headers are included. Another
10050 # case comes up with C++, e.g., on AIX the compiler compiles the
10051 # header files by themselves before looking at the body files it is
10052 # told to compile. For ncurses, those header files do not include
10054 test "$ac_cv_sys_large_files" != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
10055 test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE "
10056 test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits "
10058 echo "$as_me:10058: checking whether to use struct dirent64" >&5
10059 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
10060 if test "${cf_cv_struct_dirent64+set}" = set; then
10061 echo $ECHO_N "(cached) $ECHO_C" >&6
10064 cat >conftest.$ac_ext <<_ACEOF
10065 #line 10065 "configure"
10066 #include "confdefs.h"
10068 #include <sys/types.h>
10069 #include <dirent.h>
10075 /* if transitional largefile support is setup, this is true */
10076 extern struct dirent64 * readdir(DIR *);
10077 struct dirent64 *x = readdir((DIR *)0);
10078 struct dirent *y = readdir((DIR *)0);
10085 rm -f conftest.$ac_objext
10086 if { (eval echo "$as_me:10086: \"$ac_compile\"") >&5
10087 (eval $ac_compile) 2>&5
10089 echo "$as_me:10089: \$? = $ac_status" >&5
10090 (exit $ac_status); } &&
10091 { ac_try='test -s conftest.$ac_objext'
10092 { (eval echo "$as_me:10092: \"$ac_try\"") >&5
10093 (eval $ac_try) 2>&5
10095 echo "$as_me:10095: \$? = $ac_status" >&5
10096 (exit $ac_status); }; }; then
10097 cf_cv_struct_dirent64=yes
10099 echo "$as_me: failed program was:" >&5
10100 cat conftest.$ac_ext >&5
10101 cf_cv_struct_dirent64=no
10103 rm -f conftest.$ac_objext conftest.$ac_ext
10106 echo "$as_me:10106: result: $cf_cv_struct_dirent64" >&5
10107 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
10108 test "$cf_cv_struct_dirent64" = yes && cat >>confdefs.h <<\EOF
10109 #define HAVE_STRUCT_DIRENT64 1
10114 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
10115 echo "$as_me:10115: checking if you want tparm not to use X/Open fixed-parameter list" >&5
10116 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
10118 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
10119 if test "${enable_tparm_varargs+set}" = set; then
10120 enableval="$enable_tparm_varargs"
10121 with_tparm_varargs=$enableval
10123 with_tparm_varargs=yes
10125 echo "$as_me:10125: result: $with_tparm_varargs" >&5
10126 echo "${ECHO_T}$with_tparm_varargs" >&6
10127 NCURSES_TPARM_VARARGS=0
10128 test "$with_tparm_varargs" = yes && NCURSES_TPARM_VARARGS=1
10130 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
10131 if test "$with_ticlib" != no ; then
10132 echo "$as_me:10132: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
10133 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
10135 # Check whether --enable-tic-depends or --disable-tic-depends was given.
10136 if test "${enable_tic_depends+set}" = set; then
10137 enableval="$enable_tic_depends"
10138 with_tic_depends=$enableval
10140 with_tic_depends=yes
10142 echo "$as_me:10142: result: $with_tic_depends" >&5
10143 echo "${ECHO_T}$with_tic_depends" >&6
10145 with_tic_depends=no
10148 ### use option --with-bool to override bool's type
10149 echo "$as_me:10149: checking for type of bool" >&5
10150 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
10152 # Check whether --with-bool or --without-bool was given.
10153 if test "${with_bool+set}" = set; then
10154 withval="$with_bool"
10155 NCURSES_BOOL="$withval"
10159 echo "$as_me:10159: result: $NCURSES_BOOL" >&5
10160 echo "${ECHO_T}$NCURSES_BOOL" >&6
10162 echo "$as_me:10162: checking for alternate terminal capabilities file" >&5
10163 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
10165 # Check whether --with-caps or --without-caps was given.
10166 if test "${with_caps+set}" = set; then
10167 withval="$with_caps"
10168 TERMINFO_CAPS=Caps.$withval
10172 test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
10173 echo "$as_me:10173: result: $TERMINFO_CAPS" >&5
10174 echo "${ECHO_T}$TERMINFO_CAPS" >&6
10176 ### use option --with-chtype to override chtype's type
10177 echo "$as_me:10177: checking for type of chtype" >&5
10178 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
10180 # Check whether --with-chtype or --without-chtype was given.
10181 if test "${with_chtype+set}" = set; then
10182 withval="$with_chtype"
10183 NCURSES_CHTYPE="$withval"
10185 NCURSES_CHTYPE=auto
10187 echo "$as_me:10187: result: $NCURSES_CHTYPE" >&5
10188 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
10190 ### use option --with-ospeed to override ospeed's type
10191 echo "$as_me:10191: checking for type of ospeed" >&5
10192 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
10194 # Check whether --with-ospeed or --without-ospeed was given.
10195 if test "${with_ospeed+set}" = set; then
10196 withval="$with_ospeed"
10197 NCURSES_OSPEED="$withval"
10199 NCURSES_OSPEED=short
10201 echo "$as_me:10201: result: $NCURSES_OSPEED" >&5
10202 echo "${ECHO_T}$NCURSES_OSPEED" >&6
10204 ### use option --with-mmask-t to override mmask_t's type
10205 echo "$as_me:10205: checking for type of mmask_t" >&5
10206 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
10208 # Check whether --with-mmask-t or --without-mmask-t was given.
10209 if test "${with_mmask_t+set}" = set; then
10210 withval="$with_mmask_t"
10211 NCURSES_MMASK_T="$withval"
10213 NCURSES_MMASK_T=auto
10215 echo "$as_me:10215: result: $NCURSES_MMASK_T" >&5
10216 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
10218 ### use option --with-ccharw-max to override CCHARW_MAX size
10219 echo "$as_me:10219: checking for size CCHARW_MAX" >&5
10220 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
10222 # Check whether --with-ccharw-max or --without-ccharw-max was given.
10223 if test "${with_ccharw_max+set}" = set; then
10224 withval="$with_ccharw_max"
10225 NCURSES_CCHARW_MAX="$withval"
10227 NCURSES_CCHARW_MAX=5
10229 echo "$as_me:10229: result: $NCURSES_CCHARW_MAX" >&5
10230 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
10232 ### Enable compiling-in rcs id's
10233 echo "$as_me:10233: checking if RCS identifiers should be compiled-in" >&5
10234 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
10236 # Check whether --with-rcs-ids or --without-rcs-ids was given.
10237 if test "${with_rcs_ids+set}" = set; then
10238 withval="$with_rcs_ids"
10239 with_rcs_ids=$withval
10243 echo "$as_me:10243: result: $with_rcs_ids" >&5
10244 echo "${ECHO_T}$with_rcs_ids" >&6
10245 test "$with_rcs_ids" = yes && cat >>confdefs.h <<\EOF
10246 #define USE_RCS_IDS 1
10249 ###############################################################################
10251 echo "$as_me:10251: checking format of man-pages" >&5
10252 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
10254 # Check whether --with-manpage-format or --without-manpage-format was given.
10255 if test "${with_manpage_format+set}" = set; then
10256 withval="$with_manpage_format"
10257 MANPAGE_FORMAT=$withval
10259 MANPAGE_FORMAT=unknown
10262 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
10263 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
10267 case $MANPAGE_FORMAT in
10269 if test -z "$MANPATH" ; then
10270 MANPATH="/usr/man:/usr/share/man"
10273 # look for the 'date' man-page (it's most likely to be installed!)
10279 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
10280 for cf_dir in $MANPATH; do
10281 test -z "$cf_dir" && cf_dir=/usr/man
10282 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
10284 cf_test=`echo $cf_name | sed -e 's/*//'`
10285 if test "x$cf_test" = "x$cf_name" ; then
10288 *.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
10289 *.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
10290 *.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
10291 *) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
10305 # if we found a match in either man* or cat*, stop looking
10306 if test -n "$MANPAGE_FORMAT" ; then
10308 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
10309 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
10315 test $cf_found=yes && break
10318 # only check the first directory in $MANPATH where we find manpages
10319 if test -n "$MANPAGE_FORMAT" ; then
10323 # if we did not find the example, just assume it is normal
10324 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
10328 for cf_option in $MANPAGE_FORMAT; do
10329 case $cf_option in #(vi
10330 gzip|compress|BSDI|normal|formatted|catonly)
10333 cf_unknown="$cf_unknown $cf_option"
10340 echo "$as_me:10340: result: $MANPAGE_FORMAT" >&5
10341 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
10342 if test -n "$cf_unknown" ; then
10343 { echo "$as_me:10343: WARNING: Unexpected manpage-format $cf_unknown" >&5
10344 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
10347 echo "$as_me:10347: checking for manpage renaming" >&5
10348 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
10350 # Check whether --with-manpage-renames or --without-manpage-renames was given.
10351 if test "${with_manpage_renames+set}" = set; then
10352 withval="$with_manpage_renames"
10353 MANPAGE_RENAMES=$withval
10355 MANPAGE_RENAMES=yes
10358 case ".$MANPAGE_RENAMES" in #(vi
10362 # Debian 'man' program?
10363 if test -f /etc/debian_version ; then
10364 MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
10371 if test "$MANPAGE_RENAMES" != no ; then
10372 if test -f $srcdir/man/$MANPAGE_RENAMES ; then
10373 MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
10374 elif test ! -f $MANPAGE_RENAMES ; then
10375 { { echo "$as_me:10375: error: not a filename: $MANPAGE_RENAMES" >&5
10376 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
10377 { (exit 1); exit 1; }; }
10380 test ! -d man && mkdir man
10382 # Construct a sed-script to perform renaming within man-pages
10383 if test -n "$MANPAGE_RENAMES" ; then
10384 test ! -d man && mkdir man
10385 sh $srcdir/man/make_sed.sh $MANPAGE_RENAMES >./edit_man.sed
10389 echo "$as_me:10389: result: $MANPAGE_RENAMES" >&5
10390 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
10392 echo "$as_me:10392: checking if manpage aliases will be installed" >&5
10393 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
10395 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
10396 if test "${with_manpage_aliases+set}" = set; then
10397 withval="$with_manpage_aliases"
10398 MANPAGE_ALIASES=$withval
10400 MANPAGE_ALIASES=yes
10403 echo "$as_me:10403: result: $MANPAGE_ALIASES" >&5
10404 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
10406 case "x$LN_S" in #(vi
10408 cf_use_symlinks=yes
10415 MANPAGE_SYMLINKS=no
10416 if test "$MANPAGE_ALIASES" = yes ; then
10417 echo "$as_me:10417: checking if manpage symlinks should be used" >&5
10418 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
10420 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
10421 if test "${with_manpage_symlinks+set}" = set; then
10422 withval="$with_manpage_symlinks"
10423 MANPAGE_SYMLINKS=$withval
10425 MANPAGE_SYMLINKS=$cf_use_symlinks
10428 if test "$$cf_use_symlinks" = no; then
10429 if test "$MANPAGE_SYMLINKS" = yes ; then
10430 { echo "$as_me:10430: WARNING: cannot make symlinks" >&5
10431 echo "$as_me: WARNING: cannot make symlinks" >&2;}
10432 MANPAGE_SYMLINKS=no
10436 echo "$as_me:10436: result: $MANPAGE_SYMLINKS" >&5
10437 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
10440 echo "$as_me:10440: checking for manpage tbl" >&5
10441 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
10443 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
10444 if test "${with_manpage_tbl+set}" = set; then
10445 withval="$with_manpage_tbl"
10446 MANPAGE_TBL=$withval
10451 echo "$as_me:10451: result: $MANPAGE_TBL" >&5
10452 echo "${ECHO_T}$MANPAGE_TBL" >&6
10454 if test "$prefix" = "NONE" ; then
10455 cf_prefix="$ac_default_prefix"
10457 cf_prefix="$prefix"
10460 case "$MANPAGE_FORMAT" in # (vi
10475 test ! -d man && mkdir man
10479 case "$MANPAGE_FORMAT" in #(vi
10482 cf_compress=compress
10490 cf_edit_man=./edit_man.sh
10491 cf_man_alias=`pwd`/man_alias.sed
10493 cat >$cf_edit_man <<CF_EOF
10495 # this script is generated by the configure-script CF_MAN_PAGES macro.
10497 prefix="$cf_prefix"
10500 NCURSES_MAJOR="$NCURSES_MAJOR"
10501 NCURSES_MINOR="$NCURSES_MINOR"
10502 NCURSES_PATCH="$NCURSES_PATCH"
10504 NCURSES_OSPEED="$NCURSES_OSPEED"
10505 TERMINFO="$TERMINFO"
10508 INSTALL_DATA="$INSTALL_DATA"
10510 transform="$program_transform_name"
10512 TMP=\${TMPDIR:=/tmp}/man\$\$
10513 trap "rm -f \$TMP" 0 1 2 5 15
10525 top_srcdir=\$srcdir/..
10528 if test "\$form" = normal ; then
10529 if test "$cf_format" = yes ; then
10530 if test "$cf_inboth" = no ; then
10531 sh \$0 format \$verb \$mandir \$srcdir \$*
10535 cf_subdir=\$mandir/man
10536 cf_tables=$MANPAGE_TBL
10538 cf_subdir=\$mandir/cat
10542 # process the list of source-files
10545 *.orig|*.rej) ;; #(vi
10547 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
10548 if test \$verb = installing ; then
10549 if test ! -d \$cf_subdir\${section} ; then
10550 mkdir -p \$cf_subdir\$section
10554 # replace variables in man page
10555 if test ! -f $cf_man_alias ; then
10556 cat >>$cf_man_alias <<-CF_EOF2
10557 s,@DATADIR@,\$datadir,g
10558 s,@TERMINFO@,\$TERMINFO,g
10559 s,@NCURSES_MAJOR@,\$NCURSES_MAJOR,g
10560 s,@NCURSES_MINOR@,\$NCURSES_MINOR,g
10561 s,@NCURSES_PATCH@,\$NCURSES_PATCH,g
10562 s,@NCURSES_OSPEED@,\$NCURSES_OSPEED,g
10565 for cf_name in captoinfo clear infocmp infotocap tabs tic toe tput tset
10567 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
10568 cf_name=`echo $cf_name|sed "$program_transform_name"`
10569 cat >>$cf_edit_man <<-CF_EOF
10570 s,@$cf_NAME@,$cf_name,g
10574 cat >>$cf_edit_man <<CF_EOF
10576 echo "...made $cf_man_alias"
10580 cf_source=\`basename \$i\`
10581 inalias=\$cf_source
10582 test ! -f \$inalias && inalias="\$srcdir/\$inalias"
10583 if test ! -f \$inalias ; then
10584 echo .. skipped \$cf_source
10589 if test "$MANPAGE_ALIASES" != no ; then
10590 cat >>$cf_edit_man <<CF_EOF
10592 test $with_curses_h = yes && nCurses=ncurses.3x
10593 aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u; test \$inalias = \$nCurses && echo curses\`
10597 if test "$MANPAGE_RENAMES" = no ; then
10598 cat >>$cf_edit_man <<CF_EOF
10599 # perform program transformations for section 1 man pages
10600 if test \$section = 1 ; then
10601 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
10603 cf_target=\$cf_subdir\${section}/\$cf_source
10607 cat >>$cf_edit_man <<CF_EOF
10608 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
10609 if test -z "\$cf_target" ; then
10610 echo '? missing rename for '\$cf_source
10611 cf_target="\$cf_source"
10613 cf_target="\$cf_subdir\${section}/\${cf_target}"
10618 cat >>$cf_edit_man <<CF_EOF
10619 sed -f $cf_man_alias \\
10622 if test -f $MANPAGE_RENAMES ; then
10623 cat >>$cf_edit_man <<CF_EOF
10624 < \$i | sed -f `pwd`/edit_man.sed >\$TMP
10627 cat >>$cf_edit_man <<CF_EOF
10632 cat >>$cf_edit_man <<CF_EOF
10633 if test \$cf_tables = yes ; then
10634 tbl \$TMP >\$TMP.out
10639 if test $with_overwrite != yes ; then
10640 cat >>$cf_edit_man <<CF_EOF
10641 sed -e "/\#[ ]*include/s,<curses.h,<ncurses$LIB_SUFFIX/curses.h," < \$TMP >\$TMP.out
10646 if test $with_curses_h != yes ; then
10647 cat >>$cf_edit_man <<CF_EOF
10648 sed -e "/\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
10653 cat >>$cf_edit_man <<CF_EOF
10654 if test \$form = format ; then
10655 nroff -man \$TMP >\$TMP.out
10660 if test -n "$cf_compress" ; then
10661 cat >>$cf_edit_man <<CF_EOF
10662 if test \$verb = installing ; then
10663 if ( $cf_compress -f \$TMP )
10665 mv \$TMP.$cf_so_strip \$TMP
10668 cf_target="\$cf_target.$cf_so_strip"
10672 case "$MANPAGE_FORMAT" in #(vi
10674 cat >>$cf_edit_man <<CF_EOF
10675 if test \$form = format ; then
10676 # BSDI installs only .0 suffixes in the cat directories
10677 cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
10683 cat >>$cf_edit_man <<CF_EOF
10684 suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\`
10685 if test \$verb = installing ; then
10686 echo \$verb \$cf_target
10687 \$INSTALL_DATA \$TMP \$cf_target
10688 test -d \$cf_subdir\${section} &&
10689 test -n "\$aliases" && (
10690 cd \$cf_subdir\${section} && (
10691 cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
10692 test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
10693 cf_target=\`basename \$cf_target\`
10694 for cf_alias in \$aliases
10696 if test \$section = 1 ; then
10697 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
10700 if test "$MANPAGE_SYMLINKS" = yes ; then
10701 if test -f \$cf_alias\${suffix} ; then
10702 if ( cmp -s \$cf_target \$cf_alias\${suffix} )
10707 echo .. \$verb alias \$cf_alias\${suffix}
10709 case "x$LN_S" in #(vi
10711 cat >>$cf_edit_man <<CF_EOF
10712 $LN_S \$cf_target \$cf_alias\${suffix}
10716 cat >>$cf_edit_man <<CF_EOF
10717 rm -f \$cf_alias\${suffix}
10718 $LN_S \$cf_target \$cf_alias\${suffix}
10722 cat >>$cf_edit_man <<CF_EOF
10723 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
10724 echo ".so \$cf_source" >\$TMP
10726 if test -n "$cf_compress" ; then
10727 cat >>$cf_edit_man <<CF_EOF
10728 if test -n "$cf_so_strip" ; then
10729 $cf_compress -f \$TMP
10730 mv \$TMP.$cf_so_strip \$TMP
10734 cat >>$cf_edit_man <<CF_EOF
10735 echo .. \$verb alias \$cf_alias\${suffix}
10736 rm -f \$cf_alias\${suffix}
10737 \$INSTALL_DATA \$TMP \$cf_alias\${suffix}
10742 elif test \$verb = removing ; then
10743 test -f \$cf_target && (
10744 echo \$verb \$cf_target
10747 test -d \$cf_subdir\${section} &&
10748 test -n "\$aliases" && (
10749 cd \$cf_subdir\${section} && (
10750 for cf_alias in \$aliases
10752 if test \$section = 1 ; then
10753 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
10756 echo .. \$verb alias \$cf_alias\${suffix}
10757 rm -f \$cf_alias\${suffix}
10769 if test $cf_inboth = yes ; then
10770 if test \$form != format ; then
10771 sh \$0 format \$verb \$mandir \$srcdir \$*
10777 chmod 755 $cf_edit_man
10779 ###############################################################################
10781 ### Note that some functions (such as const) are normally disabled anyway.
10782 echo "$as_me:10782: checking if you want to build with function extensions" >&5
10783 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
10785 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
10786 if test "${enable_ext_funcs+set}" = set; then
10787 enableval="$enable_ext_funcs"
10788 with_ext_funcs=$enableval
10792 echo "$as_me:10792: result: $with_ext_funcs" >&5
10793 echo "${ECHO_T}$with_ext_funcs" >&6
10794 if test "$with_ext_funcs" = yes ; then
10795 NCURSES_EXT_FUNCS=1
10796 cat >>confdefs.h <<\EOF
10797 #define HAVE_ASSUME_DEFAULT_COLORS 1
10800 cat >>confdefs.h <<\EOF
10801 #define HAVE_CURSES_VERSION 1
10804 cat >>confdefs.h <<\EOF
10805 #define HAVE_HAS_KEY 1
10808 cat >>confdefs.h <<\EOF
10809 #define HAVE_RESIZETERM 1
10812 cat >>confdefs.h <<\EOF
10813 #define HAVE_RESIZE_TERM 1
10816 cat >>confdefs.h <<\EOF
10817 #define HAVE_TERM_ENTRY_H 1
10820 cat >>confdefs.h <<\EOF
10821 #define HAVE_USE_DEFAULT_COLORS 1
10824 cat >>confdefs.h <<\EOF
10825 #define HAVE_USE_SCREEN 1
10828 cat >>confdefs.h <<\EOF
10829 #define HAVE_USE_WINDOW 1
10832 cat >>confdefs.h <<\EOF
10833 #define HAVE_WRESIZE 1
10836 cat >>confdefs.h <<\EOF
10837 #define NCURSES_EXT_FUNCS 1
10840 GENERATED_EXT_FUNCS=generated
10842 NCURSES_EXT_FUNCS=0
10843 GENERATED_EXT_FUNCS=
10846 echo "$as_me:10846: checking if you want to build with experimental SCREEN extensions" >&5
10847 echo $ECHO_N "checking if you want to build with experimental SCREEN extensions... $ECHO_C" >&6
10849 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
10850 if test "${enable_sp_funcs+set}" = set; then
10851 enableval="$enable_sp_funcs"
10852 with_sp_funcs=$enableval
10856 echo "$as_me:10856: result: $with_sp_funcs" >&5
10857 echo "${ECHO_T}$with_sp_funcs" >&6
10858 if test "$with_sp_funcs" = yes ; then
10860 cat >>confdefs.h <<\EOF
10861 #define NCURSES_SP_FUNCS 1
10864 GENERATED_SP_FUNCS=generated
10867 GENERATED_SP_FUNCS=
10870 echo "$as_me:10870: checking if you want to build with experimental terminal-driver" >&5
10871 echo $ECHO_N "checking if you want to build with experimental terminal-driver... $ECHO_C" >&6
10873 # Check whether --enable-term-driver or --disable-term-driver was given.
10874 if test "${enable_term_driver+set}" = set; then
10875 enableval="$enable_term_driver"
10876 with_term_driver=$enableval
10878 with_term_driver=no
10880 echo "$as_me:10880: result: $with_term_driver" >&5
10881 echo "${ECHO_T}$with_term_driver" >&6
10882 if test "$with_term_driver" = yes ; then
10883 cat >>confdefs.h <<\EOF
10884 #define USE_TERM_DRIVER 1
10887 if test "$with_sp_funcs" != yes ; then
10888 { { echo "$as_me:10888: error: The term-driver option relies upon sp-funcs" >&5
10889 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
10890 { (exit 1); exit 1; }; }
10894 ### use option --enable-const to turn on use of const beyond that in XSI.
10895 echo "$as_me:10895: checking for extended use of const keyword" >&5
10896 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
10898 # Check whether --enable-const or --disable-const was given.
10899 if test "${enable_const+set}" = set; then
10900 enableval="$enable_const"
10901 with_ext_const=$enableval
10905 echo "$as_me:10905: result: $with_ext_const" >&5
10906 echo "${ECHO_T}$with_ext_const" >&6
10907 NCURSES_CONST='/*nothing*/'
10908 if test "$with_ext_const" = yes ; then
10909 NCURSES_CONST=const
10912 ### use option --enable-ext-colors to turn on use of colors beyond 16.
10913 echo "$as_me:10913: checking if you want to use extended colors" >&5
10914 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
10916 # Check whether --enable-ext-colors or --disable-ext-colors was given.
10917 if test "${enable_ext_colors+set}" = set; then
10918 enableval="$enable_ext_colors"
10919 with_ext_colors=$enableval
10923 echo "$as_me:10923: result: $with_ext_colors" >&5
10924 echo "${ECHO_T}$with_ext_colors" >&6
10925 NCURSES_EXT_COLORS=0
10926 if test "$with_ext_colors" = yes ; then
10927 if test "$with_widec" != yes ; then
10928 { { echo "$as_me:10928: error: This option applies only to wide-character library" >&5
10929 echo "$as_me: error: This option applies only to wide-character library" >&2;}
10930 { (exit 1); exit 1; }; }
10932 # cannot be ABI 5 since it changes sizeof(cchar_t)
10934 if test "${with_abi_version+set}" != set; then
10935 case $cf_cv_rel_version in
10937 cf_cv_rel_version=6.0
10938 cf_cv_abi_version=6
10939 { echo "$as_me:10939: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
10940 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
10946 NCURSES_EXT_COLORS=1
10947 cat >>confdefs.h <<\EOF
10948 #define NCURSES_EXT_COLORS 1
10953 ### use option --enable-ext-mouse to modify coding to support 5-button mice
10954 echo "$as_me:10954: checking if you want to use extended mouse encoding" >&5
10955 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
10957 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
10958 if test "${enable_ext_mouse+set}" = set; then
10959 enableval="$enable_ext_mouse"
10960 with_ext_mouse=$enableval
10964 echo "$as_me:10964: result: $with_ext_mouse" >&5
10965 echo "${ECHO_T}$with_ext_mouse" >&6
10966 NCURSES_MOUSE_VERSION=1
10967 if test "$with_ext_mouse" = yes ; then
10968 NCURSES_MOUSE_VERSION=2
10970 if test "${with_abi_version+set}" != set; then
10971 case $cf_cv_rel_version in
10973 cf_cv_rel_version=6.0
10974 cf_cv_abi_version=6
10975 { echo "$as_me:10975: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
10976 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
10983 echo "$as_me:10983: checking if you want \$NCURSES_NO_PADDING code" >&5
10984 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
10986 # Check whether --enable-no-padding or --disable-no-padding was given.
10987 if test "${enable_no_padding+set}" = set; then
10988 enableval="$enable_no_padding"
10989 with_no_padding=$enableval
10991 with_no_padding=$with_ext_funcs
10993 echo "$as_me:10993: result: $with_no_padding" >&5
10994 echo "${ECHO_T}$with_no_padding" >&6
10995 test "$with_no_padding" = yes && cat >>confdefs.h <<\EOF
10996 #define NCURSES_NO_PADDING 1
10999 echo "$as_me:10999: checking for ANSI C header files" >&5
11000 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11001 if test "${ac_cv_header_stdc+set}" = set; then
11002 echo $ECHO_N "(cached) $ECHO_C" >&6
11004 cat >conftest.$ac_ext <<_ACEOF
11005 #line 11005 "configure"
11006 #include "confdefs.h"
11007 #include <stdlib.h>
11008 #include <stdarg.h>
11009 #include <string.h>
11013 if { (eval echo "$as_me:11013: \"$ac_cpp conftest.$ac_ext\"") >&5
11014 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11016 egrep -v '^ *\+' conftest.er1 >conftest.err
11018 cat conftest.err >&5
11019 echo "$as_me:11019: \$? = $ac_status" >&5
11020 (exit $ac_status); } >/dev/null; then
11021 if test -s conftest.err; then
11022 ac_cpp_err=$ac_c_preproc_warn_flag
11029 if test -z "$ac_cpp_err"; then
11030 ac_cv_header_stdc=yes
11032 echo "$as_me: failed program was:" >&5
11033 cat conftest.$ac_ext >&5
11034 ac_cv_header_stdc=no
11036 rm -f conftest.err conftest.$ac_ext
11038 if test $ac_cv_header_stdc = yes; then
11039 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11040 cat >conftest.$ac_ext <<_ACEOF
11041 #line 11041 "configure"
11042 #include "confdefs.h"
11043 #include <string.h>
11046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11047 egrep "memchr" >/dev/null 2>&1; then
11050 ac_cv_header_stdc=no
11056 if test $ac_cv_header_stdc = yes; then
11057 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11058 cat >conftest.$ac_ext <<_ACEOF
11059 #line 11059 "configure"
11060 #include "confdefs.h"
11061 #include <stdlib.h>
11064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11065 egrep "free" >/dev/null 2>&1; then
11068 ac_cv_header_stdc=no
11074 if test $ac_cv_header_stdc = yes; then
11075 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11076 if test "$cross_compiling" = yes; then
11079 cat >conftest.$ac_ext <<_ACEOF
11080 #line 11080 "configure"
11081 #include "confdefs.h"
11083 #if ((' ' & 0x0FF) == 0x020)
11084 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11085 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11087 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
11088 || ('j' <= (c) && (c) <= 'r') \
11089 || ('s' <= (c) && (c) <= 'z'))
11090 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11093 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11098 for (i = 0; i < 256; i++)
11099 if (XOR (islower (i), ISLOWER (i))
11100 || toupper (i) != TOUPPER (i))
11101 $ac_main_return(2);
11102 $ac_main_return (0);
11105 rm -f conftest$ac_exeext
11106 if { (eval echo "$as_me:11106: \"$ac_link\"") >&5
11107 (eval $ac_link) 2>&5
11109 echo "$as_me:11109: \$? = $ac_status" >&5
11110 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11111 { (eval echo "$as_me:11111: \"$ac_try\"") >&5
11112 (eval $ac_try) 2>&5
11114 echo "$as_me:11114: \$? = $ac_status" >&5
11115 (exit $ac_status); }; }; then
11118 echo "$as_me: program exited with status $ac_status" >&5
11119 echo "$as_me: failed program was:" >&5
11120 cat conftest.$ac_ext >&5
11121 ac_cv_header_stdc=no
11123 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11127 echo "$as_me:11127: result: $ac_cv_header_stdc" >&5
11128 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11129 if test $ac_cv_header_stdc = yes; then
11131 cat >>confdefs.h <<\EOF
11132 #define STDC_HEADERS 1
11137 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
11139 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
11140 inttypes.h stdint.h unistd.h
11142 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11143 echo "$as_me:11143: checking for $ac_header" >&5
11144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11146 echo $ECHO_N "(cached) $ECHO_C" >&6
11148 cat >conftest.$ac_ext <<_ACEOF
11149 #line 11149 "configure"
11150 #include "confdefs.h"
11151 $ac_includes_default
11152 #include <$ac_header>
11154 rm -f conftest.$ac_objext
11155 if { (eval echo "$as_me:11155: \"$ac_compile\"") >&5
11156 (eval $ac_compile) 2>&5
11158 echo "$as_me:11158: \$? = $ac_status" >&5
11159 (exit $ac_status); } &&
11160 { ac_try='test -s conftest.$ac_objext'
11161 { (eval echo "$as_me:11161: \"$ac_try\"") >&5
11162 (eval $ac_try) 2>&5
11164 echo "$as_me:11164: \$? = $ac_status" >&5
11165 (exit $ac_status); }; }; then
11166 eval "$as_ac_Header=yes"
11168 echo "$as_me: failed program was:" >&5
11169 cat conftest.$ac_ext >&5
11170 eval "$as_ac_Header=no"
11172 rm -f conftest.$ac_objext conftest.$ac_ext
11174 echo "$as_me:11174: result: `eval echo '${'$as_ac_Header'}'`" >&5
11175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11176 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11177 cat >>confdefs.h <<EOF
11178 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11184 echo "$as_me:11184: checking for signed char" >&5
11185 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
11186 if test "${ac_cv_type_signed_char+set}" = set; then
11187 echo $ECHO_N "(cached) $ECHO_C" >&6
11189 cat >conftest.$ac_ext <<_ACEOF
11190 #line 11190 "configure"
11191 #include "confdefs.h"
11192 $ac_includes_default
11196 if ((signed char *) 0)
11198 if (sizeof (signed char))
11204 rm -f conftest.$ac_objext
11205 if { (eval echo "$as_me:11205: \"$ac_compile\"") >&5
11206 (eval $ac_compile) 2>&5
11208 echo "$as_me:11208: \$? = $ac_status" >&5
11209 (exit $ac_status); } &&
11210 { ac_try='test -s conftest.$ac_objext'
11211 { (eval echo "$as_me:11211: \"$ac_try\"") >&5
11212 (eval $ac_try) 2>&5
11214 echo "$as_me:11214: \$? = $ac_status" >&5
11215 (exit $ac_status); }; }; then
11216 ac_cv_type_signed_char=yes
11218 echo "$as_me: failed program was:" >&5
11219 cat conftest.$ac_ext >&5
11220 ac_cv_type_signed_char=no
11222 rm -f conftest.$ac_objext conftest.$ac_ext
11224 echo "$as_me:11224: result: $ac_cv_type_signed_char" >&5
11225 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
11227 echo "$as_me:11227: checking size of signed char" >&5
11228 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
11229 if test "${ac_cv_sizeof_signed_char+set}" = set; then
11230 echo $ECHO_N "(cached) $ECHO_C" >&6
11232 if test "$ac_cv_type_signed_char" = yes; then
11233 if test "$cross_compiling" = yes; then
11234 # Depending upon the size, compute the lo and hi bounds.
11235 cat >conftest.$ac_ext <<_ACEOF
11236 #line 11236 "configure"
11237 #include "confdefs.h"
11238 $ac_includes_default
11242 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
11247 rm -f conftest.$ac_objext
11248 if { (eval echo "$as_me:11248: \"$ac_compile\"") >&5
11249 (eval $ac_compile) 2>&5
11251 echo "$as_me:11251: \$? = $ac_status" >&5
11252 (exit $ac_status); } &&
11253 { ac_try='test -s conftest.$ac_objext'
11254 { (eval echo "$as_me:11254: \"$ac_try\"") >&5
11255 (eval $ac_try) 2>&5
11257 echo "$as_me:11257: \$? = $ac_status" >&5
11258 (exit $ac_status); }; }; then
11261 cat >conftest.$ac_ext <<_ACEOF
11262 #line 11262 "configure"
11263 #include "confdefs.h"
11264 $ac_includes_default
11268 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
11273 rm -f conftest.$ac_objext
11274 if { (eval echo "$as_me:11274: \"$ac_compile\"") >&5
11275 (eval $ac_compile) 2>&5
11277 echo "$as_me:11277: \$? = $ac_status" >&5
11278 (exit $ac_status); } &&
11279 { ac_try='test -s conftest.$ac_objext'
11280 { (eval echo "$as_me:11280: \"$ac_try\"") >&5
11281 (eval $ac_try) 2>&5
11283 echo "$as_me:11283: \$? = $ac_status" >&5
11284 (exit $ac_status); }; }; then
11285 ac_hi=$ac_mid; break
11287 echo "$as_me: failed program was:" >&5
11288 cat conftest.$ac_ext >&5
11289 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
11291 rm -f conftest.$ac_objext conftest.$ac_ext
11294 echo "$as_me: failed program was:" >&5
11295 cat conftest.$ac_ext >&5
11298 cat >conftest.$ac_ext <<_ACEOF
11299 #line 11299 "configure"
11300 #include "confdefs.h"
11301 $ac_includes_default
11305 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
11310 rm -f conftest.$ac_objext
11311 if { (eval echo "$as_me:11311: \"$ac_compile\"") >&5
11312 (eval $ac_compile) 2>&5
11314 echo "$as_me:11314: \$? = $ac_status" >&5
11315 (exit $ac_status); } &&
11316 { ac_try='test -s conftest.$ac_objext'
11317 { (eval echo "$as_me:11317: \"$ac_try\"") >&5
11318 (eval $ac_try) 2>&5
11320 echo "$as_me:11320: \$? = $ac_status" >&5
11321 (exit $ac_status); }; }; then
11322 ac_lo=$ac_mid; break
11324 echo "$as_me: failed program was:" >&5
11325 cat conftest.$ac_ext >&5
11326 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
11328 rm -f conftest.$ac_objext conftest.$ac_ext
11331 rm -f conftest.$ac_objext conftest.$ac_ext
11332 # Binary search between lo and hi bounds.
11333 while test "x$ac_lo" != "x$ac_hi"; do
11334 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11335 cat >conftest.$ac_ext <<_ACEOF
11336 #line 11336 "configure"
11337 #include "confdefs.h"
11338 $ac_includes_default
11342 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
11347 rm -f conftest.$ac_objext
11348 if { (eval echo "$as_me:11348: \"$ac_compile\"") >&5
11349 (eval $ac_compile) 2>&5
11351 echo "$as_me:11351: \$? = $ac_status" >&5
11352 (exit $ac_status); } &&
11353 { ac_try='test -s conftest.$ac_objext'
11354 { (eval echo "$as_me:11354: \"$ac_try\"") >&5
11355 (eval $ac_try) 2>&5
11357 echo "$as_me:11357: \$? = $ac_status" >&5
11358 (exit $ac_status); }; }; then
11361 echo "$as_me: failed program was:" >&5
11362 cat conftest.$ac_ext >&5
11363 ac_lo=`expr $ac_mid + 1`
11365 rm -f conftest.$ac_objext conftest.$ac_ext
11367 ac_cv_sizeof_signed_char=$ac_lo
11369 if test "$cross_compiling" = yes; then
11370 { { echo "$as_me:11370: error: cannot run test program while cross compiling" >&5
11371 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11372 { (exit 1); exit 1; }; }
11374 cat >conftest.$ac_ext <<_ACEOF
11375 #line 11375 "configure"
11376 #include "confdefs.h"
11377 $ac_includes_default
11381 FILE *f = fopen ("conftest.val", "w");
11383 $ac_main_return (1);
11384 fprintf (f, "%d", (sizeof (signed char)));
11390 rm -f conftest$ac_exeext
11391 if { (eval echo "$as_me:11391: \"$ac_link\"") >&5
11392 (eval $ac_link) 2>&5
11394 echo "$as_me:11394: \$? = $ac_status" >&5
11395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11396 { (eval echo "$as_me:11396: \"$ac_try\"") >&5
11397 (eval $ac_try) 2>&5
11399 echo "$as_me:11399: \$? = $ac_status" >&5
11400 (exit $ac_status); }; }; then
11401 ac_cv_sizeof_signed_char=`cat conftest.val`
11403 echo "$as_me: program exited with status $ac_status" >&5
11404 echo "$as_me: failed program was:" >&5
11405 cat conftest.$ac_ext >&5
11407 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11412 ac_cv_sizeof_signed_char=0
11415 echo "$as_me:11415: result: $ac_cv_sizeof_signed_char" >&5
11416 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
11417 cat >>confdefs.h <<EOF
11418 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
11421 if test "$ac_cv_sizeof_signed_char" = 1 ; then
11422 NCURSES_SBOOL="signed char"
11424 NCURSES_SBOOL="char"
11426 echo "$as_me:11426: checking if you want to use signed Boolean array in term.h" >&5
11427 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
11429 # Check whether --enable-signed-char or --disable-signed-char was given.
11430 if test "${enable_signed_char+set}" = set; then
11431 enableval="$enable_signed_char"
11432 with_signed_char=$enableval
11434 with_signed_char=no
11436 echo "$as_me:11436: result: $with_signed_char" >&5
11437 echo "${ECHO_T}$with_signed_char" >&6
11438 test "$with_signed_char" != yes && NCURSES_SBOOL="char"
11440 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
11441 echo "$as_me:11441: checking if you want SIGWINCH handler" >&5
11442 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
11444 # Check whether --enable-sigwinch or --disable-sigwinch was given.
11445 if test "${enable_sigwinch+set}" = set; then
11446 enableval="$enable_sigwinch"
11447 with_sigwinch=$enableval
11449 with_sigwinch=$with_ext_funcs
11451 echo "$as_me:11451: result: $with_sigwinch" >&5
11452 echo "${ECHO_T}$with_sigwinch" >&6
11453 test "$with_sigwinch" = yes && cat >>confdefs.h <<\EOF
11454 #define USE_SIGWINCH 1
11457 ### use option --enable-tcap-names to allow user to define new capabilities
11458 echo "$as_me:11458: checking if you want user-definable terminal capabilities like termcap" >&5
11459 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
11461 # Check whether --enable-tcap-names or --disable-tcap-names was given.
11462 if test "${enable_tcap_names+set}" = set; then
11463 enableval="$enable_tcap_names"
11464 with_tcap_names=$enableval
11466 with_tcap_names=$with_ext_funcs
11468 echo "$as_me:11468: result: $with_tcap_names" >&5
11469 echo "${ECHO_T}$with_tcap_names" >&6
11471 test "$with_tcap_names" = yes && NCURSES_XNAMES=1
11473 ###############################################################################
11474 # These options are relatively safe to experiment with.
11476 echo "$as_me:11476: checking if you want all development code" >&5
11477 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
11479 # Check whether --with-develop or --without-develop was given.
11480 if test "${with_develop+set}" = set; then
11481 withval="$with_develop"
11482 with_develop=$withval
11486 echo "$as_me:11486: result: $with_develop" >&5
11487 echo "${ECHO_T}$with_develop" >&6
11489 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
11490 echo "$as_me:11490: checking if you want hard-tabs code" >&5
11491 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
11493 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
11494 if test "${enable_hard_tabs+set}" = set; then
11495 enableval="$enable_hard_tabs"
11498 enable_hard_tabs=$with_develop
11500 echo "$as_me:11500: result: $enable_hard_tabs" >&5
11501 echo "${ECHO_T}$enable_hard_tabs" >&6
11502 test "$enable_hard_tabs" = yes && cat >>confdefs.h <<\EOF
11503 #define USE_HARD_TABS 1
11506 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
11507 echo "$as_me:11507: checking if you want limited support for xmc" >&5
11508 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
11510 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
11511 if test "${enable_xmc_glitch+set}" = set; then
11512 enableval="$enable_xmc_glitch"
11515 enable_xmc_glitch=$with_develop
11517 echo "$as_me:11517: result: $enable_xmc_glitch" >&5
11518 echo "${ECHO_T}$enable_xmc_glitch" >&6
11519 test "$enable_xmc_glitch" = yes && cat >>confdefs.h <<\EOF
11520 #define USE_XMC_SUPPORT 1
11523 ###############################################################################
11524 # These are just experimental, probably should not be in a package:
11526 echo "$as_me:11526: checking if you do not want to assume colors are white-on-black" >&5
11527 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
11529 # Check whether --enable-assumed-color or --disable-assumed-color was given.
11530 if test "${enable_assumed_color+set}" = set; then
11531 enableval="$enable_assumed_color"
11532 with_assumed_color=$enableval
11534 with_assumed_color=yes
11536 echo "$as_me:11536: result: $with_assumed_color" >&5
11537 echo "${ECHO_T}$with_assumed_color" >&6
11538 test "$with_assumed_color" = yes && cat >>confdefs.h <<\EOF
11539 #define USE_ASSUMED_COLOR 1
11542 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
11543 echo "$as_me:11543: checking if you want hashmap scrolling-optimization code" >&5
11544 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
11546 # Check whether --enable-hashmap or --disable-hashmap was given.
11547 if test "${enable_hashmap+set}" = set; then
11548 enableval="$enable_hashmap"
11549 with_hashmap=$enableval
11553 echo "$as_me:11553: result: $with_hashmap" >&5
11554 echo "${ECHO_T}$with_hashmap" >&6
11555 test "$with_hashmap" = yes && cat >>confdefs.h <<\EOF
11556 #define USE_HASHMAP 1
11559 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
11560 echo "$as_me:11560: checking if you want colorfgbg code" >&5
11561 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
11563 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
11564 if test "${enable_colorfgbg+set}" = set; then
11565 enableval="$enable_colorfgbg"
11566 with_colorfgbg=$enableval
11570 echo "$as_me:11570: result: $with_colorfgbg" >&5
11571 echo "${ECHO_T}$with_colorfgbg" >&6
11572 test "$with_colorfgbg" = yes && cat >>confdefs.h <<\EOF
11573 #define USE_COLORFGBG 1
11576 ### use option --enable-interop to turn on use of bindings used for interop
11577 echo "$as_me:11577: checking if you want interop bindings" >&5
11578 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
11580 # Check whether --enable-interop or --disable-interop was given.
11581 if test "${enable_interop+set}" = set; then
11582 enableval="$enable_interop"
11583 with_exp_interop=$enableval
11585 with_exp_interop=no
11587 echo "$as_me:11587: result: $with_exp_interop" >&5
11588 echo "${ECHO_T}$with_exp_interop" >&6
11590 NCURSES_INTEROP_FUNCS=0
11591 test "$with_exp_interop" = yes && NCURSES_INTEROP_FUNCS=1
11593 # This is still experimental (20080329), but should ultimately be moved to
11594 # the script-block --with-normal, etc.
11596 echo "$as_me:11596: checking if you want to link with the pthread library" >&5
11597 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
11599 # Check whether --with-pthread or --without-pthread was given.
11600 if test "${with_pthread+set}" = set; then
11601 withval="$with_pthread"
11602 with_pthread=$withval
11606 echo "$as_me:11606: result: $with_pthread" >&5
11607 echo "${ECHO_T}$with_pthread" >&6
11609 if test "$with_pthread" != no ; then
11610 echo "$as_me:11610: checking for pthread.h" >&5
11611 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
11612 if test "${ac_cv_header_pthread_h+set}" = set; then
11613 echo $ECHO_N "(cached) $ECHO_C" >&6
11615 cat >conftest.$ac_ext <<_ACEOF
11616 #line 11616 "configure"
11617 #include "confdefs.h"
11618 #include <pthread.h>
11620 if { (eval echo "$as_me:11620: \"$ac_cpp conftest.$ac_ext\"") >&5
11621 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11623 egrep -v '^ *\+' conftest.er1 >conftest.err
11625 cat conftest.err >&5
11626 echo "$as_me:11626: \$? = $ac_status" >&5
11627 (exit $ac_status); } >/dev/null; then
11628 if test -s conftest.err; then
11629 ac_cpp_err=$ac_c_preproc_warn_flag
11636 if test -z "$ac_cpp_err"; then
11637 ac_cv_header_pthread_h=yes
11639 echo "$as_me: failed program was:" >&5
11640 cat conftest.$ac_ext >&5
11641 ac_cv_header_pthread_h=no
11643 rm -f conftest.err conftest.$ac_ext
11645 echo "$as_me:11645: result: $ac_cv_header_pthread_h" >&5
11646 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
11647 if test $ac_cv_header_pthread_h = yes; then
11649 cat >>confdefs.h <<\EOF
11650 #define HAVE_PTHREADS_H 1
11653 for cf_lib_pthread in pthread c_r
11655 echo "$as_me:11655: checking if we can link with the $cf_lib_pthread library" >&5
11656 echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
11657 cf_save_LIBS="$LIBS"
11658 LIBS="-l$cf_lib_pthread $LIBS"
11659 cat >conftest.$ac_ext <<_ACEOF
11660 #line 11660 "configure"
11661 #include "confdefs.h"
11663 #include <pthread.h>
11669 int rc = pthread_create(0,0,0,0);
11675 rm -f conftest.$ac_objext conftest$ac_exeext
11676 if { (eval echo "$as_me:11676: \"$ac_link\"") >&5
11677 (eval $ac_link) 2>&5
11679 echo "$as_me:11679: \$? = $ac_status" >&5
11680 (exit $ac_status); } &&
11681 { ac_try='test -s conftest$ac_exeext'
11682 { (eval echo "$as_me:11682: \"$ac_try\"") >&5
11683 (eval $ac_try) 2>&5
11685 echo "$as_me:11685: \$? = $ac_status" >&5
11686 (exit $ac_status); }; }; then
11689 echo "$as_me: failed program was:" >&5
11690 cat conftest.$ac_ext >&5
11693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11694 LIBS="$cf_save_LIBS"
11695 echo "$as_me:11695: result: $with_pthread" >&5
11696 echo "${ECHO_T}$with_pthread" >&6
11697 test "$with_pthread" = yes && break
11700 if test "$with_pthread" = yes ; then
11701 LIBS="-l$cf_lib_pthread $LIBS"
11702 cat >>confdefs.h <<\EOF
11703 #define HAVE_LIBPTHREADS 1
11707 { { echo "$as_me:11707: error: Cannot link with pthread library" >&5
11708 echo "$as_me: error: Cannot link with pthread library" >&2;}
11709 { (exit 1); exit 1; }; }
11716 if test "x$with_pthread" != xno; then
11717 echo "$as_me:11717: checking for pthread_kill" >&5
11718 echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6
11719 if test "${ac_cv_func_pthread_kill+set}" = set; then
11720 echo $ECHO_N "(cached) $ECHO_C" >&6
11722 cat >conftest.$ac_ext <<_ACEOF
11723 #line 11723 "configure"
11724 #include "confdefs.h"
11725 /* System header to define __stub macros and hopefully few prototypes,
11726 which can conflict with char pthread_kill (); below. */
11727 #include <assert.h>
11728 /* Override any gcc2 internal prototype to avoid an error. */
11732 /* We use char because int might match the return type of a gcc2
11733 builtin and then its argument prototype would still apply. */
11734 char pthread_kill ();
11740 /* The GNU C library defines this for functions which it implements
11741 to always fail with ENOSYS. Some functions are actually named
11742 something starting with __ and the normal name is an alias. */
11743 #if defined (__stub_pthread_kill) || defined (__stub___pthread_kill)
11753 rm -f conftest.$ac_objext conftest$ac_exeext
11754 if { (eval echo "$as_me:11754: \"$ac_link\"") >&5
11755 (eval $ac_link) 2>&5
11757 echo "$as_me:11757: \$? = $ac_status" >&5
11758 (exit $ac_status); } &&
11759 { ac_try='test -s conftest$ac_exeext'
11760 { (eval echo "$as_me:11760: \"$ac_try\"") >&5
11761 (eval $ac_try) 2>&5
11763 echo "$as_me:11763: \$? = $ac_status" >&5
11764 (exit $ac_status); }; }; then
11765 ac_cv_func_pthread_kill=yes
11767 echo "$as_me: failed program was:" >&5
11768 cat conftest.$ac_ext >&5
11769 ac_cv_func_pthread_kill=no
11771 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11773 echo "$as_me:11773: result: $ac_cv_func_pthread_kill" >&5
11774 echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6
11775 if test $ac_cv_func_pthread_kill = yes; then
11777 echo "$as_me:11777: checking if you want to allow EINTR in wgetch with pthreads" >&5
11778 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
11780 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
11781 if test "${enable_pthreads_eintr+set}" = set; then
11782 enableval="$enable_pthreads_eintr"
11783 use_pthreads_eintr=$enableval
11785 use_pthreads_eintr=no
11787 echo "$as_me:11787: result: $use_pthreads_eintr" >&5
11788 echo "${ECHO_T}$use_pthreads_eintr" >&6
11789 if test $use_pthreads_eintr = yes ; then
11790 cat >>confdefs.h <<\EOF
11791 #define USE_PTHREADS_EINTR 1
11797 echo "$as_me:11797: checking if you want to use weak-symbols for pthreads" >&5
11798 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
11800 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
11801 if test "${enable_weak_symbols+set}" = set; then
11802 enableval="$enable_weak_symbols"
11803 use_weak_symbols=$enableval
11805 use_weak_symbols=no
11807 echo "$as_me:11807: result: $use_weak_symbols" >&5
11808 echo "${ECHO_T}$use_weak_symbols" >&6
11809 if test "$use_weak_symbols" = yes ; then
11811 echo "$as_me:11811: checking if $CC supports weak symbols" >&5
11812 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
11813 if test "${cf_cv_weak_symbols+set}" = set; then
11814 echo $ECHO_N "(cached) $ECHO_C" >&6
11817 cat >conftest.$ac_ext <<_ACEOF
11818 #line 11818 "configure"
11819 #include "confdefs.h"
11826 #if defined(__GNUC__)
11827 # if defined __USE_ISOC99
11828 # define _cat_pragma(exp) _Pragma(#exp)
11829 # define _weak_pragma(exp) _cat_pragma(weak name)
11831 # define _weak_pragma(exp)
11833 # define _declare(name) __extension__ extern __typeof__(name) name
11834 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
11837 weak_symbol(fopen);
11843 rm -f conftest.$ac_objext
11844 if { (eval echo "$as_me:11844: \"$ac_compile\"") >&5
11845 (eval $ac_compile) 2>&5
11847 echo "$as_me:11847: \$? = $ac_status" >&5
11848 (exit $ac_status); } &&
11849 { ac_try='test -s conftest.$ac_objext'
11850 { (eval echo "$as_me:11850: \"$ac_try\"") >&5
11851 (eval $ac_try) 2>&5
11853 echo "$as_me:11853: \$? = $ac_status" >&5
11854 (exit $ac_status); }; }; then
11855 cf_cv_weak_symbols=yes
11857 echo "$as_me: failed program was:" >&5
11858 cat conftest.$ac_ext >&5
11859 cf_cv_weak_symbols=no
11861 rm -f conftest.$ac_objext conftest.$ac_ext
11864 echo "$as_me:11864: result: $cf_cv_weak_symbols" >&5
11865 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
11868 cf_cv_weak_symbols=no
11871 if test $cf_cv_weak_symbols = yes ; then
11872 cat >>confdefs.h <<\EOF
11873 #define USE_WEAK_SYMBOLS 1
11880 if test "$with_pthread" = "yes" ; then
11881 cat >>confdefs.h <<\EOF
11882 #define USE_PTHREADS 1
11885 enable_reentrant=yes
11886 if test $cf_cv_weak_symbols = yes ; then
11891 # Reentrant code has to be opaque; there's little advantage to making ncurses
11892 # opaque outside of that, so there is no --enable-opaque option. We can use
11893 # this option without --with-pthreads, but this will be always set for
11895 echo "$as_me:11895: checking if you want experimental reentrant code" >&5
11896 echo $ECHO_N "checking if you want experimental reentrant code... $ECHO_C" >&6
11898 # Check whether --enable-reentrant or --disable-reentrant was given.
11899 if test "${enable_reentrant+set}" = set; then
11900 enableval="$enable_reentrant"
11901 with_reentrant=$enableval
11905 echo "$as_me:11905: result: $with_reentrant" >&5
11906 echo "${ECHO_T}$with_reentrant" >&6
11907 if test "$with_reentrant" = yes ; then
11908 cf_cv_enable_reentrant=1
11909 cf_cv_enable_opaque="NCURSES_INTERNALS"
11912 if test $cf_cv_weak_symbols = yes ; then
11914 # remove pthread library from $LIBS
11915 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
11917 TEST_LIBS="-lpthread $TEST_LIBS"
11918 TEST_LIBS2="-lpthread $TEST_LIBS2"
11920 LIB_SUFFIX="t${LIB_SUFFIX}"
11922 cat >>confdefs.h <<\EOF
11923 #define USE_REENTRANT 1
11926 if test "${with_abi_version+set}" != set; then
11927 case $cf_cv_rel_version in
11929 cf_cv_rel_version=6.0
11930 cf_cv_abi_version=6
11931 { echo "$as_me:11931: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
11932 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
11938 cf_cv_enable_reentrant=0
11939 cf_cv_enable_opaque="NCURSES_OPAQUE"
11941 NCURSES_SIZE_T=short
11944 ### Allow using a different wrap-prefix
11945 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
11946 echo "$as_me:11946: checking for prefix used to wrap public variables" >&5
11947 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
11949 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
11950 if test "${with_wrap_prefix+set}" = set; then
11951 withval="$with_wrap_prefix"
11952 NCURSES_WRAP_PREFIX=$withval
11954 NCURSES_WRAP_PREFIX=_nc_
11956 echo "$as_me:11956: result: $NCURSES_WRAP_PREFIX" >&5
11957 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
11959 NCURSES_WRAP_PREFIX=_nc_
11962 cat >>confdefs.h <<EOF
11963 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
11966 echo "$as_me:11966: checking if you want experimental safe-sprintf code" >&5
11967 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
11969 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
11970 if test "${enable_safe_sprintf+set}" = set; then
11971 enableval="$enable_safe_sprintf"
11972 with_safe_sprintf=$enableval
11974 with_safe_sprintf=no
11976 echo "$as_me:11976: result: $with_safe_sprintf" >&5
11977 echo "${ECHO_T}$with_safe_sprintf" >&6
11978 test "$with_safe_sprintf" = yes && cat >>confdefs.h <<\EOF
11979 #define USE_SAFE_SPRINTF 1
11982 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
11983 # when hashmap is used scroll hints are useless
11984 if test "$with_hashmap" = no ; then
11985 echo "$as_me:11985: checking if you want to experiment without scrolling-hints code" >&5
11986 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
11988 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
11989 if test "${enable_scroll_hints+set}" = set; then
11990 enableval="$enable_scroll_hints"
11991 with_scroll_hints=$enableval
11993 with_scroll_hints=yes
11995 echo "$as_me:11995: result: $with_scroll_hints" >&5
11996 echo "${ECHO_T}$with_scroll_hints" >&6
11997 test "$with_scroll_hints" = yes && cat >>confdefs.h <<\EOF
11998 #define USE_SCROLL_HINTS 1
12003 echo "$as_me:12003: checking if you want experimental wgetch-events code" >&5
12004 echo $ECHO_N "checking if you want experimental wgetch-events code... $ECHO_C" >&6
12006 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
12007 if test "${enable_wgetch_events+set}" = set; then
12008 enableval="$enable_wgetch_events"
12009 with_wgetch_events=$enableval
12011 with_wgetch_events=no
12013 echo "$as_me:12013: result: $with_wgetch_events" >&5
12014 echo "${ECHO_T}$with_wgetch_events" >&6
12015 test "$with_wgetch_events" = yes && cat >>confdefs.h <<\EOF
12016 #define NCURSES_WGETCH_EVENTS 1
12019 ###############################################################################
12021 ### use option --disable-echo to suppress full display compiling commands
12022 echo "$as_me:12022: checking if you want to display full commands during build" >&5
12023 echo $ECHO_N "checking if you want to display full commands during build... $ECHO_C" >&6
12025 # Check whether --enable-echo or --disable-echo was given.
12026 if test "${enable_echo+set}" = set; then
12027 enableval="$enable_echo"
12028 with_echo=$enableval
12032 if test "$with_echo" = yes; then
12035 ECHO_LINK='@ echo linking $@ ... ;'
12036 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
12037 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
12039 echo "$as_me:12039: result: $with_echo" >&5
12040 echo "${ECHO_T}$with_echo" >&6
12042 ### use option --enable-warnings to turn on all gcc warnings
12043 echo "$as_me:12043: checking if you want to see compiler warnings" >&5
12044 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
12046 # Check whether --enable-warnings or --disable-warnings was given.
12047 if test "${enable_warnings+set}" = set; then
12048 enableval="$enable_warnings"
12049 with_warnings=$enableval
12051 echo "$as_me:12051: result: $with_warnings" >&5
12052 echo "${ECHO_T}$with_warnings" >&6
12054 if test "x$with_warnings" = "xyes"; then
12056 ADAFLAGS="$ADAFLAGS -gnatg"
12060 if test "$GCC" = yes ; then
12063 echo "$as_me:12063: checking if this is really Intel C compiler" >&5
12064 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
12065 cf_save_CFLAGS="$CFLAGS"
12066 CFLAGS="$CFLAGS -no-gcc"
12067 cat >conftest.$ac_ext <<_ACEOF
12068 #line 12068 "configure"
12069 #include "confdefs.h"
12075 #ifdef __INTEL_COMPILER
12084 rm -f conftest.$ac_objext
12085 if { (eval echo "$as_me:12085: \"$ac_compile\"") >&5
12086 (eval $ac_compile) 2>&5
12088 echo "$as_me:12088: \$? = $ac_status" >&5
12089 (exit $ac_status); } &&
12090 { ac_try='test -s conftest.$ac_objext'
12091 { (eval echo "$as_me:12091: \"$ac_try\"") >&5
12092 (eval $ac_try) 2>&5
12094 echo "$as_me:12094: \$? = $ac_status" >&5
12095 (exit $ac_status); }; }; then
12097 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
12100 echo "$as_me: failed program was:" >&5
12101 cat conftest.$ac_ext >&5
12103 rm -f conftest.$ac_objext conftest.$ac_ext
12104 CFLAGS="$cf_save_CFLAGS"
12105 echo "$as_me:12105: result: $INTEL_COMPILER" >&5
12106 echo "${ECHO_T}$INTEL_COMPILER" >&6
12111 cat > conftest.$ac_ext <<EOF
12112 #line 12112 "${as_me:-configure}"
12113 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
12116 if test "$INTEL_COMPILER" = yes
12118 # The "-wdXXX" options suppress warnings:
12119 # remark #1419: external declaration in primary source file
12120 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
12121 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
12122 # remark #193: zero used for undefined preprocessing identifier
12123 # remark #593: variable "curs_sb_left_arrow" was set but never used
12124 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
12125 # remark #869: parameter "tw" was never referenced
12126 # remark #981: operands are evaluated in unspecified order
12127 # warning #279: controlling expression is constant
12129 { echo "$as_me:12129: checking for $CC warning options..." >&5
12130 echo "$as_me: checking for $CC warning options..." >&6;}
12131 cf_save_CFLAGS="$CFLAGS"
12132 EXTRA_CFLAGS="-Wall"
12144 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
12145 if { (eval echo "$as_me:12145: \"$ac_compile\"") >&5
12146 (eval $ac_compile) 2>&5
12148 echo "$as_me:12148: \$? = $ac_status" >&5
12149 (exit $ac_status); }; then
12150 test -n "$verbose" && echo "$as_me:12150: result: ... -$cf_opt" >&5
12151 echo "${ECHO_T}... -$cf_opt" >&6
12152 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
12155 CFLAGS="$cf_save_CFLAGS"
12157 elif test "$GCC" = yes
12159 { echo "$as_me:12159: checking for $CC warning options..." >&5
12160 echo "$as_me: checking for $CC warning options..." >&6;}
12161 cf_save_CFLAGS="$CFLAGS"
12164 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
12165 for cf_opt in W Wall \
12166 Wbad-function-cast \
12170 Wmissing-declarations \
12171 Wmissing-prototypes \
12175 Wstrict-prototypes \
12176 Wundef $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum
12178 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
12179 if { (eval echo "$as_me:12179: \"$ac_compile\"") >&5
12180 (eval $ac_compile) 2>&5
12182 echo "$as_me:12182: \$? = $ac_status" >&5
12183 (exit $ac_status); }; then
12184 test -n "$verbose" && echo "$as_me:12184: result: ... -$cf_opt" >&5
12185 echo "${ECHO_T}... -$cf_opt" >&6
12186 case $cf_opt in #(vi
12188 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
12191 case $GCC_VERSION in
12193 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
12195 echo "${as_me:-configure}:12195: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
12201 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
12204 CFLAGS="$cf_save_CFLAGS"
12208 if test "$cf_with_cxx" = yes ; then
12212 if test "$GCC" = yes ; then
12215 echo "$as_me:12215: checking if this is really Intel C++ compiler" >&5
12216 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
12217 cf_save_CFLAGS="$CXXFLAGS"
12218 CXXFLAGS="$CXXFLAGS -no-gcc"
12219 cat >conftest.$ac_ext <<_ACEOF
12220 #line 12220 "configure"
12221 #include "confdefs.h"
12227 #ifdef __INTEL_COMPILER
12236 rm -f conftest.$ac_objext
12237 if { (eval echo "$as_me:12237: \"$ac_compile\"") >&5
12238 (eval $ac_compile) 2>&5
12240 echo "$as_me:12240: \$? = $ac_status" >&5
12241 (exit $ac_status); } &&
12242 { ac_try='test -s conftest.$ac_objext'
12243 { (eval echo "$as_me:12243: \"$ac_try\"") >&5
12244 (eval $ac_try) 2>&5
12246 echo "$as_me:12246: \$? = $ac_status" >&5
12247 (exit $ac_status); }; }; then
12248 INTEL_CPLUSPLUS=yes
12249 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
12252 echo "$as_me: failed program was:" >&5
12253 cat conftest.$ac_ext >&5
12255 rm -f conftest.$ac_objext conftest.$ac_ext
12256 CXXFLAGS="$cf_save_CFLAGS"
12257 echo "$as_me:12257: result: $INTEL_CPLUSPLUS" >&5
12258 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
12264 ac_cpp='$CXXCPP $CPPFLAGS'
12265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12268 ac_main_return=return
12270 cat > conftest.$ac_ext <<EOF
12271 #line 12271 "configure"
12272 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
12275 if test "$INTEL_CPLUSPLUS" = yes
12277 # The "-wdXXX" options suppress warnings:
12278 # remark #1419: external declaration in primary source file
12279 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
12280 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
12281 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
12282 # remark #193: zero used for undefined preprocessing identifier
12283 # remark #593: variable "curs_sb_left_arrow" was set but never used
12284 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
12285 # remark #869: parameter "tw" was never referenced
12286 # remark #981: operands are evaluated in unspecified order
12287 # warning #269: invalid format string conversion
12289 { echo "$as_me:12289: checking for $CC warning options..." >&5
12290 echo "$as_me: checking for $CC warning options..." >&6;}
12291 cf_save_CXXFLAGS="$CXXFLAGS"
12292 EXTRA_CXXFLAGS="-Wall"
12305 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
12306 if { (eval echo "$as_me:12306: \"$ac_compile\"") >&5
12307 (eval $ac_compile) 2>&5
12309 echo "$as_me:12309: \$? = $ac_status" >&5
12310 (exit $ac_status); }; then
12311 test -n "$verbose" && echo "$as_me:12311: result: ... -$cf_opt" >&5
12312 echo "${ECHO_T}... -$cf_opt" >&6
12313 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
12316 CXXFLAGS="$cf_save_CXXFLAGS"
12318 elif test "$GXX" = yes
12320 { echo "$as_me:12320: checking for $CXX warning options..." >&5
12321 echo "$as_me: checking for $CXX warning options..." >&6;}
12322 cf_save_CXXFLAGS="$CXXFLAGS"
12323 EXTRA_CXXFLAGS="-W -Wall"
12324 cf_gxx_extra_warnings=""
12325 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
12326 case "$GCC_VERSION" in
12330 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
12336 Woverloaded-virtual \
12342 Wmissing-prototypes \
12345 Wstrict-prototypes \
12346 Wundef $cf_gxx_extra_warnings Wno-unused
12348 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
12349 if { (eval echo "$as_me:12349: \"$ac_compile\"") >&5
12350 (eval $ac_compile) 2>&5
12352 echo "$as_me:12352: \$? = $ac_status" >&5
12353 (exit $ac_status); }; then
12354 test -n "$verbose" && echo "$as_me:12354: result: ... -$cf_opt" >&5
12355 echo "${ECHO_T}... -$cf_opt" >&6
12356 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
12358 test -n "$verbose" && echo "$as_me:12358: result: ... no -$cf_opt" >&5
12359 echo "${ECHO_T}... no -$cf_opt" >&6
12362 CXXFLAGS="$cf_save_CXXFLAGS"
12367 ac_cpp='$CPP $CPPFLAGS'
12368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12371 ac_main_return=return
12376 if test "$GCC" = yes
12378 cat > conftest.i <<EOF
12380 #define GCC_PRINTF 0
12383 #define GCC_SCANF 0
12385 #ifndef GCC_NORETURN
12386 #define GCC_NORETURN /* nothing */
12389 #define GCC_UNUSED /* nothing */
12392 if test "$GCC" = yes
12394 { echo "$as_me:12394: checking for $CC __attribute__ directives..." >&5
12395 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
12396 cat > conftest.$ac_ext <<EOF
12397 #line 12397 "${as_me:-configure}"
12398 #include "confdefs.h"
12399 #include "conftest.h"
12400 #include "conftest.i"
12402 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
12404 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
12407 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
12409 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
12411 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
12412 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
12413 extern void foo(void) GCC_NORETURN;
12414 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
12416 cf_printf_attribute=no
12417 cf_scanf_attribute=no
12418 for cf_attribute in scanf printf unused noreturn
12421 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
12423 cf_directive="__attribute__(($cf_attribute))"
12424 echo "checking for $CC $cf_directive" 1>&5
12426 case $cf_attribute in #(vi
12428 cf_printf_attribute=yes
12429 cat >conftest.h <<EOF
12430 #define GCC_$cf_ATTRIBUTE 1
12434 cf_scanf_attribute=yes
12435 cat >conftest.h <<EOF
12436 #define GCC_$cf_ATTRIBUTE 1
12440 cat >conftest.h <<EOF
12441 #define GCC_$cf_ATTRIBUTE $cf_directive
12446 if { (eval echo "$as_me:12446: \"$ac_compile\"") >&5
12447 (eval $ac_compile) 2>&5
12449 echo "$as_me:12449: \$? = $ac_status" >&5
12450 (exit $ac_status); }; then
12451 test -n "$verbose" && echo "$as_me:12451: result: ... $cf_attribute" >&5
12452 echo "${ECHO_T}... $cf_attribute" >&6
12453 cat conftest.h >>confdefs.h
12454 case $cf_attribute in #(vi
12456 if test "$cf_printf_attribute" = no ; then
12457 cat >>confdefs.h <<EOF
12458 #define GCC_PRINTFLIKE(fmt,var) /* nothing */
12461 cat >>confdefs.h <<EOF
12462 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
12467 if test "$cf_scanf_attribute" = no ; then
12468 cat >>confdefs.h <<EOF
12469 #define GCC_SCANFLIKE(fmt,var) /* nothing */
12472 cat >>confdefs.h <<EOF
12473 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
12481 fgrep define conftest.i >>confdefs.h
12486 ### use option --enable-assertions to turn on generation of assertion code
12487 echo "$as_me:12487: checking if you want to enable runtime assertions" >&5
12488 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
12490 # Check whether --enable-assertions or --disable-assertions was given.
12491 if test "${enable_assertions+set}" = set; then
12492 enableval="$enable_assertions"
12493 with_assertions=$enableval
12497 echo "$as_me:12497: result: $with_assertions" >&5
12498 echo "${ECHO_T}$with_assertions" >&6
12501 if test "$with_assertions" = no
12503 cat >>confdefs.h <<\EOF
12507 CPPFLAGS="$CPPFLAGS -DNDEBUG"
12510 ADAFLAGS="$ADAFLAGS -gnata"
12515 ### use option --disable-leaks to suppress "permanent" leaks, for testing
12517 echo "$as_me:12517: checking if you want to use dmalloc for testing" >&5
12518 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
12520 # Check whether --with-dmalloc or --without-dmalloc was given.
12521 if test "${with_dmalloc+set}" = set; then
12522 withval="$with_dmalloc"
12523 cat >>confdefs.h <<\EOF
12524 #define USE_DMALLOC 1
12527 : ${with_cflags:=-g}
12528 : ${with_no_leaks:=yes}
12533 echo "$as_me:12533: result: ${with_dmalloc:-no}" >&5
12534 echo "${ECHO_T}${with_dmalloc:-no}" >&6
12536 case .$with_cflags in #(vi
12538 case .$CFLAGS in #(vi
12546 cf_new_extra_cppflags=
12548 for cf_add_cflags in -g
12550 case $cf_fix_cppflags in
12552 case $cf_add_cflags in #(vi
12553 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
12554 case $cf_add_cflags in
12556 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12558 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12559 && test -z "${cf_tst_cflags}" \
12560 && cf_fix_cppflags=yes
12562 if test $cf_fix_cppflags = yes ; then
12563 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12565 elif test "${cf_tst_cflags}" = "\"'" ; then
12566 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12571 case "$CPPFLAGS" in
12572 *$cf_add_cflags) #(vi
12575 case $cf_add_cflags in #(vi
12577 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12579 CPPFLAGS=`echo "$CPPFLAGS" | \
12580 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12581 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12585 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12590 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12595 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12597 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12599 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12600 && test -z "${cf_tst_cflags}" \
12601 && cf_fix_cppflags=no
12606 if test -n "$cf_new_cflags" ; then
12608 CFLAGS="$CFLAGS $cf_new_cflags"
12611 if test -n "$cf_new_cppflags" ; then
12613 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12616 if test -n "$cf_new_extra_cppflags" ; then
12618 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12626 if test "$with_dmalloc" = yes ; then
12627 echo "$as_me:12627: checking for dmalloc.h" >&5
12628 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
12629 if test "${ac_cv_header_dmalloc_h+set}" = set; then
12630 echo $ECHO_N "(cached) $ECHO_C" >&6
12632 cat >conftest.$ac_ext <<_ACEOF
12633 #line 12633 "configure"
12634 #include "confdefs.h"
12635 #include <dmalloc.h>
12637 if { (eval echo "$as_me:12637: \"$ac_cpp conftest.$ac_ext\"") >&5
12638 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12640 egrep -v '^ *\+' conftest.er1 >conftest.err
12642 cat conftest.err >&5
12643 echo "$as_me:12643: \$? = $ac_status" >&5
12644 (exit $ac_status); } >/dev/null; then
12645 if test -s conftest.err; then
12646 ac_cpp_err=$ac_c_preproc_warn_flag
12653 if test -z "$ac_cpp_err"; then
12654 ac_cv_header_dmalloc_h=yes
12656 echo "$as_me: failed program was:" >&5
12657 cat conftest.$ac_ext >&5
12658 ac_cv_header_dmalloc_h=no
12660 rm -f conftest.err conftest.$ac_ext
12662 echo "$as_me:12662: result: $ac_cv_header_dmalloc_h" >&5
12663 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
12664 if test $ac_cv_header_dmalloc_h = yes; then
12666 echo "$as_me:12666: checking for dmalloc_debug in -ldmalloc" >&5
12667 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
12668 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
12669 echo $ECHO_N "(cached) $ECHO_C" >&6
12671 ac_check_lib_save_LIBS=$LIBS
12672 LIBS="-ldmalloc $LIBS"
12673 cat >conftest.$ac_ext <<_ACEOF
12674 #line 12674 "configure"
12675 #include "confdefs.h"
12677 /* Override any gcc2 internal prototype to avoid an error. */
12681 /* We use char because int might match the return type of a gcc2
12682 builtin and then its argument prototype would still apply. */
12683 char dmalloc_debug ();
12692 rm -f conftest.$ac_objext conftest$ac_exeext
12693 if { (eval echo "$as_me:12693: \"$ac_link\"") >&5
12694 (eval $ac_link) 2>&5
12696 echo "$as_me:12696: \$? = $ac_status" >&5
12697 (exit $ac_status); } &&
12698 { ac_try='test -s conftest$ac_exeext'
12699 { (eval echo "$as_me:12699: \"$ac_try\"") >&5
12700 (eval $ac_try) 2>&5
12702 echo "$as_me:12702: \$? = $ac_status" >&5
12703 (exit $ac_status); }; }; then
12704 ac_cv_lib_dmalloc_dmalloc_debug=yes
12706 echo "$as_me: failed program was:" >&5
12707 cat conftest.$ac_ext >&5
12708 ac_cv_lib_dmalloc_dmalloc_debug=no
12710 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12711 LIBS=$ac_check_lib_save_LIBS
12713 echo "$as_me:12713: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
12714 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
12715 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
12716 cat >>confdefs.h <<EOF
12717 #define HAVE_LIBDMALLOC 1
12720 LIBS="-ldmalloc $LIBS"
12728 echo "$as_me:12728: checking if you want to use dbmalloc for testing" >&5
12729 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
12731 # Check whether --with-dbmalloc or --without-dbmalloc was given.
12732 if test "${with_dbmalloc+set}" = set; then
12733 withval="$with_dbmalloc"
12734 cat >>confdefs.h <<\EOF
12735 #define USE_DBMALLOC 1
12738 : ${with_cflags:=-g}
12739 : ${with_no_leaks:=yes}
12744 echo "$as_me:12744: result: ${with_dbmalloc:-no}" >&5
12745 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
12747 case .$with_cflags in #(vi
12749 case .$CFLAGS in #(vi
12757 cf_new_extra_cppflags=
12759 for cf_add_cflags in -g
12761 case $cf_fix_cppflags in
12763 case $cf_add_cflags in #(vi
12764 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
12765 case $cf_add_cflags in
12767 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12769 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12770 && test -z "${cf_tst_cflags}" \
12771 && cf_fix_cppflags=yes
12773 if test $cf_fix_cppflags = yes ; then
12774 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12776 elif test "${cf_tst_cflags}" = "\"'" ; then
12777 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12782 case "$CPPFLAGS" in
12783 *$cf_add_cflags) #(vi
12786 case $cf_add_cflags in #(vi
12788 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12790 CPPFLAGS=`echo "$CPPFLAGS" | \
12791 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12792 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12796 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12801 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12806 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12808 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12810 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12811 && test -z "${cf_tst_cflags}" \
12812 && cf_fix_cppflags=no
12817 if test -n "$cf_new_cflags" ; then
12819 CFLAGS="$CFLAGS $cf_new_cflags"
12822 if test -n "$cf_new_cppflags" ; then
12824 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12827 if test -n "$cf_new_extra_cppflags" ; then
12829 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12837 if test "$with_dbmalloc" = yes ; then
12838 echo "$as_me:12838: checking for dbmalloc.h" >&5
12839 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
12840 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
12841 echo $ECHO_N "(cached) $ECHO_C" >&6
12843 cat >conftest.$ac_ext <<_ACEOF
12844 #line 12844 "configure"
12845 #include "confdefs.h"
12846 #include <dbmalloc.h>
12848 if { (eval echo "$as_me:12848: \"$ac_cpp conftest.$ac_ext\"") >&5
12849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12851 egrep -v '^ *\+' conftest.er1 >conftest.err
12853 cat conftest.err >&5
12854 echo "$as_me:12854: \$? = $ac_status" >&5
12855 (exit $ac_status); } >/dev/null; then
12856 if test -s conftest.err; then
12857 ac_cpp_err=$ac_c_preproc_warn_flag
12864 if test -z "$ac_cpp_err"; then
12865 ac_cv_header_dbmalloc_h=yes
12867 echo "$as_me: failed program was:" >&5
12868 cat conftest.$ac_ext >&5
12869 ac_cv_header_dbmalloc_h=no
12871 rm -f conftest.err conftest.$ac_ext
12873 echo "$as_me:12873: result: $ac_cv_header_dbmalloc_h" >&5
12874 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
12875 if test $ac_cv_header_dbmalloc_h = yes; then
12877 echo "$as_me:12877: checking for debug_malloc in -ldbmalloc" >&5
12878 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
12879 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
12880 echo $ECHO_N "(cached) $ECHO_C" >&6
12882 ac_check_lib_save_LIBS=$LIBS
12883 LIBS="-ldbmalloc $LIBS"
12884 cat >conftest.$ac_ext <<_ACEOF
12885 #line 12885 "configure"
12886 #include "confdefs.h"
12888 /* Override any gcc2 internal prototype to avoid an error. */
12892 /* We use char because int might match the return type of a gcc2
12893 builtin and then its argument prototype would still apply. */
12894 char debug_malloc ();
12903 rm -f conftest.$ac_objext conftest$ac_exeext
12904 if { (eval echo "$as_me:12904: \"$ac_link\"") >&5
12905 (eval $ac_link) 2>&5
12907 echo "$as_me:12907: \$? = $ac_status" >&5
12908 (exit $ac_status); } &&
12909 { ac_try='test -s conftest$ac_exeext'
12910 { (eval echo "$as_me:12910: \"$ac_try\"") >&5
12911 (eval $ac_try) 2>&5
12913 echo "$as_me:12913: \$? = $ac_status" >&5
12914 (exit $ac_status); }; }; then
12915 ac_cv_lib_dbmalloc_debug_malloc=yes
12917 echo "$as_me: failed program was:" >&5
12918 cat conftest.$ac_ext >&5
12919 ac_cv_lib_dbmalloc_debug_malloc=no
12921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12922 LIBS=$ac_check_lib_save_LIBS
12924 echo "$as_me:12924: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
12925 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
12926 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
12927 cat >>confdefs.h <<EOF
12928 #define HAVE_LIBDBMALLOC 1
12931 LIBS="-ldbmalloc $LIBS"
12939 echo "$as_me:12939: checking if you want to use valgrind for testing" >&5
12940 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
12942 # Check whether --with-valgrind or --without-valgrind was given.
12943 if test "${with_valgrind+set}" = set; then
12944 withval="$with_valgrind"
12945 cat >>confdefs.h <<\EOF
12946 #define USE_VALGRIND 1
12949 : ${with_cflags:=-g}
12950 : ${with_no_leaks:=yes}
12955 echo "$as_me:12955: result: ${with_valgrind:-no}" >&5
12956 echo "${ECHO_T}${with_valgrind:-no}" >&6
12958 case .$with_cflags in #(vi
12960 case .$CFLAGS in #(vi
12968 cf_new_extra_cppflags=
12970 for cf_add_cflags in -g
12972 case $cf_fix_cppflags in
12974 case $cf_add_cflags in #(vi
12975 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
12976 case $cf_add_cflags in
12978 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12980 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12981 && test -z "${cf_tst_cflags}" \
12982 && cf_fix_cppflags=yes
12984 if test $cf_fix_cppflags = yes ; then
12985 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12987 elif test "${cf_tst_cflags}" = "\"'" ; then
12988 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12993 case "$CPPFLAGS" in
12994 *$cf_add_cflags) #(vi
12997 case $cf_add_cflags in #(vi
12999 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13001 CPPFLAGS=`echo "$CPPFLAGS" | \
13002 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13003 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13007 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
13012 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
13017 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13019 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13021 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13022 && test -z "${cf_tst_cflags}" \
13023 && cf_fix_cppflags=no
13028 if test -n "$cf_new_cflags" ; then
13030 CFLAGS="$CFLAGS $cf_new_cflags"
13033 if test -n "$cf_new_cppflags" ; then
13035 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
13038 if test -n "$cf_new_extra_cppflags" ; then
13040 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
13048 echo "$as_me:13048: checking if you want to perform memory-leak testing" >&5
13049 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
13051 # Check whether --enable-leaks or --disable-leaks was given.
13052 if test "${enable_leaks+set}" = set; then
13053 enableval="$enable_leaks"
13054 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
13056 : ${with_no_leaks:=no}
13058 echo "$as_me:13058: result: $with_no_leaks" >&5
13059 echo "${ECHO_T}$with_no_leaks" >&6
13061 if test "$with_no_leaks" = yes ; then
13062 cat >>confdefs.h <<\EOF
13066 cat >>confdefs.h <<\EOF
13067 #define YY_NO_LEAKS 1
13072 cat >>confdefs.h <<\EOF
13073 #define HAVE_NC_ALLOC_H 1
13076 ### use option --enable-expanded to generate certain macros as functions
13078 # Check whether --enable-expanded or --disable-expanded was given.
13079 if test "${enable_expanded+set}" = set; then
13080 enableval="$enable_expanded"
13081 test "$enableval" = yes && cat >>confdefs.h <<\EOF
13082 #define NCURSES_EXPANDED 1
13087 ### use option --disable-macros to suppress macros in favor of functions
13089 # Check whether --enable-macros or --disable-macros was given.
13090 if test "${enable_macros+set}" = set; then
13091 enableval="$enable_macros"
13092 test "$enableval" = no && cat >>confdefs.h <<\EOF
13093 #define NCURSES_NOMACROS 1
13098 # Normally we only add trace() to the debug-library. Allow this to be
13099 # extended to all models of the ncurses library:
13101 case "$CFLAGS $CPPFLAGS" in
13107 echo "$as_me:13107: checking whether to add trace feature to all models" >&5
13108 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
13110 # Check whether --with-trace or --without-trace was given.
13111 if test "${with_trace+set}" = set; then
13112 withval="$with_trace"
13113 cf_with_trace=$withval
13115 cf_with_trace=$cf_all_traces
13117 echo "$as_me:13117: result: $cf_with_trace" >&5
13118 echo "${ECHO_T}$cf_with_trace" >&6
13120 if test "$cf_with_trace" = yes ; then
13127 cf_new_extra_cppflags=
13129 for cf_add_cflags in -DTRACE
13131 case $cf_fix_cppflags in
13133 case $cf_add_cflags in #(vi
13134 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
13135 case $cf_add_cflags in
13137 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13139 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13140 && test -z "${cf_tst_cflags}" \
13141 && cf_fix_cppflags=yes
13143 if test $cf_fix_cppflags = yes ; then
13144 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13146 elif test "${cf_tst_cflags}" = "\"'" ; then
13147 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13152 case "$CPPFLAGS" in
13153 *$cf_add_cflags) #(vi
13156 case $cf_add_cflags in #(vi
13158 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13160 CPPFLAGS=`echo "$CPPFLAGS" | \
13161 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13162 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13166 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
13171 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
13176 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13178 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13180 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13181 && test -z "${cf_tst_cflags}" \
13182 && cf_fix_cppflags=no
13187 if test -n "$cf_new_cflags" ; then
13189 CFLAGS="$CFLAGS $cf_new_cflags"
13192 if test -n "$cf_new_cppflags" ; then
13194 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
13197 if test -n "$cf_new_extra_cppflags" ; then
13199 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
13207 ### Checks for libraries.
13208 case $cf_cv_system_name in #(vi
13212 echo "$as_me:13212: checking for gettimeofday" >&5
13213 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
13214 if test "${ac_cv_func_gettimeofday+set}" = set; then
13215 echo $ECHO_N "(cached) $ECHO_C" >&6
13217 cat >conftest.$ac_ext <<_ACEOF
13218 #line 13218 "configure"
13219 #include "confdefs.h"
13220 /* System header to define __stub macros and hopefully few prototypes,
13221 which can conflict with char gettimeofday (); below. */
13222 #include <assert.h>
13223 /* Override any gcc2 internal prototype to avoid an error. */
13227 /* We use char because int might match the return type of a gcc2
13228 builtin and then its argument prototype would still apply. */
13229 char gettimeofday ();
13235 /* The GNU C library defines this for functions which it implements
13236 to always fail with ENOSYS. Some functions are actually named
13237 something starting with __ and the normal name is an alias. */
13238 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
13248 rm -f conftest.$ac_objext conftest$ac_exeext
13249 if { (eval echo "$as_me:13249: \"$ac_link\"") >&5
13250 (eval $ac_link) 2>&5
13252 echo "$as_me:13252: \$? = $ac_status" >&5
13253 (exit $ac_status); } &&
13254 { ac_try='test -s conftest$ac_exeext'
13255 { (eval echo "$as_me:13255: \"$ac_try\"") >&5
13256 (eval $ac_try) 2>&5
13258 echo "$as_me:13258: \$? = $ac_status" >&5
13259 (exit $ac_status); }; }; then
13260 ac_cv_func_gettimeofday=yes
13262 echo "$as_me: failed program was:" >&5
13263 cat conftest.$ac_ext >&5
13264 ac_cv_func_gettimeofday=no
13266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13268 echo "$as_me:13268: result: $ac_cv_func_gettimeofday" >&5
13269 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
13270 if test $ac_cv_func_gettimeofday = yes; then
13271 cat >>confdefs.h <<\EOF
13272 #define HAVE_GETTIMEOFDAY 1
13277 echo "$as_me:13277: checking for gettimeofday in -lbsd" >&5
13278 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
13279 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
13280 echo $ECHO_N "(cached) $ECHO_C" >&6
13282 ac_check_lib_save_LIBS=$LIBS
13284 cat >conftest.$ac_ext <<_ACEOF
13285 #line 13285 "configure"
13286 #include "confdefs.h"
13288 /* Override any gcc2 internal prototype to avoid an error. */
13292 /* We use char because int might match the return type of a gcc2
13293 builtin and then its argument prototype would still apply. */
13294 char gettimeofday ();
13303 rm -f conftest.$ac_objext conftest$ac_exeext
13304 if { (eval echo "$as_me:13304: \"$ac_link\"") >&5
13305 (eval $ac_link) 2>&5
13307 echo "$as_me:13307: \$? = $ac_status" >&5
13308 (exit $ac_status); } &&
13309 { ac_try='test -s conftest$ac_exeext'
13310 { (eval echo "$as_me:13310: \"$ac_try\"") >&5
13311 (eval $ac_try) 2>&5
13313 echo "$as_me:13313: \$? = $ac_status" >&5
13314 (exit $ac_status); }; }; then
13315 ac_cv_lib_bsd_gettimeofday=yes
13317 echo "$as_me: failed program was:" >&5
13318 cat conftest.$ac_ext >&5
13319 ac_cv_lib_bsd_gettimeofday=no
13321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13322 LIBS=$ac_check_lib_save_LIBS
13324 echo "$as_me:13324: result: $ac_cv_lib_bsd_gettimeofday" >&5
13325 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
13326 if test $ac_cv_lib_bsd_gettimeofday = yes; then
13327 cat >>confdefs.h <<\EOF
13328 #define HAVE_GETTIMEOFDAY 1
13338 echo "$as_me:13338: checking if -lm needed for math functions" >&5
13339 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
13340 if test "${cf_cv_need_libm+set}" = set; then
13341 echo $ECHO_N "(cached) $ECHO_C" >&6
13344 cat >conftest.$ac_ext <<_ACEOF
13345 #line 13345 "configure"
13346 #include "confdefs.h"
13354 double x = rand(); printf("result = %g\n", sin(x))
13359 rm -f conftest.$ac_objext conftest$ac_exeext
13360 if { (eval echo "$as_me:13360: \"$ac_link\"") >&5
13361 (eval $ac_link) 2>&5
13363 echo "$as_me:13363: \$? = $ac_status" >&5
13364 (exit $ac_status); } &&
13365 { ac_try='test -s conftest$ac_exeext'
13366 { (eval echo "$as_me:13366: \"$ac_try\"") >&5
13367 (eval $ac_try) 2>&5
13369 echo "$as_me:13369: \$? = $ac_status" >&5
13370 (exit $ac_status); }; }; then
13373 echo "$as_me: failed program was:" >&5
13374 cat conftest.$ac_ext >&5
13375 cf_cv_need_libm=yes
13377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13379 echo "$as_me:13379: result: $cf_cv_need_libm" >&5
13380 echo "${ECHO_T}$cf_cv_need_libm" >&6
13381 if test "$cf_cv_need_libm" = yes
13386 ### Checks for header files.
13387 echo "$as_me:13387: checking for ANSI C header files" >&5
13388 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13389 if test "${ac_cv_header_stdc+set}" = set; then
13390 echo $ECHO_N "(cached) $ECHO_C" >&6
13392 cat >conftest.$ac_ext <<_ACEOF
13393 #line 13393 "configure"
13394 #include "confdefs.h"
13395 #include <stdlib.h>
13396 #include <stdarg.h>
13397 #include <string.h>
13401 if { (eval echo "$as_me:13401: \"$ac_cpp conftest.$ac_ext\"") >&5
13402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13404 egrep -v '^ *\+' conftest.er1 >conftest.err
13406 cat conftest.err >&5
13407 echo "$as_me:13407: \$? = $ac_status" >&5
13408 (exit $ac_status); } >/dev/null; then
13409 if test -s conftest.err; then
13410 ac_cpp_err=$ac_c_preproc_warn_flag
13417 if test -z "$ac_cpp_err"; then
13418 ac_cv_header_stdc=yes
13420 echo "$as_me: failed program was:" >&5
13421 cat conftest.$ac_ext >&5
13422 ac_cv_header_stdc=no
13424 rm -f conftest.err conftest.$ac_ext
13426 if test $ac_cv_header_stdc = yes; then
13427 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13428 cat >conftest.$ac_ext <<_ACEOF
13429 #line 13429 "configure"
13430 #include "confdefs.h"
13431 #include <string.h>
13434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13435 egrep "memchr" >/dev/null 2>&1; then
13438 ac_cv_header_stdc=no
13444 if test $ac_cv_header_stdc = yes; then
13445 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13446 cat >conftest.$ac_ext <<_ACEOF
13447 #line 13447 "configure"
13448 #include "confdefs.h"
13449 #include <stdlib.h>
13452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13453 egrep "free" >/dev/null 2>&1; then
13456 ac_cv_header_stdc=no
13462 if test $ac_cv_header_stdc = yes; then
13463 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13464 if test "$cross_compiling" = yes; then
13467 cat >conftest.$ac_ext <<_ACEOF
13468 #line 13468 "configure"
13469 #include "confdefs.h"
13471 #if ((' ' & 0x0FF) == 0x020)
13472 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13473 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13475 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13476 || ('j' <= (c) && (c) <= 'r') \
13477 || ('s' <= (c) && (c) <= 'z'))
13478 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13481 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13486 for (i = 0; i < 256; i++)
13487 if (XOR (islower (i), ISLOWER (i))
13488 || toupper (i) != TOUPPER (i))
13489 $ac_main_return(2);
13490 $ac_main_return (0);
13493 rm -f conftest$ac_exeext
13494 if { (eval echo "$as_me:13494: \"$ac_link\"") >&5
13495 (eval $ac_link) 2>&5
13497 echo "$as_me:13497: \$? = $ac_status" >&5
13498 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13499 { (eval echo "$as_me:13499: \"$ac_try\"") >&5
13500 (eval $ac_try) 2>&5
13502 echo "$as_me:13502: \$? = $ac_status" >&5
13503 (exit $ac_status); }; }; then
13506 echo "$as_me: program exited with status $ac_status" >&5
13507 echo "$as_me: failed program was:" >&5
13508 cat conftest.$ac_ext >&5
13509 ac_cv_header_stdc=no
13511 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13515 echo "$as_me:13515: result: $ac_cv_header_stdc" >&5
13516 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13517 if test $ac_cv_header_stdc = yes; then
13519 cat >>confdefs.h <<\EOF
13520 #define STDC_HEADERS 1
13525 ac_header_dirent=no
13526 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13527 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13528 echo "$as_me:13528: checking for $ac_hdr that defines DIR" >&5
13529 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13531 echo $ECHO_N "(cached) $ECHO_C" >&6
13533 cat >conftest.$ac_ext <<_ACEOF
13534 #line 13534 "configure"
13535 #include "confdefs.h"
13536 #include <sys/types.h>
13548 rm -f conftest.$ac_objext
13549 if { (eval echo "$as_me:13549: \"$ac_compile\"") >&5
13550 (eval $ac_compile) 2>&5
13552 echo "$as_me:13552: \$? = $ac_status" >&5
13553 (exit $ac_status); } &&
13554 { ac_try='test -s conftest.$ac_objext'
13555 { (eval echo "$as_me:13555: \"$ac_try\"") >&5
13556 (eval $ac_try) 2>&5
13558 echo "$as_me:13558: \$? = $ac_status" >&5
13559 (exit $ac_status); }; }; then
13560 eval "$as_ac_Header=yes"
13562 echo "$as_me: failed program was:" >&5
13563 cat conftest.$ac_ext >&5
13564 eval "$as_ac_Header=no"
13566 rm -f conftest.$ac_objext conftest.$ac_ext
13568 echo "$as_me:13568: result: `eval echo '${'$as_ac_Header'}'`" >&5
13569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13570 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13571 cat >>confdefs.h <<EOF
13572 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13575 ac_header_dirent=$ac_hdr; break
13579 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13580 if test $ac_header_dirent = dirent.h; then
13581 echo "$as_me:13581: checking for opendir in -ldir" >&5
13582 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
13583 if test "${ac_cv_lib_dir_opendir+set}" = set; then
13584 echo $ECHO_N "(cached) $ECHO_C" >&6
13586 ac_check_lib_save_LIBS=$LIBS
13588 cat >conftest.$ac_ext <<_ACEOF
13589 #line 13589 "configure"
13590 #include "confdefs.h"
13592 /* Override any gcc2 internal prototype to avoid an error. */
13596 /* We use char because int might match the return type of a gcc2
13597 builtin and then its argument prototype would still apply. */
13607 rm -f conftest.$ac_objext conftest$ac_exeext
13608 if { (eval echo "$as_me:13608: \"$ac_link\"") >&5
13609 (eval $ac_link) 2>&5
13611 echo "$as_me:13611: \$? = $ac_status" >&5
13612 (exit $ac_status); } &&
13613 { ac_try='test -s conftest$ac_exeext'
13614 { (eval echo "$as_me:13614: \"$ac_try\"") >&5
13615 (eval $ac_try) 2>&5
13617 echo "$as_me:13617: \$? = $ac_status" >&5
13618 (exit $ac_status); }; }; then
13619 ac_cv_lib_dir_opendir=yes
13621 echo "$as_me: failed program was:" >&5
13622 cat conftest.$ac_ext >&5
13623 ac_cv_lib_dir_opendir=no
13625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13626 LIBS=$ac_check_lib_save_LIBS
13628 echo "$as_me:13628: result: $ac_cv_lib_dir_opendir" >&5
13629 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
13630 if test $ac_cv_lib_dir_opendir = yes; then
13635 echo "$as_me:13635: checking for opendir in -lx" >&5
13636 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
13637 if test "${ac_cv_lib_x_opendir+set}" = set; then
13638 echo $ECHO_N "(cached) $ECHO_C" >&6
13640 ac_check_lib_save_LIBS=$LIBS
13642 cat >conftest.$ac_ext <<_ACEOF
13643 #line 13643 "configure"
13644 #include "confdefs.h"
13646 /* Override any gcc2 internal prototype to avoid an error. */
13650 /* We use char because int might match the return type of a gcc2
13651 builtin and then its argument prototype would still apply. */
13661 rm -f conftest.$ac_objext conftest$ac_exeext
13662 if { (eval echo "$as_me:13662: \"$ac_link\"") >&5
13663 (eval $ac_link) 2>&5
13665 echo "$as_me:13665: \$? = $ac_status" >&5
13666 (exit $ac_status); } &&
13667 { ac_try='test -s conftest$ac_exeext'
13668 { (eval echo "$as_me:13668: \"$ac_try\"") >&5
13669 (eval $ac_try) 2>&5
13671 echo "$as_me:13671: \$? = $ac_status" >&5
13672 (exit $ac_status); }; }; then
13673 ac_cv_lib_x_opendir=yes
13675 echo "$as_me: failed program was:" >&5
13676 cat conftest.$ac_ext >&5
13677 ac_cv_lib_x_opendir=no
13679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13680 LIBS=$ac_check_lib_save_LIBS
13682 echo "$as_me:13682: result: $ac_cv_lib_x_opendir" >&5
13683 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
13684 if test $ac_cv_lib_x_opendir = yes; then
13690 echo "$as_me:13690: checking whether time.h and sys/time.h may both be included" >&5
13691 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
13692 if test "${ac_cv_header_time+set}" = set; then
13693 echo $ECHO_N "(cached) $ECHO_C" >&6
13695 cat >conftest.$ac_ext <<_ACEOF
13696 #line 13696 "configure"
13697 #include "confdefs.h"
13698 #include <sys/types.h>
13699 #include <sys/time.h>
13705 if ((struct tm *) 0)
13711 rm -f conftest.$ac_objext
13712 if { (eval echo "$as_me:13712: \"$ac_compile\"") >&5
13713 (eval $ac_compile) 2>&5
13715 echo "$as_me:13715: \$? = $ac_status" >&5
13716 (exit $ac_status); } &&
13717 { ac_try='test -s conftest.$ac_objext'
13718 { (eval echo "$as_me:13718: \"$ac_try\"") >&5
13719 (eval $ac_try) 2>&5
13721 echo "$as_me:13721: \$? = $ac_status" >&5
13722 (exit $ac_status); }; }; then
13723 ac_cv_header_time=yes
13725 echo "$as_me: failed program was:" >&5
13726 cat conftest.$ac_ext >&5
13727 ac_cv_header_time=no
13729 rm -f conftest.$ac_objext conftest.$ac_ext
13731 echo "$as_me:13731: result: $ac_cv_header_time" >&5
13732 echo "${ECHO_T}$ac_cv_header_time" >&6
13733 if test $ac_cv_header_time = yes; then
13735 cat >>confdefs.h <<\EOF
13736 #define TIME_WITH_SYS_TIME 1
13743 cf_regex_libs="regex re"
13744 case $host_os in #(vi
13746 cf_regex_libs="regex.dll $cf_regex_libs"
13750 echo "$as_me:13750: checking for regcomp" >&5
13751 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
13752 if test "${ac_cv_func_regcomp+set}" = set; then
13753 echo $ECHO_N "(cached) $ECHO_C" >&6
13755 cat >conftest.$ac_ext <<_ACEOF
13756 #line 13756 "configure"
13757 #include "confdefs.h"
13758 /* System header to define __stub macros and hopefully few prototypes,
13759 which can conflict with char regcomp (); below. */
13760 #include <assert.h>
13761 /* Override any gcc2 internal prototype to avoid an error. */
13765 /* We use char because int might match the return type of a gcc2
13766 builtin and then its argument prototype would still apply. */
13773 /* The GNU C library defines this for functions which it implements
13774 to always fail with ENOSYS. Some functions are actually named
13775 something starting with __ and the normal name is an alias. */
13776 #if defined (__stub_regcomp) || defined (__stub___regcomp)
13786 rm -f conftest.$ac_objext conftest$ac_exeext
13787 if { (eval echo "$as_me:13787: \"$ac_link\"") >&5
13788 (eval $ac_link) 2>&5
13790 echo "$as_me:13790: \$? = $ac_status" >&5
13791 (exit $ac_status); } &&
13792 { ac_try='test -s conftest$ac_exeext'
13793 { (eval echo "$as_me:13793: \"$ac_try\"") >&5
13794 (eval $ac_try) 2>&5
13796 echo "$as_me:13796: \$? = $ac_status" >&5
13797 (exit $ac_status); }; }; then
13798 ac_cv_func_regcomp=yes
13800 echo "$as_me: failed program was:" >&5
13801 cat conftest.$ac_ext >&5
13802 ac_cv_func_regcomp=no
13804 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13806 echo "$as_me:13806: result: $ac_cv_func_regcomp" >&5
13807 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
13808 if test $ac_cv_func_regcomp = yes; then
13809 cf_regex_func=regcomp
13812 for cf_regex_lib in $cf_regex_libs
13814 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
13815 echo "$as_me:13815: checking for regcomp in -l$cf_regex_lib" >&5
13816 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
13817 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13818 echo $ECHO_N "(cached) $ECHO_C" >&6
13820 ac_check_lib_save_LIBS=$LIBS
13821 LIBS="-l$cf_regex_lib $LIBS"
13822 cat >conftest.$ac_ext <<_ACEOF
13823 #line 13823 "configure"
13824 #include "confdefs.h"
13826 /* Override any gcc2 internal prototype to avoid an error. */
13830 /* We use char because int might match the return type of a gcc2
13831 builtin and then its argument prototype would still apply. */
13841 rm -f conftest.$ac_objext conftest$ac_exeext
13842 if { (eval echo "$as_me:13842: \"$ac_link\"") >&5
13843 (eval $ac_link) 2>&5
13845 echo "$as_me:13845: \$? = $ac_status" >&5
13846 (exit $ac_status); } &&
13847 { ac_try='test -s conftest$ac_exeext'
13848 { (eval echo "$as_me:13848: \"$ac_try\"") >&5
13849 (eval $ac_try) 2>&5
13851 echo "$as_me:13851: \$? = $ac_status" >&5
13852 (exit $ac_status); }; }; then
13853 eval "$as_ac_Lib=yes"
13855 echo "$as_me: failed program was:" >&5
13856 cat conftest.$ac_ext >&5
13857 eval "$as_ac_Lib=no"
13859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13860 LIBS=$ac_check_lib_save_LIBS
13862 echo "$as_me:13862: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13863 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13864 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13866 LIBS="-l$cf_regex_lib $LIBS"
13867 cf_regex_func=regcomp
13875 if test "$cf_regex_func" = no ; then
13876 echo "$as_me:13876: checking for compile" >&5
13877 echo $ECHO_N "checking for compile... $ECHO_C" >&6
13878 if test "${ac_cv_func_compile+set}" = set; then
13879 echo $ECHO_N "(cached) $ECHO_C" >&6
13881 cat >conftest.$ac_ext <<_ACEOF
13882 #line 13882 "configure"
13883 #include "confdefs.h"
13884 /* System header to define __stub macros and hopefully few prototypes,
13885 which can conflict with char compile (); below. */
13886 #include <assert.h>
13887 /* Override any gcc2 internal prototype to avoid an error. */
13891 /* We use char because int might match the return type of a gcc2
13892 builtin and then its argument prototype would still apply. */
13899 /* The GNU C library defines this for functions which it implements
13900 to always fail with ENOSYS. Some functions are actually named
13901 something starting with __ and the normal name is an alias. */
13902 #if defined (__stub_compile) || defined (__stub___compile)
13912 rm -f conftest.$ac_objext conftest$ac_exeext
13913 if { (eval echo "$as_me:13913: \"$ac_link\"") >&5
13914 (eval $ac_link) 2>&5
13916 echo "$as_me:13916: \$? = $ac_status" >&5
13917 (exit $ac_status); } &&
13918 { ac_try='test -s conftest$ac_exeext'
13919 { (eval echo "$as_me:13919: \"$ac_try\"") >&5
13920 (eval $ac_try) 2>&5
13922 echo "$as_me:13922: \$? = $ac_status" >&5
13923 (exit $ac_status); }; }; then
13924 ac_cv_func_compile=yes
13926 echo "$as_me: failed program was:" >&5
13927 cat conftest.$ac_ext >&5
13928 ac_cv_func_compile=no
13930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13932 echo "$as_me:13932: result: $ac_cv_func_compile" >&5
13933 echo "${ECHO_T}$ac_cv_func_compile" >&6
13934 if test $ac_cv_func_compile = yes; then
13935 cf_regex_func=compile
13938 echo "$as_me:13938: checking for compile in -lgen" >&5
13939 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
13940 if test "${ac_cv_lib_gen_compile+set}" = set; then
13941 echo $ECHO_N "(cached) $ECHO_C" >&6
13943 ac_check_lib_save_LIBS=$LIBS
13945 cat >conftest.$ac_ext <<_ACEOF
13946 #line 13946 "configure"
13947 #include "confdefs.h"
13949 /* Override any gcc2 internal prototype to avoid an error. */
13953 /* We use char because int might match the return type of a gcc2
13954 builtin and then its argument prototype would still apply. */
13964 rm -f conftest.$ac_objext conftest$ac_exeext
13965 if { (eval echo "$as_me:13965: \"$ac_link\"") >&5
13966 (eval $ac_link) 2>&5
13968 echo "$as_me:13968: \$? = $ac_status" >&5
13969 (exit $ac_status); } &&
13970 { ac_try='test -s conftest$ac_exeext'
13971 { (eval echo "$as_me:13971: \"$ac_try\"") >&5
13972 (eval $ac_try) 2>&5
13974 echo "$as_me:13974: \$? = $ac_status" >&5
13975 (exit $ac_status); }; }; then
13976 ac_cv_lib_gen_compile=yes
13978 echo "$as_me: failed program was:" >&5
13979 cat conftest.$ac_ext >&5
13980 ac_cv_lib_gen_compile=no
13982 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13983 LIBS=$ac_check_lib_save_LIBS
13985 echo "$as_me:13985: result: $ac_cv_lib_gen_compile" >&5
13986 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
13987 if test $ac_cv_lib_gen_compile = yes; then
13990 cf_regex_func=compile
13997 if test "$cf_regex_func" = no ; then
13998 { echo "$as_me:13998: WARNING: cannot find regular expression library" >&5
13999 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
14002 echo "$as_me:14002: checking for regular-expression headers" >&5
14003 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
14004 if test "${cf_cv_regex_hdrs+set}" = set; then
14005 echo $ECHO_N "(cached) $ECHO_C" >&6
14008 cf_cv_regex_hdrs=no
14009 case $cf_regex_func in #(vi
14011 for cf_regex_hdr in regexp.h regexpr.h
14013 cat >conftest.$ac_ext <<_ACEOF
14014 #line 14014 "configure"
14015 #include "confdefs.h"
14016 #include <$cf_regex_hdr>
14021 char *p = compile("", "", "", 0);
14022 int x = step("", "");
14028 rm -f conftest.$ac_objext conftest$ac_exeext
14029 if { (eval echo "$as_me:14029: \"$ac_link\"") >&5
14030 (eval $ac_link) 2>&5
14032 echo "$as_me:14032: \$? = $ac_status" >&5
14033 (exit $ac_status); } &&
14034 { ac_try='test -s conftest$ac_exeext'
14035 { (eval echo "$as_me:14035: \"$ac_try\"") >&5
14036 (eval $ac_try) 2>&5
14038 echo "$as_me:14038: \$? = $ac_status" >&5
14039 (exit $ac_status); }; }; then
14041 cf_cv_regex_hdrs=$cf_regex_hdr
14045 echo "$as_me: failed program was:" >&5
14046 cat conftest.$ac_ext >&5
14048 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14052 for cf_regex_hdr in regex.h
14054 cat >conftest.$ac_ext <<_ACEOF
14055 #line 14055 "configure"
14056 #include "confdefs.h"
14057 #include <sys/types.h>
14058 #include <$cf_regex_hdr>
14064 int x = regcomp(p, "", 0);
14065 int y = regexec(p, "", 0, 0, 0);
14072 rm -f conftest.$ac_objext conftest$ac_exeext
14073 if { (eval echo "$as_me:14073: \"$ac_link\"") >&5
14074 (eval $ac_link) 2>&5
14076 echo "$as_me:14076: \$? = $ac_status" >&5
14077 (exit $ac_status); } &&
14078 { ac_try='test -s conftest$ac_exeext'
14079 { (eval echo "$as_me:14079: \"$ac_try\"") >&5
14080 (eval $ac_try) 2>&5
14082 echo "$as_me:14082: \$? = $ac_status" >&5
14083 (exit $ac_status); }; }; then
14085 cf_cv_regex_hdrs=$cf_regex_hdr
14089 echo "$as_me: failed program was:" >&5
14090 cat conftest.$ac_ext >&5
14092 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14098 echo "$as_me:14098: result: $cf_cv_regex_hdrs" >&5
14099 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
14101 case $cf_cv_regex_hdrs in #(vi
14102 no) { echo "$as_me:14102: WARNING: no regular expression header found" >&5
14103 echo "$as_me: WARNING: no regular expression header found" >&2;} ;; #(vi
14104 regex.h) cat >>confdefs.h <<\EOF
14105 #define HAVE_REGEX_H_FUNCS 1
14108 regexp.h) cat >>confdefs.h <<\EOF
14109 #define HAVE_REGEXP_H_FUNCS 1
14112 regexpr.h) cat >>confdefs.h <<\EOF
14113 #define HAVE_REGEXPR_H_FUNCS 1
14137 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14138 echo "$as_me:14138: checking for $ac_header" >&5
14139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14141 echo $ECHO_N "(cached) $ECHO_C" >&6
14143 cat >conftest.$ac_ext <<_ACEOF
14144 #line 14144 "configure"
14145 #include "confdefs.h"
14146 #include <$ac_header>
14148 if { (eval echo "$as_me:14148: \"$ac_cpp conftest.$ac_ext\"") >&5
14149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14151 egrep -v '^ *\+' conftest.er1 >conftest.err
14153 cat conftest.err >&5
14154 echo "$as_me:14154: \$? = $ac_status" >&5
14155 (exit $ac_status); } >/dev/null; then
14156 if test -s conftest.err; then
14157 ac_cpp_err=$ac_c_preproc_warn_flag
14164 if test -z "$ac_cpp_err"; then
14165 eval "$as_ac_Header=yes"
14167 echo "$as_me: failed program was:" >&5
14168 cat conftest.$ac_ext >&5
14169 eval "$as_ac_Header=no"
14171 rm -f conftest.err conftest.$ac_ext
14173 echo "$as_me:14173: result: `eval echo '${'$as_ac_Header'}'`" >&5
14174 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14175 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14176 cat >>confdefs.h <<EOF
14177 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14183 for ac_header in unistd.h getopt.h
14185 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14186 echo "$as_me:14186: checking for $ac_header" >&5
14187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14189 echo $ECHO_N "(cached) $ECHO_C" >&6
14191 cat >conftest.$ac_ext <<_ACEOF
14192 #line 14192 "configure"
14193 #include "confdefs.h"
14194 #include <$ac_header>
14196 if { (eval echo "$as_me:14196: \"$ac_cpp conftest.$ac_ext\"") >&5
14197 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14199 egrep -v '^ *\+' conftest.er1 >conftest.err
14201 cat conftest.err >&5
14202 echo "$as_me:14202: \$? = $ac_status" >&5
14203 (exit $ac_status); } >/dev/null; then
14204 if test -s conftest.err; then
14205 ac_cpp_err=$ac_c_preproc_warn_flag
14212 if test -z "$ac_cpp_err"; then
14213 eval "$as_ac_Header=yes"
14215 echo "$as_me: failed program was:" >&5
14216 cat conftest.$ac_ext >&5
14217 eval "$as_ac_Header=no"
14219 rm -f conftest.err conftest.$ac_ext
14221 echo "$as_me:14221: result: `eval echo '${'$as_ac_Header'}'`" >&5
14222 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14224 cat >>confdefs.h <<EOF
14225 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14231 echo "$as_me:14231: checking for header declaring getopt variables" >&5
14232 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
14233 if test "${cf_cv_getopt_header+set}" = set; then
14234 echo $ECHO_N "(cached) $ECHO_C" >&6
14237 cf_cv_getopt_header=none
14238 for cf_header in stdio.h stdlib.h unistd.h getopt.h
14240 cat >conftest.$ac_ext <<_ACEOF
14241 #line 14241 "configure"
14242 #include "confdefs.h"
14244 #include <$cf_header>
14248 int x = optind; char *y = optarg
14253 rm -f conftest.$ac_objext
14254 if { (eval echo "$as_me:14254: \"$ac_compile\"") >&5
14255 (eval $ac_compile) 2>&5
14257 echo "$as_me:14257: \$? = $ac_status" >&5
14258 (exit $ac_status); } &&
14259 { ac_try='test -s conftest.$ac_objext'
14260 { (eval echo "$as_me:14260: \"$ac_try\"") >&5
14261 (eval $ac_try) 2>&5
14263 echo "$as_me:14263: \$? = $ac_status" >&5
14264 (exit $ac_status); }; }; then
14265 cf_cv_getopt_header=$cf_header
14268 echo "$as_me: failed program was:" >&5
14269 cat conftest.$ac_ext >&5
14271 rm -f conftest.$ac_objext conftest.$ac_ext
14275 echo "$as_me:14275: result: $cf_cv_getopt_header" >&5
14276 echo "${ECHO_T}$cf_cv_getopt_header" >&6
14277 if test $cf_cv_getopt_header != none ; then
14278 cat >>confdefs.h <<\EOF
14279 #define HAVE_GETOPT_HEADER 1
14284 # check for ISC (this may also define _POSIX_SOURCE)
14285 # Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
14286 if test "$ISC" = yes ; then
14288 echo "$as_me:14288: checking for main in -lcposix" >&5
14289 echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6
14290 if test "${ac_cv_lib_cposix_main+set}" = set; then
14291 echo $ECHO_N "(cached) $ECHO_C" >&6
14293 ac_check_lib_save_LIBS=$LIBS
14294 LIBS="-lcposix $LIBS"
14295 cat >conftest.$ac_ext <<_ACEOF
14296 #line 14296 "configure"
14297 #include "confdefs.h"
14307 rm -f conftest.$ac_objext conftest$ac_exeext
14308 if { (eval echo "$as_me:14308: \"$ac_link\"") >&5
14309 (eval $ac_link) 2>&5
14311 echo "$as_me:14311: \$? = $ac_status" >&5
14312 (exit $ac_status); } &&
14313 { ac_try='test -s conftest$ac_exeext'
14314 { (eval echo "$as_me:14314: \"$ac_try\"") >&5
14315 (eval $ac_try) 2>&5
14317 echo "$as_me:14317: \$? = $ac_status" >&5
14318 (exit $ac_status); }; }; then
14319 ac_cv_lib_cposix_main=yes
14321 echo "$as_me: failed program was:" >&5
14322 cat conftest.$ac_ext >&5
14323 ac_cv_lib_cposix_main=no
14325 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14326 LIBS=$ac_check_lib_save_LIBS
14328 echo "$as_me:14328: result: $ac_cv_lib_cposix_main" >&5
14329 echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6
14330 if test $ac_cv_lib_cposix_main = yes; then
14331 cat >>confdefs.h <<EOF
14332 #define HAVE_LIBCPOSIX 1
14335 LIBS="-lcposix $LIBS"
14339 echo "$as_me:14339: checking for bzero in -linet" >&5
14340 echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6
14341 if test "${ac_cv_lib_inet_bzero+set}" = set; then
14342 echo $ECHO_N "(cached) $ECHO_C" >&6
14344 ac_check_lib_save_LIBS=$LIBS
14345 LIBS="-linet $LIBS"
14346 cat >conftest.$ac_ext <<_ACEOF
14347 #line 14347 "configure"
14348 #include "confdefs.h"
14350 /* Override any gcc2 internal prototype to avoid an error. */
14354 /* We use char because int might match the return type of a gcc2
14355 builtin and then its argument prototype would still apply. */
14365 rm -f conftest.$ac_objext conftest$ac_exeext
14366 if { (eval echo "$as_me:14366: \"$ac_link\"") >&5
14367 (eval $ac_link) 2>&5
14369 echo "$as_me:14369: \$? = $ac_status" >&5
14370 (exit $ac_status); } &&
14371 { ac_try='test -s conftest$ac_exeext'
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
14377 ac_cv_lib_inet_bzero=yes
14379 echo "$as_me: failed program was:" >&5
14380 cat conftest.$ac_ext >&5
14381 ac_cv_lib_inet_bzero=no
14383 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14384 LIBS=$ac_check_lib_save_LIBS
14386 echo "$as_me:14386: result: $ac_cv_lib_inet_bzero" >&5
14387 echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6
14388 if test $ac_cv_lib_inet_bzero = yes; then
14389 LIBS="-linet $LIBS"
14393 echo "$as_me:14393: checking if sys/time.h works with sys/select.h" >&5
14394 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
14395 if test "${cf_cv_sys_time_select+set}" = set; then
14396 echo $ECHO_N "(cached) $ECHO_C" >&6
14399 cat >conftest.$ac_ext <<_ACEOF
14400 #line 14400 "configure"
14401 #include "confdefs.h"
14403 #include <sys/types.h>
14404 #ifdef HAVE_SYS_TIME_H
14405 #include <sys/time.h>
14407 #ifdef HAVE_SYS_SELECT_H
14408 #include <sys/select.h>
14419 rm -f conftest.$ac_objext
14420 if { (eval echo "$as_me:14420: \"$ac_compile\"") >&5
14421 (eval $ac_compile) 2>&5
14423 echo "$as_me:14423: \$? = $ac_status" >&5
14424 (exit $ac_status); } &&
14425 { ac_try='test -s conftest.$ac_objext'
14426 { (eval echo "$as_me:14426: \"$ac_try\"") >&5
14427 (eval $ac_try) 2>&5
14429 echo "$as_me:14429: \$? = $ac_status" >&5
14430 (exit $ac_status); }; }; then
14431 cf_cv_sys_time_select=yes
14433 echo "$as_me: failed program was:" >&5
14434 cat conftest.$ac_ext >&5
14435 cf_cv_sys_time_select=no
14437 rm -f conftest.$ac_objext conftest.$ac_ext
14441 echo "$as_me:14441: result: $cf_cv_sys_time_select" >&5
14442 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
14443 test "$cf_cv_sys_time_select" = yes && cat >>confdefs.h <<\EOF
14444 #define HAVE_SYS_TIME_SELECT 1
14447 ### checks for compiler characteristics
14449 ac_cpp='$CPP $CPPFLAGS'
14450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14453 ac_main_return=return
14455 echo "$as_me:14455: checking for $CC option to accept ANSI C" >&5
14456 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
14457 if test "${ac_cv_prog_cc_stdc+set}" = set; then
14458 echo $ECHO_N "(cached) $ECHO_C" >&6
14460 ac_cv_prog_cc_stdc=no
14462 cat >conftest.$ac_ext <<_ACEOF
14463 #line 14463 "configure"
14464 #include "confdefs.h"
14465 #include <stdarg.h>
14467 #include <sys/types.h>
14468 #include <sys/stat.h>
14469 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
14470 struct buf { int x; };
14471 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14472 static char *e (p, i)
14478 static char *f (char * (*g) (char **, int), char **p, ...)
14483 s = g (p, va_arg (v,int));
14487 int test (int i, double x);
14488 struct s1 {int (*f) (int a);};
14489 struct s2 {int (*f) (double a);};
14490 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14496 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
14501 # Don't try gcc -ansi; that turns off useful extensions and
14502 # breaks some systems' header files.
14503 # AIX -qlanglvl=ansi
14504 # Ultrix and OSF/1 -std1
14505 # HP-UX 10.20 and later -Ae
14506 # HP-UX older versions -Aa -D_HPUX_SOURCE
14507 # SVR4 -Xc -D__EXTENSIONS__
14508 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14510 CC="$ac_save_CC $ac_arg"
14511 rm -f conftest.$ac_objext
14512 if { (eval echo "$as_me:14512: \"$ac_compile\"") >&5
14513 (eval $ac_compile) 2>&5
14515 echo "$as_me:14515: \$? = $ac_status" >&5
14516 (exit $ac_status); } &&
14517 { ac_try='test -s conftest.$ac_objext'
14518 { (eval echo "$as_me:14518: \"$ac_try\"") >&5
14519 (eval $ac_try) 2>&5
14521 echo "$as_me:14521: \$? = $ac_status" >&5
14522 (exit $ac_status); }; }; then
14523 ac_cv_prog_cc_stdc=$ac_arg
14526 echo "$as_me: failed program was:" >&5
14527 cat conftest.$ac_ext >&5
14529 rm -f conftest.$ac_objext
14531 rm -f conftest.$ac_ext conftest.$ac_objext
14536 case "x$ac_cv_prog_cc_stdc" in
14538 echo "$as_me:14538: result: none needed" >&5
14539 echo "${ECHO_T}none needed" >&6 ;;
14541 echo "$as_me:14541: result: $ac_cv_prog_cc_stdc" >&5
14542 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
14543 CC="$CC $ac_cv_prog_cc_stdc" ;;
14546 echo "$as_me:14546: checking for an ANSI C-conforming const" >&5
14547 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14548 if test "${ac_cv_c_const+set}" = set; then
14549 echo $ECHO_N "(cached) $ECHO_C" >&6
14551 cat >conftest.$ac_ext <<_ACEOF
14552 #line 14552 "configure"
14553 #include "confdefs.h"
14558 /* FIXME: Include the comments suggested by Paul. */
14559 #ifndef __cplusplus
14560 /* Ultrix mips cc rejects this. */
14561 typedef int charset[2];
14563 /* SunOS 4.1.1 cc rejects this. */
14564 char const *const *ccp;
14566 /* NEC SVR4.0.2 mips cc rejects this. */
14567 struct point {int x, y;};
14568 static struct point const zero = {0,0};
14569 /* AIX XL C 1.02.0.0 rejects this.
14570 It does not let you subtract one const X* pointer from another in
14571 an arm of an if-expression whose if-part is not a constant
14573 const char *g = "string";
14574 ccp = &g + (g ? g-g : 0);
14575 /* HPUX 7.0 cc rejects these. */
14578 ccp = (char const *const *) p;
14579 { /* SCO 3.2v4 cc rejects this. */
14581 char const *s = 0 ? (char *) 0 : (char const *) 0;
14585 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14586 int x[] = {25, 17};
14587 const int *foo = &x[0];
14590 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14591 typedef const int *iptr;
14595 { /* AIX XL C 1.02.0.0 rejects this saying
14596 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14597 struct s { int j; const int *ap[3]; };
14598 struct s *b; b->j = 5;
14600 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14601 const int foo = 10;
14609 rm -f conftest.$ac_objext
14610 if { (eval echo "$as_me:14610: \"$ac_compile\"") >&5
14611 (eval $ac_compile) 2>&5
14613 echo "$as_me:14613: \$? = $ac_status" >&5
14614 (exit $ac_status); } &&
14615 { ac_try='test -s conftest.$ac_objext'
14616 { (eval echo "$as_me:14616: \"$ac_try\"") >&5
14617 (eval $ac_try) 2>&5
14619 echo "$as_me:14619: \$? = $ac_status" >&5
14620 (exit $ac_status); }; }; then
14623 echo "$as_me: failed program was:" >&5
14624 cat conftest.$ac_ext >&5
14627 rm -f conftest.$ac_objext conftest.$ac_ext
14629 echo "$as_me:14629: result: $ac_cv_c_const" >&5
14630 echo "${ECHO_T}$ac_cv_c_const" >&6
14631 if test $ac_cv_c_const = no; then
14633 cat >>confdefs.h <<\EOF
14639 echo "$as_me:14639: checking for inline" >&5
14640 echo $ECHO_N "checking for inline... $ECHO_C" >&6
14641 if test "${ac_cv_c_inline+set}" = set; then
14642 echo $ECHO_N "(cached) $ECHO_C" >&6
14645 for ac_kw in inline __inline__ __inline; do
14646 cat >conftest.$ac_ext <<_ACEOF
14647 #line 14647 "configure"
14648 #include "confdefs.h"
14649 #ifndef __cplusplus
14650 static $ac_kw int static_foo () {return 0; }
14651 $ac_kw int foo () {return 0; }
14655 rm -f conftest.$ac_objext
14656 if { (eval echo "$as_me:14656: \"$ac_compile\"") >&5
14657 (eval $ac_compile) 2>&5
14659 echo "$as_me:14659: \$? = $ac_status" >&5
14660 (exit $ac_status); } &&
14661 { ac_try='test -s conftest.$ac_objext'
14662 { (eval echo "$as_me:14662: \"$ac_try\"") >&5
14663 (eval $ac_try) 2>&5
14665 echo "$as_me:14665: \$? = $ac_status" >&5
14666 (exit $ac_status); }; }; then
14667 ac_cv_c_inline=$ac_kw; break
14669 echo "$as_me: failed program was:" >&5
14670 cat conftest.$ac_ext >&5
14672 rm -f conftest.$ac_objext conftest.$ac_ext
14676 echo "$as_me:14676: result: $ac_cv_c_inline" >&5
14677 echo "${ECHO_T}$ac_cv_c_inline" >&6
14678 case $ac_cv_c_inline in
14681 cat >>confdefs.h <<\EOF
14685 *) cat >>confdefs.h <<EOF
14686 #define inline $ac_cv_c_inline
14692 if test "$ac_cv_c_inline" != no ; then
14693 NCURSES_INLINE=inline
14694 if test "$INTEL_COMPILER" = yes
14697 elif test "$GCC" = yes
14699 echo "$as_me:14699: checking if $CC supports options to tune inlining" >&5
14700 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
14701 if test "${cf_cv_gcc_inline+set}" = set; then
14702 echo $ECHO_N "(cached) $ECHO_C" >&6
14705 cf_save_CFLAGS=$CFLAGS
14706 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
14707 cat >conftest.$ac_ext <<_ACEOF
14708 #line 14708 "configure"
14709 #include "confdefs.h"
14710 inline int foo(void) { return 1; }
14714 ${cf_cv_main_return:-return} foo()
14719 rm -f conftest.$ac_objext
14720 if { (eval echo "$as_me:14720: \"$ac_compile\"") >&5
14721 (eval $ac_compile) 2>&5
14723 echo "$as_me:14723: \$? = $ac_status" >&5
14724 (exit $ac_status); } &&
14725 { ac_try='test -s conftest.$ac_objext'
14726 { (eval echo "$as_me:14726: \"$ac_try\"") >&5
14727 (eval $ac_try) 2>&5
14729 echo "$as_me:14729: \$? = $ac_status" >&5
14730 (exit $ac_status); }; }; then
14731 cf_cv_gcc_inline=yes
14733 echo "$as_me: failed program was:" >&5
14734 cat conftest.$ac_ext >&5
14735 cf_cv_gcc_inline=no
14737 rm -f conftest.$ac_objext conftest.$ac_ext
14738 CFLAGS=$cf_save_CFLAGS
14741 echo "$as_me:14741: result: $cf_cv_gcc_inline" >&5
14742 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
14743 if test "$cf_cv_gcc_inline" = yes ; then
14748 cf_new_extra_cppflags=
14750 for cf_add_cflags in --param max-inline-insns-single=1200
14752 case $cf_fix_cppflags in
14754 case $cf_add_cflags in #(vi
14755 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
14756 case $cf_add_cflags in
14758 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14760 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
14761 && test -z "${cf_tst_cflags}" \
14762 && cf_fix_cppflags=yes
14764 if test $cf_fix_cppflags = yes ; then
14765 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14767 elif test "${cf_tst_cflags}" = "\"'" ; then
14768 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14773 case "$CPPFLAGS" in
14774 *$cf_add_cflags) #(vi
14777 case $cf_add_cflags in #(vi
14779 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14781 CPPFLAGS=`echo "$CPPFLAGS" | \
14782 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14783 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14787 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
14792 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
14797 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14799 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14801 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
14802 && test -z "${cf_tst_cflags}" \
14803 && cf_fix_cppflags=no
14808 if test -n "$cf_new_cflags" ; then
14810 CFLAGS="$CFLAGS $cf_new_cflags"
14813 if test -n "$cf_new_cppflags" ; then
14815 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
14818 if test -n "$cf_new_extra_cppflags" ; then
14820 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
14827 echo "$as_me:14827: checking for signal global datatype" >&5
14828 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
14829 if test "${cf_cv_sig_atomic_t+set}" = set; then
14830 echo $ECHO_N "(cached) $ECHO_C" >&6
14834 "volatile sig_atomic_t" \
14838 cat >conftest.$ac_ext <<_ACEOF
14839 #line 14839 "configure"
14840 #include "confdefs.h"
14842 #include <sys/types.h>
14843 #include <signal.h>
14848 static void handler(int sig)
14855 signal(SIGINT, handler);
14861 rm -f conftest.$ac_objext
14862 if { (eval echo "$as_me:14862: \"$ac_compile\"") >&5
14863 (eval $ac_compile) 2>&5
14865 echo "$as_me:14865: \$? = $ac_status" >&5
14866 (exit $ac_status); } &&
14867 { ac_try='test -s conftest.$ac_objext'
14868 { (eval echo "$as_me:14868: \"$ac_try\"") >&5
14869 (eval $ac_try) 2>&5
14871 echo "$as_me:14871: \$? = $ac_status" >&5
14872 (exit $ac_status); }; }; then
14873 cf_cv_sig_atomic_t=$cf_type
14875 echo "$as_me: failed program was:" >&5
14876 cat conftest.$ac_ext >&5
14877 cf_cv_sig_atomic_t=no
14879 rm -f conftest.$ac_objext conftest.$ac_ext
14880 test "$cf_cv_sig_atomic_t" != no && break
14885 echo "$as_me:14885: result: $cf_cv_sig_atomic_t" >&5
14886 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
14887 test "$cf_cv_sig_atomic_t" != no && cat >>confdefs.h <<EOF
14888 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
14891 if test $NCURSES_CHTYPE = auto ; then
14893 echo "$as_me:14893: checking for type of chtype" >&5
14894 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
14895 if test "${cf_cv_typeof_chtype+set}" = set; then
14896 echo $ECHO_N "(cached) $ECHO_C" >&6
14899 if test "$cross_compiling" = yes; then
14900 cf_cv_typeof_chtype=long
14902 cat >conftest.$ac_ext <<_ACEOF
14903 #line 14903 "configure"
14904 #include "confdefs.h"
14906 #define WANT_BITS 31
14910 FILE *fp = fopen("cf_test.out", "w");
14912 char *result = "long";
14913 if (sizeof(unsigned long) > sizeof(unsigned int)) {
14916 for (n = 0; n < WANT_BITS; n++) {
14919 if (y != 1 || x == 0) {
14925 * If x is nonzero, an int is big enough for the bits
14928 result = (x != 0) ? "int" : "long";
14933 ${cf_cv_main_return:-return}(0);
14937 rm -f conftest$ac_exeext
14938 if { (eval echo "$as_me:14938: \"$ac_link\"") >&5
14939 (eval $ac_link) 2>&5
14941 echo "$as_me:14941: \$? = $ac_status" >&5
14942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14943 { (eval echo "$as_me:14943: \"$ac_try\"") >&5
14944 (eval $ac_try) 2>&5
14946 echo "$as_me:14946: \$? = $ac_status" >&5
14947 (exit $ac_status); }; }; then
14948 cf_cv_typeof_chtype=`cat cf_test.out`
14950 echo "$as_me: program exited with status $ac_status" >&5
14951 echo "$as_me: failed program was:" >&5
14952 cat conftest.$ac_ext >&5
14953 cf_cv_typeof_chtype=long
14955 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14961 echo "$as_me:14961: result: $cf_cv_typeof_chtype" >&5
14962 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
14964 cat >>confdefs.h <<EOF
14965 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
14969 cf_cv_typeof_chtype=$NCURSES_CHTYPE
14971 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
14973 echo "$as_me:14973: checking if unsigned literals are legal" >&5
14974 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
14975 if test "${cf_cv_unsigned_literals+set}" = set; then
14976 echo $ECHO_N "(cached) $ECHO_C" >&6
14979 cat >conftest.$ac_ext <<_ACEOF
14980 #line 14980 "configure"
14981 #include "confdefs.h"
14986 long x = 1L + 1UL + 1U + 1
14991 rm -f conftest.$ac_objext
14992 if { (eval echo "$as_me:14992: \"$ac_compile\"") >&5
14993 (eval $ac_compile) 2>&5
14995 echo "$as_me:14995: \$? = $ac_status" >&5
14996 (exit $ac_status); } &&
14997 { ac_try='test -s conftest.$ac_objext'
14998 { (eval echo "$as_me:14998: \"$ac_try\"") >&5
14999 (eval $ac_try) 2>&5
15001 echo "$as_me:15001: \$? = $ac_status" >&5
15002 (exit $ac_status); }; }; then
15003 cf_cv_unsigned_literals=yes
15005 echo "$as_me: failed program was:" >&5
15006 cat conftest.$ac_ext >&5
15007 cf_cv_unsigned_literals=no
15009 rm -f conftest.$ac_objext conftest.$ac_ext
15013 echo "$as_me:15013: result: $cf_cv_unsigned_literals" >&5
15014 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
15017 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
15018 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
15020 if test $NCURSES_MMASK_T = auto ; then
15021 cf_cv_typeof_mmask_t=long
15023 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
15025 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
15027 ### Checks for external-data
15029 echo "$as_me:15029: checking if external errno is declared" >&5
15030 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
15031 if test "${cf_cv_dcl_errno+set}" = set; then
15032 echo $ECHO_N "(cached) $ECHO_C" >&6
15035 cat >conftest.$ac_ext <<_ACEOF
15036 #line 15036 "configure"
15037 #include "confdefs.h"
15039 #ifdef HAVE_STDLIB_H
15040 #include <stdlib.h>
15043 #include <sys/types.h>
15048 int x = (int) errno
15053 rm -f conftest.$ac_objext
15054 if { (eval echo "$as_me:15054: \"$ac_compile\"") >&5
15055 (eval $ac_compile) 2>&5
15057 echo "$as_me:15057: \$? = $ac_status" >&5
15058 (exit $ac_status); } &&
15059 { ac_try='test -s conftest.$ac_objext'
15060 { (eval echo "$as_me:15060: \"$ac_try\"") >&5
15061 (eval $ac_try) 2>&5
15063 echo "$as_me:15063: \$? = $ac_status" >&5
15064 (exit $ac_status); }; }; then
15065 cf_cv_dcl_errno=yes
15067 echo "$as_me: failed program was:" >&5
15068 cat conftest.$ac_ext >&5
15071 rm -f conftest.$ac_objext conftest.$ac_ext
15074 echo "$as_me:15074: result: $cf_cv_dcl_errno" >&5
15075 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
15077 if test "$cf_cv_dcl_errno" = no ; then
15079 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15081 cat >>confdefs.h <<EOF
15082 #define $cf_result 1
15087 # It's possible (for near-UNIX clones) that the data doesn't exist
15089 echo "$as_me:15089: checking if external errno exists" >&5
15090 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
15091 if test "${cf_cv_have_errno+set}" = set; then
15092 echo $ECHO_N "(cached) $ECHO_C" >&6
15095 cat >conftest.$ac_ext <<_ACEOF
15096 #line 15096 "configure"
15097 #include "confdefs.h"
15110 rm -f conftest.$ac_objext conftest$ac_exeext
15111 if { (eval echo "$as_me:15111: \"$ac_link\"") >&5
15112 (eval $ac_link) 2>&5
15114 echo "$as_me:15114: \$? = $ac_status" >&5
15115 (exit $ac_status); } &&
15116 { ac_try='test -s conftest$ac_exeext'
15117 { (eval echo "$as_me:15117: \"$ac_try\"") >&5
15118 (eval $ac_try) 2>&5
15120 echo "$as_me:15120: \$? = $ac_status" >&5
15121 (exit $ac_status); }; }; then
15122 cf_cv_have_errno=yes
15124 echo "$as_me: failed program was:" >&5
15125 cat conftest.$ac_ext >&5
15126 cf_cv_have_errno=no
15128 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15131 echo "$as_me:15131: result: $cf_cv_have_errno" >&5
15132 echo "${ECHO_T}$cf_cv_have_errno" >&6
15134 if test "$cf_cv_have_errno" = yes ; then
15136 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15138 cat >>confdefs.h <<EOF
15139 #define $cf_result 1
15144 echo "$as_me:15144: checking if data-only library module links" >&5
15145 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
15146 if test "${cf_cv_link_dataonly+set}" = set; then
15147 echo $ECHO_N "(cached) $ECHO_C" >&6
15151 cat >conftest.$ac_ext <<EOF
15152 #line 15152 "configure"
15153 int testdata[3] = { 123, 456, 789 };
15155 if { (eval echo "$as_me:15155: \"$ac_compile\"") >&5
15156 (eval $ac_compile) 2>&5
15158 echo "$as_me:15158: \$? = $ac_status" >&5
15159 (exit $ac_status); } ; then
15160 mv conftest.o data.o && \
15161 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
15163 rm -f conftest.$ac_ext data.o
15164 cat >conftest.$ac_ext <<EOF
15165 #line 15165 "configure"
15169 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
15171 extern int testdata[3];
15172 return testdata[0] == 123
15173 && testdata[1] == 456
15174 && testdata[2] == 789;
15178 if { (eval echo "$as_me:15178: \"$ac_compile\"") >&5
15179 (eval $ac_compile) 2>&5
15181 echo "$as_me:15181: \$? = $ac_status" >&5
15182 (exit $ac_status); }; then
15183 mv conftest.o func.o && \
15184 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
15186 rm -f conftest.$ac_ext func.o
15187 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
15188 cf_saveLIBS="$LIBS"
15189 LIBS="conftest.a $LIBS"
15190 if test "$cross_compiling" = yes; then
15191 cf_cv_link_dataonly=unknown
15193 cat >conftest.$ac_ext <<_ACEOF
15194 #line 15194 "configure"
15195 #include "confdefs.h"
15199 extern int testfunc();
15200 ${cf_cv_main_return:-return} (!testfunc());
15204 rm -f conftest$ac_exeext
15205 if { (eval echo "$as_me:15205: \"$ac_link\"") >&5
15206 (eval $ac_link) 2>&5
15208 echo "$as_me:15208: \$? = $ac_status" >&5
15209 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15210 { (eval echo "$as_me:15210: \"$ac_try\"") >&5
15211 (eval $ac_try) 2>&5
15213 echo "$as_me:15213: \$? = $ac_status" >&5
15214 (exit $ac_status); }; }; then
15215 cf_cv_link_dataonly=yes
15217 echo "$as_me: program exited with status $ac_status" >&5
15218 echo "$as_me: failed program was:" >&5
15219 cat conftest.$ac_ext >&5
15220 cf_cv_link_dataonly=no
15222 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15224 LIBS="$cf_saveLIBS"
15228 echo "$as_me:15228: result: $cf_cv_link_dataonly" >&5
15229 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
15231 if test "$cf_cv_link_dataonly" = no ; then
15232 cat >>confdefs.h <<\EOF
15233 #define BROKEN_LINKER 1
15239 ### Checks for library functions.
15262 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15263 echo "$as_me:15263: checking for $ac_func" >&5
15264 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15265 if eval "test \"\${$as_ac_var+set}\" = set"; then
15266 echo $ECHO_N "(cached) $ECHO_C" >&6
15268 cat >conftest.$ac_ext <<_ACEOF
15269 #line 15269 "configure"
15270 #include "confdefs.h"
15271 /* System header to define __stub macros and hopefully few prototypes,
15272 which can conflict with char $ac_func (); below. */
15273 #include <assert.h>
15274 /* Override any gcc2 internal prototype to avoid an error. */
15278 /* We use char because int might match the return type of a gcc2
15279 builtin and then its argument prototype would still apply. */
15286 /* The GNU C library defines this for functions which it implements
15287 to always fail with ENOSYS. Some functions are actually named
15288 something starting with __ and the normal name is an alias. */
15289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15299 rm -f conftest.$ac_objext conftest$ac_exeext
15300 if { (eval echo "$as_me:15300: \"$ac_link\"") >&5
15301 (eval $ac_link) 2>&5
15303 echo "$as_me:15303: \$? = $ac_status" >&5
15304 (exit $ac_status); } &&
15305 { ac_try='test -s conftest$ac_exeext'
15306 { (eval echo "$as_me:15306: \"$ac_try\"") >&5
15307 (eval $ac_try) 2>&5
15309 echo "$as_me:15309: \$? = $ac_status" >&5
15310 (exit $ac_status); }; }; then
15311 eval "$as_ac_var=yes"
15313 echo "$as_me: failed program was:" >&5
15314 cat conftest.$ac_ext >&5
15315 eval "$as_ac_var=no"
15317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15319 echo "$as_me:15319: result: `eval echo '${'$as_ac_var'}'`" >&5
15320 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15321 if test `eval echo '${'$as_ac_var'}'` = yes; then
15322 cat >>confdefs.h <<EOF
15323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15329 if test "$with_getcap" = "yes" ; then
15331 echo "$as_me:15331: checking for terminal-capability database functions" >&5
15332 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
15333 if test "${cf_cv_cgetent+set}" = set; then
15334 echo $ECHO_N "(cached) $ECHO_C" >&6
15337 cat >conftest.$ac_ext <<_ACEOF
15338 #line 15338 "configure"
15339 #include "confdefs.h"
15341 #include <stdlib.h>
15348 char *db_array = temp;
15349 cgetent(&buf, &db_array, "vt100");
15350 cgetcap(buf, "tc", '=');
15351 cgetmatch(buf, "tc");
15357 rm -f conftest.$ac_objext conftest$ac_exeext
15358 if { (eval echo "$as_me:15358: \"$ac_link\"") >&5
15359 (eval $ac_link) 2>&5
15361 echo "$as_me:15361: \$? = $ac_status" >&5
15362 (exit $ac_status); } &&
15363 { ac_try='test -s conftest$ac_exeext'
15364 { (eval echo "$as_me:15364: \"$ac_try\"") >&5
15365 (eval $ac_try) 2>&5
15367 echo "$as_me:15367: \$? = $ac_status" >&5
15368 (exit $ac_status); }; }; then
15371 echo "$as_me: failed program was:" >&5
15372 cat conftest.$ac_ext >&5
15375 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15378 echo "$as_me:15378: result: $cf_cv_cgetent" >&5
15379 echo "${ECHO_T}$cf_cv_cgetent" >&6
15381 if test "$cf_cv_cgetent" = yes
15383 cat >>confdefs.h <<\EOF
15384 #define HAVE_BSD_CGETENT 1
15387 echo "$as_me:15387: checking if cgetent uses const parameter" >&5
15388 echo $ECHO_N "checking if cgetent uses const parameter... $ECHO_C" >&6
15389 if test "${cf_cv_cgetent_const+set}" = set; then
15390 echo $ECHO_N "(cached) $ECHO_C" >&6
15393 cat >conftest.$ac_ext <<_ACEOF
15394 #line 15394 "configure"
15395 #include "confdefs.h"
15397 #include <stdlib.h>
15404 #ifndef _NETBSD_SOURCE /* given, since April 2004 in stdlib.h */
15405 const char *db_array = temp;
15406 cgetent(&buf, &db_array, "vt100");
15408 cgetcap(buf, "tc", '=');
15409 cgetmatch(buf, "tc");
15415 rm -f conftest.$ac_objext conftest$ac_exeext
15416 if { (eval echo "$as_me:15416: \"$ac_link\"") >&5
15417 (eval $ac_link) 2>&5
15419 echo "$as_me:15419: \$? = $ac_status" >&5
15420 (exit $ac_status); } &&
15421 { ac_try='test -s conftest$ac_exeext'
15422 { (eval echo "$as_me:15422: \"$ac_try\"") >&5
15423 (eval $ac_try) 2>&5
15425 echo "$as_me:15425: \$? = $ac_status" >&5
15426 (exit $ac_status); }; }; then
15427 cf_cv_cgetent_const=yes
15429 echo "$as_me: failed program was:" >&5
15430 cat conftest.$ac_ext >&5
15431 cf_cv_cgetent_const=no
15433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15436 echo "$as_me:15436: result: $cf_cv_cgetent_const" >&5
15437 echo "${ECHO_T}$cf_cv_cgetent_const" >&6
15438 if test "$cf_cv_cgetent_const" = yes
15440 cat >>confdefs.h <<EOF
15441 #define CGETENT_CONST const
15449 echo "$as_me:15449: checking for isascii" >&5
15450 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
15451 if test "${cf_cv_have_isascii+set}" = set; then
15452 echo $ECHO_N "(cached) $ECHO_C" >&6
15455 cat >conftest.$ac_ext <<_ACEOF
15456 #line 15456 "configure"
15457 #include "confdefs.h"
15462 int x = isascii(' ')
15467 rm -f conftest.$ac_objext conftest$ac_exeext
15468 if { (eval echo "$as_me:15468: \"$ac_link\"") >&5
15469 (eval $ac_link) 2>&5
15471 echo "$as_me:15471: \$? = $ac_status" >&5
15472 (exit $ac_status); } &&
15473 { ac_try='test -s conftest$ac_exeext'
15474 { (eval echo "$as_me:15474: \"$ac_try\"") >&5
15475 (eval $ac_try) 2>&5
15477 echo "$as_me:15477: \$? = $ac_status" >&5
15478 (exit $ac_status); }; }; then
15479 cf_cv_have_isascii=yes
15481 echo "$as_me: failed program was:" >&5
15482 cat conftest.$ac_ext >&5
15483 cf_cv_have_isascii=no
15485 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15488 echo "$as_me:15488: result: $cf_cv_have_isascii" >&5
15489 echo "${ECHO_T}$cf_cv_have_isascii" >&6
15490 test "$cf_cv_have_isascii" = yes && cat >>confdefs.h <<\EOF
15491 #define HAVE_ISASCII 1
15494 if test "$ac_cv_func_sigaction" = yes; then
15495 echo "$as_me:15495: checking whether sigaction needs _POSIX_SOURCE" >&5
15496 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
15497 cat >conftest.$ac_ext <<_ACEOF
15498 #line 15498 "configure"
15499 #include "confdefs.h"
15501 #include <sys/types.h>
15502 #include <signal.h>
15506 struct sigaction act
15511 rm -f conftest.$ac_objext
15512 if { (eval echo "$as_me:15512: \"$ac_compile\"") >&5
15513 (eval $ac_compile) 2>&5
15515 echo "$as_me:15515: \$? = $ac_status" >&5
15516 (exit $ac_status); } &&
15517 { ac_try='test -s conftest.$ac_objext'
15518 { (eval echo "$as_me:15518: \"$ac_try\"") >&5
15519 (eval $ac_try) 2>&5
15521 echo "$as_me:15521: \$? = $ac_status" >&5
15522 (exit $ac_status); }; }; then
15525 echo "$as_me: failed program was:" >&5
15526 cat conftest.$ac_ext >&5
15528 cat >conftest.$ac_ext <<_ACEOF
15529 #line 15529 "configure"
15530 #include "confdefs.h"
15532 #define _POSIX_SOURCE
15533 #include <sys/types.h>
15534 #include <signal.h>
15538 struct sigaction act
15543 rm -f conftest.$ac_objext
15544 if { (eval echo "$as_me:15544: \"$ac_compile\"") >&5
15545 (eval $ac_compile) 2>&5
15547 echo "$as_me:15547: \$? = $ac_status" >&5
15548 (exit $ac_status); } &&
15549 { ac_try='test -s conftest.$ac_objext'
15550 { (eval echo "$as_me:15550: \"$ac_try\"") >&5
15551 (eval $ac_try) 2>&5
15553 echo "$as_me:15553: \$? = $ac_status" >&5
15554 (exit $ac_status); }; }; then
15556 cat >>confdefs.h <<\EOF
15557 #define _POSIX_SOURCE 1
15561 echo "$as_me: failed program was:" >&5
15562 cat conftest.$ac_ext >&5
15565 rm -f conftest.$ac_objext conftest.$ac_ext
15567 rm -f conftest.$ac_objext conftest.$ac_ext
15568 echo "$as_me:15568: result: $sigact_bad" >&5
15569 echo "${ECHO_T}$sigact_bad" >&6
15572 echo "$as_me:15572: checking if nanosleep really works" >&5
15573 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
15574 if test "${cf_cv_func_nanosleep+set}" = set; then
15575 echo $ECHO_N "(cached) $ECHO_C" >&6
15578 if test "$cross_compiling" = yes; then
15579 cf_cv_func_nanosleep=unknown
15581 cat >conftest.$ac_ext <<_ACEOF
15582 #line 15582 "configure"
15583 #include "confdefs.h"
15589 #ifdef HAVE_SYS_TIME_H
15590 #include <sys/time.h>
15594 struct timespec ts1, ts2;
15597 ts1.tv_nsec = 750000000;
15601 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
15602 ${cf_cv_main_return:-return}(code != 0);
15606 rm -f conftest$ac_exeext
15607 if { (eval echo "$as_me:15607: \"$ac_link\"") >&5
15608 (eval $ac_link) 2>&5
15610 echo "$as_me:15610: \$? = $ac_status" >&5
15611 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15612 { (eval echo "$as_me:15612: \"$ac_try\"") >&5
15613 (eval $ac_try) 2>&5
15615 echo "$as_me:15615: \$? = $ac_status" >&5
15616 (exit $ac_status); }; }; then
15617 cf_cv_func_nanosleep=yes
15619 echo "$as_me: program exited with status $ac_status" >&5
15620 echo "$as_me: failed program was:" >&5
15621 cat conftest.$ac_ext >&5
15622 cf_cv_func_nanosleep=no
15624 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15627 echo "$as_me:15627: result: $cf_cv_func_nanosleep" >&5
15628 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
15630 test "$cf_cv_func_nanosleep" = "yes" && cat >>confdefs.h <<\EOF
15631 #define HAVE_NANOSLEEP 1
15640 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15641 echo "$as_me:15641: checking for $ac_header" >&5
15642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15644 echo $ECHO_N "(cached) $ECHO_C" >&6
15646 cat >conftest.$ac_ext <<_ACEOF
15647 #line 15647 "configure"
15648 #include "confdefs.h"
15649 #include <$ac_header>
15651 if { (eval echo "$as_me:15651: \"$ac_cpp conftest.$ac_ext\"") >&5
15652 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15654 egrep -v '^ *\+' conftest.er1 >conftest.err
15656 cat conftest.err >&5
15657 echo "$as_me:15657: \$? = $ac_status" >&5
15658 (exit $ac_status); } >/dev/null; then
15659 if test -s conftest.err; then
15660 ac_cpp_err=$ac_c_preproc_warn_flag
15667 if test -z "$ac_cpp_err"; then
15668 eval "$as_ac_Header=yes"
15670 echo "$as_me: failed program was:" >&5
15671 cat conftest.$ac_ext >&5
15672 eval "$as_ac_Header=no"
15674 rm -f conftest.err conftest.$ac_ext
15676 echo "$as_me:15676: result: `eval echo '${'$as_ac_Header'}'`" >&5
15677 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15679 cat >>confdefs.h <<EOF
15680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15686 if test "$ISC" = yes ; then
15688 for ac_header in sys/termio.h
15690 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15691 echo "$as_me:15691: checking for $ac_header" >&5
15692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15694 echo $ECHO_N "(cached) $ECHO_C" >&6
15696 cat >conftest.$ac_ext <<_ACEOF
15697 #line 15697 "configure"
15698 #include "confdefs.h"
15699 #include <$ac_header>
15701 if { (eval echo "$as_me:15701: \"$ac_cpp conftest.$ac_ext\"") >&5
15702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15704 egrep -v '^ *\+' conftest.er1 >conftest.err
15706 cat conftest.err >&5
15707 echo "$as_me:15707: \$? = $ac_status" >&5
15708 (exit $ac_status); } >/dev/null; then
15709 if test -s conftest.err; then
15710 ac_cpp_err=$ac_c_preproc_warn_flag
15717 if test -z "$ac_cpp_err"; then
15718 eval "$as_ac_Header=yes"
15720 echo "$as_me: failed program was:" >&5
15721 cat conftest.$ac_ext >&5
15722 eval "$as_ac_Header=no"
15724 rm -f conftest.err conftest.$ac_ext
15726 echo "$as_me:15726: result: `eval echo '${'$as_ac_Header'}'`" >&5
15727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15729 cat >>confdefs.h <<EOF
15730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15737 if test "$ac_cv_header_termios_h" = yes ; then
15738 case "$CFLAGS $CPPFLAGS" in
15740 termios_bad=dunno ;;
15741 *) termios_bad=maybe ;;
15743 if test "$termios_bad" = maybe ; then
15744 echo "$as_me:15744: checking whether termios.h needs _POSIX_SOURCE" >&5
15745 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
15746 cat >conftest.$ac_ext <<_ACEOF
15747 #line 15747 "configure"
15748 #include "confdefs.h"
15749 #include <termios.h>
15753 struct termios foo; int x = foo.c_iflag
15758 rm -f conftest.$ac_objext
15759 if { (eval echo "$as_me:15759: \"$ac_compile\"") >&5
15760 (eval $ac_compile) 2>&5
15762 echo "$as_me:15762: \$? = $ac_status" >&5
15763 (exit $ac_status); } &&
15764 { ac_try='test -s conftest.$ac_objext'
15765 { (eval echo "$as_me:15765: \"$ac_try\"") >&5
15766 (eval $ac_try) 2>&5
15768 echo "$as_me:15768: \$? = $ac_status" >&5
15769 (exit $ac_status); }; }; then
15772 echo "$as_me: failed program was:" >&5
15773 cat conftest.$ac_ext >&5
15775 cat >conftest.$ac_ext <<_ACEOF
15776 #line 15776 "configure"
15777 #include "confdefs.h"
15779 #define _POSIX_SOURCE
15780 #include <termios.h>
15784 struct termios foo; int x = foo.c_iflag
15789 rm -f conftest.$ac_objext
15790 if { (eval echo "$as_me:15790: \"$ac_compile\"") >&5
15791 (eval $ac_compile) 2>&5
15793 echo "$as_me:15793: \$? = $ac_status" >&5
15794 (exit $ac_status); } &&
15795 { ac_try='test -s conftest.$ac_objext'
15796 { (eval echo "$as_me:15796: \"$ac_try\"") >&5
15797 (eval $ac_try) 2>&5
15799 echo "$as_me:15799: \$? = $ac_status" >&5
15800 (exit $ac_status); }; }; then
15801 termios_bad=unknown
15803 echo "$as_me: failed program was:" >&5
15804 cat conftest.$ac_ext >&5
15805 termios_bad=yes cat >>confdefs.h <<\EOF
15806 #define _POSIX_SOURCE 1
15810 rm -f conftest.$ac_objext conftest.$ac_ext
15813 rm -f conftest.$ac_objext conftest.$ac_ext
15814 echo "$as_me:15814: result: $termios_bad" >&5
15815 echo "${ECHO_T}$termios_bad" >&6
15819 echo "$as_me:15819: checking for tcgetattr" >&5
15820 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
15821 if test "${cf_cv_have_tcgetattr+set}" = set; then
15822 echo $ECHO_N "(cached) $ECHO_C" >&6
15825 cat >conftest.$ac_ext <<_ACEOF
15826 #line 15826 "configure"
15827 #include "confdefs.h"
15829 #include <sys/types.h>
15830 #ifdef HAVE_UNISTD_H
15831 #include <unistd.h>
15833 #ifdef HAVE_TERMIOS_H
15834 #include <termios.h>
15835 #define TTY struct termios
15837 #ifdef HAVE_TERMIO_H
15838 #include <termio.h>
15839 #define TTY struct termio
15848 tcgetattr(1, &foo);
15853 rm -f conftest.$ac_objext conftest$ac_exeext
15854 if { (eval echo "$as_me:15854: \"$ac_link\"") >&5
15855 (eval $ac_link) 2>&5
15857 echo "$as_me:15857: \$? = $ac_status" >&5
15858 (exit $ac_status); } &&
15859 { ac_try='test -s conftest$ac_exeext'
15860 { (eval echo "$as_me:15860: \"$ac_try\"") >&5
15861 (eval $ac_try) 2>&5
15863 echo "$as_me:15863: \$? = $ac_status" >&5
15864 (exit $ac_status); }; }; then
15865 cf_cv_have_tcgetattr=yes
15867 echo "$as_me: failed program was:" >&5
15868 cat conftest.$ac_ext >&5
15869 cf_cv_have_tcgetattr=no
15871 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15873 echo "$as_me:15873: result: $cf_cv_have_tcgetattr" >&5
15874 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
15875 test "$cf_cv_have_tcgetattr" = yes && cat >>confdefs.h <<\EOF
15876 #define HAVE_TCGETATTR 1
15879 echo "$as_me:15879: checking for vsscanf function or workaround" >&5
15880 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
15881 if test "${cf_cv_func_vsscanf+set}" = set; then
15882 echo $ECHO_N "(cached) $ECHO_C" >&6
15885 cat >conftest.$ac_ext <<_ACEOF
15886 #line 15886 "configure"
15887 #include "confdefs.h"
15889 #include <stdarg.h>
15896 vsscanf("from", "%d", ap)
15901 rm -f conftest.$ac_objext conftest$ac_exeext
15902 if { (eval echo "$as_me:15902: \"$ac_link\"") >&5
15903 (eval $ac_link) 2>&5
15905 echo "$as_me:15905: \$? = $ac_status" >&5
15906 (exit $ac_status); } &&
15907 { ac_try='test -s conftest$ac_exeext'
15908 { (eval echo "$as_me:15908: \"$ac_try\"") >&5
15909 (eval $ac_try) 2>&5
15911 echo "$as_me:15911: \$? = $ac_status" >&5
15912 (exit $ac_status); }; }; then
15913 cf_cv_func_vsscanf=vsscanf
15915 echo "$as_me: failed program was:" >&5
15916 cat conftest.$ac_ext >&5
15918 cat >conftest.$ac_ext <<_ACEOF
15919 #line 15919 "configure"
15920 #include "confdefs.h"
15922 #include <stdarg.h>
15929 char *str = "from";
15931 strbuf._flag = _IOREAD;
15932 strbuf._ptr = strbuf._base = (unsigned char *) str;
15933 strbuf._cnt = strlen(str);
15934 strbuf._file = _NFILE;
15935 return (vfscanf(&strbuf, "%d", ap))
15940 rm -f conftest.$ac_objext conftest$ac_exeext
15941 if { (eval echo "$as_me:15941: \"$ac_link\"") >&5
15942 (eval $ac_link) 2>&5
15944 echo "$as_me:15944: \$? = $ac_status" >&5
15945 (exit $ac_status); } &&
15946 { ac_try='test -s conftest$ac_exeext'
15947 { (eval echo "$as_me:15947: \"$ac_try\"") >&5
15948 (eval $ac_try) 2>&5
15950 echo "$as_me:15950: \$? = $ac_status" >&5
15951 (exit $ac_status); }; }; then
15952 cf_cv_func_vsscanf=vfscanf
15954 echo "$as_me: failed program was:" >&5
15955 cat conftest.$ac_ext >&5
15957 cat >conftest.$ac_ext <<_ACEOF
15958 #line 15958 "configure"
15959 #include "confdefs.h"
15961 #include <stdarg.h>
15968 char *str = "from";
15970 strbuf._flag = _IOREAD;
15971 strbuf._ptr = strbuf._base = (unsigned char *) str;
15972 strbuf._cnt = strlen(str);
15973 strbuf._file = _NFILE;
15974 return (_doscan(&strbuf, "%d", ap))
15979 rm -f conftest.$ac_objext conftest$ac_exeext
15980 if { (eval echo "$as_me:15980: \"$ac_link\"") >&5
15981 (eval $ac_link) 2>&5
15983 echo "$as_me:15983: \$? = $ac_status" >&5
15984 (exit $ac_status); } &&
15985 { ac_try='test -s conftest$ac_exeext'
15986 { (eval echo "$as_me:15986: \"$ac_try\"") >&5
15987 (eval $ac_try) 2>&5
15989 echo "$as_me:15989: \$? = $ac_status" >&5
15990 (exit $ac_status); }; }; then
15991 cf_cv_func_vsscanf=_doscan
15993 echo "$as_me: failed program was:" >&5
15994 cat conftest.$ac_ext >&5
15996 cf_cv_func_vsscanf=no
15998 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16000 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16004 echo "$as_me:16004: result: $cf_cv_func_vsscanf" >&5
16005 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
16007 case $cf_cv_func_vsscanf in #(vi
16008 vsscanf) cat >>confdefs.h <<\EOF
16009 #define HAVE_VSSCANF 1
16012 vfscanf) cat >>confdefs.h <<\EOF
16013 #define HAVE_VFSCANF 1
16016 _doscan) cat >>confdefs.h <<\EOF
16017 #define HAVE__DOSCAN 1
16022 echo "$as_me:16022: checking for working mkstemp" >&5
16023 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
16024 if test "${cf_cv_func_mkstemp+set}" = set; then
16025 echo $ECHO_N "(cached) $ECHO_C" >&6
16029 if test "$cross_compiling" = yes; then
16030 echo "$as_me:16030: checking for mkstemp" >&5
16031 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
16032 if test "${ac_cv_func_mkstemp+set}" = set; then
16033 echo $ECHO_N "(cached) $ECHO_C" >&6
16035 cat >conftest.$ac_ext <<_ACEOF
16036 #line 16036 "configure"
16037 #include "confdefs.h"
16038 /* System header to define __stub macros and hopefully few prototypes,
16039 which can conflict with char mkstemp (); below. */
16040 #include <assert.h>
16041 /* Override any gcc2 internal prototype to avoid an error. */
16045 /* We use char because int might match the return type of a gcc2
16046 builtin and then its argument prototype would still apply. */
16053 /* The GNU C library defines this for functions which it implements
16054 to always fail with ENOSYS. Some functions are actually named
16055 something starting with __ and the normal name is an alias. */
16056 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
16066 rm -f conftest.$ac_objext conftest$ac_exeext
16067 if { (eval echo "$as_me:16067: \"$ac_link\"") >&5
16068 (eval $ac_link) 2>&5
16070 echo "$as_me:16070: \$? = $ac_status" >&5
16071 (exit $ac_status); } &&
16072 { ac_try='test -s conftest$ac_exeext'
16073 { (eval echo "$as_me:16073: \"$ac_try\"") >&5
16074 (eval $ac_try) 2>&5
16076 echo "$as_me:16076: \$? = $ac_status" >&5
16077 (exit $ac_status); }; }; then
16078 ac_cv_func_mkstemp=yes
16080 echo "$as_me: failed program was:" >&5
16081 cat conftest.$ac_ext >&5
16082 ac_cv_func_mkstemp=no
16084 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16086 echo "$as_me:16086: result: $ac_cv_func_mkstemp" >&5
16087 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
16090 cat >conftest.$ac_ext <<_ACEOF
16091 #line 16091 "configure"
16092 #include "confdefs.h"
16094 #include <sys/types.h>
16095 #include <stdlib.h>
16097 #include <string.h>
16098 #include <sys/stat.h>
16101 char *tmpl = "conftestXXXXXX";
16109 for (n = 0; n < 2; ++n) {
16110 strcpy(name[n], tmpl);
16111 if ((fd = mkstemp(name[n])) >= 0) {
16112 if (!strcmp(name[n], tmpl)
16113 || stat(name[n], &sb) != 0
16114 || (sb.st_mode & S_IFMT) != S_IFREG
16115 || (sb.st_mode & 077) != 0) {
16122 && !strcmp(name[0], name[1]))
16124 ${cf_cv_main_return:-return}(result);
16128 rm -f conftest$ac_exeext
16129 if { (eval echo "$as_me:16129: \"$ac_link\"") >&5
16130 (eval $ac_link) 2>&5
16132 echo "$as_me:16132: \$? = $ac_status" >&5
16133 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16134 { (eval echo "$as_me:16134: \"$ac_try\"") >&5
16135 (eval $ac_try) 2>&5
16137 echo "$as_me:16137: \$? = $ac_status" >&5
16138 (exit $ac_status); }; }; then
16139 cf_cv_func_mkstemp=yes
16142 echo "$as_me: program exited with status $ac_status" >&5
16143 echo "$as_me: failed program was:" >&5
16144 cat conftest.$ac_ext >&5
16145 cf_cv_func_mkstemp=no
16148 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16152 echo "$as_me:16152: result: $cf_cv_func_mkstemp" >&5
16153 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
16154 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
16155 cat >>confdefs.h <<\EOF
16156 #define HAVE_MKSTEMP 1
16161 # setup for prototype of fallback for vsscanf()
16163 if test "$cf_cv_func_vsscanf" = vsscanf ; then
16169 if test "$cross_compiling" = yes ; then
16170 { echo "$as_me:16170: WARNING: cross compiling: assume setvbuf params not reversed" >&5
16171 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
16173 echo "$as_me:16173: checking whether setvbuf arguments are reversed" >&5
16174 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
16175 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
16176 echo $ECHO_N "(cached) $ECHO_C" >&6
16178 if test "$cross_compiling" = yes; then
16179 { { echo "$as_me:16179: error: cannot run test program while cross compiling" >&5
16180 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16181 { (exit 1); exit 1; }; }
16183 cat >conftest.$ac_ext <<_ACEOF
16184 #line 16184 "configure"
16185 #include "confdefs.h"
16187 /* If setvbuf has the reversed format, exit 0. */
16191 /* This call has the arguments reversed.
16192 A reversed system may check and see that the address of main
16193 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
16194 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
16195 $ac_main_return(1);
16196 putc('\r', stdout);
16197 $ac_main_return(0); /* Non-reversed systems segv here. */
16200 rm -f conftest$ac_exeext
16201 if { (eval echo "$as_me:16201: \"$ac_link\"") >&5
16202 (eval $ac_link) 2>&5
16204 echo "$as_me:16204: \$? = $ac_status" >&5
16205 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16206 { (eval echo "$as_me:16206: \"$ac_try\"") >&5
16207 (eval $ac_try) 2>&5
16209 echo "$as_me:16209: \$? = $ac_status" >&5
16210 (exit $ac_status); }; }; then
16211 ac_cv_func_setvbuf_reversed=yes
16213 echo "$as_me: program exited with status $ac_status" >&5
16214 echo "$as_me: failed program was:" >&5
16215 cat conftest.$ac_ext >&5
16216 ac_cv_func_setvbuf_reversed=no
16218 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16220 rm -f core core.* *.core
16222 echo "$as_me:16222: result: $ac_cv_func_setvbuf_reversed" >&5
16223 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
16224 if test $ac_cv_func_setvbuf_reversed = yes; then
16226 cat >>confdefs.h <<\EOF
16227 #define SETVBUF_REVERSED 1
16233 echo "$as_me:16233: checking return type of signal handlers" >&5
16234 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
16235 if test "${ac_cv_type_signal+set}" = set; then
16236 echo $ECHO_N "(cached) $ECHO_C" >&6
16238 cat >conftest.$ac_ext <<_ACEOF
16239 #line 16239 "configure"
16240 #include "confdefs.h"
16241 #include <sys/types.h>
16242 #include <signal.h>
16247 extern "C" void (*signal (int, void (*)(int)))(int);
16249 void (*signal ()) ();
16260 rm -f conftest.$ac_objext
16261 if { (eval echo "$as_me:16261: \"$ac_compile\"") >&5
16262 (eval $ac_compile) 2>&5
16264 echo "$as_me:16264: \$? = $ac_status" >&5
16265 (exit $ac_status); } &&
16266 { ac_try='test -s conftest.$ac_objext'
16267 { (eval echo "$as_me:16267: \"$ac_try\"") >&5
16268 (eval $ac_try) 2>&5
16270 echo "$as_me:16270: \$? = $ac_status" >&5
16271 (exit $ac_status); }; }; then
16272 ac_cv_type_signal=void
16274 echo "$as_me: failed program was:" >&5
16275 cat conftest.$ac_ext >&5
16276 ac_cv_type_signal=int
16278 rm -f conftest.$ac_objext conftest.$ac_ext
16280 echo "$as_me:16280: result: $ac_cv_type_signal" >&5
16281 echo "${ECHO_T}$ac_cv_type_signal" >&6
16283 cat >>confdefs.h <<EOF
16284 #define RETSIGTYPE $ac_cv_type_signal
16287 echo "$as_me:16287: checking for type sigaction_t" >&5
16288 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
16289 if test "${cf_cv_type_sigaction+set}" = set; then
16290 echo $ECHO_N "(cached) $ECHO_C" >&6
16293 cat >conftest.$ac_ext <<_ACEOF
16294 #line 16294 "configure"
16295 #include "confdefs.h"
16297 #include <signal.h>
16306 rm -f conftest.$ac_objext
16307 if { (eval echo "$as_me:16307: \"$ac_compile\"") >&5
16308 (eval $ac_compile) 2>&5
16310 echo "$as_me:16310: \$? = $ac_status" >&5
16311 (exit $ac_status); } &&
16312 { ac_try='test -s conftest.$ac_objext'
16313 { (eval echo "$as_me:16313: \"$ac_try\"") >&5
16314 (eval $ac_try) 2>&5
16316 echo "$as_me:16316: \$? = $ac_status" >&5
16317 (exit $ac_status); }; }; then
16318 cf_cv_type_sigaction=yes
16320 echo "$as_me: failed program was:" >&5
16321 cat conftest.$ac_ext >&5
16322 cf_cv_type_sigaction=no
16324 rm -f conftest.$ac_objext conftest.$ac_ext
16327 echo "$as_me:16327: result: $cf_cv_type_sigaction" >&5
16328 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
16329 test "$cf_cv_type_sigaction" = yes && cat >>confdefs.h <<\EOF
16330 #define HAVE_TYPE_SIGACTION 1
16333 echo "$as_me:16333: checking declaration of size-change" >&5
16334 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
16335 if test "${cf_cv_sizechange+set}" = set; then
16336 echo $ECHO_N "(cached) $ECHO_C" >&6
16339 cf_cv_sizechange=unknown
16340 cf_save_CPPFLAGS="$CPPFLAGS"
16342 for cf_opts in "" "NEED_PTEM_H"
16345 CPPFLAGS="$cf_save_CPPFLAGS"
16346 test -n "$cf_opts" && CPPFLAGS="$CPPFLAGS -D$cf_opts"
16347 cat >conftest.$ac_ext <<_ACEOF
16348 #line 16348 "configure"
16349 #include "confdefs.h"
16350 #include <sys/types.h>
16351 #ifdef HAVE_TERMIOS_H
16352 #include <termios.h>
16354 #ifdef HAVE_TERMIO_H
16355 #include <termio.h>
16359 /* This is a workaround for SCO: they neglected to define struct winsize in
16360 * termios.h -- it's only in termio.h and ptem.h
16362 #include <sys/stream.h>
16363 #include <sys/ptem.h>
16365 #if !defined(sun) || !defined(HAVE_TERMIOS_H)
16366 #include <sys/ioctl.h>
16374 struct ttysize win; /* FIXME: what system is this? */
16375 int y = win.ts_lines;
16376 int x = win.ts_cols;
16379 struct winsize win;
16380 int y = win.ws_row;
16381 int x = win.ws_col;
16383 no TIOCGSIZE or TIOCGWINSZ
16384 #endif /* TIOCGWINSZ */
16385 #endif /* TIOCGSIZE */
16391 rm -f conftest.$ac_objext
16392 if { (eval echo "$as_me:16392: \"$ac_compile\"") >&5
16393 (eval $ac_compile) 2>&5
16395 echo "$as_me:16395: \$? = $ac_status" >&5
16396 (exit $ac_status); } &&
16397 { ac_try='test -s conftest.$ac_objext'
16398 { (eval echo "$as_me:16398: \"$ac_try\"") >&5
16399 (eval $ac_try) 2>&5
16401 echo "$as_me:16401: \$? = $ac_status" >&5
16402 (exit $ac_status); }; }; then
16403 cf_cv_sizechange=yes
16405 echo "$as_me: failed program was:" >&5
16406 cat conftest.$ac_ext >&5
16407 cf_cv_sizechange=no
16409 rm -f conftest.$ac_objext conftest.$ac_ext
16411 CPPFLAGS="$cf_save_CPPFLAGS"
16412 if test "$cf_cv_sizechange" = yes ; then
16413 echo "size-change succeeded ($cf_opts)" >&5
16414 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
16420 echo "$as_me:16420: result: $cf_cv_sizechange" >&5
16421 echo "${ECHO_T}$cf_cv_sizechange" >&6
16422 if test "$cf_cv_sizechange" != no ; then
16423 cat >>confdefs.h <<\EOF
16424 #define HAVE_SIZECHANGE 1
16427 case $cf_cv_sizechange in #(vi
16429 cat >>confdefs.h <<EOF
16430 #define $cf_cv_sizechange 1
16437 echo "$as_me:16437: checking for memmove" >&5
16438 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
16439 if test "${ac_cv_func_memmove+set}" = set; then
16440 echo $ECHO_N "(cached) $ECHO_C" >&6
16442 cat >conftest.$ac_ext <<_ACEOF
16443 #line 16443 "configure"
16444 #include "confdefs.h"
16445 /* System header to define __stub macros and hopefully few prototypes,
16446 which can conflict with char memmove (); below. */
16447 #include <assert.h>
16448 /* Override any gcc2 internal prototype to avoid an error. */
16452 /* We use char because int might match the return type of a gcc2
16453 builtin and then its argument prototype would still apply. */
16460 /* The GNU C library defines this for functions which it implements
16461 to always fail with ENOSYS. Some functions are actually named
16462 something starting with __ and the normal name is an alias. */
16463 #if defined (__stub_memmove) || defined (__stub___memmove)
16473 rm -f conftest.$ac_objext conftest$ac_exeext
16474 if { (eval echo "$as_me:16474: \"$ac_link\"") >&5
16475 (eval $ac_link) 2>&5
16477 echo "$as_me:16477: \$? = $ac_status" >&5
16478 (exit $ac_status); } &&
16479 { ac_try='test -s conftest$ac_exeext'
16480 { (eval echo "$as_me:16480: \"$ac_try\"") >&5
16481 (eval $ac_try) 2>&5
16483 echo "$as_me:16483: \$? = $ac_status" >&5
16484 (exit $ac_status); }; }; then
16485 ac_cv_func_memmove=yes
16487 echo "$as_me: failed program was:" >&5
16488 cat conftest.$ac_ext >&5
16489 ac_cv_func_memmove=no
16491 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16493 echo "$as_me:16493: result: $ac_cv_func_memmove" >&5
16494 echo "${ECHO_T}$ac_cv_func_memmove" >&6
16495 if test $ac_cv_func_memmove = yes; then
16499 echo "$as_me:16499: checking for bcopy" >&5
16500 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
16501 if test "${ac_cv_func_bcopy+set}" = set; then
16502 echo $ECHO_N "(cached) $ECHO_C" >&6
16504 cat >conftest.$ac_ext <<_ACEOF
16505 #line 16505 "configure"
16506 #include "confdefs.h"
16507 /* System header to define __stub macros and hopefully few prototypes,
16508 which can conflict with char bcopy (); below. */
16509 #include <assert.h>
16510 /* Override any gcc2 internal prototype to avoid an error. */
16514 /* We use char because int might match the return type of a gcc2
16515 builtin and then its argument prototype would still apply. */
16522 /* The GNU C library defines this for functions which it implements
16523 to always fail with ENOSYS. Some functions are actually named
16524 something starting with __ and the normal name is an alias. */
16525 #if defined (__stub_bcopy) || defined (__stub___bcopy)
16535 rm -f conftest.$ac_objext conftest$ac_exeext
16536 if { (eval echo "$as_me:16536: \"$ac_link\"") >&5
16537 (eval $ac_link) 2>&5
16539 echo "$as_me:16539: \$? = $ac_status" >&5
16540 (exit $ac_status); } &&
16541 { ac_try='test -s conftest$ac_exeext'
16542 { (eval echo "$as_me:16542: \"$ac_try\"") >&5
16543 (eval $ac_try) 2>&5
16545 echo "$as_me:16545: \$? = $ac_status" >&5
16546 (exit $ac_status); }; }; then
16547 ac_cv_func_bcopy=yes
16549 echo "$as_me: failed program was:" >&5
16550 cat conftest.$ac_ext >&5
16551 ac_cv_func_bcopy=no
16553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16555 echo "$as_me:16555: result: $ac_cv_func_bcopy" >&5
16556 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
16557 if test $ac_cv_func_bcopy = yes; then
16559 echo "$as_me:16559: checking if bcopy does overlapping moves" >&5
16560 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
16561 if test "${cf_cv_good_bcopy+set}" = set; then
16562 echo $ECHO_N "(cached) $ECHO_C" >&6
16565 if test "$cross_compiling" = yes; then
16566 cf_cv_good_bcopy=unknown
16568 cat >conftest.$ac_ext <<_ACEOF
16569 #line 16569 "configure"
16570 #include "confdefs.h"
16573 static char data[] = "abcdefghijklmnopqrstuwwxyz";
16575 bcopy(data, temp, sizeof(data));
16576 bcopy(temp+10, temp, 15);
16577 bcopy(temp+5, temp+15, 10);
16578 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
16582 rm -f conftest$ac_exeext
16583 if { (eval echo "$as_me:16583: \"$ac_link\"") >&5
16584 (eval $ac_link) 2>&5
16586 echo "$as_me:16586: \$? = $ac_status" >&5
16587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16588 { (eval echo "$as_me:16588: \"$ac_try\"") >&5
16589 (eval $ac_try) 2>&5
16591 echo "$as_me:16591: \$? = $ac_status" >&5
16592 (exit $ac_status); }; }; then
16593 cf_cv_good_bcopy=yes
16595 echo "$as_me: program exited with status $ac_status" >&5
16596 echo "$as_me: failed program was:" >&5
16597 cat conftest.$ac_ext >&5
16598 cf_cv_good_bcopy=no
16600 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16604 echo "$as_me:16604: result: $cf_cv_good_bcopy" >&5
16605 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
16608 cf_cv_good_bcopy=no
16611 if test "$cf_cv_good_bcopy" = yes ; then
16612 cat >>confdefs.h <<\EOF
16613 #define USE_OK_BCOPY 1
16617 cat >>confdefs.h <<\EOF
16618 #define USE_MY_MEMMOVE 1
16625 echo "$as_me:16625: checking if poll really works" >&5
16626 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
16627 if test "${cf_cv_working_poll+set}" = set; then
16628 echo $ECHO_N "(cached) $ECHO_C" >&6
16631 if test "$cross_compiling" = yes; then
16632 cf_cv_working_poll=unknown
16634 cat >conftest.$ac_ext <<_ACEOF
16635 #line 16635 "configure"
16636 #include "confdefs.h"
16642 #include <sys/poll.h>
16645 struct pollfd myfds;
16649 myfds.events = POLLIN;
16651 ret = poll(&myfds, 1, 100);
16652 ${cf_cv_main_return:-return}(ret != 0);
16655 rm -f conftest$ac_exeext
16656 if { (eval echo "$as_me:16656: \"$ac_link\"") >&5
16657 (eval $ac_link) 2>&5
16659 echo "$as_me:16659: \$? = $ac_status" >&5
16660 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16661 { (eval echo "$as_me:16661: \"$ac_try\"") >&5
16662 (eval $ac_try) 2>&5
16664 echo "$as_me:16664: \$? = $ac_status" >&5
16665 (exit $ac_status); }; }; then
16666 cf_cv_working_poll=yes
16668 echo "$as_me: program exited with status $ac_status" >&5
16669 echo "$as_me: failed program was:" >&5
16670 cat conftest.$ac_ext >&5
16671 cf_cv_working_poll=no
16673 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16676 echo "$as_me:16676: result: $cf_cv_working_poll" >&5
16677 echo "${ECHO_T}$cf_cv_working_poll" >&6
16678 test "$cf_cv_working_poll" = "yes" && cat >>confdefs.h <<\EOF
16679 #define HAVE_WORKING_POLL 1
16682 echo "$as_me:16682: checking for va_copy" >&5
16683 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
16684 if test "${cf_cv_have_va_copy+set}" = set; then
16685 echo $ECHO_N "(cached) $ECHO_C" >&6
16688 cat >conftest.$ac_ext <<_ACEOF
16689 #line 16689 "configure"
16690 #include "confdefs.h"
16692 #include <stdarg.h>
16698 static va_list dst;
16699 static va_list src;
16705 rm -f conftest.$ac_objext conftest$ac_exeext
16706 if { (eval echo "$as_me:16706: \"$ac_link\"") >&5
16707 (eval $ac_link) 2>&5
16709 echo "$as_me:16709: \$? = $ac_status" >&5
16710 (exit $ac_status); } &&
16711 { ac_try='test -s conftest$ac_exeext'
16712 { (eval echo "$as_me:16712: \"$ac_try\"") >&5
16713 (eval $ac_try) 2>&5
16715 echo "$as_me:16715: \$? = $ac_status" >&5
16716 (exit $ac_status); }; }; then
16717 cf_cv_have_va_copy=yes
16719 echo "$as_me: failed program was:" >&5
16720 cat conftest.$ac_ext >&5
16721 cf_cv_have_va_copy=no
16723 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16725 echo "$as_me:16725: result: $cf_cv_have_va_copy" >&5
16726 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
16728 test "$cf_cv_have_va_copy" = yes && cat >>confdefs.h <<\EOF
16729 #define HAVE_VA_COPY 1
16732 echo "$as_me:16732: checking for __va_copy" >&5
16733 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
16734 if test "${cf_cv_have___va_copy+set}" = set; then
16735 echo $ECHO_N "(cached) $ECHO_C" >&6
16738 cat >conftest.$ac_ext <<_ACEOF
16739 #line 16739 "configure"
16740 #include "confdefs.h"
16742 #include <stdarg.h>
16748 static va_list dst;
16749 static va_list src;
16750 __va_copy(dst, src)
16755 rm -f conftest.$ac_objext conftest$ac_exeext
16756 if { (eval echo "$as_me:16756: \"$ac_link\"") >&5
16757 (eval $ac_link) 2>&5
16759 echo "$as_me:16759: \$? = $ac_status" >&5
16760 (exit $ac_status); } &&
16761 { ac_try='test -s conftest$ac_exeext'
16762 { (eval echo "$as_me:16762: \"$ac_try\"") >&5
16763 (eval $ac_try) 2>&5
16765 echo "$as_me:16765: \$? = $ac_status" >&5
16766 (exit $ac_status); }; }; then
16767 cf_cv_have___va_copy=yes
16769 echo "$as_me: failed program was:" >&5
16770 cat conftest.$ac_ext >&5
16771 cf_cv_have___va_copy=no
16773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16775 echo "$as_me:16775: result: $cf_cv_have___va_copy" >&5
16776 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
16778 test "$cf_cv_have___va_copy" = yes && cat >>confdefs.h <<\EOF
16779 #define HAVE___VA_COPY 1
16782 echo "$as_me:16782: checking for pid_t" >&5
16783 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
16784 if test "${ac_cv_type_pid_t+set}" = set; then
16785 echo $ECHO_N "(cached) $ECHO_C" >&6
16787 cat >conftest.$ac_ext <<_ACEOF
16788 #line 16788 "configure"
16789 #include "confdefs.h"
16790 $ac_includes_default
16796 if (sizeof (pid_t))
16802 rm -f conftest.$ac_objext
16803 if { (eval echo "$as_me:16803: \"$ac_compile\"") >&5
16804 (eval $ac_compile) 2>&5
16806 echo "$as_me:16806: \$? = $ac_status" >&5
16807 (exit $ac_status); } &&
16808 { ac_try='test -s conftest.$ac_objext'
16809 { (eval echo "$as_me:16809: \"$ac_try\"") >&5
16810 (eval $ac_try) 2>&5
16812 echo "$as_me:16812: \$? = $ac_status" >&5
16813 (exit $ac_status); }; }; then
16814 ac_cv_type_pid_t=yes
16816 echo "$as_me: failed program was:" >&5
16817 cat conftest.$ac_ext >&5
16818 ac_cv_type_pid_t=no
16820 rm -f conftest.$ac_objext conftest.$ac_ext
16822 echo "$as_me:16822: result: $ac_cv_type_pid_t" >&5
16823 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
16824 if test $ac_cv_type_pid_t = yes; then
16828 cat >>confdefs.h <<EOF
16834 for ac_header in unistd.h vfork.h
16836 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16837 echo "$as_me:16837: checking for $ac_header" >&5
16838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16840 echo $ECHO_N "(cached) $ECHO_C" >&6
16842 cat >conftest.$ac_ext <<_ACEOF
16843 #line 16843 "configure"
16844 #include "confdefs.h"
16845 #include <$ac_header>
16847 if { (eval echo "$as_me:16847: \"$ac_cpp conftest.$ac_ext\"") >&5
16848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16850 egrep -v '^ *\+' conftest.er1 >conftest.err
16852 cat conftest.err >&5
16853 echo "$as_me:16853: \$? = $ac_status" >&5
16854 (exit $ac_status); } >/dev/null; then
16855 if test -s conftest.err; then
16856 ac_cpp_err=$ac_c_preproc_warn_flag
16863 if test -z "$ac_cpp_err"; then
16864 eval "$as_ac_Header=yes"
16866 echo "$as_me: failed program was:" >&5
16867 cat conftest.$ac_ext >&5
16868 eval "$as_ac_Header=no"
16870 rm -f conftest.err conftest.$ac_ext
16872 echo "$as_me:16872: result: `eval echo '${'$as_ac_Header'}'`" >&5
16873 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16875 cat >>confdefs.h <<EOF
16876 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16882 for ac_func in fork vfork
16884 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16885 echo "$as_me:16885: checking for $ac_func" >&5
16886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16887 if eval "test \"\${$as_ac_var+set}\" = set"; then
16888 echo $ECHO_N "(cached) $ECHO_C" >&6
16890 cat >conftest.$ac_ext <<_ACEOF
16891 #line 16891 "configure"
16892 #include "confdefs.h"
16893 /* System header to define __stub macros and hopefully few prototypes,
16894 which can conflict with char $ac_func (); below. */
16895 #include <assert.h>
16896 /* Override any gcc2 internal prototype to avoid an error. */
16900 /* We use char because int might match the return type of a gcc2
16901 builtin and then its argument prototype would still apply. */
16908 /* The GNU C library defines this for functions which it implements
16909 to always fail with ENOSYS. Some functions are actually named
16910 something starting with __ and the normal name is an alias. */
16911 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16921 rm -f conftest.$ac_objext conftest$ac_exeext
16922 if { (eval echo "$as_me:16922: \"$ac_link\"") >&5
16923 (eval $ac_link) 2>&5
16925 echo "$as_me:16925: \$? = $ac_status" >&5
16926 (exit $ac_status); } &&
16927 { ac_try='test -s conftest$ac_exeext'
16928 { (eval echo "$as_me:16928: \"$ac_try\"") >&5
16929 (eval $ac_try) 2>&5
16931 echo "$as_me:16931: \$? = $ac_status" >&5
16932 (exit $ac_status); }; }; then
16933 eval "$as_ac_var=yes"
16935 echo "$as_me: failed program was:" >&5
16936 cat conftest.$ac_ext >&5
16937 eval "$as_ac_var=no"
16939 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16941 echo "$as_me:16941: result: `eval echo '${'$as_ac_var'}'`" >&5
16942 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16943 if test `eval echo '${'$as_ac_var'}'` = yes; then
16944 cat >>confdefs.h <<EOF
16945 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16951 ac_cv_func_fork_works=$ac_cv_func_fork
16952 if test "x$ac_cv_func_fork" = xyes; then
16953 echo "$as_me:16953: checking for working fork" >&5
16954 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
16955 if test "${ac_cv_func_fork_works+set}" = set; then
16956 echo $ECHO_N "(cached) $ECHO_C" >&6
16958 if test "$cross_compiling" = yes; then
16959 ac_cv_func_fork_works=cross
16961 cat >conftest.$ac_ext <<_ACEOF
16962 /* By Rüdiger Kuhlmann. */
16963 #include <sys/types.h>
16965 # include <unistd.h>
16967 /* Some systems only have a dummy stub for fork() */
16971 $ac_main_return (1);
16972 $ac_main_return (0);
16975 rm -f conftest$ac_exeext
16976 if { (eval echo "$as_me:16976: \"$ac_link\"") >&5
16977 (eval $ac_link) 2>&5
16979 echo "$as_me:16979: \$? = $ac_status" >&5
16980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16981 { (eval echo "$as_me:16981: \"$ac_try\"") >&5
16982 (eval $ac_try) 2>&5
16984 echo "$as_me:16984: \$? = $ac_status" >&5
16985 (exit $ac_status); }; }; then
16986 ac_cv_func_fork_works=yes
16988 echo "$as_me: program exited with status $ac_status" >&5
16989 echo "$as_me: failed program was:" >&5
16990 cat conftest.$ac_ext >&5
16991 ac_cv_func_fork_works=no
16993 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16996 echo "$as_me:16996: result: $ac_cv_func_fork_works" >&5
16997 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
17000 if test "x$ac_cv_func_fork_works" = xcross; then
17002 *-*-amigaos* | *-*-msdosdjgpp*)
17003 # Override, as these systems have only a dummy fork() stub
17004 ac_cv_func_fork_works=no
17007 ac_cv_func_fork_works=yes
17010 { echo "$as_me:17010: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
17011 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
17013 ac_cv_func_vfork_works=$ac_cv_func_vfork
17014 if test "x$ac_cv_func_vfork" = xyes; then
17015 echo "$as_me:17015: checking for working vfork" >&5
17016 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
17017 if test "${ac_cv_func_vfork_works+set}" = set; then
17018 echo $ECHO_N "(cached) $ECHO_C" >&6
17020 if test "$cross_compiling" = yes; then
17021 ac_cv_func_vfork_works=cross
17023 cat >conftest.$ac_ext <<_ACEOF
17024 #line 17024 "configure"
17025 #include "confdefs.h"
17026 /* Thanks to Paul Eggert for this test. */
17028 #include <sys/types.h>
17029 #include <sys/stat.h>
17031 # include <unistd.h>
17034 # include <vfork.h>
17036 /* On some sparc systems, changes by the child to local and incoming
17037 argument registers are propagated back to the parent. The compiler
17038 is told about this with #include <vfork.h>, but some compilers
17039 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17040 static variable whose address is put into a register that is
17041 clobbered by the vfork. */
17044 sparc_address_test (int arg)
17046 sparc_address_test (arg) int arg;
17049 static pid_t child;
17067 pid_t parent = getpid ();
17070 sparc_address_test ();
17075 /* Here is another test for sparc vfork register problems. This
17076 test uses lots of local variables, at least as many local
17077 variables as main has allocated so far including compiler
17078 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17079 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17080 reuse the register of parent for one of the local variables,
17081 since it will think that parent can't possibly be used any more
17082 in this routine. Assigning to the local variable will thus
17083 munge parent in the parent process. */
17085 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17086 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17087 /* Convince the compiler that p..p7 are live; otherwise, it might
17088 use the same hardware register for all 8 local variables. */
17089 if (p != p1 || p != p2 || p != p3 || p != p4
17090 || p != p5 || p != p6 || p != p7)
17093 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17094 from child file descriptors. If the child closes a descriptor
17095 before it execs or exits, this munges the parent's descriptor
17096 as well. Test for this by closing stdout in the child. */
17097 _exit(close(fileno(stdout)) != 0);
17102 while (wait(&status) != child)
17105 /* Was there some problem with vforking? */
17108 /* Did the child fail? (This shouldn't happen.) */
17111 /* Did the vfork/compiler bug occur? */
17112 || parent != getpid()
17114 /* Did the file descriptor bug occur? */
17115 || fstat(fileno(stdout), &st) != 0
17120 rm -f conftest$ac_exeext
17121 if { (eval echo "$as_me:17121: \"$ac_link\"") >&5
17122 (eval $ac_link) 2>&5
17124 echo "$as_me:17124: \$? = $ac_status" >&5
17125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17126 { (eval echo "$as_me:17126: \"$ac_try\"") >&5
17127 (eval $ac_try) 2>&5
17129 echo "$as_me:17129: \$? = $ac_status" >&5
17130 (exit $ac_status); }; }; then
17131 ac_cv_func_vfork_works=yes
17133 echo "$as_me: program exited with status $ac_status" >&5
17134 echo "$as_me: failed program was:" >&5
17135 cat conftest.$ac_ext >&5
17136 ac_cv_func_vfork_works=no
17138 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17141 echo "$as_me:17141: result: $ac_cv_func_vfork_works" >&5
17142 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
17145 if test "x$ac_cv_func_fork_works" = xcross; then
17146 ac_cv_func_vfork_works=ac_cv_func_vfork
17147 { echo "$as_me:17147: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
17148 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
17151 if test "x$ac_cv_func_vfork_works" = xyes; then
17153 cat >>confdefs.h <<\EOF
17154 #define HAVE_WORKING_VFORK 1
17159 cat >>confdefs.h <<\EOF
17164 if test "x$ac_cv_func_fork_works" = xyes; then
17166 cat >>confdefs.h <<\EOF
17167 #define HAVE_WORKING_FORK 1
17172 # special check for test/ditto.c
17174 echo "$as_me:17174: checking for openpty in -lutil" >&5
17175 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
17176 if test "${ac_cv_lib_util_openpty+set}" = set; then
17177 echo $ECHO_N "(cached) $ECHO_C" >&6
17179 ac_check_lib_save_LIBS=$LIBS
17180 LIBS="-lutil $LIBS"
17181 cat >conftest.$ac_ext <<_ACEOF
17182 #line 17182 "configure"
17183 #include "confdefs.h"
17185 /* Override any gcc2 internal prototype to avoid an error. */
17189 /* We use char because int might match the return type of a gcc2
17190 builtin and then its argument prototype would still apply. */
17200 rm -f conftest.$ac_objext conftest$ac_exeext
17201 if { (eval echo "$as_me:17201: \"$ac_link\"") >&5
17202 (eval $ac_link) 2>&5
17204 echo "$as_me:17204: \$? = $ac_status" >&5
17205 (exit $ac_status); } &&
17206 { ac_try='test -s conftest$ac_exeext'
17207 { (eval echo "$as_me:17207: \"$ac_try\"") >&5
17208 (eval $ac_try) 2>&5
17210 echo "$as_me:17210: \$? = $ac_status" >&5
17211 (exit $ac_status); }; }; then
17212 ac_cv_lib_util_openpty=yes
17214 echo "$as_me: failed program was:" >&5
17215 cat conftest.$ac_ext >&5
17216 ac_cv_lib_util_openpty=no
17218 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17219 LIBS=$ac_check_lib_save_LIBS
17221 echo "$as_me:17221: result: $ac_cv_lib_util_openpty" >&5
17222 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
17223 if test $ac_cv_lib_util_openpty = yes; then
17229 echo "$as_me:17229: checking for openpty header" >&5
17230 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
17231 if test "${cf_cv_func_openpty+set}" = set; then
17232 echo $ECHO_N "(cached) $ECHO_C" >&6
17235 cf_save_LIBS="$LIBS"
17236 test $cf_cv_lib_util = yes && LIBS="-lutil $LIBS"
17237 for cf_header in pty.h libutil.h util.h
17239 cat >conftest.$ac_ext <<_ACEOF
17240 #line 17240 "configure"
17241 #include "confdefs.h"
17243 #include <$cf_header>
17249 int x = openpty((int *)0, (int *)0, (char *)0,
17250 (struct termios *)0, (struct winsize *)0);
17256 rm -f conftest.$ac_objext conftest$ac_exeext
17257 if { (eval echo "$as_me:17257: \"$ac_link\"") >&5
17258 (eval $ac_link) 2>&5
17260 echo "$as_me:17260: \$? = $ac_status" >&5
17261 (exit $ac_status); } &&
17262 { ac_try='test -s conftest$ac_exeext'
17263 { (eval echo "$as_me:17263: \"$ac_try\"") >&5
17264 (eval $ac_try) 2>&5
17266 echo "$as_me:17266: \$? = $ac_status" >&5
17267 (exit $ac_status); }; }; then
17269 cf_cv_func_openpty=$cf_header
17273 echo "$as_me: failed program was:" >&5
17274 cat conftest.$ac_ext >&5
17276 cf_cv_func_openpty=no
17279 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17281 LIBS="$cf_save_LIBS"
17284 echo "$as_me:17284: result: $cf_cv_func_openpty" >&5
17285 echo "${ECHO_T}$cf_cv_func_openpty" >&6
17287 if test "$cf_cv_func_openpty" != no ; then
17288 cat >>confdefs.h <<EOF
17289 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
17292 cat >>confdefs.h <<\EOF
17293 #define USE_XTERM_PTY 1
17296 if test "$cf_cv_lib_util" = yes ; then
17297 TEST_LIBS="-lutil $TEST_LIBS"
17301 if test "$with_hashed_db" != no ; then
17302 cat >>confdefs.h <<\EOF
17303 #define USE_HASHED_DB 1
17306 case $with_hashed_db in #(vi
17310 if test -d "$with_hashed_db" ; then
17312 if test -n "$with_hashed_db/include" ; then
17313 for cf_add_incdir in $with_hashed_db/include
17315 while test $cf_add_incdir != /usr/include
17317 if test -d $cf_add_incdir
17320 if test -n "$CFLAGS$CPPFLAGS" ; then
17321 # a loop is needed to ensure we can add subdirs of existing dirs
17322 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
17323 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
17324 cf_have_incdir=yes; break
17329 if test "$cf_have_incdir" = no ; then
17330 if test "$cf_add_incdir" = /usr/local/include ; then
17331 if test "$GCC" = yes
17333 cf_save_CPPFLAGS=$CPPFLAGS
17334 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
17335 cat >conftest.$ac_ext <<_ACEOF
17336 #line 17336 "configure"
17337 #include "confdefs.h"
17347 rm -f conftest.$ac_objext
17348 if { (eval echo "$as_me:17348: \"$ac_compile\"") >&5
17349 (eval $ac_compile) 2>&5
17351 echo "$as_me:17351: \$? = $ac_status" >&5
17352 (exit $ac_status); } &&
17353 { ac_try='test -s conftest.$ac_objext'
17354 { (eval echo "$as_me:17354: \"$ac_try\"") >&5
17355 (eval $ac_try) 2>&5
17357 echo "$as_me:17357: \$? = $ac_status" >&5
17358 (exit $ac_status); }; }; then
17361 echo "$as_me: failed program was:" >&5
17362 cat conftest.$ac_ext >&5
17365 rm -f conftest.$ac_objext conftest.$ac_ext
17366 CPPFLAGS=$cf_save_CPPFLAGS
17371 if test "$cf_have_incdir" = no ; then
17372 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
17374 echo "${as_me:-configure}:17374: testing adding $cf_add_incdir to include-path ..." 1>&5
17376 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
17378 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
17379 test "$cf_top_incdir" = "$cf_add_incdir" && break
17380 cf_add_incdir="$cf_top_incdir"
17389 if test -n "$with_hashed_db/lib" ; then
17390 for cf_add_libdir in $with_hashed_db/lib
17392 if test $cf_add_libdir = /usr/lib ; then
17394 elif test -d $cf_add_libdir
17397 if test -n "$LDFLAGS$LIBS" ; then
17398 # a loop is needed to ensure we can add subdirs of existing dirs
17399 for cf_test_libdir in $LDFLAGS $LIBS ; do
17400 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
17401 cf_have_libdir=yes; break
17405 if test "$cf_have_libdir" = no ; then
17406 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
17408 echo "${as_me:-configure}:17408: testing adding $cf_add_libdir to library-path ..." 1>&5
17410 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
17419 echo "$as_me:17419: checking for db.h" >&5
17420 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
17421 if test "${ac_cv_header_db_h+set}" = set; then
17422 echo $ECHO_N "(cached) $ECHO_C" >&6
17424 cat >conftest.$ac_ext <<_ACEOF
17425 #line 17425 "configure"
17426 #include "confdefs.h"
17429 if { (eval echo "$as_me:17429: \"$ac_cpp conftest.$ac_ext\"") >&5
17430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17432 egrep -v '^ *\+' conftest.er1 >conftest.err
17434 cat conftest.err >&5
17435 echo "$as_me:17435: \$? = $ac_status" >&5
17436 (exit $ac_status); } >/dev/null; then
17437 if test -s conftest.err; then
17438 ac_cpp_err=$ac_c_preproc_warn_flag
17445 if test -z "$ac_cpp_err"; then
17446 ac_cv_header_db_h=yes
17448 echo "$as_me: failed program was:" >&5
17449 cat conftest.$ac_ext >&5
17450 ac_cv_header_db_h=no
17452 rm -f conftest.err conftest.$ac_ext
17454 echo "$as_me:17454: result: $ac_cv_header_db_h" >&5
17455 echo "${ECHO_T}$ac_cv_header_db_h" >&6
17456 if test $ac_cv_header_db_h = yes; then
17458 echo "$as_me:17458: checking for version of db" >&5
17459 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
17460 if test "${cf_cv_hashed_db_version+set}" = set; then
17461 echo $ECHO_N "(cached) $ECHO_C" >&6
17464 cf_cv_hashed_db_version=unknown
17466 for cf_db_version in 1 2 3 4 5
17469 echo "${as_me:-configure}:17469: testing checking for db version $cf_db_version ..." 1>&5
17471 cat >conftest.$ac_ext <<_ACEOF
17472 #line 17472 "configure"
17473 #include "confdefs.h"
17475 $ac_includes_default
17478 #ifdef DB_VERSION_MAJOR
17479 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
17480 #if $cf_db_version == DB_VERSION_MAJOR
17486 #if $cf_db_version == 1
17487 /* ok: assuming this is DB 1.8.5 */
17501 rm -f conftest.$ac_objext
17502 if { (eval echo "$as_me:17502: \"$ac_compile\"") >&5
17503 (eval $ac_compile) 2>&5
17505 echo "$as_me:17505: \$? = $ac_status" >&5
17506 (exit $ac_status); } &&
17507 { ac_try='test -s conftest.$ac_objext'
17508 { (eval echo "$as_me:17508: \"$ac_try\"") >&5
17509 (eval $ac_try) 2>&5
17511 echo "$as_me:17511: \$? = $ac_status" >&5
17512 (exit $ac_status); }; }; then
17514 cf_cv_hashed_db_version=$cf_db_version
17518 echo "$as_me: failed program was:" >&5
17519 cat conftest.$ac_ext >&5
17521 rm -f conftest.$ac_objext conftest.$ac_ext
17525 echo "$as_me:17525: result: $cf_cv_hashed_db_version" >&5
17526 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
17528 if test "$cf_cv_hashed_db_version" = unknown ; then
17529 { { echo "$as_me:17529: error: Cannot determine version of db" >&5
17530 echo "$as_me: error: Cannot determine version of db" >&2;}
17531 { (exit 1); exit 1; }; }
17534 echo "$as_me:17534: checking for db libraries" >&5
17535 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
17536 if test "${cf_cv_hashed_db_libs+set}" = set; then
17537 echo $ECHO_N "(cached) $ECHO_C" >&6
17540 cf_cv_hashed_db_libs=unknown
17541 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
17543 cf_save_libs="$LIBS"
17544 if test -n "$cf_db_libs"; then
17545 LIBS="-l$cf_db_libs $LIBS"
17548 echo "${as_me:-configure}:17548: testing checking for library "$cf_db_libs" ..." 1>&5
17550 cat >conftest.$ac_ext <<_ACEOF
17551 #line 17551 "configure"
17552 #include "confdefs.h"
17554 $ac_includes_default
17561 char *path = "/tmp/foo";
17562 #ifdef DB_VERSION_MAJOR
17563 #if DB_VERSION_MAJOR >= 4
17565 db_create(&result, NULL, 0);
17566 result->open(result,
17573 #elif DB_VERSION_MAJOR >= 3
17575 db_create(&result, NULL, 0);
17576 result->open(result,
17582 #elif DB_VERSION_MAJOR >= 2
17591 #endif /* DB_VERSION_MAJOR */
17593 DB *result = dbopen(path,
17599 ${cf_cv_main_return:-return}(result != 0)
17605 rm -f conftest.$ac_objext conftest$ac_exeext
17606 if { (eval echo "$as_me:17606: \"$ac_link\"") >&5
17607 (eval $ac_link) 2>&5
17609 echo "$as_me:17609: \$? = $ac_status" >&5
17610 (exit $ac_status); } &&
17611 { ac_try='test -s conftest$ac_exeext'
17612 { (eval echo "$as_me:17612: \"$ac_try\"") >&5
17613 (eval $ac_try) 2>&5
17615 echo "$as_me:17615: \$? = $ac_status" >&5
17616 (exit $ac_status); }; }; then
17618 if test -n "$cf_db_libs" ; then
17619 cf_cv_hashed_db_libs=$cf_db_libs
17621 cf_cv_hashed_db_libs=default
17623 LIBS="$cf_save_libs"
17627 echo "$as_me: failed program was:" >&5
17628 cat conftest.$ac_ext >&5
17630 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17631 LIBS="$cf_save_libs"
17635 echo "$as_me:17635: result: $cf_cv_hashed_db_libs" >&5
17636 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
17638 if test "$cf_cv_hashed_db_libs" = unknown ; then
17639 { { echo "$as_me:17639: error: Cannot determine library for db" >&5
17640 echo "$as_me: error: Cannot determine library for db" >&2;}
17641 { (exit 1); exit 1; }; }
17642 elif test "$cf_cv_hashed_db_libs" != default ; then
17643 LIBS="-l$cf_cv_hashed_db_libs $LIBS"
17649 { { echo "$as_me:17649: error: Cannot find db.h" >&5
17650 echo "$as_me: error: Cannot find db.h" >&2;}
17651 { (exit 1); exit 1; }; }
17657 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
17658 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
17659 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
17662 # Just in case, check if the C compiler has a bool type.
17664 echo "$as_me:17664: checking if we should include stdbool.h" >&5
17665 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
17667 if test "${cf_cv_header_stdbool_h+set}" = set; then
17668 echo $ECHO_N "(cached) $ECHO_C" >&6
17671 cat >conftest.$ac_ext <<_ACEOF
17672 #line 17672 "configure"
17673 #include "confdefs.h"
17683 rm -f conftest.$ac_objext
17684 if { (eval echo "$as_me:17684: \"$ac_compile\"") >&5
17685 (eval $ac_compile) 2>&5
17687 echo "$as_me:17687: \$? = $ac_status" >&5
17688 (exit $ac_status); } &&
17689 { ac_try='test -s conftest.$ac_objext'
17690 { (eval echo "$as_me:17690: \"$ac_try\"") >&5
17691 (eval $ac_try) 2>&5
17693 echo "$as_me:17693: \$? = $ac_status" >&5
17694 (exit $ac_status); }; }; then
17695 cf_cv_header_stdbool_h=0
17697 echo "$as_me: failed program was:" >&5
17698 cat conftest.$ac_ext >&5
17699 cat >conftest.$ac_ext <<_ACEOF
17700 #line 17700 "configure"
17701 #include "confdefs.h"
17704 #include <stdbool.h>
17715 rm -f conftest.$ac_objext
17716 if { (eval echo "$as_me:17716: \"$ac_compile\"") >&5
17717 (eval $ac_compile) 2>&5
17719 echo "$as_me:17719: \$? = $ac_status" >&5
17720 (exit $ac_status); } &&
17721 { ac_try='test -s conftest.$ac_objext'
17722 { (eval echo "$as_me:17722: \"$ac_try\"") >&5
17723 (eval $ac_try) 2>&5
17725 echo "$as_me:17725: \$? = $ac_status" >&5
17726 (exit $ac_status); }; }; then
17727 cf_cv_header_stdbool_h=1
17729 echo "$as_me: failed program was:" >&5
17730 cat conftest.$ac_ext >&5
17731 cf_cv_header_stdbool_h=0
17733 rm -f conftest.$ac_objext conftest.$ac_ext
17735 rm -f conftest.$ac_objext conftest.$ac_ext
17738 if test "$cf_cv_header_stdbool_h" = 1
17739 then echo "$as_me:17739: result: yes" >&5
17740 echo "${ECHO_T}yes" >&6
17741 else echo "$as_me:17741: result: no" >&5
17742 echo "${ECHO_T}no" >&6
17745 echo "$as_me:17745: checking for builtin bool type" >&5
17746 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
17748 if test "${cf_cv_cc_bool_type+set}" = set; then
17749 echo $ECHO_N "(cached) $ECHO_C" >&6
17752 cat >conftest.$ac_ext <<_ACEOF
17753 #line 17753 "configure"
17754 #include "confdefs.h"
17757 #include <sys/types.h>
17767 rm -f conftest.$ac_objext
17768 if { (eval echo "$as_me:17768: \"$ac_compile\"") >&5
17769 (eval $ac_compile) 2>&5
17771 echo "$as_me:17771: \$? = $ac_status" >&5
17772 (exit $ac_status); } &&
17773 { ac_try='test -s conftest.$ac_objext'
17774 { (eval echo "$as_me:17774: \"$ac_try\"") >&5
17775 (eval $ac_try) 2>&5
17777 echo "$as_me:17777: \$? = $ac_status" >&5
17778 (exit $ac_status); }; }; then
17779 cf_cv_cc_bool_type=1
17781 echo "$as_me: failed program was:" >&5
17782 cat conftest.$ac_ext >&5
17783 cf_cv_cc_bool_type=0
17785 rm -f conftest.$ac_objext conftest.$ac_ext
17789 if test "$cf_cv_cc_bool_type" = 1
17790 then echo "$as_me:17790: result: yes" >&5
17791 echo "${ECHO_T}yes" >&6
17792 else echo "$as_me:17792: result: no" >&5
17793 echo "${ECHO_T}no" >&6
17796 # Check for C++ compiler characteristics (and ensure that it's there!)
17797 if test -n "$CXX" ; then
17799 ac_cpp='$CXXCPP $CPPFLAGS'
17800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17803 ac_main_return=return
17805 if test -n "$GXX" ; then
17806 case $cf_cv_system_name in #(vi
17808 cf_stdcpp_libname=stdcpp
17811 cf_stdcpp_libname=stdc++
17814 echo "$as_me:17814: checking for library $cf_stdcpp_libname" >&5
17815 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
17816 if test "${cf_cv_libstdcpp+set}" = set; then
17817 echo $ECHO_N "(cached) $ECHO_C" >&6
17821 LIBS="-l$cf_stdcpp_libname $LIBS"
17822 cat >conftest.$ac_ext <<_ACEOF
17823 #line 17823 "configure"
17824 #include "confdefs.h"
17826 #include <strstream.h>
17832 strstreambuf foo(buf, sizeof(buf))
17838 rm -f conftest.$ac_objext conftest$ac_exeext
17839 if { (eval echo "$as_me:17839: \"$ac_link\"") >&5
17840 (eval $ac_link) 2>&5
17842 echo "$as_me:17842: \$? = $ac_status" >&5
17843 (exit $ac_status); } &&
17844 { ac_try='test -s conftest$ac_exeext'
17845 { (eval echo "$as_me:17845: \"$ac_try\"") >&5
17846 (eval $ac_try) 2>&5
17848 echo "$as_me:17848: \$? = $ac_status" >&5
17849 (exit $ac_status); }; }; then
17850 cf_cv_libstdcpp=yes
17852 echo "$as_me: failed program was:" >&5
17853 cat conftest.$ac_ext >&5
17856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17860 echo "$as_me:17860: result: $cf_cv_libstdcpp" >&5
17861 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
17862 test "$cf_cv_libstdcpp" = yes && CXXLIBS="-l$cf_stdcpp_libname $CXXLIBS"
17865 echo "$as_me:17865: checking whether $CXX understands -c and -o together" >&5
17866 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
17867 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
17868 echo $ECHO_N "(cached) $ECHO_C" >&6
17871 cat > conftest.$ac_ext <<CF_EOF
17875 ${cf_cv_main_return:-return}(0);
17878 # We do the test twice because some compilers refuse to overwrite an
17879 # existing .o file with -o, though they will create one.
17880 ac_try='$CXX -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
17881 if { (eval echo "$as_me:17881: \"$ac_try\"") >&5
17882 (eval $ac_try) 2>&5
17884 echo "$as_me:17884: \$? = $ac_status" >&5
17885 (exit $ac_status); } &&
17886 test -f conftest2.$ac_objext && { (eval echo "$as_me:17886: \"$ac_try\"") >&5
17887 (eval $ac_try) 2>&5
17889 echo "$as_me:17889: \$? = $ac_status" >&5
17890 (exit $ac_status); };
17892 eval cf_cv_prog_CXX_c_o=yes
17894 eval cf_cv_prog_CXX_c_o=no
17899 if test $cf_cv_prog_CXX_c_o = yes; then
17900 echo "$as_me:17900: result: yes" >&5
17901 echo "${ECHO_T}yes" >&6
17903 echo "$as_me:17903: result: no" >&5
17904 echo "${ECHO_T}no" >&6
17907 case $GXX_VERSION in
17913 cf_cxx_library=unknown
17914 case $cf_cv_system_name in #(vi
17922 if test "$GXX" = yes; then
17923 echo "$as_me:17923: checking for lib$cf_gpp_libname" >&5
17924 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
17926 LIBS="-l$cf_gpp_libname $LIBS"
17927 cat >conftest.$ac_ext <<_ACEOF
17928 #line 17928 "configure"
17929 #include "confdefs.h"
17931 #include <$cf_gpp_libname/builtin.h>
17936 two_arg_error_handler_t foo2 = lib_error_handler
17941 rm -f conftest.$ac_objext conftest$ac_exeext
17942 if { (eval echo "$as_me:17942: \"$ac_link\"") >&5
17943 (eval $ac_link) 2>&5
17945 echo "$as_me:17945: \$? = $ac_status" >&5
17946 (exit $ac_status); } &&
17947 { ac_try='test -s conftest$ac_exeext'
17948 { (eval echo "$as_me:17948: \"$ac_try\"") >&5
17949 (eval $ac_try) 2>&5
17951 echo "$as_me:17951: \$? = $ac_status" >&5
17952 (exit $ac_status); }; }; then
17954 CXXLIBS="-l$cf_gpp_libname $CXXLIBS"
17955 if test "$cf_gpp_libname" = cpp ; then
17956 cat >>confdefs.h <<\EOF
17957 #define HAVE_GPP_BUILTIN_H 1
17961 cat >>confdefs.h <<\EOF
17962 #define HAVE_GXX_BUILTIN_H 1
17967 echo "$as_me: failed program was:" >&5
17968 cat conftest.$ac_ext >&5
17969 cat >conftest.$ac_ext <<_ACEOF
17970 #line 17970 "configure"
17971 #include "confdefs.h"
17973 #include <builtin.h>
17978 two_arg_error_handler_t foo2 = lib_error_handler
17983 rm -f conftest.$ac_objext conftest$ac_exeext
17984 if { (eval echo "$as_me:17984: \"$ac_link\"") >&5
17985 (eval $ac_link) 2>&5
17987 echo "$as_me:17987: \$? = $ac_status" >&5
17988 (exit $ac_status); } &&
17989 { ac_try='test -s conftest$ac_exeext'
17990 { (eval echo "$as_me:17990: \"$ac_try\"") >&5
17991 (eval $ac_try) 2>&5
17993 echo "$as_me:17993: \$? = $ac_status" >&5
17994 (exit $ac_status); }; }; then
17996 CXXLIBS="-l$cf_gpp_libname $CXXLIBS"
17997 cat >>confdefs.h <<\EOF
17998 #define HAVE_BUILTIN_H 1
18002 echo "$as_me: failed program was:" >&5
18003 cat conftest.$ac_ext >&5
18006 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18008 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18010 echo "$as_me:18010: result: $cf_cxx_library" >&5
18011 echo "${ECHO_T}$cf_cxx_library" >&6
18021 ac_cpp='$CXXCPP $CPPFLAGS'
18022 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18023 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18024 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18025 ac_main_return=return
18026 echo "$as_me:18026: checking how to run the C++ preprocessor" >&5
18027 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
18028 if test -z "$CXXCPP"; then
18029 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18030 echo $ECHO_N "(cached) $ECHO_C" >&6
18032 # Double quotes because CXXCPP needs to be expanded
18033 for CXXCPP in "$CXX -E" "/lib/cpp"
18035 ac_preproc_ok=false
18036 for ac_cxx_preproc_warn_flag in '' yes
18038 # Use a header file that comes with gcc, so configuring glibc
18039 # with a fresh cross-compiler works.
18040 # On the NeXT, cc -E runs the code through the compiler's parser,
18041 # not just through cpp. "Syntax error" is here to catch this case.
18042 cat >conftest.$ac_ext <<_ACEOF
18043 #line 18043 "configure"
18044 #include "confdefs.h"
18045 #include <assert.h>
18048 if { (eval echo "$as_me:18048: \"$ac_cpp conftest.$ac_ext\"") >&5
18049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18051 egrep -v '^ *\+' conftest.er1 >conftest.err
18053 cat conftest.err >&5
18054 echo "$as_me:18054: \$? = $ac_status" >&5
18055 (exit $ac_status); } >/dev/null; then
18056 if test -s conftest.err; then
18057 ac_cpp_err=$ac_cxx_preproc_warn_flag
18064 if test -z "$ac_cpp_err"; then
18067 echo "$as_me: failed program was:" >&5
18068 cat conftest.$ac_ext >&5
18069 # Broken: fails on valid input.
18072 rm -f conftest.err conftest.$ac_ext
18074 # OK, works on sane cases. Now check whether non-existent headers
18075 # can be detected and how.
18076 cat >conftest.$ac_ext <<_ACEOF
18077 #line 18077 "configure"
18078 #include "confdefs.h"
18079 #include <ac_nonexistent.h>
18081 if { (eval echo "$as_me:18081: \"$ac_cpp conftest.$ac_ext\"") >&5
18082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18084 egrep -v '^ *\+' conftest.er1 >conftest.err
18086 cat conftest.err >&5
18087 echo "$as_me:18087: \$? = $ac_status" >&5
18088 (exit $ac_status); } >/dev/null; then
18089 if test -s conftest.err; then
18090 ac_cpp_err=$ac_cxx_preproc_warn_flag
18097 if test -z "$ac_cpp_err"; then
18098 # Broken: success on invalid input.
18101 echo "$as_me: failed program was:" >&5
18102 cat conftest.$ac_ext >&5
18103 # Passes both tests.
18107 rm -f conftest.err conftest.$ac_ext
18110 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18111 rm -f conftest.err conftest.$ac_ext
18112 if $ac_preproc_ok; then
18117 ac_cv_prog_CXXCPP=$CXXCPP
18120 CXXCPP=$ac_cv_prog_CXXCPP
18122 ac_cv_prog_CXXCPP=$CXXCPP
18124 echo "$as_me:18124: result: $CXXCPP" >&5
18125 echo "${ECHO_T}$CXXCPP" >&6
18126 ac_preproc_ok=false
18127 for ac_cxx_preproc_warn_flag in '' yes
18129 # Use a header file that comes with gcc, so configuring glibc
18130 # with a fresh cross-compiler works.
18131 # On the NeXT, cc -E runs the code through the compiler's parser,
18132 # not just through cpp. "Syntax error" is here to catch this case.
18133 cat >conftest.$ac_ext <<_ACEOF
18134 #line 18134 "configure"
18135 #include "confdefs.h"
18136 #include <assert.h>
18139 if { (eval echo "$as_me:18139: \"$ac_cpp conftest.$ac_ext\"") >&5
18140 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18142 egrep -v '^ *\+' conftest.er1 >conftest.err
18144 cat conftest.err >&5
18145 echo "$as_me:18145: \$? = $ac_status" >&5
18146 (exit $ac_status); } >/dev/null; then
18147 if test -s conftest.err; then
18148 ac_cpp_err=$ac_cxx_preproc_warn_flag
18155 if test -z "$ac_cpp_err"; then
18158 echo "$as_me: failed program was:" >&5
18159 cat conftest.$ac_ext >&5
18160 # Broken: fails on valid input.
18163 rm -f conftest.err conftest.$ac_ext
18165 # OK, works on sane cases. Now check whether non-existent headers
18166 # can be detected and how.
18167 cat >conftest.$ac_ext <<_ACEOF
18168 #line 18168 "configure"
18169 #include "confdefs.h"
18170 #include <ac_nonexistent.h>
18172 if { (eval echo "$as_me:18172: \"$ac_cpp conftest.$ac_ext\"") >&5
18173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18175 egrep -v '^ *\+' conftest.er1 >conftest.err
18177 cat conftest.err >&5
18178 echo "$as_me:18178: \$? = $ac_status" >&5
18179 (exit $ac_status); } >/dev/null; then
18180 if test -s conftest.err; then
18181 ac_cpp_err=$ac_cxx_preproc_warn_flag
18188 if test -z "$ac_cpp_err"; then
18189 # Broken: success on invalid input.
18192 echo "$as_me: failed program was:" >&5
18193 cat conftest.$ac_ext >&5
18194 # Passes both tests.
18198 rm -f conftest.err conftest.$ac_ext
18201 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18202 rm -f conftest.err conftest.$ac_ext
18203 if $ac_preproc_ok; then
18206 { { echo "$as_me:18206: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
18207 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
18208 { (exit 1); exit 1; }; }
18212 ac_cpp='$CXXCPP $CPPFLAGS'
18213 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18214 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18215 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18216 ac_main_return=return
18218 for ac_header in typeinfo
18220 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18221 echo "$as_me:18221: checking for $ac_header" >&5
18222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18224 echo $ECHO_N "(cached) $ECHO_C" >&6
18226 cat >conftest.$ac_ext <<_ACEOF
18227 #line 18227 "configure"
18228 #include "confdefs.h"
18229 #include <$ac_header>
18231 if { (eval echo "$as_me:18231: \"$ac_cpp conftest.$ac_ext\"") >&5
18232 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18234 egrep -v '^ *\+' conftest.er1 >conftest.err
18236 cat conftest.err >&5
18237 echo "$as_me:18237: \$? = $ac_status" >&5
18238 (exit $ac_status); } >/dev/null; then
18239 if test -s conftest.err; then
18240 ac_cpp_err=$ac_cxx_preproc_warn_flag
18247 if test -z "$ac_cpp_err"; then
18248 eval "$as_ac_Header=yes"
18250 echo "$as_me: failed program was:" >&5
18251 cat conftest.$ac_ext >&5
18252 eval "$as_ac_Header=no"
18254 rm -f conftest.err conftest.$ac_ext
18256 echo "$as_me:18256: result: `eval echo '${'$as_ac_Header'}'`" >&5
18257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18259 cat >>confdefs.h <<EOF
18260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18266 for ac_header in iostream
18268 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18269 echo "$as_me:18269: checking for $ac_header" >&5
18270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18272 echo $ECHO_N "(cached) $ECHO_C" >&6
18274 cat >conftest.$ac_ext <<_ACEOF
18275 #line 18275 "configure"
18276 #include "confdefs.h"
18277 #include <$ac_header>
18279 if { (eval echo "$as_me:18279: \"$ac_cpp conftest.$ac_ext\"") >&5
18280 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18282 egrep -v '^ *\+' conftest.er1 >conftest.err
18284 cat conftest.err >&5
18285 echo "$as_me:18285: \$? = $ac_status" >&5
18286 (exit $ac_status); } >/dev/null; then
18287 if test -s conftest.err; then
18288 ac_cpp_err=$ac_cxx_preproc_warn_flag
18295 if test -z "$ac_cpp_err"; then
18296 eval "$as_ac_Header=yes"
18298 echo "$as_me: failed program was:" >&5
18299 cat conftest.$ac_ext >&5
18300 eval "$as_ac_Header=no"
18302 rm -f conftest.err conftest.$ac_ext
18304 echo "$as_me:18304: result: `eval echo '${'$as_ac_Header'}'`" >&5
18305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18307 cat >>confdefs.h <<EOF
18308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18314 if test x"$ac_cv_header_iostream" = xyes ; then
18315 echo "$as_me:18315: checking if iostream uses std-namespace" >&5
18316 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
18317 cat >conftest.$ac_ext <<_ACEOF
18318 #line 18318 "configure"
18319 #include "confdefs.h"
18321 #include <iostream>
18328 cerr << "testing" << endl;
18334 rm -f conftest.$ac_objext
18335 if { (eval echo "$as_me:18335: \"$ac_compile\"") >&5
18336 (eval $ac_compile) 2>&5
18338 echo "$as_me:18338: \$? = $ac_status" >&5
18339 (exit $ac_status); } &&
18340 { ac_try='test -s conftest.$ac_objext'
18341 { (eval echo "$as_me:18341: \"$ac_try\"") >&5
18342 (eval $ac_try) 2>&5
18344 echo "$as_me:18344: \$? = $ac_status" >&5
18345 (exit $ac_status); }; }; then
18346 cf_iostream_namespace=yes
18348 echo "$as_me: failed program was:" >&5
18349 cat conftest.$ac_ext >&5
18350 cf_iostream_namespace=no
18352 rm -f conftest.$ac_objext conftest.$ac_ext
18353 echo "$as_me:18353: result: $cf_iostream_namespace" >&5
18354 echo "${ECHO_T}$cf_iostream_namespace" >&6
18355 if test "$cf_iostream_namespace" = yes ; then
18356 cat >>confdefs.h <<\EOF
18357 #define IOSTREAM_NAMESPACE 1
18363 echo "$as_me:18363: checking if we should include stdbool.h" >&5
18364 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
18366 if test "${cf_cv_header_stdbool_h+set}" = set; then
18367 echo $ECHO_N "(cached) $ECHO_C" >&6
18370 cat >conftest.$ac_ext <<_ACEOF
18371 #line 18371 "configure"
18372 #include "confdefs.h"
18382 rm -f conftest.$ac_objext
18383 if { (eval echo "$as_me:18383: \"$ac_compile\"") >&5
18384 (eval $ac_compile) 2>&5
18386 echo "$as_me:18386: \$? = $ac_status" >&5
18387 (exit $ac_status); } &&
18388 { ac_try='test -s conftest.$ac_objext'
18389 { (eval echo "$as_me:18389: \"$ac_try\"") >&5
18390 (eval $ac_try) 2>&5
18392 echo "$as_me:18392: \$? = $ac_status" >&5
18393 (exit $ac_status); }; }; then
18394 cf_cv_header_stdbool_h=0
18396 echo "$as_me: failed program was:" >&5
18397 cat conftest.$ac_ext >&5
18398 cat >conftest.$ac_ext <<_ACEOF
18399 #line 18399 "configure"
18400 #include "confdefs.h"
18403 #include <stdbool.h>
18414 rm -f conftest.$ac_objext
18415 if { (eval echo "$as_me:18415: \"$ac_compile\"") >&5
18416 (eval $ac_compile) 2>&5
18418 echo "$as_me:18418: \$? = $ac_status" >&5
18419 (exit $ac_status); } &&
18420 { ac_try='test -s conftest.$ac_objext'
18421 { (eval echo "$as_me:18421: \"$ac_try\"") >&5
18422 (eval $ac_try) 2>&5
18424 echo "$as_me:18424: \$? = $ac_status" >&5
18425 (exit $ac_status); }; }; then
18426 cf_cv_header_stdbool_h=1
18428 echo "$as_me: failed program was:" >&5
18429 cat conftest.$ac_ext >&5
18430 cf_cv_header_stdbool_h=0
18432 rm -f conftest.$ac_objext conftest.$ac_ext
18434 rm -f conftest.$ac_objext conftest.$ac_ext
18437 if test "$cf_cv_header_stdbool_h" = 1
18438 then echo "$as_me:18438: result: yes" >&5
18439 echo "${ECHO_T}yes" >&6
18440 else echo "$as_me:18440: result: no" >&5
18441 echo "${ECHO_T}no" >&6
18444 echo "$as_me:18444: checking for builtin bool type" >&5
18445 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
18447 if test "${cf_cv_builtin_bool+set}" = set; then
18448 echo $ECHO_N "(cached) $ECHO_C" >&6
18451 cat >conftest.$ac_ext <<_ACEOF
18452 #line 18452 "configure"
18453 #include "confdefs.h"
18456 #include <sys/types.h>
18466 rm -f conftest.$ac_objext
18467 if { (eval echo "$as_me:18467: \"$ac_compile\"") >&5
18468 (eval $ac_compile) 2>&5
18470 echo "$as_me:18470: \$? = $ac_status" >&5
18471 (exit $ac_status); } &&
18472 { ac_try='test -s conftest.$ac_objext'
18473 { (eval echo "$as_me:18473: \"$ac_try\"") >&5
18474 (eval $ac_try) 2>&5
18476 echo "$as_me:18476: \$? = $ac_status" >&5
18477 (exit $ac_status); }; }; then
18478 cf_cv_builtin_bool=1
18480 echo "$as_me: failed program was:" >&5
18481 cat conftest.$ac_ext >&5
18482 cf_cv_builtin_bool=0
18484 rm -f conftest.$ac_objext conftest.$ac_ext
18488 if test "$cf_cv_builtin_bool" = 1
18489 then echo "$as_me:18489: result: yes" >&5
18490 echo "${ECHO_T}yes" >&6
18491 else echo "$as_me:18491: result: no" >&5
18492 echo "${ECHO_T}no" >&6
18495 echo "$as_me:18495: checking for size of bool" >&5
18496 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
18497 if test "${cf_cv_type_of_bool+set}" = set; then
18498 echo $ECHO_N "(cached) $ECHO_C" >&6
18502 if test "$cross_compiling" = yes; then
18503 cf_cv_type_of_bool=unknown
18505 cat >conftest.$ac_ext <<_ACEOF
18506 #line 18506 "configure"
18507 #include "confdefs.h"
18509 #include <stdlib.h>
18512 #if defined(__cplusplus)
18514 #ifdef HAVE_GXX_BUILTIN_H
18515 #include <g++/builtin.h>
18516 #elif HAVE_GPP_BUILTIN_H
18517 #include <gpp/builtin.h>
18518 #elif HAVE_BUILTIN_H
18519 #include <builtin.h>
18524 #if $cf_cv_header_stdbool_h
18525 #include <stdbool.h>
18532 FILE *fp = fopen("cf_test.out", "w");
18535 if ((bool)(-x) >= 0)
18536 fputs("unsigned ", fp);
18537 if (sizeof(x) == sizeof(int)) fputs("int", fp);
18538 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
18539 else if (sizeof(x) == sizeof(short))fputs("short",fp);
18540 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
18543 ${cf_cv_main_return:-return}(0);
18547 rm -f conftest$ac_exeext
18548 if { (eval echo "$as_me:18548: \"$ac_link\"") >&5
18549 (eval $ac_link) 2>&5
18551 echo "$as_me:18551: \$? = $ac_status" >&5
18552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18553 { (eval echo "$as_me:18553: \"$ac_try\"") >&5
18554 (eval $ac_try) 2>&5
18556 echo "$as_me:18556: \$? = $ac_status" >&5
18557 (exit $ac_status); }; }; then
18558 cf_cv_type_of_bool=`cat cf_test.out`
18559 if test -z "$cf_cv_type_of_bool"; then
18560 cf_cv_type_of_bool=unknown
18563 echo "$as_me: program exited with status $ac_status" >&5
18564 echo "$as_me: failed program was:" >&5
18565 cat conftest.$ac_ext >&5
18566 cf_cv_type_of_bool=unknown
18568 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18574 echo "$as_me:18574: result: $cf_cv_type_of_bool" >&5
18575 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
18576 if test "$cf_cv_type_of_bool" = unknown ; then
18577 case .$NCURSES_BOOL in #(vi
18578 .auto|.) NCURSES_BOOL=unsigned;;
18580 { echo "$as_me:18580: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
18581 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
18582 cf_cv_type_of_bool=$NCURSES_BOOL
18585 echo "$as_me:18585: checking for special defines needed for etip.h" >&5
18586 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
18587 cf_save_CXXFLAGS="$CXXFLAGS"
18589 for cf_math in "" MATH_H
18591 for cf_excp in "" MATH_EXCEPTION
18593 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -I${srcdir}/include"
18594 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
18595 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
18596 cat >conftest.$ac_ext <<_ACEOF
18597 #line 18597 "configure"
18598 #include "confdefs.h"
18600 #include <etip.h.in>
18610 rm -f conftest.$ac_objext
18611 if { (eval echo "$as_me:18611: \"$ac_compile\"") >&5
18612 (eval $ac_compile) 2>&5
18614 echo "$as_me:18614: \$? = $ac_status" >&5
18615 (exit $ac_status); } &&
18616 { ac_try='test -s conftest.$ac_objext'
18617 { (eval echo "$as_me:18617: \"$ac_try\"") >&5
18618 (eval $ac_try) 2>&5
18620 echo "$as_me:18620: \$? = $ac_status" >&5
18621 (exit $ac_status); }; }; then
18623 test -n "$cf_math" && cat >>confdefs.h <<EOF
18624 #define ETIP_NEEDS_${cf_math} 1
18627 test -n "$cf_excp" && cat >>confdefs.h <<EOF
18628 #define ETIP_NEEDS_${cf_excp} 1
18631 cf_result="$cf_math $cf_excp"
18635 echo "$as_me: failed program was:" >&5
18636 cat conftest.$ac_ext >&5
18638 rm -f conftest.$ac_objext conftest.$ac_ext
18641 echo "$as_me:18641: result: $cf_result" >&5
18642 echo "${ECHO_T}$cf_result" >&6
18643 CXXFLAGS="$cf_save_CXXFLAGS"
18645 if test -n "$CXX"; then
18646 echo "$as_me:18646: checking if $CXX accepts parameter initialization" >&5
18647 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
18648 if test "${cf_cv_cpp_param_init+set}" = set; then
18649 echo $ECHO_N "(cached) $ECHO_C" >&6
18653 ac_cpp='$CXXCPP $CPPFLAGS'
18654 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18655 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18656 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18657 ac_main_return=return
18659 if test "$cross_compiling" = yes; then
18660 cf_cv_cpp_param_init=unknown
18662 cat >conftest.$ac_ext <<_ACEOF
18663 #line 18663 "configure"
18664 #include "confdefs.h"
18674 TEST::TEST(int x = 1) // some compilers do not like second initializer
18681 rm -f conftest$ac_exeext
18682 if { (eval echo "$as_me:18682: \"$ac_link\"") >&5
18683 (eval $ac_link) 2>&5
18685 echo "$as_me:18685: \$? = $ac_status" >&5
18686 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18687 { (eval echo "$as_me:18687: \"$ac_try\"") >&5
18688 (eval $ac_try) 2>&5
18690 echo "$as_me:18690: \$? = $ac_status" >&5
18691 (exit $ac_status); }; }; then
18692 cf_cv_cpp_param_init=yes
18694 echo "$as_me: program exited with status $ac_status" >&5
18695 echo "$as_me: failed program was:" >&5
18696 cat conftest.$ac_ext >&5
18697 cf_cv_cpp_param_init=no
18699 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18702 ac_cpp='$CXXCPP $CPPFLAGS'
18703 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18704 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18705 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18706 ac_main_return=return
18709 echo "$as_me:18709: result: $cf_cv_cpp_param_init" >&5
18710 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
18712 test "$cf_cv_cpp_param_init" = yes && cat >>confdefs.h <<\EOF
18713 #define CPP_HAS_PARAM_INIT 1
18716 if test -n "$CXX"; then
18718 echo "$as_me:18718: checking if $CXX accepts static_cast" >&5
18719 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
18720 if test "${cf_cv_cpp_static_cast+set}" = set; then
18721 echo $ECHO_N "(cached) $ECHO_C" >&6
18725 ac_cpp='$CXXCPP $CPPFLAGS'
18726 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18727 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18728 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18729 ac_main_return=return
18731 cat >conftest.$ac_ext <<_ACEOF
18732 #line 18732 "configure"
18733 #include "confdefs.h"
18738 NCursesPanel(int nlines,
18748 template<class T> class NCursesUserPanel : public NCursesPanel
18751 NCursesUserPanel (int nlines,
18755 const T* p_UserData = static_cast<T*>(0))
18756 : NCursesPanel (nlines, ncols, begin_y, begin_x)
18759 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
18763 virtual ~NCursesUserPanel() {};
18770 const char* p_UserData = static_cast<char*>(0)
18775 rm -f conftest.$ac_objext
18776 if { (eval echo "$as_me:18776: \"$ac_compile\"") >&5
18777 (eval $ac_compile) 2>&5
18779 echo "$as_me:18779: \$? = $ac_status" >&5
18780 (exit $ac_status); } &&
18781 { ac_try='test -s conftest.$ac_objext'
18782 { (eval echo "$as_me:18782: \"$ac_try\"") >&5
18783 (eval $ac_try) 2>&5
18785 echo "$as_me:18785: \$? = $ac_status" >&5
18786 (exit $ac_status); }; }; then
18787 cf_cv_cpp_static_cast=yes
18789 echo "$as_me: failed program was:" >&5
18790 cat conftest.$ac_ext >&5
18791 cf_cv_cpp_static_cast=no
18793 rm -f conftest.$ac_objext conftest.$ac_ext
18796 ac_cpp='$CXXCPP $CPPFLAGS'
18797 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18798 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18799 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18800 ac_main_return=return
18803 echo "$as_me:18803: result: $cf_cv_cpp_static_cast" >&5
18804 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
18808 test "$cf_cv_cpp_static_cast" = yes && cat >>confdefs.h <<\EOF
18809 #define CPP_HAS_STATIC_CAST 1
18813 CXX_ARFLAGS='$(ARFLAGS)'
18814 case $cf_cv_system_name in #(vi
18816 if test "$GXX" != yes ; then
18818 CXX_ARFLAGS='-ar -o'
18822 CXXLDFLAGS="-u main"
18825 if test "$GXX" != yes ; then
18827 CXX_ARFLAGS='-xar -o'
18834 cf_cv_builtin_bool=1
18836 # Just because we are not configuring against C++ right now does not
18837 # mean that a user will not want to use C++. Some distributors disable
18838 # the C++ portion of this configuration as a shortcut (or just to avoid
18839 # compiling the demo in the c++ directory). So we need a reasonable
18840 # default for the 'bool' type.
18842 # Caveat: since the storage of the bool type is not standardized, it
18845 if test "$NCURSES_BOOL" != auto ; then
18846 cf_cv_type_of_bool=$NCURSES_BOOL
18847 cf_cv_header_stdbool_h=0
18849 if test "$cf_cv_header_stdbool_h" = 1 ; then
18851 echo "$as_me:18851: checking for size of bool" >&5
18852 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
18853 if test "${cf_cv_type_of_bool+set}" = set; then
18854 echo $ECHO_N "(cached) $ECHO_C" >&6
18858 if test "$cross_compiling" = yes; then
18859 cf_cv_type_of_bool=unknown
18861 cat >conftest.$ac_ext <<_ACEOF
18862 #line 18862 "configure"
18863 #include "confdefs.h"
18865 #include <stdlib.h>
18868 #if defined(__cplusplus)
18870 #ifdef HAVE_GXX_BUILTIN_H
18871 #include <g++/builtin.h>
18872 #elif HAVE_GPP_BUILTIN_H
18873 #include <gpp/builtin.h>
18874 #elif HAVE_BUILTIN_H
18875 #include <builtin.h>
18880 #if $cf_cv_header_stdbool_h
18881 #include <stdbool.h>
18888 FILE *fp = fopen("cf_test.out", "w");
18891 if ((bool)(-x) >= 0)
18892 fputs("unsigned ", fp);
18893 if (sizeof(x) == sizeof(int)) fputs("int", fp);
18894 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
18895 else if (sizeof(x) == sizeof(short))fputs("short",fp);
18896 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
18899 ${cf_cv_main_return:-return}(0);
18903 rm -f conftest$ac_exeext
18904 if { (eval echo "$as_me:18904: \"$ac_link\"") >&5
18905 (eval $ac_link) 2>&5
18907 echo "$as_me:18907: \$? = $ac_status" >&5
18908 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18909 { (eval echo "$as_me:18909: \"$ac_try\"") >&5
18910 (eval $ac_try) 2>&5
18912 echo "$as_me:18912: \$? = $ac_status" >&5
18913 (exit $ac_status); }; }; then
18914 cf_cv_type_of_bool=`cat cf_test.out`
18915 if test -z "$cf_cv_type_of_bool"; then
18916 cf_cv_type_of_bool=unknown
18919 echo "$as_me: program exited with status $ac_status" >&5
18920 echo "$as_me: failed program was:" >&5
18921 cat conftest.$ac_ext >&5
18922 cf_cv_type_of_bool=unknown
18924 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18930 echo "$as_me:18930: result: $cf_cv_type_of_bool" >&5
18931 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
18932 if test "$cf_cv_type_of_bool" = unknown ; then
18933 case .$NCURSES_BOOL in #(vi
18934 .auto|.) NCURSES_BOOL=unsigned;;
18936 { echo "$as_me:18936: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
18937 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
18938 cf_cv_type_of_bool=$NCURSES_BOOL
18942 echo "$as_me:18942: checking for fallback type of bool" >&5
18943 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
18944 case "$host_cpu" in #(vi
18945 i?86) cf_cv_type_of_bool=char ;; #(vi
18946 *) cf_cv_type_of_bool=int ;;
18948 echo "$as_me:18948: result: $cf_cv_type_of_bool" >&5
18949 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
18954 # If the C compiler did not declare bool, and we did not determine that the C++
18955 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
18956 # ncurses library use the same type as C++ bool. Note that this allows one to
18957 # specify the type of bool in a configure-script option and postpone
18958 # integration with the C++ compiler provided that the types are compatible.
18960 if test $cf_cv_cc_bool_type = 1
18962 # oops: C has a bool. Unlikely, but C++ could differ.
18964 elif test $cf_cv_builtin_bool = 0
18969 # this is the normal case
18970 USE_CXX_BOOL='defined(__cplusplus)'
18973 if test -f "${srcdir}/Ada95/Makefile.in" ; then
18975 if test "$cf_with_ada" != "no" ; then
18976 if test "$with_libtool" != "no"; then
18977 { echo "$as_me:18977: WARNING: libtool does not support Ada - disabling feature" >&5
18978 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
18983 if test "$cf_with_ada" != "no" ; then
18985 cf_ada_make=gnatmake
18986 # Extract the first word of "$cf_ada_make", so it can be a program name with args.
18987 set dummy $cf_ada_make; ac_word=$2
18988 echo "$as_me:18988: checking for $ac_word" >&5
18989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18990 if test "${ac_cv_prog_gnat_exists+set}" = set; then
18991 echo $ECHO_N "(cached) $ECHO_C" >&6
18993 if test -n "$gnat_exists"; then
18994 ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test.
18996 ac_save_IFS=$IFS; IFS=$ac_path_separator
18998 for ac_dir in $ac_dummy; do
19000 test -z "$ac_dir" && ac_dir=.
19001 $as_executable_p "$ac_dir/$ac_word" || continue
19002 ac_cv_prog_gnat_exists="yes"
19003 echo "$as_me:19003: found $ac_dir/$ac_word" >&5
19007 test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no"
19010 gnat_exists=$ac_cv_prog_gnat_exists
19011 if test -n "$gnat_exists"; then
19012 echo "$as_me:19012: result: $gnat_exists" >&5
19013 echo "${ECHO_T}$gnat_exists" >&6
19015 echo "$as_me:19015: result: no" >&5
19016 echo "${ECHO_T}no" >&6
19019 if test "$ac_cv_prog_gnat_exists" = no; then
19021 cf_cv_prog_gnat_correct=no
19024 echo "$as_me:19024: checking for gnat version" >&5
19025 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
19026 cf_gnat_version=`${cf_ada_make:-gnatmake} -v 2>&1 | \
19027 grep '[0-9].[0-9][0-9]*' |\
19028 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
19029 echo "$as_me:19029: result: $cf_gnat_version" >&5
19030 echo "${ECHO_T}$cf_gnat_version" >&6
19032 case $cf_gnat_version in #(vi
19033 3.1[1-9]*|3.[2-9]*|[4-9].*) #(vi
19034 cf_cv_prog_gnat_correct=yes
19037 { echo "$as_me:19037: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
19038 echo "$as_me: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
19039 cf_cv_prog_gnat_correct=no
19043 # Extract the first word of "m4", so it can be a program name with args.
19044 set dummy m4; ac_word=$2
19045 echo "$as_me:19045: checking for $ac_word" >&5
19046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19047 if test "${ac_cv_prog_M4_exists+set}" = set; then
19048 echo $ECHO_N "(cached) $ECHO_C" >&6
19050 if test -n "$M4_exists"; then
19051 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
19053 ac_save_IFS=$IFS; IFS=$ac_path_separator
19055 for ac_dir in $ac_dummy; do
19057 test -z "$ac_dir" && ac_dir=.
19058 $as_executable_p "$ac_dir/$ac_word" || continue
19059 ac_cv_prog_M4_exists="yes"
19060 echo "$as_me:19060: found $ac_dir/$ac_word" >&5
19064 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
19067 M4_exists=$ac_cv_prog_M4_exists
19068 if test -n "$M4_exists"; then
19069 echo "$as_me:19069: result: $M4_exists" >&5
19070 echo "${ECHO_T}$M4_exists" >&6
19072 echo "$as_me:19072: result: no" >&5
19073 echo "${ECHO_T}no" >&6
19076 if test "$ac_cv_prog_M4_exists" = no; then
19077 cf_cv_prog_gnat_correct=no
19078 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
19080 if test "$cf_cv_prog_gnat_correct" = yes; then
19081 echo "$as_me:19081: checking if GNAT works" >&5
19082 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
19084 rm -rf conftest* *~conftest*
19085 cat >>conftest.ads <<CF_EOF
19086 procedure conftest;
19088 cat >>conftest.adb <<CF_EOF
19091 procedure conftest is
19093 Text_IO.Put ("Hello World");
19095 GNAT.OS_Lib.OS_Exit (0);
19098 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
19099 if ( ./conftest 1>&5 2>&1 ) ; then
19100 cf_cv_prog_gnat_correct=yes
19102 cf_cv_prog_gnat_correct=no
19105 cf_cv_prog_gnat_correct=no
19107 rm -rf conftest* *~conftest*
19109 echo "$as_me:19109: result: $cf_cv_prog_gnat_correct" >&5
19110 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
19114 if test "$cf_cv_prog_gnat_correct" = yes; then
19116 ADAFLAGS="$ADAFLAGS -gnatpn"
19118 # make ADAFLAGS consistent with CFLAGS
19122 ADAFLAGS="$ADAFLAGS -g"
19129 ADAFLAGS="$ADAFLAGS -O3"
19134 echo "$as_me:19134: checking if GNAT supports generics" >&5
19135 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
19136 case $cf_gnat_version in #(vi
19137 3.[1-9]*|[4-9].*) #(vi
19138 cf_gnat_generics=yes
19141 cf_gnat_generics=no
19144 echo "$as_me:19144: result: $cf_gnat_generics" >&5
19145 echo "${ECHO_T}$cf_gnat_generics" >&6
19147 if test "$cf_gnat_generics" = yes
19149 cf_compile_generics=generics
19150 cf_generic_objects="\${GENOBJS}"
19152 cf_compile_generics=
19153 cf_generic_objects=
19156 echo "$as_me:19156: checking if GNAT supports SIGINT" >&5
19157 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
19158 if test "${cf_cv_gnat_sigint+set}" = set; then
19159 echo $ECHO_N "(cached) $ECHO_C" >&6
19162 rm -rf conftest* *~conftest*
19163 cat >>conftest.ads <<CF_EOF
19164 with Ada.Interrupts.Names;
19166 package ConfTest is
19168 pragma Warnings (Off); -- the next pragma exists since 3.11p
19169 pragma Unreserve_All_Interrupts;
19170 pragma Warnings (On);
19172 protected Process is
19174 function Continue return Boolean;
19175 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
19177 Done : Boolean := False;
19182 cat >>conftest.adb <<CF_EOF
19183 package body ConfTest is
19184 protected body Process is
19189 function Continue return Boolean is
19196 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
19197 cf_cv_gnat_sigint=yes
19199 cf_cv_gnat_sigint=no
19201 rm -rf conftest* *~conftest*
19204 echo "$as_me:19204: result: $cf_cv_gnat_sigint" >&5
19205 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
19207 if test $cf_cv_gnat_sigint = yes ; then
19210 USE_GNAT_SIGINT="#"
19213 echo "$as_me:19213: checking if GNAT pragma Unreferenced works" >&5
19214 echo $ECHO_N "checking if GNAT pragma Unreferenced works... $ECHO_C" >&6
19215 if test "${cf_cv_pragma_unreferenced+set}" = set; then
19216 echo $ECHO_N "(cached) $ECHO_C" >&6
19219 rm -rf conftest* *~conftest*
19220 cat >>conftest.ads <<CF_EOF
19221 procedure conftest;
19223 cat >>conftest.adb <<CF_EOF
19226 procedure conftest is
19228 pragma Unreferenced (test);
19231 Text_IO.Put ("Hello World");
19233 GNAT.OS_Lib.OS_Exit (0);
19236 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
19237 cf_cv_pragma_unreferenced=yes
19239 cf_cv_pragma_unreferenced=no
19241 rm -rf conftest* *~conftest*
19244 echo "$as_me:19244: result: $cf_cv_pragma_unreferenced" >&5
19245 echo "${ECHO_T}$cf_cv_pragma_unreferenced" >&6
19247 # if the pragma is supported, use it (needed in the Trace code).
19248 if test $cf_cv_pragma_unreferenced = yes ; then
19254 cf_gnat_libraries=no
19255 cf_gnat_projects=no
19257 echo "$as_me:19257: checking if GNAT supports project files" >&5
19258 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
19259 case $cf_gnat_version in #(vi
19263 case $cf_cv_system_name in #(vi
19267 mkdir conftest.src conftest.bin conftest.lib
19269 rm -rf conftest* *~conftest*
19270 cat >>library.gpr <<CF_EOF
19272 Kind := External ("LIB_KIND");
19273 for Library_Name use "ConfTest";
19274 for Object_Dir use ".";
19275 for Library_ALI_Dir use External("LIBRARY_DIR");
19276 for Library_Version use External ("SONAME");
19277 for Library_Kind use Kind;
19278 for Library_Dir use External("BUILD_DIR");
19279 Source_Dir := External ("SOURCE_DIR");
19280 for Source_Dirs use (Source_Dir);
19281 package Compiler is
19282 for Default_Switches ("Ada") use
19286 "-gnatVa", -- All validity checks
19287 "-gnatwa"); -- Activate all optional errors
19291 cat >>confpackage.ads <<CF_EOF
19292 package ConfPackage is
19293 procedure conftest;
19296 cat >>confpackage.adb <<CF_EOF
19298 package body ConfPackage is
19299 procedure conftest is
19301 Text_IO.Put ("Hello World");
19306 if ( $cf_ada_make $ADAFLAGS \
19308 -XBUILD_DIR=`cd ../conftest.bin;pwd` \
19309 -XLIBRARY_DIR=`cd ../conftest.lib;pwd` \
19310 -XSOURCE_DIR=`pwd` \
19311 -XSONAME=libConfTest.so.1 \
19312 -XLIB_KIND=static 1>&5 2>&1 ) ; then
19313 cf_gnat_projects=yes
19316 if test -f conftest.lib/confpackage.ali
19318 cf_gnat_libraries=yes
19320 rm -rf conftest* *~conftest*
19325 echo "$as_me:19325: result: $cf_gnat_projects" >&5
19326 echo "${ECHO_T}$cf_gnat_projects" >&6
19328 if test $cf_gnat_projects = yes
19330 echo "$as_me:19330: checking if GNAT supports libraries" >&5
19331 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
19332 echo "$as_me:19332: result: $cf_gnat_libraries" >&5
19333 echo "${ECHO_T}$cf_gnat_libraries" >&6
19336 if test "$cf_gnat_projects" = yes
19338 USE_OLD_MAKERULES="#"
19339 USE_GNAT_PROJECTS=""
19341 USE_OLD_MAKERULES=""
19342 USE_GNAT_PROJECTS="#"
19345 if test "$cf_gnat_libraries" = yes
19347 USE_GNAT_LIBRARIES=""
19349 USE_GNAT_LIBRARIES="#"
19352 echo "$as_me:19352: checking for ada-compiler" >&5
19353 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
19355 # Check whether --with-ada-compiler or --without-ada-compiler was given.
19356 if test "${with_ada_compiler+set}" = set; then
19357 withval="$with_ada_compiler"
19358 cf_ada_compiler=$withval
19360 cf_ada_compiler=gnatmake
19363 echo "$as_me:19363: result: $cf_ada_compiler" >&5
19364 echo "${ECHO_T}$cf_ada_compiler" >&6
19366 cf_ada_package=terminal_interface
19368 echo "$as_me:19368: checking for ada-include" >&5
19369 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
19371 # Check whether --with-ada-include or --without-ada-include was given.
19372 if test "${with_ada_include+set}" = set; then
19373 withval="$with_ada_include"
19376 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
19377 fi; if test -n "$prefix/share/ada/adainclude" ; then
19379 if test "x$prefix" != xNONE; then
19380 cf_path_syntax="$prefix"
19382 cf_path_syntax="$ac_default_prefix"
19385 case ".$withval" in #(vi
19386 .\$\(*\)*|.\'*\'*) #(vi
19390 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
19392 .\${*prefix}*) #(vi
19393 eval withval="$withval"
19394 case ".$withval" in #(vi
19396 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
19401 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
19404 { { echo "$as_me:19404: error: expected a pathname, not \"$withval\"" >&5
19405 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
19406 { (exit 1); exit 1; }; }
19411 ADA_INCLUDE="$withval"
19413 echo "$as_me:19413: result: $ADA_INCLUDE" >&5
19414 echo "${ECHO_T}$ADA_INCLUDE" >&6
19416 echo "$as_me:19416: checking for ada-objects" >&5
19417 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
19419 # Check whether --with-ada-objects or --without-ada-objects was given.
19420 if test "${with_ada_objects+set}" = set; then
19421 withval="$with_ada_objects"
19424 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
19425 fi; if test -n "$prefix/lib/ada/adalib" ; then
19427 if test "x$prefix" != xNONE; then
19428 cf_path_syntax="$prefix"
19430 cf_path_syntax="$ac_default_prefix"
19433 case ".$withval" in #(vi
19434 .\$\(*\)*|.\'*\'*) #(vi
19438 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
19440 .\${*prefix}*) #(vi
19441 eval withval="$withval"
19442 case ".$withval" in #(vi
19444 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
19449 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
19452 { { echo "$as_me:19452: error: expected a pathname, not \"$withval\"" >&5
19453 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
19454 { (exit 1); exit 1; }; }
19459 ADA_OBJECTS="$withval"
19461 echo "$as_me:19461: result: $ADA_OBJECTS" >&5
19462 echo "${ECHO_T}$ADA_OBJECTS" >&6
19464 echo "$as_me:19464: checking if an Ada95 shared-library should be built" >&5
19465 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
19467 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
19468 if test "${with_ada_sharedlib+set}" = set; then
19469 withval="$with_ada_sharedlib"
19470 with_ada_sharedlib=$withval
19472 with_ada_sharedlib=no
19474 echo "$as_me:19474: result: $with_ada_sharedlib" >&5
19475 echo "${ECHO_T}$with_ada_sharedlib" >&6
19477 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
19478 MAKE_ADA_SHAREDLIB="#"
19480 if test "x$with_ada_sharedlib" != xno
19482 MAKE_ADA_SHAREDLIB=
19483 if test "x$with_ada_sharedlib" != xyes
19485 ADA_SHAREDLIB="$with_ada_sharedlib"
19495 ### Construct the ncurses library-subsets, if any, from this set of keywords:
19496 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
19498 ### ticlib modules may be a separate library, otherwise contained in termlib.
19499 ### termlib modules may be a separate library, otherwise contained in ncurses.
19501 ### The of "+" or " " between the tokens controls the way the script
19502 ### chooses to split module lists into libraries.
19504 ### (see CF_LIB_RULES).
19505 echo "$as_me:19505: checking for library subsets" >&5
19506 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
19509 if test "$cf_with_progs" = yes || test "$with_ticlib" != no || test "$with_termcap" != no; then
19510 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
19511 if test "$with_ticlib" != no ; then
19512 LIB_SUBSETS="${LIB_SUBSETS} "
19514 LIB_SUBSETS="${LIB_SUBSETS}+"
19518 LIB_SUBSETS="${LIB_SUBSETS}termlib"
19519 test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
19521 if test "$with_termlib" != no ; then
19522 LIB_SUBSETS="${LIB_SUBSETS} "
19524 LIB_SUBSETS="${LIB_SUBSETS}+"
19527 LIB_SUBSETS="${LIB_SUBSETS}base"
19529 # Most term-driver calls are to tinfo, but some like init_pair are to the
19530 # base library (so it resides in base).
19531 if test "$with_term_driver" != no ; then
19532 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
19533 case $cf_cv_system_name in #(vi
19535 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
19538 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
19543 test "$with_widec" = yes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
19544 test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
19546 echo "$as_me:19546: result: $LIB_SUBSETS" >&5
19547 echo "${ECHO_T}$LIB_SUBSETS" >&6
19549 ### Construct the list of include-directories to be generated
19551 CPPFLAGS="$CPPFLAGS -I. -I../include"
19552 if test "$srcdir" != "."; then
19553 CPPFLAGS="$CPPFLAGS -I\${srcdir}/../include"
19555 if test "$GCC" != yes; then
19556 CPPFLAGS="$CPPFLAGS -I\${includedir}"
19557 elif test "$includedir" != "/usr/include"; then
19558 if test "$includedir" = '${prefix}/include' ; then
19559 if test $prefix != /usr ; then
19560 CPPFLAGS="$CPPFLAGS -I\${includedir}"
19563 CPPFLAGS="$CPPFLAGS -I\${includedir}"
19567 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
19568 if test "$srcdir" != "."; then
19569 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
19571 if test "$GCC" != yes; then
19572 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
19573 elif test "$includedir" != "/usr/include"; then
19574 if test "$includedir" = '${prefix}/include' ; then
19575 if test $prefix != /usr ; then
19576 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
19579 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
19583 ### Build up pieces for makefile rules
19584 echo "$as_me:19584: checking default library suffix" >&5
19585 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
19587 case $DFT_LWR_MODEL in
19588 libtool) DFT_ARG_SUFFIX='' ;;
19589 normal) DFT_ARG_SUFFIX='' ;;
19590 debug) DFT_ARG_SUFFIX='_g' ;;
19591 profile) DFT_ARG_SUFFIX='_p' ;;
19592 shared) DFT_ARG_SUFFIX='' ;;
19594 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
19595 echo "$as_me:19595: result: $DFT_ARG_SUFFIX" >&5
19596 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
19598 echo "$as_me:19598: checking default library-dependency suffix" >&5
19599 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
19601 case $DFT_LWR_MODEL in #(vi
19603 DFT_LIB_SUFFIX='.la'
19604 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19607 DFT_LIB_SUFFIX='.a'
19608 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19611 DFT_LIB_SUFFIX='_g.a'
19612 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19615 DFT_LIB_SUFFIX='_p.a'
19616 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19619 case $cf_cv_system_name in
19621 DFT_LIB_SUFFIX='.a'
19622 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19625 DFT_LIB_SUFFIX='.dll'
19626 DFT_DEP_SUFFIX='.dll.a'
19629 DFT_LIB_SUFFIX='.dylib'
19630 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19635 DFT_LIB_SUFFIX='.so'
19636 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19639 DFT_LIB_SUFFIX='.sl'
19640 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19644 *) DFT_LIB_SUFFIX='.so'
19645 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19649 test -n "$LIB_SUFFIX" && DFT_LIB_SUFFIX="${LIB_SUFFIX}${DFT_LIB_SUFFIX}"
19650 test -n "$LIB_SUFFIX" && DFT_DEP_SUFFIX="${LIB_SUFFIX}${DFT_DEP_SUFFIX}"
19651 echo "$as_me:19651: result: $DFT_DEP_SUFFIX" >&5
19652 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
19654 echo "$as_me:19654: checking default object directory" >&5
19655 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
19657 case $DFT_LWR_MODEL in
19658 libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
19659 normal) DFT_OBJ_SUBDIR='objects' ;;
19660 debug) DFT_OBJ_SUBDIR='obj_g' ;;
19661 profile) DFT_OBJ_SUBDIR='obj_p' ;;
19663 case $cf_cv_system_name in #(vi
19665 DFT_OBJ_SUBDIR='objects' ;;
19667 DFT_OBJ_SUBDIR='obj_s' ;;
19670 echo "$as_me:19670: result: $DFT_OBJ_SUBDIR" >&5
19671 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
19673 # libtool thinks it can make c++ shared libraries (perhaps only g++)
19674 if test "$cf_with_cxx" = yes ; then
19675 echo "$as_me:19675: checking c++ library-dependency suffix" >&5
19676 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
19677 if test "$with_libtool" != "no"; then
19678 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
19681 case normal in #(vi
19683 CXX_LIB_SUFFIX='.la'
19684 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19687 CXX_LIB_SUFFIX='.a'
19688 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19691 CXX_LIB_SUFFIX='_g.a'
19692 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19695 CXX_LIB_SUFFIX='_p.a'
19696 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19699 case $cf_cv_system_name in
19701 CXX_LIB_SUFFIX='.a'
19702 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19705 CXX_LIB_SUFFIX='.dll'
19706 CXX_DEP_SUFFIX='.dll.a'
19709 CXX_LIB_SUFFIX='.dylib'
19710 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19715 CXX_LIB_SUFFIX='.so'
19716 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19719 CXX_LIB_SUFFIX='.sl'
19720 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19724 *) CXX_LIB_SUFFIX='.so'
19725 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19729 test -n "$LIB_SUFFIX" && CXX_LIB_SUFFIX="${LIB_SUFFIX}${CXX_LIB_SUFFIX}"
19730 test -n "$LIB_SUFFIX" && CXX_DEP_SUFFIX="${LIB_SUFFIX}${CXX_DEP_SUFFIX}"
19732 echo "$as_me:19732: result: $CXX_LIB_SUFFIX" >&5
19733 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
19737 # do not want -ldl in build except as needed for -lncurses dependency
19738 if test "$with_dlsym" = yes ; then
19739 if test $DFT_LWR_MODEL = shared || \
19740 test $DFT_LWR_MODEL = libtool ; then
19742 # remove dl library from $LIBS
19743 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
19747 ### Set up low-level terminfo dependencies for makefiles.
19749 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
19750 # do not need libdl
19752 if test "$with_dlsym" = yes ; then
19754 # remove dl library from $SHLIB_LIST
19755 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
19759 if test "$with_ticlib" != no ; then
19761 if test "$with_ticlib" != yes ; then
19762 TICS_NAME=$with_ticlib
19763 TICS_ARG_SUFFIX="${with_ticlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
19764 TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
19765 TICS_LIB_SUFFIX="${with_ticlib}"
19767 TICS_ARG_SUFFIX="${TICS_NAME}${DFT_ARG_SUFFIX}"
19768 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
19769 TICS_LIB_SUFFIX="${TICS_NAME}${LIB_SUFFIX}"
19771 TICS_LDFLAGS="-L${LIB_DIR}"
19772 TICS_LIBS="-l${TICS_LIB_SUFFIX}"
19774 TICS_LDFLAGS="-L${LIB_DIR}"
19775 TICS_LIBS="-l${LIB_NAME}${DFT_ARG_SUFFIX}"
19778 if test "$with_termlib" != no ; then
19780 if test "$with_termlib" != yes ; then
19781 TINFO_NAME=$with_termlib
19782 TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
19783 TINFO_ARG_SUFFIX="${with_termlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
19784 TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
19785 TINFO_LIB_SUFFIX="${with_termlib}"
19787 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
19788 TINFO_ARG_SUFFIX="${TINFO_NAME}${DFT_ARG_SUFFIX}"
19789 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
19790 TINFO_LIB_SUFFIX="${TINFO_NAME}${LIB_SUFFIX}"
19793 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
19794 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
19795 if test "$DFT_LWR_MODEL" = "libtool"; then
19796 TEST_ARGS="${TEST_DEPS}"
19797 TEST_ARG2="${TEST_DEP2}"
19798 TINFO_LDFLAGS="-L${LIB_DIR}"
19799 TINFO_LIBS="$TEST_ARGS"
19800 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
19801 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
19803 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
19804 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
19805 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
19806 TINFO_LDFLAGS="-L${LIB_DIR}"
19807 TINFO_LIBS="$TEST_ARGS"
19808 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
19811 # the next lines are needed for linking libtic over libncurses
19812 TINFO_NAME=${LIB_NAME}
19813 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
19814 TINFO_ARG_SUFFIX=${LIB_NAME}${DFT_ARG_SUFFIX}
19815 if test "$with_tic_depends" = yes ; then
19816 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${DFT_ARG_SUFFIX}"
19818 TICS_LIST="$SHLIB_LIST"
19821 TINFO_LDFLAGS="-L${LIB_DIR}"
19822 TINFO_LIBS="-l${LIB_NAME}${DFT_ARG_SUFFIX}"
19825 if test "$DFT_LWR_MODEL" = shared ; then
19826 case $cf_cv_system_name in #(vi
19828 # "lib" files have ".dll.a" suffix, "cyg" files have ".dll"
19834 if test "$with_dlsym" = yes ; then
19836 # remove dl library from $TICS_LIST
19837 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
19841 if test "$DFT_LWR_MODEL" = "libtool"; then
19846 TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'`
19848 case $DFT_LWR_MODEL in
19849 normal|debug|profile)
19851 if test "$GCC" = yes ; then
19852 case $cf_cv_system_name in #(
19853 OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*) #( vi
19857 *) #( normally, except when broken
19858 LDFLAGS_STATIC=-static
19859 LDFLAGS_SHARED=-dynamic
19863 case $cf_cv_system_name in #(
19864 aix[4-7]*) #( from ld manpage
19865 LDFLAGS_STATIC=-bstatic
19866 LDFLAGS_SHARED=-bdynamic
19868 hpux*) #( from ld manpage for hpux10.20, hpux11.11
19869 # We could also use just "archive" and "shared".
19870 LDFLAGS_STATIC=-Wl,-a,archive_shared
19871 LDFLAGS_SHARED=-Wl,-a,shared_archive
19873 irix*) #( from ld manpage IRIX64
19874 LDFLAGS_STATIC=-Bstatic
19875 LDFLAGS_SHARED=-Bdynamic
19877 osf[45]*) #( from ld manpage osf4.0d, osf5.1
19878 # alternative "-oldstyle_liblookup" (not in cc manpage)
19879 LDFLAGS_STATIC=-noso
19880 LDFLAGS_SHARED=-so_archive
19883 LDFLAGS_STATIC=-Bstatic
19884 LDFLAGS_SHARED=-Bdynamic
19889 if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED"
19891 echo "$as_me:19891: checking if linker supports switching between static/dynamic" >&5
19892 echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6
19894 rm -f libconftest.a
19895 cat >conftest.$ac_ext <<EOF
19896 #line 19896 "configure"
19898 int cf_ldflags_static(FILE *fp) { return fflush(fp); }
19900 if { (eval echo "$as_me:19900: \"$ac_compile\"") >&5
19901 (eval $ac_compile) 2>&5
19903 echo "$as_me:19903: \$? = $ac_status" >&5
19904 (exit $ac_status); } ; then
19905 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null
19906 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null
19910 cf_save_LIBS="$LIBS"
19912 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS"
19913 cat >conftest.$ac_ext <<_ACEOF
19914 #line 19914 "configure"
19915 #include "confdefs.h"
19917 #line 19917 "configure"
19919 int cf_ldflags_static(FILE *fp);
19925 return cf_ldflags_static(stdin);
19931 rm -f conftest.$ac_objext conftest$ac_exeext
19932 if { (eval echo "$as_me:19932: \"$ac_link\"") >&5
19933 (eval $ac_link) 2>&5
19935 echo "$as_me:19935: \$? = $ac_status" >&5
19936 (exit $ac_status); } &&
19937 { ac_try='test -s conftest$ac_exeext'
19938 { (eval echo "$as_me:19938: \"$ac_try\"") >&5
19939 (eval $ac_try) 2>&5
19941 echo "$as_me:19941: \$? = $ac_status" >&5
19942 (exit $ac_status); }; }; then
19944 # some linkers simply ignore the -dynamic
19945 case x`file conftest$ac_exeext 2>/dev/null` in #(vi
19947 cf_ldflags_static=no
19950 cf_ldflags_static=yes
19955 echo "$as_me: failed program was:" >&5
19956 cat conftest.$ac_ext >&5
19957 cf_ldflags_static=no
19959 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19961 rm -f libconftest.*
19962 LIBS="$cf_save_LIBS"
19964 echo "$as_me:19964: result: $cf_ldflags_static" >&5
19965 echo "${ECHO_T}$cf_ldflags_static" >&6
19967 if test $cf_ldflags_static != yes
19980 echo "$as_me:19980: checking where we will install curses.h" >&5
19981 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
19982 test "$with_overwrite" = no && \
19983 test "x$includedir" = 'x${prefix}/include' && \
19984 includedir='${prefix}/include/ncurses'${LIB_SUFFIX}
19985 echo "$as_me:19985: result: $includedir" >&5
19986 echo "${ECHO_T}$includedir" >&6
19988 ### Resolve a conflict between normal and wide-curses by forcing applications
19989 ### that will need libutf8 to add it to their configure script.
19990 if test "$with_overwrite" != no ; then
19991 if test "$NCURSES_LIBUTF8" = 1 ; then
19992 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
19993 { echo "$as_me:19993: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
19994 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
19997 WITH_OVERWRITE=$with_overwrite
19999 # used to separate tack out of the tree
20002 ### predefined stuff for the test programs
20003 cat >>confdefs.h <<\EOF
20004 #define HAVE_SLK_COLOR 1
20007 ### Construct the list of subdirectories for which we'll customize makefiles
20008 ### with the appropriate compile-rules.
20010 echo "$as_me:20010: checking for src modules" >&5
20011 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
20013 # dependencies and linker-arguments for test-programs
20014 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
20015 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
20016 if test "$DFT_LWR_MODEL" = "libtool"; then
20017 TEST_ARGS="${TEST_DEPS}"
20018 TEST_ARG2="${TEST_DEP2}"
20020 TEST_ARGS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS"
20021 TEST_ARG2="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARG2"
20024 PC_MODULES_TO_MAKE="ncurses"
20026 for cf_dir in $modules_to_build
20028 if test -f $srcdir/$cf_dir/modules; then
20030 # We may/may not have tack in the distribution, though the
20032 if test $cf_dir = tack ; then
20033 if test ! -f $srcdir/${cf_dir}/${cf_dir}.h; then
20038 if test -z "$cf_cv_src_modules"; then
20039 cf_cv_src_modules=$cf_dir
20041 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
20044 # Make the ncurses_cfg.h file record the library interface files as
20045 # well. These are header files that are the same name as their
20046 # directory. Ncurses is the only library that does not follow
20048 if test $cf_dir = tack ; then
20050 elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
20052 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20054 cat >>confdefs.h <<EOF
20055 #define HAVE_${cf_have_include}_H 1
20058 cat >>confdefs.h <<EOF
20059 #define HAVE_LIB${cf_have_include} 1
20062 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
20063 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEP2"
20064 if test "$DFT_LWR_MODEL" = "libtool"; then
20065 TEST_ARGS="${TEST_DEPS}"
20066 TEST_ARG2="${TEST_DEP2}"
20068 TEST_ARGS="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARGS"
20069 TEST_ARG2="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARG2"
20071 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ${cf_dir}"
20075 echo "$as_me:20075: result: $cf_cv_src_modules" >&5
20076 echo "${ECHO_T}$cf_cv_src_modules" >&6
20078 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
20079 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
20082 if test "x$cf_with_manpages" != xno ; then
20083 SRC_SUBDIRS="$SRC_SUBDIRS man"
20085 SRC_SUBDIRS="$SRC_SUBDIRS include"
20086 for cf_dir in $cf_cv_src_modules
20088 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
20090 if test "x$cf_with_tests" != "xno" ; then
20091 SRC_SUBDIRS="$SRC_SUBDIRS test"
20093 test -z "$MAKE_TERMINFO" && SRC_SUBDIRS="$SRC_SUBDIRS misc"
20094 if test "$cf_with_cxx_binding" != no; then
20095 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ncurses++"
20096 SRC_SUBDIRS="$SRC_SUBDIRS c++"
20100 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = xyes && test -f $srcdir/Ada95/Makefile.in; then
20101 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
20102 ADA_SUBDIRS="gen src"
20103 if test "x$cf_with_tests" != "xno" ; then
20104 ADA_SUBDIRS="$ADA_SUBDIRS samples"
20109 for cf_dir in $SRC_SUBDIRS
20111 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
20114 if test -n "$ADA_SUBDIRS"; then
20115 for cf_dir in $ADA_SUBDIRS
20117 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
20122 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
20123 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${DFT_ARG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
20124 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${DFT_ARG_SUFFIX}-config.1:man/MKada_config.in"
20128 for cf_item in $cf_list_models
20132 libtool) cf_subdir='obj_lo' ;;
20133 normal) cf_subdir='objects' ;;
20134 debug) cf_subdir='obj_g' ;;
20135 profile) cf_subdir='obj_p' ;;
20137 case $cf_cv_system_name in #(vi
20139 cf_subdir='objects' ;;
20141 cf_subdir='obj_s' ;;
20145 for cf_item2 in $DIRS_TO_MAKE
20147 test $cf_item2 = $cf_subdir && break
20149 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
20151 for cf_dir in $DIRS_TO_MAKE
20153 test ! -d $cf_dir && mkdir $cf_dir
20156 # symbols that differ when compiling Ada95 by itself.
20157 NCURSES_SHLIB2='sh $(top_srcdir)/misc/shlib'
20159 # values to use as strings
20160 cat >>confdefs.h <<EOF
20161 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
20164 cat >>confdefs.h <<EOF
20165 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
20168 ### Now that we're done running tests, add the compiler-warnings, if any
20173 cf_new_extra_cppflags=
20175 for cf_add_cflags in $EXTRA_CFLAGS
20177 case $cf_fix_cppflags in
20179 case $cf_add_cflags in #(vi
20180 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
20181 case $cf_add_cflags in
20183 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
20185 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
20186 && test -z "${cf_tst_cflags}" \
20187 && cf_fix_cppflags=yes
20189 if test $cf_fix_cppflags = yes ; then
20190 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
20192 elif test "${cf_tst_cflags}" = "\"'" ; then
20193 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
20198 case "$CPPFLAGS" in
20199 *$cf_add_cflags) #(vi
20202 case $cf_add_cflags in #(vi
20204 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
20206 CPPFLAGS=`echo "$CPPFLAGS" | \
20207 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
20208 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
20212 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
20217 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
20222 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
20224 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
20226 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
20227 && test -z "${cf_tst_cflags}" \
20228 && cf_fix_cppflags=no
20233 if test -n "$cf_new_cflags" ; then
20235 CFLAGS="$CFLAGS $cf_new_cflags"
20238 if test -n "$cf_new_cppflags" ; then
20240 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
20243 if test -n "$cf_new_extra_cppflags" ; then
20245 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
20248 ### Define substitutions for header files to avoid name-pollution
20250 if test "$cf_cv_have_tcgetattr" = yes ; then
20256 if test "$ac_cv_header_termio_h" = yes ; then
20262 if test "$ac_cv_header_termios_h" = yes ; then
20268 ################################################################################
20269 test "$use_database" = yes && \
20270 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
20272 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
20273 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${DFT_ARG_SUFFIX}${cf_cv_abi_version}-config.1:man/MKncu_config.in"
20275 if test x"$enable_pc_files" = xyes ; then \
20276 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
20282 # Extract the first word of "tic", so it can be a program name with args.
20283 set dummy tic; ac_word=$2
20284 echo "$as_me:20284: checking for $ac_word" >&5
20285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20286 if test "${ac_cv_path_TIC_PATH+set}" = set; then
20287 echo $ECHO_N "(cached) $ECHO_C" >&6
20291 ac_cv_path_TIC_PATH="$TIC_PATH" # Let the user override the test with a path.
20294 ac_save_IFS=$IFS; IFS=$ac_path_separator
20295 ac_dummy="$PATH:/usr/local/ncurses/bin"
20296 for ac_dir in $ac_dummy; do
20298 test -z "$ac_dir" && ac_dir=.
20299 if $as_executable_p "$ac_dir/$ac_word"; then
20300 ac_cv_path_TIC_PATH="$ac_dir/$ac_word"
20301 echo "$as_me:20301: found $ac_dir/$ac_word" >&5
20306 test -z "$ac_cv_path_TIC_PATH" && ac_cv_path_TIC_PATH="unknown"
20310 TIC_PATH=$ac_cv_path_TIC_PATH
20312 if test -n "$TIC_PATH"; then
20313 echo "$as_me:20313: result: $TIC_PATH" >&5
20314 echo "${ECHO_T}$TIC_PATH" >&6
20316 echo "$as_me:20316: result: no" >&5
20317 echo "${ECHO_T}no" >&6
20320 if test -n "$FALLBACK_LIST"
20322 if test "$TIC_PATH" = unknown
20324 { echo "$as_me:20324: WARNING: no tic program found for fallbacks" >&5
20325 echo "$as_me: WARNING: no tic program found for fallbacks" >&2;}
20329 if test "x$cf_with_tests" != xno ; then
20335 ADAHTML_DIR=../../doc/html/ada
20338 case $cf_cv_system_name in #(vi
20340 SUB_SCRIPTS="mk-dlls.sh"
20344 ac_config_files="$ac_config_files include/MKterm.h.awk include/curses.head:include/curses.h.in include/ncurses_dll.h include/termcap.h include/unctrl.h $SUB_SCRIPTS $SUB_MAKEFILES Makefile"
20345 ac_config_commands="$ac_config_commands default"
20346 cat >confcache <<\_ACEOF
20347 # This file is a shell script that caches the results of configure
20348 # tests run on this system so they can be shared between configure
20349 # scripts and configure runs, see configure's option --config-cache.
20350 # It is not useful on other systems. If it contains results you don't
20351 # want to keep, you may remove or edit it.
20353 # config.status only pays attention to the cache file if you give it
20354 # the --recheck option to rerun configure.
20356 # `ac_cv_env_foo' variables (set or unset) will be overriden when
20357 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20358 # following values.
20362 # The following way of writing the cache mishandles newlines in values,
20363 # but we know of no workaround that is simple, portable, and efficient.
20364 # So, don't put newlines in cache variables' values.
20365 # Ultrix sh set writes to stderr and can't be redirected directly,
20366 # and sets the high bit in the cache file unless we assign to the vars.
20369 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20371 # `set' does not quote correctly, so add quotes (double-quote
20372 # substitution turns \\\\ into \\, and sed turns \\ into \).
20375 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20378 # `set' quotes correctly as required by POSIX, so do not add quotes.
20380 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20387 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20389 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20391 if cmp -s $cache_file confcache; then :; else
20392 if test -w $cache_file; then
20393 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20394 cat confcache >$cache_file
20396 echo "not updating unwritable cache $cache_file"
20401 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20402 # Let make expand exec_prefix.
20403 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20405 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20406 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20407 # trailing colons and then remove the whole line if VPATH becomes empty
20408 # (actually we leave an empty line to preserve line numbers).
20409 if test "x$srcdir" = x.; then
20410 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20411 s/:*\$(srcdir):*/:/;
20412 s/:*\${srcdir}:*/:/;
20414 s/^\([^=]*=[ ]*\):*/\1/;
20420 DEFS=-DHAVE_CONFIG_H
20422 : ${CONFIG_STATUS=./config.status}
20423 ac_clean_files_save=$ac_clean_files
20424 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20425 { echo "$as_me:20425: creating $CONFIG_STATUS" >&5
20426 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20427 cat >$CONFIG_STATUS <<_ACEOF
20429 # Generated automatically by configure.
20430 # Run this file to recreate the current configuration.
20431 # Compiler output produced by configure, useful for debugging
20432 # configure, is in config.log if it exists.
20435 SHELL=\${CONFIG_SHELL-$SHELL}
20436 ac_cs_invocation="\$0 \$@"
20440 cat >>$CONFIG_STATUS <<\_ACEOF
20441 # Be Bourne compatible
20442 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20445 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20449 # Name of the executable.
20450 as_me=`echo "$0" |sed 's,.*[\\/],,'`
20452 if expr a : '\(a\)' >/dev/null 2>&1; then
20458 rm -f conf$$ conf$$.exe conf$$.file
20460 if ln -s conf$$.file conf$$ 2>/dev/null; then
20461 # We could just check for DJGPP; but this test a) works b) is more generic
20462 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20463 if test -f conf$$.exe; then
20464 # Don't use ln at all; we don't have any links
20469 elif ln conf$$.file conf$$ 2>/dev/null; then
20474 rm -f conf$$ conf$$.exe conf$$.file
20476 as_executable_p="test -f"
20478 # Support unset when possible.
20479 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
20486 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
20487 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
20488 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
20489 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
20490 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
20491 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
20492 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
20493 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
20496 # We need space, tab and new line, in precisely that order.
20502 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
20508 # Files that config.status was made for.
20509 if test -n "$ac_config_files"; then
20510 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20513 if test -n "$ac_config_headers"; then
20514 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20517 if test -n "$ac_config_links"; then
20518 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20521 if test -n "$ac_config_commands"; then
20522 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20525 cat >>$CONFIG_STATUS <<\EOF
20528 \`$as_me' instantiates files from templates according to the
20529 current configuration.
20531 Usage: $0 [OPTIONS] [FILE]...
20533 -h, --help print this help, then exit
20534 -V, --version print version number, then exit
20535 -d, --debug don't remove temporary files
20536 --recheck update $as_me by reconfiguring in the same conditions
20537 --file=FILE[:TEMPLATE]
20538 instantiate the configuration file FILE
20539 --header=FILE[:TEMPLATE]
20540 instantiate the configuration header FILE
20542 Configuration files:
20545 Configuration headers:
20548 Configuration commands:
20551 Report bugs to <dickey@invisible-island.net>."
20554 cat >>$CONFIG_STATUS <<EOF
20557 configured by $0, generated by GNU Autoconf 2.52.20101002,
20558 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20560 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
20561 Free Software Foundation, Inc.
20562 This config.status script is free software; the Free Software Foundation
20563 gives unlimited permission to copy, distribute and modify it."
20568 cat >>$CONFIG_STATUS <<\EOF
20569 # If no file are specified by the user, then we need to provide default
20570 # value. By we need to know if files were specified by the user.
20576 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20577 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20579 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
20583 *) # This is not an option, so the user has probably given explicit
20585 ac_need_defaults=false;;
20589 # Handling of the options.
20591 cat >>$CONFIG_STATUS <<EOF
20592 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20593 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
20594 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
20596 cat >>$CONFIG_STATUS <<\EOF
20597 --version | --vers* | -V )
20598 echo "$ac_cs_version"; exit 0 ;;
20600 # Conflict between --help and --header
20601 { { echo "$as_me:20601: error: ambiguous option: $1
20602 Try \`$0 --help' for more information." >&5
20603 echo "$as_me: error: ambiguous option: $1
20604 Try \`$0 --help' for more information." >&2;}
20605 { (exit 1); exit 1; }; };;
20606 --help | --hel | -h )
20607 echo "$ac_cs_usage"; exit 0 ;;
20608 --debug | --d* | -d )
20610 --file | --fil | --fi | --f )
20612 CONFIG_FILES="$CONFIG_FILES $1"
20613 ac_need_defaults=false;;
20614 --header | --heade | --head | --hea )
20616 CONFIG_HEADERS="$CONFIG_HEADERS $1"
20617 ac_need_defaults=false;;
20619 # This is an error.
20620 -*) { { echo "$as_me:20620: error: unrecognized option: $1
20621 Try \`$0 --help' for more information." >&5
20622 echo "$as_me: error: unrecognized option: $1
20623 Try \`$0 --help' for more information." >&2;}
20624 { (exit 1); exit 1; }; } ;;
20626 *) ac_config_targets="$ac_config_targets $1" ;;
20635 ## ----------------------- ##
20636 ## Running config.status. ##
20637 ## ----------------------- ##
20639 This file was extended by $as_me 2.52.20101002, executed with
20640 CONFIG_FILES = $CONFIG_FILES
20641 CONFIG_HEADERS = $CONFIG_HEADERS
20642 CONFIG_LINKS = $CONFIG_LINKS
20643 CONFIG_COMMANDS = $CONFIG_COMMANDS
20644 > $ac_cs_invocation
20645 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20650 cat >>$CONFIG_STATUS <<EOF
20652 # INIT-COMMANDS section.
20655 ### Special initialization commands, used to pass information from the
20656 ### configuration-run into config.status
20659 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
20660 DFT_LWR_MODEL="$DFT_LWR_MODEL"
20661 ECHO_LINK="$ECHO_LINK"
20662 LDCONFIG="$LDCONFIG"
20663 LIBTOOL_VERSION="$LIBTOOL_VERSION"
20664 LIB_NAME="$LIB_NAME"
20665 LIB_SUBSETS="$LIB_SUBSETS"
20666 LIB_SUFFIX="$LIB_SUFFIX"
20667 LIB_TRACING="$LIB_TRACING"
20669 MAKE_TERMINFO="$MAKE_TERMINFO"
20670 NCURSES_MAJOR="$NCURSES_MAJOR"
20671 NCURSES_MINOR="$NCURSES_MINOR"
20672 NCURSES_OSPEED="$NCURSES_OSPEED"
20673 NCURSES_PATCH="$NCURSES_PATCH"
20674 SRC_SUBDIRS="$SRC_SUBDIRS"
20675 TERMINFO="$TERMINFO"
20676 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
20677 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
20678 TICS_NAME="$TICS_NAME"
20679 TIC_PATH="$TIC_PATH"
20680 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
20681 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
20682 TINFO_NAME="$TINFO_NAME"
20683 TINFO_SUFFIX="$TINFO_SUFFIX"
20684 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
20685 WITH_CURSES_H="$with_curses_h"
20686 WITH_ECHO="$with_echo"
20687 WITH_OVERWRITE="$with_overwrite"
20688 cf_LIST_MODELS="$cf_list_models"
20689 cf_cv_abi_version="$cf_cv_abi_version"
20690 cf_cv_do_relink="$cf_cv_do_relink"
20691 cf_cv_do_symlinks="$cf_cv_do_symlinks"
20692 cf_cv_enable_lp64="$cf_cv_enable_lp64"
20693 cf_cv_enable_opaque="$cf_cv_enable_opaque"
20694 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
20695 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
20696 cf_cv_prog_gnat_correct=$cf_cv_prog_gnat_correct
20697 cf_cv_rel_version="$cf_cv_rel_version"
20698 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
20699 cf_cv_shared_soname='$cf_cv_shared_soname'
20700 cf_cv_shlib_version="$cf_cv_shlib_version"
20701 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
20702 cf_cv_system_name="$cf_cv_system_name"
20703 cf_with_ada="$cf_with_ada"
20704 cf_with_cxx_binding="$cf_with_cxx_binding"
20705 cf_with_manpages="$cf_with_manpages"
20706 cf_with_tests="$cf_with_tests"
20712 cat >>$CONFIG_STATUS <<\EOF
20713 for ac_config_target in $ac_config_targets
20715 case "$ac_config_target" in
20716 # Handling of arguments.
20717 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
20718 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
20719 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
20720 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
20721 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
20722 "$SUB_SCRIPTS" ) CONFIG_FILES="$CONFIG_FILES $SUB_SCRIPTS" ;;
20723 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
20724 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20725 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
20726 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
20727 *) { { echo "$as_me:20727: error: invalid argument: $ac_config_target" >&5
20728 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20729 { (exit 1); exit 1; }; };;
20733 # If the user did not use the arguments to specify the items to instantiate,
20734 # then the envvar interface is used. Set only those that are not.
20735 # We use the long form for the default assignment because of an extremely
20736 # bizarre bug on SunOS 4.1.3.
20737 if $ac_need_defaults; then
20738 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20739 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20740 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20743 # Create a temporary directory, and hook for its removal unless debugging.
20746 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20747 trap '{ (exit 1); exit 1; }' 1 2 13 15
20750 # Create a (secure) tmp directory for tmp files.
20753 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
20754 test -n "$tmp" && test -d "$tmp"
20757 tmp=$TMPDIR/cs$$-$RANDOM
20758 (umask 077 && mkdir $tmp)
20761 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
20762 { (exit 1); exit 1; }
20767 cat >>$CONFIG_STATUS <<EOF
20770 # CONFIG_FILES section.
20773 # No need to generate the scripts if there are no CONFIG_FILES.
20774 # This happens for instance when ./config.status config.h
20775 if test -n "\$CONFIG_FILES"; then
20776 # Protect against being on the right side of a sed subst in config.status.
20777 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20778 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20779 s,@SHELL@,$SHELL,;t t
20780 s,@exec_prefix@,$exec_prefix,;t t
20781 s,@prefix@,$prefix,;t t
20782 s,@program_transform_name@,$program_transform_name,;t t
20783 s,@bindir@,$bindir,;t t
20784 s,@sbindir@,$sbindir,;t t
20785 s,@libexecdir@,$libexecdir,;t t
20786 s,@datadir@,$datadir,;t t
20787 s,@sysconfdir@,$sysconfdir,;t t
20788 s,@sharedstatedir@,$sharedstatedir,;t t
20789 s,@localstatedir@,$localstatedir,;t t
20790 s,@libdir@,$libdir,;t t
20791 s,@includedir@,$includedir,;t t
20792 s,@oldincludedir@,$oldincludedir,;t t
20793 s,@infodir@,$infodir,;t t
20794 s,@mandir@,$mandir,;t t
20795 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20796 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20797 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20798 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20799 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20800 s,@build_alias@,$build_alias,;t t
20801 s,@host_alias@,$host_alias,;t t
20802 s,@target_alias@,$target_alias,;t t
20803 s,@ECHO_C@,$ECHO_C,;t t
20804 s,@ECHO_N@,$ECHO_N,;t t
20805 s,@ECHO_T@,$ECHO_T,;t t
20806 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20807 s,@DEFS@,$DEFS,;t t
20808 s,@LIBS@,$LIBS,;t t
20809 s,@top_builddir@,$top_builddir,;t t
20810 s,@EGREP@,$EGREP,;t t
20811 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
20812 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
20813 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
20814 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
20815 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
20816 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
20817 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
20818 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
20819 s,@build@,$build,;t t
20820 s,@build_cpu@,$build_cpu,;t t
20821 s,@build_vendor@,$build_vendor,;t t
20822 s,@build_os@,$build_os,;t t
20823 s,@host@,$host,;t t
20824 s,@host_cpu@,$host_cpu,;t t
20825 s,@host_vendor@,$host_vendor,;t t
20826 s,@host_os@,$host_os,;t t
20827 s,@target@,$target,;t t
20828 s,@target_cpu@,$target_cpu,;t t
20829 s,@target_vendor@,$target_vendor,;t t
20830 s,@target_os@,$target_os,;t t
20832 s,@CFLAGS@,$CFLAGS,;t t
20833 s,@LDFLAGS@,$LDFLAGS,;t t
20834 s,@CPPFLAGS@,$CPPFLAGS,;t t
20835 s,@ac_ct_CC@,$ac_ct_CC,;t t
20836 s,@EXEEXT@,$EXEEXT,;t t
20837 s,@OBJEXT@,$OBJEXT,;t t
20839 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
20840 s,@PROG_EXT@,$PROG_EXT,;t t
20841 s,@LDCONFIG@,$LDCONFIG,;t t
20843 s,@CXXFLAGS@,$CXXFLAGS,;t t
20844 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20846 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20847 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20848 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20849 s,@LINT@,$LINT,;t t
20850 s,@LINT_OPTS@,$LINT_OPTS,;t t
20851 s,@LN_S@,$LN_S,;t t
20852 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20853 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
20854 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
20855 s,@SET_MAKE@,$SET_MAKE,;t t
20856 s,@CTAGS@,$CTAGS,;t t
20857 s,@ETAGS@,$ETAGS,;t t
20858 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
20859 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
20860 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
20861 s,@RANLIB@,$RANLIB,;t t
20862 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20864 s,@ac_ct_LD@,$ac_ct_LD,;t t
20866 s,@ac_ct_AR@,$ac_ct_AR,;t t
20867 s,@ARFLAGS@,$ARFLAGS,;t t
20868 s,@DESTDIR@,$DESTDIR,;t t
20869 s,@BUILD_CC@,$BUILD_CC,;t t
20870 s,@BUILD_CPP@,$BUILD_CPP,;t t
20871 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
20872 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
20873 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
20874 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
20875 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
20876 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
20877 s,@cf_list_models@,$cf_list_models,;t t
20878 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
20879 s,@LIBTOOL@,$LIBTOOL,;t t
20880 s,@LT_UNDEF@,$LT_UNDEF,;t t
20881 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
20882 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
20883 s,@LIB_CREATE@,$LIB_CREATE,;t t
20884 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
20885 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
20886 s,@LIB_PREP@,$LIB_PREP,;t t
20887 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
20888 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
20889 s,@LIB_LINK@,$LIB_LINK,;t t
20890 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
20891 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
20892 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
20893 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
20894 s,@TICS_NAME@,$TICS_NAME,;t t
20895 s,@TINFO_NAME@,$TINFO_NAME,;t t
20896 s,@LIB_NAME@,$LIB_NAME,;t t
20897 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
20898 s,@CC_G_OPT@,$CC_G_OPT,;t t
20899 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
20900 s,@LD_MODEL@,$LD_MODEL,;t t
20901 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
20902 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
20903 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
20904 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
20905 s,@LINK_PROGS@,$LINK_PROGS,;t t
20906 s,@LINK_TESTS@,$LINK_TESTS,;t t
20907 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
20908 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
20909 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
20910 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
20911 s,@RPATH_LIST@,$RPATH_LIST,;t t
20912 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
20913 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
20914 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
20915 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
20916 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
20917 s,@TERMINFO@,$TERMINFO,;t t
20918 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
20919 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
20920 s,@TERMPATH@,$TERMPATH,;t t
20921 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
20922 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
20923 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
20924 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
20925 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
20926 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
20927 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
20928 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
20929 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
20930 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
20931 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
20932 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
20933 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
20934 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
20935 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
20936 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
20937 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
20938 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
20939 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
20940 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
20941 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
20942 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
20943 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
20944 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
20945 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
20946 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
20947 s,@PTHREAD@,$PTHREAD,;t t
20948 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
20949 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
20950 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
20951 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
20952 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
20953 s,@ECHO_LINK@,$ECHO_LINK,;t t
20954 s,@ADAFLAGS@,$ADAFLAGS,;t t
20955 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
20956 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
20957 s,@ADA_TRACE@,$ADA_TRACE,;t t
20958 s,@MATH_LIB@,$MATH_LIB,;t t
20959 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
20960 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
20961 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
20962 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
20963 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
20964 s,@TEST_LIBS@,$TEST_LIBS,;t t
20965 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
20966 s,@CXXCPP@,$CXXCPP,;t t
20967 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
20968 s,@CXX_AR@,$CXX_AR,;t t
20969 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
20970 s,@CXXLIBS@,$CXXLIBS,;t t
20971 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
20972 s,@gnat_exists@,$gnat_exists,;t t
20973 s,@M4_exists@,$M4_exists,;t t
20974 s,@cf_ada_make@,$cf_ada_make,;t t
20975 s,@cf_compile_generics@,$cf_compile_generics,;t t
20976 s,@cf_generic_objects@,$cf_generic_objects,;t t
20977 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
20978 s,@PRAGMA_UNREF@,$PRAGMA_UNREF,;t t
20979 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
20980 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
20981 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
20982 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
20983 s,@cf_ada_package@,$cf_ada_package,;t t
20984 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
20985 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
20986 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
20987 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
20988 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
20989 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
20990 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
20991 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
20992 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
20993 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
20994 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
20995 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
20996 s,@TICS_LDFLAGS@,$TICS_LDFLAGS,;t t
20997 s,@TICS_LIBS@,$TICS_LIBS,;t t
20998 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
20999 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
21000 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
21001 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
21002 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
21003 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
21004 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
21005 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
21006 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
21007 s,@TICS_LIST@,$TICS_LIST,;t t
21008 s,@TINFO_LIST@,$TINFO_LIST,;t t
21009 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
21010 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
21011 s,@TEST_ARGS@,$TEST_ARGS,;t t
21012 s,@TEST_DEPS@,$TEST_DEPS,;t t
21013 s,@TEST_ARG2@,$TEST_ARG2,;t t
21014 s,@TEST_DEP2@,$TEST_DEP2,;t t
21015 s,@PC_MODULES_TO_MAKE@,$PC_MODULES_TO_MAKE,;t t
21016 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
21017 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
21018 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
21019 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
21020 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
21021 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
21022 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
21023 s,@cross_compiling@,$cross_compiling,;t t
21024 s,@TIC_PATH@,$TIC_PATH,;t t
21025 s,@MAKE_TESTS@,$MAKE_TESTS,;t t
21026 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
21031 cat >>$CONFIG_STATUS <<\EOF
21032 # Split the substitutions into bite-sized pieces for seds with
21033 # small command number limits, like on Digital OSF/1 and HP-UX.
21034 ac_max_sed_lines=48
21035 ac_sed_frag=1 # Number of current file.
21036 ac_beg=1 # First line for current file.
21037 ac_end=$ac_max_sed_lines # Line after last line for current file.
21040 while $ac_more_lines; do
21041 if test $ac_beg -gt 1; then
21042 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21044 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21046 if test ! -s $tmp/subs.frag; then
21047 ac_more_lines=false
21049 # The purpose of the label and of the branching condition is to
21050 # speed up the sed processing (if there are no `@' at all, there
21051 # is no need to browse any of the substitutions).
21052 # These are the two extra sed commands mentioned above.
21054 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21055 if test -z "$ac_sed_cmds"; then
21056 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21058 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21060 ac_sed_frag=`expr $ac_sed_frag + 1`
21062 ac_end=`expr $ac_end + $ac_max_sed_lines`
21065 if test -z "$ac_sed_cmds"; then
21068 fi # test -n "$CONFIG_FILES"
21071 cat >>$CONFIG_STATUS <<\EOF
21072 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21073 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21075 - | *:- | *:-:* ) # input from stdin
21077 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21078 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21079 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21080 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21081 * ) ac_file_in=$ac_file.in ;;
21084 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21085 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21086 X"$ac_file" : 'X\(//\)[^/]' \| \
21087 X"$ac_file" : 'X\(//\)$' \| \
21088 X"$ac_file" : 'X\(/\)' \| \
21089 . : '\(.\)' 2>/dev/null ||
21091 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21092 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21093 /^X\(\/\/\)$/{ s//\1/; q; }
21094 /^X\(\/\).*/{ s//\1/; q; }
21096 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21097 { case "$ac_dir" in
21098 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
21102 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
21103 case $as_mkdir_dir in
21104 # Skip DOS drivespec
21105 ?:) as_incr_dir=$as_mkdir_dir ;;
21107 as_incr_dir=$as_incr_dir/$as_mkdir_dir
21108 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
21113 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
21114 # A "../" for each directory in $ac_dir_suffix.
21115 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
21117 ac_dir_suffix= ac_dots=
21122 if test -z "$ac_dots"; then
21125 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
21127 [\\/]* | ?:[\\/]* )
21128 ac_srcdir=$srcdir$ac_dir_suffix;
21129 ac_top_srcdir=$srcdir ;;
21130 *) # Relative path.
21131 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
21132 ac_top_srcdir=$ac_dots$srcdir ;;
21136 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21137 *) ac_INSTALL=$ac_dots$INSTALL ;;
21140 if test x"$ac_file" != x-; then
21141 { echo "$as_me:21141: creating $ac_file" >&5
21142 echo "$as_me: creating $ac_file" >&6;}
21145 # Let's still pretend it is `configure' which instantiates (i.e., don't
21146 # use $as_me), people would be surprised to read:
21147 # /* config.h. Generated automatically by config.status. */
21148 configure_input="Generated automatically from `echo $ac_file_in |
21149 sed 's,.*/,,'` by configure."
21151 # First look for the input files in the build tree, otherwise in the
21153 ac_file_inputs=`IFS=:
21154 for f in $ac_file_in; do
21156 -) echo $tmp/stdin ;;
21158 # Absolute (can't be DOS-style, as IFS=:)
21159 test -f "$f" || { { echo "$as_me:21159: error: cannot find input file: $f" >&5
21160 echo "$as_me: error: cannot find input file: $f" >&2;}
21161 { (exit 1); exit 1; }; }
21164 if test -f "$f"; then
21167 elif test -f "$srcdir/$f"; then
21172 { { echo "$as_me:21172: error: cannot find input file: $f" >&5
21173 echo "$as_me: error: cannot find input file: $f" >&2;}
21174 { (exit 1); exit 1; }; }
21177 done` || { (exit 1); exit 1; }
21179 cat >>$CONFIG_STATUS <<EOF
21183 cat >>$CONFIG_STATUS <<\EOF
21185 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21186 s,@configure_input@,$configure_input,;t t
21187 s,@srcdir@,$ac_srcdir,;t t
21188 s,@top_srcdir@,$ac_top_srcdir,;t t
21189 s,@INSTALL@,$ac_INSTALL,;t t
21190 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21192 if test x"$ac_file" != x-; then
21193 mv $tmp/out $ac_file
21201 cat >>$CONFIG_STATUS <<\EOF
21204 # CONFIG_HEADER section.
21207 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21208 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21210 # ac_d sets the value in "#define NAME VALUE" lines.
21211 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21212 ac_dB='[ ].*$,\1#\2'
21215 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
21216 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21217 ac_iB='\([ ]\),\1#\2define\3'
21220 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21221 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21222 ac_uB='$,\1#\2define\3'
21226 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21227 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21229 - | *:- | *:-:* ) # input from stdin
21231 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21232 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21233 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21234 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21235 * ) ac_file_in=$ac_file.in ;;
21238 test x"$ac_file" != x- && { echo "$as_me:21238: creating $ac_file" >&5
21239 echo "$as_me: creating $ac_file" >&6;}
21241 # First look for the input files in the build tree, otherwise in the
21243 ac_file_inputs=`IFS=:
21244 for f in $ac_file_in; do
21246 -) echo $tmp/stdin ;;
21248 # Absolute (can't be DOS-style, as IFS=:)
21249 test -f "$f" || { { echo "$as_me:21249: error: cannot find input file: $f" >&5
21250 echo "$as_me: error: cannot find input file: $f" >&2;}
21251 { (exit 1); exit 1; }; }
21254 if test -f "$f"; then
21257 elif test -f "$srcdir/$f"; then
21262 { { echo "$as_me:21262: error: cannot find input file: $f" >&5
21263 echo "$as_me: error: cannot find input file: $f" >&2;}
21264 { (exit 1); exit 1; }; }
21267 done` || { (exit 1); exit 1; }
21268 # Remove the trailing spaces.
21269 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21273 # Transform confdefs.h into a list of #define's. We won't use it as a sed
21274 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
21275 # be either 'cat' or 'sort'.
21276 cat confdefs.h | uniq >conftest.vals
21278 # Break up conftest.vals because some shells have a limit on
21279 # the size of here documents, and old seds have small limits too.
21281 rm -f conftest.tail
21282 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
21283 while grep . conftest.vals >/dev/null
21285 # Write chunks of a limited-size here document to conftest.frag.
21286 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
21287 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
21288 echo 'CEOF' >> $CONFIG_STATUS
21289 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
21290 rm -f conftest.vals
21291 mv conftest.tail conftest.vals
21293 rm -f conftest.vals
21295 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
21297 echo ' cat >> conftest.edit <<CEOF
21298 /@DEFS@/r conftest.frag
21301 sed -f conftest.edit $tmp/in > $tmp/out
21303 mv $tmp/out $tmp/in
21304 rm -f conftest.edit conftest.frag
21305 ' >> $CONFIG_STATUS
21307 cat >>$CONFIG_STATUS <<\EOF
21308 # Let's still pretend it is `configure' which instantiates (i.e., don't
21309 # use $as_me), people would be surprised to read:
21310 # /* config.h. Generated automatically by config.status. */
21311 if test x"$ac_file" = x-; then
21312 echo "/* Generated automatically by configure. */" >$tmp/config.h
21314 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
21316 cat $tmp/in >>$tmp/config.h
21318 if test x"$ac_file" != x-; then
21319 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
21320 { echo "$as_me:21320: $ac_file is unchanged" >&5
21321 echo "$as_me: $ac_file is unchanged" >&6;}
21323 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21324 X"$ac_file" : 'X\(//\)[^/]' \| \
21325 X"$ac_file" : 'X\(//\)$' \| \
21326 X"$ac_file" : 'X\(/\)' \| \
21327 . : '\(.\)' 2>/dev/null ||
21329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21330 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21331 /^X\(\/\/\)$/{ s//\1/; q; }
21332 /^X\(\/\).*/{ s//\1/; q; }
21334 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21335 { case "$ac_dir" in
21336 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
21340 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
21341 case $as_mkdir_dir in
21342 # Skip DOS drivespec
21343 ?:) as_incr_dir=$as_mkdir_dir ;;
21345 as_incr_dir=$as_incr_dir/$as_mkdir_dir
21346 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
21353 mv $tmp/config.h $ac_file
21357 rm -f $tmp/config.h
21361 cat >>$CONFIG_STATUS <<\EOF
21363 # CONFIG_COMMANDS section.
21365 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21366 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21367 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21371 if test "x$cf_with_tests" != xno ; then
21375 if test ! -d $srcdir/$cf_dir; then
21377 elif test -f $srcdir/$cf_dir/programs; then
21378 $AWK -f $srcdir/test/mk-test.awk INSTALL=no ECHO_LINK="$ECHO_LINK" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
21384 case $cf_cv_system_name in #(vi
21388 *) LIB_PREFIX='lib'
21391 cf_prefix=$LIB_PREFIX
21393 if test $cf_cv_shlib_version = cygdll ; then
21394 TINFO_NAME=$TINFO_ARG_SUFFIX
21398 if test -n "$TINFO_SUFFIX" ; then
21399 case $TINFO_SUFFIX in
21401 TINFO_NAME="${TINFO_NAME}tw"
21402 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^tw//'`
21405 TINFO_NAME="${TINFO_NAME}t"
21406 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^t//'`
21409 TINFO_NAME="${TINFO_NAME}w"
21410 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^w//'`
21415 for cf_dir in $SRC_SUBDIRS
21417 if test ! -d $srcdir/$cf_dir ; then
21419 elif test -f $srcdir/$cf_dir/modules; then
21423 for cf_item in $cf_LIST_MODELS
21426 case $cf_item in #(vi
21429 cf_depsuf=$cf_suffix
21433 cf_depsuf=$cf_suffix
21437 cf_depsuf=$cf_suffix
21441 cf_depsuf=$cf_suffix
21444 case $cf_cv_system_name in
21447 cf_depsuf=$cf_suffix
21455 cf_depsuf=$cf_suffix
21461 cf_depsuf=$cf_suffix
21465 cf_depsuf=$cf_suffix
21470 cf_depsuf=$cf_suffix
21474 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
21475 test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"
21477 if test $cf_item = shared ; then
21478 if test "$cf_cv_do_symlinks" = yes ; then
21479 case "$cf_cv_shlib_version" in #(vi
21481 case "$cf_cv_system_name" in #(vi
21483 case .${LIB_SUFFIX} in
21485 cf_suffix=`echo $cf_suffix | sed 's/^tw//'`
21486 cf_suffix=tw'.${REL_VERSION}'"$cf_suffix"
21489 cf_suffix=`echo $cf_suffix | sed 's/^t//'`
21490 cf_suffix=t'.${REL_VERSION}'"$cf_suffix"
21493 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
21494 cf_suffix=w'.${REL_VERSION}'"$cf_suffix"
21497 cf_suffix='.${REL_VERSION}'"$cf_suffix"
21501 *) cf_suffix="$cf_suffix"'.${REL_VERSION}' ;;
21505 case "$cf_cv_system_name" in #(vi
21507 case .${LIB_SUFFIX} in
21509 cf_suffix=`echo $cf_suffix | sed 's/^tw//'`
21510 cf_suffix=tw'.${ABI_VERSION}'"$cf_suffix"
21513 cf_suffix=`echo $cf_suffix | sed 's/^t//'`
21514 cf_suffix=t'.${ABI_VERSION}'"$cf_suffix"
21517 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
21518 cf_suffix=w'.${ABI_VERSION}'"$cf_suffix"
21521 cf_suffix='.${ABI_VERSION}'"$cf_suffix"
21525 *) cf_suffix="$cf_suffix"'.${ABI_VERSION}' ;;
21530 # cygwin needs import library, and has unique naming convention
21531 # use autodetected ${cf_prefix} for import lib and static lib, but
21532 # use 'cyg' prefix for shared lib.
21533 if test $cf_cv_shlib_version = cygdll ; then
21534 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
21535 LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/cyg${cf_dir}${cf_cygsuf}"
21539 LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/${cf_prefix}${cf_dir}${cf_suffix}"
21542 if test $cf_dir = ncurses ; then
21543 cf_subsets="$LIB_SUBSETS"
21544 cf_r_parts="$cf_subsets"
21545 cf_liblist="$LIBS_TO_MAKE"
21547 while test -n "$cf_r_parts"
21549 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
21550 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
21551 if test "$cf_l_parts" != "$cf_r_parts" ; then
21553 case $cf_l_parts in #(vi
21555 cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
21558 cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
21564 if test -n "$cf_item"; then
21565 LIBS_TO_MAKE="$cf_item $LIBS_TO_MAKE"
21572 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
21575 sed -e "s%@LIBS_TO_MAKE@%$LIBS_TO_MAKE%" \
21576 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
21577 $cf_dir/Makefile >$cf_dir/Makefile.out
21578 mv $cf_dir/Makefile.out $cf_dir/Makefile
21580 $AWK -f $srcdir/mk-0th.awk \
21581 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" \
21582 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
21584 for cf_subset in $cf_subsets
21587 for cf_item in $cf_LIST_MODELS
21589 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
21591 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
21593 case $cf_item in #(vi
21596 cf_depsuf=$cf_suffix
21600 cf_depsuf=$cf_suffix
21604 cf_depsuf=$cf_suffix
21608 cf_depsuf=$cf_suffix
21611 case $cf_cv_system_name in
21614 cf_depsuf=$cf_suffix
21622 cf_depsuf=$cf_suffix
21628 cf_depsuf=$cf_suffix
21632 cf_depsuf=$cf_suffix
21637 cf_depsuf=$cf_suffix
21641 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
21642 test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"
21645 libtool) cf_subdir='obj_lo' ;;
21646 normal) cf_subdir='objects' ;;
21647 debug) cf_subdir='obj_g' ;;
21648 profile) cf_subdir='obj_p' ;;
21650 case $cf_cv_system_name in #(vi
21652 cf_subdir='objects' ;;
21654 cf_subdir='obj_s' ;;
21658 # Test for case where we build libtinfo with a different name.
21660 if test $cf_dir = ncurses ; then
21663 cf_libname=${cf_libname}$LIB_SUFFIX
21666 cf_libname=$TINFO_LIB_SUFFIX
21669 cf_libname=$TICS_LIB_SUFFIX
21673 cf_libname=${cf_libname}$LIB_SUFFIX
21675 if test -n "${DFT_ARG_SUFFIX}" ; then
21676 # undo $LIB_SUFFIX add-on in CF_LIB_SUFFIX
21677 cf_suffix=`echo $cf_suffix |sed -e "s%^${LIB_SUFFIX}%%"`
21680 # These dependencies really are for development, not
21681 # builds, but they are useful in porting, too.
21682 cf_depend="../include/ncurses_cfg.h"
21683 if test "$srcdir" = "."; then
21686 cf_reldir="\${srcdir}"
21689 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
21690 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
21691 elif test -f $srcdir/$cf_dir/curses.priv.h; then
21692 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
21696 old_cf_suffix="$cf_suffix"
21697 if test "$cf_cv_shlib_version_infix" = yes ; then
21698 if test -n "$LIB_SUFFIX" ; then
21699 case $LIB_SUFFIX in
21701 cf_libname=`echo $cf_libname | sed 's/tw$//'`
21702 cf_suffix=`echo $cf_suffix | sed 's/^tw//'`
21706 cf_libname=`echo $cf_libname | sed 's/t$//'`
21707 cf_suffix=`echo $cf_suffix | sed 's/^t//'`
21711 cf_libname=`echo $cf_libname | sed 's/w$//'`
21712 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
21719 $AWK -f $srcdir/mk-1st.awk \
21720 name=${cf_libname}${cf_dir_suffix} \
21721 traces=$LIB_TRACING \
21724 prefix=$cf_prefix \
21725 suffix=$cf_suffix \
21726 subset=$cf_subset \
21728 TermlibRoot=$TINFO_NAME \
21729 TermlibSuffix=$TINFO_SUFFIX \
21730 ShlibVer=$cf_cv_shlib_version \
21731 ShlibVerInfix=$cf_cv_shlib_version_infix \
21732 ReLink=${cf_cv_do_relink:-no} \
21733 DoLinks=$cf_cv_do_symlinks \
21734 rmSoLocs=$cf_cv_rm_so_locs \
21735 ldconfig="$LDCONFIG" \
21736 overwrite=$WITH_OVERWRITE \
21737 depend="$cf_depend" \
21739 libtool_version="$LIBTOOL_VERSION" \
21740 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
21742 cf_suffix="$old_cf_suffix"
21744 for cf_subdir2 in $cf_subdirs lib
21746 test $cf_subdir = $cf_subdir2 && break
21748 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
21749 $AWK -f $srcdir/mk-2nd.awk \
21751 traces=$LIB_TRACING \
21754 subset=$cf_subset \
21757 crenames=$cf_cv_prog_CC_c_o \
21758 cxxrenames=$cf_cv_prog_CXX_c_o \
21759 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
21760 cf_subdirs="$cf_subdirs $cf_subdir"
21765 echo ' cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@' >>Makefile
21768 for cf_dir in $SRC_SUBDIRS
21770 if test ! -d $srcdir/$cf_dir ; then
21774 if test -f $cf_dir/Makefile ; then
21777 echo 'libs \' >> Makefile
21778 echo 'install.libs \' >> Makefile
21779 echo 'uninstall.libs ::' >> Makefile
21780 echo ' cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@' >> Makefile
21785 if test -f $srcdir/$cf_dir/modules; then
21787 if test -f $srcdir/$cf_dir/headers; then
21788 cat >> Makefile <<CF_EOF
21789 install.includes \\
21790 uninstall.includes \\
21793 if test "$cf_dir" != "c++" ; then
21794 echo 'lint \' >> Makefile
21796 cat >> Makefile <<CF_EOF
21802 uninstall.$cf_dir ::
21803 cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@
21805 elif test -f $srcdir/$cf_dir/headers; then
21806 cat >> Makefile <<CF_EOF
21811 install.includes \\
21812 uninstall.includes ::
21813 cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@
21818 cat >> Makefile <<CF_EOF
21820 install.libs uninstall.libs \\
21821 install.data uninstall.data ::
21822 $MAKE_TERMINFO cd misc && \${MAKE} \${CF_MFLAGS} \$@
21825 if test "x$cf_with_manpages" = xyes; then
21826 cat >> Makefile <<CF_EOF
21830 cd man && \${MAKE} \${CF_MFLAGS} \$@
21834 cat >> Makefile <<CF_EOF
21837 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
21838 rm -f headers.sh headers.sed mk_shared_lib.sh
21839 rm -f edit_man.* man_alias.*
21840 rm -rf \${DIRS_TO_MAKE}
21843 # Special case: tack's manpage lives in its own directory.
21844 if test "x$cf_with_manpages" = xyes; then
21845 if test -d tack ; then
21846 if test -f $srcdir/$tack.h; then
21847 cat >> Makefile <<CF_EOF
21851 cd tack && \${MAKE} \${CF_MFLAGS} \$@
21857 rm -f headers.sed headers.sh
21859 echo creating headers.sh
21860 cat >headers.sh <<CF_EOF
21862 # This shell script is generated by the 'configure' script. It is invoked in a
21863 # subdirectory of the build tree. It generates a sed-script in the parent
21864 # directory that is used to adjust includes for header files that reside in a
21865 # subdirectory of /usr/include, etc.
21867 while test \$# != 3
21869 PRG="\$PRG \$1"; shift
21874 TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
21875 TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
21876 echo installing \$SRC in \$DST
21879 if test $WITH_CURSES_H = yes; then
21880 cat >>headers.sh <<CF_EOF
21883 END=\`basename \$DST\`
21884 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
21886 NAME=\`basename \$i\`
21887 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
21891 echo "" >> \$TMPSED
21897 cat >>headers.sh <<CF_EOF
21900 END=\`basename \$DST\`
21901 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
21903 NAME=\`basename \$i\`
21904 if test "\$NAME" = "curses.h"
21906 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
21909 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
21913 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
21918 cat >>headers.sh <<CF_EOF
21920 sed -f \$TMPSED \$SRC > \$TMPSRC
21921 NAME=\`basename \$SRC\`
21923 if test $WITH_CURSES_H != yes; then
21924 cat >>headers.sh <<CF_EOF
21925 test "\$NAME" = "curses.h" && NAME=ncurses.h
21928 cat >>headers.sh <<CF_EOF
21929 # Just in case someone gzip'd manpages, remove the conflicting copy.
21930 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
21932 eval \$PRG \$TMPSRC \$DST/\$NAME
21933 rm -f \$TMPSRC \$TMPSED
21936 chmod 0755 headers.sh
21938 for cf_dir in $SRC_SUBDIRS
21940 if test ! -d $srcdir/$cf_dir ; then
21944 if test -f $srcdir/$cf_dir/headers; then
21945 $AWK -f $srcdir/mk-hdr.awk \
21946 subset="$LIB_SUBSETS" \
21947 compat="$WITH_CURSES_H" \
21948 $srcdir/$cf_dir/headers >>$cf_dir/Makefile
21951 if test -f $srcdir/$cf_dir/modules; then
21952 if test "$cf_dir" != "c++" ; then
21953 cat >>$cf_dir/Makefile <<"CF_EOF"
21954 depend : ${AUTO_SRC}
21955 makedepend -- ${CPPFLAGS} -- ${C_SRC}
21957 # DO NOT DELETE THIS LINE -- make depend depends on it.
21963 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
21964 if test -z "$USE_OLD_MAKERULES" ; then
21965 $AWK -f $srcdir/Ada95/mk-1st.awk <$srcdir/Ada95/src/modules >>Ada95/src/Makefile
21973 cat >>$CONFIG_STATUS <<\EOF
21975 { (exit 0); exit 0; }
21977 chmod +x $CONFIG_STATUS
21978 ac_clean_files=$ac_clean_files_save
21980 # configure is writing to config.log, and then calls config.status.
21981 # config.status does its own redirection, appending to config.log.
21982 # Unfortunately, on DOS this fails, as config.log is still kept open
21983 # by configure, so config.status won't be able to write to it; its
21984 # output is simply discarded. So we exec the FD to /dev/null,
21985 # effectively closing config.log, so it can be properly (re)opened and
21986 # appended to by config.status. When coming back to configure, we
21987 # need to make the FD available again.
21988 if test "$no_create" != yes; then
21991 $SHELL $CONFIG_STATUS || ac_cs_success=false
21993 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21994 # would make configure fail if this is the last instruction.
21995 $ac_cs_success || { (exit 1); exit 1; }
21997 ${MAKE:-make} preinstall