2 # From configure.in Revision: 1.619 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20141204.
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 datarootdir='${prefix}/share'
175 datadir='${datarootdir}'
176 sysconfdir='${prefix}/etc'
177 sharedstatedir='${prefix}/com'
178 localstatedir='${prefix}/var'
179 libdir='${exec_prefix}/lib'
180 includedir='${prefix}/include'
181 oldincludedir='/usr/include'
182 infodir='${datarootdir}/info'
183 mandir='${datarootdir}/man'
185 # Identity of this package.
195 # If the previous option needs an argument, assign it.
196 if test -n "$ac_prev"; then
197 eval "$ac_prev=\$ac_option"
202 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
204 # Accept the important Cygnus configure options, so we can diagnose typos.
208 -bindir | --bindir | --bindi | --bind | --bin | --bi)
210 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
213 -build | --build | --buil | --bui | --bu)
214 ac_prev=build_alias ;;
215 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
216 build_alias=$ac_optarg ;;
218 -cache-file | --cache-file | --cache-fil | --cache-fi \
219 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
220 ac_prev=cache_file ;;
221 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
222 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
223 cache_file=$ac_optarg ;;
226 cache_file=config.cache ;;
228 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
230 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
232 datadir=$ac_optarg ;;
234 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
235 | --dataroo | --dataro | --datar)
236 ac_prev=datarootdir ;;
237 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
238 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
239 datarootdir=$ac_optarg ;;
241 -disable-* | --disable-*)
242 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
243 # Reject names that are not valid shell variable names.
244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246 { (exit 1); exit 1; }; }
247 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
248 eval "enable_$ac_feature=no" ;;
250 -enable-* | --enable-*)
251 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252 # Reject names that are not valid shell variable names.
253 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
254 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
255 { (exit 1); exit 1; }; }
256 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
258 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
261 eval "enable_$ac_feature='$ac_optarg'" ;;
263 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
264 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
265 | --exec | --exe | --ex)
266 ac_prev=exec_prefix ;;
267 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
268 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
269 | --exec=* | --exe=* | --ex=*)
270 exec_prefix=$ac_optarg ;;
272 -gas | --gas | --ga | --g)
273 # Obsolete; use --with-gas.
276 -help | --help | --hel | --he | -h)
278 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
279 ac_init_help=recursive ;;
280 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
281 ac_init_help=short ;;
283 -host | --host | --hos | --ho)
284 ac_prev=host_alias ;;
285 -host=* | --host=* | --hos=* | --ho=*)
286 host_alias=$ac_optarg ;;
288 -includedir | --includedir | --includedi | --included | --include \
289 | --includ | --inclu | --incl | --inc)
290 ac_prev=includedir ;;
291 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
292 | --includ=* | --inclu=* | --incl=* | --inc=*)
293 includedir=$ac_optarg ;;
295 -infodir | --infodir | --infodi | --infod | --info | --inf)
297 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
298 infodir=$ac_optarg ;;
300 -libdir | --libdir | --libdi | --libd)
302 -libdir=* | --libdir=* | --libdi=* | --libd=*)
305 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
306 | --libexe | --libex | --libe)
307 ac_prev=libexecdir ;;
308 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
309 | --libexe=* | --libex=* | --libe=*)
310 libexecdir=$ac_optarg ;;
312 -localstatedir | --localstatedir | --localstatedi | --localstated \
313 | --localstate | --localstat | --localsta | --localst \
314 | --locals | --local | --loca | --loc | --lo)
315 ac_prev=localstatedir ;;
316 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
317 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
318 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
319 localstatedir=$ac_optarg ;;
321 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
323 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
327 # Obsolete; use --without-fp.
330 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
334 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
335 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
338 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
339 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
340 | --oldin | --oldi | --old | --ol | --o)
341 ac_prev=oldincludedir ;;
342 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
343 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
344 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
345 oldincludedir=$ac_optarg ;;
347 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
349 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
352 -program-prefix | --program-prefix | --program-prefi | --program-pref \
353 | --program-pre | --program-pr | --program-p)
354 ac_prev=program_prefix ;;
355 -program-prefix=* | --program-prefix=* | --program-prefi=* \
356 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
357 program_prefix=$ac_optarg ;;
359 -program-suffix | --program-suffix | --program-suffi | --program-suff \
360 | --program-suf | --program-su | --program-s)
361 ac_prev=program_suffix ;;
362 -program-suffix=* | --program-suffix=* | --program-suffi=* \
363 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
364 program_suffix=$ac_optarg ;;
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 ac_prev=program_transform_name ;;
374 -program-transform-name=* | --program-transform-name=* \
375 | --program-transform-nam=* | --program-transform-na=* \
376 | --program-transform-n=* | --program-transform-=* \
377 | --program-transform=* | --program-transfor=* \
378 | --program-transfo=* | --program-transf=* \
379 | --program-trans=* | --program-tran=* \
380 | --progr-tra=* | --program-tr=* | --program-t=*)
381 program_transform_name=$ac_optarg ;;
383 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
384 | -silent | --silent | --silen | --sile | --sil)
387 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
389 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
391 sbindir=$ac_optarg ;;
393 -sharedstatedir | --sharedstatedir | --sharedstatedi \
394 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
395 | --sharedst | --shareds | --shared | --share | --shar \
397 ac_prev=sharedstatedir ;;
398 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
399 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
400 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
402 sharedstatedir=$ac_optarg ;;
404 -site | --site | --sit)
406 -site=* | --site=* | --sit=*)
409 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
411 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
414 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
415 | --syscon | --sysco | --sysc | --sys | --sy)
416 ac_prev=sysconfdir ;;
417 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
418 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
419 sysconfdir=$ac_optarg ;;
421 -target | --target | --targe | --targ | --tar | --ta | --t)
422 ac_prev=target_alias ;;
423 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
424 target_alias=$ac_optarg ;;
426 -v | -verbose | --verbose | --verbos | --verbo | --verb)
429 -version | --version | --versio | --versi | --vers | -V)
433 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
434 # Reject names that are not valid shell variable names.
435 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
436 { echo "$as_me: error: invalid package name: $ac_package" >&2
437 { (exit 1); exit 1; }; }
438 ac_package=`echo $ac_package| sed 's/-/_/g'`
440 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
443 eval "with_$ac_package='$ac_optarg'" ;;
445 -without-* | --without-*)
446 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
447 # Reject names that are not valid shell variable names.
448 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
449 { echo "$as_me: error: invalid package name: $ac_package" >&2
450 { (exit 1); exit 1; }; }
451 ac_package=`echo $ac_package | sed 's/-/_/g'`
452 eval "with_$ac_package=no" ;;
455 # Obsolete; use --with-x.
458 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
459 | --x-incl | --x-inc | --x-in | --x-i)
460 ac_prev=x_includes ;;
461 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
462 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
463 x_includes=$ac_optarg ;;
465 -x-libraries | --x-libraries | --x-librarie | --x-librari \
466 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
467 ac_prev=x_libraries ;;
468 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
469 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
470 x_libraries=$ac_optarg ;;
472 -*) { echo "$as_me: error: unrecognized option: $ac_option
473 Try \`$0 --help' for more information." >&2
474 { (exit 1); exit 1; }; }
478 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
479 # Reject names that are not valid shell variable names.
480 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
481 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
482 { (exit 1); exit 1; }; }
483 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
484 eval "$ac_envvar='$ac_optarg'"
488 # FIXME: should be removed in autoconf 3.0.
489 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
490 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
491 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
492 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
498 if test -n "$ac_prev"; then
499 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
500 { echo "$as_me: error: missing argument to $ac_option" >&2
501 { (exit 1); exit 1; }; }
504 # Be sure to have absolute paths.
505 for ac_var in exec_prefix prefix
507 eval ac_val=$`echo $ac_var`
509 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
510 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
511 { (exit 1); exit 1; }; };;
515 # Be sure to have absolute paths.
516 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
517 localstatedir libdir includedir oldincludedir infodir mandir
519 eval ac_val=$`echo $ac_var`
521 [\\/$]* | ?:[\\/]* ) ;;
522 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
523 { (exit 1); exit 1; }; };;
527 # There might be people who depend on the old broken behavior: `$host'
528 # used to hold the argument of --host etc.
533 # FIXME: should be removed in autoconf 3.0.
534 if test "x$host_alias" != x; then
535 if test "x$build_alias" = x; then
536 cross_compiling=maybe
537 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
538 If a cross compiler is detected then cross compile mode will be used." >&2
539 elif test "x$build_alias" != "x$host_alias"; then
545 test -n "$host_alias" && ac_tool_prefix=$host_alias-
547 test "$silent" = yes && exec 6>/dev/null
549 # Find the source files, if location was not specified.
550 if test -z "$srcdir"; then
551 ac_srcdir_defaulted=yes
552 # Try the directory containing this script, then its parent.
554 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
555 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
557 if test ! -r $srcdir/$ac_unique_file; then
561 ac_srcdir_defaulted=no
563 if test ! -r $srcdir/$ac_unique_file; then
564 if test "$ac_srcdir_defaulted" = yes; then
565 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
566 { (exit 1); exit 1; }; }
568 { echo "$as_me: error: cannot find sources in $srcdir" >&2
569 { (exit 1); exit 1; }; }
572 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
573 ac_env_build_alias_set=${build_alias+set}
574 ac_env_build_alias_value=$build_alias
575 ac_cv_env_build_alias_set=${build_alias+set}
576 ac_cv_env_build_alias_value=$build_alias
577 ac_env_host_alias_set=${host_alias+set}
578 ac_env_host_alias_value=$host_alias
579 ac_cv_env_host_alias_set=${host_alias+set}
580 ac_cv_env_host_alias_value=$host_alias
581 ac_env_target_alias_set=${target_alias+set}
582 ac_env_target_alias_value=$target_alias
583 ac_cv_env_target_alias_set=${target_alias+set}
584 ac_cv_env_target_alias_value=$target_alias
585 ac_env_CC_set=${CC+set}
587 ac_cv_env_CC_set=${CC+set}
588 ac_cv_env_CC_value=$CC
589 ac_env_CFLAGS_set=${CFLAGS+set}
590 ac_env_CFLAGS_value=$CFLAGS
591 ac_cv_env_CFLAGS_set=${CFLAGS+set}
592 ac_cv_env_CFLAGS_value=$CFLAGS
593 ac_env_LDFLAGS_set=${LDFLAGS+set}
594 ac_env_LDFLAGS_value=$LDFLAGS
595 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
596 ac_cv_env_LDFLAGS_value=$LDFLAGS
597 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
598 ac_env_CPPFLAGS_value=$CPPFLAGS
599 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
600 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
601 ac_env_CPP_set=${CPP+set}
602 ac_env_CPP_value=$CPP
603 ac_cv_env_CPP_set=${CPP+set}
604 ac_cv_env_CPP_value=$CPP
605 ac_env_CXX_set=${CXX+set}
606 ac_env_CXX_value=$CXX
607 ac_cv_env_CXX_set=${CXX+set}
608 ac_cv_env_CXX_value=$CXX
609 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
610 ac_env_CXXFLAGS_value=$CXXFLAGS
611 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
612 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
613 ac_env_CXXCPP_set=${CXXCPP+set}
614 ac_env_CXXCPP_value=$CXXCPP
615 ac_cv_env_CXXCPP_set=${CXXCPP+set}
616 ac_cv_env_CXXCPP_value=$CXXCPP
619 # Report the --help message.
621 if test "$ac_init_help" = "long"; then
622 # Omit some internal or obsolete options to make the list less imposing.
623 # This message is too long to be a string in the A/UX 3.1 sh.
625 \`configure' configures this package to adapt to many kinds of systems.
627 Usage: $0 [OPTION]... [VAR=VALUE]...
629 To assign environment variables (e.g., CC, CFLAGS...), specify them as
630 VAR=VALUE. See below for descriptions of some of the useful variables.
632 Defaults for the options are specified in brackets.
635 -h, --help display this help and exit
636 --help=short display options specific to this package
637 --help=recursive display the short help of all the included packages
638 -V, --version display version information and exit
639 -q, --quiet, --silent do not print \`checking...' messages
640 --cache-file=FILE cache test results in FILE [disabled]
641 -C, --config-cache alias for \`--cache-file=config.cache'
642 -n, --no-create do not create output files
643 --srcdir=DIR find the sources in DIR [configure dir or \`..']
648 Installation directories:
649 --prefix=PREFIX install architecture-independent files in PREFIX
651 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
654 By default, \`make install' will install all the files in
655 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
656 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
657 for instance \`--prefix=\$HOME'.
659 For better control, use the options below.
661 Fine tuning of the installation directories:
662 --bindir=DIR user executables [EPREFIX/bin]
663 --sbindir=DIR system admin executables [EPREFIX/sbin]
664 --libexecdir=DIR program executables [EPREFIX/libexec]
665 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
666 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
667 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
668 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
669 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
670 --libdir=DIR object code libraries [EPREFIX/lib]
671 --includedir=DIR C header files [PREFIX/include]
672 --oldincludedir=DIR C header files for non-gcc [/usr/include]
673 --infodir=DIR info documentation [DATAROOTDIR/info]
674 --mandir=DIR man documentation [DATAROOTDIR/man]
680 --program-prefix=PREFIX prepend PREFIX to installed program names
681 --program-suffix=SUFFIX append SUFFIX to installed program names
682 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
685 --build=BUILD configure for building on BUILD [guessed]
686 --host=HOST build programs to run on HOST [BUILD]
687 --target=TARGET configure for building compilers for TARGET [HOST]
691 if test -n "$ac_init_help"; then
696 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
697 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
700 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
701 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
703 --with-rel-version=XXX override derived release version
704 --with-abi-version=XXX override derived ABI version
705 --with-system-type=XXX test: override derived host system-type
706 --without-ada suppress check for Ada95, don't build demo
707 --without-cxx do not adjust ncurses bool to match C++
708 --without-cxx-binding do not build C++ binding and demo
709 --disable-db-install suppress install of terminal database
710 --without-manpages suppress install of manpages
711 --without-progs suppress build/install with programs (e.g., tic)
712 --without-tests suppress build/install with test-programs
713 --without-curses-h install curses.h as ncurses.h only
714 --with-pkg-config{=path} enable/disable use of pkg-config
715 --with-pkg-config-libdir=XXX use given directory for installing pc-files
716 --enable-pc-files generate and install .pc files for pkg-config
717 --with-pc-suffix suffixes pc-files
718 --enable-mixed-case tic should assume mixed-case filenames
719 --with-install-prefix prefixes actual install-location ($DESTDIR)
720 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
721 --with-build-cc=XXX the build C compiler ($BUILD_CC)
722 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
723 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
724 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
725 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
726 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
727 Options to Specify the Libraries Built/Used:
728 --disable-libtool-version enable to use libtool's incompatible naming scheme
729 --with-libtool generate libraries with libtool
730 --with-shared generate shared-libraries
731 --with-normal generate normal-libraries (default)
732 --with-debug generate debug-libraries (default)
733 --with-profile generate profile-libraries
734 --with-cxx-shared generate C++ shared-libraries
735 --with-lib-prefix override library-prefix
736 --with-termlib generate separate terminfo library
737 --with-ticlib generate separate tic library
738 --with-gpm use Alessandro Rubini's GPM library
739 --without-dlsym do not use dlsym() to load GPM dynamically
740 --with-sysmouse use sysmouse (FreeBSD console)
741 --enable-rpath use rpath option when generating shared libraries
742 --disable-relink relink shared libraries during install
743 --with-shlib-version=X Specify rel or abi version for shared libs
744 --with-libtool-opts=XXX specify additional libtool options
745 --with-export-syms=XXX limit exported symbols using libtool
746 --with-versioned-syms=X markup versioned symbols using ld
747 --disable-lib-suffixes disable library suffixes
748 --disable-rpath-hack don't add rpath options for additional libraries
749 Fine-Tuning Your Configuration:
750 --with-extra-suffix=X append extra suffix to header/library paths
751 --disable-overwrite put headers in subdir, omit link to -lcurses
752 --disable-database do not use terminfo, only fallbacks/termcap
753 --with-database=XXX specify terminfo source to install
754 --with-hashed-db specify hashed-database library
755 --with-fallbacks=XXX specify list of fallback terminal descriptions
756 --without-xterm-new specify if xterm terminfo should be old version
757 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
758 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
759 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
760 --disable-big-core assume machine has little memory
761 --disable-big-strings assume compiler has only standard-size strings
762 --enable-termcap compile in termcap fallback support
763 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
764 --enable-getcap fast termcap load, no xrefs to terminfo
765 --enable-getcap-cache cache translated termcaps in ~/.terminfo
766 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
767 --disable-root-environ restrict environment when running as root
768 --enable-symlinks make tic use symbolic links not hard links
769 --enable-broken_linker compile with broken-linker support code
770 --enable-bsdpad recognize BSD-style prefix padding
771 --enable-widec compile with wide-char/UTF-8 code
772 --disable-lp64 allow chtype to be long (ignore _LP64)
773 --disable-largefile omit support for large files
774 --disable-tparm-varargs compile tparm() without varargs interface
775 --disable-tic-depends link tic library without explicit dependency on ncurses library
776 --with-bool=TYPE override fallback type of bool variable
777 --with-caps=alt compile with alternate Caps file
778 --with-chtype=TYPE override type of chtype
779 --with-ospeed=TYPE override type of ospeed variable
780 --with-mmask-t=TYPE override type of mmask_t
781 --with-ccharw-max=XXX override size CCHARW_MAX
782 --with-tparm-arg=TYPE override parameter type of tparm
783 --with-rcs-ids compile-in RCS identifiers
784 Options to Specify How Manpages are Installed:
785 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
786 optionally formatted/catonly, e.g., gzip,formatted
787 --with-manpage-renames specify manpage-renaming
788 --with-manpage-aliases specify manpage-aliases using .so
789 --with-manpage-symlinks specify manpage-aliases using symlinks
790 --with-manpage-tbl specify manpage processing with tbl
792 --disable-ext-funcs disable function-extensions
793 --enable-sp-funcs enable SCREEN-extensions
794 --enable-term-driver enable terminal-driver
795 --enable-const compile with extra/non-standard const
796 --enable-ext-colors compile for 256-color support
797 --enable-ext-mouse compile for extended mouse-encoding
798 --enable-ext-putwin compile with extended putwin/screendump
799 --enable-no-padding compile with $NCURSES_NO_PADDING code
800 --enable-signed-char compile using signed Boolean's in term.h
801 --enable-sigwinch compile with SIGWINCH handler
802 --enable-tcap-names compile with user-definable terminal capabilities
804 --without-develop disable development options
805 --enable-hard-tabs compile with hard-tabs code
806 --enable-xmc-glitch compile with support for xmc (magic-cookie)
808 --disable-assumed-color do not assume anything about default-colors
809 --disable-hashmap compile without hashmap scrolling-optimization
810 --enable-colorfgbg compile-in experimental $COLORFGBG code
811 --enable-interop compile-in interop bindings
812 --with-pthread use POSIX thread library
813 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
814 --enable-weak-symbols enable weak-symbols for pthreads
815 --enable-reentrant compile with reentrant code
816 --with-wrap-prefix=XXX override prefix used for public variables
817 --enable-safe-sprintf compile with experimental safe-sprintf code
818 --disable-scroll-hints compile without scroll-hints code
819 --enable-wgetch-events compile with wgetch-events code
820 Testing/development Options:
821 --disable-echo do not display "compiling" commands
822 --enable-warnings build: turn on GCC compiler warnings
823 --enable-string-hacks work around bogus compiler/loader warnings
824 --enable-assertions test: turn on generation of assertion code
825 --with-dmalloc test: use Gray Watson's dmalloc library
826 --with-dbmalloc test: use Conor Cahill's dbmalloc library
827 --with-valgrind test: use valgrind
828 --disable-leaks test: free permanent memory, analyze leaks
829 --enable-expanded test: generate functions for certain macros
830 --disable-macros test: use functions rather than macros
831 --with-trace test: add trace() function to all models of ncurses
832 --disable-gnat-projects test: disable GNAT projects even if usable
833 Ada95 Binding Options:
834 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
835 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
836 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
837 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
839 Some influential environment variables:
840 CC C compiler command
841 CFLAGS C compiler flags
842 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
843 nonstandard directory <lib dir>
844 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
845 headers in a nonstandard directory <include dir>
847 CXX C++ compiler command
848 CXXFLAGS C++ compiler flags
849 CXXCPP C++ preprocessor
851 Use these variables to override the choices made by `configure' or to help
852 it to find libraries and programs with nonstandard names/locations.
857 if test "$ac_init_help" = "recursive"; then
858 # If there are subdirs, report their specific --help.
860 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
862 # A "../" for each directory in /$ac_subdir.
863 ac_dots=`echo $ac_subdir |
864 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
867 .) # No --srcdir option. We are building in place.
868 ac_sub_srcdir=$srcdir ;;
869 [\\/]* | ?:[\\/]* ) # Absolute path.
870 ac_sub_srcdir=$srcdir/$ac_subdir ;;
872 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
875 # Check for guested configure; otherwise get Cygnus style configure.
876 if test -f $ac_sub_srcdir/configure.gnu; then
878 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
879 elif test -f $ac_sub_srcdir/configure; then
881 $SHELL $ac_sub_srcdir/configure --help=recursive
882 elif test -f $ac_sub_srcdir/configure.ac ||
883 test -f $ac_sub_srcdir/configure.in; then
887 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
893 test -n "$ac_init_help" && exit 0
894 if $ac_init_version; then
897 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
898 Free Software Foundation, Inc.
899 This configure script is free software; the Free Software Foundation
900 gives unlimited permission to copy, distribute and modify it.
906 This file contains any messages produced by compilers while
907 running configure, to aid debugging if configure makes a mistake.
909 It was created by $as_me, which was
910 generated by GNU Autoconf 2.52.20141204. Invocation command line was
921 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
922 uname -m = `(uname -m) 2>/dev/null || echo unknown`
923 uname -r = `(uname -r) 2>/dev/null || echo unknown`
924 uname -s = `(uname -s) 2>/dev/null || echo unknown`
925 uname -v = `(uname -v) 2>/dev/null || echo unknown`
927 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
928 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
930 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
931 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
932 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
933 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
934 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
935 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
936 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
950 # Keep a trace of the command line.
951 # Strip out --no-create and --no-recursion so they do not pile up.
952 # Also quote any args containing shell meta-characters.
958 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
959 | --no-cr | --no-c) ;;
960 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
961 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
962 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
963 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
964 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
966 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
969 # Get rid of the leading space.
972 # When interrupted or exit'd, cleanup temporary files, and complete
973 # config.log. We remove comments because anyway the quotes in there
974 # would cause problems or look ugly.
976 # Save into config.log some information that might help in debugging.
978 echo "## ----------------- ##" >&5
979 echo "## Cache variables. ##" >&5
980 echo "## ----------------- ##" >&5
982 # The following way of writing the cache mishandles newlines in values,
985 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
988 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
989 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
993 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
997 sed "/^$/d" confdefs.h >conftest.log
998 if test -s conftest.log; then
1000 echo "## ------------ ##" >&5
1001 echo "## confdefs.h. ##" >&5
1002 echo "## ------------ ##" >&5
1004 cat conftest.log >&5
1007 test "$ac_signal" != 0 &&
1008 echo "$as_me: caught signal $ac_signal" >&5
1009 echo "$as_me: exit $exit_status" >&5
1010 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1013 for ac_signal in 1 2 13 15; do
1014 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1018 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1019 rm -rf conftest* confdefs.h
1020 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1023 # Let the site file select an alternate cache file if it wants to.
1024 # Prefer explicitly selected file to automatically selected ones.
1025 if test -z "$CONFIG_SITE"; then
1026 if test "x$prefix" != xNONE; then
1027 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1029 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1032 for ac_site_file in $CONFIG_SITE; do
1033 if test -r "$ac_site_file"; then
1034 { echo "$as_me:1034: loading site script $ac_site_file" >&5
1035 echo "$as_me: loading site script $ac_site_file" >&6;}
1036 cat "$ac_site_file" >&5
1041 if test -r "$cache_file"; then
1042 # Some versions of bash will fail to source /dev/null (special
1043 # files actually), so we avoid doing that.
1044 if test -f "$cache_file"; then
1045 { echo "$as_me:1045: loading cache $cache_file" >&5
1046 echo "$as_me: loading cache $cache_file" >&6;}
1048 [\\/]* | ?:[\\/]* ) . $cache_file;;
1049 *) . ./$cache_file;;
1053 { echo "$as_me:1053: creating cache $cache_file" >&5
1054 echo "$as_me: creating cache $cache_file" >&6;}
1058 # Check that the precious variables saved in the cache have kept the same
1060 ac_cache_corrupted=false
1061 for ac_var in `(set) 2>&1 |
1062 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1063 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1064 eval ac_new_set=\$ac_env_${ac_var}_set
1065 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1066 eval ac_new_val="\$ac_env_${ac_var}_value"
1067 case $ac_old_set,$ac_new_set in
1069 { echo "$as_me:1069: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1070 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1071 ac_cache_corrupted=: ;;
1073 { echo "$as_me:1073: error: \`$ac_var' was not set in the previous run" >&5
1074 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1075 ac_cache_corrupted=: ;;
1078 if test "x$ac_old_val" != "x$ac_new_val"; then
1079 { echo "$as_me:1079: error: \`$ac_var' has changed since the previous run:" >&5
1080 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1081 { echo "$as_me:1081: former value: $ac_old_val" >&5
1082 echo "$as_me: former value: $ac_old_val" >&2;}
1083 { echo "$as_me:1083: current value: $ac_new_val" >&5
1084 echo "$as_me: current value: $ac_new_val" >&2;}
1085 ac_cache_corrupted=:
1088 # Pass precious variables to config.status. It doesn't matter if
1089 # we pass some twice (in addition to the command line arguments).
1090 if test "$ac_new_set" = set; then
1092 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1093 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1094 ac_configure_args="$ac_configure_args '$ac_arg'"
1096 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1101 if $ac_cache_corrupted; then
1102 { echo "$as_me:1102: error: changes in the environment can compromise the build" >&5
1103 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1104 { { echo "$as_me:1104: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1105 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1106 { (exit 1); exit 1; }; }
1110 ac_cpp='$CPP $CPPFLAGS'
1111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1114 ac_main_return=return
1116 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1117 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1119 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1120 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1122 echo "#! $SHELL" >conftest.sh
1123 echo "exit 0" >>conftest.sh
1124 chmod +x conftest.sh
1125 if { (echo "$as_me:1125: PATH=\".;.\"; conftest.sh") >&5
1126 (PATH=".;."; conftest.sh) 2>&5
1128 echo "$as_me:1128: \$? = $ac_status" >&5
1129 (exit $ac_status); }; then
1130 ac_path_separator=';'
1134 PATH_SEPARATOR="$ac_path_separator"
1137 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1141 echo "$as_me:1141: checking for egrep" >&5
1142 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1143 if test "${ac_cv_prog_egrep+set}" = set; then
1144 echo $ECHO_N "(cached) $ECHO_C" >&6
1146 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1147 then ac_cv_prog_egrep='grep -E'
1148 else ac_cv_prog_egrep='egrep'
1151 echo "$as_me:1151: result: $ac_cv_prog_egrep" >&5
1152 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1153 EGREP=$ac_cv_prog_egrep
1155 test -z "$EGREP" && { { echo "$as_me:1155: error: No egrep program found" >&5
1156 echo "$as_me: error: No egrep program found" >&2;}
1157 { (exit 1); exit 1; }; }
1159 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1160 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1161 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1162 cf_cv_abi_version=${NCURSES_MAJOR}
1163 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1164 cf_cv_timestamp=`date`
1165 echo "$as_me:1165: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1166 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1168 if test -f $srcdir/VERSION ; then
1169 echo "$as_me:1169: checking for package version" >&5
1170 echo $ECHO_N "checking for package version... $ECHO_C" >&6
1172 # if there are not enough fields, cut returns the last one...
1173 cf_field1=`sed -e '2,$d' $srcdir/VERSION|cut -f1`
1174 cf_field2=`sed -e '2,$d' $srcdir/VERSION|cut -f2`
1175 cf_field3=`sed -e '2,$d' $srcdir/VERSION|cut -f3`
1177 # this is how CF_BUNDLED_INTL uses $VERSION:
1178 VERSION="$cf_field1"
1180 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'`
1181 test -z "$VERSION_MAJOR" && { { echo "$as_me:1181: error: missing major-version" >&5
1182 echo "$as_me: error: missing major-version" >&2;}
1183 { (exit 1); exit 1; }; }
1185 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'`
1186 test -z "$VERSION_MINOR" && { { echo "$as_me:1186: error: missing minor-version" >&5
1187 echo "$as_me: error: missing minor-version" >&2;}
1188 { (exit 1); exit 1; }; }
1190 echo "$as_me:1190: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5
1191 echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6
1193 echo "$as_me:1193: checking for package patch date" >&5
1194 echo $ECHO_N "checking for package patch date... $ECHO_C" >&6
1195 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'`
1196 case .$VERSION_PATCH in
1198 { { echo "$as_me:1198: error: missing patch-date $VERSION_PATCH" >&5
1199 echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;}
1200 { (exit 1); exit 1; }; }
1202 (.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
1205 { { echo "$as_me:1205: error: illegal patch-date $VERSION_PATCH" >&5
1206 echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;}
1207 { (exit 1); exit 1; }; }
1210 echo "$as_me:1210: result: $VERSION_PATCH" >&5
1211 echo "${ECHO_T}$VERSION_PATCH" >&6
1213 { { echo "$as_me:1213: error: did not find $srcdir/VERSION" >&5
1214 echo "$as_me: error: did not find $srcdir/VERSION" >&2;}
1215 { (exit 1); exit 1; }; }
1218 # show the actual data that we have for versions:
1219 test -n "$verbose" && echo " ABI VERSION $VERSION" 1>&6
1221 echo "${as_me:-configure}:1221: testing ABI VERSION $VERSION ..." 1>&5
1223 test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6
1225 echo "${as_me:-configure}:1225: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5
1227 test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6
1229 echo "${as_me:-configure}:1229: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5
1231 test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6
1233 echo "${as_me:-configure}:1233: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5
1238 cat >>confdefs.h <<EOF
1239 #define PACKAGE "$PACKAGE"
1242 cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1244 cat >>confdefs.h <<EOF
1245 #define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}"
1248 cat >>confdefs.h <<EOF
1249 #define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH}
1252 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1254 # Check whether --with-rel-version or --without-rel-version was given.
1255 if test "${with_rel_version+set}" = set; then
1256 withval="$with_rel_version"
1257 { echo "$as_me:1257: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1258 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1259 cf_cv_rel_version=$withval
1262 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1263 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1265 if test -n "$NCURSES_MAJOR" ; then
1266 case $NCURSES_MAJOR in
1270 { { echo "$as_me:1270: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1271 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1272 { (exit 1); exit 1; }; }
1276 { { echo "$as_me:1276: error: Release major-version value is empty" >&5
1277 echo "$as_me: error: Release major-version value is empty" >&2;}
1278 { (exit 1); exit 1; }; }
1281 if test -n "$NCURSES_MINOR" ; then
1282 case $NCURSES_MINOR in
1286 { { echo "$as_me:1286: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1287 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1288 { (exit 1); exit 1; }; }
1292 { { echo "$as_me:1292: error: Release minor-version value is empty" >&5
1293 echo "$as_me: error: Release minor-version value is empty" >&2;}
1294 { (exit 1); exit 1; }; }
1297 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1299 # Check whether --with-abi-version or --without-abi-version was given.
1300 if test "${with_abi_version+set}" = set; then
1301 withval="$with_abi_version"
1303 if test "x$cf_cv_abi_version" != "x$withval"
1305 { echo "$as_me:1305: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1306 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1307 case $cf_cv_rel_version in
1309 cf_cv_rel_version=$withval.0
1312 cf_cv_rel_version=$withval.9 # FIXME: should be 10 as of 6.0 release
1316 cf_cv_abi_version=$withval
1319 if test -n "$cf_cv_abi_version" ; then
1320 case $cf_cv_abi_version in
1324 { { echo "$as_me:1324: error: ABI version is not a number: $cf_cv_abi_version" >&5
1325 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1326 { (exit 1); exit 1; }; }
1330 { { echo "$as_me:1330: error: ABI version value is empty" >&5
1331 echo "$as_me: error: ABI version value is empty" >&2;}
1332 { (exit 1); exit 1; }; }
1335 if test "x$cf_cv_abi_version" != "x$with_abi_version"
1337 case $cf_cv_rel_version in
1339 cf_cv_rel_version=$with_abi_version.0
1345 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1346 if test -f $ac_dir/install-sh; then
1348 ac_install_sh="$ac_aux_dir/install-sh -c"
1350 elif test -f $ac_dir/install.sh; then
1352 ac_install_sh="$ac_aux_dir/install.sh -c"
1354 elif test -f $ac_dir/shtool; then
1356 ac_install_sh="$ac_aux_dir/shtool install -c"
1360 if test -z "$ac_aux_dir"; then
1361 { { echo "$as_me:1361: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1362 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1363 { (exit 1); exit 1; }; }
1365 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1366 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1367 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1369 # Make sure we can run config.sub.
1370 $ac_config_sub sun4 >/dev/null 2>&1 ||
1371 { { echo "$as_me:1371: error: cannot run $ac_config_sub" >&5
1372 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1373 { (exit 1); exit 1; }; }
1375 echo "$as_me:1375: checking build system type" >&5
1376 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1377 if test "${ac_cv_build+set}" = set; then
1378 echo $ECHO_N "(cached) $ECHO_C" >&6
1380 ac_cv_build_alias=$build_alias
1381 test -z "$ac_cv_build_alias" &&
1382 ac_cv_build_alias=`$ac_config_guess`
1383 test -z "$ac_cv_build_alias" &&
1384 { { echo "$as_me:1384: error: cannot guess build type; you must specify one" >&5
1385 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1386 { (exit 1); exit 1; }; }
1387 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1388 { { echo "$as_me:1388: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1389 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1390 { (exit 1); exit 1; }; }
1393 echo "$as_me:1393: result: $ac_cv_build" >&5
1394 echo "${ECHO_T}$ac_cv_build" >&6
1396 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1397 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1398 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1400 echo "$as_me:1400: checking host system type" >&5
1401 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1402 if test "${ac_cv_host+set}" = set; then
1403 echo $ECHO_N "(cached) $ECHO_C" >&6
1405 ac_cv_host_alias=$host_alias
1406 test -z "$ac_cv_host_alias" &&
1407 ac_cv_host_alias=$ac_cv_build_alias
1408 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1409 { { echo "$as_me:1409: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1410 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1411 { (exit 1); exit 1; }; }
1414 echo "$as_me:1414: result: $ac_cv_host" >&5
1415 echo "${ECHO_T}$ac_cv_host" >&6
1417 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1418 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1419 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1421 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1422 echo "$as_me:1422: checking target system type" >&5
1423 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1424 if test "${ac_cv_target+set}" = set; then
1425 echo $ECHO_N "(cached) $ECHO_C" >&6
1427 ac_cv_target_alias=$target_alias
1428 test "x$ac_cv_target_alias" = "x" &&
1429 ac_cv_target_alias=$ac_cv_host_alias
1430 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1431 { { echo "$as_me:1431: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1432 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1433 { (exit 1); exit 1; }; }
1436 echo "$as_me:1436: result: $ac_cv_target" >&5
1437 echo "${ECHO_T}$ac_cv_target" >&6
1438 target=$ac_cv_target
1439 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1440 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1441 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1443 # The aliases save the names the user supplied, while $host etc.
1444 # will get canonicalized.
1445 test -n "$target_alias" &&
1446 test "$program_prefix$program_suffix$program_transform_name" = \
1448 program_prefix=${target_alias}-
1449 system_name="$host_os"
1451 system_name="`(uname -s -r) 2>/dev/null`"
1452 if test -z "$system_name" ; then
1453 system_name="`(hostname) 2>/dev/null`"
1456 test -n "$system_name" &&
1457 cat >>confdefs.h <<EOF
1458 #define SYSTEM_NAME "$system_name"
1461 if test "${cf_cv_system_name+set}" = set; then
1462 echo $ECHO_N "(cached) $ECHO_C" >&6
1464 cf_cv_system_name="$system_name"
1467 test -z "$system_name" && system_name="$cf_cv_system_name"
1468 test -n "$cf_cv_system_name" && echo "$as_me:1468: result: Configuring for $cf_cv_system_name" >&5
1469 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1471 if test ".$system_name" != ".$cf_cv_system_name" ; then
1472 echo "$as_me:1472: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1473 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1474 { { echo "$as_me:1474: error: \"Please remove config.cache and try again.\"" >&5
1475 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1476 { (exit 1); exit 1; }; }
1479 # Check whether --with-system-type or --without-system-type was given.
1480 if test "${with_system_type+set}" = set; then
1481 withval="$with_system_type"
1482 { echo "$as_me:1482: WARNING: overriding system type to $withval" >&5
1483 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1484 cf_cv_system_name=$withval
1489 ### Save the given $CFLAGS to allow user-override.
1490 cf_user_CFLAGS="$CFLAGS"
1492 ### Default install-location
1494 echo "$as_me:1494: checking for prefix" >&5
1495 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1496 if test "x$prefix" = "xNONE" ; then
1497 case "$cf_cv_system_name" in
1498 # non-vendor systems don't have a conflict
1499 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1502 (*) prefix=$ac_default_prefix
1506 echo "$as_me:1506: result: $prefix" >&5
1507 echo "${ECHO_T}$prefix" >&6
1509 if test "x$prefix" = "xNONE" ; then
1510 echo "$as_me:1510: checking for default include-directory" >&5
1511 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1512 test -n "$verbose" && echo 1>&6
1515 $includedir/ncurses \
1517 $prefix/include/ncurses \
1518 /usr/local/include \
1519 /usr/local/include/ncurses \
1521 /usr/include/ncurses
1523 cf_dir=`eval echo $cf_symbol`
1524 if test -f $cf_dir/curses.h ; then
1525 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1526 includedir="$cf_symbol"
1527 test -n "$verbose" && echo $ac_n " found " 1>&6
1531 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1533 echo "$as_me:1533: result: $includedir" >&5
1534 echo "${ECHO_T}$includedir" >&6
1537 ### Defaults for ncurses ABI
1539 case x$cf_cv_abi_version in
1541 cf_dft_ext_colors=yes
1542 cf_dft_ext_const=yes
1543 cf_dft_ext_mouse=yes
1544 cf_dft_ext_putwin=yes
1545 cf_dft_ext_spfuncs=yes
1546 cf_dft_filter_syms=yes
1547 cf_dft_chtype=uint32_t
1548 cf_dft_mmask_t=uint32_t
1550 cf_dft_tparm_arg=intptr_t
1551 cf_dft_with_lp64=yes
1554 cf_dft_ext_colors=no
1557 cf_dft_ext_putwin=no
1558 cf_dft_ext_spfuncs=no
1559 cf_dft_filter_syms=no
1563 cf_dft_tparm_arg=long
1568 ### Checks for programs.
1570 # Check whether --with-ada or --without-ada was given.
1571 if test "${with_ada+set}" = set; then
1573 cf_with_ada=$withval
1577 if test "x$cf_with_ada" = xyes
1579 cf_PROG_CC="gnatgcc gcc cc"
1585 ac_cpp='$CPP $CPPFLAGS'
1586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1589 ac_main_return=return
1590 if test -n "$ac_tool_prefix"; then
1591 for ac_prog in $cf_PROG_CC
1593 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1594 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1595 echo "$as_me:1595: checking for $ac_word" >&5
1596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1597 if test "${ac_cv_prog_CC+set}" = set; then
1598 echo $ECHO_N "(cached) $ECHO_C" >&6
1600 if test -n "$CC"; then
1601 ac_cv_prog_CC="$CC" # Let the user override the test.
1603 ac_save_IFS=$IFS; IFS=$ac_path_separator
1605 for ac_dir in $ac_dummy; do
1607 test -z "$ac_dir" && ac_dir=.
1608 $as_executable_p "$ac_dir/$ac_word" || continue
1609 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1610 echo "$as_me:1610: found $ac_dir/$ac_word" >&5
1617 if test -n "$CC"; then
1618 echo "$as_me:1618: result: $CC" >&5
1619 echo "${ECHO_T}$CC" >&6
1621 echo "$as_me:1621: result: no" >&5
1622 echo "${ECHO_T}no" >&6
1625 test -n "$CC" && break
1628 if test -z "$CC"; then
1630 for ac_prog in $cf_PROG_CC
1632 # Extract the first word of "$ac_prog", so it can be a program name with args.
1633 set dummy $ac_prog; ac_word=$2
1634 echo "$as_me:1634: checking for $ac_word" >&5
1635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1636 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1637 echo $ECHO_N "(cached) $ECHO_C" >&6
1639 if test -n "$ac_ct_CC"; then
1640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1642 ac_save_IFS=$IFS; IFS=$ac_path_separator
1644 for ac_dir in $ac_dummy; do
1646 test -z "$ac_dir" && ac_dir=.
1647 $as_executable_p "$ac_dir/$ac_word" || continue
1648 ac_cv_prog_ac_ct_CC="$ac_prog"
1649 echo "$as_me:1649: found $ac_dir/$ac_word" >&5
1655 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1656 if test -n "$ac_ct_CC"; then
1657 echo "$as_me:1657: result: $ac_ct_CC" >&5
1658 echo "${ECHO_T}$ac_ct_CC" >&6
1660 echo "$as_me:1660: result: no" >&5
1661 echo "${ECHO_T}no" >&6
1664 test -n "$ac_ct_CC" && break
1670 test -z "$CC" && { { echo "$as_me:1670: error: no acceptable cc found in \$PATH" >&5
1671 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1672 { (exit 1); exit 1; }; }
1674 # Provide some information about the compiler.
1675 echo "$as_me:1675:" \
1676 "checking for C compiler version" >&5
1677 ac_compiler=`set X $ac_compile; echo $2`
1678 { (eval echo "$as_me:1678: \"$ac_compiler --version </dev/null >&5\"") >&5
1679 (eval $ac_compiler --version </dev/null >&5) 2>&5
1681 echo "$as_me:1681: \$? = $ac_status" >&5
1682 (exit $ac_status); }
1683 { (eval echo "$as_me:1683: \"$ac_compiler -v </dev/null >&5\"") >&5
1684 (eval $ac_compiler -v </dev/null >&5) 2>&5
1686 echo "$as_me:1686: \$? = $ac_status" >&5
1687 (exit $ac_status); }
1688 { (eval echo "$as_me:1688: \"$ac_compiler -V </dev/null >&5\"") >&5
1689 (eval $ac_compiler -V </dev/null >&5) 2>&5
1691 echo "$as_me:1691: \$? = $ac_status" >&5
1692 (exit $ac_status); }
1694 cat >conftest.$ac_ext <<_ACEOF
1695 #line 1695 "configure"
1696 #include "confdefs.h"
1706 ac_clean_files_save=$ac_clean_files
1707 ac_clean_files="$ac_clean_files a.out a.exe"
1708 # Try to create an executable without -o first, disregard a.out.
1709 # It will help us diagnose broken compilers, and finding out an intuition
1711 echo "$as_me:1711: checking for C compiler default output" >&5
1712 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1713 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1714 if { (eval echo "$as_me:1714: \"$ac_link_default\"") >&5
1715 (eval $ac_link_default) 2>&5
1717 echo "$as_me:1717: \$? = $ac_status" >&5
1718 (exit $ac_status); }; then
1719 # Find the output, starting from the most likely. This scheme is
1720 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1722 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1723 ls a.out conftest 2>/dev/null;
1724 ls a.* conftest.* 2>/dev/null`; do
1726 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1727 a.out ) # We found the default executable, but exeext='' is most
1730 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1731 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1738 echo "$as_me: failed program was:" >&5
1739 cat conftest.$ac_ext >&5
1740 { { echo "$as_me:1740: error: C compiler cannot create executables" >&5
1741 echo "$as_me: error: C compiler cannot create executables" >&2;}
1742 { (exit 77); exit 77; }; }
1745 ac_exeext=$ac_cv_exeext
1746 echo "$as_me:1746: result: $ac_file" >&5
1747 echo "${ECHO_T}$ac_file" >&6
1749 # Check the compiler produces executables we can run. If not, either
1750 # the compiler is broken, or we cross compile.
1751 echo "$as_me:1751: checking whether the C compiler works" >&5
1752 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1753 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1754 # If not cross compiling, check that we can run a simple program.
1755 if test "$cross_compiling" != yes; then
1756 if { ac_try='./$ac_file'
1757 { (eval echo "$as_me:1757: \"$ac_try\"") >&5
1760 echo "$as_me:1760: \$? = $ac_status" >&5
1761 (exit $ac_status); }; }; then
1764 if test "$cross_compiling" = maybe; then
1767 { { echo "$as_me:1767: error: cannot run C compiled programs.
1768 If you meant to cross compile, use \`--host'." >&5
1769 echo "$as_me: error: cannot run C compiled programs.
1770 If you meant to cross compile, use \`--host'." >&2;}
1771 { (exit 1); exit 1; }; }
1775 echo "$as_me:1775: result: yes" >&5
1776 echo "${ECHO_T}yes" >&6
1778 rm -f a.out a.exe conftest$ac_cv_exeext
1779 ac_clean_files=$ac_clean_files_save
1780 # Check the compiler produces executables we can run. If not, either
1781 # the compiler is broken, or we cross compile.
1782 echo "$as_me:1782: checking whether we are cross compiling" >&5
1783 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1784 echo "$as_me:1784: result: $cross_compiling" >&5
1785 echo "${ECHO_T}$cross_compiling" >&6
1787 echo "$as_me:1787: checking for executable suffix" >&5
1788 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1789 if { (eval echo "$as_me:1789: \"$ac_link\"") >&5
1790 (eval $ac_link) 2>&5
1792 echo "$as_me:1792: \$? = $ac_status" >&5
1793 (exit $ac_status); }; then
1794 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1795 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1796 # work properly (i.e., refer to `conftest.exe'), while it won't with
1798 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1800 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1801 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1808 { { echo "$as_me:1808: error: cannot compute EXEEXT: cannot compile and link" >&5
1809 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1810 { (exit 1); exit 1; }; }
1813 rm -f conftest$ac_cv_exeext
1814 echo "$as_me:1814: result: $ac_cv_exeext" >&5
1815 echo "${ECHO_T}$ac_cv_exeext" >&6
1817 rm -f conftest.$ac_ext
1818 EXEEXT=$ac_cv_exeext
1820 echo "$as_me:1820: checking for object suffix" >&5
1821 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1822 if test "${ac_cv_objext+set}" = set; then
1823 echo $ECHO_N "(cached) $ECHO_C" >&6
1825 cat >conftest.$ac_ext <<_ACEOF
1826 #line 1826 "configure"
1827 #include "confdefs.h"
1837 rm -f conftest.o conftest.obj
1838 if { (eval echo "$as_me:1838: \"$ac_compile\"") >&5
1839 (eval $ac_compile) 2>&5
1841 echo "$as_me:1841: \$? = $ac_status" >&5
1842 (exit $ac_status); }; then
1843 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1845 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1846 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1851 echo "$as_me: failed program was:" >&5
1852 cat conftest.$ac_ext >&5
1853 { { echo "$as_me:1853: error: cannot compute OBJEXT: cannot compile" >&5
1854 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1855 { (exit 1); exit 1; }; }
1858 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1860 echo "$as_me:1860: result: $ac_cv_objext" >&5
1861 echo "${ECHO_T}$ac_cv_objext" >&6
1862 OBJEXT=$ac_cv_objext
1864 echo "$as_me:1864: checking whether we are using the GNU C compiler" >&5
1865 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1866 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1867 echo $ECHO_N "(cached) $ECHO_C" >&6
1869 cat >conftest.$ac_ext <<_ACEOF
1870 #line 1870 "configure"
1871 #include "confdefs.h"
1884 rm -f conftest.$ac_objext
1885 if { (eval echo "$as_me:1885: \"$ac_compile\"") >&5
1886 (eval $ac_compile) 2>&5
1888 echo "$as_me:1888: \$? = $ac_status" >&5
1889 (exit $ac_status); } &&
1890 { ac_try='test -s conftest.$ac_objext'
1891 { (eval echo "$as_me:1891: \"$ac_try\"") >&5
1894 echo "$as_me:1894: \$? = $ac_status" >&5
1895 (exit $ac_status); }; }; then
1898 echo "$as_me: failed program was:" >&5
1899 cat conftest.$ac_ext >&5
1902 rm -f conftest.$ac_objext conftest.$ac_ext
1903 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1906 echo "$as_me:1906: result: $ac_cv_c_compiler_gnu" >&5
1907 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1908 GCC=`test $ac_compiler_gnu = yes && echo yes`
1909 ac_test_CFLAGS=${CFLAGS+set}
1910 ac_save_CFLAGS=$CFLAGS
1912 echo "$as_me:1912: checking whether $CC accepts -g" >&5
1913 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1914 if test "${ac_cv_prog_cc_g+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1917 cat >conftest.$ac_ext <<_ACEOF
1918 #line 1918 "configure"
1919 #include "confdefs.h"
1929 rm -f conftest.$ac_objext
1930 if { (eval echo "$as_me:1930: \"$ac_compile\"") >&5
1931 (eval $ac_compile) 2>&5
1933 echo "$as_me:1933: \$? = $ac_status" >&5
1934 (exit $ac_status); } &&
1935 { ac_try='test -s conftest.$ac_objext'
1936 { (eval echo "$as_me:1936: \"$ac_try\"") >&5
1939 echo "$as_me:1939: \$? = $ac_status" >&5
1940 (exit $ac_status); }; }; then
1943 echo "$as_me: failed program was:" >&5
1944 cat conftest.$ac_ext >&5
1947 rm -f conftest.$ac_objext conftest.$ac_ext
1949 echo "$as_me:1949: result: $ac_cv_prog_cc_g" >&5
1950 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1951 if test "$ac_test_CFLAGS" = set; then
1952 CFLAGS=$ac_save_CFLAGS
1953 elif test $ac_cv_prog_cc_g = yes; then
1954 if test "$GCC" = yes; then
1960 if test "$GCC" = yes; then
1966 # Some people use a C++ compiler to compile C. Since we use `exit',
1967 # in C++ we need to declare it. In case someone uses the same compiler
1968 # for both compiling C and C++ we need to have the C++ compiler decide
1969 # the declaration of exit, since it's the most demanding environment.
1970 cat >conftest.$ac_ext <<_ACEOF
1975 rm -f conftest.$ac_objext
1976 if { (eval echo "$as_me:1976: \"$ac_compile\"") >&5
1977 (eval $ac_compile) 2>&5
1979 echo "$as_me:1979: \$? = $ac_status" >&5
1980 (exit $ac_status); } &&
1981 { ac_try='test -s conftest.$ac_objext'
1982 { (eval echo "$as_me:1982: \"$ac_try\"") >&5
1985 echo "$as_me:1985: \$? = $ac_status" >&5
1986 (exit $ac_status); }; }; then
1987 for ac_declaration in \
1989 '#include <stdlib.h>' \
1990 'extern "C" void std::exit (int) throw (); using std::exit;' \
1991 'extern "C" void std::exit (int); using std::exit;' \
1992 'extern "C" void exit (int) throw ();' \
1993 'extern "C" void exit (int);' \
1996 cat >conftest.$ac_ext <<_ACEOF
1997 #line 1997 "configure"
1998 #include "confdefs.h"
2009 rm -f conftest.$ac_objext
2010 if { (eval echo "$as_me:2010: \"$ac_compile\"") >&5
2011 (eval $ac_compile) 2>&5
2013 echo "$as_me:2013: \$? = $ac_status" >&5
2014 (exit $ac_status); } &&
2015 { ac_try='test -s conftest.$ac_objext'
2016 { (eval echo "$as_me:2016: \"$ac_try\"") >&5
2019 echo "$as_me:2019: \$? = $ac_status" >&5
2020 (exit $ac_status); }; }; then
2023 echo "$as_me: failed program was:" >&5
2024 cat conftest.$ac_ext >&5
2027 rm -f conftest.$ac_objext conftest.$ac_ext
2028 cat >conftest.$ac_ext <<_ACEOF
2029 #line 2029 "configure"
2030 #include "confdefs.h"
2040 rm -f conftest.$ac_objext
2041 if { (eval echo "$as_me:2041: \"$ac_compile\"") >&5
2042 (eval $ac_compile) 2>&5
2044 echo "$as_me:2044: \$? = $ac_status" >&5
2045 (exit $ac_status); } &&
2046 { ac_try='test -s conftest.$ac_objext'
2047 { (eval echo "$as_me:2047: \"$ac_try\"") >&5
2050 echo "$as_me:2050: \$? = $ac_status" >&5
2051 (exit $ac_status); }; }; then
2054 echo "$as_me: failed program was:" >&5
2055 cat conftest.$ac_ext >&5
2057 rm -f conftest.$ac_objext conftest.$ac_ext
2060 if test -n "$ac_declaration"; then
2061 echo '#ifdef __cplusplus' >>confdefs.h
2062 echo $ac_declaration >>confdefs.h
2063 echo '#endif' >>confdefs.h
2067 echo "$as_me: failed program was:" >&5
2068 cat conftest.$ac_ext >&5
2070 rm -f conftest.$ac_objext conftest.$ac_ext
2072 ac_cpp='$CPP $CPPFLAGS'
2073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2076 ac_main_return=return
2079 if test "$GCC" = yes ; then
2080 echo "$as_me:2080: checking version of $CC" >&5
2081 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2082 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2083 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2084 echo "$as_me:2084: result: $GCC_VERSION" >&5
2085 echo "${ECHO_T}$GCC_VERSION" >&6
2088 echo "$as_me:2088: checking for $CC option to accept ANSI C" >&5
2089 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2090 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2091 echo $ECHO_N "(cached) $ECHO_C" >&6
2093 ac_cv_prog_cc_stdc=no
2095 cat >conftest.$ac_ext <<_ACEOF
2096 #line 2096 "configure"
2097 #include "confdefs.h"
2100 #include <sys/types.h>
2101 #include <sys/stat.h>
2102 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2103 struct buf { int x; };
2104 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2105 static char *e (p, i)
2111 static char *f (char * (*g) (char **, int), char **p, ...)
2116 s = g (p, va_arg (v,int));
2120 int test (int i, double x);
2121 struct s1 {int (*f) (int a);};
2122 struct s2 {int (*f) (double a);};
2123 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2129 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2134 # Don't try gcc -ansi; that turns off useful extensions and
2135 # breaks some systems' header files.
2136 # AIX -qlanglvl=ansi
2137 # Ultrix and OSF/1 -std1
2138 # HP-UX 10.20 and later -Ae
2139 # HP-UX older versions -Aa -D_HPUX_SOURCE
2140 # SVR4 -Xc -D__EXTENSIONS__
2141 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2143 CC="$ac_save_CC $ac_arg"
2144 rm -f conftest.$ac_objext
2145 if { (eval echo "$as_me:2145: \"$ac_compile\"") >&5
2146 (eval $ac_compile) 2>&5
2148 echo "$as_me:2148: \$? = $ac_status" >&5
2149 (exit $ac_status); } &&
2150 { ac_try='test -s conftest.$ac_objext'
2151 { (eval echo "$as_me:2151: \"$ac_try\"") >&5
2154 echo "$as_me:2154: \$? = $ac_status" >&5
2155 (exit $ac_status); }; }; then
2156 ac_cv_prog_cc_stdc=$ac_arg
2159 echo "$as_me: failed program was:" >&5
2160 cat conftest.$ac_ext >&5
2162 rm -f conftest.$ac_objext
2164 rm -f conftest.$ac_ext conftest.$ac_objext
2169 case "x$ac_cv_prog_cc_stdc" in
2171 echo "$as_me:2171: result: none needed" >&5
2172 echo "${ECHO_T}none needed" >&6 ;;
2174 echo "$as_me:2174: result: $ac_cv_prog_cc_stdc" >&5
2175 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2176 CC="$CC $ac_cv_prog_cc_stdc" ;;
2179 # This should have been defined by AC_PROG_CC
2182 echo "$as_me:2182: checking \$CC variable" >&5
2183 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2186 echo "$as_me:2186: result: broken" >&5
2187 echo "${ECHO_T}broken" >&6
2188 { echo "$as_me:2188: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2189 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2191 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
2192 CC=`echo "$CC" | sed -e 's/[ ].*//'`
2197 cf_new_extra_cppflags=
2199 for cf_add_cflags in $cf_flags
2201 case $cf_fix_cppflags in
2203 case $cf_add_cflags in
2204 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2205 case $cf_add_cflags in
2207 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2209 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2210 && test -z "${cf_tst_cflags}" \
2211 && cf_fix_cppflags=yes
2213 if test $cf_fix_cppflags = yes ; then
2214 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2216 elif test "${cf_tst_cflags}" = "\"'" ; then
2217 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2226 case $cf_add_cflags in
2228 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2230 CPPFLAGS=`echo "$CPPFLAGS" | \
2231 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2232 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2236 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2241 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2246 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2248 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2250 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2251 && test -z "${cf_tst_cflags}" \
2252 && cf_fix_cppflags=no
2257 if test -n "$cf_new_cflags" ; then
2259 CFLAGS="$CFLAGS $cf_new_cflags"
2262 if test -n "$cf_new_cppflags" ; then
2264 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2267 if test -n "$cf_new_extra_cppflags" ; then
2269 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2274 echo "$as_me:2274: result: ok" >&5
2275 echo "${ECHO_T}ok" >&6
2280 ac_cpp='$CPP $CPPFLAGS'
2281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2284 ac_main_return=return
2285 echo "$as_me:2285: checking how to run the C preprocessor" >&5
2286 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2287 # On Suns, sometimes $CPP names a directory.
2288 if test -n "$CPP" && test -d "$CPP"; then
2291 if test -z "$CPP"; then
2292 if test "${ac_cv_prog_CPP+set}" = set; then
2293 echo $ECHO_N "(cached) $ECHO_C" >&6
2295 # Double quotes because CPP needs to be expanded
2296 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2299 for ac_c_preproc_warn_flag in '' yes
2301 # Use a header file that comes with gcc, so configuring glibc
2302 # with a fresh cross-compiler works.
2303 # On the NeXT, cc -E runs the code through the compiler's parser,
2304 # not just through cpp. "Syntax error" is here to catch this case.
2305 cat >conftest.$ac_ext <<_ACEOF
2306 #line 2306 "configure"
2307 #include "confdefs.h"
2311 if { (eval echo "$as_me:2311: \"$ac_cpp conftest.$ac_ext\"") >&5
2312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2314 egrep -v '^ *\+' conftest.er1 >conftest.err
2316 cat conftest.err >&5
2317 echo "$as_me:2317: \$? = $ac_status" >&5
2318 (exit $ac_status); } >/dev/null; then
2319 if test -s conftest.err; then
2320 ac_cpp_err=$ac_c_preproc_warn_flag
2327 if test -z "$ac_cpp_err"; then
2330 echo "$as_me: failed program was:" >&5
2331 cat conftest.$ac_ext >&5
2332 # Broken: fails on valid input.
2335 rm -f conftest.err conftest.$ac_ext
2337 # OK, works on sane cases. Now check whether non-existent headers
2338 # can be detected and how.
2339 cat >conftest.$ac_ext <<_ACEOF
2340 #line 2340 "configure"
2341 #include "confdefs.h"
2342 #include <ac_nonexistent.h>
2344 if { (eval echo "$as_me:2344: \"$ac_cpp conftest.$ac_ext\"") >&5
2345 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2347 egrep -v '^ *\+' conftest.er1 >conftest.err
2349 cat conftest.err >&5
2350 echo "$as_me:2350: \$? = $ac_status" >&5
2351 (exit $ac_status); } >/dev/null; then
2352 if test -s conftest.err; then
2353 ac_cpp_err=$ac_c_preproc_warn_flag
2360 if test -z "$ac_cpp_err"; then
2361 # Broken: success on invalid input.
2364 echo "$as_me: failed program was:" >&5
2365 cat conftest.$ac_ext >&5
2366 # Passes both tests.
2370 rm -f conftest.err conftest.$ac_ext
2373 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2374 rm -f conftest.err conftest.$ac_ext
2375 if $ac_preproc_ok; then
2387 echo "$as_me:2387: result: $CPP" >&5
2388 echo "${ECHO_T}$CPP" >&6
2390 for ac_c_preproc_warn_flag in '' yes
2392 # Use a header file that comes with gcc, so configuring glibc
2393 # with a fresh cross-compiler works.
2394 # On the NeXT, cc -E runs the code through the compiler's parser,
2395 # not just through cpp. "Syntax error" is here to catch this case.
2396 cat >conftest.$ac_ext <<_ACEOF
2397 #line 2397 "configure"
2398 #include "confdefs.h"
2402 if { (eval echo "$as_me:2402: \"$ac_cpp conftest.$ac_ext\"") >&5
2403 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2405 egrep -v '^ *\+' conftest.er1 >conftest.err
2407 cat conftest.err >&5
2408 echo "$as_me:2408: \$? = $ac_status" >&5
2409 (exit $ac_status); } >/dev/null; then
2410 if test -s conftest.err; then
2411 ac_cpp_err=$ac_c_preproc_warn_flag
2418 if test -z "$ac_cpp_err"; then
2421 echo "$as_me: failed program was:" >&5
2422 cat conftest.$ac_ext >&5
2423 # Broken: fails on valid input.
2426 rm -f conftest.err conftest.$ac_ext
2428 # OK, works on sane cases. Now check whether non-existent headers
2429 # can be detected and how.
2430 cat >conftest.$ac_ext <<_ACEOF
2431 #line 2431 "configure"
2432 #include "confdefs.h"
2433 #include <ac_nonexistent.h>
2435 if { (eval echo "$as_me:2435: \"$ac_cpp conftest.$ac_ext\"") >&5
2436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2438 egrep -v '^ *\+' conftest.er1 >conftest.err
2440 cat conftest.err >&5
2441 echo "$as_me:2441: \$? = $ac_status" >&5
2442 (exit $ac_status); } >/dev/null; then
2443 if test -s conftest.err; then
2444 ac_cpp_err=$ac_c_preproc_warn_flag
2451 if test -z "$ac_cpp_err"; then
2452 # Broken: success on invalid input.
2455 echo "$as_me: failed program was:" >&5
2456 cat conftest.$ac_ext >&5
2457 # Passes both tests.
2461 rm -f conftest.err conftest.$ac_ext
2464 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2465 rm -f conftest.err conftest.$ac_ext
2466 if $ac_preproc_ok; then
2469 { { echo "$as_me:2469: error: C preprocessor \"$CPP\" fails sanity check" >&5
2470 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2471 { (exit 1); exit 1; }; }
2475 ac_cpp='$CPP $CPPFLAGS'
2476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2479 ac_main_return=return
2481 if test $ac_cv_c_compiler_gnu = yes; then
2482 echo "$as_me:2482: checking whether $CC needs -traditional" >&5
2483 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2484 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2487 ac_pattern="Autoconf.*'x'"
2488 cat >conftest.$ac_ext <<_ACEOF
2489 #line 2489 "configure"
2490 #include "confdefs.h"
2492 int Autoconf = TIOCGETP;
2494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2495 egrep "$ac_pattern" >/dev/null 2>&1; then
2496 ac_cv_prog_gcc_traditional=yes
2498 ac_cv_prog_gcc_traditional=no
2502 if test $ac_cv_prog_gcc_traditional = no; then
2503 cat >conftest.$ac_ext <<_ACEOF
2504 #line 2504 "configure"
2505 #include "confdefs.h"
2507 int Autoconf = TCGETA;
2509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2510 egrep "$ac_pattern" >/dev/null 2>&1; then
2511 ac_cv_prog_gcc_traditional=yes
2517 echo "$as_me:2517: result: $ac_cv_prog_gcc_traditional" >&5
2518 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2519 if test $ac_cv_prog_gcc_traditional = yes; then
2520 CC="$CC -traditional"
2524 echo "$as_me:2524: checking whether $CC understands -c and -o together" >&5
2525 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2526 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2527 echo $ECHO_N "(cached) $ECHO_C" >&6
2530 cat > conftest.$ac_ext <<CF_EOF
2534 ${cf_cv_main_return:-return}(0);
2537 # We do the test twice because some compilers refuse to overwrite an
2538 # existing .o file with -o, though they will create one.
2539 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2540 if { (eval echo "$as_me:2540: \"$ac_try\"") >&5
2543 echo "$as_me:2543: \$? = $ac_status" >&5
2544 (exit $ac_status); } &&
2545 test -f conftest2.$ac_objext && { (eval echo "$as_me:2545: \"$ac_try\"") >&5
2548 echo "$as_me:2548: \$? = $ac_status" >&5
2549 (exit $ac_status); };
2551 eval cf_cv_prog_CC_c_o=yes
2553 eval cf_cv_prog_CC_c_o=no
2558 if test $cf_cv_prog_CC_c_o = yes; then
2559 echo "$as_me:2559: result: yes" >&5
2560 echo "${ECHO_T}yes" >&6
2562 echo "$as_me:2562: result: no" >&5
2563 echo "${ECHO_T}no" >&6
2566 if test "$cross_compiling" = yes ; then
2569 case "$cf_cv_system_name" in
2570 (dragonfly*|mirbsd*|freebsd*)
2571 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2573 (*) LDPATH=$PATH:/sbin:/usr/sbin
2574 # Extract the first word of "ldconfig", so it can be a program name with args.
2575 set dummy ldconfig; ac_word=$2
2576 echo "$as_me:2576: checking for $ac_word" >&5
2577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2578 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
2583 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2586 ac_save_IFS=$IFS; IFS=$ac_path_separator
2588 for ac_dir in $ac_dummy; do
2590 test -z "$ac_dir" && ac_dir=.
2591 if $as_executable_p "$ac_dir/$ac_word"; then
2592 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2593 echo "$as_me:2593: found $ac_dir/$ac_word" >&5
2601 LDCONFIG=$ac_cv_path_LDCONFIG
2603 if test -n "$LDCONFIG"; then
2604 echo "$as_me:2604: result: $LDCONFIG" >&5
2605 echo "${ECHO_T}$LDCONFIG" >&6
2607 echo "$as_me:2607: result: no" >&5
2608 echo "${ECHO_T}no" >&6
2615 echo "$as_me:2615: checking if you want to ensure bool is consistent with C++" >&5
2616 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2618 # Check whether --with-cxx or --without-cxx was given.
2619 if test "${with_cxx+set}" = set; then
2621 cf_with_cxx=$withval
2625 echo "$as_me:2625: result: $cf_with_cxx" >&5
2626 echo "${ECHO_T}$cf_with_cxx" >&6
2627 if test "X$cf_with_cxx" = Xno ; then
2631 # with autoconf 2.13, we can change the error to a warning:
2633 ac_cpp='$CXXCPP $CPPFLAGS'
2634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2637 ac_main_return=return
2638 if test -n "$ac_tool_prefix"; then
2639 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2641 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2642 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2643 echo "$as_me:2643: checking for $ac_word" >&5
2644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2645 if test "${ac_cv_prog_CXX+set}" = set; then
2646 echo $ECHO_N "(cached) $ECHO_C" >&6
2648 if test -n "$CXX"; then
2649 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2651 ac_save_IFS=$IFS; IFS=$ac_path_separator
2653 for ac_dir in $ac_dummy; do
2655 test -z "$ac_dir" && ac_dir=.
2656 $as_executable_p "$ac_dir/$ac_word" || continue
2657 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2658 echo "$as_me:2658: found $ac_dir/$ac_word" >&5
2665 if test -n "$CXX"; then
2666 echo "$as_me:2666: result: $CXX" >&5
2667 echo "${ECHO_T}$CXX" >&6
2669 echo "$as_me:2669: result: no" >&5
2670 echo "${ECHO_T}no" >&6
2673 test -n "$CXX" && break
2676 if test -z "$CXX"; then
2678 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2680 # Extract the first word of "$ac_prog", so it can be a program name with args.
2681 set dummy $ac_prog; ac_word=$2
2682 echo "$as_me:2682: checking for $ac_word" >&5
2683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2684 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2687 if test -n "$ac_ct_CXX"; then
2688 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2690 ac_save_IFS=$IFS; IFS=$ac_path_separator
2692 for ac_dir in $ac_dummy; do
2694 test -z "$ac_dir" && ac_dir=.
2695 $as_executable_p "$ac_dir/$ac_word" || continue
2696 ac_cv_prog_ac_ct_CXX="$ac_prog"
2697 echo "$as_me:2697: found $ac_dir/$ac_word" >&5
2703 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2704 if test -n "$ac_ct_CXX"; then
2705 echo "$as_me:2705: result: $ac_ct_CXX" >&5
2706 echo "${ECHO_T}$ac_ct_CXX" >&6
2708 echo "$as_me:2708: result: no" >&5
2709 echo "${ECHO_T}no" >&6
2712 test -n "$ac_ct_CXX" && break
2714 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2719 # Provide some information about the compiler.
2720 echo "$as_me:2720:" \
2721 "checking for C++ compiler version" >&5
2722 ac_compiler=`set X $ac_compile; echo $2`
2723 { (eval echo "$as_me:2723: \"$ac_compiler --version </dev/null >&5\"") >&5
2724 (eval $ac_compiler --version </dev/null >&5) 2>&5
2726 echo "$as_me:2726: \$? = $ac_status" >&5
2727 (exit $ac_status); }
2728 { (eval echo "$as_me:2728: \"$ac_compiler -v </dev/null >&5\"") >&5
2729 (eval $ac_compiler -v </dev/null >&5) 2>&5
2731 echo "$as_me:2731: \$? = $ac_status" >&5
2732 (exit $ac_status); }
2733 { (eval echo "$as_me:2733: \"$ac_compiler -V </dev/null >&5\"") >&5
2734 (eval $ac_compiler -V </dev/null >&5) 2>&5
2736 echo "$as_me:2736: \$? = $ac_status" >&5
2737 (exit $ac_status); }
2739 echo "$as_me:2739: checking whether we are using the GNU C++ compiler" >&5
2740 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2741 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2742 echo $ECHO_N "(cached) $ECHO_C" >&6
2744 cat >conftest.$ac_ext <<_ACEOF
2745 #line 2745 "configure"
2746 #include "confdefs.h"
2759 rm -f conftest.$ac_objext
2760 if { (eval echo "$as_me:2760: \"$ac_compile\"") >&5
2761 (eval $ac_compile) 2>&5
2763 echo "$as_me:2763: \$? = $ac_status" >&5
2764 (exit $ac_status); } &&
2765 { ac_try='test -s conftest.$ac_objext'
2766 { (eval echo "$as_me:2766: \"$ac_try\"") >&5
2769 echo "$as_me:2769: \$? = $ac_status" >&5
2770 (exit $ac_status); }; }; then
2773 echo "$as_me: failed program was:" >&5
2774 cat conftest.$ac_ext >&5
2777 rm -f conftest.$ac_objext conftest.$ac_ext
2778 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2781 echo "$as_me:2781: result: $ac_cv_cxx_compiler_gnu" >&5
2782 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2783 GXX=`test $ac_compiler_gnu = yes && echo yes`
2784 ac_test_CXXFLAGS=${CXXFLAGS+set}
2785 ac_save_CXXFLAGS=$CXXFLAGS
2787 echo "$as_me:2787: checking whether $CXX accepts -g" >&5
2788 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2789 if test "${ac_cv_prog_cxx_g+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"
2804 rm -f conftest.$ac_objext
2805 if { (eval echo "$as_me:2805: \"$ac_compile\"") >&5
2806 (eval $ac_compile) 2>&5
2808 echo "$as_me:2808: \$? = $ac_status" >&5
2809 (exit $ac_status); } &&
2810 { ac_try='test -s conftest.$ac_objext'
2811 { (eval echo "$as_me:2811: \"$ac_try\"") >&5
2814 echo "$as_me:2814: \$? = $ac_status" >&5
2815 (exit $ac_status); }; }; then
2816 ac_cv_prog_cxx_g=yes
2818 echo "$as_me: failed program was:" >&5
2819 cat conftest.$ac_ext >&5
2822 rm -f conftest.$ac_objext conftest.$ac_ext
2824 echo "$as_me:2824: result: $ac_cv_prog_cxx_g" >&5
2825 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2826 if test "$ac_test_CXXFLAGS" = set; then
2827 CXXFLAGS=$ac_save_CXXFLAGS
2828 elif test $ac_cv_prog_cxx_g = yes; then
2829 if test "$GXX" = yes; then
2835 if test "$GXX" = yes; then
2841 for ac_declaration in \
2843 '#include <stdlib.h>' \
2844 'extern "C" void std::exit (int) throw (); using std::exit;' \
2845 'extern "C" void std::exit (int); using std::exit;' \
2846 'extern "C" void exit (int) throw ();' \
2847 'extern "C" void exit (int);' \
2850 cat >conftest.$ac_ext <<_ACEOF
2851 #line 2851 "configure"
2852 #include "confdefs.h"
2863 rm -f conftest.$ac_objext
2864 if { (eval echo "$as_me:2864: \"$ac_compile\"") >&5
2865 (eval $ac_compile) 2>&5
2867 echo "$as_me:2867: \$? = $ac_status" >&5
2868 (exit $ac_status); } &&
2869 { ac_try='test -s conftest.$ac_objext'
2870 { (eval echo "$as_me:2870: \"$ac_try\"") >&5
2873 echo "$as_me:2873: \$? = $ac_status" >&5
2874 (exit $ac_status); }; }; then
2877 echo "$as_me: failed program was:" >&5
2878 cat conftest.$ac_ext >&5
2881 rm -f conftest.$ac_objext conftest.$ac_ext
2882 cat >conftest.$ac_ext <<_ACEOF
2883 #line 2883 "configure"
2884 #include "confdefs.h"
2894 rm -f conftest.$ac_objext
2895 if { (eval echo "$as_me:2895: \"$ac_compile\"") >&5
2896 (eval $ac_compile) 2>&5
2898 echo "$as_me:2898: \$? = $ac_status" >&5
2899 (exit $ac_status); } &&
2900 { ac_try='test -s conftest.$ac_objext'
2901 { (eval echo "$as_me:2901: \"$ac_try\"") >&5
2904 echo "$as_me:2904: \$? = $ac_status" >&5
2905 (exit $ac_status); }; }; then
2908 echo "$as_me: failed program was:" >&5
2909 cat conftest.$ac_ext >&5
2911 rm -f conftest.$ac_objext conftest.$ac_ext
2914 if test -n "$ac_declaration"; then
2915 echo '#ifdef __cplusplus' >>confdefs.h
2916 echo $ac_declaration >>confdefs.h
2917 echo '#endif' >>confdefs.h
2921 ac_cpp='$CPP $CPPFLAGS'
2922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2925 ac_main_return=return
2928 ac_cpp='$CXXCPP $CPPFLAGS'
2929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2932 ac_main_return=return
2934 if test "x$cf_with_cxx" != xno
2936 # Several of the C++ configurations do not work, particularly when
2937 # cross-compiling (20140913 -TD)
2938 echo "$as_me:2938: checking if $CXX works" >&5
2939 echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6
2941 save_CPPFLAGS="$CPPFLAGS"
2942 eval cf_includedir=${includedir}
2943 CPPFLAGS="$CPPFLAGS -I${cf_includedir}"
2945 cat >conftest.$ac_ext <<_ACEOF
2946 #line 2946 "configure"
2947 #include "confdefs.h"
2956 printf("Hello world!\n")
2962 rm -f conftest.$ac_objext
2963 if { (eval echo "$as_me:2963: \"$ac_compile\"") >&5
2964 (eval $ac_compile) 2>&5
2966 echo "$as_me:2966: \$? = $ac_status" >&5
2967 (exit $ac_status); } &&
2968 { ac_try='test -s conftest.$ac_objext'
2969 { (eval echo "$as_me:2969: \"$ac_try\"") >&5
2972 echo "$as_me:2972: \$? = $ac_status" >&5
2973 (exit $ac_status); }; }; then
2976 echo "$as_me: failed program was:" >&5
2977 cat conftest.$ac_ext >&5
2980 rm -f conftest.$ac_objext conftest.$ac_ext
2981 CPPFLAGS="$save_CPPFLAGS"
2983 echo "$as_me:2983: result: $cf_cxx_works" >&5
2984 echo "${ECHO_T}$cf_cxx_works" >&6
2985 if test "x$cf_cxx_works" = xno
2987 { echo "$as_me:2987: WARNING: Ignore $CXX, since it cannot compile hello-world." >&5
2988 echo "$as_me: WARNING: Ignore $CXX, since it cannot compile hello-world." >&2;}
2989 cf_with_cxx=no; CXX=""; GXX="";
2993 ac_cpp='$CPP $CPPFLAGS'
2994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2997 ac_main_return=return
2999 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
3000 if test "$CXX" = "g++" ; then
3001 # Extract the first word of "g++", so it can be a program name with args.
3002 set dummy g++; ac_word=$2
3003 echo "$as_me:3003: checking for $ac_word" >&5
3004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3005 if test "${ac_cv_path_CXX+set}" = set; then
3006 echo $ECHO_N "(cached) $ECHO_C" >&6
3010 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3013 ac_save_IFS=$IFS; IFS=$ac_path_separator
3015 for ac_dir in $ac_dummy; do
3017 test -z "$ac_dir" && ac_dir=.
3018 if $as_executable_p "$ac_dir/$ac_word"; then
3019 ac_cv_path_CXX="$ac_dir/$ac_word"
3020 echo "$as_me:3020: found $ac_dir/$ac_word" >&5
3030 if test -n "$CXX"; then
3031 echo "$as_me:3031: result: $CXX" >&5
3032 echo "${ECHO_T}$CXX" >&6
3034 echo "$as_me:3034: result: no" >&5
3035 echo "${ECHO_T}no" >&6
3041 { echo "$as_me:3041: WARNING: You don't have any C++ compiler, too bad" >&5
3042 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
3043 cf_with_cxx=no; CXX=""; GXX="";
3049 if test "$GXX" = yes; then
3050 echo "$as_me:3050: checking version of ${CXX:-g++}" >&5
3051 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
3052 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3053 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3054 echo "$as_me:3054: result: $GXX_VERSION" >&5
3055 echo "${ECHO_T}$GXX_VERSION" >&6
3058 case $GXX_VERSION in
3060 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3062 { echo "$as_me:3062: WARNING: templates do not work" >&5
3063 echo "$as_me: WARNING: templates do not work" >&2;}
3067 echo "$as_me:3067: checking if you want to build C++ binding and demo" >&5
3068 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3070 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3071 if test "${with_cxx_binding+set}" = set; then
3072 withval="$with_cxx_binding"
3073 cf_with_cxx_binding=$withval
3075 cf_with_cxx_binding=$cf_with_cxx
3077 echo "$as_me:3077: result: $cf_with_cxx_binding" >&5
3078 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3080 echo "$as_me:3080: checking if you want to build with Ada95" >&5
3081 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3082 echo "$as_me:3082: result: $cf_with_ada" >&5
3083 echo "${ECHO_T}$cf_with_ada" >&6
3085 echo "$as_me:3085: checking if you want to install terminal database" >&5
3086 echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6
3088 # Check whether --enable-db-install or --disable-db-install was given.
3089 if test "${enable_db_install+set}" = set; then
3090 enableval="$enable_db_install"
3091 cf_with_db_install=$enableval
3093 cf_with_db_install=yes
3095 echo "$as_me:3095: result: $cf_with_db_install" >&5
3096 echo "${ECHO_T}$cf_with_db_install" >&6
3098 echo "$as_me:3098: checking if you want to install manpages" >&5
3099 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3101 # Check whether --with-manpages or --without-manpages was given.
3102 if test "${with_manpages+set}" = set; then
3103 withval="$with_manpages"
3104 cf_with_manpages=$withval
3106 cf_with_manpages=yes
3108 echo "$as_me:3108: result: $cf_with_manpages" >&5
3109 echo "${ECHO_T}$cf_with_manpages" >&6
3111 echo "$as_me:3111: checking if you want to build programs such as tic" >&5
3112 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3114 # Check whether --with-progs or --without-progs was given.
3115 if test "${with_progs+set}" = set; then
3116 withval="$with_progs"
3117 cf_with_progs=$withval
3121 echo "$as_me:3121: result: $cf_with_progs" >&5
3122 echo "${ECHO_T}$cf_with_progs" >&6
3124 echo "$as_me:3124: checking if you want to build test-programs" >&5
3125 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3127 # Check whether --with-tests or --without-tests was given.
3128 if test "${with_tests+set}" = set; then
3129 withval="$with_tests"
3130 cf_with_tests=$withval
3134 echo "$as_me:3134: result: $cf_with_tests" >&5
3135 echo "${ECHO_T}$cf_with_tests" >&6
3137 echo "$as_me:3137: checking if you wish to install curses.h" >&5
3138 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3140 # Check whether --with-curses-h or --without-curses-h was given.
3141 if test "${with_curses_h+set}" = set; then
3142 withval="$with_curses_h"
3143 with_curses_h=$withval
3147 echo "$as_me:3147: result: $with_curses_h" >&5
3148 echo "${ECHO_T}$with_curses_h" >&6
3150 modules_to_build="ncurses"
3151 if test "X$cf_with_progs" != Xno ; then
3152 modules_to_build="$modules_to_build progs tack"
3154 modules_to_build="$modules_to_build panel menu form"
3156 test "$program_prefix" != NONE &&
3157 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3158 # Use a double $ so make ignores it.
3159 test "$program_suffix" != NONE &&
3160 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3161 # Double any \ or $. echo might interpret backslashes.
3162 # By default was `s,x,x', remove it if useless.
3163 cat <<\_ACEOF >conftest.sed
3164 s/[\\$]/&&/g;s/;s,x,x,$//
3166 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3169 for ac_prog in mawk gawk nawk awk
3171 # Extract the first word of "$ac_prog", so it can be a program name with args.
3172 set dummy $ac_prog; ac_word=$2
3173 echo "$as_me:3173: checking for $ac_word" >&5
3174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3175 if test "${ac_cv_prog_AWK+set}" = set; then
3176 echo $ECHO_N "(cached) $ECHO_C" >&6
3178 if test -n "$AWK"; then
3179 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3181 ac_save_IFS=$IFS; IFS=$ac_path_separator
3183 for ac_dir in $ac_dummy; do
3185 test -z "$ac_dir" && ac_dir=.
3186 $as_executable_p "$ac_dir/$ac_word" || continue
3187 ac_cv_prog_AWK="$ac_prog"
3188 echo "$as_me:3188: found $ac_dir/$ac_word" >&5
3195 if test -n "$AWK"; then
3196 echo "$as_me:3196: result: $AWK" >&5
3197 echo "${ECHO_T}$AWK" >&6
3199 echo "$as_me:3199: result: no" >&5
3200 echo "${ECHO_T}no" >&6
3203 test -n "$AWK" && break
3206 test -z "$AWK" && { { echo "$as_me:3206: error: No awk program found" >&5
3207 echo "$as_me: error: No awk program found" >&2;}
3208 { (exit 1); exit 1; }; }
3210 echo "$as_me:3210: checking for egrep" >&5
3211 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3212 if test "${ac_cv_prog_egrep+set}" = set; then
3213 echo $ECHO_N "(cached) $ECHO_C" >&6
3215 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3216 then ac_cv_prog_egrep='grep -E'
3217 else ac_cv_prog_egrep='egrep'
3220 echo "$as_me:3220: result: $ac_cv_prog_egrep" >&5
3221 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3222 EGREP=$ac_cv_prog_egrep
3224 test -z "$EGREP" && { { echo "$as_me:3224: error: No egrep program found" >&5
3225 echo "$as_me: error: No egrep program found" >&2;}
3226 { (exit 1); exit 1; }; }
3228 # Find a good install program. We prefer a C program (faster),
3229 # so one script is as good as another. But avoid the broken or
3230 # incompatible versions:
3231 # SysV /etc/install, /usr/sbin/install
3232 # SunOS /usr/etc/install
3233 # IRIX /sbin/install
3235 # AmigaOS /C/install, which installs bootblocks on floppy discs
3236 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3237 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3238 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3239 # ./install, which can be erroneously created by make from ./install.sh.
3240 echo "$as_me:3240: checking for a BSD compatible install" >&5
3241 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3242 if test -z "$INSTALL"; then
3243 if test "${ac_cv_path_install+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
3246 ac_save_IFS=$IFS; IFS=$ac_path_separator
3247 for ac_dir in $PATH; do
3249 # Account for people who put trailing slashes in PATH elements.
3251 / | ./ | .// | /cC/* \
3252 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3255 # OSF1 and SCO ODT 3.0 have their own names for install.
3256 # Don't use installbsd from OSF since it installs stuff as root
3258 for ac_prog in ginstall scoinst install; do
3259 if $as_executable_p "$ac_dir/$ac_prog"; then
3260 if test $ac_prog = install &&
3261 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3262 # AIX install. It has an incompatible calling convention.
3264 elif test $ac_prog = install &&
3265 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3266 # program-specific install script used by HP pwplus--don't use.
3269 ac_cv_path_install="$ac_dir/$ac_prog -c"
3279 if test "${ac_cv_path_install+set}" = set; then
3280 INSTALL=$ac_cv_path_install
3282 # As a last resort, use the slow shell script. We don't cache a
3283 # path for INSTALL within a source directory, because that will
3284 # break other packages using the cache if that directory is
3285 # removed, or if the path is relative.
3286 INSTALL=$ac_install_sh
3289 echo "$as_me:3289: result: $INSTALL" >&5
3290 echo "${ECHO_T}$INSTALL" >&6
3292 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3293 # It thinks the first close brace ends the variable substitution.
3294 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3296 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3298 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3304 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3305 test -z "$cf_dir" && cf_dir=.
3306 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3310 for ac_prog in tdlint lint alint splint lclint
3312 # Extract the first word of "$ac_prog", so it can be a program name with args.
3313 set dummy $ac_prog; ac_word=$2
3314 echo "$as_me:3314: checking for $ac_word" >&5
3315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3316 if test "${ac_cv_prog_LINT+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 if test -n "$LINT"; then
3320 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3322 ac_save_IFS=$IFS; IFS=$ac_path_separator
3324 for ac_dir in $ac_dummy; do
3326 test -z "$ac_dir" && ac_dir=.
3327 $as_executable_p "$ac_dir/$ac_word" || continue
3328 ac_cv_prog_LINT="$ac_prog"
3329 echo "$as_me:3329: found $ac_dir/$ac_word" >&5
3335 LINT=$ac_cv_prog_LINT
3336 if test -n "$LINT"; then
3337 echo "$as_me:3337: result: $LINT" >&5
3338 echo "${ECHO_T}$LINT" >&6
3340 echo "$as_me:3340: result: no" >&5
3341 echo "${ECHO_T}no" >&6
3344 test -n "$LINT" && break
3347 echo "$as_me:3347: checking whether ln -s works" >&5
3348 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3350 if test "$LN_S" = "ln -s"; then
3351 echo "$as_me:3351: result: yes" >&5
3352 echo "${ECHO_T}yes" >&6
3354 echo "$as_me:3354: result: no, using $LN_S" >&5
3355 echo "${ECHO_T}no, using $LN_S" >&6
3358 echo "$as_me:3358: checking if $LN_S -f options work" >&5
3359 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3361 rm -f conf$$.src conf$$dst
3363 echo first >conf$$.src
3364 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3369 rm -f conf$$.dst conf$$src
3370 echo "$as_me:3370: result: $cf_prog_ln_sf" >&5
3371 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3373 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3375 echo "$as_me:3375: checking for long file names" >&5
3376 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3377 if test "${ac_cv_sys_long_file_names+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3380 ac_cv_sys_long_file_names=yes
3381 # Test for long file names in all the places we know might matter:
3382 # . the current directory, where building will happen
3383 # $prefix/lib where we will be installing things
3384 # $exec_prefix/lib likewise
3385 # eval it to expand exec_prefix.
3386 # $TMPDIR if set, where it might want to write temporary files
3387 # if $TMPDIR is not set:
3388 # /tmp where it might want to write temporary files
3391 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3394 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3396 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3397 test -d $ac_dir || continue
3398 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3399 ac_xdir=$ac_dir/cf$$
3400 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3401 ac_tf1=$ac_xdir/conftest9012345
3402 ac_tf2=$ac_xdir/conftest9012346
3403 (echo 1 >$ac_tf1) 2>/dev/null
3404 (echo 2 >$ac_tf2) 2>/dev/null
3405 ac_val=`cat $ac_tf1 2>/dev/null`
3406 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3407 ac_cv_sys_long_file_names=no
3408 rm -rf $ac_xdir 2>/dev/null
3411 rm -rf $ac_xdir 2>/dev/null
3414 echo "$as_me:3414: result: $ac_cv_sys_long_file_names" >&5
3415 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3416 if test $ac_cv_sys_long_file_names = yes; then
3418 cat >>confdefs.h <<\EOF
3419 #define HAVE_LONG_FILE_NAMES 1
3424 # if we find pkg-config, check if we should install the ".pc" files.
3426 echo "$as_me:3426: checking if you want to use pkg-config" >&5
3427 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3429 # Check whether --with-pkg-config or --without-pkg-config was given.
3430 if test "${with_pkg_config+set}" = set; then
3431 withval="$with_pkg_config"
3432 cf_pkg_config=$withval
3436 echo "$as_me:3436: result: $cf_pkg_config" >&5
3437 echo "${ECHO_T}$cf_pkg_config" >&6
3439 case $cf_pkg_config in
3445 if test -n "$ac_tool_prefix"; then
3446 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3447 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3448 echo "$as_me:3448: checking for $ac_word" >&5
3449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3450 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3451 echo $ECHO_N "(cached) $ECHO_C" >&6
3455 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3458 ac_save_IFS=$IFS; IFS=$ac_path_separator
3460 for ac_dir in $ac_dummy; do
3462 test -z "$ac_dir" && ac_dir=.
3463 if $as_executable_p "$ac_dir/$ac_word"; then
3464 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3465 echo "$as_me:3465: found $ac_dir/$ac_word" >&5
3473 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3475 if test -n "$PKG_CONFIG"; then
3476 echo "$as_me:3476: result: $PKG_CONFIG" >&5
3477 echo "${ECHO_T}$PKG_CONFIG" >&6
3479 echo "$as_me:3479: result: no" >&5
3480 echo "${ECHO_T}no" >&6
3484 if test -z "$ac_cv_path_PKG_CONFIG"; then
3485 ac_pt_PKG_CONFIG=$PKG_CONFIG
3486 # Extract the first word of "pkg-config", so it can be a program name with args.
3487 set dummy pkg-config; ac_word=$2
3488 echo "$as_me:3488: checking for $ac_word" >&5
3489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3490 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3491 echo $ECHO_N "(cached) $ECHO_C" >&6
3493 case $ac_pt_PKG_CONFIG in
3495 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3498 ac_save_IFS=$IFS; IFS=$ac_path_separator
3500 for ac_dir in $ac_dummy; do
3502 test -z "$ac_dir" && ac_dir=.
3503 if $as_executable_p "$ac_dir/$ac_word"; then
3504 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3505 echo "$as_me:3505: found $ac_dir/$ac_word" >&5
3510 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3514 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3516 if test -n "$ac_pt_PKG_CONFIG"; then
3517 echo "$as_me:3517: result: $ac_pt_PKG_CONFIG" >&5
3518 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3520 echo "$as_me:3520: result: no" >&5
3521 echo "${ECHO_T}no" >&6
3524 PKG_CONFIG=$ac_pt_PKG_CONFIG
3526 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3535 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3536 if test "$PKG_CONFIG" != none ; then
3538 if test "x$prefix" != xNONE; then
3539 cf_path_syntax="$prefix"
3541 cf_path_syntax="$ac_default_prefix"
3544 case ".$PKG_CONFIG" in
3549 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3551 (.\${*prefix}*|.\${*dir}*)
3552 eval PKG_CONFIG="$PKG_CONFIG"
3553 case ".$PKG_CONFIG" in
3555 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3560 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3563 { { echo "$as_me:3563: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3564 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3565 { (exit 1); exit 1; }; }
3569 elif test "x$cf_pkg_config" != xno ; then
3570 { echo "$as_me:3570: WARNING: pkg-config is not installed" >&5
3571 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
3574 if test "x$PKG_CONFIG" = xnone ; then
3575 PKG_CONFIG_LIBDIR=no
3577 echo "$as_me:3577: checking for $PKG_CONFIG library directory" >&5
3578 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3580 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3581 if test "${with_pkg_config_libdir+set}" = set; then
3582 withval="$with_pkg_config_libdir"
3583 PKG_CONFIG_LIBDIR=$withval
3585 PKG_CONFIG_LIBDIR=yes
3589 case x$PKG_CONFIG_LIBDIR in
3593 # Look for the library directory using the same prefix as the executable
3594 if test "x$PKG_CONFIG" = xnone
3598 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3601 # If you don't like using the default architecture, you have to specify the
3602 # intended library directory and corresponding compiler/linker options.
3604 # This case allows for Debian's 2014-flavor of multiarch, along with the
3605 # most common variations before that point. Some other variants spell the
3606 # directory differently, e.g., "pkg-config", and put it in unusual places.
3607 # pkg-config has always been poorly standardized, which is ironic...
3608 case x`(arch) 2>/dev/null` in
3611 $cf_path/lib/*64-linux-gnu \
3619 $cf_path/lib/*-linux-gnu \
3627 test -n "$verbose" && echo " list..." 1>&6
3629 echo "${as_me:-configure}:3629: testing list... ..." 1>&5
3631 for cf_config in $cf_search_path
3633 test -n "$verbose" && echo " checking $cf_config/pkgconfig" 1>&6
3635 echo "${as_me:-configure}:3635: testing checking $cf_config/pkgconfig ..." 1>&5
3637 if test -d $cf_config/pkgconfig
3639 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3640 echo "$as_me:3640: checking done" >&5
3641 echo $ECHO_N "checking done... $ECHO_C" >&6
3650 if test "x$PKG_CONFIG" != xnone ; then
3651 echo "$as_me:3651: result: $PKG_CONFIG_LIBDIR" >&5
3652 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3655 if test "x$PKG_CONFIG" != xnone
3657 echo "$as_me:3657: checking if we should install .pc files for $PKG_CONFIG" >&5
3658 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3660 echo "$as_me:3660: checking if we should install .pc files" >&5
3661 echo $ECHO_N "checking if we should install .pc files... $ECHO_C" >&6
3664 # Check whether --enable-pc-files or --disable-pc-files was given.
3665 if test "${enable_pc_files+set}" = set; then
3666 enableval="$enable_pc_files"
3667 enable_pc_files=$enableval
3671 echo "$as_me:3671: result: $enable_pc_files" >&5
3672 echo "${ECHO_T}$enable_pc_files" >&6
3674 if test "x$enable_pc_files" != xno
3676 case "x$PKG_CONFIG_LIBDIR" in
3678 { echo "$as_me:3678: WARNING: no PKG_CONFIG_LIBDIR was found" >&5
3679 echo "$as_me: WARNING: no PKG_CONFIG_LIBDIR was found" >&2;}
3684 if test "x$prefix" != xNONE; then
3685 cf_path_syntax="$prefix"
3687 cf_path_syntax="$ac_default_prefix"
3690 case ".$PKG_CONFIG_LIBDIR" in
3695 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3697 (.\${*prefix}*|.\${*dir}*)
3698 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
3699 case ".$PKG_CONFIG_LIBDIR" in
3701 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3706 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3709 { { echo "$as_me:3709: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
3710 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
3711 { (exit 1); exit 1; }; }
3722 if test -z "$MAKE_PC_FILES"
3724 echo "$as_me:3724: checking for suffix to add to pc-files" >&5
3725 echo $ECHO_N "checking for suffix to add to pc-files... $ECHO_C" >&6
3727 # Check whether --with-pc-suffix or --without-pc-suffix was given.
3728 if test "${with_pc_suffix+set}" = set; then
3729 withval="$with_pc_suffix"
3734 (*) PC_MODULE_SUFFIX="$withval"
3738 test -z "$PC_MODULE_SUFFIX" && PC_MODULE_SUFFIX=none
3739 echo "$as_me:3739: result: $PC_MODULE_SUFFIX" >&5
3740 echo "${ECHO_T}$PC_MODULE_SUFFIX" >&6
3741 test "$PC_MODULE_SUFFIX" = none && PC_MODULE_SUFFIX=
3745 echo "$as_me:3745: checking if we should assume mixed-case filenames" >&5
3746 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3748 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3749 if test "${enable_mixed_case+set}" = set; then
3750 enableval="$enable_mixed_case"
3751 enable_mixedcase=$enableval
3753 enable_mixedcase=auto
3755 echo "$as_me:3755: result: $enable_mixedcase" >&5
3756 echo "${ECHO_T}$enable_mixedcase" >&6
3757 if test "$enable_mixedcase" = "auto" ; then
3759 echo "$as_me:3759: checking if filesystem supports mixed-case filenames" >&5
3760 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3761 if test "${cf_cv_mixedcase+set}" = set; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
3765 if test "$cross_compiling" = yes ; then
3766 case $target_alias in
3767 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
3775 rm -f conftest CONFTEST
3777 if test -f CONFTEST ; then
3782 rm -f conftest CONFTEST
3786 echo "$as_me:3786: result: $cf_cv_mixedcase" >&5
3787 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3788 test "$cf_cv_mixedcase" = yes &&
3789 cat >>confdefs.h <<\EOF
3790 #define MIXEDCASE_FILENAMES 1
3794 cf_cv_mixedcase=$enable_mixedcase
3795 if test "x$enable_mixedcase" = "xyes" ; then
3797 cat >>confdefs.h <<\EOF
3798 #define MIXEDCASE_FILENAMES 1
3804 # do this after mixed-case option (tags/TAGS is not as important as tic).
3805 echo "$as_me:3805: checking whether ${MAKE-make} sets \${MAKE}" >&5
3806 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3807 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3808 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3811 cat >conftest.make <<\EOF
3813 @echo 'ac_maketemp="${MAKE}"'
3815 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3816 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3817 if test -n "$ac_maketemp"; then
3818 eval ac_cv_prog_make_${ac_make}_set=yes
3820 eval ac_cv_prog_make_${ac_make}_set=no
3824 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3825 echo "$as_me:3825: result: yes" >&5
3826 echo "${ECHO_T}yes" >&6
3829 echo "$as_me:3829: result: no" >&5
3830 echo "${ECHO_T}no" >&6
3831 SET_MAKE="MAKE=${MAKE-make}"
3834 for ac_prog in exctags ctags
3836 # Extract the first word of "$ac_prog", so it can be a program name with args.
3837 set dummy $ac_prog; ac_word=$2
3838 echo "$as_me:3838: checking for $ac_word" >&5
3839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3840 if test "${ac_cv_prog_CTAGS+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3843 if test -n "$CTAGS"; then
3844 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3846 ac_save_IFS=$IFS; IFS=$ac_path_separator
3848 for ac_dir in $ac_dummy; do
3850 test -z "$ac_dir" && ac_dir=.
3851 $as_executable_p "$ac_dir/$ac_word" || continue
3852 ac_cv_prog_CTAGS="$ac_prog"
3853 echo "$as_me:3853: found $ac_dir/$ac_word" >&5
3859 CTAGS=$ac_cv_prog_CTAGS
3860 if test -n "$CTAGS"; then
3861 echo "$as_me:3861: result: $CTAGS" >&5
3862 echo "${ECHO_T}$CTAGS" >&6
3864 echo "$as_me:3864: result: no" >&5
3865 echo "${ECHO_T}no" >&6
3868 test -n "$CTAGS" && break
3871 for ac_prog in exetags etags
3873 # Extract the first word of "$ac_prog", so it can be a program name with args.
3874 set dummy $ac_prog; ac_word=$2
3875 echo "$as_me:3875: checking for $ac_word" >&5
3876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3877 if test "${ac_cv_prog_ETAGS+set}" = set; then
3878 echo $ECHO_N "(cached) $ECHO_C" >&6
3880 if test -n "$ETAGS"; then
3881 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3883 ac_save_IFS=$IFS; IFS=$ac_path_separator
3885 for ac_dir in $ac_dummy; do
3887 test -z "$ac_dir" && ac_dir=.
3888 $as_executable_p "$ac_dir/$ac_word" || continue
3889 ac_cv_prog_ETAGS="$ac_prog"
3890 echo "$as_me:3890: found $ac_dir/$ac_word" >&5
3896 ETAGS=$ac_cv_prog_ETAGS
3897 if test -n "$ETAGS"; then
3898 echo "$as_me:3898: result: $ETAGS" >&5
3899 echo "${ECHO_T}$ETAGS" >&6
3901 echo "$as_me:3901: result: no" >&5
3902 echo "${ECHO_T}no" >&6
3905 test -n "$ETAGS" && break
3908 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3909 set dummy ${CTAGS:-ctags}; ac_word=$2
3910 echo "$as_me:3910: checking for $ac_word" >&5
3911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3912 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
3915 if test -n "$MAKE_LOWER_TAGS"; then
3916 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3918 ac_save_IFS=$IFS; IFS=$ac_path_separator
3920 for ac_dir in $ac_dummy; do
3922 test -z "$ac_dir" && ac_dir=.
3923 $as_executable_p "$ac_dir/$ac_word" || continue
3924 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3925 echo "$as_me:3925: found $ac_dir/$ac_word" >&5
3929 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3932 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3933 if test -n "$MAKE_LOWER_TAGS"; then
3934 echo "$as_me:3934: result: $MAKE_LOWER_TAGS" >&5
3935 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3937 echo "$as_me:3937: result: no" >&5
3938 echo "${ECHO_T}no" >&6
3941 if test "$cf_cv_mixedcase" = yes ; then
3942 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3943 set dummy ${ETAGS:-etags}; ac_word=$2
3944 echo "$as_me:3944: checking for $ac_word" >&5
3945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3946 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3949 if test -n "$MAKE_UPPER_TAGS"; then
3950 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3952 ac_save_IFS=$IFS; IFS=$ac_path_separator
3954 for ac_dir in $ac_dummy; do
3956 test -z "$ac_dir" && ac_dir=.
3957 $as_executable_p "$ac_dir/$ac_word" || continue
3958 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3959 echo "$as_me:3959: found $ac_dir/$ac_word" >&5
3963 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3966 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3967 if test -n "$MAKE_UPPER_TAGS"; then
3968 echo "$as_me:3968: result: $MAKE_UPPER_TAGS" >&5
3969 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3971 echo "$as_me:3971: result: no" >&5
3972 echo "${ECHO_T}no" >&6
3979 if test "$MAKE_UPPER_TAGS" = yes ; then
3985 if test "$MAKE_LOWER_TAGS" = yes ; then
3991 echo "$as_me:3991: checking for makeflags variable" >&5
3992 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3993 if test "${cf_cv_makeflags+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
4000 cat >cf_makeflags.tmp <<CF_EOF
4003 @ echo '.$cf_option'
4005 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
4006 case "$cf_result" in
4008 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
4009 case "$cf_result" in
4010 (.*CC=*) cf_cv_makeflags=
4012 (*) cf_cv_makeflags=$cf_option
4018 (*) echo "given option \"$cf_option\", no match \"$cf_result\""
4022 rm -f cf_makeflags.tmp
4025 echo "$as_me:4025: result: $cf_cv_makeflags" >&5
4026 echo "${ECHO_T}$cf_cv_makeflags" >&6
4028 if test -n "$ac_tool_prefix"; then
4029 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4030 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4031 echo "$as_me:4031: checking for $ac_word" >&5
4032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4033 if test "${ac_cv_prog_RANLIB+set}" = set; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
4036 if test -n "$RANLIB"; then
4037 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4039 ac_save_IFS=$IFS; IFS=$ac_path_separator
4041 for ac_dir in $ac_dummy; do
4043 test -z "$ac_dir" && ac_dir=.
4044 $as_executable_p "$ac_dir/$ac_word" || continue
4045 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4046 echo "$as_me:4046: found $ac_dir/$ac_word" >&5
4052 RANLIB=$ac_cv_prog_RANLIB
4053 if test -n "$RANLIB"; then
4054 echo "$as_me:4054: result: $RANLIB" >&5
4055 echo "${ECHO_T}$RANLIB" >&6
4057 echo "$as_me:4057: result: no" >&5
4058 echo "${ECHO_T}no" >&6
4062 if test -z "$ac_cv_prog_RANLIB"; then
4063 ac_ct_RANLIB=$RANLIB
4064 # Extract the first word of "ranlib", so it can be a program name with args.
4065 set dummy ranlib; ac_word=$2
4066 echo "$as_me:4066: checking for $ac_word" >&5
4067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4068 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4071 if test -n "$ac_ct_RANLIB"; then
4072 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4074 ac_save_IFS=$IFS; IFS=$ac_path_separator
4076 for ac_dir in $ac_dummy; do
4078 test -z "$ac_dir" && ac_dir=.
4079 $as_executable_p "$ac_dir/$ac_word" || continue
4080 ac_cv_prog_ac_ct_RANLIB="ranlib"
4081 echo "$as_me:4081: found $ac_dir/$ac_word" >&5
4085 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4088 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4089 if test -n "$ac_ct_RANLIB"; then
4090 echo "$as_me:4090: result: $ac_ct_RANLIB" >&5
4091 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4093 echo "$as_me:4093: result: no" >&5
4094 echo "${ECHO_T}no" >&6
4097 RANLIB=$ac_ct_RANLIB
4099 RANLIB="$ac_cv_prog_RANLIB"
4102 if test -n "$ac_tool_prefix"; then
4103 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4104 set dummy ${ac_tool_prefix}ld; ac_word=$2
4105 echo "$as_me:4105: checking for $ac_word" >&5
4106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4107 if test "${ac_cv_prog_LD+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4110 if test -n "$LD"; then
4111 ac_cv_prog_LD="$LD" # Let the user override the test.
4113 ac_save_IFS=$IFS; IFS=$ac_path_separator
4115 for ac_dir in $ac_dummy; do
4117 test -z "$ac_dir" && ac_dir=.
4118 $as_executable_p "$ac_dir/$ac_word" || continue
4119 ac_cv_prog_LD="${ac_tool_prefix}ld"
4120 echo "$as_me:4120: found $ac_dir/$ac_word" >&5
4127 if test -n "$LD"; then
4128 echo "$as_me:4128: result: $LD" >&5
4129 echo "${ECHO_T}$LD" >&6
4131 echo "$as_me:4131: result: no" >&5
4132 echo "${ECHO_T}no" >&6
4136 if test -z "$ac_cv_prog_LD"; then
4138 # Extract the first word of "ld", so it can be a program name with args.
4139 set dummy ld; ac_word=$2
4140 echo "$as_me:4140: checking for $ac_word" >&5
4141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4142 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4145 if test -n "$ac_ct_LD"; then
4146 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4148 ac_save_IFS=$IFS; IFS=$ac_path_separator
4150 for ac_dir in $ac_dummy; do
4152 test -z "$ac_dir" && ac_dir=.
4153 $as_executable_p "$ac_dir/$ac_word" || continue
4154 ac_cv_prog_ac_ct_LD="ld"
4155 echo "$as_me:4155: found $ac_dir/$ac_word" >&5
4159 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4162 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4163 if test -n "$ac_ct_LD"; then
4164 echo "$as_me:4164: result: $ac_ct_LD" >&5
4165 echo "${ECHO_T}$ac_ct_LD" >&6
4167 echo "$as_me:4167: result: no" >&5
4168 echo "${ECHO_T}no" >&6
4176 if test -n "$ac_tool_prefix"; then
4177 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4178 set dummy ${ac_tool_prefix}ar; ac_word=$2
4179 echo "$as_me:4179: checking for $ac_word" >&5
4180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4181 if test "${ac_cv_prog_AR+set}" = set; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4184 if test -n "$AR"; then
4185 ac_cv_prog_AR="$AR" # Let the user override the test.
4187 ac_save_IFS=$IFS; IFS=$ac_path_separator
4189 for ac_dir in $ac_dummy; do
4191 test -z "$ac_dir" && ac_dir=.
4192 $as_executable_p "$ac_dir/$ac_word" || continue
4193 ac_cv_prog_AR="${ac_tool_prefix}ar"
4194 echo "$as_me:4194: found $ac_dir/$ac_word" >&5
4201 if test -n "$AR"; then
4202 echo "$as_me:4202: result: $AR" >&5
4203 echo "${ECHO_T}$AR" >&6
4205 echo "$as_me:4205: result: no" >&5
4206 echo "${ECHO_T}no" >&6
4210 if test -z "$ac_cv_prog_AR"; then
4212 # Extract the first word of "ar", so it can be a program name with args.
4213 set dummy ar; ac_word=$2
4214 echo "$as_me:4214: checking for $ac_word" >&5
4215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4216 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4219 if test -n "$ac_ct_AR"; then
4220 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4222 ac_save_IFS=$IFS; IFS=$ac_path_separator
4224 for ac_dir in $ac_dummy; do
4226 test -z "$ac_dir" && ac_dir=.
4227 $as_executable_p "$ac_dir/$ac_word" || continue
4228 ac_cv_prog_ac_ct_AR="ar"
4229 echo "$as_me:4229: found $ac_dir/$ac_word" >&5
4233 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4236 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4237 if test -n "$ac_ct_AR"; then
4238 echo "$as_me:4238: result: $ac_ct_AR" >&5
4239 echo "${ECHO_T}$ac_ct_AR" >&6
4241 echo "$as_me:4241: result: no" >&5
4242 echo "${ECHO_T}no" >&6
4250 if test -n "$ac_tool_prefix"; then
4251 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4252 set dummy ${ac_tool_prefix}nm; ac_word=$2
4253 echo "$as_me:4253: checking for $ac_word" >&5
4254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4255 if test "${ac_cv_prog_NM+set}" = set; then
4256 echo $ECHO_N "(cached) $ECHO_C" >&6
4258 if test -n "$NM"; then
4259 ac_cv_prog_NM="$NM" # Let the user override the test.
4261 ac_save_IFS=$IFS; IFS=$ac_path_separator
4263 for ac_dir in $ac_dummy; do
4265 test -z "$ac_dir" && ac_dir=.
4266 $as_executable_p "$ac_dir/$ac_word" || continue
4267 ac_cv_prog_NM="${ac_tool_prefix}nm"
4268 echo "$as_me:4268: found $ac_dir/$ac_word" >&5
4275 if test -n "$NM"; then
4276 echo "$as_me:4276: result: $NM" >&5
4277 echo "${ECHO_T}$NM" >&6
4279 echo "$as_me:4279: result: no" >&5
4280 echo "${ECHO_T}no" >&6
4284 if test -z "$ac_cv_prog_NM"; then
4286 # Extract the first word of "nm", so it can be a program name with args.
4287 set dummy nm; ac_word=$2
4288 echo "$as_me:4288: checking for $ac_word" >&5
4289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4290 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4293 if test -n "$ac_ct_NM"; then
4294 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4296 ac_save_IFS=$IFS; IFS=$ac_path_separator
4298 for ac_dir in $ac_dummy; do
4300 test -z "$ac_dir" && ac_dir=.
4301 $as_executable_p "$ac_dir/$ac_word" || continue
4302 ac_cv_prog_ac_ct_NM="nm"
4303 echo "$as_me:4303: found $ac_dir/$ac_word" >&5
4307 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
4310 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4311 if test -n "$ac_ct_NM"; then
4312 echo "$as_me:4312: result: $ac_ct_NM" >&5
4313 echo "${ECHO_T}$ac_ct_NM" >&6
4315 echo "$as_me:4315: result: no" >&5
4316 echo "${ECHO_T}no" >&6
4324 if test -n "$ac_tool_prefix"; then
4325 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4326 set dummy ${ac_tool_prefix}ar; ac_word=$2
4327 echo "$as_me:4327: checking for $ac_word" >&5
4328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4329 if test "${ac_cv_prog_AR+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4332 if test -n "$AR"; then
4333 ac_cv_prog_AR="$AR" # Let the user override the test.
4335 ac_save_IFS=$IFS; IFS=$ac_path_separator
4337 for ac_dir in $ac_dummy; do
4339 test -z "$ac_dir" && ac_dir=.
4340 $as_executable_p "$ac_dir/$ac_word" || continue
4341 ac_cv_prog_AR="${ac_tool_prefix}ar"
4342 echo "$as_me:4342: found $ac_dir/$ac_word" >&5
4349 if test -n "$AR"; then
4350 echo "$as_me:4350: result: $AR" >&5
4351 echo "${ECHO_T}$AR" >&6
4353 echo "$as_me:4353: result: no" >&5
4354 echo "${ECHO_T}no" >&6
4358 if test -z "$ac_cv_prog_AR"; then
4360 # Extract the first word of "ar", so it can be a program name with args.
4361 set dummy ar; ac_word=$2
4362 echo "$as_me:4362: checking for $ac_word" >&5
4363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4364 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4367 if test -n "$ac_ct_AR"; then
4368 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4370 ac_save_IFS=$IFS; IFS=$ac_path_separator
4372 for ac_dir in $ac_dummy; do
4374 test -z "$ac_dir" && ac_dir=.
4375 $as_executable_p "$ac_dir/$ac_word" || continue
4376 ac_cv_prog_ac_ct_AR="ar"
4377 echo "$as_me:4377: found $ac_dir/$ac_word" >&5
4381 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4384 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4385 if test -n "$ac_ct_AR"; then
4386 echo "$as_me:4386: result: $ac_ct_AR" >&5
4387 echo "${ECHO_T}$ac_ct_AR" >&6
4389 echo "$as_me:4389: result: no" >&5
4390 echo "${ECHO_T}no" >&6
4398 echo "$as_me:4398: checking for options to update archives" >&5
4399 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4400 if test "${cf_cv_ar_flags+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4404 cf_cv_ar_flags=unknown
4405 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
4408 # check if $ARFLAGS already contains this choice
4409 if test "x$ARFLAGS" != "x" ; then
4410 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4411 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4417 rm -f conftest.$ac_cv_objext
4420 cat >conftest.$ac_ext <<EOF
4421 #line 4421 "configure"
4422 int testdata[3] = { 123, 456, 789 };
4424 if { (eval echo "$as_me:4424: \"$ac_compile\"") >&5
4425 (eval $ac_compile) 2>&5
4427 echo "$as_me:4427: \$? = $ac_status" >&5
4428 (exit $ac_status); } ; then
4429 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4430 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4431 if test -f conftest.a ; then
4432 cf_cv_ar_flags=$cf_ar_flags
4436 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4438 echo "${as_me:-configure}:4438: testing cannot compile test-program ..." 1>&5
4443 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4446 echo "$as_me:4446: result: $cf_cv_ar_flags" >&5
4447 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4449 if test -n "$ARFLAGS" ; then
4450 if test -n "$cf_cv_ar_flags" ; then
4451 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4454 ARFLAGS=$cf_cv_ar_flags
4457 echo "$as_me:4457: checking if you have specified an install-prefix" >&5
4458 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4460 # Check whether --with-install-prefix or --without-install-prefix was given.
4461 if test "${with_install_prefix+set}" = set; then
4462 withval="$with_install_prefix"
4466 (*) DESTDIR="$withval"
4470 echo "$as_me:4470: result: $DESTDIR" >&5
4471 echo "${ECHO_T}$DESTDIR" >&6
4473 ###############################################################################
4475 # If we're cross-compiling, allow the user to override the tools and their
4476 # options. The configure script is oriented toward identifying the host
4477 # compiler, etc., but we need a build compiler to generate parts of the source.
4479 if test "$cross_compiling" = yes ; then
4481 # defaults that we might want to override
4482 : ${BUILD_CFLAGS:=''}
4483 : ${BUILD_CPPFLAGS:=''}
4484 : ${BUILD_LDFLAGS:=''}
4486 : ${BUILD_EXEEXT:='$x'}
4487 : ${BUILD_OBJEXT:='o'}
4489 # Check whether --with-build-cc or --without-build-cc was given.
4490 if test "${with_build_cc+set}" = set; then
4491 withval="$with_build_cc"
4494 for ac_prog in gcc cc cl
4496 # Extract the first word of "$ac_prog", so it can be a program name with args.
4497 set dummy $ac_prog; ac_word=$2
4498 echo "$as_me:4498: checking for $ac_word" >&5
4499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4500 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4503 if test -n "$BUILD_CC"; then
4504 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4506 ac_save_IFS=$IFS; IFS=$ac_path_separator
4508 for ac_dir in $ac_dummy; do
4510 test -z "$ac_dir" && ac_dir=.
4511 $as_executable_p "$ac_dir/$ac_word" || continue
4512 ac_cv_prog_BUILD_CC="$ac_prog"
4513 echo "$as_me:4513: found $ac_dir/$ac_word" >&5
4519 BUILD_CC=$ac_cv_prog_BUILD_CC
4520 if test -n "$BUILD_CC"; then
4521 echo "$as_me:4521: result: $BUILD_CC" >&5
4522 echo "${ECHO_T}$BUILD_CC" >&6
4524 echo "$as_me:4524: result: no" >&5
4525 echo "${ECHO_T}no" >&6
4528 test -n "$BUILD_CC" && break
4532 echo "$as_me:4532: checking for native build C compiler" >&5
4533 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4534 echo "$as_me:4534: result: $BUILD_CC" >&5
4535 echo "${ECHO_T}$BUILD_CC" >&6
4537 echo "$as_me:4537: checking for native build C preprocessor" >&5
4538 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4540 # Check whether --with-build-cpp or --without-build-cpp was given.
4541 if test "${with_build_cpp+set}" = set; then
4542 withval="$with_build_cpp"
4543 BUILD_CPP="$withval"
4545 BUILD_CPP='${BUILD_CC} -E'
4547 echo "$as_me:4547: result: $BUILD_CPP" >&5
4548 echo "${ECHO_T}$BUILD_CPP" >&6
4550 echo "$as_me:4550: checking for native build C flags" >&5
4551 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4553 # Check whether --with-build-cflags or --without-build-cflags was given.
4554 if test "${with_build_cflags+set}" = set; then
4555 withval="$with_build_cflags"
4556 BUILD_CFLAGS="$withval"
4558 echo "$as_me:4558: result: $BUILD_CFLAGS" >&5
4559 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4561 echo "$as_me:4561: checking for native build C preprocessor-flags" >&5
4562 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4564 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4565 if test "${with_build_cppflags+set}" = set; then
4566 withval="$with_build_cppflags"
4567 BUILD_CPPFLAGS="$withval"
4569 echo "$as_me:4569: result: $BUILD_CPPFLAGS" >&5
4570 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4572 echo "$as_me:4572: checking for native build linker-flags" >&5
4573 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4575 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4576 if test "${with_build_ldflags+set}" = set; then
4577 withval="$with_build_ldflags"
4578 BUILD_LDFLAGS="$withval"
4580 echo "$as_me:4580: result: $BUILD_LDFLAGS" >&5
4581 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4583 echo "$as_me:4583: checking for native build linker-libraries" >&5
4584 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4586 # Check whether --with-build-libs or --without-build-libs was given.
4587 if test "${with_build_libs+set}" = set; then
4588 withval="$with_build_libs"
4589 BUILD_LIBS="$withval"
4591 echo "$as_me:4591: result: $BUILD_LIBS" >&5
4592 echo "${ECHO_T}$BUILD_LIBS" >&6
4594 # this assumes we're on Unix.
4598 : ${BUILD_CC:='${CC}'}
4600 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4601 { { echo "$as_me:4601: error: Cross-build requires two compilers.
4602 Use --with-build-cc to specify the native compiler." >&5
4603 echo "$as_me: error: Cross-build requires two compilers.
4604 Use --with-build-cc to specify the native compiler." >&2;}
4605 { (exit 1); exit 1; }; }
4609 : ${BUILD_CC:='${CC}'}
4610 : ${BUILD_CPP:='${CPP}'}
4611 : ${BUILD_CFLAGS:='${CFLAGS}'}
4612 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4613 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4614 : ${BUILD_LIBS:='${LIBS}'}
4615 : ${BUILD_EXEEXT:='$x'}
4616 : ${BUILD_OBJEXT:='o'}
4619 ###############################################################################
4621 ### Options to allow the user to specify the set of libraries which are used.
4622 ### Use "--without-normal --with-shared" to allow the default model to be
4623 ### shared, for example.
4626 echo "$as_me:4626: checking if libtool -version-number should be used" >&5
4627 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
4629 # Check whether --enable-libtool-version or --disable-libtool-version was given.
4630 if test "${enable_libtool_version+set}" = set; then
4631 enableval="$enable_libtool_version"
4632 test "$enableval" != no && enableval=yes
4633 if test "$enableval" != "yes" ; then
4634 cf_libtool_version=no
4636 cf_libtool_version=yes
4640 cf_libtool_version=yes
4643 echo "$as_me:4643: result: $cf_libtool_version" >&5
4644 echo "${ECHO_T}$cf_libtool_version" >&6
4646 if test "$cf_libtool_version" = yes ; then
4647 LIBTOOL_VERSION="-version-number"
4649 LIBTOOL_VERSION="-version-info"
4652 { echo "$as_me:4652: WARNING: VERSION was not set" >&5
4653 echo "$as_me: WARNING: VERSION was not set" >&2;}
4656 ABI_VERSION="$VERSION"
4657 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
4659 echo "${as_me:-configure}:4659: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
4663 ABI_VERSION=`echo "$VERSION" | sed -e 's/:/./g'`
4664 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
4666 echo "${as_me:-configure}:4666: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
4670 { echo "$as_me:4670: WARNING: unexpected VERSION value: $VERSION" >&5
4671 echo "$as_me: WARNING: unexpected VERSION value: $VERSION" >&2;}
4678 # common library maintenance symbols that are convenient for libtool scripts:
4679 LIB_CREATE='${AR} -cr'
4680 LIB_OBJECT='${OBJECTS}'
4684 # symbols used to prop libtool up to enable it to determine what it should be
4692 echo "$as_me:4692: checking if you want to build libraries with libtool" >&5
4693 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4695 # Check whether --with-libtool or --without-libtool was given.
4696 if test "${with_libtool+set}" = set; then
4697 withval="$with_libtool"
4698 with_libtool=$withval
4702 echo "$as_me:4702: result: $with_libtool" >&5
4703 echo "${ECHO_T}$with_libtool" >&6
4704 if test "$with_libtool" != "no"; then
4706 if test "$with_libtool" != "yes" ; then
4708 if test "x$prefix" != xNONE; then
4709 cf_path_syntax="$prefix"
4711 cf_path_syntax="$ac_default_prefix"
4714 case ".$with_libtool" in
4719 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4721 (.\${*prefix}*|.\${*dir}*)
4722 eval with_libtool="$with_libtool"
4723 case ".$with_libtool" in
4725 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4730 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4733 { { echo "$as_me:4733: error: expected a pathname, not \"$with_libtool\"" >&5
4734 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4735 { (exit 1); exit 1; }; }
4739 LIBTOOL=$with_libtool
4741 if test -n "$ac_tool_prefix"; then
4742 for ac_prog in libtool glibtool
4744 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4745 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4746 echo "$as_me:4746: checking for $ac_word" >&5
4747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4748 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
4751 if test -n "$LIBTOOL"; then
4752 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
4754 ac_save_IFS=$IFS; IFS=$ac_path_separator
4756 for ac_dir in $ac_dummy; do
4758 test -z "$ac_dir" && ac_dir=.
4759 $as_executable_p "$ac_dir/$ac_word" || continue
4760 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
4761 echo "$as_me:4761: found $ac_dir/$ac_word" >&5
4767 LIBTOOL=$ac_cv_prog_LIBTOOL
4768 if test -n "$LIBTOOL"; then
4769 echo "$as_me:4769: result: $LIBTOOL" >&5
4770 echo "${ECHO_T}$LIBTOOL" >&6
4772 echo "$as_me:4772: result: no" >&5
4773 echo "${ECHO_T}no" >&6
4776 test -n "$LIBTOOL" && break
4779 if test -z "$LIBTOOL"; then
4780 ac_ct_LIBTOOL=$LIBTOOL
4781 for ac_prog in libtool glibtool
4783 # Extract the first word of "$ac_prog", so it can be a program name with args.
4784 set dummy $ac_prog; ac_word=$2
4785 echo "$as_me:4785: checking for $ac_word" >&5
4786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4787 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
4788 echo $ECHO_N "(cached) $ECHO_C" >&6
4790 if test -n "$ac_ct_LIBTOOL"; then
4791 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
4793 ac_save_IFS=$IFS; IFS=$ac_path_separator
4795 for ac_dir in $ac_dummy; do
4797 test -z "$ac_dir" && ac_dir=.
4798 $as_executable_p "$ac_dir/$ac_word" || continue
4799 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
4800 echo "$as_me:4800: found $ac_dir/$ac_word" >&5
4806 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
4807 if test -n "$ac_ct_LIBTOOL"; then
4808 echo "$as_me:4808: result: $ac_ct_LIBTOOL" >&5
4809 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
4811 echo "$as_me:4811: result: no" >&5
4812 echo "${ECHO_T}no" >&6
4815 test -n "$ac_ct_LIBTOOL" && break
4817 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
4819 LIBTOOL=$ac_ct_LIBTOOL
4822 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4824 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.].*//'`
4826 cf_cv_libtool_version=
4828 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
4830 if test -z "$cf_cv_libtool_version" && test "$LIBTOOL" = libtool
4833 unset ac_cv_prog_ac_ct_LIBTOOL
4837 if test -n "$ac_tool_prefix"; then
4838 for ac_prog in glibtool
4840 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4841 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4842 echo "$as_me:4842: checking for $ac_word" >&5
4843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4844 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
4845 echo $ECHO_N "(cached) $ECHO_C" >&6
4847 if test -n "$LIBTOOL"; then
4848 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
4850 ac_save_IFS=$IFS; IFS=$ac_path_separator
4852 for ac_dir in $ac_dummy; do
4854 test -z "$ac_dir" && ac_dir=.
4855 $as_executable_p "$ac_dir/$ac_word" || continue
4856 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
4857 echo "$as_me:4857: found $ac_dir/$ac_word" >&5
4863 LIBTOOL=$ac_cv_prog_LIBTOOL
4864 if test -n "$LIBTOOL"; then
4865 echo "$as_me:4865: result: $LIBTOOL" >&5
4866 echo "${ECHO_T}$LIBTOOL" >&6
4868 echo "$as_me:4868: result: no" >&5
4869 echo "${ECHO_T}no" >&6
4872 test -n "$LIBTOOL" && break
4875 if test -z "$LIBTOOL"; then
4876 ac_ct_LIBTOOL=$LIBTOOL
4877 for ac_prog in glibtool
4879 # Extract the first word of "$ac_prog", so it can be a program name with args.
4880 set dummy $ac_prog; ac_word=$2
4881 echo "$as_me:4881: checking for $ac_word" >&5
4882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4883 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
4884 echo $ECHO_N "(cached) $ECHO_C" >&6
4886 if test -n "$ac_ct_LIBTOOL"; then
4887 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
4889 ac_save_IFS=$IFS; IFS=$ac_path_separator
4891 for ac_dir in $ac_dummy; do
4893 test -z "$ac_dir" && ac_dir=.
4894 $as_executable_p "$ac_dir/$ac_word" || continue
4895 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
4896 echo "$as_me:4896: found $ac_dir/$ac_word" >&5
4902 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
4903 if test -n "$ac_ct_LIBTOOL"; then
4904 echo "$as_me:4904: result: $ac_ct_LIBTOOL" >&5
4905 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
4907 echo "$as_me:4907: result: no" >&5
4908 echo "${ECHO_T}no" >&6
4911 test -n "$ac_ct_LIBTOOL" && break
4913 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
4915 LIBTOOL=$ac_ct_LIBTOOL
4918 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4920 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.].*//'`
4922 cf_cv_libtool_version=
4924 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
4928 if test -z "$LIBTOOL" ; then
4929 { { echo "$as_me:4929: error: Cannot find libtool" >&5
4930 echo "$as_me: error: Cannot find libtool" >&2;}
4931 { (exit 1); exit 1; }; }
4933 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} ${LIBTOOL_VERSION} `cut -f1 ${top_srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
4934 LIB_OBJECT='${OBJECTS:.o=.lo}'
4936 LIB_CLEAN='${LIBTOOL} --mode=clean'
4937 LIB_COMPILE='${LIBTOOL} --mode=compile'
4938 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
4939 LIB_INSTALL='${LIBTOOL} --mode=install'
4940 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4943 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4945 echo "$as_me:4945: checking version of $LIBTOOL" >&5
4946 echo $ECHO_N "checking version of $LIBTOOL... $ECHO_C" >&6
4948 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4950 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.].*//'`
4952 cf_cv_libtool_version=
4954 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
4956 echo "$as_me:4956: result: $cf_cv_libtool_version" >&5
4957 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4958 if test -z "$cf_cv_libtool_version" ; then
4959 { { echo "$as_me:4959: error: This is not GNU libtool" >&5
4960 echo "$as_me: error: This is not GNU libtool" >&2;}
4961 { (exit 1); exit 1; }; }
4964 { { echo "$as_me:4964: error: GNU libtool has not been found" >&5
4965 echo "$as_me: error: GNU libtool has not been found" >&2;}
4966 { (exit 1); exit 1; }; }
4969 # special hack to add -no-undefined (which libtool should do for itself)
4971 case "$cf_cv_system_name" in
4972 (cygwin*|msys*|mingw32*|uwin*|aix[4-7])
4973 LT_UNDEF=-no-undefined
4977 # special hack to add --tag option for C++ compiler
4978 case $cf_cv_libtool_version in
4979 (1.[5-9]*|[2-9].[0-9.a-z]*)
4980 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4981 LIBTOOL="$LIBTOOL --tag=CC"
4984 LIBTOOL_CXX="$LIBTOOL"
4992 test -z "$LIBTOOL" && ECHO_LT=
4994 if test "$with_libtool" != "no" ; then
4996 cf_list_models="$cf_list_models libtool"
5000 echo "$as_me:5000: checking if you want to build shared libraries" >&5
5001 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
5003 # Check whether --with-shared or --without-shared was given.
5004 if test "${with_shared+set}" = set; then
5005 withval="$with_shared"
5006 with_shared=$withval
5010 echo "$as_me:5010: result: $with_shared" >&5
5011 echo "${ECHO_T}$with_shared" >&6
5012 test "x$with_shared" = "xyes" && cf_list_models="$cf_list_models shared"
5014 echo "$as_me:5014: checking if you want to build static libraries" >&5
5015 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
5017 # Check whether --with-normal or --without-normal was given.
5018 if test "${with_normal+set}" = set; then
5019 withval="$with_normal"
5020 with_normal=$withval
5024 echo "$as_me:5024: result: $with_normal" >&5
5025 echo "${ECHO_T}$with_normal" >&6
5026 test "x$with_normal" = "xyes" && cf_list_models="$cf_list_models normal"
5028 echo "$as_me:5028: checking if you want to build debug libraries" >&5
5029 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
5031 # Check whether --with-debug or --without-debug was given.
5032 if test "${with_debug+set}" = set; then
5033 withval="$with_debug"
5038 echo "$as_me:5038: result: $with_debug" >&5
5039 echo "${ECHO_T}$with_debug" >&6
5040 test "x$with_debug" = "xyes" && cf_list_models="$cf_list_models debug"
5042 echo "$as_me:5042: checking if you want to build profiling libraries" >&5
5043 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
5045 # Check whether --with-profile or --without-profile was given.
5046 if test "${with_profile+set}" = set; then
5047 withval="$with_profile"
5048 with_profile=$withval
5052 echo "$as_me:5052: result: $with_profile" >&5
5053 echo "${ECHO_T}$with_profile" >&6
5054 test "x$with_profile" = "xyes" && cf_list_models="$cf_list_models profile"
5058 if test "X$cf_with_cxx_binding" != Xno; then
5059 if test "x$with_shared" = "xyes"; then
5060 echo "$as_me:5060: checking if you want to build C++ shared libraries" >&5
5061 echo $ECHO_N "checking if you want to build C++ shared libraries... $ECHO_C" >&6
5063 # Check whether --with-cxx-shared or --without-cxx-shared was given.
5064 if test "${with_cxx_shared+set}" = set; then
5065 withval="$with_cxx_shared"
5066 with_shared_cxx=$withval
5070 echo "$as_me:5070: result: $with_shared_cxx" >&5
5071 echo "${ECHO_T}$with_shared_cxx" >&6
5075 ###############################################################################
5077 echo "$as_me:5077: checking for specified models" >&5
5078 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
5079 test -z "$cf_list_models" && cf_list_models=normal
5080 test "$with_libtool" != "no" && cf_list_models=libtool
5081 echo "$as_me:5081: result: $cf_list_models" >&5
5082 echo "${ECHO_T}$cf_list_models" >&6
5084 ### Use the first model as the default, and save its suffix for use in building
5085 ### up test-applications.
5086 echo "$as_me:5086: checking for default model" >&5
5087 echo $ECHO_N "checking for default model... $ECHO_C" >&6
5088 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
5089 echo "$as_me:5089: result: $DFT_LWR_MODEL" >&5
5090 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
5092 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5103 echo "$as_me:5103: checking if you want to have a library-prefix" >&5
5104 echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
5106 # Check whether --with-lib-prefix or --without-lib-prefix was given.
5107 if test "${with_lib_prefix+set}" = set; then
5108 withval="$with_lib_prefix"
5109 with_lib_prefix=$withval
5111 with_lib_prefix=auto
5113 echo "$as_me:5113: result: $with_lib_prefix" >&5
5114 echo "${ECHO_T}$with_lib_prefix" >&6
5116 if test $with_lib_prefix = auto
5119 case $cf_cv_system_name in
5123 (*) LIB_PREFIX='lib'
5126 cf_prefix=$LIB_PREFIX
5128 elif test $with_lib_prefix = no
5132 LIB_PREFIX=$with_lib_prefix
5137 echo "$as_me:5137: checking for PATH separator" >&5
5138 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
5139 case $cf_cv_system_name in
5140 (os2*) PATH_SEPARATOR=';' ;;
5141 (*) ${PATH_SEPARATOR:=':'} ;;
5144 echo "$as_me:5144: result: $PATH_SEPARATOR" >&5
5145 echo "${ECHO_T}$PATH_SEPARATOR" >&6
5147 ###############################################################################
5149 echo "$as_me:5149: checking if you want to build a separate terminfo library" >&5
5150 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
5152 # Check whether --with-termlib or --without-termlib was given.
5153 if test "${with_termlib+set}" = set; then
5154 withval="$with_termlib"
5155 with_termlib=$withval
5159 echo "$as_me:5159: result: $with_termlib" >&5
5160 echo "${ECHO_T}$with_termlib" >&6
5162 echo "$as_me:5162: checking if you want to build a separate tic library" >&5
5163 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
5165 # Check whether --with-ticlib or --without-ticlib was given.
5166 if test "${with_ticlib+set}" = set; then
5167 withval="$with_ticlib"
5168 with_ticlib=$withval
5172 echo "$as_me:5172: result: $with_ticlib" >&5
5173 echo "${ECHO_T}$with_ticlib" >&6
5175 ### Checks for special libraries, must be done up-front.
5178 echo "$as_me:5178: checking if you want to link with the GPM mouse library" >&5
5179 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
5181 # Check whether --with-gpm or --without-gpm was given.
5182 if test "${with_gpm+set}" = set; then
5188 echo "$as_me:5188: result: $with_gpm" >&5
5189 echo "${ECHO_T}$with_gpm" >&6
5191 if test "$with_gpm" != no ; then
5192 echo "$as_me:5192: checking for gpm.h" >&5
5193 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
5194 if test "${ac_cv_header_gpm_h+set}" = set; then
5195 echo $ECHO_N "(cached) $ECHO_C" >&6
5197 cat >conftest.$ac_ext <<_ACEOF
5198 #line 5198 "configure"
5199 #include "confdefs.h"
5202 if { (eval echo "$as_me:5202: \"$ac_cpp conftest.$ac_ext\"") >&5
5203 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5205 egrep -v '^ *\+' conftest.er1 >conftest.err
5207 cat conftest.err >&5
5208 echo "$as_me:5208: \$? = $ac_status" >&5
5209 (exit $ac_status); } >/dev/null; then
5210 if test -s conftest.err; then
5211 ac_cpp_err=$ac_c_preproc_warn_flag
5218 if test -z "$ac_cpp_err"; then
5219 ac_cv_header_gpm_h=yes
5221 echo "$as_me: failed program was:" >&5
5222 cat conftest.$ac_ext >&5
5223 ac_cv_header_gpm_h=no
5225 rm -f conftest.err conftest.$ac_ext
5227 echo "$as_me:5227: result: $ac_cv_header_gpm_h" >&5
5228 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
5229 if test $ac_cv_header_gpm_h = yes; then
5231 cat >>confdefs.h <<\EOF
5232 #define HAVE_GPM_H 1
5235 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
5236 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
5238 echo "${as_me:-configure}:5238: testing assuming we really have GPM library ..." 1>&5
5240 cat >>confdefs.h <<\EOF
5241 #define HAVE_LIBGPM 1
5245 echo "$as_me:5245: checking for Gpm_Open in -lgpm" >&5
5246 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
5247 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
5248 echo $ECHO_N "(cached) $ECHO_C" >&6
5250 ac_check_lib_save_LIBS=$LIBS
5252 cat >conftest.$ac_ext <<_ACEOF
5253 #line 5253 "configure"
5254 #include "confdefs.h"
5256 /* Override any gcc2 internal prototype to avoid an error. */
5260 /* We use char because int might match the return type of a gcc2
5261 builtin and then its argument prototype would still apply. */
5271 rm -f conftest.$ac_objext conftest$ac_exeext
5272 if { (eval echo "$as_me:5272: \"$ac_link\"") >&5
5273 (eval $ac_link) 2>&5
5275 echo "$as_me:5275: \$? = $ac_status" >&5
5276 (exit $ac_status); } &&
5277 { ac_try='test -s conftest$ac_exeext'
5278 { (eval echo "$as_me:5278: \"$ac_try\"") >&5
5281 echo "$as_me:5281: \$? = $ac_status" >&5
5282 (exit $ac_status); }; }; then
5283 ac_cv_lib_gpm_Gpm_Open=yes
5285 echo "$as_me: failed program was:" >&5
5286 cat conftest.$ac_ext >&5
5287 ac_cv_lib_gpm_Gpm_Open=no
5289 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5290 LIBS=$ac_check_lib_save_LIBS
5292 echo "$as_me:5292: result: $ac_cv_lib_gpm_Gpm_Open" >&5
5293 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
5294 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
5298 { { echo "$as_me:5298: error: Cannot link with GPM library" >&5
5299 echo "$as_me: error: Cannot link with GPM library" >&2;}
5300 { (exit 1); exit 1; }; }
5308 test "$with_gpm" != maybe && { echo "$as_me:5308: WARNING: Cannot find GPM header" >&5
5309 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
5316 if test "$with_gpm" != no ; then
5317 echo "$as_me:5317: checking if you want to load GPM dynamically" >&5
5318 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
5320 # Check whether --with-dlsym or --without-dlsym was given.
5321 if test "${with_dlsym+set}" = set; then
5322 withval="$with_dlsym"
5327 echo "$as_me:5327: result: $with_dlsym" >&5
5328 echo "${ECHO_T}$with_dlsym" >&6
5329 if test "x$with_dlsym" = xyes ; then
5332 echo "$as_me:5332: checking for dlsym" >&5
5333 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
5334 if test "${ac_cv_func_dlsym+set}" = set; then
5335 echo $ECHO_N "(cached) $ECHO_C" >&6
5337 cat >conftest.$ac_ext <<_ACEOF
5338 #line 5338 "configure"
5339 #include "confdefs.h"
5340 /* System header to define __stub macros and hopefully few prototypes,
5341 which can conflict with char dlsym (); below. */
5343 /* Override any gcc2 internal prototype to avoid an error. */
5347 /* We use char because int might match the return type of a gcc2
5348 builtin and then its argument prototype would still apply. */
5355 /* The GNU C library defines this for functions which it implements
5356 to always fail with ENOSYS. Some functions are actually named
5357 something starting with __ and the normal name is an alias. */
5358 #if defined (__stub_dlsym) || defined (__stub___dlsym)
5361 f = dlsym; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
5368 rm -f conftest.$ac_objext conftest$ac_exeext
5369 if { (eval echo "$as_me:5369: \"$ac_link\"") >&5
5370 (eval $ac_link) 2>&5
5372 echo "$as_me:5372: \$? = $ac_status" >&5
5373 (exit $ac_status); } &&
5374 { ac_try='test -s conftest$ac_exeext'
5375 { (eval echo "$as_me:5375: \"$ac_try\"") >&5
5378 echo "$as_me:5378: \$? = $ac_status" >&5
5379 (exit $ac_status); }; }; then
5380 ac_cv_func_dlsym=yes
5382 echo "$as_me: failed program was:" >&5
5383 cat conftest.$ac_ext >&5
5386 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5388 echo "$as_me:5388: result: $ac_cv_func_dlsym" >&5
5389 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
5390 if test $ac_cv_func_dlsym = yes; then
5395 echo "$as_me:5395: checking for dlsym in -ldl" >&5
5396 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
5397 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
5398 echo $ECHO_N "(cached) $ECHO_C" >&6
5400 ac_check_lib_save_LIBS=$LIBS
5402 cat >conftest.$ac_ext <<_ACEOF
5403 #line 5403 "configure"
5404 #include "confdefs.h"
5406 /* Override any gcc2 internal prototype to avoid an error. */
5410 /* We use char because int might match the return type of a gcc2
5411 builtin and then its argument prototype would still apply. */
5421 rm -f conftest.$ac_objext conftest$ac_exeext
5422 if { (eval echo "$as_me:5422: \"$ac_link\"") >&5
5423 (eval $ac_link) 2>&5
5425 echo "$as_me:5425: \$? = $ac_status" >&5
5426 (exit $ac_status); } &&
5427 { ac_try='test -s conftest$ac_exeext'
5428 { (eval echo "$as_me:5428: \"$ac_try\"") >&5
5431 echo "$as_me:5431: \$? = $ac_status" >&5
5432 (exit $ac_status); }; }; then
5433 ac_cv_lib_dl_dlsym=yes
5435 echo "$as_me: failed program was:" >&5
5436 cat conftest.$ac_ext >&5
5437 ac_cv_lib_dl_dlsym=no
5439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5440 LIBS=$ac_check_lib_save_LIBS
5442 echo "$as_me:5442: result: $ac_cv_lib_dl_dlsym" >&5
5443 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
5444 if test $ac_cv_lib_dl_dlsym = yes; then
5452 if test "$cf_have_dlsym" = yes ; then
5453 test "$cf_have_libdl" = yes &&
5455 # Filter out duplicates - this happens with badly-designed ".pc" files...
5456 for cf_add_1lib in $LIBS
5458 for cf_add_2lib in $cf_add_libs
5460 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5466 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5470 echo "$as_me:5470: checking whether able to link to dl*() functions" >&5
5471 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
5472 cat >conftest.$ac_ext <<_ACEOF
5473 #line 5473 "configure"
5474 #include "confdefs.h"
5481 if ((obj = dlopen("filename", 0)) != 0) {
5482 if (dlsym(obj, "symbolname") == 0) {
5490 rm -f conftest.$ac_objext conftest$ac_exeext
5491 if { (eval echo "$as_me:5491: \"$ac_link\"") >&5
5492 (eval $ac_link) 2>&5
5494 echo "$as_me:5494: \$? = $ac_status" >&5
5495 (exit $ac_status); } &&
5496 { ac_try='test -s conftest$ac_exeext'
5497 { (eval echo "$as_me:5497: \"$ac_try\"") >&5
5500 echo "$as_me:5500: \$? = $ac_status" >&5
5501 (exit $ac_status); }; }; then
5503 cat >>confdefs.h <<\EOF
5504 #define HAVE_LIBDL 1
5508 echo "$as_me: failed program was:" >&5
5509 cat conftest.$ac_ext >&5
5511 { { echo "$as_me:5511: error: Cannot link test program for libdl" >&5
5512 echo "$as_me: error: Cannot link test program for libdl" >&2;}
5513 { (exit 1); exit 1; }; }
5515 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5516 echo "$as_me:5516: result: ok" >&5
5517 echo "${ECHO_T}ok" >&6
5519 { { echo "$as_me:5519: error: Cannot find dlsym function" >&5
5520 echo "$as_me: error: Cannot find dlsym function" >&2;}
5521 { (exit 1); exit 1; }; }
5524 if test "x$with_gpm" != xyes ; then
5525 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
5527 echo "${as_me:-configure}:5527: testing assuming soname for gpm is $with_gpm ..." 1>&5
5529 cf_cv_gpm_soname="$with_gpm"
5532 echo "$as_me:5532: checking for soname of gpm library" >&5
5533 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
5534 if test "${cf_cv_gpm_soname+set}" = set; then
5535 echo $ECHO_N "(cached) $ECHO_C" >&6
5538 cf_cv_gpm_soname=unknown
5539 if test "$cross_compiling" != yes ; then
5540 cat >conftest.$ac_ext <<CF_EOF
5544 if (Gpm_Open(0,0)) Gpm_Close();
5545 ${cf_cv_main_return:-return}(0);
5548 cf_save_LIBS="$LIBS"
5551 # Filter out duplicates - this happens with badly-designed ".pc" files...
5552 for cf_add_1lib in $LIBS
5554 for cf_add_2lib in $cf_add_libs
5556 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5562 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5566 if { (eval echo "$as_me:5566: \"$ac_compile\"") >&5
5567 (eval $ac_compile) 2>&5
5569 echo "$as_me:5569: \$? = $ac_status" >&5
5570 (exit $ac_status); } ; then
5571 if { (eval echo "$as_me:5571: \"$ac_link\"") >&5
5572 (eval $ac_link) 2>&5
5574 echo "$as_me:5574: \$? = $ac_status" >&5
5575 (exit $ac_status); } ; then
5576 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
5577 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
5581 LIBS="$cf_save_LIBS"
5585 echo "$as_me:5585: result: $cf_cv_gpm_soname" >&5
5586 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
5589 test "$cf_cv_gpm_soname" != "unknown" &&
5590 cat >>confdefs.h <<EOF
5591 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
5594 SHLIB_LIST="-ldl $SHLIB_LIST"
5596 SHLIB_LIST="-lgpm $SHLIB_LIST"
5599 # Filter out duplicates - this happens with badly-designed ".pc" files...
5600 for cf_add_1lib in $TEST_LIBS
5602 for cf_add_2lib in $cf_add_libs
5604 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5610 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5612 TEST_LIBS="$cf_add_libs"
5616 cat >>confdefs.h <<\EOF
5617 #define HAVE_LIBGPM 1
5620 echo "$as_me:5620: checking for Gpm_Wgetch in -lgpm" >&5
5621 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
5622 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
5623 echo $ECHO_N "(cached) $ECHO_C" >&6
5625 ac_check_lib_save_LIBS=$LIBS
5627 cat >conftest.$ac_ext <<_ACEOF
5628 #line 5628 "configure"
5629 #include "confdefs.h"
5631 /* Override any gcc2 internal prototype to avoid an error. */
5635 /* We use char because int might match the return type of a gcc2
5636 builtin and then its argument prototype would still apply. */
5646 rm -f conftest.$ac_objext conftest$ac_exeext
5647 if { (eval echo "$as_me:5647: \"$ac_link\"") >&5
5648 (eval $ac_link) 2>&5
5650 echo "$as_me:5650: \$? = $ac_status" >&5
5651 (exit $ac_status); } &&
5652 { ac_try='test -s conftest$ac_exeext'
5653 { (eval echo "$as_me:5653: \"$ac_try\"") >&5
5656 echo "$as_me:5656: \$? = $ac_status" >&5
5657 (exit $ac_status); }; }; then
5658 ac_cv_lib_gpm_Gpm_Wgetch=yes
5660 echo "$as_me: failed program was:" >&5
5661 cat conftest.$ac_ext >&5
5662 ac_cv_lib_gpm_Gpm_Wgetch=no
5664 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5665 LIBS=$ac_check_lib_save_LIBS
5667 echo "$as_me:5667: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
5668 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
5669 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
5671 echo "$as_me:5671: checking if GPM is weakly bound to curses library" >&5
5672 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
5673 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
5674 echo $ECHO_N "(cached) $ECHO_C" >&6
5677 cf_cv_check_gpm_wgetch=unknown
5678 if test "$cross_compiling" != yes ; then
5680 cat >conftest.$ac_ext <<CF_EOF
5685 ${cf_cv_main_return:-return}(0);
5689 cf_save_LIBS="$LIBS"
5690 # This only works if we can look at the symbol table. If a shared
5691 # library is stripped for install, we cannot use that. So we're forced
5692 # to rely on the static library, noting that some packagers may not
5694 LIBS="-static -lgpm -dynamic $LIBS"
5695 if { (eval echo "$as_me:5695: \"$ac_compile\"") >&5
5696 (eval $ac_compile) 2>&5
5698 echo "$as_me:5698: \$? = $ac_status" >&5
5699 (exit $ac_status); } ; then
5700 if { (eval echo "$as_me:5700: \"$ac_link\"") >&5
5701 (eval $ac_link) 2>&5
5703 echo "$as_me:5703: \$? = $ac_status" >&5
5704 (exit $ac_status); } ; then
5705 cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
5706 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
5707 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
5711 LIBS="$cf_save_LIBS"
5715 echo "$as_me:5715: result: $cf_cv_check_gpm_wgetch" >&5
5716 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
5718 if test "$cf_cv_check_gpm_wgetch" != yes ; then
5719 { echo "$as_me:5719: WARNING: GPM library is already linked with curses - read the FAQ" >&5
5720 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
5727 # not everyone has "test -c"
5728 if test -c /dev/sysmouse 2>/dev/null ; then
5729 echo "$as_me:5729: checking if you want to use sysmouse" >&5
5730 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
5732 # Check whether --with-sysmouse or --without-sysmouse was given.
5733 if test "${with_sysmouse+set}" = set; then
5734 withval="$with_sysmouse"
5735 cf_with_sysmouse=$withval
5737 cf_with_sysmouse=maybe
5739 if test "$cf_with_sysmouse" != no ; then
5740 cat >conftest.$ac_ext <<_ACEOF
5741 #line 5741 "configure"
5742 #include "confdefs.h"
5744 #include <osreldate.h>
5745 #if (__FreeBSD_version >= 400017)
5746 #include <sys/consio.h>
5747 #include <sys/fbio.h>
5749 #include <machine/console.h>
5756 struct mouse_info the_mouse;
5757 ioctl(0, CONS_MOUSECTL, &the_mouse);
5763 rm -f conftest.$ac_objext
5764 if { (eval echo "$as_me:5764: \"$ac_compile\"") >&5
5765 (eval $ac_compile) 2>&5
5767 echo "$as_me:5767: \$? = $ac_status" >&5
5768 (exit $ac_status); } &&
5769 { ac_try='test -s conftest.$ac_objext'
5770 { (eval echo "$as_me:5770: \"$ac_try\"") >&5
5773 echo "$as_me:5773: \$? = $ac_status" >&5
5774 (exit $ac_status); }; }; then
5775 cf_with_sysmouse=yes
5777 echo "$as_me: failed program was:" >&5
5778 cat conftest.$ac_ext >&5
5781 rm -f conftest.$ac_objext conftest.$ac_ext
5783 echo "$as_me:5783: result: $cf_with_sysmouse" >&5
5784 echo "${ECHO_T}$cf_with_sysmouse" >&6
5785 test "$cf_with_sysmouse" = yes &&
5786 cat >>confdefs.h <<\EOF
5787 #define USE_SYSMOUSE 1
5792 if test X"$CC_G_OPT" = X"" ; then
5794 test -n "$GCC" && test "x${ac_cv_prog_cc_g}" != xyes && CC_G_OPT=''
5797 if test X"$CXX_G_OPT" = X"" ; then
5799 test -n "$GXX" && test "x${ac_cv_prog_cxx_g}" != xyes && CXX_G_OPT=''
5802 echo "$as_me:5802: checking for default loader flags" >&5
5803 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
5804 case $DFT_LWR_MODEL in
5805 (libtool) LD_MODEL='' ;;
5806 (normal) LD_MODEL='' ;;
5807 (debug) LD_MODEL=$CC_G_OPT ;;
5808 (profile) LD_MODEL='-pg';;
5809 (shared) LD_MODEL='' ;;
5811 echo "$as_me:5811: result: $LD_MODEL" >&5
5812 echo "${ECHO_T}$LD_MODEL" >&6
5814 case $DFT_LWR_MODEL in
5817 echo "$as_me:5817: checking if rpath option should be used" >&5
5818 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
5820 # Check whether --enable-rpath or --disable-rpath was given.
5821 if test "${enable_rpath+set}" = set; then
5822 enableval="$enable_rpath"
5823 cf_cv_enable_rpath=$enableval
5825 cf_cv_enable_rpath=no
5827 echo "$as_me:5827: result: $cf_cv_enable_rpath" >&5
5828 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
5830 echo "$as_me:5830: checking if shared libraries should be relinked during install" >&5
5831 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
5833 # Check whether --enable-relink or --disable-relink was given.
5834 if test "${enable_relink+set}" = set; then
5835 enableval="$enable_relink"
5836 cf_cv_do_relink=$enableval
5840 echo "$as_me:5840: result: $cf_cv_do_relink" >&5
5841 echo "${ECHO_T}$cf_cv_do_relink" >&6
5845 # we will build libraries one-level down.
5849 echo "$as_me:5849: checking for an rpath option" >&5
5850 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
5851 case $cf_cv_system_name in
5853 if test "$GCC" = yes; then
5854 LD_RPATH_OPT="-Wl,-rpath,"
5856 LD_RPATH_OPT="-rpath "
5859 (linux*|gnu*|k*bsd*-gnu)
5860 LD_RPATH_OPT="-Wl,-rpath,"
5862 (openbsd[2-9].*|mirbsd*)
5863 LD_RPATH_OPT="-Wl,-rpath,"
5865 (dragonfly*|freebsd*)
5866 LD_RPATH_OPT="-rpath "
5869 LD_RPATH_OPT="-Wl,-rpath,"
5872 LD_RPATH_OPT="-rpath "
5880 echo "$as_me:5880: result: $LD_RPATH_OPT" >&5
5881 echo "${ECHO_T}$LD_RPATH_OPT" >&6
5883 case "x$LD_RPATH_OPT" in
5885 echo "$as_me:5885: checking if we need a space after rpath option" >&5
5886 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
5887 cf_save_LIBS="$LIBS"
5889 cf_add_libs="${LD_RPATH_OPT}$libdir"
5890 # Filter out duplicates - this happens with badly-designed ".pc" files...
5891 for cf_add_1lib in $LIBS
5893 for cf_add_2lib in $cf_add_libs
5895 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5901 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5905 cat >conftest.$ac_ext <<_ACEOF
5906 #line 5906 "configure"
5907 #include "confdefs.h"
5917 rm -f conftest.$ac_objext conftest$ac_exeext
5918 if { (eval echo "$as_me:5918: \"$ac_link\"") >&5
5919 (eval $ac_link) 2>&5
5921 echo "$as_me:5921: \$? = $ac_status" >&5
5922 (exit $ac_status); } &&
5923 { ac_try='test -s conftest$ac_exeext'
5924 { (eval echo "$as_me:5924: \"$ac_try\"") >&5
5927 echo "$as_me:5927: \$? = $ac_status" >&5
5928 (exit $ac_status); }; }; then
5931 echo "$as_me: failed program was:" >&5
5932 cat conftest.$ac_ext >&5
5935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5936 LIBS="$cf_save_LIBS"
5937 echo "$as_me:5937: result: $cf_rpath_space" >&5
5938 echo "${ECHO_T}$cf_rpath_space" >&6
5939 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
5947 INSTALL_LIB="-m 644"
5948 : ${rel_builddir:=.}
5954 cf_cv_do_symlinks=no
5956 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
5958 echo "$as_me:5958: checking if release/abi version should be used for shared libs" >&5
5959 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
5961 # Check whether --with-shlib-version or --without-shlib-version was given.
5962 if test "${with_shlib_version+set}" = set; then
5963 withval="$with_shlib_version"
5964 test -z "$withval" && withval=auto
5967 cf_cv_shlib_version=auto
5970 cf_cv_shlib_version=$withval
5973 echo "$as_me:5973: result: $withval" >&5
5974 echo "${ECHO_T}$withval" >&6
5975 { { echo "$as_me:5975: error: option value must be one of: rel, abi, or auto" >&5
5976 echo "$as_me: error: option value must be one of: rel, abi, or auto" >&2;}
5977 { (exit 1); exit 1; }; }
5982 cf_cv_shlib_version=auto
5984 echo "$as_me:5984: result: $cf_cv_shlib_version" >&5
5985 echo "${ECHO_T}$cf_cv_shlib_version" >&6
5990 # Some less-capable ports of gcc support only -fpic
5992 if test "$GCC" = yes
5994 echo "$as_me:5994: checking which $CC option to use" >&5
5995 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
5996 cf_save_CFLAGS="$CFLAGS"
5997 for CC_SHARED_OPTS in -fPIC -fpic ''
5999 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
6000 cat >conftest.$ac_ext <<_ACEOF
6001 #line 6001 "configure"
6002 #include "confdefs.h"
6012 rm -f conftest.$ac_objext
6013 if { (eval echo "$as_me:6013: \"$ac_compile\"") >&5
6014 (eval $ac_compile) 2>&5
6016 echo "$as_me:6016: \$? = $ac_status" >&5
6017 (exit $ac_status); } &&
6018 { ac_try='test -s conftest.$ac_objext'
6019 { (eval echo "$as_me:6019: \"$ac_try\"") >&5
6022 echo "$as_me:6022: \$? = $ac_status" >&5
6023 (exit $ac_status); }; }; then
6026 echo "$as_me: failed program was:" >&5
6027 cat conftest.$ac_ext >&5
6029 rm -f conftest.$ac_objext conftest.$ac_ext
6031 echo "$as_me:6031: result: $CC_SHARED_OPTS" >&5
6032 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
6033 CFLAGS="$cf_save_CFLAGS"
6036 cf_cv_shlib_version_infix=no
6038 case $cf_cv_system_name in
6039 (aix4.3-9*|aix[5-7]*)
6040 if test "$GCC" = yes; then
6041 CC_SHARED_OPTS='-Wl,-brtl'
6042 MK_SHARED_LIB='${CC} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6044 CC_SHARED_OPTS='-brtl'
6045 # as well as '-qpic=large -G' or perhaps "-bM:SRE -bnoentry -bexpall"
6046 MK_SHARED_LIB='${CC} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6050 MK_SHARED_LIB='${CC} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
6054 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6055 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6056 cf_cv_shlib_version=cygdll
6057 cf_cv_shlib_version_infix=cygdll
6060 cat >mk_shared_lib.sh <<-CF_EOF
6063 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6066 Linking shared library
6067 ** SHARED_LIB \$SHARED_LIB
6068 ** IMPORT_LIB \$IMPORT_LIB
6070 exec \$* -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6072 chmod +x mk_shared_lib.sh
6076 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6077 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6078 cf_cv_shlib_version=msysdll
6079 cf_cv_shlib_version_infix=msysdll
6082 cat >mk_shared_lib.sh <<-CF_EOF
6085 IMPORT_LIB=\`echo "\$1" | sed -e 's/msys-/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6088 Linking shared library
6089 ** SHARED_LIB \$SHARED_LIB
6090 ** IMPORT_LIB \$IMPORT_LIB
6092 exec \$* -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6094 chmod +x mk_shared_lib.sh
6097 cf_try_cflags="no-cpp-precomp"
6098 CC_SHARED_OPTS="-dynamic"
6099 MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
6100 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
6101 cf_cv_shlib_version_infix=yes
6102 echo "$as_me:6102: checking if ld -search_paths_first works" >&5
6103 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
6104 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
6105 echo $ECHO_N "(cached) $ECHO_C" >&6
6108 cf_save_LDFLAGS=$LDFLAGS
6109 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6110 cat >conftest.$ac_ext <<_ACEOF
6111 #line 6111 "configure"
6112 #include "confdefs.h"
6122 rm -f conftest.$ac_objext conftest$ac_exeext
6123 if { (eval echo "$as_me:6123: \"$ac_link\"") >&5
6124 (eval $ac_link) 2>&5
6126 echo "$as_me:6126: \$? = $ac_status" >&5
6127 (exit $ac_status); } &&
6128 { ac_try='test -s conftest$ac_exeext'
6129 { (eval echo "$as_me:6129: \"$ac_try\"") >&5
6132 echo "$as_me:6132: \$? = $ac_status" >&5
6133 (exit $ac_status); }; }; then
6134 cf_cv_ldflags_search_paths_first=yes
6136 echo "$as_me: failed program was:" >&5
6137 cat conftest.$ac_ext >&5
6138 cf_cv_ldflags_search_paths_first=no
6140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6141 LDFLAGS=$cf_save_LDFLAGS
6143 echo "$as_me:6143: result: $cf_cv_ldflags_search_paths_first" >&5
6144 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
6145 if test $cf_cv_ldflags_search_paths_first = yes; then
6146 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6150 # HP-UX 8.07 ld lacks "+b" option used for libdir search-list
6151 if test "$GCC" != yes; then
6154 MK_SHARED_LIB='${LD} -b -o $@'
6155 INSTALL_LIB="-m 555"
6158 # (tested with gcc 2.7.2 -- I don't have c89)
6159 if test "$GCC" = yes; then
6160 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
6163 LD_SHARED_OPTS='-Wl,+b,${libdir}'
6165 MK_SHARED_LIB='${LD} +b ${libdir} -b -o $@'
6166 # HP-UX shared libraries must be executable, and should be
6167 # readonly to exploit a quirk in the memory manager.
6168 INSTALL_LIB="-m 555"
6171 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6172 if test "$cf_cv_shlib_version" = rel; then
6173 cf_shared_soname='`basename .${REL_VERSION}`.${ABI_VERSION}'
6175 cf_shared_soname='`basename `'
6178 MK_SHARED_LIB='${CC} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o '
6181 if test "$cf_cv_enable_rpath" = yes ; then
6182 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6184 # tested with IRIX 5.2 and 'cc'.
6185 if test "$GCC" != yes; then
6186 CC_SHARED_OPTS='-KPIC'
6187 MK_SHARED_LIB='${CC} -shared -rdata_shared -soname `basename $@` -o $@'
6189 MK_SHARED_LIB='${CC} -shared -Wl,-soname,`basename $@` -o $@'
6191 cf_cv_rm_so_locs=yes
6193 (linux*|gnu*|k*bsd*-gnu)
6194 if test "$DFT_LWR_MODEL" = "shared" ; then
6195 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6196 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6198 if test "$cf_cv_enable_rpath" = yes ; then
6199 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6202 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6203 if test "$cf_cv_shlib_version" = rel; then
6204 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6206 cf_cv_shared_soname='`basename $@`'
6209 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6212 cf_cv_shlib_version=mingw
6213 cf_cv_shlib_version_infix=mingw
6216 if test "$DFT_LWR_MODEL" = "shared" ; then
6217 LOCAL_LDFLAGS="-Wl,--enable-auto-import"
6218 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6219 EXTRA_LDFLAGS="-Wl,--enable-auto-import $EXTRA_LDFLAGS"
6222 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6223 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6224 cat >mk_shared_lib.sh <<-CF_EOF
6227 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
6230 Linking shared library
6231 ** SHARED_LIB \$SHARED_LIB
6232 ** IMPORT_LIB \$IMPORT_LIB
6234 exec \$* -shared -Wl,--enable-auto-import,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6236 chmod +x mk_shared_lib.sh
6238 (openbsd[2-9].*|mirbsd*)
6239 if test "$DFT_LWR_MODEL" = "shared" ; then
6240 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6241 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6243 if test "$cf_cv_enable_rpath" = yes ; then
6244 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6246 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6248 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6249 if test "$cf_cv_shlib_version" = rel; then
6250 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6252 cf_cv_shared_soname='`basename $@`'
6255 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6257 (nto-qnx*|openbsd*|freebsd[12].*)
6258 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6259 MK_SHARED_LIB='${LD} -Bshareable -o $@'
6260 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6262 (dragonfly*|freebsd*)
6263 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6264 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6265 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6266 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
6267 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6270 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6271 if test "$cf_cv_shlib_version" = rel; then
6272 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6274 cf_cv_shared_soname='`basename $@`'
6277 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6280 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6281 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6282 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6283 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6284 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6285 if test "$cf_cv_shlib_version" = auto; then
6286 if test -f /usr/libexec/ld.elf_so; then
6287 cf_cv_shlib_version=abi
6289 cf_cv_shlib_version=rel
6293 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6294 if test "$cf_cv_shlib_version" = rel; then
6295 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6297 cf_cv_shared_soname='`basename $@`'
6300 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
6302 MK_SHARED_LIB='${CC} -Wl,-shared -Wl,-Bshareable -o $@'
6306 # tested with OSF/1 V3.2 and 'cc'
6307 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
6308 # link with shared libs).
6309 MK_SHARED_LIB='${LD} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
6312 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
6315 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
6316 if test "$DFT_LWR_MODEL" = "shared" ; then
6317 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6318 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6320 cf_cv_rm_so_locs=yes
6322 (sco3.2v5*) # also uw2* and UW7: hops 13-Apr-98
6323 # tested with osr5.0.5
6324 if test "$GCC" != yes; then
6325 CC_SHARED_OPTS='-belf -KPIC'
6327 MK_SHARED_LIB='${LD} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
6328 if test "$cf_cv_enable_rpath" = yes ; then
6329 # only way is to set LD_RUN_PATH but no switch for it
6332 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6333 LINK_PROGS='LD_RUN_PATH=${libdir}'
6334 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
6337 # tested with SunOS 4.1.1 and gcc 2.7.0
6338 if test "$GCC" != yes; then
6339 CC_SHARED_OPTS='-KPIC'
6341 MK_SHARED_LIB='${LD} -assert pure-text -o $@'
6342 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6345 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
6346 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
6347 if test "$DFT_LWR_MODEL" = "shared" ; then
6348 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
6349 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6351 if test "$cf_cv_enable_rpath" = yes ; then
6352 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
6355 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6356 if test "$cf_cv_shlib_version" = rel; then
6357 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6359 cf_cv_shared_soname='`basename $@`'
6362 if test "$GCC" != yes; then
6363 cf_save_CFLAGS="$CFLAGS"
6364 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
6366 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
6367 cat >conftest.$ac_ext <<_ACEOF
6368 #line 6368 "configure"
6369 #include "confdefs.h"
6379 rm -f conftest.$ac_objext
6380 if { (eval echo "$as_me:6380: \"$ac_compile\"") >&5
6381 (eval $ac_compile) 2>&5
6383 echo "$as_me:6383: \$? = $ac_status" >&5
6384 (exit $ac_status); } &&
6385 { ac_try='test -s conftest.$ac_objext'
6386 { (eval echo "$as_me:6386: \"$ac_try\"") >&5
6389 echo "$as_me:6389: \$? = $ac_status" >&5
6390 (exit $ac_status); }; }; then
6393 echo "$as_me: failed program was:" >&5
6394 cat conftest.$ac_ext >&5
6396 rm -f conftest.$ac_objext conftest.$ac_ext
6398 CFLAGS="$cf_save_CFLAGS"
6399 CC_SHARED_OPTS=$cf_shared_opts
6400 MK_SHARED_LIB='${CC} -dy -G -h '$cf_cv_shared_soname' -o $@'
6402 MK_SHARED_LIB='${CC} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
6405 (sysv5uw7*|unix_sv*)
6406 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
6407 if test "$GCC" != yes; then
6408 CC_SHARED_OPTS='-KPIC'
6410 MK_SHARED_LIB='${LD} -d y -G -o $@'
6413 CC_SHARED_OPTS='unknown'
6414 MK_SHARED_LIB='echo unknown'
6418 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
6419 case "$cf_cv_shlib_version" in
6421 case "$MK_SHARED_LIB" in
6423 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
6426 { echo "$as_me:6426: WARNING: ignored --with-shlib-version" >&5
6427 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
6433 if test -n "$cf_try_cflags"
6435 cat > conftest.$ac_ext <<EOF
6436 #line 6436 "${as_me:-configure}"
6438 int main(int argc, char *argv[])
6441 return (argv[argc-1] == 0) ;
6444 cf_save_CFLAGS="$CFLAGS"
6445 for cf_opt in $cf_try_cflags
6447 CFLAGS="$cf_save_CFLAGS -$cf_opt"
6448 echo "$as_me:6448: checking if CFLAGS option -$cf_opt works" >&5
6449 echo $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6
6450 if { (eval echo "$as_me:6450: \"$ac_compile\"") >&5
6451 (eval $ac_compile) 2>&5
6453 echo "$as_me:6453: \$? = $ac_status" >&5
6454 (exit $ac_status); }; then
6455 echo "$as_me:6455: result: yes" >&5
6456 echo "${ECHO_T}yes" >&6
6457 cf_save_CFLAGS="$CFLAGS"
6459 echo "$as_me:6459: result: no" >&5
6460 echo "${ECHO_T}no" >&6
6463 CFLAGS="$cf_save_CFLAGS"
6466 # RPATH_LIST is a colon-separated list of directories
6467 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
6468 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
6470 test $cf_cv_rm_so_locs = yes && RM_SHARED_OPTS="$RM_SHARED_OPTS so_locations"
6472 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
6474 echo "${as_me:-configure}:6474: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
6476 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6478 echo "${as_me:-configure}:6478: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6480 for model in $cf_list_models; do
6484 echo "$as_me:6484: checking for additional libtool options" >&5
6485 echo $ECHO_N "checking for additional libtool options... $ECHO_C" >&6
6487 # Check whether --with-libtool-opts or --without-libtool-opts was given.
6488 if test "${with_libtool_opts+set}" = set; then
6489 withval="$with_libtool_opts"
6490 with_libtool_opts=$withval
6492 with_libtool_opts=no
6494 echo "$as_me:6494: result: $with_libtool_opts" >&5
6495 echo "${ECHO_T}$with_libtool_opts" >&6
6497 case .$with_libtool_opts in
6501 LIBTOOL_OPTS="$LIBTOOL_OPTS $with_libtool_opts"
6505 echo "$as_me:6505: checking if exported-symbols file should be used" >&5
6506 echo $ECHO_N "checking if exported-symbols file should be used... $ECHO_C" >&6
6508 # Check whether --with-export-syms or --without-export-syms was given.
6509 if test "${with_export_syms+set}" = set; then
6510 withval="$with_export_syms"
6511 with_export_syms=$withval
6515 if test "x$with_export_syms" = xyes
6517 with_export_syms='${top_srcdir}/package/${PACKAGE}.sym'
6520 echo "$as_me:6520: result: $with_export_syms" >&5
6521 echo "${ECHO_T}$with_export_syms" >&6
6522 if test "x$with_export_syms" != xno
6524 EXPORT_SYMS="-export-symbols $with_export_syms"
6530 if test "$CC_SHARED_OPTS" = "unknown"; then
6531 { { echo "$as_me:6531: error: Shared libraries are not supported in this version" >&5
6532 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
6533 { (exit 1); exit 1; }; }
6536 echo "$as_me:6536: checking if versioned-symbols file should be used" >&5
6537 echo $ECHO_N "checking if versioned-symbols file should be used... $ECHO_C" >&6
6539 # Check whether --with-versioned-syms or --without-versioned-syms was given.
6540 if test "${with_versioned_syms+set}" = set; then
6541 withval="$with_versioned_syms"
6542 with_versioned_syms=$withval
6544 with_versioned_syms=no
6546 if test "x$with_versioned_syms" = xyes
6548 with_versioned_syms='${top_srcdir}/package/${PACKAGE}.map'
6551 echo "$as_me:6551: result: $with_versioned_syms" >&5
6552 echo "${ECHO_T}$with_versioned_syms" >&6
6558 if test "x$with_versioned_syms" != xno
6560 RESULTING_SYMS=$with_versioned_syms
6561 case "x$MK_SHARED_LIB" in
6563 VERSIONED_SYMS="-Wl,--version-script,\${RESULTING_SYMS}"
6564 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-Wl,%\\${VERSIONED_SYMS} -Wl,%"`
6565 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6567 echo "${as_me:-configure}:6567: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6571 VERSIONED_SYMS="-Wl,-M,\${RESULTING_SYMS}"
6572 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-dy%\\${VERSIONED_SYMS} -dy%"`
6573 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6575 echo "${as_me:-configure}:6575: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6579 { echo "$as_me:6579: WARNING: this system does not support versioned-symbols" >&5
6580 echo "$as_me: WARNING: this system does not support versioned-symbols" >&2;}
6584 # Linux ld can selectively override scope, e.g., of symbols beginning with
6585 # "_" by first declaring some as global, and then using a wildcard to
6586 # declare the others as local. Some other loaders cannot do this. Check
6587 # by constructing a (very) simple shared library and inspecting its
6589 if test "x$VERSIONED_SYMS" != "x"
6591 echo "$as_me:6591: checking if wildcards can be used to selectively omit symbols" >&5
6592 echo $ECHO_N "checking if wildcards can be used to selectively omit symbols... $ECHO_C" >&6
6598 cat >conftest.ver <<EOF
6627 cat >conftest.$ac_ext <<EOF
6628 #line 6628 "configure"
6629 int _ismissing(void) { return 1; }
6630 int _localf1(void) { return 1; }
6631 int _localf2(void) { return 2; }
6632 int globalf1(void) { return 1; }
6633 int globalf2(void) { return 2; }
6634 int _sublocalf1(void) { return 1; }
6635 int _sublocalf2(void) { return 2; }
6636 int subglobalf1(void) { return 1; }
6637 int subglobalf2(void) { return 2; }
6639 cat >conftest.mk <<EOF
6642 CPPFLAGS=${CPPFLAGS}
6645 VERSIONED_SYMS=${VERSIONED_SYMS}
6646 RESULTING_SYMS=conftest.ver
6647 MK_SHARED_LIB=${MK_SHARED_LIB}
6648 conftest.so: conftest.$ac_cv_objext
6649 \$(MK_SHARED_LIB) conftest.$ac_cv_objext
6652 # compile source, make library
6653 if make -f conftest.mk 2>&5 >/dev/null
6655 # test for missing symbol
6656 cf_missing=`nm -P conftest.so 2>&5 |fgrep _ismissing | egrep '[ ]T[ ]'`
6657 test -n "$cf_missing" && WILDCARD_SYMS=yes
6659 echo "$as_me:6659: result: $WILDCARD_SYMS" >&5
6660 echo "${ECHO_T}$WILDCARD_SYMS" >&6
6669 # pretend that ncurses==ncursesw==ncursest
6670 echo "$as_me:6670: checking if you want to disable library suffixes" >&5
6671 echo $ECHO_N "checking if you want to disable library suffixes... $ECHO_C" >&6
6673 # Check whether --enable-lib-suffixes or --disable-lib-suffixes was given.
6674 if test "${enable_lib_suffixes+set}" = set; then
6675 enableval="$enable_lib_suffixes"
6676 test "$enableval" != no && enableval=yes
6677 if test "$enableval" != "yes" ; then
6678 disable_lib_suffixes=yes
6680 disable_lib_suffixes=no
6684 disable_lib_suffixes=no
6687 echo "$as_me:6687: result: $disable_lib_suffixes" >&5
6688 echo "${ECHO_T}$disable_lib_suffixes" >&6
6690 ### If we're building with rpath, try to link non-standard libs that way too.
6691 if test "$DFT_LWR_MODEL" = "shared"; then
6693 echo "$as_me:6693: checking if rpath-hack should be disabled" >&5
6694 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
6696 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
6697 if test "${enable_rpath_hack+set}" = set; then
6698 enableval="$enable_rpath_hack"
6699 test "$enableval" != no && enableval=yes
6700 if test "$enableval" != "yes" ; then
6701 cf_disable_rpath_hack=yes
6703 cf_disable_rpath_hack=no
6707 cf_disable_rpath_hack=no
6710 echo "$as_me:6710: result: $cf_disable_rpath_hack" >&5
6711 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
6712 if test "$cf_disable_rpath_hack" = no ; then
6714 echo "$as_me:6714: checking for updated LDFLAGS" >&5
6715 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
6716 if test -n "$LD_RPATH_OPT" ; then
6717 echo "$as_me:6717: result: maybe" >&5
6718 echo "${ECHO_T}maybe" >&6
6722 # Extract the first word of "$ac_prog", so it can be a program name with args.
6723 set dummy $ac_prog; ac_word=$2
6724 echo "$as_me:6724: checking for $ac_word" >&5
6725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6726 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
6727 echo $ECHO_N "(cached) $ECHO_C" >&6
6729 if test -n "$cf_ldd_prog"; then
6730 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
6732 ac_save_IFS=$IFS; IFS=$ac_path_separator
6734 for ac_dir in $ac_dummy; do
6736 test -z "$ac_dir" && ac_dir=.
6737 $as_executable_p "$ac_dir/$ac_word" || continue
6738 ac_cv_prog_cf_ldd_prog="$ac_prog"
6739 echo "$as_me:6739: found $ac_dir/$ac_word" >&5
6745 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
6746 if test -n "$cf_ldd_prog"; then
6747 echo "$as_me:6747: result: $cf_ldd_prog" >&5
6748 echo "${ECHO_T}$cf_ldd_prog" >&6
6750 echo "$as_me:6750: result: no" >&5
6751 echo "${ECHO_T}no" >&6
6754 test -n "$cf_ldd_prog" && break
6756 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
6758 cf_rpath_list="/usr/lib /lib"
6759 if test "$cf_ldd_prog" != no
6763 cat >conftest.$ac_ext <<_ACEOF
6764 #line 6764 "configure"
6765 #include "confdefs.h"
6775 rm -f conftest.$ac_objext conftest$ac_exeext
6776 if { (eval echo "$as_me:6776: \"$ac_link\"") >&5
6777 (eval $ac_link) 2>&5
6779 echo "$as_me:6779: \$? = $ac_status" >&5
6780 (exit $ac_status); } &&
6781 { ac_try='test -s conftest$ac_exeext'
6782 { (eval echo "$as_me:6782: \"$ac_try\"") >&5
6785 echo "$as_me:6785: \$? = $ac_status" >&5
6786 (exit $ac_status); }; }; then
6787 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
6788 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
6790 echo "$as_me: failed program was:" >&5
6791 cat conftest.$ac_ext >&5
6793 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6795 # If we passed the link-test, but get a "not found" on a given library,
6796 # this could be due to inept reconfiguration of gcc to make it only
6797 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
6798 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
6799 # /usr/local libraries.
6800 if test -n "$cf_rpath_oops"
6802 for cf_rpath_src in $cf_rpath_oops
6804 for cf_rpath_dir in \
6809 if test -f $cf_rpath_dir/lib/$cf_rpath_src
6811 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
6813 echo "${as_me:-configure}:6813: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
6815 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
6823 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
6825 echo "${as_me:-configure}:6825: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
6827 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
6829 echo "${as_me:-configure}:6829: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
6832 for cf_rpath_src in $LDFLAGS
6834 case $cf_rpath_src in
6837 # check if this refers to a directory which we will ignore
6839 if test -n "$cf_rpath_list"
6841 for cf_rpath_item in $cf_rpath_list
6843 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
6851 if test "$cf_rpath_skip" = no
6853 # transform the option
6854 if test "$LD_RPATH_OPT" = "-R " ; then
6855 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
6857 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
6860 # if we have not already added this, add it now
6861 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
6862 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
6864 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
6866 echo "${as_me:-configure}:6866: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
6868 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
6873 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
6875 LDFLAGS=$cf_rpath_dst
6877 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
6879 echo "${as_me:-configure}:6879: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
6881 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
6883 echo "${as_me:-configure}:6883: testing ...checking LIBS $LIBS ..." 1>&5
6886 for cf_rpath_src in $LIBS
6888 case $cf_rpath_src in
6891 # check if this refers to a directory which we will ignore
6893 if test -n "$cf_rpath_list"
6895 for cf_rpath_item in $cf_rpath_list
6897 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
6905 if test "$cf_rpath_skip" = no
6907 # transform the option
6908 if test "$LD_RPATH_OPT" = "-R " ; then
6909 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
6911 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
6914 # if we have not already added this, add it now
6915 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
6916 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
6918 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
6920 echo "${as_me:-configure}:6920: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
6922 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
6927 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
6931 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
6933 echo "${as_me:-configure}:6933: testing ...checked LIBS $LIBS ..." 1>&5
6935 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
6937 echo "${as_me:-configure}:6937: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
6940 echo "$as_me:6940: result: no" >&5
6941 echo "${ECHO_T}no" >&6
6948 ###############################################################################
6950 ### use option --with-extra-suffix to append suffix to headers and libraries
6951 echo "$as_me:6951: checking if you wish to append extra suffix to header/library paths" >&5
6952 echo $ECHO_N "checking if you wish to append extra suffix to header/library paths... $ECHO_C" >&6
6955 # Check whether --with-extra-suffix or --without-extra-suffix was given.
6956 if test "${with_extra_suffix+set}" = set; then
6957 withval="$with_extra_suffix"
6962 EXTRA_SUFFIX=$cf_cv_abi_version
6965 EXTRA_SUFFIX=$withval
6970 echo "$as_me:6970: result: $EXTRA_SUFFIX" >&5
6971 echo "${ECHO_T}$EXTRA_SUFFIX" >&6
6973 ### use option --disable-overwrite to leave out the link to -lcurses
6974 echo "$as_me:6974: checking if you wish to install ncurses overwriting curses" >&5
6975 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
6977 # Check whether --enable-overwrite or --disable-overwrite was given.
6978 if test "${enable_overwrite+set}" = set; then
6979 enableval="$enable_overwrite"
6980 with_overwrite=$enableval
6982 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
6984 echo "$as_me:6984: result: $with_overwrite" >&5
6985 echo "${ECHO_T}$with_overwrite" >&6
6987 echo "$as_me:6987: checking if external terminfo-database is used" >&5
6988 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
6990 # Check whether --enable-database or --disable-database was given.
6991 if test "${enable_database+set}" = set; then
6992 enableval="$enable_database"
6993 use_database=$enableval
6997 echo "$as_me:6997: result: $use_database" >&5
6998 echo "${ECHO_T}$use_database" >&6
7002 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
7005 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
7009 NCURSES_USE_DATABASE=0
7010 if test "$use_database" != no ; then
7011 NCURSES_USE_DATABASE=1
7013 echo "$as_me:7013: checking which terminfo source-file will be installed" >&5
7014 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
7016 # Check whether --with-database or --without-database was given.
7017 if test "${with_database+set}" = set; then
7018 withval="$with_database"
7019 TERMINFO_SRC=$withval
7021 echo "$as_me:7021: result: $TERMINFO_SRC" >&5
7022 echo "${ECHO_T}$TERMINFO_SRC" >&6
7024 echo "$as_me:7024: checking whether to use hashed database instead of directory/tree" >&5
7025 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
7027 # Check whether --with-hashed-db or --without-hashed-db was given.
7028 if test "${with_hashed_db+set}" = set; then
7029 withval="$with_hashed_db"
7034 echo "$as_me:7034: result: $with_hashed_db" >&5
7035 echo "${ECHO_T}$with_hashed_db" >&6
7040 echo "$as_me:7040: checking for list of fallback descriptions" >&5
7041 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
7043 # Check whether --with-fallbacks or --without-fallbacks was given.
7044 if test "${with_fallbacks+set}" = set; then
7045 withval="$with_fallbacks"
7046 with_fallback=$withval
7050 echo "$as_me:7050: result: $with_fallback" >&5
7051 echo "${ECHO_T}$with_fallback" >&6
7052 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
7054 echo "$as_me:7054: checking if you want modern xterm or antique" >&5
7055 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
7057 # Check whether --with-xterm-new or --without-xterm-new was given.
7058 if test "${with_xterm_new+set}" = set; then
7059 withval="$with_xterm_new"
7060 with_xterm_new=$withval
7064 case $with_xterm_new in
7065 (no) with_xterm_new=xterm-old;;
7066 (*) with_xterm_new=xterm-new;;
7068 echo "$as_me:7068: result: $with_xterm_new" >&5
7069 echo "${ECHO_T}$with_xterm_new" >&6
7070 WHICH_XTERM=$with_xterm_new
7072 echo "$as_me:7072: checking if xterm backspace sends BS or DEL" >&5
7073 echo $ECHO_N "checking if xterm backspace sends BS or DEL... $ECHO_C" >&6
7075 # Check whether --with-xterm-kbs or --without-xterm-kbs was given.
7076 if test "${with_xterm_kbs+set}" = set; then
7077 withval="$with_xterm_kbs"
7078 with_xterm_kbs=$withval
7082 case x$with_xterm_kbs in
7083 (xyes|xno|xBS|xbs|x8)
7090 with_xterm_kbs=$withval
7093 echo "$as_me:7093: result: $with_xterm_kbs" >&5
7094 echo "${ECHO_T}$with_xterm_kbs" >&6
7095 XTERM_KBS=$with_xterm_kbs
7098 if test "$use_database" = no ; then
7099 TERMINFO="${datadir}/terminfo"
7103 echo "$as_me:7103: checking for list of terminfo directories" >&5
7104 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
7106 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
7107 if test "${with_terminfo_dirs+set}" = set; then
7108 withval="$with_terminfo_dirs"
7111 withval=${TERMINFO_DIRS:-${datadir}/terminfo}
7113 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
7115 for cf_src_path in $withval
7118 if test "x$prefix" != xNONE; then
7119 cf_path_syntax="$prefix"
7121 cf_path_syntax="$ac_default_prefix"
7124 case ".$cf_src_path" in
7129 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
7131 (.\${*prefix}*|.\${*dir}*)
7132 eval cf_src_path="$cf_src_path"
7133 case ".$cf_src_path" in
7135 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
7140 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
7143 { { echo "$as_me:7143: error: expected a pathname, not \"$cf_src_path\"" >&5
7144 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
7145 { (exit 1); exit 1; }; }
7149 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
7150 cf_dst_path="${cf_dst_path}${cf_src_path}"
7154 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
7155 # so we have to check/work around. We do prefer the result of "eval"...
7156 eval cf_dst_eval="$cf_dst_path"
7157 case "x$cf_dst_eval" in
7159 TERMINFO_DIRS=$cf_dst_path
7162 TERMINFO_DIRS="$cf_dst_eval"
7166 echo "$as_me:7166: result: $TERMINFO_DIRS" >&5
7167 echo "${ECHO_T}$TERMINFO_DIRS" >&6
7168 test -n "$TERMINFO_DIRS" &&
7169 cat >>confdefs.h <<EOF
7170 #define TERMINFO_DIRS "$TERMINFO_DIRS"
7173 echo "$as_me:7173: checking for default terminfo directory" >&5
7174 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
7176 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
7177 if test "${with_default_terminfo_dir+set}" = set; then
7178 withval="$with_default_terminfo_dir"
7181 withval="${TERMINFO:-${datadir}/terminfo}"
7182 fi; if test -n "${datadir}/terminfo" ; then
7184 if test "x$prefix" != xNONE; then
7185 cf_path_syntax="$prefix"
7187 cf_path_syntax="$ac_default_prefix"
7195 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
7197 (.\${*prefix}*|.\${*dir}*)
7198 eval withval="$withval"
7201 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
7206 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
7209 { { echo "$as_me:7209: error: expected a pathname, not \"$withval\"" >&5
7210 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
7211 { (exit 1); exit 1; }; }
7216 eval TERMINFO="$withval"
7218 echo "$as_me:7218: result: $TERMINFO" >&5
7219 echo "${ECHO_T}$TERMINFO" >&6
7221 cat >>confdefs.h <<EOF
7222 #define TERMINFO "$TERMINFO"
7227 ### use option --disable-big-core to make tic run on small machines
7228 ### We need 4Mb, check if we can allocate 50% more than that.
7229 echo "$as_me:7229: checking if big-core option selected" >&5
7230 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
7232 # Check whether --enable-big-core or --disable-big-core was given.
7233 if test "${enable_big_core+set}" = set; then
7234 enableval="$enable_big_core"
7235 with_big_core=$enableval
7237 if test "$cross_compiling" = yes; then
7240 cat >conftest.$ac_ext <<_ACEOF
7241 #line 7241 "configure"
7242 #include "confdefs.h"
7247 unsigned long n = 6000000L;
7248 char *s = malloc(n);
7251 ${cf_cv_main_return:-return}(s == 0);
7254 rm -f conftest$ac_exeext
7255 if { (eval echo "$as_me:7255: \"$ac_link\"") >&5
7256 (eval $ac_link) 2>&5
7258 echo "$as_me:7258: \$? = $ac_status" >&5
7259 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7260 { (eval echo "$as_me:7260: \"$ac_try\"") >&5
7263 echo "$as_me:7263: \$? = $ac_status" >&5
7264 (exit $ac_status); }; }; then
7267 echo "$as_me: program exited with status $ac_status" >&5
7268 echo "$as_me: failed program was:" >&5
7269 cat conftest.$ac_ext >&5
7272 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7275 echo "$as_me:7275: result: $with_big_core" >&5
7276 echo "${ECHO_T}$with_big_core" >&6
7277 test "x$with_big_core" = "xyes" &&
7278 cat >>confdefs.h <<\EOF
7279 #define HAVE_BIG_CORE 1
7282 ### ISO C only guarantees 512-char strings, we have tables which load faster
7283 ### when constructed using "big" strings. More than the C compiler, the awk
7284 ### program is a limit on most vendor UNIX systems. Check that we can build.
7285 echo "$as_me:7285: checking if big-strings option selected" >&5
7286 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
7288 # Check whether --enable-big-strings or --disable-big-strings was given.
7289 if test "${enable_big_strings+set}" = set; then
7290 enableval="$enable_big_strings"
7291 with_big_strings=$enableval
7296 eval with_big_strings=no
7299 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' 2>/dev/null \
7300 | $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
7301 eval with_big_strings=yes
7303 eval with_big_strings=no
7309 echo "$as_me:7309: result: $with_big_strings" >&5
7310 echo "${ECHO_T}$with_big_strings" >&6
7313 test "x$with_big_strings" = "xyes" && USE_BIG_STRINGS=1
7315 ### use option --enable-termcap to compile in the termcap fallback support
7316 echo "$as_me:7316: checking if you want termcap-fallback support" >&5
7317 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
7319 # Check whether --enable-termcap or --disable-termcap was given.
7320 if test "${enable_termcap+set}" = set; then
7321 enableval="$enable_termcap"
7322 with_termcap=$enableval
7326 echo "$as_me:7326: result: $with_termcap" >&5
7327 echo "${ECHO_T}$with_termcap" >&6
7329 NCURSES_USE_TERMCAP=0
7330 if test "x$with_termcap" != "xyes" ; then
7331 if test "$use_database" = no ; then
7332 if test -z "$with_fallback" ; then
7333 { { echo "$as_me:7333: error: You have disabled the database w/o specifying fallbacks" >&5
7334 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
7335 { (exit 1); exit 1; }; }
7339 cat >>confdefs.h <<\EOF
7340 #define PURE_TERMINFO 1
7345 if test "$with_ticlib" != no ; then
7346 { { echo "$as_me:7346: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
7347 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
7348 { (exit 1); exit 1; }; }
7351 NCURSES_USE_TERMCAP=1
7352 echo "$as_me:7352: checking for list of termcap files" >&5
7353 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
7355 # Check whether --with-termpath or --without-termpath was given.
7356 if test "${with_termpath+set}" = set; then
7357 withval="$with_termpath"
7360 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap}
7362 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
7364 for cf_src_path in $withval
7367 if test "x$prefix" != xNONE; then
7368 cf_path_syntax="$prefix"
7370 cf_path_syntax="$ac_default_prefix"
7373 case ".$cf_src_path" in
7378 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
7380 (.\${*prefix}*|.\${*dir}*)
7381 eval cf_src_path="$cf_src_path"
7382 case ".$cf_src_path" in
7384 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
7389 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
7392 { { echo "$as_me:7392: error: expected a pathname, not \"$cf_src_path\"" >&5
7393 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
7394 { (exit 1); exit 1; }; }
7398 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
7399 cf_dst_path="${cf_dst_path}${cf_src_path}"
7403 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
7404 # so we have to check/work around. We do prefer the result of "eval"...
7405 eval cf_dst_eval="$cf_dst_path"
7406 case "x$cf_dst_eval" in
7408 TERMPATH=$cf_dst_path
7411 TERMPATH="$cf_dst_eval"
7415 echo "$as_me:7415: result: $TERMPATH" >&5
7416 echo "${ECHO_T}$TERMPATH" >&6
7417 test -n "$TERMPATH" &&
7418 cat >>confdefs.h <<EOF
7419 #define TERMPATH "$TERMPATH"
7422 ### use option --enable-getcap to use a hacked getcap for reading termcaps
7423 echo "$as_me:7423: checking if fast termcap-loader is needed" >&5
7424 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
7426 # Check whether --enable-getcap or --disable-getcap was given.
7427 if test "${enable_getcap+set}" = set; then
7428 enableval="$enable_getcap"
7429 with_getcap=$enableval
7433 echo "$as_me:7433: result: $with_getcap" >&5
7434 echo "${ECHO_T}$with_getcap" >&6
7435 test "x$with_getcap" = "xyes" &&
7436 cat >>confdefs.h <<\EOF
7437 #define USE_GETCAP 1
7440 echo "$as_me:7440: checking if translated termcaps will be cached in ~/.terminfo" >&5
7441 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
7443 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
7444 if test "${enable_getcap_cache+set}" = set; then
7445 enableval="$enable_getcap_cache"
7446 with_getcap_cache=$enableval
7448 with_getcap_cache=no
7450 echo "$as_me:7450: result: $with_getcap_cache" >&5
7451 echo "${ECHO_T}$with_getcap_cache" >&6
7452 test "x$with_getcap_cache" = "xyes" &&
7453 cat >>confdefs.h <<\EOF
7454 #define USE_GETCAP_CACHE 1
7459 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
7460 echo "$as_me:7460: checking if ~/.terminfo is wanted" >&5
7461 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
7463 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
7464 if test "${enable_home_terminfo+set}" = set; then
7465 enableval="$enable_home_terminfo"
7466 with_home_terminfo=$enableval
7468 with_home_terminfo=yes
7470 echo "$as_me:7470: result: $with_home_terminfo" >&5
7471 echo "${ECHO_T}$with_home_terminfo" >&6
7472 test "x$with_home_terminfo" = "xyes" &&
7473 cat >>confdefs.h <<\EOF
7474 #define USE_HOME_TERMINFO 1
7477 echo "$as_me:7477: checking if you want to use restricted environment when running as root" >&5
7478 echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6
7480 # Check whether --enable-root-environ or --disable-root-environ was given.
7481 if test "${enable_root_environ+set}" = set; then
7482 enableval="$enable_root_environ"
7483 with_root_environ=$enableval
7485 with_root_environ=yes
7487 echo "$as_me:7487: result: $with_root_environ" >&5
7488 echo "${ECHO_T}$with_root_environ" >&6
7489 test "x$with_root_environ" = xyes &&
7490 cat >>confdefs.h <<\EOF
7491 #define USE_ROOT_ENVIRON 1
7494 ### Use option --enable-symlinks to make tic use symlinks, not hard links
7495 ### to reduce storage requirements for the terminfo database.
7501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7502 echo "$as_me:7502: checking for $ac_func" >&5
7503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7504 if eval "test \"\${$as_ac_var+set}\" = set"; then
7505 echo $ECHO_N "(cached) $ECHO_C" >&6
7507 cat >conftest.$ac_ext <<_ACEOF
7508 #line 7508 "configure"
7509 #include "confdefs.h"
7510 /* System header to define __stub macros and hopefully few prototypes,
7511 which can conflict with char $ac_func (); below. */
7513 /* Override any gcc2 internal prototype to avoid an error. */
7517 /* We use char because int might match the return type of a gcc2
7518 builtin and then its argument prototype would still apply. */
7525 /* The GNU C library defines this for functions which it implements
7526 to always fail with ENOSYS. Some functions are actually named
7527 something starting with __ and the normal name is an alias. */
7528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7531 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
7538 rm -f conftest.$ac_objext conftest$ac_exeext
7539 if { (eval echo "$as_me:7539: \"$ac_link\"") >&5
7540 (eval $ac_link) 2>&5
7542 echo "$as_me:7542: \$? = $ac_status" >&5
7543 (exit $ac_status); } &&
7544 { ac_try='test -s conftest$ac_exeext'
7545 { (eval echo "$as_me:7545: \"$ac_try\"") >&5
7548 echo "$as_me:7548: \$? = $ac_status" >&5
7549 (exit $ac_status); }; }; then
7550 eval "$as_ac_var=yes"
7552 echo "$as_me: failed program was:" >&5
7553 cat conftest.$ac_ext >&5
7554 eval "$as_ac_var=no"
7556 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7558 echo "$as_me:7558: result: `eval echo '${'$as_ac_var'}'`" >&5
7559 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7560 if test `eval echo '${'$as_ac_var'}'` = yes; then
7561 cat >>confdefs.h <<EOF
7562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7568 if test "$cross_compiling" = yes ; then
7574 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7575 echo "$as_me:7575: checking for $ac_func" >&5
7576 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7577 if eval "test \"\${$as_ac_var+set}\" = set"; then
7578 echo $ECHO_N "(cached) $ECHO_C" >&6
7580 cat >conftest.$ac_ext <<_ACEOF
7581 #line 7581 "configure"
7582 #include "confdefs.h"
7583 /* System header to define __stub macros and hopefully few prototypes,
7584 which can conflict with char $ac_func (); below. */
7586 /* Override any gcc2 internal prototype to avoid an error. */
7590 /* We use char because int might match the return type of a gcc2
7591 builtin and then its argument prototype would still apply. */
7598 /* The GNU C library defines this for functions which it implements
7599 to always fail with ENOSYS. Some functions are actually named
7600 something starting with __ and the normal name is an alias. */
7601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7604 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
7611 rm -f conftest.$ac_objext conftest$ac_exeext
7612 if { (eval echo "$as_me:7612: \"$ac_link\"") >&5
7613 (eval $ac_link) 2>&5
7615 echo "$as_me:7615: \$? = $ac_status" >&5
7616 (exit $ac_status); } &&
7617 { ac_try='test -s conftest$ac_exeext'
7618 { (eval echo "$as_me:7618: \"$ac_try\"") >&5
7621 echo "$as_me:7621: \$? = $ac_status" >&5
7622 (exit $ac_status); }; }; then
7623 eval "$as_ac_var=yes"
7625 echo "$as_me: failed program was:" >&5
7626 cat conftest.$ac_ext >&5
7627 eval "$as_ac_var=no"
7629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7631 echo "$as_me:7631: result: `eval echo '${'$as_ac_var'}'`" >&5
7632 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7633 if test `eval echo '${'$as_ac_var'}'` = yes; then
7634 cat >>confdefs.h <<EOF
7635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7642 echo "$as_me:7642: checking if link/symlink functions work" >&5
7643 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
7644 if test "${cf_cv_link_funcs+set}" = set; then
7645 echo $ECHO_N "(cached) $ECHO_C" >&6
7649 for cf_func in link symlink ; do
7650 if test "$cross_compiling" = yes; then
7652 eval 'ac_cv_func_'$cf_func'=error'
7654 cat >conftest.$ac_ext <<_ACEOF
7655 #line 7655 "configure"
7656 #include "confdefs.h"
7658 #include <sys/types.h>
7659 #include <sys/stat.h>
7660 #ifdef HAVE_UNISTD_H
7666 char *src = "config.log";
7667 char *dst = "conftest.chk";
7672 fail = ($cf_func("config.log", "conftest.chk") < 0)
7673 || (stat(dst, &dst_sb) < 0)
7674 || (dst_sb.st_mtime != src_sb.st_mtime);
7680 ${cf_cv_main_return:-return} (fail);
7684 rm -f conftest$ac_exeext
7685 if { (eval echo "$as_me:7685: \"$ac_link\"") >&5
7686 (eval $ac_link) 2>&5
7688 echo "$as_me:7688: \$? = $ac_status" >&5
7689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7690 { (eval echo "$as_me:7690: \"$ac_try\"") >&5
7693 echo "$as_me:7693: \$? = $ac_status" >&5
7694 (exit $ac_status); }; }; then
7696 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
7697 eval 'ac_cv_func_'$cf_func'=yes'
7699 echo "$as_me: program exited with status $ac_status" >&5
7700 echo "$as_me: failed program was:" >&5
7701 cat conftest.$ac_ext >&5
7703 eval 'ac_cv_func_'$cf_func'=no'
7705 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7708 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
7711 echo "$as_me:7711: result: $cf_cv_link_funcs" >&5
7712 echo "${ECHO_T}$cf_cv_link_funcs" >&6
7713 test "$ac_cv_func_link" = yes &&
7714 cat >>confdefs.h <<\EOF
7718 test "$ac_cv_func_symlink" = yes &&
7719 cat >>confdefs.h <<\EOF
7720 #define HAVE_SYMLINK 1
7728 # soft links (symbolic links) are useful for some systems where hard links do
7729 # not work, or to make it simpler to copy terminfo trees around.
7730 if test "x$ac_cv_func_symlink" = xyes ; then
7731 echo "$as_me:7731: checking if tic should use symbolic links" >&5
7732 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
7734 # Check whether --enable-symlinks or --disable-symlinks was given.
7735 if test "${enable_symlinks+set}" = set; then
7736 enableval="$enable_symlinks"
7737 with_symlinks=$enableval
7741 echo "$as_me:7741: result: $with_symlinks" >&5
7742 echo "${ECHO_T}$with_symlinks" >&6
7745 # If we have hard links and did not choose to use soft links instead, there is
7746 # no reason to make this choice optional - use the hard links.
7747 if test "$with_symlinks" = no ; then
7748 echo "$as_me:7748: checking if tic should use hard links" >&5
7749 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
7750 if test "x$ac_cv_func_link" = xyes ; then
7755 echo "$as_me:7755: result: $with_links" >&5
7756 echo "${ECHO_T}$with_links" >&6
7759 test "x$with_links" = xyes &&
7760 cat >>confdefs.h <<\EOF
7764 test "x$with_symlinks" = xyes &&
7765 cat >>confdefs.h <<\EOF
7766 #define USE_SYMLINKS 1
7769 ### use option --enable-broken-linker to force on use of broken-linker support
7770 echo "$as_me:7770: checking if you want broken-linker support code" >&5
7771 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
7773 # Check whether --enable-broken_linker or --disable-broken_linker was given.
7774 if test "${enable_broken_linker+set}" = set; then
7775 enableval="$enable_broken_linker"
7776 with_broken_linker=$enableval
7778 with_broken_linker=${BROKEN_LINKER:-no}
7780 echo "$as_me:7780: result: $with_broken_linker" >&5
7781 echo "${ECHO_T}$with_broken_linker" >&6
7784 if test "x$with_broken_linker" = xyes ; then
7786 cat >>confdefs.h <<\EOF
7787 #define BROKEN_LINKER 1
7791 elif test "$DFT_LWR_MODEL" = shared ; then
7792 case $cf_cv_system_name in
7795 cat >>confdefs.h <<\EOF
7796 #define BROKEN_LINKER 1
7800 test -n "$verbose" && echo " cygwin linker is broken anyway" 1>&6
7802 echo "${as_me:-configure}:7802: testing cygwin linker is broken anyway ..." 1>&5
7808 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
7809 echo "$as_me:7809: checking if tputs should process BSD-style prefix padding" >&5
7810 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
7812 # Check whether --enable-bsdpad or --disable-bsdpad was given.
7813 if test "${enable_bsdpad+set}" = set; then
7814 enableval="$enable_bsdpad"
7815 with_bsdpad=$enableval
7819 echo "$as_me:7819: result: $with_bsdpad" >&5
7820 echo "${ECHO_T}$with_bsdpad" >&6
7821 test "x$with_bsdpad" = xyes &&
7822 cat >>confdefs.h <<\EOF
7826 ### use option --enable-widec to turn on use of wide-character support
7835 # Check to define _XOPEN_SOURCE "automatically"
7836 CPPFLAGS_before_XOPEN="$CPPFLAGS"
7839 cf_POSIX_C_SOURCE=199506L
7844 cf_xopen_source="-D_ALL_SOURCE"
7850 cf_xopen_source="-D_APPLE_C_SOURCE"
7853 cf_xopen_source="-D_DARWIN_C_SOURCE"
7856 (freebsd*|dragonfly*)
7857 # 5.x headers associate
7858 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
7859 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
7860 cf_POSIX_C_SOURCE=200112L
7862 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
7865 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
7868 cf_xopen_source="-D_HPUX_SOURCE"
7871 cf_xopen_source="-D_SGI_SOURCE"
7874 (linux*|gnu*|mint*|k*bsd*-gnu)
7876 echo "$as_me:7876: checking if we must define _GNU_SOURCE" >&5
7877 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
7878 if test "${cf_cv_gnu_source+set}" = set; then
7879 echo $ECHO_N "(cached) $ECHO_C" >&6
7882 cat >conftest.$ac_ext <<_ACEOF
7883 #line 7883 "configure"
7884 #include "confdefs.h"
7885 #include <sys/types.h>
7890 #ifndef _XOPEN_SOURCE
7897 rm -f conftest.$ac_objext
7898 if { (eval echo "$as_me:7898: \"$ac_compile\"") >&5
7899 (eval $ac_compile) 2>&5
7901 echo "$as_me:7901: \$? = $ac_status" >&5
7902 (exit $ac_status); } &&
7903 { ac_try='test -s conftest.$ac_objext'
7904 { (eval echo "$as_me:7904: \"$ac_try\"") >&5
7907 echo "$as_me:7907: \$? = $ac_status" >&5
7908 (exit $ac_status); }; }; then
7911 echo "$as_me: failed program was:" >&5
7912 cat conftest.$ac_ext >&5
7914 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7915 cat >conftest.$ac_ext <<_ACEOF
7916 #line 7916 "configure"
7917 #include "confdefs.h"
7918 #include <sys/types.h>
7923 #ifdef _XOPEN_SOURCE
7930 rm -f conftest.$ac_objext
7931 if { (eval echo "$as_me:7931: \"$ac_compile\"") >&5
7932 (eval $ac_compile) 2>&5
7934 echo "$as_me:7934: \$? = $ac_status" >&5
7935 (exit $ac_status); } &&
7936 { ac_try='test -s conftest.$ac_objext'
7937 { (eval echo "$as_me:7937: \"$ac_try\"") >&5
7940 echo "$as_me:7940: \$? = $ac_status" >&5
7941 (exit $ac_status); }; }; then
7944 echo "$as_me: failed program was:" >&5
7945 cat conftest.$ac_ext >&5
7946 cf_cv_gnu_source=yes
7948 rm -f conftest.$ac_objext conftest.$ac_ext
7952 rm -f conftest.$ac_objext conftest.$ac_ext
7955 echo "$as_me:7955: result: $cf_cv_gnu_source" >&5
7956 echo "${ECHO_T}$cf_cv_gnu_source" >&6
7957 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7961 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
7964 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
7967 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
7969 cf_save_CFLAGS="$CFLAGS"
7970 cf_save_CPPFLAGS="$CPPFLAGS"
7972 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
7973 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7974 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7976 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
7977 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7978 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7980 echo "$as_me:7980: checking if we should define _POSIX_C_SOURCE" >&5
7981 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
7982 if test "${cf_cv_posix_c_source+set}" = set; then
7983 echo $ECHO_N "(cached) $ECHO_C" >&6
7986 echo "${as_me:-configure}:7986: testing if the symbol is already defined go no further ..." 1>&5
7988 cat >conftest.$ac_ext <<_ACEOF
7989 #line 7989 "configure"
7990 #include "confdefs.h"
7991 #include <sys/types.h>
7996 #ifndef _POSIX_C_SOURCE
8003 rm -f conftest.$ac_objext
8004 if { (eval echo "$as_me:8004: \"$ac_compile\"") >&5
8005 (eval $ac_compile) 2>&5
8007 echo "$as_me:8007: \$? = $ac_status" >&5
8008 (exit $ac_status); } &&
8009 { ac_try='test -s conftest.$ac_objext'
8010 { (eval echo "$as_me:8010: \"$ac_try\"") >&5
8013 echo "$as_me:8013: \$? = $ac_status" >&5
8014 (exit $ac_status); }; }; then
8015 cf_cv_posix_c_source=no
8017 echo "$as_me: failed program was:" >&5
8018 cat conftest.$ac_ext >&5
8019 cf_want_posix_source=no
8020 case .$cf_POSIX_C_SOURCE in
8022 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8025 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8026 cf_want_posix_source=yes
8029 cf_want_posix_source=yes
8032 if test "$cf_want_posix_source" = yes ; then
8033 cat >conftest.$ac_ext <<_ACEOF
8034 #line 8034 "configure"
8035 #include "confdefs.h"
8036 #include <sys/types.h>
8041 #ifdef _POSIX_SOURCE
8048 rm -f conftest.$ac_objext
8049 if { (eval echo "$as_me:8049: \"$ac_compile\"") >&5
8050 (eval $ac_compile) 2>&5
8052 echo "$as_me:8052: \$? = $ac_status" >&5
8053 (exit $ac_status); } &&
8054 { ac_try='test -s conftest.$ac_objext'
8055 { (eval echo "$as_me:8055: \"$ac_try\"") >&5
8058 echo "$as_me:8058: \$? = $ac_status" >&5
8059 (exit $ac_status); }; }; then
8062 echo "$as_me: failed program was:" >&5
8063 cat conftest.$ac_ext >&5
8064 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
8066 rm -f conftest.$ac_objext conftest.$ac_ext
8069 echo "${as_me:-configure}:8069: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
8071 CFLAGS="$cf_trim_CFLAGS"
8072 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
8074 echo "${as_me:-configure}:8074: testing if the second compile does not leave our definition intact error ..." 1>&5
8076 cat >conftest.$ac_ext <<_ACEOF
8077 #line 8077 "configure"
8078 #include "confdefs.h"
8079 #include <sys/types.h>
8084 #ifndef _POSIX_C_SOURCE
8091 rm -f conftest.$ac_objext
8092 if { (eval echo "$as_me:8092: \"$ac_compile\"") >&5
8093 (eval $ac_compile) 2>&5
8095 echo "$as_me:8095: \$? = $ac_status" >&5
8096 (exit $ac_status); } &&
8097 { ac_try='test -s conftest.$ac_objext'
8098 { (eval echo "$as_me:8098: \"$ac_try\"") >&5
8101 echo "$as_me:8101: \$? = $ac_status" >&5
8102 (exit $ac_status); }; }; then
8105 echo "$as_me: failed program was:" >&5
8106 cat conftest.$ac_ext >&5
8107 cf_cv_posix_c_source=no
8109 rm -f conftest.$ac_objext conftest.$ac_ext
8110 CFLAGS="$cf_save_CFLAGS"
8111 CPPFLAGS="$cf_save_CPPFLAGS"
8114 rm -f conftest.$ac_objext conftest.$ac_ext
8117 echo "$as_me:8117: result: $cf_cv_posix_c_source" >&5
8118 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
8120 if test "$cf_cv_posix_c_source" != no ; then
8121 CFLAGS="$cf_trim_CFLAGS"
8122 CPPFLAGS="$cf_trim_CPPFLAGS"
8127 cf_new_extra_cppflags=
8129 for cf_add_cflags in $cf_cv_posix_c_source
8131 case $cf_fix_cppflags in
8133 case $cf_add_cflags in
8134 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8135 case $cf_add_cflags in
8137 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8139 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8140 && test -z "${cf_tst_cflags}" \
8141 && cf_fix_cppflags=yes
8143 if test $cf_fix_cppflags = yes ; then
8144 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8146 elif test "${cf_tst_cflags}" = "\"'" ; then
8147 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8156 case $cf_add_cflags in
8158 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8160 CPPFLAGS=`echo "$CPPFLAGS" | \
8161 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8162 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8166 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8171 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8176 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8178 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8180 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8181 && test -z "${cf_tst_cflags}" \
8182 && cf_fix_cppflags=no
8187 if test -n "$cf_new_cflags" ; then
8189 CFLAGS="$CFLAGS $cf_new_cflags"
8192 if test -n "$cf_new_cppflags" ; then
8194 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8197 if test -n "$cf_new_extra_cppflags" ; then
8199 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8206 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
8209 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
8210 cf_xopen_source="-D_BSD_SOURCE"
8214 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
8217 cf_xopen_source="-D_OSF_SOURCE"
8220 cf_xopen_source="-D_QNX_SOURCE"
8223 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
8226 cf_xopen_source="-D__EXTENSIONS__"
8227 cf_cv_xopen_source=broken
8229 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
8235 echo "$as_me:8235: checking if we should define _XOPEN_SOURCE" >&5
8236 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
8237 if test "${cf_cv_xopen_source+set}" = set; then
8238 echo $ECHO_N "(cached) $ECHO_C" >&6
8241 cat >conftest.$ac_ext <<_ACEOF
8242 #line 8242 "configure"
8243 #include "confdefs.h"
8247 #include <sys/types.h>
8253 #ifndef _XOPEN_SOURCE
8260 rm -f conftest.$ac_objext
8261 if { (eval echo "$as_me:8261: \"$ac_compile\"") >&5
8262 (eval $ac_compile) 2>&5
8264 echo "$as_me:8264: \$? = $ac_status" >&5
8265 (exit $ac_status); } &&
8266 { ac_try='test -s conftest.$ac_objext'
8267 { (eval echo "$as_me:8267: \"$ac_try\"") >&5
8270 echo "$as_me:8270: \$? = $ac_status" >&5
8271 (exit $ac_status); }; }; then
8272 cf_cv_xopen_source=no
8274 echo "$as_me: failed program was:" >&5
8275 cat conftest.$ac_ext >&5
8277 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
8278 cat >conftest.$ac_ext <<_ACEOF
8279 #line 8279 "configure"
8280 #include "confdefs.h"
8284 #include <sys/types.h>
8290 #ifdef _XOPEN_SOURCE
8297 rm -f conftest.$ac_objext
8298 if { (eval echo "$as_me:8298: \"$ac_compile\"") >&5
8299 (eval $ac_compile) 2>&5
8301 echo "$as_me:8301: \$? = $ac_status" >&5
8302 (exit $ac_status); } &&
8303 { ac_try='test -s conftest.$ac_objext'
8304 { (eval echo "$as_me:8304: \"$ac_try\"") >&5
8307 echo "$as_me:8307: \$? = $ac_status" >&5
8308 (exit $ac_status); }; }; then
8309 cf_cv_xopen_source=no
8311 echo "$as_me: failed program was:" >&5
8312 cat conftest.$ac_ext >&5
8313 cf_cv_xopen_source=$cf_XOPEN_SOURCE
8315 rm -f conftest.$ac_objext conftest.$ac_ext
8319 rm -f conftest.$ac_objext conftest.$ac_ext
8322 echo "$as_me:8322: result: $cf_cv_xopen_source" >&5
8323 echo "${ECHO_T}$cf_cv_xopen_source" >&6
8325 if test "$cf_cv_xopen_source" != no ; then
8327 CFLAGS=`echo "$CFLAGS" | \
8328 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8329 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8331 CPPFLAGS=`echo "$CPPFLAGS" | \
8332 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8333 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8335 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
8340 cf_new_extra_cppflags=
8342 for cf_add_cflags in $cf_temp_xopen_source
8344 case $cf_fix_cppflags in
8346 case $cf_add_cflags in
8347 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8348 case $cf_add_cflags in
8350 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8352 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8353 && test -z "${cf_tst_cflags}" \
8354 && cf_fix_cppflags=yes
8356 if test $cf_fix_cppflags = yes ; then
8357 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8359 elif test "${cf_tst_cflags}" = "\"'" ; then
8360 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8369 case $cf_add_cflags in
8371 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8373 CPPFLAGS=`echo "$CPPFLAGS" | \
8374 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8375 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8379 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8384 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8389 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8391 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8393 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8394 && test -z "${cf_tst_cflags}" \
8395 && cf_fix_cppflags=no
8400 if test -n "$cf_new_cflags" ; then
8402 CFLAGS="$CFLAGS $cf_new_cflags"
8405 if test -n "$cf_new_cppflags" ; then
8407 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8410 if test -n "$cf_new_extra_cppflags" ; then
8412 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8417 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
8419 cf_save_CFLAGS="$CFLAGS"
8420 cf_save_CPPFLAGS="$CPPFLAGS"
8422 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
8423 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8424 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
8426 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
8427 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8428 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
8430 echo "$as_me:8430: checking if we should define _POSIX_C_SOURCE" >&5
8431 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
8432 if test "${cf_cv_posix_c_source+set}" = set; then
8433 echo $ECHO_N "(cached) $ECHO_C" >&6
8436 echo "${as_me:-configure}:8436: testing if the symbol is already defined go no further ..." 1>&5
8438 cat >conftest.$ac_ext <<_ACEOF
8439 #line 8439 "configure"
8440 #include "confdefs.h"
8441 #include <sys/types.h>
8446 #ifndef _POSIX_C_SOURCE
8453 rm -f conftest.$ac_objext
8454 if { (eval echo "$as_me:8454: \"$ac_compile\"") >&5
8455 (eval $ac_compile) 2>&5
8457 echo "$as_me:8457: \$? = $ac_status" >&5
8458 (exit $ac_status); } &&
8459 { ac_try='test -s conftest.$ac_objext'
8460 { (eval echo "$as_me:8460: \"$ac_try\"") >&5
8463 echo "$as_me:8463: \$? = $ac_status" >&5
8464 (exit $ac_status); }; }; then
8465 cf_cv_posix_c_source=no
8467 echo "$as_me: failed program was:" >&5
8468 cat conftest.$ac_ext >&5
8469 cf_want_posix_source=no
8470 case .$cf_POSIX_C_SOURCE in
8472 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8475 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8476 cf_want_posix_source=yes
8479 cf_want_posix_source=yes
8482 if test "$cf_want_posix_source" = yes ; then
8483 cat >conftest.$ac_ext <<_ACEOF
8484 #line 8484 "configure"
8485 #include "confdefs.h"
8486 #include <sys/types.h>
8491 #ifdef _POSIX_SOURCE
8498 rm -f conftest.$ac_objext
8499 if { (eval echo "$as_me:8499: \"$ac_compile\"") >&5
8500 (eval $ac_compile) 2>&5
8502 echo "$as_me:8502: \$? = $ac_status" >&5
8503 (exit $ac_status); } &&
8504 { ac_try='test -s conftest.$ac_objext'
8505 { (eval echo "$as_me:8505: \"$ac_try\"") >&5
8508 echo "$as_me:8508: \$? = $ac_status" >&5
8509 (exit $ac_status); }; }; then
8512 echo "$as_me: failed program was:" >&5
8513 cat conftest.$ac_ext >&5
8514 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
8516 rm -f conftest.$ac_objext conftest.$ac_ext
8519 echo "${as_me:-configure}:8519: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
8521 CFLAGS="$cf_trim_CFLAGS"
8522 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
8524 echo "${as_me:-configure}:8524: testing if the second compile does not leave our definition intact error ..." 1>&5
8526 cat >conftest.$ac_ext <<_ACEOF
8527 #line 8527 "configure"
8528 #include "confdefs.h"
8529 #include <sys/types.h>
8534 #ifndef _POSIX_C_SOURCE
8541 rm -f conftest.$ac_objext
8542 if { (eval echo "$as_me:8542: \"$ac_compile\"") >&5
8543 (eval $ac_compile) 2>&5
8545 echo "$as_me:8545: \$? = $ac_status" >&5
8546 (exit $ac_status); } &&
8547 { ac_try='test -s conftest.$ac_objext'
8548 { (eval echo "$as_me:8548: \"$ac_try\"") >&5
8551 echo "$as_me:8551: \$? = $ac_status" >&5
8552 (exit $ac_status); }; }; then
8555 echo "$as_me: failed program was:" >&5
8556 cat conftest.$ac_ext >&5
8557 cf_cv_posix_c_source=no
8559 rm -f conftest.$ac_objext conftest.$ac_ext
8560 CFLAGS="$cf_save_CFLAGS"
8561 CPPFLAGS="$cf_save_CPPFLAGS"
8564 rm -f conftest.$ac_objext conftest.$ac_ext
8567 echo "$as_me:8567: result: $cf_cv_posix_c_source" >&5
8568 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
8570 if test "$cf_cv_posix_c_source" != no ; then
8571 CFLAGS="$cf_trim_CFLAGS"
8572 CPPFLAGS="$cf_trim_CPPFLAGS"
8577 cf_new_extra_cppflags=
8579 for cf_add_cflags in $cf_cv_posix_c_source
8581 case $cf_fix_cppflags in
8583 case $cf_add_cflags in
8584 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8585 case $cf_add_cflags in
8587 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8589 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8590 && test -z "${cf_tst_cflags}" \
8591 && cf_fix_cppflags=yes
8593 if test $cf_fix_cppflags = yes ; then
8594 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8596 elif test "${cf_tst_cflags}" = "\"'" ; then
8597 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8606 case $cf_add_cflags in
8608 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8610 CPPFLAGS=`echo "$CPPFLAGS" | \
8611 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8612 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8616 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8621 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8626 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8628 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8630 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8631 && test -z "${cf_tst_cflags}" \
8632 && cf_fix_cppflags=no
8637 if test -n "$cf_new_cflags" ; then
8639 CFLAGS="$CFLAGS $cf_new_cflags"
8642 if test -n "$cf_new_cppflags" ; then
8644 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8647 if test -n "$cf_new_extra_cppflags" ; then
8649 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8657 if test -n "$cf_xopen_source" ; then
8662 cf_new_extra_cppflags=
8664 for cf_add_cflags in $cf_xopen_source
8666 case $cf_fix_cppflags in
8668 case $cf_add_cflags in
8669 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8670 case $cf_add_cflags in
8672 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8674 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8675 && test -z "${cf_tst_cflags}" \
8676 && cf_fix_cppflags=yes
8678 if test $cf_fix_cppflags = yes ; then
8679 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8681 elif test "${cf_tst_cflags}" = "\"'" ; then
8682 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8691 case $cf_add_cflags in
8693 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8695 CPPFLAGS=`echo "$CPPFLAGS" | \
8696 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8697 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8701 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8706 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8711 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8713 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8715 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8716 && test -z "${cf_tst_cflags}" \
8717 && cf_fix_cppflags=no
8722 if test -n "$cf_new_cflags" ; then
8723 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
8725 echo "${as_me:-configure}:8725: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
8727 CFLAGS="$CFLAGS $cf_new_cflags"
8730 if test -n "$cf_new_cppflags" ; then
8731 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
8733 echo "${as_me:-configure}:8733: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
8735 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8738 if test -n "$cf_new_extra_cppflags" ; then
8739 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
8741 echo "${as_me:-configure}:8741: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
8743 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8748 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
8749 echo "$as_me:8749: checking if _XOPEN_SOURCE really is set" >&5
8750 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
8751 cat >conftest.$ac_ext <<_ACEOF
8752 #line 8752 "configure"
8753 #include "confdefs.h"
8759 #ifndef _XOPEN_SOURCE
8766 rm -f conftest.$ac_objext
8767 if { (eval echo "$as_me:8767: \"$ac_compile\"") >&5
8768 (eval $ac_compile) 2>&5
8770 echo "$as_me:8770: \$? = $ac_status" >&5
8771 (exit $ac_status); } &&
8772 { ac_try='test -s conftest.$ac_objext'
8773 { (eval echo "$as_me:8773: \"$ac_try\"") >&5
8776 echo "$as_me:8776: \$? = $ac_status" >&5
8777 (exit $ac_status); }; }; then
8778 cf_XOPEN_SOURCE_set=yes
8780 echo "$as_me: failed program was:" >&5
8781 cat conftest.$ac_ext >&5
8782 cf_XOPEN_SOURCE_set=no
8784 rm -f conftest.$ac_objext conftest.$ac_ext
8785 echo "$as_me:8785: result: $cf_XOPEN_SOURCE_set" >&5
8786 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
8787 if test $cf_XOPEN_SOURCE_set = yes
8789 cat >conftest.$ac_ext <<_ACEOF
8790 #line 8790 "configure"
8791 #include "confdefs.h"
8797 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
8804 rm -f conftest.$ac_objext
8805 if { (eval echo "$as_me:8805: \"$ac_compile\"") >&5
8806 (eval $ac_compile) 2>&5
8808 echo "$as_me:8808: \$? = $ac_status" >&5
8809 (exit $ac_status); } &&
8810 { ac_try='test -s conftest.$ac_objext'
8811 { (eval echo "$as_me:8811: \"$ac_try\"") >&5
8814 echo "$as_me:8814: \$? = $ac_status" >&5
8815 (exit $ac_status); }; }; then
8816 cf_XOPEN_SOURCE_set_ok=yes
8818 echo "$as_me: failed program was:" >&5
8819 cat conftest.$ac_ext >&5
8820 cf_XOPEN_SOURCE_set_ok=no
8822 rm -f conftest.$ac_objext conftest.$ac_ext
8823 if test $cf_XOPEN_SOURCE_set_ok = no
8825 { echo "$as_me:8825: WARNING: _XOPEN_SOURCE is lower than requested" >&5
8826 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
8830 echo "$as_me:8830: checking if we should define _XOPEN_SOURCE" >&5
8831 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
8832 if test "${cf_cv_xopen_source+set}" = set; then
8833 echo $ECHO_N "(cached) $ECHO_C" >&6
8836 cat >conftest.$ac_ext <<_ACEOF
8837 #line 8837 "configure"
8838 #include "confdefs.h"
8842 #include <sys/types.h>
8848 #ifndef _XOPEN_SOURCE
8855 rm -f conftest.$ac_objext
8856 if { (eval echo "$as_me:8856: \"$ac_compile\"") >&5
8857 (eval $ac_compile) 2>&5
8859 echo "$as_me:8859: \$? = $ac_status" >&5
8860 (exit $ac_status); } &&
8861 { ac_try='test -s conftest.$ac_objext'
8862 { (eval echo "$as_me:8862: \"$ac_try\"") >&5
8865 echo "$as_me:8865: \$? = $ac_status" >&5
8866 (exit $ac_status); }; }; then
8867 cf_cv_xopen_source=no
8869 echo "$as_me: failed program was:" >&5
8870 cat conftest.$ac_ext >&5
8872 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
8873 cat >conftest.$ac_ext <<_ACEOF
8874 #line 8874 "configure"
8875 #include "confdefs.h"
8879 #include <sys/types.h>
8885 #ifdef _XOPEN_SOURCE
8892 rm -f conftest.$ac_objext
8893 if { (eval echo "$as_me:8893: \"$ac_compile\"") >&5
8894 (eval $ac_compile) 2>&5
8896 echo "$as_me:8896: \$? = $ac_status" >&5
8897 (exit $ac_status); } &&
8898 { ac_try='test -s conftest.$ac_objext'
8899 { (eval echo "$as_me:8899: \"$ac_try\"") >&5
8902 echo "$as_me:8902: \$? = $ac_status" >&5
8903 (exit $ac_status); }; }; then
8904 cf_cv_xopen_source=no
8906 echo "$as_me: failed program was:" >&5
8907 cat conftest.$ac_ext >&5
8908 cf_cv_xopen_source=$cf_XOPEN_SOURCE
8910 rm -f conftest.$ac_objext conftest.$ac_ext
8914 rm -f conftest.$ac_objext conftest.$ac_ext
8917 echo "$as_me:8917: result: $cf_cv_xopen_source" >&5
8918 echo "${ECHO_T}$cf_cv_xopen_source" >&6
8920 if test "$cf_cv_xopen_source" != no ; then
8922 CFLAGS=`echo "$CFLAGS" | \
8923 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8924 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8926 CPPFLAGS=`echo "$CPPFLAGS" | \
8927 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8928 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8930 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
8935 cf_new_extra_cppflags=
8937 for cf_add_cflags in $cf_temp_xopen_source
8939 case $cf_fix_cppflags in
8941 case $cf_add_cflags in
8942 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8943 case $cf_add_cflags in
8945 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8947 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8948 && test -z "${cf_tst_cflags}" \
8949 && cf_fix_cppflags=yes
8951 if test $cf_fix_cppflags = yes ; then
8952 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8954 elif test "${cf_tst_cflags}" = "\"'" ; then
8955 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8964 case $cf_add_cflags in
8966 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8968 CPPFLAGS=`echo "$CPPFLAGS" | \
8969 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8970 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8974 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8979 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8984 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8986 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8988 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8989 && test -z "${cf_tst_cflags}" \
8990 && cf_fix_cppflags=no
8995 if test -n "$cf_new_cflags" ; then
8997 CFLAGS="$CFLAGS $cf_new_cflags"
9000 if test -n "$cf_new_cppflags" ; then
9002 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
9005 if test -n "$cf_new_extra_cppflags" ; then
9007 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
9015 CPPFLAGS_after_XOPEN="$CPPFLAGS"
9017 # Work around breakage on OS X
9019 echo "$as_me:9019: checking if SIGWINCH is defined" >&5
9020 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
9021 if test "${cf_cv_define_sigwinch+set}" = set; then
9022 echo $ECHO_N "(cached) $ECHO_C" >&6
9025 cat >conftest.$ac_ext <<_ACEOF
9026 #line 9026 "configure"
9027 #include "confdefs.h"
9029 #include <sys/types.h>
9030 #include <sys/signal.h>
9040 rm -f conftest.$ac_objext
9041 if { (eval echo "$as_me:9041: \"$ac_compile\"") >&5
9042 (eval $ac_compile) 2>&5
9044 echo "$as_me:9044: \$? = $ac_status" >&5
9045 (exit $ac_status); } &&
9046 { ac_try='test -s conftest.$ac_objext'
9047 { (eval echo "$as_me:9047: \"$ac_try\"") >&5
9050 echo "$as_me:9050: \$? = $ac_status" >&5
9051 (exit $ac_status); }; }; then
9052 cf_cv_define_sigwinch=yes
9054 echo "$as_me: failed program was:" >&5
9055 cat conftest.$ac_ext >&5
9056 cat >conftest.$ac_ext <<_ACEOF
9057 #line 9057 "configure"
9058 #include "confdefs.h"
9060 #undef _XOPEN_SOURCE
9061 #undef _POSIX_SOURCE
9062 #undef _POSIX_C_SOURCE
9063 #include <sys/types.h>
9064 #include <sys/signal.h>
9074 rm -f conftest.$ac_objext
9075 if { (eval echo "$as_me:9075: \"$ac_compile\"") >&5
9076 (eval $ac_compile) 2>&5
9078 echo "$as_me:9078: \$? = $ac_status" >&5
9079 (exit $ac_status); } &&
9080 { ac_try='test -s conftest.$ac_objext'
9081 { (eval echo "$as_me:9081: \"$ac_try\"") >&5
9084 echo "$as_me:9084: \$? = $ac_status" >&5
9085 (exit $ac_status); }; }; then
9086 cf_cv_define_sigwinch=maybe
9088 echo "$as_me: failed program was:" >&5
9089 cat conftest.$ac_ext >&5
9090 cf_cv_define_sigwinch=no
9092 rm -f conftest.$ac_objext conftest.$ac_ext
9095 rm -f conftest.$ac_objext conftest.$ac_ext
9098 echo "$as_me:9098: result: $cf_cv_define_sigwinch" >&5
9099 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
9101 if test "$cf_cv_define_sigwinch" = maybe ; then
9102 echo "$as_me:9102: checking for actual SIGWINCH definition" >&5
9103 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
9104 if test "${cf_cv_fixup_sigwinch+set}" = set; then
9105 echo $ECHO_N "(cached) $ECHO_C" >&6
9108 cf_cv_fixup_sigwinch=unknown
9110 while test $cf_sigwinch != 1
9112 cat >conftest.$ac_ext <<_ACEOF
9113 #line 9113 "configure"
9114 #include "confdefs.h"
9116 #undef _XOPEN_SOURCE
9117 #undef _POSIX_SOURCE
9118 #undef _POSIX_C_SOURCE
9119 #include <sys/types.h>
9120 #include <sys/signal.h>
9126 #if SIGWINCH != $cf_sigwinch
9134 rm -f conftest.$ac_objext
9135 if { (eval echo "$as_me:9135: \"$ac_compile\"") >&5
9136 (eval $ac_compile) 2>&5
9138 echo "$as_me:9138: \$? = $ac_status" >&5
9139 (exit $ac_status); } &&
9140 { ac_try='test -s conftest.$ac_objext'
9141 { (eval echo "$as_me:9141: \"$ac_try\"") >&5
9144 echo "$as_me:9144: \$? = $ac_status" >&5
9145 (exit $ac_status); }; }; then
9146 cf_cv_fixup_sigwinch=$cf_sigwinch
9149 echo "$as_me: failed program was:" >&5
9150 cat conftest.$ac_ext >&5
9152 rm -f conftest.$ac_objext conftest.$ac_ext
9154 cf_sigwinch=`expr $cf_sigwinch - 1`
9158 echo "$as_me:9158: result: $cf_cv_fixup_sigwinch" >&5
9159 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
9161 if test "$cf_cv_fixup_sigwinch" != unknown ; then
9162 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
9166 # Checks for CODESET support.
9168 echo "$as_me:9168: checking for nl_langinfo and CODESET" >&5
9169 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
9170 if test "${am_cv_langinfo_codeset+set}" = set; then
9171 echo $ECHO_N "(cached) $ECHO_C" >&6
9173 cat >conftest.$ac_ext <<_ACEOF
9174 #line 9174 "configure"
9175 #include "confdefs.h"
9176 #include <langinfo.h>
9180 char* cs = nl_langinfo(CODESET);
9185 rm -f conftest.$ac_objext conftest$ac_exeext
9186 if { (eval echo "$as_me:9186: \"$ac_link\"") >&5
9187 (eval $ac_link) 2>&5
9189 echo "$as_me:9189: \$? = $ac_status" >&5
9190 (exit $ac_status); } &&
9191 { ac_try='test -s conftest$ac_exeext'
9192 { (eval echo "$as_me:9192: \"$ac_try\"") >&5
9195 echo "$as_me:9195: \$? = $ac_status" >&5
9196 (exit $ac_status); }; }; then
9197 am_cv_langinfo_codeset=yes
9199 echo "$as_me: failed program was:" >&5
9200 cat conftest.$ac_ext >&5
9201 am_cv_langinfo_codeset=no
9203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9206 echo "$as_me:9206: result: $am_cv_langinfo_codeset" >&5
9207 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
9208 if test $am_cv_langinfo_codeset = yes; then
9210 cat >>confdefs.h <<\EOF
9211 #define HAVE_LANGINFO_CODESET 1
9216 # use these variables to work around a defect in gcc's fixincludes.
9220 echo "$as_me:9220: checking if you want wide-character code" >&5
9221 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
9223 # Check whether --enable-widec or --disable-widec was given.
9224 if test "${enable_widec+set}" = set; then
9225 enableval="$enable_widec"
9226 with_widec=$enableval
9230 echo "$as_me:9230: result: $with_widec" >&5
9231 echo "${ECHO_T}$with_widec" >&6
9232 if test "x$with_widec" = xyes ; then
9233 if test "x$disable_lib_suffixes" = xno ; then
9234 LIB_SUFFIX="w${LIB_SUFFIX}"
9237 cat >>confdefs.h <<\EOF
9238 #define USE_WIDEC_SUPPORT 1
9241 cat >>confdefs.h <<\EOF
9242 #define NCURSES_WIDECHAR 1
9245 echo "$as_me:9245: checking if wchar.h can be used as is" >&5
9246 echo $ECHO_N "checking if wchar.h can be used as is... $ECHO_C" >&6
9247 if test "${cf_cv_wchar_h_okay+set}" = set; then
9248 echo $ECHO_N "(cached) $ECHO_C" >&6
9251 cat >conftest.$ac_ext <<_ACEOF
9252 #line 9252 "configure"
9253 #include "confdefs.h"
9263 int bar = iswpunct(foo)
9268 rm -f conftest.$ac_objext
9269 if { (eval echo "$as_me:9269: \"$ac_compile\"") >&5
9270 (eval $ac_compile) 2>&5
9272 echo "$as_me:9272: \$? = $ac_status" >&5
9273 (exit $ac_status); } &&
9274 { ac_try='test -s conftest.$ac_objext'
9275 { (eval echo "$as_me:9275: \"$ac_try\"") >&5
9278 echo "$as_me:9278: \$? = $ac_status" >&5
9279 (exit $ac_status); }; }; then
9280 cf_cv_wchar_h_okay=yes
9282 echo "$as_me: failed program was:" >&5
9283 cat conftest.$ac_ext >&5
9284 cf_cv_wchar_h_okay=no
9286 rm -f conftest.$ac_objext conftest.$ac_ext
9288 echo "$as_me:9288: result: $cf_cv_wchar_h_okay" >&5
9289 echo "${ECHO_T}$cf_cv_wchar_h_okay" >&6
9291 if test $cf_cv_wchar_h_okay = no
9294 echo "$as_me:9294: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
9295 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
9296 cat >conftest.$ac_ext <<_ACEOF
9297 #line 9297 "configure"
9298 #include "confdefs.h"
9299 #include <sys/types.h>
9305 #ifndef _XOPEN_SOURCE_EXTENDED
9312 rm -f conftest.$ac_objext
9313 if { (eval echo "$as_me:9313: \"$ac_compile\"") >&5
9314 (eval $ac_compile) 2>&5
9316 echo "$as_me:9316: \$? = $ac_status" >&5
9317 (exit $ac_status); } &&
9318 { ac_try='test -s conftest.$ac_objext'
9319 { (eval echo "$as_me:9319: \"$ac_try\"") >&5
9322 echo "$as_me:9322: \$? = $ac_status" >&5
9323 (exit $ac_status); }; }; then
9326 echo "$as_me: failed program was:" >&5
9327 cat conftest.$ac_ext >&5
9330 rm -f conftest.$ac_objext conftest.$ac_ext
9331 echo "$as_me:9331: result: $cf_result" >&5
9332 echo "${ECHO_T}$cf_result" >&6
9334 if test "$cf_result" = yes ; then
9335 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
9336 elif test "x" != "x" ; then
9337 echo "$as_me:9337: checking checking for compatible value versus " >&5
9338 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
9339 cat >conftest.$ac_ext <<_ACEOF
9340 #line 9340 "configure"
9341 #include "confdefs.h"
9342 #include <sys/types.h>
9348 #if _XOPEN_SOURCE_EXTENDED- < 0
9355 rm -f conftest.$ac_objext
9356 if { (eval echo "$as_me:9356: \"$ac_compile\"") >&5
9357 (eval $ac_compile) 2>&5
9359 echo "$as_me:9359: \$? = $ac_status" >&5
9360 (exit $ac_status); } &&
9361 { ac_try='test -s conftest.$ac_objext'
9362 { (eval echo "$as_me:9362: \"$ac_try\"") >&5
9365 echo "$as_me:9365: \$? = $ac_status" >&5
9366 (exit $ac_status); }; }; then
9369 echo "$as_me: failed program was:" >&5
9370 cat conftest.$ac_ext >&5
9373 rm -f conftest.$ac_objext conftest.$ac_ext
9374 echo "$as_me:9374: result: $cf_result" >&5
9375 echo "${ECHO_T}$cf_result" >&6
9376 if test "$cf_result" = no ; then
9377 # perhaps we can override it - try...
9378 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
9385 NCURSES_CH_T=cchar_t
9387 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
9389 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9390 echo "$as_me:9390: checking for $ac_func" >&5
9391 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9392 if eval "test \"\${$as_ac_var+set}\" = set"; then
9393 echo $ECHO_N "(cached) $ECHO_C" >&6
9395 cat >conftest.$ac_ext <<_ACEOF
9396 #line 9396 "configure"
9397 #include "confdefs.h"
9398 /* System header to define __stub macros and hopefully few prototypes,
9399 which can conflict with char $ac_func (); below. */
9401 /* Override any gcc2 internal prototype to avoid an error. */
9405 /* We use char because int might match the return type of a gcc2
9406 builtin and then its argument prototype would still apply. */
9413 /* The GNU C library defines this for functions which it implements
9414 to always fail with ENOSYS. Some functions are actually named
9415 something starting with __ and the normal name is an alias. */
9416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9419 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
9426 rm -f conftest.$ac_objext conftest$ac_exeext
9427 if { (eval echo "$as_me:9427: \"$ac_link\"") >&5
9428 (eval $ac_link) 2>&5
9430 echo "$as_me:9430: \$? = $ac_status" >&5
9431 (exit $ac_status); } &&
9432 { ac_try='test -s conftest$ac_exeext'
9433 { (eval echo "$as_me:9433: \"$ac_try\"") >&5
9436 echo "$as_me:9436: \$? = $ac_status" >&5
9437 (exit $ac_status); }; }; then
9438 eval "$as_ac_var=yes"
9440 echo "$as_me: failed program was:" >&5
9441 cat conftest.$ac_ext >&5
9442 eval "$as_ac_var=no"
9444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9446 echo "$as_me:9446: result: `eval echo '${'$as_ac_var'}'`" >&5
9447 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9448 if test `eval echo '${'$as_ac_var'}'` = yes; then
9449 cat >>confdefs.h <<EOF
9450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9456 if test "x$ac_cv_func_putwc" != xyes ; then
9458 echo "$as_me:9458: checking for multibyte character support" >&5
9459 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
9460 if test "${cf_cv_utf8_lib+set}" = set; then
9461 echo $ECHO_N "(cached) $ECHO_C" >&6
9464 cf_save_LIBS="$LIBS"
9465 cat >conftest.$ac_ext <<_ACEOF
9466 #line 9466 "configure"
9467 #include "confdefs.h"
9478 rm -f conftest.$ac_objext conftest$ac_exeext
9479 if { (eval echo "$as_me:9479: \"$ac_link\"") >&5
9480 (eval $ac_link) 2>&5
9482 echo "$as_me:9482: \$? = $ac_status" >&5
9483 (exit $ac_status); } &&
9484 { ac_try='test -s conftest$ac_exeext'
9485 { (eval echo "$as_me:9485: \"$ac_try\"") >&5
9488 echo "$as_me:9488: \$? = $ac_status" >&5
9489 (exit $ac_status); }; }; then
9492 echo "$as_me: failed program was:" >&5
9493 cat conftest.$ac_ext >&5
9495 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
9496 # will be set on completion of the AC_TRY_LINK below.
9497 cf_cv_header_path_utf8=
9498 cf_cv_library_path_utf8=
9500 echo "${as_me:-configure}:9500: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
9502 cf_save_LIBS="$LIBS"
9504 cat >conftest.$ac_ext <<_ACEOF
9505 #line 9505 "configure"
9506 #include "confdefs.h"
9508 #include <libutf8.h>
9517 rm -f conftest.$ac_objext conftest$ac_exeext
9518 if { (eval echo "$as_me:9518: \"$ac_link\"") >&5
9519 (eval $ac_link) 2>&5
9521 echo "$as_me:9521: \$? = $ac_status" >&5
9522 (exit $ac_status); } &&
9523 { ac_try='test -s conftest$ac_exeext'
9524 { (eval echo "$as_me:9524: \"$ac_try\"") >&5
9527 echo "$as_me:9527: \$? = $ac_status" >&5
9528 (exit $ac_status); }; }; then
9530 cf_cv_find_linkage_utf8=yes
9531 cf_cv_header_path_utf8=/usr/include
9532 cf_cv_library_path_utf8=/usr/lib
9535 echo "$as_me: failed program was:" >&5
9536 cat conftest.$ac_ext >&5
9538 LIBS="-lutf8 $cf_save_LIBS"
9540 cat >conftest.$ac_ext <<_ACEOF
9541 #line 9541 "configure"
9542 #include "confdefs.h"
9544 #include <libutf8.h>
9553 rm -f conftest.$ac_objext conftest$ac_exeext
9554 if { (eval echo "$as_me:9554: \"$ac_link\"") >&5
9555 (eval $ac_link) 2>&5
9557 echo "$as_me:9557: \$? = $ac_status" >&5
9558 (exit $ac_status); } &&
9559 { ac_try='test -s conftest$ac_exeext'
9560 { (eval echo "$as_me:9560: \"$ac_try\"") >&5
9563 echo "$as_me:9563: \$? = $ac_status" >&5
9564 (exit $ac_status); }; }; then
9566 cf_cv_find_linkage_utf8=yes
9567 cf_cv_header_path_utf8=/usr/include
9568 cf_cv_library_path_utf8=/usr/lib
9569 cf_cv_library_file_utf8="-lutf8"
9572 echo "$as_me: failed program was:" >&5
9573 cat conftest.$ac_ext >&5
9575 cf_cv_find_linkage_utf8=no
9576 LIBS="$cf_save_LIBS"
9578 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
9580 echo "${as_me:-configure}:9580: testing find linkage for utf8 library ..." 1>&5
9582 echo "${as_me:-configure}:9582: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
9584 cf_save_CPPFLAGS="$CPPFLAGS"
9585 cf_test_CPPFLAGS="$CPPFLAGS"
9589 # collect the current set of include-directories from compiler flags
9590 cf_header_path_list=""
9591 if test -n "${CFLAGS}${CPPFLAGS}" ; then
9592 for cf_header_path in $CPPFLAGS $CFLAGS
9594 case $cf_header_path in
9596 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
9598 test "x$cf_header_path" != "xNONE" && \
9599 test -d "$cf_header_path" && \
9601 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
9602 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
9603 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
9604 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
9605 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
9606 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
9609 cf_header_path_list="$cf_header_path_list $cf_search"
9615 # add the variations for the package we are looking for
9619 test "x$prefix" != "xNONE" && \
9620 test -d "$prefix" && \
9622 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
9623 test -d $prefix/include && cf_search="$cf_search $prefix/include"
9624 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
9625 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
9626 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
9627 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
9630 for cf_subdir_prefix in \
9639 test "x$cf_subdir_prefix" != "x$prefix" && \
9640 test -d "$cf_subdir_prefix" && \
9641 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
9642 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
9643 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
9644 test -d $cf_subdir_prefix/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
9645 test -d $cf_subdir_prefix/include/utf8/include && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
9646 test -d $cf_subdir_prefix/utf8/include && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
9647 test -d $cf_subdir_prefix/utf8/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
9652 test "$includedir" != NONE && \
9653 test "$includedir" != "/usr/include" && \
9654 test -d "$includedir" && {
9655 test -d $includedir && cf_search="$cf_search $includedir"
9656 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
9659 test "$oldincludedir" != NONE && \
9660 test "$oldincludedir" != "/usr/include" && \
9661 test -d "$oldincludedir" && {
9662 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
9663 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
9666 cf_search="$cf_search $cf_header_path_list"
9668 for cf_cv_header_path_utf8 in $cf_search
9670 if test -d $cf_cv_header_path_utf8 ; then
9671 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
9673 echo "${as_me:-configure}:9673: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
9675 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
9676 cat >conftest.$ac_ext <<_ACEOF
9677 #line 9677 "configure"
9678 #include "confdefs.h"
9680 #include <libutf8.h>
9689 rm -f conftest.$ac_objext
9690 if { (eval echo "$as_me:9690: \"$ac_compile\"") >&5
9691 (eval $ac_compile) 2>&5
9693 echo "$as_me:9693: \$? = $ac_status" >&5
9694 (exit $ac_status); } &&
9695 { ac_try='test -s conftest.$ac_objext'
9696 { (eval echo "$as_me:9696: \"$ac_try\"") >&5
9699 echo "$as_me:9699: \$? = $ac_status" >&5
9700 (exit $ac_status); }; }; then
9702 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
9704 echo "${as_me:-configure}:9704: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
9706 cf_cv_find_linkage_utf8=maybe
9707 cf_test_CPPFLAGS="$CPPFLAGS"
9710 echo "$as_me: failed program was:" >&5
9711 cat conftest.$ac_ext >&5
9713 CPPFLAGS="$cf_save_CPPFLAGS"
9716 rm -f conftest.$ac_objext conftest.$ac_ext
9720 if test "$cf_cv_find_linkage_utf8" = maybe ; then
9722 echo "${as_me:-configure}:9722: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
9724 cf_save_LIBS="$LIBS"
9725 cf_save_LDFLAGS="$LDFLAGS"
9727 if test "$cf_cv_find_linkage_utf8" != yes ; then
9730 cf_library_path_list=""
9731 if test -n "${LDFLAGS}${LIBS}" ; then
9732 for cf_library_path in $LDFLAGS $LIBS
9734 case $cf_library_path in
9736 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
9738 test "x$cf_library_path" != "xNONE" && \
9739 test -d "$cf_library_path" && \
9741 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
9742 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
9743 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
9744 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
9745 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
9746 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
9749 cf_library_path_list="$cf_library_path_list $cf_search"
9757 test "x$prefix" != "xNONE" && \
9758 test -d "$prefix" && \
9760 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
9761 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
9762 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
9763 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
9764 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
9765 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
9768 for cf_subdir_prefix in \
9777 test "x$cf_subdir_prefix" != "x$prefix" && \
9778 test -d "$cf_subdir_prefix" && \
9779 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
9780 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
9781 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
9782 test -d $cf_subdir_prefix/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
9783 test -d $cf_subdir_prefix/lib/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
9784 test -d $cf_subdir_prefix/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
9785 test -d $cf_subdir_prefix/utf8/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
9790 cf_search="$cf_library_path_list $cf_search"
9792 for cf_cv_library_path_utf8 in $cf_search
9794 if test -d $cf_cv_library_path_utf8 ; then
9795 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
9797 echo "${as_me:-configure}:9797: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
9799 CPPFLAGS="$cf_test_CPPFLAGS"
9800 LIBS="-lutf8 $cf_save_LIBS"
9801 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
9802 cat >conftest.$ac_ext <<_ACEOF
9803 #line 9803 "configure"
9804 #include "confdefs.h"
9806 #include <libutf8.h>
9815 rm -f conftest.$ac_objext conftest$ac_exeext
9816 if { (eval echo "$as_me:9816: \"$ac_link\"") >&5
9817 (eval $ac_link) 2>&5
9819 echo "$as_me:9819: \$? = $ac_status" >&5
9820 (exit $ac_status); } &&
9821 { ac_try='test -s conftest$ac_exeext'
9822 { (eval echo "$as_me:9822: \"$ac_try\"") >&5
9825 echo "$as_me:9825: \$? = $ac_status" >&5
9826 (exit $ac_status); }; }; then
9828 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
9830 echo "${as_me:-configure}:9830: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
9832 cf_cv_find_linkage_utf8=yes
9833 cf_cv_library_file_utf8="-lutf8"
9836 echo "$as_me: failed program was:" >&5
9837 cat conftest.$ac_ext >&5
9839 CPPFLAGS="$cf_save_CPPFLAGS"
9840 LIBS="$cf_save_LIBS"
9841 LDFLAGS="$cf_save_LDFLAGS"
9844 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9847 CPPFLAGS="$cf_save_CPPFLAGS"
9848 LDFLAGS="$cf_save_LDFLAGS"
9852 cf_cv_find_linkage_utf8=no
9856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9861 LIBS="$cf_save_LIBS"
9863 if test "$cf_cv_find_linkage_utf8" = yes ; then
9864 cf_cv_utf8_lib=add-on
9870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9872 echo "$as_me:9872: result: $cf_cv_utf8_lib" >&5
9873 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
9875 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
9877 if test "$cf_cv_utf8_lib" = "add-on" ; then
9879 cat >>confdefs.h <<\EOF
9880 #define HAVE_LIBUTF8_H 1
9883 if test -n "$cf_cv_header_path_utf8" ; then
9884 for cf_add_incdir in $cf_cv_header_path_utf8
9886 while test $cf_add_incdir != /usr/include
9888 if test -d $cf_add_incdir
9891 if test -n "$CFLAGS$CPPFLAGS" ; then
9892 # a loop is needed to ensure we can add subdirs of existing dirs
9893 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
9894 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
9895 cf_have_incdir=yes; break
9900 if test "$cf_have_incdir" = no ; then
9901 if test "$cf_add_incdir" = /usr/local/include ; then
9902 if test "$GCC" = yes
9904 cf_save_CPPFLAGS=$CPPFLAGS
9905 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9906 cat >conftest.$ac_ext <<_ACEOF
9907 #line 9907 "configure"
9908 #include "confdefs.h"
9918 rm -f conftest.$ac_objext
9919 if { (eval echo "$as_me:9919: \"$ac_compile\"") >&5
9920 (eval $ac_compile) 2>&5
9922 echo "$as_me:9922: \$? = $ac_status" >&5
9923 (exit $ac_status); } &&
9924 { ac_try='test -s conftest.$ac_objext'
9925 { (eval echo "$as_me:9925: \"$ac_try\"") >&5
9928 echo "$as_me:9928: \$? = $ac_status" >&5
9929 (exit $ac_status); }; }; then
9932 echo "$as_me: failed program was:" >&5
9933 cat conftest.$ac_ext >&5
9936 rm -f conftest.$ac_objext conftest.$ac_ext
9937 CPPFLAGS=$cf_save_CPPFLAGS
9942 if test "$cf_have_incdir" = no ; then
9943 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
9945 echo "${as_me:-configure}:9945: testing adding $cf_add_incdir to include-path ..." 1>&5
9947 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9949 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
9950 test "$cf_top_incdir" = "$cf_add_incdir" && break
9951 cf_add_incdir="$cf_top_incdir"
9962 if test -n "$cf_cv_library_path_utf8" ; then
9963 for cf_add_libdir in $cf_cv_library_path_utf8
9965 if test $cf_add_libdir = /usr/lib ; then
9967 elif test -d $cf_add_libdir
9970 if test -n "$LDFLAGS$LIBS" ; then
9971 # a loop is needed to ensure we can add subdirs of existing dirs
9972 for cf_test_libdir in $LDFLAGS $LIBS ; do
9973 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
9974 cf_have_libdir=yes; break
9978 if test "$cf_have_libdir" = no ; then
9979 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
9981 echo "${as_me:-configure}:9981: testing adding $cf_add_libdir to library-path ..." 1>&5
9983 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
9989 cf_add_libs="$cf_cv_library_file_utf8"
9990 # Filter out duplicates - this happens with badly-designed ".pc" files...
9991 for cf_add_1lib in $LIBS
9993 for cf_add_2lib in $cf_add_libs
9995 if test "x$cf_add_1lib" = "x$cf_add_2lib"
10001 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
10003 LIBS="$cf_add_libs"
10007 if test "$cf_cv_utf8_lib" != no ; then
10012 # This is needed on Tru64 5.0 to declare mbstate_t
10013 echo "$as_me:10013: checking if we must include wchar.h to declare mbstate_t" >&5
10014 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
10015 if test "${cf_cv_mbstate_t+set}" = set; then
10016 echo $ECHO_N "(cached) $ECHO_C" >&6
10019 cat >conftest.$ac_ext <<_ACEOF
10020 #line 10020 "configure"
10021 #include "confdefs.h"
10023 #include <stdlib.h>
10024 #include <stdarg.h>
10026 #ifdef HAVE_LIBUTF8_H
10027 #include <libutf8.h>
10037 rm -f conftest.$ac_objext
10038 if { (eval echo "$as_me:10038: \"$ac_compile\"") >&5
10039 (eval $ac_compile) 2>&5
10041 echo "$as_me:10041: \$? = $ac_status" >&5
10042 (exit $ac_status); } &&
10043 { ac_try='test -s conftest.$ac_objext'
10044 { (eval echo "$as_me:10044: \"$ac_try\"") >&5
10045 (eval $ac_try) 2>&5
10047 echo "$as_me:10047: \$? = $ac_status" >&5
10048 (exit $ac_status); }; }; then
10051 echo "$as_me: failed program was:" >&5
10052 cat conftest.$ac_ext >&5
10053 cat >conftest.$ac_ext <<_ACEOF
10054 #line 10054 "configure"
10055 #include "confdefs.h"
10057 #include <stdlib.h>
10058 #include <stdarg.h>
10061 #ifdef HAVE_LIBUTF8_H
10062 #include <libutf8.h>
10072 rm -f conftest.$ac_objext
10073 if { (eval echo "$as_me:10073: \"$ac_compile\"") >&5
10074 (eval $ac_compile) 2>&5
10076 echo "$as_me:10076: \$? = $ac_status" >&5
10077 (exit $ac_status); } &&
10078 { ac_try='test -s conftest.$ac_objext'
10079 { (eval echo "$as_me:10079: \"$ac_try\"") >&5
10080 (eval $ac_try) 2>&5
10082 echo "$as_me:10082: \$? = $ac_status" >&5
10083 (exit $ac_status); }; }; then
10084 cf_cv_mbstate_t=yes
10086 echo "$as_me: failed program was:" >&5
10087 cat conftest.$ac_ext >&5
10088 cf_cv_mbstate_t=unknown
10090 rm -f conftest.$ac_objext conftest.$ac_ext
10092 rm -f conftest.$ac_objext conftest.$ac_ext
10094 echo "$as_me:10094: result: $cf_cv_mbstate_t" >&5
10095 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
10097 if test "$cf_cv_mbstate_t" = yes ; then
10099 cat >>confdefs.h <<\EOF
10100 #define NEED_WCHAR_H 1
10106 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
10107 if test "$cf_cv_mbstate_t" = unknown ; then
10108 NCURSES_MBSTATE_T=1
10111 # This is needed on Tru64 5.0 to declare wchar_t
10112 echo "$as_me:10112: checking if we must include wchar.h to declare wchar_t" >&5
10113 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
10114 if test "${cf_cv_wchar_t+set}" = set; then
10115 echo $ECHO_N "(cached) $ECHO_C" >&6
10118 cat >conftest.$ac_ext <<_ACEOF
10119 #line 10119 "configure"
10120 #include "confdefs.h"
10122 #include <stdlib.h>
10123 #include <stdarg.h>
10125 #ifdef HAVE_LIBUTF8_H
10126 #include <libutf8.h>
10136 rm -f conftest.$ac_objext
10137 if { (eval echo "$as_me:10137: \"$ac_compile\"") >&5
10138 (eval $ac_compile) 2>&5
10140 echo "$as_me:10140: \$? = $ac_status" >&5
10141 (exit $ac_status); } &&
10142 { ac_try='test -s conftest.$ac_objext'
10143 { (eval echo "$as_me:10143: \"$ac_try\"") >&5
10144 (eval $ac_try) 2>&5
10146 echo "$as_me:10146: \$? = $ac_status" >&5
10147 (exit $ac_status); }; }; then
10150 echo "$as_me: failed program was:" >&5
10151 cat conftest.$ac_ext >&5
10152 cat >conftest.$ac_ext <<_ACEOF
10153 #line 10153 "configure"
10154 #include "confdefs.h"
10156 #include <stdlib.h>
10157 #include <stdarg.h>
10160 #ifdef HAVE_LIBUTF8_H
10161 #include <libutf8.h>
10171 rm -f conftest.$ac_objext
10172 if { (eval echo "$as_me:10172: \"$ac_compile\"") >&5
10173 (eval $ac_compile) 2>&5
10175 echo "$as_me:10175: \$? = $ac_status" >&5
10176 (exit $ac_status); } &&
10177 { ac_try='test -s conftest.$ac_objext'
10178 { (eval echo "$as_me:10178: \"$ac_try\"") >&5
10179 (eval $ac_try) 2>&5
10181 echo "$as_me:10181: \$? = $ac_status" >&5
10182 (exit $ac_status); }; }; then
10185 echo "$as_me: failed program was:" >&5
10186 cat conftest.$ac_ext >&5
10187 cf_cv_wchar_t=unknown
10189 rm -f conftest.$ac_objext conftest.$ac_ext
10191 rm -f conftest.$ac_objext conftest.$ac_ext
10193 echo "$as_me:10193: result: $cf_cv_wchar_t" >&5
10194 echo "${ECHO_T}$cf_cv_wchar_t" >&6
10196 if test "$cf_cv_wchar_t" = yes ; then
10198 cat >>confdefs.h <<\EOF
10199 #define NEED_WCHAR_H 1
10205 # if we do not find wchar_t in either place, use substitution to provide a fallback.
10206 if test "$cf_cv_wchar_t" = unknown ; then
10210 # if we find wchar_t in either place, use substitution to provide a fallback.
10211 if test "$cf_cv_wchar_t" != unknown ; then
10212 NCURSES_OK_WCHAR_T=1
10215 # This is needed on Tru64 5.0 to declare wint_t
10216 echo "$as_me:10216: checking if we must include wchar.h to declare wint_t" >&5
10217 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
10218 if test "${cf_cv_wint_t+set}" = set; then
10219 echo $ECHO_N "(cached) $ECHO_C" >&6
10222 cat >conftest.$ac_ext <<_ACEOF
10223 #line 10223 "configure"
10224 #include "confdefs.h"
10226 #include <stdlib.h>
10227 #include <stdarg.h>
10229 #ifdef HAVE_LIBUTF8_H
10230 #include <libutf8.h>
10240 rm -f conftest.$ac_objext
10241 if { (eval echo "$as_me:10241: \"$ac_compile\"") >&5
10242 (eval $ac_compile) 2>&5
10244 echo "$as_me:10244: \$? = $ac_status" >&5
10245 (exit $ac_status); } &&
10246 { ac_try='test -s conftest.$ac_objext'
10247 { (eval echo "$as_me:10247: \"$ac_try\"") >&5
10248 (eval $ac_try) 2>&5
10250 echo "$as_me:10250: \$? = $ac_status" >&5
10251 (exit $ac_status); }; }; then
10254 echo "$as_me: failed program was:" >&5
10255 cat conftest.$ac_ext >&5
10256 cat >conftest.$ac_ext <<_ACEOF
10257 #line 10257 "configure"
10258 #include "confdefs.h"
10260 #include <stdlib.h>
10261 #include <stdarg.h>
10264 #ifdef HAVE_LIBUTF8_H
10265 #include <libutf8.h>
10275 rm -f conftest.$ac_objext
10276 if { (eval echo "$as_me:10276: \"$ac_compile\"") >&5
10277 (eval $ac_compile) 2>&5
10279 echo "$as_me:10279: \$? = $ac_status" >&5
10280 (exit $ac_status); } &&
10281 { ac_try='test -s conftest.$ac_objext'
10282 { (eval echo "$as_me:10282: \"$ac_try\"") >&5
10283 (eval $ac_try) 2>&5
10285 echo "$as_me:10285: \$? = $ac_status" >&5
10286 (exit $ac_status); }; }; then
10289 echo "$as_me: failed program was:" >&5
10290 cat conftest.$ac_ext >&5
10291 cf_cv_wint_t=unknown
10293 rm -f conftest.$ac_objext conftest.$ac_ext
10295 rm -f conftest.$ac_objext conftest.$ac_ext
10297 echo "$as_me:10297: result: $cf_cv_wint_t" >&5
10298 echo "${ECHO_T}$cf_cv_wint_t" >&6
10300 if test "$cf_cv_wint_t" = yes ; then
10302 cat >>confdefs.h <<\EOF
10303 #define NEED_WCHAR_H 1
10309 # if we do not find wint_t in either place, use substitution to provide a fallback.
10310 if test "$cf_cv_wint_t" = unknown ; then
10314 # if we find wint_t in either place, use substitution to provide a fallback.
10315 if test "$cf_cv_wint_t" != unknown ; then
10316 NCURSES_OK_WINT_T=1
10319 if test "$NCURSES_MBSTATE_T" != 0; then
10321 cat >>confdefs.h <<\EOF
10322 #define NEED_MBSTATE_T_DEF 1
10328 ### use option --disable-lp64 to allow long chtype
10329 echo "$as_me:10329: checking whether to enable _LP64 definition in curses.h" >&5
10330 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
10332 # Check whether --enable-lp64 or --disable-lp64 was given.
10333 if test "${enable_lp64+set}" = set; then
10334 enableval="$enable_lp64"
10335 with_lp64=$enableval
10337 with_lp64=$cf_dft_with_lp64
10339 echo "$as_me:10339: result: $with_lp64" >&5
10340 echo "${ECHO_T}$with_lp64" >&6
10342 if test "x$with_lp64" = xyes ; then
10343 cf_cv_enable_lp64=1
10345 cf_cv_enable_lp64=0
10348 # Check whether --enable-largefile or --disable-largefile was given.
10349 if test "${enable_largefile+set}" = set; then
10350 enableval="$enable_largefile"
10353 if test "$enable_largefile" != no; then
10355 echo "$as_me:10355: checking for special C compiler options needed for large files" >&5
10356 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
10357 if test "${ac_cv_sys_largefile_CC+set}" = set; then
10358 echo $ECHO_N "(cached) $ECHO_C" >&6
10360 ac_cv_sys_largefile_CC=no
10361 if test "$GCC" != yes; then
10364 # IRIX 6.2 and later do not support large files by default,
10365 # so use the C compiler's -n32 option if that helps.
10366 cat >conftest.$ac_ext <<_ACEOF
10367 #line 10367 "configure"
10368 #include "confdefs.h"
10369 #include <sys/types.h>
10370 /* Check that off_t can represent 2**63 - 1 correctly.
10371 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10372 since some C++ compilers masquerading as C compilers
10373 incorrectly reject 9223372036854775807. */
10374 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10375 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10376 && LARGE_OFF_T % 2147483647 == 1)
10386 rm -f conftest.$ac_objext
10387 if { (eval echo "$as_me:10387: \"$ac_compile\"") >&5
10388 (eval $ac_compile) 2>&5
10390 echo "$as_me:10390: \$? = $ac_status" >&5
10391 (exit $ac_status); } &&
10392 { ac_try='test -s conftest.$ac_objext'
10393 { (eval echo "$as_me:10393: \"$ac_try\"") >&5
10394 (eval $ac_try) 2>&5
10396 echo "$as_me:10396: \$? = $ac_status" >&5
10397 (exit $ac_status); }; }; then
10400 echo "$as_me: failed program was:" >&5
10401 cat conftest.$ac_ext >&5
10403 rm -f conftest.$ac_objext
10405 rm -f conftest.$ac_objext
10406 if { (eval echo "$as_me:10406: \"$ac_compile\"") >&5
10407 (eval $ac_compile) 2>&5
10409 echo "$as_me:10409: \$? = $ac_status" >&5
10410 (exit $ac_status); } &&
10411 { ac_try='test -s conftest.$ac_objext'
10412 { (eval echo "$as_me:10412: \"$ac_try\"") >&5
10413 (eval $ac_try) 2>&5
10415 echo "$as_me:10415: \$? = $ac_status" >&5
10416 (exit $ac_status); }; }; then
10417 ac_cv_sys_largefile_CC=' -n32'; break
10419 echo "$as_me: failed program was:" >&5
10420 cat conftest.$ac_ext >&5
10422 rm -f conftest.$ac_objext
10426 rm -f conftest.$ac_ext
10429 echo "$as_me:10429: result: $ac_cv_sys_largefile_CC" >&5
10430 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
10431 if test "$ac_cv_sys_largefile_CC" != no; then
10432 CC=$CC$ac_cv_sys_largefile_CC
10435 echo "$as_me:10435: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10436 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
10437 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
10438 echo $ECHO_N "(cached) $ECHO_C" >&6
10441 ac_cv_sys_file_offset_bits=no
10442 cat >conftest.$ac_ext <<_ACEOF
10443 #line 10443 "configure"
10444 #include "confdefs.h"
10445 #include <sys/types.h>
10446 /* Check that off_t can represent 2**63 - 1 correctly.
10447 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10448 since some C++ compilers masquerading as C compilers
10449 incorrectly reject 9223372036854775807. */
10450 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10451 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10452 && LARGE_OFF_T % 2147483647 == 1)
10462 rm -f conftest.$ac_objext
10463 if { (eval echo "$as_me:10463: \"$ac_compile\"") >&5
10464 (eval $ac_compile) 2>&5
10466 echo "$as_me:10466: \$? = $ac_status" >&5
10467 (exit $ac_status); } &&
10468 { ac_try='test -s conftest.$ac_objext'
10469 { (eval echo "$as_me:10469: \"$ac_try\"") >&5
10470 (eval $ac_try) 2>&5
10472 echo "$as_me:10472: \$? = $ac_status" >&5
10473 (exit $ac_status); }; }; then
10476 echo "$as_me: failed program was:" >&5
10477 cat conftest.$ac_ext >&5
10479 rm -f conftest.$ac_objext conftest.$ac_ext
10480 cat >conftest.$ac_ext <<_ACEOF
10481 #line 10481 "configure"
10482 #include "confdefs.h"
10483 #define _FILE_OFFSET_BITS 64
10484 #include <sys/types.h>
10485 /* Check that off_t can represent 2**63 - 1 correctly.
10486 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10487 since some C++ compilers masquerading as C compilers
10488 incorrectly reject 9223372036854775807. */
10489 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10490 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10491 && LARGE_OFF_T % 2147483647 == 1)
10501 rm -f conftest.$ac_objext
10502 if { (eval echo "$as_me:10502: \"$ac_compile\"") >&5
10503 (eval $ac_compile) 2>&5
10505 echo "$as_me:10505: \$? = $ac_status" >&5
10506 (exit $ac_status); } &&
10507 { ac_try='test -s conftest.$ac_objext'
10508 { (eval echo "$as_me:10508: \"$ac_try\"") >&5
10509 (eval $ac_try) 2>&5
10511 echo "$as_me:10511: \$? = $ac_status" >&5
10512 (exit $ac_status); }; }; then
10513 ac_cv_sys_file_offset_bits=64; break
10515 echo "$as_me: failed program was:" >&5
10516 cat conftest.$ac_ext >&5
10518 rm -f conftest.$ac_objext conftest.$ac_ext
10522 echo "$as_me:10522: result: $ac_cv_sys_file_offset_bits" >&5
10523 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
10524 if test "$ac_cv_sys_file_offset_bits" != no; then
10526 cat >>confdefs.h <<EOF
10527 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10532 echo "$as_me:10532: checking for _LARGE_FILES value needed for large files" >&5
10533 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
10534 if test "${ac_cv_sys_large_files+set}" = set; then
10535 echo $ECHO_N "(cached) $ECHO_C" >&6
10538 ac_cv_sys_large_files=no
10539 cat >conftest.$ac_ext <<_ACEOF
10540 #line 10540 "configure"
10541 #include "confdefs.h"
10542 #include <sys/types.h>
10543 /* Check that off_t can represent 2**63 - 1 correctly.
10544 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10545 since some C++ compilers masquerading as C compilers
10546 incorrectly reject 9223372036854775807. */
10547 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10548 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10549 && LARGE_OFF_T % 2147483647 == 1)
10559 rm -f conftest.$ac_objext
10560 if { (eval echo "$as_me:10560: \"$ac_compile\"") >&5
10561 (eval $ac_compile) 2>&5
10563 echo "$as_me:10563: \$? = $ac_status" >&5
10564 (exit $ac_status); } &&
10565 { ac_try='test -s conftest.$ac_objext'
10566 { (eval echo "$as_me:10566: \"$ac_try\"") >&5
10567 (eval $ac_try) 2>&5
10569 echo "$as_me:10569: \$? = $ac_status" >&5
10570 (exit $ac_status); }; }; then
10573 echo "$as_me: failed program was:" >&5
10574 cat conftest.$ac_ext >&5
10576 rm -f conftest.$ac_objext conftest.$ac_ext
10577 cat >conftest.$ac_ext <<_ACEOF
10578 #line 10578 "configure"
10579 #include "confdefs.h"
10580 #define _LARGE_FILES 1
10581 #include <sys/types.h>
10582 /* Check that off_t can represent 2**63 - 1 correctly.
10583 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10584 since some C++ compilers masquerading as C compilers
10585 incorrectly reject 9223372036854775807. */
10586 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10587 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10588 && LARGE_OFF_T % 2147483647 == 1)
10598 rm -f conftest.$ac_objext
10599 if { (eval echo "$as_me:10599: \"$ac_compile\"") >&5
10600 (eval $ac_compile) 2>&5
10602 echo "$as_me:10602: \$? = $ac_status" >&5
10603 (exit $ac_status); } &&
10604 { ac_try='test -s conftest.$ac_objext'
10605 { (eval echo "$as_me:10605: \"$ac_try\"") >&5
10606 (eval $ac_try) 2>&5
10608 echo "$as_me:10608: \$? = $ac_status" >&5
10609 (exit $ac_status); }; }; then
10610 ac_cv_sys_large_files=1; break
10612 echo "$as_me: failed program was:" >&5
10613 cat conftest.$ac_ext >&5
10615 rm -f conftest.$ac_objext conftest.$ac_ext
10619 echo "$as_me:10619: result: $ac_cv_sys_large_files" >&5
10620 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
10621 if test "$ac_cv_sys_large_files" != no; then
10623 cat >>confdefs.h <<EOF
10624 #define _LARGE_FILES $ac_cv_sys_large_files
10631 if test "$enable_largefile" != no ; then
10632 echo "$as_me:10632: checking for _LARGEFILE_SOURCE value needed for large files" >&5
10633 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
10634 if test "${ac_cv_sys_largefile_source+set}" = set; then
10635 echo $ECHO_N "(cached) $ECHO_C" >&6
10638 ac_cv_sys_largefile_source=no
10639 cat >conftest.$ac_ext <<_ACEOF
10640 #line 10640 "configure"
10641 #include "confdefs.h"
10651 rm -f conftest.$ac_objext
10652 if { (eval echo "$as_me:10652: \"$ac_compile\"") >&5
10653 (eval $ac_compile) 2>&5
10655 echo "$as_me:10655: \$? = $ac_status" >&5
10656 (exit $ac_status); } &&
10657 { ac_try='test -s conftest.$ac_objext'
10658 { (eval echo "$as_me:10658: \"$ac_try\"") >&5
10659 (eval $ac_try) 2>&5
10661 echo "$as_me:10661: \$? = $ac_status" >&5
10662 (exit $ac_status); }; }; then
10665 echo "$as_me: failed program was:" >&5
10666 cat conftest.$ac_ext >&5
10668 rm -f conftest.$ac_objext conftest.$ac_ext
10669 cat >conftest.$ac_ext <<_ACEOF
10670 #line 10670 "configure"
10671 #include "confdefs.h"
10672 #define _LARGEFILE_SOURCE 1
10682 rm -f conftest.$ac_objext
10683 if { (eval echo "$as_me:10683: \"$ac_compile\"") >&5
10684 (eval $ac_compile) 2>&5
10686 echo "$as_me:10686: \$? = $ac_status" >&5
10687 (exit $ac_status); } &&
10688 { ac_try='test -s conftest.$ac_objext'
10689 { (eval echo "$as_me:10689: \"$ac_try\"") >&5
10690 (eval $ac_try) 2>&5
10692 echo "$as_me:10692: \$? = $ac_status" >&5
10693 (exit $ac_status); }; }; then
10694 ac_cv_sys_largefile_source=1; break
10696 echo "$as_me: failed program was:" >&5
10697 cat conftest.$ac_ext >&5
10699 rm -f conftest.$ac_objext conftest.$ac_ext
10703 echo "$as_me:10703: result: $ac_cv_sys_largefile_source" >&5
10704 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
10705 if test "$ac_cv_sys_largefile_source" != no; then
10707 cat >>confdefs.h <<EOF
10708 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10714 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10715 # in glibc 2.1.3, but that breaks too many other things.
10716 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10717 echo "$as_me:10717: checking for fseeko" >&5
10718 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
10719 if test "${ac_cv_func_fseeko+set}" = set; then
10720 echo $ECHO_N "(cached) $ECHO_C" >&6
10722 cat >conftest.$ac_ext <<_ACEOF
10723 #line 10723 "configure"
10724 #include "confdefs.h"
10729 return fseeko && fseeko (stdin, 0, 0);
10734 rm -f conftest.$ac_objext conftest$ac_exeext
10735 if { (eval echo "$as_me:10735: \"$ac_link\"") >&5
10736 (eval $ac_link) 2>&5
10738 echo "$as_me:10738: \$? = $ac_status" >&5
10739 (exit $ac_status); } &&
10740 { ac_try='test -s conftest$ac_exeext'
10741 { (eval echo "$as_me:10741: \"$ac_try\"") >&5
10742 (eval $ac_try) 2>&5
10744 echo "$as_me:10744: \$? = $ac_status" >&5
10745 (exit $ac_status); }; }; then
10746 ac_cv_func_fseeko=yes
10748 echo "$as_me: failed program was:" >&5
10749 cat conftest.$ac_ext >&5
10750 ac_cv_func_fseeko=no
10752 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10754 echo "$as_me:10754: result: $ac_cv_func_fseeko" >&5
10755 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
10756 if test $ac_cv_func_fseeko = yes; then
10758 cat >>confdefs.h <<\EOF
10759 #define HAVE_FSEEKO 1
10764 # Normally we would collect these definitions in the config.h,
10765 # but (like _XOPEN_SOURCE), some environments rely on having these
10766 # defined before any of the system headers are included. Another
10767 # case comes up with C++, e.g., on AIX the compiler compiles the
10768 # header files by themselves before looking at the body files it is
10769 # told to compile. For ncurses, those header files do not include
10771 test "$ac_cv_sys_large_files" != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
10772 test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE "
10773 test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits "
10775 echo "$as_me:10775: checking whether to use struct dirent64" >&5
10776 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
10777 if test "${cf_cv_struct_dirent64+set}" = set; then
10778 echo $ECHO_N "(cached) $ECHO_C" >&6
10781 cat >conftest.$ac_ext <<_ACEOF
10782 #line 10782 "configure"
10783 #include "confdefs.h"
10785 #include <sys/types.h>
10786 #include <dirent.h>
10792 /* if transitional largefile support is setup, this is true */
10793 extern struct dirent64 * readdir(DIR *);
10794 struct dirent64 *x = readdir((DIR *)0);
10795 struct dirent *y = readdir((DIR *)0);
10802 rm -f conftest.$ac_objext
10803 if { (eval echo "$as_me:10803: \"$ac_compile\"") >&5
10804 (eval $ac_compile) 2>&5
10806 echo "$as_me:10806: \$? = $ac_status" >&5
10807 (exit $ac_status); } &&
10808 { ac_try='test -s conftest.$ac_objext'
10809 { (eval echo "$as_me:10809: \"$ac_try\"") >&5
10810 (eval $ac_try) 2>&5
10812 echo "$as_me:10812: \$? = $ac_status" >&5
10813 (exit $ac_status); }; }; then
10814 cf_cv_struct_dirent64=yes
10816 echo "$as_me: failed program was:" >&5
10817 cat conftest.$ac_ext >&5
10818 cf_cv_struct_dirent64=no
10820 rm -f conftest.$ac_objext conftest.$ac_ext
10823 echo "$as_me:10823: result: $cf_cv_struct_dirent64" >&5
10824 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
10825 test "$cf_cv_struct_dirent64" = yes &&
10826 cat >>confdefs.h <<\EOF
10827 #define HAVE_STRUCT_DIRENT64 1
10832 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
10833 echo "$as_me:10833: checking if you want tparm not to use X/Open fixed-parameter list" >&5
10834 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
10836 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
10837 if test "${enable_tparm_varargs+set}" = set; then
10838 enableval="$enable_tparm_varargs"
10839 with_tparm_varargs=$enableval
10841 with_tparm_varargs=yes
10843 echo "$as_me:10843: result: $with_tparm_varargs" >&5
10844 echo "${ECHO_T}$with_tparm_varargs" >&6
10845 NCURSES_TPARM_VARARGS=0
10846 test "x$with_tparm_varargs" = xyes && NCURSES_TPARM_VARARGS=1
10848 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
10849 if test "$with_ticlib" != no ; then
10850 echo "$as_me:10850: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
10851 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
10853 # Check whether --enable-tic-depends or --disable-tic-depends was given.
10854 if test "${enable_tic_depends+set}" = set; then
10855 enableval="$enable_tic_depends"
10856 with_tic_depends=$enableval
10858 with_tic_depends=yes
10860 echo "$as_me:10860: result: $with_tic_depends" >&5
10861 echo "${ECHO_T}$with_tic_depends" >&6
10863 with_tic_depends=no
10866 ### use option --with-bool to override bool's type
10867 echo "$as_me:10867: checking for type of bool" >&5
10868 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
10870 # Check whether --with-bool or --without-bool was given.
10871 if test "${with_bool+set}" = set; then
10872 withval="$with_bool"
10873 NCURSES_BOOL="$withval"
10877 echo "$as_me:10877: result: $NCURSES_BOOL" >&5
10878 echo "${ECHO_T}$NCURSES_BOOL" >&6
10880 echo "$as_me:10880: checking for alternate terminal capabilities file" >&5
10881 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
10883 # Check whether --with-caps or --without-caps was given.
10884 if test "${with_caps+set}" = set; then
10885 withval="$with_caps"
10886 TERMINFO_CAPS=Caps.$withval
10890 test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
10891 echo "$as_me:10891: result: $TERMINFO_CAPS" >&5
10892 echo "${ECHO_T}$TERMINFO_CAPS" >&6
10894 ### use option --with-chtype to override chtype's type
10895 echo "$as_me:10895: checking for type of chtype" >&5
10896 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
10898 # Check whether --with-chtype or --without-chtype was given.
10899 if test "${with_chtype+set}" = set; then
10900 withval="$with_chtype"
10901 NCURSES_CHTYPE="$withval"
10903 NCURSES_CHTYPE=$cf_dft_chtype
10905 echo "$as_me:10905: result: $NCURSES_CHTYPE" >&5
10906 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
10908 ### use option --with-ospeed to override ospeed's type
10909 echo "$as_me:10909: checking for type of ospeed" >&5
10910 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
10912 # Check whether --with-ospeed or --without-ospeed was given.
10913 if test "${with_ospeed+set}" = set; then
10914 withval="$with_ospeed"
10915 NCURSES_OSPEED="$withval"
10917 NCURSES_OSPEED=short
10919 echo "$as_me:10919: result: $NCURSES_OSPEED" >&5
10920 echo "${ECHO_T}$NCURSES_OSPEED" >&6
10922 ### use option --with-mmask-t to override mmask_t's type
10923 echo "$as_me:10923: checking for type of mmask_t" >&5
10924 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
10926 # Check whether --with-mmask-t or --without-mmask-t was given.
10927 if test "${with_mmask_t+set}" = set; then
10928 withval="$with_mmask_t"
10929 NCURSES_MMASK_T="$withval"
10931 NCURSES_MMASK_T=$cf_dft_mmask_t
10933 echo "$as_me:10933: result: $NCURSES_MMASK_T" >&5
10934 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
10936 ### use option --with-ccharw-max to override CCHARW_MAX size
10937 echo "$as_me:10937: checking for size CCHARW_MAX" >&5
10938 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
10940 # Check whether --with-ccharw-max or --without-ccharw-max was given.
10941 if test "${with_ccharw_max+set}" = set; then
10942 withval="$with_ccharw_max"
10943 NCURSES_CCHARW_MAX="$withval"
10945 NCURSES_CCHARW_MAX=5
10947 echo "$as_me:10947: result: $NCURSES_CCHARW_MAX" >&5
10948 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
10950 ### use option --with-tparm-arg to override tparm's argument type
10951 echo "$as_me:10951: checking for type of tparm args" >&5
10952 echo $ECHO_N "checking for type of tparm args... $ECHO_C" >&6
10954 # Check whether --with-tparm-arg or --without-tparm-arg was given.
10955 if test "${with_tparm_arg+set}" = set; then
10956 withval="$with_tparm_arg"
10957 NCURSES_TPARM_ARG="$withval"
10959 NCURSES_TPARM_ARG=$cf_dft_tparm_arg
10961 echo "$as_me:10961: result: $NCURSES_TPARM_ARG" >&5
10962 echo "${ECHO_T}$NCURSES_TPARM_ARG" >&6
10964 ### Enable compiling-in rcs id's
10965 echo "$as_me:10965: checking if RCS identifiers should be compiled-in" >&5
10966 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
10968 # Check whether --with-rcs-ids or --without-rcs-ids was given.
10969 if test "${with_rcs_ids+set}" = set; then
10970 withval="$with_rcs_ids"
10971 with_rcs_ids=$withval
10975 echo "$as_me:10975: result: $with_rcs_ids" >&5
10976 echo "${ECHO_T}$with_rcs_ids" >&6
10977 test "x$with_rcs_ids" = xyes &&
10978 cat >>confdefs.h <<\EOF
10979 #define USE_RCS_IDS 1
10982 ###############################################################################
10984 echo "$as_me:10984: checking format of man-pages" >&5
10985 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
10987 # Check whether --with-manpage-format or --without-manpage-format was given.
10988 if test "${with_manpage_format+set}" = set; then
10989 withval="$with_manpage_format"
10990 MANPAGE_FORMAT=$withval
10992 MANPAGE_FORMAT=unknown
10995 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
10996 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
11000 case $MANPAGE_FORMAT in
11002 if test -z "$MANPATH" ; then
11003 MANPATH="/usr/man:/usr/share/man"
11006 # look for the 'date' man-page (it's most likely to be installed!)
11012 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
11013 for cf_dir in $MANPATH; do
11014 test -z "$cf_dir" && cf_dir=/usr/man
11015 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
11017 cf_test=`echo $cf_name | sed -e 's/*//'`
11018 if test "x$cf_test" = "x$cf_name" ; then
11021 (*.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
11022 (*.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
11023 (*.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
11024 (*) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
11038 # if we found a match in either man* or cat*, stop looking
11039 if test -n "$MANPAGE_FORMAT" ; then
11041 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
11042 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
11048 test $cf_found=yes && break
11051 # only check the first directory in $MANPATH where we find manpages
11052 if test -n "$MANPAGE_FORMAT" ; then
11056 # if we did not find the example, just assume it is normal
11057 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
11061 for cf_option in $MANPAGE_FORMAT; do
11063 (gzip|compress|BSDI|normal|formatted|catonly)
11066 cf_unknown="$cf_unknown $cf_option"
11073 echo "$as_me:11073: result: $MANPAGE_FORMAT" >&5
11074 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
11075 if test -n "$cf_unknown" ; then
11076 { echo "$as_me:11076: WARNING: Unexpected manpage-format $cf_unknown" >&5
11077 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
11080 echo "$as_me:11080: checking for manpage renaming" >&5
11081 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
11083 # Check whether --with-manpage-renames or --without-manpage-renames was given.
11084 if test "${with_manpage_renames+set}" = set; then
11085 withval="$with_manpage_renames"
11086 MANPAGE_RENAMES=$withval
11088 MANPAGE_RENAMES=yes
11091 case ".$MANPAGE_RENAMES" in
11095 # Debian 'man' program?
11096 if test -f /etc/debian_version ; then
11097 MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
11104 if test "$MANPAGE_RENAMES" != no ; then
11105 if test -f $srcdir/man/$MANPAGE_RENAMES ; then
11106 MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
11107 elif test ! -f $MANPAGE_RENAMES ; then
11108 { { echo "$as_me:11108: error: not a filename: $MANPAGE_RENAMES" >&5
11109 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
11110 { (exit 1); exit 1; }; }
11113 test ! -d man && mkdir man
11115 # Construct a sed-script to perform renaming within man-pages
11116 if test -n "$MANPAGE_RENAMES" ; then
11117 test ! -d man && mkdir man
11118 $SHELL $srcdir/man/make_sed.sh $MANPAGE_RENAMES >./edit_man.sed
11122 echo "$as_me:11122: result: $MANPAGE_RENAMES" >&5
11123 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
11125 echo "$as_me:11125: checking if manpage aliases will be installed" >&5
11126 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
11128 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
11129 if test "${with_manpage_aliases+set}" = set; then
11130 withval="$with_manpage_aliases"
11131 MANPAGE_ALIASES=$withval
11133 MANPAGE_ALIASES=yes
11136 echo "$as_me:11136: result: $MANPAGE_ALIASES" >&5
11137 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
11141 cf_use_symlinks=yes
11148 MANPAGE_SYMLINKS=no
11149 if test "$MANPAGE_ALIASES" = yes ; then
11150 echo "$as_me:11150: checking if manpage symlinks should be used" >&5
11151 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
11153 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
11154 if test "${with_manpage_symlinks+set}" = set; then
11155 withval="$with_manpage_symlinks"
11156 MANPAGE_SYMLINKS=$withval
11158 MANPAGE_SYMLINKS=$cf_use_symlinks
11161 if test "$$cf_use_symlinks" = no; then
11162 if test "$MANPAGE_SYMLINKS" = yes ; then
11163 { echo "$as_me:11163: WARNING: cannot make symlinks" >&5
11164 echo "$as_me: WARNING: cannot make symlinks" >&2;}
11165 MANPAGE_SYMLINKS=no
11169 echo "$as_me:11169: result: $MANPAGE_SYMLINKS" >&5
11170 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
11173 echo "$as_me:11173: checking for manpage tbl" >&5
11174 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
11176 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
11177 if test "${with_manpage_tbl+set}" = set; then
11178 withval="$with_manpage_tbl"
11179 MANPAGE_TBL=$withval
11184 echo "$as_me:11184: result: $MANPAGE_TBL" >&5
11185 echo "${ECHO_T}$MANPAGE_TBL" >&6
11187 if test "$prefix" = "NONE" ; then
11188 cf_prefix="$ac_default_prefix"
11190 cf_prefix="$prefix"
11193 case "$MANPAGE_FORMAT" in
11208 test ! -d man && mkdir man
11212 case "$MANPAGE_FORMAT" in
11215 cf_compress=compress
11223 cf_edit_man=./edit_man.sh
11224 cf_man_alias=`pwd`/man_alias.sed
11226 cat >$cf_edit_man <<CF_EOF
11228 # this script is generated by the configure-script CF_MAN_PAGES macro.
11230 prefix="$cf_prefix"
11231 datarootdir="$datarootdir"
11234 NCURSES_MAJOR="$NCURSES_MAJOR"
11235 NCURSES_MINOR="$NCURSES_MINOR"
11236 NCURSES_PATCH="$NCURSES_PATCH"
11238 NCURSES_OSPEED="$NCURSES_OSPEED"
11239 TERMINFO="$TERMINFO"
11242 INSTALL_DATA="$INSTALL_DATA"
11244 transform="$program_transform_name"
11246 TMP=\${TMPDIR:=/tmp}/man\$\$
11247 trap "rm -f \$TMP" 0 1 2 5 15
11259 top_srcdir=\$srcdir/..
11262 if test "\$form" = normal ; then
11263 if test "$cf_format" = yes ; then
11264 if test "$cf_inboth" = no ; then
11265 $SHELL \$0 format \$verb \$mandir \$srcdir \$*
11269 cf_subdir=\$mandir/man
11270 cf_tables=$MANPAGE_TBL
11272 cf_subdir=\$mandir/cat
11276 # process the list of source-files
11281 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
11282 if test \$verb = installing ; then
11283 if test ! -d \$cf_subdir\${section} ; then
11284 mkdir -p \$cf_subdir\$section
11288 # replace variables in man page
11289 if test ! -f $cf_man_alias ; then
11290 cat >>$cf_man_alias <<-CF_EOF2
11291 s,@DATADIR@,\$datadir,g
11292 s,@TERMINFO@,\${TERMINFO:="no default value"},g
11293 s,@TERMINFO_DIRS@,\${TERMINFO_DIRS:="no default value"},g
11294 s,@NCURSES_MAJOR@,\${NCURSES_MAJOR:="no default value"},g
11295 s,@NCURSES_MINOR@,\${NCURSES_MINOR:="no default value"},g
11296 s,@NCURSES_PATCH@,\${NCURSES_PATCH:="no default value"},g
11297 s,@NCURSES_OSPEED@,\${NCURSES_OSPEED:="no default value"},g
11300 for cf_name in captoinfo clear infocmp infotocap tabs tic toe tput tset
11302 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
11303 cf_name=`echo $cf_name|sed "$program_transform_name"`
11304 cat >>$cf_edit_man <<-CF_EOF
11305 s,@$cf_NAME@,$cf_name,g
11309 cat >>$cf_edit_man <<CF_EOF
11311 echo "...made $cf_man_alias"
11315 cf_source=\`basename \$i\`
11316 inalias=\$cf_source
11317 test ! -f \$inalias && inalias="\$srcdir/\$inalias"
11318 if test ! -f \$inalias ; then
11319 echo .. skipped \$cf_source
11324 if test "$MANPAGE_ALIASES" != no ; then
11325 cat >>$cf_edit_man <<CF_EOF
11327 test $with_curses_h = yes && nCurses=ncurses.3x
11328 aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u; test \$inalias = \$nCurses && echo curses\`
11332 if test "$MANPAGE_RENAMES" = no ; then
11333 cat >>$cf_edit_man <<CF_EOF
11334 # perform program transformations for section 1 man pages
11335 if test \$section = 1 ; then
11336 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
11338 cf_target=\$cf_subdir\${section}/\$cf_source
11342 cat >>$cf_edit_man <<CF_EOF
11343 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
11344 if test -z "\$cf_target" ; then
11345 echo '? missing rename for '\$cf_source
11346 cf_target="\$cf_source"
11348 cf_target="\$cf_subdir\${section}/\${cf_target}"
11353 cat >>$cf_edit_man <<CF_EOF
11354 sed -f $cf_man_alias \\
11357 if test -f $MANPAGE_RENAMES ; then
11358 cat >>$cf_edit_man <<CF_EOF
11359 < \$i | sed -f `pwd`/edit_man.sed >\$TMP
11362 cat >>$cf_edit_man <<CF_EOF
11367 cat >>$cf_edit_man <<CF_EOF
11368 if test \$cf_tables = yes ; then
11369 tbl \$TMP >\$TMP.out
11374 if test $with_overwrite != yes ; then
11375 cat >>$cf_edit_man <<CF_EOF
11376 sed -e "/\#[ ]*include/s,<curses.h,<ncurses$LIB_SUFFIX/curses.h," < \$TMP >\$TMP.out
11381 if test $with_curses_h != yes ; then
11382 cat >>$cf_edit_man <<CF_EOF
11383 sed -e "/\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
11388 cat >>$cf_edit_man <<CF_EOF
11389 if test \$form = format ; then
11390 nroff -man \$TMP >\$TMP.out
11395 if test -n "$cf_compress" ; then
11396 cat >>$cf_edit_man <<CF_EOF
11397 if test \$verb = installing ; then
11398 if ( $cf_compress -f \$TMP )
11400 mv \$TMP.$cf_so_strip \$TMP
11403 cf_target="\$cf_target.$cf_so_strip"
11407 case "$MANPAGE_FORMAT" in
11409 cat >>$cf_edit_man <<CF_EOF
11410 if test \$form = format ; then
11411 # BSDI installs only .0 suffixes in the cat directories
11412 cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
11418 cat >>$cf_edit_man <<CF_EOF
11419 suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\`
11420 if test \$verb = installing ; then
11421 echo \$verb \$cf_target
11422 \$INSTALL_DATA \$TMP \$cf_target
11423 test -d \$cf_subdir\${section} &&
11424 test -n "\$aliases" && (
11425 cd \$cf_subdir\${section} && (
11426 cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
11427 test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
11428 cf_target=\`basename \$cf_target\`
11429 for cf_alias in \$aliases
11431 if test \$section = 1 ; then
11432 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
11435 if test "$MANPAGE_SYMLINKS" = yes ; then
11436 if test -f \$cf_alias\${suffix} ; then
11437 if ( cmp -s \$cf_target \$cf_alias\${suffix} )
11442 echo .. \$verb alias \$cf_alias\${suffix}
11446 cat >>$cf_edit_man <<CF_EOF
11447 $LN_S \$cf_target \$cf_alias\${suffix}
11451 cat >>$cf_edit_man <<CF_EOF
11452 rm -f \$cf_alias\${suffix}
11453 $LN_S \$cf_target \$cf_alias\${suffix}
11457 cat >>$cf_edit_man <<CF_EOF
11458 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
11459 echo ".so \$cf_source" >\$TMP
11461 if test -n "$cf_compress" ; then
11462 cat >>$cf_edit_man <<CF_EOF
11463 if test -n "$cf_so_strip" ; then
11464 $cf_compress -f \$TMP
11465 mv \$TMP.$cf_so_strip \$TMP
11469 cat >>$cf_edit_man <<CF_EOF
11470 echo .. \$verb alias \$cf_alias\${suffix}
11471 rm -f \$cf_alias\${suffix}
11472 \$INSTALL_DATA \$TMP \$cf_alias\${suffix}
11477 elif test \$verb = removing ; then
11478 test -f \$cf_target && (
11479 echo \$verb \$cf_target
11482 test -d \$cf_subdir\${section} &&
11483 test -n "\$aliases" && (
11484 cd \$cf_subdir\${section} && (
11485 for cf_alias in \$aliases
11487 if test \$section = 1 ; then
11488 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
11491 echo .. \$verb alias \$cf_alias\${suffix}
11492 rm -f \$cf_alias\${suffix}
11504 if test $cf_inboth = yes ; then
11505 if test \$form != format ; then
11506 $SHELL \$0 format \$verb \$mandir \$srcdir \$*
11512 chmod 755 $cf_edit_man
11514 ###############################################################################
11516 ### Note that some functions (such as const) are normally disabled anyway.
11517 echo "$as_me:11517: checking if you want to build with function extensions" >&5
11518 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
11520 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
11521 if test "${enable_ext_funcs+set}" = set; then
11522 enableval="$enable_ext_funcs"
11523 with_ext_funcs=$enableval
11527 echo "$as_me:11527: result: $with_ext_funcs" >&5
11528 echo "${ECHO_T}$with_ext_funcs" >&6
11529 if test "x$with_ext_funcs" = xyes ; then
11530 NCURSES_EXT_FUNCS=1
11532 cat >>confdefs.h <<\EOF
11533 #define HAVE_ASSUME_DEFAULT_COLORS 1
11536 cat >>confdefs.h <<\EOF
11537 #define HAVE_CURSES_VERSION 1
11540 cat >>confdefs.h <<\EOF
11541 #define HAVE_HAS_KEY 1
11544 cat >>confdefs.h <<\EOF
11545 #define HAVE_RESIZETERM 1
11548 cat >>confdefs.h <<\EOF
11549 #define HAVE_RESIZE_TERM 1
11552 cat >>confdefs.h <<\EOF
11553 #define HAVE_TERM_ENTRY_H 1
11556 cat >>confdefs.h <<\EOF
11557 #define HAVE_USE_DEFAULT_COLORS 1
11560 cat >>confdefs.h <<\EOF
11561 #define HAVE_USE_SCREEN 1
11564 cat >>confdefs.h <<\EOF
11565 #define HAVE_USE_WINDOW 1
11568 cat >>confdefs.h <<\EOF
11569 #define HAVE_WRESIZE 1
11572 cat >>confdefs.h <<\EOF
11573 #define NCURSES_EXT_FUNCS 1
11576 GENERATED_EXT_FUNCS=generated
11578 NCURSES_EXT_FUNCS=0
11579 GENERATED_EXT_FUNCS=
11582 echo "$as_me:11582: checking if you want to build with SCREEN extensions" >&5
11583 echo $ECHO_N "checking if you want to build with SCREEN extensions... $ECHO_C" >&6
11585 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
11586 if test "${enable_sp_funcs+set}" = set; then
11587 enableval="$enable_sp_funcs"
11588 with_sp_funcs=$enableval
11590 with_sp_funcs=$cf_dft_ext_spfuncs
11592 echo "$as_me:11592: result: $with_sp_funcs" >&5
11593 echo "${ECHO_T}$with_sp_funcs" >&6
11594 if test "x$with_sp_funcs" = xyes ; then
11597 cat >>confdefs.h <<\EOF
11598 #define NCURSES_SP_FUNCS 1
11601 GENERATED_SP_FUNCS=generated
11604 GENERATED_SP_FUNCS=
11607 echo "$as_me:11607: checking if you want to build with terminal-driver" >&5
11608 echo $ECHO_N "checking if you want to build with terminal-driver... $ECHO_C" >&6
11610 # Check whether --enable-term-driver or --disable-term-driver was given.
11611 if test "${enable_term_driver+set}" = set; then
11612 enableval="$enable_term_driver"
11613 with_term_driver=$enableval
11615 with_term_driver=no
11617 echo "$as_me:11617: result: $with_term_driver" >&5
11618 echo "${ECHO_T}$with_term_driver" >&6
11619 if test "x$with_term_driver" = xyes ; then
11621 cat >>confdefs.h <<\EOF
11622 #define USE_TERM_DRIVER 1
11625 if test "x$with_termlib" != xno ; then
11626 { { echo "$as_me:11626: error: The term-driver option conflicts with the termlib option" >&5
11627 echo "$as_me: error: The term-driver option conflicts with the termlib option" >&2;}
11628 { (exit 1); exit 1; }; }
11630 if test "x$with_sp_funcs" != xyes ; then
11631 { { echo "$as_me:11631: error: The term-driver option relies upon sp-funcs" >&5
11632 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
11633 { (exit 1); exit 1; }; }
11637 ### use option --enable-const to turn on use of const beyond that in XSI.
11638 echo "$as_me:11638: checking for extended use of const keyword" >&5
11639 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
11641 # Check whether --enable-const or --disable-const was given.
11642 if test "${enable_const+set}" = set; then
11643 enableval="$enable_const"
11644 with_ext_const=$enableval
11646 with_ext_const=$cf_dft_ext_const
11648 echo "$as_me:11648: result: $with_ext_const" >&5
11649 echo "${ECHO_T}$with_ext_const" >&6
11650 NCURSES_CONST='/*nothing*/'
11651 if test "x$with_ext_const" = xyes ; then
11652 NCURSES_CONST=const
11655 ### use option --enable-ext-colors to turn on use of colors beyond 16.
11656 echo "$as_me:11656: checking if you want to use extended colors" >&5
11657 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
11659 # Check whether --enable-ext-colors or --disable-ext-colors was given.
11660 if test "${enable_ext_colors+set}" = set; then
11661 enableval="$enable_ext_colors"
11662 with_ext_colors=$enableval
11664 with_ext_colors=$cf_dft_ext_colors
11666 echo "$as_me:11666: result: $with_ext_colors" >&5
11667 echo "${ECHO_T}$with_ext_colors" >&6
11668 NCURSES_EXT_COLORS=0
11669 if test "x$with_ext_colors" = xyes ; then
11670 if test "x$with_widec" != xyes ; then
11671 { echo "$as_me:11671: WARNING: This option applies only to wide-character library" >&5
11672 echo "$as_me: WARNING: This option applies only to wide-character library" >&2;}
11674 # cannot be ABI 5 since it changes sizeof(cchar_t)
11676 if test "${with_abi_version+set}" != set; then
11677 case $cf_cv_rel_version in
11679 cf_cv_rel_version=6.0
11680 cf_cv_abi_version=6
11681 { echo "$as_me:11681: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
11682 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
11687 NCURSES_EXT_COLORS=1
11689 cat >>confdefs.h <<\EOF
11690 #define NCURSES_EXT_COLORS 1
11696 ### use option --enable-ext-mouse to modify coding to support 5-button mice
11697 echo "$as_me:11697: checking if you want to use extended mouse encoding" >&5
11698 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
11700 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
11701 if test "${enable_ext_mouse+set}" = set; then
11702 enableval="$enable_ext_mouse"
11703 with_ext_mouse=$enableval
11705 with_ext_mouse=$cf_dft_ext_mouse
11707 echo "$as_me:11707: result: $with_ext_mouse" >&5
11708 echo "${ECHO_T}$with_ext_mouse" >&6
11709 NCURSES_MOUSE_VERSION=1
11710 if test "x$with_ext_mouse" = xyes ; then
11711 NCURSES_MOUSE_VERSION=2
11713 if test "${with_abi_version+set}" != set; then
11714 case $cf_cv_rel_version in
11716 cf_cv_rel_version=6.0
11717 cf_cv_abi_version=6
11718 { echo "$as_me:11718: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
11719 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
11726 ### use option --enable-ext-putwin to turn on extended screendumps
11727 echo "$as_me:11727: checking if you want to use extended putwin/screendump" >&5
11728 echo $ECHO_N "checking if you want to use extended putwin/screendump... $ECHO_C" >&6
11730 # Check whether --enable-ext-putwin or --disable-ext-putwin was given.
11731 if test "${enable_ext_putwin+set}" = set; then
11732 enableval="$enable_ext_putwin"
11733 with_ext_putwin=$enableval
11735 with_ext_putwin=$cf_dft_ext_putwin
11737 echo "$as_me:11737: result: $with_ext_putwin" >&5
11738 echo "${ECHO_T}$with_ext_putwin" >&6
11739 if test "x$with_ext_putwin" = xyes ; then
11741 cat >>confdefs.h <<\EOF
11742 #define NCURSES_EXT_PUTWIN 1
11747 echo "$as_me:11747: checking if you want \$NCURSES_NO_PADDING code" >&5
11748 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
11750 # Check whether --enable-no-padding or --disable-no-padding was given.
11751 if test "${enable_no_padding+set}" = set; then
11752 enableval="$enable_no_padding"
11753 with_no_padding=$enableval
11755 with_no_padding=$with_ext_funcs
11757 echo "$as_me:11757: result: $with_no_padding" >&5
11758 echo "${ECHO_T}$with_no_padding" >&6
11759 test "x$with_no_padding" = xyes &&
11760 cat >>confdefs.h <<\EOF
11761 #define NCURSES_NO_PADDING 1
11764 echo "$as_me:11764: checking for ANSI C header files" >&5
11765 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11766 if test "${ac_cv_header_stdc+set}" = set; then
11767 echo $ECHO_N "(cached) $ECHO_C" >&6
11769 cat >conftest.$ac_ext <<_ACEOF
11770 #line 11770 "configure"
11771 #include "confdefs.h"
11772 #include <stdlib.h>
11773 #include <stdarg.h>
11774 #include <string.h>
11778 if { (eval echo "$as_me:11778: \"$ac_cpp conftest.$ac_ext\"") >&5
11779 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11781 egrep -v '^ *\+' conftest.er1 >conftest.err
11783 cat conftest.err >&5
11784 echo "$as_me:11784: \$? = $ac_status" >&5
11785 (exit $ac_status); } >/dev/null; then
11786 if test -s conftest.err; then
11787 ac_cpp_err=$ac_c_preproc_warn_flag
11794 if test -z "$ac_cpp_err"; then
11795 ac_cv_header_stdc=yes
11797 echo "$as_me: failed program was:" >&5
11798 cat conftest.$ac_ext >&5
11799 ac_cv_header_stdc=no
11801 rm -f conftest.err conftest.$ac_ext
11803 if test $ac_cv_header_stdc = yes; then
11804 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11805 cat >conftest.$ac_ext <<_ACEOF
11806 #line 11806 "configure"
11807 #include "confdefs.h"
11808 #include <string.h>
11811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11812 egrep "memchr" >/dev/null 2>&1; then
11815 ac_cv_header_stdc=no
11821 if test $ac_cv_header_stdc = yes; then
11822 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11823 cat >conftest.$ac_ext <<_ACEOF
11824 #line 11824 "configure"
11825 #include "confdefs.h"
11826 #include <stdlib.h>
11829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11830 egrep "free" >/dev/null 2>&1; then
11833 ac_cv_header_stdc=no
11839 if test $ac_cv_header_stdc = yes; then
11840 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11841 if test "$cross_compiling" = yes; then
11844 cat >conftest.$ac_ext <<_ACEOF
11845 #line 11845 "configure"
11846 #include "confdefs.h"
11848 #if ((' ' & 0x0FF) == 0x020)
11849 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11850 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11852 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
11853 || ('j' <= (c) && (c) <= 'r') \
11854 || ('s' <= (c) && (c) <= 'z'))
11855 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11858 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11863 for (i = 0; i < 256; i++)
11864 if (XOR (islower (i), ISLOWER (i))
11865 || toupper (i) != TOUPPER (i))
11866 $ac_main_return(2);
11867 $ac_main_return (0);
11870 rm -f conftest$ac_exeext
11871 if { (eval echo "$as_me:11871: \"$ac_link\"") >&5
11872 (eval $ac_link) 2>&5
11874 echo "$as_me:11874: \$? = $ac_status" >&5
11875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11876 { (eval echo "$as_me:11876: \"$ac_try\"") >&5
11877 (eval $ac_try) 2>&5
11879 echo "$as_me:11879: \$? = $ac_status" >&5
11880 (exit $ac_status); }; }; then
11883 echo "$as_me: program exited with status $ac_status" >&5
11884 echo "$as_me: failed program was:" >&5
11885 cat conftest.$ac_ext >&5
11886 ac_cv_header_stdc=no
11888 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11892 echo "$as_me:11892: result: $ac_cv_header_stdc" >&5
11893 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11894 if test $ac_cv_header_stdc = yes; then
11896 cat >>confdefs.h <<\EOF
11897 #define STDC_HEADERS 1
11902 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
11904 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
11905 inttypes.h stdint.h unistd.h
11907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11908 echo "$as_me:11908: checking for $ac_header" >&5
11909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11911 echo $ECHO_N "(cached) $ECHO_C" >&6
11913 cat >conftest.$ac_ext <<_ACEOF
11914 #line 11914 "configure"
11915 #include "confdefs.h"
11916 $ac_includes_default
11917 #include <$ac_header>
11919 rm -f conftest.$ac_objext
11920 if { (eval echo "$as_me:11920: \"$ac_compile\"") >&5
11921 (eval $ac_compile) 2>&5
11923 echo "$as_me:11923: \$? = $ac_status" >&5
11924 (exit $ac_status); } &&
11925 { ac_try='test -s conftest.$ac_objext'
11926 { (eval echo "$as_me:11926: \"$ac_try\"") >&5
11927 (eval $ac_try) 2>&5
11929 echo "$as_me:11929: \$? = $ac_status" >&5
11930 (exit $ac_status); }; }; then
11931 eval "$as_ac_Header=yes"
11933 echo "$as_me: failed program was:" >&5
11934 cat conftest.$ac_ext >&5
11935 eval "$as_ac_Header=no"
11937 rm -f conftest.$ac_objext conftest.$ac_ext
11939 echo "$as_me:11939: result: `eval echo '${'$as_ac_Header'}'`" >&5
11940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11942 cat >>confdefs.h <<EOF
11943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11949 echo "$as_me:11949: checking for signed char" >&5
11950 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
11951 if test "${ac_cv_type_signed_char+set}" = set; then
11952 echo $ECHO_N "(cached) $ECHO_C" >&6
11954 cat >conftest.$ac_ext <<_ACEOF
11955 #line 11955 "configure"
11956 #include "confdefs.h"
11957 $ac_includes_default
11961 if ((signed char *) 0)
11963 if (sizeof (signed char))
11969 rm -f conftest.$ac_objext
11970 if { (eval echo "$as_me:11970: \"$ac_compile\"") >&5
11971 (eval $ac_compile) 2>&5
11973 echo "$as_me:11973: \$? = $ac_status" >&5
11974 (exit $ac_status); } &&
11975 { ac_try='test -s conftest.$ac_objext'
11976 { (eval echo "$as_me:11976: \"$ac_try\"") >&5
11977 (eval $ac_try) 2>&5
11979 echo "$as_me:11979: \$? = $ac_status" >&5
11980 (exit $ac_status); }; }; then
11981 ac_cv_type_signed_char=yes
11983 echo "$as_me: failed program was:" >&5
11984 cat conftest.$ac_ext >&5
11985 ac_cv_type_signed_char=no
11987 rm -f conftest.$ac_objext conftest.$ac_ext
11989 echo "$as_me:11989: result: $ac_cv_type_signed_char" >&5
11990 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
11992 echo "$as_me:11992: checking size of signed char" >&5
11993 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
11994 if test "${ac_cv_sizeof_signed_char+set}" = set; then
11995 echo $ECHO_N "(cached) $ECHO_C" >&6
11997 if test "$ac_cv_type_signed_char" = yes; then
11998 if test "$cross_compiling" = yes; then
11999 # Depending upon the size, compute the lo and hi bounds.
12000 cat >conftest.$ac_ext <<_ACEOF
12001 #line 12001 "configure"
12002 #include "confdefs.h"
12003 $ac_includes_default
12007 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
12012 rm -f conftest.$ac_objext
12013 if { (eval echo "$as_me:12013: \"$ac_compile\"") >&5
12014 (eval $ac_compile) 2>&5
12016 echo "$as_me:12016: \$? = $ac_status" >&5
12017 (exit $ac_status); } &&
12018 { ac_try='test -s conftest.$ac_objext'
12019 { (eval echo "$as_me:12019: \"$ac_try\"") >&5
12020 (eval $ac_try) 2>&5
12022 echo "$as_me:12022: \$? = $ac_status" >&5
12023 (exit $ac_status); }; }; then
12026 cat >conftest.$ac_ext <<_ACEOF
12027 #line 12027 "configure"
12028 #include "confdefs.h"
12029 $ac_includes_default
12033 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
12038 rm -f conftest.$ac_objext
12039 if { (eval echo "$as_me:12039: \"$ac_compile\"") >&5
12040 (eval $ac_compile) 2>&5
12042 echo "$as_me:12042: \$? = $ac_status" >&5
12043 (exit $ac_status); } &&
12044 { ac_try='test -s conftest.$ac_objext'
12045 { (eval echo "$as_me:12045: \"$ac_try\"") >&5
12046 (eval $ac_try) 2>&5
12048 echo "$as_me:12048: \$? = $ac_status" >&5
12049 (exit $ac_status); }; }; then
12050 ac_hi=$ac_mid; break
12052 echo "$as_me: failed program was:" >&5
12053 cat conftest.$ac_ext >&5
12054 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
12056 rm -f conftest.$ac_objext conftest.$ac_ext
12059 echo "$as_me: failed program was:" >&5
12060 cat conftest.$ac_ext >&5
12063 cat >conftest.$ac_ext <<_ACEOF
12064 #line 12064 "configure"
12065 #include "confdefs.h"
12066 $ac_includes_default
12070 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
12075 rm -f conftest.$ac_objext
12076 if { (eval echo "$as_me:12076: \"$ac_compile\"") >&5
12077 (eval $ac_compile) 2>&5
12079 echo "$as_me:12079: \$? = $ac_status" >&5
12080 (exit $ac_status); } &&
12081 { ac_try='test -s conftest.$ac_objext'
12082 { (eval echo "$as_me:12082: \"$ac_try\"") >&5
12083 (eval $ac_try) 2>&5
12085 echo "$as_me:12085: \$? = $ac_status" >&5
12086 (exit $ac_status); }; }; then
12087 ac_lo=$ac_mid; break
12089 echo "$as_me: failed program was:" >&5
12090 cat conftest.$ac_ext >&5
12091 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
12093 rm -f conftest.$ac_objext conftest.$ac_ext
12096 rm -f conftest.$ac_objext conftest.$ac_ext
12097 # Binary search between lo and hi bounds.
12098 while test "x$ac_lo" != "x$ac_hi"; do
12099 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12100 cat >conftest.$ac_ext <<_ACEOF
12101 #line 12101 "configure"
12102 #include "confdefs.h"
12103 $ac_includes_default
12107 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
12112 rm -f conftest.$ac_objext
12113 if { (eval echo "$as_me:12113: \"$ac_compile\"") >&5
12114 (eval $ac_compile) 2>&5
12116 echo "$as_me:12116: \$? = $ac_status" >&5
12117 (exit $ac_status); } &&
12118 { ac_try='test -s conftest.$ac_objext'
12119 { (eval echo "$as_me:12119: \"$ac_try\"") >&5
12120 (eval $ac_try) 2>&5
12122 echo "$as_me:12122: \$? = $ac_status" >&5
12123 (exit $ac_status); }; }; then
12126 echo "$as_me: failed program was:" >&5
12127 cat conftest.$ac_ext >&5
12128 ac_lo=`expr $ac_mid + 1`
12130 rm -f conftest.$ac_objext conftest.$ac_ext
12132 ac_cv_sizeof_signed_char=$ac_lo
12134 if test "$cross_compiling" = yes; then
12135 { { echo "$as_me:12135: error: cannot run test program while cross compiling" >&5
12136 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12137 { (exit 1); exit 1; }; }
12139 cat >conftest.$ac_ext <<_ACEOF
12140 #line 12140 "configure"
12141 #include "confdefs.h"
12142 $ac_includes_default
12146 FILE *f = fopen ("conftest.val", "w");
12148 $ac_main_return (1);
12149 fprintf (f, "%d", (sizeof (signed char)));
12155 rm -f conftest$ac_exeext
12156 if { (eval echo "$as_me:12156: \"$ac_link\"") >&5
12157 (eval $ac_link) 2>&5
12159 echo "$as_me:12159: \$? = $ac_status" >&5
12160 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12161 { (eval echo "$as_me:12161: \"$ac_try\"") >&5
12162 (eval $ac_try) 2>&5
12164 echo "$as_me:12164: \$? = $ac_status" >&5
12165 (exit $ac_status); }; }; then
12166 ac_cv_sizeof_signed_char=`cat conftest.val`
12168 echo "$as_me: program exited with status $ac_status" >&5
12169 echo "$as_me: failed program was:" >&5
12170 cat conftest.$ac_ext >&5
12172 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12177 ac_cv_sizeof_signed_char=0
12180 echo "$as_me:12180: result: $ac_cv_sizeof_signed_char" >&5
12181 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
12182 cat >>confdefs.h <<EOF
12183 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
12186 if test "$ac_cv_sizeof_signed_char" = 1 ; then
12187 NCURSES_SBOOL="signed char"
12189 NCURSES_SBOOL="char"
12191 echo "$as_me:12191: checking if you want to use signed Boolean array in term.h" >&5
12192 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
12194 # Check whether --enable-signed-char or --disable-signed-char was given.
12195 if test "${enable_signed_char+set}" = set; then
12196 enableval="$enable_signed_char"
12197 with_signed_char=$enableval
12199 with_signed_char=no
12201 echo "$as_me:12201: result: $with_signed_char" >&5
12202 echo "${ECHO_T}$with_signed_char" >&6
12203 test "x$with_signed_char" != xyes && NCURSES_SBOOL="char"
12205 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
12206 echo "$as_me:12206: checking if you want SIGWINCH handler" >&5
12207 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
12209 # Check whether --enable-sigwinch or --disable-sigwinch was given.
12210 if test "${enable_sigwinch+set}" = set; then
12211 enableval="$enable_sigwinch"
12212 with_sigwinch=$enableval
12214 with_sigwinch=$with_ext_funcs
12216 echo "$as_me:12216: result: $with_sigwinch" >&5
12217 echo "${ECHO_T}$with_sigwinch" >&6
12218 test "x$with_sigwinch" = xyes &&
12219 cat >>confdefs.h <<\EOF
12220 #define USE_SIGWINCH 1
12223 ### use option --enable-tcap-names to allow user to define new capabilities
12224 echo "$as_me:12224: checking if you want user-definable terminal capabilities like termcap" >&5
12225 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
12227 # Check whether --enable-tcap-names or --disable-tcap-names was given.
12228 if test "${enable_tcap_names+set}" = set; then
12229 enableval="$enable_tcap_names"
12230 with_tcap_names=$enableval
12232 with_tcap_names=$with_ext_funcs
12234 echo "$as_me:12234: result: $with_tcap_names" >&5
12235 echo "${ECHO_T}$with_tcap_names" >&6
12237 test "x$with_tcap_names" = xyes && NCURSES_XNAMES=1
12239 ###############################################################################
12240 # These options are relatively safe to experiment with.
12242 echo "$as_me:12242: checking if you want all development code" >&5
12243 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
12245 # Check whether --with-develop or --without-develop was given.
12246 if test "${with_develop+set}" = set; then
12247 withval="$with_develop"
12248 with_develop=$withval
12252 echo "$as_me:12252: result: $with_develop" >&5
12253 echo "${ECHO_T}$with_develop" >&6
12255 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
12256 echo "$as_me:12256: checking if you want hard-tabs code" >&5
12257 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
12259 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
12260 if test "${enable_hard_tabs+set}" = set; then
12261 enableval="$enable_hard_tabs"
12264 enable_hard_tabs=$with_develop
12266 echo "$as_me:12266: result: $enable_hard_tabs" >&5
12267 echo "${ECHO_T}$enable_hard_tabs" >&6
12268 test "x$enable_hard_tabs" = xyes &&
12269 cat >>confdefs.h <<\EOF
12270 #define USE_HARD_TABS 1
12273 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
12274 echo "$as_me:12274: checking if you want limited support for xmc" >&5
12275 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
12277 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
12278 if test "${enable_xmc_glitch+set}" = set; then
12279 enableval="$enable_xmc_glitch"
12282 enable_xmc_glitch=$with_develop
12284 echo "$as_me:12284: result: $enable_xmc_glitch" >&5
12285 echo "${ECHO_T}$enable_xmc_glitch" >&6
12286 test "x$enable_xmc_glitch" = xyes &&
12287 cat >>confdefs.h <<\EOF
12288 #define USE_XMC_SUPPORT 1
12291 ###############################################################################
12292 # These are just experimental, probably should not be in a package:
12294 echo "$as_me:12294: checking if you do not want to assume colors are white-on-black" >&5
12295 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
12297 # Check whether --enable-assumed-color or --disable-assumed-color was given.
12298 if test "${enable_assumed_color+set}" = set; then
12299 enableval="$enable_assumed_color"
12300 with_assumed_color=$enableval
12302 with_assumed_color=yes
12304 echo "$as_me:12304: result: $with_assumed_color" >&5
12305 echo "${ECHO_T}$with_assumed_color" >&6
12306 test "x$with_assumed_color" = xyes &&
12307 cat >>confdefs.h <<\EOF
12308 #define USE_ASSUMED_COLOR 1
12311 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
12312 echo "$as_me:12312: checking if you want hashmap scrolling-optimization code" >&5
12313 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
12315 # Check whether --enable-hashmap or --disable-hashmap was given.
12316 if test "${enable_hashmap+set}" = set; then
12317 enableval="$enable_hashmap"
12318 with_hashmap=$enableval
12322 echo "$as_me:12322: result: $with_hashmap" >&5
12323 echo "${ECHO_T}$with_hashmap" >&6
12324 test "x$with_hashmap" = xyes &&
12325 cat >>confdefs.h <<\EOF
12326 #define USE_HASHMAP 1
12329 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
12330 echo "$as_me:12330: checking if you want colorfgbg code" >&5
12331 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
12333 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
12334 if test "${enable_colorfgbg+set}" = set; then
12335 enableval="$enable_colorfgbg"
12336 with_colorfgbg=$enableval
12340 echo "$as_me:12340: result: $with_colorfgbg" >&5
12341 echo "${ECHO_T}$with_colorfgbg" >&6
12342 test "x$with_colorfgbg" = xyes &&
12343 cat >>confdefs.h <<\EOF
12344 #define USE_COLORFGBG 1
12347 ### use option --enable-interop to turn on use of bindings used for interop
12348 echo "$as_me:12348: checking if you want interop bindings" >&5
12349 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
12351 # Check whether --enable-interop or --disable-interop was given.
12352 if test "${enable_interop+set}" = set; then
12353 enableval="$enable_interop"
12354 with_exp_interop=$enableval
12356 with_exp_interop=$cf_dft_interop
12358 echo "$as_me:12358: result: $with_exp_interop" >&5
12359 echo "${ECHO_T}$with_exp_interop" >&6
12361 NCURSES_INTEROP_FUNCS=0
12362 test "x$with_exp_interop" = xyes && NCURSES_INTEROP_FUNCS=1
12364 # This is still experimental (20080329), but should ultimately be moved to
12365 # the script-block --with-normal, etc.
12367 echo "$as_me:12367: checking if you want to link with the pthread library" >&5
12368 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
12370 # Check whether --with-pthread or --without-pthread was given.
12371 if test "${with_pthread+set}" = set; then
12372 withval="$with_pthread"
12373 with_pthread=$withval
12377 echo "$as_me:12377: result: $with_pthread" >&5
12378 echo "${ECHO_T}$with_pthread" >&6
12380 if test "$with_pthread" != no ; then
12381 echo "$as_me:12381: checking for pthread.h" >&5
12382 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
12383 if test "${ac_cv_header_pthread_h+set}" = set; then
12384 echo $ECHO_N "(cached) $ECHO_C" >&6
12386 cat >conftest.$ac_ext <<_ACEOF
12387 #line 12387 "configure"
12388 #include "confdefs.h"
12389 #include <pthread.h>
12391 if { (eval echo "$as_me:12391: \"$ac_cpp conftest.$ac_ext\"") >&5
12392 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12394 egrep -v '^ *\+' conftest.er1 >conftest.err
12396 cat conftest.err >&5
12397 echo "$as_me:12397: \$? = $ac_status" >&5
12398 (exit $ac_status); } >/dev/null; then
12399 if test -s conftest.err; then
12400 ac_cpp_err=$ac_c_preproc_warn_flag
12407 if test -z "$ac_cpp_err"; then
12408 ac_cv_header_pthread_h=yes
12410 echo "$as_me: failed program was:" >&5
12411 cat conftest.$ac_ext >&5
12412 ac_cv_header_pthread_h=no
12414 rm -f conftest.err conftest.$ac_ext
12416 echo "$as_me:12416: result: $ac_cv_header_pthread_h" >&5
12417 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
12418 if test $ac_cv_header_pthread_h = yes; then
12420 cat >>confdefs.h <<\EOF
12421 #define HAVE_PTHREADS_H 1
12424 for cf_lib_pthread in pthread c_r
12426 echo "$as_me:12426: checking if we can link with the $cf_lib_pthread library" >&5
12427 echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
12428 cf_save_LIBS="$LIBS"
12430 cf_add_libs="-l$cf_lib_pthread"
12431 # Filter out duplicates - this happens with badly-designed ".pc" files...
12432 for cf_add_1lib in $LIBS
12434 for cf_add_2lib in $cf_add_libs
12436 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12442 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12444 LIBS="$cf_add_libs"
12446 cat >conftest.$ac_ext <<_ACEOF
12447 #line 12447 "configure"
12448 #include "confdefs.h"
12450 #include <pthread.h>
12456 int rc = pthread_create(0,0,0,0);
12457 int r2 = pthread_mutexattr_settype(0, 0);
12463 rm -f conftest.$ac_objext conftest$ac_exeext
12464 if { (eval echo "$as_me:12464: \"$ac_link\"") >&5
12465 (eval $ac_link) 2>&5
12467 echo "$as_me:12467: \$? = $ac_status" >&5
12468 (exit $ac_status); } &&
12469 { ac_try='test -s conftest$ac_exeext'
12470 { (eval echo "$as_me:12470: \"$ac_try\"") >&5
12471 (eval $ac_try) 2>&5
12473 echo "$as_me:12473: \$? = $ac_status" >&5
12474 (exit $ac_status); }; }; then
12477 echo "$as_me: failed program was:" >&5
12478 cat conftest.$ac_ext >&5
12481 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12482 LIBS="$cf_save_LIBS"
12483 echo "$as_me:12483: result: $with_pthread" >&5
12484 echo "${ECHO_T}$with_pthread" >&6
12485 test "$with_pthread" = yes && break
12488 if test "$with_pthread" = yes ; then
12490 cf_add_libs="-l$cf_lib_pthread"
12491 # Filter out duplicates - this happens with badly-designed ".pc" files...
12492 for cf_add_1lib in $LIBS
12494 for cf_add_2lib in $cf_add_libs
12496 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12502 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12504 LIBS="$cf_add_libs"
12506 cat >>confdefs.h <<\EOF
12507 #define HAVE_LIBPTHREADS 1
12511 { { echo "$as_me:12511: error: Cannot link with pthread library" >&5
12512 echo "$as_me: error: Cannot link with pthread library" >&2;}
12513 { (exit 1); exit 1; }; }
12520 if test "x$with_pthread" != xno; then
12521 echo "$as_me:12521: checking for pthread_kill" >&5
12522 echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6
12523 if test "${ac_cv_func_pthread_kill+set}" = set; then
12524 echo $ECHO_N "(cached) $ECHO_C" >&6
12526 cat >conftest.$ac_ext <<_ACEOF
12527 #line 12527 "configure"
12528 #include "confdefs.h"
12529 /* System header to define __stub macros and hopefully few prototypes,
12530 which can conflict with char pthread_kill (); below. */
12531 #include <assert.h>
12532 /* Override any gcc2 internal prototype to avoid an error. */
12536 /* We use char because int might match the return type of a gcc2
12537 builtin and then its argument prototype would still apply. */
12538 char pthread_kill ();
12544 /* The GNU C library defines this for functions which it implements
12545 to always fail with ENOSYS. Some functions are actually named
12546 something starting with __ and the normal name is an alias. */
12547 #if defined (__stub_pthread_kill) || defined (__stub___pthread_kill)
12550 f = pthread_kill; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
12557 rm -f conftest.$ac_objext conftest$ac_exeext
12558 if { (eval echo "$as_me:12558: \"$ac_link\"") >&5
12559 (eval $ac_link) 2>&5
12561 echo "$as_me:12561: \$? = $ac_status" >&5
12562 (exit $ac_status); } &&
12563 { ac_try='test -s conftest$ac_exeext'
12564 { (eval echo "$as_me:12564: \"$ac_try\"") >&5
12565 (eval $ac_try) 2>&5
12567 echo "$as_me:12567: \$? = $ac_status" >&5
12568 (exit $ac_status); }; }; then
12569 ac_cv_func_pthread_kill=yes
12571 echo "$as_me: failed program was:" >&5
12572 cat conftest.$ac_ext >&5
12573 ac_cv_func_pthread_kill=no
12575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12577 echo "$as_me:12577: result: $ac_cv_func_pthread_kill" >&5
12578 echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6
12579 if test $ac_cv_func_pthread_kill = yes; then
12581 echo "$as_me:12581: checking if you want to allow EINTR in wgetch with pthreads" >&5
12582 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
12584 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
12585 if test "${enable_pthreads_eintr+set}" = set; then
12586 enableval="$enable_pthreads_eintr"
12587 use_pthreads_eintr=$enableval
12589 use_pthreads_eintr=no
12591 echo "$as_me:12591: result: $use_pthreads_eintr" >&5
12592 echo "${ECHO_T}$use_pthreads_eintr" >&6
12593 if test "x$use_pthreads_eintr" = xyes ; then
12595 cat >>confdefs.h <<\EOF
12596 #define USE_PTHREADS_EINTR 1
12602 echo "$as_me:12602: checking if you want to use weak-symbols for pthreads" >&5
12603 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
12605 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
12606 if test "${enable_weak_symbols+set}" = set; then
12607 enableval="$enable_weak_symbols"
12608 use_weak_symbols=$enableval
12610 use_weak_symbols=no
12612 echo "$as_me:12612: result: $use_weak_symbols" >&5
12613 echo "${ECHO_T}$use_weak_symbols" >&6
12614 if test "x$use_weak_symbols" = xyes ; then
12616 echo "$as_me:12616: checking if $CC supports weak symbols" >&5
12617 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
12618 if test "${cf_cv_weak_symbols+set}" = set; then
12619 echo $ECHO_N "(cached) $ECHO_C" >&6
12622 cat >conftest.$ac_ext <<_ACEOF
12623 #line 12623 "configure"
12624 #include "confdefs.h"
12631 #if defined(__GNUC__)
12632 # if defined __USE_ISOC99
12633 # define _cat_pragma(exp) _Pragma(#exp)
12634 # define _weak_pragma(exp) _cat_pragma(weak name)
12636 # define _weak_pragma(exp)
12638 # define _declare(name) __extension__ extern __typeof__(name) name
12639 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
12642 weak_symbol(fopen);
12648 rm -f conftest.$ac_objext
12649 if { (eval echo "$as_me:12649: \"$ac_compile\"") >&5
12650 (eval $ac_compile) 2>&5
12652 echo "$as_me:12652: \$? = $ac_status" >&5
12653 (exit $ac_status); } &&
12654 { ac_try='test -s conftest.$ac_objext'
12655 { (eval echo "$as_me:12655: \"$ac_try\"") >&5
12656 (eval $ac_try) 2>&5
12658 echo "$as_me:12658: \$? = $ac_status" >&5
12659 (exit $ac_status); }; }; then
12660 cf_cv_weak_symbols=yes
12662 echo "$as_me: failed program was:" >&5
12663 cat conftest.$ac_ext >&5
12664 cf_cv_weak_symbols=no
12666 rm -f conftest.$ac_objext conftest.$ac_ext
12669 echo "$as_me:12669: result: $cf_cv_weak_symbols" >&5
12670 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
12673 cf_cv_weak_symbols=no
12676 if test "x$cf_cv_weak_symbols" = xyes ; then
12678 cat >>confdefs.h <<\EOF
12679 #define USE_WEAK_SYMBOLS 1
12686 if test "x$with_pthread" = "xyes" ; then
12688 cat >>confdefs.h <<\EOF
12689 #define USE_PTHREADS 1
12692 enable_reentrant=yes
12693 if test "x$cf_cv_weak_symbols" = xyes ; then
12698 # Reentrant code has to be opaque; there's little advantage to making ncurses
12699 # opaque outside of that, so there is no --enable-opaque option. We can use
12700 # this option without --with-pthreads, but this will be always set for
12702 echo "$as_me:12702: checking if you want reentrant code" >&5
12703 echo $ECHO_N "checking if you want reentrant code... $ECHO_C" >&6
12705 # Check whether --enable-reentrant or --disable-reentrant was given.
12706 if test "${enable_reentrant+set}" = set; then
12707 enableval="$enable_reentrant"
12708 with_reentrant=$enableval
12712 echo "$as_me:12712: result: $with_reentrant" >&5
12713 echo "${ECHO_T}$with_reentrant" >&6
12714 if test "x$with_reentrant" = xyes ; then
12715 cf_cv_enable_reentrant=1
12716 cf_cv_enable_opaque="NCURSES_INTERNALS"
12719 if test "x$cf_cv_weak_symbols" = xyes ; then
12721 # remove pthread library from $LIBS
12722 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
12724 cf_add_libs="-lpthread"
12725 # Filter out duplicates - this happens with badly-designed ".pc" files...
12726 for cf_add_1lib in $TEST_LIBS
12728 for cf_add_2lib in $cf_add_libs
12730 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12736 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12738 TEST_LIBS="$cf_add_libs"
12740 cf_add_libs="-lpthread"
12741 # Filter out duplicates - this happens with badly-designed ".pc" files...
12742 for cf_add_1lib in $TEST_LIBS2
12744 for cf_add_2lib in $cf_add_libs
12746 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12752 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12754 TEST_LIBS2="$cf_add_libs"
12757 # when not using weak symbols but with_reentrant,
12758 # add 't' to the library suffix on all platforms
12759 # except cygwin, where we only do that if ALSO
12760 # compiling with full thread support.
12762 (*cygwin* | *msys*)
12763 if test "$with_pthread" = "yes" ; then
12764 if test "x$disable_lib_suffixes" = "xno" ; then
12765 LIB_SUFFIX="t${LIB_SUFFIX}"
12769 if test "x$disable_lib_suffixes" = "xno" ; then
12770 LIB_SUFFIX="t${LIB_SUFFIX}"
12776 cat >>confdefs.h <<\EOF
12777 #define USE_REENTRANT 1
12780 if test "${with_abi_version+set}" != set; then
12781 case $cf_cv_rel_version in
12783 cf_cv_rel_version=6.0
12784 cf_cv_abi_version=6
12785 { echo "$as_me:12785: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
12786 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
12792 cf_cv_enable_reentrant=0
12793 cf_cv_enable_opaque="NCURSES_OPAQUE"
12795 NCURSES_SIZE_T=short
12798 ### Allow using a different wrap-prefix
12799 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
12800 echo "$as_me:12800: checking for prefix used to wrap public variables" >&5
12801 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
12803 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
12804 if test "${with_wrap_prefix+set}" = set; then
12805 withval="$with_wrap_prefix"
12806 NCURSES_WRAP_PREFIX=$withval
12808 NCURSES_WRAP_PREFIX=_nc_
12810 echo "$as_me:12810: result: $NCURSES_WRAP_PREFIX" >&5
12811 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
12813 NCURSES_WRAP_PREFIX=_nc_
12816 cat >>confdefs.h <<EOF
12817 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
12820 echo "$as_me:12820: checking if you want experimental safe-sprintf code" >&5
12821 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
12823 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
12824 if test "${enable_safe_sprintf+set}" = set; then
12825 enableval="$enable_safe_sprintf"
12826 with_safe_sprintf=$enableval
12828 with_safe_sprintf=no
12830 echo "$as_me:12830: result: $with_safe_sprintf" >&5
12831 echo "${ECHO_T}$with_safe_sprintf" >&6
12832 test "x$with_safe_sprintf" = xyes &&
12833 cat >>confdefs.h <<\EOF
12834 #define USE_SAFE_SPRINTF 1
12837 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
12838 # when hashmap is used scroll hints are useless
12839 if test "$with_hashmap" = no ; then
12840 echo "$as_me:12840: checking if you want to experiment without scrolling-hints code" >&5
12841 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
12843 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
12844 if test "${enable_scroll_hints+set}" = set; then
12845 enableval="$enable_scroll_hints"
12846 with_scroll_hints=$enableval
12848 with_scroll_hints=yes
12850 echo "$as_me:12850: result: $with_scroll_hints" >&5
12851 echo "${ECHO_T}$with_scroll_hints" >&6
12852 test "x$with_scroll_hints" = xyes &&
12853 cat >>confdefs.h <<\EOF
12854 #define USE_SCROLL_HINTS 1
12859 echo "$as_me:12859: checking if you want wgetch-events code" >&5
12860 echo $ECHO_N "checking if you want wgetch-events code... $ECHO_C" >&6
12862 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
12863 if test "${enable_wgetch_events+set}" = set; then
12864 enableval="$enable_wgetch_events"
12865 with_wgetch_events=$enableval
12867 with_wgetch_events=no
12869 echo "$as_me:12869: result: $with_wgetch_events" >&5
12870 echo "${ECHO_T}$with_wgetch_events" >&6
12871 test "x$with_wgetch_events" = xyes &&
12872 cat >>confdefs.h <<\EOF
12873 #define NCURSES_WGETCH_EVENTS 1
12876 ###############################################################################
12878 ### use option --disable-echo to suppress full display compiling commands
12880 echo "$as_me:12880: checking if you want to see long compiling messages" >&5
12881 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
12883 # Check whether --enable-echo or --disable-echo was given.
12884 if test "${enable_echo+set}" = set; then
12885 enableval="$enable_echo"
12886 test "$enableval" != no && enableval=yes
12887 if test "$enableval" != "yes" ; then
12890 ECHO_LD='@echo linking $@;'
12891 RULE_CC='@echo compiling $<'
12892 SHOW_CC='@echo compiling $@'
12914 echo "$as_me:12914: result: $enableval" >&5
12915 echo "${ECHO_T}$enableval" >&6
12917 if test "x$enable_echo" = xyes; then
12920 ECHO_LINK='@ echo linking $@ ... ;'
12921 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
12922 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
12925 ### use option --enable-warnings to turn on all gcc warnings
12926 echo "$as_me:12926: checking if you want to see compiler warnings" >&5
12927 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
12929 # Check whether --enable-warnings or --disable-warnings was given.
12930 if test "${enable_warnings+set}" = set; then
12931 enableval="$enable_warnings"
12932 with_warnings=$enableval
12934 echo "$as_me:12934: result: $with_warnings" >&5
12935 echo "${ECHO_T}$with_warnings" >&6
12937 if test "x$with_warnings" = "xyes"; then
12939 ADAFLAGS="$ADAFLAGS -gnatg"
12943 if test "$GCC" = yes ; then
12946 echo "$as_me:12946: checking if this is really Intel C compiler" >&5
12947 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
12948 cf_save_CFLAGS="$CFLAGS"
12949 CFLAGS="$CFLAGS -no-gcc"
12950 cat >conftest.$ac_ext <<_ACEOF
12951 #line 12951 "configure"
12952 #include "confdefs.h"
12958 #ifdef __INTEL_COMPILER
12967 rm -f conftest.$ac_objext
12968 if { (eval echo "$as_me:12968: \"$ac_compile\"") >&5
12969 (eval $ac_compile) 2>&5
12971 echo "$as_me:12971: \$? = $ac_status" >&5
12972 (exit $ac_status); } &&
12973 { ac_try='test -s conftest.$ac_objext'
12974 { (eval echo "$as_me:12974: \"$ac_try\"") >&5
12975 (eval $ac_try) 2>&5
12977 echo "$as_me:12977: \$? = $ac_status" >&5
12978 (exit $ac_status); }; }; then
12980 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
12983 echo "$as_me: failed program was:" >&5
12984 cat conftest.$ac_ext >&5
12986 rm -f conftest.$ac_objext conftest.$ac_ext
12987 CFLAGS="$cf_save_CFLAGS"
12988 echo "$as_me:12988: result: $INTEL_COMPILER" >&5
12989 echo "${ECHO_T}$INTEL_COMPILER" >&6
12996 if test "$GCC" = yes ; then
12997 echo "$as_me:12997: checking if this is really Clang C compiler" >&5
12998 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
12999 cf_save_CFLAGS="$CFLAGS"
13000 CFLAGS="$CFLAGS -Qunused-arguments"
13001 cat >conftest.$ac_ext <<_ACEOF
13002 #line 13002 "configure"
13003 #include "confdefs.h"
13018 rm -f conftest.$ac_objext
13019 if { (eval echo "$as_me:13019: \"$ac_compile\"") >&5
13020 (eval $ac_compile) 2>&5
13022 echo "$as_me:13022: \$? = $ac_status" >&5
13023 (exit $ac_status); } &&
13024 { ac_try='test -s conftest.$ac_objext'
13025 { (eval echo "$as_me:13025: \"$ac_try\"") >&5
13026 (eval $ac_try) 2>&5
13028 echo "$as_me:13028: \$? = $ac_status" >&5
13029 (exit $ac_status); }; }; then
13031 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
13034 echo "$as_me: failed program was:" >&5
13035 cat conftest.$ac_ext >&5
13037 rm -f conftest.$ac_objext conftest.$ac_ext
13038 CFLAGS="$cf_save_CFLAGS"
13039 echo "$as_me:13039: result: $CLANG_COMPILER" >&5
13040 echo "${ECHO_T}$CLANG_COMPILER" >&6
13043 cat > conftest.$ac_ext <<EOF
13044 #line 13044 "${as_me:-configure}"
13045 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
13048 if test "$INTEL_COMPILER" = yes
13050 # The "-wdXXX" options suppress warnings:
13051 # remark #1419: external declaration in primary source file
13052 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
13053 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
13054 # remark #193: zero used for undefined preprocessing identifier
13055 # remark #593: variable "curs_sb_left_arrow" was set but never used
13056 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
13057 # remark #869: parameter "tw" was never referenced
13058 # remark #981: operands are evaluated in unspecified order
13059 # warning #279: controlling expression is constant
13061 { echo "$as_me:13061: checking for $CC warning options..." >&5
13062 echo "$as_me: checking for $CC warning options..." >&6;}
13063 cf_save_CFLAGS="$CFLAGS"
13064 EXTRA_CFLAGS="-Wall"
13076 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
13077 if { (eval echo "$as_me:13077: \"$ac_compile\"") >&5
13078 (eval $ac_compile) 2>&5
13080 echo "$as_me:13080: \$? = $ac_status" >&5
13081 (exit $ac_status); }; then
13082 test -n "$verbose" && echo "$as_me:13082: result: ... -$cf_opt" >&5
13083 echo "${ECHO_T}... -$cf_opt" >&6
13084 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
13087 CFLAGS="$cf_save_CFLAGS"
13089 elif test "$GCC" = yes
13091 { echo "$as_me:13091: checking for $CC warning options..." >&5
13092 echo "$as_me: checking for $CC warning options..." >&6;}
13093 cf_save_CFLAGS="$CFLAGS"
13096 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
13097 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
13098 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
13099 for cf_opt in W Wall \
13100 Wbad-function-cast \
13103 Wdeclaration-after-statement \
13106 Wmissing-declarations \
13107 Wmissing-prototypes \
13111 Wstrict-prototypes \
13112 Wundef $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas Wswitch-enum
13114 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
13115 if { (eval echo "$as_me:13115: \"$ac_compile\"") >&5
13116 (eval $ac_compile) 2>&5
13118 echo "$as_me:13118: \$? = $ac_status" >&5
13119 (exit $ac_status); }; then
13120 test -n "$verbose" && echo "$as_me:13120: result: ... -$cf_opt" >&5
13121 echo "${ECHO_T}... -$cf_opt" >&6
13124 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
13127 case $GCC_VERSION in
13129 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
13131 echo "${as_me:-configure}:13131: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
13137 case $GCC_VERSION in
13139 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
13141 echo "${as_me:-configure}:13141: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
13147 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
13150 CFLAGS="$cf_save_CFLAGS"
13154 if test "x$cf_with_cxx" = xyes ; then
13158 if test "$GCC" = yes ; then
13161 echo "$as_me:13161: checking if this is really Intel C++ compiler" >&5
13162 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
13163 cf_save_CFLAGS="$CXXFLAGS"
13164 CXXFLAGS="$CXXFLAGS -no-gcc"
13165 cat >conftest.$ac_ext <<_ACEOF
13166 #line 13166 "configure"
13167 #include "confdefs.h"
13173 #ifdef __INTEL_COMPILER
13182 rm -f conftest.$ac_objext
13183 if { (eval echo "$as_me:13183: \"$ac_compile\"") >&5
13184 (eval $ac_compile) 2>&5
13186 echo "$as_me:13186: \$? = $ac_status" >&5
13187 (exit $ac_status); } &&
13188 { ac_try='test -s conftest.$ac_objext'
13189 { (eval echo "$as_me:13189: \"$ac_try\"") >&5
13190 (eval $ac_try) 2>&5
13192 echo "$as_me:13192: \$? = $ac_status" >&5
13193 (exit $ac_status); }; }; then
13194 INTEL_CPLUSPLUS=yes
13195 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
13198 echo "$as_me: failed program was:" >&5
13199 cat conftest.$ac_ext >&5
13201 rm -f conftest.$ac_objext conftest.$ac_ext
13202 CXXFLAGS="$cf_save_CFLAGS"
13203 echo "$as_me:13203: result: $INTEL_CPLUSPLUS" >&5
13204 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
13211 if test "$GCC" = yes ; then
13212 echo "$as_me:13212: checking if this is really Clang C++ compiler" >&5
13213 echo $ECHO_N "checking if this is really Clang C++ compiler... $ECHO_C" >&6
13214 cf_save_CFLAGS="$CXXFLAGS"
13215 CXXFLAGS="$CXXFLAGS -Qunused-arguments"
13216 cat >conftest.$ac_ext <<_ACEOF
13217 #line 13217 "configure"
13218 #include "confdefs.h"
13233 rm -f conftest.$ac_objext
13234 if { (eval echo "$as_me:13234: \"$ac_compile\"") >&5
13235 (eval $ac_compile) 2>&5
13237 echo "$as_me:13237: \$? = $ac_status" >&5
13238 (exit $ac_status); } &&
13239 { ac_try='test -s conftest.$ac_objext'
13240 { (eval echo "$as_me:13240: \"$ac_try\"") >&5
13241 (eval $ac_try) 2>&5
13243 echo "$as_me:13243: \$? = $ac_status" >&5
13244 (exit $ac_status); }; }; then
13245 CLANG_CPLUSPLUS=yes
13246 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
13249 echo "$as_me: failed program was:" >&5
13250 cat conftest.$ac_ext >&5
13252 rm -f conftest.$ac_objext conftest.$ac_ext
13253 CXXFLAGS="$cf_save_CFLAGS"
13254 echo "$as_me:13254: result: $CLANG_CPLUSPLUS" >&5
13255 echo "${ECHO_T}$CLANG_CPLUSPLUS" >&6
13259 ac_cpp='$CXXCPP $CPPFLAGS'
13260 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13261 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13262 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13263 ac_main_return=return
13265 cat > conftest.$ac_ext <<EOF
13266 #line 13266 "configure"
13267 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
13270 if test "$INTEL_CPLUSPLUS" = yes
13272 # The "-wdXXX" options suppress warnings:
13273 # remark #1419: external declaration in primary source file
13274 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
13275 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
13276 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
13277 # remark #193: zero used for undefined preprocessing identifier
13278 # remark #593: variable "curs_sb_left_arrow" was set but never used
13279 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
13280 # remark #869: parameter "tw" was never referenced
13281 # remark #981: operands are evaluated in unspecified order
13282 # warning #269: invalid format string conversion
13284 { echo "$as_me:13284: checking for $CC warning options..." >&5
13285 echo "$as_me: checking for $CC warning options..." >&6;}
13286 cf_save_CXXFLAGS="$CXXFLAGS"
13287 EXTRA_CXXFLAGS="-Wall"
13300 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
13301 if { (eval echo "$as_me:13301: \"$ac_compile\"") >&5
13302 (eval $ac_compile) 2>&5
13304 echo "$as_me:13304: \$? = $ac_status" >&5
13305 (exit $ac_status); }; then
13306 test -n "$verbose" && echo "$as_me:13306: result: ... -$cf_opt" >&5
13307 echo "${ECHO_T}... -$cf_opt" >&6
13308 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
13311 CXXFLAGS="$cf_save_CXXFLAGS"
13313 elif test "$GXX" = yes
13315 { echo "$as_me:13315: checking for $CXX warning options..." >&5
13316 echo "$as_me: checking for $CXX warning options..." >&6;}
13317 cf_save_CXXFLAGS="$CXXFLAGS"
13318 EXTRA_CXXFLAGS="-W -Wall"
13319 cf_gxx_extra_warnings=""
13320 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
13321 case "$GCC_VERSION" in
13325 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
13332 Wignored-qualifiers \
13334 Woverloaded-virtual \
13342 Wundef $cf_gxx_extra_warnings Wno-unused
13344 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
13345 if { (eval echo "$as_me:13345: \"$ac_compile\"") >&5
13346 (eval $ac_compile) 2>&5
13348 echo "$as_me:13348: \$? = $ac_status" >&5
13349 (exit $ac_status); }; then
13350 test -n "$verbose" && echo "$as_me:13350: result: ... -$cf_opt" >&5
13351 echo "${ECHO_T}... -$cf_opt" >&6
13352 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
13354 test -n "$verbose" && echo "$as_me:13354: result: ... no -$cf_opt" >&5
13355 echo "${ECHO_T}... no -$cf_opt" >&6
13358 CXXFLAGS="$cf_save_CXXFLAGS"
13363 ac_cpp='$CPP $CPPFLAGS'
13364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13367 ac_main_return=return
13372 if test "$GCC" = yes
13374 cat > conftest.i <<EOF
13376 #define GCC_PRINTF 0
13379 #define GCC_SCANF 0
13381 #ifndef GCC_NORETURN
13382 #define GCC_NORETURN /* nothing */
13385 #define GCC_UNUSED /* nothing */
13388 if test "$GCC" = yes
13390 { echo "$as_me:13390: checking for $CC __attribute__ directives..." >&5
13391 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
13392 cat > conftest.$ac_ext <<EOF
13393 #line 13393 "${as_me:-configure}"
13394 #include "confdefs.h"
13395 #include "conftest.h"
13396 #include "conftest.i"
13398 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
13400 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
13403 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
13405 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
13407 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
13408 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
13409 extern void foo(void) GCC_NORETURN;
13410 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
13412 cf_printf_attribute=no
13413 cf_scanf_attribute=no
13414 for cf_attribute in scanf printf unused noreturn
13417 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13419 cf_directive="__attribute__(($cf_attribute))"
13420 echo "checking for $CC $cf_directive" 1>&5
13422 case $cf_attribute in
13424 cf_printf_attribute=yes
13425 cat >conftest.h <<EOF
13426 #define GCC_$cf_ATTRIBUTE 1
13430 cf_scanf_attribute=yes
13431 cat >conftest.h <<EOF
13432 #define GCC_$cf_ATTRIBUTE 1
13436 cat >conftest.h <<EOF
13437 #define GCC_$cf_ATTRIBUTE $cf_directive
13442 if { (eval echo "$as_me:13442: \"$ac_compile\"") >&5
13443 (eval $ac_compile) 2>&5
13445 echo "$as_me:13445: \$? = $ac_status" >&5
13446 (exit $ac_status); }; then
13447 test -n "$verbose" && echo "$as_me:13447: result: ... $cf_attribute" >&5
13448 echo "${ECHO_T}... $cf_attribute" >&6
13449 cat conftest.h >>confdefs.h
13450 case $cf_attribute in
13453 cat >>confdefs.h <<EOF
13454 #define GCC_NORETURN $cf_directive
13459 cf_value='/* nothing */'
13460 if test "$cf_printf_attribute" != no ; then
13461 cf_value='__attribute__((format(printf,fmt,var)))'
13463 cat >>confdefs.h <<\EOF
13464 #define GCC_PRINTF 1
13469 cat >>confdefs.h <<EOF
13470 #define GCC_PRINTFLIKE(fmt,var) $cf_value
13475 cf_value='/* nothing */'
13476 if test "$cf_scanf_attribute" != no ; then
13477 cf_value='__attribute__((format(scanf,fmt,var)))'
13479 cat >>confdefs.h <<\EOF
13480 #define GCC_SCANF 1
13485 cat >>confdefs.h <<EOF
13486 #define GCC_SCANFLIKE(fmt,var) $cf_value
13492 cat >>confdefs.h <<EOF
13493 #define GCC_UNUSED $cf_directive
13501 fgrep define conftest.i >>confdefs.h
13506 echo "$as_me:13506: checking if you want to work around bogus compiler/loader warnings" >&5
13507 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
13509 # Check whether --enable-string-hacks or --disable-string-hacks was given.
13510 if test "${enable_string_hacks+set}" = set; then
13511 enableval="$enable_string_hacks"
13512 with_string_hacks=$enableval
13514 with_string_hacks=no
13516 echo "$as_me:13516: result: $with_string_hacks" >&5
13517 echo "${ECHO_T}$with_string_hacks" >&6
13519 if test "x$with_string_hacks" = "xyes"; then
13521 cat >>confdefs.h <<\EOF
13522 #define USE_STRING_HACKS 1
13525 { echo "$as_me:13525: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
13526 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
13528 for ac_func in strlcat strlcpy snprintf
13530 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13531 echo "$as_me:13531: checking for $ac_func" >&5
13532 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13533 if eval "test \"\${$as_ac_var+set}\" = set"; then
13534 echo $ECHO_N "(cached) $ECHO_C" >&6
13536 cat >conftest.$ac_ext <<_ACEOF
13537 #line 13537 "configure"
13538 #include "confdefs.h"
13539 /* System header to define __stub macros and hopefully few prototypes,
13540 which can conflict with char $ac_func (); below. */
13541 #include <assert.h>
13542 /* Override any gcc2 internal prototype to avoid an error. */
13546 /* We use char because int might match the return type of a gcc2
13547 builtin and then its argument prototype would still apply. */
13554 /* The GNU C library defines this for functions which it implements
13555 to always fail with ENOSYS. Some functions are actually named
13556 something starting with __ and the normal name is an alias. */
13557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13560 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
13567 rm -f conftest.$ac_objext conftest$ac_exeext
13568 if { (eval echo "$as_me:13568: \"$ac_link\"") >&5
13569 (eval $ac_link) 2>&5
13571 echo "$as_me:13571: \$? = $ac_status" >&5
13572 (exit $ac_status); } &&
13573 { ac_try='test -s conftest$ac_exeext'
13574 { (eval echo "$as_me:13574: \"$ac_try\"") >&5
13575 (eval $ac_try) 2>&5
13577 echo "$as_me:13577: \$? = $ac_status" >&5
13578 (exit $ac_status); }; }; then
13579 eval "$as_ac_var=yes"
13581 echo "$as_me: failed program was:" >&5
13582 cat conftest.$ac_ext >&5
13583 eval "$as_ac_var=no"
13585 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13587 echo "$as_me:13587: result: `eval echo '${'$as_ac_var'}'`" >&5
13588 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13589 if test `eval echo '${'$as_ac_var'}'` = yes; then
13590 cat >>confdefs.h <<EOF
13591 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13599 ### use option --enable-assertions to turn on generation of assertion code
13600 echo "$as_me:13600: checking if you want to enable runtime assertions" >&5
13601 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
13603 # Check whether --enable-assertions or --disable-assertions was given.
13604 if test "${enable_assertions+set}" = set; then
13605 enableval="$enable_assertions"
13606 with_assertions=$enableval
13610 echo "$as_me:13610: result: $with_assertions" >&5
13611 echo "${ECHO_T}$with_assertions" >&6
13614 if test "$with_assertions" = no
13616 CPPFLAGS="$CPPFLAGS -DNDEBUG"
13619 ADAFLAGS="$ADAFLAGS -gnata"
13624 ### use option --disable-leaks to suppress "permanent" leaks, for testing
13626 echo "$as_me:13626: checking if you want to use dmalloc for testing" >&5
13627 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
13629 # Check whether --with-dmalloc or --without-dmalloc was given.
13630 if test "${with_dmalloc+set}" = set; then
13631 withval="$with_dmalloc"
13633 cat >>confdefs.h <<EOF
13634 #define USE_DMALLOC 1
13637 : ${with_cflags:=-g}
13638 : ${with_no_leaks:=yes}
13643 echo "$as_me:13643: result: ${with_dmalloc:-no}" >&5
13644 echo "${ECHO_T}${with_dmalloc:-no}" >&6
13646 case .$with_cflags in
13656 cf_new_extra_cppflags=
13658 for cf_add_cflags in -g
13660 case $cf_fix_cppflags in
13662 case $cf_add_cflags in
13663 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13664 case $cf_add_cflags in
13666 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13668 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13669 && test -z "${cf_tst_cflags}" \
13670 && cf_fix_cppflags=yes
13672 if test $cf_fix_cppflags = yes ; then
13673 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13675 elif test "${cf_tst_cflags}" = "\"'" ; then
13676 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13681 case "$CPPFLAGS" in
13685 case $cf_add_cflags in
13687 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13689 CPPFLAGS=`echo "$CPPFLAGS" | \
13690 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13691 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13695 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
13700 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
13705 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13707 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13709 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13710 && test -z "${cf_tst_cflags}" \
13711 && cf_fix_cppflags=no
13716 if test -n "$cf_new_cflags" ; then
13718 CFLAGS="$CFLAGS $cf_new_cflags"
13721 if test -n "$cf_new_cppflags" ; then
13723 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
13726 if test -n "$cf_new_extra_cppflags" ; then
13728 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
13736 if test "$with_dmalloc" = yes ; then
13737 echo "$as_me:13737: checking for dmalloc.h" >&5
13738 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
13739 if test "${ac_cv_header_dmalloc_h+set}" = set; then
13740 echo $ECHO_N "(cached) $ECHO_C" >&6
13742 cat >conftest.$ac_ext <<_ACEOF
13743 #line 13743 "configure"
13744 #include "confdefs.h"
13745 #include <dmalloc.h>
13747 if { (eval echo "$as_me:13747: \"$ac_cpp conftest.$ac_ext\"") >&5
13748 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13750 egrep -v '^ *\+' conftest.er1 >conftest.err
13752 cat conftest.err >&5
13753 echo "$as_me:13753: \$? = $ac_status" >&5
13754 (exit $ac_status); } >/dev/null; then
13755 if test -s conftest.err; then
13756 ac_cpp_err=$ac_c_preproc_warn_flag
13763 if test -z "$ac_cpp_err"; then
13764 ac_cv_header_dmalloc_h=yes
13766 echo "$as_me: failed program was:" >&5
13767 cat conftest.$ac_ext >&5
13768 ac_cv_header_dmalloc_h=no
13770 rm -f conftest.err conftest.$ac_ext
13772 echo "$as_me:13772: result: $ac_cv_header_dmalloc_h" >&5
13773 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
13774 if test $ac_cv_header_dmalloc_h = yes; then
13776 echo "$as_me:13776: checking for dmalloc_debug in -ldmalloc" >&5
13777 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
13778 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
13779 echo $ECHO_N "(cached) $ECHO_C" >&6
13781 ac_check_lib_save_LIBS=$LIBS
13782 LIBS="-ldmalloc $LIBS"
13783 cat >conftest.$ac_ext <<_ACEOF
13784 #line 13784 "configure"
13785 #include "confdefs.h"
13787 /* Override any gcc2 internal prototype to avoid an error. */
13791 /* We use char because int might match the return type of a gcc2
13792 builtin and then its argument prototype would still apply. */
13793 char dmalloc_debug ();
13802 rm -f conftest.$ac_objext conftest$ac_exeext
13803 if { (eval echo "$as_me:13803: \"$ac_link\"") >&5
13804 (eval $ac_link) 2>&5
13806 echo "$as_me:13806: \$? = $ac_status" >&5
13807 (exit $ac_status); } &&
13808 { ac_try='test -s conftest$ac_exeext'
13809 { (eval echo "$as_me:13809: \"$ac_try\"") >&5
13810 (eval $ac_try) 2>&5
13812 echo "$as_me:13812: \$? = $ac_status" >&5
13813 (exit $ac_status); }; }; then
13814 ac_cv_lib_dmalloc_dmalloc_debug=yes
13816 echo "$as_me: failed program was:" >&5
13817 cat conftest.$ac_ext >&5
13818 ac_cv_lib_dmalloc_dmalloc_debug=no
13820 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13821 LIBS=$ac_check_lib_save_LIBS
13823 echo "$as_me:13823: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
13824 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
13825 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
13826 cat >>confdefs.h <<EOF
13827 #define HAVE_LIBDMALLOC 1
13830 LIBS="-ldmalloc $LIBS"
13838 echo "$as_me:13838: checking if you want to use dbmalloc for testing" >&5
13839 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
13841 # Check whether --with-dbmalloc or --without-dbmalloc was given.
13842 if test "${with_dbmalloc+set}" = set; then
13843 withval="$with_dbmalloc"
13845 cat >>confdefs.h <<EOF
13846 #define USE_DBMALLOC 1
13849 : ${with_cflags:=-g}
13850 : ${with_no_leaks:=yes}
13855 echo "$as_me:13855: result: ${with_dbmalloc:-no}" >&5
13856 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
13858 case .$with_cflags in
13868 cf_new_extra_cppflags=
13870 for cf_add_cflags in -g
13872 case $cf_fix_cppflags in
13874 case $cf_add_cflags in
13875 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13876 case $cf_add_cflags in
13878 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13880 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13881 && test -z "${cf_tst_cflags}" \
13882 && cf_fix_cppflags=yes
13884 if test $cf_fix_cppflags = yes ; then
13885 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13887 elif test "${cf_tst_cflags}" = "\"'" ; then
13888 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13893 case "$CPPFLAGS" in
13897 case $cf_add_cflags in
13899 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13901 CPPFLAGS=`echo "$CPPFLAGS" | \
13902 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13903 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13907 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
13912 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
13917 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13919 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13921 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13922 && test -z "${cf_tst_cflags}" \
13923 && cf_fix_cppflags=no
13928 if test -n "$cf_new_cflags" ; then
13930 CFLAGS="$CFLAGS $cf_new_cflags"
13933 if test -n "$cf_new_cppflags" ; then
13935 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
13938 if test -n "$cf_new_extra_cppflags" ; then
13940 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
13948 if test "$with_dbmalloc" = yes ; then
13949 echo "$as_me:13949: checking for dbmalloc.h" >&5
13950 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
13951 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
13952 echo $ECHO_N "(cached) $ECHO_C" >&6
13954 cat >conftest.$ac_ext <<_ACEOF
13955 #line 13955 "configure"
13956 #include "confdefs.h"
13957 #include <dbmalloc.h>
13959 if { (eval echo "$as_me:13959: \"$ac_cpp conftest.$ac_ext\"") >&5
13960 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13962 egrep -v '^ *\+' conftest.er1 >conftest.err
13964 cat conftest.err >&5
13965 echo "$as_me:13965: \$? = $ac_status" >&5
13966 (exit $ac_status); } >/dev/null; then
13967 if test -s conftest.err; then
13968 ac_cpp_err=$ac_c_preproc_warn_flag
13975 if test -z "$ac_cpp_err"; then
13976 ac_cv_header_dbmalloc_h=yes
13978 echo "$as_me: failed program was:" >&5
13979 cat conftest.$ac_ext >&5
13980 ac_cv_header_dbmalloc_h=no
13982 rm -f conftest.err conftest.$ac_ext
13984 echo "$as_me:13984: result: $ac_cv_header_dbmalloc_h" >&5
13985 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
13986 if test $ac_cv_header_dbmalloc_h = yes; then
13988 echo "$as_me:13988: checking for debug_malloc in -ldbmalloc" >&5
13989 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
13990 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
13991 echo $ECHO_N "(cached) $ECHO_C" >&6
13993 ac_check_lib_save_LIBS=$LIBS
13994 LIBS="-ldbmalloc $LIBS"
13995 cat >conftest.$ac_ext <<_ACEOF
13996 #line 13996 "configure"
13997 #include "confdefs.h"
13999 /* Override any gcc2 internal prototype to avoid an error. */
14003 /* We use char because int might match the return type of a gcc2
14004 builtin and then its argument prototype would still apply. */
14005 char debug_malloc ();
14014 rm -f conftest.$ac_objext conftest$ac_exeext
14015 if { (eval echo "$as_me:14015: \"$ac_link\"") >&5
14016 (eval $ac_link) 2>&5
14018 echo "$as_me:14018: \$? = $ac_status" >&5
14019 (exit $ac_status); } &&
14020 { ac_try='test -s conftest$ac_exeext'
14021 { (eval echo "$as_me:14021: \"$ac_try\"") >&5
14022 (eval $ac_try) 2>&5
14024 echo "$as_me:14024: \$? = $ac_status" >&5
14025 (exit $ac_status); }; }; then
14026 ac_cv_lib_dbmalloc_debug_malloc=yes
14028 echo "$as_me: failed program was:" >&5
14029 cat conftest.$ac_ext >&5
14030 ac_cv_lib_dbmalloc_debug_malloc=no
14032 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14033 LIBS=$ac_check_lib_save_LIBS
14035 echo "$as_me:14035: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
14036 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
14037 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
14038 cat >>confdefs.h <<EOF
14039 #define HAVE_LIBDBMALLOC 1
14042 LIBS="-ldbmalloc $LIBS"
14050 echo "$as_me:14050: checking if you want to use valgrind for testing" >&5
14051 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
14053 # Check whether --with-valgrind or --without-valgrind was given.
14054 if test "${with_valgrind+set}" = set; then
14055 withval="$with_valgrind"
14057 cat >>confdefs.h <<EOF
14058 #define USE_VALGRIND 1
14061 : ${with_cflags:=-g}
14062 : ${with_no_leaks:=yes}
14067 echo "$as_me:14067: result: ${with_valgrind:-no}" >&5
14068 echo "${ECHO_T}${with_valgrind:-no}" >&6
14070 case .$with_cflags in
14080 cf_new_extra_cppflags=
14082 for cf_add_cflags in -g
14084 case $cf_fix_cppflags in
14086 case $cf_add_cflags in
14087 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14088 case $cf_add_cflags in
14090 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14092 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14093 && test -z "${cf_tst_cflags}" \
14094 && cf_fix_cppflags=yes
14096 if test $cf_fix_cppflags = yes ; then
14097 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14099 elif test "${cf_tst_cflags}" = "\"'" ; then
14100 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14105 case "$CPPFLAGS" in
14109 case $cf_add_cflags in
14111 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14113 CPPFLAGS=`echo "$CPPFLAGS" | \
14114 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14115 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14119 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
14124 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
14129 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14131 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14133 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14134 && test -z "${cf_tst_cflags}" \
14135 && cf_fix_cppflags=no
14140 if test -n "$cf_new_cflags" ; then
14142 CFLAGS="$CFLAGS $cf_new_cflags"
14145 if test -n "$cf_new_cppflags" ; then
14147 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
14150 if test -n "$cf_new_extra_cppflags" ; then
14152 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
14160 echo "$as_me:14160: checking if you want to perform memory-leak testing" >&5
14161 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
14163 # Check whether --enable-leaks or --disable-leaks was given.
14164 if test "${enable_leaks+set}" = set; then
14165 enableval="$enable_leaks"
14166 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
14168 : ${with_no_leaks:=no}
14170 echo "$as_me:14170: result: $with_no_leaks" >&5
14171 echo "${ECHO_T}$with_no_leaks" >&6
14173 if test "$with_no_leaks" = yes ; then
14175 cat >>confdefs.h <<\EOF
14179 cat >>confdefs.h <<\EOF
14180 #define YY_NO_LEAKS 1
14185 cat >>confdefs.h <<\EOF
14186 #define HAVE_NC_ALLOC_H 1
14189 ### use option --enable-expanded to generate certain macros as functions
14191 # Check whether --enable-expanded or --disable-expanded was given.
14192 if test "${enable_expanded+set}" = set; then
14193 enableval="$enable_expanded"
14194 test "x$enableval" = xyes &&
14195 cat >>confdefs.h <<\EOF
14196 #define NCURSES_EXPANDED 1
14201 ### use option --disable-macros to suppress macros in favor of functions
14203 # Check whether --enable-macros or --disable-macros was given.
14204 if test "${enable_macros+set}" = set; then
14205 enableval="$enable_macros"
14206 test "$enableval" = no &&
14207 cat >>confdefs.h <<\EOF
14208 #define NCURSES_NOMACROS 1
14213 # Normally we only add trace() to the debug-library. Allow this to be
14214 # extended to all models of the ncurses library:
14216 case "$CFLAGS $CPPFLAGS" in
14222 echo "$as_me:14222: checking whether to add trace feature to all models" >&5
14223 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
14225 # Check whether --with-trace or --without-trace was given.
14226 if test "${with_trace+set}" = set; then
14227 withval="$with_trace"
14228 cf_with_trace=$withval
14230 cf_with_trace=$cf_all_traces
14232 echo "$as_me:14232: result: $cf_with_trace" >&5
14233 echo "${ECHO_T}$cf_with_trace" >&6
14235 if test "x$cf_with_trace" = xyes ; then
14242 cf_new_extra_cppflags=
14244 for cf_add_cflags in -DTRACE
14246 case $cf_fix_cppflags in
14248 case $cf_add_cflags in
14249 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14250 case $cf_add_cflags in
14252 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14254 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14255 && test -z "${cf_tst_cflags}" \
14256 && cf_fix_cppflags=yes
14258 if test $cf_fix_cppflags = yes ; then
14259 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14261 elif test "${cf_tst_cflags}" = "\"'" ; then
14262 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14267 case "$CPPFLAGS" in
14271 case $cf_add_cflags in
14273 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14275 CPPFLAGS=`echo "$CPPFLAGS" | \
14276 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14277 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14281 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
14286 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
14291 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14293 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14295 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14296 && test -z "${cf_tst_cflags}" \
14297 && cf_fix_cppflags=no
14302 if test -n "$cf_new_cflags" ; then
14304 CFLAGS="$CFLAGS $cf_new_cflags"
14307 if test -n "$cf_new_cppflags" ; then
14309 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
14312 if test -n "$cf_new_extra_cppflags" ; then
14314 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
14322 echo "$as_me:14322: checking if we want to use GNAT projects" >&5
14323 echo $ECHO_N "checking if we want to use GNAT projects... $ECHO_C" >&6
14325 # Check whether --enable-gnat-projects or --disable-gnat-projects was given.
14326 if test "${enable_gnat_projects+set}" = set; then
14327 enableval="$enable_gnat_projects"
14328 test "$enableval" != no && enableval=yes
14329 if test "$enableval" != "yes" ; then
14330 enable_gnat_projects=no
14332 enable_gnat_projects=yes
14336 enable_gnat_projects=yes
14339 echo "$as_me:14339: result: $enable_gnat_projects" >&5
14340 echo "${ECHO_T}$enable_gnat_projects" >&6
14342 ### Checks for libraries.
14343 case $cf_cv_system_name in
14344 (*mingw32*|*mingw64*)
14345 CPPFLAGS="$CPPFLAGS -DWINVER=0x0501"
14346 LIBS=" -lpsapi $LIBS"
14349 echo "$as_me:14349: checking for gettimeofday" >&5
14350 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
14351 if test "${ac_cv_func_gettimeofday+set}" = set; then
14352 echo $ECHO_N "(cached) $ECHO_C" >&6
14354 cat >conftest.$ac_ext <<_ACEOF
14355 #line 14355 "configure"
14356 #include "confdefs.h"
14357 /* System header to define __stub macros and hopefully few prototypes,
14358 which can conflict with char gettimeofday (); below. */
14359 #include <assert.h>
14360 /* Override any gcc2 internal prototype to avoid an error. */
14364 /* We use char because int might match the return type of a gcc2
14365 builtin and then its argument prototype would still apply. */
14366 char gettimeofday ();
14372 /* The GNU C library defines this for functions which it implements
14373 to always fail with ENOSYS. Some functions are actually named
14374 something starting with __ and the normal name is an alias. */
14375 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
14378 f = gettimeofday; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
14385 rm -f conftest.$ac_objext conftest$ac_exeext
14386 if { (eval echo "$as_me:14386: \"$ac_link\"") >&5
14387 (eval $ac_link) 2>&5
14389 echo "$as_me:14389: \$? = $ac_status" >&5
14390 (exit $ac_status); } &&
14391 { ac_try='test -s conftest$ac_exeext'
14392 { (eval echo "$as_me:14392: \"$ac_try\"") >&5
14393 (eval $ac_try) 2>&5
14395 echo "$as_me:14395: \$? = $ac_status" >&5
14396 (exit $ac_status); }; }; then
14397 ac_cv_func_gettimeofday=yes
14399 echo "$as_me: failed program was:" >&5
14400 cat conftest.$ac_ext >&5
14401 ac_cv_func_gettimeofday=no
14403 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14405 echo "$as_me:14405: result: $ac_cv_func_gettimeofday" >&5
14406 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
14407 if test $ac_cv_func_gettimeofday = yes; then
14409 cat >>confdefs.h <<\EOF
14410 #define HAVE_GETTIMEOFDAY 1
14415 echo "$as_me:14415: checking for gettimeofday in -lbsd" >&5
14416 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
14417 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
14418 echo $ECHO_N "(cached) $ECHO_C" >&6
14420 ac_check_lib_save_LIBS=$LIBS
14422 cat >conftest.$ac_ext <<_ACEOF
14423 #line 14423 "configure"
14424 #include "confdefs.h"
14426 /* Override any gcc2 internal prototype to avoid an error. */
14430 /* We use char because int might match the return type of a gcc2
14431 builtin and then its argument prototype would still apply. */
14432 char gettimeofday ();
14441 rm -f conftest.$ac_objext conftest$ac_exeext
14442 if { (eval echo "$as_me:14442: \"$ac_link\"") >&5
14443 (eval $ac_link) 2>&5
14445 echo "$as_me:14445: \$? = $ac_status" >&5
14446 (exit $ac_status); } &&
14447 { ac_try='test -s conftest$ac_exeext'
14448 { (eval echo "$as_me:14448: \"$ac_try\"") >&5
14449 (eval $ac_try) 2>&5
14451 echo "$as_me:14451: \$? = $ac_status" >&5
14452 (exit $ac_status); }; }; then
14453 ac_cv_lib_bsd_gettimeofday=yes
14455 echo "$as_me: failed program was:" >&5
14456 cat conftest.$ac_ext >&5
14457 ac_cv_lib_bsd_gettimeofday=no
14459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14460 LIBS=$ac_check_lib_save_LIBS
14462 echo "$as_me:14462: result: $ac_cv_lib_bsd_gettimeofday" >&5
14463 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
14464 if test $ac_cv_lib_bsd_gettimeofday = yes; then
14466 cat >>confdefs.h <<\EOF
14467 #define HAVE_GETTIMEOFDAY 1
14470 cf_add_libs="-lbsd"
14471 # Filter out duplicates - this happens with badly-designed ".pc" files...
14472 for cf_add_1lib in $LIBS
14474 for cf_add_2lib in $cf_add_libs
14476 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14482 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14484 LIBS="$cf_add_libs"
14492 echo "$as_me:14492: checking if -lm needed for math functions" >&5
14493 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
14494 if test "${cf_cv_need_libm+set}" = set; then
14495 echo $ECHO_N "(cached) $ECHO_C" >&6
14498 cat >conftest.$ac_ext <<_ACEOF
14499 #line 14499 "configure"
14500 #include "confdefs.h"
14508 double x = rand(); printf("result = %g\n", pow(sin(x),x))
14513 rm -f conftest.$ac_objext conftest$ac_exeext
14514 if { (eval echo "$as_me:14514: \"$ac_link\"") >&5
14515 (eval $ac_link) 2>&5
14517 echo "$as_me:14517: \$? = $ac_status" >&5
14518 (exit $ac_status); } &&
14519 { ac_try='test -s conftest$ac_exeext'
14520 { (eval echo "$as_me:14520: \"$ac_try\"") >&5
14521 (eval $ac_try) 2>&5
14523 echo "$as_me:14523: \$? = $ac_status" >&5
14524 (exit $ac_status); }; }; then
14527 echo "$as_me: failed program was:" >&5
14528 cat conftest.$ac_ext >&5
14529 cf_cv_need_libm=yes
14531 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14533 echo "$as_me:14533: result: $cf_cv_need_libm" >&5
14534 echo "${ECHO_T}$cf_cv_need_libm" >&6
14535 if test "$cf_cv_need_libm" = yes
14540 ### Checks for header files.
14541 echo "$as_me:14541: checking for ANSI C header files" >&5
14542 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
14543 if test "${ac_cv_header_stdc+set}" = set; then
14544 echo $ECHO_N "(cached) $ECHO_C" >&6
14546 cat >conftest.$ac_ext <<_ACEOF
14547 #line 14547 "configure"
14548 #include "confdefs.h"
14549 #include <stdlib.h>
14550 #include <stdarg.h>
14551 #include <string.h>
14555 if { (eval echo "$as_me:14555: \"$ac_cpp conftest.$ac_ext\"") >&5
14556 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14558 egrep -v '^ *\+' conftest.er1 >conftest.err
14560 cat conftest.err >&5
14561 echo "$as_me:14561: \$? = $ac_status" >&5
14562 (exit $ac_status); } >/dev/null; then
14563 if test -s conftest.err; then
14564 ac_cpp_err=$ac_c_preproc_warn_flag
14571 if test -z "$ac_cpp_err"; then
14572 ac_cv_header_stdc=yes
14574 echo "$as_me: failed program was:" >&5
14575 cat conftest.$ac_ext >&5
14576 ac_cv_header_stdc=no
14578 rm -f conftest.err conftest.$ac_ext
14580 if test $ac_cv_header_stdc = yes; then
14581 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14582 cat >conftest.$ac_ext <<_ACEOF
14583 #line 14583 "configure"
14584 #include "confdefs.h"
14585 #include <string.h>
14588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14589 egrep "memchr" >/dev/null 2>&1; then
14592 ac_cv_header_stdc=no
14598 if test $ac_cv_header_stdc = yes; then
14599 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14600 cat >conftest.$ac_ext <<_ACEOF
14601 #line 14601 "configure"
14602 #include "confdefs.h"
14603 #include <stdlib.h>
14606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14607 egrep "free" >/dev/null 2>&1; then
14610 ac_cv_header_stdc=no
14616 if test $ac_cv_header_stdc = yes; then
14617 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14618 if test "$cross_compiling" = yes; then
14621 cat >conftest.$ac_ext <<_ACEOF
14622 #line 14622 "configure"
14623 #include "confdefs.h"
14625 #if ((' ' & 0x0FF) == 0x020)
14626 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14627 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14629 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14630 || ('j' <= (c) && (c) <= 'r') \
14631 || ('s' <= (c) && (c) <= 'z'))
14632 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14635 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14640 for (i = 0; i < 256; i++)
14641 if (XOR (islower (i), ISLOWER (i))
14642 || toupper (i) != TOUPPER (i))
14643 $ac_main_return(2);
14644 $ac_main_return (0);
14647 rm -f conftest$ac_exeext
14648 if { (eval echo "$as_me:14648: \"$ac_link\"") >&5
14649 (eval $ac_link) 2>&5
14651 echo "$as_me:14651: \$? = $ac_status" >&5
14652 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14653 { (eval echo "$as_me:14653: \"$ac_try\"") >&5
14654 (eval $ac_try) 2>&5
14656 echo "$as_me:14656: \$? = $ac_status" >&5
14657 (exit $ac_status); }; }; then
14660 echo "$as_me: program exited with status $ac_status" >&5
14661 echo "$as_me: failed program was:" >&5
14662 cat conftest.$ac_ext >&5
14663 ac_cv_header_stdc=no
14665 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14669 echo "$as_me:14669: result: $ac_cv_header_stdc" >&5
14670 echo "${ECHO_T}$ac_cv_header_stdc" >&6
14671 if test $ac_cv_header_stdc = yes; then
14673 cat >>confdefs.h <<\EOF
14674 #define STDC_HEADERS 1
14679 ac_header_dirent=no
14680 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14681 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14682 echo "$as_me:14682: checking for $ac_hdr that defines DIR" >&5
14683 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
14684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14685 echo $ECHO_N "(cached) $ECHO_C" >&6
14687 cat >conftest.$ac_ext <<_ACEOF
14688 #line 14688 "configure"
14689 #include "confdefs.h"
14690 #include <sys/types.h>
14702 rm -f conftest.$ac_objext
14703 if { (eval echo "$as_me:14703: \"$ac_compile\"") >&5
14704 (eval $ac_compile) 2>&5
14706 echo "$as_me:14706: \$? = $ac_status" >&5
14707 (exit $ac_status); } &&
14708 { ac_try='test -s conftest.$ac_objext'
14709 { (eval echo "$as_me:14709: \"$ac_try\"") >&5
14710 (eval $ac_try) 2>&5
14712 echo "$as_me:14712: \$? = $ac_status" >&5
14713 (exit $ac_status); }; }; then
14714 eval "$as_ac_Header=yes"
14716 echo "$as_me: failed program was:" >&5
14717 cat conftest.$ac_ext >&5
14718 eval "$as_ac_Header=no"
14720 rm -f conftest.$ac_objext conftest.$ac_ext
14722 echo "$as_me:14722: result: `eval echo '${'$as_ac_Header'}'`" >&5
14723 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14725 cat >>confdefs.h <<EOF
14726 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14729 ac_header_dirent=$ac_hdr; break
14733 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14734 if test $ac_header_dirent = dirent.h; then
14735 echo "$as_me:14735: checking for opendir in -ldir" >&5
14736 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
14737 if test "${ac_cv_lib_dir_opendir+set}" = set; then
14738 echo $ECHO_N "(cached) $ECHO_C" >&6
14740 ac_check_lib_save_LIBS=$LIBS
14742 cat >conftest.$ac_ext <<_ACEOF
14743 #line 14743 "configure"
14744 #include "confdefs.h"
14746 /* Override any gcc2 internal prototype to avoid an error. */
14750 /* We use char because int might match the return type of a gcc2
14751 builtin and then its argument prototype would still apply. */
14761 rm -f conftest.$ac_objext conftest$ac_exeext
14762 if { (eval echo "$as_me:14762: \"$ac_link\"") >&5
14763 (eval $ac_link) 2>&5
14765 echo "$as_me:14765: \$? = $ac_status" >&5
14766 (exit $ac_status); } &&
14767 { ac_try='test -s conftest$ac_exeext'
14768 { (eval echo "$as_me:14768: \"$ac_try\"") >&5
14769 (eval $ac_try) 2>&5
14771 echo "$as_me:14771: \$? = $ac_status" >&5
14772 (exit $ac_status); }; }; then
14773 ac_cv_lib_dir_opendir=yes
14775 echo "$as_me: failed program was:" >&5
14776 cat conftest.$ac_ext >&5
14777 ac_cv_lib_dir_opendir=no
14779 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14780 LIBS=$ac_check_lib_save_LIBS
14782 echo "$as_me:14782: result: $ac_cv_lib_dir_opendir" >&5
14783 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
14784 if test $ac_cv_lib_dir_opendir = yes; then
14789 echo "$as_me:14789: checking for opendir in -lx" >&5
14790 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
14791 if test "${ac_cv_lib_x_opendir+set}" = set; then
14792 echo $ECHO_N "(cached) $ECHO_C" >&6
14794 ac_check_lib_save_LIBS=$LIBS
14796 cat >conftest.$ac_ext <<_ACEOF
14797 #line 14797 "configure"
14798 #include "confdefs.h"
14800 /* Override any gcc2 internal prototype to avoid an error. */
14804 /* We use char because int might match the return type of a gcc2
14805 builtin and then its argument prototype would still apply. */
14815 rm -f conftest.$ac_objext conftest$ac_exeext
14816 if { (eval echo "$as_me:14816: \"$ac_link\"") >&5
14817 (eval $ac_link) 2>&5
14819 echo "$as_me:14819: \$? = $ac_status" >&5
14820 (exit $ac_status); } &&
14821 { ac_try='test -s conftest$ac_exeext'
14822 { (eval echo "$as_me:14822: \"$ac_try\"") >&5
14823 (eval $ac_try) 2>&5
14825 echo "$as_me:14825: \$? = $ac_status" >&5
14826 (exit $ac_status); }; }; then
14827 ac_cv_lib_x_opendir=yes
14829 echo "$as_me: failed program was:" >&5
14830 cat conftest.$ac_ext >&5
14831 ac_cv_lib_x_opendir=no
14833 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14834 LIBS=$ac_check_lib_save_LIBS
14836 echo "$as_me:14836: result: $ac_cv_lib_x_opendir" >&5
14837 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
14838 if test $ac_cv_lib_x_opendir = yes; then
14844 echo "$as_me:14844: checking whether time.h and sys/time.h may both be included" >&5
14845 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
14846 if test "${ac_cv_header_time+set}" = set; then
14847 echo $ECHO_N "(cached) $ECHO_C" >&6
14849 cat >conftest.$ac_ext <<_ACEOF
14850 #line 14850 "configure"
14851 #include "confdefs.h"
14852 #include <sys/types.h>
14853 #include <sys/time.h>
14859 if ((struct tm *) 0)
14865 rm -f conftest.$ac_objext
14866 if { (eval echo "$as_me:14866: \"$ac_compile\"") >&5
14867 (eval $ac_compile) 2>&5
14869 echo "$as_me:14869: \$? = $ac_status" >&5
14870 (exit $ac_status); } &&
14871 { ac_try='test -s conftest.$ac_objext'
14872 { (eval echo "$as_me:14872: \"$ac_try\"") >&5
14873 (eval $ac_try) 2>&5
14875 echo "$as_me:14875: \$? = $ac_status" >&5
14876 (exit $ac_status); }; }; then
14877 ac_cv_header_time=yes
14879 echo "$as_me: failed program was:" >&5
14880 cat conftest.$ac_ext >&5
14881 ac_cv_header_time=no
14883 rm -f conftest.$ac_objext conftest.$ac_ext
14885 echo "$as_me:14885: result: $ac_cv_header_time" >&5
14886 echo "${ECHO_T}$ac_cv_header_time" >&6
14887 if test $ac_cv_header_time = yes; then
14889 cat >>confdefs.h <<\EOF
14890 #define TIME_WITH_SYS_TIME 1
14897 cf_regex_libs="regex re"
14900 cf_regex_libs="gnurx $cf_regex_libs"
14904 echo "$as_me:14904: checking for regcomp" >&5
14905 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
14906 if test "${ac_cv_func_regcomp+set}" = set; then
14907 echo $ECHO_N "(cached) $ECHO_C" >&6
14909 cat >conftest.$ac_ext <<_ACEOF
14910 #line 14910 "configure"
14911 #include "confdefs.h"
14912 /* System header to define __stub macros and hopefully few prototypes,
14913 which can conflict with char regcomp (); below. */
14914 #include <assert.h>
14915 /* Override any gcc2 internal prototype to avoid an error. */
14919 /* We use char because int might match the return type of a gcc2
14920 builtin and then its argument prototype would still apply. */
14927 /* The GNU C library defines this for functions which it implements
14928 to always fail with ENOSYS. Some functions are actually named
14929 something starting with __ and the normal name is an alias. */
14930 #if defined (__stub_regcomp) || defined (__stub___regcomp)
14933 f = regcomp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
14940 rm -f conftest.$ac_objext conftest$ac_exeext
14941 if { (eval echo "$as_me:14941: \"$ac_link\"") >&5
14942 (eval $ac_link) 2>&5
14944 echo "$as_me:14944: \$? = $ac_status" >&5
14945 (exit $ac_status); } &&
14946 { ac_try='test -s conftest$ac_exeext'
14947 { (eval echo "$as_me:14947: \"$ac_try\"") >&5
14948 (eval $ac_try) 2>&5
14950 echo "$as_me:14950: \$? = $ac_status" >&5
14951 (exit $ac_status); }; }; then
14952 ac_cv_func_regcomp=yes
14954 echo "$as_me: failed program was:" >&5
14955 cat conftest.$ac_ext >&5
14956 ac_cv_func_regcomp=no
14958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14960 echo "$as_me:14960: result: $ac_cv_func_regcomp" >&5
14961 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
14962 if test $ac_cv_func_regcomp = yes; then
14963 cf_regex_func=regcomp
14966 for cf_regex_lib in $cf_regex_libs
14968 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
14969 echo "$as_me:14969: checking for regcomp in -l$cf_regex_lib" >&5
14970 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
14971 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
14972 echo $ECHO_N "(cached) $ECHO_C" >&6
14974 ac_check_lib_save_LIBS=$LIBS
14975 LIBS="-l$cf_regex_lib $LIBS"
14976 cat >conftest.$ac_ext <<_ACEOF
14977 #line 14977 "configure"
14978 #include "confdefs.h"
14980 /* Override any gcc2 internal prototype to avoid an error. */
14984 /* We use char because int might match the return type of a gcc2
14985 builtin and then its argument prototype would still apply. */
14995 rm -f conftest.$ac_objext conftest$ac_exeext
14996 if { (eval echo "$as_me:14996: \"$ac_link\"") >&5
14997 (eval $ac_link) 2>&5
14999 echo "$as_me:14999: \$? = $ac_status" >&5
15000 (exit $ac_status); } &&
15001 { ac_try='test -s conftest$ac_exeext'
15002 { (eval echo "$as_me:15002: \"$ac_try\"") >&5
15003 (eval $ac_try) 2>&5
15005 echo "$as_me:15005: \$? = $ac_status" >&5
15006 (exit $ac_status); }; }; then
15007 eval "$as_ac_Lib=yes"
15009 echo "$as_me: failed program was:" >&5
15010 cat conftest.$ac_ext >&5
15011 eval "$as_ac_Lib=no"
15013 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15014 LIBS=$ac_check_lib_save_LIBS
15016 echo "$as_me:15016: result: `eval echo '${'$as_ac_Lib'}'`" >&5
15017 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
15018 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
15020 cf_add_libs="-l$cf_regex_lib"
15021 # Filter out duplicates - this happens with badly-designed ".pc" files...
15022 for cf_add_1lib in $LIBS
15024 for cf_add_2lib in $cf_add_libs
15026 if test "x$cf_add_1lib" = "x$cf_add_2lib"
15032 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
15034 LIBS="$cf_add_libs"
15036 cf_regex_func=regcomp
15044 if test "$cf_regex_func" = no ; then
15045 echo "$as_me:15045: checking for compile" >&5
15046 echo $ECHO_N "checking for compile... $ECHO_C" >&6
15047 if test "${ac_cv_func_compile+set}" = set; then
15048 echo $ECHO_N "(cached) $ECHO_C" >&6
15050 cat >conftest.$ac_ext <<_ACEOF
15051 #line 15051 "configure"
15052 #include "confdefs.h"
15053 /* System header to define __stub macros and hopefully few prototypes,
15054 which can conflict with char compile (); below. */
15055 #include <assert.h>
15056 /* Override any gcc2 internal prototype to avoid an error. */
15060 /* We use char because int might match the return type of a gcc2
15061 builtin and then its argument prototype would still apply. */
15068 /* The GNU C library defines this for functions which it implements
15069 to always fail with ENOSYS. Some functions are actually named
15070 something starting with __ and the normal name is an alias. */
15071 #if defined (__stub_compile) || defined (__stub___compile)
15074 f = compile; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
15081 rm -f conftest.$ac_objext conftest$ac_exeext
15082 if { (eval echo "$as_me:15082: \"$ac_link\"") >&5
15083 (eval $ac_link) 2>&5
15085 echo "$as_me:15085: \$? = $ac_status" >&5
15086 (exit $ac_status); } &&
15087 { ac_try='test -s conftest$ac_exeext'
15088 { (eval echo "$as_me:15088: \"$ac_try\"") >&5
15089 (eval $ac_try) 2>&5
15091 echo "$as_me:15091: \$? = $ac_status" >&5
15092 (exit $ac_status); }; }; then
15093 ac_cv_func_compile=yes
15095 echo "$as_me: failed program was:" >&5
15096 cat conftest.$ac_ext >&5
15097 ac_cv_func_compile=no
15099 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15101 echo "$as_me:15101: result: $ac_cv_func_compile" >&5
15102 echo "${ECHO_T}$ac_cv_func_compile" >&6
15103 if test $ac_cv_func_compile = yes; then
15104 cf_regex_func=compile
15107 echo "$as_me:15107: checking for compile in -lgen" >&5
15108 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
15109 if test "${ac_cv_lib_gen_compile+set}" = set; then
15110 echo $ECHO_N "(cached) $ECHO_C" >&6
15112 ac_check_lib_save_LIBS=$LIBS
15114 cat >conftest.$ac_ext <<_ACEOF
15115 #line 15115 "configure"
15116 #include "confdefs.h"
15118 /* Override any gcc2 internal prototype to avoid an error. */
15122 /* We use char because int might match the return type of a gcc2
15123 builtin and then its argument prototype would still apply. */
15133 rm -f conftest.$ac_objext conftest$ac_exeext
15134 if { (eval echo "$as_me:15134: \"$ac_link\"") >&5
15135 (eval $ac_link) 2>&5
15137 echo "$as_me:15137: \$? = $ac_status" >&5
15138 (exit $ac_status); } &&
15139 { ac_try='test -s conftest$ac_exeext'
15140 { (eval echo "$as_me:15140: \"$ac_try\"") >&5
15141 (eval $ac_try) 2>&5
15143 echo "$as_me:15143: \$? = $ac_status" >&5
15144 (exit $ac_status); }; }; then
15145 ac_cv_lib_gen_compile=yes
15147 echo "$as_me: failed program was:" >&5
15148 cat conftest.$ac_ext >&5
15149 ac_cv_lib_gen_compile=no
15151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15152 LIBS=$ac_check_lib_save_LIBS
15154 echo "$as_me:15154: result: $ac_cv_lib_gen_compile" >&5
15155 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
15156 if test $ac_cv_lib_gen_compile = yes; then
15158 cf_add_libs="-lgen"
15159 # Filter out duplicates - this happens with badly-designed ".pc" files...
15160 for cf_add_1lib in $LIBS
15162 for cf_add_2lib in $cf_add_libs
15164 if test "x$cf_add_1lib" = "x$cf_add_2lib"
15170 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
15172 LIBS="$cf_add_libs"
15174 cf_regex_func=compile
15181 if test "$cf_regex_func" = no ; then
15182 { echo "$as_me:15182: WARNING: cannot find regular expression library" >&5
15183 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
15186 echo "$as_me:15186: checking for regular-expression headers" >&5
15187 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
15188 if test "${cf_cv_regex_hdrs+set}" = set; then
15189 echo $ECHO_N "(cached) $ECHO_C" >&6
15192 cf_cv_regex_hdrs=no
15193 case $cf_regex_func in
15195 for cf_regex_hdr in regexp.h regexpr.h
15197 cat >conftest.$ac_ext <<_ACEOF
15198 #line 15198 "configure"
15199 #include "confdefs.h"
15200 #include <$cf_regex_hdr>
15205 char *p = compile("", "", "", 0);
15206 int x = step("", "");
15212 rm -f conftest.$ac_objext conftest$ac_exeext
15213 if { (eval echo "$as_me:15213: \"$ac_link\"") >&5
15214 (eval $ac_link) 2>&5
15216 echo "$as_me:15216: \$? = $ac_status" >&5
15217 (exit $ac_status); } &&
15218 { ac_try='test -s conftest$ac_exeext'
15219 { (eval echo "$as_me:15219: \"$ac_try\"") >&5
15220 (eval $ac_try) 2>&5
15222 echo "$as_me:15222: \$? = $ac_status" >&5
15223 (exit $ac_status); }; }; then
15225 cf_cv_regex_hdrs=$cf_regex_hdr
15229 echo "$as_me: failed program was:" >&5
15230 cat conftest.$ac_ext >&5
15232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15236 for cf_regex_hdr in regex.h
15238 cat >conftest.$ac_ext <<_ACEOF
15239 #line 15239 "configure"
15240 #include "confdefs.h"
15241 #include <sys/types.h>
15242 #include <$cf_regex_hdr>
15248 int x = regcomp(p, "", 0);
15249 int y = regexec(p, "", 0, 0, 0);
15256 rm -f conftest.$ac_objext conftest$ac_exeext
15257 if { (eval echo "$as_me:15257: \"$ac_link\"") >&5
15258 (eval $ac_link) 2>&5
15260 echo "$as_me:15260: \$? = $ac_status" >&5
15261 (exit $ac_status); } &&
15262 { ac_try='test -s conftest$ac_exeext'
15263 { (eval echo "$as_me:15263: \"$ac_try\"") >&5
15264 (eval $ac_try) 2>&5
15266 echo "$as_me:15266: \$? = $ac_status" >&5
15267 (exit $ac_status); }; }; then
15269 cf_cv_regex_hdrs=$cf_regex_hdr
15273 echo "$as_me: failed program was:" >&5
15274 cat conftest.$ac_ext >&5
15276 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15282 echo "$as_me:15282: result: $cf_cv_regex_hdrs" >&5
15283 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
15285 case $cf_cv_regex_hdrs in
15286 (no) { echo "$as_me:15286: WARNING: no regular expression header found" >&5
15287 echo "$as_me: WARNING: no regular expression header found" >&2;} ;;
15289 cat >>confdefs.h <<\EOF
15290 #define HAVE_REGEX_H_FUNCS 1
15294 cat >>confdefs.h <<\EOF
15295 #define HAVE_REGEXP_H_FUNCS 1
15299 cat >>confdefs.h <<\EOF
15300 #define HAVE_REGEXPR_H_FUNCS 1
15324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15325 echo "$as_me:15325: checking for $ac_header" >&5
15326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15328 echo $ECHO_N "(cached) $ECHO_C" >&6
15330 cat >conftest.$ac_ext <<_ACEOF
15331 #line 15331 "configure"
15332 #include "confdefs.h"
15333 #include <$ac_header>
15335 if { (eval echo "$as_me:15335: \"$ac_cpp conftest.$ac_ext\"") >&5
15336 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15338 egrep -v '^ *\+' conftest.er1 >conftest.err
15340 cat conftest.err >&5
15341 echo "$as_me:15341: \$? = $ac_status" >&5
15342 (exit $ac_status); } >/dev/null; then
15343 if test -s conftest.err; then
15344 ac_cpp_err=$ac_c_preproc_warn_flag
15351 if test -z "$ac_cpp_err"; then
15352 eval "$as_ac_Header=yes"
15354 echo "$as_me: failed program was:" >&5
15355 cat conftest.$ac_ext >&5
15356 eval "$as_ac_Header=no"
15358 rm -f conftest.err conftest.$ac_ext
15360 echo "$as_me:15360: result: `eval echo '${'$as_ac_Header'}'`" >&5
15361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15362 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15363 cat >>confdefs.h <<EOF
15364 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15370 for ac_header in unistd.h getopt.h
15372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15373 echo "$as_me:15373: checking for $ac_header" >&5
15374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15376 echo $ECHO_N "(cached) $ECHO_C" >&6
15378 cat >conftest.$ac_ext <<_ACEOF
15379 #line 15379 "configure"
15380 #include "confdefs.h"
15381 #include <$ac_header>
15383 if { (eval echo "$as_me:15383: \"$ac_cpp conftest.$ac_ext\"") >&5
15384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15386 egrep -v '^ *\+' conftest.er1 >conftest.err
15388 cat conftest.err >&5
15389 echo "$as_me:15389: \$? = $ac_status" >&5
15390 (exit $ac_status); } >/dev/null; then
15391 if test -s conftest.err; then
15392 ac_cpp_err=$ac_c_preproc_warn_flag
15399 if test -z "$ac_cpp_err"; then
15400 eval "$as_ac_Header=yes"
15402 echo "$as_me: failed program was:" >&5
15403 cat conftest.$ac_ext >&5
15404 eval "$as_ac_Header=no"
15406 rm -f conftest.err conftest.$ac_ext
15408 echo "$as_me:15408: result: `eval echo '${'$as_ac_Header'}'`" >&5
15409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15411 cat >>confdefs.h <<EOF
15412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15418 echo "$as_me:15418: checking for header declaring getopt variables" >&5
15419 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
15420 if test "${cf_cv_getopt_header+set}" = set; then
15421 echo $ECHO_N "(cached) $ECHO_C" >&6
15424 cf_cv_getopt_header=none
15425 for cf_header in stdio.h stdlib.h unistd.h getopt.h
15427 cat >conftest.$ac_ext <<_ACEOF
15428 #line 15428 "configure"
15429 #include "confdefs.h"
15431 #include <$cf_header>
15435 int x = optind; char *y = optarg
15440 rm -f conftest.$ac_objext
15441 if { (eval echo "$as_me:15441: \"$ac_compile\"") >&5
15442 (eval $ac_compile) 2>&5
15444 echo "$as_me:15444: \$? = $ac_status" >&5
15445 (exit $ac_status); } &&
15446 { ac_try='test -s conftest.$ac_objext'
15447 { (eval echo "$as_me:15447: \"$ac_try\"") >&5
15448 (eval $ac_try) 2>&5
15450 echo "$as_me:15450: \$? = $ac_status" >&5
15451 (exit $ac_status); }; }; then
15452 cf_cv_getopt_header=$cf_header
15455 echo "$as_me: failed program was:" >&5
15456 cat conftest.$ac_ext >&5
15458 rm -f conftest.$ac_objext conftest.$ac_ext
15462 echo "$as_me:15462: result: $cf_cv_getopt_header" >&5
15463 echo "${ECHO_T}$cf_cv_getopt_header" >&6
15464 if test $cf_cv_getopt_header != none ; then
15466 cat >>confdefs.h <<\EOF
15467 #define HAVE_GETOPT_HEADER 1
15471 if test $cf_cv_getopt_header = getopt.h ; then
15473 cat >>confdefs.h <<\EOF
15474 #define NEED_GETOPT_H 1
15479 # check for ISC (this may also define _POSIX_SOURCE)
15480 # Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
15481 if test "x$ISC" = xyes ; then
15483 echo "$as_me:15483: checking for main in -lcposix" >&5
15484 echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6
15485 if test "${ac_cv_lib_cposix_main+set}" = set; then
15486 echo $ECHO_N "(cached) $ECHO_C" >&6
15488 ac_check_lib_save_LIBS=$LIBS
15489 LIBS="-lcposix $LIBS"
15490 cat >conftest.$ac_ext <<_ACEOF
15491 #line 15491 "configure"
15492 #include "confdefs.h"
15502 rm -f conftest.$ac_objext conftest$ac_exeext
15503 if { (eval echo "$as_me:15503: \"$ac_link\"") >&5
15504 (eval $ac_link) 2>&5
15506 echo "$as_me:15506: \$? = $ac_status" >&5
15507 (exit $ac_status); } &&
15508 { ac_try='test -s conftest$ac_exeext'
15509 { (eval echo "$as_me:15509: \"$ac_try\"") >&5
15510 (eval $ac_try) 2>&5
15512 echo "$as_me:15512: \$? = $ac_status" >&5
15513 (exit $ac_status); }; }; then
15514 ac_cv_lib_cposix_main=yes
15516 echo "$as_me: failed program was:" >&5
15517 cat conftest.$ac_ext >&5
15518 ac_cv_lib_cposix_main=no
15520 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15521 LIBS=$ac_check_lib_save_LIBS
15523 echo "$as_me:15523: result: $ac_cv_lib_cposix_main" >&5
15524 echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6
15525 if test $ac_cv_lib_cposix_main = yes; then
15526 cat >>confdefs.h <<EOF
15527 #define HAVE_LIBCPOSIX 1
15530 LIBS="-lcposix $LIBS"
15534 echo "$as_me:15534: checking for bzero in -linet" >&5
15535 echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6
15536 if test "${ac_cv_lib_inet_bzero+set}" = set; then
15537 echo $ECHO_N "(cached) $ECHO_C" >&6
15539 ac_check_lib_save_LIBS=$LIBS
15540 LIBS="-linet $LIBS"
15541 cat >conftest.$ac_ext <<_ACEOF
15542 #line 15542 "configure"
15543 #include "confdefs.h"
15545 /* Override any gcc2 internal prototype to avoid an error. */
15549 /* We use char because int might match the return type of a gcc2
15550 builtin and then its argument prototype would still apply. */
15560 rm -f conftest.$ac_objext conftest$ac_exeext
15561 if { (eval echo "$as_me:15561: \"$ac_link\"") >&5
15562 (eval $ac_link) 2>&5
15564 echo "$as_me:15564: \$? = $ac_status" >&5
15565 (exit $ac_status); } &&
15566 { ac_try='test -s conftest$ac_exeext'
15567 { (eval echo "$as_me:15567: \"$ac_try\"") >&5
15568 (eval $ac_try) 2>&5
15570 echo "$as_me:15570: \$? = $ac_status" >&5
15571 (exit $ac_status); }; }; then
15572 ac_cv_lib_inet_bzero=yes
15574 echo "$as_me: failed program was:" >&5
15575 cat conftest.$ac_ext >&5
15576 ac_cv_lib_inet_bzero=no
15578 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15579 LIBS=$ac_check_lib_save_LIBS
15581 echo "$as_me:15581: result: $ac_cv_lib_inet_bzero" >&5
15582 echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6
15583 if test $ac_cv_lib_inet_bzero = yes; then
15585 cf_add_libs="-linet"
15586 # Filter out duplicates - this happens with badly-designed ".pc" files...
15587 for cf_add_1lib in $LIBS
15589 for cf_add_2lib in $cf_add_libs
15591 if test "x$cf_add_1lib" = "x$cf_add_2lib"
15597 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
15599 LIBS="$cf_add_libs"
15604 echo "$as_me:15604: checking if sys/time.h works with sys/select.h" >&5
15605 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
15606 if test "${cf_cv_sys_time_select+set}" = set; then
15607 echo $ECHO_N "(cached) $ECHO_C" >&6
15610 cat >conftest.$ac_ext <<_ACEOF
15611 #line 15611 "configure"
15612 #include "confdefs.h"
15614 #include <sys/types.h>
15615 #ifdef HAVE_SYS_TIME_H
15616 #include <sys/time.h>
15618 #ifdef HAVE_SYS_SELECT_H
15619 #include <sys/select.h>
15630 rm -f conftest.$ac_objext
15631 if { (eval echo "$as_me:15631: \"$ac_compile\"") >&5
15632 (eval $ac_compile) 2>&5
15634 echo "$as_me:15634: \$? = $ac_status" >&5
15635 (exit $ac_status); } &&
15636 { ac_try='test -s conftest.$ac_objext'
15637 { (eval echo "$as_me:15637: \"$ac_try\"") >&5
15638 (eval $ac_try) 2>&5
15640 echo "$as_me:15640: \$? = $ac_status" >&5
15641 (exit $ac_status); }; }; then
15642 cf_cv_sys_time_select=yes
15644 echo "$as_me: failed program was:" >&5
15645 cat conftest.$ac_ext >&5
15646 cf_cv_sys_time_select=no
15648 rm -f conftest.$ac_objext conftest.$ac_ext
15652 echo "$as_me:15652: result: $cf_cv_sys_time_select" >&5
15653 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
15654 test "$cf_cv_sys_time_select" = yes &&
15655 cat >>confdefs.h <<\EOF
15656 #define HAVE_SYS_TIME_SELECT 1
15659 ### checks for compiler characteristics
15661 ac_cpp='$CPP $CPPFLAGS'
15662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15665 ac_main_return=return
15667 echo "$as_me:15667: checking for an ANSI C-conforming const" >&5
15668 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15669 if test "${ac_cv_c_const+set}" = set; then
15670 echo $ECHO_N "(cached) $ECHO_C" >&6
15672 cat >conftest.$ac_ext <<_ACEOF
15673 #line 15673 "configure"
15674 #include "confdefs.h"
15679 /* FIXME: Include the comments suggested by Paul. */
15680 #ifndef __cplusplus
15681 /* Ultrix mips cc rejects this. */
15682 typedef int charset[2];
15684 /* SunOS 4.1.1 cc rejects this. */
15685 char const *const *ccp;
15687 /* NEC SVR4.0.2 mips cc rejects this. */
15688 struct point {int x, y;};
15689 static struct point const zero = {0,0};
15690 /* AIX XL C 1.02.0.0 rejects this.
15691 It does not let you subtract one const X* pointer from another in
15692 an arm of an if-expression whose if-part is not a constant
15694 const char *g = "string";
15695 ccp = &g + (g ? g-g : 0);
15696 /* HPUX 7.0 cc rejects these. */
15699 ccp = (char const *const *) p;
15700 { /* SCO 3.2v4 cc rejects this. */
15702 char const *s = 0 ? (char *) 0 : (char const *) 0;
15706 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15707 int x[] = {25, 17};
15708 const int *foo = &x[0];
15711 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15712 typedef const int *iptr;
15716 { /* AIX XL C 1.02.0.0 rejects this saying
15717 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15718 struct s { int j; const int *ap[3]; };
15719 struct s *b; b->j = 5;
15721 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15722 const int foo = 10;
15730 rm -f conftest.$ac_objext
15731 if { (eval echo "$as_me:15731: \"$ac_compile\"") >&5
15732 (eval $ac_compile) 2>&5
15734 echo "$as_me:15734: \$? = $ac_status" >&5
15735 (exit $ac_status); } &&
15736 { ac_try='test -s conftest.$ac_objext'
15737 { (eval echo "$as_me:15737: \"$ac_try\"") >&5
15738 (eval $ac_try) 2>&5
15740 echo "$as_me:15740: \$? = $ac_status" >&5
15741 (exit $ac_status); }; }; then
15744 echo "$as_me: failed program was:" >&5
15745 cat conftest.$ac_ext >&5
15748 rm -f conftest.$ac_objext conftest.$ac_ext
15750 echo "$as_me:15750: result: $ac_cv_c_const" >&5
15751 echo "${ECHO_T}$ac_cv_c_const" >&6
15752 if test $ac_cv_c_const = no; then
15754 cat >>confdefs.h <<\EOF
15760 echo "$as_me:15760: checking for inline" >&5
15761 echo $ECHO_N "checking for inline... $ECHO_C" >&6
15762 if test "${ac_cv_c_inline+set}" = set; then
15763 echo $ECHO_N "(cached) $ECHO_C" >&6
15766 for ac_kw in inline __inline__ __inline; do
15767 cat >conftest.$ac_ext <<_ACEOF
15768 #line 15768 "configure"
15769 #include "confdefs.h"
15770 #ifndef __cplusplus
15771 static $ac_kw int static_foo () {return 0; }
15772 $ac_kw int foo () {return 0; }
15776 rm -f conftest.$ac_objext
15777 if { (eval echo "$as_me:15777: \"$ac_compile\"") >&5
15778 (eval $ac_compile) 2>&5
15780 echo "$as_me:15780: \$? = $ac_status" >&5
15781 (exit $ac_status); } &&
15782 { ac_try='test -s conftest.$ac_objext'
15783 { (eval echo "$as_me:15783: \"$ac_try\"") >&5
15784 (eval $ac_try) 2>&5
15786 echo "$as_me:15786: \$? = $ac_status" >&5
15787 (exit $ac_status); }; }; then
15788 ac_cv_c_inline=$ac_kw; break
15790 echo "$as_me: failed program was:" >&5
15791 cat conftest.$ac_ext >&5
15793 rm -f conftest.$ac_objext conftest.$ac_ext
15797 echo "$as_me:15797: result: $ac_cv_c_inline" >&5
15798 echo "${ECHO_T}$ac_cv_c_inline" >&6
15799 case $ac_cv_c_inline in
15802 cat >>confdefs.h <<\EOF
15806 *) cat >>confdefs.h <<EOF
15807 #define inline $ac_cv_c_inline
15813 if test "$ac_cv_c_inline" != no ; then
15814 NCURSES_INLINE=inline
15815 if test "$INTEL_COMPILER" = yes
15818 elif test "$CLANG_COMPILER" = yes
15821 elif test "$GCC" = yes
15823 echo "$as_me:15823: checking if $CC supports options to tune inlining" >&5
15824 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
15825 if test "${cf_cv_gcc_inline+set}" = set; then
15826 echo $ECHO_N "(cached) $ECHO_C" >&6
15829 cf_save_CFLAGS=$CFLAGS
15830 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
15831 cat >conftest.$ac_ext <<_ACEOF
15832 #line 15832 "configure"
15833 #include "confdefs.h"
15834 inline int foo(void) { return 1; }
15838 ${cf_cv_main_return:-return} foo()
15843 rm -f conftest.$ac_objext
15844 if { (eval echo "$as_me:15844: \"$ac_compile\"") >&5
15845 (eval $ac_compile) 2>&5
15847 echo "$as_me:15847: \$? = $ac_status" >&5
15848 (exit $ac_status); } &&
15849 { ac_try='test -s conftest.$ac_objext'
15850 { (eval echo "$as_me:15850: \"$ac_try\"") >&5
15851 (eval $ac_try) 2>&5
15853 echo "$as_me:15853: \$? = $ac_status" >&5
15854 (exit $ac_status); }; }; then
15855 cf_cv_gcc_inline=yes
15857 echo "$as_me: failed program was:" >&5
15858 cat conftest.$ac_ext >&5
15859 cf_cv_gcc_inline=no
15861 rm -f conftest.$ac_objext conftest.$ac_ext
15862 CFLAGS=$cf_save_CFLAGS
15865 echo "$as_me:15865: result: $cf_cv_gcc_inline" >&5
15866 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
15867 if test "$cf_cv_gcc_inline" = yes ; then
15872 cf_new_extra_cppflags=
15874 for cf_add_cflags in --param max-inline-insns-single=1200
15876 case $cf_fix_cppflags in
15878 case $cf_add_cflags in
15879 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
15880 case $cf_add_cflags in
15882 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15884 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15885 && test -z "${cf_tst_cflags}" \
15886 && cf_fix_cppflags=yes
15888 if test $cf_fix_cppflags = yes ; then
15889 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15891 elif test "${cf_tst_cflags}" = "\"'" ; then
15892 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15897 case "$CPPFLAGS" in
15901 case $cf_add_cflags in
15903 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15905 CPPFLAGS=`echo "$CPPFLAGS" | \
15906 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15907 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15911 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
15916 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
15921 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15923 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
15925 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15926 && test -z "${cf_tst_cflags}" \
15927 && cf_fix_cppflags=no
15932 if test -n "$cf_new_cflags" ; then
15934 CFLAGS="$CFLAGS $cf_new_cflags"
15937 if test -n "$cf_new_cppflags" ; then
15939 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
15942 if test -n "$cf_new_extra_cppflags" ; then
15944 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
15951 echo "$as_me:15951: checking for signal global datatype" >&5
15952 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
15953 if test "${cf_cv_sig_atomic_t+set}" = set; then
15954 echo $ECHO_N "(cached) $ECHO_C" >&6
15958 "volatile sig_atomic_t" \
15962 cat >conftest.$ac_ext <<_ACEOF
15963 #line 15963 "configure"
15964 #include "confdefs.h"
15966 #include <sys/types.h>
15967 #include <signal.h>
15972 static void handler(int sig)
15979 signal(SIGINT, handler);
15985 rm -f conftest.$ac_objext
15986 if { (eval echo "$as_me:15986: \"$ac_compile\"") >&5
15987 (eval $ac_compile) 2>&5
15989 echo "$as_me:15989: \$? = $ac_status" >&5
15990 (exit $ac_status); } &&
15991 { ac_try='test -s conftest.$ac_objext'
15992 { (eval echo "$as_me:15992: \"$ac_try\"") >&5
15993 (eval $ac_try) 2>&5
15995 echo "$as_me:15995: \$? = $ac_status" >&5
15996 (exit $ac_status); }; }; then
15997 cf_cv_sig_atomic_t=$cf_type
15999 echo "$as_me: failed program was:" >&5
16000 cat conftest.$ac_ext >&5
16001 cf_cv_sig_atomic_t=no
16003 rm -f conftest.$ac_objext conftest.$ac_ext
16004 test "$cf_cv_sig_atomic_t" != no && break
16009 echo "$as_me:16009: result: $cf_cv_sig_atomic_t" >&5
16010 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
16011 test "$cf_cv_sig_atomic_t" != no &&
16012 cat >>confdefs.h <<EOF
16013 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
16016 if test $NCURSES_CHTYPE = auto ; then
16018 echo "$as_me:16018: checking for type of chtype" >&5
16019 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
16020 if test "${cf_cv_typeof_chtype+set}" = set; then
16021 echo $ECHO_N "(cached) $ECHO_C" >&6
16024 if test "$cross_compiling" = yes; then
16025 cf_cv_typeof_chtype=long
16027 cat >conftest.$ac_ext <<_ACEOF
16028 #line 16028 "configure"
16029 #include "confdefs.h"
16031 #define WANT_BITS 31
16035 FILE *fp = fopen("cf_test.out", "w");
16037 char *result = "long";
16038 if (sizeof(unsigned long) > sizeof(unsigned int)) {
16041 for (n = 0; n < WANT_BITS; n++) {
16044 if (y != 1 || x == 0) {
16050 * If x is nonzero, an int is big enough for the bits
16053 result = (x != 0) ? "int" : "long";
16058 ${cf_cv_main_return:-return}(0);
16062 rm -f conftest$ac_exeext
16063 if { (eval echo "$as_me:16063: \"$ac_link\"") >&5
16064 (eval $ac_link) 2>&5
16066 echo "$as_me:16066: \$? = $ac_status" >&5
16067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16068 { (eval echo "$as_me:16068: \"$ac_try\"") >&5
16069 (eval $ac_try) 2>&5
16071 echo "$as_me:16071: \$? = $ac_status" >&5
16072 (exit $ac_status); }; }; then
16073 cf_cv_typeof_chtype=`cat cf_test.out`
16075 echo "$as_me: program exited with status $ac_status" >&5
16076 echo "$as_me: failed program was:" >&5
16077 cat conftest.$ac_ext >&5
16078 cf_cv_typeof_chtype=long
16080 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16086 echo "$as_me:16086: result: $cf_cv_typeof_chtype" >&5
16087 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
16089 cat >>confdefs.h <<EOF
16090 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
16094 cf_cv_typeof_chtype=$NCURSES_CHTYPE
16096 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
16098 echo "$as_me:16098: checking if unsigned literals are legal" >&5
16099 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
16100 if test "${cf_cv_unsigned_literals+set}" = set; then
16101 echo $ECHO_N "(cached) $ECHO_C" >&6
16104 cat >conftest.$ac_ext <<_ACEOF
16105 #line 16105 "configure"
16106 #include "confdefs.h"
16111 long x = 1L + 1UL + 1U + 1
16116 rm -f conftest.$ac_objext
16117 if { (eval echo "$as_me:16117: \"$ac_compile\"") >&5
16118 (eval $ac_compile) 2>&5
16120 echo "$as_me:16120: \$? = $ac_status" >&5
16121 (exit $ac_status); } &&
16122 { ac_try='test -s conftest.$ac_objext'
16123 { (eval echo "$as_me:16123: \"$ac_try\"") >&5
16124 (eval $ac_try) 2>&5
16126 echo "$as_me:16126: \$? = $ac_status" >&5
16127 (exit $ac_status); }; }; then
16128 cf_cv_unsigned_literals=yes
16130 echo "$as_me: failed program was:" >&5
16131 cat conftest.$ac_ext >&5
16132 cf_cv_unsigned_literals=no
16134 rm -f conftest.$ac_objext conftest.$ac_ext
16138 echo "$as_me:16138: result: $cf_cv_unsigned_literals" >&5
16139 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
16142 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
16143 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
16145 if test $NCURSES_MMASK_T = auto ; then
16146 cf_cv_typeof_mmask_t=long
16148 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
16150 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
16152 ### Checks for external-data
16154 echo "$as_me:16154: checking if external errno is declared" >&5
16155 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
16156 if test "${cf_cv_dcl_errno+set}" = set; then
16157 echo $ECHO_N "(cached) $ECHO_C" >&6
16160 cat >conftest.$ac_ext <<_ACEOF
16161 #line 16161 "configure"
16162 #include "confdefs.h"
16164 #ifdef HAVE_STDLIB_H
16165 #include <stdlib.h>
16168 #include <sys/types.h>
16173 int x = (int) errno
16178 rm -f conftest.$ac_objext
16179 if { (eval echo "$as_me:16179: \"$ac_compile\"") >&5
16180 (eval $ac_compile) 2>&5
16182 echo "$as_me:16182: \$? = $ac_status" >&5
16183 (exit $ac_status); } &&
16184 { ac_try='test -s conftest.$ac_objext'
16185 { (eval echo "$as_me:16185: \"$ac_try\"") >&5
16186 (eval $ac_try) 2>&5
16188 echo "$as_me:16188: \$? = $ac_status" >&5
16189 (exit $ac_status); }; }; then
16190 cf_cv_dcl_errno=yes
16192 echo "$as_me: failed program was:" >&5
16193 cat conftest.$ac_ext >&5
16196 rm -f conftest.$ac_objext conftest.$ac_ext
16199 echo "$as_me:16199: result: $cf_cv_dcl_errno" >&5
16200 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
16202 if test "$cf_cv_dcl_errno" = no ; then
16204 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16206 cat >>confdefs.h <<EOF
16207 #define $cf_result 1
16212 # It's possible (for near-UNIX clones) that the data doesn't exist
16214 echo "$as_me:16214: checking if external errno exists" >&5
16215 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
16216 if test "${cf_cv_have_errno+set}" = set; then
16217 echo $ECHO_N "(cached) $ECHO_C" >&6
16220 cat >conftest.$ac_ext <<_ACEOF
16221 #line 16221 "configure"
16222 #include "confdefs.h"
16235 rm -f conftest.$ac_objext conftest$ac_exeext
16236 if { (eval echo "$as_me:16236: \"$ac_link\"") >&5
16237 (eval $ac_link) 2>&5
16239 echo "$as_me:16239: \$? = $ac_status" >&5
16240 (exit $ac_status); } &&
16241 { ac_try='test -s conftest$ac_exeext'
16242 { (eval echo "$as_me:16242: \"$ac_try\"") >&5
16243 (eval $ac_try) 2>&5
16245 echo "$as_me:16245: \$? = $ac_status" >&5
16246 (exit $ac_status); }; }; then
16247 cf_cv_have_errno=yes
16249 echo "$as_me: failed program was:" >&5
16250 cat conftest.$ac_ext >&5
16251 cf_cv_have_errno=no
16253 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16256 echo "$as_me:16256: result: $cf_cv_have_errno" >&5
16257 echo "${ECHO_T}$cf_cv_have_errno" >&6
16259 if test "$cf_cv_have_errno" = yes ; then
16261 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16263 cat >>confdefs.h <<EOF
16264 #define $cf_result 1
16269 echo "$as_me:16269: checking if data-only library module links" >&5
16270 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
16271 if test "${cf_cv_link_dataonly+set}" = set; then
16272 echo $ECHO_N "(cached) $ECHO_C" >&6
16276 cat >conftest.$ac_ext <<EOF
16277 #line 16277 "configure"
16278 int testdata[3] = { 123, 456, 789 };
16280 if { (eval echo "$as_me:16280: \"$ac_compile\"") >&5
16281 (eval $ac_compile) 2>&5
16283 echo "$as_me:16283: \$? = $ac_status" >&5
16284 (exit $ac_status); } ; then
16285 mv conftest.o data.o && \
16286 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
16288 rm -f conftest.$ac_ext data.o
16289 cat >conftest.$ac_ext <<EOF
16290 #line 16290 "configure"
16294 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
16296 extern int testdata[3];
16297 return testdata[0] == 123
16298 && testdata[1] == 456
16299 && testdata[2] == 789;
16303 if { (eval echo "$as_me:16303: \"$ac_compile\"") >&5
16304 (eval $ac_compile) 2>&5
16306 echo "$as_me:16306: \$? = $ac_status" >&5
16307 (exit $ac_status); }; then
16308 mv conftest.o func.o && \
16309 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
16311 rm -f conftest.$ac_ext func.o
16312 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
16313 cf_saveLIBS="$LIBS"
16314 LIBS="conftest.a $LIBS"
16315 if test "$cross_compiling" = yes; then
16316 cf_cv_link_dataonly=unknown
16318 cat >conftest.$ac_ext <<_ACEOF
16319 #line 16319 "configure"
16320 #include "confdefs.h"
16324 extern int testfunc();
16325 ${cf_cv_main_return:-return} (!testfunc());
16329 rm -f conftest$ac_exeext
16330 if { (eval echo "$as_me:16330: \"$ac_link\"") >&5
16331 (eval $ac_link) 2>&5
16333 echo "$as_me:16333: \$? = $ac_status" >&5
16334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16335 { (eval echo "$as_me:16335: \"$ac_try\"") >&5
16336 (eval $ac_try) 2>&5
16338 echo "$as_me:16338: \$? = $ac_status" >&5
16339 (exit $ac_status); }; }; then
16340 cf_cv_link_dataonly=yes
16342 echo "$as_me: program exited with status $ac_status" >&5
16343 echo "$as_me: failed program was:" >&5
16344 cat conftest.$ac_ext >&5
16345 cf_cv_link_dataonly=no
16347 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16349 LIBS="$cf_saveLIBS"
16353 echo "$as_me:16353: result: $cf_cv_link_dataonly" >&5
16354 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
16356 if test "$cf_cv_link_dataonly" = no ; then
16358 cat >>confdefs.h <<\EOF
16359 #define BROKEN_LINKER 1
16365 ### Checks for library functions.
16391 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16392 echo "$as_me:16392: checking for $ac_func" >&5
16393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16394 if eval "test \"\${$as_ac_var+set}\" = set"; then
16395 echo $ECHO_N "(cached) $ECHO_C" >&6
16397 cat >conftest.$ac_ext <<_ACEOF
16398 #line 16398 "configure"
16399 #include "confdefs.h"
16400 /* System header to define __stub macros and hopefully few prototypes,
16401 which can conflict with char $ac_func (); below. */
16402 #include <assert.h>
16403 /* Override any gcc2 internal prototype to avoid an error. */
16407 /* We use char because int might match the return type of a gcc2
16408 builtin and then its argument prototype would still apply. */
16415 /* The GNU C library defines this for functions which it implements
16416 to always fail with ENOSYS. Some functions are actually named
16417 something starting with __ and the normal name is an alias. */
16418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16421 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
16428 rm -f conftest.$ac_objext conftest$ac_exeext
16429 if { (eval echo "$as_me:16429: \"$ac_link\"") >&5
16430 (eval $ac_link) 2>&5
16432 echo "$as_me:16432: \$? = $ac_status" >&5
16433 (exit $ac_status); } &&
16434 { ac_try='test -s conftest$ac_exeext'
16435 { (eval echo "$as_me:16435: \"$ac_try\"") >&5
16436 (eval $ac_try) 2>&5
16438 echo "$as_me:16438: \$? = $ac_status" >&5
16439 (exit $ac_status); }; }; then
16440 eval "$as_ac_var=yes"
16442 echo "$as_me: failed program was:" >&5
16443 cat conftest.$ac_ext >&5
16444 eval "$as_ac_var=no"
16446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16448 echo "$as_me:16448: result: `eval echo '${'$as_ac_var'}'`" >&5
16449 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16450 if test `eval echo '${'$as_ac_var'}'` = yes; then
16451 cat >>confdefs.h <<EOF
16452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16458 if test "x$ac_cv_func_getopt" = xno &&
16459 test "x$cf_with_progs$cf_with_tests" != xnono; then
16460 { { echo "$as_me:16460: error: getopt is required for building programs" >&5
16461 echo "$as_me: error: getopt is required for building programs" >&2;}
16462 { (exit 1); exit 1; }; }
16465 if test "x$with_getcap" = "xyes" ; then
16467 echo "$as_me:16467: checking for terminal-capability database functions" >&5
16468 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
16469 if test "${cf_cv_cgetent+set}" = set; then
16470 echo $ECHO_N "(cached) $ECHO_C" >&6
16473 cat >conftest.$ac_ext <<_ACEOF
16474 #line 16474 "configure"
16475 #include "confdefs.h"
16477 #include <stdlib.h>
16484 char *db_array = temp;
16485 cgetent(&buf, &db_array, "vt100");
16486 cgetcap(buf, "tc", '=');
16487 cgetmatch(buf, "tc");
16493 rm -f conftest.$ac_objext conftest$ac_exeext
16494 if { (eval echo "$as_me:16494: \"$ac_link\"") >&5
16495 (eval $ac_link) 2>&5
16497 echo "$as_me:16497: \$? = $ac_status" >&5
16498 (exit $ac_status); } &&
16499 { ac_try='test -s conftest$ac_exeext'
16500 { (eval echo "$as_me:16500: \"$ac_try\"") >&5
16501 (eval $ac_try) 2>&5
16503 echo "$as_me:16503: \$? = $ac_status" >&5
16504 (exit $ac_status); }; }; then
16507 echo "$as_me: failed program was:" >&5
16508 cat conftest.$ac_ext >&5
16511 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16514 echo "$as_me:16514: result: $cf_cv_cgetent" >&5
16515 echo "${ECHO_T}$cf_cv_cgetent" >&6
16517 if test "$cf_cv_cgetent" = yes
16520 cat >>confdefs.h <<\EOF
16521 #define HAVE_BSD_CGETENT 1
16524 echo "$as_me:16524: checking if cgetent uses const parameter" >&5
16525 echo $ECHO_N "checking if cgetent uses const parameter... $ECHO_C" >&6
16526 if test "${cf_cv_cgetent_const+set}" = set; then
16527 echo $ECHO_N "(cached) $ECHO_C" >&6
16530 cat >conftest.$ac_ext <<_ACEOF
16531 #line 16531 "configure"
16532 #include "confdefs.h"
16534 #include <stdlib.h>
16541 #ifndef _NETBSD_SOURCE /* given, since April 2004 in stdlib.h */
16542 const char *db_array = temp;
16543 cgetent(&buf, &db_array, "vt100");
16545 cgetcap(buf, "tc", '=');
16546 cgetmatch(buf, "tc");
16552 rm -f conftest.$ac_objext conftest$ac_exeext
16553 if { (eval echo "$as_me:16553: \"$ac_link\"") >&5
16554 (eval $ac_link) 2>&5
16556 echo "$as_me:16556: \$? = $ac_status" >&5
16557 (exit $ac_status); } &&
16558 { ac_try='test -s conftest$ac_exeext'
16559 { (eval echo "$as_me:16559: \"$ac_try\"") >&5
16560 (eval $ac_try) 2>&5
16562 echo "$as_me:16562: \$? = $ac_status" >&5
16563 (exit $ac_status); }; }; then
16564 cf_cv_cgetent_const=yes
16566 echo "$as_me: failed program was:" >&5
16567 cat conftest.$ac_ext >&5
16568 cf_cv_cgetent_const=no
16570 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16573 echo "$as_me:16573: result: $cf_cv_cgetent_const" >&5
16574 echo "${ECHO_T}$cf_cv_cgetent_const" >&6
16575 if test "$cf_cv_cgetent_const" = yes
16578 cat >>confdefs.h <<EOF
16579 #define CGETENT_CONST const
16587 echo "$as_me:16587: checking for isascii" >&5
16588 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
16589 if test "${cf_cv_have_isascii+set}" = set; then
16590 echo $ECHO_N "(cached) $ECHO_C" >&6
16593 cat >conftest.$ac_ext <<_ACEOF
16594 #line 16594 "configure"
16595 #include "confdefs.h"
16600 int x = isascii(' ')
16605 rm -f conftest.$ac_objext conftest$ac_exeext
16606 if { (eval echo "$as_me:16606: \"$ac_link\"") >&5
16607 (eval $ac_link) 2>&5
16609 echo "$as_me:16609: \$? = $ac_status" >&5
16610 (exit $ac_status); } &&
16611 { ac_try='test -s conftest$ac_exeext'
16612 { (eval echo "$as_me:16612: \"$ac_try\"") >&5
16613 (eval $ac_try) 2>&5
16615 echo "$as_me:16615: \$? = $ac_status" >&5
16616 (exit $ac_status); }; }; then
16617 cf_cv_have_isascii=yes
16619 echo "$as_me: failed program was:" >&5
16620 cat conftest.$ac_ext >&5
16621 cf_cv_have_isascii=no
16623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16626 echo "$as_me:16626: result: $cf_cv_have_isascii" >&5
16627 echo "${ECHO_T}$cf_cv_have_isascii" >&6
16628 test "$cf_cv_have_isascii" = yes &&
16629 cat >>confdefs.h <<\EOF
16630 #define HAVE_ISASCII 1
16633 if test "$ac_cv_func_sigaction" = yes; then
16634 echo "$as_me:16634: checking whether sigaction needs _POSIX_SOURCE" >&5
16635 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
16636 cat >conftest.$ac_ext <<_ACEOF
16637 #line 16637 "configure"
16638 #include "confdefs.h"
16640 #include <sys/types.h>
16641 #include <signal.h>
16645 struct sigaction act
16650 rm -f conftest.$ac_objext
16651 if { (eval echo "$as_me:16651: \"$ac_compile\"") >&5
16652 (eval $ac_compile) 2>&5
16654 echo "$as_me:16654: \$? = $ac_status" >&5
16655 (exit $ac_status); } &&
16656 { ac_try='test -s conftest.$ac_objext'
16657 { (eval echo "$as_me:16657: \"$ac_try\"") >&5
16658 (eval $ac_try) 2>&5
16660 echo "$as_me:16660: \$? = $ac_status" >&5
16661 (exit $ac_status); }; }; then
16664 echo "$as_me: failed program was:" >&5
16665 cat conftest.$ac_ext >&5
16667 cat >conftest.$ac_ext <<_ACEOF
16668 #line 16668 "configure"
16669 #include "confdefs.h"
16671 #define _POSIX_SOURCE
16672 #include <sys/types.h>
16673 #include <signal.h>
16677 struct sigaction act
16682 rm -f conftest.$ac_objext
16683 if { (eval echo "$as_me:16683: \"$ac_compile\"") >&5
16684 (eval $ac_compile) 2>&5
16686 echo "$as_me:16686: \$? = $ac_status" >&5
16687 (exit $ac_status); } &&
16688 { ac_try='test -s conftest.$ac_objext'
16689 { (eval echo "$as_me:16689: \"$ac_try\"") >&5
16690 (eval $ac_try) 2>&5
16692 echo "$as_me:16692: \$? = $ac_status" >&5
16693 (exit $ac_status); }; }; then
16696 cat >>confdefs.h <<\EOF
16697 #define _POSIX_SOURCE 1
16701 echo "$as_me: failed program was:" >&5
16702 cat conftest.$ac_ext >&5
16705 rm -f conftest.$ac_objext conftest.$ac_ext
16707 rm -f conftest.$ac_objext conftest.$ac_ext
16708 echo "$as_me:16708: result: $sigact_bad" >&5
16709 echo "${ECHO_T}$sigact_bad" >&6
16712 echo "$as_me:16712: checking if nanosleep really works" >&5
16713 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
16714 if test "${cf_cv_func_nanosleep+set}" = set; then
16715 echo $ECHO_N "(cached) $ECHO_C" >&6
16718 if test "$cross_compiling" = yes; then
16719 cf_cv_func_nanosleep=unknown
16721 cat >conftest.$ac_ext <<_ACEOF
16722 #line 16722 "configure"
16723 #include "confdefs.h"
16729 #ifdef HAVE_SYS_TIME_H
16730 #include <sys/time.h>
16734 struct timespec ts1, ts2;
16737 ts1.tv_nsec = 750000000;
16741 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
16742 ${cf_cv_main_return:-return}(code != 0);
16746 rm -f conftest$ac_exeext
16747 if { (eval echo "$as_me:16747: \"$ac_link\"") >&5
16748 (eval $ac_link) 2>&5
16750 echo "$as_me:16750: \$? = $ac_status" >&5
16751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16752 { (eval echo "$as_me:16752: \"$ac_try\"") >&5
16753 (eval $ac_try) 2>&5
16755 echo "$as_me:16755: \$? = $ac_status" >&5
16756 (exit $ac_status); }; }; then
16757 cf_cv_func_nanosleep=yes
16759 echo "$as_me: program exited with status $ac_status" >&5
16760 echo "$as_me: failed program was:" >&5
16761 cat conftest.$ac_ext >&5
16762 cf_cv_func_nanosleep=no
16764 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16767 echo "$as_me:16767: result: $cf_cv_func_nanosleep" >&5
16768 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
16770 test "$cf_cv_func_nanosleep" = "yes" &&
16771 cat >>confdefs.h <<\EOF
16772 #define HAVE_NANOSLEEP 1
16781 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16782 echo "$as_me:16782: checking for $ac_header" >&5
16783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16785 echo $ECHO_N "(cached) $ECHO_C" >&6
16787 cat >conftest.$ac_ext <<_ACEOF
16788 #line 16788 "configure"
16789 #include "confdefs.h"
16790 #include <$ac_header>
16792 if { (eval echo "$as_me:16792: \"$ac_cpp conftest.$ac_ext\"") >&5
16793 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16795 egrep -v '^ *\+' conftest.er1 >conftest.err
16797 cat conftest.err >&5
16798 echo "$as_me:16798: \$? = $ac_status" >&5
16799 (exit $ac_status); } >/dev/null; then
16800 if test -s conftest.err; then
16801 ac_cpp_err=$ac_c_preproc_warn_flag
16808 if test -z "$ac_cpp_err"; then
16809 eval "$as_ac_Header=yes"
16811 echo "$as_me: failed program was:" >&5
16812 cat conftest.$ac_ext >&5
16813 eval "$as_ac_Header=no"
16815 rm -f conftest.err conftest.$ac_ext
16817 echo "$as_me:16817: result: `eval echo '${'$as_ac_Header'}'`" >&5
16818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16820 cat >>confdefs.h <<EOF
16821 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16827 if test "$ISC" = yes ; then
16829 for ac_header in sys/termio.h
16831 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16832 echo "$as_me:16832: checking for $ac_header" >&5
16833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16835 echo $ECHO_N "(cached) $ECHO_C" >&6
16837 cat >conftest.$ac_ext <<_ACEOF
16838 #line 16838 "configure"
16839 #include "confdefs.h"
16840 #include <$ac_header>
16842 if { (eval echo "$as_me:16842: \"$ac_cpp conftest.$ac_ext\"") >&5
16843 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16845 egrep -v '^ *\+' conftest.er1 >conftest.err
16847 cat conftest.err >&5
16848 echo "$as_me:16848: \$? = $ac_status" >&5
16849 (exit $ac_status); } >/dev/null; then
16850 if test -s conftest.err; then
16851 ac_cpp_err=$ac_c_preproc_warn_flag
16858 if test -z "$ac_cpp_err"; then
16859 eval "$as_ac_Header=yes"
16861 echo "$as_me: failed program was:" >&5
16862 cat conftest.$ac_ext >&5
16863 eval "$as_ac_Header=no"
16865 rm -f conftest.err conftest.$ac_ext
16867 echo "$as_me:16867: result: `eval echo '${'$as_ac_Header'}'`" >&5
16868 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16869 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16870 cat >>confdefs.h <<EOF
16871 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16878 if test "$ac_cv_header_termios_h" = yes ; then
16879 case "$CFLAGS $CPPFLAGS" in
16880 (*-D_POSIX_SOURCE*)
16881 termios_bad=dunno ;;
16882 (*) termios_bad=maybe ;;
16884 if test "$termios_bad" = maybe ; then
16885 echo "$as_me:16885: checking whether termios.h needs _POSIX_SOURCE" >&5
16886 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
16887 cat >conftest.$ac_ext <<_ACEOF
16888 #line 16888 "configure"
16889 #include "confdefs.h"
16890 #include <termios.h>
16894 struct termios foo; int x = foo.c_iflag
16899 rm -f conftest.$ac_objext
16900 if { (eval echo "$as_me:16900: \"$ac_compile\"") >&5
16901 (eval $ac_compile) 2>&5
16903 echo "$as_me:16903: \$? = $ac_status" >&5
16904 (exit $ac_status); } &&
16905 { ac_try='test -s conftest.$ac_objext'
16906 { (eval echo "$as_me:16906: \"$ac_try\"") >&5
16907 (eval $ac_try) 2>&5
16909 echo "$as_me:16909: \$? = $ac_status" >&5
16910 (exit $ac_status); }; }; then
16913 echo "$as_me: failed program was:" >&5
16914 cat conftest.$ac_ext >&5
16916 cat >conftest.$ac_ext <<_ACEOF
16917 #line 16917 "configure"
16918 #include "confdefs.h"
16920 #define _POSIX_SOURCE
16921 #include <termios.h>
16925 struct termios foo; int x = foo.c_iflag
16930 rm -f conftest.$ac_objext
16931 if { (eval echo "$as_me:16931: \"$ac_compile\"") >&5
16932 (eval $ac_compile) 2>&5
16934 echo "$as_me:16934: \$? = $ac_status" >&5
16935 (exit $ac_status); } &&
16936 { ac_try='test -s conftest.$ac_objext'
16937 { (eval echo "$as_me:16937: \"$ac_try\"") >&5
16938 (eval $ac_try) 2>&5
16940 echo "$as_me:16940: \$? = $ac_status" >&5
16941 (exit $ac_status); }; }; then
16942 termios_bad=unknown
16944 echo "$as_me: failed program was:" >&5
16945 cat conftest.$ac_ext >&5
16947 cat >>confdefs.h <<\EOF
16948 #define _POSIX_SOURCE 1
16952 rm -f conftest.$ac_objext conftest.$ac_ext
16955 rm -f conftest.$ac_objext conftest.$ac_ext
16956 echo "$as_me:16956: result: $termios_bad" >&5
16957 echo "${ECHO_T}$termios_bad" >&6
16961 echo "$as_me:16961: checking for tcgetattr" >&5
16962 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
16963 if test "${cf_cv_have_tcgetattr+set}" = set; then
16964 echo $ECHO_N "(cached) $ECHO_C" >&6
16967 cat >conftest.$ac_ext <<_ACEOF
16968 #line 16968 "configure"
16969 #include "confdefs.h"
16971 #include <sys/types.h>
16972 #ifdef HAVE_UNISTD_H
16973 #include <unistd.h>
16975 #ifdef HAVE_TERMIOS_H
16976 #include <termios.h>
16977 #define TTY struct termios
16979 #ifdef HAVE_TERMIO_H
16980 #include <termio.h>
16981 #define TTY struct termio
16990 tcgetattr(1, &foo);
16995 rm -f conftest.$ac_objext conftest$ac_exeext
16996 if { (eval echo "$as_me:16996: \"$ac_link\"") >&5
16997 (eval $ac_link) 2>&5
16999 echo "$as_me:16999: \$? = $ac_status" >&5
17000 (exit $ac_status); } &&
17001 { ac_try='test -s conftest$ac_exeext'
17002 { (eval echo "$as_me:17002: \"$ac_try\"") >&5
17003 (eval $ac_try) 2>&5
17005 echo "$as_me:17005: \$? = $ac_status" >&5
17006 (exit $ac_status); }; }; then
17007 cf_cv_have_tcgetattr=yes
17009 echo "$as_me: failed program was:" >&5
17010 cat conftest.$ac_ext >&5
17011 cf_cv_have_tcgetattr=no
17013 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17015 echo "$as_me:17015: result: $cf_cv_have_tcgetattr" >&5
17016 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
17017 test "$cf_cv_have_tcgetattr" = yes &&
17018 cat >>confdefs.h <<\EOF
17019 #define HAVE_TCGETATTR 1
17022 echo "$as_me:17022: checking for vsscanf function or workaround" >&5
17023 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
17024 if test "${cf_cv_func_vsscanf+set}" = set; then
17025 echo $ECHO_N "(cached) $ECHO_C" >&6
17028 cat >conftest.$ac_ext <<_ACEOF
17029 #line 17029 "configure"
17030 #include "confdefs.h"
17032 #include <stdarg.h>
17039 vsscanf("from", "%d", ap)
17044 rm -f conftest.$ac_objext conftest$ac_exeext
17045 if { (eval echo "$as_me:17045: \"$ac_link\"") >&5
17046 (eval $ac_link) 2>&5
17048 echo "$as_me:17048: \$? = $ac_status" >&5
17049 (exit $ac_status); } &&
17050 { ac_try='test -s conftest$ac_exeext'
17051 { (eval echo "$as_me:17051: \"$ac_try\"") >&5
17052 (eval $ac_try) 2>&5
17054 echo "$as_me:17054: \$? = $ac_status" >&5
17055 (exit $ac_status); }; }; then
17056 cf_cv_func_vsscanf=vsscanf
17058 echo "$as_me: failed program was:" >&5
17059 cat conftest.$ac_ext >&5
17061 cat >conftest.$ac_ext <<_ACEOF
17062 #line 17062 "configure"
17063 #include "confdefs.h"
17065 #include <stdarg.h>
17072 char *str = "from";
17074 strbuf._flag = _IOREAD;
17075 strbuf._ptr = strbuf._base = (unsigned char *) str;
17076 strbuf._cnt = strlen(str);
17077 strbuf._file = _NFILE;
17078 return (vfscanf(&strbuf, "%d", ap))
17083 rm -f conftest.$ac_objext conftest$ac_exeext
17084 if { (eval echo "$as_me:17084: \"$ac_link\"") >&5
17085 (eval $ac_link) 2>&5
17087 echo "$as_me:17087: \$? = $ac_status" >&5
17088 (exit $ac_status); } &&
17089 { ac_try='test -s conftest$ac_exeext'
17090 { (eval echo "$as_me:17090: \"$ac_try\"") >&5
17091 (eval $ac_try) 2>&5
17093 echo "$as_me:17093: \$? = $ac_status" >&5
17094 (exit $ac_status); }; }; then
17095 cf_cv_func_vsscanf=vfscanf
17097 echo "$as_me: failed program was:" >&5
17098 cat conftest.$ac_ext >&5
17100 cat >conftest.$ac_ext <<_ACEOF
17101 #line 17101 "configure"
17102 #include "confdefs.h"
17104 #include <stdarg.h>
17111 char *str = "from";
17113 strbuf._flag = _IOREAD;
17114 strbuf._ptr = strbuf._base = (unsigned char *) str;
17115 strbuf._cnt = strlen(str);
17116 strbuf._file = _NFILE;
17117 return (_doscan(&strbuf, "%d", ap))
17122 rm -f conftest.$ac_objext conftest$ac_exeext
17123 if { (eval echo "$as_me:17123: \"$ac_link\"") >&5
17124 (eval $ac_link) 2>&5
17126 echo "$as_me:17126: \$? = $ac_status" >&5
17127 (exit $ac_status); } &&
17128 { ac_try='test -s conftest$ac_exeext'
17129 { (eval echo "$as_me:17129: \"$ac_try\"") >&5
17130 (eval $ac_try) 2>&5
17132 echo "$as_me:17132: \$? = $ac_status" >&5
17133 (exit $ac_status); }; }; then
17134 cf_cv_func_vsscanf=_doscan
17136 echo "$as_me: failed program was:" >&5
17137 cat conftest.$ac_ext >&5
17139 cf_cv_func_vsscanf=no
17141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17143 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17145 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17147 echo "$as_me:17147: result: $cf_cv_func_vsscanf" >&5
17148 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
17150 case $cf_cv_func_vsscanf in
17152 cat >>confdefs.h <<\EOF
17153 #define HAVE_VSSCANF 1
17157 cat >>confdefs.h <<\EOF
17158 #define HAVE_VFSCANF 1
17162 cat >>confdefs.h <<\EOF
17163 #define HAVE__DOSCAN 1
17168 echo "$as_me:17168: checking for working mkstemp" >&5
17169 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
17170 if test "${cf_cv_func_mkstemp+set}" = set; then
17171 echo $ECHO_N "(cached) $ECHO_C" >&6
17175 if test "$cross_compiling" = yes; then
17176 cf_cv_func_mkstemp=maybe
17178 cat >conftest.$ac_ext <<_ACEOF
17179 #line 17179 "configure"
17180 #include "confdefs.h"
17182 #include <sys/types.h>
17183 #include <stdlib.h>
17185 #include <string.h>
17186 #include <sys/stat.h>
17189 char *tmpl = "conftestXXXXXX";
17197 for (n = 0; n < 2; ++n) {
17198 strcpy(name[n], tmpl);
17199 if ((fd = mkstemp(name[n])) >= 0) {
17200 if (!strcmp(name[n], tmpl)
17201 || stat(name[n], &sb) != 0
17202 || (sb.st_mode & S_IFMT) != S_IFREG
17203 || (sb.st_mode & 077) != 0) {
17210 && !strcmp(name[0], name[1]))
17212 ${cf_cv_main_return:-return}(result);
17216 rm -f conftest$ac_exeext
17217 if { (eval echo "$as_me:17217: \"$ac_link\"") >&5
17218 (eval $ac_link) 2>&5
17220 echo "$as_me:17220: \$? = $ac_status" >&5
17221 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17222 { (eval echo "$as_me:17222: \"$ac_try\"") >&5
17223 (eval $ac_try) 2>&5
17225 echo "$as_me:17225: \$? = $ac_status" >&5
17226 (exit $ac_status); }; }; then
17227 cf_cv_func_mkstemp=yes
17230 echo "$as_me: program exited with status $ac_status" >&5
17231 echo "$as_me: failed program was:" >&5
17232 cat conftest.$ac_ext >&5
17233 cf_cv_func_mkstemp=no
17236 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17240 echo "$as_me:17240: result: $cf_cv_func_mkstemp" >&5
17241 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
17242 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
17243 echo "$as_me:17243: checking for mkstemp" >&5
17244 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
17245 if test "${ac_cv_func_mkstemp+set}" = set; then
17246 echo $ECHO_N "(cached) $ECHO_C" >&6
17248 cat >conftest.$ac_ext <<_ACEOF
17249 #line 17249 "configure"
17250 #include "confdefs.h"
17251 /* System header to define __stub macros and hopefully few prototypes,
17252 which can conflict with char mkstemp (); below. */
17253 #include <assert.h>
17254 /* Override any gcc2 internal prototype to avoid an error. */
17258 /* We use char because int might match the return type of a gcc2
17259 builtin and then its argument prototype would still apply. */
17266 /* The GNU C library defines this for functions which it implements
17267 to always fail with ENOSYS. Some functions are actually named
17268 something starting with __ and the normal name is an alias. */
17269 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
17272 f = mkstemp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
17279 rm -f conftest.$ac_objext conftest$ac_exeext
17280 if { (eval echo "$as_me:17280: \"$ac_link\"") >&5
17281 (eval $ac_link) 2>&5
17283 echo "$as_me:17283: \$? = $ac_status" >&5
17284 (exit $ac_status); } &&
17285 { ac_try='test -s conftest$ac_exeext'
17286 { (eval echo "$as_me:17286: \"$ac_try\"") >&5
17287 (eval $ac_try) 2>&5
17289 echo "$as_me:17289: \$? = $ac_status" >&5
17290 (exit $ac_status); }; }; then
17291 ac_cv_func_mkstemp=yes
17293 echo "$as_me: failed program was:" >&5
17294 cat conftest.$ac_ext >&5
17295 ac_cv_func_mkstemp=no
17297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17299 echo "$as_me:17299: result: $ac_cv_func_mkstemp" >&5
17300 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
17303 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
17305 cat >>confdefs.h <<\EOF
17306 #define HAVE_MKSTEMP 1
17311 # setup for prototype of fallback for vsscanf()
17313 if test "$cf_cv_func_vsscanf" = vsscanf ; then
17319 if test "x$cross_compiling" = xyes ; then
17320 { echo "$as_me:17320: WARNING: cross compiling: assume setvbuf params not reversed" >&5
17321 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
17323 echo "$as_me:17323: checking whether setvbuf arguments are reversed" >&5
17324 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
17325 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
17326 echo $ECHO_N "(cached) $ECHO_C" >&6
17328 if test "$cross_compiling" = yes; then
17329 { { echo "$as_me:17329: error: cannot run test program while cross compiling" >&5
17330 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
17331 { (exit 1); exit 1; }; }
17333 cat >conftest.$ac_ext <<_ACEOF
17334 #line 17334 "configure"
17335 #include "confdefs.h"
17337 /* If setvbuf has the reversed format, exit 0. */
17341 /* This call has the arguments reversed.
17342 A reversed system may check and see that the address of main
17343 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
17344 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
17345 $ac_main_return(1);
17346 putc('\r', stdout);
17347 $ac_main_return(0); /* Non-reversed systems segv here. */
17350 rm -f conftest$ac_exeext
17351 if { (eval echo "$as_me:17351: \"$ac_link\"") >&5
17352 (eval $ac_link) 2>&5
17354 echo "$as_me:17354: \$? = $ac_status" >&5
17355 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17356 { (eval echo "$as_me:17356: \"$ac_try\"") >&5
17357 (eval $ac_try) 2>&5
17359 echo "$as_me:17359: \$? = $ac_status" >&5
17360 (exit $ac_status); }; }; then
17361 ac_cv_func_setvbuf_reversed=yes
17363 echo "$as_me: program exited with status $ac_status" >&5
17364 echo "$as_me: failed program was:" >&5
17365 cat conftest.$ac_ext >&5
17366 ac_cv_func_setvbuf_reversed=no
17368 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17370 rm -f core core.* *.core
17372 echo "$as_me:17372: result: $ac_cv_func_setvbuf_reversed" >&5
17373 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
17374 if test $ac_cv_func_setvbuf_reversed = yes; then
17376 cat >>confdefs.h <<\EOF
17377 #define SETVBUF_REVERSED 1
17383 echo "$as_me:17383: checking for intptr_t" >&5
17384 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
17385 if test "${ac_cv_type_intptr_t+set}" = set; then
17386 echo $ECHO_N "(cached) $ECHO_C" >&6
17388 cat >conftest.$ac_ext <<_ACEOF
17389 #line 17389 "configure"
17390 #include "confdefs.h"
17391 $ac_includes_default
17395 if ((intptr_t *) 0)
17397 if (sizeof (intptr_t))
17403 rm -f conftest.$ac_objext
17404 if { (eval echo "$as_me:17404: \"$ac_compile\"") >&5
17405 (eval $ac_compile) 2>&5
17407 echo "$as_me:17407: \$? = $ac_status" >&5
17408 (exit $ac_status); } &&
17409 { ac_try='test -s conftest.$ac_objext'
17410 { (eval echo "$as_me:17410: \"$ac_try\"") >&5
17411 (eval $ac_try) 2>&5
17413 echo "$as_me:17413: \$? = $ac_status" >&5
17414 (exit $ac_status); }; }; then
17415 ac_cv_type_intptr_t=yes
17417 echo "$as_me: failed program was:" >&5
17418 cat conftest.$ac_ext >&5
17419 ac_cv_type_intptr_t=no
17421 rm -f conftest.$ac_objext conftest.$ac_ext
17423 echo "$as_me:17423: result: $ac_cv_type_intptr_t" >&5
17424 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
17425 if test $ac_cv_type_intptr_t = yes; then
17429 cat >>confdefs.h <<EOF
17430 #define intptr_t long
17435 echo "$as_me:17435: checking for ssize_t" >&5
17436 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
17437 if test "${ac_cv_type_ssize_t+set}" = set; then
17438 echo $ECHO_N "(cached) $ECHO_C" >&6
17440 cat >conftest.$ac_ext <<_ACEOF
17441 #line 17441 "configure"
17442 #include "confdefs.h"
17443 $ac_includes_default
17449 if (sizeof (ssize_t))
17455 rm -f conftest.$ac_objext
17456 if { (eval echo "$as_me:17456: \"$ac_compile\"") >&5
17457 (eval $ac_compile) 2>&5
17459 echo "$as_me:17459: \$? = $ac_status" >&5
17460 (exit $ac_status); } &&
17461 { ac_try='test -s conftest.$ac_objext'
17462 { (eval echo "$as_me:17462: \"$ac_try\"") >&5
17463 (eval $ac_try) 2>&5
17465 echo "$as_me:17465: \$? = $ac_status" >&5
17466 (exit $ac_status); }; }; then
17467 ac_cv_type_ssize_t=yes
17469 echo "$as_me: failed program was:" >&5
17470 cat conftest.$ac_ext >&5
17471 ac_cv_type_ssize_t=no
17473 rm -f conftest.$ac_objext conftest.$ac_ext
17475 echo "$as_me:17475: result: $ac_cv_type_ssize_t" >&5
17476 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
17477 if test $ac_cv_type_ssize_t = yes; then
17481 cat >>confdefs.h <<EOF
17482 #define ssize_t int
17487 echo "$as_me:17487: checking for type sigaction_t" >&5
17488 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
17489 if test "${cf_cv_type_sigaction+set}" = set; then
17490 echo $ECHO_N "(cached) $ECHO_C" >&6
17493 cat >conftest.$ac_ext <<_ACEOF
17494 #line 17494 "configure"
17495 #include "confdefs.h"
17497 #include <signal.h>
17506 rm -f conftest.$ac_objext
17507 if { (eval echo "$as_me:17507: \"$ac_compile\"") >&5
17508 (eval $ac_compile) 2>&5
17510 echo "$as_me:17510: \$? = $ac_status" >&5
17511 (exit $ac_status); } &&
17512 { ac_try='test -s conftest.$ac_objext'
17513 { (eval echo "$as_me:17513: \"$ac_try\"") >&5
17514 (eval $ac_try) 2>&5
17516 echo "$as_me:17516: \$? = $ac_status" >&5
17517 (exit $ac_status); }; }; then
17518 cf_cv_type_sigaction=yes
17520 echo "$as_me: failed program was:" >&5
17521 cat conftest.$ac_ext >&5
17522 cf_cv_type_sigaction=no
17524 rm -f conftest.$ac_objext conftest.$ac_ext
17527 echo "$as_me:17527: result: $cf_cv_type_sigaction" >&5
17528 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
17529 test "$cf_cv_type_sigaction" = yes &&
17530 cat >>confdefs.h <<\EOF
17531 #define HAVE_TYPE_SIGACTION 1
17534 echo "$as_me:17534: checking declaration of size-change" >&5
17535 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
17536 if test "${cf_cv_sizechange+set}" = set; then
17537 echo $ECHO_N "(cached) $ECHO_C" >&6
17540 cf_cv_sizechange=unknown
17541 cf_save_CPPFLAGS="$CPPFLAGS"
17543 for cf_opts in "" "NEED_PTEM_H"
17546 CPPFLAGS="$cf_save_CPPFLAGS"
17547 test -n "$cf_opts" && CPPFLAGS="$CPPFLAGS -D$cf_opts"
17548 cat >conftest.$ac_ext <<_ACEOF
17549 #line 17549 "configure"
17550 #include "confdefs.h"
17551 #include <sys/types.h>
17552 #ifdef HAVE_TERMIOS_H
17553 #include <termios.h>
17555 #ifdef HAVE_TERMIO_H
17556 #include <termio.h>
17560 /* This is a workaround for SCO: they neglected to define struct winsize in
17561 * termios.h -- it's only in termio.h and ptem.h
17563 #include <sys/stream.h>
17564 #include <sys/ptem.h>
17566 #if !defined(sun) || !defined(HAVE_TERMIOS_H)
17567 #include <sys/ioctl.h>
17575 struct ttysize win; /* FIXME: what system is this? */
17576 int y = win.ts_lines;
17577 int x = win.ts_cols;
17580 struct winsize win;
17581 int y = win.ws_row;
17582 int x = win.ws_col;
17584 no TIOCGSIZE or TIOCGWINSZ
17585 #endif /* TIOCGWINSZ */
17586 #endif /* TIOCGSIZE */
17592 rm -f conftest.$ac_objext
17593 if { (eval echo "$as_me:17593: \"$ac_compile\"") >&5
17594 (eval $ac_compile) 2>&5
17596 echo "$as_me:17596: \$? = $ac_status" >&5
17597 (exit $ac_status); } &&
17598 { ac_try='test -s conftest.$ac_objext'
17599 { (eval echo "$as_me:17599: \"$ac_try\"") >&5
17600 (eval $ac_try) 2>&5
17602 echo "$as_me:17602: \$? = $ac_status" >&5
17603 (exit $ac_status); }; }; then
17604 cf_cv_sizechange=yes
17606 echo "$as_me: failed program was:" >&5
17607 cat conftest.$ac_ext >&5
17608 cf_cv_sizechange=no
17610 rm -f conftest.$ac_objext conftest.$ac_ext
17612 CPPFLAGS="$cf_save_CPPFLAGS"
17613 if test "$cf_cv_sizechange" = yes ; then
17614 echo "size-change succeeded ($cf_opts)" >&5
17615 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
17621 echo "$as_me:17621: result: $cf_cv_sizechange" >&5
17622 echo "${ECHO_T}$cf_cv_sizechange" >&6
17623 if test "$cf_cv_sizechange" != no ; then
17625 cat >>confdefs.h <<\EOF
17626 #define HAVE_SIZECHANGE 1
17629 case $cf_cv_sizechange in
17631 cat >>confdefs.h <<EOF
17632 #define $cf_cv_sizechange 1
17639 echo "$as_me:17639: checking for memmove" >&5
17640 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
17641 if test "${ac_cv_func_memmove+set}" = set; then
17642 echo $ECHO_N "(cached) $ECHO_C" >&6
17644 cat >conftest.$ac_ext <<_ACEOF
17645 #line 17645 "configure"
17646 #include "confdefs.h"
17647 /* System header to define __stub macros and hopefully few prototypes,
17648 which can conflict with char memmove (); below. */
17649 #include <assert.h>
17650 /* Override any gcc2 internal prototype to avoid an error. */
17654 /* We use char because int might match the return type of a gcc2
17655 builtin and then its argument prototype would still apply. */
17662 /* The GNU C library defines this for functions which it implements
17663 to always fail with ENOSYS. Some functions are actually named
17664 something starting with __ and the normal name is an alias. */
17665 #if defined (__stub_memmove) || defined (__stub___memmove)
17668 f = memmove; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
17675 rm -f conftest.$ac_objext conftest$ac_exeext
17676 if { (eval echo "$as_me:17676: \"$ac_link\"") >&5
17677 (eval $ac_link) 2>&5
17679 echo "$as_me:17679: \$? = $ac_status" >&5
17680 (exit $ac_status); } &&
17681 { ac_try='test -s conftest$ac_exeext'
17682 { (eval echo "$as_me:17682: \"$ac_try\"") >&5
17683 (eval $ac_try) 2>&5
17685 echo "$as_me:17685: \$? = $ac_status" >&5
17686 (exit $ac_status); }; }; then
17687 ac_cv_func_memmove=yes
17689 echo "$as_me: failed program was:" >&5
17690 cat conftest.$ac_ext >&5
17691 ac_cv_func_memmove=no
17693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17695 echo "$as_me:17695: result: $ac_cv_func_memmove" >&5
17696 echo "${ECHO_T}$ac_cv_func_memmove" >&6
17697 if test $ac_cv_func_memmove = yes; then
17701 echo "$as_me:17701: checking for bcopy" >&5
17702 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
17703 if test "${ac_cv_func_bcopy+set}" = set; then
17704 echo $ECHO_N "(cached) $ECHO_C" >&6
17706 cat >conftest.$ac_ext <<_ACEOF
17707 #line 17707 "configure"
17708 #include "confdefs.h"
17709 /* System header to define __stub macros and hopefully few prototypes,
17710 which can conflict with char bcopy (); below. */
17711 #include <assert.h>
17712 /* Override any gcc2 internal prototype to avoid an error. */
17716 /* We use char because int might match the return type of a gcc2
17717 builtin and then its argument prototype would still apply. */
17724 /* The GNU C library defines this for functions which it implements
17725 to always fail with ENOSYS. Some functions are actually named
17726 something starting with __ and the normal name is an alias. */
17727 #if defined (__stub_bcopy) || defined (__stub___bcopy)
17730 f = bcopy; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
17737 rm -f conftest.$ac_objext conftest$ac_exeext
17738 if { (eval echo "$as_me:17738: \"$ac_link\"") >&5
17739 (eval $ac_link) 2>&5
17741 echo "$as_me:17741: \$? = $ac_status" >&5
17742 (exit $ac_status); } &&
17743 { ac_try='test -s conftest$ac_exeext'
17744 { (eval echo "$as_me:17744: \"$ac_try\"") >&5
17745 (eval $ac_try) 2>&5
17747 echo "$as_me:17747: \$? = $ac_status" >&5
17748 (exit $ac_status); }; }; then
17749 ac_cv_func_bcopy=yes
17751 echo "$as_me: failed program was:" >&5
17752 cat conftest.$ac_ext >&5
17753 ac_cv_func_bcopy=no
17755 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17757 echo "$as_me:17757: result: $ac_cv_func_bcopy" >&5
17758 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
17759 if test $ac_cv_func_bcopy = yes; then
17761 echo "$as_me:17761: checking if bcopy does overlapping moves" >&5
17762 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
17763 if test "${cf_cv_good_bcopy+set}" = set; then
17764 echo $ECHO_N "(cached) $ECHO_C" >&6
17767 if test "$cross_compiling" = yes; then
17768 cf_cv_good_bcopy=unknown
17770 cat >conftest.$ac_ext <<_ACEOF
17771 #line 17771 "configure"
17772 #include "confdefs.h"
17775 static char data[] = "abcdefghijklmnopqrstuwwxyz";
17777 bcopy(data, temp, sizeof(data));
17778 bcopy(temp+10, temp, 15);
17779 bcopy(temp+5, temp+15, 10);
17780 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
17784 rm -f conftest$ac_exeext
17785 if { (eval echo "$as_me:17785: \"$ac_link\"") >&5
17786 (eval $ac_link) 2>&5
17788 echo "$as_me:17788: \$? = $ac_status" >&5
17789 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17790 { (eval echo "$as_me:17790: \"$ac_try\"") >&5
17791 (eval $ac_try) 2>&5
17793 echo "$as_me:17793: \$? = $ac_status" >&5
17794 (exit $ac_status); }; }; then
17795 cf_cv_good_bcopy=yes
17797 echo "$as_me: program exited with status $ac_status" >&5
17798 echo "$as_me: failed program was:" >&5
17799 cat conftest.$ac_ext >&5
17800 cf_cv_good_bcopy=no
17802 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17806 echo "$as_me:17806: result: $cf_cv_good_bcopy" >&5
17807 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
17810 cf_cv_good_bcopy=no
17813 if test "$cf_cv_good_bcopy" = yes ; then
17815 cat >>confdefs.h <<\EOF
17816 #define USE_OK_BCOPY 1
17821 cat >>confdefs.h <<\EOF
17822 #define USE_MY_MEMMOVE 1
17829 echo "$as_me:17829: checking if poll really works" >&5
17830 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
17831 if test "${cf_cv_working_poll+set}" = set; then
17832 echo $ECHO_N "(cached) $ECHO_C" >&6
17835 if test "$cross_compiling" = yes; then
17836 cf_cv_working_poll=unknown
17838 cat >conftest.$ac_ext <<_ACEOF
17839 #line 17839 "configure"
17840 #include "confdefs.h"
17842 #include <stdlib.h>
17844 #include <unistd.h>
17849 #include <sys/poll.h>
17852 struct pollfd myfds;
17855 /* check for Darwin bug with respect to "devices" */
17856 myfds.fd = open("/dev/null", 1); /* O_WRONLY */
17859 myfds.events = POLLIN;
17862 ret = poll(&myfds, 1, 100);
17864 if (ret < 0 || (myfds.revents & POLLNVAL)) {
17869 fd = open("/dev/tty", 2); /* O_RDWR */
17873 /* also check with standard input */
17875 myfds.events = POLLIN;
17877 ret = poll(&myfds, 1, 100);
17882 ${cf_cv_main_return:-return}(ret < 0);
17885 rm -f conftest$ac_exeext
17886 if { (eval echo "$as_me:17886: \"$ac_link\"") >&5
17887 (eval $ac_link) 2>&5
17889 echo "$as_me:17889: \$? = $ac_status" >&5
17890 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17891 { (eval echo "$as_me:17891: \"$ac_try\"") >&5
17892 (eval $ac_try) 2>&5
17894 echo "$as_me:17894: \$? = $ac_status" >&5
17895 (exit $ac_status); }; }; then
17896 cf_cv_working_poll=yes
17898 echo "$as_me: program exited with status $ac_status" >&5
17899 echo "$as_me: failed program was:" >&5
17900 cat conftest.$ac_ext >&5
17901 cf_cv_working_poll=no
17903 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17906 echo "$as_me:17906: result: $cf_cv_working_poll" >&5
17907 echo "${ECHO_T}$cf_cv_working_poll" >&6
17908 test "$cf_cv_working_poll" = "yes" &&
17909 cat >>confdefs.h <<\EOF
17910 #define HAVE_WORKING_POLL 1
17913 echo "$as_me:17913: checking for va_copy" >&5
17914 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
17915 if test "${cf_cv_have_va_copy+set}" = set; then
17916 echo $ECHO_N "(cached) $ECHO_C" >&6
17919 cat >conftest.$ac_ext <<_ACEOF
17920 #line 17920 "configure"
17921 #include "confdefs.h"
17923 #include <stdarg.h>
17929 static va_list dst;
17930 static va_list src;
17936 rm -f conftest.$ac_objext conftest$ac_exeext
17937 if { (eval echo "$as_me:17937: \"$ac_link\"") >&5
17938 (eval $ac_link) 2>&5
17940 echo "$as_me:17940: \$? = $ac_status" >&5
17941 (exit $ac_status); } &&
17942 { ac_try='test -s conftest$ac_exeext'
17943 { (eval echo "$as_me:17943: \"$ac_try\"") >&5
17944 (eval $ac_try) 2>&5
17946 echo "$as_me:17946: \$? = $ac_status" >&5
17947 (exit $ac_status); }; }; then
17948 cf_cv_have_va_copy=yes
17950 echo "$as_me: failed program was:" >&5
17951 cat conftest.$ac_ext >&5
17952 cf_cv_have_va_copy=no
17954 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17956 echo "$as_me:17956: result: $cf_cv_have_va_copy" >&5
17957 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
17959 test "$cf_cv_have_va_copy" = yes &&
17960 cat >>confdefs.h <<\EOF
17961 #define HAVE_VA_COPY 1
17964 echo "$as_me:17964: checking for __va_copy" >&5
17965 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
17966 if test "${cf_cv_have___va_copy+set}" = set; then
17967 echo $ECHO_N "(cached) $ECHO_C" >&6
17970 cat >conftest.$ac_ext <<_ACEOF
17971 #line 17971 "configure"
17972 #include "confdefs.h"
17974 #include <stdarg.h>
17980 static va_list dst;
17981 static va_list src;
17982 __va_copy(dst, src)
17987 rm -f conftest.$ac_objext conftest$ac_exeext
17988 if { (eval echo "$as_me:17988: \"$ac_link\"") >&5
17989 (eval $ac_link) 2>&5
17991 echo "$as_me:17991: \$? = $ac_status" >&5
17992 (exit $ac_status); } &&
17993 { ac_try='test -s conftest$ac_exeext'
17994 { (eval echo "$as_me:17994: \"$ac_try\"") >&5
17995 (eval $ac_try) 2>&5
17997 echo "$as_me:17997: \$? = $ac_status" >&5
17998 (exit $ac_status); }; }; then
17999 cf_cv_have___va_copy=yes
18001 echo "$as_me: failed program was:" >&5
18002 cat conftest.$ac_ext >&5
18003 cf_cv_have___va_copy=no
18005 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18007 echo "$as_me:18007: result: $cf_cv_have___va_copy" >&5
18008 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
18010 test "$cf_cv_have___va_copy" = yes &&
18011 cat >>confdefs.h <<\EOF
18012 #define HAVE___VA_COPY 1
18015 echo "$as_me:18015: checking for pid_t" >&5
18016 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
18017 if test "${ac_cv_type_pid_t+set}" = set; then
18018 echo $ECHO_N "(cached) $ECHO_C" >&6
18020 cat >conftest.$ac_ext <<_ACEOF
18021 #line 18021 "configure"
18022 #include "confdefs.h"
18023 $ac_includes_default
18029 if (sizeof (pid_t))
18035 rm -f conftest.$ac_objext
18036 if { (eval echo "$as_me:18036: \"$ac_compile\"") >&5
18037 (eval $ac_compile) 2>&5
18039 echo "$as_me:18039: \$? = $ac_status" >&5
18040 (exit $ac_status); } &&
18041 { ac_try='test -s conftest.$ac_objext'
18042 { (eval echo "$as_me:18042: \"$ac_try\"") >&5
18043 (eval $ac_try) 2>&5
18045 echo "$as_me:18045: \$? = $ac_status" >&5
18046 (exit $ac_status); }; }; then
18047 ac_cv_type_pid_t=yes
18049 echo "$as_me: failed program was:" >&5
18050 cat conftest.$ac_ext >&5
18051 ac_cv_type_pid_t=no
18053 rm -f conftest.$ac_objext conftest.$ac_ext
18055 echo "$as_me:18055: result: $ac_cv_type_pid_t" >&5
18056 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
18057 if test $ac_cv_type_pid_t = yes; then
18061 cat >>confdefs.h <<EOF
18067 for ac_header in unistd.h vfork.h
18069 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18070 echo "$as_me:18070: checking for $ac_header" >&5
18071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18073 echo $ECHO_N "(cached) $ECHO_C" >&6
18075 cat >conftest.$ac_ext <<_ACEOF
18076 #line 18076 "configure"
18077 #include "confdefs.h"
18078 #include <$ac_header>
18080 if { (eval echo "$as_me:18080: \"$ac_cpp conftest.$ac_ext\"") >&5
18081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18083 egrep -v '^ *\+' conftest.er1 >conftest.err
18085 cat conftest.err >&5
18086 echo "$as_me:18086: \$? = $ac_status" >&5
18087 (exit $ac_status); } >/dev/null; then
18088 if test -s conftest.err; then
18089 ac_cpp_err=$ac_c_preproc_warn_flag
18096 if test -z "$ac_cpp_err"; then
18097 eval "$as_ac_Header=yes"
18099 echo "$as_me: failed program was:" >&5
18100 cat conftest.$ac_ext >&5
18101 eval "$as_ac_Header=no"
18103 rm -f conftest.err conftest.$ac_ext
18105 echo "$as_me:18105: result: `eval echo '${'$as_ac_Header'}'`" >&5
18106 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18108 cat >>confdefs.h <<EOF
18109 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18115 for ac_func in fork vfork
18117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18118 echo "$as_me:18118: checking for $ac_func" >&5
18119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18120 if eval "test \"\${$as_ac_var+set}\" = set"; then
18121 echo $ECHO_N "(cached) $ECHO_C" >&6
18123 cat >conftest.$ac_ext <<_ACEOF
18124 #line 18124 "configure"
18125 #include "confdefs.h"
18126 /* System header to define __stub macros and hopefully few prototypes,
18127 which can conflict with char $ac_func (); below. */
18128 #include <assert.h>
18129 /* Override any gcc2 internal prototype to avoid an error. */
18133 /* We use char because int might match the return type of a gcc2
18134 builtin and then its argument prototype would still apply. */
18141 /* The GNU C library defines this for functions which it implements
18142 to always fail with ENOSYS. Some functions are actually named
18143 something starting with __ and the normal name is an alias. */
18144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18147 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
18154 rm -f conftest.$ac_objext conftest$ac_exeext
18155 if { (eval echo "$as_me:18155: \"$ac_link\"") >&5
18156 (eval $ac_link) 2>&5
18158 echo "$as_me:18158: \$? = $ac_status" >&5
18159 (exit $ac_status); } &&
18160 { ac_try='test -s conftest$ac_exeext'
18161 { (eval echo "$as_me:18161: \"$ac_try\"") >&5
18162 (eval $ac_try) 2>&5
18164 echo "$as_me:18164: \$? = $ac_status" >&5
18165 (exit $ac_status); }; }; then
18166 eval "$as_ac_var=yes"
18168 echo "$as_me: failed program was:" >&5
18169 cat conftest.$ac_ext >&5
18170 eval "$as_ac_var=no"
18172 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18174 echo "$as_me:18174: result: `eval echo '${'$as_ac_var'}'`" >&5
18175 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18176 if test `eval echo '${'$as_ac_var'}'` = yes; then
18177 cat >>confdefs.h <<EOF
18178 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18184 ac_cv_func_fork_works=$ac_cv_func_fork
18185 if test "x$ac_cv_func_fork" = xyes; then
18186 echo "$as_me:18186: checking for working fork" >&5
18187 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
18188 if test "${ac_cv_func_fork_works+set}" = set; then
18189 echo $ECHO_N "(cached) $ECHO_C" >&6
18191 if test "$cross_compiling" = yes; then
18192 ac_cv_func_fork_works=cross
18194 cat >conftest.$ac_ext <<_ACEOF
18195 /* By Rüdiger Kuhlmann. */
18196 #include <sys/types.h>
18198 # include <unistd.h>
18200 /* Some systems only have a dummy stub for fork() */
18204 $ac_main_return (1);
18205 $ac_main_return (0);
18208 rm -f conftest$ac_exeext
18209 if { (eval echo "$as_me:18209: \"$ac_link\"") >&5
18210 (eval $ac_link) 2>&5
18212 echo "$as_me:18212: \$? = $ac_status" >&5
18213 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18214 { (eval echo "$as_me:18214: \"$ac_try\"") >&5
18215 (eval $ac_try) 2>&5
18217 echo "$as_me:18217: \$? = $ac_status" >&5
18218 (exit $ac_status); }; }; then
18219 ac_cv_func_fork_works=yes
18221 echo "$as_me: program exited with status $ac_status" >&5
18222 echo "$as_me: failed program was:" >&5
18223 cat conftest.$ac_ext >&5
18224 ac_cv_func_fork_works=no
18226 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18229 echo "$as_me:18229: result: $ac_cv_func_fork_works" >&5
18230 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
18233 if test "x$ac_cv_func_fork_works" = xcross; then
18235 *-*-amigaos* | *-*-msdosdjgpp*)
18236 # Override, as these systems have only a dummy fork() stub
18237 ac_cv_func_fork_works=no
18240 ac_cv_func_fork_works=yes
18243 { echo "$as_me:18243: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
18244 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
18246 ac_cv_func_vfork_works=$ac_cv_func_vfork
18247 if test "x$ac_cv_func_vfork" = xyes; then
18248 echo "$as_me:18248: checking for working vfork" >&5
18249 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
18250 if test "${ac_cv_func_vfork_works+set}" = set; then
18251 echo $ECHO_N "(cached) $ECHO_C" >&6
18253 if test "$cross_compiling" = yes; then
18254 ac_cv_func_vfork_works=cross
18256 cat >conftest.$ac_ext <<_ACEOF
18257 #line 18257 "configure"
18258 #include "confdefs.h"
18259 /* Thanks to Paul Eggert for this test. */
18261 #include <sys/types.h>
18262 #include <sys/stat.h>
18264 # include <unistd.h>
18267 # include <vfork.h>
18269 /* On some sparc systems, changes by the child to local and incoming
18270 argument registers are propagated back to the parent. The compiler
18271 is told about this with #include <vfork.h>, but some compilers
18272 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
18273 static variable whose address is put into a register that is
18274 clobbered by the vfork. */
18277 sparc_address_test (int arg)
18279 sparc_address_test (arg) int arg;
18282 static pid_t child;
18300 pid_t parent = getpid ();
18303 sparc_address_test ();
18308 /* Here is another test for sparc vfork register problems. This
18309 test uses lots of local variables, at least as many local
18310 variables as main has allocated so far including compiler
18311 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
18312 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
18313 reuse the register of parent for one of the local variables,
18314 since it will think that parent can't possibly be used any more
18315 in this routine. Assigning to the local variable will thus
18316 munge parent in the parent process. */
18318 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18319 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18320 /* Convince the compiler that p..p7 are live; otherwise, it might
18321 use the same hardware register for all 8 local variables. */
18322 if (p != p1 || p != p2 || p != p3 || p != p4
18323 || p != p5 || p != p6 || p != p7)
18326 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18327 from child file descriptors. If the child closes a descriptor
18328 before it execs or exits, this munges the parent's descriptor
18329 as well. Test for this by closing stdout in the child. */
18330 _exit(close(fileno(stdout)) != 0);
18335 while (wait(&status) != child)
18338 /* Was there some problem with vforking? */
18341 /* Did the child fail? (This shouldn't happen.) */
18344 /* Did the vfork/compiler bug occur? */
18345 || parent != getpid()
18347 /* Did the file descriptor bug occur? */
18348 || fstat(fileno(stdout), &st) != 0
18353 rm -f conftest$ac_exeext
18354 if { (eval echo "$as_me:18354: \"$ac_link\"") >&5
18355 (eval $ac_link) 2>&5
18357 echo "$as_me:18357: \$? = $ac_status" >&5
18358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18359 { (eval echo "$as_me:18359: \"$ac_try\"") >&5
18360 (eval $ac_try) 2>&5
18362 echo "$as_me:18362: \$? = $ac_status" >&5
18363 (exit $ac_status); }; }; then
18364 ac_cv_func_vfork_works=yes
18366 echo "$as_me: program exited with status $ac_status" >&5
18367 echo "$as_me: failed program was:" >&5
18368 cat conftest.$ac_ext >&5
18369 ac_cv_func_vfork_works=no
18371 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18374 echo "$as_me:18374: result: $ac_cv_func_vfork_works" >&5
18375 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
18378 if test "x$ac_cv_func_fork_works" = xcross; then
18379 ac_cv_func_vfork_works=ac_cv_func_vfork
18380 { echo "$as_me:18380: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
18381 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
18384 if test "x$ac_cv_func_vfork_works" = xyes; then
18386 cat >>confdefs.h <<\EOF
18387 #define HAVE_WORKING_VFORK 1
18392 cat >>confdefs.h <<\EOF
18397 if test "x$ac_cv_func_fork_works" = xyes; then
18399 cat >>confdefs.h <<\EOF
18400 #define HAVE_WORKING_FORK 1
18405 # special check for test/ditto.c
18407 echo "$as_me:18407: checking for openpty in -lutil" >&5
18408 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
18409 if test "${ac_cv_lib_util_openpty+set}" = set; then
18410 echo $ECHO_N "(cached) $ECHO_C" >&6
18412 ac_check_lib_save_LIBS=$LIBS
18413 LIBS="-lutil $LIBS"
18414 cat >conftest.$ac_ext <<_ACEOF
18415 #line 18415 "configure"
18416 #include "confdefs.h"
18418 /* Override any gcc2 internal prototype to avoid an error. */
18422 /* We use char because int might match the return type of a gcc2
18423 builtin and then its argument prototype would still apply. */
18433 rm -f conftest.$ac_objext conftest$ac_exeext
18434 if { (eval echo "$as_me:18434: \"$ac_link\"") >&5
18435 (eval $ac_link) 2>&5
18437 echo "$as_me:18437: \$? = $ac_status" >&5
18438 (exit $ac_status); } &&
18439 { ac_try='test -s conftest$ac_exeext'
18440 { (eval echo "$as_me:18440: \"$ac_try\"") >&5
18441 (eval $ac_try) 2>&5
18443 echo "$as_me:18443: \$? = $ac_status" >&5
18444 (exit $ac_status); }; }; then
18445 ac_cv_lib_util_openpty=yes
18447 echo "$as_me: failed program was:" >&5
18448 cat conftest.$ac_ext >&5
18449 ac_cv_lib_util_openpty=no
18451 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18452 LIBS=$ac_check_lib_save_LIBS
18454 echo "$as_me:18454: result: $ac_cv_lib_util_openpty" >&5
18455 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
18456 if test $ac_cv_lib_util_openpty = yes; then
18462 echo "$as_me:18462: checking for openpty header" >&5
18463 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
18464 if test "${cf_cv_func_openpty+set}" = set; then
18465 echo $ECHO_N "(cached) $ECHO_C" >&6
18468 cf_save_LIBS="$LIBS"
18469 test $cf_cv_lib_util = yes &&
18470 cf_add_libs="-lutil"
18471 # Filter out duplicates - this happens with badly-designed ".pc" files...
18472 for cf_add_1lib in $LIBS
18474 for cf_add_2lib in $cf_add_libs
18476 if test "x$cf_add_1lib" = "x$cf_add_2lib"
18482 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
18484 LIBS="$cf_add_libs"
18486 for cf_header in pty.h libutil.h util.h
18488 cat >conftest.$ac_ext <<_ACEOF
18489 #line 18489 "configure"
18490 #include "confdefs.h"
18492 #include <$cf_header>
18498 int x = openpty((int *)0, (int *)0, (char *)0,
18499 (struct termios *)0, (struct winsize *)0);
18505 rm -f conftest.$ac_objext conftest$ac_exeext
18506 if { (eval echo "$as_me:18506: \"$ac_link\"") >&5
18507 (eval $ac_link) 2>&5
18509 echo "$as_me:18509: \$? = $ac_status" >&5
18510 (exit $ac_status); } &&
18511 { ac_try='test -s conftest$ac_exeext'
18512 { (eval echo "$as_me:18512: \"$ac_try\"") >&5
18513 (eval $ac_try) 2>&5
18515 echo "$as_me:18515: \$? = $ac_status" >&5
18516 (exit $ac_status); }; }; then
18518 cf_cv_func_openpty=$cf_header
18522 echo "$as_me: failed program was:" >&5
18523 cat conftest.$ac_ext >&5
18525 cf_cv_func_openpty=no
18528 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18530 LIBS="$cf_save_LIBS"
18533 echo "$as_me:18533: result: $cf_cv_func_openpty" >&5
18534 echo "${ECHO_T}$cf_cv_func_openpty" >&6
18536 if test "$cf_cv_func_openpty" != no ; then
18538 cat >>confdefs.h <<EOF
18539 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
18542 cat >>confdefs.h <<\EOF
18543 #define USE_XTERM_PTY 1
18546 if test "x$cf_cv_lib_util" = xyes ; then
18548 cf_add_libs="-lutil"
18549 # Filter out duplicates - this happens with badly-designed ".pc" files...
18550 for cf_add_1lib in $TEST_LIBS
18552 for cf_add_2lib in $cf_add_libs
18554 if test "x$cf_add_1lib" = "x$cf_add_2lib"
18560 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
18562 TEST_LIBS="$cf_add_libs"
18567 if test "$with_hashed_db" != no ; then
18569 cat >>confdefs.h <<\EOF
18570 #define USE_HASHED_DB 1
18573 case $with_hashed_db in
18577 if test -d "$with_hashed_db" ; then
18579 if test -n "$with_hashed_db/include" ; then
18580 for cf_add_incdir in $with_hashed_db/include
18582 while test $cf_add_incdir != /usr/include
18584 if test -d $cf_add_incdir
18587 if test -n "$CFLAGS$CPPFLAGS" ; then
18588 # a loop is needed to ensure we can add subdirs of existing dirs
18589 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
18590 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
18591 cf_have_incdir=yes; break
18596 if test "$cf_have_incdir" = no ; then
18597 if test "$cf_add_incdir" = /usr/local/include ; then
18598 if test "$GCC" = yes
18600 cf_save_CPPFLAGS=$CPPFLAGS
18601 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
18602 cat >conftest.$ac_ext <<_ACEOF
18603 #line 18603 "configure"
18604 #include "confdefs.h"
18614 rm -f conftest.$ac_objext
18615 if { (eval echo "$as_me:18615: \"$ac_compile\"") >&5
18616 (eval $ac_compile) 2>&5
18618 echo "$as_me:18618: \$? = $ac_status" >&5
18619 (exit $ac_status); } &&
18620 { ac_try='test -s conftest.$ac_objext'
18621 { (eval echo "$as_me:18621: \"$ac_try\"") >&5
18622 (eval $ac_try) 2>&5
18624 echo "$as_me:18624: \$? = $ac_status" >&5
18625 (exit $ac_status); }; }; then
18628 echo "$as_me: failed program was:" >&5
18629 cat conftest.$ac_ext >&5
18632 rm -f conftest.$ac_objext conftest.$ac_ext
18633 CPPFLAGS=$cf_save_CPPFLAGS
18638 if test "$cf_have_incdir" = no ; then
18639 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
18641 echo "${as_me:-configure}:18641: testing adding $cf_add_incdir to include-path ..." 1>&5
18643 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
18645 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
18646 test "$cf_top_incdir" = "$cf_add_incdir" && break
18647 cf_add_incdir="$cf_top_incdir"
18658 if test -n "$with_hashed_db/lib" ; then
18659 for cf_add_libdir in $with_hashed_db/lib
18661 if test $cf_add_libdir = /usr/lib ; then
18663 elif test -d $cf_add_libdir
18666 if test -n "$LDFLAGS$LIBS" ; then
18667 # a loop is needed to ensure we can add subdirs of existing dirs
18668 for cf_test_libdir in $LDFLAGS $LIBS ; do
18669 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
18670 cf_have_libdir=yes; break
18674 if test "$cf_have_libdir" = no ; then
18675 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
18677 echo "${as_me:-configure}:18677: testing adding $cf_add_libdir to library-path ..." 1>&5
18679 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
18686 case "$with_hashed_db" in
18688 { echo "$as_me:18688: WARNING: no such directory $with_hashed_db" >&5
18689 echo "$as_me: WARNING: no such directory $with_hashed_db" >&2;}
18695 test "x$prefix" != "xNONE" && \
18696 test -d "$prefix" && \
18698 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
18699 test -d $prefix/include && cf_search="$cf_search $prefix/include"
18700 test -d $prefix/include/$with_hashed_db && cf_search="$cf_search $prefix/include/$with_hashed_db"
18701 test -d $prefix/include/$with_hashed_db/include && cf_search="$cf_search $prefix/include/$with_hashed_db/include"
18702 test -d $prefix/$with_hashed_db/include && cf_search="$cf_search $prefix/$with_hashed_db/include"
18703 test -d $prefix/$with_hashed_db/include/$with_hashed_db && cf_search="$cf_search $prefix/$with_hashed_db/include/$with_hashed_db"
18706 for cf_subdir_prefix in \
18715 test "x$cf_subdir_prefix" != "x$prefix" && \
18716 test -d "$cf_subdir_prefix" && \
18717 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
18718 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
18719 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
18720 test -d $cf_subdir_prefix/include/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db"
18721 test -d $cf_subdir_prefix/include/$with_hashed_db/include && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db/include"
18722 test -d $cf_subdir_prefix/$with_hashed_db/include && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/include"
18723 test -d $cf_subdir_prefix/$with_hashed_db/include/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/include/$with_hashed_db"
18728 for cf_item in $cf_search
18731 (*/$with_hashed_db)
18733 if test -n "$cf_item" ; then
18734 for cf_add_incdir in $cf_item
18736 while test $cf_add_incdir != /usr/include
18738 if test -d $cf_add_incdir
18741 if test -n "$CFLAGS$CPPFLAGS" ; then
18742 # a loop is needed to ensure we can add subdirs of existing dirs
18743 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
18744 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
18745 cf_have_incdir=yes; break
18750 if test "$cf_have_incdir" = no ; then
18751 if test "$cf_add_incdir" = /usr/local/include ; then
18752 if test "$GCC" = yes
18754 cf_save_CPPFLAGS=$CPPFLAGS
18755 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
18756 cat >conftest.$ac_ext <<_ACEOF
18757 #line 18757 "configure"
18758 #include "confdefs.h"
18768 rm -f conftest.$ac_objext
18769 if { (eval echo "$as_me:18769: \"$ac_compile\"") >&5
18770 (eval $ac_compile) 2>&5
18772 echo "$as_me:18772: \$? = $ac_status" >&5
18773 (exit $ac_status); } &&
18774 { ac_try='test -s conftest.$ac_objext'
18775 { (eval echo "$as_me:18775: \"$ac_try\"") >&5
18776 (eval $ac_try) 2>&5
18778 echo "$as_me:18778: \$? = $ac_status" >&5
18779 (exit $ac_status); }; }; then
18782 echo "$as_me: failed program was:" >&5
18783 cat conftest.$ac_ext >&5
18786 rm -f conftest.$ac_objext conftest.$ac_ext
18787 CPPFLAGS=$cf_save_CPPFLAGS
18792 if test "$cf_have_incdir" = no ; then
18793 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
18795 echo "${as_me:-configure}:18795: testing adding $cf_add_incdir to include-path ..." 1>&5
18797 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
18799 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
18800 test "$cf_top_incdir" = "$cf_add_incdir" && break
18801 cf_add_incdir="$cf_top_incdir"
18818 test "x$prefix" != "xNONE" && \
18819 test -d "$prefix" && \
18821 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
18822 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
18823 test -d $prefix/lib/$with_hashed_db && cf_search="$cf_search $prefix/lib/$with_hashed_db"
18824 test -d $prefix/lib/$with_hashed_db/lib && cf_search="$cf_search $prefix/lib/$with_hashed_db/lib"
18825 test -d $prefix/$with_hashed_db/lib && cf_search="$cf_search $prefix/$with_hashed_db/lib"
18826 test -d $prefix/$with_hashed_db/lib/$with_hashed_db && cf_search="$cf_search $prefix/$with_hashed_db/lib/$with_hashed_db"
18829 for cf_subdir_prefix in \
18838 test "x$cf_subdir_prefix" != "x$prefix" && \
18839 test -d "$cf_subdir_prefix" && \
18840 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
18841 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
18842 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
18843 test -d $cf_subdir_prefix/lib/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db"
18844 test -d $cf_subdir_prefix/lib/$with_hashed_db/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db/lib"
18845 test -d $cf_subdir_prefix/$with_hashed_db/lib && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/lib"
18846 test -d $cf_subdir_prefix/$with_hashed_db/lib/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/lib/$with_hashed_db"
18851 for cf_item in $cf_search
18854 (*/$with_hashed_db)
18856 if test -n "$cf_item" ; then
18857 for cf_add_libdir in $cf_item
18859 if test $cf_add_libdir = /usr/lib ; then
18861 elif test -d $cf_add_libdir
18864 if test -n "$LDFLAGS$LIBS" ; then
18865 # a loop is needed to ensure we can add subdirs of existing dirs
18866 for cf_test_libdir in $LDFLAGS $LIBS ; do
18867 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
18868 cf_have_libdir=yes; break
18872 if test "$cf_have_libdir" = no ; then
18873 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
18875 echo "${as_me:-configure}:18875: testing adding $cf_add_libdir to library-path ..." 1>&5
18877 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
18892 echo "$as_me:18892: checking for db.h" >&5
18893 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
18894 if test "${ac_cv_header_db_h+set}" = set; then
18895 echo $ECHO_N "(cached) $ECHO_C" >&6
18897 cat >conftest.$ac_ext <<_ACEOF
18898 #line 18898 "configure"
18899 #include "confdefs.h"
18902 if { (eval echo "$as_me:18902: \"$ac_cpp conftest.$ac_ext\"") >&5
18903 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18905 egrep -v '^ *\+' conftest.er1 >conftest.err
18907 cat conftest.err >&5
18908 echo "$as_me:18908: \$? = $ac_status" >&5
18909 (exit $ac_status); } >/dev/null; then
18910 if test -s conftest.err; then
18911 ac_cpp_err=$ac_c_preproc_warn_flag
18918 if test -z "$ac_cpp_err"; then
18919 ac_cv_header_db_h=yes
18921 echo "$as_me: failed program was:" >&5
18922 cat conftest.$ac_ext >&5
18923 ac_cv_header_db_h=no
18925 rm -f conftest.err conftest.$ac_ext
18927 echo "$as_me:18927: result: $ac_cv_header_db_h" >&5
18928 echo "${ECHO_T}$ac_cv_header_db_h" >&6
18929 if test $ac_cv_header_db_h = yes; then
18931 echo "$as_me:18931: checking for version of db" >&5
18932 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
18933 if test "${cf_cv_hashed_db_version+set}" = set; then
18934 echo $ECHO_N "(cached) $ECHO_C" >&6
18937 cf_cv_hashed_db_version=unknown
18939 for cf_db_version in 1 2 3 4 5 6
18942 echo "${as_me:-configure}:18942: testing checking for db version $cf_db_version ..." 1>&5
18944 cat >conftest.$ac_ext <<_ACEOF
18945 #line 18945 "configure"
18946 #include "confdefs.h"
18948 $ac_includes_default
18951 #ifdef DB_VERSION_MAJOR
18952 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
18953 #if $cf_db_version == DB_VERSION_MAJOR
18959 #if $cf_db_version == 1
18960 /* ok: assuming this is DB 1.8.5 */
18974 rm -f conftest.$ac_objext
18975 if { (eval echo "$as_me:18975: \"$ac_compile\"") >&5
18976 (eval $ac_compile) 2>&5
18978 echo "$as_me:18978: \$? = $ac_status" >&5
18979 (exit $ac_status); } &&
18980 { ac_try='test -s conftest.$ac_objext'
18981 { (eval echo "$as_me:18981: \"$ac_try\"") >&5
18982 (eval $ac_try) 2>&5
18984 echo "$as_me:18984: \$? = $ac_status" >&5
18985 (exit $ac_status); }; }; then
18987 cf_cv_hashed_db_version=$cf_db_version
18991 echo "$as_me: failed program was:" >&5
18992 cat conftest.$ac_ext >&5
18994 rm -f conftest.$ac_objext conftest.$ac_ext
18998 echo "$as_me:18998: result: $cf_cv_hashed_db_version" >&5
18999 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
19001 if test "$cf_cv_hashed_db_version" = unknown ; then
19002 { { echo "$as_me:19002: error: Cannot determine version of db" >&5
19003 echo "$as_me: error: Cannot determine version of db" >&2;}
19004 { (exit 1); exit 1; }; }
19007 echo "$as_me:19007: checking for db libraries" >&5
19008 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
19009 if test "${cf_cv_hashed_db_libs+set}" = set; then
19010 echo $ECHO_N "(cached) $ECHO_C" >&6
19013 cf_cv_hashed_db_libs=unknown
19014 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
19016 cf_save_libs="$LIBS"
19017 if test -n "$cf_db_libs"; then
19019 cf_add_libs="-l$cf_db_libs"
19020 # Filter out duplicates - this happens with badly-designed ".pc" files...
19021 for cf_add_1lib in $LIBS
19023 for cf_add_2lib in $cf_add_libs
19025 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19031 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19033 LIBS="$cf_add_libs"
19037 echo "${as_me:-configure}:19037: testing checking for library "$cf_db_libs" ..." 1>&5
19039 cat >conftest.$ac_ext <<_ACEOF
19040 #line 19040 "configure"
19041 #include "confdefs.h"
19043 $ac_includes_default
19050 char *path = "/tmp/foo";
19051 #ifdef DB_VERSION_MAJOR
19052 #if DB_VERSION_MAJOR >= 4
19054 db_create(&result, NULL, 0);
19055 result->open(result,
19062 #elif DB_VERSION_MAJOR >= 3
19064 db_create(&result, NULL, 0);
19065 result->open(result,
19071 #elif DB_VERSION_MAJOR >= 2
19080 #endif /* DB_VERSION_MAJOR */
19082 DB *result = dbopen(path,
19088 ${cf_cv_main_return:-return}(result != 0)
19094 rm -f conftest.$ac_objext conftest$ac_exeext
19095 if { (eval echo "$as_me:19095: \"$ac_link\"") >&5
19096 (eval $ac_link) 2>&5
19098 echo "$as_me:19098: \$? = $ac_status" >&5
19099 (exit $ac_status); } &&
19100 { ac_try='test -s conftest$ac_exeext'
19101 { (eval echo "$as_me:19101: \"$ac_try\"") >&5
19102 (eval $ac_try) 2>&5
19104 echo "$as_me:19104: \$? = $ac_status" >&5
19105 (exit $ac_status); }; }; then
19107 if test -n "$cf_db_libs" ; then
19108 cf_cv_hashed_db_libs=$cf_db_libs
19110 cf_cv_hashed_db_libs=default
19112 LIBS="$cf_save_libs"
19116 echo "$as_me: failed program was:" >&5
19117 cat conftest.$ac_ext >&5
19119 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19120 LIBS="$cf_save_libs"
19124 echo "$as_me:19124: result: $cf_cv_hashed_db_libs" >&5
19125 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
19127 if test "$cf_cv_hashed_db_libs" = unknown ; then
19128 { { echo "$as_me:19128: error: Cannot determine library for db" >&5
19129 echo "$as_me: error: Cannot determine library for db" >&2;}
19130 { (exit 1); exit 1; }; }
19131 elif test "$cf_cv_hashed_db_libs" != default ; then
19133 cf_add_libs="-l$cf_cv_hashed_db_libs"
19134 # Filter out duplicates - this happens with badly-designed ".pc" files...
19135 for cf_add_1lib in $LIBS
19137 for cf_add_2lib in $cf_add_libs
19139 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19145 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19147 LIBS="$cf_add_libs"
19154 { { echo "$as_me:19154: error: Cannot find db.h" >&5
19155 echo "$as_me: error: Cannot find db.h" >&2;}
19156 { (exit 1); exit 1; }; }
19162 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
19163 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
19164 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
19167 # Just in case, check if the C compiler has a bool type.
19169 echo "$as_me:19169: checking if we should include stdbool.h" >&5
19170 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
19172 if test "${cf_cv_header_stdbool_h+set}" = set; then
19173 echo $ECHO_N "(cached) $ECHO_C" >&6
19176 cat >conftest.$ac_ext <<_ACEOF
19177 #line 19177 "configure"
19178 #include "confdefs.h"
19188 rm -f conftest.$ac_objext
19189 if { (eval echo "$as_me:19189: \"$ac_compile\"") >&5
19190 (eval $ac_compile) 2>&5
19192 echo "$as_me:19192: \$? = $ac_status" >&5
19193 (exit $ac_status); } &&
19194 { ac_try='test -s conftest.$ac_objext'
19195 { (eval echo "$as_me:19195: \"$ac_try\"") >&5
19196 (eval $ac_try) 2>&5
19198 echo "$as_me:19198: \$? = $ac_status" >&5
19199 (exit $ac_status); }; }; then
19200 cf_cv_header_stdbool_h=0
19202 echo "$as_me: failed program was:" >&5
19203 cat conftest.$ac_ext >&5
19204 cat >conftest.$ac_ext <<_ACEOF
19205 #line 19205 "configure"
19206 #include "confdefs.h"
19209 #include <stdbool.h>
19220 rm -f conftest.$ac_objext
19221 if { (eval echo "$as_me:19221: \"$ac_compile\"") >&5
19222 (eval $ac_compile) 2>&5
19224 echo "$as_me:19224: \$? = $ac_status" >&5
19225 (exit $ac_status); } &&
19226 { ac_try='test -s conftest.$ac_objext'
19227 { (eval echo "$as_me:19227: \"$ac_try\"") >&5
19228 (eval $ac_try) 2>&5
19230 echo "$as_me:19230: \$? = $ac_status" >&5
19231 (exit $ac_status); }; }; then
19232 cf_cv_header_stdbool_h=1
19234 echo "$as_me: failed program was:" >&5
19235 cat conftest.$ac_ext >&5
19236 cf_cv_header_stdbool_h=0
19238 rm -f conftest.$ac_objext conftest.$ac_ext
19240 rm -f conftest.$ac_objext conftest.$ac_ext
19243 if test "$cf_cv_header_stdbool_h" = 1
19244 then echo "$as_me:19244: result: yes" >&5
19245 echo "${ECHO_T}yes" >&6
19246 else echo "$as_me:19246: result: no" >&5
19247 echo "${ECHO_T}no" >&6
19250 echo "$as_me:19250: checking for builtin bool type" >&5
19251 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
19253 if test "${cf_cv_cc_bool_type+set}" = set; then
19254 echo $ECHO_N "(cached) $ECHO_C" >&6
19257 cat >conftest.$ac_ext <<_ACEOF
19258 #line 19258 "configure"
19259 #include "confdefs.h"
19262 #include <sys/types.h>
19272 rm -f conftest.$ac_objext
19273 if { (eval echo "$as_me:19273: \"$ac_compile\"") >&5
19274 (eval $ac_compile) 2>&5
19276 echo "$as_me:19276: \$? = $ac_status" >&5
19277 (exit $ac_status); } &&
19278 { ac_try='test -s conftest.$ac_objext'
19279 { (eval echo "$as_me:19279: \"$ac_try\"") >&5
19280 (eval $ac_try) 2>&5
19282 echo "$as_me:19282: \$? = $ac_status" >&5
19283 (exit $ac_status); }; }; then
19284 cf_cv_cc_bool_type=1
19286 echo "$as_me: failed program was:" >&5
19287 cat conftest.$ac_ext >&5
19288 cf_cv_cc_bool_type=0
19290 rm -f conftest.$ac_objext conftest.$ac_ext
19294 if test "$cf_cv_cc_bool_type" = 1
19295 then echo "$as_me:19295: result: yes" >&5
19296 echo "${ECHO_T}yes" >&6
19297 else echo "$as_me:19297: result: no" >&5
19298 echo "${ECHO_T}no" >&6
19301 # Check for C++ compiler characteristics (and ensure that it's there!)
19302 if test -n "$CXX" ; then
19304 ac_cpp='$CXXCPP $CPPFLAGS'
19305 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19306 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19307 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19308 ac_main_return=return
19310 if test -n "$GXX" ; then
19311 case $cf_cv_system_name in
19313 cf_stdcpp_libname=stdcpp
19316 cf_stdcpp_libname=stdc++
19319 echo "$as_me:19319: checking for library $cf_stdcpp_libname" >&5
19320 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
19321 if test "${cf_cv_libstdcpp+set}" = set; then
19322 echo $ECHO_N "(cached) $ECHO_C" >&6
19327 cf_add_libs="-l$cf_stdcpp_libname"
19328 # Filter out duplicates - this happens with badly-designed ".pc" files...
19329 for cf_add_1lib in $LIBS
19331 for cf_add_2lib in $cf_add_libs
19333 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19339 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19341 LIBS="$cf_add_libs"
19343 cat >conftest.$ac_ext <<_ACEOF
19344 #line 19344 "configure"
19345 #include "confdefs.h"
19347 #include <strstream.h>
19353 strstreambuf foo(buf, sizeof(buf))
19359 rm -f conftest.$ac_objext conftest$ac_exeext
19360 if { (eval echo "$as_me:19360: \"$ac_link\"") >&5
19361 (eval $ac_link) 2>&5
19363 echo "$as_me:19363: \$? = $ac_status" >&5
19364 (exit $ac_status); } &&
19365 { ac_try='test -s conftest$ac_exeext'
19366 { (eval echo "$as_me:19366: \"$ac_try\"") >&5
19367 (eval $ac_try) 2>&5
19369 echo "$as_me:19369: \$? = $ac_status" >&5
19370 (exit $ac_status); }; }; then
19371 cf_cv_libstdcpp=yes
19373 echo "$as_me: failed program was:" >&5
19374 cat conftest.$ac_ext >&5
19377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19381 echo "$as_me:19381: result: $cf_cv_libstdcpp" >&5
19382 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
19383 test "$cf_cv_libstdcpp" = yes &&
19384 cf_add_libs="-l$cf_stdcpp_libname"
19385 # Filter out duplicates - this happens with badly-designed ".pc" files...
19386 for cf_add_1lib in $CXXLIBS
19388 for cf_add_2lib in $cf_add_libs
19390 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19396 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19398 CXXLIBS="$cf_add_libs"
19402 echo "$as_me:19402: checking whether $CXX understands -c and -o together" >&5
19403 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
19404 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
19405 echo $ECHO_N "(cached) $ECHO_C" >&6
19408 cat > conftest.$ac_ext <<CF_EOF
19412 ${cf_cv_main_return:-return}(0);
19415 # We do the test twice because some compilers refuse to overwrite an
19416 # existing .o file with -o, though they will create one.
19417 ac_try='$CXX -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19418 if { (eval echo "$as_me:19418: \"$ac_try\"") >&5
19419 (eval $ac_try) 2>&5
19421 echo "$as_me:19421: \$? = $ac_status" >&5
19422 (exit $ac_status); } &&
19423 test -f conftest2.$ac_objext && { (eval echo "$as_me:19423: \"$ac_try\"") >&5
19424 (eval $ac_try) 2>&5
19426 echo "$as_me:19426: \$? = $ac_status" >&5
19427 (exit $ac_status); };
19429 eval cf_cv_prog_CXX_c_o=yes
19431 eval cf_cv_prog_CXX_c_o=no
19436 if test $cf_cv_prog_CXX_c_o = yes; then
19437 echo "$as_me:19437: result: yes" >&5
19438 echo "${ECHO_T}yes" >&6
19440 echo "$as_me:19440: result: no" >&5
19441 echo "${ECHO_T}no" >&6
19444 case $GXX_VERSION in
19450 cf_cxx_library=unknown
19451 case $cf_cv_system_name in
19459 if test "$GXX" = yes; then
19460 echo "$as_me:19460: checking for lib$cf_gpp_libname" >&5
19461 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
19464 cf_add_libs="-l$cf_gpp_libname"
19465 # Filter out duplicates - this happens with badly-designed ".pc" files...
19466 for cf_add_1lib in $LIBS
19468 for cf_add_2lib in $cf_add_libs
19470 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19476 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19478 LIBS="$cf_add_libs"
19480 cat >conftest.$ac_ext <<_ACEOF
19481 #line 19481 "configure"
19482 #include "confdefs.h"
19484 #include <$cf_gpp_libname/builtin.h>
19489 two_arg_error_handler_t foo2 = lib_error_handler
19494 rm -f conftest.$ac_objext conftest$ac_exeext
19495 if { (eval echo "$as_me:19495: \"$ac_link\"") >&5
19496 (eval $ac_link) 2>&5
19498 echo "$as_me:19498: \$? = $ac_status" >&5
19499 (exit $ac_status); } &&
19500 { ac_try='test -s conftest$ac_exeext'
19501 { (eval echo "$as_me:19501: \"$ac_try\"") >&5
19502 (eval $ac_try) 2>&5
19504 echo "$as_me:19504: \$? = $ac_status" >&5
19505 (exit $ac_status); }; }; then
19508 cf_add_libs="-l$cf_gpp_libname"
19509 # Filter out duplicates - this happens with badly-designed ".pc" files...
19510 for cf_add_1lib in $CXXLIBS
19512 for cf_add_2lib in $cf_add_libs
19514 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19520 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19522 CXXLIBS="$cf_add_libs"
19524 if test "$cf_gpp_libname" = cpp ; then
19526 cat >>confdefs.h <<\EOF
19527 #define HAVE_GPP_BUILTIN_H 1
19532 cat >>confdefs.h <<\EOF
19533 #define HAVE_GXX_BUILTIN_H 1
19538 echo "$as_me: failed program was:" >&5
19539 cat conftest.$ac_ext >&5
19540 cat >conftest.$ac_ext <<_ACEOF
19541 #line 19541 "configure"
19542 #include "confdefs.h"
19544 #include <builtin.h>
19549 two_arg_error_handler_t foo2 = lib_error_handler
19554 rm -f conftest.$ac_objext conftest$ac_exeext
19555 if { (eval echo "$as_me:19555: \"$ac_link\"") >&5
19556 (eval $ac_link) 2>&5
19558 echo "$as_me:19558: \$? = $ac_status" >&5
19559 (exit $ac_status); } &&
19560 { ac_try='test -s conftest$ac_exeext'
19561 { (eval echo "$as_me:19561: \"$ac_try\"") >&5
19562 (eval $ac_try) 2>&5
19564 echo "$as_me:19564: \$? = $ac_status" >&5
19565 (exit $ac_status); }; }; then
19568 cf_add_libs="-l$cf_gpp_libname"
19569 # Filter out duplicates - this happens with badly-designed ".pc" files...
19570 for cf_add_1lib in $CXXLIBS
19572 for cf_add_2lib in $cf_add_libs
19574 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19580 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19582 CXXLIBS="$cf_add_libs"
19584 cat >>confdefs.h <<\EOF
19585 #define HAVE_BUILTIN_H 1
19589 echo "$as_me: failed program was:" >&5
19590 cat conftest.$ac_ext >&5
19593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19595 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19597 echo "$as_me:19597: result: $cf_cxx_library" >&5
19598 echo "${ECHO_T}$cf_cxx_library" >&6
19608 ac_cpp='$CXXCPP $CPPFLAGS'
19609 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19610 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19611 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19612 ac_main_return=return
19613 echo "$as_me:19613: checking how to run the C++ preprocessor" >&5
19614 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
19615 if test -z "$CXXCPP"; then
19616 if test "${ac_cv_prog_CXXCPP+set}" = set; then
19617 echo $ECHO_N "(cached) $ECHO_C" >&6
19619 # Double quotes because CXXCPP needs to be expanded
19620 for CXXCPP in "$CXX -E" "/lib/cpp"
19622 ac_preproc_ok=false
19623 for ac_cxx_preproc_warn_flag in '' yes
19625 # Use a header file that comes with gcc, so configuring glibc
19626 # with a fresh cross-compiler works.
19627 # On the NeXT, cc -E runs the code through the compiler's parser,
19628 # not just through cpp. "Syntax error" is here to catch this case.
19629 cat >conftest.$ac_ext <<_ACEOF
19630 #line 19630 "configure"
19631 #include "confdefs.h"
19632 #include <assert.h>
19635 if { (eval echo "$as_me:19635: \"$ac_cpp conftest.$ac_ext\"") >&5
19636 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19638 egrep -v '^ *\+' conftest.er1 >conftest.err
19640 cat conftest.err >&5
19641 echo "$as_me:19641: \$? = $ac_status" >&5
19642 (exit $ac_status); } >/dev/null; then
19643 if test -s conftest.err; then
19644 ac_cpp_err=$ac_cxx_preproc_warn_flag
19651 if test -z "$ac_cpp_err"; then
19654 echo "$as_me: failed program was:" >&5
19655 cat conftest.$ac_ext >&5
19656 # Broken: fails on valid input.
19659 rm -f conftest.err conftest.$ac_ext
19661 # OK, works on sane cases. Now check whether non-existent headers
19662 # can be detected and how.
19663 cat >conftest.$ac_ext <<_ACEOF
19664 #line 19664 "configure"
19665 #include "confdefs.h"
19666 #include <ac_nonexistent.h>
19668 if { (eval echo "$as_me:19668: \"$ac_cpp conftest.$ac_ext\"") >&5
19669 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19671 egrep -v '^ *\+' conftest.er1 >conftest.err
19673 cat conftest.err >&5
19674 echo "$as_me:19674: \$? = $ac_status" >&5
19675 (exit $ac_status); } >/dev/null; then
19676 if test -s conftest.err; then
19677 ac_cpp_err=$ac_cxx_preproc_warn_flag
19684 if test -z "$ac_cpp_err"; then
19685 # Broken: success on invalid input.
19688 echo "$as_me: failed program was:" >&5
19689 cat conftest.$ac_ext >&5
19690 # Passes both tests.
19694 rm -f conftest.err conftest.$ac_ext
19697 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19698 rm -f conftest.err conftest.$ac_ext
19699 if $ac_preproc_ok; then
19704 ac_cv_prog_CXXCPP=$CXXCPP
19707 CXXCPP=$ac_cv_prog_CXXCPP
19709 ac_cv_prog_CXXCPP=$CXXCPP
19711 echo "$as_me:19711: result: $CXXCPP" >&5
19712 echo "${ECHO_T}$CXXCPP" >&6
19713 ac_preproc_ok=false
19714 for ac_cxx_preproc_warn_flag in '' yes
19716 # Use a header file that comes with gcc, so configuring glibc
19717 # with a fresh cross-compiler works.
19718 # On the NeXT, cc -E runs the code through the compiler's parser,
19719 # not just through cpp. "Syntax error" is here to catch this case.
19720 cat >conftest.$ac_ext <<_ACEOF
19721 #line 19721 "configure"
19722 #include "confdefs.h"
19723 #include <assert.h>
19726 if { (eval echo "$as_me:19726: \"$ac_cpp conftest.$ac_ext\"") >&5
19727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19729 egrep -v '^ *\+' conftest.er1 >conftest.err
19731 cat conftest.err >&5
19732 echo "$as_me:19732: \$? = $ac_status" >&5
19733 (exit $ac_status); } >/dev/null; then
19734 if test -s conftest.err; then
19735 ac_cpp_err=$ac_cxx_preproc_warn_flag
19742 if test -z "$ac_cpp_err"; then
19745 echo "$as_me: failed program was:" >&5
19746 cat conftest.$ac_ext >&5
19747 # Broken: fails on valid input.
19750 rm -f conftest.err conftest.$ac_ext
19752 # OK, works on sane cases. Now check whether non-existent headers
19753 # can be detected and how.
19754 cat >conftest.$ac_ext <<_ACEOF
19755 #line 19755 "configure"
19756 #include "confdefs.h"
19757 #include <ac_nonexistent.h>
19759 if { (eval echo "$as_me:19759: \"$ac_cpp conftest.$ac_ext\"") >&5
19760 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19762 egrep -v '^ *\+' conftest.er1 >conftest.err
19764 cat conftest.err >&5
19765 echo "$as_me:19765: \$? = $ac_status" >&5
19766 (exit $ac_status); } >/dev/null; then
19767 if test -s conftest.err; then
19768 ac_cpp_err=$ac_cxx_preproc_warn_flag
19775 if test -z "$ac_cpp_err"; then
19776 # Broken: success on invalid input.
19779 echo "$as_me: failed program was:" >&5
19780 cat conftest.$ac_ext >&5
19781 # Passes both tests.
19785 rm -f conftest.err conftest.$ac_ext
19788 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19789 rm -f conftest.err conftest.$ac_ext
19790 if $ac_preproc_ok; then
19793 { { echo "$as_me:19793: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
19794 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
19795 { (exit 1); exit 1; }; }
19799 ac_cpp='$CXXCPP $CPPFLAGS'
19800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19803 ac_main_return=return
19805 for ac_header in typeinfo
19807 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19808 echo "$as_me:19808: checking for $ac_header" >&5
19809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19811 echo $ECHO_N "(cached) $ECHO_C" >&6
19813 cat >conftest.$ac_ext <<_ACEOF
19814 #line 19814 "configure"
19815 #include "confdefs.h"
19816 #include <$ac_header>
19818 if { (eval echo "$as_me:19818: \"$ac_cpp conftest.$ac_ext\"") >&5
19819 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19821 egrep -v '^ *\+' conftest.er1 >conftest.err
19823 cat conftest.err >&5
19824 echo "$as_me:19824: \$? = $ac_status" >&5
19825 (exit $ac_status); } >/dev/null; then
19826 if test -s conftest.err; then
19827 ac_cpp_err=$ac_cxx_preproc_warn_flag
19834 if test -z "$ac_cpp_err"; then
19835 eval "$as_ac_Header=yes"
19837 echo "$as_me: failed program was:" >&5
19838 cat conftest.$ac_ext >&5
19839 eval "$as_ac_Header=no"
19841 rm -f conftest.err conftest.$ac_ext
19843 echo "$as_me:19843: result: `eval echo '${'$as_ac_Header'}'`" >&5
19844 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19846 cat >>confdefs.h <<EOF
19847 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19853 for ac_header in iostream
19855 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19856 echo "$as_me:19856: checking for $ac_header" >&5
19857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19859 echo $ECHO_N "(cached) $ECHO_C" >&6
19861 cat >conftest.$ac_ext <<_ACEOF
19862 #line 19862 "configure"
19863 #include "confdefs.h"
19864 #include <$ac_header>
19866 if { (eval echo "$as_me:19866: \"$ac_cpp conftest.$ac_ext\"") >&5
19867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19869 egrep -v '^ *\+' conftest.er1 >conftest.err
19871 cat conftest.err >&5
19872 echo "$as_me:19872: \$? = $ac_status" >&5
19873 (exit $ac_status); } >/dev/null; then
19874 if test -s conftest.err; then
19875 ac_cpp_err=$ac_cxx_preproc_warn_flag
19882 if test -z "$ac_cpp_err"; then
19883 eval "$as_ac_Header=yes"
19885 echo "$as_me: failed program was:" >&5
19886 cat conftest.$ac_ext >&5
19887 eval "$as_ac_Header=no"
19889 rm -f conftest.err conftest.$ac_ext
19891 echo "$as_me:19891: result: `eval echo '${'$as_ac_Header'}'`" >&5
19892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19894 cat >>confdefs.h <<EOF
19895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19901 if test x"$ac_cv_header_iostream" = xyes ; then
19902 echo "$as_me:19902: checking if iostream uses std-namespace" >&5
19903 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
19904 cat >conftest.$ac_ext <<_ACEOF
19905 #line 19905 "configure"
19906 #include "confdefs.h"
19908 #include <iostream>
19915 cerr << "testing" << endl;
19921 rm -f conftest.$ac_objext
19922 if { (eval echo "$as_me:19922: \"$ac_compile\"") >&5
19923 (eval $ac_compile) 2>&5
19925 echo "$as_me:19925: \$? = $ac_status" >&5
19926 (exit $ac_status); } &&
19927 { ac_try='test -s conftest.$ac_objext'
19928 { (eval echo "$as_me:19928: \"$ac_try\"") >&5
19929 (eval $ac_try) 2>&5
19931 echo "$as_me:19931: \$? = $ac_status" >&5
19932 (exit $ac_status); }; }; then
19933 cf_iostream_namespace=yes
19935 echo "$as_me: failed program was:" >&5
19936 cat conftest.$ac_ext >&5
19937 cf_iostream_namespace=no
19939 rm -f conftest.$ac_objext conftest.$ac_ext
19940 echo "$as_me:19940: result: $cf_iostream_namespace" >&5
19941 echo "${ECHO_T}$cf_iostream_namespace" >&6
19942 if test "$cf_iostream_namespace" = yes ; then
19944 cat >>confdefs.h <<\EOF
19945 #define IOSTREAM_NAMESPACE 1
19951 echo "$as_me:19951: checking if we should include stdbool.h" >&5
19952 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
19954 if test "${cf_cv_header_stdbool_h+set}" = set; then
19955 echo $ECHO_N "(cached) $ECHO_C" >&6
19958 cat >conftest.$ac_ext <<_ACEOF
19959 #line 19959 "configure"
19960 #include "confdefs.h"
19970 rm -f conftest.$ac_objext
19971 if { (eval echo "$as_me:19971: \"$ac_compile\"") >&5
19972 (eval $ac_compile) 2>&5
19974 echo "$as_me:19974: \$? = $ac_status" >&5
19975 (exit $ac_status); } &&
19976 { ac_try='test -s conftest.$ac_objext'
19977 { (eval echo "$as_me:19977: \"$ac_try\"") >&5
19978 (eval $ac_try) 2>&5
19980 echo "$as_me:19980: \$? = $ac_status" >&5
19981 (exit $ac_status); }; }; then
19982 cf_cv_header_stdbool_h=0
19984 echo "$as_me: failed program was:" >&5
19985 cat conftest.$ac_ext >&5
19986 cat >conftest.$ac_ext <<_ACEOF
19987 #line 19987 "configure"
19988 #include "confdefs.h"
19991 #include <stdbool.h>
20002 rm -f conftest.$ac_objext
20003 if { (eval echo "$as_me:20003: \"$ac_compile\"") >&5
20004 (eval $ac_compile) 2>&5
20006 echo "$as_me:20006: \$? = $ac_status" >&5
20007 (exit $ac_status); } &&
20008 { ac_try='test -s conftest.$ac_objext'
20009 { (eval echo "$as_me:20009: \"$ac_try\"") >&5
20010 (eval $ac_try) 2>&5
20012 echo "$as_me:20012: \$? = $ac_status" >&5
20013 (exit $ac_status); }; }; then
20014 cf_cv_header_stdbool_h=1
20016 echo "$as_me: failed program was:" >&5
20017 cat conftest.$ac_ext >&5
20018 cf_cv_header_stdbool_h=0
20020 rm -f conftest.$ac_objext conftest.$ac_ext
20022 rm -f conftest.$ac_objext conftest.$ac_ext
20025 if test "$cf_cv_header_stdbool_h" = 1
20026 then echo "$as_me:20026: result: yes" >&5
20027 echo "${ECHO_T}yes" >&6
20028 else echo "$as_me:20028: result: no" >&5
20029 echo "${ECHO_T}no" >&6
20032 echo "$as_me:20032: checking for builtin bool type" >&5
20033 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
20035 if test "${cf_cv_builtin_bool+set}" = set; then
20036 echo $ECHO_N "(cached) $ECHO_C" >&6
20039 cat >conftest.$ac_ext <<_ACEOF
20040 #line 20040 "configure"
20041 #include "confdefs.h"
20044 #include <sys/types.h>
20054 rm -f conftest.$ac_objext
20055 if { (eval echo "$as_me:20055: \"$ac_compile\"") >&5
20056 (eval $ac_compile) 2>&5
20058 echo "$as_me:20058: \$? = $ac_status" >&5
20059 (exit $ac_status); } &&
20060 { ac_try='test -s conftest.$ac_objext'
20061 { (eval echo "$as_me:20061: \"$ac_try\"") >&5
20062 (eval $ac_try) 2>&5
20064 echo "$as_me:20064: \$? = $ac_status" >&5
20065 (exit $ac_status); }; }; then
20066 cf_cv_builtin_bool=1
20068 echo "$as_me: failed program was:" >&5
20069 cat conftest.$ac_ext >&5
20070 cf_cv_builtin_bool=0
20072 rm -f conftest.$ac_objext conftest.$ac_ext
20076 if test "$cf_cv_builtin_bool" = 1
20077 then echo "$as_me:20077: result: yes" >&5
20078 echo "${ECHO_T}yes" >&6
20079 else echo "$as_me:20079: result: no" >&5
20080 echo "${ECHO_T}no" >&6
20083 echo "$as_me:20083: checking for size of bool" >&5
20084 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
20085 if test "${cf_cv_type_of_bool+set}" = set; then
20086 echo $ECHO_N "(cached) $ECHO_C" >&6
20090 if test "$cross_compiling" = yes; then
20091 cf_cv_type_of_bool=unknown
20093 cat >conftest.$ac_ext <<_ACEOF
20094 #line 20094 "configure"
20095 #include "confdefs.h"
20097 #include <stdlib.h>
20100 #if defined(__cplusplus)
20102 #ifdef HAVE_GXX_BUILTIN_H
20103 #include <g++/builtin.h>
20104 #elif HAVE_GPP_BUILTIN_H
20105 #include <gpp/builtin.h>
20106 #elif HAVE_BUILTIN_H
20107 #include <builtin.h>
20112 #if $cf_cv_header_stdbool_h
20113 #include <stdbool.h>
20120 FILE *fp = fopen("cf_test.out", "w");
20123 if ((bool)(-x) >= 0)
20124 fputs("unsigned ", fp);
20125 if (sizeof(x) == sizeof(int)) fputs("int", fp);
20126 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
20127 else if (sizeof(x) == sizeof(short))fputs("short",fp);
20128 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
20131 ${cf_cv_main_return:-return}(0);
20135 rm -f conftest$ac_exeext
20136 if { (eval echo "$as_me:20136: \"$ac_link\"") >&5
20137 (eval $ac_link) 2>&5
20139 echo "$as_me:20139: \$? = $ac_status" >&5
20140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20141 { (eval echo "$as_me:20141: \"$ac_try\"") >&5
20142 (eval $ac_try) 2>&5
20144 echo "$as_me:20144: \$? = $ac_status" >&5
20145 (exit $ac_status); }; }; then
20146 cf_cv_type_of_bool=`cat cf_test.out`
20147 if test -z "$cf_cv_type_of_bool"; then
20148 cf_cv_type_of_bool=unknown
20151 echo "$as_me: program exited with status $ac_status" >&5
20152 echo "$as_me: failed program was:" >&5
20153 cat conftest.$ac_ext >&5
20154 cf_cv_type_of_bool=unknown
20156 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20162 echo "$as_me:20162: result: $cf_cv_type_of_bool" >&5
20163 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
20164 if test "$cf_cv_type_of_bool" = unknown ; then
20165 case .$NCURSES_BOOL in
20166 (.auto|.) NCURSES_BOOL=unsigned;;
20168 { echo "$as_me:20168: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
20169 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
20170 cf_cv_type_of_bool=$NCURSES_BOOL
20173 echo "$as_me:20173: checking for special defines needed for etip.h" >&5
20174 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
20175 cf_save_CXXFLAGS="$CXXFLAGS"
20178 # etip.h includes ncurses.h which includes ncurses_dll.h
20179 # But ncurses_dll.h is generated - fix here.
20180 test -d include || mkdir include
20181 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
20183 for cf_math in "" MATH_H
20185 for cf_excp in "" MATH_EXCEPTION
20187 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -Iinclude -I${srcdir}/include"
20188 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
20189 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
20190 cat >conftest.$ac_ext <<_ACEOF
20191 #line 20191 "configure"
20192 #include "confdefs.h"
20194 #include <etip.h.in>
20204 rm -f conftest.$ac_objext
20205 if { (eval echo "$as_me:20205: \"$ac_compile\"") >&5
20206 (eval $ac_compile) 2>&5
20208 echo "$as_me:20208: \$? = $ac_status" >&5
20209 (exit $ac_status); } &&
20210 { ac_try='test -s conftest.$ac_objext'
20211 { (eval echo "$as_me:20211: \"$ac_try\"") >&5
20212 (eval $ac_try) 2>&5
20214 echo "$as_me:20214: \$? = $ac_status" >&5
20215 (exit $ac_status); }; }; then
20217 test -n "$cf_math" && cat >>confdefs.h <<EOF
20218 #define ETIP_NEEDS_${cf_math} 1
20221 test -n "$cf_excp" && cat >>confdefs.h <<EOF
20222 #define ETIP_NEEDS_${cf_excp} 1
20225 cf_result="$cf_math $cf_excp"
20229 echo "$as_me: failed program was:" >&5
20230 cat conftest.$ac_ext >&5
20232 rm -f conftest.$ac_objext conftest.$ac_ext
20235 echo "$as_me:20235: result: $cf_result" >&5
20236 echo "${ECHO_T}$cf_result" >&6
20237 CXXFLAGS="$cf_save_CXXFLAGS"
20239 if test -n "$CXX"; then
20240 echo "$as_me:20240: checking if $CXX accepts parameter initialization" >&5
20241 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
20242 if test "${cf_cv_cpp_param_init+set}" = set; then
20243 echo $ECHO_N "(cached) $ECHO_C" >&6
20247 ac_cpp='$CXXCPP $CPPFLAGS'
20248 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20249 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20250 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20251 ac_main_return=return
20253 if test "$cross_compiling" = yes; then
20254 cf_cv_cpp_param_init=unknown
20256 cat >conftest.$ac_ext <<_ACEOF
20257 #line 20257 "configure"
20258 #include "confdefs.h"
20268 TEST::TEST(int x = 1) // some compilers do not like second initializer
20275 rm -f conftest$ac_exeext
20276 if { (eval echo "$as_me:20276: \"$ac_link\"") >&5
20277 (eval $ac_link) 2>&5
20279 echo "$as_me:20279: \$? = $ac_status" >&5
20280 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20281 { (eval echo "$as_me:20281: \"$ac_try\"") >&5
20282 (eval $ac_try) 2>&5
20284 echo "$as_me:20284: \$? = $ac_status" >&5
20285 (exit $ac_status); }; }; then
20286 cf_cv_cpp_param_init=yes
20288 echo "$as_me: program exited with status $ac_status" >&5
20289 echo "$as_me: failed program was:" >&5
20290 cat conftest.$ac_ext >&5
20291 cf_cv_cpp_param_init=no
20293 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20296 ac_cpp='$CXXCPP $CPPFLAGS'
20297 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20298 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20299 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20300 ac_main_return=return
20303 echo "$as_me:20303: result: $cf_cv_cpp_param_init" >&5
20304 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
20306 test "$cf_cv_cpp_param_init" = yes &&
20307 cat >>confdefs.h <<\EOF
20308 #define CPP_HAS_PARAM_INIT 1
20311 if test -n "$CXX"; then
20313 echo "$as_me:20313: checking if $CXX accepts static_cast" >&5
20314 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
20315 if test "${cf_cv_cpp_static_cast+set}" = set; then
20316 echo $ECHO_N "(cached) $ECHO_C" >&6
20320 ac_cpp='$CXXCPP $CPPFLAGS'
20321 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20322 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20323 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20324 ac_main_return=return
20326 cat >conftest.$ac_ext <<_ACEOF
20327 #line 20327 "configure"
20328 #include "confdefs.h"
20333 NCursesPanel(int nlines,
20343 template<class T> class NCursesUserPanel : public NCursesPanel
20346 NCursesUserPanel (int nlines,
20350 const T* p_UserData = static_cast<T*>(0))
20351 : NCursesPanel (nlines, ncols, begin_y, begin_x)
20354 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
20358 virtual ~NCursesUserPanel() {};
20365 const char* p_UserData = static_cast<char*>(0)
20370 rm -f conftest.$ac_objext
20371 if { (eval echo "$as_me:20371: \"$ac_compile\"") >&5
20372 (eval $ac_compile) 2>&5
20374 echo "$as_me:20374: \$? = $ac_status" >&5
20375 (exit $ac_status); } &&
20376 { ac_try='test -s conftest.$ac_objext'
20377 { (eval echo "$as_me:20377: \"$ac_try\"") >&5
20378 (eval $ac_try) 2>&5
20380 echo "$as_me:20380: \$? = $ac_status" >&5
20381 (exit $ac_status); }; }; then
20382 cf_cv_cpp_static_cast=yes
20384 echo "$as_me: failed program was:" >&5
20385 cat conftest.$ac_ext >&5
20386 cf_cv_cpp_static_cast=no
20388 rm -f conftest.$ac_objext conftest.$ac_ext
20391 ac_cpp='$CXXCPP $CPPFLAGS'
20392 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20393 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20394 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20395 ac_main_return=return
20398 echo "$as_me:20398: result: $cf_cv_cpp_static_cast" >&5
20399 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
20403 test "$cf_cv_cpp_static_cast" = yes &&
20404 cat >>confdefs.h <<\EOF
20405 #define CPP_HAS_STATIC_CAST 1
20409 CXX_ARFLAGS='$(ARFLAGS)'
20410 case $cf_cv_system_name in
20412 if test "$GXX" != yes ; then
20414 CXX_ARFLAGS='-ar -o'
20418 CXXLDFLAGS="-u main"
20421 if test "$GXX" != yes ; then
20423 CXX_ARFLAGS='-xar -o'
20430 cf_cv_builtin_bool=1
20432 # Just because we are not configuring against C++ right now does not
20433 # mean that a user will not want to use C++. Some distributors disable
20434 # the C++ portion of this configuration as a shortcut (or just to avoid
20435 # compiling the demo in the c++ directory). So we need a reasonable
20436 # default for the 'bool' type.
20438 # Caveat: since the storage of the bool type is not standardized, it
20441 if test "$NCURSES_BOOL" != auto ; then
20442 cf_cv_type_of_bool=$NCURSES_BOOL
20443 cf_cv_header_stdbool_h=0
20445 if test "$cf_cv_header_stdbool_h" = 1 ; then
20447 echo "$as_me:20447: checking for size of bool" >&5
20448 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
20449 if test "${cf_cv_type_of_bool+set}" = set; then
20450 echo $ECHO_N "(cached) $ECHO_C" >&6
20454 if test "$cross_compiling" = yes; then
20455 cf_cv_type_of_bool=unknown
20457 cat >conftest.$ac_ext <<_ACEOF
20458 #line 20458 "configure"
20459 #include "confdefs.h"
20461 #include <stdlib.h>
20464 #if defined(__cplusplus)
20466 #ifdef HAVE_GXX_BUILTIN_H
20467 #include <g++/builtin.h>
20468 #elif HAVE_GPP_BUILTIN_H
20469 #include <gpp/builtin.h>
20470 #elif HAVE_BUILTIN_H
20471 #include <builtin.h>
20476 #if $cf_cv_header_stdbool_h
20477 #include <stdbool.h>
20484 FILE *fp = fopen("cf_test.out", "w");
20487 if ((bool)(-x) >= 0)
20488 fputs("unsigned ", fp);
20489 if (sizeof(x) == sizeof(int)) fputs("int", fp);
20490 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
20491 else if (sizeof(x) == sizeof(short))fputs("short",fp);
20492 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
20495 ${cf_cv_main_return:-return}(0);
20499 rm -f conftest$ac_exeext
20500 if { (eval echo "$as_me:20500: \"$ac_link\"") >&5
20501 (eval $ac_link) 2>&5
20503 echo "$as_me:20503: \$? = $ac_status" >&5
20504 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20505 { (eval echo "$as_me:20505: \"$ac_try\"") >&5
20506 (eval $ac_try) 2>&5
20508 echo "$as_me:20508: \$? = $ac_status" >&5
20509 (exit $ac_status); }; }; then
20510 cf_cv_type_of_bool=`cat cf_test.out`
20511 if test -z "$cf_cv_type_of_bool"; then
20512 cf_cv_type_of_bool=unknown
20515 echo "$as_me: program exited with status $ac_status" >&5
20516 echo "$as_me: failed program was:" >&5
20517 cat conftest.$ac_ext >&5
20518 cf_cv_type_of_bool=unknown
20520 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20526 echo "$as_me:20526: result: $cf_cv_type_of_bool" >&5
20527 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
20528 if test "$cf_cv_type_of_bool" = unknown ; then
20529 case .$NCURSES_BOOL in
20530 (.auto|.) NCURSES_BOOL=unsigned;;
20532 { echo "$as_me:20532: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
20533 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
20534 cf_cv_type_of_bool=$NCURSES_BOOL
20538 echo "$as_me:20538: checking for fallback type of bool" >&5
20539 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
20540 case "$host_cpu" in
20541 (i?86) cf_cv_type_of_bool=char ;;
20542 (*) cf_cv_type_of_bool=int ;;
20544 echo "$as_me:20544: result: $cf_cv_type_of_bool" >&5
20545 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
20550 # If the C compiler did not declare bool, and we did not determine that the C++
20551 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
20552 # ncurses library use the same type as C++ bool. Note that this allows one to
20553 # specify the type of bool in a configure-script option and postpone
20554 # integration with the C++ compiler provided that the types are compatible.
20556 if test $cf_cv_cc_bool_type = 1
20558 # oops: C has a bool. Unlikely, but C++ could differ.
20560 elif test $cf_cv_builtin_bool = 0
20565 # this is the normal case
20566 USE_CXX_BOOL='defined(__cplusplus)'
20569 if test -f "${srcdir}/Ada95/Makefile.in" ; then
20571 if test "$cf_with_ada" != "no" ; then
20572 if test "$with_libtool" != "no"; then
20573 { echo "$as_me:20573: WARNING: libtool does not support Ada - disabling feature" >&5
20574 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
20579 if test "$cf_with_ada" != "no" ; then
20581 cf_ada_make=gnatmake
20582 # Extract the first word of "$cf_ada_make", so it can be a program name with args.
20583 set dummy $cf_ada_make; ac_word=$2
20584 echo "$as_me:20584: checking for $ac_word" >&5
20585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20586 if test "${ac_cv_prog_gnat_exists+set}" = set; then
20587 echo $ECHO_N "(cached) $ECHO_C" >&6
20589 if test -n "$gnat_exists"; then
20590 ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test.
20592 ac_save_IFS=$IFS; IFS=$ac_path_separator
20594 for ac_dir in $ac_dummy; do
20596 test -z "$ac_dir" && ac_dir=.
20597 $as_executable_p "$ac_dir/$ac_word" || continue
20598 ac_cv_prog_gnat_exists="yes"
20599 echo "$as_me:20599: found $ac_dir/$ac_word" >&5
20603 test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no"
20606 gnat_exists=$ac_cv_prog_gnat_exists
20607 if test -n "$gnat_exists"; then
20608 echo "$as_me:20608: result: $gnat_exists" >&5
20609 echo "${ECHO_T}$gnat_exists" >&6
20611 echo "$as_me:20611: result: no" >&5
20612 echo "${ECHO_T}no" >&6
20615 if test "$ac_cv_prog_gnat_exists" = no; then
20617 cf_cv_prog_gnat_correct=no
20620 echo "$as_me:20620: checking for gnat version" >&5
20621 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
20622 cf_gnat_version=`${cf_ada_make:-gnatmake} -v 2>&1 | \
20623 grep '[0-9].[0-9][0-9]*' |\
20624 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
20625 echo "$as_me:20625: result: $cf_gnat_version" >&5
20626 echo "${ECHO_T}$cf_gnat_version" >&6
20628 case $cf_gnat_version in
20629 (3.1[1-9]*|3.[2-9]*|[4-9].*|20[0-9][0-9])
20630 cf_cv_prog_gnat_correct=yes
20633 { echo "$as_me:20633: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
20634 echo "$as_me: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
20635 cf_cv_prog_gnat_correct=no
20639 # Extract the first word of "m4", so it can be a program name with args.
20640 set dummy m4; ac_word=$2
20641 echo "$as_me:20641: checking for $ac_word" >&5
20642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20643 if test "${ac_cv_prog_M4_exists+set}" = set; then
20644 echo $ECHO_N "(cached) $ECHO_C" >&6
20646 if test -n "$M4_exists"; then
20647 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
20649 ac_save_IFS=$IFS; IFS=$ac_path_separator
20651 for ac_dir in $ac_dummy; do
20653 test -z "$ac_dir" && ac_dir=.
20654 $as_executable_p "$ac_dir/$ac_word" || continue
20655 ac_cv_prog_M4_exists="yes"
20656 echo "$as_me:20656: found $ac_dir/$ac_word" >&5
20660 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
20663 M4_exists=$ac_cv_prog_M4_exists
20664 if test -n "$M4_exists"; then
20665 echo "$as_me:20665: result: $M4_exists" >&5
20666 echo "${ECHO_T}$M4_exists" >&6
20668 echo "$as_me:20668: result: no" >&5
20669 echo "${ECHO_T}no" >&6
20672 if test "$ac_cv_prog_M4_exists" = no; then
20673 cf_cv_prog_gnat_correct=no
20674 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
20676 if test "$cf_cv_prog_gnat_correct" = yes; then
20677 echo "$as_me:20677: checking if GNAT works" >&5
20678 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
20680 rm -rf conftest* *~conftest*
20681 cat >>conftest.ads <<CF_EOF
20682 procedure conftest;
20684 cat >>conftest.adb <<CF_EOF
20687 procedure conftest is
20689 Text_IO.Put ("Hello World");
20691 GNAT.OS_Lib.OS_Exit (0);
20694 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
20695 if ( ./conftest 1>&5 2>&1 ) ; then
20696 cf_cv_prog_gnat_correct=yes
20698 cf_cv_prog_gnat_correct=no
20701 cf_cv_prog_gnat_correct=no
20703 rm -rf conftest* *~conftest*
20705 echo "$as_me:20705: result: $cf_cv_prog_gnat_correct" >&5
20706 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
20710 if test "x$cf_cv_prog_gnat_correct" = xyes; then
20712 ADAFLAGS="$ADAFLAGS -gnatpn"
20714 echo "$as_me:20714: checking optimization options for ADAFLAGS" >&5
20715 echo $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6
20719 ADAFLAGS="$ADAFLAGS -g"
20725 cf_O_flag=`echo "$CFLAGS" |sed -e 's/^.*-O/-O/' -e 's/[ ].*//'`
20727 ADAFLAGS="$ADAFLAGS $cf_O_flag"
20731 echo "$as_me:20731: result: $ADAFLAGS" >&5
20732 echo "${ECHO_T}$ADAFLAGS" >&6
20734 echo "$as_me:20734: checking if GNATPREP supports -T option" >&5
20735 echo $ECHO_N "checking if GNATPREP supports -T option... $ECHO_C" >&6
20736 if test "${cf_cv_gnatprep_opt_t+set}" = set; then
20737 echo $ECHO_N "(cached) $ECHO_C" >&6
20740 cf_cv_gnatprep_opt_t=no
20741 gnatprep -T 2>/dev/null >/dev/null && cf_cv_gnatprep_opt_t=yes
20744 echo "$as_me:20744: result: $cf_cv_gnatprep_opt_t" >&5
20745 echo "${ECHO_T}$cf_cv_gnatprep_opt_t" >&6
20746 test "$cf_cv_gnatprep_opt_t" = yes && GNATPREP_OPTS="-T $GNATPREP_OPTS"
20748 echo "$as_me:20748: checking if GNAT supports generics" >&5
20749 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
20750 case $cf_gnat_version in
20752 cf_gnat_generics=yes
20755 cf_gnat_generics=no
20758 echo "$as_me:20758: result: $cf_gnat_generics" >&5
20759 echo "${ECHO_T}$cf_gnat_generics" >&6
20761 if test "$cf_gnat_generics" = yes
20763 cf_compile_generics=generics
20764 cf_generic_objects="\${GENOBJS}"
20766 cf_compile_generics=
20767 cf_generic_objects=
20770 echo "$as_me:20770: checking if GNAT supports SIGINT" >&5
20771 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
20772 if test "${cf_cv_gnat_sigint+set}" = set; then
20773 echo $ECHO_N "(cached) $ECHO_C" >&6
20776 rm -rf conftest* *~conftest*
20777 cat >>conftest.ads <<CF_EOF
20778 with Ada.Interrupts.Names;
20780 package ConfTest is
20782 pragma Warnings (Off); -- the next pragma exists since 3.11p
20783 pragma Unreserve_All_Interrupts;
20784 pragma Warnings (On);
20786 protected Process is
20788 function Continue return Boolean;
20789 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
20791 Done : Boolean := False;
20796 cat >>conftest.adb <<CF_EOF
20797 package body ConfTest is
20798 protected body Process is
20803 function Continue return Boolean is
20810 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
20811 cf_cv_gnat_sigint=yes
20813 cf_cv_gnat_sigint=no
20815 rm -rf conftest* *~conftest*
20818 echo "$as_me:20818: result: $cf_cv_gnat_sigint" >&5
20819 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
20821 if test $cf_cv_gnat_sigint = yes ; then
20824 USE_GNAT_SIGINT="#"
20827 cf_gnat_libraries=no
20828 cf_gnat_projects=no
20830 if test "$enable_gnat_projects" != no ; then
20831 echo "$as_me:20831: checking if GNAT supports project files" >&5
20832 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
20833 case $cf_gnat_version in
20837 case $cf_cv_system_name in
20841 mkdir conftest.src conftest.bin conftest.lib
20843 rm -rf conftest* *~conftest*
20844 cat >>library.gpr <<CF_EOF
20846 Kind := External ("LIB_KIND");
20847 for Library_Name use "ConfTest";
20848 for Object_Dir use ".";
20849 for Library_ALI_Dir use External("LIBRARY_DIR");
20850 for Library_Version use External ("SONAME");
20851 for Library_Kind use Kind;
20852 for Library_Dir use External("BUILD_DIR");
20853 Source_Dir := External ("SOURCE_DIR");
20854 for Source_Dirs use (Source_Dir);
20857 cat >>confpackage.ads <<CF_EOF
20858 package ConfPackage is
20859 procedure conftest;
20862 cat >>confpackage.adb <<CF_EOF
20864 package body ConfPackage is
20865 procedure conftest is
20867 Text_IO.Put ("Hello World");
20872 if ( $cf_ada_make $ADAFLAGS \
20874 -XBUILD_DIR=`cd ../conftest.bin;pwd` \
20875 -XLIBRARY_DIR=`cd ../conftest.lib;pwd` \
20876 -XSOURCE_DIR=`pwd` \
20877 -XSONAME=libConfTest.so.1 \
20878 -XLIB_KIND=static 1>&5 2>&1 ) ; then
20879 cf_gnat_projects=yes
20882 if test -f conftest.lib/confpackage.ali
20884 cf_gnat_libraries=yes
20886 rm -rf conftest* *~conftest*
20891 echo "$as_me:20891: result: $cf_gnat_projects" >&5
20892 echo "${ECHO_T}$cf_gnat_projects" >&6
20893 fi # enable_gnat_projects
20895 if test $cf_gnat_projects = yes
20897 echo "$as_me:20897: checking if GNAT supports libraries" >&5
20898 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
20899 echo "$as_me:20899: result: $cf_gnat_libraries" >&5
20900 echo "${ECHO_T}$cf_gnat_libraries" >&6
20903 if test "$cf_gnat_projects" = yes
20905 USE_OLD_MAKERULES="#"
20906 USE_GNAT_PROJECTS=""
20908 USE_OLD_MAKERULES=""
20909 USE_GNAT_PROJECTS="#"
20912 if test "$cf_gnat_libraries" = yes
20914 USE_GNAT_LIBRARIES=""
20916 USE_GNAT_LIBRARIES="#"
20919 echo "$as_me:20919: checking for ada-compiler" >&5
20920 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
20922 # Check whether --with-ada-compiler or --without-ada-compiler was given.
20923 if test "${with_ada_compiler+set}" = set; then
20924 withval="$with_ada_compiler"
20925 cf_ada_compiler=$withval
20927 cf_ada_compiler=gnatmake
20930 echo "$as_me:20930: result: $cf_ada_compiler" >&5
20931 echo "${ECHO_T}$cf_ada_compiler" >&6
20933 cf_ada_package=terminal_interface
20935 echo "$as_me:20935: checking for ada-include" >&5
20936 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
20938 # Check whether --with-ada-include or --without-ada-include was given.
20939 if test "${with_ada_include+set}" = set; then
20940 withval="$with_ada_include"
20943 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
20944 fi; if test -n "$prefix/share/ada/adainclude" ; then
20946 if test "x$prefix" != xNONE; then
20947 cf_path_syntax="$prefix"
20949 cf_path_syntax="$ac_default_prefix"
20952 case ".$withval" in
20953 (.\$\(*\)*|.\'*\'*)
20957 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
20959 (.\${*prefix}*|.\${*dir}*)
20960 eval withval="$withval"
20961 case ".$withval" in
20963 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
20968 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
20971 { { echo "$as_me:20971: error: expected a pathname, not \"$withval\"" >&5
20972 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
20973 { (exit 1); exit 1; }; }
20978 eval ADA_INCLUDE="$withval"
20980 echo "$as_me:20980: result: $ADA_INCLUDE" >&5
20981 echo "${ECHO_T}$ADA_INCLUDE" >&6
20983 echo "$as_me:20983: checking for ada-objects" >&5
20984 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
20986 # Check whether --with-ada-objects or --without-ada-objects was given.
20987 if test "${with_ada_objects+set}" = set; then
20988 withval="$with_ada_objects"
20991 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
20992 fi; if test -n "$prefix/lib/ada/adalib" ; then
20994 if test "x$prefix" != xNONE; then
20995 cf_path_syntax="$prefix"
20997 cf_path_syntax="$ac_default_prefix"
21000 case ".$withval" in
21001 (.\$\(*\)*|.\'*\'*)
21005 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
21007 (.\${*prefix}*|.\${*dir}*)
21008 eval withval="$withval"
21009 case ".$withval" in
21011 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
21016 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
21019 { { echo "$as_me:21019: error: expected a pathname, not \"$withval\"" >&5
21020 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
21021 { (exit 1); exit 1; }; }
21026 eval ADA_OBJECTS="$withval"
21028 echo "$as_me:21028: result: $ADA_OBJECTS" >&5
21029 echo "${ECHO_T}$ADA_OBJECTS" >&6
21031 echo "$as_me:21031: checking if an Ada95 shared-library should be built" >&5
21032 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
21034 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
21035 if test "${with_ada_sharedlib+set}" = set; then
21036 withval="$with_ada_sharedlib"
21037 with_ada_sharedlib=$withval
21039 with_ada_sharedlib=no
21041 echo "$as_me:21041: result: $with_ada_sharedlib" >&5
21042 echo "${ECHO_T}$with_ada_sharedlib" >&6
21044 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
21045 MAKE_ADA_SHAREDLIB="#"
21047 if test "x$with_ada_sharedlib" != xno
21049 MAKE_ADA_SHAREDLIB=
21050 if test "x$with_ada_sharedlib" != xyes
21052 ADA_SHAREDLIB="$with_ada_sharedlib"
21062 # do this "late" to avoid conflict with header-checks
21063 if test "x$with_widec" = xyes ; then
21064 echo "$as_me:21064: checking for wchar_t" >&5
21065 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
21066 if test "${ac_cv_type_wchar_t+set}" = set; then
21067 echo $ECHO_N "(cached) $ECHO_C" >&6
21069 cat >conftest.$ac_ext <<_ACEOF
21070 #line 21070 "configure"
21071 #include "confdefs.h"
21072 $ac_includes_default
21078 if (sizeof (wchar_t))
21084 rm -f conftest.$ac_objext
21085 if { (eval echo "$as_me:21085: \"$ac_compile\"") >&5
21086 (eval $ac_compile) 2>&5
21088 echo "$as_me:21088: \$? = $ac_status" >&5
21089 (exit $ac_status); } &&
21090 { ac_try='test -s conftest.$ac_objext'
21091 { (eval echo "$as_me:21091: \"$ac_try\"") >&5
21092 (eval $ac_try) 2>&5
21094 echo "$as_me:21094: \$? = $ac_status" >&5
21095 (exit $ac_status); }; }; then
21096 ac_cv_type_wchar_t=yes
21098 echo "$as_me: failed program was:" >&5
21099 cat conftest.$ac_ext >&5
21100 ac_cv_type_wchar_t=no
21102 rm -f conftest.$ac_objext conftest.$ac_ext
21104 echo "$as_me:21104: result: $ac_cv_type_wchar_t" >&5
21105 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
21107 echo "$as_me:21107: checking size of wchar_t" >&5
21108 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
21109 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
21110 echo $ECHO_N "(cached) $ECHO_C" >&6
21112 if test "$ac_cv_type_wchar_t" = yes; then
21113 if test "$cross_compiling" = yes; then
21114 # Depending upon the size, compute the lo and hi bounds.
21115 cat >conftest.$ac_ext <<_ACEOF
21116 #line 21116 "configure"
21117 #include "confdefs.h"
21118 $ac_includes_default
21122 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= 0)]
21127 rm -f conftest.$ac_objext
21128 if { (eval echo "$as_me:21128: \"$ac_compile\"") >&5
21129 (eval $ac_compile) 2>&5
21131 echo "$as_me:21131: \$? = $ac_status" >&5
21132 (exit $ac_status); } &&
21133 { ac_try='test -s conftest.$ac_objext'
21134 { (eval echo "$as_me:21134: \"$ac_try\"") >&5
21135 (eval $ac_try) 2>&5
21137 echo "$as_me:21137: \$? = $ac_status" >&5
21138 (exit $ac_status); }; }; then
21141 cat >conftest.$ac_ext <<_ACEOF
21142 #line 21142 "configure"
21143 #include "confdefs.h"
21144 $ac_includes_default
21148 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
21153 rm -f conftest.$ac_objext
21154 if { (eval echo "$as_me:21154: \"$ac_compile\"") >&5
21155 (eval $ac_compile) 2>&5
21157 echo "$as_me:21157: \$? = $ac_status" >&5
21158 (exit $ac_status); } &&
21159 { ac_try='test -s conftest.$ac_objext'
21160 { (eval echo "$as_me:21160: \"$ac_try\"") >&5
21161 (eval $ac_try) 2>&5
21163 echo "$as_me:21163: \$? = $ac_status" >&5
21164 (exit $ac_status); }; }; then
21165 ac_hi=$ac_mid; break
21167 echo "$as_me: failed program was:" >&5
21168 cat conftest.$ac_ext >&5
21169 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
21171 rm -f conftest.$ac_objext conftest.$ac_ext
21174 echo "$as_me: failed program was:" >&5
21175 cat conftest.$ac_ext >&5
21178 cat >conftest.$ac_ext <<_ACEOF
21179 #line 21179 "configure"
21180 #include "confdefs.h"
21181 $ac_includes_default
21185 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= $ac_mid)]
21190 rm -f conftest.$ac_objext
21191 if { (eval echo "$as_me:21191: \"$ac_compile\"") >&5
21192 (eval $ac_compile) 2>&5
21194 echo "$as_me:21194: \$? = $ac_status" >&5
21195 (exit $ac_status); } &&
21196 { ac_try='test -s conftest.$ac_objext'
21197 { (eval echo "$as_me:21197: \"$ac_try\"") >&5
21198 (eval $ac_try) 2>&5
21200 echo "$as_me:21200: \$? = $ac_status" >&5
21201 (exit $ac_status); }; }; then
21202 ac_lo=$ac_mid; break
21204 echo "$as_me: failed program was:" >&5
21205 cat conftest.$ac_ext >&5
21206 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
21208 rm -f conftest.$ac_objext conftest.$ac_ext
21211 rm -f conftest.$ac_objext conftest.$ac_ext
21212 # Binary search between lo and hi bounds.
21213 while test "x$ac_lo" != "x$ac_hi"; do
21214 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21215 cat >conftest.$ac_ext <<_ACEOF
21216 #line 21216 "configure"
21217 #include "confdefs.h"
21218 $ac_includes_default
21222 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
21227 rm -f conftest.$ac_objext
21228 if { (eval echo "$as_me:21228: \"$ac_compile\"") >&5
21229 (eval $ac_compile) 2>&5
21231 echo "$as_me:21231: \$? = $ac_status" >&5
21232 (exit $ac_status); } &&
21233 { ac_try='test -s conftest.$ac_objext'
21234 { (eval echo "$as_me:21234: \"$ac_try\"") >&5
21235 (eval $ac_try) 2>&5
21237 echo "$as_me:21237: \$? = $ac_status" >&5
21238 (exit $ac_status); }; }; then
21241 echo "$as_me: failed program was:" >&5
21242 cat conftest.$ac_ext >&5
21243 ac_lo=`expr $ac_mid + 1`
21245 rm -f conftest.$ac_objext conftest.$ac_ext
21247 ac_cv_sizeof_wchar_t=$ac_lo
21249 if test "$cross_compiling" = yes; then
21250 { { echo "$as_me:21250: error: cannot run test program while cross compiling" >&5
21251 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
21252 { (exit 1); exit 1; }; }
21254 cat >conftest.$ac_ext <<_ACEOF
21255 #line 21255 "configure"
21256 #include "confdefs.h"
21257 $ac_includes_default
21261 FILE *f = fopen ("conftest.val", "w");
21263 $ac_main_return (1);
21264 fprintf (f, "%d", (sizeof (wchar_t)));
21270 rm -f conftest$ac_exeext
21271 if { (eval echo "$as_me:21271: \"$ac_link\"") >&5
21272 (eval $ac_link) 2>&5
21274 echo "$as_me:21274: \$? = $ac_status" >&5
21275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21276 { (eval echo "$as_me:21276: \"$ac_try\"") >&5
21277 (eval $ac_try) 2>&5
21279 echo "$as_me:21279: \$? = $ac_status" >&5
21280 (exit $ac_status); }; }; then
21281 ac_cv_sizeof_wchar_t=`cat conftest.val`
21283 echo "$as_me: program exited with status $ac_status" >&5
21284 echo "$as_me: failed program was:" >&5
21285 cat conftest.$ac_ext >&5
21287 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21292 ac_cv_sizeof_wchar_t=0
21295 echo "$as_me:21295: result: $ac_cv_sizeof_wchar_t" >&5
21296 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
21297 cat >>confdefs.h <<EOF
21298 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
21303 ### Construct the ncurses library-subsets, if any, from this set of keywords:
21304 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
21306 ### ticlib modules may be a separate library, otherwise contained in termlib.
21307 ### termlib modules may be a separate library, otherwise contained in ncurses.
21309 ### The of "+" or " " between the tokens controls the way the script
21310 ### chooses to split module lists into libraries.
21312 ### (see CF_LIB_RULES).
21313 echo "$as_me:21313: checking for library subsets" >&5
21314 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
21317 if test "x$cf_with_progs" = xyes || test "$with_ticlib" != no || test "$with_termcap" != no; then
21318 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
21319 if test "$with_ticlib" != no ; then
21320 LIB_SUBSETS="${LIB_SUBSETS} "
21322 LIB_SUBSETS="${LIB_SUBSETS}+"
21326 LIB_SUBSETS="${LIB_SUBSETS}termlib"
21327 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
21329 if test "$with_termlib" != no ; then
21330 LIB_SUBSETS="${LIB_SUBSETS} "
21332 LIB_SUBSETS="${LIB_SUBSETS}+"
21335 LIB_SUBSETS="${LIB_SUBSETS}base"
21337 # Most term-driver calls are to tinfo, but some like init_pair are to the
21338 # base library (so it resides in base).
21339 if test "$with_term_driver" != no ; then
21340 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
21341 case $cf_cv_system_name in
21342 (*mingw32*|*mingw64*)
21343 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
21344 CPPFLAGS="$CPPFLAGS -DUSE_WIN32CON_DRIVER"
21347 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
21352 test "x$with_widec" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
21353 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
21355 echo "$as_me:21355: result: $LIB_SUBSETS" >&5
21356 echo "${ECHO_T}$LIB_SUBSETS" >&6
21358 ### Construct the list of include-directories to be generated
21360 if test "$srcdir" != "."; then
21361 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
21363 CPPFLAGS="-I../include $CPPFLAGS"
21364 if test "$srcdir" != "."; then
21365 CPPFLAGS="-I\${srcdir} $CPPFLAGS"
21367 CPPFLAGS="-I. $CPPFLAGS"
21369 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
21370 if test "$srcdir" != "."; then
21371 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
21373 if test "$GCC" != yes; then
21374 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
21375 elif test "$includedir" != "/usr/include"; then
21376 if test "$includedir" = '${prefix}/include' ; then
21377 if test x$prefix != x/usr ; then
21378 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
21381 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
21385 ### Build up pieces for makefile rules
21386 echo "$as_me:21386: checking default library suffix" >&5
21387 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
21389 case $DFT_LWR_MODEL in
21390 (libtool) DFT_ARG_SUFFIX='' ;;
21391 (normal) DFT_ARG_SUFFIX='' ;;
21392 (debug) DFT_ARG_SUFFIX='_g' ;;
21393 (profile) DFT_ARG_SUFFIX='_p' ;;
21394 (shared) DFT_ARG_SUFFIX='' ;;
21396 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
21397 echo "$as_me:21397: result: $DFT_ARG_SUFFIX" >&5
21398 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
21400 echo "$as_me:21400: checking default library-dependency suffix" >&5
21401 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
21403 case X$DFT_LWR_MODEL in
21405 DFT_LIB_SUFFIX='.la'
21406 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21409 DFT_LIB_SUFFIX='_g.a'
21410 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21413 DFT_LIB_SUFFIX='_p.a'
21414 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21417 case $cf_cv_system_name in
21419 DFT_LIB_SUFFIX='.so'
21420 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21422 (cygwin*|msys*|mingw*)
21423 DFT_LIB_SUFFIX='.dll'
21424 DFT_DEP_SUFFIX='.dll.a'
21427 DFT_LIB_SUFFIX='.dylib'
21428 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21433 DFT_LIB_SUFFIX='.so'
21434 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21437 DFT_LIB_SUFFIX='.sl'
21438 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21443 DFT_LIB_SUFFIX='.so'
21444 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21449 DFT_LIB_SUFFIX='.a'
21450 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21453 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
21455 DFT_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_LIB_SUFFIX}"
21456 DFT_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_DEP_SUFFIX}"
21458 echo "$as_me:21458: result: $DFT_DEP_SUFFIX" >&5
21459 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
21461 echo "$as_me:21461: checking default object directory" >&5
21462 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
21464 case $DFT_LWR_MODEL in
21465 (libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
21466 (normal) DFT_OBJ_SUBDIR='objects' ;;
21467 (debug) DFT_OBJ_SUBDIR='obj_g' ;;
21468 (profile) DFT_OBJ_SUBDIR='obj_p' ;;
21470 case $cf_cv_system_name in
21472 DFT_OBJ_SUBDIR='objects' ;;
21474 DFT_OBJ_SUBDIR='obj_s' ;;
21477 echo "$as_me:21477: result: $DFT_OBJ_SUBDIR" >&5
21478 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
21480 if test "x$cf_with_cxx" = xyes ; then
21481 echo "$as_me:21481: checking c++ library-dependency suffix" >&5
21482 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
21483 if test "$with_libtool" != "no"; then
21484 # libtool thinks it can make c++ shared libraries (perhaps only g++)
21485 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
21486 elif test "$with_shared_cxx" != "no"; then
21487 # also for g++ users...
21488 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
21490 # we normally make a static library because C/C++ library rules differ
21494 CXX_LIB_SUFFIX='.la'
21495 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21498 CXX_LIB_SUFFIX='_g.a'
21499 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21502 CXX_LIB_SUFFIX='_p.a'
21503 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21506 case $cf_cv_system_name in
21508 CXX_LIB_SUFFIX='.so'
21509 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21511 (cygwin*|msys*|mingw*)
21512 CXX_LIB_SUFFIX='.dll'
21513 CXX_DEP_SUFFIX='.dll.a'
21516 CXX_LIB_SUFFIX='.dylib'
21517 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21522 CXX_LIB_SUFFIX='.so'
21523 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21526 CXX_LIB_SUFFIX='.sl'
21527 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21532 CXX_LIB_SUFFIX='.so'
21533 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21538 CXX_LIB_SUFFIX='.a'
21539 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
21542 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
21544 CXX_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_LIB_SUFFIX}"
21545 CXX_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_DEP_SUFFIX}"
21549 echo "$as_me:21549: result: $CXX_LIB_SUFFIX" >&5
21550 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
21554 # do not want -ldl in build except as needed for -lncurses dependency
21555 if test "x$with_dlsym" = xyes ; then
21556 if test $DFT_LWR_MODEL = shared || \
21557 test $DFT_LWR_MODEL = libtool ; then
21559 # remove dl library from $LIBS
21560 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
21564 ### Set up low-level terminfo dependencies for makefiles.
21566 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
21567 # do not need libdl
21569 if test "x$with_dlsym" = xyes ; then
21571 # remove dl library from $SHLIB_LIST
21572 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
21576 USE_ARG_SUFFIX="${DFT_ARG_SUFFIX}${EXTRA_SUFFIX}"
21577 USE_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}"
21578 USE_CFG_SUFFIX=${DFT_ARG_SUFFIX}${cf_cv_abi_version}
21579 if test -n "$EXTRA_SUFFIX" && test "x$EXTRA_SUFFIX" != "x${cf_cv_abi_version}"
21581 USE_CFG_SUFFIX="${USE_CFG_SUFFIX}${EXTRA_SUFFIX}"
21584 if test "$with_ticlib" != no ; then
21586 if test "x$with_ticlib" != xyes ; then
21587 TICS_NAME=$with_ticlib
21588 TICS_ARG_SUFFIX="${with_ticlib}`echo ${USE_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
21589 TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
21590 TICS_LIB_SUFFIX="${with_ticlib}"
21592 TICS_ARG_SUFFIX="${TICS_NAME}${USE_ARG_SUFFIX}"
21593 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
21594 TICS_LIB_SUFFIX="${TICS_NAME}${USE_LIB_SUFFIX}"
21596 TICS_LDFLAGS="-L${LIB_DIR}"
21597 TICS_LIBS="-l${TICS_LIB_SUFFIX}"
21599 TICS_LDFLAGS="-L${LIB_DIR}"
21600 TICS_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
21603 if test "$with_termlib" != no ; then
21605 if test "x$with_termlib" != xyes ; then
21606 TINFO_NAME=$with_termlib
21607 TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${USE_LIB_SUFFIX}//"`"
21608 TINFO_ARG_SUFFIX="${with_termlib}`echo ${USE_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
21609 TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
21610 TINFO_LIB_SUFFIX="${with_termlib}"
21612 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
21613 TINFO_ARG_SUFFIX="${TINFO_NAME}${USE_ARG_SUFFIX}"
21614 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
21615 TINFO_LIB_SUFFIX="${TINFO_NAME}${USE_LIB_SUFFIX}"
21618 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
21619 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
21620 if test "$DFT_LWR_MODEL" = "libtool"; then
21621 TEST_ARGS="${TEST_DEPS}"
21622 TEST_ARG2="${TEST_DEP2}"
21623 TINFO_LDFLAGS="-L${LIB_DIR}"
21624 TINFO_LIBS="$TEST_ARGS"
21625 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
21626 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
21628 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
21629 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
21630 if test "x$with_term_driver" != xno ; then
21631 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
21632 TICS_LIBS="$TICS_LIBS -l${LIB_NAME}${USE_ARG_SUFFIX}"
21633 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
21635 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
21636 TINFO_LIBS="$TEST_ARGS"
21638 TINFO_LDFLAGS="-L${LIB_DIR}"
21639 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
21642 # the next lines are needed for linking libtic over libncurses
21643 TINFO_NAME=${LIB_NAME}
21644 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
21645 TINFO_ARG_SUFFIX=${LIB_NAME}${USE_ARG_SUFFIX}
21646 if test "x$with_tic_depends" = xyes ; then
21647 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
21649 TICS_LIST="$SHLIB_LIST"
21652 TINFO_LDFLAGS="-L${LIB_DIR}"
21653 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
21656 if test "$DFT_LWR_MODEL" = shared ; then
21657 case $cf_cv_system_name in
21659 # "lib" files have ".dll.a" suffix, "cyg"or "msys-" files have ".dll"
21665 if test "x$with_dlsym" = xyes ; then
21667 # remove dl library from $TICS_LIST
21668 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
21672 if test "$DFT_LWR_MODEL" = "libtool"; then
21677 TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'`
21679 case $DFT_LWR_MODEL in
21680 (normal|debug|profile)
21682 if test "$GCC" = yes ; then
21683 case $cf_cv_system_name in
21684 (OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*)
21688 (*) # normally, except when broken
21689 LDFLAGS_STATIC=-static
21690 LDFLAGS_SHARED=-dynamic
21694 case $cf_cv_system_name in
21695 (aix[4-7]*) # from ld manpage
21696 LDFLAGS_STATIC=-bstatic
21697 LDFLAGS_SHARED=-bdynamic
21699 (hpux*) # from ld manpage for hpux10.20, hpux11.11
21700 # We could also use just "archive" and "shared".
21701 LDFLAGS_STATIC=-Wl,-a,archive_shared
21702 LDFLAGS_SHARED=-Wl,-a,shared_archive
21704 (irix*) # from ld manpage IRIX64
21705 LDFLAGS_STATIC=-Bstatic
21706 LDFLAGS_SHARED=-Bdynamic
21708 (osf[45]*) # from ld manpage osf4.0d, osf5.1
21709 # alternative "-oldstyle_liblookup" (not in cc manpage)
21710 LDFLAGS_STATIC=-noso
21711 LDFLAGS_SHARED=-so_archive
21714 LDFLAGS_STATIC=-Bstatic
21715 LDFLAGS_SHARED=-Bdynamic
21720 if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED"
21722 echo "$as_me:21722: checking if linker supports switching between static/dynamic" >&5
21723 echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6
21725 rm -f libconftest.a
21726 cat >conftest.$ac_ext <<EOF
21727 #line 21727 "configure"
21729 int cf_ldflags_static(FILE *fp) { return fflush(fp); }
21731 if { (eval echo "$as_me:21731: \"$ac_compile\"") >&5
21732 (eval $ac_compile) 2>&5
21734 echo "$as_me:21734: \$? = $ac_status" >&5
21735 (exit $ac_status); } ; then
21736 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null
21737 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null
21741 cf_save_LIBS="$LIBS"
21743 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS"
21744 cat >conftest.$ac_ext <<_ACEOF
21745 #line 21745 "configure"
21746 #include "confdefs.h"
21748 #line 21748 "configure"
21750 int cf_ldflags_static(FILE *fp);
21756 return cf_ldflags_static(stdin);
21762 rm -f conftest.$ac_objext conftest$ac_exeext
21763 if { (eval echo "$as_me:21763: \"$ac_link\"") >&5
21764 (eval $ac_link) 2>&5
21766 echo "$as_me:21766: \$? = $ac_status" >&5
21767 (exit $ac_status); } &&
21768 { ac_try='test -s conftest$ac_exeext'
21769 { (eval echo "$as_me:21769: \"$ac_try\"") >&5
21770 (eval $ac_try) 2>&5
21772 echo "$as_me:21772: \$? = $ac_status" >&5
21773 (exit $ac_status); }; }; then
21775 # some linkers simply ignore the -dynamic
21776 case x`file conftest$ac_exeext 2>/dev/null` in
21778 cf_ldflags_static=no
21781 cf_ldflags_static=yes
21786 echo "$as_me: failed program was:" >&5
21787 cat conftest.$ac_ext >&5
21788 cf_ldflags_static=no
21790 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21792 rm -f libconftest.*
21793 LIBS="$cf_save_LIBS"
21795 echo "$as_me:21795: result: $cf_ldflags_static" >&5
21796 echo "${ECHO_T}$cf_ldflags_static" >&6
21798 if test $cf_ldflags_static != yes
21811 echo "$as_me:21811: checking where we will install curses.h" >&5
21812 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
21815 if test "$with_overwrite" = no && \
21816 ( test "x$includedir" = 'x${prefix}/include' || \
21817 test "x$includedir" = "x${prefix}/include" )
21819 includesubdir="/ncurses${USE_LIB_SUFFIX}"
21821 echo "$as_me:21821: result: ${includedir}${includesubdir}" >&5
21822 echo "${ECHO_T}${includedir}${includesubdir}" >&6
21824 ### Resolve a conflict between normal and wide-curses by forcing applications
21825 ### that will need libutf8 to add it to their configure script.
21826 if test "$with_overwrite" != no ; then
21827 if test "$NCURSES_LIBUTF8" = 1 ; then
21828 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
21829 { echo "$as_me:21829: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
21830 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
21833 WITH_OVERWRITE=$with_overwrite
21835 # used to separate tack out of the tree
21838 ### predefined stuff for the test programs
21840 cat >>confdefs.h <<\EOF
21841 #define HAVE_SLK_COLOR 1
21844 ### Construct the list of subdirectories for which we'll customize makefiles
21845 ### with the appropriate compile-rules.
21847 echo "$as_me:21847: checking for src modules" >&5
21848 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
21850 # dependencies and linker-arguments for test-programs
21851 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
21852 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
21853 if test "$DFT_LWR_MODEL" = "libtool"; then
21854 TEST_ARGS="${TEST_DEPS}"
21855 TEST_ARG2="${TEST_DEP2}"
21857 TEST_ARGS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
21858 TEST_ARG2="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARG2"
21861 PC_MODULES_TO_MAKE="ncurses${USE_ARG_SUFFIX}"
21863 for cf_dir in $modules_to_build
21865 if test -f $srcdir/$cf_dir/modules; then
21867 # We may/may not have tack in the distribution, though the
21869 if test $cf_dir = tack ; then
21870 if test ! -f $srcdir/${cf_dir}/${cf_dir}.h; then
21875 if test -z "$cf_cv_src_modules"; then
21876 cf_cv_src_modules=$cf_dir
21878 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
21881 # Make the ncurses_cfg.h file record the library interface files as
21882 # well. These are header files that are the same name as their
21883 # directory. Ncurses is the only library that does not follow
21885 if test $cf_dir = tack ; then
21887 elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
21889 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
21891 cat >>confdefs.h <<EOF
21892 #define HAVE_${cf_have_include}_H 1
21895 cat >>confdefs.h <<EOF
21896 #define HAVE_LIB${cf_have_include} 1
21899 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
21900 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEP2"
21901 if test "$DFT_LWR_MODEL" = "libtool"; then
21902 TEST_ARGS="${TEST_DEPS}"
21903 TEST_ARG2="${TEST_DEP2}"
21905 TEST_ARGS="-l${cf_dir}${USE_ARG_SUFFIX} $TEST_ARGS"
21906 TEST_ARG2="-l${cf_dir}${USE_ARG_SUFFIX} $TEST_ARG2"
21908 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ${cf_dir}${USE_ARG_SUFFIX}"
21912 echo "$as_me:21912: result: $cf_cv_src_modules" >&5
21913 echo "${ECHO_T}$cf_cv_src_modules" >&6
21915 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
21916 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
21919 if test "x$cf_with_manpages" != xno ; then
21920 SRC_SUBDIRS="$SRC_SUBDIRS man"
21922 SRC_SUBDIRS="$SRC_SUBDIRS include"
21923 for cf_dir in $cf_cv_src_modules
21925 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
21927 if test "x$cf_with_tests" != "xno" ; then
21928 SRC_SUBDIRS="$SRC_SUBDIRS test"
21930 # always make this, to install the ncurses-config script
21931 SRC_SUBDIRS="$SRC_SUBDIRS misc"
21932 if test "$cf_with_cxx_binding" != no; then
21933 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ncurses++${USE_ARG_SUFFIX}"
21934 SRC_SUBDIRS="$SRC_SUBDIRS c++"
21937 test "x$with_termlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TINFO_ARG_SUFFIX"
21938 test "x$with_ticlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TICS_ARG_SUFFIX"
21941 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = xyes && test -f $srcdir/Ada95/Makefile.in; then
21942 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
21943 ADA_SUBDIRS="gen src"
21944 if test "x$cf_with_tests" != "xno" ; then
21945 ADA_SUBDIRS="$ADA_SUBDIRS samples"
21950 for cf_dir in $SRC_SUBDIRS
21952 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
21955 if test -n "$ADA_SUBDIRS"; then
21956 for cf_dir in $ADA_SUBDIRS
21958 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
21963 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
21964 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${USE_CFG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
21965 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${USE_CFG_SUFFIX}-config.1:man/MKada_config.in"
21969 for cf_item in $cf_list_models
21973 (libtool) cf_subdir='obj_lo' ;;
21974 (normal) cf_subdir='objects' ;;
21975 (debug) cf_subdir='obj_g' ;;
21976 (profile) cf_subdir='obj_p' ;;
21978 case $cf_cv_system_name in
21980 cf_subdir='objects' ;;
21982 cf_subdir='obj_s' ;;
21986 for cf_item2 in $DIRS_TO_MAKE
21988 test $cf_item2 = $cf_subdir && break
21990 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
21992 for cf_dir in $DIRS_TO_MAKE
21994 test ! -d $cf_dir && mkdir $cf_dir
21997 # symbols that differ when compiling Ada95 by itself.
21998 NCURSES_SHLIB2=$SHELL' $(top_srcdir)/misc/shlib'
22000 # values to use as strings
22002 cat >>confdefs.h <<EOF
22003 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
22006 cat >>confdefs.h <<EOF
22007 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
22010 ### Now that we're done running tests, add the compiler-warnings, if any
22015 cf_new_extra_cppflags=
22017 for cf_add_cflags in $EXTRA_CFLAGS
22019 case $cf_fix_cppflags in
22021 case $cf_add_cflags in
22022 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
22023 case $cf_add_cflags in
22025 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
22027 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
22028 && test -z "${cf_tst_cflags}" \
22029 && cf_fix_cppflags=yes
22031 if test $cf_fix_cppflags = yes ; then
22032 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
22034 elif test "${cf_tst_cflags}" = "\"'" ; then
22035 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
22040 case "$CPPFLAGS" in
22044 case $cf_add_cflags in
22046 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
22048 CPPFLAGS=`echo "$CPPFLAGS" | \
22049 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
22050 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
22054 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
22059 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
22064 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
22066 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
22068 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
22069 && test -z "${cf_tst_cflags}" \
22070 && cf_fix_cppflags=no
22075 if test -n "$cf_new_cflags" ; then
22077 CFLAGS="$CFLAGS $cf_new_cflags"
22080 if test -n "$cf_new_cppflags" ; then
22082 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
22085 if test -n "$cf_new_extra_cppflags" ; then
22087 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
22090 ### Define substitutions for header files to avoid name-pollution
22092 if test "x$cf_cv_have_tcgetattr" = xyes ; then
22098 if test "x$ac_cv_header_stdint_h" = xyes ; then
22104 if test "x$ac_cv_header_termio_h" = xyes ; then
22110 if test "x$ac_cv_header_termios_h" = xyes ; then
22116 ################################################################################
22117 test "x$use_database" = xyes && \
22118 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
22120 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
22121 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${USE_CFG_SUFFIX}-config.1:man/MKncu_config.in"
22123 if test "x$enable_pc_files" = xyes ; then \
22124 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
22130 # Extract the first word of "tic", so it can be a program name with args.
22131 set dummy tic; ac_word=$2
22132 echo "$as_me:22132: checking for $ac_word" >&5
22133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22134 if test "${ac_cv_path_TIC_PATH+set}" = set; then
22135 echo $ECHO_N "(cached) $ECHO_C" >&6
22139 ac_cv_path_TIC_PATH="$TIC_PATH" # Let the user override the test with a path.
22142 ac_save_IFS=$IFS; IFS=$ac_path_separator
22143 ac_dummy="$PATH:/usr/local/ncurses/bin"
22144 for ac_dir in $ac_dummy; do
22146 test -z "$ac_dir" && ac_dir=.
22147 if $as_executable_p "$ac_dir/$ac_word"; then
22148 ac_cv_path_TIC_PATH="$ac_dir/$ac_word"
22149 echo "$as_me:22149: found $ac_dir/$ac_word" >&5
22154 test -z "$ac_cv_path_TIC_PATH" && ac_cv_path_TIC_PATH="unknown"
22158 TIC_PATH=$ac_cv_path_TIC_PATH
22160 if test -n "$TIC_PATH"; then
22161 echo "$as_me:22161: result: $TIC_PATH" >&5
22162 echo "${ECHO_T}$TIC_PATH" >&6
22164 echo "$as_me:22164: result: no" >&5
22165 echo "${ECHO_T}no" >&6
22168 if test -n "$FALLBACK_LIST"
22170 if test "$TIC_PATH" = unknown
22172 { echo "$as_me:22172: WARNING: no tic program found for fallbacks" >&5
22173 echo "$as_me: WARNING: no tic program found for fallbacks" >&2;}
22177 if test "x$cf_with_tests" != xno ; then
22183 ADAHTML_DIR=../../doc/html/ada
22185 # these could be configurable, but are not currently
22191 # workaround for g++ versus Solaris (20131116)
22192 case $cf_cv_system_name in
22194 case "x$CPPFLAGS" in
22195 (*-D_XOPEN_SOURCE_EXTENDED*)
22196 test -n "$verbose" && echo " moving _XOPEN_SOURCE_EXTENDED to work around g++ problem" 1>&6
22198 echo "${as_me:-configure}:22198: testing moving _XOPEN_SOURCE_EXTENDED to work around g++ problem ..." 1>&5
22200 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
22201 CPPFLAGS=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/-D_XOPEN_SOURCE_EXTENDED//'`
22207 # Help to automatically enable the extended curses features when using either
22208 # the *-config or the ".pc" files by adding defines.
22209 echo "$as_me:22209: checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script" >&5
22210 echo $ECHO_N "checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script... $ECHO_C" >&6
22212 for cf_loop1 in $CPPFLAGS_after_XOPEN
22215 for cf_loop2 in $CPPFLAGS_before_XOPEN
22217 if test "x$cf_loop1" = "x$cf_loop2"
22223 test "$cf_found" = no && PKG_CFLAGS="$PKG_CFLAGS $cf_loop1"
22225 echo "$as_me:22225: result: $PKG_CFLAGS" >&5
22226 echo "${ECHO_T}$PKG_CFLAGS" >&6
22228 # AC_CHECK_SIZEOF demands a literal parameter, no variables. So we do this.
22229 case "x$NCURSES_OSPEED" in
22238 cat >>confdefs.h <<EOF
22239 #define NCURSES_OSPEED_COMPAT $cf_compatible
22242 case "x$cf_cv_typeof_chtype" in
22243 (xshort|xint|xlong)
22244 cf_cv_typeof_chtype="unsigned $cf_cv_typeof_chtype"
22248 case "x$cf_cv_typeof_mmask_t" in
22249 (xshort|xint|xlong)
22250 cf_cv_typeof_mmask_t="unsigned $cf_cv_typeof_mmask_t"
22254 # substitute into misc/Makefile to suppress
22255 # (un)install.data from the
22256 # (un)install rules.
22257 if test "x$cf_with_db_install" = "xno"; then
22259 MISC_UNINSTALL_DATA=
22261 MISC_INSTALL_DATA=install.data
22262 MISC_UNINSTALL_DATA=uninstall.data
22267 if test -n "$PACKAGE"
22269 PACKAGE="${PACKAGE}${DFT_ARG_SUFFIX}"
22271 echo "package: $PACKAGE"
22277 if test -n "$RESULTING_SYMS"
22279 cf_filter_syms=$cf_dft_filter_syms
22280 test -n "$verbose" && echo " will map symbols to ABI=$cf_cv_abi_version" 1>&6
22282 echo "${as_me:-configure}:22282: testing will map symbols to ABI=$cf_cv_abi_version ..." 1>&5
22286 if test "x$WILDCARD_SYMS" = xno
22291 UNALTERED_SYMS=`echo "$RESULTING_SYMS" | sed -e 's/\\$/\\\\$/g'`
22292 if test $cf_filter_syms = yes
22294 RESULTING_SYMS=resulting.map
22297 if test "x$cross_compiling" = xyes ; then
22298 ADAGEN_LDFLAGS='$(CROSS_LDFLAGS)'
22300 ADAGEN_LDFLAGS='$(NATIVE_LDFLAGS)'
22303 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"
22304 ac_config_commands="$ac_config_commands default"
22305 cat >confcache <<\_ACEOF
22306 # This file is a shell script that caches the results of configure
22307 # tests run on this system so they can be shared between configure
22308 # scripts and configure runs, see configure's option --config-cache.
22309 # It is not useful on other systems. If it contains results you don't
22310 # want to keep, you may remove or edit it.
22312 # config.status only pays attention to the cache file if you give it
22313 # the --recheck option to rerun configure.
22315 # `ac_cv_env_foo' variables (set or unset) will be overriden when
22316 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22317 # following values.
22321 # The following way of writing the cache mishandles newlines in values,
22322 # but we know of no workaround that is simple, portable, and efficient.
22323 # So, don't put newlines in cache variables' values.
22324 # Ultrix sh set writes to stderr and can't be redirected directly,
22325 # and sets the high bit in the cache file unless we assign to the vars.
22328 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22330 # `set' does not quote correctly, so add quotes (double-quote
22331 # substitution turns \\\\ into \\, and sed turns \\ into \).
22334 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22337 # `set' quotes correctly as required by POSIX, so do not add quotes.
22339 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22346 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22348 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22350 if cmp -s $cache_file confcache; then :; else
22351 if test -w $cache_file; then
22352 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22353 cat confcache >$cache_file
22355 echo "not updating unwritable cache $cache_file"
22360 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22361 # Let make expand exec_prefix.
22362 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22364 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22365 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22366 # trailing colons and then remove the whole line if VPATH becomes empty
22367 # (actually we leave an empty line to preserve line numbers).
22368 if test "x$srcdir" = x.; then
22369 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22370 s/:*\$(srcdir):*/:/;
22371 s/:*\${srcdir}:*/:/;
22373 s/^\([^=]*=[ ]*\):*/\1/;
22379 DEFS=-DHAVE_CONFIG_H
22381 : ${CONFIG_STATUS=./config.status}
22382 ac_clean_files_save=$ac_clean_files
22383 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22384 { echo "$as_me:22384: creating $CONFIG_STATUS" >&5
22385 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22386 cat >$CONFIG_STATUS <<_ACEOF
22388 # Generated automatically by configure.
22389 # Run this file to recreate the current configuration.
22390 # Compiler output produced by configure, useful for debugging
22391 # configure, is in config.log if it exists.
22394 SHELL=\${CONFIG_SHELL-$SHELL}
22395 ac_cs_invocation="\$0 \$@"
22399 cat >>$CONFIG_STATUS <<\_ACEOF
22400 # Be Bourne compatible
22401 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22404 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22408 # Name of the executable.
22409 as_me=`echo "$0" |sed 's,.*[\\/],,'`
22411 if expr a : '\(a\)' >/dev/null 2>&1; then
22417 rm -f conf$$ conf$$.exe conf$$.file
22419 if ln -s conf$$.file conf$$ 2>/dev/null; then
22420 # We could just check for DJGPP; but this test a) works b) is more generic
22421 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22422 if test -f conf$$.exe; then
22423 # Don't use ln at all; we don't have any links
22428 elif ln conf$$.file conf$$ 2>/dev/null; then
22433 rm -f conf$$ conf$$.exe conf$$.file
22435 as_executable_p="test -f"
22437 # Support unset when possible.
22438 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22445 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
22446 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
22447 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
22448 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
22449 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
22450 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
22451 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
22452 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
22455 # We need space, tab and new line, in precisely that order.
22461 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
22467 # Files that config.status was made for.
22468 if test -n "$ac_config_files"; then
22469 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22472 if test -n "$ac_config_headers"; then
22473 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22476 if test -n "$ac_config_links"; then
22477 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22480 if test -n "$ac_config_commands"; then
22481 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22484 cat >>$CONFIG_STATUS <<\EOF
22487 \`$as_me' instantiates files from templates according to the
22488 current configuration.
22490 Usage: $0 [OPTIONS] [FILE]...
22492 -h, --help print this help, then exit
22493 -V, --version print version number, then exit
22494 -d, --debug don't remove temporary files
22495 --recheck update $as_me by reconfiguring in the same conditions
22496 --file=FILE[:TEMPLATE]
22497 instantiate the configuration file FILE
22498 --header=FILE[:TEMPLATE]
22499 instantiate the configuration header FILE
22501 Configuration files:
22504 Configuration headers:
22507 Configuration commands:
22510 Report bugs to <dickey@invisible-island.net>."
22513 cat >>$CONFIG_STATUS <<EOF
22516 configured by $0, generated by GNU Autoconf 2.52.20141204,
22517 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22519 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
22520 Free Software Foundation, Inc.
22521 This config.status script is free software; the Free Software Foundation
22522 gives unlimited permission to copy, distribute and modify it."
22527 cat >>$CONFIG_STATUS <<\EOF
22528 # If no file are specified by the user, then we need to provide default
22529 # value. By we need to know if files were specified by the user.
22535 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22536 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22538 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
22542 *) # This is not an option, so the user has probably given explicit
22544 ac_need_defaults=false;;
22548 # Handling of the options.
22550 cat >>$CONFIG_STATUS <<EOF
22551 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22552 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
22553 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
22555 cat >>$CONFIG_STATUS <<\EOF
22556 --version | --vers* | -V )
22557 echo "$ac_cs_version"; exit 0 ;;
22559 # Conflict between --help and --header
22560 { { echo "$as_me:22560: error: ambiguous option: $1
22561 Try \`$0 --help' for more information." >&5
22562 echo "$as_me: error: ambiguous option: $1
22563 Try \`$0 --help' for more information." >&2;}
22564 { (exit 1); exit 1; }; };;
22565 --help | --hel | -h )
22566 echo "$ac_cs_usage"; exit 0 ;;
22567 --debug | --d* | -d )
22569 --file | --fil | --fi | --f )
22571 CONFIG_FILES="$CONFIG_FILES $1"
22572 ac_need_defaults=false;;
22573 --header | --heade | --head | --hea )
22575 CONFIG_HEADERS="$CONFIG_HEADERS $1"
22576 ac_need_defaults=false;;
22578 # This is an error.
22579 -*) { { echo "$as_me:22579: error: unrecognized option: $1
22580 Try \`$0 --help' for more information." >&5
22581 echo "$as_me: error: unrecognized option: $1
22582 Try \`$0 --help' for more information." >&2;}
22583 { (exit 1); exit 1; }; } ;;
22585 *) ac_config_targets="$ac_config_targets $1" ;;
22594 ## ----------------------- ##
22595 ## Running config.status. ##
22596 ## ----------------------- ##
22598 This file was extended by $as_me 2.52.20141204, executed with
22599 CONFIG_FILES = $CONFIG_FILES
22600 CONFIG_HEADERS = $CONFIG_HEADERS
22601 CONFIG_LINKS = $CONFIG_LINKS
22602 CONFIG_COMMANDS = $CONFIG_COMMANDS
22603 > $ac_cs_invocation
22604 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22609 cat >>$CONFIG_STATUS <<EOF
22611 # INIT-COMMANDS section.
22614 ### Special initialization commands, used to pass information from the
22615 ### configuration-run into config.status
22618 ALTERNATE_SYMS="$ALTERNATE_SYMS"
22619 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
22620 DFT_LWR_MODEL="$DFT_LWR_MODEL"
22622 EXTRA_SUFFIX="$EXTRA_SUFFIX"
22623 LDCONFIG="$LDCONFIG"
22624 LIBTOOL_VERSION="$LIBTOOL_VERSION"
22625 LIB_NAME="$LIB_NAME"
22626 LIB_PREFIX="$LIB_PREFIX"
22627 LIB_SUBSETS="$LIB_SUBSETS"
22628 LIB_SUFFIX="$LIB_SUFFIX"
22629 LIB_TRACING="$LIB_TRACING"
22631 MAKE_TERMINFO="$MAKE_TERMINFO"
22632 NCURSES_MAJOR="$NCURSES_MAJOR"
22633 NCURSES_MINOR="$NCURSES_MINOR"
22634 NCURSES_OSPEED="$NCURSES_OSPEED"
22635 NCURSES_PATCH="$NCURSES_PATCH"
22636 SRC_SUBDIRS="$SRC_SUBDIRS"
22637 TERMINFO="$TERMINFO"
22638 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
22639 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
22640 TICS_NAME="$TICS_NAME"
22641 TIC_PATH="$TIC_PATH"
22642 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
22643 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
22644 TINFO_NAME="$TINFO_NAME"
22645 TINFO_SUFFIX="$TINFO_SUFFIX"
22646 UNALTERED_SYMS="$UNALTERED_SYMS"
22647 USE_ARG_SUFFIX="$USE_ARG_SUFFIX"
22648 USE_CFG_SUFFIX="$USE_CFG_SUFFIX"
22649 USE_LIB_SUFFIX="$USE_LIB_SUFFIX"
22650 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
22651 WILDCARD_SYMS="$WILDCARD_SYMS"
22652 WITH_CURSES_H="$with_curses_h"
22653 WITH_ECHO="${enable_echo:=yes}"
22654 WITH_OVERWRITE="$with_overwrite"
22655 cf_LIST_MODELS="$cf_list_models"
22656 cf_cv_abi_version="$cf_cv_abi_version"
22657 cf_cv_do_relink="$cf_cv_do_relink"
22658 cf_cv_do_symlinks="$cf_cv_do_symlinks"
22659 cf_cv_enable_lp64="$cf_cv_enable_lp64"
22660 cf_cv_enable_opaque="$cf_cv_enable_opaque"
22661 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
22662 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
22663 cf_cv_prog_gnat_correct=$cf_cv_prog_gnat_correct
22664 cf_cv_rel_version="$cf_cv_rel_version"
22665 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
22666 cf_cv_shared_soname='$cf_cv_shared_soname'
22667 cf_cv_shlib_version="$cf_cv_shlib_version"
22668 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
22669 cf_cv_system_name="$cf_cv_system_name"
22670 cf_cv_term_driver="$with_term_driver"
22671 cf_with_ada="$cf_with_ada"
22672 cf_with_cxx_binding="$cf_with_cxx_binding"
22673 cf_with_db_install="$cf_with_db_install"
22674 cf_with_manpages="$cf_with_manpages"
22675 cf_with_tests="$cf_with_tests"
22678 with_shared_cxx="$with_shared_cxx"
22682 cat >>$CONFIG_STATUS <<\EOF
22683 for ac_config_target in $ac_config_targets
22685 case "$ac_config_target" in
22686 # Handling of arguments.
22687 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
22688 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
22689 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
22690 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
22691 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
22692 "$SUB_SCRIPTS" ) CONFIG_FILES="$CONFIG_FILES $SUB_SCRIPTS" ;;
22693 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
22694 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22695 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22696 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
22697 *) { { echo "$as_me:22697: error: invalid argument: $ac_config_target" >&5
22698 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22699 { (exit 1); exit 1; }; };;
22703 # If the user did not use the arguments to specify the items to instantiate,
22704 # then the envvar interface is used. Set only those that are not.
22705 # We use the long form for the default assignment because of an extremely
22706 # bizarre bug on SunOS 4.1.3.
22707 if $ac_need_defaults; then
22708 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22709 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22710 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22713 # Create a temporary directory, and hook for its removal unless debugging.
22716 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22717 trap '{ (exit 1); exit 1; }' 1 2 13 15
22720 # Create a (secure) tmp directory for tmp files.
22723 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
22724 test -n "$tmp" && test -d "$tmp"
22727 tmp=$TMPDIR/cs$$-$RANDOM
22728 (umask 077 && mkdir $tmp)
22731 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
22732 { (exit 1); exit 1; }
22737 cat >>$CONFIG_STATUS <<EOF
22740 # CONFIG_FILES section.
22743 # No need to generate the scripts if there are no CONFIG_FILES.
22744 # This happens for instance when ./config.status config.h
22745 if test -n "\$CONFIG_FILES"; then
22746 # Protect against being on the right side of a sed subst in config.status.
22747 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22748 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22749 s,@SHELL@,$SHELL,;t t
22750 s,@exec_prefix@,$exec_prefix,;t t
22751 s,@prefix@,$prefix,;t t
22752 s,@program_transform_name@,$program_transform_name,;t t
22753 s,@bindir@,$bindir,;t t
22754 s,@sbindir@,$sbindir,;t t
22755 s,@libexecdir@,$libexecdir,;t t
22756 s,@datarootdir@,$datarootdir,;t t
22757 s,@datadir@,$datadir,;t t
22758 s,@sysconfdir@,$sysconfdir,;t t
22759 s,@sharedstatedir@,$sharedstatedir,;t t
22760 s,@localstatedir@,$localstatedir,;t t
22761 s,@libdir@,$libdir,;t t
22762 s,@includedir@,$includedir,;t t
22763 s,@oldincludedir@,$oldincludedir,;t t
22764 s,@infodir@,$infodir,;t t
22765 s,@mandir@,$mandir,;t t
22766 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22767 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22768 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22769 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22770 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22771 s,@build_alias@,$build_alias,;t t
22772 s,@host_alias@,$host_alias,;t t
22773 s,@target_alias@,$target_alias,;t t
22774 s,@ECHO_C@,$ECHO_C,;t t
22775 s,@ECHO_N@,$ECHO_N,;t t
22776 s,@ECHO_T@,$ECHO_T,;t t
22777 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22778 s,@DEFS@,$DEFS,;t t
22779 s,@LIBS@,$LIBS,;t t
22780 s,@top_builddir@,$top_builddir,;t t
22781 s,@EGREP@,$EGREP,;t t
22782 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
22783 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
22784 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
22785 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
22786 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
22787 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
22788 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
22789 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
22790 s,@VERSION@,$VERSION,;t t
22791 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
22792 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
22793 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
22794 s,@PACKAGE@,$PACKAGE,;t t
22795 s,@build@,$build,;t t
22796 s,@build_cpu@,$build_cpu,;t t
22797 s,@build_vendor@,$build_vendor,;t t
22798 s,@build_os@,$build_os,;t t
22799 s,@host@,$host,;t t
22800 s,@host_cpu@,$host_cpu,;t t
22801 s,@host_vendor@,$host_vendor,;t t
22802 s,@host_os@,$host_os,;t t
22803 s,@target@,$target,;t t
22804 s,@target_cpu@,$target_cpu,;t t
22805 s,@target_vendor@,$target_vendor,;t t
22806 s,@target_os@,$target_os,;t t
22808 s,@CFLAGS@,$CFLAGS,;t t
22809 s,@LDFLAGS@,$LDFLAGS,;t t
22810 s,@CPPFLAGS@,$CPPFLAGS,;t t
22811 s,@ac_ct_CC@,$ac_ct_CC,;t t
22812 s,@EXEEXT@,$EXEEXT,;t t
22813 s,@OBJEXT@,$OBJEXT,;t t
22814 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
22816 s,@LDCONFIG@,$LDCONFIG,;t t
22818 s,@CXXFLAGS@,$CXXFLAGS,;t t
22819 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22821 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22822 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22823 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22824 s,@LINT@,$LINT,;t t
22825 s,@LINT_OPTS@,$LINT_OPTS,;t t
22826 s,@LN_S@,$LN_S,;t t
22827 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22828 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
22829 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
22830 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
22831 s,@PC_MODULE_SUFFIX@,$PC_MODULE_SUFFIX,;t t
22832 s,@SET_MAKE@,$SET_MAKE,;t t
22833 s,@CTAGS@,$CTAGS,;t t
22834 s,@ETAGS@,$ETAGS,;t t
22835 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
22836 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
22837 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
22838 s,@RANLIB@,$RANLIB,;t t
22839 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22841 s,@ac_ct_LD@,$ac_ct_LD,;t t
22843 s,@ac_ct_AR@,$ac_ct_AR,;t t
22845 s,@ac_ct_NM@,$ac_ct_NM,;t t
22846 s,@ARFLAGS@,$ARFLAGS,;t t
22847 s,@DESTDIR@,$DESTDIR,;t t
22848 s,@BUILD_CC@,$BUILD_CC,;t t
22849 s,@BUILD_CPP@,$BUILD_CPP,;t t
22850 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
22851 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
22852 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
22853 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
22854 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
22855 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
22856 s,@cf_list_models@,$cf_list_models,;t t
22857 s,@ABI_VERSION@,$ABI_VERSION,;t t
22858 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
22859 s,@LIBTOOL@,$LIBTOOL,;t t
22860 s,@ac_ct_LIBTOOL@,$ac_ct_LIBTOOL,;t t
22861 s,@LT_UNDEF@,$LT_UNDEF,;t t
22862 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
22863 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
22864 s,@LIB_CREATE@,$LIB_CREATE,;t t
22865 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
22866 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
22867 s,@LIB_PREP@,$LIB_PREP,;t t
22868 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
22869 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
22870 s,@LIB_LINK@,$LIB_LINK,;t t
22871 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
22872 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
22873 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
22874 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
22875 s,@TICS_NAME@,$TICS_NAME,;t t
22876 s,@TINFO_NAME@,$TINFO_NAME,;t t
22877 s,@LIB_NAME@,$LIB_NAME,;t t
22878 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
22879 s,@CC_G_OPT@,$CC_G_OPT,;t t
22880 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
22881 s,@LD_MODEL@,$LD_MODEL,;t t
22882 s,@shlibdir@,$shlibdir,;t t
22883 s,@MAKE_DLLS@,$MAKE_DLLS,;t t
22884 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
22885 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
22886 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
22887 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
22888 s,@RM_SHARED_OPTS@,$RM_SHARED_OPTS,;t t
22889 s,@LINK_PROGS@,$LINK_PROGS,;t t
22890 s,@LINK_TESTS@,$LINK_TESTS,;t t
22891 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
22892 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
22893 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
22894 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
22895 s,@RPATH_LIST@,$RPATH_LIST,;t t
22896 s,@EXPORT_SYMS@,$EXPORT_SYMS,;t t
22897 s,@RESULTING_SYMS@,$RESULTING_SYMS,;t t
22898 s,@VERSIONED_SYMS@,$VERSIONED_SYMS,;t t
22899 s,@WILDCARD_SYMS@,$WILDCARD_SYMS,;t t
22900 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
22901 s,@EXTRA_SUFFIX@,$EXTRA_SUFFIX,;t t
22902 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
22903 s,@NCURSES_USE_DATABASE@,$NCURSES_USE_DATABASE,;t t
22904 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
22905 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
22906 s,@XTERM_KBS@,$XTERM_KBS,;t t
22907 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
22908 s,@TERMINFO@,$TERMINFO,;t t
22909 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
22910 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
22911 s,@TERMPATH@,$TERMPATH,;t t
22912 s,@NCURSES_USE_TERMCAP@,$NCURSES_USE_TERMCAP,;t t
22913 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
22914 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
22915 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
22916 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
22917 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
22918 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
22919 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
22920 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
22921 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
22922 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
22923 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
22924 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
22925 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
22926 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
22927 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
22928 s,@NCURSES_TPARM_ARG@,$NCURSES_TPARM_ARG,;t t
22929 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
22930 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
22931 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
22932 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
22933 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
22934 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
22935 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
22936 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
22937 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
22938 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
22939 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
22940 s,@PTHREAD@,$PTHREAD,;t t
22941 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
22942 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
22943 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
22944 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
22945 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
22946 s,@ECHO_LT@,$ECHO_LT,;t t
22947 s,@ECHO_LD@,$ECHO_LD,;t t
22948 s,@RULE_CC@,$RULE_CC,;t t
22949 s,@SHOW_CC@,$SHOW_CC,;t t
22950 s,@ECHO_CC@,$ECHO_CC,;t t
22951 s,@ECHO_LINK@,$ECHO_LINK,;t t
22952 s,@ADAFLAGS@,$ADAFLAGS,;t t
22953 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
22954 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
22955 s,@ADA_TRACE@,$ADA_TRACE,;t t
22956 s,@MATH_LIB@,$MATH_LIB,;t t
22957 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
22958 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
22959 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
22960 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
22961 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
22962 s,@TEST_LIBS@,$TEST_LIBS,;t t
22963 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
22964 s,@CXXCPP@,$CXXCPP,;t t
22965 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
22966 s,@CXX_AR@,$CXX_AR,;t t
22967 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
22968 s,@CXXLIBS@,$CXXLIBS,;t t
22969 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
22970 s,@gnat_exists@,$gnat_exists,;t t
22971 s,@M4_exists@,$M4_exists,;t t
22972 s,@cf_ada_make@,$cf_ada_make,;t t
22973 s,@GNATPREP_OPTS@,$GNATPREP_OPTS,;t t
22974 s,@cf_compile_generics@,$cf_compile_generics,;t t
22975 s,@cf_generic_objects@,$cf_generic_objects,;t t
22976 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
22977 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
22978 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
22979 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
22980 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
22981 s,@cf_ada_package@,$cf_ada_package,;t t
22982 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
22983 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
22984 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
22985 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
22986 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
22987 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
22988 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
22989 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
22990 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
22991 s,@USE_ARG_SUFFIX@,$USE_ARG_SUFFIX,;t t
22992 s,@USE_CFG_SUFFIX@,$USE_CFG_SUFFIX,;t t
22993 s,@USE_LIB_SUFFIX@,$USE_LIB_SUFFIX,;t t
22994 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
22995 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
22996 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
22997 s,@TICS_LDFLAGS@,$TICS_LDFLAGS,;t t
22998 s,@TICS_LIBS@,$TICS_LIBS,;t t
22999 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
23000 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
23001 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
23002 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
23003 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
23004 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
23005 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
23006 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
23007 s,@includesubdir@,$includesubdir,;t t
23008 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
23009 s,@TICS_LIST@,$TICS_LIST,;t t
23010 s,@TINFO_LIST@,$TINFO_LIST,;t t
23011 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
23012 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
23013 s,@TEST_ARGS@,$TEST_ARGS,;t t
23014 s,@TEST_DEPS@,$TEST_DEPS,;t t
23015 s,@TEST_ARG2@,$TEST_ARG2,;t t
23016 s,@TEST_DEP2@,$TEST_DEP2,;t t
23017 s,@PC_MODULES_TO_MAKE@,$PC_MODULES_TO_MAKE,;t t
23018 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
23019 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
23020 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
23021 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
23022 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
23023 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
23024 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
23025 s,@cross_compiling@,$cross_compiling,;t t
23026 s,@TIC_PATH@,$TIC_PATH,;t t
23027 s,@MAKE_TESTS@,$MAKE_TESTS,;t t
23028 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
23029 s,@PANEL_NAME@,$PANEL_NAME,;t t
23030 s,@MENU_NAME@,$MENU_NAME,;t t
23031 s,@FORM_NAME@,$FORM_NAME,;t t
23032 s,@CXX_NAME@,$CXX_NAME,;t t
23033 s,@PKG_CFLAGS@,$PKG_CFLAGS,;t t
23034 s,@MISC_INSTALL_DATA@,$MISC_INSTALL_DATA,;t t
23035 s,@MISC_UNINSTALL_DATA@,$MISC_UNINSTALL_DATA,;t t
23036 s,@UNALTERED_SYMS@,$UNALTERED_SYMS,;t t
23037 s,@ADAGEN_LDFLAGS@,$ADAGEN_LDFLAGS,;t t
23042 cat >>$CONFIG_STATUS <<\EOF
23043 # Split the substitutions into bite-sized pieces for seds with
23044 # small command number limits, like on Digital OSF/1 and HP-UX.
23045 ac_max_sed_lines=48
23046 ac_sed_frag=1 # Number of current file.
23047 ac_beg=1 # First line for current file.
23048 ac_end=$ac_max_sed_lines # Line after last line for current file.
23051 while $ac_more_lines; do
23052 if test $ac_beg -gt 1; then
23053 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23055 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23057 if test ! -s $tmp/subs.frag; then
23058 ac_more_lines=false
23060 # The purpose of the label and of the branching condition is to
23061 # speed up the sed processing (if there are no `@' at all, there
23062 # is no need to browse any of the substitutions).
23063 # These are the two extra sed commands mentioned above.
23065 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23066 if test -z "$ac_sed_cmds"; then
23067 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23069 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23071 ac_sed_frag=`expr $ac_sed_frag + 1`
23073 ac_end=`expr $ac_end + $ac_max_sed_lines`
23076 if test -z "$ac_sed_cmds"; then
23079 fi # test -n "$CONFIG_FILES"
23082 cat >>$CONFIG_STATUS <<\EOF
23083 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23084 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23086 - | *:- | *:-:* ) # input from stdin
23088 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23089 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23090 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23091 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23092 * ) ac_file_in=$ac_file.in ;;
23095 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23096 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23097 X"$ac_file" : 'X\(//\)[^/]' \| \
23098 X"$ac_file" : 'X\(//\)$' \| \
23099 X"$ac_file" : 'X\(/\)' \| \
23100 . : '\(.\)' 2>/dev/null ||
23102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23103 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23104 /^X\(\/\/\)$/{ s//\1/; q; }
23105 /^X\(\/\).*/{ s//\1/; q; }
23107 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23108 { case "$ac_dir" in
23109 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
23113 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
23114 case $as_mkdir_dir in
23115 # Skip DOS drivespec
23116 ?:) as_incr_dir=$as_mkdir_dir ;;
23118 as_incr_dir=$as_incr_dir/$as_mkdir_dir
23119 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
23124 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
23125 # A "../" for each directory in $ac_dir_suffix.
23126 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
23128 ac_dir_suffix= ac_dots=
23133 if test -z "$ac_dots"; then
23136 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
23138 [\\/]* | ?:[\\/]* )
23139 ac_srcdir=$srcdir$ac_dir_suffix;
23140 ac_top_srcdir=$srcdir ;;
23141 *) # Relative path.
23142 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
23143 ac_top_srcdir=$ac_dots$srcdir ;;
23147 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23148 *) ac_INSTALL=$ac_dots$INSTALL ;;
23151 if test x"$ac_file" != x-; then
23152 { echo "$as_me:23152: creating $ac_file" >&5
23153 echo "$as_me: creating $ac_file" >&6;}
23156 # Let's still pretend it is `configure' which instantiates (i.e., don't
23157 # use $as_me), people would be surprised to read:
23158 # /* config.h. Generated automatically by config.status. */
23159 configure_input="Generated automatically from `echo $ac_file_in |
23160 sed 's,.*/,,'` by configure."
23162 # First look for the input files in the build tree, otherwise in the
23164 ac_file_inputs=`IFS=:
23165 for f in $ac_file_in; do
23167 -) echo $tmp/stdin ;;
23169 # Absolute (can't be DOS-style, as IFS=:)
23170 test -f "$f" || { { echo "$as_me:23170: error: cannot find input file: $f" >&5
23171 echo "$as_me: error: cannot find input file: $f" >&2;}
23172 { (exit 1); exit 1; }; }
23175 if test -f "$f"; then
23178 elif test -f "$srcdir/$f"; then
23183 { { echo "$as_me:23183: error: cannot find input file: $f" >&5
23184 echo "$as_me: error: cannot find input file: $f" >&2;}
23185 { (exit 1); exit 1; }; }
23188 done` || { (exit 1); exit 1; }
23190 cat >>$CONFIG_STATUS <<\EOF
23191 ac_warn_datarootdir=no
23192 if test x"$ac_file" != x-; then
23193 for ac_item in $ac_file_inputs
23195 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
23196 if test -n "$ac_seen"; then
23197 ac_used=`grep '@datarootdir@' $ac_item`
23198 if test -z "$ac_used"; then
23199 { echo "$as_me:23199: WARNING: datarootdir was used implicitly but not set:
23201 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
23203 ac_warn_datarootdir=yes
23206 ac_seen=`grep '${datarootdir}' $ac_item`
23207 if test -n "$ac_seen"; then
23208 { echo "$as_me:23208: WARNING: datarootdir was used explicitly but not set:
23210 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
23212 ac_warn_datarootdir=yes
23217 if test "x$ac_warn_datarootdir" = xyes; then
23218 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
23222 cat >>$CONFIG_STATUS <<EOF
23226 cat >>$CONFIG_STATUS <<\EOF
23228 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23229 s,@configure_input@,$configure_input,;t t
23230 s,@srcdir@,$ac_srcdir,;t t
23231 s,@top_srcdir@,$ac_top_srcdir,;t t
23232 s,@INSTALL@,$ac_INSTALL,;t t
23233 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23235 if test x"$ac_file" != x-; then
23236 cp $tmp/out $ac_file
23238 for ac_name in prefix exec_prefix datarootdir
23240 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
23241 if test -n "$ac_seen"; then
23242 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
23243 if test -z "$ac_init"; then
23244 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
23245 { echo "$as_me:23245: WARNING: Variable $ac_name is used but was not set:
23247 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
23252 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
23253 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
23254 if test -s $tmp/out; then
23255 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
23256 { echo "$as_me:23256: WARNING: Some variables may not be substituted:
23258 echo "$as_me: WARNING: Some variables may not be substituted:
23268 cat >>$CONFIG_STATUS <<\EOF
23271 # CONFIG_HEADER section.
23274 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23275 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23277 # ac_d sets the value in "#define NAME VALUE" lines.
23278 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23279 ac_dB='[ ].*$,\1#\2'
23282 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
23283 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23284 ac_iB='\([ ]\),\1#\2define\3'
23287 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23288 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23289 ac_uB='$,\1#\2define\3'
23293 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23294 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23296 - | *:- | *:-:* ) # input from stdin
23298 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23299 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23300 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23301 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23302 * ) ac_file_in=$ac_file.in ;;
23305 test x"$ac_file" != x- && { echo "$as_me:23305: creating $ac_file" >&5
23306 echo "$as_me: creating $ac_file" >&6;}
23308 # First look for the input files in the build tree, otherwise in the
23310 ac_file_inputs=`IFS=:
23311 for f in $ac_file_in; do
23313 -) echo $tmp/stdin ;;
23315 # Absolute (can't be DOS-style, as IFS=:)
23316 test -f "$f" || { { echo "$as_me:23316: error: cannot find input file: $f" >&5
23317 echo "$as_me: error: cannot find input file: $f" >&2;}
23318 { (exit 1); exit 1; }; }
23321 if test -f "$f"; then
23324 elif test -f "$srcdir/$f"; then
23329 { { echo "$as_me:23329: error: cannot find input file: $f" >&5
23330 echo "$as_me: error: cannot find input file: $f" >&2;}
23331 { (exit 1); exit 1; }; }
23334 done` || { (exit 1); exit 1; }
23335 # Remove the trailing spaces.
23336 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23340 # Transform confdefs.h into a list of #define's. We won't use it as a sed
23341 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
23342 # be either 'cat' or 'sort'.
23343 cat confdefs.h | uniq >conftest.vals
23345 # Break up conftest.vals because some shells have a limit on
23346 # the size of here documents, and old seds have small limits too.
23348 rm -f conftest.tail
23349 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
23350 while grep . conftest.vals >/dev/null
23352 # Write chunks of a limited-size here document to conftest.frag.
23353 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
23354 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
23355 echo 'CEOF' >> $CONFIG_STATUS
23356 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
23357 rm -f conftest.vals
23358 mv conftest.tail conftest.vals
23360 rm -f conftest.vals
23362 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
23364 echo ' cat >> conftest.edit <<CEOF
23365 /@DEFS@/r conftest.frag
23368 sed -f conftest.edit $tmp/in > $tmp/out
23370 mv $tmp/out $tmp/in
23371 rm -f conftest.edit conftest.frag
23372 ' >> $CONFIG_STATUS
23374 cat >>$CONFIG_STATUS <<\EOF
23375 # Let's still pretend it is `configure' which instantiates (i.e., don't
23376 # use $as_me), people would be surprised to read:
23377 # /* config.h. Generated automatically by config.status. */
23378 if test x"$ac_file" = x-; then
23379 echo "/* Generated automatically by configure. */" >$tmp/config.h
23381 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
23383 cat $tmp/in >>$tmp/config.h
23385 if test x"$ac_file" != x-; then
23386 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
23387 { echo "$as_me:23387: $ac_file is unchanged" >&5
23388 echo "$as_me: $ac_file is unchanged" >&6;}
23390 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23391 X"$ac_file" : 'X\(//\)[^/]' \| \
23392 X"$ac_file" : 'X\(//\)$' \| \
23393 X"$ac_file" : 'X\(/\)' \| \
23394 . : '\(.\)' 2>/dev/null ||
23396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23397 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23398 /^X\(\/\/\)$/{ s//\1/; q; }
23399 /^X\(\/\).*/{ s//\1/; q; }
23401 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23402 { case "$ac_dir" in
23403 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
23407 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
23408 case $as_mkdir_dir in
23409 # Skip DOS drivespec
23410 ?:) as_incr_dir=$as_mkdir_dir ;;
23412 as_incr_dir=$as_incr_dir/$as_mkdir_dir
23413 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
23420 mv $tmp/config.h $ac_file
23424 rm -f $tmp/config.h
23428 cat >>$CONFIG_STATUS <<\EOF
23430 # CONFIG_COMMANDS section.
23432 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23433 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23434 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23438 if test "x$cf_with_tests" != xno ; then
23442 if test ! -d $srcdir/$cf_dir; then
23444 elif test -f $srcdir/$cf_dir/programs; then
23445 $AWK -f $srcdir/test/mk-test.awk INSTALL=no ECHO_LINK="$ECHO_LD" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
23451 cf_prefix=$LIB_PREFIX
23453 case $cf_cv_shlib_version in
23454 (cygdll|msysdll|mingw)
23455 TINFO_NAME=$TINFO_ARG_SUFFIX
23460 if test -n "$TINFO_SUFFIX" ; then
23461 case $TINFO_SUFFIX in
23463 TINFO_NAME="${TINFO_NAME}tw${EXTRA_SUFFIX}"
23464 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^tw'$EXTRA_SUFFIX'//'`
23467 TINFO_NAME="${TINFO_NAME}t${EXTRA_SUFFIX}"
23468 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^t'$EXTRA_SUFFIX'//'`
23471 TINFO_NAME="${TINFO_NAME}w${EXTRA_SUFFIX}"
23472 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^w'$EXTRA_SUFFIX'//'`
23477 for cf_dir in $SRC_SUBDIRS
23479 if test ! -d $srcdir/$cf_dir ; then
23481 elif test -f $srcdir/$cf_dir/modules; then
23487 if test -n "${cf_cv_abi_version}" && test "x${cf_cv_abi_version}" != "x5"
23489 cf_sed_options="$cf_sed_options -e \"s/NCURSES\\([WT]\\+\\)\?_/NCURSES\\1${cf_cv_abi_version}_/g\""
23490 cf_sed_options="$cf_sed_options -e \"/deprecated in ABI${cf_cv_abi_version}/d\""
23493 if test "x$WILDCARD_SYMS" = xno
23495 cf_sed_options="$cf_sed_options -e \"s/_\*;//g\""
23498 if test "x$cf_sed_options" != "x"
23500 cat >>$cf_dir/Makefile <<CF_EOF
23502 # Generated by CF_LIB_RULES
23503 resulting.map: $UNALTERED_SYMS
23504 sed $cf_sed_options < $UNALTERED_SYMS >\$@
23507 rm -f resulting.map
23511 for cf_item in $cf_LIST_MODELS
23517 cf_depsuf=$cf_suffix
23521 cf_depsuf=$cf_suffix
23525 cf_depsuf=$cf_suffix
23528 case $cf_cv_system_name in
23531 cf_depsuf=$cf_suffix
23533 (cygwin*|msys*|mingw*)
23539 cf_depsuf=$cf_suffix
23545 cf_depsuf=$cf_suffix
23549 cf_depsuf=$cf_suffix
23555 cf_depsuf=$cf_suffix
23561 cf_depsuf=$cf_suffix
23564 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
23566 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
23567 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
23571 test "$cf_dir" = c++ && cf_libname=ncurses++
23572 if test $cf_item = shared ; then
23573 if test -n "${LIB_SUFFIX}"
23575 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
23577 cf_shared_suffix="$cf_suffix"
23579 if test "$cf_cv_do_symlinks" = yes ; then
23582 case "$cf_cv_shlib_version" in
23584 cf_version_name=REL_VERSION
23587 cf_version_name=ABI_VERSION
23591 if test -n "$cf_version_name"
23593 case "$cf_cv_system_name" in
23596 cf_suffix="${USE_LIB_SUFFIX}"'.${'$cf_version_name'}'"$cf_shared_suffix"
23599 cf_suffix="$cf_suffix"'.${'$cf_version_name'}'
23603 if test -n "${USE_LIB_SUFFIX}"
23605 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
23607 cf_shared_suffix="$cf_suffix"
23610 # cygwin needs import library, and has unique naming convention
23611 # use autodetected ${cf_prefix} for import lib and static lib, but
23612 # use 'cyg' prefix for shared lib.
23613 case $cf_cv_shlib_version in
23615 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
23616 cf_add_lib="../lib/cyg${cf_libname}${cf_cygsuf}"
23619 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
23620 cf_add_lib="../lib/msys-${cf_libname}${cf_cygsuf}"
23623 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
23624 cf_add_lib="../lib/lib${cf_libname}${cf_cygsuf}"
23630 if test -n "$cf_add_lib"
23632 Libs_To_Make="$Libs_To_Make $cf_add_lib"
23636 cf_add_lib="../lib/${cf_prefix}${cf_libname}${cf_suffix}"
23637 Libs_To_Make="$Libs_To_Make $cf_add_lib"
23640 if test $cf_dir = ncurses ; then
23641 cf_subsets="$LIB_SUBSETS"
23642 cf_r_parts="$cf_subsets"
23643 cf_liblist="$Libs_To_Make"
23645 while test -n "$cf_r_parts"
23647 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
23648 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
23649 if test "$cf_l_parts" != "$cf_r_parts" ; then
23651 case $cf_l_parts in
23653 cf_add_lib=`echo $cf_liblist |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
23656 cf_add_lib=`echo $cf_liblist |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
23662 if test -n "$cf_add_lib"; then
23663 Libs_To_Make="$cf_add_lib $Libs_To_Make"
23670 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
23673 if test $cf_dir = c++; then
23674 if test "x$with_shared_cxx" != xyes && test -n "$cf_shared_suffix"; then
23676 for cf_item in $Libs_To_Make
23682 cf_item=`echo "$cf_item" | sed -e "s,"$cf_shared_suffix",.a,"`
23685 for cf_test in $cf_list
23687 if test "$cf_test" = "$cf_item"
23689 cf_LIST_MODELS=`echo "$cf_LIST_MODELS" | sed -e 's/normal//'`
23694 test -n "$cf_item" && cf_list="$cf_list $cf_item"
23696 Libs_To_Make="$cf_list"
23700 sed -e "s%@Libs_To_Make@%$Libs_To_Make%" \
23701 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
23702 $cf_dir/Makefile >$cf_dir/Makefile.out
23703 mv $cf_dir/Makefile.out $cf_dir/Makefile
23705 $AWK -f $srcdir/mk-0th.awk \
23706 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" ticlib="$TICS_LIB_SUFFIX" termlib="$TINFO_LIB_SUFFIX" \
23707 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
23709 for cf_subset in $cf_subsets
23712 for cf_item in $cf_LIST_MODELS
23715 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
23717 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
23720 if test "$CXX_MODEL" = SHARED; then
23721 case $cf_cv_shlib_version in
23722 (cygdll|msysdll|mingw)
23723 test "x$with_shared_cxx" = xno && test -n "$verbose" && echo " overriding CXX_MODEL to SHARED" 1>&6
23725 echo "${as_me:-configure}:23725: testing overriding CXX_MODEL to SHARED ..." 1>&5
23727 with_shared_cxx=yes
23730 test "x$with_shared_cxx" = xno && CXX_MODEL=NORMAL
23738 cf_depsuf=$cf_suffix
23742 cf_depsuf=$cf_suffix
23746 cf_depsuf=$cf_suffix
23749 case $cf_cv_system_name in
23752 cf_depsuf=$cf_suffix
23754 (cygwin*|msys*|mingw*)
23760 cf_depsuf=$cf_suffix
23766 cf_depsuf=$cf_suffix
23770 cf_depsuf=$cf_suffix
23776 cf_depsuf=$cf_suffix
23782 cf_depsuf=$cf_suffix
23785 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
23787 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
23788 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
23792 (libtool) cf_subdir='obj_lo' ;;
23793 (normal) cf_subdir='objects' ;;
23794 (debug) cf_subdir='obj_g' ;;
23795 (profile) cf_subdir='obj_p' ;;
23797 case $cf_cv_system_name in
23799 cf_subdir='objects' ;;
23801 cf_subdir='obj_s' ;;
23805 # Test for case where we build libtinfo with a different name.
23807 if test $cf_dir = ncurses ; then
23810 cf_libname=${cf_libname}$USE_LIB_SUFFIX
23813 cf_libname=$TINFO_LIB_SUFFIX
23816 cf_libname=$TICS_LIB_SUFFIX
23819 elif test $cf_dir = c++ ; then
23820 cf_libname=ncurses++$USE_LIB_SUFFIX
23822 cf_libname=${cf_libname}$USE_LIB_SUFFIX
23824 if test -n "${USE_ARG_SUFFIX}" ; then
23825 # undo $USE_LIB_SUFFIX add-on in CF_LIB_SUFFIX
23826 cf_suffix=`echo $cf_suffix |sed -e "s%^${USE_LIB_SUFFIX}%%"`
23829 # These dependencies really are for development, not
23830 # builds, but they are useful in porting, too.
23831 cf_depend="../include/ncurses_cfg.h"
23832 if test "$srcdir" = "."; then
23835 cf_reldir="\${srcdir}"
23838 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
23839 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
23840 elif test -f $srcdir/$cf_dir/curses.priv.h; then
23841 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
23845 old_cf_suffix="$cf_suffix"
23846 if test "$cf_cv_shlib_version_infix" = yes ; then
23847 if test -n "$USE_LIB_SUFFIX" ; then
23848 case $USE_LIB_SUFFIX in
23850 cf_libname=`echo $cf_libname | sed 's/tw'$EXTRA_SUFFIX'$//'`
23851 cf_suffix=`echo $cf_suffix | sed 's/^tw'$EXTRA_SUFFIX'//'`
23852 cf_dir_suffix=tw$EXTRA_SUFFIX
23855 cf_libname=`echo $cf_libname | sed 's/t'$EXTRA_SUFFIX'$//'`
23856 cf_suffix=`echo $cf_suffix | sed 's/^t'$EXTRA_SUFFIX'//'`
23857 cf_dir_suffix=t$EXTRA_SUFFIX
23860 cf_libname=`echo $cf_libname | sed 's/w'$EXTRA_SUFFIX'$//'`
23861 cf_suffix=`echo $cf_suffix | sed 's/^w'$EXTRA_SUFFIX'//'`
23862 cf_dir_suffix=w$EXTRA_SUFFIX
23865 cf_libname=`echo $cf_libname | sed 's/'$EXTRA_SUFFIX'$//'`
23866 cf_suffix=`echo $cf_suffix | sed 's/^'$EXTRA_SUFFIX'//'`
23867 cf_dir_suffix=$EXTRA_SUFFIX
23873 $AWK -f $srcdir/mk-1st.awk \
23874 name=${cf_libname}${cf_dir_suffix} \
23875 traces=$LIB_TRACING \
23877 CXX_MODEL=$CXX_MODEL \
23879 prefix=$cf_prefix \
23880 suffix=$cf_suffix \
23881 subset=$cf_subset \
23882 driver=$cf_cv_term_driver \
23884 TermlibRoot=$TINFO_NAME \
23885 TermlibSuffix=$TINFO_SUFFIX \
23886 ShlibVer=$cf_cv_shlib_version \
23887 ShlibVerInfix=$cf_cv_shlib_version_infix \
23888 ReLink=${cf_cv_do_relink:-no} \
23889 DoLinks=$cf_cv_do_symlinks \
23890 rmSoLocs=$cf_cv_rm_so_locs \
23891 ldconfig="$LDCONFIG" \
23892 overwrite=$WITH_OVERWRITE \
23893 depend="$cf_depend" \
23895 libtool_version="$LIBTOOL_VERSION" \
23896 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
23898 cf_suffix="$old_cf_suffix"
23900 for cf_subdir2 in $cf_subdirs lib
23902 test $cf_subdir = $cf_subdir2 && break
23904 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
23905 $AWK -f $srcdir/mk-2nd.awk \
23907 traces=$LIB_TRACING \
23910 subset=$cf_subset \
23913 crenames=$cf_cv_prog_CC_c_o \
23914 cxxrenames=$cf_cv_prog_CXX_c_o \
23915 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
23916 cf_subdirs="$cf_subdirs $cf_subdir"
23921 echo ' cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@' >>Makefile
23924 for cf_dir in $SRC_SUBDIRS
23926 if test ! -d $srcdir/$cf_dir ; then
23930 if test -f $cf_dir/Makefile ; then
23933 echo 'libs \' >> Makefile
23934 echo 'install.libs \' >> Makefile
23935 echo 'uninstall.libs ::' >> Makefile
23936 echo ' cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@' >> Makefile
23941 if test -f $srcdir/$cf_dir/modules; then
23943 if test -f $srcdir/$cf_dir/headers; then
23944 cat >> Makefile <<CF_EOF
23945 install.includes \\
23946 uninstall.includes \\
23949 if test "$cf_dir" != "c++" ; then
23950 echo 'lint \' >> Makefile
23952 cat >> Makefile <<CF_EOF
23958 uninstall.$cf_dir ::
23959 cd $cf_dir && \${MAKE} \${TOP_MFLAGS} \$@
23961 elif test -f $srcdir/$cf_dir/headers; then
23962 cat >> Makefile <<CF_EOF
23967 install.includes \\
23968 uninstall.includes ::
23969 cd $cf_dir && \${MAKE} \${TOP_MFLAGS} \$@
23974 if test "x$cf_with_db_install" = xyes; then
23975 cat >> Makefile <<CF_EOF
23977 install.libs uninstall.libs \\
23978 install.data uninstall.data ::
23979 $MAKE_TERMINFO cd misc && \${MAKE} \${TOP_MFLAGS} \$@
23982 cat >> Makefile <<CF_EOF
23984 install.libs uninstall.libs ::
23985 cd misc && \${MAKE} \${TOP_MFLAGS} \$@
23989 if test "x$cf_with_manpages" = xyes; then
23990 cat >> Makefile <<CF_EOF
23994 cd man && \${MAKE} \${TOP_MFLAGS} \$@
23998 cat >> Makefile <<CF_EOF
24001 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
24002 rm -f headers.sh headers.sed mk_shared_lib.sh
24003 rm -f edit_man.* man_alias.*
24004 rm -rf \${DIRS_TO_MAKE}
24007 # Special case: tack's manpage lives in its own directory.
24008 if test "x$cf_with_manpages" = xyes; then
24009 if test -d tack ; then
24010 if test -f $srcdir/$tack.h; then
24011 cat >> Makefile <<CF_EOF
24015 cd tack && \${MAKE} \${TOP_MFLAGS} \$@
24021 rm -f headers.sed headers.sh
24023 echo creating headers.sh
24024 cat >headers.sh <<CF_EOF
24026 # This shell script is generated by the 'configure' script. It is invoked in a
24027 # subdirectory of the build tree. It generates a sed-script in the parent
24028 # directory that is used to adjust includes for header files that reside in a
24029 # subdirectory of /usr/include, etc.
24031 while test \$# != 3
24033 PRG="\$PRG \$1"; shift
24038 TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
24039 TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
24040 echo installing \$SRC in \$DST
24043 if test $WITH_CURSES_H = yes; then
24044 cat >>headers.sh <<CF_EOF
24047 END=\`basename \$DST\`
24048 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
24050 NAME=\`basename \$i\`
24051 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
24055 echo "" >> \$TMPSED
24061 cat >>headers.sh <<CF_EOF
24064 END=\`basename \$DST\`
24065 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
24067 NAME=\`basename \$i\`
24068 if test "\$NAME" = "curses.h"
24070 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
24073 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
24077 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
24082 cat >>headers.sh <<CF_EOF
24084 sed -f \$TMPSED \$SRC > \$TMPSRC
24085 NAME=\`basename \$SRC\`
24087 if test $WITH_CURSES_H != yes; then
24088 cat >>headers.sh <<CF_EOF
24089 test "\$NAME" = "curses.h" && NAME=ncurses.h
24092 cat >>headers.sh <<CF_EOF
24093 # Just in case someone gzip'd manpages, remove the conflicting copy.
24094 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
24096 eval \$PRG \$TMPSRC \$DST/\$NAME
24097 rm -f \$TMPSRC \$TMPSED
24100 chmod 0755 headers.sh
24102 for cf_dir in $SRC_SUBDIRS
24104 if test ! -d $srcdir/$cf_dir ; then
24108 if test -f $srcdir/$cf_dir/headers; then
24109 $AWK -f $srcdir/mk-hdr.awk \
24110 subset="$LIB_SUBSETS" \
24111 compat="$WITH_CURSES_H" \
24112 $srcdir/$cf_dir/headers >>$cf_dir/Makefile
24115 if test -f $srcdir/$cf_dir/modules; then
24116 if test "$cf_dir" != "c++" ; then
24117 cat >>$cf_dir/Makefile <<"CF_EOF"
24118 depend : ${AUTO_SRC}
24119 makedepend -- ${CPPFLAGS} -- ${C_SRC}
24121 # DO NOT DELETE THIS LINE -- make depend depends on it.
24127 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
24128 if test -z "$USE_OLD_MAKERULES" ; then
24129 $AWK -f $srcdir/Ada95/mk-1st.awk <$srcdir/Ada95/src/modules >>Ada95/src/Makefile
24137 cat >>$CONFIG_STATUS <<\EOF
24139 { (exit 0); exit 0; }
24141 chmod +x $CONFIG_STATUS
24142 ac_clean_files=$ac_clean_files_save
24144 # configure is writing to config.log, and then calls config.status.
24145 # config.status does its own redirection, appending to config.log.
24146 # Unfortunately, on DOS this fails, as config.log is still kept open
24147 # by configure, so config.status won't be able to write to it; its
24148 # output is simply discarded. So we exec the FD to /dev/null,
24149 # effectively closing config.log, so it can be properly (re)opened and
24150 # appended to by config.status. When coming back to configure, we
24151 # need to make the FD available again.
24152 if test "$no_create" != yes; then
24155 $SHELL $CONFIG_STATUS || ac_cs_success=false
24157 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24158 # would make configure fail if this is the last instruction.
24159 $ac_cs_success || { (exit 1); exit 1; }
24161 ${MAKE:-make} preinstall