2 # From configure.in Revision: 1.487 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20100320.
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 --with-libtool generate libraries with libtool
716 --with-shared generate shared-libraries
717 --with-normal generate normal-libraries (default)
718 --with-debug generate debug-libraries (default)
719 --with-profile generate profile-libraries
720 --with-termlib generate separate terminfo library
721 --with-ticlib generate separate tic library
722 --with-gpm use Alessandro Rubini's GPM library
723 --without-dlsym do not use dlsym() to load GPM dynamically
724 --with-sysmouse use sysmouse (FreeBSD console)
725 --enable-rpath use rpath option when generating shared libraries
726 --disable-relink relink shared libraries during install
727 --with-shlib-version=X Specify rel or abi version for shared libs
728 Fine-Tuning Your Configuration:
729 --disable-overwrite leave out the link to -lcurses
730 --disable-database do not use terminfo, only fallbacks/termcap
731 --with-database=XXX specify terminfo source to install
732 --with-hashed-db specify hashed-database library
733 --with-fallbacks=XXX specify list of fallback terminal descriptions
734 --without-xterm-new specify if xterm terminfo should be old version
735 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
736 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
737 --disable-big-core assume machine has little memory
738 --disable-big-strings assume compiler has only standard-size strings
739 --enable-termcap compile in termcap fallback support
740 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
741 --enable-getcap fast termcap load, no xrefs to terminfo
742 --enable-getcap-cache cache translated termcaps in ~/.terminfo
743 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
744 --disable-root-environ restrict environment when running as root
745 --enable-symlinks make tic use symbolic links not hard links
746 --enable-broken_linker compile with broken-linker support code
747 --enable-bsdpad recognize BSD-style prefix padding
748 --enable-widec compile with wide-char/UTF-8 code
749 --disable-lp64 allow chtype to be long (ignore _LP64)
750 --disable-largefile omit support for large files
751 --disable-tparm-varargs compile tparm() without varargs interface
752 --disable-tic-depends link tic library without explicit dependency on ncurses library
753 --with-bool=TYPE override fallback type of bool variable
754 --with-caps=alt compile with alternate Caps file
755 --with-chtype=TYPE override type of chtype
756 --with-ospeed=TYPE override type of ospeed variable
757 --with-mmask-t=TYPE override type of mmask_t
758 --with-ccharw-max=XXX override size CCHARW_MAX
759 --with-rcs-ids compile-in RCS identifiers
760 Options to Specify How Manpages are Installed:
761 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
762 optionally formatted/catonly, e.g., gzip,formatted
763 --with-manpage-renames specify manpage-renaming
764 --with-manpage-aliases specify manpage-aliases using .so
765 --with-manpage-symlinks specify manpage-aliases using symlinks
766 --with-manpage-tbl specify manpage processing with tbl
768 --disable-ext-funcs disable function-extensions
769 --enable-sp-funcs enable experimental SCREEN-extensions
770 --enable-term-driver enable experimental terminal-driver
771 --enable-const compile with extra/non-standard const
772 --enable-ext-colors compile for 256-color support
773 --enable-ext-mouse compile for extended mouse-encoding
774 --enable-no-padding compile with $NCURSES_NO_PADDING code
775 --enable-signed-char compile using signed Boolean's in term.h
776 --enable-sigwinch compile with SIGWINCH handler
777 --enable-tcap-names compile with user-definable terminal capabilities
779 --without-develop disable development options
780 --enable-hard-tabs compile with hard-tabs code
781 --enable-xmc-glitch compile with support for xmc (magic-cookie)
783 --disable-assumed-color do not assume anything about default-colors
784 --disable-hashmap compile without hashmap scrolling-optimization
785 --enable-colorfgbg compile-in experimental $COLORFGBG code
786 --enable-interop compile-in experimental interop bindings
787 --with-pthread use POSIX thread library
788 --enable-weak-symbols enable weak-symbols for pthreads
789 --enable-reentrant compile with experimental reentrant code
790 --with-wrap-prefix=XXX override prefix used for public variables
791 --enable-safe-sprintf compile with experimental safe-sprintf code
792 --disable-scroll-hints compile without scroll-hints code
793 --enable-wgetch-events compile with experimental wgetch-events code
794 Testing/development Options:
795 --enable-echo build: display "compiling" commands (default)
796 --enable-warnings build: turn on GCC compiler warnings
797 --enable-assertions test: turn on generation of assertion code
798 --with-dmalloc test: use Gray Watson's dmalloc library
799 --with-dbmalloc test: use Conor Cahill's dbmalloc library
800 --with-valgrind test: use valgrind
801 --disable-leaks test: free permanent memory, analyze leaks
802 --enable-expanded test: generate functions for certain macros
803 --disable-macros test: use functions rather than macros
804 --with-trace test: add trace() function to all models of ncurses
805 Ada95 Binding Options:
806 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
807 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/lib/ada/adainclude)
808 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
810 Some influential environment variables:
811 CC C compiler command
812 CFLAGS C compiler flags
813 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
814 nonstandard directory <lib dir>
815 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
816 headers in a nonstandard directory <include dir>
818 CXX C++ compiler command
819 CXXFLAGS C++ compiler flags
820 CXXCPP C++ preprocessor
822 Use these variables to override the choices made by `configure' or to help
823 it to find libraries and programs with nonstandard names/locations.
828 if test "$ac_init_help" = "recursive"; then
829 # If there are subdirs, report their specific --help.
831 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
833 # A "../" for each directory in /$ac_subdir.
834 ac_dots=`echo $ac_subdir |
835 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
838 .) # No --srcdir option. We are building in place.
839 ac_sub_srcdir=$srcdir ;;
840 [\\/]* | ?:[\\/]* ) # Absolute path.
841 ac_sub_srcdir=$srcdir/$ac_subdir ;;
843 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
846 # Check for guested configure; otherwise get Cygnus style configure.
847 if test -f $ac_sub_srcdir/configure.gnu; then
849 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
850 elif test -f $ac_sub_srcdir/configure; then
852 $SHELL $ac_sub_srcdir/configure --help=recursive
853 elif test -f $ac_sub_srcdir/configure.ac ||
854 test -f $ac_sub_srcdir/configure.in; then
858 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
864 test -n "$ac_init_help" && exit 0
865 if $ac_init_version; then
868 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
869 Free Software Foundation, Inc.
870 This configure script is free software; the Free Software Foundation
871 gives unlimited permission to copy, distribute and modify it.
877 This file contains any messages produced by compilers while
878 running configure, to aid debugging if configure makes a mistake.
880 It was created by $as_me, which was
881 generated by GNU Autoconf 2.52.20100320. Invocation command line was
892 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
893 uname -m = `(uname -m) 2>/dev/null || echo unknown`
894 uname -r = `(uname -r) 2>/dev/null || echo unknown`
895 uname -s = `(uname -s) 2>/dev/null || echo unknown`
896 uname -v = `(uname -v) 2>/dev/null || echo unknown`
898 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
899 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
901 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
902 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
903 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
904 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
905 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
906 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
907 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
921 # Keep a trace of the command line.
922 # Strip out --no-create and --no-recursion so they do not pile up.
923 # Also quote any args containing shell meta-characters.
929 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
930 | --no-cr | --no-c) ;;
931 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
932 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
933 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
934 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
935 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
937 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
940 # Get rid of the leading space.
943 # When interrupted or exit'd, cleanup temporary files, and complete
944 # config.log. We remove comments because anyway the quotes in there
945 # would cause problems or look ugly.
947 # Save into config.log some information that might help in debugging.
949 echo "## ----------------- ##" >&5
950 echo "## Cache variables. ##" >&5
951 echo "## ----------------- ##" >&5
953 # The following way of writing the cache mishandles newlines in values,
956 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
959 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
960 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
964 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
968 sed "/^$/d" confdefs.h >conftest.log
969 if test -s conftest.log; then
971 echo "## ------------ ##" >&5
972 echo "## confdefs.h. ##" >&5
973 echo "## ------------ ##" >&5
978 test "$ac_signal" != 0 &&
979 echo "$as_me: caught signal $ac_signal" >&5
980 echo "$as_me: exit $exit_status" >&5
981 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
984 for ac_signal in 1 2 13 15; do
985 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
989 # confdefs.h avoids OS command line length limits that DEFS can exceed.
990 rm -rf conftest* confdefs.h
991 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
994 # Let the site file select an alternate cache file if it wants to.
995 # Prefer explicitly selected file to automatically selected ones.
996 if test -z "$CONFIG_SITE"; then
997 if test "x$prefix" != xNONE; then
998 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1000 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1003 for ac_site_file in $CONFIG_SITE; do
1004 if test -r "$ac_site_file"; then
1005 { echo "$as_me:1005: loading site script $ac_site_file" >&5
1006 echo "$as_me: loading site script $ac_site_file" >&6;}
1007 cat "$ac_site_file" >&5
1012 if test -r "$cache_file"; then
1013 # Some versions of bash will fail to source /dev/null (special
1014 # files actually), so we avoid doing that.
1015 if test -f "$cache_file"; then
1016 { echo "$as_me:1016: loading cache $cache_file" >&5
1017 echo "$as_me: loading cache $cache_file" >&6;}
1019 [\\/]* | ?:[\\/]* ) . $cache_file;;
1020 *) . ./$cache_file;;
1024 { echo "$as_me:1024: creating cache $cache_file" >&5
1025 echo "$as_me: creating cache $cache_file" >&6;}
1029 # Check that the precious variables saved in the cache have kept the same
1031 ac_cache_corrupted=false
1032 for ac_var in `(set) 2>&1 |
1033 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1034 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1035 eval ac_new_set=\$ac_env_${ac_var}_set
1036 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1037 eval ac_new_val="\$ac_env_${ac_var}_value"
1038 case $ac_old_set,$ac_new_set in
1040 { echo "$as_me:1040: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1041 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1042 ac_cache_corrupted=: ;;
1044 { echo "$as_me:1044: error: \`$ac_var' was not set in the previous run" >&5
1045 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1046 ac_cache_corrupted=: ;;
1049 if test "x$ac_old_val" != "x$ac_new_val"; then
1050 { echo "$as_me:1050: error: \`$ac_var' has changed since the previous run:" >&5
1051 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1052 { echo "$as_me:1052: former value: $ac_old_val" >&5
1053 echo "$as_me: former value: $ac_old_val" >&2;}
1054 { echo "$as_me:1054: current value: $ac_new_val" >&5
1055 echo "$as_me: current value: $ac_new_val" >&2;}
1056 ac_cache_corrupted=:
1059 # Pass precious variables to config.status. It doesn't matter if
1060 # we pass some twice (in addition to the command line arguments).
1061 if test "$ac_new_set" = set; then
1063 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1064 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1065 ac_configure_args="$ac_configure_args '$ac_arg'"
1067 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1072 if $ac_cache_corrupted; then
1073 { echo "$as_me:1073: error: changes in the environment can compromise the build" >&5
1074 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1075 { { echo "$as_me:1075: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1076 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1077 { (exit 1); exit 1; }; }
1081 ac_cpp='$CPP $CPPFLAGS'
1082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1085 ac_main_return=return
1087 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1088 *c*,-n*) ECHO_N= ECHO_C='
1090 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1091 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1093 echo "#! $SHELL" >conftest.sh
1094 echo "exit 0" >>conftest.sh
1095 chmod +x conftest.sh
1096 if { (echo "$as_me:1096: PATH=\".;.\"; conftest.sh") >&5
1097 (PATH=".;."; conftest.sh) 2>&5
1099 echo "$as_me:1099: \$? = $ac_status" >&5
1100 (exit $ac_status); }; then
1101 ac_path_separator=';'
1105 PATH_SEPARATOR="$ac_path_separator"
1108 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1112 echo "$as_me:1112: checking for egrep" >&5
1113 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1114 if test "${ac_cv_prog_egrep+set}" = set; then
1115 echo $ECHO_N "(cached) $ECHO_C" >&6
1117 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1118 then ac_cv_prog_egrep='grep -E'
1119 else ac_cv_prog_egrep='egrep'
1122 echo "$as_me:1122: result: $ac_cv_prog_egrep" >&5
1123 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1124 EGREP=$ac_cv_prog_egrep
1126 test -z "$EGREP" && { { echo "$as_me:1126: error: No egrep program found" >&5
1127 echo "$as_me: error: No egrep program found" >&2;}
1128 { (exit 1); exit 1; }; }
1130 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1131 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1132 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1133 cf_cv_abi_version=${NCURSES_MAJOR}
1134 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1135 cf_cv_timestamp=`date`
1136 echo "$as_me:1136: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1137 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1139 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1141 # Check whether --with-rel-version or --without-rel-version was given.
1142 if test "${with_rel_version+set}" = set; then
1143 withval="$with_rel_version"
1144 { echo "$as_me:1144: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1145 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1146 cf_cv_rel_version=$withval
1149 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1150 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1152 if test -n "$NCURSES_MAJOR" ; then
1153 case $NCURSES_MAJOR in #(vi
1157 { { echo "$as_me:1157: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1158 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1159 { (exit 1); exit 1; }; }
1163 { { echo "$as_me:1163: error: Release major-version value is empty" >&5
1164 echo "$as_me: error: Release major-version value is empty" >&2;}
1165 { (exit 1); exit 1; }; }
1168 if test -n "$NCURSES_MINOR" ; then
1169 case $NCURSES_MINOR in #(vi
1173 { { echo "$as_me:1173: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1174 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1175 { (exit 1); exit 1; }; }
1179 { { echo "$as_me:1179: error: Release minor-version value is empty" >&5
1180 echo "$as_me: error: Release minor-version value is empty" >&2;}
1181 { (exit 1); exit 1; }; }
1184 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1186 # Check whether --with-abi-version or --without-abi-version was given.
1187 if test "${with_abi_version+set}" = set; then
1188 withval="$with_abi_version"
1189 { echo "$as_me:1189: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1190 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1191 cf_cv_abi_version=$withval
1194 if test -n "$cf_cv_abi_version" ; then
1195 case $cf_cv_abi_version in #(vi
1199 { { echo "$as_me:1199: error: ABI version is not a number: $cf_cv_abi_version" >&5
1200 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1201 { (exit 1); exit 1; }; }
1205 { { echo "$as_me:1205: error: ABI version value is empty" >&5
1206 echo "$as_me: error: ABI version value is empty" >&2;}
1207 { (exit 1); exit 1; }; }
1211 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1212 if test -f $ac_dir/install-sh; then
1214 ac_install_sh="$ac_aux_dir/install-sh -c"
1216 elif test -f $ac_dir/install.sh; then
1218 ac_install_sh="$ac_aux_dir/install.sh -c"
1220 elif test -f $ac_dir/shtool; then
1222 ac_install_sh="$ac_aux_dir/shtool install -c"
1226 if test -z "$ac_aux_dir"; then
1227 { { echo "$as_me:1227: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1228 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1229 { (exit 1); exit 1; }; }
1231 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1232 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1233 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1235 # Make sure we can run config.sub.
1236 $ac_config_sub sun4 >/dev/null 2>&1 ||
1237 { { echo "$as_me:1237: error: cannot run $ac_config_sub" >&5
1238 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1239 { (exit 1); exit 1; }; }
1241 echo "$as_me:1241: checking build system type" >&5
1242 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1243 if test "${ac_cv_build+set}" = set; then
1244 echo $ECHO_N "(cached) $ECHO_C" >&6
1246 ac_cv_build_alias=$build_alias
1247 test -z "$ac_cv_build_alias" &&
1248 ac_cv_build_alias=`$ac_config_guess`
1249 test -z "$ac_cv_build_alias" &&
1250 { { echo "$as_me:1250: error: cannot guess build type; you must specify one" >&5
1251 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1252 { (exit 1); exit 1; }; }
1253 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1254 { { echo "$as_me:1254: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1255 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1256 { (exit 1); exit 1; }; }
1259 echo "$as_me:1259: result: $ac_cv_build" >&5
1260 echo "${ECHO_T}$ac_cv_build" >&6
1262 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1263 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1264 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1266 echo "$as_me:1266: checking host system type" >&5
1267 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1268 if test "${ac_cv_host+set}" = set; then
1269 echo $ECHO_N "(cached) $ECHO_C" >&6
1271 ac_cv_host_alias=$host_alias
1272 test -z "$ac_cv_host_alias" &&
1273 ac_cv_host_alias=$ac_cv_build_alias
1274 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1275 { { echo "$as_me:1275: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1276 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1277 { (exit 1); exit 1; }; }
1280 echo "$as_me:1280: result: $ac_cv_host" >&5
1281 echo "${ECHO_T}$ac_cv_host" >&6
1283 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1284 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1285 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1287 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1288 echo "$as_me:1288: checking target system type" >&5
1289 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1290 if test "${ac_cv_target+set}" = set; then
1291 echo $ECHO_N "(cached) $ECHO_C" >&6
1293 ac_cv_target_alias=$target_alias
1294 test "x$ac_cv_target_alias" = "x" &&
1295 ac_cv_target_alias=$ac_cv_host_alias
1296 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1297 { { echo "$as_me:1297: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1298 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1299 { (exit 1); exit 1; }; }
1302 echo "$as_me:1302: result: $ac_cv_target" >&5
1303 echo "${ECHO_T}$ac_cv_target" >&6
1304 target=$ac_cv_target
1305 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1306 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1307 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1309 # The aliases save the names the user supplied, while $host etc.
1310 # will get canonicalized.
1311 test -n "$target_alias" &&
1312 test "$program_prefix$program_suffix$program_transform_name" = \
1314 program_prefix=${target_alias}-
1315 system_name="$host_os"
1317 system_name="`(uname -s -r) 2>/dev/null`"
1318 if test -z "$system_name" ; then
1319 system_name="`(hostname) 2>/dev/null`"
1322 test -n "$system_name" && cat >>confdefs.h <<EOF
1323 #define SYSTEM_NAME "$system_name"
1326 if test "${cf_cv_system_name+set}" = set; then
1327 echo $ECHO_N "(cached) $ECHO_C" >&6
1329 cf_cv_system_name="$system_name"
1332 test -z "$system_name" && system_name="$cf_cv_system_name"
1333 test -n "$cf_cv_system_name" && echo "$as_me:1333: result: Configuring for $cf_cv_system_name" >&5
1334 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1336 if test ".$system_name" != ".$cf_cv_system_name" ; then
1337 echo "$as_me:1337: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1338 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1339 { { echo "$as_me:1339: error: \"Please remove config.cache and try again.\"" >&5
1340 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1341 { (exit 1); exit 1; }; }
1344 # Check whether --with-system-type or --without-system-type was given.
1345 if test "${with_system_type+set}" = set; then
1346 withval="$with_system_type"
1347 { echo "$as_me:1347: WARNING: overriding system type to $withval" >&5
1348 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1349 cf_cv_system_name=$withval
1352 ### Save the given $CFLAGS to allow user-override.
1353 cf_user_CFLAGS="$CFLAGS"
1355 ### Default install-location
1357 echo "$as_me:1357: checking for prefix" >&5
1358 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1359 if test "x$prefix" = "xNONE" ; then
1360 case "$cf_cv_system_name" in
1361 # non-vendor systems don't have a conflict
1362 openbsd*|freebsd*|linux*|cygwin*|k*bsd*-gnu)
1365 *) prefix=$ac_default_prefix
1369 echo "$as_me:1369: result: $prefix" >&5
1370 echo "${ECHO_T}$prefix" >&6
1372 if test "x$prefix" = "xNONE" ; then
1373 echo "$as_me:1373: checking for default include-directory" >&5
1374 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1375 test -n "$verbose" && echo 1>&6
1378 $includedir/ncurses \
1380 $prefix/include/ncurses \
1381 /usr/local/include \
1382 /usr/local/include/ncurses \
1384 /usr/include/ncurses
1386 cf_dir=`eval echo $cf_symbol`
1387 if test -f $cf_dir/curses.h ; then
1388 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1389 includedir="$cf_symbol"
1390 test -n "$verbose" && echo $ac_n " found " 1>&6
1394 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1396 echo "$as_me:1396: result: $includedir" >&5
1397 echo "${ECHO_T}$includedir" >&6
1400 ### Checks for programs.
1402 ac_cpp='$CPP $CPPFLAGS'
1403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1406 ac_main_return=return
1407 if test -n "$ac_tool_prefix"; then
1408 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1409 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1410 echo "$as_me:1410: checking for $ac_word" >&5
1411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1412 if test "${ac_cv_prog_CC+set}" = set; then
1413 echo $ECHO_N "(cached) $ECHO_C" >&6
1415 if test -n "$CC"; then
1416 ac_cv_prog_CC="$CC" # Let the user override the test.
1418 ac_save_IFS=$IFS; IFS=$ac_path_separator
1420 for ac_dir in $ac_dummy; do
1422 test -z "$ac_dir" && ac_dir=.
1423 $as_executable_p "$ac_dir/$ac_word" || continue
1424 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1425 echo "$as_me:1425: found $ac_dir/$ac_word" >&5
1432 if test -n "$CC"; then
1433 echo "$as_me:1433: result: $CC" >&5
1434 echo "${ECHO_T}$CC" >&6
1436 echo "$as_me:1436: result: no" >&5
1437 echo "${ECHO_T}no" >&6
1441 if test -z "$ac_cv_prog_CC"; then
1443 # Extract the first word of "gcc", so it can be a program name with args.
1444 set dummy gcc; ac_word=$2
1445 echo "$as_me:1445: checking for $ac_word" >&5
1446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1447 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1448 echo $ECHO_N "(cached) $ECHO_C" >&6
1450 if test -n "$ac_ct_CC"; then
1451 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1453 ac_save_IFS=$IFS; IFS=$ac_path_separator
1455 for ac_dir in $ac_dummy; do
1457 test -z "$ac_dir" && ac_dir=.
1458 $as_executable_p "$ac_dir/$ac_word" || continue
1459 ac_cv_prog_ac_ct_CC="gcc"
1460 echo "$as_me:1460: found $ac_dir/$ac_word" >&5
1466 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1467 if test -n "$ac_ct_CC"; then
1468 echo "$as_me:1468: result: $ac_ct_CC" >&5
1469 echo "${ECHO_T}$ac_ct_CC" >&6
1471 echo "$as_me:1471: result: no" >&5
1472 echo "${ECHO_T}no" >&6
1480 if test -z "$CC"; then
1481 if test -n "$ac_tool_prefix"; then
1482 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1483 set dummy ${ac_tool_prefix}cc; ac_word=$2
1484 echo "$as_me:1484: checking for $ac_word" >&5
1485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1486 if test "${ac_cv_prog_CC+set}" = set; then
1487 echo $ECHO_N "(cached) $ECHO_C" >&6
1489 if test -n "$CC"; then
1490 ac_cv_prog_CC="$CC" # Let the user override the test.
1492 ac_save_IFS=$IFS; IFS=$ac_path_separator
1494 for ac_dir in $ac_dummy; do
1496 test -z "$ac_dir" && ac_dir=.
1497 $as_executable_p "$ac_dir/$ac_word" || continue
1498 ac_cv_prog_CC="${ac_tool_prefix}cc"
1499 echo "$as_me:1499: found $ac_dir/$ac_word" >&5
1506 if test -n "$CC"; then
1507 echo "$as_me:1507: result: $CC" >&5
1508 echo "${ECHO_T}$CC" >&6
1510 echo "$as_me:1510: result: no" >&5
1511 echo "${ECHO_T}no" >&6
1515 if test -z "$ac_cv_prog_CC"; then
1517 # Extract the first word of "cc", so it can be a program name with args.
1518 set dummy cc; ac_word=$2
1519 echo "$as_me:1519: checking for $ac_word" >&5
1520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1521 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1522 echo $ECHO_N "(cached) $ECHO_C" >&6
1524 if test -n "$ac_ct_CC"; then
1525 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1527 ac_save_IFS=$IFS; IFS=$ac_path_separator
1529 for ac_dir in $ac_dummy; do
1531 test -z "$ac_dir" && ac_dir=.
1532 $as_executable_p "$ac_dir/$ac_word" || continue
1533 ac_cv_prog_ac_ct_CC="cc"
1534 echo "$as_me:1534: found $ac_dir/$ac_word" >&5
1540 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1541 if test -n "$ac_ct_CC"; then
1542 echo "$as_me:1542: result: $ac_ct_CC" >&5
1543 echo "${ECHO_T}$ac_ct_CC" >&6
1545 echo "$as_me:1545: result: no" >&5
1546 echo "${ECHO_T}no" >&6
1555 if test -z "$CC"; then
1556 # Extract the first word of "cc", so it can be a program name with args.
1557 set dummy cc; ac_word=$2
1558 echo "$as_me:1558: checking for $ac_word" >&5
1559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1560 if test "${ac_cv_prog_CC+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1563 if test -n "$CC"; then
1564 ac_cv_prog_CC="$CC" # Let the user override the test.
1567 ac_save_IFS=$IFS; IFS=$ac_path_separator
1569 for ac_dir in $ac_dummy; do
1571 test -z "$ac_dir" && ac_dir=.
1572 $as_executable_p "$ac_dir/$ac_word" || continue
1573 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1574 ac_prog_rejected=yes
1578 echo "$as_me:1578: found $ac_dir/$ac_word" >&5
1582 if test $ac_prog_rejected = yes; then
1583 # We found a bogon in the path, so make sure we never use it.
1584 set dummy $ac_cv_prog_CC
1586 if test $# != 0; then
1587 # We chose a different compiler from the bogus one.
1588 # However, it has the same basename, so the bogon will be chosen
1589 # first if we set CC to just the basename; use the full file name.
1591 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1599 if test -n "$CC"; then
1600 echo "$as_me:1600: result: $CC" >&5
1601 echo "${ECHO_T}$CC" >&6
1603 echo "$as_me:1603: result: no" >&5
1604 echo "${ECHO_T}no" >&6
1608 if test -z "$CC"; then
1609 if test -n "$ac_tool_prefix"; then
1612 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1613 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1614 echo "$as_me:1614: checking for $ac_word" >&5
1615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1616 if test "${ac_cv_prog_CC+set}" = set; then
1617 echo $ECHO_N "(cached) $ECHO_C" >&6
1619 if test -n "$CC"; then
1620 ac_cv_prog_CC="$CC" # Let the user override the test.
1622 ac_save_IFS=$IFS; IFS=$ac_path_separator
1624 for ac_dir in $ac_dummy; do
1626 test -z "$ac_dir" && ac_dir=.
1627 $as_executable_p "$ac_dir/$ac_word" || continue
1628 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1629 echo "$as_me:1629: found $ac_dir/$ac_word" >&5
1636 if test -n "$CC"; then
1637 echo "$as_me:1637: result: $CC" >&5
1638 echo "${ECHO_T}$CC" >&6
1640 echo "$as_me:1640: result: no" >&5
1641 echo "${ECHO_T}no" >&6
1644 test -n "$CC" && break
1647 if test -z "$CC"; then
1651 # Extract the first word of "$ac_prog", so it can be a program name with args.
1652 set dummy $ac_prog; ac_word=$2
1653 echo "$as_me:1653: checking for $ac_word" >&5
1654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1655 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1656 echo $ECHO_N "(cached) $ECHO_C" >&6
1658 if test -n "$ac_ct_CC"; then
1659 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1661 ac_save_IFS=$IFS; IFS=$ac_path_separator
1663 for ac_dir in $ac_dummy; do
1665 test -z "$ac_dir" && ac_dir=.
1666 $as_executable_p "$ac_dir/$ac_word" || continue
1667 ac_cv_prog_ac_ct_CC="$ac_prog"
1668 echo "$as_me:1668: found $ac_dir/$ac_word" >&5
1674 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1675 if test -n "$ac_ct_CC"; then
1676 echo "$as_me:1676: result: $ac_ct_CC" >&5
1677 echo "${ECHO_T}$ac_ct_CC" >&6
1679 echo "$as_me:1679: result: no" >&5
1680 echo "${ECHO_T}no" >&6
1683 test -n "$ac_ct_CC" && break
1691 test -z "$CC" && { { echo "$as_me:1691: error: no acceptable cc found in \$PATH" >&5
1692 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1693 { (exit 1); exit 1; }; }
1695 # Provide some information about the compiler.
1696 echo "$as_me:1696:" \
1697 "checking for C compiler version" >&5
1698 ac_compiler=`set X $ac_compile; echo $2`
1699 { (eval echo "$as_me:1699: \"$ac_compiler --version </dev/null >&5\"") >&5
1700 (eval $ac_compiler --version </dev/null >&5) 2>&5
1702 echo "$as_me:1702: \$? = $ac_status" >&5
1703 (exit $ac_status); }
1704 { (eval echo "$as_me:1704: \"$ac_compiler -v </dev/null >&5\"") >&5
1705 (eval $ac_compiler -v </dev/null >&5) 2>&5
1707 echo "$as_me:1707: \$? = $ac_status" >&5
1708 (exit $ac_status); }
1709 { (eval echo "$as_me:1709: \"$ac_compiler -V </dev/null >&5\"") >&5
1710 (eval $ac_compiler -V </dev/null >&5) 2>&5
1712 echo "$as_me:1712: \$? = $ac_status" >&5
1713 (exit $ac_status); }
1715 cat >conftest.$ac_ext <<_ACEOF
1716 #line 1716 "configure"
1717 #include "confdefs.h"
1727 ac_clean_files_save=$ac_clean_files
1728 ac_clean_files="$ac_clean_files a.out a.exe"
1729 # Try to create an executable without -o first, disregard a.out.
1730 # It will help us diagnose broken compilers, and finding out an intuition
1732 echo "$as_me:1732: checking for C compiler default output" >&5
1733 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1734 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1735 if { (eval echo "$as_me:1735: \"$ac_link_default\"") >&5
1736 (eval $ac_link_default) 2>&5
1738 echo "$as_me:1738: \$? = $ac_status" >&5
1739 (exit $ac_status); }; then
1740 # Find the output, starting from the most likely. This scheme is
1741 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1743 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1744 ls a.out conftest 2>/dev/null;
1745 ls a.* conftest.* 2>/dev/null`; do
1747 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1748 a.out ) # We found the default executable, but exeext='' is most
1751 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1752 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1759 echo "$as_me: failed program was:" >&5
1760 cat conftest.$ac_ext >&5
1761 { { echo "$as_me:1761: error: C compiler cannot create executables" >&5
1762 echo "$as_me: error: C compiler cannot create executables" >&2;}
1763 { (exit 77); exit 77; }; }
1766 ac_exeext=$ac_cv_exeext
1767 echo "$as_me:1767: result: $ac_file" >&5
1768 echo "${ECHO_T}$ac_file" >&6
1770 # Check the compiler produces executables we can run. If not, either
1771 # the compiler is broken, or we cross compile.
1772 echo "$as_me:1772: checking whether the C compiler works" >&5
1773 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1774 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1775 # If not cross compiling, check that we can run a simple program.
1776 if test "$cross_compiling" != yes; then
1777 if { ac_try='./$ac_file'
1778 { (eval echo "$as_me:1778: \"$ac_try\"") >&5
1781 echo "$as_me:1781: \$? = $ac_status" >&5
1782 (exit $ac_status); }; }; then
1785 if test "$cross_compiling" = maybe; then
1788 { { echo "$as_me:1788: error: cannot run C compiled programs.
1789 If you meant to cross compile, use \`--host'." >&5
1790 echo "$as_me: error: cannot run C compiled programs.
1791 If you meant to cross compile, use \`--host'." >&2;}
1792 { (exit 1); exit 1; }; }
1796 echo "$as_me:1796: result: yes" >&5
1797 echo "${ECHO_T}yes" >&6
1799 rm -f a.out a.exe conftest$ac_cv_exeext
1800 ac_clean_files=$ac_clean_files_save
1801 # Check the compiler produces executables we can run. If not, either
1802 # the compiler is broken, or we cross compile.
1803 echo "$as_me:1803: checking whether we are cross compiling" >&5
1804 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1805 echo "$as_me:1805: result: $cross_compiling" >&5
1806 echo "${ECHO_T}$cross_compiling" >&6
1808 echo "$as_me:1808: checking for executable suffix" >&5
1809 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1810 if { (eval echo "$as_me:1810: \"$ac_link\"") >&5
1811 (eval $ac_link) 2>&5
1813 echo "$as_me:1813: \$? = $ac_status" >&5
1814 (exit $ac_status); }; then
1815 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1816 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1817 # work properly (i.e., refer to `conftest.exe'), while it won't with
1819 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1821 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1822 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1829 { { echo "$as_me:1829: error: cannot compute EXEEXT: cannot compile and link" >&5
1830 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1831 { (exit 1); exit 1; }; }
1834 rm -f conftest$ac_cv_exeext
1835 echo "$as_me:1835: result: $ac_cv_exeext" >&5
1836 echo "${ECHO_T}$ac_cv_exeext" >&6
1838 rm -f conftest.$ac_ext
1839 EXEEXT=$ac_cv_exeext
1841 echo "$as_me:1841: checking for object suffix" >&5
1842 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1843 if test "${ac_cv_objext+set}" = set; then
1844 echo $ECHO_N "(cached) $ECHO_C" >&6
1846 cat >conftest.$ac_ext <<_ACEOF
1847 #line 1847 "configure"
1848 #include "confdefs.h"
1858 rm -f conftest.o conftest.obj
1859 if { (eval echo "$as_me:1859: \"$ac_compile\"") >&5
1860 (eval $ac_compile) 2>&5
1862 echo "$as_me:1862: \$? = $ac_status" >&5
1863 (exit $ac_status); }; then
1864 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1866 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1867 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1872 echo "$as_me: failed program was:" >&5
1873 cat conftest.$ac_ext >&5
1874 { { echo "$as_me:1874: error: cannot compute OBJEXT: cannot compile" >&5
1875 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1876 { (exit 1); exit 1; }; }
1879 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1881 echo "$as_me:1881: result: $ac_cv_objext" >&5
1882 echo "${ECHO_T}$ac_cv_objext" >&6
1883 OBJEXT=$ac_cv_objext
1885 echo "$as_me:1885: checking whether we are using the GNU C compiler" >&5
1886 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1887 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1888 echo $ECHO_N "(cached) $ECHO_C" >&6
1890 cat >conftest.$ac_ext <<_ACEOF
1891 #line 1891 "configure"
1892 #include "confdefs.h"
1905 rm -f conftest.$ac_objext
1906 if { (eval echo "$as_me:1906: \"$ac_compile\"") >&5
1907 (eval $ac_compile) 2>&5
1909 echo "$as_me:1909: \$? = $ac_status" >&5
1910 (exit $ac_status); } &&
1911 { ac_try='test -s conftest.$ac_objext'
1912 { (eval echo "$as_me:1912: \"$ac_try\"") >&5
1915 echo "$as_me:1915: \$? = $ac_status" >&5
1916 (exit $ac_status); }; }; then
1919 echo "$as_me: failed program was:" >&5
1920 cat conftest.$ac_ext >&5
1923 rm -f conftest.$ac_objext conftest.$ac_ext
1924 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1927 echo "$as_me:1927: result: $ac_cv_c_compiler_gnu" >&5
1928 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1929 GCC=`test $ac_compiler_gnu = yes && echo yes`
1930 ac_test_CFLAGS=${CFLAGS+set}
1931 ac_save_CFLAGS=$CFLAGS
1933 echo "$as_me:1933: checking whether $CC accepts -g" >&5
1934 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1935 if test "${ac_cv_prog_cc_g+set}" = set; then
1936 echo $ECHO_N "(cached) $ECHO_C" >&6
1938 cat >conftest.$ac_ext <<_ACEOF
1939 #line 1939 "configure"
1940 #include "confdefs.h"
1950 rm -f conftest.$ac_objext
1951 if { (eval echo "$as_me:1951: \"$ac_compile\"") >&5
1952 (eval $ac_compile) 2>&5
1954 echo "$as_me:1954: \$? = $ac_status" >&5
1955 (exit $ac_status); } &&
1956 { ac_try='test -s conftest.$ac_objext'
1957 { (eval echo "$as_me:1957: \"$ac_try\"") >&5
1960 echo "$as_me:1960: \$? = $ac_status" >&5
1961 (exit $ac_status); }; }; then
1964 echo "$as_me: failed program was:" >&5
1965 cat conftest.$ac_ext >&5
1968 rm -f conftest.$ac_objext conftest.$ac_ext
1970 echo "$as_me:1970: result: $ac_cv_prog_cc_g" >&5
1971 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1972 if test "$ac_test_CFLAGS" = set; then
1973 CFLAGS=$ac_save_CFLAGS
1974 elif test $ac_cv_prog_cc_g = yes; then
1975 if test "$GCC" = yes; then
1981 if test "$GCC" = yes; then
1987 # Some people use a C++ compiler to compile C. Since we use `exit',
1988 # in C++ we need to declare it. In case someone uses the same compiler
1989 # for both compiling C and C++ we need to have the C++ compiler decide
1990 # the declaration of exit, since it's the most demanding environment.
1991 cat >conftest.$ac_ext <<_ACEOF
1996 rm -f conftest.$ac_objext
1997 if { (eval echo "$as_me:1997: \"$ac_compile\"") >&5
1998 (eval $ac_compile) 2>&5
2000 echo "$as_me:2000: \$? = $ac_status" >&5
2001 (exit $ac_status); } &&
2002 { ac_try='test -s conftest.$ac_objext'
2003 { (eval echo "$as_me:2003: \"$ac_try\"") >&5
2006 echo "$as_me:2006: \$? = $ac_status" >&5
2007 (exit $ac_status); }; }; then
2008 for ac_declaration in \
2010 '#include <stdlib.h>' \
2011 'extern "C" void std::exit (int) throw (); using std::exit;' \
2012 'extern "C" void std::exit (int); using std::exit;' \
2013 'extern "C" void exit (int) throw ();' \
2014 'extern "C" void exit (int);' \
2017 cat >conftest.$ac_ext <<_ACEOF
2018 #line 2018 "configure"
2019 #include "confdefs.h"
2030 rm -f conftest.$ac_objext
2031 if { (eval echo "$as_me:2031: \"$ac_compile\"") >&5
2032 (eval $ac_compile) 2>&5
2034 echo "$as_me:2034: \$? = $ac_status" >&5
2035 (exit $ac_status); } &&
2036 { ac_try='test -s conftest.$ac_objext'
2037 { (eval echo "$as_me:2037: \"$ac_try\"") >&5
2040 echo "$as_me:2040: \$? = $ac_status" >&5
2041 (exit $ac_status); }; }; then
2044 echo "$as_me: failed program was:" >&5
2045 cat conftest.$ac_ext >&5
2048 rm -f conftest.$ac_objext conftest.$ac_ext
2049 cat >conftest.$ac_ext <<_ACEOF
2050 #line 2050 "configure"
2051 #include "confdefs.h"
2061 rm -f conftest.$ac_objext
2062 if { (eval echo "$as_me:2062: \"$ac_compile\"") >&5
2063 (eval $ac_compile) 2>&5
2065 echo "$as_me:2065: \$? = $ac_status" >&5
2066 (exit $ac_status); } &&
2067 { ac_try='test -s conftest.$ac_objext'
2068 { (eval echo "$as_me:2068: \"$ac_try\"") >&5
2071 echo "$as_me:2071: \$? = $ac_status" >&5
2072 (exit $ac_status); }; }; then
2075 echo "$as_me: failed program was:" >&5
2076 cat conftest.$ac_ext >&5
2078 rm -f conftest.$ac_objext conftest.$ac_ext
2081 if test -n "$ac_declaration"; then
2082 echo '#ifdef __cplusplus' >>confdefs.h
2083 echo $ac_declaration >>confdefs.h
2084 echo '#endif' >>confdefs.h
2088 echo "$as_me: failed program was:" >&5
2089 cat conftest.$ac_ext >&5
2091 rm -f conftest.$ac_objext conftest.$ac_ext
2093 ac_cpp='$CPP $CPPFLAGS'
2094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2097 ac_main_return=return
2100 if test "$GCC" = yes ; then
2101 echo "$as_me:2101: checking version of $CC" >&5
2102 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2103 GCC_VERSION="`${CC} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2104 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2105 echo "$as_me:2105: result: $GCC_VERSION" >&5
2106 echo "${ECHO_T}$GCC_VERSION" >&6
2110 ac_cpp='$CPP $CPPFLAGS'
2111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2114 ac_main_return=return
2115 echo "$as_me:2115: checking how to run the C preprocessor" >&5
2116 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2117 # On Suns, sometimes $CPP names a directory.
2118 if test -n "$CPP" && test -d "$CPP"; then
2121 if test -z "$CPP"; then
2122 if test "${ac_cv_prog_CPP+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2125 # Double quotes because CPP needs to be expanded
2126 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2129 for ac_c_preproc_warn_flag in '' yes
2131 # Use a header file that comes with gcc, so configuring glibc
2132 # with a fresh cross-compiler works.
2133 # On the NeXT, cc -E runs the code through the compiler's parser,
2134 # not just through cpp. "Syntax error" is here to catch this case.
2135 cat >conftest.$ac_ext <<_ACEOF
2136 #line 2136 "configure"
2137 #include "confdefs.h"
2141 if { (eval echo "$as_me:2141: \"$ac_cpp conftest.$ac_ext\"") >&5
2142 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2144 egrep -v '^ *\+' conftest.er1 >conftest.err
2146 cat conftest.err >&5
2147 echo "$as_me:2147: \$? = $ac_status" >&5
2148 (exit $ac_status); } >/dev/null; then
2149 if test -s conftest.err; then
2150 ac_cpp_err=$ac_c_preproc_warn_flag
2157 if test -z "$ac_cpp_err"; then
2160 echo "$as_me: failed program was:" >&5
2161 cat conftest.$ac_ext >&5
2162 # Broken: fails on valid input.
2165 rm -f conftest.err conftest.$ac_ext
2167 # OK, works on sane cases. Now check whether non-existent headers
2168 # can be detected and how.
2169 cat >conftest.$ac_ext <<_ACEOF
2170 #line 2170 "configure"
2171 #include "confdefs.h"
2172 #include <ac_nonexistent.h>
2174 if { (eval echo "$as_me:2174: \"$ac_cpp conftest.$ac_ext\"") >&5
2175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2177 egrep -v '^ *\+' conftest.er1 >conftest.err
2179 cat conftest.err >&5
2180 echo "$as_me:2180: \$? = $ac_status" >&5
2181 (exit $ac_status); } >/dev/null; then
2182 if test -s conftest.err; then
2183 ac_cpp_err=$ac_c_preproc_warn_flag
2190 if test -z "$ac_cpp_err"; then
2191 # Broken: success on invalid input.
2194 echo "$as_me: failed program was:" >&5
2195 cat conftest.$ac_ext >&5
2196 # Passes both tests.
2200 rm -f conftest.err conftest.$ac_ext
2203 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2204 rm -f conftest.err conftest.$ac_ext
2205 if $ac_preproc_ok; then
2217 echo "$as_me:2217: result: $CPP" >&5
2218 echo "${ECHO_T}$CPP" >&6
2220 for ac_c_preproc_warn_flag in '' yes
2222 # Use a header file that comes with gcc, so configuring glibc
2223 # with a fresh cross-compiler works.
2224 # On the NeXT, cc -E runs the code through the compiler's parser,
2225 # not just through cpp. "Syntax error" is here to catch this case.
2226 cat >conftest.$ac_ext <<_ACEOF
2227 #line 2227 "configure"
2228 #include "confdefs.h"
2232 if { (eval echo "$as_me:2232: \"$ac_cpp conftest.$ac_ext\"") >&5
2233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2235 egrep -v '^ *\+' conftest.er1 >conftest.err
2237 cat conftest.err >&5
2238 echo "$as_me:2238: \$? = $ac_status" >&5
2239 (exit $ac_status); } >/dev/null; then
2240 if test -s conftest.err; then
2241 ac_cpp_err=$ac_c_preproc_warn_flag
2248 if test -z "$ac_cpp_err"; then
2251 echo "$as_me: failed program was:" >&5
2252 cat conftest.$ac_ext >&5
2253 # Broken: fails on valid input.
2256 rm -f conftest.err conftest.$ac_ext
2258 # OK, works on sane cases. Now check whether non-existent headers
2259 # can be detected and how.
2260 cat >conftest.$ac_ext <<_ACEOF
2261 #line 2261 "configure"
2262 #include "confdefs.h"
2263 #include <ac_nonexistent.h>
2265 if { (eval echo "$as_me:2265: \"$ac_cpp conftest.$ac_ext\"") >&5
2266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2268 egrep -v '^ *\+' conftest.er1 >conftest.err
2270 cat conftest.err >&5
2271 echo "$as_me:2271: \$? = $ac_status" >&5
2272 (exit $ac_status); } >/dev/null; then
2273 if test -s conftest.err; then
2274 ac_cpp_err=$ac_c_preproc_warn_flag
2281 if test -z "$ac_cpp_err"; then
2282 # Broken: success on invalid input.
2285 echo "$as_me: failed program was:" >&5
2286 cat conftest.$ac_ext >&5
2287 # Passes both tests.
2291 rm -f conftest.err conftest.$ac_ext
2294 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2295 rm -f conftest.err conftest.$ac_ext
2296 if $ac_preproc_ok; then
2299 { { echo "$as_me:2299: error: C preprocessor \"$CPP\" fails sanity check" >&5
2300 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2301 { (exit 1); exit 1; }; }
2305 ac_cpp='$CPP $CPPFLAGS'
2306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2309 ac_main_return=return
2311 if test $ac_cv_c_compiler_gnu = yes; then
2312 echo "$as_me:2312: checking whether $CC needs -traditional" >&5
2313 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2314 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2315 echo $ECHO_N "(cached) $ECHO_C" >&6
2317 ac_pattern="Autoconf.*'x'"
2318 cat >conftest.$ac_ext <<_ACEOF
2319 #line 2319 "configure"
2320 #include "confdefs.h"
2322 int Autoconf = TIOCGETP;
2324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2325 egrep "$ac_pattern" >/dev/null 2>&1; then
2326 ac_cv_prog_gcc_traditional=yes
2328 ac_cv_prog_gcc_traditional=no
2332 if test $ac_cv_prog_gcc_traditional = no; then
2333 cat >conftest.$ac_ext <<_ACEOF
2334 #line 2334 "configure"
2335 #include "confdefs.h"
2337 int Autoconf = TCGETA;
2339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2340 egrep "$ac_pattern" >/dev/null 2>&1; then
2341 ac_cv_prog_gcc_traditional=yes
2347 echo "$as_me:2347: result: $ac_cv_prog_gcc_traditional" >&5
2348 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2349 if test $ac_cv_prog_gcc_traditional = yes; then
2350 CC="$CC -traditional"
2354 echo "$as_me:2354: checking whether $CC understands -c and -o together" >&5
2355 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2356 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2357 echo $ECHO_N "(cached) $ECHO_C" >&6
2360 cat > conftest.$ac_ext <<CF_EOF
2364 ${cf_cv_main_return:-return}(0);
2367 # We do the test twice because some compilers refuse to overwrite an
2368 # existing .o file with -o, though they will create one.
2369 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2370 if { (eval echo "$as_me:2370: \"$ac_try\"") >&5
2373 echo "$as_me:2373: \$? = $ac_status" >&5
2374 (exit $ac_status); } &&
2375 test -f conftest2.$ac_objext && { (eval echo "$as_me:2375: \"$ac_try\"") >&5
2378 echo "$as_me:2378: \$? = $ac_status" >&5
2379 (exit $ac_status); };
2381 eval cf_cv_prog_CC_c_o=yes
2383 eval cf_cv_prog_CC_c_o=no
2388 if test $cf_cv_prog_CC_c_o = yes; then
2389 echo "$as_me:2389: result: yes" >&5
2390 echo "${ECHO_T}yes" >&6
2392 echo "$as_me:2392: result: no" >&5
2393 echo "${ECHO_T}no" >&6
2396 echo "$as_me:2396: checking for POSIXized ISC" >&5
2397 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2398 if test -d /etc/conf/kconfig.d &&
2399 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2401 echo "$as_me:2401: result: yes" >&5
2402 echo "${ECHO_T}yes" >&6
2403 ISC=yes # If later tests want to check for ISC.
2405 cat >>confdefs.h <<\EOF
2406 #define _POSIX_SOURCE 1
2409 if test "$GCC" = yes; then
2415 echo "$as_me:2415: result: no" >&5
2416 echo "${ECHO_T}no" >&6
2420 echo "$as_me:2420: checking for ${CC-cc} option to accept ANSI C" >&5
2421 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2422 if test "${cf_cv_ansi_cc+set}" = set; then
2423 echo $ECHO_N "(cached) $ECHO_C" >&6
2427 cf_save_CFLAGS="$CFLAGS"
2428 cf_save_CPPFLAGS="$CPPFLAGS"
2429 # Don't try gcc -ansi; that turns off useful extensions and
2430 # breaks some systems' header files.
2431 # AIX -qlanglvl=ansi
2432 # Ultrix and OSF/1 -std1
2433 # HP-UX -Aa -D_HPUX_SOURCE
2435 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2436 for cf_arg in "-DCC_HAS_PROTOS" \
2441 "-Aa -D_HPUX_SOURCE" \
2448 cf_new_extra_cppflags=
2450 for cf_add_cflags in $cf_arg
2452 case $cf_fix_cppflags in
2454 case $cf_add_cflags in #(vi
2455 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2456 case $cf_add_cflags in
2458 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2460 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2461 && test -z "${cf_tst_cflags}" \
2462 && cf_fix_cppflags=yes
2464 if test $cf_fix_cppflags = yes ; then
2465 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2467 elif test "${cf_tst_cflags}" = "\"'" ; then
2468 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2474 *$cf_add_cflags) #(vi
2477 case $cf_add_cflags in #(vi
2479 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2481 CPPFLAGS=`echo "$CPPFLAGS" | \
2482 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2483 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2487 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2492 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2497 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2499 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2501 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2502 && test -z "${cf_tst_cflags}" \
2503 && cf_fix_cppflags=no
2508 if test -n "$cf_new_cflags" ; then
2510 CFLAGS="$CFLAGS $cf_new_cflags"
2513 if test -n "$cf_new_cppflags" ; then
2515 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2518 if test -n "$cf_new_extra_cppflags" ; then
2520 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2523 cat >conftest.$ac_ext <<_ACEOF
2524 #line 2524 "configure"
2525 #include "confdefs.h"
2527 #ifndef CC_HAS_PROTOS
2528 #if !defined(__STDC__) || (__STDC__ != 1)
2537 int test (int i, double x);
2538 struct s1 {int (*f) (int a);};
2539 struct s2 {int (*f) (double a);};
2544 rm -f conftest.$ac_objext
2545 if { (eval echo "$as_me:2545: \"$ac_compile\"") >&5
2546 (eval $ac_compile) 2>&5
2548 echo "$as_me:2548: \$? = $ac_status" >&5
2549 (exit $ac_status); } &&
2550 { ac_try='test -s conftest.$ac_objext'
2551 { (eval echo "$as_me:2551: \"$ac_try\"") >&5
2554 echo "$as_me:2554: \$? = $ac_status" >&5
2555 (exit $ac_status); }; }; then
2556 cf_cv_ansi_cc="$cf_arg"; break
2558 echo "$as_me: failed program was:" >&5
2559 cat conftest.$ac_ext >&5
2561 rm -f conftest.$ac_objext conftest.$ac_ext
2563 CFLAGS="$cf_save_CFLAGS"
2564 CPPFLAGS="$cf_save_CPPFLAGS"
2567 echo "$as_me:2567: result: $cf_cv_ansi_cc" >&5
2568 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2570 if test "$cf_cv_ansi_cc" != "no"; then
2571 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2576 cf_new_extra_cppflags=
2578 for cf_add_cflags in $cf_cv_ansi_cc
2580 case $cf_fix_cppflags in
2582 case $cf_add_cflags in #(vi
2583 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2584 case $cf_add_cflags in
2586 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2588 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2589 && test -z "${cf_tst_cflags}" \
2590 && cf_fix_cppflags=yes
2592 if test $cf_fix_cppflags = yes ; then
2593 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2595 elif test "${cf_tst_cflags}" = "\"'" ; then
2596 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2602 *$cf_add_cflags) #(vi
2605 case $cf_add_cflags in #(vi
2607 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2609 CPPFLAGS=`echo "$CPPFLAGS" | \
2610 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2611 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2615 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2620 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2625 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2627 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2629 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2630 && test -z "${cf_tst_cflags}" \
2631 && cf_fix_cppflags=no
2636 if test -n "$cf_new_cflags" ; then
2638 CFLAGS="$CFLAGS $cf_new_cflags"
2641 if test -n "$cf_new_cppflags" ; then
2643 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2646 if test -n "$cf_new_extra_cppflags" ; then
2648 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2652 cat >>confdefs.h <<\EOF
2653 #define CC_HAS_PROTOS 1
2659 if test "$cf_cv_ansi_cc" = "no"; then
2660 { { echo "$as_me:2660: error: Your compiler does not appear to recognize prototypes.
2661 You have the following choices:
2662 a. adjust your compiler options
2663 b. get an up-to-date compiler
2664 c. use a wrapper such as unproto" >&5
2665 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2666 You have the following choices:
2667 a. adjust your compiler options
2668 b. get an up-to-date compiler
2669 c. use a wrapper such as unproto" >&2;}
2670 { (exit 1); exit 1; }; }
2673 case $cf_cv_system_name in
2675 CFLAGS="$CFLAGS -Zmt"
2676 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2677 CXXFLAGS="$CXXFLAGS -Zmt"
2678 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2679 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2686 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2687 #define PROG_EXT "$PROG_EXT"
2690 if test "$cross_compiling" = yes ; then
2693 case "$cf_cv_system_name" in #(vi
2694 dragonfly*|freebsd*) #(vi
2695 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2697 *) LDPATH=$PATH:/sbin:/usr/sbin
2698 # Extract the first word of "ldconfig", so it can be a program name with args.
2699 set dummy ldconfig; ac_word=$2
2700 echo "$as_me:2700: checking for $ac_word" >&5
2701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2702 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2703 echo $ECHO_N "(cached) $ECHO_C" >&6
2707 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2710 ac_save_IFS=$IFS; IFS=$ac_path_separator
2712 for ac_dir in $ac_dummy; do
2714 test -z "$ac_dir" && ac_dir=.
2715 if $as_executable_p "$ac_dir/$ac_word"; then
2716 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2717 echo "$as_me:2717: found $ac_dir/$ac_word" >&5
2725 LDCONFIG=$ac_cv_path_LDCONFIG
2727 if test -n "$LDCONFIG"; then
2728 echo "$as_me:2728: result: $LDCONFIG" >&5
2729 echo "${ECHO_T}$LDCONFIG" >&6
2731 echo "$as_me:2731: result: no" >&5
2732 echo "${ECHO_T}no" >&6
2739 echo "$as_me:2739: checking if you want to ensure bool is consistent with C++" >&5
2740 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2742 # Check whether --with-cxx or --without-cxx was given.
2743 if test "${with_cxx+set}" = set; then
2745 cf_with_cxx=$withval
2749 echo "$as_me:2749: result: $cf_with_cxx" >&5
2750 echo "${ECHO_T}$cf_with_cxx" >&6
2751 if test "X$cf_with_cxx" = Xno ; then
2755 # with autoconf 2.13, we can change the error to a warning:
2757 ac_cpp='$CXXCPP $CPPFLAGS'
2758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2761 ac_main_return=return
2762 if test -n "$ac_tool_prefix"; then
2763 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2765 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2766 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2767 echo "$as_me:2767: checking for $ac_word" >&5
2768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2769 if test "${ac_cv_prog_CXX+set}" = set; then
2770 echo $ECHO_N "(cached) $ECHO_C" >&6
2772 if test -n "$CXX"; then
2773 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2775 ac_save_IFS=$IFS; IFS=$ac_path_separator
2777 for ac_dir in $ac_dummy; do
2779 test -z "$ac_dir" && ac_dir=.
2780 $as_executable_p "$ac_dir/$ac_word" || continue
2781 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2782 echo "$as_me:2782: found $ac_dir/$ac_word" >&5
2789 if test -n "$CXX"; then
2790 echo "$as_me:2790: result: $CXX" >&5
2791 echo "${ECHO_T}$CXX" >&6
2793 echo "$as_me:2793: result: no" >&5
2794 echo "${ECHO_T}no" >&6
2797 test -n "$CXX" && break
2800 if test -z "$CXX"; then
2802 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2804 # Extract the first word of "$ac_prog", so it can be a program name with args.
2805 set dummy $ac_prog; ac_word=$2
2806 echo "$as_me:2806: checking for $ac_word" >&5
2807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2808 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2809 echo $ECHO_N "(cached) $ECHO_C" >&6
2811 if test -n "$ac_ct_CXX"; then
2812 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2814 ac_save_IFS=$IFS; IFS=$ac_path_separator
2816 for ac_dir in $ac_dummy; do
2818 test -z "$ac_dir" && ac_dir=.
2819 $as_executable_p "$ac_dir/$ac_word" || continue
2820 ac_cv_prog_ac_ct_CXX="$ac_prog"
2821 echo "$as_me:2821: found $ac_dir/$ac_word" >&5
2827 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2828 if test -n "$ac_ct_CXX"; then
2829 echo "$as_me:2829: result: $ac_ct_CXX" >&5
2830 echo "${ECHO_T}$ac_ct_CXX" >&6
2832 echo "$as_me:2832: result: no" >&5
2833 echo "${ECHO_T}no" >&6
2836 test -n "$ac_ct_CXX" && break
2838 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2843 # Provide some information about the compiler.
2844 echo "$as_me:2844:" \
2845 "checking for C++ compiler version" >&5
2846 ac_compiler=`set X $ac_compile; echo $2`
2847 { (eval echo "$as_me:2847: \"$ac_compiler --version </dev/null >&5\"") >&5
2848 (eval $ac_compiler --version </dev/null >&5) 2>&5
2850 echo "$as_me:2850: \$? = $ac_status" >&5
2851 (exit $ac_status); }
2852 { (eval echo "$as_me:2852: \"$ac_compiler -v </dev/null >&5\"") >&5
2853 (eval $ac_compiler -v </dev/null >&5) 2>&5
2855 echo "$as_me:2855: \$? = $ac_status" >&5
2856 (exit $ac_status); }
2857 { (eval echo "$as_me:2857: \"$ac_compiler -V </dev/null >&5\"") >&5
2858 (eval $ac_compiler -V </dev/null >&5) 2>&5
2860 echo "$as_me:2860: \$? = $ac_status" >&5
2861 (exit $ac_status); }
2863 echo "$as_me:2863: checking whether we are using the GNU C++ compiler" >&5
2864 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2865 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2866 echo $ECHO_N "(cached) $ECHO_C" >&6
2868 cat >conftest.$ac_ext <<_ACEOF
2869 #line 2869 "configure"
2870 #include "confdefs.h"
2883 rm -f conftest.$ac_objext
2884 if { (eval echo "$as_me:2884: \"$ac_compile\"") >&5
2885 (eval $ac_compile) 2>&5
2887 echo "$as_me:2887: \$? = $ac_status" >&5
2888 (exit $ac_status); } &&
2889 { ac_try='test -s conftest.$ac_objext'
2890 { (eval echo "$as_me:2890: \"$ac_try\"") >&5
2893 echo "$as_me:2893: \$? = $ac_status" >&5
2894 (exit $ac_status); }; }; then
2897 echo "$as_me: failed program was:" >&5
2898 cat conftest.$ac_ext >&5
2901 rm -f conftest.$ac_objext conftest.$ac_ext
2902 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2905 echo "$as_me:2905: result: $ac_cv_cxx_compiler_gnu" >&5
2906 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2907 GXX=`test $ac_compiler_gnu = yes && echo yes`
2908 ac_test_CXXFLAGS=${CXXFLAGS+set}
2909 ac_save_CXXFLAGS=$CXXFLAGS
2911 echo "$as_me:2911: checking whether $CXX accepts -g" >&5
2912 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2913 if test "${ac_cv_prog_cxx_g+set}" = set; then
2914 echo $ECHO_N "(cached) $ECHO_C" >&6
2916 cat >conftest.$ac_ext <<_ACEOF
2917 #line 2917 "configure"
2918 #include "confdefs.h"
2928 rm -f conftest.$ac_objext
2929 if { (eval echo "$as_me:2929: \"$ac_compile\"") >&5
2930 (eval $ac_compile) 2>&5
2932 echo "$as_me:2932: \$? = $ac_status" >&5
2933 (exit $ac_status); } &&
2934 { ac_try='test -s conftest.$ac_objext'
2935 { (eval echo "$as_me:2935: \"$ac_try\"") >&5
2938 echo "$as_me:2938: \$? = $ac_status" >&5
2939 (exit $ac_status); }; }; then
2940 ac_cv_prog_cxx_g=yes
2942 echo "$as_me: failed program was:" >&5
2943 cat conftest.$ac_ext >&5
2946 rm -f conftest.$ac_objext conftest.$ac_ext
2948 echo "$as_me:2948: result: $ac_cv_prog_cxx_g" >&5
2949 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2950 if test "$ac_test_CXXFLAGS" = set; then
2951 CXXFLAGS=$ac_save_CXXFLAGS
2952 elif test $ac_cv_prog_cxx_g = yes; then
2953 if test "$GXX" = yes; then
2959 if test "$GXX" = yes; then
2965 for ac_declaration in \
2967 '#include <stdlib.h>' \
2968 'extern "C" void std::exit (int) throw (); using std::exit;' \
2969 'extern "C" void std::exit (int); using std::exit;' \
2970 'extern "C" void exit (int) throw ();' \
2971 'extern "C" void exit (int);' \
2974 cat >conftest.$ac_ext <<_ACEOF
2975 #line 2975 "configure"
2976 #include "confdefs.h"
2987 rm -f conftest.$ac_objext
2988 if { (eval echo "$as_me:2988: \"$ac_compile\"") >&5
2989 (eval $ac_compile) 2>&5
2991 echo "$as_me:2991: \$? = $ac_status" >&5
2992 (exit $ac_status); } &&
2993 { ac_try='test -s conftest.$ac_objext'
2994 { (eval echo "$as_me:2994: \"$ac_try\"") >&5
2997 echo "$as_me:2997: \$? = $ac_status" >&5
2998 (exit $ac_status); }; }; then
3001 echo "$as_me: failed program was:" >&5
3002 cat conftest.$ac_ext >&5
3005 rm -f conftest.$ac_objext conftest.$ac_ext
3006 cat >conftest.$ac_ext <<_ACEOF
3007 #line 3007 "configure"
3008 #include "confdefs.h"
3018 rm -f conftest.$ac_objext
3019 if { (eval echo "$as_me:3019: \"$ac_compile\"") >&5
3020 (eval $ac_compile) 2>&5
3022 echo "$as_me:3022: \$? = $ac_status" >&5
3023 (exit $ac_status); } &&
3024 { ac_try='test -s conftest.$ac_objext'
3025 { (eval echo "$as_me:3025: \"$ac_try\"") >&5
3028 echo "$as_me:3028: \$? = $ac_status" >&5
3029 (exit $ac_status); }; }; then
3032 echo "$as_me: failed program was:" >&5
3033 cat conftest.$ac_ext >&5
3035 rm -f conftest.$ac_objext conftest.$ac_ext
3038 if test -n "$ac_declaration"; then
3039 echo '#ifdef __cplusplus' >>confdefs.h
3040 echo $ac_declaration >>confdefs.h
3041 echo '#endif' >>confdefs.h
3045 ac_cpp='$CPP $CPPFLAGS'
3046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3049 ac_main_return=return
3051 # autoconf 2.5x removed the error - by hardcoding it to g++.
3052 if test "$CXX" = "g++" ; then
3053 # Extract the first word of "g++", so it can be a program name with args.
3054 set dummy g++; ac_word=$2
3055 echo "$as_me:3055: checking for $ac_word" >&5
3056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3057 if test "${ac_cv_path_CXX+set}" = set; then
3058 echo $ECHO_N "(cached) $ECHO_C" >&6
3062 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3065 ac_save_IFS=$IFS; IFS=$ac_path_separator
3067 for ac_dir in $ac_dummy; do
3069 test -z "$ac_dir" && ac_dir=.
3070 if $as_executable_p "$ac_dir/$ac_word"; then
3071 ac_cv_path_CXX="$ac_dir/$ac_word"
3072 echo "$as_me:3072: found $ac_dir/$ac_word" >&5
3082 if test -n "$CXX"; then
3083 echo "$as_me:3083: result: $CXX" >&5
3084 echo "${ECHO_T}$CXX" >&6
3086 echo "$as_me:3086: result: no" >&5
3087 echo "${ECHO_T}no" >&6
3091 if test "$CXX" = "g++" ; then
3092 { echo "$as_me:3092: WARNING: ignoring hardcoded g++" >&5
3093 echo "$as_me: WARNING: ignoring hardcoded g++" >&2;}
3094 cf_with_cxx=no; CXX=""; GXX="";
3099 if test "$GXX" = yes; then
3100 echo "$as_me:3100: checking version of g++" >&5
3101 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
3102 GXX_VERSION="`${CXX-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3103 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3104 echo "$as_me:3104: result: $GXX_VERSION" >&5
3105 echo "${ECHO_T}$GXX_VERSION" >&6
3108 case $GXX_VERSION in
3110 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3112 { echo "$as_me:3112: WARNING: templates do not work" >&5
3113 echo "$as_me: WARNING: templates do not work" >&2;}
3117 echo "$as_me:3117: checking if you want to build C++ binding and demo" >&5
3118 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3120 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3121 if test "${with_cxx_binding+set}" = set; then
3122 withval="$with_cxx_binding"
3123 cf_with_cxx_binding=$withval
3125 cf_with_cxx_binding=$cf_with_cxx
3127 echo "$as_me:3127: result: $cf_with_cxx_binding" >&5
3128 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3130 echo "$as_me:3130: checking if you want to build with Ada95" >&5
3131 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3133 # Check whether --with-ada or --without-ada was given.
3134 if test "${with_ada+set}" = set; then
3136 cf_with_ada=$withval
3140 echo "$as_me:3140: result: $cf_with_ada" >&5
3141 echo "${ECHO_T}$cf_with_ada" >&6
3143 echo "$as_me:3143: checking if you want to install manpages" >&5
3144 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3146 # Check whether --with-manpages or --without-manpages was given.
3147 if test "${with_manpages+set}" = set; then
3148 withval="$with_manpages"
3149 cf_with_manpages=$withval
3151 cf_with_manpages=yes
3153 echo "$as_me:3153: result: $cf_with_manpages" >&5
3154 echo "${ECHO_T}$cf_with_manpages" >&6
3156 echo "$as_me:3156: checking if you want to build programs such as tic" >&5
3157 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3159 # Check whether --with-progs or --without-progs was given.
3160 if test "${with_progs+set}" = set; then
3161 withval="$with_progs"
3162 cf_with_progs=$withval
3166 echo "$as_me:3166: result: $cf_with_progs" >&5
3167 echo "${ECHO_T}$cf_with_progs" >&6
3169 echo "$as_me:3169: checking if you wish to install curses.h" >&5
3170 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3172 # Check whether --with-curses-h or --without-curses-h was given.
3173 if test "${with_curses_h+set}" = set; then
3174 withval="$with_curses_h"
3175 with_curses_h=$withval
3179 echo "$as_me:3179: result: $with_curses_h" >&5
3180 echo "${ECHO_T}$with_curses_h" >&6
3182 modules_to_build="ncurses"
3183 if test "X$cf_with_progs" != Xno ; then
3184 modules_to_build="$modules_to_build progs tack"
3186 modules_to_build="$modules_to_build panel menu form"
3188 test "$program_prefix" != NONE &&
3189 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3190 # Use a double $ so make ignores it.
3191 test "$program_suffix" != NONE &&
3192 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3193 # Double any \ or $. echo might interpret backslashes.
3194 # By default was `s,x,x', remove it if useless.
3195 cat <<\_ACEOF >conftest.sed
3196 s/[\\$]/&&/g;s/;s,x,x,$//
3198 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3201 for ac_prog in mawk gawk nawk awk
3203 # Extract the first word of "$ac_prog", so it can be a program name with args.
3204 set dummy $ac_prog; ac_word=$2
3205 echo "$as_me:3205: checking for $ac_word" >&5
3206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3207 if test "${ac_cv_prog_AWK+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3210 if test -n "$AWK"; then
3211 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3213 ac_save_IFS=$IFS; IFS=$ac_path_separator
3215 for ac_dir in $ac_dummy; do
3217 test -z "$ac_dir" && ac_dir=.
3218 $as_executable_p "$ac_dir/$ac_word" || continue
3219 ac_cv_prog_AWK="$ac_prog"
3220 echo "$as_me:3220: found $ac_dir/$ac_word" >&5
3227 if test -n "$AWK"; then
3228 echo "$as_me:3228: result: $AWK" >&5
3229 echo "${ECHO_T}$AWK" >&6
3231 echo "$as_me:3231: result: no" >&5
3232 echo "${ECHO_T}no" >&6
3235 test -n "$AWK" && break
3238 test -z "$AWK" && { { echo "$as_me:3238: error: No awk program found" >&5
3239 echo "$as_me: error: No awk program found" >&2;}
3240 { (exit 1); exit 1; }; }
3242 echo "$as_me:3242: checking for egrep" >&5
3243 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3244 if test "${ac_cv_prog_egrep+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3247 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3248 then ac_cv_prog_egrep='grep -E'
3249 else ac_cv_prog_egrep='egrep'
3252 echo "$as_me:3252: result: $ac_cv_prog_egrep" >&5
3253 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3254 EGREP=$ac_cv_prog_egrep
3256 test -z "$EGREP" && { { echo "$as_me:3256: error: No egrep program found" >&5
3257 echo "$as_me: error: No egrep program found" >&2;}
3258 { (exit 1); exit 1; }; }
3260 # Find a good install program. We prefer a C program (faster),
3261 # so one script is as good as another. But avoid the broken or
3262 # incompatible versions:
3263 # SysV /etc/install, /usr/sbin/install
3264 # SunOS /usr/etc/install
3265 # IRIX /sbin/install
3267 # AmigaOS /C/install, which installs bootblocks on floppy discs
3268 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3269 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3270 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3271 # ./install, which can be erroneously created by make from ./install.sh.
3272 echo "$as_me:3272: checking for a BSD compatible install" >&5
3273 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3274 if test -z "$INSTALL"; then
3275 if test "${ac_cv_path_install+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3278 ac_save_IFS=$IFS; IFS=$ac_path_separator
3279 for ac_dir in $PATH; do
3281 # Account for people who put trailing slashes in PATH elements.
3283 / | ./ | .// | /cC/* \
3284 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3287 # OSF1 and SCO ODT 3.0 have their own names for install.
3288 # Don't use installbsd from OSF since it installs stuff as root
3290 for ac_prog in ginstall scoinst install; do
3291 if $as_executable_p "$ac_dir/$ac_prog"; then
3292 if test $ac_prog = install &&
3293 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3294 # AIX install. It has an incompatible calling convention.
3296 elif test $ac_prog = install &&
3297 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3298 # program-specific install script used by HP pwplus--don't use.
3301 ac_cv_path_install="$ac_dir/$ac_prog -c"
3311 if test "${ac_cv_path_install+set}" = set; then
3312 INSTALL=$ac_cv_path_install
3314 # As a last resort, use the slow shell script. We don't cache a
3315 # path for INSTALL within a source directory, because that will
3316 # break other packages using the cache if that directory is
3317 # removed, or if the path is relative.
3318 INSTALL=$ac_install_sh
3321 echo "$as_me:3321: result: $INSTALL" >&5
3322 echo "${ECHO_T}$INSTALL" >&6
3324 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3325 # It thinks the first close brace ends the variable substitution.
3326 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3328 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3330 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3336 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3337 test -z "$cf_dir" && cf_dir=.
3338 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3342 for ac_prog in tdlint lint alint splint lclint
3344 # Extract the first word of "$ac_prog", so it can be a program name with args.
3345 set dummy $ac_prog; ac_word=$2
3346 echo "$as_me:3346: checking for $ac_word" >&5
3347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3348 if test "${ac_cv_prog_LINT+set}" = set; then
3349 echo $ECHO_N "(cached) $ECHO_C" >&6
3351 if test -n "$LINT"; then
3352 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3354 ac_save_IFS=$IFS; IFS=$ac_path_separator
3356 for ac_dir in $ac_dummy; do
3358 test -z "$ac_dir" && ac_dir=.
3359 $as_executable_p "$ac_dir/$ac_word" || continue
3360 ac_cv_prog_LINT="$ac_prog"
3361 echo "$as_me:3361: found $ac_dir/$ac_word" >&5
3367 LINT=$ac_cv_prog_LINT
3368 if test -n "$LINT"; then
3369 echo "$as_me:3369: result: $LINT" >&5
3370 echo "${ECHO_T}$LINT" >&6
3372 echo "$as_me:3372: result: no" >&5
3373 echo "${ECHO_T}no" >&6
3376 test -n "$LINT" && break
3379 echo "$as_me:3379: checking whether ln -s works" >&5
3380 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3382 if test "$LN_S" = "ln -s"; then
3383 echo "$as_me:3383: result: yes" >&5
3384 echo "${ECHO_T}yes" >&6
3386 echo "$as_me:3386: result: no, using $LN_S" >&5
3387 echo "${ECHO_T}no, using $LN_S" >&6
3390 echo "$as_me:3390: checking for long file names" >&5
3391 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3392 if test "${ac_cv_sys_long_file_names+set}" = set; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
3395 ac_cv_sys_long_file_names=yes
3396 # Test for long file names in all the places we know might matter:
3397 # . the current directory, where building will happen
3398 # $prefix/lib where we will be installing things
3399 # $exec_prefix/lib likewise
3400 # eval it to expand exec_prefix.
3401 # $TMPDIR if set, where it might want to write temporary files
3402 # if $TMPDIR is not set:
3403 # /tmp where it might want to write temporary files
3406 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3409 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3411 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3412 test -d $ac_dir || continue
3413 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3414 ac_xdir=$ac_dir/cf$$
3415 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3416 ac_tf1=$ac_xdir/conftest9012345
3417 ac_tf2=$ac_xdir/conftest9012346
3418 (echo 1 >$ac_tf1) 2>/dev/null
3419 (echo 2 >$ac_tf2) 2>/dev/null
3420 ac_val=`cat $ac_tf1 2>/dev/null`
3421 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3422 ac_cv_sys_long_file_names=no
3423 rm -rf $ac_xdir 2>/dev/null
3426 rm -rf $ac_xdir 2>/dev/null
3429 echo "$as_me:3429: result: $ac_cv_sys_long_file_names" >&5
3430 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3431 if test $ac_cv_sys_long_file_names = yes; then
3433 cat >>confdefs.h <<\EOF
3434 #define HAVE_LONG_FILE_NAMES 1
3439 # if we find pkg-config, check if we should install the ".pc" files.
3441 echo "$as_me:3441: checking if you want to use pkg-config" >&5
3442 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3444 # Check whether --with-pkg-config or --without-pkg-config was given.
3445 if test "${with_pkg_config+set}" = set; then
3446 withval="$with_pkg_config"
3447 cf_pkg_config=$withval
3451 echo "$as_me:3451: result: $cf_pkg_config" >&5
3452 echo "${ECHO_T}$cf_pkg_config" >&6
3454 case $cf_pkg_config in #(vi
3459 # Extract the first word of "pkg-config", so it can be a program name with args.
3460 set dummy pkg-config; ac_word=$2
3461 echo "$as_me:3461: checking for $ac_word" >&5
3462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3463 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3464 echo $ECHO_N "(cached) $ECHO_C" >&6
3468 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3471 ac_save_IFS=$IFS; IFS=$ac_path_separator
3473 for ac_dir in $ac_dummy; do
3475 test -z "$ac_dir" && ac_dir=.
3476 if $as_executable_p "$ac_dir/$ac_word"; then
3477 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3478 echo "$as_me:3478: found $ac_dir/$ac_word" >&5
3483 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="none"
3487 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3489 if test -n "$PKG_CONFIG"; then
3490 echo "$as_me:3490: result: $PKG_CONFIG" >&5
3491 echo "${ECHO_T}$PKG_CONFIG" >&6
3493 echo "$as_me:3493: result: no" >&5
3494 echo "${ECHO_T}no" >&6
3503 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3504 if test "$PKG_CONFIG" != none ; then
3506 if test "x$prefix" != xNONE; then
3507 cf_path_syntax="$prefix"
3509 cf_path_syntax="$ac_default_prefix"
3512 case ".$PKG_CONFIG" in #(vi
3513 .\$\(*\)*|.\'*\'*) #(vi
3517 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3520 eval PKG_CONFIG="$PKG_CONFIG"
3521 case ".$PKG_CONFIG" in #(vi
3523 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3528 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3531 { { echo "$as_me:3531: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3532 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3533 { (exit 1); exit 1; }; }
3539 if test "$PKG_CONFIG" != no ; then
3540 echo "$as_me:3540: checking if we should install .pc files for $PKG_CONFIG" >&5
3541 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3543 # Leave this as something that can be overridden in the environment.
3544 if test -z "$PKG_CONFIG_LIBDIR" ; then
3545 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`/lib/pkgconfig
3547 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG_LIBDIR" | sed -e 's/^://' -e 's/:.*//'`
3548 if test -n "$PKG_CONFIG_LIBDIR" && test -d "$PKG_CONFIG_LIBDIR" ; then
3550 # Check whether --enable-pc-files or --disable-pc-files was given.
3551 if test "${enable_pc_files+set}" = set; then
3552 enableval="$enable_pc_files"
3553 enable_pc_files=$enableval
3557 echo "$as_me:3557: result: $enable_pc_files" >&5
3558 echo "${ECHO_T}$enable_pc_files" >&6
3560 echo "$as_me:3560: result: no" >&5
3561 echo "${ECHO_T}no" >&6
3562 { echo "$as_me:3562: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&5
3563 echo "$as_me: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&2;}
3568 echo "$as_me:3568: checking if we should assume mixed-case filenames" >&5
3569 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3571 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3572 if test "${enable_mixed_case+set}" = set; then
3573 enableval="$enable_mixed_case"
3574 enable_mixedcase=$enableval
3576 enable_mixedcase=auto
3578 echo "$as_me:3578: result: $enable_mixedcase" >&5
3579 echo "${ECHO_T}$enable_mixedcase" >&6
3580 if test "$enable_mixedcase" = "auto" ; then
3582 echo "$as_me:3582: checking if filesystem supports mixed-case filenames" >&5
3583 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3584 if test "${cf_cv_mixedcase+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3588 if test "$cross_compiling" = yes ; then
3589 case $target_alias in #(vi
3590 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3598 rm -f conftest CONFTEST
3600 if test -f CONFTEST ; then
3605 rm -f conftest CONFTEST
3609 echo "$as_me:3609: result: $cf_cv_mixedcase" >&5
3610 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3611 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3612 #define MIXEDCASE_FILENAMES 1
3616 cf_cv_mixedcase=$enable_mixedcase
3617 if test "$enable_mixedcase" = "yes" ; then
3618 cat >>confdefs.h <<\EOF
3619 #define MIXEDCASE_FILENAMES 1
3625 # do this after mixed-case option (tags/TAGS is not as important as tic).
3626 echo "$as_me:3626: checking whether ${MAKE-make} sets \${MAKE}" >&5
3627 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3628 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3629 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3630 echo $ECHO_N "(cached) $ECHO_C" >&6
3632 cat >conftest.make <<\EOF
3634 @echo 'ac_maketemp="${MAKE}"'
3636 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3637 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3638 if test -n "$ac_maketemp"; then
3639 eval ac_cv_prog_make_${ac_make}_set=yes
3641 eval ac_cv_prog_make_${ac_make}_set=no
3645 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3646 echo "$as_me:3646: result: yes" >&5
3647 echo "${ECHO_T}yes" >&6
3650 echo "$as_me:3650: result: no" >&5
3651 echo "${ECHO_T}no" >&6
3652 SET_MAKE="MAKE=${MAKE-make}"
3655 # Extract the first word of "ctags", so it can be a program name with args.
3656 set dummy ctags; ac_word=$2
3657 echo "$as_me:3657: checking for $ac_word" >&5
3658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3659 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3660 echo $ECHO_N "(cached) $ECHO_C" >&6
3662 if test -n "$MAKE_LOWER_TAGS"; then
3663 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3665 ac_save_IFS=$IFS; IFS=$ac_path_separator
3667 for ac_dir in $ac_dummy; do
3669 test -z "$ac_dir" && ac_dir=.
3670 $as_executable_p "$ac_dir/$ac_word" || continue
3671 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3672 echo "$as_me:3672: found $ac_dir/$ac_word" >&5
3676 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3679 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3680 if test -n "$MAKE_LOWER_TAGS"; then
3681 echo "$as_me:3681: result: $MAKE_LOWER_TAGS" >&5
3682 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3684 echo "$as_me:3684: result: no" >&5
3685 echo "${ECHO_T}no" >&6
3688 if test "$cf_cv_mixedcase" = yes ; then
3689 # Extract the first word of "etags", so it can be a program name with args.
3690 set dummy etags; ac_word=$2
3691 echo "$as_me:3691: checking for $ac_word" >&5
3692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3693 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3696 if test -n "$MAKE_UPPER_TAGS"; then
3697 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3699 ac_save_IFS=$IFS; IFS=$ac_path_separator
3701 for ac_dir in $ac_dummy; do
3703 test -z "$ac_dir" && ac_dir=.
3704 $as_executable_p "$ac_dir/$ac_word" || continue
3705 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3706 echo "$as_me:3706: found $ac_dir/$ac_word" >&5
3710 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3713 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3714 if test -n "$MAKE_UPPER_TAGS"; then
3715 echo "$as_me:3715: result: $MAKE_UPPER_TAGS" >&5
3716 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3718 echo "$as_me:3718: result: no" >&5
3719 echo "${ECHO_T}no" >&6
3726 if test "$MAKE_UPPER_TAGS" = yes ; then
3732 if test "$MAKE_LOWER_TAGS" = yes ; then
3738 echo "$as_me:3738: checking for makeflags variable" >&5
3739 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3740 if test "${cf_cv_makeflags+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3745 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3747 cat >cf_makeflags.tmp <<CF_EOF
3750 @ echo '.$cf_option'
3752 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null | sed -e 's,[ ]*$,,'`
3753 case "$cf_result" in
3755 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3756 case "$cf_result" in
3757 .*CC=*) cf_cv_makeflags=
3759 *) cf_cv_makeflags=$cf_option
3765 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3769 rm -f cf_makeflags.tmp
3772 echo "$as_me:3772: result: $cf_cv_makeflags" >&5
3773 echo "${ECHO_T}$cf_cv_makeflags" >&6
3775 if test -n "$ac_tool_prefix"; then
3776 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3777 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3778 echo "$as_me:3778: checking for $ac_word" >&5
3779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3780 if test "${ac_cv_prog_RANLIB+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3783 if test -n "$RANLIB"; then
3784 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3786 ac_save_IFS=$IFS; IFS=$ac_path_separator
3788 for ac_dir in $ac_dummy; do
3790 test -z "$ac_dir" && ac_dir=.
3791 $as_executable_p "$ac_dir/$ac_word" || continue
3792 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3793 echo "$as_me:3793: found $ac_dir/$ac_word" >&5
3799 RANLIB=$ac_cv_prog_RANLIB
3800 if test -n "$RANLIB"; then
3801 echo "$as_me:3801: result: $RANLIB" >&5
3802 echo "${ECHO_T}$RANLIB" >&6
3804 echo "$as_me:3804: result: no" >&5
3805 echo "${ECHO_T}no" >&6
3809 if test -z "$ac_cv_prog_RANLIB"; then
3810 ac_ct_RANLIB=$RANLIB
3811 # Extract the first word of "ranlib", so it can be a program name with args.
3812 set dummy ranlib; ac_word=$2
3813 echo "$as_me:3813: checking for $ac_word" >&5
3814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3815 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 if test -n "$ac_ct_RANLIB"; then
3819 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3821 ac_save_IFS=$IFS; IFS=$ac_path_separator
3823 for ac_dir in $ac_dummy; do
3825 test -z "$ac_dir" && ac_dir=.
3826 $as_executable_p "$ac_dir/$ac_word" || continue
3827 ac_cv_prog_ac_ct_RANLIB="ranlib"
3828 echo "$as_me:3828: found $ac_dir/$ac_word" >&5
3832 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3835 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3836 if test -n "$ac_ct_RANLIB"; then
3837 echo "$as_me:3837: result: $ac_ct_RANLIB" >&5
3838 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3840 echo "$as_me:3840: result: no" >&5
3841 echo "${ECHO_T}no" >&6
3844 RANLIB=$ac_ct_RANLIB
3846 RANLIB="$ac_cv_prog_RANLIB"
3849 if test -n "$ac_tool_prefix"; then
3850 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3851 set dummy ${ac_tool_prefix}ld; ac_word=$2
3852 echo "$as_me:3852: checking for $ac_word" >&5
3853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3854 if test "${ac_cv_prog_LD+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3857 if test -n "$LD"; then
3858 ac_cv_prog_LD="$LD" # Let the user override the test.
3860 ac_save_IFS=$IFS; IFS=$ac_path_separator
3862 for ac_dir in $ac_dummy; do
3864 test -z "$ac_dir" && ac_dir=.
3865 $as_executable_p "$ac_dir/$ac_word" || continue
3866 ac_cv_prog_LD="${ac_tool_prefix}ld"
3867 echo "$as_me:3867: found $ac_dir/$ac_word" >&5
3874 if test -n "$LD"; then
3875 echo "$as_me:3875: result: $LD" >&5
3876 echo "${ECHO_T}$LD" >&6
3878 echo "$as_me:3878: result: no" >&5
3879 echo "${ECHO_T}no" >&6
3883 if test -z "$ac_cv_prog_LD"; then
3885 # Extract the first word of "ld", so it can be a program name with args.
3886 set dummy ld; ac_word=$2
3887 echo "$as_me:3887: checking for $ac_word" >&5
3888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3889 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3892 if test -n "$ac_ct_LD"; then
3893 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3895 ac_save_IFS=$IFS; IFS=$ac_path_separator
3897 for ac_dir in $ac_dummy; do
3899 test -z "$ac_dir" && ac_dir=.
3900 $as_executable_p "$ac_dir/$ac_word" || continue
3901 ac_cv_prog_ac_ct_LD="ld"
3902 echo "$as_me:3902: found $ac_dir/$ac_word" >&5
3906 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3909 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3910 if test -n "$ac_ct_LD"; then
3911 echo "$as_me:3911: result: $ac_ct_LD" >&5
3912 echo "${ECHO_T}$ac_ct_LD" >&6
3914 echo "$as_me:3914: result: no" >&5
3915 echo "${ECHO_T}no" >&6
3923 if test -n "$ac_tool_prefix"; then
3924 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3925 set dummy ${ac_tool_prefix}ar; ac_word=$2
3926 echo "$as_me:3926: checking for $ac_word" >&5
3927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3928 if test "${ac_cv_prog_AR+set}" = set; then
3929 echo $ECHO_N "(cached) $ECHO_C" >&6
3931 if test -n "$AR"; then
3932 ac_cv_prog_AR="$AR" # Let the user override the test.
3934 ac_save_IFS=$IFS; IFS=$ac_path_separator
3936 for ac_dir in $ac_dummy; do
3938 test -z "$ac_dir" && ac_dir=.
3939 $as_executable_p "$ac_dir/$ac_word" || continue
3940 ac_cv_prog_AR="${ac_tool_prefix}ar"
3941 echo "$as_me:3941: found $ac_dir/$ac_word" >&5
3948 if test -n "$AR"; then
3949 echo "$as_me:3949: result: $AR" >&5
3950 echo "${ECHO_T}$AR" >&6
3952 echo "$as_me:3952: result: no" >&5
3953 echo "${ECHO_T}no" >&6
3957 if test -z "$ac_cv_prog_AR"; then
3959 # Extract the first word of "ar", so it can be a program name with args.
3960 set dummy ar; ac_word=$2
3961 echo "$as_me:3961: checking for $ac_word" >&5
3962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3963 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3964 echo $ECHO_N "(cached) $ECHO_C" >&6
3966 if test -n "$ac_ct_AR"; then
3967 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3969 ac_save_IFS=$IFS; IFS=$ac_path_separator
3971 for ac_dir in $ac_dummy; do
3973 test -z "$ac_dir" && ac_dir=.
3974 $as_executable_p "$ac_dir/$ac_word" || continue
3975 ac_cv_prog_ac_ct_AR="ar"
3976 echo "$as_me:3976: found $ac_dir/$ac_word" >&5
3980 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3983 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3984 if test -n "$ac_ct_AR"; then
3985 echo "$as_me:3985: result: $ac_ct_AR" >&5
3986 echo "${ECHO_T}$ac_ct_AR" >&6
3988 echo "$as_me:3988: result: no" >&5
3989 echo "${ECHO_T}no" >&6
3997 if test -n "$ac_tool_prefix"; then
3998 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3999 set dummy ${ac_tool_prefix}ar; ac_word=$2
4000 echo "$as_me:4000: checking for $ac_word" >&5
4001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4002 if test "${ac_cv_prog_AR+set}" = set; then
4003 echo $ECHO_N "(cached) $ECHO_C" >&6
4005 if test -n "$AR"; then
4006 ac_cv_prog_AR="$AR" # Let the user override the test.
4008 ac_save_IFS=$IFS; IFS=$ac_path_separator
4010 for ac_dir in $ac_dummy; do
4012 test -z "$ac_dir" && ac_dir=.
4013 $as_executable_p "$ac_dir/$ac_word" || continue
4014 ac_cv_prog_AR="${ac_tool_prefix}ar"
4015 echo "$as_me:4015: found $ac_dir/$ac_word" >&5
4022 if test -n "$AR"; then
4023 echo "$as_me:4023: result: $AR" >&5
4024 echo "${ECHO_T}$AR" >&6
4026 echo "$as_me:4026: result: no" >&5
4027 echo "${ECHO_T}no" >&6
4031 if test -z "$ac_cv_prog_AR"; then
4033 # Extract the first word of "ar", so it can be a program name with args.
4034 set dummy ar; ac_word=$2
4035 echo "$as_me:4035: checking for $ac_word" >&5
4036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4037 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4038 echo $ECHO_N "(cached) $ECHO_C" >&6
4040 if test -n "$ac_ct_AR"; then
4041 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4043 ac_save_IFS=$IFS; IFS=$ac_path_separator
4045 for ac_dir in $ac_dummy; do
4047 test -z "$ac_dir" && ac_dir=.
4048 $as_executable_p "$ac_dir/$ac_word" || continue
4049 ac_cv_prog_ac_ct_AR="ar"
4050 echo "$as_me:4050: found $ac_dir/$ac_word" >&5
4054 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4057 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4058 if test -n "$ac_ct_AR"; then
4059 echo "$as_me:4059: result: $ac_ct_AR" >&5
4060 echo "${ECHO_T}$ac_ct_AR" >&6
4062 echo "$as_me:4062: result: no" >&5
4063 echo "${ECHO_T}no" >&6
4071 echo "$as_me:4071: checking for options to update archives" >&5
4072 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4073 if test "${cf_cv_ar_flags+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4077 cf_cv_ar_flags=unknown
4078 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
4080 rm -f conftest.$ac_cv_objext
4083 cat >conftest.$ac_ext <<EOF
4084 #line 4084 "configure"
4085 int testdata[3] = { 123, 456, 789 };
4087 if { (eval echo "$as_me:4087: \"$ac_compile\"") >&5
4088 (eval $ac_compile) 2>&5
4090 echo "$as_me:4090: \$? = $ac_status" >&5
4091 (exit $ac_status); } ; then
4092 $AR $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4093 if test -f conftest.a ; then
4094 cf_cv_ar_flags=$cf_ar_flags
4098 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4100 echo "${as_me-configure}:4100: testing cannot compile test-program ..." 1>&5
4105 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4108 echo "$as_me:4108: result: $cf_cv_ar_flags" >&5
4109 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4110 test -z "$ARFLAGS" && ARFLAGS=$cf_cv_ar_flags
4111 ARFLAGS=$cf_cv_ar_flags
4113 echo "$as_me:4113: checking if you have specified an install-prefix" >&5
4114 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4116 # Check whether --with-install-prefix or --without-install-prefix was given.
4117 if test "${with_install_prefix+set}" = set; then
4118 withval="$with_install_prefix"
4119 case "$withval" in #(vi
4122 *) DESTDIR="$withval"
4126 echo "$as_me:4126: result: $DESTDIR" >&5
4127 echo "${ECHO_T}$DESTDIR" >&6
4129 ###############################################################################
4131 # If we're cross-compiling, allow the user to override the tools and their
4132 # options. The configure script is oriented toward identifying the host
4133 # compiler, etc., but we need a build compiler to generate parts of the source.
4135 if test "$cross_compiling" = yes ; then
4137 # defaults that we might want to override
4138 : ${BUILD_CFLAGS:=''}
4139 : ${BUILD_CPPFLAGS:=''}
4140 : ${BUILD_LDFLAGS:=''}
4142 : ${BUILD_EXEEXT:='$x'}
4143 : ${BUILD_OBJEXT:='o'}
4145 # Check whether --with-build-cc or --without-build-cc was given.
4146 if test "${with_build_cc+set}" = set; then
4147 withval="$with_build_cc"
4150 for ac_prog in gcc cc cl
4152 # Extract the first word of "$ac_prog", so it can be a program name with args.
4153 set dummy $ac_prog; ac_word=$2
4154 echo "$as_me:4154: checking for $ac_word" >&5
4155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4156 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
4159 if test -n "$BUILD_CC"; then
4160 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4162 ac_save_IFS=$IFS; IFS=$ac_path_separator
4164 for ac_dir in $ac_dummy; do
4166 test -z "$ac_dir" && ac_dir=.
4167 $as_executable_p "$ac_dir/$ac_word" || continue
4168 ac_cv_prog_BUILD_CC="$ac_prog"
4169 echo "$as_me:4169: found $ac_dir/$ac_word" >&5
4175 BUILD_CC=$ac_cv_prog_BUILD_CC
4176 if test -n "$BUILD_CC"; then
4177 echo "$as_me:4177: result: $BUILD_CC" >&5
4178 echo "${ECHO_T}$BUILD_CC" >&6
4180 echo "$as_me:4180: result: no" >&5
4181 echo "${ECHO_T}no" >&6
4184 test -n "$BUILD_CC" && break
4188 echo "$as_me:4188: checking for native build C compiler" >&5
4189 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4190 echo "$as_me:4190: result: $BUILD_CC" >&5
4191 echo "${ECHO_T}$BUILD_CC" >&6
4193 echo "$as_me:4193: checking for native build C preprocessor" >&5
4194 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4196 # Check whether --with-build-cpp or --without-build-cpp was given.
4197 if test "${with_build_cpp+set}" = set; then
4198 withval="$with_build_cpp"
4199 BUILD_CPP="$withval"
4201 BUILD_CPP='${BUILD_CC} -E'
4203 echo "$as_me:4203: result: $BUILD_CPP" >&5
4204 echo "${ECHO_T}$BUILD_CPP" >&6
4206 echo "$as_me:4206: checking for native build C flags" >&5
4207 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4209 # Check whether --with-build-cflags or --without-build-cflags was given.
4210 if test "${with_build_cflags+set}" = set; then
4211 withval="$with_build_cflags"
4212 BUILD_CFLAGS="$withval"
4214 echo "$as_me:4214: result: $BUILD_CFLAGS" >&5
4215 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4217 echo "$as_me:4217: checking for native build C preprocessor-flags" >&5
4218 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4220 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4221 if test "${with_build_cppflags+set}" = set; then
4222 withval="$with_build_cppflags"
4223 BUILD_CPPFLAGS="$withval"
4225 echo "$as_me:4225: result: $BUILD_CPPFLAGS" >&5
4226 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4228 echo "$as_me:4228: checking for native build linker-flags" >&5
4229 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4231 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4232 if test "${with_build_ldflags+set}" = set; then
4233 withval="$with_build_ldflags"
4234 BUILD_LDFLAGS="$withval"
4236 echo "$as_me:4236: result: $BUILD_LDFLAGS" >&5
4237 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4239 echo "$as_me:4239: checking for native build linker-libraries" >&5
4240 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4242 # Check whether --with-build-libs or --without-build-libs was given.
4243 if test "${with_build_libs+set}" = set; then
4244 withval="$with_build_libs"
4245 BUILD_LIBS="$withval"
4247 echo "$as_me:4247: result: $BUILD_LIBS" >&5
4248 echo "${ECHO_T}$BUILD_LIBS" >&6
4250 # this assumes we're on Unix.
4254 : ${BUILD_CC:='${CC}'}
4256 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4257 { { echo "$as_me:4257: error: Cross-build requires two compilers.
4258 Use --with-build-cc to specify the native compiler." >&5
4259 echo "$as_me: error: Cross-build requires two compilers.
4260 Use --with-build-cc to specify the native compiler." >&2;}
4261 { (exit 1); exit 1; }; }
4265 : ${BUILD_CC:='${CC}'}
4266 : ${BUILD_CPP:='${CPP}'}
4267 : ${BUILD_CFLAGS:='${CFLAGS}'}
4268 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4269 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4270 : ${BUILD_LIBS:='${LIBS}'}
4271 : ${BUILD_EXEEXT:='$x'}
4272 : ${BUILD_OBJEXT:='o'}
4275 ###############################################################################
4277 ### Options to allow the user to specify the set of libraries which are used.
4278 ### Use "--without-normal --with-shared" to allow the default model to be
4279 ### shared, for example.
4284 # common library maintenance symbols that are convenient for libtool scripts:
4285 LIB_CREATE='${AR} -cr'
4286 LIB_OBJECT='${OBJECTS}'
4290 # symbols used to prop libtool up to enable it to determine what it should be
4298 echo "$as_me:4298: checking if you want to build libraries with libtool" >&5
4299 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4301 # Check whether --with-libtool or --without-libtool was given.
4302 if test "${with_libtool+set}" = set; then
4303 withval="$with_libtool"
4304 with_libtool=$withval
4308 echo "$as_me:4308: result: $with_libtool" >&5
4309 echo "${ECHO_T}$with_libtool" >&6
4310 if test "$with_libtool" != "no"; then
4312 if test "$with_libtool" != "yes" ; then
4314 if test "x$prefix" != xNONE; then
4315 cf_path_syntax="$prefix"
4317 cf_path_syntax="$ac_default_prefix"
4320 case ".$with_libtool" in #(vi
4321 .\$\(*\)*|.\'*\'*) #(vi
4325 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4328 eval with_libtool="$with_libtool"
4329 case ".$with_libtool" in #(vi
4331 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4336 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4339 { { echo "$as_me:4339: error: expected a pathname, not \"$with_libtool\"" >&5
4340 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4341 { (exit 1); exit 1; }; }
4345 LIBTOOL=$with_libtool
4347 # Extract the first word of "libtool", so it can be a program name with args.
4348 set dummy libtool; ac_word=$2
4349 echo "$as_me:4349: checking for $ac_word" >&5
4350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4351 if test "${ac_cv_path_LIBTOOL+set}" = set; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
4356 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
4359 ac_save_IFS=$IFS; IFS=$ac_path_separator
4361 for ac_dir in $ac_dummy; do
4363 test -z "$ac_dir" && ac_dir=.
4364 if $as_executable_p "$ac_dir/$ac_word"; then
4365 ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
4366 echo "$as_me:4366: found $ac_dir/$ac_word" >&5
4374 LIBTOOL=$ac_cv_path_LIBTOOL
4376 if test -n "$LIBTOOL"; then
4377 echo "$as_me:4377: result: $LIBTOOL" >&5
4378 echo "${ECHO_T}$LIBTOOL" >&6
4380 echo "$as_me:4380: result: no" >&5
4381 echo "${ECHO_T}no" >&6
4385 if test -z "$LIBTOOL" ; then
4386 { { echo "$as_me:4386: error: Cannot find libtool" >&5
4387 echo "$as_me: error: Cannot find libtool" >&2;}
4388 { (exit 1); exit 1; }; }
4390 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} -version-info `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} -o'
4391 LIB_OBJECT='${OBJECTS:.o=.lo}'
4393 LIB_CLEAN='${LIBTOOL} --mode=clean'
4394 LIB_COMPILE='${LIBTOOL} --mode=compile'
4395 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
4396 LIB_INSTALL='${LIBTOOL} --mode=install'
4397 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4400 # Show the version of libtool
4401 echo "$as_me:4401: checking version of libtool" >&5
4402 echo $ECHO_N "checking version of libtool... $ECHO_C" >&6
4404 # Save the version in a cache variable - this is not entirely a good
4405 # thing, but the version string from libtool is very ugly, and for
4406 # bug reports it might be useful to have the original string. "("
4407 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.].*//'`
4408 echo "$as_me:4408: result: $cf_cv_libtool_version" >&5
4409 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4410 if test -z "$cf_cv_libtool_version" ; then
4411 { { echo "$as_me:4411: error: This is not GNU libtool" >&5
4412 echo "$as_me: error: This is not GNU libtool" >&2;}
4413 { (exit 1); exit 1; }; }
4416 # special hack to add -no-undefined (which libtool should do for itself)
4418 case "$cf_cv_system_name" in #(vi
4419 cygwin*|mingw32*|uwin*|aix[456]) #(vi
4420 LT_UNDEF=-no-undefined
4424 # special hack to add --tag option for C++ compiler
4425 case $cf_cv_libtool_version in #(vi
4426 1.[5-9]*|[2-9].[0-9.a-z]*) #(vi
4427 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4428 LIBTOOL="$LIBTOOL --tag=CC"
4431 LIBTOOL_CXX="$LIBTOOL"
4439 test -z "$LIBTOOL" && ECHO_LT=
4441 if test "$with_libtool" != "no" ; then
4443 cf_list_models="$cf_list_models libtool"
4447 echo "$as_me:4447: checking if you want to build shared libraries" >&5
4448 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
4450 # Check whether --with-shared or --without-shared was given.
4451 if test "${with_shared+set}" = set; then
4452 withval="$with_shared"
4453 with_shared=$withval
4457 echo "$as_me:4457: result: $with_shared" >&5
4458 echo "${ECHO_T}$with_shared" >&6
4459 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
4461 echo "$as_me:4461: checking if you want to build static libraries" >&5
4462 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
4464 # Check whether --with-normal or --without-normal was given.
4465 if test "${with_normal+set}" = set; then
4466 withval="$with_normal"
4467 with_normal=$withval
4471 echo "$as_me:4471: result: $with_normal" >&5
4472 echo "${ECHO_T}$with_normal" >&6
4473 test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
4475 echo "$as_me:4475: checking if you want to build debug libraries" >&5
4476 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
4478 # Check whether --with-debug or --without-debug was given.
4479 if test "${with_debug+set}" = set; then
4480 withval="$with_debug"
4485 echo "$as_me:4485: result: $with_debug" >&5
4486 echo "${ECHO_T}$with_debug" >&6
4487 test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
4489 echo "$as_me:4489: checking if you want to build profiling libraries" >&5
4490 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
4492 # Check whether --with-profile or --without-profile was given.
4493 if test "${with_profile+set}" = set; then
4494 withval="$with_profile"
4495 with_profile=$withval
4499 echo "$as_me:4499: result: $with_profile" >&5
4500 echo "${ECHO_T}$with_profile" >&6
4501 test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
4505 ###############################################################################
4507 echo "$as_me:4507: checking for specified models" >&5
4508 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
4509 test -z "$cf_list_models" && cf_list_models=normal
4510 test "$with_libtool" != "no" && cf_list_models=libtool
4511 echo "$as_me:4511: result: $cf_list_models" >&5
4512 echo "${ECHO_T}$cf_list_models" >&6
4514 ### Use the first model as the default, and save its suffix for use in building
4515 ### up test-applications.
4516 echo "$as_me:4516: checking for default model" >&5
4517 echo $ECHO_N "checking for default model... $ECHO_C" >&6
4518 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
4519 echo "$as_me:4519: result: $DFT_LWR_MODEL" >&5
4520 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
4522 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4533 case $cf_cv_system_name in #(vi
4540 cf_prefix=$LIB_PREFIX
4542 LIB_PREFIX=$cf_prefix
4546 ###############################################################################
4548 echo "$as_me:4548: checking if you want to build a separate terminfo library" >&5
4549 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
4551 # Check whether --with-termlib or --without-termlib was given.
4552 if test "${with_termlib+set}" = set; then
4553 withval="$with_termlib"
4554 with_termlib=$withval
4558 echo "$as_me:4558: result: $with_termlib" >&5
4559 echo "${ECHO_T}$with_termlib" >&6
4561 echo "$as_me:4561: checking if you want to build a separate tic library" >&5
4562 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
4564 # Check whether --with-ticlib or --without-ticlib was given.
4565 if test "${with_ticlib+set}" = set; then
4566 withval="$with_ticlib"
4567 with_ticlib=$withval
4571 echo "$as_me:4571: result: $with_ticlib" >&5
4572 echo "${ECHO_T}$with_ticlib" >&6
4574 ### Checks for special libraries, must be done up-front.
4577 echo "$as_me:4577: checking if you want to link with the GPM mouse library" >&5
4578 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
4580 # Check whether --with-gpm or --without-gpm was given.
4581 if test "${with_gpm+set}" = set; then
4587 echo "$as_me:4587: result: $with_gpm" >&5
4588 echo "${ECHO_T}$with_gpm" >&6
4590 if test "$with_gpm" != no ; then
4591 echo "$as_me:4591: checking for gpm.h" >&5
4592 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
4593 if test "${ac_cv_header_gpm_h+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 cat >conftest.$ac_ext <<_ACEOF
4597 #line 4597 "configure"
4598 #include "confdefs.h"
4601 if { (eval echo "$as_me:4601: \"$ac_cpp conftest.$ac_ext\"") >&5
4602 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4604 egrep -v '^ *\+' conftest.er1 >conftest.err
4606 cat conftest.err >&5
4607 echo "$as_me:4607: \$? = $ac_status" >&5
4608 (exit $ac_status); } >/dev/null; then
4609 if test -s conftest.err; then
4610 ac_cpp_err=$ac_c_preproc_warn_flag
4617 if test -z "$ac_cpp_err"; then
4618 ac_cv_header_gpm_h=yes
4620 echo "$as_me: failed program was:" >&5
4621 cat conftest.$ac_ext >&5
4622 ac_cv_header_gpm_h=no
4624 rm -f conftest.err conftest.$ac_ext
4626 echo "$as_me:4626: result: $ac_cv_header_gpm_h" >&5
4627 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
4628 if test $ac_cv_header_gpm_h = yes; then
4630 cat >>confdefs.h <<\EOF
4631 #define HAVE_GPM_H 1
4634 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
4635 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
4637 echo "${as_me-configure}:4637: testing assuming we really have GPM library ..." 1>&5
4639 cat >>confdefs.h <<\EOF
4640 #define HAVE_LIBGPM 1
4644 echo "$as_me:4644: checking for Gpm_Open in -lgpm" >&5
4645 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
4646 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
4647 echo $ECHO_N "(cached) $ECHO_C" >&6
4649 ac_check_lib_save_LIBS=$LIBS
4651 cat >conftest.$ac_ext <<_ACEOF
4652 #line 4652 "configure"
4653 #include "confdefs.h"
4655 /* Override any gcc2 internal prototype to avoid an error. */
4659 /* We use char because int might match the return type of a gcc2
4660 builtin and then its argument prototype would still apply. */
4670 rm -f conftest.$ac_objext conftest$ac_exeext
4671 if { (eval echo "$as_me:4671: \"$ac_link\"") >&5
4672 (eval $ac_link) 2>&5
4674 echo "$as_me:4674: \$? = $ac_status" >&5
4675 (exit $ac_status); } &&
4676 { ac_try='test -s conftest$ac_exeext'
4677 { (eval echo "$as_me:4677: \"$ac_try\"") >&5
4680 echo "$as_me:4680: \$? = $ac_status" >&5
4681 (exit $ac_status); }; }; then
4682 ac_cv_lib_gpm_Gpm_Open=yes
4684 echo "$as_me: failed program was:" >&5
4685 cat conftest.$ac_ext >&5
4686 ac_cv_lib_gpm_Gpm_Open=no
4688 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4689 LIBS=$ac_check_lib_save_LIBS
4691 echo "$as_me:4691: result: $ac_cv_lib_gpm_Gpm_Open" >&5
4692 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
4693 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
4697 { { echo "$as_me:4697: error: Cannot link with GPM library" >&5
4698 echo "$as_me: error: Cannot link with GPM library" >&2;}
4699 { (exit 1); exit 1; }; }
4707 test "$with_gpm" != maybe && { echo "$as_me:4707: WARNING: Cannot find GPM header" >&5
4708 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
4715 if test "$with_gpm" != no ; then
4716 echo "$as_me:4716: checking if you want to load GPM dynamically" >&5
4717 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
4719 # Check whether --with-dlsym or --without-dlsym was given.
4720 if test "${with_dlsym+set}" = set; then
4721 withval="$with_dlsym"
4726 echo "$as_me:4726: result: $with_dlsym" >&5
4727 echo "${ECHO_T}$with_dlsym" >&6
4728 if test "$with_dlsym" = yes ; then
4731 echo "$as_me:4731: checking for dlsym" >&5
4732 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
4733 if test "${ac_cv_func_dlsym+set}" = set; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4736 cat >conftest.$ac_ext <<_ACEOF
4737 #line 4737 "configure"
4738 #include "confdefs.h"
4739 /* System header to define __stub macros and hopefully few prototypes,
4740 which can conflict with char dlsym (); below. */
4742 /* Override any gcc2 internal prototype to avoid an error. */
4746 /* We use char because int might match the return type of a gcc2
4747 builtin and then its argument prototype would still apply. */
4754 /* The GNU C library defines this for functions which it implements
4755 to always fail with ENOSYS. Some functions are actually named
4756 something starting with __ and the normal name is an alias. */
4757 #if defined (__stub_dlsym) || defined (__stub___dlsym)
4767 rm -f conftest.$ac_objext conftest$ac_exeext
4768 if { (eval echo "$as_me:4768: \"$ac_link\"") >&5
4769 (eval $ac_link) 2>&5
4771 echo "$as_me:4771: \$? = $ac_status" >&5
4772 (exit $ac_status); } &&
4773 { ac_try='test -s conftest$ac_exeext'
4774 { (eval echo "$as_me:4774: \"$ac_try\"") >&5
4777 echo "$as_me:4777: \$? = $ac_status" >&5
4778 (exit $ac_status); }; }; then
4779 ac_cv_func_dlsym=yes
4781 echo "$as_me: failed program was:" >&5
4782 cat conftest.$ac_ext >&5
4785 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4787 echo "$as_me:4787: result: $ac_cv_func_dlsym" >&5
4788 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
4789 if test $ac_cv_func_dlsym = yes; then
4794 echo "$as_me:4794: checking for dlsym in -ldl" >&5
4795 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
4796 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
4797 echo $ECHO_N "(cached) $ECHO_C" >&6
4799 ac_check_lib_save_LIBS=$LIBS
4801 cat >conftest.$ac_ext <<_ACEOF
4802 #line 4802 "configure"
4803 #include "confdefs.h"
4805 /* Override any gcc2 internal prototype to avoid an error. */
4809 /* We use char because int might match the return type of a gcc2
4810 builtin and then its argument prototype would still apply. */
4820 rm -f conftest.$ac_objext conftest$ac_exeext
4821 if { (eval echo "$as_me:4821: \"$ac_link\"") >&5
4822 (eval $ac_link) 2>&5
4824 echo "$as_me:4824: \$? = $ac_status" >&5
4825 (exit $ac_status); } &&
4826 { ac_try='test -s conftest$ac_exeext'
4827 { (eval echo "$as_me:4827: \"$ac_try\"") >&5
4830 echo "$as_me:4830: \$? = $ac_status" >&5
4831 (exit $ac_status); }; }; then
4832 ac_cv_lib_dl_dlsym=yes
4834 echo "$as_me: failed program was:" >&5
4835 cat conftest.$ac_ext >&5
4836 ac_cv_lib_dl_dlsym=no
4838 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4839 LIBS=$ac_check_lib_save_LIBS
4841 echo "$as_me:4841: result: $ac_cv_lib_dl_dlsym" >&5
4842 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
4843 if test $ac_cv_lib_dl_dlsym = yes; then
4851 if test "$cf_have_dlsym" = yes ; then
4852 test "$cf_have_libdl" = yes && LIBS="-ldl $LIBS"
4854 echo "$as_me:4854: checking whether able to link to dl*() functions" >&5
4855 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
4856 cat >conftest.$ac_ext <<_ACEOF
4857 #line 4857 "configure"
4858 #include "confdefs.h"
4865 if ((obj = dlopen("filename", 0)) != 0) {
4866 if (dlsym(obj, "symbolname") == 0) {
4874 rm -f conftest.$ac_objext conftest$ac_exeext
4875 if { (eval echo "$as_me:4875: \"$ac_link\"") >&5
4876 (eval $ac_link) 2>&5
4878 echo "$as_me:4878: \$? = $ac_status" >&5
4879 (exit $ac_status); } &&
4880 { ac_try='test -s conftest$ac_exeext'
4881 { (eval echo "$as_me:4881: \"$ac_try\"") >&5
4884 echo "$as_me:4884: \$? = $ac_status" >&5
4885 (exit $ac_status); }; }; then
4887 cat >>confdefs.h <<\EOF
4888 #define HAVE_LIBDL 1
4892 echo "$as_me: failed program was:" >&5
4893 cat conftest.$ac_ext >&5
4895 { { echo "$as_me:4895: error: Cannot link test program for libdl" >&5
4896 echo "$as_me: error: Cannot link test program for libdl" >&2;}
4897 { (exit 1); exit 1; }; }
4899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4900 echo "$as_me:4900: result: ok" >&5
4901 echo "${ECHO_T}ok" >&6
4903 { { echo "$as_me:4903: error: Cannot find dlsym function" >&5
4904 echo "$as_me: error: Cannot find dlsym function" >&2;}
4905 { (exit 1); exit 1; }; }
4908 if test "$with_gpm" != yes ; then
4909 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
4911 echo "${as_me-configure}:4911: testing assuming soname for gpm is $with_gpm ..." 1>&5
4913 cf_cv_gpm_soname="$with_gpm"
4916 echo "$as_me:4916: checking for soname of gpm library" >&5
4917 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
4918 if test "${cf_cv_gpm_soname+set}" = set; then
4919 echo $ECHO_N "(cached) $ECHO_C" >&6
4922 cf_cv_gpm_soname=unknown
4923 if test "$cross_compiling" != yes ; then
4924 cat >conftest.$ac_ext <<CF_EOF
4928 if (Gpm_Open(0,0)) Gpm_Close();
4929 ${cf_cv_main_return:-return}(0);
4932 cf_save_LIBS="$LIBS"
4934 if { (eval echo "$as_me:4934: \"$ac_compile\"") >&5
4935 (eval $ac_compile) 2>&5
4937 echo "$as_me:4937: \$? = $ac_status" >&5
4938 (exit $ac_status); } ; then
4939 if { (eval echo "$as_me:4939: \"$ac_link\"") >&5
4940 (eval $ac_link) 2>&5
4942 echo "$as_me:4942: \$? = $ac_status" >&5
4943 (exit $ac_status); } ; then
4944 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
4945 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
4949 LIBS="$cf_save_LIBS"
4953 echo "$as_me:4953: result: $cf_cv_gpm_soname" >&5
4954 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
4957 test "$cf_cv_gpm_soname" != "unknown" && cat >>confdefs.h <<EOF
4958 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
4961 SHLIB_LIST="-ldl $SHLIB_LIST"
4963 SHLIB_LIST="-lgpm $SHLIB_LIST"
4964 TEST_LIBS="-lgpm $TEST_LIBS"
4966 cat >>confdefs.h <<\EOF
4967 #define HAVE_LIBGPM 1
4970 echo "$as_me:4970: checking for Gpm_Wgetch in -lgpm" >&5
4971 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
4972 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4975 ac_check_lib_save_LIBS=$LIBS
4977 cat >conftest.$ac_ext <<_ACEOF
4978 #line 4978 "configure"
4979 #include "confdefs.h"
4981 /* Override any gcc2 internal prototype to avoid an error. */
4985 /* We use char because int might match the return type of a gcc2
4986 builtin and then its argument prototype would still apply. */
4996 rm -f conftest.$ac_objext conftest$ac_exeext
4997 if { (eval echo "$as_me:4997: \"$ac_link\"") >&5
4998 (eval $ac_link) 2>&5
5000 echo "$as_me:5000: \$? = $ac_status" >&5
5001 (exit $ac_status); } &&
5002 { ac_try='test -s conftest$ac_exeext'
5003 { (eval echo "$as_me:5003: \"$ac_try\"") >&5
5006 echo "$as_me:5006: \$? = $ac_status" >&5
5007 (exit $ac_status); }; }; then
5008 ac_cv_lib_gpm_Gpm_Wgetch=yes
5010 echo "$as_me: failed program was:" >&5
5011 cat conftest.$ac_ext >&5
5012 ac_cv_lib_gpm_Gpm_Wgetch=no
5014 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5015 LIBS=$ac_check_lib_save_LIBS
5017 echo "$as_me:5017: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
5018 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
5019 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
5021 echo "$as_me:5021: checking if GPM is weakly bound to curses library" >&5
5022 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
5023 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
5024 echo $ECHO_N "(cached) $ECHO_C" >&6
5027 cf_cv_check_gpm_wgetch=unknown
5028 if test "$cross_compiling" != yes ; then
5030 cat >conftest.$ac_ext <<CF_EOF
5035 ${cf_cv_main_return:-return}(0);
5039 cf_save_LIBS="$LIBS"
5040 # This only works if we can look at the symbol table. If a shared
5041 # library is stripped for install, we cannot use that. So we're forced
5042 # to rely on the static library, noting that some packagers may not
5044 LIBS="-static -lgpm -dynamic $LIBS"
5045 if { (eval echo "$as_me:5045: \"$ac_compile\"") >&5
5046 (eval $ac_compile) 2>&5
5048 echo "$as_me:5048: \$? = $ac_status" >&5
5049 (exit $ac_status); } ; then
5050 if { (eval echo "$as_me:5050: \"$ac_link\"") >&5
5051 (eval $ac_link) 2>&5
5053 echo "$as_me:5053: \$? = $ac_status" >&5
5054 (exit $ac_status); } ; then
5055 cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
5056 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
5057 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
5061 LIBS="$cf_save_LIBS"
5065 echo "$as_me:5065: result: $cf_cv_check_gpm_wgetch" >&5
5066 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
5068 if test "$cf_cv_check_gpm_wgetch" != yes ; then
5069 { echo "$as_me:5069: WARNING: GPM library is already linked with curses - read the FAQ" >&5
5070 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
5077 # not everyone has "test -c"
5078 if test -c /dev/sysmouse 2>/dev/null ; then
5079 echo "$as_me:5079: checking if you want to use sysmouse" >&5
5080 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
5082 # Check whether --with-sysmouse or --without-sysmouse was given.
5083 if test "${with_sysmouse+set}" = set; then
5084 withval="$with_sysmouse"
5085 cf_with_sysmouse=$withval
5087 cf_with_sysmouse=maybe
5089 if test "$cf_with_sysmouse" != no ; then
5090 cat >conftest.$ac_ext <<_ACEOF
5091 #line 5091 "configure"
5092 #include "confdefs.h"
5094 #include <osreldate.h>
5095 #if (__FreeBSD_version >= 400017)
5096 #include <sys/consio.h>
5097 #include <sys/fbio.h>
5099 #include <machine/console.h>
5106 struct mouse_info the_mouse;
5107 ioctl(0, CONS_MOUSECTL, &the_mouse);
5113 rm -f conftest.$ac_objext
5114 if { (eval echo "$as_me:5114: \"$ac_compile\"") >&5
5115 (eval $ac_compile) 2>&5
5117 echo "$as_me:5117: \$? = $ac_status" >&5
5118 (exit $ac_status); } &&
5119 { ac_try='test -s conftest.$ac_objext'
5120 { (eval echo "$as_me:5120: \"$ac_try\"") >&5
5123 echo "$as_me:5123: \$? = $ac_status" >&5
5124 (exit $ac_status); }; }; then
5125 cf_with_sysmouse=yes
5127 echo "$as_me: failed program was:" >&5
5128 cat conftest.$ac_ext >&5
5131 rm -f conftest.$ac_objext conftest.$ac_ext
5133 echo "$as_me:5133: result: $cf_with_sysmouse" >&5
5134 echo "${ECHO_T}$cf_with_sysmouse" >&6
5135 test "$cf_with_sysmouse" = yes && cat >>confdefs.h <<\EOF
5136 #define USE_SYSMOUSE 1
5141 if test X"$CC_G_OPT" = X"" ; then
5143 test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
5146 if test X"$CXX_G_OPT" = X"" ; then
5148 test -n "$GXX" && test "${ac_cv_prog_cxx_g}" != yes && CXX_G_OPT=''
5151 echo "$as_me:5151: checking for default loader flags" >&5
5152 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
5153 case $DFT_LWR_MODEL in
5154 libtool) LD_MODEL='' ;;
5155 normal) LD_MODEL='' ;;
5156 debug) LD_MODEL=$CC_G_OPT ;;
5157 profile) LD_MODEL='-pg';;
5158 shared) LD_MODEL='' ;;
5160 echo "$as_me:5160: result: $LD_MODEL" >&5
5161 echo "${ECHO_T}$LD_MODEL" >&6
5163 case $DFT_LWR_MODEL in
5166 echo "$as_me:5166: checking if rpath option should be used" >&5
5167 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
5169 # Check whether --enable-rpath or --disable-rpath was given.
5170 if test "${enable_rpath+set}" = set; then
5171 enableval="$enable_rpath"
5172 cf_cv_enable_rpath=$enableval
5174 cf_cv_enable_rpath=no
5176 echo "$as_me:5176: result: $cf_cv_enable_rpath" >&5
5177 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
5179 echo "$as_me:5179: checking if shared libraries should be relinked during install" >&5
5180 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
5182 # Check whether --enable-relink or --disable-relink was given.
5183 if test "${enable_relink+set}" = set; then
5184 enableval="$enable_relink"
5185 cf_cv_do_relink=$enableval
5189 echo "$as_me:5189: result: $cf_cv_do_relink" >&5
5190 echo "${ECHO_T}$cf_cv_do_relink" >&6
5195 echo "$as_me:5195: checking for an rpath option" >&5
5196 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
5197 case $cf_cv_system_name in #(vi
5199 if test "$GCC" = yes; then
5200 LD_RPATH_OPT="-Wl,-rpath,"
5202 LD_RPATH_OPT="-rpath "
5205 linux*|gnu*|k*bsd*-gnu) #(vi
5206 LD_RPATH_OPT="-Wl,-rpath,"
5208 openbsd[2-9].*) #(vi
5209 LD_RPATH_OPT="-Wl,-rpath,"
5212 LD_RPATH_OPT="-rpath "
5215 LD_RPATH_OPT="-Wl,-rpath,"
5218 LD_RPATH_OPT="-rpath "
5226 echo "$as_me:5226: result: $LD_RPATH_OPT" >&5
5227 echo "${ECHO_T}$LD_RPATH_OPT" >&6
5229 case "x$LD_RPATH_OPT" in #(vi
5231 echo "$as_me:5231: checking if we need a space after rpath option" >&5
5232 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
5233 cf_save_LIBS="$LIBS"
5234 LIBS="${LD_RPATH_OPT}$libdir $LIBS"
5235 cat >conftest.$ac_ext <<_ACEOF
5236 #line 5236 "configure"
5237 #include "confdefs.h"
5247 rm -f conftest.$ac_objext conftest$ac_exeext
5248 if { (eval echo "$as_me:5248: \"$ac_link\"") >&5
5249 (eval $ac_link) 2>&5
5251 echo "$as_me:5251: \$? = $ac_status" >&5
5252 (exit $ac_status); } &&
5253 { ac_try='test -s conftest$ac_exeext'
5254 { (eval echo "$as_me:5254: \"$ac_try\"") >&5
5257 echo "$as_me:5257: \$? = $ac_status" >&5
5258 (exit $ac_status); }; }; then
5261 echo "$as_me: failed program was:" >&5
5262 cat conftest.$ac_ext >&5
5265 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5266 LIBS="$cf_save_LIBS"
5267 echo "$as_me:5267: result: $cf_rpath_space" >&5
5268 echo "${ECHO_T}$cf_rpath_space" >&6
5269 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
5276 INSTALL_LIB="-m 644"
5278 cf_cv_do_symlinks=no
5280 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
5282 echo "$as_me:5282: checking if release/abi version should be used for shared libs" >&5
5283 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
5285 # Check whether --with-shlib-version or --without-shlib-version was given.
5286 if test "${with_shlib_version+set}" = set; then
5287 withval="$with_shlib_version"
5288 test -z "$withval" && withval=auto
5289 case $withval in #(vi
5291 cf_cv_shlib_version=auto
5293 rel|abi|auto|no) #(vi
5294 cf_cv_shlib_version=$withval
5297 { { echo "$as_me:5297: error: option value must be one of: rel, abi, auto or no" >&5
5298 echo "$as_me: error: option value must be one of: rel, abi, auto or no" >&2;}
5299 { (exit 1); exit 1; }; }
5304 cf_cv_shlib_version=auto
5306 echo "$as_me:5306: result: $cf_cv_shlib_version" >&5
5307 echo "${ECHO_T}$cf_cv_shlib_version" >&6
5311 # Some less-capable ports of gcc support only -fpic
5313 if test "$GCC" = yes
5315 echo "$as_me:5315: checking which $CC option to use" >&5
5316 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
5317 cf_save_CFLAGS="$CFLAGS"
5318 for CC_SHARED_OPTS in -fPIC -fpic ''
5320 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
5321 cat >conftest.$ac_ext <<_ACEOF
5322 #line 5322 "configure"
5323 #include "confdefs.h"
5333 rm -f conftest.$ac_objext
5334 if { (eval echo "$as_me:5334: \"$ac_compile\"") >&5
5335 (eval $ac_compile) 2>&5
5337 echo "$as_me:5337: \$? = $ac_status" >&5
5338 (exit $ac_status); } &&
5339 { ac_try='test -s conftest.$ac_objext'
5340 { (eval echo "$as_me:5340: \"$ac_try\"") >&5
5343 echo "$as_me:5343: \$? = $ac_status" >&5
5344 (exit $ac_status); }; }; then
5347 echo "$as_me: failed program was:" >&5
5348 cat conftest.$ac_ext >&5
5350 rm -f conftest.$ac_objext conftest.$ac_ext
5352 echo "$as_me:5352: result: $CC_SHARED_OPTS" >&5
5353 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
5354 CFLAGS="$cf_save_CFLAGS"
5357 cf_cv_shlib_version_infix=no
5359 case $cf_cv_system_name in #(vi
5361 if test "$GCC" = yes; then
5363 MK_SHARED_LIB="$(CC) -shared"
5367 MK_SHARED_LIB='${CC} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
5371 MK_SHARED_LIB='sh ../mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5372 cf_cv_shlib_version=cygdll
5373 cf_cv_shlib_version_infix=cygdll
5374 cat >mk_shared_lib.sh <<-CF_EOF
5377 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
5380 Linking shared library
5381 ** SHARED_LIB \$SHARED_LIB
5382 ** IMPORT_LIB \$IMPORT_LIB
5384 exec \$* -shared -Wl,--out-implib=../lib/\${IMPORT_LIB} -Wl,--export-all-symbols -o ../lib/\${SHARED_LIB}
5386 chmod +x mk_shared_lib.sh
5389 EXTRA_CFLAGS="-no-cpp-precomp"
5390 CC_SHARED_OPTS="-dynamic"
5391 MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
5392 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
5393 cf_cv_shlib_version_infix=yes
5394 echo "$as_me:5394: checking if ld -search_paths_first works" >&5
5395 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
5396 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
5397 echo $ECHO_N "(cached) $ECHO_C" >&6
5400 cf_save_LDFLAGS=$LDFLAGS
5401 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5402 cat >conftest.$ac_ext <<_ACEOF
5403 #line 5403 "configure"
5404 #include "confdefs.h"
5414 rm -f conftest.$ac_objext conftest$ac_exeext
5415 if { (eval echo "$as_me:5415: \"$ac_link\"") >&5
5416 (eval $ac_link) 2>&5
5418 echo "$as_me:5418: \$? = $ac_status" >&5
5419 (exit $ac_status); } &&
5420 { ac_try='test -s conftest$ac_exeext'
5421 { (eval echo "$as_me:5421: \"$ac_try\"") >&5
5424 echo "$as_me:5424: \$? = $ac_status" >&5
5425 (exit $ac_status); }; }; then
5426 cf_cv_ldflags_search_paths_first=yes
5428 echo "$as_me: failed program was:" >&5
5429 cat conftest.$ac_ext >&5
5430 cf_cv_ldflags_search_paths_first=no
5432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5433 LDFLAGS=$cf_save_LDFLAGS
5435 echo "$as_me:5435: result: $cf_cv_ldflags_search_paths_first" >&5
5436 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
5437 if test $cf_cv_ldflags_search_paths_first = yes; then
5438 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5442 # (tested with gcc 2.7.2 -- I don't have c89)
5443 if test "$GCC" = yes; then
5444 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
5447 LD_SHARED_OPTS='-Wl,+b,${libdir}'
5449 MK_SHARED_LIB='${LD} +b ${libdir} -b -o $@'
5450 # HP-UX shared libraries must be executable, and should be
5451 # readonly to exploit a quirk in the memory manager.
5452 INSTALL_LIB="-m 555"
5455 if test "$cf_cv_enable_rpath" = yes ; then
5456 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${libdir} $EXTRA_LDFLAGS"
5458 # tested with IRIX 5.2 and 'cc'.
5459 if test "$GCC" != yes; then
5460 CC_SHARED_OPTS='-KPIC'
5461 MK_SHARED_LIB='${CC} -shared -rdata_shared -soname `basename $@` -o $@'
5463 MK_SHARED_LIB='${CC} -shared -Wl,-soname,`basename $@` -o $@'
5465 cf_cv_rm_so_locs=yes
5467 linux*|gnu*|k*bsd*-gnu) #(vi
5468 if test "$DFT_LWR_MODEL" = "shared" ; then
5469 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5470 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5472 if test "$cf_cv_enable_rpath" = yes ; then
5473 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${libdir} $EXTRA_LDFLAGS"
5476 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5477 if test "$cf_cv_shlib_version" = rel; then
5478 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5480 cf_cv_shared_soname='`basename $@`'
5483 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5485 openbsd[2-9].*) #(vi
5486 if test "$DFT_LWR_MODEL" = "shared" ; then
5487 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5488 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5490 if test "$cf_cv_enable_rpath" = yes ; then
5491 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${libdir} $EXTRA_LDFLAGS"
5493 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5495 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5496 if test "$cf_cv_shlib_version" = rel; then
5497 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5499 cf_cv_shared_soname='`basename $@`'
5502 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5504 nto-qnx*|openbsd*|freebsd[12].*) #(vi
5505 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5506 MK_SHARED_LIB='${LD} -Bshareable -o $@'
5507 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5510 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5511 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
5512 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
5513 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${libdir} $LOCAL_LDFLAGS"
5514 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${libdir} $EXTRA_LDFLAGS"
5517 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5518 if test "$cf_cv_shlib_version" = rel; then
5519 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5521 cf_cv_shared_soname='`basename $@`'
5524 MK_SHARED_LIB='${LD} -shared -Bshareable -soname=`basename $@` -o $@'
5527 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5528 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
5529 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
5530 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5531 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${libdir} $EXTRA_LDFLAGS"
5532 if test "$cf_cv_shlib_version" = auto; then
5533 if test -f /usr/libexec/ld.elf_so; then
5534 cf_cv_shlib_version=abi
5536 cf_cv_shlib_version=rel
5540 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5541 if test "$cf_cv_shlib_version" = rel; then
5542 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5544 cf_cv_shared_soname='`basename $@`'
5547 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
5549 MK_SHARED_LIB='${LD} -shared -Bshareable -o $@'
5553 # tested with OSF/1 V3.2 and 'cc'
5554 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
5555 # link with shared libs).
5556 MK_SHARED_LIB='${LD} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
5557 case $host_os in #(vi
5559 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
5562 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
5563 if test "$DFT_LWR_MODEL" = "shared" ; then
5564 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5565 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5567 cf_cv_rm_so_locs=yes
5569 sco3.2v5*) # (also uw2* and UW7: hops 13-Apr-98
5570 # tested with osr5.0.5
5571 if test "$GCC" != yes; then
5572 CC_SHARED_OPTS='-belf -KPIC'
5574 MK_SHARED_LIB='${LD} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
5575 if test "$cf_cv_enable_rpath" = yes ; then
5576 # only way is to set LD_RUN_PATH but no switch for it
5579 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5580 LINK_PROGS='LD_RUN_PATH=${libdir}'
5581 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
5584 # tested with SunOS 4.1.1 and gcc 2.7.0
5585 if test "$GCC" != yes; then
5586 CC_SHARED_OPTS='-KPIC'
5588 MK_SHARED_LIB='${LD} -assert pure-text -o $@'
5589 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5592 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
5593 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
5594 if test "$DFT_LWR_MODEL" = "shared" ; then
5595 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
5596 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5598 if test "$cf_cv_enable_rpath" = yes ; then
5599 EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
5602 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5603 if test "$cf_cv_shlib_version" = rel; then
5604 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5606 cf_cv_shared_soname='`basename $@`'
5609 if test "$GCC" != yes; then
5610 cf_save_CFLAGS="$CFLAGS"
5611 for cf_shared_opts in -xcode=pic13 -xcode=pic32 -Kpic -KPIC -O
5613 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
5614 cat >conftest.$ac_ext <<_ACEOF
5615 #line 5615 "configure"
5616 #include "confdefs.h"
5626 rm -f conftest.$ac_objext
5627 if { (eval echo "$as_me:5627: \"$ac_compile\"") >&5
5628 (eval $ac_compile) 2>&5
5630 echo "$as_me:5630: \$? = $ac_status" >&5
5631 (exit $ac_status); } &&
5632 { ac_try='test -s conftest.$ac_objext'
5633 { (eval echo "$as_me:5633: \"$ac_try\"") >&5
5636 echo "$as_me:5636: \$? = $ac_status" >&5
5637 (exit $ac_status); }; }; then
5640 echo "$as_me: failed program was:" >&5
5641 cat conftest.$ac_ext >&5
5643 rm -f conftest.$ac_objext conftest.$ac_ext
5645 CFLAGS="$cf_save_CFLAGS"
5646 CC_SHARED_OPTS=$cf_shared_opts
5647 MK_SHARED_LIB='${CC} -dy -G -h '$cf_cv_shared_soname' -o $@'
5649 MK_SHARED_LIB='${CC} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
5652 sysv5uw7*|unix_sv*) #(vi
5653 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
5654 if test "$GCC" != yes; then
5655 CC_SHARED_OPTS='-KPIC'
5657 MK_SHARED_LIB='${LD} -d y -G -o $@'
5660 CC_SHARED_OPTS='unknown'
5661 MK_SHARED_LIB='echo unknown'
5665 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
5666 case "$cf_cv_shlib_version" in #(vi
5668 case "$MK_SHARED_LIB" in #(vi
5670 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
5673 { echo "$as_me:5673: WARNING: ignored --with-shlib-version" >&5
5674 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
5680 if test -n "$cf_ld_rpath_opt" ; then
5681 MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${libdir}"
5684 if test "$CC_SHARED_OPTS" = "unknown"; then
5685 for model in $cf_list_models; do
5686 if test "$model" = "shared"; then
5687 { { echo "$as_me:5687: error: Shared libraries are not supported in this version" >&5
5688 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
5689 { (exit 1); exit 1; }; }
5694 ###############################################################################
5696 ### use option --disable-overwrite to leave out the link to -lcurses
5697 echo "$as_me:5697: checking if you wish to install ncurses overwriting curses" >&5
5698 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
5700 # Check whether --enable-overwrite or --disable-overwrite was given.
5701 if test "${enable_overwrite+set}" = set; then
5702 enableval="$enable_overwrite"
5703 with_overwrite=$enableval
5705 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
5707 echo "$as_me:5707: result: $with_overwrite" >&5
5708 echo "${ECHO_T}$with_overwrite" >&6
5710 echo "$as_me:5710: checking if external terminfo-database is used" >&5
5711 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
5713 # Check whether --enable-database or --disable-database was given.
5714 if test "${enable_database+set}" = set; then
5715 enableval="$enable_database"
5716 use_database=$enableval
5720 echo "$as_me:5720: result: $use_database" >&5
5721 echo "${ECHO_T}$use_database" >&6
5723 case $host_os in #(vi
5725 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
5728 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
5732 case $cf_cv_system_name in
5733 os2*) PATH_SEPARATOR=';' ;;
5734 *) PATH_SEPARATOR=':' ;;
5737 if test "$use_database" != no ; then
5738 cat >>confdefs.h <<\EOF
5739 #define USE_DATABASE 1
5742 echo "$as_me:5742: checking which terminfo source-file will be installed" >&5
5743 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
5745 # Check whether --with-database or --without-database was given.
5746 if test "${with_database+set}" = set; then
5747 withval="$with_database"
5748 TERMINFO_SRC=$withval
5750 echo "$as_me:5750: result: $TERMINFO_SRC" >&5
5751 echo "${ECHO_T}$TERMINFO_SRC" >&6
5753 echo "$as_me:5753: checking whether to use hashed database instead of directory/tree" >&5
5754 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
5756 # Check whether --with-hashed-db or --without-hashed-db was given.
5757 if test "${with_hashed_db+set}" = set; then
5758 withval="$with_hashed_db"
5763 echo "$as_me:5763: result: $with_hashed_db" >&5
5764 echo "${ECHO_T}$with_hashed_db" >&6
5769 echo "$as_me:5769: checking for list of fallback descriptions" >&5
5770 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
5772 # Check whether --with-fallbacks or --without-fallbacks was given.
5773 if test "${with_fallbacks+set}" = set; then
5774 withval="$with_fallbacks"
5775 with_fallback=$withval
5779 echo "$as_me:5779: result: $with_fallback" >&5
5780 echo "${ECHO_T}$with_fallback" >&6
5781 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
5783 echo "$as_me:5783: checking if you want modern xterm or antique" >&5
5784 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
5786 # Check whether --with-xterm-new or --without-xterm-new was given.
5787 if test "${with_xterm_new+set}" = set; then
5788 withval="$with_xterm_new"
5789 with_xterm_new=$withval
5793 case $with_xterm_new in
5794 no) with_xterm_new=xterm-old;;
5795 *) with_xterm_new=xterm-new;;
5797 echo "$as_me:5797: result: $with_xterm_new" >&5
5798 echo "${ECHO_T}$with_xterm_new" >&6
5799 WHICH_XTERM=$with_xterm_new
5802 if test "$use_database" = no ; then
5803 TERMINFO="${datadir}/terminfo"
5807 echo "$as_me:5807: checking for list of terminfo directories" >&5
5808 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
5810 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
5811 if test "${with_terminfo_dirs+set}" = set; then
5812 withval="$with_terminfo_dirs"
5815 withval=${TERMINFO_DIRS-${datadir}/terminfo}
5817 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
5819 for cf_src_path in $withval
5822 if test "x$prefix" != xNONE; then
5823 cf_path_syntax="$prefix"
5825 cf_path_syntax="$ac_default_prefix"
5828 case ".$cf_src_path" in #(vi
5829 .\$\(*\)*|.\'*\'*) #(vi
5833 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
5836 eval cf_src_path="$cf_src_path"
5837 case ".$cf_src_path" in #(vi
5839 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
5844 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
5847 { { echo "$as_me:5847: error: expected a pathname, not \"$cf_src_path\"" >&5
5848 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
5849 { (exit 1); exit 1; }; }
5853 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
5854 cf_dst_path="${cf_dst_path}${cf_src_path}"
5858 eval 'TERMINFO_DIRS="$cf_dst_path"'
5860 echo "$as_me:5860: result: $TERMINFO_DIRS" >&5
5861 echo "${ECHO_T}$TERMINFO_DIRS" >&6
5862 test -n "$TERMINFO_DIRS" && cat >>confdefs.h <<EOF
5863 #define TERMINFO_DIRS "$TERMINFO_DIRS"
5866 echo "$as_me:5866: checking for default terminfo directory" >&5
5867 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
5869 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
5870 if test "${with_default_terminfo_dir+set}" = set; then
5871 withval="$with_default_terminfo_dir"
5874 withval="${TERMINFO-${datadir}/terminfo}"
5875 fi; if test -n "${datadir}/terminfo" ; then
5877 if test "x$prefix" != xNONE; then
5878 cf_path_syntax="$prefix"
5880 cf_path_syntax="$ac_default_prefix"
5883 case ".$withval" in #(vi
5884 .\$\(*\)*|.\'*\'*) #(vi
5888 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
5891 eval withval="$withval"
5892 case ".$withval" in #(vi
5894 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
5899 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
5902 { { echo "$as_me:5902: error: expected a pathname, not \"$withval\"" >&5
5903 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
5904 { (exit 1); exit 1; }; }
5911 echo "$as_me:5911: result: $TERMINFO" >&5
5912 echo "${ECHO_T}$TERMINFO" >&6
5913 cat >>confdefs.h <<EOF
5914 #define TERMINFO "$TERMINFO"
5919 ### use option --disable-big-core to make tic run on small machines
5920 ### We need 4Mb, check if we can allocate 50% more than that.
5921 echo "$as_me:5921: checking if big-core option selected" >&5
5922 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
5924 # Check whether --enable-big-core or --disable-big-core was given.
5925 if test "${enable_big_core+set}" = set; then
5926 enableval="$enable_big_core"
5927 with_big_core=$enableval
5929 if test "$cross_compiling" = yes; then
5932 cat >conftest.$ac_ext <<_ACEOF
5933 #line 5933 "configure"
5934 #include "confdefs.h"
5939 unsigned long n = 6000000L;
5940 char *s = malloc(n);
5943 ${cf_cv_main_return:-return}(s == 0);
5946 rm -f conftest$ac_exeext
5947 if { (eval echo "$as_me:5947: \"$ac_link\"") >&5
5948 (eval $ac_link) 2>&5
5950 echo "$as_me:5950: \$? = $ac_status" >&5
5951 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5952 { (eval echo "$as_me:5952: \"$ac_try\"") >&5
5955 echo "$as_me:5955: \$? = $ac_status" >&5
5956 (exit $ac_status); }; }; then
5959 echo "$as_me: program exited with status $ac_status" >&5
5960 echo "$as_me: failed program was:" >&5
5961 cat conftest.$ac_ext >&5
5964 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5967 echo "$as_me:5967: result: $with_big_core" >&5
5968 echo "${ECHO_T}$with_big_core" >&6
5969 test "$with_big_core" = "yes" && cat >>confdefs.h <<\EOF
5970 #define HAVE_BIG_CORE 1
5973 ### ISO C only guarantees 512-char strings, we have tables which load faster
5974 ### when constructed using "big" strings. More than the C compiler, the awk
5975 ### program is a limit on most vendor UNIX systems. Check that we can build.
5976 echo "$as_me:5976: checking if big-strings option selected" >&5
5977 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
5979 # Check whether --enable-big-strings or --disable-big-strings was given.
5980 if test "${enable_big_strings+set}" = set; then
5981 enableval="$enable_big_strings"
5982 with_big_strings=$enableval
5987 eval with_big_strings=no
5990 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' \
5991 | $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
5992 eval with_big_strings=yes
5994 eval with_big_strings=no
6000 echo "$as_me:6000: result: $with_big_strings" >&5
6001 echo "${ECHO_T}$with_big_strings" >&6
6004 test "$with_big_strings" = "yes" && USE_BIG_STRINGS=1
6006 ### use option --enable-termcap to compile in the termcap fallback support
6007 echo "$as_me:6007: checking if you want termcap-fallback support" >&5
6008 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
6010 # Check whether --enable-termcap or --disable-termcap was given.
6011 if test "${enable_termcap+set}" = set; then
6012 enableval="$enable_termcap"
6013 with_termcap=$enableval
6017 echo "$as_me:6017: result: $with_termcap" >&5
6018 echo "${ECHO_T}$with_termcap" >&6
6020 if test "$with_termcap" != "yes" ; then
6021 if test "$use_database" = no ; then
6022 if test -z "$with_fallback" ; then
6023 { { echo "$as_me:6023: error: You have disabled the database w/o specifying fallbacks" >&5
6024 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
6025 { (exit 1); exit 1; }; }
6028 cat >>confdefs.h <<\EOF
6029 #define PURE_TERMINFO 1
6034 if test "$with_ticlib" != no ; then
6035 { { echo "$as_me:6035: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
6036 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
6037 { (exit 1); exit 1; }; }
6040 cat >>confdefs.h <<\EOF
6041 #define USE_TERMCAP 1
6044 echo "$as_me:6044: checking for list of termcap files" >&5
6045 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
6047 # Check whether --with-termpath or --without-termpath was given.
6048 if test "${with_termpath+set}" = set; then
6049 withval="$with_termpath"
6052 withval=${TERMPATH-/etc/termcap:/usr/share/misc/termcap}
6054 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
6056 for cf_src_path in $withval
6059 if test "x$prefix" != xNONE; then
6060 cf_path_syntax="$prefix"
6062 cf_path_syntax="$ac_default_prefix"
6065 case ".$cf_src_path" in #(vi
6066 .\$\(*\)*|.\'*\'*) #(vi
6070 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6073 eval cf_src_path="$cf_src_path"
6074 case ".$cf_src_path" in #(vi
6076 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6081 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6084 { { echo "$as_me:6084: error: expected a pathname, not \"$cf_src_path\"" >&5
6085 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
6086 { (exit 1); exit 1; }; }
6090 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
6091 cf_dst_path="${cf_dst_path}${cf_src_path}"
6095 eval 'TERMPATH="$cf_dst_path"'
6097 echo "$as_me:6097: result: $TERMPATH" >&5
6098 echo "${ECHO_T}$TERMPATH" >&6
6099 test -n "$TERMPATH" && cat >>confdefs.h <<EOF
6100 #define TERMPATH "$TERMPATH"
6103 ### use option --enable-getcap to use a hacked getcap for reading termcaps
6104 echo "$as_me:6104: checking if fast termcap-loader is needed" >&5
6105 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
6107 # Check whether --enable-getcap or --disable-getcap was given.
6108 if test "${enable_getcap+set}" = set; then
6109 enableval="$enable_getcap"
6110 with_getcap=$enableval
6114 echo "$as_me:6114: result: $with_getcap" >&5
6115 echo "${ECHO_T}$with_getcap" >&6
6116 test "$with_getcap" = "yes" && cat >>confdefs.h <<\EOF
6117 #define USE_GETCAP 1
6120 echo "$as_me:6120: checking if translated termcaps will be cached in ~/.terminfo" >&5
6121 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
6123 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
6124 if test "${enable_getcap_cache+set}" = set; then
6125 enableval="$enable_getcap_cache"
6126 with_getcap_cache=$enableval
6128 with_getcap_cache=no
6130 echo "$as_me:6130: result: $with_getcap_cache" >&5
6131 echo "${ECHO_T}$with_getcap_cache" >&6
6132 test "$with_getcap_cache" = "yes" && cat >>confdefs.h <<\EOF
6133 #define USE_GETCAP_CACHE 1
6138 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
6139 echo "$as_me:6139: checking if ~/.terminfo is wanted" >&5
6140 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
6142 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
6143 if test "${enable_home_terminfo+set}" = set; then
6144 enableval="$enable_home_terminfo"
6145 with_home_terminfo=$enableval
6147 with_home_terminfo=yes
6149 echo "$as_me:6149: result: $with_home_terminfo" >&5
6150 echo "${ECHO_T}$with_home_terminfo" >&6
6151 test "$with_home_terminfo" = "yes" && cat >>confdefs.h <<\EOF
6152 #define USE_HOME_TERMINFO 1
6155 echo "$as_me:6155: checking if you want to use restricted environment when running as root" >&5
6156 echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6
6158 # Check whether --enable-root-environ or --disable-root-environ was given.
6159 if test "${enable_root_environ+set}" = set; then
6160 enableval="$enable_root_environ"
6161 with_root_environ=$enableval
6163 with_root_environ=yes
6165 echo "$as_me:6165: result: $with_root_environ" >&5
6166 echo "${ECHO_T}$with_root_environ" >&6
6167 test "$with_root_environ" = yes && cat >>confdefs.h <<\EOF
6168 #define USE_ROOT_ENVIRON 1
6171 ### Use option --enable-symlinks to make tic use symlinks, not hard links
6172 ### to reduce storage requirements for the terminfo database.
6178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6179 echo "$as_me:6179: checking for $ac_func" >&5
6180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6181 if eval "test \"\${$as_ac_var+set}\" = set"; then
6182 echo $ECHO_N "(cached) $ECHO_C" >&6
6184 cat >conftest.$ac_ext <<_ACEOF
6185 #line 6185 "configure"
6186 #include "confdefs.h"
6187 /* System header to define __stub macros and hopefully few prototypes,
6188 which can conflict with char $ac_func (); below. */
6190 /* Override any gcc2 internal prototype to avoid an error. */
6194 /* We use char because int might match the return type of a gcc2
6195 builtin and then its argument prototype would still apply. */
6202 /* The GNU C library defines this for functions which it implements
6203 to always fail with ENOSYS. Some functions are actually named
6204 something starting with __ and the normal name is an alias. */
6205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6215 rm -f conftest.$ac_objext conftest$ac_exeext
6216 if { (eval echo "$as_me:6216: \"$ac_link\"") >&5
6217 (eval $ac_link) 2>&5
6219 echo "$as_me:6219: \$? = $ac_status" >&5
6220 (exit $ac_status); } &&
6221 { ac_try='test -s conftest$ac_exeext'
6222 { (eval echo "$as_me:6222: \"$ac_try\"") >&5
6225 echo "$as_me:6225: \$? = $ac_status" >&5
6226 (exit $ac_status); }; }; then
6227 eval "$as_ac_var=yes"
6229 echo "$as_me: failed program was:" >&5
6230 cat conftest.$ac_ext >&5
6231 eval "$as_ac_var=no"
6233 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6235 echo "$as_me:6235: result: `eval echo '${'$as_ac_var'}'`" >&5
6236 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6237 if test `eval echo '${'$as_ac_var'}'` = yes; then
6238 cat >>confdefs.h <<EOF
6239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6245 if test "$cross_compiling" = yes ; then
6251 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6252 echo "$as_me:6252: checking for $ac_func" >&5
6253 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6254 if eval "test \"\${$as_ac_var+set}\" = set"; then
6255 echo $ECHO_N "(cached) $ECHO_C" >&6
6257 cat >conftest.$ac_ext <<_ACEOF
6258 #line 6258 "configure"
6259 #include "confdefs.h"
6260 /* System header to define __stub macros and hopefully few prototypes,
6261 which can conflict with char $ac_func (); below. */
6263 /* Override any gcc2 internal prototype to avoid an error. */
6267 /* We use char because int might match the return type of a gcc2
6268 builtin and then its argument prototype would still apply. */
6275 /* The GNU C library defines this for functions which it implements
6276 to always fail with ENOSYS. Some functions are actually named
6277 something starting with __ and the normal name is an alias. */
6278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6288 rm -f conftest.$ac_objext conftest$ac_exeext
6289 if { (eval echo "$as_me:6289: \"$ac_link\"") >&5
6290 (eval $ac_link) 2>&5
6292 echo "$as_me:6292: \$? = $ac_status" >&5
6293 (exit $ac_status); } &&
6294 { ac_try='test -s conftest$ac_exeext'
6295 { (eval echo "$as_me:6295: \"$ac_try\"") >&5
6298 echo "$as_me:6298: \$? = $ac_status" >&5
6299 (exit $ac_status); }; }; then
6300 eval "$as_ac_var=yes"
6302 echo "$as_me: failed program was:" >&5
6303 cat conftest.$ac_ext >&5
6304 eval "$as_ac_var=no"
6306 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6308 echo "$as_me:6308: result: `eval echo '${'$as_ac_var'}'`" >&5
6309 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6310 if test `eval echo '${'$as_ac_var'}'` = yes; then
6311 cat >>confdefs.h <<EOF
6312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6319 echo "$as_me:6319: checking if link/symlink functions work" >&5
6320 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
6321 if test "${cf_cv_link_funcs+set}" = set; then
6322 echo $ECHO_N "(cached) $ECHO_C" >&6
6326 for cf_func in link symlink ; do
6327 if test "$cross_compiling" = yes; then
6329 eval 'ac_cv_func_'$cf_func'=error'
6331 cat >conftest.$ac_ext <<_ACEOF
6332 #line 6332 "configure"
6333 #include "confdefs.h"
6335 #include <sys/types.h>
6336 #include <sys/stat.h>
6337 #ifdef HAVE_UNISTD_H
6343 char *src = "config.log";
6344 char *dst = "conftest.chk";
6349 fail = ($cf_func("config.log", "conftest.chk") < 0)
6350 || (stat(dst, &dst_sb) < 0)
6351 || (dst_sb.st_mtime != src_sb.st_mtime);
6357 ${cf_cv_main_return:-return} (fail);
6361 rm -f conftest$ac_exeext
6362 if { (eval echo "$as_me:6362: \"$ac_link\"") >&5
6363 (eval $ac_link) 2>&5
6365 echo "$as_me:6365: \$? = $ac_status" >&5
6366 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6367 { (eval echo "$as_me:6367: \"$ac_try\"") >&5
6370 echo "$as_me:6370: \$? = $ac_status" >&5
6371 (exit $ac_status); }; }; then
6373 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
6374 eval 'ac_cv_func_'$cf_func'=yes'
6376 echo "$as_me: program exited with status $ac_status" >&5
6377 echo "$as_me: failed program was:" >&5
6378 cat conftest.$ac_ext >&5
6380 eval 'ac_cv_func_'$cf_func'=no'
6382 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6385 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
6388 echo "$as_me:6388: result: $cf_cv_link_funcs" >&5
6389 echo "${ECHO_T}$cf_cv_link_funcs" >&6
6390 test "$ac_cv_func_link" = yes && cat >>confdefs.h <<\EOF
6394 test "$ac_cv_func_symlink" = yes && cat >>confdefs.h <<\EOF
6395 #define HAVE_SYMLINK 1
6403 # soft links (symbolic links) are useful for some systems where hard links do
6404 # not work, or to make it simpler to copy terminfo trees around.
6405 if test "$ac_cv_func_symlink" = yes ; then
6406 echo "$as_me:6406: checking if tic should use symbolic links" >&5
6407 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
6409 # Check whether --enable-symlinks or --disable-symlinks was given.
6410 if test "${enable_symlinks+set}" = set; then
6411 enableval="$enable_symlinks"
6412 with_symlinks=$enableval
6416 echo "$as_me:6416: result: $with_symlinks" >&5
6417 echo "${ECHO_T}$with_symlinks" >&6
6420 # If we have hard links and did not choose to use soft links instead, there is
6421 # no reason to make this choice optional - use the hard links.
6422 if test "$with_symlinks" = no ; then
6423 echo "$as_me:6423: checking if tic should use hard links" >&5
6424 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
6425 if test "$ac_cv_func_link" = yes ; then
6430 echo "$as_me:6430: result: $with_links" >&5
6431 echo "${ECHO_T}$with_links" >&6
6434 test "$with_links" = yes && cat >>confdefs.h <<\EOF
6438 test "$with_symlinks" = yes && cat >>confdefs.h <<\EOF
6439 #define USE_SYMLINKS 1
6442 ### use option --enable-broken-linker to force on use of broken-linker support
6443 echo "$as_me:6443: checking if you want broken-linker support code" >&5
6444 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
6446 # Check whether --enable-broken_linker or --disable-broken_linker was given.
6447 if test "${enable_broken_linker+set}" = set; then
6448 enableval="$enable_broken_linker"
6449 with_broken_linker=$enableval
6451 with_broken_linker=${BROKEN_LINKER-no}
6453 echo "$as_me:6453: result: $with_broken_linker" >&5
6454 echo "${ECHO_T}$with_broken_linker" >&6
6457 if test "$with_broken_linker" = yes ; then
6458 cat >>confdefs.h <<\EOF
6459 #define BROKEN_LINKER 1
6463 elif test "$DFT_LWR_MODEL" = shared ; then
6464 case $cf_cv_system_name in #(vi
6466 cat >>confdefs.h <<\EOF
6467 #define BROKEN_LINKER 1
6471 test -n "$verbose" && echo " cygwin linker is broken anyway" 1>&6
6473 echo "${as_me-configure}:6473: testing cygwin linker is broken anyway ..." 1>&5
6479 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
6480 echo "$as_me:6480: checking if tputs should process BSD-style prefix padding" >&5
6481 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
6483 # Check whether --enable-bsdpad or --disable-bsdpad was given.
6484 if test "${enable_bsdpad+set}" = set; then
6485 enableval="$enable_bsdpad"
6486 with_bsdpad=$enableval
6490 echo "$as_me:6490: result: $with_bsdpad" >&5
6491 echo "${ECHO_T}$with_bsdpad" >&6
6492 test "$with_bsdpad" = yes && cat >>confdefs.h <<\EOF
6496 ### use option --enable-widec to turn on use of wide-character support
6505 # Check to define _XOPEN_SOURCE "automatically"
6508 cf_POSIX_C_SOURCE=199506L
6511 case $host_os in #(vi
6513 cf_xopen_source="-D_ALL_SOURCE"
6516 cf_xopen_source="-D_APPLE_C_SOURCE"
6519 cf_xopen_source="-D_DARWIN_C_SOURCE"
6521 freebsd*|dragonfly*) #(vi
6522 # 5.x headers associate
6523 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
6524 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
6525 cf_POSIX_C_SOURCE=200112L
6527 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
6530 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
6533 cf_xopen_source="-D_HPUX_SOURCE"
6536 cf_xopen_source="-D_SGI_SOURCE"
6538 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
6540 echo "$as_me:6540: checking if we must define _GNU_SOURCE" >&5
6541 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
6542 if test "${cf_cv_gnu_source+set}" = set; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6546 cat >conftest.$ac_ext <<_ACEOF
6547 #line 6547 "configure"
6548 #include "confdefs.h"
6549 #include <sys/types.h>
6554 #ifndef _XOPEN_SOURCE
6561 rm -f conftest.$ac_objext
6562 if { (eval echo "$as_me:6562: \"$ac_compile\"") >&5
6563 (eval $ac_compile) 2>&5
6565 echo "$as_me:6565: \$? = $ac_status" >&5
6566 (exit $ac_status); } &&
6567 { ac_try='test -s conftest.$ac_objext'
6568 { (eval echo "$as_me:6568: \"$ac_try\"") >&5
6571 echo "$as_me:6571: \$? = $ac_status" >&5
6572 (exit $ac_status); }; }; then
6575 echo "$as_me: failed program was:" >&5
6576 cat conftest.$ac_ext >&5
6578 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
6579 cat >conftest.$ac_ext <<_ACEOF
6580 #line 6580 "configure"
6581 #include "confdefs.h"
6582 #include <sys/types.h>
6587 #ifdef _XOPEN_SOURCE
6594 rm -f conftest.$ac_objext
6595 if { (eval echo "$as_me:6595: \"$ac_compile\"") >&5
6596 (eval $ac_compile) 2>&5
6598 echo "$as_me:6598: \$? = $ac_status" >&5
6599 (exit $ac_status); } &&
6600 { ac_try='test -s conftest.$ac_objext'
6601 { (eval echo "$as_me:6601: \"$ac_try\"") >&5
6604 echo "$as_me:6604: \$? = $ac_status" >&5
6605 (exit $ac_status); }; }; then
6608 echo "$as_me: failed program was:" >&5
6609 cat conftest.$ac_ext >&5
6610 cf_cv_gnu_source=yes
6612 rm -f conftest.$ac_objext conftest.$ac_ext
6616 rm -f conftest.$ac_objext conftest.$ac_ext
6619 echo "$as_me:6619: result: $cf_cv_gnu_source" >&5
6620 echo "${ECHO_T}$cf_cv_gnu_source" >&6
6621 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
6625 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h>
6628 # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
6631 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
6634 cf_xopen_source="-D_OSF_SOURCE"
6637 cf_xopen_source="-D_QNX_SOURCE"
6640 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
6643 cf_xopen_source="-D__EXTENSIONS__"
6646 echo "$as_me:6646: checking if we should define _XOPEN_SOURCE" >&5
6647 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
6648 if test "${cf_cv_xopen_source+set}" = set; then
6649 echo $ECHO_N "(cached) $ECHO_C" >&6
6652 cat >conftest.$ac_ext <<_ACEOF
6653 #line 6653 "configure"
6654 #include "confdefs.h"
6655 #include <sys/types.h>
6660 #ifndef _XOPEN_SOURCE
6667 rm -f conftest.$ac_objext
6668 if { (eval echo "$as_me:6668: \"$ac_compile\"") >&5
6669 (eval $ac_compile) 2>&5
6671 echo "$as_me:6671: \$? = $ac_status" >&5
6672 (exit $ac_status); } &&
6673 { ac_try='test -s conftest.$ac_objext'
6674 { (eval echo "$as_me:6674: \"$ac_try\"") >&5
6677 echo "$as_me:6677: \$? = $ac_status" >&5
6678 (exit $ac_status); }; }; then
6679 cf_cv_xopen_source=no
6681 echo "$as_me: failed program was:" >&5
6682 cat conftest.$ac_ext >&5
6684 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
6685 cat >conftest.$ac_ext <<_ACEOF
6686 #line 6686 "configure"
6687 #include "confdefs.h"
6688 #include <sys/types.h>
6693 #ifdef _XOPEN_SOURCE
6700 rm -f conftest.$ac_objext
6701 if { (eval echo "$as_me:6701: \"$ac_compile\"") >&5
6702 (eval $ac_compile) 2>&5
6704 echo "$as_me:6704: \$? = $ac_status" >&5
6705 (exit $ac_status); } &&
6706 { ac_try='test -s conftest.$ac_objext'
6707 { (eval echo "$as_me:6707: \"$ac_try\"") >&5
6710 echo "$as_me:6710: \$? = $ac_status" >&5
6711 (exit $ac_status); }; }; then
6712 cf_cv_xopen_source=no
6714 echo "$as_me: failed program was:" >&5
6715 cat conftest.$ac_ext >&5
6716 cf_cv_xopen_source=$cf_XOPEN_SOURCE
6718 rm -f conftest.$ac_objext conftest.$ac_ext
6722 rm -f conftest.$ac_objext conftest.$ac_ext
6725 echo "$as_me:6725: result: $cf_cv_xopen_source" >&5
6726 echo "${ECHO_T}$cf_cv_xopen_source" >&6
6727 if test "$cf_cv_xopen_source" != no ; then
6729 CFLAGS=`echo "$CFLAGS" | \
6730 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
6731 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
6733 CPPFLAGS=`echo "$CPPFLAGS" | \
6734 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
6735 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
6737 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
6742 cf_new_extra_cppflags=
6744 for cf_add_cflags in $cf_temp_xopen_source
6746 case $cf_fix_cppflags in
6748 case $cf_add_cflags in #(vi
6749 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
6750 case $cf_add_cflags in
6752 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
6754 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
6755 && test -z "${cf_tst_cflags}" \
6756 && cf_fix_cppflags=yes
6758 if test $cf_fix_cppflags = yes ; then
6759 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
6761 elif test "${cf_tst_cflags}" = "\"'" ; then
6762 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
6768 *$cf_add_cflags) #(vi
6771 case $cf_add_cflags in #(vi
6773 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
6775 CPPFLAGS=`echo "$CPPFLAGS" | \
6776 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
6777 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
6781 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
6786 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
6791 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
6793 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
6795 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
6796 && test -z "${cf_tst_cflags}" \
6797 && cf_fix_cppflags=no
6802 if test -n "$cf_new_cflags" ; then
6804 CFLAGS="$CFLAGS $cf_new_cflags"
6807 if test -n "$cf_new_cppflags" ; then
6809 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
6812 if test -n "$cf_new_extra_cppflags" ; then
6814 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
6819 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
6821 cf_save_CFLAGS="$CFLAGS"
6822 cf_save_CPPFLAGS="$CPPFLAGS"
6824 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
6825 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
6826 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
6828 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
6829 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
6830 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
6832 echo "$as_me:6832: checking if we should define _POSIX_C_SOURCE" >&5
6833 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
6834 if test "${cf_cv_posix_c_source+set}" = set; then
6835 echo $ECHO_N "(cached) $ECHO_C" >&6
6838 echo "${as_me-configure}:6838: testing if the symbol is already defined go no further ..." 1>&5
6840 cat >conftest.$ac_ext <<_ACEOF
6841 #line 6841 "configure"
6842 #include "confdefs.h"
6843 #include <sys/types.h>
6848 #ifndef _POSIX_C_SOURCE
6855 rm -f conftest.$ac_objext
6856 if { (eval echo "$as_me:6856: \"$ac_compile\"") >&5
6857 (eval $ac_compile) 2>&5
6859 echo "$as_me:6859: \$? = $ac_status" >&5
6860 (exit $ac_status); } &&
6861 { ac_try='test -s conftest.$ac_objext'
6862 { (eval echo "$as_me:6862: \"$ac_try\"") >&5
6865 echo "$as_me:6865: \$? = $ac_status" >&5
6866 (exit $ac_status); }; }; then
6867 cf_cv_posix_c_source=no
6869 echo "$as_me: failed program was:" >&5
6870 cat conftest.$ac_ext >&5
6871 cf_want_posix_source=no
6872 case .$cf_POSIX_C_SOURCE in #(vi
6874 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
6877 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
6878 cf_want_posix_source=yes
6881 cf_want_posix_source=yes
6884 if test "$cf_want_posix_source" = yes ; then
6885 cat >conftest.$ac_ext <<_ACEOF
6886 #line 6886 "configure"
6887 #include "confdefs.h"
6888 #include <sys/types.h>
6893 #ifdef _POSIX_SOURCE
6900 rm -f conftest.$ac_objext
6901 if { (eval echo "$as_me:6901: \"$ac_compile\"") >&5
6902 (eval $ac_compile) 2>&5
6904 echo "$as_me:6904: \$? = $ac_status" >&5
6905 (exit $ac_status); } &&
6906 { ac_try='test -s conftest.$ac_objext'
6907 { (eval echo "$as_me:6907: \"$ac_try\"") >&5
6910 echo "$as_me:6910: \$? = $ac_status" >&5
6911 (exit $ac_status); }; }; then
6914 echo "$as_me: failed program was:" >&5
6915 cat conftest.$ac_ext >&5
6916 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
6918 rm -f conftest.$ac_objext conftest.$ac_ext
6921 echo "${as_me-configure}:6921: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
6923 CFLAGS="$cf_trim_CFLAGS"
6924 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
6926 echo "${as_me-configure}:6926: testing if the second compile does not leave our definition intact error ..." 1>&5
6928 cat >conftest.$ac_ext <<_ACEOF
6929 #line 6929 "configure"
6930 #include "confdefs.h"
6931 #include <sys/types.h>
6936 #ifndef _POSIX_C_SOURCE
6943 rm -f conftest.$ac_objext
6944 if { (eval echo "$as_me:6944: \"$ac_compile\"") >&5
6945 (eval $ac_compile) 2>&5
6947 echo "$as_me:6947: \$? = $ac_status" >&5
6948 (exit $ac_status); } &&
6949 { ac_try='test -s conftest.$ac_objext'
6950 { (eval echo "$as_me:6950: \"$ac_try\"") >&5
6953 echo "$as_me:6953: \$? = $ac_status" >&5
6954 (exit $ac_status); }; }; then
6957 echo "$as_me: failed program was:" >&5
6958 cat conftest.$ac_ext >&5
6959 cf_cv_posix_c_source=no
6961 rm -f conftest.$ac_objext conftest.$ac_ext
6962 CFLAGS="$cf_save_CFLAGS"
6963 CPPFLAGS="$cf_save_CPPFLAGS"
6966 rm -f conftest.$ac_objext conftest.$ac_ext
6969 echo "$as_me:6969: result: $cf_cv_posix_c_source" >&5
6970 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
6972 if test "$cf_cv_posix_c_source" != no ; then
6973 CFLAGS="$cf_trim_CFLAGS"
6974 CPPFLAGS="$cf_trim_CPPFLAGS"
6979 cf_new_extra_cppflags=
6981 for cf_add_cflags in $cf_cv_posix_c_source
6983 case $cf_fix_cppflags in
6985 case $cf_add_cflags in #(vi
6986 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
6987 case $cf_add_cflags in
6989 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
6991 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
6992 && test -z "${cf_tst_cflags}" \
6993 && cf_fix_cppflags=yes
6995 if test $cf_fix_cppflags = yes ; then
6996 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
6998 elif test "${cf_tst_cflags}" = "\"'" ; then
6999 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7005 *$cf_add_cflags) #(vi
7008 case $cf_add_cflags in #(vi
7010 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7012 CPPFLAGS=`echo "$CPPFLAGS" | \
7013 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7014 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7018 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7023 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7028 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7030 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7032 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7033 && test -z "${cf_tst_cflags}" \
7034 && cf_fix_cppflags=no
7039 if test -n "$cf_new_cflags" ; then
7041 CFLAGS="$CFLAGS $cf_new_cflags"
7044 if test -n "$cf_new_cppflags" ; then
7046 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7049 if test -n "$cf_new_extra_cppflags" ; then
7051 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7059 if test -n "$cf_xopen_source" ; then
7064 cf_new_extra_cppflags=
7066 for cf_add_cflags in $cf_xopen_source
7068 case $cf_fix_cppflags in
7070 case $cf_add_cflags in #(vi
7071 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7072 case $cf_add_cflags in
7074 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7076 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7077 && test -z "${cf_tst_cflags}" \
7078 && cf_fix_cppflags=yes
7080 if test $cf_fix_cppflags = yes ; then
7081 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7083 elif test "${cf_tst_cflags}" = "\"'" ; then
7084 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7090 *$cf_add_cflags) #(vi
7093 case $cf_add_cflags in #(vi
7095 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7097 CPPFLAGS=`echo "$CPPFLAGS" | \
7098 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7099 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7103 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7108 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7113 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7115 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7117 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7118 && test -z "${cf_tst_cflags}" \
7119 && cf_fix_cppflags=no
7124 if test -n "$cf_new_cflags" ; then
7126 CFLAGS="$CFLAGS $cf_new_cflags"
7129 if test -n "$cf_new_cppflags" ; then
7131 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7134 if test -n "$cf_new_extra_cppflags" ; then
7136 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7141 # Work around breakage on OS X
7143 echo "$as_me:7143: checking if SIGWINCH is defined" >&5
7144 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
7145 if test "${cf_cv_define_sigwinch+set}" = set; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7149 cat >conftest.$ac_ext <<_ACEOF
7150 #line 7150 "configure"
7151 #include "confdefs.h"
7153 #include <sys/types.h>
7154 #include <sys/signal.h>
7164 rm -f conftest.$ac_objext
7165 if { (eval echo "$as_me:7165: \"$ac_compile\"") >&5
7166 (eval $ac_compile) 2>&5
7168 echo "$as_me:7168: \$? = $ac_status" >&5
7169 (exit $ac_status); } &&
7170 { ac_try='test -s conftest.$ac_objext'
7171 { (eval echo "$as_me:7171: \"$ac_try\"") >&5
7174 echo "$as_me:7174: \$? = $ac_status" >&5
7175 (exit $ac_status); }; }; then
7176 cf_cv_define_sigwinch=yes
7178 echo "$as_me: failed program was:" >&5
7179 cat conftest.$ac_ext >&5
7180 cat >conftest.$ac_ext <<_ACEOF
7181 #line 7181 "configure"
7182 #include "confdefs.h"
7184 #undef _XOPEN_SOURCE
7185 #undef _POSIX_SOURCE
7186 #undef _POSIX_C_SOURCE
7187 #include <sys/types.h>
7188 #include <sys/signal.h>
7198 rm -f conftest.$ac_objext
7199 if { (eval echo "$as_me:7199: \"$ac_compile\"") >&5
7200 (eval $ac_compile) 2>&5
7202 echo "$as_me:7202: \$? = $ac_status" >&5
7203 (exit $ac_status); } &&
7204 { ac_try='test -s conftest.$ac_objext'
7205 { (eval echo "$as_me:7205: \"$ac_try\"") >&5
7208 echo "$as_me:7208: \$? = $ac_status" >&5
7209 (exit $ac_status); }; }; then
7210 cf_cv_define_sigwinch=maybe
7212 echo "$as_me: failed program was:" >&5
7213 cat conftest.$ac_ext >&5
7214 cf_cv_define_sigwinch=no
7216 rm -f conftest.$ac_objext conftest.$ac_ext
7219 rm -f conftest.$ac_objext conftest.$ac_ext
7222 echo "$as_me:7222: result: $cf_cv_define_sigwinch" >&5
7223 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
7225 if test "$cf_cv_define_sigwinch" = maybe ; then
7226 echo "$as_me:7226: checking for actual SIGWINCH definition" >&5
7227 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
7228 if test "${cf_cv_fixup_sigwinch+set}" = set; then
7229 echo $ECHO_N "(cached) $ECHO_C" >&6
7232 cf_cv_fixup_sigwinch=unknown
7234 while test $cf_sigwinch != 1
7236 cat >conftest.$ac_ext <<_ACEOF
7237 #line 7237 "configure"
7238 #include "confdefs.h"
7240 #undef _XOPEN_SOURCE
7241 #undef _POSIX_SOURCE
7242 #undef _POSIX_C_SOURCE
7243 #include <sys/types.h>
7244 #include <sys/signal.h>
7250 #if SIGWINCH != $cf_sigwinch
7258 rm -f conftest.$ac_objext
7259 if { (eval echo "$as_me:7259: \"$ac_compile\"") >&5
7260 (eval $ac_compile) 2>&5
7262 echo "$as_me:7262: \$? = $ac_status" >&5
7263 (exit $ac_status); } &&
7264 { ac_try='test -s conftest.$ac_objext'
7265 { (eval echo "$as_me:7265: \"$ac_try\"") >&5
7268 echo "$as_me:7268: \$? = $ac_status" >&5
7269 (exit $ac_status); }; }; then
7270 cf_cv_fixup_sigwinch=$cf_sigwinch
7273 echo "$as_me: failed program was:" >&5
7274 cat conftest.$ac_ext >&5
7276 rm -f conftest.$ac_objext conftest.$ac_ext
7278 cf_sigwinch=`expr $cf_sigwinch - 1`
7282 echo "$as_me:7282: result: $cf_cv_fixup_sigwinch" >&5
7283 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
7285 if test "$cf_cv_fixup_sigwinch" != unknown ; then
7286 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
7290 # Checks for CODESET support.
7292 echo "$as_me:7292: checking for nl_langinfo and CODESET" >&5
7293 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7294 if test "${am_cv_langinfo_codeset+set}" = set; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7297 cat >conftest.$ac_ext <<_ACEOF
7298 #line 7298 "configure"
7299 #include "confdefs.h"
7300 #include <langinfo.h>
7304 char* cs = nl_langinfo(CODESET);
7309 rm -f conftest.$ac_objext conftest$ac_exeext
7310 if { (eval echo "$as_me:7310: \"$ac_link\"") >&5
7311 (eval $ac_link) 2>&5
7313 echo "$as_me:7313: \$? = $ac_status" >&5
7314 (exit $ac_status); } &&
7315 { ac_try='test -s conftest$ac_exeext'
7316 { (eval echo "$as_me:7316: \"$ac_try\"") >&5
7319 echo "$as_me:7319: \$? = $ac_status" >&5
7320 (exit $ac_status); }; }; then
7321 am_cv_langinfo_codeset=yes
7323 echo "$as_me: failed program was:" >&5
7324 cat conftest.$ac_ext >&5
7325 am_cv_langinfo_codeset=no
7327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7330 echo "$as_me:7330: result: $am_cv_langinfo_codeset" >&5
7331 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
7332 if test $am_cv_langinfo_codeset = yes; then
7334 cat >>confdefs.h <<\EOF
7335 #define HAVE_LANGINFO_CODESET 1
7340 # use these variables to work around a defect in gcc's fixincludes.
7344 echo "$as_me:7344: checking if you want wide-character code" >&5
7345 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
7347 # Check whether --enable-widec or --disable-widec was given.
7348 if test "${enable_widec+set}" = set; then
7349 enableval="$enable_widec"
7350 with_widec=$enableval
7354 echo "$as_me:7354: result: $with_widec" >&5
7355 echo "${ECHO_T}$with_widec" >&6
7356 if test "$with_widec" = yes ; then
7357 LIB_SUFFIX="w${LIB_SUFFIX}"
7358 cat >>confdefs.h <<\EOF
7359 #define USE_WIDEC_SUPPORT 1
7362 echo "$as_me:7362: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
7363 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
7364 cat >conftest.$ac_ext <<_ACEOF
7365 #line 7365 "configure"
7366 #include "confdefs.h"
7367 #include <sys/types.h>
7373 #ifndef _XOPEN_SOURCE_EXTENDED
7380 rm -f conftest.$ac_objext
7381 if { (eval echo "$as_me:7381: \"$ac_compile\"") >&5
7382 (eval $ac_compile) 2>&5
7384 echo "$as_me:7384: \$? = $ac_status" >&5
7385 (exit $ac_status); } &&
7386 { ac_try='test -s conftest.$ac_objext'
7387 { (eval echo "$as_me:7387: \"$ac_try\"") >&5
7390 echo "$as_me:7390: \$? = $ac_status" >&5
7391 (exit $ac_status); }; }; then
7394 echo "$as_me: failed program was:" >&5
7395 cat conftest.$ac_ext >&5
7398 rm -f conftest.$ac_objext conftest.$ac_ext
7399 echo "$as_me:7399: result: $cf_result" >&5
7400 echo "${ECHO_T}$cf_result" >&6
7402 if test "$cf_result" = yes ; then
7403 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
7404 elif test "x" != "x" ; then
7405 echo "$as_me:7405: checking checking for compatible value versus " >&5
7406 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
7407 cat >conftest.$ac_ext <<_ACEOF
7408 #line 7408 "configure"
7409 #include "confdefs.h"
7410 #include <sys/types.h>
7416 #if _XOPEN_SOURCE_EXTENDED- < 0
7423 rm -f conftest.$ac_objext
7424 if { (eval echo "$as_me:7424: \"$ac_compile\"") >&5
7425 (eval $ac_compile) 2>&5
7427 echo "$as_me:7427: \$? = $ac_status" >&5
7428 (exit $ac_status); } &&
7429 { ac_try='test -s conftest.$ac_objext'
7430 { (eval echo "$as_me:7430: \"$ac_try\"") >&5
7433 echo "$as_me:7433: \$? = $ac_status" >&5
7434 (exit $ac_status); }; }; then
7437 echo "$as_me: failed program was:" >&5
7438 cat conftest.$ac_ext >&5
7441 rm -f conftest.$ac_objext conftest.$ac_ext
7442 echo "$as_me:7442: result: $cf_result" >&5
7443 echo "${ECHO_T}$cf_result" >&6
7444 if test "$cf_result" = no ; then
7445 # perhaps we can override it - try...
7446 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
7451 NCURSES_CH_T=cchar_t
7453 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
7455 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7456 echo "$as_me:7456: checking for $ac_func" >&5
7457 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7458 if eval "test \"\${$as_ac_var+set}\" = set"; then
7459 echo $ECHO_N "(cached) $ECHO_C" >&6
7461 cat >conftest.$ac_ext <<_ACEOF
7462 #line 7462 "configure"
7463 #include "confdefs.h"
7464 /* System header to define __stub macros and hopefully few prototypes,
7465 which can conflict with char $ac_func (); below. */
7467 /* Override any gcc2 internal prototype to avoid an error. */
7471 /* We use char because int might match the return type of a gcc2
7472 builtin and then its argument prototype would still apply. */
7479 /* The GNU C library defines this for functions which it implements
7480 to always fail with ENOSYS. Some functions are actually named
7481 something starting with __ and the normal name is an alias. */
7482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7492 rm -f conftest.$ac_objext conftest$ac_exeext
7493 if { (eval echo "$as_me:7493: \"$ac_link\"") >&5
7494 (eval $ac_link) 2>&5
7496 echo "$as_me:7496: \$? = $ac_status" >&5
7497 (exit $ac_status); } &&
7498 { ac_try='test -s conftest$ac_exeext'
7499 { (eval echo "$as_me:7499: \"$ac_try\"") >&5
7502 echo "$as_me:7502: \$? = $ac_status" >&5
7503 (exit $ac_status); }; }; then
7504 eval "$as_ac_var=yes"
7506 echo "$as_me: failed program was:" >&5
7507 cat conftest.$ac_ext >&5
7508 eval "$as_ac_var=no"
7510 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7512 echo "$as_me:7512: result: `eval echo '${'$as_ac_var'}'`" >&5
7513 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7514 if test `eval echo '${'$as_ac_var'}'` = yes; then
7515 cat >>confdefs.h <<EOF
7516 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7522 if test "$ac_cv_func_putwc" != yes ; then
7524 echo "$as_me:7524: checking for multibyte character support" >&5
7525 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
7526 if test "${cf_cv_utf8_lib+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
7530 cf_save_LIBS="$LIBS"
7531 cat >conftest.$ac_ext <<_ACEOF
7532 #line 7532 "configure"
7533 #include "confdefs.h"
7544 rm -f conftest.$ac_objext conftest$ac_exeext
7545 if { (eval echo "$as_me:7545: \"$ac_link\"") >&5
7546 (eval $ac_link) 2>&5
7548 echo "$as_me:7548: \$? = $ac_status" >&5
7549 (exit $ac_status); } &&
7550 { ac_try='test -s conftest$ac_exeext'
7551 { (eval echo "$as_me:7551: \"$ac_try\"") >&5
7554 echo "$as_me:7554: \$? = $ac_status" >&5
7555 (exit $ac_status); }; }; then
7558 echo "$as_me: failed program was:" >&5
7559 cat conftest.$ac_ext >&5
7561 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
7562 # will be set on completion of the AC_TRY_LINK below.
7563 cf_cv_header_path_utf8=
7564 cf_cv_library_path_utf8=
7566 echo "${as_me-configure}:7566: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
7568 cat >conftest.$ac_ext <<_ACEOF
7569 #line 7569 "configure"
7570 #include "confdefs.h"
7572 #include <libutf8.h>
7581 rm -f conftest.$ac_objext conftest$ac_exeext
7582 if { (eval echo "$as_me:7582: \"$ac_link\"") >&5
7583 (eval $ac_link) 2>&5
7585 echo "$as_me:7585: \$? = $ac_status" >&5
7586 (exit $ac_status); } &&
7587 { ac_try='test -s conftest$ac_exeext'
7588 { (eval echo "$as_me:7588: \"$ac_try\"") >&5
7591 echo "$as_me:7591: \$? = $ac_status" >&5
7592 (exit $ac_status); }; }; then
7594 cf_cv_find_linkage_utf8=yes
7597 echo "$as_me: failed program was:" >&5
7598 cat conftest.$ac_ext >&5
7600 cf_save_LIBS="$LIBS"
7601 LIBS="-lutf8 $cf_save_LIBS"
7603 cat >conftest.$ac_ext <<_ACEOF
7604 #line 7604 "configure"
7605 #include "confdefs.h"
7607 #include <libutf8.h>
7616 rm -f conftest.$ac_objext conftest$ac_exeext
7617 if { (eval echo "$as_me:7617: \"$ac_link\"") >&5
7618 (eval $ac_link) 2>&5
7620 echo "$as_me:7620: \$? = $ac_status" >&5
7621 (exit $ac_status); } &&
7622 { ac_try='test -s conftest$ac_exeext'
7623 { (eval echo "$as_me:7623: \"$ac_try\"") >&5
7626 echo "$as_me:7626: \$? = $ac_status" >&5
7627 (exit $ac_status); }; }; then
7629 cf_cv_find_linkage_utf8=yes
7632 echo "$as_me: failed program was:" >&5
7633 cat conftest.$ac_ext >&5
7635 cf_cv_find_linkage_utf8=no
7636 LIBS="$cf_save_LIBS"
7638 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
7640 echo "${as_me-configure}:7640: testing find linkage for utf8 library ..." 1>&5
7642 echo "${as_me-configure}:7642: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
7644 cf_save_CPPFLAGS="$CPPFLAGS"
7645 cf_test_CPPFLAGS="$CPPFLAGS"
7648 cf_header_path_list=""
7649 if test -n "${CFLAGS}${CPPFLAGS}" ; then
7650 for cf_header_path in $CPPFLAGS $CFLAGS
7652 case $cf_header_path in #(vi
7654 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
7656 test "$cf_header_path" != "NONE" && \
7657 test -d "$cf_header_path" && \
7659 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
7660 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
7661 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
7662 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
7663 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
7664 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
7667 cf_header_path_list="$cf_header_path_list $cf_search"
7675 test "/usr" != "$prefix" && \
7677 (test $prefix = NONE || test -d $prefix) && {
7678 test -n "$verbose" && echo " ... testing for include-directories under /usr"
7679 test -d /usr/include && cf_search="$cf_search /usr/include"
7680 test -d /usr/include/utf8 && cf_search="$cf_search /usr/include/utf8"
7681 test -d /usr/include/utf8/include && cf_search="$cf_search /usr/include/utf8/include"
7682 test -d /usr/utf8/include && cf_search="$cf_search /usr/utf8/include"
7683 test -d /usr/utf8/include/utf8 && cf_search="$cf_search /usr/utf8/include/utf8"
7686 test "$prefix" != "NONE" && \
7687 test -d "$prefix" && \
7689 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
7690 test -d $prefix/include && cf_search="$cf_search $prefix/include"
7691 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
7692 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
7693 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
7694 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
7697 test "/usr/local" != "$prefix" && \
7698 test -d "/usr/local" && \
7699 (test $prefix = NONE || test -d $prefix) && {
7700 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
7701 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
7702 test -d /usr/local/include/utf8 && cf_search="$cf_search /usr/local/include/utf8"
7703 test -d /usr/local/include/utf8/include && cf_search="$cf_search /usr/local/include/utf8/include"
7704 test -d /usr/local/utf8/include && cf_search="$cf_search /usr/local/utf8/include"
7705 test -d /usr/local/utf8/include/utf8 && cf_search="$cf_search /usr/local/utf8/include/utf8"
7708 test "/opt" != "$prefix" && \
7710 (test $prefix = NONE || test -d $prefix) && {
7711 test -n "$verbose" && echo " ... testing for include-directories under /opt"
7712 test -d /opt/include && cf_search="$cf_search /opt/include"
7713 test -d /opt/include/utf8 && cf_search="$cf_search /opt/include/utf8"
7714 test -d /opt/include/utf8/include && cf_search="$cf_search /opt/include/utf8/include"
7715 test -d /opt/utf8/include && cf_search="$cf_search /opt/utf8/include"
7716 test -d /opt/utf8/include/utf8 && cf_search="$cf_search /opt/utf8/include/utf8"
7719 test "$HOME" != "$prefix" && \
7720 test -d "$HOME" && \
7721 (test $prefix = NONE || test -d $prefix) && {
7722 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
7723 test -d $HOME/include && cf_search="$cf_search $HOME/include"
7724 test -d $HOME/include/utf8 && cf_search="$cf_search $HOME/include/utf8"
7725 test -d $HOME/include/utf8/include && cf_search="$cf_search $HOME/include/utf8/include"
7726 test -d $HOME/utf8/include && cf_search="$cf_search $HOME/utf8/include"
7727 test -d $HOME/utf8/include/utf8 && cf_search="$cf_search $HOME/utf8/include/utf8"
7730 test "$includedir" != NONE && \
7731 test "$includedir" != "/usr/include" && \
7732 test -d "$includedir" && {
7733 test -d $includedir && cf_search="$cf_search $includedir"
7734 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
7737 test "$oldincludedir" != NONE && \
7738 test "$oldincludedir" != "/usr/include" && \
7739 test -d "$oldincludedir" && {
7740 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
7741 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
7744 cf_search="$cf_header_path_list $cf_search"
7746 for cf_cv_header_path_utf8 in $cf_search
7748 if test -d $cf_cv_header_path_utf8 ; then
7749 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
7751 echo "${as_me-configure}:7751: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
7753 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
7754 cat >conftest.$ac_ext <<_ACEOF
7755 #line 7755 "configure"
7756 #include "confdefs.h"
7758 #include <libutf8.h>
7767 rm -f conftest.$ac_objext
7768 if { (eval echo "$as_me:7768: \"$ac_compile\"") >&5
7769 (eval $ac_compile) 2>&5
7771 echo "$as_me:7771: \$? = $ac_status" >&5
7772 (exit $ac_status); } &&
7773 { ac_try='test -s conftest.$ac_objext'
7774 { (eval echo "$as_me:7774: \"$ac_try\"") >&5
7777 echo "$as_me:7777: \$? = $ac_status" >&5
7778 (exit $ac_status); }; }; then
7780 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
7782 echo "${as_me-configure}:7782: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
7784 cf_cv_find_linkage_utf8=maybe
7785 cf_test_CPPFLAGS="$CPPFLAGS"
7788 echo "$as_me: failed program was:" >&5
7789 cat conftest.$ac_ext >&5
7791 CPPFLAGS="$cf_save_CPPFLAGS"
7794 rm -f conftest.$ac_objext conftest.$ac_ext
7798 if test "$cf_cv_find_linkage_utf8" = maybe ; then
7800 echo "${as_me-configure}:7800: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
7802 cf_save_LIBS="$LIBS"
7803 cf_save_LDFLAGS="$LDFLAGS"
7805 if test "$cf_cv_find_linkage_utf8" != yes ; then
7807 cf_library_path_list=""
7808 if test -n "${LDFLAGS}${LIBS}" ; then
7809 for cf_library_path in $LDFLAGS $LIBS
7811 case $cf_library_path in #(vi
7813 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
7815 test "$cf_library_path" != "NONE" && \
7816 test -d "$cf_library_path" && \
7818 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
7819 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
7820 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
7821 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
7822 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
7823 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
7826 cf_library_path_list="$cf_library_path_list $cf_search"
7834 test "/usr" != "$prefix" && \
7836 (test $prefix = NONE || test -d $prefix) && {
7837 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
7838 test -d /usr/lib && cf_search="$cf_search /usr/lib"
7839 test -d /usr/lib/utf8 && cf_search="$cf_search /usr/lib/utf8"
7840 test -d /usr/lib/utf8/lib && cf_search="$cf_search /usr/lib/utf8/lib"
7841 test -d /usr/utf8/lib && cf_search="$cf_search /usr/utf8/lib"
7842 test -d /usr/utf8/lib/utf8 && cf_search="$cf_search /usr/utf8/lib/utf8"
7845 test "$prefix" != "NONE" && \
7846 test -d "$prefix" && \
7848 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
7849 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
7850 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
7851 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
7852 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
7853 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
7856 test "/usr/local" != "$prefix" && \
7857 test -d "/usr/local" && \
7858 (test $prefix = NONE || test -d $prefix) && {
7859 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
7860 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
7861 test -d /usr/local/lib/utf8 && cf_search="$cf_search /usr/local/lib/utf8"
7862 test -d /usr/local/lib/utf8/lib && cf_search="$cf_search /usr/local/lib/utf8/lib"
7863 test -d /usr/local/utf8/lib && cf_search="$cf_search /usr/local/utf8/lib"
7864 test -d /usr/local/utf8/lib/utf8 && cf_search="$cf_search /usr/local/utf8/lib/utf8"
7867 test "/opt" != "$prefix" && \
7869 (test $prefix = NONE || test -d $prefix) && {
7870 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
7871 test -d /opt/lib && cf_search="$cf_search /opt/lib"
7872 test -d /opt/lib/utf8 && cf_search="$cf_search /opt/lib/utf8"
7873 test -d /opt/lib/utf8/lib && cf_search="$cf_search /opt/lib/utf8/lib"
7874 test -d /opt/utf8/lib && cf_search="$cf_search /opt/utf8/lib"
7875 test -d /opt/utf8/lib/utf8 && cf_search="$cf_search /opt/utf8/lib/utf8"
7878 test "$HOME" != "$prefix" && \
7879 test -d "$HOME" && \
7880 (test $prefix = NONE || test -d $prefix) && {
7881 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
7882 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
7883 test -d $HOME/lib/utf8 && cf_search="$cf_search $HOME/lib/utf8"
7884 test -d $HOME/lib/utf8/lib && cf_search="$cf_search $HOME/lib/utf8/lib"
7885 test -d $HOME/utf8/lib && cf_search="$cf_search $HOME/utf8/lib"
7886 test -d $HOME/utf8/lib/utf8 && cf_search="$cf_search $HOME/utf8/lib/utf8"
7889 cf_search="$cf_library_path_list $cf_search"
7891 for cf_cv_library_path_utf8 in $cf_search
7893 if test -d $cf_cv_library_path_utf8 ; then
7894 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
7896 echo "${as_me-configure}:7896: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
7898 CPPFLAGS="$cf_test_CPPFLAGS"
7899 LIBS="-lutf8 $cf_save_LIBS"
7900 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
7901 cat >conftest.$ac_ext <<_ACEOF
7902 #line 7902 "configure"
7903 #include "confdefs.h"
7905 #include <libutf8.h>
7914 rm -f conftest.$ac_objext conftest$ac_exeext
7915 if { (eval echo "$as_me:7915: \"$ac_link\"") >&5
7916 (eval $ac_link) 2>&5
7918 echo "$as_me:7918: \$? = $ac_status" >&5
7919 (exit $ac_status); } &&
7920 { ac_try='test -s conftest$ac_exeext'
7921 { (eval echo "$as_me:7921: \"$ac_try\"") >&5
7924 echo "$as_me:7924: \$? = $ac_status" >&5
7925 (exit $ac_status); }; }; then
7927 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
7929 echo "${as_me-configure}:7929: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
7931 cf_cv_find_linkage_utf8=yes
7932 cf_cv_library_file_utf8="-lutf8"
7935 echo "$as_me: failed program was:" >&5
7936 cat conftest.$ac_ext >&5
7938 CPPFLAGS="$cf_save_CPPFLAGS"
7939 LIBS="$cf_save_LIBS"
7940 LDFLAGS="$cf_save_LDFLAGS"
7943 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7946 LIBS="$cf_save_LIBS"
7947 CPPFLAGS="$cf_save_CPPFLAGS"
7948 LDFLAGS="$cf_save_LDFLAGS"
7952 cf_cv_find_linkage_utf8=no
7956 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7959 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7961 if test "$cf_cv_find_linkage_utf8" = yes ; then
7962 cf_cv_utf8_lib=add-on
7968 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7970 echo "$as_me:7970: result: $cf_cv_utf8_lib" >&5
7971 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
7973 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
7975 if test "$cf_cv_utf8_lib" = "add-on" ; then
7976 cat >>confdefs.h <<\EOF
7977 #define HAVE_LIBUTF8_H 1
7980 if test -n "$cf_cv_header_path_utf8" ; then
7981 for cf_add_incdir in $cf_cv_header_path_utf8
7983 while test $cf_add_incdir != /usr/include
7985 if test -d $cf_add_incdir
7988 if test -n "$CFLAGS$CPPFLAGS" ; then
7989 # a loop is needed to ensure we can add subdirs of existing dirs
7990 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
7991 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7992 cf_have_incdir=yes; break
7997 if test "$cf_have_incdir" = no ; then
7998 if test "$cf_add_incdir" = /usr/local/include ; then
7999 if test "$GCC" = yes
8001 cf_save_CPPFLAGS=$CPPFLAGS
8002 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8003 cat >conftest.$ac_ext <<_ACEOF
8004 #line 8004 "configure"
8005 #include "confdefs.h"
8015 rm -f conftest.$ac_objext
8016 if { (eval echo "$as_me:8016: \"$ac_compile\"") >&5
8017 (eval $ac_compile) 2>&5
8019 echo "$as_me:8019: \$? = $ac_status" >&5
8020 (exit $ac_status); } &&
8021 { ac_try='test -s conftest.$ac_objext'
8022 { (eval echo "$as_me:8022: \"$ac_try\"") >&5
8025 echo "$as_me:8025: \$? = $ac_status" >&5
8026 (exit $ac_status); }; }; then
8029 echo "$as_me: failed program was:" >&5
8030 cat conftest.$ac_ext >&5
8033 rm -f conftest.$ac_objext conftest.$ac_ext
8034 CPPFLAGS=$cf_save_CPPFLAGS
8039 if test "$cf_have_incdir" = no ; then
8040 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8042 echo "${as_me-configure}:8042: testing adding $cf_add_incdir to include-path ..." 1>&5
8044 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8046 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8047 test "$cf_top_incdir" = "$cf_add_incdir" && break
8048 cf_add_incdir="$cf_top_incdir"
8057 if test -n "$cf_cv_library_path_utf8" ; then
8058 for cf_add_libdir in $cf_cv_library_path_utf8
8060 if test $cf_add_libdir = /usr/lib ; then
8062 elif test -d $cf_add_libdir
8065 if test -n "$LDFLAGS$LIBS" ; then
8066 # a loop is needed to ensure we can add subdirs of existing dirs
8067 for cf_test_libdir in $LDFLAGS $LIBS ; do
8068 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
8069 cf_have_libdir=yes; break
8073 if test "$cf_have_libdir" = no ; then
8074 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
8076 echo "${as_me-configure}:8076: testing adding $cf_add_libdir to library-path ..." 1>&5
8078 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
8087 if test "$cf_cv_utf8_lib" != no ; then
8092 # This is needed on Tru64 5.0 to declare mbstate_t
8093 echo "$as_me:8093: checking if we must include wchar.h to declare mbstate_t" >&5
8094 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
8095 if test "${cf_cv_mbstate_t+set}" = set; then
8096 echo $ECHO_N "(cached) $ECHO_C" >&6
8099 cat >conftest.$ac_ext <<_ACEOF
8100 #line 8100 "configure"
8101 #include "confdefs.h"
8106 #ifdef HAVE_LIBUTF8_H
8107 #include <libutf8.h>
8117 rm -f conftest.$ac_objext
8118 if { (eval echo "$as_me:8118: \"$ac_compile\"") >&5
8119 (eval $ac_compile) 2>&5
8121 echo "$as_me:8121: \$? = $ac_status" >&5
8122 (exit $ac_status); } &&
8123 { ac_try='test -s conftest.$ac_objext'
8124 { (eval echo "$as_me:8124: \"$ac_try\"") >&5
8127 echo "$as_me:8127: \$? = $ac_status" >&5
8128 (exit $ac_status); }; }; then
8131 echo "$as_me: failed program was:" >&5
8132 cat conftest.$ac_ext >&5
8133 cat >conftest.$ac_ext <<_ACEOF
8134 #line 8134 "configure"
8135 #include "confdefs.h"
8141 #ifdef HAVE_LIBUTF8_H
8142 #include <libutf8.h>
8152 rm -f conftest.$ac_objext
8153 if { (eval echo "$as_me:8153: \"$ac_compile\"") >&5
8154 (eval $ac_compile) 2>&5
8156 echo "$as_me:8156: \$? = $ac_status" >&5
8157 (exit $ac_status); } &&
8158 { ac_try='test -s conftest.$ac_objext'
8159 { (eval echo "$as_me:8159: \"$ac_try\"") >&5
8162 echo "$as_me:8162: \$? = $ac_status" >&5
8163 (exit $ac_status); }; }; then
8166 echo "$as_me: failed program was:" >&5
8167 cat conftest.$ac_ext >&5
8168 cf_cv_mbstate_t=unknown
8170 rm -f conftest.$ac_objext conftest.$ac_ext
8172 rm -f conftest.$ac_objext conftest.$ac_ext
8174 echo "$as_me:8174: result: $cf_cv_mbstate_t" >&5
8175 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
8177 if test "$cf_cv_mbstate_t" = yes ; then
8178 cat >>confdefs.h <<\EOF
8179 #define NEED_WCHAR_H 1
8185 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
8186 if test "$cf_cv_mbstate_t" = unknown ; then
8190 # This is needed on Tru64 5.0 to declare wchar_t
8191 echo "$as_me:8191: checking if we must include wchar.h to declare wchar_t" >&5
8192 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
8193 if test "${cf_cv_wchar_t+set}" = set; then
8194 echo $ECHO_N "(cached) $ECHO_C" >&6
8197 cat >conftest.$ac_ext <<_ACEOF
8198 #line 8198 "configure"
8199 #include "confdefs.h"
8204 #ifdef HAVE_LIBUTF8_H
8205 #include <libutf8.h>
8215 rm -f conftest.$ac_objext
8216 if { (eval echo "$as_me:8216: \"$ac_compile\"") >&5
8217 (eval $ac_compile) 2>&5
8219 echo "$as_me:8219: \$? = $ac_status" >&5
8220 (exit $ac_status); } &&
8221 { ac_try='test -s conftest.$ac_objext'
8222 { (eval echo "$as_me:8222: \"$ac_try\"") >&5
8225 echo "$as_me:8225: \$? = $ac_status" >&5
8226 (exit $ac_status); }; }; then
8229 echo "$as_me: failed program was:" >&5
8230 cat conftest.$ac_ext >&5
8231 cat >conftest.$ac_ext <<_ACEOF
8232 #line 8232 "configure"
8233 #include "confdefs.h"
8239 #ifdef HAVE_LIBUTF8_H
8240 #include <libutf8.h>
8250 rm -f conftest.$ac_objext
8251 if { (eval echo "$as_me:8251: \"$ac_compile\"") >&5
8252 (eval $ac_compile) 2>&5
8254 echo "$as_me:8254: \$? = $ac_status" >&5
8255 (exit $ac_status); } &&
8256 { ac_try='test -s conftest.$ac_objext'
8257 { (eval echo "$as_me:8257: \"$ac_try\"") >&5
8260 echo "$as_me:8260: \$? = $ac_status" >&5
8261 (exit $ac_status); }; }; then
8264 echo "$as_me: failed program was:" >&5
8265 cat conftest.$ac_ext >&5
8266 cf_cv_wchar_t=unknown
8268 rm -f conftest.$ac_objext conftest.$ac_ext
8270 rm -f conftest.$ac_objext conftest.$ac_ext
8272 echo "$as_me:8272: result: $cf_cv_wchar_t" >&5
8273 echo "${ECHO_T}$cf_cv_wchar_t" >&6
8275 if test "$cf_cv_wchar_t" = yes ; then
8276 cat >>confdefs.h <<\EOF
8277 #define NEED_WCHAR_H 1
8283 # if we do not find wchar_t in either place, use substitution to provide a fallback.
8284 if test "$cf_cv_wchar_t" = unknown ; then
8288 # if we find wchar_t in either place, use substitution to provide a fallback.
8289 if test "$cf_cv_wchar_t" != unknown ; then
8290 NCURSES_OK_WCHAR_T=1
8293 # This is needed on Tru64 5.0 to declare wint_t
8294 echo "$as_me:8294: checking if we must include wchar.h to declare wint_t" >&5
8295 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
8296 if test "${cf_cv_wint_t+set}" = set; then
8297 echo $ECHO_N "(cached) $ECHO_C" >&6
8300 cat >conftest.$ac_ext <<_ACEOF
8301 #line 8301 "configure"
8302 #include "confdefs.h"
8307 #ifdef HAVE_LIBUTF8_H
8308 #include <libutf8.h>
8318 rm -f conftest.$ac_objext
8319 if { (eval echo "$as_me:8319: \"$ac_compile\"") >&5
8320 (eval $ac_compile) 2>&5
8322 echo "$as_me:8322: \$? = $ac_status" >&5
8323 (exit $ac_status); } &&
8324 { ac_try='test -s conftest.$ac_objext'
8325 { (eval echo "$as_me:8325: \"$ac_try\"") >&5
8328 echo "$as_me:8328: \$? = $ac_status" >&5
8329 (exit $ac_status); }; }; then
8332 echo "$as_me: failed program was:" >&5
8333 cat conftest.$ac_ext >&5
8334 cat >conftest.$ac_ext <<_ACEOF
8335 #line 8335 "configure"
8336 #include "confdefs.h"
8342 #ifdef HAVE_LIBUTF8_H
8343 #include <libutf8.h>
8353 rm -f conftest.$ac_objext
8354 if { (eval echo "$as_me:8354: \"$ac_compile\"") >&5
8355 (eval $ac_compile) 2>&5
8357 echo "$as_me:8357: \$? = $ac_status" >&5
8358 (exit $ac_status); } &&
8359 { ac_try='test -s conftest.$ac_objext'
8360 { (eval echo "$as_me:8360: \"$ac_try\"") >&5
8363 echo "$as_me:8363: \$? = $ac_status" >&5
8364 (exit $ac_status); }; }; then
8367 echo "$as_me: failed program was:" >&5
8368 cat conftest.$ac_ext >&5
8369 cf_cv_wint_t=unknown
8371 rm -f conftest.$ac_objext conftest.$ac_ext
8373 rm -f conftest.$ac_objext conftest.$ac_ext
8375 echo "$as_me:8375: result: $cf_cv_wint_t" >&5
8376 echo "${ECHO_T}$cf_cv_wint_t" >&6
8378 if test "$cf_cv_wint_t" = yes ; then
8379 cat >>confdefs.h <<\EOF
8380 #define NEED_WCHAR_H 1
8386 # if we do not find wint_t in either place, use substitution to provide a fallback.
8387 if test "$cf_cv_wint_t" = unknown ; then
8391 # if we find wint_t in either place, use substitution to provide a fallback.
8392 if test "$cf_cv_wint_t" != unknown ; then
8396 if test "$NCURSES_MBSTATE_T" != 0; then
8397 cat >>confdefs.h <<\EOF
8398 #define NEED_MBSTATE_T_DEF 1
8404 ### use option --disable-lp64 to allow long chtype
8405 case $cf_cv_abi_version in
8407 default_with_lp64=no
8410 default_with_lp64=yes
8414 echo "$as_me:8414: checking whether to enable _LP64 definition in curses.h" >&5
8415 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
8417 # Check whether --enable-lp64 or --disable-lp64 was given.
8418 if test "${enable_lp64+set}" = set; then
8419 enableval="$enable_lp64"
8420 with_lp64=$enableval
8422 with_lp64=$default_with_lp64
8424 echo "$as_me:8424: result: $with_lp64" >&5
8425 echo "${ECHO_T}$with_lp64" >&6
8427 if test "$with_lp64" = yes ; then
8433 # Check whether --enable-largefile or --disable-largefile was given.
8434 if test "${enable_largefile+set}" = set; then
8435 enableval="$enable_largefile"
8438 if test "$enable_largefile" != no; then
8440 echo "$as_me:8440: checking for special C compiler options needed for large files" >&5
8441 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
8442 if test "${ac_cv_sys_largefile_CC+set}" = set; then
8443 echo $ECHO_N "(cached) $ECHO_C" >&6
8445 ac_cv_sys_largefile_CC=no
8446 if test "$GCC" != yes; then
8449 # IRIX 6.2 and later do not support large files by default,
8450 # so use the C compiler's -n32 option if that helps.
8451 cat >conftest.$ac_ext <<_ACEOF
8452 #line 8452 "configure"
8453 #include "confdefs.h"
8454 #include <sys/types.h>
8455 /* Check that off_t can represent 2**63 - 1 correctly.
8456 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8457 since some C++ compilers masquerading as C compilers
8458 incorrectly reject 9223372036854775807. */
8459 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8460 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8461 && LARGE_OFF_T % 2147483647 == 1)
8471 rm -f conftest.$ac_objext
8472 if { (eval echo "$as_me:8472: \"$ac_compile\"") >&5
8473 (eval $ac_compile) 2>&5
8475 echo "$as_me:8475: \$? = $ac_status" >&5
8476 (exit $ac_status); } &&
8477 { ac_try='test -s conftest.$ac_objext'
8478 { (eval echo "$as_me:8478: \"$ac_try\"") >&5
8481 echo "$as_me:8481: \$? = $ac_status" >&5
8482 (exit $ac_status); }; }; then
8485 echo "$as_me: failed program was:" >&5
8486 cat conftest.$ac_ext >&5
8488 rm -f conftest.$ac_objext
8490 rm -f conftest.$ac_objext
8491 if { (eval echo "$as_me:8491: \"$ac_compile\"") >&5
8492 (eval $ac_compile) 2>&5
8494 echo "$as_me:8494: \$? = $ac_status" >&5
8495 (exit $ac_status); } &&
8496 { ac_try='test -s conftest.$ac_objext'
8497 { (eval echo "$as_me:8497: \"$ac_try\"") >&5
8500 echo "$as_me:8500: \$? = $ac_status" >&5
8501 (exit $ac_status); }; }; then
8502 ac_cv_sys_largefile_CC=' -n32'; break
8504 echo "$as_me: failed program was:" >&5
8505 cat conftest.$ac_ext >&5
8507 rm -f conftest.$ac_objext
8511 rm -f conftest.$ac_ext
8514 echo "$as_me:8514: result: $ac_cv_sys_largefile_CC" >&5
8515 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
8516 if test "$ac_cv_sys_largefile_CC" != no; then
8517 CC=$CC$ac_cv_sys_largefile_CC
8520 echo "$as_me:8520: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8521 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
8522 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8523 echo $ECHO_N "(cached) $ECHO_C" >&6
8526 ac_cv_sys_file_offset_bits=no
8527 cat >conftest.$ac_ext <<_ACEOF
8528 #line 8528 "configure"
8529 #include "confdefs.h"
8530 #include <sys/types.h>
8531 /* Check that off_t can represent 2**63 - 1 correctly.
8532 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8533 since some C++ compilers masquerading as C compilers
8534 incorrectly reject 9223372036854775807. */
8535 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8536 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8537 && LARGE_OFF_T % 2147483647 == 1)
8547 rm -f conftest.$ac_objext
8548 if { (eval echo "$as_me:8548: \"$ac_compile\"") >&5
8549 (eval $ac_compile) 2>&5
8551 echo "$as_me:8551: \$? = $ac_status" >&5
8552 (exit $ac_status); } &&
8553 { ac_try='test -s conftest.$ac_objext'
8554 { (eval echo "$as_me:8554: \"$ac_try\"") >&5
8557 echo "$as_me:8557: \$? = $ac_status" >&5
8558 (exit $ac_status); }; }; then
8561 echo "$as_me: failed program was:" >&5
8562 cat conftest.$ac_ext >&5
8564 rm -f conftest.$ac_objext conftest.$ac_ext
8565 cat >conftest.$ac_ext <<_ACEOF
8566 #line 8566 "configure"
8567 #include "confdefs.h"
8568 #define _FILE_OFFSET_BITS 64
8569 #include <sys/types.h>
8570 /* Check that off_t can represent 2**63 - 1 correctly.
8571 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8572 since some C++ compilers masquerading as C compilers
8573 incorrectly reject 9223372036854775807. */
8574 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8575 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8576 && LARGE_OFF_T % 2147483647 == 1)
8586 rm -f conftest.$ac_objext
8587 if { (eval echo "$as_me:8587: \"$ac_compile\"") >&5
8588 (eval $ac_compile) 2>&5
8590 echo "$as_me:8590: \$? = $ac_status" >&5
8591 (exit $ac_status); } &&
8592 { ac_try='test -s conftest.$ac_objext'
8593 { (eval echo "$as_me:8593: \"$ac_try\"") >&5
8596 echo "$as_me:8596: \$? = $ac_status" >&5
8597 (exit $ac_status); }; }; then
8598 ac_cv_sys_file_offset_bits=64; break
8600 echo "$as_me: failed program was:" >&5
8601 cat conftest.$ac_ext >&5
8603 rm -f conftest.$ac_objext conftest.$ac_ext
8607 echo "$as_me:8607: result: $ac_cv_sys_file_offset_bits" >&5
8608 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
8609 if test "$ac_cv_sys_file_offset_bits" != no; then
8611 cat >>confdefs.h <<EOF
8612 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8617 echo "$as_me:8617: checking for _LARGE_FILES value needed for large files" >&5
8618 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
8619 if test "${ac_cv_sys_large_files+set}" = set; then
8620 echo $ECHO_N "(cached) $ECHO_C" >&6
8623 ac_cv_sys_large_files=no
8624 cat >conftest.$ac_ext <<_ACEOF
8625 #line 8625 "configure"
8626 #include "confdefs.h"
8627 #include <sys/types.h>
8628 /* Check that off_t can represent 2**63 - 1 correctly.
8629 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8630 since some C++ compilers masquerading as C compilers
8631 incorrectly reject 9223372036854775807. */
8632 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8633 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8634 && LARGE_OFF_T % 2147483647 == 1)
8644 rm -f conftest.$ac_objext
8645 if { (eval echo "$as_me:8645: \"$ac_compile\"") >&5
8646 (eval $ac_compile) 2>&5
8648 echo "$as_me:8648: \$? = $ac_status" >&5
8649 (exit $ac_status); } &&
8650 { ac_try='test -s conftest.$ac_objext'
8651 { (eval echo "$as_me:8651: \"$ac_try\"") >&5
8654 echo "$as_me:8654: \$? = $ac_status" >&5
8655 (exit $ac_status); }; }; then
8658 echo "$as_me: failed program was:" >&5
8659 cat conftest.$ac_ext >&5
8661 rm -f conftest.$ac_objext conftest.$ac_ext
8662 cat >conftest.$ac_ext <<_ACEOF
8663 #line 8663 "configure"
8664 #include "confdefs.h"
8665 #define _LARGE_FILES 1
8666 #include <sys/types.h>
8667 /* Check that off_t can represent 2**63 - 1 correctly.
8668 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8669 since some C++ compilers masquerading as C compilers
8670 incorrectly reject 9223372036854775807. */
8671 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8672 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8673 && LARGE_OFF_T % 2147483647 == 1)
8683 rm -f conftest.$ac_objext
8684 if { (eval echo "$as_me:8684: \"$ac_compile\"") >&5
8685 (eval $ac_compile) 2>&5
8687 echo "$as_me:8687: \$? = $ac_status" >&5
8688 (exit $ac_status); } &&
8689 { ac_try='test -s conftest.$ac_objext'
8690 { (eval echo "$as_me:8690: \"$ac_try\"") >&5
8693 echo "$as_me:8693: \$? = $ac_status" >&5
8694 (exit $ac_status); }; }; then
8695 ac_cv_sys_large_files=1; break
8697 echo "$as_me: failed program was:" >&5
8698 cat conftest.$ac_ext >&5
8700 rm -f conftest.$ac_objext conftest.$ac_ext
8704 echo "$as_me:8704: result: $ac_cv_sys_large_files" >&5
8705 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
8706 if test "$ac_cv_sys_large_files" != no; then
8708 cat >>confdefs.h <<EOF
8709 #define _LARGE_FILES $ac_cv_sys_large_files
8716 if test "$enable_largefile" != no ; then
8717 echo "$as_me:8717: checking for _LARGEFILE_SOURCE value needed for large files" >&5
8718 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
8719 if test "${ac_cv_sys_largefile_source+set}" = set; then
8720 echo $ECHO_N "(cached) $ECHO_C" >&6
8723 ac_cv_sys_largefile_source=no
8724 cat >conftest.$ac_ext <<_ACEOF
8725 #line 8725 "configure"
8726 #include "confdefs.h"
8736 rm -f conftest.$ac_objext
8737 if { (eval echo "$as_me:8737: \"$ac_compile\"") >&5
8738 (eval $ac_compile) 2>&5
8740 echo "$as_me:8740: \$? = $ac_status" >&5
8741 (exit $ac_status); } &&
8742 { ac_try='test -s conftest.$ac_objext'
8743 { (eval echo "$as_me:8743: \"$ac_try\"") >&5
8746 echo "$as_me:8746: \$? = $ac_status" >&5
8747 (exit $ac_status); }; }; then
8750 echo "$as_me: failed program was:" >&5
8751 cat conftest.$ac_ext >&5
8753 rm -f conftest.$ac_objext conftest.$ac_ext
8754 cat >conftest.$ac_ext <<_ACEOF
8755 #line 8755 "configure"
8756 #include "confdefs.h"
8757 #define _LARGEFILE_SOURCE 1
8767 rm -f conftest.$ac_objext
8768 if { (eval echo "$as_me:8768: \"$ac_compile\"") >&5
8769 (eval $ac_compile) 2>&5
8771 echo "$as_me:8771: \$? = $ac_status" >&5
8772 (exit $ac_status); } &&
8773 { ac_try='test -s conftest.$ac_objext'
8774 { (eval echo "$as_me:8774: \"$ac_try\"") >&5
8777 echo "$as_me:8777: \$? = $ac_status" >&5
8778 (exit $ac_status); }; }; then
8779 ac_cv_sys_largefile_source=1; break
8781 echo "$as_me: failed program was:" >&5
8782 cat conftest.$ac_ext >&5
8784 rm -f conftest.$ac_objext conftest.$ac_ext
8788 echo "$as_me:8788: result: $ac_cv_sys_largefile_source" >&5
8789 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
8790 if test "$ac_cv_sys_largefile_source" != no; then
8792 cat >>confdefs.h <<EOF
8793 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8799 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
8800 # in glibc 2.1.3, but that breaks too many other things.
8801 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
8802 echo "$as_me:8802: checking for fseeko" >&5
8803 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
8804 if test "${ac_cv_func_fseeko+set}" = set; then
8805 echo $ECHO_N "(cached) $ECHO_C" >&6
8807 cat >conftest.$ac_ext <<_ACEOF
8808 #line 8808 "configure"
8809 #include "confdefs.h"
8814 return fseeko && fseeko (stdin, 0, 0);
8819 rm -f conftest.$ac_objext conftest$ac_exeext
8820 if { (eval echo "$as_me:8820: \"$ac_link\"") >&5
8821 (eval $ac_link) 2>&5
8823 echo "$as_me:8823: \$? = $ac_status" >&5
8824 (exit $ac_status); } &&
8825 { ac_try='test -s conftest$ac_exeext'
8826 { (eval echo "$as_me:8826: \"$ac_try\"") >&5
8829 echo "$as_me:8829: \$? = $ac_status" >&5
8830 (exit $ac_status); }; }; then
8831 ac_cv_func_fseeko=yes
8833 echo "$as_me: failed program was:" >&5
8834 cat conftest.$ac_ext >&5
8835 ac_cv_func_fseeko=no
8837 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8839 echo "$as_me:8839: result: $ac_cv_func_fseeko" >&5
8840 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
8841 if test $ac_cv_func_fseeko = yes; then
8843 cat >>confdefs.h <<\EOF
8844 #define HAVE_FSEEKO 1
8849 # Normally we would collect these definitions in the config.h,
8850 # but (like _XOPEN_SOURCE), some environments rely on having these
8851 # defined before any of the system headers are included. Another
8852 # case comes up with C++, e.g., on AIX the compiler compiles the
8853 # header files by themselves before looking at the body files it is
8854 # told to compile. For ncurses, those header files do not include
8856 test "$ac_cv_sys_large_files" != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
8857 test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE "
8858 test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits "
8860 echo "$as_me:8860: checking whether to use struct dirent64" >&5
8861 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
8862 if test "${cf_cv_struct_dirent64+set}" = set; then
8863 echo $ECHO_N "(cached) $ECHO_C" >&6
8866 cat >conftest.$ac_ext <<_ACEOF
8867 #line 8867 "configure"
8868 #include "confdefs.h"
8870 #include <sys/types.h>
8877 /* if transitional largefile support is setup, this is true */
8878 extern struct dirent64 * readdir(DIR *);
8879 struct dirent64 *x = readdir((DIR *)0);
8880 struct dirent *y = readdir((DIR *)0);
8887 rm -f conftest.$ac_objext
8888 if { (eval echo "$as_me:8888: \"$ac_compile\"") >&5
8889 (eval $ac_compile) 2>&5
8891 echo "$as_me:8891: \$? = $ac_status" >&5
8892 (exit $ac_status); } &&
8893 { ac_try='test -s conftest.$ac_objext'
8894 { (eval echo "$as_me:8894: \"$ac_try\"") >&5
8897 echo "$as_me:8897: \$? = $ac_status" >&5
8898 (exit $ac_status); }; }; then
8899 cf_cv_struct_dirent64=yes
8901 echo "$as_me: failed program was:" >&5
8902 cat conftest.$ac_ext >&5
8903 cf_cv_struct_dirent64=no
8905 rm -f conftest.$ac_objext conftest.$ac_ext
8908 echo "$as_me:8908: result: $cf_cv_struct_dirent64" >&5
8909 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
8910 test "$cf_cv_struct_dirent64" = yes && cat >>confdefs.h <<\EOF
8911 #define HAVE_STRUCT_DIRENT64 1
8916 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
8917 echo "$as_me:8917: checking if you want tparm not to use X/Open fixed-parameter list" >&5
8918 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
8920 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
8921 if test "${enable_tparm_varargs+set}" = set; then
8922 enableval="$enable_tparm_varargs"
8923 with_tparm_varargs=$enableval
8925 with_tparm_varargs=yes
8927 echo "$as_me:8927: result: $with_tparm_varargs" >&5
8928 echo "${ECHO_T}$with_tparm_varargs" >&6
8929 NCURSES_TPARM_VARARGS=0
8930 test "$with_tparm_varargs" = yes && NCURSES_TPARM_VARARGS=1
8932 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
8933 if test "$with_ticlib" != no ; then
8934 echo "$as_me:8934: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
8935 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
8937 # Check whether --enable-tic-depends or --disable-tic-depends was given.
8938 if test "${enable_tic_depends+set}" = set; then
8939 enableval="$enable_tic_depends"
8940 with_tic_depends=$enableval
8942 with_tic_depends=yes
8944 echo "$as_me:8944: result: $with_tic_depends" >&5
8945 echo "${ECHO_T}$with_tic_depends" >&6
8950 ### use option --with-bool to override bool's type
8951 echo "$as_me:8951: checking for type of bool" >&5
8952 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
8954 # Check whether --with-bool or --without-bool was given.
8955 if test "${with_bool+set}" = set; then
8956 withval="$with_bool"
8957 NCURSES_BOOL="$withval"
8961 echo "$as_me:8961: result: $NCURSES_BOOL" >&5
8962 echo "${ECHO_T}$NCURSES_BOOL" >&6
8964 echo "$as_me:8964: checking for alternate terminal capabilities file" >&5
8965 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
8967 # Check whether --with-caps or --without-caps was given.
8968 if test "${with_caps+set}" = set; then
8969 withval="$with_caps"
8970 TERMINFO_CAPS=Caps.$withval
8974 test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
8975 echo "$as_me:8975: result: $TERMINFO_CAPS" >&5
8976 echo "${ECHO_T}$TERMINFO_CAPS" >&6
8978 ### use option --with-chtype to override chtype's type
8979 echo "$as_me:8979: checking for type of chtype" >&5
8980 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
8982 # Check whether --with-chtype or --without-chtype was given.
8983 if test "${with_chtype+set}" = set; then
8984 withval="$with_chtype"
8985 NCURSES_CHTYPE="$withval"
8989 echo "$as_me:8989: result: $NCURSES_CHTYPE" >&5
8990 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
8992 ### use option --with-ospeed to override ospeed's type
8993 echo "$as_me:8993: checking for type of ospeed" >&5
8994 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
8996 # Check whether --with-ospeed or --without-ospeed was given.
8997 if test "${with_ospeed+set}" = set; then
8998 withval="$with_ospeed"
8999 NCURSES_OSPEED="$withval"
9001 NCURSES_OSPEED=short
9003 echo "$as_me:9003: result: $NCURSES_OSPEED" >&5
9004 echo "${ECHO_T}$NCURSES_OSPEED" >&6
9006 ### use option --with-mmask-t to override mmask_t's type
9007 echo "$as_me:9007: checking for type of mmask_t" >&5
9008 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
9010 # Check whether --with-mmask-t or --without-mmask-t was given.
9011 if test "${with_mmask_t+set}" = set; then
9012 withval="$with_mmask_t"
9013 NCURSES_MMASK_T="$withval"
9015 NCURSES_MMASK_T=auto
9017 echo "$as_me:9017: result: $NCURSES_MMASK_T" >&5
9018 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
9020 ### use option --with-ccharw-max to override CCHARW_MAX size
9021 echo "$as_me:9021: checking for size CCHARW_MAX" >&5
9022 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
9024 # Check whether --with-ccharw-max or --without-ccharw-max was given.
9025 if test "${with_ccharw_max+set}" = set; then
9026 withval="$with_ccharw_max"
9027 NCURSES_CCHARW_MAX="$withval"
9029 NCURSES_CCHARW_MAX=5
9031 echo "$as_me:9031: result: $NCURSES_CCHARW_MAX" >&5
9032 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
9034 ### Enable compiling-in rcs id's
9035 echo "$as_me:9035: checking if RCS identifiers should be compiled-in" >&5
9036 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
9038 # Check whether --with-rcs-ids or --without-rcs-ids was given.
9039 if test "${with_rcs_ids+set}" = set; then
9040 withval="$with_rcs_ids"
9041 with_rcs_ids=$withval
9045 echo "$as_me:9045: result: $with_rcs_ids" >&5
9046 echo "${ECHO_T}$with_rcs_ids" >&6
9047 test "$with_rcs_ids" = yes && cat >>confdefs.h <<\EOF
9048 #define USE_RCS_IDS 1
9051 ###############################################################################
9053 echo "$as_me:9053: checking format of man-pages" >&5
9054 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
9056 # Check whether --with-manpage-format or --without-manpage-format was given.
9057 if test "${with_manpage_format+set}" = set; then
9058 withval="$with_manpage_format"
9059 MANPAGE_FORMAT=$withval
9061 MANPAGE_FORMAT=unknown
9064 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
9065 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
9069 case $MANPAGE_FORMAT in
9071 if test -z "$MANPATH" ; then
9072 MANPATH="/usr/man:/usr/share/man"
9075 # look for the 'date' man-page (it's most likely to be installed!)
9081 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
9082 for cf_dir in $MANPATH; do
9083 test -z "$cf_dir" && cf_dir=/usr/man
9084 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
9086 cf_test=`echo $cf_name | sed -e 's/*//'`
9087 if test "x$cf_test" = "x$cf_name" ; then
9090 *.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
9091 *.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
9092 *.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
9093 *) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
9107 # if we found a match in either man* or cat*, stop looking
9108 if test -n "$MANPAGE_FORMAT" ; then
9110 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
9111 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
9117 test $cf_found=yes && break
9120 # only check the first directory in $MANPATH where we find manpages
9121 if test -n "$MANPAGE_FORMAT" ; then
9125 # if we did not find the example, just assume it is normal
9126 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
9130 for cf_option in $MANPAGE_FORMAT; do
9131 case $cf_option in #(vi
9132 gzip|compress|BSDI|normal|formatted|catonly)
9135 cf_unknown="$cf_unknown $cf_option"
9142 echo "$as_me:9142: result: $MANPAGE_FORMAT" >&5
9143 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
9144 if test -n "$cf_unknown" ; then
9145 { echo "$as_me:9145: WARNING: Unexpected manpage-format $cf_unknown" >&5
9146 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
9149 echo "$as_me:9149: checking for manpage renaming" >&5
9150 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
9152 # Check whether --with-manpage-renames or --without-manpage-renames was given.
9153 if test "${with_manpage_renames+set}" = set; then
9154 withval="$with_manpage_renames"
9155 MANPAGE_RENAMES=$withval
9160 case ".$MANPAGE_RENAMES" in #(vi
9164 # Debian 'man' program?
9165 if test -f /etc/debian_version ; then
9166 MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
9173 if test "$MANPAGE_RENAMES" != no ; then
9174 if test -f $srcdir/man/$MANPAGE_RENAMES ; then
9175 MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
9176 elif test ! -f $MANPAGE_RENAMES ; then
9177 { { echo "$as_me:9177: error: not a filename: $MANPAGE_RENAMES" >&5
9178 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
9179 { (exit 1); exit 1; }; }
9182 test ! -d man && mkdir man
9184 # Construct a sed-script to perform renaming within man-pages
9185 if test -n "$MANPAGE_RENAMES" ; then
9186 test ! -d man && mkdir man
9187 sh $srcdir/man/make_sed.sh $MANPAGE_RENAMES >./edit_man.sed
9191 echo "$as_me:9191: result: $MANPAGE_RENAMES" >&5
9192 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
9194 echo "$as_me:9194: checking if manpage aliases will be installed" >&5
9195 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
9197 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
9198 if test "${with_manpage_aliases+set}" = set; then
9199 withval="$with_manpage_aliases"
9200 MANPAGE_ALIASES=$withval
9205 echo "$as_me:9205: result: $MANPAGE_ALIASES" >&5
9206 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
9208 if test "$LN_S" = "ln -s"; then
9215 if test "$MANPAGE_ALIASES" = yes ; then
9216 echo "$as_me:9216: checking if manpage symlinks should be used" >&5
9217 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
9219 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
9220 if test "${with_manpage_symlinks+set}" = set; then
9221 withval="$with_manpage_symlinks"
9222 MANPAGE_SYMLINKS=$withval
9224 MANPAGE_SYMLINKS=$cf_use_symlinks
9227 if test "$$cf_use_symlinks" = no; then
9228 if test "$MANPAGE_SYMLINKS" = yes ; then
9229 { echo "$as_me:9229: WARNING: cannot make symlinks" >&5
9230 echo "$as_me: WARNING: cannot make symlinks" >&2;}
9235 echo "$as_me:9235: result: $MANPAGE_SYMLINKS" >&5
9236 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
9239 echo "$as_me:9239: checking for manpage tbl" >&5
9240 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
9242 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
9243 if test "${with_manpage_tbl+set}" = set; then
9244 withval="$with_manpage_tbl"
9245 MANPAGE_TBL=$withval
9250 echo "$as_me:9250: result: $MANPAGE_TBL" >&5
9251 echo "${ECHO_T}$MANPAGE_TBL" >&6
9253 if test "$prefix" = "NONE" ; then
9254 cf_prefix="$ac_default_prefix"
9259 case "$MANPAGE_FORMAT" in # (vi
9274 test ! -d man && mkdir man
9278 case "$MANPAGE_FORMAT" in #(vi
9281 cf_compress=compress
9289 cf_edit_man=./edit_man.sh
9290 cf_man_alias=`pwd`/man_alias.sed
9292 cat >$cf_edit_man <<CF_EOF
9294 # this script is generated by the configure-script CF_MAN_PAGES macro.
9299 NCURSES_MAJOR="$NCURSES_MAJOR"
9300 NCURSES_MINOR="$NCURSES_MINOR"
9301 NCURSES_PATCH="$NCURSES_PATCH"
9303 NCURSES_OSPEED="$NCURSES_OSPEED"
9304 TERMINFO="$TERMINFO"
9306 MKDIRS="sh `cd $srcdir && pwd`/mkdirs.sh"
9309 INSTALL_DATA="$INSTALL_DATA"
9311 transform="$program_transform_name"
9313 TMP=\${TMPDIR-/tmp}/man\$\$
9314 trap "rm -f \$TMP" 0 1 2 5 15
9326 top_srcdir=\$srcdir/..
9329 if test "\$form" = normal ; then
9330 if test "$cf_format" = yes ; then
9331 if test "$cf_inboth" = no ; then
9332 sh \$0 format \$verb \$mandir \$srcdir \$*
9336 cf_subdir=\$mandir/man
9337 cf_tables=$MANPAGE_TBL
9339 cf_subdir=\$mandir/cat
9343 # process the list of source-files
9346 *.orig|*.rej) ;; #(vi
9348 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
9349 if test \$verb = installing ; then
9350 if test ! -d \$cf_subdir\${section} ; then
9351 \$MKDIRS \$cf_subdir\$section
9355 # replace variables in man page
9356 if test ! -f $cf_man_alias ; then
9357 cat >>$cf_man_alias <<-CF_EOF2
9358 s,@DATADIR@,\$datadir,g
9359 s,@TERMINFO@,\$TERMINFO,g
9360 s,@NCURSES_MAJOR@,\$NCURSES_MAJOR,g
9361 s,@NCURSES_MINOR@,\$NCURSES_MINOR,g
9362 s,@NCURSES_PATCH@,\$NCURSES_PATCH,g
9363 s,@NCURSES_OSPEED@,\$NCURSES_OSPEED,g
9366 for cf_name in captoinfo clear infocmp infotocap tabs tic toe tput tset
9368 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
9369 cf_name=`echo $cf_name|sed "$program_transform_name"`
9370 cat >>$cf_edit_man <<-CF_EOF
9371 s,@$cf_NAME@,$cf_name,g
9375 cat >>$cf_edit_man <<CF_EOF
9377 echo "...made $cf_man_alias"
9381 cf_source=\`basename \$i\`
9383 test ! -f \$inalias && inalias="\$srcdir/\$inalias"
9384 if test ! -f \$inalias ; then
9385 echo .. skipped \$cf_source
9390 if test "$MANPAGE_ALIASES" != no ; then
9391 cat >>$cf_edit_man <<CF_EOF
9392 aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u\`
9396 if test "$MANPAGE_RENAMES" = no ; then
9397 cat >>$cf_edit_man <<CF_EOF
9398 # perform program transformations for section 1 man pages
9399 if test \$section = 1 ; then
9400 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
9402 cf_target=\$cf_subdir\${section}/\$cf_source
9406 cat >>$cf_edit_man <<CF_EOF
9407 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
9408 if test -z "\$cf_target" ; then
9409 echo '? missing rename for '\$cf_source
9410 cf_target="\$cf_source"
9412 cf_target="\$cf_subdir\${section}/\${cf_target}"
9417 cat >>$cf_edit_man <<CF_EOF
9418 sed -f $cf_man_alias \\
9421 if test -f $MANPAGE_RENAMES ; then
9422 cat >>$cf_edit_man <<CF_EOF
9423 < \$i | sed -f `pwd`/edit_man.sed >\$TMP
9426 cat >>$cf_edit_man <<CF_EOF
9431 cat >>$cf_edit_man <<CF_EOF
9432 if test \$cf_tables = yes ; then
9433 tbl \$TMP >\$TMP.out
9438 if test $with_curses_h != yes ; then
9439 cat >>$cf_edit_man <<CF_EOF
9440 sed -e "/\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
9445 cat >>$cf_edit_man <<CF_EOF
9446 if test \$form = format ; then
9447 nroff -man \$TMP >\$TMP.out
9452 if test -n "$cf_compress" ; then
9453 cat >>$cf_edit_man <<CF_EOF
9454 if test \$verb = installing ; then
9455 if ( $cf_compress -f \$TMP )
9457 mv \$TMP.$cf_so_strip \$TMP
9460 cf_target="\$cf_target.$cf_so_strip"
9464 case "$MANPAGE_FORMAT" in #(vi
9466 cat >>$cf_edit_man <<CF_EOF
9467 if test \$form = format ; then
9468 # BSDI installs only .0 suffixes in the cat directories
9469 cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
9475 cat >>$cf_edit_man <<CF_EOF
9476 suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\`
9477 if test \$verb = installing ; then
9478 echo \$verb \$cf_target
9479 \$INSTALL_DATA \$TMP \$cf_target
9480 test -d \$cf_subdir\${section} &&
9481 test -n "\$aliases" && (
9482 cd \$cf_subdir\${section} && (
9483 cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
9484 test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
9485 cf_target=\`basename \$cf_target\`
9486 for cf_alias in \$aliases
9488 if test \$section = 1 ; then
9489 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
9492 if test "$MANPAGE_SYMLINKS" = yes ; then
9493 if test -f \$cf_alias\${suffix} ; then
9494 if ( cmp -s \$cf_target \$cf_alias\${suffix} )
9499 echo .. \$verb alias \$cf_alias\${suffix}
9500 rm -f \$cf_alias\${suffix}
9501 $LN_S \$cf_target \$cf_alias\${suffix}
9502 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
9503 echo ".so \$cf_source" >\$TMP
9505 if test -n "$cf_compress" ; then
9506 cat >>$cf_edit_man <<CF_EOF
9507 if test -n "$cf_so_strip" ; then
9508 $cf_compress -f \$TMP
9509 mv \$TMP.$cf_so_strip \$TMP
9513 cat >>$cf_edit_man <<CF_EOF
9514 echo .. \$verb alias \$cf_alias\${suffix}
9515 rm -f \$cf_alias\${suffix}
9516 \$INSTALL_DATA \$TMP \$cf_alias\${suffix}
9521 elif test \$verb = removing ; then
9522 test -f \$cf_target && (
9523 echo \$verb \$cf_target
9526 test -d \$cf_subdir\${section} &&
9527 test -n "\$aliases" && (
9528 cd \$cf_subdir\${section} && (
9529 for cf_alias in \$aliases
9531 if test \$section = 1 ; then
9532 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
9535 echo .. \$verb alias \$cf_alias\${suffix}
9536 rm -f \$cf_alias\${suffix}
9548 if test $cf_inboth = yes ; then
9549 if test \$form != format ; then
9550 sh \$0 format \$verb \$mandir \$srcdir \$*
9556 chmod 755 $cf_edit_man
9558 ###############################################################################
9560 ### Note that some functions (such as const) are normally disabled anyway.
9561 echo "$as_me:9561: checking if you want to build with function extensions" >&5
9562 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
9564 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
9565 if test "${enable_ext_funcs+set}" = set; then
9566 enableval="$enable_ext_funcs"
9567 with_ext_funcs=$enableval
9571 echo "$as_me:9571: result: $with_ext_funcs" >&5
9572 echo "${ECHO_T}$with_ext_funcs" >&6
9573 if test "$with_ext_funcs" = yes ; then
9575 cat >>confdefs.h <<\EOF
9576 #define HAVE_CURSES_VERSION 1
9579 cat >>confdefs.h <<\EOF
9580 #define HAVE_HAS_KEY 1
9583 cat >>confdefs.h <<\EOF
9584 #define HAVE_RESIZETERM 1
9587 cat >>confdefs.h <<\EOF
9588 #define HAVE_RESIZE_TERM 1
9591 cat >>confdefs.h <<\EOF
9592 #define HAVE_USE_DEFAULT_COLORS 1
9595 cat >>confdefs.h <<\EOF
9596 #define HAVE_WRESIZE 1
9599 cat >>confdefs.h <<\EOF
9600 #define NCURSES_EXT_FUNCS 1
9603 GENERATED_EXT_FUNCS=generated
9606 GENERATED_EXT_FUNCS=
9609 echo "$as_me:9609: checking if you want to build with experimental SCREEN extensions" >&5
9610 echo $ECHO_N "checking if you want to build with experimental SCREEN extensions... $ECHO_C" >&6
9612 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
9613 if test "${enable_sp_funcs+set}" = set; then
9614 enableval="$enable_sp_funcs"
9615 with_sp_funcs=$enableval
9619 echo "$as_me:9619: result: $with_sp_funcs" >&5
9620 echo "${ECHO_T}$with_sp_funcs" >&6
9621 if test "$with_sp_funcs" = yes ; then
9623 cat >>confdefs.h <<\EOF
9624 #define NCURSES_SP_FUNCS 1
9627 GENERATED_SP_FUNCS=generated
9633 echo "$as_me:9633: checking if you want to build with experimental terminal-driver" >&5
9634 echo $ECHO_N "checking if you want to build with experimental terminal-driver... $ECHO_C" >&6
9636 # Check whether --enable-term-driver or --disable-term-driver was given.
9637 if test "${enable_term_driver+set}" = set; then
9638 enableval="$enable_term_driver"
9639 with_term_driver=$enableval
9643 echo "$as_me:9643: result: $with_term_driver" >&5
9644 echo "${ECHO_T}$with_term_driver" >&6
9645 if test "$with_term_driver" = yes ; then
9646 cat >>confdefs.h <<\EOF
9647 #define USE_TERM_DRIVER 1
9650 if test "$with_sp_funcs" != yes ; then
9651 { { echo "$as_me:9651: error: The term-driver option relies upon sp-funcs" >&5
9652 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
9653 { (exit 1); exit 1; }; }
9657 ### use option --enable-const to turn on use of const beyond that in XSI.
9658 echo "$as_me:9658: checking for extended use of const keyword" >&5
9659 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
9661 # Check whether --enable-const or --disable-const was given.
9662 if test "${enable_const+set}" = set; then
9663 enableval="$enable_const"
9664 with_ext_const=$enableval
9668 echo "$as_me:9668: result: $with_ext_const" >&5
9669 echo "${ECHO_T}$with_ext_const" >&6
9670 NCURSES_CONST='/*nothing*/'
9671 if test "$with_ext_const" = yes ; then
9675 ### use option --enable-ext-colors to turn on use of colors beyond 16.
9676 echo "$as_me:9676: checking if you want to use extended colors" >&5
9677 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
9679 # Check whether --enable-ext-colors or --disable-ext-colors was given.
9680 if test "${enable_ext_colors+set}" = set; then
9681 enableval="$enable_ext_colors"
9682 with_ext_colors=$enableval
9686 echo "$as_me:9686: result: $with_ext_colors" >&5
9687 echo "${ECHO_T}$with_ext_colors" >&6
9688 NCURSES_EXT_COLORS=0
9689 if test "$with_ext_colors" = yes ; then
9690 if test "$with_widec" != yes ; then
9691 { { echo "$as_me:9691: error: This option applies only to wide-character library" >&5
9692 echo "$as_me: error: This option applies only to wide-character library" >&2;}
9693 { (exit 1); exit 1; }; }
9695 # cannot be ABI 5 since it changes sizeof(cchar_t)
9697 if test "${with_abi_version+set}" != set; then
9698 case $cf_cv_rel_version in
9700 cf_cv_rel_version=6.0
9702 { echo "$as_me:9702: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
9703 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
9709 NCURSES_EXT_COLORS=1
9710 cat >>confdefs.h <<\EOF
9711 #define NCURSES_EXT_COLORS 1
9716 ### use option --enable-ext-mouse to modify coding to support 5-button mice
9717 echo "$as_me:9717: checking if you want to use extended mouse encoding" >&5
9718 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
9720 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
9721 if test "${enable_ext_mouse+set}" = set; then
9722 enableval="$enable_ext_mouse"
9723 with_ext_mouse=$enableval
9727 echo "$as_me:9727: result: $with_ext_mouse" >&5
9728 echo "${ECHO_T}$with_ext_mouse" >&6
9729 NCURSES_MOUSE_VERSION=1
9730 if test "$with_ext_mouse" = yes ; then
9731 NCURSES_MOUSE_VERSION=2
9733 if test "${with_abi_version+set}" != set; then
9734 case $cf_cv_rel_version in
9736 cf_cv_rel_version=6.0
9738 { echo "$as_me:9738: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
9739 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
9746 echo "$as_me:9746: checking if you want \$NCURSES_NO_PADDING code" >&5
9747 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
9749 # Check whether --enable-no-padding or --disable-no-padding was given.
9750 if test "${enable_no_padding+set}" = set; then
9751 enableval="$enable_no_padding"
9752 with_no_padding=$enableval
9754 with_no_padding=$with_ext_funcs
9756 echo "$as_me:9756: result: $with_no_padding" >&5
9757 echo "${ECHO_T}$with_no_padding" >&6
9758 test "$with_no_padding" = yes && cat >>confdefs.h <<\EOF
9759 #define NCURSES_NO_PADDING 1
9762 echo "$as_me:9762: checking for ANSI C header files" >&5
9763 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9764 if test "${ac_cv_header_stdc+set}" = set; then
9765 echo $ECHO_N "(cached) $ECHO_C" >&6
9767 cat >conftest.$ac_ext <<_ACEOF
9768 #line 9768 "configure"
9769 #include "confdefs.h"
9776 if { (eval echo "$as_me:9776: \"$ac_cpp conftest.$ac_ext\"") >&5
9777 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9779 egrep -v '^ *\+' conftest.er1 >conftest.err
9781 cat conftest.err >&5
9782 echo "$as_me:9782: \$? = $ac_status" >&5
9783 (exit $ac_status); } >/dev/null; then
9784 if test -s conftest.err; then
9785 ac_cpp_err=$ac_c_preproc_warn_flag
9792 if test -z "$ac_cpp_err"; then
9793 ac_cv_header_stdc=yes
9795 echo "$as_me: failed program was:" >&5
9796 cat conftest.$ac_ext >&5
9797 ac_cv_header_stdc=no
9799 rm -f conftest.err conftest.$ac_ext
9801 if test $ac_cv_header_stdc = yes; then
9802 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9803 cat >conftest.$ac_ext <<_ACEOF
9804 #line 9804 "configure"
9805 #include "confdefs.h"
9809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9810 egrep "memchr" >/dev/null 2>&1; then
9813 ac_cv_header_stdc=no
9819 if test $ac_cv_header_stdc = yes; then
9820 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9821 cat >conftest.$ac_ext <<_ACEOF
9822 #line 9822 "configure"
9823 #include "confdefs.h"
9827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9828 egrep "free" >/dev/null 2>&1; then
9831 ac_cv_header_stdc=no
9837 if test $ac_cv_header_stdc = yes; then
9838 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9839 if test "$cross_compiling" = yes; then
9842 cat >conftest.$ac_ext <<_ACEOF
9843 #line 9843 "configure"
9844 #include "confdefs.h"
9846 #if ((' ' & 0x0FF) == 0x020)
9847 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9848 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9850 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
9851 || ('j' <= (c) && (c) <= 'r') \
9852 || ('s' <= (c) && (c) <= 'z'))
9853 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9856 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9861 for (i = 0; i < 256; i++)
9862 if (XOR (islower (i), ISLOWER (i))
9863 || toupper (i) != TOUPPER (i))
9865 $ac_main_return (0);
9868 rm -f conftest$ac_exeext
9869 if { (eval echo "$as_me:9869: \"$ac_link\"") >&5
9870 (eval $ac_link) 2>&5
9872 echo "$as_me:9872: \$? = $ac_status" >&5
9873 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9874 { (eval echo "$as_me:9874: \"$ac_try\"") >&5
9877 echo "$as_me:9877: \$? = $ac_status" >&5
9878 (exit $ac_status); }; }; then
9881 echo "$as_me: program exited with status $ac_status" >&5
9882 echo "$as_me: failed program was:" >&5
9883 cat conftest.$ac_ext >&5
9884 ac_cv_header_stdc=no
9886 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9890 echo "$as_me:9890: result: $ac_cv_header_stdc" >&5
9891 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9892 if test $ac_cv_header_stdc = yes; then
9894 cat >>confdefs.h <<\EOF
9895 #define STDC_HEADERS 1
9900 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9902 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9903 inttypes.h stdint.h unistd.h
9905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9906 echo "$as_me:9906: checking for $ac_header" >&5
9907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9909 echo $ECHO_N "(cached) $ECHO_C" >&6
9911 cat >conftest.$ac_ext <<_ACEOF
9912 #line 9912 "configure"
9913 #include "confdefs.h"
9914 $ac_includes_default
9915 #include <$ac_header>
9917 rm -f conftest.$ac_objext
9918 if { (eval echo "$as_me:9918: \"$ac_compile\"") >&5
9919 (eval $ac_compile) 2>&5
9921 echo "$as_me:9921: \$? = $ac_status" >&5
9922 (exit $ac_status); } &&
9923 { ac_try='test -s conftest.$ac_objext'
9924 { (eval echo "$as_me:9924: \"$ac_try\"") >&5
9927 echo "$as_me:9927: \$? = $ac_status" >&5
9928 (exit $ac_status); }; }; then
9929 eval "$as_ac_Header=yes"
9931 echo "$as_me: failed program was:" >&5
9932 cat conftest.$ac_ext >&5
9933 eval "$as_ac_Header=no"
9935 rm -f conftest.$ac_objext conftest.$ac_ext
9937 echo "$as_me:9937: result: `eval echo '${'$as_ac_Header'}'`" >&5
9938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9940 cat >>confdefs.h <<EOF
9941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9947 echo "$as_me:9947: checking for signed char" >&5
9948 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
9949 if test "${ac_cv_type_signed_char+set}" = set; then
9950 echo $ECHO_N "(cached) $ECHO_C" >&6
9952 cat >conftest.$ac_ext <<_ACEOF
9953 #line 9953 "configure"
9954 #include "confdefs.h"
9955 $ac_includes_default
9959 if ((signed char *) 0)
9961 if (sizeof (signed char))
9967 rm -f conftest.$ac_objext
9968 if { (eval echo "$as_me:9968: \"$ac_compile\"") >&5
9969 (eval $ac_compile) 2>&5
9971 echo "$as_me:9971: \$? = $ac_status" >&5
9972 (exit $ac_status); } &&
9973 { ac_try='test -s conftest.$ac_objext'
9974 { (eval echo "$as_me:9974: \"$ac_try\"") >&5
9977 echo "$as_me:9977: \$? = $ac_status" >&5
9978 (exit $ac_status); }; }; then
9979 ac_cv_type_signed_char=yes
9981 echo "$as_me: failed program was:" >&5
9982 cat conftest.$ac_ext >&5
9983 ac_cv_type_signed_char=no
9985 rm -f conftest.$ac_objext conftest.$ac_ext
9987 echo "$as_me:9987: result: $ac_cv_type_signed_char" >&5
9988 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
9990 echo "$as_me:9990: checking size of signed char" >&5
9991 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
9992 if test "${ac_cv_sizeof_signed_char+set}" = set; then
9993 echo $ECHO_N "(cached) $ECHO_C" >&6
9995 if test "$ac_cv_type_signed_char" = yes; then
9996 if test "$cross_compiling" = yes; then
9997 # Depending upon the size, compute the lo and hi bounds.
9998 cat >conftest.$ac_ext <<_ACEOF
9999 #line 9999 "configure"
10000 #include "confdefs.h"
10001 $ac_includes_default
10005 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
10010 rm -f conftest.$ac_objext
10011 if { (eval echo "$as_me:10011: \"$ac_compile\"") >&5
10012 (eval $ac_compile) 2>&5
10014 echo "$as_me:10014: \$? = $ac_status" >&5
10015 (exit $ac_status); } &&
10016 { ac_try='test -s conftest.$ac_objext'
10017 { (eval echo "$as_me:10017: \"$ac_try\"") >&5
10018 (eval $ac_try) 2>&5
10020 echo "$as_me:10020: \$? = $ac_status" >&5
10021 (exit $ac_status); }; }; then
10024 cat >conftest.$ac_ext <<_ACEOF
10025 #line 10025 "configure"
10026 #include "confdefs.h"
10027 $ac_includes_default
10031 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
10036 rm -f conftest.$ac_objext
10037 if { (eval echo "$as_me:10037: \"$ac_compile\"") >&5
10038 (eval $ac_compile) 2>&5
10040 echo "$as_me:10040: \$? = $ac_status" >&5
10041 (exit $ac_status); } &&
10042 { ac_try='test -s conftest.$ac_objext'
10043 { (eval echo "$as_me:10043: \"$ac_try\"") >&5
10044 (eval $ac_try) 2>&5
10046 echo "$as_me:10046: \$? = $ac_status" >&5
10047 (exit $ac_status); }; }; then
10048 ac_hi=$ac_mid; break
10050 echo "$as_me: failed program was:" >&5
10051 cat conftest.$ac_ext >&5
10052 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
10054 rm -f conftest.$ac_objext conftest.$ac_ext
10057 echo "$as_me: failed program was:" >&5
10058 cat conftest.$ac_ext >&5
10061 cat >conftest.$ac_ext <<_ACEOF
10062 #line 10062 "configure"
10063 #include "confdefs.h"
10064 $ac_includes_default
10068 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
10073 rm -f conftest.$ac_objext
10074 if { (eval echo "$as_me:10074: \"$ac_compile\"") >&5
10075 (eval $ac_compile) 2>&5
10077 echo "$as_me:10077: \$? = $ac_status" >&5
10078 (exit $ac_status); } &&
10079 { ac_try='test -s conftest.$ac_objext'
10080 { (eval echo "$as_me:10080: \"$ac_try\"") >&5
10081 (eval $ac_try) 2>&5
10083 echo "$as_me:10083: \$? = $ac_status" >&5
10084 (exit $ac_status); }; }; then
10085 ac_lo=$ac_mid; break
10087 echo "$as_me: failed program was:" >&5
10088 cat conftest.$ac_ext >&5
10089 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
10091 rm -f conftest.$ac_objext conftest.$ac_ext
10094 rm -f conftest.$ac_objext conftest.$ac_ext
10095 # Binary search between lo and hi bounds.
10096 while test "x$ac_lo" != "x$ac_hi"; do
10097 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10098 cat >conftest.$ac_ext <<_ACEOF
10099 #line 10099 "configure"
10100 #include "confdefs.h"
10101 $ac_includes_default
10105 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
10110 rm -f conftest.$ac_objext
10111 if { (eval echo "$as_me:10111: \"$ac_compile\"") >&5
10112 (eval $ac_compile) 2>&5
10114 echo "$as_me:10114: \$? = $ac_status" >&5
10115 (exit $ac_status); } &&
10116 { ac_try='test -s conftest.$ac_objext'
10117 { (eval echo "$as_me:10117: \"$ac_try\"") >&5
10118 (eval $ac_try) 2>&5
10120 echo "$as_me:10120: \$? = $ac_status" >&5
10121 (exit $ac_status); }; }; then
10124 echo "$as_me: failed program was:" >&5
10125 cat conftest.$ac_ext >&5
10126 ac_lo=`expr $ac_mid + 1`
10128 rm -f conftest.$ac_objext conftest.$ac_ext
10130 ac_cv_sizeof_signed_char=$ac_lo
10132 if test "$cross_compiling" = yes; then
10133 { { echo "$as_me:10133: error: cannot run test program while cross compiling" >&5
10134 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10135 { (exit 1); exit 1; }; }
10137 cat >conftest.$ac_ext <<_ACEOF
10138 #line 10138 "configure"
10139 #include "confdefs.h"
10140 $ac_includes_default
10144 FILE *f = fopen ("conftest.val", "w");
10146 $ac_main_return (1);
10147 fprintf (f, "%d", (sizeof (signed char)));
10153 rm -f conftest$ac_exeext
10154 if { (eval echo "$as_me:10154: \"$ac_link\"") >&5
10155 (eval $ac_link) 2>&5
10157 echo "$as_me:10157: \$? = $ac_status" >&5
10158 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10159 { (eval echo "$as_me:10159: \"$ac_try\"") >&5
10160 (eval $ac_try) 2>&5
10162 echo "$as_me:10162: \$? = $ac_status" >&5
10163 (exit $ac_status); }; }; then
10164 ac_cv_sizeof_signed_char=`cat conftest.val`
10166 echo "$as_me: program exited with status $ac_status" >&5
10167 echo "$as_me: failed program was:" >&5
10168 cat conftest.$ac_ext >&5
10170 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10175 ac_cv_sizeof_signed_char=0
10178 echo "$as_me:10178: result: $ac_cv_sizeof_signed_char" >&5
10179 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
10180 cat >>confdefs.h <<EOF
10181 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
10184 if test "$ac_cv_sizeof_signed_char" = 1 ; then
10185 NCURSES_SBOOL="signed char"
10187 NCURSES_SBOOL="char"
10189 echo "$as_me:10189: checking if you want to use signed Boolean array in term.h" >&5
10190 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
10192 # Check whether --enable-signed-char or --disable-signed-char was given.
10193 if test "${enable_signed_char+set}" = set; then
10194 enableval="$enable_signed_char"
10195 with_signed_char=$enableval
10197 with_signed_char=no
10199 echo "$as_me:10199: result: $with_signed_char" >&5
10200 echo "${ECHO_T}$with_signed_char" >&6
10201 test "$with_signed_char" != yes && NCURSES_SBOOL="char"
10203 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
10204 echo "$as_me:10204: checking if you want SIGWINCH handler" >&5
10205 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
10207 # Check whether --enable-sigwinch or --disable-sigwinch was given.
10208 if test "${enable_sigwinch+set}" = set; then
10209 enableval="$enable_sigwinch"
10210 with_sigwinch=$enableval
10212 with_sigwinch=$with_ext_funcs
10214 echo "$as_me:10214: result: $with_sigwinch" >&5
10215 echo "${ECHO_T}$with_sigwinch" >&6
10216 test "$with_sigwinch" = yes && cat >>confdefs.h <<\EOF
10217 #define USE_SIGWINCH 1
10220 ### use option --enable-tcap-names to allow user to define new capabilities
10221 echo "$as_me:10221: checking if you want user-definable terminal capabilities like termcap" >&5
10222 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
10224 # Check whether --enable-tcap-names or --disable-tcap-names was given.
10225 if test "${enable_tcap_names+set}" = set; then
10226 enableval="$enable_tcap_names"
10227 with_tcap_names=$enableval
10229 with_tcap_names=$with_ext_funcs
10231 echo "$as_me:10231: result: $with_tcap_names" >&5
10232 echo "${ECHO_T}$with_tcap_names" >&6
10234 test "$with_tcap_names" = yes && NCURSES_XNAMES=1
10236 ###############################################################################
10237 # These options are relatively safe to experiment with.
10239 echo "$as_me:10239: checking if you want all development code" >&5
10240 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
10242 # Check whether --with-develop or --without-develop was given.
10243 if test "${with_develop+set}" = set; then
10244 withval="$with_develop"
10245 with_develop=$withval
10249 echo "$as_me:10249: result: $with_develop" >&5
10250 echo "${ECHO_T}$with_develop" >&6
10252 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
10253 echo "$as_me:10253: checking if you want hard-tabs code" >&5
10254 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
10256 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
10257 if test "${enable_hard_tabs+set}" = set; then
10258 enableval="$enable_hard_tabs"
10261 enable_hard_tabs=$with_develop
10263 echo "$as_me:10263: result: $enable_hard_tabs" >&5
10264 echo "${ECHO_T}$enable_hard_tabs" >&6
10265 test "$enable_hard_tabs" = yes && cat >>confdefs.h <<\EOF
10266 #define USE_HARD_TABS 1
10269 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
10270 echo "$as_me:10270: checking if you want limited support for xmc" >&5
10271 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
10273 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
10274 if test "${enable_xmc_glitch+set}" = set; then
10275 enableval="$enable_xmc_glitch"
10278 enable_xmc_glitch=$with_develop
10280 echo "$as_me:10280: result: $enable_xmc_glitch" >&5
10281 echo "${ECHO_T}$enable_xmc_glitch" >&6
10282 test "$enable_xmc_glitch" = yes && cat >>confdefs.h <<\EOF
10283 #define USE_XMC_SUPPORT 1
10286 ###############################################################################
10287 # These are just experimental, probably should not be in a package:
10289 echo "$as_me:10289: checking if you do not want to assume colors are white-on-black" >&5
10290 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
10292 # Check whether --enable-assumed-color or --disable-assumed-color was given.
10293 if test "${enable_assumed_color+set}" = set; then
10294 enableval="$enable_assumed_color"
10295 with_assumed_color=$enableval
10297 with_assumed_color=yes
10299 echo "$as_me:10299: result: $with_assumed_color" >&5
10300 echo "${ECHO_T}$with_assumed_color" >&6
10301 test "$with_assumed_color" = yes && cat >>confdefs.h <<\EOF
10302 #define USE_ASSUMED_COLOR 1
10305 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
10306 echo "$as_me:10306: checking if you want hashmap scrolling-optimization code" >&5
10307 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
10309 # Check whether --enable-hashmap or --disable-hashmap was given.
10310 if test "${enable_hashmap+set}" = set; then
10311 enableval="$enable_hashmap"
10312 with_hashmap=$enableval
10316 echo "$as_me:10316: result: $with_hashmap" >&5
10317 echo "${ECHO_T}$with_hashmap" >&6
10318 test "$with_hashmap" = yes && cat >>confdefs.h <<\EOF
10319 #define USE_HASHMAP 1
10322 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
10323 echo "$as_me:10323: checking if you want colorfgbg code" >&5
10324 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
10326 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
10327 if test "${enable_colorfgbg+set}" = set; then
10328 enableval="$enable_colorfgbg"
10329 with_colorfgbg=$enableval
10333 echo "$as_me:10333: result: $with_colorfgbg" >&5
10334 echo "${ECHO_T}$with_colorfgbg" >&6
10335 test "$with_colorfgbg" = yes && cat >>confdefs.h <<\EOF
10336 #define USE_COLORFGBG 1
10339 ### use option --enable-interop to turn on use of bindings used for interop
10340 echo "$as_me:10340: checking if you want interop bindings" >&5
10341 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
10343 # Check whether --enable-interop or --disable-interop was given.
10344 if test "${enable_interop+set}" = set; then
10345 enableval="$enable_interop"
10346 with_exp_interop=$enableval
10348 with_exp_interop=no
10350 echo "$as_me:10350: result: $with_exp_interop" >&5
10351 echo "${ECHO_T}$with_exp_interop" >&6
10353 NCURSES_INTEROP_FUNCS=0
10354 test "$with_exp_interop" = yes && NCURSES_INTEROP_FUNCS=1
10356 # This is still experimental (20080329), but should ultimately be moved to
10357 # the script-block --with-normal, etc.
10359 echo "$as_me:10359: checking if you want to link with the pthread library" >&5
10360 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
10362 # Check whether --with-pthread or --without-pthread was given.
10363 if test "${with_pthread+set}" = set; then
10364 withval="$with_pthread"
10365 with_pthread=$withval
10369 echo "$as_me:10369: result: $with_pthread" >&5
10370 echo "${ECHO_T}$with_pthread" >&6
10372 if test "$with_pthread" != no ; then
10373 echo "$as_me:10373: checking for pthread.h" >&5
10374 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
10375 if test "${ac_cv_header_pthread_h+set}" = set; then
10376 echo $ECHO_N "(cached) $ECHO_C" >&6
10378 cat >conftest.$ac_ext <<_ACEOF
10379 #line 10379 "configure"
10380 #include "confdefs.h"
10381 #include <pthread.h>
10383 if { (eval echo "$as_me:10383: \"$ac_cpp conftest.$ac_ext\"") >&5
10384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10386 egrep -v '^ *\+' conftest.er1 >conftest.err
10388 cat conftest.err >&5
10389 echo "$as_me:10389: \$? = $ac_status" >&5
10390 (exit $ac_status); } >/dev/null; then
10391 if test -s conftest.err; then
10392 ac_cpp_err=$ac_c_preproc_warn_flag
10399 if test -z "$ac_cpp_err"; then
10400 ac_cv_header_pthread_h=yes
10402 echo "$as_me: failed program was:" >&5
10403 cat conftest.$ac_ext >&5
10404 ac_cv_header_pthread_h=no
10406 rm -f conftest.err conftest.$ac_ext
10408 echo "$as_me:10408: result: $ac_cv_header_pthread_h" >&5
10409 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
10410 if test $ac_cv_header_pthread_h = yes; then
10412 cat >>confdefs.h <<\EOF
10413 #define HAVE_PTHREADS_H 1
10416 echo "$as_me:10416: checking if we can link with the pthread library" >&5
10417 echo $ECHO_N "checking if we can link with the pthread library... $ECHO_C" >&6
10418 cf_save_LIBS="$LIBS"
10419 LIBS="-lpthread $LIBS"
10420 cat >conftest.$ac_ext <<_ACEOF
10421 #line 10421 "configure"
10422 #include "confdefs.h"
10424 #include <pthread.h>
10430 int rc = pthread_create(0,0,0,0);
10436 rm -f conftest.$ac_objext conftest$ac_exeext
10437 if { (eval echo "$as_me:10437: \"$ac_link\"") >&5
10438 (eval $ac_link) 2>&5
10440 echo "$as_me:10440: \$? = $ac_status" >&5
10441 (exit $ac_status); } &&
10442 { ac_try='test -s conftest$ac_exeext'
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
10450 echo "$as_me: failed program was:" >&5
10451 cat conftest.$ac_ext >&5
10454 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10455 LIBS="$cf_save_LIBS"
10456 echo "$as_me:10456: result: $with_pthread" >&5
10457 echo "${ECHO_T}$with_pthread" >&6
10459 if test "$with_pthread" = yes ; then
10460 LIBS="-lpthread $LIBS"
10461 cat >>confdefs.h <<\EOF
10462 #define HAVE_LIBPTHREADS 1
10466 { { echo "$as_me:10466: error: Cannot link with pthread library" >&5
10467 echo "$as_me: error: Cannot link with pthread library" >&2;}
10468 { (exit 1); exit 1; }; }
10475 echo "$as_me:10475: checking if you want to use weak-symbols for pthreads" >&5
10476 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
10478 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
10479 if test "${enable_weak_symbols+set}" = set; then
10480 enableval="$enable_weak_symbols"
10481 use_weak_symbols=$withval
10483 use_weak_symbols=no
10485 echo "$as_me:10485: result: $use_weak_symbols" >&5
10486 echo "${ECHO_T}$use_weak_symbols" >&6
10487 if test "$use_weak_symbols" = yes ; then
10489 echo "$as_me:10489: checking if $CC supports weak symbols" >&5
10490 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
10491 if test "${cf_cv_weak_symbols+set}" = set; then
10492 echo $ECHO_N "(cached) $ECHO_C" >&6
10495 cat >conftest.$ac_ext <<_ACEOF
10496 #line 10496 "configure"
10497 #include "confdefs.h"
10504 #if defined(__GNUC__)
10505 # if defined __USE_ISOC99
10506 # define _cat_pragma(exp) _Pragma(#exp)
10507 # define _weak_pragma(exp) _cat_pragma(weak name)
10509 # define _weak_pragma(exp)
10511 # define _declare(name) __extension__ extern __typeof__(name) name
10512 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
10515 weak_symbol(fopen);
10521 rm -f conftest.$ac_objext
10522 if { (eval echo "$as_me:10522: \"$ac_compile\"") >&5
10523 (eval $ac_compile) 2>&5
10525 echo "$as_me:10525: \$? = $ac_status" >&5
10526 (exit $ac_status); } &&
10527 { ac_try='test -s conftest.$ac_objext'
10528 { (eval echo "$as_me:10528: \"$ac_try\"") >&5
10529 (eval $ac_try) 2>&5
10531 echo "$as_me:10531: \$? = $ac_status" >&5
10532 (exit $ac_status); }; }; then
10533 cf_cv_weak_symbols=yes
10535 echo "$as_me: failed program was:" >&5
10536 cat conftest.$ac_ext >&5
10537 cf_cv_weak_symbols=no
10539 rm -f conftest.$ac_objext conftest.$ac_ext
10542 echo "$as_me:10542: result: $cf_cv_weak_symbols" >&5
10543 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
10546 cf_cv_weak_symbols=no
10549 if test $cf_cv_weak_symbols = yes ; then
10550 cat >>confdefs.h <<\EOF
10551 #define USE_WEAK_SYMBOLS 1
10557 if test "$with_pthread" = "yes" ; then
10558 cat >>confdefs.h <<\EOF
10559 #define USE_PTHREADS 1
10562 enable_reentrant=yes
10563 if test $cf_cv_weak_symbols = yes ; then
10568 # Reentrant code has to be opaque; there's little advantage to making ncurses
10569 # opaque outside of that, so there is no --enable-opaque option. We can use
10570 # this option without --with-pthreads, but this will be always set for
10572 echo "$as_me:10572: checking if you want experimental reentrant code" >&5
10573 echo $ECHO_N "checking if you want experimental reentrant code... $ECHO_C" >&6
10575 # Check whether --enable-reentrant or --disable-reentrant was given.
10576 if test "${enable_reentrant+set}" = set; then
10577 enableval="$enable_reentrant"
10578 with_reentrant=$enableval
10582 echo "$as_me:10582: result: $with_reentrant" >&5
10583 echo "${ECHO_T}$with_reentrant" >&6
10584 if test "$with_reentrant" = yes ; then
10585 cf_cv_enable_reentrant=1
10586 cf_cv_enable_opaque="NCURSES_INTERNALS"
10589 if test $cf_cv_weak_symbols = yes ; then
10591 # remove pthread library from $LIBS
10592 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
10595 LIB_SUFFIX="t${LIB_SUFFIX}"
10597 cat >>confdefs.h <<\EOF
10598 #define USE_REENTRANT 1
10601 if test "${with_abi_version+set}" != set; then
10602 case $cf_cv_rel_version in
10604 cf_cv_rel_version=6.0
10605 cf_cv_abi_version=6
10606 { echo "$as_me:10606: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
10607 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
10613 cf_cv_enable_reentrant=0
10614 cf_cv_enable_opaque="NCURSES_OPAQUE"
10616 NCURSES_SIZE_T=short
10619 ### Allow using a different wrap-prefix
10620 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
10621 echo "$as_me:10621: checking for prefix used to wrap public variables" >&5
10622 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
10624 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
10625 if test "${with_wrap_prefix+set}" = set; then
10626 withval="$with_wrap_prefix"
10627 NCURSES_WRAP_PREFIX=$withval
10629 NCURSES_WRAP_PREFIX=_nc_
10631 echo "$as_me:10631: result: $NCURSES_WRAP_PREFIX" >&5
10632 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
10634 NCURSES_WRAP_PREFIX=_nc_
10637 cat >>confdefs.h <<EOF
10638 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
10641 echo "$as_me:10641: checking if you want experimental safe-sprintf code" >&5
10642 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
10644 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
10645 if test "${enable_safe_sprintf+set}" = set; then
10646 enableval="$enable_safe_sprintf"
10647 with_safe_sprintf=$enableval
10649 with_safe_sprintf=no
10651 echo "$as_me:10651: result: $with_safe_sprintf" >&5
10652 echo "${ECHO_T}$with_safe_sprintf" >&6
10653 test "$with_safe_sprintf" = yes && cat >>confdefs.h <<\EOF
10654 #define USE_SAFE_SPRINTF 1
10657 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
10658 # when hashmap is used scroll hints are useless
10659 if test "$with_hashmap" = no ; then
10660 echo "$as_me:10660: checking if you want to experiment without scrolling-hints code" >&5
10661 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
10663 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
10664 if test "${enable_scroll_hints+set}" = set; then
10665 enableval="$enable_scroll_hints"
10666 with_scroll_hints=$enableval
10668 with_scroll_hints=yes
10670 echo "$as_me:10670: result: $with_scroll_hints" >&5
10671 echo "${ECHO_T}$with_scroll_hints" >&6
10672 test "$with_scroll_hints" = yes && cat >>confdefs.h <<\EOF
10673 #define USE_SCROLL_HINTS 1
10678 echo "$as_me:10678: checking if you want experimental wgetch-events code" >&5
10679 echo $ECHO_N "checking if you want experimental wgetch-events code... $ECHO_C" >&6
10681 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
10682 if test "${enable_wgetch_events+set}" = set; then
10683 enableval="$enable_wgetch_events"
10684 with_wgetch_events=$enableval
10686 with_wgetch_events=no
10688 echo "$as_me:10688: result: $with_wgetch_events" >&5
10689 echo "${ECHO_T}$with_wgetch_events" >&6
10690 test "$with_wgetch_events" = yes && cat >>confdefs.h <<\EOF
10691 #define NCURSES_WGETCH_EVENTS 1
10694 ###############################################################################
10696 ### use option --disable-echo to suppress full display compiling commands
10697 echo "$as_me:10697: checking if you want to display full commands during build" >&5
10698 echo $ECHO_N "checking if you want to display full commands during build... $ECHO_C" >&6
10700 # Check whether --enable-echo or --disable-echo was given.
10701 if test "${enable_echo+set}" = set; then
10702 enableval="$enable_echo"
10703 with_echo=$enableval
10707 if test "$with_echo" = yes; then
10710 ECHO_LINK='@ echo linking $@ ... ;'
10711 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
10712 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
10714 echo "$as_me:10714: result: $with_echo" >&5
10715 echo "${ECHO_T}$with_echo" >&6
10717 ### use option --enable-warnings to turn on all gcc warnings
10718 echo "$as_me:10718: checking if you want to see compiler warnings" >&5
10719 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
10721 # Check whether --enable-warnings or --disable-warnings was given.
10722 if test "${enable_warnings+set}" = set; then
10723 enableval="$enable_warnings"
10724 with_warnings=$enableval
10726 echo "$as_me:10726: result: $with_warnings" >&5
10727 echo "${ECHO_T}$with_warnings" >&6
10729 if test "x$with_warnings" = "xyes"; then
10730 ADAFLAGS="$ADAFLAGS -gnatg"
10734 if test "$GCC" = yes ; then
10737 echo "$as_me:10737: checking if this is really Intel C compiler" >&5
10738 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
10739 cf_save_CFLAGS="$CFLAGS"
10740 CFLAGS="$CFLAGS -no-gcc"
10741 cat >conftest.$ac_ext <<_ACEOF
10742 #line 10742 "configure"
10743 #include "confdefs.h"
10749 #ifdef __INTEL_COMPILER
10758 rm -f conftest.$ac_objext
10759 if { (eval echo "$as_me:10759: \"$ac_compile\"") >&5
10760 (eval $ac_compile) 2>&5
10762 echo "$as_me:10762: \$? = $ac_status" >&5
10763 (exit $ac_status); } &&
10764 { ac_try='test -s conftest.$ac_objext'
10765 { (eval echo "$as_me:10765: \"$ac_try\"") >&5
10766 (eval $ac_try) 2>&5
10768 echo "$as_me:10768: \$? = $ac_status" >&5
10769 (exit $ac_status); }; }; then
10771 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
10774 echo "$as_me: failed program was:" >&5
10775 cat conftest.$ac_ext >&5
10777 rm -f conftest.$ac_objext conftest.$ac_ext
10778 CFLAGS="$cf_save_CFLAGS"
10779 echo "$as_me:10779: result: $INTEL_COMPILER" >&5
10780 echo "${ECHO_T}$INTEL_COMPILER" >&6
10785 cat > conftest.$ac_ext <<EOF
10786 #line 10786 "${as_me-configure}"
10787 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
10790 if test "$INTEL_COMPILER" = yes
10792 # The "-wdXXX" options suppress warnings:
10793 # remark #1419: external declaration in primary source file
10794 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
10795 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
10796 # remark #193: zero used for undefined preprocessing identifier
10797 # remark #593: variable "curs_sb_left_arrow" was set but never used
10798 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
10799 # remark #869: parameter "tw" was never referenced
10800 # remark #981: operands are evaluated in unspecified order
10801 # warning #279: controlling expression is constant
10803 { echo "$as_me:10803: checking for $CC warning options..." >&5
10804 echo "$as_me: checking for $CC warning options..." >&6;}
10805 cf_save_CFLAGS="$CFLAGS"
10806 EXTRA_CFLAGS="-Wall"
10818 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
10819 if { (eval echo "$as_me:10819: \"$ac_compile\"") >&5
10820 (eval $ac_compile) 2>&5
10822 echo "$as_me:10822: \$? = $ac_status" >&5
10823 (exit $ac_status); }; then
10824 test -n "$verbose" && echo "$as_me:10824: result: ... -$cf_opt" >&5
10825 echo "${ECHO_T}... -$cf_opt" >&6
10826 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
10829 CFLAGS="$cf_save_CFLAGS"
10831 elif test "$GCC" = yes
10833 { echo "$as_me:10833: checking for $CC warning options..." >&5
10834 echo "$as_me: checking for $CC warning options..." >&6;}
10835 cf_save_CFLAGS="$CFLAGS"
10836 EXTRA_CFLAGS="-W -Wall"
10838 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
10840 Wbad-function-cast \
10844 Wmissing-declarations \
10845 Wmissing-prototypes \
10849 Wstrict-prototypes \
10850 Wundef $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum
10852 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
10853 if { (eval echo "$as_me:10853: \"$ac_compile\"") >&5
10854 (eval $ac_compile) 2>&5
10856 echo "$as_me:10856: \$? = $ac_status" >&5
10857 (exit $ac_status); }; then
10858 test -n "$verbose" && echo "$as_me:10858: result: ... -$cf_opt" >&5
10859 echo "${ECHO_T}... -$cf_opt" >&6
10860 case $cf_opt in #(vi
10862 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
10865 case $GCC_VERSION in
10867 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
10869 echo "${as_me-configure}:10869: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
10875 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
10878 CFLAGS="$cf_save_CFLAGS"
10882 if test "$cf_with_cxx" = yes ; then
10886 if test "$GCC" = yes ; then
10889 echo "$as_me:10889: checking if this is really Intel C++ compiler" >&5
10890 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
10891 cf_save_CFLAGS="$CXXFLAGS"
10892 CXXFLAGS="$CXXFLAGS -no-gcc"
10893 cat >conftest.$ac_ext <<_ACEOF
10894 #line 10894 "configure"
10895 #include "confdefs.h"
10901 #ifdef __INTEL_COMPILER
10910 rm -f conftest.$ac_objext
10911 if { (eval echo "$as_me:10911: \"$ac_compile\"") >&5
10912 (eval $ac_compile) 2>&5
10914 echo "$as_me:10914: \$? = $ac_status" >&5
10915 (exit $ac_status); } &&
10916 { ac_try='test -s conftest.$ac_objext'
10917 { (eval echo "$as_me:10917: \"$ac_try\"") >&5
10918 (eval $ac_try) 2>&5
10920 echo "$as_me:10920: \$? = $ac_status" >&5
10921 (exit $ac_status); }; }; then
10922 INTEL_CPLUSPLUS=yes
10923 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
10926 echo "$as_me: failed program was:" >&5
10927 cat conftest.$ac_ext >&5
10929 rm -f conftest.$ac_objext conftest.$ac_ext
10930 CXXFLAGS="$cf_save_CFLAGS"
10931 echo "$as_me:10931: result: $INTEL_CPLUSPLUS" >&5
10932 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
10938 ac_cpp='$CXXCPP $CPPFLAGS'
10939 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10940 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10941 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10942 ac_main_return=return
10944 cat > conftest.$ac_ext <<EOF
10945 #line 10945 "configure"
10946 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
10949 if test "$INTEL_CPLUSPLUS" = yes
10951 # The "-wdXXX" options suppress warnings:
10952 # remark #1419: external declaration in primary source file
10953 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
10954 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
10955 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
10956 # remark #193: zero used for undefined preprocessing identifier
10957 # remark #593: variable "curs_sb_left_arrow" was set but never used
10958 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
10959 # remark #869: parameter "tw" was never referenced
10960 # remark #981: operands are evaluated in unspecified order
10961 # warning #269: invalid format string conversion
10963 { echo "$as_me:10963: checking for $CC warning options..." >&5
10964 echo "$as_me: checking for $CC warning options..." >&6;}
10965 cf_save_CXXFLAGS="$CXXFLAGS"
10966 EXTRA_CXXFLAGS="-Wall"
10979 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
10980 if { (eval echo "$as_me:10980: \"$ac_compile\"") >&5
10981 (eval $ac_compile) 2>&5
10983 echo "$as_me:10983: \$? = $ac_status" >&5
10984 (exit $ac_status); }; then
10985 test -n "$verbose" && echo "$as_me:10985: result: ... -$cf_opt" >&5
10986 echo "${ECHO_T}... -$cf_opt" >&6
10987 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
10990 CXXFLAGS="$cf_save_CXXFLAGS"
10992 elif test "$GXX" = yes
10994 { echo "$as_me:10994: checking for $CXX warning options..." >&5
10995 echo "$as_me: checking for $CXX warning options..." >&6;}
10996 cf_save_CXXFLAGS="$CXXFLAGS"
10997 EXTRA_CXXFLAGS="-W -Wall"
10998 cf_gxx_extra_warnings=""
10999 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
11000 case "$GCC_VERSION" in
11004 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
11010 Woverloaded-virtual \
11016 Wmissing-prototypes \
11019 Wstrict-prototypes \
11020 Wundef $cf_gxx_extra_warnings Wno-unused
11022 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
11023 if { (eval echo "$as_me:11023: \"$ac_compile\"") >&5
11024 (eval $ac_compile) 2>&5
11026 echo "$as_me:11026: \$? = $ac_status" >&5
11027 (exit $ac_status); }; then
11028 test -n "$verbose" && echo "$as_me:11028: result: ... -$cf_opt" >&5
11029 echo "${ECHO_T}... -$cf_opt" >&6
11030 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
11032 test -n "$verbose" && echo "$as_me:11032: result: ... no -$cf_opt" >&5
11033 echo "${ECHO_T}... no -$cf_opt" >&6
11036 CXXFLAGS="$cf_save_CXXFLAGS"
11041 ac_cpp='$CPP $CPPFLAGS'
11042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11045 ac_main_return=return
11050 if test "$GCC" = yes
11052 cat > conftest.i <<EOF
11054 #define GCC_PRINTF 0
11057 #define GCC_SCANF 0
11059 #ifndef GCC_NORETURN
11060 #define GCC_NORETURN /* nothing */
11063 #define GCC_UNUSED /* nothing */
11066 if test "$GCC" = yes
11068 { echo "$as_me:11068: checking for $CC __attribute__ directives..." >&5
11069 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
11070 cat > conftest.$ac_ext <<EOF
11071 #line 11071 "${as_me-configure}"
11072 #include "confdefs.h"
11073 #include "conftest.h"
11074 #include "conftest.i"
11076 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
11078 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
11081 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
11083 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
11085 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
11086 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
11087 extern void foo(void) GCC_NORETURN;
11088 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
11090 cf_printf_attribute=no
11091 cf_scanf_attribute=no
11092 for cf_attribute in scanf printf unused noreturn
11095 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
11097 cf_directive="__attribute__(($cf_attribute))"
11098 echo "checking for $CC $cf_directive" 1>&5
11100 case $cf_attribute in #(vi
11102 cf_printf_attribute=yes
11103 cat >conftest.h <<EOF
11104 #define GCC_$cf_ATTRIBUTE 1
11108 cf_scanf_attribute=yes
11109 cat >conftest.h <<EOF
11110 #define GCC_$cf_ATTRIBUTE 1
11114 cat >conftest.h <<EOF
11115 #define GCC_$cf_ATTRIBUTE $cf_directive
11120 if { (eval echo "$as_me:11120: \"$ac_compile\"") >&5
11121 (eval $ac_compile) 2>&5
11123 echo "$as_me:11123: \$? = $ac_status" >&5
11124 (exit $ac_status); }; then
11125 test -n "$verbose" && echo "$as_me:11125: result: ... $cf_attribute" >&5
11126 echo "${ECHO_T}... $cf_attribute" >&6
11127 cat conftest.h >>confdefs.h
11128 case $cf_attribute in #(vi
11130 if test "$cf_printf_attribute" = no ; then
11131 cat >>confdefs.h <<EOF
11132 #define GCC_PRINTFLIKE(fmt,var) /* nothing */
11135 cat >>confdefs.h <<EOF
11136 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
11141 if test "$cf_scanf_attribute" = no ; then
11142 cat >>confdefs.h <<EOF
11143 #define GCC_SCANFLIKE(fmt,var) /* nothing */
11146 cat >>confdefs.h <<EOF
11147 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
11155 fgrep define conftest.i >>confdefs.h
11160 ### use option --enable-assertions to turn on generation of assertion code
11161 echo "$as_me:11161: checking if you want to enable runtime assertions" >&5
11162 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
11164 # Check whether --enable-assertions or --disable-assertions was given.
11165 if test "${enable_assertions+set}" = set; then
11166 enableval="$enable_assertions"
11167 with_assertions=$enableval
11171 echo "$as_me:11171: result: $with_assertions" >&5
11172 echo "${ECHO_T}$with_assertions" >&6
11175 if test "$with_assertions" = no
11177 cat >>confdefs.h <<\EOF
11181 CPPFLAGS="$CPPFLAGS -DNDEBUG"
11183 ADAFLAGS="$ADAFLAGS -gnata"
11187 ### use option --disable-leaks to suppress "permanent" leaks, for testing
11189 echo "$as_me:11189: checking if you want to use dmalloc for testing" >&5
11190 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
11192 # Check whether --with-dmalloc or --without-dmalloc was given.
11193 if test "${with_dmalloc+set}" = set; then
11194 withval="$with_dmalloc"
11195 cat >>confdefs.h <<\EOF
11196 #define USE_DMALLOC 1
11199 : ${with_cflags:=-g}
11200 : ${with_no_leaks:=yes}
11205 echo "$as_me:11205: result: ${with_dmalloc:-no}" >&5
11206 echo "${ECHO_T}${with_dmalloc:-no}" >&6
11208 case .$with_cflags in #(vi
11210 case .$CFLAGS in #(vi
11218 cf_new_extra_cppflags=
11220 for cf_add_cflags in -g
11222 case $cf_fix_cppflags in
11224 case $cf_add_cflags in #(vi
11225 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11226 case $cf_add_cflags in
11228 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11230 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11231 && test -z "${cf_tst_cflags}" \
11232 && cf_fix_cppflags=yes
11234 if test $cf_fix_cppflags = yes ; then
11235 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11237 elif test "${cf_tst_cflags}" = "\"'" ; then
11238 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11243 case "$CPPFLAGS" in
11244 *$cf_add_cflags) #(vi
11247 case $cf_add_cflags in #(vi
11249 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11251 CPPFLAGS=`echo "$CPPFLAGS" | \
11252 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11253 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11257 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11262 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11267 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11269 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11271 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11272 && test -z "${cf_tst_cflags}" \
11273 && cf_fix_cppflags=no
11278 if test -n "$cf_new_cflags" ; then
11280 CFLAGS="$CFLAGS $cf_new_cflags"
11283 if test -n "$cf_new_cppflags" ; then
11285 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11288 if test -n "$cf_new_extra_cppflags" ; then
11290 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11298 if test "$with_dmalloc" = yes ; then
11299 echo "$as_me:11299: checking for dmalloc.h" >&5
11300 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
11301 if test "${ac_cv_header_dmalloc_h+set}" = set; then
11302 echo $ECHO_N "(cached) $ECHO_C" >&6
11304 cat >conftest.$ac_ext <<_ACEOF
11305 #line 11305 "configure"
11306 #include "confdefs.h"
11307 #include <dmalloc.h>
11309 if { (eval echo "$as_me:11309: \"$ac_cpp conftest.$ac_ext\"") >&5
11310 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11312 egrep -v '^ *\+' conftest.er1 >conftest.err
11314 cat conftest.err >&5
11315 echo "$as_me:11315: \$? = $ac_status" >&5
11316 (exit $ac_status); } >/dev/null; then
11317 if test -s conftest.err; then
11318 ac_cpp_err=$ac_c_preproc_warn_flag
11325 if test -z "$ac_cpp_err"; then
11326 ac_cv_header_dmalloc_h=yes
11328 echo "$as_me: failed program was:" >&5
11329 cat conftest.$ac_ext >&5
11330 ac_cv_header_dmalloc_h=no
11332 rm -f conftest.err conftest.$ac_ext
11334 echo "$as_me:11334: result: $ac_cv_header_dmalloc_h" >&5
11335 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
11336 if test $ac_cv_header_dmalloc_h = yes; then
11338 echo "$as_me:11338: checking for dmalloc_debug in -ldmalloc" >&5
11339 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
11340 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
11341 echo $ECHO_N "(cached) $ECHO_C" >&6
11343 ac_check_lib_save_LIBS=$LIBS
11344 LIBS="-ldmalloc $LIBS"
11345 cat >conftest.$ac_ext <<_ACEOF
11346 #line 11346 "configure"
11347 #include "confdefs.h"
11349 /* Override any gcc2 internal prototype to avoid an error. */
11353 /* We use char because int might match the return type of a gcc2
11354 builtin and then its argument prototype would still apply. */
11355 char dmalloc_debug ();
11364 rm -f conftest.$ac_objext conftest$ac_exeext
11365 if { (eval echo "$as_me:11365: \"$ac_link\"") >&5
11366 (eval $ac_link) 2>&5
11368 echo "$as_me:11368: \$? = $ac_status" >&5
11369 (exit $ac_status); } &&
11370 { ac_try='test -s conftest$ac_exeext'
11371 { (eval echo "$as_me:11371: \"$ac_try\"") >&5
11372 (eval $ac_try) 2>&5
11374 echo "$as_me:11374: \$? = $ac_status" >&5
11375 (exit $ac_status); }; }; then
11376 ac_cv_lib_dmalloc_dmalloc_debug=yes
11378 echo "$as_me: failed program was:" >&5
11379 cat conftest.$ac_ext >&5
11380 ac_cv_lib_dmalloc_dmalloc_debug=no
11382 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11383 LIBS=$ac_check_lib_save_LIBS
11385 echo "$as_me:11385: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
11386 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
11387 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
11388 cat >>confdefs.h <<EOF
11389 #define HAVE_LIBDMALLOC 1
11392 LIBS="-ldmalloc $LIBS"
11400 echo "$as_me:11400: checking if you want to use dbmalloc for testing" >&5
11401 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
11403 # Check whether --with-dbmalloc or --without-dbmalloc was given.
11404 if test "${with_dbmalloc+set}" = set; then
11405 withval="$with_dbmalloc"
11406 cat >>confdefs.h <<\EOF
11407 #define USE_DBMALLOC 1
11410 : ${with_cflags:=-g}
11411 : ${with_no_leaks:=yes}
11416 echo "$as_me:11416: result: ${with_dbmalloc:-no}" >&5
11417 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
11419 case .$with_cflags in #(vi
11421 case .$CFLAGS in #(vi
11429 cf_new_extra_cppflags=
11431 for cf_add_cflags in -g
11433 case $cf_fix_cppflags in
11435 case $cf_add_cflags in #(vi
11436 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11437 case $cf_add_cflags in
11439 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11441 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11442 && test -z "${cf_tst_cflags}" \
11443 && cf_fix_cppflags=yes
11445 if test $cf_fix_cppflags = yes ; then
11446 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11448 elif test "${cf_tst_cflags}" = "\"'" ; then
11449 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11454 case "$CPPFLAGS" in
11455 *$cf_add_cflags) #(vi
11458 case $cf_add_cflags in #(vi
11460 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11462 CPPFLAGS=`echo "$CPPFLAGS" | \
11463 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11464 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11468 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11473 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11478 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11480 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11482 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11483 && test -z "${cf_tst_cflags}" \
11484 && cf_fix_cppflags=no
11489 if test -n "$cf_new_cflags" ; then
11491 CFLAGS="$CFLAGS $cf_new_cflags"
11494 if test -n "$cf_new_cppflags" ; then
11496 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11499 if test -n "$cf_new_extra_cppflags" ; then
11501 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11509 if test "$with_dbmalloc" = yes ; then
11510 echo "$as_me:11510: checking for dbmalloc.h" >&5
11511 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
11512 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
11513 echo $ECHO_N "(cached) $ECHO_C" >&6
11515 cat >conftest.$ac_ext <<_ACEOF
11516 #line 11516 "configure"
11517 #include "confdefs.h"
11518 #include <dbmalloc.h>
11520 if { (eval echo "$as_me:11520: \"$ac_cpp conftest.$ac_ext\"") >&5
11521 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11523 egrep -v '^ *\+' conftest.er1 >conftest.err
11525 cat conftest.err >&5
11526 echo "$as_me:11526: \$? = $ac_status" >&5
11527 (exit $ac_status); } >/dev/null; then
11528 if test -s conftest.err; then
11529 ac_cpp_err=$ac_c_preproc_warn_flag
11536 if test -z "$ac_cpp_err"; then
11537 ac_cv_header_dbmalloc_h=yes
11539 echo "$as_me: failed program was:" >&5
11540 cat conftest.$ac_ext >&5
11541 ac_cv_header_dbmalloc_h=no
11543 rm -f conftest.err conftest.$ac_ext
11545 echo "$as_me:11545: result: $ac_cv_header_dbmalloc_h" >&5
11546 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
11547 if test $ac_cv_header_dbmalloc_h = yes; then
11549 echo "$as_me:11549: checking for debug_malloc in -ldbmalloc" >&5
11550 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
11551 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
11552 echo $ECHO_N "(cached) $ECHO_C" >&6
11554 ac_check_lib_save_LIBS=$LIBS
11555 LIBS="-ldbmalloc $LIBS"
11556 cat >conftest.$ac_ext <<_ACEOF
11557 #line 11557 "configure"
11558 #include "confdefs.h"
11560 /* Override any gcc2 internal prototype to avoid an error. */
11564 /* We use char because int might match the return type of a gcc2
11565 builtin and then its argument prototype would still apply. */
11566 char debug_malloc ();
11575 rm -f conftest.$ac_objext conftest$ac_exeext
11576 if { (eval echo "$as_me:11576: \"$ac_link\"") >&5
11577 (eval $ac_link) 2>&5
11579 echo "$as_me:11579: \$? = $ac_status" >&5
11580 (exit $ac_status); } &&
11581 { ac_try='test -s conftest$ac_exeext'
11582 { (eval echo "$as_me:11582: \"$ac_try\"") >&5
11583 (eval $ac_try) 2>&5
11585 echo "$as_me:11585: \$? = $ac_status" >&5
11586 (exit $ac_status); }; }; then
11587 ac_cv_lib_dbmalloc_debug_malloc=yes
11589 echo "$as_me: failed program was:" >&5
11590 cat conftest.$ac_ext >&5
11591 ac_cv_lib_dbmalloc_debug_malloc=no
11593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11594 LIBS=$ac_check_lib_save_LIBS
11596 echo "$as_me:11596: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
11597 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
11598 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
11599 cat >>confdefs.h <<EOF
11600 #define HAVE_LIBDBMALLOC 1
11603 LIBS="-ldbmalloc $LIBS"
11611 echo "$as_me:11611: checking if you want to use valgrind for testing" >&5
11612 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
11614 # Check whether --with-valgrind or --without-valgrind was given.
11615 if test "${with_valgrind+set}" = set; then
11616 withval="$with_valgrind"
11617 cat >>confdefs.h <<\EOF
11618 #define USE_VALGRIND 1
11621 : ${with_cflags:=-g}
11622 : ${with_no_leaks:=yes}
11627 echo "$as_me:11627: result: ${with_valgrind:-no}" >&5
11628 echo "${ECHO_T}${with_valgrind:-no}" >&6
11630 case .$with_cflags in #(vi
11632 case .$CFLAGS in #(vi
11640 cf_new_extra_cppflags=
11642 for cf_add_cflags in -g
11644 case $cf_fix_cppflags in
11646 case $cf_add_cflags in #(vi
11647 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11648 case $cf_add_cflags in
11650 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11652 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11653 && test -z "${cf_tst_cflags}" \
11654 && cf_fix_cppflags=yes
11656 if test $cf_fix_cppflags = yes ; then
11657 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11659 elif test "${cf_tst_cflags}" = "\"'" ; then
11660 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11665 case "$CPPFLAGS" in
11666 *$cf_add_cflags) #(vi
11669 case $cf_add_cflags in #(vi
11671 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11673 CPPFLAGS=`echo "$CPPFLAGS" | \
11674 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11675 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11679 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11684 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11689 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11691 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11693 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11694 && test -z "${cf_tst_cflags}" \
11695 && cf_fix_cppflags=no
11700 if test -n "$cf_new_cflags" ; then
11702 CFLAGS="$CFLAGS $cf_new_cflags"
11705 if test -n "$cf_new_cppflags" ; then
11707 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11710 if test -n "$cf_new_extra_cppflags" ; then
11712 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11720 echo "$as_me:11720: checking if you want to perform memory-leak testing" >&5
11721 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
11723 # Check whether --enable-leaks or --disable-leaks was given.
11724 if test "${enable_leaks+set}" = set; then
11725 enableval="$enable_leaks"
11726 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
11728 : ${with_no_leaks:=no}
11730 echo "$as_me:11730: result: $with_no_leaks" >&5
11731 echo "${ECHO_T}$with_no_leaks" >&6
11733 if test "$with_no_leaks" = yes ; then
11734 cat >>confdefs.h <<\EOF
11740 cat >>confdefs.h <<\EOF
11741 #define HAVE_NC_ALLOC_H 1
11744 ### use option --enable-expanded to generate certain macros as functions
11746 # Check whether --enable-expanded or --disable-expanded was given.
11747 if test "${enable_expanded+set}" = set; then
11748 enableval="$enable_expanded"
11749 test "$enableval" = yes && cat >>confdefs.h <<\EOF
11750 #define NCURSES_EXPANDED 1
11755 ### use option --disable-macros to suppress macros in favor of functions
11757 # Check whether --enable-macros or --disable-macros was given.
11758 if test "${enable_macros+set}" = set; then
11759 enableval="$enable_macros"
11760 test "$enableval" = no && cat >>confdefs.h <<\EOF
11761 #define NCURSES_NOMACROS 1
11766 # Normally we only add trace() to the debug-library. Allow this to be
11767 # extended to all models of the ncurses library:
11769 case "$CFLAGS $CPPFLAGS" in
11775 echo "$as_me:11775: checking whether to add trace feature to all models" >&5
11776 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
11778 # Check whether --with-trace or --without-trace was given.
11779 if test "${with_trace+set}" = set; then
11780 withval="$with_trace"
11781 cf_with_trace=$withval
11783 cf_with_trace=$cf_all_traces
11785 echo "$as_me:11785: result: $cf_with_trace" >&5
11786 echo "${ECHO_T}$cf_with_trace" >&6
11788 if test "$cf_with_trace" = yes ; then
11795 cf_new_extra_cppflags=
11797 for cf_add_cflags in -DTRACE
11799 case $cf_fix_cppflags in
11801 case $cf_add_cflags in #(vi
11802 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11803 case $cf_add_cflags in
11805 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11807 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11808 && test -z "${cf_tst_cflags}" \
11809 && cf_fix_cppflags=yes
11811 if test $cf_fix_cppflags = yes ; then
11812 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11814 elif test "${cf_tst_cflags}" = "\"'" ; then
11815 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11820 case "$CPPFLAGS" in
11821 *$cf_add_cflags) #(vi
11824 case $cf_add_cflags in #(vi
11826 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11828 CPPFLAGS=`echo "$CPPFLAGS" | \
11829 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11830 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11834 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11839 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11844 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11846 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11848 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11849 && test -z "${cf_tst_cflags}" \
11850 && cf_fix_cppflags=no
11855 if test -n "$cf_new_cflags" ; then
11857 CFLAGS="$CFLAGS $cf_new_cflags"
11860 if test -n "$cf_new_cppflags" ; then
11862 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11865 if test -n "$cf_new_extra_cppflags" ; then
11867 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11875 ### Checks for libraries.
11876 case $cf_cv_system_name in #(vi
11880 echo "$as_me:11880: checking for gettimeofday" >&5
11881 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
11882 if test "${ac_cv_func_gettimeofday+set}" = set; then
11883 echo $ECHO_N "(cached) $ECHO_C" >&6
11885 cat >conftest.$ac_ext <<_ACEOF
11886 #line 11886 "configure"
11887 #include "confdefs.h"
11888 /* System header to define __stub macros and hopefully few prototypes,
11889 which can conflict with char gettimeofday (); below. */
11890 #include <assert.h>
11891 /* Override any gcc2 internal prototype to avoid an error. */
11895 /* We use char because int might match the return type of a gcc2
11896 builtin and then its argument prototype would still apply. */
11897 char gettimeofday ();
11903 /* The GNU C library defines this for functions which it implements
11904 to always fail with ENOSYS. Some functions are actually named
11905 something starting with __ and the normal name is an alias. */
11906 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
11916 rm -f conftest.$ac_objext conftest$ac_exeext
11917 if { (eval echo "$as_me:11917: \"$ac_link\"") >&5
11918 (eval $ac_link) 2>&5
11920 echo "$as_me:11920: \$? = $ac_status" >&5
11921 (exit $ac_status); } &&
11922 { ac_try='test -s conftest$ac_exeext'
11923 { (eval echo "$as_me:11923: \"$ac_try\"") >&5
11924 (eval $ac_try) 2>&5
11926 echo "$as_me:11926: \$? = $ac_status" >&5
11927 (exit $ac_status); }; }; then
11928 ac_cv_func_gettimeofday=yes
11930 echo "$as_me: failed program was:" >&5
11931 cat conftest.$ac_ext >&5
11932 ac_cv_func_gettimeofday=no
11934 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11936 echo "$as_me:11936: result: $ac_cv_func_gettimeofday" >&5
11937 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
11938 if test $ac_cv_func_gettimeofday = yes; then
11939 cat >>confdefs.h <<\EOF
11940 #define HAVE_GETTIMEOFDAY 1
11945 echo "$as_me:11945: checking for gettimeofday in -lbsd" >&5
11946 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
11947 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
11948 echo $ECHO_N "(cached) $ECHO_C" >&6
11950 ac_check_lib_save_LIBS=$LIBS
11952 cat >conftest.$ac_ext <<_ACEOF
11953 #line 11953 "configure"
11954 #include "confdefs.h"
11956 /* Override any gcc2 internal prototype to avoid an error. */
11960 /* We use char because int might match the return type of a gcc2
11961 builtin and then its argument prototype would still apply. */
11962 char gettimeofday ();
11971 rm -f conftest.$ac_objext conftest$ac_exeext
11972 if { (eval echo "$as_me:11972: \"$ac_link\"") >&5
11973 (eval $ac_link) 2>&5
11975 echo "$as_me:11975: \$? = $ac_status" >&5
11976 (exit $ac_status); } &&
11977 { ac_try='test -s conftest$ac_exeext'
11978 { (eval echo "$as_me:11978: \"$ac_try\"") >&5
11979 (eval $ac_try) 2>&5
11981 echo "$as_me:11981: \$? = $ac_status" >&5
11982 (exit $ac_status); }; }; then
11983 ac_cv_lib_bsd_gettimeofday=yes
11985 echo "$as_me: failed program was:" >&5
11986 cat conftest.$ac_ext >&5
11987 ac_cv_lib_bsd_gettimeofday=no
11989 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11990 LIBS=$ac_check_lib_save_LIBS
11992 echo "$as_me:11992: result: $ac_cv_lib_bsd_gettimeofday" >&5
11993 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
11994 if test $ac_cv_lib_bsd_gettimeofday = yes; then
11995 cat >>confdefs.h <<\EOF
11996 #define HAVE_GETTIMEOFDAY 1
12006 echo "$as_me:12006: checking if -lm needed for math functions" >&5
12007 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
12008 if test "${cf_cv_need_libm+set}" = set; then
12009 echo $ECHO_N "(cached) $ECHO_C" >&6
12012 cat >conftest.$ac_ext <<_ACEOF
12013 #line 12013 "configure"
12014 #include "confdefs.h"
12022 double x = rand(); printf("result = %g\n", sin(x))
12027 rm -f conftest.$ac_objext conftest$ac_exeext
12028 if { (eval echo "$as_me:12028: \"$ac_link\"") >&5
12029 (eval $ac_link) 2>&5
12031 echo "$as_me:12031: \$? = $ac_status" >&5
12032 (exit $ac_status); } &&
12033 { ac_try='test -s conftest$ac_exeext'
12034 { (eval echo "$as_me:12034: \"$ac_try\"") >&5
12035 (eval $ac_try) 2>&5
12037 echo "$as_me:12037: \$? = $ac_status" >&5
12038 (exit $ac_status); }; }; then
12041 echo "$as_me: failed program was:" >&5
12042 cat conftest.$ac_ext >&5
12043 cf_cv_need_libm=yes
12045 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12047 echo "$as_me:12047: result: $cf_cv_need_libm" >&5
12048 echo "${ECHO_T}$cf_cv_need_libm" >&6
12049 if test "$cf_cv_need_libm" = yes
12054 ### Checks for header files.
12055 echo "$as_me:12055: checking for ANSI C header files" >&5
12056 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12057 if test "${ac_cv_header_stdc+set}" = set; then
12058 echo $ECHO_N "(cached) $ECHO_C" >&6
12060 cat >conftest.$ac_ext <<_ACEOF
12061 #line 12061 "configure"
12062 #include "confdefs.h"
12063 #include <stdlib.h>
12064 #include <stdarg.h>
12065 #include <string.h>
12069 if { (eval echo "$as_me:12069: \"$ac_cpp conftest.$ac_ext\"") >&5
12070 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12072 egrep -v '^ *\+' conftest.er1 >conftest.err
12074 cat conftest.err >&5
12075 echo "$as_me:12075: \$? = $ac_status" >&5
12076 (exit $ac_status); } >/dev/null; then
12077 if test -s conftest.err; then
12078 ac_cpp_err=$ac_c_preproc_warn_flag
12085 if test -z "$ac_cpp_err"; then
12086 ac_cv_header_stdc=yes
12088 echo "$as_me: failed program was:" >&5
12089 cat conftest.$ac_ext >&5
12090 ac_cv_header_stdc=no
12092 rm -f conftest.err conftest.$ac_ext
12094 if test $ac_cv_header_stdc = yes; then
12095 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12096 cat >conftest.$ac_ext <<_ACEOF
12097 #line 12097 "configure"
12098 #include "confdefs.h"
12099 #include <string.h>
12102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12103 egrep "memchr" >/dev/null 2>&1; then
12106 ac_cv_header_stdc=no
12112 if test $ac_cv_header_stdc = yes; then
12113 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12114 cat >conftest.$ac_ext <<_ACEOF
12115 #line 12115 "configure"
12116 #include "confdefs.h"
12117 #include <stdlib.h>
12120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12121 egrep "free" >/dev/null 2>&1; then
12124 ac_cv_header_stdc=no
12130 if test $ac_cv_header_stdc = yes; then
12131 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12132 if test "$cross_compiling" = yes; then
12135 cat >conftest.$ac_ext <<_ACEOF
12136 #line 12136 "configure"
12137 #include "confdefs.h"
12139 #if ((' ' & 0x0FF) == 0x020)
12140 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12141 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12143 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
12144 || ('j' <= (c) && (c) <= 'r') \
12145 || ('s' <= (c) && (c) <= 'z'))
12146 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12149 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12154 for (i = 0; i < 256; i++)
12155 if (XOR (islower (i), ISLOWER (i))
12156 || toupper (i) != TOUPPER (i))
12157 $ac_main_return(2);
12158 $ac_main_return (0);
12161 rm -f conftest$ac_exeext
12162 if { (eval echo "$as_me:12162: \"$ac_link\"") >&5
12163 (eval $ac_link) 2>&5
12165 echo "$as_me:12165: \$? = $ac_status" >&5
12166 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12167 { (eval echo "$as_me:12167: \"$ac_try\"") >&5
12168 (eval $ac_try) 2>&5
12170 echo "$as_me:12170: \$? = $ac_status" >&5
12171 (exit $ac_status); }; }; then
12174 echo "$as_me: program exited with status $ac_status" >&5
12175 echo "$as_me: failed program was:" >&5
12176 cat conftest.$ac_ext >&5
12177 ac_cv_header_stdc=no
12179 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12183 echo "$as_me:12183: result: $ac_cv_header_stdc" >&5
12184 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12185 if test $ac_cv_header_stdc = yes; then
12187 cat >>confdefs.h <<\EOF
12188 #define STDC_HEADERS 1
12193 ac_header_dirent=no
12194 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12195 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12196 echo "$as_me:12196: checking for $ac_hdr that defines DIR" >&5
12197 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
12198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12199 echo $ECHO_N "(cached) $ECHO_C" >&6
12201 cat >conftest.$ac_ext <<_ACEOF
12202 #line 12202 "configure"
12203 #include "confdefs.h"
12204 #include <sys/types.h>
12216 rm -f conftest.$ac_objext
12217 if { (eval echo "$as_me:12217: \"$ac_compile\"") >&5
12218 (eval $ac_compile) 2>&5
12220 echo "$as_me:12220: \$? = $ac_status" >&5
12221 (exit $ac_status); } &&
12222 { ac_try='test -s conftest.$ac_objext'
12223 { (eval echo "$as_me:12223: \"$ac_try\"") >&5
12224 (eval $ac_try) 2>&5
12226 echo "$as_me:12226: \$? = $ac_status" >&5
12227 (exit $ac_status); }; }; then
12228 eval "$as_ac_Header=yes"
12230 echo "$as_me: failed program was:" >&5
12231 cat conftest.$ac_ext >&5
12232 eval "$as_ac_Header=no"
12234 rm -f conftest.$ac_objext conftest.$ac_ext
12236 echo "$as_me:12236: result: `eval echo '${'$as_ac_Header'}'`" >&5
12237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12239 cat >>confdefs.h <<EOF
12240 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12243 ac_header_dirent=$ac_hdr; break
12247 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12248 if test $ac_header_dirent = dirent.h; then
12249 echo "$as_me:12249: checking for opendir in -ldir" >&5
12250 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
12251 if test "${ac_cv_lib_dir_opendir+set}" = set; then
12252 echo $ECHO_N "(cached) $ECHO_C" >&6
12254 ac_check_lib_save_LIBS=$LIBS
12256 cat >conftest.$ac_ext <<_ACEOF
12257 #line 12257 "configure"
12258 #include "confdefs.h"
12260 /* Override any gcc2 internal prototype to avoid an error. */
12264 /* We use char because int might match the return type of a gcc2
12265 builtin and then its argument prototype would still apply. */
12275 rm -f conftest.$ac_objext conftest$ac_exeext
12276 if { (eval echo "$as_me:12276: \"$ac_link\"") >&5
12277 (eval $ac_link) 2>&5
12279 echo "$as_me:12279: \$? = $ac_status" >&5
12280 (exit $ac_status); } &&
12281 { ac_try='test -s conftest$ac_exeext'
12282 { (eval echo "$as_me:12282: \"$ac_try\"") >&5
12283 (eval $ac_try) 2>&5
12285 echo "$as_me:12285: \$? = $ac_status" >&5
12286 (exit $ac_status); }; }; then
12287 ac_cv_lib_dir_opendir=yes
12289 echo "$as_me: failed program was:" >&5
12290 cat conftest.$ac_ext >&5
12291 ac_cv_lib_dir_opendir=no
12293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12294 LIBS=$ac_check_lib_save_LIBS
12296 echo "$as_me:12296: result: $ac_cv_lib_dir_opendir" >&5
12297 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
12298 if test $ac_cv_lib_dir_opendir = yes; then
12303 echo "$as_me:12303: checking for opendir in -lx" >&5
12304 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
12305 if test "${ac_cv_lib_x_opendir+set}" = set; then
12306 echo $ECHO_N "(cached) $ECHO_C" >&6
12308 ac_check_lib_save_LIBS=$LIBS
12310 cat >conftest.$ac_ext <<_ACEOF
12311 #line 12311 "configure"
12312 #include "confdefs.h"
12314 /* Override any gcc2 internal prototype to avoid an error. */
12318 /* We use char because int might match the return type of a gcc2
12319 builtin and then its argument prototype would still apply. */
12329 rm -f conftest.$ac_objext conftest$ac_exeext
12330 if { (eval echo "$as_me:12330: \"$ac_link\"") >&5
12331 (eval $ac_link) 2>&5
12333 echo "$as_me:12333: \$? = $ac_status" >&5
12334 (exit $ac_status); } &&
12335 { ac_try='test -s conftest$ac_exeext'
12336 { (eval echo "$as_me:12336: \"$ac_try\"") >&5
12337 (eval $ac_try) 2>&5
12339 echo "$as_me:12339: \$? = $ac_status" >&5
12340 (exit $ac_status); }; }; then
12341 ac_cv_lib_x_opendir=yes
12343 echo "$as_me: failed program was:" >&5
12344 cat conftest.$ac_ext >&5
12345 ac_cv_lib_x_opendir=no
12347 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12348 LIBS=$ac_check_lib_save_LIBS
12350 echo "$as_me:12350: result: $ac_cv_lib_x_opendir" >&5
12351 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
12352 if test $ac_cv_lib_x_opendir = yes; then
12358 echo "$as_me:12358: checking whether time.h and sys/time.h may both be included" >&5
12359 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
12360 if test "${ac_cv_header_time+set}" = set; then
12361 echo $ECHO_N "(cached) $ECHO_C" >&6
12363 cat >conftest.$ac_ext <<_ACEOF
12364 #line 12364 "configure"
12365 #include "confdefs.h"
12366 #include <sys/types.h>
12367 #include <sys/time.h>
12373 if ((struct tm *) 0)
12379 rm -f conftest.$ac_objext
12380 if { (eval echo "$as_me:12380: \"$ac_compile\"") >&5
12381 (eval $ac_compile) 2>&5
12383 echo "$as_me:12383: \$? = $ac_status" >&5
12384 (exit $ac_status); } &&
12385 { ac_try='test -s conftest.$ac_objext'
12386 { (eval echo "$as_me:12386: \"$ac_try\"") >&5
12387 (eval $ac_try) 2>&5
12389 echo "$as_me:12389: \$? = $ac_status" >&5
12390 (exit $ac_status); }; }; then
12391 ac_cv_header_time=yes
12393 echo "$as_me: failed program was:" >&5
12394 cat conftest.$ac_ext >&5
12395 ac_cv_header_time=no
12397 rm -f conftest.$ac_objext conftest.$ac_ext
12399 echo "$as_me:12399: result: $ac_cv_header_time" >&5
12400 echo "${ECHO_T}$ac_cv_header_time" >&6
12401 if test $ac_cv_header_time = yes; then
12403 cat >>confdefs.h <<\EOF
12404 #define TIME_WITH_SYS_TIME 1
12411 echo "$as_me:12411: checking for regcomp" >&5
12412 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
12413 if test "${ac_cv_func_regcomp+set}" = set; then
12414 echo $ECHO_N "(cached) $ECHO_C" >&6
12416 cat >conftest.$ac_ext <<_ACEOF
12417 #line 12417 "configure"
12418 #include "confdefs.h"
12419 /* System header to define __stub macros and hopefully few prototypes,
12420 which can conflict with char regcomp (); below. */
12421 #include <assert.h>
12422 /* Override any gcc2 internal prototype to avoid an error. */
12426 /* We use char because int might match the return type of a gcc2
12427 builtin and then its argument prototype would still apply. */
12434 /* The GNU C library defines this for functions which it implements
12435 to always fail with ENOSYS. Some functions are actually named
12436 something starting with __ and the normal name is an alias. */
12437 #if defined (__stub_regcomp) || defined (__stub___regcomp)
12447 rm -f conftest.$ac_objext conftest$ac_exeext
12448 if { (eval echo "$as_me:12448: \"$ac_link\"") >&5
12449 (eval $ac_link) 2>&5
12451 echo "$as_me:12451: \$? = $ac_status" >&5
12452 (exit $ac_status); } &&
12453 { ac_try='test -s conftest$ac_exeext'
12454 { (eval echo "$as_me:12454: \"$ac_try\"") >&5
12455 (eval $ac_try) 2>&5
12457 echo "$as_me:12457: \$? = $ac_status" >&5
12458 (exit $ac_status); }; }; then
12459 ac_cv_func_regcomp=yes
12461 echo "$as_me: failed program was:" >&5
12462 cat conftest.$ac_ext >&5
12463 ac_cv_func_regcomp=no
12465 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12467 echo "$as_me:12467: result: $ac_cv_func_regcomp" >&5
12468 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
12469 if test $ac_cv_func_regcomp = yes; then
12470 cf_regex_func=regcomp
12473 for cf_regex_lib in regex re
12475 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
12476 echo "$as_me:12476: checking for regcomp in -l$cf_regex_lib" >&5
12477 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
12478 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
12479 echo $ECHO_N "(cached) $ECHO_C" >&6
12481 ac_check_lib_save_LIBS=$LIBS
12482 LIBS="-l$cf_regex_lib $LIBS"
12483 cat >conftest.$ac_ext <<_ACEOF
12484 #line 12484 "configure"
12485 #include "confdefs.h"
12487 /* Override any gcc2 internal prototype to avoid an error. */
12491 /* We use char because int might match the return type of a gcc2
12492 builtin and then its argument prototype would still apply. */
12502 rm -f conftest.$ac_objext conftest$ac_exeext
12503 if { (eval echo "$as_me:12503: \"$ac_link\"") >&5
12504 (eval $ac_link) 2>&5
12506 echo "$as_me:12506: \$? = $ac_status" >&5
12507 (exit $ac_status); } &&
12508 { ac_try='test -s conftest$ac_exeext'
12509 { (eval echo "$as_me:12509: \"$ac_try\"") >&5
12510 (eval $ac_try) 2>&5
12512 echo "$as_me:12512: \$? = $ac_status" >&5
12513 (exit $ac_status); }; }; then
12514 eval "$as_ac_Lib=yes"
12516 echo "$as_me: failed program was:" >&5
12517 cat conftest.$ac_ext >&5
12518 eval "$as_ac_Lib=no"
12520 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12521 LIBS=$ac_check_lib_save_LIBS
12523 echo "$as_me:12523: result: `eval echo '${'$as_ac_Lib'}'`" >&5
12524 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
12525 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12527 LIBS="-l$cf_regex_lib $LIBS"
12528 cf_regex_func=regcomp
12536 if test "$cf_regex_func" = no ; then
12537 echo "$as_me:12537: checking for compile" >&5
12538 echo $ECHO_N "checking for compile... $ECHO_C" >&6
12539 if test "${ac_cv_func_compile+set}" = set; then
12540 echo $ECHO_N "(cached) $ECHO_C" >&6
12542 cat >conftest.$ac_ext <<_ACEOF
12543 #line 12543 "configure"
12544 #include "confdefs.h"
12545 /* System header to define __stub macros and hopefully few prototypes,
12546 which can conflict with char compile (); below. */
12547 #include <assert.h>
12548 /* Override any gcc2 internal prototype to avoid an error. */
12552 /* We use char because int might match the return type of a gcc2
12553 builtin and then its argument prototype would still apply. */
12560 /* The GNU C library defines this for functions which it implements
12561 to always fail with ENOSYS. Some functions are actually named
12562 something starting with __ and the normal name is an alias. */
12563 #if defined (__stub_compile) || defined (__stub___compile)
12573 rm -f conftest.$ac_objext conftest$ac_exeext
12574 if { (eval echo "$as_me:12574: \"$ac_link\"") >&5
12575 (eval $ac_link) 2>&5
12577 echo "$as_me:12577: \$? = $ac_status" >&5
12578 (exit $ac_status); } &&
12579 { ac_try='test -s conftest$ac_exeext'
12580 { (eval echo "$as_me:12580: \"$ac_try\"") >&5
12581 (eval $ac_try) 2>&5
12583 echo "$as_me:12583: \$? = $ac_status" >&5
12584 (exit $ac_status); }; }; then
12585 ac_cv_func_compile=yes
12587 echo "$as_me: failed program was:" >&5
12588 cat conftest.$ac_ext >&5
12589 ac_cv_func_compile=no
12591 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12593 echo "$as_me:12593: result: $ac_cv_func_compile" >&5
12594 echo "${ECHO_T}$ac_cv_func_compile" >&6
12595 if test $ac_cv_func_compile = yes; then
12596 cf_regex_func=compile
12599 echo "$as_me:12599: checking for compile in -lgen" >&5
12600 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
12601 if test "${ac_cv_lib_gen_compile+set}" = set; then
12602 echo $ECHO_N "(cached) $ECHO_C" >&6
12604 ac_check_lib_save_LIBS=$LIBS
12606 cat >conftest.$ac_ext <<_ACEOF
12607 #line 12607 "configure"
12608 #include "confdefs.h"
12610 /* Override any gcc2 internal prototype to avoid an error. */
12614 /* We use char because int might match the return type of a gcc2
12615 builtin and then its argument prototype would still apply. */
12625 rm -f conftest.$ac_objext conftest$ac_exeext
12626 if { (eval echo "$as_me:12626: \"$ac_link\"") >&5
12627 (eval $ac_link) 2>&5
12629 echo "$as_me:12629: \$? = $ac_status" >&5
12630 (exit $ac_status); } &&
12631 { ac_try='test -s conftest$ac_exeext'
12632 { (eval echo "$as_me:12632: \"$ac_try\"") >&5
12633 (eval $ac_try) 2>&5
12635 echo "$as_me:12635: \$? = $ac_status" >&5
12636 (exit $ac_status); }; }; then
12637 ac_cv_lib_gen_compile=yes
12639 echo "$as_me: failed program was:" >&5
12640 cat conftest.$ac_ext >&5
12641 ac_cv_lib_gen_compile=no
12643 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12644 LIBS=$ac_check_lib_save_LIBS
12646 echo "$as_me:12646: result: $ac_cv_lib_gen_compile" >&5
12647 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
12648 if test $ac_cv_lib_gen_compile = yes; then
12651 cf_regex_func=compile
12658 if test "$cf_regex_func" = no ; then
12659 { echo "$as_me:12659: WARNING: cannot find regular expression library" >&5
12660 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
12663 echo "$as_me:12663: checking for regular-expression headers" >&5
12664 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
12665 if test "${cf_cv_regex_hdrs+set}" = set; then
12666 echo $ECHO_N "(cached) $ECHO_C" >&6
12669 cf_cv_regex_hdrs=no
12670 case $cf_regex_func in #(vi
12672 for cf_regex_hdr in regexp.h regexpr.h
12674 cat >conftest.$ac_ext <<_ACEOF
12675 #line 12675 "configure"
12676 #include "confdefs.h"
12677 #include <$cf_regex_hdr>
12682 char *p = compile("", "", "", 0);
12683 int x = step("", "");
12689 rm -f conftest.$ac_objext conftest$ac_exeext
12690 if { (eval echo "$as_me:12690: \"$ac_link\"") >&5
12691 (eval $ac_link) 2>&5
12693 echo "$as_me:12693: \$? = $ac_status" >&5
12694 (exit $ac_status); } &&
12695 { ac_try='test -s conftest$ac_exeext'
12696 { (eval echo "$as_me:12696: \"$ac_try\"") >&5
12697 (eval $ac_try) 2>&5
12699 echo "$as_me:12699: \$? = $ac_status" >&5
12700 (exit $ac_status); }; }; then
12702 cf_cv_regex_hdrs=$cf_regex_hdr
12706 echo "$as_me: failed program was:" >&5
12707 cat conftest.$ac_ext >&5
12709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12713 for cf_regex_hdr in regex.h
12715 cat >conftest.$ac_ext <<_ACEOF
12716 #line 12716 "configure"
12717 #include "confdefs.h"
12718 #include <sys/types.h>
12719 #include <$cf_regex_hdr>
12725 int x = regcomp(p, "", 0);
12726 int y = regexec(p, "", 0, 0, 0);
12733 rm -f conftest.$ac_objext conftest$ac_exeext
12734 if { (eval echo "$as_me:12734: \"$ac_link\"") >&5
12735 (eval $ac_link) 2>&5
12737 echo "$as_me:12737: \$? = $ac_status" >&5
12738 (exit $ac_status); } &&
12739 { ac_try='test -s conftest$ac_exeext'
12740 { (eval echo "$as_me:12740: \"$ac_try\"") >&5
12741 (eval $ac_try) 2>&5
12743 echo "$as_me:12743: \$? = $ac_status" >&5
12744 (exit $ac_status); }; }; then
12746 cf_cv_regex_hdrs=$cf_regex_hdr
12750 echo "$as_me: failed program was:" >&5
12751 cat conftest.$ac_ext >&5
12753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12759 echo "$as_me:12759: result: $cf_cv_regex_hdrs" >&5
12760 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
12762 case $cf_cv_regex_hdrs in #(vi
12763 no) { echo "$as_me:12763: WARNING: no regular expression header found" >&5
12764 echo "$as_me: WARNING: no regular expression header found" >&2;} ;; #(vi
12765 regex.h) cat >>confdefs.h <<\EOF
12766 #define HAVE_REGEX_H_FUNCS 1
12769 regexp.h) cat >>confdefs.h <<\EOF
12770 #define HAVE_REGEXP_H_FUNCS 1
12773 regexpr.h) cat >>confdefs.h <<\EOF
12774 #define HAVE_REGEXPR_H_FUNCS 1
12797 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12798 echo "$as_me:12798: checking for $ac_header" >&5
12799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12801 echo $ECHO_N "(cached) $ECHO_C" >&6
12803 cat >conftest.$ac_ext <<_ACEOF
12804 #line 12804 "configure"
12805 #include "confdefs.h"
12806 #include <$ac_header>
12808 if { (eval echo "$as_me:12808: \"$ac_cpp conftest.$ac_ext\"") >&5
12809 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12811 egrep -v '^ *\+' conftest.er1 >conftest.err
12813 cat conftest.err >&5
12814 echo "$as_me:12814: \$? = $ac_status" >&5
12815 (exit $ac_status); } >/dev/null; then
12816 if test -s conftest.err; then
12817 ac_cpp_err=$ac_c_preproc_warn_flag
12824 if test -z "$ac_cpp_err"; then
12825 eval "$as_ac_Header=yes"
12827 echo "$as_me: failed program was:" >&5
12828 cat conftest.$ac_ext >&5
12829 eval "$as_ac_Header=no"
12831 rm -f conftest.err conftest.$ac_ext
12833 echo "$as_me:12833: result: `eval echo '${'$as_ac_Header'}'`" >&5
12834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12836 cat >>confdefs.h <<EOF
12837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12843 # check for ISC (this may also define _POSIX_SOURCE)
12844 # Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
12845 if test "$ISC" = yes ; then
12847 echo "$as_me:12847: checking for main in -lcposix" >&5
12848 echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6
12849 if test "${ac_cv_lib_cposix_main+set}" = set; then
12850 echo $ECHO_N "(cached) $ECHO_C" >&6
12852 ac_check_lib_save_LIBS=$LIBS
12853 LIBS="-lcposix $LIBS"
12854 cat >conftest.$ac_ext <<_ACEOF
12855 #line 12855 "configure"
12856 #include "confdefs.h"
12866 rm -f conftest.$ac_objext conftest$ac_exeext
12867 if { (eval echo "$as_me:12867: \"$ac_link\"") >&5
12868 (eval $ac_link) 2>&5
12870 echo "$as_me:12870: \$? = $ac_status" >&5
12871 (exit $ac_status); } &&
12872 { ac_try='test -s conftest$ac_exeext'
12873 { (eval echo "$as_me:12873: \"$ac_try\"") >&5
12874 (eval $ac_try) 2>&5
12876 echo "$as_me:12876: \$? = $ac_status" >&5
12877 (exit $ac_status); }; }; then
12878 ac_cv_lib_cposix_main=yes
12880 echo "$as_me: failed program was:" >&5
12881 cat conftest.$ac_ext >&5
12882 ac_cv_lib_cposix_main=no
12884 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12885 LIBS=$ac_check_lib_save_LIBS
12887 echo "$as_me:12887: result: $ac_cv_lib_cposix_main" >&5
12888 echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6
12889 if test $ac_cv_lib_cposix_main = yes; then
12890 cat >>confdefs.h <<EOF
12891 #define HAVE_LIBCPOSIX 1
12894 LIBS="-lcposix $LIBS"
12898 echo "$as_me:12898: checking for bzero in -linet" >&5
12899 echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6
12900 if test "${ac_cv_lib_inet_bzero+set}" = set; then
12901 echo $ECHO_N "(cached) $ECHO_C" >&6
12903 ac_check_lib_save_LIBS=$LIBS
12904 LIBS="-linet $LIBS"
12905 cat >conftest.$ac_ext <<_ACEOF
12906 #line 12906 "configure"
12907 #include "confdefs.h"
12909 /* Override any gcc2 internal prototype to avoid an error. */
12913 /* We use char because int might match the return type of a gcc2
12914 builtin and then its argument prototype would still apply. */
12924 rm -f conftest.$ac_objext conftest$ac_exeext
12925 if { (eval echo "$as_me:12925: \"$ac_link\"") >&5
12926 (eval $ac_link) 2>&5
12928 echo "$as_me:12928: \$? = $ac_status" >&5
12929 (exit $ac_status); } &&
12930 { ac_try='test -s conftest$ac_exeext'
12931 { (eval echo "$as_me:12931: \"$ac_try\"") >&5
12932 (eval $ac_try) 2>&5
12934 echo "$as_me:12934: \$? = $ac_status" >&5
12935 (exit $ac_status); }; }; then
12936 ac_cv_lib_inet_bzero=yes
12938 echo "$as_me: failed program was:" >&5
12939 cat conftest.$ac_ext >&5
12940 ac_cv_lib_inet_bzero=no
12942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12943 LIBS=$ac_check_lib_save_LIBS
12945 echo "$as_me:12945: result: $ac_cv_lib_inet_bzero" >&5
12946 echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6
12947 if test $ac_cv_lib_inet_bzero = yes; then
12948 LIBS="$LIBS -linet"
12952 echo "$as_me:12952: checking if sys/time.h works with sys/select.h" >&5
12953 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
12954 if test "${cf_cv_sys_time_select+set}" = set; then
12955 echo $ECHO_N "(cached) $ECHO_C" >&6
12958 cat >conftest.$ac_ext <<_ACEOF
12959 #line 12959 "configure"
12960 #include "confdefs.h"
12962 #include <sys/types.h>
12963 #ifdef HAVE_SYS_TIME_H
12964 #include <sys/time.h>
12966 #ifdef HAVE_SYS_SELECT_H
12967 #include <sys/select.h>
12978 rm -f conftest.$ac_objext
12979 if { (eval echo "$as_me:12979: \"$ac_compile\"") >&5
12980 (eval $ac_compile) 2>&5
12982 echo "$as_me:12982: \$? = $ac_status" >&5
12983 (exit $ac_status); } &&
12984 { ac_try='test -s conftest.$ac_objext'
12985 { (eval echo "$as_me:12985: \"$ac_try\"") >&5
12986 (eval $ac_try) 2>&5
12988 echo "$as_me:12988: \$? = $ac_status" >&5
12989 (exit $ac_status); }; }; then
12990 cf_cv_sys_time_select=yes
12992 echo "$as_me: failed program was:" >&5
12993 cat conftest.$ac_ext >&5
12994 cf_cv_sys_time_select=no
12996 rm -f conftest.$ac_objext conftest.$ac_ext
13000 echo "$as_me:13000: result: $cf_cv_sys_time_select" >&5
13001 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
13002 test "$cf_cv_sys_time_select" = yes && cat >>confdefs.h <<\EOF
13003 #define HAVE_SYS_TIME_SELECT 1
13006 ### checks for compiler characteristics
13008 ac_cpp='$CPP $CPPFLAGS'
13009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13012 ac_main_return=return
13014 echo "$as_me:13014: checking for $CC option to accept ANSI C" >&5
13015 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
13016 if test "${ac_cv_prog_cc_stdc+set}" = set; then
13017 echo $ECHO_N "(cached) $ECHO_C" >&6
13019 ac_cv_prog_cc_stdc=no
13021 cat >conftest.$ac_ext <<_ACEOF
13022 #line 13022 "configure"
13023 #include "confdefs.h"
13024 #include <stdarg.h>
13026 #include <sys/types.h>
13027 #include <sys/stat.h>
13028 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13029 struct buf { int x; };
13030 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13031 static char *e (p, i)
13037 static char *f (char * (*g) (char **, int), char **p, ...)
13042 s = g (p, va_arg (v,int));
13046 int test (int i, double x);
13047 struct s1 {int (*f) (int a);};
13048 struct s2 {int (*f) (double a);};
13049 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13055 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13060 # Don't try gcc -ansi; that turns off useful extensions and
13061 # breaks some systems' header files.
13062 # AIX -qlanglvl=ansi
13063 # Ultrix and OSF/1 -std1
13064 # HP-UX 10.20 and later -Ae
13065 # HP-UX older versions -Aa -D_HPUX_SOURCE
13066 # SVR4 -Xc -D__EXTENSIONS__
13067 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13069 CC="$ac_save_CC $ac_arg"
13070 rm -f conftest.$ac_objext
13071 if { (eval echo "$as_me:13071: \"$ac_compile\"") >&5
13072 (eval $ac_compile) 2>&5
13074 echo "$as_me:13074: \$? = $ac_status" >&5
13075 (exit $ac_status); } &&
13076 { ac_try='test -s conftest.$ac_objext'
13077 { (eval echo "$as_me:13077: \"$ac_try\"") >&5
13078 (eval $ac_try) 2>&5
13080 echo "$as_me:13080: \$? = $ac_status" >&5
13081 (exit $ac_status); }; }; then
13082 ac_cv_prog_cc_stdc=$ac_arg
13085 echo "$as_me: failed program was:" >&5
13086 cat conftest.$ac_ext >&5
13088 rm -f conftest.$ac_objext
13090 rm -f conftest.$ac_ext conftest.$ac_objext
13095 case "x$ac_cv_prog_cc_stdc" in
13097 echo "$as_me:13097: result: none needed" >&5
13098 echo "${ECHO_T}none needed" >&6 ;;
13100 echo "$as_me:13100: result: $ac_cv_prog_cc_stdc" >&5
13101 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
13102 CC="$CC $ac_cv_prog_cc_stdc" ;;
13105 echo "$as_me:13105: checking for an ANSI C-conforming const" >&5
13106 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13107 if test "${ac_cv_c_const+set}" = set; then
13108 echo $ECHO_N "(cached) $ECHO_C" >&6
13110 cat >conftest.$ac_ext <<_ACEOF
13111 #line 13111 "configure"
13112 #include "confdefs.h"
13117 /* FIXME: Include the comments suggested by Paul. */
13118 #ifndef __cplusplus
13119 /* Ultrix mips cc rejects this. */
13120 typedef int charset[2];
13122 /* SunOS 4.1.1 cc rejects this. */
13123 char const *const *ccp;
13125 /* NEC SVR4.0.2 mips cc rejects this. */
13126 struct point {int x, y;};
13127 static struct point const zero = {0,0};
13128 /* AIX XL C 1.02.0.0 rejects this.
13129 It does not let you subtract one const X* pointer from another in
13130 an arm of an if-expression whose if-part is not a constant
13132 const char *g = "string";
13133 ccp = &g + (g ? g-g : 0);
13134 /* HPUX 7.0 cc rejects these. */
13137 ccp = (char const *const *) p;
13138 { /* SCO 3.2v4 cc rejects this. */
13140 char const *s = 0 ? (char *) 0 : (char const *) 0;
13144 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13145 int x[] = {25, 17};
13146 const int *foo = &x[0];
13149 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13150 typedef const int *iptr;
13154 { /* AIX XL C 1.02.0.0 rejects this saying
13155 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13156 struct s { int j; const int *ap[3]; };
13157 struct s *b; b->j = 5;
13159 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13160 const int foo = 10;
13168 rm -f conftest.$ac_objext
13169 if { (eval echo "$as_me:13169: \"$ac_compile\"") >&5
13170 (eval $ac_compile) 2>&5
13172 echo "$as_me:13172: \$? = $ac_status" >&5
13173 (exit $ac_status); } &&
13174 { ac_try='test -s conftest.$ac_objext'
13175 { (eval echo "$as_me:13175: \"$ac_try\"") >&5
13176 (eval $ac_try) 2>&5
13178 echo "$as_me:13178: \$? = $ac_status" >&5
13179 (exit $ac_status); }; }; then
13182 echo "$as_me: failed program was:" >&5
13183 cat conftest.$ac_ext >&5
13186 rm -f conftest.$ac_objext conftest.$ac_ext
13188 echo "$as_me:13188: result: $ac_cv_c_const" >&5
13189 echo "${ECHO_T}$ac_cv_c_const" >&6
13190 if test $ac_cv_c_const = no; then
13192 cat >>confdefs.h <<\EOF
13198 echo "$as_me:13198: checking for inline" >&5
13199 echo $ECHO_N "checking for inline... $ECHO_C" >&6
13200 if test "${ac_cv_c_inline+set}" = set; then
13201 echo $ECHO_N "(cached) $ECHO_C" >&6
13204 for ac_kw in inline __inline__ __inline; do
13205 cat >conftest.$ac_ext <<_ACEOF
13206 #line 13206 "configure"
13207 #include "confdefs.h"
13208 #ifndef __cplusplus
13209 static $ac_kw int static_foo () {return 0; }
13210 $ac_kw int foo () {return 0; }
13214 rm -f conftest.$ac_objext
13215 if { (eval echo "$as_me:13215: \"$ac_compile\"") >&5
13216 (eval $ac_compile) 2>&5
13218 echo "$as_me:13218: \$? = $ac_status" >&5
13219 (exit $ac_status); } &&
13220 { ac_try='test -s conftest.$ac_objext'
13221 { (eval echo "$as_me:13221: \"$ac_try\"") >&5
13222 (eval $ac_try) 2>&5
13224 echo "$as_me:13224: \$? = $ac_status" >&5
13225 (exit $ac_status); }; }; then
13226 ac_cv_c_inline=$ac_kw; break
13228 echo "$as_me: failed program was:" >&5
13229 cat conftest.$ac_ext >&5
13231 rm -f conftest.$ac_objext conftest.$ac_ext
13235 echo "$as_me:13235: result: $ac_cv_c_inline" >&5
13236 echo "${ECHO_T}$ac_cv_c_inline" >&6
13237 case $ac_cv_c_inline in
13240 cat >>confdefs.h <<\EOF
13244 *) cat >>confdefs.h <<EOF
13245 #define inline $ac_cv_c_inline
13251 if test "$ac_cv_c_inline" != no ; then
13252 NCURSES_INLINE=inline
13253 if test "$INTEL_COMPILER" = yes
13256 elif test "$GCC" = yes
13258 echo "$as_me:13258: checking if gcc supports options to tune inlining" >&5
13259 echo $ECHO_N "checking if gcc supports options to tune inlining... $ECHO_C" >&6
13260 if test "${cf_cv_gcc_inline+set}" = set; then
13261 echo $ECHO_N "(cached) $ECHO_C" >&6
13264 cf_save_CFLAGS=$CFLAGS
13265 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
13266 cat >conftest.$ac_ext <<_ACEOF
13267 #line 13267 "configure"
13268 #include "confdefs.h"
13269 inline int foo(void) { return 1; }
13273 ${cf_cv_main_return:-return} foo()
13278 rm -f conftest.$ac_objext
13279 if { (eval echo "$as_me:13279: \"$ac_compile\"") >&5
13280 (eval $ac_compile) 2>&5
13282 echo "$as_me:13282: \$? = $ac_status" >&5
13283 (exit $ac_status); } &&
13284 { ac_try='test -s conftest.$ac_objext'
13285 { (eval echo "$as_me:13285: \"$ac_try\"") >&5
13286 (eval $ac_try) 2>&5
13288 echo "$as_me:13288: \$? = $ac_status" >&5
13289 (exit $ac_status); }; }; then
13290 cf_cv_gcc_inline=yes
13292 echo "$as_me: failed program was:" >&5
13293 cat conftest.$ac_ext >&5
13294 cf_cv_gcc_inline=no
13296 rm -f conftest.$ac_objext conftest.$ac_ext
13297 CFLAGS=$cf_save_CFLAGS
13300 echo "$as_me:13300: result: $cf_cv_gcc_inline" >&5
13301 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
13302 if test "$cf_cv_gcc_inline" = yes ; then
13307 cf_new_extra_cppflags=
13309 for cf_add_cflags in --param max-inline-insns-single=1200
13311 case $cf_fix_cppflags in
13313 case $cf_add_cflags in #(vi
13314 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
13315 case $cf_add_cflags in
13317 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13319 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13320 && test -z "${cf_tst_cflags}" \
13321 && cf_fix_cppflags=yes
13323 if test $cf_fix_cppflags = yes ; then
13324 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13326 elif test "${cf_tst_cflags}" = "\"'" ; then
13327 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13332 case "$CPPFLAGS" in
13333 *$cf_add_cflags) #(vi
13336 case $cf_add_cflags in #(vi
13338 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13340 CPPFLAGS=`echo "$CPPFLAGS" | \
13341 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13342 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13346 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
13351 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
13356 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13358 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13360 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13361 && test -z "${cf_tst_cflags}" \
13362 && cf_fix_cppflags=no
13367 if test -n "$cf_new_cflags" ; then
13369 CFLAGS="$CFLAGS $cf_new_cflags"
13372 if test -n "$cf_new_cppflags" ; then
13374 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
13377 if test -n "$cf_new_extra_cppflags" ; then
13379 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
13386 echo "$as_me:13386: checking for signal global datatype" >&5
13387 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
13388 if test "${cf_cv_sig_atomic_t+set}" = set; then
13389 echo $ECHO_N "(cached) $ECHO_C" >&6
13393 "volatile sig_atomic_t" \
13397 cat >conftest.$ac_ext <<_ACEOF
13398 #line 13398 "configure"
13399 #include "confdefs.h"
13401 #include <sys/types.h>
13402 #include <signal.h>
13407 static void handler(int sig)
13414 signal(SIGINT, handler);
13420 rm -f conftest.$ac_objext
13421 if { (eval echo "$as_me:13421: \"$ac_compile\"") >&5
13422 (eval $ac_compile) 2>&5
13424 echo "$as_me:13424: \$? = $ac_status" >&5
13425 (exit $ac_status); } &&
13426 { ac_try='test -s conftest.$ac_objext'
13427 { (eval echo "$as_me:13427: \"$ac_try\"") >&5
13428 (eval $ac_try) 2>&5
13430 echo "$as_me:13430: \$? = $ac_status" >&5
13431 (exit $ac_status); }; }; then
13432 cf_cv_sig_atomic_t=$cf_type
13434 echo "$as_me: failed program was:" >&5
13435 cat conftest.$ac_ext >&5
13436 cf_cv_sig_atomic_t=no
13438 rm -f conftest.$ac_objext conftest.$ac_ext
13439 test "$cf_cv_sig_atomic_t" != no && break
13444 echo "$as_me:13444: result: $cf_cv_sig_atomic_t" >&5
13445 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
13446 test "$cf_cv_sig_atomic_t" != no && cat >>confdefs.h <<EOF
13447 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
13450 if test $NCURSES_CHTYPE = auto ; then
13452 echo "$as_me:13452: checking for type of chtype" >&5
13453 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
13454 if test "${cf_cv_typeof_chtype+set}" = set; then
13455 echo $ECHO_N "(cached) $ECHO_C" >&6
13458 if test "$cross_compiling" = yes; then
13459 cf_cv_typeof_chtype=long
13461 cat >conftest.$ac_ext <<_ACEOF
13462 #line 13462 "configure"
13463 #include "confdefs.h"
13465 #define WANT_BITS 31
13469 FILE *fp = fopen("cf_test.out", "w");
13471 char *result = "long";
13472 if (sizeof(unsigned long) > sizeof(unsigned int)) {
13475 for (n = 0; n < WANT_BITS; n++) {
13478 if (y != 1 || x == 0) {
13484 * If x is nonzero, an int is big enough for the bits
13487 result = (x != 0) ? "int" : "long";
13492 ${cf_cv_main_return:-return}(0);
13496 rm -f conftest$ac_exeext
13497 if { (eval echo "$as_me:13497: \"$ac_link\"") >&5
13498 (eval $ac_link) 2>&5
13500 echo "$as_me:13500: \$? = $ac_status" >&5
13501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13502 { (eval echo "$as_me:13502: \"$ac_try\"") >&5
13503 (eval $ac_try) 2>&5
13505 echo "$as_me:13505: \$? = $ac_status" >&5
13506 (exit $ac_status); }; }; then
13507 cf_cv_typeof_chtype=`cat cf_test.out`
13509 echo "$as_me: program exited with status $ac_status" >&5
13510 echo "$as_me: failed program was:" >&5
13511 cat conftest.$ac_ext >&5
13512 cf_cv_typeof_chtype=long
13514 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13520 echo "$as_me:13520: result: $cf_cv_typeof_chtype" >&5
13521 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
13523 cat >>confdefs.h <<EOF
13524 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
13528 cf_cv_typeof_chtype=$NCURSES_CHTYPE
13530 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
13532 echo "$as_me:13532: checking if unsigned literals are legal" >&5
13533 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
13534 if test "${cf_cv_unsigned_literals+set}" = set; then
13535 echo $ECHO_N "(cached) $ECHO_C" >&6
13538 cat >conftest.$ac_ext <<_ACEOF
13539 #line 13539 "configure"
13540 #include "confdefs.h"
13545 long x = 1L + 1UL + 1U + 1
13550 rm -f conftest.$ac_objext
13551 if { (eval echo "$as_me:13551: \"$ac_compile\"") >&5
13552 (eval $ac_compile) 2>&5
13554 echo "$as_me:13554: \$? = $ac_status" >&5
13555 (exit $ac_status); } &&
13556 { ac_try='test -s conftest.$ac_objext'
13557 { (eval echo "$as_me:13557: \"$ac_try\"") >&5
13558 (eval $ac_try) 2>&5
13560 echo "$as_me:13560: \$? = $ac_status" >&5
13561 (exit $ac_status); }; }; then
13562 cf_cv_unsigned_literals=yes
13564 echo "$as_me: failed program was:" >&5
13565 cat conftest.$ac_ext >&5
13566 cf_cv_unsigned_literals=no
13568 rm -f conftest.$ac_objext conftest.$ac_ext
13572 echo "$as_me:13572: result: $cf_cv_unsigned_literals" >&5
13573 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
13576 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
13577 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
13579 if test $NCURSES_MMASK_T = auto ; then
13580 cf_cv_typeof_mmask_t=long
13582 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
13584 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
13586 ### Checks for external-data
13588 echo "$as_me:13588: checking if external errno is declared" >&5
13589 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
13590 if test "${cf_cv_dcl_errno+set}" = set; then
13591 echo $ECHO_N "(cached) $ECHO_C" >&6
13594 cat >conftest.$ac_ext <<_ACEOF
13595 #line 13595 "configure"
13596 #include "confdefs.h"
13598 #ifdef HAVE_STDLIB_H
13599 #include <stdlib.h>
13602 #include <sys/types.h>
13607 int x = (int) errno
13612 rm -f conftest.$ac_objext
13613 if { (eval echo "$as_me:13613: \"$ac_compile\"") >&5
13614 (eval $ac_compile) 2>&5
13616 echo "$as_me:13616: \$? = $ac_status" >&5
13617 (exit $ac_status); } &&
13618 { ac_try='test -s conftest.$ac_objext'
13619 { (eval echo "$as_me:13619: \"$ac_try\"") >&5
13620 (eval $ac_try) 2>&5
13622 echo "$as_me:13622: \$? = $ac_status" >&5
13623 (exit $ac_status); }; }; then
13624 cf_cv_dcl_errno=yes
13626 echo "$as_me: failed program was:" >&5
13627 cat conftest.$ac_ext >&5
13630 rm -f conftest.$ac_objext conftest.$ac_ext
13633 echo "$as_me:13633: result: $cf_cv_dcl_errno" >&5
13634 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
13636 if test "$cf_cv_dcl_errno" = no ; then
13638 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13640 cat >>confdefs.h <<EOF
13641 #define $cf_result 1
13646 # It's possible (for near-UNIX clones) that the data doesn't exist
13648 echo "$as_me:13648: checking if external errno exists" >&5
13649 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
13650 if test "${cf_cv_have_errno+set}" = set; then
13651 echo $ECHO_N "(cached) $ECHO_C" >&6
13654 cat >conftest.$ac_ext <<_ACEOF
13655 #line 13655 "configure"
13656 #include "confdefs.h"
13669 rm -f conftest.$ac_objext conftest$ac_exeext
13670 if { (eval echo "$as_me:13670: \"$ac_link\"") >&5
13671 (eval $ac_link) 2>&5
13673 echo "$as_me:13673: \$? = $ac_status" >&5
13674 (exit $ac_status); } &&
13675 { ac_try='test -s conftest$ac_exeext'
13676 { (eval echo "$as_me:13676: \"$ac_try\"") >&5
13677 (eval $ac_try) 2>&5
13679 echo "$as_me:13679: \$? = $ac_status" >&5
13680 (exit $ac_status); }; }; then
13681 cf_cv_have_errno=yes
13683 echo "$as_me: failed program was:" >&5
13684 cat conftest.$ac_ext >&5
13685 cf_cv_have_errno=no
13687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13690 echo "$as_me:13690: result: $cf_cv_have_errno" >&5
13691 echo "${ECHO_T}$cf_cv_have_errno" >&6
13693 if test "$cf_cv_have_errno" = yes ; then
13695 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13697 cat >>confdefs.h <<EOF
13698 #define $cf_result 1
13703 echo "$as_me:13703: checking if data-only library module links" >&5
13704 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
13705 if test "${cf_cv_link_dataonly+set}" = set; then
13706 echo $ECHO_N "(cached) $ECHO_C" >&6
13710 cat >conftest.$ac_ext <<EOF
13711 #line 13711 "configure"
13712 int testdata[3] = { 123, 456, 789 };
13714 if { (eval echo "$as_me:13714: \"$ac_compile\"") >&5
13715 (eval $ac_compile) 2>&5
13717 echo "$as_me:13717: \$? = $ac_status" >&5
13718 (exit $ac_status); } ; then
13719 mv conftest.o data.o && \
13720 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
13722 rm -f conftest.$ac_ext data.o
13723 cat >conftest.$ac_ext <<EOF
13724 #line 13724 "configure"
13728 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
13730 extern int testdata[3];
13731 return testdata[0] == 123
13732 && testdata[1] == 456
13733 && testdata[2] == 789;
13737 if { (eval echo "$as_me:13737: \"$ac_compile\"") >&5
13738 (eval $ac_compile) 2>&5
13740 echo "$as_me:13740: \$? = $ac_status" >&5
13741 (exit $ac_status); }; then
13742 mv conftest.o func.o && \
13743 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
13745 rm -f conftest.$ac_ext func.o
13746 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
13747 cf_saveLIBS="$LIBS"
13748 LIBS="conftest.a $LIBS"
13749 if test "$cross_compiling" = yes; then
13750 cf_cv_link_dataonly=unknown
13752 cat >conftest.$ac_ext <<_ACEOF
13753 #line 13753 "configure"
13754 #include "confdefs.h"
13758 extern int testfunc();
13759 ${cf_cv_main_return:-return} (!testfunc());
13763 rm -f conftest$ac_exeext
13764 if { (eval echo "$as_me:13764: \"$ac_link\"") >&5
13765 (eval $ac_link) 2>&5
13767 echo "$as_me:13767: \$? = $ac_status" >&5
13768 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13769 { (eval echo "$as_me:13769: \"$ac_try\"") >&5
13770 (eval $ac_try) 2>&5
13772 echo "$as_me:13772: \$? = $ac_status" >&5
13773 (exit $ac_status); }; }; then
13774 cf_cv_link_dataonly=yes
13776 echo "$as_me: program exited with status $ac_status" >&5
13777 echo "$as_me: failed program was:" >&5
13778 cat conftest.$ac_ext >&5
13779 cf_cv_link_dataonly=no
13781 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13783 LIBS="$cf_saveLIBS"
13787 echo "$as_me:13787: result: $cf_cv_link_dataonly" >&5
13788 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
13790 if test "$cf_cv_link_dataonly" = no ; then
13791 cat >>confdefs.h <<\EOF
13792 #define BROKEN_LINKER 1
13798 ### Checks for library functions.
13821 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13822 echo "$as_me:13822: checking for $ac_func" >&5
13823 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13824 if eval "test \"\${$as_ac_var+set}\" = set"; then
13825 echo $ECHO_N "(cached) $ECHO_C" >&6
13827 cat >conftest.$ac_ext <<_ACEOF
13828 #line 13828 "configure"
13829 #include "confdefs.h"
13830 /* System header to define __stub macros and hopefully few prototypes,
13831 which can conflict with char $ac_func (); below. */
13832 #include <assert.h>
13833 /* Override any gcc2 internal prototype to avoid an error. */
13837 /* We use char because int might match the return type of a gcc2
13838 builtin and then its argument prototype would still apply. */
13845 /* The GNU C library defines this for functions which it implements
13846 to always fail with ENOSYS. Some functions are actually named
13847 something starting with __ and the normal name is an alias. */
13848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13858 rm -f conftest.$ac_objext conftest$ac_exeext
13859 if { (eval echo "$as_me:13859: \"$ac_link\"") >&5
13860 (eval $ac_link) 2>&5
13862 echo "$as_me:13862: \$? = $ac_status" >&5
13863 (exit $ac_status); } &&
13864 { ac_try='test -s conftest$ac_exeext'
13865 { (eval echo "$as_me:13865: \"$ac_try\"") >&5
13866 (eval $ac_try) 2>&5
13868 echo "$as_me:13868: \$? = $ac_status" >&5
13869 (exit $ac_status); }; }; then
13870 eval "$as_ac_var=yes"
13872 echo "$as_me: failed program was:" >&5
13873 cat conftest.$ac_ext >&5
13874 eval "$as_ac_var=no"
13876 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13878 echo "$as_me:13878: result: `eval echo '${'$as_ac_var'}'`" >&5
13879 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13880 if test `eval echo '${'$as_ac_var'}'` = yes; then
13881 cat >>confdefs.h <<EOF
13882 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13888 if test "$with_getcap" = "yes" ; then
13890 echo "$as_me:13890: checking for terminal-capability database functions" >&5
13891 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
13892 if test "${cf_cv_cgetent+set}" = set; then
13893 echo $ECHO_N "(cached) $ECHO_C" >&6
13896 cat >conftest.$ac_ext <<_ACEOF
13897 #line 13897 "configure"
13898 #include "confdefs.h"
13900 #include <stdlib.h>
13907 char *db_array = temp;
13908 cgetent(&buf, /* int *, */ &db_array, "vt100");
13909 cgetcap(buf, "tc", '=');
13910 cgetmatch(buf, "tc");
13916 rm -f conftest.$ac_objext conftest$ac_exeext
13917 if { (eval echo "$as_me:13917: \"$ac_link\"") >&5
13918 (eval $ac_link) 2>&5
13920 echo "$as_me:13920: \$? = $ac_status" >&5
13921 (exit $ac_status); } &&
13922 { ac_try='test -s conftest$ac_exeext'
13923 { (eval echo "$as_me:13923: \"$ac_try\"") >&5
13924 (eval $ac_try) 2>&5
13926 echo "$as_me:13926: \$? = $ac_status" >&5
13927 (exit $ac_status); }; }; then
13930 echo "$as_me: failed program was:" >&5
13931 cat conftest.$ac_ext >&5
13934 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13938 echo "$as_me:13938: result: $cf_cv_cgetent" >&5
13939 echo "${ECHO_T}$cf_cv_cgetent" >&6
13940 test "$cf_cv_cgetent" = yes && cat >>confdefs.h <<\EOF
13941 #define HAVE_BSD_CGETENT 1
13946 echo "$as_me:13946: checking for isascii" >&5
13947 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
13948 if test "${cf_cv_have_isascii+set}" = set; then
13949 echo $ECHO_N "(cached) $ECHO_C" >&6
13952 cat >conftest.$ac_ext <<_ACEOF
13953 #line 13953 "configure"
13954 #include "confdefs.h"
13959 int x = isascii(' ')
13964 rm -f conftest.$ac_objext conftest$ac_exeext
13965 if { (eval echo "$as_me:13965: \"$ac_link\"") >&5
13966 (eval $ac_link) 2>&5
13968 echo "$as_me:13968: \$? = $ac_status" >&5
13969 (exit $ac_status); } &&
13970 { ac_try='test -s conftest$ac_exeext'
13971 { (eval echo "$as_me:13971: \"$ac_try\"") >&5
13972 (eval $ac_try) 2>&5
13974 echo "$as_me:13974: \$? = $ac_status" >&5
13975 (exit $ac_status); }; }; then
13976 cf_cv_have_isascii=yes
13978 echo "$as_me: failed program was:" >&5
13979 cat conftest.$ac_ext >&5
13980 cf_cv_have_isascii=no
13982 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13985 echo "$as_me:13985: result: $cf_cv_have_isascii" >&5
13986 echo "${ECHO_T}$cf_cv_have_isascii" >&6
13987 test "$cf_cv_have_isascii" = yes && cat >>confdefs.h <<\EOF
13988 #define HAVE_ISASCII 1
13991 if test "$ac_cv_func_sigaction" = yes; then
13992 echo "$as_me:13992: checking whether sigaction needs _POSIX_SOURCE" >&5
13993 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
13994 cat >conftest.$ac_ext <<_ACEOF
13995 #line 13995 "configure"
13996 #include "confdefs.h"
13998 #include <sys/types.h>
13999 #include <signal.h>
14003 struct sigaction act
14008 rm -f conftest.$ac_objext
14009 if { (eval echo "$as_me:14009: \"$ac_compile\"") >&5
14010 (eval $ac_compile) 2>&5
14012 echo "$as_me:14012: \$? = $ac_status" >&5
14013 (exit $ac_status); } &&
14014 { ac_try='test -s conftest.$ac_objext'
14015 { (eval echo "$as_me:14015: \"$ac_try\"") >&5
14016 (eval $ac_try) 2>&5
14018 echo "$as_me:14018: \$? = $ac_status" >&5
14019 (exit $ac_status); }; }; then
14022 echo "$as_me: failed program was:" >&5
14023 cat conftest.$ac_ext >&5
14025 cat >conftest.$ac_ext <<_ACEOF
14026 #line 14026 "configure"
14027 #include "confdefs.h"
14029 #define _POSIX_SOURCE
14030 #include <sys/types.h>
14031 #include <signal.h>
14035 struct sigaction act
14040 rm -f conftest.$ac_objext
14041 if { (eval echo "$as_me:14041: \"$ac_compile\"") >&5
14042 (eval $ac_compile) 2>&5
14044 echo "$as_me:14044: \$? = $ac_status" >&5
14045 (exit $ac_status); } &&
14046 { ac_try='test -s conftest.$ac_objext'
14047 { (eval echo "$as_me:14047: \"$ac_try\"") >&5
14048 (eval $ac_try) 2>&5
14050 echo "$as_me:14050: \$? = $ac_status" >&5
14051 (exit $ac_status); }; }; then
14053 cat >>confdefs.h <<\EOF
14054 #define SVR4_ACTION 1
14058 echo "$as_me: failed program was:" >&5
14059 cat conftest.$ac_ext >&5
14062 rm -f conftest.$ac_objext conftest.$ac_ext
14064 rm -f conftest.$ac_objext conftest.$ac_ext
14065 echo "$as_me:14065: result: $sigact_bad" >&5
14066 echo "${ECHO_T}$sigact_bad" >&6
14069 echo "$as_me:14069: checking if nanosleep really works" >&5
14070 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
14071 if test "${cf_cv_func_nanosleep+set}" = set; then
14072 echo $ECHO_N "(cached) $ECHO_C" >&6
14075 if test "$cross_compiling" = yes; then
14076 cf_cv_func_nanosleep=unknown
14078 cat >conftest.$ac_ext <<_ACEOF
14079 #line 14079 "configure"
14080 #include "confdefs.h"
14086 #ifdef HAVE_SYS_TIME_H
14087 #include <sys/time.h>
14091 struct timespec ts1, ts2;
14094 ts1.tv_nsec = 750000000;
14098 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
14099 ${cf_cv_main_return:-return}(code != 0);
14103 rm -f 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); } && { ac_try='./conftest$ac_exeext'
14109 { (eval echo "$as_me:14109: \"$ac_try\"") >&5
14110 (eval $ac_try) 2>&5
14112 echo "$as_me:14112: \$? = $ac_status" >&5
14113 (exit $ac_status); }; }; then
14114 cf_cv_func_nanosleep=yes
14116 echo "$as_me: program exited with status $ac_status" >&5
14117 echo "$as_me: failed program was:" >&5
14118 cat conftest.$ac_ext >&5
14119 cf_cv_func_nanosleep=no
14121 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14124 echo "$as_me:14124: result: $cf_cv_func_nanosleep" >&5
14125 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
14127 test "$cf_cv_func_nanosleep" = "yes" && cat >>confdefs.h <<\EOF
14128 #define HAVE_NANOSLEEP 1
14137 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14138 echo "$as_me:14138: checking for $ac_header" >&5
14139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14141 echo $ECHO_N "(cached) $ECHO_C" >&6
14143 cat >conftest.$ac_ext <<_ACEOF
14144 #line 14144 "configure"
14145 #include "confdefs.h"
14146 #include <$ac_header>
14148 if { (eval echo "$as_me:14148: \"$ac_cpp conftest.$ac_ext\"") >&5
14149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14151 egrep -v '^ *\+' conftest.er1 >conftest.err
14153 cat conftest.err >&5
14154 echo "$as_me:14154: \$? = $ac_status" >&5
14155 (exit $ac_status); } >/dev/null; then
14156 if test -s conftest.err; then
14157 ac_cpp_err=$ac_c_preproc_warn_flag
14164 if test -z "$ac_cpp_err"; then
14165 eval "$as_ac_Header=yes"
14167 echo "$as_me: failed program was:" >&5
14168 cat conftest.$ac_ext >&5
14169 eval "$as_ac_Header=no"
14171 rm -f conftest.err conftest.$ac_ext
14173 echo "$as_me:14173: result: `eval echo '${'$as_ac_Header'}'`" >&5
14174 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14175 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14176 cat >>confdefs.h <<EOF
14177 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14183 if test "$ISC" = yes ; then
14185 for ac_header in sys/termio.h
14187 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14188 echo "$as_me:14188: checking for $ac_header" >&5
14189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14191 echo $ECHO_N "(cached) $ECHO_C" >&6
14193 cat >conftest.$ac_ext <<_ACEOF
14194 #line 14194 "configure"
14195 #include "confdefs.h"
14196 #include <$ac_header>
14198 if { (eval echo "$as_me:14198: \"$ac_cpp conftest.$ac_ext\"") >&5
14199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14201 egrep -v '^ *\+' conftest.er1 >conftest.err
14203 cat conftest.err >&5
14204 echo "$as_me:14204: \$? = $ac_status" >&5
14205 (exit $ac_status); } >/dev/null; then
14206 if test -s conftest.err; then
14207 ac_cpp_err=$ac_c_preproc_warn_flag
14214 if test -z "$ac_cpp_err"; then
14215 eval "$as_ac_Header=yes"
14217 echo "$as_me: failed program was:" >&5
14218 cat conftest.$ac_ext >&5
14219 eval "$as_ac_Header=no"
14221 rm -f conftest.err conftest.$ac_ext
14223 echo "$as_me:14223: result: `eval echo '${'$as_ac_Header'}'`" >&5
14224 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14225 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14226 cat >>confdefs.h <<EOF
14227 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14234 if test "$ac_cv_header_termios_h" = yes ; then
14235 case "$CFLAGS $CPPFLAGS" in
14237 termios_bad=dunno ;;
14238 *) termios_bad=maybe ;;
14240 if test "$termios_bad" = maybe ; then
14241 echo "$as_me:14241: checking whether termios.h needs _POSIX_SOURCE" >&5
14242 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
14243 cat >conftest.$ac_ext <<_ACEOF
14244 #line 14244 "configure"
14245 #include "confdefs.h"
14246 #include <termios.h>
14250 struct termios foo; int x = foo.c_iflag
14255 rm -f conftest.$ac_objext
14256 if { (eval echo "$as_me:14256: \"$ac_compile\"") >&5
14257 (eval $ac_compile) 2>&5
14259 echo "$as_me:14259: \$? = $ac_status" >&5
14260 (exit $ac_status); } &&
14261 { ac_try='test -s conftest.$ac_objext'
14262 { (eval echo "$as_me:14262: \"$ac_try\"") >&5
14263 (eval $ac_try) 2>&5
14265 echo "$as_me:14265: \$? = $ac_status" >&5
14266 (exit $ac_status); }; }; then
14269 echo "$as_me: failed program was:" >&5
14270 cat conftest.$ac_ext >&5
14272 cat >conftest.$ac_ext <<_ACEOF
14273 #line 14273 "configure"
14274 #include "confdefs.h"
14276 #define _POSIX_SOURCE
14277 #include <termios.h>
14281 struct termios foo; int x = foo.c_iflag
14286 rm -f conftest.$ac_objext
14287 if { (eval echo "$as_me:14287: \"$ac_compile\"") >&5
14288 (eval $ac_compile) 2>&5
14290 echo "$as_me:14290: \$? = $ac_status" >&5
14291 (exit $ac_status); } &&
14292 { ac_try='test -s conftest.$ac_objext'
14293 { (eval echo "$as_me:14293: \"$ac_try\"") >&5
14294 (eval $ac_try) 2>&5
14296 echo "$as_me:14296: \$? = $ac_status" >&5
14297 (exit $ac_status); }; }; then
14298 termios_bad=unknown
14300 echo "$as_me: failed program was:" >&5
14301 cat conftest.$ac_ext >&5
14302 termios_bad=yes cat >>confdefs.h <<\EOF
14303 #define SVR4_TERMIO 1
14307 rm -f conftest.$ac_objext conftest.$ac_ext
14310 rm -f conftest.$ac_objext conftest.$ac_ext
14311 echo "$as_me:14311: result: $termios_bad" >&5
14312 echo "${ECHO_T}$termios_bad" >&6
14316 echo "$as_me:14316: checking for tcgetattr" >&5
14317 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
14318 if test "${cf_cv_have_tcgetattr+set}" = set; then
14319 echo $ECHO_N "(cached) $ECHO_C" >&6
14322 cat >conftest.$ac_ext <<_ACEOF
14323 #line 14323 "configure"
14324 #include "confdefs.h"
14326 #include <sys/types.h>
14327 #ifdef HAVE_UNISTD_H
14328 #include <unistd.h>
14330 #ifdef HAVE_TERMIOS_H
14331 #include <termios.h>
14332 #define TTY struct termios
14334 #ifdef HAVE_TERMIO_H
14335 #include <termio.h>
14336 #define TTY struct termio
14345 tcgetattr(1, &foo);
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
14362 cf_cv_have_tcgetattr=yes
14364 echo "$as_me: failed program was:" >&5
14365 cat conftest.$ac_ext >&5
14366 cf_cv_have_tcgetattr=no
14368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14370 echo "$as_me:14370: result: $cf_cv_have_tcgetattr" >&5
14371 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
14372 test "$cf_cv_have_tcgetattr" = yes && cat >>confdefs.h <<\EOF
14373 #define HAVE_TCGETATTR 1
14376 echo "$as_me:14376: checking for vsscanf function or workaround" >&5
14377 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
14378 if test "${cf_cv_func_vsscanf+set}" = set; then
14379 echo $ECHO_N "(cached) $ECHO_C" >&6
14382 cat >conftest.$ac_ext <<_ACEOF
14383 #line 14383 "configure"
14384 #include "confdefs.h"
14386 #include <stdarg.h>
14393 vsscanf("from", "%d", ap)
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_func_vsscanf=vsscanf
14412 echo "$as_me: failed program was:" >&5
14413 cat conftest.$ac_ext >&5
14415 cat >conftest.$ac_ext <<_ACEOF
14416 #line 14416 "configure"
14417 #include "confdefs.h"
14419 #include <stdarg.h>
14426 char *str = "from";
14428 strbuf._flag = _IOREAD;
14429 strbuf._ptr = strbuf._base = (unsigned char *) str;
14430 strbuf._cnt = strlen(str);
14431 strbuf._file = _NFILE;
14432 return (vfscanf(&strbuf, "%d", ap))
14437 rm -f conftest.$ac_objext conftest$ac_exeext
14438 if { (eval echo "$as_me:14438: \"$ac_link\"") >&5
14439 (eval $ac_link) 2>&5
14441 echo "$as_me:14441: \$? = $ac_status" >&5
14442 (exit $ac_status); } &&
14443 { ac_try='test -s conftest$ac_exeext'
14444 { (eval echo "$as_me:14444: \"$ac_try\"") >&5
14445 (eval $ac_try) 2>&5
14447 echo "$as_me:14447: \$? = $ac_status" >&5
14448 (exit $ac_status); }; }; then
14449 cf_cv_func_vsscanf=vfscanf
14451 echo "$as_me: failed program was:" >&5
14452 cat conftest.$ac_ext >&5
14454 cat >conftest.$ac_ext <<_ACEOF
14455 #line 14455 "configure"
14456 #include "confdefs.h"
14458 #include <stdarg.h>
14465 char *str = "from";
14467 strbuf._flag = _IOREAD;
14468 strbuf._ptr = strbuf._base = (unsigned char *) str;
14469 strbuf._cnt = strlen(str);
14470 strbuf._file = _NFILE;
14471 return (_doscan(&strbuf, "%d", ap))
14476 rm -f conftest.$ac_objext conftest$ac_exeext
14477 if { (eval echo "$as_me:14477: \"$ac_link\"") >&5
14478 (eval $ac_link) 2>&5
14480 echo "$as_me:14480: \$? = $ac_status" >&5
14481 (exit $ac_status); } &&
14482 { ac_try='test -s conftest$ac_exeext'
14483 { (eval echo "$as_me:14483: \"$ac_try\"") >&5
14484 (eval $ac_try) 2>&5
14486 echo "$as_me:14486: \$? = $ac_status" >&5
14487 (exit $ac_status); }; }; then
14488 cf_cv_func_vsscanf=_doscan
14490 echo "$as_me: failed program was:" >&5
14491 cat conftest.$ac_ext >&5
14493 cf_cv_func_vsscanf=no
14495 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14501 echo "$as_me:14501: result: $cf_cv_func_vsscanf" >&5
14502 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
14504 case $cf_cv_func_vsscanf in #(vi
14505 vsscanf) cat >>confdefs.h <<\EOF
14506 #define HAVE_VSSCANF 1
14509 vfscanf) cat >>confdefs.h <<\EOF
14510 #define HAVE_VFSCANF 1
14513 _doscan) cat >>confdefs.h <<\EOF
14514 #define HAVE__DOSCAN 1
14519 echo "$as_me:14519: checking for working mkstemp" >&5
14520 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
14521 if test "${cf_cv_func_mkstemp+set}" = set; then
14522 echo $ECHO_N "(cached) $ECHO_C" >&6
14526 if test "$cross_compiling" = yes; then
14527 echo "$as_me:14527: checking for mkstemp" >&5
14528 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
14529 if test "${ac_cv_func_mkstemp+set}" = set; then
14530 echo $ECHO_N "(cached) $ECHO_C" >&6
14532 cat >conftest.$ac_ext <<_ACEOF
14533 #line 14533 "configure"
14534 #include "confdefs.h"
14535 /* System header to define __stub macros and hopefully few prototypes,
14536 which can conflict with char mkstemp (); below. */
14537 #include <assert.h>
14538 /* Override any gcc2 internal prototype to avoid an error. */
14542 /* We use char because int might match the return type of a gcc2
14543 builtin and then its argument prototype would still apply. */
14550 /* The GNU C library defines this for functions which it implements
14551 to always fail with ENOSYS. Some functions are actually named
14552 something starting with __ and the normal name is an alias. */
14553 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
14563 rm -f conftest.$ac_objext conftest$ac_exeext
14564 if { (eval echo "$as_me:14564: \"$ac_link\"") >&5
14565 (eval $ac_link) 2>&5
14567 echo "$as_me:14567: \$? = $ac_status" >&5
14568 (exit $ac_status); } &&
14569 { ac_try='test -s conftest$ac_exeext'
14570 { (eval echo "$as_me:14570: \"$ac_try\"") >&5
14571 (eval $ac_try) 2>&5
14573 echo "$as_me:14573: \$? = $ac_status" >&5
14574 (exit $ac_status); }; }; then
14575 ac_cv_func_mkstemp=yes
14577 echo "$as_me: failed program was:" >&5
14578 cat conftest.$ac_ext >&5
14579 ac_cv_func_mkstemp=no
14581 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14583 echo "$as_me:14583: result: $ac_cv_func_mkstemp" >&5
14584 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
14587 cat >conftest.$ac_ext <<_ACEOF
14588 #line 14588 "configure"
14589 #include "confdefs.h"
14591 #include <sys/types.h>
14592 #include <stdlib.h>
14594 #include <string.h>
14595 #include <sys/stat.h>
14598 char *tmpl = "conftestXXXXXX";
14606 for (n = 0; n < 2; ++n) {
14607 strcpy(name[n], tmpl);
14608 if ((fd = mkstemp(name[n])) >= 0) {
14609 if (!strcmp(name[n], tmpl)
14610 || stat(name[n], &sb) != 0
14611 || (sb.st_mode & S_IFMT) != S_IFREG
14612 || (sb.st_mode & 077) != 0) {
14619 && !strcmp(name[0], name[1]))
14621 ${cf_cv_main_return:-return}(result);
14625 rm -f conftest$ac_exeext
14626 if { (eval echo "$as_me:14626: \"$ac_link\"") >&5
14627 (eval $ac_link) 2>&5
14629 echo "$as_me:14629: \$? = $ac_status" >&5
14630 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14631 { (eval echo "$as_me:14631: \"$ac_try\"") >&5
14632 (eval $ac_try) 2>&5
14634 echo "$as_me:14634: \$? = $ac_status" >&5
14635 (exit $ac_status); }; }; then
14636 cf_cv_func_mkstemp=yes
14639 echo "$as_me: program exited with status $ac_status" >&5
14640 echo "$as_me: failed program was:" >&5
14641 cat conftest.$ac_ext >&5
14642 cf_cv_func_mkstemp=no
14645 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14649 echo "$as_me:14649: result: $cf_cv_func_mkstemp" >&5
14650 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
14651 if test "$cf_cv_func_mkstemp" = yes ; then
14652 cat >>confdefs.h <<\EOF
14653 #define HAVE_MKSTEMP 1
14658 # setup for prototype of fallback for vsscanf()
14660 if test "$cf_cv_func_vsscanf" = vsscanf ; then
14666 if test "$cross_compiling" = yes ; then
14667 { echo "$as_me:14667: WARNING: cross compiling: assume setvbuf params not reversed" >&5
14668 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
14670 echo "$as_me:14670: checking whether setvbuf arguments are reversed" >&5
14671 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
14672 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
14673 echo $ECHO_N "(cached) $ECHO_C" >&6
14675 if test "$cross_compiling" = yes; then
14676 { { echo "$as_me:14676: error: cannot run test program while cross compiling" >&5
14677 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14678 { (exit 1); exit 1; }; }
14680 cat >conftest.$ac_ext <<_ACEOF
14681 #line 14681 "configure"
14682 #include "confdefs.h"
14684 /* If setvbuf has the reversed format, exit 0. */
14688 /* This call has the arguments reversed.
14689 A reversed system may check and see that the address of main
14690 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
14691 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
14692 $ac_main_return(1);
14693 putc('\r', stdout);
14694 $ac_main_return(0); /* Non-reversed systems segv here. */
14697 rm -f conftest$ac_exeext
14698 if { (eval echo "$as_me:14698: \"$ac_link\"") >&5
14699 (eval $ac_link) 2>&5
14701 echo "$as_me:14701: \$? = $ac_status" >&5
14702 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14703 { (eval echo "$as_me:14703: \"$ac_try\"") >&5
14704 (eval $ac_try) 2>&5
14706 echo "$as_me:14706: \$? = $ac_status" >&5
14707 (exit $ac_status); }; }; then
14708 ac_cv_func_setvbuf_reversed=yes
14710 echo "$as_me: program exited with status $ac_status" >&5
14711 echo "$as_me: failed program was:" >&5
14712 cat conftest.$ac_ext >&5
14713 ac_cv_func_setvbuf_reversed=no
14715 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14717 rm -f core core.* *.core
14719 echo "$as_me:14719: result: $ac_cv_func_setvbuf_reversed" >&5
14720 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
14721 if test $ac_cv_func_setvbuf_reversed = yes; then
14723 cat >>confdefs.h <<\EOF
14724 #define SETVBUF_REVERSED 1
14730 echo "$as_me:14730: checking return type of signal handlers" >&5
14731 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
14732 if test "${ac_cv_type_signal+set}" = set; then
14733 echo $ECHO_N "(cached) $ECHO_C" >&6
14735 cat >conftest.$ac_ext <<_ACEOF
14736 #line 14736 "configure"
14737 #include "confdefs.h"
14738 #include <sys/types.h>
14739 #include <signal.h>
14744 extern "C" void (*signal (int, void (*)(int)))(int);
14746 void (*signal ()) ();
14757 rm -f conftest.$ac_objext
14758 if { (eval echo "$as_me:14758: \"$ac_compile\"") >&5
14759 (eval $ac_compile) 2>&5
14761 echo "$as_me:14761: \$? = $ac_status" >&5
14762 (exit $ac_status); } &&
14763 { ac_try='test -s conftest.$ac_objext'
14764 { (eval echo "$as_me:14764: \"$ac_try\"") >&5
14765 (eval $ac_try) 2>&5
14767 echo "$as_me:14767: \$? = $ac_status" >&5
14768 (exit $ac_status); }; }; then
14769 ac_cv_type_signal=void
14771 echo "$as_me: failed program was:" >&5
14772 cat conftest.$ac_ext >&5
14773 ac_cv_type_signal=int
14775 rm -f conftest.$ac_objext conftest.$ac_ext
14777 echo "$as_me:14777: result: $ac_cv_type_signal" >&5
14778 echo "${ECHO_T}$ac_cv_type_signal" >&6
14780 cat >>confdefs.h <<EOF
14781 #define RETSIGTYPE $ac_cv_type_signal
14784 echo "$as_me:14784: checking for type sigaction_t" >&5
14785 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
14786 if test "${cf_cv_type_sigaction+set}" = set; then
14787 echo $ECHO_N "(cached) $ECHO_C" >&6
14790 cat >conftest.$ac_ext <<_ACEOF
14791 #line 14791 "configure"
14792 #include "confdefs.h"
14794 #include <signal.h>
14803 rm -f conftest.$ac_objext
14804 if { (eval echo "$as_me:14804: \"$ac_compile\"") >&5
14805 (eval $ac_compile) 2>&5
14807 echo "$as_me:14807: \$? = $ac_status" >&5
14808 (exit $ac_status); } &&
14809 { ac_try='test -s conftest.$ac_objext'
14810 { (eval echo "$as_me:14810: \"$ac_try\"") >&5
14811 (eval $ac_try) 2>&5
14813 echo "$as_me:14813: \$? = $ac_status" >&5
14814 (exit $ac_status); }; }; then
14815 cf_cv_type_sigaction=yes
14817 echo "$as_me: failed program was:" >&5
14818 cat conftest.$ac_ext >&5
14819 cf_cv_type_sigaction=no
14821 rm -f conftest.$ac_objext conftest.$ac_ext
14824 echo "$as_me:14824: result: $cf_cv_type_sigaction" >&5
14825 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
14826 test "$cf_cv_type_sigaction" = yes && cat >>confdefs.h <<\EOF
14827 #define HAVE_TYPE_SIGACTION 1
14830 echo "$as_me:14830: checking declaration of size-change" >&5
14831 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
14832 if test "${cf_cv_sizechange+set}" = set; then
14833 echo $ECHO_N "(cached) $ECHO_C" >&6
14836 cf_cv_sizechange=unknown
14837 cf_save_CPPFLAGS="$CPPFLAGS"
14839 for cf_opts in "" "NEED_PTEM_H"
14842 CPPFLAGS="$cf_save_CPPFLAGS"
14843 test -n "$cf_opts" && CPPFLAGS="$CPPFLAGS -D$cf_opts"
14844 cat >conftest.$ac_ext <<_ACEOF
14845 #line 14845 "configure"
14846 #include "confdefs.h"
14847 #include <sys/types.h>
14848 #ifdef HAVE_TERMIOS_H
14849 #include <termios.h>
14851 #ifdef HAVE_TERMIO_H
14852 #include <termio.h>
14856 /* This is a workaround for SCO: they neglected to define struct winsize in
14857 * termios.h -- it's only in termio.h and ptem.h
14859 #include <sys/stream.h>
14860 #include <sys/ptem.h>
14862 #if !defined(sun) || !defined(HAVE_TERMIOS_H)
14863 #include <sys/ioctl.h>
14871 struct ttysize win; /* FIXME: what system is this? */
14872 int y = win.ts_lines;
14873 int x = win.ts_cols;
14876 struct winsize win;
14877 int y = win.ws_row;
14878 int x = win.ws_col;
14880 no TIOCGSIZE or TIOCGWINSZ
14881 #endif /* TIOCGWINSZ */
14882 #endif /* TIOCGSIZE */
14888 rm -f conftest.$ac_objext
14889 if { (eval echo "$as_me:14889: \"$ac_compile\"") >&5
14890 (eval $ac_compile) 2>&5
14892 echo "$as_me:14892: \$? = $ac_status" >&5
14893 (exit $ac_status); } &&
14894 { ac_try='test -s conftest.$ac_objext'
14895 { (eval echo "$as_me:14895: \"$ac_try\"") >&5
14896 (eval $ac_try) 2>&5
14898 echo "$as_me:14898: \$? = $ac_status" >&5
14899 (exit $ac_status); }; }; then
14900 cf_cv_sizechange=yes
14902 echo "$as_me: failed program was:" >&5
14903 cat conftest.$ac_ext >&5
14904 cf_cv_sizechange=no
14906 rm -f conftest.$ac_objext conftest.$ac_ext
14908 CPPFLAGS="$cf_save_CPPFLAGS"
14909 if test "$cf_cv_sizechange" = yes ; then
14910 echo "size-change succeeded ($cf_opts)" >&5
14911 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
14917 echo "$as_me:14917: result: $cf_cv_sizechange" >&5
14918 echo "${ECHO_T}$cf_cv_sizechange" >&6
14919 if test "$cf_cv_sizechange" != no ; then
14920 cat >>confdefs.h <<\EOF
14921 #define HAVE_SIZECHANGE 1
14924 case $cf_cv_sizechange in #(vi
14926 cat >>confdefs.h <<EOF
14927 #define $cf_cv_sizechange 1
14934 echo "$as_me:14934: checking for memmove" >&5
14935 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
14936 if test "${ac_cv_func_memmove+set}" = set; then
14937 echo $ECHO_N "(cached) $ECHO_C" >&6
14939 cat >conftest.$ac_ext <<_ACEOF
14940 #line 14940 "configure"
14941 #include "confdefs.h"
14942 /* System header to define __stub macros and hopefully few prototypes,
14943 which can conflict with char memmove (); below. */
14944 #include <assert.h>
14945 /* Override any gcc2 internal prototype to avoid an error. */
14949 /* We use char because int might match the return type of a gcc2
14950 builtin and then its argument prototype would still apply. */
14957 /* The GNU C library defines this for functions which it implements
14958 to always fail with ENOSYS. Some functions are actually named
14959 something starting with __ and the normal name is an alias. */
14960 #if defined (__stub_memmove) || defined (__stub___memmove)
14970 rm -f conftest.$ac_objext conftest$ac_exeext
14971 if { (eval echo "$as_me:14971: \"$ac_link\"") >&5
14972 (eval $ac_link) 2>&5
14974 echo "$as_me:14974: \$? = $ac_status" >&5
14975 (exit $ac_status); } &&
14976 { ac_try='test -s conftest$ac_exeext'
14977 { (eval echo "$as_me:14977: \"$ac_try\"") >&5
14978 (eval $ac_try) 2>&5
14980 echo "$as_me:14980: \$? = $ac_status" >&5
14981 (exit $ac_status); }; }; then
14982 ac_cv_func_memmove=yes
14984 echo "$as_me: failed program was:" >&5
14985 cat conftest.$ac_ext >&5
14986 ac_cv_func_memmove=no
14988 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14990 echo "$as_me:14990: result: $ac_cv_func_memmove" >&5
14991 echo "${ECHO_T}$ac_cv_func_memmove" >&6
14992 if test $ac_cv_func_memmove = yes; then
14996 echo "$as_me:14996: checking for bcopy" >&5
14997 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
14998 if test "${ac_cv_func_bcopy+set}" = set; then
14999 echo $ECHO_N "(cached) $ECHO_C" >&6
15001 cat >conftest.$ac_ext <<_ACEOF
15002 #line 15002 "configure"
15003 #include "confdefs.h"
15004 /* System header to define __stub macros and hopefully few prototypes,
15005 which can conflict with char bcopy (); below. */
15006 #include <assert.h>
15007 /* Override any gcc2 internal prototype to avoid an error. */
15011 /* We use char because int might match the return type of a gcc2
15012 builtin and then its argument prototype would still apply. */
15019 /* The GNU C library defines this for functions which it implements
15020 to always fail with ENOSYS. Some functions are actually named
15021 something starting with __ and the normal name is an alias. */
15022 #if defined (__stub_bcopy) || defined (__stub___bcopy)
15032 rm -f conftest.$ac_objext conftest$ac_exeext
15033 if { (eval echo "$as_me:15033: \"$ac_link\"") >&5
15034 (eval $ac_link) 2>&5
15036 echo "$as_me:15036: \$? = $ac_status" >&5
15037 (exit $ac_status); } &&
15038 { ac_try='test -s conftest$ac_exeext'
15039 { (eval echo "$as_me:15039: \"$ac_try\"") >&5
15040 (eval $ac_try) 2>&5
15042 echo "$as_me:15042: \$? = $ac_status" >&5
15043 (exit $ac_status); }; }; then
15044 ac_cv_func_bcopy=yes
15046 echo "$as_me: failed program was:" >&5
15047 cat conftest.$ac_ext >&5
15048 ac_cv_func_bcopy=no
15050 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15052 echo "$as_me:15052: result: $ac_cv_func_bcopy" >&5
15053 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
15054 if test $ac_cv_func_bcopy = yes; then
15056 echo "$as_me:15056: checking if bcopy does overlapping moves" >&5
15057 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
15058 if test "${cf_cv_good_bcopy+set}" = set; then
15059 echo $ECHO_N "(cached) $ECHO_C" >&6
15062 if test "$cross_compiling" = yes; then
15063 cf_cv_good_bcopy=unknown
15065 cat >conftest.$ac_ext <<_ACEOF
15066 #line 15066 "configure"
15067 #include "confdefs.h"
15070 static char data[] = "abcdefghijklmnopqrstuwwxyz";
15072 bcopy(data, temp, sizeof(data));
15073 bcopy(temp+10, temp, 15);
15074 bcopy(temp+5, temp+15, 10);
15075 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
15079 rm -f conftest$ac_exeext
15080 if { (eval echo "$as_me:15080: \"$ac_link\"") >&5
15081 (eval $ac_link) 2>&5
15083 echo "$as_me:15083: \$? = $ac_status" >&5
15084 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15085 { (eval echo "$as_me:15085: \"$ac_try\"") >&5
15086 (eval $ac_try) 2>&5
15088 echo "$as_me:15088: \$? = $ac_status" >&5
15089 (exit $ac_status); }; }; then
15090 cf_cv_good_bcopy=yes
15092 echo "$as_me: program exited with status $ac_status" >&5
15093 echo "$as_me: failed program was:" >&5
15094 cat conftest.$ac_ext >&5
15095 cf_cv_good_bcopy=no
15097 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15101 echo "$as_me:15101: result: $cf_cv_good_bcopy" >&5
15102 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
15105 cf_cv_good_bcopy=no
15108 if test "$cf_cv_good_bcopy" = yes ; then
15109 cat >>confdefs.h <<\EOF
15110 #define USE_OK_BCOPY 1
15114 cat >>confdefs.h <<\EOF
15115 #define USE_MY_MEMMOVE 1
15122 echo "$as_me:15122: checking if poll really works" >&5
15123 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
15124 if test "${cf_cv_working_poll+set}" = set; then
15125 echo $ECHO_N "(cached) $ECHO_C" >&6
15128 if test "$cross_compiling" = yes; then
15129 cf_cv_working_poll=unknown
15131 cat >conftest.$ac_ext <<_ACEOF
15132 #line 15132 "configure"
15133 #include "confdefs.h"
15139 #include <sys/poll.h>
15142 struct pollfd myfds;
15146 myfds.events = POLLIN;
15148 ret = poll(&myfds, 1, 100);
15149 ${cf_cv_main_return:-return}(ret != 0);
15152 rm -f conftest$ac_exeext
15153 if { (eval echo "$as_me:15153: \"$ac_link\"") >&5
15154 (eval $ac_link) 2>&5
15156 echo "$as_me:15156: \$? = $ac_status" >&5
15157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15158 { (eval echo "$as_me:15158: \"$ac_try\"") >&5
15159 (eval $ac_try) 2>&5
15161 echo "$as_me:15161: \$? = $ac_status" >&5
15162 (exit $ac_status); }; }; then
15163 cf_cv_working_poll=yes
15165 echo "$as_me: program exited with status $ac_status" >&5
15166 echo "$as_me: failed program was:" >&5
15167 cat conftest.$ac_ext >&5
15168 cf_cv_working_poll=no
15170 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15173 echo "$as_me:15173: result: $cf_cv_working_poll" >&5
15174 echo "${ECHO_T}$cf_cv_working_poll" >&6
15175 test "$cf_cv_working_poll" = "yes" && cat >>confdefs.h <<\EOF
15176 #define HAVE_WORKING_POLL 1
15179 echo "$as_me:15179: checking for va_copy" >&5
15180 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
15181 if test "${cf_cv_have_va_copy+set}" = set; then
15182 echo $ECHO_N "(cached) $ECHO_C" >&6
15185 cat >conftest.$ac_ext <<_ACEOF
15186 #line 15186 "configure"
15187 #include "confdefs.h"
15189 #include <stdarg.h>
15195 static va_list dst;
15196 static va_list src;
15202 rm -f conftest.$ac_objext conftest$ac_exeext
15203 if { (eval echo "$as_me:15203: \"$ac_link\"") >&5
15204 (eval $ac_link) 2>&5
15206 echo "$as_me:15206: \$? = $ac_status" >&5
15207 (exit $ac_status); } &&
15208 { ac_try='test -s conftest$ac_exeext'
15209 { (eval echo "$as_me:15209: \"$ac_try\"") >&5
15210 (eval $ac_try) 2>&5
15212 echo "$as_me:15212: \$? = $ac_status" >&5
15213 (exit $ac_status); }; }; then
15214 cf_cv_have_va_copy=yes
15216 echo "$as_me: failed program was:" >&5
15217 cat conftest.$ac_ext >&5
15218 cf_cv_have_va_copy=no
15220 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15222 echo "$as_me:15222: result: $cf_cv_have_va_copy" >&5
15223 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
15225 test "$cf_cv_have_va_copy" = yes && cat >>confdefs.h <<\EOF
15226 #define HAVE_VA_COPY 1
15229 echo "$as_me:15229: checking for __va_copy" >&5
15230 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
15231 if test "${cf_cv_have___va_copy+set}" = set; then
15232 echo $ECHO_N "(cached) $ECHO_C" >&6
15235 cat >conftest.$ac_ext <<_ACEOF
15236 #line 15236 "configure"
15237 #include "confdefs.h"
15239 #include <stdarg.h>
15245 static va_list dst;
15246 static va_list src;
15247 __va_copy(dst, src)
15252 rm -f conftest.$ac_objext conftest$ac_exeext
15253 if { (eval echo "$as_me:15253: \"$ac_link\"") >&5
15254 (eval $ac_link) 2>&5
15256 echo "$as_me:15256: \$? = $ac_status" >&5
15257 (exit $ac_status); } &&
15258 { ac_try='test -s conftest$ac_exeext'
15259 { (eval echo "$as_me:15259: \"$ac_try\"") >&5
15260 (eval $ac_try) 2>&5
15262 echo "$as_me:15262: \$? = $ac_status" >&5
15263 (exit $ac_status); }; }; then
15264 cf_cv_have___va_copy=yes
15266 echo "$as_me: failed program was:" >&5
15267 cat conftest.$ac_ext >&5
15268 cf_cv_have___va_copy=no
15270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15272 echo "$as_me:15272: result: $cf_cv_have___va_copy" >&5
15273 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
15275 test "$cf_cv_have___va_copy" = yes && cat >>confdefs.h <<\EOF
15276 #define HAVE___VA_COPY 1
15279 echo "$as_me:15279: checking for pid_t" >&5
15280 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15281 if test "${ac_cv_type_pid_t+set}" = set; then
15282 echo $ECHO_N "(cached) $ECHO_C" >&6
15284 cat >conftest.$ac_ext <<_ACEOF
15285 #line 15285 "configure"
15286 #include "confdefs.h"
15287 $ac_includes_default
15293 if (sizeof (pid_t))
15299 rm -f conftest.$ac_objext
15300 if { (eval echo "$as_me:15300: \"$ac_compile\"") >&5
15301 (eval $ac_compile) 2>&5
15303 echo "$as_me:15303: \$? = $ac_status" >&5
15304 (exit $ac_status); } &&
15305 { ac_try='test -s conftest.$ac_objext'
15306 { (eval echo "$as_me:15306: \"$ac_try\"") >&5
15307 (eval $ac_try) 2>&5
15309 echo "$as_me:15309: \$? = $ac_status" >&5
15310 (exit $ac_status); }; }; then
15311 ac_cv_type_pid_t=yes
15313 echo "$as_me: failed program was:" >&5
15314 cat conftest.$ac_ext >&5
15315 ac_cv_type_pid_t=no
15317 rm -f conftest.$ac_objext conftest.$ac_ext
15319 echo "$as_me:15319: result: $ac_cv_type_pid_t" >&5
15320 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15321 if test $ac_cv_type_pid_t = yes; then
15325 cat >>confdefs.h <<EOF
15331 for ac_header in unistd.h vfork.h
15333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15334 echo "$as_me:15334: checking for $ac_header" >&5
15335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15337 echo $ECHO_N "(cached) $ECHO_C" >&6
15339 cat >conftest.$ac_ext <<_ACEOF
15340 #line 15340 "configure"
15341 #include "confdefs.h"
15342 #include <$ac_header>
15344 if { (eval echo "$as_me:15344: \"$ac_cpp conftest.$ac_ext\"") >&5
15345 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15347 egrep -v '^ *\+' conftest.er1 >conftest.err
15349 cat conftest.err >&5
15350 echo "$as_me:15350: \$? = $ac_status" >&5
15351 (exit $ac_status); } >/dev/null; then
15352 if test -s conftest.err; then
15353 ac_cpp_err=$ac_c_preproc_warn_flag
15360 if test -z "$ac_cpp_err"; then
15361 eval "$as_ac_Header=yes"
15363 echo "$as_me: failed program was:" >&5
15364 cat conftest.$ac_ext >&5
15365 eval "$as_ac_Header=no"
15367 rm -f conftest.err conftest.$ac_ext
15369 echo "$as_me:15369: result: `eval echo '${'$as_ac_Header'}'`" >&5
15370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15372 cat >>confdefs.h <<EOF
15373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15379 for ac_func in fork vfork
15381 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15382 echo "$as_me:15382: checking for $ac_func" >&5
15383 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15384 if eval "test \"\${$as_ac_var+set}\" = set"; then
15385 echo $ECHO_N "(cached) $ECHO_C" >&6
15387 cat >conftest.$ac_ext <<_ACEOF
15388 #line 15388 "configure"
15389 #include "confdefs.h"
15390 /* System header to define __stub macros and hopefully few prototypes,
15391 which can conflict with char $ac_func (); below. */
15392 #include <assert.h>
15393 /* Override any gcc2 internal prototype to avoid an error. */
15397 /* We use char because int might match the return type of a gcc2
15398 builtin and then its argument prototype would still apply. */
15405 /* The GNU C library defines this for functions which it implements
15406 to always fail with ENOSYS. Some functions are actually named
15407 something starting with __ and the normal name is an alias. */
15408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15418 rm -f conftest.$ac_objext conftest$ac_exeext
15419 if { (eval echo "$as_me:15419: \"$ac_link\"") >&5
15420 (eval $ac_link) 2>&5
15422 echo "$as_me:15422: \$? = $ac_status" >&5
15423 (exit $ac_status); } &&
15424 { ac_try='test -s conftest$ac_exeext'
15425 { (eval echo "$as_me:15425: \"$ac_try\"") >&5
15426 (eval $ac_try) 2>&5
15428 echo "$as_me:15428: \$? = $ac_status" >&5
15429 (exit $ac_status); }; }; then
15430 eval "$as_ac_var=yes"
15432 echo "$as_me: failed program was:" >&5
15433 cat conftest.$ac_ext >&5
15434 eval "$as_ac_var=no"
15436 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15438 echo "$as_me:15438: result: `eval echo '${'$as_ac_var'}'`" >&5
15439 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15440 if test `eval echo '${'$as_ac_var'}'` = yes; then
15441 cat >>confdefs.h <<EOF
15442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15448 ac_cv_func_fork_works=$ac_cv_func_fork
15449 if test "x$ac_cv_func_fork" = xyes; then
15450 echo "$as_me:15450: checking for working fork" >&5
15451 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15452 if test "${ac_cv_func_fork_works+set}" = set; then
15453 echo $ECHO_N "(cached) $ECHO_C" >&6
15455 if test "$cross_compiling" = yes; then
15456 ac_cv_func_fork_works=cross
15458 cat >conftest.$ac_ext <<_ACEOF
15459 /* By Rüdiger Kuhlmann. */
15460 #include <sys/types.h>
15462 # include <unistd.h>
15464 /* Some systems only have a dummy stub for fork() */
15468 $ac_main_return (1);
15469 $ac_main_return (0);
15472 rm -f conftest$ac_exeext
15473 if { (eval echo "$as_me:15473: \"$ac_link\"") >&5
15474 (eval $ac_link) 2>&5
15476 echo "$as_me:15476: \$? = $ac_status" >&5
15477 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15478 { (eval echo "$as_me:15478: \"$ac_try\"") >&5
15479 (eval $ac_try) 2>&5
15481 echo "$as_me:15481: \$? = $ac_status" >&5
15482 (exit $ac_status); }; }; then
15483 ac_cv_func_fork_works=yes
15485 echo "$as_me: program exited with status $ac_status" >&5
15486 echo "$as_me: failed program was:" >&5
15487 cat conftest.$ac_ext >&5
15488 ac_cv_func_fork_works=no
15490 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15493 echo "$as_me:15493: result: $ac_cv_func_fork_works" >&5
15494 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
15497 if test "x$ac_cv_func_fork_works" = xcross; then
15499 *-*-amigaos* | *-*-msdosdjgpp*)
15500 # Override, as these systems have only a dummy fork() stub
15501 ac_cv_func_fork_works=no
15504 ac_cv_func_fork_works=yes
15507 { echo "$as_me:15507: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
15508 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
15510 ac_cv_func_vfork_works=$ac_cv_func_vfork
15511 if test "x$ac_cv_func_vfork" = xyes; then
15512 echo "$as_me:15512: checking for working vfork" >&5
15513 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
15514 if test "${ac_cv_func_vfork_works+set}" = set; then
15515 echo $ECHO_N "(cached) $ECHO_C" >&6
15517 if test "$cross_compiling" = yes; then
15518 ac_cv_func_vfork_works=cross
15520 cat >conftest.$ac_ext <<_ACEOF
15521 #line 15521 "configure"
15522 #include "confdefs.h"
15523 /* Thanks to Paul Eggert for this test. */
15525 #include <sys/types.h>
15526 #include <sys/stat.h>
15528 # include <unistd.h>
15531 # include <vfork.h>
15533 /* On some sparc systems, changes by the child to local and incoming
15534 argument registers are propagated back to the parent. The compiler
15535 is told about this with #include <vfork.h>, but some compilers
15536 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15537 static variable whose address is put into a register that is
15538 clobbered by the vfork. */
15541 sparc_address_test (int arg)
15543 sparc_address_test (arg) int arg;
15546 static pid_t child;
15564 pid_t parent = getpid ();
15567 sparc_address_test ();
15572 /* Here is another test for sparc vfork register problems. This
15573 test uses lots of local variables, at least as many local
15574 variables as main has allocated so far including compiler
15575 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15576 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15577 reuse the register of parent for one of the local variables,
15578 since it will think that parent can't possibly be used any more
15579 in this routine. Assigning to the local variable will thus
15580 munge parent in the parent process. */
15582 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15583 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15584 /* Convince the compiler that p..p7 are live; otherwise, it might
15585 use the same hardware register for all 8 local variables. */
15586 if (p != p1 || p != p2 || p != p3 || p != p4
15587 || p != p5 || p != p6 || p != p7)
15590 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15591 from child file descriptors. If the child closes a descriptor
15592 before it execs or exits, this munges the parent's descriptor
15593 as well. Test for this by closing stdout in the child. */
15594 _exit(close(fileno(stdout)) != 0);
15599 while (wait(&status) != child)
15602 /* Was there some problem with vforking? */
15605 /* Did the child fail? (This shouldn't happen.) */
15608 /* Did the vfork/compiler bug occur? */
15609 || parent != getpid()
15611 /* Did the file descriptor bug occur? */
15612 || fstat(fileno(stdout), &st) != 0
15617 rm -f conftest$ac_exeext
15618 if { (eval echo "$as_me:15618: \"$ac_link\"") >&5
15619 (eval $ac_link) 2>&5
15621 echo "$as_me:15621: \$? = $ac_status" >&5
15622 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15623 { (eval echo "$as_me:15623: \"$ac_try\"") >&5
15624 (eval $ac_try) 2>&5
15626 echo "$as_me:15626: \$? = $ac_status" >&5
15627 (exit $ac_status); }; }; then
15628 ac_cv_func_vfork_works=yes
15630 echo "$as_me: program exited with status $ac_status" >&5
15631 echo "$as_me: failed program was:" >&5
15632 cat conftest.$ac_ext >&5
15633 ac_cv_func_vfork_works=no
15635 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15638 echo "$as_me:15638: result: $ac_cv_func_vfork_works" >&5
15639 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15642 if test "x$ac_cv_func_fork_works" = xcross; then
15643 ac_cv_func_vfork_works=ac_cv_func_vfork
15644 { echo "$as_me:15644: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
15645 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
15648 if test "x$ac_cv_func_vfork_works" = xyes; then
15650 cat >>confdefs.h <<\EOF
15651 #define HAVE_WORKING_VFORK 1
15656 cat >>confdefs.h <<\EOF
15661 if test "x$ac_cv_func_fork_works" = xyes; then
15663 cat >>confdefs.h <<\EOF
15664 #define HAVE_WORKING_FORK 1
15669 # special check for test/ditto.c
15671 echo "$as_me:15671: checking for openpty in -lutil" >&5
15672 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15673 if test "${ac_cv_lib_util_openpty+set}" = set; then
15674 echo $ECHO_N "(cached) $ECHO_C" >&6
15676 ac_check_lib_save_LIBS=$LIBS
15677 LIBS="-lutil $LIBS"
15678 cat >conftest.$ac_ext <<_ACEOF
15679 #line 15679 "configure"
15680 #include "confdefs.h"
15682 /* Override any gcc2 internal prototype to avoid an error. */
15686 /* We use char because int might match the return type of a gcc2
15687 builtin and then its argument prototype would still apply. */
15697 rm -f conftest.$ac_objext conftest$ac_exeext
15698 if { (eval echo "$as_me:15698: \"$ac_link\"") >&5
15699 (eval $ac_link) 2>&5
15701 echo "$as_me:15701: \$? = $ac_status" >&5
15702 (exit $ac_status); } &&
15703 { ac_try='test -s conftest$ac_exeext'
15704 { (eval echo "$as_me:15704: \"$ac_try\"") >&5
15705 (eval $ac_try) 2>&5
15707 echo "$as_me:15707: \$? = $ac_status" >&5
15708 (exit $ac_status); }; }; then
15709 ac_cv_lib_util_openpty=yes
15711 echo "$as_me: failed program was:" >&5
15712 cat conftest.$ac_ext >&5
15713 ac_cv_lib_util_openpty=no
15715 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15716 LIBS=$ac_check_lib_save_LIBS
15718 echo "$as_me:15718: result: $ac_cv_lib_util_openpty" >&5
15719 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15720 if test $ac_cv_lib_util_openpty = yes; then
15726 echo "$as_me:15726: checking for openpty header" >&5
15727 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
15728 if test "${cf_cv_func_openpty+set}" = set; then
15729 echo $ECHO_N "(cached) $ECHO_C" >&6
15732 cf_save_LIBS="$LIBS"
15733 test $cf_cv_lib_util = yes && LIBS="-lutil $LIBS"
15734 for cf_header in pty.h libutil.h util.h
15736 cat >conftest.$ac_ext <<_ACEOF
15737 #line 15737 "configure"
15738 #include "confdefs.h"
15740 #include <$cf_header>
15746 int x = openpty((int *)0, (int *)0, (char *)0,
15747 (struct termios *)0, (struct winsize *)0);
15753 rm -f conftest.$ac_objext conftest$ac_exeext
15754 if { (eval echo "$as_me:15754: \"$ac_link\"") >&5
15755 (eval $ac_link) 2>&5
15757 echo "$as_me:15757: \$? = $ac_status" >&5
15758 (exit $ac_status); } &&
15759 { ac_try='test -s conftest$ac_exeext'
15760 { (eval echo "$as_me:15760: \"$ac_try\"") >&5
15761 (eval $ac_try) 2>&5
15763 echo "$as_me:15763: \$? = $ac_status" >&5
15764 (exit $ac_status); }; }; then
15766 cf_cv_func_openpty=$cf_header
15770 echo "$as_me: failed program was:" >&5
15771 cat conftest.$ac_ext >&5
15773 cf_cv_func_openpty=no
15776 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15778 LIBS="$cf_save_LIBS"
15781 echo "$as_me:15781: result: $cf_cv_func_openpty" >&5
15782 echo "${ECHO_T}$cf_cv_func_openpty" >&6
15784 if test "$cf_cv_func_openpty" != no ; then
15785 cat >>confdefs.h <<EOF
15786 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
15789 cat >>confdefs.h <<\EOF
15790 #define USE_XTERM_PTY 1
15793 if test "$cf_cv_lib_util" = yes ; then
15794 TEST_LIBS="-lutil $TEST_LIBS"
15798 if test "$with_hashed_db" != no ; then
15799 cat >>confdefs.h <<\EOF
15800 #define USE_HASHED_DB 1
15803 case $with_hashed_db in #(vi
15807 if test -d "$with_hashed_db" ; then
15809 if test -n "$with_hashed_db/include" ; then
15810 for cf_add_incdir in $with_hashed_db/include
15812 while test $cf_add_incdir != /usr/include
15814 if test -d $cf_add_incdir
15817 if test -n "$CFLAGS$CPPFLAGS" ; then
15818 # a loop is needed to ensure we can add subdirs of existing dirs
15819 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
15820 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
15821 cf_have_incdir=yes; break
15826 if test "$cf_have_incdir" = no ; then
15827 if test "$cf_add_incdir" = /usr/local/include ; then
15828 if test "$GCC" = yes
15830 cf_save_CPPFLAGS=$CPPFLAGS
15831 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
15832 cat >conftest.$ac_ext <<_ACEOF
15833 #line 15833 "configure"
15834 #include "confdefs.h"
15844 rm -f conftest.$ac_objext
15845 if { (eval echo "$as_me:15845: \"$ac_compile\"") >&5
15846 (eval $ac_compile) 2>&5
15848 echo "$as_me:15848: \$? = $ac_status" >&5
15849 (exit $ac_status); } &&
15850 { ac_try='test -s conftest.$ac_objext'
15851 { (eval echo "$as_me:15851: \"$ac_try\"") >&5
15852 (eval $ac_try) 2>&5
15854 echo "$as_me:15854: \$? = $ac_status" >&5
15855 (exit $ac_status); }; }; then
15858 echo "$as_me: failed program was:" >&5
15859 cat conftest.$ac_ext >&5
15862 rm -f conftest.$ac_objext conftest.$ac_ext
15863 CPPFLAGS=$cf_save_CPPFLAGS
15868 if test "$cf_have_incdir" = no ; then
15869 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
15871 echo "${as_me-configure}:15871: testing adding $cf_add_incdir to include-path ..." 1>&5
15873 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
15875 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
15876 test "$cf_top_incdir" = "$cf_add_incdir" && break
15877 cf_add_incdir="$cf_top_incdir"
15886 if test -n "$with_hashed_db/lib" ; then
15887 for cf_add_libdir in $with_hashed_db/lib
15889 if test $cf_add_libdir = /usr/lib ; then
15891 elif test -d $cf_add_libdir
15894 if test -n "$LDFLAGS$LIBS" ; then
15895 # a loop is needed to ensure we can add subdirs of existing dirs
15896 for cf_test_libdir in $LDFLAGS $LIBS ; do
15897 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
15898 cf_have_libdir=yes; break
15902 if test "$cf_have_libdir" = no ; then
15903 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
15905 echo "${as_me-configure}:15905: testing adding $cf_add_libdir to library-path ..." 1>&5
15907 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
15916 echo "$as_me:15916: checking for db.h" >&5
15917 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
15918 if test "${ac_cv_header_db_h+set}" = set; then
15919 echo $ECHO_N "(cached) $ECHO_C" >&6
15921 cat >conftest.$ac_ext <<_ACEOF
15922 #line 15922 "configure"
15923 #include "confdefs.h"
15926 if { (eval echo "$as_me:15926: \"$ac_cpp conftest.$ac_ext\"") >&5
15927 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15929 egrep -v '^ *\+' conftest.er1 >conftest.err
15931 cat conftest.err >&5
15932 echo "$as_me:15932: \$? = $ac_status" >&5
15933 (exit $ac_status); } >/dev/null; then
15934 if test -s conftest.err; then
15935 ac_cpp_err=$ac_c_preproc_warn_flag
15942 if test -z "$ac_cpp_err"; then
15943 ac_cv_header_db_h=yes
15945 echo "$as_me: failed program was:" >&5
15946 cat conftest.$ac_ext >&5
15947 ac_cv_header_db_h=no
15949 rm -f conftest.err conftest.$ac_ext
15951 echo "$as_me:15951: result: $ac_cv_header_db_h" >&5
15952 echo "${ECHO_T}$ac_cv_header_db_h" >&6
15953 if test $ac_cv_header_db_h = yes; then
15955 echo "$as_me:15955: checking for version of db" >&5
15956 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
15957 if test "${cf_cv_hashed_db_version+set}" = set; then
15958 echo $ECHO_N "(cached) $ECHO_C" >&6
15961 cf_cv_hashed_db_version=unknown
15963 for cf_db_version in 1 2 3 4 5
15966 echo "${as_me-configure}:15966: testing checking for db version $cf_db_version ..." 1>&5
15968 cat >conftest.$ac_ext <<_ACEOF
15969 #line 15969 "configure"
15970 #include "confdefs.h"
15972 $ac_includes_default
15975 #ifdef DB_VERSION_MAJOR
15976 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
15977 #if $cf_db_version == DB_VERSION_MAJOR
15983 #if $cf_db_version == 1
15984 /* ok: assuming this is DB 1.8.5 */
15998 rm -f conftest.$ac_objext
15999 if { (eval echo "$as_me:15999: \"$ac_compile\"") >&5
16000 (eval $ac_compile) 2>&5
16002 echo "$as_me:16002: \$? = $ac_status" >&5
16003 (exit $ac_status); } &&
16004 { ac_try='test -s conftest.$ac_objext'
16005 { (eval echo "$as_me:16005: \"$ac_try\"") >&5
16006 (eval $ac_try) 2>&5
16008 echo "$as_me:16008: \$? = $ac_status" >&5
16009 (exit $ac_status); }; }; then
16011 cf_cv_hashed_db_version=$cf_db_version
16015 echo "$as_me: failed program was:" >&5
16016 cat conftest.$ac_ext >&5
16018 rm -f conftest.$ac_objext conftest.$ac_ext
16022 echo "$as_me:16022: result: $cf_cv_hashed_db_version" >&5
16023 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
16025 if test "$cf_cv_hashed_db_version" = unknown ; then
16026 { { echo "$as_me:16026: error: Cannot determine version of db" >&5
16027 echo "$as_me: error: Cannot determine version of db" >&2;}
16028 { (exit 1); exit 1; }; }
16031 echo "$as_me:16031: checking for db libraries" >&5
16032 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
16033 if test "${cf_cv_hashed_db_libs+set}" = set; then
16034 echo $ECHO_N "(cached) $ECHO_C" >&6
16037 cf_cv_hashed_db_libs=unknown
16038 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
16040 cf_save_libs="$LIBS"
16041 if test -n "$cf_db_libs"; then
16042 LIBS="-l$cf_db_libs $LIBS"
16045 echo "${as_me-configure}:16045: testing checking for library "$cf_db_libs" ..." 1>&5
16047 cat >conftest.$ac_ext <<_ACEOF
16048 #line 16048 "configure"
16049 #include "confdefs.h"
16051 $ac_includes_default
16058 char *path = "/tmp/foo";
16059 #ifdef DB_VERSION_MAJOR
16060 #if DB_VERSION_MAJOR >= 4
16062 db_create(&result, NULL, 0);
16063 result->open(result,
16070 #elif DB_VERSION_MAJOR >= 3
16072 db_create(&result, NULL, 0);
16073 result->open(result,
16079 #elif DB_VERSION_MAJOR >= 2
16088 #endif /* DB_VERSION_MAJOR */
16090 DB *result = dbopen(path,
16096 ${cf_cv_main_return:-return}(result != 0)
16102 rm -f conftest.$ac_objext conftest$ac_exeext
16103 if { (eval echo "$as_me:16103: \"$ac_link\"") >&5
16104 (eval $ac_link) 2>&5
16106 echo "$as_me:16106: \$? = $ac_status" >&5
16107 (exit $ac_status); } &&
16108 { ac_try='test -s conftest$ac_exeext'
16109 { (eval echo "$as_me:16109: \"$ac_try\"") >&5
16110 (eval $ac_try) 2>&5
16112 echo "$as_me:16112: \$? = $ac_status" >&5
16113 (exit $ac_status); }; }; then
16115 if test -n "$cf_db_libs" ; then
16116 cf_cv_hashed_db_libs=$cf_db_libs
16118 cf_cv_hashed_db_libs=default
16120 LIBS="$cf_save_libs"
16124 echo "$as_me: failed program was:" >&5
16125 cat conftest.$ac_ext >&5
16127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16128 LIBS="$cf_save_libs"
16132 echo "$as_me:16132: result: $cf_cv_hashed_db_libs" >&5
16133 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
16135 if test "$cf_cv_hashed_db_libs" = unknown ; then
16136 { { echo "$as_me:16136: error: Cannot determine library for db" >&5
16137 echo "$as_me: error: Cannot determine library for db" >&2;}
16138 { (exit 1); exit 1; }; }
16139 elif test "$cf_cv_hashed_db_libs" != default ; then
16140 LIBS="-l$cf_cv_hashed_db_libs $LIBS"
16146 { { echo "$as_me:16146: error: Cannot find db.h" >&5
16147 echo "$as_me: error: Cannot find db.h" >&2;}
16148 { (exit 1); exit 1; }; }
16154 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
16155 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
16156 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
16159 # Just in case, check if the C compiler has a bool type.
16161 echo "$as_me:16161: checking if we should include stdbool.h" >&5
16162 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
16164 if test "${cf_cv_header_stdbool_h+set}" = set; then
16165 echo $ECHO_N "(cached) $ECHO_C" >&6
16168 cat >conftest.$ac_ext <<_ACEOF
16169 #line 16169 "configure"
16170 #include "confdefs.h"
16180 rm -f conftest.$ac_objext
16181 if { (eval echo "$as_me:16181: \"$ac_compile\"") >&5
16182 (eval $ac_compile) 2>&5
16184 echo "$as_me:16184: \$? = $ac_status" >&5
16185 (exit $ac_status); } &&
16186 { ac_try='test -s conftest.$ac_objext'
16187 { (eval echo "$as_me:16187: \"$ac_try\"") >&5
16188 (eval $ac_try) 2>&5
16190 echo "$as_me:16190: \$? = $ac_status" >&5
16191 (exit $ac_status); }; }; then
16192 cf_cv_header_stdbool_h=0
16194 echo "$as_me: failed program was:" >&5
16195 cat conftest.$ac_ext >&5
16196 cat >conftest.$ac_ext <<_ACEOF
16197 #line 16197 "configure"
16198 #include "confdefs.h"
16201 #include <stdbool.h>
16212 rm -f conftest.$ac_objext
16213 if { (eval echo "$as_me:16213: \"$ac_compile\"") >&5
16214 (eval $ac_compile) 2>&5
16216 echo "$as_me:16216: \$? = $ac_status" >&5
16217 (exit $ac_status); } &&
16218 { ac_try='test -s conftest.$ac_objext'
16219 { (eval echo "$as_me:16219: \"$ac_try\"") >&5
16220 (eval $ac_try) 2>&5
16222 echo "$as_me:16222: \$? = $ac_status" >&5
16223 (exit $ac_status); }; }; then
16224 cf_cv_header_stdbool_h=1
16226 echo "$as_me: failed program was:" >&5
16227 cat conftest.$ac_ext >&5
16228 cf_cv_header_stdbool_h=0
16230 rm -f conftest.$ac_objext conftest.$ac_ext
16232 rm -f conftest.$ac_objext conftest.$ac_ext
16235 if test "$cf_cv_header_stdbool_h" = 1
16236 then echo "$as_me:16236: result: yes" >&5
16237 echo "${ECHO_T}yes" >&6
16238 else echo "$as_me:16238: result: no" >&5
16239 echo "${ECHO_T}no" >&6
16242 echo "$as_me:16242: checking for builtin bool type" >&5
16243 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
16245 if test "${cf_cv_cc_bool_type+set}" = set; then
16246 echo $ECHO_N "(cached) $ECHO_C" >&6
16249 cat >conftest.$ac_ext <<_ACEOF
16250 #line 16250 "configure"
16251 #include "confdefs.h"
16254 #include <sys/types.h>
16264 rm -f conftest.$ac_objext
16265 if { (eval echo "$as_me:16265: \"$ac_compile\"") >&5
16266 (eval $ac_compile) 2>&5
16268 echo "$as_me:16268: \$? = $ac_status" >&5
16269 (exit $ac_status); } &&
16270 { ac_try='test -s conftest.$ac_objext'
16271 { (eval echo "$as_me:16271: \"$ac_try\"") >&5
16272 (eval $ac_try) 2>&5
16274 echo "$as_me:16274: \$? = $ac_status" >&5
16275 (exit $ac_status); }; }; then
16276 cf_cv_cc_bool_type=1
16278 echo "$as_me: failed program was:" >&5
16279 cat conftest.$ac_ext >&5
16280 cf_cv_cc_bool_type=0
16282 rm -f conftest.$ac_objext conftest.$ac_ext
16286 if test "$cf_cv_cc_bool_type" = 1
16287 then echo "$as_me:16287: result: yes" >&5
16288 echo "${ECHO_T}yes" >&6
16289 else echo "$as_me:16289: result: no" >&5
16290 echo "${ECHO_T}no" >&6
16293 # Check for C++ compiler characteristics (and ensure that it's there!)
16294 if test -n "$CXX" ; then
16296 ac_cpp='$CXXCPP $CPPFLAGS'
16297 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16298 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16299 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16300 ac_main_return=return
16302 if test -n "$GXX" ; then
16303 case $cf_cv_system_name in #(vi
16305 cf_stdcpp_libname=stdcpp
16308 cf_stdcpp_libname=stdc++
16311 echo "$as_me:16311: checking for library $cf_stdcpp_libname" >&5
16312 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
16313 if test "${cf_cv_libstdcpp+set}" = set; then
16314 echo $ECHO_N "(cached) $ECHO_C" >&6
16318 LIBS="-l$cf_stdcpp_libname $LIBS"
16319 cat >conftest.$ac_ext <<_ACEOF
16320 #line 16320 "configure"
16321 #include "confdefs.h"
16323 #include <strstream.h>
16329 strstreambuf foo(buf, sizeof(buf))
16335 rm -f conftest.$ac_objext conftest$ac_exeext
16336 if { (eval echo "$as_me:16336: \"$ac_link\"") >&5
16337 (eval $ac_link) 2>&5
16339 echo "$as_me:16339: \$? = $ac_status" >&5
16340 (exit $ac_status); } &&
16341 { ac_try='test -s conftest$ac_exeext'
16342 { (eval echo "$as_me:16342: \"$ac_try\"") >&5
16343 (eval $ac_try) 2>&5
16345 echo "$as_me:16345: \$? = $ac_status" >&5
16346 (exit $ac_status); }; }; then
16347 cf_cv_libstdcpp=yes
16349 echo "$as_me: failed program was:" >&5
16350 cat conftest.$ac_ext >&5
16353 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16357 echo "$as_me:16357: result: $cf_cv_libstdcpp" >&5
16358 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
16359 test "$cf_cv_libstdcpp" = yes && CXXLIBS="$CXXLIBS -l$cf_stdcpp_libname"
16362 echo "$as_me:16362: checking whether $CXX understands -c and -o together" >&5
16363 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
16364 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
16365 echo $ECHO_N "(cached) $ECHO_C" >&6
16368 cat > conftest.$ac_ext <<CF_EOF
16372 ${cf_cv_main_return:-return}(0);
16375 # We do the test twice because some compilers refuse to overwrite an
16376 # existing .o file with -o, though they will create one.
16377 ac_try='$CXX -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
16378 if { (eval echo "$as_me:16378: \"$ac_try\"") >&5
16379 (eval $ac_try) 2>&5
16381 echo "$as_me:16381: \$? = $ac_status" >&5
16382 (exit $ac_status); } &&
16383 test -f conftest2.$ac_objext && { (eval echo "$as_me:16383: \"$ac_try\"") >&5
16384 (eval $ac_try) 2>&5
16386 echo "$as_me:16386: \$? = $ac_status" >&5
16387 (exit $ac_status); };
16389 eval cf_cv_prog_CXX_c_o=yes
16391 eval cf_cv_prog_CXX_c_o=no
16396 if test $cf_cv_prog_CXX_c_o = yes; then
16397 echo "$as_me:16397: result: yes" >&5
16398 echo "${ECHO_T}yes" >&6
16400 echo "$as_me:16400: result: no" >&5
16401 echo "${ECHO_T}no" >&6
16404 case $GXX_VERSION in
16410 cf_cxx_library=unknown
16411 case $cf_cv_system_name in #(vi
16419 if test "$GXX" = yes; then
16420 echo "$as_me:16420: checking for lib$cf_gpp_libname" >&5
16421 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
16423 LIBS="-l$cf_gpp_libname $LIBS"
16424 cat >conftest.$ac_ext <<_ACEOF
16425 #line 16425 "configure"
16426 #include "confdefs.h"
16428 #include <$cf_gpp_libname/builtin.h>
16433 two_arg_error_handler_t foo2 = lib_error_handler
16438 rm -f conftest.$ac_objext conftest$ac_exeext
16439 if { (eval echo "$as_me:16439: \"$ac_link\"") >&5
16440 (eval $ac_link) 2>&5
16442 echo "$as_me:16442: \$? = $ac_status" >&5
16443 (exit $ac_status); } &&
16444 { ac_try='test -s conftest$ac_exeext'
16445 { (eval echo "$as_me:16445: \"$ac_try\"") >&5
16446 (eval $ac_try) 2>&5
16448 echo "$as_me:16448: \$? = $ac_status" >&5
16449 (exit $ac_status); }; }; then
16451 CXXLIBS="$CXXLIBS -l$cf_gpp_libname"
16452 if test "$cf_gpp_libname" = cpp ; then
16453 cat >>confdefs.h <<\EOF
16454 #define HAVE_GPP_BUILTIN_H 1
16458 cat >>confdefs.h <<\EOF
16459 #define HAVE_GXX_BUILTIN_H 1
16464 echo "$as_me: failed program was:" >&5
16465 cat conftest.$ac_ext >&5
16466 cat >conftest.$ac_ext <<_ACEOF
16467 #line 16467 "configure"
16468 #include "confdefs.h"
16470 #include <builtin.h>
16475 two_arg_error_handler_t foo2 = lib_error_handler
16480 rm -f conftest.$ac_objext conftest$ac_exeext
16481 if { (eval echo "$as_me:16481: \"$ac_link\"") >&5
16482 (eval $ac_link) 2>&5
16484 echo "$as_me:16484: \$? = $ac_status" >&5
16485 (exit $ac_status); } &&
16486 { ac_try='test -s conftest$ac_exeext'
16487 { (eval echo "$as_me:16487: \"$ac_try\"") >&5
16488 (eval $ac_try) 2>&5
16490 echo "$as_me:16490: \$? = $ac_status" >&5
16491 (exit $ac_status); }; }; then
16493 CXXLIBS="$CXXLIBS -l$cf_gpp_libname"
16494 cat >>confdefs.h <<\EOF
16495 #define HAVE_BUILTIN_H 1
16499 echo "$as_me: failed program was:" >&5
16500 cat conftest.$ac_ext >&5
16503 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16505 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16507 echo "$as_me:16507: result: $cf_cxx_library" >&5
16508 echo "${ECHO_T}$cf_cxx_library" >&6
16518 ac_cpp='$CXXCPP $CPPFLAGS'
16519 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16520 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16521 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16522 ac_main_return=return
16523 echo "$as_me:16523: checking how to run the C++ preprocessor" >&5
16524 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
16525 if test -z "$CXXCPP"; then
16526 if test "${ac_cv_prog_CXXCPP+set}" = set; then
16527 echo $ECHO_N "(cached) $ECHO_C" >&6
16529 # Double quotes because CXXCPP needs to be expanded
16530 for CXXCPP in "$CXX -E" "/lib/cpp"
16532 ac_preproc_ok=false
16533 for ac_cxx_preproc_warn_flag in '' yes
16535 # Use a header file that comes with gcc, so configuring glibc
16536 # with a fresh cross-compiler works.
16537 # On the NeXT, cc -E runs the code through the compiler's parser,
16538 # not just through cpp. "Syntax error" is here to catch this case.
16539 cat >conftest.$ac_ext <<_ACEOF
16540 #line 16540 "configure"
16541 #include "confdefs.h"
16542 #include <assert.h>
16545 if { (eval echo "$as_me:16545: \"$ac_cpp conftest.$ac_ext\"") >&5
16546 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16548 egrep -v '^ *\+' conftest.er1 >conftest.err
16550 cat conftest.err >&5
16551 echo "$as_me:16551: \$? = $ac_status" >&5
16552 (exit $ac_status); } >/dev/null; then
16553 if test -s conftest.err; then
16554 ac_cpp_err=$ac_cxx_preproc_warn_flag
16561 if test -z "$ac_cpp_err"; then
16564 echo "$as_me: failed program was:" >&5
16565 cat conftest.$ac_ext >&5
16566 # Broken: fails on valid input.
16569 rm -f conftest.err conftest.$ac_ext
16571 # OK, works on sane cases. Now check whether non-existent headers
16572 # can be detected and how.
16573 cat >conftest.$ac_ext <<_ACEOF
16574 #line 16574 "configure"
16575 #include "confdefs.h"
16576 #include <ac_nonexistent.h>
16578 if { (eval echo "$as_me:16578: \"$ac_cpp conftest.$ac_ext\"") >&5
16579 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16581 egrep -v '^ *\+' conftest.er1 >conftest.err
16583 cat conftest.err >&5
16584 echo "$as_me:16584: \$? = $ac_status" >&5
16585 (exit $ac_status); } >/dev/null; then
16586 if test -s conftest.err; then
16587 ac_cpp_err=$ac_cxx_preproc_warn_flag
16594 if test -z "$ac_cpp_err"; then
16595 # Broken: success on invalid input.
16598 echo "$as_me: failed program was:" >&5
16599 cat conftest.$ac_ext >&5
16600 # Passes both tests.
16604 rm -f conftest.err conftest.$ac_ext
16607 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16608 rm -f conftest.err conftest.$ac_ext
16609 if $ac_preproc_ok; then
16614 ac_cv_prog_CXXCPP=$CXXCPP
16617 CXXCPP=$ac_cv_prog_CXXCPP
16619 ac_cv_prog_CXXCPP=$CXXCPP
16621 echo "$as_me:16621: result: $CXXCPP" >&5
16622 echo "${ECHO_T}$CXXCPP" >&6
16623 ac_preproc_ok=false
16624 for ac_cxx_preproc_warn_flag in '' yes
16626 # Use a header file that comes with gcc, so configuring glibc
16627 # with a fresh cross-compiler works.
16628 # On the NeXT, cc -E runs the code through the compiler's parser,
16629 # not just through cpp. "Syntax error" is here to catch this case.
16630 cat >conftest.$ac_ext <<_ACEOF
16631 #line 16631 "configure"
16632 #include "confdefs.h"
16633 #include <assert.h>
16636 if { (eval echo "$as_me:16636: \"$ac_cpp conftest.$ac_ext\"") >&5
16637 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16639 egrep -v '^ *\+' conftest.er1 >conftest.err
16641 cat conftest.err >&5
16642 echo "$as_me:16642: \$? = $ac_status" >&5
16643 (exit $ac_status); } >/dev/null; then
16644 if test -s conftest.err; then
16645 ac_cpp_err=$ac_cxx_preproc_warn_flag
16652 if test -z "$ac_cpp_err"; then
16655 echo "$as_me: failed program was:" >&5
16656 cat conftest.$ac_ext >&5
16657 # Broken: fails on valid input.
16660 rm -f conftest.err conftest.$ac_ext
16662 # OK, works on sane cases. Now check whether non-existent headers
16663 # can be detected and how.
16664 cat >conftest.$ac_ext <<_ACEOF
16665 #line 16665 "configure"
16666 #include "confdefs.h"
16667 #include <ac_nonexistent.h>
16669 if { (eval echo "$as_me:16669: \"$ac_cpp conftest.$ac_ext\"") >&5
16670 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16672 egrep -v '^ *\+' conftest.er1 >conftest.err
16674 cat conftest.err >&5
16675 echo "$as_me:16675: \$? = $ac_status" >&5
16676 (exit $ac_status); } >/dev/null; then
16677 if test -s conftest.err; then
16678 ac_cpp_err=$ac_cxx_preproc_warn_flag
16685 if test -z "$ac_cpp_err"; then
16686 # Broken: success on invalid input.
16689 echo "$as_me: failed program was:" >&5
16690 cat conftest.$ac_ext >&5
16691 # Passes both tests.
16695 rm -f conftest.err conftest.$ac_ext
16698 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16699 rm -f conftest.err conftest.$ac_ext
16700 if $ac_preproc_ok; then
16703 { { echo "$as_me:16703: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
16704 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
16705 { (exit 1); exit 1; }; }
16709 ac_cpp='$CXXCPP $CPPFLAGS'
16710 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16711 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16712 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16713 ac_main_return=return
16715 for ac_header in iostream typeinfo
16717 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16718 echo "$as_me:16718: checking for $ac_header" >&5
16719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16721 echo $ECHO_N "(cached) $ECHO_C" >&6
16723 cat >conftest.$ac_ext <<_ACEOF
16724 #line 16724 "configure"
16725 #include "confdefs.h"
16726 #include <$ac_header>
16728 if { (eval echo "$as_me:16728: \"$ac_cpp conftest.$ac_ext\"") >&5
16729 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16731 egrep -v '^ *\+' conftest.er1 >conftest.err
16733 cat conftest.err >&5
16734 echo "$as_me:16734: \$? = $ac_status" >&5
16735 (exit $ac_status); } >/dev/null; then
16736 if test -s conftest.err; then
16737 ac_cpp_err=$ac_cxx_preproc_warn_flag
16744 if test -z "$ac_cpp_err"; then
16745 eval "$as_ac_Header=yes"
16747 echo "$as_me: failed program was:" >&5
16748 cat conftest.$ac_ext >&5
16749 eval "$as_ac_Header=no"
16751 rm -f conftest.err conftest.$ac_ext
16753 echo "$as_me:16753: result: `eval echo '${'$as_ac_Header'}'`" >&5
16754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16755 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16756 cat >>confdefs.h <<EOF
16757 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16763 if test x"$ac_cv_header_iostream" = xyes ; then
16764 echo "$as_me:16764: checking if iostream uses std-namespace" >&5
16765 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
16766 cat >conftest.$ac_ext <<_ACEOF
16767 #line 16767 "configure"
16768 #include "confdefs.h"
16770 #include <iostream>
16777 cerr << "testing" << endl;
16783 rm -f conftest.$ac_objext
16784 if { (eval echo "$as_me:16784: \"$ac_compile\"") >&5
16785 (eval $ac_compile) 2>&5
16787 echo "$as_me:16787: \$? = $ac_status" >&5
16788 (exit $ac_status); } &&
16789 { ac_try='test -s conftest.$ac_objext'
16790 { (eval echo "$as_me:16790: \"$ac_try\"") >&5
16791 (eval $ac_try) 2>&5
16793 echo "$as_me:16793: \$? = $ac_status" >&5
16794 (exit $ac_status); }; }; then
16795 cf_iostream_namespace=yes
16797 echo "$as_me: failed program was:" >&5
16798 cat conftest.$ac_ext >&5
16799 cf_iostream_namespace=no
16801 rm -f conftest.$ac_objext conftest.$ac_ext
16802 echo "$as_me:16802: result: $cf_iostream_namespace" >&5
16803 echo "${ECHO_T}$cf_iostream_namespace" >&6
16804 if test "$cf_iostream_namespace" = yes ; then
16805 cat >>confdefs.h <<\EOF
16806 #define IOSTREAM_NAMESPACE 1
16812 echo "$as_me:16812: checking if we should include stdbool.h" >&5
16813 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
16815 if test "${cf_cv_header_stdbool_h+set}" = set; then
16816 echo $ECHO_N "(cached) $ECHO_C" >&6
16819 cat >conftest.$ac_ext <<_ACEOF
16820 #line 16820 "configure"
16821 #include "confdefs.h"
16831 rm -f conftest.$ac_objext
16832 if { (eval echo "$as_me:16832: \"$ac_compile\"") >&5
16833 (eval $ac_compile) 2>&5
16835 echo "$as_me:16835: \$? = $ac_status" >&5
16836 (exit $ac_status); } &&
16837 { ac_try='test -s conftest.$ac_objext'
16838 { (eval echo "$as_me:16838: \"$ac_try\"") >&5
16839 (eval $ac_try) 2>&5
16841 echo "$as_me:16841: \$? = $ac_status" >&5
16842 (exit $ac_status); }; }; then
16843 cf_cv_header_stdbool_h=0
16845 echo "$as_me: failed program was:" >&5
16846 cat conftest.$ac_ext >&5
16847 cat >conftest.$ac_ext <<_ACEOF
16848 #line 16848 "configure"
16849 #include "confdefs.h"
16852 #include <stdbool.h>
16863 rm -f conftest.$ac_objext
16864 if { (eval echo "$as_me:16864: \"$ac_compile\"") >&5
16865 (eval $ac_compile) 2>&5
16867 echo "$as_me:16867: \$? = $ac_status" >&5
16868 (exit $ac_status); } &&
16869 { ac_try='test -s conftest.$ac_objext'
16870 { (eval echo "$as_me:16870: \"$ac_try\"") >&5
16871 (eval $ac_try) 2>&5
16873 echo "$as_me:16873: \$? = $ac_status" >&5
16874 (exit $ac_status); }; }; then
16875 cf_cv_header_stdbool_h=1
16877 echo "$as_me: failed program was:" >&5
16878 cat conftest.$ac_ext >&5
16879 cf_cv_header_stdbool_h=0
16881 rm -f conftest.$ac_objext conftest.$ac_ext
16883 rm -f conftest.$ac_objext conftest.$ac_ext
16886 if test "$cf_cv_header_stdbool_h" = 1
16887 then echo "$as_me:16887: result: yes" >&5
16888 echo "${ECHO_T}yes" >&6
16889 else echo "$as_me:16889: result: no" >&5
16890 echo "${ECHO_T}no" >&6
16893 echo "$as_me:16893: checking for builtin bool type" >&5
16894 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
16896 if test "${cf_cv_builtin_bool+set}" = set; then
16897 echo $ECHO_N "(cached) $ECHO_C" >&6
16900 cat >conftest.$ac_ext <<_ACEOF
16901 #line 16901 "configure"
16902 #include "confdefs.h"
16905 #include <sys/types.h>
16915 rm -f conftest.$ac_objext
16916 if { (eval echo "$as_me:16916: \"$ac_compile\"") >&5
16917 (eval $ac_compile) 2>&5
16919 echo "$as_me:16919: \$? = $ac_status" >&5
16920 (exit $ac_status); } &&
16921 { ac_try='test -s conftest.$ac_objext'
16922 { (eval echo "$as_me:16922: \"$ac_try\"") >&5
16923 (eval $ac_try) 2>&5
16925 echo "$as_me:16925: \$? = $ac_status" >&5
16926 (exit $ac_status); }; }; then
16927 cf_cv_builtin_bool=1
16929 echo "$as_me: failed program was:" >&5
16930 cat conftest.$ac_ext >&5
16931 cf_cv_builtin_bool=0
16933 rm -f conftest.$ac_objext conftest.$ac_ext
16937 if test "$cf_cv_builtin_bool" = 1
16938 then echo "$as_me:16938: result: yes" >&5
16939 echo "${ECHO_T}yes" >&6
16940 else echo "$as_me:16940: result: no" >&5
16941 echo "${ECHO_T}no" >&6
16944 echo "$as_me:16944: checking for size of bool" >&5
16945 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
16946 if test "${cf_cv_type_of_bool+set}" = set; then
16947 echo $ECHO_N "(cached) $ECHO_C" >&6
16951 if test "$cross_compiling" = yes; then
16952 cf_cv_type_of_bool=unknown
16954 cat >conftest.$ac_ext <<_ACEOF
16955 #line 16955 "configure"
16956 #include "confdefs.h"
16958 #include <stdlib.h>
16961 #if defined(__cplusplus)
16963 #ifdef HAVE_GXX_BUILTIN_H
16964 #include <g++/builtin.h>
16965 #elif HAVE_GPP_BUILTIN_H
16966 #include <gpp/builtin.h>
16967 #elif HAVE_BUILTIN_H
16968 #include <builtin.h>
16973 #if $cf_cv_header_stdbool_h
16974 #include <stdbool.h>
16981 FILE *fp = fopen("cf_test.out", "w");
16984 if ((bool)(-x) >= 0)
16985 fputs("unsigned ", fp);
16986 if (sizeof(x) == sizeof(int)) fputs("int", fp);
16987 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
16988 else if (sizeof(x) == sizeof(short))fputs("short",fp);
16989 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
16992 ${cf_cv_main_return:-return}(0);
16996 rm -f conftest$ac_exeext
16997 if { (eval echo "$as_me:16997: \"$ac_link\"") >&5
16998 (eval $ac_link) 2>&5
17000 echo "$as_me:17000: \$? = $ac_status" >&5
17001 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17002 { (eval echo "$as_me:17002: \"$ac_try\"") >&5
17003 (eval $ac_try) 2>&5
17005 echo "$as_me:17005: \$? = $ac_status" >&5
17006 (exit $ac_status); }; }; then
17007 cf_cv_type_of_bool=`cat cf_test.out`
17008 if test -z "$cf_cv_type_of_bool"; then
17009 cf_cv_type_of_bool=unknown
17012 echo "$as_me: program exited with status $ac_status" >&5
17013 echo "$as_me: failed program was:" >&5
17014 cat conftest.$ac_ext >&5
17015 cf_cv_type_of_bool=unknown
17017 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17023 echo "$as_me:17023: result: $cf_cv_type_of_bool" >&5
17024 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
17025 if test "$cf_cv_type_of_bool" = unknown ; then
17026 case .$NCURSES_BOOL in #(vi
17027 .auto|.) NCURSES_BOOL=unsigned;;
17029 { echo "$as_me:17029: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
17030 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
17031 cf_cv_type_of_bool=$NCURSES_BOOL
17034 echo "$as_me:17034: checking for special defines needed for etip.h" >&5
17035 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
17036 cf_save_CXXFLAGS="$CXXFLAGS"
17038 for cf_math in "" MATH_H
17040 for cf_excp in "" MATH_EXCEPTION
17042 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -I${srcdir}/include"
17043 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
17044 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
17045 cat >conftest.$ac_ext <<_ACEOF
17046 #line 17046 "configure"
17047 #include "confdefs.h"
17049 #include <etip.h.in>
17059 rm -f conftest.$ac_objext
17060 if { (eval echo "$as_me:17060: \"$ac_compile\"") >&5
17061 (eval $ac_compile) 2>&5
17063 echo "$as_me:17063: \$? = $ac_status" >&5
17064 (exit $ac_status); } &&
17065 { ac_try='test -s conftest.$ac_objext'
17066 { (eval echo "$as_me:17066: \"$ac_try\"") >&5
17067 (eval $ac_try) 2>&5
17069 echo "$as_me:17069: \$? = $ac_status" >&5
17070 (exit $ac_status); }; }; then
17072 test -n "$cf_math" && cat >>confdefs.h <<EOF
17073 #define ETIP_NEEDS_${cf_math} 1
17076 test -n "$cf_excp" && cat >>confdefs.h <<EOF
17077 #define ETIP_NEEDS_${cf_excp} 1
17080 cf_result="$cf_math $cf_excp"
17084 echo "$as_me: failed program was:" >&5
17085 cat conftest.$ac_ext >&5
17087 rm -f conftest.$ac_objext conftest.$ac_ext
17090 echo "$as_me:17090: result: $cf_result" >&5
17091 echo "${ECHO_T}$cf_result" >&6
17092 CXXFLAGS="$cf_save_CXXFLAGS"
17094 if test -n "$CXX"; then
17095 echo "$as_me:17095: checking if $CXX accepts parameter initialization" >&5
17096 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
17097 if test "${cf_cv_cpp_param_init+set}" = set; then
17098 echo $ECHO_N "(cached) $ECHO_C" >&6
17102 ac_cpp='$CXXCPP $CPPFLAGS'
17103 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17104 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17105 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17106 ac_main_return=return
17108 if test "$cross_compiling" = yes; then
17109 cf_cv_cpp_param_init=unknown
17111 cat >conftest.$ac_ext <<_ACEOF
17112 #line 17112 "configure"
17113 #include "confdefs.h"
17123 TEST::TEST(int x = 1) // some compilers do not like second initializer
17130 rm -f conftest$ac_exeext
17131 if { (eval echo "$as_me:17131: \"$ac_link\"") >&5
17132 (eval $ac_link) 2>&5
17134 echo "$as_me:17134: \$? = $ac_status" >&5
17135 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17136 { (eval echo "$as_me:17136: \"$ac_try\"") >&5
17137 (eval $ac_try) 2>&5
17139 echo "$as_me:17139: \$? = $ac_status" >&5
17140 (exit $ac_status); }; }; then
17141 cf_cv_cpp_param_init=yes
17143 echo "$as_me: program exited with status $ac_status" >&5
17144 echo "$as_me: failed program was:" >&5
17145 cat conftest.$ac_ext >&5
17146 cf_cv_cpp_param_init=no
17148 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17151 ac_cpp='$CXXCPP $CPPFLAGS'
17152 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17153 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17154 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17155 ac_main_return=return
17158 echo "$as_me:17158: result: $cf_cv_cpp_param_init" >&5
17159 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
17161 test "$cf_cv_cpp_param_init" = yes && cat >>confdefs.h <<\EOF
17162 #define CPP_HAS_PARAM_INIT 1
17165 if test -n "$CXX"; then
17167 echo "$as_me:17167: checking if $CXX accepts static_cast" >&5
17168 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
17169 if test "${cf_cv_cpp_static_cast+set}" = set; then
17170 echo $ECHO_N "(cached) $ECHO_C" >&6
17174 ac_cpp='$CXXCPP $CPPFLAGS'
17175 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17176 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17177 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17178 ac_main_return=return
17180 cat >conftest.$ac_ext <<_ACEOF
17181 #line 17181 "configure"
17182 #include "confdefs.h"
17187 NCursesPanel(int nlines,
17197 template<class T> class NCursesUserPanel : public NCursesPanel
17200 NCursesUserPanel (int nlines,
17204 const T* p_UserData = static_cast<T*>(0))
17205 : NCursesPanel (nlines, ncols, begin_y, begin_x)
17208 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
17212 virtual ~NCursesUserPanel() {};
17219 const char* p_UserData = static_cast<char*>(0)
17224 rm -f conftest.$ac_objext
17225 if { (eval echo "$as_me:17225: \"$ac_compile\"") >&5
17226 (eval $ac_compile) 2>&5
17228 echo "$as_me:17228: \$? = $ac_status" >&5
17229 (exit $ac_status); } &&
17230 { ac_try='test -s conftest.$ac_objext'
17231 { (eval echo "$as_me:17231: \"$ac_try\"") >&5
17232 (eval $ac_try) 2>&5
17234 echo "$as_me:17234: \$? = $ac_status" >&5
17235 (exit $ac_status); }; }; then
17236 cf_cv_cpp_static_cast=yes
17238 echo "$as_me: failed program was:" >&5
17239 cat conftest.$ac_ext >&5
17240 cf_cv_cpp_static_cast=no
17242 rm -f conftest.$ac_objext conftest.$ac_ext
17245 ac_cpp='$CXXCPP $CPPFLAGS'
17246 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17247 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17248 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17249 ac_main_return=return
17252 echo "$as_me:17252: result: $cf_cv_cpp_static_cast" >&5
17253 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
17257 test "$cf_cv_cpp_static_cast" = yes && cat >>confdefs.h <<\EOF
17258 #define CPP_HAS_STATIC_CAST 1
17262 CXX_ARFLAGS='$(ARFLAGS)'
17263 case $cf_cv_system_name in #(vi
17265 if test "$GXX" != yes ; then
17267 CXX_ARFLAGS='-ar -o'
17271 CXXLDFLAGS="-u main"
17274 if test "$GXX" != yes ; then
17276 CXX_ARFLAGS='-xar -o'
17283 cf_cv_builtin_bool=1
17285 # Just because we are not configuring against C++ right now does not
17286 # mean that a user will not want to use C++. Some distributors disable
17287 # the C++ portion of this configuration as a shortcut (or just to avoid
17288 # compiling the demo in the c++ directory). So we need a reasonable
17289 # default for the 'bool' type.
17291 # Caveat: since the storage of the bool type is not standardized, it
17294 if test "$NCURSES_BOOL" != auto ; then
17295 cf_cv_type_of_bool=$NCURSES_BOOL
17296 cf_cv_header_stdbool_h=0
17298 if test "$cf_cv_header_stdbool_h" = 1 ; then
17300 echo "$as_me:17300: checking for size of bool" >&5
17301 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
17302 if test "${cf_cv_type_of_bool+set}" = set; then
17303 echo $ECHO_N "(cached) $ECHO_C" >&6
17307 if test "$cross_compiling" = yes; then
17308 cf_cv_type_of_bool=unknown
17310 cat >conftest.$ac_ext <<_ACEOF
17311 #line 17311 "configure"
17312 #include "confdefs.h"
17314 #include <stdlib.h>
17317 #if defined(__cplusplus)
17319 #ifdef HAVE_GXX_BUILTIN_H
17320 #include <g++/builtin.h>
17321 #elif HAVE_GPP_BUILTIN_H
17322 #include <gpp/builtin.h>
17323 #elif HAVE_BUILTIN_H
17324 #include <builtin.h>
17329 #if $cf_cv_header_stdbool_h
17330 #include <stdbool.h>
17337 FILE *fp = fopen("cf_test.out", "w");
17340 if ((bool)(-x) >= 0)
17341 fputs("unsigned ", fp);
17342 if (sizeof(x) == sizeof(int)) fputs("int", fp);
17343 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
17344 else if (sizeof(x) == sizeof(short))fputs("short",fp);
17345 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
17348 ${cf_cv_main_return:-return}(0);
17352 rm -f conftest$ac_exeext
17353 if { (eval echo "$as_me:17353: \"$ac_link\"") >&5
17354 (eval $ac_link) 2>&5
17356 echo "$as_me:17356: \$? = $ac_status" >&5
17357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17358 { (eval echo "$as_me:17358: \"$ac_try\"") >&5
17359 (eval $ac_try) 2>&5
17361 echo "$as_me:17361: \$? = $ac_status" >&5
17362 (exit $ac_status); }; }; then
17363 cf_cv_type_of_bool=`cat cf_test.out`
17364 if test -z "$cf_cv_type_of_bool"; then
17365 cf_cv_type_of_bool=unknown
17368 echo "$as_me: program exited with status $ac_status" >&5
17369 echo "$as_me: failed program was:" >&5
17370 cat conftest.$ac_ext >&5
17371 cf_cv_type_of_bool=unknown
17373 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17379 echo "$as_me:17379: result: $cf_cv_type_of_bool" >&5
17380 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
17381 if test "$cf_cv_type_of_bool" = unknown ; then
17382 case .$NCURSES_BOOL in #(vi
17383 .auto|.) NCURSES_BOOL=unsigned;;
17385 { echo "$as_me:17385: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
17386 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
17387 cf_cv_type_of_bool=$NCURSES_BOOL
17391 echo "$as_me:17391: checking for fallback type of bool" >&5
17392 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
17393 case "$host_cpu" in #(vi
17394 i?86) cf_cv_type_of_bool=char ;; #(vi
17395 *) cf_cv_type_of_bool=int ;;
17397 echo "$as_me:17397: result: $cf_cv_type_of_bool" >&5
17398 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
17403 # If the C compiler did not declare bool, and we did not determine that the C++
17404 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
17405 # ncurses library use the same type as C++ bool. Note that this allows one to
17406 # specify the type of bool in a configure-script option and postpone
17407 # integration with the C++ compiler provided that the types are compatible.
17409 if test $cf_cv_cc_bool_type = 1
17411 # oops: C has a bool. Unlikely, but C++ could differ.
17413 elif test $cf_cv_builtin_bool = 0
17418 # this is the normal case
17419 USE_CXX_BOOL='defined(__cplusplus)'
17422 if test -f "${srcdir}/Ada95/Makefile.in" ; then
17424 if test "$cf_with_ada" != "no" ; then
17425 if test "$with_libtool" != "no"; then
17426 { echo "$as_me:17426: WARNING: libtool does not support Ada - disabling feature" >&5
17427 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
17432 if test "$cf_with_ada" != "no" ; then
17433 cf_ada_make=gnatmake
17434 # Extract the first word of "$cf_ada_make", so it can be a program name with args.
17435 set dummy $cf_ada_make; ac_word=$2
17436 echo "$as_me:17436: checking for $ac_word" >&5
17437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17438 if test "${ac_cv_prog_gnat_exists+set}" = set; then
17439 echo $ECHO_N "(cached) $ECHO_C" >&6
17441 if test -n "$gnat_exists"; then
17442 ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test.
17444 ac_save_IFS=$IFS; IFS=$ac_path_separator
17446 for ac_dir in $ac_dummy; do
17448 test -z "$ac_dir" && ac_dir=.
17449 $as_executable_p "$ac_dir/$ac_word" || continue
17450 ac_cv_prog_gnat_exists="yes"
17451 echo "$as_me:17451: found $ac_dir/$ac_word" >&5
17455 test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no"
17458 gnat_exists=$ac_cv_prog_gnat_exists
17459 if test -n "$gnat_exists"; then
17460 echo "$as_me:17460: result: $gnat_exists" >&5
17461 echo "${ECHO_T}$gnat_exists" >&6
17463 echo "$as_me:17463: result: no" >&5
17464 echo "${ECHO_T}no" >&6
17467 if test "$ac_cv_prog_gnat_exists" = no; then
17471 echo "$as_me:17471: checking for gnat version" >&5
17472 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
17473 cf_gnat_version=`${cf_ada_make-gnatmake} -v 2>&1 | grep '[0-9].[0-9][0-9]*' |\
17474 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
17475 echo "$as_me:17475: result: $cf_gnat_version" >&5
17476 echo "${ECHO_T}$cf_gnat_version" >&6
17478 case $cf_gnat_version in
17479 3.1[1-9]*|3.[2-9]*|[4-9].*)
17480 cf_cv_prog_gnat_correct=yes
17482 *) echo Unsupported GNAT version $cf_gnat_version. Required is 3.11 or better. Disabling Ada95 binding.
17483 cf_cv_prog_gnat_correct=no
17486 case $cf_gnat_version in
17488 cf_compile_generics=generics
17489 cf_generic_objects="\${GENOBJS}"
17491 *) cf_compile_generics=
17492 cf_generic_objects=
17496 # Extract the first word of "m4", so it can be a program name with args.
17497 set dummy m4; ac_word=$2
17498 echo "$as_me:17498: checking for $ac_word" >&5
17499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17500 if test "${ac_cv_prog_M4_exists+set}" = set; then
17501 echo $ECHO_N "(cached) $ECHO_C" >&6
17503 if test -n "$M4_exists"; then
17504 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
17506 ac_save_IFS=$IFS; IFS=$ac_path_separator
17508 for ac_dir in $ac_dummy; do
17510 test -z "$ac_dir" && ac_dir=.
17511 $as_executable_p "$ac_dir/$ac_word" || continue
17512 ac_cv_prog_M4_exists="yes"
17513 echo "$as_me:17513: found $ac_dir/$ac_word" >&5
17517 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
17520 M4_exists=$ac_cv_prog_M4_exists
17521 if test -n "$M4_exists"; then
17522 echo "$as_me:17522: result: $M4_exists" >&5
17523 echo "${ECHO_T}$M4_exists" >&6
17525 echo "$as_me:17525: result: no" >&5
17526 echo "${ECHO_T}no" >&6
17529 if test "$ac_cv_prog_M4_exists" = no; then
17530 cf_cv_prog_gnat_correct=no
17531 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
17533 if test "$cf_cv_prog_gnat_correct" = yes; then
17534 echo "$as_me:17534: checking if GNAT works" >&5
17535 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
17538 cat >>conftest.ads <<CF_EOF
17539 procedure conftest;
17541 cat >>conftest.adb <<CF_EOF
17544 procedure conftest is
17546 Text_IO.Put ("Hello World");
17548 GNAT.OS_Lib.OS_Exit (0);
17551 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
17552 if ( ./conftest 1>&5 2>&1 ) ; then
17553 cf_cv_prog_gnat_correct=yes
17555 cf_cv_prog_gnat_correct=no
17558 cf_cv_prog_gnat_correct=no
17562 echo "$as_me:17562: result: $cf_cv_prog_gnat_correct" >&5
17563 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
17566 if test "$cf_cv_prog_gnat_correct" = yes; then
17567 ADAFLAGS="-O3 -gnatpn $ADAFLAGS"
17569 echo "$as_me:17569: checking if GNAT pragma Unreferenced works" >&5
17570 echo $ECHO_N "checking if GNAT pragma Unreferenced works... $ECHO_C" >&6
17573 cat >>conftest.ads <<CF_EOF
17574 procedure conftest;
17576 cat >>conftest.adb <<CF_EOF
17579 procedure conftest is
17581 pragma Unreferenced (test);
17584 Text_IO.Put ("Hello World");
17586 GNAT.OS_Lib.OS_Exit (0);
17589 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
17590 cf_cv_pragma_unreferenced=yes
17592 cf_cv_pragma_unreferenced=no
17596 echo "$as_me:17596: result: $cf_cv_pragma_unreferenced" >&5
17597 echo "${ECHO_T}$cf_cv_pragma_unreferenced" >&6
17599 # if the pragma is supported, use it (needed in the Trace code).
17600 if test $cf_cv_pragma_unreferenced = yes ; then
17606 # Check whether --with-ada-compiler or --without-ada-compiler was given.
17607 if test "${with_ada_compiler+set}" = set; then
17608 withval="$with_ada_compiler"
17609 cf_ada_compiler=$withval
17611 cf_ada_compiler=gnatmake
17614 cf_ada_package=terminal_interface
17616 # Check whether --with-ada-include or --without-ada-include was given.
17617 if test "${with_ada_include+set}" = set; then
17618 withval="$with_ada_include"
17621 withval="${ADA_INCLUDE-$prefix/lib/ada/adainclude}"
17622 fi; if test -n "$prefix/lib/ada/adainclude" ; then
17624 if test "x$prefix" != xNONE; then
17625 cf_path_syntax="$prefix"
17627 cf_path_syntax="$ac_default_prefix"
17630 case ".$withval" in #(vi
17631 .\$\(*\)*|.\'*\'*) #(vi
17635 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
17637 .\${*prefix}*) #(vi
17638 eval withval="$withval"
17639 case ".$withval" in #(vi
17641 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
17646 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
17649 { { echo "$as_me:17649: error: expected a pathname, not \"$withval\"" >&5
17650 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
17651 { (exit 1); exit 1; }; }
17656 ADA_INCLUDE="$withval"
17658 # Check whether --with-ada-objects or --without-ada-objects was given.
17659 if test "${with_ada_objects+set}" = set; then
17660 withval="$with_ada_objects"
17663 withval="${ADA_OBJECTS-$prefix/lib/ada/adalib}"
17664 fi; if test -n "$prefix/lib/ada/adalib" ; then
17666 if test "x$prefix" != xNONE; then
17667 cf_path_syntax="$prefix"
17669 cf_path_syntax="$ac_default_prefix"
17672 case ".$withval" in #(vi
17673 .\$\(*\)*|.\'*\'*) #(vi
17677 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
17679 .\${*prefix}*) #(vi
17680 eval withval="$withval"
17681 case ".$withval" in #(vi
17683 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
17688 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
17691 { { echo "$as_me:17691: error: expected a pathname, not \"$withval\"" >&5
17692 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
17693 { (exit 1); exit 1; }; }
17698 ADA_OBJECTS="$withval"
17706 ### Construct the ncurses library-subsets, if any, from this set of keywords:
17707 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
17709 ### ticlib modules may be a separate library, otherwise contained in termlib.
17710 ### termlib modules may be a separate library, otherwise contained in ncurses.
17712 ### The of "+" or " " between the tokens controls the way the script
17713 ### chooses to split module lists into libraries.
17715 ### (see CF_LIB_RULES).
17716 echo "$as_me:17716: checking for library subsets" >&5
17717 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
17720 if test "$cf_with_progs" = yes || test "$with_ticlib" != no || test "$with_termcap" != no; then
17721 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
17722 if test "$with_ticlib" != no ; then
17723 LIB_SUBSETS="${LIB_SUBSETS} "
17725 LIB_SUBSETS="${LIB_SUBSETS}+"
17729 LIB_SUBSETS="${LIB_SUBSETS}termlib"
17730 test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
17732 if test "$with_termlib" != no ; then
17733 LIB_SUBSETS="${LIB_SUBSETS} "
17735 LIB_SUBSETS="${LIB_SUBSETS}+"
17738 LIB_SUBSETS="${LIB_SUBSETS}base"
17740 # Most term-driver calls are to tinfo, but some like init_pair are to the
17741 # base library (so it resides in base).
17742 if test "$with_term_driver" != no ; then
17743 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
17744 case $cf_cv_system_name in #(vi
17746 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
17749 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
17754 test "$with_widec" = yes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
17755 test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
17757 echo "$as_me:17757: result: $LIB_SUBSETS" >&5
17758 echo "${ECHO_T}$LIB_SUBSETS" >&6
17760 ### Construct the list of include-directories to be generated
17762 CPPFLAGS="$CPPFLAGS -I. -I../include"
17763 if test "$srcdir" != "."; then
17764 CPPFLAGS="$CPPFLAGS -I\${srcdir}/../include"
17766 if test "$GCC" != yes; then
17767 CPPFLAGS="$CPPFLAGS -I\${includedir}"
17768 elif test "$includedir" != "/usr/include"; then
17769 if test "$includedir" = '${prefix}/include' ; then
17770 if test $prefix != /usr ; then
17771 CPPFLAGS="$CPPFLAGS -I\${includedir}"
17774 CPPFLAGS="$CPPFLAGS -I\${includedir}"
17778 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
17779 if test "$srcdir" != "."; then
17780 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
17782 if test "$GCC" != yes; then
17783 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
17784 elif test "$includedir" != "/usr/include"; then
17785 if test "$includedir" = '${prefix}/include' ; then
17786 if test $prefix != /usr ; then
17787 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
17790 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
17794 ### Build up pieces for makefile rules
17795 echo "$as_me:17795: checking default library suffix" >&5
17796 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
17798 case $DFT_LWR_MODEL in
17799 libtool) DFT_ARG_SUFFIX='' ;;
17800 normal) DFT_ARG_SUFFIX='' ;;
17801 debug) DFT_ARG_SUFFIX='_g' ;;
17802 profile) DFT_ARG_SUFFIX='_p' ;;
17803 shared) DFT_ARG_SUFFIX='' ;;
17805 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
17806 echo "$as_me:17806: result: $DFT_ARG_SUFFIX" >&5
17807 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
17809 echo "$as_me:17809: checking default library-dependency suffix" >&5
17810 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
17812 case $DFT_LWR_MODEL in #(vi
17814 DFT_LIB_SUFFIX='.la'
17815 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
17818 DFT_LIB_SUFFIX='.a'
17819 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
17822 DFT_LIB_SUFFIX='_g.a'
17823 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
17826 DFT_LIB_SUFFIX='_p.a'
17827 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
17830 case $cf_cv_system_name in
17832 DFT_LIB_SUFFIX='.a'
17833 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
17836 DFT_LIB_SUFFIX='.dll'
17837 DFT_DEP_SUFFIX='.dll.a'
17840 DFT_LIB_SUFFIX='.dylib'
17841 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
17846 DFT_LIB_SUFFIX='.so'
17847 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
17850 DFT_LIB_SUFFIX='.sl'
17851 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
17855 *) DFT_LIB_SUFFIX='.so'
17856 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
17860 test -n "$LIB_SUFFIX" && DFT_LIB_SUFFIX="${LIB_SUFFIX}${DFT_LIB_SUFFIX}"
17861 test -n "$LIB_SUFFIX" && DFT_DEP_SUFFIX="${LIB_SUFFIX}${DFT_DEP_SUFFIX}"
17862 echo "$as_me:17862: result: $DFT_DEP_SUFFIX" >&5
17863 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
17865 echo "$as_me:17865: checking default object directory" >&5
17866 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
17868 case $DFT_LWR_MODEL in
17869 libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
17870 normal) DFT_OBJ_SUBDIR='objects' ;;
17871 debug) DFT_OBJ_SUBDIR='obj_g' ;;
17872 profile) DFT_OBJ_SUBDIR='obj_p' ;;
17874 case $cf_cv_system_name in #(vi
17876 DFT_OBJ_SUBDIR='objects' ;;
17878 DFT_OBJ_SUBDIR='obj_s' ;;
17881 echo "$as_me:17881: result: $DFT_OBJ_SUBDIR" >&5
17882 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
17884 # libtool thinks it can make c++ shared libraries (perhaps only g++)
17885 if test "$cf_with_cxx" = yes ; then
17886 echo "$as_me:17886: checking c++ library-dependency suffix" >&5
17887 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
17888 if test "$with_libtool" != "no"; then
17889 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
17892 case normal in #(vi
17894 CXX_LIB_SUFFIX='.la'
17895 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
17898 CXX_LIB_SUFFIX='.a'
17899 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
17902 CXX_LIB_SUFFIX='_g.a'
17903 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
17906 CXX_LIB_SUFFIX='_p.a'
17907 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
17910 case $cf_cv_system_name in
17912 CXX_LIB_SUFFIX='.a'
17913 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
17916 CXX_LIB_SUFFIX='.dll'
17917 CXX_DEP_SUFFIX='.dll.a'
17920 CXX_LIB_SUFFIX='.dylib'
17921 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
17926 CXX_LIB_SUFFIX='.so'
17927 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
17930 CXX_LIB_SUFFIX='.sl'
17931 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
17935 *) CXX_LIB_SUFFIX='.so'
17936 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
17940 test -n "$LIB_SUFFIX" && CXX_LIB_SUFFIX="${LIB_SUFFIX}${CXX_LIB_SUFFIX}"
17941 test -n "$LIB_SUFFIX" && CXX_DEP_SUFFIX="${LIB_SUFFIX}${CXX_DEP_SUFFIX}"
17943 echo "$as_me:17943: result: $CXX_LIB_SUFFIX" >&5
17944 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
17948 # do not want -ldl in build except as needed for -lncurses dependency
17949 if test "$with_dlsym" = yes ; then
17950 if test $DFT_LWR_MODEL = shared || \
17951 test $DFT_LWR_MODEL = libtool ; then
17953 # remove dl library from $LIBS
17954 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
17958 ### Set up low-level terminfo dependencies for makefiles.
17960 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
17961 # do not need libdl
17963 if test "$with_dlsym" = yes ; then
17965 # remove dl library from $SHLIB_LIST
17966 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
17970 if test "$with_ticlib" != no ; then
17972 if test "$with_ticlib" != yes ; then
17973 TICS_NAME=$with_ticlib
17974 TICS_ARG_SUFFIX="${with_ticlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
17975 TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
17976 TICS_LIB_SUFFIX="${with_ticlib}"
17978 TICS_ARG_SUFFIX="${TICS_NAME}${DFT_ARG_SUFFIX}"
17979 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
17980 TICS_LIB_SUFFIX="${TICS_NAME}${LIB_SUFFIX}"
17982 TICS_ARGS="-L${LIB_DIR} -l${TICS_LIB_SUFFIX}"
17984 TICS_ARGS="-L${LIB_DIR} -l${LIB_NAME}${DFT_ARG_SUFFIX}"
17987 if test "$with_termlib" != no ; then
17989 if test "$with_termlib" != yes ; then
17990 TINFO_NAME=$with_termlib
17991 TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
17992 TINFO_ARG_SUFFIX="${with_termlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
17993 TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
17994 TINFO_LIB_SUFFIX="${with_termlib}"
17996 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
17997 TINFO_ARG_SUFFIX="${TINFO_NAME}${DFT_ARG_SUFFIX}"
17998 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
17999 TINFO_LIB_SUFFIX="${TINFO_NAME}${LIB_SUFFIX}"
18002 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
18003 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
18004 if test "$DFT_LWR_MODEL" = "libtool"; then
18005 TEST_ARGS="${TEST_DEPS}"
18006 TEST_ARG2="${TEST_DEP2}"
18007 TINFO_ARGS="-L${LIB_DIR} $TEST_ARGS"
18008 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
18009 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
18011 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
18012 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
18013 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
18014 TINFO_ARGS="-L${LIB_DIR} $TEST_ARGS"
18015 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
18018 # the next lines are needed for linking libtic over libncurses
18019 TINFO_NAME=${LIB_NAME}
18020 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
18021 TINFO_ARG_SUFFIX=${LIB_NAME}${DFT_ARG_SUFFIX}
18022 if test "$with_tic_depends" = yes ; then
18023 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${DFT_ARG_SUFFIX}"
18025 TICS_LIST="$SHLIB_LIST"
18028 TINFO_ARGS="-L${LIB_DIR} -l${LIB_NAME}${DFT_ARG_SUFFIX}"
18031 if test "$DFT_LWR_MODEL" = shared ; then
18032 case $cf_cv_system_name in #(vi
18034 # "lib" files have ".dll.a" suffix, "cyg" files have ".dll"
18040 if test "$with_dlsym" = yes ; then
18042 # remove dl library from $TICS_LIST
18043 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
18047 if test "$DFT_LWR_MODEL" = "libtool"; then
18052 TINFO_ARGS2=`echo "$TINFO_ARGS" | sed -e 's,-L\.\./,-L../../,'`
18054 case $DFT_LWR_MODEL in
18055 normal|debug|profile)
18057 if test "$GCC" = yes ; then
18058 case $cf_cv_system_name in #(
18059 OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*) #( vi
18063 *) #( normally, except when broken
18064 LDFLAGS_STATIC=-static
18065 LDFLAGS_SHARED=-dynamic
18069 case $cf_cv_system_name in #(
18070 aix[456]*) #( from ld manpage
18071 LDFLAGS_STATIC=-bstatic
18072 LDFLAGS_SHARED=-bdynamic
18074 hpux*) #( from ld manpage for hpux10.20, hpux11.11
18075 # We could also use just "archive" and "shared".
18076 LDFLAGS_STATIC=-Wl,-a,archive_shared
18077 LDFLAGS_SHARED=-Wl,-a,shared_archive
18079 irix*) #( from ld manpage IRIX64
18080 LDFLAGS_STATIC=-Bstatic
18081 LDFLAGS_SHARED=-Bdynamic
18083 osf[45]*) #( from ld manpage osf4.0d, osf5.1
18084 # alternative "-oldstyle_liblookup" (not in cc manpage)
18085 LDFLAGS_STATIC=-noso
18086 LDFLAGS_SHARED=-so_archive
18089 LDFLAGS_STATIC=-Bstatic
18090 LDFLAGS_SHARED=-Bdynamic
18098 echo "$as_me:18098: checking where we will install curses.h" >&5
18099 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
18100 test "$with_overwrite" = no && \
18101 test "x$includedir" = 'x${prefix}/include' && \
18102 includedir='${prefix}/include/ncurses'${LIB_SUFFIX}
18103 echo "$as_me:18103: result: $includedir" >&5
18104 echo "${ECHO_T}$includedir" >&6
18106 ### Resolve a conflict between normal and wide-curses by forcing applications
18107 ### that will need libutf8 to add it to their configure script.
18108 if test "$with_overwrite" != no ; then
18109 if test "$NCURSES_LIBUTF8" = 1 ; then
18110 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
18111 { echo "$as_me:18111: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
18112 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
18115 WITH_OVERWRITE=$with_overwrite
18117 # used to separate tack out of the tree
18120 ### predefined stuff for the test programs
18121 cat >>confdefs.h <<\EOF
18122 #define HAVE_SLK_COLOR 1
18125 ### Construct the list of subdirectories for which we'll customize makefiles
18126 ### with the appropriate compile-rules.
18128 echo "$as_me:18128: checking for src modules" >&5
18129 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
18131 # dependencies and linker-arguments for test-programs
18132 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
18133 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
18134 if test "$DFT_LWR_MODEL" = "libtool"; then
18135 TEST_ARGS="${TEST_DEPS}"
18136 TEST_ARG2="${TEST_DEP2}"
18138 TEST_ARGS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS"
18139 TEST_ARG2="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARG2"
18143 for cf_dir in $modules_to_build
18145 if test -f $srcdir/$cf_dir/modules; then
18147 # We may/may not have tack in the distribution, though the
18149 if test $cf_dir = tack ; then
18150 if test ! -f $srcdir/${cf_dir}/${cf_dir}.h; then
18155 if test -z "$cf_cv_src_modules"; then
18156 cf_cv_src_modules=$cf_dir
18158 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
18161 # Make the ncurses_cfg.h file record the library interface files as
18162 # well. These are header files that are the same name as their
18163 # directory. Ncurses is the only library that does not follow
18165 if test $cf_dir = tack ; then
18167 elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
18169 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
18171 cat >>confdefs.h <<EOF
18172 #define HAVE_${cf_have_include}_H 1
18175 cat >>confdefs.h <<EOF
18176 #define HAVE_LIB${cf_have_include} 1
18179 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
18180 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEP2"
18181 if test "$DFT_LWR_MODEL" = "libtool"; then
18182 TEST_ARGS="${TEST_DEPS}"
18183 TEST_ARG2="${TEST_DEP2}"
18185 TEST_ARGS="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARGS"
18186 TEST_ARG2="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARG2"
18191 echo "$as_me:18191: result: $cf_cv_src_modules" >&5
18192 echo "${ECHO_T}$cf_cv_src_modules" >&6
18194 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
18195 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
18198 if test "x$cf_with_manpages" != xno ; then
18199 SRC_SUBDIRS="$SRC_SUBDIRS man"
18201 SRC_SUBDIRS="$SRC_SUBDIRS include"
18202 for cf_dir in $cf_cv_src_modules
18204 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
18206 SRC_SUBDIRS="$SRC_SUBDIRS test"
18207 test -z "$MAKE_TERMINFO" && SRC_SUBDIRS="$SRC_SUBDIRS misc"
18208 test "$cf_with_cxx_binding" != no && SRC_SUBDIRS="$SRC_SUBDIRS c++"
18211 if test "$cf_cv_prog_gnat_correct" = yes && test -f $srcdir/Ada95/Makefile.in; then
18212 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
18213 ADA_SUBDIRS="gen src samples"
18217 for cf_dir in $SRC_SUBDIRS
18219 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
18222 if test -n "$ADA_SUBDIRS"; then
18223 for cf_dir in $ADA_SUBDIRS
18225 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
18230 if test "$cf_with_ada" != "no" && test "$cf_cv_prog_gnat_correct" != "no"; then
18231 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${DFT_ARG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
18232 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${DFT_ARG_SUFFIX}-config.1:man/MKada_config.in"
18236 for cf_item in $cf_list_models
18240 libtool) cf_subdir='obj_lo' ;;
18241 normal) cf_subdir='objects' ;;
18242 debug) cf_subdir='obj_g' ;;
18243 profile) cf_subdir='obj_p' ;;
18245 case $cf_cv_system_name in #(vi
18247 cf_subdir='objects' ;;
18249 cf_subdir='obj_s' ;;
18253 for cf_item2 in $DIRS_TO_MAKE
18255 test $cf_item2 = $cf_subdir && break
18257 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
18259 for cf_dir in $DIRS_TO_MAKE
18261 test ! -d $cf_dir && mkdir $cf_dir
18264 # symbols that differ when compiling Ada95 by itself.
18265 NCURSES_SHLIB2='sh $(top_srcdir)/misc/shlib'
18267 NCURSES_COPY2='sh $(top_srcdir)/tar-copy.sh'
18269 # values to use as strings
18270 cat >>confdefs.h <<EOF
18271 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
18274 cat >>confdefs.h <<EOF
18275 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
18278 ### Now that we're done running tests, add the compiler-warnings, if any
18283 cf_new_extra_cppflags=
18285 for cf_add_cflags in $EXTRA_CFLAGS
18287 case $cf_fix_cppflags in
18289 case $cf_add_cflags in #(vi
18290 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
18291 case $cf_add_cflags in
18293 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18295 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
18296 && test -z "${cf_tst_cflags}" \
18297 && cf_fix_cppflags=yes
18299 if test $cf_fix_cppflags = yes ; then
18300 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
18302 elif test "${cf_tst_cflags}" = "\"'" ; then
18303 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
18308 case "$CPPFLAGS" in
18309 *$cf_add_cflags) #(vi
18312 case $cf_add_cflags in #(vi
18314 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18316 CPPFLAGS=`echo "$CPPFLAGS" | \
18317 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18318 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18322 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
18327 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
18332 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
18334 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
18336 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
18337 && test -z "${cf_tst_cflags}" \
18338 && cf_fix_cppflags=no
18343 if test -n "$cf_new_cflags" ; then
18345 CFLAGS="$CFLAGS $cf_new_cflags"
18348 if test -n "$cf_new_cppflags" ; then
18350 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
18353 if test -n "$cf_new_extra_cppflags" ; then
18355 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
18358 ### If we're building with rpath, try to link non-standard libs that way too.
18359 if test "$DFT_LWR_MODEL" = "shared"; then
18361 echo "$as_me:18361: checking for updated LDFLAGS" >&5
18362 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
18363 if test -n "$LD_RPATH_OPT" ; then
18364 echo "$as_me:18364: result: maybe" >&5
18365 echo "${ECHO_T}maybe" >&6
18367 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
18369 echo "${as_me-configure}:18369: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
18371 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
18373 echo "${as_me-configure}:18373: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
18376 for cf_rpath_src in $LDFLAGS
18378 test -n "$verbose" && echo " Filtering $cf_rpath_src" 1>&6
18380 echo "${as_me-configure}:18380: testing Filtering $cf_rpath_src ..." 1>&5
18382 case $cf_rpath_src in #(vi
18384 if test "$LD_RPATH_OPT" = "-R " ; then
18385 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e 's%-L%-R %'`
18387 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e s%-L%$LD_RPATH_OPT%`
18389 test -n "$verbose" && echo " ...Filter $cf_rpath_tmp" 1>&6
18391 echo "${as_me-configure}:18391: testing ...Filter $cf_rpath_tmp ..." 1>&5
18393 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
18396 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
18398 LDFLAGS=$cf_rpath_dst
18400 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
18402 echo "${as_me-configure}:18402: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
18404 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
18406 echo "${as_me-configure}:18406: testing ...checking LIBS $LIBS ..." 1>&5
18409 for cf_rpath_src in $LIBS
18411 test -n "$verbose" && echo " Filtering $cf_rpath_src" 1>&6
18413 echo "${as_me-configure}:18413: testing Filtering $cf_rpath_src ..." 1>&5
18415 case $cf_rpath_src in #(vi
18417 if test "$LD_RPATH_OPT" = "-R " ; then
18418 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e 's%-L%-R %'`
18420 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e s%-L%$LD_RPATH_OPT%`
18422 test -n "$verbose" && echo " ...Filter $cf_rpath_tmp" 1>&6
18424 echo "${as_me-configure}:18424: testing ...Filter $cf_rpath_tmp ..." 1>&5
18426 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
18429 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
18433 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
18435 echo "${as_me-configure}:18435: testing ...checked LIBS $LIBS ..." 1>&5
18437 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
18439 echo "${as_me-configure}:18439: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
18445 ### Define substitutions for header files to avoid name-pollution
18447 if test "$cf_cv_have_tcgetattr" = yes ; then
18453 if test "$ac_cv_header_termio_h" = yes ; then
18459 if test "$ac_cv_header_termios_h" = yes ; then
18465 ################################################################################
18466 test "$use_database" = yes && \
18467 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
18469 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
18470 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${DFT_ARG_SUFFIX}${cf_cv_abi_version}-config.1:man/MKncu_config.in"
18472 if test x"$enable_pc_files" = xyes ; then \
18473 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
18479 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"
18480 ac_config_commands="$ac_config_commands default"
18481 cat >confcache <<\_ACEOF
18482 # This file is a shell script that caches the results of configure
18483 # tests run on this system so they can be shared between configure
18484 # scripts and configure runs, see configure's option --config-cache.
18485 # It is not useful on other systems. If it contains results you don't
18486 # want to keep, you may remove or edit it.
18488 # config.status only pays attention to the cache file if you give it
18489 # the --recheck option to rerun configure.
18491 # `ac_cv_env_foo' variables (set or unset) will be overriden when
18492 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18493 # following values.
18497 # The following way of writing the cache mishandles newlines in values,
18498 # but we know of no workaround that is simple, portable, and efficient.
18499 # So, don't put newlines in cache variables' values.
18500 # Ultrix sh set writes to stderr and can't be redirected directly,
18501 # and sets the high bit in the cache file unless we assign to the vars.
18504 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18506 # `set' does not quote correctly, so add quotes (double-quote
18507 # substitution turns \\\\ into \\, and sed turns \\ into \).
18510 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18513 # `set' quotes correctly as required by POSIX, so do not add quotes.
18515 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18522 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18524 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18526 if cmp -s $cache_file confcache; then :; else
18527 if test -w $cache_file; then
18528 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18529 cat confcache >$cache_file
18531 echo "not updating unwritable cache $cache_file"
18536 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18537 # Let make expand exec_prefix.
18538 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18540 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18541 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18542 # trailing colons and then remove the whole line if VPATH becomes empty
18543 # (actually we leave an empty line to preserve line numbers).
18544 if test "x$srcdir" = x.; then
18545 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18546 s/:*\$(srcdir):*/:/;
18547 s/:*\${srcdir}:*/:/;
18549 s/^\([^=]*=[ ]*\):*/\1/;
18555 DEFS=-DHAVE_CONFIG_H
18557 : ${CONFIG_STATUS=./config.status}
18558 ac_clean_files_save=$ac_clean_files
18559 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18560 { echo "$as_me:18560: creating $CONFIG_STATUS" >&5
18561 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18562 cat >$CONFIG_STATUS <<_ACEOF
18564 # Generated automatically by configure.
18565 # Run this file to recreate the current configuration.
18566 # Compiler output produced by configure, useful for debugging
18567 # configure, is in config.log if it exists.
18570 SHELL=\${CONFIG_SHELL-$SHELL}
18571 ac_cs_invocation="\$0 \$@"
18575 cat >>$CONFIG_STATUS <<\_ACEOF
18576 # Be Bourne compatible
18577 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18580 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18584 # Name of the executable.
18585 as_me=`echo "$0" |sed 's,.*[\\/],,'`
18587 if expr a : '\(a\)' >/dev/null 2>&1; then
18593 rm -f conf$$ conf$$.exe conf$$.file
18595 if ln -s conf$$.file conf$$ 2>/dev/null; then
18596 # We could just check for DJGPP; but this test a) works b) is more generic
18597 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18598 if test -f conf$$.exe; then
18599 # Don't use ln at all; we don't have any links
18604 elif ln conf$$.file conf$$ 2>/dev/null; then
18609 rm -f conf$$ conf$$.exe conf$$.file
18611 as_executable_p="test -f"
18613 # Support unset when possible.
18614 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18621 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
18622 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
18623 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
18624 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
18625 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
18626 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
18627 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
18628 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
18631 # We need space, tab and new line, in precisely that order.
18637 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
18643 # Files that config.status was made for.
18644 if test -n "$ac_config_files"; then
18645 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18648 if test -n "$ac_config_headers"; then
18649 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18652 if test -n "$ac_config_links"; then
18653 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18656 if test -n "$ac_config_commands"; then
18657 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18660 cat >>$CONFIG_STATUS <<\EOF
18663 \`$as_me' instantiates files from templates according to the
18664 current configuration.
18666 Usage: $0 [OPTIONS] [FILE]...
18668 -h, --help print this help, then exit
18669 -V, --version print version number, then exit
18670 -d, --debug don't remove temporary files
18671 --recheck update $as_me by reconfiguring in the same conditions
18672 --file=FILE[:TEMPLATE]
18673 instantiate the configuration file FILE
18674 --header=FILE[:TEMPLATE]
18675 instantiate the configuration header FILE
18677 Configuration files:
18680 Configuration headers:
18683 Configuration commands:
18686 Report bugs to <bug-autoconf@gnu.org>."
18689 cat >>$CONFIG_STATUS <<EOF
18692 configured by $0, generated by GNU Autoconf 2.52.20100320,
18693 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18695 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18696 Free Software Foundation, Inc.
18697 This config.status script is free software; the Free Software Foundation
18698 gives unlimited permission to copy, distribute and modify it."
18703 cat >>$CONFIG_STATUS <<\EOF
18704 # If no file are specified by the user, then we need to provide default
18705 # value. By we need to know if files were specified by the user.
18711 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18712 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18714 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
18718 *) # This is not an option, so the user has probably given explicit
18720 ac_need_defaults=false;;
18724 # Handling of the options.
18726 cat >>$CONFIG_STATUS <<EOF
18727 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18728 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
18729 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
18731 cat >>$CONFIG_STATUS <<\EOF
18732 --version | --vers* | -V )
18733 echo "$ac_cs_version"; exit 0 ;;
18735 # Conflict between --help and --header
18736 { { echo "$as_me:18736: error: ambiguous option: $1
18737 Try \`$0 --help' for more information." >&5
18738 echo "$as_me: error: ambiguous option: $1
18739 Try \`$0 --help' for more information." >&2;}
18740 { (exit 1); exit 1; }; };;
18741 --help | --hel | -h )
18742 echo "$ac_cs_usage"; exit 0 ;;
18743 --debug | --d* | -d )
18745 --file | --fil | --fi | --f )
18747 CONFIG_FILES="$CONFIG_FILES $1"
18748 ac_need_defaults=false;;
18749 --header | --heade | --head | --hea )
18751 CONFIG_HEADERS="$CONFIG_HEADERS $1"
18752 ac_need_defaults=false;;
18754 # This is an error.
18755 -*) { { echo "$as_me:18755: error: unrecognized option: $1
18756 Try \`$0 --help' for more information." >&5
18757 echo "$as_me: error: unrecognized option: $1
18758 Try \`$0 --help' for more information." >&2;}
18759 { (exit 1); exit 1; }; } ;;
18761 *) ac_config_targets="$ac_config_targets $1" ;;
18770 ## ----------------------- ##
18771 ## Running config.status. ##
18772 ## ----------------------- ##
18774 This file was extended by $as_me 2.52.20100320, executed with
18775 CONFIG_FILES = $CONFIG_FILES
18776 CONFIG_HEADERS = $CONFIG_HEADERS
18777 CONFIG_LINKS = $CONFIG_LINKS
18778 CONFIG_COMMANDS = $CONFIG_COMMANDS
18779 > $ac_cs_invocation
18780 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18785 cat >>$CONFIG_STATUS <<EOF
18787 # INIT-COMMANDS section.
18790 ### Special initialization commands, used to pass information from the
18791 ### configuration-run into config.status
18794 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
18795 DFT_LWR_MODEL="$DFT_LWR_MODEL"
18796 ECHO_LINK="$ECHO_LINK"
18797 LDCONFIG="$LDCONFIG"
18798 LIB_NAME="$LIB_NAME"
18799 LIB_SUBSETS="$LIB_SUBSETS"
18800 LIB_SUFFIX="$LIB_SUFFIX"
18801 LIB_TRACING="$LIB_TRACING"
18802 MAKE_TERMINFO="$MAKE_TERMINFO"
18803 NCURSES_MAJOR="$NCURSES_MAJOR"
18804 NCURSES_MINOR="$NCURSES_MINOR"
18805 NCURSES_OSPEED="$NCURSES_OSPEED"
18806 NCURSES_PATCH="$NCURSES_PATCH"
18807 SRC_SUBDIRS="$SRC_SUBDIRS"
18808 TERMINFO="$TERMINFO"
18809 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
18810 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
18811 TICS_NAME="$TICS_NAME"
18812 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
18813 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
18814 TINFO_NAME="$TINFO_NAME"
18815 TINFO_SUFFIX="$TINFO_SUFFIX"
18816 WITH_CURSES_H="$with_curses_h"
18817 WITH_ECHO="$with_echo"
18818 WITH_OVERWRITE="$with_overwrite"
18819 cf_LIST_MODELS="$cf_list_models"
18820 cf_cv_abi_version="$cf_cv_abi_version"
18821 cf_cv_do_relink="$cf_cv_do_relink"
18822 cf_cv_do_symlinks="$cf_cv_do_symlinks"
18823 cf_cv_enable_lp64="$cf_cv_enable_lp64"
18824 cf_cv_enable_opaque="$cf_cv_enable_opaque"
18825 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
18826 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
18827 cf_cv_rel_version="$cf_cv_rel_version"
18828 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
18829 cf_cv_shared_soname='$cf_cv_shared_soname'
18830 cf_cv_shlib_version="$cf_cv_shlib_version"
18831 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
18832 cf_cv_system_name="$cf_cv_system_name"
18833 cf_with_cxx_binding="$cf_with_cxx_binding"
18834 cf_with_manpages="$cf_with_manpages"
18840 cat >>$CONFIG_STATUS <<\EOF
18841 for ac_config_target in $ac_config_targets
18843 case "$ac_config_target" in
18844 # Handling of arguments.
18845 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
18846 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
18847 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
18848 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
18849 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
18850 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
18851 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18852 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18853 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
18854 *) { { echo "$as_me:18854: error: invalid argument: $ac_config_target" >&5
18855 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18856 { (exit 1); exit 1; }; };;
18860 # If the user did not use the arguments to specify the items to instantiate,
18861 # then the envvar interface is used. Set only those that are not.
18862 # We use the long form for the default assignment because of an extremely
18863 # bizarre bug on SunOS 4.1.3.
18864 if $ac_need_defaults; then
18865 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18866 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18867 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18870 # Create a temporary directory, and hook for its removal unless debugging.
18873 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18874 trap '{ (exit 1); exit 1; }' 1 2 13 15
18877 # Create a (secure) tmp directory for tmp files.
18880 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
18881 test -n "$tmp" && test -d "$tmp"
18884 tmp=$TMPDIR/cs$$-$RANDOM
18885 (umask 077 && mkdir $tmp)
18888 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
18889 { (exit 1); exit 1; }
18894 cat >>$CONFIG_STATUS <<EOF
18897 # CONFIG_FILES section.
18900 # No need to generate the scripts if there are no CONFIG_FILES.
18901 # This happens for instance when ./config.status config.h
18902 if test -n "\$CONFIG_FILES"; then
18903 # Protect against being on the right side of a sed subst in config.status.
18904 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18905 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18906 s,@SHELL@,$SHELL,;t t
18907 s,@exec_prefix@,$exec_prefix,;t t
18908 s,@prefix@,$prefix,;t t
18909 s,@program_transform_name@,$program_transform_name,;t t
18910 s,@bindir@,$bindir,;t t
18911 s,@sbindir@,$sbindir,;t t
18912 s,@libexecdir@,$libexecdir,;t t
18913 s,@datadir@,$datadir,;t t
18914 s,@sysconfdir@,$sysconfdir,;t t
18915 s,@sharedstatedir@,$sharedstatedir,;t t
18916 s,@localstatedir@,$localstatedir,;t t
18917 s,@libdir@,$libdir,;t t
18918 s,@includedir@,$includedir,;t t
18919 s,@oldincludedir@,$oldincludedir,;t t
18920 s,@infodir@,$infodir,;t t
18921 s,@mandir@,$mandir,;t t
18922 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18923 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18924 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18925 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18926 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18927 s,@build_alias@,$build_alias,;t t
18928 s,@host_alias@,$host_alias,;t t
18929 s,@target_alias@,$target_alias,;t t
18930 s,@ECHO_C@,$ECHO_C,;t t
18931 s,@ECHO_N@,$ECHO_N,;t t
18932 s,@ECHO_T@,$ECHO_T,;t t
18933 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18934 s,@DEFS@,$DEFS,;t t
18935 s,@LIBS@,$LIBS,;t t
18936 s,@top_builddir@,$top_builddir,;t t
18937 s,@EGREP@,$EGREP,;t t
18938 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
18939 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
18940 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
18941 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
18942 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
18943 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
18944 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
18945 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
18946 s,@build@,$build,;t t
18947 s,@build_cpu@,$build_cpu,;t t
18948 s,@build_vendor@,$build_vendor,;t t
18949 s,@build_os@,$build_os,;t t
18950 s,@host@,$host,;t t
18951 s,@host_cpu@,$host_cpu,;t t
18952 s,@host_vendor@,$host_vendor,;t t
18953 s,@host_os@,$host_os,;t t
18954 s,@target@,$target,;t t
18955 s,@target_cpu@,$target_cpu,;t t
18956 s,@target_vendor@,$target_vendor,;t t
18957 s,@target_os@,$target_os,;t t
18959 s,@CFLAGS@,$CFLAGS,;t t
18960 s,@LDFLAGS@,$LDFLAGS,;t t
18961 s,@CPPFLAGS@,$CPPFLAGS,;t t
18962 s,@ac_ct_CC@,$ac_ct_CC,;t t
18963 s,@EXEEXT@,$EXEEXT,;t t
18964 s,@OBJEXT@,$OBJEXT,;t t
18966 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
18967 s,@PROG_EXT@,$PROG_EXT,;t t
18968 s,@LDCONFIG@,$LDCONFIG,;t t
18970 s,@CXXFLAGS@,$CXXFLAGS,;t t
18971 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18973 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18974 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18975 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18976 s,@LINT@,$LINT,;t t
18977 s,@LINT_OPTS@,$LINT_OPTS,;t t
18978 s,@LN_S@,$LN_S,;t t
18979 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
18980 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
18981 s,@SET_MAKE@,$SET_MAKE,;t t
18982 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
18983 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
18984 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
18985 s,@RANLIB@,$RANLIB,;t t
18986 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18988 s,@ac_ct_LD@,$ac_ct_LD,;t t
18990 s,@ac_ct_AR@,$ac_ct_AR,;t t
18991 s,@ARFLAGS@,$ARFLAGS,;t t
18992 s,@DESTDIR@,$DESTDIR,;t t
18993 s,@BUILD_CC@,$BUILD_CC,;t t
18994 s,@BUILD_CPP@,$BUILD_CPP,;t t
18995 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
18996 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
18997 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
18998 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
18999 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
19000 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
19001 s,@cf_list_models@,$cf_list_models,;t t
19002 s,@LIBTOOL@,$LIBTOOL,;t t
19003 s,@LT_UNDEF@,$LT_UNDEF,;t t
19004 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
19005 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
19006 s,@LIB_CREATE@,$LIB_CREATE,;t t
19007 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
19008 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
19009 s,@LIB_PREP@,$LIB_PREP,;t t
19010 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
19011 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
19012 s,@LIB_LINK@,$LIB_LINK,;t t
19013 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
19014 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
19015 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
19016 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
19017 s,@TICS_NAME@,$TICS_NAME,;t t
19018 s,@TINFO_NAME@,$TINFO_NAME,;t t
19019 s,@LIB_NAME@,$LIB_NAME,;t t
19020 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
19021 s,@CC_G_OPT@,$CC_G_OPT,;t t
19022 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
19023 s,@LD_MODEL@,$LD_MODEL,;t t
19024 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
19025 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
19026 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
19027 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
19028 s,@LINK_PROGS@,$LINK_PROGS,;t t
19029 s,@LINK_TESTS@,$LINK_TESTS,;t t
19030 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
19031 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
19032 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
19033 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
19034 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
19035 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
19036 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
19037 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
19038 s,@TERMINFO@,$TERMINFO,;t t
19039 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
19040 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
19041 s,@TERMPATH@,$TERMPATH,;t t
19042 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
19043 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
19044 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
19045 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
19046 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
19047 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
19048 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
19049 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
19050 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
19051 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
19052 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
19053 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
19054 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
19055 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
19056 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
19057 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
19058 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
19059 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
19060 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
19061 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
19062 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
19063 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
19064 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
19065 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
19066 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
19067 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
19068 s,@PTHREAD@,$PTHREAD,;t t
19069 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
19070 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
19071 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
19072 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
19073 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
19074 s,@ECHO_LINK@,$ECHO_LINK,;t t
19075 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
19076 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
19077 s,@ADA_TRACE@,$ADA_TRACE,;t t
19078 s,@MATH_LIB@,$MATH_LIB,;t t
19079 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
19080 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
19081 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
19082 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
19083 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
19084 s,@TEST_LIBS@,$TEST_LIBS,;t t
19085 s,@CXXCPP@,$CXXCPP,;t t
19086 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
19087 s,@CXX_AR@,$CXX_AR,;t t
19088 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
19089 s,@CXXLIBS@,$CXXLIBS,;t t
19090 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
19091 s,@gnat_exists@,$gnat_exists,;t t
19092 s,@M4_exists@,$M4_exists,;t t
19093 s,@cf_ada_make@,$cf_ada_make,;t t
19094 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
19095 s,@cf_ada_package@,$cf_ada_package,;t t
19096 s,@ADAFLAGS@,$ADAFLAGS,;t t
19097 s,@cf_compile_generics@,$cf_compile_generics,;t t
19098 s,@cf_generic_objects@,$cf_generic_objects,;t t
19099 s,@PRAGMA_UNREF@,$PRAGMA_UNREF,;t t
19100 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
19101 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
19102 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
19103 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
19104 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
19105 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
19106 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
19107 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
19108 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
19109 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
19110 s,@TICS_ARGS@,$TICS_ARGS,;t t
19111 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
19112 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
19113 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
19114 s,@TINFO_ARGS@,$TINFO_ARGS,;t t
19115 s,@TINFO_ARGS2@,$TINFO_ARGS2,;t t
19116 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
19117 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
19118 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
19119 s,@TICS_LIST@,$TICS_LIST,;t t
19120 s,@TINFO_LIST@,$TINFO_LIST,;t t
19121 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
19122 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
19123 s,@TEST_ARGS@,$TEST_ARGS,;t t
19124 s,@TEST_DEPS@,$TEST_DEPS,;t t
19125 s,@TEST_ARG2@,$TEST_ARG2,;t t
19126 s,@TEST_DEP2@,$TEST_DEP2,;t t
19127 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
19128 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
19129 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
19130 s,@NCURSES_COPY2@,$NCURSES_COPY2,;t t
19131 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
19132 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
19133 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
19134 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
19135 s,@cross_compiling@,$cross_compiling,;t t
19140 cat >>$CONFIG_STATUS <<\EOF
19141 # Split the substitutions into bite-sized pieces for seds with
19142 # small command number limits, like on Digital OSF/1 and HP-UX.
19143 ac_max_sed_lines=48
19144 ac_sed_frag=1 # Number of current file.
19145 ac_beg=1 # First line for current file.
19146 ac_end=$ac_max_sed_lines # Line after last line for current file.
19149 while $ac_more_lines; do
19150 if test $ac_beg -gt 1; then
19151 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19153 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19155 if test ! -s $tmp/subs.frag; then
19156 ac_more_lines=false
19158 # The purpose of the label and of the branching condition is to
19159 # speed up the sed processing (if there are no `@' at all, there
19160 # is no need to browse any of the substitutions).
19161 # These are the two extra sed commands mentioned above.
19163 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19164 if test -z "$ac_sed_cmds"; then
19165 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19167 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19169 ac_sed_frag=`expr $ac_sed_frag + 1`
19171 ac_end=`expr $ac_end + $ac_max_sed_lines`
19174 if test -z "$ac_sed_cmds"; then
19177 fi # test -n "$CONFIG_FILES"
19180 cat >>$CONFIG_STATUS <<\EOF
19181 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19182 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19184 - | *:- | *:-:* ) # input from stdin
19186 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19187 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19188 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19189 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19190 * ) ac_file_in=$ac_file.in ;;
19193 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19194 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19195 X"$ac_file" : 'X\(//\)[^/]' \| \
19196 X"$ac_file" : 'X\(//\)$' \| \
19197 X"$ac_file" : 'X\(/\)' \| \
19198 . : '\(.\)' 2>/dev/null ||
19200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19201 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19202 /^X\(\/\/\)$/{ s//\1/; q; }
19203 /^X\(\/\).*/{ s//\1/; q; }
19205 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19206 { case "$ac_dir" in
19207 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19211 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19212 case $as_mkdir_dir in
19213 # Skip DOS drivespec
19214 ?:) as_incr_dir=$as_mkdir_dir ;;
19216 as_incr_dir=$as_incr_dir/$as_mkdir_dir
19217 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
19222 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
19223 # A "../" for each directory in $ac_dir_suffix.
19224 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
19226 ac_dir_suffix= ac_dots=
19231 if test -z "$ac_dots"; then
19234 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
19236 [\\/]* | ?:[\\/]* )
19237 ac_srcdir=$srcdir$ac_dir_suffix;
19238 ac_top_srcdir=$srcdir ;;
19239 *) # Relative path.
19240 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
19241 ac_top_srcdir=$ac_dots$srcdir ;;
19245 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19246 *) ac_INSTALL=$ac_dots$INSTALL ;;
19249 if test x"$ac_file" != x-; then
19250 { echo "$as_me:19250: creating $ac_file" >&5
19251 echo "$as_me: creating $ac_file" >&6;}
19254 # Let's still pretend it is `configure' which instantiates (i.e., don't
19255 # use $as_me), people would be surprised to read:
19256 # /* config.h. Generated automatically by config.status. */
19257 configure_input="Generated automatically from `echo $ac_file_in |
19258 sed 's,.*/,,'` by configure."
19260 # First look for the input files in the build tree, otherwise in the
19262 ac_file_inputs=`IFS=:
19263 for f in $ac_file_in; do
19265 -) echo $tmp/stdin ;;
19267 # Absolute (can't be DOS-style, as IFS=:)
19268 test -f "$f" || { { echo "$as_me:19268: error: cannot find input file: $f" >&5
19269 echo "$as_me: error: cannot find input file: $f" >&2;}
19270 { (exit 1); exit 1; }; }
19273 if test -f "$f"; then
19276 elif test -f "$srcdir/$f"; then
19281 { { echo "$as_me:19281: error: cannot find input file: $f" >&5
19282 echo "$as_me: error: cannot find input file: $f" >&2;}
19283 { (exit 1); exit 1; }; }
19286 done` || { (exit 1); exit 1; }
19288 cat >>$CONFIG_STATUS <<EOF
19292 cat >>$CONFIG_STATUS <<\EOF
19294 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19295 s,@configure_input@,$configure_input,;t t
19296 s,@srcdir@,$ac_srcdir,;t t
19297 s,@top_srcdir@,$ac_top_srcdir,;t t
19298 s,@INSTALL@,$ac_INSTALL,;t t
19299 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19301 if test x"$ac_file" != x-; then
19302 mv $tmp/out $ac_file
19310 cat >>$CONFIG_STATUS <<\EOF
19313 # CONFIG_HEADER section.
19316 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19317 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19319 # ac_d sets the value in "#define NAME VALUE" lines.
19320 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19321 ac_dB='[ ].*$,\1#\2'
19324 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
19325 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19326 ac_iB='\([ ]\),\1#\2define\3'
19329 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19330 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19331 ac_uB='$,\1#\2define\3'
19335 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19336 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19338 - | *:- | *:-:* ) # input from stdin
19340 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19341 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19342 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19343 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19344 * ) ac_file_in=$ac_file.in ;;
19347 test x"$ac_file" != x- && { echo "$as_me:19347: creating $ac_file" >&5
19348 echo "$as_me: creating $ac_file" >&6;}
19350 # First look for the input files in the build tree, otherwise in the
19352 ac_file_inputs=`IFS=:
19353 for f in $ac_file_in; do
19355 -) echo $tmp/stdin ;;
19357 # Absolute (can't be DOS-style, as IFS=:)
19358 test -f "$f" || { { echo "$as_me:19358: error: cannot find input file: $f" >&5
19359 echo "$as_me: error: cannot find input file: $f" >&2;}
19360 { (exit 1); exit 1; }; }
19363 if test -f "$f"; then
19366 elif test -f "$srcdir/$f"; then
19371 { { echo "$as_me:19371: error: cannot find input file: $f" >&5
19372 echo "$as_me: error: cannot find input file: $f" >&2;}
19373 { (exit 1); exit 1; }; }
19376 done` || { (exit 1); exit 1; }
19377 # Remove the trailing spaces.
19378 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19382 # Transform confdefs.h into a list of #define's. We won't use it as a sed
19383 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
19384 # be either 'cat' or 'sort'.
19385 cat confdefs.h | uniq >conftest.vals
19387 # Break up conftest.vals because some shells have a limit on
19388 # the size of here documents, and old seds have small limits too.
19390 rm -f conftest.tail
19391 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
19392 while grep . conftest.vals >/dev/null
19394 # Write chunks of a limited-size here document to conftest.frag.
19395 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
19396 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
19397 echo 'CEOF' >> $CONFIG_STATUS
19398 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
19399 rm -f conftest.vals
19400 mv conftest.tail conftest.vals
19402 rm -f conftest.vals
19404 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
19406 echo ' cat >> conftest.edit <<CEOF
19407 /@DEFS@/r conftest.frag
19410 sed -f conftest.edit $tmp/in > $tmp/out
19412 mv $tmp/out $tmp/in
19413 rm -f conftest.edit conftest.frag
19414 ' >> $CONFIG_STATUS
19416 cat >>$CONFIG_STATUS <<\EOF
19417 # Let's still pretend it is `configure' which instantiates (i.e., don't
19418 # use $as_me), people would be surprised to read:
19419 # /* config.h. Generated automatically by config.status. */
19420 if test x"$ac_file" = x-; then
19421 echo "/* Generated automatically by configure. */" >$tmp/config.h
19423 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
19425 cat $tmp/in >>$tmp/config.h
19427 if test x"$ac_file" != x-; then
19428 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
19429 { echo "$as_me:19429: $ac_file is unchanged" >&5
19430 echo "$as_me: $ac_file is unchanged" >&6;}
19432 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19433 X"$ac_file" : 'X\(//\)[^/]' \| \
19434 X"$ac_file" : 'X\(//\)$' \| \
19435 X"$ac_file" : 'X\(/\)' \| \
19436 . : '\(.\)' 2>/dev/null ||
19438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19439 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19440 /^X\(\/\/\)$/{ s//\1/; q; }
19441 /^X\(\/\).*/{ s//\1/; q; }
19443 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19444 { case "$ac_dir" in
19445 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19449 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19450 case $as_mkdir_dir in
19451 # Skip DOS drivespec
19452 ?:) as_incr_dir=$as_mkdir_dir ;;
19454 as_incr_dir=$as_incr_dir/$as_mkdir_dir
19455 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
19462 mv $tmp/config.h $ac_file
19466 rm -f $tmp/config.h
19470 cat >>$CONFIG_STATUS <<\EOF
19473 # CONFIG_COMMANDS section.
19475 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19476 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19477 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19484 if test ! -d $srcdir/$cf_dir; then
19486 elif test -f $srcdir/$cf_dir/programs; then
19487 $AWK -f $srcdir/test/mk-test.awk ECHO_LINK="$ECHO_LINK" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
19491 case $cf_cv_system_name in #(vi
19495 *) LIB_PREFIX='lib'
19498 cf_prefix=$LIB_PREFIX
19500 if test $cf_cv_shlib_version = cygdll ; then
19501 TINFO_NAME=$TINFO_ARG_SUFFIX
19505 for cf_dir in $SRC_SUBDIRS
19507 if test ! -d $srcdir/$cf_dir ; then
19509 elif test -f $srcdir/$cf_dir/modules; then
19513 for cf_item in $cf_LIST_MODELS
19516 case $cf_item in #(vi
19519 cf_depsuf=$cf_suffix
19523 cf_depsuf=$cf_suffix
19527 cf_depsuf=$cf_suffix
19531 cf_depsuf=$cf_suffix
19534 case $cf_cv_system_name in
19537 cf_depsuf=$cf_suffix
19545 cf_depsuf=$cf_suffix
19551 cf_depsuf=$cf_suffix
19555 cf_depsuf=$cf_suffix
19560 cf_depsuf=$cf_suffix
19564 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
19565 test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"
19567 if test $cf_item = shared ; then
19568 if test "$cf_cv_do_symlinks" = yes ; then
19569 case "$cf_cv_shlib_version" in #(vi
19571 case "$cf_cv_system_name" in #(vi
19573 case .${LIB_SUFFIX} in
19575 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
19576 cf_suffix=w'.${REL_VERSION}'"$cf_suffix"
19579 cf_suffix='.${REL_VERSION}'"$cf_suffix"
19583 *) cf_suffix="$cf_suffix"'.${REL_VERSION}' ;;
19587 case "$cf_cv_system_name" in #(vi
19589 case .${LIB_SUFFIX} in
19591 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
19592 cf_suffix=w'.${ABI_VERSION}'"$cf_suffix"
19595 cf_suffix='.${ABI_VERSION}'"$cf_suffix"
19599 *) cf_suffix="$cf_suffix"'.${ABI_VERSION}' ;;
19604 # cygwin needs import library, and has unique naming convention
19605 # use autodetected ${cf_prefix} for import lib and static lib, but
19606 # use 'cyg' prefix for shared lib.
19607 if test $cf_cv_shlib_version = cygdll ; then
19608 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
19609 LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/cyg${cf_dir}${cf_cygsuf}"
19613 LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/${cf_prefix}${cf_dir}${cf_suffix}"
19616 if test $cf_dir = ncurses ; then
19617 cf_subsets="$LIB_SUBSETS"
19618 cf_r_parts="$cf_subsets"
19619 cf_liblist="$LIBS_TO_MAKE"
19621 while test -n "$cf_r_parts"
19623 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
19624 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
19625 if test "$cf_l_parts" != "$cf_r_parts" ; then
19627 case $cf_l_parts in #(vi
19629 cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
19632 cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
19638 if test -n "$cf_item"; then
19639 LIBS_TO_MAKE="$cf_item $LIBS_TO_MAKE"
19646 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
19649 sed -e "s%@LIBS_TO_MAKE@%$LIBS_TO_MAKE%" \
19650 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
19651 $cf_dir/Makefile >$cf_dir/Makefile.out
19652 mv $cf_dir/Makefile.out $cf_dir/Makefile
19654 $AWK -f $srcdir/mk-0th.awk \
19655 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" \
19656 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
19658 for cf_subset in $cf_subsets
19661 for cf_item in $cf_LIST_MODELS
19663 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
19665 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
19667 case $cf_item in #(vi
19670 cf_depsuf=$cf_suffix
19674 cf_depsuf=$cf_suffix
19678 cf_depsuf=$cf_suffix
19682 cf_depsuf=$cf_suffix
19685 case $cf_cv_system_name in
19688 cf_depsuf=$cf_suffix
19696 cf_depsuf=$cf_suffix
19702 cf_depsuf=$cf_suffix
19706 cf_depsuf=$cf_suffix
19711 cf_depsuf=$cf_suffix
19715 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
19716 test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"
19719 libtool) cf_subdir='obj_lo' ;;
19720 normal) cf_subdir='objects' ;;
19721 debug) cf_subdir='obj_g' ;;
19722 profile) cf_subdir='obj_p' ;;
19724 case $cf_cv_system_name in #(vi
19726 cf_subdir='objects' ;;
19728 cf_subdir='obj_s' ;;
19732 # Test for case where we build libtinfo with a different name.
19734 if test $cf_dir = ncurses ; then
19737 cf_libname=${cf_libname}$LIB_SUFFIX
19740 cf_libname=$TINFO_LIB_SUFFIX
19743 cf_libname=$TICS_LIB_SUFFIX
19747 cf_libname=${cf_libname}$LIB_SUFFIX
19749 if test -n "${DFT_ARG_SUFFIX}" ; then
19750 # undo $LIB_SUFFIX add-on in CF_LIB_SUFFIX
19751 cf_suffix=`echo $cf_suffix |sed -e "s%^${LIB_SUFFIX}%%"`
19754 # These dependencies really are for development, not
19755 # builds, but they are useful in porting, too.
19756 cf_depend="../include/ncurses_cfg.h"
19757 if test "$srcdir" = "."; then
19760 cf_reldir="\${srcdir}"
19763 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
19764 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
19765 elif test -f $srcdir/$cf_dir/curses.priv.h; then
19766 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
19770 old_cf_suffix="$cf_suffix"
19771 if test "$cf_cv_shlib_version_infix" = yes ; then
19772 if test -n "$LIB_SUFFIX" ; then
19773 case $LIB_SUFFIX in
19775 cf_libname=`echo $cf_libname | sed 's/w$//'`
19776 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
19783 $AWK -f $srcdir/mk-1st.awk \
19784 name=${cf_libname}${cf_dir_suffix} \
19785 traces=$LIB_TRACING \
19788 prefix=$cf_prefix \
19789 suffix=$cf_suffix \
19790 subset=$cf_subset \
19791 TermlibRoot=$TINFO_NAME \
19792 TermlibSuffix=$TINFO_SUFFIX \
19793 ShlibVer=$cf_cv_shlib_version \
19794 ShlibVerInfix=$cf_cv_shlib_version_infix \
19795 ReLink=${cf_cv_do_relink-no} \
19796 DoLinks=$cf_cv_do_symlinks \
19797 rmSoLocs=$cf_cv_rm_so_locs \
19798 ldconfig="$LDCONFIG" \
19799 overwrite=$WITH_OVERWRITE \
19800 depend="$cf_depend" \
19802 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
19804 cf_suffix="$old_cf_suffix"
19806 for cf_subdir2 in $cf_subdirs lib
19808 test $cf_subdir = $cf_subdir2 && break
19810 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
19811 $AWK -f $srcdir/mk-2nd.awk \
19813 traces=$LIB_TRACING \
19816 subset=$cf_subset \
19819 crenames=$cf_cv_prog_CC_c_o \
19820 cxxrenames=$cf_cv_prog_CXX_c_o \
19821 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
19822 cf_subdirs="$cf_subdirs $cf_subdir"
19827 echo ' cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@' >>Makefile
19830 for cf_dir in $SRC_SUBDIRS
19832 if test ! -d $srcdir/$cf_dir ; then
19836 if test -f $cf_dir/Makefile ; then
19839 echo 'libs \' >> Makefile
19840 echo 'install.libs \' >> Makefile
19841 echo 'uninstall.libs ::' >> Makefile
19842 echo ' cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@' >> Makefile
19847 if test -f $srcdir/$cf_dir/modules; then
19849 if test -f $srcdir/$cf_dir/headers; then
19850 cat >> Makefile <<CF_EOF
19851 install.includes \\
19852 uninstall.includes \\
19855 if test "$cf_dir" != "c++" ; then
19856 echo 'lint \' >> Makefile
19858 cat >> Makefile <<CF_EOF
19864 uninstall.$cf_dir ::
19865 cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@
19867 elif test -f $srcdir/$cf_dir/headers; then
19868 cat >> Makefile <<CF_EOF
19873 install.includes \\
19874 uninstall.includes ::
19875 cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@
19880 cat >> Makefile <<CF_EOF
19882 install.libs uninstall.libs \\
19883 install.data uninstall.data ::
19884 $MAKE_TERMINFO cd misc && \${MAKE} \${CF_MFLAGS} \$@
19887 if test "x$cf_with_manpages" = xyes; then
19888 cat >> Makefile <<CF_EOF
19892 cd man && \${MAKE} \${CF_MFLAGS} \$@
19896 cat >> Makefile <<CF_EOF
19899 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
19900 rm -f headers.sh headers.sed mk_shared_lib.sh
19901 rm -f edit_man.* man_alias.*
19902 rm -rf \${DIRS_TO_MAKE}
19905 # Special case: tack's manpage lives in its own directory.
19906 if test "x$cf_with_manpages" = xyes; then
19907 if test -d tack ; then
19908 if test -f $srcdir/$tack.h; then
19909 cat >> Makefile <<CF_EOF
19913 cd tack && \${MAKE} \${CF_MFLAGS} \$@
19919 rm -f headers.sed headers.sh
19921 echo creating headers.sh
19922 cat >headers.sh <<CF_EOF
19924 # This shell script is generated by the 'configure' script. It is invoked in a
19925 # subdirectory of the build tree. It generates a sed-script in the parent
19926 # directory that is used to adjust includes for header files that reside in a
19927 # subdirectory of /usr/include, etc.
19929 while test \$# != 3
19931 PRG="\$PRG \$1"; shift
19936 TMPSRC=\${TMPDIR-/tmp}/\`basename \$SRC\`\$\$
19937 TMPSED=\${TMPDIR-/tmp}/headers.sed\$\$
19938 echo installing \$SRC in \$DST
19941 if test $WITH_CURSES_H = yes; then
19942 cat >>headers.sh <<CF_EOF
19945 END=\`basename \$DST\`
19946 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
19948 NAME=\`basename \$i\`
19949 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
19953 echo "" >> \$TMPSED
19959 cat >>headers.sh <<CF_EOF
19962 END=\`basename \$DST\`
19963 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
19965 NAME=\`basename \$i\`
19966 if test "\$NAME" = "curses.h"
19968 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
19971 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
19975 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
19980 cat >>headers.sh <<CF_EOF
19982 sed -f \$TMPSED \$SRC > \$TMPSRC
19983 NAME=\`basename \$SRC\`
19985 if test $WITH_CURSES_H != yes; then
19986 cat >>headers.sh <<CF_EOF
19987 test "\$NAME" = "curses.h" && NAME=ncurses.h
19990 cat >>headers.sh <<CF_EOF
19991 # Just in case someone gzip'd manpages, remove the conflicting copy.
19992 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
19994 eval \$PRG \$TMPSRC \$DST/\$NAME
19995 rm -f \$TMPSRC \$TMPSED
19998 chmod 0755 headers.sh
20000 for cf_dir in $SRC_SUBDIRS
20002 if test ! -d $srcdir/$cf_dir ; then
20006 if test -f $srcdir/$cf_dir/headers; then
20007 $AWK -f $srcdir/mk-hdr.awk \
20008 subset="$LIB_SUBSETS" \
20009 compat="$WITH_CURSES_H" \
20010 $srcdir/$cf_dir/headers >>$cf_dir/Makefile
20013 if test -f $srcdir/$cf_dir/modules; then
20014 if test "$cf_dir" != "c++" ; then
20015 cat >>$cf_dir/Makefile <<"CF_EOF"
20016 depend : ${AUTO_SRC}
20017 makedepend -- ${CPPFLAGS} -- ${C_SRC}
20019 # DO NOT DELETE THIS LINE -- make depend depends on it.
20030 cat >>$CONFIG_STATUS <<\EOF
20032 { (exit 0); exit 0; }
20034 chmod +x $CONFIG_STATUS
20035 ac_clean_files=$ac_clean_files_save
20037 # configure is writing to config.log, and then calls config.status.
20038 # config.status does its own redirection, appending to config.log.
20039 # Unfortunately, on DOS this fails, as config.log is still kept open
20040 # by configure, so config.status won't be able to write to it; its
20041 # output is simply discarded. So we exec the FD to /dev/null,
20042 # effectively closing config.log, so it can be properly (re)opened and
20043 # appended to by config.status. When coming back to configure, we
20044 # need to make the FD available again.
20045 if test "$no_create" != yes; then
20048 $SHELL $CONFIG_STATUS || ac_cs_success=false
20050 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20051 # would make configure fail if this is the last instruction.
20052 $ac_cs_success || { (exit 1); exit 1; }
20054 ${MAKE-make} preinstall