2 # From configure.in Revision: 1.545 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20101002.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Avoid depending upon Character Ranges.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
35 if expr a : '\(a\)' >/dev/null 2>&1; then
41 rm -f conf$$ conf$$.exe conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
44 # We could just check for DJGPP; but this test a) works b) is more generic
45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 if test -f conf$$.exe; then
47 # Don't use ln at all; we don't have any links
52 elif ln conf$$.file conf$$ 2>/dev/null; then
57 rm -f conf$$ conf$$.exe conf$$.file
59 as_executable_p="test -f"
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
79 # We need space, tab and new line, in precisely that order.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
97 ac_default_prefix=/usr/local
101 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 # This variable seems obsolete. It should probably be removed, and
105 # only ac_max_sed_lines should be used.
106 : ${ac_max_here_lines=38}
108 ac_unique_file="ncurses/base/lib_initscr.c"
109 # Factoring default headers for most tests.
110 ac_includes_default="\
113 # include <sys/types.h>
116 # include <sys/stat.h>
127 # if !STDC_HEADERS && HAVE_MEMORY_H
133 # include <strings.h>
136 # include <inttypes.h>
146 # Initialize some variables set by options.
148 ac_init_version=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
158 program_transform_name=s,x,x,
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datadir='${prefix}/share'
175 sysconfdir='${prefix}/etc'
176 sharedstatedir='${prefix}/com'
177 localstatedir='${prefix}/var'
178 libdir='${exec_prefix}/lib'
179 includedir='${prefix}/include'
180 oldincludedir='/usr/include'
181 infodir='${prefix}/info'
182 mandir='${prefix}/man'
184 # Identity of this package.
194 # If the previous option needs an argument, assign it.
195 if test -n "$ac_prev"; then
196 eval "$ac_prev=\$ac_option"
201 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
203 # Accept the important Cygnus configure options, so we can diagnose typos.
207 -bindir | --bindir | --bindi | --bind | --bin | --bi)
209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
212 -build | --build | --buil | --bui | --bu)
213 ac_prev=build_alias ;;
214 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
215 build_alias=$ac_optarg ;;
217 -cache-file | --cache-file | --cache-fil | --cache-fi \
218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
219 ac_prev=cache_file ;;
220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
222 cache_file=$ac_optarg ;;
225 cache_file=config.cache ;;
227 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
229 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
231 datadir=$ac_optarg ;;
233 -disable-* | --disable-*)
234 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
235 # Reject names that are not valid shell variable names.
236 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
237 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
238 { (exit 1); exit 1; }; }
239 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
240 eval "enable_$ac_feature=no" ;;
242 -enable-* | --enable-*)
243 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
244 # Reject names that are not valid shell variable names.
245 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
246 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
247 { (exit 1); exit 1; }; }
248 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
250 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
253 eval "enable_$ac_feature='$ac_optarg'" ;;
255 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
256 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
257 | --exec | --exe | --ex)
258 ac_prev=exec_prefix ;;
259 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
260 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
261 | --exec=* | --exe=* | --ex=*)
262 exec_prefix=$ac_optarg ;;
264 -gas | --gas | --ga | --g)
265 # Obsolete; use --with-gas.
268 -help | --help | --hel | --he | -h)
270 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
271 ac_init_help=recursive ;;
272 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
273 ac_init_help=short ;;
275 -host | --host | --hos | --ho)
276 ac_prev=host_alias ;;
277 -host=* | --host=* | --hos=* | --ho=*)
278 host_alias=$ac_optarg ;;
280 -includedir | --includedir | --includedi | --included | --include \
281 | --includ | --inclu | --incl | --inc)
282 ac_prev=includedir ;;
283 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
284 | --includ=* | --inclu=* | --incl=* | --inc=*)
285 includedir=$ac_optarg ;;
287 -infodir | --infodir | --infodi | --infod | --info | --inf)
289 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
290 infodir=$ac_optarg ;;
292 -libdir | --libdir | --libdi | --libd)
294 -libdir=* | --libdir=* | --libdi=* | --libd=*)
297 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
298 | --libexe | --libex | --libe)
299 ac_prev=libexecdir ;;
300 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
301 | --libexe=* | --libex=* | --libe=*)
302 libexecdir=$ac_optarg ;;
304 -localstatedir | --localstatedir | --localstatedi | --localstated \
305 | --localstate | --localstat | --localsta | --localst \
306 | --locals | --local | --loca | --loc | --lo)
307 ac_prev=localstatedir ;;
308 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
309 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
310 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
311 localstatedir=$ac_optarg ;;
313 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
315 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
319 # Obsolete; use --without-fp.
322 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
326 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
327 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
330 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
331 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
332 | --oldin | --oldi | --old | --ol | --o)
333 ac_prev=oldincludedir ;;
334 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
335 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
336 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
337 oldincludedir=$ac_optarg ;;
339 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
341 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
344 -program-prefix | --program-prefix | --program-prefi | --program-pref \
345 | --program-pre | --program-pr | --program-p)
346 ac_prev=program_prefix ;;
347 -program-prefix=* | --program-prefix=* | --program-prefi=* \
348 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
349 program_prefix=$ac_optarg ;;
351 -program-suffix | --program-suffix | --program-suffi | --program-suff \
352 | --program-suf | --program-su | --program-s)
353 ac_prev=program_suffix ;;
354 -program-suffix=* | --program-suffix=* | --program-suffi=* \
355 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
356 program_suffix=$ac_optarg ;;
358 -program-transform-name | --program-transform-name \
359 | --program-transform-nam | --program-transform-na \
360 | --program-transform-n | --program-transform- \
361 | --program-transform | --program-transfor \
362 | --program-transfo | --program-transf \
363 | --program-trans | --program-tran \
364 | --progr-tra | --program-tr | --program-t)
365 ac_prev=program_transform_name ;;
366 -program-transform-name=* | --program-transform-name=* \
367 | --program-transform-nam=* | --program-transform-na=* \
368 | --program-transform-n=* | --program-transform-=* \
369 | --program-transform=* | --program-transfor=* \
370 | --program-transfo=* | --program-transf=* \
371 | --program-trans=* | --program-tran=* \
372 | --progr-tra=* | --program-tr=* | --program-t=*)
373 program_transform_name=$ac_optarg ;;
375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
376 | -silent | --silent | --silen | --sile | --sil)
379 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
381 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
383 sbindir=$ac_optarg ;;
385 -sharedstatedir | --sharedstatedir | --sharedstatedi \
386 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
387 | --sharedst | --shareds | --shared | --share | --shar \
389 ac_prev=sharedstatedir ;;
390 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
391 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
392 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
394 sharedstatedir=$ac_optarg ;;
396 -site | --site | --sit)
398 -site=* | --site=* | --sit=*)
401 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
403 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
406 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
407 | --syscon | --sysco | --sysc | --sys | --sy)
408 ac_prev=sysconfdir ;;
409 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
410 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
411 sysconfdir=$ac_optarg ;;
413 -target | --target | --targe | --targ | --tar | --ta | --t)
414 ac_prev=target_alias ;;
415 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
416 target_alias=$ac_optarg ;;
418 -v | -verbose | --verbose | --verbos | --verbo | --verb)
421 -version | --version | --versio | --versi | --vers | -V)
425 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
426 # Reject names that are not valid shell variable names.
427 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
428 { echo "$as_me: error: invalid package name: $ac_package" >&2
429 { (exit 1); exit 1; }; }
430 ac_package=`echo $ac_package| sed 's/-/_/g'`
432 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
435 eval "with_$ac_package='$ac_optarg'" ;;
437 -without-* | --without-*)
438 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
439 # Reject names that are not valid shell variable names.
440 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
441 { echo "$as_me: error: invalid package name: $ac_package" >&2
442 { (exit 1); exit 1; }; }
443 ac_package=`echo $ac_package | sed 's/-/_/g'`
444 eval "with_$ac_package=no" ;;
447 # Obsolete; use --with-x.
450 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
451 | --x-incl | --x-inc | --x-in | --x-i)
452 ac_prev=x_includes ;;
453 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
454 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
455 x_includes=$ac_optarg ;;
457 -x-libraries | --x-libraries | --x-librarie | --x-librari \
458 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
459 ac_prev=x_libraries ;;
460 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
461 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
462 x_libraries=$ac_optarg ;;
464 -*) { echo "$as_me: error: unrecognized option: $ac_option
465 Try \`$0 --help' for more information." >&2
466 { (exit 1); exit 1; }; }
470 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
471 # Reject names that are not valid shell variable names.
472 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
473 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
474 { (exit 1); exit 1; }; }
475 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
476 eval "$ac_envvar='$ac_optarg'"
480 # FIXME: should be removed in autoconf 3.0.
481 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
482 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
483 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
484 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
490 if test -n "$ac_prev"; then
491 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
492 { echo "$as_me: error: missing argument to $ac_option" >&2
493 { (exit 1); exit 1; }; }
496 # Be sure to have absolute paths.
497 for ac_var in exec_prefix prefix
499 eval ac_val=$`echo $ac_var`
501 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
502 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
503 { (exit 1); exit 1; }; };;
507 # Be sure to have absolute paths.
508 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
509 localstatedir libdir includedir oldincludedir infodir mandir
511 eval ac_val=$`echo $ac_var`
513 [\\/$]* | ?:[\\/]* ) ;;
514 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
515 { (exit 1); exit 1; }; };;
519 # There might be people who depend on the old broken behavior: `$host'
520 # used to hold the argument of --host etc.
525 # FIXME: should be removed in autoconf 3.0.
526 if test "x$host_alias" != x; then
527 if test "x$build_alias" = x; then
528 cross_compiling=maybe
529 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
530 If a cross compiler is detected then cross compile mode will be used." >&2
531 elif test "x$build_alias" != "x$host_alias"; then
537 test -n "$host_alias" && ac_tool_prefix=$host_alias-
539 test "$silent" = yes && exec 6>/dev/null
541 # Find the source files, if location was not specified.
542 if test -z "$srcdir"; then
543 ac_srcdir_defaulted=yes
544 # Try the directory containing this script, then its parent.
546 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
547 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
549 if test ! -r $srcdir/$ac_unique_file; then
553 ac_srcdir_defaulted=no
555 if test ! -r $srcdir/$ac_unique_file; then
556 if test "$ac_srcdir_defaulted" = yes; then
557 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
558 { (exit 1); exit 1; }; }
560 { echo "$as_me: error: cannot find sources in $srcdir" >&2
561 { (exit 1); exit 1; }; }
564 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
565 ac_env_build_alias_set=${build_alias+set}
566 ac_env_build_alias_value=$build_alias
567 ac_cv_env_build_alias_set=${build_alias+set}
568 ac_cv_env_build_alias_value=$build_alias
569 ac_env_host_alias_set=${host_alias+set}
570 ac_env_host_alias_value=$host_alias
571 ac_cv_env_host_alias_set=${host_alias+set}
572 ac_cv_env_host_alias_value=$host_alias
573 ac_env_target_alias_set=${target_alias+set}
574 ac_env_target_alias_value=$target_alias
575 ac_cv_env_target_alias_set=${target_alias+set}
576 ac_cv_env_target_alias_value=$target_alias
577 ac_env_CC_set=${CC+set}
579 ac_cv_env_CC_set=${CC+set}
580 ac_cv_env_CC_value=$CC
581 ac_env_CFLAGS_set=${CFLAGS+set}
582 ac_env_CFLAGS_value=$CFLAGS
583 ac_cv_env_CFLAGS_set=${CFLAGS+set}
584 ac_cv_env_CFLAGS_value=$CFLAGS
585 ac_env_LDFLAGS_set=${LDFLAGS+set}
586 ac_env_LDFLAGS_value=$LDFLAGS
587 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
588 ac_cv_env_LDFLAGS_value=$LDFLAGS
589 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
590 ac_env_CPPFLAGS_value=$CPPFLAGS
591 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
592 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
593 ac_env_CPP_set=${CPP+set}
594 ac_env_CPP_value=$CPP
595 ac_cv_env_CPP_set=${CPP+set}
596 ac_cv_env_CPP_value=$CPP
597 ac_env_CXX_set=${CXX+set}
598 ac_env_CXX_value=$CXX
599 ac_cv_env_CXX_set=${CXX+set}
600 ac_cv_env_CXX_value=$CXX
601 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
602 ac_env_CXXFLAGS_value=$CXXFLAGS
603 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
604 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
605 ac_env_CXXCPP_set=${CXXCPP+set}
606 ac_env_CXXCPP_value=$CXXCPP
607 ac_cv_env_CXXCPP_set=${CXXCPP+set}
608 ac_cv_env_CXXCPP_value=$CXXCPP
611 # Report the --help message.
613 if test "$ac_init_help" = "long"; then
614 # Omit some internal or obsolete options to make the list less imposing.
615 # This message is too long to be a string in the A/UX 3.1 sh.
617 \`configure' configures this package to adapt to many kinds of systems.
619 Usage: $0 [OPTION]... [VAR=VALUE]...
621 To assign environment variables (e.g., CC, CFLAGS...), specify them as
622 VAR=VALUE. See below for descriptions of some of the useful variables.
624 Defaults for the options are specified in brackets.
627 -h, --help display this help and exit
628 --help=short display options specific to this package
629 --help=recursive display the short help of all the included packages
630 -V, --version display version information and exit
631 -q, --quiet, --silent do not print \`checking...' messages
632 --cache-file=FILE cache test results in FILE [disabled]
633 -C, --config-cache alias for \`--cache-file=config.cache'
634 -n, --no-create do not create output files
635 --srcdir=DIR find the sources in DIR [configure dir or \`..']
640 Installation directories:
641 --prefix=PREFIX install architecture-independent files in PREFIX
643 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
646 By default, \`make install' will install all the files in
647 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
648 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
649 for instance \`--prefix=\$HOME'.
651 For better control, use the options below.
653 Fine tuning of the installation directories:
654 --bindir=DIR user executables [EPREFIX/bin]
655 --sbindir=DIR system admin executables [EPREFIX/sbin]
656 --libexecdir=DIR program executables [EPREFIX/libexec]
657 --datadir=DIR read-only architecture-independent data [PREFIX/share]
658 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
659 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
660 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
661 --libdir=DIR object code libraries [EPREFIX/lib]
662 --includedir=DIR C header files [PREFIX/include]
663 --oldincludedir=DIR C header files for non-gcc [/usr/include]
664 --infodir=DIR info documentation [PREFIX/info]
665 --mandir=DIR man documentation [PREFIX/man]
671 --program-prefix=PREFIX prepend PREFIX to installed program names
672 --program-suffix=SUFFIX append SUFFIX to installed program names
673 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
676 --build=BUILD configure for building on BUILD [guessed]
677 --host=HOST build programs to run on HOST [BUILD]
678 --target=TARGET configure for building compilers for TARGET [HOST]
682 if test -n "$ac_init_help"; then
687 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
688 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
691 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
692 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
694 --with-rel-version=XXX override derived release version
695 --with-abi-version=XXX override derived ABI version
696 --with-system-type=XXX test: override derived host system-type
697 --without-cxx do not adjust ncurses bool to match C++
698 --without-cxx-binding do not build C++ binding and demo
699 --without-ada suppress check for Ada95, don't build demo
700 --without-manpages suppress install of manpages
701 --without-progs suppress build with programs (e.g., tic)
702 --without-tests suppress build with test-programs
703 --without-curses-h install curses.h as ncurses.h only
704 --with-pkg-config{=path} enable/disable use of pkg-config
705 --with-pkg-config-libdir=XXX use given directory for installing pc-files
706 --enable-pc-files generate and install .pc files for pkg-config
707 --enable-mixed-case tic should assume mixed-case filenames
708 --with-install-prefix prefixes actual install-location ($DESTDIR)
709 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
710 --with-build-cc=XXX the build C compiler ($BUILD_CC)
711 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
712 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
713 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
714 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
715 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
716 Options to Specify the Libraries Built/Used:
717 --disable-libtool-version enable to use libtool's incompatible naming scheme
718 --with-libtool generate libraries with libtool
719 --with-shared generate shared-libraries
720 --with-normal generate normal-libraries (default)
721 --with-debug generate debug-libraries (default)
722 --with-profile generate profile-libraries
723 --with-lib-prefix override library-prefix
724 --with-termlib generate separate terminfo library
725 --with-ticlib generate separate tic library
726 --with-gpm use Alessandro Rubini's GPM library
727 --without-dlsym do not use dlsym() to load GPM dynamically
728 --with-sysmouse use sysmouse (FreeBSD console)
729 --enable-rpath use rpath option when generating shared libraries
730 --disable-relink relink shared libraries during install
731 --with-shlib-version=X Specify rel or abi version for shared libs
732 --disable-rpath-hack don't add rpath options for additional libraries
733 Fine-Tuning Your Configuration:
734 --disable-overwrite leave out the link to -lcurses
735 --disable-database do not use terminfo, only fallbacks/termcap
736 --with-database=XXX specify terminfo source to install
737 --with-hashed-db specify hashed-database library
738 --with-fallbacks=XXX specify list of fallback terminal descriptions
739 --without-xterm-new specify if xterm terminfo should be old version
740 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
741 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
742 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
743 --disable-big-core assume machine has little memory
744 --disable-big-strings assume compiler has only standard-size strings
745 --enable-termcap compile in termcap fallback support
746 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
747 --enable-getcap fast termcap load, no xrefs to terminfo
748 --enable-getcap-cache cache translated termcaps in ~/.terminfo
749 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
750 --disable-root-environ restrict environment when running as root
751 --enable-symlinks make tic use symbolic links not hard links
752 --enable-broken_linker compile with broken-linker support code
753 --enable-bsdpad recognize BSD-style prefix padding
754 --enable-widec compile with wide-char/UTF-8 code
755 --disable-lp64 allow chtype to be long (ignore _LP64)
756 --disable-largefile omit support for large files
757 --disable-tparm-varargs compile tparm() without varargs interface
758 --disable-tic-depends link tic library without explicit dependency on ncurses library
759 --with-bool=TYPE override fallback type of bool variable
760 --with-caps=alt compile with alternate Caps file
761 --with-chtype=TYPE override type of chtype
762 --with-ospeed=TYPE override type of ospeed variable
763 --with-mmask-t=TYPE override type of mmask_t
764 --with-ccharw-max=XXX override size CCHARW_MAX
765 --with-tparm-arg=TYPE override parameter type of tparm
766 --with-rcs-ids compile-in RCS identifiers
767 Options to Specify How Manpages are Installed:
768 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
769 optionally formatted/catonly, e.g., gzip,formatted
770 --with-manpage-renames specify manpage-renaming
771 --with-manpage-aliases specify manpage-aliases using .so
772 --with-manpage-symlinks specify manpage-aliases using symlinks
773 --with-manpage-tbl specify manpage processing with tbl
775 --disable-ext-funcs disable function-extensions
776 --enable-sp-funcs enable experimental SCREEN-extensions
777 --enable-term-driver enable experimental terminal-driver
778 --enable-const compile with extra/non-standard const
779 --enable-ext-colors compile for 256-color support
780 --enable-ext-mouse compile for extended mouse-encoding
781 --enable-no-padding compile with $NCURSES_NO_PADDING code
782 --enable-signed-char compile using signed Boolean's in term.h
783 --enable-sigwinch compile with SIGWINCH handler
784 --enable-tcap-names compile with user-definable terminal capabilities
786 --without-develop disable development options
787 --enable-hard-tabs compile with hard-tabs code
788 --enable-xmc-glitch compile with support for xmc (magic-cookie)
790 --disable-assumed-color do not assume anything about default-colors
791 --disable-hashmap compile without hashmap scrolling-optimization
792 --enable-colorfgbg compile-in experimental $COLORFGBG code
793 --enable-interop compile-in experimental interop bindings
794 --with-pthread use POSIX thread library
795 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
796 --enable-weak-symbols enable weak-symbols for pthreads
797 --enable-reentrant compile with experimental reentrant code
798 --with-wrap-prefix=XXX override prefix used for public variables
799 --enable-safe-sprintf compile with experimental safe-sprintf code
800 --disable-scroll-hints compile without scroll-hints code
801 --enable-wgetch-events compile with experimental wgetch-events code
802 Testing/development Options:
803 --enable-echo build: display "compiling" commands (default)
804 --enable-warnings build: turn on GCC compiler warnings
805 --enable-string-hacks work around bogus compiler/loader warnings
806 --enable-assertions test: turn on generation of assertion code
807 --with-dmalloc test: use Gray Watson's dmalloc library
808 --with-dbmalloc test: use Conor Cahill's dbmalloc library
809 --with-valgrind test: use valgrind
810 --disable-leaks test: free permanent memory, analyze leaks
811 --enable-expanded test: generate functions for certain macros
812 --disable-macros test: use functions rather than macros
813 --with-trace test: add trace() function to all models of ncurses
814 Ada95 Binding Options:
815 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
816 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
817 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
818 --with-ada-sharedlib=XX build Ada95 shared-library
820 Some influential environment variables:
821 CC C compiler command
822 CFLAGS C compiler flags
823 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
824 nonstandard directory <lib dir>
825 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
826 headers in a nonstandard directory <include dir>
828 CXX C++ compiler command
829 CXXFLAGS C++ compiler flags
830 CXXCPP C++ preprocessor
832 Use these variables to override the choices made by `configure' or to help
833 it to find libraries and programs with nonstandard names/locations.
838 if test "$ac_init_help" = "recursive"; then
839 # If there are subdirs, report their specific --help.
841 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
843 # A "../" for each directory in /$ac_subdir.
844 ac_dots=`echo $ac_subdir |
845 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
848 .) # No --srcdir option. We are building in place.
849 ac_sub_srcdir=$srcdir ;;
850 [\\/]* | ?:[\\/]* ) # Absolute path.
851 ac_sub_srcdir=$srcdir/$ac_subdir ;;
853 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
856 # Check for guested configure; otherwise get Cygnus style configure.
857 if test -f $ac_sub_srcdir/configure.gnu; then
859 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
860 elif test -f $ac_sub_srcdir/configure; then
862 $SHELL $ac_sub_srcdir/configure --help=recursive
863 elif test -f $ac_sub_srcdir/configure.ac ||
864 test -f $ac_sub_srcdir/configure.in; then
868 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
874 test -n "$ac_init_help" && exit 0
875 if $ac_init_version; then
878 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
879 Free Software Foundation, Inc.
880 This configure script is free software; the Free Software Foundation
881 gives unlimited permission to copy, distribute and modify it.
887 This file contains any messages produced by compilers while
888 running configure, to aid debugging if configure makes a mistake.
890 It was created by $as_me, which was
891 generated by GNU Autoconf 2.52.20101002. Invocation command line was
902 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
903 uname -m = `(uname -m) 2>/dev/null || echo unknown`
904 uname -r = `(uname -r) 2>/dev/null || echo unknown`
905 uname -s = `(uname -s) 2>/dev/null || echo unknown`
906 uname -v = `(uname -v) 2>/dev/null || echo unknown`
908 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
909 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
911 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
912 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
913 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
914 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
915 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
916 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
917 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
931 # Keep a trace of the command line.
932 # Strip out --no-create and --no-recursion so they do not pile up.
933 # Also quote any args containing shell meta-characters.
939 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
940 | --no-cr | --no-c) ;;
941 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
942 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
943 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
944 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
945 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
947 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
950 # Get rid of the leading space.
953 # When interrupted or exit'd, cleanup temporary files, and complete
954 # config.log. We remove comments because anyway the quotes in there
955 # would cause problems or look ugly.
957 # Save into config.log some information that might help in debugging.
959 echo "## ----------------- ##" >&5
960 echo "## Cache variables. ##" >&5
961 echo "## ----------------- ##" >&5
963 # The following way of writing the cache mishandles newlines in values,
966 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
969 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
970 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
974 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
978 sed "/^$/d" confdefs.h >conftest.log
979 if test -s conftest.log; then
981 echo "## ------------ ##" >&5
982 echo "## confdefs.h. ##" >&5
983 echo "## ------------ ##" >&5
988 test "$ac_signal" != 0 &&
989 echo "$as_me: caught signal $ac_signal" >&5
990 echo "$as_me: exit $exit_status" >&5
991 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
994 for ac_signal in 1 2 13 15; do
995 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
999 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1000 rm -rf conftest* confdefs.h
1001 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1004 # Let the site file select an alternate cache file if it wants to.
1005 # Prefer explicitly selected file to automatically selected ones.
1006 if test -z "$CONFIG_SITE"; then
1007 if test "x$prefix" != xNONE; then
1008 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1010 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1013 for ac_site_file in $CONFIG_SITE; do
1014 if test -r "$ac_site_file"; then
1015 { echo "$as_me:1015: loading site script $ac_site_file" >&5
1016 echo "$as_me: loading site script $ac_site_file" >&6;}
1017 cat "$ac_site_file" >&5
1022 if test -r "$cache_file"; then
1023 # Some versions of bash will fail to source /dev/null (special
1024 # files actually), so we avoid doing that.
1025 if test -f "$cache_file"; then
1026 { echo "$as_me:1026: loading cache $cache_file" >&5
1027 echo "$as_me: loading cache $cache_file" >&6;}
1029 [\\/]* | ?:[\\/]* ) . $cache_file;;
1030 *) . ./$cache_file;;
1034 { echo "$as_me:1034: creating cache $cache_file" >&5
1035 echo "$as_me: creating cache $cache_file" >&6;}
1039 # Check that the precious variables saved in the cache have kept the same
1041 ac_cache_corrupted=false
1042 for ac_var in `(set) 2>&1 |
1043 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1044 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1045 eval ac_new_set=\$ac_env_${ac_var}_set
1046 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1047 eval ac_new_val="\$ac_env_${ac_var}_value"
1048 case $ac_old_set,$ac_new_set in
1050 { echo "$as_me:1050: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1051 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1052 ac_cache_corrupted=: ;;
1054 { echo "$as_me:1054: error: \`$ac_var' was not set in the previous run" >&5
1055 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1056 ac_cache_corrupted=: ;;
1059 if test "x$ac_old_val" != "x$ac_new_val"; then
1060 { echo "$as_me:1060: error: \`$ac_var' has changed since the previous run:" >&5
1061 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1062 { echo "$as_me:1062: former value: $ac_old_val" >&5
1063 echo "$as_me: former value: $ac_old_val" >&2;}
1064 { echo "$as_me:1064: current value: $ac_new_val" >&5
1065 echo "$as_me: current value: $ac_new_val" >&2;}
1066 ac_cache_corrupted=:
1069 # Pass precious variables to config.status. It doesn't matter if
1070 # we pass some twice (in addition to the command line arguments).
1071 if test "$ac_new_set" = set; then
1073 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1074 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1075 ac_configure_args="$ac_configure_args '$ac_arg'"
1077 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1082 if $ac_cache_corrupted; then
1083 { echo "$as_me:1083: error: changes in the environment can compromise the build" >&5
1084 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1085 { { echo "$as_me:1085: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1086 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1087 { (exit 1); exit 1; }; }
1091 ac_cpp='$CPP $CPPFLAGS'
1092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1095 ac_main_return=return
1097 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1098 *c*,-n*) ECHO_N= ECHO_C='
1100 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1101 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1103 echo "#! $SHELL" >conftest.sh
1104 echo "exit 0" >>conftest.sh
1105 chmod +x conftest.sh
1106 if { (echo "$as_me:1106: PATH=\".;.\"; conftest.sh") >&5
1107 (PATH=".;."; conftest.sh) 2>&5
1109 echo "$as_me:1109: \$? = $ac_status" >&5
1110 (exit $ac_status); }; then
1111 ac_path_separator=';'
1115 PATH_SEPARATOR="$ac_path_separator"
1118 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1122 echo "$as_me:1122: checking for egrep" >&5
1123 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1124 if test "${ac_cv_prog_egrep+set}" = set; then
1125 echo $ECHO_N "(cached) $ECHO_C" >&6
1127 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1128 then ac_cv_prog_egrep='grep -E'
1129 else ac_cv_prog_egrep='egrep'
1132 echo "$as_me:1132: result: $ac_cv_prog_egrep" >&5
1133 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1134 EGREP=$ac_cv_prog_egrep
1136 test -z "$EGREP" && { { echo "$as_me:1136: error: No egrep program found" >&5
1137 echo "$as_me: error: No egrep program found" >&2;}
1138 { (exit 1); exit 1; }; }
1140 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1141 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1142 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1143 cf_cv_abi_version=${NCURSES_MAJOR}
1144 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1145 cf_cv_timestamp=`date`
1146 echo "$as_me:1146: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1147 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1149 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1151 # Check whether --with-rel-version or --without-rel-version was given.
1152 if test "${with_rel_version+set}" = set; then
1153 withval="$with_rel_version"
1154 { echo "$as_me:1154: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1155 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1156 cf_cv_rel_version=$withval
1159 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1160 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1162 if test -n "$NCURSES_MAJOR" ; then
1163 case $NCURSES_MAJOR in #(vi
1167 { { echo "$as_me:1167: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1168 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1169 { (exit 1); exit 1; }; }
1173 { { echo "$as_me:1173: error: Release major-version value is empty" >&5
1174 echo "$as_me: error: Release major-version value is empty" >&2;}
1175 { (exit 1); exit 1; }; }
1178 if test -n "$NCURSES_MINOR" ; then
1179 case $NCURSES_MINOR in #(vi
1183 { { echo "$as_me:1183: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1184 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1185 { (exit 1); exit 1; }; }
1189 { { echo "$as_me:1189: error: Release minor-version value is empty" >&5
1190 echo "$as_me: error: Release minor-version value is empty" >&2;}
1191 { (exit 1); exit 1; }; }
1194 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1196 # Check whether --with-abi-version or --without-abi-version was given.
1197 if test "${with_abi_version+set}" = set; then
1198 withval="$with_abi_version"
1199 { echo "$as_me:1199: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1200 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1201 cf_cv_abi_version=$withval
1204 if test -n "$cf_cv_abi_version" ; then
1205 case $cf_cv_abi_version in #(vi
1209 { { echo "$as_me:1209: error: ABI version is not a number: $cf_cv_abi_version" >&5
1210 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1211 { (exit 1); exit 1; }; }
1215 { { echo "$as_me:1215: error: ABI version value is empty" >&5
1216 echo "$as_me: error: ABI version value is empty" >&2;}
1217 { (exit 1); exit 1; }; }
1221 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1222 if test -f $ac_dir/install-sh; then
1224 ac_install_sh="$ac_aux_dir/install-sh -c"
1226 elif test -f $ac_dir/install.sh; then
1228 ac_install_sh="$ac_aux_dir/install.sh -c"
1230 elif test -f $ac_dir/shtool; then
1232 ac_install_sh="$ac_aux_dir/shtool install -c"
1236 if test -z "$ac_aux_dir"; then
1237 { { echo "$as_me:1237: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1238 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1239 { (exit 1); exit 1; }; }
1241 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1242 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1243 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1245 # Make sure we can run config.sub.
1246 $ac_config_sub sun4 >/dev/null 2>&1 ||
1247 { { echo "$as_me:1247: error: cannot run $ac_config_sub" >&5
1248 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1249 { (exit 1); exit 1; }; }
1251 echo "$as_me:1251: checking build system type" >&5
1252 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1253 if test "${ac_cv_build+set}" = set; then
1254 echo $ECHO_N "(cached) $ECHO_C" >&6
1256 ac_cv_build_alias=$build_alias
1257 test -z "$ac_cv_build_alias" &&
1258 ac_cv_build_alias=`$ac_config_guess`
1259 test -z "$ac_cv_build_alias" &&
1260 { { echo "$as_me:1260: error: cannot guess build type; you must specify one" >&5
1261 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1262 { (exit 1); exit 1; }; }
1263 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1264 { { echo "$as_me:1264: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1265 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1266 { (exit 1); exit 1; }; }
1269 echo "$as_me:1269: result: $ac_cv_build" >&5
1270 echo "${ECHO_T}$ac_cv_build" >&6
1272 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1273 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1274 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1276 echo "$as_me:1276: checking host system type" >&5
1277 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1278 if test "${ac_cv_host+set}" = set; then
1279 echo $ECHO_N "(cached) $ECHO_C" >&6
1281 ac_cv_host_alias=$host_alias
1282 test -z "$ac_cv_host_alias" &&
1283 ac_cv_host_alias=$ac_cv_build_alias
1284 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1285 { { echo "$as_me:1285: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1286 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1287 { (exit 1); exit 1; }; }
1290 echo "$as_me:1290: result: $ac_cv_host" >&5
1291 echo "${ECHO_T}$ac_cv_host" >&6
1293 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1294 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1295 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1297 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1298 echo "$as_me:1298: checking target system type" >&5
1299 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1300 if test "${ac_cv_target+set}" = set; then
1301 echo $ECHO_N "(cached) $ECHO_C" >&6
1303 ac_cv_target_alias=$target_alias
1304 test "x$ac_cv_target_alias" = "x" &&
1305 ac_cv_target_alias=$ac_cv_host_alias
1306 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1307 { { echo "$as_me:1307: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1308 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1309 { (exit 1); exit 1; }; }
1312 echo "$as_me:1312: result: $ac_cv_target" >&5
1313 echo "${ECHO_T}$ac_cv_target" >&6
1314 target=$ac_cv_target
1315 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1316 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1317 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1319 # The aliases save the names the user supplied, while $host etc.
1320 # will get canonicalized.
1321 test -n "$target_alias" &&
1322 test "$program_prefix$program_suffix$program_transform_name" = \
1324 program_prefix=${target_alias}-
1325 system_name="$host_os"
1327 system_name="`(uname -s -r) 2>/dev/null`"
1328 if test -z "$system_name" ; then
1329 system_name="`(hostname) 2>/dev/null`"
1332 test -n "$system_name" && cat >>confdefs.h <<EOF
1333 #define SYSTEM_NAME "$system_name"
1336 if test "${cf_cv_system_name+set}" = set; then
1337 echo $ECHO_N "(cached) $ECHO_C" >&6
1339 cf_cv_system_name="$system_name"
1342 test -z "$system_name" && system_name="$cf_cv_system_name"
1343 test -n "$cf_cv_system_name" && echo "$as_me:1343: result: Configuring for $cf_cv_system_name" >&5
1344 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1346 if test ".$system_name" != ".$cf_cv_system_name" ; then
1347 echo "$as_me:1347: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1348 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1349 { { echo "$as_me:1349: error: \"Please remove config.cache and try again.\"" >&5
1350 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1351 { (exit 1); exit 1; }; }
1354 # Check whether --with-system-type or --without-system-type was given.
1355 if test "${with_system_type+set}" = set; then
1356 withval="$with_system_type"
1357 { echo "$as_me:1357: WARNING: overriding system type to $withval" >&5
1358 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1359 cf_cv_system_name=$withval
1362 ### Save the given $CFLAGS to allow user-override.
1363 cf_user_CFLAGS="$CFLAGS"
1365 ### Default install-location
1367 echo "$as_me:1367: checking for prefix" >&5
1368 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1369 if test "x$prefix" = "xNONE" ; then
1370 case "$cf_cv_system_name" in
1371 # non-vendor systems don't have a conflict
1372 openbsd*|freebsd*|mirbsd*|linux*|cygwin*|k*bsd*-gnu)
1375 *) prefix=$ac_default_prefix
1379 echo "$as_me:1379: result: $prefix" >&5
1380 echo "${ECHO_T}$prefix" >&6
1382 if test "x$prefix" = "xNONE" ; then
1383 echo "$as_me:1383: checking for default include-directory" >&5
1384 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1385 test -n "$verbose" && echo 1>&6
1388 $includedir/ncurses \
1390 $prefix/include/ncurses \
1391 /usr/local/include \
1392 /usr/local/include/ncurses \
1394 /usr/include/ncurses
1396 cf_dir=`eval echo $cf_symbol`
1397 if test -f $cf_dir/curses.h ; then
1398 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1399 includedir="$cf_symbol"
1400 test -n "$verbose" && echo $ac_n " found " 1>&6
1404 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1406 echo "$as_me:1406: result: $includedir" >&5
1407 echo "${ECHO_T}$includedir" >&6
1410 ### Checks for programs.
1412 ac_cpp='$CPP $CPPFLAGS'
1413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1416 ac_main_return=return
1417 if test -n "$ac_tool_prefix"; then
1418 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1419 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1420 echo "$as_me:1420: checking for $ac_word" >&5
1421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1422 if test "${ac_cv_prog_CC+set}" = set; then
1423 echo $ECHO_N "(cached) $ECHO_C" >&6
1425 if test -n "$CC"; then
1426 ac_cv_prog_CC="$CC" # Let the user override the test.
1428 ac_save_IFS=$IFS; IFS=$ac_path_separator
1430 for ac_dir in $ac_dummy; do
1432 test -z "$ac_dir" && ac_dir=.
1433 $as_executable_p "$ac_dir/$ac_word" || continue
1434 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1435 echo "$as_me:1435: found $ac_dir/$ac_word" >&5
1442 if test -n "$CC"; then
1443 echo "$as_me:1443: result: $CC" >&5
1444 echo "${ECHO_T}$CC" >&6
1446 echo "$as_me:1446: result: no" >&5
1447 echo "${ECHO_T}no" >&6
1451 if test -z "$ac_cv_prog_CC"; then
1453 # Extract the first word of "gcc", so it can be a program name with args.
1454 set dummy gcc; ac_word=$2
1455 echo "$as_me:1455: checking for $ac_word" >&5
1456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1457 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1458 echo $ECHO_N "(cached) $ECHO_C" >&6
1460 if test -n "$ac_ct_CC"; then
1461 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1463 ac_save_IFS=$IFS; IFS=$ac_path_separator
1465 for ac_dir in $ac_dummy; do
1467 test -z "$ac_dir" && ac_dir=.
1468 $as_executable_p "$ac_dir/$ac_word" || continue
1469 ac_cv_prog_ac_ct_CC="gcc"
1470 echo "$as_me:1470: found $ac_dir/$ac_word" >&5
1476 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1477 if test -n "$ac_ct_CC"; then
1478 echo "$as_me:1478: result: $ac_ct_CC" >&5
1479 echo "${ECHO_T}$ac_ct_CC" >&6
1481 echo "$as_me:1481: result: no" >&5
1482 echo "${ECHO_T}no" >&6
1490 if test -z "$CC"; then
1491 if test -n "$ac_tool_prefix"; then
1492 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1493 set dummy ${ac_tool_prefix}cc; ac_word=$2
1494 echo "$as_me:1494: checking for $ac_word" >&5
1495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1496 if test "${ac_cv_prog_CC+set}" = set; then
1497 echo $ECHO_N "(cached) $ECHO_C" >&6
1499 if test -n "$CC"; then
1500 ac_cv_prog_CC="$CC" # Let the user override the test.
1502 ac_save_IFS=$IFS; IFS=$ac_path_separator
1504 for ac_dir in $ac_dummy; do
1506 test -z "$ac_dir" && ac_dir=.
1507 $as_executable_p "$ac_dir/$ac_word" || continue
1508 ac_cv_prog_CC="${ac_tool_prefix}cc"
1509 echo "$as_me:1509: found $ac_dir/$ac_word" >&5
1516 if test -n "$CC"; then
1517 echo "$as_me:1517: result: $CC" >&5
1518 echo "${ECHO_T}$CC" >&6
1520 echo "$as_me:1520: result: no" >&5
1521 echo "${ECHO_T}no" >&6
1525 if test -z "$ac_cv_prog_CC"; then
1527 # Extract the first word of "cc", so it can be a program name with args.
1528 set dummy cc; ac_word=$2
1529 echo "$as_me:1529: checking for $ac_word" >&5
1530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1531 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1532 echo $ECHO_N "(cached) $ECHO_C" >&6
1534 if test -n "$ac_ct_CC"; then
1535 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1537 ac_save_IFS=$IFS; IFS=$ac_path_separator
1539 for ac_dir in $ac_dummy; do
1541 test -z "$ac_dir" && ac_dir=.
1542 $as_executable_p "$ac_dir/$ac_word" || continue
1543 ac_cv_prog_ac_ct_CC="cc"
1544 echo "$as_me:1544: found $ac_dir/$ac_word" >&5
1550 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1551 if test -n "$ac_ct_CC"; then
1552 echo "$as_me:1552: result: $ac_ct_CC" >&5
1553 echo "${ECHO_T}$ac_ct_CC" >&6
1555 echo "$as_me:1555: result: no" >&5
1556 echo "${ECHO_T}no" >&6
1565 if test -z "$CC"; then
1566 # Extract the first word of "cc", so it can be a program name with args.
1567 set dummy cc; ac_word=$2
1568 echo "$as_me:1568: checking for $ac_word" >&5
1569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1570 if test "${ac_cv_prog_CC+set}" = set; then
1571 echo $ECHO_N "(cached) $ECHO_C" >&6
1573 if test -n "$CC"; then
1574 ac_cv_prog_CC="$CC" # Let the user override the test.
1577 ac_save_IFS=$IFS; IFS=$ac_path_separator
1579 for ac_dir in $ac_dummy; do
1581 test -z "$ac_dir" && ac_dir=.
1582 $as_executable_p "$ac_dir/$ac_word" || continue
1583 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1584 ac_prog_rejected=yes
1588 echo "$as_me:1588: found $ac_dir/$ac_word" >&5
1592 if test $ac_prog_rejected = yes; then
1593 # We found a bogon in the path, so make sure we never use it.
1594 set dummy $ac_cv_prog_CC
1596 if test $# != 0; then
1597 # We chose a different compiler from the bogus one.
1598 # However, it has the same basename, so the bogon will be chosen
1599 # first if we set CC to just the basename; use the full file name.
1601 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1609 if test -n "$CC"; then
1610 echo "$as_me:1610: result: $CC" >&5
1611 echo "${ECHO_T}$CC" >&6
1613 echo "$as_me:1613: result: no" >&5
1614 echo "${ECHO_T}no" >&6
1618 if test -z "$CC"; then
1619 if test -n "$ac_tool_prefix"; then
1622 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1623 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1624 echo "$as_me:1624: checking for $ac_word" >&5
1625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1626 if test "${ac_cv_prog_CC+set}" = set; then
1627 echo $ECHO_N "(cached) $ECHO_C" >&6
1629 if test -n "$CC"; then
1630 ac_cv_prog_CC="$CC" # Let the user override the test.
1632 ac_save_IFS=$IFS; IFS=$ac_path_separator
1634 for ac_dir in $ac_dummy; do
1636 test -z "$ac_dir" && ac_dir=.
1637 $as_executable_p "$ac_dir/$ac_word" || continue
1638 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1639 echo "$as_me:1639: found $ac_dir/$ac_word" >&5
1646 if test -n "$CC"; then
1647 echo "$as_me:1647: result: $CC" >&5
1648 echo "${ECHO_T}$CC" >&6
1650 echo "$as_me:1650: result: no" >&5
1651 echo "${ECHO_T}no" >&6
1654 test -n "$CC" && break
1657 if test -z "$CC"; then
1661 # Extract the first word of "$ac_prog", so it can be a program name with args.
1662 set dummy $ac_prog; ac_word=$2
1663 echo "$as_me:1663: checking for $ac_word" >&5
1664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1665 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1666 echo $ECHO_N "(cached) $ECHO_C" >&6
1668 if test -n "$ac_ct_CC"; then
1669 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1671 ac_save_IFS=$IFS; IFS=$ac_path_separator
1673 for ac_dir in $ac_dummy; do
1675 test -z "$ac_dir" && ac_dir=.
1676 $as_executable_p "$ac_dir/$ac_word" || continue
1677 ac_cv_prog_ac_ct_CC="$ac_prog"
1678 echo "$as_me:1678: found $ac_dir/$ac_word" >&5
1684 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1685 if test -n "$ac_ct_CC"; then
1686 echo "$as_me:1686: result: $ac_ct_CC" >&5
1687 echo "${ECHO_T}$ac_ct_CC" >&6
1689 echo "$as_me:1689: result: no" >&5
1690 echo "${ECHO_T}no" >&6
1693 test -n "$ac_ct_CC" && break
1701 test -z "$CC" && { { echo "$as_me:1701: error: no acceptable cc found in \$PATH" >&5
1702 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1703 { (exit 1); exit 1; }; }
1705 # Provide some information about the compiler.
1706 echo "$as_me:1706:" \
1707 "checking for C compiler version" >&5
1708 ac_compiler=`set X $ac_compile; echo $2`
1709 { (eval echo "$as_me:1709: \"$ac_compiler --version </dev/null >&5\"") >&5
1710 (eval $ac_compiler --version </dev/null >&5) 2>&5
1712 echo "$as_me:1712: \$? = $ac_status" >&5
1713 (exit $ac_status); }
1714 { (eval echo "$as_me:1714: \"$ac_compiler -v </dev/null >&5\"") >&5
1715 (eval $ac_compiler -v </dev/null >&5) 2>&5
1717 echo "$as_me:1717: \$? = $ac_status" >&5
1718 (exit $ac_status); }
1719 { (eval echo "$as_me:1719: \"$ac_compiler -V </dev/null >&5\"") >&5
1720 (eval $ac_compiler -V </dev/null >&5) 2>&5
1722 echo "$as_me:1722: \$? = $ac_status" >&5
1723 (exit $ac_status); }
1725 cat >conftest.$ac_ext <<_ACEOF
1726 #line 1726 "configure"
1727 #include "confdefs.h"
1737 ac_clean_files_save=$ac_clean_files
1738 ac_clean_files="$ac_clean_files a.out a.exe"
1739 # Try to create an executable without -o first, disregard a.out.
1740 # It will help us diagnose broken compilers, and finding out an intuition
1742 echo "$as_me:1742: checking for C compiler default output" >&5
1743 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1744 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1745 if { (eval echo "$as_me:1745: \"$ac_link_default\"") >&5
1746 (eval $ac_link_default) 2>&5
1748 echo "$as_me:1748: \$? = $ac_status" >&5
1749 (exit $ac_status); }; then
1750 # Find the output, starting from the most likely. This scheme is
1751 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1753 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1754 ls a.out conftest 2>/dev/null;
1755 ls a.* conftest.* 2>/dev/null`; do
1757 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1758 a.out ) # We found the default executable, but exeext='' is most
1761 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1762 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1769 echo "$as_me: failed program was:" >&5
1770 cat conftest.$ac_ext >&5
1771 { { echo "$as_me:1771: error: C compiler cannot create executables" >&5
1772 echo "$as_me: error: C compiler cannot create executables" >&2;}
1773 { (exit 77); exit 77; }; }
1776 ac_exeext=$ac_cv_exeext
1777 echo "$as_me:1777: result: $ac_file" >&5
1778 echo "${ECHO_T}$ac_file" >&6
1780 # Check the compiler produces executables we can run. If not, either
1781 # the compiler is broken, or we cross compile.
1782 echo "$as_me:1782: checking whether the C compiler works" >&5
1783 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1784 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1785 # If not cross compiling, check that we can run a simple program.
1786 if test "$cross_compiling" != yes; then
1787 if { ac_try='./$ac_file'
1788 { (eval echo "$as_me:1788: \"$ac_try\"") >&5
1791 echo "$as_me:1791: \$? = $ac_status" >&5
1792 (exit $ac_status); }; }; then
1795 if test "$cross_compiling" = maybe; then
1798 { { echo "$as_me:1798: error: cannot run C compiled programs.
1799 If you meant to cross compile, use \`--host'." >&5
1800 echo "$as_me: error: cannot run C compiled programs.
1801 If you meant to cross compile, use \`--host'." >&2;}
1802 { (exit 1); exit 1; }; }
1806 echo "$as_me:1806: result: yes" >&5
1807 echo "${ECHO_T}yes" >&6
1809 rm -f a.out a.exe conftest$ac_cv_exeext
1810 ac_clean_files=$ac_clean_files_save
1811 # Check the compiler produces executables we can run. If not, either
1812 # the compiler is broken, or we cross compile.
1813 echo "$as_me:1813: checking whether we are cross compiling" >&5
1814 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1815 echo "$as_me:1815: result: $cross_compiling" >&5
1816 echo "${ECHO_T}$cross_compiling" >&6
1818 echo "$as_me:1818: checking for executable suffix" >&5
1819 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1820 if { (eval echo "$as_me:1820: \"$ac_link\"") >&5
1821 (eval $ac_link) 2>&5
1823 echo "$as_me:1823: \$? = $ac_status" >&5
1824 (exit $ac_status); }; then
1825 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1826 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1827 # work properly (i.e., refer to `conftest.exe'), while it won't with
1829 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1831 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1832 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1839 { { echo "$as_me:1839: error: cannot compute EXEEXT: cannot compile and link" >&5
1840 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1841 { (exit 1); exit 1; }; }
1844 rm -f conftest$ac_cv_exeext
1845 echo "$as_me:1845: result: $ac_cv_exeext" >&5
1846 echo "${ECHO_T}$ac_cv_exeext" >&6
1848 rm -f conftest.$ac_ext
1849 EXEEXT=$ac_cv_exeext
1851 echo "$as_me:1851: checking for object suffix" >&5
1852 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1853 if test "${ac_cv_objext+set}" = set; then
1854 echo $ECHO_N "(cached) $ECHO_C" >&6
1856 cat >conftest.$ac_ext <<_ACEOF
1857 #line 1857 "configure"
1858 #include "confdefs.h"
1868 rm -f conftest.o conftest.obj
1869 if { (eval echo "$as_me:1869: \"$ac_compile\"") >&5
1870 (eval $ac_compile) 2>&5
1872 echo "$as_me:1872: \$? = $ac_status" >&5
1873 (exit $ac_status); }; then
1874 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1876 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1877 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1882 echo "$as_me: failed program was:" >&5
1883 cat conftest.$ac_ext >&5
1884 { { echo "$as_me:1884: error: cannot compute OBJEXT: cannot compile" >&5
1885 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1886 { (exit 1); exit 1; }; }
1889 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1891 echo "$as_me:1891: result: $ac_cv_objext" >&5
1892 echo "${ECHO_T}$ac_cv_objext" >&6
1893 OBJEXT=$ac_cv_objext
1895 echo "$as_me:1895: checking whether we are using the GNU C compiler" >&5
1896 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1897 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1898 echo $ECHO_N "(cached) $ECHO_C" >&6
1900 cat >conftest.$ac_ext <<_ACEOF
1901 #line 1901 "configure"
1902 #include "confdefs.h"
1915 rm -f conftest.$ac_objext
1916 if { (eval echo "$as_me:1916: \"$ac_compile\"") >&5
1917 (eval $ac_compile) 2>&5
1919 echo "$as_me:1919: \$? = $ac_status" >&5
1920 (exit $ac_status); } &&
1921 { ac_try='test -s conftest.$ac_objext'
1922 { (eval echo "$as_me:1922: \"$ac_try\"") >&5
1925 echo "$as_me:1925: \$? = $ac_status" >&5
1926 (exit $ac_status); }; }; then
1929 echo "$as_me: failed program was:" >&5
1930 cat conftest.$ac_ext >&5
1933 rm -f conftest.$ac_objext conftest.$ac_ext
1934 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1937 echo "$as_me:1937: result: $ac_cv_c_compiler_gnu" >&5
1938 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1939 GCC=`test $ac_compiler_gnu = yes && echo yes`
1940 ac_test_CFLAGS=${CFLAGS+set}
1941 ac_save_CFLAGS=$CFLAGS
1943 echo "$as_me:1943: checking whether $CC accepts -g" >&5
1944 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1945 if test "${ac_cv_prog_cc_g+set}" = set; then
1946 echo $ECHO_N "(cached) $ECHO_C" >&6
1948 cat >conftest.$ac_ext <<_ACEOF
1949 #line 1949 "configure"
1950 #include "confdefs.h"
1960 rm -f conftest.$ac_objext
1961 if { (eval echo "$as_me:1961: \"$ac_compile\"") >&5
1962 (eval $ac_compile) 2>&5
1964 echo "$as_me:1964: \$? = $ac_status" >&5
1965 (exit $ac_status); } &&
1966 { ac_try='test -s conftest.$ac_objext'
1967 { (eval echo "$as_me:1967: \"$ac_try\"") >&5
1970 echo "$as_me:1970: \$? = $ac_status" >&5
1971 (exit $ac_status); }; }; then
1974 echo "$as_me: failed program was:" >&5
1975 cat conftest.$ac_ext >&5
1978 rm -f conftest.$ac_objext conftest.$ac_ext
1980 echo "$as_me:1980: result: $ac_cv_prog_cc_g" >&5
1981 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1982 if test "$ac_test_CFLAGS" = set; then
1983 CFLAGS=$ac_save_CFLAGS
1984 elif test $ac_cv_prog_cc_g = yes; then
1985 if test "$GCC" = yes; then
1991 if test "$GCC" = yes; then
1997 # Some people use a C++ compiler to compile C. Since we use `exit',
1998 # in C++ we need to declare it. In case someone uses the same compiler
1999 # for both compiling C and C++ we need to have the C++ compiler decide
2000 # the declaration of exit, since it's the most demanding environment.
2001 cat >conftest.$ac_ext <<_ACEOF
2006 rm -f conftest.$ac_objext
2007 if { (eval echo "$as_me:2007: \"$ac_compile\"") >&5
2008 (eval $ac_compile) 2>&5
2010 echo "$as_me:2010: \$? = $ac_status" >&5
2011 (exit $ac_status); } &&
2012 { ac_try='test -s conftest.$ac_objext'
2013 { (eval echo "$as_me:2013: \"$ac_try\"") >&5
2016 echo "$as_me:2016: \$? = $ac_status" >&5
2017 (exit $ac_status); }; }; then
2018 for ac_declaration in \
2020 '#include <stdlib.h>' \
2021 'extern "C" void std::exit (int) throw (); using std::exit;' \
2022 'extern "C" void std::exit (int); using std::exit;' \
2023 'extern "C" void exit (int) throw ();' \
2024 'extern "C" void exit (int);' \
2027 cat >conftest.$ac_ext <<_ACEOF
2028 #line 2028 "configure"
2029 #include "confdefs.h"
2040 rm -f conftest.$ac_objext
2041 if { (eval echo "$as_me:2041: \"$ac_compile\"") >&5
2042 (eval $ac_compile) 2>&5
2044 echo "$as_me:2044: \$? = $ac_status" >&5
2045 (exit $ac_status); } &&
2046 { ac_try='test -s conftest.$ac_objext'
2047 { (eval echo "$as_me:2047: \"$ac_try\"") >&5
2050 echo "$as_me:2050: \$? = $ac_status" >&5
2051 (exit $ac_status); }; }; then
2054 echo "$as_me: failed program was:" >&5
2055 cat conftest.$ac_ext >&5
2058 rm -f conftest.$ac_objext conftest.$ac_ext
2059 cat >conftest.$ac_ext <<_ACEOF
2060 #line 2060 "configure"
2061 #include "confdefs.h"
2071 rm -f conftest.$ac_objext
2072 if { (eval echo "$as_me:2072: \"$ac_compile\"") >&5
2073 (eval $ac_compile) 2>&5
2075 echo "$as_me:2075: \$? = $ac_status" >&5
2076 (exit $ac_status); } &&
2077 { ac_try='test -s conftest.$ac_objext'
2078 { (eval echo "$as_me:2078: \"$ac_try\"") >&5
2081 echo "$as_me:2081: \$? = $ac_status" >&5
2082 (exit $ac_status); }; }; then
2085 echo "$as_me: failed program was:" >&5
2086 cat conftest.$ac_ext >&5
2088 rm -f conftest.$ac_objext conftest.$ac_ext
2091 if test -n "$ac_declaration"; then
2092 echo '#ifdef __cplusplus' >>confdefs.h
2093 echo $ac_declaration >>confdefs.h
2094 echo '#endif' >>confdefs.h
2098 echo "$as_me: failed program was:" >&5
2099 cat conftest.$ac_ext >&5
2101 rm -f conftest.$ac_objext conftest.$ac_ext
2103 ac_cpp='$CPP $CPPFLAGS'
2104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2107 ac_main_return=return
2110 if test "$GCC" = yes ; then
2111 echo "$as_me:2111: checking version of $CC" >&5
2112 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2113 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2114 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2115 echo "$as_me:2115: result: $GCC_VERSION" >&5
2116 echo "${ECHO_T}$GCC_VERSION" >&6
2120 ac_cpp='$CPP $CPPFLAGS'
2121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2124 ac_main_return=return
2125 echo "$as_me:2125: checking how to run the C preprocessor" >&5
2126 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2127 # On Suns, sometimes $CPP names a directory.
2128 if test -n "$CPP" && test -d "$CPP"; then
2131 if test -z "$CPP"; then
2132 if test "${ac_cv_prog_CPP+set}" = set; then
2133 echo $ECHO_N "(cached) $ECHO_C" >&6
2135 # Double quotes because CPP needs to be expanded
2136 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2139 for ac_c_preproc_warn_flag in '' yes
2141 # Use a header file that comes with gcc, so configuring glibc
2142 # with a fresh cross-compiler works.
2143 # On the NeXT, cc -E runs the code through the compiler's parser,
2144 # not just through cpp. "Syntax error" is here to catch this case.
2145 cat >conftest.$ac_ext <<_ACEOF
2146 #line 2146 "configure"
2147 #include "confdefs.h"
2151 if { (eval echo "$as_me:2151: \"$ac_cpp conftest.$ac_ext\"") >&5
2152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2154 egrep -v '^ *\+' conftest.er1 >conftest.err
2156 cat conftest.err >&5
2157 echo "$as_me:2157: \$? = $ac_status" >&5
2158 (exit $ac_status); } >/dev/null; then
2159 if test -s conftest.err; then
2160 ac_cpp_err=$ac_c_preproc_warn_flag
2167 if test -z "$ac_cpp_err"; then
2170 echo "$as_me: failed program was:" >&5
2171 cat conftest.$ac_ext >&5
2172 # Broken: fails on valid input.
2175 rm -f conftest.err conftest.$ac_ext
2177 # OK, works on sane cases. Now check whether non-existent headers
2178 # can be detected and how.
2179 cat >conftest.$ac_ext <<_ACEOF
2180 #line 2180 "configure"
2181 #include "confdefs.h"
2182 #include <ac_nonexistent.h>
2184 if { (eval echo "$as_me:2184: \"$ac_cpp conftest.$ac_ext\"") >&5
2185 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2187 egrep -v '^ *\+' conftest.er1 >conftest.err
2189 cat conftest.err >&5
2190 echo "$as_me:2190: \$? = $ac_status" >&5
2191 (exit $ac_status); } >/dev/null; then
2192 if test -s conftest.err; then
2193 ac_cpp_err=$ac_c_preproc_warn_flag
2200 if test -z "$ac_cpp_err"; then
2201 # Broken: success on invalid input.
2204 echo "$as_me: failed program was:" >&5
2205 cat conftest.$ac_ext >&5
2206 # Passes both tests.
2210 rm -f conftest.err conftest.$ac_ext
2213 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2214 rm -f conftest.err conftest.$ac_ext
2215 if $ac_preproc_ok; then
2227 echo "$as_me:2227: result: $CPP" >&5
2228 echo "${ECHO_T}$CPP" >&6
2230 for ac_c_preproc_warn_flag in '' yes
2232 # Use a header file that comes with gcc, so configuring glibc
2233 # with a fresh cross-compiler works.
2234 # On the NeXT, cc -E runs the code through the compiler's parser,
2235 # not just through cpp. "Syntax error" is here to catch this case.
2236 cat >conftest.$ac_ext <<_ACEOF
2237 #line 2237 "configure"
2238 #include "confdefs.h"
2242 if { (eval echo "$as_me:2242: \"$ac_cpp conftest.$ac_ext\"") >&5
2243 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2245 egrep -v '^ *\+' conftest.er1 >conftest.err
2247 cat conftest.err >&5
2248 echo "$as_me:2248: \$? = $ac_status" >&5
2249 (exit $ac_status); } >/dev/null; then
2250 if test -s conftest.err; then
2251 ac_cpp_err=$ac_c_preproc_warn_flag
2258 if test -z "$ac_cpp_err"; then
2261 echo "$as_me: failed program was:" >&5
2262 cat conftest.$ac_ext >&5
2263 # Broken: fails on valid input.
2266 rm -f conftest.err conftest.$ac_ext
2268 # OK, works on sane cases. Now check whether non-existent headers
2269 # can be detected and how.
2270 cat >conftest.$ac_ext <<_ACEOF
2271 #line 2271 "configure"
2272 #include "confdefs.h"
2273 #include <ac_nonexistent.h>
2275 if { (eval echo "$as_me:2275: \"$ac_cpp conftest.$ac_ext\"") >&5
2276 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2278 egrep -v '^ *\+' conftest.er1 >conftest.err
2280 cat conftest.err >&5
2281 echo "$as_me:2281: \$? = $ac_status" >&5
2282 (exit $ac_status); } >/dev/null; then
2283 if test -s conftest.err; then
2284 ac_cpp_err=$ac_c_preproc_warn_flag
2291 if test -z "$ac_cpp_err"; then
2292 # Broken: success on invalid input.
2295 echo "$as_me: failed program was:" >&5
2296 cat conftest.$ac_ext >&5
2297 # Passes both tests.
2301 rm -f conftest.err conftest.$ac_ext
2304 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2305 rm -f conftest.err conftest.$ac_ext
2306 if $ac_preproc_ok; then
2309 { { echo "$as_me:2309: error: C preprocessor \"$CPP\" fails sanity check" >&5
2310 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2311 { (exit 1); exit 1; }; }
2315 ac_cpp='$CPP $CPPFLAGS'
2316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2319 ac_main_return=return
2321 if test $ac_cv_c_compiler_gnu = yes; then
2322 echo "$as_me:2322: checking whether $CC needs -traditional" >&5
2323 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2324 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
2327 ac_pattern="Autoconf.*'x'"
2328 cat >conftest.$ac_ext <<_ACEOF
2329 #line 2329 "configure"
2330 #include "confdefs.h"
2332 int Autoconf = TIOCGETP;
2334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2335 egrep "$ac_pattern" >/dev/null 2>&1; then
2336 ac_cv_prog_gcc_traditional=yes
2338 ac_cv_prog_gcc_traditional=no
2342 if test $ac_cv_prog_gcc_traditional = no; then
2343 cat >conftest.$ac_ext <<_ACEOF
2344 #line 2344 "configure"
2345 #include "confdefs.h"
2347 int Autoconf = TCGETA;
2349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2350 egrep "$ac_pattern" >/dev/null 2>&1; then
2351 ac_cv_prog_gcc_traditional=yes
2357 echo "$as_me:2357: result: $ac_cv_prog_gcc_traditional" >&5
2358 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2359 if test $ac_cv_prog_gcc_traditional = yes; then
2360 CC="$CC -traditional"
2364 echo "$as_me:2364: checking whether $CC understands -c and -o together" >&5
2365 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2366 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2370 cat > conftest.$ac_ext <<CF_EOF
2374 ${cf_cv_main_return:-return}(0);
2377 # We do the test twice because some compilers refuse to overwrite an
2378 # existing .o file with -o, though they will create one.
2379 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2380 if { (eval echo "$as_me:2380: \"$ac_try\"") >&5
2383 echo "$as_me:2383: \$? = $ac_status" >&5
2384 (exit $ac_status); } &&
2385 test -f conftest2.$ac_objext && { (eval echo "$as_me:2385: \"$ac_try\"") >&5
2388 echo "$as_me:2388: \$? = $ac_status" >&5
2389 (exit $ac_status); };
2391 eval cf_cv_prog_CC_c_o=yes
2393 eval cf_cv_prog_CC_c_o=no
2398 if test $cf_cv_prog_CC_c_o = yes; then
2399 echo "$as_me:2399: result: yes" >&5
2400 echo "${ECHO_T}yes" >&6
2402 echo "$as_me:2402: result: no" >&5
2403 echo "${ECHO_T}no" >&6
2406 echo "$as_me:2406: checking for POSIXized ISC" >&5
2407 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2408 if test -d /etc/conf/kconfig.d &&
2409 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2411 echo "$as_me:2411: result: yes" >&5
2412 echo "${ECHO_T}yes" >&6
2413 ISC=yes # If later tests want to check for ISC.
2415 cat >>confdefs.h <<\EOF
2416 #define _POSIX_SOURCE 1
2419 if test "$GCC" = yes; then
2425 echo "$as_me:2425: result: no" >&5
2426 echo "${ECHO_T}no" >&6
2430 # This should have been defined by AC_PROG_CC
2433 # Check for user's environment-breakage by stuffing CFLAGS/CPPFLAGS content
2434 # into CC. This will not help with broken scripts that wrap the compiler with
2435 # options, but eliminates a more common category of user confusion.
2436 echo "$as_me:2436: checking \$CC variable" >&5
2437 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2440 echo "$as_me:2440: result: broken" >&5
2441 echo "${ECHO_T}broken" >&6
2442 { echo "$as_me:2442: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2443 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2445 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
2446 CC=`echo "$CC" | sed -e 's/[ ].*//'`
2451 cf_new_extra_cppflags=
2453 for cf_add_cflags in $cf_flags
2455 case $cf_fix_cppflags in
2457 case $cf_add_cflags in #(vi
2458 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2459 case $cf_add_cflags in
2461 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2463 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2464 && test -z "${cf_tst_cflags}" \
2465 && cf_fix_cppflags=yes
2467 if test $cf_fix_cppflags = yes ; then
2468 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2470 elif test "${cf_tst_cflags}" = "\"'" ; then
2471 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2477 *$cf_add_cflags) #(vi
2480 case $cf_add_cflags in #(vi
2482 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2484 CPPFLAGS=`echo "$CPPFLAGS" | \
2485 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2486 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2490 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2495 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2500 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2502 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2504 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2505 && test -z "${cf_tst_cflags}" \
2506 && cf_fix_cppflags=no
2511 if test -n "$cf_new_cflags" ; then
2513 CFLAGS="$CFLAGS $cf_new_cflags"
2516 if test -n "$cf_new_cppflags" ; then
2518 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2521 if test -n "$cf_new_extra_cppflags" ; then
2523 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2528 echo "$as_me:2528: result: ok" >&5
2529 echo "${ECHO_T}ok" >&6
2533 echo "$as_me:2533: checking for ${CC:-cc} option to accept ANSI C" >&5
2534 echo $ECHO_N "checking for ${CC:-cc} option to accept ANSI C... $ECHO_C" >&6
2535 if test "${cf_cv_ansi_cc+set}" = set; then
2536 echo $ECHO_N "(cached) $ECHO_C" >&6
2540 cf_save_CFLAGS="$CFLAGS"
2541 cf_save_CPPFLAGS="$CPPFLAGS"
2542 # Don't try gcc -ansi; that turns off useful extensions and
2543 # breaks some systems' header files.
2544 # AIX -qlanglvl=ansi
2545 # Ultrix and OSF/1 -std1
2546 # HP-UX -Aa -D_HPUX_SOURCE
2548 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2549 for cf_arg in "-DCC_HAS_PROTOS" \
2554 "-Aa -D_HPUX_SOURCE" \
2561 cf_new_extra_cppflags=
2563 for cf_add_cflags in $cf_arg
2565 case $cf_fix_cppflags in
2567 case $cf_add_cflags in #(vi
2568 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2569 case $cf_add_cflags in
2571 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2573 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2574 && test -z "${cf_tst_cflags}" \
2575 && cf_fix_cppflags=yes
2577 if test $cf_fix_cppflags = yes ; then
2578 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2580 elif test "${cf_tst_cflags}" = "\"'" ; then
2581 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2587 *$cf_add_cflags) #(vi
2590 case $cf_add_cflags in #(vi
2592 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2594 CPPFLAGS=`echo "$CPPFLAGS" | \
2595 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2596 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2600 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2605 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2610 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2612 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2614 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2615 && test -z "${cf_tst_cflags}" \
2616 && cf_fix_cppflags=no
2621 if test -n "$cf_new_cflags" ; then
2623 CFLAGS="$CFLAGS $cf_new_cflags"
2626 if test -n "$cf_new_cppflags" ; then
2628 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2631 if test -n "$cf_new_extra_cppflags" ; then
2633 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2636 cat >conftest.$ac_ext <<_ACEOF
2637 #line 2637 "configure"
2638 #include "confdefs.h"
2640 #ifndef CC_HAS_PROTOS
2641 #if !defined(__STDC__) || (__STDC__ != 1)
2650 int test (int i, double x);
2651 struct s1 {int (*f) (int a);};
2652 struct s2 {int (*f) (double a);};
2657 rm -f conftest.$ac_objext
2658 if { (eval echo "$as_me:2658: \"$ac_compile\"") >&5
2659 (eval $ac_compile) 2>&5
2661 echo "$as_me:2661: \$? = $ac_status" >&5
2662 (exit $ac_status); } &&
2663 { ac_try='test -s conftest.$ac_objext'
2664 { (eval echo "$as_me:2664: \"$ac_try\"") >&5
2667 echo "$as_me:2667: \$? = $ac_status" >&5
2668 (exit $ac_status); }; }; then
2669 cf_cv_ansi_cc="$cf_arg"; break
2671 echo "$as_me: failed program was:" >&5
2672 cat conftest.$ac_ext >&5
2674 rm -f conftest.$ac_objext conftest.$ac_ext
2676 CFLAGS="$cf_save_CFLAGS"
2677 CPPFLAGS="$cf_save_CPPFLAGS"
2680 echo "$as_me:2680: result: $cf_cv_ansi_cc" >&5
2681 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2683 if test "$cf_cv_ansi_cc" != "no"; then
2684 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2689 cf_new_extra_cppflags=
2691 for cf_add_cflags in $cf_cv_ansi_cc
2693 case $cf_fix_cppflags in
2695 case $cf_add_cflags in #(vi
2696 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2697 case $cf_add_cflags in
2699 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2701 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2702 && test -z "${cf_tst_cflags}" \
2703 && cf_fix_cppflags=yes
2705 if test $cf_fix_cppflags = yes ; then
2706 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2708 elif test "${cf_tst_cflags}" = "\"'" ; then
2709 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2715 *$cf_add_cflags) #(vi
2718 case $cf_add_cflags in #(vi
2720 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2722 CPPFLAGS=`echo "$CPPFLAGS" | \
2723 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2724 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2728 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2733 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2738 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2740 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2742 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2743 && test -z "${cf_tst_cflags}" \
2744 && cf_fix_cppflags=no
2749 if test -n "$cf_new_cflags" ; then
2751 CFLAGS="$CFLAGS $cf_new_cflags"
2754 if test -n "$cf_new_cppflags" ; then
2756 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2759 if test -n "$cf_new_extra_cppflags" ; then
2761 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2765 cat >>confdefs.h <<\EOF
2766 #define CC_HAS_PROTOS 1
2772 if test "$cf_cv_ansi_cc" = "no"; then
2773 { { echo "$as_me:2773: error: Your compiler does not appear to recognize prototypes.
2774 You have the following choices:
2775 a. adjust your compiler options
2776 b. get an up-to-date compiler
2777 c. use a wrapper such as unproto" >&5
2778 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2779 You have the following choices:
2780 a. adjust your compiler options
2781 b. get an up-to-date compiler
2782 c. use a wrapper such as unproto" >&2;}
2783 { (exit 1); exit 1; }; }
2786 case $cf_cv_system_name in
2788 CFLAGS="$CFLAGS -Zmt"
2789 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2790 CXXFLAGS="$CXXFLAGS -Zmt"
2791 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2792 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2799 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2800 #define PROG_EXT "$PROG_EXT"
2803 if test "$cross_compiling" = yes ; then
2806 case "$cf_cv_system_name" in #(vi
2807 dragonfly*|mirbsd*|freebsd*) #(vi
2808 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2810 *) LDPATH=$PATH:/sbin:/usr/sbin
2811 # Extract the first word of "ldconfig", so it can be a program name with args.
2812 set dummy ldconfig; ac_word=$2
2813 echo "$as_me:2813: checking for $ac_word" >&5
2814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2815 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2820 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2823 ac_save_IFS=$IFS; IFS=$ac_path_separator
2825 for ac_dir in $ac_dummy; do
2827 test -z "$ac_dir" && ac_dir=.
2828 if $as_executable_p "$ac_dir/$ac_word"; then
2829 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2830 echo "$as_me:2830: found $ac_dir/$ac_word" >&5
2838 LDCONFIG=$ac_cv_path_LDCONFIG
2840 if test -n "$LDCONFIG"; then
2841 echo "$as_me:2841: result: $LDCONFIG" >&5
2842 echo "${ECHO_T}$LDCONFIG" >&6
2844 echo "$as_me:2844: result: no" >&5
2845 echo "${ECHO_T}no" >&6
2852 echo "$as_me:2852: checking if you want to ensure bool is consistent with C++" >&5
2853 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2855 # Check whether --with-cxx or --without-cxx was given.
2856 if test "${with_cxx+set}" = set; then
2858 cf_with_cxx=$withval
2862 echo "$as_me:2862: result: $cf_with_cxx" >&5
2863 echo "${ECHO_T}$cf_with_cxx" >&6
2864 if test "X$cf_with_cxx" = Xno ; then
2868 # with autoconf 2.13, we can change the error to a warning:
2870 ac_cpp='$CXXCPP $CPPFLAGS'
2871 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2872 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2873 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2874 ac_main_return=return
2875 if test -n "$ac_tool_prefix"; then
2876 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2878 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2879 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2880 echo "$as_me:2880: checking for $ac_word" >&5
2881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2882 if test "${ac_cv_prog_CXX+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2885 if test -n "$CXX"; then
2886 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2888 ac_save_IFS=$IFS; IFS=$ac_path_separator
2890 for ac_dir in $ac_dummy; do
2892 test -z "$ac_dir" && ac_dir=.
2893 $as_executable_p "$ac_dir/$ac_word" || continue
2894 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2895 echo "$as_me:2895: found $ac_dir/$ac_word" >&5
2902 if test -n "$CXX"; then
2903 echo "$as_me:2903: result: $CXX" >&5
2904 echo "${ECHO_T}$CXX" >&6
2906 echo "$as_me:2906: result: no" >&5
2907 echo "${ECHO_T}no" >&6
2910 test -n "$CXX" && break
2913 if test -z "$CXX"; then
2915 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2917 # Extract the first word of "$ac_prog", so it can be a program name with args.
2918 set dummy $ac_prog; ac_word=$2
2919 echo "$as_me:2919: checking for $ac_word" >&5
2920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2921 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2922 echo $ECHO_N "(cached) $ECHO_C" >&6
2924 if test -n "$ac_ct_CXX"; then
2925 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2927 ac_save_IFS=$IFS; IFS=$ac_path_separator
2929 for ac_dir in $ac_dummy; do
2931 test -z "$ac_dir" && ac_dir=.
2932 $as_executable_p "$ac_dir/$ac_word" || continue
2933 ac_cv_prog_ac_ct_CXX="$ac_prog"
2934 echo "$as_me:2934: found $ac_dir/$ac_word" >&5
2940 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2941 if test -n "$ac_ct_CXX"; then
2942 echo "$as_me:2942: result: $ac_ct_CXX" >&5
2943 echo "${ECHO_T}$ac_ct_CXX" >&6
2945 echo "$as_me:2945: result: no" >&5
2946 echo "${ECHO_T}no" >&6
2949 test -n "$ac_ct_CXX" && break
2951 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2956 # Provide some information about the compiler.
2957 echo "$as_me:2957:" \
2958 "checking for C++ compiler version" >&5
2959 ac_compiler=`set X $ac_compile; echo $2`
2960 { (eval echo "$as_me:2960: \"$ac_compiler --version </dev/null >&5\"") >&5
2961 (eval $ac_compiler --version </dev/null >&5) 2>&5
2963 echo "$as_me:2963: \$? = $ac_status" >&5
2964 (exit $ac_status); }
2965 { (eval echo "$as_me:2965: \"$ac_compiler -v </dev/null >&5\"") >&5
2966 (eval $ac_compiler -v </dev/null >&5) 2>&5
2968 echo "$as_me:2968: \$? = $ac_status" >&5
2969 (exit $ac_status); }
2970 { (eval echo "$as_me:2970: \"$ac_compiler -V </dev/null >&5\"") >&5
2971 (eval $ac_compiler -V </dev/null >&5) 2>&5
2973 echo "$as_me:2973: \$? = $ac_status" >&5
2974 (exit $ac_status); }
2976 echo "$as_me:2976: checking whether we are using the GNU C++ compiler" >&5
2977 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2978 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2979 echo $ECHO_N "(cached) $ECHO_C" >&6
2981 cat >conftest.$ac_ext <<_ACEOF
2982 #line 2982 "configure"
2983 #include "confdefs.h"
2996 rm -f conftest.$ac_objext
2997 if { (eval echo "$as_me:2997: \"$ac_compile\"") >&5
2998 (eval $ac_compile) 2>&5
3000 echo "$as_me:3000: \$? = $ac_status" >&5
3001 (exit $ac_status); } &&
3002 { ac_try='test -s conftest.$ac_objext'
3003 { (eval echo "$as_me:3003: \"$ac_try\"") >&5
3006 echo "$as_me:3006: \$? = $ac_status" >&5
3007 (exit $ac_status); }; }; then
3010 echo "$as_me: failed program was:" >&5
3011 cat conftest.$ac_ext >&5
3014 rm -f conftest.$ac_objext conftest.$ac_ext
3015 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3018 echo "$as_me:3018: result: $ac_cv_cxx_compiler_gnu" >&5
3019 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3020 GXX=`test $ac_compiler_gnu = yes && echo yes`
3021 ac_test_CXXFLAGS=${CXXFLAGS+set}
3022 ac_save_CXXFLAGS=$CXXFLAGS
3024 echo "$as_me:3024: checking whether $CXX accepts -g" >&5
3025 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3026 if test "${ac_cv_prog_cxx_g+set}" = set; then
3027 echo $ECHO_N "(cached) $ECHO_C" >&6
3029 cat >conftest.$ac_ext <<_ACEOF
3030 #line 3030 "configure"
3031 #include "confdefs.h"
3041 rm -f conftest.$ac_objext
3042 if { (eval echo "$as_me:3042: \"$ac_compile\"") >&5
3043 (eval $ac_compile) 2>&5
3045 echo "$as_me:3045: \$? = $ac_status" >&5
3046 (exit $ac_status); } &&
3047 { ac_try='test -s conftest.$ac_objext'
3048 { (eval echo "$as_me:3048: \"$ac_try\"") >&5
3051 echo "$as_me:3051: \$? = $ac_status" >&5
3052 (exit $ac_status); }; }; then
3053 ac_cv_prog_cxx_g=yes
3055 echo "$as_me: failed program was:" >&5
3056 cat conftest.$ac_ext >&5
3059 rm -f conftest.$ac_objext conftest.$ac_ext
3061 echo "$as_me:3061: result: $ac_cv_prog_cxx_g" >&5
3062 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3063 if test "$ac_test_CXXFLAGS" = set; then
3064 CXXFLAGS=$ac_save_CXXFLAGS
3065 elif test $ac_cv_prog_cxx_g = yes; then
3066 if test "$GXX" = yes; then
3072 if test "$GXX" = yes; then
3078 for ac_declaration in \
3080 '#include <stdlib.h>' \
3081 'extern "C" void std::exit (int) throw (); using std::exit;' \
3082 'extern "C" void std::exit (int); using std::exit;' \
3083 'extern "C" void exit (int) throw ();' \
3084 'extern "C" void exit (int);' \
3087 cat >conftest.$ac_ext <<_ACEOF
3088 #line 3088 "configure"
3089 #include "confdefs.h"
3100 rm -f conftest.$ac_objext
3101 if { (eval echo "$as_me:3101: \"$ac_compile\"") >&5
3102 (eval $ac_compile) 2>&5
3104 echo "$as_me:3104: \$? = $ac_status" >&5
3105 (exit $ac_status); } &&
3106 { ac_try='test -s conftest.$ac_objext'
3107 { (eval echo "$as_me:3107: \"$ac_try\"") >&5
3110 echo "$as_me:3110: \$? = $ac_status" >&5
3111 (exit $ac_status); }; }; then
3114 echo "$as_me: failed program was:" >&5
3115 cat conftest.$ac_ext >&5
3118 rm -f conftest.$ac_objext conftest.$ac_ext
3119 cat >conftest.$ac_ext <<_ACEOF
3120 #line 3120 "configure"
3121 #include "confdefs.h"
3131 rm -f conftest.$ac_objext
3132 if { (eval echo "$as_me:3132: \"$ac_compile\"") >&5
3133 (eval $ac_compile) 2>&5
3135 echo "$as_me:3135: \$? = $ac_status" >&5
3136 (exit $ac_status); } &&
3137 { ac_try='test -s conftest.$ac_objext'
3138 { (eval echo "$as_me:3138: \"$ac_try\"") >&5
3141 echo "$as_me:3141: \$? = $ac_status" >&5
3142 (exit $ac_status); }; }; then
3145 echo "$as_me: failed program was:" >&5
3146 cat conftest.$ac_ext >&5
3148 rm -f conftest.$ac_objext conftest.$ac_ext
3151 if test -n "$ac_declaration"; then
3152 echo '#ifdef __cplusplus' >>confdefs.h
3153 echo $ac_declaration >>confdefs.h
3154 echo '#endif' >>confdefs.h
3158 ac_cpp='$CPP $CPPFLAGS'
3159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3162 ac_main_return=return
3164 # autoconf 2.5x removed the error - by hardcoding it to g++.
3165 if test "$CXX" = "g++" ; then
3166 # Extract the first word of "g++", so it can be a program name with args.
3167 set dummy g++; ac_word=$2
3168 echo "$as_me:3168: checking for $ac_word" >&5
3169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3170 if test "${ac_cv_path_CXX+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3175 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3178 ac_save_IFS=$IFS; IFS=$ac_path_separator
3180 for ac_dir in $ac_dummy; do
3182 test -z "$ac_dir" && ac_dir=.
3183 if $as_executable_p "$ac_dir/$ac_word"; then
3184 ac_cv_path_CXX="$ac_dir/$ac_word"
3185 echo "$as_me:3185: found $ac_dir/$ac_word" >&5
3195 if test -n "$CXX"; then
3196 echo "$as_me:3196: result: $CXX" >&5
3197 echo "${ECHO_T}$CXX" >&6
3199 echo "$as_me:3199: result: no" >&5
3200 echo "${ECHO_T}no" >&6
3204 if test "$CXX" = "g++" ; then
3205 { echo "$as_me:3205: WARNING: ignoring hardcoded g++" >&5
3206 echo "$as_me: WARNING: ignoring hardcoded g++" >&2;}
3207 cf_with_cxx=no; CXX=""; GXX="";
3212 if test "$GXX" = yes; then
3213 echo "$as_me:3213: checking version of g++" >&5
3214 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
3215 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3216 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3217 echo "$as_me:3217: result: $GXX_VERSION" >&5
3218 echo "${ECHO_T}$GXX_VERSION" >&6
3221 case $GXX_VERSION in
3223 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3225 { echo "$as_me:3225: WARNING: templates do not work" >&5
3226 echo "$as_me: WARNING: templates do not work" >&2;}
3230 echo "$as_me:3230: checking if you want to build C++ binding and demo" >&5
3231 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3233 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3234 if test "${with_cxx_binding+set}" = set; then
3235 withval="$with_cxx_binding"
3236 cf_with_cxx_binding=$withval
3238 cf_with_cxx_binding=$cf_with_cxx
3240 echo "$as_me:3240: result: $cf_with_cxx_binding" >&5
3241 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3243 echo "$as_me:3243: checking if you want to build with Ada95" >&5
3244 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3246 # Check whether --with-ada or --without-ada was given.
3247 if test "${with_ada+set}" = set; then
3249 cf_with_ada=$withval
3253 echo "$as_me:3253: result: $cf_with_ada" >&5
3254 echo "${ECHO_T}$cf_with_ada" >&6
3256 echo "$as_me:3256: checking if you want to install manpages" >&5
3257 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3259 # Check whether --with-manpages or --without-manpages was given.
3260 if test "${with_manpages+set}" = set; then
3261 withval="$with_manpages"
3262 cf_with_manpages=$withval
3264 cf_with_manpages=yes
3266 echo "$as_me:3266: result: $cf_with_manpages" >&5
3267 echo "${ECHO_T}$cf_with_manpages" >&6
3269 echo "$as_me:3269: checking if you want to build programs such as tic" >&5
3270 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3272 # Check whether --with-progs or --without-progs was given.
3273 if test "${with_progs+set}" = set; then
3274 withval="$with_progs"
3275 cf_with_progs=$withval
3279 echo "$as_me:3279: result: $cf_with_progs" >&5
3280 echo "${ECHO_T}$cf_with_progs" >&6
3282 echo "$as_me:3282: checking if you want to build test-programs" >&5
3283 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3285 # Check whether --with-tests or --without-tests was given.
3286 if test "${with_tests+set}" = set; then
3287 withval="$with_tests"
3288 cf_with_tests=$withval
3292 echo "$as_me:3292: result: $cf_with_tests" >&5
3293 echo "${ECHO_T}$cf_with_tests" >&6
3295 echo "$as_me:3295: checking if you wish to install curses.h" >&5
3296 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3298 # Check whether --with-curses-h or --without-curses-h was given.
3299 if test "${with_curses_h+set}" = set; then
3300 withval="$with_curses_h"
3301 with_curses_h=$withval
3305 echo "$as_me:3305: result: $with_curses_h" >&5
3306 echo "${ECHO_T}$with_curses_h" >&6
3308 modules_to_build="ncurses"
3309 if test "X$cf_with_progs" != Xno ; then
3310 modules_to_build="$modules_to_build progs tack"
3312 modules_to_build="$modules_to_build panel menu form"
3314 test "$program_prefix" != NONE &&
3315 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3316 # Use a double $ so make ignores it.
3317 test "$program_suffix" != NONE &&
3318 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3319 # Double any \ or $. echo might interpret backslashes.
3320 # By default was `s,x,x', remove it if useless.
3321 cat <<\_ACEOF >conftest.sed
3322 s/[\\$]/&&/g;s/;s,x,x,$//
3324 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3327 for ac_prog in mawk gawk nawk awk
3329 # Extract the first word of "$ac_prog", so it can be a program name with args.
3330 set dummy $ac_prog; ac_word=$2
3331 echo "$as_me:3331: checking for $ac_word" >&5
3332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3333 if test "${ac_cv_prog_AWK+set}" = set; then
3334 echo $ECHO_N "(cached) $ECHO_C" >&6
3336 if test -n "$AWK"; then
3337 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3339 ac_save_IFS=$IFS; IFS=$ac_path_separator
3341 for ac_dir in $ac_dummy; do
3343 test -z "$ac_dir" && ac_dir=.
3344 $as_executable_p "$ac_dir/$ac_word" || continue
3345 ac_cv_prog_AWK="$ac_prog"
3346 echo "$as_me:3346: found $ac_dir/$ac_word" >&5
3353 if test -n "$AWK"; then
3354 echo "$as_me:3354: result: $AWK" >&5
3355 echo "${ECHO_T}$AWK" >&6
3357 echo "$as_me:3357: result: no" >&5
3358 echo "${ECHO_T}no" >&6
3361 test -n "$AWK" && break
3364 test -z "$AWK" && { { echo "$as_me:3364: error: No awk program found" >&5
3365 echo "$as_me: error: No awk program found" >&2;}
3366 { (exit 1); exit 1; }; }
3368 echo "$as_me:3368: checking for egrep" >&5
3369 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3370 if test "${ac_cv_prog_egrep+set}" = set; then
3371 echo $ECHO_N "(cached) $ECHO_C" >&6
3373 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3374 then ac_cv_prog_egrep='grep -E'
3375 else ac_cv_prog_egrep='egrep'
3378 echo "$as_me:3378: result: $ac_cv_prog_egrep" >&5
3379 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3380 EGREP=$ac_cv_prog_egrep
3382 test -z "$EGREP" && { { echo "$as_me:3382: error: No egrep program found" >&5
3383 echo "$as_me: error: No egrep program found" >&2;}
3384 { (exit 1); exit 1; }; }
3386 # Find a good install program. We prefer a C program (faster),
3387 # so one script is as good as another. But avoid the broken or
3388 # incompatible versions:
3389 # SysV /etc/install, /usr/sbin/install
3390 # SunOS /usr/etc/install
3391 # IRIX /sbin/install
3393 # AmigaOS /C/install, which installs bootblocks on floppy discs
3394 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3395 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3396 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3397 # ./install, which can be erroneously created by make from ./install.sh.
3398 echo "$as_me:3398: checking for a BSD compatible install" >&5
3399 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3400 if test -z "$INSTALL"; then
3401 if test "${ac_cv_path_install+set}" = set; then
3402 echo $ECHO_N "(cached) $ECHO_C" >&6
3404 ac_save_IFS=$IFS; IFS=$ac_path_separator
3405 for ac_dir in $PATH; do
3407 # Account for people who put trailing slashes in PATH elements.
3409 / | ./ | .// | /cC/* \
3410 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3413 # OSF1 and SCO ODT 3.0 have their own names for install.
3414 # Don't use installbsd from OSF since it installs stuff as root
3416 for ac_prog in ginstall scoinst install; do
3417 if $as_executable_p "$ac_dir/$ac_prog"; then
3418 if test $ac_prog = install &&
3419 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3420 # AIX install. It has an incompatible calling convention.
3422 elif test $ac_prog = install &&
3423 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3424 # program-specific install script used by HP pwplus--don't use.
3427 ac_cv_path_install="$ac_dir/$ac_prog -c"
3437 if test "${ac_cv_path_install+set}" = set; then
3438 INSTALL=$ac_cv_path_install
3440 # As a last resort, use the slow shell script. We don't cache a
3441 # path for INSTALL within a source directory, because that will
3442 # break other packages using the cache if that directory is
3443 # removed, or if the path is relative.
3444 INSTALL=$ac_install_sh
3447 echo "$as_me:3447: result: $INSTALL" >&5
3448 echo "${ECHO_T}$INSTALL" >&6
3450 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3451 # It thinks the first close brace ends the variable substitution.
3452 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3454 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3456 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3462 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3463 test -z "$cf_dir" && cf_dir=.
3464 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3468 for ac_prog in tdlint lint alint splint lclint
3470 # Extract the first word of "$ac_prog", so it can be a program name with args.
3471 set dummy $ac_prog; ac_word=$2
3472 echo "$as_me:3472: checking for $ac_word" >&5
3473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3474 if test "${ac_cv_prog_LINT+set}" = set; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3477 if test -n "$LINT"; then
3478 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3480 ac_save_IFS=$IFS; IFS=$ac_path_separator
3482 for ac_dir in $ac_dummy; do
3484 test -z "$ac_dir" && ac_dir=.
3485 $as_executable_p "$ac_dir/$ac_word" || continue
3486 ac_cv_prog_LINT="$ac_prog"
3487 echo "$as_me:3487: found $ac_dir/$ac_word" >&5
3493 LINT=$ac_cv_prog_LINT
3494 if test -n "$LINT"; then
3495 echo "$as_me:3495: result: $LINT" >&5
3496 echo "${ECHO_T}$LINT" >&6
3498 echo "$as_me:3498: result: no" >&5
3499 echo "${ECHO_T}no" >&6
3502 test -n "$LINT" && break
3505 echo "$as_me:3505: checking whether ln -s works" >&5
3506 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3508 if test "$LN_S" = "ln -s"; then
3509 echo "$as_me:3509: result: yes" >&5
3510 echo "${ECHO_T}yes" >&6
3512 echo "$as_me:3512: result: no, using $LN_S" >&5
3513 echo "${ECHO_T}no, using $LN_S" >&6
3516 echo "$as_me:3516: checking if $LN_S -f options work" >&5
3517 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3519 rm -f conf$$.src conf$$dst
3521 echo first >conf$$.src
3522 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3527 rm -f conf$$.dst conf$$src
3528 echo "$as_me:3528: result: $cf_prog_ln_sf" >&5
3529 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3531 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3533 echo "$as_me:3533: checking for long file names" >&5
3534 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3535 if test "${ac_cv_sys_long_file_names+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3538 ac_cv_sys_long_file_names=yes
3539 # Test for long file names in all the places we know might matter:
3540 # . the current directory, where building will happen
3541 # $prefix/lib where we will be installing things
3542 # $exec_prefix/lib likewise
3543 # eval it to expand exec_prefix.
3544 # $TMPDIR if set, where it might want to write temporary files
3545 # if $TMPDIR is not set:
3546 # /tmp where it might want to write temporary files
3549 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3552 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3554 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3555 test -d $ac_dir || continue
3556 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3557 ac_xdir=$ac_dir/cf$$
3558 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3559 ac_tf1=$ac_xdir/conftest9012345
3560 ac_tf2=$ac_xdir/conftest9012346
3561 (echo 1 >$ac_tf1) 2>/dev/null
3562 (echo 2 >$ac_tf2) 2>/dev/null
3563 ac_val=`cat $ac_tf1 2>/dev/null`
3564 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3565 ac_cv_sys_long_file_names=no
3566 rm -rf $ac_xdir 2>/dev/null
3569 rm -rf $ac_xdir 2>/dev/null
3572 echo "$as_me:3572: result: $ac_cv_sys_long_file_names" >&5
3573 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3574 if test $ac_cv_sys_long_file_names = yes; then
3576 cat >>confdefs.h <<\EOF
3577 #define HAVE_LONG_FILE_NAMES 1
3582 # if we find pkg-config, check if we should install the ".pc" files.
3584 echo "$as_me:3584: checking if you want to use pkg-config" >&5
3585 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3587 # Check whether --with-pkg-config or --without-pkg-config was given.
3588 if test "${with_pkg_config+set}" = set; then
3589 withval="$with_pkg_config"
3590 cf_pkg_config=$withval
3594 echo "$as_me:3594: result: $cf_pkg_config" >&5
3595 echo "${ECHO_T}$cf_pkg_config" >&6
3597 case $cf_pkg_config in #(vi
3603 if test -n "$ac_tool_prefix"; then
3604 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3605 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3606 echo "$as_me:3606: checking for $ac_word" >&5
3607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3608 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3613 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3616 ac_save_IFS=$IFS; IFS=$ac_path_separator
3618 for ac_dir in $ac_dummy; do
3620 test -z "$ac_dir" && ac_dir=.
3621 if $as_executable_p "$ac_dir/$ac_word"; then
3622 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3623 echo "$as_me:3623: found $ac_dir/$ac_word" >&5
3631 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3633 if test -n "$PKG_CONFIG"; then
3634 echo "$as_me:3634: result: $PKG_CONFIG" >&5
3635 echo "${ECHO_T}$PKG_CONFIG" >&6
3637 echo "$as_me:3637: result: no" >&5
3638 echo "${ECHO_T}no" >&6
3642 if test -z "$ac_cv_path_PKG_CONFIG"; then
3643 ac_pt_PKG_CONFIG=$PKG_CONFIG
3644 # Extract the first word of "pkg-config", so it can be a program name with args.
3645 set dummy pkg-config; ac_word=$2
3646 echo "$as_me:3646: checking for $ac_word" >&5
3647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3648 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3651 case $ac_pt_PKG_CONFIG in
3653 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3656 ac_save_IFS=$IFS; IFS=$ac_path_separator
3658 for ac_dir in $ac_dummy; do
3660 test -z "$ac_dir" && ac_dir=.
3661 if $as_executable_p "$ac_dir/$ac_word"; then
3662 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3663 echo "$as_me:3663: found $ac_dir/$ac_word" >&5
3668 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3672 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3674 if test -n "$ac_pt_PKG_CONFIG"; then
3675 echo "$as_me:3675: result: $ac_pt_PKG_CONFIG" >&5
3676 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3678 echo "$as_me:3678: result: no" >&5
3679 echo "${ECHO_T}no" >&6
3682 PKG_CONFIG=$ac_pt_PKG_CONFIG
3684 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3693 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3694 if test "$PKG_CONFIG" != none ; then
3696 if test "x$prefix" != xNONE; then
3697 cf_path_syntax="$prefix"
3699 cf_path_syntax="$ac_default_prefix"
3702 case ".$PKG_CONFIG" in #(vi
3703 .\$\(*\)*|.\'*\'*) #(vi
3707 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3710 eval PKG_CONFIG="$PKG_CONFIG"
3711 case ".$PKG_CONFIG" in #(vi
3713 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3718 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3721 { { echo "$as_me:3721: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3722 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3723 { (exit 1); exit 1; }; }
3729 if test "$PKG_CONFIG" != none ; then
3730 echo "$as_me:3730: checking for $PKG_CONFIG library directory" >&5
3731 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3733 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3734 if test "${with_pkg_config_libdir+set}" = set; then
3735 withval="$with_pkg_config_libdir"
3736 PKG_CONFIG_LIBDIR=$withval
3738 PKG_CONFIG_LIBDIR=yes
3741 case x$PKG_CONFIG_LIBDIR in #(vi
3745 # look for the library directory using the same prefix as the executable
3746 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3747 case x`(arch) 2>/dev/null` in #(vi
3749 for cf_config in $cf_path/share $cf_path/lib64 $cf_path/lib32 $cf_path/lib
3751 if test -d $cf_config/pkgconfig
3753 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3759 PKG_CONFIG_LIBDIR=$cf_path/lib/pkgconfig
3767 echo "$as_me:3767: result: $PKG_CONFIG_LIBDIR" >&5
3768 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3771 if test "$PKG_CONFIG" != none ; then
3772 if test -n "$PKG_CONFIG_LIBDIR" && test -d "$PKG_CONFIG_LIBDIR" ; then
3773 echo "$as_me:3773: checking if we should install .pc files for $PKG_CONFIG" >&5
3774 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3776 # Check whether --enable-pc-files or --disable-pc-files was given.
3777 if test "${enable_pc_files+set}" = set; then
3778 enableval="$enable_pc_files"
3779 enable_pc_files=$enableval
3783 echo "$as_me:3783: result: $enable_pc_files" >&5
3784 echo "${ECHO_T}$enable_pc_files" >&6
3785 elif test -z "$PKG_CONFIG_LIBDIR" || test "$PKG_CONFIG_LIBDIR" != no; then
3787 { echo "$as_me:3787: WARNING: did not find $PKG_CONFIG library" >&5
3788 echo "$as_me: WARNING: did not find $PKG_CONFIG library" >&2;}
3794 echo "$as_me:3794: checking if we should assume mixed-case filenames" >&5
3795 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3797 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3798 if test "${enable_mixed_case+set}" = set; then
3799 enableval="$enable_mixed_case"
3800 enable_mixedcase=$enableval
3802 enable_mixedcase=auto
3804 echo "$as_me:3804: result: $enable_mixedcase" >&5
3805 echo "${ECHO_T}$enable_mixedcase" >&6
3806 if test "$enable_mixedcase" = "auto" ; then
3808 echo "$as_me:3808: checking if filesystem supports mixed-case filenames" >&5
3809 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3810 if test "${cf_cv_mixedcase+set}" = set; then
3811 echo $ECHO_N "(cached) $ECHO_C" >&6
3814 if test "$cross_compiling" = yes ; then
3815 case $target_alias in #(vi
3816 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3824 rm -f conftest CONFTEST
3826 if test -f CONFTEST ; then
3831 rm -f conftest CONFTEST
3835 echo "$as_me:3835: result: $cf_cv_mixedcase" >&5
3836 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3837 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3838 #define MIXEDCASE_FILENAMES 1
3842 cf_cv_mixedcase=$enable_mixedcase
3843 if test "$enable_mixedcase" = "yes" ; then
3844 cat >>confdefs.h <<\EOF
3845 #define MIXEDCASE_FILENAMES 1
3851 # do this after mixed-case option (tags/TAGS is not as important as tic).
3852 echo "$as_me:3852: checking whether ${MAKE-make} sets \${MAKE}" >&5
3853 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3854 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3855 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3856 echo $ECHO_N "(cached) $ECHO_C" >&6
3858 cat >conftest.make <<\EOF
3860 @echo 'ac_maketemp="${MAKE}"'
3862 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3863 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3864 if test -n "$ac_maketemp"; then
3865 eval ac_cv_prog_make_${ac_make}_set=yes
3867 eval ac_cv_prog_make_${ac_make}_set=no
3871 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3872 echo "$as_me:3872: result: yes" >&5
3873 echo "${ECHO_T}yes" >&6
3876 echo "$as_me:3876: result: no" >&5
3877 echo "${ECHO_T}no" >&6
3878 SET_MAKE="MAKE=${MAKE-make}"
3881 for ac_prog in exctags ctags
3883 # Extract the first word of "$ac_prog", so it can be a program name with args.
3884 set dummy $ac_prog; ac_word=$2
3885 echo "$as_me:3885: checking for $ac_word" >&5
3886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3887 if test "${ac_cv_prog_CTAGS+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3890 if test -n "$CTAGS"; then
3891 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3893 ac_save_IFS=$IFS; IFS=$ac_path_separator
3895 for ac_dir in $ac_dummy; do
3897 test -z "$ac_dir" && ac_dir=.
3898 $as_executable_p "$ac_dir/$ac_word" || continue
3899 ac_cv_prog_CTAGS="$ac_prog"
3900 echo "$as_me:3900: found $ac_dir/$ac_word" >&5
3906 CTAGS=$ac_cv_prog_CTAGS
3907 if test -n "$CTAGS"; then
3908 echo "$as_me:3908: result: $CTAGS" >&5
3909 echo "${ECHO_T}$CTAGS" >&6
3911 echo "$as_me:3911: result: no" >&5
3912 echo "${ECHO_T}no" >&6
3915 test -n "$CTAGS" && break
3918 for ac_prog in exetags etags
3920 # Extract the first word of "$ac_prog", so it can be a program name with args.
3921 set dummy $ac_prog; ac_word=$2
3922 echo "$as_me:3922: checking for $ac_word" >&5
3923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3924 if test "${ac_cv_prog_ETAGS+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3927 if test -n "$ETAGS"; then
3928 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3930 ac_save_IFS=$IFS; IFS=$ac_path_separator
3932 for ac_dir in $ac_dummy; do
3934 test -z "$ac_dir" && ac_dir=.
3935 $as_executable_p "$ac_dir/$ac_word" || continue
3936 ac_cv_prog_ETAGS="$ac_prog"
3937 echo "$as_me:3937: found $ac_dir/$ac_word" >&5
3943 ETAGS=$ac_cv_prog_ETAGS
3944 if test -n "$ETAGS"; then
3945 echo "$as_me:3945: result: $ETAGS" >&5
3946 echo "${ECHO_T}$ETAGS" >&6
3948 echo "$as_me:3948: result: no" >&5
3949 echo "${ECHO_T}no" >&6
3952 test -n "$ETAGS" && break
3955 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3956 set dummy ${CTAGS:-ctags}; ac_word=$2
3957 echo "$as_me:3957: checking for $ac_word" >&5
3958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3959 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
3962 if test -n "$MAKE_LOWER_TAGS"; then
3963 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3965 ac_save_IFS=$IFS; IFS=$ac_path_separator
3967 for ac_dir in $ac_dummy; do
3969 test -z "$ac_dir" && ac_dir=.
3970 $as_executable_p "$ac_dir/$ac_word" || continue
3971 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3972 echo "$as_me:3972: found $ac_dir/$ac_word" >&5
3976 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3979 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3980 if test -n "$MAKE_LOWER_TAGS"; then
3981 echo "$as_me:3981: result: $MAKE_LOWER_TAGS" >&5
3982 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3984 echo "$as_me:3984: result: no" >&5
3985 echo "${ECHO_T}no" >&6
3988 if test "$cf_cv_mixedcase" = yes ; then
3989 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3990 set dummy ${ETAGS:-etags}; ac_word=$2
3991 echo "$as_me:3991: checking for $ac_word" >&5
3992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3993 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3996 if test -n "$MAKE_UPPER_TAGS"; then
3997 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3999 ac_save_IFS=$IFS; IFS=$ac_path_separator
4001 for ac_dir in $ac_dummy; do
4003 test -z "$ac_dir" && ac_dir=.
4004 $as_executable_p "$ac_dir/$ac_word" || continue
4005 ac_cv_prog_MAKE_UPPER_TAGS="yes"
4006 echo "$as_me:4006: found $ac_dir/$ac_word" >&5
4010 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
4013 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
4014 if test -n "$MAKE_UPPER_TAGS"; then
4015 echo "$as_me:4015: result: $MAKE_UPPER_TAGS" >&5
4016 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
4018 echo "$as_me:4018: result: no" >&5
4019 echo "${ECHO_T}no" >&6
4026 if test "$MAKE_UPPER_TAGS" = yes ; then
4032 if test "$MAKE_LOWER_TAGS" = yes ; then
4038 echo "$as_me:4038: checking for makeflags variable" >&5
4039 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
4040 if test "${cf_cv_makeflags+set}" = set; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
4047 cat >cf_makeflags.tmp <<CF_EOF
4050 @ echo '.$cf_option'
4052 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
4053 case "$cf_result" in
4055 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
4056 case "$cf_result" in
4057 .*CC=*) cf_cv_makeflags=
4059 *) cf_cv_makeflags=$cf_option
4065 *) echo "given option \"$cf_option\", no match \"$cf_result\""
4069 rm -f cf_makeflags.tmp
4072 echo "$as_me:4072: result: $cf_cv_makeflags" >&5
4073 echo "${ECHO_T}$cf_cv_makeflags" >&6
4075 if test -n "$ac_tool_prefix"; then
4076 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4077 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4078 echo "$as_me:4078: checking for $ac_word" >&5
4079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4080 if test "${ac_cv_prog_RANLIB+set}" = set; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
4083 if test -n "$RANLIB"; then
4084 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4086 ac_save_IFS=$IFS; IFS=$ac_path_separator
4088 for ac_dir in $ac_dummy; do
4090 test -z "$ac_dir" && ac_dir=.
4091 $as_executable_p "$ac_dir/$ac_word" || continue
4092 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4093 echo "$as_me:4093: found $ac_dir/$ac_word" >&5
4099 RANLIB=$ac_cv_prog_RANLIB
4100 if test -n "$RANLIB"; then
4101 echo "$as_me:4101: result: $RANLIB" >&5
4102 echo "${ECHO_T}$RANLIB" >&6
4104 echo "$as_me:4104: result: no" >&5
4105 echo "${ECHO_T}no" >&6
4109 if test -z "$ac_cv_prog_RANLIB"; then
4110 ac_ct_RANLIB=$RANLIB
4111 # Extract the first word of "ranlib", so it can be a program name with args.
4112 set dummy ranlib; ac_word=$2
4113 echo "$as_me:4113: checking for $ac_word" >&5
4114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4115 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4118 if test -n "$ac_ct_RANLIB"; then
4119 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4121 ac_save_IFS=$IFS; IFS=$ac_path_separator
4123 for ac_dir in $ac_dummy; do
4125 test -z "$ac_dir" && ac_dir=.
4126 $as_executable_p "$ac_dir/$ac_word" || continue
4127 ac_cv_prog_ac_ct_RANLIB="ranlib"
4128 echo "$as_me:4128: found $ac_dir/$ac_word" >&5
4132 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4135 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4136 if test -n "$ac_ct_RANLIB"; then
4137 echo "$as_me:4137: result: $ac_ct_RANLIB" >&5
4138 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4140 echo "$as_me:4140: result: no" >&5
4141 echo "${ECHO_T}no" >&6
4144 RANLIB=$ac_ct_RANLIB
4146 RANLIB="$ac_cv_prog_RANLIB"
4149 if test -n "$ac_tool_prefix"; then
4150 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4151 set dummy ${ac_tool_prefix}ld; ac_word=$2
4152 echo "$as_me:4152: checking for $ac_word" >&5
4153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4154 if test "${ac_cv_prog_LD+set}" = set; then
4155 echo $ECHO_N "(cached) $ECHO_C" >&6
4157 if test -n "$LD"; then
4158 ac_cv_prog_LD="$LD" # Let the user override the test.
4160 ac_save_IFS=$IFS; IFS=$ac_path_separator
4162 for ac_dir in $ac_dummy; do
4164 test -z "$ac_dir" && ac_dir=.
4165 $as_executable_p "$ac_dir/$ac_word" || continue
4166 ac_cv_prog_LD="${ac_tool_prefix}ld"
4167 echo "$as_me:4167: found $ac_dir/$ac_word" >&5
4174 if test -n "$LD"; then
4175 echo "$as_me:4175: result: $LD" >&5
4176 echo "${ECHO_T}$LD" >&6
4178 echo "$as_me:4178: result: no" >&5
4179 echo "${ECHO_T}no" >&6
4183 if test -z "$ac_cv_prog_LD"; then
4185 # Extract the first word of "ld", so it can be a program name with args.
4186 set dummy ld; ac_word=$2
4187 echo "$as_me:4187: checking for $ac_word" >&5
4188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4189 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4190 echo $ECHO_N "(cached) $ECHO_C" >&6
4192 if test -n "$ac_ct_LD"; then
4193 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4195 ac_save_IFS=$IFS; IFS=$ac_path_separator
4197 for ac_dir in $ac_dummy; do
4199 test -z "$ac_dir" && ac_dir=.
4200 $as_executable_p "$ac_dir/$ac_word" || continue
4201 ac_cv_prog_ac_ct_LD="ld"
4202 echo "$as_me:4202: found $ac_dir/$ac_word" >&5
4206 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4209 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4210 if test -n "$ac_ct_LD"; then
4211 echo "$as_me:4211: result: $ac_ct_LD" >&5
4212 echo "${ECHO_T}$ac_ct_LD" >&6
4214 echo "$as_me:4214: result: no" >&5
4215 echo "${ECHO_T}no" >&6
4223 if test -n "$ac_tool_prefix"; then
4224 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4225 set dummy ${ac_tool_prefix}ar; ac_word=$2
4226 echo "$as_me:4226: checking for $ac_word" >&5
4227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4228 if test "${ac_cv_prog_AR+set}" = set; then
4229 echo $ECHO_N "(cached) $ECHO_C" >&6
4231 if test -n "$AR"; then
4232 ac_cv_prog_AR="$AR" # Let the user override the test.
4234 ac_save_IFS=$IFS; IFS=$ac_path_separator
4236 for ac_dir in $ac_dummy; do
4238 test -z "$ac_dir" && ac_dir=.
4239 $as_executable_p "$ac_dir/$ac_word" || continue
4240 ac_cv_prog_AR="${ac_tool_prefix}ar"
4241 echo "$as_me:4241: found $ac_dir/$ac_word" >&5
4248 if test -n "$AR"; then
4249 echo "$as_me:4249: result: $AR" >&5
4250 echo "${ECHO_T}$AR" >&6
4252 echo "$as_me:4252: result: no" >&5
4253 echo "${ECHO_T}no" >&6
4257 if test -z "$ac_cv_prog_AR"; then
4259 # Extract the first word of "ar", so it can be a program name with args.
4260 set dummy ar; ac_word=$2
4261 echo "$as_me:4261: checking for $ac_word" >&5
4262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4263 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4264 echo $ECHO_N "(cached) $ECHO_C" >&6
4266 if test -n "$ac_ct_AR"; then
4267 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4269 ac_save_IFS=$IFS; IFS=$ac_path_separator
4271 for ac_dir in $ac_dummy; do
4273 test -z "$ac_dir" && ac_dir=.
4274 $as_executable_p "$ac_dir/$ac_word" || continue
4275 ac_cv_prog_ac_ct_AR="ar"
4276 echo "$as_me:4276: found $ac_dir/$ac_word" >&5
4280 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4283 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4284 if test -n "$ac_ct_AR"; then
4285 echo "$as_me:4285: result: $ac_ct_AR" >&5
4286 echo "${ECHO_T}$ac_ct_AR" >&6
4288 echo "$as_me:4288: result: no" >&5
4289 echo "${ECHO_T}no" >&6
4297 if test -n "$ac_tool_prefix"; then
4298 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4299 set dummy ${ac_tool_prefix}ar; ac_word=$2
4300 echo "$as_me:4300: checking for $ac_word" >&5
4301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4302 if test "${ac_cv_prog_AR+set}" = set; then
4303 echo $ECHO_N "(cached) $ECHO_C" >&6
4305 if test -n "$AR"; then
4306 ac_cv_prog_AR="$AR" # Let the user override the test.
4308 ac_save_IFS=$IFS; IFS=$ac_path_separator
4310 for ac_dir in $ac_dummy; do
4312 test -z "$ac_dir" && ac_dir=.
4313 $as_executable_p "$ac_dir/$ac_word" || continue
4314 ac_cv_prog_AR="${ac_tool_prefix}ar"
4315 echo "$as_me:4315: found $ac_dir/$ac_word" >&5
4322 if test -n "$AR"; then
4323 echo "$as_me:4323: result: $AR" >&5
4324 echo "${ECHO_T}$AR" >&6
4326 echo "$as_me:4326: result: no" >&5
4327 echo "${ECHO_T}no" >&6
4331 if test -z "$ac_cv_prog_AR"; then
4333 # Extract the first word of "ar", so it can be a program name with args.
4334 set dummy ar; ac_word=$2
4335 echo "$as_me:4335: checking for $ac_word" >&5
4336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4337 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
4340 if test -n "$ac_ct_AR"; then
4341 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4343 ac_save_IFS=$IFS; IFS=$ac_path_separator
4345 for ac_dir in $ac_dummy; do
4347 test -z "$ac_dir" && ac_dir=.
4348 $as_executable_p "$ac_dir/$ac_word" || continue
4349 ac_cv_prog_ac_ct_AR="ar"
4350 echo "$as_me:4350: found $ac_dir/$ac_word" >&5
4354 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4357 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4358 if test -n "$ac_ct_AR"; then
4359 echo "$as_me:4359: result: $ac_ct_AR" >&5
4360 echo "${ECHO_T}$ac_ct_AR" >&6
4362 echo "$as_me:4362: result: no" >&5
4363 echo "${ECHO_T}no" >&6
4371 echo "$as_me:4371: checking for options to update archives" >&5
4372 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4373 if test "${cf_cv_ar_flags+set}" = set; then
4374 echo $ECHO_N "(cached) $ECHO_C" >&6
4377 cf_cv_ar_flags=unknown
4378 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
4381 # check if $ARFLAGS already contains this choice
4382 if test "x$ARFLAGS" != "x" ; then
4383 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4384 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4390 rm -f conftest.$ac_cv_objext
4393 cat >conftest.$ac_ext <<EOF
4394 #line 4394 "configure"
4395 int testdata[3] = { 123, 456, 789 };
4397 if { (eval echo "$as_me:4397: \"$ac_compile\"") >&5
4398 (eval $ac_compile) 2>&5
4400 echo "$as_me:4400: \$? = $ac_status" >&5
4401 (exit $ac_status); } ; then
4402 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4403 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4404 if test -f conftest.a ; then
4405 cf_cv_ar_flags=$cf_ar_flags
4409 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4411 echo "${as_me:-configure}:4411: testing cannot compile test-program ..." 1>&5
4416 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4419 echo "$as_me:4419: result: $cf_cv_ar_flags" >&5
4420 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4422 if test -n "$ARFLAGS" ; then
4423 if test -n "$cf_cv_ar_flags" ; then
4424 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4427 ARFLAGS=$cf_cv_ar_flags
4430 echo "$as_me:4430: checking if you have specified an install-prefix" >&5
4431 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4433 # Check whether --with-install-prefix or --without-install-prefix was given.
4434 if test "${with_install_prefix+set}" = set; then
4435 withval="$with_install_prefix"
4436 case "$withval" in #(vi
4439 *) DESTDIR="$withval"
4443 echo "$as_me:4443: result: $DESTDIR" >&5
4444 echo "${ECHO_T}$DESTDIR" >&6
4446 ###############################################################################
4448 # If we're cross-compiling, allow the user to override the tools and their
4449 # options. The configure script is oriented toward identifying the host
4450 # compiler, etc., but we need a build compiler to generate parts of the source.
4452 if test "$cross_compiling" = yes ; then
4454 # defaults that we might want to override
4455 : ${BUILD_CFLAGS:=''}
4456 : ${BUILD_CPPFLAGS:=''}
4457 : ${BUILD_LDFLAGS:=''}
4459 : ${BUILD_EXEEXT:='$x'}
4460 : ${BUILD_OBJEXT:='o'}
4462 # Check whether --with-build-cc or --without-build-cc was given.
4463 if test "${with_build_cc+set}" = set; then
4464 withval="$with_build_cc"
4467 for ac_prog in gcc cc cl
4469 # Extract the first word of "$ac_prog", so it can be a program name with args.
4470 set dummy $ac_prog; ac_word=$2
4471 echo "$as_me:4471: checking for $ac_word" >&5
4472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4473 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4474 echo $ECHO_N "(cached) $ECHO_C" >&6
4476 if test -n "$BUILD_CC"; then
4477 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4479 ac_save_IFS=$IFS; IFS=$ac_path_separator
4481 for ac_dir in $ac_dummy; do
4483 test -z "$ac_dir" && ac_dir=.
4484 $as_executable_p "$ac_dir/$ac_word" || continue
4485 ac_cv_prog_BUILD_CC="$ac_prog"
4486 echo "$as_me:4486: found $ac_dir/$ac_word" >&5
4492 BUILD_CC=$ac_cv_prog_BUILD_CC
4493 if test -n "$BUILD_CC"; then
4494 echo "$as_me:4494: result: $BUILD_CC" >&5
4495 echo "${ECHO_T}$BUILD_CC" >&6
4497 echo "$as_me:4497: result: no" >&5
4498 echo "${ECHO_T}no" >&6
4501 test -n "$BUILD_CC" && break
4505 echo "$as_me:4505: checking for native build C compiler" >&5
4506 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4507 echo "$as_me:4507: result: $BUILD_CC" >&5
4508 echo "${ECHO_T}$BUILD_CC" >&6
4510 echo "$as_me:4510: checking for native build C preprocessor" >&5
4511 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4513 # Check whether --with-build-cpp or --without-build-cpp was given.
4514 if test "${with_build_cpp+set}" = set; then
4515 withval="$with_build_cpp"
4516 BUILD_CPP="$withval"
4518 BUILD_CPP='${BUILD_CC} -E'
4520 echo "$as_me:4520: result: $BUILD_CPP" >&5
4521 echo "${ECHO_T}$BUILD_CPP" >&6
4523 echo "$as_me:4523: checking for native build C flags" >&5
4524 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4526 # Check whether --with-build-cflags or --without-build-cflags was given.
4527 if test "${with_build_cflags+set}" = set; then
4528 withval="$with_build_cflags"
4529 BUILD_CFLAGS="$withval"
4531 echo "$as_me:4531: result: $BUILD_CFLAGS" >&5
4532 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4534 echo "$as_me:4534: checking for native build C preprocessor-flags" >&5
4535 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4537 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4538 if test "${with_build_cppflags+set}" = set; then
4539 withval="$with_build_cppflags"
4540 BUILD_CPPFLAGS="$withval"
4542 echo "$as_me:4542: result: $BUILD_CPPFLAGS" >&5
4543 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4545 echo "$as_me:4545: checking for native build linker-flags" >&5
4546 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4548 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4549 if test "${with_build_ldflags+set}" = set; then
4550 withval="$with_build_ldflags"
4551 BUILD_LDFLAGS="$withval"
4553 echo "$as_me:4553: result: $BUILD_LDFLAGS" >&5
4554 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4556 echo "$as_me:4556: checking for native build linker-libraries" >&5
4557 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4559 # Check whether --with-build-libs or --without-build-libs was given.
4560 if test "${with_build_libs+set}" = set; then
4561 withval="$with_build_libs"
4562 BUILD_LIBS="$withval"
4564 echo "$as_me:4564: result: $BUILD_LIBS" >&5
4565 echo "${ECHO_T}$BUILD_LIBS" >&6
4567 # this assumes we're on Unix.
4571 : ${BUILD_CC:='${CC}'}
4573 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4574 { { echo "$as_me:4574: error: Cross-build requires two compilers.
4575 Use --with-build-cc to specify the native compiler." >&5
4576 echo "$as_me: error: Cross-build requires two compilers.
4577 Use --with-build-cc to specify the native compiler." >&2;}
4578 { (exit 1); exit 1; }; }
4582 : ${BUILD_CC:='${CC}'}
4583 : ${BUILD_CPP:='${CPP}'}
4584 : ${BUILD_CFLAGS:='${CFLAGS}'}
4585 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4586 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4587 : ${BUILD_LIBS:='${LIBS}'}
4588 : ${BUILD_EXEEXT:='$x'}
4589 : ${BUILD_OBJEXT:='o'}
4592 ###############################################################################
4594 ### Options to allow the user to specify the set of libraries which are used.
4595 ### Use "--without-normal --with-shared" to allow the default model to be
4596 ### shared, for example.
4599 echo "$as_me:4599: checking if libtool -version-number should be used" >&5
4600 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
4602 # Check whether --enable-libtool-version or --disable-libtool-version was given.
4603 if test "${enable_libtool_version+set}" = set; then
4604 enableval="$enable_libtool_version"
4605 test "$enableval" != no && enableval=yes
4606 if test "$enableval" != "yes" ; then
4607 cf_libtool_version=no
4609 cf_libtool_version=yes
4613 cf_libtool_version=yes
4616 echo "$as_me:4616: result: $cf_libtool_version" >&5
4617 echo "${ECHO_T}$cf_libtool_version" >&6
4619 if test "$cf_libtool_version" = yes ; then
4620 LIBTOOL_VERSION="-version-number"
4622 LIBTOOL_VERSION="-version-info"
4627 # common library maintenance symbols that are convenient for libtool scripts:
4628 LIB_CREATE='${AR} -cr'
4629 LIB_OBJECT='${OBJECTS}'
4633 # symbols used to prop libtool up to enable it to determine what it should be
4641 echo "$as_me:4641: checking if you want to build libraries with libtool" >&5
4642 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4644 # Check whether --with-libtool or --without-libtool was given.
4645 if test "${with_libtool+set}" = set; then
4646 withval="$with_libtool"
4647 with_libtool=$withval
4651 echo "$as_me:4651: result: $with_libtool" >&5
4652 echo "${ECHO_T}$with_libtool" >&6
4653 if test "$with_libtool" != "no"; then
4655 if test "$with_libtool" != "yes" ; then
4657 if test "x$prefix" != xNONE; then
4658 cf_path_syntax="$prefix"
4660 cf_path_syntax="$ac_default_prefix"
4663 case ".$with_libtool" in #(vi
4664 .\$\(*\)*|.\'*\'*) #(vi
4668 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4671 eval with_libtool="$with_libtool"
4672 case ".$with_libtool" in #(vi
4674 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4679 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4682 { { echo "$as_me:4682: error: expected a pathname, not \"$with_libtool\"" >&5
4683 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4684 { (exit 1); exit 1; }; }
4688 LIBTOOL=$with_libtool
4690 # Extract the first word of "libtool", so it can be a program name with args.
4691 set dummy libtool; ac_word=$2
4692 echo "$as_me:4692: checking for $ac_word" >&5
4693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4694 if test "${ac_cv_path_LIBTOOL+set}" = set; then
4695 echo $ECHO_N "(cached) $ECHO_C" >&6
4699 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
4702 ac_save_IFS=$IFS; IFS=$ac_path_separator
4704 for ac_dir in $ac_dummy; do
4706 test -z "$ac_dir" && ac_dir=.
4707 if $as_executable_p "$ac_dir/$ac_word"; then
4708 ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
4709 echo "$as_me:4709: found $ac_dir/$ac_word" >&5
4717 LIBTOOL=$ac_cv_path_LIBTOOL
4719 if test -n "$LIBTOOL"; then
4720 echo "$as_me:4720: result: $LIBTOOL" >&5
4721 echo "${ECHO_T}$LIBTOOL" >&6
4723 echo "$as_me:4723: result: no" >&5
4724 echo "${ECHO_T}no" >&6
4728 if test -z "$LIBTOOL" ; then
4729 { { echo "$as_me:4729: error: Cannot find libtool" >&5
4730 echo "$as_me: error: Cannot find libtool" >&2;}
4731 { (exit 1); exit 1; }; }
4733 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} ${LIBTOOL_VERSION} `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
4734 LIB_OBJECT='${OBJECTS:.o=.lo}'
4736 LIB_CLEAN='${LIBTOOL} --mode=clean'
4737 LIB_COMPILE='${LIBTOOL} --mode=compile'
4738 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
4739 LIB_INSTALL='${LIBTOOL} --mode=install'
4740 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4743 # Show the version of libtool
4744 echo "$as_me:4744: checking version of libtool" >&5
4745 echo $ECHO_N "checking version of libtool... $ECHO_C" >&6
4747 # Save the version in a cache variable - this is not entirely a good
4748 # thing, but the version string from libtool is very ugly, and for
4749 # bug reports it might be useful to have the original string. "("
4750 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.].*//'`
4751 echo "$as_me:4751: result: $cf_cv_libtool_version" >&5
4752 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4753 if test -z "$cf_cv_libtool_version" ; then
4754 { { echo "$as_me:4754: error: This is not GNU libtool" >&5
4755 echo "$as_me: error: This is not GNU libtool" >&2;}
4756 { (exit 1); exit 1; }; }
4759 # special hack to add -no-undefined (which libtool should do for itself)
4761 case "$cf_cv_system_name" in #(vi
4762 cygwin*|mingw32*|uwin*|aix[4-7]) #(vi
4763 LT_UNDEF=-no-undefined
4767 # special hack to add --tag option for C++ compiler
4768 case $cf_cv_libtool_version in #(vi
4769 1.[5-9]*|[2-9].[0-9.a-z]*) #(vi
4770 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4771 LIBTOOL="$LIBTOOL --tag=CC"
4774 LIBTOOL_CXX="$LIBTOOL"
4782 test -z "$LIBTOOL" && ECHO_LT=
4784 if test "$with_libtool" != "no" ; then
4786 cf_list_models="$cf_list_models libtool"
4790 echo "$as_me:4790: checking if you want to build shared libraries" >&5
4791 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
4793 # Check whether --with-shared or --without-shared was given.
4794 if test "${with_shared+set}" = set; then
4795 withval="$with_shared"
4796 with_shared=$withval
4800 echo "$as_me:4800: result: $with_shared" >&5
4801 echo "${ECHO_T}$with_shared" >&6
4802 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
4804 echo "$as_me:4804: checking if you want to build static libraries" >&5
4805 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
4807 # Check whether --with-normal or --without-normal was given.
4808 if test "${with_normal+set}" = set; then
4809 withval="$with_normal"
4810 with_normal=$withval
4814 echo "$as_me:4814: result: $with_normal" >&5
4815 echo "${ECHO_T}$with_normal" >&6
4816 test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
4818 echo "$as_me:4818: checking if you want to build debug libraries" >&5
4819 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
4821 # Check whether --with-debug or --without-debug was given.
4822 if test "${with_debug+set}" = set; then
4823 withval="$with_debug"
4828 echo "$as_me:4828: result: $with_debug" >&5
4829 echo "${ECHO_T}$with_debug" >&6
4830 test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
4832 echo "$as_me:4832: checking if you want to build profiling libraries" >&5
4833 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
4835 # Check whether --with-profile or --without-profile was given.
4836 if test "${with_profile+set}" = set; then
4837 withval="$with_profile"
4838 with_profile=$withval
4842 echo "$as_me:4842: result: $with_profile" >&5
4843 echo "${ECHO_T}$with_profile" >&6
4844 test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
4848 ###############################################################################
4850 echo "$as_me:4850: checking for specified models" >&5
4851 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
4852 test -z "$cf_list_models" && cf_list_models=normal
4853 test "$with_libtool" != "no" && cf_list_models=libtool
4854 echo "$as_me:4854: result: $cf_list_models" >&5
4855 echo "${ECHO_T}$cf_list_models" >&6
4857 ### Use the first model as the default, and save its suffix for use in building
4858 ### up test-applications.
4859 echo "$as_me:4859: checking for default model" >&5
4860 echo $ECHO_N "checking for default model... $ECHO_C" >&6
4861 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
4862 echo "$as_me:4862: result: $DFT_LWR_MODEL" >&5
4863 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
4865 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4876 echo "$as_me:4876: checking if you want to have a library-prefix" >&5
4877 echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
4879 # Check whether --with-lib-prefix or --without-lib-prefix was given.
4880 if test "${with_lib_prefix+set}" = set; then
4881 withval="$with_lib_prefix"
4882 with_lib_prefix=$withval
4884 with_lib_prefix=auto
4886 echo "$as_me:4886: result: $with_lib_prefix" >&5
4887 echo "${ECHO_T}$with_lib_prefix" >&6
4889 if test $with_lib_prefix = auto
4892 case $cf_cv_system_name in #(vi
4899 cf_prefix=$LIB_PREFIX
4901 elif test $with_lib_prefix = no
4905 LIB_PREFIX=$with_lib_prefix
4910 ###############################################################################
4912 echo "$as_me:4912: checking if you want to build a separate terminfo library" >&5
4913 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
4915 # Check whether --with-termlib or --without-termlib was given.
4916 if test "${with_termlib+set}" = set; then
4917 withval="$with_termlib"
4918 with_termlib=$withval
4922 echo "$as_me:4922: result: $with_termlib" >&5
4923 echo "${ECHO_T}$with_termlib" >&6
4925 echo "$as_me:4925: checking if you want to build a separate tic library" >&5
4926 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
4928 # Check whether --with-ticlib or --without-ticlib was given.
4929 if test "${with_ticlib+set}" = set; then
4930 withval="$with_ticlib"
4931 with_ticlib=$withval
4935 echo "$as_me:4935: result: $with_ticlib" >&5
4936 echo "${ECHO_T}$with_ticlib" >&6
4938 ### Checks for special libraries, must be done up-front.
4941 echo "$as_me:4941: checking if you want to link with the GPM mouse library" >&5
4942 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
4944 # Check whether --with-gpm or --without-gpm was given.
4945 if test "${with_gpm+set}" = set; then
4951 echo "$as_me:4951: result: $with_gpm" >&5
4952 echo "${ECHO_T}$with_gpm" >&6
4954 if test "$with_gpm" != no ; then
4955 echo "$as_me:4955: checking for gpm.h" >&5
4956 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
4957 if test "${ac_cv_header_gpm_h+set}" = set; then
4958 echo $ECHO_N "(cached) $ECHO_C" >&6
4960 cat >conftest.$ac_ext <<_ACEOF
4961 #line 4961 "configure"
4962 #include "confdefs.h"
4965 if { (eval echo "$as_me:4965: \"$ac_cpp conftest.$ac_ext\"") >&5
4966 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4968 egrep -v '^ *\+' conftest.er1 >conftest.err
4970 cat conftest.err >&5
4971 echo "$as_me:4971: \$? = $ac_status" >&5
4972 (exit $ac_status); } >/dev/null; then
4973 if test -s conftest.err; then
4974 ac_cpp_err=$ac_c_preproc_warn_flag
4981 if test -z "$ac_cpp_err"; then
4982 ac_cv_header_gpm_h=yes
4984 echo "$as_me: failed program was:" >&5
4985 cat conftest.$ac_ext >&5
4986 ac_cv_header_gpm_h=no
4988 rm -f conftest.err conftest.$ac_ext
4990 echo "$as_me:4990: result: $ac_cv_header_gpm_h" >&5
4991 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
4992 if test $ac_cv_header_gpm_h = yes; then
4994 cat >>confdefs.h <<\EOF
4995 #define HAVE_GPM_H 1
4998 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
4999 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
5001 echo "${as_me:-configure}:5001: testing assuming we really have GPM library ..." 1>&5
5003 cat >>confdefs.h <<\EOF
5004 #define HAVE_LIBGPM 1
5008 echo "$as_me:5008: checking for Gpm_Open in -lgpm" >&5
5009 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
5010 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
5011 echo $ECHO_N "(cached) $ECHO_C" >&6
5013 ac_check_lib_save_LIBS=$LIBS
5015 cat >conftest.$ac_ext <<_ACEOF
5016 #line 5016 "configure"
5017 #include "confdefs.h"
5019 /* Override any gcc2 internal prototype to avoid an error. */
5023 /* We use char because int might match the return type of a gcc2
5024 builtin and then its argument prototype would still apply. */
5034 rm -f conftest.$ac_objext conftest$ac_exeext
5035 if { (eval echo "$as_me:5035: \"$ac_link\"") >&5
5036 (eval $ac_link) 2>&5
5038 echo "$as_me:5038: \$? = $ac_status" >&5
5039 (exit $ac_status); } &&
5040 { ac_try='test -s conftest$ac_exeext'
5041 { (eval echo "$as_me:5041: \"$ac_try\"") >&5
5044 echo "$as_me:5044: \$? = $ac_status" >&5
5045 (exit $ac_status); }; }; then
5046 ac_cv_lib_gpm_Gpm_Open=yes
5048 echo "$as_me: failed program was:" >&5
5049 cat conftest.$ac_ext >&5
5050 ac_cv_lib_gpm_Gpm_Open=no
5052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5053 LIBS=$ac_check_lib_save_LIBS
5055 echo "$as_me:5055: result: $ac_cv_lib_gpm_Gpm_Open" >&5
5056 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
5057 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
5061 { { echo "$as_me:5061: error: Cannot link with GPM library" >&5
5062 echo "$as_me: error: Cannot link with GPM library" >&2;}
5063 { (exit 1); exit 1; }; }
5071 test "$with_gpm" != maybe && { echo "$as_me:5071: WARNING: Cannot find GPM header" >&5
5072 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
5079 if test "$with_gpm" != no ; then
5080 echo "$as_me:5080: checking if you want to load GPM dynamically" >&5
5081 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
5083 # Check whether --with-dlsym or --without-dlsym was given.
5084 if test "${with_dlsym+set}" = set; then
5085 withval="$with_dlsym"
5090 echo "$as_me:5090: result: $with_dlsym" >&5
5091 echo "${ECHO_T}$with_dlsym" >&6
5092 if test "$with_dlsym" = yes ; then
5095 echo "$as_me:5095: checking for dlsym" >&5
5096 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
5097 if test "${ac_cv_func_dlsym+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5100 cat >conftest.$ac_ext <<_ACEOF
5101 #line 5101 "configure"
5102 #include "confdefs.h"
5103 /* System header to define __stub macros and hopefully few prototypes,
5104 which can conflict with char dlsym (); below. */
5106 /* Override any gcc2 internal prototype to avoid an error. */
5110 /* We use char because int might match the return type of a gcc2
5111 builtin and then its argument prototype would still apply. */
5118 /* The GNU C library defines this for functions which it implements
5119 to always fail with ENOSYS. Some functions are actually named
5120 something starting with __ and the normal name is an alias. */
5121 #if defined (__stub_dlsym) || defined (__stub___dlsym)
5131 rm -f conftest.$ac_objext conftest$ac_exeext
5132 if { (eval echo "$as_me:5132: \"$ac_link\"") >&5
5133 (eval $ac_link) 2>&5
5135 echo "$as_me:5135: \$? = $ac_status" >&5
5136 (exit $ac_status); } &&
5137 { ac_try='test -s conftest$ac_exeext'
5138 { (eval echo "$as_me:5138: \"$ac_try\"") >&5
5141 echo "$as_me:5141: \$? = $ac_status" >&5
5142 (exit $ac_status); }; }; then
5143 ac_cv_func_dlsym=yes
5145 echo "$as_me: failed program was:" >&5
5146 cat conftest.$ac_ext >&5
5149 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5151 echo "$as_me:5151: result: $ac_cv_func_dlsym" >&5
5152 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
5153 if test $ac_cv_func_dlsym = yes; then
5158 echo "$as_me:5158: checking for dlsym in -ldl" >&5
5159 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
5160 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
5161 echo $ECHO_N "(cached) $ECHO_C" >&6
5163 ac_check_lib_save_LIBS=$LIBS
5165 cat >conftest.$ac_ext <<_ACEOF
5166 #line 5166 "configure"
5167 #include "confdefs.h"
5169 /* Override any gcc2 internal prototype to avoid an error. */
5173 /* We use char because int might match the return type of a gcc2
5174 builtin and then its argument prototype would still apply. */
5184 rm -f conftest.$ac_objext conftest$ac_exeext
5185 if { (eval echo "$as_me:5185: \"$ac_link\"") >&5
5186 (eval $ac_link) 2>&5
5188 echo "$as_me:5188: \$? = $ac_status" >&5
5189 (exit $ac_status); } &&
5190 { ac_try='test -s conftest$ac_exeext'
5191 { (eval echo "$as_me:5191: \"$ac_try\"") >&5
5194 echo "$as_me:5194: \$? = $ac_status" >&5
5195 (exit $ac_status); }; }; then
5196 ac_cv_lib_dl_dlsym=yes
5198 echo "$as_me: failed program was:" >&5
5199 cat conftest.$ac_ext >&5
5200 ac_cv_lib_dl_dlsym=no
5202 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5203 LIBS=$ac_check_lib_save_LIBS
5205 echo "$as_me:5205: result: $ac_cv_lib_dl_dlsym" >&5
5206 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
5207 if test $ac_cv_lib_dl_dlsym = yes; then
5215 if test "$cf_have_dlsym" = yes ; then
5216 test "$cf_have_libdl" = yes && LIBS="-ldl $LIBS"
5218 echo "$as_me:5218: checking whether able to link to dl*() functions" >&5
5219 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
5220 cat >conftest.$ac_ext <<_ACEOF
5221 #line 5221 "configure"
5222 #include "confdefs.h"
5229 if ((obj = dlopen("filename", 0)) != 0) {
5230 if (dlsym(obj, "symbolname") == 0) {
5238 rm -f conftest.$ac_objext conftest$ac_exeext
5239 if { (eval echo "$as_me:5239: \"$ac_link\"") >&5
5240 (eval $ac_link) 2>&5
5242 echo "$as_me:5242: \$? = $ac_status" >&5
5243 (exit $ac_status); } &&
5244 { ac_try='test -s conftest$ac_exeext'
5245 { (eval echo "$as_me:5245: \"$ac_try\"") >&5
5248 echo "$as_me:5248: \$? = $ac_status" >&5
5249 (exit $ac_status); }; }; then
5251 cat >>confdefs.h <<\EOF
5252 #define HAVE_LIBDL 1
5256 echo "$as_me: failed program was:" >&5
5257 cat conftest.$ac_ext >&5
5259 { { echo "$as_me:5259: error: Cannot link test program for libdl" >&5
5260 echo "$as_me: error: Cannot link test program for libdl" >&2;}
5261 { (exit 1); exit 1; }; }
5263 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5264 echo "$as_me:5264: result: ok" >&5
5265 echo "${ECHO_T}ok" >&6
5267 { { echo "$as_me:5267: error: Cannot find dlsym function" >&5
5268 echo "$as_me: error: Cannot find dlsym function" >&2;}
5269 { (exit 1); exit 1; }; }
5272 if test "$with_gpm" != yes ; then
5273 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
5275 echo "${as_me:-configure}:5275: testing assuming soname for gpm is $with_gpm ..." 1>&5
5277 cf_cv_gpm_soname="$with_gpm"
5280 echo "$as_me:5280: checking for soname of gpm library" >&5
5281 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
5282 if test "${cf_cv_gpm_soname+set}" = set; then
5283 echo $ECHO_N "(cached) $ECHO_C" >&6
5286 cf_cv_gpm_soname=unknown
5287 if test "$cross_compiling" != yes ; then
5288 cat >conftest.$ac_ext <<CF_EOF
5292 if (Gpm_Open(0,0)) Gpm_Close();
5293 ${cf_cv_main_return:-return}(0);
5296 cf_save_LIBS="$LIBS"
5298 if { (eval echo "$as_me:5298: \"$ac_compile\"") >&5
5299 (eval $ac_compile) 2>&5
5301 echo "$as_me:5301: \$? = $ac_status" >&5
5302 (exit $ac_status); } ; then
5303 if { (eval echo "$as_me:5303: \"$ac_link\"") >&5
5304 (eval $ac_link) 2>&5
5306 echo "$as_me:5306: \$? = $ac_status" >&5
5307 (exit $ac_status); } ; then
5308 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
5309 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
5313 LIBS="$cf_save_LIBS"
5317 echo "$as_me:5317: result: $cf_cv_gpm_soname" >&5
5318 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
5321 test "$cf_cv_gpm_soname" != "unknown" && cat >>confdefs.h <<EOF
5322 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
5325 SHLIB_LIST="-ldl $SHLIB_LIST"
5327 SHLIB_LIST="-lgpm $SHLIB_LIST"
5328 TEST_LIBS="-lgpm $TEST_LIBS"
5330 cat >>confdefs.h <<\EOF
5331 #define HAVE_LIBGPM 1
5334 echo "$as_me:5334: checking for Gpm_Wgetch in -lgpm" >&5
5335 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
5336 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
5337 echo $ECHO_N "(cached) $ECHO_C" >&6
5339 ac_check_lib_save_LIBS=$LIBS
5341 cat >conftest.$ac_ext <<_ACEOF
5342 #line 5342 "configure"
5343 #include "confdefs.h"
5345 /* Override any gcc2 internal prototype to avoid an error. */
5349 /* We use char because int might match the return type of a gcc2
5350 builtin and then its argument prototype would still apply. */
5360 rm -f conftest.$ac_objext conftest$ac_exeext
5361 if { (eval echo "$as_me:5361: \"$ac_link\"") >&5
5362 (eval $ac_link) 2>&5
5364 echo "$as_me:5364: \$? = $ac_status" >&5
5365 (exit $ac_status); } &&
5366 { ac_try='test -s conftest$ac_exeext'
5367 { (eval echo "$as_me:5367: \"$ac_try\"") >&5
5370 echo "$as_me:5370: \$? = $ac_status" >&5
5371 (exit $ac_status); }; }; then
5372 ac_cv_lib_gpm_Gpm_Wgetch=yes
5374 echo "$as_me: failed program was:" >&5
5375 cat conftest.$ac_ext >&5
5376 ac_cv_lib_gpm_Gpm_Wgetch=no
5378 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5379 LIBS=$ac_check_lib_save_LIBS
5381 echo "$as_me:5381: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
5382 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
5383 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
5385 echo "$as_me:5385: checking if GPM is weakly bound to curses library" >&5
5386 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
5387 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
5388 echo $ECHO_N "(cached) $ECHO_C" >&6
5391 cf_cv_check_gpm_wgetch=unknown
5392 if test "$cross_compiling" != yes ; then
5394 cat >conftest.$ac_ext <<CF_EOF
5399 ${cf_cv_main_return:-return}(0);
5403 cf_save_LIBS="$LIBS"
5404 # This only works if we can look at the symbol table. If a shared
5405 # library is stripped for install, we cannot use that. So we're forced
5406 # to rely on the static library, noting that some packagers may not
5408 LIBS="-static -lgpm -dynamic $LIBS"
5409 if { (eval echo "$as_me:5409: \"$ac_compile\"") >&5
5410 (eval $ac_compile) 2>&5
5412 echo "$as_me:5412: \$? = $ac_status" >&5
5413 (exit $ac_status); } ; then
5414 if { (eval echo "$as_me:5414: \"$ac_link\"") >&5
5415 (eval $ac_link) 2>&5
5417 echo "$as_me:5417: \$? = $ac_status" >&5
5418 (exit $ac_status); } ; then
5419 cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
5420 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
5421 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
5425 LIBS="$cf_save_LIBS"
5429 echo "$as_me:5429: result: $cf_cv_check_gpm_wgetch" >&5
5430 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
5432 if test "$cf_cv_check_gpm_wgetch" != yes ; then
5433 { echo "$as_me:5433: WARNING: GPM library is already linked with curses - read the FAQ" >&5
5434 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
5441 # not everyone has "test -c"
5442 if test -c /dev/sysmouse 2>/dev/null ; then
5443 echo "$as_me:5443: checking if you want to use sysmouse" >&5
5444 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
5446 # Check whether --with-sysmouse or --without-sysmouse was given.
5447 if test "${with_sysmouse+set}" = set; then
5448 withval="$with_sysmouse"
5449 cf_with_sysmouse=$withval
5451 cf_with_sysmouse=maybe
5453 if test "$cf_with_sysmouse" != no ; then
5454 cat >conftest.$ac_ext <<_ACEOF
5455 #line 5455 "configure"
5456 #include "confdefs.h"
5458 #include <osreldate.h>
5459 #if (__FreeBSD_version >= 400017)
5460 #include <sys/consio.h>
5461 #include <sys/fbio.h>
5463 #include <machine/console.h>
5470 struct mouse_info the_mouse;
5471 ioctl(0, CONS_MOUSECTL, &the_mouse);
5477 rm -f conftest.$ac_objext
5478 if { (eval echo "$as_me:5478: \"$ac_compile\"") >&5
5479 (eval $ac_compile) 2>&5
5481 echo "$as_me:5481: \$? = $ac_status" >&5
5482 (exit $ac_status); } &&
5483 { ac_try='test -s conftest.$ac_objext'
5484 { (eval echo "$as_me:5484: \"$ac_try\"") >&5
5487 echo "$as_me:5487: \$? = $ac_status" >&5
5488 (exit $ac_status); }; }; then
5489 cf_with_sysmouse=yes
5491 echo "$as_me: failed program was:" >&5
5492 cat conftest.$ac_ext >&5
5495 rm -f conftest.$ac_objext conftest.$ac_ext
5497 echo "$as_me:5497: result: $cf_with_sysmouse" >&5
5498 echo "${ECHO_T}$cf_with_sysmouse" >&6
5499 test "$cf_with_sysmouse" = yes && cat >>confdefs.h <<\EOF
5500 #define USE_SYSMOUSE 1
5505 if test X"$CC_G_OPT" = X"" ; then
5507 test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
5510 if test X"$CXX_G_OPT" = X"" ; then
5512 test -n "$GXX" && test "${ac_cv_prog_cxx_g}" != yes && CXX_G_OPT=''
5515 echo "$as_me:5515: checking for default loader flags" >&5
5516 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
5517 case $DFT_LWR_MODEL in
5518 libtool) LD_MODEL='' ;;
5519 normal) LD_MODEL='' ;;
5520 debug) LD_MODEL=$CC_G_OPT ;;
5521 profile) LD_MODEL='-pg';;
5522 shared) LD_MODEL='' ;;
5524 echo "$as_me:5524: result: $LD_MODEL" >&5
5525 echo "${ECHO_T}$LD_MODEL" >&6
5527 case $DFT_LWR_MODEL in
5530 echo "$as_me:5530: checking if rpath option should be used" >&5
5531 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
5533 # Check whether --enable-rpath or --disable-rpath was given.
5534 if test "${enable_rpath+set}" = set; then
5535 enableval="$enable_rpath"
5536 cf_cv_enable_rpath=$enableval
5538 cf_cv_enable_rpath=no
5540 echo "$as_me:5540: result: $cf_cv_enable_rpath" >&5
5541 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
5543 echo "$as_me:5543: checking if shared libraries should be relinked during install" >&5
5544 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
5546 # Check whether --enable-relink or --disable-relink was given.
5547 if test "${enable_relink+set}" = set; then
5548 enableval="$enable_relink"
5549 cf_cv_do_relink=$enableval
5553 echo "$as_me:5553: result: $cf_cv_do_relink" >&5
5554 echo "${ECHO_T}$cf_cv_do_relink" >&6
5559 echo "$as_me:5559: checking for an rpath option" >&5
5560 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
5561 case $cf_cv_system_name in #(vi
5563 if test "$GCC" = yes; then
5564 LD_RPATH_OPT="-Wl,-rpath,"
5566 LD_RPATH_OPT="-rpath "
5569 linux*|gnu*|k*bsd*-gnu) #(vi
5570 LD_RPATH_OPT="-Wl,-rpath,"
5572 openbsd[2-9].*|mirbsd*) #(vi
5573 LD_RPATH_OPT="-Wl,-rpath,"
5575 dragonfly*|freebsd*) #(vi
5576 LD_RPATH_OPT="-rpath "
5579 LD_RPATH_OPT="-Wl,-rpath,"
5582 LD_RPATH_OPT="-rpath "
5590 echo "$as_me:5590: result: $LD_RPATH_OPT" >&5
5591 echo "${ECHO_T}$LD_RPATH_OPT" >&6
5593 case "x$LD_RPATH_OPT" in #(vi
5595 echo "$as_me:5595: checking if we need a space after rpath option" >&5
5596 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
5597 cf_save_LIBS="$LIBS"
5598 LIBS="${LD_RPATH_OPT}$libdir $LIBS"
5599 cat >conftest.$ac_ext <<_ACEOF
5600 #line 5600 "configure"
5601 #include "confdefs.h"
5611 rm -f conftest.$ac_objext conftest$ac_exeext
5612 if { (eval echo "$as_me:5612: \"$ac_link\"") >&5
5613 (eval $ac_link) 2>&5
5615 echo "$as_me:5615: \$? = $ac_status" >&5
5616 (exit $ac_status); } &&
5617 { ac_try='test -s conftest$ac_exeext'
5618 { (eval echo "$as_me:5618: \"$ac_try\"") >&5
5621 echo "$as_me:5621: \$? = $ac_status" >&5
5622 (exit $ac_status); }; }; then
5625 echo "$as_me: failed program was:" >&5
5626 cat conftest.$ac_ext >&5
5629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5630 LIBS="$cf_save_LIBS"
5631 echo "$as_me:5631: result: $cf_rpath_space" >&5
5632 echo "${ECHO_T}$cf_rpath_space" >&6
5633 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
5640 INSTALL_LIB="-m 644"
5642 cf_cv_do_symlinks=no
5644 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
5646 echo "$as_me:5646: checking if release/abi version should be used for shared libs" >&5
5647 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
5649 # Check whether --with-shlib-version or --without-shlib-version was given.
5650 if test "${with_shlib_version+set}" = set; then
5651 withval="$with_shlib_version"
5652 test -z "$withval" && withval=auto
5653 case $withval in #(vi
5655 cf_cv_shlib_version=auto
5657 rel|abi|auto|no) #(vi
5658 cf_cv_shlib_version=$withval
5661 { { echo "$as_me:5661: error: option value must be one of: rel, abi, auto or no" >&5
5662 echo "$as_me: error: option value must be one of: rel, abi, auto or no" >&2;}
5663 { (exit 1); exit 1; }; }
5668 cf_cv_shlib_version=auto
5670 echo "$as_me:5670: result: $cf_cv_shlib_version" >&5
5671 echo "${ECHO_T}$cf_cv_shlib_version" >&6
5675 # Some less-capable ports of gcc support only -fpic
5677 if test "$GCC" = yes
5679 echo "$as_me:5679: checking which $CC option to use" >&5
5680 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
5681 cf_save_CFLAGS="$CFLAGS"
5682 for CC_SHARED_OPTS in -fPIC -fpic ''
5684 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
5685 cat >conftest.$ac_ext <<_ACEOF
5686 #line 5686 "configure"
5687 #include "confdefs.h"
5697 rm -f conftest.$ac_objext
5698 if { (eval echo "$as_me:5698: \"$ac_compile\"") >&5
5699 (eval $ac_compile) 2>&5
5701 echo "$as_me:5701: \$? = $ac_status" >&5
5702 (exit $ac_status); } &&
5703 { ac_try='test -s conftest.$ac_objext'
5704 { (eval echo "$as_me:5704: \"$ac_try\"") >&5
5707 echo "$as_me:5707: \$? = $ac_status" >&5
5708 (exit $ac_status); }; }; then
5711 echo "$as_me: failed program was:" >&5
5712 cat conftest.$ac_ext >&5
5714 rm -f conftest.$ac_objext conftest.$ac_ext
5716 echo "$as_me:5716: result: $CC_SHARED_OPTS" >&5
5717 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
5718 CFLAGS="$cf_save_CFLAGS"
5721 cf_cv_shlib_version_infix=no
5723 case $cf_cv_system_name in #(vi
5724 aix4.3-9*|aix[5-7]*) #(vi
5725 if test "$GCC" = yes; then
5727 MK_SHARED_LIB='${CC} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
5729 # CC_SHARED_OPTS='-qpic=large -G'
5730 # perhaps "-bM:SRE -bnoentry -bexpall"
5731 MK_SHARED_LIB='${CC} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
5735 MK_SHARED_LIB='${CC} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
5739 MK_SHARED_LIB='sh ../mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5740 cf_cv_shlib_version=cygdll
5741 cf_cv_shlib_version_infix=cygdll
5742 cat >mk_shared_lib.sh <<-CF_EOF
5745 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
5748 Linking shared library
5749 ** SHARED_LIB \$SHARED_LIB
5750 ** IMPORT_LIB \$IMPORT_LIB
5752 exec \$* -shared -Wl,--out-implib=../lib/\${IMPORT_LIB} -Wl,--export-all-symbols -o ../lib/\${SHARED_LIB}
5754 chmod +x mk_shared_lib.sh
5757 EXTRA_CFLAGS="-no-cpp-precomp"
5758 CC_SHARED_OPTS="-dynamic"
5759 MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
5760 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
5761 cf_cv_shlib_version_infix=yes
5762 echo "$as_me:5762: checking if ld -search_paths_first works" >&5
5763 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
5764 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
5765 echo $ECHO_N "(cached) $ECHO_C" >&6
5768 cf_save_LDFLAGS=$LDFLAGS
5769 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5770 cat >conftest.$ac_ext <<_ACEOF
5771 #line 5771 "configure"
5772 #include "confdefs.h"
5782 rm -f conftest.$ac_objext conftest$ac_exeext
5783 if { (eval echo "$as_me:5783: \"$ac_link\"") >&5
5784 (eval $ac_link) 2>&5
5786 echo "$as_me:5786: \$? = $ac_status" >&5
5787 (exit $ac_status); } &&
5788 { ac_try='test -s conftest$ac_exeext'
5789 { (eval echo "$as_me:5789: \"$ac_try\"") >&5
5792 echo "$as_me:5792: \$? = $ac_status" >&5
5793 (exit $ac_status); }; }; then
5794 cf_cv_ldflags_search_paths_first=yes
5796 echo "$as_me: failed program was:" >&5
5797 cat conftest.$ac_ext >&5
5798 cf_cv_ldflags_search_paths_first=no
5800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5801 LDFLAGS=$cf_save_LDFLAGS
5803 echo "$as_me:5803: result: $cf_cv_ldflags_search_paths_first" >&5
5804 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
5805 if test $cf_cv_ldflags_search_paths_first = yes; then
5806 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5810 # (tested with gcc 2.7.2 -- I don't have c89)
5811 if test "$GCC" = yes; then
5812 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
5815 LD_SHARED_OPTS='-Wl,+b,${libdir}'
5817 MK_SHARED_LIB='${LD} +b ${libdir} -b -o $@'
5818 # HP-UX shared libraries must be executable, and should be
5819 # readonly to exploit a quirk in the memory manager.
5820 INSTALL_LIB="-m 555"
5823 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5824 if test "$cf_cv_shlib_version" = rel; then
5825 cf_shared_soname='`basename .${REL_VERSION}`.${ABI_VERSION}'
5827 cf_shared_soname='`basename `'
5830 MK_SHARED_LIB='${CC} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o '
5833 if test "$cf_cv_enable_rpath" = yes ; then
5834 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5836 # tested with IRIX 5.2 and 'cc'.
5837 if test "$GCC" != yes; then
5838 CC_SHARED_OPTS='-KPIC'
5839 MK_SHARED_LIB='${CC} -shared -rdata_shared -soname `basename $@` -o $@'
5841 MK_SHARED_LIB='${CC} -shared -Wl,-soname,`basename $@` -o $@'
5843 cf_cv_rm_so_locs=yes
5845 linux*|gnu*|k*bsd*-gnu) #(vi
5846 if test "$DFT_LWR_MODEL" = "shared" ; then
5847 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5848 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5850 if test "$cf_cv_enable_rpath" = yes ; then
5851 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5854 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5855 if test "$cf_cv_shlib_version" = rel; then
5856 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5858 cf_cv_shared_soname='`basename $@`'
5861 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5864 cf_cv_shlib_version=mingw
5865 cf_cv_shlib_version_infix=mingw
5867 MK_SHARED_LIB='sh ../mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5868 #MK_SHARED_LIB='${CC} ${CFLAGS} -mdll -Wl,-soname,'$cf_cv_shared_soname',-stats -o $[@]'
5869 #MK_SHARED_LIB='${DLLTOOL} --export-all-symbols --output-exp --output-lib $[@]'
5870 cat >mk_shared_lib.sh <<-CF_EOF
5873 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
5876 Linking shared library
5877 ** SHARED_LIB \$SHARED_LIB
5878 ** IMPORT_LIB \$IMPORT_LIB
5880 exec \$* -shared -Wl,--out-implib=../lib/\${IMPORT_LIB} -Wl,--export-all-symbols -o ../lib/\${SHARED_LIB}
5882 chmod +x mk_shared_lib.sh
5884 openbsd[2-9].*|mirbsd*) #(vi
5885 if test "$DFT_LWR_MODEL" = "shared" ; then
5886 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5887 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5889 if test "$cf_cv_enable_rpath" = yes ; then
5890 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5892 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5894 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5895 if test "$cf_cv_shlib_version" = rel; then
5896 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5898 cf_cv_shared_soname='`basename $@`'
5901 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5903 nto-qnx*|openbsd*|freebsd[12].*) #(vi
5904 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5905 MK_SHARED_LIB='${LD} -Bshareable -o $@'
5906 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5908 dragonfly*|freebsd*) #(vi
5909 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5910 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
5911 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
5912 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
5913 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5916 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5917 if test "$cf_cv_shlib_version" = rel; then
5918 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5920 cf_cv_shared_soname='`basename $@`'
5923 MK_SHARED_LIB='${LD} -shared -Bshareable -soname=`basename $@` -o $@'
5926 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5927 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
5928 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
5929 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5930 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5931 if test "$cf_cv_shlib_version" = auto; then
5932 if test -f /usr/libexec/ld.elf_so; then
5933 cf_cv_shlib_version=abi
5935 cf_cv_shlib_version=rel
5939 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5940 if test "$cf_cv_shlib_version" = rel; then
5941 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5943 cf_cv_shared_soname='`basename $@`'
5946 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
5948 MK_SHARED_LIB='${LD} -shared -Bshareable -o $@'
5952 # tested with OSF/1 V3.2 and 'cc'
5953 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
5954 # link with shared libs).
5955 MK_SHARED_LIB='${LD} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
5956 case $host_os in #(vi
5958 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
5961 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
5962 if test "$DFT_LWR_MODEL" = "shared" ; then
5963 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5964 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5966 cf_cv_rm_so_locs=yes
5968 sco3.2v5*) # (also uw2* and UW7: hops 13-Apr-98
5969 # tested with osr5.0.5
5970 if test "$GCC" != yes; then
5971 CC_SHARED_OPTS='-belf -KPIC'
5973 MK_SHARED_LIB='${LD} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
5974 if test "$cf_cv_enable_rpath" = yes ; then
5975 # only way is to set LD_RUN_PATH but no switch for it
5978 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5979 LINK_PROGS='LD_RUN_PATH=${libdir}'
5980 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
5983 # tested with SunOS 4.1.1 and gcc 2.7.0
5984 if test "$GCC" != yes; then
5985 CC_SHARED_OPTS='-KPIC'
5987 MK_SHARED_LIB='${LD} -assert pure-text -o $@'
5988 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5991 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
5992 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
5993 if test "$DFT_LWR_MODEL" = "shared" ; then
5994 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
5995 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5997 if test "$cf_cv_enable_rpath" = yes ; then
5998 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
6001 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6002 if test "$cf_cv_shlib_version" = rel; then
6003 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6005 cf_cv_shared_soname='`basename $@`'
6008 if test "$GCC" != yes; then
6009 cf_save_CFLAGS="$CFLAGS"
6010 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
6012 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
6013 cat >conftest.$ac_ext <<_ACEOF
6014 #line 6014 "configure"
6015 #include "confdefs.h"
6025 rm -f conftest.$ac_objext
6026 if { (eval echo "$as_me:6026: \"$ac_compile\"") >&5
6027 (eval $ac_compile) 2>&5
6029 echo "$as_me:6029: \$? = $ac_status" >&5
6030 (exit $ac_status); } &&
6031 { ac_try='test -s conftest.$ac_objext'
6032 { (eval echo "$as_me:6032: \"$ac_try\"") >&5
6035 echo "$as_me:6035: \$? = $ac_status" >&5
6036 (exit $ac_status); }; }; then
6039 echo "$as_me: failed program was:" >&5
6040 cat conftest.$ac_ext >&5
6042 rm -f conftest.$ac_objext conftest.$ac_ext
6044 CFLAGS="$cf_save_CFLAGS"
6045 CC_SHARED_OPTS=$cf_shared_opts
6046 MK_SHARED_LIB='${CC} -dy -G -h '$cf_cv_shared_soname' -o $@'
6048 MK_SHARED_LIB='${CC} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
6051 sysv5uw7*|unix_sv*) #(vi
6052 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
6053 if test "$GCC" != yes; then
6054 CC_SHARED_OPTS='-KPIC'
6056 MK_SHARED_LIB='${LD} -d y -G -o $@'
6059 CC_SHARED_OPTS='unknown'
6060 MK_SHARED_LIB='echo unknown'
6064 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
6065 case "$cf_cv_shlib_version" in #(vi
6067 case "$MK_SHARED_LIB" in #(vi
6069 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
6072 { echo "$as_me:6072: WARNING: ignored --with-shlib-version" >&5
6073 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
6079 # RPATH_LIST is a colon-separated list of directories
6080 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
6081 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
6083 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
6085 echo "${as_me:-configure}:6085: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
6087 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6089 echo "${as_me:-configure}:6089: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6091 if test "$CC_SHARED_OPTS" = "unknown"; then
6092 for model in $cf_list_models; do
6093 if test "$model" = "shared"; then
6094 { { echo "$as_me:6094: error: Shared libraries are not supported in this version" >&5
6095 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
6096 { (exit 1); exit 1; }; }
6101 ### If we're building with rpath, try to link non-standard libs that way too.
6102 if test "$DFT_LWR_MODEL" = "shared"; then
6104 echo "$as_me:6104: checking if rpath-hack should be disabled" >&5
6105 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
6107 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
6108 if test "${enable_rpath_hack+set}" = set; then
6109 enableval="$enable_rpath_hack"
6110 test "$enableval" != no && enableval=yes
6111 if test "$enableval" != "yes" ; then
6112 cf_disable_rpath_hack=yes
6114 cf_disable_rpath_hack=no
6118 cf_disable_rpath_hack=no
6121 echo "$as_me:6121: result: $cf_disable_rpath_hack" >&5
6122 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
6123 if test "$cf_disable_rpath_hack" = no ; then
6125 echo "$as_me:6125: checking for updated LDFLAGS" >&5
6126 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
6127 if test -n "$LD_RPATH_OPT" ; then
6128 echo "$as_me:6128: result: maybe" >&5
6129 echo "${ECHO_T}maybe" >&6
6133 # Extract the first word of "$ac_prog", so it can be a program name with args.
6134 set dummy $ac_prog; ac_word=$2
6135 echo "$as_me:6135: checking for $ac_word" >&5
6136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6137 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
6138 echo $ECHO_N "(cached) $ECHO_C" >&6
6140 if test -n "$cf_ldd_prog"; then
6141 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
6143 ac_save_IFS=$IFS; IFS=$ac_path_separator
6145 for ac_dir in $ac_dummy; do
6147 test -z "$ac_dir" && ac_dir=.
6148 $as_executable_p "$ac_dir/$ac_word" || continue
6149 ac_cv_prog_cf_ldd_prog="$ac_prog"
6150 echo "$as_me:6150: found $ac_dir/$ac_word" >&5
6156 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
6157 if test -n "$cf_ldd_prog"; then
6158 echo "$as_me:6158: result: $cf_ldd_prog" >&5
6159 echo "${ECHO_T}$cf_ldd_prog" >&6
6161 echo "$as_me:6161: result: no" >&5
6162 echo "${ECHO_T}no" >&6
6165 test -n "$cf_ldd_prog" && break
6167 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
6169 cf_rpath_list="/usr/lib /lib"
6170 if test "$cf_ldd_prog" != no
6174 cat >conftest.$ac_ext <<_ACEOF
6175 #line 6175 "configure"
6176 #include "confdefs.h"
6186 rm -f conftest.$ac_objext conftest$ac_exeext
6187 if { (eval echo "$as_me:6187: \"$ac_link\"") >&5
6188 (eval $ac_link) 2>&5
6190 echo "$as_me:6190: \$? = $ac_status" >&5
6191 (exit $ac_status); } &&
6192 { ac_try='test -s conftest$ac_exeext'
6193 { (eval echo "$as_me:6193: \"$ac_try\"") >&5
6196 echo "$as_me:6196: \$? = $ac_status" >&5
6197 (exit $ac_status); }; }; then
6198 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort -u`
6199 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort -u`
6201 echo "$as_me: failed program was:" >&5
6202 cat conftest.$ac_ext >&5
6204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6206 # If we passed the link-test, but get a "not found" on a given library,
6207 # this could be due to inept reconfiguration of gcc to make it only
6208 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
6209 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
6210 # /usr/local libraries.
6211 if test -n "$cf_rpath_oops"
6213 for cf_rpath_src in $cf_rpath_oops
6215 for cf_rpath_dir in \
6220 if test -f $cf_rpath_dir/lib/$cf_rpath_src
6222 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
6224 echo "${as_me:-configure}:6224: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
6226 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
6234 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
6236 echo "${as_me:-configure}:6236: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
6238 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
6240 echo "${as_me:-configure}:6240: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
6243 for cf_rpath_src in $LDFLAGS
6245 case $cf_rpath_src in #(vi
6248 # check if this refers to a directory which we will ignore
6250 if test -n "$cf_rpath_list"
6252 for cf_rpath_item in $cf_rpath_list
6254 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
6262 if test "$cf_rpath_skip" = no
6264 # transform the option
6265 if test "$LD_RPATH_OPT" = "-R " ; then
6266 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
6268 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
6271 # if we have not already added this, add it now
6272 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
6273 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
6275 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
6277 echo "${as_me:-configure}:6277: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
6279 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
6284 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
6286 LDFLAGS=$cf_rpath_dst
6288 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
6290 echo "${as_me:-configure}:6290: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
6292 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
6294 echo "${as_me:-configure}:6294: testing ...checking LIBS $LIBS ..." 1>&5
6297 for cf_rpath_src in $LIBS
6299 case $cf_rpath_src in #(vi
6302 # check if this refers to a directory which we will ignore
6304 if test -n "$cf_rpath_list"
6306 for cf_rpath_item in $cf_rpath_list
6308 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
6316 if test "$cf_rpath_skip" = no
6318 # transform the option
6319 if test "$LD_RPATH_OPT" = "-R " ; then
6320 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
6322 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
6325 # if we have not already added this, add it now
6326 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
6327 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
6329 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
6331 echo "${as_me:-configure}:6331: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
6333 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
6338 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
6342 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
6344 echo "${as_me:-configure}:6344: testing ...checked LIBS $LIBS ..." 1>&5
6346 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
6348 echo "${as_me:-configure}:6348: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
6356 ###############################################################################
6358 ### use option --disable-overwrite to leave out the link to -lcurses
6359 echo "$as_me:6359: checking if you wish to install ncurses overwriting curses" >&5
6360 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
6362 # Check whether --enable-overwrite or --disable-overwrite was given.
6363 if test "${enable_overwrite+set}" = set; then
6364 enableval="$enable_overwrite"
6365 with_overwrite=$enableval
6367 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
6369 echo "$as_me:6369: result: $with_overwrite" >&5
6370 echo "${ECHO_T}$with_overwrite" >&6
6372 echo "$as_me:6372: checking if external terminfo-database is used" >&5
6373 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
6375 # Check whether --enable-database or --disable-database was given.
6376 if test "${enable_database+set}" = set; then
6377 enableval="$enable_database"
6378 use_database=$enableval
6382 echo "$as_me:6382: result: $use_database" >&5
6383 echo "${ECHO_T}$use_database" >&6
6385 case $host_os in #(vi
6387 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
6390 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
6394 if test "$use_database" != no ; then
6395 cat >>confdefs.h <<\EOF
6396 #define USE_DATABASE 1
6399 echo "$as_me:6399: checking which terminfo source-file will be installed" >&5
6400 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
6402 # Check whether --with-database or --without-database was given.
6403 if test "${with_database+set}" = set; then
6404 withval="$with_database"
6405 TERMINFO_SRC=$withval
6407 echo "$as_me:6407: result: $TERMINFO_SRC" >&5
6408 echo "${ECHO_T}$TERMINFO_SRC" >&6
6410 echo "$as_me:6410: checking whether to use hashed database instead of directory/tree" >&5
6411 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
6413 # Check whether --with-hashed-db or --without-hashed-db was given.
6414 if test "${with_hashed_db+set}" = set; then
6415 withval="$with_hashed_db"
6420 echo "$as_me:6420: result: $with_hashed_db" >&5
6421 echo "${ECHO_T}$with_hashed_db" >&6
6426 echo "$as_me:6426: checking for list of fallback descriptions" >&5
6427 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
6429 # Check whether --with-fallbacks or --without-fallbacks was given.
6430 if test "${with_fallbacks+set}" = set; then
6431 withval="$with_fallbacks"
6432 with_fallback=$withval
6436 echo "$as_me:6436: result: $with_fallback" >&5
6437 echo "${ECHO_T}$with_fallback" >&6
6438 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
6440 echo "$as_me:6440: checking if you want modern xterm or antique" >&5
6441 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
6443 # Check whether --with-xterm-new or --without-xterm-new was given.
6444 if test "${with_xterm_new+set}" = set; then
6445 withval="$with_xterm_new"
6446 with_xterm_new=$withval
6450 case $with_xterm_new in
6451 no) with_xterm_new=xterm-old;;
6452 *) with_xterm_new=xterm-new;;
6454 echo "$as_me:6454: result: $with_xterm_new" >&5
6455 echo "${ECHO_T}$with_xterm_new" >&6
6456 WHICH_XTERM=$with_xterm_new
6458 echo "$as_me:6458: checking if xterm backspace sends BS or DEL" >&5
6459 echo $ECHO_N "checking if xterm backspace sends BS or DEL... $ECHO_C" >&6
6461 # Check whether --with-xterm-kbs or --without-xterm-kbs was given.
6462 if test "${with_xterm_kbs+set}" = set; then
6463 withval="$with_xterm_kbs"
6464 with_xterm_kbs=$withval
6468 case x$with_xterm_kbs in
6469 xyes|xno|xBS|xbs|x8)
6476 with_xterm_kbs=$withval
6479 echo "$as_me:6479: result: $with_xterm_kbs" >&5
6480 echo "${ECHO_T}$with_xterm_kbs" >&6
6481 XTERM_KBS=$with_xterm_kbs
6484 if test "$use_database" = no ; then
6485 TERMINFO="${datadir}/terminfo"
6489 echo "$as_me:6489: checking for list of terminfo directories" >&5
6490 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
6492 case $cf_cv_system_name in
6493 os2*) PATH_SEPARATOR=';' ;;
6494 *) PATH_SEPARATOR=':' ;;
6497 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
6498 if test "${with_terminfo_dirs+set}" = set; then
6499 withval="$with_terminfo_dirs"
6502 withval=${TERMINFO_DIRS:-${datadir}/terminfo}
6504 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
6506 for cf_src_path in $withval
6509 if test "x$prefix" != xNONE; then
6510 cf_path_syntax="$prefix"
6512 cf_path_syntax="$ac_default_prefix"
6515 case ".$cf_src_path" in #(vi
6516 .\$\(*\)*|.\'*\'*) #(vi
6520 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6523 eval cf_src_path="$cf_src_path"
6524 case ".$cf_src_path" in #(vi
6526 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6531 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6534 { { echo "$as_me:6534: error: expected a pathname, not \"$cf_src_path\"" >&5
6535 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
6536 { (exit 1); exit 1; }; }
6540 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
6541 cf_dst_path="${cf_dst_path}${cf_src_path}"
6545 eval 'TERMINFO_DIRS="$cf_dst_path"'
6547 echo "$as_me:6547: result: $TERMINFO_DIRS" >&5
6548 echo "${ECHO_T}$TERMINFO_DIRS" >&6
6549 test -n "$TERMINFO_DIRS" && cat >>confdefs.h <<EOF
6550 #define TERMINFO_DIRS "$TERMINFO_DIRS"
6553 echo "$as_me:6553: checking for default terminfo directory" >&5
6554 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
6556 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
6557 if test "${with_default_terminfo_dir+set}" = set; then
6558 withval="$with_default_terminfo_dir"
6561 withval="${TERMINFO:-${datadir}/terminfo}"
6562 fi; if test -n "${datadir}/terminfo" ; then
6564 if test "x$prefix" != xNONE; then
6565 cf_path_syntax="$prefix"
6567 cf_path_syntax="$ac_default_prefix"
6570 case ".$withval" in #(vi
6571 .\$\(*\)*|.\'*\'*) #(vi
6575 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6578 eval withval="$withval"
6579 case ".$withval" in #(vi
6581 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
6586 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
6589 { { echo "$as_me:6589: error: expected a pathname, not \"$withval\"" >&5
6590 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
6591 { (exit 1); exit 1; }; }
6598 echo "$as_me:6598: result: $TERMINFO" >&5
6599 echo "${ECHO_T}$TERMINFO" >&6
6600 cat >>confdefs.h <<EOF
6601 #define TERMINFO "$TERMINFO"
6606 ### use option --disable-big-core to make tic run on small machines
6607 ### We need 4Mb, check if we can allocate 50% more than that.
6608 echo "$as_me:6608: checking if big-core option selected" >&5
6609 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
6611 # Check whether --enable-big-core or --disable-big-core was given.
6612 if test "${enable_big_core+set}" = set; then
6613 enableval="$enable_big_core"
6614 with_big_core=$enableval
6616 if test "$cross_compiling" = yes; then
6619 cat >conftest.$ac_ext <<_ACEOF
6620 #line 6620 "configure"
6621 #include "confdefs.h"
6626 unsigned long n = 6000000L;
6627 char *s = malloc(n);
6630 ${cf_cv_main_return:-return}(s == 0);
6633 rm -f conftest$ac_exeext
6634 if { (eval echo "$as_me:6634: \"$ac_link\"") >&5
6635 (eval $ac_link) 2>&5
6637 echo "$as_me:6637: \$? = $ac_status" >&5
6638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6639 { (eval echo "$as_me:6639: \"$ac_try\"") >&5
6642 echo "$as_me:6642: \$? = $ac_status" >&5
6643 (exit $ac_status); }; }; then
6646 echo "$as_me: program exited with status $ac_status" >&5
6647 echo "$as_me: failed program was:" >&5
6648 cat conftest.$ac_ext >&5
6651 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6654 echo "$as_me:6654: result: $with_big_core" >&5
6655 echo "${ECHO_T}$with_big_core" >&6
6656 test "$with_big_core" = "yes" && cat >>confdefs.h <<\EOF
6657 #define HAVE_BIG_CORE 1
6660 ### ISO C only guarantees 512-char strings, we have tables which load faster
6661 ### when constructed using "big" strings. More than the C compiler, the awk
6662 ### program is a limit on most vendor UNIX systems. Check that we can build.
6663 echo "$as_me:6663: checking if big-strings option selected" >&5
6664 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
6666 # Check whether --enable-big-strings or --disable-big-strings was given.
6667 if test "${enable_big_strings+set}" = set; then
6668 enableval="$enable_big_strings"
6669 with_big_strings=$enableval
6674 eval with_big_strings=no
6677 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' 2>/dev/null \
6678 | $AWK '{ printf "%d\n", length($0); }' 2>/dev/null | $AWK 'BEGIN { eqls=0; recs=0; } { recs++; if ($0 == 12000) eqls++; } END { if (recs != 1 || eqls != 1) exit 1; }' 2>/dev/null >/dev/null ) ; then
6679 eval with_big_strings=yes
6681 eval with_big_strings=no
6687 echo "$as_me:6687: result: $with_big_strings" >&5
6688 echo "${ECHO_T}$with_big_strings" >&6
6691 test "$with_big_strings" = "yes" && USE_BIG_STRINGS=1
6693 ### use option --enable-termcap to compile in the termcap fallback support
6694 echo "$as_me:6694: checking if you want termcap-fallback support" >&5
6695 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
6697 # Check whether --enable-termcap or --disable-termcap was given.
6698 if test "${enable_termcap+set}" = set; then
6699 enableval="$enable_termcap"
6700 with_termcap=$enableval
6704 echo "$as_me:6704: result: $with_termcap" >&5
6705 echo "${ECHO_T}$with_termcap" >&6
6707 if test "$with_termcap" != "yes" ; then
6708 if test "$use_database" = no ; then
6709 if test -z "$with_fallback" ; then
6710 { { echo "$as_me:6710: error: You have disabled the database w/o specifying fallbacks" >&5
6711 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
6712 { (exit 1); exit 1; }; }
6715 cat >>confdefs.h <<\EOF
6716 #define PURE_TERMINFO 1
6721 if test "$with_ticlib" != no ; then
6722 { { echo "$as_me:6722: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
6723 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
6724 { (exit 1); exit 1; }; }
6727 cat >>confdefs.h <<\EOF
6728 #define USE_TERMCAP 1
6731 echo "$as_me:6731: checking for list of termcap files" >&5
6732 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
6734 # Check whether --with-termpath or --without-termpath was given.
6735 if test "${with_termpath+set}" = set; then
6736 withval="$with_termpath"
6739 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap}
6741 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
6743 for cf_src_path in $withval
6746 if test "x$prefix" != xNONE; then
6747 cf_path_syntax="$prefix"
6749 cf_path_syntax="$ac_default_prefix"
6752 case ".$cf_src_path" in #(vi
6753 .\$\(*\)*|.\'*\'*) #(vi
6757 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6760 eval cf_src_path="$cf_src_path"
6761 case ".$cf_src_path" in #(vi
6763 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6768 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6771 { { echo "$as_me:6771: error: expected a pathname, not \"$cf_src_path\"" >&5
6772 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
6773 { (exit 1); exit 1; }; }
6777 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
6778 cf_dst_path="${cf_dst_path}${cf_src_path}"
6782 eval 'TERMPATH="$cf_dst_path"'
6784 echo "$as_me:6784: result: $TERMPATH" >&5
6785 echo "${ECHO_T}$TERMPATH" >&6
6786 test -n "$TERMPATH" && cat >>confdefs.h <<EOF
6787 #define TERMPATH "$TERMPATH"
6790 ### use option --enable-getcap to use a hacked getcap for reading termcaps
6791 echo "$as_me:6791: checking if fast termcap-loader is needed" >&5
6792 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
6794 # Check whether --enable-getcap or --disable-getcap was given.
6795 if test "${enable_getcap+set}" = set; then
6796 enableval="$enable_getcap"
6797 with_getcap=$enableval
6801 echo "$as_me:6801: result: $with_getcap" >&5
6802 echo "${ECHO_T}$with_getcap" >&6
6803 test "$with_getcap" = "yes" && cat >>confdefs.h <<\EOF
6804 #define USE_GETCAP 1
6807 echo "$as_me:6807: checking if translated termcaps will be cached in ~/.terminfo" >&5
6808 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
6810 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
6811 if test "${enable_getcap_cache+set}" = set; then
6812 enableval="$enable_getcap_cache"
6813 with_getcap_cache=$enableval
6815 with_getcap_cache=no
6817 echo "$as_me:6817: result: $with_getcap_cache" >&5
6818 echo "${ECHO_T}$with_getcap_cache" >&6
6819 test "$with_getcap_cache" = "yes" && cat >>confdefs.h <<\EOF
6820 #define USE_GETCAP_CACHE 1
6825 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
6826 echo "$as_me:6826: checking if ~/.terminfo is wanted" >&5
6827 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
6829 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
6830 if test "${enable_home_terminfo+set}" = set; then
6831 enableval="$enable_home_terminfo"
6832 with_home_terminfo=$enableval
6834 with_home_terminfo=yes
6836 echo "$as_me:6836: result: $with_home_terminfo" >&5
6837 echo "${ECHO_T}$with_home_terminfo" >&6
6838 test "$with_home_terminfo" = "yes" && cat >>confdefs.h <<\EOF
6839 #define USE_HOME_TERMINFO 1
6842 echo "$as_me:6842: checking if you want to use restricted environment when running as root" >&5
6843 echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6
6845 # Check whether --enable-root-environ or --disable-root-environ was given.
6846 if test "${enable_root_environ+set}" = set; then
6847 enableval="$enable_root_environ"
6848 with_root_environ=$enableval
6850 with_root_environ=yes
6852 echo "$as_me:6852: result: $with_root_environ" >&5
6853 echo "${ECHO_T}$with_root_environ" >&6
6854 test "$with_root_environ" = yes && cat >>confdefs.h <<\EOF
6855 #define USE_ROOT_ENVIRON 1
6858 ### Use option --enable-symlinks to make tic use symlinks, not hard links
6859 ### to reduce storage requirements for the terminfo database.
6865 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6866 echo "$as_me:6866: checking for $ac_func" >&5
6867 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6868 if eval "test \"\${$as_ac_var+set}\" = set"; then
6869 echo $ECHO_N "(cached) $ECHO_C" >&6
6871 cat >conftest.$ac_ext <<_ACEOF
6872 #line 6872 "configure"
6873 #include "confdefs.h"
6874 /* System header to define __stub macros and hopefully few prototypes,
6875 which can conflict with char $ac_func (); below. */
6877 /* Override any gcc2 internal prototype to avoid an error. */
6881 /* We use char because int might match the return type of a gcc2
6882 builtin and then its argument prototype would still apply. */
6889 /* The GNU C library defines this for functions which it implements
6890 to always fail with ENOSYS. Some functions are actually named
6891 something starting with __ and the normal name is an alias. */
6892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6902 rm -f conftest.$ac_objext conftest$ac_exeext
6903 if { (eval echo "$as_me:6903: \"$ac_link\"") >&5
6904 (eval $ac_link) 2>&5
6906 echo "$as_me:6906: \$? = $ac_status" >&5
6907 (exit $ac_status); } &&
6908 { ac_try='test -s conftest$ac_exeext'
6909 { (eval echo "$as_me:6909: \"$ac_try\"") >&5
6912 echo "$as_me:6912: \$? = $ac_status" >&5
6913 (exit $ac_status); }; }; then
6914 eval "$as_ac_var=yes"
6916 echo "$as_me: failed program was:" >&5
6917 cat conftest.$ac_ext >&5
6918 eval "$as_ac_var=no"
6920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6922 echo "$as_me:6922: result: `eval echo '${'$as_ac_var'}'`" >&5
6923 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6924 if test `eval echo '${'$as_ac_var'}'` = yes; then
6925 cat >>confdefs.h <<EOF
6926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6932 if test "$cross_compiling" = yes ; then
6938 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6939 echo "$as_me:6939: checking for $ac_func" >&5
6940 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6941 if eval "test \"\${$as_ac_var+set}\" = set"; then
6942 echo $ECHO_N "(cached) $ECHO_C" >&6
6944 cat >conftest.$ac_ext <<_ACEOF
6945 #line 6945 "configure"
6946 #include "confdefs.h"
6947 /* System header to define __stub macros and hopefully few prototypes,
6948 which can conflict with char $ac_func (); below. */
6950 /* Override any gcc2 internal prototype to avoid an error. */
6954 /* We use char because int might match the return type of a gcc2
6955 builtin and then its argument prototype would still apply. */
6962 /* The GNU C library defines this for functions which it implements
6963 to always fail with ENOSYS. Some functions are actually named
6964 something starting with __ and the normal name is an alias. */
6965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6975 rm -f conftest.$ac_objext conftest$ac_exeext
6976 if { (eval echo "$as_me:6976: \"$ac_link\"") >&5
6977 (eval $ac_link) 2>&5
6979 echo "$as_me:6979: \$? = $ac_status" >&5
6980 (exit $ac_status); } &&
6981 { ac_try='test -s conftest$ac_exeext'
6982 { (eval echo "$as_me:6982: \"$ac_try\"") >&5
6985 echo "$as_me:6985: \$? = $ac_status" >&5
6986 (exit $ac_status); }; }; then
6987 eval "$as_ac_var=yes"
6989 echo "$as_me: failed program was:" >&5
6990 cat conftest.$ac_ext >&5
6991 eval "$as_ac_var=no"
6993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6995 echo "$as_me:6995: result: `eval echo '${'$as_ac_var'}'`" >&5
6996 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6997 if test `eval echo '${'$as_ac_var'}'` = yes; then
6998 cat >>confdefs.h <<EOF
6999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7006 echo "$as_me:7006: checking if link/symlink functions work" >&5
7007 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
7008 if test "${cf_cv_link_funcs+set}" = set; then
7009 echo $ECHO_N "(cached) $ECHO_C" >&6
7013 for cf_func in link symlink ; do
7014 if test "$cross_compiling" = yes; then
7016 eval 'ac_cv_func_'$cf_func'=error'
7018 cat >conftest.$ac_ext <<_ACEOF
7019 #line 7019 "configure"
7020 #include "confdefs.h"
7022 #include <sys/types.h>
7023 #include <sys/stat.h>
7024 #ifdef HAVE_UNISTD_H
7030 char *src = "config.log";
7031 char *dst = "conftest.chk";
7036 fail = ($cf_func("config.log", "conftest.chk") < 0)
7037 || (stat(dst, &dst_sb) < 0)
7038 || (dst_sb.st_mtime != src_sb.st_mtime);
7044 ${cf_cv_main_return:-return} (fail);
7048 rm -f conftest$ac_exeext
7049 if { (eval echo "$as_me:7049: \"$ac_link\"") >&5
7050 (eval $ac_link) 2>&5
7052 echo "$as_me:7052: \$? = $ac_status" >&5
7053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7054 { (eval echo "$as_me:7054: \"$ac_try\"") >&5
7057 echo "$as_me:7057: \$? = $ac_status" >&5
7058 (exit $ac_status); }; }; then
7060 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
7061 eval 'ac_cv_func_'$cf_func'=yes'
7063 echo "$as_me: program exited with status $ac_status" >&5
7064 echo "$as_me: failed program was:" >&5
7065 cat conftest.$ac_ext >&5
7067 eval 'ac_cv_func_'$cf_func'=no'
7069 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7072 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
7075 echo "$as_me:7075: result: $cf_cv_link_funcs" >&5
7076 echo "${ECHO_T}$cf_cv_link_funcs" >&6
7077 test "$ac_cv_func_link" = yes && cat >>confdefs.h <<\EOF
7081 test "$ac_cv_func_symlink" = yes && cat >>confdefs.h <<\EOF
7082 #define HAVE_SYMLINK 1
7090 # soft links (symbolic links) are useful for some systems where hard links do
7091 # not work, or to make it simpler to copy terminfo trees around.
7092 if test "$ac_cv_func_symlink" = yes ; then
7093 echo "$as_me:7093: checking if tic should use symbolic links" >&5
7094 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
7096 # Check whether --enable-symlinks or --disable-symlinks was given.
7097 if test "${enable_symlinks+set}" = set; then
7098 enableval="$enable_symlinks"
7099 with_symlinks=$enableval
7103 echo "$as_me:7103: result: $with_symlinks" >&5
7104 echo "${ECHO_T}$with_symlinks" >&6
7107 # If we have hard links and did not choose to use soft links instead, there is
7108 # no reason to make this choice optional - use the hard links.
7109 if test "$with_symlinks" = no ; then
7110 echo "$as_me:7110: checking if tic should use hard links" >&5
7111 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
7112 if test "$ac_cv_func_link" = yes ; then
7117 echo "$as_me:7117: result: $with_links" >&5
7118 echo "${ECHO_T}$with_links" >&6
7121 test "$with_links" = yes && cat >>confdefs.h <<\EOF
7125 test "$with_symlinks" = yes && cat >>confdefs.h <<\EOF
7126 #define USE_SYMLINKS 1
7129 ### use option --enable-broken-linker to force on use of broken-linker support
7130 echo "$as_me:7130: checking if you want broken-linker support code" >&5
7131 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
7133 # Check whether --enable-broken_linker or --disable-broken_linker was given.
7134 if test "${enable_broken_linker+set}" = set; then
7135 enableval="$enable_broken_linker"
7136 with_broken_linker=$enableval
7138 with_broken_linker=${BROKEN_LINKER:-no}
7140 echo "$as_me:7140: result: $with_broken_linker" >&5
7141 echo "${ECHO_T}$with_broken_linker" >&6
7144 if test "$with_broken_linker" = yes ; then
7145 cat >>confdefs.h <<\EOF
7146 #define BROKEN_LINKER 1
7150 elif test "$DFT_LWR_MODEL" = shared ; then
7151 case $cf_cv_system_name in #(vi
7153 cat >>confdefs.h <<\EOF
7154 #define BROKEN_LINKER 1
7158 test -n "$verbose" && echo " cygwin linker is broken anyway" 1>&6
7160 echo "${as_me:-configure}:7160: testing cygwin linker is broken anyway ..." 1>&5
7166 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
7167 echo "$as_me:7167: checking if tputs should process BSD-style prefix padding" >&5
7168 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
7170 # Check whether --enable-bsdpad or --disable-bsdpad was given.
7171 if test "${enable_bsdpad+set}" = set; then
7172 enableval="$enable_bsdpad"
7173 with_bsdpad=$enableval
7177 echo "$as_me:7177: result: $with_bsdpad" >&5
7178 echo "${ECHO_T}$with_bsdpad" >&6
7179 test "$with_bsdpad" = yes && cat >>confdefs.h <<\EOF
7183 ### use option --enable-widec to turn on use of wide-character support
7192 # Check to define _XOPEN_SOURCE "automatically"
7195 cf_POSIX_C_SOURCE=199506L
7198 case $host_os in #(vi
7200 cf_xopen_source="-D_ALL_SOURCE"
7206 cf_xopen_source="-D_APPLE_C_SOURCE"
7209 cf_xopen_source="-D_DARWIN_C_SOURCE"
7212 freebsd*|dragonfly*) #(vi
7213 # 5.x headers associate
7214 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
7215 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
7216 cf_POSIX_C_SOURCE=200112L
7218 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
7221 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
7224 cf_xopen_source="-D_HPUX_SOURCE"
7227 cf_xopen_source="-D_SGI_SOURCE"
7230 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
7232 echo "$as_me:7232: checking if we must define _GNU_SOURCE" >&5
7233 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
7234 if test "${cf_cv_gnu_source+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7238 cat >conftest.$ac_ext <<_ACEOF
7239 #line 7239 "configure"
7240 #include "confdefs.h"
7241 #include <sys/types.h>
7246 #ifndef _XOPEN_SOURCE
7253 rm -f conftest.$ac_objext
7254 if { (eval echo "$as_me:7254: \"$ac_compile\"") >&5
7255 (eval $ac_compile) 2>&5
7257 echo "$as_me:7257: \$? = $ac_status" >&5
7258 (exit $ac_status); } &&
7259 { ac_try='test -s conftest.$ac_objext'
7260 { (eval echo "$as_me:7260: \"$ac_try\"") >&5
7263 echo "$as_me:7263: \$? = $ac_status" >&5
7264 (exit $ac_status); }; }; then
7267 echo "$as_me: failed program was:" >&5
7268 cat conftest.$ac_ext >&5
7270 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7271 cat >conftest.$ac_ext <<_ACEOF
7272 #line 7272 "configure"
7273 #include "confdefs.h"
7274 #include <sys/types.h>
7279 #ifdef _XOPEN_SOURCE
7286 rm -f conftest.$ac_objext
7287 if { (eval echo "$as_me:7287: \"$ac_compile\"") >&5
7288 (eval $ac_compile) 2>&5
7290 echo "$as_me:7290: \$? = $ac_status" >&5
7291 (exit $ac_status); } &&
7292 { ac_try='test -s conftest.$ac_objext'
7293 { (eval echo "$as_me:7293: \"$ac_try\"") >&5
7296 echo "$as_me:7296: \$? = $ac_status" >&5
7297 (exit $ac_status); }; }; then
7300 echo "$as_me: failed program was:" >&5
7301 cat conftest.$ac_ext >&5
7302 cf_cv_gnu_source=yes
7304 rm -f conftest.$ac_objext conftest.$ac_ext
7308 rm -f conftest.$ac_objext conftest.$ac_ext
7311 echo "$as_me:7311: result: $cf_cv_gnu_source" >&5
7312 echo "${ECHO_T}$cf_cv_gnu_source" >&6
7313 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7317 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
7320 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
7322 cf_save_CFLAGS="$CFLAGS"
7323 cf_save_CPPFLAGS="$CPPFLAGS"
7325 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
7326 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7327 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7329 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
7330 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7331 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7333 echo "$as_me:7333: checking if we should define _POSIX_C_SOURCE" >&5
7334 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
7335 if test "${cf_cv_posix_c_source+set}" = set; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
7339 echo "${as_me:-configure}:7339: testing if the symbol is already defined go no further ..." 1>&5
7341 cat >conftest.$ac_ext <<_ACEOF
7342 #line 7342 "configure"
7343 #include "confdefs.h"
7344 #include <sys/types.h>
7349 #ifndef _POSIX_C_SOURCE
7356 rm -f conftest.$ac_objext
7357 if { (eval echo "$as_me:7357: \"$ac_compile\"") >&5
7358 (eval $ac_compile) 2>&5
7360 echo "$as_me:7360: \$? = $ac_status" >&5
7361 (exit $ac_status); } &&
7362 { ac_try='test -s conftest.$ac_objext'
7363 { (eval echo "$as_me:7363: \"$ac_try\"") >&5
7366 echo "$as_me:7366: \$? = $ac_status" >&5
7367 (exit $ac_status); }; }; then
7368 cf_cv_posix_c_source=no
7370 echo "$as_me: failed program was:" >&5
7371 cat conftest.$ac_ext >&5
7372 cf_want_posix_source=no
7373 case .$cf_POSIX_C_SOURCE in #(vi
7375 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7378 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7379 cf_want_posix_source=yes
7382 cf_want_posix_source=yes
7385 if test "$cf_want_posix_source" = yes ; then
7386 cat >conftest.$ac_ext <<_ACEOF
7387 #line 7387 "configure"
7388 #include "confdefs.h"
7389 #include <sys/types.h>
7394 #ifdef _POSIX_SOURCE
7401 rm -f conftest.$ac_objext
7402 if { (eval echo "$as_me:7402: \"$ac_compile\"") >&5
7403 (eval $ac_compile) 2>&5
7405 echo "$as_me:7405: \$? = $ac_status" >&5
7406 (exit $ac_status); } &&
7407 { ac_try='test -s conftest.$ac_objext'
7408 { (eval echo "$as_me:7408: \"$ac_try\"") >&5
7411 echo "$as_me:7411: \$? = $ac_status" >&5
7412 (exit $ac_status); }; }; then
7415 echo "$as_me: failed program was:" >&5
7416 cat conftest.$ac_ext >&5
7417 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
7419 rm -f conftest.$ac_objext conftest.$ac_ext
7422 echo "${as_me:-configure}:7422: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
7424 CFLAGS="$cf_trim_CFLAGS"
7425 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
7427 echo "${as_me:-configure}:7427: testing if the second compile does not leave our definition intact error ..." 1>&5
7429 cat >conftest.$ac_ext <<_ACEOF
7430 #line 7430 "configure"
7431 #include "confdefs.h"
7432 #include <sys/types.h>
7437 #ifndef _POSIX_C_SOURCE
7444 rm -f conftest.$ac_objext
7445 if { (eval echo "$as_me:7445: \"$ac_compile\"") >&5
7446 (eval $ac_compile) 2>&5
7448 echo "$as_me:7448: \$? = $ac_status" >&5
7449 (exit $ac_status); } &&
7450 { ac_try='test -s conftest.$ac_objext'
7451 { (eval echo "$as_me:7451: \"$ac_try\"") >&5
7454 echo "$as_me:7454: \$? = $ac_status" >&5
7455 (exit $ac_status); }; }; then
7458 echo "$as_me: failed program was:" >&5
7459 cat conftest.$ac_ext >&5
7460 cf_cv_posix_c_source=no
7462 rm -f conftest.$ac_objext conftest.$ac_ext
7463 CFLAGS="$cf_save_CFLAGS"
7464 CPPFLAGS="$cf_save_CPPFLAGS"
7467 rm -f conftest.$ac_objext conftest.$ac_ext
7470 echo "$as_me:7470: result: $cf_cv_posix_c_source" >&5
7471 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
7473 if test "$cf_cv_posix_c_source" != no ; then
7474 CFLAGS="$cf_trim_CFLAGS"
7475 CPPFLAGS="$cf_trim_CPPFLAGS"
7480 cf_new_extra_cppflags=
7482 for cf_add_cflags in $cf_cv_posix_c_source
7484 case $cf_fix_cppflags in
7486 case $cf_add_cflags in #(vi
7487 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7488 case $cf_add_cflags in
7490 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7492 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7493 && test -z "${cf_tst_cflags}" \
7494 && cf_fix_cppflags=yes
7496 if test $cf_fix_cppflags = yes ; then
7497 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7499 elif test "${cf_tst_cflags}" = "\"'" ; then
7500 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7506 *$cf_add_cflags) #(vi
7509 case $cf_add_cflags in #(vi
7511 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7513 CPPFLAGS=`echo "$CPPFLAGS" | \
7514 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7515 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7519 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7524 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7529 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7531 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7533 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7534 && test -z "${cf_tst_cflags}" \
7535 && cf_fix_cppflags=no
7540 if test -n "$cf_new_cflags" ; then
7542 CFLAGS="$CFLAGS $cf_new_cflags"
7545 if test -n "$cf_new_cppflags" ; then
7547 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7550 if test -n "$cf_new_extra_cppflags" ; then
7552 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7559 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
7562 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
7563 cf_xopen_source="-D_BSD_SOURCE"
7567 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
7570 cf_xopen_source="-D_OSF_SOURCE"
7573 cf_xopen_source="-D_QNX_SOURCE"
7576 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
7579 cf_xopen_source="-D__EXTENSIONS__"
7583 echo "$as_me:7583: checking if we should define _XOPEN_SOURCE" >&5
7584 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
7585 if test "${cf_cv_xopen_source+set}" = set; then
7586 echo $ECHO_N "(cached) $ECHO_C" >&6
7589 cat >conftest.$ac_ext <<_ACEOF
7590 #line 7590 "configure"
7591 #include "confdefs.h"
7595 #include <sys/types.h>
7601 #ifndef _XOPEN_SOURCE
7608 rm -f conftest.$ac_objext
7609 if { (eval echo "$as_me:7609: \"$ac_compile\"") >&5
7610 (eval $ac_compile) 2>&5
7612 echo "$as_me:7612: \$? = $ac_status" >&5
7613 (exit $ac_status); } &&
7614 { ac_try='test -s conftest.$ac_objext'
7615 { (eval echo "$as_me:7615: \"$ac_try\"") >&5
7618 echo "$as_me:7618: \$? = $ac_status" >&5
7619 (exit $ac_status); }; }; then
7620 cf_cv_xopen_source=no
7622 echo "$as_me: failed program was:" >&5
7623 cat conftest.$ac_ext >&5
7625 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
7626 cat >conftest.$ac_ext <<_ACEOF
7627 #line 7627 "configure"
7628 #include "confdefs.h"
7632 #include <sys/types.h>
7638 #ifdef _XOPEN_SOURCE
7645 rm -f conftest.$ac_objext
7646 if { (eval echo "$as_me:7646: \"$ac_compile\"") >&5
7647 (eval $ac_compile) 2>&5
7649 echo "$as_me:7649: \$? = $ac_status" >&5
7650 (exit $ac_status); } &&
7651 { ac_try='test -s conftest.$ac_objext'
7652 { (eval echo "$as_me:7652: \"$ac_try\"") >&5
7655 echo "$as_me:7655: \$? = $ac_status" >&5
7656 (exit $ac_status); }; }; then
7657 cf_cv_xopen_source=no
7659 echo "$as_me: failed program was:" >&5
7660 cat conftest.$ac_ext >&5
7661 cf_cv_xopen_source=$cf_XOPEN_SOURCE
7663 rm -f conftest.$ac_objext conftest.$ac_ext
7667 rm -f conftest.$ac_objext conftest.$ac_ext
7670 echo "$as_me:7670: result: $cf_cv_xopen_source" >&5
7671 echo "${ECHO_T}$cf_cv_xopen_source" >&6
7673 if test "$cf_cv_xopen_source" != no ; then
7675 CFLAGS=`echo "$CFLAGS" | \
7676 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7677 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
7679 CPPFLAGS=`echo "$CPPFLAGS" | \
7680 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7681 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
7683 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
7688 cf_new_extra_cppflags=
7690 for cf_add_cflags in $cf_temp_xopen_source
7692 case $cf_fix_cppflags in
7694 case $cf_add_cflags in #(vi
7695 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7696 case $cf_add_cflags in
7698 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7700 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7701 && test -z "${cf_tst_cflags}" \
7702 && cf_fix_cppflags=yes
7704 if test $cf_fix_cppflags = yes ; then
7705 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7707 elif test "${cf_tst_cflags}" = "\"'" ; then
7708 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7714 *$cf_add_cflags) #(vi
7717 case $cf_add_cflags in #(vi
7719 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7721 CPPFLAGS=`echo "$CPPFLAGS" | \
7722 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7723 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7727 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7732 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7737 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7739 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7741 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7742 && test -z "${cf_tst_cflags}" \
7743 && cf_fix_cppflags=no
7748 if test -n "$cf_new_cflags" ; then
7750 CFLAGS="$CFLAGS $cf_new_cflags"
7753 if test -n "$cf_new_cppflags" ; then
7755 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7758 if test -n "$cf_new_extra_cppflags" ; then
7760 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7765 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
7767 cf_save_CFLAGS="$CFLAGS"
7768 cf_save_CPPFLAGS="$CPPFLAGS"
7770 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
7771 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7772 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7774 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
7775 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7776 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7778 echo "$as_me:7778: checking if we should define _POSIX_C_SOURCE" >&5
7779 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
7780 if test "${cf_cv_posix_c_source+set}" = set; then
7781 echo $ECHO_N "(cached) $ECHO_C" >&6
7784 echo "${as_me:-configure}:7784: testing if the symbol is already defined go no further ..." 1>&5
7786 cat >conftest.$ac_ext <<_ACEOF
7787 #line 7787 "configure"
7788 #include "confdefs.h"
7789 #include <sys/types.h>
7794 #ifndef _POSIX_C_SOURCE
7801 rm -f conftest.$ac_objext
7802 if { (eval echo "$as_me:7802: \"$ac_compile\"") >&5
7803 (eval $ac_compile) 2>&5
7805 echo "$as_me:7805: \$? = $ac_status" >&5
7806 (exit $ac_status); } &&
7807 { ac_try='test -s conftest.$ac_objext'
7808 { (eval echo "$as_me:7808: \"$ac_try\"") >&5
7811 echo "$as_me:7811: \$? = $ac_status" >&5
7812 (exit $ac_status); }; }; then
7813 cf_cv_posix_c_source=no
7815 echo "$as_me: failed program was:" >&5
7816 cat conftest.$ac_ext >&5
7817 cf_want_posix_source=no
7818 case .$cf_POSIX_C_SOURCE in #(vi
7820 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7823 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7824 cf_want_posix_source=yes
7827 cf_want_posix_source=yes
7830 if test "$cf_want_posix_source" = yes ; then
7831 cat >conftest.$ac_ext <<_ACEOF
7832 #line 7832 "configure"
7833 #include "confdefs.h"
7834 #include <sys/types.h>
7839 #ifdef _POSIX_SOURCE
7846 rm -f conftest.$ac_objext
7847 if { (eval echo "$as_me:7847: \"$ac_compile\"") >&5
7848 (eval $ac_compile) 2>&5
7850 echo "$as_me:7850: \$? = $ac_status" >&5
7851 (exit $ac_status); } &&
7852 { ac_try='test -s conftest.$ac_objext'
7853 { (eval echo "$as_me:7853: \"$ac_try\"") >&5
7856 echo "$as_me:7856: \$? = $ac_status" >&5
7857 (exit $ac_status); }; }; then
7860 echo "$as_me: failed program was:" >&5
7861 cat conftest.$ac_ext >&5
7862 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
7864 rm -f conftest.$ac_objext conftest.$ac_ext
7867 echo "${as_me:-configure}:7867: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
7869 CFLAGS="$cf_trim_CFLAGS"
7870 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
7872 echo "${as_me:-configure}:7872: testing if the second compile does not leave our definition intact error ..." 1>&5
7874 cat >conftest.$ac_ext <<_ACEOF
7875 #line 7875 "configure"
7876 #include "confdefs.h"
7877 #include <sys/types.h>
7882 #ifndef _POSIX_C_SOURCE
7889 rm -f conftest.$ac_objext
7890 if { (eval echo "$as_me:7890: \"$ac_compile\"") >&5
7891 (eval $ac_compile) 2>&5
7893 echo "$as_me:7893: \$? = $ac_status" >&5
7894 (exit $ac_status); } &&
7895 { ac_try='test -s conftest.$ac_objext'
7896 { (eval echo "$as_me:7896: \"$ac_try\"") >&5
7899 echo "$as_me:7899: \$? = $ac_status" >&5
7900 (exit $ac_status); }; }; then
7903 echo "$as_me: failed program was:" >&5
7904 cat conftest.$ac_ext >&5
7905 cf_cv_posix_c_source=no
7907 rm -f conftest.$ac_objext conftest.$ac_ext
7908 CFLAGS="$cf_save_CFLAGS"
7909 CPPFLAGS="$cf_save_CPPFLAGS"
7912 rm -f conftest.$ac_objext conftest.$ac_ext
7915 echo "$as_me:7915: result: $cf_cv_posix_c_source" >&5
7916 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
7918 if test "$cf_cv_posix_c_source" != no ; then
7919 CFLAGS="$cf_trim_CFLAGS"
7920 CPPFLAGS="$cf_trim_CPPFLAGS"
7925 cf_new_extra_cppflags=
7927 for cf_add_cflags in $cf_cv_posix_c_source
7929 case $cf_fix_cppflags in
7931 case $cf_add_cflags in #(vi
7932 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7933 case $cf_add_cflags in
7935 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7937 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7938 && test -z "${cf_tst_cflags}" \
7939 && cf_fix_cppflags=yes
7941 if test $cf_fix_cppflags = yes ; then
7942 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7944 elif test "${cf_tst_cflags}" = "\"'" ; then
7945 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7951 *$cf_add_cflags) #(vi
7954 case $cf_add_cflags in #(vi
7956 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7958 CPPFLAGS=`echo "$CPPFLAGS" | \
7959 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7960 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7964 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7969 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7974 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7976 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7978 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7979 && test -z "${cf_tst_cflags}" \
7980 && cf_fix_cppflags=no
7985 if test -n "$cf_new_cflags" ; then
7987 CFLAGS="$CFLAGS $cf_new_cflags"
7990 if test -n "$cf_new_cppflags" ; then
7992 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7995 if test -n "$cf_new_extra_cppflags" ; then
7997 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8005 if test -n "$cf_xopen_source" ; then
8010 cf_new_extra_cppflags=
8012 for cf_add_cflags in $cf_xopen_source
8014 case $cf_fix_cppflags in
8016 case $cf_add_cflags in #(vi
8017 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
8018 case $cf_add_cflags in
8020 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8022 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8023 && test -z "${cf_tst_cflags}" \
8024 && cf_fix_cppflags=yes
8026 if test $cf_fix_cppflags = yes ; then
8027 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8029 elif test "${cf_tst_cflags}" = "\"'" ; then
8030 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8036 *$cf_add_cflags) #(vi
8039 case $cf_add_cflags in #(vi
8041 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8043 CPPFLAGS=`echo "$CPPFLAGS" | \
8044 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8045 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8049 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8054 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8059 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8061 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8063 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8064 && test -z "${cf_tst_cflags}" \
8065 && cf_fix_cppflags=no
8070 if test -n "$cf_new_cflags" ; then
8072 CFLAGS="$CFLAGS $cf_new_cflags"
8075 if test -n "$cf_new_cppflags" ; then
8077 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8080 if test -n "$cf_new_extra_cppflags" ; then
8082 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8087 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
8088 echo "$as_me:8088: checking if _XOPEN_SOURCE really is set" >&5
8089 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
8090 cat >conftest.$ac_ext <<_ACEOF
8091 #line 8091 "configure"
8092 #include "confdefs.h"
8098 #ifndef _XOPEN_SOURCE
8105 rm -f conftest.$ac_objext
8106 if { (eval echo "$as_me:8106: \"$ac_compile\"") >&5
8107 (eval $ac_compile) 2>&5
8109 echo "$as_me:8109: \$? = $ac_status" >&5
8110 (exit $ac_status); } &&
8111 { ac_try='test -s conftest.$ac_objext'
8112 { (eval echo "$as_me:8112: \"$ac_try\"") >&5
8115 echo "$as_me:8115: \$? = $ac_status" >&5
8116 (exit $ac_status); }; }; then
8117 cf_XOPEN_SOURCE_set=yes
8119 echo "$as_me: failed program was:" >&5
8120 cat conftest.$ac_ext >&5
8121 cf_XOPEN_SOURCE_set=no
8123 rm -f conftest.$ac_objext conftest.$ac_ext
8124 echo "$as_me:8124: result: $cf_XOPEN_SOURCE_set" >&5
8125 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
8126 if test $cf_XOPEN_SOURCE_set = yes
8128 cat >conftest.$ac_ext <<_ACEOF
8129 #line 8129 "configure"
8130 #include "confdefs.h"
8136 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
8143 rm -f conftest.$ac_objext
8144 if { (eval echo "$as_me:8144: \"$ac_compile\"") >&5
8145 (eval $ac_compile) 2>&5
8147 echo "$as_me:8147: \$? = $ac_status" >&5
8148 (exit $ac_status); } &&
8149 { ac_try='test -s conftest.$ac_objext'
8150 { (eval echo "$as_me:8150: \"$ac_try\"") >&5
8153 echo "$as_me:8153: \$? = $ac_status" >&5
8154 (exit $ac_status); }; }; then
8155 cf_XOPEN_SOURCE_set_ok=yes
8157 echo "$as_me: failed program was:" >&5
8158 cat conftest.$ac_ext >&5
8159 cf_XOPEN_SOURCE_set_ok=no
8161 rm -f conftest.$ac_objext conftest.$ac_ext
8162 if test $cf_XOPEN_SOURCE_set_ok = no
8164 { echo "$as_me:8164: WARNING: _XOPEN_SOURCE is lower than requested" >&5
8165 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
8169 echo "$as_me:8169: checking if we should define _XOPEN_SOURCE" >&5
8170 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
8171 if test "${cf_cv_xopen_source+set}" = set; then
8172 echo $ECHO_N "(cached) $ECHO_C" >&6
8175 cat >conftest.$ac_ext <<_ACEOF
8176 #line 8176 "configure"
8177 #include "confdefs.h"
8181 #include <sys/types.h>
8187 #ifndef _XOPEN_SOURCE
8194 rm -f conftest.$ac_objext
8195 if { (eval echo "$as_me:8195: \"$ac_compile\"") >&5
8196 (eval $ac_compile) 2>&5
8198 echo "$as_me:8198: \$? = $ac_status" >&5
8199 (exit $ac_status); } &&
8200 { ac_try='test -s conftest.$ac_objext'
8201 { (eval echo "$as_me:8201: \"$ac_try\"") >&5
8204 echo "$as_me:8204: \$? = $ac_status" >&5
8205 (exit $ac_status); }; }; then
8206 cf_cv_xopen_source=no
8208 echo "$as_me: failed program was:" >&5
8209 cat conftest.$ac_ext >&5
8211 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
8212 cat >conftest.$ac_ext <<_ACEOF
8213 #line 8213 "configure"
8214 #include "confdefs.h"
8218 #include <sys/types.h>
8224 #ifdef _XOPEN_SOURCE
8231 rm -f conftest.$ac_objext
8232 if { (eval echo "$as_me:8232: \"$ac_compile\"") >&5
8233 (eval $ac_compile) 2>&5
8235 echo "$as_me:8235: \$? = $ac_status" >&5
8236 (exit $ac_status); } &&
8237 { ac_try='test -s conftest.$ac_objext'
8238 { (eval echo "$as_me:8238: \"$ac_try\"") >&5
8241 echo "$as_me:8241: \$? = $ac_status" >&5
8242 (exit $ac_status); }; }; then
8243 cf_cv_xopen_source=no
8245 echo "$as_me: failed program was:" >&5
8246 cat conftest.$ac_ext >&5
8247 cf_cv_xopen_source=$cf_XOPEN_SOURCE
8249 rm -f conftest.$ac_objext conftest.$ac_ext
8253 rm -f conftest.$ac_objext conftest.$ac_ext
8256 echo "$as_me:8256: result: $cf_cv_xopen_source" >&5
8257 echo "${ECHO_T}$cf_cv_xopen_source" >&6
8259 if test "$cf_cv_xopen_source" != no ; then
8261 CFLAGS=`echo "$CFLAGS" | \
8262 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8263 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8265 CPPFLAGS=`echo "$CPPFLAGS" | \
8266 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8267 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8269 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
8274 cf_new_extra_cppflags=
8276 for cf_add_cflags in $cf_temp_xopen_source
8278 case $cf_fix_cppflags in
8280 case $cf_add_cflags in #(vi
8281 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
8282 case $cf_add_cflags in
8284 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8286 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8287 && test -z "${cf_tst_cflags}" \
8288 && cf_fix_cppflags=yes
8290 if test $cf_fix_cppflags = yes ; then
8291 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8293 elif test "${cf_tst_cflags}" = "\"'" ; then
8294 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8300 *$cf_add_cflags) #(vi
8303 case $cf_add_cflags in #(vi
8305 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8307 CPPFLAGS=`echo "$CPPFLAGS" | \
8308 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8309 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8313 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8318 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8323 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8325 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8327 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8328 && test -z "${cf_tst_cflags}" \
8329 && cf_fix_cppflags=no
8334 if test -n "$cf_new_cflags" ; then
8336 CFLAGS="$CFLAGS $cf_new_cflags"
8339 if test -n "$cf_new_cppflags" ; then
8341 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8344 if test -n "$cf_new_extra_cppflags" ; then
8346 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8354 # Work around breakage on OS X
8356 echo "$as_me:8356: checking if SIGWINCH is defined" >&5
8357 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
8358 if test "${cf_cv_define_sigwinch+set}" = set; then
8359 echo $ECHO_N "(cached) $ECHO_C" >&6
8362 cat >conftest.$ac_ext <<_ACEOF
8363 #line 8363 "configure"
8364 #include "confdefs.h"
8366 #include <sys/types.h>
8367 #include <sys/signal.h>
8377 rm -f conftest.$ac_objext
8378 if { (eval echo "$as_me:8378: \"$ac_compile\"") >&5
8379 (eval $ac_compile) 2>&5
8381 echo "$as_me:8381: \$? = $ac_status" >&5
8382 (exit $ac_status); } &&
8383 { ac_try='test -s conftest.$ac_objext'
8384 { (eval echo "$as_me:8384: \"$ac_try\"") >&5
8387 echo "$as_me:8387: \$? = $ac_status" >&5
8388 (exit $ac_status); }; }; then
8389 cf_cv_define_sigwinch=yes
8391 echo "$as_me: failed program was:" >&5
8392 cat conftest.$ac_ext >&5
8393 cat >conftest.$ac_ext <<_ACEOF
8394 #line 8394 "configure"
8395 #include "confdefs.h"
8397 #undef _XOPEN_SOURCE
8398 #undef _POSIX_SOURCE
8399 #undef _POSIX_C_SOURCE
8400 #include <sys/types.h>
8401 #include <sys/signal.h>
8411 rm -f conftest.$ac_objext
8412 if { (eval echo "$as_me:8412: \"$ac_compile\"") >&5
8413 (eval $ac_compile) 2>&5
8415 echo "$as_me:8415: \$? = $ac_status" >&5
8416 (exit $ac_status); } &&
8417 { ac_try='test -s conftest.$ac_objext'
8418 { (eval echo "$as_me:8418: \"$ac_try\"") >&5
8421 echo "$as_me:8421: \$? = $ac_status" >&5
8422 (exit $ac_status); }; }; then
8423 cf_cv_define_sigwinch=maybe
8425 echo "$as_me: failed program was:" >&5
8426 cat conftest.$ac_ext >&5
8427 cf_cv_define_sigwinch=no
8429 rm -f conftest.$ac_objext conftest.$ac_ext
8432 rm -f conftest.$ac_objext conftest.$ac_ext
8435 echo "$as_me:8435: result: $cf_cv_define_sigwinch" >&5
8436 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
8438 if test "$cf_cv_define_sigwinch" = maybe ; then
8439 echo "$as_me:8439: checking for actual SIGWINCH definition" >&5
8440 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
8441 if test "${cf_cv_fixup_sigwinch+set}" = set; then
8442 echo $ECHO_N "(cached) $ECHO_C" >&6
8445 cf_cv_fixup_sigwinch=unknown
8447 while test $cf_sigwinch != 1
8449 cat >conftest.$ac_ext <<_ACEOF
8450 #line 8450 "configure"
8451 #include "confdefs.h"
8453 #undef _XOPEN_SOURCE
8454 #undef _POSIX_SOURCE
8455 #undef _POSIX_C_SOURCE
8456 #include <sys/types.h>
8457 #include <sys/signal.h>
8463 #if SIGWINCH != $cf_sigwinch
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
8483 cf_cv_fixup_sigwinch=$cf_sigwinch
8486 echo "$as_me: failed program was:" >&5
8487 cat conftest.$ac_ext >&5
8489 rm -f conftest.$ac_objext conftest.$ac_ext
8491 cf_sigwinch=`expr $cf_sigwinch - 1`
8495 echo "$as_me:8495: result: $cf_cv_fixup_sigwinch" >&5
8496 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
8498 if test "$cf_cv_fixup_sigwinch" != unknown ; then
8499 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
8503 # Checks for CODESET support.
8505 echo "$as_me:8505: checking for nl_langinfo and CODESET" >&5
8506 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
8507 if test "${am_cv_langinfo_codeset+set}" = set; then
8508 echo $ECHO_N "(cached) $ECHO_C" >&6
8510 cat >conftest.$ac_ext <<_ACEOF
8511 #line 8511 "configure"
8512 #include "confdefs.h"
8513 #include <langinfo.h>
8517 char* cs = nl_langinfo(CODESET);
8522 rm -f conftest.$ac_objext conftest$ac_exeext
8523 if { (eval echo "$as_me:8523: \"$ac_link\"") >&5
8524 (eval $ac_link) 2>&5
8526 echo "$as_me:8526: \$? = $ac_status" >&5
8527 (exit $ac_status); } &&
8528 { ac_try='test -s conftest$ac_exeext'
8529 { (eval echo "$as_me:8529: \"$ac_try\"") >&5
8532 echo "$as_me:8532: \$? = $ac_status" >&5
8533 (exit $ac_status); }; }; then
8534 am_cv_langinfo_codeset=yes
8536 echo "$as_me: failed program was:" >&5
8537 cat conftest.$ac_ext >&5
8538 am_cv_langinfo_codeset=no
8540 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8543 echo "$as_me:8543: result: $am_cv_langinfo_codeset" >&5
8544 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
8545 if test $am_cv_langinfo_codeset = yes; then
8547 cat >>confdefs.h <<\EOF
8548 #define HAVE_LANGINFO_CODESET 1
8553 # use these variables to work around a defect in gcc's fixincludes.
8557 echo "$as_me:8557: checking if you want wide-character code" >&5
8558 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
8560 # Check whether --enable-widec or --disable-widec was given.
8561 if test "${enable_widec+set}" = set; then
8562 enableval="$enable_widec"
8563 with_widec=$enableval
8567 echo "$as_me:8567: result: $with_widec" >&5
8568 echo "${ECHO_T}$with_widec" >&6
8569 if test "$with_widec" = yes ; then
8570 LIB_SUFFIX="w${LIB_SUFFIX}"
8571 cat >>confdefs.h <<\EOF
8572 #define USE_WIDEC_SUPPORT 1
8575 cat >>confdefs.h <<\EOF
8576 #define NCURSES_WIDECHAR 1
8579 echo "$as_me:8579: checking if wchar.h can be used as is" >&5
8580 echo $ECHO_N "checking if wchar.h can be used as is... $ECHO_C" >&6
8581 if test "${cf_cv_wchar_h_okay+set}" = set; then
8582 echo $ECHO_N "(cached) $ECHO_C" >&6
8585 cat >conftest.$ac_ext <<_ACEOF
8586 #line 8586 "configure"
8587 #include "confdefs.h"
8597 int bar = iswpunct(foo)
8602 rm -f conftest.$ac_objext
8603 if { (eval echo "$as_me:8603: \"$ac_compile\"") >&5
8604 (eval $ac_compile) 2>&5
8606 echo "$as_me:8606: \$? = $ac_status" >&5
8607 (exit $ac_status); } &&
8608 { ac_try='test -s conftest.$ac_objext'
8609 { (eval echo "$as_me:8609: \"$ac_try\"") >&5
8612 echo "$as_me:8612: \$? = $ac_status" >&5
8613 (exit $ac_status); }; }; then
8614 cf_cv_wchar_h_okay=yes
8616 echo "$as_me: failed program was:" >&5
8617 cat conftest.$ac_ext >&5
8618 cf_cv_wchar_h_okay=no
8620 rm -f conftest.$ac_objext conftest.$ac_ext
8622 echo "$as_me:8622: result: $cf_cv_wchar_h_okay" >&5
8623 echo "${ECHO_T}$cf_cv_wchar_h_okay" >&6
8625 if test $cf_cv_wchar_h_okay = no
8628 echo "$as_me:8628: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
8629 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
8630 cat >conftest.$ac_ext <<_ACEOF
8631 #line 8631 "configure"
8632 #include "confdefs.h"
8633 #include <sys/types.h>
8639 #ifndef _XOPEN_SOURCE_EXTENDED
8646 rm -f conftest.$ac_objext
8647 if { (eval echo "$as_me:8647: \"$ac_compile\"") >&5
8648 (eval $ac_compile) 2>&5
8650 echo "$as_me:8650: \$? = $ac_status" >&5
8651 (exit $ac_status); } &&
8652 { ac_try='test -s conftest.$ac_objext'
8653 { (eval echo "$as_me:8653: \"$ac_try\"") >&5
8656 echo "$as_me:8656: \$? = $ac_status" >&5
8657 (exit $ac_status); }; }; then
8660 echo "$as_me: failed program was:" >&5
8661 cat conftest.$ac_ext >&5
8664 rm -f conftest.$ac_objext conftest.$ac_ext
8665 echo "$as_me:8665: result: $cf_result" >&5
8666 echo "${ECHO_T}$cf_result" >&6
8668 if test "$cf_result" = yes ; then
8669 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
8670 elif test "x" != "x" ; then
8671 echo "$as_me:8671: checking checking for compatible value versus " >&5
8672 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
8673 cat >conftest.$ac_ext <<_ACEOF
8674 #line 8674 "configure"
8675 #include "confdefs.h"
8676 #include <sys/types.h>
8682 #if _XOPEN_SOURCE_EXTENDED- < 0
8689 rm -f conftest.$ac_objext
8690 if { (eval echo "$as_me:8690: \"$ac_compile\"") >&5
8691 (eval $ac_compile) 2>&5
8693 echo "$as_me:8693: \$? = $ac_status" >&5
8694 (exit $ac_status); } &&
8695 { ac_try='test -s conftest.$ac_objext'
8696 { (eval echo "$as_me:8696: \"$ac_try\"") >&5
8699 echo "$as_me:8699: \$? = $ac_status" >&5
8700 (exit $ac_status); }; }; then
8703 echo "$as_me: failed program was:" >&5
8704 cat conftest.$ac_ext >&5
8707 rm -f conftest.$ac_objext conftest.$ac_ext
8708 echo "$as_me:8708: result: $cf_result" >&5
8709 echo "${ECHO_T}$cf_result" >&6
8710 if test "$cf_result" = no ; then
8711 # perhaps we can override it - try...
8712 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
8719 NCURSES_CH_T=cchar_t
8721 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
8723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8724 echo "$as_me:8724: checking for $ac_func" >&5
8725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8726 if eval "test \"\${$as_ac_var+set}\" = set"; then
8727 echo $ECHO_N "(cached) $ECHO_C" >&6
8729 cat >conftest.$ac_ext <<_ACEOF
8730 #line 8730 "configure"
8731 #include "confdefs.h"
8732 /* System header to define __stub macros and hopefully few prototypes,
8733 which can conflict with char $ac_func (); below. */
8735 /* Override any gcc2 internal prototype to avoid an error. */
8739 /* We use char because int might match the return type of a gcc2
8740 builtin and then its argument prototype would still apply. */
8747 /* The GNU C library defines this for functions which it implements
8748 to always fail with ENOSYS. Some functions are actually named
8749 something starting with __ and the normal name is an alias. */
8750 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8760 rm -f conftest.$ac_objext conftest$ac_exeext
8761 if { (eval echo "$as_me:8761: \"$ac_link\"") >&5
8762 (eval $ac_link) 2>&5
8764 echo "$as_me:8764: \$? = $ac_status" >&5
8765 (exit $ac_status); } &&
8766 { ac_try='test -s conftest$ac_exeext'
8767 { (eval echo "$as_me:8767: \"$ac_try\"") >&5
8770 echo "$as_me:8770: \$? = $ac_status" >&5
8771 (exit $ac_status); }; }; then
8772 eval "$as_ac_var=yes"
8774 echo "$as_me: failed program was:" >&5
8775 cat conftest.$ac_ext >&5
8776 eval "$as_ac_var=no"
8778 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8780 echo "$as_me:8780: result: `eval echo '${'$as_ac_var'}'`" >&5
8781 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8782 if test `eval echo '${'$as_ac_var'}'` = yes; then
8783 cat >>confdefs.h <<EOF
8784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8790 if test "$ac_cv_func_putwc" != yes ; then
8792 echo "$as_me:8792: checking for multibyte character support" >&5
8793 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
8794 if test "${cf_cv_utf8_lib+set}" = set; then
8795 echo $ECHO_N "(cached) $ECHO_C" >&6
8798 cf_save_LIBS="$LIBS"
8799 cat >conftest.$ac_ext <<_ACEOF
8800 #line 8800 "configure"
8801 #include "confdefs.h"
8812 rm -f conftest.$ac_objext conftest$ac_exeext
8813 if { (eval echo "$as_me:8813: \"$ac_link\"") >&5
8814 (eval $ac_link) 2>&5
8816 echo "$as_me:8816: \$? = $ac_status" >&5
8817 (exit $ac_status); } &&
8818 { ac_try='test -s conftest$ac_exeext'
8819 { (eval echo "$as_me:8819: \"$ac_try\"") >&5
8822 echo "$as_me:8822: \$? = $ac_status" >&5
8823 (exit $ac_status); }; }; then
8826 echo "$as_me: failed program was:" >&5
8827 cat conftest.$ac_ext >&5
8829 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
8830 # will be set on completion of the AC_TRY_LINK below.
8831 cf_cv_header_path_utf8=
8832 cf_cv_library_path_utf8=
8834 echo "${as_me:-configure}:8834: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
8836 cf_save_LIBS="$LIBS"
8838 cat >conftest.$ac_ext <<_ACEOF
8839 #line 8839 "configure"
8840 #include "confdefs.h"
8842 #include <libutf8.h>
8851 rm -f conftest.$ac_objext conftest$ac_exeext
8852 if { (eval echo "$as_me:8852: \"$ac_link\"") >&5
8853 (eval $ac_link) 2>&5
8855 echo "$as_me:8855: \$? = $ac_status" >&5
8856 (exit $ac_status); } &&
8857 { ac_try='test -s conftest$ac_exeext'
8858 { (eval echo "$as_me:8858: \"$ac_try\"") >&5
8861 echo "$as_me:8861: \$? = $ac_status" >&5
8862 (exit $ac_status); }; }; then
8864 cf_cv_find_linkage_utf8=yes
8865 cf_cv_header_path_utf8=/usr/include
8866 cf_cv_library_path_utf8=/usr/lib
8869 echo "$as_me: failed program was:" >&5
8870 cat conftest.$ac_ext >&5
8872 LIBS="-lutf8 $cf_save_LIBS"
8874 cat >conftest.$ac_ext <<_ACEOF
8875 #line 8875 "configure"
8876 #include "confdefs.h"
8878 #include <libutf8.h>
8887 rm -f conftest.$ac_objext conftest$ac_exeext
8888 if { (eval echo "$as_me:8888: \"$ac_link\"") >&5
8889 (eval $ac_link) 2>&5
8891 echo "$as_me:8891: \$? = $ac_status" >&5
8892 (exit $ac_status); } &&
8893 { ac_try='test -s conftest$ac_exeext'
8894 { (eval echo "$as_me:8894: \"$ac_try\"") >&5
8897 echo "$as_me:8897: \$? = $ac_status" >&5
8898 (exit $ac_status); }; }; then
8900 cf_cv_find_linkage_utf8=yes
8901 cf_cv_header_path_utf8=/usr/include
8902 cf_cv_library_path_utf8=/usr/lib
8903 cf_cv_library_file_utf8="-lutf8"
8906 echo "$as_me: failed program was:" >&5
8907 cat conftest.$ac_ext >&5
8909 cf_cv_find_linkage_utf8=no
8910 LIBS="$cf_save_LIBS"
8912 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
8914 echo "${as_me:-configure}:8914: testing find linkage for utf8 library ..." 1>&5
8916 echo "${as_me:-configure}:8916: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
8918 cf_save_CPPFLAGS="$CPPFLAGS"
8919 cf_test_CPPFLAGS="$CPPFLAGS"
8923 # collect the current set of include-directories from compiler flags
8924 cf_header_path_list=""
8925 if test -n "${CFLAGS}${CPPFLAGS}" ; then
8926 for cf_header_path in $CPPFLAGS $CFLAGS
8928 case $cf_header_path in #(vi
8930 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
8932 test "$cf_header_path" != "NONE" && \
8933 test -d "$cf_header_path" && \
8935 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
8936 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
8937 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
8938 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
8939 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
8940 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
8943 cf_header_path_list="$cf_header_path_list $cf_search"
8949 # add the variations for the package we are looking for
8953 test "/usr" != "$prefix" && \
8955 (test $prefix = NONE || test "/usr" != "$prefix") && {
8956 test -n "$verbose" && echo " ... testing for include-directories under /usr"
8957 test -d /usr/include && cf_search="$cf_search /usr/include"
8958 test -d /usr/include/utf8 && cf_search="$cf_search /usr/include/utf8"
8959 test -d /usr/include/utf8/include && cf_search="$cf_search /usr/include/utf8/include"
8960 test -d /usr/utf8/include && cf_search="$cf_search /usr/utf8/include"
8961 test -d /usr/utf8/include/utf8 && cf_search="$cf_search /usr/utf8/include/utf8"
8964 test "$prefix" != "NONE" && \
8965 test -d "$prefix" && \
8967 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
8968 test -d $prefix/include && cf_search="$cf_search $prefix/include"
8969 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
8970 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
8971 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
8972 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
8975 test "/usr/local" != "$prefix" && \
8976 test -d "/usr/local" && \
8977 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
8978 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
8979 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
8980 test -d /usr/local/include/utf8 && cf_search="$cf_search /usr/local/include/utf8"
8981 test -d /usr/local/include/utf8/include && cf_search="$cf_search /usr/local/include/utf8/include"
8982 test -d /usr/local/utf8/include && cf_search="$cf_search /usr/local/utf8/include"
8983 test -d /usr/local/utf8/include/utf8 && cf_search="$cf_search /usr/local/utf8/include/utf8"
8986 test "/opt" != "$prefix" && \
8988 (test $prefix = NONE || test "/opt" != "$prefix") && {
8989 test -n "$verbose" && echo " ... testing for include-directories under /opt"
8990 test -d /opt/include && cf_search="$cf_search /opt/include"
8991 test -d /opt/include/utf8 && cf_search="$cf_search /opt/include/utf8"
8992 test -d /opt/include/utf8/include && cf_search="$cf_search /opt/include/utf8/include"
8993 test -d /opt/utf8/include && cf_search="$cf_search /opt/utf8/include"
8994 test -d /opt/utf8/include/utf8 && cf_search="$cf_search /opt/utf8/include/utf8"
8997 test "$HOME" != "$prefix" && \
8998 test -d "$HOME" && \
8999 (test $prefix = NONE || test "$HOME" != "$prefix") && {
9000 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
9001 test -d $HOME/include && cf_search="$cf_search $HOME/include"
9002 test -d $HOME/include/utf8 && cf_search="$cf_search $HOME/include/utf8"
9003 test -d $HOME/include/utf8/include && cf_search="$cf_search $HOME/include/utf8/include"
9004 test -d $HOME/utf8/include && cf_search="$cf_search $HOME/utf8/include"
9005 test -d $HOME/utf8/include/utf8 && cf_search="$cf_search $HOME/utf8/include/utf8"
9008 test "$includedir" != NONE && \
9009 test "$includedir" != "/usr/include" && \
9010 test -d "$includedir" && {
9011 test -d $includedir && cf_search="$cf_search $includedir"
9012 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
9015 test "$oldincludedir" != NONE && \
9016 test "$oldincludedir" != "/usr/include" && \
9017 test -d "$oldincludedir" && {
9018 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
9019 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
9022 cf_search="$cf_search $cf_header_path_list"
9024 for cf_cv_header_path_utf8 in $cf_search
9026 if test -d $cf_cv_header_path_utf8 ; then
9027 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
9029 echo "${as_me:-configure}:9029: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
9031 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
9032 cat >conftest.$ac_ext <<_ACEOF
9033 #line 9033 "configure"
9034 #include "confdefs.h"
9036 #include <libutf8.h>
9045 rm -f conftest.$ac_objext
9046 if { (eval echo "$as_me:9046: \"$ac_compile\"") >&5
9047 (eval $ac_compile) 2>&5
9049 echo "$as_me:9049: \$? = $ac_status" >&5
9050 (exit $ac_status); } &&
9051 { ac_try='test -s conftest.$ac_objext'
9052 { (eval echo "$as_me:9052: \"$ac_try\"") >&5
9055 echo "$as_me:9055: \$? = $ac_status" >&5
9056 (exit $ac_status); }; }; then
9058 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
9060 echo "${as_me:-configure}:9060: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
9062 cf_cv_find_linkage_utf8=maybe
9063 cf_test_CPPFLAGS="$CPPFLAGS"
9066 echo "$as_me: failed program was:" >&5
9067 cat conftest.$ac_ext >&5
9069 CPPFLAGS="$cf_save_CPPFLAGS"
9072 rm -f conftest.$ac_objext conftest.$ac_ext
9076 if test "$cf_cv_find_linkage_utf8" = maybe ; then
9078 echo "${as_me:-configure}:9078: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
9080 cf_save_LIBS="$LIBS"
9081 cf_save_LDFLAGS="$LDFLAGS"
9083 if test "$cf_cv_find_linkage_utf8" != yes ; then
9086 cf_library_path_list=""
9087 if test -n "${LDFLAGS}${LIBS}" ; then
9088 for cf_library_path in $LDFLAGS $LIBS
9090 case $cf_library_path in #(vi
9092 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
9094 test "$cf_library_path" != "NONE" && \
9095 test -d "$cf_library_path" && \
9097 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
9098 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
9099 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
9100 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
9101 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
9102 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
9105 cf_library_path_list="$cf_library_path_list $cf_search"
9113 test "/usr" != "$prefix" && \
9115 (test $prefix = NONE || test "/usr" != "$prefix") && {
9116 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
9117 test -d /usr/lib && cf_search="$cf_search /usr/lib"
9118 test -d /usr/lib/utf8 && cf_search="$cf_search /usr/lib/utf8"
9119 test -d /usr/lib/utf8/lib && cf_search="$cf_search /usr/lib/utf8/lib"
9120 test -d /usr/utf8/lib && cf_search="$cf_search /usr/utf8/lib"
9121 test -d /usr/utf8/lib/utf8 && cf_search="$cf_search /usr/utf8/lib/utf8"
9124 test "$prefix" != "NONE" && \
9125 test -d "$prefix" && \
9127 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
9128 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
9129 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
9130 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
9131 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
9132 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
9135 test "/usr/local" != "$prefix" && \
9136 test -d "/usr/local" && \
9137 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
9138 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
9139 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
9140 test -d /usr/local/lib/utf8 && cf_search="$cf_search /usr/local/lib/utf8"
9141 test -d /usr/local/lib/utf8/lib && cf_search="$cf_search /usr/local/lib/utf8/lib"
9142 test -d /usr/local/utf8/lib && cf_search="$cf_search /usr/local/utf8/lib"
9143 test -d /usr/local/utf8/lib/utf8 && cf_search="$cf_search /usr/local/utf8/lib/utf8"
9146 test "/opt" != "$prefix" && \
9148 (test $prefix = NONE || test "/opt" != "$prefix") && {
9149 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
9150 test -d /opt/lib && cf_search="$cf_search /opt/lib"
9151 test -d /opt/lib/utf8 && cf_search="$cf_search /opt/lib/utf8"
9152 test -d /opt/lib/utf8/lib && cf_search="$cf_search /opt/lib/utf8/lib"
9153 test -d /opt/utf8/lib && cf_search="$cf_search /opt/utf8/lib"
9154 test -d /opt/utf8/lib/utf8 && cf_search="$cf_search /opt/utf8/lib/utf8"
9157 test "$HOME" != "$prefix" && \
9158 test -d "$HOME" && \
9159 (test $prefix = NONE || test "$HOME" != "$prefix") && {
9160 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
9161 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
9162 test -d $HOME/lib/utf8 && cf_search="$cf_search $HOME/lib/utf8"
9163 test -d $HOME/lib/utf8/lib && cf_search="$cf_search $HOME/lib/utf8/lib"
9164 test -d $HOME/utf8/lib && cf_search="$cf_search $HOME/utf8/lib"
9165 test -d $HOME/utf8/lib/utf8 && cf_search="$cf_search $HOME/utf8/lib/utf8"
9168 cf_search="$cf_library_path_list $cf_search"
9170 for cf_cv_library_path_utf8 in $cf_search
9172 if test -d $cf_cv_library_path_utf8 ; then
9173 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
9175 echo "${as_me:-configure}:9175: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
9177 CPPFLAGS="$cf_test_CPPFLAGS"
9178 LIBS="-lutf8 $cf_save_LIBS"
9179 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
9180 cat >conftest.$ac_ext <<_ACEOF
9181 #line 9181 "configure"
9182 #include "confdefs.h"
9184 #include <libutf8.h>
9193 rm -f conftest.$ac_objext conftest$ac_exeext
9194 if { (eval echo "$as_me:9194: \"$ac_link\"") >&5
9195 (eval $ac_link) 2>&5
9197 echo "$as_me:9197: \$? = $ac_status" >&5
9198 (exit $ac_status); } &&
9199 { ac_try='test -s conftest$ac_exeext'
9200 { (eval echo "$as_me:9200: \"$ac_try\"") >&5
9203 echo "$as_me:9203: \$? = $ac_status" >&5
9204 (exit $ac_status); }; }; then
9206 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
9208 echo "${as_me:-configure}:9208: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
9210 cf_cv_find_linkage_utf8=yes
9211 cf_cv_library_file_utf8="-lutf8"
9214 echo "$as_me: failed program was:" >&5
9215 cat conftest.$ac_ext >&5
9217 CPPFLAGS="$cf_save_CPPFLAGS"
9218 LIBS="$cf_save_LIBS"
9219 LDFLAGS="$cf_save_LDFLAGS"
9222 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9225 CPPFLAGS="$cf_save_CPPFLAGS"
9226 LDFLAGS="$cf_save_LDFLAGS"
9230 cf_cv_find_linkage_utf8=no
9234 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9237 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9239 LIBS="$cf_save_LIBS"
9241 if test "$cf_cv_find_linkage_utf8" = yes ; then
9242 cf_cv_utf8_lib=add-on
9248 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9250 echo "$as_me:9250: result: $cf_cv_utf8_lib" >&5
9251 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
9253 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
9255 if test "$cf_cv_utf8_lib" = "add-on" ; then
9256 cat >>confdefs.h <<\EOF
9257 #define HAVE_LIBUTF8_H 1
9260 if test -n "$cf_cv_header_path_utf8" ; then
9261 for cf_add_incdir in $cf_cv_header_path_utf8
9263 while test $cf_add_incdir != /usr/include
9265 if test -d $cf_add_incdir
9268 if test -n "$CFLAGS$CPPFLAGS" ; then
9269 # a loop is needed to ensure we can add subdirs of existing dirs
9270 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
9271 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
9272 cf_have_incdir=yes; break
9277 if test "$cf_have_incdir" = no ; then
9278 if test "$cf_add_incdir" = /usr/local/include ; then
9279 if test "$GCC" = yes
9281 cf_save_CPPFLAGS=$CPPFLAGS
9282 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9283 cat >conftest.$ac_ext <<_ACEOF
9284 #line 9284 "configure"
9285 #include "confdefs.h"
9295 rm -f conftest.$ac_objext
9296 if { (eval echo "$as_me:9296: \"$ac_compile\"") >&5
9297 (eval $ac_compile) 2>&5
9299 echo "$as_me:9299: \$? = $ac_status" >&5
9300 (exit $ac_status); } &&
9301 { ac_try='test -s conftest.$ac_objext'
9302 { (eval echo "$as_me:9302: \"$ac_try\"") >&5
9305 echo "$as_me:9305: \$? = $ac_status" >&5
9306 (exit $ac_status); }; }; then
9309 echo "$as_me: failed program was:" >&5
9310 cat conftest.$ac_ext >&5
9313 rm -f conftest.$ac_objext conftest.$ac_ext
9314 CPPFLAGS=$cf_save_CPPFLAGS
9319 if test "$cf_have_incdir" = no ; then
9320 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
9322 echo "${as_me:-configure}:9322: testing adding $cf_add_incdir to include-path ..." 1>&5
9324 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9326 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
9327 test "$cf_top_incdir" = "$cf_add_incdir" && break
9328 cf_add_incdir="$cf_top_incdir"
9337 if test -n "$cf_cv_library_path_utf8" ; then
9338 for cf_add_libdir in $cf_cv_library_path_utf8
9340 if test $cf_add_libdir = /usr/lib ; then
9342 elif test -d $cf_add_libdir
9345 if test -n "$LDFLAGS$LIBS" ; then
9346 # a loop is needed to ensure we can add subdirs of existing dirs
9347 for cf_test_libdir in $LDFLAGS $LIBS ; do
9348 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
9349 cf_have_libdir=yes; break
9353 if test "$cf_have_libdir" = no ; then
9354 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
9356 echo "${as_me:-configure}:9356: testing adding $cf_add_libdir to library-path ..." 1>&5
9358 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
9364 LIBS="$cf_cv_library_file_utf8 $LIBS"
9367 if test "$cf_cv_utf8_lib" != no ; then
9372 # This is needed on Tru64 5.0 to declare mbstate_t
9373 echo "$as_me:9373: checking if we must include wchar.h to declare mbstate_t" >&5
9374 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
9375 if test "${cf_cv_mbstate_t+set}" = set; then
9376 echo $ECHO_N "(cached) $ECHO_C" >&6
9379 cat >conftest.$ac_ext <<_ACEOF
9380 #line 9380 "configure"
9381 #include "confdefs.h"
9386 #ifdef HAVE_LIBUTF8_H
9387 #include <libutf8.h>
9397 rm -f conftest.$ac_objext
9398 if { (eval echo "$as_me:9398: \"$ac_compile\"") >&5
9399 (eval $ac_compile) 2>&5
9401 echo "$as_me:9401: \$? = $ac_status" >&5
9402 (exit $ac_status); } &&
9403 { ac_try='test -s conftest.$ac_objext'
9404 { (eval echo "$as_me:9404: \"$ac_try\"") >&5
9407 echo "$as_me:9407: \$? = $ac_status" >&5
9408 (exit $ac_status); }; }; then
9411 echo "$as_me: failed program was:" >&5
9412 cat conftest.$ac_ext >&5
9413 cat >conftest.$ac_ext <<_ACEOF
9414 #line 9414 "configure"
9415 #include "confdefs.h"
9421 #ifdef HAVE_LIBUTF8_H
9422 #include <libutf8.h>
9432 rm -f conftest.$ac_objext
9433 if { (eval echo "$as_me:9433: \"$ac_compile\"") >&5
9434 (eval $ac_compile) 2>&5
9436 echo "$as_me:9436: \$? = $ac_status" >&5
9437 (exit $ac_status); } &&
9438 { ac_try='test -s conftest.$ac_objext'
9439 { (eval echo "$as_me:9439: \"$ac_try\"") >&5
9442 echo "$as_me:9442: \$? = $ac_status" >&5
9443 (exit $ac_status); }; }; then
9446 echo "$as_me: failed program was:" >&5
9447 cat conftest.$ac_ext >&5
9448 cf_cv_mbstate_t=unknown
9450 rm -f conftest.$ac_objext conftest.$ac_ext
9452 rm -f conftest.$ac_objext conftest.$ac_ext
9454 echo "$as_me:9454: result: $cf_cv_mbstate_t" >&5
9455 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
9457 if test "$cf_cv_mbstate_t" = yes ; then
9458 cat >>confdefs.h <<\EOF
9459 #define NEED_WCHAR_H 1
9465 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
9466 if test "$cf_cv_mbstate_t" = unknown ; then
9470 # This is needed on Tru64 5.0 to declare wchar_t
9471 echo "$as_me:9471: checking if we must include wchar.h to declare wchar_t" >&5
9472 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
9473 if test "${cf_cv_wchar_t+set}" = set; then
9474 echo $ECHO_N "(cached) $ECHO_C" >&6
9477 cat >conftest.$ac_ext <<_ACEOF
9478 #line 9478 "configure"
9479 #include "confdefs.h"
9484 #ifdef HAVE_LIBUTF8_H
9485 #include <libutf8.h>
9495 rm -f conftest.$ac_objext
9496 if { (eval echo "$as_me:9496: \"$ac_compile\"") >&5
9497 (eval $ac_compile) 2>&5
9499 echo "$as_me:9499: \$? = $ac_status" >&5
9500 (exit $ac_status); } &&
9501 { ac_try='test -s conftest.$ac_objext'
9502 { (eval echo "$as_me:9502: \"$ac_try\"") >&5
9505 echo "$as_me:9505: \$? = $ac_status" >&5
9506 (exit $ac_status); }; }; then
9509 echo "$as_me: failed program was:" >&5
9510 cat conftest.$ac_ext >&5
9511 cat >conftest.$ac_ext <<_ACEOF
9512 #line 9512 "configure"
9513 #include "confdefs.h"
9519 #ifdef HAVE_LIBUTF8_H
9520 #include <libutf8.h>
9530 rm -f conftest.$ac_objext
9531 if { (eval echo "$as_me:9531: \"$ac_compile\"") >&5
9532 (eval $ac_compile) 2>&5
9534 echo "$as_me:9534: \$? = $ac_status" >&5
9535 (exit $ac_status); } &&
9536 { ac_try='test -s conftest.$ac_objext'
9537 { (eval echo "$as_me:9537: \"$ac_try\"") >&5
9540 echo "$as_me:9540: \$? = $ac_status" >&5
9541 (exit $ac_status); }; }; then
9544 echo "$as_me: failed program was:" >&5
9545 cat conftest.$ac_ext >&5
9546 cf_cv_wchar_t=unknown
9548 rm -f conftest.$ac_objext conftest.$ac_ext
9550 rm -f conftest.$ac_objext conftest.$ac_ext
9552 echo "$as_me:9552: result: $cf_cv_wchar_t" >&5
9553 echo "${ECHO_T}$cf_cv_wchar_t" >&6
9555 if test "$cf_cv_wchar_t" = yes ; then
9556 cat >>confdefs.h <<\EOF
9557 #define NEED_WCHAR_H 1
9563 # if we do not find wchar_t in either place, use substitution to provide a fallback.
9564 if test "$cf_cv_wchar_t" = unknown ; then
9568 # if we find wchar_t in either place, use substitution to provide a fallback.
9569 if test "$cf_cv_wchar_t" != unknown ; then
9570 NCURSES_OK_WCHAR_T=1
9573 # This is needed on Tru64 5.0 to declare wint_t
9574 echo "$as_me:9574: checking if we must include wchar.h to declare wint_t" >&5
9575 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
9576 if test "${cf_cv_wint_t+set}" = set; then
9577 echo $ECHO_N "(cached) $ECHO_C" >&6
9580 cat >conftest.$ac_ext <<_ACEOF
9581 #line 9581 "configure"
9582 #include "confdefs.h"
9587 #ifdef HAVE_LIBUTF8_H
9588 #include <libutf8.h>
9598 rm -f conftest.$ac_objext
9599 if { (eval echo "$as_me:9599: \"$ac_compile\"") >&5
9600 (eval $ac_compile) 2>&5
9602 echo "$as_me:9602: \$? = $ac_status" >&5
9603 (exit $ac_status); } &&
9604 { ac_try='test -s conftest.$ac_objext'
9605 { (eval echo "$as_me:9605: \"$ac_try\"") >&5
9608 echo "$as_me:9608: \$? = $ac_status" >&5
9609 (exit $ac_status); }; }; then
9612 echo "$as_me: failed program was:" >&5
9613 cat conftest.$ac_ext >&5
9614 cat >conftest.$ac_ext <<_ACEOF
9615 #line 9615 "configure"
9616 #include "confdefs.h"
9622 #ifdef HAVE_LIBUTF8_H
9623 #include <libutf8.h>
9633 rm -f conftest.$ac_objext
9634 if { (eval echo "$as_me:9634: \"$ac_compile\"") >&5
9635 (eval $ac_compile) 2>&5
9637 echo "$as_me:9637: \$? = $ac_status" >&5
9638 (exit $ac_status); } &&
9639 { ac_try='test -s conftest.$ac_objext'
9640 { (eval echo "$as_me:9640: \"$ac_try\"") >&5
9643 echo "$as_me:9643: \$? = $ac_status" >&5
9644 (exit $ac_status); }; }; then
9647 echo "$as_me: failed program was:" >&5
9648 cat conftest.$ac_ext >&5
9649 cf_cv_wint_t=unknown
9651 rm -f conftest.$ac_objext conftest.$ac_ext
9653 rm -f conftest.$ac_objext conftest.$ac_ext
9655 echo "$as_me:9655: result: $cf_cv_wint_t" >&5
9656 echo "${ECHO_T}$cf_cv_wint_t" >&6
9658 if test "$cf_cv_wint_t" = yes ; then
9659 cat >>confdefs.h <<\EOF
9660 #define NEED_WCHAR_H 1
9666 # if we do not find wint_t in either place, use substitution to provide a fallback.
9667 if test "$cf_cv_wint_t" = unknown ; then
9671 # if we find wint_t in either place, use substitution to provide a fallback.
9672 if test "$cf_cv_wint_t" != unknown ; then
9676 if test "$NCURSES_MBSTATE_T" != 0; then
9677 cat >>confdefs.h <<\EOF
9678 #define NEED_MBSTATE_T_DEF 1
9684 ### use option --disable-lp64 to allow long chtype
9685 case $cf_cv_abi_version in
9687 default_with_lp64=no
9690 default_with_lp64=yes
9694 echo "$as_me:9694: checking whether to enable _LP64 definition in curses.h" >&5
9695 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
9697 # Check whether --enable-lp64 or --disable-lp64 was given.
9698 if test "${enable_lp64+set}" = set; then
9699 enableval="$enable_lp64"
9700 with_lp64=$enableval
9702 with_lp64=$default_with_lp64
9704 echo "$as_me:9704: result: $with_lp64" >&5
9705 echo "${ECHO_T}$with_lp64" >&6
9707 if test "$with_lp64" = yes ; then
9713 # Check whether --enable-largefile or --disable-largefile was given.
9714 if test "${enable_largefile+set}" = set; then
9715 enableval="$enable_largefile"
9718 if test "$enable_largefile" != no; then
9720 echo "$as_me:9720: checking for special C compiler options needed for large files" >&5
9721 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
9722 if test "${ac_cv_sys_largefile_CC+set}" = set; then
9723 echo $ECHO_N "(cached) $ECHO_C" >&6
9725 ac_cv_sys_largefile_CC=no
9726 if test "$GCC" != yes; then
9729 # IRIX 6.2 and later do not support large files by default,
9730 # so use the C compiler's -n32 option if that helps.
9731 cat >conftest.$ac_ext <<_ACEOF
9732 #line 9732 "configure"
9733 #include "confdefs.h"
9734 #include <sys/types.h>
9735 /* Check that off_t can represent 2**63 - 1 correctly.
9736 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9737 since some C++ compilers masquerading as C compilers
9738 incorrectly reject 9223372036854775807. */
9739 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9740 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9741 && LARGE_OFF_T % 2147483647 == 1)
9751 rm -f conftest.$ac_objext
9752 if { (eval echo "$as_me:9752: \"$ac_compile\"") >&5
9753 (eval $ac_compile) 2>&5
9755 echo "$as_me:9755: \$? = $ac_status" >&5
9756 (exit $ac_status); } &&
9757 { ac_try='test -s conftest.$ac_objext'
9758 { (eval echo "$as_me:9758: \"$ac_try\"") >&5
9761 echo "$as_me:9761: \$? = $ac_status" >&5
9762 (exit $ac_status); }; }; then
9765 echo "$as_me: failed program was:" >&5
9766 cat conftest.$ac_ext >&5
9768 rm -f conftest.$ac_objext
9770 rm -f conftest.$ac_objext
9771 if { (eval echo "$as_me:9771: \"$ac_compile\"") >&5
9772 (eval $ac_compile) 2>&5
9774 echo "$as_me:9774: \$? = $ac_status" >&5
9775 (exit $ac_status); } &&
9776 { ac_try='test -s conftest.$ac_objext'
9777 { (eval echo "$as_me:9777: \"$ac_try\"") >&5
9780 echo "$as_me:9780: \$? = $ac_status" >&5
9781 (exit $ac_status); }; }; then
9782 ac_cv_sys_largefile_CC=' -n32'; break
9784 echo "$as_me: failed program was:" >&5
9785 cat conftest.$ac_ext >&5
9787 rm -f conftest.$ac_objext
9791 rm -f conftest.$ac_ext
9794 echo "$as_me:9794: result: $ac_cv_sys_largefile_CC" >&5
9795 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
9796 if test "$ac_cv_sys_largefile_CC" != no; then
9797 CC=$CC$ac_cv_sys_largefile_CC
9800 echo "$as_me:9800: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9801 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
9802 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9803 echo $ECHO_N "(cached) $ECHO_C" >&6
9806 ac_cv_sys_file_offset_bits=no
9807 cat >conftest.$ac_ext <<_ACEOF
9808 #line 9808 "configure"
9809 #include "confdefs.h"
9810 #include <sys/types.h>
9811 /* Check that off_t can represent 2**63 - 1 correctly.
9812 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9813 since some C++ compilers masquerading as C compilers
9814 incorrectly reject 9223372036854775807. */
9815 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9816 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9817 && LARGE_OFF_T % 2147483647 == 1)
9827 rm -f conftest.$ac_objext
9828 if { (eval echo "$as_me:9828: \"$ac_compile\"") >&5
9829 (eval $ac_compile) 2>&5
9831 echo "$as_me:9831: \$? = $ac_status" >&5
9832 (exit $ac_status); } &&
9833 { ac_try='test -s conftest.$ac_objext'
9834 { (eval echo "$as_me:9834: \"$ac_try\"") >&5
9837 echo "$as_me:9837: \$? = $ac_status" >&5
9838 (exit $ac_status); }; }; then
9841 echo "$as_me: failed program was:" >&5
9842 cat conftest.$ac_ext >&5
9844 rm -f conftest.$ac_objext conftest.$ac_ext
9845 cat >conftest.$ac_ext <<_ACEOF
9846 #line 9846 "configure"
9847 #include "confdefs.h"
9848 #define _FILE_OFFSET_BITS 64
9849 #include <sys/types.h>
9850 /* Check that off_t can represent 2**63 - 1 correctly.
9851 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9852 since some C++ compilers masquerading as C compilers
9853 incorrectly reject 9223372036854775807. */
9854 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9855 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9856 && LARGE_OFF_T % 2147483647 == 1)
9866 rm -f conftest.$ac_objext
9867 if { (eval echo "$as_me:9867: \"$ac_compile\"") >&5
9868 (eval $ac_compile) 2>&5
9870 echo "$as_me:9870: \$? = $ac_status" >&5
9871 (exit $ac_status); } &&
9872 { ac_try='test -s conftest.$ac_objext'
9873 { (eval echo "$as_me:9873: \"$ac_try\"") >&5
9876 echo "$as_me:9876: \$? = $ac_status" >&5
9877 (exit $ac_status); }; }; then
9878 ac_cv_sys_file_offset_bits=64; break
9880 echo "$as_me: failed program was:" >&5
9881 cat conftest.$ac_ext >&5
9883 rm -f conftest.$ac_objext conftest.$ac_ext
9887 echo "$as_me:9887: result: $ac_cv_sys_file_offset_bits" >&5
9888 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9889 if test "$ac_cv_sys_file_offset_bits" != no; then
9891 cat >>confdefs.h <<EOF
9892 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9897 echo "$as_me:9897: checking for _LARGE_FILES value needed for large files" >&5
9898 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
9899 if test "${ac_cv_sys_large_files+set}" = set; then
9900 echo $ECHO_N "(cached) $ECHO_C" >&6
9903 ac_cv_sys_large_files=no
9904 cat >conftest.$ac_ext <<_ACEOF
9905 #line 9905 "configure"
9906 #include "confdefs.h"
9907 #include <sys/types.h>
9908 /* Check that off_t can represent 2**63 - 1 correctly.
9909 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9910 since some C++ compilers masquerading as C compilers
9911 incorrectly reject 9223372036854775807. */
9912 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9913 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9914 && LARGE_OFF_T % 2147483647 == 1)
9924 rm -f conftest.$ac_objext
9925 if { (eval echo "$as_me:9925: \"$ac_compile\"") >&5
9926 (eval $ac_compile) 2>&5
9928 echo "$as_me:9928: \$? = $ac_status" >&5
9929 (exit $ac_status); } &&
9930 { ac_try='test -s conftest.$ac_objext'
9931 { (eval echo "$as_me:9931: \"$ac_try\"") >&5
9934 echo "$as_me:9934: \$? = $ac_status" >&5
9935 (exit $ac_status); }; }; then
9938 echo "$as_me: failed program was:" >&5
9939 cat conftest.$ac_ext >&5
9941 rm -f conftest.$ac_objext conftest.$ac_ext
9942 cat >conftest.$ac_ext <<_ACEOF
9943 #line 9943 "configure"
9944 #include "confdefs.h"
9945 #define _LARGE_FILES 1
9946 #include <sys/types.h>
9947 /* Check that off_t can represent 2**63 - 1 correctly.
9948 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9949 since some C++ compilers masquerading as C compilers
9950 incorrectly reject 9223372036854775807. */
9951 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9952 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9953 && LARGE_OFF_T % 2147483647 == 1)
9963 rm -f conftest.$ac_objext
9964 if { (eval echo "$as_me:9964: \"$ac_compile\"") >&5
9965 (eval $ac_compile) 2>&5
9967 echo "$as_me:9967: \$? = $ac_status" >&5
9968 (exit $ac_status); } &&
9969 { ac_try='test -s conftest.$ac_objext'
9970 { (eval echo "$as_me:9970: \"$ac_try\"") >&5
9973 echo "$as_me:9973: \$? = $ac_status" >&5
9974 (exit $ac_status); }; }; then
9975 ac_cv_sys_large_files=1; break
9977 echo "$as_me: failed program was:" >&5
9978 cat conftest.$ac_ext >&5
9980 rm -f conftest.$ac_objext conftest.$ac_ext
9984 echo "$as_me:9984: result: $ac_cv_sys_large_files" >&5
9985 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9986 if test "$ac_cv_sys_large_files" != no; then
9988 cat >>confdefs.h <<EOF
9989 #define _LARGE_FILES $ac_cv_sys_large_files
9996 if test "$enable_largefile" != no ; then
9997 echo "$as_me:9997: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9998 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
9999 if test "${ac_cv_sys_largefile_source+set}" = set; then
10000 echo $ECHO_N "(cached) $ECHO_C" >&6
10003 ac_cv_sys_largefile_source=no
10004 cat >conftest.$ac_ext <<_ACEOF
10005 #line 10005 "configure"
10006 #include "confdefs.h"
10016 rm -f conftest.$ac_objext
10017 if { (eval echo "$as_me:10017: \"$ac_compile\"") >&5
10018 (eval $ac_compile) 2>&5
10020 echo "$as_me:10020: \$? = $ac_status" >&5
10021 (exit $ac_status); } &&
10022 { ac_try='test -s conftest.$ac_objext'
10023 { (eval echo "$as_me:10023: \"$ac_try\"") >&5
10024 (eval $ac_try) 2>&5
10026 echo "$as_me:10026: \$? = $ac_status" >&5
10027 (exit $ac_status); }; }; then
10030 echo "$as_me: failed program was:" >&5
10031 cat conftest.$ac_ext >&5
10033 rm -f conftest.$ac_objext conftest.$ac_ext
10034 cat >conftest.$ac_ext <<_ACEOF
10035 #line 10035 "configure"
10036 #include "confdefs.h"
10037 #define _LARGEFILE_SOURCE 1
10047 rm -f conftest.$ac_objext
10048 if { (eval echo "$as_me:10048: \"$ac_compile\"") >&5
10049 (eval $ac_compile) 2>&5
10051 echo "$as_me:10051: \$? = $ac_status" >&5
10052 (exit $ac_status); } &&
10053 { ac_try='test -s conftest.$ac_objext'
10054 { (eval echo "$as_me:10054: \"$ac_try\"") >&5
10055 (eval $ac_try) 2>&5
10057 echo "$as_me:10057: \$? = $ac_status" >&5
10058 (exit $ac_status); }; }; then
10059 ac_cv_sys_largefile_source=1; break
10061 echo "$as_me: failed program was:" >&5
10062 cat conftest.$ac_ext >&5
10064 rm -f conftest.$ac_objext conftest.$ac_ext
10068 echo "$as_me:10068: result: $ac_cv_sys_largefile_source" >&5
10069 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
10070 if test "$ac_cv_sys_largefile_source" != no; then
10072 cat >>confdefs.h <<EOF
10073 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10079 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10080 # in glibc 2.1.3, but that breaks too many other things.
10081 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10082 echo "$as_me:10082: checking for fseeko" >&5
10083 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
10084 if test "${ac_cv_func_fseeko+set}" = set; then
10085 echo $ECHO_N "(cached) $ECHO_C" >&6
10087 cat >conftest.$ac_ext <<_ACEOF
10088 #line 10088 "configure"
10089 #include "confdefs.h"
10094 return fseeko && fseeko (stdin, 0, 0);
10099 rm -f conftest.$ac_objext conftest$ac_exeext
10100 if { (eval echo "$as_me:10100: \"$ac_link\"") >&5
10101 (eval $ac_link) 2>&5
10103 echo "$as_me:10103: \$? = $ac_status" >&5
10104 (exit $ac_status); } &&
10105 { ac_try='test -s conftest$ac_exeext'
10106 { (eval echo "$as_me:10106: \"$ac_try\"") >&5
10107 (eval $ac_try) 2>&5
10109 echo "$as_me:10109: \$? = $ac_status" >&5
10110 (exit $ac_status); }; }; then
10111 ac_cv_func_fseeko=yes
10113 echo "$as_me: failed program was:" >&5
10114 cat conftest.$ac_ext >&5
10115 ac_cv_func_fseeko=no
10117 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10119 echo "$as_me:10119: result: $ac_cv_func_fseeko" >&5
10120 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
10121 if test $ac_cv_func_fseeko = yes; then
10123 cat >>confdefs.h <<\EOF
10124 #define HAVE_FSEEKO 1
10129 # Normally we would collect these definitions in the config.h,
10130 # but (like _XOPEN_SOURCE), some environments rely on having these
10131 # defined before any of the system headers are included. Another
10132 # case comes up with C++, e.g., on AIX the compiler compiles the
10133 # header files by themselves before looking at the body files it is
10134 # told to compile. For ncurses, those header files do not include
10136 test "$ac_cv_sys_large_files" != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
10137 test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE "
10138 test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits "
10140 echo "$as_me:10140: checking whether to use struct dirent64" >&5
10141 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
10142 if test "${cf_cv_struct_dirent64+set}" = set; then
10143 echo $ECHO_N "(cached) $ECHO_C" >&6
10146 cat >conftest.$ac_ext <<_ACEOF
10147 #line 10147 "configure"
10148 #include "confdefs.h"
10150 #include <sys/types.h>
10151 #include <dirent.h>
10157 /* if transitional largefile support is setup, this is true */
10158 extern struct dirent64 * readdir(DIR *);
10159 struct dirent64 *x = readdir((DIR *)0);
10160 struct dirent *y = readdir((DIR *)0);
10167 rm -f conftest.$ac_objext
10168 if { (eval echo "$as_me:10168: \"$ac_compile\"") >&5
10169 (eval $ac_compile) 2>&5
10171 echo "$as_me:10171: \$? = $ac_status" >&5
10172 (exit $ac_status); } &&
10173 { ac_try='test -s conftest.$ac_objext'
10174 { (eval echo "$as_me:10174: \"$ac_try\"") >&5
10175 (eval $ac_try) 2>&5
10177 echo "$as_me:10177: \$? = $ac_status" >&5
10178 (exit $ac_status); }; }; then
10179 cf_cv_struct_dirent64=yes
10181 echo "$as_me: failed program was:" >&5
10182 cat conftest.$ac_ext >&5
10183 cf_cv_struct_dirent64=no
10185 rm -f conftest.$ac_objext conftest.$ac_ext
10188 echo "$as_me:10188: result: $cf_cv_struct_dirent64" >&5
10189 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
10190 test "$cf_cv_struct_dirent64" = yes && cat >>confdefs.h <<\EOF
10191 #define HAVE_STRUCT_DIRENT64 1
10196 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
10197 echo "$as_me:10197: checking if you want tparm not to use X/Open fixed-parameter list" >&5
10198 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
10200 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
10201 if test "${enable_tparm_varargs+set}" = set; then
10202 enableval="$enable_tparm_varargs"
10203 with_tparm_varargs=$enableval
10205 with_tparm_varargs=yes
10207 echo "$as_me:10207: result: $with_tparm_varargs" >&5
10208 echo "${ECHO_T}$with_tparm_varargs" >&6
10209 NCURSES_TPARM_VARARGS=0
10210 test "$with_tparm_varargs" = yes && NCURSES_TPARM_VARARGS=1
10212 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
10213 if test "$with_ticlib" != no ; then
10214 echo "$as_me:10214: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
10215 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
10217 # Check whether --enable-tic-depends or --disable-tic-depends was given.
10218 if test "${enable_tic_depends+set}" = set; then
10219 enableval="$enable_tic_depends"
10220 with_tic_depends=$enableval
10222 with_tic_depends=yes
10224 echo "$as_me:10224: result: $with_tic_depends" >&5
10225 echo "${ECHO_T}$with_tic_depends" >&6
10227 with_tic_depends=no
10230 ### use option --with-bool to override bool's type
10231 echo "$as_me:10231: checking for type of bool" >&5
10232 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
10234 # Check whether --with-bool or --without-bool was given.
10235 if test "${with_bool+set}" = set; then
10236 withval="$with_bool"
10237 NCURSES_BOOL="$withval"
10241 echo "$as_me:10241: result: $NCURSES_BOOL" >&5
10242 echo "${ECHO_T}$NCURSES_BOOL" >&6
10244 echo "$as_me:10244: checking for alternate terminal capabilities file" >&5
10245 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
10247 # Check whether --with-caps or --without-caps was given.
10248 if test "${with_caps+set}" = set; then
10249 withval="$with_caps"
10250 TERMINFO_CAPS=Caps.$withval
10254 test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
10255 echo "$as_me:10255: result: $TERMINFO_CAPS" >&5
10256 echo "${ECHO_T}$TERMINFO_CAPS" >&6
10258 ### use option --with-chtype to override chtype's type
10259 echo "$as_me:10259: checking for type of chtype" >&5
10260 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
10262 # Check whether --with-chtype or --without-chtype was given.
10263 if test "${with_chtype+set}" = set; then
10264 withval="$with_chtype"
10265 NCURSES_CHTYPE="$withval"
10267 NCURSES_CHTYPE=auto
10269 echo "$as_me:10269: result: $NCURSES_CHTYPE" >&5
10270 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
10272 ### use option --with-ospeed to override ospeed's type
10273 echo "$as_me:10273: checking for type of ospeed" >&5
10274 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
10276 # Check whether --with-ospeed or --without-ospeed was given.
10277 if test "${with_ospeed+set}" = set; then
10278 withval="$with_ospeed"
10279 NCURSES_OSPEED="$withval"
10281 NCURSES_OSPEED=short
10283 echo "$as_me:10283: result: $NCURSES_OSPEED" >&5
10284 echo "${ECHO_T}$NCURSES_OSPEED" >&6
10286 ### use option --with-mmask-t to override mmask_t's type
10287 echo "$as_me:10287: checking for type of mmask_t" >&5
10288 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
10290 # Check whether --with-mmask-t or --without-mmask-t was given.
10291 if test "${with_mmask_t+set}" = set; then
10292 withval="$with_mmask_t"
10293 NCURSES_MMASK_T="$withval"
10295 NCURSES_MMASK_T=auto
10297 echo "$as_me:10297: result: $NCURSES_MMASK_T" >&5
10298 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
10300 ### use option --with-ccharw-max to override CCHARW_MAX size
10301 echo "$as_me:10301: checking for size CCHARW_MAX" >&5
10302 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
10304 # Check whether --with-ccharw-max or --without-ccharw-max was given.
10305 if test "${with_ccharw_max+set}" = set; then
10306 withval="$with_ccharw_max"
10307 NCURSES_CCHARW_MAX="$withval"
10309 NCURSES_CCHARW_MAX=5
10311 echo "$as_me:10311: result: $NCURSES_CCHARW_MAX" >&5
10312 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
10314 ### use option --with-tparm-arg to override tparm's argument type
10315 echo "$as_me:10315: checking for type of tparm args" >&5
10316 echo $ECHO_N "checking for type of tparm args... $ECHO_C" >&6
10318 # Check whether --with-tparm-arg or --without-tparm-arg was given.
10319 if test "${with_tparm_arg+set}" = set; then
10320 withval="$with_tparm_arg"
10321 NCURSES_TPARM_ARG="$withval"
10323 NCURSES_TPARM_ARG=long
10325 echo "$as_me:10325: result: $NCURSES_TPARM_ARG" >&5
10326 echo "${ECHO_T}$NCURSES_TPARM_ARG" >&6
10328 ### Enable compiling-in rcs id's
10329 echo "$as_me:10329: checking if RCS identifiers should be compiled-in" >&5
10330 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
10332 # Check whether --with-rcs-ids or --without-rcs-ids was given.
10333 if test "${with_rcs_ids+set}" = set; then
10334 withval="$with_rcs_ids"
10335 with_rcs_ids=$withval
10339 echo "$as_me:10339: result: $with_rcs_ids" >&5
10340 echo "${ECHO_T}$with_rcs_ids" >&6
10341 test "$with_rcs_ids" = yes && cat >>confdefs.h <<\EOF
10342 #define USE_RCS_IDS 1
10345 ###############################################################################
10347 echo "$as_me:10347: checking format of man-pages" >&5
10348 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
10350 # Check whether --with-manpage-format or --without-manpage-format was given.
10351 if test "${with_manpage_format+set}" = set; then
10352 withval="$with_manpage_format"
10353 MANPAGE_FORMAT=$withval
10355 MANPAGE_FORMAT=unknown
10358 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
10359 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
10363 case $MANPAGE_FORMAT in
10365 if test -z "$MANPATH" ; then
10366 MANPATH="/usr/man:/usr/share/man"
10369 # look for the 'date' man-page (it's most likely to be installed!)
10375 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
10376 for cf_dir in $MANPATH; do
10377 test -z "$cf_dir" && cf_dir=/usr/man
10378 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
10380 cf_test=`echo $cf_name | sed -e 's/*//'`
10381 if test "x$cf_test" = "x$cf_name" ; then
10384 *.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
10385 *.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
10386 *.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
10387 *) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
10401 # if we found a match in either man* or cat*, stop looking
10402 if test -n "$MANPAGE_FORMAT" ; then
10404 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
10405 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
10411 test $cf_found=yes && break
10414 # only check the first directory in $MANPATH where we find manpages
10415 if test -n "$MANPAGE_FORMAT" ; then
10419 # if we did not find the example, just assume it is normal
10420 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
10424 for cf_option in $MANPAGE_FORMAT; do
10425 case $cf_option in #(vi
10426 gzip|compress|BSDI|normal|formatted|catonly)
10429 cf_unknown="$cf_unknown $cf_option"
10436 echo "$as_me:10436: result: $MANPAGE_FORMAT" >&5
10437 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
10438 if test -n "$cf_unknown" ; then
10439 { echo "$as_me:10439: WARNING: Unexpected manpage-format $cf_unknown" >&5
10440 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
10443 echo "$as_me:10443: checking for manpage renaming" >&5
10444 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
10446 # Check whether --with-manpage-renames or --without-manpage-renames was given.
10447 if test "${with_manpage_renames+set}" = set; then
10448 withval="$with_manpage_renames"
10449 MANPAGE_RENAMES=$withval
10451 MANPAGE_RENAMES=yes
10454 case ".$MANPAGE_RENAMES" in #(vi
10458 # Debian 'man' program?
10459 if test -f /etc/debian_version ; then
10460 MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
10467 if test "$MANPAGE_RENAMES" != no ; then
10468 if test -f $srcdir/man/$MANPAGE_RENAMES ; then
10469 MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
10470 elif test ! -f $MANPAGE_RENAMES ; then
10471 { { echo "$as_me:10471: error: not a filename: $MANPAGE_RENAMES" >&5
10472 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
10473 { (exit 1); exit 1; }; }
10476 test ! -d man && mkdir man
10478 # Construct a sed-script to perform renaming within man-pages
10479 if test -n "$MANPAGE_RENAMES" ; then
10480 test ! -d man && mkdir man
10481 sh $srcdir/man/make_sed.sh $MANPAGE_RENAMES >./edit_man.sed
10485 echo "$as_me:10485: result: $MANPAGE_RENAMES" >&5
10486 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
10488 echo "$as_me:10488: checking if manpage aliases will be installed" >&5
10489 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
10491 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
10492 if test "${with_manpage_aliases+set}" = set; then
10493 withval="$with_manpage_aliases"
10494 MANPAGE_ALIASES=$withval
10496 MANPAGE_ALIASES=yes
10499 echo "$as_me:10499: result: $MANPAGE_ALIASES" >&5
10500 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
10502 case "x$LN_S" in #(vi
10504 cf_use_symlinks=yes
10511 MANPAGE_SYMLINKS=no
10512 if test "$MANPAGE_ALIASES" = yes ; then
10513 echo "$as_me:10513: checking if manpage symlinks should be used" >&5
10514 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
10516 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
10517 if test "${with_manpage_symlinks+set}" = set; then
10518 withval="$with_manpage_symlinks"
10519 MANPAGE_SYMLINKS=$withval
10521 MANPAGE_SYMLINKS=$cf_use_symlinks
10524 if test "$$cf_use_symlinks" = no; then
10525 if test "$MANPAGE_SYMLINKS" = yes ; then
10526 { echo "$as_me:10526: WARNING: cannot make symlinks" >&5
10527 echo "$as_me: WARNING: cannot make symlinks" >&2;}
10528 MANPAGE_SYMLINKS=no
10532 echo "$as_me:10532: result: $MANPAGE_SYMLINKS" >&5
10533 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
10536 echo "$as_me:10536: checking for manpage tbl" >&5
10537 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
10539 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
10540 if test "${with_manpage_tbl+set}" = set; then
10541 withval="$with_manpage_tbl"
10542 MANPAGE_TBL=$withval
10547 echo "$as_me:10547: result: $MANPAGE_TBL" >&5
10548 echo "${ECHO_T}$MANPAGE_TBL" >&6
10550 if test "$prefix" = "NONE" ; then
10551 cf_prefix="$ac_default_prefix"
10553 cf_prefix="$prefix"
10556 case "$MANPAGE_FORMAT" in # (vi
10571 test ! -d man && mkdir man
10575 case "$MANPAGE_FORMAT" in #(vi
10578 cf_compress=compress
10586 cf_edit_man=./edit_man.sh
10587 cf_man_alias=`pwd`/man_alias.sed
10589 cat >$cf_edit_man <<CF_EOF
10591 # this script is generated by the configure-script CF_MAN_PAGES macro.
10593 prefix="$cf_prefix"
10596 NCURSES_MAJOR="$NCURSES_MAJOR"
10597 NCURSES_MINOR="$NCURSES_MINOR"
10598 NCURSES_PATCH="$NCURSES_PATCH"
10600 NCURSES_OSPEED="$NCURSES_OSPEED"
10601 TERMINFO="$TERMINFO"
10604 INSTALL_DATA="$INSTALL_DATA"
10606 transform="$program_transform_name"
10608 TMP=\${TMPDIR:=/tmp}/man\$\$
10609 trap "rm -f \$TMP" 0 1 2 5 15
10621 top_srcdir=\$srcdir/..
10624 if test "\$form" = normal ; then
10625 if test "$cf_format" = yes ; then
10626 if test "$cf_inboth" = no ; then
10627 sh \$0 format \$verb \$mandir \$srcdir \$*
10631 cf_subdir=\$mandir/man
10632 cf_tables=$MANPAGE_TBL
10634 cf_subdir=\$mandir/cat
10638 # process the list of source-files
10641 *.orig|*.rej) ;; #(vi
10643 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
10644 if test \$verb = installing ; then
10645 if test ! -d \$cf_subdir\${section} ; then
10646 mkdir -p \$cf_subdir\$section
10650 # replace variables in man page
10651 if test ! -f $cf_man_alias ; then
10652 cat >>$cf_man_alias <<-CF_EOF2
10653 s,@DATADIR@,\$datadir,g
10654 s,@TERMINFO@,\$TERMINFO,g
10655 s,@NCURSES_MAJOR@,\$NCURSES_MAJOR,g
10656 s,@NCURSES_MINOR@,\$NCURSES_MINOR,g
10657 s,@NCURSES_PATCH@,\$NCURSES_PATCH,g
10658 s,@NCURSES_OSPEED@,\$NCURSES_OSPEED,g
10661 for cf_name in captoinfo clear infocmp infotocap tabs tic toe tput tset
10663 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
10664 cf_name=`echo $cf_name|sed "$program_transform_name"`
10665 cat >>$cf_edit_man <<-CF_EOF
10666 s,@$cf_NAME@,$cf_name,g
10670 cat >>$cf_edit_man <<CF_EOF
10672 echo "...made $cf_man_alias"
10676 cf_source=\`basename \$i\`
10677 inalias=\$cf_source
10678 test ! -f \$inalias && inalias="\$srcdir/\$inalias"
10679 if test ! -f \$inalias ; then
10680 echo .. skipped \$cf_source
10685 if test "$MANPAGE_ALIASES" != no ; then
10686 cat >>$cf_edit_man <<CF_EOF
10688 test $with_curses_h = yes && nCurses=ncurses.3x
10689 aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u; test \$inalias = \$nCurses && echo curses\`
10693 if test "$MANPAGE_RENAMES" = no ; then
10694 cat >>$cf_edit_man <<CF_EOF
10695 # perform program transformations for section 1 man pages
10696 if test \$section = 1 ; then
10697 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
10699 cf_target=\$cf_subdir\${section}/\$cf_source
10703 cat >>$cf_edit_man <<CF_EOF
10704 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
10705 if test -z "\$cf_target" ; then
10706 echo '? missing rename for '\$cf_source
10707 cf_target="\$cf_source"
10709 cf_target="\$cf_subdir\${section}/\${cf_target}"
10714 cat >>$cf_edit_man <<CF_EOF
10715 sed -f $cf_man_alias \\
10718 if test -f $MANPAGE_RENAMES ; then
10719 cat >>$cf_edit_man <<CF_EOF
10720 < \$i | sed -f `pwd`/edit_man.sed >\$TMP
10723 cat >>$cf_edit_man <<CF_EOF
10728 cat >>$cf_edit_man <<CF_EOF
10729 if test \$cf_tables = yes ; then
10730 tbl \$TMP >\$TMP.out
10735 if test $with_overwrite != yes ; then
10736 cat >>$cf_edit_man <<CF_EOF
10737 sed -e "/\#[ ]*include/s,<curses.h,<ncurses$LIB_SUFFIX/curses.h," < \$TMP >\$TMP.out
10742 if test $with_curses_h != yes ; then
10743 cat >>$cf_edit_man <<CF_EOF
10744 sed -e "/\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
10749 cat >>$cf_edit_man <<CF_EOF
10750 if test \$form = format ; then
10751 nroff -man \$TMP >\$TMP.out
10756 if test -n "$cf_compress" ; then
10757 cat >>$cf_edit_man <<CF_EOF
10758 if test \$verb = installing ; then
10759 if ( $cf_compress -f \$TMP )
10761 mv \$TMP.$cf_so_strip \$TMP
10764 cf_target="\$cf_target.$cf_so_strip"
10768 case "$MANPAGE_FORMAT" in #(vi
10770 cat >>$cf_edit_man <<CF_EOF
10771 if test \$form = format ; then
10772 # BSDI installs only .0 suffixes in the cat directories
10773 cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
10779 cat >>$cf_edit_man <<CF_EOF
10780 suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\`
10781 if test \$verb = installing ; then
10782 echo \$verb \$cf_target
10783 \$INSTALL_DATA \$TMP \$cf_target
10784 test -d \$cf_subdir\${section} &&
10785 test -n "\$aliases" && (
10786 cd \$cf_subdir\${section} && (
10787 cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
10788 test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
10789 cf_target=\`basename \$cf_target\`
10790 for cf_alias in \$aliases
10792 if test \$section = 1 ; then
10793 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
10796 if test "$MANPAGE_SYMLINKS" = yes ; then
10797 if test -f \$cf_alias\${suffix} ; then
10798 if ( cmp -s \$cf_target \$cf_alias\${suffix} )
10803 echo .. \$verb alias \$cf_alias\${suffix}
10805 case "x$LN_S" in #(vi
10807 cat >>$cf_edit_man <<CF_EOF
10808 $LN_S \$cf_target \$cf_alias\${suffix}
10812 cat >>$cf_edit_man <<CF_EOF
10813 rm -f \$cf_alias\${suffix}
10814 $LN_S \$cf_target \$cf_alias\${suffix}
10818 cat >>$cf_edit_man <<CF_EOF
10819 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
10820 echo ".so \$cf_source" >\$TMP
10822 if test -n "$cf_compress" ; then
10823 cat >>$cf_edit_man <<CF_EOF
10824 if test -n "$cf_so_strip" ; then
10825 $cf_compress -f \$TMP
10826 mv \$TMP.$cf_so_strip \$TMP
10830 cat >>$cf_edit_man <<CF_EOF
10831 echo .. \$verb alias \$cf_alias\${suffix}
10832 rm -f \$cf_alias\${suffix}
10833 \$INSTALL_DATA \$TMP \$cf_alias\${suffix}
10838 elif test \$verb = removing ; then
10839 test -f \$cf_target && (
10840 echo \$verb \$cf_target
10843 test -d \$cf_subdir\${section} &&
10844 test -n "\$aliases" && (
10845 cd \$cf_subdir\${section} && (
10846 for cf_alias in \$aliases
10848 if test \$section = 1 ; then
10849 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
10852 echo .. \$verb alias \$cf_alias\${suffix}
10853 rm -f \$cf_alias\${suffix}
10865 if test $cf_inboth = yes ; then
10866 if test \$form != format ; then
10867 sh \$0 format \$verb \$mandir \$srcdir \$*
10873 chmod 755 $cf_edit_man
10875 ###############################################################################
10877 ### Note that some functions (such as const) are normally disabled anyway.
10878 echo "$as_me:10878: checking if you want to build with function extensions" >&5
10879 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
10881 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
10882 if test "${enable_ext_funcs+set}" = set; then
10883 enableval="$enable_ext_funcs"
10884 with_ext_funcs=$enableval
10888 echo "$as_me:10888: result: $with_ext_funcs" >&5
10889 echo "${ECHO_T}$with_ext_funcs" >&6
10890 if test "$with_ext_funcs" = yes ; then
10891 NCURSES_EXT_FUNCS=1
10892 cat >>confdefs.h <<\EOF
10893 #define HAVE_ASSUME_DEFAULT_COLORS 1
10896 cat >>confdefs.h <<\EOF
10897 #define HAVE_CURSES_VERSION 1
10900 cat >>confdefs.h <<\EOF
10901 #define HAVE_HAS_KEY 1
10904 cat >>confdefs.h <<\EOF
10905 #define HAVE_RESIZETERM 1
10908 cat >>confdefs.h <<\EOF
10909 #define HAVE_RESIZE_TERM 1
10912 cat >>confdefs.h <<\EOF
10913 #define HAVE_TERM_ENTRY_H 1
10916 cat >>confdefs.h <<\EOF
10917 #define HAVE_USE_DEFAULT_COLORS 1
10920 cat >>confdefs.h <<\EOF
10921 #define HAVE_USE_SCREEN 1
10924 cat >>confdefs.h <<\EOF
10925 #define HAVE_USE_WINDOW 1
10928 cat >>confdefs.h <<\EOF
10929 #define HAVE_WRESIZE 1
10932 cat >>confdefs.h <<\EOF
10933 #define NCURSES_EXT_FUNCS 1
10936 GENERATED_EXT_FUNCS=generated
10938 NCURSES_EXT_FUNCS=0
10939 GENERATED_EXT_FUNCS=
10942 echo "$as_me:10942: checking if you want to build with experimental SCREEN extensions" >&5
10943 echo $ECHO_N "checking if you want to build with experimental SCREEN extensions... $ECHO_C" >&6
10945 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
10946 if test "${enable_sp_funcs+set}" = set; then
10947 enableval="$enable_sp_funcs"
10948 with_sp_funcs=$enableval
10952 echo "$as_me:10952: result: $with_sp_funcs" >&5
10953 echo "${ECHO_T}$with_sp_funcs" >&6
10954 if test "$with_sp_funcs" = yes ; then
10956 cat >>confdefs.h <<\EOF
10957 #define NCURSES_SP_FUNCS 1
10960 GENERATED_SP_FUNCS=generated
10963 GENERATED_SP_FUNCS=
10966 echo "$as_me:10966: checking if you want to build with experimental terminal-driver" >&5
10967 echo $ECHO_N "checking if you want to build with experimental terminal-driver... $ECHO_C" >&6
10969 # Check whether --enable-term-driver or --disable-term-driver was given.
10970 if test "${enable_term_driver+set}" = set; then
10971 enableval="$enable_term_driver"
10972 with_term_driver=$enableval
10974 with_term_driver=no
10976 echo "$as_me:10976: result: $with_term_driver" >&5
10977 echo "${ECHO_T}$with_term_driver" >&6
10978 if test "$with_term_driver" = yes ; then
10979 cat >>confdefs.h <<\EOF
10980 #define USE_TERM_DRIVER 1
10983 if test "$with_sp_funcs" != yes ; then
10984 { { echo "$as_me:10984: error: The term-driver option relies upon sp-funcs" >&5
10985 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
10986 { (exit 1); exit 1; }; }
10990 ### use option --enable-const to turn on use of const beyond that in XSI.
10991 echo "$as_me:10991: checking for extended use of const keyword" >&5
10992 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
10994 # Check whether --enable-const or --disable-const was given.
10995 if test "${enable_const+set}" = set; then
10996 enableval="$enable_const"
10997 with_ext_const=$enableval
11001 echo "$as_me:11001: result: $with_ext_const" >&5
11002 echo "${ECHO_T}$with_ext_const" >&6
11003 NCURSES_CONST='/*nothing*/'
11004 if test "$with_ext_const" = yes ; then
11005 NCURSES_CONST=const
11008 ### use option --enable-ext-colors to turn on use of colors beyond 16.
11009 echo "$as_me:11009: checking if you want to use extended colors" >&5
11010 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
11012 # Check whether --enable-ext-colors or --disable-ext-colors was given.
11013 if test "${enable_ext_colors+set}" = set; then
11014 enableval="$enable_ext_colors"
11015 with_ext_colors=$enableval
11019 echo "$as_me:11019: result: $with_ext_colors" >&5
11020 echo "${ECHO_T}$with_ext_colors" >&6
11021 NCURSES_EXT_COLORS=0
11022 if test "$with_ext_colors" = yes ; then
11023 if test "$with_widec" != yes ; then
11024 { { echo "$as_me:11024: error: This option applies only to wide-character library" >&5
11025 echo "$as_me: error: This option applies only to wide-character library" >&2;}
11026 { (exit 1); exit 1; }; }
11028 # cannot be ABI 5 since it changes sizeof(cchar_t)
11030 if test "${with_abi_version+set}" != set; then
11031 case $cf_cv_rel_version in
11033 cf_cv_rel_version=6.0
11034 cf_cv_abi_version=6
11035 { echo "$as_me:11035: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
11036 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
11042 NCURSES_EXT_COLORS=1
11043 cat >>confdefs.h <<\EOF
11044 #define NCURSES_EXT_COLORS 1
11049 ### use option --enable-ext-mouse to modify coding to support 5-button mice
11050 echo "$as_me:11050: checking if you want to use extended mouse encoding" >&5
11051 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
11053 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
11054 if test "${enable_ext_mouse+set}" = set; then
11055 enableval="$enable_ext_mouse"
11056 with_ext_mouse=$enableval
11060 echo "$as_me:11060: result: $with_ext_mouse" >&5
11061 echo "${ECHO_T}$with_ext_mouse" >&6
11062 NCURSES_MOUSE_VERSION=1
11063 if test "$with_ext_mouse" = yes ; then
11064 NCURSES_MOUSE_VERSION=2
11066 if test "${with_abi_version+set}" != set; then
11067 case $cf_cv_rel_version in
11069 cf_cv_rel_version=6.0
11070 cf_cv_abi_version=6
11071 { echo "$as_me:11071: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
11072 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
11079 echo "$as_me:11079: checking if you want \$NCURSES_NO_PADDING code" >&5
11080 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
11082 # Check whether --enable-no-padding or --disable-no-padding was given.
11083 if test "${enable_no_padding+set}" = set; then
11084 enableval="$enable_no_padding"
11085 with_no_padding=$enableval
11087 with_no_padding=$with_ext_funcs
11089 echo "$as_me:11089: result: $with_no_padding" >&5
11090 echo "${ECHO_T}$with_no_padding" >&6
11091 test "$with_no_padding" = yes && cat >>confdefs.h <<\EOF
11092 #define NCURSES_NO_PADDING 1
11095 echo "$as_me:11095: checking for ANSI C header files" >&5
11096 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11097 if test "${ac_cv_header_stdc+set}" = set; then
11098 echo $ECHO_N "(cached) $ECHO_C" >&6
11100 cat >conftest.$ac_ext <<_ACEOF
11101 #line 11101 "configure"
11102 #include "confdefs.h"
11103 #include <stdlib.h>
11104 #include <stdarg.h>
11105 #include <string.h>
11109 if { (eval echo "$as_me:11109: \"$ac_cpp conftest.$ac_ext\"") >&5
11110 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11112 egrep -v '^ *\+' conftest.er1 >conftest.err
11114 cat conftest.err >&5
11115 echo "$as_me:11115: \$? = $ac_status" >&5
11116 (exit $ac_status); } >/dev/null; then
11117 if test -s conftest.err; then
11118 ac_cpp_err=$ac_c_preproc_warn_flag
11125 if test -z "$ac_cpp_err"; then
11126 ac_cv_header_stdc=yes
11128 echo "$as_me: failed program was:" >&5
11129 cat conftest.$ac_ext >&5
11130 ac_cv_header_stdc=no
11132 rm -f conftest.err conftest.$ac_ext
11134 if test $ac_cv_header_stdc = yes; then
11135 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11136 cat >conftest.$ac_ext <<_ACEOF
11137 #line 11137 "configure"
11138 #include "confdefs.h"
11139 #include <string.h>
11142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11143 egrep "memchr" >/dev/null 2>&1; then
11146 ac_cv_header_stdc=no
11152 if test $ac_cv_header_stdc = yes; then
11153 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11154 cat >conftest.$ac_ext <<_ACEOF
11155 #line 11155 "configure"
11156 #include "confdefs.h"
11157 #include <stdlib.h>
11160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11161 egrep "free" >/dev/null 2>&1; then
11164 ac_cv_header_stdc=no
11170 if test $ac_cv_header_stdc = yes; then
11171 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11172 if test "$cross_compiling" = yes; then
11175 cat >conftest.$ac_ext <<_ACEOF
11176 #line 11176 "configure"
11177 #include "confdefs.h"
11179 #if ((' ' & 0x0FF) == 0x020)
11180 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11181 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11183 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
11184 || ('j' <= (c) && (c) <= 'r') \
11185 || ('s' <= (c) && (c) <= 'z'))
11186 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11189 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11194 for (i = 0; i < 256; i++)
11195 if (XOR (islower (i), ISLOWER (i))
11196 || toupper (i) != TOUPPER (i))
11197 $ac_main_return(2);
11198 $ac_main_return (0);
11201 rm -f conftest$ac_exeext
11202 if { (eval echo "$as_me:11202: \"$ac_link\"") >&5
11203 (eval $ac_link) 2>&5
11205 echo "$as_me:11205: \$? = $ac_status" >&5
11206 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11207 { (eval echo "$as_me:11207: \"$ac_try\"") >&5
11208 (eval $ac_try) 2>&5
11210 echo "$as_me:11210: \$? = $ac_status" >&5
11211 (exit $ac_status); }; }; then
11214 echo "$as_me: program exited with status $ac_status" >&5
11215 echo "$as_me: failed program was:" >&5
11216 cat conftest.$ac_ext >&5
11217 ac_cv_header_stdc=no
11219 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11223 echo "$as_me:11223: result: $ac_cv_header_stdc" >&5
11224 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11225 if test $ac_cv_header_stdc = yes; then
11227 cat >>confdefs.h <<\EOF
11228 #define STDC_HEADERS 1
11233 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
11235 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
11236 inttypes.h stdint.h unistd.h
11238 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11239 echo "$as_me:11239: checking for $ac_header" >&5
11240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11242 echo $ECHO_N "(cached) $ECHO_C" >&6
11244 cat >conftest.$ac_ext <<_ACEOF
11245 #line 11245 "configure"
11246 #include "confdefs.h"
11247 $ac_includes_default
11248 #include <$ac_header>
11250 rm -f conftest.$ac_objext
11251 if { (eval echo "$as_me:11251: \"$ac_compile\"") >&5
11252 (eval $ac_compile) 2>&5
11254 echo "$as_me:11254: \$? = $ac_status" >&5
11255 (exit $ac_status); } &&
11256 { ac_try='test -s conftest.$ac_objext'
11257 { (eval echo "$as_me:11257: \"$ac_try\"") >&5
11258 (eval $ac_try) 2>&5
11260 echo "$as_me:11260: \$? = $ac_status" >&5
11261 (exit $ac_status); }; }; then
11262 eval "$as_ac_Header=yes"
11264 echo "$as_me: failed program was:" >&5
11265 cat conftest.$ac_ext >&5
11266 eval "$as_ac_Header=no"
11268 rm -f conftest.$ac_objext conftest.$ac_ext
11270 echo "$as_me:11270: result: `eval echo '${'$as_ac_Header'}'`" >&5
11271 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11273 cat >>confdefs.h <<EOF
11274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11280 echo "$as_me:11280: checking for signed char" >&5
11281 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
11282 if test "${ac_cv_type_signed_char+set}" = set; then
11283 echo $ECHO_N "(cached) $ECHO_C" >&6
11285 cat >conftest.$ac_ext <<_ACEOF
11286 #line 11286 "configure"
11287 #include "confdefs.h"
11288 $ac_includes_default
11292 if ((signed char *) 0)
11294 if (sizeof (signed char))
11300 rm -f conftest.$ac_objext
11301 if { (eval echo "$as_me:11301: \"$ac_compile\"") >&5
11302 (eval $ac_compile) 2>&5
11304 echo "$as_me:11304: \$? = $ac_status" >&5
11305 (exit $ac_status); } &&
11306 { ac_try='test -s conftest.$ac_objext'
11307 { (eval echo "$as_me:11307: \"$ac_try\"") >&5
11308 (eval $ac_try) 2>&5
11310 echo "$as_me:11310: \$? = $ac_status" >&5
11311 (exit $ac_status); }; }; then
11312 ac_cv_type_signed_char=yes
11314 echo "$as_me: failed program was:" >&5
11315 cat conftest.$ac_ext >&5
11316 ac_cv_type_signed_char=no
11318 rm -f conftest.$ac_objext conftest.$ac_ext
11320 echo "$as_me:11320: result: $ac_cv_type_signed_char" >&5
11321 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
11323 echo "$as_me:11323: checking size of signed char" >&5
11324 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
11325 if test "${ac_cv_sizeof_signed_char+set}" = set; then
11326 echo $ECHO_N "(cached) $ECHO_C" >&6
11328 if test "$ac_cv_type_signed_char" = yes; then
11329 if test "$cross_compiling" = yes; then
11330 # Depending upon the size, compute the lo and hi bounds.
11331 cat >conftest.$ac_ext <<_ACEOF
11332 #line 11332 "configure"
11333 #include "confdefs.h"
11334 $ac_includes_default
11338 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
11343 rm -f conftest.$ac_objext
11344 if { (eval echo "$as_me:11344: \"$ac_compile\"") >&5
11345 (eval $ac_compile) 2>&5
11347 echo "$as_me:11347: \$? = $ac_status" >&5
11348 (exit $ac_status); } &&
11349 { ac_try='test -s conftest.$ac_objext'
11350 { (eval echo "$as_me:11350: \"$ac_try\"") >&5
11351 (eval $ac_try) 2>&5
11353 echo "$as_me:11353: \$? = $ac_status" >&5
11354 (exit $ac_status); }; }; then
11357 cat >conftest.$ac_ext <<_ACEOF
11358 #line 11358 "configure"
11359 #include "confdefs.h"
11360 $ac_includes_default
11364 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
11369 rm -f conftest.$ac_objext
11370 if { (eval echo "$as_me:11370: \"$ac_compile\"") >&5
11371 (eval $ac_compile) 2>&5
11373 echo "$as_me:11373: \$? = $ac_status" >&5
11374 (exit $ac_status); } &&
11375 { ac_try='test -s conftest.$ac_objext'
11376 { (eval echo "$as_me:11376: \"$ac_try\"") >&5
11377 (eval $ac_try) 2>&5
11379 echo "$as_me:11379: \$? = $ac_status" >&5
11380 (exit $ac_status); }; }; then
11381 ac_hi=$ac_mid; break
11383 echo "$as_me: failed program was:" >&5
11384 cat conftest.$ac_ext >&5
11385 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
11387 rm -f conftest.$ac_objext conftest.$ac_ext
11390 echo "$as_me: failed program was:" >&5
11391 cat conftest.$ac_ext >&5
11394 cat >conftest.$ac_ext <<_ACEOF
11395 #line 11395 "configure"
11396 #include "confdefs.h"
11397 $ac_includes_default
11401 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
11406 rm -f conftest.$ac_objext
11407 if { (eval echo "$as_me:11407: \"$ac_compile\"") >&5
11408 (eval $ac_compile) 2>&5
11410 echo "$as_me:11410: \$? = $ac_status" >&5
11411 (exit $ac_status); } &&
11412 { ac_try='test -s conftest.$ac_objext'
11413 { (eval echo "$as_me:11413: \"$ac_try\"") >&5
11414 (eval $ac_try) 2>&5
11416 echo "$as_me:11416: \$? = $ac_status" >&5
11417 (exit $ac_status); }; }; then
11418 ac_lo=$ac_mid; break
11420 echo "$as_me: failed program was:" >&5
11421 cat conftest.$ac_ext >&5
11422 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
11424 rm -f conftest.$ac_objext conftest.$ac_ext
11427 rm -f conftest.$ac_objext conftest.$ac_ext
11428 # Binary search between lo and hi bounds.
11429 while test "x$ac_lo" != "x$ac_hi"; do
11430 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11431 cat >conftest.$ac_ext <<_ACEOF
11432 #line 11432 "configure"
11433 #include "confdefs.h"
11434 $ac_includes_default
11438 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
11443 rm -f conftest.$ac_objext
11444 if { (eval echo "$as_me:11444: \"$ac_compile\"") >&5
11445 (eval $ac_compile) 2>&5
11447 echo "$as_me:11447: \$? = $ac_status" >&5
11448 (exit $ac_status); } &&
11449 { ac_try='test -s conftest.$ac_objext'
11450 { (eval echo "$as_me:11450: \"$ac_try\"") >&5
11451 (eval $ac_try) 2>&5
11453 echo "$as_me:11453: \$? = $ac_status" >&5
11454 (exit $ac_status); }; }; then
11457 echo "$as_me: failed program was:" >&5
11458 cat conftest.$ac_ext >&5
11459 ac_lo=`expr $ac_mid + 1`
11461 rm -f conftest.$ac_objext conftest.$ac_ext
11463 ac_cv_sizeof_signed_char=$ac_lo
11465 if test "$cross_compiling" = yes; then
11466 { { echo "$as_me:11466: error: cannot run test program while cross compiling" >&5
11467 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11468 { (exit 1); exit 1; }; }
11470 cat >conftest.$ac_ext <<_ACEOF
11471 #line 11471 "configure"
11472 #include "confdefs.h"
11473 $ac_includes_default
11477 FILE *f = fopen ("conftest.val", "w");
11479 $ac_main_return (1);
11480 fprintf (f, "%d", (sizeof (signed char)));
11486 rm -f conftest$ac_exeext
11487 if { (eval echo "$as_me:11487: \"$ac_link\"") >&5
11488 (eval $ac_link) 2>&5
11490 echo "$as_me:11490: \$? = $ac_status" >&5
11491 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11492 { (eval echo "$as_me:11492: \"$ac_try\"") >&5
11493 (eval $ac_try) 2>&5
11495 echo "$as_me:11495: \$? = $ac_status" >&5
11496 (exit $ac_status); }; }; then
11497 ac_cv_sizeof_signed_char=`cat conftest.val`
11499 echo "$as_me: program exited with status $ac_status" >&5
11500 echo "$as_me: failed program was:" >&5
11501 cat conftest.$ac_ext >&5
11503 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11508 ac_cv_sizeof_signed_char=0
11511 echo "$as_me:11511: result: $ac_cv_sizeof_signed_char" >&5
11512 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
11513 cat >>confdefs.h <<EOF
11514 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
11517 if test "$ac_cv_sizeof_signed_char" = 1 ; then
11518 NCURSES_SBOOL="signed char"
11520 NCURSES_SBOOL="char"
11522 echo "$as_me:11522: checking if you want to use signed Boolean array in term.h" >&5
11523 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
11525 # Check whether --enable-signed-char or --disable-signed-char was given.
11526 if test "${enable_signed_char+set}" = set; then
11527 enableval="$enable_signed_char"
11528 with_signed_char=$enableval
11530 with_signed_char=no
11532 echo "$as_me:11532: result: $with_signed_char" >&5
11533 echo "${ECHO_T}$with_signed_char" >&6
11534 test "$with_signed_char" != yes && NCURSES_SBOOL="char"
11536 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
11537 echo "$as_me:11537: checking if you want SIGWINCH handler" >&5
11538 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
11540 # Check whether --enable-sigwinch or --disable-sigwinch was given.
11541 if test "${enable_sigwinch+set}" = set; then
11542 enableval="$enable_sigwinch"
11543 with_sigwinch=$enableval
11545 with_sigwinch=$with_ext_funcs
11547 echo "$as_me:11547: result: $with_sigwinch" >&5
11548 echo "${ECHO_T}$with_sigwinch" >&6
11549 test "$with_sigwinch" = yes && cat >>confdefs.h <<\EOF
11550 #define USE_SIGWINCH 1
11553 ### use option --enable-tcap-names to allow user to define new capabilities
11554 echo "$as_me:11554: checking if you want user-definable terminal capabilities like termcap" >&5
11555 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
11557 # Check whether --enable-tcap-names or --disable-tcap-names was given.
11558 if test "${enable_tcap_names+set}" = set; then
11559 enableval="$enable_tcap_names"
11560 with_tcap_names=$enableval
11562 with_tcap_names=$with_ext_funcs
11564 echo "$as_me:11564: result: $with_tcap_names" >&5
11565 echo "${ECHO_T}$with_tcap_names" >&6
11567 test "$with_tcap_names" = yes && NCURSES_XNAMES=1
11569 ###############################################################################
11570 # These options are relatively safe to experiment with.
11572 echo "$as_me:11572: checking if you want all development code" >&5
11573 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
11575 # Check whether --with-develop or --without-develop was given.
11576 if test "${with_develop+set}" = set; then
11577 withval="$with_develop"
11578 with_develop=$withval
11582 echo "$as_me:11582: result: $with_develop" >&5
11583 echo "${ECHO_T}$with_develop" >&6
11585 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
11586 echo "$as_me:11586: checking if you want hard-tabs code" >&5
11587 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
11589 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
11590 if test "${enable_hard_tabs+set}" = set; then
11591 enableval="$enable_hard_tabs"
11594 enable_hard_tabs=$with_develop
11596 echo "$as_me:11596: result: $enable_hard_tabs" >&5
11597 echo "${ECHO_T}$enable_hard_tabs" >&6
11598 test "$enable_hard_tabs" = yes && cat >>confdefs.h <<\EOF
11599 #define USE_HARD_TABS 1
11602 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
11603 echo "$as_me:11603: checking if you want limited support for xmc" >&5
11604 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
11606 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
11607 if test "${enable_xmc_glitch+set}" = set; then
11608 enableval="$enable_xmc_glitch"
11611 enable_xmc_glitch=$with_develop
11613 echo "$as_me:11613: result: $enable_xmc_glitch" >&5
11614 echo "${ECHO_T}$enable_xmc_glitch" >&6
11615 test "$enable_xmc_glitch" = yes && cat >>confdefs.h <<\EOF
11616 #define USE_XMC_SUPPORT 1
11619 ###############################################################################
11620 # These are just experimental, probably should not be in a package:
11622 echo "$as_me:11622: checking if you do not want to assume colors are white-on-black" >&5
11623 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
11625 # Check whether --enable-assumed-color or --disable-assumed-color was given.
11626 if test "${enable_assumed_color+set}" = set; then
11627 enableval="$enable_assumed_color"
11628 with_assumed_color=$enableval
11630 with_assumed_color=yes
11632 echo "$as_me:11632: result: $with_assumed_color" >&5
11633 echo "${ECHO_T}$with_assumed_color" >&6
11634 test "$with_assumed_color" = yes && cat >>confdefs.h <<\EOF
11635 #define USE_ASSUMED_COLOR 1
11638 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
11639 echo "$as_me:11639: checking if you want hashmap scrolling-optimization code" >&5
11640 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
11642 # Check whether --enable-hashmap or --disable-hashmap was given.
11643 if test "${enable_hashmap+set}" = set; then
11644 enableval="$enable_hashmap"
11645 with_hashmap=$enableval
11649 echo "$as_me:11649: result: $with_hashmap" >&5
11650 echo "${ECHO_T}$with_hashmap" >&6
11651 test "$with_hashmap" = yes && cat >>confdefs.h <<\EOF
11652 #define USE_HASHMAP 1
11655 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
11656 echo "$as_me:11656: checking if you want colorfgbg code" >&5
11657 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
11659 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
11660 if test "${enable_colorfgbg+set}" = set; then
11661 enableval="$enable_colorfgbg"
11662 with_colorfgbg=$enableval
11666 echo "$as_me:11666: result: $with_colorfgbg" >&5
11667 echo "${ECHO_T}$with_colorfgbg" >&6
11668 test "$with_colorfgbg" = yes && cat >>confdefs.h <<\EOF
11669 #define USE_COLORFGBG 1
11672 ### use option --enable-interop to turn on use of bindings used for interop
11673 echo "$as_me:11673: checking if you want interop bindings" >&5
11674 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
11676 # Check whether --enable-interop or --disable-interop was given.
11677 if test "${enable_interop+set}" = set; then
11678 enableval="$enable_interop"
11679 with_exp_interop=$enableval
11681 with_exp_interop=no
11683 echo "$as_me:11683: result: $with_exp_interop" >&5
11684 echo "${ECHO_T}$with_exp_interop" >&6
11686 NCURSES_INTEROP_FUNCS=0
11687 test "$with_exp_interop" = yes && NCURSES_INTEROP_FUNCS=1
11689 # This is still experimental (20080329), but should ultimately be moved to
11690 # the script-block --with-normal, etc.
11692 echo "$as_me:11692: checking if you want to link with the pthread library" >&5
11693 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
11695 # Check whether --with-pthread or --without-pthread was given.
11696 if test "${with_pthread+set}" = set; then
11697 withval="$with_pthread"
11698 with_pthread=$withval
11702 echo "$as_me:11702: result: $with_pthread" >&5
11703 echo "${ECHO_T}$with_pthread" >&6
11705 if test "$with_pthread" != no ; then
11706 echo "$as_me:11706: checking for pthread.h" >&5
11707 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
11708 if test "${ac_cv_header_pthread_h+set}" = set; then
11709 echo $ECHO_N "(cached) $ECHO_C" >&6
11711 cat >conftest.$ac_ext <<_ACEOF
11712 #line 11712 "configure"
11713 #include "confdefs.h"
11714 #include <pthread.h>
11716 if { (eval echo "$as_me:11716: \"$ac_cpp conftest.$ac_ext\"") >&5
11717 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11719 egrep -v '^ *\+' conftest.er1 >conftest.err
11721 cat conftest.err >&5
11722 echo "$as_me:11722: \$? = $ac_status" >&5
11723 (exit $ac_status); } >/dev/null; then
11724 if test -s conftest.err; then
11725 ac_cpp_err=$ac_c_preproc_warn_flag
11732 if test -z "$ac_cpp_err"; then
11733 ac_cv_header_pthread_h=yes
11735 echo "$as_me: failed program was:" >&5
11736 cat conftest.$ac_ext >&5
11737 ac_cv_header_pthread_h=no
11739 rm -f conftest.err conftest.$ac_ext
11741 echo "$as_me:11741: result: $ac_cv_header_pthread_h" >&5
11742 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
11743 if test $ac_cv_header_pthread_h = yes; then
11745 cat >>confdefs.h <<\EOF
11746 #define HAVE_PTHREADS_H 1
11749 for cf_lib_pthread in pthread c_r
11751 echo "$as_me:11751: checking if we can link with the $cf_lib_pthread library" >&5
11752 echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
11753 cf_save_LIBS="$LIBS"
11754 LIBS="-l$cf_lib_pthread $LIBS"
11755 cat >conftest.$ac_ext <<_ACEOF
11756 #line 11756 "configure"
11757 #include "confdefs.h"
11759 #include <pthread.h>
11765 int rc = pthread_create(0,0,0,0);
11766 int r2 = pthread_mutexattr_settype(0, 0);
11772 rm -f conftest.$ac_objext conftest$ac_exeext
11773 if { (eval echo "$as_me:11773: \"$ac_link\"") >&5
11774 (eval $ac_link) 2>&5
11776 echo "$as_me:11776: \$? = $ac_status" >&5
11777 (exit $ac_status); } &&
11778 { ac_try='test -s conftest$ac_exeext'
11779 { (eval echo "$as_me:11779: \"$ac_try\"") >&5
11780 (eval $ac_try) 2>&5
11782 echo "$as_me:11782: \$? = $ac_status" >&5
11783 (exit $ac_status); }; }; then
11786 echo "$as_me: failed program was:" >&5
11787 cat conftest.$ac_ext >&5
11790 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11791 LIBS="$cf_save_LIBS"
11792 echo "$as_me:11792: result: $with_pthread" >&5
11793 echo "${ECHO_T}$with_pthread" >&6
11794 test "$with_pthread" = yes && break
11797 if test "$with_pthread" = yes ; then
11798 LIBS="-l$cf_lib_pthread $LIBS"
11799 cat >>confdefs.h <<\EOF
11800 #define HAVE_LIBPTHREADS 1
11804 { { echo "$as_me:11804: error: Cannot link with pthread library" >&5
11805 echo "$as_me: error: Cannot link with pthread library" >&2;}
11806 { (exit 1); exit 1; }; }
11813 if test "x$with_pthread" != xno; then
11814 echo "$as_me:11814: checking for pthread_kill" >&5
11815 echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6
11816 if test "${ac_cv_func_pthread_kill+set}" = set; then
11817 echo $ECHO_N "(cached) $ECHO_C" >&6
11819 cat >conftest.$ac_ext <<_ACEOF
11820 #line 11820 "configure"
11821 #include "confdefs.h"
11822 /* System header to define __stub macros and hopefully few prototypes,
11823 which can conflict with char pthread_kill (); below. */
11824 #include <assert.h>
11825 /* Override any gcc2 internal prototype to avoid an error. */
11829 /* We use char because int might match the return type of a gcc2
11830 builtin and then its argument prototype would still apply. */
11831 char pthread_kill ();
11837 /* The GNU C library defines this for functions which it implements
11838 to always fail with ENOSYS. Some functions are actually named
11839 something starting with __ and the normal name is an alias. */
11840 #if defined (__stub_pthread_kill) || defined (__stub___pthread_kill)
11850 rm -f conftest.$ac_objext conftest$ac_exeext
11851 if { (eval echo "$as_me:11851: \"$ac_link\"") >&5
11852 (eval $ac_link) 2>&5
11854 echo "$as_me:11854: \$? = $ac_status" >&5
11855 (exit $ac_status); } &&
11856 { ac_try='test -s conftest$ac_exeext'
11857 { (eval echo "$as_me:11857: \"$ac_try\"") >&5
11858 (eval $ac_try) 2>&5
11860 echo "$as_me:11860: \$? = $ac_status" >&5
11861 (exit $ac_status); }; }; then
11862 ac_cv_func_pthread_kill=yes
11864 echo "$as_me: failed program was:" >&5
11865 cat conftest.$ac_ext >&5
11866 ac_cv_func_pthread_kill=no
11868 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11870 echo "$as_me:11870: result: $ac_cv_func_pthread_kill" >&5
11871 echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6
11872 if test $ac_cv_func_pthread_kill = yes; then
11874 echo "$as_me:11874: checking if you want to allow EINTR in wgetch with pthreads" >&5
11875 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
11877 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
11878 if test "${enable_pthreads_eintr+set}" = set; then
11879 enableval="$enable_pthreads_eintr"
11880 use_pthreads_eintr=$enableval
11882 use_pthreads_eintr=no
11884 echo "$as_me:11884: result: $use_pthreads_eintr" >&5
11885 echo "${ECHO_T}$use_pthreads_eintr" >&6
11886 if test $use_pthreads_eintr = yes ; then
11887 cat >>confdefs.h <<\EOF
11888 #define USE_PTHREADS_EINTR 1
11894 echo "$as_me:11894: checking if you want to use weak-symbols for pthreads" >&5
11895 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
11897 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
11898 if test "${enable_weak_symbols+set}" = set; then
11899 enableval="$enable_weak_symbols"
11900 use_weak_symbols=$enableval
11902 use_weak_symbols=no
11904 echo "$as_me:11904: result: $use_weak_symbols" >&5
11905 echo "${ECHO_T}$use_weak_symbols" >&6
11906 if test "$use_weak_symbols" = yes ; then
11908 echo "$as_me:11908: checking if $CC supports weak symbols" >&5
11909 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
11910 if test "${cf_cv_weak_symbols+set}" = set; then
11911 echo $ECHO_N "(cached) $ECHO_C" >&6
11914 cat >conftest.$ac_ext <<_ACEOF
11915 #line 11915 "configure"
11916 #include "confdefs.h"
11923 #if defined(__GNUC__)
11924 # if defined __USE_ISOC99
11925 # define _cat_pragma(exp) _Pragma(#exp)
11926 # define _weak_pragma(exp) _cat_pragma(weak name)
11928 # define _weak_pragma(exp)
11930 # define _declare(name) __extension__ extern __typeof__(name) name
11931 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
11934 weak_symbol(fopen);
11940 rm -f conftest.$ac_objext
11941 if { (eval echo "$as_me:11941: \"$ac_compile\"") >&5
11942 (eval $ac_compile) 2>&5
11944 echo "$as_me:11944: \$? = $ac_status" >&5
11945 (exit $ac_status); } &&
11946 { ac_try='test -s conftest.$ac_objext'
11947 { (eval echo "$as_me:11947: \"$ac_try\"") >&5
11948 (eval $ac_try) 2>&5
11950 echo "$as_me:11950: \$? = $ac_status" >&5
11951 (exit $ac_status); }; }; then
11952 cf_cv_weak_symbols=yes
11954 echo "$as_me: failed program was:" >&5
11955 cat conftest.$ac_ext >&5
11956 cf_cv_weak_symbols=no
11958 rm -f conftest.$ac_objext conftest.$ac_ext
11961 echo "$as_me:11961: result: $cf_cv_weak_symbols" >&5
11962 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
11965 cf_cv_weak_symbols=no
11968 if test $cf_cv_weak_symbols = yes ; then
11969 cat >>confdefs.h <<\EOF
11970 #define USE_WEAK_SYMBOLS 1
11977 if test "$with_pthread" = "yes" ; then
11978 cat >>confdefs.h <<\EOF
11979 #define USE_PTHREADS 1
11982 enable_reentrant=yes
11983 if test $cf_cv_weak_symbols = yes ; then
11988 # Reentrant code has to be opaque; there's little advantage to making ncurses
11989 # opaque outside of that, so there is no --enable-opaque option. We can use
11990 # this option without --with-pthreads, but this will be always set for
11992 echo "$as_me:11992: checking if you want experimental reentrant code" >&5
11993 echo $ECHO_N "checking if you want experimental reentrant code... $ECHO_C" >&6
11995 # Check whether --enable-reentrant or --disable-reentrant was given.
11996 if test "${enable_reentrant+set}" = set; then
11997 enableval="$enable_reentrant"
11998 with_reentrant=$enableval
12002 echo "$as_me:12002: result: $with_reentrant" >&5
12003 echo "${ECHO_T}$with_reentrant" >&6
12004 if test "$with_reentrant" = yes ; then
12005 cf_cv_enable_reentrant=1
12006 cf_cv_enable_opaque="NCURSES_INTERNALS"
12009 if test $cf_cv_weak_symbols = yes ; then
12011 # remove pthread library from $LIBS
12012 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
12014 TEST_LIBS="-lpthread $TEST_LIBS"
12015 TEST_LIBS2="-lpthread $TEST_LIBS2"
12017 LIB_SUFFIX="t${LIB_SUFFIX}"
12019 cat >>confdefs.h <<\EOF
12020 #define USE_REENTRANT 1
12023 if test "${with_abi_version+set}" != set; then
12024 case $cf_cv_rel_version in
12026 cf_cv_rel_version=6.0
12027 cf_cv_abi_version=6
12028 { echo "$as_me:12028: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
12029 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
12035 cf_cv_enable_reentrant=0
12036 cf_cv_enable_opaque="NCURSES_OPAQUE"
12038 NCURSES_SIZE_T=short
12041 ### Allow using a different wrap-prefix
12042 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
12043 echo "$as_me:12043: checking for prefix used to wrap public variables" >&5
12044 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
12046 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
12047 if test "${with_wrap_prefix+set}" = set; then
12048 withval="$with_wrap_prefix"
12049 NCURSES_WRAP_PREFIX=$withval
12051 NCURSES_WRAP_PREFIX=_nc_
12053 echo "$as_me:12053: result: $NCURSES_WRAP_PREFIX" >&5
12054 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
12056 NCURSES_WRAP_PREFIX=_nc_
12059 cat >>confdefs.h <<EOF
12060 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
12063 echo "$as_me:12063: checking if you want experimental safe-sprintf code" >&5
12064 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
12066 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
12067 if test "${enable_safe_sprintf+set}" = set; then
12068 enableval="$enable_safe_sprintf"
12069 with_safe_sprintf=$enableval
12071 with_safe_sprintf=no
12073 echo "$as_me:12073: result: $with_safe_sprintf" >&5
12074 echo "${ECHO_T}$with_safe_sprintf" >&6
12075 test "$with_safe_sprintf" = yes && cat >>confdefs.h <<\EOF
12076 #define USE_SAFE_SPRINTF 1
12079 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
12080 # when hashmap is used scroll hints are useless
12081 if test "$with_hashmap" = no ; then
12082 echo "$as_me:12082: checking if you want to experiment without scrolling-hints code" >&5
12083 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
12085 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
12086 if test "${enable_scroll_hints+set}" = set; then
12087 enableval="$enable_scroll_hints"
12088 with_scroll_hints=$enableval
12090 with_scroll_hints=yes
12092 echo "$as_me:12092: result: $with_scroll_hints" >&5
12093 echo "${ECHO_T}$with_scroll_hints" >&6
12094 test "$with_scroll_hints" = yes && cat >>confdefs.h <<\EOF
12095 #define USE_SCROLL_HINTS 1
12100 echo "$as_me:12100: checking if you want experimental wgetch-events code" >&5
12101 echo $ECHO_N "checking if you want experimental wgetch-events code... $ECHO_C" >&6
12103 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
12104 if test "${enable_wgetch_events+set}" = set; then
12105 enableval="$enable_wgetch_events"
12106 with_wgetch_events=$enableval
12108 with_wgetch_events=no
12110 echo "$as_me:12110: result: $with_wgetch_events" >&5
12111 echo "${ECHO_T}$with_wgetch_events" >&6
12112 test "$with_wgetch_events" = yes && cat >>confdefs.h <<\EOF
12113 #define NCURSES_WGETCH_EVENTS 1
12116 ###############################################################################
12118 ### use option --disable-echo to suppress full display compiling commands
12119 echo "$as_me:12119: checking if you want to display full commands during build" >&5
12120 echo $ECHO_N "checking if you want to display full commands during build... $ECHO_C" >&6
12122 # Check whether --enable-echo or --disable-echo was given.
12123 if test "${enable_echo+set}" = set; then
12124 enableval="$enable_echo"
12125 with_echo=$enableval
12129 if test "$with_echo" = yes; then
12132 ECHO_LINK='@ echo linking $@ ... ;'
12133 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
12134 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
12136 echo "$as_me:12136: result: $with_echo" >&5
12137 echo "${ECHO_T}$with_echo" >&6
12139 ### use option --enable-warnings to turn on all gcc warnings
12140 echo "$as_me:12140: checking if you want to see compiler warnings" >&5
12141 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
12143 # Check whether --enable-warnings or --disable-warnings was given.
12144 if test "${enable_warnings+set}" = set; then
12145 enableval="$enable_warnings"
12146 with_warnings=$enableval
12148 echo "$as_me:12148: result: $with_warnings" >&5
12149 echo "${ECHO_T}$with_warnings" >&6
12151 if test "x$with_warnings" = "xyes"; then
12153 ADAFLAGS="$ADAFLAGS -gnatg"
12157 if test "$GCC" = yes ; then
12160 echo "$as_me:12160: checking if this is really Intel C compiler" >&5
12161 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
12162 cf_save_CFLAGS="$CFLAGS"
12163 CFLAGS="$CFLAGS -no-gcc"
12164 cat >conftest.$ac_ext <<_ACEOF
12165 #line 12165 "configure"
12166 #include "confdefs.h"
12172 #ifdef __INTEL_COMPILER
12181 rm -f conftest.$ac_objext
12182 if { (eval echo "$as_me:12182: \"$ac_compile\"") >&5
12183 (eval $ac_compile) 2>&5
12185 echo "$as_me:12185: \$? = $ac_status" >&5
12186 (exit $ac_status); } &&
12187 { ac_try='test -s conftest.$ac_objext'
12188 { (eval echo "$as_me:12188: \"$ac_try\"") >&5
12189 (eval $ac_try) 2>&5
12191 echo "$as_me:12191: \$? = $ac_status" >&5
12192 (exit $ac_status); }; }; then
12194 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
12197 echo "$as_me: failed program was:" >&5
12198 cat conftest.$ac_ext >&5
12200 rm -f conftest.$ac_objext conftest.$ac_ext
12201 CFLAGS="$cf_save_CFLAGS"
12202 echo "$as_me:12202: result: $INTEL_COMPILER" >&5
12203 echo "${ECHO_T}$INTEL_COMPILER" >&6
12208 cat > conftest.$ac_ext <<EOF
12209 #line 12209 "${as_me:-configure}"
12210 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
12213 if test "$INTEL_COMPILER" = yes
12215 # The "-wdXXX" options suppress warnings:
12216 # remark #1419: external declaration in primary source file
12217 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
12218 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
12219 # remark #193: zero used for undefined preprocessing identifier
12220 # remark #593: variable "curs_sb_left_arrow" was set but never used
12221 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
12222 # remark #869: parameter "tw" was never referenced
12223 # remark #981: operands are evaluated in unspecified order
12224 # warning #279: controlling expression is constant
12226 { echo "$as_me:12226: checking for $CC warning options..." >&5
12227 echo "$as_me: checking for $CC warning options..." >&6;}
12228 cf_save_CFLAGS="$CFLAGS"
12229 EXTRA_CFLAGS="-Wall"
12241 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
12242 if { (eval echo "$as_me:12242: \"$ac_compile\"") >&5
12243 (eval $ac_compile) 2>&5
12245 echo "$as_me:12245: \$? = $ac_status" >&5
12246 (exit $ac_status); }; then
12247 test -n "$verbose" && echo "$as_me:12247: result: ... -$cf_opt" >&5
12248 echo "${ECHO_T}... -$cf_opt" >&6
12249 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
12252 CFLAGS="$cf_save_CFLAGS"
12254 elif test "$GCC" = yes
12256 { echo "$as_me:12256: checking for $CC warning options..." >&5
12257 echo "$as_me: checking for $CC warning options..." >&6;}
12258 cf_save_CFLAGS="$CFLAGS"
12261 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
12262 for cf_opt in W Wall \
12263 Wbad-function-cast \
12267 Wmissing-declarations \
12268 Wmissing-prototypes \
12272 Wstrict-prototypes \
12273 Wundef $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum
12275 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
12276 if { (eval echo "$as_me:12276: \"$ac_compile\"") >&5
12277 (eval $ac_compile) 2>&5
12279 echo "$as_me:12279: \$? = $ac_status" >&5
12280 (exit $ac_status); }; then
12281 test -n "$verbose" && echo "$as_me:12281: result: ... -$cf_opt" >&5
12282 echo "${ECHO_T}... -$cf_opt" >&6
12283 case $cf_opt in #(vi
12285 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
12288 case $GCC_VERSION in
12290 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
12292 echo "${as_me:-configure}:12292: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
12298 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
12301 CFLAGS="$cf_save_CFLAGS"
12305 if test "$cf_with_cxx" = yes ; then
12309 if test "$GCC" = yes ; then
12312 echo "$as_me:12312: checking if this is really Intel C++ compiler" >&5
12313 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
12314 cf_save_CFLAGS="$CXXFLAGS"
12315 CXXFLAGS="$CXXFLAGS -no-gcc"
12316 cat >conftest.$ac_ext <<_ACEOF
12317 #line 12317 "configure"
12318 #include "confdefs.h"
12324 #ifdef __INTEL_COMPILER
12333 rm -f conftest.$ac_objext
12334 if { (eval echo "$as_me:12334: \"$ac_compile\"") >&5
12335 (eval $ac_compile) 2>&5
12337 echo "$as_me:12337: \$? = $ac_status" >&5
12338 (exit $ac_status); } &&
12339 { ac_try='test -s conftest.$ac_objext'
12340 { (eval echo "$as_me:12340: \"$ac_try\"") >&5
12341 (eval $ac_try) 2>&5
12343 echo "$as_me:12343: \$? = $ac_status" >&5
12344 (exit $ac_status); }; }; then
12345 INTEL_CPLUSPLUS=yes
12346 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
12349 echo "$as_me: failed program was:" >&5
12350 cat conftest.$ac_ext >&5
12352 rm -f conftest.$ac_objext conftest.$ac_ext
12353 CXXFLAGS="$cf_save_CFLAGS"
12354 echo "$as_me:12354: result: $INTEL_CPLUSPLUS" >&5
12355 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
12361 ac_cpp='$CXXCPP $CPPFLAGS'
12362 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12363 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12364 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12365 ac_main_return=return
12367 cat > conftest.$ac_ext <<EOF
12368 #line 12368 "configure"
12369 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
12372 if test "$INTEL_CPLUSPLUS" = yes
12374 # The "-wdXXX" options suppress warnings:
12375 # remark #1419: external declaration in primary source file
12376 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
12377 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
12378 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
12379 # remark #193: zero used for undefined preprocessing identifier
12380 # remark #593: variable "curs_sb_left_arrow" was set but never used
12381 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
12382 # remark #869: parameter "tw" was never referenced
12383 # remark #981: operands are evaluated in unspecified order
12384 # warning #269: invalid format string conversion
12386 { echo "$as_me:12386: checking for $CC warning options..." >&5
12387 echo "$as_me: checking for $CC warning options..." >&6;}
12388 cf_save_CXXFLAGS="$CXXFLAGS"
12389 EXTRA_CXXFLAGS="-Wall"
12402 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
12403 if { (eval echo "$as_me:12403: \"$ac_compile\"") >&5
12404 (eval $ac_compile) 2>&5
12406 echo "$as_me:12406: \$? = $ac_status" >&5
12407 (exit $ac_status); }; then
12408 test -n "$verbose" && echo "$as_me:12408: result: ... -$cf_opt" >&5
12409 echo "${ECHO_T}... -$cf_opt" >&6
12410 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
12413 CXXFLAGS="$cf_save_CXXFLAGS"
12415 elif test "$GXX" = yes
12417 { echo "$as_me:12417: checking for $CXX warning options..." >&5
12418 echo "$as_me: checking for $CXX warning options..." >&6;}
12419 cf_save_CXXFLAGS="$CXXFLAGS"
12420 EXTRA_CXXFLAGS="-W -Wall"
12421 cf_gxx_extra_warnings=""
12422 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
12423 case "$GCC_VERSION" in
12427 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
12433 Woverloaded-virtual \
12439 Wmissing-prototypes \
12442 Wstrict-prototypes \
12443 Wundef $cf_gxx_extra_warnings Wno-unused
12445 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
12446 if { (eval echo "$as_me:12446: \"$ac_compile\"") >&5
12447 (eval $ac_compile) 2>&5
12449 echo "$as_me:12449: \$? = $ac_status" >&5
12450 (exit $ac_status); }; then
12451 test -n "$verbose" && echo "$as_me:12451: result: ... -$cf_opt" >&5
12452 echo "${ECHO_T}... -$cf_opt" >&6
12453 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
12455 test -n "$verbose" && echo "$as_me:12455: result: ... no -$cf_opt" >&5
12456 echo "${ECHO_T}... no -$cf_opt" >&6
12459 CXXFLAGS="$cf_save_CXXFLAGS"
12464 ac_cpp='$CPP $CPPFLAGS'
12465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12468 ac_main_return=return
12473 if test "$GCC" = yes
12475 cat > conftest.i <<EOF
12477 #define GCC_PRINTF 0
12480 #define GCC_SCANF 0
12482 #ifndef GCC_NORETURN
12483 #define GCC_NORETURN /* nothing */
12486 #define GCC_UNUSED /* nothing */
12489 if test "$GCC" = yes
12491 { echo "$as_me:12491: checking for $CC __attribute__ directives..." >&5
12492 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
12493 cat > conftest.$ac_ext <<EOF
12494 #line 12494 "${as_me:-configure}"
12495 #include "confdefs.h"
12496 #include "conftest.h"
12497 #include "conftest.i"
12499 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
12501 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
12504 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
12506 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
12508 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
12509 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
12510 extern void foo(void) GCC_NORETURN;
12511 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
12513 cf_printf_attribute=no
12514 cf_scanf_attribute=no
12515 for cf_attribute in scanf printf unused noreturn
12518 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
12520 cf_directive="__attribute__(($cf_attribute))"
12521 echo "checking for $CC $cf_directive" 1>&5
12523 case $cf_attribute in #(vi
12525 cf_printf_attribute=yes
12526 cat >conftest.h <<EOF
12527 #define GCC_$cf_ATTRIBUTE 1
12531 cf_scanf_attribute=yes
12532 cat >conftest.h <<EOF
12533 #define GCC_$cf_ATTRIBUTE 1
12537 cat >conftest.h <<EOF
12538 #define GCC_$cf_ATTRIBUTE $cf_directive
12543 if { (eval echo "$as_me:12543: \"$ac_compile\"") >&5
12544 (eval $ac_compile) 2>&5
12546 echo "$as_me:12546: \$? = $ac_status" >&5
12547 (exit $ac_status); }; then
12548 test -n "$verbose" && echo "$as_me:12548: result: ... $cf_attribute" >&5
12549 echo "${ECHO_T}... $cf_attribute" >&6
12550 cat conftest.h >>confdefs.h
12551 case $cf_attribute in #(vi
12553 if test "$cf_printf_attribute" = no ; then
12554 cat >>confdefs.h <<EOF
12555 #define GCC_PRINTFLIKE(fmt,var) /* nothing */
12558 cat >>confdefs.h <<EOF
12559 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
12564 if test "$cf_scanf_attribute" = no ; then
12565 cat >>confdefs.h <<EOF
12566 #define GCC_SCANFLIKE(fmt,var) /* nothing */
12569 cat >>confdefs.h <<EOF
12570 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
12578 fgrep define conftest.i >>confdefs.h
12583 echo "$as_me:12583: checking if you want to work around bogus compiler/loader warnings" >&5
12584 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
12586 # Check whether --enable-string-hacks or --disable-string-hacks was given.
12587 if test "${enable_string_hacks+set}" = set; then
12588 enableval="$enable_string_hacks"
12589 with_string_hacks=$enableval
12591 with_string_hacks=no
12593 echo "$as_me:12593: result: $with_string_hacks" >&5
12594 echo "${ECHO_T}$with_string_hacks" >&6
12596 if test "x$with_string_hacks" = "xyes"; then
12597 cat >>confdefs.h <<\EOF
12598 #define USE_STRING_HACKS 1
12601 { echo "$as_me:12601: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
12602 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
12604 for ac_func in strlcat strlcpy snprintf
12606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12607 echo "$as_me:12607: checking for $ac_func" >&5
12608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12609 if eval "test \"\${$as_ac_var+set}\" = set"; then
12610 echo $ECHO_N "(cached) $ECHO_C" >&6
12612 cat >conftest.$ac_ext <<_ACEOF
12613 #line 12613 "configure"
12614 #include "confdefs.h"
12615 /* System header to define __stub macros and hopefully few prototypes,
12616 which can conflict with char $ac_func (); below. */
12617 #include <assert.h>
12618 /* Override any gcc2 internal prototype to avoid an error. */
12622 /* We use char because int might match the return type of a gcc2
12623 builtin and then its argument prototype would still apply. */
12630 /* The GNU C library defines this for functions which it implements
12631 to always fail with ENOSYS. Some functions are actually named
12632 something starting with __ and the normal name is an alias. */
12633 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12643 rm -f conftest.$ac_objext conftest$ac_exeext
12644 if { (eval echo "$as_me:12644: \"$ac_link\"") >&5
12645 (eval $ac_link) 2>&5
12647 echo "$as_me:12647: \$? = $ac_status" >&5
12648 (exit $ac_status); } &&
12649 { ac_try='test -s conftest$ac_exeext'
12650 { (eval echo "$as_me:12650: \"$ac_try\"") >&5
12651 (eval $ac_try) 2>&5
12653 echo "$as_me:12653: \$? = $ac_status" >&5
12654 (exit $ac_status); }; }; then
12655 eval "$as_ac_var=yes"
12657 echo "$as_me: failed program was:" >&5
12658 cat conftest.$ac_ext >&5
12659 eval "$as_ac_var=no"
12661 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12663 echo "$as_me:12663: result: `eval echo '${'$as_ac_var'}'`" >&5
12664 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12665 if test `eval echo '${'$as_ac_var'}'` = yes; then
12666 cat >>confdefs.h <<EOF
12667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12675 ### use option --enable-assertions to turn on generation of assertion code
12676 echo "$as_me:12676: checking if you want to enable runtime assertions" >&5
12677 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
12679 # Check whether --enable-assertions or --disable-assertions was given.
12680 if test "${enable_assertions+set}" = set; then
12681 enableval="$enable_assertions"
12682 with_assertions=$enableval
12686 echo "$as_me:12686: result: $with_assertions" >&5
12687 echo "${ECHO_T}$with_assertions" >&6
12690 if test "$with_assertions" = no
12692 cat >>confdefs.h <<\EOF
12696 CPPFLAGS="$CPPFLAGS -DNDEBUG"
12699 ADAFLAGS="$ADAFLAGS -gnata"
12704 ### use option --disable-leaks to suppress "permanent" leaks, for testing
12706 echo "$as_me:12706: checking if you want to use dmalloc for testing" >&5
12707 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
12709 # Check whether --with-dmalloc or --without-dmalloc was given.
12710 if test "${with_dmalloc+set}" = set; then
12711 withval="$with_dmalloc"
12712 cat >>confdefs.h <<\EOF
12713 #define USE_DMALLOC 1
12716 : ${with_cflags:=-g}
12717 : ${with_no_leaks:=yes}
12722 echo "$as_me:12722: result: ${with_dmalloc:-no}" >&5
12723 echo "${ECHO_T}${with_dmalloc:-no}" >&6
12725 case .$with_cflags in #(vi
12727 case .$CFLAGS in #(vi
12735 cf_new_extra_cppflags=
12737 for cf_add_cflags in -g
12739 case $cf_fix_cppflags in
12741 case $cf_add_cflags in #(vi
12742 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
12743 case $cf_add_cflags in
12745 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12747 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12748 && test -z "${cf_tst_cflags}" \
12749 && cf_fix_cppflags=yes
12751 if test $cf_fix_cppflags = yes ; then
12752 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12754 elif test "${cf_tst_cflags}" = "\"'" ; then
12755 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12760 case "$CPPFLAGS" in
12761 *$cf_add_cflags) #(vi
12764 case $cf_add_cflags in #(vi
12766 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12768 CPPFLAGS=`echo "$CPPFLAGS" | \
12769 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12770 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12774 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12779 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12784 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12786 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12788 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12789 && test -z "${cf_tst_cflags}" \
12790 && cf_fix_cppflags=no
12795 if test -n "$cf_new_cflags" ; then
12797 CFLAGS="$CFLAGS $cf_new_cflags"
12800 if test -n "$cf_new_cppflags" ; then
12802 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12805 if test -n "$cf_new_extra_cppflags" ; then
12807 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12815 if test "$with_dmalloc" = yes ; then
12816 echo "$as_me:12816: checking for dmalloc.h" >&5
12817 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
12818 if test "${ac_cv_header_dmalloc_h+set}" = set; then
12819 echo $ECHO_N "(cached) $ECHO_C" >&6
12821 cat >conftest.$ac_ext <<_ACEOF
12822 #line 12822 "configure"
12823 #include "confdefs.h"
12824 #include <dmalloc.h>
12826 if { (eval echo "$as_me:12826: \"$ac_cpp conftest.$ac_ext\"") >&5
12827 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12829 egrep -v '^ *\+' conftest.er1 >conftest.err
12831 cat conftest.err >&5
12832 echo "$as_me:12832: \$? = $ac_status" >&5
12833 (exit $ac_status); } >/dev/null; then
12834 if test -s conftest.err; then
12835 ac_cpp_err=$ac_c_preproc_warn_flag
12842 if test -z "$ac_cpp_err"; then
12843 ac_cv_header_dmalloc_h=yes
12845 echo "$as_me: failed program was:" >&5
12846 cat conftest.$ac_ext >&5
12847 ac_cv_header_dmalloc_h=no
12849 rm -f conftest.err conftest.$ac_ext
12851 echo "$as_me:12851: result: $ac_cv_header_dmalloc_h" >&5
12852 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
12853 if test $ac_cv_header_dmalloc_h = yes; then
12855 echo "$as_me:12855: checking for dmalloc_debug in -ldmalloc" >&5
12856 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
12857 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
12858 echo $ECHO_N "(cached) $ECHO_C" >&6
12860 ac_check_lib_save_LIBS=$LIBS
12861 LIBS="-ldmalloc $LIBS"
12862 cat >conftest.$ac_ext <<_ACEOF
12863 #line 12863 "configure"
12864 #include "confdefs.h"
12866 /* Override any gcc2 internal prototype to avoid an error. */
12870 /* We use char because int might match the return type of a gcc2
12871 builtin and then its argument prototype would still apply. */
12872 char dmalloc_debug ();
12881 rm -f conftest.$ac_objext conftest$ac_exeext
12882 if { (eval echo "$as_me:12882: \"$ac_link\"") >&5
12883 (eval $ac_link) 2>&5
12885 echo "$as_me:12885: \$? = $ac_status" >&5
12886 (exit $ac_status); } &&
12887 { ac_try='test -s conftest$ac_exeext'
12888 { (eval echo "$as_me:12888: \"$ac_try\"") >&5
12889 (eval $ac_try) 2>&5
12891 echo "$as_me:12891: \$? = $ac_status" >&5
12892 (exit $ac_status); }; }; then
12893 ac_cv_lib_dmalloc_dmalloc_debug=yes
12895 echo "$as_me: failed program was:" >&5
12896 cat conftest.$ac_ext >&5
12897 ac_cv_lib_dmalloc_dmalloc_debug=no
12899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12900 LIBS=$ac_check_lib_save_LIBS
12902 echo "$as_me:12902: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
12903 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
12904 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
12905 cat >>confdefs.h <<EOF
12906 #define HAVE_LIBDMALLOC 1
12909 LIBS="-ldmalloc $LIBS"
12917 echo "$as_me:12917: checking if you want to use dbmalloc for testing" >&5
12918 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
12920 # Check whether --with-dbmalloc or --without-dbmalloc was given.
12921 if test "${with_dbmalloc+set}" = set; then
12922 withval="$with_dbmalloc"
12923 cat >>confdefs.h <<\EOF
12924 #define USE_DBMALLOC 1
12927 : ${with_cflags:=-g}
12928 : ${with_no_leaks:=yes}
12933 echo "$as_me:12933: result: ${with_dbmalloc:-no}" >&5
12934 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
12936 case .$with_cflags in #(vi
12938 case .$CFLAGS in #(vi
12946 cf_new_extra_cppflags=
12948 for cf_add_cflags in -g
12950 case $cf_fix_cppflags in
12952 case $cf_add_cflags in #(vi
12953 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
12954 case $cf_add_cflags in
12956 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12958 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12959 && test -z "${cf_tst_cflags}" \
12960 && cf_fix_cppflags=yes
12962 if test $cf_fix_cppflags = yes ; then
12963 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12965 elif test "${cf_tst_cflags}" = "\"'" ; then
12966 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12971 case "$CPPFLAGS" in
12972 *$cf_add_cflags) #(vi
12975 case $cf_add_cflags in #(vi
12977 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12979 CPPFLAGS=`echo "$CPPFLAGS" | \
12980 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12981 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12985 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12990 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12995 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12997 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12999 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13000 && test -z "${cf_tst_cflags}" \
13001 && cf_fix_cppflags=no
13006 if test -n "$cf_new_cflags" ; then
13008 CFLAGS="$CFLAGS $cf_new_cflags"
13011 if test -n "$cf_new_cppflags" ; then
13013 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
13016 if test -n "$cf_new_extra_cppflags" ; then
13018 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
13026 if test "$with_dbmalloc" = yes ; then
13027 echo "$as_me:13027: checking for dbmalloc.h" >&5
13028 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
13029 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
13030 echo $ECHO_N "(cached) $ECHO_C" >&6
13032 cat >conftest.$ac_ext <<_ACEOF
13033 #line 13033 "configure"
13034 #include "confdefs.h"
13035 #include <dbmalloc.h>
13037 if { (eval echo "$as_me:13037: \"$ac_cpp conftest.$ac_ext\"") >&5
13038 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13040 egrep -v '^ *\+' conftest.er1 >conftest.err
13042 cat conftest.err >&5
13043 echo "$as_me:13043: \$? = $ac_status" >&5
13044 (exit $ac_status); } >/dev/null; then
13045 if test -s conftest.err; then
13046 ac_cpp_err=$ac_c_preproc_warn_flag
13053 if test -z "$ac_cpp_err"; then
13054 ac_cv_header_dbmalloc_h=yes
13056 echo "$as_me: failed program was:" >&5
13057 cat conftest.$ac_ext >&5
13058 ac_cv_header_dbmalloc_h=no
13060 rm -f conftest.err conftest.$ac_ext
13062 echo "$as_me:13062: result: $ac_cv_header_dbmalloc_h" >&5
13063 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
13064 if test $ac_cv_header_dbmalloc_h = yes; then
13066 echo "$as_me:13066: checking for debug_malloc in -ldbmalloc" >&5
13067 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
13068 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
13069 echo $ECHO_N "(cached) $ECHO_C" >&6
13071 ac_check_lib_save_LIBS=$LIBS
13072 LIBS="-ldbmalloc $LIBS"
13073 cat >conftest.$ac_ext <<_ACEOF
13074 #line 13074 "configure"
13075 #include "confdefs.h"
13077 /* Override any gcc2 internal prototype to avoid an error. */
13081 /* We use char because int might match the return type of a gcc2
13082 builtin and then its argument prototype would still apply. */
13083 char debug_malloc ();
13092 rm -f conftest.$ac_objext conftest$ac_exeext
13093 if { (eval echo "$as_me:13093: \"$ac_link\"") >&5
13094 (eval $ac_link) 2>&5
13096 echo "$as_me:13096: \$? = $ac_status" >&5
13097 (exit $ac_status); } &&
13098 { ac_try='test -s conftest$ac_exeext'
13099 { (eval echo "$as_me:13099: \"$ac_try\"") >&5
13100 (eval $ac_try) 2>&5
13102 echo "$as_me:13102: \$? = $ac_status" >&5
13103 (exit $ac_status); }; }; then
13104 ac_cv_lib_dbmalloc_debug_malloc=yes
13106 echo "$as_me: failed program was:" >&5
13107 cat conftest.$ac_ext >&5
13108 ac_cv_lib_dbmalloc_debug_malloc=no
13110 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13111 LIBS=$ac_check_lib_save_LIBS
13113 echo "$as_me:13113: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
13114 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
13115 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
13116 cat >>confdefs.h <<EOF
13117 #define HAVE_LIBDBMALLOC 1
13120 LIBS="-ldbmalloc $LIBS"
13128 echo "$as_me:13128: checking if you want to use valgrind for testing" >&5
13129 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
13131 # Check whether --with-valgrind or --without-valgrind was given.
13132 if test "${with_valgrind+set}" = set; then
13133 withval="$with_valgrind"
13134 cat >>confdefs.h <<\EOF
13135 #define USE_VALGRIND 1
13138 : ${with_cflags:=-g}
13139 : ${with_no_leaks:=yes}
13144 echo "$as_me:13144: result: ${with_valgrind:-no}" >&5
13145 echo "${ECHO_T}${with_valgrind:-no}" >&6
13147 case .$with_cflags in #(vi
13149 case .$CFLAGS in #(vi
13157 cf_new_extra_cppflags=
13159 for cf_add_cflags in -g
13161 case $cf_fix_cppflags in
13163 case $cf_add_cflags in #(vi
13164 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
13165 case $cf_add_cflags in
13167 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13169 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13170 && test -z "${cf_tst_cflags}" \
13171 && cf_fix_cppflags=yes
13173 if test $cf_fix_cppflags = yes ; then
13174 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13176 elif test "${cf_tst_cflags}" = "\"'" ; then
13177 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13182 case "$CPPFLAGS" in
13183 *$cf_add_cflags) #(vi
13186 case $cf_add_cflags in #(vi
13188 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13190 CPPFLAGS=`echo "$CPPFLAGS" | \
13191 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13192 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13196 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
13201 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
13206 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13208 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13210 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13211 && test -z "${cf_tst_cflags}" \
13212 && cf_fix_cppflags=no
13217 if test -n "$cf_new_cflags" ; then
13219 CFLAGS="$CFLAGS $cf_new_cflags"
13222 if test -n "$cf_new_cppflags" ; then
13224 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
13227 if test -n "$cf_new_extra_cppflags" ; then
13229 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
13237 echo "$as_me:13237: checking if you want to perform memory-leak testing" >&5
13238 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
13240 # Check whether --enable-leaks or --disable-leaks was given.
13241 if test "${enable_leaks+set}" = set; then
13242 enableval="$enable_leaks"
13243 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
13245 : ${with_no_leaks:=no}
13247 echo "$as_me:13247: result: $with_no_leaks" >&5
13248 echo "${ECHO_T}$with_no_leaks" >&6
13250 if test "$with_no_leaks" = yes ; then
13251 cat >>confdefs.h <<\EOF
13255 cat >>confdefs.h <<\EOF
13256 #define YY_NO_LEAKS 1
13261 cat >>confdefs.h <<\EOF
13262 #define HAVE_NC_ALLOC_H 1
13265 ### use option --enable-expanded to generate certain macros as functions
13267 # Check whether --enable-expanded or --disable-expanded was given.
13268 if test "${enable_expanded+set}" = set; then
13269 enableval="$enable_expanded"
13270 test "$enableval" = yes && cat >>confdefs.h <<\EOF
13271 #define NCURSES_EXPANDED 1
13276 ### use option --disable-macros to suppress macros in favor of functions
13278 # Check whether --enable-macros or --disable-macros was given.
13279 if test "${enable_macros+set}" = set; then
13280 enableval="$enable_macros"
13281 test "$enableval" = no && cat >>confdefs.h <<\EOF
13282 #define NCURSES_NOMACROS 1
13287 # Normally we only add trace() to the debug-library. Allow this to be
13288 # extended to all models of the ncurses library:
13290 case "$CFLAGS $CPPFLAGS" in
13296 echo "$as_me:13296: checking whether to add trace feature to all models" >&5
13297 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
13299 # Check whether --with-trace or --without-trace was given.
13300 if test "${with_trace+set}" = set; then
13301 withval="$with_trace"
13302 cf_with_trace=$withval
13304 cf_with_trace=$cf_all_traces
13306 echo "$as_me:13306: result: $cf_with_trace" >&5
13307 echo "${ECHO_T}$cf_with_trace" >&6
13309 if test "$cf_with_trace" = yes ; then
13316 cf_new_extra_cppflags=
13318 for cf_add_cflags in -DTRACE
13320 case $cf_fix_cppflags in
13322 case $cf_add_cflags in #(vi
13323 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
13324 case $cf_add_cflags in
13326 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13328 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13329 && test -z "${cf_tst_cflags}" \
13330 && cf_fix_cppflags=yes
13332 if test $cf_fix_cppflags = yes ; then
13333 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13335 elif test "${cf_tst_cflags}" = "\"'" ; then
13336 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13341 case "$CPPFLAGS" in
13342 *$cf_add_cflags) #(vi
13345 case $cf_add_cflags in #(vi
13347 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13349 CPPFLAGS=`echo "$CPPFLAGS" | \
13350 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13351 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13355 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
13360 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
13365 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13367 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13369 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13370 && test -z "${cf_tst_cflags}" \
13371 && cf_fix_cppflags=no
13376 if test -n "$cf_new_cflags" ; then
13378 CFLAGS="$CFLAGS $cf_new_cflags"
13381 if test -n "$cf_new_cppflags" ; then
13383 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
13386 if test -n "$cf_new_extra_cppflags" ; then
13388 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
13396 ### Checks for libraries.
13397 case $cf_cv_system_name in #(vi
13401 echo "$as_me:13401: checking for gettimeofday" >&5
13402 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
13403 if test "${ac_cv_func_gettimeofday+set}" = set; then
13404 echo $ECHO_N "(cached) $ECHO_C" >&6
13406 cat >conftest.$ac_ext <<_ACEOF
13407 #line 13407 "configure"
13408 #include "confdefs.h"
13409 /* System header to define __stub macros and hopefully few prototypes,
13410 which can conflict with char gettimeofday (); below. */
13411 #include <assert.h>
13412 /* Override any gcc2 internal prototype to avoid an error. */
13416 /* We use char because int might match the return type of a gcc2
13417 builtin and then its argument prototype would still apply. */
13418 char gettimeofday ();
13424 /* The GNU C library defines this for functions which it implements
13425 to always fail with ENOSYS. Some functions are actually named
13426 something starting with __ and the normal name is an alias. */
13427 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
13437 rm -f conftest.$ac_objext conftest$ac_exeext
13438 if { (eval echo "$as_me:13438: \"$ac_link\"") >&5
13439 (eval $ac_link) 2>&5
13441 echo "$as_me:13441: \$? = $ac_status" >&5
13442 (exit $ac_status); } &&
13443 { ac_try='test -s conftest$ac_exeext'
13444 { (eval echo "$as_me:13444: \"$ac_try\"") >&5
13445 (eval $ac_try) 2>&5
13447 echo "$as_me:13447: \$? = $ac_status" >&5
13448 (exit $ac_status); }; }; then
13449 ac_cv_func_gettimeofday=yes
13451 echo "$as_me: failed program was:" >&5
13452 cat conftest.$ac_ext >&5
13453 ac_cv_func_gettimeofday=no
13455 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13457 echo "$as_me:13457: result: $ac_cv_func_gettimeofday" >&5
13458 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
13459 if test $ac_cv_func_gettimeofday = yes; then
13460 cat >>confdefs.h <<\EOF
13461 #define HAVE_GETTIMEOFDAY 1
13466 echo "$as_me:13466: checking for gettimeofday in -lbsd" >&5
13467 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
13468 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
13469 echo $ECHO_N "(cached) $ECHO_C" >&6
13471 ac_check_lib_save_LIBS=$LIBS
13473 cat >conftest.$ac_ext <<_ACEOF
13474 #line 13474 "configure"
13475 #include "confdefs.h"
13477 /* Override any gcc2 internal prototype to avoid an error. */
13481 /* We use char because int might match the return type of a gcc2
13482 builtin and then its argument prototype would still apply. */
13483 char gettimeofday ();
13492 rm -f conftest.$ac_objext conftest$ac_exeext
13493 if { (eval echo "$as_me:13493: \"$ac_link\"") >&5
13494 (eval $ac_link) 2>&5
13496 echo "$as_me:13496: \$? = $ac_status" >&5
13497 (exit $ac_status); } &&
13498 { ac_try='test -s conftest$ac_exeext'
13499 { (eval echo "$as_me:13499: \"$ac_try\"") >&5
13500 (eval $ac_try) 2>&5
13502 echo "$as_me:13502: \$? = $ac_status" >&5
13503 (exit $ac_status); }; }; then
13504 ac_cv_lib_bsd_gettimeofday=yes
13506 echo "$as_me: failed program was:" >&5
13507 cat conftest.$ac_ext >&5
13508 ac_cv_lib_bsd_gettimeofday=no
13510 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13511 LIBS=$ac_check_lib_save_LIBS
13513 echo "$as_me:13513: result: $ac_cv_lib_bsd_gettimeofday" >&5
13514 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
13515 if test $ac_cv_lib_bsd_gettimeofday = yes; then
13516 cat >>confdefs.h <<\EOF
13517 #define HAVE_GETTIMEOFDAY 1
13527 echo "$as_me:13527: checking if -lm needed for math functions" >&5
13528 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
13529 if test "${cf_cv_need_libm+set}" = set; then
13530 echo $ECHO_N "(cached) $ECHO_C" >&6
13533 cat >conftest.$ac_ext <<_ACEOF
13534 #line 13534 "configure"
13535 #include "confdefs.h"
13543 double x = rand(); printf("result = %g\n", sin(x))
13548 rm -f conftest.$ac_objext conftest$ac_exeext
13549 if { (eval echo "$as_me:13549: \"$ac_link\"") >&5
13550 (eval $ac_link) 2>&5
13552 echo "$as_me:13552: \$? = $ac_status" >&5
13553 (exit $ac_status); } &&
13554 { ac_try='test -s conftest$ac_exeext'
13555 { (eval echo "$as_me:13555: \"$ac_try\"") >&5
13556 (eval $ac_try) 2>&5
13558 echo "$as_me:13558: \$? = $ac_status" >&5
13559 (exit $ac_status); }; }; then
13562 echo "$as_me: failed program was:" >&5
13563 cat conftest.$ac_ext >&5
13564 cf_cv_need_libm=yes
13566 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13568 echo "$as_me:13568: result: $cf_cv_need_libm" >&5
13569 echo "${ECHO_T}$cf_cv_need_libm" >&6
13570 if test "$cf_cv_need_libm" = yes
13575 ### Checks for header files.
13576 echo "$as_me:13576: checking for ANSI C header files" >&5
13577 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13578 if test "${ac_cv_header_stdc+set}" = set; then
13579 echo $ECHO_N "(cached) $ECHO_C" >&6
13581 cat >conftest.$ac_ext <<_ACEOF
13582 #line 13582 "configure"
13583 #include "confdefs.h"
13584 #include <stdlib.h>
13585 #include <stdarg.h>
13586 #include <string.h>
13590 if { (eval echo "$as_me:13590: \"$ac_cpp conftest.$ac_ext\"") >&5
13591 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13593 egrep -v '^ *\+' conftest.er1 >conftest.err
13595 cat conftest.err >&5
13596 echo "$as_me:13596: \$? = $ac_status" >&5
13597 (exit $ac_status); } >/dev/null; then
13598 if test -s conftest.err; then
13599 ac_cpp_err=$ac_c_preproc_warn_flag
13606 if test -z "$ac_cpp_err"; then
13607 ac_cv_header_stdc=yes
13609 echo "$as_me: failed program was:" >&5
13610 cat conftest.$ac_ext >&5
13611 ac_cv_header_stdc=no
13613 rm -f conftest.err conftest.$ac_ext
13615 if test $ac_cv_header_stdc = yes; then
13616 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13617 cat >conftest.$ac_ext <<_ACEOF
13618 #line 13618 "configure"
13619 #include "confdefs.h"
13620 #include <string.h>
13623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13624 egrep "memchr" >/dev/null 2>&1; then
13627 ac_cv_header_stdc=no
13633 if test $ac_cv_header_stdc = yes; then
13634 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13635 cat >conftest.$ac_ext <<_ACEOF
13636 #line 13636 "configure"
13637 #include "confdefs.h"
13638 #include <stdlib.h>
13641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13642 egrep "free" >/dev/null 2>&1; then
13645 ac_cv_header_stdc=no
13651 if test $ac_cv_header_stdc = yes; then
13652 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13653 if test "$cross_compiling" = yes; then
13656 cat >conftest.$ac_ext <<_ACEOF
13657 #line 13657 "configure"
13658 #include "confdefs.h"
13660 #if ((' ' & 0x0FF) == 0x020)
13661 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13662 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13664 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13665 || ('j' <= (c) && (c) <= 'r') \
13666 || ('s' <= (c) && (c) <= 'z'))
13667 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13670 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13675 for (i = 0; i < 256; i++)
13676 if (XOR (islower (i), ISLOWER (i))
13677 || toupper (i) != TOUPPER (i))
13678 $ac_main_return(2);
13679 $ac_main_return (0);
13682 rm -f conftest$ac_exeext
13683 if { (eval echo "$as_me:13683: \"$ac_link\"") >&5
13684 (eval $ac_link) 2>&5
13686 echo "$as_me:13686: \$? = $ac_status" >&5
13687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13688 { (eval echo "$as_me:13688: \"$ac_try\"") >&5
13689 (eval $ac_try) 2>&5
13691 echo "$as_me:13691: \$? = $ac_status" >&5
13692 (exit $ac_status); }; }; then
13695 echo "$as_me: program exited with status $ac_status" >&5
13696 echo "$as_me: failed program was:" >&5
13697 cat conftest.$ac_ext >&5
13698 ac_cv_header_stdc=no
13700 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13704 echo "$as_me:13704: result: $ac_cv_header_stdc" >&5
13705 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13706 if test $ac_cv_header_stdc = yes; then
13708 cat >>confdefs.h <<\EOF
13709 #define STDC_HEADERS 1
13714 ac_header_dirent=no
13715 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13716 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13717 echo "$as_me:13717: checking for $ac_hdr that defines DIR" >&5
13718 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13720 echo $ECHO_N "(cached) $ECHO_C" >&6
13722 cat >conftest.$ac_ext <<_ACEOF
13723 #line 13723 "configure"
13724 #include "confdefs.h"
13725 #include <sys/types.h>
13737 rm -f conftest.$ac_objext
13738 if { (eval echo "$as_me:13738: \"$ac_compile\"") >&5
13739 (eval $ac_compile) 2>&5
13741 echo "$as_me:13741: \$? = $ac_status" >&5
13742 (exit $ac_status); } &&
13743 { ac_try='test -s conftest.$ac_objext'
13744 { (eval echo "$as_me:13744: \"$ac_try\"") >&5
13745 (eval $ac_try) 2>&5
13747 echo "$as_me:13747: \$? = $ac_status" >&5
13748 (exit $ac_status); }; }; then
13749 eval "$as_ac_Header=yes"
13751 echo "$as_me: failed program was:" >&5
13752 cat conftest.$ac_ext >&5
13753 eval "$as_ac_Header=no"
13755 rm -f conftest.$ac_objext conftest.$ac_ext
13757 echo "$as_me:13757: result: `eval echo '${'$as_ac_Header'}'`" >&5
13758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13760 cat >>confdefs.h <<EOF
13761 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13764 ac_header_dirent=$ac_hdr; break
13768 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13769 if test $ac_header_dirent = dirent.h; then
13770 echo "$as_me:13770: checking for opendir in -ldir" >&5
13771 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
13772 if test "${ac_cv_lib_dir_opendir+set}" = set; then
13773 echo $ECHO_N "(cached) $ECHO_C" >&6
13775 ac_check_lib_save_LIBS=$LIBS
13777 cat >conftest.$ac_ext <<_ACEOF
13778 #line 13778 "configure"
13779 #include "confdefs.h"
13781 /* Override any gcc2 internal prototype to avoid an error. */
13785 /* We use char because int might match the return type of a gcc2
13786 builtin and then its argument prototype would still apply. */
13796 rm -f conftest.$ac_objext conftest$ac_exeext
13797 if { (eval echo "$as_me:13797: \"$ac_link\"") >&5
13798 (eval $ac_link) 2>&5
13800 echo "$as_me:13800: \$? = $ac_status" >&5
13801 (exit $ac_status); } &&
13802 { ac_try='test -s conftest$ac_exeext'
13803 { (eval echo "$as_me:13803: \"$ac_try\"") >&5
13804 (eval $ac_try) 2>&5
13806 echo "$as_me:13806: \$? = $ac_status" >&5
13807 (exit $ac_status); }; }; then
13808 ac_cv_lib_dir_opendir=yes
13810 echo "$as_me: failed program was:" >&5
13811 cat conftest.$ac_ext >&5
13812 ac_cv_lib_dir_opendir=no
13814 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13815 LIBS=$ac_check_lib_save_LIBS
13817 echo "$as_me:13817: result: $ac_cv_lib_dir_opendir" >&5
13818 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
13819 if test $ac_cv_lib_dir_opendir = yes; then
13824 echo "$as_me:13824: checking for opendir in -lx" >&5
13825 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
13826 if test "${ac_cv_lib_x_opendir+set}" = set; then
13827 echo $ECHO_N "(cached) $ECHO_C" >&6
13829 ac_check_lib_save_LIBS=$LIBS
13831 cat >conftest.$ac_ext <<_ACEOF
13832 #line 13832 "configure"
13833 #include "confdefs.h"
13835 /* Override any gcc2 internal prototype to avoid an error. */
13839 /* We use char because int might match the return type of a gcc2
13840 builtin and then its argument prototype would still apply. */
13850 rm -f conftest.$ac_objext conftest$ac_exeext
13851 if { (eval echo "$as_me:13851: \"$ac_link\"") >&5
13852 (eval $ac_link) 2>&5
13854 echo "$as_me:13854: \$? = $ac_status" >&5
13855 (exit $ac_status); } &&
13856 { ac_try='test -s conftest$ac_exeext'
13857 { (eval echo "$as_me:13857: \"$ac_try\"") >&5
13858 (eval $ac_try) 2>&5
13860 echo "$as_me:13860: \$? = $ac_status" >&5
13861 (exit $ac_status); }; }; then
13862 ac_cv_lib_x_opendir=yes
13864 echo "$as_me: failed program was:" >&5
13865 cat conftest.$ac_ext >&5
13866 ac_cv_lib_x_opendir=no
13868 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13869 LIBS=$ac_check_lib_save_LIBS
13871 echo "$as_me:13871: result: $ac_cv_lib_x_opendir" >&5
13872 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
13873 if test $ac_cv_lib_x_opendir = yes; then
13879 echo "$as_me:13879: checking whether time.h and sys/time.h may both be included" >&5
13880 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
13881 if test "${ac_cv_header_time+set}" = set; then
13882 echo $ECHO_N "(cached) $ECHO_C" >&6
13884 cat >conftest.$ac_ext <<_ACEOF
13885 #line 13885 "configure"
13886 #include "confdefs.h"
13887 #include <sys/types.h>
13888 #include <sys/time.h>
13894 if ((struct tm *) 0)
13900 rm -f conftest.$ac_objext
13901 if { (eval echo "$as_me:13901: \"$ac_compile\"") >&5
13902 (eval $ac_compile) 2>&5
13904 echo "$as_me:13904: \$? = $ac_status" >&5
13905 (exit $ac_status); } &&
13906 { ac_try='test -s conftest.$ac_objext'
13907 { (eval echo "$as_me:13907: \"$ac_try\"") >&5
13908 (eval $ac_try) 2>&5
13910 echo "$as_me:13910: \$? = $ac_status" >&5
13911 (exit $ac_status); }; }; then
13912 ac_cv_header_time=yes
13914 echo "$as_me: failed program was:" >&5
13915 cat conftest.$ac_ext >&5
13916 ac_cv_header_time=no
13918 rm -f conftest.$ac_objext conftest.$ac_ext
13920 echo "$as_me:13920: result: $ac_cv_header_time" >&5
13921 echo "${ECHO_T}$ac_cv_header_time" >&6
13922 if test $ac_cv_header_time = yes; then
13924 cat >>confdefs.h <<\EOF
13925 #define TIME_WITH_SYS_TIME 1
13932 cf_regex_libs="regex re"
13933 case $host_os in #(vi
13935 cf_regex_libs="gnurx $cf_regex_libs"
13939 echo "$as_me:13939: checking for regcomp" >&5
13940 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
13941 if test "${ac_cv_func_regcomp+set}" = set; then
13942 echo $ECHO_N "(cached) $ECHO_C" >&6
13944 cat >conftest.$ac_ext <<_ACEOF
13945 #line 13945 "configure"
13946 #include "confdefs.h"
13947 /* System header to define __stub macros and hopefully few prototypes,
13948 which can conflict with char regcomp (); below. */
13949 #include <assert.h>
13950 /* Override any gcc2 internal prototype to avoid an error. */
13954 /* We use char because int might match the return type of a gcc2
13955 builtin and then its argument prototype would still apply. */
13962 /* The GNU C library defines this for functions which it implements
13963 to always fail with ENOSYS. Some functions are actually named
13964 something starting with __ and the normal name is an alias. */
13965 #if defined (__stub_regcomp) || defined (__stub___regcomp)
13975 rm -f conftest.$ac_objext conftest$ac_exeext
13976 if { (eval echo "$as_me:13976: \"$ac_link\"") >&5
13977 (eval $ac_link) 2>&5
13979 echo "$as_me:13979: \$? = $ac_status" >&5
13980 (exit $ac_status); } &&
13981 { ac_try='test -s conftest$ac_exeext'
13982 { (eval echo "$as_me:13982: \"$ac_try\"") >&5
13983 (eval $ac_try) 2>&5
13985 echo "$as_me:13985: \$? = $ac_status" >&5
13986 (exit $ac_status); }; }; then
13987 ac_cv_func_regcomp=yes
13989 echo "$as_me: failed program was:" >&5
13990 cat conftest.$ac_ext >&5
13991 ac_cv_func_regcomp=no
13993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13995 echo "$as_me:13995: result: $ac_cv_func_regcomp" >&5
13996 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
13997 if test $ac_cv_func_regcomp = yes; then
13998 cf_regex_func=regcomp
14001 for cf_regex_lib in $cf_regex_libs
14003 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
14004 echo "$as_me:14004: checking for regcomp in -l$cf_regex_lib" >&5
14005 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
14006 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
14007 echo $ECHO_N "(cached) $ECHO_C" >&6
14009 ac_check_lib_save_LIBS=$LIBS
14010 LIBS="-l$cf_regex_lib $LIBS"
14011 cat >conftest.$ac_ext <<_ACEOF
14012 #line 14012 "configure"
14013 #include "confdefs.h"
14015 /* Override any gcc2 internal prototype to avoid an error. */
14019 /* We use char because int might match the return type of a gcc2
14020 builtin and then its argument prototype would still apply. */
14030 rm -f conftest.$ac_objext conftest$ac_exeext
14031 if { (eval echo "$as_me:14031: \"$ac_link\"") >&5
14032 (eval $ac_link) 2>&5
14034 echo "$as_me:14034: \$? = $ac_status" >&5
14035 (exit $ac_status); } &&
14036 { ac_try='test -s conftest$ac_exeext'
14037 { (eval echo "$as_me:14037: \"$ac_try\"") >&5
14038 (eval $ac_try) 2>&5
14040 echo "$as_me:14040: \$? = $ac_status" >&5
14041 (exit $ac_status); }; }; then
14042 eval "$as_ac_Lib=yes"
14044 echo "$as_me: failed program was:" >&5
14045 cat conftest.$ac_ext >&5
14046 eval "$as_ac_Lib=no"
14048 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14049 LIBS=$ac_check_lib_save_LIBS
14051 echo "$as_me:14051: result: `eval echo '${'$as_ac_Lib'}'`" >&5
14052 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
14053 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
14055 LIBS="-l$cf_regex_lib $LIBS"
14056 cf_regex_func=regcomp
14064 if test "$cf_regex_func" = no ; then
14065 echo "$as_me:14065: checking for compile" >&5
14066 echo $ECHO_N "checking for compile... $ECHO_C" >&6
14067 if test "${ac_cv_func_compile+set}" = set; then
14068 echo $ECHO_N "(cached) $ECHO_C" >&6
14070 cat >conftest.$ac_ext <<_ACEOF
14071 #line 14071 "configure"
14072 #include "confdefs.h"
14073 /* System header to define __stub macros and hopefully few prototypes,
14074 which can conflict with char compile (); below. */
14075 #include <assert.h>
14076 /* Override any gcc2 internal prototype to avoid an error. */
14080 /* We use char because int might match the return type of a gcc2
14081 builtin and then its argument prototype would still apply. */
14088 /* The GNU C library defines this for functions which it implements
14089 to always fail with ENOSYS. Some functions are actually named
14090 something starting with __ and the normal name is an alias. */
14091 #if defined (__stub_compile) || defined (__stub___compile)
14101 rm -f conftest.$ac_objext conftest$ac_exeext
14102 if { (eval echo "$as_me:14102: \"$ac_link\"") >&5
14103 (eval $ac_link) 2>&5
14105 echo "$as_me:14105: \$? = $ac_status" >&5
14106 (exit $ac_status); } &&
14107 { ac_try='test -s conftest$ac_exeext'
14108 { (eval echo "$as_me:14108: \"$ac_try\"") >&5
14109 (eval $ac_try) 2>&5
14111 echo "$as_me:14111: \$? = $ac_status" >&5
14112 (exit $ac_status); }; }; then
14113 ac_cv_func_compile=yes
14115 echo "$as_me: failed program was:" >&5
14116 cat conftest.$ac_ext >&5
14117 ac_cv_func_compile=no
14119 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14121 echo "$as_me:14121: result: $ac_cv_func_compile" >&5
14122 echo "${ECHO_T}$ac_cv_func_compile" >&6
14123 if test $ac_cv_func_compile = yes; then
14124 cf_regex_func=compile
14127 echo "$as_me:14127: checking for compile in -lgen" >&5
14128 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
14129 if test "${ac_cv_lib_gen_compile+set}" = set; then
14130 echo $ECHO_N "(cached) $ECHO_C" >&6
14132 ac_check_lib_save_LIBS=$LIBS
14134 cat >conftest.$ac_ext <<_ACEOF
14135 #line 14135 "configure"
14136 #include "confdefs.h"
14138 /* Override any gcc2 internal prototype to avoid an error. */
14142 /* We use char because int might match the return type of a gcc2
14143 builtin and then its argument prototype would still apply. */
14153 rm -f conftest.$ac_objext conftest$ac_exeext
14154 if { (eval echo "$as_me:14154: \"$ac_link\"") >&5
14155 (eval $ac_link) 2>&5
14157 echo "$as_me:14157: \$? = $ac_status" >&5
14158 (exit $ac_status); } &&
14159 { ac_try='test -s conftest$ac_exeext'
14160 { (eval echo "$as_me:14160: \"$ac_try\"") >&5
14161 (eval $ac_try) 2>&5
14163 echo "$as_me:14163: \$? = $ac_status" >&5
14164 (exit $ac_status); }; }; then
14165 ac_cv_lib_gen_compile=yes
14167 echo "$as_me: failed program was:" >&5
14168 cat conftest.$ac_ext >&5
14169 ac_cv_lib_gen_compile=no
14171 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14172 LIBS=$ac_check_lib_save_LIBS
14174 echo "$as_me:14174: result: $ac_cv_lib_gen_compile" >&5
14175 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
14176 if test $ac_cv_lib_gen_compile = yes; then
14179 cf_regex_func=compile
14186 if test "$cf_regex_func" = no ; then
14187 { echo "$as_me:14187: WARNING: cannot find regular expression library" >&5
14188 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
14191 echo "$as_me:14191: checking for regular-expression headers" >&5
14192 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
14193 if test "${cf_cv_regex_hdrs+set}" = set; then
14194 echo $ECHO_N "(cached) $ECHO_C" >&6
14197 cf_cv_regex_hdrs=no
14198 case $cf_regex_func in #(vi
14200 for cf_regex_hdr in regexp.h regexpr.h
14202 cat >conftest.$ac_ext <<_ACEOF
14203 #line 14203 "configure"
14204 #include "confdefs.h"
14205 #include <$cf_regex_hdr>
14210 char *p = compile("", "", "", 0);
14211 int x = step("", "");
14217 rm -f conftest.$ac_objext conftest$ac_exeext
14218 if { (eval echo "$as_me:14218: \"$ac_link\"") >&5
14219 (eval $ac_link) 2>&5
14221 echo "$as_me:14221: \$? = $ac_status" >&5
14222 (exit $ac_status); } &&
14223 { ac_try='test -s conftest$ac_exeext'
14224 { (eval echo "$as_me:14224: \"$ac_try\"") >&5
14225 (eval $ac_try) 2>&5
14227 echo "$as_me:14227: \$? = $ac_status" >&5
14228 (exit $ac_status); }; }; then
14230 cf_cv_regex_hdrs=$cf_regex_hdr
14234 echo "$as_me: failed program was:" >&5
14235 cat conftest.$ac_ext >&5
14237 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14241 for cf_regex_hdr in regex.h
14243 cat >conftest.$ac_ext <<_ACEOF
14244 #line 14244 "configure"
14245 #include "confdefs.h"
14246 #include <sys/types.h>
14247 #include <$cf_regex_hdr>
14253 int x = regcomp(p, "", 0);
14254 int y = regexec(p, "", 0, 0, 0);
14261 rm -f conftest.$ac_objext conftest$ac_exeext
14262 if { (eval echo "$as_me:14262: \"$ac_link\"") >&5
14263 (eval $ac_link) 2>&5
14265 echo "$as_me:14265: \$? = $ac_status" >&5
14266 (exit $ac_status); } &&
14267 { ac_try='test -s conftest$ac_exeext'
14268 { (eval echo "$as_me:14268: \"$ac_try\"") >&5
14269 (eval $ac_try) 2>&5
14271 echo "$as_me:14271: \$? = $ac_status" >&5
14272 (exit $ac_status); }; }; then
14274 cf_cv_regex_hdrs=$cf_regex_hdr
14278 echo "$as_me: failed program was:" >&5
14279 cat conftest.$ac_ext >&5
14281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14287 echo "$as_me:14287: result: $cf_cv_regex_hdrs" >&5
14288 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
14290 case $cf_cv_regex_hdrs in #(vi
14291 no) { echo "$as_me:14291: WARNING: no regular expression header found" >&5
14292 echo "$as_me: WARNING: no regular expression header found" >&2;} ;; #(vi
14293 regex.h) cat >>confdefs.h <<\EOF
14294 #define HAVE_REGEX_H_FUNCS 1
14297 regexp.h) cat >>confdefs.h <<\EOF
14298 #define HAVE_REGEXP_H_FUNCS 1
14301 regexpr.h) cat >>confdefs.h <<\EOF
14302 #define HAVE_REGEXPR_H_FUNCS 1
14326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14327 echo "$as_me:14327: checking for $ac_header" >&5
14328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14330 echo $ECHO_N "(cached) $ECHO_C" >&6
14332 cat >conftest.$ac_ext <<_ACEOF
14333 #line 14333 "configure"
14334 #include "confdefs.h"
14335 #include <$ac_header>
14337 if { (eval echo "$as_me:14337: \"$ac_cpp conftest.$ac_ext\"") >&5
14338 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14340 egrep -v '^ *\+' conftest.er1 >conftest.err
14342 cat conftest.err >&5
14343 echo "$as_me:14343: \$? = $ac_status" >&5
14344 (exit $ac_status); } >/dev/null; then
14345 if test -s conftest.err; then
14346 ac_cpp_err=$ac_c_preproc_warn_flag
14353 if test -z "$ac_cpp_err"; then
14354 eval "$as_ac_Header=yes"
14356 echo "$as_me: failed program was:" >&5
14357 cat conftest.$ac_ext >&5
14358 eval "$as_ac_Header=no"
14360 rm -f conftest.err conftest.$ac_ext
14362 echo "$as_me:14362: result: `eval echo '${'$as_ac_Header'}'`" >&5
14363 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14365 cat >>confdefs.h <<EOF
14366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14372 for ac_header in unistd.h getopt.h
14374 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14375 echo "$as_me:14375: checking for $ac_header" >&5
14376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14378 echo $ECHO_N "(cached) $ECHO_C" >&6
14380 cat >conftest.$ac_ext <<_ACEOF
14381 #line 14381 "configure"
14382 #include "confdefs.h"
14383 #include <$ac_header>
14385 if { (eval echo "$as_me:14385: \"$ac_cpp conftest.$ac_ext\"") >&5
14386 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14388 egrep -v '^ *\+' conftest.er1 >conftest.err
14390 cat conftest.err >&5
14391 echo "$as_me:14391: \$? = $ac_status" >&5
14392 (exit $ac_status); } >/dev/null; then
14393 if test -s conftest.err; then
14394 ac_cpp_err=$ac_c_preproc_warn_flag
14401 if test -z "$ac_cpp_err"; then
14402 eval "$as_ac_Header=yes"
14404 echo "$as_me: failed program was:" >&5
14405 cat conftest.$ac_ext >&5
14406 eval "$as_ac_Header=no"
14408 rm -f conftest.err conftest.$ac_ext
14410 echo "$as_me:14410: result: `eval echo '${'$as_ac_Header'}'`" >&5
14411 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14412 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14413 cat >>confdefs.h <<EOF
14414 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14420 echo "$as_me:14420: checking for header declaring getopt variables" >&5
14421 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
14422 if test "${cf_cv_getopt_header+set}" = set; then
14423 echo $ECHO_N "(cached) $ECHO_C" >&6
14426 cf_cv_getopt_header=none
14427 for cf_header in stdio.h stdlib.h unistd.h getopt.h
14429 cat >conftest.$ac_ext <<_ACEOF
14430 #line 14430 "configure"
14431 #include "confdefs.h"
14433 #include <$cf_header>
14437 int x = optind; char *y = optarg
14442 rm -f conftest.$ac_objext
14443 if { (eval echo "$as_me:14443: \"$ac_compile\"") >&5
14444 (eval $ac_compile) 2>&5
14446 echo "$as_me:14446: \$? = $ac_status" >&5
14447 (exit $ac_status); } &&
14448 { ac_try='test -s conftest.$ac_objext'
14449 { (eval echo "$as_me:14449: \"$ac_try\"") >&5
14450 (eval $ac_try) 2>&5
14452 echo "$as_me:14452: \$? = $ac_status" >&5
14453 (exit $ac_status); }; }; then
14454 cf_cv_getopt_header=$cf_header
14457 echo "$as_me: failed program was:" >&5
14458 cat conftest.$ac_ext >&5
14460 rm -f conftest.$ac_objext conftest.$ac_ext
14464 echo "$as_me:14464: result: $cf_cv_getopt_header" >&5
14465 echo "${ECHO_T}$cf_cv_getopt_header" >&6
14466 if test $cf_cv_getopt_header != none ; then
14467 cat >>confdefs.h <<\EOF
14468 #define HAVE_GETOPT_HEADER 1
14473 # check for ISC (this may also define _POSIX_SOURCE)
14474 # Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
14475 if test "$ISC" = yes ; then
14477 echo "$as_me:14477: checking for main in -lcposix" >&5
14478 echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6
14479 if test "${ac_cv_lib_cposix_main+set}" = set; then
14480 echo $ECHO_N "(cached) $ECHO_C" >&6
14482 ac_check_lib_save_LIBS=$LIBS
14483 LIBS="-lcposix $LIBS"
14484 cat >conftest.$ac_ext <<_ACEOF
14485 #line 14485 "configure"
14486 #include "confdefs.h"
14496 rm -f conftest.$ac_objext conftest$ac_exeext
14497 if { (eval echo "$as_me:14497: \"$ac_link\"") >&5
14498 (eval $ac_link) 2>&5
14500 echo "$as_me:14500: \$? = $ac_status" >&5
14501 (exit $ac_status); } &&
14502 { ac_try='test -s conftest$ac_exeext'
14503 { (eval echo "$as_me:14503: \"$ac_try\"") >&5
14504 (eval $ac_try) 2>&5
14506 echo "$as_me:14506: \$? = $ac_status" >&5
14507 (exit $ac_status); }; }; then
14508 ac_cv_lib_cposix_main=yes
14510 echo "$as_me: failed program was:" >&5
14511 cat conftest.$ac_ext >&5
14512 ac_cv_lib_cposix_main=no
14514 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14515 LIBS=$ac_check_lib_save_LIBS
14517 echo "$as_me:14517: result: $ac_cv_lib_cposix_main" >&5
14518 echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6
14519 if test $ac_cv_lib_cposix_main = yes; then
14520 cat >>confdefs.h <<EOF
14521 #define HAVE_LIBCPOSIX 1
14524 LIBS="-lcposix $LIBS"
14528 echo "$as_me:14528: checking for bzero in -linet" >&5
14529 echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6
14530 if test "${ac_cv_lib_inet_bzero+set}" = set; then
14531 echo $ECHO_N "(cached) $ECHO_C" >&6
14533 ac_check_lib_save_LIBS=$LIBS
14534 LIBS="-linet $LIBS"
14535 cat >conftest.$ac_ext <<_ACEOF
14536 #line 14536 "configure"
14537 #include "confdefs.h"
14539 /* Override any gcc2 internal prototype to avoid an error. */
14543 /* We use char because int might match the return type of a gcc2
14544 builtin and then its argument prototype would still apply. */
14554 rm -f conftest.$ac_objext conftest$ac_exeext
14555 if { (eval echo "$as_me:14555: \"$ac_link\"") >&5
14556 (eval $ac_link) 2>&5
14558 echo "$as_me:14558: \$? = $ac_status" >&5
14559 (exit $ac_status); } &&
14560 { ac_try='test -s conftest$ac_exeext'
14561 { (eval echo "$as_me:14561: \"$ac_try\"") >&5
14562 (eval $ac_try) 2>&5
14564 echo "$as_me:14564: \$? = $ac_status" >&5
14565 (exit $ac_status); }; }; then
14566 ac_cv_lib_inet_bzero=yes
14568 echo "$as_me: failed program was:" >&5
14569 cat conftest.$ac_ext >&5
14570 ac_cv_lib_inet_bzero=no
14572 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14573 LIBS=$ac_check_lib_save_LIBS
14575 echo "$as_me:14575: result: $ac_cv_lib_inet_bzero" >&5
14576 echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6
14577 if test $ac_cv_lib_inet_bzero = yes; then
14578 LIBS="-linet $LIBS"
14582 echo "$as_me:14582: checking if sys/time.h works with sys/select.h" >&5
14583 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
14584 if test "${cf_cv_sys_time_select+set}" = set; then
14585 echo $ECHO_N "(cached) $ECHO_C" >&6
14588 cat >conftest.$ac_ext <<_ACEOF
14589 #line 14589 "configure"
14590 #include "confdefs.h"
14592 #include <sys/types.h>
14593 #ifdef HAVE_SYS_TIME_H
14594 #include <sys/time.h>
14596 #ifdef HAVE_SYS_SELECT_H
14597 #include <sys/select.h>
14608 rm -f conftest.$ac_objext
14609 if { (eval echo "$as_me:14609: \"$ac_compile\"") >&5
14610 (eval $ac_compile) 2>&5
14612 echo "$as_me:14612: \$? = $ac_status" >&5
14613 (exit $ac_status); } &&
14614 { ac_try='test -s conftest.$ac_objext'
14615 { (eval echo "$as_me:14615: \"$ac_try\"") >&5
14616 (eval $ac_try) 2>&5
14618 echo "$as_me:14618: \$? = $ac_status" >&5
14619 (exit $ac_status); }; }; then
14620 cf_cv_sys_time_select=yes
14622 echo "$as_me: failed program was:" >&5
14623 cat conftest.$ac_ext >&5
14624 cf_cv_sys_time_select=no
14626 rm -f conftest.$ac_objext conftest.$ac_ext
14630 echo "$as_me:14630: result: $cf_cv_sys_time_select" >&5
14631 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
14632 test "$cf_cv_sys_time_select" = yes && cat >>confdefs.h <<\EOF
14633 #define HAVE_SYS_TIME_SELECT 1
14636 ### checks for compiler characteristics
14638 ac_cpp='$CPP $CPPFLAGS'
14639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14642 ac_main_return=return
14644 echo "$as_me:14644: checking for $CC option to accept ANSI C" >&5
14645 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
14646 if test "${ac_cv_prog_cc_stdc+set}" = set; then
14647 echo $ECHO_N "(cached) $ECHO_C" >&6
14649 ac_cv_prog_cc_stdc=no
14651 cat >conftest.$ac_ext <<_ACEOF
14652 #line 14652 "configure"
14653 #include "confdefs.h"
14654 #include <stdarg.h>
14656 #include <sys/types.h>
14657 #include <sys/stat.h>
14658 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
14659 struct buf { int x; };
14660 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14661 static char *e (p, i)
14667 static char *f (char * (*g) (char **, int), char **p, ...)
14672 s = g (p, va_arg (v,int));
14676 int test (int i, double x);
14677 struct s1 {int (*f) (int a);};
14678 struct s2 {int (*f) (double a);};
14679 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14685 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
14690 # Don't try gcc -ansi; that turns off useful extensions and
14691 # breaks some systems' header files.
14692 # AIX -qlanglvl=ansi
14693 # Ultrix and OSF/1 -std1
14694 # HP-UX 10.20 and later -Ae
14695 # HP-UX older versions -Aa -D_HPUX_SOURCE
14696 # SVR4 -Xc -D__EXTENSIONS__
14697 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14699 CC="$ac_save_CC $ac_arg"
14700 rm -f conftest.$ac_objext
14701 if { (eval echo "$as_me:14701: \"$ac_compile\"") >&5
14702 (eval $ac_compile) 2>&5
14704 echo "$as_me:14704: \$? = $ac_status" >&5
14705 (exit $ac_status); } &&
14706 { ac_try='test -s conftest.$ac_objext'
14707 { (eval echo "$as_me:14707: \"$ac_try\"") >&5
14708 (eval $ac_try) 2>&5
14710 echo "$as_me:14710: \$? = $ac_status" >&5
14711 (exit $ac_status); }; }; then
14712 ac_cv_prog_cc_stdc=$ac_arg
14715 echo "$as_me: failed program was:" >&5
14716 cat conftest.$ac_ext >&5
14718 rm -f conftest.$ac_objext
14720 rm -f conftest.$ac_ext conftest.$ac_objext
14725 case "x$ac_cv_prog_cc_stdc" in
14727 echo "$as_me:14727: result: none needed" >&5
14728 echo "${ECHO_T}none needed" >&6 ;;
14730 echo "$as_me:14730: result: $ac_cv_prog_cc_stdc" >&5
14731 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
14732 CC="$CC $ac_cv_prog_cc_stdc" ;;
14735 echo "$as_me:14735: checking for an ANSI C-conforming const" >&5
14736 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14737 if test "${ac_cv_c_const+set}" = set; then
14738 echo $ECHO_N "(cached) $ECHO_C" >&6
14740 cat >conftest.$ac_ext <<_ACEOF
14741 #line 14741 "configure"
14742 #include "confdefs.h"
14747 /* FIXME: Include the comments suggested by Paul. */
14748 #ifndef __cplusplus
14749 /* Ultrix mips cc rejects this. */
14750 typedef int charset[2];
14752 /* SunOS 4.1.1 cc rejects this. */
14753 char const *const *ccp;
14755 /* NEC SVR4.0.2 mips cc rejects this. */
14756 struct point {int x, y;};
14757 static struct point const zero = {0,0};
14758 /* AIX XL C 1.02.0.0 rejects this.
14759 It does not let you subtract one const X* pointer from another in
14760 an arm of an if-expression whose if-part is not a constant
14762 const char *g = "string";
14763 ccp = &g + (g ? g-g : 0);
14764 /* HPUX 7.0 cc rejects these. */
14767 ccp = (char const *const *) p;
14768 { /* SCO 3.2v4 cc rejects this. */
14770 char const *s = 0 ? (char *) 0 : (char const *) 0;
14774 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14775 int x[] = {25, 17};
14776 const int *foo = &x[0];
14779 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14780 typedef const int *iptr;
14784 { /* AIX XL C 1.02.0.0 rejects this saying
14785 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14786 struct s { int j; const int *ap[3]; };
14787 struct s *b; b->j = 5;
14789 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14790 const int foo = 10;
14798 rm -f conftest.$ac_objext
14799 if { (eval echo "$as_me:14799: \"$ac_compile\"") >&5
14800 (eval $ac_compile) 2>&5
14802 echo "$as_me:14802: \$? = $ac_status" >&5
14803 (exit $ac_status); } &&
14804 { ac_try='test -s conftest.$ac_objext'
14805 { (eval echo "$as_me:14805: \"$ac_try\"") >&5
14806 (eval $ac_try) 2>&5
14808 echo "$as_me:14808: \$? = $ac_status" >&5
14809 (exit $ac_status); }; }; then
14812 echo "$as_me: failed program was:" >&5
14813 cat conftest.$ac_ext >&5
14816 rm -f conftest.$ac_objext conftest.$ac_ext
14818 echo "$as_me:14818: result: $ac_cv_c_const" >&5
14819 echo "${ECHO_T}$ac_cv_c_const" >&6
14820 if test $ac_cv_c_const = no; then
14822 cat >>confdefs.h <<\EOF
14828 echo "$as_me:14828: checking for inline" >&5
14829 echo $ECHO_N "checking for inline... $ECHO_C" >&6
14830 if test "${ac_cv_c_inline+set}" = set; then
14831 echo $ECHO_N "(cached) $ECHO_C" >&6
14834 for ac_kw in inline __inline__ __inline; do
14835 cat >conftest.$ac_ext <<_ACEOF
14836 #line 14836 "configure"
14837 #include "confdefs.h"
14838 #ifndef __cplusplus
14839 static $ac_kw int static_foo () {return 0; }
14840 $ac_kw int foo () {return 0; }
14844 rm -f conftest.$ac_objext
14845 if { (eval echo "$as_me:14845: \"$ac_compile\"") >&5
14846 (eval $ac_compile) 2>&5
14848 echo "$as_me:14848: \$? = $ac_status" >&5
14849 (exit $ac_status); } &&
14850 { ac_try='test -s conftest.$ac_objext'
14851 { (eval echo "$as_me:14851: \"$ac_try\"") >&5
14852 (eval $ac_try) 2>&5
14854 echo "$as_me:14854: \$? = $ac_status" >&5
14855 (exit $ac_status); }; }; then
14856 ac_cv_c_inline=$ac_kw; break
14858 echo "$as_me: failed program was:" >&5
14859 cat conftest.$ac_ext >&5
14861 rm -f conftest.$ac_objext conftest.$ac_ext
14865 echo "$as_me:14865: result: $ac_cv_c_inline" >&5
14866 echo "${ECHO_T}$ac_cv_c_inline" >&6
14867 case $ac_cv_c_inline in
14870 cat >>confdefs.h <<\EOF
14874 *) cat >>confdefs.h <<EOF
14875 #define inline $ac_cv_c_inline
14881 if test "$ac_cv_c_inline" != no ; then
14882 NCURSES_INLINE=inline
14883 if test "$INTEL_COMPILER" = yes
14886 elif test "$GCC" = yes
14888 echo "$as_me:14888: checking if $CC supports options to tune inlining" >&5
14889 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
14890 if test "${cf_cv_gcc_inline+set}" = set; then
14891 echo $ECHO_N "(cached) $ECHO_C" >&6
14894 cf_save_CFLAGS=$CFLAGS
14895 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
14896 cat >conftest.$ac_ext <<_ACEOF
14897 #line 14897 "configure"
14898 #include "confdefs.h"
14899 inline int foo(void) { return 1; }
14903 ${cf_cv_main_return:-return} foo()
14908 rm -f conftest.$ac_objext
14909 if { (eval echo "$as_me:14909: \"$ac_compile\"") >&5
14910 (eval $ac_compile) 2>&5
14912 echo "$as_me:14912: \$? = $ac_status" >&5
14913 (exit $ac_status); } &&
14914 { ac_try='test -s conftest.$ac_objext'
14915 { (eval echo "$as_me:14915: \"$ac_try\"") >&5
14916 (eval $ac_try) 2>&5
14918 echo "$as_me:14918: \$? = $ac_status" >&5
14919 (exit $ac_status); }; }; then
14920 cf_cv_gcc_inline=yes
14922 echo "$as_me: failed program was:" >&5
14923 cat conftest.$ac_ext >&5
14924 cf_cv_gcc_inline=no
14926 rm -f conftest.$ac_objext conftest.$ac_ext
14927 CFLAGS=$cf_save_CFLAGS
14930 echo "$as_me:14930: result: $cf_cv_gcc_inline" >&5
14931 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
14932 if test "$cf_cv_gcc_inline" = yes ; then
14937 cf_new_extra_cppflags=
14939 for cf_add_cflags in --param max-inline-insns-single=1200
14941 case $cf_fix_cppflags in
14943 case $cf_add_cflags in #(vi
14944 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
14945 case $cf_add_cflags in
14947 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14949 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
14950 && test -z "${cf_tst_cflags}" \
14951 && cf_fix_cppflags=yes
14953 if test $cf_fix_cppflags = yes ; then
14954 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14956 elif test "${cf_tst_cflags}" = "\"'" ; then
14957 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14962 case "$CPPFLAGS" in
14963 *$cf_add_cflags) #(vi
14966 case $cf_add_cflags in #(vi
14968 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14970 CPPFLAGS=`echo "$CPPFLAGS" | \
14971 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14972 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14976 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
14981 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
14986 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14988 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14990 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
14991 && test -z "${cf_tst_cflags}" \
14992 && cf_fix_cppflags=no
14997 if test -n "$cf_new_cflags" ; then
14999 CFLAGS="$CFLAGS $cf_new_cflags"
15002 if test -n "$cf_new_cppflags" ; then
15004 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
15007 if test -n "$cf_new_extra_cppflags" ; then
15009 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
15016 echo "$as_me:15016: checking for signal global datatype" >&5
15017 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
15018 if test "${cf_cv_sig_atomic_t+set}" = set; then
15019 echo $ECHO_N "(cached) $ECHO_C" >&6
15023 "volatile sig_atomic_t" \
15027 cat >conftest.$ac_ext <<_ACEOF
15028 #line 15028 "configure"
15029 #include "confdefs.h"
15031 #include <sys/types.h>
15032 #include <signal.h>
15037 static void handler(int sig)
15044 signal(SIGINT, handler);
15050 rm -f conftest.$ac_objext
15051 if { (eval echo "$as_me:15051: \"$ac_compile\"") >&5
15052 (eval $ac_compile) 2>&5
15054 echo "$as_me:15054: \$? = $ac_status" >&5
15055 (exit $ac_status); } &&
15056 { ac_try='test -s conftest.$ac_objext'
15057 { (eval echo "$as_me:15057: \"$ac_try\"") >&5
15058 (eval $ac_try) 2>&5
15060 echo "$as_me:15060: \$? = $ac_status" >&5
15061 (exit $ac_status); }; }; then
15062 cf_cv_sig_atomic_t=$cf_type
15064 echo "$as_me: failed program was:" >&5
15065 cat conftest.$ac_ext >&5
15066 cf_cv_sig_atomic_t=no
15068 rm -f conftest.$ac_objext conftest.$ac_ext
15069 test "$cf_cv_sig_atomic_t" != no && break
15074 echo "$as_me:15074: result: $cf_cv_sig_atomic_t" >&5
15075 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
15076 test "$cf_cv_sig_atomic_t" != no && cat >>confdefs.h <<EOF
15077 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
15080 if test $NCURSES_CHTYPE = auto ; then
15082 echo "$as_me:15082: checking for type of chtype" >&5
15083 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
15084 if test "${cf_cv_typeof_chtype+set}" = set; then
15085 echo $ECHO_N "(cached) $ECHO_C" >&6
15088 if test "$cross_compiling" = yes; then
15089 cf_cv_typeof_chtype=long
15091 cat >conftest.$ac_ext <<_ACEOF
15092 #line 15092 "configure"
15093 #include "confdefs.h"
15095 #define WANT_BITS 31
15099 FILE *fp = fopen("cf_test.out", "w");
15101 char *result = "long";
15102 if (sizeof(unsigned long) > sizeof(unsigned int)) {
15105 for (n = 0; n < WANT_BITS; n++) {
15108 if (y != 1 || x == 0) {
15114 * If x is nonzero, an int is big enough for the bits
15117 result = (x != 0) ? "int" : "long";
15122 ${cf_cv_main_return:-return}(0);
15126 rm -f conftest$ac_exeext
15127 if { (eval echo "$as_me:15127: \"$ac_link\"") >&5
15128 (eval $ac_link) 2>&5
15130 echo "$as_me:15130: \$? = $ac_status" >&5
15131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15132 { (eval echo "$as_me:15132: \"$ac_try\"") >&5
15133 (eval $ac_try) 2>&5
15135 echo "$as_me:15135: \$? = $ac_status" >&5
15136 (exit $ac_status); }; }; then
15137 cf_cv_typeof_chtype=`cat cf_test.out`
15139 echo "$as_me: program exited with status $ac_status" >&5
15140 echo "$as_me: failed program was:" >&5
15141 cat conftest.$ac_ext >&5
15142 cf_cv_typeof_chtype=long
15144 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15150 echo "$as_me:15150: result: $cf_cv_typeof_chtype" >&5
15151 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
15153 cat >>confdefs.h <<EOF
15154 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
15158 cf_cv_typeof_chtype=$NCURSES_CHTYPE
15160 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
15162 echo "$as_me:15162: checking if unsigned literals are legal" >&5
15163 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
15164 if test "${cf_cv_unsigned_literals+set}" = set; then
15165 echo $ECHO_N "(cached) $ECHO_C" >&6
15168 cat >conftest.$ac_ext <<_ACEOF
15169 #line 15169 "configure"
15170 #include "confdefs.h"
15175 long x = 1L + 1UL + 1U + 1
15180 rm -f conftest.$ac_objext
15181 if { (eval echo "$as_me:15181: \"$ac_compile\"") >&5
15182 (eval $ac_compile) 2>&5
15184 echo "$as_me:15184: \$? = $ac_status" >&5
15185 (exit $ac_status); } &&
15186 { ac_try='test -s conftest.$ac_objext'
15187 { (eval echo "$as_me:15187: \"$ac_try\"") >&5
15188 (eval $ac_try) 2>&5
15190 echo "$as_me:15190: \$? = $ac_status" >&5
15191 (exit $ac_status); }; }; then
15192 cf_cv_unsigned_literals=yes
15194 echo "$as_me: failed program was:" >&5
15195 cat conftest.$ac_ext >&5
15196 cf_cv_unsigned_literals=no
15198 rm -f conftest.$ac_objext conftest.$ac_ext
15202 echo "$as_me:15202: result: $cf_cv_unsigned_literals" >&5
15203 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
15206 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
15207 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
15209 if test $NCURSES_MMASK_T = auto ; then
15210 cf_cv_typeof_mmask_t=long
15212 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
15214 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
15216 ### Checks for external-data
15218 echo "$as_me:15218: checking if external errno is declared" >&5
15219 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
15220 if test "${cf_cv_dcl_errno+set}" = set; then
15221 echo $ECHO_N "(cached) $ECHO_C" >&6
15224 cat >conftest.$ac_ext <<_ACEOF
15225 #line 15225 "configure"
15226 #include "confdefs.h"
15228 #ifdef HAVE_STDLIB_H
15229 #include <stdlib.h>
15232 #include <sys/types.h>
15237 int x = (int) errno
15242 rm -f conftest.$ac_objext
15243 if { (eval echo "$as_me:15243: \"$ac_compile\"") >&5
15244 (eval $ac_compile) 2>&5
15246 echo "$as_me:15246: \$? = $ac_status" >&5
15247 (exit $ac_status); } &&
15248 { ac_try='test -s conftest.$ac_objext'
15249 { (eval echo "$as_me:15249: \"$ac_try\"") >&5
15250 (eval $ac_try) 2>&5
15252 echo "$as_me:15252: \$? = $ac_status" >&5
15253 (exit $ac_status); }; }; then
15254 cf_cv_dcl_errno=yes
15256 echo "$as_me: failed program was:" >&5
15257 cat conftest.$ac_ext >&5
15260 rm -f conftest.$ac_objext conftest.$ac_ext
15263 echo "$as_me:15263: result: $cf_cv_dcl_errno" >&5
15264 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
15266 if test "$cf_cv_dcl_errno" = no ; then
15268 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15270 cat >>confdefs.h <<EOF
15271 #define $cf_result 1
15276 # It's possible (for near-UNIX clones) that the data doesn't exist
15278 echo "$as_me:15278: checking if external errno exists" >&5
15279 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
15280 if test "${cf_cv_have_errno+set}" = set; then
15281 echo $ECHO_N "(cached) $ECHO_C" >&6
15284 cat >conftest.$ac_ext <<_ACEOF
15285 #line 15285 "configure"
15286 #include "confdefs.h"
15299 rm -f conftest.$ac_objext conftest$ac_exeext
15300 if { (eval echo "$as_me:15300: \"$ac_link\"") >&5
15301 (eval $ac_link) 2>&5
15303 echo "$as_me:15303: \$? = $ac_status" >&5
15304 (exit $ac_status); } &&
15305 { ac_try='test -s conftest$ac_exeext'
15306 { (eval echo "$as_me:15306: \"$ac_try\"") >&5
15307 (eval $ac_try) 2>&5
15309 echo "$as_me:15309: \$? = $ac_status" >&5
15310 (exit $ac_status); }; }; then
15311 cf_cv_have_errno=yes
15313 echo "$as_me: failed program was:" >&5
15314 cat conftest.$ac_ext >&5
15315 cf_cv_have_errno=no
15317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15320 echo "$as_me:15320: result: $cf_cv_have_errno" >&5
15321 echo "${ECHO_T}$cf_cv_have_errno" >&6
15323 if test "$cf_cv_have_errno" = yes ; then
15325 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15327 cat >>confdefs.h <<EOF
15328 #define $cf_result 1
15333 echo "$as_me:15333: checking if data-only library module links" >&5
15334 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
15335 if test "${cf_cv_link_dataonly+set}" = set; then
15336 echo $ECHO_N "(cached) $ECHO_C" >&6
15340 cat >conftest.$ac_ext <<EOF
15341 #line 15341 "configure"
15342 int testdata[3] = { 123, 456, 789 };
15344 if { (eval echo "$as_me:15344: \"$ac_compile\"") >&5
15345 (eval $ac_compile) 2>&5
15347 echo "$as_me:15347: \$? = $ac_status" >&5
15348 (exit $ac_status); } ; then
15349 mv conftest.o data.o && \
15350 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
15352 rm -f conftest.$ac_ext data.o
15353 cat >conftest.$ac_ext <<EOF
15354 #line 15354 "configure"
15358 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
15360 extern int testdata[3];
15361 return testdata[0] == 123
15362 && testdata[1] == 456
15363 && testdata[2] == 789;
15367 if { (eval echo "$as_me:15367: \"$ac_compile\"") >&5
15368 (eval $ac_compile) 2>&5
15370 echo "$as_me:15370: \$? = $ac_status" >&5
15371 (exit $ac_status); }; then
15372 mv conftest.o func.o && \
15373 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
15375 rm -f conftest.$ac_ext func.o
15376 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
15377 cf_saveLIBS="$LIBS"
15378 LIBS="conftest.a $LIBS"
15379 if test "$cross_compiling" = yes; then
15380 cf_cv_link_dataonly=unknown
15382 cat >conftest.$ac_ext <<_ACEOF
15383 #line 15383 "configure"
15384 #include "confdefs.h"
15388 extern int testfunc();
15389 ${cf_cv_main_return:-return} (!testfunc());
15393 rm -f conftest$ac_exeext
15394 if { (eval echo "$as_me:15394: \"$ac_link\"") >&5
15395 (eval $ac_link) 2>&5
15397 echo "$as_me:15397: \$? = $ac_status" >&5
15398 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15399 { (eval echo "$as_me:15399: \"$ac_try\"") >&5
15400 (eval $ac_try) 2>&5
15402 echo "$as_me:15402: \$? = $ac_status" >&5
15403 (exit $ac_status); }; }; then
15404 cf_cv_link_dataonly=yes
15406 echo "$as_me: program exited with status $ac_status" >&5
15407 echo "$as_me: failed program was:" >&5
15408 cat conftest.$ac_ext >&5
15409 cf_cv_link_dataonly=no
15411 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15413 LIBS="$cf_saveLIBS"
15417 echo "$as_me:15417: result: $cf_cv_link_dataonly" >&5
15418 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
15420 if test "$cf_cv_link_dataonly" = no ; then
15421 cat >>confdefs.h <<\EOF
15422 #define BROKEN_LINKER 1
15428 ### Checks for library functions.
15451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15452 echo "$as_me:15452: checking for $ac_func" >&5
15453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15454 if eval "test \"\${$as_ac_var+set}\" = set"; then
15455 echo $ECHO_N "(cached) $ECHO_C" >&6
15457 cat >conftest.$ac_ext <<_ACEOF
15458 #line 15458 "configure"
15459 #include "confdefs.h"
15460 /* System header to define __stub macros and hopefully few prototypes,
15461 which can conflict with char $ac_func (); below. */
15462 #include <assert.h>
15463 /* Override any gcc2 internal prototype to avoid an error. */
15467 /* We use char because int might match the return type of a gcc2
15468 builtin and then its argument prototype would still apply. */
15475 /* The GNU C library defines this for functions which it implements
15476 to always fail with ENOSYS. Some functions are actually named
15477 something starting with __ and the normal name is an alias. */
15478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15488 rm -f conftest.$ac_objext conftest$ac_exeext
15489 if { (eval echo "$as_me:15489: \"$ac_link\"") >&5
15490 (eval $ac_link) 2>&5
15492 echo "$as_me:15492: \$? = $ac_status" >&5
15493 (exit $ac_status); } &&
15494 { ac_try='test -s conftest$ac_exeext'
15495 { (eval echo "$as_me:15495: \"$ac_try\"") >&5
15496 (eval $ac_try) 2>&5
15498 echo "$as_me:15498: \$? = $ac_status" >&5
15499 (exit $ac_status); }; }; then
15500 eval "$as_ac_var=yes"
15502 echo "$as_me: failed program was:" >&5
15503 cat conftest.$ac_ext >&5
15504 eval "$as_ac_var=no"
15506 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15508 echo "$as_me:15508: result: `eval echo '${'$as_ac_var'}'`" >&5
15509 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15510 if test `eval echo '${'$as_ac_var'}'` = yes; then
15511 cat >>confdefs.h <<EOF
15512 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15518 if test "$with_getcap" = "yes" ; then
15520 echo "$as_me:15520: checking for terminal-capability database functions" >&5
15521 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
15522 if test "${cf_cv_cgetent+set}" = set; then
15523 echo $ECHO_N "(cached) $ECHO_C" >&6
15526 cat >conftest.$ac_ext <<_ACEOF
15527 #line 15527 "configure"
15528 #include "confdefs.h"
15530 #include <stdlib.h>
15537 char *db_array = temp;
15538 cgetent(&buf, &db_array, "vt100");
15539 cgetcap(buf, "tc", '=');
15540 cgetmatch(buf, "tc");
15546 rm -f conftest.$ac_objext conftest$ac_exeext
15547 if { (eval echo "$as_me:15547: \"$ac_link\"") >&5
15548 (eval $ac_link) 2>&5
15550 echo "$as_me:15550: \$? = $ac_status" >&5
15551 (exit $ac_status); } &&
15552 { ac_try='test -s conftest$ac_exeext'
15553 { (eval echo "$as_me:15553: \"$ac_try\"") >&5
15554 (eval $ac_try) 2>&5
15556 echo "$as_me:15556: \$? = $ac_status" >&5
15557 (exit $ac_status); }; }; then
15560 echo "$as_me: failed program was:" >&5
15561 cat conftest.$ac_ext >&5
15564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15567 echo "$as_me:15567: result: $cf_cv_cgetent" >&5
15568 echo "${ECHO_T}$cf_cv_cgetent" >&6
15570 if test "$cf_cv_cgetent" = yes
15572 cat >>confdefs.h <<\EOF
15573 #define HAVE_BSD_CGETENT 1
15576 echo "$as_me:15576: checking if cgetent uses const parameter" >&5
15577 echo $ECHO_N "checking if cgetent uses const parameter... $ECHO_C" >&6
15578 if test "${cf_cv_cgetent_const+set}" = set; then
15579 echo $ECHO_N "(cached) $ECHO_C" >&6
15582 cat >conftest.$ac_ext <<_ACEOF
15583 #line 15583 "configure"
15584 #include "confdefs.h"
15586 #include <stdlib.h>
15593 #ifndef _NETBSD_SOURCE /* given, since April 2004 in stdlib.h */
15594 const char *db_array = temp;
15595 cgetent(&buf, &db_array, "vt100");
15597 cgetcap(buf, "tc", '=');
15598 cgetmatch(buf, "tc");
15604 rm -f conftest.$ac_objext conftest$ac_exeext
15605 if { (eval echo "$as_me:15605: \"$ac_link\"") >&5
15606 (eval $ac_link) 2>&5
15608 echo "$as_me:15608: \$? = $ac_status" >&5
15609 (exit $ac_status); } &&
15610 { ac_try='test -s conftest$ac_exeext'
15611 { (eval echo "$as_me:15611: \"$ac_try\"") >&5
15612 (eval $ac_try) 2>&5
15614 echo "$as_me:15614: \$? = $ac_status" >&5
15615 (exit $ac_status); }; }; then
15616 cf_cv_cgetent_const=yes
15618 echo "$as_me: failed program was:" >&5
15619 cat conftest.$ac_ext >&5
15620 cf_cv_cgetent_const=no
15622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15625 echo "$as_me:15625: result: $cf_cv_cgetent_const" >&5
15626 echo "${ECHO_T}$cf_cv_cgetent_const" >&6
15627 if test "$cf_cv_cgetent_const" = yes
15629 cat >>confdefs.h <<EOF
15630 #define CGETENT_CONST const
15638 echo "$as_me:15638: checking for isascii" >&5
15639 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
15640 if test "${cf_cv_have_isascii+set}" = set; then
15641 echo $ECHO_N "(cached) $ECHO_C" >&6
15644 cat >conftest.$ac_ext <<_ACEOF
15645 #line 15645 "configure"
15646 #include "confdefs.h"
15651 int x = isascii(' ')
15656 rm -f conftest.$ac_objext conftest$ac_exeext
15657 if { (eval echo "$as_me:15657: \"$ac_link\"") >&5
15658 (eval $ac_link) 2>&5
15660 echo "$as_me:15660: \$? = $ac_status" >&5
15661 (exit $ac_status); } &&
15662 { ac_try='test -s conftest$ac_exeext'
15663 { (eval echo "$as_me:15663: \"$ac_try\"") >&5
15664 (eval $ac_try) 2>&5
15666 echo "$as_me:15666: \$? = $ac_status" >&5
15667 (exit $ac_status); }; }; then
15668 cf_cv_have_isascii=yes
15670 echo "$as_me: failed program was:" >&5
15671 cat conftest.$ac_ext >&5
15672 cf_cv_have_isascii=no
15674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15677 echo "$as_me:15677: result: $cf_cv_have_isascii" >&5
15678 echo "${ECHO_T}$cf_cv_have_isascii" >&6
15679 test "$cf_cv_have_isascii" = yes && cat >>confdefs.h <<\EOF
15680 #define HAVE_ISASCII 1
15683 if test "$ac_cv_func_sigaction" = yes; then
15684 echo "$as_me:15684: checking whether sigaction needs _POSIX_SOURCE" >&5
15685 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
15686 cat >conftest.$ac_ext <<_ACEOF
15687 #line 15687 "configure"
15688 #include "confdefs.h"
15690 #include <sys/types.h>
15691 #include <signal.h>
15695 struct sigaction act
15700 rm -f conftest.$ac_objext
15701 if { (eval echo "$as_me:15701: \"$ac_compile\"") >&5
15702 (eval $ac_compile) 2>&5
15704 echo "$as_me:15704: \$? = $ac_status" >&5
15705 (exit $ac_status); } &&
15706 { ac_try='test -s conftest.$ac_objext'
15707 { (eval echo "$as_me:15707: \"$ac_try\"") >&5
15708 (eval $ac_try) 2>&5
15710 echo "$as_me:15710: \$? = $ac_status" >&5
15711 (exit $ac_status); }; }; then
15714 echo "$as_me: failed program was:" >&5
15715 cat conftest.$ac_ext >&5
15717 cat >conftest.$ac_ext <<_ACEOF
15718 #line 15718 "configure"
15719 #include "confdefs.h"
15721 #define _POSIX_SOURCE
15722 #include <sys/types.h>
15723 #include <signal.h>
15727 struct sigaction act
15732 rm -f conftest.$ac_objext
15733 if { (eval echo "$as_me:15733: \"$ac_compile\"") >&5
15734 (eval $ac_compile) 2>&5
15736 echo "$as_me:15736: \$? = $ac_status" >&5
15737 (exit $ac_status); } &&
15738 { ac_try='test -s conftest.$ac_objext'
15739 { (eval echo "$as_me:15739: \"$ac_try\"") >&5
15740 (eval $ac_try) 2>&5
15742 echo "$as_me:15742: \$? = $ac_status" >&5
15743 (exit $ac_status); }; }; then
15745 cat >>confdefs.h <<\EOF
15746 #define _POSIX_SOURCE 1
15750 echo "$as_me: failed program was:" >&5
15751 cat conftest.$ac_ext >&5
15754 rm -f conftest.$ac_objext conftest.$ac_ext
15756 rm -f conftest.$ac_objext conftest.$ac_ext
15757 echo "$as_me:15757: result: $sigact_bad" >&5
15758 echo "${ECHO_T}$sigact_bad" >&6
15761 echo "$as_me:15761: checking if nanosleep really works" >&5
15762 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
15763 if test "${cf_cv_func_nanosleep+set}" = set; then
15764 echo $ECHO_N "(cached) $ECHO_C" >&6
15767 if test "$cross_compiling" = yes; then
15768 cf_cv_func_nanosleep=unknown
15770 cat >conftest.$ac_ext <<_ACEOF
15771 #line 15771 "configure"
15772 #include "confdefs.h"
15778 #ifdef HAVE_SYS_TIME_H
15779 #include <sys/time.h>
15783 struct timespec ts1, ts2;
15786 ts1.tv_nsec = 750000000;
15790 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
15791 ${cf_cv_main_return:-return}(code != 0);
15795 rm -f conftest$ac_exeext
15796 if { (eval echo "$as_me:15796: \"$ac_link\"") >&5
15797 (eval $ac_link) 2>&5
15799 echo "$as_me:15799: \$? = $ac_status" >&5
15800 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15801 { (eval echo "$as_me:15801: \"$ac_try\"") >&5
15802 (eval $ac_try) 2>&5
15804 echo "$as_me:15804: \$? = $ac_status" >&5
15805 (exit $ac_status); }; }; then
15806 cf_cv_func_nanosleep=yes
15808 echo "$as_me: program exited with status $ac_status" >&5
15809 echo "$as_me: failed program was:" >&5
15810 cat conftest.$ac_ext >&5
15811 cf_cv_func_nanosleep=no
15813 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15816 echo "$as_me:15816: result: $cf_cv_func_nanosleep" >&5
15817 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
15819 test "$cf_cv_func_nanosleep" = "yes" && cat >>confdefs.h <<\EOF
15820 #define HAVE_NANOSLEEP 1
15829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15830 echo "$as_me:15830: checking for $ac_header" >&5
15831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15833 echo $ECHO_N "(cached) $ECHO_C" >&6
15835 cat >conftest.$ac_ext <<_ACEOF
15836 #line 15836 "configure"
15837 #include "confdefs.h"
15838 #include <$ac_header>
15840 if { (eval echo "$as_me:15840: \"$ac_cpp conftest.$ac_ext\"") >&5
15841 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15843 egrep -v '^ *\+' conftest.er1 >conftest.err
15845 cat conftest.err >&5
15846 echo "$as_me:15846: \$? = $ac_status" >&5
15847 (exit $ac_status); } >/dev/null; then
15848 if test -s conftest.err; then
15849 ac_cpp_err=$ac_c_preproc_warn_flag
15856 if test -z "$ac_cpp_err"; then
15857 eval "$as_ac_Header=yes"
15859 echo "$as_me: failed program was:" >&5
15860 cat conftest.$ac_ext >&5
15861 eval "$as_ac_Header=no"
15863 rm -f conftest.err conftest.$ac_ext
15865 echo "$as_me:15865: result: `eval echo '${'$as_ac_Header'}'`" >&5
15866 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15867 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15868 cat >>confdefs.h <<EOF
15869 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15875 if test "$ISC" = yes ; then
15877 for ac_header in sys/termio.h
15879 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15880 echo "$as_me:15880: checking for $ac_header" >&5
15881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15883 echo $ECHO_N "(cached) $ECHO_C" >&6
15885 cat >conftest.$ac_ext <<_ACEOF
15886 #line 15886 "configure"
15887 #include "confdefs.h"
15888 #include <$ac_header>
15890 if { (eval echo "$as_me:15890: \"$ac_cpp conftest.$ac_ext\"") >&5
15891 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15893 egrep -v '^ *\+' conftest.er1 >conftest.err
15895 cat conftest.err >&5
15896 echo "$as_me:15896: \$? = $ac_status" >&5
15897 (exit $ac_status); } >/dev/null; then
15898 if test -s conftest.err; then
15899 ac_cpp_err=$ac_c_preproc_warn_flag
15906 if test -z "$ac_cpp_err"; then
15907 eval "$as_ac_Header=yes"
15909 echo "$as_me: failed program was:" >&5
15910 cat conftest.$ac_ext >&5
15911 eval "$as_ac_Header=no"
15913 rm -f conftest.err conftest.$ac_ext
15915 echo "$as_me:15915: result: `eval echo '${'$as_ac_Header'}'`" >&5
15916 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15918 cat >>confdefs.h <<EOF
15919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15926 if test "$ac_cv_header_termios_h" = yes ; then
15927 case "$CFLAGS $CPPFLAGS" in
15929 termios_bad=dunno ;;
15930 *) termios_bad=maybe ;;
15932 if test "$termios_bad" = maybe ; then
15933 echo "$as_me:15933: checking whether termios.h needs _POSIX_SOURCE" >&5
15934 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
15935 cat >conftest.$ac_ext <<_ACEOF
15936 #line 15936 "configure"
15937 #include "confdefs.h"
15938 #include <termios.h>
15942 struct termios foo; int x = foo.c_iflag
15947 rm -f conftest.$ac_objext
15948 if { (eval echo "$as_me:15948: \"$ac_compile\"") >&5
15949 (eval $ac_compile) 2>&5
15951 echo "$as_me:15951: \$? = $ac_status" >&5
15952 (exit $ac_status); } &&
15953 { ac_try='test -s conftest.$ac_objext'
15954 { (eval echo "$as_me:15954: \"$ac_try\"") >&5
15955 (eval $ac_try) 2>&5
15957 echo "$as_me:15957: \$? = $ac_status" >&5
15958 (exit $ac_status); }; }; then
15961 echo "$as_me: failed program was:" >&5
15962 cat conftest.$ac_ext >&5
15964 cat >conftest.$ac_ext <<_ACEOF
15965 #line 15965 "configure"
15966 #include "confdefs.h"
15968 #define _POSIX_SOURCE
15969 #include <termios.h>
15973 struct termios foo; int x = foo.c_iflag
15978 rm -f conftest.$ac_objext
15979 if { (eval echo "$as_me:15979: \"$ac_compile\"") >&5
15980 (eval $ac_compile) 2>&5
15982 echo "$as_me:15982: \$? = $ac_status" >&5
15983 (exit $ac_status); } &&
15984 { ac_try='test -s conftest.$ac_objext'
15985 { (eval echo "$as_me:15985: \"$ac_try\"") >&5
15986 (eval $ac_try) 2>&5
15988 echo "$as_me:15988: \$? = $ac_status" >&5
15989 (exit $ac_status); }; }; then
15990 termios_bad=unknown
15992 echo "$as_me: failed program was:" >&5
15993 cat conftest.$ac_ext >&5
15994 termios_bad=yes cat >>confdefs.h <<\EOF
15995 #define _POSIX_SOURCE 1
15999 rm -f conftest.$ac_objext conftest.$ac_ext
16002 rm -f conftest.$ac_objext conftest.$ac_ext
16003 echo "$as_me:16003: result: $termios_bad" >&5
16004 echo "${ECHO_T}$termios_bad" >&6
16008 echo "$as_me:16008: checking for tcgetattr" >&5
16009 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
16010 if test "${cf_cv_have_tcgetattr+set}" = set; then
16011 echo $ECHO_N "(cached) $ECHO_C" >&6
16014 cat >conftest.$ac_ext <<_ACEOF
16015 #line 16015 "configure"
16016 #include "confdefs.h"
16018 #include <sys/types.h>
16019 #ifdef HAVE_UNISTD_H
16020 #include <unistd.h>
16022 #ifdef HAVE_TERMIOS_H
16023 #include <termios.h>
16024 #define TTY struct termios
16026 #ifdef HAVE_TERMIO_H
16027 #include <termio.h>
16028 #define TTY struct termio
16037 tcgetattr(1, &foo);
16042 rm -f conftest.$ac_objext conftest$ac_exeext
16043 if { (eval echo "$as_me:16043: \"$ac_link\"") >&5
16044 (eval $ac_link) 2>&5
16046 echo "$as_me:16046: \$? = $ac_status" >&5
16047 (exit $ac_status); } &&
16048 { ac_try='test -s conftest$ac_exeext'
16049 { (eval echo "$as_me:16049: \"$ac_try\"") >&5
16050 (eval $ac_try) 2>&5
16052 echo "$as_me:16052: \$? = $ac_status" >&5
16053 (exit $ac_status); }; }; then
16054 cf_cv_have_tcgetattr=yes
16056 echo "$as_me: failed program was:" >&5
16057 cat conftest.$ac_ext >&5
16058 cf_cv_have_tcgetattr=no
16060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16062 echo "$as_me:16062: result: $cf_cv_have_tcgetattr" >&5
16063 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
16064 test "$cf_cv_have_tcgetattr" = yes && cat >>confdefs.h <<\EOF
16065 #define HAVE_TCGETATTR 1
16068 echo "$as_me:16068: checking for vsscanf function or workaround" >&5
16069 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
16070 if test "${cf_cv_func_vsscanf+set}" = set; then
16071 echo $ECHO_N "(cached) $ECHO_C" >&6
16074 cat >conftest.$ac_ext <<_ACEOF
16075 #line 16075 "configure"
16076 #include "confdefs.h"
16078 #include <stdarg.h>
16085 vsscanf("from", "%d", ap)
16090 rm -f conftest.$ac_objext conftest$ac_exeext
16091 if { (eval echo "$as_me:16091: \"$ac_link\"") >&5
16092 (eval $ac_link) 2>&5
16094 echo "$as_me:16094: \$? = $ac_status" >&5
16095 (exit $ac_status); } &&
16096 { ac_try='test -s conftest$ac_exeext'
16097 { (eval echo "$as_me:16097: \"$ac_try\"") >&5
16098 (eval $ac_try) 2>&5
16100 echo "$as_me:16100: \$? = $ac_status" >&5
16101 (exit $ac_status); }; }; then
16102 cf_cv_func_vsscanf=vsscanf
16104 echo "$as_me: failed program was:" >&5
16105 cat conftest.$ac_ext >&5
16107 cat >conftest.$ac_ext <<_ACEOF
16108 #line 16108 "configure"
16109 #include "confdefs.h"
16111 #include <stdarg.h>
16118 char *str = "from";
16120 strbuf._flag = _IOREAD;
16121 strbuf._ptr = strbuf._base = (unsigned char *) str;
16122 strbuf._cnt = strlen(str);
16123 strbuf._file = _NFILE;
16124 return (vfscanf(&strbuf, "%d", ap))
16129 rm -f conftest.$ac_objext conftest$ac_exeext
16130 if { (eval echo "$as_me:16130: \"$ac_link\"") >&5
16131 (eval $ac_link) 2>&5
16133 echo "$as_me:16133: \$? = $ac_status" >&5
16134 (exit $ac_status); } &&
16135 { ac_try='test -s conftest$ac_exeext'
16136 { (eval echo "$as_me:16136: \"$ac_try\"") >&5
16137 (eval $ac_try) 2>&5
16139 echo "$as_me:16139: \$? = $ac_status" >&5
16140 (exit $ac_status); }; }; then
16141 cf_cv_func_vsscanf=vfscanf
16143 echo "$as_me: failed program was:" >&5
16144 cat conftest.$ac_ext >&5
16146 cat >conftest.$ac_ext <<_ACEOF
16147 #line 16147 "configure"
16148 #include "confdefs.h"
16150 #include <stdarg.h>
16157 char *str = "from";
16159 strbuf._flag = _IOREAD;
16160 strbuf._ptr = strbuf._base = (unsigned char *) str;
16161 strbuf._cnt = strlen(str);
16162 strbuf._file = _NFILE;
16163 return (_doscan(&strbuf, "%d", ap))
16168 rm -f conftest.$ac_objext conftest$ac_exeext
16169 if { (eval echo "$as_me:16169: \"$ac_link\"") >&5
16170 (eval $ac_link) 2>&5
16172 echo "$as_me:16172: \$? = $ac_status" >&5
16173 (exit $ac_status); } &&
16174 { ac_try='test -s conftest$ac_exeext'
16175 { (eval echo "$as_me:16175: \"$ac_try\"") >&5
16176 (eval $ac_try) 2>&5
16178 echo "$as_me:16178: \$? = $ac_status" >&5
16179 (exit $ac_status); }; }; then
16180 cf_cv_func_vsscanf=_doscan
16182 echo "$as_me: failed program was:" >&5
16183 cat conftest.$ac_ext >&5
16185 cf_cv_func_vsscanf=no
16187 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16189 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16191 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16193 echo "$as_me:16193: result: $cf_cv_func_vsscanf" >&5
16194 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
16196 case $cf_cv_func_vsscanf in #(vi
16197 vsscanf) cat >>confdefs.h <<\EOF
16198 #define HAVE_VSSCANF 1
16201 vfscanf) cat >>confdefs.h <<\EOF
16202 #define HAVE_VFSCANF 1
16205 _doscan) cat >>confdefs.h <<\EOF
16206 #define HAVE__DOSCAN 1
16211 echo "$as_me:16211: checking for working mkstemp" >&5
16212 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
16213 if test "${cf_cv_func_mkstemp+set}" = set; then
16214 echo $ECHO_N "(cached) $ECHO_C" >&6
16218 if test "$cross_compiling" = yes; then
16219 cf_cv_func_mkstemp=maybe
16221 cat >conftest.$ac_ext <<_ACEOF
16222 #line 16222 "configure"
16223 #include "confdefs.h"
16225 #include <sys/types.h>
16226 #include <stdlib.h>
16228 #include <string.h>
16229 #include <sys/stat.h>
16232 char *tmpl = "conftestXXXXXX";
16240 for (n = 0; n < 2; ++n) {
16241 strcpy(name[n], tmpl);
16242 if ((fd = mkstemp(name[n])) >= 0) {
16243 if (!strcmp(name[n], tmpl)
16244 || stat(name[n], &sb) != 0
16245 || (sb.st_mode & S_IFMT) != S_IFREG
16246 || (sb.st_mode & 077) != 0) {
16253 && !strcmp(name[0], name[1]))
16255 ${cf_cv_main_return:-return}(result);
16259 rm -f conftest$ac_exeext
16260 if { (eval echo "$as_me:16260: \"$ac_link\"") >&5
16261 (eval $ac_link) 2>&5
16263 echo "$as_me:16263: \$? = $ac_status" >&5
16264 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16265 { (eval echo "$as_me:16265: \"$ac_try\"") >&5
16266 (eval $ac_try) 2>&5
16268 echo "$as_me:16268: \$? = $ac_status" >&5
16269 (exit $ac_status); }; }; then
16270 cf_cv_func_mkstemp=yes
16273 echo "$as_me: program exited with status $ac_status" >&5
16274 echo "$as_me: failed program was:" >&5
16275 cat conftest.$ac_ext >&5
16276 cf_cv_func_mkstemp=no
16279 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16283 echo "$as_me:16283: result: $cf_cv_func_mkstemp" >&5
16284 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
16285 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
16286 echo "$as_me:16286: checking for mkstemp" >&5
16287 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
16288 if test "${ac_cv_func_mkstemp+set}" = set; then
16289 echo $ECHO_N "(cached) $ECHO_C" >&6
16291 cat >conftest.$ac_ext <<_ACEOF
16292 #line 16292 "configure"
16293 #include "confdefs.h"
16294 /* System header to define __stub macros and hopefully few prototypes,
16295 which can conflict with char mkstemp (); below. */
16296 #include <assert.h>
16297 /* Override any gcc2 internal prototype to avoid an error. */
16301 /* We use char because int might match the return type of a gcc2
16302 builtin and then its argument prototype would still apply. */
16309 /* The GNU C library defines this for functions which it implements
16310 to always fail with ENOSYS. Some functions are actually named
16311 something starting with __ and the normal name is an alias. */
16312 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
16322 rm -f conftest.$ac_objext conftest$ac_exeext
16323 if { (eval echo "$as_me:16323: \"$ac_link\"") >&5
16324 (eval $ac_link) 2>&5
16326 echo "$as_me:16326: \$? = $ac_status" >&5
16327 (exit $ac_status); } &&
16328 { ac_try='test -s conftest$ac_exeext'
16329 { (eval echo "$as_me:16329: \"$ac_try\"") >&5
16330 (eval $ac_try) 2>&5
16332 echo "$as_me:16332: \$? = $ac_status" >&5
16333 (exit $ac_status); }; }; then
16334 ac_cv_func_mkstemp=yes
16336 echo "$as_me: failed program was:" >&5
16337 cat conftest.$ac_ext >&5
16338 ac_cv_func_mkstemp=no
16340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16342 echo "$as_me:16342: result: $ac_cv_func_mkstemp" >&5
16343 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
16346 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
16347 cat >>confdefs.h <<\EOF
16348 #define HAVE_MKSTEMP 1
16353 # setup for prototype of fallback for vsscanf()
16355 if test "$cf_cv_func_vsscanf" = vsscanf ; then
16361 if test "$cross_compiling" = yes ; then
16362 { echo "$as_me:16362: WARNING: cross compiling: assume setvbuf params not reversed" >&5
16363 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
16365 echo "$as_me:16365: checking whether setvbuf arguments are reversed" >&5
16366 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
16367 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
16368 echo $ECHO_N "(cached) $ECHO_C" >&6
16370 if test "$cross_compiling" = yes; then
16371 { { echo "$as_me:16371: error: cannot run test program while cross compiling" >&5
16372 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16373 { (exit 1); exit 1; }; }
16375 cat >conftest.$ac_ext <<_ACEOF
16376 #line 16376 "configure"
16377 #include "confdefs.h"
16379 /* If setvbuf has the reversed format, exit 0. */
16383 /* This call has the arguments reversed.
16384 A reversed system may check and see that the address of main
16385 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
16386 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
16387 $ac_main_return(1);
16388 putc('\r', stdout);
16389 $ac_main_return(0); /* Non-reversed systems segv here. */
16392 rm -f conftest$ac_exeext
16393 if { (eval echo "$as_me:16393: \"$ac_link\"") >&5
16394 (eval $ac_link) 2>&5
16396 echo "$as_me:16396: \$? = $ac_status" >&5
16397 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16398 { (eval echo "$as_me:16398: \"$ac_try\"") >&5
16399 (eval $ac_try) 2>&5
16401 echo "$as_me:16401: \$? = $ac_status" >&5
16402 (exit $ac_status); }; }; then
16403 ac_cv_func_setvbuf_reversed=yes
16405 echo "$as_me: program exited with status $ac_status" >&5
16406 echo "$as_me: failed program was:" >&5
16407 cat conftest.$ac_ext >&5
16408 ac_cv_func_setvbuf_reversed=no
16410 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16412 rm -f core core.* *.core
16414 echo "$as_me:16414: result: $ac_cv_func_setvbuf_reversed" >&5
16415 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
16416 if test $ac_cv_func_setvbuf_reversed = yes; then
16418 cat >>confdefs.h <<\EOF
16419 #define SETVBUF_REVERSED 1
16425 echo "$as_me:16425: checking return type of signal handlers" >&5
16426 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
16427 if test "${ac_cv_type_signal+set}" = set; then
16428 echo $ECHO_N "(cached) $ECHO_C" >&6
16430 cat >conftest.$ac_ext <<_ACEOF
16431 #line 16431 "configure"
16432 #include "confdefs.h"
16433 #include <sys/types.h>
16434 #include <signal.h>
16439 extern "C" void (*signal (int, void (*)(int)))(int);
16441 void (*signal ()) ();
16452 rm -f conftest.$ac_objext
16453 if { (eval echo "$as_me:16453: \"$ac_compile\"") >&5
16454 (eval $ac_compile) 2>&5
16456 echo "$as_me:16456: \$? = $ac_status" >&5
16457 (exit $ac_status); } &&
16458 { ac_try='test -s conftest.$ac_objext'
16459 { (eval echo "$as_me:16459: \"$ac_try\"") >&5
16460 (eval $ac_try) 2>&5
16462 echo "$as_me:16462: \$? = $ac_status" >&5
16463 (exit $ac_status); }; }; then
16464 ac_cv_type_signal=void
16466 echo "$as_me: failed program was:" >&5
16467 cat conftest.$ac_ext >&5
16468 ac_cv_type_signal=int
16470 rm -f conftest.$ac_objext conftest.$ac_ext
16472 echo "$as_me:16472: result: $ac_cv_type_signal" >&5
16473 echo "${ECHO_T}$ac_cv_type_signal" >&6
16475 cat >>confdefs.h <<EOF
16476 #define RETSIGTYPE $ac_cv_type_signal
16479 echo "$as_me:16479: checking for intptr_t" >&5
16480 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
16481 if test "${ac_cv_type_intptr_t+set}" = set; then
16482 echo $ECHO_N "(cached) $ECHO_C" >&6
16484 cat >conftest.$ac_ext <<_ACEOF
16485 #line 16485 "configure"
16486 #include "confdefs.h"
16487 $ac_includes_default
16491 if ((intptr_t *) 0)
16493 if (sizeof (intptr_t))
16499 rm -f conftest.$ac_objext
16500 if { (eval echo "$as_me:16500: \"$ac_compile\"") >&5
16501 (eval $ac_compile) 2>&5
16503 echo "$as_me:16503: \$? = $ac_status" >&5
16504 (exit $ac_status); } &&
16505 { ac_try='test -s conftest.$ac_objext'
16506 { (eval echo "$as_me:16506: \"$ac_try\"") >&5
16507 (eval $ac_try) 2>&5
16509 echo "$as_me:16509: \$? = $ac_status" >&5
16510 (exit $ac_status); }; }; then
16511 ac_cv_type_intptr_t=yes
16513 echo "$as_me: failed program was:" >&5
16514 cat conftest.$ac_ext >&5
16515 ac_cv_type_intptr_t=no
16517 rm -f conftest.$ac_objext conftest.$ac_ext
16519 echo "$as_me:16519: result: $ac_cv_type_intptr_t" >&5
16520 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
16521 if test $ac_cv_type_intptr_t = yes; then
16525 cat >>confdefs.h <<EOF
16526 #define intptr_t long
16531 echo "$as_me:16531: checking for type sigaction_t" >&5
16532 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
16533 if test "${cf_cv_type_sigaction+set}" = set; then
16534 echo $ECHO_N "(cached) $ECHO_C" >&6
16537 cat >conftest.$ac_ext <<_ACEOF
16538 #line 16538 "configure"
16539 #include "confdefs.h"
16541 #include <signal.h>
16550 rm -f conftest.$ac_objext
16551 if { (eval echo "$as_me:16551: \"$ac_compile\"") >&5
16552 (eval $ac_compile) 2>&5
16554 echo "$as_me:16554: \$? = $ac_status" >&5
16555 (exit $ac_status); } &&
16556 { ac_try='test -s conftest.$ac_objext'
16557 { (eval echo "$as_me:16557: \"$ac_try\"") >&5
16558 (eval $ac_try) 2>&5
16560 echo "$as_me:16560: \$? = $ac_status" >&5
16561 (exit $ac_status); }; }; then
16562 cf_cv_type_sigaction=yes
16564 echo "$as_me: failed program was:" >&5
16565 cat conftest.$ac_ext >&5
16566 cf_cv_type_sigaction=no
16568 rm -f conftest.$ac_objext conftest.$ac_ext
16571 echo "$as_me:16571: result: $cf_cv_type_sigaction" >&5
16572 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
16573 test "$cf_cv_type_sigaction" = yes && cat >>confdefs.h <<\EOF
16574 #define HAVE_TYPE_SIGACTION 1
16577 echo "$as_me:16577: checking declaration of size-change" >&5
16578 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
16579 if test "${cf_cv_sizechange+set}" = set; then
16580 echo $ECHO_N "(cached) $ECHO_C" >&6
16583 cf_cv_sizechange=unknown
16584 cf_save_CPPFLAGS="$CPPFLAGS"
16586 for cf_opts in "" "NEED_PTEM_H"
16589 CPPFLAGS="$cf_save_CPPFLAGS"
16590 test -n "$cf_opts" && CPPFLAGS="$CPPFLAGS -D$cf_opts"
16591 cat >conftest.$ac_ext <<_ACEOF
16592 #line 16592 "configure"
16593 #include "confdefs.h"
16594 #include <sys/types.h>
16595 #ifdef HAVE_TERMIOS_H
16596 #include <termios.h>
16598 #ifdef HAVE_TERMIO_H
16599 #include <termio.h>
16603 /* This is a workaround for SCO: they neglected to define struct winsize in
16604 * termios.h -- it's only in termio.h and ptem.h
16606 #include <sys/stream.h>
16607 #include <sys/ptem.h>
16609 #if !defined(sun) || !defined(HAVE_TERMIOS_H)
16610 #include <sys/ioctl.h>
16618 struct ttysize win; /* FIXME: what system is this? */
16619 int y = win.ts_lines;
16620 int x = win.ts_cols;
16623 struct winsize win;
16624 int y = win.ws_row;
16625 int x = win.ws_col;
16627 no TIOCGSIZE or TIOCGWINSZ
16628 #endif /* TIOCGWINSZ */
16629 #endif /* TIOCGSIZE */
16635 rm -f conftest.$ac_objext
16636 if { (eval echo "$as_me:16636: \"$ac_compile\"") >&5
16637 (eval $ac_compile) 2>&5
16639 echo "$as_me:16639: \$? = $ac_status" >&5
16640 (exit $ac_status); } &&
16641 { ac_try='test -s conftest.$ac_objext'
16642 { (eval echo "$as_me:16642: \"$ac_try\"") >&5
16643 (eval $ac_try) 2>&5
16645 echo "$as_me:16645: \$? = $ac_status" >&5
16646 (exit $ac_status); }; }; then
16647 cf_cv_sizechange=yes
16649 echo "$as_me: failed program was:" >&5
16650 cat conftest.$ac_ext >&5
16651 cf_cv_sizechange=no
16653 rm -f conftest.$ac_objext conftest.$ac_ext
16655 CPPFLAGS="$cf_save_CPPFLAGS"
16656 if test "$cf_cv_sizechange" = yes ; then
16657 echo "size-change succeeded ($cf_opts)" >&5
16658 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
16664 echo "$as_me:16664: result: $cf_cv_sizechange" >&5
16665 echo "${ECHO_T}$cf_cv_sizechange" >&6
16666 if test "$cf_cv_sizechange" != no ; then
16667 cat >>confdefs.h <<\EOF
16668 #define HAVE_SIZECHANGE 1
16671 case $cf_cv_sizechange in #(vi
16673 cat >>confdefs.h <<EOF
16674 #define $cf_cv_sizechange 1
16681 echo "$as_me:16681: checking for memmove" >&5
16682 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
16683 if test "${ac_cv_func_memmove+set}" = set; then
16684 echo $ECHO_N "(cached) $ECHO_C" >&6
16686 cat >conftest.$ac_ext <<_ACEOF
16687 #line 16687 "configure"
16688 #include "confdefs.h"
16689 /* System header to define __stub macros and hopefully few prototypes,
16690 which can conflict with char memmove (); below. */
16691 #include <assert.h>
16692 /* Override any gcc2 internal prototype to avoid an error. */
16696 /* We use char because int might match the return type of a gcc2
16697 builtin and then its argument prototype would still apply. */
16704 /* The GNU C library defines this for functions which it implements
16705 to always fail with ENOSYS. Some functions are actually named
16706 something starting with __ and the normal name is an alias. */
16707 #if defined (__stub_memmove) || defined (__stub___memmove)
16717 rm -f conftest.$ac_objext conftest$ac_exeext
16718 if { (eval echo "$as_me:16718: \"$ac_link\"") >&5
16719 (eval $ac_link) 2>&5
16721 echo "$as_me:16721: \$? = $ac_status" >&5
16722 (exit $ac_status); } &&
16723 { ac_try='test -s conftest$ac_exeext'
16724 { (eval echo "$as_me:16724: \"$ac_try\"") >&5
16725 (eval $ac_try) 2>&5
16727 echo "$as_me:16727: \$? = $ac_status" >&5
16728 (exit $ac_status); }; }; then
16729 ac_cv_func_memmove=yes
16731 echo "$as_me: failed program was:" >&5
16732 cat conftest.$ac_ext >&5
16733 ac_cv_func_memmove=no
16735 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16737 echo "$as_me:16737: result: $ac_cv_func_memmove" >&5
16738 echo "${ECHO_T}$ac_cv_func_memmove" >&6
16739 if test $ac_cv_func_memmove = yes; then
16743 echo "$as_me:16743: checking for bcopy" >&5
16744 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
16745 if test "${ac_cv_func_bcopy+set}" = set; then
16746 echo $ECHO_N "(cached) $ECHO_C" >&6
16748 cat >conftest.$ac_ext <<_ACEOF
16749 #line 16749 "configure"
16750 #include "confdefs.h"
16751 /* System header to define __stub macros and hopefully few prototypes,
16752 which can conflict with char bcopy (); below. */
16753 #include <assert.h>
16754 /* Override any gcc2 internal prototype to avoid an error. */
16758 /* We use char because int might match the return type of a gcc2
16759 builtin and then its argument prototype would still apply. */
16766 /* The GNU C library defines this for functions which it implements
16767 to always fail with ENOSYS. Some functions are actually named
16768 something starting with __ and the normal name is an alias. */
16769 #if defined (__stub_bcopy) || defined (__stub___bcopy)
16779 rm -f conftest.$ac_objext conftest$ac_exeext
16780 if { (eval echo "$as_me:16780: \"$ac_link\"") >&5
16781 (eval $ac_link) 2>&5
16783 echo "$as_me:16783: \$? = $ac_status" >&5
16784 (exit $ac_status); } &&
16785 { ac_try='test -s conftest$ac_exeext'
16786 { (eval echo "$as_me:16786: \"$ac_try\"") >&5
16787 (eval $ac_try) 2>&5
16789 echo "$as_me:16789: \$? = $ac_status" >&5
16790 (exit $ac_status); }; }; then
16791 ac_cv_func_bcopy=yes
16793 echo "$as_me: failed program was:" >&5
16794 cat conftest.$ac_ext >&5
16795 ac_cv_func_bcopy=no
16797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16799 echo "$as_me:16799: result: $ac_cv_func_bcopy" >&5
16800 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
16801 if test $ac_cv_func_bcopy = yes; then
16803 echo "$as_me:16803: checking if bcopy does overlapping moves" >&5
16804 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
16805 if test "${cf_cv_good_bcopy+set}" = set; then
16806 echo $ECHO_N "(cached) $ECHO_C" >&6
16809 if test "$cross_compiling" = yes; then
16810 cf_cv_good_bcopy=unknown
16812 cat >conftest.$ac_ext <<_ACEOF
16813 #line 16813 "configure"
16814 #include "confdefs.h"
16817 static char data[] = "abcdefghijklmnopqrstuwwxyz";
16819 bcopy(data, temp, sizeof(data));
16820 bcopy(temp+10, temp, 15);
16821 bcopy(temp+5, temp+15, 10);
16822 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
16826 rm -f conftest$ac_exeext
16827 if { (eval echo "$as_me:16827: \"$ac_link\"") >&5
16828 (eval $ac_link) 2>&5
16830 echo "$as_me:16830: \$? = $ac_status" >&5
16831 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16832 { (eval echo "$as_me:16832: \"$ac_try\"") >&5
16833 (eval $ac_try) 2>&5
16835 echo "$as_me:16835: \$? = $ac_status" >&5
16836 (exit $ac_status); }; }; then
16837 cf_cv_good_bcopy=yes
16839 echo "$as_me: program exited with status $ac_status" >&5
16840 echo "$as_me: failed program was:" >&5
16841 cat conftest.$ac_ext >&5
16842 cf_cv_good_bcopy=no
16844 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16848 echo "$as_me:16848: result: $cf_cv_good_bcopy" >&5
16849 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
16852 cf_cv_good_bcopy=no
16855 if test "$cf_cv_good_bcopy" = yes ; then
16856 cat >>confdefs.h <<\EOF
16857 #define USE_OK_BCOPY 1
16861 cat >>confdefs.h <<\EOF
16862 #define USE_MY_MEMMOVE 1
16869 echo "$as_me:16869: checking if poll really works" >&5
16870 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
16871 if test "${cf_cv_working_poll+set}" = set; then
16872 echo $ECHO_N "(cached) $ECHO_C" >&6
16875 if test "$cross_compiling" = yes; then
16876 cf_cv_working_poll=unknown
16878 cat >conftest.$ac_ext <<_ACEOF
16879 #line 16879 "configure"
16880 #include "confdefs.h"
16886 #include <sys/poll.h>
16889 struct pollfd myfds;
16892 /* check for Darwin bug with respect to "devices" */
16893 myfds.fd = open("/dev/null", 1);
16896 myfds.events = POLLIN;
16899 ret = poll(&myfds, 1, 100);
16901 if (ret < 0 || (myfds.revents & POLLNVAL)) {
16905 /* also check with standard input */
16907 myfds.events = POLLIN;
16910 ret = poll(&myfds, 1, 100);
16915 ${cf_cv_main_return:-return}(ret != 0);
16918 rm -f conftest$ac_exeext
16919 if { (eval echo "$as_me:16919: \"$ac_link\"") >&5
16920 (eval $ac_link) 2>&5
16922 echo "$as_me:16922: \$? = $ac_status" >&5
16923 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16924 { (eval echo "$as_me:16924: \"$ac_try\"") >&5
16925 (eval $ac_try) 2>&5
16927 echo "$as_me:16927: \$? = $ac_status" >&5
16928 (exit $ac_status); }; }; then
16929 cf_cv_working_poll=yes
16931 echo "$as_me: program exited with status $ac_status" >&5
16932 echo "$as_me: failed program was:" >&5
16933 cat conftest.$ac_ext >&5
16934 cf_cv_working_poll=no
16936 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16939 echo "$as_me:16939: result: $cf_cv_working_poll" >&5
16940 echo "${ECHO_T}$cf_cv_working_poll" >&6
16941 test "$cf_cv_working_poll" = "yes" && cat >>confdefs.h <<\EOF
16942 #define HAVE_WORKING_POLL 1
16945 echo "$as_me:16945: checking for va_copy" >&5
16946 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
16947 if test "${cf_cv_have_va_copy+set}" = set; then
16948 echo $ECHO_N "(cached) $ECHO_C" >&6
16951 cat >conftest.$ac_ext <<_ACEOF
16952 #line 16952 "configure"
16953 #include "confdefs.h"
16955 #include <stdarg.h>
16961 static va_list dst;
16962 static va_list src;
16968 rm -f conftest.$ac_objext conftest$ac_exeext
16969 if { (eval echo "$as_me:16969: \"$ac_link\"") >&5
16970 (eval $ac_link) 2>&5
16972 echo "$as_me:16972: \$? = $ac_status" >&5
16973 (exit $ac_status); } &&
16974 { ac_try='test -s conftest$ac_exeext'
16975 { (eval echo "$as_me:16975: \"$ac_try\"") >&5
16976 (eval $ac_try) 2>&5
16978 echo "$as_me:16978: \$? = $ac_status" >&5
16979 (exit $ac_status); }; }; then
16980 cf_cv_have_va_copy=yes
16982 echo "$as_me: failed program was:" >&5
16983 cat conftest.$ac_ext >&5
16984 cf_cv_have_va_copy=no
16986 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16988 echo "$as_me:16988: result: $cf_cv_have_va_copy" >&5
16989 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
16991 test "$cf_cv_have_va_copy" = yes && cat >>confdefs.h <<\EOF
16992 #define HAVE_VA_COPY 1
16995 echo "$as_me:16995: checking for __va_copy" >&5
16996 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
16997 if test "${cf_cv_have___va_copy+set}" = set; then
16998 echo $ECHO_N "(cached) $ECHO_C" >&6
17001 cat >conftest.$ac_ext <<_ACEOF
17002 #line 17002 "configure"
17003 #include "confdefs.h"
17005 #include <stdarg.h>
17011 static va_list dst;
17012 static va_list src;
17013 __va_copy(dst, src)
17018 rm -f conftest.$ac_objext conftest$ac_exeext
17019 if { (eval echo "$as_me:17019: \"$ac_link\"") >&5
17020 (eval $ac_link) 2>&5
17022 echo "$as_me:17022: \$? = $ac_status" >&5
17023 (exit $ac_status); } &&
17024 { ac_try='test -s conftest$ac_exeext'
17025 { (eval echo "$as_me:17025: \"$ac_try\"") >&5
17026 (eval $ac_try) 2>&5
17028 echo "$as_me:17028: \$? = $ac_status" >&5
17029 (exit $ac_status); }; }; then
17030 cf_cv_have___va_copy=yes
17032 echo "$as_me: failed program was:" >&5
17033 cat conftest.$ac_ext >&5
17034 cf_cv_have___va_copy=no
17036 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17038 echo "$as_me:17038: result: $cf_cv_have___va_copy" >&5
17039 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
17041 test "$cf_cv_have___va_copy" = yes && cat >>confdefs.h <<\EOF
17042 #define HAVE___VA_COPY 1
17045 echo "$as_me:17045: checking for pid_t" >&5
17046 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17047 if test "${ac_cv_type_pid_t+set}" = set; then
17048 echo $ECHO_N "(cached) $ECHO_C" >&6
17050 cat >conftest.$ac_ext <<_ACEOF
17051 #line 17051 "configure"
17052 #include "confdefs.h"
17053 $ac_includes_default
17059 if (sizeof (pid_t))
17065 rm -f conftest.$ac_objext
17066 if { (eval echo "$as_me:17066: \"$ac_compile\"") >&5
17067 (eval $ac_compile) 2>&5
17069 echo "$as_me:17069: \$? = $ac_status" >&5
17070 (exit $ac_status); } &&
17071 { ac_try='test -s conftest.$ac_objext'
17072 { (eval echo "$as_me:17072: \"$ac_try\"") >&5
17073 (eval $ac_try) 2>&5
17075 echo "$as_me:17075: \$? = $ac_status" >&5
17076 (exit $ac_status); }; }; then
17077 ac_cv_type_pid_t=yes
17079 echo "$as_me: failed program was:" >&5
17080 cat conftest.$ac_ext >&5
17081 ac_cv_type_pid_t=no
17083 rm -f conftest.$ac_objext conftest.$ac_ext
17085 echo "$as_me:17085: result: $ac_cv_type_pid_t" >&5
17086 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17087 if test $ac_cv_type_pid_t = yes; then
17091 cat >>confdefs.h <<EOF
17097 for ac_header in unistd.h vfork.h
17099 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17100 echo "$as_me:17100: checking for $ac_header" >&5
17101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17103 echo $ECHO_N "(cached) $ECHO_C" >&6
17105 cat >conftest.$ac_ext <<_ACEOF
17106 #line 17106 "configure"
17107 #include "confdefs.h"
17108 #include <$ac_header>
17110 if { (eval echo "$as_me:17110: \"$ac_cpp conftest.$ac_ext\"") >&5
17111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17113 egrep -v '^ *\+' conftest.er1 >conftest.err
17115 cat conftest.err >&5
17116 echo "$as_me:17116: \$? = $ac_status" >&5
17117 (exit $ac_status); } >/dev/null; then
17118 if test -s conftest.err; then
17119 ac_cpp_err=$ac_c_preproc_warn_flag
17126 if test -z "$ac_cpp_err"; then
17127 eval "$as_ac_Header=yes"
17129 echo "$as_me: failed program was:" >&5
17130 cat conftest.$ac_ext >&5
17131 eval "$as_ac_Header=no"
17133 rm -f conftest.err conftest.$ac_ext
17135 echo "$as_me:17135: result: `eval echo '${'$as_ac_Header'}'`" >&5
17136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17137 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17138 cat >>confdefs.h <<EOF
17139 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17145 for ac_func in fork vfork
17147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17148 echo "$as_me:17148: checking for $ac_func" >&5
17149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17150 if eval "test \"\${$as_ac_var+set}\" = set"; then
17151 echo $ECHO_N "(cached) $ECHO_C" >&6
17153 cat >conftest.$ac_ext <<_ACEOF
17154 #line 17154 "configure"
17155 #include "confdefs.h"
17156 /* System header to define __stub macros and hopefully few prototypes,
17157 which can conflict with char $ac_func (); below. */
17158 #include <assert.h>
17159 /* Override any gcc2 internal prototype to avoid an error. */
17163 /* We use char because int might match the return type of a gcc2
17164 builtin and then its argument prototype would still apply. */
17171 /* The GNU C library defines this for functions which it implements
17172 to always fail with ENOSYS. Some functions are actually named
17173 something starting with __ and the normal name is an alias. */
17174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17184 rm -f conftest.$ac_objext conftest$ac_exeext
17185 if { (eval echo "$as_me:17185: \"$ac_link\"") >&5
17186 (eval $ac_link) 2>&5
17188 echo "$as_me:17188: \$? = $ac_status" >&5
17189 (exit $ac_status); } &&
17190 { ac_try='test -s conftest$ac_exeext'
17191 { (eval echo "$as_me:17191: \"$ac_try\"") >&5
17192 (eval $ac_try) 2>&5
17194 echo "$as_me:17194: \$? = $ac_status" >&5
17195 (exit $ac_status); }; }; then
17196 eval "$as_ac_var=yes"
17198 echo "$as_me: failed program was:" >&5
17199 cat conftest.$ac_ext >&5
17200 eval "$as_ac_var=no"
17202 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17204 echo "$as_me:17204: result: `eval echo '${'$as_ac_var'}'`" >&5
17205 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17206 if test `eval echo '${'$as_ac_var'}'` = yes; then
17207 cat >>confdefs.h <<EOF
17208 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17214 ac_cv_func_fork_works=$ac_cv_func_fork
17215 if test "x$ac_cv_func_fork" = xyes; then
17216 echo "$as_me:17216: checking for working fork" >&5
17217 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
17218 if test "${ac_cv_func_fork_works+set}" = set; then
17219 echo $ECHO_N "(cached) $ECHO_C" >&6
17221 if test "$cross_compiling" = yes; then
17222 ac_cv_func_fork_works=cross
17224 cat >conftest.$ac_ext <<_ACEOF
17225 /* By Rüdiger Kuhlmann. */
17226 #include <sys/types.h>
17228 # include <unistd.h>
17230 /* Some systems only have a dummy stub for fork() */
17234 $ac_main_return (1);
17235 $ac_main_return (0);
17238 rm -f conftest$ac_exeext
17239 if { (eval echo "$as_me:17239: \"$ac_link\"") >&5
17240 (eval $ac_link) 2>&5
17242 echo "$as_me:17242: \$? = $ac_status" >&5
17243 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17244 { (eval echo "$as_me:17244: \"$ac_try\"") >&5
17245 (eval $ac_try) 2>&5
17247 echo "$as_me:17247: \$? = $ac_status" >&5
17248 (exit $ac_status); }; }; then
17249 ac_cv_func_fork_works=yes
17251 echo "$as_me: program exited with status $ac_status" >&5
17252 echo "$as_me: failed program was:" >&5
17253 cat conftest.$ac_ext >&5
17254 ac_cv_func_fork_works=no
17256 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17259 echo "$as_me:17259: result: $ac_cv_func_fork_works" >&5
17260 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
17263 if test "x$ac_cv_func_fork_works" = xcross; then
17265 *-*-amigaos* | *-*-msdosdjgpp*)
17266 # Override, as these systems have only a dummy fork() stub
17267 ac_cv_func_fork_works=no
17270 ac_cv_func_fork_works=yes
17273 { echo "$as_me:17273: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
17274 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
17276 ac_cv_func_vfork_works=$ac_cv_func_vfork
17277 if test "x$ac_cv_func_vfork" = xyes; then
17278 echo "$as_me:17278: checking for working vfork" >&5
17279 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
17280 if test "${ac_cv_func_vfork_works+set}" = set; then
17281 echo $ECHO_N "(cached) $ECHO_C" >&6
17283 if test "$cross_compiling" = yes; then
17284 ac_cv_func_vfork_works=cross
17286 cat >conftest.$ac_ext <<_ACEOF
17287 #line 17287 "configure"
17288 #include "confdefs.h"
17289 /* Thanks to Paul Eggert for this test. */
17291 #include <sys/types.h>
17292 #include <sys/stat.h>
17294 # include <unistd.h>
17297 # include <vfork.h>
17299 /* On some sparc systems, changes by the child to local and incoming
17300 argument registers are propagated back to the parent. The compiler
17301 is told about this with #include <vfork.h>, but some compilers
17302 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17303 static variable whose address is put into a register that is
17304 clobbered by the vfork. */
17307 sparc_address_test (int arg)
17309 sparc_address_test (arg) int arg;
17312 static pid_t child;
17330 pid_t parent = getpid ();
17333 sparc_address_test ();
17338 /* Here is another test for sparc vfork register problems. This
17339 test uses lots of local variables, at least as many local
17340 variables as main has allocated so far including compiler
17341 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17342 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17343 reuse the register of parent for one of the local variables,
17344 since it will think that parent can't possibly be used any more
17345 in this routine. Assigning to the local variable will thus
17346 munge parent in the parent process. */
17348 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17349 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17350 /* Convince the compiler that p..p7 are live; otherwise, it might
17351 use the same hardware register for all 8 local variables. */
17352 if (p != p1 || p != p2 || p != p3 || p != p4
17353 || p != p5 || p != p6 || p != p7)
17356 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17357 from child file descriptors. If the child closes a descriptor
17358 before it execs or exits, this munges the parent's descriptor
17359 as well. Test for this by closing stdout in the child. */
17360 _exit(close(fileno(stdout)) != 0);
17365 while (wait(&status) != child)
17368 /* Was there some problem with vforking? */
17371 /* Did the child fail? (This shouldn't happen.) */
17374 /* Did the vfork/compiler bug occur? */
17375 || parent != getpid()
17377 /* Did the file descriptor bug occur? */
17378 || fstat(fileno(stdout), &st) != 0
17383 rm -f conftest$ac_exeext
17384 if { (eval echo "$as_me:17384: \"$ac_link\"") >&5
17385 (eval $ac_link) 2>&5
17387 echo "$as_me:17387: \$? = $ac_status" >&5
17388 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17389 { (eval echo "$as_me:17389: \"$ac_try\"") >&5
17390 (eval $ac_try) 2>&5
17392 echo "$as_me:17392: \$? = $ac_status" >&5
17393 (exit $ac_status); }; }; then
17394 ac_cv_func_vfork_works=yes
17396 echo "$as_me: program exited with status $ac_status" >&5
17397 echo "$as_me: failed program was:" >&5
17398 cat conftest.$ac_ext >&5
17399 ac_cv_func_vfork_works=no
17401 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17404 echo "$as_me:17404: result: $ac_cv_func_vfork_works" >&5
17405 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
17408 if test "x$ac_cv_func_fork_works" = xcross; then
17409 ac_cv_func_vfork_works=ac_cv_func_vfork
17410 { echo "$as_me:17410: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
17411 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
17414 if test "x$ac_cv_func_vfork_works" = xyes; then
17416 cat >>confdefs.h <<\EOF
17417 #define HAVE_WORKING_VFORK 1
17422 cat >>confdefs.h <<\EOF
17427 if test "x$ac_cv_func_fork_works" = xyes; then
17429 cat >>confdefs.h <<\EOF
17430 #define HAVE_WORKING_FORK 1
17435 # special check for test/ditto.c
17437 echo "$as_me:17437: checking for openpty in -lutil" >&5
17438 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
17439 if test "${ac_cv_lib_util_openpty+set}" = set; then
17440 echo $ECHO_N "(cached) $ECHO_C" >&6
17442 ac_check_lib_save_LIBS=$LIBS
17443 LIBS="-lutil $LIBS"
17444 cat >conftest.$ac_ext <<_ACEOF
17445 #line 17445 "configure"
17446 #include "confdefs.h"
17448 /* Override any gcc2 internal prototype to avoid an error. */
17452 /* We use char because int might match the return type of a gcc2
17453 builtin and then its argument prototype would still apply. */
17463 rm -f conftest.$ac_objext conftest$ac_exeext
17464 if { (eval echo "$as_me:17464: \"$ac_link\"") >&5
17465 (eval $ac_link) 2>&5
17467 echo "$as_me:17467: \$? = $ac_status" >&5
17468 (exit $ac_status); } &&
17469 { ac_try='test -s conftest$ac_exeext'
17470 { (eval echo "$as_me:17470: \"$ac_try\"") >&5
17471 (eval $ac_try) 2>&5
17473 echo "$as_me:17473: \$? = $ac_status" >&5
17474 (exit $ac_status); }; }; then
17475 ac_cv_lib_util_openpty=yes
17477 echo "$as_me: failed program was:" >&5
17478 cat conftest.$ac_ext >&5
17479 ac_cv_lib_util_openpty=no
17481 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17482 LIBS=$ac_check_lib_save_LIBS
17484 echo "$as_me:17484: result: $ac_cv_lib_util_openpty" >&5
17485 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
17486 if test $ac_cv_lib_util_openpty = yes; then
17492 echo "$as_me:17492: checking for openpty header" >&5
17493 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
17494 if test "${cf_cv_func_openpty+set}" = set; then
17495 echo $ECHO_N "(cached) $ECHO_C" >&6
17498 cf_save_LIBS="$LIBS"
17499 test $cf_cv_lib_util = yes && LIBS="-lutil $LIBS"
17500 for cf_header in pty.h libutil.h util.h
17502 cat >conftest.$ac_ext <<_ACEOF
17503 #line 17503 "configure"
17504 #include "confdefs.h"
17506 #include <$cf_header>
17512 int x = openpty((int *)0, (int *)0, (char *)0,
17513 (struct termios *)0, (struct winsize *)0);
17519 rm -f conftest.$ac_objext conftest$ac_exeext
17520 if { (eval echo "$as_me:17520: \"$ac_link\"") >&5
17521 (eval $ac_link) 2>&5
17523 echo "$as_me:17523: \$? = $ac_status" >&5
17524 (exit $ac_status); } &&
17525 { ac_try='test -s conftest$ac_exeext'
17526 { (eval echo "$as_me:17526: \"$ac_try\"") >&5
17527 (eval $ac_try) 2>&5
17529 echo "$as_me:17529: \$? = $ac_status" >&5
17530 (exit $ac_status); }; }; then
17532 cf_cv_func_openpty=$cf_header
17536 echo "$as_me: failed program was:" >&5
17537 cat conftest.$ac_ext >&5
17539 cf_cv_func_openpty=no
17542 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17544 LIBS="$cf_save_LIBS"
17547 echo "$as_me:17547: result: $cf_cv_func_openpty" >&5
17548 echo "${ECHO_T}$cf_cv_func_openpty" >&6
17550 if test "$cf_cv_func_openpty" != no ; then
17551 cat >>confdefs.h <<EOF
17552 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
17555 cat >>confdefs.h <<\EOF
17556 #define USE_XTERM_PTY 1
17559 if test "$cf_cv_lib_util" = yes ; then
17560 TEST_LIBS="-lutil $TEST_LIBS"
17564 if test "$with_hashed_db" != no ; then
17565 cat >>confdefs.h <<\EOF
17566 #define USE_HASHED_DB 1
17569 case $with_hashed_db in #(vi
17573 if test -d "$with_hashed_db" ; then
17575 if test -n "$with_hashed_db/include" ; then
17576 for cf_add_incdir in $with_hashed_db/include
17578 while test $cf_add_incdir != /usr/include
17580 if test -d $cf_add_incdir
17583 if test -n "$CFLAGS$CPPFLAGS" ; then
17584 # a loop is needed to ensure we can add subdirs of existing dirs
17585 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
17586 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
17587 cf_have_incdir=yes; break
17592 if test "$cf_have_incdir" = no ; then
17593 if test "$cf_add_incdir" = /usr/local/include ; then
17594 if test "$GCC" = yes
17596 cf_save_CPPFLAGS=$CPPFLAGS
17597 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
17598 cat >conftest.$ac_ext <<_ACEOF
17599 #line 17599 "configure"
17600 #include "confdefs.h"
17610 rm -f conftest.$ac_objext
17611 if { (eval echo "$as_me:17611: \"$ac_compile\"") >&5
17612 (eval $ac_compile) 2>&5
17614 echo "$as_me:17614: \$? = $ac_status" >&5
17615 (exit $ac_status); } &&
17616 { ac_try='test -s conftest.$ac_objext'
17617 { (eval echo "$as_me:17617: \"$ac_try\"") >&5
17618 (eval $ac_try) 2>&5
17620 echo "$as_me:17620: \$? = $ac_status" >&5
17621 (exit $ac_status); }; }; then
17624 echo "$as_me: failed program was:" >&5
17625 cat conftest.$ac_ext >&5
17628 rm -f conftest.$ac_objext conftest.$ac_ext
17629 CPPFLAGS=$cf_save_CPPFLAGS
17634 if test "$cf_have_incdir" = no ; then
17635 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
17637 echo "${as_me:-configure}:17637: testing adding $cf_add_incdir to include-path ..." 1>&5
17639 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
17641 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
17642 test "$cf_top_incdir" = "$cf_add_incdir" && break
17643 cf_add_incdir="$cf_top_incdir"
17652 if test -n "$with_hashed_db/lib" ; then
17653 for cf_add_libdir in $with_hashed_db/lib
17655 if test $cf_add_libdir = /usr/lib ; then
17657 elif test -d $cf_add_libdir
17660 if test -n "$LDFLAGS$LIBS" ; then
17661 # a loop is needed to ensure we can add subdirs of existing dirs
17662 for cf_test_libdir in $LDFLAGS $LIBS ; do
17663 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
17664 cf_have_libdir=yes; break
17668 if test "$cf_have_libdir" = no ; then
17669 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
17671 echo "${as_me:-configure}:17671: testing adding $cf_add_libdir to library-path ..." 1>&5
17673 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
17682 echo "$as_me:17682: checking for db.h" >&5
17683 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
17684 if test "${ac_cv_header_db_h+set}" = set; then
17685 echo $ECHO_N "(cached) $ECHO_C" >&6
17687 cat >conftest.$ac_ext <<_ACEOF
17688 #line 17688 "configure"
17689 #include "confdefs.h"
17692 if { (eval echo "$as_me:17692: \"$ac_cpp conftest.$ac_ext\"") >&5
17693 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17695 egrep -v '^ *\+' conftest.er1 >conftest.err
17697 cat conftest.err >&5
17698 echo "$as_me:17698: \$? = $ac_status" >&5
17699 (exit $ac_status); } >/dev/null; then
17700 if test -s conftest.err; then
17701 ac_cpp_err=$ac_c_preproc_warn_flag
17708 if test -z "$ac_cpp_err"; then
17709 ac_cv_header_db_h=yes
17711 echo "$as_me: failed program was:" >&5
17712 cat conftest.$ac_ext >&5
17713 ac_cv_header_db_h=no
17715 rm -f conftest.err conftest.$ac_ext
17717 echo "$as_me:17717: result: $ac_cv_header_db_h" >&5
17718 echo "${ECHO_T}$ac_cv_header_db_h" >&6
17719 if test $ac_cv_header_db_h = yes; then
17721 echo "$as_me:17721: checking for version of db" >&5
17722 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
17723 if test "${cf_cv_hashed_db_version+set}" = set; then
17724 echo $ECHO_N "(cached) $ECHO_C" >&6
17727 cf_cv_hashed_db_version=unknown
17729 for cf_db_version in 1 2 3 4 5
17732 echo "${as_me:-configure}:17732: testing checking for db version $cf_db_version ..." 1>&5
17734 cat >conftest.$ac_ext <<_ACEOF
17735 #line 17735 "configure"
17736 #include "confdefs.h"
17738 $ac_includes_default
17741 #ifdef DB_VERSION_MAJOR
17742 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
17743 #if $cf_db_version == DB_VERSION_MAJOR
17749 #if $cf_db_version == 1
17750 /* ok: assuming this is DB 1.8.5 */
17764 rm -f conftest.$ac_objext
17765 if { (eval echo "$as_me:17765: \"$ac_compile\"") >&5
17766 (eval $ac_compile) 2>&5
17768 echo "$as_me:17768: \$? = $ac_status" >&5
17769 (exit $ac_status); } &&
17770 { ac_try='test -s conftest.$ac_objext'
17771 { (eval echo "$as_me:17771: \"$ac_try\"") >&5
17772 (eval $ac_try) 2>&5
17774 echo "$as_me:17774: \$? = $ac_status" >&5
17775 (exit $ac_status); }; }; then
17777 cf_cv_hashed_db_version=$cf_db_version
17781 echo "$as_me: failed program was:" >&5
17782 cat conftest.$ac_ext >&5
17784 rm -f conftest.$ac_objext conftest.$ac_ext
17788 echo "$as_me:17788: result: $cf_cv_hashed_db_version" >&5
17789 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
17791 if test "$cf_cv_hashed_db_version" = unknown ; then
17792 { { echo "$as_me:17792: error: Cannot determine version of db" >&5
17793 echo "$as_me: error: Cannot determine version of db" >&2;}
17794 { (exit 1); exit 1; }; }
17797 echo "$as_me:17797: checking for db libraries" >&5
17798 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
17799 if test "${cf_cv_hashed_db_libs+set}" = set; then
17800 echo $ECHO_N "(cached) $ECHO_C" >&6
17803 cf_cv_hashed_db_libs=unknown
17804 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
17806 cf_save_libs="$LIBS"
17807 if test -n "$cf_db_libs"; then
17808 LIBS="-l$cf_db_libs $LIBS"
17811 echo "${as_me:-configure}:17811: testing checking for library "$cf_db_libs" ..." 1>&5
17813 cat >conftest.$ac_ext <<_ACEOF
17814 #line 17814 "configure"
17815 #include "confdefs.h"
17817 $ac_includes_default
17824 char *path = "/tmp/foo";
17825 #ifdef DB_VERSION_MAJOR
17826 #if DB_VERSION_MAJOR >= 4
17828 db_create(&result, NULL, 0);
17829 result->open(result,
17836 #elif DB_VERSION_MAJOR >= 3
17838 db_create(&result, NULL, 0);
17839 result->open(result,
17845 #elif DB_VERSION_MAJOR >= 2
17854 #endif /* DB_VERSION_MAJOR */
17856 DB *result = dbopen(path,
17862 ${cf_cv_main_return:-return}(result != 0)
17868 rm -f conftest.$ac_objext conftest$ac_exeext
17869 if { (eval echo "$as_me:17869: \"$ac_link\"") >&5
17870 (eval $ac_link) 2>&5
17872 echo "$as_me:17872: \$? = $ac_status" >&5
17873 (exit $ac_status); } &&
17874 { ac_try='test -s conftest$ac_exeext'
17875 { (eval echo "$as_me:17875: \"$ac_try\"") >&5
17876 (eval $ac_try) 2>&5
17878 echo "$as_me:17878: \$? = $ac_status" >&5
17879 (exit $ac_status); }; }; then
17881 if test -n "$cf_db_libs" ; then
17882 cf_cv_hashed_db_libs=$cf_db_libs
17884 cf_cv_hashed_db_libs=default
17886 LIBS="$cf_save_libs"
17890 echo "$as_me: failed program was:" >&5
17891 cat conftest.$ac_ext >&5
17893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17894 LIBS="$cf_save_libs"
17898 echo "$as_me:17898: result: $cf_cv_hashed_db_libs" >&5
17899 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
17901 if test "$cf_cv_hashed_db_libs" = unknown ; then
17902 { { echo "$as_me:17902: error: Cannot determine library for db" >&5
17903 echo "$as_me: error: Cannot determine library for db" >&2;}
17904 { (exit 1); exit 1; }; }
17905 elif test "$cf_cv_hashed_db_libs" != default ; then
17906 LIBS="-l$cf_cv_hashed_db_libs $LIBS"
17912 { { echo "$as_me:17912: error: Cannot find db.h" >&5
17913 echo "$as_me: error: Cannot find db.h" >&2;}
17914 { (exit 1); exit 1; }; }
17920 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
17921 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
17922 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
17925 # Just in case, check if the C compiler has a bool type.
17927 echo "$as_me:17927: checking if we should include stdbool.h" >&5
17928 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
17930 if test "${cf_cv_header_stdbool_h+set}" = set; then
17931 echo $ECHO_N "(cached) $ECHO_C" >&6
17934 cat >conftest.$ac_ext <<_ACEOF
17935 #line 17935 "configure"
17936 #include "confdefs.h"
17946 rm -f conftest.$ac_objext
17947 if { (eval echo "$as_me:17947: \"$ac_compile\"") >&5
17948 (eval $ac_compile) 2>&5
17950 echo "$as_me:17950: \$? = $ac_status" >&5
17951 (exit $ac_status); } &&
17952 { ac_try='test -s conftest.$ac_objext'
17953 { (eval echo "$as_me:17953: \"$ac_try\"") >&5
17954 (eval $ac_try) 2>&5
17956 echo "$as_me:17956: \$? = $ac_status" >&5
17957 (exit $ac_status); }; }; then
17958 cf_cv_header_stdbool_h=0
17960 echo "$as_me: failed program was:" >&5
17961 cat conftest.$ac_ext >&5
17962 cat >conftest.$ac_ext <<_ACEOF
17963 #line 17963 "configure"
17964 #include "confdefs.h"
17967 #include <stdbool.h>
17978 rm -f conftest.$ac_objext
17979 if { (eval echo "$as_me:17979: \"$ac_compile\"") >&5
17980 (eval $ac_compile) 2>&5
17982 echo "$as_me:17982: \$? = $ac_status" >&5
17983 (exit $ac_status); } &&
17984 { ac_try='test -s conftest.$ac_objext'
17985 { (eval echo "$as_me:17985: \"$ac_try\"") >&5
17986 (eval $ac_try) 2>&5
17988 echo "$as_me:17988: \$? = $ac_status" >&5
17989 (exit $ac_status); }; }; then
17990 cf_cv_header_stdbool_h=1
17992 echo "$as_me: failed program was:" >&5
17993 cat conftest.$ac_ext >&5
17994 cf_cv_header_stdbool_h=0
17996 rm -f conftest.$ac_objext conftest.$ac_ext
17998 rm -f conftest.$ac_objext conftest.$ac_ext
18001 if test "$cf_cv_header_stdbool_h" = 1
18002 then echo "$as_me:18002: result: yes" >&5
18003 echo "${ECHO_T}yes" >&6
18004 else echo "$as_me:18004: result: no" >&5
18005 echo "${ECHO_T}no" >&6
18008 echo "$as_me:18008: checking for builtin bool type" >&5
18009 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
18011 if test "${cf_cv_cc_bool_type+set}" = set; then
18012 echo $ECHO_N "(cached) $ECHO_C" >&6
18015 cat >conftest.$ac_ext <<_ACEOF
18016 #line 18016 "configure"
18017 #include "confdefs.h"
18020 #include <sys/types.h>
18030 rm -f conftest.$ac_objext
18031 if { (eval echo "$as_me:18031: \"$ac_compile\"") >&5
18032 (eval $ac_compile) 2>&5
18034 echo "$as_me:18034: \$? = $ac_status" >&5
18035 (exit $ac_status); } &&
18036 { ac_try='test -s conftest.$ac_objext'
18037 { (eval echo "$as_me:18037: \"$ac_try\"") >&5
18038 (eval $ac_try) 2>&5
18040 echo "$as_me:18040: \$? = $ac_status" >&5
18041 (exit $ac_status); }; }; then
18042 cf_cv_cc_bool_type=1
18044 echo "$as_me: failed program was:" >&5
18045 cat conftest.$ac_ext >&5
18046 cf_cv_cc_bool_type=0
18048 rm -f conftest.$ac_objext conftest.$ac_ext
18052 if test "$cf_cv_cc_bool_type" = 1
18053 then echo "$as_me:18053: result: yes" >&5
18054 echo "${ECHO_T}yes" >&6
18055 else echo "$as_me:18055: result: no" >&5
18056 echo "${ECHO_T}no" >&6
18059 # Check for C++ compiler characteristics (and ensure that it's there!)
18060 if test -n "$CXX" ; then
18062 ac_cpp='$CXXCPP $CPPFLAGS'
18063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18066 ac_main_return=return
18068 if test -n "$GXX" ; then
18069 case $cf_cv_system_name in #(vi
18071 cf_stdcpp_libname=stdcpp
18074 cf_stdcpp_libname=stdc++
18077 echo "$as_me:18077: checking for library $cf_stdcpp_libname" >&5
18078 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
18079 if test "${cf_cv_libstdcpp+set}" = set; then
18080 echo $ECHO_N "(cached) $ECHO_C" >&6
18084 LIBS="-l$cf_stdcpp_libname $LIBS"
18085 cat >conftest.$ac_ext <<_ACEOF
18086 #line 18086 "configure"
18087 #include "confdefs.h"
18089 #include <strstream.h>
18095 strstreambuf foo(buf, sizeof(buf))
18101 rm -f conftest.$ac_objext conftest$ac_exeext
18102 if { (eval echo "$as_me:18102: \"$ac_link\"") >&5
18103 (eval $ac_link) 2>&5
18105 echo "$as_me:18105: \$? = $ac_status" >&5
18106 (exit $ac_status); } &&
18107 { ac_try='test -s conftest$ac_exeext'
18108 { (eval echo "$as_me:18108: \"$ac_try\"") >&5
18109 (eval $ac_try) 2>&5
18111 echo "$as_me:18111: \$? = $ac_status" >&5
18112 (exit $ac_status); }; }; then
18113 cf_cv_libstdcpp=yes
18115 echo "$as_me: failed program was:" >&5
18116 cat conftest.$ac_ext >&5
18119 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18123 echo "$as_me:18123: result: $cf_cv_libstdcpp" >&5
18124 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
18125 test "$cf_cv_libstdcpp" = yes && CXXLIBS="-l$cf_stdcpp_libname $CXXLIBS"
18128 echo "$as_me:18128: checking whether $CXX understands -c and -o together" >&5
18129 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
18130 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
18131 echo $ECHO_N "(cached) $ECHO_C" >&6
18134 cat > conftest.$ac_ext <<CF_EOF
18138 ${cf_cv_main_return:-return}(0);
18141 # We do the test twice because some compilers refuse to overwrite an
18142 # existing .o file with -o, though they will create one.
18143 ac_try='$CXX -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
18144 if { (eval echo "$as_me:18144: \"$ac_try\"") >&5
18145 (eval $ac_try) 2>&5
18147 echo "$as_me:18147: \$? = $ac_status" >&5
18148 (exit $ac_status); } &&
18149 test -f conftest2.$ac_objext && { (eval echo "$as_me:18149: \"$ac_try\"") >&5
18150 (eval $ac_try) 2>&5
18152 echo "$as_me:18152: \$? = $ac_status" >&5
18153 (exit $ac_status); };
18155 eval cf_cv_prog_CXX_c_o=yes
18157 eval cf_cv_prog_CXX_c_o=no
18162 if test $cf_cv_prog_CXX_c_o = yes; then
18163 echo "$as_me:18163: result: yes" >&5
18164 echo "${ECHO_T}yes" >&6
18166 echo "$as_me:18166: result: no" >&5
18167 echo "${ECHO_T}no" >&6
18170 case $GXX_VERSION in
18176 cf_cxx_library=unknown
18177 case $cf_cv_system_name in #(vi
18185 if test "$GXX" = yes; then
18186 echo "$as_me:18186: checking for lib$cf_gpp_libname" >&5
18187 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
18189 LIBS="-l$cf_gpp_libname $LIBS"
18190 cat >conftest.$ac_ext <<_ACEOF
18191 #line 18191 "configure"
18192 #include "confdefs.h"
18194 #include <$cf_gpp_libname/builtin.h>
18199 two_arg_error_handler_t foo2 = lib_error_handler
18204 rm -f conftest.$ac_objext conftest$ac_exeext
18205 if { (eval echo "$as_me:18205: \"$ac_link\"") >&5
18206 (eval $ac_link) 2>&5
18208 echo "$as_me:18208: \$? = $ac_status" >&5
18209 (exit $ac_status); } &&
18210 { ac_try='test -s conftest$ac_exeext'
18211 { (eval echo "$as_me:18211: \"$ac_try\"") >&5
18212 (eval $ac_try) 2>&5
18214 echo "$as_me:18214: \$? = $ac_status" >&5
18215 (exit $ac_status); }; }; then
18217 CXXLIBS="-l$cf_gpp_libname $CXXLIBS"
18218 if test "$cf_gpp_libname" = cpp ; then
18219 cat >>confdefs.h <<\EOF
18220 #define HAVE_GPP_BUILTIN_H 1
18224 cat >>confdefs.h <<\EOF
18225 #define HAVE_GXX_BUILTIN_H 1
18230 echo "$as_me: failed program was:" >&5
18231 cat conftest.$ac_ext >&5
18232 cat >conftest.$ac_ext <<_ACEOF
18233 #line 18233 "configure"
18234 #include "confdefs.h"
18236 #include <builtin.h>
18241 two_arg_error_handler_t foo2 = lib_error_handler
18246 rm -f conftest.$ac_objext conftest$ac_exeext
18247 if { (eval echo "$as_me:18247: \"$ac_link\"") >&5
18248 (eval $ac_link) 2>&5
18250 echo "$as_me:18250: \$? = $ac_status" >&5
18251 (exit $ac_status); } &&
18252 { ac_try='test -s conftest$ac_exeext'
18253 { (eval echo "$as_me:18253: \"$ac_try\"") >&5
18254 (eval $ac_try) 2>&5
18256 echo "$as_me:18256: \$? = $ac_status" >&5
18257 (exit $ac_status); }; }; then
18259 CXXLIBS="-l$cf_gpp_libname $CXXLIBS"
18260 cat >>confdefs.h <<\EOF
18261 #define HAVE_BUILTIN_H 1
18265 echo "$as_me: failed program was:" >&5
18266 cat conftest.$ac_ext >&5
18269 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18271 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18273 echo "$as_me:18273: result: $cf_cxx_library" >&5
18274 echo "${ECHO_T}$cf_cxx_library" >&6
18284 ac_cpp='$CXXCPP $CPPFLAGS'
18285 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18286 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18287 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18288 ac_main_return=return
18289 echo "$as_me:18289: checking how to run the C++ preprocessor" >&5
18290 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
18291 if test -z "$CXXCPP"; then
18292 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18293 echo $ECHO_N "(cached) $ECHO_C" >&6
18295 # Double quotes because CXXCPP needs to be expanded
18296 for CXXCPP in "$CXX -E" "/lib/cpp"
18298 ac_preproc_ok=false
18299 for ac_cxx_preproc_warn_flag in '' yes
18301 # Use a header file that comes with gcc, so configuring glibc
18302 # with a fresh cross-compiler works.
18303 # On the NeXT, cc -E runs the code through the compiler's parser,
18304 # not just through cpp. "Syntax error" is here to catch this case.
18305 cat >conftest.$ac_ext <<_ACEOF
18306 #line 18306 "configure"
18307 #include "confdefs.h"
18308 #include <assert.h>
18311 if { (eval echo "$as_me:18311: \"$ac_cpp conftest.$ac_ext\"") >&5
18312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18314 egrep -v '^ *\+' conftest.er1 >conftest.err
18316 cat conftest.err >&5
18317 echo "$as_me:18317: \$? = $ac_status" >&5
18318 (exit $ac_status); } >/dev/null; then
18319 if test -s conftest.err; then
18320 ac_cpp_err=$ac_cxx_preproc_warn_flag
18327 if test -z "$ac_cpp_err"; then
18330 echo "$as_me: failed program was:" >&5
18331 cat conftest.$ac_ext >&5
18332 # Broken: fails on valid input.
18335 rm -f conftest.err conftest.$ac_ext
18337 # OK, works on sane cases. Now check whether non-existent headers
18338 # can be detected and how.
18339 cat >conftest.$ac_ext <<_ACEOF
18340 #line 18340 "configure"
18341 #include "confdefs.h"
18342 #include <ac_nonexistent.h>
18344 if { (eval echo "$as_me:18344: \"$ac_cpp conftest.$ac_ext\"") >&5
18345 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18347 egrep -v '^ *\+' conftest.er1 >conftest.err
18349 cat conftest.err >&5
18350 echo "$as_me:18350: \$? = $ac_status" >&5
18351 (exit $ac_status); } >/dev/null; then
18352 if test -s conftest.err; then
18353 ac_cpp_err=$ac_cxx_preproc_warn_flag
18360 if test -z "$ac_cpp_err"; then
18361 # Broken: success on invalid input.
18364 echo "$as_me: failed program was:" >&5
18365 cat conftest.$ac_ext >&5
18366 # Passes both tests.
18370 rm -f conftest.err conftest.$ac_ext
18373 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18374 rm -f conftest.err conftest.$ac_ext
18375 if $ac_preproc_ok; then
18380 ac_cv_prog_CXXCPP=$CXXCPP
18383 CXXCPP=$ac_cv_prog_CXXCPP
18385 ac_cv_prog_CXXCPP=$CXXCPP
18387 echo "$as_me:18387: result: $CXXCPP" >&5
18388 echo "${ECHO_T}$CXXCPP" >&6
18389 ac_preproc_ok=false
18390 for ac_cxx_preproc_warn_flag in '' yes
18392 # Use a header file that comes with gcc, so configuring glibc
18393 # with a fresh cross-compiler works.
18394 # On the NeXT, cc -E runs the code through the compiler's parser,
18395 # not just through cpp. "Syntax error" is here to catch this case.
18396 cat >conftest.$ac_ext <<_ACEOF
18397 #line 18397 "configure"
18398 #include "confdefs.h"
18399 #include <assert.h>
18402 if { (eval echo "$as_me:18402: \"$ac_cpp conftest.$ac_ext\"") >&5
18403 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18405 egrep -v '^ *\+' conftest.er1 >conftest.err
18407 cat conftest.err >&5
18408 echo "$as_me:18408: \$? = $ac_status" >&5
18409 (exit $ac_status); } >/dev/null; then
18410 if test -s conftest.err; then
18411 ac_cpp_err=$ac_cxx_preproc_warn_flag
18418 if test -z "$ac_cpp_err"; then
18421 echo "$as_me: failed program was:" >&5
18422 cat conftest.$ac_ext >&5
18423 # Broken: fails on valid input.
18426 rm -f conftest.err conftest.$ac_ext
18428 # OK, works on sane cases. Now check whether non-existent headers
18429 # can be detected and how.
18430 cat >conftest.$ac_ext <<_ACEOF
18431 #line 18431 "configure"
18432 #include "confdefs.h"
18433 #include <ac_nonexistent.h>
18435 if { (eval echo "$as_me:18435: \"$ac_cpp conftest.$ac_ext\"") >&5
18436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18438 egrep -v '^ *\+' conftest.er1 >conftest.err
18440 cat conftest.err >&5
18441 echo "$as_me:18441: \$? = $ac_status" >&5
18442 (exit $ac_status); } >/dev/null; then
18443 if test -s conftest.err; then
18444 ac_cpp_err=$ac_cxx_preproc_warn_flag
18451 if test -z "$ac_cpp_err"; then
18452 # Broken: success on invalid input.
18455 echo "$as_me: failed program was:" >&5
18456 cat conftest.$ac_ext >&5
18457 # Passes both tests.
18461 rm -f conftest.err conftest.$ac_ext
18464 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18465 rm -f conftest.err conftest.$ac_ext
18466 if $ac_preproc_ok; then
18469 { { echo "$as_me:18469: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
18470 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
18471 { (exit 1); exit 1; }; }
18475 ac_cpp='$CXXCPP $CPPFLAGS'
18476 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18477 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18478 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18479 ac_main_return=return
18481 for ac_header in typeinfo
18483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18484 echo "$as_me:18484: checking for $ac_header" >&5
18485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18487 echo $ECHO_N "(cached) $ECHO_C" >&6
18489 cat >conftest.$ac_ext <<_ACEOF
18490 #line 18490 "configure"
18491 #include "confdefs.h"
18492 #include <$ac_header>
18494 if { (eval echo "$as_me:18494: \"$ac_cpp conftest.$ac_ext\"") >&5
18495 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18497 egrep -v '^ *\+' conftest.er1 >conftest.err
18499 cat conftest.err >&5
18500 echo "$as_me:18500: \$? = $ac_status" >&5
18501 (exit $ac_status); } >/dev/null; then
18502 if test -s conftest.err; then
18503 ac_cpp_err=$ac_cxx_preproc_warn_flag
18510 if test -z "$ac_cpp_err"; then
18511 eval "$as_ac_Header=yes"
18513 echo "$as_me: failed program was:" >&5
18514 cat conftest.$ac_ext >&5
18515 eval "$as_ac_Header=no"
18517 rm -f conftest.err conftest.$ac_ext
18519 echo "$as_me:18519: result: `eval echo '${'$as_ac_Header'}'`" >&5
18520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18522 cat >>confdefs.h <<EOF
18523 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18529 for ac_header in iostream
18531 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18532 echo "$as_me:18532: checking for $ac_header" >&5
18533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18535 echo $ECHO_N "(cached) $ECHO_C" >&6
18537 cat >conftest.$ac_ext <<_ACEOF
18538 #line 18538 "configure"
18539 #include "confdefs.h"
18540 #include <$ac_header>
18542 if { (eval echo "$as_me:18542: \"$ac_cpp conftest.$ac_ext\"") >&5
18543 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18545 egrep -v '^ *\+' conftest.er1 >conftest.err
18547 cat conftest.err >&5
18548 echo "$as_me:18548: \$? = $ac_status" >&5
18549 (exit $ac_status); } >/dev/null; then
18550 if test -s conftest.err; then
18551 ac_cpp_err=$ac_cxx_preproc_warn_flag
18558 if test -z "$ac_cpp_err"; then
18559 eval "$as_ac_Header=yes"
18561 echo "$as_me: failed program was:" >&5
18562 cat conftest.$ac_ext >&5
18563 eval "$as_ac_Header=no"
18565 rm -f conftest.err conftest.$ac_ext
18567 echo "$as_me:18567: result: `eval echo '${'$as_ac_Header'}'`" >&5
18568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18569 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18570 cat >>confdefs.h <<EOF
18571 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18577 if test x"$ac_cv_header_iostream" = xyes ; then
18578 echo "$as_me:18578: checking if iostream uses std-namespace" >&5
18579 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
18580 cat >conftest.$ac_ext <<_ACEOF
18581 #line 18581 "configure"
18582 #include "confdefs.h"
18584 #include <iostream>
18591 cerr << "testing" << endl;
18597 rm -f conftest.$ac_objext
18598 if { (eval echo "$as_me:18598: \"$ac_compile\"") >&5
18599 (eval $ac_compile) 2>&5
18601 echo "$as_me:18601: \$? = $ac_status" >&5
18602 (exit $ac_status); } &&
18603 { ac_try='test -s conftest.$ac_objext'
18604 { (eval echo "$as_me:18604: \"$ac_try\"") >&5
18605 (eval $ac_try) 2>&5
18607 echo "$as_me:18607: \$? = $ac_status" >&5
18608 (exit $ac_status); }; }; then
18609 cf_iostream_namespace=yes
18611 echo "$as_me: failed program was:" >&5
18612 cat conftest.$ac_ext >&5
18613 cf_iostream_namespace=no
18615 rm -f conftest.$ac_objext conftest.$ac_ext
18616 echo "$as_me:18616: result: $cf_iostream_namespace" >&5
18617 echo "${ECHO_T}$cf_iostream_namespace" >&6
18618 if test "$cf_iostream_namespace" = yes ; then
18619 cat >>confdefs.h <<\EOF
18620 #define IOSTREAM_NAMESPACE 1
18626 echo "$as_me:18626: checking if we should include stdbool.h" >&5
18627 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
18629 if test "${cf_cv_header_stdbool_h+set}" = set; then
18630 echo $ECHO_N "(cached) $ECHO_C" >&6
18633 cat >conftest.$ac_ext <<_ACEOF
18634 #line 18634 "configure"
18635 #include "confdefs.h"
18645 rm -f conftest.$ac_objext
18646 if { (eval echo "$as_me:18646: \"$ac_compile\"") >&5
18647 (eval $ac_compile) 2>&5
18649 echo "$as_me:18649: \$? = $ac_status" >&5
18650 (exit $ac_status); } &&
18651 { ac_try='test -s conftest.$ac_objext'
18652 { (eval echo "$as_me:18652: \"$ac_try\"") >&5
18653 (eval $ac_try) 2>&5
18655 echo "$as_me:18655: \$? = $ac_status" >&5
18656 (exit $ac_status); }; }; then
18657 cf_cv_header_stdbool_h=0
18659 echo "$as_me: failed program was:" >&5
18660 cat conftest.$ac_ext >&5
18661 cat >conftest.$ac_ext <<_ACEOF
18662 #line 18662 "configure"
18663 #include "confdefs.h"
18666 #include <stdbool.h>
18677 rm -f conftest.$ac_objext
18678 if { (eval echo "$as_me:18678: \"$ac_compile\"") >&5
18679 (eval $ac_compile) 2>&5
18681 echo "$as_me:18681: \$? = $ac_status" >&5
18682 (exit $ac_status); } &&
18683 { ac_try='test -s conftest.$ac_objext'
18684 { (eval echo "$as_me:18684: \"$ac_try\"") >&5
18685 (eval $ac_try) 2>&5
18687 echo "$as_me:18687: \$? = $ac_status" >&5
18688 (exit $ac_status); }; }; then
18689 cf_cv_header_stdbool_h=1
18691 echo "$as_me: failed program was:" >&5
18692 cat conftest.$ac_ext >&5
18693 cf_cv_header_stdbool_h=0
18695 rm -f conftest.$ac_objext conftest.$ac_ext
18697 rm -f conftest.$ac_objext conftest.$ac_ext
18700 if test "$cf_cv_header_stdbool_h" = 1
18701 then echo "$as_me:18701: result: yes" >&5
18702 echo "${ECHO_T}yes" >&6
18703 else echo "$as_me:18703: result: no" >&5
18704 echo "${ECHO_T}no" >&6
18707 echo "$as_me:18707: checking for builtin bool type" >&5
18708 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
18710 if test "${cf_cv_builtin_bool+set}" = set; then
18711 echo $ECHO_N "(cached) $ECHO_C" >&6
18714 cat >conftest.$ac_ext <<_ACEOF
18715 #line 18715 "configure"
18716 #include "confdefs.h"
18719 #include <sys/types.h>
18729 rm -f conftest.$ac_objext
18730 if { (eval echo "$as_me:18730: \"$ac_compile\"") >&5
18731 (eval $ac_compile) 2>&5
18733 echo "$as_me:18733: \$? = $ac_status" >&5
18734 (exit $ac_status); } &&
18735 { ac_try='test -s conftest.$ac_objext'
18736 { (eval echo "$as_me:18736: \"$ac_try\"") >&5
18737 (eval $ac_try) 2>&5
18739 echo "$as_me:18739: \$? = $ac_status" >&5
18740 (exit $ac_status); }; }; then
18741 cf_cv_builtin_bool=1
18743 echo "$as_me: failed program was:" >&5
18744 cat conftest.$ac_ext >&5
18745 cf_cv_builtin_bool=0
18747 rm -f conftest.$ac_objext conftest.$ac_ext
18751 if test "$cf_cv_builtin_bool" = 1
18752 then echo "$as_me:18752: result: yes" >&5
18753 echo "${ECHO_T}yes" >&6
18754 else echo "$as_me:18754: result: no" >&5
18755 echo "${ECHO_T}no" >&6
18758 echo "$as_me:18758: checking for size of bool" >&5
18759 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
18760 if test "${cf_cv_type_of_bool+set}" = set; then
18761 echo $ECHO_N "(cached) $ECHO_C" >&6
18765 if test "$cross_compiling" = yes; then
18766 cf_cv_type_of_bool=unknown
18768 cat >conftest.$ac_ext <<_ACEOF
18769 #line 18769 "configure"
18770 #include "confdefs.h"
18772 #include <stdlib.h>
18775 #if defined(__cplusplus)
18777 #ifdef HAVE_GXX_BUILTIN_H
18778 #include <g++/builtin.h>
18779 #elif HAVE_GPP_BUILTIN_H
18780 #include <gpp/builtin.h>
18781 #elif HAVE_BUILTIN_H
18782 #include <builtin.h>
18787 #if $cf_cv_header_stdbool_h
18788 #include <stdbool.h>
18795 FILE *fp = fopen("cf_test.out", "w");
18798 if ((bool)(-x) >= 0)
18799 fputs("unsigned ", fp);
18800 if (sizeof(x) == sizeof(int)) fputs("int", fp);
18801 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
18802 else if (sizeof(x) == sizeof(short))fputs("short",fp);
18803 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
18806 ${cf_cv_main_return:-return}(0);
18810 rm -f conftest$ac_exeext
18811 if { (eval echo "$as_me:18811: \"$ac_link\"") >&5
18812 (eval $ac_link) 2>&5
18814 echo "$as_me:18814: \$? = $ac_status" >&5
18815 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18816 { (eval echo "$as_me:18816: \"$ac_try\"") >&5
18817 (eval $ac_try) 2>&5
18819 echo "$as_me:18819: \$? = $ac_status" >&5
18820 (exit $ac_status); }; }; then
18821 cf_cv_type_of_bool=`cat cf_test.out`
18822 if test -z "$cf_cv_type_of_bool"; then
18823 cf_cv_type_of_bool=unknown
18826 echo "$as_me: program exited with status $ac_status" >&5
18827 echo "$as_me: failed program was:" >&5
18828 cat conftest.$ac_ext >&5
18829 cf_cv_type_of_bool=unknown
18831 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18837 echo "$as_me:18837: result: $cf_cv_type_of_bool" >&5
18838 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
18839 if test "$cf_cv_type_of_bool" = unknown ; then
18840 case .$NCURSES_BOOL in #(vi
18841 .auto|.) NCURSES_BOOL=unsigned;;
18843 { echo "$as_me:18843: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
18844 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
18845 cf_cv_type_of_bool=$NCURSES_BOOL
18848 echo "$as_me:18848: checking for special defines needed for etip.h" >&5
18849 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
18850 cf_save_CXXFLAGS="$CXXFLAGS"
18853 # etip.h includes ncurses.h which includes ncurses_dll.h
18854 # But ncurses_dll.h is generated - fix here.
18855 test -d include || mkdir include
18856 test -f include/ncurses_dll.h || sed -e 's/@NCURSES_WRAP_PREFIX@/'$NCURSES_WRAP_PREFIX'/g' ${srcdir}/include/ncurses_dll.h.in >include/ncurses_dll.h
18858 for cf_math in "" MATH_H
18860 for cf_excp in "" MATH_EXCEPTION
18862 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -Iinclude -I${srcdir}/include"
18863 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
18864 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
18865 cat >conftest.$ac_ext <<_ACEOF
18866 #line 18866 "configure"
18867 #include "confdefs.h"
18869 #include <etip.h.in>
18879 rm -f conftest.$ac_objext
18880 if { (eval echo "$as_me:18880: \"$ac_compile\"") >&5
18881 (eval $ac_compile) 2>&5
18883 echo "$as_me:18883: \$? = $ac_status" >&5
18884 (exit $ac_status); } &&
18885 { ac_try='test -s conftest.$ac_objext'
18886 { (eval echo "$as_me:18886: \"$ac_try\"") >&5
18887 (eval $ac_try) 2>&5
18889 echo "$as_me:18889: \$? = $ac_status" >&5
18890 (exit $ac_status); }; }; then
18892 test -n "$cf_math" && cat >>confdefs.h <<EOF
18893 #define ETIP_NEEDS_${cf_math} 1
18896 test -n "$cf_excp" && cat >>confdefs.h <<EOF
18897 #define ETIP_NEEDS_${cf_excp} 1
18900 cf_result="$cf_math $cf_excp"
18904 echo "$as_me: failed program was:" >&5
18905 cat conftest.$ac_ext >&5
18907 rm -f conftest.$ac_objext conftest.$ac_ext
18910 echo "$as_me:18910: result: $cf_result" >&5
18911 echo "${ECHO_T}$cf_result" >&6
18912 CXXFLAGS="$cf_save_CXXFLAGS"
18914 if test -n "$CXX"; then
18915 echo "$as_me:18915: checking if $CXX accepts parameter initialization" >&5
18916 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
18917 if test "${cf_cv_cpp_param_init+set}" = set; then
18918 echo $ECHO_N "(cached) $ECHO_C" >&6
18922 ac_cpp='$CXXCPP $CPPFLAGS'
18923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18926 ac_main_return=return
18928 if test "$cross_compiling" = yes; then
18929 cf_cv_cpp_param_init=unknown
18931 cat >conftest.$ac_ext <<_ACEOF
18932 #line 18932 "configure"
18933 #include "confdefs.h"
18943 TEST::TEST(int x = 1) // some compilers do not like second initializer
18950 rm -f conftest$ac_exeext
18951 if { (eval echo "$as_me:18951: \"$ac_link\"") >&5
18952 (eval $ac_link) 2>&5
18954 echo "$as_me:18954: \$? = $ac_status" >&5
18955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18956 { (eval echo "$as_me:18956: \"$ac_try\"") >&5
18957 (eval $ac_try) 2>&5
18959 echo "$as_me:18959: \$? = $ac_status" >&5
18960 (exit $ac_status); }; }; then
18961 cf_cv_cpp_param_init=yes
18963 echo "$as_me: program exited with status $ac_status" >&5
18964 echo "$as_me: failed program was:" >&5
18965 cat conftest.$ac_ext >&5
18966 cf_cv_cpp_param_init=no
18968 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18971 ac_cpp='$CXXCPP $CPPFLAGS'
18972 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18973 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18974 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18975 ac_main_return=return
18978 echo "$as_me:18978: result: $cf_cv_cpp_param_init" >&5
18979 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
18981 test "$cf_cv_cpp_param_init" = yes && cat >>confdefs.h <<\EOF
18982 #define CPP_HAS_PARAM_INIT 1
18985 if test -n "$CXX"; then
18987 echo "$as_me:18987: checking if $CXX accepts static_cast" >&5
18988 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
18989 if test "${cf_cv_cpp_static_cast+set}" = set; then
18990 echo $ECHO_N "(cached) $ECHO_C" >&6
18994 ac_cpp='$CXXCPP $CPPFLAGS'
18995 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18996 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18997 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18998 ac_main_return=return
19000 cat >conftest.$ac_ext <<_ACEOF
19001 #line 19001 "configure"
19002 #include "confdefs.h"
19007 NCursesPanel(int nlines,
19017 template<class T> class NCursesUserPanel : public NCursesPanel
19020 NCursesUserPanel (int nlines,
19024 const T* p_UserData = static_cast<T*>(0))
19025 : NCursesPanel (nlines, ncols, begin_y, begin_x)
19028 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
19032 virtual ~NCursesUserPanel() {};
19039 const char* p_UserData = static_cast<char*>(0)
19044 rm -f conftest.$ac_objext
19045 if { (eval echo "$as_me:19045: \"$ac_compile\"") >&5
19046 (eval $ac_compile) 2>&5
19048 echo "$as_me:19048: \$? = $ac_status" >&5
19049 (exit $ac_status); } &&
19050 { ac_try='test -s conftest.$ac_objext'
19051 { (eval echo "$as_me:19051: \"$ac_try\"") >&5
19052 (eval $ac_try) 2>&5
19054 echo "$as_me:19054: \$? = $ac_status" >&5
19055 (exit $ac_status); }; }; then
19056 cf_cv_cpp_static_cast=yes
19058 echo "$as_me: failed program was:" >&5
19059 cat conftest.$ac_ext >&5
19060 cf_cv_cpp_static_cast=no
19062 rm -f conftest.$ac_objext conftest.$ac_ext
19065 ac_cpp='$CXXCPP $CPPFLAGS'
19066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19069 ac_main_return=return
19072 echo "$as_me:19072: result: $cf_cv_cpp_static_cast" >&5
19073 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
19077 test "$cf_cv_cpp_static_cast" = yes && cat >>confdefs.h <<\EOF
19078 #define CPP_HAS_STATIC_CAST 1
19082 CXX_ARFLAGS='$(ARFLAGS)'
19083 case $cf_cv_system_name in #(vi
19085 if test "$GXX" != yes ; then
19087 CXX_ARFLAGS='-ar -o'
19091 CXXLDFLAGS="-u main"
19094 if test "$GXX" != yes ; then
19096 CXX_ARFLAGS='-xar -o'
19103 cf_cv_builtin_bool=1
19105 # Just because we are not configuring against C++ right now does not
19106 # mean that a user will not want to use C++. Some distributors disable
19107 # the C++ portion of this configuration as a shortcut (or just to avoid
19108 # compiling the demo in the c++ directory). So we need a reasonable
19109 # default for the 'bool' type.
19111 # Caveat: since the storage of the bool type is not standardized, it
19114 if test "$NCURSES_BOOL" != auto ; then
19115 cf_cv_type_of_bool=$NCURSES_BOOL
19116 cf_cv_header_stdbool_h=0
19118 if test "$cf_cv_header_stdbool_h" = 1 ; then
19120 echo "$as_me:19120: checking for size of bool" >&5
19121 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
19122 if test "${cf_cv_type_of_bool+set}" = set; then
19123 echo $ECHO_N "(cached) $ECHO_C" >&6
19127 if test "$cross_compiling" = yes; then
19128 cf_cv_type_of_bool=unknown
19130 cat >conftest.$ac_ext <<_ACEOF
19131 #line 19131 "configure"
19132 #include "confdefs.h"
19134 #include <stdlib.h>
19137 #if defined(__cplusplus)
19139 #ifdef HAVE_GXX_BUILTIN_H
19140 #include <g++/builtin.h>
19141 #elif HAVE_GPP_BUILTIN_H
19142 #include <gpp/builtin.h>
19143 #elif HAVE_BUILTIN_H
19144 #include <builtin.h>
19149 #if $cf_cv_header_stdbool_h
19150 #include <stdbool.h>
19157 FILE *fp = fopen("cf_test.out", "w");
19160 if ((bool)(-x) >= 0)
19161 fputs("unsigned ", fp);
19162 if (sizeof(x) == sizeof(int)) fputs("int", fp);
19163 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
19164 else if (sizeof(x) == sizeof(short))fputs("short",fp);
19165 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
19168 ${cf_cv_main_return:-return}(0);
19172 rm -f conftest$ac_exeext
19173 if { (eval echo "$as_me:19173: \"$ac_link\"") >&5
19174 (eval $ac_link) 2>&5
19176 echo "$as_me:19176: \$? = $ac_status" >&5
19177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19178 { (eval echo "$as_me:19178: \"$ac_try\"") >&5
19179 (eval $ac_try) 2>&5
19181 echo "$as_me:19181: \$? = $ac_status" >&5
19182 (exit $ac_status); }; }; then
19183 cf_cv_type_of_bool=`cat cf_test.out`
19184 if test -z "$cf_cv_type_of_bool"; then
19185 cf_cv_type_of_bool=unknown
19188 echo "$as_me: program exited with status $ac_status" >&5
19189 echo "$as_me: failed program was:" >&5
19190 cat conftest.$ac_ext >&5
19191 cf_cv_type_of_bool=unknown
19193 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19199 echo "$as_me:19199: result: $cf_cv_type_of_bool" >&5
19200 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
19201 if test "$cf_cv_type_of_bool" = unknown ; then
19202 case .$NCURSES_BOOL in #(vi
19203 .auto|.) NCURSES_BOOL=unsigned;;
19205 { echo "$as_me:19205: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
19206 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
19207 cf_cv_type_of_bool=$NCURSES_BOOL
19211 echo "$as_me:19211: checking for fallback type of bool" >&5
19212 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
19213 case "$host_cpu" in #(vi
19214 i?86) cf_cv_type_of_bool=char ;; #(vi
19215 *) cf_cv_type_of_bool=int ;;
19217 echo "$as_me:19217: result: $cf_cv_type_of_bool" >&5
19218 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
19223 # If the C compiler did not declare bool, and we did not determine that the C++
19224 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
19225 # ncurses library use the same type as C++ bool. Note that this allows one to
19226 # specify the type of bool in a configure-script option and postpone
19227 # integration with the C++ compiler provided that the types are compatible.
19229 if test $cf_cv_cc_bool_type = 1
19231 # oops: C has a bool. Unlikely, but C++ could differ.
19233 elif test $cf_cv_builtin_bool = 0
19238 # this is the normal case
19239 USE_CXX_BOOL='defined(__cplusplus)'
19242 if test -f "${srcdir}/Ada95/Makefile.in" ; then
19244 if test "$cf_with_ada" != "no" ; then
19245 if test "$with_libtool" != "no"; then
19246 { echo "$as_me:19246: WARNING: libtool does not support Ada - disabling feature" >&5
19247 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
19252 if test "$cf_with_ada" != "no" ; then
19254 cf_ada_make=gnatmake
19255 # Extract the first word of "$cf_ada_make", so it can be a program name with args.
19256 set dummy $cf_ada_make; ac_word=$2
19257 echo "$as_me:19257: checking for $ac_word" >&5
19258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19259 if test "${ac_cv_prog_gnat_exists+set}" = set; then
19260 echo $ECHO_N "(cached) $ECHO_C" >&6
19262 if test -n "$gnat_exists"; then
19263 ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test.
19265 ac_save_IFS=$IFS; IFS=$ac_path_separator
19267 for ac_dir in $ac_dummy; do
19269 test -z "$ac_dir" && ac_dir=.
19270 $as_executable_p "$ac_dir/$ac_word" || continue
19271 ac_cv_prog_gnat_exists="yes"
19272 echo "$as_me:19272: found $ac_dir/$ac_word" >&5
19276 test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no"
19279 gnat_exists=$ac_cv_prog_gnat_exists
19280 if test -n "$gnat_exists"; then
19281 echo "$as_me:19281: result: $gnat_exists" >&5
19282 echo "${ECHO_T}$gnat_exists" >&6
19284 echo "$as_me:19284: result: no" >&5
19285 echo "${ECHO_T}no" >&6
19288 if test "$ac_cv_prog_gnat_exists" = no; then
19290 cf_cv_prog_gnat_correct=no
19293 echo "$as_me:19293: checking for gnat version" >&5
19294 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
19295 cf_gnat_version=`${cf_ada_make:-gnatmake} -v 2>&1 | \
19296 grep '[0-9].[0-9][0-9]*' |\
19297 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
19298 echo "$as_me:19298: result: $cf_gnat_version" >&5
19299 echo "${ECHO_T}$cf_gnat_version" >&6
19301 case $cf_gnat_version in #(vi
19302 3.1[1-9]*|3.[2-9]*|[4-9].*|20[0-9][0-9]) #(vi
19303 cf_cv_prog_gnat_correct=yes
19306 { echo "$as_me:19306: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
19307 echo "$as_me: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
19308 cf_cv_prog_gnat_correct=no
19312 # Extract the first word of "m4", so it can be a program name with args.
19313 set dummy m4; ac_word=$2
19314 echo "$as_me:19314: checking for $ac_word" >&5
19315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19316 if test "${ac_cv_prog_M4_exists+set}" = set; then
19317 echo $ECHO_N "(cached) $ECHO_C" >&6
19319 if test -n "$M4_exists"; then
19320 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
19322 ac_save_IFS=$IFS; IFS=$ac_path_separator
19324 for ac_dir in $ac_dummy; do
19326 test -z "$ac_dir" && ac_dir=.
19327 $as_executable_p "$ac_dir/$ac_word" || continue
19328 ac_cv_prog_M4_exists="yes"
19329 echo "$as_me:19329: found $ac_dir/$ac_word" >&5
19333 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
19336 M4_exists=$ac_cv_prog_M4_exists
19337 if test -n "$M4_exists"; then
19338 echo "$as_me:19338: result: $M4_exists" >&5
19339 echo "${ECHO_T}$M4_exists" >&6
19341 echo "$as_me:19341: result: no" >&5
19342 echo "${ECHO_T}no" >&6
19345 if test "$ac_cv_prog_M4_exists" = no; then
19346 cf_cv_prog_gnat_correct=no
19347 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
19349 if test "$cf_cv_prog_gnat_correct" = yes; then
19350 echo "$as_me:19350: checking if GNAT works" >&5
19351 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
19353 rm -rf conftest* *~conftest*
19354 cat >>conftest.ads <<CF_EOF
19355 procedure conftest;
19357 cat >>conftest.adb <<CF_EOF
19360 procedure conftest is
19362 Text_IO.Put ("Hello World");
19364 GNAT.OS_Lib.OS_Exit (0);
19367 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
19368 if ( ./conftest 1>&5 2>&1 ) ; then
19369 cf_cv_prog_gnat_correct=yes
19371 cf_cv_prog_gnat_correct=no
19374 cf_cv_prog_gnat_correct=no
19376 rm -rf conftest* *~conftest*
19378 echo "$as_me:19378: result: $cf_cv_prog_gnat_correct" >&5
19379 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
19383 if test "$cf_cv_prog_gnat_correct" = yes; then
19385 ADAFLAGS="$ADAFLAGS -gnatpn"
19387 # make ADAFLAGS consistent with CFLAGS
19391 ADAFLAGS="$ADAFLAGS -g"
19398 ADAFLAGS="$ADAFLAGS -O3"
19403 echo "$as_me:19403: checking if GNAT supports generics" >&5
19404 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
19405 case $cf_gnat_version in #(vi
19406 3.[1-9]*|[4-9].*) #(vi
19407 cf_gnat_generics=yes
19410 cf_gnat_generics=no
19413 echo "$as_me:19413: result: $cf_gnat_generics" >&5
19414 echo "${ECHO_T}$cf_gnat_generics" >&6
19416 if test "$cf_gnat_generics" = yes
19418 cf_compile_generics=generics
19419 cf_generic_objects="\${GENOBJS}"
19421 cf_compile_generics=
19422 cf_generic_objects=
19425 echo "$as_me:19425: checking if GNAT supports SIGINT" >&5
19426 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
19427 if test "${cf_cv_gnat_sigint+set}" = set; then
19428 echo $ECHO_N "(cached) $ECHO_C" >&6
19431 rm -rf conftest* *~conftest*
19432 cat >>conftest.ads <<CF_EOF
19433 with Ada.Interrupts.Names;
19435 package ConfTest is
19437 pragma Warnings (Off); -- the next pragma exists since 3.11p
19438 pragma Unreserve_All_Interrupts;
19439 pragma Warnings (On);
19441 protected Process is
19443 function Continue return Boolean;
19444 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
19446 Done : Boolean := False;
19451 cat >>conftest.adb <<CF_EOF
19452 package body ConfTest is
19453 protected body Process is
19458 function Continue return Boolean is
19465 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
19466 cf_cv_gnat_sigint=yes
19468 cf_cv_gnat_sigint=no
19470 rm -rf conftest* *~conftest*
19473 echo "$as_me:19473: result: $cf_cv_gnat_sigint" >&5
19474 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
19476 if test $cf_cv_gnat_sigint = yes ; then
19479 USE_GNAT_SIGINT="#"
19482 echo "$as_me:19482: checking if GNAT pragma Unreferenced works" >&5
19483 echo $ECHO_N "checking if GNAT pragma Unreferenced works... $ECHO_C" >&6
19484 if test "${cf_cv_pragma_unreferenced+set}" = set; then
19485 echo $ECHO_N "(cached) $ECHO_C" >&6
19488 rm -rf conftest* *~conftest*
19489 cat >>conftest.ads <<CF_EOF
19490 procedure conftest;
19492 cat >>conftest.adb <<CF_EOF
19495 procedure conftest is
19497 pragma Unreferenced (test);
19500 Text_IO.Put ("Hello World");
19502 GNAT.OS_Lib.OS_Exit (0);
19505 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
19506 cf_cv_pragma_unreferenced=yes
19508 cf_cv_pragma_unreferenced=no
19510 rm -rf conftest* *~conftest*
19513 echo "$as_me:19513: result: $cf_cv_pragma_unreferenced" >&5
19514 echo "${ECHO_T}$cf_cv_pragma_unreferenced" >&6
19516 # if the pragma is supported, use it (needed in the Trace code).
19517 if test $cf_cv_pragma_unreferenced = yes ; then
19523 cf_gnat_libraries=no
19524 cf_gnat_projects=no
19526 echo "$as_me:19526: checking if GNAT supports project files" >&5
19527 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
19528 case $cf_gnat_version in #(vi
19532 case $cf_cv_system_name in #(vi
19536 mkdir conftest.src conftest.bin conftest.lib
19538 rm -rf conftest* *~conftest*
19539 cat >>library.gpr <<CF_EOF
19541 Kind := External ("LIB_KIND");
19542 for Library_Name use "ConfTest";
19543 for Object_Dir use ".";
19544 for Library_ALI_Dir use External("LIBRARY_DIR");
19545 for Library_Version use External ("SONAME");
19546 for Library_Kind use Kind;
19547 for Library_Dir use External("BUILD_DIR");
19548 Source_Dir := External ("SOURCE_DIR");
19549 for Source_Dirs use (Source_Dir);
19550 package Compiler is
19551 for Default_Switches ("Ada") use
19555 "-gnatVa", -- All validity checks
19556 "-gnatwa"); -- Activate all optional errors
19560 cat >>confpackage.ads <<CF_EOF
19561 package ConfPackage is
19562 procedure conftest;
19565 cat >>confpackage.adb <<CF_EOF
19567 package body ConfPackage is
19568 procedure conftest is
19570 Text_IO.Put ("Hello World");
19575 if ( $cf_ada_make $ADAFLAGS \
19577 -XBUILD_DIR=`cd ../conftest.bin;pwd` \
19578 -XLIBRARY_DIR=`cd ../conftest.lib;pwd` \
19579 -XSOURCE_DIR=`pwd` \
19580 -XSONAME=libConfTest.so.1 \
19581 -XLIB_KIND=static 1>&5 2>&1 ) ; then
19582 cf_gnat_projects=yes
19585 if test -f conftest.lib/confpackage.ali
19587 cf_gnat_libraries=yes
19589 rm -rf conftest* *~conftest*
19594 echo "$as_me:19594: result: $cf_gnat_projects" >&5
19595 echo "${ECHO_T}$cf_gnat_projects" >&6
19597 if test $cf_gnat_projects = yes
19599 echo "$as_me:19599: checking if GNAT supports libraries" >&5
19600 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
19601 echo "$as_me:19601: result: $cf_gnat_libraries" >&5
19602 echo "${ECHO_T}$cf_gnat_libraries" >&6
19605 if test "$cf_gnat_projects" = yes
19607 USE_OLD_MAKERULES="#"
19608 USE_GNAT_PROJECTS=""
19610 USE_OLD_MAKERULES=""
19611 USE_GNAT_PROJECTS="#"
19614 if test "$cf_gnat_libraries" = yes
19616 USE_GNAT_LIBRARIES=""
19618 USE_GNAT_LIBRARIES="#"
19621 echo "$as_me:19621: checking for ada-compiler" >&5
19622 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
19624 # Check whether --with-ada-compiler or --without-ada-compiler was given.
19625 if test "${with_ada_compiler+set}" = set; then
19626 withval="$with_ada_compiler"
19627 cf_ada_compiler=$withval
19629 cf_ada_compiler=gnatmake
19632 echo "$as_me:19632: result: $cf_ada_compiler" >&5
19633 echo "${ECHO_T}$cf_ada_compiler" >&6
19635 cf_ada_package=terminal_interface
19637 echo "$as_me:19637: checking for ada-include" >&5
19638 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
19640 # Check whether --with-ada-include or --without-ada-include was given.
19641 if test "${with_ada_include+set}" = set; then
19642 withval="$with_ada_include"
19645 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
19646 fi; if test -n "$prefix/share/ada/adainclude" ; then
19648 if test "x$prefix" != xNONE; then
19649 cf_path_syntax="$prefix"
19651 cf_path_syntax="$ac_default_prefix"
19654 case ".$withval" in #(vi
19655 .\$\(*\)*|.\'*\'*) #(vi
19659 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
19661 .\${*prefix}*) #(vi
19662 eval withval="$withval"
19663 case ".$withval" in #(vi
19665 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
19670 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
19673 { { echo "$as_me:19673: error: expected a pathname, not \"$withval\"" >&5
19674 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
19675 { (exit 1); exit 1; }; }
19680 ADA_INCLUDE="$withval"
19682 echo "$as_me:19682: result: $ADA_INCLUDE" >&5
19683 echo "${ECHO_T}$ADA_INCLUDE" >&6
19685 echo "$as_me:19685: checking for ada-objects" >&5
19686 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
19688 # Check whether --with-ada-objects or --without-ada-objects was given.
19689 if test "${with_ada_objects+set}" = set; then
19690 withval="$with_ada_objects"
19693 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
19694 fi; if test -n "$prefix/lib/ada/adalib" ; then
19696 if test "x$prefix" != xNONE; then
19697 cf_path_syntax="$prefix"
19699 cf_path_syntax="$ac_default_prefix"
19702 case ".$withval" in #(vi
19703 .\$\(*\)*|.\'*\'*) #(vi
19707 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
19709 .\${*prefix}*) #(vi
19710 eval withval="$withval"
19711 case ".$withval" in #(vi
19713 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
19718 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
19721 { { echo "$as_me:19721: error: expected a pathname, not \"$withval\"" >&5
19722 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
19723 { (exit 1); exit 1; }; }
19728 ADA_OBJECTS="$withval"
19730 echo "$as_me:19730: result: $ADA_OBJECTS" >&5
19731 echo "${ECHO_T}$ADA_OBJECTS" >&6
19733 echo "$as_me:19733: checking if an Ada95 shared-library should be built" >&5
19734 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
19736 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
19737 if test "${with_ada_sharedlib+set}" = set; then
19738 withval="$with_ada_sharedlib"
19739 with_ada_sharedlib=$withval
19741 with_ada_sharedlib=no
19743 echo "$as_me:19743: result: $with_ada_sharedlib" >&5
19744 echo "${ECHO_T}$with_ada_sharedlib" >&6
19746 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
19747 MAKE_ADA_SHAREDLIB="#"
19749 if test "x$with_ada_sharedlib" != xno
19751 MAKE_ADA_SHAREDLIB=
19752 if test "x$with_ada_sharedlib" != xyes
19754 ADA_SHAREDLIB="$with_ada_sharedlib"
19764 ### Construct the ncurses library-subsets, if any, from this set of keywords:
19765 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
19767 ### ticlib modules may be a separate library, otherwise contained in termlib.
19768 ### termlib modules may be a separate library, otherwise contained in ncurses.
19770 ### The of "+" or " " between the tokens controls the way the script
19771 ### chooses to split module lists into libraries.
19773 ### (see CF_LIB_RULES).
19774 echo "$as_me:19774: checking for library subsets" >&5
19775 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
19778 if test "$cf_with_progs" = yes || test "$with_ticlib" != no || test "$with_termcap" != no; then
19779 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
19780 if test "$with_ticlib" != no ; then
19781 LIB_SUBSETS="${LIB_SUBSETS} "
19783 LIB_SUBSETS="${LIB_SUBSETS}+"
19787 LIB_SUBSETS="${LIB_SUBSETS}termlib"
19788 test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
19790 if test "$with_termlib" != no ; then
19791 LIB_SUBSETS="${LIB_SUBSETS} "
19793 LIB_SUBSETS="${LIB_SUBSETS}+"
19796 LIB_SUBSETS="${LIB_SUBSETS}base"
19798 # Most term-driver calls are to tinfo, but some like init_pair are to the
19799 # base library (so it resides in base).
19800 if test "$with_term_driver" != no ; then
19801 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
19802 case $cf_cv_system_name in #(vi
19804 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
19807 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
19812 test "$with_widec" = yes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
19813 test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
19815 echo "$as_me:19815: result: $LIB_SUBSETS" >&5
19816 echo "${ECHO_T}$LIB_SUBSETS" >&6
19818 ### Construct the list of include-directories to be generated
19820 CPPFLAGS="$CPPFLAGS -I. -I../include"
19821 if test "$srcdir" != "."; then
19822 CPPFLAGS="$CPPFLAGS -I\${srcdir}/../include"
19824 if test "$GCC" != yes; then
19825 CPPFLAGS="$CPPFLAGS -I\${includedir}"
19826 elif test "$includedir" != "/usr/include"; then
19827 if test "$includedir" = '${prefix}/include' ; then
19828 if test $prefix != /usr ; then
19829 CPPFLAGS="$CPPFLAGS -I\${includedir}"
19832 CPPFLAGS="$CPPFLAGS -I\${includedir}"
19836 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
19837 if test "$srcdir" != "."; then
19838 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
19840 if test "$GCC" != yes; then
19841 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
19842 elif test "$includedir" != "/usr/include"; then
19843 if test "$includedir" = '${prefix}/include' ; then
19844 if test $prefix != /usr ; then
19845 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
19848 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
19852 ### Build up pieces for makefile rules
19853 echo "$as_me:19853: checking default library suffix" >&5
19854 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
19856 case $DFT_LWR_MODEL in
19857 libtool) DFT_ARG_SUFFIX='' ;;
19858 normal) DFT_ARG_SUFFIX='' ;;
19859 debug) DFT_ARG_SUFFIX='_g' ;;
19860 profile) DFT_ARG_SUFFIX='_p' ;;
19861 shared) DFT_ARG_SUFFIX='' ;;
19863 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
19864 echo "$as_me:19864: result: $DFT_ARG_SUFFIX" >&5
19865 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
19867 echo "$as_me:19867: checking default library-dependency suffix" >&5
19868 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
19870 case $DFT_LWR_MODEL in #(vi
19872 DFT_LIB_SUFFIX='.la'
19873 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19876 DFT_LIB_SUFFIX='.a'
19877 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19880 DFT_LIB_SUFFIX='_g.a'
19881 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19884 DFT_LIB_SUFFIX='_p.a'
19885 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19888 case $cf_cv_system_name in
19890 DFT_LIB_SUFFIX='.a'
19891 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19893 cygwin*|mingw*) #(vi
19894 DFT_LIB_SUFFIX='.dll'
19895 DFT_DEP_SUFFIX='.dll.a'
19898 DFT_LIB_SUFFIX='.dylib'
19899 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19904 DFT_LIB_SUFFIX='.so'
19905 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19908 DFT_LIB_SUFFIX='.sl'
19909 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19913 *) DFT_LIB_SUFFIX='.so'
19914 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19918 test -n "$LIB_SUFFIX" && DFT_LIB_SUFFIX="${LIB_SUFFIX}${DFT_LIB_SUFFIX}"
19919 test -n "$LIB_SUFFIX" && DFT_DEP_SUFFIX="${LIB_SUFFIX}${DFT_DEP_SUFFIX}"
19920 echo "$as_me:19920: result: $DFT_DEP_SUFFIX" >&5
19921 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
19923 echo "$as_me:19923: checking default object directory" >&5
19924 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
19926 case $DFT_LWR_MODEL in
19927 libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
19928 normal) DFT_OBJ_SUBDIR='objects' ;;
19929 debug) DFT_OBJ_SUBDIR='obj_g' ;;
19930 profile) DFT_OBJ_SUBDIR='obj_p' ;;
19932 case $cf_cv_system_name in #(vi
19934 DFT_OBJ_SUBDIR='objects' ;;
19936 DFT_OBJ_SUBDIR='obj_s' ;;
19939 echo "$as_me:19939: result: $DFT_OBJ_SUBDIR" >&5
19940 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
19942 # libtool thinks it can make c++ shared libraries (perhaps only g++)
19943 if test "$cf_with_cxx" = yes ; then
19944 echo "$as_me:19944: checking c++ library-dependency suffix" >&5
19945 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
19946 if test "$with_libtool" != "no"; then
19947 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
19950 case normal in #(vi
19952 CXX_LIB_SUFFIX='.la'
19953 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19956 CXX_LIB_SUFFIX='.a'
19957 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19960 CXX_LIB_SUFFIX='_g.a'
19961 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19964 CXX_LIB_SUFFIX='_p.a'
19965 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19968 case $cf_cv_system_name in
19970 CXX_LIB_SUFFIX='.a'
19971 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19973 cygwin*|mingw*) #(vi
19974 CXX_LIB_SUFFIX='.dll'
19975 CXX_DEP_SUFFIX='.dll.a'
19978 CXX_LIB_SUFFIX='.dylib'
19979 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19984 CXX_LIB_SUFFIX='.so'
19985 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19988 CXX_LIB_SUFFIX='.sl'
19989 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19993 *) CXX_LIB_SUFFIX='.so'
19994 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19998 test -n "$LIB_SUFFIX" && CXX_LIB_SUFFIX="${LIB_SUFFIX}${CXX_LIB_SUFFIX}"
19999 test -n "$LIB_SUFFIX" && CXX_DEP_SUFFIX="${LIB_SUFFIX}${CXX_DEP_SUFFIX}"
20001 echo "$as_me:20001: result: $CXX_LIB_SUFFIX" >&5
20002 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
20006 # do not want -ldl in build except as needed for -lncurses dependency
20007 if test "$with_dlsym" = yes ; then
20008 if test $DFT_LWR_MODEL = shared || \
20009 test $DFT_LWR_MODEL = libtool ; then
20011 # remove dl library from $LIBS
20012 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
20016 ### Set up low-level terminfo dependencies for makefiles.
20018 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
20019 # do not need libdl
20021 if test "$with_dlsym" = yes ; then
20023 # remove dl library from $SHLIB_LIST
20024 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
20028 if test "$with_ticlib" != no ; then
20030 if test "$with_ticlib" != yes ; then
20031 TICS_NAME=$with_ticlib
20032 TICS_ARG_SUFFIX="${with_ticlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
20033 TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
20034 TICS_LIB_SUFFIX="${with_ticlib}"
20036 TICS_ARG_SUFFIX="${TICS_NAME}${DFT_ARG_SUFFIX}"
20037 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
20038 TICS_LIB_SUFFIX="${TICS_NAME}${LIB_SUFFIX}"
20040 TICS_LDFLAGS="-L${LIB_DIR}"
20041 TICS_LIBS="-l${TICS_LIB_SUFFIX}"
20043 TICS_LDFLAGS="-L${LIB_DIR}"
20044 TICS_LIBS="-l${LIB_NAME}${DFT_ARG_SUFFIX}"
20047 if test "$with_termlib" != no ; then
20049 if test "$with_termlib" != yes ; then
20050 TINFO_NAME=$with_termlib
20051 TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
20052 TINFO_ARG_SUFFIX="${with_termlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
20053 TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
20054 TINFO_LIB_SUFFIX="${with_termlib}"
20056 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
20057 TINFO_ARG_SUFFIX="${TINFO_NAME}${DFT_ARG_SUFFIX}"
20058 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
20059 TINFO_LIB_SUFFIX="${TINFO_NAME}${LIB_SUFFIX}"
20062 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
20063 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
20064 if test "$DFT_LWR_MODEL" = "libtool"; then
20065 TEST_ARGS="${TEST_DEPS}"
20066 TEST_ARG2="${TEST_DEP2}"
20067 TINFO_LDFLAGS="-L${LIB_DIR}"
20068 TINFO_LIBS="$TEST_ARGS"
20069 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
20070 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
20072 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
20073 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
20074 if test "x$with_term_driver" != xno ; then
20075 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${DFT_ARG_SUFFIX}"
20076 TICS_LIBS="$TICS_LIBS -l${LIB_NAME}${DFT_ARG_SUFFIX}"
20077 TINFO_LIBS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS"
20079 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
20080 TINFO_LIBS="$TEST_ARGS"
20082 TINFO_LDFLAGS="-L${LIB_DIR}"
20083 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
20086 # the next lines are needed for linking libtic over libncurses
20087 TINFO_NAME=${LIB_NAME}
20088 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
20089 TINFO_ARG_SUFFIX=${LIB_NAME}${DFT_ARG_SUFFIX}
20090 if test "$with_tic_depends" = yes ; then
20091 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${DFT_ARG_SUFFIX}"
20093 TICS_LIST="$SHLIB_LIST"
20096 TINFO_LDFLAGS="-L${LIB_DIR}"
20097 TINFO_LIBS="-l${LIB_NAME}${DFT_ARG_SUFFIX}"
20100 if test "$DFT_LWR_MODEL" = shared ; then
20101 case $cf_cv_system_name in #(vi
20103 # "lib" files have ".dll.a" suffix, "cyg" files have ".dll"
20109 if test "$with_dlsym" = yes ; then
20111 # remove dl library from $TICS_LIST
20112 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
20116 if test "$DFT_LWR_MODEL" = "libtool"; then
20121 TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'`
20123 case $DFT_LWR_MODEL in
20124 normal|debug|profile)
20126 if test "$GCC" = yes ; then
20127 case $cf_cv_system_name in #(
20128 OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*) #( vi
20132 *) #( normally, except when broken
20133 LDFLAGS_STATIC=-static
20134 LDFLAGS_SHARED=-dynamic
20138 case $cf_cv_system_name in #(
20139 aix[4-7]*) #( from ld manpage
20140 LDFLAGS_STATIC=-bstatic
20141 LDFLAGS_SHARED=-bdynamic
20143 hpux*) #( from ld manpage for hpux10.20, hpux11.11
20144 # We could also use just "archive" and "shared".
20145 LDFLAGS_STATIC=-Wl,-a,archive_shared
20146 LDFLAGS_SHARED=-Wl,-a,shared_archive
20148 irix*) #( from ld manpage IRIX64
20149 LDFLAGS_STATIC=-Bstatic
20150 LDFLAGS_SHARED=-Bdynamic
20152 osf[45]*) #( from ld manpage osf4.0d, osf5.1
20153 # alternative "-oldstyle_liblookup" (not in cc manpage)
20154 LDFLAGS_STATIC=-noso
20155 LDFLAGS_SHARED=-so_archive
20158 LDFLAGS_STATIC=-Bstatic
20159 LDFLAGS_SHARED=-Bdynamic
20164 if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED"
20166 echo "$as_me:20166: checking if linker supports switching between static/dynamic" >&5
20167 echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6
20169 rm -f libconftest.a
20170 cat >conftest.$ac_ext <<EOF
20171 #line 20171 "configure"
20173 int cf_ldflags_static(FILE *fp) { return fflush(fp); }
20175 if { (eval echo "$as_me:20175: \"$ac_compile\"") >&5
20176 (eval $ac_compile) 2>&5
20178 echo "$as_me:20178: \$? = $ac_status" >&5
20179 (exit $ac_status); } ; then
20180 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null
20181 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null
20185 cf_save_LIBS="$LIBS"
20187 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS"
20188 cat >conftest.$ac_ext <<_ACEOF
20189 #line 20189 "configure"
20190 #include "confdefs.h"
20192 #line 20192 "configure"
20194 int cf_ldflags_static(FILE *fp);
20200 return cf_ldflags_static(stdin);
20206 rm -f conftest.$ac_objext conftest$ac_exeext
20207 if { (eval echo "$as_me:20207: \"$ac_link\"") >&5
20208 (eval $ac_link) 2>&5
20210 echo "$as_me:20210: \$? = $ac_status" >&5
20211 (exit $ac_status); } &&
20212 { ac_try='test -s conftest$ac_exeext'
20213 { (eval echo "$as_me:20213: \"$ac_try\"") >&5
20214 (eval $ac_try) 2>&5
20216 echo "$as_me:20216: \$? = $ac_status" >&5
20217 (exit $ac_status); }; }; then
20219 # some linkers simply ignore the -dynamic
20220 case x`file conftest$ac_exeext 2>/dev/null` in #(vi
20222 cf_ldflags_static=no
20225 cf_ldflags_static=yes
20230 echo "$as_me: failed program was:" >&5
20231 cat conftest.$ac_ext >&5
20232 cf_ldflags_static=no
20234 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20236 rm -f libconftest.*
20237 LIBS="$cf_save_LIBS"
20239 echo "$as_me:20239: result: $cf_ldflags_static" >&5
20240 echo "${ECHO_T}$cf_ldflags_static" >&6
20242 if test $cf_ldflags_static != yes
20255 echo "$as_me:20255: checking where we will install curses.h" >&5
20256 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
20257 test "$with_overwrite" = no && \
20258 test "x$includedir" = 'x${prefix}/include' && \
20259 includedir='${prefix}/include/ncurses'${LIB_SUFFIX}
20260 echo "$as_me:20260: result: $includedir" >&5
20261 echo "${ECHO_T}$includedir" >&6
20263 ### Resolve a conflict between normal and wide-curses by forcing applications
20264 ### that will need libutf8 to add it to their configure script.
20265 if test "$with_overwrite" != no ; then
20266 if test "$NCURSES_LIBUTF8" = 1 ; then
20267 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
20268 { echo "$as_me:20268: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
20269 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
20272 WITH_OVERWRITE=$with_overwrite
20274 # used to separate tack out of the tree
20277 ### predefined stuff for the test programs
20278 cat >>confdefs.h <<\EOF
20279 #define HAVE_SLK_COLOR 1
20282 ### Construct the list of subdirectories for which we'll customize makefiles
20283 ### with the appropriate compile-rules.
20285 echo "$as_me:20285: checking for src modules" >&5
20286 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
20288 # dependencies and linker-arguments for test-programs
20289 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
20290 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
20291 if test "$DFT_LWR_MODEL" = "libtool"; then
20292 TEST_ARGS="${TEST_DEPS}"
20293 TEST_ARG2="${TEST_DEP2}"
20295 TEST_ARGS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS"
20296 TEST_ARG2="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARG2"
20299 PC_MODULES_TO_MAKE="ncurses${DFT_ARG_SUFFIX}"
20301 for cf_dir in $modules_to_build
20303 if test -f $srcdir/$cf_dir/modules; then
20305 # We may/may not have tack in the distribution, though the
20307 if test $cf_dir = tack ; then
20308 if test ! -f $srcdir/${cf_dir}/${cf_dir}.h; then
20313 if test -z "$cf_cv_src_modules"; then
20314 cf_cv_src_modules=$cf_dir
20316 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
20319 # Make the ncurses_cfg.h file record the library interface files as
20320 # well. These are header files that are the same name as their
20321 # directory. Ncurses is the only library that does not follow
20323 if test $cf_dir = tack ; then
20325 elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
20327 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20329 cat >>confdefs.h <<EOF
20330 #define HAVE_${cf_have_include}_H 1
20333 cat >>confdefs.h <<EOF
20334 #define HAVE_LIB${cf_have_include} 1
20337 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
20338 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEP2"
20339 if test "$DFT_LWR_MODEL" = "libtool"; then
20340 TEST_ARGS="${TEST_DEPS}"
20341 TEST_ARG2="${TEST_DEP2}"
20343 TEST_ARGS="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARGS"
20344 TEST_ARG2="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARG2"
20346 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ${cf_dir}${DFT_ARG_SUFFIX}"
20350 echo "$as_me:20350: result: $cf_cv_src_modules" >&5
20351 echo "${ECHO_T}$cf_cv_src_modules" >&6
20353 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
20354 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
20357 if test "x$cf_with_manpages" != xno ; then
20358 SRC_SUBDIRS="$SRC_SUBDIRS man"
20360 SRC_SUBDIRS="$SRC_SUBDIRS include"
20361 for cf_dir in $cf_cv_src_modules
20363 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
20365 if test "x$cf_with_tests" != "xno" ; then
20366 SRC_SUBDIRS="$SRC_SUBDIRS test"
20368 test -z "$MAKE_TERMINFO" && SRC_SUBDIRS="$SRC_SUBDIRS misc"
20369 if test "$cf_with_cxx_binding" != no; then
20370 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ncurses++${DFT_ARG_SUFFIX}"
20371 SRC_SUBDIRS="$SRC_SUBDIRS c++"
20374 test "x$with_termlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TINFO_ARG_SUFFIX"
20375 test "x$with_ticlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TICS_ARG_SUFFIX"
20378 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = xyes && test -f $srcdir/Ada95/Makefile.in; then
20379 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
20380 ADA_SUBDIRS="gen src"
20381 if test "x$cf_with_tests" != "xno" ; then
20382 ADA_SUBDIRS="$ADA_SUBDIRS samples"
20387 for cf_dir in $SRC_SUBDIRS
20389 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
20392 if test -n "$ADA_SUBDIRS"; then
20393 for cf_dir in $ADA_SUBDIRS
20395 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
20400 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
20401 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${DFT_ARG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
20402 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${DFT_ARG_SUFFIX}-config.1:man/MKada_config.in"
20406 for cf_item in $cf_list_models
20410 libtool) cf_subdir='obj_lo' ;;
20411 normal) cf_subdir='objects' ;;
20412 debug) cf_subdir='obj_g' ;;
20413 profile) cf_subdir='obj_p' ;;
20415 case $cf_cv_system_name in #(vi
20417 cf_subdir='objects' ;;
20419 cf_subdir='obj_s' ;;
20423 for cf_item2 in $DIRS_TO_MAKE
20425 test $cf_item2 = $cf_subdir && break
20427 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
20429 for cf_dir in $DIRS_TO_MAKE
20431 test ! -d $cf_dir && mkdir $cf_dir
20434 # symbols that differ when compiling Ada95 by itself.
20435 NCURSES_SHLIB2='sh $(top_srcdir)/misc/shlib'
20437 # values to use as strings
20438 cat >>confdefs.h <<EOF
20439 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
20442 cat >>confdefs.h <<EOF
20443 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
20446 ### Now that we're done running tests, add the compiler-warnings, if any
20451 cf_new_extra_cppflags=
20453 for cf_add_cflags in $EXTRA_CFLAGS
20455 case $cf_fix_cppflags in
20457 case $cf_add_cflags in #(vi
20458 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
20459 case $cf_add_cflags in
20461 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
20463 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
20464 && test -z "${cf_tst_cflags}" \
20465 && cf_fix_cppflags=yes
20467 if test $cf_fix_cppflags = yes ; then
20468 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
20470 elif test "${cf_tst_cflags}" = "\"'" ; then
20471 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
20476 case "$CPPFLAGS" in
20477 *$cf_add_cflags) #(vi
20480 case $cf_add_cflags in #(vi
20482 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
20484 CPPFLAGS=`echo "$CPPFLAGS" | \
20485 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
20486 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
20490 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
20495 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
20500 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
20502 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
20504 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
20505 && test -z "${cf_tst_cflags}" \
20506 && cf_fix_cppflags=no
20511 if test -n "$cf_new_cflags" ; then
20513 CFLAGS="$CFLAGS $cf_new_cflags"
20516 if test -n "$cf_new_cppflags" ; then
20518 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
20521 if test -n "$cf_new_extra_cppflags" ; then
20523 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
20526 ### Define substitutions for header files to avoid name-pollution
20528 if test "$cf_cv_have_tcgetattr" = yes ; then
20534 if test "$ac_cv_header_termio_h" = yes ; then
20540 if test "$ac_cv_header_termios_h" = yes ; then
20546 ################################################################################
20547 test "$use_database" = yes && \
20548 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
20550 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
20551 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${DFT_ARG_SUFFIX}${cf_cv_abi_version}-config.1:man/MKncu_config.in"
20553 if test x"$enable_pc_files" = xyes ; then \
20554 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
20560 # Extract the first word of "tic", so it can be a program name with args.
20561 set dummy tic; ac_word=$2
20562 echo "$as_me:20562: checking for $ac_word" >&5
20563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20564 if test "${ac_cv_path_TIC_PATH+set}" = set; then
20565 echo $ECHO_N "(cached) $ECHO_C" >&6
20569 ac_cv_path_TIC_PATH="$TIC_PATH" # Let the user override the test with a path.
20572 ac_save_IFS=$IFS; IFS=$ac_path_separator
20573 ac_dummy="$PATH:/usr/local/ncurses/bin"
20574 for ac_dir in $ac_dummy; do
20576 test -z "$ac_dir" && ac_dir=.
20577 if $as_executable_p "$ac_dir/$ac_word"; then
20578 ac_cv_path_TIC_PATH="$ac_dir/$ac_word"
20579 echo "$as_me:20579: found $ac_dir/$ac_word" >&5
20584 test -z "$ac_cv_path_TIC_PATH" && ac_cv_path_TIC_PATH="unknown"
20588 TIC_PATH=$ac_cv_path_TIC_PATH
20590 if test -n "$TIC_PATH"; then
20591 echo "$as_me:20591: result: $TIC_PATH" >&5
20592 echo "${ECHO_T}$TIC_PATH" >&6
20594 echo "$as_me:20594: result: no" >&5
20595 echo "${ECHO_T}no" >&6
20598 if test -n "$FALLBACK_LIST"
20600 if test "$TIC_PATH" = unknown
20602 { echo "$as_me:20602: WARNING: no tic program found for fallbacks" >&5
20603 echo "$as_me: WARNING: no tic program found for fallbacks" >&2;}
20607 if test "x$cf_with_tests" != xno ; then
20613 ADAHTML_DIR=../../doc/html/ada
20617 ac_config_files="$ac_config_files include/MKterm.h.awk include/curses.head:include/curses.h.in include/ncurses_dll.h include/termcap.h include/unctrl.h $SUB_SCRIPTS $SUB_MAKEFILES Makefile"
20618 ac_config_commands="$ac_config_commands default"
20619 cat >confcache <<\_ACEOF
20620 # This file is a shell script that caches the results of configure
20621 # tests run on this system so they can be shared between configure
20622 # scripts and configure runs, see configure's option --config-cache.
20623 # It is not useful on other systems. If it contains results you don't
20624 # want to keep, you may remove or edit it.
20626 # config.status only pays attention to the cache file if you give it
20627 # the --recheck option to rerun configure.
20629 # `ac_cv_env_foo' variables (set or unset) will be overriden when
20630 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20631 # following values.
20635 # The following way of writing the cache mishandles newlines in values,
20636 # but we know of no workaround that is simple, portable, and efficient.
20637 # So, don't put newlines in cache variables' values.
20638 # Ultrix sh set writes to stderr and can't be redirected directly,
20639 # and sets the high bit in the cache file unless we assign to the vars.
20642 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20644 # `set' does not quote correctly, so add quotes (double-quote
20645 # substitution turns \\\\ into \\, and sed turns \\ into \).
20648 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20651 # `set' quotes correctly as required by POSIX, so do not add quotes.
20653 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20660 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20662 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20664 if cmp -s $cache_file confcache; then :; else
20665 if test -w $cache_file; then
20666 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20667 cat confcache >$cache_file
20669 echo "not updating unwritable cache $cache_file"
20674 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20675 # Let make expand exec_prefix.
20676 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20678 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20679 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20680 # trailing colons and then remove the whole line if VPATH becomes empty
20681 # (actually we leave an empty line to preserve line numbers).
20682 if test "x$srcdir" = x.; then
20683 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20684 s/:*\$(srcdir):*/:/;
20685 s/:*\${srcdir}:*/:/;
20687 s/^\([^=]*=[ ]*\):*/\1/;
20693 DEFS=-DHAVE_CONFIG_H
20695 : ${CONFIG_STATUS=./config.status}
20696 ac_clean_files_save=$ac_clean_files
20697 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20698 { echo "$as_me:20698: creating $CONFIG_STATUS" >&5
20699 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20700 cat >$CONFIG_STATUS <<_ACEOF
20702 # Generated automatically by configure.
20703 # Run this file to recreate the current configuration.
20704 # Compiler output produced by configure, useful for debugging
20705 # configure, is in config.log if it exists.
20708 SHELL=\${CONFIG_SHELL-$SHELL}
20709 ac_cs_invocation="\$0 \$@"
20713 cat >>$CONFIG_STATUS <<\_ACEOF
20714 # Be Bourne compatible
20715 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20718 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20722 # Name of the executable.
20723 as_me=`echo "$0" |sed 's,.*[\\/],,'`
20725 if expr a : '\(a\)' >/dev/null 2>&1; then
20731 rm -f conf$$ conf$$.exe conf$$.file
20733 if ln -s conf$$.file conf$$ 2>/dev/null; then
20734 # We could just check for DJGPP; but this test a) works b) is more generic
20735 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20736 if test -f conf$$.exe; then
20737 # Don't use ln at all; we don't have any links
20742 elif ln conf$$.file conf$$ 2>/dev/null; then
20747 rm -f conf$$ conf$$.exe conf$$.file
20749 as_executable_p="test -f"
20751 # Support unset when possible.
20752 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
20759 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
20760 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
20761 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
20762 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
20763 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
20764 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
20765 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
20766 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
20769 # We need space, tab and new line, in precisely that order.
20775 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
20781 # Files that config.status was made for.
20782 if test -n "$ac_config_files"; then
20783 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20786 if test -n "$ac_config_headers"; then
20787 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20790 if test -n "$ac_config_links"; then
20791 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20794 if test -n "$ac_config_commands"; then
20795 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20798 cat >>$CONFIG_STATUS <<\EOF
20801 \`$as_me' instantiates files from templates according to the
20802 current configuration.
20804 Usage: $0 [OPTIONS] [FILE]...
20806 -h, --help print this help, then exit
20807 -V, --version print version number, then exit
20808 -d, --debug don't remove temporary files
20809 --recheck update $as_me by reconfiguring in the same conditions
20810 --file=FILE[:TEMPLATE]
20811 instantiate the configuration file FILE
20812 --header=FILE[:TEMPLATE]
20813 instantiate the configuration header FILE
20815 Configuration files:
20818 Configuration headers:
20821 Configuration commands:
20824 Report bugs to <dickey@invisible-island.net>."
20827 cat >>$CONFIG_STATUS <<EOF
20830 configured by $0, generated by GNU Autoconf 2.52.20101002,
20831 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20833 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
20834 Free Software Foundation, Inc.
20835 This config.status script is free software; the Free Software Foundation
20836 gives unlimited permission to copy, distribute and modify it."
20841 cat >>$CONFIG_STATUS <<\EOF
20842 # If no file are specified by the user, then we need to provide default
20843 # value. By we need to know if files were specified by the user.
20849 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20850 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20852 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
20856 *) # This is not an option, so the user has probably given explicit
20858 ac_need_defaults=false;;
20862 # Handling of the options.
20864 cat >>$CONFIG_STATUS <<EOF
20865 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20866 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
20867 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
20869 cat >>$CONFIG_STATUS <<\EOF
20870 --version | --vers* | -V )
20871 echo "$ac_cs_version"; exit 0 ;;
20873 # Conflict between --help and --header
20874 { { echo "$as_me:20874: error: ambiguous option: $1
20875 Try \`$0 --help' for more information." >&5
20876 echo "$as_me: error: ambiguous option: $1
20877 Try \`$0 --help' for more information." >&2;}
20878 { (exit 1); exit 1; }; };;
20879 --help | --hel | -h )
20880 echo "$ac_cs_usage"; exit 0 ;;
20881 --debug | --d* | -d )
20883 --file | --fil | --fi | --f )
20885 CONFIG_FILES="$CONFIG_FILES $1"
20886 ac_need_defaults=false;;
20887 --header | --heade | --head | --hea )
20889 CONFIG_HEADERS="$CONFIG_HEADERS $1"
20890 ac_need_defaults=false;;
20892 # This is an error.
20893 -*) { { echo "$as_me:20893: error: unrecognized option: $1
20894 Try \`$0 --help' for more information." >&5
20895 echo "$as_me: error: unrecognized option: $1
20896 Try \`$0 --help' for more information." >&2;}
20897 { (exit 1); exit 1; }; } ;;
20899 *) ac_config_targets="$ac_config_targets $1" ;;
20908 ## ----------------------- ##
20909 ## Running config.status. ##
20910 ## ----------------------- ##
20912 This file was extended by $as_me 2.52.20101002, executed with
20913 CONFIG_FILES = $CONFIG_FILES
20914 CONFIG_HEADERS = $CONFIG_HEADERS
20915 CONFIG_LINKS = $CONFIG_LINKS
20916 CONFIG_COMMANDS = $CONFIG_COMMANDS
20917 > $ac_cs_invocation
20918 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20923 cat >>$CONFIG_STATUS <<EOF
20925 # INIT-COMMANDS section.
20928 ### Special initialization commands, used to pass information from the
20929 ### configuration-run into config.status
20932 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
20933 DFT_LWR_MODEL="$DFT_LWR_MODEL"
20934 ECHO_LINK="$ECHO_LINK"
20935 LDCONFIG="$LDCONFIG"
20936 LIBTOOL_VERSION="$LIBTOOL_VERSION"
20937 LIB_NAME="$LIB_NAME"
20938 LIB_PREFIX="$LIB_PREFIX"
20939 LIB_SUBSETS="$LIB_SUBSETS"
20940 LIB_SUFFIX="$LIB_SUFFIX"
20941 LIB_TRACING="$LIB_TRACING"
20943 MAKE_TERMINFO="$MAKE_TERMINFO"
20944 NCURSES_MAJOR="$NCURSES_MAJOR"
20945 NCURSES_MINOR="$NCURSES_MINOR"
20946 NCURSES_OSPEED="$NCURSES_OSPEED"
20947 NCURSES_PATCH="$NCURSES_PATCH"
20948 SRC_SUBDIRS="$SRC_SUBDIRS"
20949 TERMINFO="$TERMINFO"
20950 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
20951 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
20952 TICS_NAME="$TICS_NAME"
20953 TIC_PATH="$TIC_PATH"
20954 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
20955 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
20956 TINFO_NAME="$TINFO_NAME"
20957 TINFO_SUFFIX="$TINFO_SUFFIX"
20958 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
20959 WITH_CURSES_H="$with_curses_h"
20960 WITH_ECHO="$with_echo"
20961 WITH_OVERWRITE="$with_overwrite"
20962 cf_LIST_MODELS="$cf_list_models"
20963 cf_cv_abi_version="$cf_cv_abi_version"
20964 cf_cv_do_relink="$cf_cv_do_relink"
20965 cf_cv_do_symlinks="$cf_cv_do_symlinks"
20966 cf_cv_enable_lp64="$cf_cv_enable_lp64"
20967 cf_cv_enable_opaque="$cf_cv_enable_opaque"
20968 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
20969 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
20970 cf_cv_prog_gnat_correct=$cf_cv_prog_gnat_correct
20971 cf_cv_rel_version="$cf_cv_rel_version"
20972 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
20973 cf_cv_shared_soname='$cf_cv_shared_soname'
20974 cf_cv_shlib_version="$cf_cv_shlib_version"
20975 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
20976 cf_cv_system_name="$cf_cv_system_name"
20977 cf_cv_term_driver="$with_term_driver"
20978 cf_with_ada="$cf_with_ada"
20979 cf_with_cxx_binding="$cf_with_cxx_binding"
20980 cf_with_manpages="$cf_with_manpages"
20981 cf_with_tests="$cf_with_tests"
20987 cat >>$CONFIG_STATUS <<\EOF
20988 for ac_config_target in $ac_config_targets
20990 case "$ac_config_target" in
20991 # Handling of arguments.
20992 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
20993 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
20994 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
20995 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
20996 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
20997 "$SUB_SCRIPTS" ) CONFIG_FILES="$CONFIG_FILES $SUB_SCRIPTS" ;;
20998 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
20999 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21000 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21001 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
21002 *) { { echo "$as_me:21002: error: invalid argument: $ac_config_target" >&5
21003 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21004 { (exit 1); exit 1; }; };;
21008 # If the user did not use the arguments to specify the items to instantiate,
21009 # then the envvar interface is used. Set only those that are not.
21010 # We use the long form for the default assignment because of an extremely
21011 # bizarre bug on SunOS 4.1.3.
21012 if $ac_need_defaults; then
21013 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21014 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21015 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21018 # Create a temporary directory, and hook for its removal unless debugging.
21021 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21022 trap '{ (exit 1); exit 1; }' 1 2 13 15
21025 # Create a (secure) tmp directory for tmp files.
21028 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
21029 test -n "$tmp" && test -d "$tmp"
21032 tmp=$TMPDIR/cs$$-$RANDOM
21033 (umask 077 && mkdir $tmp)
21036 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
21037 { (exit 1); exit 1; }
21042 cat >>$CONFIG_STATUS <<EOF
21045 # CONFIG_FILES section.
21048 # No need to generate the scripts if there are no CONFIG_FILES.
21049 # This happens for instance when ./config.status config.h
21050 if test -n "\$CONFIG_FILES"; then
21051 # Protect against being on the right side of a sed subst in config.status.
21052 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21053 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21054 s,@SHELL@,$SHELL,;t t
21055 s,@exec_prefix@,$exec_prefix,;t t
21056 s,@prefix@,$prefix,;t t
21057 s,@program_transform_name@,$program_transform_name,;t t
21058 s,@bindir@,$bindir,;t t
21059 s,@sbindir@,$sbindir,;t t
21060 s,@libexecdir@,$libexecdir,;t t
21061 s,@datadir@,$datadir,;t t
21062 s,@sysconfdir@,$sysconfdir,;t t
21063 s,@sharedstatedir@,$sharedstatedir,;t t
21064 s,@localstatedir@,$localstatedir,;t t
21065 s,@libdir@,$libdir,;t t
21066 s,@includedir@,$includedir,;t t
21067 s,@oldincludedir@,$oldincludedir,;t t
21068 s,@infodir@,$infodir,;t t
21069 s,@mandir@,$mandir,;t t
21070 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21071 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21072 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21073 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21074 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21075 s,@build_alias@,$build_alias,;t t
21076 s,@host_alias@,$host_alias,;t t
21077 s,@target_alias@,$target_alias,;t t
21078 s,@ECHO_C@,$ECHO_C,;t t
21079 s,@ECHO_N@,$ECHO_N,;t t
21080 s,@ECHO_T@,$ECHO_T,;t t
21081 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21082 s,@DEFS@,$DEFS,;t t
21083 s,@LIBS@,$LIBS,;t t
21084 s,@top_builddir@,$top_builddir,;t t
21085 s,@EGREP@,$EGREP,;t t
21086 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
21087 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
21088 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
21089 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
21090 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
21091 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
21092 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
21093 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
21094 s,@build@,$build,;t t
21095 s,@build_cpu@,$build_cpu,;t t
21096 s,@build_vendor@,$build_vendor,;t t
21097 s,@build_os@,$build_os,;t t
21098 s,@host@,$host,;t t
21099 s,@host_cpu@,$host_cpu,;t t
21100 s,@host_vendor@,$host_vendor,;t t
21101 s,@host_os@,$host_os,;t t
21102 s,@target@,$target,;t t
21103 s,@target_cpu@,$target_cpu,;t t
21104 s,@target_vendor@,$target_vendor,;t t
21105 s,@target_os@,$target_os,;t t
21107 s,@CFLAGS@,$CFLAGS,;t t
21108 s,@LDFLAGS@,$LDFLAGS,;t t
21109 s,@CPPFLAGS@,$CPPFLAGS,;t t
21110 s,@ac_ct_CC@,$ac_ct_CC,;t t
21111 s,@EXEEXT@,$EXEEXT,;t t
21112 s,@OBJEXT@,$OBJEXT,;t t
21114 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
21115 s,@PROG_EXT@,$PROG_EXT,;t t
21116 s,@LDCONFIG@,$LDCONFIG,;t t
21118 s,@CXXFLAGS@,$CXXFLAGS,;t t
21119 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21121 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21122 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21123 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21124 s,@LINT@,$LINT,;t t
21125 s,@LINT_OPTS@,$LINT_OPTS,;t t
21126 s,@LN_S@,$LN_S,;t t
21127 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21128 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
21129 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
21130 s,@SET_MAKE@,$SET_MAKE,;t t
21131 s,@CTAGS@,$CTAGS,;t t
21132 s,@ETAGS@,$ETAGS,;t t
21133 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
21134 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
21135 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
21136 s,@RANLIB@,$RANLIB,;t t
21137 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21139 s,@ac_ct_LD@,$ac_ct_LD,;t t
21141 s,@ac_ct_AR@,$ac_ct_AR,;t t
21142 s,@ARFLAGS@,$ARFLAGS,;t t
21143 s,@DESTDIR@,$DESTDIR,;t t
21144 s,@BUILD_CC@,$BUILD_CC,;t t
21145 s,@BUILD_CPP@,$BUILD_CPP,;t t
21146 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
21147 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
21148 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
21149 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
21150 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
21151 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
21152 s,@cf_list_models@,$cf_list_models,;t t
21153 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
21154 s,@LIBTOOL@,$LIBTOOL,;t t
21155 s,@LT_UNDEF@,$LT_UNDEF,;t t
21156 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
21157 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
21158 s,@LIB_CREATE@,$LIB_CREATE,;t t
21159 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
21160 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
21161 s,@LIB_PREP@,$LIB_PREP,;t t
21162 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
21163 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
21164 s,@LIB_LINK@,$LIB_LINK,;t t
21165 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
21166 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
21167 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
21168 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
21169 s,@TICS_NAME@,$TICS_NAME,;t t
21170 s,@TINFO_NAME@,$TINFO_NAME,;t t
21171 s,@LIB_NAME@,$LIB_NAME,;t t
21172 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
21173 s,@CC_G_OPT@,$CC_G_OPT,;t t
21174 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
21175 s,@LD_MODEL@,$LD_MODEL,;t t
21176 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
21177 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
21178 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
21179 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
21180 s,@LINK_PROGS@,$LINK_PROGS,;t t
21181 s,@LINK_TESTS@,$LINK_TESTS,;t t
21182 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
21183 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
21184 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
21185 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
21186 s,@RPATH_LIST@,$RPATH_LIST,;t t
21187 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
21188 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
21189 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
21190 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
21191 s,@XTERM_KBS@,$XTERM_KBS,;t t
21192 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
21193 s,@TERMINFO@,$TERMINFO,;t t
21194 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
21195 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
21196 s,@TERMPATH@,$TERMPATH,;t t
21197 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
21198 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
21199 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
21200 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
21201 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
21202 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
21203 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
21204 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
21205 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
21206 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
21207 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
21208 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
21209 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
21210 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
21211 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
21212 s,@NCURSES_TPARM_ARG@,$NCURSES_TPARM_ARG,;t t
21213 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
21214 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
21215 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
21216 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
21217 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
21218 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
21219 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
21220 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
21221 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
21222 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
21223 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
21224 s,@PTHREAD@,$PTHREAD,;t t
21225 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
21226 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
21227 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
21228 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
21229 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
21230 s,@ECHO_LINK@,$ECHO_LINK,;t t
21231 s,@ADAFLAGS@,$ADAFLAGS,;t t
21232 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
21233 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
21234 s,@ADA_TRACE@,$ADA_TRACE,;t t
21235 s,@MATH_LIB@,$MATH_LIB,;t t
21236 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
21237 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
21238 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
21239 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
21240 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
21241 s,@TEST_LIBS@,$TEST_LIBS,;t t
21242 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
21243 s,@CXXCPP@,$CXXCPP,;t t
21244 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
21245 s,@CXX_AR@,$CXX_AR,;t t
21246 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
21247 s,@CXXLIBS@,$CXXLIBS,;t t
21248 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
21249 s,@gnat_exists@,$gnat_exists,;t t
21250 s,@M4_exists@,$M4_exists,;t t
21251 s,@cf_ada_make@,$cf_ada_make,;t t
21252 s,@cf_compile_generics@,$cf_compile_generics,;t t
21253 s,@cf_generic_objects@,$cf_generic_objects,;t t
21254 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
21255 s,@PRAGMA_UNREF@,$PRAGMA_UNREF,;t t
21256 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
21257 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
21258 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
21259 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
21260 s,@cf_ada_package@,$cf_ada_package,;t t
21261 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
21262 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
21263 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
21264 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
21265 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
21266 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
21267 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
21268 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
21269 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
21270 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
21271 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
21272 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
21273 s,@TICS_LDFLAGS@,$TICS_LDFLAGS,;t t
21274 s,@TICS_LIBS@,$TICS_LIBS,;t t
21275 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
21276 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
21277 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
21278 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
21279 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
21280 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
21281 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
21282 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
21283 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
21284 s,@TICS_LIST@,$TICS_LIST,;t t
21285 s,@TINFO_LIST@,$TINFO_LIST,;t t
21286 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
21287 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
21288 s,@TEST_ARGS@,$TEST_ARGS,;t t
21289 s,@TEST_DEPS@,$TEST_DEPS,;t t
21290 s,@TEST_ARG2@,$TEST_ARG2,;t t
21291 s,@TEST_DEP2@,$TEST_DEP2,;t t
21292 s,@PC_MODULES_TO_MAKE@,$PC_MODULES_TO_MAKE,;t t
21293 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
21294 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
21295 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
21296 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
21297 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
21298 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
21299 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
21300 s,@cross_compiling@,$cross_compiling,;t t
21301 s,@TIC_PATH@,$TIC_PATH,;t t
21302 s,@MAKE_TESTS@,$MAKE_TESTS,;t t
21303 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
21308 cat >>$CONFIG_STATUS <<\EOF
21309 # Split the substitutions into bite-sized pieces for seds with
21310 # small command number limits, like on Digital OSF/1 and HP-UX.
21311 ac_max_sed_lines=48
21312 ac_sed_frag=1 # Number of current file.
21313 ac_beg=1 # First line for current file.
21314 ac_end=$ac_max_sed_lines # Line after last line for current file.
21317 while $ac_more_lines; do
21318 if test $ac_beg -gt 1; then
21319 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21321 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21323 if test ! -s $tmp/subs.frag; then
21324 ac_more_lines=false
21326 # The purpose of the label and of the branching condition is to
21327 # speed up the sed processing (if there are no `@' at all, there
21328 # is no need to browse any of the substitutions).
21329 # These are the two extra sed commands mentioned above.
21331 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21332 if test -z "$ac_sed_cmds"; then
21333 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21335 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21337 ac_sed_frag=`expr $ac_sed_frag + 1`
21339 ac_end=`expr $ac_end + $ac_max_sed_lines`
21342 if test -z "$ac_sed_cmds"; then
21345 fi # test -n "$CONFIG_FILES"
21348 cat >>$CONFIG_STATUS <<\EOF
21349 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21350 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21352 - | *:- | *:-:* ) # input from stdin
21354 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21355 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21356 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21357 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21358 * ) ac_file_in=$ac_file.in ;;
21361 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21362 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21363 X"$ac_file" : 'X\(//\)[^/]' \| \
21364 X"$ac_file" : 'X\(//\)$' \| \
21365 X"$ac_file" : 'X\(/\)' \| \
21366 . : '\(.\)' 2>/dev/null ||
21368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21369 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21370 /^X\(\/\/\)$/{ s//\1/; q; }
21371 /^X\(\/\).*/{ s//\1/; q; }
21373 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21374 { case "$ac_dir" in
21375 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
21379 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
21380 case $as_mkdir_dir in
21381 # Skip DOS drivespec
21382 ?:) as_incr_dir=$as_mkdir_dir ;;
21384 as_incr_dir=$as_incr_dir/$as_mkdir_dir
21385 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
21390 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
21391 # A "../" for each directory in $ac_dir_suffix.
21392 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
21394 ac_dir_suffix= ac_dots=
21399 if test -z "$ac_dots"; then
21402 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
21404 [\\/]* | ?:[\\/]* )
21405 ac_srcdir=$srcdir$ac_dir_suffix;
21406 ac_top_srcdir=$srcdir ;;
21407 *) # Relative path.
21408 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
21409 ac_top_srcdir=$ac_dots$srcdir ;;
21413 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21414 *) ac_INSTALL=$ac_dots$INSTALL ;;
21417 if test x"$ac_file" != x-; then
21418 { echo "$as_me:21418: creating $ac_file" >&5
21419 echo "$as_me: creating $ac_file" >&6;}
21422 # Let's still pretend it is `configure' which instantiates (i.e., don't
21423 # use $as_me), people would be surprised to read:
21424 # /* config.h. Generated automatically by config.status. */
21425 configure_input="Generated automatically from `echo $ac_file_in |
21426 sed 's,.*/,,'` by configure."
21428 # First look for the input files in the build tree, otherwise in the
21430 ac_file_inputs=`IFS=:
21431 for f in $ac_file_in; do
21433 -) echo $tmp/stdin ;;
21435 # Absolute (can't be DOS-style, as IFS=:)
21436 test -f "$f" || { { echo "$as_me:21436: error: cannot find input file: $f" >&5
21437 echo "$as_me: error: cannot find input file: $f" >&2;}
21438 { (exit 1); exit 1; }; }
21441 if test -f "$f"; then
21444 elif test -f "$srcdir/$f"; then
21449 { { echo "$as_me:21449: error: cannot find input file: $f" >&5
21450 echo "$as_me: error: cannot find input file: $f" >&2;}
21451 { (exit 1); exit 1; }; }
21454 done` || { (exit 1); exit 1; }
21456 cat >>$CONFIG_STATUS <<EOF
21460 cat >>$CONFIG_STATUS <<\EOF
21462 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21463 s,@configure_input@,$configure_input,;t t
21464 s,@srcdir@,$ac_srcdir,;t t
21465 s,@top_srcdir@,$ac_top_srcdir,;t t
21466 s,@INSTALL@,$ac_INSTALL,;t t
21467 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21469 if test x"$ac_file" != x-; then
21470 mv $tmp/out $ac_file
21478 cat >>$CONFIG_STATUS <<\EOF
21481 # CONFIG_HEADER section.
21484 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21485 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21487 # ac_d sets the value in "#define NAME VALUE" lines.
21488 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21489 ac_dB='[ ].*$,\1#\2'
21492 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
21493 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21494 ac_iB='\([ ]\),\1#\2define\3'
21497 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21498 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21499 ac_uB='$,\1#\2define\3'
21503 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21504 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21506 - | *:- | *:-:* ) # input from stdin
21508 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21509 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21510 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21511 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21512 * ) ac_file_in=$ac_file.in ;;
21515 test x"$ac_file" != x- && { echo "$as_me:21515: creating $ac_file" >&5
21516 echo "$as_me: creating $ac_file" >&6;}
21518 # First look for the input files in the build tree, otherwise in the
21520 ac_file_inputs=`IFS=:
21521 for f in $ac_file_in; do
21523 -) echo $tmp/stdin ;;
21525 # Absolute (can't be DOS-style, as IFS=:)
21526 test -f "$f" || { { echo "$as_me:21526: error: cannot find input file: $f" >&5
21527 echo "$as_me: error: cannot find input file: $f" >&2;}
21528 { (exit 1); exit 1; }; }
21531 if test -f "$f"; then
21534 elif test -f "$srcdir/$f"; then
21539 { { echo "$as_me:21539: error: cannot find input file: $f" >&5
21540 echo "$as_me: error: cannot find input file: $f" >&2;}
21541 { (exit 1); exit 1; }; }
21544 done` || { (exit 1); exit 1; }
21545 # Remove the trailing spaces.
21546 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21550 # Transform confdefs.h into a list of #define's. We won't use it as a sed
21551 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
21552 # be either 'cat' or 'sort'.
21553 cat confdefs.h | uniq >conftest.vals
21555 # Break up conftest.vals because some shells have a limit on
21556 # the size of here documents, and old seds have small limits too.
21558 rm -f conftest.tail
21559 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
21560 while grep . conftest.vals >/dev/null
21562 # Write chunks of a limited-size here document to conftest.frag.
21563 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
21564 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
21565 echo 'CEOF' >> $CONFIG_STATUS
21566 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
21567 rm -f conftest.vals
21568 mv conftest.tail conftest.vals
21570 rm -f conftest.vals
21572 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
21574 echo ' cat >> conftest.edit <<CEOF
21575 /@DEFS@/r conftest.frag
21578 sed -f conftest.edit $tmp/in > $tmp/out
21580 mv $tmp/out $tmp/in
21581 rm -f conftest.edit conftest.frag
21582 ' >> $CONFIG_STATUS
21584 cat >>$CONFIG_STATUS <<\EOF
21585 # Let's still pretend it is `configure' which instantiates (i.e., don't
21586 # use $as_me), people would be surprised to read:
21587 # /* config.h. Generated automatically by config.status. */
21588 if test x"$ac_file" = x-; then
21589 echo "/* Generated automatically by configure. */" >$tmp/config.h
21591 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
21593 cat $tmp/in >>$tmp/config.h
21595 if test x"$ac_file" != x-; then
21596 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
21597 { echo "$as_me:21597: $ac_file is unchanged" >&5
21598 echo "$as_me: $ac_file is unchanged" >&6;}
21600 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21601 X"$ac_file" : 'X\(//\)[^/]' \| \
21602 X"$ac_file" : 'X\(//\)$' \| \
21603 X"$ac_file" : 'X\(/\)' \| \
21604 . : '\(.\)' 2>/dev/null ||
21606 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21607 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21608 /^X\(\/\/\)$/{ s//\1/; q; }
21609 /^X\(\/\).*/{ s//\1/; q; }
21611 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21612 { case "$ac_dir" in
21613 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
21617 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
21618 case $as_mkdir_dir in
21619 # Skip DOS drivespec
21620 ?:) as_incr_dir=$as_mkdir_dir ;;
21622 as_incr_dir=$as_incr_dir/$as_mkdir_dir
21623 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
21630 mv $tmp/config.h $ac_file
21634 rm -f $tmp/config.h
21638 cat >>$CONFIG_STATUS <<\EOF
21640 # CONFIG_COMMANDS section.
21642 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21643 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21644 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21648 if test "x$cf_with_tests" != xno ; then
21652 if test ! -d $srcdir/$cf_dir; then
21654 elif test -f $srcdir/$cf_dir/programs; then
21655 $AWK -f $srcdir/test/mk-test.awk INSTALL=no ECHO_LINK="$ECHO_LINK" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
21661 cf_prefix=$LIB_PREFIX
21663 case $cf_cv_shlib_version in #(vi
21665 TINFO_NAME=$TINFO_ARG_SUFFIX
21670 if test -n "$TINFO_SUFFIX" ; then
21671 case $TINFO_SUFFIX in
21673 TINFO_NAME="${TINFO_NAME}tw"
21674 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^tw//'`
21677 TINFO_NAME="${TINFO_NAME}t"
21678 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^t//'`
21681 TINFO_NAME="${TINFO_NAME}w"
21682 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^w//'`
21687 for cf_dir in $SRC_SUBDIRS
21689 if test ! -d $srcdir/$cf_dir ; then
21691 elif test -f $srcdir/$cf_dir/modules; then
21695 for cf_item in $cf_LIST_MODELS
21698 case $cf_item in #(vi
21701 cf_depsuf=$cf_suffix
21705 cf_depsuf=$cf_suffix
21709 cf_depsuf=$cf_suffix
21713 cf_depsuf=$cf_suffix
21716 case $cf_cv_system_name in
21719 cf_depsuf=$cf_suffix
21721 cygwin*|mingw*) #(vi
21727 cf_depsuf=$cf_suffix
21733 cf_depsuf=$cf_suffix
21737 cf_depsuf=$cf_suffix
21742 cf_depsuf=$cf_suffix
21746 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
21747 test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"
21749 if test $cf_item = shared ; then
21750 if test "$cf_cv_do_symlinks" = yes ; then
21751 case "$cf_cv_shlib_version" in #(vi
21753 case "$cf_cv_system_name" in #(vi
21755 case .${LIB_SUFFIX} in
21757 cf_suffix=`echo $cf_suffix | sed 's/^tw//'`
21758 cf_suffix=tw'.${REL_VERSION}'"$cf_suffix"
21761 cf_suffix=`echo $cf_suffix | sed 's/^t//'`
21762 cf_suffix=t'.${REL_VERSION}'"$cf_suffix"
21765 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
21766 cf_suffix=w'.${REL_VERSION}'"$cf_suffix"
21769 cf_suffix='.${REL_VERSION}'"$cf_suffix"
21773 *) cf_suffix="$cf_suffix"'.${REL_VERSION}' ;;
21777 case "$cf_cv_system_name" in #(vi
21779 case .${LIB_SUFFIX} in
21781 cf_suffix=`echo $cf_suffix | sed 's/^tw//'`
21782 cf_suffix=tw'.${ABI_VERSION}'"$cf_suffix"
21785 cf_suffix=`echo $cf_suffix | sed 's/^t//'`
21786 cf_suffix=t'.${ABI_VERSION}'"$cf_suffix"
21789 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
21790 cf_suffix=w'.${ABI_VERSION}'"$cf_suffix"
21793 cf_suffix='.${ABI_VERSION}'"$cf_suffix"
21797 *) cf_suffix="$cf_suffix"'.${ABI_VERSION}' ;;
21802 # cygwin needs import library, and has unique naming convention
21803 # use autodetected ${cf_prefix} for import lib and static lib, but
21804 # use 'cyg' prefix for shared lib.
21805 case $cf_cv_shlib_version in #(vi
21807 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
21808 LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/cyg${cf_dir}${cf_cygsuf}"
21812 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
21813 LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/lib${cf_dir}${cf_cygsuf}"
21818 LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/${cf_prefix}${cf_dir}${cf_suffix}"
21821 if test $cf_dir = ncurses ; then
21822 cf_subsets="$LIB_SUBSETS"
21823 cf_r_parts="$cf_subsets"
21824 cf_liblist="$LIBS_TO_MAKE"
21826 while test -n "$cf_r_parts"
21828 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
21829 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
21830 if test "$cf_l_parts" != "$cf_r_parts" ; then
21832 case $cf_l_parts in #(vi
21834 cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
21837 cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
21843 if test -n "$cf_item"; then
21844 LIBS_TO_MAKE="$cf_item $LIBS_TO_MAKE"
21851 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
21854 sed -e "s%@LIBS_TO_MAKE@%$LIBS_TO_MAKE%" \
21855 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
21856 $cf_dir/Makefile >$cf_dir/Makefile.out
21857 mv $cf_dir/Makefile.out $cf_dir/Makefile
21859 $AWK -f $srcdir/mk-0th.awk \
21860 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" \
21861 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
21863 for cf_subset in $cf_subsets
21866 for cf_item in $cf_LIST_MODELS
21868 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
21870 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
21872 case $cf_item in #(vi
21875 cf_depsuf=$cf_suffix
21879 cf_depsuf=$cf_suffix
21883 cf_depsuf=$cf_suffix
21887 cf_depsuf=$cf_suffix
21890 case $cf_cv_system_name in
21893 cf_depsuf=$cf_suffix
21895 cygwin*|mingw*) #(vi
21901 cf_depsuf=$cf_suffix
21907 cf_depsuf=$cf_suffix
21911 cf_depsuf=$cf_suffix
21916 cf_depsuf=$cf_suffix
21920 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
21921 test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"
21924 libtool) cf_subdir='obj_lo' ;;
21925 normal) cf_subdir='objects' ;;
21926 debug) cf_subdir='obj_g' ;;
21927 profile) cf_subdir='obj_p' ;;
21929 case $cf_cv_system_name in #(vi
21931 cf_subdir='objects' ;;
21933 cf_subdir='obj_s' ;;
21937 # Test for case where we build libtinfo with a different name.
21939 if test $cf_dir = ncurses ; then
21942 cf_libname=${cf_libname}$LIB_SUFFIX
21945 cf_libname=$TINFO_LIB_SUFFIX
21948 cf_libname=$TICS_LIB_SUFFIX
21952 cf_libname=${cf_libname}$LIB_SUFFIX
21954 if test -n "${DFT_ARG_SUFFIX}" ; then
21955 # undo $LIB_SUFFIX add-on in CF_LIB_SUFFIX
21956 cf_suffix=`echo $cf_suffix |sed -e "s%^${LIB_SUFFIX}%%"`
21959 # These dependencies really are for development, not
21960 # builds, but they are useful in porting, too.
21961 cf_depend="../include/ncurses_cfg.h"
21962 if test "$srcdir" = "."; then
21965 cf_reldir="\${srcdir}"
21968 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
21969 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
21970 elif test -f $srcdir/$cf_dir/curses.priv.h; then
21971 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
21975 old_cf_suffix="$cf_suffix"
21976 if test "$cf_cv_shlib_version_infix" = yes ; then
21977 if test -n "$LIB_SUFFIX" ; then
21978 case $LIB_SUFFIX in
21980 cf_libname=`echo $cf_libname | sed 's/tw$//'`
21981 cf_suffix=`echo $cf_suffix | sed 's/^tw//'`
21985 cf_libname=`echo $cf_libname | sed 's/t$//'`
21986 cf_suffix=`echo $cf_suffix | sed 's/^t//'`
21990 cf_libname=`echo $cf_libname | sed 's/w$//'`
21991 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
21998 $AWK -f $srcdir/mk-1st.awk \
21999 name=${cf_libname}${cf_dir_suffix} \
22000 traces=$LIB_TRACING \
22003 prefix=$cf_prefix \
22004 suffix=$cf_suffix \
22005 subset=$cf_subset \
22006 driver=$cf_cv_term_driver \
22008 TermlibRoot=$TINFO_NAME \
22009 TermlibSuffix=$TINFO_SUFFIX \
22010 ShlibVer=$cf_cv_shlib_version \
22011 ShlibVerInfix=$cf_cv_shlib_version_infix \
22012 ReLink=${cf_cv_do_relink:-no} \
22013 DoLinks=$cf_cv_do_symlinks \
22014 rmSoLocs=$cf_cv_rm_so_locs \
22015 ldconfig="$LDCONFIG" \
22016 overwrite=$WITH_OVERWRITE \
22017 depend="$cf_depend" \
22019 libtool_version="$LIBTOOL_VERSION" \
22020 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
22022 cf_suffix="$old_cf_suffix"
22024 for cf_subdir2 in $cf_subdirs lib
22026 test $cf_subdir = $cf_subdir2 && break
22028 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
22029 $AWK -f $srcdir/mk-2nd.awk \
22031 traces=$LIB_TRACING \
22034 subset=$cf_subset \
22037 crenames=$cf_cv_prog_CC_c_o \
22038 cxxrenames=$cf_cv_prog_CXX_c_o \
22039 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
22040 cf_subdirs="$cf_subdirs $cf_subdir"
22045 echo ' cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@' >>Makefile
22048 for cf_dir in $SRC_SUBDIRS
22050 if test ! -d $srcdir/$cf_dir ; then
22054 if test -f $cf_dir/Makefile ; then
22057 echo 'libs \' >> Makefile
22058 echo 'install.libs \' >> Makefile
22059 echo 'uninstall.libs ::' >> Makefile
22060 echo ' cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@' >> Makefile
22065 if test -f $srcdir/$cf_dir/modules; then
22067 if test -f $srcdir/$cf_dir/headers; then
22068 cat >> Makefile <<CF_EOF
22069 install.includes \\
22070 uninstall.includes \\
22073 if test "$cf_dir" != "c++" ; then
22074 echo 'lint \' >> Makefile
22076 cat >> Makefile <<CF_EOF
22082 uninstall.$cf_dir ::
22083 cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@
22085 elif test -f $srcdir/$cf_dir/headers; then
22086 cat >> Makefile <<CF_EOF
22091 install.includes \\
22092 uninstall.includes ::
22093 cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@
22098 cat >> Makefile <<CF_EOF
22100 install.libs uninstall.libs \\
22101 install.data uninstall.data ::
22102 $MAKE_TERMINFO cd misc && \${MAKE} \${CF_MFLAGS} \$@
22105 if test "x$cf_with_manpages" = xyes; then
22106 cat >> Makefile <<CF_EOF
22110 cd man && \${MAKE} \${CF_MFLAGS} \$@
22114 cat >> Makefile <<CF_EOF
22117 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
22118 rm -f headers.sh headers.sed mk_shared_lib.sh
22119 rm -f edit_man.* man_alias.*
22120 rm -rf \${DIRS_TO_MAKE}
22123 # Special case: tack's manpage lives in its own directory.
22124 if test "x$cf_with_manpages" = xyes; then
22125 if test -d tack ; then
22126 if test -f $srcdir/$tack.h; then
22127 cat >> Makefile <<CF_EOF
22131 cd tack && \${MAKE} \${CF_MFLAGS} \$@
22137 rm -f headers.sed headers.sh
22139 echo creating headers.sh
22140 cat >headers.sh <<CF_EOF
22142 # This shell script is generated by the 'configure' script. It is invoked in a
22143 # subdirectory of the build tree. It generates a sed-script in the parent
22144 # directory that is used to adjust includes for header files that reside in a
22145 # subdirectory of /usr/include, etc.
22147 while test \$# != 3
22149 PRG="\$PRG \$1"; shift
22154 TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
22155 TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
22156 echo installing \$SRC in \$DST
22159 if test $WITH_CURSES_H = yes; then
22160 cat >>headers.sh <<CF_EOF
22163 END=\`basename \$DST\`
22164 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
22166 NAME=\`basename \$i\`
22167 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
22171 echo "" >> \$TMPSED
22177 cat >>headers.sh <<CF_EOF
22180 END=\`basename \$DST\`
22181 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
22183 NAME=\`basename \$i\`
22184 if test "\$NAME" = "curses.h"
22186 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
22189 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
22193 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
22198 cat >>headers.sh <<CF_EOF
22200 sed -f \$TMPSED \$SRC > \$TMPSRC
22201 NAME=\`basename \$SRC\`
22203 if test $WITH_CURSES_H != yes; then
22204 cat >>headers.sh <<CF_EOF
22205 test "\$NAME" = "curses.h" && NAME=ncurses.h
22208 cat >>headers.sh <<CF_EOF
22209 # Just in case someone gzip'd manpages, remove the conflicting copy.
22210 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
22212 eval \$PRG \$TMPSRC \$DST/\$NAME
22213 rm -f \$TMPSRC \$TMPSED
22216 chmod 0755 headers.sh
22218 for cf_dir in $SRC_SUBDIRS
22220 if test ! -d $srcdir/$cf_dir ; then
22224 if test -f $srcdir/$cf_dir/headers; then
22225 $AWK -f $srcdir/mk-hdr.awk \
22226 subset="$LIB_SUBSETS" \
22227 compat="$WITH_CURSES_H" \
22228 $srcdir/$cf_dir/headers >>$cf_dir/Makefile
22231 if test -f $srcdir/$cf_dir/modules; then
22232 if test "$cf_dir" != "c++" ; then
22233 cat >>$cf_dir/Makefile <<"CF_EOF"
22234 depend : ${AUTO_SRC}
22235 makedepend -- ${CPPFLAGS} -- ${C_SRC}
22237 # DO NOT DELETE THIS LINE -- make depend depends on it.
22243 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
22244 if test -z "$USE_OLD_MAKERULES" ; then
22245 $AWK -f $srcdir/Ada95/mk-1st.awk <$srcdir/Ada95/src/modules >>Ada95/src/Makefile
22253 cat >>$CONFIG_STATUS <<\EOF
22255 { (exit 0); exit 0; }
22257 chmod +x $CONFIG_STATUS
22258 ac_clean_files=$ac_clean_files_save
22260 # configure is writing to config.log, and then calls config.status.
22261 # config.status does its own redirection, appending to config.log.
22262 # Unfortunately, on DOS this fails, as config.log is still kept open
22263 # by configure, so config.status won't be able to write to it; its
22264 # output is simply discarded. So we exec the FD to /dev/null,
22265 # effectively closing config.log, so it can be properly (re)opened and
22266 # appended to by config.status. When coming back to configure, we
22267 # need to make the FD available again.
22268 if test "$no_create" != yes; then
22271 $SHELL $CONFIG_STATUS || ac_cs_success=false
22273 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22274 # would make configure fail if this is the last instruction.
22275 $ac_cs_success || { (exit 1); exit 1; }
22277 ${MAKE:-make} preinstall