2 # From configure.in Revision: 1.543 .
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-lib-prefix override library-prefix
724 --with-termlib generate separate terminfo library
725 --with-ticlib generate separate tic library
726 --with-gpm use Alessandro Rubini's GPM library
727 --without-dlsym do not use dlsym() to load GPM dynamically
728 --with-sysmouse use sysmouse (FreeBSD console)
729 --enable-rpath use rpath option when generating shared libraries
730 --disable-relink relink shared libraries during install
731 --with-shlib-version=X Specify rel or abi version for shared libs
732 --disable-rpath-hack don't add rpath options for additional libraries
733 Fine-Tuning Your Configuration:
734 --disable-overwrite leave out the link to -lcurses
735 --disable-database do not use terminfo, only fallbacks/termcap
736 --with-database=XXX specify terminfo source to install
737 --with-hashed-db specify hashed-database library
738 --with-fallbacks=XXX specify list of fallback terminal descriptions
739 --without-xterm-new specify if xterm terminfo should be old version
740 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
741 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
742 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
743 --disable-big-core assume machine has little memory
744 --disable-big-strings assume compiler has only standard-size strings
745 --enable-termcap compile in termcap fallback support
746 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
747 --enable-getcap fast termcap load, no xrefs to terminfo
748 --enable-getcap-cache cache translated termcaps in ~/.terminfo
749 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
750 --disable-root-environ restrict environment when running as root
751 --enable-symlinks make tic use symbolic links not hard links
752 --enable-broken_linker compile with broken-linker support code
753 --enable-bsdpad recognize BSD-style prefix padding
754 --enable-widec compile with wide-char/UTF-8 code
755 --disable-lp64 allow chtype to be long (ignore _LP64)
756 --disable-largefile omit support for large files
757 --disable-tparm-varargs compile tparm() without varargs interface
758 --disable-tic-depends link tic library without explicit dependency on ncurses library
759 --with-bool=TYPE override fallback type of bool variable
760 --with-caps=alt compile with alternate Caps file
761 --with-chtype=TYPE override type of chtype
762 --with-ospeed=TYPE override type of ospeed variable
763 --with-mmask-t=TYPE override type of mmask_t
764 --with-ccharw-max=XXX override size CCHARW_MAX
765 --with-tparm-arg=TYPE override parameter type of tparm
766 --with-rcs-ids compile-in RCS identifiers
767 Options to Specify How Manpages are Installed:
768 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
769 optionally formatted/catonly, e.g., gzip,formatted
770 --with-manpage-renames specify manpage-renaming
771 --with-manpage-aliases specify manpage-aliases using .so
772 --with-manpage-symlinks specify manpage-aliases using symlinks
773 --with-manpage-tbl specify manpage processing with tbl
775 --disable-ext-funcs disable function-extensions
776 --enable-sp-funcs enable experimental SCREEN-extensions
777 --enable-term-driver enable experimental terminal-driver
778 --enable-const compile with extra/non-standard const
779 --enable-ext-colors compile for 256-color support
780 --enable-ext-mouse compile for extended mouse-encoding
781 --enable-no-padding compile with $NCURSES_NO_PADDING code
782 --enable-signed-char compile using signed Boolean's in term.h
783 --enable-sigwinch compile with SIGWINCH handler
784 --enable-tcap-names compile with user-definable terminal capabilities
786 --without-develop disable development options
787 --enable-hard-tabs compile with hard-tabs code
788 --enable-xmc-glitch compile with support for xmc (magic-cookie)
790 --disable-assumed-color do not assume anything about default-colors
791 --disable-hashmap compile without hashmap scrolling-optimization
792 --enable-colorfgbg compile-in experimental $COLORFGBG code
793 --enable-interop compile-in experimental interop bindings
794 --with-pthread use POSIX thread library
795 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
796 --enable-weak-symbols enable weak-symbols for pthreads
797 --enable-reentrant compile with experimental reentrant code
798 --with-wrap-prefix=XXX override prefix used for public variables
799 --enable-safe-sprintf compile with experimental safe-sprintf code
800 --disable-scroll-hints compile without scroll-hints code
801 --enable-wgetch-events compile with experimental wgetch-events code
802 Testing/development Options:
803 --enable-echo build: display "compiling" commands (default)
804 --enable-warnings build: turn on GCC compiler warnings
805 --enable-assertions test: turn on generation of assertion code
806 --with-dmalloc test: use Gray Watson's dmalloc library
807 --with-dbmalloc test: use Conor Cahill's dbmalloc library
808 --with-valgrind test: use valgrind
809 --disable-leaks test: free permanent memory, analyze leaks
810 --enable-expanded test: generate functions for certain macros
811 --disable-macros test: use functions rather than macros
812 --with-trace test: add trace() function to all models of ncurses
813 Ada95 Binding Options:
814 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
815 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
816 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
817 --with-ada-sharedlib=XX build Ada95 shared-library
819 Some influential environment variables:
820 CC C compiler command
821 CFLAGS C compiler flags
822 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
823 nonstandard directory <lib dir>
824 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
825 headers in a nonstandard directory <include dir>
827 CXX C++ compiler command
828 CXXFLAGS C++ compiler flags
829 CXXCPP C++ preprocessor
831 Use these variables to override the choices made by `configure' or to help
832 it to find libraries and programs with nonstandard names/locations.
837 if test "$ac_init_help" = "recursive"; then
838 # If there are subdirs, report their specific --help.
840 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
842 # A "../" for each directory in /$ac_subdir.
843 ac_dots=`echo $ac_subdir |
844 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
847 .) # No --srcdir option. We are building in place.
848 ac_sub_srcdir=$srcdir ;;
849 [\\/]* | ?:[\\/]* ) # Absolute path.
850 ac_sub_srcdir=$srcdir/$ac_subdir ;;
852 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
855 # Check for guested configure; otherwise get Cygnus style configure.
856 if test -f $ac_sub_srcdir/configure.gnu; then
858 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
859 elif test -f $ac_sub_srcdir/configure; then
861 $SHELL $ac_sub_srcdir/configure --help=recursive
862 elif test -f $ac_sub_srcdir/configure.ac ||
863 test -f $ac_sub_srcdir/configure.in; then
867 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
873 test -n "$ac_init_help" && exit 0
874 if $ac_init_version; then
877 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
878 Free Software Foundation, Inc.
879 This configure script is free software; the Free Software Foundation
880 gives unlimited permission to copy, distribute and modify it.
886 This file contains any messages produced by compilers while
887 running configure, to aid debugging if configure makes a mistake.
889 It was created by $as_me, which was
890 generated by GNU Autoconf 2.52.20101002. Invocation command line was
901 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
902 uname -m = `(uname -m) 2>/dev/null || echo unknown`
903 uname -r = `(uname -r) 2>/dev/null || echo unknown`
904 uname -s = `(uname -s) 2>/dev/null || echo unknown`
905 uname -v = `(uname -v) 2>/dev/null || echo unknown`
907 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
908 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
910 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
911 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
912 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
913 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
914 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
915 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
916 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
930 # Keep a trace of the command line.
931 # Strip out --no-create and --no-recursion so they do not pile up.
932 # Also quote any args containing shell meta-characters.
938 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
939 | --no-cr | --no-c) ;;
940 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
941 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
942 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
943 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
944 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
946 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
949 # Get rid of the leading space.
952 # When interrupted or exit'd, cleanup temporary files, and complete
953 # config.log. We remove comments because anyway the quotes in there
954 # would cause problems or look ugly.
956 # Save into config.log some information that might help in debugging.
958 echo "## ----------------- ##" >&5
959 echo "## Cache variables. ##" >&5
960 echo "## ----------------- ##" >&5
962 # The following way of writing the cache mishandles newlines in values,
965 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
968 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
969 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
973 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
977 sed "/^$/d" confdefs.h >conftest.log
978 if test -s conftest.log; then
980 echo "## ------------ ##" >&5
981 echo "## confdefs.h. ##" >&5
982 echo "## ------------ ##" >&5
987 test "$ac_signal" != 0 &&
988 echo "$as_me: caught signal $ac_signal" >&5
989 echo "$as_me: exit $exit_status" >&5
990 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
993 for ac_signal in 1 2 13 15; do
994 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
998 # confdefs.h avoids OS command line length limits that DEFS can exceed.
999 rm -rf conftest* confdefs.h
1000 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1003 # Let the site file select an alternate cache file if it wants to.
1004 # Prefer explicitly selected file to automatically selected ones.
1005 if test -z "$CONFIG_SITE"; then
1006 if test "x$prefix" != xNONE; then
1007 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1009 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1012 for ac_site_file in $CONFIG_SITE; do
1013 if test -r "$ac_site_file"; then
1014 { echo "$as_me:1014: loading site script $ac_site_file" >&5
1015 echo "$as_me: loading site script $ac_site_file" >&6;}
1016 cat "$ac_site_file" >&5
1021 if test -r "$cache_file"; then
1022 # Some versions of bash will fail to source /dev/null (special
1023 # files actually), so we avoid doing that.
1024 if test -f "$cache_file"; then
1025 { echo "$as_me:1025: loading cache $cache_file" >&5
1026 echo "$as_me: loading cache $cache_file" >&6;}
1028 [\\/]* | ?:[\\/]* ) . $cache_file;;
1029 *) . ./$cache_file;;
1033 { echo "$as_me:1033: creating cache $cache_file" >&5
1034 echo "$as_me: creating cache $cache_file" >&6;}
1038 # Check that the precious variables saved in the cache have kept the same
1040 ac_cache_corrupted=false
1041 for ac_var in `(set) 2>&1 |
1042 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1043 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1044 eval ac_new_set=\$ac_env_${ac_var}_set
1045 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1046 eval ac_new_val="\$ac_env_${ac_var}_value"
1047 case $ac_old_set,$ac_new_set in
1049 { echo "$as_me:1049: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1050 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1051 ac_cache_corrupted=: ;;
1053 { echo "$as_me:1053: error: \`$ac_var' was not set in the previous run" >&5
1054 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1055 ac_cache_corrupted=: ;;
1058 if test "x$ac_old_val" != "x$ac_new_val"; then
1059 { echo "$as_me:1059: error: \`$ac_var' has changed since the previous run:" >&5
1060 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1061 { echo "$as_me:1061: former value: $ac_old_val" >&5
1062 echo "$as_me: former value: $ac_old_val" >&2;}
1063 { echo "$as_me:1063: current value: $ac_new_val" >&5
1064 echo "$as_me: current value: $ac_new_val" >&2;}
1065 ac_cache_corrupted=:
1068 # Pass precious variables to config.status. It doesn't matter if
1069 # we pass some twice (in addition to the command line arguments).
1070 if test "$ac_new_set" = set; then
1072 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1073 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1074 ac_configure_args="$ac_configure_args '$ac_arg'"
1076 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1081 if $ac_cache_corrupted; then
1082 { echo "$as_me:1082: error: changes in the environment can compromise the build" >&5
1083 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1084 { { echo "$as_me:1084: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1085 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1086 { (exit 1); exit 1; }; }
1090 ac_cpp='$CPP $CPPFLAGS'
1091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1094 ac_main_return=return
1096 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1097 *c*,-n*) ECHO_N= ECHO_C='
1099 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1100 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1102 echo "#! $SHELL" >conftest.sh
1103 echo "exit 0" >>conftest.sh
1104 chmod +x conftest.sh
1105 if { (echo "$as_me:1105: PATH=\".;.\"; conftest.sh") >&5
1106 (PATH=".;."; conftest.sh) 2>&5
1108 echo "$as_me:1108: \$? = $ac_status" >&5
1109 (exit $ac_status); }; then
1110 ac_path_separator=';'
1114 PATH_SEPARATOR="$ac_path_separator"
1117 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1121 echo "$as_me:1121: checking for egrep" >&5
1122 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1123 if test "${ac_cv_prog_egrep+set}" = set; then
1124 echo $ECHO_N "(cached) $ECHO_C" >&6
1126 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1127 then ac_cv_prog_egrep='grep -E'
1128 else ac_cv_prog_egrep='egrep'
1131 echo "$as_me:1131: result: $ac_cv_prog_egrep" >&5
1132 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1133 EGREP=$ac_cv_prog_egrep
1135 test -z "$EGREP" && { { echo "$as_me:1135: error: No egrep program found" >&5
1136 echo "$as_me: error: No egrep program found" >&2;}
1137 { (exit 1); exit 1; }; }
1139 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1140 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1141 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1142 cf_cv_abi_version=${NCURSES_MAJOR}
1143 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1144 cf_cv_timestamp=`date`
1145 echo "$as_me:1145: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1146 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1148 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1150 # Check whether --with-rel-version or --without-rel-version was given.
1151 if test "${with_rel_version+set}" = set; then
1152 withval="$with_rel_version"
1153 { echo "$as_me:1153: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1154 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1155 cf_cv_rel_version=$withval
1158 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1159 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1161 if test -n "$NCURSES_MAJOR" ; then
1162 case $NCURSES_MAJOR in #(vi
1166 { { echo "$as_me:1166: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1167 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1168 { (exit 1); exit 1; }; }
1172 { { echo "$as_me:1172: error: Release major-version value is empty" >&5
1173 echo "$as_me: error: Release major-version value is empty" >&2;}
1174 { (exit 1); exit 1; }; }
1177 if test -n "$NCURSES_MINOR" ; then
1178 case $NCURSES_MINOR in #(vi
1182 { { echo "$as_me:1182: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1183 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1184 { (exit 1); exit 1; }; }
1188 { { echo "$as_me:1188: error: Release minor-version value is empty" >&5
1189 echo "$as_me: error: Release minor-version value is empty" >&2;}
1190 { (exit 1); exit 1; }; }
1193 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1195 # Check whether --with-abi-version or --without-abi-version was given.
1196 if test "${with_abi_version+set}" = set; then
1197 withval="$with_abi_version"
1198 { echo "$as_me:1198: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1199 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1200 cf_cv_abi_version=$withval
1203 if test -n "$cf_cv_abi_version" ; then
1204 case $cf_cv_abi_version in #(vi
1208 { { echo "$as_me:1208: error: ABI version is not a number: $cf_cv_abi_version" >&5
1209 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1210 { (exit 1); exit 1; }; }
1214 { { echo "$as_me:1214: error: ABI version value is empty" >&5
1215 echo "$as_me: error: ABI version value is empty" >&2;}
1216 { (exit 1); exit 1; }; }
1220 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1221 if test -f $ac_dir/install-sh; then
1223 ac_install_sh="$ac_aux_dir/install-sh -c"
1225 elif test -f $ac_dir/install.sh; then
1227 ac_install_sh="$ac_aux_dir/install.sh -c"
1229 elif test -f $ac_dir/shtool; then
1231 ac_install_sh="$ac_aux_dir/shtool install -c"
1235 if test -z "$ac_aux_dir"; then
1236 { { echo "$as_me:1236: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1237 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1238 { (exit 1); exit 1; }; }
1240 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1241 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1242 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1244 # Make sure we can run config.sub.
1245 $ac_config_sub sun4 >/dev/null 2>&1 ||
1246 { { echo "$as_me:1246: error: cannot run $ac_config_sub" >&5
1247 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1248 { (exit 1); exit 1; }; }
1250 echo "$as_me:1250: checking build system type" >&5
1251 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1252 if test "${ac_cv_build+set}" = set; then
1253 echo $ECHO_N "(cached) $ECHO_C" >&6
1255 ac_cv_build_alias=$build_alias
1256 test -z "$ac_cv_build_alias" &&
1257 ac_cv_build_alias=`$ac_config_guess`
1258 test -z "$ac_cv_build_alias" &&
1259 { { echo "$as_me:1259: error: cannot guess build type; you must specify one" >&5
1260 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1261 { (exit 1); exit 1; }; }
1262 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1263 { { echo "$as_me:1263: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1264 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1265 { (exit 1); exit 1; }; }
1268 echo "$as_me:1268: result: $ac_cv_build" >&5
1269 echo "${ECHO_T}$ac_cv_build" >&6
1271 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1272 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1273 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1275 echo "$as_me:1275: checking host system type" >&5
1276 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1277 if test "${ac_cv_host+set}" = set; then
1278 echo $ECHO_N "(cached) $ECHO_C" >&6
1280 ac_cv_host_alias=$host_alias
1281 test -z "$ac_cv_host_alias" &&
1282 ac_cv_host_alias=$ac_cv_build_alias
1283 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1284 { { echo "$as_me:1284: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1285 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1286 { (exit 1); exit 1; }; }
1289 echo "$as_me:1289: result: $ac_cv_host" >&5
1290 echo "${ECHO_T}$ac_cv_host" >&6
1292 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1293 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1294 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1296 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1297 echo "$as_me:1297: checking target system type" >&5
1298 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1299 if test "${ac_cv_target+set}" = set; then
1300 echo $ECHO_N "(cached) $ECHO_C" >&6
1302 ac_cv_target_alias=$target_alias
1303 test "x$ac_cv_target_alias" = "x" &&
1304 ac_cv_target_alias=$ac_cv_host_alias
1305 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1306 { { echo "$as_me:1306: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1307 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1308 { (exit 1); exit 1; }; }
1311 echo "$as_me:1311: result: $ac_cv_target" >&5
1312 echo "${ECHO_T}$ac_cv_target" >&6
1313 target=$ac_cv_target
1314 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1315 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1316 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1318 # The aliases save the names the user supplied, while $host etc.
1319 # will get canonicalized.
1320 test -n "$target_alias" &&
1321 test "$program_prefix$program_suffix$program_transform_name" = \
1323 program_prefix=${target_alias}-
1324 system_name="$host_os"
1326 system_name="`(uname -s -r) 2>/dev/null`"
1327 if test -z "$system_name" ; then
1328 system_name="`(hostname) 2>/dev/null`"
1331 test -n "$system_name" && cat >>confdefs.h <<EOF
1332 #define SYSTEM_NAME "$system_name"
1335 if test "${cf_cv_system_name+set}" = set; then
1336 echo $ECHO_N "(cached) $ECHO_C" >&6
1338 cf_cv_system_name="$system_name"
1341 test -z "$system_name" && system_name="$cf_cv_system_name"
1342 test -n "$cf_cv_system_name" && echo "$as_me:1342: result: Configuring for $cf_cv_system_name" >&5
1343 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1345 if test ".$system_name" != ".$cf_cv_system_name" ; then
1346 echo "$as_me:1346: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1347 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1348 { { echo "$as_me:1348: error: \"Please remove config.cache and try again.\"" >&5
1349 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1350 { (exit 1); exit 1; }; }
1353 # Check whether --with-system-type or --without-system-type was given.
1354 if test "${with_system_type+set}" = set; then
1355 withval="$with_system_type"
1356 { echo "$as_me:1356: WARNING: overriding system type to $withval" >&5
1357 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1358 cf_cv_system_name=$withval
1361 ### Save the given $CFLAGS to allow user-override.
1362 cf_user_CFLAGS="$CFLAGS"
1364 ### Default install-location
1366 echo "$as_me:1366: checking for prefix" >&5
1367 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1368 if test "x$prefix" = "xNONE" ; then
1369 case "$cf_cv_system_name" in
1370 # non-vendor systems don't have a conflict
1371 openbsd*|freebsd*|mirbsd*|linux*|cygwin*|k*bsd*-gnu)
1374 *) prefix=$ac_default_prefix
1378 echo "$as_me:1378: result: $prefix" >&5
1379 echo "${ECHO_T}$prefix" >&6
1381 if test "x$prefix" = "xNONE" ; then
1382 echo "$as_me:1382: checking for default include-directory" >&5
1383 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1384 test -n "$verbose" && echo 1>&6
1387 $includedir/ncurses \
1389 $prefix/include/ncurses \
1390 /usr/local/include \
1391 /usr/local/include/ncurses \
1393 /usr/include/ncurses
1395 cf_dir=`eval echo $cf_symbol`
1396 if test -f $cf_dir/curses.h ; then
1397 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1398 includedir="$cf_symbol"
1399 test -n "$verbose" && echo $ac_n " found " 1>&6
1403 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1405 echo "$as_me:1405: result: $includedir" >&5
1406 echo "${ECHO_T}$includedir" >&6
1409 ### Checks for programs.
1411 ac_cpp='$CPP $CPPFLAGS'
1412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1415 ac_main_return=return
1416 if test -n "$ac_tool_prefix"; then
1417 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1418 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1419 echo "$as_me:1419: checking for $ac_word" >&5
1420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1421 if test "${ac_cv_prog_CC+set}" = set; then
1422 echo $ECHO_N "(cached) $ECHO_C" >&6
1424 if test -n "$CC"; then
1425 ac_cv_prog_CC="$CC" # Let the user override the test.
1427 ac_save_IFS=$IFS; IFS=$ac_path_separator
1429 for ac_dir in $ac_dummy; do
1431 test -z "$ac_dir" && ac_dir=.
1432 $as_executable_p "$ac_dir/$ac_word" || continue
1433 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1434 echo "$as_me:1434: found $ac_dir/$ac_word" >&5
1441 if test -n "$CC"; then
1442 echo "$as_me:1442: result: $CC" >&5
1443 echo "${ECHO_T}$CC" >&6
1445 echo "$as_me:1445: result: no" >&5
1446 echo "${ECHO_T}no" >&6
1450 if test -z "$ac_cv_prog_CC"; then
1452 # Extract the first word of "gcc", so it can be a program name with args.
1453 set dummy gcc; ac_word=$2
1454 echo "$as_me:1454: checking for $ac_word" >&5
1455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1456 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1457 echo $ECHO_N "(cached) $ECHO_C" >&6
1459 if test -n "$ac_ct_CC"; then
1460 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1462 ac_save_IFS=$IFS; IFS=$ac_path_separator
1464 for ac_dir in $ac_dummy; do
1466 test -z "$ac_dir" && ac_dir=.
1467 $as_executable_p "$ac_dir/$ac_word" || continue
1468 ac_cv_prog_ac_ct_CC="gcc"
1469 echo "$as_me:1469: found $ac_dir/$ac_word" >&5
1475 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1476 if test -n "$ac_ct_CC"; then
1477 echo "$as_me:1477: result: $ac_ct_CC" >&5
1478 echo "${ECHO_T}$ac_ct_CC" >&6
1480 echo "$as_me:1480: result: no" >&5
1481 echo "${ECHO_T}no" >&6
1489 if test -z "$CC"; then
1490 if test -n "$ac_tool_prefix"; then
1491 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1492 set dummy ${ac_tool_prefix}cc; ac_word=$2
1493 echo "$as_me:1493: checking for $ac_word" >&5
1494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1495 if test "${ac_cv_prog_CC+set}" = set; then
1496 echo $ECHO_N "(cached) $ECHO_C" >&6
1498 if test -n "$CC"; then
1499 ac_cv_prog_CC="$CC" # Let the user override the test.
1501 ac_save_IFS=$IFS; IFS=$ac_path_separator
1503 for ac_dir in $ac_dummy; do
1505 test -z "$ac_dir" && ac_dir=.
1506 $as_executable_p "$ac_dir/$ac_word" || continue
1507 ac_cv_prog_CC="${ac_tool_prefix}cc"
1508 echo "$as_me:1508: found $ac_dir/$ac_word" >&5
1515 if test -n "$CC"; then
1516 echo "$as_me:1516: result: $CC" >&5
1517 echo "${ECHO_T}$CC" >&6
1519 echo "$as_me:1519: result: no" >&5
1520 echo "${ECHO_T}no" >&6
1524 if test -z "$ac_cv_prog_CC"; then
1526 # Extract the first word of "cc", so it can be a program name with args.
1527 set dummy cc; ac_word=$2
1528 echo "$as_me:1528: checking for $ac_word" >&5
1529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1530 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1531 echo $ECHO_N "(cached) $ECHO_C" >&6
1533 if test -n "$ac_ct_CC"; then
1534 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1536 ac_save_IFS=$IFS; IFS=$ac_path_separator
1538 for ac_dir in $ac_dummy; do
1540 test -z "$ac_dir" && ac_dir=.
1541 $as_executable_p "$ac_dir/$ac_word" || continue
1542 ac_cv_prog_ac_ct_CC="cc"
1543 echo "$as_me:1543: found $ac_dir/$ac_word" >&5
1549 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1550 if test -n "$ac_ct_CC"; then
1551 echo "$as_me:1551: result: $ac_ct_CC" >&5
1552 echo "${ECHO_T}$ac_ct_CC" >&6
1554 echo "$as_me:1554: result: no" >&5
1555 echo "${ECHO_T}no" >&6
1564 if test -z "$CC"; then
1565 # Extract the first word of "cc", so it can be a program name with args.
1566 set dummy cc; ac_word=$2
1567 echo "$as_me:1567: checking for $ac_word" >&5
1568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1569 if test "${ac_cv_prog_CC+set}" = set; then
1570 echo $ECHO_N "(cached) $ECHO_C" >&6
1572 if test -n "$CC"; then
1573 ac_cv_prog_CC="$CC" # Let the user override the test.
1576 ac_save_IFS=$IFS; IFS=$ac_path_separator
1578 for ac_dir in $ac_dummy; do
1580 test -z "$ac_dir" && ac_dir=.
1581 $as_executable_p "$ac_dir/$ac_word" || continue
1582 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1583 ac_prog_rejected=yes
1587 echo "$as_me:1587: found $ac_dir/$ac_word" >&5
1591 if test $ac_prog_rejected = yes; then
1592 # We found a bogon in the path, so make sure we never use it.
1593 set dummy $ac_cv_prog_CC
1595 if test $# != 0; then
1596 # We chose a different compiler from the bogus one.
1597 # However, it has the same basename, so the bogon will be chosen
1598 # first if we set CC to just the basename; use the full file name.
1600 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1608 if test -n "$CC"; then
1609 echo "$as_me:1609: result: $CC" >&5
1610 echo "${ECHO_T}$CC" >&6
1612 echo "$as_me:1612: result: no" >&5
1613 echo "${ECHO_T}no" >&6
1617 if test -z "$CC"; then
1618 if test -n "$ac_tool_prefix"; then
1621 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1622 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1623 echo "$as_me:1623: checking for $ac_word" >&5
1624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1625 if test "${ac_cv_prog_CC+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1628 if test -n "$CC"; then
1629 ac_cv_prog_CC="$CC" # Let the user override the test.
1631 ac_save_IFS=$IFS; IFS=$ac_path_separator
1633 for ac_dir in $ac_dummy; do
1635 test -z "$ac_dir" && ac_dir=.
1636 $as_executable_p "$ac_dir/$ac_word" || continue
1637 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1638 echo "$as_me:1638: found $ac_dir/$ac_word" >&5
1645 if test -n "$CC"; then
1646 echo "$as_me:1646: result: $CC" >&5
1647 echo "${ECHO_T}$CC" >&6
1649 echo "$as_me:1649: result: no" >&5
1650 echo "${ECHO_T}no" >&6
1653 test -n "$CC" && break
1656 if test -z "$CC"; then
1660 # Extract the first word of "$ac_prog", so it can be a program name with args.
1661 set dummy $ac_prog; ac_word=$2
1662 echo "$as_me:1662: checking for $ac_word" >&5
1663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1664 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 if test -n "$ac_ct_CC"; then
1668 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1670 ac_save_IFS=$IFS; IFS=$ac_path_separator
1672 for ac_dir in $ac_dummy; do
1674 test -z "$ac_dir" && ac_dir=.
1675 $as_executable_p "$ac_dir/$ac_word" || continue
1676 ac_cv_prog_ac_ct_CC="$ac_prog"
1677 echo "$as_me:1677: found $ac_dir/$ac_word" >&5
1683 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1684 if test -n "$ac_ct_CC"; then
1685 echo "$as_me:1685: result: $ac_ct_CC" >&5
1686 echo "${ECHO_T}$ac_ct_CC" >&6
1688 echo "$as_me:1688: result: no" >&5
1689 echo "${ECHO_T}no" >&6
1692 test -n "$ac_ct_CC" && break
1700 test -z "$CC" && { { echo "$as_me:1700: error: no acceptable cc found in \$PATH" >&5
1701 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1702 { (exit 1); exit 1; }; }
1704 # Provide some information about the compiler.
1705 echo "$as_me:1705:" \
1706 "checking for C compiler version" >&5
1707 ac_compiler=`set X $ac_compile; echo $2`
1708 { (eval echo "$as_me:1708: \"$ac_compiler --version </dev/null >&5\"") >&5
1709 (eval $ac_compiler --version </dev/null >&5) 2>&5
1711 echo "$as_me:1711: \$? = $ac_status" >&5
1712 (exit $ac_status); }
1713 { (eval echo "$as_me:1713: \"$ac_compiler -v </dev/null >&5\"") >&5
1714 (eval $ac_compiler -v </dev/null >&5) 2>&5
1716 echo "$as_me:1716: \$? = $ac_status" >&5
1717 (exit $ac_status); }
1718 { (eval echo "$as_me:1718: \"$ac_compiler -V </dev/null >&5\"") >&5
1719 (eval $ac_compiler -V </dev/null >&5) 2>&5
1721 echo "$as_me:1721: \$? = $ac_status" >&5
1722 (exit $ac_status); }
1724 cat >conftest.$ac_ext <<_ACEOF
1725 #line 1725 "configure"
1726 #include "confdefs.h"
1736 ac_clean_files_save=$ac_clean_files
1737 ac_clean_files="$ac_clean_files a.out a.exe"
1738 # Try to create an executable without -o first, disregard a.out.
1739 # It will help us diagnose broken compilers, and finding out an intuition
1741 echo "$as_me:1741: checking for C compiler default output" >&5
1742 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1743 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1744 if { (eval echo "$as_me:1744: \"$ac_link_default\"") >&5
1745 (eval $ac_link_default) 2>&5
1747 echo "$as_me:1747: \$? = $ac_status" >&5
1748 (exit $ac_status); }; then
1749 # Find the output, starting from the most likely. This scheme is
1750 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1752 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1753 ls a.out conftest 2>/dev/null;
1754 ls a.* conftest.* 2>/dev/null`; do
1756 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1757 a.out ) # We found the default executable, but exeext='' is most
1760 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1761 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1768 echo "$as_me: failed program was:" >&5
1769 cat conftest.$ac_ext >&5
1770 { { echo "$as_me:1770: error: C compiler cannot create executables" >&5
1771 echo "$as_me: error: C compiler cannot create executables" >&2;}
1772 { (exit 77); exit 77; }; }
1775 ac_exeext=$ac_cv_exeext
1776 echo "$as_me:1776: result: $ac_file" >&5
1777 echo "${ECHO_T}$ac_file" >&6
1779 # Check the compiler produces executables we can run. If not, either
1780 # the compiler is broken, or we cross compile.
1781 echo "$as_me:1781: checking whether the C compiler works" >&5
1782 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1783 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1784 # If not cross compiling, check that we can run a simple program.
1785 if test "$cross_compiling" != yes; then
1786 if { ac_try='./$ac_file'
1787 { (eval echo "$as_me:1787: \"$ac_try\"") >&5
1790 echo "$as_me:1790: \$? = $ac_status" >&5
1791 (exit $ac_status); }; }; then
1794 if test "$cross_compiling" = maybe; then
1797 { { echo "$as_me:1797: error: cannot run C compiled programs.
1798 If you meant to cross compile, use \`--host'." >&5
1799 echo "$as_me: error: cannot run C compiled programs.
1800 If you meant to cross compile, use \`--host'." >&2;}
1801 { (exit 1); exit 1; }; }
1805 echo "$as_me:1805: result: yes" >&5
1806 echo "${ECHO_T}yes" >&6
1808 rm -f a.out a.exe conftest$ac_cv_exeext
1809 ac_clean_files=$ac_clean_files_save
1810 # Check the compiler produces executables we can run. If not, either
1811 # the compiler is broken, or we cross compile.
1812 echo "$as_me:1812: checking whether we are cross compiling" >&5
1813 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1814 echo "$as_me:1814: result: $cross_compiling" >&5
1815 echo "${ECHO_T}$cross_compiling" >&6
1817 echo "$as_me:1817: checking for executable suffix" >&5
1818 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1819 if { (eval echo "$as_me:1819: \"$ac_link\"") >&5
1820 (eval $ac_link) 2>&5
1822 echo "$as_me:1822: \$? = $ac_status" >&5
1823 (exit $ac_status); }; then
1824 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1825 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1826 # work properly (i.e., refer to `conftest.exe'), while it won't with
1828 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1830 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1831 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1838 { { echo "$as_me:1838: error: cannot compute EXEEXT: cannot compile and link" >&5
1839 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1840 { (exit 1); exit 1; }; }
1843 rm -f conftest$ac_cv_exeext
1844 echo "$as_me:1844: result: $ac_cv_exeext" >&5
1845 echo "${ECHO_T}$ac_cv_exeext" >&6
1847 rm -f conftest.$ac_ext
1848 EXEEXT=$ac_cv_exeext
1850 echo "$as_me:1850: checking for object suffix" >&5
1851 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1852 if test "${ac_cv_objext+set}" = set; then
1853 echo $ECHO_N "(cached) $ECHO_C" >&6
1855 cat >conftest.$ac_ext <<_ACEOF
1856 #line 1856 "configure"
1857 #include "confdefs.h"
1867 rm -f conftest.o conftest.obj
1868 if { (eval echo "$as_me:1868: \"$ac_compile\"") >&5
1869 (eval $ac_compile) 2>&5
1871 echo "$as_me:1871: \$? = $ac_status" >&5
1872 (exit $ac_status); }; then
1873 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1875 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1876 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1881 echo "$as_me: failed program was:" >&5
1882 cat conftest.$ac_ext >&5
1883 { { echo "$as_me:1883: error: cannot compute OBJEXT: cannot compile" >&5
1884 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1885 { (exit 1); exit 1; }; }
1888 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1890 echo "$as_me:1890: result: $ac_cv_objext" >&5
1891 echo "${ECHO_T}$ac_cv_objext" >&6
1892 OBJEXT=$ac_cv_objext
1894 echo "$as_me:1894: checking whether we are using the GNU C compiler" >&5
1895 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1896 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1897 echo $ECHO_N "(cached) $ECHO_C" >&6
1899 cat >conftest.$ac_ext <<_ACEOF
1900 #line 1900 "configure"
1901 #include "confdefs.h"
1914 rm -f conftest.$ac_objext
1915 if { (eval echo "$as_me:1915: \"$ac_compile\"") >&5
1916 (eval $ac_compile) 2>&5
1918 echo "$as_me:1918: \$? = $ac_status" >&5
1919 (exit $ac_status); } &&
1920 { ac_try='test -s conftest.$ac_objext'
1921 { (eval echo "$as_me:1921: \"$ac_try\"") >&5
1924 echo "$as_me:1924: \$? = $ac_status" >&5
1925 (exit $ac_status); }; }; then
1928 echo "$as_me: failed program was:" >&5
1929 cat conftest.$ac_ext >&5
1932 rm -f conftest.$ac_objext conftest.$ac_ext
1933 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1936 echo "$as_me:1936: result: $ac_cv_c_compiler_gnu" >&5
1937 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1938 GCC=`test $ac_compiler_gnu = yes && echo yes`
1939 ac_test_CFLAGS=${CFLAGS+set}
1940 ac_save_CFLAGS=$CFLAGS
1942 echo "$as_me:1942: checking whether $CC accepts -g" >&5
1943 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1944 if test "${ac_cv_prog_cc_g+set}" = set; then
1945 echo $ECHO_N "(cached) $ECHO_C" >&6
1947 cat >conftest.$ac_ext <<_ACEOF
1948 #line 1948 "configure"
1949 #include "confdefs.h"
1959 rm -f conftest.$ac_objext
1960 if { (eval echo "$as_me:1960: \"$ac_compile\"") >&5
1961 (eval $ac_compile) 2>&5
1963 echo "$as_me:1963: \$? = $ac_status" >&5
1964 (exit $ac_status); } &&
1965 { ac_try='test -s conftest.$ac_objext'
1966 { (eval echo "$as_me:1966: \"$ac_try\"") >&5
1969 echo "$as_me:1969: \$? = $ac_status" >&5
1970 (exit $ac_status); }; }; then
1973 echo "$as_me: failed program was:" >&5
1974 cat conftest.$ac_ext >&5
1977 rm -f conftest.$ac_objext conftest.$ac_ext
1979 echo "$as_me:1979: result: $ac_cv_prog_cc_g" >&5
1980 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1981 if test "$ac_test_CFLAGS" = set; then
1982 CFLAGS=$ac_save_CFLAGS
1983 elif test $ac_cv_prog_cc_g = yes; then
1984 if test "$GCC" = yes; then
1990 if test "$GCC" = yes; then
1996 # Some people use a C++ compiler to compile C. Since we use `exit',
1997 # in C++ we need to declare it. In case someone uses the same compiler
1998 # for both compiling C and C++ we need to have the C++ compiler decide
1999 # the declaration of exit, since it's the most demanding environment.
2000 cat >conftest.$ac_ext <<_ACEOF
2005 rm -f conftest.$ac_objext
2006 if { (eval echo "$as_me:2006: \"$ac_compile\"") >&5
2007 (eval $ac_compile) 2>&5
2009 echo "$as_me:2009: \$? = $ac_status" >&5
2010 (exit $ac_status); } &&
2011 { ac_try='test -s conftest.$ac_objext'
2012 { (eval echo "$as_me:2012: \"$ac_try\"") >&5
2015 echo "$as_me:2015: \$? = $ac_status" >&5
2016 (exit $ac_status); }; }; then
2017 for ac_declaration in \
2019 '#include <stdlib.h>' \
2020 'extern "C" void std::exit (int) throw (); using std::exit;' \
2021 'extern "C" void std::exit (int); using std::exit;' \
2022 'extern "C" void exit (int) throw ();' \
2023 'extern "C" void exit (int);' \
2026 cat >conftest.$ac_ext <<_ACEOF
2027 #line 2027 "configure"
2028 #include "confdefs.h"
2039 rm -f conftest.$ac_objext
2040 if { (eval echo "$as_me:2040: \"$ac_compile\"") >&5
2041 (eval $ac_compile) 2>&5
2043 echo "$as_me:2043: \$? = $ac_status" >&5
2044 (exit $ac_status); } &&
2045 { ac_try='test -s conftest.$ac_objext'
2046 { (eval echo "$as_me:2046: \"$ac_try\"") >&5
2049 echo "$as_me:2049: \$? = $ac_status" >&5
2050 (exit $ac_status); }; }; then
2053 echo "$as_me: failed program was:" >&5
2054 cat conftest.$ac_ext >&5
2057 rm -f conftest.$ac_objext conftest.$ac_ext
2058 cat >conftest.$ac_ext <<_ACEOF
2059 #line 2059 "configure"
2060 #include "confdefs.h"
2070 rm -f conftest.$ac_objext
2071 if { (eval echo "$as_me:2071: \"$ac_compile\"") >&5
2072 (eval $ac_compile) 2>&5
2074 echo "$as_me:2074: \$? = $ac_status" >&5
2075 (exit $ac_status); } &&
2076 { ac_try='test -s conftest.$ac_objext'
2077 { (eval echo "$as_me:2077: \"$ac_try\"") >&5
2080 echo "$as_me:2080: \$? = $ac_status" >&5
2081 (exit $ac_status); }; }; then
2084 echo "$as_me: failed program was:" >&5
2085 cat conftest.$ac_ext >&5
2087 rm -f conftest.$ac_objext conftest.$ac_ext
2090 if test -n "$ac_declaration"; then
2091 echo '#ifdef __cplusplus' >>confdefs.h
2092 echo $ac_declaration >>confdefs.h
2093 echo '#endif' >>confdefs.h
2097 echo "$as_me: failed program was:" >&5
2098 cat conftest.$ac_ext >&5
2100 rm -f conftest.$ac_objext conftest.$ac_ext
2102 ac_cpp='$CPP $CPPFLAGS'
2103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2106 ac_main_return=return
2109 if test "$GCC" = yes ; then
2110 echo "$as_me:2110: checking version of $CC" >&5
2111 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2112 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2113 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2114 echo "$as_me:2114: result: $GCC_VERSION" >&5
2115 echo "${ECHO_T}$GCC_VERSION" >&6
2119 ac_cpp='$CPP $CPPFLAGS'
2120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2123 ac_main_return=return
2124 echo "$as_me:2124: checking how to run the C preprocessor" >&5
2125 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2126 # On Suns, sometimes $CPP names a directory.
2127 if test -n "$CPP" && test -d "$CPP"; then
2130 if test -z "$CPP"; then
2131 if test "${ac_cv_prog_CPP+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
2134 # Double quotes because CPP needs to be expanded
2135 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2138 for ac_c_preproc_warn_flag in '' yes
2140 # Use a header file that comes with gcc, so configuring glibc
2141 # with a fresh cross-compiler works.
2142 # On the NeXT, cc -E runs the code through the compiler's parser,
2143 # not just through cpp. "Syntax error" is here to catch this case.
2144 cat >conftest.$ac_ext <<_ACEOF
2145 #line 2145 "configure"
2146 #include "confdefs.h"
2150 if { (eval echo "$as_me:2150: \"$ac_cpp conftest.$ac_ext\"") >&5
2151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2153 egrep -v '^ *\+' conftest.er1 >conftest.err
2155 cat conftest.err >&5
2156 echo "$as_me:2156: \$? = $ac_status" >&5
2157 (exit $ac_status); } >/dev/null; then
2158 if test -s conftest.err; then
2159 ac_cpp_err=$ac_c_preproc_warn_flag
2166 if test -z "$ac_cpp_err"; then
2169 echo "$as_me: failed program was:" >&5
2170 cat conftest.$ac_ext >&5
2171 # Broken: fails on valid input.
2174 rm -f conftest.err conftest.$ac_ext
2176 # OK, works on sane cases. Now check whether non-existent headers
2177 # can be detected and how.
2178 cat >conftest.$ac_ext <<_ACEOF
2179 #line 2179 "configure"
2180 #include "confdefs.h"
2181 #include <ac_nonexistent.h>
2183 if { (eval echo "$as_me:2183: \"$ac_cpp conftest.$ac_ext\"") >&5
2184 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2186 egrep -v '^ *\+' conftest.er1 >conftest.err
2188 cat conftest.err >&5
2189 echo "$as_me:2189: \$? = $ac_status" >&5
2190 (exit $ac_status); } >/dev/null; then
2191 if test -s conftest.err; then
2192 ac_cpp_err=$ac_c_preproc_warn_flag
2199 if test -z "$ac_cpp_err"; then
2200 # Broken: success on invalid input.
2203 echo "$as_me: failed program was:" >&5
2204 cat conftest.$ac_ext >&5
2205 # Passes both tests.
2209 rm -f conftest.err conftest.$ac_ext
2212 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2213 rm -f conftest.err conftest.$ac_ext
2214 if $ac_preproc_ok; then
2226 echo "$as_me:2226: result: $CPP" >&5
2227 echo "${ECHO_T}$CPP" >&6
2229 for ac_c_preproc_warn_flag in '' yes
2231 # Use a header file that comes with gcc, so configuring glibc
2232 # with a fresh cross-compiler works.
2233 # On the NeXT, cc -E runs the code through the compiler's parser,
2234 # not just through cpp. "Syntax error" is here to catch this case.
2235 cat >conftest.$ac_ext <<_ACEOF
2236 #line 2236 "configure"
2237 #include "confdefs.h"
2241 if { (eval echo "$as_me:2241: \"$ac_cpp conftest.$ac_ext\"") >&5
2242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2244 egrep -v '^ *\+' conftest.er1 >conftest.err
2246 cat conftest.err >&5
2247 echo "$as_me:2247: \$? = $ac_status" >&5
2248 (exit $ac_status); } >/dev/null; then
2249 if test -s conftest.err; then
2250 ac_cpp_err=$ac_c_preproc_warn_flag
2257 if test -z "$ac_cpp_err"; then
2260 echo "$as_me: failed program was:" >&5
2261 cat conftest.$ac_ext >&5
2262 # Broken: fails on valid input.
2265 rm -f conftest.err conftest.$ac_ext
2267 # OK, works on sane cases. Now check whether non-existent headers
2268 # can be detected and how.
2269 cat >conftest.$ac_ext <<_ACEOF
2270 #line 2270 "configure"
2271 #include "confdefs.h"
2272 #include <ac_nonexistent.h>
2274 if { (eval echo "$as_me:2274: \"$ac_cpp conftest.$ac_ext\"") >&5
2275 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2277 egrep -v '^ *\+' conftest.er1 >conftest.err
2279 cat conftest.err >&5
2280 echo "$as_me:2280: \$? = $ac_status" >&5
2281 (exit $ac_status); } >/dev/null; then
2282 if test -s conftest.err; then
2283 ac_cpp_err=$ac_c_preproc_warn_flag
2290 if test -z "$ac_cpp_err"; then
2291 # Broken: success on invalid input.
2294 echo "$as_me: failed program was:" >&5
2295 cat conftest.$ac_ext >&5
2296 # Passes both tests.
2300 rm -f conftest.err conftest.$ac_ext
2303 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2304 rm -f conftest.err conftest.$ac_ext
2305 if $ac_preproc_ok; then
2308 { { echo "$as_me:2308: error: C preprocessor \"$CPP\" fails sanity check" >&5
2309 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2310 { (exit 1); exit 1; }; }
2314 ac_cpp='$CPP $CPPFLAGS'
2315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2318 ac_main_return=return
2320 if test $ac_cv_c_compiler_gnu = yes; then
2321 echo "$as_me:2321: checking whether $CC needs -traditional" >&5
2322 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2323 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2324 echo $ECHO_N "(cached) $ECHO_C" >&6
2326 ac_pattern="Autoconf.*'x'"
2327 cat >conftest.$ac_ext <<_ACEOF
2328 #line 2328 "configure"
2329 #include "confdefs.h"
2331 int Autoconf = TIOCGETP;
2333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2334 egrep "$ac_pattern" >/dev/null 2>&1; then
2335 ac_cv_prog_gcc_traditional=yes
2337 ac_cv_prog_gcc_traditional=no
2341 if test $ac_cv_prog_gcc_traditional = no; then
2342 cat >conftest.$ac_ext <<_ACEOF
2343 #line 2343 "configure"
2344 #include "confdefs.h"
2346 int Autoconf = TCGETA;
2348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2349 egrep "$ac_pattern" >/dev/null 2>&1; then
2350 ac_cv_prog_gcc_traditional=yes
2356 echo "$as_me:2356: result: $ac_cv_prog_gcc_traditional" >&5
2357 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2358 if test $ac_cv_prog_gcc_traditional = yes; then
2359 CC="$CC -traditional"
2363 echo "$as_me:2363: checking whether $CC understands -c and -o together" >&5
2364 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2365 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 cat > conftest.$ac_ext <<CF_EOF
2373 ${cf_cv_main_return:-return}(0);
2376 # We do the test twice because some compilers refuse to overwrite an
2377 # existing .o file with -o, though they will create one.
2378 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2379 if { (eval echo "$as_me:2379: \"$ac_try\"") >&5
2382 echo "$as_me:2382: \$? = $ac_status" >&5
2383 (exit $ac_status); } &&
2384 test -f conftest2.$ac_objext && { (eval echo "$as_me:2384: \"$ac_try\"") >&5
2387 echo "$as_me:2387: \$? = $ac_status" >&5
2388 (exit $ac_status); };
2390 eval cf_cv_prog_CC_c_o=yes
2392 eval cf_cv_prog_CC_c_o=no
2397 if test $cf_cv_prog_CC_c_o = yes; then
2398 echo "$as_me:2398: result: yes" >&5
2399 echo "${ECHO_T}yes" >&6
2401 echo "$as_me:2401: result: no" >&5
2402 echo "${ECHO_T}no" >&6
2405 echo "$as_me:2405: checking for POSIXized ISC" >&5
2406 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2407 if test -d /etc/conf/kconfig.d &&
2408 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2410 echo "$as_me:2410: result: yes" >&5
2411 echo "${ECHO_T}yes" >&6
2412 ISC=yes # If later tests want to check for ISC.
2414 cat >>confdefs.h <<\EOF
2415 #define _POSIX_SOURCE 1
2418 if test "$GCC" = yes; then
2424 echo "$as_me:2424: result: no" >&5
2425 echo "${ECHO_T}no" >&6
2429 # This should have been defined by AC_PROG_CC
2432 # Check for user's environment-breakage by stuffing CFLAGS/CPPFLAGS content
2433 # into CC. This will not help with broken scripts that wrap the compiler with
2434 # options, but eliminates a more common category of user confusion.
2435 echo "$as_me:2435: checking \$CC variable" >&5
2436 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2439 echo "$as_me:2439: result: broken" >&5
2440 echo "${ECHO_T}broken" >&6
2441 { echo "$as_me:2441: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2442 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2444 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
2445 CC=`echo "$CC" | sed -e 's/[ ].*//'`
2450 cf_new_extra_cppflags=
2452 for cf_add_cflags in $cf_flags
2454 case $cf_fix_cppflags in
2456 case $cf_add_cflags in #(vi
2457 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2458 case $cf_add_cflags in
2460 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2462 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2463 && test -z "${cf_tst_cflags}" \
2464 && cf_fix_cppflags=yes
2466 if test $cf_fix_cppflags = yes ; then
2467 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2469 elif test "${cf_tst_cflags}" = "\"'" ; then
2470 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2476 *$cf_add_cflags) #(vi
2479 case $cf_add_cflags in #(vi
2481 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2483 CPPFLAGS=`echo "$CPPFLAGS" | \
2484 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2485 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2489 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2494 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2499 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2501 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2503 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2504 && test -z "${cf_tst_cflags}" \
2505 && cf_fix_cppflags=no
2510 if test -n "$cf_new_cflags" ; then
2512 CFLAGS="$CFLAGS $cf_new_cflags"
2515 if test -n "$cf_new_cppflags" ; then
2517 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2520 if test -n "$cf_new_extra_cppflags" ; then
2522 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2527 echo "$as_me:2527: result: ok" >&5
2528 echo "${ECHO_T}ok" >&6
2532 echo "$as_me:2532: checking for ${CC:-cc} option to accept ANSI C" >&5
2533 echo $ECHO_N "checking for ${CC:-cc} option to accept ANSI C... $ECHO_C" >&6
2534 if test "${cf_cv_ansi_cc+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
2539 cf_save_CFLAGS="$CFLAGS"
2540 cf_save_CPPFLAGS="$CPPFLAGS"
2541 # Don't try gcc -ansi; that turns off useful extensions and
2542 # breaks some systems' header files.
2543 # AIX -qlanglvl=ansi
2544 # Ultrix and OSF/1 -std1
2545 # HP-UX -Aa -D_HPUX_SOURCE
2547 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2548 for cf_arg in "-DCC_HAS_PROTOS" \
2553 "-Aa -D_HPUX_SOURCE" \
2560 cf_new_extra_cppflags=
2562 for cf_add_cflags in $cf_arg
2564 case $cf_fix_cppflags in
2566 case $cf_add_cflags in #(vi
2567 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2568 case $cf_add_cflags in
2570 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2572 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2573 && test -z "${cf_tst_cflags}" \
2574 && cf_fix_cppflags=yes
2576 if test $cf_fix_cppflags = yes ; then
2577 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2579 elif test "${cf_tst_cflags}" = "\"'" ; then
2580 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2586 *$cf_add_cflags) #(vi
2589 case $cf_add_cflags in #(vi
2591 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2593 CPPFLAGS=`echo "$CPPFLAGS" | \
2594 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2595 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2599 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2604 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2609 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2611 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2613 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2614 && test -z "${cf_tst_cflags}" \
2615 && cf_fix_cppflags=no
2620 if test -n "$cf_new_cflags" ; then
2622 CFLAGS="$CFLAGS $cf_new_cflags"
2625 if test -n "$cf_new_cppflags" ; then
2627 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2630 if test -n "$cf_new_extra_cppflags" ; then
2632 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2635 cat >conftest.$ac_ext <<_ACEOF
2636 #line 2636 "configure"
2637 #include "confdefs.h"
2639 #ifndef CC_HAS_PROTOS
2640 #if !defined(__STDC__) || (__STDC__ != 1)
2649 int test (int i, double x);
2650 struct s1 {int (*f) (int a);};
2651 struct s2 {int (*f) (double a);};
2656 rm -f conftest.$ac_objext
2657 if { (eval echo "$as_me:2657: \"$ac_compile\"") >&5
2658 (eval $ac_compile) 2>&5
2660 echo "$as_me:2660: \$? = $ac_status" >&5
2661 (exit $ac_status); } &&
2662 { ac_try='test -s conftest.$ac_objext'
2663 { (eval echo "$as_me:2663: \"$ac_try\"") >&5
2666 echo "$as_me:2666: \$? = $ac_status" >&5
2667 (exit $ac_status); }; }; then
2668 cf_cv_ansi_cc="$cf_arg"; break
2670 echo "$as_me: failed program was:" >&5
2671 cat conftest.$ac_ext >&5
2673 rm -f conftest.$ac_objext conftest.$ac_ext
2675 CFLAGS="$cf_save_CFLAGS"
2676 CPPFLAGS="$cf_save_CPPFLAGS"
2679 echo "$as_me:2679: result: $cf_cv_ansi_cc" >&5
2680 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2682 if test "$cf_cv_ansi_cc" != "no"; then
2683 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2688 cf_new_extra_cppflags=
2690 for cf_add_cflags in $cf_cv_ansi_cc
2692 case $cf_fix_cppflags in
2694 case $cf_add_cflags in #(vi
2695 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2696 case $cf_add_cflags in
2698 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2700 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2701 && test -z "${cf_tst_cflags}" \
2702 && cf_fix_cppflags=yes
2704 if test $cf_fix_cppflags = yes ; then
2705 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2707 elif test "${cf_tst_cflags}" = "\"'" ; then
2708 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2714 *$cf_add_cflags) #(vi
2717 case $cf_add_cflags in #(vi
2719 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2721 CPPFLAGS=`echo "$CPPFLAGS" | \
2722 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2723 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2727 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2732 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2737 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2739 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2741 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2742 && test -z "${cf_tst_cflags}" \
2743 && cf_fix_cppflags=no
2748 if test -n "$cf_new_cflags" ; then
2750 CFLAGS="$CFLAGS $cf_new_cflags"
2753 if test -n "$cf_new_cppflags" ; then
2755 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2758 if test -n "$cf_new_extra_cppflags" ; then
2760 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2764 cat >>confdefs.h <<\EOF
2765 #define CC_HAS_PROTOS 1
2771 if test "$cf_cv_ansi_cc" = "no"; then
2772 { { echo "$as_me:2772: error: Your compiler does not appear to recognize prototypes.
2773 You have the following choices:
2774 a. adjust your compiler options
2775 b. get an up-to-date compiler
2776 c. use a wrapper such as unproto" >&5
2777 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2778 You have the following choices:
2779 a. adjust your compiler options
2780 b. get an up-to-date compiler
2781 c. use a wrapper such as unproto" >&2;}
2782 { (exit 1); exit 1; }; }
2785 case $cf_cv_system_name in
2787 CFLAGS="$CFLAGS -Zmt"
2788 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2789 CXXFLAGS="$CXXFLAGS -Zmt"
2790 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2791 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2798 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2799 #define PROG_EXT "$PROG_EXT"
2802 if test "$cross_compiling" = yes ; then
2805 case "$cf_cv_system_name" in #(vi
2806 dragonfly*|mirbsd*|freebsd*) #(vi
2807 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2809 *) LDPATH=$PATH:/sbin:/usr/sbin
2810 # Extract the first word of "ldconfig", so it can be a program name with args.
2811 set dummy ldconfig; ac_word=$2
2812 echo "$as_me:2812: checking for $ac_word" >&5
2813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2814 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2815 echo $ECHO_N "(cached) $ECHO_C" >&6
2819 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2822 ac_save_IFS=$IFS; IFS=$ac_path_separator
2824 for ac_dir in $ac_dummy; do
2826 test -z "$ac_dir" && ac_dir=.
2827 if $as_executable_p "$ac_dir/$ac_word"; then
2828 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2829 echo "$as_me:2829: found $ac_dir/$ac_word" >&5
2837 LDCONFIG=$ac_cv_path_LDCONFIG
2839 if test -n "$LDCONFIG"; then
2840 echo "$as_me:2840: result: $LDCONFIG" >&5
2841 echo "${ECHO_T}$LDCONFIG" >&6
2843 echo "$as_me:2843: result: no" >&5
2844 echo "${ECHO_T}no" >&6
2851 echo "$as_me:2851: checking if you want to ensure bool is consistent with C++" >&5
2852 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2854 # Check whether --with-cxx or --without-cxx was given.
2855 if test "${with_cxx+set}" = set; then
2857 cf_with_cxx=$withval
2861 echo "$as_me:2861: result: $cf_with_cxx" >&5
2862 echo "${ECHO_T}$cf_with_cxx" >&6
2863 if test "X$cf_with_cxx" = Xno ; then
2867 # with autoconf 2.13, we can change the error to a warning:
2869 ac_cpp='$CXXCPP $CPPFLAGS'
2870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2873 ac_main_return=return
2874 if test -n "$ac_tool_prefix"; then
2875 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2877 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2878 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2879 echo "$as_me:2879: checking for $ac_word" >&5
2880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2881 if test "${ac_cv_prog_CXX+set}" = set; then
2882 echo $ECHO_N "(cached) $ECHO_C" >&6
2884 if test -n "$CXX"; then
2885 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2887 ac_save_IFS=$IFS; IFS=$ac_path_separator
2889 for ac_dir in $ac_dummy; do
2891 test -z "$ac_dir" && ac_dir=.
2892 $as_executable_p "$ac_dir/$ac_word" || continue
2893 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2894 echo "$as_me:2894: found $ac_dir/$ac_word" >&5
2901 if test -n "$CXX"; then
2902 echo "$as_me:2902: result: $CXX" >&5
2903 echo "${ECHO_T}$CXX" >&6
2905 echo "$as_me:2905: result: no" >&5
2906 echo "${ECHO_T}no" >&6
2909 test -n "$CXX" && break
2912 if test -z "$CXX"; then
2914 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2916 # Extract the first word of "$ac_prog", so it can be a program name with args.
2917 set dummy $ac_prog; ac_word=$2
2918 echo "$as_me:2918: checking for $ac_word" >&5
2919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2920 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2921 echo $ECHO_N "(cached) $ECHO_C" >&6
2923 if test -n "$ac_ct_CXX"; then
2924 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2926 ac_save_IFS=$IFS; IFS=$ac_path_separator
2928 for ac_dir in $ac_dummy; do
2930 test -z "$ac_dir" && ac_dir=.
2931 $as_executable_p "$ac_dir/$ac_word" || continue
2932 ac_cv_prog_ac_ct_CXX="$ac_prog"
2933 echo "$as_me:2933: found $ac_dir/$ac_word" >&5
2939 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2940 if test -n "$ac_ct_CXX"; then
2941 echo "$as_me:2941: result: $ac_ct_CXX" >&5
2942 echo "${ECHO_T}$ac_ct_CXX" >&6
2944 echo "$as_me:2944: result: no" >&5
2945 echo "${ECHO_T}no" >&6
2948 test -n "$ac_ct_CXX" && break
2950 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2955 # Provide some information about the compiler.
2956 echo "$as_me:2956:" \
2957 "checking for C++ compiler version" >&5
2958 ac_compiler=`set X $ac_compile; echo $2`
2959 { (eval echo "$as_me:2959: \"$ac_compiler --version </dev/null >&5\"") >&5
2960 (eval $ac_compiler --version </dev/null >&5) 2>&5
2962 echo "$as_me:2962: \$? = $ac_status" >&5
2963 (exit $ac_status); }
2964 { (eval echo "$as_me:2964: \"$ac_compiler -v </dev/null >&5\"") >&5
2965 (eval $ac_compiler -v </dev/null >&5) 2>&5
2967 echo "$as_me:2967: \$? = $ac_status" >&5
2968 (exit $ac_status); }
2969 { (eval echo "$as_me:2969: \"$ac_compiler -V </dev/null >&5\"") >&5
2970 (eval $ac_compiler -V </dev/null >&5) 2>&5
2972 echo "$as_me:2972: \$? = $ac_status" >&5
2973 (exit $ac_status); }
2975 echo "$as_me:2975: checking whether we are using the GNU C++ compiler" >&5
2976 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2977 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2978 echo $ECHO_N "(cached) $ECHO_C" >&6
2980 cat >conftest.$ac_ext <<_ACEOF
2981 #line 2981 "configure"
2982 #include "confdefs.h"
2995 rm -f conftest.$ac_objext
2996 if { (eval echo "$as_me:2996: \"$ac_compile\"") >&5
2997 (eval $ac_compile) 2>&5
2999 echo "$as_me:2999: \$? = $ac_status" >&5
3000 (exit $ac_status); } &&
3001 { ac_try='test -s conftest.$ac_objext'
3002 { (eval echo "$as_me:3002: \"$ac_try\"") >&5
3005 echo "$as_me:3005: \$? = $ac_status" >&5
3006 (exit $ac_status); }; }; then
3009 echo "$as_me: failed program was:" >&5
3010 cat conftest.$ac_ext >&5
3013 rm -f conftest.$ac_objext conftest.$ac_ext
3014 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3017 echo "$as_me:3017: result: $ac_cv_cxx_compiler_gnu" >&5
3018 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3019 GXX=`test $ac_compiler_gnu = yes && echo yes`
3020 ac_test_CXXFLAGS=${CXXFLAGS+set}
3021 ac_save_CXXFLAGS=$CXXFLAGS
3023 echo "$as_me:3023: checking whether $CXX accepts -g" >&5
3024 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3025 if test "${ac_cv_prog_cxx_g+set}" = set; then
3026 echo $ECHO_N "(cached) $ECHO_C" >&6
3028 cat >conftest.$ac_ext <<_ACEOF
3029 #line 3029 "configure"
3030 #include "confdefs.h"
3040 rm -f conftest.$ac_objext
3041 if { (eval echo "$as_me:3041: \"$ac_compile\"") >&5
3042 (eval $ac_compile) 2>&5
3044 echo "$as_me:3044: \$? = $ac_status" >&5
3045 (exit $ac_status); } &&
3046 { ac_try='test -s conftest.$ac_objext'
3047 { (eval echo "$as_me:3047: \"$ac_try\"") >&5
3050 echo "$as_me:3050: \$? = $ac_status" >&5
3051 (exit $ac_status); }; }; then
3052 ac_cv_prog_cxx_g=yes
3054 echo "$as_me: failed program was:" >&5
3055 cat conftest.$ac_ext >&5
3058 rm -f conftest.$ac_objext conftest.$ac_ext
3060 echo "$as_me:3060: result: $ac_cv_prog_cxx_g" >&5
3061 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3062 if test "$ac_test_CXXFLAGS" = set; then
3063 CXXFLAGS=$ac_save_CXXFLAGS
3064 elif test $ac_cv_prog_cxx_g = yes; then
3065 if test "$GXX" = yes; then
3071 if test "$GXX" = yes; then
3077 for ac_declaration in \
3079 '#include <stdlib.h>' \
3080 'extern "C" void std::exit (int) throw (); using std::exit;' \
3081 'extern "C" void std::exit (int); using std::exit;' \
3082 'extern "C" void exit (int) throw ();' \
3083 'extern "C" void exit (int);' \
3086 cat >conftest.$ac_ext <<_ACEOF
3087 #line 3087 "configure"
3088 #include "confdefs.h"
3099 rm -f conftest.$ac_objext
3100 if { (eval echo "$as_me:3100: \"$ac_compile\"") >&5
3101 (eval $ac_compile) 2>&5
3103 echo "$as_me:3103: \$? = $ac_status" >&5
3104 (exit $ac_status); } &&
3105 { ac_try='test -s conftest.$ac_objext'
3106 { (eval echo "$as_me:3106: \"$ac_try\"") >&5
3109 echo "$as_me:3109: \$? = $ac_status" >&5
3110 (exit $ac_status); }; }; then
3113 echo "$as_me: failed program was:" >&5
3114 cat conftest.$ac_ext >&5
3117 rm -f conftest.$ac_objext conftest.$ac_ext
3118 cat >conftest.$ac_ext <<_ACEOF
3119 #line 3119 "configure"
3120 #include "confdefs.h"
3130 rm -f conftest.$ac_objext
3131 if { (eval echo "$as_me:3131: \"$ac_compile\"") >&5
3132 (eval $ac_compile) 2>&5
3134 echo "$as_me:3134: \$? = $ac_status" >&5
3135 (exit $ac_status); } &&
3136 { ac_try='test -s conftest.$ac_objext'
3137 { (eval echo "$as_me:3137: \"$ac_try\"") >&5
3140 echo "$as_me:3140: \$? = $ac_status" >&5
3141 (exit $ac_status); }; }; then
3144 echo "$as_me: failed program was:" >&5
3145 cat conftest.$ac_ext >&5
3147 rm -f conftest.$ac_objext conftest.$ac_ext
3150 if test -n "$ac_declaration"; then
3151 echo '#ifdef __cplusplus' >>confdefs.h
3152 echo $ac_declaration >>confdefs.h
3153 echo '#endif' >>confdefs.h
3157 ac_cpp='$CPP $CPPFLAGS'
3158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3161 ac_main_return=return
3163 # autoconf 2.5x removed the error - by hardcoding it to g++.
3164 if test "$CXX" = "g++" ; then
3165 # Extract the first word of "g++", so it can be a program name with args.
3166 set dummy g++; ac_word=$2
3167 echo "$as_me:3167: checking for $ac_word" >&5
3168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3169 if test "${ac_cv_path_CXX+set}" = set; then
3170 echo $ECHO_N "(cached) $ECHO_C" >&6
3174 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3177 ac_save_IFS=$IFS; IFS=$ac_path_separator
3179 for ac_dir in $ac_dummy; do
3181 test -z "$ac_dir" && ac_dir=.
3182 if $as_executable_p "$ac_dir/$ac_word"; then
3183 ac_cv_path_CXX="$ac_dir/$ac_word"
3184 echo "$as_me:3184: found $ac_dir/$ac_word" >&5
3194 if test -n "$CXX"; then
3195 echo "$as_me:3195: result: $CXX" >&5
3196 echo "${ECHO_T}$CXX" >&6
3198 echo "$as_me:3198: result: no" >&5
3199 echo "${ECHO_T}no" >&6
3203 if test "$CXX" = "g++" ; then
3204 { echo "$as_me:3204: WARNING: ignoring hardcoded g++" >&5
3205 echo "$as_me: WARNING: ignoring hardcoded g++" >&2;}
3206 cf_with_cxx=no; CXX=""; GXX="";
3211 if test "$GXX" = yes; then
3212 echo "$as_me:3212: checking version of g++" >&5
3213 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
3214 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3215 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3216 echo "$as_me:3216: result: $GXX_VERSION" >&5
3217 echo "${ECHO_T}$GXX_VERSION" >&6
3220 case $GXX_VERSION in
3222 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3224 { echo "$as_me:3224: WARNING: templates do not work" >&5
3225 echo "$as_me: WARNING: templates do not work" >&2;}
3229 echo "$as_me:3229: checking if you want to build C++ binding and demo" >&5
3230 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3232 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3233 if test "${with_cxx_binding+set}" = set; then
3234 withval="$with_cxx_binding"
3235 cf_with_cxx_binding=$withval
3237 cf_with_cxx_binding=$cf_with_cxx
3239 echo "$as_me:3239: result: $cf_with_cxx_binding" >&5
3240 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3242 echo "$as_me:3242: checking if you want to build with Ada95" >&5
3243 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3245 # Check whether --with-ada or --without-ada was given.
3246 if test "${with_ada+set}" = set; then
3248 cf_with_ada=$withval
3252 echo "$as_me:3252: result: $cf_with_ada" >&5
3253 echo "${ECHO_T}$cf_with_ada" >&6
3255 echo "$as_me:3255: checking if you want to install manpages" >&5
3256 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3258 # Check whether --with-manpages or --without-manpages was given.
3259 if test "${with_manpages+set}" = set; then
3260 withval="$with_manpages"
3261 cf_with_manpages=$withval
3263 cf_with_manpages=yes
3265 echo "$as_me:3265: result: $cf_with_manpages" >&5
3266 echo "${ECHO_T}$cf_with_manpages" >&6
3268 echo "$as_me:3268: checking if you want to build programs such as tic" >&5
3269 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3271 # Check whether --with-progs or --without-progs was given.
3272 if test "${with_progs+set}" = set; then
3273 withval="$with_progs"
3274 cf_with_progs=$withval
3278 echo "$as_me:3278: result: $cf_with_progs" >&5
3279 echo "${ECHO_T}$cf_with_progs" >&6
3281 echo "$as_me:3281: checking if you want to build test-programs" >&5
3282 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3284 # Check whether --with-tests or --without-tests was given.
3285 if test "${with_tests+set}" = set; then
3286 withval="$with_tests"
3287 cf_with_tests=$withval
3291 echo "$as_me:3291: result: $cf_with_tests" >&5
3292 echo "${ECHO_T}$cf_with_tests" >&6
3294 echo "$as_me:3294: checking if you wish to install curses.h" >&5
3295 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3297 # Check whether --with-curses-h or --without-curses-h was given.
3298 if test "${with_curses_h+set}" = set; then
3299 withval="$with_curses_h"
3300 with_curses_h=$withval
3304 echo "$as_me:3304: result: $with_curses_h" >&5
3305 echo "${ECHO_T}$with_curses_h" >&6
3307 modules_to_build="ncurses"
3308 if test "X$cf_with_progs" != Xno ; then
3309 modules_to_build="$modules_to_build progs tack"
3311 modules_to_build="$modules_to_build panel menu form"
3313 test "$program_prefix" != NONE &&
3314 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3315 # Use a double $ so make ignores it.
3316 test "$program_suffix" != NONE &&
3317 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3318 # Double any \ or $. echo might interpret backslashes.
3319 # By default was `s,x,x', remove it if useless.
3320 cat <<\_ACEOF >conftest.sed
3321 s/[\\$]/&&/g;s/;s,x,x,$//
3323 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3326 for ac_prog in mawk gawk nawk awk
3328 # Extract the first word of "$ac_prog", so it can be a program name with args.
3329 set dummy $ac_prog; ac_word=$2
3330 echo "$as_me:3330: checking for $ac_word" >&5
3331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3332 if test "${ac_cv_prog_AWK+set}" = set; then
3333 echo $ECHO_N "(cached) $ECHO_C" >&6
3335 if test -n "$AWK"; then
3336 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3338 ac_save_IFS=$IFS; IFS=$ac_path_separator
3340 for ac_dir in $ac_dummy; do
3342 test -z "$ac_dir" && ac_dir=.
3343 $as_executable_p "$ac_dir/$ac_word" || continue
3344 ac_cv_prog_AWK="$ac_prog"
3345 echo "$as_me:3345: found $ac_dir/$ac_word" >&5
3352 if test -n "$AWK"; then
3353 echo "$as_me:3353: result: $AWK" >&5
3354 echo "${ECHO_T}$AWK" >&6
3356 echo "$as_me:3356: result: no" >&5
3357 echo "${ECHO_T}no" >&6
3360 test -n "$AWK" && break
3363 test -z "$AWK" && { { echo "$as_me:3363: error: No awk program found" >&5
3364 echo "$as_me: error: No awk program found" >&2;}
3365 { (exit 1); exit 1; }; }
3367 echo "$as_me:3367: checking for egrep" >&5
3368 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3369 if test "${ac_cv_prog_egrep+set}" = set; then
3370 echo $ECHO_N "(cached) $ECHO_C" >&6
3372 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3373 then ac_cv_prog_egrep='grep -E'
3374 else ac_cv_prog_egrep='egrep'
3377 echo "$as_me:3377: result: $ac_cv_prog_egrep" >&5
3378 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3379 EGREP=$ac_cv_prog_egrep
3381 test -z "$EGREP" && { { echo "$as_me:3381: error: No egrep program found" >&5
3382 echo "$as_me: error: No egrep program found" >&2;}
3383 { (exit 1); exit 1; }; }
3385 # Find a good install program. We prefer a C program (faster),
3386 # so one script is as good as another. But avoid the broken or
3387 # incompatible versions:
3388 # SysV /etc/install, /usr/sbin/install
3389 # SunOS /usr/etc/install
3390 # IRIX /sbin/install
3392 # AmigaOS /C/install, which installs bootblocks on floppy discs
3393 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3394 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3395 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3396 # ./install, which can be erroneously created by make from ./install.sh.
3397 echo "$as_me:3397: checking for a BSD compatible install" >&5
3398 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3399 if test -z "$INSTALL"; then
3400 if test "${ac_cv_path_install+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3403 ac_save_IFS=$IFS; IFS=$ac_path_separator
3404 for ac_dir in $PATH; do
3406 # Account for people who put trailing slashes in PATH elements.
3408 / | ./ | .// | /cC/* \
3409 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3412 # OSF1 and SCO ODT 3.0 have their own names for install.
3413 # Don't use installbsd from OSF since it installs stuff as root
3415 for ac_prog in ginstall scoinst install; do
3416 if $as_executable_p "$ac_dir/$ac_prog"; then
3417 if test $ac_prog = install &&
3418 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3419 # AIX install. It has an incompatible calling convention.
3421 elif test $ac_prog = install &&
3422 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3423 # program-specific install script used by HP pwplus--don't use.
3426 ac_cv_path_install="$ac_dir/$ac_prog -c"
3436 if test "${ac_cv_path_install+set}" = set; then
3437 INSTALL=$ac_cv_path_install
3439 # As a last resort, use the slow shell script. We don't cache a
3440 # path for INSTALL within a source directory, because that will
3441 # break other packages using the cache if that directory is
3442 # removed, or if the path is relative.
3443 INSTALL=$ac_install_sh
3446 echo "$as_me:3446: result: $INSTALL" >&5
3447 echo "${ECHO_T}$INSTALL" >&6
3449 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3450 # It thinks the first close brace ends the variable substitution.
3451 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3453 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3455 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3461 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3462 test -z "$cf_dir" && cf_dir=.
3463 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3467 for ac_prog in tdlint lint alint splint lclint
3469 # Extract the first word of "$ac_prog", so it can be a program name with args.
3470 set dummy $ac_prog; ac_word=$2
3471 echo "$as_me:3471: checking for $ac_word" >&5
3472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3473 if test "${ac_cv_prog_LINT+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3476 if test -n "$LINT"; then
3477 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3479 ac_save_IFS=$IFS; IFS=$ac_path_separator
3481 for ac_dir in $ac_dummy; do
3483 test -z "$ac_dir" && ac_dir=.
3484 $as_executable_p "$ac_dir/$ac_word" || continue
3485 ac_cv_prog_LINT="$ac_prog"
3486 echo "$as_me:3486: found $ac_dir/$ac_word" >&5
3492 LINT=$ac_cv_prog_LINT
3493 if test -n "$LINT"; then
3494 echo "$as_me:3494: result: $LINT" >&5
3495 echo "${ECHO_T}$LINT" >&6
3497 echo "$as_me:3497: result: no" >&5
3498 echo "${ECHO_T}no" >&6
3501 test -n "$LINT" && break
3504 echo "$as_me:3504: checking whether ln -s works" >&5
3505 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3507 if test "$LN_S" = "ln -s"; then
3508 echo "$as_me:3508: result: yes" >&5
3509 echo "${ECHO_T}yes" >&6
3511 echo "$as_me:3511: result: no, using $LN_S" >&5
3512 echo "${ECHO_T}no, using $LN_S" >&6
3515 echo "$as_me:3515: checking if $LN_S -f options work" >&5
3516 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3518 rm -f conf$$.src conf$$dst
3520 echo first >conf$$.src
3521 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3526 rm -f conf$$.dst conf$$src
3527 echo "$as_me:3527: result: $cf_prog_ln_sf" >&5
3528 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3530 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3532 echo "$as_me:3532: checking for long file names" >&5
3533 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3534 if test "${ac_cv_sys_long_file_names+set}" = set; then
3535 echo $ECHO_N "(cached) $ECHO_C" >&6
3537 ac_cv_sys_long_file_names=yes
3538 # Test for long file names in all the places we know might matter:
3539 # . the current directory, where building will happen
3540 # $prefix/lib where we will be installing things
3541 # $exec_prefix/lib likewise
3542 # eval it to expand exec_prefix.
3543 # $TMPDIR if set, where it might want to write temporary files
3544 # if $TMPDIR is not set:
3545 # /tmp where it might want to write temporary files
3548 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3551 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3553 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3554 test -d $ac_dir || continue
3555 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3556 ac_xdir=$ac_dir/cf$$
3557 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3558 ac_tf1=$ac_xdir/conftest9012345
3559 ac_tf2=$ac_xdir/conftest9012346
3560 (echo 1 >$ac_tf1) 2>/dev/null
3561 (echo 2 >$ac_tf2) 2>/dev/null
3562 ac_val=`cat $ac_tf1 2>/dev/null`
3563 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3564 ac_cv_sys_long_file_names=no
3565 rm -rf $ac_xdir 2>/dev/null
3568 rm -rf $ac_xdir 2>/dev/null
3571 echo "$as_me:3571: result: $ac_cv_sys_long_file_names" >&5
3572 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3573 if test $ac_cv_sys_long_file_names = yes; then
3575 cat >>confdefs.h <<\EOF
3576 #define HAVE_LONG_FILE_NAMES 1
3581 # if we find pkg-config, check if we should install the ".pc" files.
3583 echo "$as_me:3583: checking if you want to use pkg-config" >&5
3584 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3586 # Check whether --with-pkg-config or --without-pkg-config was given.
3587 if test "${with_pkg_config+set}" = set; then
3588 withval="$with_pkg_config"
3589 cf_pkg_config=$withval
3593 echo "$as_me:3593: result: $cf_pkg_config" >&5
3594 echo "${ECHO_T}$cf_pkg_config" >&6
3596 case $cf_pkg_config in #(vi
3602 if test -n "$ac_tool_prefix"; then
3603 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3604 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3605 echo "$as_me:3605: checking for $ac_word" >&5
3606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3607 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3612 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3615 ac_save_IFS=$IFS; IFS=$ac_path_separator
3617 for ac_dir in $ac_dummy; do
3619 test -z "$ac_dir" && ac_dir=.
3620 if $as_executable_p "$ac_dir/$ac_word"; then
3621 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3622 echo "$as_me:3622: found $ac_dir/$ac_word" >&5
3630 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3632 if test -n "$PKG_CONFIG"; then
3633 echo "$as_me:3633: result: $PKG_CONFIG" >&5
3634 echo "${ECHO_T}$PKG_CONFIG" >&6
3636 echo "$as_me:3636: result: no" >&5
3637 echo "${ECHO_T}no" >&6
3641 if test -z "$ac_cv_path_PKG_CONFIG"; then
3642 ac_pt_PKG_CONFIG=$PKG_CONFIG
3643 # Extract the first word of "pkg-config", so it can be a program name with args.
3644 set dummy pkg-config; ac_word=$2
3645 echo "$as_me:3645: checking for $ac_word" >&5
3646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3647 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3648 echo $ECHO_N "(cached) $ECHO_C" >&6
3650 case $ac_pt_PKG_CONFIG in
3652 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3655 ac_save_IFS=$IFS; IFS=$ac_path_separator
3657 for ac_dir in $ac_dummy; do
3659 test -z "$ac_dir" && ac_dir=.
3660 if $as_executable_p "$ac_dir/$ac_word"; then
3661 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3662 echo "$as_me:3662: found $ac_dir/$ac_word" >&5
3667 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3671 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3673 if test -n "$ac_pt_PKG_CONFIG"; then
3674 echo "$as_me:3674: result: $ac_pt_PKG_CONFIG" >&5
3675 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3677 echo "$as_me:3677: result: no" >&5
3678 echo "${ECHO_T}no" >&6
3681 PKG_CONFIG=$ac_pt_PKG_CONFIG
3683 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3692 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3693 if test "$PKG_CONFIG" != none ; then
3695 if test "x$prefix" != xNONE; then
3696 cf_path_syntax="$prefix"
3698 cf_path_syntax="$ac_default_prefix"
3701 case ".$PKG_CONFIG" in #(vi
3702 .\$\(*\)*|.\'*\'*) #(vi
3706 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3709 eval PKG_CONFIG="$PKG_CONFIG"
3710 case ".$PKG_CONFIG" in #(vi
3712 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3717 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3720 { { echo "$as_me:3720: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3721 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3722 { (exit 1); exit 1; }; }
3728 if test "$PKG_CONFIG" != none ; then
3729 echo "$as_me:3729: checking for $PKG_CONFIG library directory" >&5
3730 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3732 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3733 if test "${with_pkg_config_libdir+set}" = set; then
3734 withval="$with_pkg_config_libdir"
3735 PKG_CONFIG_LIBDIR=$withval
3737 PKG_CONFIG_LIBDIR=yes
3740 case x$PKG_CONFIG_LIBDIR in #(vi
3744 # look for the library directory using the same prefix as the executable
3745 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3746 case x`(arch) 2>/dev/null` in #(vi
3748 for cf_config in $cf_path/share $cf_path/lib64 $cf_path/lib32 $cf_path/lib
3750 if test -d $cf_config/pkgconfig
3752 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3758 PKG_CONFIG_LIBDIR=$cf_path/lib/pkgconfig
3766 echo "$as_me:3766: result: $PKG_CONFIG_LIBDIR" >&5
3767 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3770 if test "$PKG_CONFIG" != none ; then
3771 if test -n "$PKG_CONFIG_LIBDIR" && test -d "$PKG_CONFIG_LIBDIR" ; then
3772 echo "$as_me:3772: checking if we should install .pc files for $PKG_CONFIG" >&5
3773 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3775 # Check whether --enable-pc-files or --disable-pc-files was given.
3776 if test "${enable_pc_files+set}" = set; then
3777 enableval="$enable_pc_files"
3778 enable_pc_files=$enableval
3782 echo "$as_me:3782: result: $enable_pc_files" >&5
3783 echo "${ECHO_T}$enable_pc_files" >&6
3784 elif test -z "$PKG_CONFIG_LIBDIR" || test "$PKG_CONFIG_LIBDIR" != no; then
3786 { echo "$as_me:3786: WARNING: did not find $PKG_CONFIG library" >&5
3787 echo "$as_me: WARNING: did not find $PKG_CONFIG library" >&2;}
3793 echo "$as_me:3793: checking if we should assume mixed-case filenames" >&5
3794 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3796 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3797 if test "${enable_mixed_case+set}" = set; then
3798 enableval="$enable_mixed_case"
3799 enable_mixedcase=$enableval
3801 enable_mixedcase=auto
3803 echo "$as_me:3803: result: $enable_mixedcase" >&5
3804 echo "${ECHO_T}$enable_mixedcase" >&6
3805 if test "$enable_mixedcase" = "auto" ; then
3807 echo "$as_me:3807: checking if filesystem supports mixed-case filenames" >&5
3808 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3809 if test "${cf_cv_mixedcase+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
3813 if test "$cross_compiling" = yes ; then
3814 case $target_alias in #(vi
3815 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3823 rm -f conftest CONFTEST
3825 if test -f CONFTEST ; then
3830 rm -f conftest CONFTEST
3834 echo "$as_me:3834: result: $cf_cv_mixedcase" >&5
3835 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3836 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3837 #define MIXEDCASE_FILENAMES 1
3841 cf_cv_mixedcase=$enable_mixedcase
3842 if test "$enable_mixedcase" = "yes" ; then
3843 cat >>confdefs.h <<\EOF
3844 #define MIXEDCASE_FILENAMES 1
3850 # do this after mixed-case option (tags/TAGS is not as important as tic).
3851 echo "$as_me:3851: checking whether ${MAKE-make} sets \${MAKE}" >&5
3852 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3853 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3854 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3857 cat >conftest.make <<\EOF
3859 @echo 'ac_maketemp="${MAKE}"'
3861 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3862 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3863 if test -n "$ac_maketemp"; then
3864 eval ac_cv_prog_make_${ac_make}_set=yes
3866 eval ac_cv_prog_make_${ac_make}_set=no
3870 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3871 echo "$as_me:3871: result: yes" >&5
3872 echo "${ECHO_T}yes" >&6
3875 echo "$as_me:3875: result: no" >&5
3876 echo "${ECHO_T}no" >&6
3877 SET_MAKE="MAKE=${MAKE-make}"
3880 for ac_prog in exctags ctags
3882 # Extract the first word of "$ac_prog", so it can be a program name with args.
3883 set dummy $ac_prog; ac_word=$2
3884 echo "$as_me:3884: checking for $ac_word" >&5
3885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3886 if test "${ac_cv_prog_CTAGS+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 if test -n "$CTAGS"; then
3890 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3892 ac_save_IFS=$IFS; IFS=$ac_path_separator
3894 for ac_dir in $ac_dummy; do
3896 test -z "$ac_dir" && ac_dir=.
3897 $as_executable_p "$ac_dir/$ac_word" || continue
3898 ac_cv_prog_CTAGS="$ac_prog"
3899 echo "$as_me:3899: found $ac_dir/$ac_word" >&5
3905 CTAGS=$ac_cv_prog_CTAGS
3906 if test -n "$CTAGS"; then
3907 echo "$as_me:3907: result: $CTAGS" >&5
3908 echo "${ECHO_T}$CTAGS" >&6
3910 echo "$as_me:3910: result: no" >&5
3911 echo "${ECHO_T}no" >&6
3914 test -n "$CTAGS" && break
3917 for ac_prog in exetags etags
3919 # Extract the first word of "$ac_prog", so it can be a program name with args.
3920 set dummy $ac_prog; ac_word=$2
3921 echo "$as_me:3921: checking for $ac_word" >&5
3922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3923 if test "${ac_cv_prog_ETAGS+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 if test -n "$ETAGS"; then
3927 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3929 ac_save_IFS=$IFS; IFS=$ac_path_separator
3931 for ac_dir in $ac_dummy; do
3933 test -z "$ac_dir" && ac_dir=.
3934 $as_executable_p "$ac_dir/$ac_word" || continue
3935 ac_cv_prog_ETAGS="$ac_prog"
3936 echo "$as_me:3936: found $ac_dir/$ac_word" >&5
3942 ETAGS=$ac_cv_prog_ETAGS
3943 if test -n "$ETAGS"; then
3944 echo "$as_me:3944: result: $ETAGS" >&5
3945 echo "${ECHO_T}$ETAGS" >&6
3947 echo "$as_me:3947: result: no" >&5
3948 echo "${ECHO_T}no" >&6
3951 test -n "$ETAGS" && break
3954 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3955 set dummy ${CTAGS:-ctags}; ac_word=$2
3956 echo "$as_me:3956: checking for $ac_word" >&5
3957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3958 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3961 if test -n "$MAKE_LOWER_TAGS"; then
3962 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3964 ac_save_IFS=$IFS; IFS=$ac_path_separator
3966 for ac_dir in $ac_dummy; do
3968 test -z "$ac_dir" && ac_dir=.
3969 $as_executable_p "$ac_dir/$ac_word" || continue
3970 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3971 echo "$as_me:3971: found $ac_dir/$ac_word" >&5
3975 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3978 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3979 if test -n "$MAKE_LOWER_TAGS"; then
3980 echo "$as_me:3980: result: $MAKE_LOWER_TAGS" >&5
3981 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3983 echo "$as_me:3983: result: no" >&5
3984 echo "${ECHO_T}no" >&6
3987 if test "$cf_cv_mixedcase" = yes ; then
3988 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3989 set dummy ${ETAGS:-etags}; ac_word=$2
3990 echo "$as_me:3990: checking for $ac_word" >&5
3991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3992 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3993 echo $ECHO_N "(cached) $ECHO_C" >&6
3995 if test -n "$MAKE_UPPER_TAGS"; then
3996 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3998 ac_save_IFS=$IFS; IFS=$ac_path_separator
4000 for ac_dir in $ac_dummy; do
4002 test -z "$ac_dir" && ac_dir=.
4003 $as_executable_p "$ac_dir/$ac_word" || continue
4004 ac_cv_prog_MAKE_UPPER_TAGS="yes"
4005 echo "$as_me:4005: found $ac_dir/$ac_word" >&5
4009 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
4012 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
4013 if test -n "$MAKE_UPPER_TAGS"; then
4014 echo "$as_me:4014: result: $MAKE_UPPER_TAGS" >&5
4015 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
4017 echo "$as_me:4017: result: no" >&5
4018 echo "${ECHO_T}no" >&6
4025 if test "$MAKE_UPPER_TAGS" = yes ; then
4031 if test "$MAKE_LOWER_TAGS" = yes ; then
4037 echo "$as_me:4037: checking for makeflags variable" >&5
4038 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
4039 if test "${cf_cv_makeflags+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
4044 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
4046 cat >cf_makeflags.tmp <<CF_EOF
4049 @ echo '.$cf_option'
4051 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
4052 case "$cf_result" in
4054 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
4055 case "$cf_result" in
4056 .*CC=*) cf_cv_makeflags=
4058 *) cf_cv_makeflags=$cf_option
4064 *) echo "given option \"$cf_option\", no match \"$cf_result\""
4068 rm -f cf_makeflags.tmp
4071 echo "$as_me:4071: result: $cf_cv_makeflags" >&5
4072 echo "${ECHO_T}$cf_cv_makeflags" >&6
4074 if test -n "$ac_tool_prefix"; then
4075 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4076 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4077 echo "$as_me:4077: checking for $ac_word" >&5
4078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4079 if test "${ac_cv_prog_RANLIB+set}" = set; then
4080 echo $ECHO_N "(cached) $ECHO_C" >&6
4082 if test -n "$RANLIB"; then
4083 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4085 ac_save_IFS=$IFS; IFS=$ac_path_separator
4087 for ac_dir in $ac_dummy; do
4089 test -z "$ac_dir" && ac_dir=.
4090 $as_executable_p "$ac_dir/$ac_word" || continue
4091 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4092 echo "$as_me:4092: found $ac_dir/$ac_word" >&5
4098 RANLIB=$ac_cv_prog_RANLIB
4099 if test -n "$RANLIB"; then
4100 echo "$as_me:4100: result: $RANLIB" >&5
4101 echo "${ECHO_T}$RANLIB" >&6
4103 echo "$as_me:4103: result: no" >&5
4104 echo "${ECHO_T}no" >&6
4108 if test -z "$ac_cv_prog_RANLIB"; then
4109 ac_ct_RANLIB=$RANLIB
4110 # Extract the first word of "ranlib", so it can be a program name with args.
4111 set dummy ranlib; ac_word=$2
4112 echo "$as_me:4112: checking for $ac_word" >&5
4113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4114 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4115 echo $ECHO_N "(cached) $ECHO_C" >&6
4117 if test -n "$ac_ct_RANLIB"; then
4118 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4120 ac_save_IFS=$IFS; IFS=$ac_path_separator
4122 for ac_dir in $ac_dummy; do
4124 test -z "$ac_dir" && ac_dir=.
4125 $as_executable_p "$ac_dir/$ac_word" || continue
4126 ac_cv_prog_ac_ct_RANLIB="ranlib"
4127 echo "$as_me:4127: found $ac_dir/$ac_word" >&5
4131 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4134 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4135 if test -n "$ac_ct_RANLIB"; then
4136 echo "$as_me:4136: result: $ac_ct_RANLIB" >&5
4137 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4139 echo "$as_me:4139: result: no" >&5
4140 echo "${ECHO_T}no" >&6
4143 RANLIB=$ac_ct_RANLIB
4145 RANLIB="$ac_cv_prog_RANLIB"
4148 if test -n "$ac_tool_prefix"; then
4149 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4150 set dummy ${ac_tool_prefix}ld; ac_word=$2
4151 echo "$as_me:4151: checking for $ac_word" >&5
4152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4153 if test "${ac_cv_prog_LD+set}" = set; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
4156 if test -n "$LD"; then
4157 ac_cv_prog_LD="$LD" # Let the user override the test.
4159 ac_save_IFS=$IFS; IFS=$ac_path_separator
4161 for ac_dir in $ac_dummy; do
4163 test -z "$ac_dir" && ac_dir=.
4164 $as_executable_p "$ac_dir/$ac_word" || continue
4165 ac_cv_prog_LD="${ac_tool_prefix}ld"
4166 echo "$as_me:4166: found $ac_dir/$ac_word" >&5
4173 if test -n "$LD"; then
4174 echo "$as_me:4174: result: $LD" >&5
4175 echo "${ECHO_T}$LD" >&6
4177 echo "$as_me:4177: result: no" >&5
4178 echo "${ECHO_T}no" >&6
4182 if test -z "$ac_cv_prog_LD"; then
4184 # Extract the first word of "ld", so it can be a program name with args.
4185 set dummy ld; ac_word=$2
4186 echo "$as_me:4186: checking for $ac_word" >&5
4187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4188 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4191 if test -n "$ac_ct_LD"; then
4192 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4194 ac_save_IFS=$IFS; IFS=$ac_path_separator
4196 for ac_dir in $ac_dummy; do
4198 test -z "$ac_dir" && ac_dir=.
4199 $as_executable_p "$ac_dir/$ac_word" || continue
4200 ac_cv_prog_ac_ct_LD="ld"
4201 echo "$as_me:4201: found $ac_dir/$ac_word" >&5
4205 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4208 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4209 if test -n "$ac_ct_LD"; then
4210 echo "$as_me:4210: result: $ac_ct_LD" >&5
4211 echo "${ECHO_T}$ac_ct_LD" >&6
4213 echo "$as_me:4213: result: no" >&5
4214 echo "${ECHO_T}no" >&6
4222 if test -n "$ac_tool_prefix"; then
4223 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4224 set dummy ${ac_tool_prefix}ar; ac_word=$2
4225 echo "$as_me:4225: checking for $ac_word" >&5
4226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4227 if test "${ac_cv_prog_AR+set}" = set; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4230 if test -n "$AR"; then
4231 ac_cv_prog_AR="$AR" # Let the user override the test.
4233 ac_save_IFS=$IFS; IFS=$ac_path_separator
4235 for ac_dir in $ac_dummy; do
4237 test -z "$ac_dir" && ac_dir=.
4238 $as_executable_p "$ac_dir/$ac_word" || continue
4239 ac_cv_prog_AR="${ac_tool_prefix}ar"
4240 echo "$as_me:4240: found $ac_dir/$ac_word" >&5
4247 if test -n "$AR"; then
4248 echo "$as_me:4248: result: $AR" >&5
4249 echo "${ECHO_T}$AR" >&6
4251 echo "$as_me:4251: result: no" >&5
4252 echo "${ECHO_T}no" >&6
4256 if test -z "$ac_cv_prog_AR"; then
4258 # Extract the first word of "ar", so it can be a program name with args.
4259 set dummy ar; ac_word=$2
4260 echo "$as_me:4260: checking for $ac_word" >&5
4261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4262 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
4265 if test -n "$ac_ct_AR"; then
4266 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4268 ac_save_IFS=$IFS; IFS=$ac_path_separator
4270 for ac_dir in $ac_dummy; do
4272 test -z "$ac_dir" && ac_dir=.
4273 $as_executable_p "$ac_dir/$ac_word" || continue
4274 ac_cv_prog_ac_ct_AR="ar"
4275 echo "$as_me:4275: found $ac_dir/$ac_word" >&5
4279 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4282 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4283 if test -n "$ac_ct_AR"; then
4284 echo "$as_me:4284: result: $ac_ct_AR" >&5
4285 echo "${ECHO_T}$ac_ct_AR" >&6
4287 echo "$as_me:4287: result: no" >&5
4288 echo "${ECHO_T}no" >&6
4296 if test -n "$ac_tool_prefix"; then
4297 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4298 set dummy ${ac_tool_prefix}ar; ac_word=$2
4299 echo "$as_me:4299: checking for $ac_word" >&5
4300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4301 if test "${ac_cv_prog_AR+set}" = set; then
4302 echo $ECHO_N "(cached) $ECHO_C" >&6
4304 if test -n "$AR"; then
4305 ac_cv_prog_AR="$AR" # Let the user override the test.
4307 ac_save_IFS=$IFS; IFS=$ac_path_separator
4309 for ac_dir in $ac_dummy; do
4311 test -z "$ac_dir" && ac_dir=.
4312 $as_executable_p "$ac_dir/$ac_word" || continue
4313 ac_cv_prog_AR="${ac_tool_prefix}ar"
4314 echo "$as_me:4314: found $ac_dir/$ac_word" >&5
4321 if test -n "$AR"; then
4322 echo "$as_me:4322: result: $AR" >&5
4323 echo "${ECHO_T}$AR" >&6
4325 echo "$as_me:4325: result: no" >&5
4326 echo "${ECHO_T}no" >&6
4330 if test -z "$ac_cv_prog_AR"; then
4332 # Extract the first word of "ar", so it can be a program name with args.
4333 set dummy ar; ac_word=$2
4334 echo "$as_me:4334: checking for $ac_word" >&5
4335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4336 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
4339 if test -n "$ac_ct_AR"; then
4340 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4342 ac_save_IFS=$IFS; IFS=$ac_path_separator
4344 for ac_dir in $ac_dummy; do
4346 test -z "$ac_dir" && ac_dir=.
4347 $as_executable_p "$ac_dir/$ac_word" || continue
4348 ac_cv_prog_ac_ct_AR="ar"
4349 echo "$as_me:4349: found $ac_dir/$ac_word" >&5
4353 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4356 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4357 if test -n "$ac_ct_AR"; then
4358 echo "$as_me:4358: result: $ac_ct_AR" >&5
4359 echo "${ECHO_T}$ac_ct_AR" >&6
4361 echo "$as_me:4361: result: no" >&5
4362 echo "${ECHO_T}no" >&6
4370 echo "$as_me:4370: checking for options to update archives" >&5
4371 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4372 if test "${cf_cv_ar_flags+set}" = set; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4376 cf_cv_ar_flags=unknown
4377 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
4380 # check if $ARFLAGS already contains this choice
4381 if test "x$ARFLAGS" != "x" ; then
4382 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4383 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4389 rm -f conftest.$ac_cv_objext
4392 cat >conftest.$ac_ext <<EOF
4393 #line 4393 "configure"
4394 int testdata[3] = { 123, 456, 789 };
4396 if { (eval echo "$as_me:4396: \"$ac_compile\"") >&5
4397 (eval $ac_compile) 2>&5
4399 echo "$as_me:4399: \$? = $ac_status" >&5
4400 (exit $ac_status); } ; then
4401 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4402 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4403 if test -f conftest.a ; then
4404 cf_cv_ar_flags=$cf_ar_flags
4408 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4410 echo "${as_me:-configure}:4410: testing cannot compile test-program ..." 1>&5
4415 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4418 echo "$as_me:4418: result: $cf_cv_ar_flags" >&5
4419 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4421 if test -n "$ARFLAGS" ; then
4422 if test -n "$cf_cv_ar_flags" ; then
4423 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4426 ARFLAGS=$cf_cv_ar_flags
4429 echo "$as_me:4429: checking if you have specified an install-prefix" >&5
4430 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4432 # Check whether --with-install-prefix or --without-install-prefix was given.
4433 if test "${with_install_prefix+set}" = set; then
4434 withval="$with_install_prefix"
4435 case "$withval" in #(vi
4438 *) DESTDIR="$withval"
4442 echo "$as_me:4442: result: $DESTDIR" >&5
4443 echo "${ECHO_T}$DESTDIR" >&6
4445 ###############################################################################
4447 # If we're cross-compiling, allow the user to override the tools and their
4448 # options. The configure script is oriented toward identifying the host
4449 # compiler, etc., but we need a build compiler to generate parts of the source.
4451 if test "$cross_compiling" = yes ; then
4453 # defaults that we might want to override
4454 : ${BUILD_CFLAGS:=''}
4455 : ${BUILD_CPPFLAGS:=''}
4456 : ${BUILD_LDFLAGS:=''}
4458 : ${BUILD_EXEEXT:='$x'}
4459 : ${BUILD_OBJEXT:='o'}
4461 # Check whether --with-build-cc or --without-build-cc was given.
4462 if test "${with_build_cc+set}" = set; then
4463 withval="$with_build_cc"
4466 for ac_prog in gcc cc cl
4468 # Extract the first word of "$ac_prog", so it can be a program name with args.
4469 set dummy $ac_prog; ac_word=$2
4470 echo "$as_me:4470: checking for $ac_word" >&5
4471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4472 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4475 if test -n "$BUILD_CC"; then
4476 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4478 ac_save_IFS=$IFS; IFS=$ac_path_separator
4480 for ac_dir in $ac_dummy; do
4482 test -z "$ac_dir" && ac_dir=.
4483 $as_executable_p "$ac_dir/$ac_word" || continue
4484 ac_cv_prog_BUILD_CC="$ac_prog"
4485 echo "$as_me:4485: found $ac_dir/$ac_word" >&5
4491 BUILD_CC=$ac_cv_prog_BUILD_CC
4492 if test -n "$BUILD_CC"; then
4493 echo "$as_me:4493: result: $BUILD_CC" >&5
4494 echo "${ECHO_T}$BUILD_CC" >&6
4496 echo "$as_me:4496: result: no" >&5
4497 echo "${ECHO_T}no" >&6
4500 test -n "$BUILD_CC" && break
4504 echo "$as_me:4504: checking for native build C compiler" >&5
4505 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4506 echo "$as_me:4506: result: $BUILD_CC" >&5
4507 echo "${ECHO_T}$BUILD_CC" >&6
4509 echo "$as_me:4509: checking for native build C preprocessor" >&5
4510 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4512 # Check whether --with-build-cpp or --without-build-cpp was given.
4513 if test "${with_build_cpp+set}" = set; then
4514 withval="$with_build_cpp"
4515 BUILD_CPP="$withval"
4517 BUILD_CPP='${BUILD_CC} -E'
4519 echo "$as_me:4519: result: $BUILD_CPP" >&5
4520 echo "${ECHO_T}$BUILD_CPP" >&6
4522 echo "$as_me:4522: checking for native build C flags" >&5
4523 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4525 # Check whether --with-build-cflags or --without-build-cflags was given.
4526 if test "${with_build_cflags+set}" = set; then
4527 withval="$with_build_cflags"
4528 BUILD_CFLAGS="$withval"
4530 echo "$as_me:4530: result: $BUILD_CFLAGS" >&5
4531 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4533 echo "$as_me:4533: checking for native build C preprocessor-flags" >&5
4534 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4536 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4537 if test "${with_build_cppflags+set}" = set; then
4538 withval="$with_build_cppflags"
4539 BUILD_CPPFLAGS="$withval"
4541 echo "$as_me:4541: result: $BUILD_CPPFLAGS" >&5
4542 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4544 echo "$as_me:4544: checking for native build linker-flags" >&5
4545 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4547 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4548 if test "${with_build_ldflags+set}" = set; then
4549 withval="$with_build_ldflags"
4550 BUILD_LDFLAGS="$withval"
4552 echo "$as_me:4552: result: $BUILD_LDFLAGS" >&5
4553 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4555 echo "$as_me:4555: checking for native build linker-libraries" >&5
4556 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4558 # Check whether --with-build-libs or --without-build-libs was given.
4559 if test "${with_build_libs+set}" = set; then
4560 withval="$with_build_libs"
4561 BUILD_LIBS="$withval"
4563 echo "$as_me:4563: result: $BUILD_LIBS" >&5
4564 echo "${ECHO_T}$BUILD_LIBS" >&6
4566 # this assumes we're on Unix.
4570 : ${BUILD_CC:='${CC}'}
4572 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4573 { { echo "$as_me:4573: error: Cross-build requires two compilers.
4574 Use --with-build-cc to specify the native compiler." >&5
4575 echo "$as_me: error: Cross-build requires two compilers.
4576 Use --with-build-cc to specify the native compiler." >&2;}
4577 { (exit 1); exit 1; }; }
4581 : ${BUILD_CC:='${CC}'}
4582 : ${BUILD_CPP:='${CPP}'}
4583 : ${BUILD_CFLAGS:='${CFLAGS}'}
4584 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4585 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4586 : ${BUILD_LIBS:='${LIBS}'}
4587 : ${BUILD_EXEEXT:='$x'}
4588 : ${BUILD_OBJEXT:='o'}
4591 ###############################################################################
4593 ### Options to allow the user to specify the set of libraries which are used.
4594 ### Use "--without-normal --with-shared" to allow the default model to be
4595 ### shared, for example.
4598 echo "$as_me:4598: checking if libtool -version-number should be used" >&5
4599 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
4601 # Check whether --enable-libtool-version or --disable-libtool-version was given.
4602 if test "${enable_libtool_version+set}" = set; then
4603 enableval="$enable_libtool_version"
4604 test "$enableval" != no && enableval=yes
4605 if test "$enableval" != "yes" ; then
4606 cf_libtool_version=no
4608 cf_libtool_version=yes
4612 cf_libtool_version=yes
4615 echo "$as_me:4615: result: $cf_libtool_version" >&5
4616 echo "${ECHO_T}$cf_libtool_version" >&6
4618 if test "$cf_libtool_version" = yes ; then
4619 LIBTOOL_VERSION="-version-number"
4621 LIBTOOL_VERSION="-version-info"
4626 # common library maintenance symbols that are convenient for libtool scripts:
4627 LIB_CREATE='${AR} -cr'
4628 LIB_OBJECT='${OBJECTS}'
4632 # symbols used to prop libtool up to enable it to determine what it should be
4640 echo "$as_me:4640: checking if you want to build libraries with libtool" >&5
4641 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4643 # Check whether --with-libtool or --without-libtool was given.
4644 if test "${with_libtool+set}" = set; then
4645 withval="$with_libtool"
4646 with_libtool=$withval
4650 echo "$as_me:4650: result: $with_libtool" >&5
4651 echo "${ECHO_T}$with_libtool" >&6
4652 if test "$with_libtool" != "no"; then
4654 if test "$with_libtool" != "yes" ; then
4656 if test "x$prefix" != xNONE; then
4657 cf_path_syntax="$prefix"
4659 cf_path_syntax="$ac_default_prefix"
4662 case ".$with_libtool" in #(vi
4663 .\$\(*\)*|.\'*\'*) #(vi
4667 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4670 eval with_libtool="$with_libtool"
4671 case ".$with_libtool" in #(vi
4673 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4678 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4681 { { echo "$as_me:4681: error: expected a pathname, not \"$with_libtool\"" >&5
4682 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4683 { (exit 1); exit 1; }; }
4687 LIBTOOL=$with_libtool
4689 # Extract the first word of "libtool", so it can be a program name with args.
4690 set dummy libtool; ac_word=$2
4691 echo "$as_me:4691: checking for $ac_word" >&5
4692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4693 if test "${ac_cv_path_LIBTOOL+set}" = set; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4698 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
4701 ac_save_IFS=$IFS; IFS=$ac_path_separator
4703 for ac_dir in $ac_dummy; do
4705 test -z "$ac_dir" && ac_dir=.
4706 if $as_executable_p "$ac_dir/$ac_word"; then
4707 ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
4708 echo "$as_me:4708: found $ac_dir/$ac_word" >&5
4716 LIBTOOL=$ac_cv_path_LIBTOOL
4718 if test -n "$LIBTOOL"; then
4719 echo "$as_me:4719: result: $LIBTOOL" >&5
4720 echo "${ECHO_T}$LIBTOOL" >&6
4722 echo "$as_me:4722: result: no" >&5
4723 echo "${ECHO_T}no" >&6
4727 if test -z "$LIBTOOL" ; then
4728 { { echo "$as_me:4728: error: Cannot find libtool" >&5
4729 echo "$as_me: error: Cannot find libtool" >&2;}
4730 { (exit 1); exit 1; }; }
4732 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} ${LIBTOOL_VERSION} `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
4733 LIB_OBJECT='${OBJECTS:.o=.lo}'
4735 LIB_CLEAN='${LIBTOOL} --mode=clean'
4736 LIB_COMPILE='${LIBTOOL} --mode=compile'
4737 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
4738 LIB_INSTALL='${LIBTOOL} --mode=install'
4739 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4742 # Show the version of libtool
4743 echo "$as_me:4743: checking version of libtool" >&5
4744 echo $ECHO_N "checking version of libtool... $ECHO_C" >&6
4746 # Save the version in a cache variable - this is not entirely a good
4747 # thing, but the version string from libtool is very ugly, and for
4748 # bug reports it might be useful to have the original string. "("
4749 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.].*//'`
4750 echo "$as_me:4750: result: $cf_cv_libtool_version" >&5
4751 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4752 if test -z "$cf_cv_libtool_version" ; then
4753 { { echo "$as_me:4753: error: This is not GNU libtool" >&5
4754 echo "$as_me: error: This is not GNU libtool" >&2;}
4755 { (exit 1); exit 1; }; }
4758 # special hack to add -no-undefined (which libtool should do for itself)
4760 case "$cf_cv_system_name" in #(vi
4761 cygwin*|mingw32*|uwin*|aix[4-7]) #(vi
4762 LT_UNDEF=-no-undefined
4766 # special hack to add --tag option for C++ compiler
4767 case $cf_cv_libtool_version in #(vi
4768 1.[5-9]*|[2-9].[0-9.a-z]*) #(vi
4769 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4770 LIBTOOL="$LIBTOOL --tag=CC"
4773 LIBTOOL_CXX="$LIBTOOL"
4781 test -z "$LIBTOOL" && ECHO_LT=
4783 if test "$with_libtool" != "no" ; then
4785 cf_list_models="$cf_list_models libtool"
4789 echo "$as_me:4789: checking if you want to build shared libraries" >&5
4790 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
4792 # Check whether --with-shared or --without-shared was given.
4793 if test "${with_shared+set}" = set; then
4794 withval="$with_shared"
4795 with_shared=$withval
4799 echo "$as_me:4799: result: $with_shared" >&5
4800 echo "${ECHO_T}$with_shared" >&6
4801 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
4803 echo "$as_me:4803: checking if you want to build static libraries" >&5
4804 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
4806 # Check whether --with-normal or --without-normal was given.
4807 if test "${with_normal+set}" = set; then
4808 withval="$with_normal"
4809 with_normal=$withval
4813 echo "$as_me:4813: result: $with_normal" >&5
4814 echo "${ECHO_T}$with_normal" >&6
4815 test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
4817 echo "$as_me:4817: checking if you want to build debug libraries" >&5
4818 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
4820 # Check whether --with-debug or --without-debug was given.
4821 if test "${with_debug+set}" = set; then
4822 withval="$with_debug"
4827 echo "$as_me:4827: result: $with_debug" >&5
4828 echo "${ECHO_T}$with_debug" >&6
4829 test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
4831 echo "$as_me:4831: checking if you want to build profiling libraries" >&5
4832 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
4834 # Check whether --with-profile or --without-profile was given.
4835 if test "${with_profile+set}" = set; then
4836 withval="$with_profile"
4837 with_profile=$withval
4841 echo "$as_me:4841: result: $with_profile" >&5
4842 echo "${ECHO_T}$with_profile" >&6
4843 test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
4847 ###############################################################################
4849 echo "$as_me:4849: checking for specified models" >&5
4850 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
4851 test -z "$cf_list_models" && cf_list_models=normal
4852 test "$with_libtool" != "no" && cf_list_models=libtool
4853 echo "$as_me:4853: result: $cf_list_models" >&5
4854 echo "${ECHO_T}$cf_list_models" >&6
4856 ### Use the first model as the default, and save its suffix for use in building
4857 ### up test-applications.
4858 echo "$as_me:4858: checking for default model" >&5
4859 echo $ECHO_N "checking for default model... $ECHO_C" >&6
4860 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
4861 echo "$as_me:4861: result: $DFT_LWR_MODEL" >&5
4862 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
4864 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4875 echo "$as_me:4875: checking if you want to have a library-prefix" >&5
4876 echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
4878 # Check whether --with-lib-prefix or --without-lib-prefix was given.
4879 if test "${with_lib_prefix+set}" = set; then
4880 withval="$with_lib_prefix"
4881 with_lib_prefix=$withval
4883 with_lib_prefix=auto
4885 echo "$as_me:4885: result: $with_lib_prefix" >&5
4886 echo "${ECHO_T}$with_lib_prefix" >&6
4888 if test $with_lib_prefix = auto
4891 case $cf_cv_system_name in #(vi
4898 cf_prefix=$LIB_PREFIX
4900 elif test $with_lib_prefix = no
4904 LIB_PREFIX=$with_lib_prefix
4909 ###############################################################################
4911 echo "$as_me:4911: checking if you want to build a separate terminfo library" >&5
4912 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
4914 # Check whether --with-termlib or --without-termlib was given.
4915 if test "${with_termlib+set}" = set; then
4916 withval="$with_termlib"
4917 with_termlib=$withval
4921 echo "$as_me:4921: result: $with_termlib" >&5
4922 echo "${ECHO_T}$with_termlib" >&6
4924 echo "$as_me:4924: checking if you want to build a separate tic library" >&5
4925 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
4927 # Check whether --with-ticlib or --without-ticlib was given.
4928 if test "${with_ticlib+set}" = set; then
4929 withval="$with_ticlib"
4930 with_ticlib=$withval
4934 echo "$as_me:4934: result: $with_ticlib" >&5
4935 echo "${ECHO_T}$with_ticlib" >&6
4937 ### Checks for special libraries, must be done up-front.
4940 echo "$as_me:4940: checking if you want to link with the GPM mouse library" >&5
4941 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
4943 # Check whether --with-gpm or --without-gpm was given.
4944 if test "${with_gpm+set}" = set; then
4950 echo "$as_me:4950: result: $with_gpm" >&5
4951 echo "${ECHO_T}$with_gpm" >&6
4953 if test "$with_gpm" != no ; then
4954 echo "$as_me:4954: checking for gpm.h" >&5
4955 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
4956 if test "${ac_cv_header_gpm_h+set}" = set; then
4957 echo $ECHO_N "(cached) $ECHO_C" >&6
4959 cat >conftest.$ac_ext <<_ACEOF
4960 #line 4960 "configure"
4961 #include "confdefs.h"
4964 if { (eval echo "$as_me:4964: \"$ac_cpp conftest.$ac_ext\"") >&5
4965 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4967 egrep -v '^ *\+' conftest.er1 >conftest.err
4969 cat conftest.err >&5
4970 echo "$as_me:4970: \$? = $ac_status" >&5
4971 (exit $ac_status); } >/dev/null; then
4972 if test -s conftest.err; then
4973 ac_cpp_err=$ac_c_preproc_warn_flag
4980 if test -z "$ac_cpp_err"; then
4981 ac_cv_header_gpm_h=yes
4983 echo "$as_me: failed program was:" >&5
4984 cat conftest.$ac_ext >&5
4985 ac_cv_header_gpm_h=no
4987 rm -f conftest.err conftest.$ac_ext
4989 echo "$as_me:4989: result: $ac_cv_header_gpm_h" >&5
4990 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
4991 if test $ac_cv_header_gpm_h = yes; then
4993 cat >>confdefs.h <<\EOF
4994 #define HAVE_GPM_H 1
4997 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
4998 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
5000 echo "${as_me:-configure}:5000: testing assuming we really have GPM library ..." 1>&5
5002 cat >>confdefs.h <<\EOF
5003 #define HAVE_LIBGPM 1
5007 echo "$as_me:5007: checking for Gpm_Open in -lgpm" >&5
5008 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
5009 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
5010 echo $ECHO_N "(cached) $ECHO_C" >&6
5012 ac_check_lib_save_LIBS=$LIBS
5014 cat >conftest.$ac_ext <<_ACEOF
5015 #line 5015 "configure"
5016 #include "confdefs.h"
5018 /* Override any gcc2 internal prototype to avoid an error. */
5022 /* We use char because int might match the return type of a gcc2
5023 builtin and then its argument prototype would still apply. */
5033 rm -f conftest.$ac_objext conftest$ac_exeext
5034 if { (eval echo "$as_me:5034: \"$ac_link\"") >&5
5035 (eval $ac_link) 2>&5
5037 echo "$as_me:5037: \$? = $ac_status" >&5
5038 (exit $ac_status); } &&
5039 { ac_try='test -s conftest$ac_exeext'
5040 { (eval echo "$as_me:5040: \"$ac_try\"") >&5
5043 echo "$as_me:5043: \$? = $ac_status" >&5
5044 (exit $ac_status); }; }; then
5045 ac_cv_lib_gpm_Gpm_Open=yes
5047 echo "$as_me: failed program was:" >&5
5048 cat conftest.$ac_ext >&5
5049 ac_cv_lib_gpm_Gpm_Open=no
5051 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5052 LIBS=$ac_check_lib_save_LIBS
5054 echo "$as_me:5054: result: $ac_cv_lib_gpm_Gpm_Open" >&5
5055 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
5056 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
5060 { { echo "$as_me:5060: error: Cannot link with GPM library" >&5
5061 echo "$as_me: error: Cannot link with GPM library" >&2;}
5062 { (exit 1); exit 1; }; }
5070 test "$with_gpm" != maybe && { echo "$as_me:5070: WARNING: Cannot find GPM header" >&5
5071 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
5078 if test "$with_gpm" != no ; then
5079 echo "$as_me:5079: checking if you want to load GPM dynamically" >&5
5080 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
5082 # Check whether --with-dlsym or --without-dlsym was given.
5083 if test "${with_dlsym+set}" = set; then
5084 withval="$with_dlsym"
5089 echo "$as_me:5089: result: $with_dlsym" >&5
5090 echo "${ECHO_T}$with_dlsym" >&6
5091 if test "$with_dlsym" = yes ; then
5094 echo "$as_me:5094: checking for dlsym" >&5
5095 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
5096 if test "${ac_cv_func_dlsym+set}" = set; then
5097 echo $ECHO_N "(cached) $ECHO_C" >&6
5099 cat >conftest.$ac_ext <<_ACEOF
5100 #line 5100 "configure"
5101 #include "confdefs.h"
5102 /* System header to define __stub macros and hopefully few prototypes,
5103 which can conflict with char dlsym (); below. */
5105 /* Override any gcc2 internal prototype to avoid an error. */
5109 /* We use char because int might match the return type of a gcc2
5110 builtin and then its argument prototype would still apply. */
5117 /* The GNU C library defines this for functions which it implements
5118 to always fail with ENOSYS. Some functions are actually named
5119 something starting with __ and the normal name is an alias. */
5120 #if defined (__stub_dlsym) || defined (__stub___dlsym)
5130 rm -f conftest.$ac_objext conftest$ac_exeext
5131 if { (eval echo "$as_me:5131: \"$ac_link\"") >&5
5132 (eval $ac_link) 2>&5
5134 echo "$as_me:5134: \$? = $ac_status" >&5
5135 (exit $ac_status); } &&
5136 { ac_try='test -s conftest$ac_exeext'
5137 { (eval echo "$as_me:5137: \"$ac_try\"") >&5
5140 echo "$as_me:5140: \$? = $ac_status" >&5
5141 (exit $ac_status); }; }; then
5142 ac_cv_func_dlsym=yes
5144 echo "$as_me: failed program was:" >&5
5145 cat conftest.$ac_ext >&5
5148 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5150 echo "$as_me:5150: result: $ac_cv_func_dlsym" >&5
5151 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
5152 if test $ac_cv_func_dlsym = yes; then
5157 echo "$as_me:5157: checking for dlsym in -ldl" >&5
5158 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
5159 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
5160 echo $ECHO_N "(cached) $ECHO_C" >&6
5162 ac_check_lib_save_LIBS=$LIBS
5164 cat >conftest.$ac_ext <<_ACEOF
5165 #line 5165 "configure"
5166 #include "confdefs.h"
5168 /* Override any gcc2 internal prototype to avoid an error. */
5172 /* We use char because int might match the return type of a gcc2
5173 builtin and then its argument prototype would still apply. */
5183 rm -f conftest.$ac_objext conftest$ac_exeext
5184 if { (eval echo "$as_me:5184: \"$ac_link\"") >&5
5185 (eval $ac_link) 2>&5
5187 echo "$as_me:5187: \$? = $ac_status" >&5
5188 (exit $ac_status); } &&
5189 { ac_try='test -s conftest$ac_exeext'
5190 { (eval echo "$as_me:5190: \"$ac_try\"") >&5
5193 echo "$as_me:5193: \$? = $ac_status" >&5
5194 (exit $ac_status); }; }; then
5195 ac_cv_lib_dl_dlsym=yes
5197 echo "$as_me: failed program was:" >&5
5198 cat conftest.$ac_ext >&5
5199 ac_cv_lib_dl_dlsym=no
5201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5202 LIBS=$ac_check_lib_save_LIBS
5204 echo "$as_me:5204: result: $ac_cv_lib_dl_dlsym" >&5
5205 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
5206 if test $ac_cv_lib_dl_dlsym = yes; then
5214 if test "$cf_have_dlsym" = yes ; then
5215 test "$cf_have_libdl" = yes && LIBS="-ldl $LIBS"
5217 echo "$as_me:5217: checking whether able to link to dl*() functions" >&5
5218 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
5219 cat >conftest.$ac_ext <<_ACEOF
5220 #line 5220 "configure"
5221 #include "confdefs.h"
5228 if ((obj = dlopen("filename", 0)) != 0) {
5229 if (dlsym(obj, "symbolname") == 0) {
5237 rm -f conftest.$ac_objext conftest$ac_exeext
5238 if { (eval echo "$as_me:5238: \"$ac_link\"") >&5
5239 (eval $ac_link) 2>&5
5241 echo "$as_me:5241: \$? = $ac_status" >&5
5242 (exit $ac_status); } &&
5243 { ac_try='test -s conftest$ac_exeext'
5244 { (eval echo "$as_me:5244: \"$ac_try\"") >&5
5247 echo "$as_me:5247: \$? = $ac_status" >&5
5248 (exit $ac_status); }; }; then
5250 cat >>confdefs.h <<\EOF
5251 #define HAVE_LIBDL 1
5255 echo "$as_me: failed program was:" >&5
5256 cat conftest.$ac_ext >&5
5258 { { echo "$as_me:5258: error: Cannot link test program for libdl" >&5
5259 echo "$as_me: error: Cannot link test program for libdl" >&2;}
5260 { (exit 1); exit 1; }; }
5262 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5263 echo "$as_me:5263: result: ok" >&5
5264 echo "${ECHO_T}ok" >&6
5266 { { echo "$as_me:5266: error: Cannot find dlsym function" >&5
5267 echo "$as_me: error: Cannot find dlsym function" >&2;}
5268 { (exit 1); exit 1; }; }
5271 if test "$with_gpm" != yes ; then
5272 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
5274 echo "${as_me:-configure}:5274: testing assuming soname for gpm is $with_gpm ..." 1>&5
5276 cf_cv_gpm_soname="$with_gpm"
5279 echo "$as_me:5279: checking for soname of gpm library" >&5
5280 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
5281 if test "${cf_cv_gpm_soname+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5285 cf_cv_gpm_soname=unknown
5286 if test "$cross_compiling" != yes ; then
5287 cat >conftest.$ac_ext <<CF_EOF
5291 if (Gpm_Open(0,0)) Gpm_Close();
5292 ${cf_cv_main_return:-return}(0);
5295 cf_save_LIBS="$LIBS"
5297 if { (eval echo "$as_me:5297: \"$ac_compile\"") >&5
5298 (eval $ac_compile) 2>&5
5300 echo "$as_me:5300: \$? = $ac_status" >&5
5301 (exit $ac_status); } ; then
5302 if { (eval echo "$as_me:5302: \"$ac_link\"") >&5
5303 (eval $ac_link) 2>&5
5305 echo "$as_me:5305: \$? = $ac_status" >&5
5306 (exit $ac_status); } ; then
5307 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
5308 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
5312 LIBS="$cf_save_LIBS"
5316 echo "$as_me:5316: result: $cf_cv_gpm_soname" >&5
5317 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
5320 test "$cf_cv_gpm_soname" != "unknown" && cat >>confdefs.h <<EOF
5321 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
5324 SHLIB_LIST="-ldl $SHLIB_LIST"
5326 SHLIB_LIST="-lgpm $SHLIB_LIST"
5327 TEST_LIBS="-lgpm $TEST_LIBS"
5329 cat >>confdefs.h <<\EOF
5330 #define HAVE_LIBGPM 1
5333 echo "$as_me:5333: checking for Gpm_Wgetch in -lgpm" >&5
5334 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
5335 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
5336 echo $ECHO_N "(cached) $ECHO_C" >&6
5338 ac_check_lib_save_LIBS=$LIBS
5340 cat >conftest.$ac_ext <<_ACEOF
5341 #line 5341 "configure"
5342 #include "confdefs.h"
5344 /* Override any gcc2 internal prototype to avoid an error. */
5348 /* We use char because int might match the return type of a gcc2
5349 builtin and then its argument prototype would still apply. */
5359 rm -f conftest.$ac_objext conftest$ac_exeext
5360 if { (eval echo "$as_me:5360: \"$ac_link\"") >&5
5361 (eval $ac_link) 2>&5
5363 echo "$as_me:5363: \$? = $ac_status" >&5
5364 (exit $ac_status); } &&
5365 { ac_try='test -s conftest$ac_exeext'
5366 { (eval echo "$as_me:5366: \"$ac_try\"") >&5
5369 echo "$as_me:5369: \$? = $ac_status" >&5
5370 (exit $ac_status); }; }; then
5371 ac_cv_lib_gpm_Gpm_Wgetch=yes
5373 echo "$as_me: failed program was:" >&5
5374 cat conftest.$ac_ext >&5
5375 ac_cv_lib_gpm_Gpm_Wgetch=no
5377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5378 LIBS=$ac_check_lib_save_LIBS
5380 echo "$as_me:5380: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
5381 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
5382 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
5384 echo "$as_me:5384: checking if GPM is weakly bound to curses library" >&5
5385 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
5386 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
5387 echo $ECHO_N "(cached) $ECHO_C" >&6
5390 cf_cv_check_gpm_wgetch=unknown
5391 if test "$cross_compiling" != yes ; then
5393 cat >conftest.$ac_ext <<CF_EOF
5398 ${cf_cv_main_return:-return}(0);
5402 cf_save_LIBS="$LIBS"
5403 # This only works if we can look at the symbol table. If a shared
5404 # library is stripped for install, we cannot use that. So we're forced
5405 # to rely on the static library, noting that some packagers may not
5407 LIBS="-static -lgpm -dynamic $LIBS"
5408 if { (eval echo "$as_me:5408: \"$ac_compile\"") >&5
5409 (eval $ac_compile) 2>&5
5411 echo "$as_me:5411: \$? = $ac_status" >&5
5412 (exit $ac_status); } ; then
5413 if { (eval echo "$as_me:5413: \"$ac_link\"") >&5
5414 (eval $ac_link) 2>&5
5416 echo "$as_me:5416: \$? = $ac_status" >&5
5417 (exit $ac_status); } ; then
5418 cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
5419 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
5420 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
5424 LIBS="$cf_save_LIBS"
5428 echo "$as_me:5428: result: $cf_cv_check_gpm_wgetch" >&5
5429 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
5431 if test "$cf_cv_check_gpm_wgetch" != yes ; then
5432 { echo "$as_me:5432: WARNING: GPM library is already linked with curses - read the FAQ" >&5
5433 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
5440 # not everyone has "test -c"
5441 if test -c /dev/sysmouse 2>/dev/null ; then
5442 echo "$as_me:5442: checking if you want to use sysmouse" >&5
5443 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
5445 # Check whether --with-sysmouse or --without-sysmouse was given.
5446 if test "${with_sysmouse+set}" = set; then
5447 withval="$with_sysmouse"
5448 cf_with_sysmouse=$withval
5450 cf_with_sysmouse=maybe
5452 if test "$cf_with_sysmouse" != no ; then
5453 cat >conftest.$ac_ext <<_ACEOF
5454 #line 5454 "configure"
5455 #include "confdefs.h"
5457 #include <osreldate.h>
5458 #if (__FreeBSD_version >= 400017)
5459 #include <sys/consio.h>
5460 #include <sys/fbio.h>
5462 #include <machine/console.h>
5469 struct mouse_info the_mouse;
5470 ioctl(0, CONS_MOUSECTL, &the_mouse);
5476 rm -f conftest.$ac_objext
5477 if { (eval echo "$as_me:5477: \"$ac_compile\"") >&5
5478 (eval $ac_compile) 2>&5
5480 echo "$as_me:5480: \$? = $ac_status" >&5
5481 (exit $ac_status); } &&
5482 { ac_try='test -s conftest.$ac_objext'
5483 { (eval echo "$as_me:5483: \"$ac_try\"") >&5
5486 echo "$as_me:5486: \$? = $ac_status" >&5
5487 (exit $ac_status); }; }; then
5488 cf_with_sysmouse=yes
5490 echo "$as_me: failed program was:" >&5
5491 cat conftest.$ac_ext >&5
5494 rm -f conftest.$ac_objext conftest.$ac_ext
5496 echo "$as_me:5496: result: $cf_with_sysmouse" >&5
5497 echo "${ECHO_T}$cf_with_sysmouse" >&6
5498 test "$cf_with_sysmouse" = yes && cat >>confdefs.h <<\EOF
5499 #define USE_SYSMOUSE 1
5504 if test X"$CC_G_OPT" = X"" ; then
5506 test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
5509 if test X"$CXX_G_OPT" = X"" ; then
5511 test -n "$GXX" && test "${ac_cv_prog_cxx_g}" != yes && CXX_G_OPT=''
5514 echo "$as_me:5514: checking for default loader flags" >&5
5515 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
5516 case $DFT_LWR_MODEL in
5517 libtool) LD_MODEL='' ;;
5518 normal) LD_MODEL='' ;;
5519 debug) LD_MODEL=$CC_G_OPT ;;
5520 profile) LD_MODEL='-pg';;
5521 shared) LD_MODEL='' ;;
5523 echo "$as_me:5523: result: $LD_MODEL" >&5
5524 echo "${ECHO_T}$LD_MODEL" >&6
5526 case $DFT_LWR_MODEL in
5529 echo "$as_me:5529: checking if rpath option should be used" >&5
5530 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
5532 # Check whether --enable-rpath or --disable-rpath was given.
5533 if test "${enable_rpath+set}" = set; then
5534 enableval="$enable_rpath"
5535 cf_cv_enable_rpath=$enableval
5537 cf_cv_enable_rpath=no
5539 echo "$as_me:5539: result: $cf_cv_enable_rpath" >&5
5540 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
5542 echo "$as_me:5542: checking if shared libraries should be relinked during install" >&5
5543 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
5545 # Check whether --enable-relink or --disable-relink was given.
5546 if test "${enable_relink+set}" = set; then
5547 enableval="$enable_relink"
5548 cf_cv_do_relink=$enableval
5552 echo "$as_me:5552: result: $cf_cv_do_relink" >&5
5553 echo "${ECHO_T}$cf_cv_do_relink" >&6
5558 echo "$as_me:5558: checking for an rpath option" >&5
5559 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
5560 case $cf_cv_system_name in #(vi
5562 if test "$GCC" = yes; then
5563 LD_RPATH_OPT="-Wl,-rpath,"
5565 LD_RPATH_OPT="-rpath "
5568 linux*|gnu*|k*bsd*-gnu) #(vi
5569 LD_RPATH_OPT="-Wl,-rpath,"
5571 openbsd[2-9].*|mirbsd*) #(vi
5572 LD_RPATH_OPT="-Wl,-rpath,"
5574 dragonfly*|freebsd*) #(vi
5575 LD_RPATH_OPT="-rpath "
5578 LD_RPATH_OPT="-Wl,-rpath,"
5581 LD_RPATH_OPT="-rpath "
5589 echo "$as_me:5589: result: $LD_RPATH_OPT" >&5
5590 echo "${ECHO_T}$LD_RPATH_OPT" >&6
5592 case "x$LD_RPATH_OPT" in #(vi
5594 echo "$as_me:5594: checking if we need a space after rpath option" >&5
5595 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
5596 cf_save_LIBS="$LIBS"
5597 LIBS="${LD_RPATH_OPT}$libdir $LIBS"
5598 cat >conftest.$ac_ext <<_ACEOF
5599 #line 5599 "configure"
5600 #include "confdefs.h"
5610 rm -f conftest.$ac_objext conftest$ac_exeext
5611 if { (eval echo "$as_me:5611: \"$ac_link\"") >&5
5612 (eval $ac_link) 2>&5
5614 echo "$as_me:5614: \$? = $ac_status" >&5
5615 (exit $ac_status); } &&
5616 { ac_try='test -s conftest$ac_exeext'
5617 { (eval echo "$as_me:5617: \"$ac_try\"") >&5
5620 echo "$as_me:5620: \$? = $ac_status" >&5
5621 (exit $ac_status); }; }; then
5624 echo "$as_me: failed program was:" >&5
5625 cat conftest.$ac_ext >&5
5628 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5629 LIBS="$cf_save_LIBS"
5630 echo "$as_me:5630: result: $cf_rpath_space" >&5
5631 echo "${ECHO_T}$cf_rpath_space" >&6
5632 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
5639 INSTALL_LIB="-m 644"
5641 cf_cv_do_symlinks=no
5643 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
5645 echo "$as_me:5645: checking if release/abi version should be used for shared libs" >&5
5646 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
5648 # Check whether --with-shlib-version or --without-shlib-version was given.
5649 if test "${with_shlib_version+set}" = set; then
5650 withval="$with_shlib_version"
5651 test -z "$withval" && withval=auto
5652 case $withval in #(vi
5654 cf_cv_shlib_version=auto
5656 rel|abi|auto|no) #(vi
5657 cf_cv_shlib_version=$withval
5660 { { echo "$as_me:5660: error: option value must be one of: rel, abi, auto or no" >&5
5661 echo "$as_me: error: option value must be one of: rel, abi, auto or no" >&2;}
5662 { (exit 1); exit 1; }; }
5667 cf_cv_shlib_version=auto
5669 echo "$as_me:5669: result: $cf_cv_shlib_version" >&5
5670 echo "${ECHO_T}$cf_cv_shlib_version" >&6
5674 # Some less-capable ports of gcc support only -fpic
5676 if test "$GCC" = yes
5678 echo "$as_me:5678: checking which $CC option to use" >&5
5679 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
5680 cf_save_CFLAGS="$CFLAGS"
5681 for CC_SHARED_OPTS in -fPIC -fpic ''
5683 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
5684 cat >conftest.$ac_ext <<_ACEOF
5685 #line 5685 "configure"
5686 #include "confdefs.h"
5696 rm -f conftest.$ac_objext
5697 if { (eval echo "$as_me:5697: \"$ac_compile\"") >&5
5698 (eval $ac_compile) 2>&5
5700 echo "$as_me:5700: \$? = $ac_status" >&5
5701 (exit $ac_status); } &&
5702 { ac_try='test -s conftest.$ac_objext'
5703 { (eval echo "$as_me:5703: \"$ac_try\"") >&5
5706 echo "$as_me:5706: \$? = $ac_status" >&5
5707 (exit $ac_status); }; }; then
5710 echo "$as_me: failed program was:" >&5
5711 cat conftest.$ac_ext >&5
5713 rm -f conftest.$ac_objext conftest.$ac_ext
5715 echo "$as_me:5715: result: $CC_SHARED_OPTS" >&5
5716 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
5717 CFLAGS="$cf_save_CFLAGS"
5720 cf_cv_shlib_version_infix=no
5722 case $cf_cv_system_name in #(vi
5723 aix4.3-9*|aix[5-7]*) #(vi
5724 if test "$GCC" = yes; then
5726 MK_SHARED_LIB='${CC} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
5728 # CC_SHARED_OPTS='-qpic=large -G'
5729 # perhaps "-bM:SRE -bnoentry -bexpall"
5730 MK_SHARED_LIB='${CC} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
5734 MK_SHARED_LIB='${CC} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
5738 MK_SHARED_LIB='sh ../mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5739 cf_cv_shlib_version=cygdll
5740 cf_cv_shlib_version_infix=cygdll
5741 cat >mk_shared_lib.sh <<-CF_EOF
5744 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
5747 Linking shared library
5748 ** SHARED_LIB \$SHARED_LIB
5749 ** IMPORT_LIB \$IMPORT_LIB
5751 exec \$* -shared -Wl,--out-implib=../lib/\${IMPORT_LIB} -Wl,--export-all-symbols -o ../lib/\${SHARED_LIB}
5753 chmod +x mk_shared_lib.sh
5756 EXTRA_CFLAGS="-no-cpp-precomp"
5757 CC_SHARED_OPTS="-dynamic"
5758 MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
5759 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
5760 cf_cv_shlib_version_infix=yes
5761 echo "$as_me:5761: checking if ld -search_paths_first works" >&5
5762 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
5763 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
5764 echo $ECHO_N "(cached) $ECHO_C" >&6
5767 cf_save_LDFLAGS=$LDFLAGS
5768 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5769 cat >conftest.$ac_ext <<_ACEOF
5770 #line 5770 "configure"
5771 #include "confdefs.h"
5781 rm -f conftest.$ac_objext conftest$ac_exeext
5782 if { (eval echo "$as_me:5782: \"$ac_link\"") >&5
5783 (eval $ac_link) 2>&5
5785 echo "$as_me:5785: \$? = $ac_status" >&5
5786 (exit $ac_status); } &&
5787 { ac_try='test -s conftest$ac_exeext'
5788 { (eval echo "$as_me:5788: \"$ac_try\"") >&5
5791 echo "$as_me:5791: \$? = $ac_status" >&5
5792 (exit $ac_status); }; }; then
5793 cf_cv_ldflags_search_paths_first=yes
5795 echo "$as_me: failed program was:" >&5
5796 cat conftest.$ac_ext >&5
5797 cf_cv_ldflags_search_paths_first=no
5799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5800 LDFLAGS=$cf_save_LDFLAGS
5802 echo "$as_me:5802: result: $cf_cv_ldflags_search_paths_first" >&5
5803 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
5804 if test $cf_cv_ldflags_search_paths_first = yes; then
5805 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5809 # (tested with gcc 2.7.2 -- I don't have c89)
5810 if test "$GCC" = yes; then
5811 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
5814 LD_SHARED_OPTS='-Wl,+b,${libdir}'
5816 MK_SHARED_LIB='${LD} +b ${libdir} -b -o $@'
5817 # HP-UX shared libraries must be executable, and should be
5818 # readonly to exploit a quirk in the memory manager.
5819 INSTALL_LIB="-m 555"
5822 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5823 if test "$cf_cv_shlib_version" = rel; then
5824 cf_shared_soname='`basename .${REL_VERSION}`.${ABI_VERSION}'
5826 cf_shared_soname='`basename `'
5829 MK_SHARED_LIB='${CC} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o '
5832 if test "$cf_cv_enable_rpath" = yes ; then
5833 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5835 # tested with IRIX 5.2 and 'cc'.
5836 if test "$GCC" != yes; then
5837 CC_SHARED_OPTS='-KPIC'
5838 MK_SHARED_LIB='${CC} -shared -rdata_shared -soname `basename $@` -o $@'
5840 MK_SHARED_LIB='${CC} -shared -Wl,-soname,`basename $@` -o $@'
5842 cf_cv_rm_so_locs=yes
5844 linux*|gnu*|k*bsd*-gnu) #(vi
5845 if test "$DFT_LWR_MODEL" = "shared" ; then
5846 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5847 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5849 if test "$cf_cv_enable_rpath" = yes ; then
5850 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5853 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5854 if test "$cf_cv_shlib_version" = rel; then
5855 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5857 cf_cv_shared_soname='`basename $@`'
5860 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5862 openbsd[2-9].*|mirbsd*) #(vi
5863 if test "$DFT_LWR_MODEL" = "shared" ; then
5864 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5865 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5867 if test "$cf_cv_enable_rpath" = yes ; then
5868 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5870 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5872 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5873 if test "$cf_cv_shlib_version" = rel; then
5874 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5876 cf_cv_shared_soname='`basename $@`'
5879 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5881 nto-qnx*|openbsd*|freebsd[12].*) #(vi
5882 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5883 MK_SHARED_LIB='${LD} -Bshareable -o $@'
5884 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5886 dragonfly*|freebsd*) #(vi
5887 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5888 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
5889 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
5890 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
5891 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5894 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5895 if test "$cf_cv_shlib_version" = rel; then
5896 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5898 cf_cv_shared_soname='`basename $@`'
5901 MK_SHARED_LIB='${LD} -shared -Bshareable -soname=`basename $@` -o $@'
5904 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5905 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
5906 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
5907 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5908 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5909 if test "$cf_cv_shlib_version" = auto; then
5910 if test -f /usr/libexec/ld.elf_so; then
5911 cf_cv_shlib_version=abi
5913 cf_cv_shlib_version=rel
5917 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5918 if test "$cf_cv_shlib_version" = rel; then
5919 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5921 cf_cv_shared_soname='`basename $@`'
5924 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
5926 MK_SHARED_LIB='${LD} -shared -Bshareable -o $@'
5930 # tested with OSF/1 V3.2 and 'cc'
5931 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
5932 # link with shared libs).
5933 MK_SHARED_LIB='${LD} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
5934 case $host_os in #(vi
5936 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
5939 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
5940 if test "$DFT_LWR_MODEL" = "shared" ; then
5941 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5942 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5944 cf_cv_rm_so_locs=yes
5946 sco3.2v5*) # (also uw2* and UW7: hops 13-Apr-98
5947 # tested with osr5.0.5
5948 if test "$GCC" != yes; then
5949 CC_SHARED_OPTS='-belf -KPIC'
5951 MK_SHARED_LIB='${LD} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
5952 if test "$cf_cv_enable_rpath" = yes ; then
5953 # only way is to set LD_RUN_PATH but no switch for it
5956 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5957 LINK_PROGS='LD_RUN_PATH=${libdir}'
5958 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
5961 # tested with SunOS 4.1.1 and gcc 2.7.0
5962 if test "$GCC" != yes; then
5963 CC_SHARED_OPTS='-KPIC'
5965 MK_SHARED_LIB='${LD} -assert pure-text -o $@'
5966 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5969 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
5970 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
5971 if test "$DFT_LWR_MODEL" = "shared" ; then
5972 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
5973 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5975 if test "$cf_cv_enable_rpath" = yes ; then
5976 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
5979 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5980 if test "$cf_cv_shlib_version" = rel; then
5981 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5983 cf_cv_shared_soname='`basename $@`'
5986 if test "$GCC" != yes; then
5987 cf_save_CFLAGS="$CFLAGS"
5988 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
5990 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
5991 cat >conftest.$ac_ext <<_ACEOF
5992 #line 5992 "configure"
5993 #include "confdefs.h"
6003 rm -f conftest.$ac_objext
6004 if { (eval echo "$as_me:6004: \"$ac_compile\"") >&5
6005 (eval $ac_compile) 2>&5
6007 echo "$as_me:6007: \$? = $ac_status" >&5
6008 (exit $ac_status); } &&
6009 { ac_try='test -s conftest.$ac_objext'
6010 { (eval echo "$as_me:6010: \"$ac_try\"") >&5
6013 echo "$as_me:6013: \$? = $ac_status" >&5
6014 (exit $ac_status); }; }; then
6017 echo "$as_me: failed program was:" >&5
6018 cat conftest.$ac_ext >&5
6020 rm -f conftest.$ac_objext conftest.$ac_ext
6022 CFLAGS="$cf_save_CFLAGS"
6023 CC_SHARED_OPTS=$cf_shared_opts
6024 MK_SHARED_LIB='${CC} -dy -G -h '$cf_cv_shared_soname' -o $@'
6026 MK_SHARED_LIB='${CC} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
6029 sysv5uw7*|unix_sv*) #(vi
6030 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
6031 if test "$GCC" != yes; then
6032 CC_SHARED_OPTS='-KPIC'
6034 MK_SHARED_LIB='${LD} -d y -G -o $@'
6037 CC_SHARED_OPTS='unknown'
6038 MK_SHARED_LIB='echo unknown'
6042 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
6043 case "$cf_cv_shlib_version" in #(vi
6045 case "$MK_SHARED_LIB" in #(vi
6047 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
6050 { echo "$as_me:6050: WARNING: ignored --with-shlib-version" >&5
6051 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
6057 # RPATH_LIST is a colon-separated list of directories
6058 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
6059 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
6061 if test "$CC_SHARED_OPTS" = "unknown"; then
6062 for model in $cf_list_models; do
6063 if test "$model" = "shared"; then
6064 { { echo "$as_me:6064: error: Shared libraries are not supported in this version" >&5
6065 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
6066 { (exit 1); exit 1; }; }
6071 ### If we're building with rpath, try to link non-standard libs that way too.
6072 if test "$DFT_LWR_MODEL" = "shared"; then
6074 echo "$as_me:6074: checking if rpath-hack should be disabled" >&5
6075 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
6077 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
6078 if test "${enable_rpath_hack+set}" = set; then
6079 enableval="$enable_rpath_hack"
6080 test "$enableval" != no && enableval=yes
6081 if test "$enableval" != "yes" ; then
6082 cf_disable_rpath_hack=yes
6084 cf_disable_rpath_hack=no
6088 cf_disable_rpath_hack=no
6091 echo "$as_me:6091: result: $cf_disable_rpath_hack" >&5
6092 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
6093 if test "$cf_disable_rpath_hack" = no ; then
6095 echo "$as_me:6095: checking for updated LDFLAGS" >&5
6096 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
6097 if test -n "$LD_RPATH_OPT" ; then
6098 echo "$as_me:6098: result: maybe" >&5
6099 echo "${ECHO_T}maybe" >&6
6103 # Extract the first word of "$ac_prog", so it can be a program name with args.
6104 set dummy $ac_prog; ac_word=$2
6105 echo "$as_me:6105: checking for $ac_word" >&5
6106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6107 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6110 if test -n "$cf_ldd_prog"; then
6111 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
6113 ac_save_IFS=$IFS; IFS=$ac_path_separator
6115 for ac_dir in $ac_dummy; do
6117 test -z "$ac_dir" && ac_dir=.
6118 $as_executable_p "$ac_dir/$ac_word" || continue
6119 ac_cv_prog_cf_ldd_prog="$ac_prog"
6120 echo "$as_me:6120: found $ac_dir/$ac_word" >&5
6126 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
6127 if test -n "$cf_ldd_prog"; then
6128 echo "$as_me:6128: result: $cf_ldd_prog" >&5
6129 echo "${ECHO_T}$cf_ldd_prog" >&6
6131 echo "$as_me:6131: result: no" >&5
6132 echo "${ECHO_T}no" >&6
6135 test -n "$cf_ldd_prog" && break
6137 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
6139 cf_rpath_list="/usr/lib /lib"
6140 if test "$cf_ldd_prog" != no
6144 cat >conftest.$ac_ext <<_ACEOF
6145 #line 6145 "configure"
6146 #include "confdefs.h"
6156 rm -f conftest.$ac_objext conftest$ac_exeext
6157 if { (eval echo "$as_me:6157: \"$ac_link\"") >&5
6158 (eval $ac_link) 2>&5
6160 echo "$as_me:6160: \$? = $ac_status" >&5
6161 (exit $ac_status); } &&
6162 { ac_try='test -s conftest$ac_exeext'
6163 { (eval echo "$as_me:6163: \"$ac_try\"") >&5
6166 echo "$as_me:6166: \$? = $ac_status" >&5
6167 (exit $ac_status); }; }; then
6168 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort -u`
6169 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort -u`
6171 echo "$as_me: failed program was:" >&5
6172 cat conftest.$ac_ext >&5
6174 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6176 # If we passed the link-test, but get a "not found" on a given library,
6177 # this could be due to inept reconfiguration of gcc to make it only
6178 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
6179 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
6180 # /usr/local libraries.
6181 if test -n "$cf_rpath_oops"
6183 for cf_rpath_src in $cf_rpath_oops
6185 for cf_rpath_dir in \
6190 if test -f $cf_rpath_dir/lib/$cf_rpath_src
6192 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
6194 echo "${as_me:-configure}:6194: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
6196 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
6204 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
6206 echo "${as_me:-configure}:6206: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
6208 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
6210 echo "${as_me:-configure}:6210: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
6213 for cf_rpath_src in $LDFLAGS
6215 case $cf_rpath_src in #(vi
6218 # check if this refers to a directory which we will ignore
6220 if test -n "$cf_rpath_list"
6222 for cf_rpath_item in $cf_rpath_list
6224 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
6232 if test "$cf_rpath_skip" = no
6234 # transform the option
6235 if test "$LD_RPATH_OPT" = "-R " ; then
6236 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
6238 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
6241 # if we have not already added this, add it now
6242 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
6243 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
6245 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
6247 echo "${as_me:-configure}:6247: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
6249 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
6254 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
6256 LDFLAGS=$cf_rpath_dst
6258 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
6260 echo "${as_me:-configure}:6260: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
6262 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
6264 echo "${as_me:-configure}:6264: testing ...checking LIBS $LIBS ..." 1>&5
6267 for cf_rpath_src in $LIBS
6269 case $cf_rpath_src in #(vi
6272 # check if this refers to a directory which we will ignore
6274 if test -n "$cf_rpath_list"
6276 for cf_rpath_item in $cf_rpath_list
6278 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
6286 if test "$cf_rpath_skip" = no
6288 # transform the option
6289 if test "$LD_RPATH_OPT" = "-R " ; then
6290 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
6292 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
6295 # if we have not already added this, add it now
6296 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
6297 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
6299 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
6301 echo "${as_me:-configure}:6301: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
6303 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
6308 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
6312 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
6314 echo "${as_me:-configure}:6314: testing ...checked LIBS $LIBS ..." 1>&5
6316 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
6318 echo "${as_me:-configure}:6318: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
6326 ###############################################################################
6328 ### use option --disable-overwrite to leave out the link to -lcurses
6329 echo "$as_me:6329: checking if you wish to install ncurses overwriting curses" >&5
6330 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
6332 # Check whether --enable-overwrite or --disable-overwrite was given.
6333 if test "${enable_overwrite+set}" = set; then
6334 enableval="$enable_overwrite"
6335 with_overwrite=$enableval
6337 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
6339 echo "$as_me:6339: result: $with_overwrite" >&5
6340 echo "${ECHO_T}$with_overwrite" >&6
6342 echo "$as_me:6342: checking if external terminfo-database is used" >&5
6343 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
6345 # Check whether --enable-database or --disable-database was given.
6346 if test "${enable_database+set}" = set; then
6347 enableval="$enable_database"
6348 use_database=$enableval
6352 echo "$as_me:6352: result: $use_database" >&5
6353 echo "${ECHO_T}$use_database" >&6
6355 case $host_os in #(vi
6357 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
6360 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
6364 if test "$use_database" != no ; then
6365 cat >>confdefs.h <<\EOF
6366 #define USE_DATABASE 1
6369 echo "$as_me:6369: checking which terminfo source-file will be installed" >&5
6370 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
6372 # Check whether --with-database or --without-database was given.
6373 if test "${with_database+set}" = set; then
6374 withval="$with_database"
6375 TERMINFO_SRC=$withval
6377 echo "$as_me:6377: result: $TERMINFO_SRC" >&5
6378 echo "${ECHO_T}$TERMINFO_SRC" >&6
6380 echo "$as_me:6380: checking whether to use hashed database instead of directory/tree" >&5
6381 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
6383 # Check whether --with-hashed-db or --without-hashed-db was given.
6384 if test "${with_hashed_db+set}" = set; then
6385 withval="$with_hashed_db"
6390 echo "$as_me:6390: result: $with_hashed_db" >&5
6391 echo "${ECHO_T}$with_hashed_db" >&6
6396 echo "$as_me:6396: checking for list of fallback descriptions" >&5
6397 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
6399 # Check whether --with-fallbacks or --without-fallbacks was given.
6400 if test "${with_fallbacks+set}" = set; then
6401 withval="$with_fallbacks"
6402 with_fallback=$withval
6406 echo "$as_me:6406: result: $with_fallback" >&5
6407 echo "${ECHO_T}$with_fallback" >&6
6408 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
6410 echo "$as_me:6410: checking if you want modern xterm or antique" >&5
6411 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
6413 # Check whether --with-xterm-new or --without-xterm-new was given.
6414 if test "${with_xterm_new+set}" = set; then
6415 withval="$with_xterm_new"
6416 with_xterm_new=$withval
6420 case $with_xterm_new in
6421 no) with_xterm_new=xterm-old;;
6422 *) with_xterm_new=xterm-new;;
6424 echo "$as_me:6424: result: $with_xterm_new" >&5
6425 echo "${ECHO_T}$with_xterm_new" >&6
6426 WHICH_XTERM=$with_xterm_new
6428 echo "$as_me:6428: checking if xterm backspace sends BS or DEL" >&5
6429 echo $ECHO_N "checking if xterm backspace sends BS or DEL... $ECHO_C" >&6
6431 # Check whether --with-xterm-kbs or --without-xterm-kbs was given.
6432 if test "${with_xterm_kbs+set}" = set; then
6433 withval="$with_xterm_kbs"
6434 with_xterm_kbs=$withval
6438 case x$with_xterm_kbs in
6439 xyes|xno|xBS|xbs|x8)
6446 with_xterm_kbs=$withval
6449 echo "$as_me:6449: result: $with_xterm_kbs" >&5
6450 echo "${ECHO_T}$with_xterm_kbs" >&6
6451 XTERM_KBS=$with_xterm_kbs
6454 if test "$use_database" = no ; then
6455 TERMINFO="${datadir}/terminfo"
6459 echo "$as_me:6459: checking for list of terminfo directories" >&5
6460 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
6462 case $cf_cv_system_name in
6463 os2*) PATH_SEPARATOR=';' ;;
6464 *) PATH_SEPARATOR=':' ;;
6467 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
6468 if test "${with_terminfo_dirs+set}" = set; then
6469 withval="$with_terminfo_dirs"
6472 withval=${TERMINFO_DIRS:-${datadir}/terminfo}
6474 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
6476 for cf_src_path in $withval
6479 if test "x$prefix" != xNONE; then
6480 cf_path_syntax="$prefix"
6482 cf_path_syntax="$ac_default_prefix"
6485 case ".$cf_src_path" in #(vi
6486 .\$\(*\)*|.\'*\'*) #(vi
6490 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6493 eval cf_src_path="$cf_src_path"
6494 case ".$cf_src_path" in #(vi
6496 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6501 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6504 { { echo "$as_me:6504: error: expected a pathname, not \"$cf_src_path\"" >&5
6505 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
6506 { (exit 1); exit 1; }; }
6510 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
6511 cf_dst_path="${cf_dst_path}${cf_src_path}"
6515 eval 'TERMINFO_DIRS="$cf_dst_path"'
6517 echo "$as_me:6517: result: $TERMINFO_DIRS" >&5
6518 echo "${ECHO_T}$TERMINFO_DIRS" >&6
6519 test -n "$TERMINFO_DIRS" && cat >>confdefs.h <<EOF
6520 #define TERMINFO_DIRS "$TERMINFO_DIRS"
6523 echo "$as_me:6523: checking for default terminfo directory" >&5
6524 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
6526 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
6527 if test "${with_default_terminfo_dir+set}" = set; then
6528 withval="$with_default_terminfo_dir"
6531 withval="${TERMINFO:-${datadir}/terminfo}"
6532 fi; if test -n "${datadir}/terminfo" ; then
6534 if test "x$prefix" != xNONE; then
6535 cf_path_syntax="$prefix"
6537 cf_path_syntax="$ac_default_prefix"
6540 case ".$withval" in #(vi
6541 .\$\(*\)*|.\'*\'*) #(vi
6545 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6548 eval withval="$withval"
6549 case ".$withval" in #(vi
6551 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
6556 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
6559 { { echo "$as_me:6559: error: expected a pathname, not \"$withval\"" >&5
6560 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
6561 { (exit 1); exit 1; }; }
6568 echo "$as_me:6568: result: $TERMINFO" >&5
6569 echo "${ECHO_T}$TERMINFO" >&6
6570 cat >>confdefs.h <<EOF
6571 #define TERMINFO "$TERMINFO"
6576 ### use option --disable-big-core to make tic run on small machines
6577 ### We need 4Mb, check if we can allocate 50% more than that.
6578 echo "$as_me:6578: checking if big-core option selected" >&5
6579 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
6581 # Check whether --enable-big-core or --disable-big-core was given.
6582 if test "${enable_big_core+set}" = set; then
6583 enableval="$enable_big_core"
6584 with_big_core=$enableval
6586 if test "$cross_compiling" = yes; then
6589 cat >conftest.$ac_ext <<_ACEOF
6590 #line 6590 "configure"
6591 #include "confdefs.h"
6596 unsigned long n = 6000000L;
6597 char *s = malloc(n);
6600 ${cf_cv_main_return:-return}(s == 0);
6603 rm -f conftest$ac_exeext
6604 if { (eval echo "$as_me:6604: \"$ac_link\"") >&5
6605 (eval $ac_link) 2>&5
6607 echo "$as_me:6607: \$? = $ac_status" >&5
6608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6609 { (eval echo "$as_me:6609: \"$ac_try\"") >&5
6612 echo "$as_me:6612: \$? = $ac_status" >&5
6613 (exit $ac_status); }; }; then
6616 echo "$as_me: program exited with status $ac_status" >&5
6617 echo "$as_me: failed program was:" >&5
6618 cat conftest.$ac_ext >&5
6621 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6624 echo "$as_me:6624: result: $with_big_core" >&5
6625 echo "${ECHO_T}$with_big_core" >&6
6626 test "$with_big_core" = "yes" && cat >>confdefs.h <<\EOF
6627 #define HAVE_BIG_CORE 1
6630 ### ISO C only guarantees 512-char strings, we have tables which load faster
6631 ### when constructed using "big" strings. More than the C compiler, the awk
6632 ### program is a limit on most vendor UNIX systems. Check that we can build.
6633 echo "$as_me:6633: checking if big-strings option selected" >&5
6634 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
6636 # Check whether --enable-big-strings or --disable-big-strings was given.
6637 if test "${enable_big_strings+set}" = set; then
6638 enableval="$enable_big_strings"
6639 with_big_strings=$enableval
6644 eval with_big_strings=no
6647 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' 2>/dev/null \
6648 | $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
6649 eval with_big_strings=yes
6651 eval with_big_strings=no
6657 echo "$as_me:6657: result: $with_big_strings" >&5
6658 echo "${ECHO_T}$with_big_strings" >&6
6661 test "$with_big_strings" = "yes" && USE_BIG_STRINGS=1
6663 ### use option --enable-termcap to compile in the termcap fallback support
6664 echo "$as_me:6664: checking if you want termcap-fallback support" >&5
6665 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
6667 # Check whether --enable-termcap or --disable-termcap was given.
6668 if test "${enable_termcap+set}" = set; then
6669 enableval="$enable_termcap"
6670 with_termcap=$enableval
6674 echo "$as_me:6674: result: $with_termcap" >&5
6675 echo "${ECHO_T}$with_termcap" >&6
6677 if test "$with_termcap" != "yes" ; then
6678 if test "$use_database" = no ; then
6679 if test -z "$with_fallback" ; then
6680 { { echo "$as_me:6680: error: You have disabled the database w/o specifying fallbacks" >&5
6681 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
6682 { (exit 1); exit 1; }; }
6685 cat >>confdefs.h <<\EOF
6686 #define PURE_TERMINFO 1
6691 if test "$with_ticlib" != no ; then
6692 { { echo "$as_me:6692: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
6693 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
6694 { (exit 1); exit 1; }; }
6697 cat >>confdefs.h <<\EOF
6698 #define USE_TERMCAP 1
6701 echo "$as_me:6701: checking for list of termcap files" >&5
6702 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
6704 # Check whether --with-termpath or --without-termpath was given.
6705 if test "${with_termpath+set}" = set; then
6706 withval="$with_termpath"
6709 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap}
6711 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
6713 for cf_src_path in $withval
6716 if test "x$prefix" != xNONE; then
6717 cf_path_syntax="$prefix"
6719 cf_path_syntax="$ac_default_prefix"
6722 case ".$cf_src_path" in #(vi
6723 .\$\(*\)*|.\'*\'*) #(vi
6727 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6730 eval cf_src_path="$cf_src_path"
6731 case ".$cf_src_path" in #(vi
6733 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6738 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6741 { { echo "$as_me:6741: error: expected a pathname, not \"$cf_src_path\"" >&5
6742 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
6743 { (exit 1); exit 1; }; }
6747 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
6748 cf_dst_path="${cf_dst_path}${cf_src_path}"
6752 eval 'TERMPATH="$cf_dst_path"'
6754 echo "$as_me:6754: result: $TERMPATH" >&5
6755 echo "${ECHO_T}$TERMPATH" >&6
6756 test -n "$TERMPATH" && cat >>confdefs.h <<EOF
6757 #define TERMPATH "$TERMPATH"
6760 ### use option --enable-getcap to use a hacked getcap for reading termcaps
6761 echo "$as_me:6761: checking if fast termcap-loader is needed" >&5
6762 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
6764 # Check whether --enable-getcap or --disable-getcap was given.
6765 if test "${enable_getcap+set}" = set; then
6766 enableval="$enable_getcap"
6767 with_getcap=$enableval
6771 echo "$as_me:6771: result: $with_getcap" >&5
6772 echo "${ECHO_T}$with_getcap" >&6
6773 test "$with_getcap" = "yes" && cat >>confdefs.h <<\EOF
6774 #define USE_GETCAP 1
6777 echo "$as_me:6777: checking if translated termcaps will be cached in ~/.terminfo" >&5
6778 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
6780 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
6781 if test "${enable_getcap_cache+set}" = set; then
6782 enableval="$enable_getcap_cache"
6783 with_getcap_cache=$enableval
6785 with_getcap_cache=no
6787 echo "$as_me:6787: result: $with_getcap_cache" >&5
6788 echo "${ECHO_T}$with_getcap_cache" >&6
6789 test "$with_getcap_cache" = "yes" && cat >>confdefs.h <<\EOF
6790 #define USE_GETCAP_CACHE 1
6795 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
6796 echo "$as_me:6796: checking if ~/.terminfo is wanted" >&5
6797 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
6799 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
6800 if test "${enable_home_terminfo+set}" = set; then
6801 enableval="$enable_home_terminfo"
6802 with_home_terminfo=$enableval
6804 with_home_terminfo=yes
6806 echo "$as_me:6806: result: $with_home_terminfo" >&5
6807 echo "${ECHO_T}$with_home_terminfo" >&6
6808 test "$with_home_terminfo" = "yes" && cat >>confdefs.h <<\EOF
6809 #define USE_HOME_TERMINFO 1
6812 echo "$as_me:6812: checking if you want to use restricted environment when running as root" >&5
6813 echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6
6815 # Check whether --enable-root-environ or --disable-root-environ was given.
6816 if test "${enable_root_environ+set}" = set; then
6817 enableval="$enable_root_environ"
6818 with_root_environ=$enableval
6820 with_root_environ=yes
6822 echo "$as_me:6822: result: $with_root_environ" >&5
6823 echo "${ECHO_T}$with_root_environ" >&6
6824 test "$with_root_environ" = yes && cat >>confdefs.h <<\EOF
6825 #define USE_ROOT_ENVIRON 1
6828 ### Use option --enable-symlinks to make tic use symlinks, not hard links
6829 ### to reduce storage requirements for the terminfo database.
6835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6836 echo "$as_me:6836: checking for $ac_func" >&5
6837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6838 if eval "test \"\${$as_ac_var+set}\" = set"; then
6839 echo $ECHO_N "(cached) $ECHO_C" >&6
6841 cat >conftest.$ac_ext <<_ACEOF
6842 #line 6842 "configure"
6843 #include "confdefs.h"
6844 /* System header to define __stub macros and hopefully few prototypes,
6845 which can conflict with char $ac_func (); below. */
6847 /* Override any gcc2 internal prototype to avoid an error. */
6851 /* We use char because int might match the return type of a gcc2
6852 builtin and then its argument prototype would still apply. */
6859 /* The GNU C library defines this for functions which it implements
6860 to always fail with ENOSYS. Some functions are actually named
6861 something starting with __ and the normal name is an alias. */
6862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6872 rm -f conftest.$ac_objext conftest$ac_exeext
6873 if { (eval echo "$as_me:6873: \"$ac_link\"") >&5
6874 (eval $ac_link) 2>&5
6876 echo "$as_me:6876: \$? = $ac_status" >&5
6877 (exit $ac_status); } &&
6878 { ac_try='test -s conftest$ac_exeext'
6879 { (eval echo "$as_me:6879: \"$ac_try\"") >&5
6882 echo "$as_me:6882: \$? = $ac_status" >&5
6883 (exit $ac_status); }; }; then
6884 eval "$as_ac_var=yes"
6886 echo "$as_me: failed program was:" >&5
6887 cat conftest.$ac_ext >&5
6888 eval "$as_ac_var=no"
6890 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6892 echo "$as_me:6892: result: `eval echo '${'$as_ac_var'}'`" >&5
6893 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6894 if test `eval echo '${'$as_ac_var'}'` = yes; then
6895 cat >>confdefs.h <<EOF
6896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6902 if test "$cross_compiling" = yes ; then
6908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6909 echo "$as_me:6909: checking for $ac_func" >&5
6910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6911 if eval "test \"\${$as_ac_var+set}\" = set"; then
6912 echo $ECHO_N "(cached) $ECHO_C" >&6
6914 cat >conftest.$ac_ext <<_ACEOF
6915 #line 6915 "configure"
6916 #include "confdefs.h"
6917 /* System header to define __stub macros and hopefully few prototypes,
6918 which can conflict with char $ac_func (); below. */
6920 /* Override any gcc2 internal prototype to avoid an error. */
6924 /* We use char because int might match the return type of a gcc2
6925 builtin and then its argument prototype would still apply. */
6932 /* The GNU C library defines this for functions which it implements
6933 to always fail with ENOSYS. Some functions are actually named
6934 something starting with __ and the normal name is an alias. */
6935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6945 rm -f conftest.$ac_objext conftest$ac_exeext
6946 if { (eval echo "$as_me:6946: \"$ac_link\"") >&5
6947 (eval $ac_link) 2>&5
6949 echo "$as_me:6949: \$? = $ac_status" >&5
6950 (exit $ac_status); } &&
6951 { ac_try='test -s conftest$ac_exeext'
6952 { (eval echo "$as_me:6952: \"$ac_try\"") >&5
6955 echo "$as_me:6955: \$? = $ac_status" >&5
6956 (exit $ac_status); }; }; then
6957 eval "$as_ac_var=yes"
6959 echo "$as_me: failed program was:" >&5
6960 cat conftest.$ac_ext >&5
6961 eval "$as_ac_var=no"
6963 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6965 echo "$as_me:6965: result: `eval echo '${'$as_ac_var'}'`" >&5
6966 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6967 if test `eval echo '${'$as_ac_var'}'` = yes; then
6968 cat >>confdefs.h <<EOF
6969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6976 echo "$as_me:6976: checking if link/symlink functions work" >&5
6977 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
6978 if test "${cf_cv_link_funcs+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
6983 for cf_func in link symlink ; do
6984 if test "$cross_compiling" = yes; then
6986 eval 'ac_cv_func_'$cf_func'=error'
6988 cat >conftest.$ac_ext <<_ACEOF
6989 #line 6989 "configure"
6990 #include "confdefs.h"
6992 #include <sys/types.h>
6993 #include <sys/stat.h>
6994 #ifdef HAVE_UNISTD_H
7000 char *src = "config.log";
7001 char *dst = "conftest.chk";
7006 fail = ($cf_func("config.log", "conftest.chk") < 0)
7007 || (stat(dst, &dst_sb) < 0)
7008 || (dst_sb.st_mtime != src_sb.st_mtime);
7014 ${cf_cv_main_return:-return} (fail);
7018 rm -f conftest$ac_exeext
7019 if { (eval echo "$as_me:7019: \"$ac_link\"") >&5
7020 (eval $ac_link) 2>&5
7022 echo "$as_me:7022: \$? = $ac_status" >&5
7023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7024 { (eval echo "$as_me:7024: \"$ac_try\"") >&5
7027 echo "$as_me:7027: \$? = $ac_status" >&5
7028 (exit $ac_status); }; }; then
7030 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
7031 eval 'ac_cv_func_'$cf_func'=yes'
7033 echo "$as_me: program exited with status $ac_status" >&5
7034 echo "$as_me: failed program was:" >&5
7035 cat conftest.$ac_ext >&5
7037 eval 'ac_cv_func_'$cf_func'=no'
7039 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7042 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
7045 echo "$as_me:7045: result: $cf_cv_link_funcs" >&5
7046 echo "${ECHO_T}$cf_cv_link_funcs" >&6
7047 test "$ac_cv_func_link" = yes && cat >>confdefs.h <<\EOF
7051 test "$ac_cv_func_symlink" = yes && cat >>confdefs.h <<\EOF
7052 #define HAVE_SYMLINK 1
7060 # soft links (symbolic links) are useful for some systems where hard links do
7061 # not work, or to make it simpler to copy terminfo trees around.
7062 if test "$ac_cv_func_symlink" = yes ; then
7063 echo "$as_me:7063: checking if tic should use symbolic links" >&5
7064 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
7066 # Check whether --enable-symlinks or --disable-symlinks was given.
7067 if test "${enable_symlinks+set}" = set; then
7068 enableval="$enable_symlinks"
7069 with_symlinks=$enableval
7073 echo "$as_me:7073: result: $with_symlinks" >&5
7074 echo "${ECHO_T}$with_symlinks" >&6
7077 # If we have hard links and did not choose to use soft links instead, there is
7078 # no reason to make this choice optional - use the hard links.
7079 if test "$with_symlinks" = no ; then
7080 echo "$as_me:7080: checking if tic should use hard links" >&5
7081 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
7082 if test "$ac_cv_func_link" = yes ; then
7087 echo "$as_me:7087: result: $with_links" >&5
7088 echo "${ECHO_T}$with_links" >&6
7091 test "$with_links" = yes && cat >>confdefs.h <<\EOF
7095 test "$with_symlinks" = yes && cat >>confdefs.h <<\EOF
7096 #define USE_SYMLINKS 1
7099 ### use option --enable-broken-linker to force on use of broken-linker support
7100 echo "$as_me:7100: checking if you want broken-linker support code" >&5
7101 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
7103 # Check whether --enable-broken_linker or --disable-broken_linker was given.
7104 if test "${enable_broken_linker+set}" = set; then
7105 enableval="$enable_broken_linker"
7106 with_broken_linker=$enableval
7108 with_broken_linker=${BROKEN_LINKER:-no}
7110 echo "$as_me:7110: result: $with_broken_linker" >&5
7111 echo "${ECHO_T}$with_broken_linker" >&6
7114 if test "$with_broken_linker" = yes ; then
7115 cat >>confdefs.h <<\EOF
7116 #define BROKEN_LINKER 1
7120 elif test "$DFT_LWR_MODEL" = shared ; then
7121 case $cf_cv_system_name in #(vi
7123 cat >>confdefs.h <<\EOF
7124 #define BROKEN_LINKER 1
7128 test -n "$verbose" && echo " cygwin linker is broken anyway" 1>&6
7130 echo "${as_me:-configure}:7130: testing cygwin linker is broken anyway ..." 1>&5
7136 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
7137 echo "$as_me:7137: checking if tputs should process BSD-style prefix padding" >&5
7138 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
7140 # Check whether --enable-bsdpad or --disable-bsdpad was given.
7141 if test "${enable_bsdpad+set}" = set; then
7142 enableval="$enable_bsdpad"
7143 with_bsdpad=$enableval
7147 echo "$as_me:7147: result: $with_bsdpad" >&5
7148 echo "${ECHO_T}$with_bsdpad" >&6
7149 test "$with_bsdpad" = yes && cat >>confdefs.h <<\EOF
7153 ### use option --enable-widec to turn on use of wide-character support
7162 # Check to define _XOPEN_SOURCE "automatically"
7165 cf_POSIX_C_SOURCE=199506L
7168 case $host_os in #(vi
7170 cf_xopen_source="-D_ALL_SOURCE"
7176 cf_xopen_source="-D_APPLE_C_SOURCE"
7179 cf_xopen_source="-D_DARWIN_C_SOURCE"
7182 freebsd*|dragonfly*) #(vi
7183 # 5.x headers associate
7184 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
7185 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
7186 cf_POSIX_C_SOURCE=200112L
7188 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
7191 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
7194 cf_xopen_source="-D_HPUX_SOURCE"
7197 cf_xopen_source="-D_SGI_SOURCE"
7200 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
7202 echo "$as_me:7202: checking if we must define _GNU_SOURCE" >&5
7203 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
7204 if test "${cf_cv_gnu_source+set}" = set; then
7205 echo $ECHO_N "(cached) $ECHO_C" >&6
7208 cat >conftest.$ac_ext <<_ACEOF
7209 #line 7209 "configure"
7210 #include "confdefs.h"
7211 #include <sys/types.h>
7216 #ifndef _XOPEN_SOURCE
7223 rm -f conftest.$ac_objext
7224 if { (eval echo "$as_me:7224: \"$ac_compile\"") >&5
7225 (eval $ac_compile) 2>&5
7227 echo "$as_me:7227: \$? = $ac_status" >&5
7228 (exit $ac_status); } &&
7229 { ac_try='test -s conftest.$ac_objext'
7230 { (eval echo "$as_me:7230: \"$ac_try\"") >&5
7233 echo "$as_me:7233: \$? = $ac_status" >&5
7234 (exit $ac_status); }; }; then
7237 echo "$as_me: failed program was:" >&5
7238 cat conftest.$ac_ext >&5
7240 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7241 cat >conftest.$ac_ext <<_ACEOF
7242 #line 7242 "configure"
7243 #include "confdefs.h"
7244 #include <sys/types.h>
7249 #ifdef _XOPEN_SOURCE
7256 rm -f conftest.$ac_objext
7257 if { (eval echo "$as_me:7257: \"$ac_compile\"") >&5
7258 (eval $ac_compile) 2>&5
7260 echo "$as_me:7260: \$? = $ac_status" >&5
7261 (exit $ac_status); } &&
7262 { ac_try='test -s conftest.$ac_objext'
7263 { (eval echo "$as_me:7263: \"$ac_try\"") >&5
7266 echo "$as_me:7266: \$? = $ac_status" >&5
7267 (exit $ac_status); }; }; then
7270 echo "$as_me: failed program was:" >&5
7271 cat conftest.$ac_ext >&5
7272 cf_cv_gnu_source=yes
7274 rm -f conftest.$ac_objext conftest.$ac_ext
7278 rm -f conftest.$ac_objext conftest.$ac_ext
7281 echo "$as_me:7281: result: $cf_cv_gnu_source" >&5
7282 echo "${ECHO_T}$cf_cv_gnu_source" >&6
7283 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7287 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
7290 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
7292 cf_save_CFLAGS="$CFLAGS"
7293 cf_save_CPPFLAGS="$CPPFLAGS"
7295 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
7296 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7297 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7299 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
7300 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7301 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7303 echo "$as_me:7303: checking if we should define _POSIX_C_SOURCE" >&5
7304 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
7305 if test "${cf_cv_posix_c_source+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7309 echo "${as_me:-configure}:7309: testing if the symbol is already defined go no further ..." 1>&5
7311 cat >conftest.$ac_ext <<_ACEOF
7312 #line 7312 "configure"
7313 #include "confdefs.h"
7314 #include <sys/types.h>
7319 #ifndef _POSIX_C_SOURCE
7326 rm -f conftest.$ac_objext
7327 if { (eval echo "$as_me:7327: \"$ac_compile\"") >&5
7328 (eval $ac_compile) 2>&5
7330 echo "$as_me:7330: \$? = $ac_status" >&5
7331 (exit $ac_status); } &&
7332 { ac_try='test -s conftest.$ac_objext'
7333 { (eval echo "$as_me:7333: \"$ac_try\"") >&5
7336 echo "$as_me:7336: \$? = $ac_status" >&5
7337 (exit $ac_status); }; }; then
7338 cf_cv_posix_c_source=no
7340 echo "$as_me: failed program was:" >&5
7341 cat conftest.$ac_ext >&5
7342 cf_want_posix_source=no
7343 case .$cf_POSIX_C_SOURCE in #(vi
7345 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7348 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7349 cf_want_posix_source=yes
7352 cf_want_posix_source=yes
7355 if test "$cf_want_posix_source" = yes ; then
7356 cat >conftest.$ac_ext <<_ACEOF
7357 #line 7357 "configure"
7358 #include "confdefs.h"
7359 #include <sys/types.h>
7364 #ifdef _POSIX_SOURCE
7371 rm -f conftest.$ac_objext
7372 if { (eval echo "$as_me:7372: \"$ac_compile\"") >&5
7373 (eval $ac_compile) 2>&5
7375 echo "$as_me:7375: \$? = $ac_status" >&5
7376 (exit $ac_status); } &&
7377 { ac_try='test -s conftest.$ac_objext'
7378 { (eval echo "$as_me:7378: \"$ac_try\"") >&5
7381 echo "$as_me:7381: \$? = $ac_status" >&5
7382 (exit $ac_status); }; }; then
7385 echo "$as_me: failed program was:" >&5
7386 cat conftest.$ac_ext >&5
7387 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
7389 rm -f conftest.$ac_objext conftest.$ac_ext
7392 echo "${as_me:-configure}:7392: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
7394 CFLAGS="$cf_trim_CFLAGS"
7395 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
7397 echo "${as_me:-configure}:7397: testing if the second compile does not leave our definition intact error ..." 1>&5
7399 cat >conftest.$ac_ext <<_ACEOF
7400 #line 7400 "configure"
7401 #include "confdefs.h"
7402 #include <sys/types.h>
7407 #ifndef _POSIX_C_SOURCE
7414 rm -f conftest.$ac_objext
7415 if { (eval echo "$as_me:7415: \"$ac_compile\"") >&5
7416 (eval $ac_compile) 2>&5
7418 echo "$as_me:7418: \$? = $ac_status" >&5
7419 (exit $ac_status); } &&
7420 { ac_try='test -s conftest.$ac_objext'
7421 { (eval echo "$as_me:7421: \"$ac_try\"") >&5
7424 echo "$as_me:7424: \$? = $ac_status" >&5
7425 (exit $ac_status); }; }; then
7428 echo "$as_me: failed program was:" >&5
7429 cat conftest.$ac_ext >&5
7430 cf_cv_posix_c_source=no
7432 rm -f conftest.$ac_objext conftest.$ac_ext
7433 CFLAGS="$cf_save_CFLAGS"
7434 CPPFLAGS="$cf_save_CPPFLAGS"
7437 rm -f conftest.$ac_objext conftest.$ac_ext
7440 echo "$as_me:7440: result: $cf_cv_posix_c_source" >&5
7441 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
7443 if test "$cf_cv_posix_c_source" != no ; then
7444 CFLAGS="$cf_trim_CFLAGS"
7445 CPPFLAGS="$cf_trim_CPPFLAGS"
7450 cf_new_extra_cppflags=
7452 for cf_add_cflags in $cf_cv_posix_c_source
7454 case $cf_fix_cppflags in
7456 case $cf_add_cflags in #(vi
7457 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7458 case $cf_add_cflags in
7460 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7462 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7463 && test -z "${cf_tst_cflags}" \
7464 && cf_fix_cppflags=yes
7466 if test $cf_fix_cppflags = yes ; then
7467 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7469 elif test "${cf_tst_cflags}" = "\"'" ; then
7470 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7476 *$cf_add_cflags) #(vi
7479 case $cf_add_cflags in #(vi
7481 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7483 CPPFLAGS=`echo "$CPPFLAGS" | \
7484 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7485 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7489 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7494 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7499 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7501 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7503 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7504 && test -z "${cf_tst_cflags}" \
7505 && cf_fix_cppflags=no
7510 if test -n "$cf_new_cflags" ; then
7512 CFLAGS="$CFLAGS $cf_new_cflags"
7515 if test -n "$cf_new_cppflags" ; then
7517 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7520 if test -n "$cf_new_extra_cppflags" ; then
7522 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7529 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
7532 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
7533 cf_xopen_source="-D_BSD_SOURCE"
7537 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
7540 cf_xopen_source="-D_OSF_SOURCE"
7543 cf_xopen_source="-D_QNX_SOURCE"
7546 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
7549 cf_xopen_source="-D__EXTENSIONS__"
7553 echo "$as_me:7553: checking if we should define _XOPEN_SOURCE" >&5
7554 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
7555 if test "${cf_cv_xopen_source+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7559 cat >conftest.$ac_ext <<_ACEOF
7560 #line 7560 "configure"
7561 #include "confdefs.h"
7565 #include <sys/types.h>
7571 #ifndef _XOPEN_SOURCE
7578 rm -f conftest.$ac_objext
7579 if { (eval echo "$as_me:7579: \"$ac_compile\"") >&5
7580 (eval $ac_compile) 2>&5
7582 echo "$as_me:7582: \$? = $ac_status" >&5
7583 (exit $ac_status); } &&
7584 { ac_try='test -s conftest.$ac_objext'
7585 { (eval echo "$as_me:7585: \"$ac_try\"") >&5
7588 echo "$as_me:7588: \$? = $ac_status" >&5
7589 (exit $ac_status); }; }; then
7590 cf_cv_xopen_source=no
7592 echo "$as_me: failed program was:" >&5
7593 cat conftest.$ac_ext >&5
7595 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
7596 cat >conftest.$ac_ext <<_ACEOF
7597 #line 7597 "configure"
7598 #include "confdefs.h"
7602 #include <sys/types.h>
7608 #ifdef _XOPEN_SOURCE
7615 rm -f conftest.$ac_objext
7616 if { (eval echo "$as_me:7616: \"$ac_compile\"") >&5
7617 (eval $ac_compile) 2>&5
7619 echo "$as_me:7619: \$? = $ac_status" >&5
7620 (exit $ac_status); } &&
7621 { ac_try='test -s conftest.$ac_objext'
7622 { (eval echo "$as_me:7622: \"$ac_try\"") >&5
7625 echo "$as_me:7625: \$? = $ac_status" >&5
7626 (exit $ac_status); }; }; then
7627 cf_cv_xopen_source=no
7629 echo "$as_me: failed program was:" >&5
7630 cat conftest.$ac_ext >&5
7631 cf_cv_xopen_source=$cf_XOPEN_SOURCE
7633 rm -f conftest.$ac_objext conftest.$ac_ext
7637 rm -f conftest.$ac_objext conftest.$ac_ext
7640 echo "$as_me:7640: result: $cf_cv_xopen_source" >&5
7641 echo "${ECHO_T}$cf_cv_xopen_source" >&6
7643 if test "$cf_cv_xopen_source" != no ; then
7645 CFLAGS=`echo "$CFLAGS" | \
7646 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7647 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
7649 CPPFLAGS=`echo "$CPPFLAGS" | \
7650 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7651 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
7653 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
7658 cf_new_extra_cppflags=
7660 for cf_add_cflags in $cf_temp_xopen_source
7662 case $cf_fix_cppflags in
7664 case $cf_add_cflags in #(vi
7665 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7666 case $cf_add_cflags in
7668 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7670 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7671 && test -z "${cf_tst_cflags}" \
7672 && cf_fix_cppflags=yes
7674 if test $cf_fix_cppflags = yes ; then
7675 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7677 elif test "${cf_tst_cflags}" = "\"'" ; then
7678 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7684 *$cf_add_cflags) #(vi
7687 case $cf_add_cflags in #(vi
7689 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7691 CPPFLAGS=`echo "$CPPFLAGS" | \
7692 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7693 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7697 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7702 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7707 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7709 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7711 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7712 && test -z "${cf_tst_cflags}" \
7713 && cf_fix_cppflags=no
7718 if test -n "$cf_new_cflags" ; then
7720 CFLAGS="$CFLAGS $cf_new_cflags"
7723 if test -n "$cf_new_cppflags" ; then
7725 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7728 if test -n "$cf_new_extra_cppflags" ; then
7730 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7735 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
7737 cf_save_CFLAGS="$CFLAGS"
7738 cf_save_CPPFLAGS="$CPPFLAGS"
7740 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
7741 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7742 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7744 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
7745 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7746 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7748 echo "$as_me:7748: checking if we should define _POSIX_C_SOURCE" >&5
7749 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
7750 if test "${cf_cv_posix_c_source+set}" = set; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
7754 echo "${as_me:-configure}:7754: testing if the symbol is already defined go no further ..." 1>&5
7756 cat >conftest.$ac_ext <<_ACEOF
7757 #line 7757 "configure"
7758 #include "confdefs.h"
7759 #include <sys/types.h>
7764 #ifndef _POSIX_C_SOURCE
7771 rm -f conftest.$ac_objext
7772 if { (eval echo "$as_me:7772: \"$ac_compile\"") >&5
7773 (eval $ac_compile) 2>&5
7775 echo "$as_me:7775: \$? = $ac_status" >&5
7776 (exit $ac_status); } &&
7777 { ac_try='test -s conftest.$ac_objext'
7778 { (eval echo "$as_me:7778: \"$ac_try\"") >&5
7781 echo "$as_me:7781: \$? = $ac_status" >&5
7782 (exit $ac_status); }; }; then
7783 cf_cv_posix_c_source=no
7785 echo "$as_me: failed program was:" >&5
7786 cat conftest.$ac_ext >&5
7787 cf_want_posix_source=no
7788 case .$cf_POSIX_C_SOURCE in #(vi
7790 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7793 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7794 cf_want_posix_source=yes
7797 cf_want_posix_source=yes
7800 if test "$cf_want_posix_source" = yes ; then
7801 cat >conftest.$ac_ext <<_ACEOF
7802 #line 7802 "configure"
7803 #include "confdefs.h"
7804 #include <sys/types.h>
7809 #ifdef _POSIX_SOURCE
7816 rm -f conftest.$ac_objext
7817 if { (eval echo "$as_me:7817: \"$ac_compile\"") >&5
7818 (eval $ac_compile) 2>&5
7820 echo "$as_me:7820: \$? = $ac_status" >&5
7821 (exit $ac_status); } &&
7822 { ac_try='test -s conftest.$ac_objext'
7823 { (eval echo "$as_me:7823: \"$ac_try\"") >&5
7826 echo "$as_me:7826: \$? = $ac_status" >&5
7827 (exit $ac_status); }; }; then
7830 echo "$as_me: failed program was:" >&5
7831 cat conftest.$ac_ext >&5
7832 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
7834 rm -f conftest.$ac_objext conftest.$ac_ext
7837 echo "${as_me:-configure}:7837: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
7839 CFLAGS="$cf_trim_CFLAGS"
7840 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
7842 echo "${as_me:-configure}:7842: testing if the second compile does not leave our definition intact error ..." 1>&5
7844 cat >conftest.$ac_ext <<_ACEOF
7845 #line 7845 "configure"
7846 #include "confdefs.h"
7847 #include <sys/types.h>
7852 #ifndef _POSIX_C_SOURCE
7859 rm -f conftest.$ac_objext
7860 if { (eval echo "$as_me:7860: \"$ac_compile\"") >&5
7861 (eval $ac_compile) 2>&5
7863 echo "$as_me:7863: \$? = $ac_status" >&5
7864 (exit $ac_status); } &&
7865 { ac_try='test -s conftest.$ac_objext'
7866 { (eval echo "$as_me:7866: \"$ac_try\"") >&5
7869 echo "$as_me:7869: \$? = $ac_status" >&5
7870 (exit $ac_status); }; }; then
7873 echo "$as_me: failed program was:" >&5
7874 cat conftest.$ac_ext >&5
7875 cf_cv_posix_c_source=no
7877 rm -f conftest.$ac_objext conftest.$ac_ext
7878 CFLAGS="$cf_save_CFLAGS"
7879 CPPFLAGS="$cf_save_CPPFLAGS"
7882 rm -f conftest.$ac_objext conftest.$ac_ext
7885 echo "$as_me:7885: result: $cf_cv_posix_c_source" >&5
7886 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
7888 if test "$cf_cv_posix_c_source" != no ; then
7889 CFLAGS="$cf_trim_CFLAGS"
7890 CPPFLAGS="$cf_trim_CPPFLAGS"
7895 cf_new_extra_cppflags=
7897 for cf_add_cflags in $cf_cv_posix_c_source
7899 case $cf_fix_cppflags in
7901 case $cf_add_cflags in #(vi
7902 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7903 case $cf_add_cflags in
7905 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7907 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7908 && test -z "${cf_tst_cflags}" \
7909 && cf_fix_cppflags=yes
7911 if test $cf_fix_cppflags = yes ; then
7912 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7914 elif test "${cf_tst_cflags}" = "\"'" ; then
7915 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7921 *$cf_add_cflags) #(vi
7924 case $cf_add_cflags in #(vi
7926 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7928 CPPFLAGS=`echo "$CPPFLAGS" | \
7929 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7930 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7934 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7939 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7944 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7946 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7948 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7949 && test -z "${cf_tst_cflags}" \
7950 && cf_fix_cppflags=no
7955 if test -n "$cf_new_cflags" ; then
7957 CFLAGS="$CFLAGS $cf_new_cflags"
7960 if test -n "$cf_new_cppflags" ; then
7962 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7965 if test -n "$cf_new_extra_cppflags" ; then
7967 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7975 if test -n "$cf_xopen_source" ; then
7980 cf_new_extra_cppflags=
7982 for cf_add_cflags in $cf_xopen_source
7984 case $cf_fix_cppflags in
7986 case $cf_add_cflags in #(vi
7987 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7988 case $cf_add_cflags in
7990 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7992 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7993 && test -z "${cf_tst_cflags}" \
7994 && cf_fix_cppflags=yes
7996 if test $cf_fix_cppflags = yes ; then
7997 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7999 elif test "${cf_tst_cflags}" = "\"'" ; then
8000 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8006 *$cf_add_cflags) #(vi
8009 case $cf_add_cflags in #(vi
8011 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8013 CPPFLAGS=`echo "$CPPFLAGS" | \
8014 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8015 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8019 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8024 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8029 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8031 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8033 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8034 && test -z "${cf_tst_cflags}" \
8035 && cf_fix_cppflags=no
8040 if test -n "$cf_new_cflags" ; then
8042 CFLAGS="$CFLAGS $cf_new_cflags"
8045 if test -n "$cf_new_cppflags" ; then
8047 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8050 if test -n "$cf_new_extra_cppflags" ; then
8052 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8057 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
8058 echo "$as_me:8058: checking if _XOPEN_SOURCE really is set" >&5
8059 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
8060 cat >conftest.$ac_ext <<_ACEOF
8061 #line 8061 "configure"
8062 #include "confdefs.h"
8068 #ifndef _XOPEN_SOURCE
8075 rm -f conftest.$ac_objext
8076 if { (eval echo "$as_me:8076: \"$ac_compile\"") >&5
8077 (eval $ac_compile) 2>&5
8079 echo "$as_me:8079: \$? = $ac_status" >&5
8080 (exit $ac_status); } &&
8081 { ac_try='test -s conftest.$ac_objext'
8082 { (eval echo "$as_me:8082: \"$ac_try\"") >&5
8085 echo "$as_me:8085: \$? = $ac_status" >&5
8086 (exit $ac_status); }; }; then
8087 cf_XOPEN_SOURCE_set=yes
8089 echo "$as_me: failed program was:" >&5
8090 cat conftest.$ac_ext >&5
8091 cf_XOPEN_SOURCE_set=no
8093 rm -f conftest.$ac_objext conftest.$ac_ext
8094 echo "$as_me:8094: result: $cf_XOPEN_SOURCE_set" >&5
8095 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
8096 if test $cf_XOPEN_SOURCE_set = yes
8098 cat >conftest.$ac_ext <<_ACEOF
8099 #line 8099 "configure"
8100 #include "confdefs.h"
8106 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
8113 rm -f conftest.$ac_objext
8114 if { (eval echo "$as_me:8114: \"$ac_compile\"") >&5
8115 (eval $ac_compile) 2>&5
8117 echo "$as_me:8117: \$? = $ac_status" >&5
8118 (exit $ac_status); } &&
8119 { ac_try='test -s conftest.$ac_objext'
8120 { (eval echo "$as_me:8120: \"$ac_try\"") >&5
8123 echo "$as_me:8123: \$? = $ac_status" >&5
8124 (exit $ac_status); }; }; then
8125 cf_XOPEN_SOURCE_set_ok=yes
8127 echo "$as_me: failed program was:" >&5
8128 cat conftest.$ac_ext >&5
8129 cf_XOPEN_SOURCE_set_ok=no
8131 rm -f conftest.$ac_objext conftest.$ac_ext
8132 if test $cf_XOPEN_SOURCE_set_ok = no
8134 { echo "$as_me:8134: WARNING: _XOPEN_SOURCE is lower than requested" >&5
8135 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
8139 echo "$as_me:8139: checking if we should define _XOPEN_SOURCE" >&5
8140 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
8141 if test "${cf_cv_xopen_source+set}" = set; then
8142 echo $ECHO_N "(cached) $ECHO_C" >&6
8145 cat >conftest.$ac_ext <<_ACEOF
8146 #line 8146 "configure"
8147 #include "confdefs.h"
8151 #include <sys/types.h>
8157 #ifndef _XOPEN_SOURCE
8164 rm -f conftest.$ac_objext
8165 if { (eval echo "$as_me:8165: \"$ac_compile\"") >&5
8166 (eval $ac_compile) 2>&5
8168 echo "$as_me:8168: \$? = $ac_status" >&5
8169 (exit $ac_status); } &&
8170 { ac_try='test -s conftest.$ac_objext'
8171 { (eval echo "$as_me:8171: \"$ac_try\"") >&5
8174 echo "$as_me:8174: \$? = $ac_status" >&5
8175 (exit $ac_status); }; }; then
8176 cf_cv_xopen_source=no
8178 echo "$as_me: failed program was:" >&5
8179 cat conftest.$ac_ext >&5
8181 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
8182 cat >conftest.$ac_ext <<_ACEOF
8183 #line 8183 "configure"
8184 #include "confdefs.h"
8188 #include <sys/types.h>
8194 #ifdef _XOPEN_SOURCE
8201 rm -f conftest.$ac_objext
8202 if { (eval echo "$as_me:8202: \"$ac_compile\"") >&5
8203 (eval $ac_compile) 2>&5
8205 echo "$as_me:8205: \$? = $ac_status" >&5
8206 (exit $ac_status); } &&
8207 { ac_try='test -s conftest.$ac_objext'
8208 { (eval echo "$as_me:8208: \"$ac_try\"") >&5
8211 echo "$as_me:8211: \$? = $ac_status" >&5
8212 (exit $ac_status); }; }; then
8213 cf_cv_xopen_source=no
8215 echo "$as_me: failed program was:" >&5
8216 cat conftest.$ac_ext >&5
8217 cf_cv_xopen_source=$cf_XOPEN_SOURCE
8219 rm -f conftest.$ac_objext conftest.$ac_ext
8223 rm -f conftest.$ac_objext conftest.$ac_ext
8226 echo "$as_me:8226: result: $cf_cv_xopen_source" >&5
8227 echo "${ECHO_T}$cf_cv_xopen_source" >&6
8229 if test "$cf_cv_xopen_source" != no ; then
8231 CFLAGS=`echo "$CFLAGS" | \
8232 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8233 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8235 CPPFLAGS=`echo "$CPPFLAGS" | \
8236 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8237 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8239 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
8244 cf_new_extra_cppflags=
8246 for cf_add_cflags in $cf_temp_xopen_source
8248 case $cf_fix_cppflags in
8250 case $cf_add_cflags in #(vi
8251 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
8252 case $cf_add_cflags in
8254 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8256 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8257 && test -z "${cf_tst_cflags}" \
8258 && cf_fix_cppflags=yes
8260 if test $cf_fix_cppflags = yes ; then
8261 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8263 elif test "${cf_tst_cflags}" = "\"'" ; then
8264 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8270 *$cf_add_cflags) #(vi
8273 case $cf_add_cflags in #(vi
8275 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8277 CPPFLAGS=`echo "$CPPFLAGS" | \
8278 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8279 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8283 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8288 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8293 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8295 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8297 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8298 && test -z "${cf_tst_cflags}" \
8299 && cf_fix_cppflags=no
8304 if test -n "$cf_new_cflags" ; then
8306 CFLAGS="$CFLAGS $cf_new_cflags"
8309 if test -n "$cf_new_cppflags" ; then
8311 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8314 if test -n "$cf_new_extra_cppflags" ; then
8316 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8324 # Work around breakage on OS X
8326 echo "$as_me:8326: checking if SIGWINCH is defined" >&5
8327 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
8328 if test "${cf_cv_define_sigwinch+set}" = set; then
8329 echo $ECHO_N "(cached) $ECHO_C" >&6
8332 cat >conftest.$ac_ext <<_ACEOF
8333 #line 8333 "configure"
8334 #include "confdefs.h"
8336 #include <sys/types.h>
8337 #include <sys/signal.h>
8347 rm -f conftest.$ac_objext
8348 if { (eval echo "$as_me:8348: \"$ac_compile\"") >&5
8349 (eval $ac_compile) 2>&5
8351 echo "$as_me:8351: \$? = $ac_status" >&5
8352 (exit $ac_status); } &&
8353 { ac_try='test -s conftest.$ac_objext'
8354 { (eval echo "$as_me:8354: \"$ac_try\"") >&5
8357 echo "$as_me:8357: \$? = $ac_status" >&5
8358 (exit $ac_status); }; }; then
8359 cf_cv_define_sigwinch=yes
8361 echo "$as_me: failed program was:" >&5
8362 cat conftest.$ac_ext >&5
8363 cat >conftest.$ac_ext <<_ACEOF
8364 #line 8364 "configure"
8365 #include "confdefs.h"
8367 #undef _XOPEN_SOURCE
8368 #undef _POSIX_SOURCE
8369 #undef _POSIX_C_SOURCE
8370 #include <sys/types.h>
8371 #include <sys/signal.h>
8381 rm -f conftest.$ac_objext
8382 if { (eval echo "$as_me:8382: \"$ac_compile\"") >&5
8383 (eval $ac_compile) 2>&5
8385 echo "$as_me:8385: \$? = $ac_status" >&5
8386 (exit $ac_status); } &&
8387 { ac_try='test -s conftest.$ac_objext'
8388 { (eval echo "$as_me:8388: \"$ac_try\"") >&5
8391 echo "$as_me:8391: \$? = $ac_status" >&5
8392 (exit $ac_status); }; }; then
8393 cf_cv_define_sigwinch=maybe
8395 echo "$as_me: failed program was:" >&5
8396 cat conftest.$ac_ext >&5
8397 cf_cv_define_sigwinch=no
8399 rm -f conftest.$ac_objext conftest.$ac_ext
8402 rm -f conftest.$ac_objext conftest.$ac_ext
8405 echo "$as_me:8405: result: $cf_cv_define_sigwinch" >&5
8406 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
8408 if test "$cf_cv_define_sigwinch" = maybe ; then
8409 echo "$as_me:8409: checking for actual SIGWINCH definition" >&5
8410 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
8411 if test "${cf_cv_fixup_sigwinch+set}" = set; then
8412 echo $ECHO_N "(cached) $ECHO_C" >&6
8415 cf_cv_fixup_sigwinch=unknown
8417 while test $cf_sigwinch != 1
8419 cat >conftest.$ac_ext <<_ACEOF
8420 #line 8420 "configure"
8421 #include "confdefs.h"
8423 #undef _XOPEN_SOURCE
8424 #undef _POSIX_SOURCE
8425 #undef _POSIX_C_SOURCE
8426 #include <sys/types.h>
8427 #include <sys/signal.h>
8433 #if SIGWINCH != $cf_sigwinch
8441 rm -f conftest.$ac_objext
8442 if { (eval echo "$as_me:8442: \"$ac_compile\"") >&5
8443 (eval $ac_compile) 2>&5
8445 echo "$as_me:8445: \$? = $ac_status" >&5
8446 (exit $ac_status); } &&
8447 { ac_try='test -s conftest.$ac_objext'
8448 { (eval echo "$as_me:8448: \"$ac_try\"") >&5
8451 echo "$as_me:8451: \$? = $ac_status" >&5
8452 (exit $ac_status); }; }; then
8453 cf_cv_fixup_sigwinch=$cf_sigwinch
8456 echo "$as_me: failed program was:" >&5
8457 cat conftest.$ac_ext >&5
8459 rm -f conftest.$ac_objext conftest.$ac_ext
8461 cf_sigwinch=`expr $cf_sigwinch - 1`
8465 echo "$as_me:8465: result: $cf_cv_fixup_sigwinch" >&5
8466 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
8468 if test "$cf_cv_fixup_sigwinch" != unknown ; then
8469 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
8473 # Checks for CODESET support.
8475 echo "$as_me:8475: checking for nl_langinfo and CODESET" >&5
8476 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
8477 if test "${am_cv_langinfo_codeset+set}" = set; then
8478 echo $ECHO_N "(cached) $ECHO_C" >&6
8480 cat >conftest.$ac_ext <<_ACEOF
8481 #line 8481 "configure"
8482 #include "confdefs.h"
8483 #include <langinfo.h>
8487 char* cs = nl_langinfo(CODESET);
8492 rm -f conftest.$ac_objext conftest$ac_exeext
8493 if { (eval echo "$as_me:8493: \"$ac_link\"") >&5
8494 (eval $ac_link) 2>&5
8496 echo "$as_me:8496: \$? = $ac_status" >&5
8497 (exit $ac_status); } &&
8498 { ac_try='test -s conftest$ac_exeext'
8499 { (eval echo "$as_me:8499: \"$ac_try\"") >&5
8502 echo "$as_me:8502: \$? = $ac_status" >&5
8503 (exit $ac_status); }; }; then
8504 am_cv_langinfo_codeset=yes
8506 echo "$as_me: failed program was:" >&5
8507 cat conftest.$ac_ext >&5
8508 am_cv_langinfo_codeset=no
8510 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8513 echo "$as_me:8513: result: $am_cv_langinfo_codeset" >&5
8514 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
8515 if test $am_cv_langinfo_codeset = yes; then
8517 cat >>confdefs.h <<\EOF
8518 #define HAVE_LANGINFO_CODESET 1
8523 # use these variables to work around a defect in gcc's fixincludes.
8527 echo "$as_me:8527: checking if you want wide-character code" >&5
8528 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
8530 # Check whether --enable-widec or --disable-widec was given.
8531 if test "${enable_widec+set}" = set; then
8532 enableval="$enable_widec"
8533 with_widec=$enableval
8537 echo "$as_me:8537: result: $with_widec" >&5
8538 echo "${ECHO_T}$with_widec" >&6
8539 if test "$with_widec" = yes ; then
8540 LIB_SUFFIX="w${LIB_SUFFIX}"
8541 cat >>confdefs.h <<\EOF
8542 #define USE_WIDEC_SUPPORT 1
8545 cat >>confdefs.h <<\EOF
8546 #define NCURSES_WIDECHAR 1
8549 echo "$as_me:8549: checking if wchar.h can be used as is" >&5
8550 echo $ECHO_N "checking if wchar.h can be used as is... $ECHO_C" >&6
8551 if test "${cf_cv_wchar_h_okay+set}" = set; then
8552 echo $ECHO_N "(cached) $ECHO_C" >&6
8555 cat >conftest.$ac_ext <<_ACEOF
8556 #line 8556 "configure"
8557 #include "confdefs.h"
8567 int bar = iswpunct(foo)
8572 rm -f conftest.$ac_objext
8573 if { (eval echo "$as_me:8573: \"$ac_compile\"") >&5
8574 (eval $ac_compile) 2>&5
8576 echo "$as_me:8576: \$? = $ac_status" >&5
8577 (exit $ac_status); } &&
8578 { ac_try='test -s conftest.$ac_objext'
8579 { (eval echo "$as_me:8579: \"$ac_try\"") >&5
8582 echo "$as_me:8582: \$? = $ac_status" >&5
8583 (exit $ac_status); }; }; then
8584 cf_cv_wchar_h_okay=yes
8586 echo "$as_me: failed program was:" >&5
8587 cat conftest.$ac_ext >&5
8588 cf_cv_wchar_h_okay=no
8590 rm -f conftest.$ac_objext conftest.$ac_ext
8592 echo "$as_me:8592: result: $cf_cv_wchar_h_okay" >&5
8593 echo "${ECHO_T}$cf_cv_wchar_h_okay" >&6
8595 if test $cf_cv_wchar_h_okay = no
8598 echo "$as_me:8598: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
8599 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
8600 cat >conftest.$ac_ext <<_ACEOF
8601 #line 8601 "configure"
8602 #include "confdefs.h"
8603 #include <sys/types.h>
8609 #ifndef _XOPEN_SOURCE_EXTENDED
8616 rm -f conftest.$ac_objext
8617 if { (eval echo "$as_me:8617: \"$ac_compile\"") >&5
8618 (eval $ac_compile) 2>&5
8620 echo "$as_me:8620: \$? = $ac_status" >&5
8621 (exit $ac_status); } &&
8622 { ac_try='test -s conftest.$ac_objext'
8623 { (eval echo "$as_me:8623: \"$ac_try\"") >&5
8626 echo "$as_me:8626: \$? = $ac_status" >&5
8627 (exit $ac_status); }; }; then
8630 echo "$as_me: failed program was:" >&5
8631 cat conftest.$ac_ext >&5
8634 rm -f conftest.$ac_objext conftest.$ac_ext
8635 echo "$as_me:8635: result: $cf_result" >&5
8636 echo "${ECHO_T}$cf_result" >&6
8638 if test "$cf_result" = yes ; then
8639 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
8640 elif test "x" != "x" ; then
8641 echo "$as_me:8641: checking checking for compatible value versus " >&5
8642 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
8643 cat >conftest.$ac_ext <<_ACEOF
8644 #line 8644 "configure"
8645 #include "confdefs.h"
8646 #include <sys/types.h>
8652 #if _XOPEN_SOURCE_EXTENDED- < 0
8659 rm -f conftest.$ac_objext
8660 if { (eval echo "$as_me:8660: \"$ac_compile\"") >&5
8661 (eval $ac_compile) 2>&5
8663 echo "$as_me:8663: \$? = $ac_status" >&5
8664 (exit $ac_status); } &&
8665 { ac_try='test -s conftest.$ac_objext'
8666 { (eval echo "$as_me:8666: \"$ac_try\"") >&5
8669 echo "$as_me:8669: \$? = $ac_status" >&5
8670 (exit $ac_status); }; }; then
8673 echo "$as_me: failed program was:" >&5
8674 cat conftest.$ac_ext >&5
8677 rm -f conftest.$ac_objext conftest.$ac_ext
8678 echo "$as_me:8678: result: $cf_result" >&5
8679 echo "${ECHO_T}$cf_result" >&6
8680 if test "$cf_result" = no ; then
8681 # perhaps we can override it - try...
8682 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
8689 NCURSES_CH_T=cchar_t
8691 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
8693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8694 echo "$as_me:8694: checking for $ac_func" >&5
8695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8696 if eval "test \"\${$as_ac_var+set}\" = set"; then
8697 echo $ECHO_N "(cached) $ECHO_C" >&6
8699 cat >conftest.$ac_ext <<_ACEOF
8700 #line 8700 "configure"
8701 #include "confdefs.h"
8702 /* System header to define __stub macros and hopefully few prototypes,
8703 which can conflict with char $ac_func (); below. */
8705 /* Override any gcc2 internal prototype to avoid an error. */
8709 /* We use char because int might match the return type of a gcc2
8710 builtin and then its argument prototype would still apply. */
8717 /* The GNU C library defines this for functions which it implements
8718 to always fail with ENOSYS. Some functions are actually named
8719 something starting with __ and the normal name is an alias. */
8720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
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
8742 eval "$as_ac_var=yes"
8744 echo "$as_me: failed program was:" >&5
8745 cat conftest.$ac_ext >&5
8746 eval "$as_ac_var=no"
8748 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8750 echo "$as_me:8750: result: `eval echo '${'$as_ac_var'}'`" >&5
8751 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8752 if test `eval echo '${'$as_ac_var'}'` = yes; then
8753 cat >>confdefs.h <<EOF
8754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8760 if test "$ac_cv_func_putwc" != yes ; then
8762 echo "$as_me:8762: checking for multibyte character support" >&5
8763 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
8764 if test "${cf_cv_utf8_lib+set}" = set; then
8765 echo $ECHO_N "(cached) $ECHO_C" >&6
8768 cf_save_LIBS="$LIBS"
8769 cat >conftest.$ac_ext <<_ACEOF
8770 #line 8770 "configure"
8771 #include "confdefs.h"
8782 rm -f conftest.$ac_objext conftest$ac_exeext
8783 if { (eval echo "$as_me:8783: \"$ac_link\"") >&5
8784 (eval $ac_link) 2>&5
8786 echo "$as_me:8786: \$? = $ac_status" >&5
8787 (exit $ac_status); } &&
8788 { ac_try='test -s conftest$ac_exeext'
8789 { (eval echo "$as_me:8789: \"$ac_try\"") >&5
8792 echo "$as_me:8792: \$? = $ac_status" >&5
8793 (exit $ac_status); }; }; then
8796 echo "$as_me: failed program was:" >&5
8797 cat conftest.$ac_ext >&5
8799 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
8800 # will be set on completion of the AC_TRY_LINK below.
8801 cf_cv_header_path_utf8=
8802 cf_cv_library_path_utf8=
8804 echo "${as_me:-configure}:8804: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
8806 cf_save_LIBS="$LIBS"
8808 cat >conftest.$ac_ext <<_ACEOF
8809 #line 8809 "configure"
8810 #include "confdefs.h"
8812 #include <libutf8.h>
8821 rm -f conftest.$ac_objext conftest$ac_exeext
8822 if { (eval echo "$as_me:8822: \"$ac_link\"") >&5
8823 (eval $ac_link) 2>&5
8825 echo "$as_me:8825: \$? = $ac_status" >&5
8826 (exit $ac_status); } &&
8827 { ac_try='test -s conftest$ac_exeext'
8828 { (eval echo "$as_me:8828: \"$ac_try\"") >&5
8831 echo "$as_me:8831: \$? = $ac_status" >&5
8832 (exit $ac_status); }; }; then
8834 cf_cv_find_linkage_utf8=yes
8835 cf_cv_header_path_utf8=/usr/include
8836 cf_cv_library_path_utf8=/usr/lib
8839 echo "$as_me: failed program was:" >&5
8840 cat conftest.$ac_ext >&5
8842 LIBS="-lutf8 $cf_save_LIBS"
8844 cat >conftest.$ac_ext <<_ACEOF
8845 #line 8845 "configure"
8846 #include "confdefs.h"
8848 #include <libutf8.h>
8857 rm -f conftest.$ac_objext conftest$ac_exeext
8858 if { (eval echo "$as_me:8858: \"$ac_link\"") >&5
8859 (eval $ac_link) 2>&5
8861 echo "$as_me:8861: \$? = $ac_status" >&5
8862 (exit $ac_status); } &&
8863 { ac_try='test -s conftest$ac_exeext'
8864 { (eval echo "$as_me:8864: \"$ac_try\"") >&5
8867 echo "$as_me:8867: \$? = $ac_status" >&5
8868 (exit $ac_status); }; }; then
8870 cf_cv_find_linkage_utf8=yes
8871 cf_cv_header_path_utf8=/usr/include
8872 cf_cv_library_path_utf8=/usr/lib
8873 cf_cv_library_file_utf8="-lutf8"
8876 echo "$as_me: failed program was:" >&5
8877 cat conftest.$ac_ext >&5
8879 cf_cv_find_linkage_utf8=no
8880 LIBS="$cf_save_LIBS"
8882 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
8884 echo "${as_me:-configure}:8884: testing find linkage for utf8 library ..." 1>&5
8886 echo "${as_me:-configure}:8886: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
8888 cf_save_CPPFLAGS="$CPPFLAGS"
8889 cf_test_CPPFLAGS="$CPPFLAGS"
8893 # collect the current set of include-directories from compiler flags
8894 cf_header_path_list=""
8895 if test -n "${CFLAGS}${CPPFLAGS}" ; then
8896 for cf_header_path in $CPPFLAGS $CFLAGS
8898 case $cf_header_path in #(vi
8900 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
8902 test "$cf_header_path" != "NONE" && \
8903 test -d "$cf_header_path" && \
8905 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
8906 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
8907 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
8908 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
8909 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
8910 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
8913 cf_header_path_list="$cf_header_path_list $cf_search"
8919 # add the variations for the package we are looking for
8923 test "/usr" != "$prefix" && \
8925 (test $prefix = NONE || test "/usr" != "$prefix") && {
8926 test -n "$verbose" && echo " ... testing for include-directories under /usr"
8927 test -d /usr/include && cf_search="$cf_search /usr/include"
8928 test -d /usr/include/utf8 && cf_search="$cf_search /usr/include/utf8"
8929 test -d /usr/include/utf8/include && cf_search="$cf_search /usr/include/utf8/include"
8930 test -d /usr/utf8/include && cf_search="$cf_search /usr/utf8/include"
8931 test -d /usr/utf8/include/utf8 && cf_search="$cf_search /usr/utf8/include/utf8"
8934 test "$prefix" != "NONE" && \
8935 test -d "$prefix" && \
8937 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
8938 test -d $prefix/include && cf_search="$cf_search $prefix/include"
8939 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
8940 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
8941 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
8942 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
8945 test "/usr/local" != "$prefix" && \
8946 test -d "/usr/local" && \
8947 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
8948 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
8949 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
8950 test -d /usr/local/include/utf8 && cf_search="$cf_search /usr/local/include/utf8"
8951 test -d /usr/local/include/utf8/include && cf_search="$cf_search /usr/local/include/utf8/include"
8952 test -d /usr/local/utf8/include && cf_search="$cf_search /usr/local/utf8/include"
8953 test -d /usr/local/utf8/include/utf8 && cf_search="$cf_search /usr/local/utf8/include/utf8"
8956 test "/opt" != "$prefix" && \
8958 (test $prefix = NONE || test "/opt" != "$prefix") && {
8959 test -n "$verbose" && echo " ... testing for include-directories under /opt"
8960 test -d /opt/include && cf_search="$cf_search /opt/include"
8961 test -d /opt/include/utf8 && cf_search="$cf_search /opt/include/utf8"
8962 test -d /opt/include/utf8/include && cf_search="$cf_search /opt/include/utf8/include"
8963 test -d /opt/utf8/include && cf_search="$cf_search /opt/utf8/include"
8964 test -d /opt/utf8/include/utf8 && cf_search="$cf_search /opt/utf8/include/utf8"
8967 test "$HOME" != "$prefix" && \
8968 test -d "$HOME" && \
8969 (test $prefix = NONE || test "$HOME" != "$prefix") && {
8970 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
8971 test -d $HOME/include && cf_search="$cf_search $HOME/include"
8972 test -d $HOME/include/utf8 && cf_search="$cf_search $HOME/include/utf8"
8973 test -d $HOME/include/utf8/include && cf_search="$cf_search $HOME/include/utf8/include"
8974 test -d $HOME/utf8/include && cf_search="$cf_search $HOME/utf8/include"
8975 test -d $HOME/utf8/include/utf8 && cf_search="$cf_search $HOME/utf8/include/utf8"
8978 test "$includedir" != NONE && \
8979 test "$includedir" != "/usr/include" && \
8980 test -d "$includedir" && {
8981 test -d $includedir && cf_search="$cf_search $includedir"
8982 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
8985 test "$oldincludedir" != NONE && \
8986 test "$oldincludedir" != "/usr/include" && \
8987 test -d "$oldincludedir" && {
8988 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
8989 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
8992 cf_search="$cf_search $cf_header_path_list"
8994 for cf_cv_header_path_utf8 in $cf_search
8996 if test -d $cf_cv_header_path_utf8 ; then
8997 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
8999 echo "${as_me:-configure}:8999: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
9001 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
9002 cat >conftest.$ac_ext <<_ACEOF
9003 #line 9003 "configure"
9004 #include "confdefs.h"
9006 #include <libutf8.h>
9015 rm -f conftest.$ac_objext
9016 if { (eval echo "$as_me:9016: \"$ac_compile\"") >&5
9017 (eval $ac_compile) 2>&5
9019 echo "$as_me:9019: \$? = $ac_status" >&5
9020 (exit $ac_status); } &&
9021 { ac_try='test -s conftest.$ac_objext'
9022 { (eval echo "$as_me:9022: \"$ac_try\"") >&5
9025 echo "$as_me:9025: \$? = $ac_status" >&5
9026 (exit $ac_status); }; }; then
9028 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
9030 echo "${as_me:-configure}:9030: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
9032 cf_cv_find_linkage_utf8=maybe
9033 cf_test_CPPFLAGS="$CPPFLAGS"
9036 echo "$as_me: failed program was:" >&5
9037 cat conftest.$ac_ext >&5
9039 CPPFLAGS="$cf_save_CPPFLAGS"
9042 rm -f conftest.$ac_objext conftest.$ac_ext
9046 if test "$cf_cv_find_linkage_utf8" = maybe ; then
9048 echo "${as_me:-configure}:9048: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
9050 cf_save_LIBS="$LIBS"
9051 cf_save_LDFLAGS="$LDFLAGS"
9053 if test "$cf_cv_find_linkage_utf8" != yes ; then
9056 cf_library_path_list=""
9057 if test -n "${LDFLAGS}${LIBS}" ; then
9058 for cf_library_path in $LDFLAGS $LIBS
9060 case $cf_library_path in #(vi
9062 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
9064 test "$cf_library_path" != "NONE" && \
9065 test -d "$cf_library_path" && \
9067 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
9068 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
9069 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
9070 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
9071 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
9072 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
9075 cf_library_path_list="$cf_library_path_list $cf_search"
9083 test "/usr" != "$prefix" && \
9085 (test $prefix = NONE || test "/usr" != "$prefix") && {
9086 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
9087 test -d /usr/lib && cf_search="$cf_search /usr/lib"
9088 test -d /usr/lib/utf8 && cf_search="$cf_search /usr/lib/utf8"
9089 test -d /usr/lib/utf8/lib && cf_search="$cf_search /usr/lib/utf8/lib"
9090 test -d /usr/utf8/lib && cf_search="$cf_search /usr/utf8/lib"
9091 test -d /usr/utf8/lib/utf8 && cf_search="$cf_search /usr/utf8/lib/utf8"
9094 test "$prefix" != "NONE" && \
9095 test -d "$prefix" && \
9097 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
9098 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
9099 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
9100 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
9101 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
9102 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
9105 test "/usr/local" != "$prefix" && \
9106 test -d "/usr/local" && \
9107 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
9108 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
9109 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
9110 test -d /usr/local/lib/utf8 && cf_search="$cf_search /usr/local/lib/utf8"
9111 test -d /usr/local/lib/utf8/lib && cf_search="$cf_search /usr/local/lib/utf8/lib"
9112 test -d /usr/local/utf8/lib && cf_search="$cf_search /usr/local/utf8/lib"
9113 test -d /usr/local/utf8/lib/utf8 && cf_search="$cf_search /usr/local/utf8/lib/utf8"
9116 test "/opt" != "$prefix" && \
9118 (test $prefix = NONE || test "/opt" != "$prefix") && {
9119 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
9120 test -d /opt/lib && cf_search="$cf_search /opt/lib"
9121 test -d /opt/lib/utf8 && cf_search="$cf_search /opt/lib/utf8"
9122 test -d /opt/lib/utf8/lib && cf_search="$cf_search /opt/lib/utf8/lib"
9123 test -d /opt/utf8/lib && cf_search="$cf_search /opt/utf8/lib"
9124 test -d /opt/utf8/lib/utf8 && cf_search="$cf_search /opt/utf8/lib/utf8"
9127 test "$HOME" != "$prefix" && \
9128 test -d "$HOME" && \
9129 (test $prefix = NONE || test "$HOME" != "$prefix") && {
9130 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
9131 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
9132 test -d $HOME/lib/utf8 && cf_search="$cf_search $HOME/lib/utf8"
9133 test -d $HOME/lib/utf8/lib && cf_search="$cf_search $HOME/lib/utf8/lib"
9134 test -d $HOME/utf8/lib && cf_search="$cf_search $HOME/utf8/lib"
9135 test -d $HOME/utf8/lib/utf8 && cf_search="$cf_search $HOME/utf8/lib/utf8"
9138 cf_search="$cf_library_path_list $cf_search"
9140 for cf_cv_library_path_utf8 in $cf_search
9142 if test -d $cf_cv_library_path_utf8 ; then
9143 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
9145 echo "${as_me:-configure}:9145: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
9147 CPPFLAGS="$cf_test_CPPFLAGS"
9148 LIBS="-lutf8 $cf_save_LIBS"
9149 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
9150 cat >conftest.$ac_ext <<_ACEOF
9151 #line 9151 "configure"
9152 #include "confdefs.h"
9154 #include <libutf8.h>
9163 rm -f conftest.$ac_objext conftest$ac_exeext
9164 if { (eval echo "$as_me:9164: \"$ac_link\"") >&5
9165 (eval $ac_link) 2>&5
9167 echo "$as_me:9167: \$? = $ac_status" >&5
9168 (exit $ac_status); } &&
9169 { ac_try='test -s conftest$ac_exeext'
9170 { (eval echo "$as_me:9170: \"$ac_try\"") >&5
9173 echo "$as_me:9173: \$? = $ac_status" >&5
9174 (exit $ac_status); }; }; then
9176 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
9178 echo "${as_me:-configure}:9178: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
9180 cf_cv_find_linkage_utf8=yes
9181 cf_cv_library_file_utf8="-lutf8"
9184 echo "$as_me: failed program was:" >&5
9185 cat conftest.$ac_ext >&5
9187 CPPFLAGS="$cf_save_CPPFLAGS"
9188 LIBS="$cf_save_LIBS"
9189 LDFLAGS="$cf_save_LDFLAGS"
9192 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9195 CPPFLAGS="$cf_save_CPPFLAGS"
9196 LDFLAGS="$cf_save_LDFLAGS"
9200 cf_cv_find_linkage_utf8=no
9204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9209 LIBS="$cf_save_LIBS"
9211 if test "$cf_cv_find_linkage_utf8" = yes ; then
9212 cf_cv_utf8_lib=add-on
9218 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9220 echo "$as_me:9220: result: $cf_cv_utf8_lib" >&5
9221 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
9223 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
9225 if test "$cf_cv_utf8_lib" = "add-on" ; then
9226 cat >>confdefs.h <<\EOF
9227 #define HAVE_LIBUTF8_H 1
9230 if test -n "$cf_cv_header_path_utf8" ; then
9231 for cf_add_incdir in $cf_cv_header_path_utf8
9233 while test $cf_add_incdir != /usr/include
9235 if test -d $cf_add_incdir
9238 if test -n "$CFLAGS$CPPFLAGS" ; then
9239 # a loop is needed to ensure we can add subdirs of existing dirs
9240 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
9241 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
9242 cf_have_incdir=yes; break
9247 if test "$cf_have_incdir" = no ; then
9248 if test "$cf_add_incdir" = /usr/local/include ; then
9249 if test "$GCC" = yes
9251 cf_save_CPPFLAGS=$CPPFLAGS
9252 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9253 cat >conftest.$ac_ext <<_ACEOF
9254 #line 9254 "configure"
9255 #include "confdefs.h"
9265 rm -f conftest.$ac_objext
9266 if { (eval echo "$as_me:9266: \"$ac_compile\"") >&5
9267 (eval $ac_compile) 2>&5
9269 echo "$as_me:9269: \$? = $ac_status" >&5
9270 (exit $ac_status); } &&
9271 { ac_try='test -s conftest.$ac_objext'
9272 { (eval echo "$as_me:9272: \"$ac_try\"") >&5
9275 echo "$as_me:9275: \$? = $ac_status" >&5
9276 (exit $ac_status); }; }; then
9279 echo "$as_me: failed program was:" >&5
9280 cat conftest.$ac_ext >&5
9283 rm -f conftest.$ac_objext conftest.$ac_ext
9284 CPPFLAGS=$cf_save_CPPFLAGS
9289 if test "$cf_have_incdir" = no ; then
9290 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
9292 echo "${as_me:-configure}:9292: testing adding $cf_add_incdir to include-path ..." 1>&5
9294 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9296 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
9297 test "$cf_top_incdir" = "$cf_add_incdir" && break
9298 cf_add_incdir="$cf_top_incdir"
9307 if test -n "$cf_cv_library_path_utf8" ; then
9308 for cf_add_libdir in $cf_cv_library_path_utf8
9310 if test $cf_add_libdir = /usr/lib ; then
9312 elif test -d $cf_add_libdir
9315 if test -n "$LDFLAGS$LIBS" ; then
9316 # a loop is needed to ensure we can add subdirs of existing dirs
9317 for cf_test_libdir in $LDFLAGS $LIBS ; do
9318 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
9319 cf_have_libdir=yes; break
9323 if test "$cf_have_libdir" = no ; then
9324 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
9326 echo "${as_me:-configure}:9326: testing adding $cf_add_libdir to library-path ..." 1>&5
9328 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
9334 LIBS="$cf_cv_library_file_utf8 $LIBS"
9337 if test "$cf_cv_utf8_lib" != no ; then
9342 # This is needed on Tru64 5.0 to declare mbstate_t
9343 echo "$as_me:9343: checking if we must include wchar.h to declare mbstate_t" >&5
9344 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
9345 if test "${cf_cv_mbstate_t+set}" = set; then
9346 echo $ECHO_N "(cached) $ECHO_C" >&6
9349 cat >conftest.$ac_ext <<_ACEOF
9350 #line 9350 "configure"
9351 #include "confdefs.h"
9356 #ifdef HAVE_LIBUTF8_H
9357 #include <libutf8.h>
9367 rm -f conftest.$ac_objext
9368 if { (eval echo "$as_me:9368: \"$ac_compile\"") >&5
9369 (eval $ac_compile) 2>&5
9371 echo "$as_me:9371: \$? = $ac_status" >&5
9372 (exit $ac_status); } &&
9373 { ac_try='test -s conftest.$ac_objext'
9374 { (eval echo "$as_me:9374: \"$ac_try\"") >&5
9377 echo "$as_me:9377: \$? = $ac_status" >&5
9378 (exit $ac_status); }; }; then
9381 echo "$as_me: failed program was:" >&5
9382 cat conftest.$ac_ext >&5
9383 cat >conftest.$ac_ext <<_ACEOF
9384 #line 9384 "configure"
9385 #include "confdefs.h"
9391 #ifdef HAVE_LIBUTF8_H
9392 #include <libutf8.h>
9402 rm -f conftest.$ac_objext
9403 if { (eval echo "$as_me:9403: \"$ac_compile\"") >&5
9404 (eval $ac_compile) 2>&5
9406 echo "$as_me:9406: \$? = $ac_status" >&5
9407 (exit $ac_status); } &&
9408 { ac_try='test -s conftest.$ac_objext'
9409 { (eval echo "$as_me:9409: \"$ac_try\"") >&5
9412 echo "$as_me:9412: \$? = $ac_status" >&5
9413 (exit $ac_status); }; }; then
9416 echo "$as_me: failed program was:" >&5
9417 cat conftest.$ac_ext >&5
9418 cf_cv_mbstate_t=unknown
9420 rm -f conftest.$ac_objext conftest.$ac_ext
9422 rm -f conftest.$ac_objext conftest.$ac_ext
9424 echo "$as_me:9424: result: $cf_cv_mbstate_t" >&5
9425 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
9427 if test "$cf_cv_mbstate_t" = yes ; then
9428 cat >>confdefs.h <<\EOF
9429 #define NEED_WCHAR_H 1
9435 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
9436 if test "$cf_cv_mbstate_t" = unknown ; then
9440 # This is needed on Tru64 5.0 to declare wchar_t
9441 echo "$as_me:9441: checking if we must include wchar.h to declare wchar_t" >&5
9442 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
9443 if test "${cf_cv_wchar_t+set}" = set; then
9444 echo $ECHO_N "(cached) $ECHO_C" >&6
9447 cat >conftest.$ac_ext <<_ACEOF
9448 #line 9448 "configure"
9449 #include "confdefs.h"
9454 #ifdef HAVE_LIBUTF8_H
9455 #include <libutf8.h>
9465 rm -f conftest.$ac_objext
9466 if { (eval echo "$as_me:9466: \"$ac_compile\"") >&5
9467 (eval $ac_compile) 2>&5
9469 echo "$as_me:9469: \$? = $ac_status" >&5
9470 (exit $ac_status); } &&
9471 { ac_try='test -s conftest.$ac_objext'
9472 { (eval echo "$as_me:9472: \"$ac_try\"") >&5
9475 echo "$as_me:9475: \$? = $ac_status" >&5
9476 (exit $ac_status); }; }; then
9479 echo "$as_me: failed program was:" >&5
9480 cat conftest.$ac_ext >&5
9481 cat >conftest.$ac_ext <<_ACEOF
9482 #line 9482 "configure"
9483 #include "confdefs.h"
9489 #ifdef HAVE_LIBUTF8_H
9490 #include <libutf8.h>
9500 rm -f conftest.$ac_objext
9501 if { (eval echo "$as_me:9501: \"$ac_compile\"") >&5
9502 (eval $ac_compile) 2>&5
9504 echo "$as_me:9504: \$? = $ac_status" >&5
9505 (exit $ac_status); } &&
9506 { ac_try='test -s conftest.$ac_objext'
9507 { (eval echo "$as_me:9507: \"$ac_try\"") >&5
9510 echo "$as_me:9510: \$? = $ac_status" >&5
9511 (exit $ac_status); }; }; then
9514 echo "$as_me: failed program was:" >&5
9515 cat conftest.$ac_ext >&5
9516 cf_cv_wchar_t=unknown
9518 rm -f conftest.$ac_objext conftest.$ac_ext
9520 rm -f conftest.$ac_objext conftest.$ac_ext
9522 echo "$as_me:9522: result: $cf_cv_wchar_t" >&5
9523 echo "${ECHO_T}$cf_cv_wchar_t" >&6
9525 if test "$cf_cv_wchar_t" = yes ; then
9526 cat >>confdefs.h <<\EOF
9527 #define NEED_WCHAR_H 1
9533 # if we do not find wchar_t in either place, use substitution to provide a fallback.
9534 if test "$cf_cv_wchar_t" = unknown ; then
9538 # if we find wchar_t in either place, use substitution to provide a fallback.
9539 if test "$cf_cv_wchar_t" != unknown ; then
9540 NCURSES_OK_WCHAR_T=1
9543 # This is needed on Tru64 5.0 to declare wint_t
9544 echo "$as_me:9544: checking if we must include wchar.h to declare wint_t" >&5
9545 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
9546 if test "${cf_cv_wint_t+set}" = set; then
9547 echo $ECHO_N "(cached) $ECHO_C" >&6
9550 cat >conftest.$ac_ext <<_ACEOF
9551 #line 9551 "configure"
9552 #include "confdefs.h"
9557 #ifdef HAVE_LIBUTF8_H
9558 #include <libutf8.h>
9568 rm -f conftest.$ac_objext
9569 if { (eval echo "$as_me:9569: \"$ac_compile\"") >&5
9570 (eval $ac_compile) 2>&5
9572 echo "$as_me:9572: \$? = $ac_status" >&5
9573 (exit $ac_status); } &&
9574 { ac_try='test -s conftest.$ac_objext'
9575 { (eval echo "$as_me:9575: \"$ac_try\"") >&5
9578 echo "$as_me:9578: \$? = $ac_status" >&5
9579 (exit $ac_status); }; }; then
9582 echo "$as_me: failed program was:" >&5
9583 cat conftest.$ac_ext >&5
9584 cat >conftest.$ac_ext <<_ACEOF
9585 #line 9585 "configure"
9586 #include "confdefs.h"
9592 #ifdef HAVE_LIBUTF8_H
9593 #include <libutf8.h>
9603 rm -f conftest.$ac_objext
9604 if { (eval echo "$as_me:9604: \"$ac_compile\"") >&5
9605 (eval $ac_compile) 2>&5
9607 echo "$as_me:9607: \$? = $ac_status" >&5
9608 (exit $ac_status); } &&
9609 { ac_try='test -s conftest.$ac_objext'
9610 { (eval echo "$as_me:9610: \"$ac_try\"") >&5
9613 echo "$as_me:9613: \$? = $ac_status" >&5
9614 (exit $ac_status); }; }; then
9617 echo "$as_me: failed program was:" >&5
9618 cat conftest.$ac_ext >&5
9619 cf_cv_wint_t=unknown
9621 rm -f conftest.$ac_objext conftest.$ac_ext
9623 rm -f conftest.$ac_objext conftest.$ac_ext
9625 echo "$as_me:9625: result: $cf_cv_wint_t" >&5
9626 echo "${ECHO_T}$cf_cv_wint_t" >&6
9628 if test "$cf_cv_wint_t" = yes ; then
9629 cat >>confdefs.h <<\EOF
9630 #define NEED_WCHAR_H 1
9636 # if we do not find wint_t in either place, use substitution to provide a fallback.
9637 if test "$cf_cv_wint_t" = unknown ; then
9641 # if we find wint_t in either place, use substitution to provide a fallback.
9642 if test "$cf_cv_wint_t" != unknown ; then
9646 if test "$NCURSES_MBSTATE_T" != 0; then
9647 cat >>confdefs.h <<\EOF
9648 #define NEED_MBSTATE_T_DEF 1
9654 ### use option --disable-lp64 to allow long chtype
9655 case $cf_cv_abi_version in
9657 default_with_lp64=no
9660 default_with_lp64=yes
9664 echo "$as_me:9664: checking whether to enable _LP64 definition in curses.h" >&5
9665 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
9667 # Check whether --enable-lp64 or --disable-lp64 was given.
9668 if test "${enable_lp64+set}" = set; then
9669 enableval="$enable_lp64"
9670 with_lp64=$enableval
9672 with_lp64=$default_with_lp64
9674 echo "$as_me:9674: result: $with_lp64" >&5
9675 echo "${ECHO_T}$with_lp64" >&6
9677 if test "$with_lp64" = yes ; then
9683 # Check whether --enable-largefile or --disable-largefile was given.
9684 if test "${enable_largefile+set}" = set; then
9685 enableval="$enable_largefile"
9688 if test "$enable_largefile" != no; then
9690 echo "$as_me:9690: checking for special C compiler options needed for large files" >&5
9691 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
9692 if test "${ac_cv_sys_largefile_CC+set}" = set; then
9693 echo $ECHO_N "(cached) $ECHO_C" >&6
9695 ac_cv_sys_largefile_CC=no
9696 if test "$GCC" != yes; then
9699 # IRIX 6.2 and later do not support large files by default,
9700 # so use the C compiler's -n32 option if that helps.
9701 cat >conftest.$ac_ext <<_ACEOF
9702 #line 9702 "configure"
9703 #include "confdefs.h"
9704 #include <sys/types.h>
9705 /* Check that off_t can represent 2**63 - 1 correctly.
9706 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9707 since some C++ compilers masquerading as C compilers
9708 incorrectly reject 9223372036854775807. */
9709 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9710 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9711 && LARGE_OFF_T % 2147483647 == 1)
9721 rm -f conftest.$ac_objext
9722 if { (eval echo "$as_me:9722: \"$ac_compile\"") >&5
9723 (eval $ac_compile) 2>&5
9725 echo "$as_me:9725: \$? = $ac_status" >&5
9726 (exit $ac_status); } &&
9727 { ac_try='test -s conftest.$ac_objext'
9728 { (eval echo "$as_me:9728: \"$ac_try\"") >&5
9731 echo "$as_me:9731: \$? = $ac_status" >&5
9732 (exit $ac_status); }; }; then
9735 echo "$as_me: failed program was:" >&5
9736 cat conftest.$ac_ext >&5
9738 rm -f conftest.$ac_objext
9740 rm -f conftest.$ac_objext
9741 if { (eval echo "$as_me:9741: \"$ac_compile\"") >&5
9742 (eval $ac_compile) 2>&5
9744 echo "$as_me:9744: \$? = $ac_status" >&5
9745 (exit $ac_status); } &&
9746 { ac_try='test -s conftest.$ac_objext'
9747 { (eval echo "$as_me:9747: \"$ac_try\"") >&5
9750 echo "$as_me:9750: \$? = $ac_status" >&5
9751 (exit $ac_status); }; }; then
9752 ac_cv_sys_largefile_CC=' -n32'; break
9754 echo "$as_me: failed program was:" >&5
9755 cat conftest.$ac_ext >&5
9757 rm -f conftest.$ac_objext
9761 rm -f conftest.$ac_ext
9764 echo "$as_me:9764: result: $ac_cv_sys_largefile_CC" >&5
9765 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
9766 if test "$ac_cv_sys_largefile_CC" != no; then
9767 CC=$CC$ac_cv_sys_largefile_CC
9770 echo "$as_me:9770: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9771 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
9772 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9773 echo $ECHO_N "(cached) $ECHO_C" >&6
9776 ac_cv_sys_file_offset_bits=no
9777 cat >conftest.$ac_ext <<_ACEOF
9778 #line 9778 "configure"
9779 #include "confdefs.h"
9780 #include <sys/types.h>
9781 /* Check that off_t can represent 2**63 - 1 correctly.
9782 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9783 since some C++ compilers masquerading as C compilers
9784 incorrectly reject 9223372036854775807. */
9785 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9786 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9787 && LARGE_OFF_T % 2147483647 == 1)
9797 rm -f conftest.$ac_objext
9798 if { (eval echo "$as_me:9798: \"$ac_compile\"") >&5
9799 (eval $ac_compile) 2>&5
9801 echo "$as_me:9801: \$? = $ac_status" >&5
9802 (exit $ac_status); } &&
9803 { ac_try='test -s conftest.$ac_objext'
9804 { (eval echo "$as_me:9804: \"$ac_try\"") >&5
9807 echo "$as_me:9807: \$? = $ac_status" >&5
9808 (exit $ac_status); }; }; then
9811 echo "$as_me: failed program was:" >&5
9812 cat conftest.$ac_ext >&5
9814 rm -f conftest.$ac_objext conftest.$ac_ext
9815 cat >conftest.$ac_ext <<_ACEOF
9816 #line 9816 "configure"
9817 #include "confdefs.h"
9818 #define _FILE_OFFSET_BITS 64
9819 #include <sys/types.h>
9820 /* Check that off_t can represent 2**63 - 1 correctly.
9821 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9822 since some C++ compilers masquerading as C compilers
9823 incorrectly reject 9223372036854775807. */
9824 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9825 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9826 && LARGE_OFF_T % 2147483647 == 1)
9836 rm -f conftest.$ac_objext
9837 if { (eval echo "$as_me:9837: \"$ac_compile\"") >&5
9838 (eval $ac_compile) 2>&5
9840 echo "$as_me:9840: \$? = $ac_status" >&5
9841 (exit $ac_status); } &&
9842 { ac_try='test -s conftest.$ac_objext'
9843 { (eval echo "$as_me:9843: \"$ac_try\"") >&5
9846 echo "$as_me:9846: \$? = $ac_status" >&5
9847 (exit $ac_status); }; }; then
9848 ac_cv_sys_file_offset_bits=64; break
9850 echo "$as_me: failed program was:" >&5
9851 cat conftest.$ac_ext >&5
9853 rm -f conftest.$ac_objext conftest.$ac_ext
9857 echo "$as_me:9857: result: $ac_cv_sys_file_offset_bits" >&5
9858 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9859 if test "$ac_cv_sys_file_offset_bits" != no; then
9861 cat >>confdefs.h <<EOF
9862 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9867 echo "$as_me:9867: checking for _LARGE_FILES value needed for large files" >&5
9868 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
9869 if test "${ac_cv_sys_large_files+set}" = set; then
9870 echo $ECHO_N "(cached) $ECHO_C" >&6
9873 ac_cv_sys_large_files=no
9874 cat >conftest.$ac_ext <<_ACEOF
9875 #line 9875 "configure"
9876 #include "confdefs.h"
9877 #include <sys/types.h>
9878 /* Check that off_t can represent 2**63 - 1 correctly.
9879 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9880 since some C++ compilers masquerading as C compilers
9881 incorrectly reject 9223372036854775807. */
9882 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9883 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9884 && LARGE_OFF_T % 2147483647 == 1)
9894 rm -f conftest.$ac_objext
9895 if { (eval echo "$as_me:9895: \"$ac_compile\"") >&5
9896 (eval $ac_compile) 2>&5
9898 echo "$as_me:9898: \$? = $ac_status" >&5
9899 (exit $ac_status); } &&
9900 { ac_try='test -s conftest.$ac_objext'
9901 { (eval echo "$as_me:9901: \"$ac_try\"") >&5
9904 echo "$as_me:9904: \$? = $ac_status" >&5
9905 (exit $ac_status); }; }; then
9908 echo "$as_me: failed program was:" >&5
9909 cat conftest.$ac_ext >&5
9911 rm -f conftest.$ac_objext conftest.$ac_ext
9912 cat >conftest.$ac_ext <<_ACEOF
9913 #line 9913 "configure"
9914 #include "confdefs.h"
9915 #define _LARGE_FILES 1
9916 #include <sys/types.h>
9917 /* Check that off_t can represent 2**63 - 1 correctly.
9918 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9919 since some C++ compilers masquerading as C compilers
9920 incorrectly reject 9223372036854775807. */
9921 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9922 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9923 && LARGE_OFF_T % 2147483647 == 1)
9933 rm -f conftest.$ac_objext
9934 if { (eval echo "$as_me:9934: \"$ac_compile\"") >&5
9935 (eval $ac_compile) 2>&5
9937 echo "$as_me:9937: \$? = $ac_status" >&5
9938 (exit $ac_status); } &&
9939 { ac_try='test -s conftest.$ac_objext'
9940 { (eval echo "$as_me:9940: \"$ac_try\"") >&5
9943 echo "$as_me:9943: \$? = $ac_status" >&5
9944 (exit $ac_status); }; }; then
9945 ac_cv_sys_large_files=1; break
9947 echo "$as_me: failed program was:" >&5
9948 cat conftest.$ac_ext >&5
9950 rm -f conftest.$ac_objext conftest.$ac_ext
9954 echo "$as_me:9954: result: $ac_cv_sys_large_files" >&5
9955 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9956 if test "$ac_cv_sys_large_files" != no; then
9958 cat >>confdefs.h <<EOF
9959 #define _LARGE_FILES $ac_cv_sys_large_files
9966 if test "$enable_largefile" != no ; then
9967 echo "$as_me:9967: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9968 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
9969 if test "${ac_cv_sys_largefile_source+set}" = set; then
9970 echo $ECHO_N "(cached) $ECHO_C" >&6
9973 ac_cv_sys_largefile_source=no
9974 cat >conftest.$ac_ext <<_ACEOF
9975 #line 9975 "configure"
9976 #include "confdefs.h"
9986 rm -f conftest.$ac_objext
9987 if { (eval echo "$as_me:9987: \"$ac_compile\"") >&5
9988 (eval $ac_compile) 2>&5
9990 echo "$as_me:9990: \$? = $ac_status" >&5
9991 (exit $ac_status); } &&
9992 { ac_try='test -s conftest.$ac_objext'
9993 { (eval echo "$as_me:9993: \"$ac_try\"") >&5
9996 echo "$as_me:9996: \$? = $ac_status" >&5
9997 (exit $ac_status); }; }; then
10000 echo "$as_me: failed program was:" >&5
10001 cat conftest.$ac_ext >&5
10003 rm -f conftest.$ac_objext conftest.$ac_ext
10004 cat >conftest.$ac_ext <<_ACEOF
10005 #line 10005 "configure"
10006 #include "confdefs.h"
10007 #define _LARGEFILE_SOURCE 1
10017 rm -f conftest.$ac_objext
10018 if { (eval echo "$as_me:10018: \"$ac_compile\"") >&5
10019 (eval $ac_compile) 2>&5
10021 echo "$as_me:10021: \$? = $ac_status" >&5
10022 (exit $ac_status); } &&
10023 { ac_try='test -s conftest.$ac_objext'
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_sys_largefile_source=1; break
10031 echo "$as_me: failed program was:" >&5
10032 cat conftest.$ac_ext >&5
10034 rm -f conftest.$ac_objext conftest.$ac_ext
10038 echo "$as_me:10038: result: $ac_cv_sys_largefile_source" >&5
10039 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
10040 if test "$ac_cv_sys_largefile_source" != no; then
10042 cat >>confdefs.h <<EOF
10043 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10049 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10050 # in glibc 2.1.3, but that breaks too many other things.
10051 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10052 echo "$as_me:10052: checking for fseeko" >&5
10053 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
10054 if test "${ac_cv_func_fseeko+set}" = set; then
10055 echo $ECHO_N "(cached) $ECHO_C" >&6
10057 cat >conftest.$ac_ext <<_ACEOF
10058 #line 10058 "configure"
10059 #include "confdefs.h"
10064 return fseeko && fseeko (stdin, 0, 0);
10069 rm -f conftest.$ac_objext conftest$ac_exeext
10070 if { (eval echo "$as_me:10070: \"$ac_link\"") >&5
10071 (eval $ac_link) 2>&5
10073 echo "$as_me:10073: \$? = $ac_status" >&5
10074 (exit $ac_status); } &&
10075 { ac_try='test -s conftest$ac_exeext'
10076 { (eval echo "$as_me:10076: \"$ac_try\"") >&5
10077 (eval $ac_try) 2>&5
10079 echo "$as_me:10079: \$? = $ac_status" >&5
10080 (exit $ac_status); }; }; then
10081 ac_cv_func_fseeko=yes
10083 echo "$as_me: failed program was:" >&5
10084 cat conftest.$ac_ext >&5
10085 ac_cv_func_fseeko=no
10087 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10089 echo "$as_me:10089: result: $ac_cv_func_fseeko" >&5
10090 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
10091 if test $ac_cv_func_fseeko = yes; then
10093 cat >>confdefs.h <<\EOF
10094 #define HAVE_FSEEKO 1
10099 # Normally we would collect these definitions in the config.h,
10100 # but (like _XOPEN_SOURCE), some environments rely on having these
10101 # defined before any of the system headers are included. Another
10102 # case comes up with C++, e.g., on AIX the compiler compiles the
10103 # header files by themselves before looking at the body files it is
10104 # told to compile. For ncurses, those header files do not include
10106 test "$ac_cv_sys_large_files" != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
10107 test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE "
10108 test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits "
10110 echo "$as_me:10110: checking whether to use struct dirent64" >&5
10111 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
10112 if test "${cf_cv_struct_dirent64+set}" = set; then
10113 echo $ECHO_N "(cached) $ECHO_C" >&6
10116 cat >conftest.$ac_ext <<_ACEOF
10117 #line 10117 "configure"
10118 #include "confdefs.h"
10120 #include <sys/types.h>
10121 #include <dirent.h>
10127 /* if transitional largefile support is setup, this is true */
10128 extern struct dirent64 * readdir(DIR *);
10129 struct dirent64 *x = readdir((DIR *)0);
10130 struct dirent *y = readdir((DIR *)0);
10137 rm -f conftest.$ac_objext
10138 if { (eval echo "$as_me:10138: \"$ac_compile\"") >&5
10139 (eval $ac_compile) 2>&5
10141 echo "$as_me:10141: \$? = $ac_status" >&5
10142 (exit $ac_status); } &&
10143 { ac_try='test -s conftest.$ac_objext'
10144 { (eval echo "$as_me:10144: \"$ac_try\"") >&5
10145 (eval $ac_try) 2>&5
10147 echo "$as_me:10147: \$? = $ac_status" >&5
10148 (exit $ac_status); }; }; then
10149 cf_cv_struct_dirent64=yes
10151 echo "$as_me: failed program was:" >&5
10152 cat conftest.$ac_ext >&5
10153 cf_cv_struct_dirent64=no
10155 rm -f conftest.$ac_objext conftest.$ac_ext
10158 echo "$as_me:10158: result: $cf_cv_struct_dirent64" >&5
10159 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
10160 test "$cf_cv_struct_dirent64" = yes && cat >>confdefs.h <<\EOF
10161 #define HAVE_STRUCT_DIRENT64 1
10166 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
10167 echo "$as_me:10167: checking if you want tparm not to use X/Open fixed-parameter list" >&5
10168 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
10170 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
10171 if test "${enable_tparm_varargs+set}" = set; then
10172 enableval="$enable_tparm_varargs"
10173 with_tparm_varargs=$enableval
10175 with_tparm_varargs=yes
10177 echo "$as_me:10177: result: $with_tparm_varargs" >&5
10178 echo "${ECHO_T}$with_tparm_varargs" >&6
10179 NCURSES_TPARM_VARARGS=0
10180 test "$with_tparm_varargs" = yes && NCURSES_TPARM_VARARGS=1
10182 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
10183 if test "$with_ticlib" != no ; then
10184 echo "$as_me:10184: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
10185 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
10187 # Check whether --enable-tic-depends or --disable-tic-depends was given.
10188 if test "${enable_tic_depends+set}" = set; then
10189 enableval="$enable_tic_depends"
10190 with_tic_depends=$enableval
10192 with_tic_depends=yes
10194 echo "$as_me:10194: result: $with_tic_depends" >&5
10195 echo "${ECHO_T}$with_tic_depends" >&6
10197 with_tic_depends=no
10200 ### use option --with-bool to override bool's type
10201 echo "$as_me:10201: checking for type of bool" >&5
10202 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
10204 # Check whether --with-bool or --without-bool was given.
10205 if test "${with_bool+set}" = set; then
10206 withval="$with_bool"
10207 NCURSES_BOOL="$withval"
10211 echo "$as_me:10211: result: $NCURSES_BOOL" >&5
10212 echo "${ECHO_T}$NCURSES_BOOL" >&6
10214 echo "$as_me:10214: checking for alternate terminal capabilities file" >&5
10215 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
10217 # Check whether --with-caps or --without-caps was given.
10218 if test "${with_caps+set}" = set; then
10219 withval="$with_caps"
10220 TERMINFO_CAPS=Caps.$withval
10224 test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
10225 echo "$as_me:10225: result: $TERMINFO_CAPS" >&5
10226 echo "${ECHO_T}$TERMINFO_CAPS" >&6
10228 ### use option --with-chtype to override chtype's type
10229 echo "$as_me:10229: checking for type of chtype" >&5
10230 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
10232 # Check whether --with-chtype or --without-chtype was given.
10233 if test "${with_chtype+set}" = set; then
10234 withval="$with_chtype"
10235 NCURSES_CHTYPE="$withval"
10237 NCURSES_CHTYPE=auto
10239 echo "$as_me:10239: result: $NCURSES_CHTYPE" >&5
10240 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
10242 ### use option --with-ospeed to override ospeed's type
10243 echo "$as_me:10243: checking for type of ospeed" >&5
10244 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
10246 # Check whether --with-ospeed or --without-ospeed was given.
10247 if test "${with_ospeed+set}" = set; then
10248 withval="$with_ospeed"
10249 NCURSES_OSPEED="$withval"
10251 NCURSES_OSPEED=short
10253 echo "$as_me:10253: result: $NCURSES_OSPEED" >&5
10254 echo "${ECHO_T}$NCURSES_OSPEED" >&6
10256 ### use option --with-mmask-t to override mmask_t's type
10257 echo "$as_me:10257: checking for type of mmask_t" >&5
10258 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
10260 # Check whether --with-mmask-t or --without-mmask-t was given.
10261 if test "${with_mmask_t+set}" = set; then
10262 withval="$with_mmask_t"
10263 NCURSES_MMASK_T="$withval"
10265 NCURSES_MMASK_T=auto
10267 echo "$as_me:10267: result: $NCURSES_MMASK_T" >&5
10268 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
10270 ### use option --with-ccharw-max to override CCHARW_MAX size
10271 echo "$as_me:10271: checking for size CCHARW_MAX" >&5
10272 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
10274 # Check whether --with-ccharw-max or --without-ccharw-max was given.
10275 if test "${with_ccharw_max+set}" = set; then
10276 withval="$with_ccharw_max"
10277 NCURSES_CCHARW_MAX="$withval"
10279 NCURSES_CCHARW_MAX=5
10281 echo "$as_me:10281: result: $NCURSES_CCHARW_MAX" >&5
10282 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
10284 ### use option --with-tparm-arg to override tparm's argument type
10285 echo "$as_me:10285: checking for type of tparm args" >&5
10286 echo $ECHO_N "checking for type of tparm args... $ECHO_C" >&6
10288 # Check whether --with-tparm-arg or --without-tparm-arg was given.
10289 if test "${with_tparm_arg+set}" = set; then
10290 withval="$with_tparm_arg"
10291 NCURSES_TPARM_ARG="$withval"
10293 NCURSES_TPARM_ARG=long
10295 echo "$as_me:10295: result: $NCURSES_TPARM_ARG" >&5
10296 echo "${ECHO_T}$NCURSES_TPARM_ARG" >&6
10298 ### Enable compiling-in rcs id's
10299 echo "$as_me:10299: checking if RCS identifiers should be compiled-in" >&5
10300 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
10302 # Check whether --with-rcs-ids or --without-rcs-ids was given.
10303 if test "${with_rcs_ids+set}" = set; then
10304 withval="$with_rcs_ids"
10305 with_rcs_ids=$withval
10309 echo "$as_me:10309: result: $with_rcs_ids" >&5
10310 echo "${ECHO_T}$with_rcs_ids" >&6
10311 test "$with_rcs_ids" = yes && cat >>confdefs.h <<\EOF
10312 #define USE_RCS_IDS 1
10315 ###############################################################################
10317 echo "$as_me:10317: checking format of man-pages" >&5
10318 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
10320 # Check whether --with-manpage-format or --without-manpage-format was given.
10321 if test "${with_manpage_format+set}" = set; then
10322 withval="$with_manpage_format"
10323 MANPAGE_FORMAT=$withval
10325 MANPAGE_FORMAT=unknown
10328 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
10329 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
10333 case $MANPAGE_FORMAT in
10335 if test -z "$MANPATH" ; then
10336 MANPATH="/usr/man:/usr/share/man"
10339 # look for the 'date' man-page (it's most likely to be installed!)
10345 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
10346 for cf_dir in $MANPATH; do
10347 test -z "$cf_dir" && cf_dir=/usr/man
10348 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
10350 cf_test=`echo $cf_name | sed -e 's/*//'`
10351 if test "x$cf_test" = "x$cf_name" ; then
10354 *.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
10355 *.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
10356 *.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
10357 *) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
10371 # if we found a match in either man* or cat*, stop looking
10372 if test -n "$MANPAGE_FORMAT" ; then
10374 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
10375 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
10381 test $cf_found=yes && break
10384 # only check the first directory in $MANPATH where we find manpages
10385 if test -n "$MANPAGE_FORMAT" ; then
10389 # if we did not find the example, just assume it is normal
10390 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
10394 for cf_option in $MANPAGE_FORMAT; do
10395 case $cf_option in #(vi
10396 gzip|compress|BSDI|normal|formatted|catonly)
10399 cf_unknown="$cf_unknown $cf_option"
10406 echo "$as_me:10406: result: $MANPAGE_FORMAT" >&5
10407 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
10408 if test -n "$cf_unknown" ; then
10409 { echo "$as_me:10409: WARNING: Unexpected manpage-format $cf_unknown" >&5
10410 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
10413 echo "$as_me:10413: checking for manpage renaming" >&5
10414 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
10416 # Check whether --with-manpage-renames or --without-manpage-renames was given.
10417 if test "${with_manpage_renames+set}" = set; then
10418 withval="$with_manpage_renames"
10419 MANPAGE_RENAMES=$withval
10421 MANPAGE_RENAMES=yes
10424 case ".$MANPAGE_RENAMES" in #(vi
10428 # Debian 'man' program?
10429 if test -f /etc/debian_version ; then
10430 MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
10437 if test "$MANPAGE_RENAMES" != no ; then
10438 if test -f $srcdir/man/$MANPAGE_RENAMES ; then
10439 MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
10440 elif test ! -f $MANPAGE_RENAMES ; then
10441 { { echo "$as_me:10441: error: not a filename: $MANPAGE_RENAMES" >&5
10442 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
10443 { (exit 1); exit 1; }; }
10446 test ! -d man && mkdir man
10448 # Construct a sed-script to perform renaming within man-pages
10449 if test -n "$MANPAGE_RENAMES" ; then
10450 test ! -d man && mkdir man
10451 sh $srcdir/man/make_sed.sh $MANPAGE_RENAMES >./edit_man.sed
10455 echo "$as_me:10455: result: $MANPAGE_RENAMES" >&5
10456 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
10458 echo "$as_me:10458: checking if manpage aliases will be installed" >&5
10459 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
10461 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
10462 if test "${with_manpage_aliases+set}" = set; then
10463 withval="$with_manpage_aliases"
10464 MANPAGE_ALIASES=$withval
10466 MANPAGE_ALIASES=yes
10469 echo "$as_me:10469: result: $MANPAGE_ALIASES" >&5
10470 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
10472 case "x$LN_S" in #(vi
10474 cf_use_symlinks=yes
10481 MANPAGE_SYMLINKS=no
10482 if test "$MANPAGE_ALIASES" = yes ; then
10483 echo "$as_me:10483: checking if manpage symlinks should be used" >&5
10484 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
10486 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
10487 if test "${with_manpage_symlinks+set}" = set; then
10488 withval="$with_manpage_symlinks"
10489 MANPAGE_SYMLINKS=$withval
10491 MANPAGE_SYMLINKS=$cf_use_symlinks
10494 if test "$$cf_use_symlinks" = no; then
10495 if test "$MANPAGE_SYMLINKS" = yes ; then
10496 { echo "$as_me:10496: WARNING: cannot make symlinks" >&5
10497 echo "$as_me: WARNING: cannot make symlinks" >&2;}
10498 MANPAGE_SYMLINKS=no
10502 echo "$as_me:10502: result: $MANPAGE_SYMLINKS" >&5
10503 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
10506 echo "$as_me:10506: checking for manpage tbl" >&5
10507 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
10509 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
10510 if test "${with_manpage_tbl+set}" = set; then
10511 withval="$with_manpage_tbl"
10512 MANPAGE_TBL=$withval
10517 echo "$as_me:10517: result: $MANPAGE_TBL" >&5
10518 echo "${ECHO_T}$MANPAGE_TBL" >&6
10520 if test "$prefix" = "NONE" ; then
10521 cf_prefix="$ac_default_prefix"
10523 cf_prefix="$prefix"
10526 case "$MANPAGE_FORMAT" in # (vi
10541 test ! -d man && mkdir man
10545 case "$MANPAGE_FORMAT" in #(vi
10548 cf_compress=compress
10556 cf_edit_man=./edit_man.sh
10557 cf_man_alias=`pwd`/man_alias.sed
10559 cat >$cf_edit_man <<CF_EOF
10561 # this script is generated by the configure-script CF_MAN_PAGES macro.
10563 prefix="$cf_prefix"
10566 NCURSES_MAJOR="$NCURSES_MAJOR"
10567 NCURSES_MINOR="$NCURSES_MINOR"
10568 NCURSES_PATCH="$NCURSES_PATCH"
10570 NCURSES_OSPEED="$NCURSES_OSPEED"
10571 TERMINFO="$TERMINFO"
10574 INSTALL_DATA="$INSTALL_DATA"
10576 transform="$program_transform_name"
10578 TMP=\${TMPDIR:=/tmp}/man\$\$
10579 trap "rm -f \$TMP" 0 1 2 5 15
10591 top_srcdir=\$srcdir/..
10594 if test "\$form" = normal ; then
10595 if test "$cf_format" = yes ; then
10596 if test "$cf_inboth" = no ; then
10597 sh \$0 format \$verb \$mandir \$srcdir \$*
10601 cf_subdir=\$mandir/man
10602 cf_tables=$MANPAGE_TBL
10604 cf_subdir=\$mandir/cat
10608 # process the list of source-files
10611 *.orig|*.rej) ;; #(vi
10613 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
10614 if test \$verb = installing ; then
10615 if test ! -d \$cf_subdir\${section} ; then
10616 mkdir -p \$cf_subdir\$section
10620 # replace variables in man page
10621 if test ! -f $cf_man_alias ; then
10622 cat >>$cf_man_alias <<-CF_EOF2
10623 s,@DATADIR@,\$datadir,g
10624 s,@TERMINFO@,\$TERMINFO,g
10625 s,@NCURSES_MAJOR@,\$NCURSES_MAJOR,g
10626 s,@NCURSES_MINOR@,\$NCURSES_MINOR,g
10627 s,@NCURSES_PATCH@,\$NCURSES_PATCH,g
10628 s,@NCURSES_OSPEED@,\$NCURSES_OSPEED,g
10631 for cf_name in captoinfo clear infocmp infotocap tabs tic toe tput tset
10633 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
10634 cf_name=`echo $cf_name|sed "$program_transform_name"`
10635 cat >>$cf_edit_man <<-CF_EOF
10636 s,@$cf_NAME@,$cf_name,g
10640 cat >>$cf_edit_man <<CF_EOF
10642 echo "...made $cf_man_alias"
10646 cf_source=\`basename \$i\`
10647 inalias=\$cf_source
10648 test ! -f \$inalias && inalias="\$srcdir/\$inalias"
10649 if test ! -f \$inalias ; then
10650 echo .. skipped \$cf_source
10655 if test "$MANPAGE_ALIASES" != no ; then
10656 cat >>$cf_edit_man <<CF_EOF
10658 test $with_curses_h = yes && nCurses=ncurses.3x
10659 aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u; test \$inalias = \$nCurses && echo curses\`
10663 if test "$MANPAGE_RENAMES" = no ; then
10664 cat >>$cf_edit_man <<CF_EOF
10665 # perform program transformations for section 1 man pages
10666 if test \$section = 1 ; then
10667 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
10669 cf_target=\$cf_subdir\${section}/\$cf_source
10673 cat >>$cf_edit_man <<CF_EOF
10674 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
10675 if test -z "\$cf_target" ; then
10676 echo '? missing rename for '\$cf_source
10677 cf_target="\$cf_source"
10679 cf_target="\$cf_subdir\${section}/\${cf_target}"
10684 cat >>$cf_edit_man <<CF_EOF
10685 sed -f $cf_man_alias \\
10688 if test -f $MANPAGE_RENAMES ; then
10689 cat >>$cf_edit_man <<CF_EOF
10690 < \$i | sed -f `pwd`/edit_man.sed >\$TMP
10693 cat >>$cf_edit_man <<CF_EOF
10698 cat >>$cf_edit_man <<CF_EOF
10699 if test \$cf_tables = yes ; then
10700 tbl \$TMP >\$TMP.out
10705 if test $with_overwrite != yes ; then
10706 cat >>$cf_edit_man <<CF_EOF
10707 sed -e "/\#[ ]*include/s,<curses.h,<ncurses$LIB_SUFFIX/curses.h," < \$TMP >\$TMP.out
10712 if test $with_curses_h != yes ; then
10713 cat >>$cf_edit_man <<CF_EOF
10714 sed -e "/\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
10719 cat >>$cf_edit_man <<CF_EOF
10720 if test \$form = format ; then
10721 nroff -man \$TMP >\$TMP.out
10726 if test -n "$cf_compress" ; then
10727 cat >>$cf_edit_man <<CF_EOF
10728 if test \$verb = installing ; then
10729 if ( $cf_compress -f \$TMP )
10731 mv \$TMP.$cf_so_strip \$TMP
10734 cf_target="\$cf_target.$cf_so_strip"
10738 case "$MANPAGE_FORMAT" in #(vi
10740 cat >>$cf_edit_man <<CF_EOF
10741 if test \$form = format ; then
10742 # BSDI installs only .0 suffixes in the cat directories
10743 cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
10749 cat >>$cf_edit_man <<CF_EOF
10750 suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\`
10751 if test \$verb = installing ; then
10752 echo \$verb \$cf_target
10753 \$INSTALL_DATA \$TMP \$cf_target
10754 test -d \$cf_subdir\${section} &&
10755 test -n "\$aliases" && (
10756 cd \$cf_subdir\${section} && (
10757 cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
10758 test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
10759 cf_target=\`basename \$cf_target\`
10760 for cf_alias in \$aliases
10762 if test \$section = 1 ; then
10763 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
10766 if test "$MANPAGE_SYMLINKS" = yes ; then
10767 if test -f \$cf_alias\${suffix} ; then
10768 if ( cmp -s \$cf_target \$cf_alias\${suffix} )
10773 echo .. \$verb alias \$cf_alias\${suffix}
10775 case "x$LN_S" in #(vi
10777 cat >>$cf_edit_man <<CF_EOF
10778 $LN_S \$cf_target \$cf_alias\${suffix}
10782 cat >>$cf_edit_man <<CF_EOF
10783 rm -f \$cf_alias\${suffix}
10784 $LN_S \$cf_target \$cf_alias\${suffix}
10788 cat >>$cf_edit_man <<CF_EOF
10789 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
10790 echo ".so \$cf_source" >\$TMP
10792 if test -n "$cf_compress" ; then
10793 cat >>$cf_edit_man <<CF_EOF
10794 if test -n "$cf_so_strip" ; then
10795 $cf_compress -f \$TMP
10796 mv \$TMP.$cf_so_strip \$TMP
10800 cat >>$cf_edit_man <<CF_EOF
10801 echo .. \$verb alias \$cf_alias\${suffix}
10802 rm -f \$cf_alias\${suffix}
10803 \$INSTALL_DATA \$TMP \$cf_alias\${suffix}
10808 elif test \$verb = removing ; then
10809 test -f \$cf_target && (
10810 echo \$verb \$cf_target
10813 test -d \$cf_subdir\${section} &&
10814 test -n "\$aliases" && (
10815 cd \$cf_subdir\${section} && (
10816 for cf_alias in \$aliases
10818 if test \$section = 1 ; then
10819 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
10822 echo .. \$verb alias \$cf_alias\${suffix}
10823 rm -f \$cf_alias\${suffix}
10835 if test $cf_inboth = yes ; then
10836 if test \$form != format ; then
10837 sh \$0 format \$verb \$mandir \$srcdir \$*
10843 chmod 755 $cf_edit_man
10845 ###############################################################################
10847 ### Note that some functions (such as const) are normally disabled anyway.
10848 echo "$as_me:10848: checking if you want to build with function extensions" >&5
10849 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
10851 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
10852 if test "${enable_ext_funcs+set}" = set; then
10853 enableval="$enable_ext_funcs"
10854 with_ext_funcs=$enableval
10858 echo "$as_me:10858: result: $with_ext_funcs" >&5
10859 echo "${ECHO_T}$with_ext_funcs" >&6
10860 if test "$with_ext_funcs" = yes ; then
10861 NCURSES_EXT_FUNCS=1
10862 cat >>confdefs.h <<\EOF
10863 #define HAVE_ASSUME_DEFAULT_COLORS 1
10866 cat >>confdefs.h <<\EOF
10867 #define HAVE_CURSES_VERSION 1
10870 cat >>confdefs.h <<\EOF
10871 #define HAVE_HAS_KEY 1
10874 cat >>confdefs.h <<\EOF
10875 #define HAVE_RESIZETERM 1
10878 cat >>confdefs.h <<\EOF
10879 #define HAVE_RESIZE_TERM 1
10882 cat >>confdefs.h <<\EOF
10883 #define HAVE_TERM_ENTRY_H 1
10886 cat >>confdefs.h <<\EOF
10887 #define HAVE_USE_DEFAULT_COLORS 1
10890 cat >>confdefs.h <<\EOF
10891 #define HAVE_USE_SCREEN 1
10894 cat >>confdefs.h <<\EOF
10895 #define HAVE_USE_WINDOW 1
10898 cat >>confdefs.h <<\EOF
10899 #define HAVE_WRESIZE 1
10902 cat >>confdefs.h <<\EOF
10903 #define NCURSES_EXT_FUNCS 1
10906 GENERATED_EXT_FUNCS=generated
10908 NCURSES_EXT_FUNCS=0
10909 GENERATED_EXT_FUNCS=
10912 echo "$as_me:10912: checking if you want to build with experimental SCREEN extensions" >&5
10913 echo $ECHO_N "checking if you want to build with experimental SCREEN extensions... $ECHO_C" >&6
10915 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
10916 if test "${enable_sp_funcs+set}" = set; then
10917 enableval="$enable_sp_funcs"
10918 with_sp_funcs=$enableval
10922 echo "$as_me:10922: result: $with_sp_funcs" >&5
10923 echo "${ECHO_T}$with_sp_funcs" >&6
10924 if test "$with_sp_funcs" = yes ; then
10926 cat >>confdefs.h <<\EOF
10927 #define NCURSES_SP_FUNCS 1
10930 GENERATED_SP_FUNCS=generated
10933 GENERATED_SP_FUNCS=
10936 echo "$as_me:10936: checking if you want to build with experimental terminal-driver" >&5
10937 echo $ECHO_N "checking if you want to build with experimental terminal-driver... $ECHO_C" >&6
10939 # Check whether --enable-term-driver or --disable-term-driver was given.
10940 if test "${enable_term_driver+set}" = set; then
10941 enableval="$enable_term_driver"
10942 with_term_driver=$enableval
10944 with_term_driver=no
10946 echo "$as_me:10946: result: $with_term_driver" >&5
10947 echo "${ECHO_T}$with_term_driver" >&6
10948 if test "$with_term_driver" = yes ; then
10949 cat >>confdefs.h <<\EOF
10950 #define USE_TERM_DRIVER 1
10953 if test "$with_sp_funcs" != yes ; then
10954 { { echo "$as_me:10954: error: The term-driver option relies upon sp-funcs" >&5
10955 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
10956 { (exit 1); exit 1; }; }
10960 ### use option --enable-const to turn on use of const beyond that in XSI.
10961 echo "$as_me:10961: checking for extended use of const keyword" >&5
10962 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
10964 # Check whether --enable-const or --disable-const was given.
10965 if test "${enable_const+set}" = set; then
10966 enableval="$enable_const"
10967 with_ext_const=$enableval
10971 echo "$as_me:10971: result: $with_ext_const" >&5
10972 echo "${ECHO_T}$with_ext_const" >&6
10973 NCURSES_CONST='/*nothing*/'
10974 if test "$with_ext_const" = yes ; then
10975 NCURSES_CONST=const
10978 ### use option --enable-ext-colors to turn on use of colors beyond 16.
10979 echo "$as_me:10979: checking if you want to use extended colors" >&5
10980 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
10982 # Check whether --enable-ext-colors or --disable-ext-colors was given.
10983 if test "${enable_ext_colors+set}" = set; then
10984 enableval="$enable_ext_colors"
10985 with_ext_colors=$enableval
10989 echo "$as_me:10989: result: $with_ext_colors" >&5
10990 echo "${ECHO_T}$with_ext_colors" >&6
10991 NCURSES_EXT_COLORS=0
10992 if test "$with_ext_colors" = yes ; then
10993 if test "$with_widec" != yes ; then
10994 { { echo "$as_me:10994: error: This option applies only to wide-character library" >&5
10995 echo "$as_me: error: This option applies only to wide-character library" >&2;}
10996 { (exit 1); exit 1; }; }
10998 # cannot be ABI 5 since it changes sizeof(cchar_t)
11000 if test "${with_abi_version+set}" != set; then
11001 case $cf_cv_rel_version in
11003 cf_cv_rel_version=6.0
11004 cf_cv_abi_version=6
11005 { echo "$as_me:11005: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
11006 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
11012 NCURSES_EXT_COLORS=1
11013 cat >>confdefs.h <<\EOF
11014 #define NCURSES_EXT_COLORS 1
11019 ### use option --enable-ext-mouse to modify coding to support 5-button mice
11020 echo "$as_me:11020: checking if you want to use extended mouse encoding" >&5
11021 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
11023 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
11024 if test "${enable_ext_mouse+set}" = set; then
11025 enableval="$enable_ext_mouse"
11026 with_ext_mouse=$enableval
11030 echo "$as_me:11030: result: $with_ext_mouse" >&5
11031 echo "${ECHO_T}$with_ext_mouse" >&6
11032 NCURSES_MOUSE_VERSION=1
11033 if test "$with_ext_mouse" = yes ; then
11034 NCURSES_MOUSE_VERSION=2
11036 if test "${with_abi_version+set}" != set; then
11037 case $cf_cv_rel_version in
11039 cf_cv_rel_version=6.0
11040 cf_cv_abi_version=6
11041 { echo "$as_me:11041: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
11042 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
11049 echo "$as_me:11049: checking if you want \$NCURSES_NO_PADDING code" >&5
11050 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
11052 # Check whether --enable-no-padding or --disable-no-padding was given.
11053 if test "${enable_no_padding+set}" = set; then
11054 enableval="$enable_no_padding"
11055 with_no_padding=$enableval
11057 with_no_padding=$with_ext_funcs
11059 echo "$as_me:11059: result: $with_no_padding" >&5
11060 echo "${ECHO_T}$with_no_padding" >&6
11061 test "$with_no_padding" = yes && cat >>confdefs.h <<\EOF
11062 #define NCURSES_NO_PADDING 1
11065 echo "$as_me:11065: checking for ANSI C header files" >&5
11066 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11067 if test "${ac_cv_header_stdc+set}" = set; then
11068 echo $ECHO_N "(cached) $ECHO_C" >&6
11070 cat >conftest.$ac_ext <<_ACEOF
11071 #line 11071 "configure"
11072 #include "confdefs.h"
11073 #include <stdlib.h>
11074 #include <stdarg.h>
11075 #include <string.h>
11079 if { (eval echo "$as_me:11079: \"$ac_cpp conftest.$ac_ext\"") >&5
11080 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11082 egrep -v '^ *\+' conftest.er1 >conftest.err
11084 cat conftest.err >&5
11085 echo "$as_me:11085: \$? = $ac_status" >&5
11086 (exit $ac_status); } >/dev/null; then
11087 if test -s conftest.err; then
11088 ac_cpp_err=$ac_c_preproc_warn_flag
11095 if test -z "$ac_cpp_err"; then
11096 ac_cv_header_stdc=yes
11098 echo "$as_me: failed program was:" >&5
11099 cat conftest.$ac_ext >&5
11100 ac_cv_header_stdc=no
11102 rm -f conftest.err conftest.$ac_ext
11104 if test $ac_cv_header_stdc = yes; then
11105 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11106 cat >conftest.$ac_ext <<_ACEOF
11107 #line 11107 "configure"
11108 #include "confdefs.h"
11109 #include <string.h>
11112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11113 egrep "memchr" >/dev/null 2>&1; then
11116 ac_cv_header_stdc=no
11122 if test $ac_cv_header_stdc = yes; then
11123 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11124 cat >conftest.$ac_ext <<_ACEOF
11125 #line 11125 "configure"
11126 #include "confdefs.h"
11127 #include <stdlib.h>
11130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11131 egrep "free" >/dev/null 2>&1; then
11134 ac_cv_header_stdc=no
11140 if test $ac_cv_header_stdc = yes; then
11141 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11142 if test "$cross_compiling" = yes; then
11145 cat >conftest.$ac_ext <<_ACEOF
11146 #line 11146 "configure"
11147 #include "confdefs.h"
11149 #if ((' ' & 0x0FF) == 0x020)
11150 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11151 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11153 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
11154 || ('j' <= (c) && (c) <= 'r') \
11155 || ('s' <= (c) && (c) <= 'z'))
11156 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11159 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11164 for (i = 0; i < 256; i++)
11165 if (XOR (islower (i), ISLOWER (i))
11166 || toupper (i) != TOUPPER (i))
11167 $ac_main_return(2);
11168 $ac_main_return (0);
11171 rm -f conftest$ac_exeext
11172 if { (eval echo "$as_me:11172: \"$ac_link\"") >&5
11173 (eval $ac_link) 2>&5
11175 echo "$as_me:11175: \$? = $ac_status" >&5
11176 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11177 { (eval echo "$as_me:11177: \"$ac_try\"") >&5
11178 (eval $ac_try) 2>&5
11180 echo "$as_me:11180: \$? = $ac_status" >&5
11181 (exit $ac_status); }; }; then
11184 echo "$as_me: program exited with status $ac_status" >&5
11185 echo "$as_me: failed program was:" >&5
11186 cat conftest.$ac_ext >&5
11187 ac_cv_header_stdc=no
11189 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11193 echo "$as_me:11193: result: $ac_cv_header_stdc" >&5
11194 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11195 if test $ac_cv_header_stdc = yes; then
11197 cat >>confdefs.h <<\EOF
11198 #define STDC_HEADERS 1
11203 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
11205 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
11206 inttypes.h stdint.h unistd.h
11208 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11209 echo "$as_me:11209: checking for $ac_header" >&5
11210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11212 echo $ECHO_N "(cached) $ECHO_C" >&6
11214 cat >conftest.$ac_ext <<_ACEOF
11215 #line 11215 "configure"
11216 #include "confdefs.h"
11217 $ac_includes_default
11218 #include <$ac_header>
11220 rm -f conftest.$ac_objext
11221 if { (eval echo "$as_me:11221: \"$ac_compile\"") >&5
11222 (eval $ac_compile) 2>&5
11224 echo "$as_me:11224: \$? = $ac_status" >&5
11225 (exit $ac_status); } &&
11226 { ac_try='test -s conftest.$ac_objext'
11227 { (eval echo "$as_me:11227: \"$ac_try\"") >&5
11228 (eval $ac_try) 2>&5
11230 echo "$as_me:11230: \$? = $ac_status" >&5
11231 (exit $ac_status); }; }; then
11232 eval "$as_ac_Header=yes"
11234 echo "$as_me: failed program was:" >&5
11235 cat conftest.$ac_ext >&5
11236 eval "$as_ac_Header=no"
11238 rm -f conftest.$ac_objext conftest.$ac_ext
11240 echo "$as_me:11240: result: `eval echo '${'$as_ac_Header'}'`" >&5
11241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11243 cat >>confdefs.h <<EOF
11244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11250 echo "$as_me:11250: checking for signed char" >&5
11251 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
11252 if test "${ac_cv_type_signed_char+set}" = set; then
11253 echo $ECHO_N "(cached) $ECHO_C" >&6
11255 cat >conftest.$ac_ext <<_ACEOF
11256 #line 11256 "configure"
11257 #include "confdefs.h"
11258 $ac_includes_default
11262 if ((signed char *) 0)
11264 if (sizeof (signed char))
11270 rm -f conftest.$ac_objext
11271 if { (eval echo "$as_me:11271: \"$ac_compile\"") >&5
11272 (eval $ac_compile) 2>&5
11274 echo "$as_me:11274: \$? = $ac_status" >&5
11275 (exit $ac_status); } &&
11276 { ac_try='test -s conftest.$ac_objext'
11277 { (eval echo "$as_me:11277: \"$ac_try\"") >&5
11278 (eval $ac_try) 2>&5
11280 echo "$as_me:11280: \$? = $ac_status" >&5
11281 (exit $ac_status); }; }; then
11282 ac_cv_type_signed_char=yes
11284 echo "$as_me: failed program was:" >&5
11285 cat conftest.$ac_ext >&5
11286 ac_cv_type_signed_char=no
11288 rm -f conftest.$ac_objext conftest.$ac_ext
11290 echo "$as_me:11290: result: $ac_cv_type_signed_char" >&5
11291 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
11293 echo "$as_me:11293: checking size of signed char" >&5
11294 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
11295 if test "${ac_cv_sizeof_signed_char+set}" = set; then
11296 echo $ECHO_N "(cached) $ECHO_C" >&6
11298 if test "$ac_cv_type_signed_char" = yes; then
11299 if test "$cross_compiling" = yes; then
11300 # Depending upon the size, compute the lo and hi bounds.
11301 cat >conftest.$ac_ext <<_ACEOF
11302 #line 11302 "configure"
11303 #include "confdefs.h"
11304 $ac_includes_default
11308 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
11313 rm -f conftest.$ac_objext
11314 if { (eval echo "$as_me:11314: \"$ac_compile\"") >&5
11315 (eval $ac_compile) 2>&5
11317 echo "$as_me:11317: \$? = $ac_status" >&5
11318 (exit $ac_status); } &&
11319 { ac_try='test -s conftest.$ac_objext'
11320 { (eval echo "$as_me:11320: \"$ac_try\"") >&5
11321 (eval $ac_try) 2>&5
11323 echo "$as_me:11323: \$? = $ac_status" >&5
11324 (exit $ac_status); }; }; then
11327 cat >conftest.$ac_ext <<_ACEOF
11328 #line 11328 "configure"
11329 #include "confdefs.h"
11330 $ac_includes_default
11334 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
11339 rm -f conftest.$ac_objext
11340 if { (eval echo "$as_me:11340: \"$ac_compile\"") >&5
11341 (eval $ac_compile) 2>&5
11343 echo "$as_me:11343: \$? = $ac_status" >&5
11344 (exit $ac_status); } &&
11345 { ac_try='test -s conftest.$ac_objext'
11346 { (eval echo "$as_me:11346: \"$ac_try\"") >&5
11347 (eval $ac_try) 2>&5
11349 echo "$as_me:11349: \$? = $ac_status" >&5
11350 (exit $ac_status); }; }; then
11351 ac_hi=$ac_mid; break
11353 echo "$as_me: failed program was:" >&5
11354 cat conftest.$ac_ext >&5
11355 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
11357 rm -f conftest.$ac_objext conftest.$ac_ext
11360 echo "$as_me: failed program was:" >&5
11361 cat conftest.$ac_ext >&5
11364 cat >conftest.$ac_ext <<_ACEOF
11365 #line 11365 "configure"
11366 #include "confdefs.h"
11367 $ac_includes_default
11371 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
11376 rm -f conftest.$ac_objext
11377 if { (eval echo "$as_me:11377: \"$ac_compile\"") >&5
11378 (eval $ac_compile) 2>&5
11380 echo "$as_me:11380: \$? = $ac_status" >&5
11381 (exit $ac_status); } &&
11382 { ac_try='test -s conftest.$ac_objext'
11383 { (eval echo "$as_me:11383: \"$ac_try\"") >&5
11384 (eval $ac_try) 2>&5
11386 echo "$as_me:11386: \$? = $ac_status" >&5
11387 (exit $ac_status); }; }; then
11388 ac_lo=$ac_mid; break
11390 echo "$as_me: failed program was:" >&5
11391 cat conftest.$ac_ext >&5
11392 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
11394 rm -f conftest.$ac_objext conftest.$ac_ext
11397 rm -f conftest.$ac_objext conftest.$ac_ext
11398 # Binary search between lo and hi bounds.
11399 while test "x$ac_lo" != "x$ac_hi"; do
11400 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11401 cat >conftest.$ac_ext <<_ACEOF
11402 #line 11402 "configure"
11403 #include "confdefs.h"
11404 $ac_includes_default
11408 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
11413 rm -f conftest.$ac_objext
11414 if { (eval echo "$as_me:11414: \"$ac_compile\"") >&5
11415 (eval $ac_compile) 2>&5
11417 echo "$as_me:11417: \$? = $ac_status" >&5
11418 (exit $ac_status); } &&
11419 { ac_try='test -s conftest.$ac_objext'
11420 { (eval echo "$as_me:11420: \"$ac_try\"") >&5
11421 (eval $ac_try) 2>&5
11423 echo "$as_me:11423: \$? = $ac_status" >&5
11424 (exit $ac_status); }; }; then
11427 echo "$as_me: failed program was:" >&5
11428 cat conftest.$ac_ext >&5
11429 ac_lo=`expr $ac_mid + 1`
11431 rm -f conftest.$ac_objext conftest.$ac_ext
11433 ac_cv_sizeof_signed_char=$ac_lo
11435 if test "$cross_compiling" = yes; then
11436 { { echo "$as_me:11436: error: cannot run test program while cross compiling" >&5
11437 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11438 { (exit 1); exit 1; }; }
11440 cat >conftest.$ac_ext <<_ACEOF
11441 #line 11441 "configure"
11442 #include "confdefs.h"
11443 $ac_includes_default
11447 FILE *f = fopen ("conftest.val", "w");
11449 $ac_main_return (1);
11450 fprintf (f, "%d", (sizeof (signed char)));
11456 rm -f conftest$ac_exeext
11457 if { (eval echo "$as_me:11457: \"$ac_link\"") >&5
11458 (eval $ac_link) 2>&5
11460 echo "$as_me:11460: \$? = $ac_status" >&5
11461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11462 { (eval echo "$as_me:11462: \"$ac_try\"") >&5
11463 (eval $ac_try) 2>&5
11465 echo "$as_me:11465: \$? = $ac_status" >&5
11466 (exit $ac_status); }; }; then
11467 ac_cv_sizeof_signed_char=`cat conftest.val`
11469 echo "$as_me: program exited with status $ac_status" >&5
11470 echo "$as_me: failed program was:" >&5
11471 cat conftest.$ac_ext >&5
11473 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11478 ac_cv_sizeof_signed_char=0
11481 echo "$as_me:11481: result: $ac_cv_sizeof_signed_char" >&5
11482 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
11483 cat >>confdefs.h <<EOF
11484 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
11487 if test "$ac_cv_sizeof_signed_char" = 1 ; then
11488 NCURSES_SBOOL="signed char"
11490 NCURSES_SBOOL="char"
11492 echo "$as_me:11492: checking if you want to use signed Boolean array in term.h" >&5
11493 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
11495 # Check whether --enable-signed-char or --disable-signed-char was given.
11496 if test "${enable_signed_char+set}" = set; then
11497 enableval="$enable_signed_char"
11498 with_signed_char=$enableval
11500 with_signed_char=no
11502 echo "$as_me:11502: result: $with_signed_char" >&5
11503 echo "${ECHO_T}$with_signed_char" >&6
11504 test "$with_signed_char" != yes && NCURSES_SBOOL="char"
11506 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
11507 echo "$as_me:11507: checking if you want SIGWINCH handler" >&5
11508 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
11510 # Check whether --enable-sigwinch or --disable-sigwinch was given.
11511 if test "${enable_sigwinch+set}" = set; then
11512 enableval="$enable_sigwinch"
11513 with_sigwinch=$enableval
11515 with_sigwinch=$with_ext_funcs
11517 echo "$as_me:11517: result: $with_sigwinch" >&5
11518 echo "${ECHO_T}$with_sigwinch" >&6
11519 test "$with_sigwinch" = yes && cat >>confdefs.h <<\EOF
11520 #define USE_SIGWINCH 1
11523 ### use option --enable-tcap-names to allow user to define new capabilities
11524 echo "$as_me:11524: checking if you want user-definable terminal capabilities like termcap" >&5
11525 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
11527 # Check whether --enable-tcap-names or --disable-tcap-names was given.
11528 if test "${enable_tcap_names+set}" = set; then
11529 enableval="$enable_tcap_names"
11530 with_tcap_names=$enableval
11532 with_tcap_names=$with_ext_funcs
11534 echo "$as_me:11534: result: $with_tcap_names" >&5
11535 echo "${ECHO_T}$with_tcap_names" >&6
11537 test "$with_tcap_names" = yes && NCURSES_XNAMES=1
11539 ###############################################################################
11540 # These options are relatively safe to experiment with.
11542 echo "$as_me:11542: checking if you want all development code" >&5
11543 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
11545 # Check whether --with-develop or --without-develop was given.
11546 if test "${with_develop+set}" = set; then
11547 withval="$with_develop"
11548 with_develop=$withval
11552 echo "$as_me:11552: result: $with_develop" >&5
11553 echo "${ECHO_T}$with_develop" >&6
11555 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
11556 echo "$as_me:11556: checking if you want hard-tabs code" >&5
11557 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
11559 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
11560 if test "${enable_hard_tabs+set}" = set; then
11561 enableval="$enable_hard_tabs"
11564 enable_hard_tabs=$with_develop
11566 echo "$as_me:11566: result: $enable_hard_tabs" >&5
11567 echo "${ECHO_T}$enable_hard_tabs" >&6
11568 test "$enable_hard_tabs" = yes && cat >>confdefs.h <<\EOF
11569 #define USE_HARD_TABS 1
11572 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
11573 echo "$as_me:11573: checking if you want limited support for xmc" >&5
11574 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
11576 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
11577 if test "${enable_xmc_glitch+set}" = set; then
11578 enableval="$enable_xmc_glitch"
11581 enable_xmc_glitch=$with_develop
11583 echo "$as_me:11583: result: $enable_xmc_glitch" >&5
11584 echo "${ECHO_T}$enable_xmc_glitch" >&6
11585 test "$enable_xmc_glitch" = yes && cat >>confdefs.h <<\EOF
11586 #define USE_XMC_SUPPORT 1
11589 ###############################################################################
11590 # These are just experimental, probably should not be in a package:
11592 echo "$as_me:11592: checking if you do not want to assume colors are white-on-black" >&5
11593 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
11595 # Check whether --enable-assumed-color or --disable-assumed-color was given.
11596 if test "${enable_assumed_color+set}" = set; then
11597 enableval="$enable_assumed_color"
11598 with_assumed_color=$enableval
11600 with_assumed_color=yes
11602 echo "$as_me:11602: result: $with_assumed_color" >&5
11603 echo "${ECHO_T}$with_assumed_color" >&6
11604 test "$with_assumed_color" = yes && cat >>confdefs.h <<\EOF
11605 #define USE_ASSUMED_COLOR 1
11608 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
11609 echo "$as_me:11609: checking if you want hashmap scrolling-optimization code" >&5
11610 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
11612 # Check whether --enable-hashmap or --disable-hashmap was given.
11613 if test "${enable_hashmap+set}" = set; then
11614 enableval="$enable_hashmap"
11615 with_hashmap=$enableval
11619 echo "$as_me:11619: result: $with_hashmap" >&5
11620 echo "${ECHO_T}$with_hashmap" >&6
11621 test "$with_hashmap" = yes && cat >>confdefs.h <<\EOF
11622 #define USE_HASHMAP 1
11625 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
11626 echo "$as_me:11626: checking if you want colorfgbg code" >&5
11627 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
11629 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
11630 if test "${enable_colorfgbg+set}" = set; then
11631 enableval="$enable_colorfgbg"
11632 with_colorfgbg=$enableval
11636 echo "$as_me:11636: result: $with_colorfgbg" >&5
11637 echo "${ECHO_T}$with_colorfgbg" >&6
11638 test "$with_colorfgbg" = yes && cat >>confdefs.h <<\EOF
11639 #define USE_COLORFGBG 1
11642 ### use option --enable-interop to turn on use of bindings used for interop
11643 echo "$as_me:11643: checking if you want interop bindings" >&5
11644 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
11646 # Check whether --enable-interop or --disable-interop was given.
11647 if test "${enable_interop+set}" = set; then
11648 enableval="$enable_interop"
11649 with_exp_interop=$enableval
11651 with_exp_interop=no
11653 echo "$as_me:11653: result: $with_exp_interop" >&5
11654 echo "${ECHO_T}$with_exp_interop" >&6
11656 NCURSES_INTEROP_FUNCS=0
11657 test "$with_exp_interop" = yes && NCURSES_INTEROP_FUNCS=1
11659 # This is still experimental (20080329), but should ultimately be moved to
11660 # the script-block --with-normal, etc.
11662 echo "$as_me:11662: checking if you want to link with the pthread library" >&5
11663 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
11665 # Check whether --with-pthread or --without-pthread was given.
11666 if test "${with_pthread+set}" = set; then
11667 withval="$with_pthread"
11668 with_pthread=$withval
11672 echo "$as_me:11672: result: $with_pthread" >&5
11673 echo "${ECHO_T}$with_pthread" >&6
11675 if test "$with_pthread" != no ; then
11676 echo "$as_me:11676: checking for pthread.h" >&5
11677 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
11678 if test "${ac_cv_header_pthread_h+set}" = set; then
11679 echo $ECHO_N "(cached) $ECHO_C" >&6
11681 cat >conftest.$ac_ext <<_ACEOF
11682 #line 11682 "configure"
11683 #include "confdefs.h"
11684 #include <pthread.h>
11686 if { (eval echo "$as_me:11686: \"$ac_cpp conftest.$ac_ext\"") >&5
11687 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11689 egrep -v '^ *\+' conftest.er1 >conftest.err
11691 cat conftest.err >&5
11692 echo "$as_me:11692: \$? = $ac_status" >&5
11693 (exit $ac_status); } >/dev/null; then
11694 if test -s conftest.err; then
11695 ac_cpp_err=$ac_c_preproc_warn_flag
11702 if test -z "$ac_cpp_err"; then
11703 ac_cv_header_pthread_h=yes
11705 echo "$as_me: failed program was:" >&5
11706 cat conftest.$ac_ext >&5
11707 ac_cv_header_pthread_h=no
11709 rm -f conftest.err conftest.$ac_ext
11711 echo "$as_me:11711: result: $ac_cv_header_pthread_h" >&5
11712 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
11713 if test $ac_cv_header_pthread_h = yes; then
11715 cat >>confdefs.h <<\EOF
11716 #define HAVE_PTHREADS_H 1
11719 for cf_lib_pthread in pthread c_r
11721 echo "$as_me:11721: checking if we can link with the $cf_lib_pthread library" >&5
11722 echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
11723 cf_save_LIBS="$LIBS"
11724 LIBS="-l$cf_lib_pthread $LIBS"
11725 cat >conftest.$ac_ext <<_ACEOF
11726 #line 11726 "configure"
11727 #include "confdefs.h"
11729 #include <pthread.h>
11735 int rc = pthread_create(0,0,0,0);
11736 int r2 = pthread_mutexattr_settype(0, 0);
11742 rm -f conftest.$ac_objext conftest$ac_exeext
11743 if { (eval echo "$as_me:11743: \"$ac_link\"") >&5
11744 (eval $ac_link) 2>&5
11746 echo "$as_me:11746: \$? = $ac_status" >&5
11747 (exit $ac_status); } &&
11748 { ac_try='test -s conftest$ac_exeext'
11749 { (eval echo "$as_me:11749: \"$ac_try\"") >&5
11750 (eval $ac_try) 2>&5
11752 echo "$as_me:11752: \$? = $ac_status" >&5
11753 (exit $ac_status); }; }; then
11756 echo "$as_me: failed program was:" >&5
11757 cat conftest.$ac_ext >&5
11760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11761 LIBS="$cf_save_LIBS"
11762 echo "$as_me:11762: result: $with_pthread" >&5
11763 echo "${ECHO_T}$with_pthread" >&6
11764 test "$with_pthread" = yes && break
11767 if test "$with_pthread" = yes ; then
11768 LIBS="-l$cf_lib_pthread $LIBS"
11769 cat >>confdefs.h <<\EOF
11770 #define HAVE_LIBPTHREADS 1
11774 { { echo "$as_me:11774: error: Cannot link with pthread library" >&5
11775 echo "$as_me: error: Cannot link with pthread library" >&2;}
11776 { (exit 1); exit 1; }; }
11783 if test "x$with_pthread" != xno; then
11784 echo "$as_me:11784: checking for pthread_kill" >&5
11785 echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6
11786 if test "${ac_cv_func_pthread_kill+set}" = set; then
11787 echo $ECHO_N "(cached) $ECHO_C" >&6
11789 cat >conftest.$ac_ext <<_ACEOF
11790 #line 11790 "configure"
11791 #include "confdefs.h"
11792 /* System header to define __stub macros and hopefully few prototypes,
11793 which can conflict with char pthread_kill (); below. */
11794 #include <assert.h>
11795 /* Override any gcc2 internal prototype to avoid an error. */
11799 /* We use char because int might match the return type of a gcc2
11800 builtin and then its argument prototype would still apply. */
11801 char pthread_kill ();
11807 /* The GNU C library defines this for functions which it implements
11808 to always fail with ENOSYS. Some functions are actually named
11809 something starting with __ and the normal name is an alias. */
11810 #if defined (__stub_pthread_kill) || defined (__stub___pthread_kill)
11820 rm -f conftest.$ac_objext conftest$ac_exeext
11821 if { (eval echo "$as_me:11821: \"$ac_link\"") >&5
11822 (eval $ac_link) 2>&5
11824 echo "$as_me:11824: \$? = $ac_status" >&5
11825 (exit $ac_status); } &&
11826 { ac_try='test -s conftest$ac_exeext'
11827 { (eval echo "$as_me:11827: \"$ac_try\"") >&5
11828 (eval $ac_try) 2>&5
11830 echo "$as_me:11830: \$? = $ac_status" >&5
11831 (exit $ac_status); }; }; then
11832 ac_cv_func_pthread_kill=yes
11834 echo "$as_me: failed program was:" >&5
11835 cat conftest.$ac_ext >&5
11836 ac_cv_func_pthread_kill=no
11838 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11840 echo "$as_me:11840: result: $ac_cv_func_pthread_kill" >&5
11841 echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6
11842 if test $ac_cv_func_pthread_kill = yes; then
11844 echo "$as_me:11844: checking if you want to allow EINTR in wgetch with pthreads" >&5
11845 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
11847 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
11848 if test "${enable_pthreads_eintr+set}" = set; then
11849 enableval="$enable_pthreads_eintr"
11850 use_pthreads_eintr=$enableval
11852 use_pthreads_eintr=no
11854 echo "$as_me:11854: result: $use_pthreads_eintr" >&5
11855 echo "${ECHO_T}$use_pthreads_eintr" >&6
11856 if test $use_pthreads_eintr = yes ; then
11857 cat >>confdefs.h <<\EOF
11858 #define USE_PTHREADS_EINTR 1
11864 echo "$as_me:11864: checking if you want to use weak-symbols for pthreads" >&5
11865 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
11867 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
11868 if test "${enable_weak_symbols+set}" = set; then
11869 enableval="$enable_weak_symbols"
11870 use_weak_symbols=$enableval
11872 use_weak_symbols=no
11874 echo "$as_me:11874: result: $use_weak_symbols" >&5
11875 echo "${ECHO_T}$use_weak_symbols" >&6
11876 if test "$use_weak_symbols" = yes ; then
11878 echo "$as_me:11878: checking if $CC supports weak symbols" >&5
11879 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
11880 if test "${cf_cv_weak_symbols+set}" = set; then
11881 echo $ECHO_N "(cached) $ECHO_C" >&6
11884 cat >conftest.$ac_ext <<_ACEOF
11885 #line 11885 "configure"
11886 #include "confdefs.h"
11893 #if defined(__GNUC__)
11894 # if defined __USE_ISOC99
11895 # define _cat_pragma(exp) _Pragma(#exp)
11896 # define _weak_pragma(exp) _cat_pragma(weak name)
11898 # define _weak_pragma(exp)
11900 # define _declare(name) __extension__ extern __typeof__(name) name
11901 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
11904 weak_symbol(fopen);
11910 rm -f conftest.$ac_objext
11911 if { (eval echo "$as_me:11911: \"$ac_compile\"") >&5
11912 (eval $ac_compile) 2>&5
11914 echo "$as_me:11914: \$? = $ac_status" >&5
11915 (exit $ac_status); } &&
11916 { ac_try='test -s conftest.$ac_objext'
11917 { (eval echo "$as_me:11917: \"$ac_try\"") >&5
11918 (eval $ac_try) 2>&5
11920 echo "$as_me:11920: \$? = $ac_status" >&5
11921 (exit $ac_status); }; }; then
11922 cf_cv_weak_symbols=yes
11924 echo "$as_me: failed program was:" >&5
11925 cat conftest.$ac_ext >&5
11926 cf_cv_weak_symbols=no
11928 rm -f conftest.$ac_objext conftest.$ac_ext
11931 echo "$as_me:11931: result: $cf_cv_weak_symbols" >&5
11932 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
11935 cf_cv_weak_symbols=no
11938 if test $cf_cv_weak_symbols = yes ; then
11939 cat >>confdefs.h <<\EOF
11940 #define USE_WEAK_SYMBOLS 1
11947 if test "$with_pthread" = "yes" ; then
11948 cat >>confdefs.h <<\EOF
11949 #define USE_PTHREADS 1
11952 enable_reentrant=yes
11953 if test $cf_cv_weak_symbols = yes ; then
11958 # Reentrant code has to be opaque; there's little advantage to making ncurses
11959 # opaque outside of that, so there is no --enable-opaque option. We can use
11960 # this option without --with-pthreads, but this will be always set for
11962 echo "$as_me:11962: checking if you want experimental reentrant code" >&5
11963 echo $ECHO_N "checking if you want experimental reentrant code... $ECHO_C" >&6
11965 # Check whether --enable-reentrant or --disable-reentrant was given.
11966 if test "${enable_reentrant+set}" = set; then
11967 enableval="$enable_reentrant"
11968 with_reentrant=$enableval
11972 echo "$as_me:11972: result: $with_reentrant" >&5
11973 echo "${ECHO_T}$with_reentrant" >&6
11974 if test "$with_reentrant" = yes ; then
11975 cf_cv_enable_reentrant=1
11976 cf_cv_enable_opaque="NCURSES_INTERNALS"
11979 if test $cf_cv_weak_symbols = yes ; then
11981 # remove pthread library from $LIBS
11982 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
11984 TEST_LIBS="-lpthread $TEST_LIBS"
11985 TEST_LIBS2="-lpthread $TEST_LIBS2"
11987 LIB_SUFFIX="t${LIB_SUFFIX}"
11989 cat >>confdefs.h <<\EOF
11990 #define USE_REENTRANT 1
11993 if test "${with_abi_version+set}" != set; then
11994 case $cf_cv_rel_version in
11996 cf_cv_rel_version=6.0
11997 cf_cv_abi_version=6
11998 { echo "$as_me:11998: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
11999 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
12005 cf_cv_enable_reentrant=0
12006 cf_cv_enable_opaque="NCURSES_OPAQUE"
12008 NCURSES_SIZE_T=short
12011 ### Allow using a different wrap-prefix
12012 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
12013 echo "$as_me:12013: checking for prefix used to wrap public variables" >&5
12014 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
12016 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
12017 if test "${with_wrap_prefix+set}" = set; then
12018 withval="$with_wrap_prefix"
12019 NCURSES_WRAP_PREFIX=$withval
12021 NCURSES_WRAP_PREFIX=_nc_
12023 echo "$as_me:12023: result: $NCURSES_WRAP_PREFIX" >&5
12024 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
12026 NCURSES_WRAP_PREFIX=_nc_
12029 cat >>confdefs.h <<EOF
12030 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
12033 echo "$as_me:12033: checking if you want experimental safe-sprintf code" >&5
12034 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
12036 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
12037 if test "${enable_safe_sprintf+set}" = set; then
12038 enableval="$enable_safe_sprintf"
12039 with_safe_sprintf=$enableval
12041 with_safe_sprintf=no
12043 echo "$as_me:12043: result: $with_safe_sprintf" >&5
12044 echo "${ECHO_T}$with_safe_sprintf" >&6
12045 test "$with_safe_sprintf" = yes && cat >>confdefs.h <<\EOF
12046 #define USE_SAFE_SPRINTF 1
12049 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
12050 # when hashmap is used scroll hints are useless
12051 if test "$with_hashmap" = no ; then
12052 echo "$as_me:12052: checking if you want to experiment without scrolling-hints code" >&5
12053 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
12055 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
12056 if test "${enable_scroll_hints+set}" = set; then
12057 enableval="$enable_scroll_hints"
12058 with_scroll_hints=$enableval
12060 with_scroll_hints=yes
12062 echo "$as_me:12062: result: $with_scroll_hints" >&5
12063 echo "${ECHO_T}$with_scroll_hints" >&6
12064 test "$with_scroll_hints" = yes && cat >>confdefs.h <<\EOF
12065 #define USE_SCROLL_HINTS 1
12070 echo "$as_me:12070: checking if you want experimental wgetch-events code" >&5
12071 echo $ECHO_N "checking if you want experimental wgetch-events code... $ECHO_C" >&6
12073 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
12074 if test "${enable_wgetch_events+set}" = set; then
12075 enableval="$enable_wgetch_events"
12076 with_wgetch_events=$enableval
12078 with_wgetch_events=no
12080 echo "$as_me:12080: result: $with_wgetch_events" >&5
12081 echo "${ECHO_T}$with_wgetch_events" >&6
12082 test "$with_wgetch_events" = yes && cat >>confdefs.h <<\EOF
12083 #define NCURSES_WGETCH_EVENTS 1
12086 ###############################################################################
12088 ### use option --disable-echo to suppress full display compiling commands
12089 echo "$as_me:12089: checking if you want to display full commands during build" >&5
12090 echo $ECHO_N "checking if you want to display full commands during build... $ECHO_C" >&6
12092 # Check whether --enable-echo or --disable-echo was given.
12093 if test "${enable_echo+set}" = set; then
12094 enableval="$enable_echo"
12095 with_echo=$enableval
12099 if test "$with_echo" = yes; then
12102 ECHO_LINK='@ echo linking $@ ... ;'
12103 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
12104 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
12106 echo "$as_me:12106: result: $with_echo" >&5
12107 echo "${ECHO_T}$with_echo" >&6
12109 ### use option --enable-warnings to turn on all gcc warnings
12110 echo "$as_me:12110: checking if you want to see compiler warnings" >&5
12111 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
12113 # Check whether --enable-warnings or --disable-warnings was given.
12114 if test "${enable_warnings+set}" = set; then
12115 enableval="$enable_warnings"
12116 with_warnings=$enableval
12118 echo "$as_me:12118: result: $with_warnings" >&5
12119 echo "${ECHO_T}$with_warnings" >&6
12121 if test "x$with_warnings" = "xyes"; then
12123 ADAFLAGS="$ADAFLAGS -gnatg"
12127 if test "$GCC" = yes ; then
12130 echo "$as_me:12130: checking if this is really Intel C compiler" >&5
12131 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
12132 cf_save_CFLAGS="$CFLAGS"
12133 CFLAGS="$CFLAGS -no-gcc"
12134 cat >conftest.$ac_ext <<_ACEOF
12135 #line 12135 "configure"
12136 #include "confdefs.h"
12142 #ifdef __INTEL_COMPILER
12151 rm -f conftest.$ac_objext
12152 if { (eval echo "$as_me:12152: \"$ac_compile\"") >&5
12153 (eval $ac_compile) 2>&5
12155 echo "$as_me:12155: \$? = $ac_status" >&5
12156 (exit $ac_status); } &&
12157 { ac_try='test -s conftest.$ac_objext'
12158 { (eval echo "$as_me:12158: \"$ac_try\"") >&5
12159 (eval $ac_try) 2>&5
12161 echo "$as_me:12161: \$? = $ac_status" >&5
12162 (exit $ac_status); }; }; then
12164 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
12167 echo "$as_me: failed program was:" >&5
12168 cat conftest.$ac_ext >&5
12170 rm -f conftest.$ac_objext conftest.$ac_ext
12171 CFLAGS="$cf_save_CFLAGS"
12172 echo "$as_me:12172: result: $INTEL_COMPILER" >&5
12173 echo "${ECHO_T}$INTEL_COMPILER" >&6
12178 cat > conftest.$ac_ext <<EOF
12179 #line 12179 "${as_me:-configure}"
12180 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
12183 if test "$INTEL_COMPILER" = yes
12185 # The "-wdXXX" options suppress warnings:
12186 # remark #1419: external declaration in primary source file
12187 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
12188 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
12189 # remark #193: zero used for undefined preprocessing identifier
12190 # remark #593: variable "curs_sb_left_arrow" was set but never used
12191 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
12192 # remark #869: parameter "tw" was never referenced
12193 # remark #981: operands are evaluated in unspecified order
12194 # warning #279: controlling expression is constant
12196 { echo "$as_me:12196: checking for $CC warning options..." >&5
12197 echo "$as_me: checking for $CC warning options..." >&6;}
12198 cf_save_CFLAGS="$CFLAGS"
12199 EXTRA_CFLAGS="-Wall"
12211 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
12212 if { (eval echo "$as_me:12212: \"$ac_compile\"") >&5
12213 (eval $ac_compile) 2>&5
12215 echo "$as_me:12215: \$? = $ac_status" >&5
12216 (exit $ac_status); }; then
12217 test -n "$verbose" && echo "$as_me:12217: result: ... -$cf_opt" >&5
12218 echo "${ECHO_T}... -$cf_opt" >&6
12219 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
12222 CFLAGS="$cf_save_CFLAGS"
12224 elif test "$GCC" = yes
12226 { echo "$as_me:12226: checking for $CC warning options..." >&5
12227 echo "$as_me: checking for $CC warning options..." >&6;}
12228 cf_save_CFLAGS="$CFLAGS"
12231 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
12232 for cf_opt in W Wall \
12233 Wbad-function-cast \
12237 Wmissing-declarations \
12238 Wmissing-prototypes \
12242 Wstrict-prototypes \
12243 Wundef $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum
12245 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
12246 if { (eval echo "$as_me:12246: \"$ac_compile\"") >&5
12247 (eval $ac_compile) 2>&5
12249 echo "$as_me:12249: \$? = $ac_status" >&5
12250 (exit $ac_status); }; then
12251 test -n "$verbose" && echo "$as_me:12251: result: ... -$cf_opt" >&5
12252 echo "${ECHO_T}... -$cf_opt" >&6
12253 case $cf_opt in #(vi
12255 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
12258 case $GCC_VERSION in
12260 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
12262 echo "${as_me:-configure}:12262: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
12268 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
12271 CFLAGS="$cf_save_CFLAGS"
12275 if test "$cf_with_cxx" = yes ; then
12279 if test "$GCC" = yes ; then
12282 echo "$as_me:12282: checking if this is really Intel C++ compiler" >&5
12283 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
12284 cf_save_CFLAGS="$CXXFLAGS"
12285 CXXFLAGS="$CXXFLAGS -no-gcc"
12286 cat >conftest.$ac_ext <<_ACEOF
12287 #line 12287 "configure"
12288 #include "confdefs.h"
12294 #ifdef __INTEL_COMPILER
12303 rm -f conftest.$ac_objext
12304 if { (eval echo "$as_me:12304: \"$ac_compile\"") >&5
12305 (eval $ac_compile) 2>&5
12307 echo "$as_me:12307: \$? = $ac_status" >&5
12308 (exit $ac_status); } &&
12309 { ac_try='test -s conftest.$ac_objext'
12310 { (eval echo "$as_me:12310: \"$ac_try\"") >&5
12311 (eval $ac_try) 2>&5
12313 echo "$as_me:12313: \$? = $ac_status" >&5
12314 (exit $ac_status); }; }; then
12315 INTEL_CPLUSPLUS=yes
12316 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
12319 echo "$as_me: failed program was:" >&5
12320 cat conftest.$ac_ext >&5
12322 rm -f conftest.$ac_objext conftest.$ac_ext
12323 CXXFLAGS="$cf_save_CFLAGS"
12324 echo "$as_me:12324: result: $INTEL_CPLUSPLUS" >&5
12325 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
12331 ac_cpp='$CXXCPP $CPPFLAGS'
12332 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12333 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12334 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12335 ac_main_return=return
12337 cat > conftest.$ac_ext <<EOF
12338 #line 12338 "configure"
12339 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
12342 if test "$INTEL_CPLUSPLUS" = yes
12344 # The "-wdXXX" options suppress warnings:
12345 # remark #1419: external declaration in primary source file
12346 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
12347 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
12348 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
12349 # remark #193: zero used for undefined preprocessing identifier
12350 # remark #593: variable "curs_sb_left_arrow" was set but never used
12351 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
12352 # remark #869: parameter "tw" was never referenced
12353 # remark #981: operands are evaluated in unspecified order
12354 # warning #269: invalid format string conversion
12356 { echo "$as_me:12356: checking for $CC warning options..." >&5
12357 echo "$as_me: checking for $CC warning options..." >&6;}
12358 cf_save_CXXFLAGS="$CXXFLAGS"
12359 EXTRA_CXXFLAGS="-Wall"
12372 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
12373 if { (eval echo "$as_me:12373: \"$ac_compile\"") >&5
12374 (eval $ac_compile) 2>&5
12376 echo "$as_me:12376: \$? = $ac_status" >&5
12377 (exit $ac_status); }; then
12378 test -n "$verbose" && echo "$as_me:12378: result: ... -$cf_opt" >&5
12379 echo "${ECHO_T}... -$cf_opt" >&6
12380 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
12383 CXXFLAGS="$cf_save_CXXFLAGS"
12385 elif test "$GXX" = yes
12387 { echo "$as_me:12387: checking for $CXX warning options..." >&5
12388 echo "$as_me: checking for $CXX warning options..." >&6;}
12389 cf_save_CXXFLAGS="$CXXFLAGS"
12390 EXTRA_CXXFLAGS="-W -Wall"
12391 cf_gxx_extra_warnings=""
12392 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
12393 case "$GCC_VERSION" in
12397 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
12403 Woverloaded-virtual \
12409 Wmissing-prototypes \
12412 Wstrict-prototypes \
12413 Wundef $cf_gxx_extra_warnings Wno-unused
12415 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
12416 if { (eval echo "$as_me:12416: \"$ac_compile\"") >&5
12417 (eval $ac_compile) 2>&5
12419 echo "$as_me:12419: \$? = $ac_status" >&5
12420 (exit $ac_status); }; then
12421 test -n "$verbose" && echo "$as_me:12421: result: ... -$cf_opt" >&5
12422 echo "${ECHO_T}... -$cf_opt" >&6
12423 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
12425 test -n "$verbose" && echo "$as_me:12425: result: ... no -$cf_opt" >&5
12426 echo "${ECHO_T}... no -$cf_opt" >&6
12429 CXXFLAGS="$cf_save_CXXFLAGS"
12434 ac_cpp='$CPP $CPPFLAGS'
12435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12438 ac_main_return=return
12443 if test "$GCC" = yes
12445 cat > conftest.i <<EOF
12447 #define GCC_PRINTF 0
12450 #define GCC_SCANF 0
12452 #ifndef GCC_NORETURN
12453 #define GCC_NORETURN /* nothing */
12456 #define GCC_UNUSED /* nothing */
12459 if test "$GCC" = yes
12461 { echo "$as_me:12461: checking for $CC __attribute__ directives..." >&5
12462 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
12463 cat > conftest.$ac_ext <<EOF
12464 #line 12464 "${as_me:-configure}"
12465 #include "confdefs.h"
12466 #include "conftest.h"
12467 #include "conftest.i"
12469 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
12471 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
12474 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
12476 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
12478 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
12479 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
12480 extern void foo(void) GCC_NORETURN;
12481 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
12483 cf_printf_attribute=no
12484 cf_scanf_attribute=no
12485 for cf_attribute in scanf printf unused noreturn
12488 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
12490 cf_directive="__attribute__(($cf_attribute))"
12491 echo "checking for $CC $cf_directive" 1>&5
12493 case $cf_attribute in #(vi
12495 cf_printf_attribute=yes
12496 cat >conftest.h <<EOF
12497 #define GCC_$cf_ATTRIBUTE 1
12501 cf_scanf_attribute=yes
12502 cat >conftest.h <<EOF
12503 #define GCC_$cf_ATTRIBUTE 1
12507 cat >conftest.h <<EOF
12508 #define GCC_$cf_ATTRIBUTE $cf_directive
12513 if { (eval echo "$as_me:12513: \"$ac_compile\"") >&5
12514 (eval $ac_compile) 2>&5
12516 echo "$as_me:12516: \$? = $ac_status" >&5
12517 (exit $ac_status); }; then
12518 test -n "$verbose" && echo "$as_me:12518: result: ... $cf_attribute" >&5
12519 echo "${ECHO_T}... $cf_attribute" >&6
12520 cat conftest.h >>confdefs.h
12521 case $cf_attribute in #(vi
12523 if test "$cf_printf_attribute" = no ; then
12524 cat >>confdefs.h <<EOF
12525 #define GCC_PRINTFLIKE(fmt,var) /* nothing */
12528 cat >>confdefs.h <<EOF
12529 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
12534 if test "$cf_scanf_attribute" = no ; then
12535 cat >>confdefs.h <<EOF
12536 #define GCC_SCANFLIKE(fmt,var) /* nothing */
12539 cat >>confdefs.h <<EOF
12540 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
12548 fgrep define conftest.i >>confdefs.h
12553 ### use option --enable-assertions to turn on generation of assertion code
12554 echo "$as_me:12554: checking if you want to enable runtime assertions" >&5
12555 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
12557 # Check whether --enable-assertions or --disable-assertions was given.
12558 if test "${enable_assertions+set}" = set; then
12559 enableval="$enable_assertions"
12560 with_assertions=$enableval
12564 echo "$as_me:12564: result: $with_assertions" >&5
12565 echo "${ECHO_T}$with_assertions" >&6
12568 if test "$with_assertions" = no
12570 cat >>confdefs.h <<\EOF
12574 CPPFLAGS="$CPPFLAGS -DNDEBUG"
12577 ADAFLAGS="$ADAFLAGS -gnata"
12582 ### use option --disable-leaks to suppress "permanent" leaks, for testing
12584 echo "$as_me:12584: checking if you want to use dmalloc for testing" >&5
12585 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
12587 # Check whether --with-dmalloc or --without-dmalloc was given.
12588 if test "${with_dmalloc+set}" = set; then
12589 withval="$with_dmalloc"
12590 cat >>confdefs.h <<\EOF
12591 #define USE_DMALLOC 1
12594 : ${with_cflags:=-g}
12595 : ${with_no_leaks:=yes}
12600 echo "$as_me:12600: result: ${with_dmalloc:-no}" >&5
12601 echo "${ECHO_T}${with_dmalloc:-no}" >&6
12603 case .$with_cflags in #(vi
12605 case .$CFLAGS in #(vi
12613 cf_new_extra_cppflags=
12615 for cf_add_cflags in -g
12617 case $cf_fix_cppflags in
12619 case $cf_add_cflags in #(vi
12620 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
12621 case $cf_add_cflags in
12623 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12625 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12626 && test -z "${cf_tst_cflags}" \
12627 && cf_fix_cppflags=yes
12629 if test $cf_fix_cppflags = yes ; then
12630 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12632 elif test "${cf_tst_cflags}" = "\"'" ; then
12633 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12638 case "$CPPFLAGS" in
12639 *$cf_add_cflags) #(vi
12642 case $cf_add_cflags in #(vi
12644 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12646 CPPFLAGS=`echo "$CPPFLAGS" | \
12647 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12648 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12652 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12657 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12662 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12664 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12666 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12667 && test -z "${cf_tst_cflags}" \
12668 && cf_fix_cppflags=no
12673 if test -n "$cf_new_cflags" ; then
12675 CFLAGS="$CFLAGS $cf_new_cflags"
12678 if test -n "$cf_new_cppflags" ; then
12680 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12683 if test -n "$cf_new_extra_cppflags" ; then
12685 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12693 if test "$with_dmalloc" = yes ; then
12694 echo "$as_me:12694: checking for dmalloc.h" >&5
12695 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
12696 if test "${ac_cv_header_dmalloc_h+set}" = set; then
12697 echo $ECHO_N "(cached) $ECHO_C" >&6
12699 cat >conftest.$ac_ext <<_ACEOF
12700 #line 12700 "configure"
12701 #include "confdefs.h"
12702 #include <dmalloc.h>
12704 if { (eval echo "$as_me:12704: \"$ac_cpp conftest.$ac_ext\"") >&5
12705 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12707 egrep -v '^ *\+' conftest.er1 >conftest.err
12709 cat conftest.err >&5
12710 echo "$as_me:12710: \$? = $ac_status" >&5
12711 (exit $ac_status); } >/dev/null; then
12712 if test -s conftest.err; then
12713 ac_cpp_err=$ac_c_preproc_warn_flag
12720 if test -z "$ac_cpp_err"; then
12721 ac_cv_header_dmalloc_h=yes
12723 echo "$as_me: failed program was:" >&5
12724 cat conftest.$ac_ext >&5
12725 ac_cv_header_dmalloc_h=no
12727 rm -f conftest.err conftest.$ac_ext
12729 echo "$as_me:12729: result: $ac_cv_header_dmalloc_h" >&5
12730 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
12731 if test $ac_cv_header_dmalloc_h = yes; then
12733 echo "$as_me:12733: checking for dmalloc_debug in -ldmalloc" >&5
12734 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
12735 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
12736 echo $ECHO_N "(cached) $ECHO_C" >&6
12738 ac_check_lib_save_LIBS=$LIBS
12739 LIBS="-ldmalloc $LIBS"
12740 cat >conftest.$ac_ext <<_ACEOF
12741 #line 12741 "configure"
12742 #include "confdefs.h"
12744 /* Override any gcc2 internal prototype to avoid an error. */
12748 /* We use char because int might match the return type of a gcc2
12749 builtin and then its argument prototype would still apply. */
12750 char dmalloc_debug ();
12759 rm -f conftest.$ac_objext conftest$ac_exeext
12760 if { (eval echo "$as_me:12760: \"$ac_link\"") >&5
12761 (eval $ac_link) 2>&5
12763 echo "$as_me:12763: \$? = $ac_status" >&5
12764 (exit $ac_status); } &&
12765 { ac_try='test -s conftest$ac_exeext'
12766 { (eval echo "$as_me:12766: \"$ac_try\"") >&5
12767 (eval $ac_try) 2>&5
12769 echo "$as_me:12769: \$? = $ac_status" >&5
12770 (exit $ac_status); }; }; then
12771 ac_cv_lib_dmalloc_dmalloc_debug=yes
12773 echo "$as_me: failed program was:" >&5
12774 cat conftest.$ac_ext >&5
12775 ac_cv_lib_dmalloc_dmalloc_debug=no
12777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12778 LIBS=$ac_check_lib_save_LIBS
12780 echo "$as_me:12780: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
12781 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
12782 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
12783 cat >>confdefs.h <<EOF
12784 #define HAVE_LIBDMALLOC 1
12787 LIBS="-ldmalloc $LIBS"
12795 echo "$as_me:12795: checking if you want to use dbmalloc for testing" >&5
12796 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
12798 # Check whether --with-dbmalloc or --without-dbmalloc was given.
12799 if test "${with_dbmalloc+set}" = set; then
12800 withval="$with_dbmalloc"
12801 cat >>confdefs.h <<\EOF
12802 #define USE_DBMALLOC 1
12805 : ${with_cflags:=-g}
12806 : ${with_no_leaks:=yes}
12811 echo "$as_me:12811: result: ${with_dbmalloc:-no}" >&5
12812 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
12814 case .$with_cflags in #(vi
12816 case .$CFLAGS in #(vi
12824 cf_new_extra_cppflags=
12826 for cf_add_cflags in -g
12828 case $cf_fix_cppflags in
12830 case $cf_add_cflags in #(vi
12831 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
12832 case $cf_add_cflags in
12834 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12836 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12837 && test -z "${cf_tst_cflags}" \
12838 && cf_fix_cppflags=yes
12840 if test $cf_fix_cppflags = yes ; then
12841 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12843 elif test "${cf_tst_cflags}" = "\"'" ; then
12844 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12849 case "$CPPFLAGS" in
12850 *$cf_add_cflags) #(vi
12853 case $cf_add_cflags in #(vi
12855 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12857 CPPFLAGS=`echo "$CPPFLAGS" | \
12858 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12859 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12863 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12868 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12873 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12875 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12877 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12878 && test -z "${cf_tst_cflags}" \
12879 && cf_fix_cppflags=no
12884 if test -n "$cf_new_cflags" ; then
12886 CFLAGS="$CFLAGS $cf_new_cflags"
12889 if test -n "$cf_new_cppflags" ; then
12891 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12894 if test -n "$cf_new_extra_cppflags" ; then
12896 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12904 if test "$with_dbmalloc" = yes ; then
12905 echo "$as_me:12905: checking for dbmalloc.h" >&5
12906 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
12907 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
12908 echo $ECHO_N "(cached) $ECHO_C" >&6
12910 cat >conftest.$ac_ext <<_ACEOF
12911 #line 12911 "configure"
12912 #include "confdefs.h"
12913 #include <dbmalloc.h>
12915 if { (eval echo "$as_me:12915: \"$ac_cpp conftest.$ac_ext\"") >&5
12916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12918 egrep -v '^ *\+' conftest.er1 >conftest.err
12920 cat conftest.err >&5
12921 echo "$as_me:12921: \$? = $ac_status" >&5
12922 (exit $ac_status); } >/dev/null; then
12923 if test -s conftest.err; then
12924 ac_cpp_err=$ac_c_preproc_warn_flag
12931 if test -z "$ac_cpp_err"; then
12932 ac_cv_header_dbmalloc_h=yes
12934 echo "$as_me: failed program was:" >&5
12935 cat conftest.$ac_ext >&5
12936 ac_cv_header_dbmalloc_h=no
12938 rm -f conftest.err conftest.$ac_ext
12940 echo "$as_me:12940: result: $ac_cv_header_dbmalloc_h" >&5
12941 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
12942 if test $ac_cv_header_dbmalloc_h = yes; then
12944 echo "$as_me:12944: checking for debug_malloc in -ldbmalloc" >&5
12945 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
12946 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
12947 echo $ECHO_N "(cached) $ECHO_C" >&6
12949 ac_check_lib_save_LIBS=$LIBS
12950 LIBS="-ldbmalloc $LIBS"
12951 cat >conftest.$ac_ext <<_ACEOF
12952 #line 12952 "configure"
12953 #include "confdefs.h"
12955 /* Override any gcc2 internal prototype to avoid an error. */
12959 /* We use char because int might match the return type of a gcc2
12960 builtin and then its argument prototype would still apply. */
12961 char debug_malloc ();
12970 rm -f conftest.$ac_objext conftest$ac_exeext
12971 if { (eval echo "$as_me:12971: \"$ac_link\"") >&5
12972 (eval $ac_link) 2>&5
12974 echo "$as_me:12974: \$? = $ac_status" >&5
12975 (exit $ac_status); } &&
12976 { ac_try='test -s conftest$ac_exeext'
12977 { (eval echo "$as_me:12977: \"$ac_try\"") >&5
12978 (eval $ac_try) 2>&5
12980 echo "$as_me:12980: \$? = $ac_status" >&5
12981 (exit $ac_status); }; }; then
12982 ac_cv_lib_dbmalloc_debug_malloc=yes
12984 echo "$as_me: failed program was:" >&5
12985 cat conftest.$ac_ext >&5
12986 ac_cv_lib_dbmalloc_debug_malloc=no
12988 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12989 LIBS=$ac_check_lib_save_LIBS
12991 echo "$as_me:12991: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
12992 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
12993 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
12994 cat >>confdefs.h <<EOF
12995 #define HAVE_LIBDBMALLOC 1
12998 LIBS="-ldbmalloc $LIBS"
13006 echo "$as_me:13006: checking if you want to use valgrind for testing" >&5
13007 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
13009 # Check whether --with-valgrind or --without-valgrind was given.
13010 if test "${with_valgrind+set}" = set; then
13011 withval="$with_valgrind"
13012 cat >>confdefs.h <<\EOF
13013 #define USE_VALGRIND 1
13016 : ${with_cflags:=-g}
13017 : ${with_no_leaks:=yes}
13022 echo "$as_me:13022: result: ${with_valgrind:-no}" >&5
13023 echo "${ECHO_T}${with_valgrind:-no}" >&6
13025 case .$with_cflags in #(vi
13027 case .$CFLAGS in #(vi
13035 cf_new_extra_cppflags=
13037 for cf_add_cflags in -g
13039 case $cf_fix_cppflags in
13041 case $cf_add_cflags in #(vi
13042 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
13043 case $cf_add_cflags in
13045 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13047 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13048 && test -z "${cf_tst_cflags}" \
13049 && cf_fix_cppflags=yes
13051 if test $cf_fix_cppflags = yes ; then
13052 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13054 elif test "${cf_tst_cflags}" = "\"'" ; then
13055 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13060 case "$CPPFLAGS" in
13061 *$cf_add_cflags) #(vi
13064 case $cf_add_cflags in #(vi
13066 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13068 CPPFLAGS=`echo "$CPPFLAGS" | \
13069 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13070 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13074 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
13079 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
13084 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13086 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13088 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13089 && test -z "${cf_tst_cflags}" \
13090 && cf_fix_cppflags=no
13095 if test -n "$cf_new_cflags" ; then
13097 CFLAGS="$CFLAGS $cf_new_cflags"
13100 if test -n "$cf_new_cppflags" ; then
13102 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
13105 if test -n "$cf_new_extra_cppflags" ; then
13107 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
13115 echo "$as_me:13115: checking if you want to perform memory-leak testing" >&5
13116 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
13118 # Check whether --enable-leaks or --disable-leaks was given.
13119 if test "${enable_leaks+set}" = set; then
13120 enableval="$enable_leaks"
13121 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
13123 : ${with_no_leaks:=no}
13125 echo "$as_me:13125: result: $with_no_leaks" >&5
13126 echo "${ECHO_T}$with_no_leaks" >&6
13128 if test "$with_no_leaks" = yes ; then
13129 cat >>confdefs.h <<\EOF
13133 cat >>confdefs.h <<\EOF
13134 #define YY_NO_LEAKS 1
13139 cat >>confdefs.h <<\EOF
13140 #define HAVE_NC_ALLOC_H 1
13143 ### use option --enable-expanded to generate certain macros as functions
13145 # Check whether --enable-expanded or --disable-expanded was given.
13146 if test "${enable_expanded+set}" = set; then
13147 enableval="$enable_expanded"
13148 test "$enableval" = yes && cat >>confdefs.h <<\EOF
13149 #define NCURSES_EXPANDED 1
13154 ### use option --disable-macros to suppress macros in favor of functions
13156 # Check whether --enable-macros or --disable-macros was given.
13157 if test "${enable_macros+set}" = set; then
13158 enableval="$enable_macros"
13159 test "$enableval" = no && cat >>confdefs.h <<\EOF
13160 #define NCURSES_NOMACROS 1
13165 # Normally we only add trace() to the debug-library. Allow this to be
13166 # extended to all models of the ncurses library:
13168 case "$CFLAGS $CPPFLAGS" in
13174 echo "$as_me:13174: checking whether to add trace feature to all models" >&5
13175 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
13177 # Check whether --with-trace or --without-trace was given.
13178 if test "${with_trace+set}" = set; then
13179 withval="$with_trace"
13180 cf_with_trace=$withval
13182 cf_with_trace=$cf_all_traces
13184 echo "$as_me:13184: result: $cf_with_trace" >&5
13185 echo "${ECHO_T}$cf_with_trace" >&6
13187 if test "$cf_with_trace" = yes ; then
13194 cf_new_extra_cppflags=
13196 for cf_add_cflags in -DTRACE
13198 case $cf_fix_cppflags in
13200 case $cf_add_cflags in #(vi
13201 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
13202 case $cf_add_cflags in
13204 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13206 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13207 && test -z "${cf_tst_cflags}" \
13208 && cf_fix_cppflags=yes
13210 if test $cf_fix_cppflags = yes ; then
13211 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13213 elif test "${cf_tst_cflags}" = "\"'" ; then
13214 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13219 case "$CPPFLAGS" in
13220 *$cf_add_cflags) #(vi
13223 case $cf_add_cflags in #(vi
13225 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13227 CPPFLAGS=`echo "$CPPFLAGS" | \
13228 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13229 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13233 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
13238 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
13243 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13245 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13247 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13248 && test -z "${cf_tst_cflags}" \
13249 && cf_fix_cppflags=no
13254 if test -n "$cf_new_cflags" ; then
13256 CFLAGS="$CFLAGS $cf_new_cflags"
13259 if test -n "$cf_new_cppflags" ; then
13261 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
13264 if test -n "$cf_new_extra_cppflags" ; then
13266 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
13274 ### Checks for libraries.
13275 case $cf_cv_system_name in #(vi
13279 echo "$as_me:13279: checking for gettimeofday" >&5
13280 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
13281 if test "${ac_cv_func_gettimeofday+set}" = set; then
13282 echo $ECHO_N "(cached) $ECHO_C" >&6
13284 cat >conftest.$ac_ext <<_ACEOF
13285 #line 13285 "configure"
13286 #include "confdefs.h"
13287 /* System header to define __stub macros and hopefully few prototypes,
13288 which can conflict with char gettimeofday (); below. */
13289 #include <assert.h>
13290 /* Override any gcc2 internal prototype to avoid an error. */
13294 /* We use char because int might match the return type of a gcc2
13295 builtin and then its argument prototype would still apply. */
13296 char gettimeofday ();
13302 /* The GNU C library defines this for functions which it implements
13303 to always fail with ENOSYS. Some functions are actually named
13304 something starting with __ and the normal name is an alias. */
13305 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
13315 rm -f conftest.$ac_objext conftest$ac_exeext
13316 if { (eval echo "$as_me:13316: \"$ac_link\"") >&5
13317 (eval $ac_link) 2>&5
13319 echo "$as_me:13319: \$? = $ac_status" >&5
13320 (exit $ac_status); } &&
13321 { ac_try='test -s conftest$ac_exeext'
13322 { (eval echo "$as_me:13322: \"$ac_try\"") >&5
13323 (eval $ac_try) 2>&5
13325 echo "$as_me:13325: \$? = $ac_status" >&5
13326 (exit $ac_status); }; }; then
13327 ac_cv_func_gettimeofday=yes
13329 echo "$as_me: failed program was:" >&5
13330 cat conftest.$ac_ext >&5
13331 ac_cv_func_gettimeofday=no
13333 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13335 echo "$as_me:13335: result: $ac_cv_func_gettimeofday" >&5
13336 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
13337 if test $ac_cv_func_gettimeofday = yes; then
13338 cat >>confdefs.h <<\EOF
13339 #define HAVE_GETTIMEOFDAY 1
13344 echo "$as_me:13344: checking for gettimeofday in -lbsd" >&5
13345 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
13346 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
13347 echo $ECHO_N "(cached) $ECHO_C" >&6
13349 ac_check_lib_save_LIBS=$LIBS
13351 cat >conftest.$ac_ext <<_ACEOF
13352 #line 13352 "configure"
13353 #include "confdefs.h"
13355 /* Override any gcc2 internal prototype to avoid an error. */
13359 /* We use char because int might match the return type of a gcc2
13360 builtin and then its argument prototype would still apply. */
13361 char gettimeofday ();
13370 rm -f conftest.$ac_objext conftest$ac_exeext
13371 if { (eval echo "$as_me:13371: \"$ac_link\"") >&5
13372 (eval $ac_link) 2>&5
13374 echo "$as_me:13374: \$? = $ac_status" >&5
13375 (exit $ac_status); } &&
13376 { ac_try='test -s conftest$ac_exeext'
13377 { (eval echo "$as_me:13377: \"$ac_try\"") >&5
13378 (eval $ac_try) 2>&5
13380 echo "$as_me:13380: \$? = $ac_status" >&5
13381 (exit $ac_status); }; }; then
13382 ac_cv_lib_bsd_gettimeofday=yes
13384 echo "$as_me: failed program was:" >&5
13385 cat conftest.$ac_ext >&5
13386 ac_cv_lib_bsd_gettimeofday=no
13388 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13389 LIBS=$ac_check_lib_save_LIBS
13391 echo "$as_me:13391: result: $ac_cv_lib_bsd_gettimeofday" >&5
13392 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
13393 if test $ac_cv_lib_bsd_gettimeofday = yes; then
13394 cat >>confdefs.h <<\EOF
13395 #define HAVE_GETTIMEOFDAY 1
13405 echo "$as_me:13405: checking if -lm needed for math functions" >&5
13406 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
13407 if test "${cf_cv_need_libm+set}" = set; then
13408 echo $ECHO_N "(cached) $ECHO_C" >&6
13411 cat >conftest.$ac_ext <<_ACEOF
13412 #line 13412 "configure"
13413 #include "confdefs.h"
13421 double x = rand(); printf("result = %g\n", sin(x))
13426 rm -f conftest.$ac_objext conftest$ac_exeext
13427 if { (eval echo "$as_me:13427: \"$ac_link\"") >&5
13428 (eval $ac_link) 2>&5
13430 echo "$as_me:13430: \$? = $ac_status" >&5
13431 (exit $ac_status); } &&
13432 { ac_try='test -s conftest$ac_exeext'
13433 { (eval echo "$as_me:13433: \"$ac_try\"") >&5
13434 (eval $ac_try) 2>&5
13436 echo "$as_me:13436: \$? = $ac_status" >&5
13437 (exit $ac_status); }; }; then
13440 echo "$as_me: failed program was:" >&5
13441 cat conftest.$ac_ext >&5
13442 cf_cv_need_libm=yes
13444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13446 echo "$as_me:13446: result: $cf_cv_need_libm" >&5
13447 echo "${ECHO_T}$cf_cv_need_libm" >&6
13448 if test "$cf_cv_need_libm" = yes
13453 ### Checks for header files.
13454 echo "$as_me:13454: checking for ANSI C header files" >&5
13455 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13456 if test "${ac_cv_header_stdc+set}" = set; then
13457 echo $ECHO_N "(cached) $ECHO_C" >&6
13459 cat >conftest.$ac_ext <<_ACEOF
13460 #line 13460 "configure"
13461 #include "confdefs.h"
13462 #include <stdlib.h>
13463 #include <stdarg.h>
13464 #include <string.h>
13468 if { (eval echo "$as_me:13468: \"$ac_cpp conftest.$ac_ext\"") >&5
13469 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13471 egrep -v '^ *\+' conftest.er1 >conftest.err
13473 cat conftest.err >&5
13474 echo "$as_me:13474: \$? = $ac_status" >&5
13475 (exit $ac_status); } >/dev/null; then
13476 if test -s conftest.err; then
13477 ac_cpp_err=$ac_c_preproc_warn_flag
13484 if test -z "$ac_cpp_err"; then
13485 ac_cv_header_stdc=yes
13487 echo "$as_me: failed program was:" >&5
13488 cat conftest.$ac_ext >&5
13489 ac_cv_header_stdc=no
13491 rm -f conftest.err conftest.$ac_ext
13493 if test $ac_cv_header_stdc = yes; then
13494 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13495 cat >conftest.$ac_ext <<_ACEOF
13496 #line 13496 "configure"
13497 #include "confdefs.h"
13498 #include <string.h>
13501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13502 egrep "memchr" >/dev/null 2>&1; then
13505 ac_cv_header_stdc=no
13511 if test $ac_cv_header_stdc = yes; then
13512 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13513 cat >conftest.$ac_ext <<_ACEOF
13514 #line 13514 "configure"
13515 #include "confdefs.h"
13516 #include <stdlib.h>
13519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13520 egrep "free" >/dev/null 2>&1; then
13523 ac_cv_header_stdc=no
13529 if test $ac_cv_header_stdc = yes; then
13530 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13531 if test "$cross_compiling" = yes; then
13534 cat >conftest.$ac_ext <<_ACEOF
13535 #line 13535 "configure"
13536 #include "confdefs.h"
13538 #if ((' ' & 0x0FF) == 0x020)
13539 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13540 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13542 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13543 || ('j' <= (c) && (c) <= 'r') \
13544 || ('s' <= (c) && (c) <= 'z'))
13545 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13548 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13553 for (i = 0; i < 256; i++)
13554 if (XOR (islower (i), ISLOWER (i))
13555 || toupper (i) != TOUPPER (i))
13556 $ac_main_return(2);
13557 $ac_main_return (0);
13560 rm -f conftest$ac_exeext
13561 if { (eval echo "$as_me:13561: \"$ac_link\"") >&5
13562 (eval $ac_link) 2>&5
13564 echo "$as_me:13564: \$? = $ac_status" >&5
13565 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13566 { (eval echo "$as_me:13566: \"$ac_try\"") >&5
13567 (eval $ac_try) 2>&5
13569 echo "$as_me:13569: \$? = $ac_status" >&5
13570 (exit $ac_status); }; }; then
13573 echo "$as_me: program exited with status $ac_status" >&5
13574 echo "$as_me: failed program was:" >&5
13575 cat conftest.$ac_ext >&5
13576 ac_cv_header_stdc=no
13578 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13582 echo "$as_me:13582: result: $ac_cv_header_stdc" >&5
13583 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13584 if test $ac_cv_header_stdc = yes; then
13586 cat >>confdefs.h <<\EOF
13587 #define STDC_HEADERS 1
13592 ac_header_dirent=no
13593 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13594 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13595 echo "$as_me:13595: checking for $ac_hdr that defines DIR" >&5
13596 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13598 echo $ECHO_N "(cached) $ECHO_C" >&6
13600 cat >conftest.$ac_ext <<_ACEOF
13601 #line 13601 "configure"
13602 #include "confdefs.h"
13603 #include <sys/types.h>
13615 rm -f conftest.$ac_objext
13616 if { (eval echo "$as_me:13616: \"$ac_compile\"") >&5
13617 (eval $ac_compile) 2>&5
13619 echo "$as_me:13619: \$? = $ac_status" >&5
13620 (exit $ac_status); } &&
13621 { ac_try='test -s conftest.$ac_objext'
13622 { (eval echo "$as_me:13622: \"$ac_try\"") >&5
13623 (eval $ac_try) 2>&5
13625 echo "$as_me:13625: \$? = $ac_status" >&5
13626 (exit $ac_status); }; }; then
13627 eval "$as_ac_Header=yes"
13629 echo "$as_me: failed program was:" >&5
13630 cat conftest.$ac_ext >&5
13631 eval "$as_ac_Header=no"
13633 rm -f conftest.$ac_objext conftest.$ac_ext
13635 echo "$as_me:13635: result: `eval echo '${'$as_ac_Header'}'`" >&5
13636 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13638 cat >>confdefs.h <<EOF
13639 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13642 ac_header_dirent=$ac_hdr; break
13646 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13647 if test $ac_header_dirent = dirent.h; then
13648 echo "$as_me:13648: checking for opendir in -ldir" >&5
13649 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
13650 if test "${ac_cv_lib_dir_opendir+set}" = set; then
13651 echo $ECHO_N "(cached) $ECHO_C" >&6
13653 ac_check_lib_save_LIBS=$LIBS
13655 cat >conftest.$ac_ext <<_ACEOF
13656 #line 13656 "configure"
13657 #include "confdefs.h"
13659 /* Override any gcc2 internal prototype to avoid an error. */
13663 /* We use char because int might match the return type of a gcc2
13664 builtin and then its argument prototype would still apply. */
13674 rm -f conftest.$ac_objext conftest$ac_exeext
13675 if { (eval echo "$as_me:13675: \"$ac_link\"") >&5
13676 (eval $ac_link) 2>&5
13678 echo "$as_me:13678: \$? = $ac_status" >&5
13679 (exit $ac_status); } &&
13680 { ac_try='test -s conftest$ac_exeext'
13681 { (eval echo "$as_me:13681: \"$ac_try\"") >&5
13682 (eval $ac_try) 2>&5
13684 echo "$as_me:13684: \$? = $ac_status" >&5
13685 (exit $ac_status); }; }; then
13686 ac_cv_lib_dir_opendir=yes
13688 echo "$as_me: failed program was:" >&5
13689 cat conftest.$ac_ext >&5
13690 ac_cv_lib_dir_opendir=no
13692 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13693 LIBS=$ac_check_lib_save_LIBS
13695 echo "$as_me:13695: result: $ac_cv_lib_dir_opendir" >&5
13696 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
13697 if test $ac_cv_lib_dir_opendir = yes; then
13702 echo "$as_me:13702: checking for opendir in -lx" >&5
13703 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
13704 if test "${ac_cv_lib_x_opendir+set}" = set; then
13705 echo $ECHO_N "(cached) $ECHO_C" >&6
13707 ac_check_lib_save_LIBS=$LIBS
13709 cat >conftest.$ac_ext <<_ACEOF
13710 #line 13710 "configure"
13711 #include "confdefs.h"
13713 /* Override any gcc2 internal prototype to avoid an error. */
13717 /* We use char because int might match the return type of a gcc2
13718 builtin and then its argument prototype would still apply. */
13728 rm -f conftest.$ac_objext conftest$ac_exeext
13729 if { (eval echo "$as_me:13729: \"$ac_link\"") >&5
13730 (eval $ac_link) 2>&5
13732 echo "$as_me:13732: \$? = $ac_status" >&5
13733 (exit $ac_status); } &&
13734 { ac_try='test -s conftest$ac_exeext'
13735 { (eval echo "$as_me:13735: \"$ac_try\"") >&5
13736 (eval $ac_try) 2>&5
13738 echo "$as_me:13738: \$? = $ac_status" >&5
13739 (exit $ac_status); }; }; then
13740 ac_cv_lib_x_opendir=yes
13742 echo "$as_me: failed program was:" >&5
13743 cat conftest.$ac_ext >&5
13744 ac_cv_lib_x_opendir=no
13746 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13747 LIBS=$ac_check_lib_save_LIBS
13749 echo "$as_me:13749: result: $ac_cv_lib_x_opendir" >&5
13750 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
13751 if test $ac_cv_lib_x_opendir = yes; then
13757 echo "$as_me:13757: checking whether time.h and sys/time.h may both be included" >&5
13758 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
13759 if test "${ac_cv_header_time+set}" = set; then
13760 echo $ECHO_N "(cached) $ECHO_C" >&6
13762 cat >conftest.$ac_ext <<_ACEOF
13763 #line 13763 "configure"
13764 #include "confdefs.h"
13765 #include <sys/types.h>
13766 #include <sys/time.h>
13772 if ((struct tm *) 0)
13778 rm -f conftest.$ac_objext
13779 if { (eval echo "$as_me:13779: \"$ac_compile\"") >&5
13780 (eval $ac_compile) 2>&5
13782 echo "$as_me:13782: \$? = $ac_status" >&5
13783 (exit $ac_status); } &&
13784 { ac_try='test -s conftest.$ac_objext'
13785 { (eval echo "$as_me:13785: \"$ac_try\"") >&5
13786 (eval $ac_try) 2>&5
13788 echo "$as_me:13788: \$? = $ac_status" >&5
13789 (exit $ac_status); }; }; then
13790 ac_cv_header_time=yes
13792 echo "$as_me: failed program was:" >&5
13793 cat conftest.$ac_ext >&5
13794 ac_cv_header_time=no
13796 rm -f conftest.$ac_objext conftest.$ac_ext
13798 echo "$as_me:13798: result: $ac_cv_header_time" >&5
13799 echo "${ECHO_T}$ac_cv_header_time" >&6
13800 if test $ac_cv_header_time = yes; then
13802 cat >>confdefs.h <<\EOF
13803 #define TIME_WITH_SYS_TIME 1
13810 cf_regex_libs="regex re"
13811 case $host_os in #(vi
13813 cf_regex_libs="gnurx $cf_regex_libs"
13817 echo "$as_me:13817: checking for regcomp" >&5
13818 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
13819 if test "${ac_cv_func_regcomp+set}" = set; then
13820 echo $ECHO_N "(cached) $ECHO_C" >&6
13822 cat >conftest.$ac_ext <<_ACEOF
13823 #line 13823 "configure"
13824 #include "confdefs.h"
13825 /* System header to define __stub macros and hopefully few prototypes,
13826 which can conflict with char regcomp (); below. */
13827 #include <assert.h>
13828 /* Override any gcc2 internal prototype to avoid an error. */
13832 /* We use char because int might match the return type of a gcc2
13833 builtin and then its argument prototype would still apply. */
13840 /* The GNU C library defines this for functions which it implements
13841 to always fail with ENOSYS. Some functions are actually named
13842 something starting with __ and the normal name is an alias. */
13843 #if defined (__stub_regcomp) || defined (__stub___regcomp)
13853 rm -f conftest.$ac_objext conftest$ac_exeext
13854 if { (eval echo "$as_me:13854: \"$ac_link\"") >&5
13855 (eval $ac_link) 2>&5
13857 echo "$as_me:13857: \$? = $ac_status" >&5
13858 (exit $ac_status); } &&
13859 { ac_try='test -s conftest$ac_exeext'
13860 { (eval echo "$as_me:13860: \"$ac_try\"") >&5
13861 (eval $ac_try) 2>&5
13863 echo "$as_me:13863: \$? = $ac_status" >&5
13864 (exit $ac_status); }; }; then
13865 ac_cv_func_regcomp=yes
13867 echo "$as_me: failed program was:" >&5
13868 cat conftest.$ac_ext >&5
13869 ac_cv_func_regcomp=no
13871 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13873 echo "$as_me:13873: result: $ac_cv_func_regcomp" >&5
13874 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
13875 if test $ac_cv_func_regcomp = yes; then
13876 cf_regex_func=regcomp
13879 for cf_regex_lib in $cf_regex_libs
13881 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
13882 echo "$as_me:13882: checking for regcomp in -l$cf_regex_lib" >&5
13883 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
13884 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13885 echo $ECHO_N "(cached) $ECHO_C" >&6
13887 ac_check_lib_save_LIBS=$LIBS
13888 LIBS="-l$cf_regex_lib $LIBS"
13889 cat >conftest.$ac_ext <<_ACEOF
13890 #line 13890 "configure"
13891 #include "confdefs.h"
13893 /* Override any gcc2 internal prototype to avoid an error. */
13897 /* We use char because int might match the return type of a gcc2
13898 builtin and then its argument prototype would still apply. */
13908 rm -f conftest.$ac_objext conftest$ac_exeext
13909 if { (eval echo "$as_me:13909: \"$ac_link\"") >&5
13910 (eval $ac_link) 2>&5
13912 echo "$as_me:13912: \$? = $ac_status" >&5
13913 (exit $ac_status); } &&
13914 { ac_try='test -s conftest$ac_exeext'
13915 { (eval echo "$as_me:13915: \"$ac_try\"") >&5
13916 (eval $ac_try) 2>&5
13918 echo "$as_me:13918: \$? = $ac_status" >&5
13919 (exit $ac_status); }; }; then
13920 eval "$as_ac_Lib=yes"
13922 echo "$as_me: failed program was:" >&5
13923 cat conftest.$ac_ext >&5
13924 eval "$as_ac_Lib=no"
13926 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13927 LIBS=$ac_check_lib_save_LIBS
13929 echo "$as_me:13929: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13930 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13931 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13933 LIBS="-l$cf_regex_lib $LIBS"
13934 cf_regex_func=regcomp
13942 if test "$cf_regex_func" = no ; then
13943 echo "$as_me:13943: checking for compile" >&5
13944 echo $ECHO_N "checking for compile... $ECHO_C" >&6
13945 if test "${ac_cv_func_compile+set}" = set; then
13946 echo $ECHO_N "(cached) $ECHO_C" >&6
13948 cat >conftest.$ac_ext <<_ACEOF
13949 #line 13949 "configure"
13950 #include "confdefs.h"
13951 /* System header to define __stub macros and hopefully few prototypes,
13952 which can conflict with char compile (); below. */
13953 #include <assert.h>
13954 /* Override any gcc2 internal prototype to avoid an error. */
13958 /* We use char because int might match the return type of a gcc2
13959 builtin and then its argument prototype would still apply. */
13966 /* The GNU C library defines this for functions which it implements
13967 to always fail with ENOSYS. Some functions are actually named
13968 something starting with __ and the normal name is an alias. */
13969 #if defined (__stub_compile) || defined (__stub___compile)
13979 rm -f conftest.$ac_objext conftest$ac_exeext
13980 if { (eval echo "$as_me:13980: \"$ac_link\"") >&5
13981 (eval $ac_link) 2>&5
13983 echo "$as_me:13983: \$? = $ac_status" >&5
13984 (exit $ac_status); } &&
13985 { ac_try='test -s conftest$ac_exeext'
13986 { (eval echo "$as_me:13986: \"$ac_try\"") >&5
13987 (eval $ac_try) 2>&5
13989 echo "$as_me:13989: \$? = $ac_status" >&5
13990 (exit $ac_status); }; }; then
13991 ac_cv_func_compile=yes
13993 echo "$as_me: failed program was:" >&5
13994 cat conftest.$ac_ext >&5
13995 ac_cv_func_compile=no
13997 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13999 echo "$as_me:13999: result: $ac_cv_func_compile" >&5
14000 echo "${ECHO_T}$ac_cv_func_compile" >&6
14001 if test $ac_cv_func_compile = yes; then
14002 cf_regex_func=compile
14005 echo "$as_me:14005: checking for compile in -lgen" >&5
14006 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
14007 if test "${ac_cv_lib_gen_compile+set}" = set; then
14008 echo $ECHO_N "(cached) $ECHO_C" >&6
14010 ac_check_lib_save_LIBS=$LIBS
14012 cat >conftest.$ac_ext <<_ACEOF
14013 #line 14013 "configure"
14014 #include "confdefs.h"
14016 /* Override any gcc2 internal prototype to avoid an error. */
14020 /* We use char because int might match the return type of a gcc2
14021 builtin and then its argument prototype would still apply. */
14031 rm -f conftest.$ac_objext conftest$ac_exeext
14032 if { (eval echo "$as_me:14032: \"$ac_link\"") >&5
14033 (eval $ac_link) 2>&5
14035 echo "$as_me:14035: \$? = $ac_status" >&5
14036 (exit $ac_status); } &&
14037 { ac_try='test -s conftest$ac_exeext'
14038 { (eval echo "$as_me:14038: \"$ac_try\"") >&5
14039 (eval $ac_try) 2>&5
14041 echo "$as_me:14041: \$? = $ac_status" >&5
14042 (exit $ac_status); }; }; then
14043 ac_cv_lib_gen_compile=yes
14045 echo "$as_me: failed program was:" >&5
14046 cat conftest.$ac_ext >&5
14047 ac_cv_lib_gen_compile=no
14049 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14050 LIBS=$ac_check_lib_save_LIBS
14052 echo "$as_me:14052: result: $ac_cv_lib_gen_compile" >&5
14053 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
14054 if test $ac_cv_lib_gen_compile = yes; then
14057 cf_regex_func=compile
14064 if test "$cf_regex_func" = no ; then
14065 { echo "$as_me:14065: WARNING: cannot find regular expression library" >&5
14066 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
14069 echo "$as_me:14069: checking for regular-expression headers" >&5
14070 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
14071 if test "${cf_cv_regex_hdrs+set}" = set; then
14072 echo $ECHO_N "(cached) $ECHO_C" >&6
14075 cf_cv_regex_hdrs=no
14076 case $cf_regex_func in #(vi
14078 for cf_regex_hdr in regexp.h regexpr.h
14080 cat >conftest.$ac_ext <<_ACEOF
14081 #line 14081 "configure"
14082 #include "confdefs.h"
14083 #include <$cf_regex_hdr>
14088 char *p = compile("", "", "", 0);
14089 int x = step("", "");
14095 rm -f conftest.$ac_objext conftest$ac_exeext
14096 if { (eval echo "$as_me:14096: \"$ac_link\"") >&5
14097 (eval $ac_link) 2>&5
14099 echo "$as_me:14099: \$? = $ac_status" >&5
14100 (exit $ac_status); } &&
14101 { ac_try='test -s conftest$ac_exeext'
14102 { (eval echo "$as_me:14102: \"$ac_try\"") >&5
14103 (eval $ac_try) 2>&5
14105 echo "$as_me:14105: \$? = $ac_status" >&5
14106 (exit $ac_status); }; }; then
14108 cf_cv_regex_hdrs=$cf_regex_hdr
14112 echo "$as_me: failed program was:" >&5
14113 cat conftest.$ac_ext >&5
14115 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14119 for cf_regex_hdr in regex.h
14121 cat >conftest.$ac_ext <<_ACEOF
14122 #line 14122 "configure"
14123 #include "confdefs.h"
14124 #include <sys/types.h>
14125 #include <$cf_regex_hdr>
14131 int x = regcomp(p, "", 0);
14132 int y = regexec(p, "", 0, 0, 0);
14139 rm -f conftest.$ac_objext conftest$ac_exeext
14140 if { (eval echo "$as_me:14140: \"$ac_link\"") >&5
14141 (eval $ac_link) 2>&5
14143 echo "$as_me:14143: \$? = $ac_status" >&5
14144 (exit $ac_status); } &&
14145 { ac_try='test -s conftest$ac_exeext'
14146 { (eval echo "$as_me:14146: \"$ac_try\"") >&5
14147 (eval $ac_try) 2>&5
14149 echo "$as_me:14149: \$? = $ac_status" >&5
14150 (exit $ac_status); }; }; then
14152 cf_cv_regex_hdrs=$cf_regex_hdr
14156 echo "$as_me: failed program was:" >&5
14157 cat conftest.$ac_ext >&5
14159 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14165 echo "$as_me:14165: result: $cf_cv_regex_hdrs" >&5
14166 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
14168 case $cf_cv_regex_hdrs in #(vi
14169 no) { echo "$as_me:14169: WARNING: no regular expression header found" >&5
14170 echo "$as_me: WARNING: no regular expression header found" >&2;} ;; #(vi
14171 regex.h) cat >>confdefs.h <<\EOF
14172 #define HAVE_REGEX_H_FUNCS 1
14175 regexp.h) cat >>confdefs.h <<\EOF
14176 #define HAVE_REGEXP_H_FUNCS 1
14179 regexpr.h) cat >>confdefs.h <<\EOF
14180 #define HAVE_REGEXPR_H_FUNCS 1
14204 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14205 echo "$as_me:14205: checking for $ac_header" >&5
14206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14208 echo $ECHO_N "(cached) $ECHO_C" >&6
14210 cat >conftest.$ac_ext <<_ACEOF
14211 #line 14211 "configure"
14212 #include "confdefs.h"
14213 #include <$ac_header>
14215 if { (eval echo "$as_me:14215: \"$ac_cpp conftest.$ac_ext\"") >&5
14216 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14218 egrep -v '^ *\+' conftest.er1 >conftest.err
14220 cat conftest.err >&5
14221 echo "$as_me:14221: \$? = $ac_status" >&5
14222 (exit $ac_status); } >/dev/null; then
14223 if test -s conftest.err; then
14224 ac_cpp_err=$ac_c_preproc_warn_flag
14231 if test -z "$ac_cpp_err"; then
14232 eval "$as_ac_Header=yes"
14234 echo "$as_me: failed program was:" >&5
14235 cat conftest.$ac_ext >&5
14236 eval "$as_ac_Header=no"
14238 rm -f conftest.err conftest.$ac_ext
14240 echo "$as_me:14240: result: `eval echo '${'$as_ac_Header'}'`" >&5
14241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14243 cat >>confdefs.h <<EOF
14244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14250 for ac_header in unistd.h getopt.h
14252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14253 echo "$as_me:14253: checking for $ac_header" >&5
14254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14256 echo $ECHO_N "(cached) $ECHO_C" >&6
14258 cat >conftest.$ac_ext <<_ACEOF
14259 #line 14259 "configure"
14260 #include "confdefs.h"
14261 #include <$ac_header>
14263 if { (eval echo "$as_me:14263: \"$ac_cpp conftest.$ac_ext\"") >&5
14264 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14266 egrep -v '^ *\+' conftest.er1 >conftest.err
14268 cat conftest.err >&5
14269 echo "$as_me:14269: \$? = $ac_status" >&5
14270 (exit $ac_status); } >/dev/null; then
14271 if test -s conftest.err; then
14272 ac_cpp_err=$ac_c_preproc_warn_flag
14279 if test -z "$ac_cpp_err"; then
14280 eval "$as_ac_Header=yes"
14282 echo "$as_me: failed program was:" >&5
14283 cat conftest.$ac_ext >&5
14284 eval "$as_ac_Header=no"
14286 rm -f conftest.err conftest.$ac_ext
14288 echo "$as_me:14288: result: `eval echo '${'$as_ac_Header'}'`" >&5
14289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14291 cat >>confdefs.h <<EOF
14292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14298 echo "$as_me:14298: checking for header declaring getopt variables" >&5
14299 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
14300 if test "${cf_cv_getopt_header+set}" = set; then
14301 echo $ECHO_N "(cached) $ECHO_C" >&6
14304 cf_cv_getopt_header=none
14305 for cf_header in stdio.h stdlib.h unistd.h getopt.h
14307 cat >conftest.$ac_ext <<_ACEOF
14308 #line 14308 "configure"
14309 #include "confdefs.h"
14311 #include <$cf_header>
14315 int x = optind; char *y = optarg
14320 rm -f conftest.$ac_objext
14321 if { (eval echo "$as_me:14321: \"$ac_compile\"") >&5
14322 (eval $ac_compile) 2>&5
14324 echo "$as_me:14324: \$? = $ac_status" >&5
14325 (exit $ac_status); } &&
14326 { ac_try='test -s conftest.$ac_objext'
14327 { (eval echo "$as_me:14327: \"$ac_try\"") >&5
14328 (eval $ac_try) 2>&5
14330 echo "$as_me:14330: \$? = $ac_status" >&5
14331 (exit $ac_status); }; }; then
14332 cf_cv_getopt_header=$cf_header
14335 echo "$as_me: failed program was:" >&5
14336 cat conftest.$ac_ext >&5
14338 rm -f conftest.$ac_objext conftest.$ac_ext
14342 echo "$as_me:14342: result: $cf_cv_getopt_header" >&5
14343 echo "${ECHO_T}$cf_cv_getopt_header" >&6
14344 if test $cf_cv_getopt_header != none ; then
14345 cat >>confdefs.h <<\EOF
14346 #define HAVE_GETOPT_HEADER 1
14351 # check for ISC (this may also define _POSIX_SOURCE)
14352 # Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
14353 if test "$ISC" = yes ; then
14355 echo "$as_me:14355: checking for main in -lcposix" >&5
14356 echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6
14357 if test "${ac_cv_lib_cposix_main+set}" = set; then
14358 echo $ECHO_N "(cached) $ECHO_C" >&6
14360 ac_check_lib_save_LIBS=$LIBS
14361 LIBS="-lcposix $LIBS"
14362 cat >conftest.$ac_ext <<_ACEOF
14363 #line 14363 "configure"
14364 #include "confdefs.h"
14374 rm -f conftest.$ac_objext conftest$ac_exeext
14375 if { (eval echo "$as_me:14375: \"$ac_link\"") >&5
14376 (eval $ac_link) 2>&5
14378 echo "$as_me:14378: \$? = $ac_status" >&5
14379 (exit $ac_status); } &&
14380 { ac_try='test -s conftest$ac_exeext'
14381 { (eval echo "$as_me:14381: \"$ac_try\"") >&5
14382 (eval $ac_try) 2>&5
14384 echo "$as_me:14384: \$? = $ac_status" >&5
14385 (exit $ac_status); }; }; then
14386 ac_cv_lib_cposix_main=yes
14388 echo "$as_me: failed program was:" >&5
14389 cat conftest.$ac_ext >&5
14390 ac_cv_lib_cposix_main=no
14392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14393 LIBS=$ac_check_lib_save_LIBS
14395 echo "$as_me:14395: result: $ac_cv_lib_cposix_main" >&5
14396 echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6
14397 if test $ac_cv_lib_cposix_main = yes; then
14398 cat >>confdefs.h <<EOF
14399 #define HAVE_LIBCPOSIX 1
14402 LIBS="-lcposix $LIBS"
14406 echo "$as_me:14406: checking for bzero in -linet" >&5
14407 echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6
14408 if test "${ac_cv_lib_inet_bzero+set}" = set; then
14409 echo $ECHO_N "(cached) $ECHO_C" >&6
14411 ac_check_lib_save_LIBS=$LIBS
14412 LIBS="-linet $LIBS"
14413 cat >conftest.$ac_ext <<_ACEOF
14414 #line 14414 "configure"
14415 #include "confdefs.h"
14417 /* Override any gcc2 internal prototype to avoid an error. */
14421 /* We use char because int might match the return type of a gcc2
14422 builtin and then its argument prototype would still apply. */
14432 rm -f conftest.$ac_objext conftest$ac_exeext
14433 if { (eval echo "$as_me:14433: \"$ac_link\"") >&5
14434 (eval $ac_link) 2>&5
14436 echo "$as_me:14436: \$? = $ac_status" >&5
14437 (exit $ac_status); } &&
14438 { ac_try='test -s conftest$ac_exeext'
14439 { (eval echo "$as_me:14439: \"$ac_try\"") >&5
14440 (eval $ac_try) 2>&5
14442 echo "$as_me:14442: \$? = $ac_status" >&5
14443 (exit $ac_status); }; }; then
14444 ac_cv_lib_inet_bzero=yes
14446 echo "$as_me: failed program was:" >&5
14447 cat conftest.$ac_ext >&5
14448 ac_cv_lib_inet_bzero=no
14450 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14451 LIBS=$ac_check_lib_save_LIBS
14453 echo "$as_me:14453: result: $ac_cv_lib_inet_bzero" >&5
14454 echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6
14455 if test $ac_cv_lib_inet_bzero = yes; then
14456 LIBS="-linet $LIBS"
14460 echo "$as_me:14460: checking if sys/time.h works with sys/select.h" >&5
14461 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
14462 if test "${cf_cv_sys_time_select+set}" = set; then
14463 echo $ECHO_N "(cached) $ECHO_C" >&6
14466 cat >conftest.$ac_ext <<_ACEOF
14467 #line 14467 "configure"
14468 #include "confdefs.h"
14470 #include <sys/types.h>
14471 #ifdef HAVE_SYS_TIME_H
14472 #include <sys/time.h>
14474 #ifdef HAVE_SYS_SELECT_H
14475 #include <sys/select.h>
14486 rm -f conftest.$ac_objext
14487 if { (eval echo "$as_me:14487: \"$ac_compile\"") >&5
14488 (eval $ac_compile) 2>&5
14490 echo "$as_me:14490: \$? = $ac_status" >&5
14491 (exit $ac_status); } &&
14492 { ac_try='test -s conftest.$ac_objext'
14493 { (eval echo "$as_me:14493: \"$ac_try\"") >&5
14494 (eval $ac_try) 2>&5
14496 echo "$as_me:14496: \$? = $ac_status" >&5
14497 (exit $ac_status); }; }; then
14498 cf_cv_sys_time_select=yes
14500 echo "$as_me: failed program was:" >&5
14501 cat conftest.$ac_ext >&5
14502 cf_cv_sys_time_select=no
14504 rm -f conftest.$ac_objext conftest.$ac_ext
14508 echo "$as_me:14508: result: $cf_cv_sys_time_select" >&5
14509 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
14510 test "$cf_cv_sys_time_select" = yes && cat >>confdefs.h <<\EOF
14511 #define HAVE_SYS_TIME_SELECT 1
14514 ### checks for compiler characteristics
14516 ac_cpp='$CPP $CPPFLAGS'
14517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14520 ac_main_return=return
14522 echo "$as_me:14522: checking for $CC option to accept ANSI C" >&5
14523 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
14524 if test "${ac_cv_prog_cc_stdc+set}" = set; then
14525 echo $ECHO_N "(cached) $ECHO_C" >&6
14527 ac_cv_prog_cc_stdc=no
14529 cat >conftest.$ac_ext <<_ACEOF
14530 #line 14530 "configure"
14531 #include "confdefs.h"
14532 #include <stdarg.h>
14534 #include <sys/types.h>
14535 #include <sys/stat.h>
14536 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
14537 struct buf { int x; };
14538 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14539 static char *e (p, i)
14545 static char *f (char * (*g) (char **, int), char **p, ...)
14550 s = g (p, va_arg (v,int));
14554 int test (int i, double x);
14555 struct s1 {int (*f) (int a);};
14556 struct s2 {int (*f) (double a);};
14557 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14563 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
14568 # Don't try gcc -ansi; that turns off useful extensions and
14569 # breaks some systems' header files.
14570 # AIX -qlanglvl=ansi
14571 # Ultrix and OSF/1 -std1
14572 # HP-UX 10.20 and later -Ae
14573 # HP-UX older versions -Aa -D_HPUX_SOURCE
14574 # SVR4 -Xc -D__EXTENSIONS__
14575 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14577 CC="$ac_save_CC $ac_arg"
14578 rm -f conftest.$ac_objext
14579 if { (eval echo "$as_me:14579: \"$ac_compile\"") >&5
14580 (eval $ac_compile) 2>&5
14582 echo "$as_me:14582: \$? = $ac_status" >&5
14583 (exit $ac_status); } &&
14584 { ac_try='test -s conftest.$ac_objext'
14585 { (eval echo "$as_me:14585: \"$ac_try\"") >&5
14586 (eval $ac_try) 2>&5
14588 echo "$as_me:14588: \$? = $ac_status" >&5
14589 (exit $ac_status); }; }; then
14590 ac_cv_prog_cc_stdc=$ac_arg
14593 echo "$as_me: failed program was:" >&5
14594 cat conftest.$ac_ext >&5
14596 rm -f conftest.$ac_objext
14598 rm -f conftest.$ac_ext conftest.$ac_objext
14603 case "x$ac_cv_prog_cc_stdc" in
14605 echo "$as_me:14605: result: none needed" >&5
14606 echo "${ECHO_T}none needed" >&6 ;;
14608 echo "$as_me:14608: result: $ac_cv_prog_cc_stdc" >&5
14609 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
14610 CC="$CC $ac_cv_prog_cc_stdc" ;;
14613 echo "$as_me:14613: checking for an ANSI C-conforming const" >&5
14614 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14615 if test "${ac_cv_c_const+set}" = set; then
14616 echo $ECHO_N "(cached) $ECHO_C" >&6
14618 cat >conftest.$ac_ext <<_ACEOF
14619 #line 14619 "configure"
14620 #include "confdefs.h"
14625 /* FIXME: Include the comments suggested by Paul. */
14626 #ifndef __cplusplus
14627 /* Ultrix mips cc rejects this. */
14628 typedef int charset[2];
14630 /* SunOS 4.1.1 cc rejects this. */
14631 char const *const *ccp;
14633 /* NEC SVR4.0.2 mips cc rejects this. */
14634 struct point {int x, y;};
14635 static struct point const zero = {0,0};
14636 /* AIX XL C 1.02.0.0 rejects this.
14637 It does not let you subtract one const X* pointer from another in
14638 an arm of an if-expression whose if-part is not a constant
14640 const char *g = "string";
14641 ccp = &g + (g ? g-g : 0);
14642 /* HPUX 7.0 cc rejects these. */
14645 ccp = (char const *const *) p;
14646 { /* SCO 3.2v4 cc rejects this. */
14648 char const *s = 0 ? (char *) 0 : (char const *) 0;
14652 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14653 int x[] = {25, 17};
14654 const int *foo = &x[0];
14657 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14658 typedef const int *iptr;
14662 { /* AIX XL C 1.02.0.0 rejects this saying
14663 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14664 struct s { int j; const int *ap[3]; };
14665 struct s *b; b->j = 5;
14667 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14668 const int foo = 10;
14676 rm -f conftest.$ac_objext
14677 if { (eval echo "$as_me:14677: \"$ac_compile\"") >&5
14678 (eval $ac_compile) 2>&5
14680 echo "$as_me:14680: \$? = $ac_status" >&5
14681 (exit $ac_status); } &&
14682 { ac_try='test -s conftest.$ac_objext'
14683 { (eval echo "$as_me:14683: \"$ac_try\"") >&5
14684 (eval $ac_try) 2>&5
14686 echo "$as_me:14686: \$? = $ac_status" >&5
14687 (exit $ac_status); }; }; then
14690 echo "$as_me: failed program was:" >&5
14691 cat conftest.$ac_ext >&5
14694 rm -f conftest.$ac_objext conftest.$ac_ext
14696 echo "$as_me:14696: result: $ac_cv_c_const" >&5
14697 echo "${ECHO_T}$ac_cv_c_const" >&6
14698 if test $ac_cv_c_const = no; then
14700 cat >>confdefs.h <<\EOF
14706 echo "$as_me:14706: checking for inline" >&5
14707 echo $ECHO_N "checking for inline... $ECHO_C" >&6
14708 if test "${ac_cv_c_inline+set}" = set; then
14709 echo $ECHO_N "(cached) $ECHO_C" >&6
14712 for ac_kw in inline __inline__ __inline; do
14713 cat >conftest.$ac_ext <<_ACEOF
14714 #line 14714 "configure"
14715 #include "confdefs.h"
14716 #ifndef __cplusplus
14717 static $ac_kw int static_foo () {return 0; }
14718 $ac_kw int foo () {return 0; }
14722 rm -f conftest.$ac_objext
14723 if { (eval echo "$as_me:14723: \"$ac_compile\"") >&5
14724 (eval $ac_compile) 2>&5
14726 echo "$as_me:14726: \$? = $ac_status" >&5
14727 (exit $ac_status); } &&
14728 { ac_try='test -s conftest.$ac_objext'
14729 { (eval echo "$as_me:14729: \"$ac_try\"") >&5
14730 (eval $ac_try) 2>&5
14732 echo "$as_me:14732: \$? = $ac_status" >&5
14733 (exit $ac_status); }; }; then
14734 ac_cv_c_inline=$ac_kw; break
14736 echo "$as_me: failed program was:" >&5
14737 cat conftest.$ac_ext >&5
14739 rm -f conftest.$ac_objext conftest.$ac_ext
14743 echo "$as_me:14743: result: $ac_cv_c_inline" >&5
14744 echo "${ECHO_T}$ac_cv_c_inline" >&6
14745 case $ac_cv_c_inline in
14748 cat >>confdefs.h <<\EOF
14752 *) cat >>confdefs.h <<EOF
14753 #define inline $ac_cv_c_inline
14759 if test "$ac_cv_c_inline" != no ; then
14760 NCURSES_INLINE=inline
14761 if test "$INTEL_COMPILER" = yes
14764 elif test "$GCC" = yes
14766 echo "$as_me:14766: checking if $CC supports options to tune inlining" >&5
14767 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
14768 if test "${cf_cv_gcc_inline+set}" = set; then
14769 echo $ECHO_N "(cached) $ECHO_C" >&6
14772 cf_save_CFLAGS=$CFLAGS
14773 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
14774 cat >conftest.$ac_ext <<_ACEOF
14775 #line 14775 "configure"
14776 #include "confdefs.h"
14777 inline int foo(void) { return 1; }
14781 ${cf_cv_main_return:-return} foo()
14786 rm -f conftest.$ac_objext
14787 if { (eval echo "$as_me:14787: \"$ac_compile\"") >&5
14788 (eval $ac_compile) 2>&5
14790 echo "$as_me:14790: \$? = $ac_status" >&5
14791 (exit $ac_status); } &&
14792 { ac_try='test -s conftest.$ac_objext'
14793 { (eval echo "$as_me:14793: \"$ac_try\"") >&5
14794 (eval $ac_try) 2>&5
14796 echo "$as_me:14796: \$? = $ac_status" >&5
14797 (exit $ac_status); }; }; then
14798 cf_cv_gcc_inline=yes
14800 echo "$as_me: failed program was:" >&5
14801 cat conftest.$ac_ext >&5
14802 cf_cv_gcc_inline=no
14804 rm -f conftest.$ac_objext conftest.$ac_ext
14805 CFLAGS=$cf_save_CFLAGS
14808 echo "$as_me:14808: result: $cf_cv_gcc_inline" >&5
14809 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
14810 if test "$cf_cv_gcc_inline" = yes ; then
14815 cf_new_extra_cppflags=
14817 for cf_add_cflags in --param max-inline-insns-single=1200
14819 case $cf_fix_cppflags in
14821 case $cf_add_cflags in #(vi
14822 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
14823 case $cf_add_cflags in
14825 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14827 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
14828 && test -z "${cf_tst_cflags}" \
14829 && cf_fix_cppflags=yes
14831 if test $cf_fix_cppflags = yes ; then
14832 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14834 elif test "${cf_tst_cflags}" = "\"'" ; then
14835 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14840 case "$CPPFLAGS" in
14841 *$cf_add_cflags) #(vi
14844 case $cf_add_cflags in #(vi
14846 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14848 CPPFLAGS=`echo "$CPPFLAGS" | \
14849 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14850 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14854 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
14859 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
14864 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14866 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14868 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
14869 && test -z "${cf_tst_cflags}" \
14870 && cf_fix_cppflags=no
14875 if test -n "$cf_new_cflags" ; then
14877 CFLAGS="$CFLAGS $cf_new_cflags"
14880 if test -n "$cf_new_cppflags" ; then
14882 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
14885 if test -n "$cf_new_extra_cppflags" ; then
14887 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
14894 echo "$as_me:14894: checking for signal global datatype" >&5
14895 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
14896 if test "${cf_cv_sig_atomic_t+set}" = set; then
14897 echo $ECHO_N "(cached) $ECHO_C" >&6
14901 "volatile sig_atomic_t" \
14905 cat >conftest.$ac_ext <<_ACEOF
14906 #line 14906 "configure"
14907 #include "confdefs.h"
14909 #include <sys/types.h>
14910 #include <signal.h>
14915 static void handler(int sig)
14922 signal(SIGINT, handler);
14928 rm -f conftest.$ac_objext
14929 if { (eval echo "$as_me:14929: \"$ac_compile\"") >&5
14930 (eval $ac_compile) 2>&5
14932 echo "$as_me:14932: \$? = $ac_status" >&5
14933 (exit $ac_status); } &&
14934 { ac_try='test -s conftest.$ac_objext'
14935 { (eval echo "$as_me:14935: \"$ac_try\"") >&5
14936 (eval $ac_try) 2>&5
14938 echo "$as_me:14938: \$? = $ac_status" >&5
14939 (exit $ac_status); }; }; then
14940 cf_cv_sig_atomic_t=$cf_type
14942 echo "$as_me: failed program was:" >&5
14943 cat conftest.$ac_ext >&5
14944 cf_cv_sig_atomic_t=no
14946 rm -f conftest.$ac_objext conftest.$ac_ext
14947 test "$cf_cv_sig_atomic_t" != no && break
14952 echo "$as_me:14952: result: $cf_cv_sig_atomic_t" >&5
14953 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
14954 test "$cf_cv_sig_atomic_t" != no && cat >>confdefs.h <<EOF
14955 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
14958 if test $NCURSES_CHTYPE = auto ; then
14960 echo "$as_me:14960: checking for type of chtype" >&5
14961 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
14962 if test "${cf_cv_typeof_chtype+set}" = set; then
14963 echo $ECHO_N "(cached) $ECHO_C" >&6
14966 if test "$cross_compiling" = yes; then
14967 cf_cv_typeof_chtype=long
14969 cat >conftest.$ac_ext <<_ACEOF
14970 #line 14970 "configure"
14971 #include "confdefs.h"
14973 #define WANT_BITS 31
14977 FILE *fp = fopen("cf_test.out", "w");
14979 char *result = "long";
14980 if (sizeof(unsigned long) > sizeof(unsigned int)) {
14983 for (n = 0; n < WANT_BITS; n++) {
14986 if (y != 1 || x == 0) {
14992 * If x is nonzero, an int is big enough for the bits
14995 result = (x != 0) ? "int" : "long";
15000 ${cf_cv_main_return:-return}(0);
15004 rm -f conftest$ac_exeext
15005 if { (eval echo "$as_me:15005: \"$ac_link\"") >&5
15006 (eval $ac_link) 2>&5
15008 echo "$as_me:15008: \$? = $ac_status" >&5
15009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15010 { (eval echo "$as_me:15010: \"$ac_try\"") >&5
15011 (eval $ac_try) 2>&5
15013 echo "$as_me:15013: \$? = $ac_status" >&5
15014 (exit $ac_status); }; }; then
15015 cf_cv_typeof_chtype=`cat cf_test.out`
15017 echo "$as_me: program exited with status $ac_status" >&5
15018 echo "$as_me: failed program was:" >&5
15019 cat conftest.$ac_ext >&5
15020 cf_cv_typeof_chtype=long
15022 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15028 echo "$as_me:15028: result: $cf_cv_typeof_chtype" >&5
15029 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
15031 cat >>confdefs.h <<EOF
15032 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
15036 cf_cv_typeof_chtype=$NCURSES_CHTYPE
15038 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
15040 echo "$as_me:15040: checking if unsigned literals are legal" >&5
15041 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
15042 if test "${cf_cv_unsigned_literals+set}" = set; then
15043 echo $ECHO_N "(cached) $ECHO_C" >&6
15046 cat >conftest.$ac_ext <<_ACEOF
15047 #line 15047 "configure"
15048 #include "confdefs.h"
15053 long x = 1L + 1UL + 1U + 1
15058 rm -f conftest.$ac_objext
15059 if { (eval echo "$as_me:15059: \"$ac_compile\"") >&5
15060 (eval $ac_compile) 2>&5
15062 echo "$as_me:15062: \$? = $ac_status" >&5
15063 (exit $ac_status); } &&
15064 { ac_try='test -s conftest.$ac_objext'
15065 { (eval echo "$as_me:15065: \"$ac_try\"") >&5
15066 (eval $ac_try) 2>&5
15068 echo "$as_me:15068: \$? = $ac_status" >&5
15069 (exit $ac_status); }; }; then
15070 cf_cv_unsigned_literals=yes
15072 echo "$as_me: failed program was:" >&5
15073 cat conftest.$ac_ext >&5
15074 cf_cv_unsigned_literals=no
15076 rm -f conftest.$ac_objext conftest.$ac_ext
15080 echo "$as_me:15080: result: $cf_cv_unsigned_literals" >&5
15081 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
15084 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
15085 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
15087 if test $NCURSES_MMASK_T = auto ; then
15088 cf_cv_typeof_mmask_t=long
15090 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
15092 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
15094 ### Checks for external-data
15096 echo "$as_me:15096: checking if external errno is declared" >&5
15097 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
15098 if test "${cf_cv_dcl_errno+set}" = set; then
15099 echo $ECHO_N "(cached) $ECHO_C" >&6
15102 cat >conftest.$ac_ext <<_ACEOF
15103 #line 15103 "configure"
15104 #include "confdefs.h"
15106 #ifdef HAVE_STDLIB_H
15107 #include <stdlib.h>
15110 #include <sys/types.h>
15115 int x = (int) errno
15120 rm -f conftest.$ac_objext
15121 if { (eval echo "$as_me:15121: \"$ac_compile\"") >&5
15122 (eval $ac_compile) 2>&5
15124 echo "$as_me:15124: \$? = $ac_status" >&5
15125 (exit $ac_status); } &&
15126 { ac_try='test -s conftest.$ac_objext'
15127 { (eval echo "$as_me:15127: \"$ac_try\"") >&5
15128 (eval $ac_try) 2>&5
15130 echo "$as_me:15130: \$? = $ac_status" >&5
15131 (exit $ac_status); }; }; then
15132 cf_cv_dcl_errno=yes
15134 echo "$as_me: failed program was:" >&5
15135 cat conftest.$ac_ext >&5
15138 rm -f conftest.$ac_objext conftest.$ac_ext
15141 echo "$as_me:15141: result: $cf_cv_dcl_errno" >&5
15142 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
15144 if test "$cf_cv_dcl_errno" = no ; then
15146 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15148 cat >>confdefs.h <<EOF
15149 #define $cf_result 1
15154 # It's possible (for near-UNIX clones) that the data doesn't exist
15156 echo "$as_me:15156: checking if external errno exists" >&5
15157 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
15158 if test "${cf_cv_have_errno+set}" = set; then
15159 echo $ECHO_N "(cached) $ECHO_C" >&6
15162 cat >conftest.$ac_ext <<_ACEOF
15163 #line 15163 "configure"
15164 #include "confdefs.h"
15177 rm -f conftest.$ac_objext conftest$ac_exeext
15178 if { (eval echo "$as_me:15178: \"$ac_link\"") >&5
15179 (eval $ac_link) 2>&5
15181 echo "$as_me:15181: \$? = $ac_status" >&5
15182 (exit $ac_status); } &&
15183 { ac_try='test -s conftest$ac_exeext'
15184 { (eval echo "$as_me:15184: \"$ac_try\"") >&5
15185 (eval $ac_try) 2>&5
15187 echo "$as_me:15187: \$? = $ac_status" >&5
15188 (exit $ac_status); }; }; then
15189 cf_cv_have_errno=yes
15191 echo "$as_me: failed program was:" >&5
15192 cat conftest.$ac_ext >&5
15193 cf_cv_have_errno=no
15195 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15198 echo "$as_me:15198: result: $cf_cv_have_errno" >&5
15199 echo "${ECHO_T}$cf_cv_have_errno" >&6
15201 if test "$cf_cv_have_errno" = yes ; then
15203 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15205 cat >>confdefs.h <<EOF
15206 #define $cf_result 1
15211 echo "$as_me:15211: checking if data-only library module links" >&5
15212 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
15213 if test "${cf_cv_link_dataonly+set}" = set; then
15214 echo $ECHO_N "(cached) $ECHO_C" >&6
15218 cat >conftest.$ac_ext <<EOF
15219 #line 15219 "configure"
15220 int testdata[3] = { 123, 456, 789 };
15222 if { (eval echo "$as_me:15222: \"$ac_compile\"") >&5
15223 (eval $ac_compile) 2>&5
15225 echo "$as_me:15225: \$? = $ac_status" >&5
15226 (exit $ac_status); } ; then
15227 mv conftest.o data.o && \
15228 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
15230 rm -f conftest.$ac_ext data.o
15231 cat >conftest.$ac_ext <<EOF
15232 #line 15232 "configure"
15236 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
15238 extern int testdata[3];
15239 return testdata[0] == 123
15240 && testdata[1] == 456
15241 && testdata[2] == 789;
15245 if { (eval echo "$as_me:15245: \"$ac_compile\"") >&5
15246 (eval $ac_compile) 2>&5
15248 echo "$as_me:15248: \$? = $ac_status" >&5
15249 (exit $ac_status); }; then
15250 mv conftest.o func.o && \
15251 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
15253 rm -f conftest.$ac_ext func.o
15254 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
15255 cf_saveLIBS="$LIBS"
15256 LIBS="conftest.a $LIBS"
15257 if test "$cross_compiling" = yes; then
15258 cf_cv_link_dataonly=unknown
15260 cat >conftest.$ac_ext <<_ACEOF
15261 #line 15261 "configure"
15262 #include "confdefs.h"
15266 extern int testfunc();
15267 ${cf_cv_main_return:-return} (!testfunc());
15271 rm -f conftest$ac_exeext
15272 if { (eval echo "$as_me:15272: \"$ac_link\"") >&5
15273 (eval $ac_link) 2>&5
15275 echo "$as_me:15275: \$? = $ac_status" >&5
15276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15277 { (eval echo "$as_me:15277: \"$ac_try\"") >&5
15278 (eval $ac_try) 2>&5
15280 echo "$as_me:15280: \$? = $ac_status" >&5
15281 (exit $ac_status); }; }; then
15282 cf_cv_link_dataonly=yes
15284 echo "$as_me: program exited with status $ac_status" >&5
15285 echo "$as_me: failed program was:" >&5
15286 cat conftest.$ac_ext >&5
15287 cf_cv_link_dataonly=no
15289 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15291 LIBS="$cf_saveLIBS"
15295 echo "$as_me:15295: result: $cf_cv_link_dataonly" >&5
15296 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
15298 if test "$cf_cv_link_dataonly" = no ; then
15299 cat >>confdefs.h <<\EOF
15300 #define BROKEN_LINKER 1
15306 ### Checks for library functions.
15329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15330 echo "$as_me:15330: checking for $ac_func" >&5
15331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15332 if eval "test \"\${$as_ac_var+set}\" = set"; then
15333 echo $ECHO_N "(cached) $ECHO_C" >&6
15335 cat >conftest.$ac_ext <<_ACEOF
15336 #line 15336 "configure"
15337 #include "confdefs.h"
15338 /* System header to define __stub macros and hopefully few prototypes,
15339 which can conflict with char $ac_func (); below. */
15340 #include <assert.h>
15341 /* Override any gcc2 internal prototype to avoid an error. */
15345 /* We use char because int might match the return type of a gcc2
15346 builtin and then its argument prototype would still apply. */
15353 /* The GNU C library defines this for functions which it implements
15354 to always fail with ENOSYS. Some functions are actually named
15355 something starting with __ and the normal name is an alias. */
15356 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15366 rm -f conftest.$ac_objext conftest$ac_exeext
15367 if { (eval echo "$as_me:15367: \"$ac_link\"") >&5
15368 (eval $ac_link) 2>&5
15370 echo "$as_me:15370: \$? = $ac_status" >&5
15371 (exit $ac_status); } &&
15372 { ac_try='test -s conftest$ac_exeext'
15373 { (eval echo "$as_me:15373: \"$ac_try\"") >&5
15374 (eval $ac_try) 2>&5
15376 echo "$as_me:15376: \$? = $ac_status" >&5
15377 (exit $ac_status); }; }; then
15378 eval "$as_ac_var=yes"
15380 echo "$as_me: failed program was:" >&5
15381 cat conftest.$ac_ext >&5
15382 eval "$as_ac_var=no"
15384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15386 echo "$as_me:15386: result: `eval echo '${'$as_ac_var'}'`" >&5
15387 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15388 if test `eval echo '${'$as_ac_var'}'` = yes; then
15389 cat >>confdefs.h <<EOF
15390 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15396 if test "$with_getcap" = "yes" ; then
15398 echo "$as_me:15398: checking for terminal-capability database functions" >&5
15399 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
15400 if test "${cf_cv_cgetent+set}" = set; then
15401 echo $ECHO_N "(cached) $ECHO_C" >&6
15404 cat >conftest.$ac_ext <<_ACEOF
15405 #line 15405 "configure"
15406 #include "confdefs.h"
15408 #include <stdlib.h>
15415 char *db_array = temp;
15416 cgetent(&buf, &db_array, "vt100");
15417 cgetcap(buf, "tc", '=');
15418 cgetmatch(buf, "tc");
15424 rm -f conftest.$ac_objext conftest$ac_exeext
15425 if { (eval echo "$as_me:15425: \"$ac_link\"") >&5
15426 (eval $ac_link) 2>&5
15428 echo "$as_me:15428: \$? = $ac_status" >&5
15429 (exit $ac_status); } &&
15430 { ac_try='test -s conftest$ac_exeext'
15431 { (eval echo "$as_me:15431: \"$ac_try\"") >&5
15432 (eval $ac_try) 2>&5
15434 echo "$as_me:15434: \$? = $ac_status" >&5
15435 (exit $ac_status); }; }; then
15438 echo "$as_me: failed program was:" >&5
15439 cat conftest.$ac_ext >&5
15442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15445 echo "$as_me:15445: result: $cf_cv_cgetent" >&5
15446 echo "${ECHO_T}$cf_cv_cgetent" >&6
15448 if test "$cf_cv_cgetent" = yes
15450 cat >>confdefs.h <<\EOF
15451 #define HAVE_BSD_CGETENT 1
15454 echo "$as_me:15454: checking if cgetent uses const parameter" >&5
15455 echo $ECHO_N "checking if cgetent uses const parameter... $ECHO_C" >&6
15456 if test "${cf_cv_cgetent_const+set}" = set; then
15457 echo $ECHO_N "(cached) $ECHO_C" >&6
15460 cat >conftest.$ac_ext <<_ACEOF
15461 #line 15461 "configure"
15462 #include "confdefs.h"
15464 #include <stdlib.h>
15471 #ifndef _NETBSD_SOURCE /* given, since April 2004 in stdlib.h */
15472 const char *db_array = temp;
15473 cgetent(&buf, &db_array, "vt100");
15475 cgetcap(buf, "tc", '=');
15476 cgetmatch(buf, "tc");
15482 rm -f conftest.$ac_objext conftest$ac_exeext
15483 if { (eval echo "$as_me:15483: \"$ac_link\"") >&5
15484 (eval $ac_link) 2>&5
15486 echo "$as_me:15486: \$? = $ac_status" >&5
15487 (exit $ac_status); } &&
15488 { ac_try='test -s conftest$ac_exeext'
15489 { (eval echo "$as_me:15489: \"$ac_try\"") >&5
15490 (eval $ac_try) 2>&5
15492 echo "$as_me:15492: \$? = $ac_status" >&5
15493 (exit $ac_status); }; }; then
15494 cf_cv_cgetent_const=yes
15496 echo "$as_me: failed program was:" >&5
15497 cat conftest.$ac_ext >&5
15498 cf_cv_cgetent_const=no
15500 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15503 echo "$as_me:15503: result: $cf_cv_cgetent_const" >&5
15504 echo "${ECHO_T}$cf_cv_cgetent_const" >&6
15505 if test "$cf_cv_cgetent_const" = yes
15507 cat >>confdefs.h <<EOF
15508 #define CGETENT_CONST const
15516 echo "$as_me:15516: checking for isascii" >&5
15517 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
15518 if test "${cf_cv_have_isascii+set}" = set; then
15519 echo $ECHO_N "(cached) $ECHO_C" >&6
15522 cat >conftest.$ac_ext <<_ACEOF
15523 #line 15523 "configure"
15524 #include "confdefs.h"
15529 int x = isascii(' ')
15534 rm -f conftest.$ac_objext conftest$ac_exeext
15535 if { (eval echo "$as_me:15535: \"$ac_link\"") >&5
15536 (eval $ac_link) 2>&5
15538 echo "$as_me:15538: \$? = $ac_status" >&5
15539 (exit $ac_status); } &&
15540 { ac_try='test -s conftest$ac_exeext'
15541 { (eval echo "$as_me:15541: \"$ac_try\"") >&5
15542 (eval $ac_try) 2>&5
15544 echo "$as_me:15544: \$? = $ac_status" >&5
15545 (exit $ac_status); }; }; then
15546 cf_cv_have_isascii=yes
15548 echo "$as_me: failed program was:" >&5
15549 cat conftest.$ac_ext >&5
15550 cf_cv_have_isascii=no
15552 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15555 echo "$as_me:15555: result: $cf_cv_have_isascii" >&5
15556 echo "${ECHO_T}$cf_cv_have_isascii" >&6
15557 test "$cf_cv_have_isascii" = yes && cat >>confdefs.h <<\EOF
15558 #define HAVE_ISASCII 1
15561 if test "$ac_cv_func_sigaction" = yes; then
15562 echo "$as_me:15562: checking whether sigaction needs _POSIX_SOURCE" >&5
15563 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
15564 cat >conftest.$ac_ext <<_ACEOF
15565 #line 15565 "configure"
15566 #include "confdefs.h"
15568 #include <sys/types.h>
15569 #include <signal.h>
15573 struct sigaction act
15578 rm -f conftest.$ac_objext
15579 if { (eval echo "$as_me:15579: \"$ac_compile\"") >&5
15580 (eval $ac_compile) 2>&5
15582 echo "$as_me:15582: \$? = $ac_status" >&5
15583 (exit $ac_status); } &&
15584 { ac_try='test -s conftest.$ac_objext'
15585 { (eval echo "$as_me:15585: \"$ac_try\"") >&5
15586 (eval $ac_try) 2>&5
15588 echo "$as_me:15588: \$? = $ac_status" >&5
15589 (exit $ac_status); }; }; then
15592 echo "$as_me: failed program was:" >&5
15593 cat conftest.$ac_ext >&5
15595 cat >conftest.$ac_ext <<_ACEOF
15596 #line 15596 "configure"
15597 #include "confdefs.h"
15599 #define _POSIX_SOURCE
15600 #include <sys/types.h>
15601 #include <signal.h>
15605 struct sigaction act
15610 rm -f conftest.$ac_objext
15611 if { (eval echo "$as_me:15611: \"$ac_compile\"") >&5
15612 (eval $ac_compile) 2>&5
15614 echo "$as_me:15614: \$? = $ac_status" >&5
15615 (exit $ac_status); } &&
15616 { ac_try='test -s conftest.$ac_objext'
15617 { (eval echo "$as_me:15617: \"$ac_try\"") >&5
15618 (eval $ac_try) 2>&5
15620 echo "$as_me:15620: \$? = $ac_status" >&5
15621 (exit $ac_status); }; }; then
15623 cat >>confdefs.h <<\EOF
15624 #define _POSIX_SOURCE 1
15628 echo "$as_me: failed program was:" >&5
15629 cat conftest.$ac_ext >&5
15632 rm -f conftest.$ac_objext conftest.$ac_ext
15634 rm -f conftest.$ac_objext conftest.$ac_ext
15635 echo "$as_me:15635: result: $sigact_bad" >&5
15636 echo "${ECHO_T}$sigact_bad" >&6
15639 echo "$as_me:15639: checking if nanosleep really works" >&5
15640 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
15641 if test "${cf_cv_func_nanosleep+set}" = set; then
15642 echo $ECHO_N "(cached) $ECHO_C" >&6
15645 if test "$cross_compiling" = yes; then
15646 cf_cv_func_nanosleep=unknown
15648 cat >conftest.$ac_ext <<_ACEOF
15649 #line 15649 "configure"
15650 #include "confdefs.h"
15656 #ifdef HAVE_SYS_TIME_H
15657 #include <sys/time.h>
15661 struct timespec ts1, ts2;
15664 ts1.tv_nsec = 750000000;
15668 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
15669 ${cf_cv_main_return:-return}(code != 0);
15673 rm -f conftest$ac_exeext
15674 if { (eval echo "$as_me:15674: \"$ac_link\"") >&5
15675 (eval $ac_link) 2>&5
15677 echo "$as_me:15677: \$? = $ac_status" >&5
15678 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15679 { (eval echo "$as_me:15679: \"$ac_try\"") >&5
15680 (eval $ac_try) 2>&5
15682 echo "$as_me:15682: \$? = $ac_status" >&5
15683 (exit $ac_status); }; }; then
15684 cf_cv_func_nanosleep=yes
15686 echo "$as_me: program exited with status $ac_status" >&5
15687 echo "$as_me: failed program was:" >&5
15688 cat conftest.$ac_ext >&5
15689 cf_cv_func_nanosleep=no
15691 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15694 echo "$as_me:15694: result: $cf_cv_func_nanosleep" >&5
15695 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
15697 test "$cf_cv_func_nanosleep" = "yes" && cat >>confdefs.h <<\EOF
15698 #define HAVE_NANOSLEEP 1
15707 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15708 echo "$as_me:15708: checking for $ac_header" >&5
15709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15711 echo $ECHO_N "(cached) $ECHO_C" >&6
15713 cat >conftest.$ac_ext <<_ACEOF
15714 #line 15714 "configure"
15715 #include "confdefs.h"
15716 #include <$ac_header>
15718 if { (eval echo "$as_me:15718: \"$ac_cpp conftest.$ac_ext\"") >&5
15719 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15721 egrep -v '^ *\+' conftest.er1 >conftest.err
15723 cat conftest.err >&5
15724 echo "$as_me:15724: \$? = $ac_status" >&5
15725 (exit $ac_status); } >/dev/null; then
15726 if test -s conftest.err; then
15727 ac_cpp_err=$ac_c_preproc_warn_flag
15734 if test -z "$ac_cpp_err"; then
15735 eval "$as_ac_Header=yes"
15737 echo "$as_me: failed program was:" >&5
15738 cat conftest.$ac_ext >&5
15739 eval "$as_ac_Header=no"
15741 rm -f conftest.err conftest.$ac_ext
15743 echo "$as_me:15743: result: `eval echo '${'$as_ac_Header'}'`" >&5
15744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15746 cat >>confdefs.h <<EOF
15747 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15753 if test "$ISC" = yes ; then
15755 for ac_header in sys/termio.h
15757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15758 echo "$as_me:15758: checking for $ac_header" >&5
15759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15761 echo $ECHO_N "(cached) $ECHO_C" >&6
15763 cat >conftest.$ac_ext <<_ACEOF
15764 #line 15764 "configure"
15765 #include "confdefs.h"
15766 #include <$ac_header>
15768 if { (eval echo "$as_me:15768: \"$ac_cpp conftest.$ac_ext\"") >&5
15769 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15771 egrep -v '^ *\+' conftest.er1 >conftest.err
15773 cat conftest.err >&5
15774 echo "$as_me:15774: \$? = $ac_status" >&5
15775 (exit $ac_status); } >/dev/null; then
15776 if test -s conftest.err; then
15777 ac_cpp_err=$ac_c_preproc_warn_flag
15784 if test -z "$ac_cpp_err"; then
15785 eval "$as_ac_Header=yes"
15787 echo "$as_me: failed program was:" >&5
15788 cat conftest.$ac_ext >&5
15789 eval "$as_ac_Header=no"
15791 rm -f conftest.err conftest.$ac_ext
15793 echo "$as_me:15793: result: `eval echo '${'$as_ac_Header'}'`" >&5
15794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15796 cat >>confdefs.h <<EOF
15797 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15804 if test "$ac_cv_header_termios_h" = yes ; then
15805 case "$CFLAGS $CPPFLAGS" in
15807 termios_bad=dunno ;;
15808 *) termios_bad=maybe ;;
15810 if test "$termios_bad" = maybe ; then
15811 echo "$as_me:15811: checking whether termios.h needs _POSIX_SOURCE" >&5
15812 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
15813 cat >conftest.$ac_ext <<_ACEOF
15814 #line 15814 "configure"
15815 #include "confdefs.h"
15816 #include <termios.h>
15820 struct termios foo; int x = foo.c_iflag
15825 rm -f conftest.$ac_objext
15826 if { (eval echo "$as_me:15826: \"$ac_compile\"") >&5
15827 (eval $ac_compile) 2>&5
15829 echo "$as_me:15829: \$? = $ac_status" >&5
15830 (exit $ac_status); } &&
15831 { ac_try='test -s conftest.$ac_objext'
15832 { (eval echo "$as_me:15832: \"$ac_try\"") >&5
15833 (eval $ac_try) 2>&5
15835 echo "$as_me:15835: \$? = $ac_status" >&5
15836 (exit $ac_status); }; }; then
15839 echo "$as_me: failed program was:" >&5
15840 cat conftest.$ac_ext >&5
15842 cat >conftest.$ac_ext <<_ACEOF
15843 #line 15843 "configure"
15844 #include "confdefs.h"
15846 #define _POSIX_SOURCE
15847 #include <termios.h>
15851 struct termios foo; int x = foo.c_iflag
15856 rm -f conftest.$ac_objext
15857 if { (eval echo "$as_me:15857: \"$ac_compile\"") >&5
15858 (eval $ac_compile) 2>&5
15860 echo "$as_me:15860: \$? = $ac_status" >&5
15861 (exit $ac_status); } &&
15862 { ac_try='test -s conftest.$ac_objext'
15863 { (eval echo "$as_me:15863: \"$ac_try\"") >&5
15864 (eval $ac_try) 2>&5
15866 echo "$as_me:15866: \$? = $ac_status" >&5
15867 (exit $ac_status); }; }; then
15868 termios_bad=unknown
15870 echo "$as_me: failed program was:" >&5
15871 cat conftest.$ac_ext >&5
15872 termios_bad=yes cat >>confdefs.h <<\EOF
15873 #define _POSIX_SOURCE 1
15877 rm -f conftest.$ac_objext conftest.$ac_ext
15880 rm -f conftest.$ac_objext conftest.$ac_ext
15881 echo "$as_me:15881: result: $termios_bad" >&5
15882 echo "${ECHO_T}$termios_bad" >&6
15886 echo "$as_me:15886: checking for tcgetattr" >&5
15887 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
15888 if test "${cf_cv_have_tcgetattr+set}" = set; then
15889 echo $ECHO_N "(cached) $ECHO_C" >&6
15892 cat >conftest.$ac_ext <<_ACEOF
15893 #line 15893 "configure"
15894 #include "confdefs.h"
15896 #include <sys/types.h>
15897 #ifdef HAVE_UNISTD_H
15898 #include <unistd.h>
15900 #ifdef HAVE_TERMIOS_H
15901 #include <termios.h>
15902 #define TTY struct termios
15904 #ifdef HAVE_TERMIO_H
15905 #include <termio.h>
15906 #define TTY struct termio
15915 tcgetattr(1, &foo);
15920 rm -f conftest.$ac_objext conftest$ac_exeext
15921 if { (eval echo "$as_me:15921: \"$ac_link\"") >&5
15922 (eval $ac_link) 2>&5
15924 echo "$as_me:15924: \$? = $ac_status" >&5
15925 (exit $ac_status); } &&
15926 { ac_try='test -s conftest$ac_exeext'
15927 { (eval echo "$as_me:15927: \"$ac_try\"") >&5
15928 (eval $ac_try) 2>&5
15930 echo "$as_me:15930: \$? = $ac_status" >&5
15931 (exit $ac_status); }; }; then
15932 cf_cv_have_tcgetattr=yes
15934 echo "$as_me: failed program was:" >&5
15935 cat conftest.$ac_ext >&5
15936 cf_cv_have_tcgetattr=no
15938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15940 echo "$as_me:15940: result: $cf_cv_have_tcgetattr" >&5
15941 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
15942 test "$cf_cv_have_tcgetattr" = yes && cat >>confdefs.h <<\EOF
15943 #define HAVE_TCGETATTR 1
15946 echo "$as_me:15946: checking for vsscanf function or workaround" >&5
15947 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
15948 if test "${cf_cv_func_vsscanf+set}" = set; then
15949 echo $ECHO_N "(cached) $ECHO_C" >&6
15952 cat >conftest.$ac_ext <<_ACEOF
15953 #line 15953 "configure"
15954 #include "confdefs.h"
15956 #include <stdarg.h>
15963 vsscanf("from", "%d", ap)
15968 rm -f conftest.$ac_objext conftest$ac_exeext
15969 if { (eval echo "$as_me:15969: \"$ac_link\"") >&5
15970 (eval $ac_link) 2>&5
15972 echo "$as_me:15972: \$? = $ac_status" >&5
15973 (exit $ac_status); } &&
15974 { ac_try='test -s conftest$ac_exeext'
15975 { (eval echo "$as_me:15975: \"$ac_try\"") >&5
15976 (eval $ac_try) 2>&5
15978 echo "$as_me:15978: \$? = $ac_status" >&5
15979 (exit $ac_status); }; }; then
15980 cf_cv_func_vsscanf=vsscanf
15982 echo "$as_me: failed program was:" >&5
15983 cat conftest.$ac_ext >&5
15985 cat >conftest.$ac_ext <<_ACEOF
15986 #line 15986 "configure"
15987 #include "confdefs.h"
15989 #include <stdarg.h>
15996 char *str = "from";
15998 strbuf._flag = _IOREAD;
15999 strbuf._ptr = strbuf._base = (unsigned char *) str;
16000 strbuf._cnt = strlen(str);
16001 strbuf._file = _NFILE;
16002 return (vfscanf(&strbuf, "%d", ap))
16007 rm -f conftest.$ac_objext conftest$ac_exeext
16008 if { (eval echo "$as_me:16008: \"$ac_link\"") >&5
16009 (eval $ac_link) 2>&5
16011 echo "$as_me:16011: \$? = $ac_status" >&5
16012 (exit $ac_status); } &&
16013 { ac_try='test -s conftest$ac_exeext'
16014 { (eval echo "$as_me:16014: \"$ac_try\"") >&5
16015 (eval $ac_try) 2>&5
16017 echo "$as_me:16017: \$? = $ac_status" >&5
16018 (exit $ac_status); }; }; then
16019 cf_cv_func_vsscanf=vfscanf
16021 echo "$as_me: failed program was:" >&5
16022 cat conftest.$ac_ext >&5
16024 cat >conftest.$ac_ext <<_ACEOF
16025 #line 16025 "configure"
16026 #include "confdefs.h"
16028 #include <stdarg.h>
16035 char *str = "from";
16037 strbuf._flag = _IOREAD;
16038 strbuf._ptr = strbuf._base = (unsigned char *) str;
16039 strbuf._cnt = strlen(str);
16040 strbuf._file = _NFILE;
16041 return (_doscan(&strbuf, "%d", ap))
16046 rm -f conftest.$ac_objext conftest$ac_exeext
16047 if { (eval echo "$as_me:16047: \"$ac_link\"") >&5
16048 (eval $ac_link) 2>&5
16050 echo "$as_me:16050: \$? = $ac_status" >&5
16051 (exit $ac_status); } &&
16052 { ac_try='test -s conftest$ac_exeext'
16053 { (eval echo "$as_me:16053: \"$ac_try\"") >&5
16054 (eval $ac_try) 2>&5
16056 echo "$as_me:16056: \$? = $ac_status" >&5
16057 (exit $ac_status); }; }; then
16058 cf_cv_func_vsscanf=_doscan
16060 echo "$as_me: failed program was:" >&5
16061 cat conftest.$ac_ext >&5
16063 cf_cv_func_vsscanf=no
16065 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16067 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16069 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16071 echo "$as_me:16071: result: $cf_cv_func_vsscanf" >&5
16072 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
16074 case $cf_cv_func_vsscanf in #(vi
16075 vsscanf) cat >>confdefs.h <<\EOF
16076 #define HAVE_VSSCANF 1
16079 vfscanf) cat >>confdefs.h <<\EOF
16080 #define HAVE_VFSCANF 1
16083 _doscan) cat >>confdefs.h <<\EOF
16084 #define HAVE__DOSCAN 1
16089 echo "$as_me:16089: checking for working mkstemp" >&5
16090 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
16091 if test "${cf_cv_func_mkstemp+set}" = set; then
16092 echo $ECHO_N "(cached) $ECHO_C" >&6
16096 if test "$cross_compiling" = yes; then
16097 cf_cv_func_mkstemp=maybe
16099 cat >conftest.$ac_ext <<_ACEOF
16100 #line 16100 "configure"
16101 #include "confdefs.h"
16103 #include <sys/types.h>
16104 #include <stdlib.h>
16106 #include <string.h>
16107 #include <sys/stat.h>
16110 char *tmpl = "conftestXXXXXX";
16118 for (n = 0; n < 2; ++n) {
16119 strcpy(name[n], tmpl);
16120 if ((fd = mkstemp(name[n])) >= 0) {
16121 if (!strcmp(name[n], tmpl)
16122 || stat(name[n], &sb) != 0
16123 || (sb.st_mode & S_IFMT) != S_IFREG
16124 || (sb.st_mode & 077) != 0) {
16131 && !strcmp(name[0], name[1]))
16133 ${cf_cv_main_return:-return}(result);
16137 rm -f conftest$ac_exeext
16138 if { (eval echo "$as_me:16138: \"$ac_link\"") >&5
16139 (eval $ac_link) 2>&5
16141 echo "$as_me:16141: \$? = $ac_status" >&5
16142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16143 { (eval echo "$as_me:16143: \"$ac_try\"") >&5
16144 (eval $ac_try) 2>&5
16146 echo "$as_me:16146: \$? = $ac_status" >&5
16147 (exit $ac_status); }; }; then
16148 cf_cv_func_mkstemp=yes
16151 echo "$as_me: program exited with status $ac_status" >&5
16152 echo "$as_me: failed program was:" >&5
16153 cat conftest.$ac_ext >&5
16154 cf_cv_func_mkstemp=no
16157 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16161 echo "$as_me:16161: result: $cf_cv_func_mkstemp" >&5
16162 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
16163 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
16164 echo "$as_me:16164: checking for mkstemp" >&5
16165 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
16166 if test "${ac_cv_func_mkstemp+set}" = set; then
16167 echo $ECHO_N "(cached) $ECHO_C" >&6
16169 cat >conftest.$ac_ext <<_ACEOF
16170 #line 16170 "configure"
16171 #include "confdefs.h"
16172 /* System header to define __stub macros and hopefully few prototypes,
16173 which can conflict with char mkstemp (); below. */
16174 #include <assert.h>
16175 /* Override any gcc2 internal prototype to avoid an error. */
16179 /* We use char because int might match the return type of a gcc2
16180 builtin and then its argument prototype would still apply. */
16187 /* The GNU C library defines this for functions which it implements
16188 to always fail with ENOSYS. Some functions are actually named
16189 something starting with __ and the normal name is an alias. */
16190 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
16200 rm -f conftest.$ac_objext 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); } &&
16206 { ac_try='test -s conftest$ac_exeext'
16207 { (eval echo "$as_me:16207: \"$ac_try\"") >&5
16208 (eval $ac_try) 2>&5
16210 echo "$as_me:16210: \$? = $ac_status" >&5
16211 (exit $ac_status); }; }; then
16212 ac_cv_func_mkstemp=yes
16214 echo "$as_me: failed program was:" >&5
16215 cat conftest.$ac_ext >&5
16216 ac_cv_func_mkstemp=no
16218 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16220 echo "$as_me:16220: result: $ac_cv_func_mkstemp" >&5
16221 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
16224 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
16225 cat >>confdefs.h <<\EOF
16226 #define HAVE_MKSTEMP 1
16231 # setup for prototype of fallback for vsscanf()
16233 if test "$cf_cv_func_vsscanf" = vsscanf ; then
16239 if test "$cross_compiling" = yes ; then
16240 { echo "$as_me:16240: WARNING: cross compiling: assume setvbuf params not reversed" >&5
16241 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
16243 echo "$as_me:16243: checking whether setvbuf arguments are reversed" >&5
16244 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
16245 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
16246 echo $ECHO_N "(cached) $ECHO_C" >&6
16248 if test "$cross_compiling" = yes; then
16249 { { echo "$as_me:16249: error: cannot run test program while cross compiling" >&5
16250 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16251 { (exit 1); exit 1; }; }
16253 cat >conftest.$ac_ext <<_ACEOF
16254 #line 16254 "configure"
16255 #include "confdefs.h"
16257 /* If setvbuf has the reversed format, exit 0. */
16261 /* This call has the arguments reversed.
16262 A reversed system may check and see that the address of main
16263 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
16264 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
16265 $ac_main_return(1);
16266 putc('\r', stdout);
16267 $ac_main_return(0); /* Non-reversed systems segv here. */
16270 rm -f conftest$ac_exeext
16271 if { (eval echo "$as_me:16271: \"$ac_link\"") >&5
16272 (eval $ac_link) 2>&5
16274 echo "$as_me:16274: \$? = $ac_status" >&5
16275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16276 { (eval echo "$as_me:16276: \"$ac_try\"") >&5
16277 (eval $ac_try) 2>&5
16279 echo "$as_me:16279: \$? = $ac_status" >&5
16280 (exit $ac_status); }; }; then
16281 ac_cv_func_setvbuf_reversed=yes
16283 echo "$as_me: program exited with status $ac_status" >&5
16284 echo "$as_me: failed program was:" >&5
16285 cat conftest.$ac_ext >&5
16286 ac_cv_func_setvbuf_reversed=no
16288 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16290 rm -f core core.* *.core
16292 echo "$as_me:16292: result: $ac_cv_func_setvbuf_reversed" >&5
16293 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
16294 if test $ac_cv_func_setvbuf_reversed = yes; then
16296 cat >>confdefs.h <<\EOF
16297 #define SETVBUF_REVERSED 1
16303 echo "$as_me:16303: checking return type of signal handlers" >&5
16304 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
16305 if test "${ac_cv_type_signal+set}" = set; then
16306 echo $ECHO_N "(cached) $ECHO_C" >&6
16308 cat >conftest.$ac_ext <<_ACEOF
16309 #line 16309 "configure"
16310 #include "confdefs.h"
16311 #include <sys/types.h>
16312 #include <signal.h>
16317 extern "C" void (*signal (int, void (*)(int)))(int);
16319 void (*signal ()) ();
16330 rm -f conftest.$ac_objext
16331 if { (eval echo "$as_me:16331: \"$ac_compile\"") >&5
16332 (eval $ac_compile) 2>&5
16334 echo "$as_me:16334: \$? = $ac_status" >&5
16335 (exit $ac_status); } &&
16336 { ac_try='test -s conftest.$ac_objext'
16337 { (eval echo "$as_me:16337: \"$ac_try\"") >&5
16338 (eval $ac_try) 2>&5
16340 echo "$as_me:16340: \$? = $ac_status" >&5
16341 (exit $ac_status); }; }; then
16342 ac_cv_type_signal=void
16344 echo "$as_me: failed program was:" >&5
16345 cat conftest.$ac_ext >&5
16346 ac_cv_type_signal=int
16348 rm -f conftest.$ac_objext conftest.$ac_ext
16350 echo "$as_me:16350: result: $ac_cv_type_signal" >&5
16351 echo "${ECHO_T}$ac_cv_type_signal" >&6
16353 cat >>confdefs.h <<EOF
16354 #define RETSIGTYPE $ac_cv_type_signal
16357 echo "$as_me:16357: checking for intptr_t" >&5
16358 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
16359 if test "${ac_cv_type_intptr_t+set}" = set; then
16360 echo $ECHO_N "(cached) $ECHO_C" >&6
16362 cat >conftest.$ac_ext <<_ACEOF
16363 #line 16363 "configure"
16364 #include "confdefs.h"
16365 $ac_includes_default
16369 if ((intptr_t *) 0)
16371 if (sizeof (intptr_t))
16377 rm -f conftest.$ac_objext
16378 if { (eval echo "$as_me:16378: \"$ac_compile\"") >&5
16379 (eval $ac_compile) 2>&5
16381 echo "$as_me:16381: \$? = $ac_status" >&5
16382 (exit $ac_status); } &&
16383 { ac_try='test -s conftest.$ac_objext'
16384 { (eval echo "$as_me:16384: \"$ac_try\"") >&5
16385 (eval $ac_try) 2>&5
16387 echo "$as_me:16387: \$? = $ac_status" >&5
16388 (exit $ac_status); }; }; then
16389 ac_cv_type_intptr_t=yes
16391 echo "$as_me: failed program was:" >&5
16392 cat conftest.$ac_ext >&5
16393 ac_cv_type_intptr_t=no
16395 rm -f conftest.$ac_objext conftest.$ac_ext
16397 echo "$as_me:16397: result: $ac_cv_type_intptr_t" >&5
16398 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
16399 if test $ac_cv_type_intptr_t = yes; then
16403 cat >>confdefs.h <<EOF
16404 #define intptr_t long
16409 echo "$as_me:16409: checking for type sigaction_t" >&5
16410 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
16411 if test "${cf_cv_type_sigaction+set}" = set; then
16412 echo $ECHO_N "(cached) $ECHO_C" >&6
16415 cat >conftest.$ac_ext <<_ACEOF
16416 #line 16416 "configure"
16417 #include "confdefs.h"
16419 #include <signal.h>
16428 rm -f conftest.$ac_objext
16429 if { (eval echo "$as_me:16429: \"$ac_compile\"") >&5
16430 (eval $ac_compile) 2>&5
16432 echo "$as_me:16432: \$? = $ac_status" >&5
16433 (exit $ac_status); } &&
16434 { ac_try='test -s conftest.$ac_objext'
16435 { (eval echo "$as_me:16435: \"$ac_try\"") >&5
16436 (eval $ac_try) 2>&5
16438 echo "$as_me:16438: \$? = $ac_status" >&5
16439 (exit $ac_status); }; }; then
16440 cf_cv_type_sigaction=yes
16442 echo "$as_me: failed program was:" >&5
16443 cat conftest.$ac_ext >&5
16444 cf_cv_type_sigaction=no
16446 rm -f conftest.$ac_objext conftest.$ac_ext
16449 echo "$as_me:16449: result: $cf_cv_type_sigaction" >&5
16450 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
16451 test "$cf_cv_type_sigaction" = yes && cat >>confdefs.h <<\EOF
16452 #define HAVE_TYPE_SIGACTION 1
16455 echo "$as_me:16455: checking declaration of size-change" >&5
16456 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
16457 if test "${cf_cv_sizechange+set}" = set; then
16458 echo $ECHO_N "(cached) $ECHO_C" >&6
16461 cf_cv_sizechange=unknown
16462 cf_save_CPPFLAGS="$CPPFLAGS"
16464 for cf_opts in "" "NEED_PTEM_H"
16467 CPPFLAGS="$cf_save_CPPFLAGS"
16468 test -n "$cf_opts" && CPPFLAGS="$CPPFLAGS -D$cf_opts"
16469 cat >conftest.$ac_ext <<_ACEOF
16470 #line 16470 "configure"
16471 #include "confdefs.h"
16472 #include <sys/types.h>
16473 #ifdef HAVE_TERMIOS_H
16474 #include <termios.h>
16476 #ifdef HAVE_TERMIO_H
16477 #include <termio.h>
16481 /* This is a workaround for SCO: they neglected to define struct winsize in
16482 * termios.h -- it's only in termio.h and ptem.h
16484 #include <sys/stream.h>
16485 #include <sys/ptem.h>
16487 #if !defined(sun) || !defined(HAVE_TERMIOS_H)
16488 #include <sys/ioctl.h>
16496 struct ttysize win; /* FIXME: what system is this? */
16497 int y = win.ts_lines;
16498 int x = win.ts_cols;
16501 struct winsize win;
16502 int y = win.ws_row;
16503 int x = win.ws_col;
16505 no TIOCGSIZE or TIOCGWINSZ
16506 #endif /* TIOCGWINSZ */
16507 #endif /* TIOCGSIZE */
16513 rm -f conftest.$ac_objext
16514 if { (eval echo "$as_me:16514: \"$ac_compile\"") >&5
16515 (eval $ac_compile) 2>&5
16517 echo "$as_me:16517: \$? = $ac_status" >&5
16518 (exit $ac_status); } &&
16519 { ac_try='test -s conftest.$ac_objext'
16520 { (eval echo "$as_me:16520: \"$ac_try\"") >&5
16521 (eval $ac_try) 2>&5
16523 echo "$as_me:16523: \$? = $ac_status" >&5
16524 (exit $ac_status); }; }; then
16525 cf_cv_sizechange=yes
16527 echo "$as_me: failed program was:" >&5
16528 cat conftest.$ac_ext >&5
16529 cf_cv_sizechange=no
16531 rm -f conftest.$ac_objext conftest.$ac_ext
16533 CPPFLAGS="$cf_save_CPPFLAGS"
16534 if test "$cf_cv_sizechange" = yes ; then
16535 echo "size-change succeeded ($cf_opts)" >&5
16536 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
16542 echo "$as_me:16542: result: $cf_cv_sizechange" >&5
16543 echo "${ECHO_T}$cf_cv_sizechange" >&6
16544 if test "$cf_cv_sizechange" != no ; then
16545 cat >>confdefs.h <<\EOF
16546 #define HAVE_SIZECHANGE 1
16549 case $cf_cv_sizechange in #(vi
16551 cat >>confdefs.h <<EOF
16552 #define $cf_cv_sizechange 1
16559 echo "$as_me:16559: checking for memmove" >&5
16560 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
16561 if test "${ac_cv_func_memmove+set}" = set; then
16562 echo $ECHO_N "(cached) $ECHO_C" >&6
16564 cat >conftest.$ac_ext <<_ACEOF
16565 #line 16565 "configure"
16566 #include "confdefs.h"
16567 /* System header to define __stub macros and hopefully few prototypes,
16568 which can conflict with char memmove (); below. */
16569 #include <assert.h>
16570 /* Override any gcc2 internal prototype to avoid an error. */
16574 /* We use char because int might match the return type of a gcc2
16575 builtin and then its argument prototype would still apply. */
16582 /* The GNU C library defines this for functions which it implements
16583 to always fail with ENOSYS. Some functions are actually named
16584 something starting with __ and the normal name is an alias. */
16585 #if defined (__stub_memmove) || defined (__stub___memmove)
16595 rm -f conftest.$ac_objext conftest$ac_exeext
16596 if { (eval echo "$as_me:16596: \"$ac_link\"") >&5
16597 (eval $ac_link) 2>&5
16599 echo "$as_me:16599: \$? = $ac_status" >&5
16600 (exit $ac_status); } &&
16601 { ac_try='test -s conftest$ac_exeext'
16602 { (eval echo "$as_me:16602: \"$ac_try\"") >&5
16603 (eval $ac_try) 2>&5
16605 echo "$as_me:16605: \$? = $ac_status" >&5
16606 (exit $ac_status); }; }; then
16607 ac_cv_func_memmove=yes
16609 echo "$as_me: failed program was:" >&5
16610 cat conftest.$ac_ext >&5
16611 ac_cv_func_memmove=no
16613 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16615 echo "$as_me:16615: result: $ac_cv_func_memmove" >&5
16616 echo "${ECHO_T}$ac_cv_func_memmove" >&6
16617 if test $ac_cv_func_memmove = yes; then
16621 echo "$as_me:16621: checking for bcopy" >&5
16622 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
16623 if test "${ac_cv_func_bcopy+set}" = set; then
16624 echo $ECHO_N "(cached) $ECHO_C" >&6
16626 cat >conftest.$ac_ext <<_ACEOF
16627 #line 16627 "configure"
16628 #include "confdefs.h"
16629 /* System header to define __stub macros and hopefully few prototypes,
16630 which can conflict with char bcopy (); below. */
16631 #include <assert.h>
16632 /* Override any gcc2 internal prototype to avoid an error. */
16636 /* We use char because int might match the return type of a gcc2
16637 builtin and then its argument prototype would still apply. */
16644 /* The GNU C library defines this for functions which it implements
16645 to always fail with ENOSYS. Some functions are actually named
16646 something starting with __ and the normal name is an alias. */
16647 #if defined (__stub_bcopy) || defined (__stub___bcopy)
16657 rm -f conftest.$ac_objext conftest$ac_exeext
16658 if { (eval echo "$as_me:16658: \"$ac_link\"") >&5
16659 (eval $ac_link) 2>&5
16661 echo "$as_me:16661: \$? = $ac_status" >&5
16662 (exit $ac_status); } &&
16663 { ac_try='test -s conftest$ac_exeext'
16664 { (eval echo "$as_me:16664: \"$ac_try\"") >&5
16665 (eval $ac_try) 2>&5
16667 echo "$as_me:16667: \$? = $ac_status" >&5
16668 (exit $ac_status); }; }; then
16669 ac_cv_func_bcopy=yes
16671 echo "$as_me: failed program was:" >&5
16672 cat conftest.$ac_ext >&5
16673 ac_cv_func_bcopy=no
16675 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16677 echo "$as_me:16677: result: $ac_cv_func_bcopy" >&5
16678 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
16679 if test $ac_cv_func_bcopy = yes; then
16681 echo "$as_me:16681: checking if bcopy does overlapping moves" >&5
16682 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
16683 if test "${cf_cv_good_bcopy+set}" = set; then
16684 echo $ECHO_N "(cached) $ECHO_C" >&6
16687 if test "$cross_compiling" = yes; then
16688 cf_cv_good_bcopy=unknown
16690 cat >conftest.$ac_ext <<_ACEOF
16691 #line 16691 "configure"
16692 #include "confdefs.h"
16695 static char data[] = "abcdefghijklmnopqrstuwwxyz";
16697 bcopy(data, temp, sizeof(data));
16698 bcopy(temp+10, temp, 15);
16699 bcopy(temp+5, temp+15, 10);
16700 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
16704 rm -f conftest$ac_exeext
16705 if { (eval echo "$as_me:16705: \"$ac_link\"") >&5
16706 (eval $ac_link) 2>&5
16708 echo "$as_me:16708: \$? = $ac_status" >&5
16709 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16710 { (eval echo "$as_me:16710: \"$ac_try\"") >&5
16711 (eval $ac_try) 2>&5
16713 echo "$as_me:16713: \$? = $ac_status" >&5
16714 (exit $ac_status); }; }; then
16715 cf_cv_good_bcopy=yes
16717 echo "$as_me: program exited with status $ac_status" >&5
16718 echo "$as_me: failed program was:" >&5
16719 cat conftest.$ac_ext >&5
16720 cf_cv_good_bcopy=no
16722 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16726 echo "$as_me:16726: result: $cf_cv_good_bcopy" >&5
16727 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
16730 cf_cv_good_bcopy=no
16733 if test "$cf_cv_good_bcopy" = yes ; then
16734 cat >>confdefs.h <<\EOF
16735 #define USE_OK_BCOPY 1
16739 cat >>confdefs.h <<\EOF
16740 #define USE_MY_MEMMOVE 1
16747 echo "$as_me:16747: checking if poll really works" >&5
16748 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
16749 if test "${cf_cv_working_poll+set}" = set; then
16750 echo $ECHO_N "(cached) $ECHO_C" >&6
16753 if test "$cross_compiling" = yes; then
16754 cf_cv_working_poll=unknown
16756 cat >conftest.$ac_ext <<_ACEOF
16757 #line 16757 "configure"
16758 #include "confdefs.h"
16764 #include <sys/poll.h>
16767 struct pollfd myfds;
16770 /* check for Darwin bug with respect to "devices" */
16771 myfds.fd = open("/dev/null", 1);
16774 myfds.events = POLLIN;
16777 ret = poll(&myfds, 1, 100);
16779 if (ret < 0 || (myfds.revents & POLLNVAL)) {
16783 /* also check with standard input */
16785 myfds.events = POLLIN;
16788 ret = poll(&myfds, 1, 100);
16793 ${cf_cv_main_return:-return}(ret != 0);
16796 rm -f conftest$ac_exeext
16797 if { (eval echo "$as_me:16797: \"$ac_link\"") >&5
16798 (eval $ac_link) 2>&5
16800 echo "$as_me:16800: \$? = $ac_status" >&5
16801 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16802 { (eval echo "$as_me:16802: \"$ac_try\"") >&5
16803 (eval $ac_try) 2>&5
16805 echo "$as_me:16805: \$? = $ac_status" >&5
16806 (exit $ac_status); }; }; then
16807 cf_cv_working_poll=yes
16809 echo "$as_me: program exited with status $ac_status" >&5
16810 echo "$as_me: failed program was:" >&5
16811 cat conftest.$ac_ext >&5
16812 cf_cv_working_poll=no
16814 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16817 echo "$as_me:16817: result: $cf_cv_working_poll" >&5
16818 echo "${ECHO_T}$cf_cv_working_poll" >&6
16819 test "$cf_cv_working_poll" = "yes" && cat >>confdefs.h <<\EOF
16820 #define HAVE_WORKING_POLL 1
16823 echo "$as_me:16823: checking for va_copy" >&5
16824 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
16825 if test "${cf_cv_have_va_copy+set}" = set; then
16826 echo $ECHO_N "(cached) $ECHO_C" >&6
16829 cat >conftest.$ac_ext <<_ACEOF
16830 #line 16830 "configure"
16831 #include "confdefs.h"
16833 #include <stdarg.h>
16839 static va_list dst;
16840 static va_list src;
16846 rm -f conftest.$ac_objext conftest$ac_exeext
16847 if { (eval echo "$as_me:16847: \"$ac_link\"") >&5
16848 (eval $ac_link) 2>&5
16850 echo "$as_me:16850: \$? = $ac_status" >&5
16851 (exit $ac_status); } &&
16852 { ac_try='test -s conftest$ac_exeext'
16853 { (eval echo "$as_me:16853: \"$ac_try\"") >&5
16854 (eval $ac_try) 2>&5
16856 echo "$as_me:16856: \$? = $ac_status" >&5
16857 (exit $ac_status); }; }; then
16858 cf_cv_have_va_copy=yes
16860 echo "$as_me: failed program was:" >&5
16861 cat conftest.$ac_ext >&5
16862 cf_cv_have_va_copy=no
16864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16866 echo "$as_me:16866: result: $cf_cv_have_va_copy" >&5
16867 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
16869 test "$cf_cv_have_va_copy" = yes && cat >>confdefs.h <<\EOF
16870 #define HAVE_VA_COPY 1
16873 echo "$as_me:16873: checking for __va_copy" >&5
16874 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
16875 if test "${cf_cv_have___va_copy+set}" = set; then
16876 echo $ECHO_N "(cached) $ECHO_C" >&6
16879 cat >conftest.$ac_ext <<_ACEOF
16880 #line 16880 "configure"
16881 #include "confdefs.h"
16883 #include <stdarg.h>
16889 static va_list dst;
16890 static va_list src;
16891 __va_copy(dst, src)
16896 rm -f conftest.$ac_objext conftest$ac_exeext
16897 if { (eval echo "$as_me:16897: \"$ac_link\"") >&5
16898 (eval $ac_link) 2>&5
16900 echo "$as_me:16900: \$? = $ac_status" >&5
16901 (exit $ac_status); } &&
16902 { ac_try='test -s conftest$ac_exeext'
16903 { (eval echo "$as_me:16903: \"$ac_try\"") >&5
16904 (eval $ac_try) 2>&5
16906 echo "$as_me:16906: \$? = $ac_status" >&5
16907 (exit $ac_status); }; }; then
16908 cf_cv_have___va_copy=yes
16910 echo "$as_me: failed program was:" >&5
16911 cat conftest.$ac_ext >&5
16912 cf_cv_have___va_copy=no
16914 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16916 echo "$as_me:16916: result: $cf_cv_have___va_copy" >&5
16917 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
16919 test "$cf_cv_have___va_copy" = yes && cat >>confdefs.h <<\EOF
16920 #define HAVE___VA_COPY 1
16923 echo "$as_me:16923: checking for pid_t" >&5
16924 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
16925 if test "${ac_cv_type_pid_t+set}" = set; then
16926 echo $ECHO_N "(cached) $ECHO_C" >&6
16928 cat >conftest.$ac_ext <<_ACEOF
16929 #line 16929 "configure"
16930 #include "confdefs.h"
16931 $ac_includes_default
16937 if (sizeof (pid_t))
16943 rm -f conftest.$ac_objext
16944 if { (eval echo "$as_me:16944: \"$ac_compile\"") >&5
16945 (eval $ac_compile) 2>&5
16947 echo "$as_me:16947: \$? = $ac_status" >&5
16948 (exit $ac_status); } &&
16949 { ac_try='test -s conftest.$ac_objext'
16950 { (eval echo "$as_me:16950: \"$ac_try\"") >&5
16951 (eval $ac_try) 2>&5
16953 echo "$as_me:16953: \$? = $ac_status" >&5
16954 (exit $ac_status); }; }; then
16955 ac_cv_type_pid_t=yes
16957 echo "$as_me: failed program was:" >&5
16958 cat conftest.$ac_ext >&5
16959 ac_cv_type_pid_t=no
16961 rm -f conftest.$ac_objext conftest.$ac_ext
16963 echo "$as_me:16963: result: $ac_cv_type_pid_t" >&5
16964 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
16965 if test $ac_cv_type_pid_t = yes; then
16969 cat >>confdefs.h <<EOF
16975 for ac_header in unistd.h vfork.h
16977 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16978 echo "$as_me:16978: checking for $ac_header" >&5
16979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16981 echo $ECHO_N "(cached) $ECHO_C" >&6
16983 cat >conftest.$ac_ext <<_ACEOF
16984 #line 16984 "configure"
16985 #include "confdefs.h"
16986 #include <$ac_header>
16988 if { (eval echo "$as_me:16988: \"$ac_cpp conftest.$ac_ext\"") >&5
16989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16991 egrep -v '^ *\+' conftest.er1 >conftest.err
16993 cat conftest.err >&5
16994 echo "$as_me:16994: \$? = $ac_status" >&5
16995 (exit $ac_status); } >/dev/null; then
16996 if test -s conftest.err; then
16997 ac_cpp_err=$ac_c_preproc_warn_flag
17004 if test -z "$ac_cpp_err"; then
17005 eval "$as_ac_Header=yes"
17007 echo "$as_me: failed program was:" >&5
17008 cat conftest.$ac_ext >&5
17009 eval "$as_ac_Header=no"
17011 rm -f conftest.err conftest.$ac_ext
17013 echo "$as_me:17013: result: `eval echo '${'$as_ac_Header'}'`" >&5
17014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17016 cat >>confdefs.h <<EOF
17017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17023 for ac_func in fork vfork
17025 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17026 echo "$as_me:17026: checking for $ac_func" >&5
17027 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17028 if eval "test \"\${$as_ac_var+set}\" = set"; then
17029 echo $ECHO_N "(cached) $ECHO_C" >&6
17031 cat >conftest.$ac_ext <<_ACEOF
17032 #line 17032 "configure"
17033 #include "confdefs.h"
17034 /* System header to define __stub macros and hopefully few prototypes,
17035 which can conflict with char $ac_func (); below. */
17036 #include <assert.h>
17037 /* Override any gcc2 internal prototype to avoid an error. */
17041 /* We use char because int might match the return type of a gcc2
17042 builtin and then its argument prototype would still apply. */
17049 /* The GNU C library defines this for functions which it implements
17050 to always fail with ENOSYS. Some functions are actually named
17051 something starting with __ and the normal name is an alias. */
17052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17062 rm -f conftest.$ac_objext conftest$ac_exeext
17063 if { (eval echo "$as_me:17063: \"$ac_link\"") >&5
17064 (eval $ac_link) 2>&5
17066 echo "$as_me:17066: \$? = $ac_status" >&5
17067 (exit $ac_status); } &&
17068 { ac_try='test -s conftest$ac_exeext'
17069 { (eval echo "$as_me:17069: \"$ac_try\"") >&5
17070 (eval $ac_try) 2>&5
17072 echo "$as_me:17072: \$? = $ac_status" >&5
17073 (exit $ac_status); }; }; then
17074 eval "$as_ac_var=yes"
17076 echo "$as_me: failed program was:" >&5
17077 cat conftest.$ac_ext >&5
17078 eval "$as_ac_var=no"
17080 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17082 echo "$as_me:17082: result: `eval echo '${'$as_ac_var'}'`" >&5
17083 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17084 if test `eval echo '${'$as_ac_var'}'` = yes; then
17085 cat >>confdefs.h <<EOF
17086 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17092 ac_cv_func_fork_works=$ac_cv_func_fork
17093 if test "x$ac_cv_func_fork" = xyes; then
17094 echo "$as_me:17094: checking for working fork" >&5
17095 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
17096 if test "${ac_cv_func_fork_works+set}" = set; then
17097 echo $ECHO_N "(cached) $ECHO_C" >&6
17099 if test "$cross_compiling" = yes; then
17100 ac_cv_func_fork_works=cross
17102 cat >conftest.$ac_ext <<_ACEOF
17103 /* By Rüdiger Kuhlmann. */
17104 #include <sys/types.h>
17106 # include <unistd.h>
17108 /* Some systems only have a dummy stub for fork() */
17112 $ac_main_return (1);
17113 $ac_main_return (0);
17116 rm -f conftest$ac_exeext
17117 if { (eval echo "$as_me:17117: \"$ac_link\"") >&5
17118 (eval $ac_link) 2>&5
17120 echo "$as_me:17120: \$? = $ac_status" >&5
17121 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17122 { (eval echo "$as_me:17122: \"$ac_try\"") >&5
17123 (eval $ac_try) 2>&5
17125 echo "$as_me:17125: \$? = $ac_status" >&5
17126 (exit $ac_status); }; }; then
17127 ac_cv_func_fork_works=yes
17129 echo "$as_me: program exited with status $ac_status" >&5
17130 echo "$as_me: failed program was:" >&5
17131 cat conftest.$ac_ext >&5
17132 ac_cv_func_fork_works=no
17134 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17137 echo "$as_me:17137: result: $ac_cv_func_fork_works" >&5
17138 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
17141 if test "x$ac_cv_func_fork_works" = xcross; then
17143 *-*-amigaos* | *-*-msdosdjgpp*)
17144 # Override, as these systems have only a dummy fork() stub
17145 ac_cv_func_fork_works=no
17148 ac_cv_func_fork_works=yes
17151 { echo "$as_me:17151: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
17152 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
17154 ac_cv_func_vfork_works=$ac_cv_func_vfork
17155 if test "x$ac_cv_func_vfork" = xyes; then
17156 echo "$as_me:17156: checking for working vfork" >&5
17157 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
17158 if test "${ac_cv_func_vfork_works+set}" = set; then
17159 echo $ECHO_N "(cached) $ECHO_C" >&6
17161 if test "$cross_compiling" = yes; then
17162 ac_cv_func_vfork_works=cross
17164 cat >conftest.$ac_ext <<_ACEOF
17165 #line 17165 "configure"
17166 #include "confdefs.h"
17167 /* Thanks to Paul Eggert for this test. */
17169 #include <sys/types.h>
17170 #include <sys/stat.h>
17172 # include <unistd.h>
17175 # include <vfork.h>
17177 /* On some sparc systems, changes by the child to local and incoming
17178 argument registers are propagated back to the parent. The compiler
17179 is told about this with #include <vfork.h>, but some compilers
17180 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17181 static variable whose address is put into a register that is
17182 clobbered by the vfork. */
17185 sparc_address_test (int arg)
17187 sparc_address_test (arg) int arg;
17190 static pid_t child;
17208 pid_t parent = getpid ();
17211 sparc_address_test ();
17216 /* Here is another test for sparc vfork register problems. This
17217 test uses lots of local variables, at least as many local
17218 variables as main has allocated so far including compiler
17219 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17220 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17221 reuse the register of parent for one of the local variables,
17222 since it will think that parent can't possibly be used any more
17223 in this routine. Assigning to the local variable will thus
17224 munge parent in the parent process. */
17226 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17227 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17228 /* Convince the compiler that p..p7 are live; otherwise, it might
17229 use the same hardware register for all 8 local variables. */
17230 if (p != p1 || p != p2 || p != p3 || p != p4
17231 || p != p5 || p != p6 || p != p7)
17234 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17235 from child file descriptors. If the child closes a descriptor
17236 before it execs or exits, this munges the parent's descriptor
17237 as well. Test for this by closing stdout in the child. */
17238 _exit(close(fileno(stdout)) != 0);
17243 while (wait(&status) != child)
17246 /* Was there some problem with vforking? */
17249 /* Did the child fail? (This shouldn't happen.) */
17252 /* Did the vfork/compiler bug occur? */
17253 || parent != getpid()
17255 /* Did the file descriptor bug occur? */
17256 || fstat(fileno(stdout), &st) != 0
17261 rm -f conftest$ac_exeext
17262 if { (eval echo "$as_me:17262: \"$ac_link\"") >&5
17263 (eval $ac_link) 2>&5
17265 echo "$as_me:17265: \$? = $ac_status" >&5
17266 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17267 { (eval echo "$as_me:17267: \"$ac_try\"") >&5
17268 (eval $ac_try) 2>&5
17270 echo "$as_me:17270: \$? = $ac_status" >&5
17271 (exit $ac_status); }; }; then
17272 ac_cv_func_vfork_works=yes
17274 echo "$as_me: program exited with status $ac_status" >&5
17275 echo "$as_me: failed program was:" >&5
17276 cat conftest.$ac_ext >&5
17277 ac_cv_func_vfork_works=no
17279 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17282 echo "$as_me:17282: result: $ac_cv_func_vfork_works" >&5
17283 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
17286 if test "x$ac_cv_func_fork_works" = xcross; then
17287 ac_cv_func_vfork_works=ac_cv_func_vfork
17288 { echo "$as_me:17288: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
17289 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
17292 if test "x$ac_cv_func_vfork_works" = xyes; then
17294 cat >>confdefs.h <<\EOF
17295 #define HAVE_WORKING_VFORK 1
17300 cat >>confdefs.h <<\EOF
17305 if test "x$ac_cv_func_fork_works" = xyes; then
17307 cat >>confdefs.h <<\EOF
17308 #define HAVE_WORKING_FORK 1
17313 # special check for test/ditto.c
17315 echo "$as_me:17315: checking for openpty in -lutil" >&5
17316 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
17317 if test "${ac_cv_lib_util_openpty+set}" = set; then
17318 echo $ECHO_N "(cached) $ECHO_C" >&6
17320 ac_check_lib_save_LIBS=$LIBS
17321 LIBS="-lutil $LIBS"
17322 cat >conftest.$ac_ext <<_ACEOF
17323 #line 17323 "configure"
17324 #include "confdefs.h"
17326 /* Override any gcc2 internal prototype to avoid an error. */
17330 /* We use char because int might match the return type of a gcc2
17331 builtin and then its argument prototype would still apply. */
17341 rm -f conftest.$ac_objext conftest$ac_exeext
17342 if { (eval echo "$as_me:17342: \"$ac_link\"") >&5
17343 (eval $ac_link) 2>&5
17345 echo "$as_me:17345: \$? = $ac_status" >&5
17346 (exit $ac_status); } &&
17347 { ac_try='test -s conftest$ac_exeext'
17348 { (eval echo "$as_me:17348: \"$ac_try\"") >&5
17349 (eval $ac_try) 2>&5
17351 echo "$as_me:17351: \$? = $ac_status" >&5
17352 (exit $ac_status); }; }; then
17353 ac_cv_lib_util_openpty=yes
17355 echo "$as_me: failed program was:" >&5
17356 cat conftest.$ac_ext >&5
17357 ac_cv_lib_util_openpty=no
17359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17360 LIBS=$ac_check_lib_save_LIBS
17362 echo "$as_me:17362: result: $ac_cv_lib_util_openpty" >&5
17363 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
17364 if test $ac_cv_lib_util_openpty = yes; then
17370 echo "$as_me:17370: checking for openpty header" >&5
17371 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
17372 if test "${cf_cv_func_openpty+set}" = set; then
17373 echo $ECHO_N "(cached) $ECHO_C" >&6
17376 cf_save_LIBS="$LIBS"
17377 test $cf_cv_lib_util = yes && LIBS="-lutil $LIBS"
17378 for cf_header in pty.h libutil.h util.h
17380 cat >conftest.$ac_ext <<_ACEOF
17381 #line 17381 "configure"
17382 #include "confdefs.h"
17384 #include <$cf_header>
17390 int x = openpty((int *)0, (int *)0, (char *)0,
17391 (struct termios *)0, (struct winsize *)0);
17397 rm -f conftest.$ac_objext conftest$ac_exeext
17398 if { (eval echo "$as_me:17398: \"$ac_link\"") >&5
17399 (eval $ac_link) 2>&5
17401 echo "$as_me:17401: \$? = $ac_status" >&5
17402 (exit $ac_status); } &&
17403 { ac_try='test -s conftest$ac_exeext'
17404 { (eval echo "$as_me:17404: \"$ac_try\"") >&5
17405 (eval $ac_try) 2>&5
17407 echo "$as_me:17407: \$? = $ac_status" >&5
17408 (exit $ac_status); }; }; then
17410 cf_cv_func_openpty=$cf_header
17414 echo "$as_me: failed program was:" >&5
17415 cat conftest.$ac_ext >&5
17417 cf_cv_func_openpty=no
17420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17422 LIBS="$cf_save_LIBS"
17425 echo "$as_me:17425: result: $cf_cv_func_openpty" >&5
17426 echo "${ECHO_T}$cf_cv_func_openpty" >&6
17428 if test "$cf_cv_func_openpty" != no ; then
17429 cat >>confdefs.h <<EOF
17430 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
17433 cat >>confdefs.h <<\EOF
17434 #define USE_XTERM_PTY 1
17437 if test "$cf_cv_lib_util" = yes ; then
17438 TEST_LIBS="-lutil $TEST_LIBS"
17442 if test "$with_hashed_db" != no ; then
17443 cat >>confdefs.h <<\EOF
17444 #define USE_HASHED_DB 1
17447 case $with_hashed_db in #(vi
17451 if test -d "$with_hashed_db" ; then
17453 if test -n "$with_hashed_db/include" ; then
17454 for cf_add_incdir in $with_hashed_db/include
17456 while test $cf_add_incdir != /usr/include
17458 if test -d $cf_add_incdir
17461 if test -n "$CFLAGS$CPPFLAGS" ; then
17462 # a loop is needed to ensure we can add subdirs of existing dirs
17463 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
17464 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
17465 cf_have_incdir=yes; break
17470 if test "$cf_have_incdir" = no ; then
17471 if test "$cf_add_incdir" = /usr/local/include ; then
17472 if test "$GCC" = yes
17474 cf_save_CPPFLAGS=$CPPFLAGS
17475 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
17476 cat >conftest.$ac_ext <<_ACEOF
17477 #line 17477 "configure"
17478 #include "confdefs.h"
17488 rm -f conftest.$ac_objext
17489 if { (eval echo "$as_me:17489: \"$ac_compile\"") >&5
17490 (eval $ac_compile) 2>&5
17492 echo "$as_me:17492: \$? = $ac_status" >&5
17493 (exit $ac_status); } &&
17494 { ac_try='test -s conftest.$ac_objext'
17495 { (eval echo "$as_me:17495: \"$ac_try\"") >&5
17496 (eval $ac_try) 2>&5
17498 echo "$as_me:17498: \$? = $ac_status" >&5
17499 (exit $ac_status); }; }; then
17502 echo "$as_me: failed program was:" >&5
17503 cat conftest.$ac_ext >&5
17506 rm -f conftest.$ac_objext conftest.$ac_ext
17507 CPPFLAGS=$cf_save_CPPFLAGS
17512 if test "$cf_have_incdir" = no ; then
17513 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
17515 echo "${as_me:-configure}:17515: testing adding $cf_add_incdir to include-path ..." 1>&5
17517 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
17519 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
17520 test "$cf_top_incdir" = "$cf_add_incdir" && break
17521 cf_add_incdir="$cf_top_incdir"
17530 if test -n "$with_hashed_db/lib" ; then
17531 for cf_add_libdir in $with_hashed_db/lib
17533 if test $cf_add_libdir = /usr/lib ; then
17535 elif test -d $cf_add_libdir
17538 if test -n "$LDFLAGS$LIBS" ; then
17539 # a loop is needed to ensure we can add subdirs of existing dirs
17540 for cf_test_libdir in $LDFLAGS $LIBS ; do
17541 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
17542 cf_have_libdir=yes; break
17546 if test "$cf_have_libdir" = no ; then
17547 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
17549 echo "${as_me:-configure}:17549: testing adding $cf_add_libdir to library-path ..." 1>&5
17551 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
17560 echo "$as_me:17560: checking for db.h" >&5
17561 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
17562 if test "${ac_cv_header_db_h+set}" = set; then
17563 echo $ECHO_N "(cached) $ECHO_C" >&6
17565 cat >conftest.$ac_ext <<_ACEOF
17566 #line 17566 "configure"
17567 #include "confdefs.h"
17570 if { (eval echo "$as_me:17570: \"$ac_cpp conftest.$ac_ext\"") >&5
17571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17573 egrep -v '^ *\+' conftest.er1 >conftest.err
17575 cat conftest.err >&5
17576 echo "$as_me:17576: \$? = $ac_status" >&5
17577 (exit $ac_status); } >/dev/null; then
17578 if test -s conftest.err; then
17579 ac_cpp_err=$ac_c_preproc_warn_flag
17586 if test -z "$ac_cpp_err"; then
17587 ac_cv_header_db_h=yes
17589 echo "$as_me: failed program was:" >&5
17590 cat conftest.$ac_ext >&5
17591 ac_cv_header_db_h=no
17593 rm -f conftest.err conftest.$ac_ext
17595 echo "$as_me:17595: result: $ac_cv_header_db_h" >&5
17596 echo "${ECHO_T}$ac_cv_header_db_h" >&6
17597 if test $ac_cv_header_db_h = yes; then
17599 echo "$as_me:17599: checking for version of db" >&5
17600 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
17601 if test "${cf_cv_hashed_db_version+set}" = set; then
17602 echo $ECHO_N "(cached) $ECHO_C" >&6
17605 cf_cv_hashed_db_version=unknown
17607 for cf_db_version in 1 2 3 4 5
17610 echo "${as_me:-configure}:17610: testing checking for db version $cf_db_version ..." 1>&5
17612 cat >conftest.$ac_ext <<_ACEOF
17613 #line 17613 "configure"
17614 #include "confdefs.h"
17616 $ac_includes_default
17619 #ifdef DB_VERSION_MAJOR
17620 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
17621 #if $cf_db_version == DB_VERSION_MAJOR
17627 #if $cf_db_version == 1
17628 /* ok: assuming this is DB 1.8.5 */
17642 rm -f conftest.$ac_objext
17643 if { (eval echo "$as_me:17643: \"$ac_compile\"") >&5
17644 (eval $ac_compile) 2>&5
17646 echo "$as_me:17646: \$? = $ac_status" >&5
17647 (exit $ac_status); } &&
17648 { ac_try='test -s conftest.$ac_objext'
17649 { (eval echo "$as_me:17649: \"$ac_try\"") >&5
17650 (eval $ac_try) 2>&5
17652 echo "$as_me:17652: \$? = $ac_status" >&5
17653 (exit $ac_status); }; }; then
17655 cf_cv_hashed_db_version=$cf_db_version
17659 echo "$as_me: failed program was:" >&5
17660 cat conftest.$ac_ext >&5
17662 rm -f conftest.$ac_objext conftest.$ac_ext
17666 echo "$as_me:17666: result: $cf_cv_hashed_db_version" >&5
17667 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
17669 if test "$cf_cv_hashed_db_version" = unknown ; then
17670 { { echo "$as_me:17670: error: Cannot determine version of db" >&5
17671 echo "$as_me: error: Cannot determine version of db" >&2;}
17672 { (exit 1); exit 1; }; }
17675 echo "$as_me:17675: checking for db libraries" >&5
17676 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
17677 if test "${cf_cv_hashed_db_libs+set}" = set; then
17678 echo $ECHO_N "(cached) $ECHO_C" >&6
17681 cf_cv_hashed_db_libs=unknown
17682 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
17684 cf_save_libs="$LIBS"
17685 if test -n "$cf_db_libs"; then
17686 LIBS="-l$cf_db_libs $LIBS"
17689 echo "${as_me:-configure}:17689: testing checking for library "$cf_db_libs" ..." 1>&5
17691 cat >conftest.$ac_ext <<_ACEOF
17692 #line 17692 "configure"
17693 #include "confdefs.h"
17695 $ac_includes_default
17702 char *path = "/tmp/foo";
17703 #ifdef DB_VERSION_MAJOR
17704 #if DB_VERSION_MAJOR >= 4
17706 db_create(&result, NULL, 0);
17707 result->open(result,
17714 #elif DB_VERSION_MAJOR >= 3
17716 db_create(&result, NULL, 0);
17717 result->open(result,
17723 #elif DB_VERSION_MAJOR >= 2
17732 #endif /* DB_VERSION_MAJOR */
17734 DB *result = dbopen(path,
17740 ${cf_cv_main_return:-return}(result != 0)
17746 rm -f conftest.$ac_objext conftest$ac_exeext
17747 if { (eval echo "$as_me:17747: \"$ac_link\"") >&5
17748 (eval $ac_link) 2>&5
17750 echo "$as_me:17750: \$? = $ac_status" >&5
17751 (exit $ac_status); } &&
17752 { ac_try='test -s conftest$ac_exeext'
17753 { (eval echo "$as_me:17753: \"$ac_try\"") >&5
17754 (eval $ac_try) 2>&5
17756 echo "$as_me:17756: \$? = $ac_status" >&5
17757 (exit $ac_status); }; }; then
17759 if test -n "$cf_db_libs" ; then
17760 cf_cv_hashed_db_libs=$cf_db_libs
17762 cf_cv_hashed_db_libs=default
17764 LIBS="$cf_save_libs"
17768 echo "$as_me: failed program was:" >&5
17769 cat conftest.$ac_ext >&5
17771 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17772 LIBS="$cf_save_libs"
17776 echo "$as_me:17776: result: $cf_cv_hashed_db_libs" >&5
17777 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
17779 if test "$cf_cv_hashed_db_libs" = unknown ; then
17780 { { echo "$as_me:17780: error: Cannot determine library for db" >&5
17781 echo "$as_me: error: Cannot determine library for db" >&2;}
17782 { (exit 1); exit 1; }; }
17783 elif test "$cf_cv_hashed_db_libs" != default ; then
17784 LIBS="-l$cf_cv_hashed_db_libs $LIBS"
17790 { { echo "$as_me:17790: error: Cannot find db.h" >&5
17791 echo "$as_me: error: Cannot find db.h" >&2;}
17792 { (exit 1); exit 1; }; }
17798 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
17799 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
17800 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
17803 # Just in case, check if the C compiler has a bool type.
17805 echo "$as_me:17805: checking if we should include stdbool.h" >&5
17806 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
17808 if test "${cf_cv_header_stdbool_h+set}" = set; then
17809 echo $ECHO_N "(cached) $ECHO_C" >&6
17812 cat >conftest.$ac_ext <<_ACEOF
17813 #line 17813 "configure"
17814 #include "confdefs.h"
17824 rm -f conftest.$ac_objext
17825 if { (eval echo "$as_me:17825: \"$ac_compile\"") >&5
17826 (eval $ac_compile) 2>&5
17828 echo "$as_me:17828: \$? = $ac_status" >&5
17829 (exit $ac_status); } &&
17830 { ac_try='test -s conftest.$ac_objext'
17831 { (eval echo "$as_me:17831: \"$ac_try\"") >&5
17832 (eval $ac_try) 2>&5
17834 echo "$as_me:17834: \$? = $ac_status" >&5
17835 (exit $ac_status); }; }; then
17836 cf_cv_header_stdbool_h=0
17838 echo "$as_me: failed program was:" >&5
17839 cat conftest.$ac_ext >&5
17840 cat >conftest.$ac_ext <<_ACEOF
17841 #line 17841 "configure"
17842 #include "confdefs.h"
17845 #include <stdbool.h>
17856 rm -f conftest.$ac_objext
17857 if { (eval echo "$as_me:17857: \"$ac_compile\"") >&5
17858 (eval $ac_compile) 2>&5
17860 echo "$as_me:17860: \$? = $ac_status" >&5
17861 (exit $ac_status); } &&
17862 { ac_try='test -s conftest.$ac_objext'
17863 { (eval echo "$as_me:17863: \"$ac_try\"") >&5
17864 (eval $ac_try) 2>&5
17866 echo "$as_me:17866: \$? = $ac_status" >&5
17867 (exit $ac_status); }; }; then
17868 cf_cv_header_stdbool_h=1
17870 echo "$as_me: failed program was:" >&5
17871 cat conftest.$ac_ext >&5
17872 cf_cv_header_stdbool_h=0
17874 rm -f conftest.$ac_objext conftest.$ac_ext
17876 rm -f conftest.$ac_objext conftest.$ac_ext
17879 if test "$cf_cv_header_stdbool_h" = 1
17880 then echo "$as_me:17880: result: yes" >&5
17881 echo "${ECHO_T}yes" >&6
17882 else echo "$as_me:17882: result: no" >&5
17883 echo "${ECHO_T}no" >&6
17886 echo "$as_me:17886: checking for builtin bool type" >&5
17887 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
17889 if test "${cf_cv_cc_bool_type+set}" = set; then
17890 echo $ECHO_N "(cached) $ECHO_C" >&6
17893 cat >conftest.$ac_ext <<_ACEOF
17894 #line 17894 "configure"
17895 #include "confdefs.h"
17898 #include <sys/types.h>
17908 rm -f conftest.$ac_objext
17909 if { (eval echo "$as_me:17909: \"$ac_compile\"") >&5
17910 (eval $ac_compile) 2>&5
17912 echo "$as_me:17912: \$? = $ac_status" >&5
17913 (exit $ac_status); } &&
17914 { ac_try='test -s conftest.$ac_objext'
17915 { (eval echo "$as_me:17915: \"$ac_try\"") >&5
17916 (eval $ac_try) 2>&5
17918 echo "$as_me:17918: \$? = $ac_status" >&5
17919 (exit $ac_status); }; }; then
17920 cf_cv_cc_bool_type=1
17922 echo "$as_me: failed program was:" >&5
17923 cat conftest.$ac_ext >&5
17924 cf_cv_cc_bool_type=0
17926 rm -f conftest.$ac_objext conftest.$ac_ext
17930 if test "$cf_cv_cc_bool_type" = 1
17931 then echo "$as_me:17931: result: yes" >&5
17932 echo "${ECHO_T}yes" >&6
17933 else echo "$as_me:17933: result: no" >&5
17934 echo "${ECHO_T}no" >&6
17937 # Check for C++ compiler characteristics (and ensure that it's there!)
17938 if test -n "$CXX" ; then
17940 ac_cpp='$CXXCPP $CPPFLAGS'
17941 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17942 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17943 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17944 ac_main_return=return
17946 if test -n "$GXX" ; then
17947 case $cf_cv_system_name in #(vi
17949 cf_stdcpp_libname=stdcpp
17952 cf_stdcpp_libname=stdc++
17955 echo "$as_me:17955: checking for library $cf_stdcpp_libname" >&5
17956 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
17957 if test "${cf_cv_libstdcpp+set}" = set; then
17958 echo $ECHO_N "(cached) $ECHO_C" >&6
17962 LIBS="-l$cf_stdcpp_libname $LIBS"
17963 cat >conftest.$ac_ext <<_ACEOF
17964 #line 17964 "configure"
17965 #include "confdefs.h"
17967 #include <strstream.h>
17973 strstreambuf foo(buf, sizeof(buf))
17979 rm -f conftest.$ac_objext conftest$ac_exeext
17980 if { (eval echo "$as_me:17980: \"$ac_link\"") >&5
17981 (eval $ac_link) 2>&5
17983 echo "$as_me:17983: \$? = $ac_status" >&5
17984 (exit $ac_status); } &&
17985 { ac_try='test -s conftest$ac_exeext'
17986 { (eval echo "$as_me:17986: \"$ac_try\"") >&5
17987 (eval $ac_try) 2>&5
17989 echo "$as_me:17989: \$? = $ac_status" >&5
17990 (exit $ac_status); }; }; then
17991 cf_cv_libstdcpp=yes
17993 echo "$as_me: failed program was:" >&5
17994 cat conftest.$ac_ext >&5
17997 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18001 echo "$as_me:18001: result: $cf_cv_libstdcpp" >&5
18002 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
18003 test "$cf_cv_libstdcpp" = yes && CXXLIBS="-l$cf_stdcpp_libname $CXXLIBS"
18006 echo "$as_me:18006: checking whether $CXX understands -c and -o together" >&5
18007 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
18008 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
18009 echo $ECHO_N "(cached) $ECHO_C" >&6
18012 cat > conftest.$ac_ext <<CF_EOF
18016 ${cf_cv_main_return:-return}(0);
18019 # We do the test twice because some compilers refuse to overwrite an
18020 # existing .o file with -o, though they will create one.
18021 ac_try='$CXX -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
18022 if { (eval echo "$as_me:18022: \"$ac_try\"") >&5
18023 (eval $ac_try) 2>&5
18025 echo "$as_me:18025: \$? = $ac_status" >&5
18026 (exit $ac_status); } &&
18027 test -f conftest2.$ac_objext && { (eval echo "$as_me:18027: \"$ac_try\"") >&5
18028 (eval $ac_try) 2>&5
18030 echo "$as_me:18030: \$? = $ac_status" >&5
18031 (exit $ac_status); };
18033 eval cf_cv_prog_CXX_c_o=yes
18035 eval cf_cv_prog_CXX_c_o=no
18040 if test $cf_cv_prog_CXX_c_o = yes; then
18041 echo "$as_me:18041: result: yes" >&5
18042 echo "${ECHO_T}yes" >&6
18044 echo "$as_me:18044: result: no" >&5
18045 echo "${ECHO_T}no" >&6
18048 case $GXX_VERSION in
18054 cf_cxx_library=unknown
18055 case $cf_cv_system_name in #(vi
18063 if test "$GXX" = yes; then
18064 echo "$as_me:18064: checking for lib$cf_gpp_libname" >&5
18065 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
18067 LIBS="-l$cf_gpp_libname $LIBS"
18068 cat >conftest.$ac_ext <<_ACEOF
18069 #line 18069 "configure"
18070 #include "confdefs.h"
18072 #include <$cf_gpp_libname/builtin.h>
18077 two_arg_error_handler_t foo2 = lib_error_handler
18082 rm -f conftest.$ac_objext conftest$ac_exeext
18083 if { (eval echo "$as_me:18083: \"$ac_link\"") >&5
18084 (eval $ac_link) 2>&5
18086 echo "$as_me:18086: \$? = $ac_status" >&5
18087 (exit $ac_status); } &&
18088 { ac_try='test -s conftest$ac_exeext'
18089 { (eval echo "$as_me:18089: \"$ac_try\"") >&5
18090 (eval $ac_try) 2>&5
18092 echo "$as_me:18092: \$? = $ac_status" >&5
18093 (exit $ac_status); }; }; then
18095 CXXLIBS="-l$cf_gpp_libname $CXXLIBS"
18096 if test "$cf_gpp_libname" = cpp ; then
18097 cat >>confdefs.h <<\EOF
18098 #define HAVE_GPP_BUILTIN_H 1
18102 cat >>confdefs.h <<\EOF
18103 #define HAVE_GXX_BUILTIN_H 1
18108 echo "$as_me: failed program was:" >&5
18109 cat conftest.$ac_ext >&5
18110 cat >conftest.$ac_ext <<_ACEOF
18111 #line 18111 "configure"
18112 #include "confdefs.h"
18114 #include <builtin.h>
18119 two_arg_error_handler_t foo2 = lib_error_handler
18124 rm -f conftest.$ac_objext conftest$ac_exeext
18125 if { (eval echo "$as_me:18125: \"$ac_link\"") >&5
18126 (eval $ac_link) 2>&5
18128 echo "$as_me:18128: \$? = $ac_status" >&5
18129 (exit $ac_status); } &&
18130 { ac_try='test -s conftest$ac_exeext'
18131 { (eval echo "$as_me:18131: \"$ac_try\"") >&5
18132 (eval $ac_try) 2>&5
18134 echo "$as_me:18134: \$? = $ac_status" >&5
18135 (exit $ac_status); }; }; then
18137 CXXLIBS="-l$cf_gpp_libname $CXXLIBS"
18138 cat >>confdefs.h <<\EOF
18139 #define HAVE_BUILTIN_H 1
18143 echo "$as_me: failed program was:" >&5
18144 cat conftest.$ac_ext >&5
18147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18149 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18151 echo "$as_me:18151: result: $cf_cxx_library" >&5
18152 echo "${ECHO_T}$cf_cxx_library" >&6
18162 ac_cpp='$CXXCPP $CPPFLAGS'
18163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18166 ac_main_return=return
18167 echo "$as_me:18167: checking how to run the C++ preprocessor" >&5
18168 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
18169 if test -z "$CXXCPP"; then
18170 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18171 echo $ECHO_N "(cached) $ECHO_C" >&6
18173 # Double quotes because CXXCPP needs to be expanded
18174 for CXXCPP in "$CXX -E" "/lib/cpp"
18176 ac_preproc_ok=false
18177 for ac_cxx_preproc_warn_flag in '' yes
18179 # Use a header file that comes with gcc, so configuring glibc
18180 # with a fresh cross-compiler works.
18181 # On the NeXT, cc -E runs the code through the compiler's parser,
18182 # not just through cpp. "Syntax error" is here to catch this case.
18183 cat >conftest.$ac_ext <<_ACEOF
18184 #line 18184 "configure"
18185 #include "confdefs.h"
18186 #include <assert.h>
18189 if { (eval echo "$as_me:18189: \"$ac_cpp conftest.$ac_ext\"") >&5
18190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18192 egrep -v '^ *\+' conftest.er1 >conftest.err
18194 cat conftest.err >&5
18195 echo "$as_me:18195: \$? = $ac_status" >&5
18196 (exit $ac_status); } >/dev/null; then
18197 if test -s conftest.err; then
18198 ac_cpp_err=$ac_cxx_preproc_warn_flag
18205 if test -z "$ac_cpp_err"; then
18208 echo "$as_me: failed program was:" >&5
18209 cat conftest.$ac_ext >&5
18210 # Broken: fails on valid input.
18213 rm -f conftest.err conftest.$ac_ext
18215 # OK, works on sane cases. Now check whether non-existent headers
18216 # can be detected and how.
18217 cat >conftest.$ac_ext <<_ACEOF
18218 #line 18218 "configure"
18219 #include "confdefs.h"
18220 #include <ac_nonexistent.h>
18222 if { (eval echo "$as_me:18222: \"$ac_cpp conftest.$ac_ext\"") >&5
18223 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18225 egrep -v '^ *\+' conftest.er1 >conftest.err
18227 cat conftest.err >&5
18228 echo "$as_me:18228: \$? = $ac_status" >&5
18229 (exit $ac_status); } >/dev/null; then
18230 if test -s conftest.err; then
18231 ac_cpp_err=$ac_cxx_preproc_warn_flag
18238 if test -z "$ac_cpp_err"; then
18239 # Broken: success on invalid input.
18242 echo "$as_me: failed program was:" >&5
18243 cat conftest.$ac_ext >&5
18244 # Passes both tests.
18248 rm -f conftest.err conftest.$ac_ext
18251 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18252 rm -f conftest.err conftest.$ac_ext
18253 if $ac_preproc_ok; then
18258 ac_cv_prog_CXXCPP=$CXXCPP
18261 CXXCPP=$ac_cv_prog_CXXCPP
18263 ac_cv_prog_CXXCPP=$CXXCPP
18265 echo "$as_me:18265: result: $CXXCPP" >&5
18266 echo "${ECHO_T}$CXXCPP" >&6
18267 ac_preproc_ok=false
18268 for ac_cxx_preproc_warn_flag in '' yes
18270 # Use a header file that comes with gcc, so configuring glibc
18271 # with a fresh cross-compiler works.
18272 # On the NeXT, cc -E runs the code through the compiler's parser,
18273 # not just through cpp. "Syntax error" is here to catch this case.
18274 cat >conftest.$ac_ext <<_ACEOF
18275 #line 18275 "configure"
18276 #include "confdefs.h"
18277 #include <assert.h>
18280 if { (eval echo "$as_me:18280: \"$ac_cpp conftest.$ac_ext\"") >&5
18281 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18283 egrep -v '^ *\+' conftest.er1 >conftest.err
18285 cat conftest.err >&5
18286 echo "$as_me:18286: \$? = $ac_status" >&5
18287 (exit $ac_status); } >/dev/null; then
18288 if test -s conftest.err; then
18289 ac_cpp_err=$ac_cxx_preproc_warn_flag
18296 if test -z "$ac_cpp_err"; then
18299 echo "$as_me: failed program was:" >&5
18300 cat conftest.$ac_ext >&5
18301 # Broken: fails on valid input.
18304 rm -f conftest.err conftest.$ac_ext
18306 # OK, works on sane cases. Now check whether non-existent headers
18307 # can be detected and how.
18308 cat >conftest.$ac_ext <<_ACEOF
18309 #line 18309 "configure"
18310 #include "confdefs.h"
18311 #include <ac_nonexistent.h>
18313 if { (eval echo "$as_me:18313: \"$ac_cpp conftest.$ac_ext\"") >&5
18314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18316 egrep -v '^ *\+' conftest.er1 >conftest.err
18318 cat conftest.err >&5
18319 echo "$as_me:18319: \$? = $ac_status" >&5
18320 (exit $ac_status); } >/dev/null; then
18321 if test -s conftest.err; then
18322 ac_cpp_err=$ac_cxx_preproc_warn_flag
18329 if test -z "$ac_cpp_err"; then
18330 # Broken: success on invalid input.
18333 echo "$as_me: failed program was:" >&5
18334 cat conftest.$ac_ext >&5
18335 # Passes both tests.
18339 rm -f conftest.err conftest.$ac_ext
18342 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18343 rm -f conftest.err conftest.$ac_ext
18344 if $ac_preproc_ok; then
18347 { { echo "$as_me:18347: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
18348 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
18349 { (exit 1); exit 1; }; }
18353 ac_cpp='$CXXCPP $CPPFLAGS'
18354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18355 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18357 ac_main_return=return
18359 for ac_header in typeinfo
18361 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18362 echo "$as_me:18362: checking for $ac_header" >&5
18363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18365 echo $ECHO_N "(cached) $ECHO_C" >&6
18367 cat >conftest.$ac_ext <<_ACEOF
18368 #line 18368 "configure"
18369 #include "confdefs.h"
18370 #include <$ac_header>
18372 if { (eval echo "$as_me:18372: \"$ac_cpp conftest.$ac_ext\"") >&5
18373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18375 egrep -v '^ *\+' conftest.er1 >conftest.err
18377 cat conftest.err >&5
18378 echo "$as_me:18378: \$? = $ac_status" >&5
18379 (exit $ac_status); } >/dev/null; then
18380 if test -s conftest.err; then
18381 ac_cpp_err=$ac_cxx_preproc_warn_flag
18388 if test -z "$ac_cpp_err"; then
18389 eval "$as_ac_Header=yes"
18391 echo "$as_me: failed program was:" >&5
18392 cat conftest.$ac_ext >&5
18393 eval "$as_ac_Header=no"
18395 rm -f conftest.err conftest.$ac_ext
18397 echo "$as_me:18397: result: `eval echo '${'$as_ac_Header'}'`" >&5
18398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18400 cat >>confdefs.h <<EOF
18401 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18407 for ac_header in iostream
18409 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18410 echo "$as_me:18410: checking for $ac_header" >&5
18411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18413 echo $ECHO_N "(cached) $ECHO_C" >&6
18415 cat >conftest.$ac_ext <<_ACEOF
18416 #line 18416 "configure"
18417 #include "confdefs.h"
18418 #include <$ac_header>
18420 if { (eval echo "$as_me:18420: \"$ac_cpp conftest.$ac_ext\"") >&5
18421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18423 egrep -v '^ *\+' conftest.er1 >conftest.err
18425 cat conftest.err >&5
18426 echo "$as_me:18426: \$? = $ac_status" >&5
18427 (exit $ac_status); } >/dev/null; then
18428 if test -s conftest.err; then
18429 ac_cpp_err=$ac_cxx_preproc_warn_flag
18436 if test -z "$ac_cpp_err"; then
18437 eval "$as_ac_Header=yes"
18439 echo "$as_me: failed program was:" >&5
18440 cat conftest.$ac_ext >&5
18441 eval "$as_ac_Header=no"
18443 rm -f conftest.err conftest.$ac_ext
18445 echo "$as_me:18445: result: `eval echo '${'$as_ac_Header'}'`" >&5
18446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18448 cat >>confdefs.h <<EOF
18449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18455 if test x"$ac_cv_header_iostream" = xyes ; then
18456 echo "$as_me:18456: checking if iostream uses std-namespace" >&5
18457 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
18458 cat >conftest.$ac_ext <<_ACEOF
18459 #line 18459 "configure"
18460 #include "confdefs.h"
18462 #include <iostream>
18469 cerr << "testing" << endl;
18475 rm -f conftest.$ac_objext
18476 if { (eval echo "$as_me:18476: \"$ac_compile\"") >&5
18477 (eval $ac_compile) 2>&5
18479 echo "$as_me:18479: \$? = $ac_status" >&5
18480 (exit $ac_status); } &&
18481 { ac_try='test -s conftest.$ac_objext'
18482 { (eval echo "$as_me:18482: \"$ac_try\"") >&5
18483 (eval $ac_try) 2>&5
18485 echo "$as_me:18485: \$? = $ac_status" >&5
18486 (exit $ac_status); }; }; then
18487 cf_iostream_namespace=yes
18489 echo "$as_me: failed program was:" >&5
18490 cat conftest.$ac_ext >&5
18491 cf_iostream_namespace=no
18493 rm -f conftest.$ac_objext conftest.$ac_ext
18494 echo "$as_me:18494: result: $cf_iostream_namespace" >&5
18495 echo "${ECHO_T}$cf_iostream_namespace" >&6
18496 if test "$cf_iostream_namespace" = yes ; then
18497 cat >>confdefs.h <<\EOF
18498 #define IOSTREAM_NAMESPACE 1
18504 echo "$as_me:18504: checking if we should include stdbool.h" >&5
18505 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
18507 if test "${cf_cv_header_stdbool_h+set}" = set; then
18508 echo $ECHO_N "(cached) $ECHO_C" >&6
18511 cat >conftest.$ac_ext <<_ACEOF
18512 #line 18512 "configure"
18513 #include "confdefs.h"
18523 rm -f conftest.$ac_objext
18524 if { (eval echo "$as_me:18524: \"$ac_compile\"") >&5
18525 (eval $ac_compile) 2>&5
18527 echo "$as_me:18527: \$? = $ac_status" >&5
18528 (exit $ac_status); } &&
18529 { ac_try='test -s conftest.$ac_objext'
18530 { (eval echo "$as_me:18530: \"$ac_try\"") >&5
18531 (eval $ac_try) 2>&5
18533 echo "$as_me:18533: \$? = $ac_status" >&5
18534 (exit $ac_status); }; }; then
18535 cf_cv_header_stdbool_h=0
18537 echo "$as_me: failed program was:" >&5
18538 cat conftest.$ac_ext >&5
18539 cat >conftest.$ac_ext <<_ACEOF
18540 #line 18540 "configure"
18541 #include "confdefs.h"
18544 #include <stdbool.h>
18555 rm -f conftest.$ac_objext
18556 if { (eval echo "$as_me:18556: \"$ac_compile\"") >&5
18557 (eval $ac_compile) 2>&5
18559 echo "$as_me:18559: \$? = $ac_status" >&5
18560 (exit $ac_status); } &&
18561 { ac_try='test -s conftest.$ac_objext'
18562 { (eval echo "$as_me:18562: \"$ac_try\"") >&5
18563 (eval $ac_try) 2>&5
18565 echo "$as_me:18565: \$? = $ac_status" >&5
18566 (exit $ac_status); }; }; then
18567 cf_cv_header_stdbool_h=1
18569 echo "$as_me: failed program was:" >&5
18570 cat conftest.$ac_ext >&5
18571 cf_cv_header_stdbool_h=0
18573 rm -f conftest.$ac_objext conftest.$ac_ext
18575 rm -f conftest.$ac_objext conftest.$ac_ext
18578 if test "$cf_cv_header_stdbool_h" = 1
18579 then echo "$as_me:18579: result: yes" >&5
18580 echo "${ECHO_T}yes" >&6
18581 else echo "$as_me:18581: result: no" >&5
18582 echo "${ECHO_T}no" >&6
18585 echo "$as_me:18585: checking for builtin bool type" >&5
18586 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
18588 if test "${cf_cv_builtin_bool+set}" = set; then
18589 echo $ECHO_N "(cached) $ECHO_C" >&6
18592 cat >conftest.$ac_ext <<_ACEOF
18593 #line 18593 "configure"
18594 #include "confdefs.h"
18597 #include <sys/types.h>
18607 rm -f conftest.$ac_objext
18608 if { (eval echo "$as_me:18608: \"$ac_compile\"") >&5
18609 (eval $ac_compile) 2>&5
18611 echo "$as_me:18611: \$? = $ac_status" >&5
18612 (exit $ac_status); } &&
18613 { ac_try='test -s conftest.$ac_objext'
18614 { (eval echo "$as_me:18614: \"$ac_try\"") >&5
18615 (eval $ac_try) 2>&5
18617 echo "$as_me:18617: \$? = $ac_status" >&5
18618 (exit $ac_status); }; }; then
18619 cf_cv_builtin_bool=1
18621 echo "$as_me: failed program was:" >&5
18622 cat conftest.$ac_ext >&5
18623 cf_cv_builtin_bool=0
18625 rm -f conftest.$ac_objext conftest.$ac_ext
18629 if test "$cf_cv_builtin_bool" = 1
18630 then echo "$as_me:18630: result: yes" >&5
18631 echo "${ECHO_T}yes" >&6
18632 else echo "$as_me:18632: result: no" >&5
18633 echo "${ECHO_T}no" >&6
18636 echo "$as_me:18636: checking for size of bool" >&5
18637 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
18638 if test "${cf_cv_type_of_bool+set}" = set; then
18639 echo $ECHO_N "(cached) $ECHO_C" >&6
18643 if test "$cross_compiling" = yes; then
18644 cf_cv_type_of_bool=unknown
18646 cat >conftest.$ac_ext <<_ACEOF
18647 #line 18647 "configure"
18648 #include "confdefs.h"
18650 #include <stdlib.h>
18653 #if defined(__cplusplus)
18655 #ifdef HAVE_GXX_BUILTIN_H
18656 #include <g++/builtin.h>
18657 #elif HAVE_GPP_BUILTIN_H
18658 #include <gpp/builtin.h>
18659 #elif HAVE_BUILTIN_H
18660 #include <builtin.h>
18665 #if $cf_cv_header_stdbool_h
18666 #include <stdbool.h>
18673 FILE *fp = fopen("cf_test.out", "w");
18676 if ((bool)(-x) >= 0)
18677 fputs("unsigned ", fp);
18678 if (sizeof(x) == sizeof(int)) fputs("int", fp);
18679 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
18680 else if (sizeof(x) == sizeof(short))fputs("short",fp);
18681 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
18684 ${cf_cv_main_return:-return}(0);
18688 rm -f conftest$ac_exeext
18689 if { (eval echo "$as_me:18689: \"$ac_link\"") >&5
18690 (eval $ac_link) 2>&5
18692 echo "$as_me:18692: \$? = $ac_status" >&5
18693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18694 { (eval echo "$as_me:18694: \"$ac_try\"") >&5
18695 (eval $ac_try) 2>&5
18697 echo "$as_me:18697: \$? = $ac_status" >&5
18698 (exit $ac_status); }; }; then
18699 cf_cv_type_of_bool=`cat cf_test.out`
18700 if test -z "$cf_cv_type_of_bool"; then
18701 cf_cv_type_of_bool=unknown
18704 echo "$as_me: program exited with status $ac_status" >&5
18705 echo "$as_me: failed program was:" >&5
18706 cat conftest.$ac_ext >&5
18707 cf_cv_type_of_bool=unknown
18709 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18715 echo "$as_me:18715: result: $cf_cv_type_of_bool" >&5
18716 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
18717 if test "$cf_cv_type_of_bool" = unknown ; then
18718 case .$NCURSES_BOOL in #(vi
18719 .auto|.) NCURSES_BOOL=unsigned;;
18721 { echo "$as_me:18721: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
18722 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
18723 cf_cv_type_of_bool=$NCURSES_BOOL
18726 echo "$as_me:18726: checking for special defines needed for etip.h" >&5
18727 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
18728 cf_save_CXXFLAGS="$CXXFLAGS"
18731 # etip.h includes ncurses.h which includes ncurses_dll.h
18732 # But ncurses_dll.h is generated - fix here.
18733 test -d include || mkdir include
18734 test -f include/ncurses_dll.h || sed -e 's/@NCURSES_WRAP_PREFIX@/'$NCURSES_WRAP_PREFIX'/g' ${srcdir}/include/ncurses_dll.h.in >include/ncurses_dll.h
18736 for cf_math in "" MATH_H
18738 for cf_excp in "" MATH_EXCEPTION
18740 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -Iinclude -I${srcdir}/include"
18741 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
18742 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
18743 cat >conftest.$ac_ext <<_ACEOF
18744 #line 18744 "configure"
18745 #include "confdefs.h"
18747 #include <etip.h.in>
18757 rm -f conftest.$ac_objext
18758 if { (eval echo "$as_me:18758: \"$ac_compile\"") >&5
18759 (eval $ac_compile) 2>&5
18761 echo "$as_me:18761: \$? = $ac_status" >&5
18762 (exit $ac_status); } &&
18763 { ac_try='test -s conftest.$ac_objext'
18764 { (eval echo "$as_me:18764: \"$ac_try\"") >&5
18765 (eval $ac_try) 2>&5
18767 echo "$as_me:18767: \$? = $ac_status" >&5
18768 (exit $ac_status); }; }; then
18770 test -n "$cf_math" && cat >>confdefs.h <<EOF
18771 #define ETIP_NEEDS_${cf_math} 1
18774 test -n "$cf_excp" && cat >>confdefs.h <<EOF
18775 #define ETIP_NEEDS_${cf_excp} 1
18778 cf_result="$cf_math $cf_excp"
18782 echo "$as_me: failed program was:" >&5
18783 cat conftest.$ac_ext >&5
18785 rm -f conftest.$ac_objext conftest.$ac_ext
18788 echo "$as_me:18788: result: $cf_result" >&5
18789 echo "${ECHO_T}$cf_result" >&6
18790 CXXFLAGS="$cf_save_CXXFLAGS"
18792 if test -n "$CXX"; then
18793 echo "$as_me:18793: checking if $CXX accepts parameter initialization" >&5
18794 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
18795 if test "${cf_cv_cpp_param_init+set}" = set; then
18796 echo $ECHO_N "(cached) $ECHO_C" >&6
18800 ac_cpp='$CXXCPP $CPPFLAGS'
18801 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18802 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18803 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18804 ac_main_return=return
18806 if test "$cross_compiling" = yes; then
18807 cf_cv_cpp_param_init=unknown
18809 cat >conftest.$ac_ext <<_ACEOF
18810 #line 18810 "configure"
18811 #include "confdefs.h"
18821 TEST::TEST(int x = 1) // some compilers do not like second initializer
18828 rm -f conftest$ac_exeext
18829 if { (eval echo "$as_me:18829: \"$ac_link\"") >&5
18830 (eval $ac_link) 2>&5
18832 echo "$as_me:18832: \$? = $ac_status" >&5
18833 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18834 { (eval echo "$as_me:18834: \"$ac_try\"") >&5
18835 (eval $ac_try) 2>&5
18837 echo "$as_me:18837: \$? = $ac_status" >&5
18838 (exit $ac_status); }; }; then
18839 cf_cv_cpp_param_init=yes
18841 echo "$as_me: program exited with status $ac_status" >&5
18842 echo "$as_me: failed program was:" >&5
18843 cat conftest.$ac_ext >&5
18844 cf_cv_cpp_param_init=no
18846 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18849 ac_cpp='$CXXCPP $CPPFLAGS'
18850 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18851 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18852 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18853 ac_main_return=return
18856 echo "$as_me:18856: result: $cf_cv_cpp_param_init" >&5
18857 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
18859 test "$cf_cv_cpp_param_init" = yes && cat >>confdefs.h <<\EOF
18860 #define CPP_HAS_PARAM_INIT 1
18863 if test -n "$CXX"; then
18865 echo "$as_me:18865: checking if $CXX accepts static_cast" >&5
18866 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
18867 if test "${cf_cv_cpp_static_cast+set}" = set; then
18868 echo $ECHO_N "(cached) $ECHO_C" >&6
18872 ac_cpp='$CXXCPP $CPPFLAGS'
18873 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18874 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18875 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18876 ac_main_return=return
18878 cat >conftest.$ac_ext <<_ACEOF
18879 #line 18879 "configure"
18880 #include "confdefs.h"
18885 NCursesPanel(int nlines,
18895 template<class T> class NCursesUserPanel : public NCursesPanel
18898 NCursesUserPanel (int nlines,
18902 const T* p_UserData = static_cast<T*>(0))
18903 : NCursesPanel (nlines, ncols, begin_y, begin_x)
18906 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
18910 virtual ~NCursesUserPanel() {};
18917 const char* p_UserData = static_cast<char*>(0)
18922 rm -f conftest.$ac_objext
18923 if { (eval echo "$as_me:18923: \"$ac_compile\"") >&5
18924 (eval $ac_compile) 2>&5
18926 echo "$as_me:18926: \$? = $ac_status" >&5
18927 (exit $ac_status); } &&
18928 { ac_try='test -s conftest.$ac_objext'
18929 { (eval echo "$as_me:18929: \"$ac_try\"") >&5
18930 (eval $ac_try) 2>&5
18932 echo "$as_me:18932: \$? = $ac_status" >&5
18933 (exit $ac_status); }; }; then
18934 cf_cv_cpp_static_cast=yes
18936 echo "$as_me: failed program was:" >&5
18937 cat conftest.$ac_ext >&5
18938 cf_cv_cpp_static_cast=no
18940 rm -f conftest.$ac_objext conftest.$ac_ext
18943 ac_cpp='$CXXCPP $CPPFLAGS'
18944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18947 ac_main_return=return
18950 echo "$as_me:18950: result: $cf_cv_cpp_static_cast" >&5
18951 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
18955 test "$cf_cv_cpp_static_cast" = yes && cat >>confdefs.h <<\EOF
18956 #define CPP_HAS_STATIC_CAST 1
18960 CXX_ARFLAGS='$(ARFLAGS)'
18961 case $cf_cv_system_name in #(vi
18963 if test "$GXX" != yes ; then
18965 CXX_ARFLAGS='-ar -o'
18969 CXXLDFLAGS="-u main"
18972 if test "$GXX" != yes ; then
18974 CXX_ARFLAGS='-xar -o'
18981 cf_cv_builtin_bool=1
18983 # Just because we are not configuring against C++ right now does not
18984 # mean that a user will not want to use C++. Some distributors disable
18985 # the C++ portion of this configuration as a shortcut (or just to avoid
18986 # compiling the demo in the c++ directory). So we need a reasonable
18987 # default for the 'bool' type.
18989 # Caveat: since the storage of the bool type is not standardized, it
18992 if test "$NCURSES_BOOL" != auto ; then
18993 cf_cv_type_of_bool=$NCURSES_BOOL
18994 cf_cv_header_stdbool_h=0
18996 if test "$cf_cv_header_stdbool_h" = 1 ; then
18998 echo "$as_me:18998: checking for size of bool" >&5
18999 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
19000 if test "${cf_cv_type_of_bool+set}" = set; then
19001 echo $ECHO_N "(cached) $ECHO_C" >&6
19005 if test "$cross_compiling" = yes; then
19006 cf_cv_type_of_bool=unknown
19008 cat >conftest.$ac_ext <<_ACEOF
19009 #line 19009 "configure"
19010 #include "confdefs.h"
19012 #include <stdlib.h>
19015 #if defined(__cplusplus)
19017 #ifdef HAVE_GXX_BUILTIN_H
19018 #include <g++/builtin.h>
19019 #elif HAVE_GPP_BUILTIN_H
19020 #include <gpp/builtin.h>
19021 #elif HAVE_BUILTIN_H
19022 #include <builtin.h>
19027 #if $cf_cv_header_stdbool_h
19028 #include <stdbool.h>
19035 FILE *fp = fopen("cf_test.out", "w");
19038 if ((bool)(-x) >= 0)
19039 fputs("unsigned ", fp);
19040 if (sizeof(x) == sizeof(int)) fputs("int", fp);
19041 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
19042 else if (sizeof(x) == sizeof(short))fputs("short",fp);
19043 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
19046 ${cf_cv_main_return:-return}(0);
19050 rm -f conftest$ac_exeext
19051 if { (eval echo "$as_me:19051: \"$ac_link\"") >&5
19052 (eval $ac_link) 2>&5
19054 echo "$as_me:19054: \$? = $ac_status" >&5
19055 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19056 { (eval echo "$as_me:19056: \"$ac_try\"") >&5
19057 (eval $ac_try) 2>&5
19059 echo "$as_me:19059: \$? = $ac_status" >&5
19060 (exit $ac_status); }; }; then
19061 cf_cv_type_of_bool=`cat cf_test.out`
19062 if test -z "$cf_cv_type_of_bool"; then
19063 cf_cv_type_of_bool=unknown
19066 echo "$as_me: program exited with status $ac_status" >&5
19067 echo "$as_me: failed program was:" >&5
19068 cat conftest.$ac_ext >&5
19069 cf_cv_type_of_bool=unknown
19071 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19077 echo "$as_me:19077: result: $cf_cv_type_of_bool" >&5
19078 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
19079 if test "$cf_cv_type_of_bool" = unknown ; then
19080 case .$NCURSES_BOOL in #(vi
19081 .auto|.) NCURSES_BOOL=unsigned;;
19083 { echo "$as_me:19083: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
19084 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
19085 cf_cv_type_of_bool=$NCURSES_BOOL
19089 echo "$as_me:19089: checking for fallback type of bool" >&5
19090 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
19091 case "$host_cpu" in #(vi
19092 i?86) cf_cv_type_of_bool=char ;; #(vi
19093 *) cf_cv_type_of_bool=int ;;
19095 echo "$as_me:19095: result: $cf_cv_type_of_bool" >&5
19096 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
19101 # If the C compiler did not declare bool, and we did not determine that the C++
19102 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
19103 # ncurses library use the same type as C++ bool. Note that this allows one to
19104 # specify the type of bool in a configure-script option and postpone
19105 # integration with the C++ compiler provided that the types are compatible.
19107 if test $cf_cv_cc_bool_type = 1
19109 # oops: C has a bool. Unlikely, but C++ could differ.
19111 elif test $cf_cv_builtin_bool = 0
19116 # this is the normal case
19117 USE_CXX_BOOL='defined(__cplusplus)'
19120 if test -f "${srcdir}/Ada95/Makefile.in" ; then
19122 if test "$cf_with_ada" != "no" ; then
19123 if test "$with_libtool" != "no"; then
19124 { echo "$as_me:19124: WARNING: libtool does not support Ada - disabling feature" >&5
19125 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
19130 if test "$cf_with_ada" != "no" ; then
19132 cf_ada_make=gnatmake
19133 # Extract the first word of "$cf_ada_make", so it can be a program name with args.
19134 set dummy $cf_ada_make; ac_word=$2
19135 echo "$as_me:19135: checking for $ac_word" >&5
19136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19137 if test "${ac_cv_prog_gnat_exists+set}" = set; then
19138 echo $ECHO_N "(cached) $ECHO_C" >&6
19140 if test -n "$gnat_exists"; then
19141 ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test.
19143 ac_save_IFS=$IFS; IFS=$ac_path_separator
19145 for ac_dir in $ac_dummy; do
19147 test -z "$ac_dir" && ac_dir=.
19148 $as_executable_p "$ac_dir/$ac_word" || continue
19149 ac_cv_prog_gnat_exists="yes"
19150 echo "$as_me:19150: found $ac_dir/$ac_word" >&5
19154 test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no"
19157 gnat_exists=$ac_cv_prog_gnat_exists
19158 if test -n "$gnat_exists"; then
19159 echo "$as_me:19159: result: $gnat_exists" >&5
19160 echo "${ECHO_T}$gnat_exists" >&6
19162 echo "$as_me:19162: result: no" >&5
19163 echo "${ECHO_T}no" >&6
19166 if test "$ac_cv_prog_gnat_exists" = no; then
19168 cf_cv_prog_gnat_correct=no
19171 echo "$as_me:19171: checking for gnat version" >&5
19172 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
19173 cf_gnat_version=`${cf_ada_make:-gnatmake} -v 2>&1 | \
19174 grep '[0-9].[0-9][0-9]*' |\
19175 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
19176 echo "$as_me:19176: result: $cf_gnat_version" >&5
19177 echo "${ECHO_T}$cf_gnat_version" >&6
19179 case $cf_gnat_version in #(vi
19180 3.1[1-9]*|3.[2-9]*|[4-9].*|20[0-9][0-9]) #(vi
19181 cf_cv_prog_gnat_correct=yes
19184 { echo "$as_me:19184: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
19185 echo "$as_me: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
19186 cf_cv_prog_gnat_correct=no
19190 # Extract the first word of "m4", so it can be a program name with args.
19191 set dummy m4; ac_word=$2
19192 echo "$as_me:19192: checking for $ac_word" >&5
19193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19194 if test "${ac_cv_prog_M4_exists+set}" = set; then
19195 echo $ECHO_N "(cached) $ECHO_C" >&6
19197 if test -n "$M4_exists"; then
19198 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
19200 ac_save_IFS=$IFS; IFS=$ac_path_separator
19202 for ac_dir in $ac_dummy; do
19204 test -z "$ac_dir" && ac_dir=.
19205 $as_executable_p "$ac_dir/$ac_word" || continue
19206 ac_cv_prog_M4_exists="yes"
19207 echo "$as_me:19207: found $ac_dir/$ac_word" >&5
19211 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
19214 M4_exists=$ac_cv_prog_M4_exists
19215 if test -n "$M4_exists"; then
19216 echo "$as_me:19216: result: $M4_exists" >&5
19217 echo "${ECHO_T}$M4_exists" >&6
19219 echo "$as_me:19219: result: no" >&5
19220 echo "${ECHO_T}no" >&6
19223 if test "$ac_cv_prog_M4_exists" = no; then
19224 cf_cv_prog_gnat_correct=no
19225 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
19227 if test "$cf_cv_prog_gnat_correct" = yes; then
19228 echo "$as_me:19228: checking if GNAT works" >&5
19229 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
19231 rm -rf conftest* *~conftest*
19232 cat >>conftest.ads <<CF_EOF
19233 procedure conftest;
19235 cat >>conftest.adb <<CF_EOF
19238 procedure conftest is
19240 Text_IO.Put ("Hello World");
19242 GNAT.OS_Lib.OS_Exit (0);
19245 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
19246 if ( ./conftest 1>&5 2>&1 ) ; then
19247 cf_cv_prog_gnat_correct=yes
19249 cf_cv_prog_gnat_correct=no
19252 cf_cv_prog_gnat_correct=no
19254 rm -rf conftest* *~conftest*
19256 echo "$as_me:19256: result: $cf_cv_prog_gnat_correct" >&5
19257 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
19261 if test "$cf_cv_prog_gnat_correct" = yes; then
19263 ADAFLAGS="$ADAFLAGS -gnatpn"
19265 # make ADAFLAGS consistent with CFLAGS
19269 ADAFLAGS="$ADAFLAGS -g"
19276 ADAFLAGS="$ADAFLAGS -O3"
19281 echo "$as_me:19281: checking if GNAT supports generics" >&5
19282 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
19283 case $cf_gnat_version in #(vi
19284 3.[1-9]*|[4-9].*) #(vi
19285 cf_gnat_generics=yes
19288 cf_gnat_generics=no
19291 echo "$as_me:19291: result: $cf_gnat_generics" >&5
19292 echo "${ECHO_T}$cf_gnat_generics" >&6
19294 if test "$cf_gnat_generics" = yes
19296 cf_compile_generics=generics
19297 cf_generic_objects="\${GENOBJS}"
19299 cf_compile_generics=
19300 cf_generic_objects=
19303 echo "$as_me:19303: checking if GNAT supports SIGINT" >&5
19304 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
19305 if test "${cf_cv_gnat_sigint+set}" = set; then
19306 echo $ECHO_N "(cached) $ECHO_C" >&6
19309 rm -rf conftest* *~conftest*
19310 cat >>conftest.ads <<CF_EOF
19311 with Ada.Interrupts.Names;
19313 package ConfTest is
19315 pragma Warnings (Off); -- the next pragma exists since 3.11p
19316 pragma Unreserve_All_Interrupts;
19317 pragma Warnings (On);
19319 protected Process is
19321 function Continue return Boolean;
19322 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
19324 Done : Boolean := False;
19329 cat >>conftest.adb <<CF_EOF
19330 package body ConfTest is
19331 protected body Process is
19336 function Continue return Boolean is
19343 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
19344 cf_cv_gnat_sigint=yes
19346 cf_cv_gnat_sigint=no
19348 rm -rf conftest* *~conftest*
19351 echo "$as_me:19351: result: $cf_cv_gnat_sigint" >&5
19352 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
19354 if test $cf_cv_gnat_sigint = yes ; then
19357 USE_GNAT_SIGINT="#"
19360 echo "$as_me:19360: checking if GNAT pragma Unreferenced works" >&5
19361 echo $ECHO_N "checking if GNAT pragma Unreferenced works... $ECHO_C" >&6
19362 if test "${cf_cv_pragma_unreferenced+set}" = set; then
19363 echo $ECHO_N "(cached) $ECHO_C" >&6
19366 rm -rf conftest* *~conftest*
19367 cat >>conftest.ads <<CF_EOF
19368 procedure conftest;
19370 cat >>conftest.adb <<CF_EOF
19373 procedure conftest is
19375 pragma Unreferenced (test);
19378 Text_IO.Put ("Hello World");
19380 GNAT.OS_Lib.OS_Exit (0);
19383 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
19384 cf_cv_pragma_unreferenced=yes
19386 cf_cv_pragma_unreferenced=no
19388 rm -rf conftest* *~conftest*
19391 echo "$as_me:19391: result: $cf_cv_pragma_unreferenced" >&5
19392 echo "${ECHO_T}$cf_cv_pragma_unreferenced" >&6
19394 # if the pragma is supported, use it (needed in the Trace code).
19395 if test $cf_cv_pragma_unreferenced = yes ; then
19401 cf_gnat_libraries=no
19402 cf_gnat_projects=no
19404 echo "$as_me:19404: checking if GNAT supports project files" >&5
19405 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
19406 case $cf_gnat_version in #(vi
19410 case $cf_cv_system_name in #(vi
19414 mkdir conftest.src conftest.bin conftest.lib
19416 rm -rf conftest* *~conftest*
19417 cat >>library.gpr <<CF_EOF
19419 Kind := External ("LIB_KIND");
19420 for Library_Name use "ConfTest";
19421 for Object_Dir use ".";
19422 for Library_ALI_Dir use External("LIBRARY_DIR");
19423 for Library_Version use External ("SONAME");
19424 for Library_Kind use Kind;
19425 for Library_Dir use External("BUILD_DIR");
19426 Source_Dir := External ("SOURCE_DIR");
19427 for Source_Dirs use (Source_Dir);
19428 package Compiler is
19429 for Default_Switches ("Ada") use
19433 "-gnatVa", -- All validity checks
19434 "-gnatwa"); -- Activate all optional errors
19438 cat >>confpackage.ads <<CF_EOF
19439 package ConfPackage is
19440 procedure conftest;
19443 cat >>confpackage.adb <<CF_EOF
19445 package body ConfPackage is
19446 procedure conftest is
19448 Text_IO.Put ("Hello World");
19453 if ( $cf_ada_make $ADAFLAGS \
19455 -XBUILD_DIR=`cd ../conftest.bin;pwd` \
19456 -XLIBRARY_DIR=`cd ../conftest.lib;pwd` \
19457 -XSOURCE_DIR=`pwd` \
19458 -XSONAME=libConfTest.so.1 \
19459 -XLIB_KIND=static 1>&5 2>&1 ) ; then
19460 cf_gnat_projects=yes
19463 if test -f conftest.lib/confpackage.ali
19465 cf_gnat_libraries=yes
19467 rm -rf conftest* *~conftest*
19472 echo "$as_me:19472: result: $cf_gnat_projects" >&5
19473 echo "${ECHO_T}$cf_gnat_projects" >&6
19475 if test $cf_gnat_projects = yes
19477 echo "$as_me:19477: checking if GNAT supports libraries" >&5
19478 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
19479 echo "$as_me:19479: result: $cf_gnat_libraries" >&5
19480 echo "${ECHO_T}$cf_gnat_libraries" >&6
19483 if test "$cf_gnat_projects" = yes
19485 USE_OLD_MAKERULES="#"
19486 USE_GNAT_PROJECTS=""
19488 USE_OLD_MAKERULES=""
19489 USE_GNAT_PROJECTS="#"
19492 if test "$cf_gnat_libraries" = yes
19494 USE_GNAT_LIBRARIES=""
19496 USE_GNAT_LIBRARIES="#"
19499 echo "$as_me:19499: checking for ada-compiler" >&5
19500 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
19502 # Check whether --with-ada-compiler or --without-ada-compiler was given.
19503 if test "${with_ada_compiler+set}" = set; then
19504 withval="$with_ada_compiler"
19505 cf_ada_compiler=$withval
19507 cf_ada_compiler=gnatmake
19510 echo "$as_me:19510: result: $cf_ada_compiler" >&5
19511 echo "${ECHO_T}$cf_ada_compiler" >&6
19513 cf_ada_package=terminal_interface
19515 echo "$as_me:19515: checking for ada-include" >&5
19516 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
19518 # Check whether --with-ada-include or --without-ada-include was given.
19519 if test "${with_ada_include+set}" = set; then
19520 withval="$with_ada_include"
19523 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
19524 fi; if test -n "$prefix/share/ada/adainclude" ; then
19526 if test "x$prefix" != xNONE; then
19527 cf_path_syntax="$prefix"
19529 cf_path_syntax="$ac_default_prefix"
19532 case ".$withval" in #(vi
19533 .\$\(*\)*|.\'*\'*) #(vi
19537 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
19539 .\${*prefix}*) #(vi
19540 eval withval="$withval"
19541 case ".$withval" in #(vi
19543 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
19548 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
19551 { { echo "$as_me:19551: error: expected a pathname, not \"$withval\"" >&5
19552 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
19553 { (exit 1); exit 1; }; }
19558 ADA_INCLUDE="$withval"
19560 echo "$as_me:19560: result: $ADA_INCLUDE" >&5
19561 echo "${ECHO_T}$ADA_INCLUDE" >&6
19563 echo "$as_me:19563: checking for ada-objects" >&5
19564 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
19566 # Check whether --with-ada-objects or --without-ada-objects was given.
19567 if test "${with_ada_objects+set}" = set; then
19568 withval="$with_ada_objects"
19571 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
19572 fi; if test -n "$prefix/lib/ada/adalib" ; then
19574 if test "x$prefix" != xNONE; then
19575 cf_path_syntax="$prefix"
19577 cf_path_syntax="$ac_default_prefix"
19580 case ".$withval" in #(vi
19581 .\$\(*\)*|.\'*\'*) #(vi
19585 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
19587 .\${*prefix}*) #(vi
19588 eval withval="$withval"
19589 case ".$withval" in #(vi
19591 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
19596 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
19599 { { echo "$as_me:19599: error: expected a pathname, not \"$withval\"" >&5
19600 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
19601 { (exit 1); exit 1; }; }
19606 ADA_OBJECTS="$withval"
19608 echo "$as_me:19608: result: $ADA_OBJECTS" >&5
19609 echo "${ECHO_T}$ADA_OBJECTS" >&6
19611 echo "$as_me:19611: checking if an Ada95 shared-library should be built" >&5
19612 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
19614 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
19615 if test "${with_ada_sharedlib+set}" = set; then
19616 withval="$with_ada_sharedlib"
19617 with_ada_sharedlib=$withval
19619 with_ada_sharedlib=no
19621 echo "$as_me:19621: result: $with_ada_sharedlib" >&5
19622 echo "${ECHO_T}$with_ada_sharedlib" >&6
19624 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
19625 MAKE_ADA_SHAREDLIB="#"
19627 if test "x$with_ada_sharedlib" != xno
19629 MAKE_ADA_SHAREDLIB=
19630 if test "x$with_ada_sharedlib" != xyes
19632 ADA_SHAREDLIB="$with_ada_sharedlib"
19642 ### Construct the ncurses library-subsets, if any, from this set of keywords:
19643 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
19645 ### ticlib modules may be a separate library, otherwise contained in termlib.
19646 ### termlib modules may be a separate library, otherwise contained in ncurses.
19648 ### The of "+" or " " between the tokens controls the way the script
19649 ### chooses to split module lists into libraries.
19651 ### (see CF_LIB_RULES).
19652 echo "$as_me:19652: checking for library subsets" >&5
19653 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
19656 if test "$cf_with_progs" = yes || test "$with_ticlib" != no || test "$with_termcap" != no; then
19657 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
19658 if test "$with_ticlib" != no ; then
19659 LIB_SUBSETS="${LIB_SUBSETS} "
19661 LIB_SUBSETS="${LIB_SUBSETS}+"
19665 LIB_SUBSETS="${LIB_SUBSETS}termlib"
19666 test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
19668 if test "$with_termlib" != no ; then
19669 LIB_SUBSETS="${LIB_SUBSETS} "
19671 LIB_SUBSETS="${LIB_SUBSETS}+"
19674 LIB_SUBSETS="${LIB_SUBSETS}base"
19676 # Most term-driver calls are to tinfo, but some like init_pair are to the
19677 # base library (so it resides in base).
19678 if test "$with_term_driver" != no ; then
19679 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
19680 case $cf_cv_system_name in #(vi
19682 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
19685 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
19690 test "$with_widec" = yes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
19691 test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
19693 echo "$as_me:19693: result: $LIB_SUBSETS" >&5
19694 echo "${ECHO_T}$LIB_SUBSETS" >&6
19696 ### Construct the list of include-directories to be generated
19698 CPPFLAGS="$CPPFLAGS -I. -I../include"
19699 if test "$srcdir" != "."; then
19700 CPPFLAGS="$CPPFLAGS -I\${srcdir}/../include"
19702 if test "$GCC" != yes; then
19703 CPPFLAGS="$CPPFLAGS -I\${includedir}"
19704 elif test "$includedir" != "/usr/include"; then
19705 if test "$includedir" = '${prefix}/include' ; then
19706 if test $prefix != /usr ; then
19707 CPPFLAGS="$CPPFLAGS -I\${includedir}"
19710 CPPFLAGS="$CPPFLAGS -I\${includedir}"
19714 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
19715 if test "$srcdir" != "."; then
19716 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
19718 if test "$GCC" != yes; then
19719 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
19720 elif test "$includedir" != "/usr/include"; then
19721 if test "$includedir" = '${prefix}/include' ; then
19722 if test $prefix != /usr ; then
19723 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
19726 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
19730 ### Build up pieces for makefile rules
19731 echo "$as_me:19731: checking default library suffix" >&5
19732 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
19734 case $DFT_LWR_MODEL in
19735 libtool) DFT_ARG_SUFFIX='' ;;
19736 normal) DFT_ARG_SUFFIX='' ;;
19737 debug) DFT_ARG_SUFFIX='_g' ;;
19738 profile) DFT_ARG_SUFFIX='_p' ;;
19739 shared) DFT_ARG_SUFFIX='' ;;
19741 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
19742 echo "$as_me:19742: result: $DFT_ARG_SUFFIX" >&5
19743 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
19745 echo "$as_me:19745: checking default library-dependency suffix" >&5
19746 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
19748 case $DFT_LWR_MODEL in #(vi
19750 DFT_LIB_SUFFIX='.la'
19751 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19754 DFT_LIB_SUFFIX='.a'
19755 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19758 DFT_LIB_SUFFIX='_g.a'
19759 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19762 DFT_LIB_SUFFIX='_p.a'
19763 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19766 case $cf_cv_system_name in
19768 DFT_LIB_SUFFIX='.a'
19769 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19772 DFT_LIB_SUFFIX='.dll'
19773 DFT_DEP_SUFFIX='.dll.a'
19776 DFT_LIB_SUFFIX='.dylib'
19777 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19782 DFT_LIB_SUFFIX='.so'
19783 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19786 DFT_LIB_SUFFIX='.sl'
19787 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19791 *) DFT_LIB_SUFFIX='.so'
19792 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19796 test -n "$LIB_SUFFIX" && DFT_LIB_SUFFIX="${LIB_SUFFIX}${DFT_LIB_SUFFIX}"
19797 test -n "$LIB_SUFFIX" && DFT_DEP_SUFFIX="${LIB_SUFFIX}${DFT_DEP_SUFFIX}"
19798 echo "$as_me:19798: result: $DFT_DEP_SUFFIX" >&5
19799 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
19801 echo "$as_me:19801: checking default object directory" >&5
19802 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
19804 case $DFT_LWR_MODEL in
19805 libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
19806 normal) DFT_OBJ_SUBDIR='objects' ;;
19807 debug) DFT_OBJ_SUBDIR='obj_g' ;;
19808 profile) DFT_OBJ_SUBDIR='obj_p' ;;
19810 case $cf_cv_system_name in #(vi
19812 DFT_OBJ_SUBDIR='objects' ;;
19814 DFT_OBJ_SUBDIR='obj_s' ;;
19817 echo "$as_me:19817: result: $DFT_OBJ_SUBDIR" >&5
19818 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
19820 # libtool thinks it can make c++ shared libraries (perhaps only g++)
19821 if test "$cf_with_cxx" = yes ; then
19822 echo "$as_me:19822: checking c++ library-dependency suffix" >&5
19823 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
19824 if test "$with_libtool" != "no"; then
19825 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
19828 case normal in #(vi
19830 CXX_LIB_SUFFIX='.la'
19831 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19834 CXX_LIB_SUFFIX='.a'
19835 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19838 CXX_LIB_SUFFIX='_g.a'
19839 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19842 CXX_LIB_SUFFIX='_p.a'
19843 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19846 case $cf_cv_system_name in
19848 CXX_LIB_SUFFIX='.a'
19849 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19852 CXX_LIB_SUFFIX='.dll'
19853 CXX_DEP_SUFFIX='.dll.a'
19856 CXX_LIB_SUFFIX='.dylib'
19857 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19862 CXX_LIB_SUFFIX='.so'
19863 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19866 CXX_LIB_SUFFIX='.sl'
19867 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19871 *) CXX_LIB_SUFFIX='.so'
19872 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19876 test -n "$LIB_SUFFIX" && CXX_LIB_SUFFIX="${LIB_SUFFIX}${CXX_LIB_SUFFIX}"
19877 test -n "$LIB_SUFFIX" && CXX_DEP_SUFFIX="${LIB_SUFFIX}${CXX_DEP_SUFFIX}"
19879 echo "$as_me:19879: result: $CXX_LIB_SUFFIX" >&5
19880 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
19884 # do not want -ldl in build except as needed for -lncurses dependency
19885 if test "$with_dlsym" = yes ; then
19886 if test $DFT_LWR_MODEL = shared || \
19887 test $DFT_LWR_MODEL = libtool ; then
19889 # remove dl library from $LIBS
19890 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
19894 ### Set up low-level terminfo dependencies for makefiles.
19896 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
19897 # do not need libdl
19899 if test "$with_dlsym" = yes ; then
19901 # remove dl library from $SHLIB_LIST
19902 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
19906 if test "$with_ticlib" != no ; then
19908 if test "$with_ticlib" != yes ; then
19909 TICS_NAME=$with_ticlib
19910 TICS_ARG_SUFFIX="${with_ticlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
19911 TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
19912 TICS_LIB_SUFFIX="${with_ticlib}"
19914 TICS_ARG_SUFFIX="${TICS_NAME}${DFT_ARG_SUFFIX}"
19915 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
19916 TICS_LIB_SUFFIX="${TICS_NAME}${LIB_SUFFIX}"
19918 TICS_LDFLAGS="-L${LIB_DIR}"
19919 TICS_LIBS="-l${TICS_LIB_SUFFIX}"
19921 TICS_LDFLAGS="-L${LIB_DIR}"
19922 TICS_LIBS="-l${LIB_NAME}${DFT_ARG_SUFFIX}"
19925 if test "$with_termlib" != no ; then
19927 if test "$with_termlib" != yes ; then
19928 TINFO_NAME=$with_termlib
19929 TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
19930 TINFO_ARG_SUFFIX="${with_termlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
19931 TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
19932 TINFO_LIB_SUFFIX="${with_termlib}"
19934 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
19935 TINFO_ARG_SUFFIX="${TINFO_NAME}${DFT_ARG_SUFFIX}"
19936 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
19937 TINFO_LIB_SUFFIX="${TINFO_NAME}${LIB_SUFFIX}"
19940 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
19941 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
19942 if test "$DFT_LWR_MODEL" = "libtool"; then
19943 TEST_ARGS="${TEST_DEPS}"
19944 TEST_ARG2="${TEST_DEP2}"
19945 TINFO_LDFLAGS="-L${LIB_DIR}"
19946 TINFO_LIBS="$TEST_ARGS"
19947 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
19948 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
19950 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
19951 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
19952 if test "x$with_term_driver" != xno ; then
19953 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${DFT_ARG_SUFFIX}"
19954 TICS_LIBS="$TICS_LIBS -l${LIB_NAME}${DFT_ARG_SUFFIX}"
19955 TINFO_LIBS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS"
19957 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
19958 TINFO_LIBS="$TEST_ARGS"
19960 TINFO_LDFLAGS="-L${LIB_DIR}"
19961 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
19964 # the next lines are needed for linking libtic over libncurses
19965 TINFO_NAME=${LIB_NAME}
19966 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
19967 TINFO_ARG_SUFFIX=${LIB_NAME}${DFT_ARG_SUFFIX}
19968 if test "$with_tic_depends" = yes ; then
19969 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${DFT_ARG_SUFFIX}"
19971 TICS_LIST="$SHLIB_LIST"
19974 TINFO_LDFLAGS="-L${LIB_DIR}"
19975 TINFO_LIBS="-l${LIB_NAME}${DFT_ARG_SUFFIX}"
19978 if test "$DFT_LWR_MODEL" = shared ; then
19979 case $cf_cv_system_name in #(vi
19981 # "lib" files have ".dll.a" suffix, "cyg" files have ".dll"
19987 if test "$with_dlsym" = yes ; then
19989 # remove dl library from $TICS_LIST
19990 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
19994 if test "$DFT_LWR_MODEL" = "libtool"; then
19999 TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'`
20001 case $DFT_LWR_MODEL in
20002 normal|debug|profile)
20004 if test "$GCC" = yes ; then
20005 case $cf_cv_system_name in #(
20006 OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*) #( vi
20010 *) #( normally, except when broken
20011 LDFLAGS_STATIC=-static
20012 LDFLAGS_SHARED=-dynamic
20016 case $cf_cv_system_name in #(
20017 aix[4-7]*) #( from ld manpage
20018 LDFLAGS_STATIC=-bstatic
20019 LDFLAGS_SHARED=-bdynamic
20021 hpux*) #( from ld manpage for hpux10.20, hpux11.11
20022 # We could also use just "archive" and "shared".
20023 LDFLAGS_STATIC=-Wl,-a,archive_shared
20024 LDFLAGS_SHARED=-Wl,-a,shared_archive
20026 irix*) #( from ld manpage IRIX64
20027 LDFLAGS_STATIC=-Bstatic
20028 LDFLAGS_SHARED=-Bdynamic
20030 osf[45]*) #( from ld manpage osf4.0d, osf5.1
20031 # alternative "-oldstyle_liblookup" (not in cc manpage)
20032 LDFLAGS_STATIC=-noso
20033 LDFLAGS_SHARED=-so_archive
20036 LDFLAGS_STATIC=-Bstatic
20037 LDFLAGS_SHARED=-Bdynamic
20042 if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED"
20044 echo "$as_me:20044: checking if linker supports switching between static/dynamic" >&5
20045 echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6
20047 rm -f libconftest.a
20048 cat >conftest.$ac_ext <<EOF
20049 #line 20049 "configure"
20051 int cf_ldflags_static(FILE *fp) { return fflush(fp); }
20053 if { (eval echo "$as_me:20053: \"$ac_compile\"") >&5
20054 (eval $ac_compile) 2>&5
20056 echo "$as_me:20056: \$? = $ac_status" >&5
20057 (exit $ac_status); } ; then
20058 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null
20059 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null
20063 cf_save_LIBS="$LIBS"
20065 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS"
20066 cat >conftest.$ac_ext <<_ACEOF
20067 #line 20067 "configure"
20068 #include "confdefs.h"
20070 #line 20070 "configure"
20072 int cf_ldflags_static(FILE *fp);
20078 return cf_ldflags_static(stdin);
20084 rm -f conftest.$ac_objext conftest$ac_exeext
20085 if { (eval echo "$as_me:20085: \"$ac_link\"") >&5
20086 (eval $ac_link) 2>&5
20088 echo "$as_me:20088: \$? = $ac_status" >&5
20089 (exit $ac_status); } &&
20090 { ac_try='test -s conftest$ac_exeext'
20091 { (eval echo "$as_me:20091: \"$ac_try\"") >&5
20092 (eval $ac_try) 2>&5
20094 echo "$as_me:20094: \$? = $ac_status" >&5
20095 (exit $ac_status); }; }; then
20097 # some linkers simply ignore the -dynamic
20098 case x`file conftest$ac_exeext 2>/dev/null` in #(vi
20100 cf_ldflags_static=no
20103 cf_ldflags_static=yes
20108 echo "$as_me: failed program was:" >&5
20109 cat conftest.$ac_ext >&5
20110 cf_ldflags_static=no
20112 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20114 rm -f libconftest.*
20115 LIBS="$cf_save_LIBS"
20117 echo "$as_me:20117: result: $cf_ldflags_static" >&5
20118 echo "${ECHO_T}$cf_ldflags_static" >&6
20120 if test $cf_ldflags_static != yes
20133 echo "$as_me:20133: checking where we will install curses.h" >&5
20134 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
20135 test "$with_overwrite" = no && \
20136 test "x$includedir" = 'x${prefix}/include' && \
20137 includedir='${prefix}/include/ncurses'${LIB_SUFFIX}
20138 echo "$as_me:20138: result: $includedir" >&5
20139 echo "${ECHO_T}$includedir" >&6
20141 ### Resolve a conflict between normal and wide-curses by forcing applications
20142 ### that will need libutf8 to add it to their configure script.
20143 if test "$with_overwrite" != no ; then
20144 if test "$NCURSES_LIBUTF8" = 1 ; then
20145 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
20146 { echo "$as_me:20146: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
20147 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
20150 WITH_OVERWRITE=$with_overwrite
20152 # used to separate tack out of the tree
20155 ### predefined stuff for the test programs
20156 cat >>confdefs.h <<\EOF
20157 #define HAVE_SLK_COLOR 1
20160 ### Construct the list of subdirectories for which we'll customize makefiles
20161 ### with the appropriate compile-rules.
20163 echo "$as_me:20163: checking for src modules" >&5
20164 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
20166 # dependencies and linker-arguments for test-programs
20167 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
20168 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
20169 if test "$DFT_LWR_MODEL" = "libtool"; then
20170 TEST_ARGS="${TEST_DEPS}"
20171 TEST_ARG2="${TEST_DEP2}"
20173 TEST_ARGS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS"
20174 TEST_ARG2="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARG2"
20177 PC_MODULES_TO_MAKE="ncurses${DFT_ARG_SUFFIX}"
20179 for cf_dir in $modules_to_build
20181 if test -f $srcdir/$cf_dir/modules; then
20183 # We may/may not have tack in the distribution, though the
20185 if test $cf_dir = tack ; then
20186 if test ! -f $srcdir/${cf_dir}/${cf_dir}.h; then
20191 if test -z "$cf_cv_src_modules"; then
20192 cf_cv_src_modules=$cf_dir
20194 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
20197 # Make the ncurses_cfg.h file record the library interface files as
20198 # well. These are header files that are the same name as their
20199 # directory. Ncurses is the only library that does not follow
20201 if test $cf_dir = tack ; then
20203 elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
20205 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20207 cat >>confdefs.h <<EOF
20208 #define HAVE_${cf_have_include}_H 1
20211 cat >>confdefs.h <<EOF
20212 #define HAVE_LIB${cf_have_include} 1
20215 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
20216 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEP2"
20217 if test "$DFT_LWR_MODEL" = "libtool"; then
20218 TEST_ARGS="${TEST_DEPS}"
20219 TEST_ARG2="${TEST_DEP2}"
20221 TEST_ARGS="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARGS"
20222 TEST_ARG2="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARG2"
20224 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ${cf_dir}${DFT_ARG_SUFFIX}"
20228 echo "$as_me:20228: result: $cf_cv_src_modules" >&5
20229 echo "${ECHO_T}$cf_cv_src_modules" >&6
20231 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
20232 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
20235 if test "x$cf_with_manpages" != xno ; then
20236 SRC_SUBDIRS="$SRC_SUBDIRS man"
20238 SRC_SUBDIRS="$SRC_SUBDIRS include"
20239 for cf_dir in $cf_cv_src_modules
20241 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
20243 if test "x$cf_with_tests" != "xno" ; then
20244 SRC_SUBDIRS="$SRC_SUBDIRS test"
20246 test -z "$MAKE_TERMINFO" && SRC_SUBDIRS="$SRC_SUBDIRS misc"
20247 if test "$cf_with_cxx_binding" != no; then
20248 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ncurses++${DFT_ARG_SUFFIX}"
20249 SRC_SUBDIRS="$SRC_SUBDIRS c++"
20252 test "x$with_termlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TINFO_ARG_SUFFIX"
20253 test "x$with_ticlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TICS_ARG_SUFFIX"
20256 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = xyes && test -f $srcdir/Ada95/Makefile.in; then
20257 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
20258 ADA_SUBDIRS="gen src"
20259 if test "x$cf_with_tests" != "xno" ; then
20260 ADA_SUBDIRS="$ADA_SUBDIRS samples"
20265 for cf_dir in $SRC_SUBDIRS
20267 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
20270 if test -n "$ADA_SUBDIRS"; then
20271 for cf_dir in $ADA_SUBDIRS
20273 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
20278 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
20279 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${DFT_ARG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
20280 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${DFT_ARG_SUFFIX}-config.1:man/MKada_config.in"
20284 for cf_item in $cf_list_models
20288 libtool) cf_subdir='obj_lo' ;;
20289 normal) cf_subdir='objects' ;;
20290 debug) cf_subdir='obj_g' ;;
20291 profile) cf_subdir='obj_p' ;;
20293 case $cf_cv_system_name in #(vi
20295 cf_subdir='objects' ;;
20297 cf_subdir='obj_s' ;;
20301 for cf_item2 in $DIRS_TO_MAKE
20303 test $cf_item2 = $cf_subdir && break
20305 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
20307 for cf_dir in $DIRS_TO_MAKE
20309 test ! -d $cf_dir && mkdir $cf_dir
20312 # symbols that differ when compiling Ada95 by itself.
20313 NCURSES_SHLIB2='sh $(top_srcdir)/misc/shlib'
20315 # values to use as strings
20316 cat >>confdefs.h <<EOF
20317 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
20320 cat >>confdefs.h <<EOF
20321 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
20324 ### Now that we're done running tests, add the compiler-warnings, if any
20329 cf_new_extra_cppflags=
20331 for cf_add_cflags in $EXTRA_CFLAGS
20333 case $cf_fix_cppflags in
20335 case $cf_add_cflags in #(vi
20336 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
20337 case $cf_add_cflags in
20339 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
20341 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
20342 && test -z "${cf_tst_cflags}" \
20343 && cf_fix_cppflags=yes
20345 if test $cf_fix_cppflags = yes ; then
20346 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
20348 elif test "${cf_tst_cflags}" = "\"'" ; then
20349 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
20354 case "$CPPFLAGS" in
20355 *$cf_add_cflags) #(vi
20358 case $cf_add_cflags in #(vi
20360 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
20362 CPPFLAGS=`echo "$CPPFLAGS" | \
20363 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
20364 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
20368 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
20373 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
20378 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
20380 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
20382 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
20383 && test -z "${cf_tst_cflags}" \
20384 && cf_fix_cppflags=no
20389 if test -n "$cf_new_cflags" ; then
20391 CFLAGS="$CFLAGS $cf_new_cflags"
20394 if test -n "$cf_new_cppflags" ; then
20396 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
20399 if test -n "$cf_new_extra_cppflags" ; then
20401 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
20404 ### Define substitutions for header files to avoid name-pollution
20406 if test "$cf_cv_have_tcgetattr" = yes ; then
20412 if test "$ac_cv_header_termio_h" = yes ; then
20418 if test "$ac_cv_header_termios_h" = yes ; then
20424 ################################################################################
20425 test "$use_database" = yes && \
20426 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
20428 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
20429 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${DFT_ARG_SUFFIX}${cf_cv_abi_version}-config.1:man/MKncu_config.in"
20431 if test x"$enable_pc_files" = xyes ; then \
20432 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
20438 # Extract the first word of "tic", so it can be a program name with args.
20439 set dummy tic; ac_word=$2
20440 echo "$as_me:20440: checking for $ac_word" >&5
20441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20442 if test "${ac_cv_path_TIC_PATH+set}" = set; then
20443 echo $ECHO_N "(cached) $ECHO_C" >&6
20447 ac_cv_path_TIC_PATH="$TIC_PATH" # Let the user override the test with a path.
20450 ac_save_IFS=$IFS; IFS=$ac_path_separator
20451 ac_dummy="$PATH:/usr/local/ncurses/bin"
20452 for ac_dir in $ac_dummy; do
20454 test -z "$ac_dir" && ac_dir=.
20455 if $as_executable_p "$ac_dir/$ac_word"; then
20456 ac_cv_path_TIC_PATH="$ac_dir/$ac_word"
20457 echo "$as_me:20457: found $ac_dir/$ac_word" >&5
20462 test -z "$ac_cv_path_TIC_PATH" && ac_cv_path_TIC_PATH="unknown"
20466 TIC_PATH=$ac_cv_path_TIC_PATH
20468 if test -n "$TIC_PATH"; then
20469 echo "$as_me:20469: result: $TIC_PATH" >&5
20470 echo "${ECHO_T}$TIC_PATH" >&6
20472 echo "$as_me:20472: result: no" >&5
20473 echo "${ECHO_T}no" >&6
20476 if test -n "$FALLBACK_LIST"
20478 if test "$TIC_PATH" = unknown
20480 { echo "$as_me:20480: WARNING: no tic program found for fallbacks" >&5
20481 echo "$as_me: WARNING: no tic program found for fallbacks" >&2;}
20485 if test "x$cf_with_tests" != xno ; then
20491 ADAHTML_DIR=../../doc/html/ada
20495 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"
20496 ac_config_commands="$ac_config_commands default"
20497 cat >confcache <<\_ACEOF
20498 # This file is a shell script that caches the results of configure
20499 # tests run on this system so they can be shared between configure
20500 # scripts and configure runs, see configure's option --config-cache.
20501 # It is not useful on other systems. If it contains results you don't
20502 # want to keep, you may remove or edit it.
20504 # config.status only pays attention to the cache file if you give it
20505 # the --recheck option to rerun configure.
20507 # `ac_cv_env_foo' variables (set or unset) will be overriden when
20508 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20509 # following values.
20513 # The following way of writing the cache mishandles newlines in values,
20514 # but we know of no workaround that is simple, portable, and efficient.
20515 # So, don't put newlines in cache variables' values.
20516 # Ultrix sh set writes to stderr and can't be redirected directly,
20517 # and sets the high bit in the cache file unless we assign to the vars.
20520 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20522 # `set' does not quote correctly, so add quotes (double-quote
20523 # substitution turns \\\\ into \\, and sed turns \\ into \).
20526 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20529 # `set' quotes correctly as required by POSIX, so do not add quotes.
20531 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20538 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20540 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20542 if cmp -s $cache_file confcache; then :; else
20543 if test -w $cache_file; then
20544 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20545 cat confcache >$cache_file
20547 echo "not updating unwritable cache $cache_file"
20552 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20553 # Let make expand exec_prefix.
20554 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20556 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20557 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20558 # trailing colons and then remove the whole line if VPATH becomes empty
20559 # (actually we leave an empty line to preserve line numbers).
20560 if test "x$srcdir" = x.; then
20561 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20562 s/:*\$(srcdir):*/:/;
20563 s/:*\${srcdir}:*/:/;
20565 s/^\([^=]*=[ ]*\):*/\1/;
20571 DEFS=-DHAVE_CONFIG_H
20573 : ${CONFIG_STATUS=./config.status}
20574 ac_clean_files_save=$ac_clean_files
20575 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20576 { echo "$as_me:20576: creating $CONFIG_STATUS" >&5
20577 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20578 cat >$CONFIG_STATUS <<_ACEOF
20580 # Generated automatically by configure.
20581 # Run this file to recreate the current configuration.
20582 # Compiler output produced by configure, useful for debugging
20583 # configure, is in config.log if it exists.
20586 SHELL=\${CONFIG_SHELL-$SHELL}
20587 ac_cs_invocation="\$0 \$@"
20591 cat >>$CONFIG_STATUS <<\_ACEOF
20592 # Be Bourne compatible
20593 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20596 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20600 # Name of the executable.
20601 as_me=`echo "$0" |sed 's,.*[\\/],,'`
20603 if expr a : '\(a\)' >/dev/null 2>&1; then
20609 rm -f conf$$ conf$$.exe conf$$.file
20611 if ln -s conf$$.file conf$$ 2>/dev/null; then
20612 # We could just check for DJGPP; but this test a) works b) is more generic
20613 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20614 if test -f conf$$.exe; then
20615 # Don't use ln at all; we don't have any links
20620 elif ln conf$$.file conf$$ 2>/dev/null; then
20625 rm -f conf$$ conf$$.exe conf$$.file
20627 as_executable_p="test -f"
20629 # Support unset when possible.
20630 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
20637 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
20638 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
20639 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
20640 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
20641 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
20642 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
20643 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
20644 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
20647 # We need space, tab and new line, in precisely that order.
20653 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
20659 # Files that config.status was made for.
20660 if test -n "$ac_config_files"; then
20661 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20664 if test -n "$ac_config_headers"; then
20665 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20668 if test -n "$ac_config_links"; then
20669 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20672 if test -n "$ac_config_commands"; then
20673 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20676 cat >>$CONFIG_STATUS <<\EOF
20679 \`$as_me' instantiates files from templates according to the
20680 current configuration.
20682 Usage: $0 [OPTIONS] [FILE]...
20684 -h, --help print this help, then exit
20685 -V, --version print version number, then exit
20686 -d, --debug don't remove temporary files
20687 --recheck update $as_me by reconfiguring in the same conditions
20688 --file=FILE[:TEMPLATE]
20689 instantiate the configuration file FILE
20690 --header=FILE[:TEMPLATE]
20691 instantiate the configuration header FILE
20693 Configuration files:
20696 Configuration headers:
20699 Configuration commands:
20702 Report bugs to <dickey@invisible-island.net>."
20705 cat >>$CONFIG_STATUS <<EOF
20708 configured by $0, generated by GNU Autoconf 2.52.20101002,
20709 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20711 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
20712 Free Software Foundation, Inc.
20713 This config.status script is free software; the Free Software Foundation
20714 gives unlimited permission to copy, distribute and modify it."
20719 cat >>$CONFIG_STATUS <<\EOF
20720 # If no file are specified by the user, then we need to provide default
20721 # value. By we need to know if files were specified by the user.
20727 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20728 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20730 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
20734 *) # This is not an option, so the user has probably given explicit
20736 ac_need_defaults=false;;
20740 # Handling of the options.
20742 cat >>$CONFIG_STATUS <<EOF
20743 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20744 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
20745 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
20747 cat >>$CONFIG_STATUS <<\EOF
20748 --version | --vers* | -V )
20749 echo "$ac_cs_version"; exit 0 ;;
20751 # Conflict between --help and --header
20752 { { echo "$as_me:20752: error: ambiguous option: $1
20753 Try \`$0 --help' for more information." >&5
20754 echo "$as_me: error: ambiguous option: $1
20755 Try \`$0 --help' for more information." >&2;}
20756 { (exit 1); exit 1; }; };;
20757 --help | --hel | -h )
20758 echo "$ac_cs_usage"; exit 0 ;;
20759 --debug | --d* | -d )
20761 --file | --fil | --fi | --f )
20763 CONFIG_FILES="$CONFIG_FILES $1"
20764 ac_need_defaults=false;;
20765 --header | --heade | --head | --hea )
20767 CONFIG_HEADERS="$CONFIG_HEADERS $1"
20768 ac_need_defaults=false;;
20770 # This is an error.
20771 -*) { { echo "$as_me:20771: error: unrecognized option: $1
20772 Try \`$0 --help' for more information." >&5
20773 echo "$as_me: error: unrecognized option: $1
20774 Try \`$0 --help' for more information." >&2;}
20775 { (exit 1); exit 1; }; } ;;
20777 *) ac_config_targets="$ac_config_targets $1" ;;
20786 ## ----------------------- ##
20787 ## Running config.status. ##
20788 ## ----------------------- ##
20790 This file was extended by $as_me 2.52.20101002, executed with
20791 CONFIG_FILES = $CONFIG_FILES
20792 CONFIG_HEADERS = $CONFIG_HEADERS
20793 CONFIG_LINKS = $CONFIG_LINKS
20794 CONFIG_COMMANDS = $CONFIG_COMMANDS
20795 > $ac_cs_invocation
20796 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20801 cat >>$CONFIG_STATUS <<EOF
20803 # INIT-COMMANDS section.
20806 ### Special initialization commands, used to pass information from the
20807 ### configuration-run into config.status
20810 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
20811 DFT_LWR_MODEL="$DFT_LWR_MODEL"
20812 ECHO_LINK="$ECHO_LINK"
20813 LDCONFIG="$LDCONFIG"
20814 LIBTOOL_VERSION="$LIBTOOL_VERSION"
20815 LIB_NAME="$LIB_NAME"
20816 LIB_PREFIX="$LIB_PREFIX"
20817 LIB_SUBSETS="$LIB_SUBSETS"
20818 LIB_SUFFIX="$LIB_SUFFIX"
20819 LIB_TRACING="$LIB_TRACING"
20821 MAKE_TERMINFO="$MAKE_TERMINFO"
20822 NCURSES_MAJOR="$NCURSES_MAJOR"
20823 NCURSES_MINOR="$NCURSES_MINOR"
20824 NCURSES_OSPEED="$NCURSES_OSPEED"
20825 NCURSES_PATCH="$NCURSES_PATCH"
20826 SRC_SUBDIRS="$SRC_SUBDIRS"
20827 TERMINFO="$TERMINFO"
20828 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
20829 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
20830 TICS_NAME="$TICS_NAME"
20831 TIC_PATH="$TIC_PATH"
20832 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
20833 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
20834 TINFO_NAME="$TINFO_NAME"
20835 TINFO_SUFFIX="$TINFO_SUFFIX"
20836 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
20837 WITH_CURSES_H="$with_curses_h"
20838 WITH_ECHO="$with_echo"
20839 WITH_OVERWRITE="$with_overwrite"
20840 cf_LIST_MODELS="$cf_list_models"
20841 cf_cv_abi_version="$cf_cv_abi_version"
20842 cf_cv_do_relink="$cf_cv_do_relink"
20843 cf_cv_do_symlinks="$cf_cv_do_symlinks"
20844 cf_cv_enable_lp64="$cf_cv_enable_lp64"
20845 cf_cv_enable_opaque="$cf_cv_enable_opaque"
20846 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
20847 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
20848 cf_cv_prog_gnat_correct=$cf_cv_prog_gnat_correct
20849 cf_cv_rel_version="$cf_cv_rel_version"
20850 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
20851 cf_cv_shared_soname='$cf_cv_shared_soname'
20852 cf_cv_shlib_version="$cf_cv_shlib_version"
20853 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
20854 cf_cv_system_name="$cf_cv_system_name"
20855 cf_cv_term_driver="$with_term_driver"
20856 cf_with_ada="$cf_with_ada"
20857 cf_with_cxx_binding="$cf_with_cxx_binding"
20858 cf_with_manpages="$cf_with_manpages"
20859 cf_with_tests="$cf_with_tests"
20865 cat >>$CONFIG_STATUS <<\EOF
20866 for ac_config_target in $ac_config_targets
20868 case "$ac_config_target" in
20869 # Handling of arguments.
20870 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
20871 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
20872 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
20873 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
20874 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
20875 "$SUB_SCRIPTS" ) CONFIG_FILES="$CONFIG_FILES $SUB_SCRIPTS" ;;
20876 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
20877 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20878 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
20879 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
20880 *) { { echo "$as_me:20880: error: invalid argument: $ac_config_target" >&5
20881 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20882 { (exit 1); exit 1; }; };;
20886 # If the user did not use the arguments to specify the items to instantiate,
20887 # then the envvar interface is used. Set only those that are not.
20888 # We use the long form for the default assignment because of an extremely
20889 # bizarre bug on SunOS 4.1.3.
20890 if $ac_need_defaults; then
20891 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20892 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20893 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20896 # Create a temporary directory, and hook for its removal unless debugging.
20899 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20900 trap '{ (exit 1); exit 1; }' 1 2 13 15
20903 # Create a (secure) tmp directory for tmp files.
20906 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
20907 test -n "$tmp" && test -d "$tmp"
20910 tmp=$TMPDIR/cs$$-$RANDOM
20911 (umask 077 && mkdir $tmp)
20914 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
20915 { (exit 1); exit 1; }
20920 cat >>$CONFIG_STATUS <<EOF
20923 # CONFIG_FILES section.
20926 # No need to generate the scripts if there are no CONFIG_FILES.
20927 # This happens for instance when ./config.status config.h
20928 if test -n "\$CONFIG_FILES"; then
20929 # Protect against being on the right side of a sed subst in config.status.
20930 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20931 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20932 s,@SHELL@,$SHELL,;t t
20933 s,@exec_prefix@,$exec_prefix,;t t
20934 s,@prefix@,$prefix,;t t
20935 s,@program_transform_name@,$program_transform_name,;t t
20936 s,@bindir@,$bindir,;t t
20937 s,@sbindir@,$sbindir,;t t
20938 s,@libexecdir@,$libexecdir,;t t
20939 s,@datadir@,$datadir,;t t
20940 s,@sysconfdir@,$sysconfdir,;t t
20941 s,@sharedstatedir@,$sharedstatedir,;t t
20942 s,@localstatedir@,$localstatedir,;t t
20943 s,@libdir@,$libdir,;t t
20944 s,@includedir@,$includedir,;t t
20945 s,@oldincludedir@,$oldincludedir,;t t
20946 s,@infodir@,$infodir,;t t
20947 s,@mandir@,$mandir,;t t
20948 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20949 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20950 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20951 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20952 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20953 s,@build_alias@,$build_alias,;t t
20954 s,@host_alias@,$host_alias,;t t
20955 s,@target_alias@,$target_alias,;t t
20956 s,@ECHO_C@,$ECHO_C,;t t
20957 s,@ECHO_N@,$ECHO_N,;t t
20958 s,@ECHO_T@,$ECHO_T,;t t
20959 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20960 s,@DEFS@,$DEFS,;t t
20961 s,@LIBS@,$LIBS,;t t
20962 s,@top_builddir@,$top_builddir,;t t
20963 s,@EGREP@,$EGREP,;t t
20964 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
20965 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
20966 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
20967 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
20968 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
20969 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
20970 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
20971 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
20972 s,@build@,$build,;t t
20973 s,@build_cpu@,$build_cpu,;t t
20974 s,@build_vendor@,$build_vendor,;t t
20975 s,@build_os@,$build_os,;t t
20976 s,@host@,$host,;t t
20977 s,@host_cpu@,$host_cpu,;t t
20978 s,@host_vendor@,$host_vendor,;t t
20979 s,@host_os@,$host_os,;t t
20980 s,@target@,$target,;t t
20981 s,@target_cpu@,$target_cpu,;t t
20982 s,@target_vendor@,$target_vendor,;t t
20983 s,@target_os@,$target_os,;t t
20985 s,@CFLAGS@,$CFLAGS,;t t
20986 s,@LDFLAGS@,$LDFLAGS,;t t
20987 s,@CPPFLAGS@,$CPPFLAGS,;t t
20988 s,@ac_ct_CC@,$ac_ct_CC,;t t
20989 s,@EXEEXT@,$EXEEXT,;t t
20990 s,@OBJEXT@,$OBJEXT,;t t
20992 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
20993 s,@PROG_EXT@,$PROG_EXT,;t t
20994 s,@LDCONFIG@,$LDCONFIG,;t t
20996 s,@CXXFLAGS@,$CXXFLAGS,;t t
20997 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20999 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21000 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21001 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21002 s,@LINT@,$LINT,;t t
21003 s,@LINT_OPTS@,$LINT_OPTS,;t t
21004 s,@LN_S@,$LN_S,;t t
21005 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21006 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
21007 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
21008 s,@SET_MAKE@,$SET_MAKE,;t t
21009 s,@CTAGS@,$CTAGS,;t t
21010 s,@ETAGS@,$ETAGS,;t t
21011 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
21012 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
21013 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
21014 s,@RANLIB@,$RANLIB,;t t
21015 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21017 s,@ac_ct_LD@,$ac_ct_LD,;t t
21019 s,@ac_ct_AR@,$ac_ct_AR,;t t
21020 s,@ARFLAGS@,$ARFLAGS,;t t
21021 s,@DESTDIR@,$DESTDIR,;t t
21022 s,@BUILD_CC@,$BUILD_CC,;t t
21023 s,@BUILD_CPP@,$BUILD_CPP,;t t
21024 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
21025 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
21026 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
21027 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
21028 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
21029 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
21030 s,@cf_list_models@,$cf_list_models,;t t
21031 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
21032 s,@LIBTOOL@,$LIBTOOL,;t t
21033 s,@LT_UNDEF@,$LT_UNDEF,;t t
21034 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
21035 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
21036 s,@LIB_CREATE@,$LIB_CREATE,;t t
21037 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
21038 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
21039 s,@LIB_PREP@,$LIB_PREP,;t t
21040 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
21041 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
21042 s,@LIB_LINK@,$LIB_LINK,;t t
21043 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
21044 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
21045 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
21046 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
21047 s,@TICS_NAME@,$TICS_NAME,;t t
21048 s,@TINFO_NAME@,$TINFO_NAME,;t t
21049 s,@LIB_NAME@,$LIB_NAME,;t t
21050 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
21051 s,@CC_G_OPT@,$CC_G_OPT,;t t
21052 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
21053 s,@LD_MODEL@,$LD_MODEL,;t t
21054 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
21055 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
21056 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
21057 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
21058 s,@LINK_PROGS@,$LINK_PROGS,;t t
21059 s,@LINK_TESTS@,$LINK_TESTS,;t t
21060 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
21061 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
21062 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
21063 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
21064 s,@RPATH_LIST@,$RPATH_LIST,;t t
21065 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
21066 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
21067 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
21068 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
21069 s,@XTERM_KBS@,$XTERM_KBS,;t t
21070 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
21071 s,@TERMINFO@,$TERMINFO,;t t
21072 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
21073 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
21074 s,@TERMPATH@,$TERMPATH,;t t
21075 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
21076 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
21077 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
21078 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
21079 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
21080 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
21081 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
21082 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
21083 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
21084 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
21085 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
21086 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
21087 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
21088 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
21089 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
21090 s,@NCURSES_TPARM_ARG@,$NCURSES_TPARM_ARG,;t t
21091 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
21092 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
21093 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
21094 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
21095 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
21096 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
21097 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
21098 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
21099 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
21100 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
21101 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
21102 s,@PTHREAD@,$PTHREAD,;t t
21103 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
21104 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
21105 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
21106 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
21107 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
21108 s,@ECHO_LINK@,$ECHO_LINK,;t t
21109 s,@ADAFLAGS@,$ADAFLAGS,;t t
21110 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
21111 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
21112 s,@ADA_TRACE@,$ADA_TRACE,;t t
21113 s,@MATH_LIB@,$MATH_LIB,;t t
21114 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
21115 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
21116 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
21117 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
21118 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
21119 s,@TEST_LIBS@,$TEST_LIBS,;t t
21120 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
21121 s,@CXXCPP@,$CXXCPP,;t t
21122 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
21123 s,@CXX_AR@,$CXX_AR,;t t
21124 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
21125 s,@CXXLIBS@,$CXXLIBS,;t t
21126 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
21127 s,@gnat_exists@,$gnat_exists,;t t
21128 s,@M4_exists@,$M4_exists,;t t
21129 s,@cf_ada_make@,$cf_ada_make,;t t
21130 s,@cf_compile_generics@,$cf_compile_generics,;t t
21131 s,@cf_generic_objects@,$cf_generic_objects,;t t
21132 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
21133 s,@PRAGMA_UNREF@,$PRAGMA_UNREF,;t t
21134 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
21135 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
21136 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
21137 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
21138 s,@cf_ada_package@,$cf_ada_package,;t t
21139 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
21140 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
21141 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
21142 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
21143 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
21144 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
21145 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
21146 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
21147 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
21148 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
21149 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
21150 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
21151 s,@TICS_LDFLAGS@,$TICS_LDFLAGS,;t t
21152 s,@TICS_LIBS@,$TICS_LIBS,;t t
21153 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
21154 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
21155 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
21156 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
21157 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
21158 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
21159 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
21160 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
21161 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
21162 s,@TICS_LIST@,$TICS_LIST,;t t
21163 s,@TINFO_LIST@,$TINFO_LIST,;t t
21164 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
21165 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
21166 s,@TEST_ARGS@,$TEST_ARGS,;t t
21167 s,@TEST_DEPS@,$TEST_DEPS,;t t
21168 s,@TEST_ARG2@,$TEST_ARG2,;t t
21169 s,@TEST_DEP2@,$TEST_DEP2,;t t
21170 s,@PC_MODULES_TO_MAKE@,$PC_MODULES_TO_MAKE,;t t
21171 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
21172 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
21173 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
21174 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
21175 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
21176 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
21177 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
21178 s,@cross_compiling@,$cross_compiling,;t t
21179 s,@TIC_PATH@,$TIC_PATH,;t t
21180 s,@MAKE_TESTS@,$MAKE_TESTS,;t t
21181 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
21186 cat >>$CONFIG_STATUS <<\EOF
21187 # Split the substitutions into bite-sized pieces for seds with
21188 # small command number limits, like on Digital OSF/1 and HP-UX.
21189 ac_max_sed_lines=48
21190 ac_sed_frag=1 # Number of current file.
21191 ac_beg=1 # First line for current file.
21192 ac_end=$ac_max_sed_lines # Line after last line for current file.
21195 while $ac_more_lines; do
21196 if test $ac_beg -gt 1; then
21197 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21199 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21201 if test ! -s $tmp/subs.frag; then
21202 ac_more_lines=false
21204 # The purpose of the label and of the branching condition is to
21205 # speed up the sed processing (if there are no `@' at all, there
21206 # is no need to browse any of the substitutions).
21207 # These are the two extra sed commands mentioned above.
21209 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21210 if test -z "$ac_sed_cmds"; then
21211 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21213 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21215 ac_sed_frag=`expr $ac_sed_frag + 1`
21217 ac_end=`expr $ac_end + $ac_max_sed_lines`
21220 if test -z "$ac_sed_cmds"; then
21223 fi # test -n "$CONFIG_FILES"
21226 cat >>$CONFIG_STATUS <<\EOF
21227 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21228 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21230 - | *:- | *:-:* ) # input from stdin
21232 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21233 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21234 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21235 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21236 * ) ac_file_in=$ac_file.in ;;
21239 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21240 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21241 X"$ac_file" : 'X\(//\)[^/]' \| \
21242 X"$ac_file" : 'X\(//\)$' \| \
21243 X"$ac_file" : 'X\(/\)' \| \
21244 . : '\(.\)' 2>/dev/null ||
21246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21247 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21248 /^X\(\/\/\)$/{ s//\1/; q; }
21249 /^X\(\/\).*/{ s//\1/; q; }
21251 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21252 { case "$ac_dir" in
21253 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
21257 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
21258 case $as_mkdir_dir in
21259 # Skip DOS drivespec
21260 ?:) as_incr_dir=$as_mkdir_dir ;;
21262 as_incr_dir=$as_incr_dir/$as_mkdir_dir
21263 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
21268 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
21269 # A "../" for each directory in $ac_dir_suffix.
21270 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
21272 ac_dir_suffix= ac_dots=
21277 if test -z "$ac_dots"; then
21280 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
21282 [\\/]* | ?:[\\/]* )
21283 ac_srcdir=$srcdir$ac_dir_suffix;
21284 ac_top_srcdir=$srcdir ;;
21285 *) # Relative path.
21286 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
21287 ac_top_srcdir=$ac_dots$srcdir ;;
21291 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21292 *) ac_INSTALL=$ac_dots$INSTALL ;;
21295 if test x"$ac_file" != x-; then
21296 { echo "$as_me:21296: creating $ac_file" >&5
21297 echo "$as_me: creating $ac_file" >&6;}
21300 # Let's still pretend it is `configure' which instantiates (i.e., don't
21301 # use $as_me), people would be surprised to read:
21302 # /* config.h. Generated automatically by config.status. */
21303 configure_input="Generated automatically from `echo $ac_file_in |
21304 sed 's,.*/,,'` by configure."
21306 # First look for the input files in the build tree, otherwise in the
21308 ac_file_inputs=`IFS=:
21309 for f in $ac_file_in; do
21311 -) echo $tmp/stdin ;;
21313 # Absolute (can't be DOS-style, as IFS=:)
21314 test -f "$f" || { { echo "$as_me:21314: error: cannot find input file: $f" >&5
21315 echo "$as_me: error: cannot find input file: $f" >&2;}
21316 { (exit 1); exit 1; }; }
21319 if test -f "$f"; then
21322 elif test -f "$srcdir/$f"; then
21327 { { echo "$as_me:21327: error: cannot find input file: $f" >&5
21328 echo "$as_me: error: cannot find input file: $f" >&2;}
21329 { (exit 1); exit 1; }; }
21332 done` || { (exit 1); exit 1; }
21334 cat >>$CONFIG_STATUS <<EOF
21338 cat >>$CONFIG_STATUS <<\EOF
21340 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21341 s,@configure_input@,$configure_input,;t t
21342 s,@srcdir@,$ac_srcdir,;t t
21343 s,@top_srcdir@,$ac_top_srcdir,;t t
21344 s,@INSTALL@,$ac_INSTALL,;t t
21345 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21347 if test x"$ac_file" != x-; then
21348 mv $tmp/out $ac_file
21356 cat >>$CONFIG_STATUS <<\EOF
21359 # CONFIG_HEADER section.
21362 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21363 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21365 # ac_d sets the value in "#define NAME VALUE" lines.
21366 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21367 ac_dB='[ ].*$,\1#\2'
21370 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
21371 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21372 ac_iB='\([ ]\),\1#\2define\3'
21375 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21376 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21377 ac_uB='$,\1#\2define\3'
21381 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21382 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21384 - | *:- | *:-:* ) # input from stdin
21386 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21387 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21388 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21389 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21390 * ) ac_file_in=$ac_file.in ;;
21393 test x"$ac_file" != x- && { echo "$as_me:21393: creating $ac_file" >&5
21394 echo "$as_me: creating $ac_file" >&6;}
21396 # First look for the input files in the build tree, otherwise in the
21398 ac_file_inputs=`IFS=:
21399 for f in $ac_file_in; do
21401 -) echo $tmp/stdin ;;
21403 # Absolute (can't be DOS-style, as IFS=:)
21404 test -f "$f" || { { echo "$as_me:21404: error: cannot find input file: $f" >&5
21405 echo "$as_me: error: cannot find input file: $f" >&2;}
21406 { (exit 1); exit 1; }; }
21409 if test -f "$f"; then
21412 elif test -f "$srcdir/$f"; then
21417 { { echo "$as_me:21417: error: cannot find input file: $f" >&5
21418 echo "$as_me: error: cannot find input file: $f" >&2;}
21419 { (exit 1); exit 1; }; }
21422 done` || { (exit 1); exit 1; }
21423 # Remove the trailing spaces.
21424 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21428 # Transform confdefs.h into a list of #define's. We won't use it as a sed
21429 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
21430 # be either 'cat' or 'sort'.
21431 cat confdefs.h | uniq >conftest.vals
21433 # Break up conftest.vals because some shells have a limit on
21434 # the size of here documents, and old seds have small limits too.
21436 rm -f conftest.tail
21437 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
21438 while grep . conftest.vals >/dev/null
21440 # Write chunks of a limited-size here document to conftest.frag.
21441 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
21442 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
21443 echo 'CEOF' >> $CONFIG_STATUS
21444 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
21445 rm -f conftest.vals
21446 mv conftest.tail conftest.vals
21448 rm -f conftest.vals
21450 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
21452 echo ' cat >> conftest.edit <<CEOF
21453 /@DEFS@/r conftest.frag
21456 sed -f conftest.edit $tmp/in > $tmp/out
21458 mv $tmp/out $tmp/in
21459 rm -f conftest.edit conftest.frag
21460 ' >> $CONFIG_STATUS
21462 cat >>$CONFIG_STATUS <<\EOF
21463 # Let's still pretend it is `configure' which instantiates (i.e., don't
21464 # use $as_me), people would be surprised to read:
21465 # /* config.h. Generated automatically by config.status. */
21466 if test x"$ac_file" = x-; then
21467 echo "/* Generated automatically by configure. */" >$tmp/config.h
21469 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
21471 cat $tmp/in >>$tmp/config.h
21473 if test x"$ac_file" != x-; then
21474 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
21475 { echo "$as_me:21475: $ac_file is unchanged" >&5
21476 echo "$as_me: $ac_file is unchanged" >&6;}
21478 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21479 X"$ac_file" : 'X\(//\)[^/]' \| \
21480 X"$ac_file" : 'X\(//\)$' \| \
21481 X"$ac_file" : 'X\(/\)' \| \
21482 . : '\(.\)' 2>/dev/null ||
21484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21485 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21486 /^X\(\/\/\)$/{ s//\1/; q; }
21487 /^X\(\/\).*/{ s//\1/; q; }
21489 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21490 { case "$ac_dir" in
21491 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
21495 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
21496 case $as_mkdir_dir in
21497 # Skip DOS drivespec
21498 ?:) as_incr_dir=$as_mkdir_dir ;;
21500 as_incr_dir=$as_incr_dir/$as_mkdir_dir
21501 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
21508 mv $tmp/config.h $ac_file
21512 rm -f $tmp/config.h
21516 cat >>$CONFIG_STATUS <<\EOF
21518 # CONFIG_COMMANDS section.
21520 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21521 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21522 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21526 if test "x$cf_with_tests" != xno ; then
21530 if test ! -d $srcdir/$cf_dir; then
21532 elif test -f $srcdir/$cf_dir/programs; then
21533 $AWK -f $srcdir/test/mk-test.awk INSTALL=no ECHO_LINK="$ECHO_LINK" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
21539 cf_prefix=$LIB_PREFIX
21541 if test $cf_cv_shlib_version = cygdll ; then
21542 TINFO_NAME=$TINFO_ARG_SUFFIX
21546 if test -n "$TINFO_SUFFIX" ; then
21547 case $TINFO_SUFFIX in
21549 TINFO_NAME="${TINFO_NAME}tw"
21550 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^tw//'`
21553 TINFO_NAME="${TINFO_NAME}t"
21554 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^t//'`
21557 TINFO_NAME="${TINFO_NAME}w"
21558 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^w//'`
21563 for cf_dir in $SRC_SUBDIRS
21565 if test ! -d $srcdir/$cf_dir ; then
21567 elif test -f $srcdir/$cf_dir/modules; then
21571 for cf_item in $cf_LIST_MODELS
21574 case $cf_item in #(vi
21577 cf_depsuf=$cf_suffix
21581 cf_depsuf=$cf_suffix
21585 cf_depsuf=$cf_suffix
21589 cf_depsuf=$cf_suffix
21592 case $cf_cv_system_name in
21595 cf_depsuf=$cf_suffix
21603 cf_depsuf=$cf_suffix
21609 cf_depsuf=$cf_suffix
21613 cf_depsuf=$cf_suffix
21618 cf_depsuf=$cf_suffix
21622 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
21623 test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"
21625 if test $cf_item = shared ; then
21626 if test "$cf_cv_do_symlinks" = yes ; then
21627 case "$cf_cv_shlib_version" in #(vi
21629 case "$cf_cv_system_name" in #(vi
21631 case .${LIB_SUFFIX} in
21633 cf_suffix=`echo $cf_suffix | sed 's/^tw//'`
21634 cf_suffix=tw'.${REL_VERSION}'"$cf_suffix"
21637 cf_suffix=`echo $cf_suffix | sed 's/^t//'`
21638 cf_suffix=t'.${REL_VERSION}'"$cf_suffix"
21641 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
21642 cf_suffix=w'.${REL_VERSION}'"$cf_suffix"
21645 cf_suffix='.${REL_VERSION}'"$cf_suffix"
21649 *) cf_suffix="$cf_suffix"'.${REL_VERSION}' ;;
21653 case "$cf_cv_system_name" in #(vi
21655 case .${LIB_SUFFIX} in
21657 cf_suffix=`echo $cf_suffix | sed 's/^tw//'`
21658 cf_suffix=tw'.${ABI_VERSION}'"$cf_suffix"
21661 cf_suffix=`echo $cf_suffix | sed 's/^t//'`
21662 cf_suffix=t'.${ABI_VERSION}'"$cf_suffix"
21665 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
21666 cf_suffix=w'.${ABI_VERSION}'"$cf_suffix"
21669 cf_suffix='.${ABI_VERSION}'"$cf_suffix"
21673 *) cf_suffix="$cf_suffix"'.${ABI_VERSION}' ;;
21678 # cygwin needs import library, and has unique naming convention
21679 # use autodetected ${cf_prefix} for import lib and static lib, but
21680 # use 'cyg' prefix for shared lib.
21681 if test $cf_cv_shlib_version = cygdll ; then
21682 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
21683 LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/cyg${cf_dir}${cf_cygsuf}"
21687 LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/${cf_prefix}${cf_dir}${cf_suffix}"
21690 if test $cf_dir = ncurses ; then
21691 cf_subsets="$LIB_SUBSETS"
21692 cf_r_parts="$cf_subsets"
21693 cf_liblist="$LIBS_TO_MAKE"
21695 while test -n "$cf_r_parts"
21697 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
21698 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
21699 if test "$cf_l_parts" != "$cf_r_parts" ; then
21701 case $cf_l_parts in #(vi
21703 cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
21706 cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
21712 if test -n "$cf_item"; then
21713 LIBS_TO_MAKE="$cf_item $LIBS_TO_MAKE"
21720 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
21723 sed -e "s%@LIBS_TO_MAKE@%$LIBS_TO_MAKE%" \
21724 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
21725 $cf_dir/Makefile >$cf_dir/Makefile.out
21726 mv $cf_dir/Makefile.out $cf_dir/Makefile
21728 $AWK -f $srcdir/mk-0th.awk \
21729 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" \
21730 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
21732 for cf_subset in $cf_subsets
21735 for cf_item in $cf_LIST_MODELS
21737 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
21739 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
21741 case $cf_item in #(vi
21744 cf_depsuf=$cf_suffix
21748 cf_depsuf=$cf_suffix
21752 cf_depsuf=$cf_suffix
21756 cf_depsuf=$cf_suffix
21759 case $cf_cv_system_name in
21762 cf_depsuf=$cf_suffix
21770 cf_depsuf=$cf_suffix
21776 cf_depsuf=$cf_suffix
21780 cf_depsuf=$cf_suffix
21785 cf_depsuf=$cf_suffix
21789 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
21790 test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"
21793 libtool) cf_subdir='obj_lo' ;;
21794 normal) cf_subdir='objects' ;;
21795 debug) cf_subdir='obj_g' ;;
21796 profile) cf_subdir='obj_p' ;;
21798 case $cf_cv_system_name in #(vi
21800 cf_subdir='objects' ;;
21802 cf_subdir='obj_s' ;;
21806 # Test for case where we build libtinfo with a different name.
21808 if test $cf_dir = ncurses ; then
21811 cf_libname=${cf_libname}$LIB_SUFFIX
21814 cf_libname=$TINFO_LIB_SUFFIX
21817 cf_libname=$TICS_LIB_SUFFIX
21821 cf_libname=${cf_libname}$LIB_SUFFIX
21823 if test -n "${DFT_ARG_SUFFIX}" ; then
21824 # undo $LIB_SUFFIX add-on in CF_LIB_SUFFIX
21825 cf_suffix=`echo $cf_suffix |sed -e "s%^${LIB_SUFFIX}%%"`
21828 # These dependencies really are for development, not
21829 # builds, but they are useful in porting, too.
21830 cf_depend="../include/ncurses_cfg.h"
21831 if test "$srcdir" = "."; then
21834 cf_reldir="\${srcdir}"
21837 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
21838 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
21839 elif test -f $srcdir/$cf_dir/curses.priv.h; then
21840 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
21844 old_cf_suffix="$cf_suffix"
21845 if test "$cf_cv_shlib_version_infix" = yes ; then
21846 if test -n "$LIB_SUFFIX" ; then
21847 case $LIB_SUFFIX in
21849 cf_libname=`echo $cf_libname | sed 's/tw$//'`
21850 cf_suffix=`echo $cf_suffix | sed 's/^tw//'`
21854 cf_libname=`echo $cf_libname | sed 's/t$//'`
21855 cf_suffix=`echo $cf_suffix | sed 's/^t//'`
21859 cf_libname=`echo $cf_libname | sed 's/w$//'`
21860 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
21867 $AWK -f $srcdir/mk-1st.awk \
21868 name=${cf_libname}${cf_dir_suffix} \
21869 traces=$LIB_TRACING \
21872 prefix=$cf_prefix \
21873 suffix=$cf_suffix \
21874 subset=$cf_subset \
21875 driver=$cf_cv_term_driver \
21877 TermlibRoot=$TINFO_NAME \
21878 TermlibSuffix=$TINFO_SUFFIX \
21879 ShlibVer=$cf_cv_shlib_version \
21880 ShlibVerInfix=$cf_cv_shlib_version_infix \
21881 ReLink=${cf_cv_do_relink:-no} \
21882 DoLinks=$cf_cv_do_symlinks \
21883 rmSoLocs=$cf_cv_rm_so_locs \
21884 ldconfig="$LDCONFIG" \
21885 overwrite=$WITH_OVERWRITE \
21886 depend="$cf_depend" \
21888 libtool_version="$LIBTOOL_VERSION" \
21889 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
21891 cf_suffix="$old_cf_suffix"
21893 for cf_subdir2 in $cf_subdirs lib
21895 test $cf_subdir = $cf_subdir2 && break
21897 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
21898 $AWK -f $srcdir/mk-2nd.awk \
21900 traces=$LIB_TRACING \
21903 subset=$cf_subset \
21906 crenames=$cf_cv_prog_CC_c_o \
21907 cxxrenames=$cf_cv_prog_CXX_c_o \
21908 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
21909 cf_subdirs="$cf_subdirs $cf_subdir"
21914 echo ' cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@' >>Makefile
21917 for cf_dir in $SRC_SUBDIRS
21919 if test ! -d $srcdir/$cf_dir ; then
21923 if test -f $cf_dir/Makefile ; then
21926 echo 'libs \' >> Makefile
21927 echo 'install.libs \' >> Makefile
21928 echo 'uninstall.libs ::' >> Makefile
21929 echo ' cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@' >> Makefile
21934 if test -f $srcdir/$cf_dir/modules; then
21936 if test -f $srcdir/$cf_dir/headers; then
21937 cat >> Makefile <<CF_EOF
21938 install.includes \\
21939 uninstall.includes \\
21942 if test "$cf_dir" != "c++" ; then
21943 echo 'lint \' >> Makefile
21945 cat >> Makefile <<CF_EOF
21951 uninstall.$cf_dir ::
21952 cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@
21954 elif test -f $srcdir/$cf_dir/headers; then
21955 cat >> Makefile <<CF_EOF
21960 install.includes \\
21961 uninstall.includes ::
21962 cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@
21967 cat >> Makefile <<CF_EOF
21969 install.libs uninstall.libs \\
21970 install.data uninstall.data ::
21971 $MAKE_TERMINFO cd misc && \${MAKE} \${CF_MFLAGS} \$@
21974 if test "x$cf_with_manpages" = xyes; then
21975 cat >> Makefile <<CF_EOF
21979 cd man && \${MAKE} \${CF_MFLAGS} \$@
21983 cat >> Makefile <<CF_EOF
21986 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
21987 rm -f headers.sh headers.sed mk_shared_lib.sh
21988 rm -f edit_man.* man_alias.*
21989 rm -rf \${DIRS_TO_MAKE}
21992 # Special case: tack's manpage lives in its own directory.
21993 if test "x$cf_with_manpages" = xyes; then
21994 if test -d tack ; then
21995 if test -f $srcdir/$tack.h; then
21996 cat >> Makefile <<CF_EOF
22000 cd tack && \${MAKE} \${CF_MFLAGS} \$@
22006 rm -f headers.sed headers.sh
22008 echo creating headers.sh
22009 cat >headers.sh <<CF_EOF
22011 # This shell script is generated by the 'configure' script. It is invoked in a
22012 # subdirectory of the build tree. It generates a sed-script in the parent
22013 # directory that is used to adjust includes for header files that reside in a
22014 # subdirectory of /usr/include, etc.
22016 while test \$# != 3
22018 PRG="\$PRG \$1"; shift
22023 TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
22024 TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
22025 echo installing \$SRC in \$DST
22028 if test $WITH_CURSES_H = yes; then
22029 cat >>headers.sh <<CF_EOF
22032 END=\`basename \$DST\`
22033 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
22035 NAME=\`basename \$i\`
22036 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
22040 echo "" >> \$TMPSED
22046 cat >>headers.sh <<CF_EOF
22049 END=\`basename \$DST\`
22050 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
22052 NAME=\`basename \$i\`
22053 if test "\$NAME" = "curses.h"
22055 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
22058 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
22062 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
22067 cat >>headers.sh <<CF_EOF
22069 sed -f \$TMPSED \$SRC > \$TMPSRC
22070 NAME=\`basename \$SRC\`
22072 if test $WITH_CURSES_H != yes; then
22073 cat >>headers.sh <<CF_EOF
22074 test "\$NAME" = "curses.h" && NAME=ncurses.h
22077 cat >>headers.sh <<CF_EOF
22078 # Just in case someone gzip'd manpages, remove the conflicting copy.
22079 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
22081 eval \$PRG \$TMPSRC \$DST/\$NAME
22082 rm -f \$TMPSRC \$TMPSED
22085 chmod 0755 headers.sh
22087 for cf_dir in $SRC_SUBDIRS
22089 if test ! -d $srcdir/$cf_dir ; then
22093 if test -f $srcdir/$cf_dir/headers; then
22094 $AWK -f $srcdir/mk-hdr.awk \
22095 subset="$LIB_SUBSETS" \
22096 compat="$WITH_CURSES_H" \
22097 $srcdir/$cf_dir/headers >>$cf_dir/Makefile
22100 if test -f $srcdir/$cf_dir/modules; then
22101 if test "$cf_dir" != "c++" ; then
22102 cat >>$cf_dir/Makefile <<"CF_EOF"
22103 depend : ${AUTO_SRC}
22104 makedepend -- ${CPPFLAGS} -- ${C_SRC}
22106 # DO NOT DELETE THIS LINE -- make depend depends on it.
22112 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
22113 if test -z "$USE_OLD_MAKERULES" ; then
22114 $AWK -f $srcdir/Ada95/mk-1st.awk <$srcdir/Ada95/src/modules >>Ada95/src/Makefile
22122 cat >>$CONFIG_STATUS <<\EOF
22124 { (exit 0); exit 0; }
22126 chmod +x $CONFIG_STATUS
22127 ac_clean_files=$ac_clean_files_save
22129 # configure is writing to config.log, and then calls config.status.
22130 # config.status does its own redirection, appending to config.log.
22131 # Unfortunately, on DOS this fails, as config.log is still kept open
22132 # by configure, so config.status won't be able to write to it; its
22133 # output is simply discarded. So we exec the FD to /dev/null,
22134 # effectively closing config.log, so it can be properly (re)opened and
22135 # appended to by config.status. When coming back to configure, we
22136 # need to make the FD available again.
22137 if test "$no_create" != yes; then
22140 $SHELL $CONFIG_STATUS || ac_cs_success=false
22142 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22143 # would make configure fail if this is the last instruction.
22144 $ac_cs_success || { (exit 1); exit 1; }
22146 ${MAKE:-make} preinstall