2 # From configure.in Revision: 1.503 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20100530.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Avoid depending upon Character Ranges.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
35 if expr a : '\(a\)' >/dev/null 2>&1; then
41 rm -f conf$$ conf$$.exe conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
44 # We could just check for DJGPP; but this test a) works b) is more generic
45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 if test -f conf$$.exe; then
47 # Don't use ln at all; we don't have any links
52 elif ln conf$$.file conf$$ 2>/dev/null; then
57 rm -f conf$$ conf$$.exe conf$$.file
59 as_executable_p="test -f"
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
79 # We need space, tab and new line, in precisely that order.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
97 ac_default_prefix=/usr/local
101 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 # This variable seems obsolete. It should probably be removed, and
105 # only ac_max_sed_lines should be used.
106 : ${ac_max_here_lines=38}
108 ac_unique_file="ncurses/base/lib_initscr.c"
109 # Factoring default headers for most tests.
110 ac_includes_default="\
113 # include <sys/types.h>
116 # include <sys/stat.h>
127 # if !STDC_HEADERS && HAVE_MEMORY_H
133 # include <strings.h>
136 # include <inttypes.h>
146 # Initialize some variables set by options.
148 ac_init_version=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
158 program_transform_name=s,x,x,
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datadir='${prefix}/share'
175 sysconfdir='${prefix}/etc'
176 sharedstatedir='${prefix}/com'
177 localstatedir='${prefix}/var'
178 libdir='${exec_prefix}/lib'
179 includedir='${prefix}/include'
180 oldincludedir='/usr/include'
181 infodir='${prefix}/info'
182 mandir='${prefix}/man'
184 # Identity of this package.
194 # If the previous option needs an argument, assign it.
195 if test -n "$ac_prev"; then
196 eval "$ac_prev=\$ac_option"
201 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
203 # Accept the important Cygnus configure options, so we can diagnose typos.
207 -bindir | --bindir | --bindi | --bind | --bin | --bi)
209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
212 -build | --build | --buil | --bui | --bu)
213 ac_prev=build_alias ;;
214 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
215 build_alias=$ac_optarg ;;
217 -cache-file | --cache-file | --cache-fil | --cache-fi \
218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
219 ac_prev=cache_file ;;
220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
222 cache_file=$ac_optarg ;;
225 cache_file=config.cache ;;
227 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
229 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
231 datadir=$ac_optarg ;;
233 -disable-* | --disable-*)
234 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
235 # Reject names that are not valid shell variable names.
236 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
237 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
238 { (exit 1); exit 1; }; }
239 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
240 eval "enable_$ac_feature=no" ;;
242 -enable-* | --enable-*)
243 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
244 # Reject names that are not valid shell variable names.
245 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
246 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
247 { (exit 1); exit 1; }; }
248 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
250 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
253 eval "enable_$ac_feature='$ac_optarg'" ;;
255 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
256 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
257 | --exec | --exe | --ex)
258 ac_prev=exec_prefix ;;
259 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
260 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
261 | --exec=* | --exe=* | --ex=*)
262 exec_prefix=$ac_optarg ;;
264 -gas | --gas | --ga | --g)
265 # Obsolete; use --with-gas.
268 -help | --help | --hel | --he | -h)
270 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
271 ac_init_help=recursive ;;
272 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
273 ac_init_help=short ;;
275 -host | --host | --hos | --ho)
276 ac_prev=host_alias ;;
277 -host=* | --host=* | --hos=* | --ho=*)
278 host_alias=$ac_optarg ;;
280 -includedir | --includedir | --includedi | --included | --include \
281 | --includ | --inclu | --incl | --inc)
282 ac_prev=includedir ;;
283 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
284 | --includ=* | --inclu=* | --incl=* | --inc=*)
285 includedir=$ac_optarg ;;
287 -infodir | --infodir | --infodi | --infod | --info | --inf)
289 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
290 infodir=$ac_optarg ;;
292 -libdir | --libdir | --libdi | --libd)
294 -libdir=* | --libdir=* | --libdi=* | --libd=*)
297 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
298 | --libexe | --libex | --libe)
299 ac_prev=libexecdir ;;
300 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
301 | --libexe=* | --libex=* | --libe=*)
302 libexecdir=$ac_optarg ;;
304 -localstatedir | --localstatedir | --localstatedi | --localstated \
305 | --localstate | --localstat | --localsta | --localst \
306 | --locals | --local | --loca | --loc | --lo)
307 ac_prev=localstatedir ;;
308 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
309 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
310 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
311 localstatedir=$ac_optarg ;;
313 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
315 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
319 # Obsolete; use --without-fp.
322 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
326 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
327 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
330 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
331 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
332 | --oldin | --oldi | --old | --ol | --o)
333 ac_prev=oldincludedir ;;
334 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
335 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
336 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
337 oldincludedir=$ac_optarg ;;
339 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
341 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
344 -program-prefix | --program-prefix | --program-prefi | --program-pref \
345 | --program-pre | --program-pr | --program-p)
346 ac_prev=program_prefix ;;
347 -program-prefix=* | --program-prefix=* | --program-prefi=* \
348 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
349 program_prefix=$ac_optarg ;;
351 -program-suffix | --program-suffix | --program-suffi | --program-suff \
352 | --program-suf | --program-su | --program-s)
353 ac_prev=program_suffix ;;
354 -program-suffix=* | --program-suffix=* | --program-suffi=* \
355 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
356 program_suffix=$ac_optarg ;;
358 -program-transform-name | --program-transform-name \
359 | --program-transform-nam | --program-transform-na \
360 | --program-transform-n | --program-transform- \
361 | --program-transform | --program-transfor \
362 | --program-transfo | --program-transf \
363 | --program-trans | --program-tran \
364 | --progr-tra | --program-tr | --program-t)
365 ac_prev=program_transform_name ;;
366 -program-transform-name=* | --program-transform-name=* \
367 | --program-transform-nam=* | --program-transform-na=* \
368 | --program-transform-n=* | --program-transform-=* \
369 | --program-transform=* | --program-transfor=* \
370 | --program-transfo=* | --program-transf=* \
371 | --program-trans=* | --program-tran=* \
372 | --progr-tra=* | --program-tr=* | --program-t=*)
373 program_transform_name=$ac_optarg ;;
375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
376 | -silent | --silent | --silen | --sile | --sil)
379 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
381 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
383 sbindir=$ac_optarg ;;
385 -sharedstatedir | --sharedstatedir | --sharedstatedi \
386 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
387 | --sharedst | --shareds | --shared | --share | --shar \
389 ac_prev=sharedstatedir ;;
390 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
391 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
392 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
394 sharedstatedir=$ac_optarg ;;
396 -site | --site | --sit)
398 -site=* | --site=* | --sit=*)
401 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
403 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
406 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
407 | --syscon | --sysco | --sysc | --sys | --sy)
408 ac_prev=sysconfdir ;;
409 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
410 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
411 sysconfdir=$ac_optarg ;;
413 -target | --target | --targe | --targ | --tar | --ta | --t)
414 ac_prev=target_alias ;;
415 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
416 target_alias=$ac_optarg ;;
418 -v | -verbose | --verbose | --verbos | --verbo | --verb)
421 -version | --version | --versio | --versi | --vers | -V)
425 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
426 # Reject names that are not valid shell variable names.
427 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
428 { echo "$as_me: error: invalid package name: $ac_package" >&2
429 { (exit 1); exit 1; }; }
430 ac_package=`echo $ac_package| sed 's/-/_/g'`
432 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
435 eval "with_$ac_package='$ac_optarg'" ;;
437 -without-* | --without-*)
438 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
439 # Reject names that are not valid shell variable names.
440 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
441 { echo "$as_me: error: invalid package name: $ac_package" >&2
442 { (exit 1); exit 1; }; }
443 ac_package=`echo $ac_package | sed 's/-/_/g'`
444 eval "with_$ac_package=no" ;;
447 # Obsolete; use --with-x.
450 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
451 | --x-incl | --x-inc | --x-in | --x-i)
452 ac_prev=x_includes ;;
453 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
454 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
455 x_includes=$ac_optarg ;;
457 -x-libraries | --x-libraries | --x-librarie | --x-librari \
458 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
459 ac_prev=x_libraries ;;
460 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
461 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
462 x_libraries=$ac_optarg ;;
464 -*) { echo "$as_me: error: unrecognized option: $ac_option
465 Try \`$0 --help' for more information." >&2
466 { (exit 1); exit 1; }; }
470 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
471 # Reject names that are not valid shell variable names.
472 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
473 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
474 { (exit 1); exit 1; }; }
475 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
476 eval "$ac_envvar='$ac_optarg'"
480 # FIXME: should be removed in autoconf 3.0.
481 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
482 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
483 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
484 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
490 if test -n "$ac_prev"; then
491 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
492 { echo "$as_me: error: missing argument to $ac_option" >&2
493 { (exit 1); exit 1; }; }
496 # Be sure to have absolute paths.
497 for ac_var in exec_prefix prefix
499 eval ac_val=$`echo $ac_var`
501 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
502 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
503 { (exit 1); exit 1; }; };;
507 # Be sure to have absolute paths.
508 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
509 localstatedir libdir includedir oldincludedir infodir mandir
511 eval ac_val=$`echo $ac_var`
513 [\\/$]* | ?:[\\/]* ) ;;
514 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
515 { (exit 1); exit 1; }; };;
519 # There might be people who depend on the old broken behavior: `$host'
520 # used to hold the argument of --host etc.
525 # FIXME: should be removed in autoconf 3.0.
526 if test "x$host_alias" != x; then
527 if test "x$build_alias" = x; then
528 cross_compiling=maybe
529 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
530 If a cross compiler is detected then cross compile mode will be used." >&2
531 elif test "x$build_alias" != "x$host_alias"; then
537 test -n "$host_alias" && ac_tool_prefix=$host_alias-
539 test "$silent" = yes && exec 6>/dev/null
541 # Find the source files, if location was not specified.
542 if test -z "$srcdir"; then
543 ac_srcdir_defaulted=yes
544 # Try the directory containing this script, then its parent.
546 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
547 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
549 if test ! -r $srcdir/$ac_unique_file; then
553 ac_srcdir_defaulted=no
555 if test ! -r $srcdir/$ac_unique_file; then
556 if test "$ac_srcdir_defaulted" = yes; then
557 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
558 { (exit 1); exit 1; }; }
560 { echo "$as_me: error: cannot find sources in $srcdir" >&2
561 { (exit 1); exit 1; }; }
564 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
565 ac_env_build_alias_set=${build_alias+set}
566 ac_env_build_alias_value=$build_alias
567 ac_cv_env_build_alias_set=${build_alias+set}
568 ac_cv_env_build_alias_value=$build_alias
569 ac_env_host_alias_set=${host_alias+set}
570 ac_env_host_alias_value=$host_alias
571 ac_cv_env_host_alias_set=${host_alias+set}
572 ac_cv_env_host_alias_value=$host_alias
573 ac_env_target_alias_set=${target_alias+set}
574 ac_env_target_alias_value=$target_alias
575 ac_cv_env_target_alias_set=${target_alias+set}
576 ac_cv_env_target_alias_value=$target_alias
577 ac_env_CC_set=${CC+set}
579 ac_cv_env_CC_set=${CC+set}
580 ac_cv_env_CC_value=$CC
581 ac_env_CFLAGS_set=${CFLAGS+set}
582 ac_env_CFLAGS_value=$CFLAGS
583 ac_cv_env_CFLAGS_set=${CFLAGS+set}
584 ac_cv_env_CFLAGS_value=$CFLAGS
585 ac_env_LDFLAGS_set=${LDFLAGS+set}
586 ac_env_LDFLAGS_value=$LDFLAGS
587 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
588 ac_cv_env_LDFLAGS_value=$LDFLAGS
589 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
590 ac_env_CPPFLAGS_value=$CPPFLAGS
591 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
592 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
593 ac_env_CPP_set=${CPP+set}
594 ac_env_CPP_value=$CPP
595 ac_cv_env_CPP_set=${CPP+set}
596 ac_cv_env_CPP_value=$CPP
597 ac_env_CXX_set=${CXX+set}
598 ac_env_CXX_value=$CXX
599 ac_cv_env_CXX_set=${CXX+set}
600 ac_cv_env_CXX_value=$CXX
601 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
602 ac_env_CXXFLAGS_value=$CXXFLAGS
603 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
604 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
605 ac_env_CXXCPP_set=${CXXCPP+set}
606 ac_env_CXXCPP_value=$CXXCPP
607 ac_cv_env_CXXCPP_set=${CXXCPP+set}
608 ac_cv_env_CXXCPP_value=$CXXCPP
611 # Report the --help message.
613 if test "$ac_init_help" = "long"; then
614 # Omit some internal or obsolete options to make the list less imposing.
615 # This message is too long to be a string in the A/UX 3.1 sh.
617 \`configure' configures this package to adapt to many kinds of systems.
619 Usage: $0 [OPTION]... [VAR=VALUE]...
621 To assign environment variables (e.g., CC, CFLAGS...), specify them as
622 VAR=VALUE. See below for descriptions of some of the useful variables.
624 Defaults for the options are specified in brackets.
627 -h, --help display this help and exit
628 --help=short display options specific to this package
629 --help=recursive display the short help of all the included packages
630 -V, --version display version information and exit
631 -q, --quiet, --silent do not print \`checking...' messages
632 --cache-file=FILE cache test results in FILE [disabled]
633 -C, --config-cache alias for \`--cache-file=config.cache'
634 -n, --no-create do not create output files
635 --srcdir=DIR find the sources in DIR [configure dir or \`..']
640 Installation directories:
641 --prefix=PREFIX install architecture-independent files in PREFIX
643 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
646 By default, \`make install' will install all the files in
647 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
648 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
649 for instance \`--prefix=\$HOME'.
651 For better control, use the options below.
653 Fine tuning of the installation directories:
654 --bindir=DIR user executables [EPREFIX/bin]
655 --sbindir=DIR system admin executables [EPREFIX/sbin]
656 --libexecdir=DIR program executables [EPREFIX/libexec]
657 --datadir=DIR read-only architecture-independent data [PREFIX/share]
658 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
659 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
660 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
661 --libdir=DIR object code libraries [EPREFIX/lib]
662 --includedir=DIR C header files [PREFIX/include]
663 --oldincludedir=DIR C header files for non-gcc [/usr/include]
664 --infodir=DIR info documentation [PREFIX/info]
665 --mandir=DIR man documentation [PREFIX/man]
671 --program-prefix=PREFIX prepend PREFIX to installed program names
672 --program-suffix=SUFFIX append SUFFIX to installed program names
673 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
676 --build=BUILD configure for building on BUILD [guessed]
677 --host=HOST build programs to run on HOST [BUILD]
678 --target=TARGET configure for building compilers for TARGET [HOST]
682 if test -n "$ac_init_help"; then
687 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
688 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
691 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
692 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
694 --with-rel-version=XXX override derived release version
695 --with-abi-version=XXX override derived ABI version
696 --with-system-type=XXX test: override derived host system-type
697 --without-cxx do not adjust ncurses bool to match C++
698 --without-cxx-binding do not build C++ binding and demo
699 --without-ada suppress check for Ada95, don't build demo
700 --without-manpages suppress install of manpages
701 --without-progs suppress build with programs (e.g., tic)
702 --without-curses-h install curses.h as ncurses.h only
703 --with-pkg-config{=path} enable/disable use of pkg-config
704 --enable-pc-files generate and install .pc files for pkg-config
705 --enable-mixed-case tic should assume mixed-case filenames
706 --with-install-prefix prefixes actual install-location ($DESTDIR)
707 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
708 --with-build-cc=XXX the build C compiler ($BUILD_CC)
709 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
710 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
711 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
712 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
713 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
714 Options to Specify the Libraries Built/Used:
715 --disable-libtool-version enable to use libtool's incompatible naming scheme
716 --with-libtool generate libraries with libtool
717 --with-shared generate shared-libraries
718 --with-normal generate normal-libraries (default)
719 --with-debug generate debug-libraries (default)
720 --with-profile generate profile-libraries
721 --with-termlib generate separate terminfo library
722 --with-ticlib generate separate tic library
723 --with-gpm use Alessandro Rubini's GPM library
724 --without-dlsym do not use dlsym() to load GPM dynamically
725 --with-sysmouse use sysmouse (FreeBSD console)
726 --enable-rpath use rpath option when generating shared libraries
727 --disable-relink relink shared libraries during install
728 --with-shlib-version=X Specify rel or abi version for shared libs
729 --disable-rpath-hack don't add rpath options for additional libraries
730 Fine-Tuning Your Configuration:
731 --disable-overwrite leave out the link to -lcurses
732 --disable-database do not use terminfo, only fallbacks/termcap
733 --with-database=XXX specify terminfo source to install
734 --with-hashed-db specify hashed-database library
735 --with-fallbacks=XXX specify list of fallback terminal descriptions
736 --without-xterm-new specify if xterm terminfo should be old version
737 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
738 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
739 --disable-big-core assume machine has little memory
740 --disable-big-strings assume compiler has only standard-size strings
741 --enable-termcap compile in termcap fallback support
742 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
743 --enable-getcap fast termcap load, no xrefs to terminfo
744 --enable-getcap-cache cache translated termcaps in ~/.terminfo
745 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
746 --disable-root-environ restrict environment when running as root
747 --enable-symlinks make tic use symbolic links not hard links
748 --enable-broken_linker compile with broken-linker support code
749 --enable-bsdpad recognize BSD-style prefix padding
750 --enable-widec compile with wide-char/UTF-8 code
751 --disable-lp64 allow chtype to be long (ignore _LP64)
752 --disable-largefile omit support for large files
753 --disable-tparm-varargs compile tparm() without varargs interface
754 --disable-tic-depends link tic library without explicit dependency on ncurses library
755 --with-bool=TYPE override fallback type of bool variable
756 --with-caps=alt compile with alternate Caps file
757 --with-chtype=TYPE override type of chtype
758 --with-ospeed=TYPE override type of ospeed variable
759 --with-mmask-t=TYPE override type of mmask_t
760 --with-ccharw-max=XXX override size CCHARW_MAX
761 --with-rcs-ids compile-in RCS identifiers
762 Options to Specify How Manpages are Installed:
763 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
764 optionally formatted/catonly, e.g., gzip,formatted
765 --with-manpage-renames specify manpage-renaming
766 --with-manpage-aliases specify manpage-aliases using .so
767 --with-manpage-symlinks specify manpage-aliases using symlinks
768 --with-manpage-tbl specify manpage processing with tbl
770 --disable-ext-funcs disable function-extensions
771 --enable-sp-funcs enable experimental SCREEN-extensions
772 --enable-term-driver enable experimental terminal-driver
773 --enable-const compile with extra/non-standard const
774 --enable-ext-colors compile for 256-color support
775 --enable-ext-mouse compile for extended mouse-encoding
776 --enable-no-padding compile with $NCURSES_NO_PADDING code
777 --enable-signed-char compile using signed Boolean's in term.h
778 --enable-sigwinch compile with SIGWINCH handler
779 --enable-tcap-names compile with user-definable terminal capabilities
781 --without-develop disable development options
782 --enable-hard-tabs compile with hard-tabs code
783 --enable-xmc-glitch compile with support for xmc (magic-cookie)
785 --disable-assumed-color do not assume anything about default-colors
786 --disable-hashmap compile without hashmap scrolling-optimization
787 --enable-colorfgbg compile-in experimental $COLORFGBG code
788 --enable-interop compile-in experimental interop bindings
789 --with-pthread use POSIX thread library
790 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
791 --enable-weak-symbols enable weak-symbols for pthreads
792 --enable-reentrant compile with experimental reentrant code
793 --with-wrap-prefix=XXX override prefix used for public variables
794 --enable-safe-sprintf compile with experimental safe-sprintf code
795 --disable-scroll-hints compile without scroll-hints code
796 --enable-wgetch-events compile with experimental wgetch-events code
797 Testing/development Options:
798 --enable-echo build: display "compiling" commands (default)
799 --enable-warnings build: turn on GCC compiler warnings
800 --enable-assertions test: turn on generation of assertion code
801 --with-dmalloc test: use Gray Watson's dmalloc library
802 --with-dbmalloc test: use Conor Cahill's dbmalloc library
803 --with-valgrind test: use valgrind
804 --disable-leaks test: free permanent memory, analyze leaks
805 --enable-expanded test: generate functions for certain macros
806 --disable-macros test: use functions rather than macros
807 --with-trace test: add trace() function to all models of ncurses
808 Ada95 Binding Options:
809 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
810 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
811 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
812 --with-ada-sharedlib=XX build Ada95 shared-library
814 Some influential environment variables:
815 CC C compiler command
816 CFLAGS C compiler flags
817 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
818 nonstandard directory <lib dir>
819 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
820 headers in a nonstandard directory <include dir>
822 CXX C++ compiler command
823 CXXFLAGS C++ compiler flags
824 CXXCPP C++ preprocessor
826 Use these variables to override the choices made by `configure' or to help
827 it to find libraries and programs with nonstandard names/locations.
832 if test "$ac_init_help" = "recursive"; then
833 # If there are subdirs, report their specific --help.
835 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
837 # A "../" for each directory in /$ac_subdir.
838 ac_dots=`echo $ac_subdir |
839 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
842 .) # No --srcdir option. We are building in place.
843 ac_sub_srcdir=$srcdir ;;
844 [\\/]* | ?:[\\/]* ) # Absolute path.
845 ac_sub_srcdir=$srcdir/$ac_subdir ;;
847 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
850 # Check for guested configure; otherwise get Cygnus style configure.
851 if test -f $ac_sub_srcdir/configure.gnu; then
853 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
854 elif test -f $ac_sub_srcdir/configure; then
856 $SHELL $ac_sub_srcdir/configure --help=recursive
857 elif test -f $ac_sub_srcdir/configure.ac ||
858 test -f $ac_sub_srcdir/configure.in; then
862 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
868 test -n "$ac_init_help" && exit 0
869 if $ac_init_version; then
872 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
873 Free Software Foundation, Inc.
874 This configure script is free software; the Free Software Foundation
875 gives unlimited permission to copy, distribute and modify it.
881 This file contains any messages produced by compilers while
882 running configure, to aid debugging if configure makes a mistake.
884 It was created by $as_me, which was
885 generated by GNU Autoconf 2.52.20100530. Invocation command line was
896 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
897 uname -m = `(uname -m) 2>/dev/null || echo unknown`
898 uname -r = `(uname -r) 2>/dev/null || echo unknown`
899 uname -s = `(uname -s) 2>/dev/null || echo unknown`
900 uname -v = `(uname -v) 2>/dev/null || echo unknown`
902 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
903 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
905 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
906 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
907 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
908 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
909 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
910 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
911 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
925 # Keep a trace of the command line.
926 # Strip out --no-create and --no-recursion so they do not pile up.
927 # Also quote any args containing shell meta-characters.
933 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
934 | --no-cr | --no-c) ;;
935 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
936 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
937 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
938 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
939 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
941 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
944 # Get rid of the leading space.
947 # When interrupted or exit'd, cleanup temporary files, and complete
948 # config.log. We remove comments because anyway the quotes in there
949 # would cause problems or look ugly.
951 # Save into config.log some information that might help in debugging.
953 echo "## ----------------- ##" >&5
954 echo "## Cache variables. ##" >&5
955 echo "## ----------------- ##" >&5
957 # The following way of writing the cache mishandles newlines in values,
960 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
963 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
964 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
968 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
972 sed "/^$/d" confdefs.h >conftest.log
973 if test -s conftest.log; then
975 echo "## ------------ ##" >&5
976 echo "## confdefs.h. ##" >&5
977 echo "## ------------ ##" >&5
982 test "$ac_signal" != 0 &&
983 echo "$as_me: caught signal $ac_signal" >&5
984 echo "$as_me: exit $exit_status" >&5
985 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
988 for ac_signal in 1 2 13 15; do
989 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
993 # confdefs.h avoids OS command line length limits that DEFS can exceed.
994 rm -rf conftest* confdefs.h
995 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
998 # Let the site file select an alternate cache file if it wants to.
999 # Prefer explicitly selected file to automatically selected ones.
1000 if test -z "$CONFIG_SITE"; then
1001 if test "x$prefix" != xNONE; then
1002 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1004 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1007 for ac_site_file in $CONFIG_SITE; do
1008 if test -r "$ac_site_file"; then
1009 { echo "$as_me:1009: loading site script $ac_site_file" >&5
1010 echo "$as_me: loading site script $ac_site_file" >&6;}
1011 cat "$ac_site_file" >&5
1016 if test -r "$cache_file"; then
1017 # Some versions of bash will fail to source /dev/null (special
1018 # files actually), so we avoid doing that.
1019 if test -f "$cache_file"; then
1020 { echo "$as_me:1020: loading cache $cache_file" >&5
1021 echo "$as_me: loading cache $cache_file" >&6;}
1023 [\\/]* | ?:[\\/]* ) . $cache_file;;
1024 *) . ./$cache_file;;
1028 { echo "$as_me:1028: creating cache $cache_file" >&5
1029 echo "$as_me: creating cache $cache_file" >&6;}
1033 # Check that the precious variables saved in the cache have kept the same
1035 ac_cache_corrupted=false
1036 for ac_var in `(set) 2>&1 |
1037 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1038 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1039 eval ac_new_set=\$ac_env_${ac_var}_set
1040 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1041 eval ac_new_val="\$ac_env_${ac_var}_value"
1042 case $ac_old_set,$ac_new_set in
1044 { echo "$as_me:1044: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1045 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1046 ac_cache_corrupted=: ;;
1048 { echo "$as_me:1048: error: \`$ac_var' was not set in the previous run" >&5
1049 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1050 ac_cache_corrupted=: ;;
1053 if test "x$ac_old_val" != "x$ac_new_val"; then
1054 { echo "$as_me:1054: error: \`$ac_var' has changed since the previous run:" >&5
1055 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1056 { echo "$as_me:1056: former value: $ac_old_val" >&5
1057 echo "$as_me: former value: $ac_old_val" >&2;}
1058 { echo "$as_me:1058: current value: $ac_new_val" >&5
1059 echo "$as_me: current value: $ac_new_val" >&2;}
1060 ac_cache_corrupted=:
1063 # Pass precious variables to config.status. It doesn't matter if
1064 # we pass some twice (in addition to the command line arguments).
1065 if test "$ac_new_set" = set; then
1067 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1068 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1069 ac_configure_args="$ac_configure_args '$ac_arg'"
1071 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1076 if $ac_cache_corrupted; then
1077 { echo "$as_me:1077: error: changes in the environment can compromise the build" >&5
1078 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1079 { { echo "$as_me:1079: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1080 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1081 { (exit 1); exit 1; }; }
1085 ac_cpp='$CPP $CPPFLAGS'
1086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1089 ac_main_return=return
1091 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1092 *c*,-n*) ECHO_N= ECHO_C='
1094 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1095 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1097 echo "#! $SHELL" >conftest.sh
1098 echo "exit 0" >>conftest.sh
1099 chmod +x conftest.sh
1100 if { (echo "$as_me:1100: PATH=\".;.\"; conftest.sh") >&5
1101 (PATH=".;."; conftest.sh) 2>&5
1103 echo "$as_me:1103: \$? = $ac_status" >&5
1104 (exit $ac_status); }; then
1105 ac_path_separator=';'
1109 PATH_SEPARATOR="$ac_path_separator"
1112 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1116 echo "$as_me:1116: checking for egrep" >&5
1117 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1118 if test "${ac_cv_prog_egrep+set}" = set; then
1119 echo $ECHO_N "(cached) $ECHO_C" >&6
1121 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1122 then ac_cv_prog_egrep='grep -E'
1123 else ac_cv_prog_egrep='egrep'
1126 echo "$as_me:1126: result: $ac_cv_prog_egrep" >&5
1127 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1128 EGREP=$ac_cv_prog_egrep
1130 test -z "$EGREP" && { { echo "$as_me:1130: error: No egrep program found" >&5
1131 echo "$as_me: error: No egrep program found" >&2;}
1132 { (exit 1); exit 1; }; }
1134 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1135 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1136 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1137 cf_cv_abi_version=${NCURSES_MAJOR}
1138 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1139 cf_cv_timestamp=`date`
1140 echo "$as_me:1140: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1141 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1143 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1145 # Check whether --with-rel-version or --without-rel-version was given.
1146 if test "${with_rel_version+set}" = set; then
1147 withval="$with_rel_version"
1148 { echo "$as_me:1148: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1149 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1150 cf_cv_rel_version=$withval
1153 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1154 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1156 if test -n "$NCURSES_MAJOR" ; then
1157 case $NCURSES_MAJOR in #(vi
1161 { { echo "$as_me:1161: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1162 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1163 { (exit 1); exit 1; }; }
1167 { { echo "$as_me:1167: error: Release major-version value is empty" >&5
1168 echo "$as_me: error: Release major-version value is empty" >&2;}
1169 { (exit 1); exit 1; }; }
1172 if test -n "$NCURSES_MINOR" ; then
1173 case $NCURSES_MINOR in #(vi
1177 { { echo "$as_me:1177: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1178 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1179 { (exit 1); exit 1; }; }
1183 { { echo "$as_me:1183: error: Release minor-version value is empty" >&5
1184 echo "$as_me: error: Release minor-version value is empty" >&2;}
1185 { (exit 1); exit 1; }; }
1188 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1190 # Check whether --with-abi-version or --without-abi-version was given.
1191 if test "${with_abi_version+set}" = set; then
1192 withval="$with_abi_version"
1193 { echo "$as_me:1193: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1194 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1195 cf_cv_abi_version=$withval
1198 if test -n "$cf_cv_abi_version" ; then
1199 case $cf_cv_abi_version in #(vi
1203 { { echo "$as_me:1203: error: ABI version is not a number: $cf_cv_abi_version" >&5
1204 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1205 { (exit 1); exit 1; }; }
1209 { { echo "$as_me:1209: error: ABI version value is empty" >&5
1210 echo "$as_me: error: ABI version value is empty" >&2;}
1211 { (exit 1); exit 1; }; }
1215 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1216 if test -f $ac_dir/install-sh; then
1218 ac_install_sh="$ac_aux_dir/install-sh -c"
1220 elif test -f $ac_dir/install.sh; then
1222 ac_install_sh="$ac_aux_dir/install.sh -c"
1224 elif test -f $ac_dir/shtool; then
1226 ac_install_sh="$ac_aux_dir/shtool install -c"
1230 if test -z "$ac_aux_dir"; then
1231 { { echo "$as_me:1231: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1232 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1233 { (exit 1); exit 1; }; }
1235 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1236 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1237 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1239 # Make sure we can run config.sub.
1240 $ac_config_sub sun4 >/dev/null 2>&1 ||
1241 { { echo "$as_me:1241: error: cannot run $ac_config_sub" >&5
1242 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1243 { (exit 1); exit 1; }; }
1245 echo "$as_me:1245: checking build system type" >&5
1246 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1247 if test "${ac_cv_build+set}" = set; then
1248 echo $ECHO_N "(cached) $ECHO_C" >&6
1250 ac_cv_build_alias=$build_alias
1251 test -z "$ac_cv_build_alias" &&
1252 ac_cv_build_alias=`$ac_config_guess`
1253 test -z "$ac_cv_build_alias" &&
1254 { { echo "$as_me:1254: error: cannot guess build type; you must specify one" >&5
1255 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1256 { (exit 1); exit 1; }; }
1257 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1258 { { echo "$as_me:1258: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1259 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1260 { (exit 1); exit 1; }; }
1263 echo "$as_me:1263: result: $ac_cv_build" >&5
1264 echo "${ECHO_T}$ac_cv_build" >&6
1266 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1267 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1268 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1270 echo "$as_me:1270: checking host system type" >&5
1271 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1272 if test "${ac_cv_host+set}" = set; then
1273 echo $ECHO_N "(cached) $ECHO_C" >&6
1275 ac_cv_host_alias=$host_alias
1276 test -z "$ac_cv_host_alias" &&
1277 ac_cv_host_alias=$ac_cv_build_alias
1278 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1279 { { echo "$as_me:1279: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1280 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1281 { (exit 1); exit 1; }; }
1284 echo "$as_me:1284: result: $ac_cv_host" >&5
1285 echo "${ECHO_T}$ac_cv_host" >&6
1287 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1288 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1289 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1291 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1292 echo "$as_me:1292: checking target system type" >&5
1293 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1294 if test "${ac_cv_target+set}" = set; then
1295 echo $ECHO_N "(cached) $ECHO_C" >&6
1297 ac_cv_target_alias=$target_alias
1298 test "x$ac_cv_target_alias" = "x" &&
1299 ac_cv_target_alias=$ac_cv_host_alias
1300 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1301 { { echo "$as_me:1301: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1302 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1303 { (exit 1); exit 1; }; }
1306 echo "$as_me:1306: result: $ac_cv_target" >&5
1307 echo "${ECHO_T}$ac_cv_target" >&6
1308 target=$ac_cv_target
1309 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1310 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1311 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1313 # The aliases save the names the user supplied, while $host etc.
1314 # will get canonicalized.
1315 test -n "$target_alias" &&
1316 test "$program_prefix$program_suffix$program_transform_name" = \
1318 program_prefix=${target_alias}-
1319 system_name="$host_os"
1321 system_name="`(uname -s -r) 2>/dev/null`"
1322 if test -z "$system_name" ; then
1323 system_name="`(hostname) 2>/dev/null`"
1326 test -n "$system_name" && cat >>confdefs.h <<EOF
1327 #define SYSTEM_NAME "$system_name"
1330 if test "${cf_cv_system_name+set}" = set; then
1331 echo $ECHO_N "(cached) $ECHO_C" >&6
1333 cf_cv_system_name="$system_name"
1336 test -z "$system_name" && system_name="$cf_cv_system_name"
1337 test -n "$cf_cv_system_name" && echo "$as_me:1337: result: Configuring for $cf_cv_system_name" >&5
1338 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1340 if test ".$system_name" != ".$cf_cv_system_name" ; then
1341 echo "$as_me:1341: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1342 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1343 { { echo "$as_me:1343: error: \"Please remove config.cache and try again.\"" >&5
1344 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1345 { (exit 1); exit 1; }; }
1348 # Check whether --with-system-type or --without-system-type was given.
1349 if test "${with_system_type+set}" = set; then
1350 withval="$with_system_type"
1351 { echo "$as_me:1351: WARNING: overriding system type to $withval" >&5
1352 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1353 cf_cv_system_name=$withval
1356 ### Save the given $CFLAGS to allow user-override.
1357 cf_user_CFLAGS="$CFLAGS"
1359 ### Default install-location
1361 echo "$as_me:1361: checking for prefix" >&5
1362 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1363 if test "x$prefix" = "xNONE" ; then
1364 case "$cf_cv_system_name" in
1365 # non-vendor systems don't have a conflict
1366 openbsd*|freebsd*|linux*|cygwin*|k*bsd*-gnu)
1369 *) prefix=$ac_default_prefix
1373 echo "$as_me:1373: result: $prefix" >&5
1374 echo "${ECHO_T}$prefix" >&6
1376 if test "x$prefix" = "xNONE" ; then
1377 echo "$as_me:1377: checking for default include-directory" >&5
1378 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1379 test -n "$verbose" && echo 1>&6
1382 $includedir/ncurses \
1384 $prefix/include/ncurses \
1385 /usr/local/include \
1386 /usr/local/include/ncurses \
1388 /usr/include/ncurses
1390 cf_dir=`eval echo $cf_symbol`
1391 if test -f $cf_dir/curses.h ; then
1392 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1393 includedir="$cf_symbol"
1394 test -n "$verbose" && echo $ac_n " found " 1>&6
1398 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1400 echo "$as_me:1400: result: $includedir" >&5
1401 echo "${ECHO_T}$includedir" >&6
1404 ### Checks for programs.
1406 ac_cpp='$CPP $CPPFLAGS'
1407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1410 ac_main_return=return
1411 if test -n "$ac_tool_prefix"; then
1412 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1413 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1414 echo "$as_me:1414: checking for $ac_word" >&5
1415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1416 if test "${ac_cv_prog_CC+set}" = set; then
1417 echo $ECHO_N "(cached) $ECHO_C" >&6
1419 if test -n "$CC"; then
1420 ac_cv_prog_CC="$CC" # Let the user override the test.
1422 ac_save_IFS=$IFS; IFS=$ac_path_separator
1424 for ac_dir in $ac_dummy; do
1426 test -z "$ac_dir" && ac_dir=.
1427 $as_executable_p "$ac_dir/$ac_word" || continue
1428 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1429 echo "$as_me:1429: found $ac_dir/$ac_word" >&5
1436 if test -n "$CC"; then
1437 echo "$as_me:1437: result: $CC" >&5
1438 echo "${ECHO_T}$CC" >&6
1440 echo "$as_me:1440: result: no" >&5
1441 echo "${ECHO_T}no" >&6
1445 if test -z "$ac_cv_prog_CC"; then
1447 # Extract the first word of "gcc", so it can be a program name with args.
1448 set dummy gcc; ac_word=$2
1449 echo "$as_me:1449: checking for $ac_word" >&5
1450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1451 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1452 echo $ECHO_N "(cached) $ECHO_C" >&6
1454 if test -n "$ac_ct_CC"; then
1455 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1457 ac_save_IFS=$IFS; IFS=$ac_path_separator
1459 for ac_dir in $ac_dummy; do
1461 test -z "$ac_dir" && ac_dir=.
1462 $as_executable_p "$ac_dir/$ac_word" || continue
1463 ac_cv_prog_ac_ct_CC="gcc"
1464 echo "$as_me:1464: found $ac_dir/$ac_word" >&5
1470 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1471 if test -n "$ac_ct_CC"; then
1472 echo "$as_me:1472: result: $ac_ct_CC" >&5
1473 echo "${ECHO_T}$ac_ct_CC" >&6
1475 echo "$as_me:1475: result: no" >&5
1476 echo "${ECHO_T}no" >&6
1484 if test -z "$CC"; then
1485 if test -n "$ac_tool_prefix"; then
1486 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1487 set dummy ${ac_tool_prefix}cc; ac_word=$2
1488 echo "$as_me:1488: checking for $ac_word" >&5
1489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1490 if test "${ac_cv_prog_CC+set}" = set; then
1491 echo $ECHO_N "(cached) $ECHO_C" >&6
1493 if test -n "$CC"; then
1494 ac_cv_prog_CC="$CC" # Let the user override the test.
1496 ac_save_IFS=$IFS; IFS=$ac_path_separator
1498 for ac_dir in $ac_dummy; do
1500 test -z "$ac_dir" && ac_dir=.
1501 $as_executable_p "$ac_dir/$ac_word" || continue
1502 ac_cv_prog_CC="${ac_tool_prefix}cc"
1503 echo "$as_me:1503: found $ac_dir/$ac_word" >&5
1510 if test -n "$CC"; then
1511 echo "$as_me:1511: result: $CC" >&5
1512 echo "${ECHO_T}$CC" >&6
1514 echo "$as_me:1514: result: no" >&5
1515 echo "${ECHO_T}no" >&6
1519 if test -z "$ac_cv_prog_CC"; then
1521 # Extract the first word of "cc", so it can be a program name with args.
1522 set dummy cc; ac_word=$2
1523 echo "$as_me:1523: checking for $ac_word" >&5
1524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1525 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1526 echo $ECHO_N "(cached) $ECHO_C" >&6
1528 if test -n "$ac_ct_CC"; then
1529 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1531 ac_save_IFS=$IFS; IFS=$ac_path_separator
1533 for ac_dir in $ac_dummy; do
1535 test -z "$ac_dir" && ac_dir=.
1536 $as_executable_p "$ac_dir/$ac_word" || continue
1537 ac_cv_prog_ac_ct_CC="cc"
1538 echo "$as_me:1538: found $ac_dir/$ac_word" >&5
1544 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1545 if test -n "$ac_ct_CC"; then
1546 echo "$as_me:1546: result: $ac_ct_CC" >&5
1547 echo "${ECHO_T}$ac_ct_CC" >&6
1549 echo "$as_me:1549: result: no" >&5
1550 echo "${ECHO_T}no" >&6
1559 if test -z "$CC"; then
1560 # Extract the first word of "cc", so it can be a program name with args.
1561 set dummy cc; ac_word=$2
1562 echo "$as_me:1562: checking for $ac_word" >&5
1563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1564 if test "${ac_cv_prog_CC+set}" = set; then
1565 echo $ECHO_N "(cached) $ECHO_C" >&6
1567 if test -n "$CC"; then
1568 ac_cv_prog_CC="$CC" # Let the user override the test.
1571 ac_save_IFS=$IFS; IFS=$ac_path_separator
1573 for ac_dir in $ac_dummy; do
1575 test -z "$ac_dir" && ac_dir=.
1576 $as_executable_p "$ac_dir/$ac_word" || continue
1577 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1578 ac_prog_rejected=yes
1582 echo "$as_me:1582: found $ac_dir/$ac_word" >&5
1586 if test $ac_prog_rejected = yes; then
1587 # We found a bogon in the path, so make sure we never use it.
1588 set dummy $ac_cv_prog_CC
1590 if test $# != 0; then
1591 # We chose a different compiler from the bogus one.
1592 # However, it has the same basename, so the bogon will be chosen
1593 # first if we set CC to just the basename; use the full file name.
1595 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1603 if test -n "$CC"; then
1604 echo "$as_me:1604: result: $CC" >&5
1605 echo "${ECHO_T}$CC" >&6
1607 echo "$as_me:1607: result: no" >&5
1608 echo "${ECHO_T}no" >&6
1612 if test -z "$CC"; then
1613 if test -n "$ac_tool_prefix"; then
1616 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1617 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1618 echo "$as_me:1618: checking for $ac_word" >&5
1619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1620 if test "${ac_cv_prog_CC+set}" = set; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
1623 if test -n "$CC"; then
1624 ac_cv_prog_CC="$CC" # Let the user override the test.
1626 ac_save_IFS=$IFS; IFS=$ac_path_separator
1628 for ac_dir in $ac_dummy; do
1630 test -z "$ac_dir" && ac_dir=.
1631 $as_executable_p "$ac_dir/$ac_word" || continue
1632 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1633 echo "$as_me:1633: found $ac_dir/$ac_word" >&5
1640 if test -n "$CC"; then
1641 echo "$as_me:1641: result: $CC" >&5
1642 echo "${ECHO_T}$CC" >&6
1644 echo "$as_me:1644: result: no" >&5
1645 echo "${ECHO_T}no" >&6
1648 test -n "$CC" && break
1651 if test -z "$CC"; then
1655 # Extract the first word of "$ac_prog", so it can be a program name with args.
1656 set dummy $ac_prog; ac_word=$2
1657 echo "$as_me:1657: checking for $ac_word" >&5
1658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1659 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1660 echo $ECHO_N "(cached) $ECHO_C" >&6
1662 if test -n "$ac_ct_CC"; then
1663 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1665 ac_save_IFS=$IFS; IFS=$ac_path_separator
1667 for ac_dir in $ac_dummy; do
1669 test -z "$ac_dir" && ac_dir=.
1670 $as_executable_p "$ac_dir/$ac_word" || continue
1671 ac_cv_prog_ac_ct_CC="$ac_prog"
1672 echo "$as_me:1672: found $ac_dir/$ac_word" >&5
1678 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1679 if test -n "$ac_ct_CC"; then
1680 echo "$as_me:1680: result: $ac_ct_CC" >&5
1681 echo "${ECHO_T}$ac_ct_CC" >&6
1683 echo "$as_me:1683: result: no" >&5
1684 echo "${ECHO_T}no" >&6
1687 test -n "$ac_ct_CC" && break
1695 test -z "$CC" && { { echo "$as_me:1695: error: no acceptable cc found in \$PATH" >&5
1696 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1697 { (exit 1); exit 1; }; }
1699 # Provide some information about the compiler.
1700 echo "$as_me:1700:" \
1701 "checking for C compiler version" >&5
1702 ac_compiler=`set X $ac_compile; echo $2`
1703 { (eval echo "$as_me:1703: \"$ac_compiler --version </dev/null >&5\"") >&5
1704 (eval $ac_compiler --version </dev/null >&5) 2>&5
1706 echo "$as_me:1706: \$? = $ac_status" >&5
1707 (exit $ac_status); }
1708 { (eval echo "$as_me:1708: \"$ac_compiler -v </dev/null >&5\"") >&5
1709 (eval $ac_compiler -v </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); }
1719 cat >conftest.$ac_ext <<_ACEOF
1720 #line 1720 "configure"
1721 #include "confdefs.h"
1731 ac_clean_files_save=$ac_clean_files
1732 ac_clean_files="$ac_clean_files a.out a.exe"
1733 # Try to create an executable without -o first, disregard a.out.
1734 # It will help us diagnose broken compilers, and finding out an intuition
1736 echo "$as_me:1736: checking for C compiler default output" >&5
1737 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1738 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1739 if { (eval echo "$as_me:1739: \"$ac_link_default\"") >&5
1740 (eval $ac_link_default) 2>&5
1742 echo "$as_me:1742: \$? = $ac_status" >&5
1743 (exit $ac_status); }; then
1744 # Find the output, starting from the most likely. This scheme is
1745 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1747 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1748 ls a.out conftest 2>/dev/null;
1749 ls a.* conftest.* 2>/dev/null`; do
1751 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1752 a.out ) # We found the default executable, but exeext='' is most
1755 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1756 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1763 echo "$as_me: failed program was:" >&5
1764 cat conftest.$ac_ext >&5
1765 { { echo "$as_me:1765: error: C compiler cannot create executables" >&5
1766 echo "$as_me: error: C compiler cannot create executables" >&2;}
1767 { (exit 77); exit 77; }; }
1770 ac_exeext=$ac_cv_exeext
1771 echo "$as_me:1771: result: $ac_file" >&5
1772 echo "${ECHO_T}$ac_file" >&6
1774 # Check the compiler produces executables we can run. If not, either
1775 # the compiler is broken, or we cross compile.
1776 echo "$as_me:1776: checking whether the C compiler works" >&5
1777 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1778 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1779 # If not cross compiling, check that we can run a simple program.
1780 if test "$cross_compiling" != yes; then
1781 if { ac_try='./$ac_file'
1782 { (eval echo "$as_me:1782: \"$ac_try\"") >&5
1785 echo "$as_me:1785: \$? = $ac_status" >&5
1786 (exit $ac_status); }; }; then
1789 if test "$cross_compiling" = maybe; then
1792 { { echo "$as_me:1792: error: cannot run C compiled programs.
1793 If you meant to cross compile, use \`--host'." >&5
1794 echo "$as_me: error: cannot run C compiled programs.
1795 If you meant to cross compile, use \`--host'." >&2;}
1796 { (exit 1); exit 1; }; }
1800 echo "$as_me:1800: result: yes" >&5
1801 echo "${ECHO_T}yes" >&6
1803 rm -f a.out a.exe conftest$ac_cv_exeext
1804 ac_clean_files=$ac_clean_files_save
1805 # Check the compiler produces executables we can run. If not, either
1806 # the compiler is broken, or we cross compile.
1807 echo "$as_me:1807: checking whether we are cross compiling" >&5
1808 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1809 echo "$as_me:1809: result: $cross_compiling" >&5
1810 echo "${ECHO_T}$cross_compiling" >&6
1812 echo "$as_me:1812: checking for executable suffix" >&5
1813 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1814 if { (eval echo "$as_me:1814: \"$ac_link\"") >&5
1815 (eval $ac_link) 2>&5
1817 echo "$as_me:1817: \$? = $ac_status" >&5
1818 (exit $ac_status); }; then
1819 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1820 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1821 # work properly (i.e., refer to `conftest.exe'), while it won't with
1823 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1825 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1826 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1833 { { echo "$as_me:1833: error: cannot compute EXEEXT: cannot compile and link" >&5
1834 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1835 { (exit 1); exit 1; }; }
1838 rm -f conftest$ac_cv_exeext
1839 echo "$as_me:1839: result: $ac_cv_exeext" >&5
1840 echo "${ECHO_T}$ac_cv_exeext" >&6
1842 rm -f conftest.$ac_ext
1843 EXEEXT=$ac_cv_exeext
1845 echo "$as_me:1845: checking for object suffix" >&5
1846 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1847 if test "${ac_cv_objext+set}" = set; then
1848 echo $ECHO_N "(cached) $ECHO_C" >&6
1850 cat >conftest.$ac_ext <<_ACEOF
1851 #line 1851 "configure"
1852 #include "confdefs.h"
1862 rm -f conftest.o conftest.obj
1863 if { (eval echo "$as_me:1863: \"$ac_compile\"") >&5
1864 (eval $ac_compile) 2>&5
1866 echo "$as_me:1866: \$? = $ac_status" >&5
1867 (exit $ac_status); }; then
1868 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1870 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1871 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1876 echo "$as_me: failed program was:" >&5
1877 cat conftest.$ac_ext >&5
1878 { { echo "$as_me:1878: error: cannot compute OBJEXT: cannot compile" >&5
1879 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1880 { (exit 1); exit 1; }; }
1883 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1885 echo "$as_me:1885: result: $ac_cv_objext" >&5
1886 echo "${ECHO_T}$ac_cv_objext" >&6
1887 OBJEXT=$ac_cv_objext
1889 echo "$as_me:1889: checking whether we are using the GNU C compiler" >&5
1890 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1891 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1892 echo $ECHO_N "(cached) $ECHO_C" >&6
1894 cat >conftest.$ac_ext <<_ACEOF
1895 #line 1895 "configure"
1896 #include "confdefs.h"
1909 rm -f conftest.$ac_objext
1910 if { (eval echo "$as_me:1910: \"$ac_compile\"") >&5
1911 (eval $ac_compile) 2>&5
1913 echo "$as_me:1913: \$? = $ac_status" >&5
1914 (exit $ac_status); } &&
1915 { ac_try='test -s conftest.$ac_objext'
1916 { (eval echo "$as_me:1916: \"$ac_try\"") >&5
1919 echo "$as_me:1919: \$? = $ac_status" >&5
1920 (exit $ac_status); }; }; then
1923 echo "$as_me: failed program was:" >&5
1924 cat conftest.$ac_ext >&5
1927 rm -f conftest.$ac_objext conftest.$ac_ext
1928 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1931 echo "$as_me:1931: result: $ac_cv_c_compiler_gnu" >&5
1932 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1933 GCC=`test $ac_compiler_gnu = yes && echo yes`
1934 ac_test_CFLAGS=${CFLAGS+set}
1935 ac_save_CFLAGS=$CFLAGS
1937 echo "$as_me:1937: checking whether $CC accepts -g" >&5
1938 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1939 if test "${ac_cv_prog_cc_g+set}" = set; then
1940 echo $ECHO_N "(cached) $ECHO_C" >&6
1942 cat >conftest.$ac_ext <<_ACEOF
1943 #line 1943 "configure"
1944 #include "confdefs.h"
1954 rm -f conftest.$ac_objext
1955 if { (eval echo "$as_me:1955: \"$ac_compile\"") >&5
1956 (eval $ac_compile) 2>&5
1958 echo "$as_me:1958: \$? = $ac_status" >&5
1959 (exit $ac_status); } &&
1960 { ac_try='test -s conftest.$ac_objext'
1961 { (eval echo "$as_me:1961: \"$ac_try\"") >&5
1964 echo "$as_me:1964: \$? = $ac_status" >&5
1965 (exit $ac_status); }; }; then
1968 echo "$as_me: failed program was:" >&5
1969 cat conftest.$ac_ext >&5
1972 rm -f conftest.$ac_objext conftest.$ac_ext
1974 echo "$as_me:1974: result: $ac_cv_prog_cc_g" >&5
1975 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1976 if test "$ac_test_CFLAGS" = set; then
1977 CFLAGS=$ac_save_CFLAGS
1978 elif test $ac_cv_prog_cc_g = yes; then
1979 if test "$GCC" = yes; then
1985 if test "$GCC" = yes; then
1991 # Some people use a C++ compiler to compile C. Since we use `exit',
1992 # in C++ we need to declare it. In case someone uses the same compiler
1993 # for both compiling C and C++ we need to have the C++ compiler decide
1994 # the declaration of exit, since it's the most demanding environment.
1995 cat >conftest.$ac_ext <<_ACEOF
2000 rm -f conftest.$ac_objext
2001 if { (eval echo "$as_me:2001: \"$ac_compile\"") >&5
2002 (eval $ac_compile) 2>&5
2004 echo "$as_me:2004: \$? = $ac_status" >&5
2005 (exit $ac_status); } &&
2006 { ac_try='test -s conftest.$ac_objext'
2007 { (eval echo "$as_me:2007: \"$ac_try\"") >&5
2010 echo "$as_me:2010: \$? = $ac_status" >&5
2011 (exit $ac_status); }; }; then
2012 for ac_declaration in \
2014 '#include <stdlib.h>' \
2015 'extern "C" void std::exit (int) throw (); using std::exit;' \
2016 'extern "C" void std::exit (int); using std::exit;' \
2017 'extern "C" void exit (int) throw ();' \
2018 'extern "C" void exit (int);' \
2021 cat >conftest.$ac_ext <<_ACEOF
2022 #line 2022 "configure"
2023 #include "confdefs.h"
2034 rm -f conftest.$ac_objext
2035 if { (eval echo "$as_me:2035: \"$ac_compile\"") >&5
2036 (eval $ac_compile) 2>&5
2038 echo "$as_me:2038: \$? = $ac_status" >&5
2039 (exit $ac_status); } &&
2040 { ac_try='test -s conftest.$ac_objext'
2041 { (eval echo "$as_me:2041: \"$ac_try\"") >&5
2044 echo "$as_me:2044: \$? = $ac_status" >&5
2045 (exit $ac_status); }; }; then
2048 echo "$as_me: failed program was:" >&5
2049 cat conftest.$ac_ext >&5
2052 rm -f conftest.$ac_objext conftest.$ac_ext
2053 cat >conftest.$ac_ext <<_ACEOF
2054 #line 2054 "configure"
2055 #include "confdefs.h"
2065 rm -f conftest.$ac_objext
2066 if { (eval echo "$as_me:2066: \"$ac_compile\"") >&5
2067 (eval $ac_compile) 2>&5
2069 echo "$as_me:2069: \$? = $ac_status" >&5
2070 (exit $ac_status); } &&
2071 { ac_try='test -s conftest.$ac_objext'
2072 { (eval echo "$as_me:2072: \"$ac_try\"") >&5
2075 echo "$as_me:2075: \$? = $ac_status" >&5
2076 (exit $ac_status); }; }; then
2079 echo "$as_me: failed program was:" >&5
2080 cat conftest.$ac_ext >&5
2082 rm -f conftest.$ac_objext conftest.$ac_ext
2085 if test -n "$ac_declaration"; then
2086 echo '#ifdef __cplusplus' >>confdefs.h
2087 echo $ac_declaration >>confdefs.h
2088 echo '#endif' >>confdefs.h
2092 echo "$as_me: failed program was:" >&5
2093 cat conftest.$ac_ext >&5
2095 rm -f conftest.$ac_objext conftest.$ac_ext
2097 ac_cpp='$CPP $CPPFLAGS'
2098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2101 ac_main_return=return
2104 if test "$GCC" = yes ; then
2105 echo "$as_me:2105: checking version of $CC" >&5
2106 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2107 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2108 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2109 echo "$as_me:2109: result: $GCC_VERSION" >&5
2110 echo "${ECHO_T}$GCC_VERSION" >&6
2114 ac_cpp='$CPP $CPPFLAGS'
2115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2118 ac_main_return=return
2119 echo "$as_me:2119: checking how to run the C preprocessor" >&5
2120 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2121 # On Suns, sometimes $CPP names a directory.
2122 if test -n "$CPP" && test -d "$CPP"; then
2125 if test -z "$CPP"; then
2126 if test "${ac_cv_prog_CPP+set}" = set; then
2127 echo $ECHO_N "(cached) $ECHO_C" >&6
2129 # Double quotes because CPP needs to be expanded
2130 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2133 for ac_c_preproc_warn_flag in '' yes
2135 # Use a header file that comes with gcc, so configuring glibc
2136 # with a fresh cross-compiler works.
2137 # On the NeXT, cc -E runs the code through the compiler's parser,
2138 # not just through cpp. "Syntax error" is here to catch this case.
2139 cat >conftest.$ac_ext <<_ACEOF
2140 #line 2140 "configure"
2141 #include "confdefs.h"
2145 if { (eval echo "$as_me:2145: \"$ac_cpp conftest.$ac_ext\"") >&5
2146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2148 egrep -v '^ *\+' conftest.er1 >conftest.err
2150 cat conftest.err >&5
2151 echo "$as_me:2151: \$? = $ac_status" >&5
2152 (exit $ac_status); } >/dev/null; then
2153 if test -s conftest.err; then
2154 ac_cpp_err=$ac_c_preproc_warn_flag
2161 if test -z "$ac_cpp_err"; then
2164 echo "$as_me: failed program was:" >&5
2165 cat conftest.$ac_ext >&5
2166 # Broken: fails on valid input.
2169 rm -f conftest.err conftest.$ac_ext
2171 # OK, works on sane cases. Now check whether non-existent headers
2172 # can be detected and how.
2173 cat >conftest.$ac_ext <<_ACEOF
2174 #line 2174 "configure"
2175 #include "confdefs.h"
2176 #include <ac_nonexistent.h>
2178 if { (eval echo "$as_me:2178: \"$ac_cpp conftest.$ac_ext\"") >&5
2179 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2181 egrep -v '^ *\+' conftest.er1 >conftest.err
2183 cat conftest.err >&5
2184 echo "$as_me:2184: \$? = $ac_status" >&5
2185 (exit $ac_status); } >/dev/null; then
2186 if test -s conftest.err; then
2187 ac_cpp_err=$ac_c_preproc_warn_flag
2194 if test -z "$ac_cpp_err"; then
2195 # Broken: success on invalid input.
2198 echo "$as_me: failed program was:" >&5
2199 cat conftest.$ac_ext >&5
2200 # Passes both tests.
2204 rm -f conftest.err conftest.$ac_ext
2207 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2208 rm -f conftest.err conftest.$ac_ext
2209 if $ac_preproc_ok; then
2221 echo "$as_me:2221: result: $CPP" >&5
2222 echo "${ECHO_T}$CPP" >&6
2224 for ac_c_preproc_warn_flag in '' yes
2226 # Use a header file that comes with gcc, so configuring glibc
2227 # with a fresh cross-compiler works.
2228 # On the NeXT, cc -E runs the code through the compiler's parser,
2229 # not just through cpp. "Syntax error" is here to catch this case.
2230 cat >conftest.$ac_ext <<_ACEOF
2231 #line 2231 "configure"
2232 #include "confdefs.h"
2236 if { (eval echo "$as_me:2236: \"$ac_cpp conftest.$ac_ext\"") >&5
2237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2239 egrep -v '^ *\+' conftest.er1 >conftest.err
2241 cat conftest.err >&5
2242 echo "$as_me:2242: \$? = $ac_status" >&5
2243 (exit $ac_status); } >/dev/null; then
2244 if test -s conftest.err; then
2245 ac_cpp_err=$ac_c_preproc_warn_flag
2252 if test -z "$ac_cpp_err"; then
2255 echo "$as_me: failed program was:" >&5
2256 cat conftest.$ac_ext >&5
2257 # Broken: fails on valid input.
2260 rm -f conftest.err conftest.$ac_ext
2262 # OK, works on sane cases. Now check whether non-existent headers
2263 # can be detected and how.
2264 cat >conftest.$ac_ext <<_ACEOF
2265 #line 2265 "configure"
2266 #include "confdefs.h"
2267 #include <ac_nonexistent.h>
2269 if { (eval echo "$as_me:2269: \"$ac_cpp conftest.$ac_ext\"") >&5
2270 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2272 egrep -v '^ *\+' conftest.er1 >conftest.err
2274 cat conftest.err >&5
2275 echo "$as_me:2275: \$? = $ac_status" >&5
2276 (exit $ac_status); } >/dev/null; then
2277 if test -s conftest.err; then
2278 ac_cpp_err=$ac_c_preproc_warn_flag
2285 if test -z "$ac_cpp_err"; then
2286 # Broken: success on invalid input.
2289 echo "$as_me: failed program was:" >&5
2290 cat conftest.$ac_ext >&5
2291 # Passes both tests.
2295 rm -f conftest.err conftest.$ac_ext
2298 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2299 rm -f conftest.err conftest.$ac_ext
2300 if $ac_preproc_ok; then
2303 { { echo "$as_me:2303: error: C preprocessor \"$CPP\" fails sanity check" >&5
2304 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2305 { (exit 1); exit 1; }; }
2309 ac_cpp='$CPP $CPPFLAGS'
2310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2313 ac_main_return=return
2315 if test $ac_cv_c_compiler_gnu = yes; then
2316 echo "$as_me:2316: checking whether $CC needs -traditional" >&5
2317 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2318 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
2321 ac_pattern="Autoconf.*'x'"
2322 cat >conftest.$ac_ext <<_ACEOF
2323 #line 2323 "configure"
2324 #include "confdefs.h"
2326 int Autoconf = TIOCGETP;
2328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2329 egrep "$ac_pattern" >/dev/null 2>&1; then
2330 ac_cv_prog_gcc_traditional=yes
2332 ac_cv_prog_gcc_traditional=no
2336 if test $ac_cv_prog_gcc_traditional = no; then
2337 cat >conftest.$ac_ext <<_ACEOF
2338 #line 2338 "configure"
2339 #include "confdefs.h"
2341 int Autoconf = TCGETA;
2343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2344 egrep "$ac_pattern" >/dev/null 2>&1; then
2345 ac_cv_prog_gcc_traditional=yes
2351 echo "$as_me:2351: result: $ac_cv_prog_gcc_traditional" >&5
2352 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2353 if test $ac_cv_prog_gcc_traditional = yes; then
2354 CC="$CC -traditional"
2358 echo "$as_me:2358: checking whether $CC understands -c and -o together" >&5
2359 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2360 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 cat > conftest.$ac_ext <<CF_EOF
2368 ${cf_cv_main_return:-return}(0);
2371 # We do the test twice because some compilers refuse to overwrite an
2372 # existing .o file with -o, though they will create one.
2373 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2374 if { (eval echo "$as_me:2374: \"$ac_try\"") >&5
2377 echo "$as_me:2377: \$? = $ac_status" >&5
2378 (exit $ac_status); } &&
2379 test -f conftest2.$ac_objext && { (eval echo "$as_me:2379: \"$ac_try\"") >&5
2382 echo "$as_me:2382: \$? = $ac_status" >&5
2383 (exit $ac_status); };
2385 eval cf_cv_prog_CC_c_o=yes
2387 eval cf_cv_prog_CC_c_o=no
2392 if test $cf_cv_prog_CC_c_o = yes; then
2393 echo "$as_me:2393: result: yes" >&5
2394 echo "${ECHO_T}yes" >&6
2396 echo "$as_me:2396: result: no" >&5
2397 echo "${ECHO_T}no" >&6
2400 echo "$as_me:2400: checking for POSIXized ISC" >&5
2401 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2402 if test -d /etc/conf/kconfig.d &&
2403 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2405 echo "$as_me:2405: result: yes" >&5
2406 echo "${ECHO_T}yes" >&6
2407 ISC=yes # If later tests want to check for ISC.
2409 cat >>confdefs.h <<\EOF
2410 #define _POSIX_SOURCE 1
2413 if test "$GCC" = yes; then
2419 echo "$as_me:2419: result: no" >&5
2420 echo "${ECHO_T}no" >&6
2424 echo "$as_me:2424: checking for ${CC-cc} option to accept ANSI C" >&5
2425 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2426 if test "${cf_cv_ansi_cc+set}" = set; then
2427 echo $ECHO_N "(cached) $ECHO_C" >&6
2431 cf_save_CFLAGS="$CFLAGS"
2432 cf_save_CPPFLAGS="$CPPFLAGS"
2433 # Don't try gcc -ansi; that turns off useful extensions and
2434 # breaks some systems' header files.
2435 # AIX -qlanglvl=ansi
2436 # Ultrix and OSF/1 -std1
2437 # HP-UX -Aa -D_HPUX_SOURCE
2439 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2440 for cf_arg in "-DCC_HAS_PROTOS" \
2445 "-Aa -D_HPUX_SOURCE" \
2452 cf_new_extra_cppflags=
2454 for cf_add_cflags in $cf_arg
2456 case $cf_fix_cppflags in
2458 case $cf_add_cflags in #(vi
2459 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2460 case $cf_add_cflags in
2462 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2464 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2465 && test -z "${cf_tst_cflags}" \
2466 && cf_fix_cppflags=yes
2468 if test $cf_fix_cppflags = yes ; then
2469 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2471 elif test "${cf_tst_cflags}" = "\"'" ; then
2472 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2478 *$cf_add_cflags) #(vi
2481 case $cf_add_cflags in #(vi
2483 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2485 CPPFLAGS=`echo "$CPPFLAGS" | \
2486 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2487 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2491 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2496 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2501 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2503 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2505 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2506 && test -z "${cf_tst_cflags}" \
2507 && cf_fix_cppflags=no
2512 if test -n "$cf_new_cflags" ; then
2514 CFLAGS="$CFLAGS $cf_new_cflags"
2517 if test -n "$cf_new_cppflags" ; then
2519 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2522 if test -n "$cf_new_extra_cppflags" ; then
2524 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2527 cat >conftest.$ac_ext <<_ACEOF
2528 #line 2528 "configure"
2529 #include "confdefs.h"
2531 #ifndef CC_HAS_PROTOS
2532 #if !defined(__STDC__) || (__STDC__ != 1)
2541 int test (int i, double x);
2542 struct s1 {int (*f) (int a);};
2543 struct s2 {int (*f) (double a);};
2548 rm -f conftest.$ac_objext
2549 if { (eval echo "$as_me:2549: \"$ac_compile\"") >&5
2550 (eval $ac_compile) 2>&5
2552 echo "$as_me:2552: \$? = $ac_status" >&5
2553 (exit $ac_status); } &&
2554 { ac_try='test -s conftest.$ac_objext'
2555 { (eval echo "$as_me:2555: \"$ac_try\"") >&5
2558 echo "$as_me:2558: \$? = $ac_status" >&5
2559 (exit $ac_status); }; }; then
2560 cf_cv_ansi_cc="$cf_arg"; break
2562 echo "$as_me: failed program was:" >&5
2563 cat conftest.$ac_ext >&5
2565 rm -f conftest.$ac_objext conftest.$ac_ext
2567 CFLAGS="$cf_save_CFLAGS"
2568 CPPFLAGS="$cf_save_CPPFLAGS"
2571 echo "$as_me:2571: result: $cf_cv_ansi_cc" >&5
2572 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2574 if test "$cf_cv_ansi_cc" != "no"; then
2575 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2580 cf_new_extra_cppflags=
2582 for cf_add_cflags in $cf_cv_ansi_cc
2584 case $cf_fix_cppflags in
2586 case $cf_add_cflags in #(vi
2587 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2588 case $cf_add_cflags in
2590 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2592 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2593 && test -z "${cf_tst_cflags}" \
2594 && cf_fix_cppflags=yes
2596 if test $cf_fix_cppflags = yes ; then
2597 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2599 elif test "${cf_tst_cflags}" = "\"'" ; then
2600 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2606 *$cf_add_cflags) #(vi
2609 case $cf_add_cflags in #(vi
2611 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2613 CPPFLAGS=`echo "$CPPFLAGS" | \
2614 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2615 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2619 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2624 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2629 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2631 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2633 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2634 && test -z "${cf_tst_cflags}" \
2635 && cf_fix_cppflags=no
2640 if test -n "$cf_new_cflags" ; then
2642 CFLAGS="$CFLAGS $cf_new_cflags"
2645 if test -n "$cf_new_cppflags" ; then
2647 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2650 if test -n "$cf_new_extra_cppflags" ; then
2652 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2656 cat >>confdefs.h <<\EOF
2657 #define CC_HAS_PROTOS 1
2663 if test "$cf_cv_ansi_cc" = "no"; then
2664 { { echo "$as_me:2664: error: Your compiler does not appear to recognize prototypes.
2665 You have the following choices:
2666 a. adjust your compiler options
2667 b. get an up-to-date compiler
2668 c. use a wrapper such as unproto" >&5
2669 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2670 You have the following choices:
2671 a. adjust your compiler options
2672 b. get an up-to-date compiler
2673 c. use a wrapper such as unproto" >&2;}
2674 { (exit 1); exit 1; }; }
2677 case $cf_cv_system_name in
2679 CFLAGS="$CFLAGS -Zmt"
2680 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2681 CXXFLAGS="$CXXFLAGS -Zmt"
2682 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2683 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2690 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2691 #define PROG_EXT "$PROG_EXT"
2694 if test "$cross_compiling" = yes ; then
2697 case "$cf_cv_system_name" in #(vi
2698 dragonfly*|freebsd*) #(vi
2699 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2701 *) LDPATH=$PATH:/sbin:/usr/sbin
2702 # Extract the first word of "ldconfig", so it can be a program name with args.
2703 set dummy ldconfig; ac_word=$2
2704 echo "$as_me:2704: checking for $ac_word" >&5
2705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2706 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2707 echo $ECHO_N "(cached) $ECHO_C" >&6
2711 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2714 ac_save_IFS=$IFS; IFS=$ac_path_separator
2716 for ac_dir in $ac_dummy; do
2718 test -z "$ac_dir" && ac_dir=.
2719 if $as_executable_p "$ac_dir/$ac_word"; then
2720 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2721 echo "$as_me:2721: found $ac_dir/$ac_word" >&5
2729 LDCONFIG=$ac_cv_path_LDCONFIG
2731 if test -n "$LDCONFIG"; then
2732 echo "$as_me:2732: result: $LDCONFIG" >&5
2733 echo "${ECHO_T}$LDCONFIG" >&6
2735 echo "$as_me:2735: result: no" >&5
2736 echo "${ECHO_T}no" >&6
2743 echo "$as_me:2743: checking if you want to ensure bool is consistent with C++" >&5
2744 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2746 # Check whether --with-cxx or --without-cxx was given.
2747 if test "${with_cxx+set}" = set; then
2749 cf_with_cxx=$withval
2753 echo "$as_me:2753: result: $cf_with_cxx" >&5
2754 echo "${ECHO_T}$cf_with_cxx" >&6
2755 if test "X$cf_with_cxx" = Xno ; then
2759 # with autoconf 2.13, we can change the error to a warning:
2761 ac_cpp='$CXXCPP $CPPFLAGS'
2762 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2763 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2764 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2765 ac_main_return=return
2766 if test -n "$ac_tool_prefix"; then
2767 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2769 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2770 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2771 echo "$as_me:2771: checking for $ac_word" >&5
2772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2773 if test "${ac_cv_prog_CXX+set}" = set; then
2774 echo $ECHO_N "(cached) $ECHO_C" >&6
2776 if test -n "$CXX"; then
2777 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2779 ac_save_IFS=$IFS; IFS=$ac_path_separator
2781 for ac_dir in $ac_dummy; do
2783 test -z "$ac_dir" && ac_dir=.
2784 $as_executable_p "$ac_dir/$ac_word" || continue
2785 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2786 echo "$as_me:2786: found $ac_dir/$ac_word" >&5
2793 if test -n "$CXX"; then
2794 echo "$as_me:2794: result: $CXX" >&5
2795 echo "${ECHO_T}$CXX" >&6
2797 echo "$as_me:2797: result: no" >&5
2798 echo "${ECHO_T}no" >&6
2801 test -n "$CXX" && break
2804 if test -z "$CXX"; then
2806 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2808 # Extract the first word of "$ac_prog", so it can be a program name with args.
2809 set dummy $ac_prog; ac_word=$2
2810 echo "$as_me:2810: checking for $ac_word" >&5
2811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2812 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2813 echo $ECHO_N "(cached) $ECHO_C" >&6
2815 if test -n "$ac_ct_CXX"; then
2816 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2818 ac_save_IFS=$IFS; IFS=$ac_path_separator
2820 for ac_dir in $ac_dummy; do
2822 test -z "$ac_dir" && ac_dir=.
2823 $as_executable_p "$ac_dir/$ac_word" || continue
2824 ac_cv_prog_ac_ct_CXX="$ac_prog"
2825 echo "$as_me:2825: found $ac_dir/$ac_word" >&5
2831 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2832 if test -n "$ac_ct_CXX"; then
2833 echo "$as_me:2833: result: $ac_ct_CXX" >&5
2834 echo "${ECHO_T}$ac_ct_CXX" >&6
2836 echo "$as_me:2836: result: no" >&5
2837 echo "${ECHO_T}no" >&6
2840 test -n "$ac_ct_CXX" && break
2842 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2847 # Provide some information about the compiler.
2848 echo "$as_me:2848:" \
2849 "checking for C++ compiler version" >&5
2850 ac_compiler=`set X $ac_compile; echo $2`
2851 { (eval echo "$as_me:2851: \"$ac_compiler --version </dev/null >&5\"") >&5
2852 (eval $ac_compiler --version </dev/null >&5) 2>&5
2854 echo "$as_me:2854: \$? = $ac_status" >&5
2855 (exit $ac_status); }
2856 { (eval echo "$as_me:2856: \"$ac_compiler -v </dev/null >&5\"") >&5
2857 (eval $ac_compiler -v </dev/null >&5) 2>&5
2859 echo "$as_me:2859: \$? = $ac_status" >&5
2860 (exit $ac_status); }
2861 { (eval echo "$as_me:2861: \"$ac_compiler -V </dev/null >&5\"") >&5
2862 (eval $ac_compiler -V </dev/null >&5) 2>&5
2864 echo "$as_me:2864: \$? = $ac_status" >&5
2865 (exit $ac_status); }
2867 echo "$as_me:2867: checking whether we are using the GNU C++ compiler" >&5
2868 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2869 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2870 echo $ECHO_N "(cached) $ECHO_C" >&6
2872 cat >conftest.$ac_ext <<_ACEOF
2873 #line 2873 "configure"
2874 #include "confdefs.h"
2887 rm -f conftest.$ac_objext
2888 if { (eval echo "$as_me:2888: \"$ac_compile\"") >&5
2889 (eval $ac_compile) 2>&5
2891 echo "$as_me:2891: \$? = $ac_status" >&5
2892 (exit $ac_status); } &&
2893 { ac_try='test -s conftest.$ac_objext'
2894 { (eval echo "$as_me:2894: \"$ac_try\"") >&5
2897 echo "$as_me:2897: \$? = $ac_status" >&5
2898 (exit $ac_status); }; }; then
2901 echo "$as_me: failed program was:" >&5
2902 cat conftest.$ac_ext >&5
2905 rm -f conftest.$ac_objext conftest.$ac_ext
2906 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2909 echo "$as_me:2909: result: $ac_cv_cxx_compiler_gnu" >&5
2910 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2911 GXX=`test $ac_compiler_gnu = yes && echo yes`
2912 ac_test_CXXFLAGS=${CXXFLAGS+set}
2913 ac_save_CXXFLAGS=$CXXFLAGS
2915 echo "$as_me:2915: checking whether $CXX accepts -g" >&5
2916 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2917 if test "${ac_cv_prog_cxx_g+set}" = set; then
2918 echo $ECHO_N "(cached) $ECHO_C" >&6
2920 cat >conftest.$ac_ext <<_ACEOF
2921 #line 2921 "configure"
2922 #include "confdefs.h"
2932 rm -f conftest.$ac_objext
2933 if { (eval echo "$as_me:2933: \"$ac_compile\"") >&5
2934 (eval $ac_compile) 2>&5
2936 echo "$as_me:2936: \$? = $ac_status" >&5
2937 (exit $ac_status); } &&
2938 { ac_try='test -s conftest.$ac_objext'
2939 { (eval echo "$as_me:2939: \"$ac_try\"") >&5
2942 echo "$as_me:2942: \$? = $ac_status" >&5
2943 (exit $ac_status); }; }; then
2944 ac_cv_prog_cxx_g=yes
2946 echo "$as_me: failed program was:" >&5
2947 cat conftest.$ac_ext >&5
2950 rm -f conftest.$ac_objext conftest.$ac_ext
2952 echo "$as_me:2952: result: $ac_cv_prog_cxx_g" >&5
2953 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2954 if test "$ac_test_CXXFLAGS" = set; then
2955 CXXFLAGS=$ac_save_CXXFLAGS
2956 elif test $ac_cv_prog_cxx_g = yes; then
2957 if test "$GXX" = yes; then
2963 if test "$GXX" = yes; then
2969 for ac_declaration in \
2971 '#include <stdlib.h>' \
2972 'extern "C" void std::exit (int) throw (); using std::exit;' \
2973 'extern "C" void std::exit (int); using std::exit;' \
2974 'extern "C" void exit (int) throw ();' \
2975 'extern "C" void exit (int);' \
2978 cat >conftest.$ac_ext <<_ACEOF
2979 #line 2979 "configure"
2980 #include "confdefs.h"
2991 rm -f conftest.$ac_objext
2992 if { (eval echo "$as_me:2992: \"$ac_compile\"") >&5
2993 (eval $ac_compile) 2>&5
2995 echo "$as_me:2995: \$? = $ac_status" >&5
2996 (exit $ac_status); } &&
2997 { ac_try='test -s conftest.$ac_objext'
2998 { (eval echo "$as_me:2998: \"$ac_try\"") >&5
3001 echo "$as_me:3001: \$? = $ac_status" >&5
3002 (exit $ac_status); }; }; then
3005 echo "$as_me: failed program was:" >&5
3006 cat conftest.$ac_ext >&5
3009 rm -f conftest.$ac_objext conftest.$ac_ext
3010 cat >conftest.$ac_ext <<_ACEOF
3011 #line 3011 "configure"
3012 #include "confdefs.h"
3022 rm -f conftest.$ac_objext
3023 if { (eval echo "$as_me:3023: \"$ac_compile\"") >&5
3024 (eval $ac_compile) 2>&5
3026 echo "$as_me:3026: \$? = $ac_status" >&5
3027 (exit $ac_status); } &&
3028 { ac_try='test -s conftest.$ac_objext'
3029 { (eval echo "$as_me:3029: \"$ac_try\"") >&5
3032 echo "$as_me:3032: \$? = $ac_status" >&5
3033 (exit $ac_status); }; }; then
3036 echo "$as_me: failed program was:" >&5
3037 cat conftest.$ac_ext >&5
3039 rm -f conftest.$ac_objext conftest.$ac_ext
3042 if test -n "$ac_declaration"; then
3043 echo '#ifdef __cplusplus' >>confdefs.h
3044 echo $ac_declaration >>confdefs.h
3045 echo '#endif' >>confdefs.h
3049 ac_cpp='$CPP $CPPFLAGS'
3050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3053 ac_main_return=return
3055 # autoconf 2.5x removed the error - by hardcoding it to g++.
3056 if test "$CXX" = "g++" ; then
3057 # Extract the first word of "g++", so it can be a program name with args.
3058 set dummy g++; ac_word=$2
3059 echo "$as_me:3059: checking for $ac_word" >&5
3060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3061 if test "${ac_cv_path_CXX+set}" = set; then
3062 echo $ECHO_N "(cached) $ECHO_C" >&6
3066 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3069 ac_save_IFS=$IFS; IFS=$ac_path_separator
3071 for ac_dir in $ac_dummy; do
3073 test -z "$ac_dir" && ac_dir=.
3074 if $as_executable_p "$ac_dir/$ac_word"; then
3075 ac_cv_path_CXX="$ac_dir/$ac_word"
3076 echo "$as_me:3076: found $ac_dir/$ac_word" >&5
3086 if test -n "$CXX"; then
3087 echo "$as_me:3087: result: $CXX" >&5
3088 echo "${ECHO_T}$CXX" >&6
3090 echo "$as_me:3090: result: no" >&5
3091 echo "${ECHO_T}no" >&6
3095 if test "$CXX" = "g++" ; then
3096 { echo "$as_me:3096: WARNING: ignoring hardcoded g++" >&5
3097 echo "$as_me: WARNING: ignoring hardcoded g++" >&2;}
3098 cf_with_cxx=no; CXX=""; GXX="";
3103 if test "$GXX" = yes; then
3104 echo "$as_me:3104: checking version of g++" >&5
3105 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
3106 GXX_VERSION="`${CXX-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3107 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3108 echo "$as_me:3108: result: $GXX_VERSION" >&5
3109 echo "${ECHO_T}$GXX_VERSION" >&6
3112 case $GXX_VERSION in
3114 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3116 { echo "$as_me:3116: WARNING: templates do not work" >&5
3117 echo "$as_me: WARNING: templates do not work" >&2;}
3121 echo "$as_me:3121: checking if you want to build C++ binding and demo" >&5
3122 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3124 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3125 if test "${with_cxx_binding+set}" = set; then
3126 withval="$with_cxx_binding"
3127 cf_with_cxx_binding=$withval
3129 cf_with_cxx_binding=$cf_with_cxx
3131 echo "$as_me:3131: result: $cf_with_cxx_binding" >&5
3132 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3134 echo "$as_me:3134: checking if you want to build with Ada95" >&5
3135 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3137 # Check whether --with-ada or --without-ada was given.
3138 if test "${with_ada+set}" = set; then
3140 cf_with_ada=$withval
3144 echo "$as_me:3144: result: $cf_with_ada" >&5
3145 echo "${ECHO_T}$cf_with_ada" >&6
3147 echo "$as_me:3147: checking if you want to install manpages" >&5
3148 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3150 # Check whether --with-manpages or --without-manpages was given.
3151 if test "${with_manpages+set}" = set; then
3152 withval="$with_manpages"
3153 cf_with_manpages=$withval
3155 cf_with_manpages=yes
3157 echo "$as_me:3157: result: $cf_with_manpages" >&5
3158 echo "${ECHO_T}$cf_with_manpages" >&6
3160 echo "$as_me:3160: checking if you want to build programs such as tic" >&5
3161 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3163 # Check whether --with-progs or --without-progs was given.
3164 if test "${with_progs+set}" = set; then
3165 withval="$with_progs"
3166 cf_with_progs=$withval
3170 echo "$as_me:3170: result: $cf_with_progs" >&5
3171 echo "${ECHO_T}$cf_with_progs" >&6
3173 echo "$as_me:3173: checking if you wish to install curses.h" >&5
3174 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3176 # Check whether --with-curses-h or --without-curses-h was given.
3177 if test "${with_curses_h+set}" = set; then
3178 withval="$with_curses_h"
3179 with_curses_h=$withval
3183 echo "$as_me:3183: result: $with_curses_h" >&5
3184 echo "${ECHO_T}$with_curses_h" >&6
3186 modules_to_build="ncurses"
3187 if test "X$cf_with_progs" != Xno ; then
3188 modules_to_build="$modules_to_build progs tack"
3190 modules_to_build="$modules_to_build panel menu form"
3192 test "$program_prefix" != NONE &&
3193 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3194 # Use a double $ so make ignores it.
3195 test "$program_suffix" != NONE &&
3196 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3197 # Double any \ or $. echo might interpret backslashes.
3198 # By default was `s,x,x', remove it if useless.
3199 cat <<\_ACEOF >conftest.sed
3200 s/[\\$]/&&/g;s/;s,x,x,$//
3202 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3205 for ac_prog in mawk gawk nawk awk
3207 # Extract the first word of "$ac_prog", so it can be a program name with args.
3208 set dummy $ac_prog; ac_word=$2
3209 echo "$as_me:3209: checking for $ac_word" >&5
3210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3211 if test "${ac_cv_prog_AWK+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
3214 if test -n "$AWK"; then
3215 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3217 ac_save_IFS=$IFS; IFS=$ac_path_separator
3219 for ac_dir in $ac_dummy; do
3221 test -z "$ac_dir" && ac_dir=.
3222 $as_executable_p "$ac_dir/$ac_word" || continue
3223 ac_cv_prog_AWK="$ac_prog"
3224 echo "$as_me:3224: found $ac_dir/$ac_word" >&5
3231 if test -n "$AWK"; then
3232 echo "$as_me:3232: result: $AWK" >&5
3233 echo "${ECHO_T}$AWK" >&6
3235 echo "$as_me:3235: result: no" >&5
3236 echo "${ECHO_T}no" >&6
3239 test -n "$AWK" && break
3242 test -z "$AWK" && { { echo "$as_me:3242: error: No awk program found" >&5
3243 echo "$as_me: error: No awk program found" >&2;}
3244 { (exit 1); exit 1; }; }
3246 echo "$as_me:3246: checking for egrep" >&5
3247 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3248 if test "${ac_cv_prog_egrep+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3251 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3252 then ac_cv_prog_egrep='grep -E'
3253 else ac_cv_prog_egrep='egrep'
3256 echo "$as_me:3256: result: $ac_cv_prog_egrep" >&5
3257 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3258 EGREP=$ac_cv_prog_egrep
3260 test -z "$EGREP" && { { echo "$as_me:3260: error: No egrep program found" >&5
3261 echo "$as_me: error: No egrep program found" >&2;}
3262 { (exit 1); exit 1; }; }
3264 # Find a good install program. We prefer a C program (faster),
3265 # so one script is as good as another. But avoid the broken or
3266 # incompatible versions:
3267 # SysV /etc/install, /usr/sbin/install
3268 # SunOS /usr/etc/install
3269 # IRIX /sbin/install
3271 # AmigaOS /C/install, which installs bootblocks on floppy discs
3272 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3273 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3274 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3275 # ./install, which can be erroneously created by make from ./install.sh.
3276 echo "$as_me:3276: checking for a BSD compatible install" >&5
3277 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3278 if test -z "$INSTALL"; then
3279 if test "${ac_cv_path_install+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 ac_save_IFS=$IFS; IFS=$ac_path_separator
3283 for ac_dir in $PATH; do
3285 # Account for people who put trailing slashes in PATH elements.
3287 / | ./ | .// | /cC/* \
3288 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3291 # OSF1 and SCO ODT 3.0 have their own names for install.
3292 # Don't use installbsd from OSF since it installs stuff as root
3294 for ac_prog in ginstall scoinst install; do
3295 if $as_executable_p "$ac_dir/$ac_prog"; then
3296 if test $ac_prog = install &&
3297 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3298 # AIX install. It has an incompatible calling convention.
3300 elif test $ac_prog = install &&
3301 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3302 # program-specific install script used by HP pwplus--don't use.
3305 ac_cv_path_install="$ac_dir/$ac_prog -c"
3315 if test "${ac_cv_path_install+set}" = set; then
3316 INSTALL=$ac_cv_path_install
3318 # As a last resort, use the slow shell script. We don't cache a
3319 # path for INSTALL within a source directory, because that will
3320 # break other packages using the cache if that directory is
3321 # removed, or if the path is relative.
3322 INSTALL=$ac_install_sh
3325 echo "$as_me:3325: result: $INSTALL" >&5
3326 echo "${ECHO_T}$INSTALL" >&6
3328 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3329 # It thinks the first close brace ends the variable substitution.
3330 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3332 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3334 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3340 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3341 test -z "$cf_dir" && cf_dir=.
3342 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3346 for ac_prog in tdlint lint alint splint lclint
3348 # Extract the first word of "$ac_prog", so it can be a program name with args.
3349 set dummy $ac_prog; ac_word=$2
3350 echo "$as_me:3350: checking for $ac_word" >&5
3351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3352 if test "${ac_cv_prog_LINT+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3355 if test -n "$LINT"; then
3356 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3358 ac_save_IFS=$IFS; IFS=$ac_path_separator
3360 for ac_dir in $ac_dummy; do
3362 test -z "$ac_dir" && ac_dir=.
3363 $as_executable_p "$ac_dir/$ac_word" || continue
3364 ac_cv_prog_LINT="$ac_prog"
3365 echo "$as_me:3365: found $ac_dir/$ac_word" >&5
3371 LINT=$ac_cv_prog_LINT
3372 if test -n "$LINT"; then
3373 echo "$as_me:3373: result: $LINT" >&5
3374 echo "${ECHO_T}$LINT" >&6
3376 echo "$as_me:3376: result: no" >&5
3377 echo "${ECHO_T}no" >&6
3380 test -n "$LINT" && break
3383 echo "$as_me:3383: checking whether ln -s works" >&5
3384 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3386 if test "$LN_S" = "ln -s"; then
3387 echo "$as_me:3387: result: yes" >&5
3388 echo "${ECHO_T}yes" >&6
3390 echo "$as_me:3390: result: no, using $LN_S" >&5
3391 echo "${ECHO_T}no, using $LN_S" >&6
3394 echo "$as_me:3394: checking if $LN_S -f options work" >&5
3395 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3397 rm -f conf$$.src conf$$dst
3399 echo first >conf$$.src
3400 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3406 echo "$as_me:3406: result: $cf_prog_ln_sf" >&5
3407 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3409 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3411 echo "$as_me:3411: checking for long file names" >&5
3412 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3413 if test "${ac_cv_sys_long_file_names+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3416 ac_cv_sys_long_file_names=yes
3417 # Test for long file names in all the places we know might matter:
3418 # . the current directory, where building will happen
3419 # $prefix/lib where we will be installing things
3420 # $exec_prefix/lib likewise
3421 # eval it to expand exec_prefix.
3422 # $TMPDIR if set, where it might want to write temporary files
3423 # if $TMPDIR is not set:
3424 # /tmp where it might want to write temporary files
3427 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3430 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3432 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3433 test -d $ac_dir || continue
3434 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3435 ac_xdir=$ac_dir/cf$$
3436 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3437 ac_tf1=$ac_xdir/conftest9012345
3438 ac_tf2=$ac_xdir/conftest9012346
3439 (echo 1 >$ac_tf1) 2>/dev/null
3440 (echo 2 >$ac_tf2) 2>/dev/null
3441 ac_val=`cat $ac_tf1 2>/dev/null`
3442 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3443 ac_cv_sys_long_file_names=no
3444 rm -rf $ac_xdir 2>/dev/null
3447 rm -rf $ac_xdir 2>/dev/null
3450 echo "$as_me:3450: result: $ac_cv_sys_long_file_names" >&5
3451 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3452 if test $ac_cv_sys_long_file_names = yes; then
3454 cat >>confdefs.h <<\EOF
3455 #define HAVE_LONG_FILE_NAMES 1
3460 # if we find pkg-config, check if we should install the ".pc" files.
3462 echo "$as_me:3462: checking if you want to use pkg-config" >&5
3463 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3465 # Check whether --with-pkg-config or --without-pkg-config was given.
3466 if test "${with_pkg_config+set}" = set; then
3467 withval="$with_pkg_config"
3468 cf_pkg_config=$withval
3472 echo "$as_me:3472: result: $cf_pkg_config" >&5
3473 echo "${ECHO_T}$cf_pkg_config" >&6
3475 case $cf_pkg_config in #(vi
3480 # Extract the first word of "pkg-config", so it can be a program name with args.
3481 set dummy pkg-config; ac_word=$2
3482 echo "$as_me:3482: checking for $ac_word" >&5
3483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3484 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3485 echo $ECHO_N "(cached) $ECHO_C" >&6
3489 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3492 ac_save_IFS=$IFS; IFS=$ac_path_separator
3494 for ac_dir in $ac_dummy; do
3496 test -z "$ac_dir" && ac_dir=.
3497 if $as_executable_p "$ac_dir/$ac_word"; then
3498 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3499 echo "$as_me:3499: found $ac_dir/$ac_word" >&5
3504 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="none"
3508 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3510 if test -n "$PKG_CONFIG"; then
3511 echo "$as_me:3511: result: $PKG_CONFIG" >&5
3512 echo "${ECHO_T}$PKG_CONFIG" >&6
3514 echo "$as_me:3514: result: no" >&5
3515 echo "${ECHO_T}no" >&6
3524 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3525 if test "$PKG_CONFIG" != none ; then
3527 if test "x$prefix" != xNONE; then
3528 cf_path_syntax="$prefix"
3530 cf_path_syntax="$ac_default_prefix"
3533 case ".$PKG_CONFIG" in #(vi
3534 .\$\(*\)*|.\'*\'*) #(vi
3538 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3541 eval PKG_CONFIG="$PKG_CONFIG"
3542 case ".$PKG_CONFIG" in #(vi
3544 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3549 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3552 { { echo "$as_me:3552: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3553 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3554 { (exit 1); exit 1; }; }
3560 if test "$PKG_CONFIG" != no ; then
3561 echo "$as_me:3561: checking if we should install .pc files for $PKG_CONFIG" >&5
3562 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3564 # Leave this as something that can be overridden in the environment.
3565 if test -z "$PKG_CONFIG_LIBDIR" ; then
3566 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`/lib/pkgconfig
3568 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG_LIBDIR" | sed -e 's/^://' -e 's/:.*//'`
3569 if test -n "$PKG_CONFIG_LIBDIR" && test -d "$PKG_CONFIG_LIBDIR" ; then
3571 # Check whether --enable-pc-files or --disable-pc-files was given.
3572 if test "${enable_pc_files+set}" = set; then
3573 enableval="$enable_pc_files"
3574 enable_pc_files=$enableval
3578 echo "$as_me:3578: result: $enable_pc_files" >&5
3579 echo "${ECHO_T}$enable_pc_files" >&6
3581 echo "$as_me:3581: result: no" >&5
3582 echo "${ECHO_T}no" >&6
3583 { echo "$as_me:3583: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&5
3584 echo "$as_me: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&2;}
3589 echo "$as_me:3589: checking if we should assume mixed-case filenames" >&5
3590 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3592 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3593 if test "${enable_mixed_case+set}" = set; then
3594 enableval="$enable_mixed_case"
3595 enable_mixedcase=$enableval
3597 enable_mixedcase=auto
3599 echo "$as_me:3599: result: $enable_mixedcase" >&5
3600 echo "${ECHO_T}$enable_mixedcase" >&6
3601 if test "$enable_mixedcase" = "auto" ; then
3603 echo "$as_me:3603: checking if filesystem supports mixed-case filenames" >&5
3604 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3605 if test "${cf_cv_mixedcase+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 if test "$cross_compiling" = yes ; then
3610 case $target_alias in #(vi
3611 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3619 rm -f conftest CONFTEST
3621 if test -f CONFTEST ; then
3626 rm -f conftest CONFTEST
3630 echo "$as_me:3630: result: $cf_cv_mixedcase" >&5
3631 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3632 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3633 #define MIXEDCASE_FILENAMES 1
3637 cf_cv_mixedcase=$enable_mixedcase
3638 if test "$enable_mixedcase" = "yes" ; then
3639 cat >>confdefs.h <<\EOF
3640 #define MIXEDCASE_FILENAMES 1
3646 # do this after mixed-case option (tags/TAGS is not as important as tic).
3647 echo "$as_me:3647: checking whether ${MAKE-make} sets \${MAKE}" >&5
3648 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3649 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3650 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3651 echo $ECHO_N "(cached) $ECHO_C" >&6
3653 cat >conftest.make <<\EOF
3655 @echo 'ac_maketemp="${MAKE}"'
3657 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3658 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3659 if test -n "$ac_maketemp"; then
3660 eval ac_cv_prog_make_${ac_make}_set=yes
3662 eval ac_cv_prog_make_${ac_make}_set=no
3666 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3667 echo "$as_me:3667: result: yes" >&5
3668 echo "${ECHO_T}yes" >&6
3671 echo "$as_me:3671: result: no" >&5
3672 echo "${ECHO_T}no" >&6
3673 SET_MAKE="MAKE=${MAKE-make}"
3676 for ac_prog in exctags ctags
3678 # Extract the first word of "$ac_prog", so it can be a program name with args.
3679 set dummy $ac_prog; ac_word=$2
3680 echo "$as_me:3680: checking for $ac_word" >&5
3681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3682 if test "${ac_cv_prog_CTAGS+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3685 if test -n "$CTAGS"; then
3686 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3688 ac_save_IFS=$IFS; IFS=$ac_path_separator
3690 for ac_dir in $ac_dummy; do
3692 test -z "$ac_dir" && ac_dir=.
3693 $as_executable_p "$ac_dir/$ac_word" || continue
3694 ac_cv_prog_CTAGS="$ac_prog"
3695 echo "$as_me:3695: found $ac_dir/$ac_word" >&5
3701 CTAGS=$ac_cv_prog_CTAGS
3702 if test -n "$CTAGS"; then
3703 echo "$as_me:3703: result: $CTAGS" >&5
3704 echo "${ECHO_T}$CTAGS" >&6
3706 echo "$as_me:3706: result: no" >&5
3707 echo "${ECHO_T}no" >&6
3710 test -n "$CTAGS" && break
3713 for ac_prog in exetags etags
3715 # Extract the first word of "$ac_prog", so it can be a program name with args.
3716 set dummy $ac_prog; ac_word=$2
3717 echo "$as_me:3717: checking for $ac_word" >&5
3718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3719 if test "${ac_cv_prog_ETAGS+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 if test -n "$ETAGS"; then
3723 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3725 ac_save_IFS=$IFS; IFS=$ac_path_separator
3727 for ac_dir in $ac_dummy; do
3729 test -z "$ac_dir" && ac_dir=.
3730 $as_executable_p "$ac_dir/$ac_word" || continue
3731 ac_cv_prog_ETAGS="$ac_prog"
3732 echo "$as_me:3732: found $ac_dir/$ac_word" >&5
3738 ETAGS=$ac_cv_prog_ETAGS
3739 if test -n "$ETAGS"; then
3740 echo "$as_me:3740: result: $ETAGS" >&5
3741 echo "${ECHO_T}$ETAGS" >&6
3743 echo "$as_me:3743: result: no" >&5
3744 echo "${ECHO_T}no" >&6
3747 test -n "$ETAGS" && break
3750 # Extract the first word of "${CTAGS-ctags}", so it can be a program name with args.
3751 set dummy ${CTAGS-ctags}; ac_word=$2
3752 echo "$as_me:3752: checking for $ac_word" >&5
3753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3754 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3757 if test -n "$MAKE_LOWER_TAGS"; then
3758 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3760 ac_save_IFS=$IFS; IFS=$ac_path_separator
3762 for ac_dir in $ac_dummy; do
3764 test -z "$ac_dir" && ac_dir=.
3765 $as_executable_p "$ac_dir/$ac_word" || continue
3766 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3767 echo "$as_me:3767: found $ac_dir/$ac_word" >&5
3771 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3774 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3775 if test -n "$MAKE_LOWER_TAGS"; then
3776 echo "$as_me:3776: result: $MAKE_LOWER_TAGS" >&5
3777 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3779 echo "$as_me:3779: result: no" >&5
3780 echo "${ECHO_T}no" >&6
3783 if test "$cf_cv_mixedcase" = yes ; then
3784 # Extract the first word of "${ETAGS-etags}", so it can be a program name with args.
3785 set dummy ${ETAGS-etags}; ac_word=$2
3786 echo "$as_me:3786: checking for $ac_word" >&5
3787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3788 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
3791 if test -n "$MAKE_UPPER_TAGS"; then
3792 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3794 ac_save_IFS=$IFS; IFS=$ac_path_separator
3796 for ac_dir in $ac_dummy; do
3798 test -z "$ac_dir" && ac_dir=.
3799 $as_executable_p "$ac_dir/$ac_word" || continue
3800 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3801 echo "$as_me:3801: found $ac_dir/$ac_word" >&5
3805 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3808 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3809 if test -n "$MAKE_UPPER_TAGS"; then
3810 echo "$as_me:3810: result: $MAKE_UPPER_TAGS" >&5
3811 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3813 echo "$as_me:3813: result: no" >&5
3814 echo "${ECHO_T}no" >&6
3821 if test "$MAKE_UPPER_TAGS" = yes ; then
3827 if test "$MAKE_LOWER_TAGS" = yes ; then
3833 echo "$as_me:3833: checking for makeflags variable" >&5
3834 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3835 if test "${cf_cv_makeflags+set}" = set; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6
3840 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3842 cat >cf_makeflags.tmp <<CF_EOF
3845 @ echo '.$cf_option'
3847 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null | sed -e 's,[ ]*$,,'`
3848 case "$cf_result" in
3850 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3851 case "$cf_result" in
3852 .*CC=*) cf_cv_makeflags=
3854 *) cf_cv_makeflags=$cf_option
3860 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3864 rm -f cf_makeflags.tmp
3867 echo "$as_me:3867: result: $cf_cv_makeflags" >&5
3868 echo "${ECHO_T}$cf_cv_makeflags" >&6
3870 if test -n "$ac_tool_prefix"; then
3871 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3872 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3873 echo "$as_me:3873: checking for $ac_word" >&5
3874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3875 if test "${ac_cv_prog_RANLIB+set}" = set; then
3876 echo $ECHO_N "(cached) $ECHO_C" >&6
3878 if test -n "$RANLIB"; then
3879 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3881 ac_save_IFS=$IFS; IFS=$ac_path_separator
3883 for ac_dir in $ac_dummy; do
3885 test -z "$ac_dir" && ac_dir=.
3886 $as_executable_p "$ac_dir/$ac_word" || continue
3887 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3888 echo "$as_me:3888: found $ac_dir/$ac_word" >&5
3894 RANLIB=$ac_cv_prog_RANLIB
3895 if test -n "$RANLIB"; then
3896 echo "$as_me:3896: result: $RANLIB" >&5
3897 echo "${ECHO_T}$RANLIB" >&6
3899 echo "$as_me:3899: result: no" >&5
3900 echo "${ECHO_T}no" >&6
3904 if test -z "$ac_cv_prog_RANLIB"; then
3905 ac_ct_RANLIB=$RANLIB
3906 # Extract the first word of "ranlib", so it can be a program name with args.
3907 set dummy ranlib; ac_word=$2
3908 echo "$as_me:3908: checking for $ac_word" >&5
3909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3910 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 if test -n "$ac_ct_RANLIB"; then
3914 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3916 ac_save_IFS=$IFS; IFS=$ac_path_separator
3918 for ac_dir in $ac_dummy; do
3920 test -z "$ac_dir" && ac_dir=.
3921 $as_executable_p "$ac_dir/$ac_word" || continue
3922 ac_cv_prog_ac_ct_RANLIB="ranlib"
3923 echo "$as_me:3923: found $ac_dir/$ac_word" >&5
3927 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3930 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3931 if test -n "$ac_ct_RANLIB"; then
3932 echo "$as_me:3932: result: $ac_ct_RANLIB" >&5
3933 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3935 echo "$as_me:3935: result: no" >&5
3936 echo "${ECHO_T}no" >&6
3939 RANLIB=$ac_ct_RANLIB
3941 RANLIB="$ac_cv_prog_RANLIB"
3944 if test -n "$ac_tool_prefix"; then
3945 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3946 set dummy ${ac_tool_prefix}ld; ac_word=$2
3947 echo "$as_me:3947: checking for $ac_word" >&5
3948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3949 if test "${ac_cv_prog_LD+set}" = set; then
3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3952 if test -n "$LD"; then
3953 ac_cv_prog_LD="$LD" # Let the user override the test.
3955 ac_save_IFS=$IFS; IFS=$ac_path_separator
3957 for ac_dir in $ac_dummy; do
3959 test -z "$ac_dir" && ac_dir=.
3960 $as_executable_p "$ac_dir/$ac_word" || continue
3961 ac_cv_prog_LD="${ac_tool_prefix}ld"
3962 echo "$as_me:3962: found $ac_dir/$ac_word" >&5
3969 if test -n "$LD"; then
3970 echo "$as_me:3970: result: $LD" >&5
3971 echo "${ECHO_T}$LD" >&6
3973 echo "$as_me:3973: result: no" >&5
3974 echo "${ECHO_T}no" >&6
3978 if test -z "$ac_cv_prog_LD"; then
3980 # Extract the first word of "ld", so it can be a program name with args.
3981 set dummy ld; ac_word=$2
3982 echo "$as_me:3982: checking for $ac_word" >&5
3983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3984 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 if test -n "$ac_ct_LD"; then
3988 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3990 ac_save_IFS=$IFS; IFS=$ac_path_separator
3992 for ac_dir in $ac_dummy; do
3994 test -z "$ac_dir" && ac_dir=.
3995 $as_executable_p "$ac_dir/$ac_word" || continue
3996 ac_cv_prog_ac_ct_LD="ld"
3997 echo "$as_me:3997: found $ac_dir/$ac_word" >&5
4001 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4004 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4005 if test -n "$ac_ct_LD"; then
4006 echo "$as_me:4006: result: $ac_ct_LD" >&5
4007 echo "${ECHO_T}$ac_ct_LD" >&6
4009 echo "$as_me:4009: result: no" >&5
4010 echo "${ECHO_T}no" >&6
4018 if test -n "$ac_tool_prefix"; then
4019 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4020 set dummy ${ac_tool_prefix}ar; ac_word=$2
4021 echo "$as_me:4021: checking for $ac_word" >&5
4022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4023 if test "${ac_cv_prog_AR+set}" = set; then
4024 echo $ECHO_N "(cached) $ECHO_C" >&6
4026 if test -n "$AR"; then
4027 ac_cv_prog_AR="$AR" # Let the user override the test.
4029 ac_save_IFS=$IFS; IFS=$ac_path_separator
4031 for ac_dir in $ac_dummy; do
4033 test -z "$ac_dir" && ac_dir=.
4034 $as_executable_p "$ac_dir/$ac_word" || continue
4035 ac_cv_prog_AR="${ac_tool_prefix}ar"
4036 echo "$as_me:4036: found $ac_dir/$ac_word" >&5
4043 if test -n "$AR"; then
4044 echo "$as_me:4044: result: $AR" >&5
4045 echo "${ECHO_T}$AR" >&6
4047 echo "$as_me:4047: result: no" >&5
4048 echo "${ECHO_T}no" >&6
4052 if test -z "$ac_cv_prog_AR"; then
4054 # Extract the first word of "ar", so it can be a program name with args.
4055 set dummy ar; ac_word=$2
4056 echo "$as_me:4056: checking for $ac_word" >&5
4057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4058 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4059 echo $ECHO_N "(cached) $ECHO_C" >&6
4061 if test -n "$ac_ct_AR"; then
4062 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4064 ac_save_IFS=$IFS; IFS=$ac_path_separator
4066 for ac_dir in $ac_dummy; do
4068 test -z "$ac_dir" && ac_dir=.
4069 $as_executable_p "$ac_dir/$ac_word" || continue
4070 ac_cv_prog_ac_ct_AR="ar"
4071 echo "$as_me:4071: found $ac_dir/$ac_word" >&5
4075 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4078 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4079 if test -n "$ac_ct_AR"; then
4080 echo "$as_me:4080: result: $ac_ct_AR" >&5
4081 echo "${ECHO_T}$ac_ct_AR" >&6
4083 echo "$as_me:4083: result: no" >&5
4084 echo "${ECHO_T}no" >&6
4092 if test -n "$ac_tool_prefix"; then
4093 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4094 set dummy ${ac_tool_prefix}ar; ac_word=$2
4095 echo "$as_me:4095: checking for $ac_word" >&5
4096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4097 if test "${ac_cv_prog_AR+set}" = set; then
4098 echo $ECHO_N "(cached) $ECHO_C" >&6
4100 if test -n "$AR"; then
4101 ac_cv_prog_AR="$AR" # Let the user override the test.
4103 ac_save_IFS=$IFS; IFS=$ac_path_separator
4105 for ac_dir in $ac_dummy; do
4107 test -z "$ac_dir" && ac_dir=.
4108 $as_executable_p "$ac_dir/$ac_word" || continue
4109 ac_cv_prog_AR="${ac_tool_prefix}ar"
4110 echo "$as_me:4110: found $ac_dir/$ac_word" >&5
4117 if test -n "$AR"; then
4118 echo "$as_me:4118: result: $AR" >&5
4119 echo "${ECHO_T}$AR" >&6
4121 echo "$as_me:4121: result: no" >&5
4122 echo "${ECHO_T}no" >&6
4126 if test -z "$ac_cv_prog_AR"; then
4128 # Extract the first word of "ar", so it can be a program name with args.
4129 set dummy ar; ac_word=$2
4130 echo "$as_me:4130: checking for $ac_word" >&5
4131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4132 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4133 echo $ECHO_N "(cached) $ECHO_C" >&6
4135 if test -n "$ac_ct_AR"; then
4136 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4138 ac_save_IFS=$IFS; IFS=$ac_path_separator
4140 for ac_dir in $ac_dummy; do
4142 test -z "$ac_dir" && ac_dir=.
4143 $as_executable_p "$ac_dir/$ac_word" || continue
4144 ac_cv_prog_ac_ct_AR="ar"
4145 echo "$as_me:4145: found $ac_dir/$ac_word" >&5
4149 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4152 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4153 if test -n "$ac_ct_AR"; then
4154 echo "$as_me:4154: result: $ac_ct_AR" >&5
4155 echo "${ECHO_T}$ac_ct_AR" >&6
4157 echo "$as_me:4157: result: no" >&5
4158 echo "${ECHO_T}no" >&6
4166 echo "$as_me:4166: checking for options to update archives" >&5
4167 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4168 if test "${cf_cv_ar_flags+set}" = set; then
4169 echo $ECHO_N "(cached) $ECHO_C" >&6
4172 cf_cv_ar_flags=unknown
4173 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
4176 # check if $ARFLAGS already contains this choice
4177 if test "x$ARFLAGS" != "x" ; then
4178 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4179 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4185 rm -f conftest.$ac_cv_objext
4188 cat >conftest.$ac_ext <<EOF
4189 #line 4189 "configure"
4190 int testdata[3] = { 123, 456, 789 };
4192 if { (eval echo "$as_me:4192: \"$ac_compile\"") >&5
4193 (eval $ac_compile) 2>&5
4195 echo "$as_me:4195: \$? = $ac_status" >&5
4196 (exit $ac_status); } ; then
4197 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4198 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4199 if test -f conftest.a ; then
4200 cf_cv_ar_flags=$cf_ar_flags
4204 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4206 echo "${as_me-configure}:4206: testing cannot compile test-program ..." 1>&5
4211 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4214 echo "$as_me:4214: result: $cf_cv_ar_flags" >&5
4215 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4217 if test -n "$ARFLAGS" ; then
4218 if test -n "$cf_cv_ar_flags" ; then
4219 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4222 ARFLAGS=$cf_cv_ar_flags
4225 echo "$as_me:4225: checking if you have specified an install-prefix" >&5
4226 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4228 # Check whether --with-install-prefix or --without-install-prefix was given.
4229 if test "${with_install_prefix+set}" = set; then
4230 withval="$with_install_prefix"
4231 case "$withval" in #(vi
4234 *) DESTDIR="$withval"
4238 echo "$as_me:4238: result: $DESTDIR" >&5
4239 echo "${ECHO_T}$DESTDIR" >&6
4241 ###############################################################################
4243 # If we're cross-compiling, allow the user to override the tools and their
4244 # options. The configure script is oriented toward identifying the host
4245 # compiler, etc., but we need a build compiler to generate parts of the source.
4247 if test "$cross_compiling" = yes ; then
4249 # defaults that we might want to override
4250 : ${BUILD_CFLAGS:=''}
4251 : ${BUILD_CPPFLAGS:=''}
4252 : ${BUILD_LDFLAGS:=''}
4254 : ${BUILD_EXEEXT:='$x'}
4255 : ${BUILD_OBJEXT:='o'}
4257 # Check whether --with-build-cc or --without-build-cc was given.
4258 if test "${with_build_cc+set}" = set; then
4259 withval="$with_build_cc"
4262 for ac_prog in gcc cc cl
4264 # Extract the first word of "$ac_prog", so it can be a program name with args.
4265 set dummy $ac_prog; ac_word=$2
4266 echo "$as_me:4266: checking for $ac_word" >&5
4267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4268 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4269 echo $ECHO_N "(cached) $ECHO_C" >&6
4271 if test -n "$BUILD_CC"; then
4272 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4274 ac_save_IFS=$IFS; IFS=$ac_path_separator
4276 for ac_dir in $ac_dummy; do
4278 test -z "$ac_dir" && ac_dir=.
4279 $as_executable_p "$ac_dir/$ac_word" || continue
4280 ac_cv_prog_BUILD_CC="$ac_prog"
4281 echo "$as_me:4281: found $ac_dir/$ac_word" >&5
4287 BUILD_CC=$ac_cv_prog_BUILD_CC
4288 if test -n "$BUILD_CC"; then
4289 echo "$as_me:4289: result: $BUILD_CC" >&5
4290 echo "${ECHO_T}$BUILD_CC" >&6
4292 echo "$as_me:4292: result: no" >&5
4293 echo "${ECHO_T}no" >&6
4296 test -n "$BUILD_CC" && break
4300 echo "$as_me:4300: checking for native build C compiler" >&5
4301 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4302 echo "$as_me:4302: result: $BUILD_CC" >&5
4303 echo "${ECHO_T}$BUILD_CC" >&6
4305 echo "$as_me:4305: checking for native build C preprocessor" >&5
4306 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4308 # Check whether --with-build-cpp or --without-build-cpp was given.
4309 if test "${with_build_cpp+set}" = set; then
4310 withval="$with_build_cpp"
4311 BUILD_CPP="$withval"
4313 BUILD_CPP='${BUILD_CC} -E'
4315 echo "$as_me:4315: result: $BUILD_CPP" >&5
4316 echo "${ECHO_T}$BUILD_CPP" >&6
4318 echo "$as_me:4318: checking for native build C flags" >&5
4319 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4321 # Check whether --with-build-cflags or --without-build-cflags was given.
4322 if test "${with_build_cflags+set}" = set; then
4323 withval="$with_build_cflags"
4324 BUILD_CFLAGS="$withval"
4326 echo "$as_me:4326: result: $BUILD_CFLAGS" >&5
4327 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4329 echo "$as_me:4329: checking for native build C preprocessor-flags" >&5
4330 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4332 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4333 if test "${with_build_cppflags+set}" = set; then
4334 withval="$with_build_cppflags"
4335 BUILD_CPPFLAGS="$withval"
4337 echo "$as_me:4337: result: $BUILD_CPPFLAGS" >&5
4338 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4340 echo "$as_me:4340: checking for native build linker-flags" >&5
4341 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4343 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4344 if test "${with_build_ldflags+set}" = set; then
4345 withval="$with_build_ldflags"
4346 BUILD_LDFLAGS="$withval"
4348 echo "$as_me:4348: result: $BUILD_LDFLAGS" >&5
4349 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4351 echo "$as_me:4351: checking for native build linker-libraries" >&5
4352 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4354 # Check whether --with-build-libs or --without-build-libs was given.
4355 if test "${with_build_libs+set}" = set; then
4356 withval="$with_build_libs"
4357 BUILD_LIBS="$withval"
4359 echo "$as_me:4359: result: $BUILD_LIBS" >&5
4360 echo "${ECHO_T}$BUILD_LIBS" >&6
4362 # this assumes we're on Unix.
4366 : ${BUILD_CC:='${CC}'}
4368 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4369 { { echo "$as_me:4369: error: Cross-build requires two compilers.
4370 Use --with-build-cc to specify the native compiler." >&5
4371 echo "$as_me: error: Cross-build requires two compilers.
4372 Use --with-build-cc to specify the native compiler." >&2;}
4373 { (exit 1); exit 1; }; }
4377 : ${BUILD_CC:='${CC}'}
4378 : ${BUILD_CPP:='${CPP}'}
4379 : ${BUILD_CFLAGS:='${CFLAGS}'}
4380 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4381 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4382 : ${BUILD_LIBS:='${LIBS}'}
4383 : ${BUILD_EXEEXT:='$x'}
4384 : ${BUILD_OBJEXT:='o'}
4387 ###############################################################################
4389 ### Options to allow the user to specify the set of libraries which are used.
4390 ### Use "--without-normal --with-shared" to allow the default model to be
4391 ### shared, for example.
4394 echo "$as_me:4394: checking if libtool -version-number should be used" >&5
4395 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
4397 # Check whether --enable-libtool-version or --disable-libtool-version was given.
4398 if test "${enable_libtool_version+set}" = set; then
4399 enableval="$enable_libtool_version"
4400 test "$enableval" != no && enableval=yes
4401 if test "$enableval" != "yes" ; then
4402 cf_libtool_version=no
4404 cf_libtool_version=yes
4408 cf_libtool_version=yes
4411 echo "$as_me:4411: result: $cf_libtool_version" >&5
4412 echo "${ECHO_T}$cf_libtool_version" >&6
4414 if test "$cf_libtool_version" = yes ; then
4415 LIBTOOL_VERSION="-version-number"
4417 LIBTOOL_VERSION="-version-info"
4422 # common library maintenance symbols that are convenient for libtool scripts:
4423 LIB_CREATE='${AR} -cr'
4424 LIB_OBJECT='${OBJECTS}'
4428 # symbols used to prop libtool up to enable it to determine what it should be
4436 echo "$as_me:4436: checking if you want to build libraries with libtool" >&5
4437 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4439 # Check whether --with-libtool or --without-libtool was given.
4440 if test "${with_libtool+set}" = set; then
4441 withval="$with_libtool"
4442 with_libtool=$withval
4446 echo "$as_me:4446: result: $with_libtool" >&5
4447 echo "${ECHO_T}$with_libtool" >&6
4448 if test "$with_libtool" != "no"; then
4450 if test "$with_libtool" != "yes" ; then
4452 if test "x$prefix" != xNONE; then
4453 cf_path_syntax="$prefix"
4455 cf_path_syntax="$ac_default_prefix"
4458 case ".$with_libtool" in #(vi
4459 .\$\(*\)*|.\'*\'*) #(vi
4463 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4466 eval with_libtool="$with_libtool"
4467 case ".$with_libtool" in #(vi
4469 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4474 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4477 { { echo "$as_me:4477: error: expected a pathname, not \"$with_libtool\"" >&5
4478 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4479 { (exit 1); exit 1; }; }
4483 LIBTOOL=$with_libtool
4485 # Extract the first word of "libtool", so it can be a program name with args.
4486 set dummy libtool; ac_word=$2
4487 echo "$as_me:4487: checking for $ac_word" >&5
4488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4489 if test "${ac_cv_path_LIBTOOL+set}" = set; then
4490 echo $ECHO_N "(cached) $ECHO_C" >&6
4494 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
4497 ac_save_IFS=$IFS; IFS=$ac_path_separator
4499 for ac_dir in $ac_dummy; do
4501 test -z "$ac_dir" && ac_dir=.
4502 if $as_executable_p "$ac_dir/$ac_word"; then
4503 ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
4504 echo "$as_me:4504: found $ac_dir/$ac_word" >&5
4512 LIBTOOL=$ac_cv_path_LIBTOOL
4514 if test -n "$LIBTOOL"; then
4515 echo "$as_me:4515: result: $LIBTOOL" >&5
4516 echo "${ECHO_T}$LIBTOOL" >&6
4518 echo "$as_me:4518: result: no" >&5
4519 echo "${ECHO_T}no" >&6
4523 if test -z "$LIBTOOL" ; then
4524 { { echo "$as_me:4524: error: Cannot find libtool" >&5
4525 echo "$as_me: error: Cannot find libtool" >&2;}
4526 { (exit 1); exit 1; }; }
4528 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} ${LIBTOOL_VERSION} `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} -o'
4529 LIB_OBJECT='${OBJECTS:.o=.lo}'
4531 LIB_CLEAN='${LIBTOOL} --mode=clean'
4532 LIB_COMPILE='${LIBTOOL} --mode=compile'
4533 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
4534 LIB_INSTALL='${LIBTOOL} --mode=install'
4535 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4538 # Show the version of libtool
4539 echo "$as_me:4539: checking version of libtool" >&5
4540 echo $ECHO_N "checking version of libtool... $ECHO_C" >&6
4542 # Save the version in a cache variable - this is not entirely a good
4543 # thing, but the version string from libtool is very ugly, and for
4544 # bug reports it might be useful to have the original string. "("
4545 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.].*//'`
4546 echo "$as_me:4546: result: $cf_cv_libtool_version" >&5
4547 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4548 if test -z "$cf_cv_libtool_version" ; then
4549 { { echo "$as_me:4549: error: This is not GNU libtool" >&5
4550 echo "$as_me: error: This is not GNU libtool" >&2;}
4551 { (exit 1); exit 1; }; }
4554 # special hack to add -no-undefined (which libtool should do for itself)
4556 case "$cf_cv_system_name" in #(vi
4557 cygwin*|mingw32*|uwin*|aix[456]) #(vi
4558 LT_UNDEF=-no-undefined
4562 # special hack to add --tag option for C++ compiler
4563 case $cf_cv_libtool_version in #(vi
4564 1.[5-9]*|[2-9].[0-9.a-z]*) #(vi
4565 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4566 LIBTOOL="$LIBTOOL --tag=CC"
4569 LIBTOOL_CXX="$LIBTOOL"
4577 test -z "$LIBTOOL" && ECHO_LT=
4579 if test "$with_libtool" != "no" ; then
4581 cf_list_models="$cf_list_models libtool"
4585 echo "$as_me:4585: checking if you want to build shared libraries" >&5
4586 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
4588 # Check whether --with-shared or --without-shared was given.
4589 if test "${with_shared+set}" = set; then
4590 withval="$with_shared"
4591 with_shared=$withval
4595 echo "$as_me:4595: result: $with_shared" >&5
4596 echo "${ECHO_T}$with_shared" >&6
4597 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
4599 echo "$as_me:4599: checking if you want to build static libraries" >&5
4600 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
4602 # Check whether --with-normal or --without-normal was given.
4603 if test "${with_normal+set}" = set; then
4604 withval="$with_normal"
4605 with_normal=$withval
4609 echo "$as_me:4609: result: $with_normal" >&5
4610 echo "${ECHO_T}$with_normal" >&6
4611 test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
4613 echo "$as_me:4613: checking if you want to build debug libraries" >&5
4614 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
4616 # Check whether --with-debug or --without-debug was given.
4617 if test "${with_debug+set}" = set; then
4618 withval="$with_debug"
4623 echo "$as_me:4623: result: $with_debug" >&5
4624 echo "${ECHO_T}$with_debug" >&6
4625 test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
4627 echo "$as_me:4627: checking if you want to build profiling libraries" >&5
4628 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
4630 # Check whether --with-profile or --without-profile was given.
4631 if test "${with_profile+set}" = set; then
4632 withval="$with_profile"
4633 with_profile=$withval
4637 echo "$as_me:4637: result: $with_profile" >&5
4638 echo "${ECHO_T}$with_profile" >&6
4639 test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
4643 ###############################################################################
4645 echo "$as_me:4645: checking for specified models" >&5
4646 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
4647 test -z "$cf_list_models" && cf_list_models=normal
4648 test "$with_libtool" != "no" && cf_list_models=libtool
4649 echo "$as_me:4649: result: $cf_list_models" >&5
4650 echo "${ECHO_T}$cf_list_models" >&6
4652 ### Use the first model as the default, and save its suffix for use in building
4653 ### up test-applications.
4654 echo "$as_me:4654: checking for default model" >&5
4655 echo $ECHO_N "checking for default model... $ECHO_C" >&6
4656 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
4657 echo "$as_me:4657: result: $DFT_LWR_MODEL" >&5
4658 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
4660 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4671 case $cf_cv_system_name in #(vi
4678 cf_prefix=$LIB_PREFIX
4680 LIB_PREFIX=$cf_prefix
4684 ###############################################################################
4686 echo "$as_me:4686: checking if you want to build a separate terminfo library" >&5
4687 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
4689 # Check whether --with-termlib or --without-termlib was given.
4690 if test "${with_termlib+set}" = set; then
4691 withval="$with_termlib"
4692 with_termlib=$withval
4696 echo "$as_me:4696: result: $with_termlib" >&5
4697 echo "${ECHO_T}$with_termlib" >&6
4699 echo "$as_me:4699: checking if you want to build a separate tic library" >&5
4700 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
4702 # Check whether --with-ticlib or --without-ticlib was given.
4703 if test "${with_ticlib+set}" = set; then
4704 withval="$with_ticlib"
4705 with_ticlib=$withval
4709 echo "$as_me:4709: result: $with_ticlib" >&5
4710 echo "${ECHO_T}$with_ticlib" >&6
4712 ### Checks for special libraries, must be done up-front.
4715 echo "$as_me:4715: checking if you want to link with the GPM mouse library" >&5
4716 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
4718 # Check whether --with-gpm or --without-gpm was given.
4719 if test "${with_gpm+set}" = set; then
4725 echo "$as_me:4725: result: $with_gpm" >&5
4726 echo "${ECHO_T}$with_gpm" >&6
4728 if test "$with_gpm" != no ; then
4729 echo "$as_me:4729: checking for gpm.h" >&5
4730 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
4731 if test "${ac_cv_header_gpm_h+set}" = set; then
4732 echo $ECHO_N "(cached) $ECHO_C" >&6
4734 cat >conftest.$ac_ext <<_ACEOF
4735 #line 4735 "configure"
4736 #include "confdefs.h"
4739 if { (eval echo "$as_me:4739: \"$ac_cpp conftest.$ac_ext\"") >&5
4740 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4742 egrep -v '^ *\+' conftest.er1 >conftest.err
4744 cat conftest.err >&5
4745 echo "$as_me:4745: \$? = $ac_status" >&5
4746 (exit $ac_status); } >/dev/null; then
4747 if test -s conftest.err; then
4748 ac_cpp_err=$ac_c_preproc_warn_flag
4755 if test -z "$ac_cpp_err"; then
4756 ac_cv_header_gpm_h=yes
4758 echo "$as_me: failed program was:" >&5
4759 cat conftest.$ac_ext >&5
4760 ac_cv_header_gpm_h=no
4762 rm -f conftest.err conftest.$ac_ext
4764 echo "$as_me:4764: result: $ac_cv_header_gpm_h" >&5
4765 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
4766 if test $ac_cv_header_gpm_h = yes; then
4768 cat >>confdefs.h <<\EOF
4769 #define HAVE_GPM_H 1
4772 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
4773 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
4775 echo "${as_me-configure}:4775: testing assuming we really have GPM library ..." 1>&5
4777 cat >>confdefs.h <<\EOF
4778 #define HAVE_LIBGPM 1
4782 echo "$as_me:4782: checking for Gpm_Open in -lgpm" >&5
4783 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
4784 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
4785 echo $ECHO_N "(cached) $ECHO_C" >&6
4787 ac_check_lib_save_LIBS=$LIBS
4789 cat >conftest.$ac_ext <<_ACEOF
4790 #line 4790 "configure"
4791 #include "confdefs.h"
4793 /* Override any gcc2 internal prototype to avoid an error. */
4797 /* We use char because int might match the return type of a gcc2
4798 builtin and then its argument prototype would still apply. */
4808 rm -f conftest.$ac_objext conftest$ac_exeext
4809 if { (eval echo "$as_me:4809: \"$ac_link\"") >&5
4810 (eval $ac_link) 2>&5
4812 echo "$as_me:4812: \$? = $ac_status" >&5
4813 (exit $ac_status); } &&
4814 { ac_try='test -s conftest$ac_exeext'
4815 { (eval echo "$as_me:4815: \"$ac_try\"") >&5
4818 echo "$as_me:4818: \$? = $ac_status" >&5
4819 (exit $ac_status); }; }; then
4820 ac_cv_lib_gpm_Gpm_Open=yes
4822 echo "$as_me: failed program was:" >&5
4823 cat conftest.$ac_ext >&5
4824 ac_cv_lib_gpm_Gpm_Open=no
4826 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4827 LIBS=$ac_check_lib_save_LIBS
4829 echo "$as_me:4829: result: $ac_cv_lib_gpm_Gpm_Open" >&5
4830 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
4831 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
4835 { { echo "$as_me:4835: error: Cannot link with GPM library" >&5
4836 echo "$as_me: error: Cannot link with GPM library" >&2;}
4837 { (exit 1); exit 1; }; }
4845 test "$with_gpm" != maybe && { echo "$as_me:4845: WARNING: Cannot find GPM header" >&5
4846 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
4853 if test "$with_gpm" != no ; then
4854 echo "$as_me:4854: checking if you want to load GPM dynamically" >&5
4855 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
4857 # Check whether --with-dlsym or --without-dlsym was given.
4858 if test "${with_dlsym+set}" = set; then
4859 withval="$with_dlsym"
4864 echo "$as_me:4864: result: $with_dlsym" >&5
4865 echo "${ECHO_T}$with_dlsym" >&6
4866 if test "$with_dlsym" = yes ; then
4869 echo "$as_me:4869: checking for dlsym" >&5
4870 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
4871 if test "${ac_cv_func_dlsym+set}" = set; then
4872 echo $ECHO_N "(cached) $ECHO_C" >&6
4874 cat >conftest.$ac_ext <<_ACEOF
4875 #line 4875 "configure"
4876 #include "confdefs.h"
4877 /* System header to define __stub macros and hopefully few prototypes,
4878 which can conflict with char dlsym (); below. */
4880 /* Override any gcc2 internal prototype to avoid an error. */
4884 /* We use char because int might match the return type of a gcc2
4885 builtin and then its argument prototype would still apply. */
4892 /* The GNU C library defines this for functions which it implements
4893 to always fail with ENOSYS. Some functions are actually named
4894 something starting with __ and the normal name is an alias. */
4895 #if defined (__stub_dlsym) || defined (__stub___dlsym)
4905 rm -f conftest.$ac_objext conftest$ac_exeext
4906 if { (eval echo "$as_me:4906: \"$ac_link\"") >&5
4907 (eval $ac_link) 2>&5
4909 echo "$as_me:4909: \$? = $ac_status" >&5
4910 (exit $ac_status); } &&
4911 { ac_try='test -s conftest$ac_exeext'
4912 { (eval echo "$as_me:4912: \"$ac_try\"") >&5
4915 echo "$as_me:4915: \$? = $ac_status" >&5
4916 (exit $ac_status); }; }; then
4917 ac_cv_func_dlsym=yes
4919 echo "$as_me: failed program was:" >&5
4920 cat conftest.$ac_ext >&5
4923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4925 echo "$as_me:4925: result: $ac_cv_func_dlsym" >&5
4926 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
4927 if test $ac_cv_func_dlsym = yes; then
4932 echo "$as_me:4932: checking for dlsym in -ldl" >&5
4933 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
4934 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
4935 echo $ECHO_N "(cached) $ECHO_C" >&6
4937 ac_check_lib_save_LIBS=$LIBS
4939 cat >conftest.$ac_ext <<_ACEOF
4940 #line 4940 "configure"
4941 #include "confdefs.h"
4943 /* Override any gcc2 internal prototype to avoid an error. */
4947 /* We use char because int might match the return type of a gcc2
4948 builtin and then its argument prototype would still apply. */
4958 rm -f conftest.$ac_objext conftest$ac_exeext
4959 if { (eval echo "$as_me:4959: \"$ac_link\"") >&5
4960 (eval $ac_link) 2>&5
4962 echo "$as_me:4962: \$? = $ac_status" >&5
4963 (exit $ac_status); } &&
4964 { ac_try='test -s conftest$ac_exeext'
4965 { (eval echo "$as_me:4965: \"$ac_try\"") >&5
4968 echo "$as_me:4968: \$? = $ac_status" >&5
4969 (exit $ac_status); }; }; then
4970 ac_cv_lib_dl_dlsym=yes
4972 echo "$as_me: failed program was:" >&5
4973 cat conftest.$ac_ext >&5
4974 ac_cv_lib_dl_dlsym=no
4976 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4977 LIBS=$ac_check_lib_save_LIBS
4979 echo "$as_me:4979: result: $ac_cv_lib_dl_dlsym" >&5
4980 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
4981 if test $ac_cv_lib_dl_dlsym = yes; then
4989 if test "$cf_have_dlsym" = yes ; then
4990 test "$cf_have_libdl" = yes && LIBS="-ldl $LIBS"
4992 echo "$as_me:4992: checking whether able to link to dl*() functions" >&5
4993 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
4994 cat >conftest.$ac_ext <<_ACEOF
4995 #line 4995 "configure"
4996 #include "confdefs.h"
5003 if ((obj = dlopen("filename", 0)) != 0) {
5004 if (dlsym(obj, "symbolname") == 0) {
5012 rm -f conftest.$ac_objext conftest$ac_exeext
5013 if { (eval echo "$as_me:5013: \"$ac_link\"") >&5
5014 (eval $ac_link) 2>&5
5016 echo "$as_me:5016: \$? = $ac_status" >&5
5017 (exit $ac_status); } &&
5018 { ac_try='test -s conftest$ac_exeext'
5019 { (eval echo "$as_me:5019: \"$ac_try\"") >&5
5022 echo "$as_me:5022: \$? = $ac_status" >&5
5023 (exit $ac_status); }; }; then
5025 cat >>confdefs.h <<\EOF
5026 #define HAVE_LIBDL 1
5030 echo "$as_me: failed program was:" >&5
5031 cat conftest.$ac_ext >&5
5033 { { echo "$as_me:5033: error: Cannot link test program for libdl" >&5
5034 echo "$as_me: error: Cannot link test program for libdl" >&2;}
5035 { (exit 1); exit 1; }; }
5037 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5038 echo "$as_me:5038: result: ok" >&5
5039 echo "${ECHO_T}ok" >&6
5041 { { echo "$as_me:5041: error: Cannot find dlsym function" >&5
5042 echo "$as_me: error: Cannot find dlsym function" >&2;}
5043 { (exit 1); exit 1; }; }
5046 if test "$with_gpm" != yes ; then
5047 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
5049 echo "${as_me-configure}:5049: testing assuming soname for gpm is $with_gpm ..." 1>&5
5051 cf_cv_gpm_soname="$with_gpm"
5054 echo "$as_me:5054: checking for soname of gpm library" >&5
5055 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
5056 if test "${cf_cv_gpm_soname+set}" = set; then
5057 echo $ECHO_N "(cached) $ECHO_C" >&6
5060 cf_cv_gpm_soname=unknown
5061 if test "$cross_compiling" != yes ; then
5062 cat >conftest.$ac_ext <<CF_EOF
5066 if (Gpm_Open(0,0)) Gpm_Close();
5067 ${cf_cv_main_return:-return}(0);
5070 cf_save_LIBS="$LIBS"
5072 if { (eval echo "$as_me:5072: \"$ac_compile\"") >&5
5073 (eval $ac_compile) 2>&5
5075 echo "$as_me:5075: \$? = $ac_status" >&5
5076 (exit $ac_status); } ; then
5077 if { (eval echo "$as_me:5077: \"$ac_link\"") >&5
5078 (eval $ac_link) 2>&5
5080 echo "$as_me:5080: \$? = $ac_status" >&5
5081 (exit $ac_status); } ; then
5082 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
5083 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
5087 LIBS="$cf_save_LIBS"
5091 echo "$as_me:5091: result: $cf_cv_gpm_soname" >&5
5092 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
5095 test "$cf_cv_gpm_soname" != "unknown" && cat >>confdefs.h <<EOF
5096 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
5099 SHLIB_LIST="-ldl $SHLIB_LIST"
5101 SHLIB_LIST="-lgpm $SHLIB_LIST"
5102 TEST_LIBS="-lgpm $TEST_LIBS"
5104 cat >>confdefs.h <<\EOF
5105 #define HAVE_LIBGPM 1
5108 echo "$as_me:5108: checking for Gpm_Wgetch in -lgpm" >&5
5109 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
5110 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
5111 echo $ECHO_N "(cached) $ECHO_C" >&6
5113 ac_check_lib_save_LIBS=$LIBS
5115 cat >conftest.$ac_ext <<_ACEOF
5116 #line 5116 "configure"
5117 #include "confdefs.h"
5119 /* Override any gcc2 internal prototype to avoid an error. */
5123 /* We use char because int might match the return type of a gcc2
5124 builtin and then its argument prototype would still apply. */
5134 rm -f conftest.$ac_objext conftest$ac_exeext
5135 if { (eval echo "$as_me:5135: \"$ac_link\"") >&5
5136 (eval $ac_link) 2>&5
5138 echo "$as_me:5138: \$? = $ac_status" >&5
5139 (exit $ac_status); } &&
5140 { ac_try='test -s conftest$ac_exeext'
5141 { (eval echo "$as_me:5141: \"$ac_try\"") >&5
5144 echo "$as_me:5144: \$? = $ac_status" >&5
5145 (exit $ac_status); }; }; then
5146 ac_cv_lib_gpm_Gpm_Wgetch=yes
5148 echo "$as_me: failed program was:" >&5
5149 cat conftest.$ac_ext >&5
5150 ac_cv_lib_gpm_Gpm_Wgetch=no
5152 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5153 LIBS=$ac_check_lib_save_LIBS
5155 echo "$as_me:5155: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
5156 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
5157 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
5159 echo "$as_me:5159: checking if GPM is weakly bound to curses library" >&5
5160 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
5161 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
5162 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 cf_cv_check_gpm_wgetch=unknown
5166 if test "$cross_compiling" != yes ; then
5168 cat >conftest.$ac_ext <<CF_EOF
5173 ${cf_cv_main_return:-return}(0);
5177 cf_save_LIBS="$LIBS"
5178 # This only works if we can look at the symbol table. If a shared
5179 # library is stripped for install, we cannot use that. So we're forced
5180 # to rely on the static library, noting that some packagers may not
5182 LIBS="-static -lgpm -dynamic $LIBS"
5183 if { (eval echo "$as_me:5183: \"$ac_compile\"") >&5
5184 (eval $ac_compile) 2>&5
5186 echo "$as_me:5186: \$? = $ac_status" >&5
5187 (exit $ac_status); } ; then
5188 if { (eval echo "$as_me:5188: \"$ac_link\"") >&5
5189 (eval $ac_link) 2>&5
5191 echo "$as_me:5191: \$? = $ac_status" >&5
5192 (exit $ac_status); } ; then
5193 cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
5194 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
5195 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
5199 LIBS="$cf_save_LIBS"
5203 echo "$as_me:5203: result: $cf_cv_check_gpm_wgetch" >&5
5204 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
5206 if test "$cf_cv_check_gpm_wgetch" != yes ; then
5207 { echo "$as_me:5207: WARNING: GPM library is already linked with curses - read the FAQ" >&5
5208 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
5215 # not everyone has "test -c"
5216 if test -c /dev/sysmouse 2>/dev/null ; then
5217 echo "$as_me:5217: checking if you want to use sysmouse" >&5
5218 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
5220 # Check whether --with-sysmouse or --without-sysmouse was given.
5221 if test "${with_sysmouse+set}" = set; then
5222 withval="$with_sysmouse"
5223 cf_with_sysmouse=$withval
5225 cf_with_sysmouse=maybe
5227 if test "$cf_with_sysmouse" != no ; then
5228 cat >conftest.$ac_ext <<_ACEOF
5229 #line 5229 "configure"
5230 #include "confdefs.h"
5232 #include <osreldate.h>
5233 #if (__FreeBSD_version >= 400017)
5234 #include <sys/consio.h>
5235 #include <sys/fbio.h>
5237 #include <machine/console.h>
5244 struct mouse_info the_mouse;
5245 ioctl(0, CONS_MOUSECTL, &the_mouse);
5251 rm -f conftest.$ac_objext
5252 if { (eval echo "$as_me:5252: \"$ac_compile\"") >&5
5253 (eval $ac_compile) 2>&5
5255 echo "$as_me:5255: \$? = $ac_status" >&5
5256 (exit $ac_status); } &&
5257 { ac_try='test -s conftest.$ac_objext'
5258 { (eval echo "$as_me:5258: \"$ac_try\"") >&5
5261 echo "$as_me:5261: \$? = $ac_status" >&5
5262 (exit $ac_status); }; }; then
5263 cf_with_sysmouse=yes
5265 echo "$as_me: failed program was:" >&5
5266 cat conftest.$ac_ext >&5
5269 rm -f conftest.$ac_objext conftest.$ac_ext
5271 echo "$as_me:5271: result: $cf_with_sysmouse" >&5
5272 echo "${ECHO_T}$cf_with_sysmouse" >&6
5273 test "$cf_with_sysmouse" = yes && cat >>confdefs.h <<\EOF
5274 #define USE_SYSMOUSE 1
5279 if test X"$CC_G_OPT" = X"" ; then
5281 test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
5284 if test X"$CXX_G_OPT" = X"" ; then
5286 test -n "$GXX" && test "${ac_cv_prog_cxx_g}" != yes && CXX_G_OPT=''
5289 echo "$as_me:5289: checking for default loader flags" >&5
5290 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
5291 case $DFT_LWR_MODEL in
5292 libtool) LD_MODEL='' ;;
5293 normal) LD_MODEL='' ;;
5294 debug) LD_MODEL=$CC_G_OPT ;;
5295 profile) LD_MODEL='-pg';;
5296 shared) LD_MODEL='' ;;
5298 echo "$as_me:5298: result: $LD_MODEL" >&5
5299 echo "${ECHO_T}$LD_MODEL" >&6
5301 case $DFT_LWR_MODEL in
5304 echo "$as_me:5304: checking if rpath option should be used" >&5
5305 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
5307 # Check whether --enable-rpath or --disable-rpath was given.
5308 if test "${enable_rpath+set}" = set; then
5309 enableval="$enable_rpath"
5310 cf_cv_enable_rpath=$enableval
5312 cf_cv_enable_rpath=no
5314 echo "$as_me:5314: result: $cf_cv_enable_rpath" >&5
5315 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
5317 echo "$as_me:5317: checking if shared libraries should be relinked during install" >&5
5318 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
5320 # Check whether --enable-relink or --disable-relink was given.
5321 if test "${enable_relink+set}" = set; then
5322 enableval="$enable_relink"
5323 cf_cv_do_relink=$enableval
5327 echo "$as_me:5327: result: $cf_cv_do_relink" >&5
5328 echo "${ECHO_T}$cf_cv_do_relink" >&6
5333 echo "$as_me:5333: checking for an rpath option" >&5
5334 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
5335 case $cf_cv_system_name in #(vi
5337 if test "$GCC" = yes; then
5338 LD_RPATH_OPT="-Wl,-rpath,"
5340 LD_RPATH_OPT="-rpath "
5343 linux*|gnu*|k*bsd*-gnu) #(vi
5344 LD_RPATH_OPT="-Wl,-rpath,"
5346 openbsd[2-9].*) #(vi
5347 LD_RPATH_OPT="-Wl,-rpath,"
5350 LD_RPATH_OPT="-rpath "
5353 LD_RPATH_OPT="-Wl,-rpath,"
5356 LD_RPATH_OPT="-rpath "
5364 echo "$as_me:5364: result: $LD_RPATH_OPT" >&5
5365 echo "${ECHO_T}$LD_RPATH_OPT" >&6
5367 case "x$LD_RPATH_OPT" in #(vi
5369 echo "$as_me:5369: checking if we need a space after rpath option" >&5
5370 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
5371 cf_save_LIBS="$LIBS"
5372 LIBS="${LD_RPATH_OPT}$libdir $LIBS"
5373 cat >conftest.$ac_ext <<_ACEOF
5374 #line 5374 "configure"
5375 #include "confdefs.h"
5385 rm -f conftest.$ac_objext conftest$ac_exeext
5386 if { (eval echo "$as_me:5386: \"$ac_link\"") >&5
5387 (eval $ac_link) 2>&5
5389 echo "$as_me:5389: \$? = $ac_status" >&5
5390 (exit $ac_status); } &&
5391 { ac_try='test -s conftest$ac_exeext'
5392 { (eval echo "$as_me:5392: \"$ac_try\"") >&5
5395 echo "$as_me:5395: \$? = $ac_status" >&5
5396 (exit $ac_status); }; }; then
5399 echo "$as_me: failed program was:" >&5
5400 cat conftest.$ac_ext >&5
5403 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5404 LIBS="$cf_save_LIBS"
5405 echo "$as_me:5405: result: $cf_rpath_space" >&5
5406 echo "${ECHO_T}$cf_rpath_space" >&6
5407 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
5414 INSTALL_LIB="-m 644"
5416 cf_cv_do_symlinks=no
5418 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
5420 echo "$as_me:5420: checking if release/abi version should be used for shared libs" >&5
5421 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
5423 # Check whether --with-shlib-version or --without-shlib-version was given.
5424 if test "${with_shlib_version+set}" = set; then
5425 withval="$with_shlib_version"
5426 test -z "$withval" && withval=auto
5427 case $withval in #(vi
5429 cf_cv_shlib_version=auto
5431 rel|abi|auto|no) #(vi
5432 cf_cv_shlib_version=$withval
5435 { { echo "$as_me:5435: error: option value must be one of: rel, abi, auto or no" >&5
5436 echo "$as_me: error: option value must be one of: rel, abi, auto or no" >&2;}
5437 { (exit 1); exit 1; }; }
5442 cf_cv_shlib_version=auto
5444 echo "$as_me:5444: result: $cf_cv_shlib_version" >&5
5445 echo "${ECHO_T}$cf_cv_shlib_version" >&6
5449 # Some less-capable ports of gcc support only -fpic
5451 if test "$GCC" = yes
5453 echo "$as_me:5453: checking which $CC option to use" >&5
5454 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
5455 cf_save_CFLAGS="$CFLAGS"
5456 for CC_SHARED_OPTS in -fPIC -fpic ''
5458 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
5459 cat >conftest.$ac_ext <<_ACEOF
5460 #line 5460 "configure"
5461 #include "confdefs.h"
5471 rm -f conftest.$ac_objext
5472 if { (eval echo "$as_me:5472: \"$ac_compile\"") >&5
5473 (eval $ac_compile) 2>&5
5475 echo "$as_me:5475: \$? = $ac_status" >&5
5476 (exit $ac_status); } &&
5477 { ac_try='test -s conftest.$ac_objext'
5478 { (eval echo "$as_me:5478: \"$ac_try\"") >&5
5481 echo "$as_me:5481: \$? = $ac_status" >&5
5482 (exit $ac_status); }; }; then
5485 echo "$as_me: failed program was:" >&5
5486 cat conftest.$ac_ext >&5
5488 rm -f conftest.$ac_objext conftest.$ac_ext
5490 echo "$as_me:5490: result: $CC_SHARED_OPTS" >&5
5491 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
5492 CFLAGS="$cf_save_CFLAGS"
5495 cf_cv_shlib_version_infix=no
5497 case $cf_cv_system_name in #(vi
5499 if test "$GCC" = yes; then
5501 MK_SHARED_LIB='$(CC) -shared'
5505 MK_SHARED_LIB='${CC} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
5509 MK_SHARED_LIB='sh ../mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5510 cf_cv_shlib_version=cygdll
5511 cf_cv_shlib_version_infix=cygdll
5512 cat >mk_shared_lib.sh <<-CF_EOF
5515 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
5518 Linking shared library
5519 ** SHARED_LIB \$SHARED_LIB
5520 ** IMPORT_LIB \$IMPORT_LIB
5522 exec \$* -shared -Wl,--out-implib=../lib/\${IMPORT_LIB} -Wl,--export-all-symbols -o ../lib/\${SHARED_LIB}
5524 chmod +x mk_shared_lib.sh
5527 EXTRA_CFLAGS="-no-cpp-precomp"
5528 CC_SHARED_OPTS="-dynamic"
5529 MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
5530 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
5531 cf_cv_shlib_version_infix=yes
5532 echo "$as_me:5532: checking if ld -search_paths_first works" >&5
5533 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
5534 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
5535 echo $ECHO_N "(cached) $ECHO_C" >&6
5538 cf_save_LDFLAGS=$LDFLAGS
5539 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5540 cat >conftest.$ac_ext <<_ACEOF
5541 #line 5541 "configure"
5542 #include "confdefs.h"
5552 rm -f conftest.$ac_objext conftest$ac_exeext
5553 if { (eval echo "$as_me:5553: \"$ac_link\"") >&5
5554 (eval $ac_link) 2>&5
5556 echo "$as_me:5556: \$? = $ac_status" >&5
5557 (exit $ac_status); } &&
5558 { ac_try='test -s conftest$ac_exeext'
5559 { (eval echo "$as_me:5559: \"$ac_try\"") >&5
5562 echo "$as_me:5562: \$? = $ac_status" >&5
5563 (exit $ac_status); }; }; then
5564 cf_cv_ldflags_search_paths_first=yes
5566 echo "$as_me: failed program was:" >&5
5567 cat conftest.$ac_ext >&5
5568 cf_cv_ldflags_search_paths_first=no
5570 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5571 LDFLAGS=$cf_save_LDFLAGS
5573 echo "$as_me:5573: result: $cf_cv_ldflags_search_paths_first" >&5
5574 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
5575 if test $cf_cv_ldflags_search_paths_first = yes; then
5576 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5580 # (tested with gcc 2.7.2 -- I don't have c89)
5581 if test "$GCC" = yes; then
5582 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
5585 LD_SHARED_OPTS='-Wl,+b,${libdir}'
5587 MK_SHARED_LIB='${LD} +b ${libdir} -b -o $@'
5588 # HP-UX shared libraries must be executable, and should be
5589 # readonly to exploit a quirk in the memory manager.
5590 INSTALL_LIB="-m 555"
5593 if test "$cf_cv_enable_rpath" = yes ; then
5594 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${libdir} $EXTRA_LDFLAGS"
5596 # tested with IRIX 5.2 and 'cc'.
5597 if test "$GCC" != yes; then
5598 CC_SHARED_OPTS='-KPIC'
5599 MK_SHARED_LIB='${CC} -shared -rdata_shared -soname `basename $@` -o $@'
5601 MK_SHARED_LIB='${CC} -shared -Wl,-soname,`basename $@` -o $@'
5603 cf_cv_rm_so_locs=yes
5605 linux*|gnu*|k*bsd*-gnu) #(vi
5606 if test "$DFT_LWR_MODEL" = "shared" ; then
5607 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5608 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5610 if test "$cf_cv_enable_rpath" = yes ; then
5611 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${libdir} $EXTRA_LDFLAGS"
5614 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5615 if test "$cf_cv_shlib_version" = rel; then
5616 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5618 cf_cv_shared_soname='`basename $@`'
5621 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5623 openbsd[2-9].*) #(vi
5624 if test "$DFT_LWR_MODEL" = "shared" ; then
5625 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5626 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5628 if test "$cf_cv_enable_rpath" = yes ; then
5629 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${libdir} $EXTRA_LDFLAGS"
5631 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5633 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5634 if test "$cf_cv_shlib_version" = rel; then
5635 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5637 cf_cv_shared_soname='`basename $@`'
5640 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5642 nto-qnx*|openbsd*|freebsd[12].*) #(vi
5643 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5644 MK_SHARED_LIB='${LD} -Bshareable -o $@'
5645 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5648 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5649 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
5650 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
5651 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${libdir} $LOCAL_LDFLAGS"
5652 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${libdir} $EXTRA_LDFLAGS"
5655 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5656 if test "$cf_cv_shlib_version" = rel; then
5657 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5659 cf_cv_shared_soname='`basename $@`'
5662 MK_SHARED_LIB='${LD} -shared -Bshareable -soname=`basename $@` -o $@'
5665 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5666 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
5667 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
5668 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5669 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${libdir} $EXTRA_LDFLAGS"
5670 if test "$cf_cv_shlib_version" = auto; then
5671 if test -f /usr/libexec/ld.elf_so; then
5672 cf_cv_shlib_version=abi
5674 cf_cv_shlib_version=rel
5678 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5679 if test "$cf_cv_shlib_version" = rel; then
5680 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5682 cf_cv_shared_soname='`basename $@`'
5685 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
5687 MK_SHARED_LIB='${LD} -shared -Bshareable -o $@'
5691 # tested with OSF/1 V3.2 and 'cc'
5692 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
5693 # link with shared libs).
5694 MK_SHARED_LIB='${LD} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
5695 case $host_os in #(vi
5697 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
5700 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
5701 if test "$DFT_LWR_MODEL" = "shared" ; then
5702 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5703 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5705 cf_cv_rm_so_locs=yes
5707 sco3.2v5*) # (also uw2* and UW7: hops 13-Apr-98
5708 # tested with osr5.0.5
5709 if test "$GCC" != yes; then
5710 CC_SHARED_OPTS='-belf -KPIC'
5712 MK_SHARED_LIB='${LD} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
5713 if test "$cf_cv_enable_rpath" = yes ; then
5714 # only way is to set LD_RUN_PATH but no switch for it
5717 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5718 LINK_PROGS='LD_RUN_PATH=${libdir}'
5719 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
5722 # tested with SunOS 4.1.1 and gcc 2.7.0
5723 if test "$GCC" != yes; then
5724 CC_SHARED_OPTS='-KPIC'
5726 MK_SHARED_LIB='${LD} -assert pure-text -o $@'
5727 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5730 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
5731 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
5732 if test "$DFT_LWR_MODEL" = "shared" ; then
5733 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
5734 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5736 if test "$cf_cv_enable_rpath" = yes ; then
5737 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
5740 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5741 if test "$cf_cv_shlib_version" = rel; then
5742 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5744 cf_cv_shared_soname='`basename $@`'
5747 if test "$GCC" != yes; then
5748 cf_save_CFLAGS="$CFLAGS"
5749 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
5751 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
5752 cat >conftest.$ac_ext <<_ACEOF
5753 #line 5753 "configure"
5754 #include "confdefs.h"
5764 rm -f conftest.$ac_objext
5765 if { (eval echo "$as_me:5765: \"$ac_compile\"") >&5
5766 (eval $ac_compile) 2>&5
5768 echo "$as_me:5768: \$? = $ac_status" >&5
5769 (exit $ac_status); } &&
5770 { ac_try='test -s conftest.$ac_objext'
5771 { (eval echo "$as_me:5771: \"$ac_try\"") >&5
5774 echo "$as_me:5774: \$? = $ac_status" >&5
5775 (exit $ac_status); }; }; then
5778 echo "$as_me: failed program was:" >&5
5779 cat conftest.$ac_ext >&5
5781 rm -f conftest.$ac_objext conftest.$ac_ext
5783 CFLAGS="$cf_save_CFLAGS"
5784 CC_SHARED_OPTS=$cf_shared_opts
5785 MK_SHARED_LIB='${CC} -dy -G -h '$cf_cv_shared_soname' -o $@'
5787 MK_SHARED_LIB='${CC} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
5790 sysv5uw7*|unix_sv*) #(vi
5791 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
5792 if test "$GCC" != yes; then
5793 CC_SHARED_OPTS='-KPIC'
5795 MK_SHARED_LIB='${LD} -d y -G -o $@'
5798 CC_SHARED_OPTS='unknown'
5799 MK_SHARED_LIB='echo unknown'
5803 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
5804 case "$cf_cv_shlib_version" in #(vi
5806 case "$MK_SHARED_LIB" in #(vi
5808 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
5811 { echo "$as_me:5811: WARNING: ignored --with-shlib-version" >&5
5812 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
5818 if test -n "$cf_ld_rpath_opt" ; then
5819 MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${libdir}"
5822 if test "$CC_SHARED_OPTS" = "unknown"; then
5823 for model in $cf_list_models; do
5824 if test "$model" = "shared"; then
5825 { { echo "$as_me:5825: error: Shared libraries are not supported in this version" >&5
5826 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
5827 { (exit 1); exit 1; }; }
5832 ### If we're building with rpath, try to link non-standard libs that way too.
5833 if test "$DFT_LWR_MODEL" = "shared"; then
5835 echo "$as_me:5835: checking if rpath should be not be set" >&5
5836 echo $ECHO_N "checking if rpath should be not be set... $ECHO_C" >&6
5838 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
5839 if test "${enable_rpath_hack+set}" = set; then
5840 enableval="$enable_rpath_hack"
5841 test "$enableval" != no && enableval=yes
5842 if test "$enableval" != "yes" ; then
5843 cf_disable_rpath_hack=yes
5845 cf_disable_rpath_hack=no
5849 cf_disable_rpath_hack=no
5852 echo "$as_me:5852: result: $cf_disable_rpath_hack" >&5
5853 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
5854 if test "$cf_disable_rpath_hack" = no ; then
5856 echo "$as_me:5856: checking for updated LDFLAGS" >&5
5857 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
5858 if test -n "$LD_RPATH_OPT" ; then
5859 echo "$as_me:5859: result: maybe" >&5
5860 echo "${ECHO_T}maybe" >&6
5864 # Extract the first word of "$ac_prog", so it can be a program name with args.
5865 set dummy $ac_prog; ac_word=$2
5866 echo "$as_me:5866: checking for $ac_word" >&5
5867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5868 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
5869 echo $ECHO_N "(cached) $ECHO_C" >&6
5871 if test -n "$cf_ldd_prog"; then
5872 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
5874 ac_save_IFS=$IFS; IFS=$ac_path_separator
5876 for ac_dir in $ac_dummy; do
5878 test -z "$ac_dir" && ac_dir=.
5879 $as_executable_p "$ac_dir/$ac_word" || continue
5880 ac_cv_prog_cf_ldd_prog="$ac_prog"
5881 echo "$as_me:5881: found $ac_dir/$ac_word" >&5
5887 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
5888 if test -n "$cf_ldd_prog"; then
5889 echo "$as_me:5889: result: $cf_ldd_prog" >&5
5890 echo "${ECHO_T}$cf_ldd_prog" >&6
5892 echo "$as_me:5892: result: no" >&5
5893 echo "${ECHO_T}no" >&6
5896 test -n "$cf_ldd_prog" && break
5898 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
5900 cf_rpath_list="/usr/lib /lib"
5901 if test "$cf_ldd_prog" != no
5903 cat >conftest.$ac_ext <<_ACEOF
5904 #line 5904 "configure"
5905 #include "confdefs.h"
5915 rm -f conftest.$ac_objext conftest$ac_exeext
5916 if { (eval echo "$as_me:5916: \"$ac_link\"") >&5
5917 (eval $ac_link) 2>&5
5919 echo "$as_me:5919: \$? = $ac_status" >&5
5920 (exit $ac_status); } &&
5921 { ac_try='test -s conftest$ac_exeext'
5922 { (eval echo "$as_me:5922: \"$ac_try\"") >&5
5925 echo "$as_me:5925: \$? = $ac_status" >&5
5926 (exit $ac_status); }; }; then
5927 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort -u`
5929 echo "$as_me: failed program was:" >&5
5930 cat conftest.$ac_ext >&5
5932 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5935 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
5937 echo "${as_me-configure}:5937: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
5939 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
5941 echo "${as_me-configure}:5941: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
5944 for cf_rpath_src in $LDFLAGS
5946 case $cf_rpath_src in #(vi
5949 # check if this refers to a directory which we will ignore
5951 if test -n "$cf_rpath_list"
5953 for cf_rpath_item in $cf_rpath_list
5955 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
5963 if test "$cf_rpath_skip" = no
5965 # transform the option
5966 if test "$LD_RPATH_OPT" = "-R " ; then
5967 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
5969 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
5972 # if we have not already added this, add it now
5973 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
5974 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
5976 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
5978 echo "${as_me-configure}:5978: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
5980 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
5985 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
5987 LDFLAGS=$cf_rpath_dst
5989 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
5991 echo "${as_me-configure}:5991: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
5993 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
5995 echo "${as_me-configure}:5995: testing ...checking LIBS $LIBS ..." 1>&5
5998 for cf_rpath_src in $LIBS
6000 case $cf_rpath_src in #(vi
6003 # check if this refers to a directory which we will ignore
6005 if test -n "$cf_rpath_list"
6007 for cf_rpath_item in $cf_rpath_list
6009 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
6017 if test "$cf_rpath_skip" = no
6019 # transform the option
6020 if test "$LD_RPATH_OPT" = "-R " ; then
6021 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
6023 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
6026 # if we have not already added this, add it now
6027 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
6028 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
6030 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
6032 echo "${as_me-configure}:6032: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
6034 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
6039 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
6043 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
6045 echo "${as_me-configure}:6045: testing ...checked LIBS $LIBS ..." 1>&5
6047 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
6049 echo "${as_me-configure}:6049: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
6057 ###############################################################################
6059 ### use option --disable-overwrite to leave out the link to -lcurses
6060 echo "$as_me:6060: checking if you wish to install ncurses overwriting curses" >&5
6061 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
6063 # Check whether --enable-overwrite or --disable-overwrite was given.
6064 if test "${enable_overwrite+set}" = set; then
6065 enableval="$enable_overwrite"
6066 with_overwrite=$enableval
6068 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
6070 echo "$as_me:6070: result: $with_overwrite" >&5
6071 echo "${ECHO_T}$with_overwrite" >&6
6073 echo "$as_me:6073: checking if external terminfo-database is used" >&5
6074 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
6076 # Check whether --enable-database or --disable-database was given.
6077 if test "${enable_database+set}" = set; then
6078 enableval="$enable_database"
6079 use_database=$enableval
6083 echo "$as_me:6083: result: $use_database" >&5
6084 echo "${ECHO_T}$use_database" >&6
6086 case $host_os in #(vi
6088 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
6091 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
6095 case $cf_cv_system_name in
6096 os2*) PATH_SEPARATOR=';' ;;
6097 *) PATH_SEPARATOR=':' ;;
6100 if test "$use_database" != no ; then
6101 cat >>confdefs.h <<\EOF
6102 #define USE_DATABASE 1
6105 echo "$as_me:6105: checking which terminfo source-file will be installed" >&5
6106 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
6108 # Check whether --with-database or --without-database was given.
6109 if test "${with_database+set}" = set; then
6110 withval="$with_database"
6111 TERMINFO_SRC=$withval
6113 echo "$as_me:6113: result: $TERMINFO_SRC" >&5
6114 echo "${ECHO_T}$TERMINFO_SRC" >&6
6116 echo "$as_me:6116: checking whether to use hashed database instead of directory/tree" >&5
6117 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
6119 # Check whether --with-hashed-db or --without-hashed-db was given.
6120 if test "${with_hashed_db+set}" = set; then
6121 withval="$with_hashed_db"
6126 echo "$as_me:6126: result: $with_hashed_db" >&5
6127 echo "${ECHO_T}$with_hashed_db" >&6
6132 echo "$as_me:6132: checking for list of fallback descriptions" >&5
6133 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
6135 # Check whether --with-fallbacks or --without-fallbacks was given.
6136 if test "${with_fallbacks+set}" = set; then
6137 withval="$with_fallbacks"
6138 with_fallback=$withval
6142 echo "$as_me:6142: result: $with_fallback" >&5
6143 echo "${ECHO_T}$with_fallback" >&6
6144 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
6146 echo "$as_me:6146: checking if you want modern xterm or antique" >&5
6147 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
6149 # Check whether --with-xterm-new or --without-xterm-new was given.
6150 if test "${with_xterm_new+set}" = set; then
6151 withval="$with_xterm_new"
6152 with_xterm_new=$withval
6156 case $with_xterm_new in
6157 no) with_xterm_new=xterm-old;;
6158 *) with_xterm_new=xterm-new;;
6160 echo "$as_me:6160: result: $with_xterm_new" >&5
6161 echo "${ECHO_T}$with_xterm_new" >&6
6162 WHICH_XTERM=$with_xterm_new
6165 if test "$use_database" = no ; then
6166 TERMINFO="${datadir}/terminfo"
6170 echo "$as_me:6170: checking for list of terminfo directories" >&5
6171 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
6173 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
6174 if test "${with_terminfo_dirs+set}" = set; then
6175 withval="$with_terminfo_dirs"
6178 withval=${TERMINFO_DIRS-${datadir}/terminfo}
6180 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
6182 for cf_src_path in $withval
6185 if test "x$prefix" != xNONE; then
6186 cf_path_syntax="$prefix"
6188 cf_path_syntax="$ac_default_prefix"
6191 case ".$cf_src_path" in #(vi
6192 .\$\(*\)*|.\'*\'*) #(vi
6196 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6199 eval cf_src_path="$cf_src_path"
6200 case ".$cf_src_path" in #(vi
6202 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6207 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6210 { { echo "$as_me:6210: error: expected a pathname, not \"$cf_src_path\"" >&5
6211 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
6212 { (exit 1); exit 1; }; }
6216 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
6217 cf_dst_path="${cf_dst_path}${cf_src_path}"
6221 eval 'TERMINFO_DIRS="$cf_dst_path"'
6223 echo "$as_me:6223: result: $TERMINFO_DIRS" >&5
6224 echo "${ECHO_T}$TERMINFO_DIRS" >&6
6225 test -n "$TERMINFO_DIRS" && cat >>confdefs.h <<EOF
6226 #define TERMINFO_DIRS "$TERMINFO_DIRS"
6229 echo "$as_me:6229: checking for default terminfo directory" >&5
6230 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
6232 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
6233 if test "${with_default_terminfo_dir+set}" = set; then
6234 withval="$with_default_terminfo_dir"
6237 withval="${TERMINFO-${datadir}/terminfo}"
6238 fi; if test -n "${datadir}/terminfo" ; then
6240 if test "x$prefix" != xNONE; then
6241 cf_path_syntax="$prefix"
6243 cf_path_syntax="$ac_default_prefix"
6246 case ".$withval" in #(vi
6247 .\$\(*\)*|.\'*\'*) #(vi
6251 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6254 eval withval="$withval"
6255 case ".$withval" in #(vi
6257 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
6262 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
6265 { { echo "$as_me:6265: error: expected a pathname, not \"$withval\"" >&5
6266 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
6267 { (exit 1); exit 1; }; }
6274 echo "$as_me:6274: result: $TERMINFO" >&5
6275 echo "${ECHO_T}$TERMINFO" >&6
6276 cat >>confdefs.h <<EOF
6277 #define TERMINFO "$TERMINFO"
6282 ### use option --disable-big-core to make tic run on small machines
6283 ### We need 4Mb, check if we can allocate 50% more than that.
6284 echo "$as_me:6284: checking if big-core option selected" >&5
6285 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
6287 # Check whether --enable-big-core or --disable-big-core was given.
6288 if test "${enable_big_core+set}" = set; then
6289 enableval="$enable_big_core"
6290 with_big_core=$enableval
6292 if test "$cross_compiling" = yes; then
6295 cat >conftest.$ac_ext <<_ACEOF
6296 #line 6296 "configure"
6297 #include "confdefs.h"
6302 unsigned long n = 6000000L;
6303 char *s = malloc(n);
6306 ${cf_cv_main_return:-return}(s == 0);
6309 rm -f conftest$ac_exeext
6310 if { (eval echo "$as_me:6310: \"$ac_link\"") >&5
6311 (eval $ac_link) 2>&5
6313 echo "$as_me:6313: \$? = $ac_status" >&5
6314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6315 { (eval echo "$as_me:6315: \"$ac_try\"") >&5
6318 echo "$as_me:6318: \$? = $ac_status" >&5
6319 (exit $ac_status); }; }; then
6322 echo "$as_me: program exited with status $ac_status" >&5
6323 echo "$as_me: failed program was:" >&5
6324 cat conftest.$ac_ext >&5
6327 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6330 echo "$as_me:6330: result: $with_big_core" >&5
6331 echo "${ECHO_T}$with_big_core" >&6
6332 test "$with_big_core" = "yes" && cat >>confdefs.h <<\EOF
6333 #define HAVE_BIG_CORE 1
6336 ### ISO C only guarantees 512-char strings, we have tables which load faster
6337 ### when constructed using "big" strings. More than the C compiler, the awk
6338 ### program is a limit on most vendor UNIX systems. Check that we can build.
6339 echo "$as_me:6339: checking if big-strings option selected" >&5
6340 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
6342 # Check whether --enable-big-strings or --disable-big-strings was given.
6343 if test "${enable_big_strings+set}" = set; then
6344 enableval="$enable_big_strings"
6345 with_big_strings=$enableval
6350 eval with_big_strings=no
6353 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' \
6354 | $AWK '{ printf "%d\n", length($0); }' | $AWK 'BEGIN { eqls=0; recs=0; } { recs++; if ($0 == 12000) eqls++; } END { if (recs != 1 || eqls != 1) exit 1; }' 2>/dev/null >/dev/null ) ; then
6355 eval with_big_strings=yes
6357 eval with_big_strings=no
6363 echo "$as_me:6363: result: $with_big_strings" >&5
6364 echo "${ECHO_T}$with_big_strings" >&6
6367 test "$with_big_strings" = "yes" && USE_BIG_STRINGS=1
6369 ### use option --enable-termcap to compile in the termcap fallback support
6370 echo "$as_me:6370: checking if you want termcap-fallback support" >&5
6371 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
6373 # Check whether --enable-termcap or --disable-termcap was given.
6374 if test "${enable_termcap+set}" = set; then
6375 enableval="$enable_termcap"
6376 with_termcap=$enableval
6380 echo "$as_me:6380: result: $with_termcap" >&5
6381 echo "${ECHO_T}$with_termcap" >&6
6383 if test "$with_termcap" != "yes" ; then
6384 if test "$use_database" = no ; then
6385 if test -z "$with_fallback" ; then
6386 { { echo "$as_me:6386: error: You have disabled the database w/o specifying fallbacks" >&5
6387 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
6388 { (exit 1); exit 1; }; }
6391 cat >>confdefs.h <<\EOF
6392 #define PURE_TERMINFO 1
6397 if test "$with_ticlib" != no ; then
6398 { { echo "$as_me:6398: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
6399 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
6400 { (exit 1); exit 1; }; }
6403 cat >>confdefs.h <<\EOF
6404 #define USE_TERMCAP 1
6407 echo "$as_me:6407: checking for list of termcap files" >&5
6408 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
6410 # Check whether --with-termpath or --without-termpath was given.
6411 if test "${with_termpath+set}" = set; then
6412 withval="$with_termpath"
6415 withval=${TERMPATH-/etc/termcap:/usr/share/misc/termcap}
6417 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
6419 for cf_src_path in $withval
6422 if test "x$prefix" != xNONE; then
6423 cf_path_syntax="$prefix"
6425 cf_path_syntax="$ac_default_prefix"
6428 case ".$cf_src_path" in #(vi
6429 .\$\(*\)*|.\'*\'*) #(vi
6433 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6436 eval cf_src_path="$cf_src_path"
6437 case ".$cf_src_path" in #(vi
6439 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6444 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6447 { { echo "$as_me:6447: error: expected a pathname, not \"$cf_src_path\"" >&5
6448 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
6449 { (exit 1); exit 1; }; }
6453 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
6454 cf_dst_path="${cf_dst_path}${cf_src_path}"
6458 eval 'TERMPATH="$cf_dst_path"'
6460 echo "$as_me:6460: result: $TERMPATH" >&5
6461 echo "${ECHO_T}$TERMPATH" >&6
6462 test -n "$TERMPATH" && cat >>confdefs.h <<EOF
6463 #define TERMPATH "$TERMPATH"
6466 ### use option --enable-getcap to use a hacked getcap for reading termcaps
6467 echo "$as_me:6467: checking if fast termcap-loader is needed" >&5
6468 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
6470 # Check whether --enable-getcap or --disable-getcap was given.
6471 if test "${enable_getcap+set}" = set; then
6472 enableval="$enable_getcap"
6473 with_getcap=$enableval
6477 echo "$as_me:6477: result: $with_getcap" >&5
6478 echo "${ECHO_T}$with_getcap" >&6
6479 test "$with_getcap" = "yes" && cat >>confdefs.h <<\EOF
6480 #define USE_GETCAP 1
6483 echo "$as_me:6483: checking if translated termcaps will be cached in ~/.terminfo" >&5
6484 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
6486 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
6487 if test "${enable_getcap_cache+set}" = set; then
6488 enableval="$enable_getcap_cache"
6489 with_getcap_cache=$enableval
6491 with_getcap_cache=no
6493 echo "$as_me:6493: result: $with_getcap_cache" >&5
6494 echo "${ECHO_T}$with_getcap_cache" >&6
6495 test "$with_getcap_cache" = "yes" && cat >>confdefs.h <<\EOF
6496 #define USE_GETCAP_CACHE 1
6501 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
6502 echo "$as_me:6502: checking if ~/.terminfo is wanted" >&5
6503 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
6505 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
6506 if test "${enable_home_terminfo+set}" = set; then
6507 enableval="$enable_home_terminfo"
6508 with_home_terminfo=$enableval
6510 with_home_terminfo=yes
6512 echo "$as_me:6512: result: $with_home_terminfo" >&5
6513 echo "${ECHO_T}$with_home_terminfo" >&6
6514 test "$with_home_terminfo" = "yes" && cat >>confdefs.h <<\EOF
6515 #define USE_HOME_TERMINFO 1
6518 echo "$as_me:6518: checking if you want to use restricted environment when running as root" >&5
6519 echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6
6521 # Check whether --enable-root-environ or --disable-root-environ was given.
6522 if test "${enable_root_environ+set}" = set; then
6523 enableval="$enable_root_environ"
6524 with_root_environ=$enableval
6526 with_root_environ=yes
6528 echo "$as_me:6528: result: $with_root_environ" >&5
6529 echo "${ECHO_T}$with_root_environ" >&6
6530 test "$with_root_environ" = yes && cat >>confdefs.h <<\EOF
6531 #define USE_ROOT_ENVIRON 1
6534 ### Use option --enable-symlinks to make tic use symlinks, not hard links
6535 ### to reduce storage requirements for the terminfo database.
6541 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6542 echo "$as_me:6542: checking for $ac_func" >&5
6543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6544 if eval "test \"\${$as_ac_var+set}\" = set"; then
6545 echo $ECHO_N "(cached) $ECHO_C" >&6
6547 cat >conftest.$ac_ext <<_ACEOF
6548 #line 6548 "configure"
6549 #include "confdefs.h"
6550 /* System header to define __stub macros and hopefully few prototypes,
6551 which can conflict with char $ac_func (); below. */
6553 /* Override any gcc2 internal prototype to avoid an error. */
6557 /* We use char because int might match the return type of a gcc2
6558 builtin and then its argument prototype would still apply. */
6565 /* The GNU C library defines this for functions which it implements
6566 to always fail with ENOSYS. Some functions are actually named
6567 something starting with __ and the normal name is an alias. */
6568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6578 rm -f conftest.$ac_objext conftest$ac_exeext
6579 if { (eval echo "$as_me:6579: \"$ac_link\"") >&5
6580 (eval $ac_link) 2>&5
6582 echo "$as_me:6582: \$? = $ac_status" >&5
6583 (exit $ac_status); } &&
6584 { ac_try='test -s conftest$ac_exeext'
6585 { (eval echo "$as_me:6585: \"$ac_try\"") >&5
6588 echo "$as_me:6588: \$? = $ac_status" >&5
6589 (exit $ac_status); }; }; then
6590 eval "$as_ac_var=yes"
6592 echo "$as_me: failed program was:" >&5
6593 cat conftest.$ac_ext >&5
6594 eval "$as_ac_var=no"
6596 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6598 echo "$as_me:6598: result: `eval echo '${'$as_ac_var'}'`" >&5
6599 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6600 if test `eval echo '${'$as_ac_var'}'` = yes; then
6601 cat >>confdefs.h <<EOF
6602 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6608 if test "$cross_compiling" = yes ; then
6614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6615 echo "$as_me:6615: checking for $ac_func" >&5
6616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6617 if eval "test \"\${$as_ac_var+set}\" = set"; then
6618 echo $ECHO_N "(cached) $ECHO_C" >&6
6620 cat >conftest.$ac_ext <<_ACEOF
6621 #line 6621 "configure"
6622 #include "confdefs.h"
6623 /* System header to define __stub macros and hopefully few prototypes,
6624 which can conflict with char $ac_func (); below. */
6626 /* Override any gcc2 internal prototype to avoid an error. */
6630 /* We use char because int might match the return type of a gcc2
6631 builtin and then its argument prototype would still apply. */
6638 /* The GNU C library defines this for functions which it implements
6639 to always fail with ENOSYS. Some functions are actually named
6640 something starting with __ and the normal name is an alias. */
6641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6651 rm -f conftest.$ac_objext conftest$ac_exeext
6652 if { (eval echo "$as_me:6652: \"$ac_link\"") >&5
6653 (eval $ac_link) 2>&5
6655 echo "$as_me:6655: \$? = $ac_status" >&5
6656 (exit $ac_status); } &&
6657 { ac_try='test -s conftest$ac_exeext'
6658 { (eval echo "$as_me:6658: \"$ac_try\"") >&5
6661 echo "$as_me:6661: \$? = $ac_status" >&5
6662 (exit $ac_status); }; }; then
6663 eval "$as_ac_var=yes"
6665 echo "$as_me: failed program was:" >&5
6666 cat conftest.$ac_ext >&5
6667 eval "$as_ac_var=no"
6669 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6671 echo "$as_me:6671: result: `eval echo '${'$as_ac_var'}'`" >&5
6672 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6673 if test `eval echo '${'$as_ac_var'}'` = yes; then
6674 cat >>confdefs.h <<EOF
6675 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6682 echo "$as_me:6682: checking if link/symlink functions work" >&5
6683 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
6684 if test "${cf_cv_link_funcs+set}" = set; then
6685 echo $ECHO_N "(cached) $ECHO_C" >&6
6689 for cf_func in link symlink ; do
6690 if test "$cross_compiling" = yes; then
6692 eval 'ac_cv_func_'$cf_func'=error'
6694 cat >conftest.$ac_ext <<_ACEOF
6695 #line 6695 "configure"
6696 #include "confdefs.h"
6698 #include <sys/types.h>
6699 #include <sys/stat.h>
6700 #ifdef HAVE_UNISTD_H
6706 char *src = "config.log";
6707 char *dst = "conftest.chk";
6712 fail = ($cf_func("config.log", "conftest.chk") < 0)
6713 || (stat(dst, &dst_sb) < 0)
6714 || (dst_sb.st_mtime != src_sb.st_mtime);
6720 ${cf_cv_main_return:-return} (fail);
6724 rm -f conftest$ac_exeext
6725 if { (eval echo "$as_me:6725: \"$ac_link\"") >&5
6726 (eval $ac_link) 2>&5
6728 echo "$as_me:6728: \$? = $ac_status" >&5
6729 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6730 { (eval echo "$as_me:6730: \"$ac_try\"") >&5
6733 echo "$as_me:6733: \$? = $ac_status" >&5
6734 (exit $ac_status); }; }; then
6736 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
6737 eval 'ac_cv_func_'$cf_func'=yes'
6739 echo "$as_me: program exited with status $ac_status" >&5
6740 echo "$as_me: failed program was:" >&5
6741 cat conftest.$ac_ext >&5
6743 eval 'ac_cv_func_'$cf_func'=no'
6745 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6748 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
6751 echo "$as_me:6751: result: $cf_cv_link_funcs" >&5
6752 echo "${ECHO_T}$cf_cv_link_funcs" >&6
6753 test "$ac_cv_func_link" = yes && cat >>confdefs.h <<\EOF
6757 test "$ac_cv_func_symlink" = yes && cat >>confdefs.h <<\EOF
6758 #define HAVE_SYMLINK 1
6766 # soft links (symbolic links) are useful for some systems where hard links do
6767 # not work, or to make it simpler to copy terminfo trees around.
6768 if test "$ac_cv_func_symlink" = yes ; then
6769 echo "$as_me:6769: checking if tic should use symbolic links" >&5
6770 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
6772 # Check whether --enable-symlinks or --disable-symlinks was given.
6773 if test "${enable_symlinks+set}" = set; then
6774 enableval="$enable_symlinks"
6775 with_symlinks=$enableval
6779 echo "$as_me:6779: result: $with_symlinks" >&5
6780 echo "${ECHO_T}$with_symlinks" >&6
6783 # If we have hard links and did not choose to use soft links instead, there is
6784 # no reason to make this choice optional - use the hard links.
6785 if test "$with_symlinks" = no ; then
6786 echo "$as_me:6786: checking if tic should use hard links" >&5
6787 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
6788 if test "$ac_cv_func_link" = yes ; then
6793 echo "$as_me:6793: result: $with_links" >&5
6794 echo "${ECHO_T}$with_links" >&6
6797 test "$with_links" = yes && cat >>confdefs.h <<\EOF
6801 test "$with_symlinks" = yes && cat >>confdefs.h <<\EOF
6802 #define USE_SYMLINKS 1
6805 ### use option --enable-broken-linker to force on use of broken-linker support
6806 echo "$as_me:6806: checking if you want broken-linker support code" >&5
6807 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
6809 # Check whether --enable-broken_linker or --disable-broken_linker was given.
6810 if test "${enable_broken_linker+set}" = set; then
6811 enableval="$enable_broken_linker"
6812 with_broken_linker=$enableval
6814 with_broken_linker=${BROKEN_LINKER-no}
6816 echo "$as_me:6816: result: $with_broken_linker" >&5
6817 echo "${ECHO_T}$with_broken_linker" >&6
6820 if test "$with_broken_linker" = yes ; then
6821 cat >>confdefs.h <<\EOF
6822 #define BROKEN_LINKER 1
6826 elif test "$DFT_LWR_MODEL" = shared ; then
6827 case $cf_cv_system_name in #(vi
6829 cat >>confdefs.h <<\EOF
6830 #define BROKEN_LINKER 1
6834 test -n "$verbose" && echo " cygwin linker is broken anyway" 1>&6
6836 echo "${as_me-configure}:6836: testing cygwin linker is broken anyway ..." 1>&5
6842 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
6843 echo "$as_me:6843: checking if tputs should process BSD-style prefix padding" >&5
6844 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
6846 # Check whether --enable-bsdpad or --disable-bsdpad was given.
6847 if test "${enable_bsdpad+set}" = set; then
6848 enableval="$enable_bsdpad"
6849 with_bsdpad=$enableval
6853 echo "$as_me:6853: result: $with_bsdpad" >&5
6854 echo "${ECHO_T}$with_bsdpad" >&6
6855 test "$with_bsdpad" = yes && cat >>confdefs.h <<\EOF
6859 ### use option --enable-widec to turn on use of wide-character support
6868 # Check to define _XOPEN_SOURCE "automatically"
6871 cf_POSIX_C_SOURCE=199506L
6874 case $host_os in #(vi
6876 cf_xopen_source="-D_ALL_SOURCE"
6879 cf_xopen_source="-D_APPLE_C_SOURCE"
6882 cf_xopen_source="-D_DARWIN_C_SOURCE"
6884 freebsd*|dragonfly*) #(vi
6885 # 5.x headers associate
6886 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
6887 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
6888 cf_POSIX_C_SOURCE=200112L
6890 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
6893 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
6896 cf_xopen_source="-D_HPUX_SOURCE"
6899 cf_xopen_source="-D_SGI_SOURCE"
6901 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
6903 echo "$as_me:6903: checking if we must define _GNU_SOURCE" >&5
6904 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
6905 if test "${cf_cv_gnu_source+set}" = set; then
6906 echo $ECHO_N "(cached) $ECHO_C" >&6
6909 cat >conftest.$ac_ext <<_ACEOF
6910 #line 6910 "configure"
6911 #include "confdefs.h"
6912 #include <sys/types.h>
6917 #ifndef _XOPEN_SOURCE
6924 rm -f conftest.$ac_objext
6925 if { (eval echo "$as_me:6925: \"$ac_compile\"") >&5
6926 (eval $ac_compile) 2>&5
6928 echo "$as_me:6928: \$? = $ac_status" >&5
6929 (exit $ac_status); } &&
6930 { ac_try='test -s conftest.$ac_objext'
6931 { (eval echo "$as_me:6931: \"$ac_try\"") >&5
6934 echo "$as_me:6934: \$? = $ac_status" >&5
6935 (exit $ac_status); }; }; then
6938 echo "$as_me: failed program was:" >&5
6939 cat conftest.$ac_ext >&5
6941 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
6942 cat >conftest.$ac_ext <<_ACEOF
6943 #line 6943 "configure"
6944 #include "confdefs.h"
6945 #include <sys/types.h>
6950 #ifdef _XOPEN_SOURCE
6957 rm -f conftest.$ac_objext
6958 if { (eval echo "$as_me:6958: \"$ac_compile\"") >&5
6959 (eval $ac_compile) 2>&5
6961 echo "$as_me:6961: \$? = $ac_status" >&5
6962 (exit $ac_status); } &&
6963 { ac_try='test -s conftest.$ac_objext'
6964 { (eval echo "$as_me:6964: \"$ac_try\"") >&5
6967 echo "$as_me:6967: \$? = $ac_status" >&5
6968 (exit $ac_status); }; }; then
6971 echo "$as_me: failed program was:" >&5
6972 cat conftest.$ac_ext >&5
6973 cf_cv_gnu_source=yes
6975 rm -f conftest.$ac_objext conftest.$ac_ext
6979 rm -f conftest.$ac_objext conftest.$ac_ext
6982 echo "$as_me:6982: result: $cf_cv_gnu_source" >&5
6983 echo "${ECHO_T}$cf_cv_gnu_source" >&6
6984 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
6988 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h>
6991 # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
6994 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
6997 cf_xopen_source="-D_OSF_SOURCE"
7000 cf_xopen_source="-D_QNX_SOURCE"
7003 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
7005 solaris2.1[0-9]) #(vi
7006 cf_xopen_source="-D__EXTENSIONS__ -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
7008 solaris2.[1-9]) #(vi
7009 cf_xopen_source="-D__EXTENSIONS__"
7012 echo "$as_me:7012: checking if we should define _XOPEN_SOURCE" >&5
7013 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
7014 if test "${cf_cv_xopen_source+set}" = set; then
7015 echo $ECHO_N "(cached) $ECHO_C" >&6
7018 cat >conftest.$ac_ext <<_ACEOF
7019 #line 7019 "configure"
7020 #include "confdefs.h"
7021 #include <sys/types.h>
7026 #ifndef _XOPEN_SOURCE
7033 rm -f conftest.$ac_objext
7034 if { (eval echo "$as_me:7034: \"$ac_compile\"") >&5
7035 (eval $ac_compile) 2>&5
7037 echo "$as_me:7037: \$? = $ac_status" >&5
7038 (exit $ac_status); } &&
7039 { ac_try='test -s conftest.$ac_objext'
7040 { (eval echo "$as_me:7040: \"$ac_try\"") >&5
7043 echo "$as_me:7043: \$? = $ac_status" >&5
7044 (exit $ac_status); }; }; then
7045 cf_cv_xopen_source=no
7047 echo "$as_me: failed program was:" >&5
7048 cat conftest.$ac_ext >&5
7050 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
7051 cat >conftest.$ac_ext <<_ACEOF
7052 #line 7052 "configure"
7053 #include "confdefs.h"
7054 #include <sys/types.h>
7059 #ifdef _XOPEN_SOURCE
7066 rm -f conftest.$ac_objext
7067 if { (eval echo "$as_me:7067: \"$ac_compile\"") >&5
7068 (eval $ac_compile) 2>&5
7070 echo "$as_me:7070: \$? = $ac_status" >&5
7071 (exit $ac_status); } &&
7072 { ac_try='test -s conftest.$ac_objext'
7073 { (eval echo "$as_me:7073: \"$ac_try\"") >&5
7076 echo "$as_me:7076: \$? = $ac_status" >&5
7077 (exit $ac_status); }; }; then
7078 cf_cv_xopen_source=no
7080 echo "$as_me: failed program was:" >&5
7081 cat conftest.$ac_ext >&5
7082 cf_cv_xopen_source=$cf_XOPEN_SOURCE
7084 rm -f conftest.$ac_objext conftest.$ac_ext
7088 rm -f conftest.$ac_objext conftest.$ac_ext
7091 echo "$as_me:7091: result: $cf_cv_xopen_source" >&5
7092 echo "${ECHO_T}$cf_cv_xopen_source" >&6
7093 if test "$cf_cv_xopen_source" != no ; then
7095 CFLAGS=`echo "$CFLAGS" | \
7096 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7097 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
7099 CPPFLAGS=`echo "$CPPFLAGS" | \
7100 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7101 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
7103 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
7108 cf_new_extra_cppflags=
7110 for cf_add_cflags in $cf_temp_xopen_source
7112 case $cf_fix_cppflags in
7114 case $cf_add_cflags in #(vi
7115 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7116 case $cf_add_cflags in
7118 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7120 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7121 && test -z "${cf_tst_cflags}" \
7122 && cf_fix_cppflags=yes
7124 if test $cf_fix_cppflags = yes ; then
7125 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7127 elif test "${cf_tst_cflags}" = "\"'" ; then
7128 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7134 *$cf_add_cflags) #(vi
7137 case $cf_add_cflags in #(vi
7139 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7141 CPPFLAGS=`echo "$CPPFLAGS" | \
7142 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7143 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7147 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7152 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7157 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7159 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7161 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7162 && test -z "${cf_tst_cflags}" \
7163 && cf_fix_cppflags=no
7168 if test -n "$cf_new_cflags" ; then
7170 CFLAGS="$CFLAGS $cf_new_cflags"
7173 if test -n "$cf_new_cppflags" ; then
7175 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7178 if test -n "$cf_new_extra_cppflags" ; then
7180 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7185 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
7187 cf_save_CFLAGS="$CFLAGS"
7188 cf_save_CPPFLAGS="$CPPFLAGS"
7190 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
7191 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7192 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7194 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
7195 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7196 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7198 echo "$as_me:7198: checking if we should define _POSIX_C_SOURCE" >&5
7199 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
7200 if test "${cf_cv_posix_c_source+set}" = set; then
7201 echo $ECHO_N "(cached) $ECHO_C" >&6
7204 echo "${as_me-configure}:7204: testing if the symbol is already defined go no further ..." 1>&5
7206 cat >conftest.$ac_ext <<_ACEOF
7207 #line 7207 "configure"
7208 #include "confdefs.h"
7209 #include <sys/types.h>
7214 #ifndef _POSIX_C_SOURCE
7221 rm -f conftest.$ac_objext
7222 if { (eval echo "$as_me:7222: \"$ac_compile\"") >&5
7223 (eval $ac_compile) 2>&5
7225 echo "$as_me:7225: \$? = $ac_status" >&5
7226 (exit $ac_status); } &&
7227 { ac_try='test -s conftest.$ac_objext'
7228 { (eval echo "$as_me:7228: \"$ac_try\"") >&5
7231 echo "$as_me:7231: \$? = $ac_status" >&5
7232 (exit $ac_status); }; }; then
7233 cf_cv_posix_c_source=no
7235 echo "$as_me: failed program was:" >&5
7236 cat conftest.$ac_ext >&5
7237 cf_want_posix_source=no
7238 case .$cf_POSIX_C_SOURCE in #(vi
7240 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7243 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7244 cf_want_posix_source=yes
7247 cf_want_posix_source=yes
7250 if test "$cf_want_posix_source" = yes ; then
7251 cat >conftest.$ac_ext <<_ACEOF
7252 #line 7252 "configure"
7253 #include "confdefs.h"
7254 #include <sys/types.h>
7259 #ifdef _POSIX_SOURCE
7266 rm -f conftest.$ac_objext
7267 if { (eval echo "$as_me:7267: \"$ac_compile\"") >&5
7268 (eval $ac_compile) 2>&5
7270 echo "$as_me:7270: \$? = $ac_status" >&5
7271 (exit $ac_status); } &&
7272 { ac_try='test -s conftest.$ac_objext'
7273 { (eval echo "$as_me:7273: \"$ac_try\"") >&5
7276 echo "$as_me:7276: \$? = $ac_status" >&5
7277 (exit $ac_status); }; }; then
7280 echo "$as_me: failed program was:" >&5
7281 cat conftest.$ac_ext >&5
7282 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
7284 rm -f conftest.$ac_objext conftest.$ac_ext
7287 echo "${as_me-configure}:7287: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
7289 CFLAGS="$cf_trim_CFLAGS"
7290 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
7292 echo "${as_me-configure}:7292: testing if the second compile does not leave our definition intact error ..." 1>&5
7294 cat >conftest.$ac_ext <<_ACEOF
7295 #line 7295 "configure"
7296 #include "confdefs.h"
7297 #include <sys/types.h>
7302 #ifndef _POSIX_C_SOURCE
7309 rm -f conftest.$ac_objext
7310 if { (eval echo "$as_me:7310: \"$ac_compile\"") >&5
7311 (eval $ac_compile) 2>&5
7313 echo "$as_me:7313: \$? = $ac_status" >&5
7314 (exit $ac_status); } &&
7315 { ac_try='test -s conftest.$ac_objext'
7316 { (eval echo "$as_me:7316: \"$ac_try\"") >&5
7319 echo "$as_me:7319: \$? = $ac_status" >&5
7320 (exit $ac_status); }; }; then
7323 echo "$as_me: failed program was:" >&5
7324 cat conftest.$ac_ext >&5
7325 cf_cv_posix_c_source=no
7327 rm -f conftest.$ac_objext conftest.$ac_ext
7328 CFLAGS="$cf_save_CFLAGS"
7329 CPPFLAGS="$cf_save_CPPFLAGS"
7332 rm -f conftest.$ac_objext conftest.$ac_ext
7335 echo "$as_me:7335: result: $cf_cv_posix_c_source" >&5
7336 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
7338 if test "$cf_cv_posix_c_source" != no ; then
7339 CFLAGS="$cf_trim_CFLAGS"
7340 CPPFLAGS="$cf_trim_CPPFLAGS"
7345 cf_new_extra_cppflags=
7347 for cf_add_cflags in $cf_cv_posix_c_source
7349 case $cf_fix_cppflags in
7351 case $cf_add_cflags in #(vi
7352 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7353 case $cf_add_cflags in
7355 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7357 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7358 && test -z "${cf_tst_cflags}" \
7359 && cf_fix_cppflags=yes
7361 if test $cf_fix_cppflags = yes ; then
7362 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7364 elif test "${cf_tst_cflags}" = "\"'" ; then
7365 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7371 *$cf_add_cflags) #(vi
7374 case $cf_add_cflags in #(vi
7376 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7378 CPPFLAGS=`echo "$CPPFLAGS" | \
7379 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7380 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7384 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7389 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7394 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7396 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7398 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7399 && test -z "${cf_tst_cflags}" \
7400 && cf_fix_cppflags=no
7405 if test -n "$cf_new_cflags" ; then
7407 CFLAGS="$CFLAGS $cf_new_cflags"
7410 if test -n "$cf_new_cppflags" ; then
7412 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7415 if test -n "$cf_new_extra_cppflags" ; then
7417 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7425 if test -n "$cf_xopen_source" ; then
7430 cf_new_extra_cppflags=
7432 for cf_add_cflags in $cf_xopen_source
7434 case $cf_fix_cppflags in
7436 case $cf_add_cflags in #(vi
7437 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7438 case $cf_add_cflags in
7440 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7442 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7443 && test -z "${cf_tst_cflags}" \
7444 && cf_fix_cppflags=yes
7446 if test $cf_fix_cppflags = yes ; then
7447 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7449 elif test "${cf_tst_cflags}" = "\"'" ; then
7450 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7456 *$cf_add_cflags) #(vi
7459 case $cf_add_cflags in #(vi
7461 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7463 CPPFLAGS=`echo "$CPPFLAGS" | \
7464 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7465 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7469 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7474 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7479 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7481 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7483 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7484 && test -z "${cf_tst_cflags}" \
7485 && cf_fix_cppflags=no
7490 if test -n "$cf_new_cflags" ; then
7492 CFLAGS="$CFLAGS $cf_new_cflags"
7495 if test -n "$cf_new_cppflags" ; then
7497 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7500 if test -n "$cf_new_extra_cppflags" ; then
7502 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7507 # Work around breakage on OS X
7509 echo "$as_me:7509: checking if SIGWINCH is defined" >&5
7510 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
7511 if test "${cf_cv_define_sigwinch+set}" = set; then
7512 echo $ECHO_N "(cached) $ECHO_C" >&6
7515 cat >conftest.$ac_ext <<_ACEOF
7516 #line 7516 "configure"
7517 #include "confdefs.h"
7519 #include <sys/types.h>
7520 #include <sys/signal.h>
7530 rm -f conftest.$ac_objext
7531 if { (eval echo "$as_me:7531: \"$ac_compile\"") >&5
7532 (eval $ac_compile) 2>&5
7534 echo "$as_me:7534: \$? = $ac_status" >&5
7535 (exit $ac_status); } &&
7536 { ac_try='test -s conftest.$ac_objext'
7537 { (eval echo "$as_me:7537: \"$ac_try\"") >&5
7540 echo "$as_me:7540: \$? = $ac_status" >&5
7541 (exit $ac_status); }; }; then
7542 cf_cv_define_sigwinch=yes
7544 echo "$as_me: failed program was:" >&5
7545 cat conftest.$ac_ext >&5
7546 cat >conftest.$ac_ext <<_ACEOF
7547 #line 7547 "configure"
7548 #include "confdefs.h"
7550 #undef _XOPEN_SOURCE
7551 #undef _POSIX_SOURCE
7552 #undef _POSIX_C_SOURCE
7553 #include <sys/types.h>
7554 #include <sys/signal.h>
7564 rm -f conftest.$ac_objext
7565 if { (eval echo "$as_me:7565: \"$ac_compile\"") >&5
7566 (eval $ac_compile) 2>&5
7568 echo "$as_me:7568: \$? = $ac_status" >&5
7569 (exit $ac_status); } &&
7570 { ac_try='test -s conftest.$ac_objext'
7571 { (eval echo "$as_me:7571: \"$ac_try\"") >&5
7574 echo "$as_me:7574: \$? = $ac_status" >&5
7575 (exit $ac_status); }; }; then
7576 cf_cv_define_sigwinch=maybe
7578 echo "$as_me: failed program was:" >&5
7579 cat conftest.$ac_ext >&5
7580 cf_cv_define_sigwinch=no
7582 rm -f conftest.$ac_objext conftest.$ac_ext
7585 rm -f conftest.$ac_objext conftest.$ac_ext
7588 echo "$as_me:7588: result: $cf_cv_define_sigwinch" >&5
7589 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
7591 if test "$cf_cv_define_sigwinch" = maybe ; then
7592 echo "$as_me:7592: checking for actual SIGWINCH definition" >&5
7593 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
7594 if test "${cf_cv_fixup_sigwinch+set}" = set; then
7595 echo $ECHO_N "(cached) $ECHO_C" >&6
7598 cf_cv_fixup_sigwinch=unknown
7600 while test $cf_sigwinch != 1
7602 cat >conftest.$ac_ext <<_ACEOF
7603 #line 7603 "configure"
7604 #include "confdefs.h"
7606 #undef _XOPEN_SOURCE
7607 #undef _POSIX_SOURCE
7608 #undef _POSIX_C_SOURCE
7609 #include <sys/types.h>
7610 #include <sys/signal.h>
7616 #if SIGWINCH != $cf_sigwinch
7624 rm -f conftest.$ac_objext
7625 if { (eval echo "$as_me:7625: \"$ac_compile\"") >&5
7626 (eval $ac_compile) 2>&5
7628 echo "$as_me:7628: \$? = $ac_status" >&5
7629 (exit $ac_status); } &&
7630 { ac_try='test -s conftest.$ac_objext'
7631 { (eval echo "$as_me:7631: \"$ac_try\"") >&5
7634 echo "$as_me:7634: \$? = $ac_status" >&5
7635 (exit $ac_status); }; }; then
7636 cf_cv_fixup_sigwinch=$cf_sigwinch
7639 echo "$as_me: failed program was:" >&5
7640 cat conftest.$ac_ext >&5
7642 rm -f conftest.$ac_objext conftest.$ac_ext
7644 cf_sigwinch=`expr $cf_sigwinch - 1`
7648 echo "$as_me:7648: result: $cf_cv_fixup_sigwinch" >&5
7649 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
7651 if test "$cf_cv_fixup_sigwinch" != unknown ; then
7652 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
7656 # Checks for CODESET support.
7658 echo "$as_me:7658: checking for nl_langinfo and CODESET" >&5
7659 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7660 if test "${am_cv_langinfo_codeset+set}" = set; then
7661 echo $ECHO_N "(cached) $ECHO_C" >&6
7663 cat >conftest.$ac_ext <<_ACEOF
7664 #line 7664 "configure"
7665 #include "confdefs.h"
7666 #include <langinfo.h>
7670 char* cs = nl_langinfo(CODESET);
7675 rm -f conftest.$ac_objext conftest$ac_exeext
7676 if { (eval echo "$as_me:7676: \"$ac_link\"") >&5
7677 (eval $ac_link) 2>&5
7679 echo "$as_me:7679: \$? = $ac_status" >&5
7680 (exit $ac_status); } &&
7681 { ac_try='test -s conftest$ac_exeext'
7682 { (eval echo "$as_me:7682: \"$ac_try\"") >&5
7685 echo "$as_me:7685: \$? = $ac_status" >&5
7686 (exit $ac_status); }; }; then
7687 am_cv_langinfo_codeset=yes
7689 echo "$as_me: failed program was:" >&5
7690 cat conftest.$ac_ext >&5
7691 am_cv_langinfo_codeset=no
7693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7696 echo "$as_me:7696: result: $am_cv_langinfo_codeset" >&5
7697 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
7698 if test $am_cv_langinfo_codeset = yes; then
7700 cat >>confdefs.h <<\EOF
7701 #define HAVE_LANGINFO_CODESET 1
7706 # use these variables to work around a defect in gcc's fixincludes.
7710 echo "$as_me:7710: checking if you want wide-character code" >&5
7711 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
7713 # Check whether --enable-widec or --disable-widec was given.
7714 if test "${enable_widec+set}" = set; then
7715 enableval="$enable_widec"
7716 with_widec=$enableval
7720 echo "$as_me:7720: result: $with_widec" >&5
7721 echo "${ECHO_T}$with_widec" >&6
7722 if test "$with_widec" = yes ; then
7723 LIB_SUFFIX="w${LIB_SUFFIX}"
7724 cat >>confdefs.h <<\EOF
7725 #define USE_WIDEC_SUPPORT 1
7728 case "$CFLAGS $CPPFLAGS" in #(vi
7729 *-D_XOPEN_SOURCE=500) #(vi
7733 echo "$as_me:7733: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
7734 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
7735 cat >conftest.$ac_ext <<_ACEOF
7736 #line 7736 "configure"
7737 #include "confdefs.h"
7738 #include <sys/types.h>
7744 #ifndef _XOPEN_SOURCE_EXTENDED
7751 rm -f conftest.$ac_objext
7752 if { (eval echo "$as_me:7752: \"$ac_compile\"") >&5
7753 (eval $ac_compile) 2>&5
7755 echo "$as_me:7755: \$? = $ac_status" >&5
7756 (exit $ac_status); } &&
7757 { ac_try='test -s conftest.$ac_objext'
7758 { (eval echo "$as_me:7758: \"$ac_try\"") >&5
7761 echo "$as_me:7761: \$? = $ac_status" >&5
7762 (exit $ac_status); }; }; then
7765 echo "$as_me: failed program was:" >&5
7766 cat conftest.$ac_ext >&5
7769 rm -f conftest.$ac_objext conftest.$ac_ext
7770 echo "$as_me:7770: result: $cf_result" >&5
7771 echo "${ECHO_T}$cf_result" >&6
7773 if test "$cf_result" = yes ; then
7774 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
7775 elif test "x" != "x" ; then
7776 echo "$as_me:7776: checking checking for compatible value versus " >&5
7777 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
7778 cat >conftest.$ac_ext <<_ACEOF
7779 #line 7779 "configure"
7780 #include "confdefs.h"
7781 #include <sys/types.h>
7787 #if _XOPEN_SOURCE_EXTENDED- < 0
7794 rm -f conftest.$ac_objext
7795 if { (eval echo "$as_me:7795: \"$ac_compile\"") >&5
7796 (eval $ac_compile) 2>&5
7798 echo "$as_me:7798: \$? = $ac_status" >&5
7799 (exit $ac_status); } &&
7800 { ac_try='test -s conftest.$ac_objext'
7801 { (eval echo "$as_me:7801: \"$ac_try\"") >&5
7804 echo "$as_me:7804: \$? = $ac_status" >&5
7805 (exit $ac_status); }; }; then
7808 echo "$as_me: failed program was:" >&5
7809 cat conftest.$ac_ext >&5
7812 rm -f conftest.$ac_objext conftest.$ac_ext
7813 echo "$as_me:7813: result: $cf_result" >&5
7814 echo "${ECHO_T}$cf_result" >&6
7815 if test "$cf_result" = no ; then
7816 # perhaps we can override it - try...
7817 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
7825 NCURSES_CH_T=cchar_t
7827 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
7829 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7830 echo "$as_me:7830: checking for $ac_func" >&5
7831 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7832 if eval "test \"\${$as_ac_var+set}\" = set"; then
7833 echo $ECHO_N "(cached) $ECHO_C" >&6
7835 cat >conftest.$ac_ext <<_ACEOF
7836 #line 7836 "configure"
7837 #include "confdefs.h"
7838 /* System header to define __stub macros and hopefully few prototypes,
7839 which can conflict with char $ac_func (); below. */
7841 /* Override any gcc2 internal prototype to avoid an error. */
7845 /* We use char because int might match the return type of a gcc2
7846 builtin and then its argument prototype would still apply. */
7853 /* The GNU C library defines this for functions which it implements
7854 to always fail with ENOSYS. Some functions are actually named
7855 something starting with __ and the normal name is an alias. */
7856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7866 rm -f conftest.$ac_objext conftest$ac_exeext
7867 if { (eval echo "$as_me:7867: \"$ac_link\"") >&5
7868 (eval $ac_link) 2>&5
7870 echo "$as_me:7870: \$? = $ac_status" >&5
7871 (exit $ac_status); } &&
7872 { ac_try='test -s conftest$ac_exeext'
7873 { (eval echo "$as_me:7873: \"$ac_try\"") >&5
7876 echo "$as_me:7876: \$? = $ac_status" >&5
7877 (exit $ac_status); }; }; then
7878 eval "$as_ac_var=yes"
7880 echo "$as_me: failed program was:" >&5
7881 cat conftest.$ac_ext >&5
7882 eval "$as_ac_var=no"
7884 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7886 echo "$as_me:7886: result: `eval echo '${'$as_ac_var'}'`" >&5
7887 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7888 if test `eval echo '${'$as_ac_var'}'` = yes; then
7889 cat >>confdefs.h <<EOF
7890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7896 if test "$ac_cv_func_putwc" != yes ; then
7898 echo "$as_me:7898: checking for multibyte character support" >&5
7899 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
7900 if test "${cf_cv_utf8_lib+set}" = set; then
7901 echo $ECHO_N "(cached) $ECHO_C" >&6
7904 cf_save_LIBS="$LIBS"
7905 cat >conftest.$ac_ext <<_ACEOF
7906 #line 7906 "configure"
7907 #include "confdefs.h"
7918 rm -f conftest.$ac_objext conftest$ac_exeext
7919 if { (eval echo "$as_me:7919: \"$ac_link\"") >&5
7920 (eval $ac_link) 2>&5
7922 echo "$as_me:7922: \$? = $ac_status" >&5
7923 (exit $ac_status); } &&
7924 { ac_try='test -s conftest$ac_exeext'
7925 { (eval echo "$as_me:7925: \"$ac_try\"") >&5
7928 echo "$as_me:7928: \$? = $ac_status" >&5
7929 (exit $ac_status); }; }; then
7932 echo "$as_me: failed program was:" >&5
7933 cat conftest.$ac_ext >&5
7935 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
7936 # will be set on completion of the AC_TRY_LINK below.
7937 cf_cv_header_path_utf8=
7938 cf_cv_library_path_utf8=
7940 echo "${as_me-configure}:7940: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
7942 cf_save_LIBS="$LIBS"
7944 cat >conftest.$ac_ext <<_ACEOF
7945 #line 7945 "configure"
7946 #include "confdefs.h"
7948 #include <libutf8.h>
7957 rm -f conftest.$ac_objext conftest$ac_exeext
7958 if { (eval echo "$as_me:7958: \"$ac_link\"") >&5
7959 (eval $ac_link) 2>&5
7961 echo "$as_me:7961: \$? = $ac_status" >&5
7962 (exit $ac_status); } &&
7963 { ac_try='test -s conftest$ac_exeext'
7964 { (eval echo "$as_me:7964: \"$ac_try\"") >&5
7967 echo "$as_me:7967: \$? = $ac_status" >&5
7968 (exit $ac_status); }; }; then
7970 cf_cv_find_linkage_utf8=yes
7971 cf_cv_header_path_utf8=/usr/include
7972 cf_cv_library_path_utf8=/usr/lib
7975 echo "$as_me: failed program was:" >&5
7976 cat conftest.$ac_ext >&5
7978 LIBS="-lutf8 $cf_save_LIBS"
7980 cat >conftest.$ac_ext <<_ACEOF
7981 #line 7981 "configure"
7982 #include "confdefs.h"
7984 #include <libutf8.h>
7993 rm -f conftest.$ac_objext conftest$ac_exeext
7994 if { (eval echo "$as_me:7994: \"$ac_link\"") >&5
7995 (eval $ac_link) 2>&5
7997 echo "$as_me:7997: \$? = $ac_status" >&5
7998 (exit $ac_status); } &&
7999 { ac_try='test -s conftest$ac_exeext'
8000 { (eval echo "$as_me:8000: \"$ac_try\"") >&5
8003 echo "$as_me:8003: \$? = $ac_status" >&5
8004 (exit $ac_status); }; }; then
8006 cf_cv_find_linkage_utf8=yes
8007 cf_cv_header_path_utf8=/usr/include
8008 cf_cv_library_path_utf8=/usr/lib
8009 cf_cv_library_file_utf8="-lutf8"
8012 echo "$as_me: failed program was:" >&5
8013 cat conftest.$ac_ext >&5
8015 cf_cv_find_linkage_utf8=no
8016 LIBS="$cf_save_LIBS"
8018 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
8020 echo "${as_me-configure}:8020: testing find linkage for utf8 library ..." 1>&5
8022 echo "${as_me-configure}:8022: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
8024 cf_save_CPPFLAGS="$CPPFLAGS"
8025 cf_test_CPPFLAGS="$CPPFLAGS"
8029 # collect the current set of include-directories from compiler flags
8030 cf_header_path_list=""
8031 if test -n "${CFLAGS}${CPPFLAGS}" ; then
8032 for cf_header_path in $CPPFLAGS $CFLAGS
8034 case $cf_header_path in #(vi
8036 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
8038 test "$cf_header_path" != "NONE" && \
8039 test -d "$cf_header_path" && \
8041 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
8042 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
8043 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
8044 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
8045 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
8046 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
8049 cf_header_path_list="$cf_header_path_list $cf_search"
8055 # add the variations for the package we are looking for
8059 test "/usr" != "$prefix" && \
8061 (test $prefix = NONE || test "/usr" != "$prefix") && {
8062 test -n "$verbose" && echo " ... testing for include-directories under /usr"
8063 test -d /usr/include && cf_search="$cf_search /usr/include"
8064 test -d /usr/include/utf8 && cf_search="$cf_search /usr/include/utf8"
8065 test -d /usr/include/utf8/include && cf_search="$cf_search /usr/include/utf8/include"
8066 test -d /usr/utf8/include && cf_search="$cf_search /usr/utf8/include"
8067 test -d /usr/utf8/include/utf8 && cf_search="$cf_search /usr/utf8/include/utf8"
8070 test "$prefix" != "NONE" && \
8071 test -d "$prefix" && \
8073 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
8074 test -d $prefix/include && cf_search="$cf_search $prefix/include"
8075 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
8076 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
8077 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
8078 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
8081 test "/usr/local" != "$prefix" && \
8082 test -d "/usr/local" && \
8083 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
8084 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
8085 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
8086 test -d /usr/local/include/utf8 && cf_search="$cf_search /usr/local/include/utf8"
8087 test -d /usr/local/include/utf8/include && cf_search="$cf_search /usr/local/include/utf8/include"
8088 test -d /usr/local/utf8/include && cf_search="$cf_search /usr/local/utf8/include"
8089 test -d /usr/local/utf8/include/utf8 && cf_search="$cf_search /usr/local/utf8/include/utf8"
8092 test "/opt" != "$prefix" && \
8094 (test $prefix = NONE || test "/opt" != "$prefix") && {
8095 test -n "$verbose" && echo " ... testing for include-directories under /opt"
8096 test -d /opt/include && cf_search="$cf_search /opt/include"
8097 test -d /opt/include/utf8 && cf_search="$cf_search /opt/include/utf8"
8098 test -d /opt/include/utf8/include && cf_search="$cf_search /opt/include/utf8/include"
8099 test -d /opt/utf8/include && cf_search="$cf_search /opt/utf8/include"
8100 test -d /opt/utf8/include/utf8 && cf_search="$cf_search /opt/utf8/include/utf8"
8103 test "$HOME" != "$prefix" && \
8104 test -d "$HOME" && \
8105 (test $prefix = NONE || test "$HOME" != "$prefix") && {
8106 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
8107 test -d $HOME/include && cf_search="$cf_search $HOME/include"
8108 test -d $HOME/include/utf8 && cf_search="$cf_search $HOME/include/utf8"
8109 test -d $HOME/include/utf8/include && cf_search="$cf_search $HOME/include/utf8/include"
8110 test -d $HOME/utf8/include && cf_search="$cf_search $HOME/utf8/include"
8111 test -d $HOME/utf8/include/utf8 && cf_search="$cf_search $HOME/utf8/include/utf8"
8114 test "$includedir" != NONE && \
8115 test "$includedir" != "/usr/include" && \
8116 test -d "$includedir" && {
8117 test -d $includedir && cf_search="$cf_search $includedir"
8118 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
8121 test "$oldincludedir" != NONE && \
8122 test "$oldincludedir" != "/usr/include" && \
8123 test -d "$oldincludedir" && {
8124 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
8125 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
8128 cf_search="$cf_search $cf_header_path_list"
8130 for cf_cv_header_path_utf8 in $cf_search
8132 if test -d $cf_cv_header_path_utf8 ; then
8133 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
8135 echo "${as_me-configure}:8135: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
8137 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
8138 cat >conftest.$ac_ext <<_ACEOF
8139 #line 8139 "configure"
8140 #include "confdefs.h"
8142 #include <libutf8.h>
8151 rm -f conftest.$ac_objext
8152 if { (eval echo "$as_me:8152: \"$ac_compile\"") >&5
8153 (eval $ac_compile) 2>&5
8155 echo "$as_me:8155: \$? = $ac_status" >&5
8156 (exit $ac_status); } &&
8157 { ac_try='test -s conftest.$ac_objext'
8158 { (eval echo "$as_me:8158: \"$ac_try\"") >&5
8161 echo "$as_me:8161: \$? = $ac_status" >&5
8162 (exit $ac_status); }; }; then
8164 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
8166 echo "${as_me-configure}:8166: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
8168 cf_cv_find_linkage_utf8=maybe
8169 cf_test_CPPFLAGS="$CPPFLAGS"
8172 echo "$as_me: failed program was:" >&5
8173 cat conftest.$ac_ext >&5
8175 CPPFLAGS="$cf_save_CPPFLAGS"
8178 rm -f conftest.$ac_objext conftest.$ac_ext
8182 if test "$cf_cv_find_linkage_utf8" = maybe ; then
8184 echo "${as_me-configure}:8184: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
8186 cf_save_LIBS="$LIBS"
8187 cf_save_LDFLAGS="$LDFLAGS"
8189 if test "$cf_cv_find_linkage_utf8" != yes ; then
8192 cf_library_path_list=""
8193 if test -n "${LDFLAGS}${LIBS}" ; then
8194 for cf_library_path in $LDFLAGS $LIBS
8196 case $cf_library_path in #(vi
8198 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
8200 test "$cf_library_path" != "NONE" && \
8201 test -d "$cf_library_path" && \
8203 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
8204 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
8205 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
8206 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
8207 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
8208 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
8211 cf_library_path_list="$cf_library_path_list $cf_search"
8219 test "/usr" != "$prefix" && \
8221 (test $prefix = NONE || test "/usr" != "$prefix") && {
8222 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
8223 test -d /usr/lib && cf_search="$cf_search /usr/lib"
8224 test -d /usr/lib/utf8 && cf_search="$cf_search /usr/lib/utf8"
8225 test -d /usr/lib/utf8/lib && cf_search="$cf_search /usr/lib/utf8/lib"
8226 test -d /usr/utf8/lib && cf_search="$cf_search /usr/utf8/lib"
8227 test -d /usr/utf8/lib/utf8 && cf_search="$cf_search /usr/utf8/lib/utf8"
8230 test "$prefix" != "NONE" && \
8231 test -d "$prefix" && \
8233 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
8234 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
8235 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
8236 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
8237 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
8238 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
8241 test "/usr/local" != "$prefix" && \
8242 test -d "/usr/local" && \
8243 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
8244 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
8245 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
8246 test -d /usr/local/lib/utf8 && cf_search="$cf_search /usr/local/lib/utf8"
8247 test -d /usr/local/lib/utf8/lib && cf_search="$cf_search /usr/local/lib/utf8/lib"
8248 test -d /usr/local/utf8/lib && cf_search="$cf_search /usr/local/utf8/lib"
8249 test -d /usr/local/utf8/lib/utf8 && cf_search="$cf_search /usr/local/utf8/lib/utf8"
8252 test "/opt" != "$prefix" && \
8254 (test $prefix = NONE || test "/opt" != "$prefix") && {
8255 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
8256 test -d /opt/lib && cf_search="$cf_search /opt/lib"
8257 test -d /opt/lib/utf8 && cf_search="$cf_search /opt/lib/utf8"
8258 test -d /opt/lib/utf8/lib && cf_search="$cf_search /opt/lib/utf8/lib"
8259 test -d /opt/utf8/lib && cf_search="$cf_search /opt/utf8/lib"
8260 test -d /opt/utf8/lib/utf8 && cf_search="$cf_search /opt/utf8/lib/utf8"
8263 test "$HOME" != "$prefix" && \
8264 test -d "$HOME" && \
8265 (test $prefix = NONE || test "$HOME" != "$prefix") && {
8266 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
8267 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
8268 test -d $HOME/lib/utf8 && cf_search="$cf_search $HOME/lib/utf8"
8269 test -d $HOME/lib/utf8/lib && cf_search="$cf_search $HOME/lib/utf8/lib"
8270 test -d $HOME/utf8/lib && cf_search="$cf_search $HOME/utf8/lib"
8271 test -d $HOME/utf8/lib/utf8 && cf_search="$cf_search $HOME/utf8/lib/utf8"
8274 cf_search="$cf_library_path_list $cf_search"
8276 for cf_cv_library_path_utf8 in $cf_search
8278 if test -d $cf_cv_library_path_utf8 ; then
8279 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
8281 echo "${as_me-configure}:8281: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
8283 CPPFLAGS="$cf_test_CPPFLAGS"
8284 LIBS="-lutf8 $cf_save_LIBS"
8285 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
8286 cat >conftest.$ac_ext <<_ACEOF
8287 #line 8287 "configure"
8288 #include "confdefs.h"
8290 #include <libutf8.h>
8299 rm -f conftest.$ac_objext conftest$ac_exeext
8300 if { (eval echo "$as_me:8300: \"$ac_link\"") >&5
8301 (eval $ac_link) 2>&5
8303 echo "$as_me:8303: \$? = $ac_status" >&5
8304 (exit $ac_status); } &&
8305 { ac_try='test -s conftest$ac_exeext'
8306 { (eval echo "$as_me:8306: \"$ac_try\"") >&5
8309 echo "$as_me:8309: \$? = $ac_status" >&5
8310 (exit $ac_status); }; }; then
8312 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
8314 echo "${as_me-configure}:8314: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
8316 cf_cv_find_linkage_utf8=yes
8317 cf_cv_library_file_utf8="-lutf8"
8320 echo "$as_me: failed program was:" >&5
8321 cat conftest.$ac_ext >&5
8323 CPPFLAGS="$cf_save_CPPFLAGS"
8324 LIBS="$cf_save_LIBS"
8325 LDFLAGS="$cf_save_LDFLAGS"
8328 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8331 CPPFLAGS="$cf_save_CPPFLAGS"
8332 LDFLAGS="$cf_save_LDFLAGS"
8336 cf_cv_find_linkage_utf8=no
8340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8345 LIBS="$cf_save_LIBS"
8347 if test "$cf_cv_find_linkage_utf8" = yes ; then
8348 cf_cv_utf8_lib=add-on
8354 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8356 echo "$as_me:8356: result: $cf_cv_utf8_lib" >&5
8357 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
8359 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
8361 if test "$cf_cv_utf8_lib" = "add-on" ; then
8362 cat >>confdefs.h <<\EOF
8363 #define HAVE_LIBUTF8_H 1
8366 if test -n "$cf_cv_header_path_utf8" ; then
8367 for cf_add_incdir in $cf_cv_header_path_utf8
8369 while test $cf_add_incdir != /usr/include
8371 if test -d $cf_add_incdir
8374 if test -n "$CFLAGS$CPPFLAGS" ; then
8375 # a loop is needed to ensure we can add subdirs of existing dirs
8376 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
8377 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8378 cf_have_incdir=yes; break
8383 if test "$cf_have_incdir" = no ; then
8384 if test "$cf_add_incdir" = /usr/local/include ; then
8385 if test "$GCC" = yes
8387 cf_save_CPPFLAGS=$CPPFLAGS
8388 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8389 cat >conftest.$ac_ext <<_ACEOF
8390 #line 8390 "configure"
8391 #include "confdefs.h"
8401 rm -f conftest.$ac_objext
8402 if { (eval echo "$as_me:8402: \"$ac_compile\"") >&5
8403 (eval $ac_compile) 2>&5
8405 echo "$as_me:8405: \$? = $ac_status" >&5
8406 (exit $ac_status); } &&
8407 { ac_try='test -s conftest.$ac_objext'
8408 { (eval echo "$as_me:8408: \"$ac_try\"") >&5
8411 echo "$as_me:8411: \$? = $ac_status" >&5
8412 (exit $ac_status); }; }; then
8415 echo "$as_me: failed program was:" >&5
8416 cat conftest.$ac_ext >&5
8419 rm -f conftest.$ac_objext conftest.$ac_ext
8420 CPPFLAGS=$cf_save_CPPFLAGS
8425 if test "$cf_have_incdir" = no ; then
8426 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8428 echo "${as_me-configure}:8428: testing adding $cf_add_incdir to include-path ..." 1>&5
8430 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8432 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8433 test "$cf_top_incdir" = "$cf_add_incdir" && break
8434 cf_add_incdir="$cf_top_incdir"
8443 if test -n "$cf_cv_library_path_utf8" ; then
8444 for cf_add_libdir in $cf_cv_library_path_utf8
8446 if test $cf_add_libdir = /usr/lib ; then
8448 elif test -d $cf_add_libdir
8451 if test -n "$LDFLAGS$LIBS" ; then
8452 # a loop is needed to ensure we can add subdirs of existing dirs
8453 for cf_test_libdir in $LDFLAGS $LIBS ; do
8454 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
8455 cf_have_libdir=yes; break
8459 if test "$cf_have_libdir" = no ; then
8460 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
8462 echo "${as_me-configure}:8462: testing adding $cf_add_libdir to library-path ..." 1>&5
8464 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
8470 LIBS="$cf_cv_library_file_utf8 $LIBS"
8473 if test "$cf_cv_utf8_lib" != no ; then
8478 # This is needed on Tru64 5.0 to declare mbstate_t
8479 echo "$as_me:8479: checking if we must include wchar.h to declare mbstate_t" >&5
8480 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
8481 if test "${cf_cv_mbstate_t+set}" = set; then
8482 echo $ECHO_N "(cached) $ECHO_C" >&6
8485 cat >conftest.$ac_ext <<_ACEOF
8486 #line 8486 "configure"
8487 #include "confdefs.h"
8492 #ifdef HAVE_LIBUTF8_H
8493 #include <libutf8.h>
8503 rm -f conftest.$ac_objext
8504 if { (eval echo "$as_me:8504: \"$ac_compile\"") >&5
8505 (eval $ac_compile) 2>&5
8507 echo "$as_me:8507: \$? = $ac_status" >&5
8508 (exit $ac_status); } &&
8509 { ac_try='test -s conftest.$ac_objext'
8510 { (eval echo "$as_me:8510: \"$ac_try\"") >&5
8513 echo "$as_me:8513: \$? = $ac_status" >&5
8514 (exit $ac_status); }; }; then
8517 echo "$as_me: failed program was:" >&5
8518 cat conftest.$ac_ext >&5
8519 cat >conftest.$ac_ext <<_ACEOF
8520 #line 8520 "configure"
8521 #include "confdefs.h"
8527 #ifdef HAVE_LIBUTF8_H
8528 #include <libutf8.h>
8538 rm -f conftest.$ac_objext
8539 if { (eval echo "$as_me:8539: \"$ac_compile\"") >&5
8540 (eval $ac_compile) 2>&5
8542 echo "$as_me:8542: \$? = $ac_status" >&5
8543 (exit $ac_status); } &&
8544 { ac_try='test -s conftest.$ac_objext'
8545 { (eval echo "$as_me:8545: \"$ac_try\"") >&5
8548 echo "$as_me:8548: \$? = $ac_status" >&5
8549 (exit $ac_status); }; }; then
8552 echo "$as_me: failed program was:" >&5
8553 cat conftest.$ac_ext >&5
8554 cf_cv_mbstate_t=unknown
8556 rm -f conftest.$ac_objext conftest.$ac_ext
8558 rm -f conftest.$ac_objext conftest.$ac_ext
8560 echo "$as_me:8560: result: $cf_cv_mbstate_t" >&5
8561 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
8563 if test "$cf_cv_mbstate_t" = yes ; then
8564 cat >>confdefs.h <<\EOF
8565 #define NEED_WCHAR_H 1
8571 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
8572 if test "$cf_cv_mbstate_t" = unknown ; then
8576 # This is needed on Tru64 5.0 to declare wchar_t
8577 echo "$as_me:8577: checking if we must include wchar.h to declare wchar_t" >&5
8578 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
8579 if test "${cf_cv_wchar_t+set}" = set; then
8580 echo $ECHO_N "(cached) $ECHO_C" >&6
8583 cat >conftest.$ac_ext <<_ACEOF
8584 #line 8584 "configure"
8585 #include "confdefs.h"
8590 #ifdef HAVE_LIBUTF8_H
8591 #include <libutf8.h>
8601 rm -f conftest.$ac_objext
8602 if { (eval echo "$as_me:8602: \"$ac_compile\"") >&5
8603 (eval $ac_compile) 2>&5
8605 echo "$as_me:8605: \$? = $ac_status" >&5
8606 (exit $ac_status); } &&
8607 { ac_try='test -s conftest.$ac_objext'
8608 { (eval echo "$as_me:8608: \"$ac_try\"") >&5
8611 echo "$as_me:8611: \$? = $ac_status" >&5
8612 (exit $ac_status); }; }; then
8615 echo "$as_me: failed program was:" >&5
8616 cat conftest.$ac_ext >&5
8617 cat >conftest.$ac_ext <<_ACEOF
8618 #line 8618 "configure"
8619 #include "confdefs.h"
8625 #ifdef HAVE_LIBUTF8_H
8626 #include <libutf8.h>
8636 rm -f conftest.$ac_objext
8637 if { (eval echo "$as_me:8637: \"$ac_compile\"") >&5
8638 (eval $ac_compile) 2>&5
8640 echo "$as_me:8640: \$? = $ac_status" >&5
8641 (exit $ac_status); } &&
8642 { ac_try='test -s conftest.$ac_objext'
8643 { (eval echo "$as_me:8643: \"$ac_try\"") >&5
8646 echo "$as_me:8646: \$? = $ac_status" >&5
8647 (exit $ac_status); }; }; then
8650 echo "$as_me: failed program was:" >&5
8651 cat conftest.$ac_ext >&5
8652 cf_cv_wchar_t=unknown
8654 rm -f conftest.$ac_objext conftest.$ac_ext
8656 rm -f conftest.$ac_objext conftest.$ac_ext
8658 echo "$as_me:8658: result: $cf_cv_wchar_t" >&5
8659 echo "${ECHO_T}$cf_cv_wchar_t" >&6
8661 if test "$cf_cv_wchar_t" = yes ; then
8662 cat >>confdefs.h <<\EOF
8663 #define NEED_WCHAR_H 1
8669 # if we do not find wchar_t in either place, use substitution to provide a fallback.
8670 if test "$cf_cv_wchar_t" = unknown ; then
8674 # if we find wchar_t in either place, use substitution to provide a fallback.
8675 if test "$cf_cv_wchar_t" != unknown ; then
8676 NCURSES_OK_WCHAR_T=1
8679 # This is needed on Tru64 5.0 to declare wint_t
8680 echo "$as_me:8680: checking if we must include wchar.h to declare wint_t" >&5
8681 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
8682 if test "${cf_cv_wint_t+set}" = set; then
8683 echo $ECHO_N "(cached) $ECHO_C" >&6
8686 cat >conftest.$ac_ext <<_ACEOF
8687 #line 8687 "configure"
8688 #include "confdefs.h"
8693 #ifdef HAVE_LIBUTF8_H
8694 #include <libutf8.h>
8704 rm -f conftest.$ac_objext
8705 if { (eval echo "$as_me:8705: \"$ac_compile\"") >&5
8706 (eval $ac_compile) 2>&5
8708 echo "$as_me:8708: \$? = $ac_status" >&5
8709 (exit $ac_status); } &&
8710 { ac_try='test -s conftest.$ac_objext'
8711 { (eval echo "$as_me:8711: \"$ac_try\"") >&5
8714 echo "$as_me:8714: \$? = $ac_status" >&5
8715 (exit $ac_status); }; }; then
8718 echo "$as_me: failed program was:" >&5
8719 cat conftest.$ac_ext >&5
8720 cat >conftest.$ac_ext <<_ACEOF
8721 #line 8721 "configure"
8722 #include "confdefs.h"
8728 #ifdef HAVE_LIBUTF8_H
8729 #include <libutf8.h>
8739 rm -f conftest.$ac_objext
8740 if { (eval echo "$as_me:8740: \"$ac_compile\"") >&5
8741 (eval $ac_compile) 2>&5
8743 echo "$as_me:8743: \$? = $ac_status" >&5
8744 (exit $ac_status); } &&
8745 { ac_try='test -s conftest.$ac_objext'
8746 { (eval echo "$as_me:8746: \"$ac_try\"") >&5
8749 echo "$as_me:8749: \$? = $ac_status" >&5
8750 (exit $ac_status); }; }; then
8753 echo "$as_me: failed program was:" >&5
8754 cat conftest.$ac_ext >&5
8755 cf_cv_wint_t=unknown
8757 rm -f conftest.$ac_objext conftest.$ac_ext
8759 rm -f conftest.$ac_objext conftest.$ac_ext
8761 echo "$as_me:8761: result: $cf_cv_wint_t" >&5
8762 echo "${ECHO_T}$cf_cv_wint_t" >&6
8764 if test "$cf_cv_wint_t" = yes ; then
8765 cat >>confdefs.h <<\EOF
8766 #define NEED_WCHAR_H 1
8772 # if we do not find wint_t in either place, use substitution to provide a fallback.
8773 if test "$cf_cv_wint_t" = unknown ; then
8777 # if we find wint_t in either place, use substitution to provide a fallback.
8778 if test "$cf_cv_wint_t" != unknown ; then
8782 if test "$NCURSES_MBSTATE_T" != 0; then
8783 cat >>confdefs.h <<\EOF
8784 #define NEED_MBSTATE_T_DEF 1
8790 ### use option --disable-lp64 to allow long chtype
8791 case $cf_cv_abi_version in
8793 default_with_lp64=no
8796 default_with_lp64=yes
8800 echo "$as_me:8800: checking whether to enable _LP64 definition in curses.h" >&5
8801 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
8803 # Check whether --enable-lp64 or --disable-lp64 was given.
8804 if test "${enable_lp64+set}" = set; then
8805 enableval="$enable_lp64"
8806 with_lp64=$enableval
8808 with_lp64=$default_with_lp64
8810 echo "$as_me:8810: result: $with_lp64" >&5
8811 echo "${ECHO_T}$with_lp64" >&6
8813 if test "$with_lp64" = yes ; then
8819 # Check whether --enable-largefile or --disable-largefile was given.
8820 if test "${enable_largefile+set}" = set; then
8821 enableval="$enable_largefile"
8824 if test "$enable_largefile" != no; then
8826 echo "$as_me:8826: checking for special C compiler options needed for large files" >&5
8827 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
8828 if test "${ac_cv_sys_largefile_CC+set}" = set; then
8829 echo $ECHO_N "(cached) $ECHO_C" >&6
8831 ac_cv_sys_largefile_CC=no
8832 if test "$GCC" != yes; then
8835 # IRIX 6.2 and later do not support large files by default,
8836 # so use the C compiler's -n32 option if that helps.
8837 cat >conftest.$ac_ext <<_ACEOF
8838 #line 8838 "configure"
8839 #include "confdefs.h"
8840 #include <sys/types.h>
8841 /* Check that off_t can represent 2**63 - 1 correctly.
8842 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8843 since some C++ compilers masquerading as C compilers
8844 incorrectly reject 9223372036854775807. */
8845 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8846 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8847 && LARGE_OFF_T % 2147483647 == 1)
8857 rm -f conftest.$ac_objext
8858 if { (eval echo "$as_me:8858: \"$ac_compile\"") >&5
8859 (eval $ac_compile) 2>&5
8861 echo "$as_me:8861: \$? = $ac_status" >&5
8862 (exit $ac_status); } &&
8863 { ac_try='test -s conftest.$ac_objext'
8864 { (eval echo "$as_me:8864: \"$ac_try\"") >&5
8867 echo "$as_me:8867: \$? = $ac_status" >&5
8868 (exit $ac_status); }; }; then
8871 echo "$as_me: failed program was:" >&5
8872 cat conftest.$ac_ext >&5
8874 rm -f conftest.$ac_objext
8876 rm -f conftest.$ac_objext
8877 if { (eval echo "$as_me:8877: \"$ac_compile\"") >&5
8878 (eval $ac_compile) 2>&5
8880 echo "$as_me:8880: \$? = $ac_status" >&5
8881 (exit $ac_status); } &&
8882 { ac_try='test -s conftest.$ac_objext'
8883 { (eval echo "$as_me:8883: \"$ac_try\"") >&5
8886 echo "$as_me:8886: \$? = $ac_status" >&5
8887 (exit $ac_status); }; }; then
8888 ac_cv_sys_largefile_CC=' -n32'; break
8890 echo "$as_me: failed program was:" >&5
8891 cat conftest.$ac_ext >&5
8893 rm -f conftest.$ac_objext
8897 rm -f conftest.$ac_ext
8900 echo "$as_me:8900: result: $ac_cv_sys_largefile_CC" >&5
8901 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
8902 if test "$ac_cv_sys_largefile_CC" != no; then
8903 CC=$CC$ac_cv_sys_largefile_CC
8906 echo "$as_me:8906: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8907 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
8908 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8909 echo $ECHO_N "(cached) $ECHO_C" >&6
8912 ac_cv_sys_file_offset_bits=no
8913 cat >conftest.$ac_ext <<_ACEOF
8914 #line 8914 "configure"
8915 #include "confdefs.h"
8916 #include <sys/types.h>
8917 /* Check that off_t can represent 2**63 - 1 correctly.
8918 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8919 since some C++ compilers masquerading as C compilers
8920 incorrectly reject 9223372036854775807. */
8921 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8922 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8923 && LARGE_OFF_T % 2147483647 == 1)
8933 rm -f conftest.$ac_objext
8934 if { (eval echo "$as_me:8934: \"$ac_compile\"") >&5
8935 (eval $ac_compile) 2>&5
8937 echo "$as_me:8937: \$? = $ac_status" >&5
8938 (exit $ac_status); } &&
8939 { ac_try='test -s conftest.$ac_objext'
8940 { (eval echo "$as_me:8940: \"$ac_try\"") >&5
8943 echo "$as_me:8943: \$? = $ac_status" >&5
8944 (exit $ac_status); }; }; then
8947 echo "$as_me: failed program was:" >&5
8948 cat conftest.$ac_ext >&5
8950 rm -f conftest.$ac_objext conftest.$ac_ext
8951 cat >conftest.$ac_ext <<_ACEOF
8952 #line 8952 "configure"
8953 #include "confdefs.h"
8954 #define _FILE_OFFSET_BITS 64
8955 #include <sys/types.h>
8956 /* Check that off_t can represent 2**63 - 1 correctly.
8957 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8958 since some C++ compilers masquerading as C compilers
8959 incorrectly reject 9223372036854775807. */
8960 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8961 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8962 && LARGE_OFF_T % 2147483647 == 1)
8972 rm -f conftest.$ac_objext
8973 if { (eval echo "$as_me:8973: \"$ac_compile\"") >&5
8974 (eval $ac_compile) 2>&5
8976 echo "$as_me:8976: \$? = $ac_status" >&5
8977 (exit $ac_status); } &&
8978 { ac_try='test -s conftest.$ac_objext'
8979 { (eval echo "$as_me:8979: \"$ac_try\"") >&5
8982 echo "$as_me:8982: \$? = $ac_status" >&5
8983 (exit $ac_status); }; }; then
8984 ac_cv_sys_file_offset_bits=64; break
8986 echo "$as_me: failed program was:" >&5
8987 cat conftest.$ac_ext >&5
8989 rm -f conftest.$ac_objext conftest.$ac_ext
8993 echo "$as_me:8993: result: $ac_cv_sys_file_offset_bits" >&5
8994 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
8995 if test "$ac_cv_sys_file_offset_bits" != no; then
8997 cat >>confdefs.h <<EOF
8998 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9003 echo "$as_me:9003: checking for _LARGE_FILES value needed for large files" >&5
9004 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
9005 if test "${ac_cv_sys_large_files+set}" = set; then
9006 echo $ECHO_N "(cached) $ECHO_C" >&6
9009 ac_cv_sys_large_files=no
9010 cat >conftest.$ac_ext <<_ACEOF
9011 #line 9011 "configure"
9012 #include "confdefs.h"
9013 #include <sys/types.h>
9014 /* Check that off_t can represent 2**63 - 1 correctly.
9015 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9016 since some C++ compilers masquerading as C compilers
9017 incorrectly reject 9223372036854775807. */
9018 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9019 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9020 && LARGE_OFF_T % 2147483647 == 1)
9030 rm -f conftest.$ac_objext
9031 if { (eval echo "$as_me:9031: \"$ac_compile\"") >&5
9032 (eval $ac_compile) 2>&5
9034 echo "$as_me:9034: \$? = $ac_status" >&5
9035 (exit $ac_status); } &&
9036 { ac_try='test -s conftest.$ac_objext'
9037 { (eval echo "$as_me:9037: \"$ac_try\"") >&5
9040 echo "$as_me:9040: \$? = $ac_status" >&5
9041 (exit $ac_status); }; }; then
9044 echo "$as_me: failed program was:" >&5
9045 cat conftest.$ac_ext >&5
9047 rm -f conftest.$ac_objext conftest.$ac_ext
9048 cat >conftest.$ac_ext <<_ACEOF
9049 #line 9049 "configure"
9050 #include "confdefs.h"
9051 #define _LARGE_FILES 1
9052 #include <sys/types.h>
9053 /* Check that off_t can represent 2**63 - 1 correctly.
9054 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9055 since some C++ compilers masquerading as C compilers
9056 incorrectly reject 9223372036854775807. */
9057 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9058 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9059 && LARGE_OFF_T % 2147483647 == 1)
9069 rm -f conftest.$ac_objext
9070 if { (eval echo "$as_me:9070: \"$ac_compile\"") >&5
9071 (eval $ac_compile) 2>&5
9073 echo "$as_me:9073: \$? = $ac_status" >&5
9074 (exit $ac_status); } &&
9075 { ac_try='test -s conftest.$ac_objext'
9076 { (eval echo "$as_me:9076: \"$ac_try\"") >&5
9079 echo "$as_me:9079: \$? = $ac_status" >&5
9080 (exit $ac_status); }; }; then
9081 ac_cv_sys_large_files=1; break
9083 echo "$as_me: failed program was:" >&5
9084 cat conftest.$ac_ext >&5
9086 rm -f conftest.$ac_objext conftest.$ac_ext
9090 echo "$as_me:9090: result: $ac_cv_sys_large_files" >&5
9091 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9092 if test "$ac_cv_sys_large_files" != no; then
9094 cat >>confdefs.h <<EOF
9095 #define _LARGE_FILES $ac_cv_sys_large_files
9102 if test "$enable_largefile" != no ; then
9103 echo "$as_me:9103: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9104 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
9105 if test "${ac_cv_sys_largefile_source+set}" = set; then
9106 echo $ECHO_N "(cached) $ECHO_C" >&6
9109 ac_cv_sys_largefile_source=no
9110 cat >conftest.$ac_ext <<_ACEOF
9111 #line 9111 "configure"
9112 #include "confdefs.h"
9122 rm -f conftest.$ac_objext
9123 if { (eval echo "$as_me:9123: \"$ac_compile\"") >&5
9124 (eval $ac_compile) 2>&5
9126 echo "$as_me:9126: \$? = $ac_status" >&5
9127 (exit $ac_status); } &&
9128 { ac_try='test -s conftest.$ac_objext'
9129 { (eval echo "$as_me:9129: \"$ac_try\"") >&5
9132 echo "$as_me:9132: \$? = $ac_status" >&5
9133 (exit $ac_status); }; }; then
9136 echo "$as_me: failed program was:" >&5
9137 cat conftest.$ac_ext >&5
9139 rm -f conftest.$ac_objext conftest.$ac_ext
9140 cat >conftest.$ac_ext <<_ACEOF
9141 #line 9141 "configure"
9142 #include "confdefs.h"
9143 #define _LARGEFILE_SOURCE 1
9153 rm -f conftest.$ac_objext
9154 if { (eval echo "$as_me:9154: \"$ac_compile\"") >&5
9155 (eval $ac_compile) 2>&5
9157 echo "$as_me:9157: \$? = $ac_status" >&5
9158 (exit $ac_status); } &&
9159 { ac_try='test -s conftest.$ac_objext'
9160 { (eval echo "$as_me:9160: \"$ac_try\"") >&5
9163 echo "$as_me:9163: \$? = $ac_status" >&5
9164 (exit $ac_status); }; }; then
9165 ac_cv_sys_largefile_source=1; break
9167 echo "$as_me: failed program was:" >&5
9168 cat conftest.$ac_ext >&5
9170 rm -f conftest.$ac_objext conftest.$ac_ext
9174 echo "$as_me:9174: result: $ac_cv_sys_largefile_source" >&5
9175 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9176 if test "$ac_cv_sys_largefile_source" != no; then
9178 cat >>confdefs.h <<EOF
9179 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9185 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9186 # in glibc 2.1.3, but that breaks too many other things.
9187 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9188 echo "$as_me:9188: checking for fseeko" >&5
9189 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
9190 if test "${ac_cv_func_fseeko+set}" = set; then
9191 echo $ECHO_N "(cached) $ECHO_C" >&6
9193 cat >conftest.$ac_ext <<_ACEOF
9194 #line 9194 "configure"
9195 #include "confdefs.h"
9200 return fseeko && fseeko (stdin, 0, 0);
9205 rm -f conftest.$ac_objext conftest$ac_exeext
9206 if { (eval echo "$as_me:9206: \"$ac_link\"") >&5
9207 (eval $ac_link) 2>&5
9209 echo "$as_me:9209: \$? = $ac_status" >&5
9210 (exit $ac_status); } &&
9211 { ac_try='test -s conftest$ac_exeext'
9212 { (eval echo "$as_me:9212: \"$ac_try\"") >&5
9215 echo "$as_me:9215: \$? = $ac_status" >&5
9216 (exit $ac_status); }; }; then
9217 ac_cv_func_fseeko=yes
9219 echo "$as_me: failed program was:" >&5
9220 cat conftest.$ac_ext >&5
9221 ac_cv_func_fseeko=no
9223 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9225 echo "$as_me:9225: result: $ac_cv_func_fseeko" >&5
9226 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
9227 if test $ac_cv_func_fseeko = yes; then
9229 cat >>confdefs.h <<\EOF
9230 #define HAVE_FSEEKO 1
9235 # Normally we would collect these definitions in the config.h,
9236 # but (like _XOPEN_SOURCE), some environments rely on having these
9237 # defined before any of the system headers are included. Another
9238 # case comes up with C++, e.g., on AIX the compiler compiles the
9239 # header files by themselves before looking at the body files it is
9240 # told to compile. For ncurses, those header files do not include
9242 test "$ac_cv_sys_large_files" != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
9243 test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE "
9244 test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits "
9246 echo "$as_me:9246: checking whether to use struct dirent64" >&5
9247 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
9248 if test "${cf_cv_struct_dirent64+set}" = set; then
9249 echo $ECHO_N "(cached) $ECHO_C" >&6
9252 cat >conftest.$ac_ext <<_ACEOF
9253 #line 9253 "configure"
9254 #include "confdefs.h"
9256 #include <sys/types.h>
9263 /* if transitional largefile support is setup, this is true */
9264 extern struct dirent64 * readdir(DIR *);
9265 struct dirent64 *x = readdir((DIR *)0);
9266 struct dirent *y = readdir((DIR *)0);
9273 rm -f conftest.$ac_objext
9274 if { (eval echo "$as_me:9274: \"$ac_compile\"") >&5
9275 (eval $ac_compile) 2>&5
9277 echo "$as_me:9277: \$? = $ac_status" >&5
9278 (exit $ac_status); } &&
9279 { ac_try='test -s conftest.$ac_objext'
9280 { (eval echo "$as_me:9280: \"$ac_try\"") >&5
9283 echo "$as_me:9283: \$? = $ac_status" >&5
9284 (exit $ac_status); }; }; then
9285 cf_cv_struct_dirent64=yes
9287 echo "$as_me: failed program was:" >&5
9288 cat conftest.$ac_ext >&5
9289 cf_cv_struct_dirent64=no
9291 rm -f conftest.$ac_objext conftest.$ac_ext
9294 echo "$as_me:9294: result: $cf_cv_struct_dirent64" >&5
9295 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
9296 test "$cf_cv_struct_dirent64" = yes && cat >>confdefs.h <<\EOF
9297 #define HAVE_STRUCT_DIRENT64 1
9302 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
9303 echo "$as_me:9303: checking if you want tparm not to use X/Open fixed-parameter list" >&5
9304 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
9306 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
9307 if test "${enable_tparm_varargs+set}" = set; then
9308 enableval="$enable_tparm_varargs"
9309 with_tparm_varargs=$enableval
9311 with_tparm_varargs=yes
9313 echo "$as_me:9313: result: $with_tparm_varargs" >&5
9314 echo "${ECHO_T}$with_tparm_varargs" >&6
9315 NCURSES_TPARM_VARARGS=0
9316 test "$with_tparm_varargs" = yes && NCURSES_TPARM_VARARGS=1
9318 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
9319 if test "$with_ticlib" != no ; then
9320 echo "$as_me:9320: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
9321 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
9323 # Check whether --enable-tic-depends or --disable-tic-depends was given.
9324 if test "${enable_tic_depends+set}" = set; then
9325 enableval="$enable_tic_depends"
9326 with_tic_depends=$enableval
9328 with_tic_depends=yes
9330 echo "$as_me:9330: result: $with_tic_depends" >&5
9331 echo "${ECHO_T}$with_tic_depends" >&6
9336 ### use option --with-bool to override bool's type
9337 echo "$as_me:9337: checking for type of bool" >&5
9338 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
9340 # Check whether --with-bool or --without-bool was given.
9341 if test "${with_bool+set}" = set; then
9342 withval="$with_bool"
9343 NCURSES_BOOL="$withval"
9347 echo "$as_me:9347: result: $NCURSES_BOOL" >&5
9348 echo "${ECHO_T}$NCURSES_BOOL" >&6
9350 echo "$as_me:9350: checking for alternate terminal capabilities file" >&5
9351 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
9353 # Check whether --with-caps or --without-caps was given.
9354 if test "${with_caps+set}" = set; then
9355 withval="$with_caps"
9356 TERMINFO_CAPS=Caps.$withval
9360 test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
9361 echo "$as_me:9361: result: $TERMINFO_CAPS" >&5
9362 echo "${ECHO_T}$TERMINFO_CAPS" >&6
9364 ### use option --with-chtype to override chtype's type
9365 echo "$as_me:9365: checking for type of chtype" >&5
9366 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
9368 # Check whether --with-chtype or --without-chtype was given.
9369 if test "${with_chtype+set}" = set; then
9370 withval="$with_chtype"
9371 NCURSES_CHTYPE="$withval"
9375 echo "$as_me:9375: result: $NCURSES_CHTYPE" >&5
9376 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
9378 ### use option --with-ospeed to override ospeed's type
9379 echo "$as_me:9379: checking for type of ospeed" >&5
9380 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
9382 # Check whether --with-ospeed or --without-ospeed was given.
9383 if test "${with_ospeed+set}" = set; then
9384 withval="$with_ospeed"
9385 NCURSES_OSPEED="$withval"
9387 NCURSES_OSPEED=short
9389 echo "$as_me:9389: result: $NCURSES_OSPEED" >&5
9390 echo "${ECHO_T}$NCURSES_OSPEED" >&6
9392 ### use option --with-mmask-t to override mmask_t's type
9393 echo "$as_me:9393: checking for type of mmask_t" >&5
9394 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
9396 # Check whether --with-mmask-t or --without-mmask-t was given.
9397 if test "${with_mmask_t+set}" = set; then
9398 withval="$with_mmask_t"
9399 NCURSES_MMASK_T="$withval"
9401 NCURSES_MMASK_T=auto
9403 echo "$as_me:9403: result: $NCURSES_MMASK_T" >&5
9404 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
9406 ### use option --with-ccharw-max to override CCHARW_MAX size
9407 echo "$as_me:9407: checking for size CCHARW_MAX" >&5
9408 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
9410 # Check whether --with-ccharw-max or --without-ccharw-max was given.
9411 if test "${with_ccharw_max+set}" = set; then
9412 withval="$with_ccharw_max"
9413 NCURSES_CCHARW_MAX="$withval"
9415 NCURSES_CCHARW_MAX=5
9417 echo "$as_me:9417: result: $NCURSES_CCHARW_MAX" >&5
9418 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
9420 ### Enable compiling-in rcs id's
9421 echo "$as_me:9421: checking if RCS identifiers should be compiled-in" >&5
9422 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
9424 # Check whether --with-rcs-ids or --without-rcs-ids was given.
9425 if test "${with_rcs_ids+set}" = set; then
9426 withval="$with_rcs_ids"
9427 with_rcs_ids=$withval
9431 echo "$as_me:9431: result: $with_rcs_ids" >&5
9432 echo "${ECHO_T}$with_rcs_ids" >&6
9433 test "$with_rcs_ids" = yes && cat >>confdefs.h <<\EOF
9434 #define USE_RCS_IDS 1
9437 ###############################################################################
9439 echo "$as_me:9439: checking format of man-pages" >&5
9440 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
9442 # Check whether --with-manpage-format or --without-manpage-format was given.
9443 if test "${with_manpage_format+set}" = set; then
9444 withval="$with_manpage_format"
9445 MANPAGE_FORMAT=$withval
9447 MANPAGE_FORMAT=unknown
9450 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
9451 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
9455 case $MANPAGE_FORMAT in
9457 if test -z "$MANPATH" ; then
9458 MANPATH="/usr/man:/usr/share/man"
9461 # look for the 'date' man-page (it's most likely to be installed!)
9467 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
9468 for cf_dir in $MANPATH; do
9469 test -z "$cf_dir" && cf_dir=/usr/man
9470 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
9472 cf_test=`echo $cf_name | sed -e 's/*//'`
9473 if test "x$cf_test" = "x$cf_name" ; then
9476 *.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
9477 *.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
9478 *.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
9479 *) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
9493 # if we found a match in either man* or cat*, stop looking
9494 if test -n "$MANPAGE_FORMAT" ; then
9496 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
9497 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
9503 test $cf_found=yes && break
9506 # only check the first directory in $MANPATH where we find manpages
9507 if test -n "$MANPAGE_FORMAT" ; then
9511 # if we did not find the example, just assume it is normal
9512 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
9516 for cf_option in $MANPAGE_FORMAT; do
9517 case $cf_option in #(vi
9518 gzip|compress|BSDI|normal|formatted|catonly)
9521 cf_unknown="$cf_unknown $cf_option"
9528 echo "$as_me:9528: result: $MANPAGE_FORMAT" >&5
9529 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
9530 if test -n "$cf_unknown" ; then
9531 { echo "$as_me:9531: WARNING: Unexpected manpage-format $cf_unknown" >&5
9532 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
9535 echo "$as_me:9535: checking for manpage renaming" >&5
9536 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
9538 # Check whether --with-manpage-renames or --without-manpage-renames was given.
9539 if test "${with_manpage_renames+set}" = set; then
9540 withval="$with_manpage_renames"
9541 MANPAGE_RENAMES=$withval
9546 case ".$MANPAGE_RENAMES" in #(vi
9550 # Debian 'man' program?
9551 if test -f /etc/debian_version ; then
9552 MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
9559 if test "$MANPAGE_RENAMES" != no ; then
9560 if test -f $srcdir/man/$MANPAGE_RENAMES ; then
9561 MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
9562 elif test ! -f $MANPAGE_RENAMES ; then
9563 { { echo "$as_me:9563: error: not a filename: $MANPAGE_RENAMES" >&5
9564 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
9565 { (exit 1); exit 1; }; }
9568 test ! -d man && mkdir man
9570 # Construct a sed-script to perform renaming within man-pages
9571 if test -n "$MANPAGE_RENAMES" ; then
9572 test ! -d man && mkdir man
9573 sh $srcdir/man/make_sed.sh $MANPAGE_RENAMES >./edit_man.sed
9577 echo "$as_me:9577: result: $MANPAGE_RENAMES" >&5
9578 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
9580 echo "$as_me:9580: checking if manpage aliases will be installed" >&5
9581 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
9583 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
9584 if test "${with_manpage_aliases+set}" = set; then
9585 withval="$with_manpage_aliases"
9586 MANPAGE_ALIASES=$withval
9591 echo "$as_me:9591: result: $MANPAGE_ALIASES" >&5
9592 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
9594 case "x$LN_S" in #(vi
9604 if test "$MANPAGE_ALIASES" = yes ; then
9605 echo "$as_me:9605: checking if manpage symlinks should be used" >&5
9606 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
9608 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
9609 if test "${with_manpage_symlinks+set}" = set; then
9610 withval="$with_manpage_symlinks"
9611 MANPAGE_SYMLINKS=$withval
9613 MANPAGE_SYMLINKS=$cf_use_symlinks
9616 if test "$$cf_use_symlinks" = no; then
9617 if test "$MANPAGE_SYMLINKS" = yes ; then
9618 { echo "$as_me:9618: WARNING: cannot make symlinks" >&5
9619 echo "$as_me: WARNING: cannot make symlinks" >&2;}
9624 echo "$as_me:9624: result: $MANPAGE_SYMLINKS" >&5
9625 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
9628 echo "$as_me:9628: checking for manpage tbl" >&5
9629 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
9631 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
9632 if test "${with_manpage_tbl+set}" = set; then
9633 withval="$with_manpage_tbl"
9634 MANPAGE_TBL=$withval
9639 echo "$as_me:9639: result: $MANPAGE_TBL" >&5
9640 echo "${ECHO_T}$MANPAGE_TBL" >&6
9642 if test "$prefix" = "NONE" ; then
9643 cf_prefix="$ac_default_prefix"
9648 case "$MANPAGE_FORMAT" in # (vi
9663 test ! -d man && mkdir man
9667 case "$MANPAGE_FORMAT" in #(vi
9670 cf_compress=compress
9678 cf_edit_man=./edit_man.sh
9679 cf_man_alias=`pwd`/man_alias.sed
9681 cat >$cf_edit_man <<CF_EOF
9683 # this script is generated by the configure-script CF_MAN_PAGES macro.
9688 NCURSES_MAJOR="$NCURSES_MAJOR"
9689 NCURSES_MINOR="$NCURSES_MINOR"
9690 NCURSES_PATCH="$NCURSES_PATCH"
9692 NCURSES_OSPEED="$NCURSES_OSPEED"
9693 TERMINFO="$TERMINFO"
9696 INSTALL_DATA="$INSTALL_DATA"
9698 transform="$program_transform_name"
9700 TMP=\${TMPDIR-/tmp}/man\$\$
9701 trap "rm -f \$TMP" 0 1 2 5 15
9713 top_srcdir=\$srcdir/..
9716 if test "\$form" = normal ; then
9717 if test "$cf_format" = yes ; then
9718 if test "$cf_inboth" = no ; then
9719 sh \$0 format \$verb \$mandir \$srcdir \$*
9723 cf_subdir=\$mandir/man
9724 cf_tables=$MANPAGE_TBL
9726 cf_subdir=\$mandir/cat
9730 # process the list of source-files
9733 *.orig|*.rej) ;; #(vi
9735 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
9736 if test \$verb = installing ; then
9737 if test ! -d \$cf_subdir\${section} ; then
9738 mkdir -p \$cf_subdir\$section
9742 # replace variables in man page
9743 if test ! -f $cf_man_alias ; then
9744 cat >>$cf_man_alias <<-CF_EOF2
9745 s,@DATADIR@,\$datadir,g
9746 s,@TERMINFO@,\$TERMINFO,g
9747 s,@NCURSES_MAJOR@,\$NCURSES_MAJOR,g
9748 s,@NCURSES_MINOR@,\$NCURSES_MINOR,g
9749 s,@NCURSES_PATCH@,\$NCURSES_PATCH,g
9750 s,@NCURSES_OSPEED@,\$NCURSES_OSPEED,g
9753 for cf_name in captoinfo clear infocmp infotocap tabs tic toe tput tset
9755 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
9756 cf_name=`echo $cf_name|sed "$program_transform_name"`
9757 cat >>$cf_edit_man <<-CF_EOF
9758 s,@$cf_NAME@,$cf_name,g
9762 cat >>$cf_edit_man <<CF_EOF
9764 echo "...made $cf_man_alias"
9768 cf_source=\`basename \$i\`
9770 test ! -f \$inalias && inalias="\$srcdir/\$inalias"
9771 if test ! -f \$inalias ; then
9772 echo .. skipped \$cf_source
9777 if test "$MANPAGE_ALIASES" != no ; then
9778 cat >>$cf_edit_man <<CF_EOF
9779 aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u\`
9783 if test "$MANPAGE_RENAMES" = no ; then
9784 cat >>$cf_edit_man <<CF_EOF
9785 # perform program transformations for section 1 man pages
9786 if test \$section = 1 ; then
9787 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
9789 cf_target=\$cf_subdir\${section}/\$cf_source
9793 cat >>$cf_edit_man <<CF_EOF
9794 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
9795 if test -z "\$cf_target" ; then
9796 echo '? missing rename for '\$cf_source
9797 cf_target="\$cf_source"
9799 cf_target="\$cf_subdir\${section}/\${cf_target}"
9804 cat >>$cf_edit_man <<CF_EOF
9805 sed -f $cf_man_alias \\
9808 if test -f $MANPAGE_RENAMES ; then
9809 cat >>$cf_edit_man <<CF_EOF
9810 < \$i | sed -f `pwd`/edit_man.sed >\$TMP
9813 cat >>$cf_edit_man <<CF_EOF
9818 cat >>$cf_edit_man <<CF_EOF
9819 if test \$cf_tables = yes ; then
9820 tbl \$TMP >\$TMP.out
9825 if test $with_curses_h != yes ; then
9826 cat >>$cf_edit_man <<CF_EOF
9827 sed -e "/\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
9832 cat >>$cf_edit_man <<CF_EOF
9833 if test \$form = format ; then
9834 nroff -man \$TMP >\$TMP.out
9839 if test -n "$cf_compress" ; then
9840 cat >>$cf_edit_man <<CF_EOF
9841 if test \$verb = installing ; then
9842 if ( $cf_compress -f \$TMP )
9844 mv \$TMP.$cf_so_strip \$TMP
9847 cf_target="\$cf_target.$cf_so_strip"
9851 case "$MANPAGE_FORMAT" in #(vi
9853 cat >>$cf_edit_man <<CF_EOF
9854 if test \$form = format ; then
9855 # BSDI installs only .0 suffixes in the cat directories
9856 cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
9862 cat >>$cf_edit_man <<CF_EOF
9863 suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\`
9864 if test \$verb = installing ; then
9865 echo \$verb \$cf_target
9866 \$INSTALL_DATA \$TMP \$cf_target
9867 test -d \$cf_subdir\${section} &&
9868 test -n "\$aliases" && (
9869 cd \$cf_subdir\${section} && (
9870 cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
9871 test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
9872 cf_target=\`basename \$cf_target\`
9873 for cf_alias in \$aliases
9875 if test \$section = 1 ; then
9876 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
9879 if test "$MANPAGE_SYMLINKS" = yes ; then
9880 if test -f \$cf_alias\${suffix} ; then
9881 if ( cmp -s \$cf_target \$cf_alias\${suffix} )
9886 echo .. \$verb alias \$cf_alias\${suffix}
9888 case "x$LN_S" in #(vi
9890 cat >>$cf_edit_man <<CF_EOF
9891 $LN_S \$cf_target \$cf_alias\${suffix}
9895 cat >>$cf_edit_man <<CF_EOF
9896 rm -f \$cf_alias\${suffix}
9897 $LN_S \$cf_target \$cf_alias\${suffix}
9901 cat >>$cf_edit_man <<CF_EOF
9902 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
9903 echo ".so \$cf_source" >\$TMP
9905 if test -n "$cf_compress" ; then
9906 cat >>$cf_edit_man <<CF_EOF
9907 if test -n "$cf_so_strip" ; then
9908 $cf_compress -f \$TMP
9909 mv \$TMP.$cf_so_strip \$TMP
9913 cat >>$cf_edit_man <<CF_EOF
9914 echo .. \$verb alias \$cf_alias\${suffix}
9915 rm -f \$cf_alias\${suffix}
9916 \$INSTALL_DATA \$TMP \$cf_alias\${suffix}
9921 elif test \$verb = removing ; then
9922 test -f \$cf_target && (
9923 echo \$verb \$cf_target
9926 test -d \$cf_subdir\${section} &&
9927 test -n "\$aliases" && (
9928 cd \$cf_subdir\${section} && (
9929 for cf_alias in \$aliases
9931 if test \$section = 1 ; then
9932 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
9935 echo .. \$verb alias \$cf_alias\${suffix}
9936 rm -f \$cf_alias\${suffix}
9948 if test $cf_inboth = yes ; then
9949 if test \$form != format ; then
9950 sh \$0 format \$verb \$mandir \$srcdir \$*
9956 chmod 755 $cf_edit_man
9958 ###############################################################################
9960 ### Note that some functions (such as const) are normally disabled anyway.
9961 echo "$as_me:9961: checking if you want to build with function extensions" >&5
9962 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
9964 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
9965 if test "${enable_ext_funcs+set}" = set; then
9966 enableval="$enable_ext_funcs"
9967 with_ext_funcs=$enableval
9971 echo "$as_me:9971: result: $with_ext_funcs" >&5
9972 echo "${ECHO_T}$with_ext_funcs" >&6
9973 if test "$with_ext_funcs" = yes ; then
9975 cat >>confdefs.h <<\EOF
9976 #define HAVE_CURSES_VERSION 1
9979 cat >>confdefs.h <<\EOF
9980 #define HAVE_HAS_KEY 1
9983 cat >>confdefs.h <<\EOF
9984 #define HAVE_RESIZETERM 1
9987 cat >>confdefs.h <<\EOF
9988 #define HAVE_RESIZE_TERM 1
9991 cat >>confdefs.h <<\EOF
9992 #define HAVE_USE_DEFAULT_COLORS 1
9995 cat >>confdefs.h <<\EOF
9996 #define HAVE_WRESIZE 1
9999 cat >>confdefs.h <<\EOF
10000 #define NCURSES_EXT_FUNCS 1
10003 GENERATED_EXT_FUNCS=generated
10005 NCURSES_EXT_FUNCS=0
10006 GENERATED_EXT_FUNCS=
10009 echo "$as_me:10009: checking if you want to build with experimental SCREEN extensions" >&5
10010 echo $ECHO_N "checking if you want to build with experimental SCREEN extensions... $ECHO_C" >&6
10012 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
10013 if test "${enable_sp_funcs+set}" = set; then
10014 enableval="$enable_sp_funcs"
10015 with_sp_funcs=$enableval
10019 echo "$as_me:10019: result: $with_sp_funcs" >&5
10020 echo "${ECHO_T}$with_sp_funcs" >&6
10021 if test "$with_sp_funcs" = yes ; then
10023 cat >>confdefs.h <<\EOF
10024 #define NCURSES_SP_FUNCS 1
10027 GENERATED_SP_FUNCS=generated
10030 GENERATED_SP_FUNCS=
10033 echo "$as_me:10033: checking if you want to build with experimental terminal-driver" >&5
10034 echo $ECHO_N "checking if you want to build with experimental terminal-driver... $ECHO_C" >&6
10036 # Check whether --enable-term-driver or --disable-term-driver was given.
10037 if test "${enable_term_driver+set}" = set; then
10038 enableval="$enable_term_driver"
10039 with_term_driver=$enableval
10041 with_term_driver=no
10043 echo "$as_me:10043: result: $with_term_driver" >&5
10044 echo "${ECHO_T}$with_term_driver" >&6
10045 if test "$with_term_driver" = yes ; then
10046 cat >>confdefs.h <<\EOF
10047 #define USE_TERM_DRIVER 1
10050 if test "$with_sp_funcs" != yes ; then
10051 { { echo "$as_me:10051: error: The term-driver option relies upon sp-funcs" >&5
10052 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
10053 { (exit 1); exit 1; }; }
10057 ### use option --enable-const to turn on use of const beyond that in XSI.
10058 echo "$as_me:10058: checking for extended use of const keyword" >&5
10059 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
10061 # Check whether --enable-const or --disable-const was given.
10062 if test "${enable_const+set}" = set; then
10063 enableval="$enable_const"
10064 with_ext_const=$enableval
10068 echo "$as_me:10068: result: $with_ext_const" >&5
10069 echo "${ECHO_T}$with_ext_const" >&6
10070 NCURSES_CONST='/*nothing*/'
10071 if test "$with_ext_const" = yes ; then
10072 NCURSES_CONST=const
10075 ### use option --enable-ext-colors to turn on use of colors beyond 16.
10076 echo "$as_me:10076: checking if you want to use extended colors" >&5
10077 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
10079 # Check whether --enable-ext-colors or --disable-ext-colors was given.
10080 if test "${enable_ext_colors+set}" = set; then
10081 enableval="$enable_ext_colors"
10082 with_ext_colors=$enableval
10086 echo "$as_me:10086: result: $with_ext_colors" >&5
10087 echo "${ECHO_T}$with_ext_colors" >&6
10088 NCURSES_EXT_COLORS=0
10089 if test "$with_ext_colors" = yes ; then
10090 if test "$with_widec" != yes ; then
10091 { { echo "$as_me:10091: error: This option applies only to wide-character library" >&5
10092 echo "$as_me: error: This option applies only to wide-character library" >&2;}
10093 { (exit 1); exit 1; }; }
10095 # cannot be ABI 5 since it changes sizeof(cchar_t)
10097 if test "${with_abi_version+set}" != set; then
10098 case $cf_cv_rel_version in
10100 cf_cv_rel_version=6.0
10101 cf_cv_abi_version=6
10102 { echo "$as_me:10102: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
10103 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
10109 NCURSES_EXT_COLORS=1
10110 cat >>confdefs.h <<\EOF
10111 #define NCURSES_EXT_COLORS 1
10116 ### use option --enable-ext-mouse to modify coding to support 5-button mice
10117 echo "$as_me:10117: checking if you want to use extended mouse encoding" >&5
10118 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
10120 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
10121 if test "${enable_ext_mouse+set}" = set; then
10122 enableval="$enable_ext_mouse"
10123 with_ext_mouse=$enableval
10127 echo "$as_me:10127: result: $with_ext_mouse" >&5
10128 echo "${ECHO_T}$with_ext_mouse" >&6
10129 NCURSES_MOUSE_VERSION=1
10130 if test "$with_ext_mouse" = yes ; then
10131 NCURSES_MOUSE_VERSION=2
10133 if test "${with_abi_version+set}" != set; then
10134 case $cf_cv_rel_version in
10136 cf_cv_rel_version=6.0
10137 cf_cv_abi_version=6
10138 { echo "$as_me:10138: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
10139 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
10146 echo "$as_me:10146: checking if you want \$NCURSES_NO_PADDING code" >&5
10147 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
10149 # Check whether --enable-no-padding or --disable-no-padding was given.
10150 if test "${enable_no_padding+set}" = set; then
10151 enableval="$enable_no_padding"
10152 with_no_padding=$enableval
10154 with_no_padding=$with_ext_funcs
10156 echo "$as_me:10156: result: $with_no_padding" >&5
10157 echo "${ECHO_T}$with_no_padding" >&6
10158 test "$with_no_padding" = yes && cat >>confdefs.h <<\EOF
10159 #define NCURSES_NO_PADDING 1
10162 echo "$as_me:10162: checking for ANSI C header files" >&5
10163 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10164 if test "${ac_cv_header_stdc+set}" = set; then
10165 echo $ECHO_N "(cached) $ECHO_C" >&6
10167 cat >conftest.$ac_ext <<_ACEOF
10168 #line 10168 "configure"
10169 #include "confdefs.h"
10170 #include <stdlib.h>
10171 #include <stdarg.h>
10172 #include <string.h>
10176 if { (eval echo "$as_me:10176: \"$ac_cpp conftest.$ac_ext\"") >&5
10177 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10179 egrep -v '^ *\+' conftest.er1 >conftest.err
10181 cat conftest.err >&5
10182 echo "$as_me:10182: \$? = $ac_status" >&5
10183 (exit $ac_status); } >/dev/null; then
10184 if test -s conftest.err; then
10185 ac_cpp_err=$ac_c_preproc_warn_flag
10192 if test -z "$ac_cpp_err"; then
10193 ac_cv_header_stdc=yes
10195 echo "$as_me: failed program was:" >&5
10196 cat conftest.$ac_ext >&5
10197 ac_cv_header_stdc=no
10199 rm -f conftest.err conftest.$ac_ext
10201 if test $ac_cv_header_stdc = yes; then
10202 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10203 cat >conftest.$ac_ext <<_ACEOF
10204 #line 10204 "configure"
10205 #include "confdefs.h"
10206 #include <string.h>
10209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10210 egrep "memchr" >/dev/null 2>&1; then
10213 ac_cv_header_stdc=no
10219 if test $ac_cv_header_stdc = yes; then
10220 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10221 cat >conftest.$ac_ext <<_ACEOF
10222 #line 10222 "configure"
10223 #include "confdefs.h"
10224 #include <stdlib.h>
10227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10228 egrep "free" >/dev/null 2>&1; then
10231 ac_cv_header_stdc=no
10237 if test $ac_cv_header_stdc = yes; then
10238 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10239 if test "$cross_compiling" = yes; then
10242 cat >conftest.$ac_ext <<_ACEOF
10243 #line 10243 "configure"
10244 #include "confdefs.h"
10246 #if ((' ' & 0x0FF) == 0x020)
10247 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10248 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10250 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
10251 || ('j' <= (c) && (c) <= 'r') \
10252 || ('s' <= (c) && (c) <= 'z'))
10253 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10256 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10261 for (i = 0; i < 256; i++)
10262 if (XOR (islower (i), ISLOWER (i))
10263 || toupper (i) != TOUPPER (i))
10264 $ac_main_return(2);
10265 $ac_main_return (0);
10268 rm -f conftest$ac_exeext
10269 if { (eval echo "$as_me:10269: \"$ac_link\"") >&5
10270 (eval $ac_link) 2>&5
10272 echo "$as_me:10272: \$? = $ac_status" >&5
10273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10274 { (eval echo "$as_me:10274: \"$ac_try\"") >&5
10275 (eval $ac_try) 2>&5
10277 echo "$as_me:10277: \$? = $ac_status" >&5
10278 (exit $ac_status); }; }; then
10281 echo "$as_me: program exited with status $ac_status" >&5
10282 echo "$as_me: failed program was:" >&5
10283 cat conftest.$ac_ext >&5
10284 ac_cv_header_stdc=no
10286 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10290 echo "$as_me:10290: result: $ac_cv_header_stdc" >&5
10291 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10292 if test $ac_cv_header_stdc = yes; then
10294 cat >>confdefs.h <<\EOF
10295 #define STDC_HEADERS 1
10300 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10302 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10303 inttypes.h stdint.h unistd.h
10305 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10306 echo "$as_me:10306: checking for $ac_header" >&5
10307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10309 echo $ECHO_N "(cached) $ECHO_C" >&6
10311 cat >conftest.$ac_ext <<_ACEOF
10312 #line 10312 "configure"
10313 #include "confdefs.h"
10314 $ac_includes_default
10315 #include <$ac_header>
10317 rm -f conftest.$ac_objext
10318 if { (eval echo "$as_me:10318: \"$ac_compile\"") >&5
10319 (eval $ac_compile) 2>&5
10321 echo "$as_me:10321: \$? = $ac_status" >&5
10322 (exit $ac_status); } &&
10323 { ac_try='test -s conftest.$ac_objext'
10324 { (eval echo "$as_me:10324: \"$ac_try\"") >&5
10325 (eval $ac_try) 2>&5
10327 echo "$as_me:10327: \$? = $ac_status" >&5
10328 (exit $ac_status); }; }; then
10329 eval "$as_ac_Header=yes"
10331 echo "$as_me: failed program was:" >&5
10332 cat conftest.$ac_ext >&5
10333 eval "$as_ac_Header=no"
10335 rm -f conftest.$ac_objext conftest.$ac_ext
10337 echo "$as_me:10337: result: `eval echo '${'$as_ac_Header'}'`" >&5
10338 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10339 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10340 cat >>confdefs.h <<EOF
10341 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10347 echo "$as_me:10347: checking for signed char" >&5
10348 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
10349 if test "${ac_cv_type_signed_char+set}" = set; then
10350 echo $ECHO_N "(cached) $ECHO_C" >&6
10352 cat >conftest.$ac_ext <<_ACEOF
10353 #line 10353 "configure"
10354 #include "confdefs.h"
10355 $ac_includes_default
10359 if ((signed char *) 0)
10361 if (sizeof (signed char))
10367 rm -f conftest.$ac_objext
10368 if { (eval echo "$as_me:10368: \"$ac_compile\"") >&5
10369 (eval $ac_compile) 2>&5
10371 echo "$as_me:10371: \$? = $ac_status" >&5
10372 (exit $ac_status); } &&
10373 { ac_try='test -s conftest.$ac_objext'
10374 { (eval echo "$as_me:10374: \"$ac_try\"") >&5
10375 (eval $ac_try) 2>&5
10377 echo "$as_me:10377: \$? = $ac_status" >&5
10378 (exit $ac_status); }; }; then
10379 ac_cv_type_signed_char=yes
10381 echo "$as_me: failed program was:" >&5
10382 cat conftest.$ac_ext >&5
10383 ac_cv_type_signed_char=no
10385 rm -f conftest.$ac_objext conftest.$ac_ext
10387 echo "$as_me:10387: result: $ac_cv_type_signed_char" >&5
10388 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
10390 echo "$as_me:10390: checking size of signed char" >&5
10391 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
10392 if test "${ac_cv_sizeof_signed_char+set}" = set; then
10393 echo $ECHO_N "(cached) $ECHO_C" >&6
10395 if test "$ac_cv_type_signed_char" = yes; then
10396 if test "$cross_compiling" = yes; then
10397 # Depending upon the size, compute the lo and hi bounds.
10398 cat >conftest.$ac_ext <<_ACEOF
10399 #line 10399 "configure"
10400 #include "confdefs.h"
10401 $ac_includes_default
10405 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
10410 rm -f conftest.$ac_objext
10411 if { (eval echo "$as_me:10411: \"$ac_compile\"") >&5
10412 (eval $ac_compile) 2>&5
10414 echo "$as_me:10414: \$? = $ac_status" >&5
10415 (exit $ac_status); } &&
10416 { ac_try='test -s conftest.$ac_objext'
10417 { (eval echo "$as_me:10417: \"$ac_try\"") >&5
10418 (eval $ac_try) 2>&5
10420 echo "$as_me:10420: \$? = $ac_status" >&5
10421 (exit $ac_status); }; }; then
10424 cat >conftest.$ac_ext <<_ACEOF
10425 #line 10425 "configure"
10426 #include "confdefs.h"
10427 $ac_includes_default
10431 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
10436 rm -f conftest.$ac_objext
10437 if { (eval echo "$as_me:10437: \"$ac_compile\"") >&5
10438 (eval $ac_compile) 2>&5
10440 echo "$as_me:10440: \$? = $ac_status" >&5
10441 (exit $ac_status); } &&
10442 { ac_try='test -s conftest.$ac_objext'
10443 { (eval echo "$as_me:10443: \"$ac_try\"") >&5
10444 (eval $ac_try) 2>&5
10446 echo "$as_me:10446: \$? = $ac_status" >&5
10447 (exit $ac_status); }; }; then
10448 ac_hi=$ac_mid; break
10450 echo "$as_me: failed program was:" >&5
10451 cat conftest.$ac_ext >&5
10452 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
10454 rm -f conftest.$ac_objext conftest.$ac_ext
10457 echo "$as_me: failed program was:" >&5
10458 cat conftest.$ac_ext >&5
10461 cat >conftest.$ac_ext <<_ACEOF
10462 #line 10462 "configure"
10463 #include "confdefs.h"
10464 $ac_includes_default
10468 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
10473 rm -f conftest.$ac_objext
10474 if { (eval echo "$as_me:10474: \"$ac_compile\"") >&5
10475 (eval $ac_compile) 2>&5
10477 echo "$as_me:10477: \$? = $ac_status" >&5
10478 (exit $ac_status); } &&
10479 { ac_try='test -s conftest.$ac_objext'
10480 { (eval echo "$as_me:10480: \"$ac_try\"") >&5
10481 (eval $ac_try) 2>&5
10483 echo "$as_me:10483: \$? = $ac_status" >&5
10484 (exit $ac_status); }; }; then
10485 ac_lo=$ac_mid; break
10487 echo "$as_me: failed program was:" >&5
10488 cat conftest.$ac_ext >&5
10489 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
10491 rm -f conftest.$ac_objext conftest.$ac_ext
10494 rm -f conftest.$ac_objext conftest.$ac_ext
10495 # Binary search between lo and hi bounds.
10496 while test "x$ac_lo" != "x$ac_hi"; do
10497 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10498 cat >conftest.$ac_ext <<_ACEOF
10499 #line 10499 "configure"
10500 #include "confdefs.h"
10501 $ac_includes_default
10505 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
10510 rm -f conftest.$ac_objext
10511 if { (eval echo "$as_me:10511: \"$ac_compile\"") >&5
10512 (eval $ac_compile) 2>&5
10514 echo "$as_me:10514: \$? = $ac_status" >&5
10515 (exit $ac_status); } &&
10516 { ac_try='test -s conftest.$ac_objext'
10517 { (eval echo "$as_me:10517: \"$ac_try\"") >&5
10518 (eval $ac_try) 2>&5
10520 echo "$as_me:10520: \$? = $ac_status" >&5
10521 (exit $ac_status); }; }; then
10524 echo "$as_me: failed program was:" >&5
10525 cat conftest.$ac_ext >&5
10526 ac_lo=`expr $ac_mid + 1`
10528 rm -f conftest.$ac_objext conftest.$ac_ext
10530 ac_cv_sizeof_signed_char=$ac_lo
10532 if test "$cross_compiling" = yes; then
10533 { { echo "$as_me:10533: error: cannot run test program while cross compiling" >&5
10534 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10535 { (exit 1); exit 1; }; }
10537 cat >conftest.$ac_ext <<_ACEOF
10538 #line 10538 "configure"
10539 #include "confdefs.h"
10540 $ac_includes_default
10544 FILE *f = fopen ("conftest.val", "w");
10546 $ac_main_return (1);
10547 fprintf (f, "%d", (sizeof (signed char)));
10553 rm -f conftest$ac_exeext
10554 if { (eval echo "$as_me:10554: \"$ac_link\"") >&5
10555 (eval $ac_link) 2>&5
10557 echo "$as_me:10557: \$? = $ac_status" >&5
10558 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10559 { (eval echo "$as_me:10559: \"$ac_try\"") >&5
10560 (eval $ac_try) 2>&5
10562 echo "$as_me:10562: \$? = $ac_status" >&5
10563 (exit $ac_status); }; }; then
10564 ac_cv_sizeof_signed_char=`cat conftest.val`
10566 echo "$as_me: program exited with status $ac_status" >&5
10567 echo "$as_me: failed program was:" >&5
10568 cat conftest.$ac_ext >&5
10570 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10575 ac_cv_sizeof_signed_char=0
10578 echo "$as_me:10578: result: $ac_cv_sizeof_signed_char" >&5
10579 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
10580 cat >>confdefs.h <<EOF
10581 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
10584 if test "$ac_cv_sizeof_signed_char" = 1 ; then
10585 NCURSES_SBOOL="signed char"
10587 NCURSES_SBOOL="char"
10589 echo "$as_me:10589: checking if you want to use signed Boolean array in term.h" >&5
10590 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
10592 # Check whether --enable-signed-char or --disable-signed-char was given.
10593 if test "${enable_signed_char+set}" = set; then
10594 enableval="$enable_signed_char"
10595 with_signed_char=$enableval
10597 with_signed_char=no
10599 echo "$as_me:10599: result: $with_signed_char" >&5
10600 echo "${ECHO_T}$with_signed_char" >&6
10601 test "$with_signed_char" != yes && NCURSES_SBOOL="char"
10603 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
10604 echo "$as_me:10604: checking if you want SIGWINCH handler" >&5
10605 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
10607 # Check whether --enable-sigwinch or --disable-sigwinch was given.
10608 if test "${enable_sigwinch+set}" = set; then
10609 enableval="$enable_sigwinch"
10610 with_sigwinch=$enableval
10612 with_sigwinch=$with_ext_funcs
10614 echo "$as_me:10614: result: $with_sigwinch" >&5
10615 echo "${ECHO_T}$with_sigwinch" >&6
10616 test "$with_sigwinch" = yes && cat >>confdefs.h <<\EOF
10617 #define USE_SIGWINCH 1
10620 ### use option --enable-tcap-names to allow user to define new capabilities
10621 echo "$as_me:10621: checking if you want user-definable terminal capabilities like termcap" >&5
10622 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
10624 # Check whether --enable-tcap-names or --disable-tcap-names was given.
10625 if test "${enable_tcap_names+set}" = set; then
10626 enableval="$enable_tcap_names"
10627 with_tcap_names=$enableval
10629 with_tcap_names=$with_ext_funcs
10631 echo "$as_me:10631: result: $with_tcap_names" >&5
10632 echo "${ECHO_T}$with_tcap_names" >&6
10634 test "$with_tcap_names" = yes && NCURSES_XNAMES=1
10636 ###############################################################################
10637 # These options are relatively safe to experiment with.
10639 echo "$as_me:10639: checking if you want all development code" >&5
10640 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
10642 # Check whether --with-develop or --without-develop was given.
10643 if test "${with_develop+set}" = set; then
10644 withval="$with_develop"
10645 with_develop=$withval
10649 echo "$as_me:10649: result: $with_develop" >&5
10650 echo "${ECHO_T}$with_develop" >&6
10652 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
10653 echo "$as_me:10653: checking if you want hard-tabs code" >&5
10654 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
10656 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
10657 if test "${enable_hard_tabs+set}" = set; then
10658 enableval="$enable_hard_tabs"
10661 enable_hard_tabs=$with_develop
10663 echo "$as_me:10663: result: $enable_hard_tabs" >&5
10664 echo "${ECHO_T}$enable_hard_tabs" >&6
10665 test "$enable_hard_tabs" = yes && cat >>confdefs.h <<\EOF
10666 #define USE_HARD_TABS 1
10669 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
10670 echo "$as_me:10670: checking if you want limited support for xmc" >&5
10671 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
10673 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
10674 if test "${enable_xmc_glitch+set}" = set; then
10675 enableval="$enable_xmc_glitch"
10678 enable_xmc_glitch=$with_develop
10680 echo "$as_me:10680: result: $enable_xmc_glitch" >&5
10681 echo "${ECHO_T}$enable_xmc_glitch" >&6
10682 test "$enable_xmc_glitch" = yes && cat >>confdefs.h <<\EOF
10683 #define USE_XMC_SUPPORT 1
10686 ###############################################################################
10687 # These are just experimental, probably should not be in a package:
10689 echo "$as_me:10689: checking if you do not want to assume colors are white-on-black" >&5
10690 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
10692 # Check whether --enable-assumed-color or --disable-assumed-color was given.
10693 if test "${enable_assumed_color+set}" = set; then
10694 enableval="$enable_assumed_color"
10695 with_assumed_color=$enableval
10697 with_assumed_color=yes
10699 echo "$as_me:10699: result: $with_assumed_color" >&5
10700 echo "${ECHO_T}$with_assumed_color" >&6
10701 test "$with_assumed_color" = yes && cat >>confdefs.h <<\EOF
10702 #define USE_ASSUMED_COLOR 1
10705 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
10706 echo "$as_me:10706: checking if you want hashmap scrolling-optimization code" >&5
10707 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
10709 # Check whether --enable-hashmap or --disable-hashmap was given.
10710 if test "${enable_hashmap+set}" = set; then
10711 enableval="$enable_hashmap"
10712 with_hashmap=$enableval
10716 echo "$as_me:10716: result: $with_hashmap" >&5
10717 echo "${ECHO_T}$with_hashmap" >&6
10718 test "$with_hashmap" = yes && cat >>confdefs.h <<\EOF
10719 #define USE_HASHMAP 1
10722 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
10723 echo "$as_me:10723: checking if you want colorfgbg code" >&5
10724 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
10726 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
10727 if test "${enable_colorfgbg+set}" = set; then
10728 enableval="$enable_colorfgbg"
10729 with_colorfgbg=$enableval
10733 echo "$as_me:10733: result: $with_colorfgbg" >&5
10734 echo "${ECHO_T}$with_colorfgbg" >&6
10735 test "$with_colorfgbg" = yes && cat >>confdefs.h <<\EOF
10736 #define USE_COLORFGBG 1
10739 ### use option --enable-interop to turn on use of bindings used for interop
10740 echo "$as_me:10740: checking if you want interop bindings" >&5
10741 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
10743 # Check whether --enable-interop or --disable-interop was given.
10744 if test "${enable_interop+set}" = set; then
10745 enableval="$enable_interop"
10746 with_exp_interop=$enableval
10748 with_exp_interop=no
10750 echo "$as_me:10750: result: $with_exp_interop" >&5
10751 echo "${ECHO_T}$with_exp_interop" >&6
10753 NCURSES_INTEROP_FUNCS=0
10754 test "$with_exp_interop" = yes && NCURSES_INTEROP_FUNCS=1
10756 # This is still experimental (20080329), but should ultimately be moved to
10757 # the script-block --with-normal, etc.
10759 echo "$as_me:10759: checking if you want to link with the pthread library" >&5
10760 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
10762 # Check whether --with-pthread or --without-pthread was given.
10763 if test "${with_pthread+set}" = set; then
10764 withval="$with_pthread"
10765 with_pthread=$withval
10769 echo "$as_me:10769: result: $with_pthread" >&5
10770 echo "${ECHO_T}$with_pthread" >&6
10772 if test "$with_pthread" != no ; then
10773 echo "$as_me:10773: checking for pthread.h" >&5
10774 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
10775 if test "${ac_cv_header_pthread_h+set}" = set; then
10776 echo $ECHO_N "(cached) $ECHO_C" >&6
10778 cat >conftest.$ac_ext <<_ACEOF
10779 #line 10779 "configure"
10780 #include "confdefs.h"
10781 #include <pthread.h>
10783 if { (eval echo "$as_me:10783: \"$ac_cpp conftest.$ac_ext\"") >&5
10784 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10786 egrep -v '^ *\+' conftest.er1 >conftest.err
10788 cat conftest.err >&5
10789 echo "$as_me:10789: \$? = $ac_status" >&5
10790 (exit $ac_status); } >/dev/null; then
10791 if test -s conftest.err; then
10792 ac_cpp_err=$ac_c_preproc_warn_flag
10799 if test -z "$ac_cpp_err"; then
10800 ac_cv_header_pthread_h=yes
10802 echo "$as_me: failed program was:" >&5
10803 cat conftest.$ac_ext >&5
10804 ac_cv_header_pthread_h=no
10806 rm -f conftest.err conftest.$ac_ext
10808 echo "$as_me:10808: result: $ac_cv_header_pthread_h" >&5
10809 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
10810 if test $ac_cv_header_pthread_h = yes; then
10812 cat >>confdefs.h <<\EOF
10813 #define HAVE_PTHREADS_H 1
10816 echo "$as_me:10816: checking if we can link with the pthread library" >&5
10817 echo $ECHO_N "checking if we can link with the pthread library... $ECHO_C" >&6
10818 cf_save_LIBS="$LIBS"
10819 LIBS="-lpthread $LIBS"
10820 cat >conftest.$ac_ext <<_ACEOF
10821 #line 10821 "configure"
10822 #include "confdefs.h"
10824 #include <pthread.h>
10830 int rc = pthread_create(0,0,0,0);
10836 rm -f conftest.$ac_objext conftest$ac_exeext
10837 if { (eval echo "$as_me:10837: \"$ac_link\"") >&5
10838 (eval $ac_link) 2>&5
10840 echo "$as_me:10840: \$? = $ac_status" >&5
10841 (exit $ac_status); } &&
10842 { ac_try='test -s conftest$ac_exeext'
10843 { (eval echo "$as_me:10843: \"$ac_try\"") >&5
10844 (eval $ac_try) 2>&5
10846 echo "$as_me:10846: \$? = $ac_status" >&5
10847 (exit $ac_status); }; }; then
10850 echo "$as_me: failed program was:" >&5
10851 cat conftest.$ac_ext >&5
10854 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10855 LIBS="$cf_save_LIBS"
10856 echo "$as_me:10856: result: $with_pthread" >&5
10857 echo "${ECHO_T}$with_pthread" >&6
10859 if test "$with_pthread" = yes ; then
10860 LIBS="-lpthread $LIBS"
10861 cat >>confdefs.h <<\EOF
10862 #define HAVE_LIBPTHREADS 1
10866 { { echo "$as_me:10866: error: Cannot link with pthread library" >&5
10867 echo "$as_me: error: Cannot link with pthread library" >&2;}
10868 { (exit 1); exit 1; }; }
10875 echo "$as_me:10875: checking if you want to allow EINTR in wgetch with pthreads" >&5
10876 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
10878 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
10879 if test "${enable_pthreads_eintr+set}" = set; then
10880 enableval="$enable_pthreads_eintr"
10881 use_pthreads_eintr=$enableval
10883 use_pthreads_eintr=no
10885 echo "$as_me:10885: result: $use_pthreads_eintr" >&5
10886 echo "${ECHO_T}$use_pthreads_eintr" >&6
10887 if test $use_pthreads_eintr = yes ; then
10888 cat >>confdefs.h <<\EOF
10889 #define USE_PTHREADS_EINTR 1
10894 echo "$as_me:10894: checking if you want to use weak-symbols for pthreads" >&5
10895 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
10897 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
10898 if test "${enable_weak_symbols+set}" = set; then
10899 enableval="$enable_weak_symbols"
10900 use_weak_symbols=$enableval
10902 use_weak_symbols=no
10904 echo "$as_me:10904: result: $use_weak_symbols" >&5
10905 echo "${ECHO_T}$use_weak_symbols" >&6
10906 if test "$use_weak_symbols" = yes ; then
10908 echo "$as_me:10908: checking if $CC supports weak symbols" >&5
10909 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
10910 if test "${cf_cv_weak_symbols+set}" = set; then
10911 echo $ECHO_N "(cached) $ECHO_C" >&6
10914 cat >conftest.$ac_ext <<_ACEOF
10915 #line 10915 "configure"
10916 #include "confdefs.h"
10923 #if defined(__GNUC__)
10924 # if defined __USE_ISOC99
10925 # define _cat_pragma(exp) _Pragma(#exp)
10926 # define _weak_pragma(exp) _cat_pragma(weak name)
10928 # define _weak_pragma(exp)
10930 # define _declare(name) __extension__ extern __typeof__(name) name
10931 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
10934 weak_symbol(fopen);
10940 rm -f conftest.$ac_objext
10941 if { (eval echo "$as_me:10941: \"$ac_compile\"") >&5
10942 (eval $ac_compile) 2>&5
10944 echo "$as_me:10944: \$? = $ac_status" >&5
10945 (exit $ac_status); } &&
10946 { ac_try='test -s conftest.$ac_objext'
10947 { (eval echo "$as_me:10947: \"$ac_try\"") >&5
10948 (eval $ac_try) 2>&5
10950 echo "$as_me:10950: \$? = $ac_status" >&5
10951 (exit $ac_status); }; }; then
10952 cf_cv_weak_symbols=yes
10954 echo "$as_me: failed program was:" >&5
10955 cat conftest.$ac_ext >&5
10956 cf_cv_weak_symbols=no
10958 rm -f conftest.$ac_objext conftest.$ac_ext
10961 echo "$as_me:10961: result: $cf_cv_weak_symbols" >&5
10962 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
10965 cf_cv_weak_symbols=no
10968 if test $cf_cv_weak_symbols = yes ; then
10969 cat >>confdefs.h <<\EOF
10970 #define USE_WEAK_SYMBOLS 1
10976 if test "$with_pthread" = "yes" ; then
10977 cat >>confdefs.h <<\EOF
10978 #define USE_PTHREADS 1
10981 enable_reentrant=yes
10982 if test $cf_cv_weak_symbols = yes ; then
10987 # Reentrant code has to be opaque; there's little advantage to making ncurses
10988 # opaque outside of that, so there is no --enable-opaque option. We can use
10989 # this option without --with-pthreads, but this will be always set for
10991 echo "$as_me:10991: checking if you want experimental reentrant code" >&5
10992 echo $ECHO_N "checking if you want experimental reentrant code... $ECHO_C" >&6
10994 # Check whether --enable-reentrant or --disable-reentrant was given.
10995 if test "${enable_reentrant+set}" = set; then
10996 enableval="$enable_reentrant"
10997 with_reentrant=$enableval
11001 echo "$as_me:11001: result: $with_reentrant" >&5
11002 echo "${ECHO_T}$with_reentrant" >&6
11003 if test "$with_reentrant" = yes ; then
11004 cf_cv_enable_reentrant=1
11005 cf_cv_enable_opaque="NCURSES_INTERNALS"
11008 if test $cf_cv_weak_symbols = yes ; then
11010 # remove pthread library from $LIBS
11011 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
11013 TEST_LIBS="-lpthread $TEST_LIBS"
11014 TEST_LIBS2="-lpthread $TEST_LIBS2"
11016 LIB_SUFFIX="t${LIB_SUFFIX}"
11017 cat >>confdefs.h <<\EOF
11018 #define USE_REENTRANT 1
11021 if test "${with_abi_version+set}" != set; then
11022 case $cf_cv_rel_version in
11024 cf_cv_rel_version=6.0
11025 cf_cv_abi_version=6
11026 { echo "$as_me:11026: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
11027 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
11033 cf_cv_enable_reentrant=0
11034 cf_cv_enable_opaque="NCURSES_OPAQUE"
11036 NCURSES_SIZE_T=short
11039 ### Allow using a different wrap-prefix
11040 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
11041 echo "$as_me:11041: checking for prefix used to wrap public variables" >&5
11042 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
11044 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
11045 if test "${with_wrap_prefix+set}" = set; then
11046 withval="$with_wrap_prefix"
11047 NCURSES_WRAP_PREFIX=$withval
11049 NCURSES_WRAP_PREFIX=_nc_
11051 echo "$as_me:11051: result: $NCURSES_WRAP_PREFIX" >&5
11052 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
11054 NCURSES_WRAP_PREFIX=_nc_
11057 cat >>confdefs.h <<EOF
11058 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
11061 echo "$as_me:11061: checking if you want experimental safe-sprintf code" >&5
11062 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
11064 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
11065 if test "${enable_safe_sprintf+set}" = set; then
11066 enableval="$enable_safe_sprintf"
11067 with_safe_sprintf=$enableval
11069 with_safe_sprintf=no
11071 echo "$as_me:11071: result: $with_safe_sprintf" >&5
11072 echo "${ECHO_T}$with_safe_sprintf" >&6
11073 test "$with_safe_sprintf" = yes && cat >>confdefs.h <<\EOF
11074 #define USE_SAFE_SPRINTF 1
11077 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
11078 # when hashmap is used scroll hints are useless
11079 if test "$with_hashmap" = no ; then
11080 echo "$as_me:11080: checking if you want to experiment without scrolling-hints code" >&5
11081 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
11083 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
11084 if test "${enable_scroll_hints+set}" = set; then
11085 enableval="$enable_scroll_hints"
11086 with_scroll_hints=$enableval
11088 with_scroll_hints=yes
11090 echo "$as_me:11090: result: $with_scroll_hints" >&5
11091 echo "${ECHO_T}$with_scroll_hints" >&6
11092 test "$with_scroll_hints" = yes && cat >>confdefs.h <<\EOF
11093 #define USE_SCROLL_HINTS 1
11098 echo "$as_me:11098: checking if you want experimental wgetch-events code" >&5
11099 echo $ECHO_N "checking if you want experimental wgetch-events code... $ECHO_C" >&6
11101 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
11102 if test "${enable_wgetch_events+set}" = set; then
11103 enableval="$enable_wgetch_events"
11104 with_wgetch_events=$enableval
11106 with_wgetch_events=no
11108 echo "$as_me:11108: result: $with_wgetch_events" >&5
11109 echo "${ECHO_T}$with_wgetch_events" >&6
11110 test "$with_wgetch_events" = yes && cat >>confdefs.h <<\EOF
11111 #define NCURSES_WGETCH_EVENTS 1
11114 ###############################################################################
11116 ### use option --disable-echo to suppress full display compiling commands
11117 echo "$as_me:11117: checking if you want to display full commands during build" >&5
11118 echo $ECHO_N "checking if you want to display full commands during build... $ECHO_C" >&6
11120 # Check whether --enable-echo or --disable-echo was given.
11121 if test "${enable_echo+set}" = set; then
11122 enableval="$enable_echo"
11123 with_echo=$enableval
11127 if test "$with_echo" = yes; then
11130 ECHO_LINK='@ echo linking $@ ... ;'
11131 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
11132 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
11134 echo "$as_me:11134: result: $with_echo" >&5
11135 echo "${ECHO_T}$with_echo" >&6
11137 ### use option --enable-warnings to turn on all gcc warnings
11138 echo "$as_me:11138: checking if you want to see compiler warnings" >&5
11139 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
11141 # Check whether --enable-warnings or --disable-warnings was given.
11142 if test "${enable_warnings+set}" = set; then
11143 enableval="$enable_warnings"
11144 with_warnings=$enableval
11146 echo "$as_me:11146: result: $with_warnings" >&5
11147 echo "${ECHO_T}$with_warnings" >&6
11149 if test "x$with_warnings" = "xyes"; then
11151 ADAFLAGS="$ADAFLAGS -gnatg"
11155 if test "$GCC" = yes ; then
11158 echo "$as_me:11158: checking if this is really Intel C compiler" >&5
11159 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
11160 cf_save_CFLAGS="$CFLAGS"
11161 CFLAGS="$CFLAGS -no-gcc"
11162 cat >conftest.$ac_ext <<_ACEOF
11163 #line 11163 "configure"
11164 #include "confdefs.h"
11170 #ifdef __INTEL_COMPILER
11179 rm -f conftest.$ac_objext
11180 if { (eval echo "$as_me:11180: \"$ac_compile\"") >&5
11181 (eval $ac_compile) 2>&5
11183 echo "$as_me:11183: \$? = $ac_status" >&5
11184 (exit $ac_status); } &&
11185 { ac_try='test -s conftest.$ac_objext'
11186 { (eval echo "$as_me:11186: \"$ac_try\"") >&5
11187 (eval $ac_try) 2>&5
11189 echo "$as_me:11189: \$? = $ac_status" >&5
11190 (exit $ac_status); }; }; then
11192 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
11195 echo "$as_me: failed program was:" >&5
11196 cat conftest.$ac_ext >&5
11198 rm -f conftest.$ac_objext conftest.$ac_ext
11199 CFLAGS="$cf_save_CFLAGS"
11200 echo "$as_me:11200: result: $INTEL_COMPILER" >&5
11201 echo "${ECHO_T}$INTEL_COMPILER" >&6
11206 cat > conftest.$ac_ext <<EOF
11207 #line 11207 "${as_me-configure}"
11208 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
11211 if test "$INTEL_COMPILER" = yes
11213 # The "-wdXXX" options suppress warnings:
11214 # remark #1419: external declaration in primary source file
11215 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
11216 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
11217 # remark #193: zero used for undefined preprocessing identifier
11218 # remark #593: variable "curs_sb_left_arrow" was set but never used
11219 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
11220 # remark #869: parameter "tw" was never referenced
11221 # remark #981: operands are evaluated in unspecified order
11222 # warning #279: controlling expression is constant
11224 { echo "$as_me:11224: checking for $CC warning options..." >&5
11225 echo "$as_me: checking for $CC warning options..." >&6;}
11226 cf_save_CFLAGS="$CFLAGS"
11227 EXTRA_CFLAGS="-Wall"
11239 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
11240 if { (eval echo "$as_me:11240: \"$ac_compile\"") >&5
11241 (eval $ac_compile) 2>&5
11243 echo "$as_me:11243: \$? = $ac_status" >&5
11244 (exit $ac_status); }; then
11245 test -n "$verbose" && echo "$as_me:11245: result: ... -$cf_opt" >&5
11246 echo "${ECHO_T}... -$cf_opt" >&6
11247 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
11250 CFLAGS="$cf_save_CFLAGS"
11252 elif test "$GCC" = yes
11254 { echo "$as_me:11254: checking for $CC warning options..." >&5
11255 echo "$as_me: checking for $CC warning options..." >&6;}
11256 cf_save_CFLAGS="$CFLAGS"
11259 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
11260 for cf_opt in W Wall \
11261 Wbad-function-cast \
11265 Wmissing-declarations \
11266 Wmissing-prototypes \
11270 Wstrict-prototypes \
11271 Wundef $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum
11273 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
11274 if { (eval echo "$as_me:11274: \"$ac_compile\"") >&5
11275 (eval $ac_compile) 2>&5
11277 echo "$as_me:11277: \$? = $ac_status" >&5
11278 (exit $ac_status); }; then
11279 test -n "$verbose" && echo "$as_me:11279: result: ... -$cf_opt" >&5
11280 echo "${ECHO_T}... -$cf_opt" >&6
11281 case $cf_opt in #(vi
11283 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
11286 case $GCC_VERSION in
11288 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
11290 echo "${as_me-configure}:11290: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
11296 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
11299 CFLAGS="$cf_save_CFLAGS"
11303 if test "$cf_with_cxx" = yes ; then
11307 if test "$GCC" = yes ; then
11310 echo "$as_me:11310: checking if this is really Intel C++ compiler" >&5
11311 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
11312 cf_save_CFLAGS="$CXXFLAGS"
11313 CXXFLAGS="$CXXFLAGS -no-gcc"
11314 cat >conftest.$ac_ext <<_ACEOF
11315 #line 11315 "configure"
11316 #include "confdefs.h"
11322 #ifdef __INTEL_COMPILER
11331 rm -f conftest.$ac_objext
11332 if { (eval echo "$as_me:11332: \"$ac_compile\"") >&5
11333 (eval $ac_compile) 2>&5
11335 echo "$as_me:11335: \$? = $ac_status" >&5
11336 (exit $ac_status); } &&
11337 { ac_try='test -s conftest.$ac_objext'
11338 { (eval echo "$as_me:11338: \"$ac_try\"") >&5
11339 (eval $ac_try) 2>&5
11341 echo "$as_me:11341: \$? = $ac_status" >&5
11342 (exit $ac_status); }; }; then
11343 INTEL_CPLUSPLUS=yes
11344 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
11347 echo "$as_me: failed program was:" >&5
11348 cat conftest.$ac_ext >&5
11350 rm -f conftest.$ac_objext conftest.$ac_ext
11351 CXXFLAGS="$cf_save_CFLAGS"
11352 echo "$as_me:11352: result: $INTEL_CPLUSPLUS" >&5
11353 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
11359 ac_cpp='$CXXCPP $CPPFLAGS'
11360 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11361 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11362 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11363 ac_main_return=return
11365 cat > conftest.$ac_ext <<EOF
11366 #line 11366 "configure"
11367 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
11370 if test "$INTEL_CPLUSPLUS" = yes
11372 # The "-wdXXX" options suppress warnings:
11373 # remark #1419: external declaration in primary source file
11374 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
11375 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
11376 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
11377 # remark #193: zero used for undefined preprocessing identifier
11378 # remark #593: variable "curs_sb_left_arrow" was set but never used
11379 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
11380 # remark #869: parameter "tw" was never referenced
11381 # remark #981: operands are evaluated in unspecified order
11382 # warning #269: invalid format string conversion
11384 { echo "$as_me:11384: checking for $CC warning options..." >&5
11385 echo "$as_me: checking for $CC warning options..." >&6;}
11386 cf_save_CXXFLAGS="$CXXFLAGS"
11387 EXTRA_CXXFLAGS="-Wall"
11400 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
11401 if { (eval echo "$as_me:11401: \"$ac_compile\"") >&5
11402 (eval $ac_compile) 2>&5
11404 echo "$as_me:11404: \$? = $ac_status" >&5
11405 (exit $ac_status); }; then
11406 test -n "$verbose" && echo "$as_me:11406: result: ... -$cf_opt" >&5
11407 echo "${ECHO_T}... -$cf_opt" >&6
11408 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
11411 CXXFLAGS="$cf_save_CXXFLAGS"
11413 elif test "$GXX" = yes
11415 { echo "$as_me:11415: checking for $CXX warning options..." >&5
11416 echo "$as_me: checking for $CXX warning options..." >&6;}
11417 cf_save_CXXFLAGS="$CXXFLAGS"
11418 EXTRA_CXXFLAGS="-W -Wall"
11419 cf_gxx_extra_warnings=""
11420 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
11421 case "$GCC_VERSION" in
11425 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
11431 Woverloaded-virtual \
11437 Wmissing-prototypes \
11440 Wstrict-prototypes \
11441 Wundef $cf_gxx_extra_warnings Wno-unused
11443 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
11444 if { (eval echo "$as_me:11444: \"$ac_compile\"") >&5
11445 (eval $ac_compile) 2>&5
11447 echo "$as_me:11447: \$? = $ac_status" >&5
11448 (exit $ac_status); }; then
11449 test -n "$verbose" && echo "$as_me:11449: result: ... -$cf_opt" >&5
11450 echo "${ECHO_T}... -$cf_opt" >&6
11451 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
11453 test -n "$verbose" && echo "$as_me:11453: result: ... no -$cf_opt" >&5
11454 echo "${ECHO_T}... no -$cf_opt" >&6
11457 CXXFLAGS="$cf_save_CXXFLAGS"
11462 ac_cpp='$CPP $CPPFLAGS'
11463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11466 ac_main_return=return
11471 if test "$GCC" = yes
11473 cat > conftest.i <<EOF
11475 #define GCC_PRINTF 0
11478 #define GCC_SCANF 0
11480 #ifndef GCC_NORETURN
11481 #define GCC_NORETURN /* nothing */
11484 #define GCC_UNUSED /* nothing */
11487 if test "$GCC" = yes
11489 { echo "$as_me:11489: checking for $CC __attribute__ directives..." >&5
11490 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
11491 cat > conftest.$ac_ext <<EOF
11492 #line 11492 "${as_me-configure}"
11493 #include "confdefs.h"
11494 #include "conftest.h"
11495 #include "conftest.i"
11497 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
11499 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
11502 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
11504 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
11506 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
11507 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
11508 extern void foo(void) GCC_NORETURN;
11509 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
11511 cf_printf_attribute=no
11512 cf_scanf_attribute=no
11513 for cf_attribute in scanf printf unused noreturn
11516 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
11518 cf_directive="__attribute__(($cf_attribute))"
11519 echo "checking for $CC $cf_directive" 1>&5
11521 case $cf_attribute in #(vi
11523 cf_printf_attribute=yes
11524 cat >conftest.h <<EOF
11525 #define GCC_$cf_ATTRIBUTE 1
11529 cf_scanf_attribute=yes
11530 cat >conftest.h <<EOF
11531 #define GCC_$cf_ATTRIBUTE 1
11535 cat >conftest.h <<EOF
11536 #define GCC_$cf_ATTRIBUTE $cf_directive
11541 if { (eval echo "$as_me:11541: \"$ac_compile\"") >&5
11542 (eval $ac_compile) 2>&5
11544 echo "$as_me:11544: \$? = $ac_status" >&5
11545 (exit $ac_status); }; then
11546 test -n "$verbose" && echo "$as_me:11546: result: ... $cf_attribute" >&5
11547 echo "${ECHO_T}... $cf_attribute" >&6
11548 cat conftest.h >>confdefs.h
11549 case $cf_attribute in #(vi
11551 if test "$cf_printf_attribute" = no ; then
11552 cat >>confdefs.h <<EOF
11553 #define GCC_PRINTFLIKE(fmt,var) /* nothing */
11556 cat >>confdefs.h <<EOF
11557 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
11562 if test "$cf_scanf_attribute" = no ; then
11563 cat >>confdefs.h <<EOF
11564 #define GCC_SCANFLIKE(fmt,var) /* nothing */
11567 cat >>confdefs.h <<EOF
11568 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
11576 fgrep define conftest.i >>confdefs.h
11581 ### use option --enable-assertions to turn on generation of assertion code
11582 echo "$as_me:11582: checking if you want to enable runtime assertions" >&5
11583 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
11585 # Check whether --enable-assertions or --disable-assertions was given.
11586 if test "${enable_assertions+set}" = set; then
11587 enableval="$enable_assertions"
11588 with_assertions=$enableval
11592 echo "$as_me:11592: result: $with_assertions" >&5
11593 echo "${ECHO_T}$with_assertions" >&6
11596 if test "$with_assertions" = no
11598 cat >>confdefs.h <<\EOF
11602 CPPFLAGS="$CPPFLAGS -DNDEBUG"
11605 ADAFLAGS="$ADAFLAGS -gnata"
11610 ### use option --disable-leaks to suppress "permanent" leaks, for testing
11612 echo "$as_me:11612: checking if you want to use dmalloc for testing" >&5
11613 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
11615 # Check whether --with-dmalloc or --without-dmalloc was given.
11616 if test "${with_dmalloc+set}" = set; then
11617 withval="$with_dmalloc"
11618 cat >>confdefs.h <<\EOF
11619 #define USE_DMALLOC 1
11622 : ${with_cflags:=-g}
11623 : ${with_no_leaks:=yes}
11628 echo "$as_me:11628: result: ${with_dmalloc:-no}" >&5
11629 echo "${ECHO_T}${with_dmalloc:-no}" >&6
11631 case .$with_cflags in #(vi
11633 case .$CFLAGS in #(vi
11641 cf_new_extra_cppflags=
11643 for cf_add_cflags in -g
11645 case $cf_fix_cppflags in
11647 case $cf_add_cflags in #(vi
11648 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11649 case $cf_add_cflags in
11651 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11653 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11654 && test -z "${cf_tst_cflags}" \
11655 && cf_fix_cppflags=yes
11657 if test $cf_fix_cppflags = yes ; then
11658 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11660 elif test "${cf_tst_cflags}" = "\"'" ; then
11661 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11666 case "$CPPFLAGS" in
11667 *$cf_add_cflags) #(vi
11670 case $cf_add_cflags in #(vi
11672 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11674 CPPFLAGS=`echo "$CPPFLAGS" | \
11675 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11676 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11680 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11685 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11690 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11692 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11694 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11695 && test -z "${cf_tst_cflags}" \
11696 && cf_fix_cppflags=no
11701 if test -n "$cf_new_cflags" ; then
11703 CFLAGS="$CFLAGS $cf_new_cflags"
11706 if test -n "$cf_new_cppflags" ; then
11708 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11711 if test -n "$cf_new_extra_cppflags" ; then
11713 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11721 if test "$with_dmalloc" = yes ; then
11722 echo "$as_me:11722: checking for dmalloc.h" >&5
11723 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
11724 if test "${ac_cv_header_dmalloc_h+set}" = set; then
11725 echo $ECHO_N "(cached) $ECHO_C" >&6
11727 cat >conftest.$ac_ext <<_ACEOF
11728 #line 11728 "configure"
11729 #include "confdefs.h"
11730 #include <dmalloc.h>
11732 if { (eval echo "$as_me:11732: \"$ac_cpp conftest.$ac_ext\"") >&5
11733 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11735 egrep -v '^ *\+' conftest.er1 >conftest.err
11737 cat conftest.err >&5
11738 echo "$as_me:11738: \$? = $ac_status" >&5
11739 (exit $ac_status); } >/dev/null; then
11740 if test -s conftest.err; then
11741 ac_cpp_err=$ac_c_preproc_warn_flag
11748 if test -z "$ac_cpp_err"; then
11749 ac_cv_header_dmalloc_h=yes
11751 echo "$as_me: failed program was:" >&5
11752 cat conftest.$ac_ext >&5
11753 ac_cv_header_dmalloc_h=no
11755 rm -f conftest.err conftest.$ac_ext
11757 echo "$as_me:11757: result: $ac_cv_header_dmalloc_h" >&5
11758 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
11759 if test $ac_cv_header_dmalloc_h = yes; then
11761 echo "$as_me:11761: checking for dmalloc_debug in -ldmalloc" >&5
11762 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
11763 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
11764 echo $ECHO_N "(cached) $ECHO_C" >&6
11766 ac_check_lib_save_LIBS=$LIBS
11767 LIBS="-ldmalloc $LIBS"
11768 cat >conftest.$ac_ext <<_ACEOF
11769 #line 11769 "configure"
11770 #include "confdefs.h"
11772 /* Override any gcc2 internal prototype to avoid an error. */
11776 /* We use char because int might match the return type of a gcc2
11777 builtin and then its argument prototype would still apply. */
11778 char dmalloc_debug ();
11787 rm -f conftest.$ac_objext conftest$ac_exeext
11788 if { (eval echo "$as_me:11788: \"$ac_link\"") >&5
11789 (eval $ac_link) 2>&5
11791 echo "$as_me:11791: \$? = $ac_status" >&5
11792 (exit $ac_status); } &&
11793 { ac_try='test -s conftest$ac_exeext'
11794 { (eval echo "$as_me:11794: \"$ac_try\"") >&5
11795 (eval $ac_try) 2>&5
11797 echo "$as_me:11797: \$? = $ac_status" >&5
11798 (exit $ac_status); }; }; then
11799 ac_cv_lib_dmalloc_dmalloc_debug=yes
11801 echo "$as_me: failed program was:" >&5
11802 cat conftest.$ac_ext >&5
11803 ac_cv_lib_dmalloc_dmalloc_debug=no
11805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11806 LIBS=$ac_check_lib_save_LIBS
11808 echo "$as_me:11808: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
11809 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
11810 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
11811 cat >>confdefs.h <<EOF
11812 #define HAVE_LIBDMALLOC 1
11815 LIBS="-ldmalloc $LIBS"
11823 echo "$as_me:11823: checking if you want to use dbmalloc for testing" >&5
11824 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
11826 # Check whether --with-dbmalloc or --without-dbmalloc was given.
11827 if test "${with_dbmalloc+set}" = set; then
11828 withval="$with_dbmalloc"
11829 cat >>confdefs.h <<\EOF
11830 #define USE_DBMALLOC 1
11833 : ${with_cflags:=-g}
11834 : ${with_no_leaks:=yes}
11839 echo "$as_me:11839: result: ${with_dbmalloc:-no}" >&5
11840 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
11842 case .$with_cflags in #(vi
11844 case .$CFLAGS in #(vi
11852 cf_new_extra_cppflags=
11854 for cf_add_cflags in -g
11856 case $cf_fix_cppflags in
11858 case $cf_add_cflags in #(vi
11859 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11860 case $cf_add_cflags in
11862 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11864 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11865 && test -z "${cf_tst_cflags}" \
11866 && cf_fix_cppflags=yes
11868 if test $cf_fix_cppflags = yes ; then
11869 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11871 elif test "${cf_tst_cflags}" = "\"'" ; then
11872 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11877 case "$CPPFLAGS" in
11878 *$cf_add_cflags) #(vi
11881 case $cf_add_cflags in #(vi
11883 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11885 CPPFLAGS=`echo "$CPPFLAGS" | \
11886 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11887 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11891 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11896 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11901 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11903 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11905 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11906 && test -z "${cf_tst_cflags}" \
11907 && cf_fix_cppflags=no
11912 if test -n "$cf_new_cflags" ; then
11914 CFLAGS="$CFLAGS $cf_new_cflags"
11917 if test -n "$cf_new_cppflags" ; then
11919 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11922 if test -n "$cf_new_extra_cppflags" ; then
11924 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11932 if test "$with_dbmalloc" = yes ; then
11933 echo "$as_me:11933: checking for dbmalloc.h" >&5
11934 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
11935 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
11936 echo $ECHO_N "(cached) $ECHO_C" >&6
11938 cat >conftest.$ac_ext <<_ACEOF
11939 #line 11939 "configure"
11940 #include "confdefs.h"
11941 #include <dbmalloc.h>
11943 if { (eval echo "$as_me:11943: \"$ac_cpp conftest.$ac_ext\"") >&5
11944 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11946 egrep -v '^ *\+' conftest.er1 >conftest.err
11948 cat conftest.err >&5
11949 echo "$as_me:11949: \$? = $ac_status" >&5
11950 (exit $ac_status); } >/dev/null; then
11951 if test -s conftest.err; then
11952 ac_cpp_err=$ac_c_preproc_warn_flag
11959 if test -z "$ac_cpp_err"; then
11960 ac_cv_header_dbmalloc_h=yes
11962 echo "$as_me: failed program was:" >&5
11963 cat conftest.$ac_ext >&5
11964 ac_cv_header_dbmalloc_h=no
11966 rm -f conftest.err conftest.$ac_ext
11968 echo "$as_me:11968: result: $ac_cv_header_dbmalloc_h" >&5
11969 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
11970 if test $ac_cv_header_dbmalloc_h = yes; then
11972 echo "$as_me:11972: checking for debug_malloc in -ldbmalloc" >&5
11973 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
11974 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
11975 echo $ECHO_N "(cached) $ECHO_C" >&6
11977 ac_check_lib_save_LIBS=$LIBS
11978 LIBS="-ldbmalloc $LIBS"
11979 cat >conftest.$ac_ext <<_ACEOF
11980 #line 11980 "configure"
11981 #include "confdefs.h"
11983 /* Override any gcc2 internal prototype to avoid an error. */
11987 /* We use char because int might match the return type of a gcc2
11988 builtin and then its argument prototype would still apply. */
11989 char debug_malloc ();
11998 rm -f conftest.$ac_objext conftest$ac_exeext
11999 if { (eval echo "$as_me:11999: \"$ac_link\"") >&5
12000 (eval $ac_link) 2>&5
12002 echo "$as_me:12002: \$? = $ac_status" >&5
12003 (exit $ac_status); } &&
12004 { ac_try='test -s conftest$ac_exeext'
12005 { (eval echo "$as_me:12005: \"$ac_try\"") >&5
12006 (eval $ac_try) 2>&5
12008 echo "$as_me:12008: \$? = $ac_status" >&5
12009 (exit $ac_status); }; }; then
12010 ac_cv_lib_dbmalloc_debug_malloc=yes
12012 echo "$as_me: failed program was:" >&5
12013 cat conftest.$ac_ext >&5
12014 ac_cv_lib_dbmalloc_debug_malloc=no
12016 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12017 LIBS=$ac_check_lib_save_LIBS
12019 echo "$as_me:12019: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
12020 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
12021 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
12022 cat >>confdefs.h <<EOF
12023 #define HAVE_LIBDBMALLOC 1
12026 LIBS="-ldbmalloc $LIBS"
12034 echo "$as_me:12034: checking if you want to use valgrind for testing" >&5
12035 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
12037 # Check whether --with-valgrind or --without-valgrind was given.
12038 if test "${with_valgrind+set}" = set; then
12039 withval="$with_valgrind"
12040 cat >>confdefs.h <<\EOF
12041 #define USE_VALGRIND 1
12044 : ${with_cflags:=-g}
12045 : ${with_no_leaks:=yes}
12050 echo "$as_me:12050: result: ${with_valgrind:-no}" >&5
12051 echo "${ECHO_T}${with_valgrind:-no}" >&6
12053 case .$with_cflags in #(vi
12055 case .$CFLAGS in #(vi
12063 cf_new_extra_cppflags=
12065 for cf_add_cflags in -g
12067 case $cf_fix_cppflags in
12069 case $cf_add_cflags in #(vi
12070 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
12071 case $cf_add_cflags in
12073 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12075 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12076 && test -z "${cf_tst_cflags}" \
12077 && cf_fix_cppflags=yes
12079 if test $cf_fix_cppflags = yes ; then
12080 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12082 elif test "${cf_tst_cflags}" = "\"'" ; then
12083 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12088 case "$CPPFLAGS" in
12089 *$cf_add_cflags) #(vi
12092 case $cf_add_cflags in #(vi
12094 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12096 CPPFLAGS=`echo "$CPPFLAGS" | \
12097 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12098 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12102 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12107 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12112 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12114 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12116 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12117 && test -z "${cf_tst_cflags}" \
12118 && cf_fix_cppflags=no
12123 if test -n "$cf_new_cflags" ; then
12125 CFLAGS="$CFLAGS $cf_new_cflags"
12128 if test -n "$cf_new_cppflags" ; then
12130 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12133 if test -n "$cf_new_extra_cppflags" ; then
12135 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12143 echo "$as_me:12143: checking if you want to perform memory-leak testing" >&5
12144 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
12146 # Check whether --enable-leaks or --disable-leaks was given.
12147 if test "${enable_leaks+set}" = set; then
12148 enableval="$enable_leaks"
12149 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
12151 : ${with_no_leaks:=no}
12153 echo "$as_me:12153: result: $with_no_leaks" >&5
12154 echo "${ECHO_T}$with_no_leaks" >&6
12156 if test "$with_no_leaks" = yes ; then
12157 cat >>confdefs.h <<\EOF
12161 cat >>confdefs.h <<\EOF
12162 #define YY_NO_LEAKS 1
12167 cat >>confdefs.h <<\EOF
12168 #define HAVE_NC_ALLOC_H 1
12171 ### use option --enable-expanded to generate certain macros as functions
12173 # Check whether --enable-expanded or --disable-expanded was given.
12174 if test "${enable_expanded+set}" = set; then
12175 enableval="$enable_expanded"
12176 test "$enableval" = yes && cat >>confdefs.h <<\EOF
12177 #define NCURSES_EXPANDED 1
12182 ### use option --disable-macros to suppress macros in favor of functions
12184 # Check whether --enable-macros or --disable-macros was given.
12185 if test "${enable_macros+set}" = set; then
12186 enableval="$enable_macros"
12187 test "$enableval" = no && cat >>confdefs.h <<\EOF
12188 #define NCURSES_NOMACROS 1
12193 # Normally we only add trace() to the debug-library. Allow this to be
12194 # extended to all models of the ncurses library:
12196 case "$CFLAGS $CPPFLAGS" in
12202 echo "$as_me:12202: checking whether to add trace feature to all models" >&5
12203 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
12205 # Check whether --with-trace or --without-trace was given.
12206 if test "${with_trace+set}" = set; then
12207 withval="$with_trace"
12208 cf_with_trace=$withval
12210 cf_with_trace=$cf_all_traces
12212 echo "$as_me:12212: result: $cf_with_trace" >&5
12213 echo "${ECHO_T}$cf_with_trace" >&6
12215 if test "$cf_with_trace" = yes ; then
12222 cf_new_extra_cppflags=
12224 for cf_add_cflags in -DTRACE
12226 case $cf_fix_cppflags in
12228 case $cf_add_cflags in #(vi
12229 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
12230 case $cf_add_cflags in
12232 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12234 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12235 && test -z "${cf_tst_cflags}" \
12236 && cf_fix_cppflags=yes
12238 if test $cf_fix_cppflags = yes ; then
12239 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12241 elif test "${cf_tst_cflags}" = "\"'" ; then
12242 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12247 case "$CPPFLAGS" in
12248 *$cf_add_cflags) #(vi
12251 case $cf_add_cflags in #(vi
12253 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12255 CPPFLAGS=`echo "$CPPFLAGS" | \
12256 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12257 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12261 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12266 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12271 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12273 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12275 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12276 && test -z "${cf_tst_cflags}" \
12277 && cf_fix_cppflags=no
12282 if test -n "$cf_new_cflags" ; then
12284 CFLAGS="$CFLAGS $cf_new_cflags"
12287 if test -n "$cf_new_cppflags" ; then
12289 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12292 if test -n "$cf_new_extra_cppflags" ; then
12294 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12302 ### Checks for libraries.
12303 case $cf_cv_system_name in #(vi
12307 echo "$as_me:12307: checking for gettimeofday" >&5
12308 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
12309 if test "${ac_cv_func_gettimeofday+set}" = set; then
12310 echo $ECHO_N "(cached) $ECHO_C" >&6
12312 cat >conftest.$ac_ext <<_ACEOF
12313 #line 12313 "configure"
12314 #include "confdefs.h"
12315 /* System header to define __stub macros and hopefully few prototypes,
12316 which can conflict with char gettimeofday (); below. */
12317 #include <assert.h>
12318 /* Override any gcc2 internal prototype to avoid an error. */
12322 /* We use char because int might match the return type of a gcc2
12323 builtin and then its argument prototype would still apply. */
12324 char gettimeofday ();
12330 /* The GNU C library defines this for functions which it implements
12331 to always fail with ENOSYS. Some functions are actually named
12332 something starting with __ and the normal name is an alias. */
12333 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
12343 rm -f conftest.$ac_objext conftest$ac_exeext
12344 if { (eval echo "$as_me:12344: \"$ac_link\"") >&5
12345 (eval $ac_link) 2>&5
12347 echo "$as_me:12347: \$? = $ac_status" >&5
12348 (exit $ac_status); } &&
12349 { ac_try='test -s conftest$ac_exeext'
12350 { (eval echo "$as_me:12350: \"$ac_try\"") >&5
12351 (eval $ac_try) 2>&5
12353 echo "$as_me:12353: \$? = $ac_status" >&5
12354 (exit $ac_status); }; }; then
12355 ac_cv_func_gettimeofday=yes
12357 echo "$as_me: failed program was:" >&5
12358 cat conftest.$ac_ext >&5
12359 ac_cv_func_gettimeofday=no
12361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12363 echo "$as_me:12363: result: $ac_cv_func_gettimeofday" >&5
12364 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
12365 if test $ac_cv_func_gettimeofday = yes; then
12366 cat >>confdefs.h <<\EOF
12367 #define HAVE_GETTIMEOFDAY 1
12372 echo "$as_me:12372: checking for gettimeofday in -lbsd" >&5
12373 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
12374 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
12375 echo $ECHO_N "(cached) $ECHO_C" >&6
12377 ac_check_lib_save_LIBS=$LIBS
12379 cat >conftest.$ac_ext <<_ACEOF
12380 #line 12380 "configure"
12381 #include "confdefs.h"
12383 /* Override any gcc2 internal prototype to avoid an error. */
12387 /* We use char because int might match the return type of a gcc2
12388 builtin and then its argument prototype would still apply. */
12389 char gettimeofday ();
12398 rm -f conftest.$ac_objext conftest$ac_exeext
12399 if { (eval echo "$as_me:12399: \"$ac_link\"") >&5
12400 (eval $ac_link) 2>&5
12402 echo "$as_me:12402: \$? = $ac_status" >&5
12403 (exit $ac_status); } &&
12404 { ac_try='test -s conftest$ac_exeext'
12405 { (eval echo "$as_me:12405: \"$ac_try\"") >&5
12406 (eval $ac_try) 2>&5
12408 echo "$as_me:12408: \$? = $ac_status" >&5
12409 (exit $ac_status); }; }; then
12410 ac_cv_lib_bsd_gettimeofday=yes
12412 echo "$as_me: failed program was:" >&5
12413 cat conftest.$ac_ext >&5
12414 ac_cv_lib_bsd_gettimeofday=no
12416 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12417 LIBS=$ac_check_lib_save_LIBS
12419 echo "$as_me:12419: result: $ac_cv_lib_bsd_gettimeofday" >&5
12420 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
12421 if test $ac_cv_lib_bsd_gettimeofday = yes; then
12422 cat >>confdefs.h <<\EOF
12423 #define HAVE_GETTIMEOFDAY 1
12433 echo "$as_me:12433: checking if -lm needed for math functions" >&5
12434 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
12435 if test "${cf_cv_need_libm+set}" = set; then
12436 echo $ECHO_N "(cached) $ECHO_C" >&6
12439 cat >conftest.$ac_ext <<_ACEOF
12440 #line 12440 "configure"
12441 #include "confdefs.h"
12449 double x = rand(); printf("result = %g\n", sin(x))
12454 rm -f conftest.$ac_objext conftest$ac_exeext
12455 if { (eval echo "$as_me:12455: \"$ac_link\"") >&5
12456 (eval $ac_link) 2>&5
12458 echo "$as_me:12458: \$? = $ac_status" >&5
12459 (exit $ac_status); } &&
12460 { ac_try='test -s conftest$ac_exeext'
12461 { (eval echo "$as_me:12461: \"$ac_try\"") >&5
12462 (eval $ac_try) 2>&5
12464 echo "$as_me:12464: \$? = $ac_status" >&5
12465 (exit $ac_status); }; }; then
12468 echo "$as_me: failed program was:" >&5
12469 cat conftest.$ac_ext >&5
12470 cf_cv_need_libm=yes
12472 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12474 echo "$as_me:12474: result: $cf_cv_need_libm" >&5
12475 echo "${ECHO_T}$cf_cv_need_libm" >&6
12476 if test "$cf_cv_need_libm" = yes
12481 ### Checks for header files.
12482 echo "$as_me:12482: checking for ANSI C header files" >&5
12483 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12484 if test "${ac_cv_header_stdc+set}" = set; then
12485 echo $ECHO_N "(cached) $ECHO_C" >&6
12487 cat >conftest.$ac_ext <<_ACEOF
12488 #line 12488 "configure"
12489 #include "confdefs.h"
12490 #include <stdlib.h>
12491 #include <stdarg.h>
12492 #include <string.h>
12496 if { (eval echo "$as_me:12496: \"$ac_cpp conftest.$ac_ext\"") >&5
12497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12499 egrep -v '^ *\+' conftest.er1 >conftest.err
12501 cat conftest.err >&5
12502 echo "$as_me:12502: \$? = $ac_status" >&5
12503 (exit $ac_status); } >/dev/null; then
12504 if test -s conftest.err; then
12505 ac_cpp_err=$ac_c_preproc_warn_flag
12512 if test -z "$ac_cpp_err"; then
12513 ac_cv_header_stdc=yes
12515 echo "$as_me: failed program was:" >&5
12516 cat conftest.$ac_ext >&5
12517 ac_cv_header_stdc=no
12519 rm -f conftest.err conftest.$ac_ext
12521 if test $ac_cv_header_stdc = yes; then
12522 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12523 cat >conftest.$ac_ext <<_ACEOF
12524 #line 12524 "configure"
12525 #include "confdefs.h"
12526 #include <string.h>
12529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12530 egrep "memchr" >/dev/null 2>&1; then
12533 ac_cv_header_stdc=no
12539 if test $ac_cv_header_stdc = yes; then
12540 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12541 cat >conftest.$ac_ext <<_ACEOF
12542 #line 12542 "configure"
12543 #include "confdefs.h"
12544 #include <stdlib.h>
12547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12548 egrep "free" >/dev/null 2>&1; then
12551 ac_cv_header_stdc=no
12557 if test $ac_cv_header_stdc = yes; then
12558 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12559 if test "$cross_compiling" = yes; then
12562 cat >conftest.$ac_ext <<_ACEOF
12563 #line 12563 "configure"
12564 #include "confdefs.h"
12566 #if ((' ' & 0x0FF) == 0x020)
12567 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12568 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12570 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
12571 || ('j' <= (c) && (c) <= 'r') \
12572 || ('s' <= (c) && (c) <= 'z'))
12573 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12576 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12581 for (i = 0; i < 256; i++)
12582 if (XOR (islower (i), ISLOWER (i))
12583 || toupper (i) != TOUPPER (i))
12584 $ac_main_return(2);
12585 $ac_main_return (0);
12588 rm -f conftest$ac_exeext
12589 if { (eval echo "$as_me:12589: \"$ac_link\"") >&5
12590 (eval $ac_link) 2>&5
12592 echo "$as_me:12592: \$? = $ac_status" >&5
12593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12594 { (eval echo "$as_me:12594: \"$ac_try\"") >&5
12595 (eval $ac_try) 2>&5
12597 echo "$as_me:12597: \$? = $ac_status" >&5
12598 (exit $ac_status); }; }; then
12601 echo "$as_me: program exited with status $ac_status" >&5
12602 echo "$as_me: failed program was:" >&5
12603 cat conftest.$ac_ext >&5
12604 ac_cv_header_stdc=no
12606 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12610 echo "$as_me:12610: result: $ac_cv_header_stdc" >&5
12611 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12612 if test $ac_cv_header_stdc = yes; then
12614 cat >>confdefs.h <<\EOF
12615 #define STDC_HEADERS 1
12620 ac_header_dirent=no
12621 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12622 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12623 echo "$as_me:12623: checking for $ac_hdr that defines DIR" >&5
12624 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
12625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12626 echo $ECHO_N "(cached) $ECHO_C" >&6
12628 cat >conftest.$ac_ext <<_ACEOF
12629 #line 12629 "configure"
12630 #include "confdefs.h"
12631 #include <sys/types.h>
12643 rm -f conftest.$ac_objext
12644 if { (eval echo "$as_me:12644: \"$ac_compile\"") >&5
12645 (eval $ac_compile) 2>&5
12647 echo "$as_me:12647: \$? = $ac_status" >&5
12648 (exit $ac_status); } &&
12649 { ac_try='test -s conftest.$ac_objext'
12650 { (eval echo "$as_me:12650: \"$ac_try\"") >&5
12651 (eval $ac_try) 2>&5
12653 echo "$as_me:12653: \$? = $ac_status" >&5
12654 (exit $ac_status); }; }; then
12655 eval "$as_ac_Header=yes"
12657 echo "$as_me: failed program was:" >&5
12658 cat conftest.$ac_ext >&5
12659 eval "$as_ac_Header=no"
12661 rm -f conftest.$ac_objext conftest.$ac_ext
12663 echo "$as_me:12663: result: `eval echo '${'$as_ac_Header'}'`" >&5
12664 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12666 cat >>confdefs.h <<EOF
12667 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12670 ac_header_dirent=$ac_hdr; break
12674 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12675 if test $ac_header_dirent = dirent.h; then
12676 echo "$as_me:12676: checking for opendir in -ldir" >&5
12677 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
12678 if test "${ac_cv_lib_dir_opendir+set}" = set; then
12679 echo $ECHO_N "(cached) $ECHO_C" >&6
12681 ac_check_lib_save_LIBS=$LIBS
12683 cat >conftest.$ac_ext <<_ACEOF
12684 #line 12684 "configure"
12685 #include "confdefs.h"
12687 /* Override any gcc2 internal prototype to avoid an error. */
12691 /* We use char because int might match the return type of a gcc2
12692 builtin and then its argument prototype would still apply. */
12702 rm -f conftest.$ac_objext conftest$ac_exeext
12703 if { (eval echo "$as_me:12703: \"$ac_link\"") >&5
12704 (eval $ac_link) 2>&5
12706 echo "$as_me:12706: \$? = $ac_status" >&5
12707 (exit $ac_status); } &&
12708 { ac_try='test -s conftest$ac_exeext'
12709 { (eval echo "$as_me:12709: \"$ac_try\"") >&5
12710 (eval $ac_try) 2>&5
12712 echo "$as_me:12712: \$? = $ac_status" >&5
12713 (exit $ac_status); }; }; then
12714 ac_cv_lib_dir_opendir=yes
12716 echo "$as_me: failed program was:" >&5
12717 cat conftest.$ac_ext >&5
12718 ac_cv_lib_dir_opendir=no
12720 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12721 LIBS=$ac_check_lib_save_LIBS
12723 echo "$as_me:12723: result: $ac_cv_lib_dir_opendir" >&5
12724 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
12725 if test $ac_cv_lib_dir_opendir = yes; then
12730 echo "$as_me:12730: checking for opendir in -lx" >&5
12731 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
12732 if test "${ac_cv_lib_x_opendir+set}" = set; then
12733 echo $ECHO_N "(cached) $ECHO_C" >&6
12735 ac_check_lib_save_LIBS=$LIBS
12737 cat >conftest.$ac_ext <<_ACEOF
12738 #line 12738 "configure"
12739 #include "confdefs.h"
12741 /* Override any gcc2 internal prototype to avoid an error. */
12745 /* We use char because int might match the return type of a gcc2
12746 builtin and then its argument prototype would still apply. */
12756 rm -f conftest.$ac_objext conftest$ac_exeext
12757 if { (eval echo "$as_me:12757: \"$ac_link\"") >&5
12758 (eval $ac_link) 2>&5
12760 echo "$as_me:12760: \$? = $ac_status" >&5
12761 (exit $ac_status); } &&
12762 { ac_try='test -s conftest$ac_exeext'
12763 { (eval echo "$as_me:12763: \"$ac_try\"") >&5
12764 (eval $ac_try) 2>&5
12766 echo "$as_me:12766: \$? = $ac_status" >&5
12767 (exit $ac_status); }; }; then
12768 ac_cv_lib_x_opendir=yes
12770 echo "$as_me: failed program was:" >&5
12771 cat conftest.$ac_ext >&5
12772 ac_cv_lib_x_opendir=no
12774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12775 LIBS=$ac_check_lib_save_LIBS
12777 echo "$as_me:12777: result: $ac_cv_lib_x_opendir" >&5
12778 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
12779 if test $ac_cv_lib_x_opendir = yes; then
12785 echo "$as_me:12785: checking whether time.h and sys/time.h may both be included" >&5
12786 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
12787 if test "${ac_cv_header_time+set}" = set; then
12788 echo $ECHO_N "(cached) $ECHO_C" >&6
12790 cat >conftest.$ac_ext <<_ACEOF
12791 #line 12791 "configure"
12792 #include "confdefs.h"
12793 #include <sys/types.h>
12794 #include <sys/time.h>
12800 if ((struct tm *) 0)
12806 rm -f conftest.$ac_objext
12807 if { (eval echo "$as_me:12807: \"$ac_compile\"") >&5
12808 (eval $ac_compile) 2>&5
12810 echo "$as_me:12810: \$? = $ac_status" >&5
12811 (exit $ac_status); } &&
12812 { ac_try='test -s conftest.$ac_objext'
12813 { (eval echo "$as_me:12813: \"$ac_try\"") >&5
12814 (eval $ac_try) 2>&5
12816 echo "$as_me:12816: \$? = $ac_status" >&5
12817 (exit $ac_status); }; }; then
12818 ac_cv_header_time=yes
12820 echo "$as_me: failed program was:" >&5
12821 cat conftest.$ac_ext >&5
12822 ac_cv_header_time=no
12824 rm -f conftest.$ac_objext conftest.$ac_ext
12826 echo "$as_me:12826: result: $ac_cv_header_time" >&5
12827 echo "${ECHO_T}$ac_cv_header_time" >&6
12828 if test $ac_cv_header_time = yes; then
12830 cat >>confdefs.h <<\EOF
12831 #define TIME_WITH_SYS_TIME 1
12838 cf_regex_libs="regex re"
12839 case $host_os in #(vi
12841 cf_regex_libs="regex.dll $cf_regex_libs"
12845 echo "$as_me:12845: checking for regcomp" >&5
12846 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
12847 if test "${ac_cv_func_regcomp+set}" = set; then
12848 echo $ECHO_N "(cached) $ECHO_C" >&6
12850 cat >conftest.$ac_ext <<_ACEOF
12851 #line 12851 "configure"
12852 #include "confdefs.h"
12853 /* System header to define __stub macros and hopefully few prototypes,
12854 which can conflict with char regcomp (); below. */
12855 #include <assert.h>
12856 /* Override any gcc2 internal prototype to avoid an error. */
12860 /* We use char because int might match the return type of a gcc2
12861 builtin and then its argument prototype would still apply. */
12868 /* The GNU C library defines this for functions which it implements
12869 to always fail with ENOSYS. Some functions are actually named
12870 something starting with __ and the normal name is an alias. */
12871 #if defined (__stub_regcomp) || defined (__stub___regcomp)
12881 rm -f conftest.$ac_objext conftest$ac_exeext
12882 if { (eval echo "$as_me:12882: \"$ac_link\"") >&5
12883 (eval $ac_link) 2>&5
12885 echo "$as_me:12885: \$? = $ac_status" >&5
12886 (exit $ac_status); } &&
12887 { ac_try='test -s conftest$ac_exeext'
12888 { (eval echo "$as_me:12888: \"$ac_try\"") >&5
12889 (eval $ac_try) 2>&5
12891 echo "$as_me:12891: \$? = $ac_status" >&5
12892 (exit $ac_status); }; }; then
12893 ac_cv_func_regcomp=yes
12895 echo "$as_me: failed program was:" >&5
12896 cat conftest.$ac_ext >&5
12897 ac_cv_func_regcomp=no
12899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12901 echo "$as_me:12901: result: $ac_cv_func_regcomp" >&5
12902 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
12903 if test $ac_cv_func_regcomp = yes; then
12904 cf_regex_func=regcomp
12907 for cf_regex_lib in $cf_regex_libs
12909 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
12910 echo "$as_me:12910: checking for regcomp in -l$cf_regex_lib" >&5
12911 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
12912 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
12913 echo $ECHO_N "(cached) $ECHO_C" >&6
12915 ac_check_lib_save_LIBS=$LIBS
12916 LIBS="-l$cf_regex_lib $LIBS"
12917 cat >conftest.$ac_ext <<_ACEOF
12918 #line 12918 "configure"
12919 #include "confdefs.h"
12921 /* Override any gcc2 internal prototype to avoid an error. */
12925 /* We use char because int might match the return type of a gcc2
12926 builtin and then its argument prototype would still apply. */
12936 rm -f conftest.$ac_objext conftest$ac_exeext
12937 if { (eval echo "$as_me:12937: \"$ac_link\"") >&5
12938 (eval $ac_link) 2>&5
12940 echo "$as_me:12940: \$? = $ac_status" >&5
12941 (exit $ac_status); } &&
12942 { ac_try='test -s conftest$ac_exeext'
12943 { (eval echo "$as_me:12943: \"$ac_try\"") >&5
12944 (eval $ac_try) 2>&5
12946 echo "$as_me:12946: \$? = $ac_status" >&5
12947 (exit $ac_status); }; }; then
12948 eval "$as_ac_Lib=yes"
12950 echo "$as_me: failed program was:" >&5
12951 cat conftest.$ac_ext >&5
12952 eval "$as_ac_Lib=no"
12954 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12955 LIBS=$ac_check_lib_save_LIBS
12957 echo "$as_me:12957: result: `eval echo '${'$as_ac_Lib'}'`" >&5
12958 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
12959 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12961 LIBS="-l$cf_regex_lib $LIBS"
12962 cf_regex_func=regcomp
12970 if test "$cf_regex_func" = no ; then
12971 echo "$as_me:12971: checking for compile" >&5
12972 echo $ECHO_N "checking for compile... $ECHO_C" >&6
12973 if test "${ac_cv_func_compile+set}" = set; then
12974 echo $ECHO_N "(cached) $ECHO_C" >&6
12976 cat >conftest.$ac_ext <<_ACEOF
12977 #line 12977 "configure"
12978 #include "confdefs.h"
12979 /* System header to define __stub macros and hopefully few prototypes,
12980 which can conflict with char compile (); below. */
12981 #include <assert.h>
12982 /* Override any gcc2 internal prototype to avoid an error. */
12986 /* We use char because int might match the return type of a gcc2
12987 builtin and then its argument prototype would still apply. */
12994 /* The GNU C library defines this for functions which it implements
12995 to always fail with ENOSYS. Some functions are actually named
12996 something starting with __ and the normal name is an alias. */
12997 #if defined (__stub_compile) || defined (__stub___compile)
13007 rm -f conftest.$ac_objext conftest$ac_exeext
13008 if { (eval echo "$as_me:13008: \"$ac_link\"") >&5
13009 (eval $ac_link) 2>&5
13011 echo "$as_me:13011: \$? = $ac_status" >&5
13012 (exit $ac_status); } &&
13013 { ac_try='test -s conftest$ac_exeext'
13014 { (eval echo "$as_me:13014: \"$ac_try\"") >&5
13015 (eval $ac_try) 2>&5
13017 echo "$as_me:13017: \$? = $ac_status" >&5
13018 (exit $ac_status); }; }; then
13019 ac_cv_func_compile=yes
13021 echo "$as_me: failed program was:" >&5
13022 cat conftest.$ac_ext >&5
13023 ac_cv_func_compile=no
13025 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13027 echo "$as_me:13027: result: $ac_cv_func_compile" >&5
13028 echo "${ECHO_T}$ac_cv_func_compile" >&6
13029 if test $ac_cv_func_compile = yes; then
13030 cf_regex_func=compile
13033 echo "$as_me:13033: checking for compile in -lgen" >&5
13034 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
13035 if test "${ac_cv_lib_gen_compile+set}" = set; then
13036 echo $ECHO_N "(cached) $ECHO_C" >&6
13038 ac_check_lib_save_LIBS=$LIBS
13040 cat >conftest.$ac_ext <<_ACEOF
13041 #line 13041 "configure"
13042 #include "confdefs.h"
13044 /* Override any gcc2 internal prototype to avoid an error. */
13048 /* We use char because int might match the return type of a gcc2
13049 builtin and then its argument prototype would still apply. */
13059 rm -f conftest.$ac_objext conftest$ac_exeext
13060 if { (eval echo "$as_me:13060: \"$ac_link\"") >&5
13061 (eval $ac_link) 2>&5
13063 echo "$as_me:13063: \$? = $ac_status" >&5
13064 (exit $ac_status); } &&
13065 { ac_try='test -s conftest$ac_exeext'
13066 { (eval echo "$as_me:13066: \"$ac_try\"") >&5
13067 (eval $ac_try) 2>&5
13069 echo "$as_me:13069: \$? = $ac_status" >&5
13070 (exit $ac_status); }; }; then
13071 ac_cv_lib_gen_compile=yes
13073 echo "$as_me: failed program was:" >&5
13074 cat conftest.$ac_ext >&5
13075 ac_cv_lib_gen_compile=no
13077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13078 LIBS=$ac_check_lib_save_LIBS
13080 echo "$as_me:13080: result: $ac_cv_lib_gen_compile" >&5
13081 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
13082 if test $ac_cv_lib_gen_compile = yes; then
13085 cf_regex_func=compile
13092 if test "$cf_regex_func" = no ; then
13093 { echo "$as_me:13093: WARNING: cannot find regular expression library" >&5
13094 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
13097 echo "$as_me:13097: checking for regular-expression headers" >&5
13098 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
13099 if test "${cf_cv_regex_hdrs+set}" = set; then
13100 echo $ECHO_N "(cached) $ECHO_C" >&6
13103 cf_cv_regex_hdrs=no
13104 case $cf_regex_func in #(vi
13106 for cf_regex_hdr in regexp.h regexpr.h
13108 cat >conftest.$ac_ext <<_ACEOF
13109 #line 13109 "configure"
13110 #include "confdefs.h"
13111 #include <$cf_regex_hdr>
13116 char *p = compile("", "", "", 0);
13117 int x = step("", "");
13123 rm -f conftest.$ac_objext conftest$ac_exeext
13124 if { (eval echo "$as_me:13124: \"$ac_link\"") >&5
13125 (eval $ac_link) 2>&5
13127 echo "$as_me:13127: \$? = $ac_status" >&5
13128 (exit $ac_status); } &&
13129 { ac_try='test -s conftest$ac_exeext'
13130 { (eval echo "$as_me:13130: \"$ac_try\"") >&5
13131 (eval $ac_try) 2>&5
13133 echo "$as_me:13133: \$? = $ac_status" >&5
13134 (exit $ac_status); }; }; then
13136 cf_cv_regex_hdrs=$cf_regex_hdr
13140 echo "$as_me: failed program was:" >&5
13141 cat conftest.$ac_ext >&5
13143 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13147 for cf_regex_hdr in regex.h
13149 cat >conftest.$ac_ext <<_ACEOF
13150 #line 13150 "configure"
13151 #include "confdefs.h"
13152 #include <sys/types.h>
13153 #include <$cf_regex_hdr>
13159 int x = regcomp(p, "", 0);
13160 int y = regexec(p, "", 0, 0, 0);
13167 rm -f conftest.$ac_objext conftest$ac_exeext
13168 if { (eval echo "$as_me:13168: \"$ac_link\"") >&5
13169 (eval $ac_link) 2>&5
13171 echo "$as_me:13171: \$? = $ac_status" >&5
13172 (exit $ac_status); } &&
13173 { ac_try='test -s conftest$ac_exeext'
13174 { (eval echo "$as_me:13174: \"$ac_try\"") >&5
13175 (eval $ac_try) 2>&5
13177 echo "$as_me:13177: \$? = $ac_status" >&5
13178 (exit $ac_status); }; }; then
13180 cf_cv_regex_hdrs=$cf_regex_hdr
13184 echo "$as_me: failed program was:" >&5
13185 cat conftest.$ac_ext >&5
13187 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13193 echo "$as_me:13193: result: $cf_cv_regex_hdrs" >&5
13194 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
13196 case $cf_cv_regex_hdrs in #(vi
13197 no) { echo "$as_me:13197: WARNING: no regular expression header found" >&5
13198 echo "$as_me: WARNING: no regular expression header found" >&2;} ;; #(vi
13199 regex.h) cat >>confdefs.h <<\EOF
13200 #define HAVE_REGEX_H_FUNCS 1
13203 regexp.h) cat >>confdefs.h <<\EOF
13204 #define HAVE_REGEXP_H_FUNCS 1
13207 regexpr.h) cat >>confdefs.h <<\EOF
13208 #define HAVE_REGEXPR_H_FUNCS 1
13231 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13232 echo "$as_me:13232: checking for $ac_header" >&5
13233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13235 echo $ECHO_N "(cached) $ECHO_C" >&6
13237 cat >conftest.$ac_ext <<_ACEOF
13238 #line 13238 "configure"
13239 #include "confdefs.h"
13240 #include <$ac_header>
13242 if { (eval echo "$as_me:13242: \"$ac_cpp conftest.$ac_ext\"") >&5
13243 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13245 egrep -v '^ *\+' conftest.er1 >conftest.err
13247 cat conftest.err >&5
13248 echo "$as_me:13248: \$? = $ac_status" >&5
13249 (exit $ac_status); } >/dev/null; then
13250 if test -s conftest.err; then
13251 ac_cpp_err=$ac_c_preproc_warn_flag
13258 if test -z "$ac_cpp_err"; then
13259 eval "$as_ac_Header=yes"
13261 echo "$as_me: failed program was:" >&5
13262 cat conftest.$ac_ext >&5
13263 eval "$as_ac_Header=no"
13265 rm -f conftest.err conftest.$ac_ext
13267 echo "$as_me:13267: result: `eval echo '${'$as_ac_Header'}'`" >&5
13268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13269 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13270 cat >>confdefs.h <<EOF
13271 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13277 # check for ISC (this may also define _POSIX_SOURCE)
13278 # Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
13279 if test "$ISC" = yes ; then
13281 echo "$as_me:13281: checking for main in -lcposix" >&5
13282 echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6
13283 if test "${ac_cv_lib_cposix_main+set}" = set; then
13284 echo $ECHO_N "(cached) $ECHO_C" >&6
13286 ac_check_lib_save_LIBS=$LIBS
13287 LIBS="-lcposix $LIBS"
13288 cat >conftest.$ac_ext <<_ACEOF
13289 #line 13289 "configure"
13290 #include "confdefs.h"
13300 rm -f conftest.$ac_objext conftest$ac_exeext
13301 if { (eval echo "$as_me:13301: \"$ac_link\"") >&5
13302 (eval $ac_link) 2>&5
13304 echo "$as_me:13304: \$? = $ac_status" >&5
13305 (exit $ac_status); } &&
13306 { ac_try='test -s conftest$ac_exeext'
13307 { (eval echo "$as_me:13307: \"$ac_try\"") >&5
13308 (eval $ac_try) 2>&5
13310 echo "$as_me:13310: \$? = $ac_status" >&5
13311 (exit $ac_status); }; }; then
13312 ac_cv_lib_cposix_main=yes
13314 echo "$as_me: failed program was:" >&5
13315 cat conftest.$ac_ext >&5
13316 ac_cv_lib_cposix_main=no
13318 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13319 LIBS=$ac_check_lib_save_LIBS
13321 echo "$as_me:13321: result: $ac_cv_lib_cposix_main" >&5
13322 echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6
13323 if test $ac_cv_lib_cposix_main = yes; then
13324 cat >>confdefs.h <<EOF
13325 #define HAVE_LIBCPOSIX 1
13328 LIBS="-lcposix $LIBS"
13332 echo "$as_me:13332: checking for bzero in -linet" >&5
13333 echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6
13334 if test "${ac_cv_lib_inet_bzero+set}" = set; then
13335 echo $ECHO_N "(cached) $ECHO_C" >&6
13337 ac_check_lib_save_LIBS=$LIBS
13338 LIBS="-linet $LIBS"
13339 cat >conftest.$ac_ext <<_ACEOF
13340 #line 13340 "configure"
13341 #include "confdefs.h"
13343 /* Override any gcc2 internal prototype to avoid an error. */
13347 /* We use char because int might match the return type of a gcc2
13348 builtin and then its argument prototype would still apply. */
13358 rm -f conftest.$ac_objext conftest$ac_exeext
13359 if { (eval echo "$as_me:13359: \"$ac_link\"") >&5
13360 (eval $ac_link) 2>&5
13362 echo "$as_me:13362: \$? = $ac_status" >&5
13363 (exit $ac_status); } &&
13364 { ac_try='test -s conftest$ac_exeext'
13365 { (eval echo "$as_me:13365: \"$ac_try\"") >&5
13366 (eval $ac_try) 2>&5
13368 echo "$as_me:13368: \$? = $ac_status" >&5
13369 (exit $ac_status); }; }; then
13370 ac_cv_lib_inet_bzero=yes
13372 echo "$as_me: failed program was:" >&5
13373 cat conftest.$ac_ext >&5
13374 ac_cv_lib_inet_bzero=no
13376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13377 LIBS=$ac_check_lib_save_LIBS
13379 echo "$as_me:13379: result: $ac_cv_lib_inet_bzero" >&5
13380 echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6
13381 if test $ac_cv_lib_inet_bzero = yes; then
13382 LIBS="-linet $LIBS"
13386 echo "$as_me:13386: checking if sys/time.h works with sys/select.h" >&5
13387 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
13388 if test "${cf_cv_sys_time_select+set}" = set; then
13389 echo $ECHO_N "(cached) $ECHO_C" >&6
13392 cat >conftest.$ac_ext <<_ACEOF
13393 #line 13393 "configure"
13394 #include "confdefs.h"
13396 #include <sys/types.h>
13397 #ifdef HAVE_SYS_TIME_H
13398 #include <sys/time.h>
13400 #ifdef HAVE_SYS_SELECT_H
13401 #include <sys/select.h>
13412 rm -f conftest.$ac_objext
13413 if { (eval echo "$as_me:13413: \"$ac_compile\"") >&5
13414 (eval $ac_compile) 2>&5
13416 echo "$as_me:13416: \$? = $ac_status" >&5
13417 (exit $ac_status); } &&
13418 { ac_try='test -s conftest.$ac_objext'
13419 { (eval echo "$as_me:13419: \"$ac_try\"") >&5
13420 (eval $ac_try) 2>&5
13422 echo "$as_me:13422: \$? = $ac_status" >&5
13423 (exit $ac_status); }; }; then
13424 cf_cv_sys_time_select=yes
13426 echo "$as_me: failed program was:" >&5
13427 cat conftest.$ac_ext >&5
13428 cf_cv_sys_time_select=no
13430 rm -f conftest.$ac_objext conftest.$ac_ext
13434 echo "$as_me:13434: result: $cf_cv_sys_time_select" >&5
13435 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
13436 test "$cf_cv_sys_time_select" = yes && cat >>confdefs.h <<\EOF
13437 #define HAVE_SYS_TIME_SELECT 1
13440 ### checks for compiler characteristics
13442 ac_cpp='$CPP $CPPFLAGS'
13443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13446 ac_main_return=return
13448 echo "$as_me:13448: checking for $CC option to accept ANSI C" >&5
13449 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
13450 if test "${ac_cv_prog_cc_stdc+set}" = set; then
13451 echo $ECHO_N "(cached) $ECHO_C" >&6
13453 ac_cv_prog_cc_stdc=no
13455 cat >conftest.$ac_ext <<_ACEOF
13456 #line 13456 "configure"
13457 #include "confdefs.h"
13458 #include <stdarg.h>
13460 #include <sys/types.h>
13461 #include <sys/stat.h>
13462 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13463 struct buf { int x; };
13464 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13465 static char *e (p, i)
13471 static char *f (char * (*g) (char **, int), char **p, ...)
13476 s = g (p, va_arg (v,int));
13480 int test (int i, double x);
13481 struct s1 {int (*f) (int a);};
13482 struct s2 {int (*f) (double a);};
13483 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13489 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13494 # Don't try gcc -ansi; that turns off useful extensions and
13495 # breaks some systems' header files.
13496 # AIX -qlanglvl=ansi
13497 # Ultrix and OSF/1 -std1
13498 # HP-UX 10.20 and later -Ae
13499 # HP-UX older versions -Aa -D_HPUX_SOURCE
13500 # SVR4 -Xc -D__EXTENSIONS__
13501 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13503 CC="$ac_save_CC $ac_arg"
13504 rm -f conftest.$ac_objext
13505 if { (eval echo "$as_me:13505: \"$ac_compile\"") >&5
13506 (eval $ac_compile) 2>&5
13508 echo "$as_me:13508: \$? = $ac_status" >&5
13509 (exit $ac_status); } &&
13510 { ac_try='test -s conftest.$ac_objext'
13511 { (eval echo "$as_me:13511: \"$ac_try\"") >&5
13512 (eval $ac_try) 2>&5
13514 echo "$as_me:13514: \$? = $ac_status" >&5
13515 (exit $ac_status); }; }; then
13516 ac_cv_prog_cc_stdc=$ac_arg
13519 echo "$as_me: failed program was:" >&5
13520 cat conftest.$ac_ext >&5
13522 rm -f conftest.$ac_objext
13524 rm -f conftest.$ac_ext conftest.$ac_objext
13529 case "x$ac_cv_prog_cc_stdc" in
13531 echo "$as_me:13531: result: none needed" >&5
13532 echo "${ECHO_T}none needed" >&6 ;;
13534 echo "$as_me:13534: result: $ac_cv_prog_cc_stdc" >&5
13535 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
13536 CC="$CC $ac_cv_prog_cc_stdc" ;;
13539 echo "$as_me:13539: checking for an ANSI C-conforming const" >&5
13540 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13541 if test "${ac_cv_c_const+set}" = set; then
13542 echo $ECHO_N "(cached) $ECHO_C" >&6
13544 cat >conftest.$ac_ext <<_ACEOF
13545 #line 13545 "configure"
13546 #include "confdefs.h"
13551 /* FIXME: Include the comments suggested by Paul. */
13552 #ifndef __cplusplus
13553 /* Ultrix mips cc rejects this. */
13554 typedef int charset[2];
13556 /* SunOS 4.1.1 cc rejects this. */
13557 char const *const *ccp;
13559 /* NEC SVR4.0.2 mips cc rejects this. */
13560 struct point {int x, y;};
13561 static struct point const zero = {0,0};
13562 /* AIX XL C 1.02.0.0 rejects this.
13563 It does not let you subtract one const X* pointer from another in
13564 an arm of an if-expression whose if-part is not a constant
13566 const char *g = "string";
13567 ccp = &g + (g ? g-g : 0);
13568 /* HPUX 7.0 cc rejects these. */
13571 ccp = (char const *const *) p;
13572 { /* SCO 3.2v4 cc rejects this. */
13574 char const *s = 0 ? (char *) 0 : (char const *) 0;
13578 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13579 int x[] = {25, 17};
13580 const int *foo = &x[0];
13583 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13584 typedef const int *iptr;
13588 { /* AIX XL C 1.02.0.0 rejects this saying
13589 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13590 struct s { int j; const int *ap[3]; };
13591 struct s *b; b->j = 5;
13593 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13594 const int foo = 10;
13602 rm -f conftest.$ac_objext
13603 if { (eval echo "$as_me:13603: \"$ac_compile\"") >&5
13604 (eval $ac_compile) 2>&5
13606 echo "$as_me:13606: \$? = $ac_status" >&5
13607 (exit $ac_status); } &&
13608 { ac_try='test -s conftest.$ac_objext'
13609 { (eval echo "$as_me:13609: \"$ac_try\"") >&5
13610 (eval $ac_try) 2>&5
13612 echo "$as_me:13612: \$? = $ac_status" >&5
13613 (exit $ac_status); }; }; then
13616 echo "$as_me: failed program was:" >&5
13617 cat conftest.$ac_ext >&5
13620 rm -f conftest.$ac_objext conftest.$ac_ext
13622 echo "$as_me:13622: result: $ac_cv_c_const" >&5
13623 echo "${ECHO_T}$ac_cv_c_const" >&6
13624 if test $ac_cv_c_const = no; then
13626 cat >>confdefs.h <<\EOF
13632 echo "$as_me:13632: checking for inline" >&5
13633 echo $ECHO_N "checking for inline... $ECHO_C" >&6
13634 if test "${ac_cv_c_inline+set}" = set; then
13635 echo $ECHO_N "(cached) $ECHO_C" >&6
13638 for ac_kw in inline __inline__ __inline; do
13639 cat >conftest.$ac_ext <<_ACEOF
13640 #line 13640 "configure"
13641 #include "confdefs.h"
13642 #ifndef __cplusplus
13643 static $ac_kw int static_foo () {return 0; }
13644 $ac_kw int foo () {return 0; }
13648 rm -f conftest.$ac_objext
13649 if { (eval echo "$as_me:13649: \"$ac_compile\"") >&5
13650 (eval $ac_compile) 2>&5
13652 echo "$as_me:13652: \$? = $ac_status" >&5
13653 (exit $ac_status); } &&
13654 { ac_try='test -s conftest.$ac_objext'
13655 { (eval echo "$as_me:13655: \"$ac_try\"") >&5
13656 (eval $ac_try) 2>&5
13658 echo "$as_me:13658: \$? = $ac_status" >&5
13659 (exit $ac_status); }; }; then
13660 ac_cv_c_inline=$ac_kw; break
13662 echo "$as_me: failed program was:" >&5
13663 cat conftest.$ac_ext >&5
13665 rm -f conftest.$ac_objext conftest.$ac_ext
13669 echo "$as_me:13669: result: $ac_cv_c_inline" >&5
13670 echo "${ECHO_T}$ac_cv_c_inline" >&6
13671 case $ac_cv_c_inline in
13674 cat >>confdefs.h <<\EOF
13678 *) cat >>confdefs.h <<EOF
13679 #define inline $ac_cv_c_inline
13685 if test "$ac_cv_c_inline" != no ; then
13686 NCURSES_INLINE=inline
13687 if test "$INTEL_COMPILER" = yes
13690 elif test "$GCC" = yes
13692 echo "$as_me:13692: checking if $CC supports options to tune inlining" >&5
13693 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
13694 if test "${cf_cv_gcc_inline+set}" = set; then
13695 echo $ECHO_N "(cached) $ECHO_C" >&6
13698 cf_save_CFLAGS=$CFLAGS
13699 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
13700 cat >conftest.$ac_ext <<_ACEOF
13701 #line 13701 "configure"
13702 #include "confdefs.h"
13703 inline int foo(void) { return 1; }
13707 ${cf_cv_main_return:-return} foo()
13712 rm -f conftest.$ac_objext
13713 if { (eval echo "$as_me:13713: \"$ac_compile\"") >&5
13714 (eval $ac_compile) 2>&5
13716 echo "$as_me:13716: \$? = $ac_status" >&5
13717 (exit $ac_status); } &&
13718 { ac_try='test -s conftest.$ac_objext'
13719 { (eval echo "$as_me:13719: \"$ac_try\"") >&5
13720 (eval $ac_try) 2>&5
13722 echo "$as_me:13722: \$? = $ac_status" >&5
13723 (exit $ac_status); }; }; then
13724 cf_cv_gcc_inline=yes
13726 echo "$as_me: failed program was:" >&5
13727 cat conftest.$ac_ext >&5
13728 cf_cv_gcc_inline=no
13730 rm -f conftest.$ac_objext conftest.$ac_ext
13731 CFLAGS=$cf_save_CFLAGS
13734 echo "$as_me:13734: result: $cf_cv_gcc_inline" >&5
13735 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
13736 if test "$cf_cv_gcc_inline" = yes ; then
13741 cf_new_extra_cppflags=
13743 for cf_add_cflags in --param max-inline-insns-single=1200
13745 case $cf_fix_cppflags in
13747 case $cf_add_cflags in #(vi
13748 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
13749 case $cf_add_cflags in
13751 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13753 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13754 && test -z "${cf_tst_cflags}" \
13755 && cf_fix_cppflags=yes
13757 if test $cf_fix_cppflags = yes ; then
13758 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13760 elif test "${cf_tst_cflags}" = "\"'" ; then
13761 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13766 case "$CPPFLAGS" in
13767 *$cf_add_cflags) #(vi
13770 case $cf_add_cflags in #(vi
13772 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13774 CPPFLAGS=`echo "$CPPFLAGS" | \
13775 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13776 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13780 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
13785 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
13790 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13792 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13794 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13795 && test -z "${cf_tst_cflags}" \
13796 && cf_fix_cppflags=no
13801 if test -n "$cf_new_cflags" ; then
13803 CFLAGS="$CFLAGS $cf_new_cflags"
13806 if test -n "$cf_new_cppflags" ; then
13808 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
13811 if test -n "$cf_new_extra_cppflags" ; then
13813 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
13820 echo "$as_me:13820: checking for signal global datatype" >&5
13821 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
13822 if test "${cf_cv_sig_atomic_t+set}" = set; then
13823 echo $ECHO_N "(cached) $ECHO_C" >&6
13827 "volatile sig_atomic_t" \
13831 cat >conftest.$ac_ext <<_ACEOF
13832 #line 13832 "configure"
13833 #include "confdefs.h"
13835 #include <sys/types.h>
13836 #include <signal.h>
13841 static void handler(int sig)
13848 signal(SIGINT, handler);
13854 rm -f conftest.$ac_objext
13855 if { (eval echo "$as_me:13855: \"$ac_compile\"") >&5
13856 (eval $ac_compile) 2>&5
13858 echo "$as_me:13858: \$? = $ac_status" >&5
13859 (exit $ac_status); } &&
13860 { ac_try='test -s conftest.$ac_objext'
13861 { (eval echo "$as_me:13861: \"$ac_try\"") >&5
13862 (eval $ac_try) 2>&5
13864 echo "$as_me:13864: \$? = $ac_status" >&5
13865 (exit $ac_status); }; }; then
13866 cf_cv_sig_atomic_t=$cf_type
13868 echo "$as_me: failed program was:" >&5
13869 cat conftest.$ac_ext >&5
13870 cf_cv_sig_atomic_t=no
13872 rm -f conftest.$ac_objext conftest.$ac_ext
13873 test "$cf_cv_sig_atomic_t" != no && break
13878 echo "$as_me:13878: result: $cf_cv_sig_atomic_t" >&5
13879 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
13880 test "$cf_cv_sig_atomic_t" != no && cat >>confdefs.h <<EOF
13881 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
13884 if test $NCURSES_CHTYPE = auto ; then
13886 echo "$as_me:13886: checking for type of chtype" >&5
13887 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
13888 if test "${cf_cv_typeof_chtype+set}" = set; then
13889 echo $ECHO_N "(cached) $ECHO_C" >&6
13892 if test "$cross_compiling" = yes; then
13893 cf_cv_typeof_chtype=long
13895 cat >conftest.$ac_ext <<_ACEOF
13896 #line 13896 "configure"
13897 #include "confdefs.h"
13899 #define WANT_BITS 31
13903 FILE *fp = fopen("cf_test.out", "w");
13905 char *result = "long";
13906 if (sizeof(unsigned long) > sizeof(unsigned int)) {
13909 for (n = 0; n < WANT_BITS; n++) {
13912 if (y != 1 || x == 0) {
13918 * If x is nonzero, an int is big enough for the bits
13921 result = (x != 0) ? "int" : "long";
13926 ${cf_cv_main_return:-return}(0);
13930 rm -f conftest$ac_exeext
13931 if { (eval echo "$as_me:13931: \"$ac_link\"") >&5
13932 (eval $ac_link) 2>&5
13934 echo "$as_me:13934: \$? = $ac_status" >&5
13935 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13936 { (eval echo "$as_me:13936: \"$ac_try\"") >&5
13937 (eval $ac_try) 2>&5
13939 echo "$as_me:13939: \$? = $ac_status" >&5
13940 (exit $ac_status); }; }; then
13941 cf_cv_typeof_chtype=`cat cf_test.out`
13943 echo "$as_me: program exited with status $ac_status" >&5
13944 echo "$as_me: failed program was:" >&5
13945 cat conftest.$ac_ext >&5
13946 cf_cv_typeof_chtype=long
13948 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13954 echo "$as_me:13954: result: $cf_cv_typeof_chtype" >&5
13955 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
13957 cat >>confdefs.h <<EOF
13958 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
13962 cf_cv_typeof_chtype=$NCURSES_CHTYPE
13964 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
13966 echo "$as_me:13966: checking if unsigned literals are legal" >&5
13967 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
13968 if test "${cf_cv_unsigned_literals+set}" = set; then
13969 echo $ECHO_N "(cached) $ECHO_C" >&6
13972 cat >conftest.$ac_ext <<_ACEOF
13973 #line 13973 "configure"
13974 #include "confdefs.h"
13979 long x = 1L + 1UL + 1U + 1
13984 rm -f conftest.$ac_objext
13985 if { (eval echo "$as_me:13985: \"$ac_compile\"") >&5
13986 (eval $ac_compile) 2>&5
13988 echo "$as_me:13988: \$? = $ac_status" >&5
13989 (exit $ac_status); } &&
13990 { ac_try='test -s conftest.$ac_objext'
13991 { (eval echo "$as_me:13991: \"$ac_try\"") >&5
13992 (eval $ac_try) 2>&5
13994 echo "$as_me:13994: \$? = $ac_status" >&5
13995 (exit $ac_status); }; }; then
13996 cf_cv_unsigned_literals=yes
13998 echo "$as_me: failed program was:" >&5
13999 cat conftest.$ac_ext >&5
14000 cf_cv_unsigned_literals=no
14002 rm -f conftest.$ac_objext conftest.$ac_ext
14006 echo "$as_me:14006: result: $cf_cv_unsigned_literals" >&5
14007 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
14010 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
14011 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
14013 if test $NCURSES_MMASK_T = auto ; then
14014 cf_cv_typeof_mmask_t=long
14016 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
14018 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
14020 ### Checks for external-data
14022 echo "$as_me:14022: checking if external errno is declared" >&5
14023 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
14024 if test "${cf_cv_dcl_errno+set}" = set; then
14025 echo $ECHO_N "(cached) $ECHO_C" >&6
14028 cat >conftest.$ac_ext <<_ACEOF
14029 #line 14029 "configure"
14030 #include "confdefs.h"
14032 #ifdef HAVE_STDLIB_H
14033 #include <stdlib.h>
14036 #include <sys/types.h>
14041 int x = (int) errno
14046 rm -f conftest.$ac_objext
14047 if { (eval echo "$as_me:14047: \"$ac_compile\"") >&5
14048 (eval $ac_compile) 2>&5
14050 echo "$as_me:14050: \$? = $ac_status" >&5
14051 (exit $ac_status); } &&
14052 { ac_try='test -s conftest.$ac_objext'
14053 { (eval echo "$as_me:14053: \"$ac_try\"") >&5
14054 (eval $ac_try) 2>&5
14056 echo "$as_me:14056: \$? = $ac_status" >&5
14057 (exit $ac_status); }; }; then
14058 cf_cv_dcl_errno=yes
14060 echo "$as_me: failed program was:" >&5
14061 cat conftest.$ac_ext >&5
14064 rm -f conftest.$ac_objext conftest.$ac_ext
14067 echo "$as_me:14067: result: $cf_cv_dcl_errno" >&5
14068 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
14070 if test "$cf_cv_dcl_errno" = no ; then
14072 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14074 cat >>confdefs.h <<EOF
14075 #define $cf_result 1
14080 # It's possible (for near-UNIX clones) that the data doesn't exist
14082 echo "$as_me:14082: checking if external errno exists" >&5
14083 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
14084 if test "${cf_cv_have_errno+set}" = set; then
14085 echo $ECHO_N "(cached) $ECHO_C" >&6
14088 cat >conftest.$ac_ext <<_ACEOF
14089 #line 14089 "configure"
14090 #include "confdefs.h"
14103 rm -f conftest.$ac_objext conftest$ac_exeext
14104 if { (eval echo "$as_me:14104: \"$ac_link\"") >&5
14105 (eval $ac_link) 2>&5
14107 echo "$as_me:14107: \$? = $ac_status" >&5
14108 (exit $ac_status); } &&
14109 { ac_try='test -s conftest$ac_exeext'
14110 { (eval echo "$as_me:14110: \"$ac_try\"") >&5
14111 (eval $ac_try) 2>&5
14113 echo "$as_me:14113: \$? = $ac_status" >&5
14114 (exit $ac_status); }; }; then
14115 cf_cv_have_errno=yes
14117 echo "$as_me: failed program was:" >&5
14118 cat conftest.$ac_ext >&5
14119 cf_cv_have_errno=no
14121 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14124 echo "$as_me:14124: result: $cf_cv_have_errno" >&5
14125 echo "${ECHO_T}$cf_cv_have_errno" >&6
14127 if test "$cf_cv_have_errno" = yes ; then
14129 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14131 cat >>confdefs.h <<EOF
14132 #define $cf_result 1
14137 echo "$as_me:14137: checking if data-only library module links" >&5
14138 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
14139 if test "${cf_cv_link_dataonly+set}" = set; then
14140 echo $ECHO_N "(cached) $ECHO_C" >&6
14144 cat >conftest.$ac_ext <<EOF
14145 #line 14145 "configure"
14146 int testdata[3] = { 123, 456, 789 };
14148 if { (eval echo "$as_me:14148: \"$ac_compile\"") >&5
14149 (eval $ac_compile) 2>&5
14151 echo "$as_me:14151: \$? = $ac_status" >&5
14152 (exit $ac_status); } ; then
14153 mv conftest.o data.o && \
14154 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
14156 rm -f conftest.$ac_ext data.o
14157 cat >conftest.$ac_ext <<EOF
14158 #line 14158 "configure"
14162 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
14164 extern int testdata[3];
14165 return testdata[0] == 123
14166 && testdata[1] == 456
14167 && testdata[2] == 789;
14171 if { (eval echo "$as_me:14171: \"$ac_compile\"") >&5
14172 (eval $ac_compile) 2>&5
14174 echo "$as_me:14174: \$? = $ac_status" >&5
14175 (exit $ac_status); }; then
14176 mv conftest.o func.o && \
14177 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
14179 rm -f conftest.$ac_ext func.o
14180 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
14181 cf_saveLIBS="$LIBS"
14182 LIBS="conftest.a $LIBS"
14183 if test "$cross_compiling" = yes; then
14184 cf_cv_link_dataonly=unknown
14186 cat >conftest.$ac_ext <<_ACEOF
14187 #line 14187 "configure"
14188 #include "confdefs.h"
14192 extern int testfunc();
14193 ${cf_cv_main_return:-return} (!testfunc());
14197 rm -f conftest$ac_exeext
14198 if { (eval echo "$as_me:14198: \"$ac_link\"") >&5
14199 (eval $ac_link) 2>&5
14201 echo "$as_me:14201: \$? = $ac_status" >&5
14202 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14203 { (eval echo "$as_me:14203: \"$ac_try\"") >&5
14204 (eval $ac_try) 2>&5
14206 echo "$as_me:14206: \$? = $ac_status" >&5
14207 (exit $ac_status); }; }; then
14208 cf_cv_link_dataonly=yes
14210 echo "$as_me: program exited with status $ac_status" >&5
14211 echo "$as_me: failed program was:" >&5
14212 cat conftest.$ac_ext >&5
14213 cf_cv_link_dataonly=no
14215 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14217 LIBS="$cf_saveLIBS"
14221 echo "$as_me:14221: result: $cf_cv_link_dataonly" >&5
14222 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
14224 if test "$cf_cv_link_dataonly" = no ; then
14225 cat >>confdefs.h <<\EOF
14226 #define BROKEN_LINKER 1
14232 ### Checks for library functions.
14255 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14256 echo "$as_me:14256: checking for $ac_func" >&5
14257 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14258 if eval "test \"\${$as_ac_var+set}\" = set"; then
14259 echo $ECHO_N "(cached) $ECHO_C" >&6
14261 cat >conftest.$ac_ext <<_ACEOF
14262 #line 14262 "configure"
14263 #include "confdefs.h"
14264 /* System header to define __stub macros and hopefully few prototypes,
14265 which can conflict with char $ac_func (); below. */
14266 #include <assert.h>
14267 /* Override any gcc2 internal prototype to avoid an error. */
14271 /* We use char because int might match the return type of a gcc2
14272 builtin and then its argument prototype would still apply. */
14279 /* The GNU C library defines this for functions which it implements
14280 to always fail with ENOSYS. Some functions are actually named
14281 something starting with __ and the normal name is an alias. */
14282 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14292 rm -f conftest.$ac_objext conftest$ac_exeext
14293 if { (eval echo "$as_me:14293: \"$ac_link\"") >&5
14294 (eval $ac_link) 2>&5
14296 echo "$as_me:14296: \$? = $ac_status" >&5
14297 (exit $ac_status); } &&
14298 { ac_try='test -s conftest$ac_exeext'
14299 { (eval echo "$as_me:14299: \"$ac_try\"") >&5
14300 (eval $ac_try) 2>&5
14302 echo "$as_me:14302: \$? = $ac_status" >&5
14303 (exit $ac_status); }; }; then
14304 eval "$as_ac_var=yes"
14306 echo "$as_me: failed program was:" >&5
14307 cat conftest.$ac_ext >&5
14308 eval "$as_ac_var=no"
14310 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14312 echo "$as_me:14312: result: `eval echo '${'$as_ac_var'}'`" >&5
14313 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14314 if test `eval echo '${'$as_ac_var'}'` = yes; then
14315 cat >>confdefs.h <<EOF
14316 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14322 if test "$with_getcap" = "yes" ; then
14324 echo "$as_me:14324: checking for terminal-capability database functions" >&5
14325 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
14326 if test "${cf_cv_cgetent+set}" = set; then
14327 echo $ECHO_N "(cached) $ECHO_C" >&6
14330 cat >conftest.$ac_ext <<_ACEOF
14331 #line 14331 "configure"
14332 #include "confdefs.h"
14334 #include <stdlib.h>
14341 char *db_array = temp;
14342 cgetent(&buf, /* int *, */ &db_array, "vt100");
14343 cgetcap(buf, "tc", '=');
14344 cgetmatch(buf, "tc");
14350 rm -f conftest.$ac_objext conftest$ac_exeext
14351 if { (eval echo "$as_me:14351: \"$ac_link\"") >&5
14352 (eval $ac_link) 2>&5
14354 echo "$as_me:14354: \$? = $ac_status" >&5
14355 (exit $ac_status); } &&
14356 { ac_try='test -s conftest$ac_exeext'
14357 { (eval echo "$as_me:14357: \"$ac_try\"") >&5
14358 (eval $ac_try) 2>&5
14360 echo "$as_me:14360: \$? = $ac_status" >&5
14361 (exit $ac_status); }; }; then
14364 echo "$as_me: failed program was:" >&5
14365 cat conftest.$ac_ext >&5
14368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14372 echo "$as_me:14372: result: $cf_cv_cgetent" >&5
14373 echo "${ECHO_T}$cf_cv_cgetent" >&6
14374 test "$cf_cv_cgetent" = yes && cat >>confdefs.h <<\EOF
14375 #define HAVE_BSD_CGETENT 1
14380 echo "$as_me:14380: checking for isascii" >&5
14381 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
14382 if test "${cf_cv_have_isascii+set}" = set; then
14383 echo $ECHO_N "(cached) $ECHO_C" >&6
14386 cat >conftest.$ac_ext <<_ACEOF
14387 #line 14387 "configure"
14388 #include "confdefs.h"
14393 int x = isascii(' ')
14398 rm -f conftest.$ac_objext conftest$ac_exeext
14399 if { (eval echo "$as_me:14399: \"$ac_link\"") >&5
14400 (eval $ac_link) 2>&5
14402 echo "$as_me:14402: \$? = $ac_status" >&5
14403 (exit $ac_status); } &&
14404 { ac_try='test -s conftest$ac_exeext'
14405 { (eval echo "$as_me:14405: \"$ac_try\"") >&5
14406 (eval $ac_try) 2>&5
14408 echo "$as_me:14408: \$? = $ac_status" >&5
14409 (exit $ac_status); }; }; then
14410 cf_cv_have_isascii=yes
14412 echo "$as_me: failed program was:" >&5
14413 cat conftest.$ac_ext >&5
14414 cf_cv_have_isascii=no
14416 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14419 echo "$as_me:14419: result: $cf_cv_have_isascii" >&5
14420 echo "${ECHO_T}$cf_cv_have_isascii" >&6
14421 test "$cf_cv_have_isascii" = yes && cat >>confdefs.h <<\EOF
14422 #define HAVE_ISASCII 1
14425 if test "$ac_cv_func_sigaction" = yes; then
14426 echo "$as_me:14426: checking whether sigaction needs _POSIX_SOURCE" >&5
14427 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
14428 cat >conftest.$ac_ext <<_ACEOF
14429 #line 14429 "configure"
14430 #include "confdefs.h"
14432 #include <sys/types.h>
14433 #include <signal.h>
14437 struct sigaction act
14442 rm -f conftest.$ac_objext
14443 if { (eval echo "$as_me:14443: \"$ac_compile\"") >&5
14444 (eval $ac_compile) 2>&5
14446 echo "$as_me:14446: \$? = $ac_status" >&5
14447 (exit $ac_status); } &&
14448 { ac_try='test -s conftest.$ac_objext'
14449 { (eval echo "$as_me:14449: \"$ac_try\"") >&5
14450 (eval $ac_try) 2>&5
14452 echo "$as_me:14452: \$? = $ac_status" >&5
14453 (exit $ac_status); }; }; then
14456 echo "$as_me: failed program was:" >&5
14457 cat conftest.$ac_ext >&5
14459 cat >conftest.$ac_ext <<_ACEOF
14460 #line 14460 "configure"
14461 #include "confdefs.h"
14463 #define _POSIX_SOURCE
14464 #include <sys/types.h>
14465 #include <signal.h>
14469 struct sigaction act
14474 rm -f conftest.$ac_objext
14475 if { (eval echo "$as_me:14475: \"$ac_compile\"") >&5
14476 (eval $ac_compile) 2>&5
14478 echo "$as_me:14478: \$? = $ac_status" >&5
14479 (exit $ac_status); } &&
14480 { ac_try='test -s conftest.$ac_objext'
14481 { (eval echo "$as_me:14481: \"$ac_try\"") >&5
14482 (eval $ac_try) 2>&5
14484 echo "$as_me:14484: \$? = $ac_status" >&5
14485 (exit $ac_status); }; }; then
14487 cat >>confdefs.h <<\EOF
14488 #define SVR4_ACTION 1
14492 echo "$as_me: failed program was:" >&5
14493 cat conftest.$ac_ext >&5
14496 rm -f conftest.$ac_objext conftest.$ac_ext
14498 rm -f conftest.$ac_objext conftest.$ac_ext
14499 echo "$as_me:14499: result: $sigact_bad" >&5
14500 echo "${ECHO_T}$sigact_bad" >&6
14503 echo "$as_me:14503: checking if nanosleep really works" >&5
14504 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
14505 if test "${cf_cv_func_nanosleep+set}" = set; then
14506 echo $ECHO_N "(cached) $ECHO_C" >&6
14509 if test "$cross_compiling" = yes; then
14510 cf_cv_func_nanosleep=unknown
14512 cat >conftest.$ac_ext <<_ACEOF
14513 #line 14513 "configure"
14514 #include "confdefs.h"
14520 #ifdef HAVE_SYS_TIME_H
14521 #include <sys/time.h>
14525 struct timespec ts1, ts2;
14528 ts1.tv_nsec = 750000000;
14532 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
14533 ${cf_cv_main_return:-return}(code != 0);
14537 rm -f conftest$ac_exeext
14538 if { (eval echo "$as_me:14538: \"$ac_link\"") >&5
14539 (eval $ac_link) 2>&5
14541 echo "$as_me:14541: \$? = $ac_status" >&5
14542 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14543 { (eval echo "$as_me:14543: \"$ac_try\"") >&5
14544 (eval $ac_try) 2>&5
14546 echo "$as_me:14546: \$? = $ac_status" >&5
14547 (exit $ac_status); }; }; then
14548 cf_cv_func_nanosleep=yes
14550 echo "$as_me: program exited with status $ac_status" >&5
14551 echo "$as_me: failed program was:" >&5
14552 cat conftest.$ac_ext >&5
14553 cf_cv_func_nanosleep=no
14555 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14558 echo "$as_me:14558: result: $cf_cv_func_nanosleep" >&5
14559 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
14561 test "$cf_cv_func_nanosleep" = "yes" && cat >>confdefs.h <<\EOF
14562 #define HAVE_NANOSLEEP 1
14571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14572 echo "$as_me:14572: checking for $ac_header" >&5
14573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14574 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14575 echo $ECHO_N "(cached) $ECHO_C" >&6
14577 cat >conftest.$ac_ext <<_ACEOF
14578 #line 14578 "configure"
14579 #include "confdefs.h"
14580 #include <$ac_header>
14582 if { (eval echo "$as_me:14582: \"$ac_cpp conftest.$ac_ext\"") >&5
14583 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14585 egrep -v '^ *\+' conftest.er1 >conftest.err
14587 cat conftest.err >&5
14588 echo "$as_me:14588: \$? = $ac_status" >&5
14589 (exit $ac_status); } >/dev/null; then
14590 if test -s conftest.err; then
14591 ac_cpp_err=$ac_c_preproc_warn_flag
14598 if test -z "$ac_cpp_err"; then
14599 eval "$as_ac_Header=yes"
14601 echo "$as_me: failed program was:" >&5
14602 cat conftest.$ac_ext >&5
14603 eval "$as_ac_Header=no"
14605 rm -f conftest.err conftest.$ac_ext
14607 echo "$as_me:14607: result: `eval echo '${'$as_ac_Header'}'`" >&5
14608 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14610 cat >>confdefs.h <<EOF
14611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14617 if test "$ISC" = yes ; then
14619 for ac_header in sys/termio.h
14621 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14622 echo "$as_me:14622: checking for $ac_header" >&5
14623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14625 echo $ECHO_N "(cached) $ECHO_C" >&6
14627 cat >conftest.$ac_ext <<_ACEOF
14628 #line 14628 "configure"
14629 #include "confdefs.h"
14630 #include <$ac_header>
14632 if { (eval echo "$as_me:14632: \"$ac_cpp conftest.$ac_ext\"") >&5
14633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14635 egrep -v '^ *\+' conftest.er1 >conftest.err
14637 cat conftest.err >&5
14638 echo "$as_me:14638: \$? = $ac_status" >&5
14639 (exit $ac_status); } >/dev/null; then
14640 if test -s conftest.err; then
14641 ac_cpp_err=$ac_c_preproc_warn_flag
14648 if test -z "$ac_cpp_err"; then
14649 eval "$as_ac_Header=yes"
14651 echo "$as_me: failed program was:" >&5
14652 cat conftest.$ac_ext >&5
14653 eval "$as_ac_Header=no"
14655 rm -f conftest.err conftest.$ac_ext
14657 echo "$as_me:14657: result: `eval echo '${'$as_ac_Header'}'`" >&5
14658 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14660 cat >>confdefs.h <<EOF
14661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14668 if test "$ac_cv_header_termios_h" = yes ; then
14669 case "$CFLAGS $CPPFLAGS" in
14671 termios_bad=dunno ;;
14672 *) termios_bad=maybe ;;
14674 if test "$termios_bad" = maybe ; then
14675 echo "$as_me:14675: checking whether termios.h needs _POSIX_SOURCE" >&5
14676 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
14677 cat >conftest.$ac_ext <<_ACEOF
14678 #line 14678 "configure"
14679 #include "confdefs.h"
14680 #include <termios.h>
14684 struct termios foo; int x = foo.c_iflag
14689 rm -f conftest.$ac_objext
14690 if { (eval echo "$as_me:14690: \"$ac_compile\"") >&5
14691 (eval $ac_compile) 2>&5
14693 echo "$as_me:14693: \$? = $ac_status" >&5
14694 (exit $ac_status); } &&
14695 { ac_try='test -s conftest.$ac_objext'
14696 { (eval echo "$as_me:14696: \"$ac_try\"") >&5
14697 (eval $ac_try) 2>&5
14699 echo "$as_me:14699: \$? = $ac_status" >&5
14700 (exit $ac_status); }; }; then
14703 echo "$as_me: failed program was:" >&5
14704 cat conftest.$ac_ext >&5
14706 cat >conftest.$ac_ext <<_ACEOF
14707 #line 14707 "configure"
14708 #include "confdefs.h"
14710 #define _POSIX_SOURCE
14711 #include <termios.h>
14715 struct termios foo; int x = foo.c_iflag
14720 rm -f conftest.$ac_objext
14721 if { (eval echo "$as_me:14721: \"$ac_compile\"") >&5
14722 (eval $ac_compile) 2>&5
14724 echo "$as_me:14724: \$? = $ac_status" >&5
14725 (exit $ac_status); } &&
14726 { ac_try='test -s conftest.$ac_objext'
14727 { (eval echo "$as_me:14727: \"$ac_try\"") >&5
14728 (eval $ac_try) 2>&5
14730 echo "$as_me:14730: \$? = $ac_status" >&5
14731 (exit $ac_status); }; }; then
14732 termios_bad=unknown
14734 echo "$as_me: failed program was:" >&5
14735 cat conftest.$ac_ext >&5
14736 termios_bad=yes cat >>confdefs.h <<\EOF
14737 #define SVR4_TERMIO 1
14741 rm -f conftest.$ac_objext conftest.$ac_ext
14744 rm -f conftest.$ac_objext conftest.$ac_ext
14745 echo "$as_me:14745: result: $termios_bad" >&5
14746 echo "${ECHO_T}$termios_bad" >&6
14750 echo "$as_me:14750: checking for tcgetattr" >&5
14751 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
14752 if test "${cf_cv_have_tcgetattr+set}" = set; then
14753 echo $ECHO_N "(cached) $ECHO_C" >&6
14756 cat >conftest.$ac_ext <<_ACEOF
14757 #line 14757 "configure"
14758 #include "confdefs.h"
14760 #include <sys/types.h>
14761 #ifdef HAVE_UNISTD_H
14762 #include <unistd.h>
14764 #ifdef HAVE_TERMIOS_H
14765 #include <termios.h>
14766 #define TTY struct termios
14768 #ifdef HAVE_TERMIO_H
14769 #include <termio.h>
14770 #define TTY struct termio
14779 tcgetattr(1, &foo);
14784 rm -f conftest.$ac_objext conftest$ac_exeext
14785 if { (eval echo "$as_me:14785: \"$ac_link\"") >&5
14786 (eval $ac_link) 2>&5
14788 echo "$as_me:14788: \$? = $ac_status" >&5
14789 (exit $ac_status); } &&
14790 { ac_try='test -s conftest$ac_exeext'
14791 { (eval echo "$as_me:14791: \"$ac_try\"") >&5
14792 (eval $ac_try) 2>&5
14794 echo "$as_me:14794: \$? = $ac_status" >&5
14795 (exit $ac_status); }; }; then
14796 cf_cv_have_tcgetattr=yes
14798 echo "$as_me: failed program was:" >&5
14799 cat conftest.$ac_ext >&5
14800 cf_cv_have_tcgetattr=no
14802 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14804 echo "$as_me:14804: result: $cf_cv_have_tcgetattr" >&5
14805 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
14806 test "$cf_cv_have_tcgetattr" = yes && cat >>confdefs.h <<\EOF
14807 #define HAVE_TCGETATTR 1
14810 echo "$as_me:14810: checking for vsscanf function or workaround" >&5
14811 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
14812 if test "${cf_cv_func_vsscanf+set}" = set; then
14813 echo $ECHO_N "(cached) $ECHO_C" >&6
14816 cat >conftest.$ac_ext <<_ACEOF
14817 #line 14817 "configure"
14818 #include "confdefs.h"
14820 #include <stdarg.h>
14827 vsscanf("from", "%d", ap)
14832 rm -f conftest.$ac_objext conftest$ac_exeext
14833 if { (eval echo "$as_me:14833: \"$ac_link\"") >&5
14834 (eval $ac_link) 2>&5
14836 echo "$as_me:14836: \$? = $ac_status" >&5
14837 (exit $ac_status); } &&
14838 { ac_try='test -s conftest$ac_exeext'
14839 { (eval echo "$as_me:14839: \"$ac_try\"") >&5
14840 (eval $ac_try) 2>&5
14842 echo "$as_me:14842: \$? = $ac_status" >&5
14843 (exit $ac_status); }; }; then
14844 cf_cv_func_vsscanf=vsscanf
14846 echo "$as_me: failed program was:" >&5
14847 cat conftest.$ac_ext >&5
14849 cat >conftest.$ac_ext <<_ACEOF
14850 #line 14850 "configure"
14851 #include "confdefs.h"
14853 #include <stdarg.h>
14860 char *str = "from";
14862 strbuf._flag = _IOREAD;
14863 strbuf._ptr = strbuf._base = (unsigned char *) str;
14864 strbuf._cnt = strlen(str);
14865 strbuf._file = _NFILE;
14866 return (vfscanf(&strbuf, "%d", ap))
14871 rm -f conftest.$ac_objext conftest$ac_exeext
14872 if { (eval echo "$as_me:14872: \"$ac_link\"") >&5
14873 (eval $ac_link) 2>&5
14875 echo "$as_me:14875: \$? = $ac_status" >&5
14876 (exit $ac_status); } &&
14877 { ac_try='test -s conftest$ac_exeext'
14878 { (eval echo "$as_me:14878: \"$ac_try\"") >&5
14879 (eval $ac_try) 2>&5
14881 echo "$as_me:14881: \$? = $ac_status" >&5
14882 (exit $ac_status); }; }; then
14883 cf_cv_func_vsscanf=vfscanf
14885 echo "$as_me: failed program was:" >&5
14886 cat conftest.$ac_ext >&5
14888 cat >conftest.$ac_ext <<_ACEOF
14889 #line 14889 "configure"
14890 #include "confdefs.h"
14892 #include <stdarg.h>
14899 char *str = "from";
14901 strbuf._flag = _IOREAD;
14902 strbuf._ptr = strbuf._base = (unsigned char *) str;
14903 strbuf._cnt = strlen(str);
14904 strbuf._file = _NFILE;
14905 return (_doscan(&strbuf, "%d", ap))
14910 rm -f conftest.$ac_objext conftest$ac_exeext
14911 if { (eval echo "$as_me:14911: \"$ac_link\"") >&5
14912 (eval $ac_link) 2>&5
14914 echo "$as_me:14914: \$? = $ac_status" >&5
14915 (exit $ac_status); } &&
14916 { ac_try='test -s conftest$ac_exeext'
14917 { (eval echo "$as_me:14917: \"$ac_try\"") >&5
14918 (eval $ac_try) 2>&5
14920 echo "$as_me:14920: \$? = $ac_status" >&5
14921 (exit $ac_status); }; }; then
14922 cf_cv_func_vsscanf=_doscan
14924 echo "$as_me: failed program was:" >&5
14925 cat conftest.$ac_ext >&5
14927 cf_cv_func_vsscanf=no
14929 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14931 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14933 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14935 echo "$as_me:14935: result: $cf_cv_func_vsscanf" >&5
14936 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
14938 case $cf_cv_func_vsscanf in #(vi
14939 vsscanf) cat >>confdefs.h <<\EOF
14940 #define HAVE_VSSCANF 1
14943 vfscanf) cat >>confdefs.h <<\EOF
14944 #define HAVE_VFSCANF 1
14947 _doscan) cat >>confdefs.h <<\EOF
14948 #define HAVE__DOSCAN 1
14953 echo "$as_me:14953: checking for working mkstemp" >&5
14954 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
14955 if test "${cf_cv_func_mkstemp+set}" = set; then
14956 echo $ECHO_N "(cached) $ECHO_C" >&6
14960 if test "$cross_compiling" = yes; then
14961 echo "$as_me:14961: checking for mkstemp" >&5
14962 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
14963 if test "${ac_cv_func_mkstemp+set}" = set; then
14964 echo $ECHO_N "(cached) $ECHO_C" >&6
14966 cat >conftest.$ac_ext <<_ACEOF
14967 #line 14967 "configure"
14968 #include "confdefs.h"
14969 /* System header to define __stub macros and hopefully few prototypes,
14970 which can conflict with char mkstemp (); below. */
14971 #include <assert.h>
14972 /* Override any gcc2 internal prototype to avoid an error. */
14976 /* We use char because int might match the return type of a gcc2
14977 builtin and then its argument prototype would still apply. */
14984 /* The GNU C library defines this for functions which it implements
14985 to always fail with ENOSYS. Some functions are actually named
14986 something starting with __ and the normal name is an alias. */
14987 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
14997 rm -f conftest.$ac_objext conftest$ac_exeext
14998 if { (eval echo "$as_me:14998: \"$ac_link\"") >&5
14999 (eval $ac_link) 2>&5
15001 echo "$as_me:15001: \$? = $ac_status" >&5
15002 (exit $ac_status); } &&
15003 { ac_try='test -s conftest$ac_exeext'
15004 { (eval echo "$as_me:15004: \"$ac_try\"") >&5
15005 (eval $ac_try) 2>&5
15007 echo "$as_me:15007: \$? = $ac_status" >&5
15008 (exit $ac_status); }; }; then
15009 ac_cv_func_mkstemp=yes
15011 echo "$as_me: failed program was:" >&5
15012 cat conftest.$ac_ext >&5
15013 ac_cv_func_mkstemp=no
15015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15017 echo "$as_me:15017: result: $ac_cv_func_mkstemp" >&5
15018 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
15021 cat >conftest.$ac_ext <<_ACEOF
15022 #line 15022 "configure"
15023 #include "confdefs.h"
15025 #include <sys/types.h>
15026 #include <stdlib.h>
15028 #include <string.h>
15029 #include <sys/stat.h>
15032 char *tmpl = "conftestXXXXXX";
15040 for (n = 0; n < 2; ++n) {
15041 strcpy(name[n], tmpl);
15042 if ((fd = mkstemp(name[n])) >= 0) {
15043 if (!strcmp(name[n], tmpl)
15044 || stat(name[n], &sb) != 0
15045 || (sb.st_mode & S_IFMT) != S_IFREG
15046 || (sb.st_mode & 077) != 0) {
15053 && !strcmp(name[0], name[1]))
15055 ${cf_cv_main_return:-return}(result);
15059 rm -f conftest$ac_exeext
15060 if { (eval echo "$as_me:15060: \"$ac_link\"") >&5
15061 (eval $ac_link) 2>&5
15063 echo "$as_me:15063: \$? = $ac_status" >&5
15064 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_func_mkstemp=yes
15073 echo "$as_me: program exited with status $ac_status" >&5
15074 echo "$as_me: failed program was:" >&5
15075 cat conftest.$ac_ext >&5
15076 cf_cv_func_mkstemp=no
15079 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15083 echo "$as_me:15083: result: $cf_cv_func_mkstemp" >&5
15084 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
15085 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
15086 cat >>confdefs.h <<\EOF
15087 #define HAVE_MKSTEMP 1
15092 # setup for prototype of fallback for vsscanf()
15094 if test "$cf_cv_func_vsscanf" = vsscanf ; then
15100 if test "$cross_compiling" = yes ; then
15101 { echo "$as_me:15101: WARNING: cross compiling: assume setvbuf params not reversed" >&5
15102 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
15104 echo "$as_me:15104: checking whether setvbuf arguments are reversed" >&5
15105 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
15106 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
15107 echo $ECHO_N "(cached) $ECHO_C" >&6
15109 if test "$cross_compiling" = yes; then
15110 { { echo "$as_me:15110: error: cannot run test program while cross compiling" >&5
15111 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15112 { (exit 1); exit 1; }; }
15114 cat >conftest.$ac_ext <<_ACEOF
15115 #line 15115 "configure"
15116 #include "confdefs.h"
15118 /* If setvbuf has the reversed format, exit 0. */
15122 /* This call has the arguments reversed.
15123 A reversed system may check and see that the address of main
15124 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
15125 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
15126 $ac_main_return(1);
15127 putc('\r', stdout);
15128 $ac_main_return(0); /* Non-reversed systems segv here. */
15131 rm -f conftest$ac_exeext
15132 if { (eval echo "$as_me:15132: \"$ac_link\"") >&5
15133 (eval $ac_link) 2>&5
15135 echo "$as_me:15135: \$? = $ac_status" >&5
15136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15137 { (eval echo "$as_me:15137: \"$ac_try\"") >&5
15138 (eval $ac_try) 2>&5
15140 echo "$as_me:15140: \$? = $ac_status" >&5
15141 (exit $ac_status); }; }; then
15142 ac_cv_func_setvbuf_reversed=yes
15144 echo "$as_me: program exited with status $ac_status" >&5
15145 echo "$as_me: failed program was:" >&5
15146 cat conftest.$ac_ext >&5
15147 ac_cv_func_setvbuf_reversed=no
15149 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15151 rm -f core core.* *.core
15153 echo "$as_me:15153: result: $ac_cv_func_setvbuf_reversed" >&5
15154 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
15155 if test $ac_cv_func_setvbuf_reversed = yes; then
15157 cat >>confdefs.h <<\EOF
15158 #define SETVBUF_REVERSED 1
15164 echo "$as_me:15164: checking return type of signal handlers" >&5
15165 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
15166 if test "${ac_cv_type_signal+set}" = set; then
15167 echo $ECHO_N "(cached) $ECHO_C" >&6
15169 cat >conftest.$ac_ext <<_ACEOF
15170 #line 15170 "configure"
15171 #include "confdefs.h"
15172 #include <sys/types.h>
15173 #include <signal.h>
15178 extern "C" void (*signal (int, void (*)(int)))(int);
15180 void (*signal ()) ();
15191 rm -f conftest.$ac_objext
15192 if { (eval echo "$as_me:15192: \"$ac_compile\"") >&5
15193 (eval $ac_compile) 2>&5
15195 echo "$as_me:15195: \$? = $ac_status" >&5
15196 (exit $ac_status); } &&
15197 { ac_try='test -s conftest.$ac_objext'
15198 { (eval echo "$as_me:15198: \"$ac_try\"") >&5
15199 (eval $ac_try) 2>&5
15201 echo "$as_me:15201: \$? = $ac_status" >&5
15202 (exit $ac_status); }; }; then
15203 ac_cv_type_signal=void
15205 echo "$as_me: failed program was:" >&5
15206 cat conftest.$ac_ext >&5
15207 ac_cv_type_signal=int
15209 rm -f conftest.$ac_objext conftest.$ac_ext
15211 echo "$as_me:15211: result: $ac_cv_type_signal" >&5
15212 echo "${ECHO_T}$ac_cv_type_signal" >&6
15214 cat >>confdefs.h <<EOF
15215 #define RETSIGTYPE $ac_cv_type_signal
15218 echo "$as_me:15218: checking for type sigaction_t" >&5
15219 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
15220 if test "${cf_cv_type_sigaction+set}" = set; then
15221 echo $ECHO_N "(cached) $ECHO_C" >&6
15224 cat >conftest.$ac_ext <<_ACEOF
15225 #line 15225 "configure"
15226 #include "confdefs.h"
15228 #include <signal.h>
15237 rm -f conftest.$ac_objext
15238 if { (eval echo "$as_me:15238: \"$ac_compile\"") >&5
15239 (eval $ac_compile) 2>&5
15241 echo "$as_me:15241: \$? = $ac_status" >&5
15242 (exit $ac_status); } &&
15243 { ac_try='test -s conftest.$ac_objext'
15244 { (eval echo "$as_me:15244: \"$ac_try\"") >&5
15245 (eval $ac_try) 2>&5
15247 echo "$as_me:15247: \$? = $ac_status" >&5
15248 (exit $ac_status); }; }; then
15249 cf_cv_type_sigaction=yes
15251 echo "$as_me: failed program was:" >&5
15252 cat conftest.$ac_ext >&5
15253 cf_cv_type_sigaction=no
15255 rm -f conftest.$ac_objext conftest.$ac_ext
15258 echo "$as_me:15258: result: $cf_cv_type_sigaction" >&5
15259 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
15260 test "$cf_cv_type_sigaction" = yes && cat >>confdefs.h <<\EOF
15261 #define HAVE_TYPE_SIGACTION 1
15264 echo "$as_me:15264: checking declaration of size-change" >&5
15265 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
15266 if test "${cf_cv_sizechange+set}" = set; then
15267 echo $ECHO_N "(cached) $ECHO_C" >&6
15270 cf_cv_sizechange=unknown
15271 cf_save_CPPFLAGS="$CPPFLAGS"
15273 for cf_opts in "" "NEED_PTEM_H"
15276 CPPFLAGS="$cf_save_CPPFLAGS"
15277 test -n "$cf_opts" && CPPFLAGS="$CPPFLAGS -D$cf_opts"
15278 cat >conftest.$ac_ext <<_ACEOF
15279 #line 15279 "configure"
15280 #include "confdefs.h"
15281 #include <sys/types.h>
15282 #ifdef HAVE_TERMIOS_H
15283 #include <termios.h>
15285 #ifdef HAVE_TERMIO_H
15286 #include <termio.h>
15290 /* This is a workaround for SCO: they neglected to define struct winsize in
15291 * termios.h -- it's only in termio.h and ptem.h
15293 #include <sys/stream.h>
15294 #include <sys/ptem.h>
15296 #if !defined(sun) || !defined(HAVE_TERMIOS_H)
15297 #include <sys/ioctl.h>
15305 struct ttysize win; /* FIXME: what system is this? */
15306 int y = win.ts_lines;
15307 int x = win.ts_cols;
15310 struct winsize win;
15311 int y = win.ws_row;
15312 int x = win.ws_col;
15314 no TIOCGSIZE or TIOCGWINSZ
15315 #endif /* TIOCGWINSZ */
15316 #endif /* TIOCGSIZE */
15322 rm -f conftest.$ac_objext
15323 if { (eval echo "$as_me:15323: \"$ac_compile\"") >&5
15324 (eval $ac_compile) 2>&5
15326 echo "$as_me:15326: \$? = $ac_status" >&5
15327 (exit $ac_status); } &&
15328 { ac_try='test -s conftest.$ac_objext'
15329 { (eval echo "$as_me:15329: \"$ac_try\"") >&5
15330 (eval $ac_try) 2>&5
15332 echo "$as_me:15332: \$? = $ac_status" >&5
15333 (exit $ac_status); }; }; then
15334 cf_cv_sizechange=yes
15336 echo "$as_me: failed program was:" >&5
15337 cat conftest.$ac_ext >&5
15338 cf_cv_sizechange=no
15340 rm -f conftest.$ac_objext conftest.$ac_ext
15342 CPPFLAGS="$cf_save_CPPFLAGS"
15343 if test "$cf_cv_sizechange" = yes ; then
15344 echo "size-change succeeded ($cf_opts)" >&5
15345 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
15351 echo "$as_me:15351: result: $cf_cv_sizechange" >&5
15352 echo "${ECHO_T}$cf_cv_sizechange" >&6
15353 if test "$cf_cv_sizechange" != no ; then
15354 cat >>confdefs.h <<\EOF
15355 #define HAVE_SIZECHANGE 1
15358 case $cf_cv_sizechange in #(vi
15360 cat >>confdefs.h <<EOF
15361 #define $cf_cv_sizechange 1
15368 echo "$as_me:15368: checking for memmove" >&5
15369 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
15370 if test "${ac_cv_func_memmove+set}" = set; then
15371 echo $ECHO_N "(cached) $ECHO_C" >&6
15373 cat >conftest.$ac_ext <<_ACEOF
15374 #line 15374 "configure"
15375 #include "confdefs.h"
15376 /* System header to define __stub macros and hopefully few prototypes,
15377 which can conflict with char memmove (); below. */
15378 #include <assert.h>
15379 /* Override any gcc2 internal prototype to avoid an error. */
15383 /* We use char because int might match the return type of a gcc2
15384 builtin and then its argument prototype would still apply. */
15391 /* The GNU C library defines this for functions which it implements
15392 to always fail with ENOSYS. Some functions are actually named
15393 something starting with __ and the normal name is an alias. */
15394 #if defined (__stub_memmove) || defined (__stub___memmove)
15404 rm -f conftest.$ac_objext conftest$ac_exeext
15405 if { (eval echo "$as_me:15405: \"$ac_link\"") >&5
15406 (eval $ac_link) 2>&5
15408 echo "$as_me:15408: \$? = $ac_status" >&5
15409 (exit $ac_status); } &&
15410 { ac_try='test -s conftest$ac_exeext'
15411 { (eval echo "$as_me:15411: \"$ac_try\"") >&5
15412 (eval $ac_try) 2>&5
15414 echo "$as_me:15414: \$? = $ac_status" >&5
15415 (exit $ac_status); }; }; then
15416 ac_cv_func_memmove=yes
15418 echo "$as_me: failed program was:" >&5
15419 cat conftest.$ac_ext >&5
15420 ac_cv_func_memmove=no
15422 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15424 echo "$as_me:15424: result: $ac_cv_func_memmove" >&5
15425 echo "${ECHO_T}$ac_cv_func_memmove" >&6
15426 if test $ac_cv_func_memmove = yes; then
15430 echo "$as_me:15430: checking for bcopy" >&5
15431 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
15432 if test "${ac_cv_func_bcopy+set}" = set; then
15433 echo $ECHO_N "(cached) $ECHO_C" >&6
15435 cat >conftest.$ac_ext <<_ACEOF
15436 #line 15436 "configure"
15437 #include "confdefs.h"
15438 /* System header to define __stub macros and hopefully few prototypes,
15439 which can conflict with char bcopy (); below. */
15440 #include <assert.h>
15441 /* Override any gcc2 internal prototype to avoid an error. */
15445 /* We use char because int might match the return type of a gcc2
15446 builtin and then its argument prototype would still apply. */
15453 /* The GNU C library defines this for functions which it implements
15454 to always fail with ENOSYS. Some functions are actually named
15455 something starting with __ and the normal name is an alias. */
15456 #if defined (__stub_bcopy) || defined (__stub___bcopy)
15466 rm -f conftest.$ac_objext conftest$ac_exeext
15467 if { (eval echo "$as_me:15467: \"$ac_link\"") >&5
15468 (eval $ac_link) 2>&5
15470 echo "$as_me:15470: \$? = $ac_status" >&5
15471 (exit $ac_status); } &&
15472 { ac_try='test -s conftest$ac_exeext'
15473 { (eval echo "$as_me:15473: \"$ac_try\"") >&5
15474 (eval $ac_try) 2>&5
15476 echo "$as_me:15476: \$? = $ac_status" >&5
15477 (exit $ac_status); }; }; then
15478 ac_cv_func_bcopy=yes
15480 echo "$as_me: failed program was:" >&5
15481 cat conftest.$ac_ext >&5
15482 ac_cv_func_bcopy=no
15484 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15486 echo "$as_me:15486: result: $ac_cv_func_bcopy" >&5
15487 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
15488 if test $ac_cv_func_bcopy = yes; then
15490 echo "$as_me:15490: checking if bcopy does overlapping moves" >&5
15491 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
15492 if test "${cf_cv_good_bcopy+set}" = set; then
15493 echo $ECHO_N "(cached) $ECHO_C" >&6
15496 if test "$cross_compiling" = yes; then
15497 cf_cv_good_bcopy=unknown
15499 cat >conftest.$ac_ext <<_ACEOF
15500 #line 15500 "configure"
15501 #include "confdefs.h"
15504 static char data[] = "abcdefghijklmnopqrstuwwxyz";
15506 bcopy(data, temp, sizeof(data));
15507 bcopy(temp+10, temp, 15);
15508 bcopy(temp+5, temp+15, 10);
15509 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
15513 rm -f conftest$ac_exeext
15514 if { (eval echo "$as_me:15514: \"$ac_link\"") >&5
15515 (eval $ac_link) 2>&5
15517 echo "$as_me:15517: \$? = $ac_status" >&5
15518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15519 { (eval echo "$as_me:15519: \"$ac_try\"") >&5
15520 (eval $ac_try) 2>&5
15522 echo "$as_me:15522: \$? = $ac_status" >&5
15523 (exit $ac_status); }; }; then
15524 cf_cv_good_bcopy=yes
15526 echo "$as_me: program exited with status $ac_status" >&5
15527 echo "$as_me: failed program was:" >&5
15528 cat conftest.$ac_ext >&5
15529 cf_cv_good_bcopy=no
15531 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15535 echo "$as_me:15535: result: $cf_cv_good_bcopy" >&5
15536 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
15539 cf_cv_good_bcopy=no
15542 if test "$cf_cv_good_bcopy" = yes ; then
15543 cat >>confdefs.h <<\EOF
15544 #define USE_OK_BCOPY 1
15548 cat >>confdefs.h <<\EOF
15549 #define USE_MY_MEMMOVE 1
15556 echo "$as_me:15556: checking if poll really works" >&5
15557 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
15558 if test "${cf_cv_working_poll+set}" = set; then
15559 echo $ECHO_N "(cached) $ECHO_C" >&6
15562 if test "$cross_compiling" = yes; then
15563 cf_cv_working_poll=unknown
15565 cat >conftest.$ac_ext <<_ACEOF
15566 #line 15566 "configure"
15567 #include "confdefs.h"
15573 #include <sys/poll.h>
15576 struct pollfd myfds;
15580 myfds.events = POLLIN;
15582 ret = poll(&myfds, 1, 100);
15583 ${cf_cv_main_return:-return}(ret != 0);
15586 rm -f conftest$ac_exeext
15587 if { (eval echo "$as_me:15587: \"$ac_link\"") >&5
15588 (eval $ac_link) 2>&5
15590 echo "$as_me:15590: \$? = $ac_status" >&5
15591 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15592 { (eval echo "$as_me:15592: \"$ac_try\"") >&5
15593 (eval $ac_try) 2>&5
15595 echo "$as_me:15595: \$? = $ac_status" >&5
15596 (exit $ac_status); }; }; then
15597 cf_cv_working_poll=yes
15599 echo "$as_me: program exited with status $ac_status" >&5
15600 echo "$as_me: failed program was:" >&5
15601 cat conftest.$ac_ext >&5
15602 cf_cv_working_poll=no
15604 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15607 echo "$as_me:15607: result: $cf_cv_working_poll" >&5
15608 echo "${ECHO_T}$cf_cv_working_poll" >&6
15609 test "$cf_cv_working_poll" = "yes" && cat >>confdefs.h <<\EOF
15610 #define HAVE_WORKING_POLL 1
15613 echo "$as_me:15613: checking for va_copy" >&5
15614 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
15615 if test "${cf_cv_have_va_copy+set}" = set; then
15616 echo $ECHO_N "(cached) $ECHO_C" >&6
15619 cat >conftest.$ac_ext <<_ACEOF
15620 #line 15620 "configure"
15621 #include "confdefs.h"
15623 #include <stdarg.h>
15629 static va_list dst;
15630 static va_list src;
15636 rm -f conftest.$ac_objext conftest$ac_exeext
15637 if { (eval echo "$as_me:15637: \"$ac_link\"") >&5
15638 (eval $ac_link) 2>&5
15640 echo "$as_me:15640: \$? = $ac_status" >&5
15641 (exit $ac_status); } &&
15642 { ac_try='test -s conftest$ac_exeext'
15643 { (eval echo "$as_me:15643: \"$ac_try\"") >&5
15644 (eval $ac_try) 2>&5
15646 echo "$as_me:15646: \$? = $ac_status" >&5
15647 (exit $ac_status); }; }; then
15648 cf_cv_have_va_copy=yes
15650 echo "$as_me: failed program was:" >&5
15651 cat conftest.$ac_ext >&5
15652 cf_cv_have_va_copy=no
15654 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15656 echo "$as_me:15656: result: $cf_cv_have_va_copy" >&5
15657 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
15659 test "$cf_cv_have_va_copy" = yes && cat >>confdefs.h <<\EOF
15660 #define HAVE_VA_COPY 1
15663 echo "$as_me:15663: checking for __va_copy" >&5
15664 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
15665 if test "${cf_cv_have___va_copy+set}" = set; then
15666 echo $ECHO_N "(cached) $ECHO_C" >&6
15669 cat >conftest.$ac_ext <<_ACEOF
15670 #line 15670 "configure"
15671 #include "confdefs.h"
15673 #include <stdarg.h>
15679 static va_list dst;
15680 static va_list src;
15681 __va_copy(dst, src)
15686 rm -f conftest.$ac_objext conftest$ac_exeext
15687 if { (eval echo "$as_me:15687: \"$ac_link\"") >&5
15688 (eval $ac_link) 2>&5
15690 echo "$as_me:15690: \$? = $ac_status" >&5
15691 (exit $ac_status); } &&
15692 { ac_try='test -s conftest$ac_exeext'
15693 { (eval echo "$as_me:15693: \"$ac_try\"") >&5
15694 (eval $ac_try) 2>&5
15696 echo "$as_me:15696: \$? = $ac_status" >&5
15697 (exit $ac_status); }; }; then
15698 cf_cv_have___va_copy=yes
15700 echo "$as_me: failed program was:" >&5
15701 cat conftest.$ac_ext >&5
15702 cf_cv_have___va_copy=no
15704 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15706 echo "$as_me:15706: result: $cf_cv_have___va_copy" >&5
15707 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
15709 test "$cf_cv_have___va_copy" = yes && cat >>confdefs.h <<\EOF
15710 #define HAVE___VA_COPY 1
15713 echo "$as_me:15713: checking for pid_t" >&5
15714 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15715 if test "${ac_cv_type_pid_t+set}" = set; then
15716 echo $ECHO_N "(cached) $ECHO_C" >&6
15718 cat >conftest.$ac_ext <<_ACEOF
15719 #line 15719 "configure"
15720 #include "confdefs.h"
15721 $ac_includes_default
15727 if (sizeof (pid_t))
15733 rm -f conftest.$ac_objext
15734 if { (eval echo "$as_me:15734: \"$ac_compile\"") >&5
15735 (eval $ac_compile) 2>&5
15737 echo "$as_me:15737: \$? = $ac_status" >&5
15738 (exit $ac_status); } &&
15739 { ac_try='test -s conftest.$ac_objext'
15740 { (eval echo "$as_me:15740: \"$ac_try\"") >&5
15741 (eval $ac_try) 2>&5
15743 echo "$as_me:15743: \$? = $ac_status" >&5
15744 (exit $ac_status); }; }; then
15745 ac_cv_type_pid_t=yes
15747 echo "$as_me: failed program was:" >&5
15748 cat conftest.$ac_ext >&5
15749 ac_cv_type_pid_t=no
15751 rm -f conftest.$ac_objext conftest.$ac_ext
15753 echo "$as_me:15753: result: $ac_cv_type_pid_t" >&5
15754 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15755 if test $ac_cv_type_pid_t = yes; then
15759 cat >>confdefs.h <<EOF
15765 for ac_header in unistd.h vfork.h
15767 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15768 echo "$as_me:15768: checking for $ac_header" >&5
15769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15771 echo $ECHO_N "(cached) $ECHO_C" >&6
15773 cat >conftest.$ac_ext <<_ACEOF
15774 #line 15774 "configure"
15775 #include "confdefs.h"
15776 #include <$ac_header>
15778 if { (eval echo "$as_me:15778: \"$ac_cpp conftest.$ac_ext\"") >&5
15779 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15781 egrep -v '^ *\+' conftest.er1 >conftest.err
15783 cat conftest.err >&5
15784 echo "$as_me:15784: \$? = $ac_status" >&5
15785 (exit $ac_status); } >/dev/null; then
15786 if test -s conftest.err; then
15787 ac_cpp_err=$ac_c_preproc_warn_flag
15794 if test -z "$ac_cpp_err"; then
15795 eval "$as_ac_Header=yes"
15797 echo "$as_me: failed program was:" >&5
15798 cat conftest.$ac_ext >&5
15799 eval "$as_ac_Header=no"
15801 rm -f conftest.err conftest.$ac_ext
15803 echo "$as_me:15803: result: `eval echo '${'$as_ac_Header'}'`" >&5
15804 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15805 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15806 cat >>confdefs.h <<EOF
15807 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15813 for ac_func in fork vfork
15815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15816 echo "$as_me:15816: checking for $ac_func" >&5
15817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15818 if eval "test \"\${$as_ac_var+set}\" = set"; then
15819 echo $ECHO_N "(cached) $ECHO_C" >&6
15821 cat >conftest.$ac_ext <<_ACEOF
15822 #line 15822 "configure"
15823 #include "confdefs.h"
15824 /* System header to define __stub macros and hopefully few prototypes,
15825 which can conflict with char $ac_func (); below. */
15826 #include <assert.h>
15827 /* Override any gcc2 internal prototype to avoid an error. */
15831 /* We use char because int might match the return type of a gcc2
15832 builtin and then its argument prototype would still apply. */
15839 /* The GNU C library defines this for functions which it implements
15840 to always fail with ENOSYS. Some functions are actually named
15841 something starting with __ and the normal name is an alias. */
15842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15852 rm -f conftest.$ac_objext conftest$ac_exeext
15853 if { (eval echo "$as_me:15853: \"$ac_link\"") >&5
15854 (eval $ac_link) 2>&5
15856 echo "$as_me:15856: \$? = $ac_status" >&5
15857 (exit $ac_status); } &&
15858 { ac_try='test -s conftest$ac_exeext'
15859 { (eval echo "$as_me:15859: \"$ac_try\"") >&5
15860 (eval $ac_try) 2>&5
15862 echo "$as_me:15862: \$? = $ac_status" >&5
15863 (exit $ac_status); }; }; then
15864 eval "$as_ac_var=yes"
15866 echo "$as_me: failed program was:" >&5
15867 cat conftest.$ac_ext >&5
15868 eval "$as_ac_var=no"
15870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15872 echo "$as_me:15872: result: `eval echo '${'$as_ac_var'}'`" >&5
15873 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15874 if test `eval echo '${'$as_ac_var'}'` = yes; then
15875 cat >>confdefs.h <<EOF
15876 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15882 ac_cv_func_fork_works=$ac_cv_func_fork
15883 if test "x$ac_cv_func_fork" = xyes; then
15884 echo "$as_me:15884: checking for working fork" >&5
15885 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15886 if test "${ac_cv_func_fork_works+set}" = set; then
15887 echo $ECHO_N "(cached) $ECHO_C" >&6
15889 if test "$cross_compiling" = yes; then
15890 ac_cv_func_fork_works=cross
15892 cat >conftest.$ac_ext <<_ACEOF
15893 /* By Rüdiger Kuhlmann. */
15894 #include <sys/types.h>
15896 # include <unistd.h>
15898 /* Some systems only have a dummy stub for fork() */
15902 $ac_main_return (1);
15903 $ac_main_return (0);
15906 rm -f conftest$ac_exeext
15907 if { (eval echo "$as_me:15907: \"$ac_link\"") >&5
15908 (eval $ac_link) 2>&5
15910 echo "$as_me:15910: \$? = $ac_status" >&5
15911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15912 { (eval echo "$as_me:15912: \"$ac_try\"") >&5
15913 (eval $ac_try) 2>&5
15915 echo "$as_me:15915: \$? = $ac_status" >&5
15916 (exit $ac_status); }; }; then
15917 ac_cv_func_fork_works=yes
15919 echo "$as_me: program exited with status $ac_status" >&5
15920 echo "$as_me: failed program was:" >&5
15921 cat conftest.$ac_ext >&5
15922 ac_cv_func_fork_works=no
15924 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15927 echo "$as_me:15927: result: $ac_cv_func_fork_works" >&5
15928 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
15931 if test "x$ac_cv_func_fork_works" = xcross; then
15933 *-*-amigaos* | *-*-msdosdjgpp*)
15934 # Override, as these systems have only a dummy fork() stub
15935 ac_cv_func_fork_works=no
15938 ac_cv_func_fork_works=yes
15941 { echo "$as_me:15941: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
15942 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
15944 ac_cv_func_vfork_works=$ac_cv_func_vfork
15945 if test "x$ac_cv_func_vfork" = xyes; then
15946 echo "$as_me:15946: checking for working vfork" >&5
15947 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
15948 if test "${ac_cv_func_vfork_works+set}" = set; then
15949 echo $ECHO_N "(cached) $ECHO_C" >&6
15951 if test "$cross_compiling" = yes; then
15952 ac_cv_func_vfork_works=cross
15954 cat >conftest.$ac_ext <<_ACEOF
15955 #line 15955 "configure"
15956 #include "confdefs.h"
15957 /* Thanks to Paul Eggert for this test. */
15959 #include <sys/types.h>
15960 #include <sys/stat.h>
15962 # include <unistd.h>
15965 # include <vfork.h>
15967 /* On some sparc systems, changes by the child to local and incoming
15968 argument registers are propagated back to the parent. The compiler
15969 is told about this with #include <vfork.h>, but some compilers
15970 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15971 static variable whose address is put into a register that is
15972 clobbered by the vfork. */
15975 sparc_address_test (int arg)
15977 sparc_address_test (arg) int arg;
15980 static pid_t child;
15998 pid_t parent = getpid ();
16001 sparc_address_test ();
16006 /* Here is another test for sparc vfork register problems. This
16007 test uses lots of local variables, at least as many local
16008 variables as main has allocated so far including compiler
16009 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16010 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16011 reuse the register of parent for one of the local variables,
16012 since it will think that parent can't possibly be used any more
16013 in this routine. Assigning to the local variable will thus
16014 munge parent in the parent process. */
16016 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16017 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16018 /* Convince the compiler that p..p7 are live; otherwise, it might
16019 use the same hardware register for all 8 local variables. */
16020 if (p != p1 || p != p2 || p != p3 || p != p4
16021 || p != p5 || p != p6 || p != p7)
16024 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16025 from child file descriptors. If the child closes a descriptor
16026 before it execs or exits, this munges the parent's descriptor
16027 as well. Test for this by closing stdout in the child. */
16028 _exit(close(fileno(stdout)) != 0);
16033 while (wait(&status) != child)
16036 /* Was there some problem with vforking? */
16039 /* Did the child fail? (This shouldn't happen.) */
16042 /* Did the vfork/compiler bug occur? */
16043 || parent != getpid()
16045 /* Did the file descriptor bug occur? */
16046 || fstat(fileno(stdout), &st) != 0
16051 rm -f conftest$ac_exeext
16052 if { (eval echo "$as_me:16052: \"$ac_link\"") >&5
16053 (eval $ac_link) 2>&5
16055 echo "$as_me:16055: \$? = $ac_status" >&5
16056 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16057 { (eval echo "$as_me:16057: \"$ac_try\"") >&5
16058 (eval $ac_try) 2>&5
16060 echo "$as_me:16060: \$? = $ac_status" >&5
16061 (exit $ac_status); }; }; then
16062 ac_cv_func_vfork_works=yes
16064 echo "$as_me: program exited with status $ac_status" >&5
16065 echo "$as_me: failed program was:" >&5
16066 cat conftest.$ac_ext >&5
16067 ac_cv_func_vfork_works=no
16069 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16072 echo "$as_me:16072: result: $ac_cv_func_vfork_works" >&5
16073 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
16076 if test "x$ac_cv_func_fork_works" = xcross; then
16077 ac_cv_func_vfork_works=ac_cv_func_vfork
16078 { echo "$as_me:16078: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
16079 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
16082 if test "x$ac_cv_func_vfork_works" = xyes; then
16084 cat >>confdefs.h <<\EOF
16085 #define HAVE_WORKING_VFORK 1
16090 cat >>confdefs.h <<\EOF
16095 if test "x$ac_cv_func_fork_works" = xyes; then
16097 cat >>confdefs.h <<\EOF
16098 #define HAVE_WORKING_FORK 1
16103 # special check for test/ditto.c
16105 echo "$as_me:16105: checking for openpty in -lutil" >&5
16106 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
16107 if test "${ac_cv_lib_util_openpty+set}" = set; then
16108 echo $ECHO_N "(cached) $ECHO_C" >&6
16110 ac_check_lib_save_LIBS=$LIBS
16111 LIBS="-lutil $LIBS"
16112 cat >conftest.$ac_ext <<_ACEOF
16113 #line 16113 "configure"
16114 #include "confdefs.h"
16116 /* Override any gcc2 internal prototype to avoid an error. */
16120 /* We use char because int might match the return type of a gcc2
16121 builtin and then its argument prototype would still apply. */
16131 rm -f conftest.$ac_objext conftest$ac_exeext
16132 if { (eval echo "$as_me:16132: \"$ac_link\"") >&5
16133 (eval $ac_link) 2>&5
16135 echo "$as_me:16135: \$? = $ac_status" >&5
16136 (exit $ac_status); } &&
16137 { ac_try='test -s conftest$ac_exeext'
16138 { (eval echo "$as_me:16138: \"$ac_try\"") >&5
16139 (eval $ac_try) 2>&5
16141 echo "$as_me:16141: \$? = $ac_status" >&5
16142 (exit $ac_status); }; }; then
16143 ac_cv_lib_util_openpty=yes
16145 echo "$as_me: failed program was:" >&5
16146 cat conftest.$ac_ext >&5
16147 ac_cv_lib_util_openpty=no
16149 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16150 LIBS=$ac_check_lib_save_LIBS
16152 echo "$as_me:16152: result: $ac_cv_lib_util_openpty" >&5
16153 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
16154 if test $ac_cv_lib_util_openpty = yes; then
16160 echo "$as_me:16160: checking for openpty header" >&5
16161 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
16162 if test "${cf_cv_func_openpty+set}" = set; then
16163 echo $ECHO_N "(cached) $ECHO_C" >&6
16166 cf_save_LIBS="$LIBS"
16167 test $cf_cv_lib_util = yes && LIBS="-lutil $LIBS"
16168 for cf_header in pty.h libutil.h util.h
16170 cat >conftest.$ac_ext <<_ACEOF
16171 #line 16171 "configure"
16172 #include "confdefs.h"
16174 #include <$cf_header>
16180 int x = openpty((int *)0, (int *)0, (char *)0,
16181 (struct termios *)0, (struct winsize *)0);
16187 rm -f conftest.$ac_objext conftest$ac_exeext
16188 if { (eval echo "$as_me:16188: \"$ac_link\"") >&5
16189 (eval $ac_link) 2>&5
16191 echo "$as_me:16191: \$? = $ac_status" >&5
16192 (exit $ac_status); } &&
16193 { ac_try='test -s conftest$ac_exeext'
16194 { (eval echo "$as_me:16194: \"$ac_try\"") >&5
16195 (eval $ac_try) 2>&5
16197 echo "$as_me:16197: \$? = $ac_status" >&5
16198 (exit $ac_status); }; }; then
16200 cf_cv_func_openpty=$cf_header
16204 echo "$as_me: failed program was:" >&5
16205 cat conftest.$ac_ext >&5
16207 cf_cv_func_openpty=no
16210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16212 LIBS="$cf_save_LIBS"
16215 echo "$as_me:16215: result: $cf_cv_func_openpty" >&5
16216 echo "${ECHO_T}$cf_cv_func_openpty" >&6
16218 if test "$cf_cv_func_openpty" != no ; then
16219 cat >>confdefs.h <<EOF
16220 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
16223 cat >>confdefs.h <<\EOF
16224 #define USE_XTERM_PTY 1
16227 if test "$cf_cv_lib_util" = yes ; then
16228 TEST_LIBS="-lutil $TEST_LIBS"
16232 if test "$with_hashed_db" != no ; then
16233 cat >>confdefs.h <<\EOF
16234 #define USE_HASHED_DB 1
16237 case $with_hashed_db in #(vi
16241 if test -d "$with_hashed_db" ; then
16243 if test -n "$with_hashed_db/include" ; then
16244 for cf_add_incdir in $with_hashed_db/include
16246 while test $cf_add_incdir != /usr/include
16248 if test -d $cf_add_incdir
16251 if test -n "$CFLAGS$CPPFLAGS" ; then
16252 # a loop is needed to ensure we can add subdirs of existing dirs
16253 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
16254 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
16255 cf_have_incdir=yes; break
16260 if test "$cf_have_incdir" = no ; then
16261 if test "$cf_add_incdir" = /usr/local/include ; then
16262 if test "$GCC" = yes
16264 cf_save_CPPFLAGS=$CPPFLAGS
16265 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
16266 cat >conftest.$ac_ext <<_ACEOF
16267 #line 16267 "configure"
16268 #include "confdefs.h"
16278 rm -f conftest.$ac_objext
16279 if { (eval echo "$as_me:16279: \"$ac_compile\"") >&5
16280 (eval $ac_compile) 2>&5
16282 echo "$as_me:16282: \$? = $ac_status" >&5
16283 (exit $ac_status); } &&
16284 { ac_try='test -s conftest.$ac_objext'
16285 { (eval echo "$as_me:16285: \"$ac_try\"") >&5
16286 (eval $ac_try) 2>&5
16288 echo "$as_me:16288: \$? = $ac_status" >&5
16289 (exit $ac_status); }; }; then
16292 echo "$as_me: failed program was:" >&5
16293 cat conftest.$ac_ext >&5
16296 rm -f conftest.$ac_objext conftest.$ac_ext
16297 CPPFLAGS=$cf_save_CPPFLAGS
16302 if test "$cf_have_incdir" = no ; then
16303 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
16305 echo "${as_me-configure}:16305: testing adding $cf_add_incdir to include-path ..." 1>&5
16307 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
16309 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
16310 test "$cf_top_incdir" = "$cf_add_incdir" && break
16311 cf_add_incdir="$cf_top_incdir"
16320 if test -n "$with_hashed_db/lib" ; then
16321 for cf_add_libdir in $with_hashed_db/lib
16323 if test $cf_add_libdir = /usr/lib ; then
16325 elif test -d $cf_add_libdir
16328 if test -n "$LDFLAGS$LIBS" ; then
16329 # a loop is needed to ensure we can add subdirs of existing dirs
16330 for cf_test_libdir in $LDFLAGS $LIBS ; do
16331 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
16332 cf_have_libdir=yes; break
16336 if test "$cf_have_libdir" = no ; then
16337 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
16339 echo "${as_me-configure}:16339: testing adding $cf_add_libdir to library-path ..." 1>&5
16341 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
16350 echo "$as_me:16350: checking for db.h" >&5
16351 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
16352 if test "${ac_cv_header_db_h+set}" = set; then
16353 echo $ECHO_N "(cached) $ECHO_C" >&6
16355 cat >conftest.$ac_ext <<_ACEOF
16356 #line 16356 "configure"
16357 #include "confdefs.h"
16360 if { (eval echo "$as_me:16360: \"$ac_cpp conftest.$ac_ext\"") >&5
16361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16363 egrep -v '^ *\+' conftest.er1 >conftest.err
16365 cat conftest.err >&5
16366 echo "$as_me:16366: \$? = $ac_status" >&5
16367 (exit $ac_status); } >/dev/null; then
16368 if test -s conftest.err; then
16369 ac_cpp_err=$ac_c_preproc_warn_flag
16376 if test -z "$ac_cpp_err"; then
16377 ac_cv_header_db_h=yes
16379 echo "$as_me: failed program was:" >&5
16380 cat conftest.$ac_ext >&5
16381 ac_cv_header_db_h=no
16383 rm -f conftest.err conftest.$ac_ext
16385 echo "$as_me:16385: result: $ac_cv_header_db_h" >&5
16386 echo "${ECHO_T}$ac_cv_header_db_h" >&6
16387 if test $ac_cv_header_db_h = yes; then
16389 echo "$as_me:16389: checking for version of db" >&5
16390 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
16391 if test "${cf_cv_hashed_db_version+set}" = set; then
16392 echo $ECHO_N "(cached) $ECHO_C" >&6
16395 cf_cv_hashed_db_version=unknown
16397 for cf_db_version in 1 2 3 4 5
16400 echo "${as_me-configure}:16400: testing checking for db version $cf_db_version ..." 1>&5
16402 cat >conftest.$ac_ext <<_ACEOF
16403 #line 16403 "configure"
16404 #include "confdefs.h"
16406 $ac_includes_default
16409 #ifdef DB_VERSION_MAJOR
16410 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
16411 #if $cf_db_version == DB_VERSION_MAJOR
16417 #if $cf_db_version == 1
16418 /* ok: assuming this is DB 1.8.5 */
16432 rm -f conftest.$ac_objext
16433 if { (eval echo "$as_me:16433: \"$ac_compile\"") >&5
16434 (eval $ac_compile) 2>&5
16436 echo "$as_me:16436: \$? = $ac_status" >&5
16437 (exit $ac_status); } &&
16438 { ac_try='test -s conftest.$ac_objext'
16439 { (eval echo "$as_me:16439: \"$ac_try\"") >&5
16440 (eval $ac_try) 2>&5
16442 echo "$as_me:16442: \$? = $ac_status" >&5
16443 (exit $ac_status); }; }; then
16445 cf_cv_hashed_db_version=$cf_db_version
16449 echo "$as_me: failed program was:" >&5
16450 cat conftest.$ac_ext >&5
16452 rm -f conftest.$ac_objext conftest.$ac_ext
16456 echo "$as_me:16456: result: $cf_cv_hashed_db_version" >&5
16457 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
16459 if test "$cf_cv_hashed_db_version" = unknown ; then
16460 { { echo "$as_me:16460: error: Cannot determine version of db" >&5
16461 echo "$as_me: error: Cannot determine version of db" >&2;}
16462 { (exit 1); exit 1; }; }
16465 echo "$as_me:16465: checking for db libraries" >&5
16466 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
16467 if test "${cf_cv_hashed_db_libs+set}" = set; then
16468 echo $ECHO_N "(cached) $ECHO_C" >&6
16471 cf_cv_hashed_db_libs=unknown
16472 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
16474 cf_save_libs="$LIBS"
16475 if test -n "$cf_db_libs"; then
16476 LIBS="-l$cf_db_libs $LIBS"
16479 echo "${as_me-configure}:16479: testing checking for library "$cf_db_libs" ..." 1>&5
16481 cat >conftest.$ac_ext <<_ACEOF
16482 #line 16482 "configure"
16483 #include "confdefs.h"
16485 $ac_includes_default
16492 char *path = "/tmp/foo";
16493 #ifdef DB_VERSION_MAJOR
16494 #if DB_VERSION_MAJOR >= 4
16496 db_create(&result, NULL, 0);
16497 result->open(result,
16504 #elif DB_VERSION_MAJOR >= 3
16506 db_create(&result, NULL, 0);
16507 result->open(result,
16513 #elif DB_VERSION_MAJOR >= 2
16522 #endif /* DB_VERSION_MAJOR */
16524 DB *result = dbopen(path,
16530 ${cf_cv_main_return:-return}(result != 0)
16536 rm -f conftest.$ac_objext conftest$ac_exeext
16537 if { (eval echo "$as_me:16537: \"$ac_link\"") >&5
16538 (eval $ac_link) 2>&5
16540 echo "$as_me:16540: \$? = $ac_status" >&5
16541 (exit $ac_status); } &&
16542 { ac_try='test -s conftest$ac_exeext'
16543 { (eval echo "$as_me:16543: \"$ac_try\"") >&5
16544 (eval $ac_try) 2>&5
16546 echo "$as_me:16546: \$? = $ac_status" >&5
16547 (exit $ac_status); }; }; then
16549 if test -n "$cf_db_libs" ; then
16550 cf_cv_hashed_db_libs=$cf_db_libs
16552 cf_cv_hashed_db_libs=default
16554 LIBS="$cf_save_libs"
16558 echo "$as_me: failed program was:" >&5
16559 cat conftest.$ac_ext >&5
16561 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16562 LIBS="$cf_save_libs"
16566 echo "$as_me:16566: result: $cf_cv_hashed_db_libs" >&5
16567 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
16569 if test "$cf_cv_hashed_db_libs" = unknown ; then
16570 { { echo "$as_me:16570: error: Cannot determine library for db" >&5
16571 echo "$as_me: error: Cannot determine library for db" >&2;}
16572 { (exit 1); exit 1; }; }
16573 elif test "$cf_cv_hashed_db_libs" != default ; then
16574 LIBS="-l$cf_cv_hashed_db_libs $LIBS"
16580 { { echo "$as_me:16580: error: Cannot find db.h" >&5
16581 echo "$as_me: error: Cannot find db.h" >&2;}
16582 { (exit 1); exit 1; }; }
16588 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
16589 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
16590 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
16593 # Just in case, check if the C compiler has a bool type.
16595 echo "$as_me:16595: checking if we should include stdbool.h" >&5
16596 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
16598 if test "${cf_cv_header_stdbool_h+set}" = set; then
16599 echo $ECHO_N "(cached) $ECHO_C" >&6
16602 cat >conftest.$ac_ext <<_ACEOF
16603 #line 16603 "configure"
16604 #include "confdefs.h"
16614 rm -f conftest.$ac_objext
16615 if { (eval echo "$as_me:16615: \"$ac_compile\"") >&5
16616 (eval $ac_compile) 2>&5
16618 echo "$as_me:16618: \$? = $ac_status" >&5
16619 (exit $ac_status); } &&
16620 { ac_try='test -s conftest.$ac_objext'
16621 { (eval echo "$as_me:16621: \"$ac_try\"") >&5
16622 (eval $ac_try) 2>&5
16624 echo "$as_me:16624: \$? = $ac_status" >&5
16625 (exit $ac_status); }; }; then
16626 cf_cv_header_stdbool_h=0
16628 echo "$as_me: failed program was:" >&5
16629 cat conftest.$ac_ext >&5
16630 cat >conftest.$ac_ext <<_ACEOF
16631 #line 16631 "configure"
16632 #include "confdefs.h"
16635 #include <stdbool.h>
16646 rm -f conftest.$ac_objext
16647 if { (eval echo "$as_me:16647: \"$ac_compile\"") >&5
16648 (eval $ac_compile) 2>&5
16650 echo "$as_me:16650: \$? = $ac_status" >&5
16651 (exit $ac_status); } &&
16652 { ac_try='test -s conftest.$ac_objext'
16653 { (eval echo "$as_me:16653: \"$ac_try\"") >&5
16654 (eval $ac_try) 2>&5
16656 echo "$as_me:16656: \$? = $ac_status" >&5
16657 (exit $ac_status); }; }; then
16658 cf_cv_header_stdbool_h=1
16660 echo "$as_me: failed program was:" >&5
16661 cat conftest.$ac_ext >&5
16662 cf_cv_header_stdbool_h=0
16664 rm -f conftest.$ac_objext conftest.$ac_ext
16666 rm -f conftest.$ac_objext conftest.$ac_ext
16669 if test "$cf_cv_header_stdbool_h" = 1
16670 then echo "$as_me:16670: result: yes" >&5
16671 echo "${ECHO_T}yes" >&6
16672 else echo "$as_me:16672: result: no" >&5
16673 echo "${ECHO_T}no" >&6
16676 echo "$as_me:16676: checking for builtin bool type" >&5
16677 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
16679 if test "${cf_cv_cc_bool_type+set}" = set; then
16680 echo $ECHO_N "(cached) $ECHO_C" >&6
16683 cat >conftest.$ac_ext <<_ACEOF
16684 #line 16684 "configure"
16685 #include "confdefs.h"
16688 #include <sys/types.h>
16698 rm -f conftest.$ac_objext
16699 if { (eval echo "$as_me:16699: \"$ac_compile\"") >&5
16700 (eval $ac_compile) 2>&5
16702 echo "$as_me:16702: \$? = $ac_status" >&5
16703 (exit $ac_status); } &&
16704 { ac_try='test -s conftest.$ac_objext'
16705 { (eval echo "$as_me:16705: \"$ac_try\"") >&5
16706 (eval $ac_try) 2>&5
16708 echo "$as_me:16708: \$? = $ac_status" >&5
16709 (exit $ac_status); }; }; then
16710 cf_cv_cc_bool_type=1
16712 echo "$as_me: failed program was:" >&5
16713 cat conftest.$ac_ext >&5
16714 cf_cv_cc_bool_type=0
16716 rm -f conftest.$ac_objext conftest.$ac_ext
16720 if test "$cf_cv_cc_bool_type" = 1
16721 then echo "$as_me:16721: result: yes" >&5
16722 echo "${ECHO_T}yes" >&6
16723 else echo "$as_me:16723: result: no" >&5
16724 echo "${ECHO_T}no" >&6
16727 # Check for C++ compiler characteristics (and ensure that it's there!)
16728 if test -n "$CXX" ; then
16730 ac_cpp='$CXXCPP $CPPFLAGS'
16731 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16732 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16733 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16734 ac_main_return=return
16736 if test -n "$GXX" ; then
16737 case $cf_cv_system_name in #(vi
16739 cf_stdcpp_libname=stdcpp
16742 cf_stdcpp_libname=stdc++
16745 echo "$as_me:16745: checking for library $cf_stdcpp_libname" >&5
16746 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
16747 if test "${cf_cv_libstdcpp+set}" = set; then
16748 echo $ECHO_N "(cached) $ECHO_C" >&6
16752 LIBS="-l$cf_stdcpp_libname $LIBS"
16753 cat >conftest.$ac_ext <<_ACEOF
16754 #line 16754 "configure"
16755 #include "confdefs.h"
16757 #include <strstream.h>
16763 strstreambuf foo(buf, sizeof(buf))
16769 rm -f conftest.$ac_objext conftest$ac_exeext
16770 if { (eval echo "$as_me:16770: \"$ac_link\"") >&5
16771 (eval $ac_link) 2>&5
16773 echo "$as_me:16773: \$? = $ac_status" >&5
16774 (exit $ac_status); } &&
16775 { ac_try='test -s conftest$ac_exeext'
16776 { (eval echo "$as_me:16776: \"$ac_try\"") >&5
16777 (eval $ac_try) 2>&5
16779 echo "$as_me:16779: \$? = $ac_status" >&5
16780 (exit $ac_status); }; }; then
16781 cf_cv_libstdcpp=yes
16783 echo "$as_me: failed program was:" >&5
16784 cat conftest.$ac_ext >&5
16787 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16791 echo "$as_me:16791: result: $cf_cv_libstdcpp" >&5
16792 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
16793 test "$cf_cv_libstdcpp" = yes && CXXLIBS="-l$cf_stdcpp_libname $CXXLIBS"
16796 echo "$as_me:16796: checking whether $CXX understands -c and -o together" >&5
16797 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
16798 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
16799 echo $ECHO_N "(cached) $ECHO_C" >&6
16802 cat > conftest.$ac_ext <<CF_EOF
16806 ${cf_cv_main_return:-return}(0);
16809 # We do the test twice because some compilers refuse to overwrite an
16810 # existing .o file with -o, though they will create one.
16811 ac_try='$CXX -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
16812 if { (eval echo "$as_me:16812: \"$ac_try\"") >&5
16813 (eval $ac_try) 2>&5
16815 echo "$as_me:16815: \$? = $ac_status" >&5
16816 (exit $ac_status); } &&
16817 test -f conftest2.$ac_objext && { (eval echo "$as_me:16817: \"$ac_try\"") >&5
16818 (eval $ac_try) 2>&5
16820 echo "$as_me:16820: \$? = $ac_status" >&5
16821 (exit $ac_status); };
16823 eval cf_cv_prog_CXX_c_o=yes
16825 eval cf_cv_prog_CXX_c_o=no
16830 if test $cf_cv_prog_CXX_c_o = yes; then
16831 echo "$as_me:16831: result: yes" >&5
16832 echo "${ECHO_T}yes" >&6
16834 echo "$as_me:16834: result: no" >&5
16835 echo "${ECHO_T}no" >&6
16838 case $GXX_VERSION in
16844 cf_cxx_library=unknown
16845 case $cf_cv_system_name in #(vi
16853 if test "$GXX" = yes; then
16854 echo "$as_me:16854: checking for lib$cf_gpp_libname" >&5
16855 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
16857 LIBS="-l$cf_gpp_libname $LIBS"
16858 cat >conftest.$ac_ext <<_ACEOF
16859 #line 16859 "configure"
16860 #include "confdefs.h"
16862 #include <$cf_gpp_libname/builtin.h>
16867 two_arg_error_handler_t foo2 = lib_error_handler
16872 rm -f conftest.$ac_objext conftest$ac_exeext
16873 if { (eval echo "$as_me:16873: \"$ac_link\"") >&5
16874 (eval $ac_link) 2>&5
16876 echo "$as_me:16876: \$? = $ac_status" >&5
16877 (exit $ac_status); } &&
16878 { ac_try='test -s conftest$ac_exeext'
16879 { (eval echo "$as_me:16879: \"$ac_try\"") >&5
16880 (eval $ac_try) 2>&5
16882 echo "$as_me:16882: \$? = $ac_status" >&5
16883 (exit $ac_status); }; }; then
16885 CXXLIBS="-l$cf_gpp_libname $CXXLIBS"
16886 if test "$cf_gpp_libname" = cpp ; then
16887 cat >>confdefs.h <<\EOF
16888 #define HAVE_GPP_BUILTIN_H 1
16892 cat >>confdefs.h <<\EOF
16893 #define HAVE_GXX_BUILTIN_H 1
16898 echo "$as_me: failed program was:" >&5
16899 cat conftest.$ac_ext >&5
16900 cat >conftest.$ac_ext <<_ACEOF
16901 #line 16901 "configure"
16902 #include "confdefs.h"
16904 #include <builtin.h>
16909 two_arg_error_handler_t foo2 = lib_error_handler
16914 rm -f conftest.$ac_objext conftest$ac_exeext
16915 if { (eval echo "$as_me:16915: \"$ac_link\"") >&5
16916 (eval $ac_link) 2>&5
16918 echo "$as_me:16918: \$? = $ac_status" >&5
16919 (exit $ac_status); } &&
16920 { ac_try='test -s conftest$ac_exeext'
16921 { (eval echo "$as_me:16921: \"$ac_try\"") >&5
16922 (eval $ac_try) 2>&5
16924 echo "$as_me:16924: \$? = $ac_status" >&5
16925 (exit $ac_status); }; }; then
16927 CXXLIBS="-l$cf_gpp_libname $CXXLIBS"
16928 cat >>confdefs.h <<\EOF
16929 #define HAVE_BUILTIN_H 1
16933 echo "$as_me: failed program was:" >&5
16934 cat conftest.$ac_ext >&5
16937 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16939 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16941 echo "$as_me:16941: result: $cf_cxx_library" >&5
16942 echo "${ECHO_T}$cf_cxx_library" >&6
16952 ac_cpp='$CXXCPP $CPPFLAGS'
16953 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16954 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16955 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16956 ac_main_return=return
16957 echo "$as_me:16957: checking how to run the C++ preprocessor" >&5
16958 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
16959 if test -z "$CXXCPP"; then
16960 if test "${ac_cv_prog_CXXCPP+set}" = set; then
16961 echo $ECHO_N "(cached) $ECHO_C" >&6
16963 # Double quotes because CXXCPP needs to be expanded
16964 for CXXCPP in "$CXX -E" "/lib/cpp"
16966 ac_preproc_ok=false
16967 for ac_cxx_preproc_warn_flag in '' yes
16969 # Use a header file that comes with gcc, so configuring glibc
16970 # with a fresh cross-compiler works.
16971 # On the NeXT, cc -E runs the code through the compiler's parser,
16972 # not just through cpp. "Syntax error" is here to catch this case.
16973 cat >conftest.$ac_ext <<_ACEOF
16974 #line 16974 "configure"
16975 #include "confdefs.h"
16976 #include <assert.h>
16979 if { (eval echo "$as_me:16979: \"$ac_cpp conftest.$ac_ext\"") >&5
16980 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16982 egrep -v '^ *\+' conftest.er1 >conftest.err
16984 cat conftest.err >&5
16985 echo "$as_me:16985: \$? = $ac_status" >&5
16986 (exit $ac_status); } >/dev/null; then
16987 if test -s conftest.err; then
16988 ac_cpp_err=$ac_cxx_preproc_warn_flag
16995 if test -z "$ac_cpp_err"; then
16998 echo "$as_me: failed program was:" >&5
16999 cat conftest.$ac_ext >&5
17000 # Broken: fails on valid input.
17003 rm -f conftest.err conftest.$ac_ext
17005 # OK, works on sane cases. Now check whether non-existent headers
17006 # can be detected and how.
17007 cat >conftest.$ac_ext <<_ACEOF
17008 #line 17008 "configure"
17009 #include "confdefs.h"
17010 #include <ac_nonexistent.h>
17012 if { (eval echo "$as_me:17012: \"$ac_cpp conftest.$ac_ext\"") >&5
17013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17015 egrep -v '^ *\+' conftest.er1 >conftest.err
17017 cat conftest.err >&5
17018 echo "$as_me:17018: \$? = $ac_status" >&5
17019 (exit $ac_status); } >/dev/null; then
17020 if test -s conftest.err; then
17021 ac_cpp_err=$ac_cxx_preproc_warn_flag
17028 if test -z "$ac_cpp_err"; then
17029 # Broken: success on invalid input.
17032 echo "$as_me: failed program was:" >&5
17033 cat conftest.$ac_ext >&5
17034 # Passes both tests.
17038 rm -f conftest.err conftest.$ac_ext
17041 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17042 rm -f conftest.err conftest.$ac_ext
17043 if $ac_preproc_ok; then
17048 ac_cv_prog_CXXCPP=$CXXCPP
17051 CXXCPP=$ac_cv_prog_CXXCPP
17053 ac_cv_prog_CXXCPP=$CXXCPP
17055 echo "$as_me:17055: result: $CXXCPP" >&5
17056 echo "${ECHO_T}$CXXCPP" >&6
17057 ac_preproc_ok=false
17058 for ac_cxx_preproc_warn_flag in '' yes
17060 # Use a header file that comes with gcc, so configuring glibc
17061 # with a fresh cross-compiler works.
17062 # On the NeXT, cc -E runs the code through the compiler's parser,
17063 # not just through cpp. "Syntax error" is here to catch this case.
17064 cat >conftest.$ac_ext <<_ACEOF
17065 #line 17065 "configure"
17066 #include "confdefs.h"
17067 #include <assert.h>
17070 if { (eval echo "$as_me:17070: \"$ac_cpp conftest.$ac_ext\"") >&5
17071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17073 egrep -v '^ *\+' conftest.er1 >conftest.err
17075 cat conftest.err >&5
17076 echo "$as_me:17076: \$? = $ac_status" >&5
17077 (exit $ac_status); } >/dev/null; then
17078 if test -s conftest.err; then
17079 ac_cpp_err=$ac_cxx_preproc_warn_flag
17086 if test -z "$ac_cpp_err"; then
17089 echo "$as_me: failed program was:" >&5
17090 cat conftest.$ac_ext >&5
17091 # Broken: fails on valid input.
17094 rm -f conftest.err conftest.$ac_ext
17096 # OK, works on sane cases. Now check whether non-existent headers
17097 # can be detected and how.
17098 cat >conftest.$ac_ext <<_ACEOF
17099 #line 17099 "configure"
17100 #include "confdefs.h"
17101 #include <ac_nonexistent.h>
17103 if { (eval echo "$as_me:17103: \"$ac_cpp conftest.$ac_ext\"") >&5
17104 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17106 egrep -v '^ *\+' conftest.er1 >conftest.err
17108 cat conftest.err >&5
17109 echo "$as_me:17109: \$? = $ac_status" >&5
17110 (exit $ac_status); } >/dev/null; then
17111 if test -s conftest.err; then
17112 ac_cpp_err=$ac_cxx_preproc_warn_flag
17119 if test -z "$ac_cpp_err"; then
17120 # Broken: success on invalid input.
17123 echo "$as_me: failed program was:" >&5
17124 cat conftest.$ac_ext >&5
17125 # Passes both tests.
17129 rm -f conftest.err conftest.$ac_ext
17132 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17133 rm -f conftest.err conftest.$ac_ext
17134 if $ac_preproc_ok; then
17137 { { echo "$as_me:17137: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
17138 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
17139 { (exit 1); exit 1; }; }
17143 ac_cpp='$CXXCPP $CPPFLAGS'
17144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17147 ac_main_return=return
17149 for ac_header in iostream typeinfo
17151 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17152 echo "$as_me:17152: checking for $ac_header" >&5
17153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17155 echo $ECHO_N "(cached) $ECHO_C" >&6
17157 cat >conftest.$ac_ext <<_ACEOF
17158 #line 17158 "configure"
17159 #include "confdefs.h"
17160 #include <$ac_header>
17162 if { (eval echo "$as_me:17162: \"$ac_cpp conftest.$ac_ext\"") >&5
17163 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17165 egrep -v '^ *\+' conftest.er1 >conftest.err
17167 cat conftest.err >&5
17168 echo "$as_me:17168: \$? = $ac_status" >&5
17169 (exit $ac_status); } >/dev/null; then
17170 if test -s conftest.err; then
17171 ac_cpp_err=$ac_cxx_preproc_warn_flag
17178 if test -z "$ac_cpp_err"; then
17179 eval "$as_ac_Header=yes"
17181 echo "$as_me: failed program was:" >&5
17182 cat conftest.$ac_ext >&5
17183 eval "$as_ac_Header=no"
17185 rm -f conftest.err conftest.$ac_ext
17187 echo "$as_me:17187: result: `eval echo '${'$as_ac_Header'}'`" >&5
17188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17189 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17190 cat >>confdefs.h <<EOF
17191 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17197 if test x"$ac_cv_header_iostream" = xyes ; then
17198 echo "$as_me:17198: checking if iostream uses std-namespace" >&5
17199 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
17200 cat >conftest.$ac_ext <<_ACEOF
17201 #line 17201 "configure"
17202 #include "confdefs.h"
17204 #include <iostream>
17211 cerr << "testing" << endl;
17217 rm -f conftest.$ac_objext
17218 if { (eval echo "$as_me:17218: \"$ac_compile\"") >&5
17219 (eval $ac_compile) 2>&5
17221 echo "$as_me:17221: \$? = $ac_status" >&5
17222 (exit $ac_status); } &&
17223 { ac_try='test -s conftest.$ac_objext'
17224 { (eval echo "$as_me:17224: \"$ac_try\"") >&5
17225 (eval $ac_try) 2>&5
17227 echo "$as_me:17227: \$? = $ac_status" >&5
17228 (exit $ac_status); }; }; then
17229 cf_iostream_namespace=yes
17231 echo "$as_me: failed program was:" >&5
17232 cat conftest.$ac_ext >&5
17233 cf_iostream_namespace=no
17235 rm -f conftest.$ac_objext conftest.$ac_ext
17236 echo "$as_me:17236: result: $cf_iostream_namespace" >&5
17237 echo "${ECHO_T}$cf_iostream_namespace" >&6
17238 if test "$cf_iostream_namespace" = yes ; then
17239 cat >>confdefs.h <<\EOF
17240 #define IOSTREAM_NAMESPACE 1
17246 echo "$as_me:17246: checking if we should include stdbool.h" >&5
17247 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
17249 if test "${cf_cv_header_stdbool_h+set}" = set; then
17250 echo $ECHO_N "(cached) $ECHO_C" >&6
17253 cat >conftest.$ac_ext <<_ACEOF
17254 #line 17254 "configure"
17255 #include "confdefs.h"
17265 rm -f conftest.$ac_objext
17266 if { (eval echo "$as_me:17266: \"$ac_compile\"") >&5
17267 (eval $ac_compile) 2>&5
17269 echo "$as_me:17269: \$? = $ac_status" >&5
17270 (exit $ac_status); } &&
17271 { ac_try='test -s conftest.$ac_objext'
17272 { (eval echo "$as_me:17272: \"$ac_try\"") >&5
17273 (eval $ac_try) 2>&5
17275 echo "$as_me:17275: \$? = $ac_status" >&5
17276 (exit $ac_status); }; }; then
17277 cf_cv_header_stdbool_h=0
17279 echo "$as_me: failed program was:" >&5
17280 cat conftest.$ac_ext >&5
17281 cat >conftest.$ac_ext <<_ACEOF
17282 #line 17282 "configure"
17283 #include "confdefs.h"
17286 #include <stdbool.h>
17297 rm -f conftest.$ac_objext
17298 if { (eval echo "$as_me:17298: \"$ac_compile\"") >&5
17299 (eval $ac_compile) 2>&5
17301 echo "$as_me:17301: \$? = $ac_status" >&5
17302 (exit $ac_status); } &&
17303 { ac_try='test -s conftest.$ac_objext'
17304 { (eval echo "$as_me:17304: \"$ac_try\"") >&5
17305 (eval $ac_try) 2>&5
17307 echo "$as_me:17307: \$? = $ac_status" >&5
17308 (exit $ac_status); }; }; then
17309 cf_cv_header_stdbool_h=1
17311 echo "$as_me: failed program was:" >&5
17312 cat conftest.$ac_ext >&5
17313 cf_cv_header_stdbool_h=0
17315 rm -f conftest.$ac_objext conftest.$ac_ext
17317 rm -f conftest.$ac_objext conftest.$ac_ext
17320 if test "$cf_cv_header_stdbool_h" = 1
17321 then echo "$as_me:17321: result: yes" >&5
17322 echo "${ECHO_T}yes" >&6
17323 else echo "$as_me:17323: result: no" >&5
17324 echo "${ECHO_T}no" >&6
17327 echo "$as_me:17327: checking for builtin bool type" >&5
17328 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
17330 if test "${cf_cv_builtin_bool+set}" = set; then
17331 echo $ECHO_N "(cached) $ECHO_C" >&6
17334 cat >conftest.$ac_ext <<_ACEOF
17335 #line 17335 "configure"
17336 #include "confdefs.h"
17339 #include <sys/types.h>
17349 rm -f conftest.$ac_objext
17350 if { (eval echo "$as_me:17350: \"$ac_compile\"") >&5
17351 (eval $ac_compile) 2>&5
17353 echo "$as_me:17353: \$? = $ac_status" >&5
17354 (exit $ac_status); } &&
17355 { ac_try='test -s conftest.$ac_objext'
17356 { (eval echo "$as_me:17356: \"$ac_try\"") >&5
17357 (eval $ac_try) 2>&5
17359 echo "$as_me:17359: \$? = $ac_status" >&5
17360 (exit $ac_status); }; }; then
17361 cf_cv_builtin_bool=1
17363 echo "$as_me: failed program was:" >&5
17364 cat conftest.$ac_ext >&5
17365 cf_cv_builtin_bool=0
17367 rm -f conftest.$ac_objext conftest.$ac_ext
17371 if test "$cf_cv_builtin_bool" = 1
17372 then echo "$as_me:17372: result: yes" >&5
17373 echo "${ECHO_T}yes" >&6
17374 else echo "$as_me:17374: result: no" >&5
17375 echo "${ECHO_T}no" >&6
17378 echo "$as_me:17378: checking for size of bool" >&5
17379 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
17380 if test "${cf_cv_type_of_bool+set}" = set; then
17381 echo $ECHO_N "(cached) $ECHO_C" >&6
17385 if test "$cross_compiling" = yes; then
17386 cf_cv_type_of_bool=unknown
17388 cat >conftest.$ac_ext <<_ACEOF
17389 #line 17389 "configure"
17390 #include "confdefs.h"
17392 #include <stdlib.h>
17395 #if defined(__cplusplus)
17397 #ifdef HAVE_GXX_BUILTIN_H
17398 #include <g++/builtin.h>
17399 #elif HAVE_GPP_BUILTIN_H
17400 #include <gpp/builtin.h>
17401 #elif HAVE_BUILTIN_H
17402 #include <builtin.h>
17407 #if $cf_cv_header_stdbool_h
17408 #include <stdbool.h>
17415 FILE *fp = fopen("cf_test.out", "w");
17418 if ((bool)(-x) >= 0)
17419 fputs("unsigned ", fp);
17420 if (sizeof(x) == sizeof(int)) fputs("int", fp);
17421 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
17422 else if (sizeof(x) == sizeof(short))fputs("short",fp);
17423 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
17426 ${cf_cv_main_return:-return}(0);
17430 rm -f conftest$ac_exeext
17431 if { (eval echo "$as_me:17431: \"$ac_link\"") >&5
17432 (eval $ac_link) 2>&5
17434 echo "$as_me:17434: \$? = $ac_status" >&5
17435 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17436 { (eval echo "$as_me:17436: \"$ac_try\"") >&5
17437 (eval $ac_try) 2>&5
17439 echo "$as_me:17439: \$? = $ac_status" >&5
17440 (exit $ac_status); }; }; then
17441 cf_cv_type_of_bool=`cat cf_test.out`
17442 if test -z "$cf_cv_type_of_bool"; then
17443 cf_cv_type_of_bool=unknown
17446 echo "$as_me: program exited with status $ac_status" >&5
17447 echo "$as_me: failed program was:" >&5
17448 cat conftest.$ac_ext >&5
17449 cf_cv_type_of_bool=unknown
17451 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17457 echo "$as_me:17457: result: $cf_cv_type_of_bool" >&5
17458 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
17459 if test "$cf_cv_type_of_bool" = unknown ; then
17460 case .$NCURSES_BOOL in #(vi
17461 .auto|.) NCURSES_BOOL=unsigned;;
17463 { echo "$as_me:17463: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
17464 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
17465 cf_cv_type_of_bool=$NCURSES_BOOL
17468 echo "$as_me:17468: checking for special defines needed for etip.h" >&5
17469 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
17470 cf_save_CXXFLAGS="$CXXFLAGS"
17472 for cf_math in "" MATH_H
17474 for cf_excp in "" MATH_EXCEPTION
17476 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -I${srcdir}/include"
17477 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
17478 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
17479 cat >conftest.$ac_ext <<_ACEOF
17480 #line 17480 "configure"
17481 #include "confdefs.h"
17483 #include <etip.h.in>
17493 rm -f conftest.$ac_objext
17494 if { (eval echo "$as_me:17494: \"$ac_compile\"") >&5
17495 (eval $ac_compile) 2>&5
17497 echo "$as_me:17497: \$? = $ac_status" >&5
17498 (exit $ac_status); } &&
17499 { ac_try='test -s conftest.$ac_objext'
17500 { (eval echo "$as_me:17500: \"$ac_try\"") >&5
17501 (eval $ac_try) 2>&5
17503 echo "$as_me:17503: \$? = $ac_status" >&5
17504 (exit $ac_status); }; }; then
17506 test -n "$cf_math" && cat >>confdefs.h <<EOF
17507 #define ETIP_NEEDS_${cf_math} 1
17510 test -n "$cf_excp" && cat >>confdefs.h <<EOF
17511 #define ETIP_NEEDS_${cf_excp} 1
17514 cf_result="$cf_math $cf_excp"
17518 echo "$as_me: failed program was:" >&5
17519 cat conftest.$ac_ext >&5
17521 rm -f conftest.$ac_objext conftest.$ac_ext
17524 echo "$as_me:17524: result: $cf_result" >&5
17525 echo "${ECHO_T}$cf_result" >&6
17526 CXXFLAGS="$cf_save_CXXFLAGS"
17528 if test -n "$CXX"; then
17529 echo "$as_me:17529: checking if $CXX accepts parameter initialization" >&5
17530 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
17531 if test "${cf_cv_cpp_param_init+set}" = set; then
17532 echo $ECHO_N "(cached) $ECHO_C" >&6
17536 ac_cpp='$CXXCPP $CPPFLAGS'
17537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17540 ac_main_return=return
17542 if test "$cross_compiling" = yes; then
17543 cf_cv_cpp_param_init=unknown
17545 cat >conftest.$ac_ext <<_ACEOF
17546 #line 17546 "configure"
17547 #include "confdefs.h"
17557 TEST::TEST(int x = 1) // some compilers do not like second initializer
17564 rm -f conftest$ac_exeext
17565 if { (eval echo "$as_me:17565: \"$ac_link\"") >&5
17566 (eval $ac_link) 2>&5
17568 echo "$as_me:17568: \$? = $ac_status" >&5
17569 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17570 { (eval echo "$as_me:17570: \"$ac_try\"") >&5
17571 (eval $ac_try) 2>&5
17573 echo "$as_me:17573: \$? = $ac_status" >&5
17574 (exit $ac_status); }; }; then
17575 cf_cv_cpp_param_init=yes
17577 echo "$as_me: program exited with status $ac_status" >&5
17578 echo "$as_me: failed program was:" >&5
17579 cat conftest.$ac_ext >&5
17580 cf_cv_cpp_param_init=no
17582 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17585 ac_cpp='$CXXCPP $CPPFLAGS'
17586 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17587 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17588 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17589 ac_main_return=return
17592 echo "$as_me:17592: result: $cf_cv_cpp_param_init" >&5
17593 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
17595 test "$cf_cv_cpp_param_init" = yes && cat >>confdefs.h <<\EOF
17596 #define CPP_HAS_PARAM_INIT 1
17599 if test -n "$CXX"; then
17601 echo "$as_me:17601: checking if $CXX accepts static_cast" >&5
17602 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
17603 if test "${cf_cv_cpp_static_cast+set}" = set; then
17604 echo $ECHO_N "(cached) $ECHO_C" >&6
17608 ac_cpp='$CXXCPP $CPPFLAGS'
17609 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17610 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17611 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17612 ac_main_return=return
17614 cat >conftest.$ac_ext <<_ACEOF
17615 #line 17615 "configure"
17616 #include "confdefs.h"
17621 NCursesPanel(int nlines,
17631 template<class T> class NCursesUserPanel : public NCursesPanel
17634 NCursesUserPanel (int nlines,
17638 const T* p_UserData = static_cast<T*>(0))
17639 : NCursesPanel (nlines, ncols, begin_y, begin_x)
17642 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
17646 virtual ~NCursesUserPanel() {};
17653 const char* p_UserData = static_cast<char*>(0)
17658 rm -f conftest.$ac_objext
17659 if { (eval echo "$as_me:17659: \"$ac_compile\"") >&5
17660 (eval $ac_compile) 2>&5
17662 echo "$as_me:17662: \$? = $ac_status" >&5
17663 (exit $ac_status); } &&
17664 { ac_try='test -s conftest.$ac_objext'
17665 { (eval echo "$as_me:17665: \"$ac_try\"") >&5
17666 (eval $ac_try) 2>&5
17668 echo "$as_me:17668: \$? = $ac_status" >&5
17669 (exit $ac_status); }; }; then
17670 cf_cv_cpp_static_cast=yes
17672 echo "$as_me: failed program was:" >&5
17673 cat conftest.$ac_ext >&5
17674 cf_cv_cpp_static_cast=no
17676 rm -f conftest.$ac_objext conftest.$ac_ext
17679 ac_cpp='$CXXCPP $CPPFLAGS'
17680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17683 ac_main_return=return
17686 echo "$as_me:17686: result: $cf_cv_cpp_static_cast" >&5
17687 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
17691 test "$cf_cv_cpp_static_cast" = yes && cat >>confdefs.h <<\EOF
17692 #define CPP_HAS_STATIC_CAST 1
17696 CXX_ARFLAGS='$(ARFLAGS)'
17697 case $cf_cv_system_name in #(vi
17699 if test "$GXX" != yes ; then
17701 CXX_ARFLAGS='-ar -o'
17705 CXXLDFLAGS="-u main"
17708 if test "$GXX" != yes ; then
17710 CXX_ARFLAGS='-xar -o'
17717 cf_cv_builtin_bool=1
17719 # Just because we are not configuring against C++ right now does not
17720 # mean that a user will not want to use C++. Some distributors disable
17721 # the C++ portion of this configuration as a shortcut (or just to avoid
17722 # compiling the demo in the c++ directory). So we need a reasonable
17723 # default for the 'bool' type.
17725 # Caveat: since the storage of the bool type is not standardized, it
17728 if test "$NCURSES_BOOL" != auto ; then
17729 cf_cv_type_of_bool=$NCURSES_BOOL
17730 cf_cv_header_stdbool_h=0
17732 if test "$cf_cv_header_stdbool_h" = 1 ; then
17734 echo "$as_me:17734: checking for size of bool" >&5
17735 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
17736 if test "${cf_cv_type_of_bool+set}" = set; then
17737 echo $ECHO_N "(cached) $ECHO_C" >&6
17741 if test "$cross_compiling" = yes; then
17742 cf_cv_type_of_bool=unknown
17744 cat >conftest.$ac_ext <<_ACEOF
17745 #line 17745 "configure"
17746 #include "confdefs.h"
17748 #include <stdlib.h>
17751 #if defined(__cplusplus)
17753 #ifdef HAVE_GXX_BUILTIN_H
17754 #include <g++/builtin.h>
17755 #elif HAVE_GPP_BUILTIN_H
17756 #include <gpp/builtin.h>
17757 #elif HAVE_BUILTIN_H
17758 #include <builtin.h>
17763 #if $cf_cv_header_stdbool_h
17764 #include <stdbool.h>
17771 FILE *fp = fopen("cf_test.out", "w");
17774 if ((bool)(-x) >= 0)
17775 fputs("unsigned ", fp);
17776 if (sizeof(x) == sizeof(int)) fputs("int", fp);
17777 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
17778 else if (sizeof(x) == sizeof(short))fputs("short",fp);
17779 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
17782 ${cf_cv_main_return:-return}(0);
17786 rm -f conftest$ac_exeext
17787 if { (eval echo "$as_me:17787: \"$ac_link\"") >&5
17788 (eval $ac_link) 2>&5
17790 echo "$as_me:17790: \$? = $ac_status" >&5
17791 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17792 { (eval echo "$as_me:17792: \"$ac_try\"") >&5
17793 (eval $ac_try) 2>&5
17795 echo "$as_me:17795: \$? = $ac_status" >&5
17796 (exit $ac_status); }; }; then
17797 cf_cv_type_of_bool=`cat cf_test.out`
17798 if test -z "$cf_cv_type_of_bool"; then
17799 cf_cv_type_of_bool=unknown
17802 echo "$as_me: program exited with status $ac_status" >&5
17803 echo "$as_me: failed program was:" >&5
17804 cat conftest.$ac_ext >&5
17805 cf_cv_type_of_bool=unknown
17807 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17813 echo "$as_me:17813: result: $cf_cv_type_of_bool" >&5
17814 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
17815 if test "$cf_cv_type_of_bool" = unknown ; then
17816 case .$NCURSES_BOOL in #(vi
17817 .auto|.) NCURSES_BOOL=unsigned;;
17819 { echo "$as_me:17819: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
17820 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
17821 cf_cv_type_of_bool=$NCURSES_BOOL
17825 echo "$as_me:17825: checking for fallback type of bool" >&5
17826 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
17827 case "$host_cpu" in #(vi
17828 i?86) cf_cv_type_of_bool=char ;; #(vi
17829 *) cf_cv_type_of_bool=int ;;
17831 echo "$as_me:17831: result: $cf_cv_type_of_bool" >&5
17832 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
17837 # If the C compiler did not declare bool, and we did not determine that the C++
17838 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
17839 # ncurses library use the same type as C++ bool. Note that this allows one to
17840 # specify the type of bool in a configure-script option and postpone
17841 # integration with the C++ compiler provided that the types are compatible.
17843 if test $cf_cv_cc_bool_type = 1
17845 # oops: C has a bool. Unlikely, but C++ could differ.
17847 elif test $cf_cv_builtin_bool = 0
17852 # this is the normal case
17853 USE_CXX_BOOL='defined(__cplusplus)'
17856 if test -f "${srcdir}/Ada95/Makefile.in" ; then
17858 if test "$cf_with_ada" != "no" ; then
17859 if test "$with_libtool" != "no"; then
17860 { echo "$as_me:17860: WARNING: libtool does not support Ada - disabling feature" >&5
17861 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
17866 if test "$cf_with_ada" != "no" ; then
17868 cf_ada_make=gnatmake
17869 # Extract the first word of "$cf_ada_make", so it can be a program name with args.
17870 set dummy $cf_ada_make; ac_word=$2
17871 echo "$as_me:17871: checking for $ac_word" >&5
17872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17873 if test "${ac_cv_prog_gnat_exists+set}" = set; then
17874 echo $ECHO_N "(cached) $ECHO_C" >&6
17876 if test -n "$gnat_exists"; then
17877 ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test.
17879 ac_save_IFS=$IFS; IFS=$ac_path_separator
17881 for ac_dir in $ac_dummy; do
17883 test -z "$ac_dir" && ac_dir=.
17884 $as_executable_p "$ac_dir/$ac_word" || continue
17885 ac_cv_prog_gnat_exists="yes"
17886 echo "$as_me:17886: found $ac_dir/$ac_word" >&5
17890 test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no"
17893 gnat_exists=$ac_cv_prog_gnat_exists
17894 if test -n "$gnat_exists"; then
17895 echo "$as_me:17895: result: $gnat_exists" >&5
17896 echo "${ECHO_T}$gnat_exists" >&6
17898 echo "$as_me:17898: result: no" >&5
17899 echo "${ECHO_T}no" >&6
17902 if test "$ac_cv_prog_gnat_exists" = no; then
17906 echo "$as_me:17906: checking for gnat version" >&5
17907 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
17908 cf_gnat_version=`${cf_ada_make-gnatmake} -v 2>&1 | grep '[0-9].[0-9][0-9]*' |\
17909 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
17910 echo "$as_me:17910: result: $cf_gnat_version" >&5
17911 echo "${ECHO_T}$cf_gnat_version" >&6
17913 case $cf_gnat_version in
17914 3.1[1-9]*|3.[2-9]*|[4-9].*)
17915 cf_cv_prog_gnat_correct=yes
17917 *) echo Unsupported GNAT version $cf_gnat_version. Required is 3.11 or better. Disabling Ada95 binding.
17918 cf_cv_prog_gnat_correct=no
17922 case $cf_gnat_version in
17924 cf_compile_generics=generics
17925 cf_generic_objects="\${GENOBJS}"
17927 *) cf_compile_generics=
17928 cf_generic_objects=
17932 case $cf_gnat_version in
17934 USE_OLD_MAKERULES=""
17935 USE_GNAT_PROJECTS="#"
17938 USE_OLD_MAKERULES="#"
17939 USE_GNAT_PROJECTS=""
17943 # Extract the first word of "m4", so it can be a program name with args.
17944 set dummy m4; ac_word=$2
17945 echo "$as_me:17945: checking for $ac_word" >&5
17946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17947 if test "${ac_cv_prog_M4_exists+set}" = set; then
17948 echo $ECHO_N "(cached) $ECHO_C" >&6
17950 if test -n "$M4_exists"; then
17951 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
17953 ac_save_IFS=$IFS; IFS=$ac_path_separator
17955 for ac_dir in $ac_dummy; do
17957 test -z "$ac_dir" && ac_dir=.
17958 $as_executable_p "$ac_dir/$ac_word" || continue
17959 ac_cv_prog_M4_exists="yes"
17960 echo "$as_me:17960: found $ac_dir/$ac_word" >&5
17964 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
17967 M4_exists=$ac_cv_prog_M4_exists
17968 if test -n "$M4_exists"; then
17969 echo "$as_me:17969: result: $M4_exists" >&5
17970 echo "${ECHO_T}$M4_exists" >&6
17972 echo "$as_me:17972: result: no" >&5
17973 echo "${ECHO_T}no" >&6
17976 if test "$ac_cv_prog_M4_exists" = no; then
17977 cf_cv_prog_gnat_correct=no
17978 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
17980 if test "$cf_cv_prog_gnat_correct" = yes; then
17981 echo "$as_me:17981: checking if GNAT works" >&5
17982 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
17985 cat >>conftest.ads <<CF_EOF
17986 procedure conftest;
17988 cat >>conftest.adb <<CF_EOF
17991 procedure conftest is
17993 Text_IO.Put ("Hello World");
17995 GNAT.OS_Lib.OS_Exit (0);
17998 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
17999 if ( ./conftest 1>&5 2>&1 ) ; then
18000 cf_cv_prog_gnat_correct=yes
18002 cf_cv_prog_gnat_correct=no
18005 cf_cv_prog_gnat_correct=no
18009 echo "$as_me:18009: result: $cf_cv_prog_gnat_correct" >&5
18010 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
18014 if test "$cf_cv_prog_gnat_correct" = yes; then
18016 ADAFLAGS="$ADAFLAGS -O3 -gnatpn"
18018 echo "$as_me:18018: checking if GNAT pragma Unreferenced works" >&5
18019 echo $ECHO_N "checking if GNAT pragma Unreferenced works... $ECHO_C" >&6
18020 if test "${cf_cv_pragma_unreferenced+set}" = set; then
18021 echo $ECHO_N "(cached) $ECHO_C" >&6
18025 cat >>conftest.ads <<CF_EOF
18026 procedure conftest;
18028 cat >>conftest.adb <<CF_EOF
18031 procedure conftest is
18033 pragma Unreferenced (test);
18036 Text_IO.Put ("Hello World");
18038 GNAT.OS_Lib.OS_Exit (0);
18041 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
18042 cf_cv_pragma_unreferenced=yes
18044 cf_cv_pragma_unreferenced=no
18049 echo "$as_me:18049: result: $cf_cv_pragma_unreferenced" >&5
18050 echo "${ECHO_T}$cf_cv_pragma_unreferenced" >&6
18052 # if the pragma is supported, use it (needed in the Trace code).
18053 if test $cf_cv_pragma_unreferenced = yes ; then
18059 echo "$as_me:18059: checking for ada-compiler" >&5
18060 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
18062 # Check whether --with-ada-compiler or --without-ada-compiler was given.
18063 if test "${with_ada_compiler+set}" = set; then
18064 withval="$with_ada_compiler"
18065 cf_ada_compiler=$withval
18067 cf_ada_compiler=gnatmake
18070 echo "$as_me:18070: result: $cf_ada_compiler" >&5
18071 echo "${ECHO_T}$cf_ada_compiler" >&6
18073 cf_ada_package=terminal_interface
18075 echo "$as_me:18075: checking for ada-include" >&5
18076 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
18078 # Check whether --with-ada-include or --without-ada-include was given.
18079 if test "${with_ada_include+set}" = set; then
18080 withval="$with_ada_include"
18083 withval="${ADA_INCLUDE-$prefix/share/ada/adainclude}"
18084 fi; if test -n "$prefix/share/ada/adainclude" ; then
18086 if test "x$prefix" != xNONE; then
18087 cf_path_syntax="$prefix"
18089 cf_path_syntax="$ac_default_prefix"
18092 case ".$withval" in #(vi
18093 .\$\(*\)*|.\'*\'*) #(vi
18097 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
18099 .\${*prefix}*) #(vi
18100 eval withval="$withval"
18101 case ".$withval" in #(vi
18103 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
18108 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
18111 { { echo "$as_me:18111: error: expected a pathname, not \"$withval\"" >&5
18112 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
18113 { (exit 1); exit 1; }; }
18118 ADA_INCLUDE="$withval"
18120 echo "$as_me:18120: result: $ADA_INCLUDE" >&5
18121 echo "${ECHO_T}$ADA_INCLUDE" >&6
18123 echo "$as_me:18123: checking for ada-objects" >&5
18124 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
18126 # Check whether --with-ada-objects or --without-ada-objects was given.
18127 if test "${with_ada_objects+set}" = set; then
18128 withval="$with_ada_objects"
18131 withval="${ADA_OBJECTS-$prefix/lib/ada/adalib}"
18132 fi; if test -n "$prefix/lib/ada/adalib" ; then
18134 if test "x$prefix" != xNONE; then
18135 cf_path_syntax="$prefix"
18137 cf_path_syntax="$ac_default_prefix"
18140 case ".$withval" in #(vi
18141 .\$\(*\)*|.\'*\'*) #(vi
18145 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
18147 .\${*prefix}*) #(vi
18148 eval withval="$withval"
18149 case ".$withval" in #(vi
18151 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
18156 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
18159 { { echo "$as_me:18159: error: expected a pathname, not \"$withval\"" >&5
18160 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
18161 { (exit 1); exit 1; }; }
18166 ADA_OBJECTS="$withval"
18168 echo "$as_me:18168: result: $ADA_OBJECTS" >&5
18169 echo "${ECHO_T}$ADA_OBJECTS" >&6
18171 echo "$as_me:18171: checking if an Ada95 shared-library should be built" >&5
18172 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
18174 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
18175 if test "${with_ada_sharedlib+set}" = set; then
18176 withval="$with_ada_sharedlib"
18177 with_ada_sharedlib=$withval
18179 with_ada_sharedlib=no
18181 echo "$as_me:18181: result: $with_ada_sharedlib" >&5
18182 echo "${ECHO_T}$with_ada_sharedlib" >&6
18184 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
18185 MAKE_ADA_SHAREDLIB="#"
18187 if test "x$with_ada_sharedlib" != xno
18189 MAKE_ADA_SHAREDLIB=
18190 if test "x$with_ada_sharedlib" != xyes
18192 ADA_SHAREDLIB="$with_ada_sharedlib"
18202 ### Construct the ncurses library-subsets, if any, from this set of keywords:
18203 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
18205 ### ticlib modules may be a separate library, otherwise contained in termlib.
18206 ### termlib modules may be a separate library, otherwise contained in ncurses.
18208 ### The of "+" or " " between the tokens controls the way the script
18209 ### chooses to split module lists into libraries.
18211 ### (see CF_LIB_RULES).
18212 echo "$as_me:18212: checking for library subsets" >&5
18213 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
18216 if test "$cf_with_progs" = yes || test "$with_ticlib" != no || test "$with_termcap" != no; then
18217 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
18218 if test "$with_ticlib" != no ; then
18219 LIB_SUBSETS="${LIB_SUBSETS} "
18221 LIB_SUBSETS="${LIB_SUBSETS}+"
18225 LIB_SUBSETS="${LIB_SUBSETS}termlib"
18226 test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
18228 if test "$with_termlib" != no ; then
18229 LIB_SUBSETS="${LIB_SUBSETS} "
18231 LIB_SUBSETS="${LIB_SUBSETS}+"
18234 LIB_SUBSETS="${LIB_SUBSETS}base"
18236 # Most term-driver calls are to tinfo, but some like init_pair are to the
18237 # base library (so it resides in base).
18238 if test "$with_term_driver" != no ; then
18239 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
18240 case $cf_cv_system_name in #(vi
18242 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
18245 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
18250 test "$with_widec" = yes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
18251 test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
18253 echo "$as_me:18253: result: $LIB_SUBSETS" >&5
18254 echo "${ECHO_T}$LIB_SUBSETS" >&6
18256 ### Construct the list of include-directories to be generated
18258 CPPFLAGS="$CPPFLAGS -I. -I../include"
18259 if test "$srcdir" != "."; then
18260 CPPFLAGS="$CPPFLAGS -I\${srcdir}/../include"
18262 if test "$GCC" != yes; then
18263 CPPFLAGS="$CPPFLAGS -I\${includedir}"
18264 elif test "$includedir" != "/usr/include"; then
18265 if test "$includedir" = '${prefix}/include' ; then
18266 if test $prefix != /usr ; then
18267 CPPFLAGS="$CPPFLAGS -I\${includedir}"
18270 CPPFLAGS="$CPPFLAGS -I\${includedir}"
18274 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
18275 if test "$srcdir" != "."; then
18276 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
18278 if test "$GCC" != yes; then
18279 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
18280 elif test "$includedir" != "/usr/include"; then
18281 if test "$includedir" = '${prefix}/include' ; then
18282 if test $prefix != /usr ; then
18283 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
18286 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
18290 ### Build up pieces for makefile rules
18291 echo "$as_me:18291: checking default library suffix" >&5
18292 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
18294 case $DFT_LWR_MODEL in
18295 libtool) DFT_ARG_SUFFIX='' ;;
18296 normal) DFT_ARG_SUFFIX='' ;;
18297 debug) DFT_ARG_SUFFIX='_g' ;;
18298 profile) DFT_ARG_SUFFIX='_p' ;;
18299 shared) DFT_ARG_SUFFIX='' ;;
18301 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
18302 echo "$as_me:18302: result: $DFT_ARG_SUFFIX" >&5
18303 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
18305 echo "$as_me:18305: checking default library-dependency suffix" >&5
18306 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
18308 case $DFT_LWR_MODEL in #(vi
18310 DFT_LIB_SUFFIX='.la'
18311 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
18314 DFT_LIB_SUFFIX='.a'
18315 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
18318 DFT_LIB_SUFFIX='_g.a'
18319 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
18322 DFT_LIB_SUFFIX='_p.a'
18323 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
18326 case $cf_cv_system_name in
18328 DFT_LIB_SUFFIX='.a'
18329 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
18332 DFT_LIB_SUFFIX='.dll'
18333 DFT_DEP_SUFFIX='.dll.a'
18336 DFT_LIB_SUFFIX='.dylib'
18337 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
18342 DFT_LIB_SUFFIX='.so'
18343 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
18346 DFT_LIB_SUFFIX='.sl'
18347 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
18351 *) DFT_LIB_SUFFIX='.so'
18352 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
18356 test -n "$LIB_SUFFIX" && DFT_LIB_SUFFIX="${LIB_SUFFIX}${DFT_LIB_SUFFIX}"
18357 test -n "$LIB_SUFFIX" && DFT_DEP_SUFFIX="${LIB_SUFFIX}${DFT_DEP_SUFFIX}"
18358 echo "$as_me:18358: result: $DFT_DEP_SUFFIX" >&5
18359 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
18361 echo "$as_me:18361: checking default object directory" >&5
18362 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
18364 case $DFT_LWR_MODEL in
18365 libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
18366 normal) DFT_OBJ_SUBDIR='objects' ;;
18367 debug) DFT_OBJ_SUBDIR='obj_g' ;;
18368 profile) DFT_OBJ_SUBDIR='obj_p' ;;
18370 case $cf_cv_system_name in #(vi
18372 DFT_OBJ_SUBDIR='objects' ;;
18374 DFT_OBJ_SUBDIR='obj_s' ;;
18377 echo "$as_me:18377: result: $DFT_OBJ_SUBDIR" >&5
18378 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
18380 # libtool thinks it can make c++ shared libraries (perhaps only g++)
18381 if test "$cf_with_cxx" = yes ; then
18382 echo "$as_me:18382: checking c++ library-dependency suffix" >&5
18383 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
18384 if test "$with_libtool" != "no"; then
18385 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
18388 case normal in #(vi
18390 CXX_LIB_SUFFIX='.la'
18391 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
18394 CXX_LIB_SUFFIX='.a'
18395 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
18398 CXX_LIB_SUFFIX='_g.a'
18399 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
18402 CXX_LIB_SUFFIX='_p.a'
18403 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
18406 case $cf_cv_system_name in
18408 CXX_LIB_SUFFIX='.a'
18409 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
18412 CXX_LIB_SUFFIX='.dll'
18413 CXX_DEP_SUFFIX='.dll.a'
18416 CXX_LIB_SUFFIX='.dylib'
18417 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
18422 CXX_LIB_SUFFIX='.so'
18423 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
18426 CXX_LIB_SUFFIX='.sl'
18427 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
18431 *) CXX_LIB_SUFFIX='.so'
18432 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
18436 test -n "$LIB_SUFFIX" && CXX_LIB_SUFFIX="${LIB_SUFFIX}${CXX_LIB_SUFFIX}"
18437 test -n "$LIB_SUFFIX" && CXX_DEP_SUFFIX="${LIB_SUFFIX}${CXX_DEP_SUFFIX}"
18439 echo "$as_me:18439: result: $CXX_LIB_SUFFIX" >&5
18440 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
18444 # do not want -ldl in build except as needed for -lncurses dependency
18445 if test "$with_dlsym" = yes ; then
18446 if test $DFT_LWR_MODEL = shared || \
18447 test $DFT_LWR_MODEL = libtool ; then
18449 # remove dl library from $LIBS
18450 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
18454 ### Set up low-level terminfo dependencies for makefiles.
18456 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
18457 # do not need libdl
18459 if test "$with_dlsym" = yes ; then
18461 # remove dl library from $SHLIB_LIST
18462 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
18466 if test "$with_ticlib" != no ; then
18468 if test "$with_ticlib" != yes ; then
18469 TICS_NAME=$with_ticlib
18470 TICS_ARG_SUFFIX="${with_ticlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
18471 TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
18472 TICS_LIB_SUFFIX="${with_ticlib}"
18474 TICS_ARG_SUFFIX="${TICS_NAME}${DFT_ARG_SUFFIX}"
18475 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
18476 TICS_LIB_SUFFIX="${TICS_NAME}${LIB_SUFFIX}"
18478 TICS_ARGS="-L${LIB_DIR} -l${TICS_LIB_SUFFIX}"
18480 TICS_ARGS="-L${LIB_DIR} -l${LIB_NAME}${DFT_ARG_SUFFIX}"
18483 if test "$with_termlib" != no ; then
18485 if test "$with_termlib" != yes ; then
18486 TINFO_NAME=$with_termlib
18487 TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
18488 TINFO_ARG_SUFFIX="${with_termlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
18489 TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
18490 TINFO_LIB_SUFFIX="${with_termlib}"
18492 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
18493 TINFO_ARG_SUFFIX="${TINFO_NAME}${DFT_ARG_SUFFIX}"
18494 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
18495 TINFO_LIB_SUFFIX="${TINFO_NAME}${LIB_SUFFIX}"
18498 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
18499 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
18500 if test "$DFT_LWR_MODEL" = "libtool"; then
18501 TEST_ARGS="${TEST_DEPS}"
18502 TEST_ARG2="${TEST_DEP2}"
18503 TINFO_ARGS="-L${LIB_DIR} $TEST_ARGS"
18504 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
18505 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
18507 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
18508 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
18509 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
18510 TINFO_ARGS="-L${LIB_DIR} $TEST_ARGS"
18511 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
18514 # the next lines are needed for linking libtic over libncurses
18515 TINFO_NAME=${LIB_NAME}
18516 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
18517 TINFO_ARG_SUFFIX=${LIB_NAME}${DFT_ARG_SUFFIX}
18518 if test "$with_tic_depends" = yes ; then
18519 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${DFT_ARG_SUFFIX}"
18521 TICS_LIST="$SHLIB_LIST"
18524 TINFO_ARGS="-L${LIB_DIR} -l${LIB_NAME}${DFT_ARG_SUFFIX}"
18527 if test "$DFT_LWR_MODEL" = shared ; then
18528 case $cf_cv_system_name in #(vi
18530 # "lib" files have ".dll.a" suffix, "cyg" files have ".dll"
18536 if test "$with_dlsym" = yes ; then
18538 # remove dl library from $TICS_LIST
18539 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
18543 if test "$DFT_LWR_MODEL" = "libtool"; then
18548 TINFO_ARGS2=`echo "$TINFO_ARGS" | sed -e 's,-L\.\./,-L../../,'`
18550 case $DFT_LWR_MODEL in
18551 normal|debug|profile)
18553 if test "$GCC" = yes ; then
18554 case $cf_cv_system_name in #(
18555 OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*) #( vi
18559 *) #( normally, except when broken
18560 LDFLAGS_STATIC=-static
18561 LDFLAGS_SHARED=-dynamic
18565 case $cf_cv_system_name in #(
18566 aix[456]*) #( from ld manpage
18567 LDFLAGS_STATIC=-bstatic
18568 LDFLAGS_SHARED=-bdynamic
18570 hpux*) #( from ld manpage for hpux10.20, hpux11.11
18571 # We could also use just "archive" and "shared".
18572 LDFLAGS_STATIC=-Wl,-a,archive_shared
18573 LDFLAGS_SHARED=-Wl,-a,shared_archive
18575 irix*) #( from ld manpage IRIX64
18576 LDFLAGS_STATIC=-Bstatic
18577 LDFLAGS_SHARED=-Bdynamic
18579 osf[45]*) #( from ld manpage osf4.0d, osf5.1
18580 # alternative "-oldstyle_liblookup" (not in cc manpage)
18581 LDFLAGS_STATIC=-noso
18582 LDFLAGS_SHARED=-so_archive
18585 LDFLAGS_STATIC=-Bstatic
18586 LDFLAGS_SHARED=-Bdynamic
18594 echo "$as_me:18594: checking where we will install curses.h" >&5
18595 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
18596 test "$with_overwrite" = no && \
18597 test "x$includedir" = 'x${prefix}/include' && \
18598 includedir='${prefix}/include/ncurses'${LIB_SUFFIX}
18599 echo "$as_me:18599: result: $includedir" >&5
18600 echo "${ECHO_T}$includedir" >&6
18602 ### Resolve a conflict between normal and wide-curses by forcing applications
18603 ### that will need libutf8 to add it to their configure script.
18604 if test "$with_overwrite" != no ; then
18605 if test "$NCURSES_LIBUTF8" = 1 ; then
18606 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
18607 { echo "$as_me:18607: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
18608 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
18611 WITH_OVERWRITE=$with_overwrite
18613 # used to separate tack out of the tree
18616 ### predefined stuff for the test programs
18617 cat >>confdefs.h <<\EOF
18618 #define HAVE_SLK_COLOR 1
18621 ### Construct the list of subdirectories for which we'll customize makefiles
18622 ### with the appropriate compile-rules.
18624 echo "$as_me:18624: checking for src modules" >&5
18625 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
18627 # dependencies and linker-arguments for test-programs
18628 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
18629 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
18630 if test "$DFT_LWR_MODEL" = "libtool"; then
18631 TEST_ARGS="${TEST_DEPS}"
18632 TEST_ARG2="${TEST_DEP2}"
18634 TEST_ARGS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS"
18635 TEST_ARG2="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARG2"
18639 for cf_dir in $modules_to_build
18641 if test -f $srcdir/$cf_dir/modules; then
18643 # We may/may not have tack in the distribution, though the
18645 if test $cf_dir = tack ; then
18646 if test ! -f $srcdir/${cf_dir}/${cf_dir}.h; then
18651 if test -z "$cf_cv_src_modules"; then
18652 cf_cv_src_modules=$cf_dir
18654 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
18657 # Make the ncurses_cfg.h file record the library interface files as
18658 # well. These are header files that are the same name as their
18659 # directory. Ncurses is the only library that does not follow
18661 if test $cf_dir = tack ; then
18663 elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
18665 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
18667 cat >>confdefs.h <<EOF
18668 #define HAVE_${cf_have_include}_H 1
18671 cat >>confdefs.h <<EOF
18672 #define HAVE_LIB${cf_have_include} 1
18675 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
18676 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEP2"
18677 if test "$DFT_LWR_MODEL" = "libtool"; then
18678 TEST_ARGS="${TEST_DEPS}"
18679 TEST_ARG2="${TEST_DEP2}"
18681 TEST_ARGS="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARGS"
18682 TEST_ARG2="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARG2"
18687 echo "$as_me:18687: result: $cf_cv_src_modules" >&5
18688 echo "${ECHO_T}$cf_cv_src_modules" >&6
18690 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
18691 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
18694 if test "x$cf_with_manpages" != xno ; then
18695 SRC_SUBDIRS="$SRC_SUBDIRS man"
18697 SRC_SUBDIRS="$SRC_SUBDIRS include"
18698 for cf_dir in $cf_cv_src_modules
18700 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
18702 SRC_SUBDIRS="$SRC_SUBDIRS test"
18703 test -z "$MAKE_TERMINFO" && SRC_SUBDIRS="$SRC_SUBDIRS misc"
18704 test "$cf_with_cxx_binding" != no && SRC_SUBDIRS="$SRC_SUBDIRS c++"
18707 if test "$cf_cv_prog_gnat_correct" = yes && test -f $srcdir/Ada95/Makefile.in; then
18708 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
18709 ADA_SUBDIRS="gen src samples"
18713 for cf_dir in $SRC_SUBDIRS
18715 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
18718 if test -n "$ADA_SUBDIRS"; then
18719 for cf_dir in $ADA_SUBDIRS
18721 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
18726 if test "$cf_with_ada" != "no" && test "$cf_cv_prog_gnat_correct" != "no"; then
18727 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${DFT_ARG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
18728 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${DFT_ARG_SUFFIX}-config.1:man/MKada_config.in"
18732 for cf_item in $cf_list_models
18736 libtool) cf_subdir='obj_lo' ;;
18737 normal) cf_subdir='objects' ;;
18738 debug) cf_subdir='obj_g' ;;
18739 profile) cf_subdir='obj_p' ;;
18741 case $cf_cv_system_name in #(vi
18743 cf_subdir='objects' ;;
18745 cf_subdir='obj_s' ;;
18749 for cf_item2 in $DIRS_TO_MAKE
18751 test $cf_item2 = $cf_subdir && break
18753 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
18755 for cf_dir in $DIRS_TO_MAKE
18757 test ! -d $cf_dir && mkdir $cf_dir
18760 # symbols that differ when compiling Ada95 by itself.
18761 NCURSES_SHLIB2='sh $(top_srcdir)/misc/shlib'
18763 # values to use as strings
18764 cat >>confdefs.h <<EOF
18765 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
18768 cat >>confdefs.h <<EOF
18769 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
18772 ### Now that we're done running tests, add the compiler-warnings, if any
18777 cf_new_extra_cppflags=
18779 for cf_add_cflags in $EXTRA_CFLAGS
18781 case $cf_fix_cppflags in
18783 case $cf_add_cflags in #(vi
18784 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
18785 case $cf_add_cflags in
18787 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18789 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
18790 && test -z "${cf_tst_cflags}" \
18791 && cf_fix_cppflags=yes
18793 if test $cf_fix_cppflags = yes ; then
18794 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
18796 elif test "${cf_tst_cflags}" = "\"'" ; then
18797 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
18802 case "$CPPFLAGS" in
18803 *$cf_add_cflags) #(vi
18806 case $cf_add_cflags in #(vi
18808 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18810 CPPFLAGS=`echo "$CPPFLAGS" | \
18811 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18812 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18816 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
18821 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
18826 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
18828 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
18830 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
18831 && test -z "${cf_tst_cflags}" \
18832 && cf_fix_cppflags=no
18837 if test -n "$cf_new_cflags" ; then
18839 CFLAGS="$CFLAGS $cf_new_cflags"
18842 if test -n "$cf_new_cppflags" ; then
18844 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
18847 if test -n "$cf_new_extra_cppflags" ; then
18849 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
18852 ### Define substitutions for header files to avoid name-pollution
18854 if test "$cf_cv_have_tcgetattr" = yes ; then
18860 if test "$ac_cv_header_termio_h" = yes ; then
18866 if test "$ac_cv_header_termios_h" = yes ; then
18872 ################################################################################
18873 test "$use_database" = yes && \
18874 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
18876 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
18877 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${DFT_ARG_SUFFIX}${cf_cv_abi_version}-config.1:man/MKncu_config.in"
18879 if test x"$enable_pc_files" = xyes ; then \
18880 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
18886 # Extract the first word of "tic", so it can be a program name with args.
18887 set dummy tic; ac_word=$2
18888 echo "$as_me:18888: checking for $ac_word" >&5
18889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18890 if test "${ac_cv_path_TIC_PATH+set}" = set; then
18891 echo $ECHO_N "(cached) $ECHO_C" >&6
18895 ac_cv_path_TIC_PATH="$TIC_PATH" # Let the user override the test with a path.
18898 ac_save_IFS=$IFS; IFS=$ac_path_separator
18899 ac_dummy="$PATH:/usr/local/ncurses/bin"
18900 for ac_dir in $ac_dummy; do
18902 test -z "$ac_dir" && ac_dir=.
18903 if $as_executable_p "$ac_dir/$ac_word"; then
18904 ac_cv_path_TIC_PATH="$ac_dir/$ac_word"
18905 echo "$as_me:18905: found $ac_dir/$ac_word" >&5
18910 test -z "$ac_cv_path_TIC_PATH" && ac_cv_path_TIC_PATH="unknown"
18914 TIC_PATH=$ac_cv_path_TIC_PATH
18916 if test -n "$TIC_PATH"; then
18917 echo "$as_me:18917: result: $TIC_PATH" >&5
18918 echo "${ECHO_T}$TIC_PATH" >&6
18920 echo "$as_me:18920: result: no" >&5
18921 echo "${ECHO_T}no" >&6
18924 if test -n "$FALLBACK_LIST"
18926 if test "$TIC_PATH" = unknown
18928 { { echo "$as_me:18928: error: no tic program found for fallbacks" >&5
18929 echo "$as_me: error: no tic program found for fallbacks" >&2;}
18930 { (exit 1); exit 1; }; }
18934 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_MAKEFILES Makefile"
18935 ac_config_commands="$ac_config_commands default"
18936 cat >confcache <<\_ACEOF
18937 # This file is a shell script that caches the results of configure
18938 # tests run on this system so they can be shared between configure
18939 # scripts and configure runs, see configure's option --config-cache.
18940 # It is not useful on other systems. If it contains results you don't
18941 # want to keep, you may remove or edit it.
18943 # config.status only pays attention to the cache file if you give it
18944 # the --recheck option to rerun configure.
18946 # `ac_cv_env_foo' variables (set or unset) will be overriden when
18947 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18948 # following values.
18952 # The following way of writing the cache mishandles newlines in values,
18953 # but we know of no workaround that is simple, portable, and efficient.
18954 # So, don't put newlines in cache variables' values.
18955 # Ultrix sh set writes to stderr and can't be redirected directly,
18956 # and sets the high bit in the cache file unless we assign to the vars.
18959 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18961 # `set' does not quote correctly, so add quotes (double-quote
18962 # substitution turns \\\\ into \\, and sed turns \\ into \).
18965 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18968 # `set' quotes correctly as required by POSIX, so do not add quotes.
18970 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18977 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18979 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18981 if cmp -s $cache_file confcache; then :; else
18982 if test -w $cache_file; then
18983 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18984 cat confcache >$cache_file
18986 echo "not updating unwritable cache $cache_file"
18991 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18992 # Let make expand exec_prefix.
18993 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18995 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18996 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18997 # trailing colons and then remove the whole line if VPATH becomes empty
18998 # (actually we leave an empty line to preserve line numbers).
18999 if test "x$srcdir" = x.; then
19000 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19001 s/:*\$(srcdir):*/:/;
19002 s/:*\${srcdir}:*/:/;
19004 s/^\([^=]*=[ ]*\):*/\1/;
19010 DEFS=-DHAVE_CONFIG_H
19012 : ${CONFIG_STATUS=./config.status}
19013 ac_clean_files_save=$ac_clean_files
19014 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19015 { echo "$as_me:19015: creating $CONFIG_STATUS" >&5
19016 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19017 cat >$CONFIG_STATUS <<_ACEOF
19019 # Generated automatically by configure.
19020 # Run this file to recreate the current configuration.
19021 # Compiler output produced by configure, useful for debugging
19022 # configure, is in config.log if it exists.
19025 SHELL=\${CONFIG_SHELL-$SHELL}
19026 ac_cs_invocation="\$0 \$@"
19030 cat >>$CONFIG_STATUS <<\_ACEOF
19031 # Be Bourne compatible
19032 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19035 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19039 # Name of the executable.
19040 as_me=`echo "$0" |sed 's,.*[\\/],,'`
19042 if expr a : '\(a\)' >/dev/null 2>&1; then
19048 rm -f conf$$ conf$$.exe conf$$.file
19050 if ln -s conf$$.file conf$$ 2>/dev/null; then
19051 # We could just check for DJGPP; but this test a) works b) is more generic
19052 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19053 if test -f conf$$.exe; then
19054 # Don't use ln at all; we don't have any links
19059 elif ln conf$$.file conf$$ 2>/dev/null; then
19064 rm -f conf$$ conf$$.exe conf$$.file
19066 as_executable_p="test -f"
19068 # Support unset when possible.
19069 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19076 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
19077 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
19078 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
19079 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
19080 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
19081 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
19082 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
19083 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
19086 # We need space, tab and new line, in precisely that order.
19092 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
19098 # Files that config.status was made for.
19099 if test -n "$ac_config_files"; then
19100 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19103 if test -n "$ac_config_headers"; then
19104 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19107 if test -n "$ac_config_links"; then
19108 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19111 if test -n "$ac_config_commands"; then
19112 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19115 cat >>$CONFIG_STATUS <<\EOF
19118 \`$as_me' instantiates files from templates according to the
19119 current configuration.
19121 Usage: $0 [OPTIONS] [FILE]...
19123 -h, --help print this help, then exit
19124 -V, --version print version number, then exit
19125 -d, --debug don't remove temporary files
19126 --recheck update $as_me by reconfiguring in the same conditions
19127 --file=FILE[:TEMPLATE]
19128 instantiate the configuration file FILE
19129 --header=FILE[:TEMPLATE]
19130 instantiate the configuration header FILE
19132 Configuration files:
19135 Configuration headers:
19138 Configuration commands:
19141 Report bugs to <bug-autoconf@gnu.org>."
19144 cat >>$CONFIG_STATUS <<EOF
19147 configured by $0, generated by GNU Autoconf 2.52.20100530,
19148 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19150 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19151 Free Software Foundation, Inc.
19152 This config.status script is free software; the Free Software Foundation
19153 gives unlimited permission to copy, distribute and modify it."
19158 cat >>$CONFIG_STATUS <<\EOF
19159 # If no file are specified by the user, then we need to provide default
19160 # value. By we need to know if files were specified by the user.
19166 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19167 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19169 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
19173 *) # This is not an option, so the user has probably given explicit
19175 ac_need_defaults=false;;
19179 # Handling of the options.
19181 cat >>$CONFIG_STATUS <<EOF
19182 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19183 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
19184 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
19186 cat >>$CONFIG_STATUS <<\EOF
19187 --version | --vers* | -V )
19188 echo "$ac_cs_version"; exit 0 ;;
19190 # Conflict between --help and --header
19191 { { echo "$as_me:19191: error: ambiguous option: $1
19192 Try \`$0 --help' for more information." >&5
19193 echo "$as_me: error: ambiguous option: $1
19194 Try \`$0 --help' for more information." >&2;}
19195 { (exit 1); exit 1; }; };;
19196 --help | --hel | -h )
19197 echo "$ac_cs_usage"; exit 0 ;;
19198 --debug | --d* | -d )
19200 --file | --fil | --fi | --f )
19202 CONFIG_FILES="$CONFIG_FILES $1"
19203 ac_need_defaults=false;;
19204 --header | --heade | --head | --hea )
19206 CONFIG_HEADERS="$CONFIG_HEADERS $1"
19207 ac_need_defaults=false;;
19209 # This is an error.
19210 -*) { { echo "$as_me:19210: error: unrecognized option: $1
19211 Try \`$0 --help' for more information." >&5
19212 echo "$as_me: error: unrecognized option: $1
19213 Try \`$0 --help' for more information." >&2;}
19214 { (exit 1); exit 1; }; } ;;
19216 *) ac_config_targets="$ac_config_targets $1" ;;
19225 ## ----------------------- ##
19226 ## Running config.status. ##
19227 ## ----------------------- ##
19229 This file was extended by $as_me 2.52.20100530, executed with
19230 CONFIG_FILES = $CONFIG_FILES
19231 CONFIG_HEADERS = $CONFIG_HEADERS
19232 CONFIG_LINKS = $CONFIG_LINKS
19233 CONFIG_COMMANDS = $CONFIG_COMMANDS
19234 > $ac_cs_invocation
19235 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19240 cat >>$CONFIG_STATUS <<EOF
19242 # INIT-COMMANDS section.
19245 ### Special initialization commands, used to pass information from the
19246 ### configuration-run into config.status
19249 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
19250 DFT_LWR_MODEL="$DFT_LWR_MODEL"
19251 ECHO_LINK="$ECHO_LINK"
19252 LDCONFIG="$LDCONFIG"
19253 LIBTOOL_VERSION="$LIBTOOL_VERSION"
19254 LIB_NAME="$LIB_NAME"
19255 LIB_SUBSETS="$LIB_SUBSETS"
19256 LIB_SUFFIX="$LIB_SUFFIX"
19257 LIB_TRACING="$LIB_TRACING"
19259 MAKE_TERMINFO="$MAKE_TERMINFO"
19260 NCURSES_MAJOR="$NCURSES_MAJOR"
19261 NCURSES_MINOR="$NCURSES_MINOR"
19262 NCURSES_OSPEED="$NCURSES_OSPEED"
19263 NCURSES_PATCH="$NCURSES_PATCH"
19264 SRC_SUBDIRS="$SRC_SUBDIRS"
19265 TERMINFO="$TERMINFO"
19266 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
19267 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
19268 TICS_NAME="$TICS_NAME"
19269 TIC_PATH="$TIC_PATH"
19270 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
19271 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
19272 TINFO_NAME="$TINFO_NAME"
19273 TINFO_SUFFIX="$TINFO_SUFFIX"
19274 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
19275 WITH_CURSES_H="$with_curses_h"
19276 WITH_ECHO="$with_echo"
19277 WITH_OVERWRITE="$with_overwrite"
19278 cf_LIST_MODELS="$cf_list_models"
19279 cf_cv_abi_version="$cf_cv_abi_version"
19280 cf_cv_do_relink="$cf_cv_do_relink"
19281 cf_cv_do_symlinks="$cf_cv_do_symlinks"
19282 cf_cv_enable_lp64="$cf_cv_enable_lp64"
19283 cf_cv_enable_opaque="$cf_cv_enable_opaque"
19284 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
19285 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
19286 cf_cv_rel_version="$cf_cv_rel_version"
19287 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
19288 cf_cv_shared_soname='$cf_cv_shared_soname'
19289 cf_cv_shlib_version="$cf_cv_shlib_version"
19290 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
19291 cf_cv_system_name="$cf_cv_system_name"
19292 cf_with_ada="$cf_with_ada"
19293 cf_with_cxx_binding="$cf_with_cxx_binding"
19294 cf_with_manpages="$cf_with_manpages"
19300 cat >>$CONFIG_STATUS <<\EOF
19301 for ac_config_target in $ac_config_targets
19303 case "$ac_config_target" in
19304 # Handling of arguments.
19305 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
19306 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
19307 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
19308 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
19309 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
19310 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
19311 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19312 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19313 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
19314 *) { { echo "$as_me:19314: error: invalid argument: $ac_config_target" >&5
19315 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19316 { (exit 1); exit 1; }; };;
19320 # If the user did not use the arguments to specify the items to instantiate,
19321 # then the envvar interface is used. Set only those that are not.
19322 # We use the long form for the default assignment because of an extremely
19323 # bizarre bug on SunOS 4.1.3.
19324 if $ac_need_defaults; then
19325 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19326 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19327 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19330 # Create a temporary directory, and hook for its removal unless debugging.
19333 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19334 trap '{ (exit 1); exit 1; }' 1 2 13 15
19337 # Create a (secure) tmp directory for tmp files.
19340 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
19341 test -n "$tmp" && test -d "$tmp"
19344 tmp=$TMPDIR/cs$$-$RANDOM
19345 (umask 077 && mkdir $tmp)
19348 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
19349 { (exit 1); exit 1; }
19354 cat >>$CONFIG_STATUS <<EOF
19357 # CONFIG_FILES section.
19360 # No need to generate the scripts if there are no CONFIG_FILES.
19361 # This happens for instance when ./config.status config.h
19362 if test -n "\$CONFIG_FILES"; then
19363 # Protect against being on the right side of a sed subst in config.status.
19364 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19365 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19366 s,@SHELL@,$SHELL,;t t
19367 s,@exec_prefix@,$exec_prefix,;t t
19368 s,@prefix@,$prefix,;t t
19369 s,@program_transform_name@,$program_transform_name,;t t
19370 s,@bindir@,$bindir,;t t
19371 s,@sbindir@,$sbindir,;t t
19372 s,@libexecdir@,$libexecdir,;t t
19373 s,@datadir@,$datadir,;t t
19374 s,@sysconfdir@,$sysconfdir,;t t
19375 s,@sharedstatedir@,$sharedstatedir,;t t
19376 s,@localstatedir@,$localstatedir,;t t
19377 s,@libdir@,$libdir,;t t
19378 s,@includedir@,$includedir,;t t
19379 s,@oldincludedir@,$oldincludedir,;t t
19380 s,@infodir@,$infodir,;t t
19381 s,@mandir@,$mandir,;t t
19382 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19383 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19384 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19385 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19386 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19387 s,@build_alias@,$build_alias,;t t
19388 s,@host_alias@,$host_alias,;t t
19389 s,@target_alias@,$target_alias,;t t
19390 s,@ECHO_C@,$ECHO_C,;t t
19391 s,@ECHO_N@,$ECHO_N,;t t
19392 s,@ECHO_T@,$ECHO_T,;t t
19393 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19394 s,@DEFS@,$DEFS,;t t
19395 s,@LIBS@,$LIBS,;t t
19396 s,@top_builddir@,$top_builddir,;t t
19397 s,@EGREP@,$EGREP,;t t
19398 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
19399 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
19400 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
19401 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
19402 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
19403 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
19404 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
19405 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
19406 s,@build@,$build,;t t
19407 s,@build_cpu@,$build_cpu,;t t
19408 s,@build_vendor@,$build_vendor,;t t
19409 s,@build_os@,$build_os,;t t
19410 s,@host@,$host,;t t
19411 s,@host_cpu@,$host_cpu,;t t
19412 s,@host_vendor@,$host_vendor,;t t
19413 s,@host_os@,$host_os,;t t
19414 s,@target@,$target,;t t
19415 s,@target_cpu@,$target_cpu,;t t
19416 s,@target_vendor@,$target_vendor,;t t
19417 s,@target_os@,$target_os,;t t
19419 s,@CFLAGS@,$CFLAGS,;t t
19420 s,@LDFLAGS@,$LDFLAGS,;t t
19421 s,@CPPFLAGS@,$CPPFLAGS,;t t
19422 s,@ac_ct_CC@,$ac_ct_CC,;t t
19423 s,@EXEEXT@,$EXEEXT,;t t
19424 s,@OBJEXT@,$OBJEXT,;t t
19426 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
19427 s,@PROG_EXT@,$PROG_EXT,;t t
19428 s,@LDCONFIG@,$LDCONFIG,;t t
19430 s,@CXXFLAGS@,$CXXFLAGS,;t t
19431 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19433 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19434 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19435 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19436 s,@LINT@,$LINT,;t t
19437 s,@LINT_OPTS@,$LINT_OPTS,;t t
19438 s,@LN_S@,$LN_S,;t t
19439 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
19440 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
19441 s,@SET_MAKE@,$SET_MAKE,;t t
19442 s,@CTAGS@,$CTAGS,;t t
19443 s,@ETAGS@,$ETAGS,;t t
19444 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
19445 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
19446 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
19447 s,@RANLIB@,$RANLIB,;t t
19448 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19450 s,@ac_ct_LD@,$ac_ct_LD,;t t
19452 s,@ac_ct_AR@,$ac_ct_AR,;t t
19453 s,@ARFLAGS@,$ARFLAGS,;t t
19454 s,@DESTDIR@,$DESTDIR,;t t
19455 s,@BUILD_CC@,$BUILD_CC,;t t
19456 s,@BUILD_CPP@,$BUILD_CPP,;t t
19457 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
19458 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
19459 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
19460 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
19461 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
19462 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
19463 s,@cf_list_models@,$cf_list_models,;t t
19464 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
19465 s,@LIBTOOL@,$LIBTOOL,;t t
19466 s,@LT_UNDEF@,$LT_UNDEF,;t t
19467 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
19468 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
19469 s,@LIB_CREATE@,$LIB_CREATE,;t t
19470 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
19471 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
19472 s,@LIB_PREP@,$LIB_PREP,;t t
19473 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
19474 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
19475 s,@LIB_LINK@,$LIB_LINK,;t t
19476 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
19477 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
19478 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
19479 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
19480 s,@TICS_NAME@,$TICS_NAME,;t t
19481 s,@TINFO_NAME@,$TINFO_NAME,;t t
19482 s,@LIB_NAME@,$LIB_NAME,;t t
19483 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
19484 s,@CC_G_OPT@,$CC_G_OPT,;t t
19485 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
19486 s,@LD_MODEL@,$LD_MODEL,;t t
19487 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
19488 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
19489 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
19490 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
19491 s,@LINK_PROGS@,$LINK_PROGS,;t t
19492 s,@LINK_TESTS@,$LINK_TESTS,;t t
19493 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
19494 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
19495 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
19496 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
19497 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
19498 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
19499 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
19500 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
19501 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
19502 s,@TERMINFO@,$TERMINFO,;t t
19503 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
19504 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
19505 s,@TERMPATH@,$TERMPATH,;t t
19506 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
19507 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
19508 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
19509 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
19510 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
19511 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
19512 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
19513 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
19514 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
19515 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
19516 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
19517 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
19518 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
19519 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
19520 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
19521 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
19522 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
19523 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
19524 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
19525 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
19526 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
19527 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
19528 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
19529 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
19530 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
19531 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
19532 s,@PTHREAD@,$PTHREAD,;t t
19533 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
19534 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
19535 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
19536 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
19537 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
19538 s,@ECHO_LINK@,$ECHO_LINK,;t t
19539 s,@ADAFLAGS@,$ADAFLAGS,;t t
19540 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
19541 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
19542 s,@ADA_TRACE@,$ADA_TRACE,;t t
19543 s,@MATH_LIB@,$MATH_LIB,;t t
19544 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
19545 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
19546 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
19547 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
19548 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
19549 s,@TEST_LIBS@,$TEST_LIBS,;t t
19550 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
19551 s,@CXXCPP@,$CXXCPP,;t t
19552 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
19553 s,@CXX_AR@,$CXX_AR,;t t
19554 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
19555 s,@CXXLIBS@,$CXXLIBS,;t t
19556 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
19557 s,@gnat_exists@,$gnat_exists,;t t
19558 s,@cf_compile_generics@,$cf_compile_generics,;t t
19559 s,@cf_generic_objects@,$cf_generic_objects,;t t
19560 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
19561 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
19562 s,@M4_exists@,$M4_exists,;t t
19563 s,@cf_ada_make@,$cf_ada_make,;t t
19564 s,@PRAGMA_UNREF@,$PRAGMA_UNREF,;t t
19565 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
19566 s,@cf_ada_package@,$cf_ada_package,;t t
19567 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
19568 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
19569 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
19570 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
19571 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
19572 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
19573 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
19574 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
19575 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
19576 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
19577 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
19578 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
19579 s,@TICS_ARGS@,$TICS_ARGS,;t t
19580 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
19581 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
19582 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
19583 s,@TINFO_ARGS@,$TINFO_ARGS,;t t
19584 s,@TINFO_ARGS2@,$TINFO_ARGS2,;t t
19585 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
19586 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
19587 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
19588 s,@TICS_LIST@,$TICS_LIST,;t t
19589 s,@TINFO_LIST@,$TINFO_LIST,;t t
19590 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
19591 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
19592 s,@TEST_ARGS@,$TEST_ARGS,;t t
19593 s,@TEST_DEPS@,$TEST_DEPS,;t t
19594 s,@TEST_ARG2@,$TEST_ARG2,;t t
19595 s,@TEST_DEP2@,$TEST_DEP2,;t t
19596 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
19597 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
19598 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
19599 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
19600 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
19601 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
19602 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
19603 s,@cross_compiling@,$cross_compiling,;t t
19604 s,@TIC_PATH@,$TIC_PATH,;t t
19609 cat >>$CONFIG_STATUS <<\EOF
19610 # Split the substitutions into bite-sized pieces for seds with
19611 # small command number limits, like on Digital OSF/1 and HP-UX.
19612 ac_max_sed_lines=48
19613 ac_sed_frag=1 # Number of current file.
19614 ac_beg=1 # First line for current file.
19615 ac_end=$ac_max_sed_lines # Line after last line for current file.
19618 while $ac_more_lines; do
19619 if test $ac_beg -gt 1; then
19620 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19622 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19624 if test ! -s $tmp/subs.frag; then
19625 ac_more_lines=false
19627 # The purpose of the label and of the branching condition is to
19628 # speed up the sed processing (if there are no `@' at all, there
19629 # is no need to browse any of the substitutions).
19630 # These are the two extra sed commands mentioned above.
19632 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19633 if test -z "$ac_sed_cmds"; then
19634 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19636 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19638 ac_sed_frag=`expr $ac_sed_frag + 1`
19640 ac_end=`expr $ac_end + $ac_max_sed_lines`
19643 if test -z "$ac_sed_cmds"; then
19646 fi # test -n "$CONFIG_FILES"
19649 cat >>$CONFIG_STATUS <<\EOF
19650 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19651 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19653 - | *:- | *:-:* ) # input from stdin
19655 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19656 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19657 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19658 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19659 * ) ac_file_in=$ac_file.in ;;
19662 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19663 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19664 X"$ac_file" : 'X\(//\)[^/]' \| \
19665 X"$ac_file" : 'X\(//\)$' \| \
19666 X"$ac_file" : 'X\(/\)' \| \
19667 . : '\(.\)' 2>/dev/null ||
19669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19670 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19671 /^X\(\/\/\)$/{ s//\1/; q; }
19672 /^X\(\/\).*/{ s//\1/; q; }
19674 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19675 { case "$ac_dir" in
19676 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19680 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19681 case $as_mkdir_dir in
19682 # Skip DOS drivespec
19683 ?:) as_incr_dir=$as_mkdir_dir ;;
19685 as_incr_dir=$as_incr_dir/$as_mkdir_dir
19686 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
19691 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
19692 # A "../" for each directory in $ac_dir_suffix.
19693 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
19695 ac_dir_suffix= ac_dots=
19700 if test -z "$ac_dots"; then
19703 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
19705 [\\/]* | ?:[\\/]* )
19706 ac_srcdir=$srcdir$ac_dir_suffix;
19707 ac_top_srcdir=$srcdir ;;
19708 *) # Relative path.
19709 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
19710 ac_top_srcdir=$ac_dots$srcdir ;;
19714 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19715 *) ac_INSTALL=$ac_dots$INSTALL ;;
19718 if test x"$ac_file" != x-; then
19719 { echo "$as_me:19719: creating $ac_file" >&5
19720 echo "$as_me: creating $ac_file" >&6;}
19723 # Let's still pretend it is `configure' which instantiates (i.e., don't
19724 # use $as_me), people would be surprised to read:
19725 # /* config.h. Generated automatically by config.status. */
19726 configure_input="Generated automatically from `echo $ac_file_in |
19727 sed 's,.*/,,'` by configure."
19729 # First look for the input files in the build tree, otherwise in the
19731 ac_file_inputs=`IFS=:
19732 for f in $ac_file_in; do
19734 -) echo $tmp/stdin ;;
19736 # Absolute (can't be DOS-style, as IFS=:)
19737 test -f "$f" || { { echo "$as_me:19737: error: cannot find input file: $f" >&5
19738 echo "$as_me: error: cannot find input file: $f" >&2;}
19739 { (exit 1); exit 1; }; }
19742 if test -f "$f"; then
19745 elif test -f "$srcdir/$f"; then
19750 { { echo "$as_me:19750: error: cannot find input file: $f" >&5
19751 echo "$as_me: error: cannot find input file: $f" >&2;}
19752 { (exit 1); exit 1; }; }
19755 done` || { (exit 1); exit 1; }
19757 cat >>$CONFIG_STATUS <<EOF
19761 cat >>$CONFIG_STATUS <<\EOF
19763 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19764 s,@configure_input@,$configure_input,;t t
19765 s,@srcdir@,$ac_srcdir,;t t
19766 s,@top_srcdir@,$ac_top_srcdir,;t t
19767 s,@INSTALL@,$ac_INSTALL,;t t
19768 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19770 if test x"$ac_file" != x-; then
19771 mv $tmp/out $ac_file
19779 cat >>$CONFIG_STATUS <<\EOF
19782 # CONFIG_HEADER section.
19785 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19786 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19788 # ac_d sets the value in "#define NAME VALUE" lines.
19789 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19790 ac_dB='[ ].*$,\1#\2'
19793 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
19794 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19795 ac_iB='\([ ]\),\1#\2define\3'
19798 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19799 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19800 ac_uB='$,\1#\2define\3'
19804 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19805 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19807 - | *:- | *:-:* ) # input from stdin
19809 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19810 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19811 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19812 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19813 * ) ac_file_in=$ac_file.in ;;
19816 test x"$ac_file" != x- && { echo "$as_me:19816: creating $ac_file" >&5
19817 echo "$as_me: creating $ac_file" >&6;}
19819 # First look for the input files in the build tree, otherwise in the
19821 ac_file_inputs=`IFS=:
19822 for f in $ac_file_in; do
19824 -) echo $tmp/stdin ;;
19826 # Absolute (can't be DOS-style, as IFS=:)
19827 test -f "$f" || { { echo "$as_me:19827: error: cannot find input file: $f" >&5
19828 echo "$as_me: error: cannot find input file: $f" >&2;}
19829 { (exit 1); exit 1; }; }
19832 if test -f "$f"; then
19835 elif test -f "$srcdir/$f"; then
19840 { { echo "$as_me:19840: error: cannot find input file: $f" >&5
19841 echo "$as_me: error: cannot find input file: $f" >&2;}
19842 { (exit 1); exit 1; }; }
19845 done` || { (exit 1); exit 1; }
19846 # Remove the trailing spaces.
19847 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19851 # Transform confdefs.h into a list of #define's. We won't use it as a sed
19852 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
19853 # be either 'cat' or 'sort'.
19854 cat confdefs.h | uniq >conftest.vals
19856 # Break up conftest.vals because some shells have a limit on
19857 # the size of here documents, and old seds have small limits too.
19859 rm -f conftest.tail
19860 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
19861 while grep . conftest.vals >/dev/null
19863 # Write chunks of a limited-size here document to conftest.frag.
19864 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
19865 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
19866 echo 'CEOF' >> $CONFIG_STATUS
19867 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
19868 rm -f conftest.vals
19869 mv conftest.tail conftest.vals
19871 rm -f conftest.vals
19873 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
19875 echo ' cat >> conftest.edit <<CEOF
19876 /@DEFS@/r conftest.frag
19879 sed -f conftest.edit $tmp/in > $tmp/out
19881 mv $tmp/out $tmp/in
19882 rm -f conftest.edit conftest.frag
19883 ' >> $CONFIG_STATUS
19885 cat >>$CONFIG_STATUS <<\EOF
19886 # Let's still pretend it is `configure' which instantiates (i.e., don't
19887 # use $as_me), people would be surprised to read:
19888 # /* config.h. Generated automatically by config.status. */
19889 if test x"$ac_file" = x-; then
19890 echo "/* Generated automatically by configure. */" >$tmp/config.h
19892 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
19894 cat $tmp/in >>$tmp/config.h
19896 if test x"$ac_file" != x-; then
19897 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
19898 { echo "$as_me:19898: $ac_file is unchanged" >&5
19899 echo "$as_me: $ac_file is unchanged" >&6;}
19901 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19902 X"$ac_file" : 'X\(//\)[^/]' \| \
19903 X"$ac_file" : 'X\(//\)$' \| \
19904 X"$ac_file" : 'X\(/\)' \| \
19905 . : '\(.\)' 2>/dev/null ||
19907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19908 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19909 /^X\(\/\/\)$/{ s//\1/; q; }
19910 /^X\(\/\).*/{ s//\1/; q; }
19912 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19913 { case "$ac_dir" in
19914 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19918 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19919 case $as_mkdir_dir in
19920 # Skip DOS drivespec
19921 ?:) as_incr_dir=$as_mkdir_dir ;;
19923 as_incr_dir=$as_incr_dir/$as_mkdir_dir
19924 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
19931 mv $tmp/config.h $ac_file
19935 rm -f $tmp/config.h
19939 cat >>$CONFIG_STATUS <<\EOF
19941 # CONFIG_COMMANDS section.
19943 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19944 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19945 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19952 if test ! -d $srcdir/$cf_dir; then
19954 elif test -f $srcdir/$cf_dir/programs; then
19955 $AWK -f $srcdir/test/mk-test.awk ECHO_LINK="$ECHO_LINK" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
19959 case $cf_cv_system_name in #(vi
19963 *) LIB_PREFIX='lib'
19966 cf_prefix=$LIB_PREFIX
19968 if test $cf_cv_shlib_version = cygdll ; then
19969 TINFO_NAME=$TINFO_ARG_SUFFIX
19973 for cf_dir in $SRC_SUBDIRS
19975 if test ! -d $srcdir/$cf_dir ; then
19977 elif test -f $srcdir/$cf_dir/modules; then
19981 for cf_item in $cf_LIST_MODELS
19984 case $cf_item in #(vi
19987 cf_depsuf=$cf_suffix
19991 cf_depsuf=$cf_suffix
19995 cf_depsuf=$cf_suffix
19999 cf_depsuf=$cf_suffix
20002 case $cf_cv_system_name in
20005 cf_depsuf=$cf_suffix
20013 cf_depsuf=$cf_suffix
20019 cf_depsuf=$cf_suffix
20023 cf_depsuf=$cf_suffix
20028 cf_depsuf=$cf_suffix
20032 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
20033 test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"
20035 if test $cf_item = shared ; then
20036 if test "$cf_cv_do_symlinks" = yes ; then
20037 case "$cf_cv_shlib_version" in #(vi
20039 case "$cf_cv_system_name" in #(vi
20041 case .${LIB_SUFFIX} in
20043 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
20044 cf_suffix=w'.${REL_VERSION}'"$cf_suffix"
20047 cf_suffix='.${REL_VERSION}'"$cf_suffix"
20051 *) cf_suffix="$cf_suffix"'.${REL_VERSION}' ;;
20055 case "$cf_cv_system_name" in #(vi
20057 case .${LIB_SUFFIX} in
20059 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
20060 cf_suffix=w'.${ABI_VERSION}'"$cf_suffix"
20063 cf_suffix='.${ABI_VERSION}'"$cf_suffix"
20067 *) cf_suffix="$cf_suffix"'.${ABI_VERSION}' ;;
20072 # cygwin needs import library, and has unique naming convention
20073 # use autodetected ${cf_prefix} for import lib and static lib, but
20074 # use 'cyg' prefix for shared lib.
20075 if test $cf_cv_shlib_version = cygdll ; then
20076 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
20077 LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/cyg${cf_dir}${cf_cygsuf}"
20081 LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/${cf_prefix}${cf_dir}${cf_suffix}"
20084 if test $cf_dir = ncurses ; then
20085 cf_subsets="$LIB_SUBSETS"
20086 cf_r_parts="$cf_subsets"
20087 cf_liblist="$LIBS_TO_MAKE"
20089 while test -n "$cf_r_parts"
20091 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
20092 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
20093 if test "$cf_l_parts" != "$cf_r_parts" ; then
20095 case $cf_l_parts in #(vi
20097 cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
20100 cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
20106 if test -n "$cf_item"; then
20107 LIBS_TO_MAKE="$cf_item $LIBS_TO_MAKE"
20114 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
20117 sed -e "s%@LIBS_TO_MAKE@%$LIBS_TO_MAKE%" \
20118 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
20119 $cf_dir/Makefile >$cf_dir/Makefile.out
20120 mv $cf_dir/Makefile.out $cf_dir/Makefile
20122 $AWK -f $srcdir/mk-0th.awk \
20123 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" \
20124 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
20126 for cf_subset in $cf_subsets
20129 for cf_item in $cf_LIST_MODELS
20131 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
20133 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20135 case $cf_item in #(vi
20138 cf_depsuf=$cf_suffix
20142 cf_depsuf=$cf_suffix
20146 cf_depsuf=$cf_suffix
20150 cf_depsuf=$cf_suffix
20153 case $cf_cv_system_name in
20156 cf_depsuf=$cf_suffix
20164 cf_depsuf=$cf_suffix
20170 cf_depsuf=$cf_suffix
20174 cf_depsuf=$cf_suffix
20179 cf_depsuf=$cf_suffix
20183 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
20184 test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"
20187 libtool) cf_subdir='obj_lo' ;;
20188 normal) cf_subdir='objects' ;;
20189 debug) cf_subdir='obj_g' ;;
20190 profile) cf_subdir='obj_p' ;;
20192 case $cf_cv_system_name in #(vi
20194 cf_subdir='objects' ;;
20196 cf_subdir='obj_s' ;;
20200 # Test for case where we build libtinfo with a different name.
20202 if test $cf_dir = ncurses ; then
20205 cf_libname=${cf_libname}$LIB_SUFFIX
20208 cf_libname=$TINFO_LIB_SUFFIX
20211 cf_libname=$TICS_LIB_SUFFIX
20215 cf_libname=${cf_libname}$LIB_SUFFIX
20217 if test -n "${DFT_ARG_SUFFIX}" ; then
20218 # undo $LIB_SUFFIX add-on in CF_LIB_SUFFIX
20219 cf_suffix=`echo $cf_suffix |sed -e "s%^${LIB_SUFFIX}%%"`
20222 # These dependencies really are for development, not
20223 # builds, but they are useful in porting, too.
20224 cf_depend="../include/ncurses_cfg.h"
20225 if test "$srcdir" = "."; then
20228 cf_reldir="\${srcdir}"
20231 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
20232 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
20233 elif test -f $srcdir/$cf_dir/curses.priv.h; then
20234 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
20238 old_cf_suffix="$cf_suffix"
20239 if test "$cf_cv_shlib_version_infix" = yes ; then
20240 if test -n "$LIB_SUFFIX" ; then
20241 case $LIB_SUFFIX in
20243 cf_libname=`echo $cf_libname | sed 's/w$//'`
20244 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
20251 $AWK -f $srcdir/mk-1st.awk \
20252 name=${cf_libname}${cf_dir_suffix} \
20253 traces=$LIB_TRACING \
20256 prefix=$cf_prefix \
20257 suffix=$cf_suffix \
20258 subset=$cf_subset \
20260 TermlibRoot=$TINFO_NAME \
20261 TermlibSuffix=$TINFO_SUFFIX \
20262 ShlibVer=$cf_cv_shlib_version \
20263 ShlibVerInfix=$cf_cv_shlib_version_infix \
20264 ReLink=${cf_cv_do_relink-no} \
20265 DoLinks=$cf_cv_do_symlinks \
20266 rmSoLocs=$cf_cv_rm_so_locs \
20267 ldconfig="$LDCONFIG" \
20268 overwrite=$WITH_OVERWRITE \
20269 depend="$cf_depend" \
20271 libtool_version="$LIBTOOL_VERSION" \
20272 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
20274 cf_suffix="$old_cf_suffix"
20276 for cf_subdir2 in $cf_subdirs lib
20278 test $cf_subdir = $cf_subdir2 && break
20280 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
20281 $AWK -f $srcdir/mk-2nd.awk \
20283 traces=$LIB_TRACING \
20286 subset=$cf_subset \
20289 crenames=$cf_cv_prog_CC_c_o \
20290 cxxrenames=$cf_cv_prog_CXX_c_o \
20291 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
20292 cf_subdirs="$cf_subdirs $cf_subdir"
20297 echo ' cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@' >>Makefile
20300 for cf_dir in $SRC_SUBDIRS
20302 if test ! -d $srcdir/$cf_dir ; then
20306 if test -f $cf_dir/Makefile ; then
20309 echo 'libs \' >> Makefile
20310 echo 'install.libs \' >> Makefile
20311 echo 'uninstall.libs ::' >> Makefile
20312 echo ' cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@' >> Makefile
20317 if test -f $srcdir/$cf_dir/modules; then
20319 if test -f $srcdir/$cf_dir/headers; then
20320 cat >> Makefile <<CF_EOF
20321 install.includes \\
20322 uninstall.includes \\
20325 if test "$cf_dir" != "c++" ; then
20326 echo 'lint \' >> Makefile
20328 cat >> Makefile <<CF_EOF
20334 uninstall.$cf_dir ::
20335 cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@
20337 elif test -f $srcdir/$cf_dir/headers; then
20338 cat >> Makefile <<CF_EOF
20343 install.includes \\
20344 uninstall.includes ::
20345 cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@
20350 cat >> Makefile <<CF_EOF
20352 install.libs uninstall.libs \\
20353 install.data uninstall.data ::
20354 $MAKE_TERMINFO cd misc && \${MAKE} \${CF_MFLAGS} \$@
20357 if test "x$cf_with_manpages" = xyes; then
20358 cat >> Makefile <<CF_EOF
20362 cd man && \${MAKE} \${CF_MFLAGS} \$@
20366 cat >> Makefile <<CF_EOF
20369 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
20370 rm -f headers.sh headers.sed mk_shared_lib.sh
20371 rm -f edit_man.* man_alias.*
20372 rm -rf \${DIRS_TO_MAKE}
20375 # Special case: tack's manpage lives in its own directory.
20376 if test "x$cf_with_manpages" = xyes; then
20377 if test -d tack ; then
20378 if test -f $srcdir/$tack.h; then
20379 cat >> Makefile <<CF_EOF
20383 cd tack && \${MAKE} \${CF_MFLAGS} \$@
20389 rm -f headers.sed headers.sh
20391 echo creating headers.sh
20392 cat >headers.sh <<CF_EOF
20394 # This shell script is generated by the 'configure' script. It is invoked in a
20395 # subdirectory of the build tree. It generates a sed-script in the parent
20396 # directory that is used to adjust includes for header files that reside in a
20397 # subdirectory of /usr/include, etc.
20399 while test \$# != 3
20401 PRG="\$PRG \$1"; shift
20406 TMPSRC=\${TMPDIR-/tmp}/\`basename \$SRC\`\$\$
20407 TMPSED=\${TMPDIR-/tmp}/headers.sed\$\$
20408 echo installing \$SRC in \$DST
20411 if test $WITH_CURSES_H = yes; then
20412 cat >>headers.sh <<CF_EOF
20415 END=\`basename \$DST\`
20416 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
20418 NAME=\`basename \$i\`
20419 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
20423 echo "" >> \$TMPSED
20429 cat >>headers.sh <<CF_EOF
20432 END=\`basename \$DST\`
20433 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
20435 NAME=\`basename \$i\`
20436 if test "\$NAME" = "curses.h"
20438 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
20441 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
20445 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
20450 cat >>headers.sh <<CF_EOF
20452 sed -f \$TMPSED \$SRC > \$TMPSRC
20453 NAME=\`basename \$SRC\`
20455 if test $WITH_CURSES_H != yes; then
20456 cat >>headers.sh <<CF_EOF
20457 test "\$NAME" = "curses.h" && NAME=ncurses.h
20460 cat >>headers.sh <<CF_EOF
20461 # Just in case someone gzip'd manpages, remove the conflicting copy.
20462 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
20464 eval \$PRG \$TMPSRC \$DST/\$NAME
20465 rm -f \$TMPSRC \$TMPSED
20468 chmod 0755 headers.sh
20470 for cf_dir in $SRC_SUBDIRS
20472 if test ! -d $srcdir/$cf_dir ; then
20476 if test -f $srcdir/$cf_dir/headers; then
20477 $AWK -f $srcdir/mk-hdr.awk \
20478 subset="$LIB_SUBSETS" \
20479 compat="$WITH_CURSES_H" \
20480 $srcdir/$cf_dir/headers >>$cf_dir/Makefile
20483 if test -f $srcdir/$cf_dir/modules; then
20484 if test "$cf_dir" != "c++" ; then
20485 cat >>$cf_dir/Makefile <<"CF_EOF"
20486 depend : ${AUTO_SRC}
20487 makedepend -- ${CPPFLAGS} -- ${C_SRC}
20489 # DO NOT DELETE THIS LINE -- make depend depends on it.
20495 if test "x$cf_with_ada" != xno ; then
20496 if test -z "$USE_OLD_MAKERULES" ; then
20497 $AWK -f $srcdir/Ada95/mk-1st.awk <$srcdir/Ada95/src/modules >>Ada95/src/Makefile
20505 cat >>$CONFIG_STATUS <<\EOF
20507 { (exit 0); exit 0; }
20509 chmod +x $CONFIG_STATUS
20510 ac_clean_files=$ac_clean_files_save
20512 # configure is writing to config.log, and then calls config.status.
20513 # config.status does its own redirection, appending to config.log.
20514 # Unfortunately, on DOS this fails, as config.log is still kept open
20515 # by configure, so config.status won't be able to write to it; its
20516 # output is simply discarded. So we exec the FD to /dev/null,
20517 # effectively closing config.log, so it can be properly (re)opened and
20518 # appended to by config.status. When coming back to configure, we
20519 # need to make the FD available again.
20520 if test "$no_create" != yes; then
20523 $SHELL $CONFIG_STATUS || ac_cs_success=false
20525 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20526 # would make configure fail if this is the last instruction.
20527 $ac_cs_success || { (exit 1); exit 1; }
20529 ${MAKE-make} preinstall