2 # From configure.in Revision: 1.552 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20120310.
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-ada suppress check for Ada95, don't build demo
698 --without-cxx do not adjust ncurses bool to match C++
699 --without-cxx-binding do not build C++ binding and 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 --disable-echo display "compiling" commands
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.20120310. 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 # Check whether --with-ada or --without-ada was given.
1413 if test "${with_ada+set}" = set; then
1415 cf_with_ada=$withval
1419 if test x"$cf_with_ada" = xyes
1421 cf_PROG_CC="gnatgcc gcc cc"
1427 ac_cpp='$CPP $CPPFLAGS'
1428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1431 ac_main_return=return
1432 if test -n "$ac_tool_prefix"; then
1433 for ac_prog in $cf_PROG_CC
1435 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1436 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1437 echo "$as_me:1437: checking for $ac_word" >&5
1438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1439 if test "${ac_cv_prog_CC+set}" = set; then
1440 echo $ECHO_N "(cached) $ECHO_C" >&6
1442 if test -n "$CC"; then
1443 ac_cv_prog_CC="$CC" # Let the user override the test.
1445 ac_save_IFS=$IFS; IFS=$ac_path_separator
1447 for ac_dir in $ac_dummy; do
1449 test -z "$ac_dir" && ac_dir=.
1450 $as_executable_p "$ac_dir/$ac_word" || continue
1451 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1452 echo "$as_me:1452: found $ac_dir/$ac_word" >&5
1459 if test -n "$CC"; then
1460 echo "$as_me:1460: result: $CC" >&5
1461 echo "${ECHO_T}$CC" >&6
1463 echo "$as_me:1463: result: no" >&5
1464 echo "${ECHO_T}no" >&6
1467 test -n "$CC" && break
1470 if test -z "$CC"; then
1472 for ac_prog in $cf_PROG_CC
1474 # Extract the first word of "$ac_prog", so it can be a program name with args.
1475 set dummy $ac_prog; ac_word=$2
1476 echo "$as_me:1476: checking for $ac_word" >&5
1477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1478 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1479 echo $ECHO_N "(cached) $ECHO_C" >&6
1481 if test -n "$ac_ct_CC"; then
1482 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1484 ac_save_IFS=$IFS; IFS=$ac_path_separator
1486 for ac_dir in $ac_dummy; do
1488 test -z "$ac_dir" && ac_dir=.
1489 $as_executable_p "$ac_dir/$ac_word" || continue
1490 ac_cv_prog_ac_ct_CC="$ac_prog"
1491 echo "$as_me:1491: found $ac_dir/$ac_word" >&5
1497 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1498 if test -n "$ac_ct_CC"; then
1499 echo "$as_me:1499: result: $ac_ct_CC" >&5
1500 echo "${ECHO_T}$ac_ct_CC" >&6
1502 echo "$as_me:1502: result: no" >&5
1503 echo "${ECHO_T}no" >&6
1506 test -n "$ac_ct_CC" && break
1512 test -z "$CC" && { { echo "$as_me:1512: error: no acceptable cc found in \$PATH" >&5
1513 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1514 { (exit 1); exit 1; }; }
1516 # Provide some information about the compiler.
1517 echo "$as_me:1517:" \
1518 "checking for C compiler version" >&5
1519 ac_compiler=`set X $ac_compile; echo $2`
1520 { (eval echo "$as_me:1520: \"$ac_compiler --version </dev/null >&5\"") >&5
1521 (eval $ac_compiler --version </dev/null >&5) 2>&5
1523 echo "$as_me:1523: \$? = $ac_status" >&5
1524 (exit $ac_status); }
1525 { (eval echo "$as_me:1525: \"$ac_compiler -v </dev/null >&5\"") >&5
1526 (eval $ac_compiler -v </dev/null >&5) 2>&5
1528 echo "$as_me:1528: \$? = $ac_status" >&5
1529 (exit $ac_status); }
1530 { (eval echo "$as_me:1530: \"$ac_compiler -V </dev/null >&5\"") >&5
1531 (eval $ac_compiler -V </dev/null >&5) 2>&5
1533 echo "$as_me:1533: \$? = $ac_status" >&5
1534 (exit $ac_status); }
1536 cat >conftest.$ac_ext <<_ACEOF
1537 #line 1537 "configure"
1538 #include "confdefs.h"
1548 ac_clean_files_save=$ac_clean_files
1549 ac_clean_files="$ac_clean_files a.out a.exe"
1550 # Try to create an executable without -o first, disregard a.out.
1551 # It will help us diagnose broken compilers, and finding out an intuition
1553 echo "$as_me:1553: checking for C compiler default output" >&5
1554 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1555 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1556 if { (eval echo "$as_me:1556: \"$ac_link_default\"") >&5
1557 (eval $ac_link_default) 2>&5
1559 echo "$as_me:1559: \$? = $ac_status" >&5
1560 (exit $ac_status); }; then
1561 # Find the output, starting from the most likely. This scheme is
1562 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1564 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1565 ls a.out conftest 2>/dev/null;
1566 ls a.* conftest.* 2>/dev/null`; do
1568 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1569 a.out ) # We found the default executable, but exeext='' is most
1572 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1573 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1580 echo "$as_me: failed program was:" >&5
1581 cat conftest.$ac_ext >&5
1582 { { echo "$as_me:1582: error: C compiler cannot create executables" >&5
1583 echo "$as_me: error: C compiler cannot create executables" >&2;}
1584 { (exit 77); exit 77; }; }
1587 ac_exeext=$ac_cv_exeext
1588 echo "$as_me:1588: result: $ac_file" >&5
1589 echo "${ECHO_T}$ac_file" >&6
1591 # Check the compiler produces executables we can run. If not, either
1592 # the compiler is broken, or we cross compile.
1593 echo "$as_me:1593: checking whether the C compiler works" >&5
1594 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1595 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1596 # If not cross compiling, check that we can run a simple program.
1597 if test "$cross_compiling" != yes; then
1598 if { ac_try='./$ac_file'
1599 { (eval echo "$as_me:1599: \"$ac_try\"") >&5
1602 echo "$as_me:1602: \$? = $ac_status" >&5
1603 (exit $ac_status); }; }; then
1606 if test "$cross_compiling" = maybe; then
1609 { { echo "$as_me:1609: error: cannot run C compiled programs.
1610 If you meant to cross compile, use \`--host'." >&5
1611 echo "$as_me: error: cannot run C compiled programs.
1612 If you meant to cross compile, use \`--host'." >&2;}
1613 { (exit 1); exit 1; }; }
1617 echo "$as_me:1617: result: yes" >&5
1618 echo "${ECHO_T}yes" >&6
1620 rm -f a.out a.exe conftest$ac_cv_exeext
1621 ac_clean_files=$ac_clean_files_save
1622 # Check the compiler produces executables we can run. If not, either
1623 # the compiler is broken, or we cross compile.
1624 echo "$as_me:1624: checking whether we are cross compiling" >&5
1625 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1626 echo "$as_me:1626: result: $cross_compiling" >&5
1627 echo "${ECHO_T}$cross_compiling" >&6
1629 echo "$as_me:1629: checking for executable suffix" >&5
1630 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1631 if { (eval echo "$as_me:1631: \"$ac_link\"") >&5
1632 (eval $ac_link) 2>&5
1634 echo "$as_me:1634: \$? = $ac_status" >&5
1635 (exit $ac_status); }; then
1636 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1637 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1638 # work properly (i.e., refer to `conftest.exe'), while it won't with
1640 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1642 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1643 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1650 { { echo "$as_me:1650: error: cannot compute EXEEXT: cannot compile and link" >&5
1651 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1652 { (exit 1); exit 1; }; }
1655 rm -f conftest$ac_cv_exeext
1656 echo "$as_me:1656: result: $ac_cv_exeext" >&5
1657 echo "${ECHO_T}$ac_cv_exeext" >&6
1659 rm -f conftest.$ac_ext
1660 EXEEXT=$ac_cv_exeext
1662 echo "$as_me:1662: checking for object suffix" >&5
1663 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1664 if test "${ac_cv_objext+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 cat >conftest.$ac_ext <<_ACEOF
1668 #line 1668 "configure"
1669 #include "confdefs.h"
1679 rm -f conftest.o conftest.obj
1680 if { (eval echo "$as_me:1680: \"$ac_compile\"") >&5
1681 (eval $ac_compile) 2>&5
1683 echo "$as_me:1683: \$? = $ac_status" >&5
1684 (exit $ac_status); }; then
1685 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1687 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1688 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1693 echo "$as_me: failed program was:" >&5
1694 cat conftest.$ac_ext >&5
1695 { { echo "$as_me:1695: error: cannot compute OBJEXT: cannot compile" >&5
1696 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1697 { (exit 1); exit 1; }; }
1700 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1702 echo "$as_me:1702: result: $ac_cv_objext" >&5
1703 echo "${ECHO_T}$ac_cv_objext" >&6
1704 OBJEXT=$ac_cv_objext
1706 echo "$as_me:1706: checking whether we are using the GNU C compiler" >&5
1707 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1708 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1709 echo $ECHO_N "(cached) $ECHO_C" >&6
1711 cat >conftest.$ac_ext <<_ACEOF
1712 #line 1712 "configure"
1713 #include "confdefs.h"
1726 rm -f conftest.$ac_objext
1727 if { (eval echo "$as_me:1727: \"$ac_compile\"") >&5
1728 (eval $ac_compile) 2>&5
1730 echo "$as_me:1730: \$? = $ac_status" >&5
1731 (exit $ac_status); } &&
1732 { ac_try='test -s conftest.$ac_objext'
1733 { (eval echo "$as_me:1733: \"$ac_try\"") >&5
1736 echo "$as_me:1736: \$? = $ac_status" >&5
1737 (exit $ac_status); }; }; then
1740 echo "$as_me: failed program was:" >&5
1741 cat conftest.$ac_ext >&5
1744 rm -f conftest.$ac_objext conftest.$ac_ext
1745 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1748 echo "$as_me:1748: result: $ac_cv_c_compiler_gnu" >&5
1749 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1750 GCC=`test $ac_compiler_gnu = yes && echo yes`
1751 ac_test_CFLAGS=${CFLAGS+set}
1752 ac_save_CFLAGS=$CFLAGS
1754 echo "$as_me:1754: checking whether $CC accepts -g" >&5
1755 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1756 if test "${ac_cv_prog_cc_g+set}" = set; then
1757 echo $ECHO_N "(cached) $ECHO_C" >&6
1759 cat >conftest.$ac_ext <<_ACEOF
1760 #line 1760 "configure"
1761 #include "confdefs.h"
1771 rm -f conftest.$ac_objext
1772 if { (eval echo "$as_me:1772: \"$ac_compile\"") >&5
1773 (eval $ac_compile) 2>&5
1775 echo "$as_me:1775: \$? = $ac_status" >&5
1776 (exit $ac_status); } &&
1777 { ac_try='test -s conftest.$ac_objext'
1778 { (eval echo "$as_me:1778: \"$ac_try\"") >&5
1781 echo "$as_me:1781: \$? = $ac_status" >&5
1782 (exit $ac_status); }; }; then
1785 echo "$as_me: failed program was:" >&5
1786 cat conftest.$ac_ext >&5
1789 rm -f conftest.$ac_objext conftest.$ac_ext
1791 echo "$as_me:1791: result: $ac_cv_prog_cc_g" >&5
1792 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1793 if test "$ac_test_CFLAGS" = set; then
1794 CFLAGS=$ac_save_CFLAGS
1795 elif test $ac_cv_prog_cc_g = yes; then
1796 if test "$GCC" = yes; then
1802 if test "$GCC" = yes; then
1808 # Some people use a C++ compiler to compile C. Since we use `exit',
1809 # in C++ we need to declare it. In case someone uses the same compiler
1810 # for both compiling C and C++ we need to have the C++ compiler decide
1811 # the declaration of exit, since it's the most demanding environment.
1812 cat >conftest.$ac_ext <<_ACEOF
1817 rm -f conftest.$ac_objext
1818 if { (eval echo "$as_me:1818: \"$ac_compile\"") >&5
1819 (eval $ac_compile) 2>&5
1821 echo "$as_me:1821: \$? = $ac_status" >&5
1822 (exit $ac_status); } &&
1823 { ac_try='test -s conftest.$ac_objext'
1824 { (eval echo "$as_me:1824: \"$ac_try\"") >&5
1827 echo "$as_me:1827: \$? = $ac_status" >&5
1828 (exit $ac_status); }; }; then
1829 for ac_declaration in \
1831 '#include <stdlib.h>' \
1832 'extern "C" void std::exit (int) throw (); using std::exit;' \
1833 'extern "C" void std::exit (int); using std::exit;' \
1834 'extern "C" void exit (int) throw ();' \
1835 'extern "C" void exit (int);' \
1838 cat >conftest.$ac_ext <<_ACEOF
1839 #line 1839 "configure"
1840 #include "confdefs.h"
1851 rm -f conftest.$ac_objext
1852 if { (eval echo "$as_me:1852: \"$ac_compile\"") >&5
1853 (eval $ac_compile) 2>&5
1855 echo "$as_me:1855: \$? = $ac_status" >&5
1856 (exit $ac_status); } &&
1857 { ac_try='test -s conftest.$ac_objext'
1858 { (eval echo "$as_me:1858: \"$ac_try\"") >&5
1861 echo "$as_me:1861: \$? = $ac_status" >&5
1862 (exit $ac_status); }; }; then
1865 echo "$as_me: failed program was:" >&5
1866 cat conftest.$ac_ext >&5
1869 rm -f conftest.$ac_objext conftest.$ac_ext
1870 cat >conftest.$ac_ext <<_ACEOF
1871 #line 1871 "configure"
1872 #include "confdefs.h"
1882 rm -f conftest.$ac_objext
1883 if { (eval echo "$as_me:1883: \"$ac_compile\"") >&5
1884 (eval $ac_compile) 2>&5
1886 echo "$as_me:1886: \$? = $ac_status" >&5
1887 (exit $ac_status); } &&
1888 { ac_try='test -s conftest.$ac_objext'
1889 { (eval echo "$as_me:1889: \"$ac_try\"") >&5
1892 echo "$as_me:1892: \$? = $ac_status" >&5
1893 (exit $ac_status); }; }; then
1896 echo "$as_me: failed program was:" >&5
1897 cat conftest.$ac_ext >&5
1899 rm -f conftest.$ac_objext conftest.$ac_ext
1902 if test -n "$ac_declaration"; then
1903 echo '#ifdef __cplusplus' >>confdefs.h
1904 echo $ac_declaration >>confdefs.h
1905 echo '#endif' >>confdefs.h
1909 echo "$as_me: failed program was:" >&5
1910 cat conftest.$ac_ext >&5
1912 rm -f conftest.$ac_objext conftest.$ac_ext
1914 ac_cpp='$CPP $CPPFLAGS'
1915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1918 ac_main_return=return
1921 if test "$GCC" = yes ; then
1922 echo "$as_me:1922: checking version of $CC" >&5
1923 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1924 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
1925 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1926 echo "$as_me:1926: result: $GCC_VERSION" >&5
1927 echo "${ECHO_T}$GCC_VERSION" >&6
1931 ac_cpp='$CPP $CPPFLAGS'
1932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1935 ac_main_return=return
1936 echo "$as_me:1936: checking how to run the C preprocessor" >&5
1937 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1938 # On Suns, sometimes $CPP names a directory.
1939 if test -n "$CPP" && test -d "$CPP"; then
1942 if test -z "$CPP"; then
1943 if test "${ac_cv_prog_CPP+set}" = set; then
1944 echo $ECHO_N "(cached) $ECHO_C" >&6
1946 # Double quotes because CPP needs to be expanded
1947 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1950 for ac_c_preproc_warn_flag in '' yes
1952 # Use a header file that comes with gcc, so configuring glibc
1953 # with a fresh cross-compiler works.
1954 # On the NeXT, cc -E runs the code through the compiler's parser,
1955 # not just through cpp. "Syntax error" is here to catch this case.
1956 cat >conftest.$ac_ext <<_ACEOF
1957 #line 1957 "configure"
1958 #include "confdefs.h"
1962 if { (eval echo "$as_me:1962: \"$ac_cpp conftest.$ac_ext\"") >&5
1963 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1965 egrep -v '^ *\+' conftest.er1 >conftest.err
1967 cat conftest.err >&5
1968 echo "$as_me:1968: \$? = $ac_status" >&5
1969 (exit $ac_status); } >/dev/null; then
1970 if test -s conftest.err; then
1971 ac_cpp_err=$ac_c_preproc_warn_flag
1978 if test -z "$ac_cpp_err"; then
1981 echo "$as_me: failed program was:" >&5
1982 cat conftest.$ac_ext >&5
1983 # Broken: fails on valid input.
1986 rm -f conftest.err conftest.$ac_ext
1988 # OK, works on sane cases. Now check whether non-existent headers
1989 # can be detected and how.
1990 cat >conftest.$ac_ext <<_ACEOF
1991 #line 1991 "configure"
1992 #include "confdefs.h"
1993 #include <ac_nonexistent.h>
1995 if { (eval echo "$as_me:1995: \"$ac_cpp conftest.$ac_ext\"") >&5
1996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1998 egrep -v '^ *\+' conftest.er1 >conftest.err
2000 cat conftest.err >&5
2001 echo "$as_me:2001: \$? = $ac_status" >&5
2002 (exit $ac_status); } >/dev/null; then
2003 if test -s conftest.err; then
2004 ac_cpp_err=$ac_c_preproc_warn_flag
2011 if test -z "$ac_cpp_err"; then
2012 # Broken: success on invalid input.
2015 echo "$as_me: failed program was:" >&5
2016 cat conftest.$ac_ext >&5
2017 # Passes both tests.
2021 rm -f conftest.err conftest.$ac_ext
2024 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2025 rm -f conftest.err conftest.$ac_ext
2026 if $ac_preproc_ok; then
2038 echo "$as_me:2038: result: $CPP" >&5
2039 echo "${ECHO_T}$CPP" >&6
2041 for ac_c_preproc_warn_flag in '' yes
2043 # Use a header file that comes with gcc, so configuring glibc
2044 # with a fresh cross-compiler works.
2045 # On the NeXT, cc -E runs the code through the compiler's parser,
2046 # not just through cpp. "Syntax error" is here to catch this case.
2047 cat >conftest.$ac_ext <<_ACEOF
2048 #line 2048 "configure"
2049 #include "confdefs.h"
2053 if { (eval echo "$as_me:2053: \"$ac_cpp conftest.$ac_ext\"") >&5
2054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2056 egrep -v '^ *\+' conftest.er1 >conftest.err
2058 cat conftest.err >&5
2059 echo "$as_me:2059: \$? = $ac_status" >&5
2060 (exit $ac_status); } >/dev/null; then
2061 if test -s conftest.err; then
2062 ac_cpp_err=$ac_c_preproc_warn_flag
2069 if test -z "$ac_cpp_err"; then
2072 echo "$as_me: failed program was:" >&5
2073 cat conftest.$ac_ext >&5
2074 # Broken: fails on valid input.
2077 rm -f conftest.err conftest.$ac_ext
2079 # OK, works on sane cases. Now check whether non-existent headers
2080 # can be detected and how.
2081 cat >conftest.$ac_ext <<_ACEOF
2082 #line 2082 "configure"
2083 #include "confdefs.h"
2084 #include <ac_nonexistent.h>
2086 if { (eval echo "$as_me:2086: \"$ac_cpp conftest.$ac_ext\"") >&5
2087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2089 egrep -v '^ *\+' conftest.er1 >conftest.err
2091 cat conftest.err >&5
2092 echo "$as_me:2092: \$? = $ac_status" >&5
2093 (exit $ac_status); } >/dev/null; then
2094 if test -s conftest.err; then
2095 ac_cpp_err=$ac_c_preproc_warn_flag
2102 if test -z "$ac_cpp_err"; then
2103 # Broken: success on invalid input.
2106 echo "$as_me: failed program was:" >&5
2107 cat conftest.$ac_ext >&5
2108 # Passes both tests.
2112 rm -f conftest.err conftest.$ac_ext
2115 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2116 rm -f conftest.err conftest.$ac_ext
2117 if $ac_preproc_ok; then
2120 { { echo "$as_me:2120: error: C preprocessor \"$CPP\" fails sanity check" >&5
2121 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2122 { (exit 1); exit 1; }; }
2126 ac_cpp='$CPP $CPPFLAGS'
2127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2130 ac_main_return=return
2132 if test $ac_cv_c_compiler_gnu = yes; then
2133 echo "$as_me:2133: checking whether $CC needs -traditional" >&5
2134 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2135 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2136 echo $ECHO_N "(cached) $ECHO_C" >&6
2138 ac_pattern="Autoconf.*'x'"
2139 cat >conftest.$ac_ext <<_ACEOF
2140 #line 2140 "configure"
2141 #include "confdefs.h"
2143 int Autoconf = TIOCGETP;
2145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2146 egrep "$ac_pattern" >/dev/null 2>&1; then
2147 ac_cv_prog_gcc_traditional=yes
2149 ac_cv_prog_gcc_traditional=no
2153 if test $ac_cv_prog_gcc_traditional = no; then
2154 cat >conftest.$ac_ext <<_ACEOF
2155 #line 2155 "configure"
2156 #include "confdefs.h"
2158 int Autoconf = TCGETA;
2160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2161 egrep "$ac_pattern" >/dev/null 2>&1; then
2162 ac_cv_prog_gcc_traditional=yes
2168 echo "$as_me:2168: result: $ac_cv_prog_gcc_traditional" >&5
2169 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2170 if test $ac_cv_prog_gcc_traditional = yes; then
2171 CC="$CC -traditional"
2175 echo "$as_me:2175: checking whether $CC understands -c and -o together" >&5
2176 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2177 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2181 cat > conftest.$ac_ext <<CF_EOF
2185 ${cf_cv_main_return:-return}(0);
2188 # We do the test twice because some compilers refuse to overwrite an
2189 # existing .o file with -o, though they will create one.
2190 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2191 if { (eval echo "$as_me:2191: \"$ac_try\"") >&5
2194 echo "$as_me:2194: \$? = $ac_status" >&5
2195 (exit $ac_status); } &&
2196 test -f conftest2.$ac_objext && { (eval echo "$as_me:2196: \"$ac_try\"") >&5
2199 echo "$as_me:2199: \$? = $ac_status" >&5
2200 (exit $ac_status); };
2202 eval cf_cv_prog_CC_c_o=yes
2204 eval cf_cv_prog_CC_c_o=no
2209 if test $cf_cv_prog_CC_c_o = yes; then
2210 echo "$as_me:2210: result: yes" >&5
2211 echo "${ECHO_T}yes" >&6
2213 echo "$as_me:2213: result: no" >&5
2214 echo "${ECHO_T}no" >&6
2217 echo "$as_me:2217: checking for POSIXized ISC" >&5
2218 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2219 if test -d /etc/conf/kconfig.d &&
2220 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2222 echo "$as_me:2222: result: yes" >&5
2223 echo "${ECHO_T}yes" >&6
2224 ISC=yes # If later tests want to check for ISC.
2226 cat >>confdefs.h <<\EOF
2227 #define _POSIX_SOURCE 1
2230 if test "$GCC" = yes; then
2236 echo "$as_me:2236: result: no" >&5
2237 echo "${ECHO_T}no" >&6
2241 # This should have been defined by AC_PROG_CC
2244 # Check for user's environment-breakage by stuffing CFLAGS/CPPFLAGS content
2245 # into CC. This will not help with broken scripts that wrap the compiler with
2246 # options, but eliminates a more common category of user confusion.
2247 echo "$as_me:2247: checking \$CC variable" >&5
2248 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2251 echo "$as_me:2251: result: broken" >&5
2252 echo "${ECHO_T}broken" >&6
2253 { echo "$as_me:2253: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2254 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2256 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
2257 CC=`echo "$CC" | sed -e 's/[ ].*//'`
2262 cf_new_extra_cppflags=
2264 for cf_add_cflags in $cf_flags
2266 case $cf_fix_cppflags in
2268 case $cf_add_cflags in #(vi
2269 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2270 case $cf_add_cflags in
2272 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2274 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2275 && test -z "${cf_tst_cflags}" \
2276 && cf_fix_cppflags=yes
2278 if test $cf_fix_cppflags = yes ; then
2279 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2281 elif test "${cf_tst_cflags}" = "\"'" ; then
2282 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2288 *$cf_add_cflags) #(vi
2291 case $cf_add_cflags in #(vi
2293 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2295 CPPFLAGS=`echo "$CPPFLAGS" | \
2296 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2297 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2301 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2306 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2311 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2313 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2315 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2316 && test -z "${cf_tst_cflags}" \
2317 && cf_fix_cppflags=no
2322 if test -n "$cf_new_cflags" ; then
2324 CFLAGS="$CFLAGS $cf_new_cflags"
2327 if test -n "$cf_new_cppflags" ; then
2329 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2332 if test -n "$cf_new_extra_cppflags" ; then
2334 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2339 echo "$as_me:2339: result: ok" >&5
2340 echo "${ECHO_T}ok" >&6
2344 echo "$as_me:2344: checking for ${CC:-cc} option to accept ANSI C" >&5
2345 echo $ECHO_N "checking for ${CC:-cc} option to accept ANSI C... $ECHO_C" >&6
2346 if test "${cf_cv_ansi_cc+set}" = set; then
2347 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 cf_save_CFLAGS="$CFLAGS"
2352 cf_save_CPPFLAGS="$CPPFLAGS"
2353 # Don't try gcc -ansi; that turns off useful extensions and
2354 # breaks some systems' header files.
2355 # AIX -qlanglvl=ansi
2356 # Ultrix and OSF/1 -std1
2357 # HP-UX -Aa -D_HPUX_SOURCE
2359 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2360 for cf_arg in "-DCC_HAS_PROTOS" \
2365 "-Aa -D_HPUX_SOURCE" \
2372 cf_new_extra_cppflags=
2374 for cf_add_cflags in $cf_arg
2376 case $cf_fix_cppflags in
2378 case $cf_add_cflags in #(vi
2379 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2380 case $cf_add_cflags in
2382 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2384 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2385 && test -z "${cf_tst_cflags}" \
2386 && cf_fix_cppflags=yes
2388 if test $cf_fix_cppflags = yes ; then
2389 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2391 elif test "${cf_tst_cflags}" = "\"'" ; then
2392 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2398 *$cf_add_cflags) #(vi
2401 case $cf_add_cflags in #(vi
2403 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2405 CPPFLAGS=`echo "$CPPFLAGS" | \
2406 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2407 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2411 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2416 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2421 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2423 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2425 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2426 && test -z "${cf_tst_cflags}" \
2427 && cf_fix_cppflags=no
2432 if test -n "$cf_new_cflags" ; then
2434 CFLAGS="$CFLAGS $cf_new_cflags"
2437 if test -n "$cf_new_cppflags" ; then
2439 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2442 if test -n "$cf_new_extra_cppflags" ; then
2444 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2447 cat >conftest.$ac_ext <<_ACEOF
2448 #line 2448 "configure"
2449 #include "confdefs.h"
2451 #ifndef CC_HAS_PROTOS
2452 #if !defined(__STDC__) || (__STDC__ != 1)
2461 int test (int i, double x);
2462 struct s1 {int (*f) (int a);};
2463 struct s2 {int (*f) (double a);};
2468 rm -f conftest.$ac_objext
2469 if { (eval echo "$as_me:2469: \"$ac_compile\"") >&5
2470 (eval $ac_compile) 2>&5
2472 echo "$as_me:2472: \$? = $ac_status" >&5
2473 (exit $ac_status); } &&
2474 { ac_try='test -s conftest.$ac_objext'
2475 { (eval echo "$as_me:2475: \"$ac_try\"") >&5
2478 echo "$as_me:2478: \$? = $ac_status" >&5
2479 (exit $ac_status); }; }; then
2480 cf_cv_ansi_cc="$cf_arg"; break
2482 echo "$as_me: failed program was:" >&5
2483 cat conftest.$ac_ext >&5
2485 rm -f conftest.$ac_objext conftest.$ac_ext
2487 CFLAGS="$cf_save_CFLAGS"
2488 CPPFLAGS="$cf_save_CPPFLAGS"
2491 echo "$as_me:2491: result: $cf_cv_ansi_cc" >&5
2492 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2494 if test "$cf_cv_ansi_cc" != "no"; then
2495 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2500 cf_new_extra_cppflags=
2502 for cf_add_cflags in $cf_cv_ansi_cc
2504 case $cf_fix_cppflags in
2506 case $cf_add_cflags in #(vi
2507 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2508 case $cf_add_cflags in
2510 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2512 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2513 && test -z "${cf_tst_cflags}" \
2514 && cf_fix_cppflags=yes
2516 if test $cf_fix_cppflags = yes ; then
2517 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2519 elif test "${cf_tst_cflags}" = "\"'" ; then
2520 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2526 *$cf_add_cflags) #(vi
2529 case $cf_add_cflags in #(vi
2531 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2533 CPPFLAGS=`echo "$CPPFLAGS" | \
2534 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2535 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2539 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2544 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2549 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2551 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2553 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2554 && test -z "${cf_tst_cflags}" \
2555 && cf_fix_cppflags=no
2560 if test -n "$cf_new_cflags" ; then
2562 CFLAGS="$CFLAGS $cf_new_cflags"
2565 if test -n "$cf_new_cppflags" ; then
2567 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2570 if test -n "$cf_new_extra_cppflags" ; then
2572 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2576 cat >>confdefs.h <<\EOF
2577 #define CC_HAS_PROTOS 1
2583 if test "$cf_cv_ansi_cc" = "no"; then
2584 { { echo "$as_me:2584: error: Your compiler does not appear to recognize prototypes.
2585 You have the following choices:
2586 a. adjust your compiler options
2587 b. get an up-to-date compiler
2588 c. use a wrapper such as unproto" >&5
2589 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2590 You have the following choices:
2591 a. adjust your compiler options
2592 b. get an up-to-date compiler
2593 c. use a wrapper such as unproto" >&2;}
2594 { (exit 1); exit 1; }; }
2597 case $cf_cv_system_name in
2599 CFLAGS="$CFLAGS -Zmt"
2600 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2601 CXXFLAGS="$CXXFLAGS -Zmt"
2602 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2603 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2610 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2611 #define PROG_EXT "$PROG_EXT"
2614 if test "$cross_compiling" = yes ; then
2617 case "$cf_cv_system_name" in #(vi
2618 dragonfly*|mirbsd*|freebsd*) #(vi
2619 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2621 *) LDPATH=$PATH:/sbin:/usr/sbin
2622 # Extract the first word of "ldconfig", so it can be a program name with args.
2623 set dummy ldconfig; ac_word=$2
2624 echo "$as_me:2624: checking for $ac_word" >&5
2625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2626 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2627 echo $ECHO_N "(cached) $ECHO_C" >&6
2631 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2634 ac_save_IFS=$IFS; IFS=$ac_path_separator
2636 for ac_dir in $ac_dummy; do
2638 test -z "$ac_dir" && ac_dir=.
2639 if $as_executable_p "$ac_dir/$ac_word"; then
2640 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2641 echo "$as_me:2641: found $ac_dir/$ac_word" >&5
2649 LDCONFIG=$ac_cv_path_LDCONFIG
2651 if test -n "$LDCONFIG"; then
2652 echo "$as_me:2652: result: $LDCONFIG" >&5
2653 echo "${ECHO_T}$LDCONFIG" >&6
2655 echo "$as_me:2655: result: no" >&5
2656 echo "${ECHO_T}no" >&6
2663 echo "$as_me:2663: checking if you want to ensure bool is consistent with C++" >&5
2664 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2666 # Check whether --with-cxx or --without-cxx was given.
2667 if test "${with_cxx+set}" = set; then
2669 cf_with_cxx=$withval
2673 echo "$as_me:2673: result: $cf_with_cxx" >&5
2674 echo "${ECHO_T}$cf_with_cxx" >&6
2675 if test "X$cf_with_cxx" = Xno ; then
2679 # with autoconf 2.13, we can change the error to a warning:
2681 ac_cpp='$CXXCPP $CPPFLAGS'
2682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2685 ac_main_return=return
2686 if test -n "$ac_tool_prefix"; then
2687 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2689 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2690 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2691 echo "$as_me:2691: checking for $ac_word" >&5
2692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2693 if test "${ac_cv_prog_CXX+set}" = set; then
2694 echo $ECHO_N "(cached) $ECHO_C" >&6
2696 if test -n "$CXX"; then
2697 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2699 ac_save_IFS=$IFS; IFS=$ac_path_separator
2701 for ac_dir in $ac_dummy; do
2703 test -z "$ac_dir" && ac_dir=.
2704 $as_executable_p "$ac_dir/$ac_word" || continue
2705 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2706 echo "$as_me:2706: found $ac_dir/$ac_word" >&5
2713 if test -n "$CXX"; then
2714 echo "$as_me:2714: result: $CXX" >&5
2715 echo "${ECHO_T}$CXX" >&6
2717 echo "$as_me:2717: result: no" >&5
2718 echo "${ECHO_T}no" >&6
2721 test -n "$CXX" && break
2724 if test -z "$CXX"; then
2726 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2728 # Extract the first word of "$ac_prog", so it can be a program name with args.
2729 set dummy $ac_prog; ac_word=$2
2730 echo "$as_me:2730: checking for $ac_word" >&5
2731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2732 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2733 echo $ECHO_N "(cached) $ECHO_C" >&6
2735 if test -n "$ac_ct_CXX"; then
2736 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2738 ac_save_IFS=$IFS; IFS=$ac_path_separator
2740 for ac_dir in $ac_dummy; do
2742 test -z "$ac_dir" && ac_dir=.
2743 $as_executable_p "$ac_dir/$ac_word" || continue
2744 ac_cv_prog_ac_ct_CXX="$ac_prog"
2745 echo "$as_me:2745: found $ac_dir/$ac_word" >&5
2751 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2752 if test -n "$ac_ct_CXX"; then
2753 echo "$as_me:2753: result: $ac_ct_CXX" >&5
2754 echo "${ECHO_T}$ac_ct_CXX" >&6
2756 echo "$as_me:2756: result: no" >&5
2757 echo "${ECHO_T}no" >&6
2760 test -n "$ac_ct_CXX" && break
2762 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2767 # Provide some information about the compiler.
2768 echo "$as_me:2768:" \
2769 "checking for C++ compiler version" >&5
2770 ac_compiler=`set X $ac_compile; echo $2`
2771 { (eval echo "$as_me:2771: \"$ac_compiler --version </dev/null >&5\"") >&5
2772 (eval $ac_compiler --version </dev/null >&5) 2>&5
2774 echo "$as_me:2774: \$? = $ac_status" >&5
2775 (exit $ac_status); }
2776 { (eval echo "$as_me:2776: \"$ac_compiler -v </dev/null >&5\"") >&5
2777 (eval $ac_compiler -v </dev/null >&5) 2>&5
2779 echo "$as_me:2779: \$? = $ac_status" >&5
2780 (exit $ac_status); }
2781 { (eval echo "$as_me:2781: \"$ac_compiler -V </dev/null >&5\"") >&5
2782 (eval $ac_compiler -V </dev/null >&5) 2>&5
2784 echo "$as_me:2784: \$? = $ac_status" >&5
2785 (exit $ac_status); }
2787 echo "$as_me:2787: checking whether we are using the GNU C++ compiler" >&5
2788 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2789 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2790 echo $ECHO_N "(cached) $ECHO_C" >&6
2792 cat >conftest.$ac_ext <<_ACEOF
2793 #line 2793 "configure"
2794 #include "confdefs.h"
2807 rm -f conftest.$ac_objext
2808 if { (eval echo "$as_me:2808: \"$ac_compile\"") >&5
2809 (eval $ac_compile) 2>&5
2811 echo "$as_me:2811: \$? = $ac_status" >&5
2812 (exit $ac_status); } &&
2813 { ac_try='test -s conftest.$ac_objext'
2814 { (eval echo "$as_me:2814: \"$ac_try\"") >&5
2817 echo "$as_me:2817: \$? = $ac_status" >&5
2818 (exit $ac_status); }; }; then
2821 echo "$as_me: failed program was:" >&5
2822 cat conftest.$ac_ext >&5
2825 rm -f conftest.$ac_objext conftest.$ac_ext
2826 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2829 echo "$as_me:2829: result: $ac_cv_cxx_compiler_gnu" >&5
2830 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2831 GXX=`test $ac_compiler_gnu = yes && echo yes`
2832 ac_test_CXXFLAGS=${CXXFLAGS+set}
2833 ac_save_CXXFLAGS=$CXXFLAGS
2835 echo "$as_me:2835: checking whether $CXX accepts -g" >&5
2836 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2837 if test "${ac_cv_prog_cxx_g+set}" = set; then
2838 echo $ECHO_N "(cached) $ECHO_C" >&6
2840 cat >conftest.$ac_ext <<_ACEOF
2841 #line 2841 "configure"
2842 #include "confdefs.h"
2852 rm -f conftest.$ac_objext
2853 if { (eval echo "$as_me:2853: \"$ac_compile\"") >&5
2854 (eval $ac_compile) 2>&5
2856 echo "$as_me:2856: \$? = $ac_status" >&5
2857 (exit $ac_status); } &&
2858 { ac_try='test -s conftest.$ac_objext'
2859 { (eval echo "$as_me:2859: \"$ac_try\"") >&5
2862 echo "$as_me:2862: \$? = $ac_status" >&5
2863 (exit $ac_status); }; }; then
2864 ac_cv_prog_cxx_g=yes
2866 echo "$as_me: failed program was:" >&5
2867 cat conftest.$ac_ext >&5
2870 rm -f conftest.$ac_objext conftest.$ac_ext
2872 echo "$as_me:2872: result: $ac_cv_prog_cxx_g" >&5
2873 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2874 if test "$ac_test_CXXFLAGS" = set; then
2875 CXXFLAGS=$ac_save_CXXFLAGS
2876 elif test $ac_cv_prog_cxx_g = yes; then
2877 if test "$GXX" = yes; then
2883 if test "$GXX" = yes; then
2889 for ac_declaration in \
2891 '#include <stdlib.h>' \
2892 'extern "C" void std::exit (int) throw (); using std::exit;' \
2893 'extern "C" void std::exit (int); using std::exit;' \
2894 'extern "C" void exit (int) throw ();' \
2895 'extern "C" void exit (int);' \
2898 cat >conftest.$ac_ext <<_ACEOF
2899 #line 2899 "configure"
2900 #include "confdefs.h"
2911 rm -f conftest.$ac_objext
2912 if { (eval echo "$as_me:2912: \"$ac_compile\"") >&5
2913 (eval $ac_compile) 2>&5
2915 echo "$as_me:2915: \$? = $ac_status" >&5
2916 (exit $ac_status); } &&
2917 { ac_try='test -s conftest.$ac_objext'
2918 { (eval echo "$as_me:2918: \"$ac_try\"") >&5
2921 echo "$as_me:2921: \$? = $ac_status" >&5
2922 (exit $ac_status); }; }; then
2925 echo "$as_me: failed program was:" >&5
2926 cat conftest.$ac_ext >&5
2929 rm -f conftest.$ac_objext conftest.$ac_ext
2930 cat >conftest.$ac_ext <<_ACEOF
2931 #line 2931 "configure"
2932 #include "confdefs.h"
2942 rm -f conftest.$ac_objext
2943 if { (eval echo "$as_me:2943: \"$ac_compile\"") >&5
2944 (eval $ac_compile) 2>&5
2946 echo "$as_me:2946: \$? = $ac_status" >&5
2947 (exit $ac_status); } &&
2948 { ac_try='test -s conftest.$ac_objext'
2949 { (eval echo "$as_me:2949: \"$ac_try\"") >&5
2952 echo "$as_me:2952: \$? = $ac_status" >&5
2953 (exit $ac_status); }; }; then
2956 echo "$as_me: failed program was:" >&5
2957 cat conftest.$ac_ext >&5
2959 rm -f conftest.$ac_objext conftest.$ac_ext
2962 if test -n "$ac_declaration"; then
2963 echo '#ifdef __cplusplus' >>confdefs.h
2964 echo $ac_declaration >>confdefs.h
2965 echo '#endif' >>confdefs.h
2969 ac_cpp='$CPP $CPPFLAGS'
2970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2973 ac_main_return=return
2975 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
2976 if test "$CXX" = "g++" ; then
2977 # Extract the first word of "g++", so it can be a program name with args.
2978 set dummy g++; ac_word=$2
2979 echo "$as_me:2979: checking for $ac_word" >&5
2980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2981 if test "${ac_cv_path_CXX+set}" = set; then
2982 echo $ECHO_N "(cached) $ECHO_C" >&6
2986 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
2989 ac_save_IFS=$IFS; IFS=$ac_path_separator
2991 for ac_dir in $ac_dummy; do
2993 test -z "$ac_dir" && ac_dir=.
2994 if $as_executable_p "$ac_dir/$ac_word"; then
2995 ac_cv_path_CXX="$ac_dir/$ac_word"
2996 echo "$as_me:2996: found $ac_dir/$ac_word" >&5
3006 if test -n "$CXX"; then
3007 echo "$as_me:3007: result: $CXX" >&5
3008 echo "${ECHO_T}$CXX" >&6
3010 echo "$as_me:3010: result: no" >&5
3011 echo "${ECHO_T}no" >&6
3015 case "x$CXX" in #(vi
3017 { echo "$as_me:3017: WARNING: You don't have any C++ compiler, too bad" >&5
3018 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
3019 cf_with_cxx=no; CXX=""; GXX="";
3025 if test "$GXX" = yes; then
3026 echo "$as_me:3026: checking version of ${CXX:-g++}" >&5
3027 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
3028 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3029 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3030 echo "$as_me:3030: result: $GXX_VERSION" >&5
3031 echo "${ECHO_T}$GXX_VERSION" >&6
3034 case $GXX_VERSION in
3036 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3038 { echo "$as_me:3038: WARNING: templates do not work" >&5
3039 echo "$as_me: WARNING: templates do not work" >&2;}
3043 echo "$as_me:3043: checking if you want to build C++ binding and demo" >&5
3044 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3046 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3047 if test "${with_cxx_binding+set}" = set; then
3048 withval="$with_cxx_binding"
3049 cf_with_cxx_binding=$withval
3051 cf_with_cxx_binding=$cf_with_cxx
3053 echo "$as_me:3053: result: $cf_with_cxx_binding" >&5
3054 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3056 echo "$as_me:3056: checking if you want to build with Ada95" >&5
3057 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3058 echo "$as_me:3058: result: $cf_with_ada" >&5
3059 echo "${ECHO_T}$cf_with_ada" >&6
3061 echo "$as_me:3061: checking if you want to install manpages" >&5
3062 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3064 # Check whether --with-manpages or --without-manpages was given.
3065 if test "${with_manpages+set}" = set; then
3066 withval="$with_manpages"
3067 cf_with_manpages=$withval
3069 cf_with_manpages=yes
3071 echo "$as_me:3071: result: $cf_with_manpages" >&5
3072 echo "${ECHO_T}$cf_with_manpages" >&6
3074 echo "$as_me:3074: checking if you want to build programs such as tic" >&5
3075 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3077 # Check whether --with-progs or --without-progs was given.
3078 if test "${with_progs+set}" = set; then
3079 withval="$with_progs"
3080 cf_with_progs=$withval
3084 echo "$as_me:3084: result: $cf_with_progs" >&5
3085 echo "${ECHO_T}$cf_with_progs" >&6
3087 echo "$as_me:3087: checking if you want to build test-programs" >&5
3088 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3090 # Check whether --with-tests or --without-tests was given.
3091 if test "${with_tests+set}" = set; then
3092 withval="$with_tests"
3093 cf_with_tests=$withval
3097 echo "$as_me:3097: result: $cf_with_tests" >&5
3098 echo "${ECHO_T}$cf_with_tests" >&6
3100 echo "$as_me:3100: checking if you wish to install curses.h" >&5
3101 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3103 # Check whether --with-curses-h or --without-curses-h was given.
3104 if test "${with_curses_h+set}" = set; then
3105 withval="$with_curses_h"
3106 with_curses_h=$withval
3110 echo "$as_me:3110: result: $with_curses_h" >&5
3111 echo "${ECHO_T}$with_curses_h" >&6
3113 modules_to_build="ncurses"
3114 if test "X$cf_with_progs" != Xno ; then
3115 modules_to_build="$modules_to_build progs tack"
3117 modules_to_build="$modules_to_build panel menu form"
3119 test "$program_prefix" != NONE &&
3120 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3121 # Use a double $ so make ignores it.
3122 test "$program_suffix" != NONE &&
3123 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3124 # Double any \ or $. echo might interpret backslashes.
3125 # By default was `s,x,x', remove it if useless.
3126 cat <<\_ACEOF >conftest.sed
3127 s/[\\$]/&&/g;s/;s,x,x,$//
3129 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3132 for ac_prog in mawk gawk nawk awk
3134 # Extract the first word of "$ac_prog", so it can be a program name with args.
3135 set dummy $ac_prog; ac_word=$2
3136 echo "$as_me:3136: checking for $ac_word" >&5
3137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3138 if test "${ac_cv_prog_AWK+set}" = set; then
3139 echo $ECHO_N "(cached) $ECHO_C" >&6
3141 if test -n "$AWK"; then
3142 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3144 ac_save_IFS=$IFS; IFS=$ac_path_separator
3146 for ac_dir in $ac_dummy; do
3148 test -z "$ac_dir" && ac_dir=.
3149 $as_executable_p "$ac_dir/$ac_word" || continue
3150 ac_cv_prog_AWK="$ac_prog"
3151 echo "$as_me:3151: found $ac_dir/$ac_word" >&5
3158 if test -n "$AWK"; then
3159 echo "$as_me:3159: result: $AWK" >&5
3160 echo "${ECHO_T}$AWK" >&6
3162 echo "$as_me:3162: result: no" >&5
3163 echo "${ECHO_T}no" >&6
3166 test -n "$AWK" && break
3169 test -z "$AWK" && { { echo "$as_me:3169: error: No awk program found" >&5
3170 echo "$as_me: error: No awk program found" >&2;}
3171 { (exit 1); exit 1; }; }
3173 echo "$as_me:3173: checking for egrep" >&5
3174 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3175 if test "${ac_cv_prog_egrep+set}" = set; then
3176 echo $ECHO_N "(cached) $ECHO_C" >&6
3178 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3179 then ac_cv_prog_egrep='grep -E'
3180 else ac_cv_prog_egrep='egrep'
3183 echo "$as_me:3183: result: $ac_cv_prog_egrep" >&5
3184 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3185 EGREP=$ac_cv_prog_egrep
3187 test -z "$EGREP" && { { echo "$as_me:3187: error: No egrep program found" >&5
3188 echo "$as_me: error: No egrep program found" >&2;}
3189 { (exit 1); exit 1; }; }
3191 # Find a good install program. We prefer a C program (faster),
3192 # so one script is as good as another. But avoid the broken or
3193 # incompatible versions:
3194 # SysV /etc/install, /usr/sbin/install
3195 # SunOS /usr/etc/install
3196 # IRIX /sbin/install
3198 # AmigaOS /C/install, which installs bootblocks on floppy discs
3199 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3200 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3201 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3202 # ./install, which can be erroneously created by make from ./install.sh.
3203 echo "$as_me:3203: checking for a BSD compatible install" >&5
3204 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3205 if test -z "$INSTALL"; then
3206 if test "${ac_cv_path_install+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3209 ac_save_IFS=$IFS; IFS=$ac_path_separator
3210 for ac_dir in $PATH; do
3212 # Account for people who put trailing slashes in PATH elements.
3214 / | ./ | .// | /cC/* \
3215 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3218 # OSF1 and SCO ODT 3.0 have their own names for install.
3219 # Don't use installbsd from OSF since it installs stuff as root
3221 for ac_prog in ginstall scoinst install; do
3222 if $as_executable_p "$ac_dir/$ac_prog"; then
3223 if test $ac_prog = install &&
3224 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3225 # AIX install. It has an incompatible calling convention.
3227 elif test $ac_prog = install &&
3228 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3229 # program-specific install script used by HP pwplus--don't use.
3232 ac_cv_path_install="$ac_dir/$ac_prog -c"
3242 if test "${ac_cv_path_install+set}" = set; then
3243 INSTALL=$ac_cv_path_install
3245 # As a last resort, use the slow shell script. We don't cache a
3246 # path for INSTALL within a source directory, because that will
3247 # break other packages using the cache if that directory is
3248 # removed, or if the path is relative.
3249 INSTALL=$ac_install_sh
3252 echo "$as_me:3252: result: $INSTALL" >&5
3253 echo "${ECHO_T}$INSTALL" >&6
3255 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3256 # It thinks the first close brace ends the variable substitution.
3257 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3259 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3261 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3267 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3268 test -z "$cf_dir" && cf_dir=.
3269 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3273 for ac_prog in tdlint lint alint splint lclint
3275 # Extract the first word of "$ac_prog", so it can be a program name with args.
3276 set dummy $ac_prog; ac_word=$2
3277 echo "$as_me:3277: checking for $ac_word" >&5
3278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3279 if test "${ac_cv_prog_LINT+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 if test -n "$LINT"; then
3283 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3285 ac_save_IFS=$IFS; IFS=$ac_path_separator
3287 for ac_dir in $ac_dummy; do
3289 test -z "$ac_dir" && ac_dir=.
3290 $as_executable_p "$ac_dir/$ac_word" || continue
3291 ac_cv_prog_LINT="$ac_prog"
3292 echo "$as_me:3292: found $ac_dir/$ac_word" >&5
3298 LINT=$ac_cv_prog_LINT
3299 if test -n "$LINT"; then
3300 echo "$as_me:3300: result: $LINT" >&5
3301 echo "${ECHO_T}$LINT" >&6
3303 echo "$as_me:3303: result: no" >&5
3304 echo "${ECHO_T}no" >&6
3307 test -n "$LINT" && break
3310 echo "$as_me:3310: checking whether ln -s works" >&5
3311 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3313 if test "$LN_S" = "ln -s"; then
3314 echo "$as_me:3314: result: yes" >&5
3315 echo "${ECHO_T}yes" >&6
3317 echo "$as_me:3317: result: no, using $LN_S" >&5
3318 echo "${ECHO_T}no, using $LN_S" >&6
3321 echo "$as_me:3321: checking if $LN_S -f options work" >&5
3322 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3324 rm -f conf$$.src conf$$dst
3326 echo first >conf$$.src
3327 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3332 rm -f conf$$.dst conf$$src
3333 echo "$as_me:3333: result: $cf_prog_ln_sf" >&5
3334 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3336 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3338 echo "$as_me:3338: checking for long file names" >&5
3339 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3340 if test "${ac_cv_sys_long_file_names+set}" = set; then
3341 echo $ECHO_N "(cached) $ECHO_C" >&6
3343 ac_cv_sys_long_file_names=yes
3344 # Test for long file names in all the places we know might matter:
3345 # . the current directory, where building will happen
3346 # $prefix/lib where we will be installing things
3347 # $exec_prefix/lib likewise
3348 # eval it to expand exec_prefix.
3349 # $TMPDIR if set, where it might want to write temporary files
3350 # if $TMPDIR is not set:
3351 # /tmp where it might want to write temporary files
3354 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3357 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3359 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3360 test -d $ac_dir || continue
3361 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3362 ac_xdir=$ac_dir/cf$$
3363 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3364 ac_tf1=$ac_xdir/conftest9012345
3365 ac_tf2=$ac_xdir/conftest9012346
3366 (echo 1 >$ac_tf1) 2>/dev/null
3367 (echo 2 >$ac_tf2) 2>/dev/null
3368 ac_val=`cat $ac_tf1 2>/dev/null`
3369 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3370 ac_cv_sys_long_file_names=no
3371 rm -rf $ac_xdir 2>/dev/null
3374 rm -rf $ac_xdir 2>/dev/null
3377 echo "$as_me:3377: result: $ac_cv_sys_long_file_names" >&5
3378 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3379 if test $ac_cv_sys_long_file_names = yes; then
3381 cat >>confdefs.h <<\EOF
3382 #define HAVE_LONG_FILE_NAMES 1
3387 # if we find pkg-config, check if we should install the ".pc" files.
3389 echo "$as_me:3389: checking if you want to use pkg-config" >&5
3390 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3392 # Check whether --with-pkg-config or --without-pkg-config was given.
3393 if test "${with_pkg_config+set}" = set; then
3394 withval="$with_pkg_config"
3395 cf_pkg_config=$withval
3399 echo "$as_me:3399: result: $cf_pkg_config" >&5
3400 echo "${ECHO_T}$cf_pkg_config" >&6
3402 case $cf_pkg_config in #(vi
3408 if test -n "$ac_tool_prefix"; then
3409 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3410 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3411 echo "$as_me:3411: checking for $ac_word" >&5
3412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3413 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3418 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3421 ac_save_IFS=$IFS; IFS=$ac_path_separator
3423 for ac_dir in $ac_dummy; do
3425 test -z "$ac_dir" && ac_dir=.
3426 if $as_executable_p "$ac_dir/$ac_word"; then
3427 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3428 echo "$as_me:3428: found $ac_dir/$ac_word" >&5
3436 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3438 if test -n "$PKG_CONFIG"; then
3439 echo "$as_me:3439: result: $PKG_CONFIG" >&5
3440 echo "${ECHO_T}$PKG_CONFIG" >&6
3442 echo "$as_me:3442: result: no" >&5
3443 echo "${ECHO_T}no" >&6
3447 if test -z "$ac_cv_path_PKG_CONFIG"; then
3448 ac_pt_PKG_CONFIG=$PKG_CONFIG
3449 # Extract the first word of "pkg-config", so it can be a program name with args.
3450 set dummy pkg-config; ac_word=$2
3451 echo "$as_me:3451: checking for $ac_word" >&5
3452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3453 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3456 case $ac_pt_PKG_CONFIG in
3458 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3461 ac_save_IFS=$IFS; IFS=$ac_path_separator
3463 for ac_dir in $ac_dummy; do
3465 test -z "$ac_dir" && ac_dir=.
3466 if $as_executable_p "$ac_dir/$ac_word"; then
3467 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3468 echo "$as_me:3468: found $ac_dir/$ac_word" >&5
3473 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3477 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3479 if test -n "$ac_pt_PKG_CONFIG"; then
3480 echo "$as_me:3480: result: $ac_pt_PKG_CONFIG" >&5
3481 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3483 echo "$as_me:3483: result: no" >&5
3484 echo "${ECHO_T}no" >&6
3487 PKG_CONFIG=$ac_pt_PKG_CONFIG
3489 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3498 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3499 if test "$PKG_CONFIG" != none ; then
3501 if test "x$prefix" != xNONE; then
3502 cf_path_syntax="$prefix"
3504 cf_path_syntax="$ac_default_prefix"
3507 case ".$PKG_CONFIG" in #(vi
3508 .\$\(*\)*|.\'*\'*) #(vi
3512 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3514 .\${*prefix}*|.\${*dir}*) #(vi
3515 eval PKG_CONFIG="$PKG_CONFIG"
3516 case ".$PKG_CONFIG" in #(vi
3518 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3523 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3526 { { echo "$as_me:3526: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3527 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3528 { (exit 1); exit 1; }; }
3534 if test "$PKG_CONFIG" != none ; then
3535 echo "$as_me:3535: checking for $PKG_CONFIG library directory" >&5
3536 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3538 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3539 if test "${with_pkg_config_libdir+set}" = set; then
3540 withval="$with_pkg_config_libdir"
3541 PKG_CONFIG_LIBDIR=$withval
3543 PKG_CONFIG_LIBDIR=yes
3546 case x$PKG_CONFIG_LIBDIR in #(vi
3550 # look for the library directory using the same prefix as the executable
3551 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3552 case x`(arch) 2>/dev/null` in #(vi
3554 for cf_config in $cf_path/share $cf_path/lib64 $cf_path/lib32 $cf_path/lib
3556 if test -d $cf_config/pkgconfig
3558 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3564 PKG_CONFIG_LIBDIR=$cf_path/lib/pkgconfig
3572 echo "$as_me:3572: result: $PKG_CONFIG_LIBDIR" >&5
3573 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3576 if test "$PKG_CONFIG" != none ; then
3577 echo "$as_me:3577: checking if we should install .pc files for $PKG_CONFIG" >&5
3578 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3580 # Check whether --enable-pc-files or --disable-pc-files was given.
3581 if test "${enable_pc_files+set}" = set; then
3582 enableval="$enable_pc_files"
3583 enable_pc_files=$enableval
3587 echo "$as_me:3587: result: $enable_pc_files" >&5
3588 echo "${ECHO_T}$enable_pc_files" >&6
3589 if test "$enable_pc_files" != no
3592 if test "x$prefix" != xNONE; then
3593 cf_path_syntax="$prefix"
3595 cf_path_syntax="$ac_default_prefix"
3598 case ".$PKG_CONFIG_LIBDIR" in #(vi
3599 .\$\(*\)*|.\'*\'*) #(vi
3603 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3605 .\${*prefix}*|.\${*dir}*) #(vi
3606 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
3607 case ".$PKG_CONFIG_LIBDIR" in #(vi
3609 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3614 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3617 { { echo "$as_me:3617: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
3618 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
3619 { (exit 1); exit 1; }; }
3628 echo "$as_me:3628: checking if we should assume mixed-case filenames" >&5
3629 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3631 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3632 if test "${enable_mixed_case+set}" = set; then
3633 enableval="$enable_mixed_case"
3634 enable_mixedcase=$enableval
3636 enable_mixedcase=auto
3638 echo "$as_me:3638: result: $enable_mixedcase" >&5
3639 echo "${ECHO_T}$enable_mixedcase" >&6
3640 if test "$enable_mixedcase" = "auto" ; then
3642 echo "$as_me:3642: checking if filesystem supports mixed-case filenames" >&5
3643 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3644 if test "${cf_cv_mixedcase+set}" = set; then
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
3648 if test "$cross_compiling" = yes ; then
3649 case $target_alias in #(vi
3650 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3658 rm -f conftest CONFTEST
3660 if test -f CONFTEST ; then
3665 rm -f conftest CONFTEST
3669 echo "$as_me:3669: result: $cf_cv_mixedcase" >&5
3670 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3671 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3672 #define MIXEDCASE_FILENAMES 1
3676 cf_cv_mixedcase=$enable_mixedcase
3677 if test "$enable_mixedcase" = "yes" ; then
3678 cat >>confdefs.h <<\EOF
3679 #define MIXEDCASE_FILENAMES 1
3685 # do this after mixed-case option (tags/TAGS is not as important as tic).
3686 echo "$as_me:3686: checking whether ${MAKE-make} sets \${MAKE}" >&5
3687 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3688 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3689 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3690 echo $ECHO_N "(cached) $ECHO_C" >&6
3692 cat >conftest.make <<\EOF
3694 @echo 'ac_maketemp="${MAKE}"'
3696 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3697 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3698 if test -n "$ac_maketemp"; then
3699 eval ac_cv_prog_make_${ac_make}_set=yes
3701 eval ac_cv_prog_make_${ac_make}_set=no
3705 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3706 echo "$as_me:3706: result: yes" >&5
3707 echo "${ECHO_T}yes" >&6
3710 echo "$as_me:3710: result: no" >&5
3711 echo "${ECHO_T}no" >&6
3712 SET_MAKE="MAKE=${MAKE-make}"
3715 for ac_prog in exctags ctags
3717 # Extract the first word of "$ac_prog", so it can be a program name with args.
3718 set dummy $ac_prog; ac_word=$2
3719 echo "$as_me:3719: checking for $ac_word" >&5
3720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3721 if test "${ac_cv_prog_CTAGS+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
3724 if test -n "$CTAGS"; then
3725 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3727 ac_save_IFS=$IFS; IFS=$ac_path_separator
3729 for ac_dir in $ac_dummy; do
3731 test -z "$ac_dir" && ac_dir=.
3732 $as_executable_p "$ac_dir/$ac_word" || continue
3733 ac_cv_prog_CTAGS="$ac_prog"
3734 echo "$as_me:3734: found $ac_dir/$ac_word" >&5
3740 CTAGS=$ac_cv_prog_CTAGS
3741 if test -n "$CTAGS"; then
3742 echo "$as_me:3742: result: $CTAGS" >&5
3743 echo "${ECHO_T}$CTAGS" >&6
3745 echo "$as_me:3745: result: no" >&5
3746 echo "${ECHO_T}no" >&6
3749 test -n "$CTAGS" && break
3752 for ac_prog in exetags etags
3754 # Extract the first word of "$ac_prog", so it can be a program name with args.
3755 set dummy $ac_prog; ac_word=$2
3756 echo "$as_me:3756: checking for $ac_word" >&5
3757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3758 if test "${ac_cv_prog_ETAGS+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 if test -n "$ETAGS"; then
3762 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3764 ac_save_IFS=$IFS; IFS=$ac_path_separator
3766 for ac_dir in $ac_dummy; do
3768 test -z "$ac_dir" && ac_dir=.
3769 $as_executable_p "$ac_dir/$ac_word" || continue
3770 ac_cv_prog_ETAGS="$ac_prog"
3771 echo "$as_me:3771: found $ac_dir/$ac_word" >&5
3777 ETAGS=$ac_cv_prog_ETAGS
3778 if test -n "$ETAGS"; then
3779 echo "$as_me:3779: result: $ETAGS" >&5
3780 echo "${ECHO_T}$ETAGS" >&6
3782 echo "$as_me:3782: result: no" >&5
3783 echo "${ECHO_T}no" >&6
3786 test -n "$ETAGS" && break
3789 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3790 set dummy ${CTAGS:-ctags}; ac_word=$2
3791 echo "$as_me:3791: checking for $ac_word" >&5
3792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3793 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3794 echo $ECHO_N "(cached) $ECHO_C" >&6
3796 if test -n "$MAKE_LOWER_TAGS"; then
3797 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3799 ac_save_IFS=$IFS; IFS=$ac_path_separator
3801 for ac_dir in $ac_dummy; do
3803 test -z "$ac_dir" && ac_dir=.
3804 $as_executable_p "$ac_dir/$ac_word" || continue
3805 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3806 echo "$as_me:3806: found $ac_dir/$ac_word" >&5
3810 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3813 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3814 if test -n "$MAKE_LOWER_TAGS"; then
3815 echo "$as_me:3815: result: $MAKE_LOWER_TAGS" >&5
3816 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3818 echo "$as_me:3818: result: no" >&5
3819 echo "${ECHO_T}no" >&6
3822 if test "$cf_cv_mixedcase" = yes ; then
3823 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3824 set dummy ${ETAGS:-etags}; ac_word=$2
3825 echo "$as_me:3825: checking for $ac_word" >&5
3826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3827 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3830 if test -n "$MAKE_UPPER_TAGS"; then
3831 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3833 ac_save_IFS=$IFS; IFS=$ac_path_separator
3835 for ac_dir in $ac_dummy; do
3837 test -z "$ac_dir" && ac_dir=.
3838 $as_executable_p "$ac_dir/$ac_word" || continue
3839 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3840 echo "$as_me:3840: found $ac_dir/$ac_word" >&5
3844 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3847 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3848 if test -n "$MAKE_UPPER_TAGS"; then
3849 echo "$as_me:3849: result: $MAKE_UPPER_TAGS" >&5
3850 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3852 echo "$as_me:3852: result: no" >&5
3853 echo "${ECHO_T}no" >&6
3860 if test "$MAKE_UPPER_TAGS" = yes ; then
3866 if test "$MAKE_LOWER_TAGS" = yes ; then
3872 echo "$as_me:3872: checking for makeflags variable" >&5
3873 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3874 if test "${cf_cv_makeflags+set}" = set; then
3875 echo $ECHO_N "(cached) $ECHO_C" >&6
3879 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3881 cat >cf_makeflags.tmp <<CF_EOF
3884 @ echo '.$cf_option'
3886 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
3887 case "$cf_result" in
3889 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3890 case "$cf_result" in
3891 .*CC=*) cf_cv_makeflags=
3893 *) cf_cv_makeflags=$cf_option
3899 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3903 rm -f cf_makeflags.tmp
3906 echo "$as_me:3906: result: $cf_cv_makeflags" >&5
3907 echo "${ECHO_T}$cf_cv_makeflags" >&6
3909 if test -n "$ac_tool_prefix"; then
3910 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3911 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3912 echo "$as_me:3912: checking for $ac_word" >&5
3913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3914 if test "${ac_cv_prog_RANLIB+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3917 if test -n "$RANLIB"; then
3918 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3920 ac_save_IFS=$IFS; IFS=$ac_path_separator
3922 for ac_dir in $ac_dummy; do
3924 test -z "$ac_dir" && ac_dir=.
3925 $as_executable_p "$ac_dir/$ac_word" || continue
3926 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3927 echo "$as_me:3927: found $ac_dir/$ac_word" >&5
3933 RANLIB=$ac_cv_prog_RANLIB
3934 if test -n "$RANLIB"; then
3935 echo "$as_me:3935: result: $RANLIB" >&5
3936 echo "${ECHO_T}$RANLIB" >&6
3938 echo "$as_me:3938: result: no" >&5
3939 echo "${ECHO_T}no" >&6
3943 if test -z "$ac_cv_prog_RANLIB"; then
3944 ac_ct_RANLIB=$RANLIB
3945 # Extract the first word of "ranlib", so it can be a program name with args.
3946 set dummy ranlib; ac_word=$2
3947 echo "$as_me:3947: checking for $ac_word" >&5
3948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3949 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3952 if test -n "$ac_ct_RANLIB"; then
3953 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3955 ac_save_IFS=$IFS; IFS=$ac_path_separator
3957 for ac_dir in $ac_dummy; do
3959 test -z "$ac_dir" && ac_dir=.
3960 $as_executable_p "$ac_dir/$ac_word" || continue
3961 ac_cv_prog_ac_ct_RANLIB="ranlib"
3962 echo "$as_me:3962: found $ac_dir/$ac_word" >&5
3966 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3969 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3970 if test -n "$ac_ct_RANLIB"; then
3971 echo "$as_me:3971: result: $ac_ct_RANLIB" >&5
3972 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3974 echo "$as_me:3974: result: no" >&5
3975 echo "${ECHO_T}no" >&6
3978 RANLIB=$ac_ct_RANLIB
3980 RANLIB="$ac_cv_prog_RANLIB"
3983 if test -n "$ac_tool_prefix"; then
3984 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3985 set dummy ${ac_tool_prefix}ld; ac_word=$2
3986 echo "$as_me:3986: checking for $ac_word" >&5
3987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3988 if test "${ac_cv_prog_LD+set}" = set; then
3989 echo $ECHO_N "(cached) $ECHO_C" >&6
3991 if test -n "$LD"; then
3992 ac_cv_prog_LD="$LD" # Let the user override the test.
3994 ac_save_IFS=$IFS; IFS=$ac_path_separator
3996 for ac_dir in $ac_dummy; do
3998 test -z "$ac_dir" && ac_dir=.
3999 $as_executable_p "$ac_dir/$ac_word" || continue
4000 ac_cv_prog_LD="${ac_tool_prefix}ld"
4001 echo "$as_me:4001: found $ac_dir/$ac_word" >&5
4008 if test -n "$LD"; then
4009 echo "$as_me:4009: result: $LD" >&5
4010 echo "${ECHO_T}$LD" >&6
4012 echo "$as_me:4012: result: no" >&5
4013 echo "${ECHO_T}no" >&6
4017 if test -z "$ac_cv_prog_LD"; then
4019 # Extract the first word of "ld", so it can be a program name with args.
4020 set dummy ld; ac_word=$2
4021 echo "$as_me:4021: checking for $ac_word" >&5
4022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4023 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4024 echo $ECHO_N "(cached) $ECHO_C" >&6
4026 if test -n "$ac_ct_LD"; then
4027 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4029 ac_save_IFS=$IFS; IFS=$ac_path_separator
4031 for ac_dir in $ac_dummy; do
4033 test -z "$ac_dir" && ac_dir=.
4034 $as_executable_p "$ac_dir/$ac_word" || continue
4035 ac_cv_prog_ac_ct_LD="ld"
4036 echo "$as_me:4036: found $ac_dir/$ac_word" >&5
4040 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4043 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4044 if test -n "$ac_ct_LD"; then
4045 echo "$as_me:4045: result: $ac_ct_LD" >&5
4046 echo "${ECHO_T}$ac_ct_LD" >&6
4048 echo "$as_me:4048: result: no" >&5
4049 echo "${ECHO_T}no" >&6
4057 if test -n "$ac_tool_prefix"; then
4058 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4059 set dummy ${ac_tool_prefix}ar; ac_word=$2
4060 echo "$as_me:4060: checking for $ac_word" >&5
4061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4062 if test "${ac_cv_prog_AR+set}" = set; then
4063 echo $ECHO_N "(cached) $ECHO_C" >&6
4065 if test -n "$AR"; then
4066 ac_cv_prog_AR="$AR" # Let the user override the test.
4068 ac_save_IFS=$IFS; IFS=$ac_path_separator
4070 for ac_dir in $ac_dummy; do
4072 test -z "$ac_dir" && ac_dir=.
4073 $as_executable_p "$ac_dir/$ac_word" || continue
4074 ac_cv_prog_AR="${ac_tool_prefix}ar"
4075 echo "$as_me:4075: found $ac_dir/$ac_word" >&5
4082 if test -n "$AR"; then
4083 echo "$as_me:4083: result: $AR" >&5
4084 echo "${ECHO_T}$AR" >&6
4086 echo "$as_me:4086: result: no" >&5
4087 echo "${ECHO_T}no" >&6
4091 if test -z "$ac_cv_prog_AR"; then
4093 # Extract the first word of "ar", so it can be a program name with args.
4094 set dummy ar; ac_word=$2
4095 echo "$as_me:4095: checking for $ac_word" >&5
4096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4097 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4098 echo $ECHO_N "(cached) $ECHO_C" >&6
4100 if test -n "$ac_ct_AR"; then
4101 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4103 ac_save_IFS=$IFS; IFS=$ac_path_separator
4105 for ac_dir in $ac_dummy; do
4107 test -z "$ac_dir" && ac_dir=.
4108 $as_executable_p "$ac_dir/$ac_word" || continue
4109 ac_cv_prog_ac_ct_AR="ar"
4110 echo "$as_me:4110: found $ac_dir/$ac_word" >&5
4114 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4117 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4118 if test -n "$ac_ct_AR"; then
4119 echo "$as_me:4119: result: $ac_ct_AR" >&5
4120 echo "${ECHO_T}$ac_ct_AR" >&6
4122 echo "$as_me:4122: result: no" >&5
4123 echo "${ECHO_T}no" >&6
4131 if test -n "$ac_tool_prefix"; then
4132 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4133 set dummy ${ac_tool_prefix}ar; ac_word=$2
4134 echo "$as_me:4134: checking for $ac_word" >&5
4135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4136 if test "${ac_cv_prog_AR+set}" = set; then
4137 echo $ECHO_N "(cached) $ECHO_C" >&6
4139 if test -n "$AR"; then
4140 ac_cv_prog_AR="$AR" # Let the user override the test.
4142 ac_save_IFS=$IFS; IFS=$ac_path_separator
4144 for ac_dir in $ac_dummy; do
4146 test -z "$ac_dir" && ac_dir=.
4147 $as_executable_p "$ac_dir/$ac_word" || continue
4148 ac_cv_prog_AR="${ac_tool_prefix}ar"
4149 echo "$as_me:4149: found $ac_dir/$ac_word" >&5
4156 if test -n "$AR"; then
4157 echo "$as_me:4157: result: $AR" >&5
4158 echo "${ECHO_T}$AR" >&6
4160 echo "$as_me:4160: result: no" >&5
4161 echo "${ECHO_T}no" >&6
4165 if test -z "$ac_cv_prog_AR"; then
4167 # Extract the first word of "ar", so it can be a program name with args.
4168 set dummy ar; ac_word=$2
4169 echo "$as_me:4169: checking for $ac_word" >&5
4170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4171 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4172 echo $ECHO_N "(cached) $ECHO_C" >&6
4174 if test -n "$ac_ct_AR"; then
4175 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4177 ac_save_IFS=$IFS; IFS=$ac_path_separator
4179 for ac_dir in $ac_dummy; do
4181 test -z "$ac_dir" && ac_dir=.
4182 $as_executable_p "$ac_dir/$ac_word" || continue
4183 ac_cv_prog_ac_ct_AR="ar"
4184 echo "$as_me:4184: found $ac_dir/$ac_word" >&5
4188 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4191 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4192 if test -n "$ac_ct_AR"; then
4193 echo "$as_me:4193: result: $ac_ct_AR" >&5
4194 echo "${ECHO_T}$ac_ct_AR" >&6
4196 echo "$as_me:4196: result: no" >&5
4197 echo "${ECHO_T}no" >&6
4205 echo "$as_me:4205: checking for options to update archives" >&5
4206 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4207 if test "${cf_cv_ar_flags+set}" = set; then
4208 echo $ECHO_N "(cached) $ECHO_C" >&6
4211 cf_cv_ar_flags=unknown
4212 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
4215 # check if $ARFLAGS already contains this choice
4216 if test "x$ARFLAGS" != "x" ; then
4217 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4218 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4224 rm -f conftest.$ac_cv_objext
4227 cat >conftest.$ac_ext <<EOF
4228 #line 4228 "configure"
4229 int testdata[3] = { 123, 456, 789 };
4231 if { (eval echo "$as_me:4231: \"$ac_compile\"") >&5
4232 (eval $ac_compile) 2>&5
4234 echo "$as_me:4234: \$? = $ac_status" >&5
4235 (exit $ac_status); } ; then
4236 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4237 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4238 if test -f conftest.a ; then
4239 cf_cv_ar_flags=$cf_ar_flags
4243 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4245 echo "${as_me:-configure}:4245: testing cannot compile test-program ..." 1>&5
4250 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4253 echo "$as_me:4253: result: $cf_cv_ar_flags" >&5
4254 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4256 if test -n "$ARFLAGS" ; then
4257 if test -n "$cf_cv_ar_flags" ; then
4258 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4261 ARFLAGS=$cf_cv_ar_flags
4264 echo "$as_me:4264: checking if you have specified an install-prefix" >&5
4265 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4267 # Check whether --with-install-prefix or --without-install-prefix was given.
4268 if test "${with_install_prefix+set}" = set; then
4269 withval="$with_install_prefix"
4270 case "$withval" in #(vi
4273 *) DESTDIR="$withval"
4277 echo "$as_me:4277: result: $DESTDIR" >&5
4278 echo "${ECHO_T}$DESTDIR" >&6
4280 ###############################################################################
4282 # If we're cross-compiling, allow the user to override the tools and their
4283 # options. The configure script is oriented toward identifying the host
4284 # compiler, etc., but we need a build compiler to generate parts of the source.
4286 if test "$cross_compiling" = yes ; then
4288 # defaults that we might want to override
4289 : ${BUILD_CFLAGS:=''}
4290 : ${BUILD_CPPFLAGS:=''}
4291 : ${BUILD_LDFLAGS:=''}
4293 : ${BUILD_EXEEXT:='$x'}
4294 : ${BUILD_OBJEXT:='o'}
4296 # Check whether --with-build-cc or --without-build-cc was given.
4297 if test "${with_build_cc+set}" = set; then
4298 withval="$with_build_cc"
4301 for ac_prog in gcc cc cl
4303 # Extract the first word of "$ac_prog", so it can be a program name with args.
4304 set dummy $ac_prog; ac_word=$2
4305 echo "$as_me:4305: checking for $ac_word" >&5
4306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4307 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4310 if test -n "$BUILD_CC"; then
4311 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4313 ac_save_IFS=$IFS; IFS=$ac_path_separator
4315 for ac_dir in $ac_dummy; do
4317 test -z "$ac_dir" && ac_dir=.
4318 $as_executable_p "$ac_dir/$ac_word" || continue
4319 ac_cv_prog_BUILD_CC="$ac_prog"
4320 echo "$as_me:4320: found $ac_dir/$ac_word" >&5
4326 BUILD_CC=$ac_cv_prog_BUILD_CC
4327 if test -n "$BUILD_CC"; then
4328 echo "$as_me:4328: result: $BUILD_CC" >&5
4329 echo "${ECHO_T}$BUILD_CC" >&6
4331 echo "$as_me:4331: result: no" >&5
4332 echo "${ECHO_T}no" >&6
4335 test -n "$BUILD_CC" && break
4339 echo "$as_me:4339: checking for native build C compiler" >&5
4340 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4341 echo "$as_me:4341: result: $BUILD_CC" >&5
4342 echo "${ECHO_T}$BUILD_CC" >&6
4344 echo "$as_me:4344: checking for native build C preprocessor" >&5
4345 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4347 # Check whether --with-build-cpp or --without-build-cpp was given.
4348 if test "${with_build_cpp+set}" = set; then
4349 withval="$with_build_cpp"
4350 BUILD_CPP="$withval"
4352 BUILD_CPP='${BUILD_CC} -E'
4354 echo "$as_me:4354: result: $BUILD_CPP" >&5
4355 echo "${ECHO_T}$BUILD_CPP" >&6
4357 echo "$as_me:4357: checking for native build C flags" >&5
4358 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4360 # Check whether --with-build-cflags or --without-build-cflags was given.
4361 if test "${with_build_cflags+set}" = set; then
4362 withval="$with_build_cflags"
4363 BUILD_CFLAGS="$withval"
4365 echo "$as_me:4365: result: $BUILD_CFLAGS" >&5
4366 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4368 echo "$as_me:4368: checking for native build C preprocessor-flags" >&5
4369 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4371 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4372 if test "${with_build_cppflags+set}" = set; then
4373 withval="$with_build_cppflags"
4374 BUILD_CPPFLAGS="$withval"
4376 echo "$as_me:4376: result: $BUILD_CPPFLAGS" >&5
4377 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4379 echo "$as_me:4379: checking for native build linker-flags" >&5
4380 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4382 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4383 if test "${with_build_ldflags+set}" = set; then
4384 withval="$with_build_ldflags"
4385 BUILD_LDFLAGS="$withval"
4387 echo "$as_me:4387: result: $BUILD_LDFLAGS" >&5
4388 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4390 echo "$as_me:4390: checking for native build linker-libraries" >&5
4391 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4393 # Check whether --with-build-libs or --without-build-libs was given.
4394 if test "${with_build_libs+set}" = set; then
4395 withval="$with_build_libs"
4396 BUILD_LIBS="$withval"
4398 echo "$as_me:4398: result: $BUILD_LIBS" >&5
4399 echo "${ECHO_T}$BUILD_LIBS" >&6
4401 # this assumes we're on Unix.
4405 : ${BUILD_CC:='${CC}'}
4407 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4408 { { echo "$as_me:4408: error: Cross-build requires two compilers.
4409 Use --with-build-cc to specify the native compiler." >&5
4410 echo "$as_me: error: Cross-build requires two compilers.
4411 Use --with-build-cc to specify the native compiler." >&2;}
4412 { (exit 1); exit 1; }; }
4416 : ${BUILD_CC:='${CC}'}
4417 : ${BUILD_CPP:='${CPP}'}
4418 : ${BUILD_CFLAGS:='${CFLAGS}'}
4419 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4420 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4421 : ${BUILD_LIBS:='${LIBS}'}
4422 : ${BUILD_EXEEXT:='$x'}
4423 : ${BUILD_OBJEXT:='o'}
4426 ###############################################################################
4428 ### Options to allow the user to specify the set of libraries which are used.
4429 ### Use "--without-normal --with-shared" to allow the default model to be
4430 ### shared, for example.
4433 echo "$as_me:4433: checking if libtool -version-number should be used" >&5
4434 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
4436 # Check whether --enable-libtool-version or --disable-libtool-version was given.
4437 if test "${enable_libtool_version+set}" = set; then
4438 enableval="$enable_libtool_version"
4439 test "$enableval" != no && enableval=yes
4440 if test "$enableval" != "yes" ; then
4441 cf_libtool_version=no
4443 cf_libtool_version=yes
4447 cf_libtool_version=yes
4450 echo "$as_me:4450: result: $cf_libtool_version" >&5
4451 echo "${ECHO_T}$cf_libtool_version" >&6
4453 if test "$cf_libtool_version" = yes ; then
4454 LIBTOOL_VERSION="-version-number"
4456 LIBTOOL_VERSION="-version-info"
4461 # common library maintenance symbols that are convenient for libtool scripts:
4462 LIB_CREATE='${AR} -cr'
4463 LIB_OBJECT='${OBJECTS}'
4467 # symbols used to prop libtool up to enable it to determine what it should be
4475 echo "$as_me:4475: checking if you want to build libraries with libtool" >&5
4476 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4478 # Check whether --with-libtool or --without-libtool was given.
4479 if test "${with_libtool+set}" = set; then
4480 withval="$with_libtool"
4481 with_libtool=$withval
4485 echo "$as_me:4485: result: $with_libtool" >&5
4486 echo "${ECHO_T}$with_libtool" >&6
4487 if test "$with_libtool" != "no"; then
4489 if test "$with_libtool" != "yes" ; then
4491 if test "x$prefix" != xNONE; then
4492 cf_path_syntax="$prefix"
4494 cf_path_syntax="$ac_default_prefix"
4497 case ".$with_libtool" in #(vi
4498 .\$\(*\)*|.\'*\'*) #(vi
4502 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4504 .\${*prefix}*|.\${*dir}*) #(vi
4505 eval with_libtool="$with_libtool"
4506 case ".$with_libtool" in #(vi
4508 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4513 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4516 { { echo "$as_me:4516: error: expected a pathname, not \"$with_libtool\"" >&5
4517 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4518 { (exit 1); exit 1; }; }
4522 LIBTOOL=$with_libtool
4524 # Extract the first word of "libtool", so it can be a program name with args.
4525 set dummy libtool; ac_word=$2
4526 echo "$as_me:4526: checking for $ac_word" >&5
4527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4528 if test "${ac_cv_path_LIBTOOL+set}" = set; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4533 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
4536 ac_save_IFS=$IFS; IFS=$ac_path_separator
4538 for ac_dir in $ac_dummy; do
4540 test -z "$ac_dir" && ac_dir=.
4541 if $as_executable_p "$ac_dir/$ac_word"; then
4542 ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
4543 echo "$as_me:4543: found $ac_dir/$ac_word" >&5
4551 LIBTOOL=$ac_cv_path_LIBTOOL
4553 if test -n "$LIBTOOL"; then
4554 echo "$as_me:4554: result: $LIBTOOL" >&5
4555 echo "${ECHO_T}$LIBTOOL" >&6
4557 echo "$as_me:4557: result: no" >&5
4558 echo "${ECHO_T}no" >&6
4562 if test -z "$LIBTOOL" ; then
4563 { { echo "$as_me:4563: error: Cannot find libtool" >&5
4564 echo "$as_me: error: Cannot find libtool" >&2;}
4565 { (exit 1); exit 1; }; }
4567 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} ${LIBTOOL_VERSION} `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
4568 LIB_OBJECT='${OBJECTS:.o=.lo}'
4570 LIB_CLEAN='${LIBTOOL} --mode=clean'
4571 LIB_COMPILE='${LIBTOOL} --mode=compile'
4572 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
4573 LIB_INSTALL='${LIBTOOL} --mode=install'
4574 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4577 # Show the version of libtool
4578 echo "$as_me:4578: checking version of libtool" >&5
4579 echo $ECHO_N "checking version of libtool... $ECHO_C" >&6
4581 # Save the version in a cache variable - this is not entirely a good
4582 # thing, but the version string from libtool is very ugly, and for
4583 # bug reports it might be useful to have the original string. "("
4584 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.].*//'`
4585 echo "$as_me:4585: result: $cf_cv_libtool_version" >&5
4586 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4587 if test -z "$cf_cv_libtool_version" ; then
4588 { { echo "$as_me:4588: error: This is not GNU libtool" >&5
4589 echo "$as_me: error: This is not GNU libtool" >&2;}
4590 { (exit 1); exit 1; }; }
4593 # special hack to add -no-undefined (which libtool should do for itself)
4595 case "$cf_cv_system_name" in #(vi
4596 cygwin*|mingw32*|uwin*|aix[4-7]) #(vi
4597 LT_UNDEF=-no-undefined
4601 # special hack to add --tag option for C++ compiler
4602 case $cf_cv_libtool_version in #(vi
4603 1.[5-9]*|[2-9].[0-9.a-z]*) #(vi
4604 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4605 LIBTOOL="$LIBTOOL --tag=CC"
4608 LIBTOOL_CXX="$LIBTOOL"
4616 test -z "$LIBTOOL" && ECHO_LT=
4618 if test "$with_libtool" != "no" ; then
4620 cf_list_models="$cf_list_models libtool"
4624 echo "$as_me:4624: checking if you want to build shared libraries" >&5
4625 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
4627 # Check whether --with-shared or --without-shared was given.
4628 if test "${with_shared+set}" = set; then
4629 withval="$with_shared"
4630 with_shared=$withval
4634 echo "$as_me:4634: result: $with_shared" >&5
4635 echo "${ECHO_T}$with_shared" >&6
4636 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
4638 echo "$as_me:4638: checking if you want to build static libraries" >&5
4639 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
4641 # Check whether --with-normal or --without-normal was given.
4642 if test "${with_normal+set}" = set; then
4643 withval="$with_normal"
4644 with_normal=$withval
4648 echo "$as_me:4648: result: $with_normal" >&5
4649 echo "${ECHO_T}$with_normal" >&6
4650 test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
4652 echo "$as_me:4652: checking if you want to build debug libraries" >&5
4653 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
4655 # Check whether --with-debug or --without-debug was given.
4656 if test "${with_debug+set}" = set; then
4657 withval="$with_debug"
4662 echo "$as_me:4662: result: $with_debug" >&5
4663 echo "${ECHO_T}$with_debug" >&6
4664 test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
4666 echo "$as_me:4666: checking if you want to build profiling libraries" >&5
4667 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
4669 # Check whether --with-profile or --without-profile was given.
4670 if test "${with_profile+set}" = set; then
4671 withval="$with_profile"
4672 with_profile=$withval
4676 echo "$as_me:4676: result: $with_profile" >&5
4677 echo "${ECHO_T}$with_profile" >&6
4678 test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
4682 ###############################################################################
4684 echo "$as_me:4684: checking for specified models" >&5
4685 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
4686 test -z "$cf_list_models" && cf_list_models=normal
4687 test "$with_libtool" != "no" && cf_list_models=libtool
4688 echo "$as_me:4688: result: $cf_list_models" >&5
4689 echo "${ECHO_T}$cf_list_models" >&6
4691 ### Use the first model as the default, and save its suffix for use in building
4692 ### up test-applications.
4693 echo "$as_me:4693: checking for default model" >&5
4694 echo $ECHO_N "checking for default model... $ECHO_C" >&6
4695 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
4696 echo "$as_me:4696: result: $DFT_LWR_MODEL" >&5
4697 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
4699 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4710 echo "$as_me:4710: checking if you want to have a library-prefix" >&5
4711 echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
4713 # Check whether --with-lib-prefix or --without-lib-prefix was given.
4714 if test "${with_lib_prefix+set}" = set; then
4715 withval="$with_lib_prefix"
4716 with_lib_prefix=$withval
4718 with_lib_prefix=auto
4720 echo "$as_me:4720: result: $with_lib_prefix" >&5
4721 echo "${ECHO_T}$with_lib_prefix" >&6
4723 if test $with_lib_prefix = auto
4726 case $cf_cv_system_name in #(vi
4733 cf_prefix=$LIB_PREFIX
4735 elif test $with_lib_prefix = no
4739 LIB_PREFIX=$with_lib_prefix
4744 ###############################################################################
4746 echo "$as_me:4746: checking if you want to build a separate terminfo library" >&5
4747 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
4749 # Check whether --with-termlib or --without-termlib was given.
4750 if test "${with_termlib+set}" = set; then
4751 withval="$with_termlib"
4752 with_termlib=$withval
4756 echo "$as_me:4756: result: $with_termlib" >&5
4757 echo "${ECHO_T}$with_termlib" >&6
4759 echo "$as_me:4759: checking if you want to build a separate tic library" >&5
4760 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
4762 # Check whether --with-ticlib or --without-ticlib was given.
4763 if test "${with_ticlib+set}" = set; then
4764 withval="$with_ticlib"
4765 with_ticlib=$withval
4769 echo "$as_me:4769: result: $with_ticlib" >&5
4770 echo "${ECHO_T}$with_ticlib" >&6
4772 ### Checks for special libraries, must be done up-front.
4775 echo "$as_me:4775: checking if you want to link with the GPM mouse library" >&5
4776 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
4778 # Check whether --with-gpm or --without-gpm was given.
4779 if test "${with_gpm+set}" = set; then
4785 echo "$as_me:4785: result: $with_gpm" >&5
4786 echo "${ECHO_T}$with_gpm" >&6
4788 if test "$with_gpm" != no ; then
4789 echo "$as_me:4789: checking for gpm.h" >&5
4790 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
4791 if test "${ac_cv_header_gpm_h+set}" = set; then
4792 echo $ECHO_N "(cached) $ECHO_C" >&6
4794 cat >conftest.$ac_ext <<_ACEOF
4795 #line 4795 "configure"
4796 #include "confdefs.h"
4799 if { (eval echo "$as_me:4799: \"$ac_cpp conftest.$ac_ext\"") >&5
4800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4802 egrep -v '^ *\+' conftest.er1 >conftest.err
4804 cat conftest.err >&5
4805 echo "$as_me:4805: \$? = $ac_status" >&5
4806 (exit $ac_status); } >/dev/null; then
4807 if test -s conftest.err; then
4808 ac_cpp_err=$ac_c_preproc_warn_flag
4815 if test -z "$ac_cpp_err"; then
4816 ac_cv_header_gpm_h=yes
4818 echo "$as_me: failed program was:" >&5
4819 cat conftest.$ac_ext >&5
4820 ac_cv_header_gpm_h=no
4822 rm -f conftest.err conftest.$ac_ext
4824 echo "$as_me:4824: result: $ac_cv_header_gpm_h" >&5
4825 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
4826 if test $ac_cv_header_gpm_h = yes; then
4828 cat >>confdefs.h <<\EOF
4829 #define HAVE_GPM_H 1
4832 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
4833 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
4835 echo "${as_me:-configure}:4835: testing assuming we really have GPM library ..." 1>&5
4837 cat >>confdefs.h <<\EOF
4838 #define HAVE_LIBGPM 1
4842 echo "$as_me:4842: checking for Gpm_Open in -lgpm" >&5
4843 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
4844 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
4845 echo $ECHO_N "(cached) $ECHO_C" >&6
4847 ac_check_lib_save_LIBS=$LIBS
4849 cat >conftest.$ac_ext <<_ACEOF
4850 #line 4850 "configure"
4851 #include "confdefs.h"
4853 /* Override any gcc2 internal prototype to avoid an error. */
4857 /* We use char because int might match the return type of a gcc2
4858 builtin and then its argument prototype would still apply. */
4868 rm -f conftest.$ac_objext conftest$ac_exeext
4869 if { (eval echo "$as_me:4869: \"$ac_link\"") >&5
4870 (eval $ac_link) 2>&5
4872 echo "$as_me:4872: \$? = $ac_status" >&5
4873 (exit $ac_status); } &&
4874 { ac_try='test -s conftest$ac_exeext'
4875 { (eval echo "$as_me:4875: \"$ac_try\"") >&5
4878 echo "$as_me:4878: \$? = $ac_status" >&5
4879 (exit $ac_status); }; }; then
4880 ac_cv_lib_gpm_Gpm_Open=yes
4882 echo "$as_me: failed program was:" >&5
4883 cat conftest.$ac_ext >&5
4884 ac_cv_lib_gpm_Gpm_Open=no
4886 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4887 LIBS=$ac_check_lib_save_LIBS
4889 echo "$as_me:4889: result: $ac_cv_lib_gpm_Gpm_Open" >&5
4890 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
4891 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
4895 { { echo "$as_me:4895: error: Cannot link with GPM library" >&5
4896 echo "$as_me: error: Cannot link with GPM library" >&2;}
4897 { (exit 1); exit 1; }; }
4905 test "$with_gpm" != maybe && { echo "$as_me:4905: WARNING: Cannot find GPM header" >&5
4906 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
4913 if test "$with_gpm" != no ; then
4914 echo "$as_me:4914: checking if you want to load GPM dynamically" >&5
4915 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
4917 # Check whether --with-dlsym or --without-dlsym was given.
4918 if test "${with_dlsym+set}" = set; then
4919 withval="$with_dlsym"
4924 echo "$as_me:4924: result: $with_dlsym" >&5
4925 echo "${ECHO_T}$with_dlsym" >&6
4926 if test "$with_dlsym" = yes ; then
4929 echo "$as_me:4929: checking for dlsym" >&5
4930 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
4931 if test "${ac_cv_func_dlsym+set}" = set; then
4932 echo $ECHO_N "(cached) $ECHO_C" >&6
4934 cat >conftest.$ac_ext <<_ACEOF
4935 #line 4935 "configure"
4936 #include "confdefs.h"
4937 /* System header to define __stub macros and hopefully few prototypes,
4938 which can conflict with char dlsym (); below. */
4940 /* Override any gcc2 internal prototype to avoid an error. */
4944 /* We use char because int might match the return type of a gcc2
4945 builtin and then its argument prototype would still apply. */
4952 /* The GNU C library defines this for functions which it implements
4953 to always fail with ENOSYS. Some functions are actually named
4954 something starting with __ and the normal name is an alias. */
4955 #if defined (__stub_dlsym) || defined (__stub___dlsym)
4958 f = dlsym; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
4965 rm -f conftest.$ac_objext conftest$ac_exeext
4966 if { (eval echo "$as_me:4966: \"$ac_link\"") >&5
4967 (eval $ac_link) 2>&5
4969 echo "$as_me:4969: \$? = $ac_status" >&5
4970 (exit $ac_status); } &&
4971 { ac_try='test -s conftest$ac_exeext'
4972 { (eval echo "$as_me:4972: \"$ac_try\"") >&5
4975 echo "$as_me:4975: \$? = $ac_status" >&5
4976 (exit $ac_status); }; }; then
4977 ac_cv_func_dlsym=yes
4979 echo "$as_me: failed program was:" >&5
4980 cat conftest.$ac_ext >&5
4983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4985 echo "$as_me:4985: result: $ac_cv_func_dlsym" >&5
4986 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
4987 if test $ac_cv_func_dlsym = yes; then
4992 echo "$as_me:4992: checking for dlsym in -ldl" >&5
4993 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
4994 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
4995 echo $ECHO_N "(cached) $ECHO_C" >&6
4997 ac_check_lib_save_LIBS=$LIBS
4999 cat >conftest.$ac_ext <<_ACEOF
5000 #line 5000 "configure"
5001 #include "confdefs.h"
5003 /* Override any gcc2 internal prototype to avoid an error. */
5007 /* We use char because int might match the return type of a gcc2
5008 builtin and then its argument prototype would still apply. */
5018 rm -f conftest.$ac_objext conftest$ac_exeext
5019 if { (eval echo "$as_me:5019: \"$ac_link\"") >&5
5020 (eval $ac_link) 2>&5
5022 echo "$as_me:5022: \$? = $ac_status" >&5
5023 (exit $ac_status); } &&
5024 { ac_try='test -s conftest$ac_exeext'
5025 { (eval echo "$as_me:5025: \"$ac_try\"") >&5
5028 echo "$as_me:5028: \$? = $ac_status" >&5
5029 (exit $ac_status); }; }; then
5030 ac_cv_lib_dl_dlsym=yes
5032 echo "$as_me: failed program was:" >&5
5033 cat conftest.$ac_ext >&5
5034 ac_cv_lib_dl_dlsym=no
5036 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5037 LIBS=$ac_check_lib_save_LIBS
5039 echo "$as_me:5039: result: $ac_cv_lib_dl_dlsym" >&5
5040 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
5041 if test $ac_cv_lib_dl_dlsym = yes; then
5049 if test "$cf_have_dlsym" = yes ; then
5050 test "$cf_have_libdl" = yes && LIBS="-ldl $LIBS"
5052 echo "$as_me:5052: checking whether able to link to dl*() functions" >&5
5053 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
5054 cat >conftest.$ac_ext <<_ACEOF
5055 #line 5055 "configure"
5056 #include "confdefs.h"
5063 if ((obj = dlopen("filename", 0)) != 0) {
5064 if (dlsym(obj, "symbolname") == 0) {
5072 rm -f conftest.$ac_objext conftest$ac_exeext
5073 if { (eval echo "$as_me:5073: \"$ac_link\"") >&5
5074 (eval $ac_link) 2>&5
5076 echo "$as_me:5076: \$? = $ac_status" >&5
5077 (exit $ac_status); } &&
5078 { ac_try='test -s conftest$ac_exeext'
5079 { (eval echo "$as_me:5079: \"$ac_try\"") >&5
5082 echo "$as_me:5082: \$? = $ac_status" >&5
5083 (exit $ac_status); }; }; then
5085 cat >>confdefs.h <<\EOF
5086 #define HAVE_LIBDL 1
5090 echo "$as_me: failed program was:" >&5
5091 cat conftest.$ac_ext >&5
5093 { { echo "$as_me:5093: error: Cannot link test program for libdl" >&5
5094 echo "$as_me: error: Cannot link test program for libdl" >&2;}
5095 { (exit 1); exit 1; }; }
5097 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5098 echo "$as_me:5098: result: ok" >&5
5099 echo "${ECHO_T}ok" >&6
5101 { { echo "$as_me:5101: error: Cannot find dlsym function" >&5
5102 echo "$as_me: error: Cannot find dlsym function" >&2;}
5103 { (exit 1); exit 1; }; }
5106 if test "$with_gpm" != yes ; then
5107 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
5109 echo "${as_me:-configure}:5109: testing assuming soname for gpm is $with_gpm ..." 1>&5
5111 cf_cv_gpm_soname="$with_gpm"
5114 echo "$as_me:5114: checking for soname of gpm library" >&5
5115 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
5116 if test "${cf_cv_gpm_soname+set}" = set; then
5117 echo $ECHO_N "(cached) $ECHO_C" >&6
5120 cf_cv_gpm_soname=unknown
5121 if test "$cross_compiling" != yes ; then
5122 cat >conftest.$ac_ext <<CF_EOF
5126 if (Gpm_Open(0,0)) Gpm_Close();
5127 ${cf_cv_main_return:-return}(0);
5130 cf_save_LIBS="$LIBS"
5132 if { (eval echo "$as_me:5132: \"$ac_compile\"") >&5
5133 (eval $ac_compile) 2>&5
5135 echo "$as_me:5135: \$? = $ac_status" >&5
5136 (exit $ac_status); } ; then
5137 if { (eval echo "$as_me:5137: \"$ac_link\"") >&5
5138 (eval $ac_link) 2>&5
5140 echo "$as_me:5140: \$? = $ac_status" >&5
5141 (exit $ac_status); } ; then
5142 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
5143 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
5147 LIBS="$cf_save_LIBS"
5151 echo "$as_me:5151: result: $cf_cv_gpm_soname" >&5
5152 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
5155 test "$cf_cv_gpm_soname" != "unknown" && cat >>confdefs.h <<EOF
5156 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
5159 SHLIB_LIST="-ldl $SHLIB_LIST"
5161 SHLIB_LIST="-lgpm $SHLIB_LIST"
5162 TEST_LIBS="-lgpm $TEST_LIBS"
5164 cat >>confdefs.h <<\EOF
5165 #define HAVE_LIBGPM 1
5168 echo "$as_me:5168: checking for Gpm_Wgetch in -lgpm" >&5
5169 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
5170 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
5171 echo $ECHO_N "(cached) $ECHO_C" >&6
5173 ac_check_lib_save_LIBS=$LIBS
5175 cat >conftest.$ac_ext <<_ACEOF
5176 #line 5176 "configure"
5177 #include "confdefs.h"
5179 /* Override any gcc2 internal prototype to avoid an error. */
5183 /* We use char because int might match the return type of a gcc2
5184 builtin and then its argument prototype would still apply. */
5194 rm -f conftest.$ac_objext conftest$ac_exeext
5195 if { (eval echo "$as_me:5195: \"$ac_link\"") >&5
5196 (eval $ac_link) 2>&5
5198 echo "$as_me:5198: \$? = $ac_status" >&5
5199 (exit $ac_status); } &&
5200 { ac_try='test -s conftest$ac_exeext'
5201 { (eval echo "$as_me:5201: \"$ac_try\"") >&5
5204 echo "$as_me:5204: \$? = $ac_status" >&5
5205 (exit $ac_status); }; }; then
5206 ac_cv_lib_gpm_Gpm_Wgetch=yes
5208 echo "$as_me: failed program was:" >&5
5209 cat conftest.$ac_ext >&5
5210 ac_cv_lib_gpm_Gpm_Wgetch=no
5212 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5213 LIBS=$ac_check_lib_save_LIBS
5215 echo "$as_me:5215: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
5216 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
5217 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
5219 echo "$as_me:5219: checking if GPM is weakly bound to curses library" >&5
5220 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
5221 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5225 cf_cv_check_gpm_wgetch=unknown
5226 if test "$cross_compiling" != yes ; then
5228 cat >conftest.$ac_ext <<CF_EOF
5233 ${cf_cv_main_return:-return}(0);
5237 cf_save_LIBS="$LIBS"
5238 # This only works if we can look at the symbol table. If a shared
5239 # library is stripped for install, we cannot use that. So we're forced
5240 # to rely on the static library, noting that some packagers may not
5242 LIBS="-static -lgpm -dynamic $LIBS"
5243 if { (eval echo "$as_me:5243: \"$ac_compile\"") >&5
5244 (eval $ac_compile) 2>&5
5246 echo "$as_me:5246: \$? = $ac_status" >&5
5247 (exit $ac_status); } ; then
5248 if { (eval echo "$as_me:5248: \"$ac_link\"") >&5
5249 (eval $ac_link) 2>&5
5251 echo "$as_me:5251: \$? = $ac_status" >&5
5252 (exit $ac_status); } ; then
5253 cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
5254 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
5255 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
5259 LIBS="$cf_save_LIBS"
5263 echo "$as_me:5263: result: $cf_cv_check_gpm_wgetch" >&5
5264 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
5266 if test "$cf_cv_check_gpm_wgetch" != yes ; then
5267 { echo "$as_me:5267: WARNING: GPM library is already linked with curses - read the FAQ" >&5
5268 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
5275 # not everyone has "test -c"
5276 if test -c /dev/sysmouse 2>/dev/null ; then
5277 echo "$as_me:5277: checking if you want to use sysmouse" >&5
5278 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
5280 # Check whether --with-sysmouse or --without-sysmouse was given.
5281 if test "${with_sysmouse+set}" = set; then
5282 withval="$with_sysmouse"
5283 cf_with_sysmouse=$withval
5285 cf_with_sysmouse=maybe
5287 if test "$cf_with_sysmouse" != no ; then
5288 cat >conftest.$ac_ext <<_ACEOF
5289 #line 5289 "configure"
5290 #include "confdefs.h"
5292 #include <osreldate.h>
5293 #if (__FreeBSD_version >= 400017)
5294 #include <sys/consio.h>
5295 #include <sys/fbio.h>
5297 #include <machine/console.h>
5304 struct mouse_info the_mouse;
5305 ioctl(0, CONS_MOUSECTL, &the_mouse);
5311 rm -f conftest.$ac_objext
5312 if { (eval echo "$as_me:5312: \"$ac_compile\"") >&5
5313 (eval $ac_compile) 2>&5
5315 echo "$as_me:5315: \$? = $ac_status" >&5
5316 (exit $ac_status); } &&
5317 { ac_try='test -s conftest.$ac_objext'
5318 { (eval echo "$as_me:5318: \"$ac_try\"") >&5
5321 echo "$as_me:5321: \$? = $ac_status" >&5
5322 (exit $ac_status); }; }; then
5323 cf_with_sysmouse=yes
5325 echo "$as_me: failed program was:" >&5
5326 cat conftest.$ac_ext >&5
5329 rm -f conftest.$ac_objext conftest.$ac_ext
5331 echo "$as_me:5331: result: $cf_with_sysmouse" >&5
5332 echo "${ECHO_T}$cf_with_sysmouse" >&6
5333 test "$cf_with_sysmouse" = yes && cat >>confdefs.h <<\EOF
5334 #define USE_SYSMOUSE 1
5339 if test X"$CC_G_OPT" = X"" ; then
5341 test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
5344 if test X"$CXX_G_OPT" = X"" ; then
5346 test -n "$GXX" && test "${ac_cv_prog_cxx_g}" != yes && CXX_G_OPT=''
5349 echo "$as_me:5349: checking for default loader flags" >&5
5350 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
5351 case $DFT_LWR_MODEL in
5352 libtool) LD_MODEL='' ;;
5353 normal) LD_MODEL='' ;;
5354 debug) LD_MODEL=$CC_G_OPT ;;
5355 profile) LD_MODEL='-pg';;
5356 shared) LD_MODEL='' ;;
5358 echo "$as_me:5358: result: $LD_MODEL" >&5
5359 echo "${ECHO_T}$LD_MODEL" >&6
5361 case $DFT_LWR_MODEL in
5364 echo "$as_me:5364: checking if rpath option should be used" >&5
5365 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
5367 # Check whether --enable-rpath or --disable-rpath was given.
5368 if test "${enable_rpath+set}" = set; then
5369 enableval="$enable_rpath"
5370 cf_cv_enable_rpath=$enableval
5372 cf_cv_enable_rpath=no
5374 echo "$as_me:5374: result: $cf_cv_enable_rpath" >&5
5375 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
5377 echo "$as_me:5377: checking if shared libraries should be relinked during install" >&5
5378 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
5380 # Check whether --enable-relink or --disable-relink was given.
5381 if test "${enable_relink+set}" = set; then
5382 enableval="$enable_relink"
5383 cf_cv_do_relink=$enableval
5387 echo "$as_me:5387: result: $cf_cv_do_relink" >&5
5388 echo "${ECHO_T}$cf_cv_do_relink" >&6
5393 echo "$as_me:5393: checking for an rpath option" >&5
5394 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
5395 case $cf_cv_system_name in #(vi
5397 if test "$GCC" = yes; then
5398 LD_RPATH_OPT="-Wl,-rpath,"
5400 LD_RPATH_OPT="-rpath "
5403 linux*|gnu*|k*bsd*-gnu) #(vi
5404 LD_RPATH_OPT="-Wl,-rpath,"
5406 openbsd[2-9].*|mirbsd*) #(vi
5407 LD_RPATH_OPT="-Wl,-rpath,"
5409 dragonfly*|freebsd*) #(vi
5410 LD_RPATH_OPT="-rpath "
5413 LD_RPATH_OPT="-Wl,-rpath,"
5416 LD_RPATH_OPT="-rpath "
5424 echo "$as_me:5424: result: $LD_RPATH_OPT" >&5
5425 echo "${ECHO_T}$LD_RPATH_OPT" >&6
5427 case "x$LD_RPATH_OPT" in #(vi
5429 echo "$as_me:5429: checking if we need a space after rpath option" >&5
5430 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
5431 cf_save_LIBS="$LIBS"
5432 LIBS="${LD_RPATH_OPT}$libdir $LIBS"
5433 cat >conftest.$ac_ext <<_ACEOF
5434 #line 5434 "configure"
5435 #include "confdefs.h"
5445 rm -f conftest.$ac_objext conftest$ac_exeext
5446 if { (eval echo "$as_me:5446: \"$ac_link\"") >&5
5447 (eval $ac_link) 2>&5
5449 echo "$as_me:5449: \$? = $ac_status" >&5
5450 (exit $ac_status); } &&
5451 { ac_try='test -s conftest$ac_exeext'
5452 { (eval echo "$as_me:5452: \"$ac_try\"") >&5
5455 echo "$as_me:5455: \$? = $ac_status" >&5
5456 (exit $ac_status); }; }; then
5459 echo "$as_me: failed program was:" >&5
5460 cat conftest.$ac_ext >&5
5463 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5464 LIBS="$cf_save_LIBS"
5465 echo "$as_me:5465: result: $cf_rpath_space" >&5
5466 echo "${ECHO_T}$cf_rpath_space" >&6
5467 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
5474 INSTALL_LIB="-m 644"
5476 cf_cv_do_symlinks=no
5478 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
5480 echo "$as_me:5480: checking if release/abi version should be used for shared libs" >&5
5481 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
5483 # Check whether --with-shlib-version or --without-shlib-version was given.
5484 if test "${with_shlib_version+set}" = set; then
5485 withval="$with_shlib_version"
5486 test -z "$withval" && withval=auto
5487 case $withval in #(vi
5489 cf_cv_shlib_version=auto
5491 rel|abi|auto|no) #(vi
5492 cf_cv_shlib_version=$withval
5495 { { echo "$as_me:5495: error: option value must be one of: rel, abi, auto or no" >&5
5496 echo "$as_me: error: option value must be one of: rel, abi, auto or no" >&2;}
5497 { (exit 1); exit 1; }; }
5502 cf_cv_shlib_version=auto
5504 echo "$as_me:5504: result: $cf_cv_shlib_version" >&5
5505 echo "${ECHO_T}$cf_cv_shlib_version" >&6
5509 # Some less-capable ports of gcc support only -fpic
5511 if test "$GCC" = yes
5513 echo "$as_me:5513: checking which $CC option to use" >&5
5514 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
5515 cf_save_CFLAGS="$CFLAGS"
5516 for CC_SHARED_OPTS in -fPIC -fpic ''
5518 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
5519 cat >conftest.$ac_ext <<_ACEOF
5520 #line 5520 "configure"
5521 #include "confdefs.h"
5531 rm -f conftest.$ac_objext
5532 if { (eval echo "$as_me:5532: \"$ac_compile\"") >&5
5533 (eval $ac_compile) 2>&5
5535 echo "$as_me:5535: \$? = $ac_status" >&5
5536 (exit $ac_status); } &&
5537 { ac_try='test -s conftest.$ac_objext'
5538 { (eval echo "$as_me:5538: \"$ac_try\"") >&5
5541 echo "$as_me:5541: \$? = $ac_status" >&5
5542 (exit $ac_status); }; }; then
5545 echo "$as_me: failed program was:" >&5
5546 cat conftest.$ac_ext >&5
5548 rm -f conftest.$ac_objext conftest.$ac_ext
5550 echo "$as_me:5550: result: $CC_SHARED_OPTS" >&5
5551 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
5552 CFLAGS="$cf_save_CFLAGS"
5555 cf_cv_shlib_version_infix=no
5557 case $cf_cv_system_name in #(vi
5558 aix4.3-9*|aix[5-7]*) #(vi
5559 if test "$GCC" = yes; then
5561 MK_SHARED_LIB='${CC} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
5563 # CC_SHARED_OPTS='-qpic=large -G'
5564 # perhaps "-bM:SRE -bnoentry -bexpall"
5565 MK_SHARED_LIB='${CC} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
5569 MK_SHARED_LIB='${CC} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
5573 MK_SHARED_LIB='sh ../mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5574 cf_cv_shlib_version=cygdll
5575 cf_cv_shlib_version_infix=cygdll
5576 cat >mk_shared_lib.sh <<-CF_EOF
5579 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
5582 Linking shared library
5583 ** SHARED_LIB \$SHARED_LIB
5584 ** IMPORT_LIB \$IMPORT_LIB
5586 exec \$* -shared -Wl,--out-implib=../lib/\${IMPORT_LIB} -Wl,--export-all-symbols -o ../lib/\${SHARED_LIB}
5588 chmod +x mk_shared_lib.sh
5591 EXTRA_CFLAGS="-no-cpp-precomp"
5592 CC_SHARED_OPTS="-dynamic"
5593 MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
5594 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
5595 cf_cv_shlib_version_infix=yes
5596 echo "$as_me:5596: checking if ld -search_paths_first works" >&5
5597 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
5598 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
5599 echo $ECHO_N "(cached) $ECHO_C" >&6
5602 cf_save_LDFLAGS=$LDFLAGS
5603 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5604 cat >conftest.$ac_ext <<_ACEOF
5605 #line 5605 "configure"
5606 #include "confdefs.h"
5616 rm -f conftest.$ac_objext conftest$ac_exeext
5617 if { (eval echo "$as_me:5617: \"$ac_link\"") >&5
5618 (eval $ac_link) 2>&5
5620 echo "$as_me:5620: \$? = $ac_status" >&5
5621 (exit $ac_status); } &&
5622 { ac_try='test -s conftest$ac_exeext'
5623 { (eval echo "$as_me:5623: \"$ac_try\"") >&5
5626 echo "$as_me:5626: \$? = $ac_status" >&5
5627 (exit $ac_status); }; }; then
5628 cf_cv_ldflags_search_paths_first=yes
5630 echo "$as_me: failed program was:" >&5
5631 cat conftest.$ac_ext >&5
5632 cf_cv_ldflags_search_paths_first=no
5634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5635 LDFLAGS=$cf_save_LDFLAGS
5637 echo "$as_me:5637: result: $cf_cv_ldflags_search_paths_first" >&5
5638 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
5639 if test $cf_cv_ldflags_search_paths_first = yes; then
5640 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5644 # (tested with gcc 2.7.2 -- I don't have c89)
5645 if test "$GCC" = yes; then
5646 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
5649 LD_SHARED_OPTS='-Wl,+b,${libdir}'
5651 MK_SHARED_LIB='${LD} +b ${libdir} -b -o $@'
5652 # HP-UX shared libraries must be executable, and should be
5653 # readonly to exploit a quirk in the memory manager.
5654 INSTALL_LIB="-m 555"
5657 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5658 if test "$cf_cv_shlib_version" = rel; then
5659 cf_shared_soname='`basename .${REL_VERSION}`.${ABI_VERSION}'
5661 cf_shared_soname='`basename `'
5664 MK_SHARED_LIB='${CC} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o '
5667 if test "$cf_cv_enable_rpath" = yes ; then
5668 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5670 # tested with IRIX 5.2 and 'cc'.
5671 if test "$GCC" != yes; then
5672 CC_SHARED_OPTS='-KPIC'
5673 MK_SHARED_LIB='${CC} -shared -rdata_shared -soname `basename $@` -o $@'
5675 MK_SHARED_LIB='${CC} -shared -Wl,-soname,`basename $@` -o $@'
5677 cf_cv_rm_so_locs=yes
5679 linux*|gnu*|k*bsd*-gnu) #(vi
5680 if test "$DFT_LWR_MODEL" = "shared" ; then
5681 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5682 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5684 if test "$cf_cv_enable_rpath" = yes ; then
5685 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5688 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5689 if test "$cf_cv_shlib_version" = rel; then
5690 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5692 cf_cv_shared_soname='`basename $@`'
5695 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5698 cf_cv_shlib_version=mingw
5699 cf_cv_shlib_version_infix=mingw
5701 MK_SHARED_LIB='sh ../mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5702 #MK_SHARED_LIB='${CC} ${CFLAGS} -mdll -Wl,-soname,'$cf_cv_shared_soname',-stats -o $[@]'
5703 #MK_SHARED_LIB='${DLLTOOL} --export-all-symbols --output-exp --output-lib $[@]'
5704 cat >mk_shared_lib.sh <<-CF_EOF
5707 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
5710 Linking shared library
5711 ** SHARED_LIB \$SHARED_LIB
5712 ** IMPORT_LIB \$IMPORT_LIB
5714 exec \$* -shared -Wl,--out-implib=../lib/\${IMPORT_LIB} -Wl,--export-all-symbols -o ../lib/\${SHARED_LIB}
5716 chmod +x mk_shared_lib.sh
5718 openbsd[2-9].*|mirbsd*) #(vi
5719 if test "$DFT_LWR_MODEL" = "shared" ; then
5720 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5721 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5723 if test "$cf_cv_enable_rpath" = yes ; then
5724 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5726 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5728 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5729 if test "$cf_cv_shlib_version" = rel; then
5730 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5732 cf_cv_shared_soname='`basename $@`'
5735 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5737 nto-qnx*|openbsd*|freebsd[12].*) #(vi
5738 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5739 MK_SHARED_LIB='${LD} -Bshareable -o $@'
5740 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5742 dragonfly*|freebsd*) #(vi
5743 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5744 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
5745 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
5746 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
5747 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5750 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5751 if test "$cf_cv_shlib_version" = rel; then
5752 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5754 cf_cv_shared_soname='`basename $@`'
5757 MK_SHARED_LIB='${LD} -shared -Bshareable -soname=`basename $@` -o $@'
5760 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5761 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
5762 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
5763 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5764 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5765 if test "$cf_cv_shlib_version" = auto; then
5766 if test -f /usr/libexec/ld.elf_so; then
5767 cf_cv_shlib_version=abi
5769 cf_cv_shlib_version=rel
5773 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5774 if test "$cf_cv_shlib_version" = rel; then
5775 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5777 cf_cv_shared_soname='`basename $@`'
5780 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
5782 MK_SHARED_LIB='${LD} -shared -Bshareable -o $@'
5786 # tested with OSF/1 V3.2 and 'cc'
5787 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
5788 # link with shared libs).
5789 MK_SHARED_LIB='${LD} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
5790 case $host_os in #(vi
5792 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
5795 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
5796 if test "$DFT_LWR_MODEL" = "shared" ; then
5797 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5798 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5800 cf_cv_rm_so_locs=yes
5802 sco3.2v5*) # (also uw2* and UW7: hops 13-Apr-98
5803 # tested with osr5.0.5
5804 if test "$GCC" != yes; then
5805 CC_SHARED_OPTS='-belf -KPIC'
5807 MK_SHARED_LIB='${LD} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
5808 if test "$cf_cv_enable_rpath" = yes ; then
5809 # only way is to set LD_RUN_PATH but no switch for it
5812 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5813 LINK_PROGS='LD_RUN_PATH=${libdir}'
5814 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
5817 # tested with SunOS 4.1.1 and gcc 2.7.0
5818 if test "$GCC" != yes; then
5819 CC_SHARED_OPTS='-KPIC'
5821 MK_SHARED_LIB='${LD} -assert pure-text -o $@'
5822 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5825 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
5826 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
5827 if test "$DFT_LWR_MODEL" = "shared" ; then
5828 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
5829 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5831 if test "$cf_cv_enable_rpath" = yes ; then
5832 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
5835 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5836 if test "$cf_cv_shlib_version" = rel; then
5837 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5839 cf_cv_shared_soname='`basename $@`'
5842 if test "$GCC" != yes; then
5843 cf_save_CFLAGS="$CFLAGS"
5844 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
5846 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
5847 cat >conftest.$ac_ext <<_ACEOF
5848 #line 5848 "configure"
5849 #include "confdefs.h"
5859 rm -f conftest.$ac_objext
5860 if { (eval echo "$as_me:5860: \"$ac_compile\"") >&5
5861 (eval $ac_compile) 2>&5
5863 echo "$as_me:5863: \$? = $ac_status" >&5
5864 (exit $ac_status); } &&
5865 { ac_try='test -s conftest.$ac_objext'
5866 { (eval echo "$as_me:5866: \"$ac_try\"") >&5
5869 echo "$as_me:5869: \$? = $ac_status" >&5
5870 (exit $ac_status); }; }; then
5873 echo "$as_me: failed program was:" >&5
5874 cat conftest.$ac_ext >&5
5876 rm -f conftest.$ac_objext conftest.$ac_ext
5878 CFLAGS="$cf_save_CFLAGS"
5879 CC_SHARED_OPTS=$cf_shared_opts
5880 MK_SHARED_LIB='${CC} -dy -G -h '$cf_cv_shared_soname' -o $@'
5882 MK_SHARED_LIB='${CC} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
5885 sysv5uw7*|unix_sv*) #(vi
5886 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
5887 if test "$GCC" != yes; then
5888 CC_SHARED_OPTS='-KPIC'
5890 MK_SHARED_LIB='${LD} -d y -G -o $@'
5893 CC_SHARED_OPTS='unknown'
5894 MK_SHARED_LIB='echo unknown'
5898 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
5899 case "$cf_cv_shlib_version" in #(vi
5901 case "$MK_SHARED_LIB" in #(vi
5903 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
5906 { echo "$as_me:5906: WARNING: ignored --with-shlib-version" >&5
5907 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
5913 # RPATH_LIST is a colon-separated list of directories
5914 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
5915 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
5917 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
5919 echo "${as_me:-configure}:5919: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
5921 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
5923 echo "${as_me:-configure}:5923: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
5925 if test "$CC_SHARED_OPTS" = "unknown"; then
5926 for model in $cf_list_models; do
5927 if test "$model" = "shared"; then
5928 { { echo "$as_me:5928: error: Shared libraries are not supported in this version" >&5
5929 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
5930 { (exit 1); exit 1; }; }
5935 ### If we're building with rpath, try to link non-standard libs that way too.
5936 if test "$DFT_LWR_MODEL" = "shared"; then
5938 echo "$as_me:5938: checking if rpath-hack should be disabled" >&5
5939 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
5941 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
5942 if test "${enable_rpath_hack+set}" = set; then
5943 enableval="$enable_rpath_hack"
5944 test "$enableval" != no && enableval=yes
5945 if test "$enableval" != "yes" ; then
5946 cf_disable_rpath_hack=yes
5948 cf_disable_rpath_hack=no
5952 cf_disable_rpath_hack=no
5955 echo "$as_me:5955: result: $cf_disable_rpath_hack" >&5
5956 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
5957 if test "$cf_disable_rpath_hack" = no ; then
5959 echo "$as_me:5959: checking for updated LDFLAGS" >&5
5960 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
5961 if test -n "$LD_RPATH_OPT" ; then
5962 echo "$as_me:5962: result: maybe" >&5
5963 echo "${ECHO_T}maybe" >&6
5967 # Extract the first word of "$ac_prog", so it can be a program name with args.
5968 set dummy $ac_prog; ac_word=$2
5969 echo "$as_me:5969: checking for $ac_word" >&5
5970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5971 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
5972 echo $ECHO_N "(cached) $ECHO_C" >&6
5974 if test -n "$cf_ldd_prog"; then
5975 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
5977 ac_save_IFS=$IFS; IFS=$ac_path_separator
5979 for ac_dir in $ac_dummy; do
5981 test -z "$ac_dir" && ac_dir=.
5982 $as_executable_p "$ac_dir/$ac_word" || continue
5983 ac_cv_prog_cf_ldd_prog="$ac_prog"
5984 echo "$as_me:5984: found $ac_dir/$ac_word" >&5
5990 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
5991 if test -n "$cf_ldd_prog"; then
5992 echo "$as_me:5992: result: $cf_ldd_prog" >&5
5993 echo "${ECHO_T}$cf_ldd_prog" >&6
5995 echo "$as_me:5995: result: no" >&5
5996 echo "${ECHO_T}no" >&6
5999 test -n "$cf_ldd_prog" && break
6001 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
6003 cf_rpath_list="/usr/lib /lib"
6004 if test "$cf_ldd_prog" != no
6008 cat >conftest.$ac_ext <<_ACEOF
6009 #line 6009 "configure"
6010 #include "confdefs.h"
6020 rm -f conftest.$ac_objext conftest$ac_exeext
6021 if { (eval echo "$as_me:6021: \"$ac_link\"") >&5
6022 (eval $ac_link) 2>&5
6024 echo "$as_me:6024: \$? = $ac_status" >&5
6025 (exit $ac_status); } &&
6026 { ac_try='test -s conftest$ac_exeext'
6027 { (eval echo "$as_me:6027: \"$ac_try\"") >&5
6030 echo "$as_me:6030: \$? = $ac_status" >&5
6031 (exit $ac_status); }; }; then
6032 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort -u`
6033 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort -u`
6035 echo "$as_me: failed program was:" >&5
6036 cat conftest.$ac_ext >&5
6038 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6040 # If we passed the link-test, but get a "not found" on a given library,
6041 # this could be due to inept reconfiguration of gcc to make it only
6042 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
6043 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
6044 # /usr/local libraries.
6045 if test -n "$cf_rpath_oops"
6047 for cf_rpath_src in $cf_rpath_oops
6049 for cf_rpath_dir in \
6054 if test -f $cf_rpath_dir/lib/$cf_rpath_src
6056 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
6058 echo "${as_me:-configure}:6058: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
6060 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
6068 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
6070 echo "${as_me:-configure}:6070: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
6072 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
6074 echo "${as_me:-configure}:6074: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
6077 for cf_rpath_src in $LDFLAGS
6079 case $cf_rpath_src in #(vi
6082 # check if this refers to a directory which we will ignore
6084 if test -n "$cf_rpath_list"
6086 for cf_rpath_item in $cf_rpath_list
6088 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
6096 if test "$cf_rpath_skip" = no
6098 # transform the option
6099 if test "$LD_RPATH_OPT" = "-R " ; then
6100 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
6102 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
6105 # if we have not already added this, add it now
6106 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
6107 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
6109 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
6111 echo "${as_me:-configure}:6111: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
6113 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
6118 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
6120 LDFLAGS=$cf_rpath_dst
6122 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
6124 echo "${as_me:-configure}:6124: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
6126 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
6128 echo "${as_me:-configure}:6128: testing ...checking LIBS $LIBS ..." 1>&5
6131 for cf_rpath_src in $LIBS
6133 case $cf_rpath_src in #(vi
6136 # check if this refers to a directory which we will ignore
6138 if test -n "$cf_rpath_list"
6140 for cf_rpath_item in $cf_rpath_list
6142 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
6150 if test "$cf_rpath_skip" = no
6152 # transform the option
6153 if test "$LD_RPATH_OPT" = "-R " ; then
6154 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
6156 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
6159 # if we have not already added this, add it now
6160 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
6161 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
6163 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
6165 echo "${as_me:-configure}:6165: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
6167 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
6172 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
6176 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
6178 echo "${as_me:-configure}:6178: testing ...checked LIBS $LIBS ..." 1>&5
6180 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
6182 echo "${as_me:-configure}:6182: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
6190 ###############################################################################
6192 ### use option --disable-overwrite to leave out the link to -lcurses
6193 echo "$as_me:6193: checking if you wish to install ncurses overwriting curses" >&5
6194 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
6196 # Check whether --enable-overwrite or --disable-overwrite was given.
6197 if test "${enable_overwrite+set}" = set; then
6198 enableval="$enable_overwrite"
6199 with_overwrite=$enableval
6201 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
6203 echo "$as_me:6203: result: $with_overwrite" >&5
6204 echo "${ECHO_T}$with_overwrite" >&6
6206 echo "$as_me:6206: checking if external terminfo-database is used" >&5
6207 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
6209 # Check whether --enable-database or --disable-database was given.
6210 if test "${enable_database+set}" = set; then
6211 enableval="$enable_database"
6212 use_database=$enableval
6216 echo "$as_me:6216: result: $use_database" >&5
6217 echo "${ECHO_T}$use_database" >&6
6219 case $host_os in #(vi
6221 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
6224 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
6228 if test "$use_database" != no ; then
6229 cat >>confdefs.h <<\EOF
6230 #define USE_DATABASE 1
6233 echo "$as_me:6233: checking which terminfo source-file will be installed" >&5
6234 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
6236 # Check whether --with-database or --without-database was given.
6237 if test "${with_database+set}" = set; then
6238 withval="$with_database"
6239 TERMINFO_SRC=$withval
6241 echo "$as_me:6241: result: $TERMINFO_SRC" >&5
6242 echo "${ECHO_T}$TERMINFO_SRC" >&6
6244 echo "$as_me:6244: checking whether to use hashed database instead of directory/tree" >&5
6245 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
6247 # Check whether --with-hashed-db or --without-hashed-db was given.
6248 if test "${with_hashed_db+set}" = set; then
6249 withval="$with_hashed_db"
6254 echo "$as_me:6254: result: $with_hashed_db" >&5
6255 echo "${ECHO_T}$with_hashed_db" >&6
6260 echo "$as_me:6260: checking for list of fallback descriptions" >&5
6261 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
6263 # Check whether --with-fallbacks or --without-fallbacks was given.
6264 if test "${with_fallbacks+set}" = set; then
6265 withval="$with_fallbacks"
6266 with_fallback=$withval
6270 echo "$as_me:6270: result: $with_fallback" >&5
6271 echo "${ECHO_T}$with_fallback" >&6
6272 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
6274 echo "$as_me:6274: checking if you want modern xterm or antique" >&5
6275 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
6277 # Check whether --with-xterm-new or --without-xterm-new was given.
6278 if test "${with_xterm_new+set}" = set; then
6279 withval="$with_xterm_new"
6280 with_xterm_new=$withval
6284 case $with_xterm_new in
6285 no) with_xterm_new=xterm-old;;
6286 *) with_xterm_new=xterm-new;;
6288 echo "$as_me:6288: result: $with_xterm_new" >&5
6289 echo "${ECHO_T}$with_xterm_new" >&6
6290 WHICH_XTERM=$with_xterm_new
6292 echo "$as_me:6292: checking if xterm backspace sends BS or DEL" >&5
6293 echo $ECHO_N "checking if xterm backspace sends BS or DEL... $ECHO_C" >&6
6295 # Check whether --with-xterm-kbs or --without-xterm-kbs was given.
6296 if test "${with_xterm_kbs+set}" = set; then
6297 withval="$with_xterm_kbs"
6298 with_xterm_kbs=$withval
6302 case x$with_xterm_kbs in
6303 xyes|xno|xBS|xbs|x8)
6310 with_xterm_kbs=$withval
6313 echo "$as_me:6313: result: $with_xterm_kbs" >&5
6314 echo "${ECHO_T}$with_xterm_kbs" >&6
6315 XTERM_KBS=$with_xterm_kbs
6318 if test "$use_database" = no ; then
6319 TERMINFO="${datadir}/terminfo"
6323 echo "$as_me:6323: checking for list of terminfo directories" >&5
6324 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
6326 case $cf_cv_system_name in
6327 os2*) PATH_SEPARATOR=';' ;;
6328 *) PATH_SEPARATOR=':' ;;
6331 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
6332 if test "${with_terminfo_dirs+set}" = set; then
6333 withval="$with_terminfo_dirs"
6336 withval=${TERMINFO_DIRS:-${datadir}/terminfo}
6338 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
6340 for cf_src_path in $withval
6343 if test "x$prefix" != xNONE; then
6344 cf_path_syntax="$prefix"
6346 cf_path_syntax="$ac_default_prefix"
6349 case ".$cf_src_path" in #(vi
6350 .\$\(*\)*|.\'*\'*) #(vi
6354 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6356 .\${*prefix}*|.\${*dir}*) #(vi
6357 eval cf_src_path="$cf_src_path"
6358 case ".$cf_src_path" in #(vi
6360 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6365 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6368 { { echo "$as_me:6368: error: expected a pathname, not \"$cf_src_path\"" >&5
6369 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
6370 { (exit 1); exit 1; }; }
6374 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
6375 cf_dst_path="${cf_dst_path}${cf_src_path}"
6379 eval 'TERMINFO_DIRS="$cf_dst_path"'
6381 echo "$as_me:6381: result: $TERMINFO_DIRS" >&5
6382 echo "${ECHO_T}$TERMINFO_DIRS" >&6
6383 test -n "$TERMINFO_DIRS" && cat >>confdefs.h <<EOF
6384 #define TERMINFO_DIRS "$TERMINFO_DIRS"
6387 echo "$as_me:6387: checking for default terminfo directory" >&5
6388 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
6390 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
6391 if test "${with_default_terminfo_dir+set}" = set; then
6392 withval="$with_default_terminfo_dir"
6395 withval="${TERMINFO:-${datadir}/terminfo}"
6396 fi; if test -n "${datadir}/terminfo" ; then
6398 if test "x$prefix" != xNONE; then
6399 cf_path_syntax="$prefix"
6401 cf_path_syntax="$ac_default_prefix"
6404 case ".$withval" in #(vi
6405 .\$\(*\)*|.\'*\'*) #(vi
6409 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6411 .\${*prefix}*|.\${*dir}*) #(vi
6412 eval withval="$withval"
6413 case ".$withval" in #(vi
6415 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
6420 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
6423 { { echo "$as_me:6423: error: expected a pathname, not \"$withval\"" >&5
6424 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
6425 { (exit 1); exit 1; }; }
6432 echo "$as_me:6432: result: $TERMINFO" >&5
6433 echo "${ECHO_T}$TERMINFO" >&6
6434 cat >>confdefs.h <<EOF
6435 #define TERMINFO "$TERMINFO"
6440 ### use option --disable-big-core to make tic run on small machines
6441 ### We need 4Mb, check if we can allocate 50% more than that.
6442 echo "$as_me:6442: checking if big-core option selected" >&5
6443 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
6445 # Check whether --enable-big-core or --disable-big-core was given.
6446 if test "${enable_big_core+set}" = set; then
6447 enableval="$enable_big_core"
6448 with_big_core=$enableval
6450 if test "$cross_compiling" = yes; then
6453 cat >conftest.$ac_ext <<_ACEOF
6454 #line 6454 "configure"
6455 #include "confdefs.h"
6460 unsigned long n = 6000000L;
6461 char *s = malloc(n);
6464 ${cf_cv_main_return:-return}(s == 0);
6467 rm -f conftest$ac_exeext
6468 if { (eval echo "$as_me:6468: \"$ac_link\"") >&5
6469 (eval $ac_link) 2>&5
6471 echo "$as_me:6471: \$? = $ac_status" >&5
6472 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6473 { (eval echo "$as_me:6473: \"$ac_try\"") >&5
6476 echo "$as_me:6476: \$? = $ac_status" >&5
6477 (exit $ac_status); }; }; then
6480 echo "$as_me: program exited with status $ac_status" >&5
6481 echo "$as_me: failed program was:" >&5
6482 cat conftest.$ac_ext >&5
6485 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6488 echo "$as_me:6488: result: $with_big_core" >&5
6489 echo "${ECHO_T}$with_big_core" >&6
6490 test "$with_big_core" = "yes" && cat >>confdefs.h <<\EOF
6491 #define HAVE_BIG_CORE 1
6494 ### ISO C only guarantees 512-char strings, we have tables which load faster
6495 ### when constructed using "big" strings. More than the C compiler, the awk
6496 ### program is a limit on most vendor UNIX systems. Check that we can build.
6497 echo "$as_me:6497: checking if big-strings option selected" >&5
6498 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
6500 # Check whether --enable-big-strings or --disable-big-strings was given.
6501 if test "${enable_big_strings+set}" = set; then
6502 enableval="$enable_big_strings"
6503 with_big_strings=$enableval
6508 eval with_big_strings=no
6511 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' 2>/dev/null \
6512 | $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
6513 eval with_big_strings=yes
6515 eval with_big_strings=no
6521 echo "$as_me:6521: result: $with_big_strings" >&5
6522 echo "${ECHO_T}$with_big_strings" >&6
6525 test "$with_big_strings" = "yes" && USE_BIG_STRINGS=1
6527 ### use option --enable-termcap to compile in the termcap fallback support
6528 echo "$as_me:6528: checking if you want termcap-fallback support" >&5
6529 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
6531 # Check whether --enable-termcap or --disable-termcap was given.
6532 if test "${enable_termcap+set}" = set; then
6533 enableval="$enable_termcap"
6534 with_termcap=$enableval
6538 echo "$as_me:6538: result: $with_termcap" >&5
6539 echo "${ECHO_T}$with_termcap" >&6
6541 if test "$with_termcap" != "yes" ; then
6542 if test "$use_database" = no ; then
6543 if test -z "$with_fallback" ; then
6544 { { echo "$as_me:6544: error: You have disabled the database w/o specifying fallbacks" >&5
6545 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
6546 { (exit 1); exit 1; }; }
6549 cat >>confdefs.h <<\EOF
6550 #define PURE_TERMINFO 1
6555 if test "$with_ticlib" != no ; then
6556 { { echo "$as_me:6556: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
6557 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
6558 { (exit 1); exit 1; }; }
6561 cat >>confdefs.h <<\EOF
6562 #define USE_TERMCAP 1
6565 echo "$as_me:6565: checking for list of termcap files" >&5
6566 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
6568 # Check whether --with-termpath or --without-termpath was given.
6569 if test "${with_termpath+set}" = set; then
6570 withval="$with_termpath"
6573 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap}
6575 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
6577 for cf_src_path in $withval
6580 if test "x$prefix" != xNONE; then
6581 cf_path_syntax="$prefix"
6583 cf_path_syntax="$ac_default_prefix"
6586 case ".$cf_src_path" in #(vi
6587 .\$\(*\)*|.\'*\'*) #(vi
6591 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6593 .\${*prefix}*|.\${*dir}*) #(vi
6594 eval cf_src_path="$cf_src_path"
6595 case ".$cf_src_path" in #(vi
6597 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6602 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6605 { { echo "$as_me:6605: error: expected a pathname, not \"$cf_src_path\"" >&5
6606 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
6607 { (exit 1); exit 1; }; }
6611 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
6612 cf_dst_path="${cf_dst_path}${cf_src_path}"
6616 eval 'TERMPATH="$cf_dst_path"'
6618 echo "$as_me:6618: result: $TERMPATH" >&5
6619 echo "${ECHO_T}$TERMPATH" >&6
6620 test -n "$TERMPATH" && cat >>confdefs.h <<EOF
6621 #define TERMPATH "$TERMPATH"
6624 ### use option --enable-getcap to use a hacked getcap for reading termcaps
6625 echo "$as_me:6625: checking if fast termcap-loader is needed" >&5
6626 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
6628 # Check whether --enable-getcap or --disable-getcap was given.
6629 if test "${enable_getcap+set}" = set; then
6630 enableval="$enable_getcap"
6631 with_getcap=$enableval
6635 echo "$as_me:6635: result: $with_getcap" >&5
6636 echo "${ECHO_T}$with_getcap" >&6
6637 test "$with_getcap" = "yes" && cat >>confdefs.h <<\EOF
6638 #define USE_GETCAP 1
6641 echo "$as_me:6641: checking if translated termcaps will be cached in ~/.terminfo" >&5
6642 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
6644 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
6645 if test "${enable_getcap_cache+set}" = set; then
6646 enableval="$enable_getcap_cache"
6647 with_getcap_cache=$enableval
6649 with_getcap_cache=no
6651 echo "$as_me:6651: result: $with_getcap_cache" >&5
6652 echo "${ECHO_T}$with_getcap_cache" >&6
6653 test "$with_getcap_cache" = "yes" && cat >>confdefs.h <<\EOF
6654 #define USE_GETCAP_CACHE 1
6659 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
6660 echo "$as_me:6660: checking if ~/.terminfo is wanted" >&5
6661 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
6663 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
6664 if test "${enable_home_terminfo+set}" = set; then
6665 enableval="$enable_home_terminfo"
6666 with_home_terminfo=$enableval
6668 with_home_terminfo=yes
6670 echo "$as_me:6670: result: $with_home_terminfo" >&5
6671 echo "${ECHO_T}$with_home_terminfo" >&6
6672 test "$with_home_terminfo" = "yes" && cat >>confdefs.h <<\EOF
6673 #define USE_HOME_TERMINFO 1
6676 echo "$as_me:6676: checking if you want to use restricted environment when running as root" >&5
6677 echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6
6679 # Check whether --enable-root-environ or --disable-root-environ was given.
6680 if test "${enable_root_environ+set}" = set; then
6681 enableval="$enable_root_environ"
6682 with_root_environ=$enableval
6684 with_root_environ=yes
6686 echo "$as_me:6686: result: $with_root_environ" >&5
6687 echo "${ECHO_T}$with_root_environ" >&6
6688 test "$with_root_environ" = yes && cat >>confdefs.h <<\EOF
6689 #define USE_ROOT_ENVIRON 1
6692 ### Use option --enable-symlinks to make tic use symlinks, not hard links
6693 ### to reduce storage requirements for the terminfo database.
6699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6700 echo "$as_me:6700: checking for $ac_func" >&5
6701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6702 if eval "test \"\${$as_ac_var+set}\" = set"; then
6703 echo $ECHO_N "(cached) $ECHO_C" >&6
6705 cat >conftest.$ac_ext <<_ACEOF
6706 #line 6706 "configure"
6707 #include "confdefs.h"
6708 /* System header to define __stub macros and hopefully few prototypes,
6709 which can conflict with char $ac_func (); below. */
6711 /* Override any gcc2 internal prototype to avoid an error. */
6715 /* We use char because int might match the return type of a gcc2
6716 builtin and then its argument prototype would still apply. */
6723 /* The GNU C library defines this for functions which it implements
6724 to always fail with ENOSYS. Some functions are actually named
6725 something starting with __ and the normal name is an alias. */
6726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6729 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
6736 rm -f conftest.$ac_objext conftest$ac_exeext
6737 if { (eval echo "$as_me:6737: \"$ac_link\"") >&5
6738 (eval $ac_link) 2>&5
6740 echo "$as_me:6740: \$? = $ac_status" >&5
6741 (exit $ac_status); } &&
6742 { ac_try='test -s conftest$ac_exeext'
6743 { (eval echo "$as_me:6743: \"$ac_try\"") >&5
6746 echo "$as_me:6746: \$? = $ac_status" >&5
6747 (exit $ac_status); }; }; then
6748 eval "$as_ac_var=yes"
6750 echo "$as_me: failed program was:" >&5
6751 cat conftest.$ac_ext >&5
6752 eval "$as_ac_var=no"
6754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6756 echo "$as_me:6756: result: `eval echo '${'$as_ac_var'}'`" >&5
6757 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6758 if test `eval echo '${'$as_ac_var'}'` = yes; then
6759 cat >>confdefs.h <<EOF
6760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6766 if test "$cross_compiling" = yes ; then
6772 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6773 echo "$as_me:6773: checking for $ac_func" >&5
6774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6775 if eval "test \"\${$as_ac_var+set}\" = set"; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
6778 cat >conftest.$ac_ext <<_ACEOF
6779 #line 6779 "configure"
6780 #include "confdefs.h"
6781 /* System header to define __stub macros and hopefully few prototypes,
6782 which can conflict with char $ac_func (); below. */
6784 /* Override any gcc2 internal prototype to avoid an error. */
6788 /* We use char because int might match the return type of a gcc2
6789 builtin and then its argument prototype would still apply. */
6796 /* The GNU C library defines this for functions which it implements
6797 to always fail with ENOSYS. Some functions are actually named
6798 something starting with __ and the normal name is an alias. */
6799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6802 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
6809 rm -f conftest.$ac_objext conftest$ac_exeext
6810 if { (eval echo "$as_me:6810: \"$ac_link\"") >&5
6811 (eval $ac_link) 2>&5
6813 echo "$as_me:6813: \$? = $ac_status" >&5
6814 (exit $ac_status); } &&
6815 { ac_try='test -s conftest$ac_exeext'
6816 { (eval echo "$as_me:6816: \"$ac_try\"") >&5
6819 echo "$as_me:6819: \$? = $ac_status" >&5
6820 (exit $ac_status); }; }; then
6821 eval "$as_ac_var=yes"
6823 echo "$as_me: failed program was:" >&5
6824 cat conftest.$ac_ext >&5
6825 eval "$as_ac_var=no"
6827 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6829 echo "$as_me:6829: result: `eval echo '${'$as_ac_var'}'`" >&5
6830 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6831 if test `eval echo '${'$as_ac_var'}'` = yes; then
6832 cat >>confdefs.h <<EOF
6833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6840 echo "$as_me:6840: checking if link/symlink functions work" >&5
6841 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
6842 if test "${cf_cv_link_funcs+set}" = set; then
6843 echo $ECHO_N "(cached) $ECHO_C" >&6
6847 for cf_func in link symlink ; do
6848 if test "$cross_compiling" = yes; then
6850 eval 'ac_cv_func_'$cf_func'=error'
6852 cat >conftest.$ac_ext <<_ACEOF
6853 #line 6853 "configure"
6854 #include "confdefs.h"
6856 #include <sys/types.h>
6857 #include <sys/stat.h>
6858 #ifdef HAVE_UNISTD_H
6864 char *src = "config.log";
6865 char *dst = "conftest.chk";
6870 fail = ($cf_func("config.log", "conftest.chk") < 0)
6871 || (stat(dst, &dst_sb) < 0)
6872 || (dst_sb.st_mtime != src_sb.st_mtime);
6878 ${cf_cv_main_return:-return} (fail);
6882 rm -f conftest$ac_exeext
6883 if { (eval echo "$as_me:6883: \"$ac_link\"") >&5
6884 (eval $ac_link) 2>&5
6886 echo "$as_me:6886: \$? = $ac_status" >&5
6887 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6888 { (eval echo "$as_me:6888: \"$ac_try\"") >&5
6891 echo "$as_me:6891: \$? = $ac_status" >&5
6892 (exit $ac_status); }; }; then
6894 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
6895 eval 'ac_cv_func_'$cf_func'=yes'
6897 echo "$as_me: program exited with status $ac_status" >&5
6898 echo "$as_me: failed program was:" >&5
6899 cat conftest.$ac_ext >&5
6901 eval 'ac_cv_func_'$cf_func'=no'
6903 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6906 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
6909 echo "$as_me:6909: result: $cf_cv_link_funcs" >&5
6910 echo "${ECHO_T}$cf_cv_link_funcs" >&6
6911 test "$ac_cv_func_link" = yes && cat >>confdefs.h <<\EOF
6915 test "$ac_cv_func_symlink" = yes && cat >>confdefs.h <<\EOF
6916 #define HAVE_SYMLINK 1
6924 # soft links (symbolic links) are useful for some systems where hard links do
6925 # not work, or to make it simpler to copy terminfo trees around.
6926 if test "$ac_cv_func_symlink" = yes ; then
6927 echo "$as_me:6927: checking if tic should use symbolic links" >&5
6928 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
6930 # Check whether --enable-symlinks or --disable-symlinks was given.
6931 if test "${enable_symlinks+set}" = set; then
6932 enableval="$enable_symlinks"
6933 with_symlinks=$enableval
6937 echo "$as_me:6937: result: $with_symlinks" >&5
6938 echo "${ECHO_T}$with_symlinks" >&6
6941 # If we have hard links and did not choose to use soft links instead, there is
6942 # no reason to make this choice optional - use the hard links.
6943 if test "$with_symlinks" = no ; then
6944 echo "$as_me:6944: checking if tic should use hard links" >&5
6945 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
6946 if test "$ac_cv_func_link" = yes ; then
6951 echo "$as_me:6951: result: $with_links" >&5
6952 echo "${ECHO_T}$with_links" >&6
6955 test "$with_links" = yes && cat >>confdefs.h <<\EOF
6959 test "$with_symlinks" = yes && cat >>confdefs.h <<\EOF
6960 #define USE_SYMLINKS 1
6963 ### use option --enable-broken-linker to force on use of broken-linker support
6964 echo "$as_me:6964: checking if you want broken-linker support code" >&5
6965 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
6967 # Check whether --enable-broken_linker or --disable-broken_linker was given.
6968 if test "${enable_broken_linker+set}" = set; then
6969 enableval="$enable_broken_linker"
6970 with_broken_linker=$enableval
6972 with_broken_linker=${BROKEN_LINKER:-no}
6974 echo "$as_me:6974: result: $with_broken_linker" >&5
6975 echo "${ECHO_T}$with_broken_linker" >&6
6978 if test "$with_broken_linker" = yes ; then
6979 cat >>confdefs.h <<\EOF
6980 #define BROKEN_LINKER 1
6984 elif test "$DFT_LWR_MODEL" = shared ; then
6985 case $cf_cv_system_name in #(vi
6987 cat >>confdefs.h <<\EOF
6988 #define BROKEN_LINKER 1
6992 test -n "$verbose" && echo " cygwin linker is broken anyway" 1>&6
6994 echo "${as_me:-configure}:6994: testing cygwin linker is broken anyway ..." 1>&5
7000 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
7001 echo "$as_me:7001: checking if tputs should process BSD-style prefix padding" >&5
7002 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
7004 # Check whether --enable-bsdpad or --disable-bsdpad was given.
7005 if test "${enable_bsdpad+set}" = set; then
7006 enableval="$enable_bsdpad"
7007 with_bsdpad=$enableval
7011 echo "$as_me:7011: result: $with_bsdpad" >&5
7012 echo "${ECHO_T}$with_bsdpad" >&6
7013 test "$with_bsdpad" = yes && cat >>confdefs.h <<\EOF
7017 ### use option --enable-widec to turn on use of wide-character support
7026 # Check to define _XOPEN_SOURCE "automatically"
7029 cf_POSIX_C_SOURCE=199506L
7032 case $host_os in #(vi
7034 cf_xopen_source="-D_ALL_SOURCE"
7040 cf_xopen_source="-D_APPLE_C_SOURCE"
7043 cf_xopen_source="-D_DARWIN_C_SOURCE"
7046 freebsd*|dragonfly*) #(vi
7047 # 5.x headers associate
7048 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
7049 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
7050 cf_POSIX_C_SOURCE=200112L
7052 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
7055 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
7058 cf_xopen_source="-D_HPUX_SOURCE"
7061 cf_xopen_source="-D_SGI_SOURCE"
7064 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
7066 echo "$as_me:7066: checking if we must define _GNU_SOURCE" >&5
7067 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
7068 if test "${cf_cv_gnu_source+set}" = set; then
7069 echo $ECHO_N "(cached) $ECHO_C" >&6
7072 cat >conftest.$ac_ext <<_ACEOF
7073 #line 7073 "configure"
7074 #include "confdefs.h"
7075 #include <sys/types.h>
7080 #ifndef _XOPEN_SOURCE
7087 rm -f conftest.$ac_objext
7088 if { (eval echo "$as_me:7088: \"$ac_compile\"") >&5
7089 (eval $ac_compile) 2>&5
7091 echo "$as_me:7091: \$? = $ac_status" >&5
7092 (exit $ac_status); } &&
7093 { ac_try='test -s conftest.$ac_objext'
7094 { (eval echo "$as_me:7094: \"$ac_try\"") >&5
7097 echo "$as_me:7097: \$? = $ac_status" >&5
7098 (exit $ac_status); }; }; then
7101 echo "$as_me: failed program was:" >&5
7102 cat conftest.$ac_ext >&5
7104 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7105 cat >conftest.$ac_ext <<_ACEOF
7106 #line 7106 "configure"
7107 #include "confdefs.h"
7108 #include <sys/types.h>
7113 #ifdef _XOPEN_SOURCE
7120 rm -f conftest.$ac_objext
7121 if { (eval echo "$as_me:7121: \"$ac_compile\"") >&5
7122 (eval $ac_compile) 2>&5
7124 echo "$as_me:7124: \$? = $ac_status" >&5
7125 (exit $ac_status); } &&
7126 { ac_try='test -s conftest.$ac_objext'
7127 { (eval echo "$as_me:7127: \"$ac_try\"") >&5
7130 echo "$as_me:7130: \$? = $ac_status" >&5
7131 (exit $ac_status); }; }; then
7134 echo "$as_me: failed program was:" >&5
7135 cat conftest.$ac_ext >&5
7136 cf_cv_gnu_source=yes
7138 rm -f conftest.$ac_objext conftest.$ac_ext
7142 rm -f conftest.$ac_objext conftest.$ac_ext
7145 echo "$as_me:7145: result: $cf_cv_gnu_source" >&5
7146 echo "${ECHO_T}$cf_cv_gnu_source" >&6
7147 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7151 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
7154 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
7156 cf_save_CFLAGS="$CFLAGS"
7157 cf_save_CPPFLAGS="$CPPFLAGS"
7159 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
7160 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7161 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7163 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
7164 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7165 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7167 echo "$as_me:7167: checking if we should define _POSIX_C_SOURCE" >&5
7168 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
7169 if test "${cf_cv_posix_c_source+set}" = set; then
7170 echo $ECHO_N "(cached) $ECHO_C" >&6
7173 echo "${as_me:-configure}:7173: testing if the symbol is already defined go no further ..." 1>&5
7175 cat >conftest.$ac_ext <<_ACEOF
7176 #line 7176 "configure"
7177 #include "confdefs.h"
7178 #include <sys/types.h>
7183 #ifndef _POSIX_C_SOURCE
7190 rm -f conftest.$ac_objext
7191 if { (eval echo "$as_me:7191: \"$ac_compile\"") >&5
7192 (eval $ac_compile) 2>&5
7194 echo "$as_me:7194: \$? = $ac_status" >&5
7195 (exit $ac_status); } &&
7196 { ac_try='test -s conftest.$ac_objext'
7197 { (eval echo "$as_me:7197: \"$ac_try\"") >&5
7200 echo "$as_me:7200: \$? = $ac_status" >&5
7201 (exit $ac_status); }; }; then
7202 cf_cv_posix_c_source=no
7204 echo "$as_me: failed program was:" >&5
7205 cat conftest.$ac_ext >&5
7206 cf_want_posix_source=no
7207 case .$cf_POSIX_C_SOURCE in #(vi
7209 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7212 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7213 cf_want_posix_source=yes
7216 cf_want_posix_source=yes
7219 if test "$cf_want_posix_source" = yes ; then
7220 cat >conftest.$ac_ext <<_ACEOF
7221 #line 7221 "configure"
7222 #include "confdefs.h"
7223 #include <sys/types.h>
7228 #ifdef _POSIX_SOURCE
7235 rm -f conftest.$ac_objext
7236 if { (eval echo "$as_me:7236: \"$ac_compile\"") >&5
7237 (eval $ac_compile) 2>&5
7239 echo "$as_me:7239: \$? = $ac_status" >&5
7240 (exit $ac_status); } &&
7241 { ac_try='test -s conftest.$ac_objext'
7242 { (eval echo "$as_me:7242: \"$ac_try\"") >&5
7245 echo "$as_me:7245: \$? = $ac_status" >&5
7246 (exit $ac_status); }; }; then
7249 echo "$as_me: failed program was:" >&5
7250 cat conftest.$ac_ext >&5
7251 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
7253 rm -f conftest.$ac_objext conftest.$ac_ext
7256 echo "${as_me:-configure}:7256: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
7258 CFLAGS="$cf_trim_CFLAGS"
7259 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
7261 echo "${as_me:-configure}:7261: testing if the second compile does not leave our definition intact error ..." 1>&5
7263 cat >conftest.$ac_ext <<_ACEOF
7264 #line 7264 "configure"
7265 #include "confdefs.h"
7266 #include <sys/types.h>
7271 #ifndef _POSIX_C_SOURCE
7278 rm -f conftest.$ac_objext
7279 if { (eval echo "$as_me:7279: \"$ac_compile\"") >&5
7280 (eval $ac_compile) 2>&5
7282 echo "$as_me:7282: \$? = $ac_status" >&5
7283 (exit $ac_status); } &&
7284 { ac_try='test -s conftest.$ac_objext'
7285 { (eval echo "$as_me:7285: \"$ac_try\"") >&5
7288 echo "$as_me:7288: \$? = $ac_status" >&5
7289 (exit $ac_status); }; }; then
7292 echo "$as_me: failed program was:" >&5
7293 cat conftest.$ac_ext >&5
7294 cf_cv_posix_c_source=no
7296 rm -f conftest.$ac_objext conftest.$ac_ext
7297 CFLAGS="$cf_save_CFLAGS"
7298 CPPFLAGS="$cf_save_CPPFLAGS"
7301 rm -f conftest.$ac_objext conftest.$ac_ext
7304 echo "$as_me:7304: result: $cf_cv_posix_c_source" >&5
7305 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
7307 if test "$cf_cv_posix_c_source" != no ; then
7308 CFLAGS="$cf_trim_CFLAGS"
7309 CPPFLAGS="$cf_trim_CPPFLAGS"
7314 cf_new_extra_cppflags=
7316 for cf_add_cflags in $cf_cv_posix_c_source
7318 case $cf_fix_cppflags in
7320 case $cf_add_cflags in #(vi
7321 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7322 case $cf_add_cflags in
7324 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7326 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7327 && test -z "${cf_tst_cflags}" \
7328 && cf_fix_cppflags=yes
7330 if test $cf_fix_cppflags = yes ; then
7331 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7333 elif test "${cf_tst_cflags}" = "\"'" ; then
7334 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7340 *$cf_add_cflags) #(vi
7343 case $cf_add_cflags in #(vi
7345 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7347 CPPFLAGS=`echo "$CPPFLAGS" | \
7348 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7349 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7353 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7358 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7363 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7365 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7367 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7368 && test -z "${cf_tst_cflags}" \
7369 && cf_fix_cppflags=no
7374 if test -n "$cf_new_cflags" ; then
7376 CFLAGS="$CFLAGS $cf_new_cflags"
7379 if test -n "$cf_new_cppflags" ; then
7381 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7384 if test -n "$cf_new_extra_cppflags" ; then
7386 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7393 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
7396 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
7397 cf_xopen_source="-D_BSD_SOURCE"
7401 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
7404 cf_xopen_source="-D_OSF_SOURCE"
7407 cf_xopen_source="-D_QNX_SOURCE"
7410 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
7413 cf_xopen_source="-D__EXTENSIONS__"
7417 echo "$as_me:7417: checking if we should define _XOPEN_SOURCE" >&5
7418 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
7419 if test "${cf_cv_xopen_source+set}" = set; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
7423 cat >conftest.$ac_ext <<_ACEOF
7424 #line 7424 "configure"
7425 #include "confdefs.h"
7429 #include <sys/types.h>
7435 #ifndef _XOPEN_SOURCE
7442 rm -f conftest.$ac_objext
7443 if { (eval echo "$as_me:7443: \"$ac_compile\"") >&5
7444 (eval $ac_compile) 2>&5
7446 echo "$as_me:7446: \$? = $ac_status" >&5
7447 (exit $ac_status); } &&
7448 { ac_try='test -s conftest.$ac_objext'
7449 { (eval echo "$as_me:7449: \"$ac_try\"") >&5
7452 echo "$as_me:7452: \$? = $ac_status" >&5
7453 (exit $ac_status); }; }; then
7454 cf_cv_xopen_source=no
7456 echo "$as_me: failed program was:" >&5
7457 cat conftest.$ac_ext >&5
7459 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
7460 cat >conftest.$ac_ext <<_ACEOF
7461 #line 7461 "configure"
7462 #include "confdefs.h"
7466 #include <sys/types.h>
7472 #ifdef _XOPEN_SOURCE
7479 rm -f conftest.$ac_objext
7480 if { (eval echo "$as_me:7480: \"$ac_compile\"") >&5
7481 (eval $ac_compile) 2>&5
7483 echo "$as_me:7483: \$? = $ac_status" >&5
7484 (exit $ac_status); } &&
7485 { ac_try='test -s conftest.$ac_objext'
7486 { (eval echo "$as_me:7486: \"$ac_try\"") >&5
7489 echo "$as_me:7489: \$? = $ac_status" >&5
7490 (exit $ac_status); }; }; then
7491 cf_cv_xopen_source=no
7493 echo "$as_me: failed program was:" >&5
7494 cat conftest.$ac_ext >&5
7495 cf_cv_xopen_source=$cf_XOPEN_SOURCE
7497 rm -f conftest.$ac_objext conftest.$ac_ext
7501 rm -f conftest.$ac_objext conftest.$ac_ext
7504 echo "$as_me:7504: result: $cf_cv_xopen_source" >&5
7505 echo "${ECHO_T}$cf_cv_xopen_source" >&6
7507 if test "$cf_cv_xopen_source" != no ; then
7509 CFLAGS=`echo "$CFLAGS" | \
7510 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7511 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
7513 CPPFLAGS=`echo "$CPPFLAGS" | \
7514 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7515 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
7517 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
7522 cf_new_extra_cppflags=
7524 for cf_add_cflags in $cf_temp_xopen_source
7526 case $cf_fix_cppflags in
7528 case $cf_add_cflags in #(vi
7529 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7530 case $cf_add_cflags in
7532 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7534 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7535 && test -z "${cf_tst_cflags}" \
7536 && cf_fix_cppflags=yes
7538 if test $cf_fix_cppflags = yes ; then
7539 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7541 elif test "${cf_tst_cflags}" = "\"'" ; then
7542 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7548 *$cf_add_cflags) #(vi
7551 case $cf_add_cflags in #(vi
7553 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7555 CPPFLAGS=`echo "$CPPFLAGS" | \
7556 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7557 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7561 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7566 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7571 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7573 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7575 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7576 && test -z "${cf_tst_cflags}" \
7577 && cf_fix_cppflags=no
7582 if test -n "$cf_new_cflags" ; then
7584 CFLAGS="$CFLAGS $cf_new_cflags"
7587 if test -n "$cf_new_cppflags" ; then
7589 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7592 if test -n "$cf_new_extra_cppflags" ; then
7594 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7599 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
7601 cf_save_CFLAGS="$CFLAGS"
7602 cf_save_CPPFLAGS="$CPPFLAGS"
7604 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
7605 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7606 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7608 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
7609 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7610 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7612 echo "$as_me:7612: checking if we should define _POSIX_C_SOURCE" >&5
7613 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
7614 if test "${cf_cv_posix_c_source+set}" = set; then
7615 echo $ECHO_N "(cached) $ECHO_C" >&6
7618 echo "${as_me:-configure}:7618: testing if the symbol is already defined go no further ..." 1>&5
7620 cat >conftest.$ac_ext <<_ACEOF
7621 #line 7621 "configure"
7622 #include "confdefs.h"
7623 #include <sys/types.h>
7628 #ifndef _POSIX_C_SOURCE
7635 rm -f conftest.$ac_objext
7636 if { (eval echo "$as_me:7636: \"$ac_compile\"") >&5
7637 (eval $ac_compile) 2>&5
7639 echo "$as_me:7639: \$? = $ac_status" >&5
7640 (exit $ac_status); } &&
7641 { ac_try='test -s conftest.$ac_objext'
7642 { (eval echo "$as_me:7642: \"$ac_try\"") >&5
7645 echo "$as_me:7645: \$? = $ac_status" >&5
7646 (exit $ac_status); }; }; then
7647 cf_cv_posix_c_source=no
7649 echo "$as_me: failed program was:" >&5
7650 cat conftest.$ac_ext >&5
7651 cf_want_posix_source=no
7652 case .$cf_POSIX_C_SOURCE in #(vi
7654 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7657 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7658 cf_want_posix_source=yes
7661 cf_want_posix_source=yes
7664 if test "$cf_want_posix_source" = yes ; then
7665 cat >conftest.$ac_ext <<_ACEOF
7666 #line 7666 "configure"
7667 #include "confdefs.h"
7668 #include <sys/types.h>
7673 #ifdef _POSIX_SOURCE
7680 rm -f conftest.$ac_objext
7681 if { (eval echo "$as_me:7681: \"$ac_compile\"") >&5
7682 (eval $ac_compile) 2>&5
7684 echo "$as_me:7684: \$? = $ac_status" >&5
7685 (exit $ac_status); } &&
7686 { ac_try='test -s conftest.$ac_objext'
7687 { (eval echo "$as_me:7687: \"$ac_try\"") >&5
7690 echo "$as_me:7690: \$? = $ac_status" >&5
7691 (exit $ac_status); }; }; then
7694 echo "$as_me: failed program was:" >&5
7695 cat conftest.$ac_ext >&5
7696 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
7698 rm -f conftest.$ac_objext conftest.$ac_ext
7701 echo "${as_me:-configure}:7701: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
7703 CFLAGS="$cf_trim_CFLAGS"
7704 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
7706 echo "${as_me:-configure}:7706: testing if the second compile does not leave our definition intact error ..." 1>&5
7708 cat >conftest.$ac_ext <<_ACEOF
7709 #line 7709 "configure"
7710 #include "confdefs.h"
7711 #include <sys/types.h>
7716 #ifndef _POSIX_C_SOURCE
7723 rm -f conftest.$ac_objext
7724 if { (eval echo "$as_me:7724: \"$ac_compile\"") >&5
7725 (eval $ac_compile) 2>&5
7727 echo "$as_me:7727: \$? = $ac_status" >&5
7728 (exit $ac_status); } &&
7729 { ac_try='test -s conftest.$ac_objext'
7730 { (eval echo "$as_me:7730: \"$ac_try\"") >&5
7733 echo "$as_me:7733: \$? = $ac_status" >&5
7734 (exit $ac_status); }; }; then
7737 echo "$as_me: failed program was:" >&5
7738 cat conftest.$ac_ext >&5
7739 cf_cv_posix_c_source=no
7741 rm -f conftest.$ac_objext conftest.$ac_ext
7742 CFLAGS="$cf_save_CFLAGS"
7743 CPPFLAGS="$cf_save_CPPFLAGS"
7746 rm -f conftest.$ac_objext conftest.$ac_ext
7749 echo "$as_me:7749: result: $cf_cv_posix_c_source" >&5
7750 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
7752 if test "$cf_cv_posix_c_source" != no ; then
7753 CFLAGS="$cf_trim_CFLAGS"
7754 CPPFLAGS="$cf_trim_CPPFLAGS"
7759 cf_new_extra_cppflags=
7761 for cf_add_cflags in $cf_cv_posix_c_source
7763 case $cf_fix_cppflags in
7765 case $cf_add_cflags in #(vi
7766 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7767 case $cf_add_cflags in
7769 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7771 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7772 && test -z "${cf_tst_cflags}" \
7773 && cf_fix_cppflags=yes
7775 if test $cf_fix_cppflags = yes ; then
7776 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7778 elif test "${cf_tst_cflags}" = "\"'" ; then
7779 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7785 *$cf_add_cflags) #(vi
7788 case $cf_add_cflags in #(vi
7790 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7792 CPPFLAGS=`echo "$CPPFLAGS" | \
7793 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7794 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7798 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7803 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7808 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7810 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7812 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7813 && test -z "${cf_tst_cflags}" \
7814 && cf_fix_cppflags=no
7819 if test -n "$cf_new_cflags" ; then
7821 CFLAGS="$CFLAGS $cf_new_cflags"
7824 if test -n "$cf_new_cppflags" ; then
7826 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7829 if test -n "$cf_new_extra_cppflags" ; then
7831 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7839 if test -n "$cf_xopen_source" ; then
7844 cf_new_extra_cppflags=
7846 for cf_add_cflags in $cf_xopen_source
7848 case $cf_fix_cppflags in
7850 case $cf_add_cflags in #(vi
7851 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7852 case $cf_add_cflags in
7854 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7856 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7857 && test -z "${cf_tst_cflags}" \
7858 && cf_fix_cppflags=yes
7860 if test $cf_fix_cppflags = yes ; then
7861 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7863 elif test "${cf_tst_cflags}" = "\"'" ; then
7864 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7870 *$cf_add_cflags) #(vi
7873 case $cf_add_cflags in #(vi
7875 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7877 CPPFLAGS=`echo "$CPPFLAGS" | \
7878 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7879 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7883 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7888 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7893 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7895 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7897 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7898 && test -z "${cf_tst_cflags}" \
7899 && cf_fix_cppflags=no
7904 if test -n "$cf_new_cflags" ; then
7906 CFLAGS="$CFLAGS $cf_new_cflags"
7909 if test -n "$cf_new_cppflags" ; then
7911 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7914 if test -n "$cf_new_extra_cppflags" ; then
7916 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7921 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
7922 echo "$as_me:7922: checking if _XOPEN_SOURCE really is set" >&5
7923 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
7924 cat >conftest.$ac_ext <<_ACEOF
7925 #line 7925 "configure"
7926 #include "confdefs.h"
7932 #ifndef _XOPEN_SOURCE
7939 rm -f conftest.$ac_objext
7940 if { (eval echo "$as_me:7940: \"$ac_compile\"") >&5
7941 (eval $ac_compile) 2>&5
7943 echo "$as_me:7943: \$? = $ac_status" >&5
7944 (exit $ac_status); } &&
7945 { ac_try='test -s conftest.$ac_objext'
7946 { (eval echo "$as_me:7946: \"$ac_try\"") >&5
7949 echo "$as_me:7949: \$? = $ac_status" >&5
7950 (exit $ac_status); }; }; then
7951 cf_XOPEN_SOURCE_set=yes
7953 echo "$as_me: failed program was:" >&5
7954 cat conftest.$ac_ext >&5
7955 cf_XOPEN_SOURCE_set=no
7957 rm -f conftest.$ac_objext conftest.$ac_ext
7958 echo "$as_me:7958: result: $cf_XOPEN_SOURCE_set" >&5
7959 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
7960 if test $cf_XOPEN_SOURCE_set = yes
7962 cat >conftest.$ac_ext <<_ACEOF
7963 #line 7963 "configure"
7964 #include "confdefs.h"
7970 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
7977 rm -f conftest.$ac_objext
7978 if { (eval echo "$as_me:7978: \"$ac_compile\"") >&5
7979 (eval $ac_compile) 2>&5
7981 echo "$as_me:7981: \$? = $ac_status" >&5
7982 (exit $ac_status); } &&
7983 { ac_try='test -s conftest.$ac_objext'
7984 { (eval echo "$as_me:7984: \"$ac_try\"") >&5
7987 echo "$as_me:7987: \$? = $ac_status" >&5
7988 (exit $ac_status); }; }; then
7989 cf_XOPEN_SOURCE_set_ok=yes
7991 echo "$as_me: failed program was:" >&5
7992 cat conftest.$ac_ext >&5
7993 cf_XOPEN_SOURCE_set_ok=no
7995 rm -f conftest.$ac_objext conftest.$ac_ext
7996 if test $cf_XOPEN_SOURCE_set_ok = no
7998 { echo "$as_me:7998: WARNING: _XOPEN_SOURCE is lower than requested" >&5
7999 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
8003 echo "$as_me:8003: checking if we should define _XOPEN_SOURCE" >&5
8004 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
8005 if test "${cf_cv_xopen_source+set}" = set; then
8006 echo $ECHO_N "(cached) $ECHO_C" >&6
8009 cat >conftest.$ac_ext <<_ACEOF
8010 #line 8010 "configure"
8011 #include "confdefs.h"
8015 #include <sys/types.h>
8021 #ifndef _XOPEN_SOURCE
8028 rm -f conftest.$ac_objext
8029 if { (eval echo "$as_me:8029: \"$ac_compile\"") >&5
8030 (eval $ac_compile) 2>&5
8032 echo "$as_me:8032: \$? = $ac_status" >&5
8033 (exit $ac_status); } &&
8034 { ac_try='test -s conftest.$ac_objext'
8035 { (eval echo "$as_me:8035: \"$ac_try\"") >&5
8038 echo "$as_me:8038: \$? = $ac_status" >&5
8039 (exit $ac_status); }; }; then
8040 cf_cv_xopen_source=no
8042 echo "$as_me: failed program was:" >&5
8043 cat conftest.$ac_ext >&5
8045 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
8046 cat >conftest.$ac_ext <<_ACEOF
8047 #line 8047 "configure"
8048 #include "confdefs.h"
8052 #include <sys/types.h>
8058 #ifdef _XOPEN_SOURCE
8065 rm -f conftest.$ac_objext
8066 if { (eval echo "$as_me:8066: \"$ac_compile\"") >&5
8067 (eval $ac_compile) 2>&5
8069 echo "$as_me:8069: \$? = $ac_status" >&5
8070 (exit $ac_status); } &&
8071 { ac_try='test -s conftest.$ac_objext'
8072 { (eval echo "$as_me:8072: \"$ac_try\"") >&5
8075 echo "$as_me:8075: \$? = $ac_status" >&5
8076 (exit $ac_status); }; }; then
8077 cf_cv_xopen_source=no
8079 echo "$as_me: failed program was:" >&5
8080 cat conftest.$ac_ext >&5
8081 cf_cv_xopen_source=$cf_XOPEN_SOURCE
8083 rm -f conftest.$ac_objext conftest.$ac_ext
8087 rm -f conftest.$ac_objext conftest.$ac_ext
8090 echo "$as_me:8090: result: $cf_cv_xopen_source" >&5
8091 echo "${ECHO_T}$cf_cv_xopen_source" >&6
8093 if test "$cf_cv_xopen_source" != no ; then
8095 CFLAGS=`echo "$CFLAGS" | \
8096 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8097 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8099 CPPFLAGS=`echo "$CPPFLAGS" | \
8100 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8101 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8103 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
8108 cf_new_extra_cppflags=
8110 for cf_add_cflags in $cf_temp_xopen_source
8112 case $cf_fix_cppflags in
8114 case $cf_add_cflags in #(vi
8115 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
8116 case $cf_add_cflags in
8118 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8120 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8121 && test -z "${cf_tst_cflags}" \
8122 && cf_fix_cppflags=yes
8124 if test $cf_fix_cppflags = yes ; then
8125 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8127 elif test "${cf_tst_cflags}" = "\"'" ; then
8128 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8134 *$cf_add_cflags) #(vi
8137 case $cf_add_cflags in #(vi
8139 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8141 CPPFLAGS=`echo "$CPPFLAGS" | \
8142 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8143 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8147 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8152 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8157 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8159 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8161 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8162 && test -z "${cf_tst_cflags}" \
8163 && cf_fix_cppflags=no
8168 if test -n "$cf_new_cflags" ; then
8170 CFLAGS="$CFLAGS $cf_new_cflags"
8173 if test -n "$cf_new_cppflags" ; then
8175 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8178 if test -n "$cf_new_extra_cppflags" ; then
8180 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8188 # Work around breakage on OS X
8190 echo "$as_me:8190: checking if SIGWINCH is defined" >&5
8191 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
8192 if test "${cf_cv_define_sigwinch+set}" = set; then
8193 echo $ECHO_N "(cached) $ECHO_C" >&6
8196 cat >conftest.$ac_ext <<_ACEOF
8197 #line 8197 "configure"
8198 #include "confdefs.h"
8200 #include <sys/types.h>
8201 #include <sys/signal.h>
8211 rm -f conftest.$ac_objext
8212 if { (eval echo "$as_me:8212: \"$ac_compile\"") >&5
8213 (eval $ac_compile) 2>&5
8215 echo "$as_me:8215: \$? = $ac_status" >&5
8216 (exit $ac_status); } &&
8217 { ac_try='test -s conftest.$ac_objext'
8218 { (eval echo "$as_me:8218: \"$ac_try\"") >&5
8221 echo "$as_me:8221: \$? = $ac_status" >&5
8222 (exit $ac_status); }; }; then
8223 cf_cv_define_sigwinch=yes
8225 echo "$as_me: failed program was:" >&5
8226 cat conftest.$ac_ext >&5
8227 cat >conftest.$ac_ext <<_ACEOF
8228 #line 8228 "configure"
8229 #include "confdefs.h"
8231 #undef _XOPEN_SOURCE
8232 #undef _POSIX_SOURCE
8233 #undef _POSIX_C_SOURCE
8234 #include <sys/types.h>
8235 #include <sys/signal.h>
8245 rm -f conftest.$ac_objext
8246 if { (eval echo "$as_me:8246: \"$ac_compile\"") >&5
8247 (eval $ac_compile) 2>&5
8249 echo "$as_me:8249: \$? = $ac_status" >&5
8250 (exit $ac_status); } &&
8251 { ac_try='test -s conftest.$ac_objext'
8252 { (eval echo "$as_me:8252: \"$ac_try\"") >&5
8255 echo "$as_me:8255: \$? = $ac_status" >&5
8256 (exit $ac_status); }; }; then
8257 cf_cv_define_sigwinch=maybe
8259 echo "$as_me: failed program was:" >&5
8260 cat conftest.$ac_ext >&5
8261 cf_cv_define_sigwinch=no
8263 rm -f conftest.$ac_objext conftest.$ac_ext
8266 rm -f conftest.$ac_objext conftest.$ac_ext
8269 echo "$as_me:8269: result: $cf_cv_define_sigwinch" >&5
8270 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
8272 if test "$cf_cv_define_sigwinch" = maybe ; then
8273 echo "$as_me:8273: checking for actual SIGWINCH definition" >&5
8274 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
8275 if test "${cf_cv_fixup_sigwinch+set}" = set; then
8276 echo $ECHO_N "(cached) $ECHO_C" >&6
8279 cf_cv_fixup_sigwinch=unknown
8281 while test $cf_sigwinch != 1
8283 cat >conftest.$ac_ext <<_ACEOF
8284 #line 8284 "configure"
8285 #include "confdefs.h"
8287 #undef _XOPEN_SOURCE
8288 #undef _POSIX_SOURCE
8289 #undef _POSIX_C_SOURCE
8290 #include <sys/types.h>
8291 #include <sys/signal.h>
8297 #if SIGWINCH != $cf_sigwinch
8305 rm -f conftest.$ac_objext
8306 if { (eval echo "$as_me:8306: \"$ac_compile\"") >&5
8307 (eval $ac_compile) 2>&5
8309 echo "$as_me:8309: \$? = $ac_status" >&5
8310 (exit $ac_status); } &&
8311 { ac_try='test -s conftest.$ac_objext'
8312 { (eval echo "$as_me:8312: \"$ac_try\"") >&5
8315 echo "$as_me:8315: \$? = $ac_status" >&5
8316 (exit $ac_status); }; }; then
8317 cf_cv_fixup_sigwinch=$cf_sigwinch
8320 echo "$as_me: failed program was:" >&5
8321 cat conftest.$ac_ext >&5
8323 rm -f conftest.$ac_objext conftest.$ac_ext
8325 cf_sigwinch=`expr $cf_sigwinch - 1`
8329 echo "$as_me:8329: result: $cf_cv_fixup_sigwinch" >&5
8330 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
8332 if test "$cf_cv_fixup_sigwinch" != unknown ; then
8333 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
8337 # Checks for CODESET support.
8339 echo "$as_me:8339: checking for nl_langinfo and CODESET" >&5
8340 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
8341 if test "${am_cv_langinfo_codeset+set}" = set; then
8342 echo $ECHO_N "(cached) $ECHO_C" >&6
8344 cat >conftest.$ac_ext <<_ACEOF
8345 #line 8345 "configure"
8346 #include "confdefs.h"
8347 #include <langinfo.h>
8351 char* cs = nl_langinfo(CODESET);
8356 rm -f conftest.$ac_objext conftest$ac_exeext
8357 if { (eval echo "$as_me:8357: \"$ac_link\"") >&5
8358 (eval $ac_link) 2>&5
8360 echo "$as_me:8360: \$? = $ac_status" >&5
8361 (exit $ac_status); } &&
8362 { ac_try='test -s conftest$ac_exeext'
8363 { (eval echo "$as_me:8363: \"$ac_try\"") >&5
8366 echo "$as_me:8366: \$? = $ac_status" >&5
8367 (exit $ac_status); }; }; then
8368 am_cv_langinfo_codeset=yes
8370 echo "$as_me: failed program was:" >&5
8371 cat conftest.$ac_ext >&5
8372 am_cv_langinfo_codeset=no
8374 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8377 echo "$as_me:8377: result: $am_cv_langinfo_codeset" >&5
8378 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
8379 if test $am_cv_langinfo_codeset = yes; then
8381 cat >>confdefs.h <<\EOF
8382 #define HAVE_LANGINFO_CODESET 1
8387 # use these variables to work around a defect in gcc's fixincludes.
8391 echo "$as_me:8391: checking if you want wide-character code" >&5
8392 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
8394 # Check whether --enable-widec or --disable-widec was given.
8395 if test "${enable_widec+set}" = set; then
8396 enableval="$enable_widec"
8397 with_widec=$enableval
8401 echo "$as_me:8401: result: $with_widec" >&5
8402 echo "${ECHO_T}$with_widec" >&6
8403 if test "$with_widec" = yes ; then
8404 LIB_SUFFIX="w${LIB_SUFFIX}"
8405 cat >>confdefs.h <<\EOF
8406 #define USE_WIDEC_SUPPORT 1
8409 cat >>confdefs.h <<\EOF
8410 #define NCURSES_WIDECHAR 1
8413 echo "$as_me:8413: checking if wchar.h can be used as is" >&5
8414 echo $ECHO_N "checking if wchar.h can be used as is... $ECHO_C" >&6
8415 if test "${cf_cv_wchar_h_okay+set}" = set; then
8416 echo $ECHO_N "(cached) $ECHO_C" >&6
8419 cat >conftest.$ac_ext <<_ACEOF
8420 #line 8420 "configure"
8421 #include "confdefs.h"
8431 int bar = iswpunct(foo)
8436 rm -f conftest.$ac_objext
8437 if { (eval echo "$as_me:8437: \"$ac_compile\"") >&5
8438 (eval $ac_compile) 2>&5
8440 echo "$as_me:8440: \$? = $ac_status" >&5
8441 (exit $ac_status); } &&
8442 { ac_try='test -s conftest.$ac_objext'
8443 { (eval echo "$as_me:8443: \"$ac_try\"") >&5
8446 echo "$as_me:8446: \$? = $ac_status" >&5
8447 (exit $ac_status); }; }; then
8448 cf_cv_wchar_h_okay=yes
8450 echo "$as_me: failed program was:" >&5
8451 cat conftest.$ac_ext >&5
8452 cf_cv_wchar_h_okay=no
8454 rm -f conftest.$ac_objext conftest.$ac_ext
8456 echo "$as_me:8456: result: $cf_cv_wchar_h_okay" >&5
8457 echo "${ECHO_T}$cf_cv_wchar_h_okay" >&6
8459 if test $cf_cv_wchar_h_okay = no
8462 echo "$as_me:8462: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
8463 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
8464 cat >conftest.$ac_ext <<_ACEOF
8465 #line 8465 "configure"
8466 #include "confdefs.h"
8467 #include <sys/types.h>
8473 #ifndef _XOPEN_SOURCE_EXTENDED
8480 rm -f conftest.$ac_objext
8481 if { (eval echo "$as_me:8481: \"$ac_compile\"") >&5
8482 (eval $ac_compile) 2>&5
8484 echo "$as_me:8484: \$? = $ac_status" >&5
8485 (exit $ac_status); } &&
8486 { ac_try='test -s conftest.$ac_objext'
8487 { (eval echo "$as_me:8487: \"$ac_try\"") >&5
8490 echo "$as_me:8490: \$? = $ac_status" >&5
8491 (exit $ac_status); }; }; then
8494 echo "$as_me: failed program was:" >&5
8495 cat conftest.$ac_ext >&5
8498 rm -f conftest.$ac_objext conftest.$ac_ext
8499 echo "$as_me:8499: result: $cf_result" >&5
8500 echo "${ECHO_T}$cf_result" >&6
8502 if test "$cf_result" = yes ; then
8503 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
8504 elif test "x" != "x" ; then
8505 echo "$as_me:8505: checking checking for compatible value versus " >&5
8506 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
8507 cat >conftest.$ac_ext <<_ACEOF
8508 #line 8508 "configure"
8509 #include "confdefs.h"
8510 #include <sys/types.h>
8516 #if _XOPEN_SOURCE_EXTENDED- < 0
8523 rm -f conftest.$ac_objext
8524 if { (eval echo "$as_me:8524: \"$ac_compile\"") >&5
8525 (eval $ac_compile) 2>&5
8527 echo "$as_me:8527: \$? = $ac_status" >&5
8528 (exit $ac_status); } &&
8529 { ac_try='test -s conftest.$ac_objext'
8530 { (eval echo "$as_me:8530: \"$ac_try\"") >&5
8533 echo "$as_me:8533: \$? = $ac_status" >&5
8534 (exit $ac_status); }; }; then
8537 echo "$as_me: failed program was:" >&5
8538 cat conftest.$ac_ext >&5
8541 rm -f conftest.$ac_objext conftest.$ac_ext
8542 echo "$as_me:8542: result: $cf_result" >&5
8543 echo "${ECHO_T}$cf_result" >&6
8544 if test "$cf_result" = no ; then
8545 # perhaps we can override it - try...
8546 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
8553 NCURSES_CH_T=cchar_t
8555 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
8557 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8558 echo "$as_me:8558: checking for $ac_func" >&5
8559 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8560 if eval "test \"\${$as_ac_var+set}\" = set"; then
8561 echo $ECHO_N "(cached) $ECHO_C" >&6
8563 cat >conftest.$ac_ext <<_ACEOF
8564 #line 8564 "configure"
8565 #include "confdefs.h"
8566 /* System header to define __stub macros and hopefully few prototypes,
8567 which can conflict with char $ac_func (); below. */
8569 /* Override any gcc2 internal prototype to avoid an error. */
8573 /* We use char because int might match the return type of a gcc2
8574 builtin and then its argument prototype would still apply. */
8581 /* The GNU C library defines this for functions which it implements
8582 to always fail with ENOSYS. Some functions are actually named
8583 something starting with __ and the normal name is an alias. */
8584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8587 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
8594 rm -f conftest.$ac_objext conftest$ac_exeext
8595 if { (eval echo "$as_me:8595: \"$ac_link\"") >&5
8596 (eval $ac_link) 2>&5
8598 echo "$as_me:8598: \$? = $ac_status" >&5
8599 (exit $ac_status); } &&
8600 { ac_try='test -s conftest$ac_exeext'
8601 { (eval echo "$as_me:8601: \"$ac_try\"") >&5
8604 echo "$as_me:8604: \$? = $ac_status" >&5
8605 (exit $ac_status); }; }; then
8606 eval "$as_ac_var=yes"
8608 echo "$as_me: failed program was:" >&5
8609 cat conftest.$ac_ext >&5
8610 eval "$as_ac_var=no"
8612 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8614 echo "$as_me:8614: result: `eval echo '${'$as_ac_var'}'`" >&5
8615 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8616 if test `eval echo '${'$as_ac_var'}'` = yes; then
8617 cat >>confdefs.h <<EOF
8618 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8624 if test "$ac_cv_func_putwc" != yes ; then
8626 echo "$as_me:8626: checking for multibyte character support" >&5
8627 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
8628 if test "${cf_cv_utf8_lib+set}" = set; then
8629 echo $ECHO_N "(cached) $ECHO_C" >&6
8632 cf_save_LIBS="$LIBS"
8633 cat >conftest.$ac_ext <<_ACEOF
8634 #line 8634 "configure"
8635 #include "confdefs.h"
8646 rm -f conftest.$ac_objext conftest$ac_exeext
8647 if { (eval echo "$as_me:8647: \"$ac_link\"") >&5
8648 (eval $ac_link) 2>&5
8650 echo "$as_me:8650: \$? = $ac_status" >&5
8651 (exit $ac_status); } &&
8652 { ac_try='test -s conftest$ac_exeext'
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
8663 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
8664 # will be set on completion of the AC_TRY_LINK below.
8665 cf_cv_header_path_utf8=
8666 cf_cv_library_path_utf8=
8668 echo "${as_me:-configure}:8668: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
8670 cf_save_LIBS="$LIBS"
8672 cat >conftest.$ac_ext <<_ACEOF
8673 #line 8673 "configure"
8674 #include "confdefs.h"
8676 #include <libutf8.h>
8685 rm -f conftest.$ac_objext conftest$ac_exeext
8686 if { (eval echo "$as_me:8686: \"$ac_link\"") >&5
8687 (eval $ac_link) 2>&5
8689 echo "$as_me:8689: \$? = $ac_status" >&5
8690 (exit $ac_status); } &&
8691 { ac_try='test -s conftest$ac_exeext'
8692 { (eval echo "$as_me:8692: \"$ac_try\"") >&5
8695 echo "$as_me:8695: \$? = $ac_status" >&5
8696 (exit $ac_status); }; }; then
8698 cf_cv_find_linkage_utf8=yes
8699 cf_cv_header_path_utf8=/usr/include
8700 cf_cv_library_path_utf8=/usr/lib
8703 echo "$as_me: failed program was:" >&5
8704 cat conftest.$ac_ext >&5
8706 LIBS="-lutf8 $cf_save_LIBS"
8708 cat >conftest.$ac_ext <<_ACEOF
8709 #line 8709 "configure"
8710 #include "confdefs.h"
8712 #include <libutf8.h>
8721 rm -f conftest.$ac_objext conftest$ac_exeext
8722 if { (eval echo "$as_me:8722: \"$ac_link\"") >&5
8723 (eval $ac_link) 2>&5
8725 echo "$as_me:8725: \$? = $ac_status" >&5
8726 (exit $ac_status); } &&
8727 { ac_try='test -s conftest$ac_exeext'
8728 { (eval echo "$as_me:8728: \"$ac_try\"") >&5
8731 echo "$as_me:8731: \$? = $ac_status" >&5
8732 (exit $ac_status); }; }; then
8734 cf_cv_find_linkage_utf8=yes
8735 cf_cv_header_path_utf8=/usr/include
8736 cf_cv_library_path_utf8=/usr/lib
8737 cf_cv_library_file_utf8="-lutf8"
8740 echo "$as_me: failed program was:" >&5
8741 cat conftest.$ac_ext >&5
8743 cf_cv_find_linkage_utf8=no
8744 LIBS="$cf_save_LIBS"
8746 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
8748 echo "${as_me:-configure}:8748: testing find linkage for utf8 library ..." 1>&5
8750 echo "${as_me:-configure}:8750: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
8752 cf_save_CPPFLAGS="$CPPFLAGS"
8753 cf_test_CPPFLAGS="$CPPFLAGS"
8757 # collect the current set of include-directories from compiler flags
8758 cf_header_path_list=""
8759 if test -n "${CFLAGS}${CPPFLAGS}" ; then
8760 for cf_header_path in $CPPFLAGS $CFLAGS
8762 case $cf_header_path in #(vi
8764 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
8766 test "$cf_header_path" != "NONE" && \
8767 test -d "$cf_header_path" && \
8769 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
8770 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
8771 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
8772 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
8773 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
8774 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
8777 cf_header_path_list="$cf_header_path_list $cf_search"
8783 # add the variations for the package we are looking for
8787 test "/usr" != "$prefix" && \
8789 (test $prefix = NONE || test "/usr" != "$prefix") && {
8790 test -n "$verbose" && echo " ... testing for include-directories under /usr"
8791 test -d /usr/include && cf_search="$cf_search /usr/include"
8792 test -d /usr/include/utf8 && cf_search="$cf_search /usr/include/utf8"
8793 test -d /usr/include/utf8/include && cf_search="$cf_search /usr/include/utf8/include"
8794 test -d /usr/utf8/include && cf_search="$cf_search /usr/utf8/include"
8795 test -d /usr/utf8/include/utf8 && cf_search="$cf_search /usr/utf8/include/utf8"
8798 test "$prefix" != "NONE" && \
8799 test -d "$prefix" && \
8801 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
8802 test -d $prefix/include && cf_search="$cf_search $prefix/include"
8803 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
8804 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
8805 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
8806 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
8809 test "/usr/local" != "$prefix" && \
8810 test -d "/usr/local" && \
8811 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
8812 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
8813 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
8814 test -d /usr/local/include/utf8 && cf_search="$cf_search /usr/local/include/utf8"
8815 test -d /usr/local/include/utf8/include && cf_search="$cf_search /usr/local/include/utf8/include"
8816 test -d /usr/local/utf8/include && cf_search="$cf_search /usr/local/utf8/include"
8817 test -d /usr/local/utf8/include/utf8 && cf_search="$cf_search /usr/local/utf8/include/utf8"
8820 test "/opt" != "$prefix" && \
8822 (test $prefix = NONE || test "/opt" != "$prefix") && {
8823 test -n "$verbose" && echo " ... testing for include-directories under /opt"
8824 test -d /opt/include && cf_search="$cf_search /opt/include"
8825 test -d /opt/include/utf8 && cf_search="$cf_search /opt/include/utf8"
8826 test -d /opt/include/utf8/include && cf_search="$cf_search /opt/include/utf8/include"
8827 test -d /opt/utf8/include && cf_search="$cf_search /opt/utf8/include"
8828 test -d /opt/utf8/include/utf8 && cf_search="$cf_search /opt/utf8/include/utf8"
8831 test "$HOME" != "$prefix" && \
8832 test -d "$HOME" && \
8833 (test $prefix = NONE || test "$HOME" != "$prefix") && {
8834 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
8835 test -d $HOME/include && cf_search="$cf_search $HOME/include"
8836 test -d $HOME/include/utf8 && cf_search="$cf_search $HOME/include/utf8"
8837 test -d $HOME/include/utf8/include && cf_search="$cf_search $HOME/include/utf8/include"
8838 test -d $HOME/utf8/include && cf_search="$cf_search $HOME/utf8/include"
8839 test -d $HOME/utf8/include/utf8 && cf_search="$cf_search $HOME/utf8/include/utf8"
8842 test "$includedir" != NONE && \
8843 test "$includedir" != "/usr/include" && \
8844 test -d "$includedir" && {
8845 test -d $includedir && cf_search="$cf_search $includedir"
8846 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
8849 test "$oldincludedir" != NONE && \
8850 test "$oldincludedir" != "/usr/include" && \
8851 test -d "$oldincludedir" && {
8852 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
8853 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
8856 cf_search="$cf_search $cf_header_path_list"
8858 for cf_cv_header_path_utf8 in $cf_search
8860 if test -d $cf_cv_header_path_utf8 ; then
8861 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
8863 echo "${as_me:-configure}:8863: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
8865 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
8866 cat >conftest.$ac_ext <<_ACEOF
8867 #line 8867 "configure"
8868 #include "confdefs.h"
8870 #include <libutf8.h>
8879 rm -f conftest.$ac_objext
8880 if { (eval echo "$as_me:8880: \"$ac_compile\"") >&5
8881 (eval $ac_compile) 2>&5
8883 echo "$as_me:8883: \$? = $ac_status" >&5
8884 (exit $ac_status); } &&
8885 { ac_try='test -s conftest.$ac_objext'
8886 { (eval echo "$as_me:8886: \"$ac_try\"") >&5
8889 echo "$as_me:8889: \$? = $ac_status" >&5
8890 (exit $ac_status); }; }; then
8892 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
8894 echo "${as_me:-configure}:8894: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
8896 cf_cv_find_linkage_utf8=maybe
8897 cf_test_CPPFLAGS="$CPPFLAGS"
8900 echo "$as_me: failed program was:" >&5
8901 cat conftest.$ac_ext >&5
8903 CPPFLAGS="$cf_save_CPPFLAGS"
8906 rm -f conftest.$ac_objext conftest.$ac_ext
8910 if test "$cf_cv_find_linkage_utf8" = maybe ; then
8912 echo "${as_me:-configure}:8912: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
8914 cf_save_LIBS="$LIBS"
8915 cf_save_LDFLAGS="$LDFLAGS"
8917 if test "$cf_cv_find_linkage_utf8" != yes ; then
8920 cf_library_path_list=""
8921 if test -n "${LDFLAGS}${LIBS}" ; then
8922 for cf_library_path in $LDFLAGS $LIBS
8924 case $cf_library_path in #(vi
8926 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
8928 test "$cf_library_path" != "NONE" && \
8929 test -d "$cf_library_path" && \
8931 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
8932 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
8933 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
8934 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
8935 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
8936 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
8939 cf_library_path_list="$cf_library_path_list $cf_search"
8947 test "/usr" != "$prefix" && \
8949 (test $prefix = NONE || test "/usr" != "$prefix") && {
8950 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
8951 test -d /usr/lib && cf_search="$cf_search /usr/lib"
8952 test -d /usr/lib/utf8 && cf_search="$cf_search /usr/lib/utf8"
8953 test -d /usr/lib/utf8/lib && cf_search="$cf_search /usr/lib/utf8/lib"
8954 test -d /usr/utf8/lib && cf_search="$cf_search /usr/utf8/lib"
8955 test -d /usr/utf8/lib/utf8 && cf_search="$cf_search /usr/utf8/lib/utf8"
8958 test "$prefix" != "NONE" && \
8959 test -d "$prefix" && \
8961 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
8962 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
8963 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
8964 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
8965 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
8966 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
8969 test "/usr/local" != "$prefix" && \
8970 test -d "/usr/local" && \
8971 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
8972 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
8973 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
8974 test -d /usr/local/lib/utf8 && cf_search="$cf_search /usr/local/lib/utf8"
8975 test -d /usr/local/lib/utf8/lib && cf_search="$cf_search /usr/local/lib/utf8/lib"
8976 test -d /usr/local/utf8/lib && cf_search="$cf_search /usr/local/utf8/lib"
8977 test -d /usr/local/utf8/lib/utf8 && cf_search="$cf_search /usr/local/utf8/lib/utf8"
8980 test "/opt" != "$prefix" && \
8982 (test $prefix = NONE || test "/opt" != "$prefix") && {
8983 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
8984 test -d /opt/lib && cf_search="$cf_search /opt/lib"
8985 test -d /opt/lib/utf8 && cf_search="$cf_search /opt/lib/utf8"
8986 test -d /opt/lib/utf8/lib && cf_search="$cf_search /opt/lib/utf8/lib"
8987 test -d /opt/utf8/lib && cf_search="$cf_search /opt/utf8/lib"
8988 test -d /opt/utf8/lib/utf8 && cf_search="$cf_search /opt/utf8/lib/utf8"
8991 test "$HOME" != "$prefix" && \
8992 test -d "$HOME" && \
8993 (test $prefix = NONE || test "$HOME" != "$prefix") && {
8994 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
8995 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
8996 test -d $HOME/lib/utf8 && cf_search="$cf_search $HOME/lib/utf8"
8997 test -d $HOME/lib/utf8/lib && cf_search="$cf_search $HOME/lib/utf8/lib"
8998 test -d $HOME/utf8/lib && cf_search="$cf_search $HOME/utf8/lib"
8999 test -d $HOME/utf8/lib/utf8 && cf_search="$cf_search $HOME/utf8/lib/utf8"
9002 cf_search="$cf_library_path_list $cf_search"
9004 for cf_cv_library_path_utf8 in $cf_search
9006 if test -d $cf_cv_library_path_utf8 ; then
9007 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
9009 echo "${as_me:-configure}:9009: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
9011 CPPFLAGS="$cf_test_CPPFLAGS"
9012 LIBS="-lutf8 $cf_save_LIBS"
9013 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
9014 cat >conftest.$ac_ext <<_ACEOF
9015 #line 9015 "configure"
9016 #include "confdefs.h"
9018 #include <libutf8.h>
9027 rm -f conftest.$ac_objext conftest$ac_exeext
9028 if { (eval echo "$as_me:9028: \"$ac_link\"") >&5
9029 (eval $ac_link) 2>&5
9031 echo "$as_me:9031: \$? = $ac_status" >&5
9032 (exit $ac_status); } &&
9033 { ac_try='test -s conftest$ac_exeext'
9034 { (eval echo "$as_me:9034: \"$ac_try\"") >&5
9037 echo "$as_me:9037: \$? = $ac_status" >&5
9038 (exit $ac_status); }; }; then
9040 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
9042 echo "${as_me:-configure}:9042: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
9044 cf_cv_find_linkage_utf8=yes
9045 cf_cv_library_file_utf8="-lutf8"
9048 echo "$as_me: failed program was:" >&5
9049 cat conftest.$ac_ext >&5
9051 CPPFLAGS="$cf_save_CPPFLAGS"
9052 LIBS="$cf_save_LIBS"
9053 LDFLAGS="$cf_save_LDFLAGS"
9056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9059 CPPFLAGS="$cf_save_CPPFLAGS"
9060 LDFLAGS="$cf_save_LDFLAGS"
9064 cf_cv_find_linkage_utf8=no
9068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9071 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9073 LIBS="$cf_save_LIBS"
9075 if test "$cf_cv_find_linkage_utf8" = yes ; then
9076 cf_cv_utf8_lib=add-on
9082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9084 echo "$as_me:9084: result: $cf_cv_utf8_lib" >&5
9085 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
9087 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
9089 if test "$cf_cv_utf8_lib" = "add-on" ; then
9090 cat >>confdefs.h <<\EOF
9091 #define HAVE_LIBUTF8_H 1
9094 if test -n "$cf_cv_header_path_utf8" ; then
9095 for cf_add_incdir in $cf_cv_header_path_utf8
9097 while test $cf_add_incdir != /usr/include
9099 if test -d $cf_add_incdir
9102 if test -n "$CFLAGS$CPPFLAGS" ; then
9103 # a loop is needed to ensure we can add subdirs of existing dirs
9104 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
9105 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
9106 cf_have_incdir=yes; break
9111 if test "$cf_have_incdir" = no ; then
9112 if test "$cf_add_incdir" = /usr/local/include ; then
9113 if test "$GCC" = yes
9115 cf_save_CPPFLAGS=$CPPFLAGS
9116 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9117 cat >conftest.$ac_ext <<_ACEOF
9118 #line 9118 "configure"
9119 #include "confdefs.h"
9129 rm -f conftest.$ac_objext
9130 if { (eval echo "$as_me:9130: \"$ac_compile\"") >&5
9131 (eval $ac_compile) 2>&5
9133 echo "$as_me:9133: \$? = $ac_status" >&5
9134 (exit $ac_status); } &&
9135 { ac_try='test -s conftest.$ac_objext'
9136 { (eval echo "$as_me:9136: \"$ac_try\"") >&5
9139 echo "$as_me:9139: \$? = $ac_status" >&5
9140 (exit $ac_status); }; }; then
9143 echo "$as_me: failed program was:" >&5
9144 cat conftest.$ac_ext >&5
9147 rm -f conftest.$ac_objext conftest.$ac_ext
9148 CPPFLAGS=$cf_save_CPPFLAGS
9153 if test "$cf_have_incdir" = no ; then
9154 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
9156 echo "${as_me:-configure}:9156: testing adding $cf_add_incdir to include-path ..." 1>&5
9158 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9160 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
9161 test "$cf_top_incdir" = "$cf_add_incdir" && break
9162 cf_add_incdir="$cf_top_incdir"
9171 if test -n "$cf_cv_library_path_utf8" ; then
9172 for cf_add_libdir in $cf_cv_library_path_utf8
9174 if test $cf_add_libdir = /usr/lib ; then
9176 elif test -d $cf_add_libdir
9179 if test -n "$LDFLAGS$LIBS" ; then
9180 # a loop is needed to ensure we can add subdirs of existing dirs
9181 for cf_test_libdir in $LDFLAGS $LIBS ; do
9182 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
9183 cf_have_libdir=yes; break
9187 if test "$cf_have_libdir" = no ; then
9188 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
9190 echo "${as_me:-configure}:9190: testing adding $cf_add_libdir to library-path ..." 1>&5
9192 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
9198 LIBS="$cf_cv_library_file_utf8 $LIBS"
9201 if test "$cf_cv_utf8_lib" != no ; then
9206 # This is needed on Tru64 5.0 to declare mbstate_t
9207 echo "$as_me:9207: checking if we must include wchar.h to declare mbstate_t" >&5
9208 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
9209 if test "${cf_cv_mbstate_t+set}" = set; then
9210 echo $ECHO_N "(cached) $ECHO_C" >&6
9213 cat >conftest.$ac_ext <<_ACEOF
9214 #line 9214 "configure"
9215 #include "confdefs.h"
9220 #ifdef HAVE_LIBUTF8_H
9221 #include <libutf8.h>
9231 rm -f conftest.$ac_objext
9232 if { (eval echo "$as_me:9232: \"$ac_compile\"") >&5
9233 (eval $ac_compile) 2>&5
9235 echo "$as_me:9235: \$? = $ac_status" >&5
9236 (exit $ac_status); } &&
9237 { ac_try='test -s conftest.$ac_objext'
9238 { (eval echo "$as_me:9238: \"$ac_try\"") >&5
9241 echo "$as_me:9241: \$? = $ac_status" >&5
9242 (exit $ac_status); }; }; then
9245 echo "$as_me: failed program was:" >&5
9246 cat conftest.$ac_ext >&5
9247 cat >conftest.$ac_ext <<_ACEOF
9248 #line 9248 "configure"
9249 #include "confdefs.h"
9255 #ifdef HAVE_LIBUTF8_H
9256 #include <libutf8.h>
9266 rm -f conftest.$ac_objext
9267 if { (eval echo "$as_me:9267: \"$ac_compile\"") >&5
9268 (eval $ac_compile) 2>&5
9270 echo "$as_me:9270: \$? = $ac_status" >&5
9271 (exit $ac_status); } &&
9272 { ac_try='test -s conftest.$ac_objext'
9273 { (eval echo "$as_me:9273: \"$ac_try\"") >&5
9276 echo "$as_me:9276: \$? = $ac_status" >&5
9277 (exit $ac_status); }; }; then
9280 echo "$as_me: failed program was:" >&5
9281 cat conftest.$ac_ext >&5
9282 cf_cv_mbstate_t=unknown
9284 rm -f conftest.$ac_objext conftest.$ac_ext
9286 rm -f conftest.$ac_objext conftest.$ac_ext
9288 echo "$as_me:9288: result: $cf_cv_mbstate_t" >&5
9289 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
9291 if test "$cf_cv_mbstate_t" = yes ; then
9292 cat >>confdefs.h <<\EOF
9293 #define NEED_WCHAR_H 1
9299 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
9300 if test "$cf_cv_mbstate_t" = unknown ; then
9304 # This is needed on Tru64 5.0 to declare wchar_t
9305 echo "$as_me:9305: checking if we must include wchar.h to declare wchar_t" >&5
9306 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
9307 if test "${cf_cv_wchar_t+set}" = set; then
9308 echo $ECHO_N "(cached) $ECHO_C" >&6
9311 cat >conftest.$ac_ext <<_ACEOF
9312 #line 9312 "configure"
9313 #include "confdefs.h"
9318 #ifdef HAVE_LIBUTF8_H
9319 #include <libutf8.h>
9329 rm -f conftest.$ac_objext
9330 if { (eval echo "$as_me:9330: \"$ac_compile\"") >&5
9331 (eval $ac_compile) 2>&5
9333 echo "$as_me:9333: \$? = $ac_status" >&5
9334 (exit $ac_status); } &&
9335 { ac_try='test -s conftest.$ac_objext'
9336 { (eval echo "$as_me:9336: \"$ac_try\"") >&5
9339 echo "$as_me:9339: \$? = $ac_status" >&5
9340 (exit $ac_status); }; }; then
9343 echo "$as_me: failed program was:" >&5
9344 cat conftest.$ac_ext >&5
9345 cat >conftest.$ac_ext <<_ACEOF
9346 #line 9346 "configure"
9347 #include "confdefs.h"
9353 #ifdef HAVE_LIBUTF8_H
9354 #include <libutf8.h>
9364 rm -f conftest.$ac_objext
9365 if { (eval echo "$as_me:9365: \"$ac_compile\"") >&5
9366 (eval $ac_compile) 2>&5
9368 echo "$as_me:9368: \$? = $ac_status" >&5
9369 (exit $ac_status); } &&
9370 { ac_try='test -s conftest.$ac_objext'
9371 { (eval echo "$as_me:9371: \"$ac_try\"") >&5
9374 echo "$as_me:9374: \$? = $ac_status" >&5
9375 (exit $ac_status); }; }; then
9378 echo "$as_me: failed program was:" >&5
9379 cat conftest.$ac_ext >&5
9380 cf_cv_wchar_t=unknown
9382 rm -f conftest.$ac_objext conftest.$ac_ext
9384 rm -f conftest.$ac_objext conftest.$ac_ext
9386 echo "$as_me:9386: result: $cf_cv_wchar_t" >&5
9387 echo "${ECHO_T}$cf_cv_wchar_t" >&6
9389 if test "$cf_cv_wchar_t" = yes ; then
9390 cat >>confdefs.h <<\EOF
9391 #define NEED_WCHAR_H 1
9397 # if we do not find wchar_t in either place, use substitution to provide a fallback.
9398 if test "$cf_cv_wchar_t" = unknown ; then
9402 # if we find wchar_t in either place, use substitution to provide a fallback.
9403 if test "$cf_cv_wchar_t" != unknown ; then
9404 NCURSES_OK_WCHAR_T=1
9407 # This is needed on Tru64 5.0 to declare wint_t
9408 echo "$as_me:9408: checking if we must include wchar.h to declare wint_t" >&5
9409 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
9410 if test "${cf_cv_wint_t+set}" = set; then
9411 echo $ECHO_N "(cached) $ECHO_C" >&6
9414 cat >conftest.$ac_ext <<_ACEOF
9415 #line 9415 "configure"
9416 #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 cat >conftest.$ac_ext <<_ACEOF
9449 #line 9449 "configure"
9450 #include "confdefs.h"
9456 #ifdef HAVE_LIBUTF8_H
9457 #include <libutf8.h>
9467 rm -f conftest.$ac_objext
9468 if { (eval echo "$as_me:9468: \"$ac_compile\"") >&5
9469 (eval $ac_compile) 2>&5
9471 echo "$as_me:9471: \$? = $ac_status" >&5
9472 (exit $ac_status); } &&
9473 { ac_try='test -s conftest.$ac_objext'
9474 { (eval echo "$as_me:9474: \"$ac_try\"") >&5
9477 echo "$as_me:9477: \$? = $ac_status" >&5
9478 (exit $ac_status); }; }; then
9481 echo "$as_me: failed program was:" >&5
9482 cat conftest.$ac_ext >&5
9483 cf_cv_wint_t=unknown
9485 rm -f conftest.$ac_objext conftest.$ac_ext
9487 rm -f conftest.$ac_objext conftest.$ac_ext
9489 echo "$as_me:9489: result: $cf_cv_wint_t" >&5
9490 echo "${ECHO_T}$cf_cv_wint_t" >&6
9492 if test "$cf_cv_wint_t" = yes ; then
9493 cat >>confdefs.h <<\EOF
9494 #define NEED_WCHAR_H 1
9500 # if we do not find wint_t in either place, use substitution to provide a fallback.
9501 if test "$cf_cv_wint_t" = unknown ; then
9505 # if we find wint_t in either place, use substitution to provide a fallback.
9506 if test "$cf_cv_wint_t" != unknown ; then
9510 if test "$NCURSES_MBSTATE_T" != 0; then
9511 cat >>confdefs.h <<\EOF
9512 #define NEED_MBSTATE_T_DEF 1
9518 ### use option --disable-lp64 to allow long chtype
9519 case $cf_cv_abi_version in
9521 default_with_lp64=no
9524 default_with_lp64=yes
9528 echo "$as_me:9528: checking whether to enable _LP64 definition in curses.h" >&5
9529 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
9531 # Check whether --enable-lp64 or --disable-lp64 was given.
9532 if test "${enable_lp64+set}" = set; then
9533 enableval="$enable_lp64"
9534 with_lp64=$enableval
9536 with_lp64=$default_with_lp64
9538 echo "$as_me:9538: result: $with_lp64" >&5
9539 echo "${ECHO_T}$with_lp64" >&6
9541 if test "$with_lp64" = yes ; then
9547 # Check whether --enable-largefile or --disable-largefile was given.
9548 if test "${enable_largefile+set}" = set; then
9549 enableval="$enable_largefile"
9552 if test "$enable_largefile" != no; then
9554 echo "$as_me:9554: checking for special C compiler options needed for large files" >&5
9555 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
9556 if test "${ac_cv_sys_largefile_CC+set}" = set; then
9557 echo $ECHO_N "(cached) $ECHO_C" >&6
9559 ac_cv_sys_largefile_CC=no
9560 if test "$GCC" != yes; then
9563 # IRIX 6.2 and later do not support large files by default,
9564 # so use the C compiler's -n32 option if that helps.
9565 cat >conftest.$ac_ext <<_ACEOF
9566 #line 9566 "configure"
9567 #include "confdefs.h"
9568 #include <sys/types.h>
9569 /* Check that off_t can represent 2**63 - 1 correctly.
9570 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9571 since some C++ compilers masquerading as C compilers
9572 incorrectly reject 9223372036854775807. */
9573 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9574 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9575 && LARGE_OFF_T % 2147483647 == 1)
9585 rm -f conftest.$ac_objext
9586 if { (eval echo "$as_me:9586: \"$ac_compile\"") >&5
9587 (eval $ac_compile) 2>&5
9589 echo "$as_me:9589: \$? = $ac_status" >&5
9590 (exit $ac_status); } &&
9591 { ac_try='test -s conftest.$ac_objext'
9592 { (eval echo "$as_me:9592: \"$ac_try\"") >&5
9595 echo "$as_me:9595: \$? = $ac_status" >&5
9596 (exit $ac_status); }; }; then
9599 echo "$as_me: failed program was:" >&5
9600 cat conftest.$ac_ext >&5
9602 rm -f conftest.$ac_objext
9604 rm -f conftest.$ac_objext
9605 if { (eval echo "$as_me:9605: \"$ac_compile\"") >&5
9606 (eval $ac_compile) 2>&5
9608 echo "$as_me:9608: \$? = $ac_status" >&5
9609 (exit $ac_status); } &&
9610 { ac_try='test -s conftest.$ac_objext'
9611 { (eval echo "$as_me:9611: \"$ac_try\"") >&5
9614 echo "$as_me:9614: \$? = $ac_status" >&5
9615 (exit $ac_status); }; }; then
9616 ac_cv_sys_largefile_CC=' -n32'; break
9618 echo "$as_me: failed program was:" >&5
9619 cat conftest.$ac_ext >&5
9621 rm -f conftest.$ac_objext
9625 rm -f conftest.$ac_ext
9628 echo "$as_me:9628: result: $ac_cv_sys_largefile_CC" >&5
9629 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
9630 if test "$ac_cv_sys_largefile_CC" != no; then
9631 CC=$CC$ac_cv_sys_largefile_CC
9634 echo "$as_me:9634: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9635 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
9636 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9637 echo $ECHO_N "(cached) $ECHO_C" >&6
9640 ac_cv_sys_file_offset_bits=no
9641 cat >conftest.$ac_ext <<_ACEOF
9642 #line 9642 "configure"
9643 #include "confdefs.h"
9644 #include <sys/types.h>
9645 /* Check that off_t can represent 2**63 - 1 correctly.
9646 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9647 since some C++ compilers masquerading as C compilers
9648 incorrectly reject 9223372036854775807. */
9649 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9650 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9651 && LARGE_OFF_T % 2147483647 == 1)
9661 rm -f conftest.$ac_objext
9662 if { (eval echo "$as_me:9662: \"$ac_compile\"") >&5
9663 (eval $ac_compile) 2>&5
9665 echo "$as_me:9665: \$? = $ac_status" >&5
9666 (exit $ac_status); } &&
9667 { ac_try='test -s conftest.$ac_objext'
9668 { (eval echo "$as_me:9668: \"$ac_try\"") >&5
9671 echo "$as_me:9671: \$? = $ac_status" >&5
9672 (exit $ac_status); }; }; then
9675 echo "$as_me: failed program was:" >&5
9676 cat conftest.$ac_ext >&5
9678 rm -f conftest.$ac_objext conftest.$ac_ext
9679 cat >conftest.$ac_ext <<_ACEOF
9680 #line 9680 "configure"
9681 #include "confdefs.h"
9682 #define _FILE_OFFSET_BITS 64
9683 #include <sys/types.h>
9684 /* Check that off_t can represent 2**63 - 1 correctly.
9685 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9686 since some C++ compilers masquerading as C compilers
9687 incorrectly reject 9223372036854775807. */
9688 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9689 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9690 && LARGE_OFF_T % 2147483647 == 1)
9700 rm -f conftest.$ac_objext
9701 if { (eval echo "$as_me:9701: \"$ac_compile\"") >&5
9702 (eval $ac_compile) 2>&5
9704 echo "$as_me:9704: \$? = $ac_status" >&5
9705 (exit $ac_status); } &&
9706 { ac_try='test -s conftest.$ac_objext'
9707 { (eval echo "$as_me:9707: \"$ac_try\"") >&5
9710 echo "$as_me:9710: \$? = $ac_status" >&5
9711 (exit $ac_status); }; }; then
9712 ac_cv_sys_file_offset_bits=64; break
9714 echo "$as_me: failed program was:" >&5
9715 cat conftest.$ac_ext >&5
9717 rm -f conftest.$ac_objext conftest.$ac_ext
9721 echo "$as_me:9721: result: $ac_cv_sys_file_offset_bits" >&5
9722 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9723 if test "$ac_cv_sys_file_offset_bits" != no; then
9725 cat >>confdefs.h <<EOF
9726 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9731 echo "$as_me:9731: checking for _LARGE_FILES value needed for large files" >&5
9732 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
9733 if test "${ac_cv_sys_large_files+set}" = set; then
9734 echo $ECHO_N "(cached) $ECHO_C" >&6
9737 ac_cv_sys_large_files=no
9738 cat >conftest.$ac_ext <<_ACEOF
9739 #line 9739 "configure"
9740 #include "confdefs.h"
9741 #include <sys/types.h>
9742 /* Check that off_t can represent 2**63 - 1 correctly.
9743 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9744 since some C++ compilers masquerading as C compilers
9745 incorrectly reject 9223372036854775807. */
9746 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9747 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9748 && LARGE_OFF_T % 2147483647 == 1)
9758 rm -f conftest.$ac_objext
9759 if { (eval echo "$as_me:9759: \"$ac_compile\"") >&5
9760 (eval $ac_compile) 2>&5
9762 echo "$as_me:9762: \$? = $ac_status" >&5
9763 (exit $ac_status); } &&
9764 { ac_try='test -s conftest.$ac_objext'
9765 { (eval echo "$as_me:9765: \"$ac_try\"") >&5
9768 echo "$as_me:9768: \$? = $ac_status" >&5
9769 (exit $ac_status); }; }; then
9772 echo "$as_me: failed program was:" >&5
9773 cat conftest.$ac_ext >&5
9775 rm -f conftest.$ac_objext conftest.$ac_ext
9776 cat >conftest.$ac_ext <<_ACEOF
9777 #line 9777 "configure"
9778 #include "confdefs.h"
9779 #define _LARGE_FILES 1
9780 #include <sys/types.h>
9781 /* Check that off_t can represent 2**63 - 1 correctly.
9782 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9783 since some C++ compilers masquerading as C compilers
9784 incorrectly reject 9223372036854775807. */
9785 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9786 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9787 && LARGE_OFF_T % 2147483647 == 1)
9797 rm -f conftest.$ac_objext
9798 if { (eval echo "$as_me:9798: \"$ac_compile\"") >&5
9799 (eval $ac_compile) 2>&5
9801 echo "$as_me:9801: \$? = $ac_status" >&5
9802 (exit $ac_status); } &&
9803 { ac_try='test -s conftest.$ac_objext'
9804 { (eval echo "$as_me:9804: \"$ac_try\"") >&5
9807 echo "$as_me:9807: \$? = $ac_status" >&5
9808 (exit $ac_status); }; }; then
9809 ac_cv_sys_large_files=1; break
9811 echo "$as_me: failed program was:" >&5
9812 cat conftest.$ac_ext >&5
9814 rm -f conftest.$ac_objext conftest.$ac_ext
9818 echo "$as_me:9818: result: $ac_cv_sys_large_files" >&5
9819 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9820 if test "$ac_cv_sys_large_files" != no; then
9822 cat >>confdefs.h <<EOF
9823 #define _LARGE_FILES $ac_cv_sys_large_files
9830 if test "$enable_largefile" != no ; then
9831 echo "$as_me:9831: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9832 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
9833 if test "${ac_cv_sys_largefile_source+set}" = set; then
9834 echo $ECHO_N "(cached) $ECHO_C" >&6
9837 ac_cv_sys_largefile_source=no
9838 cat >conftest.$ac_ext <<_ACEOF
9839 #line 9839 "configure"
9840 #include "confdefs.h"
9850 rm -f conftest.$ac_objext
9851 if { (eval echo "$as_me:9851: \"$ac_compile\"") >&5
9852 (eval $ac_compile) 2>&5
9854 echo "$as_me:9854: \$? = $ac_status" >&5
9855 (exit $ac_status); } &&
9856 { ac_try='test -s conftest.$ac_objext'
9857 { (eval echo "$as_me:9857: \"$ac_try\"") >&5
9860 echo "$as_me:9860: \$? = $ac_status" >&5
9861 (exit $ac_status); }; }; then
9864 echo "$as_me: failed program was:" >&5
9865 cat conftest.$ac_ext >&5
9867 rm -f conftest.$ac_objext conftest.$ac_ext
9868 cat >conftest.$ac_ext <<_ACEOF
9869 #line 9869 "configure"
9870 #include "confdefs.h"
9871 #define _LARGEFILE_SOURCE 1
9881 rm -f conftest.$ac_objext
9882 if { (eval echo "$as_me:9882: \"$ac_compile\"") >&5
9883 (eval $ac_compile) 2>&5
9885 echo "$as_me:9885: \$? = $ac_status" >&5
9886 (exit $ac_status); } &&
9887 { ac_try='test -s conftest.$ac_objext'
9888 { (eval echo "$as_me:9888: \"$ac_try\"") >&5
9891 echo "$as_me:9891: \$? = $ac_status" >&5
9892 (exit $ac_status); }; }; then
9893 ac_cv_sys_largefile_source=1; break
9895 echo "$as_me: failed program was:" >&5
9896 cat conftest.$ac_ext >&5
9898 rm -f conftest.$ac_objext conftest.$ac_ext
9902 echo "$as_me:9902: result: $ac_cv_sys_largefile_source" >&5
9903 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9904 if test "$ac_cv_sys_largefile_source" != no; then
9906 cat >>confdefs.h <<EOF
9907 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9913 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9914 # in glibc 2.1.3, but that breaks too many other things.
9915 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9916 echo "$as_me:9916: checking for fseeko" >&5
9917 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
9918 if test "${ac_cv_func_fseeko+set}" = set; then
9919 echo $ECHO_N "(cached) $ECHO_C" >&6
9921 cat >conftest.$ac_ext <<_ACEOF
9922 #line 9922 "configure"
9923 #include "confdefs.h"
9928 return fseeko && fseeko (stdin, 0, 0);
9933 rm -f conftest.$ac_objext conftest$ac_exeext
9934 if { (eval echo "$as_me:9934: \"$ac_link\"") >&5
9935 (eval $ac_link) 2>&5
9937 echo "$as_me:9937: \$? = $ac_status" >&5
9938 (exit $ac_status); } &&
9939 { ac_try='test -s conftest$ac_exeext'
9940 { (eval echo "$as_me:9940: \"$ac_try\"") >&5
9943 echo "$as_me:9943: \$? = $ac_status" >&5
9944 (exit $ac_status); }; }; then
9945 ac_cv_func_fseeko=yes
9947 echo "$as_me: failed program was:" >&5
9948 cat conftest.$ac_ext >&5
9949 ac_cv_func_fseeko=no
9951 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9953 echo "$as_me:9953: result: $ac_cv_func_fseeko" >&5
9954 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
9955 if test $ac_cv_func_fseeko = yes; then
9957 cat >>confdefs.h <<\EOF
9958 #define HAVE_FSEEKO 1
9963 # Normally we would collect these definitions in the config.h,
9964 # but (like _XOPEN_SOURCE), some environments rely on having these
9965 # defined before any of the system headers are included. Another
9966 # case comes up with C++, e.g., on AIX the compiler compiles the
9967 # header files by themselves before looking at the body files it is
9968 # told to compile. For ncurses, those header files do not include
9970 test "$ac_cv_sys_large_files" != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
9971 test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE "
9972 test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits "
9974 echo "$as_me:9974: checking whether to use struct dirent64" >&5
9975 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
9976 if test "${cf_cv_struct_dirent64+set}" = set; then
9977 echo $ECHO_N "(cached) $ECHO_C" >&6
9980 cat >conftest.$ac_ext <<_ACEOF
9981 #line 9981 "configure"
9982 #include "confdefs.h"
9984 #include <sys/types.h>
9991 /* if transitional largefile support is setup, this is true */
9992 extern struct dirent64 * readdir(DIR *);
9993 struct dirent64 *x = readdir((DIR *)0);
9994 struct dirent *y = readdir((DIR *)0);
10001 rm -f conftest.$ac_objext
10002 if { (eval echo "$as_me:10002: \"$ac_compile\"") >&5
10003 (eval $ac_compile) 2>&5
10005 echo "$as_me:10005: \$? = $ac_status" >&5
10006 (exit $ac_status); } &&
10007 { ac_try='test -s conftest.$ac_objext'
10008 { (eval echo "$as_me:10008: \"$ac_try\"") >&5
10009 (eval $ac_try) 2>&5
10011 echo "$as_me:10011: \$? = $ac_status" >&5
10012 (exit $ac_status); }; }; then
10013 cf_cv_struct_dirent64=yes
10015 echo "$as_me: failed program was:" >&5
10016 cat conftest.$ac_ext >&5
10017 cf_cv_struct_dirent64=no
10019 rm -f conftest.$ac_objext conftest.$ac_ext
10022 echo "$as_me:10022: result: $cf_cv_struct_dirent64" >&5
10023 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
10024 test "$cf_cv_struct_dirent64" = yes && cat >>confdefs.h <<\EOF
10025 #define HAVE_STRUCT_DIRENT64 1
10030 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
10031 echo "$as_me:10031: checking if you want tparm not to use X/Open fixed-parameter list" >&5
10032 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
10034 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
10035 if test "${enable_tparm_varargs+set}" = set; then
10036 enableval="$enable_tparm_varargs"
10037 with_tparm_varargs=$enableval
10039 with_tparm_varargs=yes
10041 echo "$as_me:10041: result: $with_tparm_varargs" >&5
10042 echo "${ECHO_T}$with_tparm_varargs" >&6
10043 NCURSES_TPARM_VARARGS=0
10044 test "$with_tparm_varargs" = yes && NCURSES_TPARM_VARARGS=1
10046 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
10047 if test "$with_ticlib" != no ; then
10048 echo "$as_me:10048: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
10049 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
10051 # Check whether --enable-tic-depends or --disable-tic-depends was given.
10052 if test "${enable_tic_depends+set}" = set; then
10053 enableval="$enable_tic_depends"
10054 with_tic_depends=$enableval
10056 with_tic_depends=yes
10058 echo "$as_me:10058: result: $with_tic_depends" >&5
10059 echo "${ECHO_T}$with_tic_depends" >&6
10061 with_tic_depends=no
10064 ### use option --with-bool to override bool's type
10065 echo "$as_me:10065: checking for type of bool" >&5
10066 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
10068 # Check whether --with-bool or --without-bool was given.
10069 if test "${with_bool+set}" = set; then
10070 withval="$with_bool"
10071 NCURSES_BOOL="$withval"
10075 echo "$as_me:10075: result: $NCURSES_BOOL" >&5
10076 echo "${ECHO_T}$NCURSES_BOOL" >&6
10078 echo "$as_me:10078: checking for alternate terminal capabilities file" >&5
10079 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
10081 # Check whether --with-caps or --without-caps was given.
10082 if test "${with_caps+set}" = set; then
10083 withval="$with_caps"
10084 TERMINFO_CAPS=Caps.$withval
10088 test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
10089 echo "$as_me:10089: result: $TERMINFO_CAPS" >&5
10090 echo "${ECHO_T}$TERMINFO_CAPS" >&6
10092 ### use option --with-chtype to override chtype's type
10093 echo "$as_me:10093: checking for type of chtype" >&5
10094 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
10096 # Check whether --with-chtype or --without-chtype was given.
10097 if test "${with_chtype+set}" = set; then
10098 withval="$with_chtype"
10099 NCURSES_CHTYPE="$withval"
10101 NCURSES_CHTYPE=auto
10103 echo "$as_me:10103: result: $NCURSES_CHTYPE" >&5
10104 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
10106 ### use option --with-ospeed to override ospeed's type
10107 echo "$as_me:10107: checking for type of ospeed" >&5
10108 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
10110 # Check whether --with-ospeed or --without-ospeed was given.
10111 if test "${with_ospeed+set}" = set; then
10112 withval="$with_ospeed"
10113 NCURSES_OSPEED="$withval"
10115 NCURSES_OSPEED=short
10117 echo "$as_me:10117: result: $NCURSES_OSPEED" >&5
10118 echo "${ECHO_T}$NCURSES_OSPEED" >&6
10120 ### use option --with-mmask-t to override mmask_t's type
10121 echo "$as_me:10121: checking for type of mmask_t" >&5
10122 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
10124 # Check whether --with-mmask-t or --without-mmask-t was given.
10125 if test "${with_mmask_t+set}" = set; then
10126 withval="$with_mmask_t"
10127 NCURSES_MMASK_T="$withval"
10129 NCURSES_MMASK_T=auto
10131 echo "$as_me:10131: result: $NCURSES_MMASK_T" >&5
10132 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
10134 ### use option --with-ccharw-max to override CCHARW_MAX size
10135 echo "$as_me:10135: checking for size CCHARW_MAX" >&5
10136 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
10138 # Check whether --with-ccharw-max or --without-ccharw-max was given.
10139 if test "${with_ccharw_max+set}" = set; then
10140 withval="$with_ccharw_max"
10141 NCURSES_CCHARW_MAX="$withval"
10143 NCURSES_CCHARW_MAX=5
10145 echo "$as_me:10145: result: $NCURSES_CCHARW_MAX" >&5
10146 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
10148 ### use option --with-tparm-arg to override tparm's argument type
10149 echo "$as_me:10149: checking for type of tparm args" >&5
10150 echo $ECHO_N "checking for type of tparm args... $ECHO_C" >&6
10152 # Check whether --with-tparm-arg or --without-tparm-arg was given.
10153 if test "${with_tparm_arg+set}" = set; then
10154 withval="$with_tparm_arg"
10155 NCURSES_TPARM_ARG="$withval"
10157 NCURSES_TPARM_ARG=long
10159 echo "$as_me:10159: result: $NCURSES_TPARM_ARG" >&5
10160 echo "${ECHO_T}$NCURSES_TPARM_ARG" >&6
10162 ### Enable compiling-in rcs id's
10163 echo "$as_me:10163: checking if RCS identifiers should be compiled-in" >&5
10164 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
10166 # Check whether --with-rcs-ids or --without-rcs-ids was given.
10167 if test "${with_rcs_ids+set}" = set; then
10168 withval="$with_rcs_ids"
10169 with_rcs_ids=$withval
10173 echo "$as_me:10173: result: $with_rcs_ids" >&5
10174 echo "${ECHO_T}$with_rcs_ids" >&6
10175 test "$with_rcs_ids" = yes && cat >>confdefs.h <<\EOF
10176 #define USE_RCS_IDS 1
10179 ###############################################################################
10181 echo "$as_me:10181: checking format of man-pages" >&5
10182 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
10184 # Check whether --with-manpage-format or --without-manpage-format was given.
10185 if test "${with_manpage_format+set}" = set; then
10186 withval="$with_manpage_format"
10187 MANPAGE_FORMAT=$withval
10189 MANPAGE_FORMAT=unknown
10192 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
10193 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
10197 case $MANPAGE_FORMAT in
10199 if test -z "$MANPATH" ; then
10200 MANPATH="/usr/man:/usr/share/man"
10203 # look for the 'date' man-page (it's most likely to be installed!)
10209 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
10210 for cf_dir in $MANPATH; do
10211 test -z "$cf_dir" && cf_dir=/usr/man
10212 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
10214 cf_test=`echo $cf_name | sed -e 's/*//'`
10215 if test "x$cf_test" = "x$cf_name" ; then
10218 *.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
10219 *.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
10220 *.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
10221 *) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
10235 # if we found a match in either man* or cat*, stop looking
10236 if test -n "$MANPAGE_FORMAT" ; then
10238 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
10239 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
10245 test $cf_found=yes && break
10248 # only check the first directory in $MANPATH where we find manpages
10249 if test -n "$MANPAGE_FORMAT" ; then
10253 # if we did not find the example, just assume it is normal
10254 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
10258 for cf_option in $MANPAGE_FORMAT; do
10259 case $cf_option in #(vi
10260 gzip|compress|BSDI|normal|formatted|catonly)
10263 cf_unknown="$cf_unknown $cf_option"
10270 echo "$as_me:10270: result: $MANPAGE_FORMAT" >&5
10271 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
10272 if test -n "$cf_unknown" ; then
10273 { echo "$as_me:10273: WARNING: Unexpected manpage-format $cf_unknown" >&5
10274 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
10277 echo "$as_me:10277: checking for manpage renaming" >&5
10278 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
10280 # Check whether --with-manpage-renames or --without-manpage-renames was given.
10281 if test "${with_manpage_renames+set}" = set; then
10282 withval="$with_manpage_renames"
10283 MANPAGE_RENAMES=$withval
10285 MANPAGE_RENAMES=yes
10288 case ".$MANPAGE_RENAMES" in #(vi
10292 # Debian 'man' program?
10293 if test -f /etc/debian_version ; then
10294 MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
10301 if test "$MANPAGE_RENAMES" != no ; then
10302 if test -f $srcdir/man/$MANPAGE_RENAMES ; then
10303 MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
10304 elif test ! -f $MANPAGE_RENAMES ; then
10305 { { echo "$as_me:10305: error: not a filename: $MANPAGE_RENAMES" >&5
10306 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
10307 { (exit 1); exit 1; }; }
10310 test ! -d man && mkdir man
10312 # Construct a sed-script to perform renaming within man-pages
10313 if test -n "$MANPAGE_RENAMES" ; then
10314 test ! -d man && mkdir man
10315 sh $srcdir/man/make_sed.sh $MANPAGE_RENAMES >./edit_man.sed
10319 echo "$as_me:10319: result: $MANPAGE_RENAMES" >&5
10320 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
10322 echo "$as_me:10322: checking if manpage aliases will be installed" >&5
10323 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
10325 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
10326 if test "${with_manpage_aliases+set}" = set; then
10327 withval="$with_manpage_aliases"
10328 MANPAGE_ALIASES=$withval
10330 MANPAGE_ALIASES=yes
10333 echo "$as_me:10333: result: $MANPAGE_ALIASES" >&5
10334 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
10336 case "x$LN_S" in #(vi
10338 cf_use_symlinks=yes
10345 MANPAGE_SYMLINKS=no
10346 if test "$MANPAGE_ALIASES" = yes ; then
10347 echo "$as_me:10347: checking if manpage symlinks should be used" >&5
10348 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
10350 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
10351 if test "${with_manpage_symlinks+set}" = set; then
10352 withval="$with_manpage_symlinks"
10353 MANPAGE_SYMLINKS=$withval
10355 MANPAGE_SYMLINKS=$cf_use_symlinks
10358 if test "$$cf_use_symlinks" = no; then
10359 if test "$MANPAGE_SYMLINKS" = yes ; then
10360 { echo "$as_me:10360: WARNING: cannot make symlinks" >&5
10361 echo "$as_me: WARNING: cannot make symlinks" >&2;}
10362 MANPAGE_SYMLINKS=no
10366 echo "$as_me:10366: result: $MANPAGE_SYMLINKS" >&5
10367 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
10370 echo "$as_me:10370: checking for manpage tbl" >&5
10371 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
10373 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
10374 if test "${with_manpage_tbl+set}" = set; then
10375 withval="$with_manpage_tbl"
10376 MANPAGE_TBL=$withval
10381 echo "$as_me:10381: result: $MANPAGE_TBL" >&5
10382 echo "${ECHO_T}$MANPAGE_TBL" >&6
10384 if test "$prefix" = "NONE" ; then
10385 cf_prefix="$ac_default_prefix"
10387 cf_prefix="$prefix"
10390 case "$MANPAGE_FORMAT" in # (vi
10405 test ! -d man && mkdir man
10409 case "$MANPAGE_FORMAT" in #(vi
10412 cf_compress=compress
10420 cf_edit_man=./edit_man.sh
10421 cf_man_alias=`pwd`/man_alias.sed
10423 cat >$cf_edit_man <<CF_EOF
10425 # this script is generated by the configure-script CF_MAN_PAGES macro.
10427 prefix="$cf_prefix"
10430 NCURSES_MAJOR="$NCURSES_MAJOR"
10431 NCURSES_MINOR="$NCURSES_MINOR"
10432 NCURSES_PATCH="$NCURSES_PATCH"
10434 NCURSES_OSPEED="$NCURSES_OSPEED"
10435 TERMINFO="$TERMINFO"
10438 INSTALL_DATA="$INSTALL_DATA"
10440 transform="$program_transform_name"
10442 TMP=\${TMPDIR:=/tmp}/man\$\$
10443 trap "rm -f \$TMP" 0 1 2 5 15
10455 top_srcdir=\$srcdir/..
10458 if test "\$form" = normal ; then
10459 if test "$cf_format" = yes ; then
10460 if test "$cf_inboth" = no ; then
10461 sh \$0 format \$verb \$mandir \$srcdir \$*
10465 cf_subdir=\$mandir/man
10466 cf_tables=$MANPAGE_TBL
10468 cf_subdir=\$mandir/cat
10472 # process the list of source-files
10475 *.orig|*.rej) ;; #(vi
10477 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
10478 if test \$verb = installing ; then
10479 if test ! -d \$cf_subdir\${section} ; then
10480 mkdir -p \$cf_subdir\$section
10484 # replace variables in man page
10485 if test ! -f $cf_man_alias ; then
10486 cat >>$cf_man_alias <<-CF_EOF2
10487 s,@DATADIR@,\$datadir,g
10488 s,@TERMINFO@,\$TERMINFO,g
10489 s,@NCURSES_MAJOR@,\$NCURSES_MAJOR,g
10490 s,@NCURSES_MINOR@,\$NCURSES_MINOR,g
10491 s,@NCURSES_PATCH@,\$NCURSES_PATCH,g
10492 s,@NCURSES_OSPEED@,\$NCURSES_OSPEED,g
10495 for cf_name in captoinfo clear infocmp infotocap tabs tic toe tput tset
10497 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
10498 cf_name=`echo $cf_name|sed "$program_transform_name"`
10499 cat >>$cf_edit_man <<-CF_EOF
10500 s,@$cf_NAME@,$cf_name,g
10504 cat >>$cf_edit_man <<CF_EOF
10506 echo "...made $cf_man_alias"
10510 cf_source=\`basename \$i\`
10511 inalias=\$cf_source
10512 test ! -f \$inalias && inalias="\$srcdir/\$inalias"
10513 if test ! -f \$inalias ; then
10514 echo .. skipped \$cf_source
10519 if test "$MANPAGE_ALIASES" != no ; then
10520 cat >>$cf_edit_man <<CF_EOF
10522 test $with_curses_h = yes && nCurses=ncurses.3x
10523 aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u; test \$inalias = \$nCurses && echo curses\`
10527 if test "$MANPAGE_RENAMES" = no ; then
10528 cat >>$cf_edit_man <<CF_EOF
10529 # perform program transformations for section 1 man pages
10530 if test \$section = 1 ; then
10531 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
10533 cf_target=\$cf_subdir\${section}/\$cf_source
10537 cat >>$cf_edit_man <<CF_EOF
10538 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
10539 if test -z "\$cf_target" ; then
10540 echo '? missing rename for '\$cf_source
10541 cf_target="\$cf_source"
10543 cf_target="\$cf_subdir\${section}/\${cf_target}"
10548 cat >>$cf_edit_man <<CF_EOF
10549 sed -f $cf_man_alias \\
10552 if test -f $MANPAGE_RENAMES ; then
10553 cat >>$cf_edit_man <<CF_EOF
10554 < \$i | sed -f `pwd`/edit_man.sed >\$TMP
10557 cat >>$cf_edit_man <<CF_EOF
10562 cat >>$cf_edit_man <<CF_EOF
10563 if test \$cf_tables = yes ; then
10564 tbl \$TMP >\$TMP.out
10569 if test $with_overwrite != yes ; then
10570 cat >>$cf_edit_man <<CF_EOF
10571 sed -e "/\#[ ]*include/s,<curses.h,<ncurses$LIB_SUFFIX/curses.h," < \$TMP >\$TMP.out
10576 if test $with_curses_h != yes ; then
10577 cat >>$cf_edit_man <<CF_EOF
10578 sed -e "/\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
10583 cat >>$cf_edit_man <<CF_EOF
10584 if test \$form = format ; then
10585 nroff -man \$TMP >\$TMP.out
10590 if test -n "$cf_compress" ; then
10591 cat >>$cf_edit_man <<CF_EOF
10592 if test \$verb = installing ; then
10593 if ( $cf_compress -f \$TMP )
10595 mv \$TMP.$cf_so_strip \$TMP
10598 cf_target="\$cf_target.$cf_so_strip"
10602 case "$MANPAGE_FORMAT" in #(vi
10604 cat >>$cf_edit_man <<CF_EOF
10605 if test \$form = format ; then
10606 # BSDI installs only .0 suffixes in the cat directories
10607 cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
10613 cat >>$cf_edit_man <<CF_EOF
10614 suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\`
10615 if test \$verb = installing ; then
10616 echo \$verb \$cf_target
10617 \$INSTALL_DATA \$TMP \$cf_target
10618 test -d \$cf_subdir\${section} &&
10619 test -n "\$aliases" && (
10620 cd \$cf_subdir\${section} && (
10621 cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
10622 test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
10623 cf_target=\`basename \$cf_target\`
10624 for cf_alias in \$aliases
10626 if test \$section = 1 ; then
10627 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
10630 if test "$MANPAGE_SYMLINKS" = yes ; then
10631 if test -f \$cf_alias\${suffix} ; then
10632 if ( cmp -s \$cf_target \$cf_alias\${suffix} )
10637 echo .. \$verb alias \$cf_alias\${suffix}
10639 case "x$LN_S" in #(vi
10641 cat >>$cf_edit_man <<CF_EOF
10642 $LN_S \$cf_target \$cf_alias\${suffix}
10646 cat >>$cf_edit_man <<CF_EOF
10647 rm -f \$cf_alias\${suffix}
10648 $LN_S \$cf_target \$cf_alias\${suffix}
10652 cat >>$cf_edit_man <<CF_EOF
10653 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
10654 echo ".so \$cf_source" >\$TMP
10656 if test -n "$cf_compress" ; then
10657 cat >>$cf_edit_man <<CF_EOF
10658 if test -n "$cf_so_strip" ; then
10659 $cf_compress -f \$TMP
10660 mv \$TMP.$cf_so_strip \$TMP
10664 cat >>$cf_edit_man <<CF_EOF
10665 echo .. \$verb alias \$cf_alias\${suffix}
10666 rm -f \$cf_alias\${suffix}
10667 \$INSTALL_DATA \$TMP \$cf_alias\${suffix}
10672 elif test \$verb = removing ; then
10673 test -f \$cf_target && (
10674 echo \$verb \$cf_target
10677 test -d \$cf_subdir\${section} &&
10678 test -n "\$aliases" && (
10679 cd \$cf_subdir\${section} && (
10680 for cf_alias in \$aliases
10682 if test \$section = 1 ; then
10683 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
10686 echo .. \$verb alias \$cf_alias\${suffix}
10687 rm -f \$cf_alias\${suffix}
10699 if test $cf_inboth = yes ; then
10700 if test \$form != format ; then
10701 sh \$0 format \$verb \$mandir \$srcdir \$*
10707 chmod 755 $cf_edit_man
10709 ###############################################################################
10711 ### Note that some functions (such as const) are normally disabled anyway.
10712 echo "$as_me:10712: checking if you want to build with function extensions" >&5
10713 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
10715 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
10716 if test "${enable_ext_funcs+set}" = set; then
10717 enableval="$enable_ext_funcs"
10718 with_ext_funcs=$enableval
10722 echo "$as_me:10722: result: $with_ext_funcs" >&5
10723 echo "${ECHO_T}$with_ext_funcs" >&6
10724 if test "$with_ext_funcs" = yes ; then
10725 NCURSES_EXT_FUNCS=1
10726 cat >>confdefs.h <<\EOF
10727 #define HAVE_ASSUME_DEFAULT_COLORS 1
10730 cat >>confdefs.h <<\EOF
10731 #define HAVE_CURSES_VERSION 1
10734 cat >>confdefs.h <<\EOF
10735 #define HAVE_HAS_KEY 1
10738 cat >>confdefs.h <<\EOF
10739 #define HAVE_RESIZETERM 1
10742 cat >>confdefs.h <<\EOF
10743 #define HAVE_RESIZE_TERM 1
10746 cat >>confdefs.h <<\EOF
10747 #define HAVE_TERM_ENTRY_H 1
10750 cat >>confdefs.h <<\EOF
10751 #define HAVE_USE_DEFAULT_COLORS 1
10754 cat >>confdefs.h <<\EOF
10755 #define HAVE_USE_SCREEN 1
10758 cat >>confdefs.h <<\EOF
10759 #define HAVE_USE_WINDOW 1
10762 cat >>confdefs.h <<\EOF
10763 #define HAVE_WRESIZE 1
10766 cat >>confdefs.h <<\EOF
10767 #define NCURSES_EXT_FUNCS 1
10770 GENERATED_EXT_FUNCS=generated
10772 NCURSES_EXT_FUNCS=0
10773 GENERATED_EXT_FUNCS=
10776 echo "$as_me:10776: checking if you want to build with experimental SCREEN extensions" >&5
10777 echo $ECHO_N "checking if you want to build with experimental SCREEN extensions... $ECHO_C" >&6
10779 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
10780 if test "${enable_sp_funcs+set}" = set; then
10781 enableval="$enable_sp_funcs"
10782 with_sp_funcs=$enableval
10786 echo "$as_me:10786: result: $with_sp_funcs" >&5
10787 echo "${ECHO_T}$with_sp_funcs" >&6
10788 if test "$with_sp_funcs" = yes ; then
10790 cat >>confdefs.h <<\EOF
10791 #define NCURSES_SP_FUNCS 1
10794 GENERATED_SP_FUNCS=generated
10797 GENERATED_SP_FUNCS=
10800 echo "$as_me:10800: checking if you want to build with experimental terminal-driver" >&5
10801 echo $ECHO_N "checking if you want to build with experimental terminal-driver... $ECHO_C" >&6
10803 # Check whether --enable-term-driver or --disable-term-driver was given.
10804 if test "${enable_term_driver+set}" = set; then
10805 enableval="$enable_term_driver"
10806 with_term_driver=$enableval
10808 with_term_driver=no
10810 echo "$as_me:10810: result: $with_term_driver" >&5
10811 echo "${ECHO_T}$with_term_driver" >&6
10812 if test "$with_term_driver" = yes ; then
10813 cat >>confdefs.h <<\EOF
10814 #define USE_TERM_DRIVER 1
10817 if test "$with_sp_funcs" != yes ; then
10818 { { echo "$as_me:10818: error: The term-driver option relies upon sp-funcs" >&5
10819 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
10820 { (exit 1); exit 1; }; }
10824 ### use option --enable-const to turn on use of const beyond that in XSI.
10825 echo "$as_me:10825: checking for extended use of const keyword" >&5
10826 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
10828 # Check whether --enable-const or --disable-const was given.
10829 if test "${enable_const+set}" = set; then
10830 enableval="$enable_const"
10831 with_ext_const=$enableval
10835 echo "$as_me:10835: result: $with_ext_const" >&5
10836 echo "${ECHO_T}$with_ext_const" >&6
10837 NCURSES_CONST='/*nothing*/'
10838 if test "$with_ext_const" = yes ; then
10839 NCURSES_CONST=const
10842 ### use option --enable-ext-colors to turn on use of colors beyond 16.
10843 echo "$as_me:10843: checking if you want to use extended colors" >&5
10844 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
10846 # Check whether --enable-ext-colors or --disable-ext-colors was given.
10847 if test "${enable_ext_colors+set}" = set; then
10848 enableval="$enable_ext_colors"
10849 with_ext_colors=$enableval
10853 echo "$as_me:10853: result: $with_ext_colors" >&5
10854 echo "${ECHO_T}$with_ext_colors" >&6
10855 NCURSES_EXT_COLORS=0
10856 if test "$with_ext_colors" = yes ; then
10857 if test "$with_widec" != yes ; then
10858 { { echo "$as_me:10858: error: This option applies only to wide-character library" >&5
10859 echo "$as_me: error: This option applies only to wide-character library" >&2;}
10860 { (exit 1); exit 1; }; }
10862 # cannot be ABI 5 since it changes sizeof(cchar_t)
10864 if test "${with_abi_version+set}" != set; then
10865 case $cf_cv_rel_version in
10867 cf_cv_rel_version=6.0
10868 cf_cv_abi_version=6
10869 { echo "$as_me:10869: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
10870 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
10876 NCURSES_EXT_COLORS=1
10877 cat >>confdefs.h <<\EOF
10878 #define NCURSES_EXT_COLORS 1
10883 ### use option --enable-ext-mouse to modify coding to support 5-button mice
10884 echo "$as_me:10884: checking if you want to use extended mouse encoding" >&5
10885 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
10887 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
10888 if test "${enable_ext_mouse+set}" = set; then
10889 enableval="$enable_ext_mouse"
10890 with_ext_mouse=$enableval
10894 echo "$as_me:10894: result: $with_ext_mouse" >&5
10895 echo "${ECHO_T}$with_ext_mouse" >&6
10896 NCURSES_MOUSE_VERSION=1
10897 if test "$with_ext_mouse" = yes ; then
10898 NCURSES_MOUSE_VERSION=2
10900 if test "${with_abi_version+set}" != set; then
10901 case $cf_cv_rel_version in
10903 cf_cv_rel_version=6.0
10904 cf_cv_abi_version=6
10905 { echo "$as_me:10905: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
10906 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
10913 echo "$as_me:10913: checking if you want \$NCURSES_NO_PADDING code" >&5
10914 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
10916 # Check whether --enable-no-padding or --disable-no-padding was given.
10917 if test "${enable_no_padding+set}" = set; then
10918 enableval="$enable_no_padding"
10919 with_no_padding=$enableval
10921 with_no_padding=$with_ext_funcs
10923 echo "$as_me:10923: result: $with_no_padding" >&5
10924 echo "${ECHO_T}$with_no_padding" >&6
10925 test "$with_no_padding" = yes && cat >>confdefs.h <<\EOF
10926 #define NCURSES_NO_PADDING 1
10929 echo "$as_me:10929: checking for ANSI C header files" >&5
10930 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10931 if test "${ac_cv_header_stdc+set}" = set; then
10932 echo $ECHO_N "(cached) $ECHO_C" >&6
10934 cat >conftest.$ac_ext <<_ACEOF
10935 #line 10935 "configure"
10936 #include "confdefs.h"
10937 #include <stdlib.h>
10938 #include <stdarg.h>
10939 #include <string.h>
10943 if { (eval echo "$as_me:10943: \"$ac_cpp conftest.$ac_ext\"") >&5
10944 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10946 egrep -v '^ *\+' conftest.er1 >conftest.err
10948 cat conftest.err >&5
10949 echo "$as_me:10949: \$? = $ac_status" >&5
10950 (exit $ac_status); } >/dev/null; then
10951 if test -s conftest.err; then
10952 ac_cpp_err=$ac_c_preproc_warn_flag
10959 if test -z "$ac_cpp_err"; then
10960 ac_cv_header_stdc=yes
10962 echo "$as_me: failed program was:" >&5
10963 cat conftest.$ac_ext >&5
10964 ac_cv_header_stdc=no
10966 rm -f conftest.err conftest.$ac_ext
10968 if test $ac_cv_header_stdc = yes; then
10969 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10970 cat >conftest.$ac_ext <<_ACEOF
10971 #line 10971 "configure"
10972 #include "confdefs.h"
10973 #include <string.h>
10976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10977 egrep "memchr" >/dev/null 2>&1; then
10980 ac_cv_header_stdc=no
10986 if test $ac_cv_header_stdc = yes; then
10987 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10988 cat >conftest.$ac_ext <<_ACEOF
10989 #line 10989 "configure"
10990 #include "confdefs.h"
10991 #include <stdlib.h>
10994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10995 egrep "free" >/dev/null 2>&1; then
10998 ac_cv_header_stdc=no
11004 if test $ac_cv_header_stdc = yes; then
11005 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11006 if test "$cross_compiling" = yes; then
11009 cat >conftest.$ac_ext <<_ACEOF
11010 #line 11010 "configure"
11011 #include "confdefs.h"
11013 #if ((' ' & 0x0FF) == 0x020)
11014 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11015 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11017 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
11018 || ('j' <= (c) && (c) <= 'r') \
11019 || ('s' <= (c) && (c) <= 'z'))
11020 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11023 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11028 for (i = 0; i < 256; i++)
11029 if (XOR (islower (i), ISLOWER (i))
11030 || toupper (i) != TOUPPER (i))
11031 $ac_main_return(2);
11032 $ac_main_return (0);
11035 rm -f conftest$ac_exeext
11036 if { (eval echo "$as_me:11036: \"$ac_link\"") >&5
11037 (eval $ac_link) 2>&5
11039 echo "$as_me:11039: \$? = $ac_status" >&5
11040 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11041 { (eval echo "$as_me:11041: \"$ac_try\"") >&5
11042 (eval $ac_try) 2>&5
11044 echo "$as_me:11044: \$? = $ac_status" >&5
11045 (exit $ac_status); }; }; then
11048 echo "$as_me: program exited with status $ac_status" >&5
11049 echo "$as_me: failed program was:" >&5
11050 cat conftest.$ac_ext >&5
11051 ac_cv_header_stdc=no
11053 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11057 echo "$as_me:11057: result: $ac_cv_header_stdc" >&5
11058 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11059 if test $ac_cv_header_stdc = yes; then
11061 cat >>confdefs.h <<\EOF
11062 #define STDC_HEADERS 1
11067 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
11069 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
11070 inttypes.h stdint.h unistd.h
11072 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11073 echo "$as_me:11073: checking for $ac_header" >&5
11074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11076 echo $ECHO_N "(cached) $ECHO_C" >&6
11078 cat >conftest.$ac_ext <<_ACEOF
11079 #line 11079 "configure"
11080 #include "confdefs.h"
11081 $ac_includes_default
11082 #include <$ac_header>
11084 rm -f conftest.$ac_objext
11085 if { (eval echo "$as_me:11085: \"$ac_compile\"") >&5
11086 (eval $ac_compile) 2>&5
11088 echo "$as_me:11088: \$? = $ac_status" >&5
11089 (exit $ac_status); } &&
11090 { ac_try='test -s conftest.$ac_objext'
11091 { (eval echo "$as_me:11091: \"$ac_try\"") >&5
11092 (eval $ac_try) 2>&5
11094 echo "$as_me:11094: \$? = $ac_status" >&5
11095 (exit $ac_status); }; }; then
11096 eval "$as_ac_Header=yes"
11098 echo "$as_me: failed program was:" >&5
11099 cat conftest.$ac_ext >&5
11100 eval "$as_ac_Header=no"
11102 rm -f conftest.$ac_objext conftest.$ac_ext
11104 echo "$as_me:11104: result: `eval echo '${'$as_ac_Header'}'`" >&5
11105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11107 cat >>confdefs.h <<EOF
11108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11114 echo "$as_me:11114: checking for signed char" >&5
11115 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
11116 if test "${ac_cv_type_signed_char+set}" = set; then
11117 echo $ECHO_N "(cached) $ECHO_C" >&6
11119 cat >conftest.$ac_ext <<_ACEOF
11120 #line 11120 "configure"
11121 #include "confdefs.h"
11122 $ac_includes_default
11126 if ((signed char *) 0)
11128 if (sizeof (signed char))
11134 rm -f conftest.$ac_objext
11135 if { (eval echo "$as_me:11135: \"$ac_compile\"") >&5
11136 (eval $ac_compile) 2>&5
11138 echo "$as_me:11138: \$? = $ac_status" >&5
11139 (exit $ac_status); } &&
11140 { ac_try='test -s conftest.$ac_objext'
11141 { (eval echo "$as_me:11141: \"$ac_try\"") >&5
11142 (eval $ac_try) 2>&5
11144 echo "$as_me:11144: \$? = $ac_status" >&5
11145 (exit $ac_status); }; }; then
11146 ac_cv_type_signed_char=yes
11148 echo "$as_me: failed program was:" >&5
11149 cat conftest.$ac_ext >&5
11150 ac_cv_type_signed_char=no
11152 rm -f conftest.$ac_objext conftest.$ac_ext
11154 echo "$as_me:11154: result: $ac_cv_type_signed_char" >&5
11155 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
11157 echo "$as_me:11157: checking size of signed char" >&5
11158 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
11159 if test "${ac_cv_sizeof_signed_char+set}" = set; then
11160 echo $ECHO_N "(cached) $ECHO_C" >&6
11162 if test "$ac_cv_type_signed_char" = yes; then
11163 if test "$cross_compiling" = yes; then
11164 # Depending upon the size, compute the lo and hi bounds.
11165 cat >conftest.$ac_ext <<_ACEOF
11166 #line 11166 "configure"
11167 #include "confdefs.h"
11168 $ac_includes_default
11172 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
11177 rm -f conftest.$ac_objext
11178 if { (eval echo "$as_me:11178: \"$ac_compile\"") >&5
11179 (eval $ac_compile) 2>&5
11181 echo "$as_me:11181: \$? = $ac_status" >&5
11182 (exit $ac_status); } &&
11183 { ac_try='test -s conftest.$ac_objext'
11184 { (eval echo "$as_me:11184: \"$ac_try\"") >&5
11185 (eval $ac_try) 2>&5
11187 echo "$as_me:11187: \$? = $ac_status" >&5
11188 (exit $ac_status); }; }; then
11191 cat >conftest.$ac_ext <<_ACEOF
11192 #line 11192 "configure"
11193 #include "confdefs.h"
11194 $ac_includes_default
11198 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
11203 rm -f conftest.$ac_objext
11204 if { (eval echo "$as_me:11204: \"$ac_compile\"") >&5
11205 (eval $ac_compile) 2>&5
11207 echo "$as_me:11207: \$? = $ac_status" >&5
11208 (exit $ac_status); } &&
11209 { ac_try='test -s conftest.$ac_objext'
11210 { (eval echo "$as_me:11210: \"$ac_try\"") >&5
11211 (eval $ac_try) 2>&5
11213 echo "$as_me:11213: \$? = $ac_status" >&5
11214 (exit $ac_status); }; }; then
11215 ac_hi=$ac_mid; break
11217 echo "$as_me: failed program was:" >&5
11218 cat conftest.$ac_ext >&5
11219 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
11221 rm -f conftest.$ac_objext conftest.$ac_ext
11224 echo "$as_me: failed program was:" >&5
11225 cat conftest.$ac_ext >&5
11228 cat >conftest.$ac_ext <<_ACEOF
11229 #line 11229 "configure"
11230 #include "confdefs.h"
11231 $ac_includes_default
11235 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
11240 rm -f conftest.$ac_objext
11241 if { (eval echo "$as_me:11241: \"$ac_compile\"") >&5
11242 (eval $ac_compile) 2>&5
11244 echo "$as_me:11244: \$? = $ac_status" >&5
11245 (exit $ac_status); } &&
11246 { ac_try='test -s conftest.$ac_objext'
11247 { (eval echo "$as_me:11247: \"$ac_try\"") >&5
11248 (eval $ac_try) 2>&5
11250 echo "$as_me:11250: \$? = $ac_status" >&5
11251 (exit $ac_status); }; }; then
11252 ac_lo=$ac_mid; break
11254 echo "$as_me: failed program was:" >&5
11255 cat conftest.$ac_ext >&5
11256 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
11258 rm -f conftest.$ac_objext conftest.$ac_ext
11261 rm -f conftest.$ac_objext conftest.$ac_ext
11262 # Binary search between lo and hi bounds.
11263 while test "x$ac_lo" != "x$ac_hi"; do
11264 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11265 cat >conftest.$ac_ext <<_ACEOF
11266 #line 11266 "configure"
11267 #include "confdefs.h"
11268 $ac_includes_default
11272 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
11277 rm -f conftest.$ac_objext
11278 if { (eval echo "$as_me:11278: \"$ac_compile\"") >&5
11279 (eval $ac_compile) 2>&5
11281 echo "$as_me:11281: \$? = $ac_status" >&5
11282 (exit $ac_status); } &&
11283 { ac_try='test -s conftest.$ac_objext'
11284 { (eval echo "$as_me:11284: \"$ac_try\"") >&5
11285 (eval $ac_try) 2>&5
11287 echo "$as_me:11287: \$? = $ac_status" >&5
11288 (exit $ac_status); }; }; then
11291 echo "$as_me: failed program was:" >&5
11292 cat conftest.$ac_ext >&5
11293 ac_lo=`expr $ac_mid + 1`
11295 rm -f conftest.$ac_objext conftest.$ac_ext
11297 ac_cv_sizeof_signed_char=$ac_lo
11299 if test "$cross_compiling" = yes; then
11300 { { echo "$as_me:11300: error: cannot run test program while cross compiling" >&5
11301 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11302 { (exit 1); exit 1; }; }
11304 cat >conftest.$ac_ext <<_ACEOF
11305 #line 11305 "configure"
11306 #include "confdefs.h"
11307 $ac_includes_default
11311 FILE *f = fopen ("conftest.val", "w");
11313 $ac_main_return (1);
11314 fprintf (f, "%d", (sizeof (signed char)));
11320 rm -f conftest$ac_exeext
11321 if { (eval echo "$as_me:11321: \"$ac_link\"") >&5
11322 (eval $ac_link) 2>&5
11324 echo "$as_me:11324: \$? = $ac_status" >&5
11325 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11326 { (eval echo "$as_me:11326: \"$ac_try\"") >&5
11327 (eval $ac_try) 2>&5
11329 echo "$as_me:11329: \$? = $ac_status" >&5
11330 (exit $ac_status); }; }; then
11331 ac_cv_sizeof_signed_char=`cat conftest.val`
11333 echo "$as_me: program exited with status $ac_status" >&5
11334 echo "$as_me: failed program was:" >&5
11335 cat conftest.$ac_ext >&5
11337 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11342 ac_cv_sizeof_signed_char=0
11345 echo "$as_me:11345: result: $ac_cv_sizeof_signed_char" >&5
11346 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
11347 cat >>confdefs.h <<EOF
11348 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
11351 if test "$ac_cv_sizeof_signed_char" = 1 ; then
11352 NCURSES_SBOOL="signed char"
11354 NCURSES_SBOOL="char"
11356 echo "$as_me:11356: checking if you want to use signed Boolean array in term.h" >&5
11357 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
11359 # Check whether --enable-signed-char or --disable-signed-char was given.
11360 if test "${enable_signed_char+set}" = set; then
11361 enableval="$enable_signed_char"
11362 with_signed_char=$enableval
11364 with_signed_char=no
11366 echo "$as_me:11366: result: $with_signed_char" >&5
11367 echo "${ECHO_T}$with_signed_char" >&6
11368 test "$with_signed_char" != yes && NCURSES_SBOOL="char"
11370 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
11371 echo "$as_me:11371: checking if you want SIGWINCH handler" >&5
11372 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
11374 # Check whether --enable-sigwinch or --disable-sigwinch was given.
11375 if test "${enable_sigwinch+set}" = set; then
11376 enableval="$enable_sigwinch"
11377 with_sigwinch=$enableval
11379 with_sigwinch=$with_ext_funcs
11381 echo "$as_me:11381: result: $with_sigwinch" >&5
11382 echo "${ECHO_T}$with_sigwinch" >&6
11383 test "$with_sigwinch" = yes && cat >>confdefs.h <<\EOF
11384 #define USE_SIGWINCH 1
11387 ### use option --enable-tcap-names to allow user to define new capabilities
11388 echo "$as_me:11388: checking if you want user-definable terminal capabilities like termcap" >&5
11389 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
11391 # Check whether --enable-tcap-names or --disable-tcap-names was given.
11392 if test "${enable_tcap_names+set}" = set; then
11393 enableval="$enable_tcap_names"
11394 with_tcap_names=$enableval
11396 with_tcap_names=$with_ext_funcs
11398 echo "$as_me:11398: result: $with_tcap_names" >&5
11399 echo "${ECHO_T}$with_tcap_names" >&6
11401 test "$with_tcap_names" = yes && NCURSES_XNAMES=1
11403 ###############################################################################
11404 # These options are relatively safe to experiment with.
11406 echo "$as_me:11406: checking if you want all development code" >&5
11407 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
11409 # Check whether --with-develop or --without-develop was given.
11410 if test "${with_develop+set}" = set; then
11411 withval="$with_develop"
11412 with_develop=$withval
11416 echo "$as_me:11416: result: $with_develop" >&5
11417 echo "${ECHO_T}$with_develop" >&6
11419 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
11420 echo "$as_me:11420: checking if you want hard-tabs code" >&5
11421 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
11423 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
11424 if test "${enable_hard_tabs+set}" = set; then
11425 enableval="$enable_hard_tabs"
11428 enable_hard_tabs=$with_develop
11430 echo "$as_me:11430: result: $enable_hard_tabs" >&5
11431 echo "${ECHO_T}$enable_hard_tabs" >&6
11432 test "$enable_hard_tabs" = yes && cat >>confdefs.h <<\EOF
11433 #define USE_HARD_TABS 1
11436 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
11437 echo "$as_me:11437: checking if you want limited support for xmc" >&5
11438 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
11440 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
11441 if test "${enable_xmc_glitch+set}" = set; then
11442 enableval="$enable_xmc_glitch"
11445 enable_xmc_glitch=$with_develop
11447 echo "$as_me:11447: result: $enable_xmc_glitch" >&5
11448 echo "${ECHO_T}$enable_xmc_glitch" >&6
11449 test "$enable_xmc_glitch" = yes && cat >>confdefs.h <<\EOF
11450 #define USE_XMC_SUPPORT 1
11453 ###############################################################################
11454 # These are just experimental, probably should not be in a package:
11456 echo "$as_me:11456: checking if you do not want to assume colors are white-on-black" >&5
11457 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
11459 # Check whether --enable-assumed-color or --disable-assumed-color was given.
11460 if test "${enable_assumed_color+set}" = set; then
11461 enableval="$enable_assumed_color"
11462 with_assumed_color=$enableval
11464 with_assumed_color=yes
11466 echo "$as_me:11466: result: $with_assumed_color" >&5
11467 echo "${ECHO_T}$with_assumed_color" >&6
11468 test "$with_assumed_color" = yes && cat >>confdefs.h <<\EOF
11469 #define USE_ASSUMED_COLOR 1
11472 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
11473 echo "$as_me:11473: checking if you want hashmap scrolling-optimization code" >&5
11474 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
11476 # Check whether --enable-hashmap or --disable-hashmap was given.
11477 if test "${enable_hashmap+set}" = set; then
11478 enableval="$enable_hashmap"
11479 with_hashmap=$enableval
11483 echo "$as_me:11483: result: $with_hashmap" >&5
11484 echo "${ECHO_T}$with_hashmap" >&6
11485 test "$with_hashmap" = yes && cat >>confdefs.h <<\EOF
11486 #define USE_HASHMAP 1
11489 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
11490 echo "$as_me:11490: checking if you want colorfgbg code" >&5
11491 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
11493 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
11494 if test "${enable_colorfgbg+set}" = set; then
11495 enableval="$enable_colorfgbg"
11496 with_colorfgbg=$enableval
11500 echo "$as_me:11500: result: $with_colorfgbg" >&5
11501 echo "${ECHO_T}$with_colorfgbg" >&6
11502 test "$with_colorfgbg" = yes && cat >>confdefs.h <<\EOF
11503 #define USE_COLORFGBG 1
11506 ### use option --enable-interop to turn on use of bindings used for interop
11507 echo "$as_me:11507: checking if you want interop bindings" >&5
11508 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
11510 # Check whether --enable-interop or --disable-interop was given.
11511 if test "${enable_interop+set}" = set; then
11512 enableval="$enable_interop"
11513 with_exp_interop=$enableval
11515 with_exp_interop=no
11517 echo "$as_me:11517: result: $with_exp_interop" >&5
11518 echo "${ECHO_T}$with_exp_interop" >&6
11520 NCURSES_INTEROP_FUNCS=0
11521 test "$with_exp_interop" = yes && NCURSES_INTEROP_FUNCS=1
11523 # This is still experimental (20080329), but should ultimately be moved to
11524 # the script-block --with-normal, etc.
11526 echo "$as_me:11526: checking if you want to link with the pthread library" >&5
11527 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
11529 # Check whether --with-pthread or --without-pthread was given.
11530 if test "${with_pthread+set}" = set; then
11531 withval="$with_pthread"
11532 with_pthread=$withval
11536 echo "$as_me:11536: result: $with_pthread" >&5
11537 echo "${ECHO_T}$with_pthread" >&6
11539 if test "$with_pthread" != no ; then
11540 echo "$as_me:11540: checking for pthread.h" >&5
11541 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
11542 if test "${ac_cv_header_pthread_h+set}" = set; then
11543 echo $ECHO_N "(cached) $ECHO_C" >&6
11545 cat >conftest.$ac_ext <<_ACEOF
11546 #line 11546 "configure"
11547 #include "confdefs.h"
11548 #include <pthread.h>
11550 if { (eval echo "$as_me:11550: \"$ac_cpp conftest.$ac_ext\"") >&5
11551 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11553 egrep -v '^ *\+' conftest.er1 >conftest.err
11555 cat conftest.err >&5
11556 echo "$as_me:11556: \$? = $ac_status" >&5
11557 (exit $ac_status); } >/dev/null; then
11558 if test -s conftest.err; then
11559 ac_cpp_err=$ac_c_preproc_warn_flag
11566 if test -z "$ac_cpp_err"; then
11567 ac_cv_header_pthread_h=yes
11569 echo "$as_me: failed program was:" >&5
11570 cat conftest.$ac_ext >&5
11571 ac_cv_header_pthread_h=no
11573 rm -f conftest.err conftest.$ac_ext
11575 echo "$as_me:11575: result: $ac_cv_header_pthread_h" >&5
11576 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
11577 if test $ac_cv_header_pthread_h = yes; then
11579 cat >>confdefs.h <<\EOF
11580 #define HAVE_PTHREADS_H 1
11583 for cf_lib_pthread in pthread c_r
11585 echo "$as_me:11585: checking if we can link with the $cf_lib_pthread library" >&5
11586 echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
11587 cf_save_LIBS="$LIBS"
11588 LIBS="-l$cf_lib_pthread $LIBS"
11589 cat >conftest.$ac_ext <<_ACEOF
11590 #line 11590 "configure"
11591 #include "confdefs.h"
11593 #include <pthread.h>
11599 int rc = pthread_create(0,0,0,0);
11600 int r2 = pthread_mutexattr_settype(0, 0);
11606 rm -f conftest.$ac_objext conftest$ac_exeext
11607 if { (eval echo "$as_me:11607: \"$ac_link\"") >&5
11608 (eval $ac_link) 2>&5
11610 echo "$as_me:11610: \$? = $ac_status" >&5
11611 (exit $ac_status); } &&
11612 { ac_try='test -s conftest$ac_exeext'
11613 { (eval echo "$as_me:11613: \"$ac_try\"") >&5
11614 (eval $ac_try) 2>&5
11616 echo "$as_me:11616: \$? = $ac_status" >&5
11617 (exit $ac_status); }; }; then
11620 echo "$as_me: failed program was:" >&5
11621 cat conftest.$ac_ext >&5
11624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11625 LIBS="$cf_save_LIBS"
11626 echo "$as_me:11626: result: $with_pthread" >&5
11627 echo "${ECHO_T}$with_pthread" >&6
11628 test "$with_pthread" = yes && break
11631 if test "$with_pthread" = yes ; then
11632 LIBS="-l$cf_lib_pthread $LIBS"
11633 cat >>confdefs.h <<\EOF
11634 #define HAVE_LIBPTHREADS 1
11638 { { echo "$as_me:11638: error: Cannot link with pthread library" >&5
11639 echo "$as_me: error: Cannot link with pthread library" >&2;}
11640 { (exit 1); exit 1; }; }
11647 if test "x$with_pthread" != xno; then
11648 echo "$as_me:11648: checking for pthread_kill" >&5
11649 echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6
11650 if test "${ac_cv_func_pthread_kill+set}" = set; then
11651 echo $ECHO_N "(cached) $ECHO_C" >&6
11653 cat >conftest.$ac_ext <<_ACEOF
11654 #line 11654 "configure"
11655 #include "confdefs.h"
11656 /* System header to define __stub macros and hopefully few prototypes,
11657 which can conflict with char pthread_kill (); below. */
11658 #include <assert.h>
11659 /* Override any gcc2 internal prototype to avoid an error. */
11663 /* We use char because int might match the return type of a gcc2
11664 builtin and then its argument prototype would still apply. */
11665 char pthread_kill ();
11671 /* The GNU C library defines this for functions which it implements
11672 to always fail with ENOSYS. Some functions are actually named
11673 something starting with __ and the normal name is an alias. */
11674 #if defined (__stub_pthread_kill) || defined (__stub___pthread_kill)
11677 f = pthread_kill; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
11684 rm -f conftest.$ac_objext conftest$ac_exeext
11685 if { (eval echo "$as_me:11685: \"$ac_link\"") >&5
11686 (eval $ac_link) 2>&5
11688 echo "$as_me:11688: \$? = $ac_status" >&5
11689 (exit $ac_status); } &&
11690 { ac_try='test -s conftest$ac_exeext'
11691 { (eval echo "$as_me:11691: \"$ac_try\"") >&5
11692 (eval $ac_try) 2>&5
11694 echo "$as_me:11694: \$? = $ac_status" >&5
11695 (exit $ac_status); }; }; then
11696 ac_cv_func_pthread_kill=yes
11698 echo "$as_me: failed program was:" >&5
11699 cat conftest.$ac_ext >&5
11700 ac_cv_func_pthread_kill=no
11702 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11704 echo "$as_me:11704: result: $ac_cv_func_pthread_kill" >&5
11705 echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6
11706 if test $ac_cv_func_pthread_kill = yes; then
11708 echo "$as_me:11708: checking if you want to allow EINTR in wgetch with pthreads" >&5
11709 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
11711 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
11712 if test "${enable_pthreads_eintr+set}" = set; then
11713 enableval="$enable_pthreads_eintr"
11714 use_pthreads_eintr=$enableval
11716 use_pthreads_eintr=no
11718 echo "$as_me:11718: result: $use_pthreads_eintr" >&5
11719 echo "${ECHO_T}$use_pthreads_eintr" >&6
11720 if test $use_pthreads_eintr = yes ; then
11721 cat >>confdefs.h <<\EOF
11722 #define USE_PTHREADS_EINTR 1
11728 echo "$as_me:11728: checking if you want to use weak-symbols for pthreads" >&5
11729 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
11731 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
11732 if test "${enable_weak_symbols+set}" = set; then
11733 enableval="$enable_weak_symbols"
11734 use_weak_symbols=$enableval
11736 use_weak_symbols=no
11738 echo "$as_me:11738: result: $use_weak_symbols" >&5
11739 echo "${ECHO_T}$use_weak_symbols" >&6
11740 if test "$use_weak_symbols" = yes ; then
11742 echo "$as_me:11742: checking if $CC supports weak symbols" >&5
11743 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
11744 if test "${cf_cv_weak_symbols+set}" = set; then
11745 echo $ECHO_N "(cached) $ECHO_C" >&6
11748 cat >conftest.$ac_ext <<_ACEOF
11749 #line 11749 "configure"
11750 #include "confdefs.h"
11757 #if defined(__GNUC__)
11758 # if defined __USE_ISOC99
11759 # define _cat_pragma(exp) _Pragma(#exp)
11760 # define _weak_pragma(exp) _cat_pragma(weak name)
11762 # define _weak_pragma(exp)
11764 # define _declare(name) __extension__ extern __typeof__(name) name
11765 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
11768 weak_symbol(fopen);
11774 rm -f conftest.$ac_objext
11775 if { (eval echo "$as_me:11775: \"$ac_compile\"") >&5
11776 (eval $ac_compile) 2>&5
11778 echo "$as_me:11778: \$? = $ac_status" >&5
11779 (exit $ac_status); } &&
11780 { ac_try='test -s conftest.$ac_objext'
11781 { (eval echo "$as_me:11781: \"$ac_try\"") >&5
11782 (eval $ac_try) 2>&5
11784 echo "$as_me:11784: \$? = $ac_status" >&5
11785 (exit $ac_status); }; }; then
11786 cf_cv_weak_symbols=yes
11788 echo "$as_me: failed program was:" >&5
11789 cat conftest.$ac_ext >&5
11790 cf_cv_weak_symbols=no
11792 rm -f conftest.$ac_objext conftest.$ac_ext
11795 echo "$as_me:11795: result: $cf_cv_weak_symbols" >&5
11796 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
11799 cf_cv_weak_symbols=no
11802 if test $cf_cv_weak_symbols = yes ; then
11803 cat >>confdefs.h <<\EOF
11804 #define USE_WEAK_SYMBOLS 1
11811 if test "$with_pthread" = "yes" ; then
11812 cat >>confdefs.h <<\EOF
11813 #define USE_PTHREADS 1
11816 enable_reentrant=yes
11817 if test $cf_cv_weak_symbols = yes ; then
11822 # Reentrant code has to be opaque; there's little advantage to making ncurses
11823 # opaque outside of that, so there is no --enable-opaque option. We can use
11824 # this option without --with-pthreads, but this will be always set for
11826 echo "$as_me:11826: checking if you want experimental reentrant code" >&5
11827 echo $ECHO_N "checking if you want experimental reentrant code... $ECHO_C" >&6
11829 # Check whether --enable-reentrant or --disable-reentrant was given.
11830 if test "${enable_reentrant+set}" = set; then
11831 enableval="$enable_reentrant"
11832 with_reentrant=$enableval
11836 echo "$as_me:11836: result: $with_reentrant" >&5
11837 echo "${ECHO_T}$with_reentrant" >&6
11838 if test "$with_reentrant" = yes ; then
11839 cf_cv_enable_reentrant=1
11840 cf_cv_enable_opaque="NCURSES_INTERNALS"
11843 if test $cf_cv_weak_symbols = yes ; then
11845 # remove pthread library from $LIBS
11846 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
11848 TEST_LIBS="-lpthread $TEST_LIBS"
11849 TEST_LIBS2="-lpthread $TEST_LIBS2"
11851 LIB_SUFFIX="t${LIB_SUFFIX}"
11853 cat >>confdefs.h <<\EOF
11854 #define USE_REENTRANT 1
11857 if test "${with_abi_version+set}" != set; then
11858 case $cf_cv_rel_version in
11860 cf_cv_rel_version=6.0
11861 cf_cv_abi_version=6
11862 { echo "$as_me:11862: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
11863 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
11869 cf_cv_enable_reentrant=0
11870 cf_cv_enable_opaque="NCURSES_OPAQUE"
11872 NCURSES_SIZE_T=short
11875 ### Allow using a different wrap-prefix
11876 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
11877 echo "$as_me:11877: checking for prefix used to wrap public variables" >&5
11878 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
11880 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
11881 if test "${with_wrap_prefix+set}" = set; then
11882 withval="$with_wrap_prefix"
11883 NCURSES_WRAP_PREFIX=$withval
11885 NCURSES_WRAP_PREFIX=_nc_
11887 echo "$as_me:11887: result: $NCURSES_WRAP_PREFIX" >&5
11888 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
11890 NCURSES_WRAP_PREFIX=_nc_
11893 cat >>confdefs.h <<EOF
11894 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
11897 echo "$as_me:11897: checking if you want experimental safe-sprintf code" >&5
11898 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
11900 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
11901 if test "${enable_safe_sprintf+set}" = set; then
11902 enableval="$enable_safe_sprintf"
11903 with_safe_sprintf=$enableval
11905 with_safe_sprintf=no
11907 echo "$as_me:11907: result: $with_safe_sprintf" >&5
11908 echo "${ECHO_T}$with_safe_sprintf" >&6
11909 test "$with_safe_sprintf" = yes && cat >>confdefs.h <<\EOF
11910 #define USE_SAFE_SPRINTF 1
11913 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
11914 # when hashmap is used scroll hints are useless
11915 if test "$with_hashmap" = no ; then
11916 echo "$as_me:11916: checking if you want to experiment without scrolling-hints code" >&5
11917 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
11919 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
11920 if test "${enable_scroll_hints+set}" = set; then
11921 enableval="$enable_scroll_hints"
11922 with_scroll_hints=$enableval
11924 with_scroll_hints=yes
11926 echo "$as_me:11926: result: $with_scroll_hints" >&5
11927 echo "${ECHO_T}$with_scroll_hints" >&6
11928 test "$with_scroll_hints" = yes && cat >>confdefs.h <<\EOF
11929 #define USE_SCROLL_HINTS 1
11934 echo "$as_me:11934: checking if you want experimental wgetch-events code" >&5
11935 echo $ECHO_N "checking if you want experimental wgetch-events code... $ECHO_C" >&6
11937 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
11938 if test "${enable_wgetch_events+set}" = set; then
11939 enableval="$enable_wgetch_events"
11940 with_wgetch_events=$enableval
11942 with_wgetch_events=no
11944 echo "$as_me:11944: result: $with_wgetch_events" >&5
11945 echo "${ECHO_T}$with_wgetch_events" >&6
11946 test "$with_wgetch_events" = yes && cat >>confdefs.h <<\EOF
11947 #define NCURSES_WGETCH_EVENTS 1
11950 ###############################################################################
11952 ### use option --disable-echo to suppress full display compiling commands
11954 echo "$as_me:11954: checking if you want to see long compiling messages" >&5
11955 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
11957 # Check whether --enable-echo or --disable-echo was given.
11958 if test "${enable_echo+set}" = set; then
11959 enableval="$enable_echo"
11960 test "$enableval" != no && enableval=yes
11961 if test "$enableval" != "yes" ; then
11964 ECHO_LD='@echo linking $@;'
11965 RULE_CC='@echo compiling $<'
11966 SHOW_CC='@echo compiling $@'
11988 echo "$as_me:11988: result: $enableval" >&5
11989 echo "${ECHO_T}$enableval" >&6
11991 if test "$enable_echo" = yes; then
11994 ECHO_LINK='@ echo linking $@ ... ;'
11995 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
11996 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
11999 ### use option --enable-warnings to turn on all gcc warnings
12000 echo "$as_me:12000: checking if you want to see compiler warnings" >&5
12001 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
12003 # Check whether --enable-warnings or --disable-warnings was given.
12004 if test "${enable_warnings+set}" = set; then
12005 enableval="$enable_warnings"
12006 with_warnings=$enableval
12008 echo "$as_me:12008: result: $with_warnings" >&5
12009 echo "${ECHO_T}$with_warnings" >&6
12011 if test "x$with_warnings" = "xyes"; then
12013 ADAFLAGS="$ADAFLAGS -gnatg"
12017 if test "$GCC" = yes ; then
12020 echo "$as_me:12020: checking if this is really Intel C compiler" >&5
12021 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
12022 cf_save_CFLAGS="$CFLAGS"
12023 CFLAGS="$CFLAGS -no-gcc"
12024 cat >conftest.$ac_ext <<_ACEOF
12025 #line 12025 "configure"
12026 #include "confdefs.h"
12032 #ifdef __INTEL_COMPILER
12041 rm -f conftest.$ac_objext
12042 if { (eval echo "$as_me:12042: \"$ac_compile\"") >&5
12043 (eval $ac_compile) 2>&5
12045 echo "$as_me:12045: \$? = $ac_status" >&5
12046 (exit $ac_status); } &&
12047 { ac_try='test -s conftest.$ac_objext'
12048 { (eval echo "$as_me:12048: \"$ac_try\"") >&5
12049 (eval $ac_try) 2>&5
12051 echo "$as_me:12051: \$? = $ac_status" >&5
12052 (exit $ac_status); }; }; then
12054 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
12057 echo "$as_me: failed program was:" >&5
12058 cat conftest.$ac_ext >&5
12060 rm -f conftest.$ac_objext conftest.$ac_ext
12061 CFLAGS="$cf_save_CFLAGS"
12062 echo "$as_me:12062: result: $INTEL_COMPILER" >&5
12063 echo "${ECHO_T}$INTEL_COMPILER" >&6
12070 if test "$GCC" = yes ; then
12071 echo "$as_me:12071: checking if this is really Clang C compiler" >&5
12072 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
12073 cf_save_CFLAGS="$CFLAGS"
12074 CFLAGS="$CFLAGS -Qunused-arguments"
12075 cat >conftest.$ac_ext <<_ACEOF
12076 #line 12076 "configure"
12077 #include "confdefs.h"
12092 rm -f conftest.$ac_objext
12093 if { (eval echo "$as_me:12093: \"$ac_compile\"") >&5
12094 (eval $ac_compile) 2>&5
12096 echo "$as_me:12096: \$? = $ac_status" >&5
12097 (exit $ac_status); } &&
12098 { ac_try='test -s conftest.$ac_objext'
12099 { (eval echo "$as_me:12099: \"$ac_try\"") >&5
12100 (eval $ac_try) 2>&5
12102 echo "$as_me:12102: \$? = $ac_status" >&5
12103 (exit $ac_status); }; }; then
12105 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
12108 echo "$as_me: failed program was:" >&5
12109 cat conftest.$ac_ext >&5
12111 rm -f conftest.$ac_objext conftest.$ac_ext
12112 CFLAGS="$cf_save_CFLAGS"
12113 echo "$as_me:12113: result: $CLANG_COMPILER" >&5
12114 echo "${ECHO_T}$CLANG_COMPILER" >&6
12117 cat > conftest.$ac_ext <<EOF
12118 #line 12118 "${as_me:-configure}"
12119 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
12122 if test "$INTEL_COMPILER" = yes
12124 # The "-wdXXX" options suppress warnings:
12125 # remark #1419: external declaration in primary source file
12126 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
12127 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
12128 # remark #193: zero used for undefined preprocessing identifier
12129 # remark #593: variable "curs_sb_left_arrow" was set but never used
12130 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
12131 # remark #869: parameter "tw" was never referenced
12132 # remark #981: operands are evaluated in unspecified order
12133 # warning #279: controlling expression is constant
12135 { echo "$as_me:12135: checking for $CC warning options..." >&5
12136 echo "$as_me: checking for $CC warning options..." >&6;}
12137 cf_save_CFLAGS="$CFLAGS"
12138 EXTRA_CFLAGS="-Wall"
12150 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
12151 if { (eval echo "$as_me:12151: \"$ac_compile\"") >&5
12152 (eval $ac_compile) 2>&5
12154 echo "$as_me:12154: \$? = $ac_status" >&5
12155 (exit $ac_status); }; then
12156 test -n "$verbose" && echo "$as_me:12156: result: ... -$cf_opt" >&5
12157 echo "${ECHO_T}... -$cf_opt" >&6
12158 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
12161 CFLAGS="$cf_save_CFLAGS"
12163 elif test "$GCC" = yes
12165 { echo "$as_me:12165: checking for $CC warning options..." >&5
12166 echo "$as_me: checking for $CC warning options..." >&6;}
12167 cf_save_CFLAGS="$CFLAGS"
12170 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
12171 for cf_opt in W Wall \
12172 Wbad-function-cast \
12176 Wmissing-declarations \
12177 Wmissing-prototypes \
12181 Wstrict-prototypes \
12182 Wundef $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum
12184 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
12185 if { (eval echo "$as_me:12185: \"$ac_compile\"") >&5
12186 (eval $ac_compile) 2>&5
12188 echo "$as_me:12188: \$? = $ac_status" >&5
12189 (exit $ac_status); }; then
12190 test -n "$verbose" && echo "$as_me:12190: result: ... -$cf_opt" >&5
12191 echo "${ECHO_T}... -$cf_opt" >&6
12192 case $cf_opt in #(vi
12194 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
12197 case $GCC_VERSION in
12199 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
12201 echo "${as_me:-configure}:12201: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
12206 Wpointer-arith) #(vi
12207 case $GCC_VERSION in
12209 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
12211 echo "${as_me:-configure}:12211: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
12217 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
12220 CFLAGS="$cf_save_CFLAGS"
12224 if test "$cf_with_cxx" = yes ; then
12228 if test "$GCC" = yes ; then
12231 echo "$as_me:12231: checking if this is really Intel C++ compiler" >&5
12232 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
12233 cf_save_CFLAGS="$CXXFLAGS"
12234 CXXFLAGS="$CXXFLAGS -no-gcc"
12235 cat >conftest.$ac_ext <<_ACEOF
12236 #line 12236 "configure"
12237 #include "confdefs.h"
12243 #ifdef __INTEL_COMPILER
12252 rm -f conftest.$ac_objext
12253 if { (eval echo "$as_me:12253: \"$ac_compile\"") >&5
12254 (eval $ac_compile) 2>&5
12256 echo "$as_me:12256: \$? = $ac_status" >&5
12257 (exit $ac_status); } &&
12258 { ac_try='test -s conftest.$ac_objext'
12259 { (eval echo "$as_me:12259: \"$ac_try\"") >&5
12260 (eval $ac_try) 2>&5
12262 echo "$as_me:12262: \$? = $ac_status" >&5
12263 (exit $ac_status); }; }; then
12264 INTEL_CPLUSPLUS=yes
12265 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
12268 echo "$as_me: failed program was:" >&5
12269 cat conftest.$ac_ext >&5
12271 rm -f conftest.$ac_objext conftest.$ac_ext
12272 CXXFLAGS="$cf_save_CFLAGS"
12273 echo "$as_me:12273: result: $INTEL_CPLUSPLUS" >&5
12274 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
12281 if test "$GCC" = yes ; then
12282 echo "$as_me:12282: checking if this is really Clang C++ compiler" >&5
12283 echo $ECHO_N "checking if this is really Clang C++ compiler... $ECHO_C" >&6
12284 cf_save_CFLAGS="$CXXFLAGS"
12285 CXXFLAGS="$CXXFLAGS -Qunused-arguments"
12286 cat >conftest.$ac_ext <<_ACEOF
12287 #line 12287 "configure"
12288 #include "confdefs.h"
12303 rm -f conftest.$ac_objext
12304 if { (eval echo "$as_me:12304: \"$ac_compile\"") >&5
12305 (eval $ac_compile) 2>&5
12307 echo "$as_me:12307: \$? = $ac_status" >&5
12308 (exit $ac_status); } &&
12309 { ac_try='test -s conftest.$ac_objext'
12310 { (eval echo "$as_me:12310: \"$ac_try\"") >&5
12311 (eval $ac_try) 2>&5
12313 echo "$as_me:12313: \$? = $ac_status" >&5
12314 (exit $ac_status); }; }; then
12315 CLANG_CPLUSPLUS=yes
12316 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
12319 echo "$as_me: failed program was:" >&5
12320 cat conftest.$ac_ext >&5
12322 rm -f conftest.$ac_objext conftest.$ac_ext
12323 CXXFLAGS="$cf_save_CFLAGS"
12324 echo "$as_me:12324: result: $CLANG_CPLUSPLUS" >&5
12325 echo "${ECHO_T}$CLANG_CPLUSPLUS" >&6
12329 ac_cpp='$CXXCPP $CPPFLAGS'
12330 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12331 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12332 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12333 ac_main_return=return
12335 cat > conftest.$ac_ext <<EOF
12336 #line 12336 "configure"
12337 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
12340 if test "$INTEL_CPLUSPLUS" = yes
12342 # The "-wdXXX" options suppress warnings:
12343 # remark #1419: external declaration in primary source file
12344 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
12345 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
12346 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
12347 # remark #193: zero used for undefined preprocessing identifier
12348 # remark #593: variable "curs_sb_left_arrow" was set but never used
12349 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
12350 # remark #869: parameter "tw" was never referenced
12351 # remark #981: operands are evaluated in unspecified order
12352 # warning #269: invalid format string conversion
12354 { echo "$as_me:12354: checking for $CC warning options..." >&5
12355 echo "$as_me: checking for $CC warning options..." >&6;}
12356 cf_save_CXXFLAGS="$CXXFLAGS"
12357 EXTRA_CXXFLAGS="-Wall"
12370 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
12371 if { (eval echo "$as_me:12371: \"$ac_compile\"") >&5
12372 (eval $ac_compile) 2>&5
12374 echo "$as_me:12374: \$? = $ac_status" >&5
12375 (exit $ac_status); }; then
12376 test -n "$verbose" && echo "$as_me:12376: result: ... -$cf_opt" >&5
12377 echo "${ECHO_T}... -$cf_opt" >&6
12378 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
12381 CXXFLAGS="$cf_save_CXXFLAGS"
12383 elif test "$GXX" = yes
12385 { echo "$as_me:12385: checking for $CXX warning options..." >&5
12386 echo "$as_me: checking for $CXX warning options..." >&6;}
12387 cf_save_CXXFLAGS="$CXXFLAGS"
12388 EXTRA_CXXFLAGS="-W -Wall"
12389 cf_gxx_extra_warnings=""
12390 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
12391 case "$GCC_VERSION" in
12395 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
12401 Woverloaded-virtual \
12407 Wmissing-prototypes \
12410 Wstrict-prototypes \
12411 Wundef $cf_gxx_extra_warnings Wno-unused
12413 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
12414 if { (eval echo "$as_me:12414: \"$ac_compile\"") >&5
12415 (eval $ac_compile) 2>&5
12417 echo "$as_me:12417: \$? = $ac_status" >&5
12418 (exit $ac_status); }; then
12419 test -n "$verbose" && echo "$as_me:12419: result: ... -$cf_opt" >&5
12420 echo "${ECHO_T}... -$cf_opt" >&6
12421 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
12423 test -n "$verbose" && echo "$as_me:12423: result: ... no -$cf_opt" >&5
12424 echo "${ECHO_T}... no -$cf_opt" >&6
12427 CXXFLAGS="$cf_save_CXXFLAGS"
12432 ac_cpp='$CPP $CPPFLAGS'
12433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12436 ac_main_return=return
12441 if test "$GCC" = yes
12443 cat > conftest.i <<EOF
12445 #define GCC_PRINTF 0
12448 #define GCC_SCANF 0
12450 #ifndef GCC_NORETURN
12451 #define GCC_NORETURN /* nothing */
12454 #define GCC_UNUSED /* nothing */
12457 if test "$GCC" = yes
12459 { echo "$as_me:12459: checking for $CC __attribute__ directives..." >&5
12460 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
12461 cat > conftest.$ac_ext <<EOF
12462 #line 12462 "${as_me:-configure}"
12463 #include "confdefs.h"
12464 #include "conftest.h"
12465 #include "conftest.i"
12467 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
12469 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
12472 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
12474 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
12476 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
12477 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
12478 extern void foo(void) GCC_NORETURN;
12479 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
12481 cf_printf_attribute=no
12482 cf_scanf_attribute=no
12483 for cf_attribute in scanf printf unused noreturn
12486 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
12488 cf_directive="__attribute__(($cf_attribute))"
12489 echo "checking for $CC $cf_directive" 1>&5
12491 case $cf_attribute in #(vi
12493 cf_printf_attribute=yes
12494 cat >conftest.h <<EOF
12495 #define GCC_$cf_ATTRIBUTE 1
12499 cf_scanf_attribute=yes
12500 cat >conftest.h <<EOF
12501 #define GCC_$cf_ATTRIBUTE 1
12505 cat >conftest.h <<EOF
12506 #define GCC_$cf_ATTRIBUTE $cf_directive
12511 if { (eval echo "$as_me:12511: \"$ac_compile\"") >&5
12512 (eval $ac_compile) 2>&5
12514 echo "$as_me:12514: \$? = $ac_status" >&5
12515 (exit $ac_status); }; then
12516 test -n "$verbose" && echo "$as_me:12516: result: ... $cf_attribute" >&5
12517 echo "${ECHO_T}... $cf_attribute" >&6
12518 cat conftest.h >>confdefs.h
12519 case $cf_attribute in #(vi
12521 if test "$cf_printf_attribute" = no ; then
12522 cat >>confdefs.h <<EOF
12523 #define GCC_PRINTFLIKE(fmt,var) /* nothing */
12526 cat >>confdefs.h <<EOF
12527 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
12532 if test "$cf_scanf_attribute" = no ; then
12533 cat >>confdefs.h <<EOF
12534 #define GCC_SCANFLIKE(fmt,var) /* nothing */
12537 cat >>confdefs.h <<EOF
12538 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
12546 fgrep define conftest.i >>confdefs.h
12551 echo "$as_me:12551: checking if you want to work around bogus compiler/loader warnings" >&5
12552 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
12554 # Check whether --enable-string-hacks or --disable-string-hacks was given.
12555 if test "${enable_string_hacks+set}" = set; then
12556 enableval="$enable_string_hacks"
12557 with_string_hacks=$enableval
12559 with_string_hacks=no
12561 echo "$as_me:12561: result: $with_string_hacks" >&5
12562 echo "${ECHO_T}$with_string_hacks" >&6
12564 if test "x$with_string_hacks" = "xyes"; then
12565 cat >>confdefs.h <<\EOF
12566 #define USE_STRING_HACKS 1
12569 { echo "$as_me:12569: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
12570 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
12572 for ac_func in strlcat strlcpy snprintf
12574 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12575 echo "$as_me:12575: checking for $ac_func" >&5
12576 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12577 if eval "test \"\${$as_ac_var+set}\" = set"; then
12578 echo $ECHO_N "(cached) $ECHO_C" >&6
12580 cat >conftest.$ac_ext <<_ACEOF
12581 #line 12581 "configure"
12582 #include "confdefs.h"
12583 /* System header to define __stub macros and hopefully few prototypes,
12584 which can conflict with char $ac_func (); below. */
12585 #include <assert.h>
12586 /* Override any gcc2 internal prototype to avoid an error. */
12590 /* We use char because int might match the return type of a gcc2
12591 builtin and then its argument prototype would still apply. */
12598 /* The GNU C library defines this for functions which it implements
12599 to always fail with ENOSYS. Some functions are actually named
12600 something starting with __ and the normal name is an alias. */
12601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12604 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
12611 rm -f conftest.$ac_objext conftest$ac_exeext
12612 if { (eval echo "$as_me:12612: \"$ac_link\"") >&5
12613 (eval $ac_link) 2>&5
12615 echo "$as_me:12615: \$? = $ac_status" >&5
12616 (exit $ac_status); } &&
12617 { ac_try='test -s conftest$ac_exeext'
12618 { (eval echo "$as_me:12618: \"$ac_try\"") >&5
12619 (eval $ac_try) 2>&5
12621 echo "$as_me:12621: \$? = $ac_status" >&5
12622 (exit $ac_status); }; }; then
12623 eval "$as_ac_var=yes"
12625 echo "$as_me: failed program was:" >&5
12626 cat conftest.$ac_ext >&5
12627 eval "$as_ac_var=no"
12629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12631 echo "$as_me:12631: result: `eval echo '${'$as_ac_var'}'`" >&5
12632 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12633 if test `eval echo '${'$as_ac_var'}'` = yes; then
12634 cat >>confdefs.h <<EOF
12635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12643 ### use option --enable-assertions to turn on generation of assertion code
12644 echo "$as_me:12644: checking if you want to enable runtime assertions" >&5
12645 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
12647 # Check whether --enable-assertions or --disable-assertions was given.
12648 if test "${enable_assertions+set}" = set; then
12649 enableval="$enable_assertions"
12650 with_assertions=$enableval
12654 echo "$as_me:12654: result: $with_assertions" >&5
12655 echo "${ECHO_T}$with_assertions" >&6
12658 if test "$with_assertions" = no
12660 CPPFLAGS="$CPPFLAGS -DNDEBUG"
12663 ADAFLAGS="$ADAFLAGS -gnata"
12668 ### use option --disable-leaks to suppress "permanent" leaks, for testing
12670 echo "$as_me:12670: checking if you want to use dmalloc for testing" >&5
12671 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
12673 # Check whether --with-dmalloc or --without-dmalloc was given.
12674 if test "${with_dmalloc+set}" = set; then
12675 withval="$with_dmalloc"
12676 cat >>confdefs.h <<\EOF
12677 #define USE_DMALLOC 1
12680 : ${with_cflags:=-g}
12681 : ${with_no_leaks:=yes}
12686 echo "$as_me:12686: result: ${with_dmalloc:-no}" >&5
12687 echo "${ECHO_T}${with_dmalloc:-no}" >&6
12689 case .$with_cflags in #(vi
12691 case .$CFLAGS in #(vi
12699 cf_new_extra_cppflags=
12701 for cf_add_cflags in -g
12703 case $cf_fix_cppflags in
12705 case $cf_add_cflags in #(vi
12706 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
12707 case $cf_add_cflags in
12709 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12711 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12712 && test -z "${cf_tst_cflags}" \
12713 && cf_fix_cppflags=yes
12715 if test $cf_fix_cppflags = yes ; then
12716 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12718 elif test "${cf_tst_cflags}" = "\"'" ; then
12719 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12724 case "$CPPFLAGS" in
12725 *$cf_add_cflags) #(vi
12728 case $cf_add_cflags in #(vi
12730 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12732 CPPFLAGS=`echo "$CPPFLAGS" | \
12733 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12734 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12738 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12743 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12748 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12750 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12752 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12753 && test -z "${cf_tst_cflags}" \
12754 && cf_fix_cppflags=no
12759 if test -n "$cf_new_cflags" ; then
12761 CFLAGS="$CFLAGS $cf_new_cflags"
12764 if test -n "$cf_new_cppflags" ; then
12766 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12769 if test -n "$cf_new_extra_cppflags" ; then
12771 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12779 if test "$with_dmalloc" = yes ; then
12780 echo "$as_me:12780: checking for dmalloc.h" >&5
12781 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
12782 if test "${ac_cv_header_dmalloc_h+set}" = set; then
12783 echo $ECHO_N "(cached) $ECHO_C" >&6
12785 cat >conftest.$ac_ext <<_ACEOF
12786 #line 12786 "configure"
12787 #include "confdefs.h"
12788 #include <dmalloc.h>
12790 if { (eval echo "$as_me:12790: \"$ac_cpp conftest.$ac_ext\"") >&5
12791 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12793 egrep -v '^ *\+' conftest.er1 >conftest.err
12795 cat conftest.err >&5
12796 echo "$as_me:12796: \$? = $ac_status" >&5
12797 (exit $ac_status); } >/dev/null; then
12798 if test -s conftest.err; then
12799 ac_cpp_err=$ac_c_preproc_warn_flag
12806 if test -z "$ac_cpp_err"; then
12807 ac_cv_header_dmalloc_h=yes
12809 echo "$as_me: failed program was:" >&5
12810 cat conftest.$ac_ext >&5
12811 ac_cv_header_dmalloc_h=no
12813 rm -f conftest.err conftest.$ac_ext
12815 echo "$as_me:12815: result: $ac_cv_header_dmalloc_h" >&5
12816 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
12817 if test $ac_cv_header_dmalloc_h = yes; then
12819 echo "$as_me:12819: checking for dmalloc_debug in -ldmalloc" >&5
12820 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
12821 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
12822 echo $ECHO_N "(cached) $ECHO_C" >&6
12824 ac_check_lib_save_LIBS=$LIBS
12825 LIBS="-ldmalloc $LIBS"
12826 cat >conftest.$ac_ext <<_ACEOF
12827 #line 12827 "configure"
12828 #include "confdefs.h"
12830 /* Override any gcc2 internal prototype to avoid an error. */
12834 /* We use char because int might match the return type of a gcc2
12835 builtin and then its argument prototype would still apply. */
12836 char dmalloc_debug ();
12845 rm -f conftest.$ac_objext conftest$ac_exeext
12846 if { (eval echo "$as_me:12846: \"$ac_link\"") >&5
12847 (eval $ac_link) 2>&5
12849 echo "$as_me:12849: \$? = $ac_status" >&5
12850 (exit $ac_status); } &&
12851 { ac_try='test -s conftest$ac_exeext'
12852 { (eval echo "$as_me:12852: \"$ac_try\"") >&5
12853 (eval $ac_try) 2>&5
12855 echo "$as_me:12855: \$? = $ac_status" >&5
12856 (exit $ac_status); }; }; then
12857 ac_cv_lib_dmalloc_dmalloc_debug=yes
12859 echo "$as_me: failed program was:" >&5
12860 cat conftest.$ac_ext >&5
12861 ac_cv_lib_dmalloc_dmalloc_debug=no
12863 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12864 LIBS=$ac_check_lib_save_LIBS
12866 echo "$as_me:12866: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
12867 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
12868 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
12869 cat >>confdefs.h <<EOF
12870 #define HAVE_LIBDMALLOC 1
12873 LIBS="-ldmalloc $LIBS"
12881 echo "$as_me:12881: checking if you want to use dbmalloc for testing" >&5
12882 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
12884 # Check whether --with-dbmalloc or --without-dbmalloc was given.
12885 if test "${with_dbmalloc+set}" = set; then
12886 withval="$with_dbmalloc"
12887 cat >>confdefs.h <<\EOF
12888 #define USE_DBMALLOC 1
12891 : ${with_cflags:=-g}
12892 : ${with_no_leaks:=yes}
12897 echo "$as_me:12897: result: ${with_dbmalloc:-no}" >&5
12898 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
12900 case .$with_cflags in #(vi
12902 case .$CFLAGS in #(vi
12910 cf_new_extra_cppflags=
12912 for cf_add_cflags in -g
12914 case $cf_fix_cppflags in
12916 case $cf_add_cflags in #(vi
12917 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
12918 case $cf_add_cflags in
12920 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12922 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12923 && test -z "${cf_tst_cflags}" \
12924 && cf_fix_cppflags=yes
12926 if test $cf_fix_cppflags = yes ; then
12927 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12929 elif test "${cf_tst_cflags}" = "\"'" ; then
12930 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12935 case "$CPPFLAGS" in
12936 *$cf_add_cflags) #(vi
12939 case $cf_add_cflags in #(vi
12941 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12943 CPPFLAGS=`echo "$CPPFLAGS" | \
12944 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12945 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12949 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12954 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12959 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12961 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12963 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12964 && test -z "${cf_tst_cflags}" \
12965 && cf_fix_cppflags=no
12970 if test -n "$cf_new_cflags" ; then
12972 CFLAGS="$CFLAGS $cf_new_cflags"
12975 if test -n "$cf_new_cppflags" ; then
12977 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12980 if test -n "$cf_new_extra_cppflags" ; then
12982 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12990 if test "$with_dbmalloc" = yes ; then
12991 echo "$as_me:12991: checking for dbmalloc.h" >&5
12992 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
12993 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
12994 echo $ECHO_N "(cached) $ECHO_C" >&6
12996 cat >conftest.$ac_ext <<_ACEOF
12997 #line 12997 "configure"
12998 #include "confdefs.h"
12999 #include <dbmalloc.h>
13001 if { (eval echo "$as_me:13001: \"$ac_cpp conftest.$ac_ext\"") >&5
13002 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13004 egrep -v '^ *\+' conftest.er1 >conftest.err
13006 cat conftest.err >&5
13007 echo "$as_me:13007: \$? = $ac_status" >&5
13008 (exit $ac_status); } >/dev/null; then
13009 if test -s conftest.err; then
13010 ac_cpp_err=$ac_c_preproc_warn_flag
13017 if test -z "$ac_cpp_err"; then
13018 ac_cv_header_dbmalloc_h=yes
13020 echo "$as_me: failed program was:" >&5
13021 cat conftest.$ac_ext >&5
13022 ac_cv_header_dbmalloc_h=no
13024 rm -f conftest.err conftest.$ac_ext
13026 echo "$as_me:13026: result: $ac_cv_header_dbmalloc_h" >&5
13027 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
13028 if test $ac_cv_header_dbmalloc_h = yes; then
13030 echo "$as_me:13030: checking for debug_malloc in -ldbmalloc" >&5
13031 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
13032 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
13033 echo $ECHO_N "(cached) $ECHO_C" >&6
13035 ac_check_lib_save_LIBS=$LIBS
13036 LIBS="-ldbmalloc $LIBS"
13037 cat >conftest.$ac_ext <<_ACEOF
13038 #line 13038 "configure"
13039 #include "confdefs.h"
13041 /* Override any gcc2 internal prototype to avoid an error. */
13045 /* We use char because int might match the return type of a gcc2
13046 builtin and then its argument prototype would still apply. */
13047 char debug_malloc ();
13056 rm -f conftest.$ac_objext conftest$ac_exeext
13057 if { (eval echo "$as_me:13057: \"$ac_link\"") >&5
13058 (eval $ac_link) 2>&5
13060 echo "$as_me:13060: \$? = $ac_status" >&5
13061 (exit $ac_status); } &&
13062 { ac_try='test -s conftest$ac_exeext'
13063 { (eval echo "$as_me:13063: \"$ac_try\"") >&5
13064 (eval $ac_try) 2>&5
13066 echo "$as_me:13066: \$? = $ac_status" >&5
13067 (exit $ac_status); }; }; then
13068 ac_cv_lib_dbmalloc_debug_malloc=yes
13070 echo "$as_me: failed program was:" >&5
13071 cat conftest.$ac_ext >&5
13072 ac_cv_lib_dbmalloc_debug_malloc=no
13074 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13075 LIBS=$ac_check_lib_save_LIBS
13077 echo "$as_me:13077: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
13078 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
13079 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
13080 cat >>confdefs.h <<EOF
13081 #define HAVE_LIBDBMALLOC 1
13084 LIBS="-ldbmalloc $LIBS"
13092 echo "$as_me:13092: checking if you want to use valgrind for testing" >&5
13093 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
13095 # Check whether --with-valgrind or --without-valgrind was given.
13096 if test "${with_valgrind+set}" = set; then
13097 withval="$with_valgrind"
13098 cat >>confdefs.h <<\EOF
13099 #define USE_VALGRIND 1
13102 : ${with_cflags:=-g}
13103 : ${with_no_leaks:=yes}
13108 echo "$as_me:13108: result: ${with_valgrind:-no}" >&5
13109 echo "${ECHO_T}${with_valgrind:-no}" >&6
13111 case .$with_cflags in #(vi
13113 case .$CFLAGS in #(vi
13121 cf_new_extra_cppflags=
13123 for cf_add_cflags in -g
13125 case $cf_fix_cppflags in
13127 case $cf_add_cflags in #(vi
13128 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
13129 case $cf_add_cflags in
13131 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13133 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13134 && test -z "${cf_tst_cflags}" \
13135 && cf_fix_cppflags=yes
13137 if test $cf_fix_cppflags = yes ; then
13138 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13140 elif test "${cf_tst_cflags}" = "\"'" ; then
13141 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13146 case "$CPPFLAGS" in
13147 *$cf_add_cflags) #(vi
13150 case $cf_add_cflags in #(vi
13152 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13154 CPPFLAGS=`echo "$CPPFLAGS" | \
13155 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13156 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13160 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
13165 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
13170 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13172 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13174 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13175 && test -z "${cf_tst_cflags}" \
13176 && cf_fix_cppflags=no
13181 if test -n "$cf_new_cflags" ; then
13183 CFLAGS="$CFLAGS $cf_new_cflags"
13186 if test -n "$cf_new_cppflags" ; then
13188 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
13191 if test -n "$cf_new_extra_cppflags" ; then
13193 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
13201 echo "$as_me:13201: checking if you want to perform memory-leak testing" >&5
13202 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
13204 # Check whether --enable-leaks or --disable-leaks was given.
13205 if test "${enable_leaks+set}" = set; then
13206 enableval="$enable_leaks"
13207 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
13209 : ${with_no_leaks:=no}
13211 echo "$as_me:13211: result: $with_no_leaks" >&5
13212 echo "${ECHO_T}$with_no_leaks" >&6
13214 if test "$with_no_leaks" = yes ; then
13215 cat >>confdefs.h <<\EOF
13219 cat >>confdefs.h <<\EOF
13220 #define YY_NO_LEAKS 1
13225 cat >>confdefs.h <<\EOF
13226 #define HAVE_NC_ALLOC_H 1
13229 ### use option --enable-expanded to generate certain macros as functions
13231 # Check whether --enable-expanded or --disable-expanded was given.
13232 if test "${enable_expanded+set}" = set; then
13233 enableval="$enable_expanded"
13234 test "$enableval" = yes && cat >>confdefs.h <<\EOF
13235 #define NCURSES_EXPANDED 1
13240 ### use option --disable-macros to suppress macros in favor of functions
13242 # Check whether --enable-macros or --disable-macros was given.
13243 if test "${enable_macros+set}" = set; then
13244 enableval="$enable_macros"
13245 test "$enableval" = no && cat >>confdefs.h <<\EOF
13246 #define NCURSES_NOMACROS 1
13251 # Normally we only add trace() to the debug-library. Allow this to be
13252 # extended to all models of the ncurses library:
13254 case "$CFLAGS $CPPFLAGS" in
13260 echo "$as_me:13260: checking whether to add trace feature to all models" >&5
13261 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
13263 # Check whether --with-trace or --without-trace was given.
13264 if test "${with_trace+set}" = set; then
13265 withval="$with_trace"
13266 cf_with_trace=$withval
13268 cf_with_trace=$cf_all_traces
13270 echo "$as_me:13270: result: $cf_with_trace" >&5
13271 echo "${ECHO_T}$cf_with_trace" >&6
13273 if test "$cf_with_trace" = yes ; then
13280 cf_new_extra_cppflags=
13282 for cf_add_cflags in -DTRACE
13284 case $cf_fix_cppflags in
13286 case $cf_add_cflags in #(vi
13287 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
13288 case $cf_add_cflags in
13290 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13292 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13293 && test -z "${cf_tst_cflags}" \
13294 && cf_fix_cppflags=yes
13296 if test $cf_fix_cppflags = yes ; then
13297 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13299 elif test "${cf_tst_cflags}" = "\"'" ; then
13300 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13305 case "$CPPFLAGS" in
13306 *$cf_add_cflags) #(vi
13309 case $cf_add_cflags in #(vi
13311 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13313 CPPFLAGS=`echo "$CPPFLAGS" | \
13314 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13315 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13319 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
13324 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
13329 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13331 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13333 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13334 && test -z "${cf_tst_cflags}" \
13335 && cf_fix_cppflags=no
13340 if test -n "$cf_new_cflags" ; then
13342 CFLAGS="$CFLAGS $cf_new_cflags"
13345 if test -n "$cf_new_cppflags" ; then
13347 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
13350 if test -n "$cf_new_extra_cppflags" ; then
13352 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
13360 ### Checks for libraries.
13361 case $cf_cv_system_name in #(vi
13365 echo "$as_me:13365: checking for gettimeofday" >&5
13366 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
13367 if test "${ac_cv_func_gettimeofday+set}" = set; then
13368 echo $ECHO_N "(cached) $ECHO_C" >&6
13370 cat >conftest.$ac_ext <<_ACEOF
13371 #line 13371 "configure"
13372 #include "confdefs.h"
13373 /* System header to define __stub macros and hopefully few prototypes,
13374 which can conflict with char gettimeofday (); below. */
13375 #include <assert.h>
13376 /* Override any gcc2 internal prototype to avoid an error. */
13380 /* We use char because int might match the return type of a gcc2
13381 builtin and then its argument prototype would still apply. */
13382 char gettimeofday ();
13388 /* The GNU C library defines this for functions which it implements
13389 to always fail with ENOSYS. Some functions are actually named
13390 something starting with __ and the normal name is an alias. */
13391 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
13394 f = gettimeofday; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
13401 rm -f conftest.$ac_objext conftest$ac_exeext
13402 if { (eval echo "$as_me:13402: \"$ac_link\"") >&5
13403 (eval $ac_link) 2>&5
13405 echo "$as_me:13405: \$? = $ac_status" >&5
13406 (exit $ac_status); } &&
13407 { ac_try='test -s conftest$ac_exeext'
13408 { (eval echo "$as_me:13408: \"$ac_try\"") >&5
13409 (eval $ac_try) 2>&5
13411 echo "$as_me:13411: \$? = $ac_status" >&5
13412 (exit $ac_status); }; }; then
13413 ac_cv_func_gettimeofday=yes
13415 echo "$as_me: failed program was:" >&5
13416 cat conftest.$ac_ext >&5
13417 ac_cv_func_gettimeofday=no
13419 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13421 echo "$as_me:13421: result: $ac_cv_func_gettimeofday" >&5
13422 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
13423 if test $ac_cv_func_gettimeofday = yes; then
13424 cat >>confdefs.h <<\EOF
13425 #define HAVE_GETTIMEOFDAY 1
13430 echo "$as_me:13430: checking for gettimeofday in -lbsd" >&5
13431 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
13432 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
13433 echo $ECHO_N "(cached) $ECHO_C" >&6
13435 ac_check_lib_save_LIBS=$LIBS
13437 cat >conftest.$ac_ext <<_ACEOF
13438 #line 13438 "configure"
13439 #include "confdefs.h"
13441 /* Override any gcc2 internal prototype to avoid an error. */
13445 /* We use char because int might match the return type of a gcc2
13446 builtin and then its argument prototype would still apply. */
13447 char gettimeofday ();
13456 rm -f conftest.$ac_objext conftest$ac_exeext
13457 if { (eval echo "$as_me:13457: \"$ac_link\"") >&5
13458 (eval $ac_link) 2>&5
13460 echo "$as_me:13460: \$? = $ac_status" >&5
13461 (exit $ac_status); } &&
13462 { ac_try='test -s conftest$ac_exeext'
13463 { (eval echo "$as_me:13463: \"$ac_try\"") >&5
13464 (eval $ac_try) 2>&5
13466 echo "$as_me:13466: \$? = $ac_status" >&5
13467 (exit $ac_status); }; }; then
13468 ac_cv_lib_bsd_gettimeofday=yes
13470 echo "$as_me: failed program was:" >&5
13471 cat conftest.$ac_ext >&5
13472 ac_cv_lib_bsd_gettimeofday=no
13474 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13475 LIBS=$ac_check_lib_save_LIBS
13477 echo "$as_me:13477: result: $ac_cv_lib_bsd_gettimeofday" >&5
13478 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
13479 if test $ac_cv_lib_bsd_gettimeofday = yes; then
13480 cat >>confdefs.h <<\EOF
13481 #define HAVE_GETTIMEOFDAY 1
13491 echo "$as_me:13491: checking if -lm needed for math functions" >&5
13492 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
13493 if test "${cf_cv_need_libm+set}" = set; then
13494 echo $ECHO_N "(cached) $ECHO_C" >&6
13497 cat >conftest.$ac_ext <<_ACEOF
13498 #line 13498 "configure"
13499 #include "confdefs.h"
13507 double x = rand(); printf("result = %g\n", sin(x))
13512 rm -f conftest.$ac_objext conftest$ac_exeext
13513 if { (eval echo "$as_me:13513: \"$ac_link\"") >&5
13514 (eval $ac_link) 2>&5
13516 echo "$as_me:13516: \$? = $ac_status" >&5
13517 (exit $ac_status); } &&
13518 { ac_try='test -s conftest$ac_exeext'
13519 { (eval echo "$as_me:13519: \"$ac_try\"") >&5
13520 (eval $ac_try) 2>&5
13522 echo "$as_me:13522: \$? = $ac_status" >&5
13523 (exit $ac_status); }; }; then
13526 echo "$as_me: failed program was:" >&5
13527 cat conftest.$ac_ext >&5
13528 cf_cv_need_libm=yes
13530 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13532 echo "$as_me:13532: result: $cf_cv_need_libm" >&5
13533 echo "${ECHO_T}$cf_cv_need_libm" >&6
13534 if test "$cf_cv_need_libm" = yes
13539 ### Checks for header files.
13540 echo "$as_me:13540: checking for ANSI C header files" >&5
13541 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13542 if test "${ac_cv_header_stdc+set}" = set; then
13543 echo $ECHO_N "(cached) $ECHO_C" >&6
13545 cat >conftest.$ac_ext <<_ACEOF
13546 #line 13546 "configure"
13547 #include "confdefs.h"
13548 #include <stdlib.h>
13549 #include <stdarg.h>
13550 #include <string.h>
13554 if { (eval echo "$as_me:13554: \"$ac_cpp conftest.$ac_ext\"") >&5
13555 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13557 egrep -v '^ *\+' conftest.er1 >conftest.err
13559 cat conftest.err >&5
13560 echo "$as_me:13560: \$? = $ac_status" >&5
13561 (exit $ac_status); } >/dev/null; then
13562 if test -s conftest.err; then
13563 ac_cpp_err=$ac_c_preproc_warn_flag
13570 if test -z "$ac_cpp_err"; then
13571 ac_cv_header_stdc=yes
13573 echo "$as_me: failed program was:" >&5
13574 cat conftest.$ac_ext >&5
13575 ac_cv_header_stdc=no
13577 rm -f conftest.err conftest.$ac_ext
13579 if test $ac_cv_header_stdc = yes; then
13580 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13581 cat >conftest.$ac_ext <<_ACEOF
13582 #line 13582 "configure"
13583 #include "confdefs.h"
13584 #include <string.h>
13587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13588 egrep "memchr" >/dev/null 2>&1; then
13591 ac_cv_header_stdc=no
13597 if test $ac_cv_header_stdc = yes; then
13598 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13599 cat >conftest.$ac_ext <<_ACEOF
13600 #line 13600 "configure"
13601 #include "confdefs.h"
13602 #include <stdlib.h>
13605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13606 egrep "free" >/dev/null 2>&1; then
13609 ac_cv_header_stdc=no
13615 if test $ac_cv_header_stdc = yes; then
13616 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13617 if test "$cross_compiling" = yes; then
13620 cat >conftest.$ac_ext <<_ACEOF
13621 #line 13621 "configure"
13622 #include "confdefs.h"
13624 #if ((' ' & 0x0FF) == 0x020)
13625 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13626 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13628 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13629 || ('j' <= (c) && (c) <= 'r') \
13630 || ('s' <= (c) && (c) <= 'z'))
13631 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13634 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13639 for (i = 0; i < 256; i++)
13640 if (XOR (islower (i), ISLOWER (i))
13641 || toupper (i) != TOUPPER (i))
13642 $ac_main_return(2);
13643 $ac_main_return (0);
13646 rm -f conftest$ac_exeext
13647 if { (eval echo "$as_me:13647: \"$ac_link\"") >&5
13648 (eval $ac_link) 2>&5
13650 echo "$as_me:13650: \$? = $ac_status" >&5
13651 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13652 { (eval echo "$as_me:13652: \"$ac_try\"") >&5
13653 (eval $ac_try) 2>&5
13655 echo "$as_me:13655: \$? = $ac_status" >&5
13656 (exit $ac_status); }; }; then
13659 echo "$as_me: program exited with status $ac_status" >&5
13660 echo "$as_me: failed program was:" >&5
13661 cat conftest.$ac_ext >&5
13662 ac_cv_header_stdc=no
13664 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13668 echo "$as_me:13668: result: $ac_cv_header_stdc" >&5
13669 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13670 if test $ac_cv_header_stdc = yes; then
13672 cat >>confdefs.h <<\EOF
13673 #define STDC_HEADERS 1
13678 ac_header_dirent=no
13679 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13680 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13681 echo "$as_me:13681: checking for $ac_hdr that defines DIR" >&5
13682 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13684 echo $ECHO_N "(cached) $ECHO_C" >&6
13686 cat >conftest.$ac_ext <<_ACEOF
13687 #line 13687 "configure"
13688 #include "confdefs.h"
13689 #include <sys/types.h>
13701 rm -f conftest.$ac_objext
13702 if { (eval echo "$as_me:13702: \"$ac_compile\"") >&5
13703 (eval $ac_compile) 2>&5
13705 echo "$as_me:13705: \$? = $ac_status" >&5
13706 (exit $ac_status); } &&
13707 { ac_try='test -s conftest.$ac_objext'
13708 { (eval echo "$as_me:13708: \"$ac_try\"") >&5
13709 (eval $ac_try) 2>&5
13711 echo "$as_me:13711: \$? = $ac_status" >&5
13712 (exit $ac_status); }; }; then
13713 eval "$as_ac_Header=yes"
13715 echo "$as_me: failed program was:" >&5
13716 cat conftest.$ac_ext >&5
13717 eval "$as_ac_Header=no"
13719 rm -f conftest.$ac_objext conftest.$ac_ext
13721 echo "$as_me:13721: result: `eval echo '${'$as_ac_Header'}'`" >&5
13722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13724 cat >>confdefs.h <<EOF
13725 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13728 ac_header_dirent=$ac_hdr; break
13732 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13733 if test $ac_header_dirent = dirent.h; then
13734 echo "$as_me:13734: checking for opendir in -ldir" >&5
13735 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
13736 if test "${ac_cv_lib_dir_opendir+set}" = set; then
13737 echo $ECHO_N "(cached) $ECHO_C" >&6
13739 ac_check_lib_save_LIBS=$LIBS
13741 cat >conftest.$ac_ext <<_ACEOF
13742 #line 13742 "configure"
13743 #include "confdefs.h"
13745 /* Override any gcc2 internal prototype to avoid an error. */
13749 /* We use char because int might match the return type of a gcc2
13750 builtin and then its argument prototype would still apply. */
13760 rm -f conftest.$ac_objext conftest$ac_exeext
13761 if { (eval echo "$as_me:13761: \"$ac_link\"") >&5
13762 (eval $ac_link) 2>&5
13764 echo "$as_me:13764: \$? = $ac_status" >&5
13765 (exit $ac_status); } &&
13766 { ac_try='test -s conftest$ac_exeext'
13767 { (eval echo "$as_me:13767: \"$ac_try\"") >&5
13768 (eval $ac_try) 2>&5
13770 echo "$as_me:13770: \$? = $ac_status" >&5
13771 (exit $ac_status); }; }; then
13772 ac_cv_lib_dir_opendir=yes
13774 echo "$as_me: failed program was:" >&5
13775 cat conftest.$ac_ext >&5
13776 ac_cv_lib_dir_opendir=no
13778 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13779 LIBS=$ac_check_lib_save_LIBS
13781 echo "$as_me:13781: result: $ac_cv_lib_dir_opendir" >&5
13782 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
13783 if test $ac_cv_lib_dir_opendir = yes; then
13788 echo "$as_me:13788: checking for opendir in -lx" >&5
13789 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
13790 if test "${ac_cv_lib_x_opendir+set}" = set; then
13791 echo $ECHO_N "(cached) $ECHO_C" >&6
13793 ac_check_lib_save_LIBS=$LIBS
13795 cat >conftest.$ac_ext <<_ACEOF
13796 #line 13796 "configure"
13797 #include "confdefs.h"
13799 /* Override any gcc2 internal prototype to avoid an error. */
13803 /* We use char because int might match the return type of a gcc2
13804 builtin and then its argument prototype would still apply. */
13814 rm -f conftest.$ac_objext conftest$ac_exeext
13815 if { (eval echo "$as_me:13815: \"$ac_link\"") >&5
13816 (eval $ac_link) 2>&5
13818 echo "$as_me:13818: \$? = $ac_status" >&5
13819 (exit $ac_status); } &&
13820 { ac_try='test -s conftest$ac_exeext'
13821 { (eval echo "$as_me:13821: \"$ac_try\"") >&5
13822 (eval $ac_try) 2>&5
13824 echo "$as_me:13824: \$? = $ac_status" >&5
13825 (exit $ac_status); }; }; then
13826 ac_cv_lib_x_opendir=yes
13828 echo "$as_me: failed program was:" >&5
13829 cat conftest.$ac_ext >&5
13830 ac_cv_lib_x_opendir=no
13832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13833 LIBS=$ac_check_lib_save_LIBS
13835 echo "$as_me:13835: result: $ac_cv_lib_x_opendir" >&5
13836 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
13837 if test $ac_cv_lib_x_opendir = yes; then
13843 echo "$as_me:13843: checking whether time.h and sys/time.h may both be included" >&5
13844 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
13845 if test "${ac_cv_header_time+set}" = set; then
13846 echo $ECHO_N "(cached) $ECHO_C" >&6
13848 cat >conftest.$ac_ext <<_ACEOF
13849 #line 13849 "configure"
13850 #include "confdefs.h"
13851 #include <sys/types.h>
13852 #include <sys/time.h>
13858 if ((struct tm *) 0)
13864 rm -f conftest.$ac_objext
13865 if { (eval echo "$as_me:13865: \"$ac_compile\"") >&5
13866 (eval $ac_compile) 2>&5
13868 echo "$as_me:13868: \$? = $ac_status" >&5
13869 (exit $ac_status); } &&
13870 { ac_try='test -s conftest.$ac_objext'
13871 { (eval echo "$as_me:13871: \"$ac_try\"") >&5
13872 (eval $ac_try) 2>&5
13874 echo "$as_me:13874: \$? = $ac_status" >&5
13875 (exit $ac_status); }; }; then
13876 ac_cv_header_time=yes
13878 echo "$as_me: failed program was:" >&5
13879 cat conftest.$ac_ext >&5
13880 ac_cv_header_time=no
13882 rm -f conftest.$ac_objext conftest.$ac_ext
13884 echo "$as_me:13884: result: $ac_cv_header_time" >&5
13885 echo "${ECHO_T}$ac_cv_header_time" >&6
13886 if test $ac_cv_header_time = yes; then
13888 cat >>confdefs.h <<\EOF
13889 #define TIME_WITH_SYS_TIME 1
13896 cf_regex_libs="regex re"
13897 case $host_os in #(vi
13899 cf_regex_libs="gnurx $cf_regex_libs"
13903 echo "$as_me:13903: checking for regcomp" >&5
13904 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
13905 if test "${ac_cv_func_regcomp+set}" = set; then
13906 echo $ECHO_N "(cached) $ECHO_C" >&6
13908 cat >conftest.$ac_ext <<_ACEOF
13909 #line 13909 "configure"
13910 #include "confdefs.h"
13911 /* System header to define __stub macros and hopefully few prototypes,
13912 which can conflict with char regcomp (); below. */
13913 #include <assert.h>
13914 /* Override any gcc2 internal prototype to avoid an error. */
13918 /* We use char because int might match the return type of a gcc2
13919 builtin and then its argument prototype would still apply. */
13926 /* The GNU C library defines this for functions which it implements
13927 to always fail with ENOSYS. Some functions are actually named
13928 something starting with __ and the normal name is an alias. */
13929 #if defined (__stub_regcomp) || defined (__stub___regcomp)
13932 f = regcomp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
13939 rm -f conftest.$ac_objext conftest$ac_exeext
13940 if { (eval echo "$as_me:13940: \"$ac_link\"") >&5
13941 (eval $ac_link) 2>&5
13943 echo "$as_me:13943: \$? = $ac_status" >&5
13944 (exit $ac_status); } &&
13945 { ac_try='test -s conftest$ac_exeext'
13946 { (eval echo "$as_me:13946: \"$ac_try\"") >&5
13947 (eval $ac_try) 2>&5
13949 echo "$as_me:13949: \$? = $ac_status" >&5
13950 (exit $ac_status); }; }; then
13951 ac_cv_func_regcomp=yes
13953 echo "$as_me: failed program was:" >&5
13954 cat conftest.$ac_ext >&5
13955 ac_cv_func_regcomp=no
13957 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13959 echo "$as_me:13959: result: $ac_cv_func_regcomp" >&5
13960 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
13961 if test $ac_cv_func_regcomp = yes; then
13962 cf_regex_func=regcomp
13965 for cf_regex_lib in $cf_regex_libs
13967 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
13968 echo "$as_me:13968: checking for regcomp in -l$cf_regex_lib" >&5
13969 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
13970 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13971 echo $ECHO_N "(cached) $ECHO_C" >&6
13973 ac_check_lib_save_LIBS=$LIBS
13974 LIBS="-l$cf_regex_lib $LIBS"
13975 cat >conftest.$ac_ext <<_ACEOF
13976 #line 13976 "configure"
13977 #include "confdefs.h"
13979 /* Override any gcc2 internal prototype to avoid an error. */
13983 /* We use char because int might match the return type of a gcc2
13984 builtin and then its argument prototype would still apply. */
13994 rm -f conftest.$ac_objext conftest$ac_exeext
13995 if { (eval echo "$as_me:13995: \"$ac_link\"") >&5
13996 (eval $ac_link) 2>&5
13998 echo "$as_me:13998: \$? = $ac_status" >&5
13999 (exit $ac_status); } &&
14000 { ac_try='test -s conftest$ac_exeext'
14001 { (eval echo "$as_me:14001: \"$ac_try\"") >&5
14002 (eval $ac_try) 2>&5
14004 echo "$as_me:14004: \$? = $ac_status" >&5
14005 (exit $ac_status); }; }; then
14006 eval "$as_ac_Lib=yes"
14008 echo "$as_me: failed program was:" >&5
14009 cat conftest.$ac_ext >&5
14010 eval "$as_ac_Lib=no"
14012 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14013 LIBS=$ac_check_lib_save_LIBS
14015 echo "$as_me:14015: result: `eval echo '${'$as_ac_Lib'}'`" >&5
14016 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
14017 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
14019 LIBS="-l$cf_regex_lib $LIBS"
14020 cf_regex_func=regcomp
14028 if test "$cf_regex_func" = no ; then
14029 echo "$as_me:14029: checking for compile" >&5
14030 echo $ECHO_N "checking for compile... $ECHO_C" >&6
14031 if test "${ac_cv_func_compile+set}" = set; then
14032 echo $ECHO_N "(cached) $ECHO_C" >&6
14034 cat >conftest.$ac_ext <<_ACEOF
14035 #line 14035 "configure"
14036 #include "confdefs.h"
14037 /* System header to define __stub macros and hopefully few prototypes,
14038 which can conflict with char compile (); below. */
14039 #include <assert.h>
14040 /* Override any gcc2 internal prototype to avoid an error. */
14044 /* We use char because int might match the return type of a gcc2
14045 builtin and then its argument prototype would still apply. */
14052 /* The GNU C library defines this for functions which it implements
14053 to always fail with ENOSYS. Some functions are actually named
14054 something starting with __ and the normal name is an alias. */
14055 #if defined (__stub_compile) || defined (__stub___compile)
14058 f = compile; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
14065 rm -f conftest.$ac_objext conftest$ac_exeext
14066 if { (eval echo "$as_me:14066: \"$ac_link\"") >&5
14067 (eval $ac_link) 2>&5
14069 echo "$as_me:14069: \$? = $ac_status" >&5
14070 (exit $ac_status); } &&
14071 { ac_try='test -s conftest$ac_exeext'
14072 { (eval echo "$as_me:14072: \"$ac_try\"") >&5
14073 (eval $ac_try) 2>&5
14075 echo "$as_me:14075: \$? = $ac_status" >&5
14076 (exit $ac_status); }; }; then
14077 ac_cv_func_compile=yes
14079 echo "$as_me: failed program was:" >&5
14080 cat conftest.$ac_ext >&5
14081 ac_cv_func_compile=no
14083 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14085 echo "$as_me:14085: result: $ac_cv_func_compile" >&5
14086 echo "${ECHO_T}$ac_cv_func_compile" >&6
14087 if test $ac_cv_func_compile = yes; then
14088 cf_regex_func=compile
14091 echo "$as_me:14091: checking for compile in -lgen" >&5
14092 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
14093 if test "${ac_cv_lib_gen_compile+set}" = set; then
14094 echo $ECHO_N "(cached) $ECHO_C" >&6
14096 ac_check_lib_save_LIBS=$LIBS
14098 cat >conftest.$ac_ext <<_ACEOF
14099 #line 14099 "configure"
14100 #include "confdefs.h"
14102 /* Override any gcc2 internal prototype to avoid an error. */
14106 /* We use char because int might match the return type of a gcc2
14107 builtin and then its argument prototype would still apply. */
14117 rm -f conftest.$ac_objext conftest$ac_exeext
14118 if { (eval echo "$as_me:14118: \"$ac_link\"") >&5
14119 (eval $ac_link) 2>&5
14121 echo "$as_me:14121: \$? = $ac_status" >&5
14122 (exit $ac_status); } &&
14123 { ac_try='test -s conftest$ac_exeext'
14124 { (eval echo "$as_me:14124: \"$ac_try\"") >&5
14125 (eval $ac_try) 2>&5
14127 echo "$as_me:14127: \$? = $ac_status" >&5
14128 (exit $ac_status); }; }; then
14129 ac_cv_lib_gen_compile=yes
14131 echo "$as_me: failed program was:" >&5
14132 cat conftest.$ac_ext >&5
14133 ac_cv_lib_gen_compile=no
14135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14136 LIBS=$ac_check_lib_save_LIBS
14138 echo "$as_me:14138: result: $ac_cv_lib_gen_compile" >&5
14139 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
14140 if test $ac_cv_lib_gen_compile = yes; then
14143 cf_regex_func=compile
14150 if test "$cf_regex_func" = no ; then
14151 { echo "$as_me:14151: WARNING: cannot find regular expression library" >&5
14152 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
14155 echo "$as_me:14155: checking for regular-expression headers" >&5
14156 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
14157 if test "${cf_cv_regex_hdrs+set}" = set; then
14158 echo $ECHO_N "(cached) $ECHO_C" >&6
14161 cf_cv_regex_hdrs=no
14162 case $cf_regex_func in #(vi
14164 for cf_regex_hdr in regexp.h regexpr.h
14166 cat >conftest.$ac_ext <<_ACEOF
14167 #line 14167 "configure"
14168 #include "confdefs.h"
14169 #include <$cf_regex_hdr>
14174 char *p = compile("", "", "", 0);
14175 int x = step("", "");
14181 rm -f conftest.$ac_objext conftest$ac_exeext
14182 if { (eval echo "$as_me:14182: \"$ac_link\"") >&5
14183 (eval $ac_link) 2>&5
14185 echo "$as_me:14185: \$? = $ac_status" >&5
14186 (exit $ac_status); } &&
14187 { ac_try='test -s conftest$ac_exeext'
14188 { (eval echo "$as_me:14188: \"$ac_try\"") >&5
14189 (eval $ac_try) 2>&5
14191 echo "$as_me:14191: \$? = $ac_status" >&5
14192 (exit $ac_status); }; }; then
14194 cf_cv_regex_hdrs=$cf_regex_hdr
14198 echo "$as_me: failed program was:" >&5
14199 cat conftest.$ac_ext >&5
14201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14205 for cf_regex_hdr in regex.h
14207 cat >conftest.$ac_ext <<_ACEOF
14208 #line 14208 "configure"
14209 #include "confdefs.h"
14210 #include <sys/types.h>
14211 #include <$cf_regex_hdr>
14217 int x = regcomp(p, "", 0);
14218 int y = regexec(p, "", 0, 0, 0);
14225 rm -f conftest.$ac_objext conftest$ac_exeext
14226 if { (eval echo "$as_me:14226: \"$ac_link\"") >&5
14227 (eval $ac_link) 2>&5
14229 echo "$as_me:14229: \$? = $ac_status" >&5
14230 (exit $ac_status); } &&
14231 { ac_try='test -s conftest$ac_exeext'
14232 { (eval echo "$as_me:14232: \"$ac_try\"") >&5
14233 (eval $ac_try) 2>&5
14235 echo "$as_me:14235: \$? = $ac_status" >&5
14236 (exit $ac_status); }; }; then
14238 cf_cv_regex_hdrs=$cf_regex_hdr
14242 echo "$as_me: failed program was:" >&5
14243 cat conftest.$ac_ext >&5
14245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14251 echo "$as_me:14251: result: $cf_cv_regex_hdrs" >&5
14252 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
14254 case $cf_cv_regex_hdrs in #(vi
14255 no) { echo "$as_me:14255: WARNING: no regular expression header found" >&5
14256 echo "$as_me: WARNING: no regular expression header found" >&2;} ;; #(vi
14257 regex.h) cat >>confdefs.h <<\EOF
14258 #define HAVE_REGEX_H_FUNCS 1
14261 regexp.h) cat >>confdefs.h <<\EOF
14262 #define HAVE_REGEXP_H_FUNCS 1
14265 regexpr.h) cat >>confdefs.h <<\EOF
14266 #define HAVE_REGEXPR_H_FUNCS 1
14290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14291 echo "$as_me:14291: checking for $ac_header" >&5
14292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14294 echo $ECHO_N "(cached) $ECHO_C" >&6
14296 cat >conftest.$ac_ext <<_ACEOF
14297 #line 14297 "configure"
14298 #include "confdefs.h"
14299 #include <$ac_header>
14301 if { (eval echo "$as_me:14301: \"$ac_cpp conftest.$ac_ext\"") >&5
14302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14304 egrep -v '^ *\+' conftest.er1 >conftest.err
14306 cat conftest.err >&5
14307 echo "$as_me:14307: \$? = $ac_status" >&5
14308 (exit $ac_status); } >/dev/null; then
14309 if test -s conftest.err; then
14310 ac_cpp_err=$ac_c_preproc_warn_flag
14317 if test -z "$ac_cpp_err"; then
14318 eval "$as_ac_Header=yes"
14320 echo "$as_me: failed program was:" >&5
14321 cat conftest.$ac_ext >&5
14322 eval "$as_ac_Header=no"
14324 rm -f conftest.err conftest.$ac_ext
14326 echo "$as_me:14326: result: `eval echo '${'$as_ac_Header'}'`" >&5
14327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14328 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14329 cat >>confdefs.h <<EOF
14330 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14336 for ac_header in unistd.h getopt.h
14338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14339 echo "$as_me:14339: checking for $ac_header" >&5
14340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14342 echo $ECHO_N "(cached) $ECHO_C" >&6
14344 cat >conftest.$ac_ext <<_ACEOF
14345 #line 14345 "configure"
14346 #include "confdefs.h"
14347 #include <$ac_header>
14349 if { (eval echo "$as_me:14349: \"$ac_cpp conftest.$ac_ext\"") >&5
14350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14352 egrep -v '^ *\+' conftest.er1 >conftest.err
14354 cat conftest.err >&5
14355 echo "$as_me:14355: \$? = $ac_status" >&5
14356 (exit $ac_status); } >/dev/null; then
14357 if test -s conftest.err; then
14358 ac_cpp_err=$ac_c_preproc_warn_flag
14365 if test -z "$ac_cpp_err"; then
14366 eval "$as_ac_Header=yes"
14368 echo "$as_me: failed program was:" >&5
14369 cat conftest.$ac_ext >&5
14370 eval "$as_ac_Header=no"
14372 rm -f conftest.err conftest.$ac_ext
14374 echo "$as_me:14374: result: `eval echo '${'$as_ac_Header'}'`" >&5
14375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14377 cat >>confdefs.h <<EOF
14378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14384 echo "$as_me:14384: checking for header declaring getopt variables" >&5
14385 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
14386 if test "${cf_cv_getopt_header+set}" = set; then
14387 echo $ECHO_N "(cached) $ECHO_C" >&6
14390 cf_cv_getopt_header=none
14391 for cf_header in stdio.h stdlib.h unistd.h getopt.h
14393 cat >conftest.$ac_ext <<_ACEOF
14394 #line 14394 "configure"
14395 #include "confdefs.h"
14397 #include <$cf_header>
14401 int x = optind; char *y = optarg
14406 rm -f conftest.$ac_objext
14407 if { (eval echo "$as_me:14407: \"$ac_compile\"") >&5
14408 (eval $ac_compile) 2>&5
14410 echo "$as_me:14410: \$? = $ac_status" >&5
14411 (exit $ac_status); } &&
14412 { ac_try='test -s conftest.$ac_objext'
14413 { (eval echo "$as_me:14413: \"$ac_try\"") >&5
14414 (eval $ac_try) 2>&5
14416 echo "$as_me:14416: \$? = $ac_status" >&5
14417 (exit $ac_status); }; }; then
14418 cf_cv_getopt_header=$cf_header
14421 echo "$as_me: failed program was:" >&5
14422 cat conftest.$ac_ext >&5
14424 rm -f conftest.$ac_objext conftest.$ac_ext
14428 echo "$as_me:14428: result: $cf_cv_getopt_header" >&5
14429 echo "${ECHO_T}$cf_cv_getopt_header" >&6
14430 if test $cf_cv_getopt_header != none ; then
14431 cat >>confdefs.h <<\EOF
14432 #define HAVE_GETOPT_HEADER 1
14437 # check for ISC (this may also define _POSIX_SOURCE)
14438 # Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
14439 if test "$ISC" = yes ; then
14441 echo "$as_me:14441: checking for main in -lcposix" >&5
14442 echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6
14443 if test "${ac_cv_lib_cposix_main+set}" = set; then
14444 echo $ECHO_N "(cached) $ECHO_C" >&6
14446 ac_check_lib_save_LIBS=$LIBS
14447 LIBS="-lcposix $LIBS"
14448 cat >conftest.$ac_ext <<_ACEOF
14449 #line 14449 "configure"
14450 #include "confdefs.h"
14460 rm -f conftest.$ac_objext conftest$ac_exeext
14461 if { (eval echo "$as_me:14461: \"$ac_link\"") >&5
14462 (eval $ac_link) 2>&5
14464 echo "$as_me:14464: \$? = $ac_status" >&5
14465 (exit $ac_status); } &&
14466 { ac_try='test -s conftest$ac_exeext'
14467 { (eval echo "$as_me:14467: \"$ac_try\"") >&5
14468 (eval $ac_try) 2>&5
14470 echo "$as_me:14470: \$? = $ac_status" >&5
14471 (exit $ac_status); }; }; then
14472 ac_cv_lib_cposix_main=yes
14474 echo "$as_me: failed program was:" >&5
14475 cat conftest.$ac_ext >&5
14476 ac_cv_lib_cposix_main=no
14478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14479 LIBS=$ac_check_lib_save_LIBS
14481 echo "$as_me:14481: result: $ac_cv_lib_cposix_main" >&5
14482 echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6
14483 if test $ac_cv_lib_cposix_main = yes; then
14484 cat >>confdefs.h <<EOF
14485 #define HAVE_LIBCPOSIX 1
14488 LIBS="-lcposix $LIBS"
14492 echo "$as_me:14492: checking for bzero in -linet" >&5
14493 echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6
14494 if test "${ac_cv_lib_inet_bzero+set}" = set; then
14495 echo $ECHO_N "(cached) $ECHO_C" >&6
14497 ac_check_lib_save_LIBS=$LIBS
14498 LIBS="-linet $LIBS"
14499 cat >conftest.$ac_ext <<_ACEOF
14500 #line 14500 "configure"
14501 #include "confdefs.h"
14503 /* Override any gcc2 internal prototype to avoid an error. */
14507 /* We use char because int might match the return type of a gcc2
14508 builtin and then its argument prototype would still apply. */
14518 rm -f conftest.$ac_objext conftest$ac_exeext
14519 if { (eval echo "$as_me:14519: \"$ac_link\"") >&5
14520 (eval $ac_link) 2>&5
14522 echo "$as_me:14522: \$? = $ac_status" >&5
14523 (exit $ac_status); } &&
14524 { ac_try='test -s conftest$ac_exeext'
14525 { (eval echo "$as_me:14525: \"$ac_try\"") >&5
14526 (eval $ac_try) 2>&5
14528 echo "$as_me:14528: \$? = $ac_status" >&5
14529 (exit $ac_status); }; }; then
14530 ac_cv_lib_inet_bzero=yes
14532 echo "$as_me: failed program was:" >&5
14533 cat conftest.$ac_ext >&5
14534 ac_cv_lib_inet_bzero=no
14536 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14537 LIBS=$ac_check_lib_save_LIBS
14539 echo "$as_me:14539: result: $ac_cv_lib_inet_bzero" >&5
14540 echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6
14541 if test $ac_cv_lib_inet_bzero = yes; then
14542 LIBS="-linet $LIBS"
14546 echo "$as_me:14546: checking if sys/time.h works with sys/select.h" >&5
14547 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
14548 if test "${cf_cv_sys_time_select+set}" = set; then
14549 echo $ECHO_N "(cached) $ECHO_C" >&6
14552 cat >conftest.$ac_ext <<_ACEOF
14553 #line 14553 "configure"
14554 #include "confdefs.h"
14556 #include <sys/types.h>
14557 #ifdef HAVE_SYS_TIME_H
14558 #include <sys/time.h>
14560 #ifdef HAVE_SYS_SELECT_H
14561 #include <sys/select.h>
14572 rm -f conftest.$ac_objext
14573 if { (eval echo "$as_me:14573: \"$ac_compile\"") >&5
14574 (eval $ac_compile) 2>&5
14576 echo "$as_me:14576: \$? = $ac_status" >&5
14577 (exit $ac_status); } &&
14578 { ac_try='test -s conftest.$ac_objext'
14579 { (eval echo "$as_me:14579: \"$ac_try\"") >&5
14580 (eval $ac_try) 2>&5
14582 echo "$as_me:14582: \$? = $ac_status" >&5
14583 (exit $ac_status); }; }; then
14584 cf_cv_sys_time_select=yes
14586 echo "$as_me: failed program was:" >&5
14587 cat conftest.$ac_ext >&5
14588 cf_cv_sys_time_select=no
14590 rm -f conftest.$ac_objext conftest.$ac_ext
14594 echo "$as_me:14594: result: $cf_cv_sys_time_select" >&5
14595 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
14596 test "$cf_cv_sys_time_select" = yes && cat >>confdefs.h <<\EOF
14597 #define HAVE_SYS_TIME_SELECT 1
14600 ### checks for compiler characteristics
14602 ac_cpp='$CPP $CPPFLAGS'
14603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14606 ac_main_return=return
14608 echo "$as_me:14608: checking for $CC option to accept ANSI C" >&5
14609 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
14610 if test "${ac_cv_prog_cc_stdc+set}" = set; then
14611 echo $ECHO_N "(cached) $ECHO_C" >&6
14613 ac_cv_prog_cc_stdc=no
14615 cat >conftest.$ac_ext <<_ACEOF
14616 #line 14616 "configure"
14617 #include "confdefs.h"
14618 #include <stdarg.h>
14620 #include <sys/types.h>
14621 #include <sys/stat.h>
14622 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
14623 struct buf { int x; };
14624 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14625 static char *e (p, i)
14631 static char *f (char * (*g) (char **, int), char **p, ...)
14636 s = g (p, va_arg (v,int));
14640 int test (int i, double x);
14641 struct s1 {int (*f) (int a);};
14642 struct s2 {int (*f) (double a);};
14643 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14649 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
14654 # Don't try gcc -ansi; that turns off useful extensions and
14655 # breaks some systems' header files.
14656 # AIX -qlanglvl=ansi
14657 # Ultrix and OSF/1 -std1
14658 # HP-UX 10.20 and later -Ae
14659 # HP-UX older versions -Aa -D_HPUX_SOURCE
14660 # SVR4 -Xc -D__EXTENSIONS__
14661 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14663 CC="$ac_save_CC $ac_arg"
14664 rm -f conftest.$ac_objext
14665 if { (eval echo "$as_me:14665: \"$ac_compile\"") >&5
14666 (eval $ac_compile) 2>&5
14668 echo "$as_me:14668: \$? = $ac_status" >&5
14669 (exit $ac_status); } &&
14670 { ac_try='test -s conftest.$ac_objext'
14671 { (eval echo "$as_me:14671: \"$ac_try\"") >&5
14672 (eval $ac_try) 2>&5
14674 echo "$as_me:14674: \$? = $ac_status" >&5
14675 (exit $ac_status); }; }; then
14676 ac_cv_prog_cc_stdc=$ac_arg
14679 echo "$as_me: failed program was:" >&5
14680 cat conftest.$ac_ext >&5
14682 rm -f conftest.$ac_objext
14684 rm -f conftest.$ac_ext conftest.$ac_objext
14689 case "x$ac_cv_prog_cc_stdc" in
14691 echo "$as_me:14691: result: none needed" >&5
14692 echo "${ECHO_T}none needed" >&6 ;;
14694 echo "$as_me:14694: result: $ac_cv_prog_cc_stdc" >&5
14695 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
14696 CC="$CC $ac_cv_prog_cc_stdc" ;;
14699 echo "$as_me:14699: checking for an ANSI C-conforming const" >&5
14700 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14701 if test "${ac_cv_c_const+set}" = set; then
14702 echo $ECHO_N "(cached) $ECHO_C" >&6
14704 cat >conftest.$ac_ext <<_ACEOF
14705 #line 14705 "configure"
14706 #include "confdefs.h"
14711 /* FIXME: Include the comments suggested by Paul. */
14712 #ifndef __cplusplus
14713 /* Ultrix mips cc rejects this. */
14714 typedef int charset[2];
14716 /* SunOS 4.1.1 cc rejects this. */
14717 char const *const *ccp;
14719 /* NEC SVR4.0.2 mips cc rejects this. */
14720 struct point {int x, y;};
14721 static struct point const zero = {0,0};
14722 /* AIX XL C 1.02.0.0 rejects this.
14723 It does not let you subtract one const X* pointer from another in
14724 an arm of an if-expression whose if-part is not a constant
14726 const char *g = "string";
14727 ccp = &g + (g ? g-g : 0);
14728 /* HPUX 7.0 cc rejects these. */
14731 ccp = (char const *const *) p;
14732 { /* SCO 3.2v4 cc rejects this. */
14734 char const *s = 0 ? (char *) 0 : (char const *) 0;
14738 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14739 int x[] = {25, 17};
14740 const int *foo = &x[0];
14743 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14744 typedef const int *iptr;
14748 { /* AIX XL C 1.02.0.0 rejects this saying
14749 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14750 struct s { int j; const int *ap[3]; };
14751 struct s *b; b->j = 5;
14753 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14754 const int foo = 10;
14762 rm -f conftest.$ac_objext
14763 if { (eval echo "$as_me:14763: \"$ac_compile\"") >&5
14764 (eval $ac_compile) 2>&5
14766 echo "$as_me:14766: \$? = $ac_status" >&5
14767 (exit $ac_status); } &&
14768 { ac_try='test -s conftest.$ac_objext'
14769 { (eval echo "$as_me:14769: \"$ac_try\"") >&5
14770 (eval $ac_try) 2>&5
14772 echo "$as_me:14772: \$? = $ac_status" >&5
14773 (exit $ac_status); }; }; then
14776 echo "$as_me: failed program was:" >&5
14777 cat conftest.$ac_ext >&5
14780 rm -f conftest.$ac_objext conftest.$ac_ext
14782 echo "$as_me:14782: result: $ac_cv_c_const" >&5
14783 echo "${ECHO_T}$ac_cv_c_const" >&6
14784 if test $ac_cv_c_const = no; then
14786 cat >>confdefs.h <<\EOF
14792 echo "$as_me:14792: checking for inline" >&5
14793 echo $ECHO_N "checking for inline... $ECHO_C" >&6
14794 if test "${ac_cv_c_inline+set}" = set; then
14795 echo $ECHO_N "(cached) $ECHO_C" >&6
14798 for ac_kw in inline __inline__ __inline; do
14799 cat >conftest.$ac_ext <<_ACEOF
14800 #line 14800 "configure"
14801 #include "confdefs.h"
14802 #ifndef __cplusplus
14803 static $ac_kw int static_foo () {return 0; }
14804 $ac_kw int foo () {return 0; }
14808 rm -f conftest.$ac_objext
14809 if { (eval echo "$as_me:14809: \"$ac_compile\"") >&5
14810 (eval $ac_compile) 2>&5
14812 echo "$as_me:14812: \$? = $ac_status" >&5
14813 (exit $ac_status); } &&
14814 { ac_try='test -s conftest.$ac_objext'
14815 { (eval echo "$as_me:14815: \"$ac_try\"") >&5
14816 (eval $ac_try) 2>&5
14818 echo "$as_me:14818: \$? = $ac_status" >&5
14819 (exit $ac_status); }; }; then
14820 ac_cv_c_inline=$ac_kw; break
14822 echo "$as_me: failed program was:" >&5
14823 cat conftest.$ac_ext >&5
14825 rm -f conftest.$ac_objext conftest.$ac_ext
14829 echo "$as_me:14829: result: $ac_cv_c_inline" >&5
14830 echo "${ECHO_T}$ac_cv_c_inline" >&6
14831 case $ac_cv_c_inline in
14834 cat >>confdefs.h <<\EOF
14838 *) cat >>confdefs.h <<EOF
14839 #define inline $ac_cv_c_inline
14845 if test "$ac_cv_c_inline" != no ; then
14846 NCURSES_INLINE=inline
14847 if test "$INTEL_COMPILER" = yes
14850 elif test "$CLANG_COMPILER" = yes
14853 elif test "$GCC" = yes
14855 echo "$as_me:14855: checking if $CC supports options to tune inlining" >&5
14856 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
14857 if test "${cf_cv_gcc_inline+set}" = set; then
14858 echo $ECHO_N "(cached) $ECHO_C" >&6
14861 cf_save_CFLAGS=$CFLAGS
14862 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
14863 cat >conftest.$ac_ext <<_ACEOF
14864 #line 14864 "configure"
14865 #include "confdefs.h"
14866 inline int foo(void) { return 1; }
14870 ${cf_cv_main_return:-return} foo()
14875 rm -f conftest.$ac_objext
14876 if { (eval echo "$as_me:14876: \"$ac_compile\"") >&5
14877 (eval $ac_compile) 2>&5
14879 echo "$as_me:14879: \$? = $ac_status" >&5
14880 (exit $ac_status); } &&
14881 { ac_try='test -s conftest.$ac_objext'
14882 { (eval echo "$as_me:14882: \"$ac_try\"") >&5
14883 (eval $ac_try) 2>&5
14885 echo "$as_me:14885: \$? = $ac_status" >&5
14886 (exit $ac_status); }; }; then
14887 cf_cv_gcc_inline=yes
14889 echo "$as_me: failed program was:" >&5
14890 cat conftest.$ac_ext >&5
14891 cf_cv_gcc_inline=no
14893 rm -f conftest.$ac_objext conftest.$ac_ext
14894 CFLAGS=$cf_save_CFLAGS
14897 echo "$as_me:14897: result: $cf_cv_gcc_inline" >&5
14898 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
14899 if test "$cf_cv_gcc_inline" = yes ; then
14904 cf_new_extra_cppflags=
14906 for cf_add_cflags in --param max-inline-insns-single=1200
14908 case $cf_fix_cppflags in
14910 case $cf_add_cflags in #(vi
14911 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
14912 case $cf_add_cflags in
14914 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14916 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
14917 && test -z "${cf_tst_cflags}" \
14918 && cf_fix_cppflags=yes
14920 if test $cf_fix_cppflags = yes ; then
14921 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14923 elif test "${cf_tst_cflags}" = "\"'" ; then
14924 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14929 case "$CPPFLAGS" in
14930 *$cf_add_cflags) #(vi
14933 case $cf_add_cflags in #(vi
14935 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14937 CPPFLAGS=`echo "$CPPFLAGS" | \
14938 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14939 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14943 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
14948 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
14953 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14955 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14957 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
14958 && test -z "${cf_tst_cflags}" \
14959 && cf_fix_cppflags=no
14964 if test -n "$cf_new_cflags" ; then
14966 CFLAGS="$CFLAGS $cf_new_cflags"
14969 if test -n "$cf_new_cppflags" ; then
14971 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
14974 if test -n "$cf_new_extra_cppflags" ; then
14976 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
14983 echo "$as_me:14983: checking for signal global datatype" >&5
14984 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
14985 if test "${cf_cv_sig_atomic_t+set}" = set; then
14986 echo $ECHO_N "(cached) $ECHO_C" >&6
14990 "volatile sig_atomic_t" \
14994 cat >conftest.$ac_ext <<_ACEOF
14995 #line 14995 "configure"
14996 #include "confdefs.h"
14998 #include <sys/types.h>
14999 #include <signal.h>
15004 static void handler(int sig)
15011 signal(SIGINT, handler);
15017 rm -f conftest.$ac_objext
15018 if { (eval echo "$as_me:15018: \"$ac_compile\"") >&5
15019 (eval $ac_compile) 2>&5
15021 echo "$as_me:15021: \$? = $ac_status" >&5
15022 (exit $ac_status); } &&
15023 { ac_try='test -s conftest.$ac_objext'
15024 { (eval echo "$as_me:15024: \"$ac_try\"") >&5
15025 (eval $ac_try) 2>&5
15027 echo "$as_me:15027: \$? = $ac_status" >&5
15028 (exit $ac_status); }; }; then
15029 cf_cv_sig_atomic_t=$cf_type
15031 echo "$as_me: failed program was:" >&5
15032 cat conftest.$ac_ext >&5
15033 cf_cv_sig_atomic_t=no
15035 rm -f conftest.$ac_objext conftest.$ac_ext
15036 test "$cf_cv_sig_atomic_t" != no && break
15041 echo "$as_me:15041: result: $cf_cv_sig_atomic_t" >&5
15042 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
15043 test "$cf_cv_sig_atomic_t" != no && cat >>confdefs.h <<EOF
15044 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
15047 if test $NCURSES_CHTYPE = auto ; then
15049 echo "$as_me:15049: checking for type of chtype" >&5
15050 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
15051 if test "${cf_cv_typeof_chtype+set}" = set; then
15052 echo $ECHO_N "(cached) $ECHO_C" >&6
15055 if test "$cross_compiling" = yes; then
15056 cf_cv_typeof_chtype=long
15058 cat >conftest.$ac_ext <<_ACEOF
15059 #line 15059 "configure"
15060 #include "confdefs.h"
15062 #define WANT_BITS 31
15066 FILE *fp = fopen("cf_test.out", "w");
15068 char *result = "long";
15069 if (sizeof(unsigned long) > sizeof(unsigned int)) {
15072 for (n = 0; n < WANT_BITS; n++) {
15075 if (y != 1 || x == 0) {
15081 * If x is nonzero, an int is big enough for the bits
15084 result = (x != 0) ? "int" : "long";
15089 ${cf_cv_main_return:-return}(0);
15093 rm -f conftest$ac_exeext
15094 if { (eval echo "$as_me:15094: \"$ac_link\"") >&5
15095 (eval $ac_link) 2>&5
15097 echo "$as_me:15097: \$? = $ac_status" >&5
15098 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15099 { (eval echo "$as_me:15099: \"$ac_try\"") >&5
15100 (eval $ac_try) 2>&5
15102 echo "$as_me:15102: \$? = $ac_status" >&5
15103 (exit $ac_status); }; }; then
15104 cf_cv_typeof_chtype=`cat cf_test.out`
15106 echo "$as_me: program exited with status $ac_status" >&5
15107 echo "$as_me: failed program was:" >&5
15108 cat conftest.$ac_ext >&5
15109 cf_cv_typeof_chtype=long
15111 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15117 echo "$as_me:15117: result: $cf_cv_typeof_chtype" >&5
15118 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
15120 cat >>confdefs.h <<EOF
15121 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
15125 cf_cv_typeof_chtype=$NCURSES_CHTYPE
15127 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
15129 echo "$as_me:15129: checking if unsigned literals are legal" >&5
15130 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
15131 if test "${cf_cv_unsigned_literals+set}" = set; then
15132 echo $ECHO_N "(cached) $ECHO_C" >&6
15135 cat >conftest.$ac_ext <<_ACEOF
15136 #line 15136 "configure"
15137 #include "confdefs.h"
15142 long x = 1L + 1UL + 1U + 1
15147 rm -f conftest.$ac_objext
15148 if { (eval echo "$as_me:15148: \"$ac_compile\"") >&5
15149 (eval $ac_compile) 2>&5
15151 echo "$as_me:15151: \$? = $ac_status" >&5
15152 (exit $ac_status); } &&
15153 { ac_try='test -s conftest.$ac_objext'
15154 { (eval echo "$as_me:15154: \"$ac_try\"") >&5
15155 (eval $ac_try) 2>&5
15157 echo "$as_me:15157: \$? = $ac_status" >&5
15158 (exit $ac_status); }; }; then
15159 cf_cv_unsigned_literals=yes
15161 echo "$as_me: failed program was:" >&5
15162 cat conftest.$ac_ext >&5
15163 cf_cv_unsigned_literals=no
15165 rm -f conftest.$ac_objext conftest.$ac_ext
15169 echo "$as_me:15169: result: $cf_cv_unsigned_literals" >&5
15170 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
15173 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
15174 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
15176 if test $NCURSES_MMASK_T = auto ; then
15177 cf_cv_typeof_mmask_t=long
15179 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
15181 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
15183 ### Checks for external-data
15185 echo "$as_me:15185: checking if external errno is declared" >&5
15186 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
15187 if test "${cf_cv_dcl_errno+set}" = set; then
15188 echo $ECHO_N "(cached) $ECHO_C" >&6
15191 cat >conftest.$ac_ext <<_ACEOF
15192 #line 15192 "configure"
15193 #include "confdefs.h"
15195 #ifdef HAVE_STDLIB_H
15196 #include <stdlib.h>
15199 #include <sys/types.h>
15204 int x = (int) errno
15209 rm -f conftest.$ac_objext
15210 if { (eval echo "$as_me:15210: \"$ac_compile\"") >&5
15211 (eval $ac_compile) 2>&5
15213 echo "$as_me:15213: \$? = $ac_status" >&5
15214 (exit $ac_status); } &&
15215 { ac_try='test -s conftest.$ac_objext'
15216 { (eval echo "$as_me:15216: \"$ac_try\"") >&5
15217 (eval $ac_try) 2>&5
15219 echo "$as_me:15219: \$? = $ac_status" >&5
15220 (exit $ac_status); }; }; then
15221 cf_cv_dcl_errno=yes
15223 echo "$as_me: failed program was:" >&5
15224 cat conftest.$ac_ext >&5
15227 rm -f conftest.$ac_objext conftest.$ac_ext
15230 echo "$as_me:15230: result: $cf_cv_dcl_errno" >&5
15231 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
15233 if test "$cf_cv_dcl_errno" = no ; then
15235 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15237 cat >>confdefs.h <<EOF
15238 #define $cf_result 1
15243 # It's possible (for near-UNIX clones) that the data doesn't exist
15245 echo "$as_me:15245: checking if external errno exists" >&5
15246 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
15247 if test "${cf_cv_have_errno+set}" = set; then
15248 echo $ECHO_N "(cached) $ECHO_C" >&6
15251 cat >conftest.$ac_ext <<_ACEOF
15252 #line 15252 "configure"
15253 #include "confdefs.h"
15266 rm -f conftest.$ac_objext conftest$ac_exeext
15267 if { (eval echo "$as_me:15267: \"$ac_link\"") >&5
15268 (eval $ac_link) 2>&5
15270 echo "$as_me:15270: \$? = $ac_status" >&5
15271 (exit $ac_status); } &&
15272 { ac_try='test -s conftest$ac_exeext'
15273 { (eval echo "$as_me:15273: \"$ac_try\"") >&5
15274 (eval $ac_try) 2>&5
15276 echo "$as_me:15276: \$? = $ac_status" >&5
15277 (exit $ac_status); }; }; then
15278 cf_cv_have_errno=yes
15280 echo "$as_me: failed program was:" >&5
15281 cat conftest.$ac_ext >&5
15282 cf_cv_have_errno=no
15284 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15287 echo "$as_me:15287: result: $cf_cv_have_errno" >&5
15288 echo "${ECHO_T}$cf_cv_have_errno" >&6
15290 if test "$cf_cv_have_errno" = yes ; then
15292 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15294 cat >>confdefs.h <<EOF
15295 #define $cf_result 1
15300 echo "$as_me:15300: checking if data-only library module links" >&5
15301 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
15302 if test "${cf_cv_link_dataonly+set}" = set; then
15303 echo $ECHO_N "(cached) $ECHO_C" >&6
15307 cat >conftest.$ac_ext <<EOF
15308 #line 15308 "configure"
15309 int testdata[3] = { 123, 456, 789 };
15311 if { (eval echo "$as_me:15311: \"$ac_compile\"") >&5
15312 (eval $ac_compile) 2>&5
15314 echo "$as_me:15314: \$? = $ac_status" >&5
15315 (exit $ac_status); } ; then
15316 mv conftest.o data.o && \
15317 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
15319 rm -f conftest.$ac_ext data.o
15320 cat >conftest.$ac_ext <<EOF
15321 #line 15321 "configure"
15325 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
15327 extern int testdata[3];
15328 return testdata[0] == 123
15329 && testdata[1] == 456
15330 && testdata[2] == 789;
15334 if { (eval echo "$as_me:15334: \"$ac_compile\"") >&5
15335 (eval $ac_compile) 2>&5
15337 echo "$as_me:15337: \$? = $ac_status" >&5
15338 (exit $ac_status); }; then
15339 mv conftest.o func.o && \
15340 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
15342 rm -f conftest.$ac_ext func.o
15343 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
15344 cf_saveLIBS="$LIBS"
15345 LIBS="conftest.a $LIBS"
15346 if test "$cross_compiling" = yes; then
15347 cf_cv_link_dataonly=unknown
15349 cat >conftest.$ac_ext <<_ACEOF
15350 #line 15350 "configure"
15351 #include "confdefs.h"
15355 extern int testfunc();
15356 ${cf_cv_main_return:-return} (!testfunc());
15360 rm -f conftest$ac_exeext
15361 if { (eval echo "$as_me:15361: \"$ac_link\"") >&5
15362 (eval $ac_link) 2>&5
15364 echo "$as_me:15364: \$? = $ac_status" >&5
15365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15366 { (eval echo "$as_me:15366: \"$ac_try\"") >&5
15367 (eval $ac_try) 2>&5
15369 echo "$as_me:15369: \$? = $ac_status" >&5
15370 (exit $ac_status); }; }; then
15371 cf_cv_link_dataonly=yes
15373 echo "$as_me: program exited with status $ac_status" >&5
15374 echo "$as_me: failed program was:" >&5
15375 cat conftest.$ac_ext >&5
15376 cf_cv_link_dataonly=no
15378 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15380 LIBS="$cf_saveLIBS"
15384 echo "$as_me:15384: result: $cf_cv_link_dataonly" >&5
15385 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
15387 if test "$cf_cv_link_dataonly" = no ; then
15388 cat >>confdefs.h <<\EOF
15389 #define BROKEN_LINKER 1
15395 ### Checks for library functions.
15420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15421 echo "$as_me:15421: checking for $ac_func" >&5
15422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15423 if eval "test \"\${$as_ac_var+set}\" = set"; then
15424 echo $ECHO_N "(cached) $ECHO_C" >&6
15426 cat >conftest.$ac_ext <<_ACEOF
15427 #line 15427 "configure"
15428 #include "confdefs.h"
15429 /* System header to define __stub macros and hopefully few prototypes,
15430 which can conflict with char $ac_func (); below. */
15431 #include <assert.h>
15432 /* Override any gcc2 internal prototype to avoid an error. */
15436 /* We use char because int might match the return type of a gcc2
15437 builtin and then its argument prototype would still apply. */
15444 /* The GNU C library defines this for functions which it implements
15445 to always fail with ENOSYS. Some functions are actually named
15446 something starting with __ and the normal name is an alias. */
15447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15450 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
15457 rm -f conftest.$ac_objext conftest$ac_exeext
15458 if { (eval echo "$as_me:15458: \"$ac_link\"") >&5
15459 (eval $ac_link) 2>&5
15461 echo "$as_me:15461: \$? = $ac_status" >&5
15462 (exit $ac_status); } &&
15463 { ac_try='test -s conftest$ac_exeext'
15464 { (eval echo "$as_me:15464: \"$ac_try\"") >&5
15465 (eval $ac_try) 2>&5
15467 echo "$as_me:15467: \$? = $ac_status" >&5
15468 (exit $ac_status); }; }; then
15469 eval "$as_ac_var=yes"
15471 echo "$as_me: failed program was:" >&5
15472 cat conftest.$ac_ext >&5
15473 eval "$as_ac_var=no"
15475 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15477 echo "$as_me:15477: result: `eval echo '${'$as_ac_var'}'`" >&5
15478 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15479 if test `eval echo '${'$as_ac_var'}'` = yes; then
15480 cat >>confdefs.h <<EOF
15481 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15487 if test "$with_getcap" = "yes" ; then
15489 echo "$as_me:15489: checking for terminal-capability database functions" >&5
15490 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
15491 if test "${cf_cv_cgetent+set}" = set; then
15492 echo $ECHO_N "(cached) $ECHO_C" >&6
15495 cat >conftest.$ac_ext <<_ACEOF
15496 #line 15496 "configure"
15497 #include "confdefs.h"
15499 #include <stdlib.h>
15506 char *db_array = temp;
15507 cgetent(&buf, &db_array, "vt100");
15508 cgetcap(buf, "tc", '=');
15509 cgetmatch(buf, "tc");
15515 rm -f conftest.$ac_objext conftest$ac_exeext
15516 if { (eval echo "$as_me:15516: \"$ac_link\"") >&5
15517 (eval $ac_link) 2>&5
15519 echo "$as_me:15519: \$? = $ac_status" >&5
15520 (exit $ac_status); } &&
15521 { ac_try='test -s conftest$ac_exeext'
15522 { (eval echo "$as_me:15522: \"$ac_try\"") >&5
15523 (eval $ac_try) 2>&5
15525 echo "$as_me:15525: \$? = $ac_status" >&5
15526 (exit $ac_status); }; }; then
15529 echo "$as_me: failed program was:" >&5
15530 cat conftest.$ac_ext >&5
15533 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15536 echo "$as_me:15536: result: $cf_cv_cgetent" >&5
15537 echo "${ECHO_T}$cf_cv_cgetent" >&6
15539 if test "$cf_cv_cgetent" = yes
15541 cat >>confdefs.h <<\EOF
15542 #define HAVE_BSD_CGETENT 1
15545 echo "$as_me:15545: checking if cgetent uses const parameter" >&5
15546 echo $ECHO_N "checking if cgetent uses const parameter... $ECHO_C" >&6
15547 if test "${cf_cv_cgetent_const+set}" = set; then
15548 echo $ECHO_N "(cached) $ECHO_C" >&6
15551 cat >conftest.$ac_ext <<_ACEOF
15552 #line 15552 "configure"
15553 #include "confdefs.h"
15555 #include <stdlib.h>
15562 #ifndef _NETBSD_SOURCE /* given, since April 2004 in stdlib.h */
15563 const char *db_array = temp;
15564 cgetent(&buf, &db_array, "vt100");
15566 cgetcap(buf, "tc", '=');
15567 cgetmatch(buf, "tc");
15573 rm -f conftest.$ac_objext conftest$ac_exeext
15574 if { (eval echo "$as_me:15574: \"$ac_link\"") >&5
15575 (eval $ac_link) 2>&5
15577 echo "$as_me:15577: \$? = $ac_status" >&5
15578 (exit $ac_status); } &&
15579 { ac_try='test -s conftest$ac_exeext'
15580 { (eval echo "$as_me:15580: \"$ac_try\"") >&5
15581 (eval $ac_try) 2>&5
15583 echo "$as_me:15583: \$? = $ac_status" >&5
15584 (exit $ac_status); }; }; then
15585 cf_cv_cgetent_const=yes
15587 echo "$as_me: failed program was:" >&5
15588 cat conftest.$ac_ext >&5
15589 cf_cv_cgetent_const=no
15591 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15594 echo "$as_me:15594: result: $cf_cv_cgetent_const" >&5
15595 echo "${ECHO_T}$cf_cv_cgetent_const" >&6
15596 if test "$cf_cv_cgetent_const" = yes
15598 cat >>confdefs.h <<EOF
15599 #define CGETENT_CONST const
15607 echo "$as_me:15607: checking for isascii" >&5
15608 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
15609 if test "${cf_cv_have_isascii+set}" = set; then
15610 echo $ECHO_N "(cached) $ECHO_C" >&6
15613 cat >conftest.$ac_ext <<_ACEOF
15614 #line 15614 "configure"
15615 #include "confdefs.h"
15620 int x = isascii(' ')
15625 rm -f conftest.$ac_objext conftest$ac_exeext
15626 if { (eval echo "$as_me:15626: \"$ac_link\"") >&5
15627 (eval $ac_link) 2>&5
15629 echo "$as_me:15629: \$? = $ac_status" >&5
15630 (exit $ac_status); } &&
15631 { ac_try='test -s conftest$ac_exeext'
15632 { (eval echo "$as_me:15632: \"$ac_try\"") >&5
15633 (eval $ac_try) 2>&5
15635 echo "$as_me:15635: \$? = $ac_status" >&5
15636 (exit $ac_status); }; }; then
15637 cf_cv_have_isascii=yes
15639 echo "$as_me: failed program was:" >&5
15640 cat conftest.$ac_ext >&5
15641 cf_cv_have_isascii=no
15643 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15646 echo "$as_me:15646: result: $cf_cv_have_isascii" >&5
15647 echo "${ECHO_T}$cf_cv_have_isascii" >&6
15648 test "$cf_cv_have_isascii" = yes && cat >>confdefs.h <<\EOF
15649 #define HAVE_ISASCII 1
15652 if test "$ac_cv_func_sigaction" = yes; then
15653 echo "$as_me:15653: checking whether sigaction needs _POSIX_SOURCE" >&5
15654 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
15655 cat >conftest.$ac_ext <<_ACEOF
15656 #line 15656 "configure"
15657 #include "confdefs.h"
15659 #include <sys/types.h>
15660 #include <signal.h>
15664 struct sigaction act
15669 rm -f conftest.$ac_objext
15670 if { (eval echo "$as_me:15670: \"$ac_compile\"") >&5
15671 (eval $ac_compile) 2>&5
15673 echo "$as_me:15673: \$? = $ac_status" >&5
15674 (exit $ac_status); } &&
15675 { ac_try='test -s conftest.$ac_objext'
15676 { (eval echo "$as_me:15676: \"$ac_try\"") >&5
15677 (eval $ac_try) 2>&5
15679 echo "$as_me:15679: \$? = $ac_status" >&5
15680 (exit $ac_status); }; }; then
15683 echo "$as_me: failed program was:" >&5
15684 cat conftest.$ac_ext >&5
15686 cat >conftest.$ac_ext <<_ACEOF
15687 #line 15687 "configure"
15688 #include "confdefs.h"
15690 #define _POSIX_SOURCE
15691 #include <sys/types.h>
15692 #include <signal.h>
15696 struct sigaction act
15701 rm -f conftest.$ac_objext
15702 if { (eval echo "$as_me:15702: \"$ac_compile\"") >&5
15703 (eval $ac_compile) 2>&5
15705 echo "$as_me:15705: \$? = $ac_status" >&5
15706 (exit $ac_status); } &&
15707 { ac_try='test -s conftest.$ac_objext'
15708 { (eval echo "$as_me:15708: \"$ac_try\"") >&5
15709 (eval $ac_try) 2>&5
15711 echo "$as_me:15711: \$? = $ac_status" >&5
15712 (exit $ac_status); }; }; then
15714 cat >>confdefs.h <<\EOF
15715 #define _POSIX_SOURCE 1
15719 echo "$as_me: failed program was:" >&5
15720 cat conftest.$ac_ext >&5
15723 rm -f conftest.$ac_objext conftest.$ac_ext
15725 rm -f conftest.$ac_objext conftest.$ac_ext
15726 echo "$as_me:15726: result: $sigact_bad" >&5
15727 echo "${ECHO_T}$sigact_bad" >&6
15730 echo "$as_me:15730: checking if nanosleep really works" >&5
15731 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
15732 if test "${cf_cv_func_nanosleep+set}" = set; then
15733 echo $ECHO_N "(cached) $ECHO_C" >&6
15736 if test "$cross_compiling" = yes; then
15737 cf_cv_func_nanosleep=unknown
15739 cat >conftest.$ac_ext <<_ACEOF
15740 #line 15740 "configure"
15741 #include "confdefs.h"
15747 #ifdef HAVE_SYS_TIME_H
15748 #include <sys/time.h>
15752 struct timespec ts1, ts2;
15755 ts1.tv_nsec = 750000000;
15759 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
15760 ${cf_cv_main_return:-return}(code != 0);
15764 rm -f conftest$ac_exeext
15765 if { (eval echo "$as_me:15765: \"$ac_link\"") >&5
15766 (eval $ac_link) 2>&5
15768 echo "$as_me:15768: \$? = $ac_status" >&5
15769 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15770 { (eval echo "$as_me:15770: \"$ac_try\"") >&5
15771 (eval $ac_try) 2>&5
15773 echo "$as_me:15773: \$? = $ac_status" >&5
15774 (exit $ac_status); }; }; then
15775 cf_cv_func_nanosleep=yes
15777 echo "$as_me: program exited with status $ac_status" >&5
15778 echo "$as_me: failed program was:" >&5
15779 cat conftest.$ac_ext >&5
15780 cf_cv_func_nanosleep=no
15782 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15785 echo "$as_me:15785: result: $cf_cv_func_nanosleep" >&5
15786 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
15788 test "$cf_cv_func_nanosleep" = "yes" && cat >>confdefs.h <<\EOF
15789 #define HAVE_NANOSLEEP 1
15798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15799 echo "$as_me:15799: checking for $ac_header" >&5
15800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15802 echo $ECHO_N "(cached) $ECHO_C" >&6
15804 cat >conftest.$ac_ext <<_ACEOF
15805 #line 15805 "configure"
15806 #include "confdefs.h"
15807 #include <$ac_header>
15809 if { (eval echo "$as_me:15809: \"$ac_cpp conftest.$ac_ext\"") >&5
15810 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15812 egrep -v '^ *\+' conftest.er1 >conftest.err
15814 cat conftest.err >&5
15815 echo "$as_me:15815: \$? = $ac_status" >&5
15816 (exit $ac_status); } >/dev/null; then
15817 if test -s conftest.err; then
15818 ac_cpp_err=$ac_c_preproc_warn_flag
15825 if test -z "$ac_cpp_err"; then
15826 eval "$as_ac_Header=yes"
15828 echo "$as_me: failed program was:" >&5
15829 cat conftest.$ac_ext >&5
15830 eval "$as_ac_Header=no"
15832 rm -f conftest.err conftest.$ac_ext
15834 echo "$as_me:15834: result: `eval echo '${'$as_ac_Header'}'`" >&5
15835 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15837 cat >>confdefs.h <<EOF
15838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15844 if test "$ISC" = yes ; then
15846 for ac_header in sys/termio.h
15848 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15849 echo "$as_me:15849: checking for $ac_header" >&5
15850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15852 echo $ECHO_N "(cached) $ECHO_C" >&6
15854 cat >conftest.$ac_ext <<_ACEOF
15855 #line 15855 "configure"
15856 #include "confdefs.h"
15857 #include <$ac_header>
15859 if { (eval echo "$as_me:15859: \"$ac_cpp conftest.$ac_ext\"") >&5
15860 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15862 egrep -v '^ *\+' conftest.er1 >conftest.err
15864 cat conftest.err >&5
15865 echo "$as_me:15865: \$? = $ac_status" >&5
15866 (exit $ac_status); } >/dev/null; then
15867 if test -s conftest.err; then
15868 ac_cpp_err=$ac_c_preproc_warn_flag
15875 if test -z "$ac_cpp_err"; then
15876 eval "$as_ac_Header=yes"
15878 echo "$as_me: failed program was:" >&5
15879 cat conftest.$ac_ext >&5
15880 eval "$as_ac_Header=no"
15882 rm -f conftest.err conftest.$ac_ext
15884 echo "$as_me:15884: result: `eval echo '${'$as_ac_Header'}'`" >&5
15885 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15887 cat >>confdefs.h <<EOF
15888 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15895 if test "$ac_cv_header_termios_h" = yes ; then
15896 case "$CFLAGS $CPPFLAGS" in
15898 termios_bad=dunno ;;
15899 *) termios_bad=maybe ;;
15901 if test "$termios_bad" = maybe ; then
15902 echo "$as_me:15902: checking whether termios.h needs _POSIX_SOURCE" >&5
15903 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
15904 cat >conftest.$ac_ext <<_ACEOF
15905 #line 15905 "configure"
15906 #include "confdefs.h"
15907 #include <termios.h>
15911 struct termios foo; int x = foo.c_iflag
15916 rm -f conftest.$ac_objext
15917 if { (eval echo "$as_me:15917: \"$ac_compile\"") >&5
15918 (eval $ac_compile) 2>&5
15920 echo "$as_me:15920: \$? = $ac_status" >&5
15921 (exit $ac_status); } &&
15922 { ac_try='test -s conftest.$ac_objext'
15923 { (eval echo "$as_me:15923: \"$ac_try\"") >&5
15924 (eval $ac_try) 2>&5
15926 echo "$as_me:15926: \$? = $ac_status" >&5
15927 (exit $ac_status); }; }; then
15930 echo "$as_me: failed program was:" >&5
15931 cat conftest.$ac_ext >&5
15933 cat >conftest.$ac_ext <<_ACEOF
15934 #line 15934 "configure"
15935 #include "confdefs.h"
15937 #define _POSIX_SOURCE
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
15959 termios_bad=unknown
15961 echo "$as_me: failed program was:" >&5
15962 cat conftest.$ac_ext >&5
15963 termios_bad=yes cat >>confdefs.h <<\EOF
15964 #define _POSIX_SOURCE 1
15968 rm -f conftest.$ac_objext conftest.$ac_ext
15971 rm -f conftest.$ac_objext conftest.$ac_ext
15972 echo "$as_me:15972: result: $termios_bad" >&5
15973 echo "${ECHO_T}$termios_bad" >&6
15977 echo "$as_me:15977: checking for tcgetattr" >&5
15978 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
15979 if test "${cf_cv_have_tcgetattr+set}" = set; then
15980 echo $ECHO_N "(cached) $ECHO_C" >&6
15983 cat >conftest.$ac_ext <<_ACEOF
15984 #line 15984 "configure"
15985 #include "confdefs.h"
15987 #include <sys/types.h>
15988 #ifdef HAVE_UNISTD_H
15989 #include <unistd.h>
15991 #ifdef HAVE_TERMIOS_H
15992 #include <termios.h>
15993 #define TTY struct termios
15995 #ifdef HAVE_TERMIO_H
15996 #include <termio.h>
15997 #define TTY struct termio
16006 tcgetattr(1, &foo);
16011 rm -f conftest.$ac_objext conftest$ac_exeext
16012 if { (eval echo "$as_me:16012: \"$ac_link\"") >&5
16013 (eval $ac_link) 2>&5
16015 echo "$as_me:16015: \$? = $ac_status" >&5
16016 (exit $ac_status); } &&
16017 { ac_try='test -s conftest$ac_exeext'
16018 { (eval echo "$as_me:16018: \"$ac_try\"") >&5
16019 (eval $ac_try) 2>&5
16021 echo "$as_me:16021: \$? = $ac_status" >&5
16022 (exit $ac_status); }; }; then
16023 cf_cv_have_tcgetattr=yes
16025 echo "$as_me: failed program was:" >&5
16026 cat conftest.$ac_ext >&5
16027 cf_cv_have_tcgetattr=no
16029 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16031 echo "$as_me:16031: result: $cf_cv_have_tcgetattr" >&5
16032 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
16033 test "$cf_cv_have_tcgetattr" = yes && cat >>confdefs.h <<\EOF
16034 #define HAVE_TCGETATTR 1
16037 echo "$as_me:16037: checking for vsscanf function or workaround" >&5
16038 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
16039 if test "${cf_cv_func_vsscanf+set}" = set; then
16040 echo $ECHO_N "(cached) $ECHO_C" >&6
16043 cat >conftest.$ac_ext <<_ACEOF
16044 #line 16044 "configure"
16045 #include "confdefs.h"
16047 #include <stdarg.h>
16054 vsscanf("from", "%d", ap)
16059 rm -f conftest.$ac_objext conftest$ac_exeext
16060 if { (eval echo "$as_me:16060: \"$ac_link\"") >&5
16061 (eval $ac_link) 2>&5
16063 echo "$as_me:16063: \$? = $ac_status" >&5
16064 (exit $ac_status); } &&
16065 { ac_try='test -s conftest$ac_exeext'
16066 { (eval echo "$as_me:16066: \"$ac_try\"") >&5
16067 (eval $ac_try) 2>&5
16069 echo "$as_me:16069: \$? = $ac_status" >&5
16070 (exit $ac_status); }; }; then
16071 cf_cv_func_vsscanf=vsscanf
16073 echo "$as_me: failed program was:" >&5
16074 cat conftest.$ac_ext >&5
16076 cat >conftest.$ac_ext <<_ACEOF
16077 #line 16077 "configure"
16078 #include "confdefs.h"
16080 #include <stdarg.h>
16087 char *str = "from";
16089 strbuf._flag = _IOREAD;
16090 strbuf._ptr = strbuf._base = (unsigned char *) str;
16091 strbuf._cnt = strlen(str);
16092 strbuf._file = _NFILE;
16093 return (vfscanf(&strbuf, "%d", ap))
16098 rm -f conftest.$ac_objext conftest$ac_exeext
16099 if { (eval echo "$as_me:16099: \"$ac_link\"") >&5
16100 (eval $ac_link) 2>&5
16102 echo "$as_me:16102: \$? = $ac_status" >&5
16103 (exit $ac_status); } &&
16104 { ac_try='test -s conftest$ac_exeext'
16105 { (eval echo "$as_me:16105: \"$ac_try\"") >&5
16106 (eval $ac_try) 2>&5
16108 echo "$as_me:16108: \$? = $ac_status" >&5
16109 (exit $ac_status); }; }; then
16110 cf_cv_func_vsscanf=vfscanf
16112 echo "$as_me: failed program was:" >&5
16113 cat conftest.$ac_ext >&5
16115 cat >conftest.$ac_ext <<_ACEOF
16116 #line 16116 "configure"
16117 #include "confdefs.h"
16119 #include <stdarg.h>
16126 char *str = "from";
16128 strbuf._flag = _IOREAD;
16129 strbuf._ptr = strbuf._base = (unsigned char *) str;
16130 strbuf._cnt = strlen(str);
16131 strbuf._file = _NFILE;
16132 return (_doscan(&strbuf, "%d", ap))
16137 rm -f conftest.$ac_objext conftest$ac_exeext
16138 if { (eval echo "$as_me:16138: \"$ac_link\"") >&5
16139 (eval $ac_link) 2>&5
16141 echo "$as_me:16141: \$? = $ac_status" >&5
16142 (exit $ac_status); } &&
16143 { ac_try='test -s conftest$ac_exeext'
16144 { (eval echo "$as_me:16144: \"$ac_try\"") >&5
16145 (eval $ac_try) 2>&5
16147 echo "$as_me:16147: \$? = $ac_status" >&5
16148 (exit $ac_status); }; }; then
16149 cf_cv_func_vsscanf=_doscan
16151 echo "$as_me: failed program was:" >&5
16152 cat conftest.$ac_ext >&5
16154 cf_cv_func_vsscanf=no
16156 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16158 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16160 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16162 echo "$as_me:16162: result: $cf_cv_func_vsscanf" >&5
16163 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
16165 case $cf_cv_func_vsscanf in #(vi
16166 vsscanf) cat >>confdefs.h <<\EOF
16167 #define HAVE_VSSCANF 1
16170 vfscanf) cat >>confdefs.h <<\EOF
16171 #define HAVE_VFSCANF 1
16174 _doscan) cat >>confdefs.h <<\EOF
16175 #define HAVE__DOSCAN 1
16180 echo "$as_me:16180: checking for working mkstemp" >&5
16181 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
16182 if test "${cf_cv_func_mkstemp+set}" = set; then
16183 echo $ECHO_N "(cached) $ECHO_C" >&6
16187 if test "$cross_compiling" = yes; then
16188 cf_cv_func_mkstemp=maybe
16190 cat >conftest.$ac_ext <<_ACEOF
16191 #line 16191 "configure"
16192 #include "confdefs.h"
16194 #include <sys/types.h>
16195 #include <stdlib.h>
16197 #include <string.h>
16198 #include <sys/stat.h>
16201 char *tmpl = "conftestXXXXXX";
16209 for (n = 0; n < 2; ++n) {
16210 strcpy(name[n], tmpl);
16211 if ((fd = mkstemp(name[n])) >= 0) {
16212 if (!strcmp(name[n], tmpl)
16213 || stat(name[n], &sb) != 0
16214 || (sb.st_mode & S_IFMT) != S_IFREG
16215 || (sb.st_mode & 077) != 0) {
16222 && !strcmp(name[0], name[1]))
16224 ${cf_cv_main_return:-return}(result);
16228 rm -f conftest$ac_exeext
16229 if { (eval echo "$as_me:16229: \"$ac_link\"") >&5
16230 (eval $ac_link) 2>&5
16232 echo "$as_me:16232: \$? = $ac_status" >&5
16233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16234 { (eval echo "$as_me:16234: \"$ac_try\"") >&5
16235 (eval $ac_try) 2>&5
16237 echo "$as_me:16237: \$? = $ac_status" >&5
16238 (exit $ac_status); }; }; then
16239 cf_cv_func_mkstemp=yes
16242 echo "$as_me: program exited with status $ac_status" >&5
16243 echo "$as_me: failed program was:" >&5
16244 cat conftest.$ac_ext >&5
16245 cf_cv_func_mkstemp=no
16248 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16252 echo "$as_me:16252: result: $cf_cv_func_mkstemp" >&5
16253 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
16254 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
16255 echo "$as_me:16255: checking for mkstemp" >&5
16256 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
16257 if test "${ac_cv_func_mkstemp+set}" = set; then
16258 echo $ECHO_N "(cached) $ECHO_C" >&6
16260 cat >conftest.$ac_ext <<_ACEOF
16261 #line 16261 "configure"
16262 #include "confdefs.h"
16263 /* System header to define __stub macros and hopefully few prototypes,
16264 which can conflict with char mkstemp (); below. */
16265 #include <assert.h>
16266 /* Override any gcc2 internal prototype to avoid an error. */
16270 /* We use char because int might match the return type of a gcc2
16271 builtin and then its argument prototype would still apply. */
16278 /* The GNU C library defines this for functions which it implements
16279 to always fail with ENOSYS. Some functions are actually named
16280 something starting with __ and the normal name is an alias. */
16281 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
16284 f = mkstemp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
16291 rm -f conftest.$ac_objext conftest$ac_exeext
16292 if { (eval echo "$as_me:16292: \"$ac_link\"") >&5
16293 (eval $ac_link) 2>&5
16295 echo "$as_me:16295: \$? = $ac_status" >&5
16296 (exit $ac_status); } &&
16297 { ac_try='test -s conftest$ac_exeext'
16298 { (eval echo "$as_me:16298: \"$ac_try\"") >&5
16299 (eval $ac_try) 2>&5
16301 echo "$as_me:16301: \$? = $ac_status" >&5
16302 (exit $ac_status); }; }; then
16303 ac_cv_func_mkstemp=yes
16305 echo "$as_me: failed program was:" >&5
16306 cat conftest.$ac_ext >&5
16307 ac_cv_func_mkstemp=no
16309 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16311 echo "$as_me:16311: result: $ac_cv_func_mkstemp" >&5
16312 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
16315 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
16316 cat >>confdefs.h <<\EOF
16317 #define HAVE_MKSTEMP 1
16322 # setup for prototype of fallback for vsscanf()
16324 if test "$cf_cv_func_vsscanf" = vsscanf ; then
16330 if test "$cross_compiling" = yes ; then
16331 { echo "$as_me:16331: WARNING: cross compiling: assume setvbuf params not reversed" >&5
16332 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
16334 echo "$as_me:16334: checking whether setvbuf arguments are reversed" >&5
16335 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
16336 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
16337 echo $ECHO_N "(cached) $ECHO_C" >&6
16339 if test "$cross_compiling" = yes; then
16340 { { echo "$as_me:16340: error: cannot run test program while cross compiling" >&5
16341 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16342 { (exit 1); exit 1; }; }
16344 cat >conftest.$ac_ext <<_ACEOF
16345 #line 16345 "configure"
16346 #include "confdefs.h"
16348 /* If setvbuf has the reversed format, exit 0. */
16352 /* This call has the arguments reversed.
16353 A reversed system may check and see that the address of main
16354 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
16355 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
16356 $ac_main_return(1);
16357 putc('\r', stdout);
16358 $ac_main_return(0); /* Non-reversed systems segv here. */
16361 rm -f conftest$ac_exeext
16362 if { (eval echo "$as_me:16362: \"$ac_link\"") >&5
16363 (eval $ac_link) 2>&5
16365 echo "$as_me:16365: \$? = $ac_status" >&5
16366 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16367 { (eval echo "$as_me:16367: \"$ac_try\"") >&5
16368 (eval $ac_try) 2>&5
16370 echo "$as_me:16370: \$? = $ac_status" >&5
16371 (exit $ac_status); }; }; then
16372 ac_cv_func_setvbuf_reversed=yes
16374 echo "$as_me: program exited with status $ac_status" >&5
16375 echo "$as_me: failed program was:" >&5
16376 cat conftest.$ac_ext >&5
16377 ac_cv_func_setvbuf_reversed=no
16379 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16381 rm -f core core.* *.core
16383 echo "$as_me:16383: result: $ac_cv_func_setvbuf_reversed" >&5
16384 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
16385 if test $ac_cv_func_setvbuf_reversed = yes; then
16387 cat >>confdefs.h <<\EOF
16388 #define SETVBUF_REVERSED 1
16394 echo "$as_me:16394: checking return type of signal handlers" >&5
16395 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
16396 if test "${ac_cv_type_signal+set}" = set; then
16397 echo $ECHO_N "(cached) $ECHO_C" >&6
16399 cat >conftest.$ac_ext <<_ACEOF
16400 #line 16400 "configure"
16401 #include "confdefs.h"
16402 #include <sys/types.h>
16403 #include <signal.h>
16408 extern "C" void (*signal (int, void (*)(int)))(int);
16410 void (*signal ()) ();
16421 rm -f conftest.$ac_objext
16422 if { (eval echo "$as_me:16422: \"$ac_compile\"") >&5
16423 (eval $ac_compile) 2>&5
16425 echo "$as_me:16425: \$? = $ac_status" >&5
16426 (exit $ac_status); } &&
16427 { ac_try='test -s conftest.$ac_objext'
16428 { (eval echo "$as_me:16428: \"$ac_try\"") >&5
16429 (eval $ac_try) 2>&5
16431 echo "$as_me:16431: \$? = $ac_status" >&5
16432 (exit $ac_status); }; }; then
16433 ac_cv_type_signal=void
16435 echo "$as_me: failed program was:" >&5
16436 cat conftest.$ac_ext >&5
16437 ac_cv_type_signal=int
16439 rm -f conftest.$ac_objext conftest.$ac_ext
16441 echo "$as_me:16441: result: $ac_cv_type_signal" >&5
16442 echo "${ECHO_T}$ac_cv_type_signal" >&6
16444 cat >>confdefs.h <<EOF
16445 #define RETSIGTYPE $ac_cv_type_signal
16448 echo "$as_me:16448: checking for intptr_t" >&5
16449 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
16450 if test "${ac_cv_type_intptr_t+set}" = set; then
16451 echo $ECHO_N "(cached) $ECHO_C" >&6
16453 cat >conftest.$ac_ext <<_ACEOF
16454 #line 16454 "configure"
16455 #include "confdefs.h"
16456 $ac_includes_default
16460 if ((intptr_t *) 0)
16462 if (sizeof (intptr_t))
16468 rm -f conftest.$ac_objext
16469 if { (eval echo "$as_me:16469: \"$ac_compile\"") >&5
16470 (eval $ac_compile) 2>&5
16472 echo "$as_me:16472: \$? = $ac_status" >&5
16473 (exit $ac_status); } &&
16474 { ac_try='test -s conftest.$ac_objext'
16475 { (eval echo "$as_me:16475: \"$ac_try\"") >&5
16476 (eval $ac_try) 2>&5
16478 echo "$as_me:16478: \$? = $ac_status" >&5
16479 (exit $ac_status); }; }; then
16480 ac_cv_type_intptr_t=yes
16482 echo "$as_me: failed program was:" >&5
16483 cat conftest.$ac_ext >&5
16484 ac_cv_type_intptr_t=no
16486 rm -f conftest.$ac_objext conftest.$ac_ext
16488 echo "$as_me:16488: result: $ac_cv_type_intptr_t" >&5
16489 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
16490 if test $ac_cv_type_intptr_t = yes; then
16494 cat >>confdefs.h <<EOF
16495 #define intptr_t long
16500 echo "$as_me:16500: checking for type sigaction_t" >&5
16501 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
16502 if test "${cf_cv_type_sigaction+set}" = set; then
16503 echo $ECHO_N "(cached) $ECHO_C" >&6
16506 cat >conftest.$ac_ext <<_ACEOF
16507 #line 16507 "configure"
16508 #include "confdefs.h"
16510 #include <signal.h>
16519 rm -f conftest.$ac_objext
16520 if { (eval echo "$as_me:16520: \"$ac_compile\"") >&5
16521 (eval $ac_compile) 2>&5
16523 echo "$as_me:16523: \$? = $ac_status" >&5
16524 (exit $ac_status); } &&
16525 { ac_try='test -s conftest.$ac_objext'
16526 { (eval echo "$as_me:16526: \"$ac_try\"") >&5
16527 (eval $ac_try) 2>&5
16529 echo "$as_me:16529: \$? = $ac_status" >&5
16530 (exit $ac_status); }; }; then
16531 cf_cv_type_sigaction=yes
16533 echo "$as_me: failed program was:" >&5
16534 cat conftest.$ac_ext >&5
16535 cf_cv_type_sigaction=no
16537 rm -f conftest.$ac_objext conftest.$ac_ext
16540 echo "$as_me:16540: result: $cf_cv_type_sigaction" >&5
16541 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
16542 test "$cf_cv_type_sigaction" = yes && cat >>confdefs.h <<\EOF
16543 #define HAVE_TYPE_SIGACTION 1
16546 echo "$as_me:16546: checking declaration of size-change" >&5
16547 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
16548 if test "${cf_cv_sizechange+set}" = set; then
16549 echo $ECHO_N "(cached) $ECHO_C" >&6
16552 cf_cv_sizechange=unknown
16553 cf_save_CPPFLAGS="$CPPFLAGS"
16555 for cf_opts in "" "NEED_PTEM_H"
16558 CPPFLAGS="$cf_save_CPPFLAGS"
16559 test -n "$cf_opts" && CPPFLAGS="$CPPFLAGS -D$cf_opts"
16560 cat >conftest.$ac_ext <<_ACEOF
16561 #line 16561 "configure"
16562 #include "confdefs.h"
16563 #include <sys/types.h>
16564 #ifdef HAVE_TERMIOS_H
16565 #include <termios.h>
16567 #ifdef HAVE_TERMIO_H
16568 #include <termio.h>
16572 /* This is a workaround for SCO: they neglected to define struct winsize in
16573 * termios.h -- it's only in termio.h and ptem.h
16575 #include <sys/stream.h>
16576 #include <sys/ptem.h>
16578 #if !defined(sun) || !defined(HAVE_TERMIOS_H)
16579 #include <sys/ioctl.h>
16587 struct ttysize win; /* FIXME: what system is this? */
16588 int y = win.ts_lines;
16589 int x = win.ts_cols;
16592 struct winsize win;
16593 int y = win.ws_row;
16594 int x = win.ws_col;
16596 no TIOCGSIZE or TIOCGWINSZ
16597 #endif /* TIOCGWINSZ */
16598 #endif /* TIOCGSIZE */
16604 rm -f conftest.$ac_objext
16605 if { (eval echo "$as_me:16605: \"$ac_compile\"") >&5
16606 (eval $ac_compile) 2>&5
16608 echo "$as_me:16608: \$? = $ac_status" >&5
16609 (exit $ac_status); } &&
16610 { ac_try='test -s conftest.$ac_objext'
16611 { (eval echo "$as_me:16611: \"$ac_try\"") >&5
16612 (eval $ac_try) 2>&5
16614 echo "$as_me:16614: \$? = $ac_status" >&5
16615 (exit $ac_status); }; }; then
16616 cf_cv_sizechange=yes
16618 echo "$as_me: failed program was:" >&5
16619 cat conftest.$ac_ext >&5
16620 cf_cv_sizechange=no
16622 rm -f conftest.$ac_objext conftest.$ac_ext
16624 CPPFLAGS="$cf_save_CPPFLAGS"
16625 if test "$cf_cv_sizechange" = yes ; then
16626 echo "size-change succeeded ($cf_opts)" >&5
16627 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
16633 echo "$as_me:16633: result: $cf_cv_sizechange" >&5
16634 echo "${ECHO_T}$cf_cv_sizechange" >&6
16635 if test "$cf_cv_sizechange" != no ; then
16636 cat >>confdefs.h <<\EOF
16637 #define HAVE_SIZECHANGE 1
16640 case $cf_cv_sizechange in #(vi
16642 cat >>confdefs.h <<EOF
16643 #define $cf_cv_sizechange 1
16650 echo "$as_me:16650: checking for memmove" >&5
16651 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
16652 if test "${ac_cv_func_memmove+set}" = set; then
16653 echo $ECHO_N "(cached) $ECHO_C" >&6
16655 cat >conftest.$ac_ext <<_ACEOF
16656 #line 16656 "configure"
16657 #include "confdefs.h"
16658 /* System header to define __stub macros and hopefully few prototypes,
16659 which can conflict with char memmove (); below. */
16660 #include <assert.h>
16661 /* Override any gcc2 internal prototype to avoid an error. */
16665 /* We use char because int might match the return type of a gcc2
16666 builtin and then its argument prototype would still apply. */
16673 /* The GNU C library defines this for functions which it implements
16674 to always fail with ENOSYS. Some functions are actually named
16675 something starting with __ and the normal name is an alias. */
16676 #if defined (__stub_memmove) || defined (__stub___memmove)
16679 f = memmove; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
16686 rm -f conftest.$ac_objext conftest$ac_exeext
16687 if { (eval echo "$as_me:16687: \"$ac_link\"") >&5
16688 (eval $ac_link) 2>&5
16690 echo "$as_me:16690: \$? = $ac_status" >&5
16691 (exit $ac_status); } &&
16692 { ac_try='test -s conftest$ac_exeext'
16693 { (eval echo "$as_me:16693: \"$ac_try\"") >&5
16694 (eval $ac_try) 2>&5
16696 echo "$as_me:16696: \$? = $ac_status" >&5
16697 (exit $ac_status); }; }; then
16698 ac_cv_func_memmove=yes
16700 echo "$as_me: failed program was:" >&5
16701 cat conftest.$ac_ext >&5
16702 ac_cv_func_memmove=no
16704 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16706 echo "$as_me:16706: result: $ac_cv_func_memmove" >&5
16707 echo "${ECHO_T}$ac_cv_func_memmove" >&6
16708 if test $ac_cv_func_memmove = yes; then
16712 echo "$as_me:16712: checking for bcopy" >&5
16713 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
16714 if test "${ac_cv_func_bcopy+set}" = set; then
16715 echo $ECHO_N "(cached) $ECHO_C" >&6
16717 cat >conftest.$ac_ext <<_ACEOF
16718 #line 16718 "configure"
16719 #include "confdefs.h"
16720 /* System header to define __stub macros and hopefully few prototypes,
16721 which can conflict with char bcopy (); below. */
16722 #include <assert.h>
16723 /* Override any gcc2 internal prototype to avoid an error. */
16727 /* We use char because int might match the return type of a gcc2
16728 builtin and then its argument prototype would still apply. */
16735 /* The GNU C library defines this for functions which it implements
16736 to always fail with ENOSYS. Some functions are actually named
16737 something starting with __ and the normal name is an alias. */
16738 #if defined (__stub_bcopy) || defined (__stub___bcopy)
16741 f = bcopy; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
16748 rm -f conftest.$ac_objext conftest$ac_exeext
16749 if { (eval echo "$as_me:16749: \"$ac_link\"") >&5
16750 (eval $ac_link) 2>&5
16752 echo "$as_me:16752: \$? = $ac_status" >&5
16753 (exit $ac_status); } &&
16754 { ac_try='test -s conftest$ac_exeext'
16755 { (eval echo "$as_me:16755: \"$ac_try\"") >&5
16756 (eval $ac_try) 2>&5
16758 echo "$as_me:16758: \$? = $ac_status" >&5
16759 (exit $ac_status); }; }; then
16760 ac_cv_func_bcopy=yes
16762 echo "$as_me: failed program was:" >&5
16763 cat conftest.$ac_ext >&5
16764 ac_cv_func_bcopy=no
16766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16768 echo "$as_me:16768: result: $ac_cv_func_bcopy" >&5
16769 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
16770 if test $ac_cv_func_bcopy = yes; then
16772 echo "$as_me:16772: checking if bcopy does overlapping moves" >&5
16773 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
16774 if test "${cf_cv_good_bcopy+set}" = set; then
16775 echo $ECHO_N "(cached) $ECHO_C" >&6
16778 if test "$cross_compiling" = yes; then
16779 cf_cv_good_bcopy=unknown
16781 cat >conftest.$ac_ext <<_ACEOF
16782 #line 16782 "configure"
16783 #include "confdefs.h"
16786 static char data[] = "abcdefghijklmnopqrstuwwxyz";
16788 bcopy(data, temp, sizeof(data));
16789 bcopy(temp+10, temp, 15);
16790 bcopy(temp+5, temp+15, 10);
16791 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
16795 rm -f conftest$ac_exeext
16796 if { (eval echo "$as_me:16796: \"$ac_link\"") >&5
16797 (eval $ac_link) 2>&5
16799 echo "$as_me:16799: \$? = $ac_status" >&5
16800 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16801 { (eval echo "$as_me:16801: \"$ac_try\"") >&5
16802 (eval $ac_try) 2>&5
16804 echo "$as_me:16804: \$? = $ac_status" >&5
16805 (exit $ac_status); }; }; then
16806 cf_cv_good_bcopy=yes
16808 echo "$as_me: program exited with status $ac_status" >&5
16809 echo "$as_me: failed program was:" >&5
16810 cat conftest.$ac_ext >&5
16811 cf_cv_good_bcopy=no
16813 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16817 echo "$as_me:16817: result: $cf_cv_good_bcopy" >&5
16818 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
16821 cf_cv_good_bcopy=no
16824 if test "$cf_cv_good_bcopy" = yes ; then
16825 cat >>confdefs.h <<\EOF
16826 #define USE_OK_BCOPY 1
16830 cat >>confdefs.h <<\EOF
16831 #define USE_MY_MEMMOVE 1
16838 echo "$as_me:16838: checking if poll really works" >&5
16839 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
16840 if test "${cf_cv_working_poll+set}" = set; then
16841 echo $ECHO_N "(cached) $ECHO_C" >&6
16844 if test "$cross_compiling" = yes; then
16845 cf_cv_working_poll=unknown
16847 cat >conftest.$ac_ext <<_ACEOF
16848 #line 16848 "configure"
16849 #include "confdefs.h"
16851 #include <stdlib.h>
16853 #include <unistd.h>
16858 #include <sys/poll.h>
16861 struct pollfd myfds;
16864 /* check for Darwin bug with respect to "devices" */
16865 myfds.fd = open("/dev/null", 1); /* O_WRONLY */
16868 myfds.events = POLLIN;
16871 ret = poll(&myfds, 1, 100);
16873 if (ret < 0 || (myfds.revents & POLLNVAL)) {
16878 fd = open("/dev/tty", 2); /* O_RDWR */
16882 /* also check with standard input */
16884 myfds.events = POLLIN;
16886 ret = poll(&myfds, 1, 100);
16891 ${cf_cv_main_return:-return}(ret < 0);
16894 rm -f conftest$ac_exeext
16895 if { (eval echo "$as_me:16895: \"$ac_link\"") >&5
16896 (eval $ac_link) 2>&5
16898 echo "$as_me:16898: \$? = $ac_status" >&5
16899 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16900 { (eval echo "$as_me:16900: \"$ac_try\"") >&5
16901 (eval $ac_try) 2>&5
16903 echo "$as_me:16903: \$? = $ac_status" >&5
16904 (exit $ac_status); }; }; then
16905 cf_cv_working_poll=yes
16907 echo "$as_me: program exited with status $ac_status" >&5
16908 echo "$as_me: failed program was:" >&5
16909 cat conftest.$ac_ext >&5
16910 cf_cv_working_poll=no
16912 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16915 echo "$as_me:16915: result: $cf_cv_working_poll" >&5
16916 echo "${ECHO_T}$cf_cv_working_poll" >&6
16917 test "$cf_cv_working_poll" = "yes" && cat >>confdefs.h <<\EOF
16918 #define HAVE_WORKING_POLL 1
16921 echo "$as_me:16921: checking for va_copy" >&5
16922 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
16923 if test "${cf_cv_have_va_copy+set}" = set; then
16924 echo $ECHO_N "(cached) $ECHO_C" >&6
16927 cat >conftest.$ac_ext <<_ACEOF
16928 #line 16928 "configure"
16929 #include "confdefs.h"
16931 #include <stdarg.h>
16937 static va_list dst;
16938 static va_list src;
16944 rm -f conftest.$ac_objext conftest$ac_exeext
16945 if { (eval echo "$as_me:16945: \"$ac_link\"") >&5
16946 (eval $ac_link) 2>&5
16948 echo "$as_me:16948: \$? = $ac_status" >&5
16949 (exit $ac_status); } &&
16950 { ac_try='test -s conftest$ac_exeext'
16951 { (eval echo "$as_me:16951: \"$ac_try\"") >&5
16952 (eval $ac_try) 2>&5
16954 echo "$as_me:16954: \$? = $ac_status" >&5
16955 (exit $ac_status); }; }; then
16956 cf_cv_have_va_copy=yes
16958 echo "$as_me: failed program was:" >&5
16959 cat conftest.$ac_ext >&5
16960 cf_cv_have_va_copy=no
16962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16964 echo "$as_me:16964: result: $cf_cv_have_va_copy" >&5
16965 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
16967 test "$cf_cv_have_va_copy" = yes && cat >>confdefs.h <<\EOF
16968 #define HAVE_VA_COPY 1
16971 echo "$as_me:16971: checking for __va_copy" >&5
16972 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
16973 if test "${cf_cv_have___va_copy+set}" = set; then
16974 echo $ECHO_N "(cached) $ECHO_C" >&6
16977 cat >conftest.$ac_ext <<_ACEOF
16978 #line 16978 "configure"
16979 #include "confdefs.h"
16981 #include <stdarg.h>
16987 static va_list dst;
16988 static va_list src;
16989 __va_copy(dst, src)
16994 rm -f conftest.$ac_objext conftest$ac_exeext
16995 if { (eval echo "$as_me:16995: \"$ac_link\"") >&5
16996 (eval $ac_link) 2>&5
16998 echo "$as_me:16998: \$? = $ac_status" >&5
16999 (exit $ac_status); } &&
17000 { ac_try='test -s conftest$ac_exeext'
17001 { (eval echo "$as_me:17001: \"$ac_try\"") >&5
17002 (eval $ac_try) 2>&5
17004 echo "$as_me:17004: \$? = $ac_status" >&5
17005 (exit $ac_status); }; }; then
17006 cf_cv_have___va_copy=yes
17008 echo "$as_me: failed program was:" >&5
17009 cat conftest.$ac_ext >&5
17010 cf_cv_have___va_copy=no
17012 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17014 echo "$as_me:17014: result: $cf_cv_have___va_copy" >&5
17015 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
17017 test "$cf_cv_have___va_copy" = yes && cat >>confdefs.h <<\EOF
17018 #define HAVE___VA_COPY 1
17021 echo "$as_me:17021: checking for pid_t" >&5
17022 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17023 if test "${ac_cv_type_pid_t+set}" = set; then
17024 echo $ECHO_N "(cached) $ECHO_C" >&6
17026 cat >conftest.$ac_ext <<_ACEOF
17027 #line 17027 "configure"
17028 #include "confdefs.h"
17029 $ac_includes_default
17035 if (sizeof (pid_t))
17041 rm -f conftest.$ac_objext
17042 if { (eval echo "$as_me:17042: \"$ac_compile\"") >&5
17043 (eval $ac_compile) 2>&5
17045 echo "$as_me:17045: \$? = $ac_status" >&5
17046 (exit $ac_status); } &&
17047 { ac_try='test -s conftest.$ac_objext'
17048 { (eval echo "$as_me:17048: \"$ac_try\"") >&5
17049 (eval $ac_try) 2>&5
17051 echo "$as_me:17051: \$? = $ac_status" >&5
17052 (exit $ac_status); }; }; then
17053 ac_cv_type_pid_t=yes
17055 echo "$as_me: failed program was:" >&5
17056 cat conftest.$ac_ext >&5
17057 ac_cv_type_pid_t=no
17059 rm -f conftest.$ac_objext conftest.$ac_ext
17061 echo "$as_me:17061: result: $ac_cv_type_pid_t" >&5
17062 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17063 if test $ac_cv_type_pid_t = yes; then
17067 cat >>confdefs.h <<EOF
17073 for ac_header in unistd.h vfork.h
17075 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17076 echo "$as_me:17076: checking for $ac_header" >&5
17077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17079 echo $ECHO_N "(cached) $ECHO_C" >&6
17081 cat >conftest.$ac_ext <<_ACEOF
17082 #line 17082 "configure"
17083 #include "confdefs.h"
17084 #include <$ac_header>
17086 if { (eval echo "$as_me:17086: \"$ac_cpp conftest.$ac_ext\"") >&5
17087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17089 egrep -v '^ *\+' conftest.er1 >conftest.err
17091 cat conftest.err >&5
17092 echo "$as_me:17092: \$? = $ac_status" >&5
17093 (exit $ac_status); } >/dev/null; then
17094 if test -s conftest.err; then
17095 ac_cpp_err=$ac_c_preproc_warn_flag
17102 if test -z "$ac_cpp_err"; then
17103 eval "$as_ac_Header=yes"
17105 echo "$as_me: failed program was:" >&5
17106 cat conftest.$ac_ext >&5
17107 eval "$as_ac_Header=no"
17109 rm -f conftest.err conftest.$ac_ext
17111 echo "$as_me:17111: result: `eval echo '${'$as_ac_Header'}'`" >&5
17112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17114 cat >>confdefs.h <<EOF
17115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17121 for ac_func in fork vfork
17123 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17124 echo "$as_me:17124: checking for $ac_func" >&5
17125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17126 if eval "test \"\${$as_ac_var+set}\" = set"; then
17127 echo $ECHO_N "(cached) $ECHO_C" >&6
17129 cat >conftest.$ac_ext <<_ACEOF
17130 #line 17130 "configure"
17131 #include "confdefs.h"
17132 /* System header to define __stub macros and hopefully few prototypes,
17133 which can conflict with char $ac_func (); below. */
17134 #include <assert.h>
17135 /* Override any gcc2 internal prototype to avoid an error. */
17139 /* We use char because int might match the return type of a gcc2
17140 builtin and then its argument prototype would still apply. */
17147 /* The GNU C library defines this for functions which it implements
17148 to always fail with ENOSYS. Some functions are actually named
17149 something starting with __ and the normal name is an alias. */
17150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17153 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
17160 rm -f conftest.$ac_objext conftest$ac_exeext
17161 if { (eval echo "$as_me:17161: \"$ac_link\"") >&5
17162 (eval $ac_link) 2>&5
17164 echo "$as_me:17164: \$? = $ac_status" >&5
17165 (exit $ac_status); } &&
17166 { ac_try='test -s conftest$ac_exeext'
17167 { (eval echo "$as_me:17167: \"$ac_try\"") >&5
17168 (eval $ac_try) 2>&5
17170 echo "$as_me:17170: \$? = $ac_status" >&5
17171 (exit $ac_status); }; }; then
17172 eval "$as_ac_var=yes"
17174 echo "$as_me: failed program was:" >&5
17175 cat conftest.$ac_ext >&5
17176 eval "$as_ac_var=no"
17178 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17180 echo "$as_me:17180: result: `eval echo '${'$as_ac_var'}'`" >&5
17181 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17182 if test `eval echo '${'$as_ac_var'}'` = yes; then
17183 cat >>confdefs.h <<EOF
17184 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17190 ac_cv_func_fork_works=$ac_cv_func_fork
17191 if test "x$ac_cv_func_fork" = xyes; then
17192 echo "$as_me:17192: checking for working fork" >&5
17193 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
17194 if test "${ac_cv_func_fork_works+set}" = set; then
17195 echo $ECHO_N "(cached) $ECHO_C" >&6
17197 if test "$cross_compiling" = yes; then
17198 ac_cv_func_fork_works=cross
17200 cat >conftest.$ac_ext <<_ACEOF
17201 /* By Rüdiger Kuhlmann. */
17202 #include <sys/types.h>
17204 # include <unistd.h>
17206 /* Some systems only have a dummy stub for fork() */
17210 $ac_main_return (1);
17211 $ac_main_return (0);
17214 rm -f conftest$ac_exeext
17215 if { (eval echo "$as_me:17215: \"$ac_link\"") >&5
17216 (eval $ac_link) 2>&5
17218 echo "$as_me:17218: \$? = $ac_status" >&5
17219 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17220 { (eval echo "$as_me:17220: \"$ac_try\"") >&5
17221 (eval $ac_try) 2>&5
17223 echo "$as_me:17223: \$? = $ac_status" >&5
17224 (exit $ac_status); }; }; then
17225 ac_cv_func_fork_works=yes
17227 echo "$as_me: program exited with status $ac_status" >&5
17228 echo "$as_me: failed program was:" >&5
17229 cat conftest.$ac_ext >&5
17230 ac_cv_func_fork_works=no
17232 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17235 echo "$as_me:17235: result: $ac_cv_func_fork_works" >&5
17236 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
17239 if test "x$ac_cv_func_fork_works" = xcross; then
17241 *-*-amigaos* | *-*-msdosdjgpp*)
17242 # Override, as these systems have only a dummy fork() stub
17243 ac_cv_func_fork_works=no
17246 ac_cv_func_fork_works=yes
17249 { echo "$as_me:17249: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
17250 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
17252 ac_cv_func_vfork_works=$ac_cv_func_vfork
17253 if test "x$ac_cv_func_vfork" = xyes; then
17254 echo "$as_me:17254: checking for working vfork" >&5
17255 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
17256 if test "${ac_cv_func_vfork_works+set}" = set; then
17257 echo $ECHO_N "(cached) $ECHO_C" >&6
17259 if test "$cross_compiling" = yes; then
17260 ac_cv_func_vfork_works=cross
17262 cat >conftest.$ac_ext <<_ACEOF
17263 #line 17263 "configure"
17264 #include "confdefs.h"
17265 /* Thanks to Paul Eggert for this test. */
17267 #include <sys/types.h>
17268 #include <sys/stat.h>
17270 # include <unistd.h>
17273 # include <vfork.h>
17275 /* On some sparc systems, changes by the child to local and incoming
17276 argument registers are propagated back to the parent. The compiler
17277 is told about this with #include <vfork.h>, but some compilers
17278 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17279 static variable whose address is put into a register that is
17280 clobbered by the vfork. */
17283 sparc_address_test (int arg)
17285 sparc_address_test (arg) int arg;
17288 static pid_t child;
17306 pid_t parent = getpid ();
17309 sparc_address_test ();
17314 /* Here is another test for sparc vfork register problems. This
17315 test uses lots of local variables, at least as many local
17316 variables as main has allocated so far including compiler
17317 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17318 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17319 reuse the register of parent for one of the local variables,
17320 since it will think that parent can't possibly be used any more
17321 in this routine. Assigning to the local variable will thus
17322 munge parent in the parent process. */
17324 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17325 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17326 /* Convince the compiler that p..p7 are live; otherwise, it might
17327 use the same hardware register for all 8 local variables. */
17328 if (p != p1 || p != p2 || p != p3 || p != p4
17329 || p != p5 || p != p6 || p != p7)
17332 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17333 from child file descriptors. If the child closes a descriptor
17334 before it execs or exits, this munges the parent's descriptor
17335 as well. Test for this by closing stdout in the child. */
17336 _exit(close(fileno(stdout)) != 0);
17341 while (wait(&status) != child)
17344 /* Was there some problem with vforking? */
17347 /* Did the child fail? (This shouldn't happen.) */
17350 /* Did the vfork/compiler bug occur? */
17351 || parent != getpid()
17353 /* Did the file descriptor bug occur? */
17354 || fstat(fileno(stdout), &st) != 0
17359 rm -f conftest$ac_exeext
17360 if { (eval echo "$as_me:17360: \"$ac_link\"") >&5
17361 (eval $ac_link) 2>&5
17363 echo "$as_me:17363: \$? = $ac_status" >&5
17364 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17365 { (eval echo "$as_me:17365: \"$ac_try\"") >&5
17366 (eval $ac_try) 2>&5
17368 echo "$as_me:17368: \$? = $ac_status" >&5
17369 (exit $ac_status); }; }; then
17370 ac_cv_func_vfork_works=yes
17372 echo "$as_me: program exited with status $ac_status" >&5
17373 echo "$as_me: failed program was:" >&5
17374 cat conftest.$ac_ext >&5
17375 ac_cv_func_vfork_works=no
17377 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17380 echo "$as_me:17380: result: $ac_cv_func_vfork_works" >&5
17381 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
17384 if test "x$ac_cv_func_fork_works" = xcross; then
17385 ac_cv_func_vfork_works=ac_cv_func_vfork
17386 { echo "$as_me:17386: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
17387 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
17390 if test "x$ac_cv_func_vfork_works" = xyes; then
17392 cat >>confdefs.h <<\EOF
17393 #define HAVE_WORKING_VFORK 1
17398 cat >>confdefs.h <<\EOF
17403 if test "x$ac_cv_func_fork_works" = xyes; then
17405 cat >>confdefs.h <<\EOF
17406 #define HAVE_WORKING_FORK 1
17411 # special check for test/ditto.c
17413 echo "$as_me:17413: checking for openpty in -lutil" >&5
17414 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
17415 if test "${ac_cv_lib_util_openpty+set}" = set; then
17416 echo $ECHO_N "(cached) $ECHO_C" >&6
17418 ac_check_lib_save_LIBS=$LIBS
17419 LIBS="-lutil $LIBS"
17420 cat >conftest.$ac_ext <<_ACEOF
17421 #line 17421 "configure"
17422 #include "confdefs.h"
17424 /* Override any gcc2 internal prototype to avoid an error. */
17428 /* We use char because int might match the return type of a gcc2
17429 builtin and then its argument prototype would still apply. */
17439 rm -f conftest.$ac_objext conftest$ac_exeext
17440 if { (eval echo "$as_me:17440: \"$ac_link\"") >&5
17441 (eval $ac_link) 2>&5
17443 echo "$as_me:17443: \$? = $ac_status" >&5
17444 (exit $ac_status); } &&
17445 { ac_try='test -s conftest$ac_exeext'
17446 { (eval echo "$as_me:17446: \"$ac_try\"") >&5
17447 (eval $ac_try) 2>&5
17449 echo "$as_me:17449: \$? = $ac_status" >&5
17450 (exit $ac_status); }; }; then
17451 ac_cv_lib_util_openpty=yes
17453 echo "$as_me: failed program was:" >&5
17454 cat conftest.$ac_ext >&5
17455 ac_cv_lib_util_openpty=no
17457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17458 LIBS=$ac_check_lib_save_LIBS
17460 echo "$as_me:17460: result: $ac_cv_lib_util_openpty" >&5
17461 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
17462 if test $ac_cv_lib_util_openpty = yes; then
17468 echo "$as_me:17468: checking for openpty header" >&5
17469 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
17470 if test "${cf_cv_func_openpty+set}" = set; then
17471 echo $ECHO_N "(cached) $ECHO_C" >&6
17474 cf_save_LIBS="$LIBS"
17475 test $cf_cv_lib_util = yes && LIBS="-lutil $LIBS"
17476 for cf_header in pty.h libutil.h util.h
17478 cat >conftest.$ac_ext <<_ACEOF
17479 #line 17479 "configure"
17480 #include "confdefs.h"
17482 #include <$cf_header>
17488 int x = openpty((int *)0, (int *)0, (char *)0,
17489 (struct termios *)0, (struct winsize *)0);
17495 rm -f conftest.$ac_objext conftest$ac_exeext
17496 if { (eval echo "$as_me:17496: \"$ac_link\"") >&5
17497 (eval $ac_link) 2>&5
17499 echo "$as_me:17499: \$? = $ac_status" >&5
17500 (exit $ac_status); } &&
17501 { ac_try='test -s conftest$ac_exeext'
17502 { (eval echo "$as_me:17502: \"$ac_try\"") >&5
17503 (eval $ac_try) 2>&5
17505 echo "$as_me:17505: \$? = $ac_status" >&5
17506 (exit $ac_status); }; }; then
17508 cf_cv_func_openpty=$cf_header
17512 echo "$as_me: failed program was:" >&5
17513 cat conftest.$ac_ext >&5
17515 cf_cv_func_openpty=no
17518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17520 LIBS="$cf_save_LIBS"
17523 echo "$as_me:17523: result: $cf_cv_func_openpty" >&5
17524 echo "${ECHO_T}$cf_cv_func_openpty" >&6
17526 if test "$cf_cv_func_openpty" != no ; then
17527 cat >>confdefs.h <<EOF
17528 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
17531 cat >>confdefs.h <<\EOF
17532 #define USE_XTERM_PTY 1
17535 if test "$cf_cv_lib_util" = yes ; then
17536 TEST_LIBS="-lutil $TEST_LIBS"
17540 if test "$with_hashed_db" != no ; then
17541 cat >>confdefs.h <<\EOF
17542 #define USE_HASHED_DB 1
17545 case $with_hashed_db in #(vi
17549 if test -d "$with_hashed_db" ; then
17551 if test -n "$with_hashed_db/include" ; then
17552 for cf_add_incdir in $with_hashed_db/include
17554 while test $cf_add_incdir != /usr/include
17556 if test -d $cf_add_incdir
17559 if test -n "$CFLAGS$CPPFLAGS" ; then
17560 # a loop is needed to ensure we can add subdirs of existing dirs
17561 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
17562 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
17563 cf_have_incdir=yes; break
17568 if test "$cf_have_incdir" = no ; then
17569 if test "$cf_add_incdir" = /usr/local/include ; then
17570 if test "$GCC" = yes
17572 cf_save_CPPFLAGS=$CPPFLAGS
17573 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
17574 cat >conftest.$ac_ext <<_ACEOF
17575 #line 17575 "configure"
17576 #include "confdefs.h"
17586 rm -f conftest.$ac_objext
17587 if { (eval echo "$as_me:17587: \"$ac_compile\"") >&5
17588 (eval $ac_compile) 2>&5
17590 echo "$as_me:17590: \$? = $ac_status" >&5
17591 (exit $ac_status); } &&
17592 { ac_try='test -s conftest.$ac_objext'
17593 { (eval echo "$as_me:17593: \"$ac_try\"") >&5
17594 (eval $ac_try) 2>&5
17596 echo "$as_me:17596: \$? = $ac_status" >&5
17597 (exit $ac_status); }; }; then
17600 echo "$as_me: failed program was:" >&5
17601 cat conftest.$ac_ext >&5
17604 rm -f conftest.$ac_objext conftest.$ac_ext
17605 CPPFLAGS=$cf_save_CPPFLAGS
17610 if test "$cf_have_incdir" = no ; then
17611 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
17613 echo "${as_me:-configure}:17613: testing adding $cf_add_incdir to include-path ..." 1>&5
17615 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
17617 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
17618 test "$cf_top_incdir" = "$cf_add_incdir" && break
17619 cf_add_incdir="$cf_top_incdir"
17628 if test -n "$with_hashed_db/lib" ; then
17629 for cf_add_libdir in $with_hashed_db/lib
17631 if test $cf_add_libdir = /usr/lib ; then
17633 elif test -d $cf_add_libdir
17636 if test -n "$LDFLAGS$LIBS" ; then
17637 # a loop is needed to ensure we can add subdirs of existing dirs
17638 for cf_test_libdir in $LDFLAGS $LIBS ; do
17639 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
17640 cf_have_libdir=yes; break
17644 if test "$cf_have_libdir" = no ; then
17645 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
17647 echo "${as_me:-configure}:17647: testing adding $cf_add_libdir to library-path ..." 1>&5
17649 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
17658 echo "$as_me:17658: checking for db.h" >&5
17659 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
17660 if test "${ac_cv_header_db_h+set}" = set; then
17661 echo $ECHO_N "(cached) $ECHO_C" >&6
17663 cat >conftest.$ac_ext <<_ACEOF
17664 #line 17664 "configure"
17665 #include "confdefs.h"
17668 if { (eval echo "$as_me:17668: \"$ac_cpp conftest.$ac_ext\"") >&5
17669 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17671 egrep -v '^ *\+' conftest.er1 >conftest.err
17673 cat conftest.err >&5
17674 echo "$as_me:17674: \$? = $ac_status" >&5
17675 (exit $ac_status); } >/dev/null; then
17676 if test -s conftest.err; then
17677 ac_cpp_err=$ac_c_preproc_warn_flag
17684 if test -z "$ac_cpp_err"; then
17685 ac_cv_header_db_h=yes
17687 echo "$as_me: failed program was:" >&5
17688 cat conftest.$ac_ext >&5
17689 ac_cv_header_db_h=no
17691 rm -f conftest.err conftest.$ac_ext
17693 echo "$as_me:17693: result: $ac_cv_header_db_h" >&5
17694 echo "${ECHO_T}$ac_cv_header_db_h" >&6
17695 if test $ac_cv_header_db_h = yes; then
17697 echo "$as_me:17697: checking for version of db" >&5
17698 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
17699 if test "${cf_cv_hashed_db_version+set}" = set; then
17700 echo $ECHO_N "(cached) $ECHO_C" >&6
17703 cf_cv_hashed_db_version=unknown
17705 for cf_db_version in 1 2 3 4 5
17708 echo "${as_me:-configure}:17708: testing checking for db version $cf_db_version ..." 1>&5
17710 cat >conftest.$ac_ext <<_ACEOF
17711 #line 17711 "configure"
17712 #include "confdefs.h"
17714 $ac_includes_default
17717 #ifdef DB_VERSION_MAJOR
17718 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
17719 #if $cf_db_version == DB_VERSION_MAJOR
17725 #if $cf_db_version == 1
17726 /* ok: assuming this is DB 1.8.5 */
17740 rm -f conftest.$ac_objext
17741 if { (eval echo "$as_me:17741: \"$ac_compile\"") >&5
17742 (eval $ac_compile) 2>&5
17744 echo "$as_me:17744: \$? = $ac_status" >&5
17745 (exit $ac_status); } &&
17746 { ac_try='test -s conftest.$ac_objext'
17747 { (eval echo "$as_me:17747: \"$ac_try\"") >&5
17748 (eval $ac_try) 2>&5
17750 echo "$as_me:17750: \$? = $ac_status" >&5
17751 (exit $ac_status); }; }; then
17753 cf_cv_hashed_db_version=$cf_db_version
17757 echo "$as_me: failed program was:" >&5
17758 cat conftest.$ac_ext >&5
17760 rm -f conftest.$ac_objext conftest.$ac_ext
17764 echo "$as_me:17764: result: $cf_cv_hashed_db_version" >&5
17765 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
17767 if test "$cf_cv_hashed_db_version" = unknown ; then
17768 { { echo "$as_me:17768: error: Cannot determine version of db" >&5
17769 echo "$as_me: error: Cannot determine version of db" >&2;}
17770 { (exit 1); exit 1; }; }
17773 echo "$as_me:17773: checking for db libraries" >&5
17774 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
17775 if test "${cf_cv_hashed_db_libs+set}" = set; then
17776 echo $ECHO_N "(cached) $ECHO_C" >&6
17779 cf_cv_hashed_db_libs=unknown
17780 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
17782 cf_save_libs="$LIBS"
17783 if test -n "$cf_db_libs"; then
17784 LIBS="-l$cf_db_libs $LIBS"
17787 echo "${as_me:-configure}:17787: testing checking for library "$cf_db_libs" ..." 1>&5
17789 cat >conftest.$ac_ext <<_ACEOF
17790 #line 17790 "configure"
17791 #include "confdefs.h"
17793 $ac_includes_default
17800 char *path = "/tmp/foo";
17801 #ifdef DB_VERSION_MAJOR
17802 #if DB_VERSION_MAJOR >= 4
17804 db_create(&result, NULL, 0);
17805 result->open(result,
17812 #elif DB_VERSION_MAJOR >= 3
17814 db_create(&result, NULL, 0);
17815 result->open(result,
17821 #elif DB_VERSION_MAJOR >= 2
17830 #endif /* DB_VERSION_MAJOR */
17832 DB *result = dbopen(path,
17838 ${cf_cv_main_return:-return}(result != 0)
17844 rm -f conftest.$ac_objext conftest$ac_exeext
17845 if { (eval echo "$as_me:17845: \"$ac_link\"") >&5
17846 (eval $ac_link) 2>&5
17848 echo "$as_me:17848: \$? = $ac_status" >&5
17849 (exit $ac_status); } &&
17850 { ac_try='test -s conftest$ac_exeext'
17851 { (eval echo "$as_me:17851: \"$ac_try\"") >&5
17852 (eval $ac_try) 2>&5
17854 echo "$as_me:17854: \$? = $ac_status" >&5
17855 (exit $ac_status); }; }; then
17857 if test -n "$cf_db_libs" ; then
17858 cf_cv_hashed_db_libs=$cf_db_libs
17860 cf_cv_hashed_db_libs=default
17862 LIBS="$cf_save_libs"
17866 echo "$as_me: failed program was:" >&5
17867 cat conftest.$ac_ext >&5
17869 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17870 LIBS="$cf_save_libs"
17874 echo "$as_me:17874: result: $cf_cv_hashed_db_libs" >&5
17875 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
17877 if test "$cf_cv_hashed_db_libs" = unknown ; then
17878 { { echo "$as_me:17878: error: Cannot determine library for db" >&5
17879 echo "$as_me: error: Cannot determine library for db" >&2;}
17880 { (exit 1); exit 1; }; }
17881 elif test "$cf_cv_hashed_db_libs" != default ; then
17882 LIBS="-l$cf_cv_hashed_db_libs $LIBS"
17888 { { echo "$as_me:17888: error: Cannot find db.h" >&5
17889 echo "$as_me: error: Cannot find db.h" >&2;}
17890 { (exit 1); exit 1; }; }
17896 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
17897 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
17898 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
17901 # Just in case, check if the C compiler has a bool type.
17903 echo "$as_me:17903: checking if we should include stdbool.h" >&5
17904 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
17906 if test "${cf_cv_header_stdbool_h+set}" = set; then
17907 echo $ECHO_N "(cached) $ECHO_C" >&6
17910 cat >conftest.$ac_ext <<_ACEOF
17911 #line 17911 "configure"
17912 #include "confdefs.h"
17922 rm -f conftest.$ac_objext
17923 if { (eval echo "$as_me:17923: \"$ac_compile\"") >&5
17924 (eval $ac_compile) 2>&5
17926 echo "$as_me:17926: \$? = $ac_status" >&5
17927 (exit $ac_status); } &&
17928 { ac_try='test -s conftest.$ac_objext'
17929 { (eval echo "$as_me:17929: \"$ac_try\"") >&5
17930 (eval $ac_try) 2>&5
17932 echo "$as_me:17932: \$? = $ac_status" >&5
17933 (exit $ac_status); }; }; then
17934 cf_cv_header_stdbool_h=0
17936 echo "$as_me: failed program was:" >&5
17937 cat conftest.$ac_ext >&5
17938 cat >conftest.$ac_ext <<_ACEOF
17939 #line 17939 "configure"
17940 #include "confdefs.h"
17943 #include <stdbool.h>
17954 rm -f conftest.$ac_objext
17955 if { (eval echo "$as_me:17955: \"$ac_compile\"") >&5
17956 (eval $ac_compile) 2>&5
17958 echo "$as_me:17958: \$? = $ac_status" >&5
17959 (exit $ac_status); } &&
17960 { ac_try='test -s conftest.$ac_objext'
17961 { (eval echo "$as_me:17961: \"$ac_try\"") >&5
17962 (eval $ac_try) 2>&5
17964 echo "$as_me:17964: \$? = $ac_status" >&5
17965 (exit $ac_status); }; }; then
17966 cf_cv_header_stdbool_h=1
17968 echo "$as_me: failed program was:" >&5
17969 cat conftest.$ac_ext >&5
17970 cf_cv_header_stdbool_h=0
17972 rm -f conftest.$ac_objext conftest.$ac_ext
17974 rm -f conftest.$ac_objext conftest.$ac_ext
17977 if test "$cf_cv_header_stdbool_h" = 1
17978 then echo "$as_me:17978: result: yes" >&5
17979 echo "${ECHO_T}yes" >&6
17980 else echo "$as_me:17980: result: no" >&5
17981 echo "${ECHO_T}no" >&6
17984 echo "$as_me:17984: checking for builtin bool type" >&5
17985 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
17987 if test "${cf_cv_cc_bool_type+set}" = set; then
17988 echo $ECHO_N "(cached) $ECHO_C" >&6
17991 cat >conftest.$ac_ext <<_ACEOF
17992 #line 17992 "configure"
17993 #include "confdefs.h"
17996 #include <sys/types.h>
18006 rm -f conftest.$ac_objext
18007 if { (eval echo "$as_me:18007: \"$ac_compile\"") >&5
18008 (eval $ac_compile) 2>&5
18010 echo "$as_me:18010: \$? = $ac_status" >&5
18011 (exit $ac_status); } &&
18012 { ac_try='test -s conftest.$ac_objext'
18013 { (eval echo "$as_me:18013: \"$ac_try\"") >&5
18014 (eval $ac_try) 2>&5
18016 echo "$as_me:18016: \$? = $ac_status" >&5
18017 (exit $ac_status); }; }; then
18018 cf_cv_cc_bool_type=1
18020 echo "$as_me: failed program was:" >&5
18021 cat conftest.$ac_ext >&5
18022 cf_cv_cc_bool_type=0
18024 rm -f conftest.$ac_objext conftest.$ac_ext
18028 if test "$cf_cv_cc_bool_type" = 1
18029 then echo "$as_me:18029: result: yes" >&5
18030 echo "${ECHO_T}yes" >&6
18031 else echo "$as_me:18031: result: no" >&5
18032 echo "${ECHO_T}no" >&6
18035 # Check for C++ compiler characteristics (and ensure that it's there!)
18036 if test -n "$CXX" ; then
18038 ac_cpp='$CXXCPP $CPPFLAGS'
18039 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18040 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18041 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18042 ac_main_return=return
18044 if test -n "$GXX" ; then
18045 case $cf_cv_system_name in #(vi
18047 cf_stdcpp_libname=stdcpp
18050 cf_stdcpp_libname=stdc++
18053 echo "$as_me:18053: checking for library $cf_stdcpp_libname" >&5
18054 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
18055 if test "${cf_cv_libstdcpp+set}" = set; then
18056 echo $ECHO_N "(cached) $ECHO_C" >&6
18060 LIBS="-l$cf_stdcpp_libname $LIBS"
18061 cat >conftest.$ac_ext <<_ACEOF
18062 #line 18062 "configure"
18063 #include "confdefs.h"
18065 #include <strstream.h>
18071 strstreambuf foo(buf, sizeof(buf))
18077 rm -f conftest.$ac_objext conftest$ac_exeext
18078 if { (eval echo "$as_me:18078: \"$ac_link\"") >&5
18079 (eval $ac_link) 2>&5
18081 echo "$as_me:18081: \$? = $ac_status" >&5
18082 (exit $ac_status); } &&
18083 { ac_try='test -s conftest$ac_exeext'
18084 { (eval echo "$as_me:18084: \"$ac_try\"") >&5
18085 (eval $ac_try) 2>&5
18087 echo "$as_me:18087: \$? = $ac_status" >&5
18088 (exit $ac_status); }; }; then
18089 cf_cv_libstdcpp=yes
18091 echo "$as_me: failed program was:" >&5
18092 cat conftest.$ac_ext >&5
18095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18099 echo "$as_me:18099: result: $cf_cv_libstdcpp" >&5
18100 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
18101 test "$cf_cv_libstdcpp" = yes && CXXLIBS="-l$cf_stdcpp_libname $CXXLIBS"
18104 echo "$as_me:18104: checking whether $CXX understands -c and -o together" >&5
18105 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
18106 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
18107 echo $ECHO_N "(cached) $ECHO_C" >&6
18110 cat > conftest.$ac_ext <<CF_EOF
18114 ${cf_cv_main_return:-return}(0);
18117 # We do the test twice because some compilers refuse to overwrite an
18118 # existing .o file with -o, though they will create one.
18119 ac_try='$CXX -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
18120 if { (eval echo "$as_me:18120: \"$ac_try\"") >&5
18121 (eval $ac_try) 2>&5
18123 echo "$as_me:18123: \$? = $ac_status" >&5
18124 (exit $ac_status); } &&
18125 test -f conftest2.$ac_objext && { (eval echo "$as_me:18125: \"$ac_try\"") >&5
18126 (eval $ac_try) 2>&5
18128 echo "$as_me:18128: \$? = $ac_status" >&5
18129 (exit $ac_status); };
18131 eval cf_cv_prog_CXX_c_o=yes
18133 eval cf_cv_prog_CXX_c_o=no
18138 if test $cf_cv_prog_CXX_c_o = yes; then
18139 echo "$as_me:18139: result: yes" >&5
18140 echo "${ECHO_T}yes" >&6
18142 echo "$as_me:18142: result: no" >&5
18143 echo "${ECHO_T}no" >&6
18146 case $GXX_VERSION in
18152 cf_cxx_library=unknown
18153 case $cf_cv_system_name in #(vi
18161 if test "$GXX" = yes; then
18162 echo "$as_me:18162: checking for lib$cf_gpp_libname" >&5
18163 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
18165 LIBS="-l$cf_gpp_libname $LIBS"
18166 cat >conftest.$ac_ext <<_ACEOF
18167 #line 18167 "configure"
18168 #include "confdefs.h"
18170 #include <$cf_gpp_libname/builtin.h>
18175 two_arg_error_handler_t foo2 = lib_error_handler
18180 rm -f conftest.$ac_objext conftest$ac_exeext
18181 if { (eval echo "$as_me:18181: \"$ac_link\"") >&5
18182 (eval $ac_link) 2>&5
18184 echo "$as_me:18184: \$? = $ac_status" >&5
18185 (exit $ac_status); } &&
18186 { ac_try='test -s conftest$ac_exeext'
18187 { (eval echo "$as_me:18187: \"$ac_try\"") >&5
18188 (eval $ac_try) 2>&5
18190 echo "$as_me:18190: \$? = $ac_status" >&5
18191 (exit $ac_status); }; }; then
18193 CXXLIBS="-l$cf_gpp_libname $CXXLIBS"
18194 if test "$cf_gpp_libname" = cpp ; then
18195 cat >>confdefs.h <<\EOF
18196 #define HAVE_GPP_BUILTIN_H 1
18200 cat >>confdefs.h <<\EOF
18201 #define HAVE_GXX_BUILTIN_H 1
18206 echo "$as_me: failed program was:" >&5
18207 cat conftest.$ac_ext >&5
18208 cat >conftest.$ac_ext <<_ACEOF
18209 #line 18209 "configure"
18210 #include "confdefs.h"
18212 #include <builtin.h>
18217 two_arg_error_handler_t foo2 = lib_error_handler
18222 rm -f conftest.$ac_objext conftest$ac_exeext
18223 if { (eval echo "$as_me:18223: \"$ac_link\"") >&5
18224 (eval $ac_link) 2>&5
18226 echo "$as_me:18226: \$? = $ac_status" >&5
18227 (exit $ac_status); } &&
18228 { ac_try='test -s conftest$ac_exeext'
18229 { (eval echo "$as_me:18229: \"$ac_try\"") >&5
18230 (eval $ac_try) 2>&5
18232 echo "$as_me:18232: \$? = $ac_status" >&5
18233 (exit $ac_status); }; }; then
18235 CXXLIBS="-l$cf_gpp_libname $CXXLIBS"
18236 cat >>confdefs.h <<\EOF
18237 #define HAVE_BUILTIN_H 1
18241 echo "$as_me: failed program was:" >&5
18242 cat conftest.$ac_ext >&5
18245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18249 echo "$as_me:18249: result: $cf_cxx_library" >&5
18250 echo "${ECHO_T}$cf_cxx_library" >&6
18260 ac_cpp='$CXXCPP $CPPFLAGS'
18261 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18262 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18263 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18264 ac_main_return=return
18265 echo "$as_me:18265: checking how to run the C++ preprocessor" >&5
18266 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
18267 if test -z "$CXXCPP"; then
18268 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18269 echo $ECHO_N "(cached) $ECHO_C" >&6
18271 # Double quotes because CXXCPP needs to be expanded
18272 for CXXCPP in "$CXX -E" "/lib/cpp"
18274 ac_preproc_ok=false
18275 for ac_cxx_preproc_warn_flag in '' yes
18277 # Use a header file that comes with gcc, so configuring glibc
18278 # with a fresh cross-compiler works.
18279 # On the NeXT, cc -E runs the code through the compiler's parser,
18280 # not just through cpp. "Syntax error" is here to catch this case.
18281 cat >conftest.$ac_ext <<_ACEOF
18282 #line 18282 "configure"
18283 #include "confdefs.h"
18284 #include <assert.h>
18287 if { (eval echo "$as_me:18287: \"$ac_cpp conftest.$ac_ext\"") >&5
18288 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18290 egrep -v '^ *\+' conftest.er1 >conftest.err
18292 cat conftest.err >&5
18293 echo "$as_me:18293: \$? = $ac_status" >&5
18294 (exit $ac_status); } >/dev/null; then
18295 if test -s conftest.err; then
18296 ac_cpp_err=$ac_cxx_preproc_warn_flag
18303 if test -z "$ac_cpp_err"; then
18306 echo "$as_me: failed program was:" >&5
18307 cat conftest.$ac_ext >&5
18308 # Broken: fails on valid input.
18311 rm -f conftest.err conftest.$ac_ext
18313 # OK, works on sane cases. Now check whether non-existent headers
18314 # can be detected and how.
18315 cat >conftest.$ac_ext <<_ACEOF
18316 #line 18316 "configure"
18317 #include "confdefs.h"
18318 #include <ac_nonexistent.h>
18320 if { (eval echo "$as_me:18320: \"$ac_cpp conftest.$ac_ext\"") >&5
18321 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18323 egrep -v '^ *\+' conftest.er1 >conftest.err
18325 cat conftest.err >&5
18326 echo "$as_me:18326: \$? = $ac_status" >&5
18327 (exit $ac_status); } >/dev/null; then
18328 if test -s conftest.err; then
18329 ac_cpp_err=$ac_cxx_preproc_warn_flag
18336 if test -z "$ac_cpp_err"; then
18337 # Broken: success on invalid input.
18340 echo "$as_me: failed program was:" >&5
18341 cat conftest.$ac_ext >&5
18342 # Passes both tests.
18346 rm -f conftest.err conftest.$ac_ext
18349 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18350 rm -f conftest.err conftest.$ac_ext
18351 if $ac_preproc_ok; then
18356 ac_cv_prog_CXXCPP=$CXXCPP
18359 CXXCPP=$ac_cv_prog_CXXCPP
18361 ac_cv_prog_CXXCPP=$CXXCPP
18363 echo "$as_me:18363: result: $CXXCPP" >&5
18364 echo "${ECHO_T}$CXXCPP" >&6
18365 ac_preproc_ok=false
18366 for ac_cxx_preproc_warn_flag in '' yes
18368 # Use a header file that comes with gcc, so configuring glibc
18369 # with a fresh cross-compiler works.
18370 # On the NeXT, cc -E runs the code through the compiler's parser,
18371 # not just through cpp. "Syntax error" is here to catch this case.
18372 cat >conftest.$ac_ext <<_ACEOF
18373 #line 18373 "configure"
18374 #include "confdefs.h"
18375 #include <assert.h>
18378 if { (eval echo "$as_me:18378: \"$ac_cpp conftest.$ac_ext\"") >&5
18379 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18381 egrep -v '^ *\+' conftest.er1 >conftest.err
18383 cat conftest.err >&5
18384 echo "$as_me:18384: \$? = $ac_status" >&5
18385 (exit $ac_status); } >/dev/null; then
18386 if test -s conftest.err; then
18387 ac_cpp_err=$ac_cxx_preproc_warn_flag
18394 if test -z "$ac_cpp_err"; then
18397 echo "$as_me: failed program was:" >&5
18398 cat conftest.$ac_ext >&5
18399 # Broken: fails on valid input.
18402 rm -f conftest.err conftest.$ac_ext
18404 # OK, works on sane cases. Now check whether non-existent headers
18405 # can be detected and how.
18406 cat >conftest.$ac_ext <<_ACEOF
18407 #line 18407 "configure"
18408 #include "confdefs.h"
18409 #include <ac_nonexistent.h>
18411 if { (eval echo "$as_me:18411: \"$ac_cpp conftest.$ac_ext\"") >&5
18412 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18414 egrep -v '^ *\+' conftest.er1 >conftest.err
18416 cat conftest.err >&5
18417 echo "$as_me:18417: \$? = $ac_status" >&5
18418 (exit $ac_status); } >/dev/null; then
18419 if test -s conftest.err; then
18420 ac_cpp_err=$ac_cxx_preproc_warn_flag
18427 if test -z "$ac_cpp_err"; then
18428 # Broken: success on invalid input.
18431 echo "$as_me: failed program was:" >&5
18432 cat conftest.$ac_ext >&5
18433 # Passes both tests.
18437 rm -f conftest.err conftest.$ac_ext
18440 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18441 rm -f conftest.err conftest.$ac_ext
18442 if $ac_preproc_ok; then
18445 { { echo "$as_me:18445: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
18446 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
18447 { (exit 1); exit 1; }; }
18451 ac_cpp='$CXXCPP $CPPFLAGS'
18452 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18453 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18454 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18455 ac_main_return=return
18457 for ac_header in typeinfo
18459 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18460 echo "$as_me:18460: checking for $ac_header" >&5
18461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18463 echo $ECHO_N "(cached) $ECHO_C" >&6
18465 cat >conftest.$ac_ext <<_ACEOF
18466 #line 18466 "configure"
18467 #include "confdefs.h"
18468 #include <$ac_header>
18470 if { (eval echo "$as_me:18470: \"$ac_cpp conftest.$ac_ext\"") >&5
18471 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18473 egrep -v '^ *\+' conftest.er1 >conftest.err
18475 cat conftest.err >&5
18476 echo "$as_me:18476: \$? = $ac_status" >&5
18477 (exit $ac_status); } >/dev/null; then
18478 if test -s conftest.err; then
18479 ac_cpp_err=$ac_cxx_preproc_warn_flag
18486 if test -z "$ac_cpp_err"; then
18487 eval "$as_ac_Header=yes"
18489 echo "$as_me: failed program was:" >&5
18490 cat conftest.$ac_ext >&5
18491 eval "$as_ac_Header=no"
18493 rm -f conftest.err conftest.$ac_ext
18495 echo "$as_me:18495: result: `eval echo '${'$as_ac_Header'}'`" >&5
18496 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18498 cat >>confdefs.h <<EOF
18499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18505 for ac_header in iostream
18507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18508 echo "$as_me:18508: checking for $ac_header" >&5
18509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18511 echo $ECHO_N "(cached) $ECHO_C" >&6
18513 cat >conftest.$ac_ext <<_ACEOF
18514 #line 18514 "configure"
18515 #include "confdefs.h"
18516 #include <$ac_header>
18518 if { (eval echo "$as_me:18518: \"$ac_cpp conftest.$ac_ext\"") >&5
18519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18521 egrep -v '^ *\+' conftest.er1 >conftest.err
18523 cat conftest.err >&5
18524 echo "$as_me:18524: \$? = $ac_status" >&5
18525 (exit $ac_status); } >/dev/null; then
18526 if test -s conftest.err; then
18527 ac_cpp_err=$ac_cxx_preproc_warn_flag
18534 if test -z "$ac_cpp_err"; then
18535 eval "$as_ac_Header=yes"
18537 echo "$as_me: failed program was:" >&5
18538 cat conftest.$ac_ext >&5
18539 eval "$as_ac_Header=no"
18541 rm -f conftest.err conftest.$ac_ext
18543 echo "$as_me:18543: result: `eval echo '${'$as_ac_Header'}'`" >&5
18544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18545 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18546 cat >>confdefs.h <<EOF
18547 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18553 if test x"$ac_cv_header_iostream" = xyes ; then
18554 echo "$as_me:18554: checking if iostream uses std-namespace" >&5
18555 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
18556 cat >conftest.$ac_ext <<_ACEOF
18557 #line 18557 "configure"
18558 #include "confdefs.h"
18560 #include <iostream>
18567 cerr << "testing" << endl;
18573 rm -f conftest.$ac_objext
18574 if { (eval echo "$as_me:18574: \"$ac_compile\"") >&5
18575 (eval $ac_compile) 2>&5
18577 echo "$as_me:18577: \$? = $ac_status" >&5
18578 (exit $ac_status); } &&
18579 { ac_try='test -s conftest.$ac_objext'
18580 { (eval echo "$as_me:18580: \"$ac_try\"") >&5
18581 (eval $ac_try) 2>&5
18583 echo "$as_me:18583: \$? = $ac_status" >&5
18584 (exit $ac_status); }; }; then
18585 cf_iostream_namespace=yes
18587 echo "$as_me: failed program was:" >&5
18588 cat conftest.$ac_ext >&5
18589 cf_iostream_namespace=no
18591 rm -f conftest.$ac_objext conftest.$ac_ext
18592 echo "$as_me:18592: result: $cf_iostream_namespace" >&5
18593 echo "${ECHO_T}$cf_iostream_namespace" >&6
18594 if test "$cf_iostream_namespace" = yes ; then
18595 cat >>confdefs.h <<\EOF
18596 #define IOSTREAM_NAMESPACE 1
18602 echo "$as_me:18602: checking if we should include stdbool.h" >&5
18603 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
18605 if test "${cf_cv_header_stdbool_h+set}" = set; then
18606 echo $ECHO_N "(cached) $ECHO_C" >&6
18609 cat >conftest.$ac_ext <<_ACEOF
18610 #line 18610 "configure"
18611 #include "confdefs.h"
18621 rm -f conftest.$ac_objext
18622 if { (eval echo "$as_me:18622: \"$ac_compile\"") >&5
18623 (eval $ac_compile) 2>&5
18625 echo "$as_me:18625: \$? = $ac_status" >&5
18626 (exit $ac_status); } &&
18627 { ac_try='test -s conftest.$ac_objext'
18628 { (eval echo "$as_me:18628: \"$ac_try\"") >&5
18629 (eval $ac_try) 2>&5
18631 echo "$as_me:18631: \$? = $ac_status" >&5
18632 (exit $ac_status); }; }; then
18633 cf_cv_header_stdbool_h=0
18635 echo "$as_me: failed program was:" >&5
18636 cat conftest.$ac_ext >&5
18637 cat >conftest.$ac_ext <<_ACEOF
18638 #line 18638 "configure"
18639 #include "confdefs.h"
18642 #include <stdbool.h>
18653 rm -f conftest.$ac_objext
18654 if { (eval echo "$as_me:18654: \"$ac_compile\"") >&5
18655 (eval $ac_compile) 2>&5
18657 echo "$as_me:18657: \$? = $ac_status" >&5
18658 (exit $ac_status); } &&
18659 { ac_try='test -s conftest.$ac_objext'
18660 { (eval echo "$as_me:18660: \"$ac_try\"") >&5
18661 (eval $ac_try) 2>&5
18663 echo "$as_me:18663: \$? = $ac_status" >&5
18664 (exit $ac_status); }; }; then
18665 cf_cv_header_stdbool_h=1
18667 echo "$as_me: failed program was:" >&5
18668 cat conftest.$ac_ext >&5
18669 cf_cv_header_stdbool_h=0
18671 rm -f conftest.$ac_objext conftest.$ac_ext
18673 rm -f conftest.$ac_objext conftest.$ac_ext
18676 if test "$cf_cv_header_stdbool_h" = 1
18677 then echo "$as_me:18677: result: yes" >&5
18678 echo "${ECHO_T}yes" >&6
18679 else echo "$as_me:18679: result: no" >&5
18680 echo "${ECHO_T}no" >&6
18683 echo "$as_me:18683: checking for builtin bool type" >&5
18684 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
18686 if test "${cf_cv_builtin_bool+set}" = set; then
18687 echo $ECHO_N "(cached) $ECHO_C" >&6
18690 cat >conftest.$ac_ext <<_ACEOF
18691 #line 18691 "configure"
18692 #include "confdefs.h"
18695 #include <sys/types.h>
18705 rm -f conftest.$ac_objext
18706 if { (eval echo "$as_me:18706: \"$ac_compile\"") >&5
18707 (eval $ac_compile) 2>&5
18709 echo "$as_me:18709: \$? = $ac_status" >&5
18710 (exit $ac_status); } &&
18711 { ac_try='test -s conftest.$ac_objext'
18712 { (eval echo "$as_me:18712: \"$ac_try\"") >&5
18713 (eval $ac_try) 2>&5
18715 echo "$as_me:18715: \$? = $ac_status" >&5
18716 (exit $ac_status); }; }; then
18717 cf_cv_builtin_bool=1
18719 echo "$as_me: failed program was:" >&5
18720 cat conftest.$ac_ext >&5
18721 cf_cv_builtin_bool=0
18723 rm -f conftest.$ac_objext conftest.$ac_ext
18727 if test "$cf_cv_builtin_bool" = 1
18728 then echo "$as_me:18728: result: yes" >&5
18729 echo "${ECHO_T}yes" >&6
18730 else echo "$as_me:18730: result: no" >&5
18731 echo "${ECHO_T}no" >&6
18734 echo "$as_me:18734: checking for size of bool" >&5
18735 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
18736 if test "${cf_cv_type_of_bool+set}" = set; then
18737 echo $ECHO_N "(cached) $ECHO_C" >&6
18741 if test "$cross_compiling" = yes; then
18742 cf_cv_type_of_bool=unknown
18744 cat >conftest.$ac_ext <<_ACEOF
18745 #line 18745 "configure"
18746 #include "confdefs.h"
18748 #include <stdlib.h>
18751 #if defined(__cplusplus)
18753 #ifdef HAVE_GXX_BUILTIN_H
18754 #include <g++/builtin.h>
18755 #elif HAVE_GPP_BUILTIN_H
18756 #include <gpp/builtin.h>
18757 #elif HAVE_BUILTIN_H
18758 #include <builtin.h>
18763 #if $cf_cv_header_stdbool_h
18764 #include <stdbool.h>
18771 FILE *fp = fopen("cf_test.out", "w");
18774 if ((bool)(-x) >= 0)
18775 fputs("unsigned ", fp);
18776 if (sizeof(x) == sizeof(int)) fputs("int", fp);
18777 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
18778 else if (sizeof(x) == sizeof(short))fputs("short",fp);
18779 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
18782 ${cf_cv_main_return:-return}(0);
18786 rm -f conftest$ac_exeext
18787 if { (eval echo "$as_me:18787: \"$ac_link\"") >&5
18788 (eval $ac_link) 2>&5
18790 echo "$as_me:18790: \$? = $ac_status" >&5
18791 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18792 { (eval echo "$as_me:18792: \"$ac_try\"") >&5
18793 (eval $ac_try) 2>&5
18795 echo "$as_me:18795: \$? = $ac_status" >&5
18796 (exit $ac_status); }; }; then
18797 cf_cv_type_of_bool=`cat cf_test.out`
18798 if test -z "$cf_cv_type_of_bool"; then
18799 cf_cv_type_of_bool=unknown
18802 echo "$as_me: program exited with status $ac_status" >&5
18803 echo "$as_me: failed program was:" >&5
18804 cat conftest.$ac_ext >&5
18805 cf_cv_type_of_bool=unknown
18807 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18813 echo "$as_me:18813: result: $cf_cv_type_of_bool" >&5
18814 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
18815 if test "$cf_cv_type_of_bool" = unknown ; then
18816 case .$NCURSES_BOOL in #(vi
18817 .auto|.) NCURSES_BOOL=unsigned;;
18819 { echo "$as_me:18819: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
18820 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
18821 cf_cv_type_of_bool=$NCURSES_BOOL
18824 echo "$as_me:18824: checking for special defines needed for etip.h" >&5
18825 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
18826 cf_save_CXXFLAGS="$CXXFLAGS"
18829 # etip.h includes ncurses.h which includes ncurses_dll.h
18830 # But ncurses_dll.h is generated - fix here.
18831 test -d include || mkdir include
18832 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
18834 for cf_math in "" MATH_H
18836 for cf_excp in "" MATH_EXCEPTION
18838 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -Iinclude -I${srcdir}/include"
18839 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
18840 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
18841 cat >conftest.$ac_ext <<_ACEOF
18842 #line 18842 "configure"
18843 #include "confdefs.h"
18845 #include <etip.h.in>
18855 rm -f conftest.$ac_objext
18856 if { (eval echo "$as_me:18856: \"$ac_compile\"") >&5
18857 (eval $ac_compile) 2>&5
18859 echo "$as_me:18859: \$? = $ac_status" >&5
18860 (exit $ac_status); } &&
18861 { ac_try='test -s conftest.$ac_objext'
18862 { (eval echo "$as_me:18862: \"$ac_try\"") >&5
18863 (eval $ac_try) 2>&5
18865 echo "$as_me:18865: \$? = $ac_status" >&5
18866 (exit $ac_status); }; }; then
18868 test -n "$cf_math" && cat >>confdefs.h <<EOF
18869 #define ETIP_NEEDS_${cf_math} 1
18872 test -n "$cf_excp" && cat >>confdefs.h <<EOF
18873 #define ETIP_NEEDS_${cf_excp} 1
18876 cf_result="$cf_math $cf_excp"
18880 echo "$as_me: failed program was:" >&5
18881 cat conftest.$ac_ext >&5
18883 rm -f conftest.$ac_objext conftest.$ac_ext
18886 echo "$as_me:18886: result: $cf_result" >&5
18887 echo "${ECHO_T}$cf_result" >&6
18888 CXXFLAGS="$cf_save_CXXFLAGS"
18890 if test -n "$CXX"; then
18891 echo "$as_me:18891: checking if $CXX accepts parameter initialization" >&5
18892 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
18893 if test "${cf_cv_cpp_param_init+set}" = set; then
18894 echo $ECHO_N "(cached) $ECHO_C" >&6
18898 ac_cpp='$CXXCPP $CPPFLAGS'
18899 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18900 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18901 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18902 ac_main_return=return
18904 if test "$cross_compiling" = yes; then
18905 cf_cv_cpp_param_init=unknown
18907 cat >conftest.$ac_ext <<_ACEOF
18908 #line 18908 "configure"
18909 #include "confdefs.h"
18919 TEST::TEST(int x = 1) // some compilers do not like second initializer
18926 rm -f conftest$ac_exeext
18927 if { (eval echo "$as_me:18927: \"$ac_link\"") >&5
18928 (eval $ac_link) 2>&5
18930 echo "$as_me:18930: \$? = $ac_status" >&5
18931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18932 { (eval echo "$as_me:18932: \"$ac_try\"") >&5
18933 (eval $ac_try) 2>&5
18935 echo "$as_me:18935: \$? = $ac_status" >&5
18936 (exit $ac_status); }; }; then
18937 cf_cv_cpp_param_init=yes
18939 echo "$as_me: program exited with status $ac_status" >&5
18940 echo "$as_me: failed program was:" >&5
18941 cat conftest.$ac_ext >&5
18942 cf_cv_cpp_param_init=no
18944 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18947 ac_cpp='$CXXCPP $CPPFLAGS'
18948 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18949 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18950 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18951 ac_main_return=return
18954 echo "$as_me:18954: result: $cf_cv_cpp_param_init" >&5
18955 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
18957 test "$cf_cv_cpp_param_init" = yes && cat >>confdefs.h <<\EOF
18958 #define CPP_HAS_PARAM_INIT 1
18961 if test -n "$CXX"; then
18963 echo "$as_me:18963: checking if $CXX accepts static_cast" >&5
18964 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
18965 if test "${cf_cv_cpp_static_cast+set}" = set; then
18966 echo $ECHO_N "(cached) $ECHO_C" >&6
18970 ac_cpp='$CXXCPP $CPPFLAGS'
18971 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18972 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18973 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18974 ac_main_return=return
18976 cat >conftest.$ac_ext <<_ACEOF
18977 #line 18977 "configure"
18978 #include "confdefs.h"
18983 NCursesPanel(int nlines,
18993 template<class T> class NCursesUserPanel : public NCursesPanel
18996 NCursesUserPanel (int nlines,
19000 const T* p_UserData = static_cast<T*>(0))
19001 : NCursesPanel (nlines, ncols, begin_y, begin_x)
19004 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
19008 virtual ~NCursesUserPanel() {};
19015 const char* p_UserData = static_cast<char*>(0)
19020 rm -f conftest.$ac_objext
19021 if { (eval echo "$as_me:19021: \"$ac_compile\"") >&5
19022 (eval $ac_compile) 2>&5
19024 echo "$as_me:19024: \$? = $ac_status" >&5
19025 (exit $ac_status); } &&
19026 { ac_try='test -s conftest.$ac_objext'
19027 { (eval echo "$as_me:19027: \"$ac_try\"") >&5
19028 (eval $ac_try) 2>&5
19030 echo "$as_me:19030: \$? = $ac_status" >&5
19031 (exit $ac_status); }; }; then
19032 cf_cv_cpp_static_cast=yes
19034 echo "$as_me: failed program was:" >&5
19035 cat conftest.$ac_ext >&5
19036 cf_cv_cpp_static_cast=no
19038 rm -f conftest.$ac_objext conftest.$ac_ext
19041 ac_cpp='$CXXCPP $CPPFLAGS'
19042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19045 ac_main_return=return
19048 echo "$as_me:19048: result: $cf_cv_cpp_static_cast" >&5
19049 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
19053 test "$cf_cv_cpp_static_cast" = yes && cat >>confdefs.h <<\EOF
19054 #define CPP_HAS_STATIC_CAST 1
19058 CXX_ARFLAGS='$(ARFLAGS)'
19059 case $cf_cv_system_name in #(vi
19061 if test "$GXX" != yes ; then
19063 CXX_ARFLAGS='-ar -o'
19067 CXXLDFLAGS="-u main"
19070 if test "$GXX" != yes ; then
19072 CXX_ARFLAGS='-xar -o'
19079 cf_cv_builtin_bool=1
19081 # Just because we are not configuring against C++ right now does not
19082 # mean that a user will not want to use C++. Some distributors disable
19083 # the C++ portion of this configuration as a shortcut (or just to avoid
19084 # compiling the demo in the c++ directory). So we need a reasonable
19085 # default for the 'bool' type.
19087 # Caveat: since the storage of the bool type is not standardized, it
19090 if test "$NCURSES_BOOL" != auto ; then
19091 cf_cv_type_of_bool=$NCURSES_BOOL
19092 cf_cv_header_stdbool_h=0
19094 if test "$cf_cv_header_stdbool_h" = 1 ; then
19096 echo "$as_me:19096: checking for size of bool" >&5
19097 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
19098 if test "${cf_cv_type_of_bool+set}" = set; then
19099 echo $ECHO_N "(cached) $ECHO_C" >&6
19103 if test "$cross_compiling" = yes; then
19104 cf_cv_type_of_bool=unknown
19106 cat >conftest.$ac_ext <<_ACEOF
19107 #line 19107 "configure"
19108 #include "confdefs.h"
19110 #include <stdlib.h>
19113 #if defined(__cplusplus)
19115 #ifdef HAVE_GXX_BUILTIN_H
19116 #include <g++/builtin.h>
19117 #elif HAVE_GPP_BUILTIN_H
19118 #include <gpp/builtin.h>
19119 #elif HAVE_BUILTIN_H
19120 #include <builtin.h>
19125 #if $cf_cv_header_stdbool_h
19126 #include <stdbool.h>
19133 FILE *fp = fopen("cf_test.out", "w");
19136 if ((bool)(-x) >= 0)
19137 fputs("unsigned ", fp);
19138 if (sizeof(x) == sizeof(int)) fputs("int", fp);
19139 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
19140 else if (sizeof(x) == sizeof(short))fputs("short",fp);
19141 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
19144 ${cf_cv_main_return:-return}(0);
19148 rm -f conftest$ac_exeext
19149 if { (eval echo "$as_me:19149: \"$ac_link\"") >&5
19150 (eval $ac_link) 2>&5
19152 echo "$as_me:19152: \$? = $ac_status" >&5
19153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19154 { (eval echo "$as_me:19154: \"$ac_try\"") >&5
19155 (eval $ac_try) 2>&5
19157 echo "$as_me:19157: \$? = $ac_status" >&5
19158 (exit $ac_status); }; }; then
19159 cf_cv_type_of_bool=`cat cf_test.out`
19160 if test -z "$cf_cv_type_of_bool"; then
19161 cf_cv_type_of_bool=unknown
19164 echo "$as_me: program exited with status $ac_status" >&5
19165 echo "$as_me: failed program was:" >&5
19166 cat conftest.$ac_ext >&5
19167 cf_cv_type_of_bool=unknown
19169 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19175 echo "$as_me:19175: result: $cf_cv_type_of_bool" >&5
19176 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
19177 if test "$cf_cv_type_of_bool" = unknown ; then
19178 case .$NCURSES_BOOL in #(vi
19179 .auto|.) NCURSES_BOOL=unsigned;;
19181 { echo "$as_me:19181: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
19182 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
19183 cf_cv_type_of_bool=$NCURSES_BOOL
19187 echo "$as_me:19187: checking for fallback type of bool" >&5
19188 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
19189 case "$host_cpu" in #(vi
19190 i?86) cf_cv_type_of_bool=char ;; #(vi
19191 *) cf_cv_type_of_bool=int ;;
19193 echo "$as_me:19193: result: $cf_cv_type_of_bool" >&5
19194 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
19199 # If the C compiler did not declare bool, and we did not determine that the C++
19200 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
19201 # ncurses library use the same type as C++ bool. Note that this allows one to
19202 # specify the type of bool in a configure-script option and postpone
19203 # integration with the C++ compiler provided that the types are compatible.
19205 if test $cf_cv_cc_bool_type = 1
19207 # oops: C has a bool. Unlikely, but C++ could differ.
19209 elif test $cf_cv_builtin_bool = 0
19214 # this is the normal case
19215 USE_CXX_BOOL='defined(__cplusplus)'
19218 if test -f "${srcdir}/Ada95/Makefile.in" ; then
19220 if test "$cf_with_ada" != "no" ; then
19221 if test "$with_libtool" != "no"; then
19222 { echo "$as_me:19222: WARNING: libtool does not support Ada - disabling feature" >&5
19223 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
19228 if test "$cf_with_ada" != "no" ; then
19230 cf_ada_make=gnatmake
19231 # Extract the first word of "$cf_ada_make", so it can be a program name with args.
19232 set dummy $cf_ada_make; ac_word=$2
19233 echo "$as_me:19233: checking for $ac_word" >&5
19234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19235 if test "${ac_cv_prog_gnat_exists+set}" = set; then
19236 echo $ECHO_N "(cached) $ECHO_C" >&6
19238 if test -n "$gnat_exists"; then
19239 ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test.
19241 ac_save_IFS=$IFS; IFS=$ac_path_separator
19243 for ac_dir in $ac_dummy; do
19245 test -z "$ac_dir" && ac_dir=.
19246 $as_executable_p "$ac_dir/$ac_word" || continue
19247 ac_cv_prog_gnat_exists="yes"
19248 echo "$as_me:19248: found $ac_dir/$ac_word" >&5
19252 test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no"
19255 gnat_exists=$ac_cv_prog_gnat_exists
19256 if test -n "$gnat_exists"; then
19257 echo "$as_me:19257: result: $gnat_exists" >&5
19258 echo "${ECHO_T}$gnat_exists" >&6
19260 echo "$as_me:19260: result: no" >&5
19261 echo "${ECHO_T}no" >&6
19264 if test "$ac_cv_prog_gnat_exists" = no; then
19266 cf_cv_prog_gnat_correct=no
19269 echo "$as_me:19269: checking for gnat version" >&5
19270 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
19271 cf_gnat_version=`${cf_ada_make:-gnatmake} -v 2>&1 | \
19272 grep '[0-9].[0-9][0-9]*' |\
19273 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
19274 echo "$as_me:19274: result: $cf_gnat_version" >&5
19275 echo "${ECHO_T}$cf_gnat_version" >&6
19277 case $cf_gnat_version in #(vi
19278 3.1[1-9]*|3.[2-9]*|[4-9].*|20[0-9][0-9]) #(vi
19279 cf_cv_prog_gnat_correct=yes
19282 { echo "$as_me:19282: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
19283 echo "$as_me: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
19284 cf_cv_prog_gnat_correct=no
19288 # Extract the first word of "m4", so it can be a program name with args.
19289 set dummy m4; ac_word=$2
19290 echo "$as_me:19290: checking for $ac_word" >&5
19291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19292 if test "${ac_cv_prog_M4_exists+set}" = set; then
19293 echo $ECHO_N "(cached) $ECHO_C" >&6
19295 if test -n "$M4_exists"; then
19296 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
19298 ac_save_IFS=$IFS; IFS=$ac_path_separator
19300 for ac_dir in $ac_dummy; do
19302 test -z "$ac_dir" && ac_dir=.
19303 $as_executable_p "$ac_dir/$ac_word" || continue
19304 ac_cv_prog_M4_exists="yes"
19305 echo "$as_me:19305: found $ac_dir/$ac_word" >&5
19309 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
19312 M4_exists=$ac_cv_prog_M4_exists
19313 if test -n "$M4_exists"; then
19314 echo "$as_me:19314: result: $M4_exists" >&5
19315 echo "${ECHO_T}$M4_exists" >&6
19317 echo "$as_me:19317: result: no" >&5
19318 echo "${ECHO_T}no" >&6
19321 if test "$ac_cv_prog_M4_exists" = no; then
19322 cf_cv_prog_gnat_correct=no
19323 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
19325 if test "$cf_cv_prog_gnat_correct" = yes; then
19326 echo "$as_me:19326: checking if GNAT works" >&5
19327 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
19329 rm -rf conftest* *~conftest*
19330 cat >>conftest.ads <<CF_EOF
19331 procedure conftest;
19333 cat >>conftest.adb <<CF_EOF
19336 procedure conftest is
19338 Text_IO.Put ("Hello World");
19340 GNAT.OS_Lib.OS_Exit (0);
19343 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
19344 if ( ./conftest 1>&5 2>&1 ) ; then
19345 cf_cv_prog_gnat_correct=yes
19347 cf_cv_prog_gnat_correct=no
19350 cf_cv_prog_gnat_correct=no
19352 rm -rf conftest* *~conftest*
19354 echo "$as_me:19354: result: $cf_cv_prog_gnat_correct" >&5
19355 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
19359 if test "$cf_cv_prog_gnat_correct" = yes; then
19361 ADAFLAGS="$ADAFLAGS -gnatpn"
19363 echo "$as_me:19363: checking optimization options for ADAFLAGS" >&5
19364 echo $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6
19368 ADAFLAGS="$ADAFLAGS -g"
19374 cf_O_flag=`echo "$CFLAGS" |sed -e 's/^.*-O/-O/' -e 's/[ ].*//'`
19376 ADAFLAGS="$ADAFLAGS $cf_O_flag"
19380 echo "$as_me:19380: result: $ADAFLAGS" >&5
19381 echo "${ECHO_T}$ADAFLAGS" >&6
19383 echo "$as_me:19383: checking if GNAT supports generics" >&5
19384 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
19385 case $cf_gnat_version in #(vi
19386 3.[1-9]*|[4-9].*) #(vi
19387 cf_gnat_generics=yes
19390 cf_gnat_generics=no
19393 echo "$as_me:19393: result: $cf_gnat_generics" >&5
19394 echo "${ECHO_T}$cf_gnat_generics" >&6
19396 if test "$cf_gnat_generics" = yes
19398 cf_compile_generics=generics
19399 cf_generic_objects="\${GENOBJS}"
19401 cf_compile_generics=
19402 cf_generic_objects=
19405 echo "$as_me:19405: checking if GNAT supports SIGINT" >&5
19406 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
19407 if test "${cf_cv_gnat_sigint+set}" = set; then
19408 echo $ECHO_N "(cached) $ECHO_C" >&6
19411 rm -rf conftest* *~conftest*
19412 cat >>conftest.ads <<CF_EOF
19413 with Ada.Interrupts.Names;
19415 package ConfTest is
19417 pragma Warnings (Off); -- the next pragma exists since 3.11p
19418 pragma Unreserve_All_Interrupts;
19419 pragma Warnings (On);
19421 protected Process is
19423 function Continue return Boolean;
19424 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
19426 Done : Boolean := False;
19431 cat >>conftest.adb <<CF_EOF
19432 package body ConfTest is
19433 protected body Process is
19438 function Continue return Boolean is
19445 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
19446 cf_cv_gnat_sigint=yes
19448 cf_cv_gnat_sigint=no
19450 rm -rf conftest* *~conftest*
19453 echo "$as_me:19453: result: $cf_cv_gnat_sigint" >&5
19454 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
19456 if test $cf_cv_gnat_sigint = yes ; then
19459 USE_GNAT_SIGINT="#"
19462 echo "$as_me:19462: checking if GNAT pragma Unreferenced works" >&5
19463 echo $ECHO_N "checking if GNAT pragma Unreferenced works... $ECHO_C" >&6
19464 if test "${cf_cv_pragma_unreferenced+set}" = set; then
19465 echo $ECHO_N "(cached) $ECHO_C" >&6
19468 rm -rf conftest* *~conftest*
19469 cat >>conftest.ads <<CF_EOF
19470 procedure conftest;
19472 cat >>conftest.adb <<CF_EOF
19475 procedure conftest is
19477 pragma Unreferenced (test);
19480 Text_IO.Put ("Hello World");
19482 GNAT.OS_Lib.OS_Exit (0);
19485 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
19486 cf_cv_pragma_unreferenced=yes
19488 cf_cv_pragma_unreferenced=no
19490 rm -rf conftest* *~conftest*
19493 echo "$as_me:19493: result: $cf_cv_pragma_unreferenced" >&5
19494 echo "${ECHO_T}$cf_cv_pragma_unreferenced" >&6
19496 # if the pragma is supported, use it (needed in the Trace code).
19497 if test $cf_cv_pragma_unreferenced = yes ; then
19503 cf_gnat_libraries=no
19504 cf_gnat_projects=no
19506 echo "$as_me:19506: checking if GNAT supports project files" >&5
19507 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
19508 case $cf_gnat_version in #(vi
19512 case $cf_cv_system_name in #(vi
19516 mkdir conftest.src conftest.bin conftest.lib
19518 rm -rf conftest* *~conftest*
19519 cat >>library.gpr <<CF_EOF
19521 Kind := External ("LIB_KIND");
19522 for Library_Name use "ConfTest";
19523 for Object_Dir use ".";
19524 for Library_ALI_Dir use External("LIBRARY_DIR");
19525 for Library_Version use External ("SONAME");
19526 for Library_Kind use Kind;
19527 for Library_Dir use External("BUILD_DIR");
19528 Source_Dir := External ("SOURCE_DIR");
19529 for Source_Dirs use (Source_Dir);
19530 package Compiler is
19531 for Default_Switches ("Ada") use
19535 "-gnatVa", -- All validity checks
19536 "-gnatwa"); -- Activate all optional errors
19540 cat >>confpackage.ads <<CF_EOF
19541 package ConfPackage is
19542 procedure conftest;
19545 cat >>confpackage.adb <<CF_EOF
19547 package body ConfPackage is
19548 procedure conftest is
19550 Text_IO.Put ("Hello World");
19555 if ( $cf_ada_make $ADAFLAGS \
19557 -XBUILD_DIR=`cd ../conftest.bin;pwd` \
19558 -XLIBRARY_DIR=`cd ../conftest.lib;pwd` \
19559 -XSOURCE_DIR=`pwd` \
19560 -XSONAME=libConfTest.so.1 \
19561 -XLIB_KIND=static 1>&5 2>&1 ) ; then
19562 cf_gnat_projects=yes
19565 if test -f conftest.lib/confpackage.ali
19567 cf_gnat_libraries=yes
19569 rm -rf conftest* *~conftest*
19574 echo "$as_me:19574: result: $cf_gnat_projects" >&5
19575 echo "${ECHO_T}$cf_gnat_projects" >&6
19577 if test $cf_gnat_projects = yes
19579 echo "$as_me:19579: checking if GNAT supports libraries" >&5
19580 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
19581 echo "$as_me:19581: result: $cf_gnat_libraries" >&5
19582 echo "${ECHO_T}$cf_gnat_libraries" >&6
19585 if test "$cf_gnat_projects" = yes
19587 USE_OLD_MAKERULES="#"
19588 USE_GNAT_PROJECTS=""
19590 USE_OLD_MAKERULES=""
19591 USE_GNAT_PROJECTS="#"
19594 if test "$cf_gnat_libraries" = yes
19596 USE_GNAT_LIBRARIES=""
19598 USE_GNAT_LIBRARIES="#"
19601 echo "$as_me:19601: checking for ada-compiler" >&5
19602 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
19604 # Check whether --with-ada-compiler or --without-ada-compiler was given.
19605 if test "${with_ada_compiler+set}" = set; then
19606 withval="$with_ada_compiler"
19607 cf_ada_compiler=$withval
19609 cf_ada_compiler=gnatmake
19612 echo "$as_me:19612: result: $cf_ada_compiler" >&5
19613 echo "${ECHO_T}$cf_ada_compiler" >&6
19615 cf_ada_package=terminal_interface
19617 echo "$as_me:19617: checking for ada-include" >&5
19618 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
19620 # Check whether --with-ada-include or --without-ada-include was given.
19621 if test "${with_ada_include+set}" = set; then
19622 withval="$with_ada_include"
19625 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
19626 fi; if test -n "$prefix/share/ada/adainclude" ; then
19628 if test "x$prefix" != xNONE; then
19629 cf_path_syntax="$prefix"
19631 cf_path_syntax="$ac_default_prefix"
19634 case ".$withval" in #(vi
19635 .\$\(*\)*|.\'*\'*) #(vi
19639 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
19641 .\${*prefix}*|.\${*dir}*) #(vi
19642 eval withval="$withval"
19643 case ".$withval" in #(vi
19645 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
19650 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
19653 { { echo "$as_me:19653: error: expected a pathname, not \"$withval\"" >&5
19654 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
19655 { (exit 1); exit 1; }; }
19660 ADA_INCLUDE="$withval"
19662 echo "$as_me:19662: result: $ADA_INCLUDE" >&5
19663 echo "${ECHO_T}$ADA_INCLUDE" >&6
19665 echo "$as_me:19665: checking for ada-objects" >&5
19666 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
19668 # Check whether --with-ada-objects or --without-ada-objects was given.
19669 if test "${with_ada_objects+set}" = set; then
19670 withval="$with_ada_objects"
19673 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
19674 fi; if test -n "$prefix/lib/ada/adalib" ; then
19676 if test "x$prefix" != xNONE; then
19677 cf_path_syntax="$prefix"
19679 cf_path_syntax="$ac_default_prefix"
19682 case ".$withval" in #(vi
19683 .\$\(*\)*|.\'*\'*) #(vi
19687 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
19689 .\${*prefix}*|.\${*dir}*) #(vi
19690 eval withval="$withval"
19691 case ".$withval" in #(vi
19693 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
19698 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
19701 { { echo "$as_me:19701: error: expected a pathname, not \"$withval\"" >&5
19702 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
19703 { (exit 1); exit 1; }; }
19708 ADA_OBJECTS="$withval"
19710 echo "$as_me:19710: result: $ADA_OBJECTS" >&5
19711 echo "${ECHO_T}$ADA_OBJECTS" >&6
19713 echo "$as_me:19713: checking if an Ada95 shared-library should be built" >&5
19714 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
19716 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
19717 if test "${with_ada_sharedlib+set}" = set; then
19718 withval="$with_ada_sharedlib"
19719 with_ada_sharedlib=$withval
19721 with_ada_sharedlib=no
19723 echo "$as_me:19723: result: $with_ada_sharedlib" >&5
19724 echo "${ECHO_T}$with_ada_sharedlib" >&6
19726 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
19727 MAKE_ADA_SHAREDLIB="#"
19729 if test "x$with_ada_sharedlib" != xno
19731 MAKE_ADA_SHAREDLIB=
19732 if test "x$with_ada_sharedlib" != xyes
19734 ADA_SHAREDLIB="$with_ada_sharedlib"
19744 ### Construct the ncurses library-subsets, if any, from this set of keywords:
19745 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
19747 ### ticlib modules may be a separate library, otherwise contained in termlib.
19748 ### termlib modules may be a separate library, otherwise contained in ncurses.
19750 ### The of "+" or " " between the tokens controls the way the script
19751 ### chooses to split module lists into libraries.
19753 ### (see CF_LIB_RULES).
19754 echo "$as_me:19754: checking for library subsets" >&5
19755 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
19758 if test "$cf_with_progs" = yes || test "$with_ticlib" != no || test "$with_termcap" != no; then
19759 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
19760 if test "$with_ticlib" != no ; then
19761 LIB_SUBSETS="${LIB_SUBSETS} "
19763 LIB_SUBSETS="${LIB_SUBSETS}+"
19767 LIB_SUBSETS="${LIB_SUBSETS}termlib"
19768 test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
19770 if test "$with_termlib" != no ; then
19771 LIB_SUBSETS="${LIB_SUBSETS} "
19773 LIB_SUBSETS="${LIB_SUBSETS}+"
19776 LIB_SUBSETS="${LIB_SUBSETS}base"
19778 # Most term-driver calls are to tinfo, but some like init_pair are to the
19779 # base library (so it resides in base).
19780 if test "$with_term_driver" != no ; then
19781 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
19782 case $cf_cv_system_name in #(vi
19784 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
19787 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
19792 test "$with_widec" = yes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
19793 test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
19795 echo "$as_me:19795: result: $LIB_SUBSETS" >&5
19796 echo "${ECHO_T}$LIB_SUBSETS" >&6
19798 ### Construct the list of include-directories to be generated
19800 CPPFLAGS="$CPPFLAGS -I. -I../include"
19801 if test "$srcdir" != "."; then
19802 CPPFLAGS="$CPPFLAGS -I\${srcdir}/../include"
19804 if test "$GCC" != yes; then
19805 CPPFLAGS="$CPPFLAGS -I\${includedir}"
19806 elif test "$includedir" != "/usr/include"; then
19807 if test "$includedir" = '${prefix}/include' ; then
19808 if test $prefix != /usr ; then
19809 CPPFLAGS="$CPPFLAGS -I\${includedir}"
19812 CPPFLAGS="$CPPFLAGS -I\${includedir}"
19816 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
19817 if test "$srcdir" != "."; then
19818 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
19820 if test "$GCC" != yes; then
19821 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
19822 elif test "$includedir" != "/usr/include"; then
19823 if test "$includedir" = '${prefix}/include' ; then
19824 if test $prefix != /usr ; then
19825 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
19828 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
19832 ### Build up pieces for makefile rules
19833 echo "$as_me:19833: checking default library suffix" >&5
19834 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
19836 case $DFT_LWR_MODEL in
19837 libtool) DFT_ARG_SUFFIX='' ;;
19838 normal) DFT_ARG_SUFFIX='' ;;
19839 debug) DFT_ARG_SUFFIX='_g' ;;
19840 profile) DFT_ARG_SUFFIX='_p' ;;
19841 shared) DFT_ARG_SUFFIX='' ;;
19843 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
19844 echo "$as_me:19844: result: $DFT_ARG_SUFFIX" >&5
19845 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
19847 echo "$as_me:19847: checking default library-dependency suffix" >&5
19848 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
19850 case $DFT_LWR_MODEL in #(vi
19852 DFT_LIB_SUFFIX='.la'
19853 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19856 DFT_LIB_SUFFIX='.a'
19857 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19860 DFT_LIB_SUFFIX='_g.a'
19861 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19864 DFT_LIB_SUFFIX='_p.a'
19865 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19868 case $cf_cv_system_name in
19870 DFT_LIB_SUFFIX='.a'
19871 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19873 cygwin*|mingw*) #(vi
19874 DFT_LIB_SUFFIX='.dll'
19875 DFT_DEP_SUFFIX='.dll.a'
19878 DFT_LIB_SUFFIX='.dylib'
19879 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19884 DFT_LIB_SUFFIX='.so'
19885 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19888 DFT_LIB_SUFFIX='.sl'
19889 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19893 *) DFT_LIB_SUFFIX='.so'
19894 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
19898 test -n "$LIB_SUFFIX" && DFT_LIB_SUFFIX="${LIB_SUFFIX}${DFT_LIB_SUFFIX}"
19899 test -n "$LIB_SUFFIX" && DFT_DEP_SUFFIX="${LIB_SUFFIX}${DFT_DEP_SUFFIX}"
19900 echo "$as_me:19900: result: $DFT_DEP_SUFFIX" >&5
19901 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
19903 echo "$as_me:19903: checking default object directory" >&5
19904 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
19906 case $DFT_LWR_MODEL in
19907 libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
19908 normal) DFT_OBJ_SUBDIR='objects' ;;
19909 debug) DFT_OBJ_SUBDIR='obj_g' ;;
19910 profile) DFT_OBJ_SUBDIR='obj_p' ;;
19912 case $cf_cv_system_name in #(vi
19914 DFT_OBJ_SUBDIR='objects' ;;
19916 DFT_OBJ_SUBDIR='obj_s' ;;
19919 echo "$as_me:19919: result: $DFT_OBJ_SUBDIR" >&5
19920 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
19922 # libtool thinks it can make c++ shared libraries (perhaps only g++)
19923 if test "$cf_with_cxx" = yes ; then
19924 echo "$as_me:19924: checking c++ library-dependency suffix" >&5
19925 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
19926 if test "$with_libtool" != "no"; then
19927 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
19930 case normal in #(vi
19932 CXX_LIB_SUFFIX='.la'
19933 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19936 CXX_LIB_SUFFIX='.a'
19937 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19940 CXX_LIB_SUFFIX='_g.a'
19941 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19944 CXX_LIB_SUFFIX='_p.a'
19945 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19948 case $cf_cv_system_name in
19950 CXX_LIB_SUFFIX='.a'
19951 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19953 cygwin*|mingw*) #(vi
19954 CXX_LIB_SUFFIX='.dll'
19955 CXX_DEP_SUFFIX='.dll.a'
19958 CXX_LIB_SUFFIX='.dylib'
19959 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19964 CXX_LIB_SUFFIX='.so'
19965 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19968 CXX_LIB_SUFFIX='.sl'
19969 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19973 *) CXX_LIB_SUFFIX='.so'
19974 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
19978 test -n "$LIB_SUFFIX" && CXX_LIB_SUFFIX="${LIB_SUFFIX}${CXX_LIB_SUFFIX}"
19979 test -n "$LIB_SUFFIX" && CXX_DEP_SUFFIX="${LIB_SUFFIX}${CXX_DEP_SUFFIX}"
19981 echo "$as_me:19981: result: $CXX_LIB_SUFFIX" >&5
19982 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
19986 # do not want -ldl in build except as needed for -lncurses dependency
19987 if test "$with_dlsym" = yes ; then
19988 if test $DFT_LWR_MODEL = shared || \
19989 test $DFT_LWR_MODEL = libtool ; then
19991 # remove dl library from $LIBS
19992 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
19996 ### Set up low-level terminfo dependencies for makefiles.
19998 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
19999 # do not need libdl
20001 if test "$with_dlsym" = yes ; then
20003 # remove dl library from $SHLIB_LIST
20004 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
20008 if test "$with_ticlib" != no ; then
20010 if test "$with_ticlib" != yes ; then
20011 TICS_NAME=$with_ticlib
20012 TICS_ARG_SUFFIX="${with_ticlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
20013 TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
20014 TICS_LIB_SUFFIX="${with_ticlib}"
20016 TICS_ARG_SUFFIX="${TICS_NAME}${DFT_ARG_SUFFIX}"
20017 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
20018 TICS_LIB_SUFFIX="${TICS_NAME}${LIB_SUFFIX}"
20020 TICS_LDFLAGS="-L${LIB_DIR}"
20021 TICS_LIBS="-l${TICS_LIB_SUFFIX}"
20023 TICS_LDFLAGS="-L${LIB_DIR}"
20024 TICS_LIBS="-l${LIB_NAME}${DFT_ARG_SUFFIX}"
20027 if test "$with_termlib" != no ; then
20029 if test "$with_termlib" != yes ; then
20030 TINFO_NAME=$with_termlib
20031 TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
20032 TINFO_ARG_SUFFIX="${with_termlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
20033 TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
20034 TINFO_LIB_SUFFIX="${with_termlib}"
20036 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
20037 TINFO_ARG_SUFFIX="${TINFO_NAME}${DFT_ARG_SUFFIX}"
20038 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
20039 TINFO_LIB_SUFFIX="${TINFO_NAME}${LIB_SUFFIX}"
20042 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
20043 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
20044 if test "$DFT_LWR_MODEL" = "libtool"; then
20045 TEST_ARGS="${TEST_DEPS}"
20046 TEST_ARG2="${TEST_DEP2}"
20047 TINFO_LDFLAGS="-L${LIB_DIR}"
20048 TINFO_LIBS="$TEST_ARGS"
20049 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
20050 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
20052 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
20053 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
20054 if test "x$with_term_driver" != xno ; then
20055 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${DFT_ARG_SUFFIX}"
20056 TICS_LIBS="$TICS_LIBS -l${LIB_NAME}${DFT_ARG_SUFFIX}"
20057 TINFO_LIBS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS"
20059 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
20060 TINFO_LIBS="$TEST_ARGS"
20062 TINFO_LDFLAGS="-L${LIB_DIR}"
20063 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
20066 # the next lines are needed for linking libtic over libncurses
20067 TINFO_NAME=${LIB_NAME}
20068 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
20069 TINFO_ARG_SUFFIX=${LIB_NAME}${DFT_ARG_SUFFIX}
20070 if test "$with_tic_depends" = yes ; then
20071 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${DFT_ARG_SUFFIX}"
20073 TICS_LIST="$SHLIB_LIST"
20076 TINFO_LDFLAGS="-L${LIB_DIR}"
20077 TINFO_LIBS="-l${LIB_NAME}${DFT_ARG_SUFFIX}"
20080 if test "$DFT_LWR_MODEL" = shared ; then
20081 case $cf_cv_system_name in #(vi
20083 # "lib" files have ".dll.a" suffix, "cyg" files have ".dll"
20089 if test "$with_dlsym" = yes ; then
20091 # remove dl library from $TICS_LIST
20092 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
20096 if test "$DFT_LWR_MODEL" = "libtool"; then
20101 TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'`
20103 case $DFT_LWR_MODEL in
20104 normal|debug|profile)
20106 if test "$GCC" = yes ; then
20107 case $cf_cv_system_name in #(
20108 OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*) #( vi
20112 *) #( normally, except when broken
20113 LDFLAGS_STATIC=-static
20114 LDFLAGS_SHARED=-dynamic
20118 case $cf_cv_system_name in #(
20119 aix[4-7]*) #( from ld manpage
20120 LDFLAGS_STATIC=-bstatic
20121 LDFLAGS_SHARED=-bdynamic
20123 hpux*) #( from ld manpage for hpux10.20, hpux11.11
20124 # We could also use just "archive" and "shared".
20125 LDFLAGS_STATIC=-Wl,-a,archive_shared
20126 LDFLAGS_SHARED=-Wl,-a,shared_archive
20128 irix*) #( from ld manpage IRIX64
20129 LDFLAGS_STATIC=-Bstatic
20130 LDFLAGS_SHARED=-Bdynamic
20132 osf[45]*) #( from ld manpage osf4.0d, osf5.1
20133 # alternative "-oldstyle_liblookup" (not in cc manpage)
20134 LDFLAGS_STATIC=-noso
20135 LDFLAGS_SHARED=-so_archive
20138 LDFLAGS_STATIC=-Bstatic
20139 LDFLAGS_SHARED=-Bdynamic
20144 if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED"
20146 echo "$as_me:20146: checking if linker supports switching between static/dynamic" >&5
20147 echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6
20149 rm -f libconftest.a
20150 cat >conftest.$ac_ext <<EOF
20151 #line 20151 "configure"
20153 int cf_ldflags_static(FILE *fp) { return fflush(fp); }
20155 if { (eval echo "$as_me:20155: \"$ac_compile\"") >&5
20156 (eval $ac_compile) 2>&5
20158 echo "$as_me:20158: \$? = $ac_status" >&5
20159 (exit $ac_status); } ; then
20160 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null
20161 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null
20165 cf_save_LIBS="$LIBS"
20167 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS"
20168 cat >conftest.$ac_ext <<_ACEOF
20169 #line 20169 "configure"
20170 #include "confdefs.h"
20172 #line 20172 "configure"
20174 int cf_ldflags_static(FILE *fp);
20180 return cf_ldflags_static(stdin);
20186 rm -f conftest.$ac_objext conftest$ac_exeext
20187 if { (eval echo "$as_me:20187: \"$ac_link\"") >&5
20188 (eval $ac_link) 2>&5
20190 echo "$as_me:20190: \$? = $ac_status" >&5
20191 (exit $ac_status); } &&
20192 { ac_try='test -s conftest$ac_exeext'
20193 { (eval echo "$as_me:20193: \"$ac_try\"") >&5
20194 (eval $ac_try) 2>&5
20196 echo "$as_me:20196: \$? = $ac_status" >&5
20197 (exit $ac_status); }; }; then
20199 # some linkers simply ignore the -dynamic
20200 case x`file conftest$ac_exeext 2>/dev/null` in #(vi
20202 cf_ldflags_static=no
20205 cf_ldflags_static=yes
20210 echo "$as_me: failed program was:" >&5
20211 cat conftest.$ac_ext >&5
20212 cf_ldflags_static=no
20214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20216 rm -f libconftest.*
20217 LIBS="$cf_save_LIBS"
20219 echo "$as_me:20219: result: $cf_ldflags_static" >&5
20220 echo "${ECHO_T}$cf_ldflags_static" >&6
20222 if test $cf_ldflags_static != yes
20235 echo "$as_me:20235: checking where we will install curses.h" >&5
20236 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
20237 test "$with_overwrite" = no && \
20238 test "x$includedir" = 'x${prefix}/include' && \
20239 includedir='${prefix}/include/ncurses'${LIB_SUFFIX}
20240 echo "$as_me:20240: result: $includedir" >&5
20241 echo "${ECHO_T}$includedir" >&6
20243 ### Resolve a conflict between normal and wide-curses by forcing applications
20244 ### that will need libutf8 to add it to their configure script.
20245 if test "$with_overwrite" != no ; then
20246 if test "$NCURSES_LIBUTF8" = 1 ; then
20247 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
20248 { echo "$as_me:20248: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
20249 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
20252 WITH_OVERWRITE=$with_overwrite
20254 # used to separate tack out of the tree
20257 ### predefined stuff for the test programs
20258 cat >>confdefs.h <<\EOF
20259 #define HAVE_SLK_COLOR 1
20262 ### Construct the list of subdirectories for which we'll customize makefiles
20263 ### with the appropriate compile-rules.
20265 echo "$as_me:20265: checking for src modules" >&5
20266 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
20268 # dependencies and linker-arguments for test-programs
20269 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
20270 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
20271 if test "$DFT_LWR_MODEL" = "libtool"; then
20272 TEST_ARGS="${TEST_DEPS}"
20273 TEST_ARG2="${TEST_DEP2}"
20275 TEST_ARGS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS"
20276 TEST_ARG2="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARG2"
20279 PC_MODULES_TO_MAKE="ncurses${DFT_ARG_SUFFIX}"
20281 for cf_dir in $modules_to_build
20283 if test -f $srcdir/$cf_dir/modules; then
20285 # We may/may not have tack in the distribution, though the
20287 if test $cf_dir = tack ; then
20288 if test ! -f $srcdir/${cf_dir}/${cf_dir}.h; then
20293 if test -z "$cf_cv_src_modules"; then
20294 cf_cv_src_modules=$cf_dir
20296 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
20299 # Make the ncurses_cfg.h file record the library interface files as
20300 # well. These are header files that are the same name as their
20301 # directory. Ncurses is the only library that does not follow
20303 if test $cf_dir = tack ; then
20305 elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
20307 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20309 cat >>confdefs.h <<EOF
20310 #define HAVE_${cf_have_include}_H 1
20313 cat >>confdefs.h <<EOF
20314 #define HAVE_LIB${cf_have_include} 1
20317 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
20318 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEP2"
20319 if test "$DFT_LWR_MODEL" = "libtool"; then
20320 TEST_ARGS="${TEST_DEPS}"
20321 TEST_ARG2="${TEST_DEP2}"
20323 TEST_ARGS="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARGS"
20324 TEST_ARG2="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARG2"
20326 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ${cf_dir}${DFT_ARG_SUFFIX}"
20330 echo "$as_me:20330: result: $cf_cv_src_modules" >&5
20331 echo "${ECHO_T}$cf_cv_src_modules" >&6
20333 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
20334 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
20337 if test "x$cf_with_manpages" != xno ; then
20338 SRC_SUBDIRS="$SRC_SUBDIRS man"
20340 SRC_SUBDIRS="$SRC_SUBDIRS include"
20341 for cf_dir in $cf_cv_src_modules
20343 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
20345 if test "x$cf_with_tests" != "xno" ; then
20346 SRC_SUBDIRS="$SRC_SUBDIRS test"
20348 test -z "$MAKE_TERMINFO" && SRC_SUBDIRS="$SRC_SUBDIRS misc"
20349 if test "$cf_with_cxx_binding" != no; then
20350 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ncurses++${DFT_ARG_SUFFIX}"
20351 SRC_SUBDIRS="$SRC_SUBDIRS c++"
20354 test "x$with_termlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TINFO_ARG_SUFFIX"
20355 test "x$with_ticlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TICS_ARG_SUFFIX"
20358 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = xyes && test -f $srcdir/Ada95/Makefile.in; then
20359 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
20360 ADA_SUBDIRS="gen src"
20361 if test "x$cf_with_tests" != "xno" ; then
20362 ADA_SUBDIRS="$ADA_SUBDIRS samples"
20367 for cf_dir in $SRC_SUBDIRS
20369 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
20372 if test -n "$ADA_SUBDIRS"; then
20373 for cf_dir in $ADA_SUBDIRS
20375 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
20380 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
20381 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${DFT_ARG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
20382 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${DFT_ARG_SUFFIX}-config.1:man/MKada_config.in"
20386 for cf_item in $cf_list_models
20390 libtool) cf_subdir='obj_lo' ;;
20391 normal) cf_subdir='objects' ;;
20392 debug) cf_subdir='obj_g' ;;
20393 profile) cf_subdir='obj_p' ;;
20395 case $cf_cv_system_name in #(vi
20397 cf_subdir='objects' ;;
20399 cf_subdir='obj_s' ;;
20403 for cf_item2 in $DIRS_TO_MAKE
20405 test $cf_item2 = $cf_subdir && break
20407 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
20409 for cf_dir in $DIRS_TO_MAKE
20411 test ! -d $cf_dir && mkdir $cf_dir
20414 # symbols that differ when compiling Ada95 by itself.
20415 NCURSES_SHLIB2='sh $(top_srcdir)/misc/shlib'
20417 # values to use as strings
20418 cat >>confdefs.h <<EOF
20419 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
20422 cat >>confdefs.h <<EOF
20423 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
20426 ### Now that we're done running tests, add the compiler-warnings, if any
20431 cf_new_extra_cppflags=
20433 for cf_add_cflags in $EXTRA_CFLAGS
20435 case $cf_fix_cppflags in
20437 case $cf_add_cflags in #(vi
20438 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
20439 case $cf_add_cflags in
20441 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
20443 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
20444 && test -z "${cf_tst_cflags}" \
20445 && cf_fix_cppflags=yes
20447 if test $cf_fix_cppflags = yes ; then
20448 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
20450 elif test "${cf_tst_cflags}" = "\"'" ; then
20451 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
20456 case "$CPPFLAGS" in
20457 *$cf_add_cflags) #(vi
20460 case $cf_add_cflags in #(vi
20462 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
20464 CPPFLAGS=`echo "$CPPFLAGS" | \
20465 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
20466 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
20470 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
20475 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
20480 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
20482 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
20484 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
20485 && test -z "${cf_tst_cflags}" \
20486 && cf_fix_cppflags=no
20491 if test -n "$cf_new_cflags" ; then
20493 CFLAGS="$CFLAGS $cf_new_cflags"
20496 if test -n "$cf_new_cppflags" ; then
20498 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
20501 if test -n "$cf_new_extra_cppflags" ; then
20503 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
20506 ### Define substitutions for header files to avoid name-pollution
20508 if test "$cf_cv_have_tcgetattr" = yes ; then
20514 if test "$ac_cv_header_termio_h" = yes ; then
20520 if test "$ac_cv_header_termios_h" = yes ; then
20526 ################################################################################
20527 test "$use_database" = yes && \
20528 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
20530 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
20531 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${DFT_ARG_SUFFIX}${cf_cv_abi_version}-config.1:man/MKncu_config.in"
20533 if test x"$enable_pc_files" = xyes ; then \
20534 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
20540 # Extract the first word of "tic", so it can be a program name with args.
20541 set dummy tic; ac_word=$2
20542 echo "$as_me:20542: checking for $ac_word" >&5
20543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20544 if test "${ac_cv_path_TIC_PATH+set}" = set; then
20545 echo $ECHO_N "(cached) $ECHO_C" >&6
20549 ac_cv_path_TIC_PATH="$TIC_PATH" # Let the user override the test with a path.
20552 ac_save_IFS=$IFS; IFS=$ac_path_separator
20553 ac_dummy="$PATH:/usr/local/ncurses/bin"
20554 for ac_dir in $ac_dummy; do
20556 test -z "$ac_dir" && ac_dir=.
20557 if $as_executable_p "$ac_dir/$ac_word"; then
20558 ac_cv_path_TIC_PATH="$ac_dir/$ac_word"
20559 echo "$as_me:20559: found $ac_dir/$ac_word" >&5
20564 test -z "$ac_cv_path_TIC_PATH" && ac_cv_path_TIC_PATH="unknown"
20568 TIC_PATH=$ac_cv_path_TIC_PATH
20570 if test -n "$TIC_PATH"; then
20571 echo "$as_me:20571: result: $TIC_PATH" >&5
20572 echo "${ECHO_T}$TIC_PATH" >&6
20574 echo "$as_me:20574: result: no" >&5
20575 echo "${ECHO_T}no" >&6
20578 if test -n "$FALLBACK_LIST"
20580 if test "$TIC_PATH" = unknown
20582 { echo "$as_me:20582: WARNING: no tic program found for fallbacks" >&5
20583 echo "$as_me: WARNING: no tic program found for fallbacks" >&2;}
20587 if test "x$cf_with_tests" != xno ; then
20593 ADAHTML_DIR=../../doc/html/ada
20597 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"
20598 ac_config_commands="$ac_config_commands default"
20599 cat >confcache <<\_ACEOF
20600 # This file is a shell script that caches the results of configure
20601 # tests run on this system so they can be shared between configure
20602 # scripts and configure runs, see configure's option --config-cache.
20603 # It is not useful on other systems. If it contains results you don't
20604 # want to keep, you may remove or edit it.
20606 # config.status only pays attention to the cache file if you give it
20607 # the --recheck option to rerun configure.
20609 # `ac_cv_env_foo' variables (set or unset) will be overriden when
20610 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20611 # following values.
20615 # The following way of writing the cache mishandles newlines in values,
20616 # but we know of no workaround that is simple, portable, and efficient.
20617 # So, don't put newlines in cache variables' values.
20618 # Ultrix sh set writes to stderr and can't be redirected directly,
20619 # and sets the high bit in the cache file unless we assign to the vars.
20622 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20624 # `set' does not quote correctly, so add quotes (double-quote
20625 # substitution turns \\\\ into \\, and sed turns \\ into \).
20628 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20631 # `set' quotes correctly as required by POSIX, so do not add quotes.
20633 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20640 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20642 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20644 if cmp -s $cache_file confcache; then :; else
20645 if test -w $cache_file; then
20646 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20647 cat confcache >$cache_file
20649 echo "not updating unwritable cache $cache_file"
20654 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20655 # Let make expand exec_prefix.
20656 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20658 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20659 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20660 # trailing colons and then remove the whole line if VPATH becomes empty
20661 # (actually we leave an empty line to preserve line numbers).
20662 if test "x$srcdir" = x.; then
20663 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20664 s/:*\$(srcdir):*/:/;
20665 s/:*\${srcdir}:*/:/;
20667 s/^\([^=]*=[ ]*\):*/\1/;
20673 DEFS=-DHAVE_CONFIG_H
20675 : ${CONFIG_STATUS=./config.status}
20676 ac_clean_files_save=$ac_clean_files
20677 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20678 { echo "$as_me:20678: creating $CONFIG_STATUS" >&5
20679 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20680 cat >$CONFIG_STATUS <<_ACEOF
20682 # Generated automatically by configure.
20683 # Run this file to recreate the current configuration.
20684 # Compiler output produced by configure, useful for debugging
20685 # configure, is in config.log if it exists.
20688 SHELL=\${CONFIG_SHELL-$SHELL}
20689 ac_cs_invocation="\$0 \$@"
20693 cat >>$CONFIG_STATUS <<\_ACEOF
20694 # Be Bourne compatible
20695 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20698 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20702 # Name of the executable.
20703 as_me=`echo "$0" |sed 's,.*[\\/],,'`
20705 if expr a : '\(a\)' >/dev/null 2>&1; then
20711 rm -f conf$$ conf$$.exe conf$$.file
20713 if ln -s conf$$.file conf$$ 2>/dev/null; then
20714 # We could just check for DJGPP; but this test a) works b) is more generic
20715 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20716 if test -f conf$$.exe; then
20717 # Don't use ln at all; we don't have any links
20722 elif ln conf$$.file conf$$ 2>/dev/null; then
20727 rm -f conf$$ conf$$.exe conf$$.file
20729 as_executable_p="test -f"
20731 # Support unset when possible.
20732 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
20739 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
20740 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
20741 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
20742 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
20743 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
20744 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
20745 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
20746 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
20749 # We need space, tab and new line, in precisely that order.
20755 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
20761 # Files that config.status was made for.
20762 if test -n "$ac_config_files"; then
20763 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20766 if test -n "$ac_config_headers"; then
20767 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20770 if test -n "$ac_config_links"; then
20771 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20774 if test -n "$ac_config_commands"; then
20775 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20778 cat >>$CONFIG_STATUS <<\EOF
20781 \`$as_me' instantiates files from templates according to the
20782 current configuration.
20784 Usage: $0 [OPTIONS] [FILE]...
20786 -h, --help print this help, then exit
20787 -V, --version print version number, then exit
20788 -d, --debug don't remove temporary files
20789 --recheck update $as_me by reconfiguring in the same conditions
20790 --file=FILE[:TEMPLATE]
20791 instantiate the configuration file FILE
20792 --header=FILE[:TEMPLATE]
20793 instantiate the configuration header FILE
20795 Configuration files:
20798 Configuration headers:
20801 Configuration commands:
20804 Report bugs to <dickey@invisible-island.net>."
20807 cat >>$CONFIG_STATUS <<EOF
20810 configured by $0, generated by GNU Autoconf 2.52.20120310,
20811 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20813 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
20814 Free Software Foundation, Inc.
20815 This config.status script is free software; the Free Software Foundation
20816 gives unlimited permission to copy, distribute and modify it."
20821 cat >>$CONFIG_STATUS <<\EOF
20822 # If no file are specified by the user, then we need to provide default
20823 # value. By we need to know if files were specified by the user.
20829 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20830 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20832 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
20836 *) # This is not an option, so the user has probably given explicit
20838 ac_need_defaults=false;;
20842 # Handling of the options.
20844 cat >>$CONFIG_STATUS <<EOF
20845 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20846 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
20847 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
20849 cat >>$CONFIG_STATUS <<\EOF
20850 --version | --vers* | -V )
20851 echo "$ac_cs_version"; exit 0 ;;
20853 # Conflict between --help and --header
20854 { { echo "$as_me:20854: error: ambiguous option: $1
20855 Try \`$0 --help' for more information." >&5
20856 echo "$as_me: error: ambiguous option: $1
20857 Try \`$0 --help' for more information." >&2;}
20858 { (exit 1); exit 1; }; };;
20859 --help | --hel | -h )
20860 echo "$ac_cs_usage"; exit 0 ;;
20861 --debug | --d* | -d )
20863 --file | --fil | --fi | --f )
20865 CONFIG_FILES="$CONFIG_FILES $1"
20866 ac_need_defaults=false;;
20867 --header | --heade | --head | --hea )
20869 CONFIG_HEADERS="$CONFIG_HEADERS $1"
20870 ac_need_defaults=false;;
20872 # This is an error.
20873 -*) { { echo "$as_me:20873: error: unrecognized option: $1
20874 Try \`$0 --help' for more information." >&5
20875 echo "$as_me: error: unrecognized option: $1
20876 Try \`$0 --help' for more information." >&2;}
20877 { (exit 1); exit 1; }; } ;;
20879 *) ac_config_targets="$ac_config_targets $1" ;;
20888 ## ----------------------- ##
20889 ## Running config.status. ##
20890 ## ----------------------- ##
20892 This file was extended by $as_me 2.52.20120310, executed with
20893 CONFIG_FILES = $CONFIG_FILES
20894 CONFIG_HEADERS = $CONFIG_HEADERS
20895 CONFIG_LINKS = $CONFIG_LINKS
20896 CONFIG_COMMANDS = $CONFIG_COMMANDS
20897 > $ac_cs_invocation
20898 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20903 cat >>$CONFIG_STATUS <<EOF
20905 # INIT-COMMANDS section.
20908 ### Special initialization commands, used to pass information from the
20909 ### configuration-run into config.status
20912 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
20913 DFT_LWR_MODEL="$DFT_LWR_MODEL"
20915 LDCONFIG="$LDCONFIG"
20916 LIBTOOL_VERSION="$LIBTOOL_VERSION"
20917 LIB_NAME="$LIB_NAME"
20918 LIB_PREFIX="$LIB_PREFIX"
20919 LIB_SUBSETS="$LIB_SUBSETS"
20920 LIB_SUFFIX="$LIB_SUFFIX"
20921 LIB_TRACING="$LIB_TRACING"
20923 MAKE_TERMINFO="$MAKE_TERMINFO"
20924 NCURSES_MAJOR="$NCURSES_MAJOR"
20925 NCURSES_MINOR="$NCURSES_MINOR"
20926 NCURSES_OSPEED="$NCURSES_OSPEED"
20927 NCURSES_PATCH="$NCURSES_PATCH"
20928 SRC_SUBDIRS="$SRC_SUBDIRS"
20929 TERMINFO="$TERMINFO"
20930 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
20931 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
20932 TICS_NAME="$TICS_NAME"
20933 TIC_PATH="$TIC_PATH"
20934 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
20935 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
20936 TINFO_NAME="$TINFO_NAME"
20937 TINFO_SUFFIX="$TINFO_SUFFIX"
20938 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
20939 WITH_CURSES_H="$with_curses_h"
20940 WITH_ECHO="${enable_echo:=yes}"
20941 WITH_OVERWRITE="$with_overwrite"
20942 cf_LIST_MODELS="$cf_list_models"
20943 cf_cv_abi_version="$cf_cv_abi_version"
20944 cf_cv_do_relink="$cf_cv_do_relink"
20945 cf_cv_do_symlinks="$cf_cv_do_symlinks"
20946 cf_cv_enable_lp64="$cf_cv_enable_lp64"
20947 cf_cv_enable_opaque="$cf_cv_enable_opaque"
20948 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
20949 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
20950 cf_cv_prog_gnat_correct=$cf_cv_prog_gnat_correct
20951 cf_cv_rel_version="$cf_cv_rel_version"
20952 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
20953 cf_cv_shared_soname='$cf_cv_shared_soname'
20954 cf_cv_shlib_version="$cf_cv_shlib_version"
20955 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
20956 cf_cv_system_name="$cf_cv_system_name"
20957 cf_cv_term_driver="$with_term_driver"
20958 cf_with_ada="$cf_with_ada"
20959 cf_with_cxx_binding="$cf_with_cxx_binding"
20960 cf_with_manpages="$cf_with_manpages"
20961 cf_with_tests="$cf_with_tests"
20967 cat >>$CONFIG_STATUS <<\EOF
20968 for ac_config_target in $ac_config_targets
20970 case "$ac_config_target" in
20971 # Handling of arguments.
20972 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
20973 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
20974 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
20975 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
20976 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
20977 "$SUB_SCRIPTS" ) CONFIG_FILES="$CONFIG_FILES $SUB_SCRIPTS" ;;
20978 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
20979 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20980 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
20981 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
20982 *) { { echo "$as_me:20982: error: invalid argument: $ac_config_target" >&5
20983 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20984 { (exit 1); exit 1; }; };;
20988 # If the user did not use the arguments to specify the items to instantiate,
20989 # then the envvar interface is used. Set only those that are not.
20990 # We use the long form for the default assignment because of an extremely
20991 # bizarre bug on SunOS 4.1.3.
20992 if $ac_need_defaults; then
20993 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20994 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20995 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20998 # Create a temporary directory, and hook for its removal unless debugging.
21001 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21002 trap '{ (exit 1); exit 1; }' 1 2 13 15
21005 # Create a (secure) tmp directory for tmp files.
21008 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
21009 test -n "$tmp" && test -d "$tmp"
21012 tmp=$TMPDIR/cs$$-$RANDOM
21013 (umask 077 && mkdir $tmp)
21016 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
21017 { (exit 1); exit 1; }
21022 cat >>$CONFIG_STATUS <<EOF
21025 # CONFIG_FILES section.
21028 # No need to generate the scripts if there are no CONFIG_FILES.
21029 # This happens for instance when ./config.status config.h
21030 if test -n "\$CONFIG_FILES"; then
21031 # Protect against being on the right side of a sed subst in config.status.
21032 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21033 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21034 s,@SHELL@,$SHELL,;t t
21035 s,@exec_prefix@,$exec_prefix,;t t
21036 s,@prefix@,$prefix,;t t
21037 s,@program_transform_name@,$program_transform_name,;t t
21038 s,@bindir@,$bindir,;t t
21039 s,@sbindir@,$sbindir,;t t
21040 s,@libexecdir@,$libexecdir,;t t
21041 s,@datadir@,$datadir,;t t
21042 s,@sysconfdir@,$sysconfdir,;t t
21043 s,@sharedstatedir@,$sharedstatedir,;t t
21044 s,@localstatedir@,$localstatedir,;t t
21045 s,@libdir@,$libdir,;t t
21046 s,@includedir@,$includedir,;t t
21047 s,@oldincludedir@,$oldincludedir,;t t
21048 s,@infodir@,$infodir,;t t
21049 s,@mandir@,$mandir,;t t
21050 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21051 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21052 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21053 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21054 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21055 s,@build_alias@,$build_alias,;t t
21056 s,@host_alias@,$host_alias,;t t
21057 s,@target_alias@,$target_alias,;t t
21058 s,@ECHO_C@,$ECHO_C,;t t
21059 s,@ECHO_N@,$ECHO_N,;t t
21060 s,@ECHO_T@,$ECHO_T,;t t
21061 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21062 s,@DEFS@,$DEFS,;t t
21063 s,@LIBS@,$LIBS,;t t
21064 s,@top_builddir@,$top_builddir,;t t
21065 s,@EGREP@,$EGREP,;t t
21066 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
21067 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
21068 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
21069 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
21070 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
21071 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
21072 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
21073 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
21074 s,@build@,$build,;t t
21075 s,@build_cpu@,$build_cpu,;t t
21076 s,@build_vendor@,$build_vendor,;t t
21077 s,@build_os@,$build_os,;t t
21078 s,@host@,$host,;t t
21079 s,@host_cpu@,$host_cpu,;t t
21080 s,@host_vendor@,$host_vendor,;t t
21081 s,@host_os@,$host_os,;t t
21082 s,@target@,$target,;t t
21083 s,@target_cpu@,$target_cpu,;t t
21084 s,@target_vendor@,$target_vendor,;t t
21085 s,@target_os@,$target_os,;t t
21087 s,@CFLAGS@,$CFLAGS,;t t
21088 s,@LDFLAGS@,$LDFLAGS,;t t
21089 s,@CPPFLAGS@,$CPPFLAGS,;t t
21090 s,@ac_ct_CC@,$ac_ct_CC,;t t
21091 s,@EXEEXT@,$EXEEXT,;t t
21092 s,@OBJEXT@,$OBJEXT,;t t
21094 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
21095 s,@PROG_EXT@,$PROG_EXT,;t t
21096 s,@LDCONFIG@,$LDCONFIG,;t t
21098 s,@CXXFLAGS@,$CXXFLAGS,;t t
21099 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21101 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21102 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21103 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21104 s,@LINT@,$LINT,;t t
21105 s,@LINT_OPTS@,$LINT_OPTS,;t t
21106 s,@LN_S@,$LN_S,;t t
21107 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21108 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
21109 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
21110 s,@SET_MAKE@,$SET_MAKE,;t t
21111 s,@CTAGS@,$CTAGS,;t t
21112 s,@ETAGS@,$ETAGS,;t t
21113 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
21114 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
21115 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
21116 s,@RANLIB@,$RANLIB,;t t
21117 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21119 s,@ac_ct_LD@,$ac_ct_LD,;t t
21121 s,@ac_ct_AR@,$ac_ct_AR,;t t
21122 s,@ARFLAGS@,$ARFLAGS,;t t
21123 s,@DESTDIR@,$DESTDIR,;t t
21124 s,@BUILD_CC@,$BUILD_CC,;t t
21125 s,@BUILD_CPP@,$BUILD_CPP,;t t
21126 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
21127 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
21128 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
21129 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
21130 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
21131 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
21132 s,@cf_list_models@,$cf_list_models,;t t
21133 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
21134 s,@LIBTOOL@,$LIBTOOL,;t t
21135 s,@LT_UNDEF@,$LT_UNDEF,;t t
21136 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
21137 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
21138 s,@LIB_CREATE@,$LIB_CREATE,;t t
21139 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
21140 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
21141 s,@LIB_PREP@,$LIB_PREP,;t t
21142 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
21143 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
21144 s,@LIB_LINK@,$LIB_LINK,;t t
21145 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
21146 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
21147 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
21148 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
21149 s,@TICS_NAME@,$TICS_NAME,;t t
21150 s,@TINFO_NAME@,$TINFO_NAME,;t t
21151 s,@LIB_NAME@,$LIB_NAME,;t t
21152 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
21153 s,@CC_G_OPT@,$CC_G_OPT,;t t
21154 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
21155 s,@LD_MODEL@,$LD_MODEL,;t t
21156 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
21157 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
21158 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
21159 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
21160 s,@LINK_PROGS@,$LINK_PROGS,;t t
21161 s,@LINK_TESTS@,$LINK_TESTS,;t t
21162 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
21163 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
21164 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
21165 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
21166 s,@RPATH_LIST@,$RPATH_LIST,;t t
21167 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
21168 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
21169 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
21170 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
21171 s,@XTERM_KBS@,$XTERM_KBS,;t t
21172 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
21173 s,@TERMINFO@,$TERMINFO,;t t
21174 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
21175 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
21176 s,@TERMPATH@,$TERMPATH,;t t
21177 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
21178 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
21179 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
21180 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
21181 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
21182 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
21183 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
21184 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
21185 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
21186 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
21187 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
21188 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
21189 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
21190 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
21191 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
21192 s,@NCURSES_TPARM_ARG@,$NCURSES_TPARM_ARG,;t t
21193 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
21194 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
21195 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
21196 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
21197 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
21198 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
21199 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
21200 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
21201 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
21202 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
21203 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
21204 s,@PTHREAD@,$PTHREAD,;t t
21205 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
21206 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
21207 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
21208 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
21209 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
21210 s,@ECHO_LT@,$ECHO_LT,;t t
21211 s,@ECHO_LD@,$ECHO_LD,;t t
21212 s,@RULE_CC@,$RULE_CC,;t t
21213 s,@SHOW_CC@,$SHOW_CC,;t t
21214 s,@ECHO_CC@,$ECHO_CC,;t t
21215 s,@ECHO_LINK@,$ECHO_LINK,;t t
21216 s,@ADAFLAGS@,$ADAFLAGS,;t t
21217 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
21218 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
21219 s,@ADA_TRACE@,$ADA_TRACE,;t t
21220 s,@MATH_LIB@,$MATH_LIB,;t t
21221 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
21222 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
21223 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
21224 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
21225 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
21226 s,@TEST_LIBS@,$TEST_LIBS,;t t
21227 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
21228 s,@CXXCPP@,$CXXCPP,;t t
21229 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
21230 s,@CXX_AR@,$CXX_AR,;t t
21231 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
21232 s,@CXXLIBS@,$CXXLIBS,;t t
21233 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
21234 s,@gnat_exists@,$gnat_exists,;t t
21235 s,@M4_exists@,$M4_exists,;t t
21236 s,@cf_ada_make@,$cf_ada_make,;t t
21237 s,@cf_compile_generics@,$cf_compile_generics,;t t
21238 s,@cf_generic_objects@,$cf_generic_objects,;t t
21239 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
21240 s,@PRAGMA_UNREF@,$PRAGMA_UNREF,;t t
21241 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
21242 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
21243 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
21244 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
21245 s,@cf_ada_package@,$cf_ada_package,;t t
21246 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
21247 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
21248 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
21249 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
21250 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
21251 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
21252 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
21253 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
21254 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
21255 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
21256 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
21257 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
21258 s,@TICS_LDFLAGS@,$TICS_LDFLAGS,;t t
21259 s,@TICS_LIBS@,$TICS_LIBS,;t t
21260 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
21261 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
21262 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
21263 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
21264 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
21265 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
21266 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
21267 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
21268 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
21269 s,@TICS_LIST@,$TICS_LIST,;t t
21270 s,@TINFO_LIST@,$TINFO_LIST,;t t
21271 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
21272 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
21273 s,@TEST_ARGS@,$TEST_ARGS,;t t
21274 s,@TEST_DEPS@,$TEST_DEPS,;t t
21275 s,@TEST_ARG2@,$TEST_ARG2,;t t
21276 s,@TEST_DEP2@,$TEST_DEP2,;t t
21277 s,@PC_MODULES_TO_MAKE@,$PC_MODULES_TO_MAKE,;t t
21278 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
21279 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
21280 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
21281 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
21282 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
21283 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
21284 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
21285 s,@cross_compiling@,$cross_compiling,;t t
21286 s,@TIC_PATH@,$TIC_PATH,;t t
21287 s,@MAKE_TESTS@,$MAKE_TESTS,;t t
21288 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
21293 cat >>$CONFIG_STATUS <<\EOF
21294 # Split the substitutions into bite-sized pieces for seds with
21295 # small command number limits, like on Digital OSF/1 and HP-UX.
21296 ac_max_sed_lines=48
21297 ac_sed_frag=1 # Number of current file.
21298 ac_beg=1 # First line for current file.
21299 ac_end=$ac_max_sed_lines # Line after last line for current file.
21302 while $ac_more_lines; do
21303 if test $ac_beg -gt 1; then
21304 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21306 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21308 if test ! -s $tmp/subs.frag; then
21309 ac_more_lines=false
21311 # The purpose of the label and of the branching condition is to
21312 # speed up the sed processing (if there are no `@' at all, there
21313 # is no need to browse any of the substitutions).
21314 # These are the two extra sed commands mentioned above.
21316 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21317 if test -z "$ac_sed_cmds"; then
21318 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21320 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21322 ac_sed_frag=`expr $ac_sed_frag + 1`
21324 ac_end=`expr $ac_end + $ac_max_sed_lines`
21327 if test -z "$ac_sed_cmds"; then
21330 fi # test -n "$CONFIG_FILES"
21333 cat >>$CONFIG_STATUS <<\EOF
21334 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21335 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21337 - | *:- | *:-:* ) # input from stdin
21339 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21340 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21341 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21342 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21343 * ) ac_file_in=$ac_file.in ;;
21346 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21347 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21348 X"$ac_file" : 'X\(//\)[^/]' \| \
21349 X"$ac_file" : 'X\(//\)$' \| \
21350 X"$ac_file" : 'X\(/\)' \| \
21351 . : '\(.\)' 2>/dev/null ||
21353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21354 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21355 /^X\(\/\/\)$/{ s//\1/; q; }
21356 /^X\(\/\).*/{ s//\1/; q; }
21358 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21359 { case "$ac_dir" in
21360 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
21364 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
21365 case $as_mkdir_dir in
21366 # Skip DOS drivespec
21367 ?:) as_incr_dir=$as_mkdir_dir ;;
21369 as_incr_dir=$as_incr_dir/$as_mkdir_dir
21370 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
21375 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
21376 # A "../" for each directory in $ac_dir_suffix.
21377 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
21379 ac_dir_suffix= ac_dots=
21384 if test -z "$ac_dots"; then
21387 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
21389 [\\/]* | ?:[\\/]* )
21390 ac_srcdir=$srcdir$ac_dir_suffix;
21391 ac_top_srcdir=$srcdir ;;
21392 *) # Relative path.
21393 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
21394 ac_top_srcdir=$ac_dots$srcdir ;;
21398 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21399 *) ac_INSTALL=$ac_dots$INSTALL ;;
21402 if test x"$ac_file" != x-; then
21403 { echo "$as_me:21403: creating $ac_file" >&5
21404 echo "$as_me: creating $ac_file" >&6;}
21407 # Let's still pretend it is `configure' which instantiates (i.e., don't
21408 # use $as_me), people would be surprised to read:
21409 # /* config.h. Generated automatically by config.status. */
21410 configure_input="Generated automatically from `echo $ac_file_in |
21411 sed 's,.*/,,'` by configure."
21413 # First look for the input files in the build tree, otherwise in the
21415 ac_file_inputs=`IFS=:
21416 for f in $ac_file_in; do
21418 -) echo $tmp/stdin ;;
21420 # Absolute (can't be DOS-style, as IFS=:)
21421 test -f "$f" || { { echo "$as_me:21421: error: cannot find input file: $f" >&5
21422 echo "$as_me: error: cannot find input file: $f" >&2;}
21423 { (exit 1); exit 1; }; }
21426 if test -f "$f"; then
21429 elif test -f "$srcdir/$f"; then
21434 { { echo "$as_me:21434: error: cannot find input file: $f" >&5
21435 echo "$as_me: error: cannot find input file: $f" >&2;}
21436 { (exit 1); exit 1; }; }
21439 done` || { (exit 1); exit 1; }
21441 cat >>$CONFIG_STATUS <<EOF
21445 cat >>$CONFIG_STATUS <<\EOF
21447 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21448 s,@configure_input@,$configure_input,;t t
21449 s,@srcdir@,$ac_srcdir,;t t
21450 s,@top_srcdir@,$ac_top_srcdir,;t t
21451 s,@INSTALL@,$ac_INSTALL,;t t
21452 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21454 if test x"$ac_file" != x-; then
21455 mv $tmp/out $ac_file
21463 cat >>$CONFIG_STATUS <<\EOF
21466 # CONFIG_HEADER section.
21469 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21470 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21472 # ac_d sets the value in "#define NAME VALUE" lines.
21473 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21474 ac_dB='[ ].*$,\1#\2'
21477 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
21478 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21479 ac_iB='\([ ]\),\1#\2define\3'
21482 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21483 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21484 ac_uB='$,\1#\2define\3'
21488 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21489 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21491 - | *:- | *:-:* ) # input from stdin
21493 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21494 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21495 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21496 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21497 * ) ac_file_in=$ac_file.in ;;
21500 test x"$ac_file" != x- && { echo "$as_me:21500: creating $ac_file" >&5
21501 echo "$as_me: creating $ac_file" >&6;}
21503 # First look for the input files in the build tree, otherwise in the
21505 ac_file_inputs=`IFS=:
21506 for f in $ac_file_in; do
21508 -) echo $tmp/stdin ;;
21510 # Absolute (can't be DOS-style, as IFS=:)
21511 test -f "$f" || { { echo "$as_me:21511: error: cannot find input file: $f" >&5
21512 echo "$as_me: error: cannot find input file: $f" >&2;}
21513 { (exit 1); exit 1; }; }
21516 if test -f "$f"; then
21519 elif test -f "$srcdir/$f"; then
21524 { { echo "$as_me:21524: error: cannot find input file: $f" >&5
21525 echo "$as_me: error: cannot find input file: $f" >&2;}
21526 { (exit 1); exit 1; }; }
21529 done` || { (exit 1); exit 1; }
21530 # Remove the trailing spaces.
21531 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21535 # Transform confdefs.h into a list of #define's. We won't use it as a sed
21536 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
21537 # be either 'cat' or 'sort'.
21538 cat confdefs.h | uniq >conftest.vals
21540 # Break up conftest.vals because some shells have a limit on
21541 # the size of here documents, and old seds have small limits too.
21543 rm -f conftest.tail
21544 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
21545 while grep . conftest.vals >/dev/null
21547 # Write chunks of a limited-size here document to conftest.frag.
21548 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
21549 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
21550 echo 'CEOF' >> $CONFIG_STATUS
21551 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
21552 rm -f conftest.vals
21553 mv conftest.tail conftest.vals
21555 rm -f conftest.vals
21557 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
21559 echo ' cat >> conftest.edit <<CEOF
21560 /@DEFS@/r conftest.frag
21563 sed -f conftest.edit $tmp/in > $tmp/out
21565 mv $tmp/out $tmp/in
21566 rm -f conftest.edit conftest.frag
21567 ' >> $CONFIG_STATUS
21569 cat >>$CONFIG_STATUS <<\EOF
21570 # Let's still pretend it is `configure' which instantiates (i.e., don't
21571 # use $as_me), people would be surprised to read:
21572 # /* config.h. Generated automatically by config.status. */
21573 if test x"$ac_file" = x-; then
21574 echo "/* Generated automatically by configure. */" >$tmp/config.h
21576 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
21578 cat $tmp/in >>$tmp/config.h
21580 if test x"$ac_file" != x-; then
21581 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
21582 { echo "$as_me:21582: $ac_file is unchanged" >&5
21583 echo "$as_me: $ac_file is unchanged" >&6;}
21585 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21586 X"$ac_file" : 'X\(//\)[^/]' \| \
21587 X"$ac_file" : 'X\(//\)$' \| \
21588 X"$ac_file" : 'X\(/\)' \| \
21589 . : '\(.\)' 2>/dev/null ||
21591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21592 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21593 /^X\(\/\/\)$/{ s//\1/; q; }
21594 /^X\(\/\).*/{ s//\1/; q; }
21596 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21597 { case "$ac_dir" in
21598 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
21602 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
21603 case $as_mkdir_dir in
21604 # Skip DOS drivespec
21605 ?:) as_incr_dir=$as_mkdir_dir ;;
21607 as_incr_dir=$as_incr_dir/$as_mkdir_dir
21608 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
21615 mv $tmp/config.h $ac_file
21619 rm -f $tmp/config.h
21623 cat >>$CONFIG_STATUS <<\EOF
21625 # CONFIG_COMMANDS section.
21627 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21628 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21629 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21633 if test "x$cf_with_tests" != xno ; then
21637 if test ! -d $srcdir/$cf_dir; then
21639 elif test -f $srcdir/$cf_dir/programs; then
21640 $AWK -f $srcdir/test/mk-test.awk INSTALL=no ECHO_LINK="$ECHO_LD" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
21646 cf_prefix=$LIB_PREFIX
21648 case $cf_cv_shlib_version in #(vi
21650 TINFO_NAME=$TINFO_ARG_SUFFIX
21655 if test -n "$TINFO_SUFFIX" ; then
21656 case $TINFO_SUFFIX in
21658 TINFO_NAME="${TINFO_NAME}tw"
21659 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^tw//'`
21662 TINFO_NAME="${TINFO_NAME}t"
21663 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^t//'`
21666 TINFO_NAME="${TINFO_NAME}w"
21667 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^w//'`
21672 for cf_dir in $SRC_SUBDIRS
21674 if test ! -d $srcdir/$cf_dir ; then
21676 elif test -f $srcdir/$cf_dir/modules; then
21680 for cf_item in $cf_LIST_MODELS
21683 case $cf_item in #(vi
21686 cf_depsuf=$cf_suffix
21690 cf_depsuf=$cf_suffix
21694 cf_depsuf=$cf_suffix
21698 cf_depsuf=$cf_suffix
21701 case $cf_cv_system_name in
21704 cf_depsuf=$cf_suffix
21706 cygwin*|mingw*) #(vi
21712 cf_depsuf=$cf_suffix
21718 cf_depsuf=$cf_suffix
21722 cf_depsuf=$cf_suffix
21727 cf_depsuf=$cf_suffix
21731 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
21732 test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"
21734 if test $cf_item = shared ; then
21735 if test "$cf_cv_do_symlinks" = yes ; then
21736 case "$cf_cv_shlib_version" in #(vi
21738 case "$cf_cv_system_name" in #(vi
21740 case .${LIB_SUFFIX} in
21742 cf_suffix=`echo $cf_suffix | sed 's/^tw//'`
21743 cf_suffix=tw'.${REL_VERSION}'"$cf_suffix"
21746 cf_suffix=`echo $cf_suffix | sed 's/^t//'`
21747 cf_suffix=t'.${REL_VERSION}'"$cf_suffix"
21750 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
21751 cf_suffix=w'.${REL_VERSION}'"$cf_suffix"
21754 cf_suffix='.${REL_VERSION}'"$cf_suffix"
21758 *) cf_suffix="$cf_suffix"'.${REL_VERSION}' ;;
21762 case "$cf_cv_system_name" in #(vi
21764 case .${LIB_SUFFIX} in
21766 cf_suffix=`echo $cf_suffix | sed 's/^tw//'`
21767 cf_suffix=tw'.${ABI_VERSION}'"$cf_suffix"
21770 cf_suffix=`echo $cf_suffix | sed 's/^t//'`
21771 cf_suffix=t'.${ABI_VERSION}'"$cf_suffix"
21774 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
21775 cf_suffix=w'.${ABI_VERSION}'"$cf_suffix"
21778 cf_suffix='.${ABI_VERSION}'"$cf_suffix"
21782 *) cf_suffix="$cf_suffix"'.${ABI_VERSION}' ;;
21787 # cygwin needs import library, and has unique naming convention
21788 # use autodetected ${cf_prefix} for import lib and static lib, but
21789 # use 'cyg' prefix for shared lib.
21790 case $cf_cv_shlib_version in #(vi
21792 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
21793 LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/cyg${cf_dir}${cf_cygsuf}"
21797 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
21798 LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/lib${cf_dir}${cf_cygsuf}"
21803 LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/${cf_prefix}${cf_dir}${cf_suffix}"
21806 if test $cf_dir = ncurses ; then
21807 cf_subsets="$LIB_SUBSETS"
21808 cf_r_parts="$cf_subsets"
21809 cf_liblist="$LIBS_TO_MAKE"
21811 while test -n "$cf_r_parts"
21813 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
21814 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
21815 if test "$cf_l_parts" != "$cf_r_parts" ; then
21817 case $cf_l_parts in #(vi
21819 cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
21822 cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
21828 if test -n "$cf_item"; then
21829 LIBS_TO_MAKE="$cf_item $LIBS_TO_MAKE"
21836 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
21839 sed -e "s%@LIBS_TO_MAKE@%$LIBS_TO_MAKE%" \
21840 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
21841 $cf_dir/Makefile >$cf_dir/Makefile.out
21842 mv $cf_dir/Makefile.out $cf_dir/Makefile
21844 $AWK -f $srcdir/mk-0th.awk \
21845 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" ticlib="$TICS_LIB_SUFFIX" termlib="$TINFO_LIB_SUFFIX" \
21846 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
21848 for cf_subset in $cf_subsets
21851 for cf_item in $cf_LIST_MODELS
21853 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
21855 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
21857 case $cf_item in #(vi
21860 cf_depsuf=$cf_suffix
21864 cf_depsuf=$cf_suffix
21868 cf_depsuf=$cf_suffix
21872 cf_depsuf=$cf_suffix
21875 case $cf_cv_system_name in
21878 cf_depsuf=$cf_suffix
21880 cygwin*|mingw*) #(vi
21886 cf_depsuf=$cf_suffix
21892 cf_depsuf=$cf_suffix
21896 cf_depsuf=$cf_suffix
21901 cf_depsuf=$cf_suffix
21905 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
21906 test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"
21909 libtool) cf_subdir='obj_lo' ;;
21910 normal) cf_subdir='objects' ;;
21911 debug) cf_subdir='obj_g' ;;
21912 profile) cf_subdir='obj_p' ;;
21914 case $cf_cv_system_name in #(vi
21916 cf_subdir='objects' ;;
21918 cf_subdir='obj_s' ;;
21922 # Test for case where we build libtinfo with a different name.
21924 if test $cf_dir = ncurses ; then
21927 cf_libname=${cf_libname}$LIB_SUFFIX
21930 cf_libname=$TINFO_LIB_SUFFIX
21933 cf_libname=$TICS_LIB_SUFFIX
21937 cf_libname=${cf_libname}$LIB_SUFFIX
21939 if test -n "${DFT_ARG_SUFFIX}" ; then
21940 # undo $LIB_SUFFIX add-on in CF_LIB_SUFFIX
21941 cf_suffix=`echo $cf_suffix |sed -e "s%^${LIB_SUFFIX}%%"`
21944 # These dependencies really are for development, not
21945 # builds, but they are useful in porting, too.
21946 cf_depend="../include/ncurses_cfg.h"
21947 if test "$srcdir" = "."; then
21950 cf_reldir="\${srcdir}"
21953 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
21954 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
21955 elif test -f $srcdir/$cf_dir/curses.priv.h; then
21956 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
21960 old_cf_suffix="$cf_suffix"
21961 if test "$cf_cv_shlib_version_infix" = yes ; then
21962 if test -n "$LIB_SUFFIX" ; then
21963 case $LIB_SUFFIX in
21965 cf_libname=`echo $cf_libname | sed 's/tw$//'`
21966 cf_suffix=`echo $cf_suffix | sed 's/^tw//'`
21970 cf_libname=`echo $cf_libname | sed 's/t$//'`
21971 cf_suffix=`echo $cf_suffix | sed 's/^t//'`
21975 cf_libname=`echo $cf_libname | sed 's/w$//'`
21976 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
21983 $AWK -f $srcdir/mk-1st.awk \
21984 name=${cf_libname}${cf_dir_suffix} \
21985 traces=$LIB_TRACING \
21988 prefix=$cf_prefix \
21989 suffix=$cf_suffix \
21990 subset=$cf_subset \
21991 driver=$cf_cv_term_driver \
21993 TermlibRoot=$TINFO_NAME \
21994 TermlibSuffix=$TINFO_SUFFIX \
21995 ShlibVer=$cf_cv_shlib_version \
21996 ShlibVerInfix=$cf_cv_shlib_version_infix \
21997 ReLink=${cf_cv_do_relink:-no} \
21998 DoLinks=$cf_cv_do_symlinks \
21999 rmSoLocs=$cf_cv_rm_so_locs \
22000 ldconfig="$LDCONFIG" \
22001 overwrite=$WITH_OVERWRITE \
22002 depend="$cf_depend" \
22004 libtool_version="$LIBTOOL_VERSION" \
22005 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
22007 cf_suffix="$old_cf_suffix"
22009 for cf_subdir2 in $cf_subdirs lib
22011 test $cf_subdir = $cf_subdir2 && break
22013 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
22014 $AWK -f $srcdir/mk-2nd.awk \
22016 traces=$LIB_TRACING \
22019 subset=$cf_subset \
22022 crenames=$cf_cv_prog_CC_c_o \
22023 cxxrenames=$cf_cv_prog_CXX_c_o \
22024 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
22025 cf_subdirs="$cf_subdirs $cf_subdir"
22030 echo ' cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@' >>Makefile
22033 for cf_dir in $SRC_SUBDIRS
22035 if test ! -d $srcdir/$cf_dir ; then
22039 if test -f $cf_dir/Makefile ; then
22042 echo 'libs \' >> Makefile
22043 echo 'install.libs \' >> Makefile
22044 echo 'uninstall.libs ::' >> Makefile
22045 echo ' cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@' >> Makefile
22050 if test -f $srcdir/$cf_dir/modules; then
22052 if test -f $srcdir/$cf_dir/headers; then
22053 cat >> Makefile <<CF_EOF
22054 install.includes \\
22055 uninstall.includes \\
22058 if test "$cf_dir" != "c++" ; then
22059 echo 'lint \' >> Makefile
22061 cat >> Makefile <<CF_EOF
22067 uninstall.$cf_dir ::
22068 cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@
22070 elif test -f $srcdir/$cf_dir/headers; then
22071 cat >> Makefile <<CF_EOF
22076 install.includes \\
22077 uninstall.includes ::
22078 cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@
22083 cat >> Makefile <<CF_EOF
22085 install.libs uninstall.libs \\
22086 install.data uninstall.data ::
22087 $MAKE_TERMINFO cd misc && \${MAKE} \${CF_MFLAGS} \$@
22090 if test "x$cf_with_manpages" = xyes; then
22091 cat >> Makefile <<CF_EOF
22095 cd man && \${MAKE} \${CF_MFLAGS} \$@
22099 cat >> Makefile <<CF_EOF
22102 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
22103 rm -f headers.sh headers.sed mk_shared_lib.sh
22104 rm -f edit_man.* man_alias.*
22105 rm -rf \${DIRS_TO_MAKE}
22108 # Special case: tack's manpage lives in its own directory.
22109 if test "x$cf_with_manpages" = xyes; then
22110 if test -d tack ; then
22111 if test -f $srcdir/$tack.h; then
22112 cat >> Makefile <<CF_EOF
22116 cd tack && \${MAKE} \${CF_MFLAGS} \$@
22122 rm -f headers.sed headers.sh
22124 echo creating headers.sh
22125 cat >headers.sh <<CF_EOF
22127 # This shell script is generated by the 'configure' script. It is invoked in a
22128 # subdirectory of the build tree. It generates a sed-script in the parent
22129 # directory that is used to adjust includes for header files that reside in a
22130 # subdirectory of /usr/include, etc.
22132 while test \$# != 3
22134 PRG="\$PRG \$1"; shift
22139 TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
22140 TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
22141 echo installing \$SRC in \$DST
22144 if test $WITH_CURSES_H = yes; then
22145 cat >>headers.sh <<CF_EOF
22148 END=\`basename \$DST\`
22149 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
22151 NAME=\`basename \$i\`
22152 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
22156 echo "" >> \$TMPSED
22162 cat >>headers.sh <<CF_EOF
22165 END=\`basename \$DST\`
22166 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
22168 NAME=\`basename \$i\`
22169 if test "\$NAME" = "curses.h"
22171 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
22174 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
22178 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
22183 cat >>headers.sh <<CF_EOF
22185 sed -f \$TMPSED \$SRC > \$TMPSRC
22186 NAME=\`basename \$SRC\`
22188 if test $WITH_CURSES_H != yes; then
22189 cat >>headers.sh <<CF_EOF
22190 test "\$NAME" = "curses.h" && NAME=ncurses.h
22193 cat >>headers.sh <<CF_EOF
22194 # Just in case someone gzip'd manpages, remove the conflicting copy.
22195 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
22197 eval \$PRG \$TMPSRC \$DST/\$NAME
22198 rm -f \$TMPSRC \$TMPSED
22201 chmod 0755 headers.sh
22203 for cf_dir in $SRC_SUBDIRS
22205 if test ! -d $srcdir/$cf_dir ; then
22209 if test -f $srcdir/$cf_dir/headers; then
22210 $AWK -f $srcdir/mk-hdr.awk \
22211 subset="$LIB_SUBSETS" \
22212 compat="$WITH_CURSES_H" \
22213 $srcdir/$cf_dir/headers >>$cf_dir/Makefile
22216 if test -f $srcdir/$cf_dir/modules; then
22217 if test "$cf_dir" != "c++" ; then
22218 cat >>$cf_dir/Makefile <<"CF_EOF"
22219 depend : ${AUTO_SRC}
22220 makedepend -- ${CPPFLAGS} -- ${C_SRC}
22222 # DO NOT DELETE THIS LINE -- make depend depends on it.
22228 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
22229 if test -z "$USE_OLD_MAKERULES" ; then
22230 $AWK -f $srcdir/Ada95/mk-1st.awk <$srcdir/Ada95/src/modules >>Ada95/src/Makefile
22238 cat >>$CONFIG_STATUS <<\EOF
22240 { (exit 0); exit 0; }
22242 chmod +x $CONFIG_STATUS
22243 ac_clean_files=$ac_clean_files_save
22245 # configure is writing to config.log, and then calls config.status.
22246 # config.status does its own redirection, appending to config.log.
22247 # Unfortunately, on DOS this fails, as config.log is still kept open
22248 # by configure, so config.status won't be able to write to it; its
22249 # output is simply discarded. So we exec the FD to /dev/null,
22250 # effectively closing config.log, so it can be properly (re)opened and
22251 # appended to by config.status. When coming back to configure, we
22252 # need to make the FD available again.
22253 if test "$no_create" != yes; then
22256 $SHELL $CONFIG_STATUS || ac_cs_success=false
22258 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22259 # would make configure fail if this is the last instruction.
22260 $ac_cs_success || { (exit 1); exit 1; }
22262 ${MAKE:-make} preinstall