2 # From configure.in Revision: 1.582 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20121002.
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 --enable-mixed-case tic should assume mixed-case filenames
718 --with-install-prefix prefixes actual install-location ($DESTDIR)
719 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
720 --with-build-cc=XXX the build C compiler ($BUILD_CC)
721 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
722 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
723 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
724 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
725 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
726 Options to Specify the Libraries Built/Used:
727 --disable-libtool-version enable to use libtool's incompatible naming scheme
728 --with-libtool generate libraries with libtool
729 --with-shared generate shared-libraries
730 --with-normal generate normal-libraries (default)
731 --with-debug generate debug-libraries (default)
732 --with-profile generate profile-libraries
733 --with-cxx-shared generate C++ shared-libraries
734 --with-lib-prefix override library-prefix
735 --with-termlib generate separate terminfo library
736 --with-ticlib generate separate tic library
737 --with-gpm use Alessandro Rubini's GPM library
738 --without-dlsym do not use dlsym() to load GPM dynamically
739 --with-sysmouse use sysmouse (FreeBSD console)
740 --enable-rpath use rpath option when generating shared libraries
741 --disable-relink relink shared libraries during install
742 --with-shlib-version=X Specify rel or abi version for shared libs
743 --disable-lib-suffixes disable library suffixes
744 --disable-rpath-hack don't add rpath options for additional libraries
745 Fine-Tuning Your Configuration:
746 --disable-overwrite leave out the link to -lcurses
747 --disable-database do not use terminfo, only fallbacks/termcap
748 --with-database=XXX specify terminfo source to install
749 --with-hashed-db specify hashed-database library
750 --with-fallbacks=XXX specify list of fallback terminal descriptions
751 --without-xterm-new specify if xterm terminfo should be old version
752 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
753 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
754 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
755 --disable-big-core assume machine has little memory
756 --disable-big-strings assume compiler has only standard-size strings
757 --enable-termcap compile in termcap fallback support
758 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
759 --enable-getcap fast termcap load, no xrefs to terminfo
760 --enable-getcap-cache cache translated termcaps in ~/.terminfo
761 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
762 --disable-root-environ restrict environment when running as root
763 --enable-symlinks make tic use symbolic links not hard links
764 --enable-broken_linker compile with broken-linker support code
765 --enable-bsdpad recognize BSD-style prefix padding
766 --enable-widec compile with wide-char/UTF-8 code
767 --disable-lp64 allow chtype to be long (ignore _LP64)
768 --disable-largefile omit support for large files
769 --disable-tparm-varargs compile tparm() without varargs interface
770 --disable-tic-depends link tic library without explicit dependency on ncurses library
771 --with-bool=TYPE override fallback type of bool variable
772 --with-caps=alt compile with alternate Caps file
773 --with-chtype=TYPE override type of chtype
774 --with-ospeed=TYPE override type of ospeed variable
775 --with-mmask-t=TYPE override type of mmask_t
776 --with-ccharw-max=XXX override size CCHARW_MAX
777 --with-tparm-arg=TYPE override parameter type of tparm
778 --with-rcs-ids compile-in RCS identifiers
779 Options to Specify How Manpages are Installed:
780 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
781 optionally formatted/catonly, e.g., gzip,formatted
782 --with-manpage-renames specify manpage-renaming
783 --with-manpage-aliases specify manpage-aliases using .so
784 --with-manpage-symlinks specify manpage-aliases using symlinks
785 --with-manpage-tbl specify manpage processing with tbl
787 --disable-ext-funcs disable function-extensions
788 --enable-sp-funcs enable experimental SCREEN-extensions
789 --enable-term-driver enable experimental terminal-driver
790 --enable-const compile with extra/non-standard const
791 --enable-ext-colors compile for 256-color support
792 --enable-ext-mouse compile for extended mouse-encoding
793 --enable-no-padding compile with $NCURSES_NO_PADDING code
794 --enable-signed-char compile using signed Boolean's in term.h
795 --enable-sigwinch compile with SIGWINCH handler
796 --enable-tcap-names compile with user-definable terminal capabilities
798 --without-develop disable development options
799 --enable-hard-tabs compile with hard-tabs code
800 --enable-xmc-glitch compile with support for xmc (magic-cookie)
802 --disable-assumed-color do not assume anything about default-colors
803 --disable-hashmap compile without hashmap scrolling-optimization
804 --enable-colorfgbg compile-in experimental $COLORFGBG code
805 --enable-interop compile-in experimental interop bindings
806 --with-pthread use POSIX thread library
807 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
808 --enable-weak-symbols enable weak-symbols for pthreads
809 --enable-reentrant compile with experimental reentrant code
810 --with-wrap-prefix=XXX override prefix used for public variables
811 --enable-safe-sprintf compile with experimental safe-sprintf code
812 --disable-scroll-hints compile without scroll-hints code
813 --enable-wgetch-events compile with experimental wgetch-events code
814 Testing/development Options:
815 --disable-echo do not display "compiling" commands
816 --enable-warnings build: turn on GCC compiler warnings
817 --enable-string-hacks work around bogus compiler/loader warnings
818 --enable-assertions test: turn on generation of assertion code
819 --with-dmalloc test: use Gray Watson's dmalloc library
820 --with-dbmalloc test: use Conor Cahill's dbmalloc library
821 --with-valgrind test: use valgrind
822 --disable-leaks test: free permanent memory, analyze leaks
823 --enable-expanded test: generate functions for certain macros
824 --disable-macros test: use functions rather than macros
825 --with-trace test: add trace() function to all models of ncurses
826 --disable-gnat-projects test: disable GNAT projects even if usable
827 Ada95 Binding Options:
828 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
829 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
830 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
831 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
833 Some influential environment variables:
834 CC C compiler command
835 CFLAGS C compiler flags
836 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
837 nonstandard directory <lib dir>
838 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
839 headers in a nonstandard directory <include dir>
841 CXX C++ compiler command
842 CXXFLAGS C++ compiler flags
843 CXXCPP C++ preprocessor
845 Use these variables to override the choices made by `configure' or to help
846 it to find libraries and programs with nonstandard names/locations.
851 if test "$ac_init_help" = "recursive"; then
852 # If there are subdirs, report their specific --help.
854 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
856 # A "../" for each directory in /$ac_subdir.
857 ac_dots=`echo $ac_subdir |
858 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
861 .) # No --srcdir option. We are building in place.
862 ac_sub_srcdir=$srcdir ;;
863 [\\/]* | ?:[\\/]* ) # Absolute path.
864 ac_sub_srcdir=$srcdir/$ac_subdir ;;
866 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
869 # Check for guested configure; otherwise get Cygnus style configure.
870 if test -f $ac_sub_srcdir/configure.gnu; then
872 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
873 elif test -f $ac_sub_srcdir/configure; then
875 $SHELL $ac_sub_srcdir/configure --help=recursive
876 elif test -f $ac_sub_srcdir/configure.ac ||
877 test -f $ac_sub_srcdir/configure.in; then
881 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
887 test -n "$ac_init_help" && exit 0
888 if $ac_init_version; then
891 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
892 Free Software Foundation, Inc.
893 This configure script is free software; the Free Software Foundation
894 gives unlimited permission to copy, distribute and modify it.
900 This file contains any messages produced by compilers while
901 running configure, to aid debugging if configure makes a mistake.
903 It was created by $as_me, which was
904 generated by GNU Autoconf 2.52.20121002. Invocation command line was
915 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
916 uname -m = `(uname -m) 2>/dev/null || echo unknown`
917 uname -r = `(uname -r) 2>/dev/null || echo unknown`
918 uname -s = `(uname -s) 2>/dev/null || echo unknown`
919 uname -v = `(uname -v) 2>/dev/null || echo unknown`
921 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
922 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
924 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
925 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
926 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
927 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
928 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
929 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
930 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
944 # Keep a trace of the command line.
945 # Strip out --no-create and --no-recursion so they do not pile up.
946 # Also quote any args containing shell meta-characters.
952 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
953 | --no-cr | --no-c) ;;
954 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
955 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
956 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
957 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
958 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
960 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
963 # Get rid of the leading space.
966 # When interrupted or exit'd, cleanup temporary files, and complete
967 # config.log. We remove comments because anyway the quotes in there
968 # would cause problems or look ugly.
970 # Save into config.log some information that might help in debugging.
972 echo "## ----------------- ##" >&5
973 echo "## Cache variables. ##" >&5
974 echo "## ----------------- ##" >&5
976 # The following way of writing the cache mishandles newlines in values,
979 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
982 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
983 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
987 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
991 sed "/^$/d" confdefs.h >conftest.log
992 if test -s conftest.log; then
994 echo "## ------------ ##" >&5
995 echo "## confdefs.h. ##" >&5
996 echo "## ------------ ##" >&5
1001 test "$ac_signal" != 0 &&
1002 echo "$as_me: caught signal $ac_signal" >&5
1003 echo "$as_me: exit $exit_status" >&5
1004 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1007 for ac_signal in 1 2 13 15; do
1008 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1012 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1013 rm -rf conftest* confdefs.h
1014 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1017 # Let the site file select an alternate cache file if it wants to.
1018 # Prefer explicitly selected file to automatically selected ones.
1019 if test -z "$CONFIG_SITE"; then
1020 if test "x$prefix" != xNONE; then
1021 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1023 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1026 for ac_site_file in $CONFIG_SITE; do
1027 if test -r "$ac_site_file"; then
1028 { echo "$as_me:1028: loading site script $ac_site_file" >&5
1029 echo "$as_me: loading site script $ac_site_file" >&6;}
1030 cat "$ac_site_file" >&5
1035 if test -r "$cache_file"; then
1036 # Some versions of bash will fail to source /dev/null (special
1037 # files actually), so we avoid doing that.
1038 if test -f "$cache_file"; then
1039 { echo "$as_me:1039: loading cache $cache_file" >&5
1040 echo "$as_me: loading cache $cache_file" >&6;}
1042 [\\/]* | ?:[\\/]* ) . $cache_file;;
1043 *) . ./$cache_file;;
1047 { echo "$as_me:1047: creating cache $cache_file" >&5
1048 echo "$as_me: creating cache $cache_file" >&6;}
1052 # Check that the precious variables saved in the cache have kept the same
1054 ac_cache_corrupted=false
1055 for ac_var in `(set) 2>&1 |
1056 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1057 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1058 eval ac_new_set=\$ac_env_${ac_var}_set
1059 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1060 eval ac_new_val="\$ac_env_${ac_var}_value"
1061 case $ac_old_set,$ac_new_set in
1063 { echo "$as_me:1063: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1064 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1065 ac_cache_corrupted=: ;;
1067 { echo "$as_me:1067: error: \`$ac_var' was not set in the previous run" >&5
1068 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1069 ac_cache_corrupted=: ;;
1072 if test "x$ac_old_val" != "x$ac_new_val"; then
1073 { echo "$as_me:1073: error: \`$ac_var' has changed since the previous run:" >&5
1074 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1075 { echo "$as_me:1075: former value: $ac_old_val" >&5
1076 echo "$as_me: former value: $ac_old_val" >&2;}
1077 { echo "$as_me:1077: current value: $ac_new_val" >&5
1078 echo "$as_me: current value: $ac_new_val" >&2;}
1079 ac_cache_corrupted=:
1082 # Pass precious variables to config.status. It doesn't matter if
1083 # we pass some twice (in addition to the command line arguments).
1084 if test "$ac_new_set" = set; then
1086 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1087 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1088 ac_configure_args="$ac_configure_args '$ac_arg'"
1090 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1095 if $ac_cache_corrupted; then
1096 { echo "$as_me:1096: error: changes in the environment can compromise the build" >&5
1097 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1098 { { echo "$as_me:1098: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1099 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1100 { (exit 1); exit 1; }; }
1104 ac_cpp='$CPP $CPPFLAGS'
1105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1108 ac_main_return=return
1110 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1111 *c*,-n*) ECHO_N= ECHO_C='
1113 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1114 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1116 echo "#! $SHELL" >conftest.sh
1117 echo "exit 0" >>conftest.sh
1118 chmod +x conftest.sh
1119 if { (echo "$as_me:1119: PATH=\".;.\"; conftest.sh") >&5
1120 (PATH=".;."; conftest.sh) 2>&5
1122 echo "$as_me:1122: \$? = $ac_status" >&5
1123 (exit $ac_status); }; then
1124 ac_path_separator=';'
1128 PATH_SEPARATOR="$ac_path_separator"
1131 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1135 echo "$as_me:1135: checking for egrep" >&5
1136 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1137 if test "${ac_cv_prog_egrep+set}" = set; then
1138 echo $ECHO_N "(cached) $ECHO_C" >&6
1140 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1141 then ac_cv_prog_egrep='grep -E'
1142 else ac_cv_prog_egrep='egrep'
1145 echo "$as_me:1145: result: $ac_cv_prog_egrep" >&5
1146 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1147 EGREP=$ac_cv_prog_egrep
1149 test -z "$EGREP" && { { echo "$as_me:1149: error: No egrep program found" >&5
1150 echo "$as_me: error: No egrep program found" >&2;}
1151 { (exit 1); exit 1; }; }
1153 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1154 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1155 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1156 cf_cv_abi_version=${NCURSES_MAJOR}
1157 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1158 cf_cv_timestamp=`date`
1159 echo "$as_me:1159: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1160 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1162 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1164 # Check whether --with-rel-version or --without-rel-version was given.
1165 if test "${with_rel_version+set}" = set; then
1166 withval="$with_rel_version"
1167 { echo "$as_me:1167: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1168 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1169 cf_cv_rel_version=$withval
1172 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1173 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1175 if test -n "$NCURSES_MAJOR" ; then
1176 case $NCURSES_MAJOR in #(vi
1180 { { echo "$as_me:1180: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1181 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1182 { (exit 1); exit 1; }; }
1186 { { echo "$as_me:1186: error: Release major-version value is empty" >&5
1187 echo "$as_me: error: Release major-version value is empty" >&2;}
1188 { (exit 1); exit 1; }; }
1191 if test -n "$NCURSES_MINOR" ; then
1192 case $NCURSES_MINOR in #(vi
1196 { { echo "$as_me:1196: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1197 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1198 { (exit 1); exit 1; }; }
1202 { { echo "$as_me:1202: error: Release minor-version value is empty" >&5
1203 echo "$as_me: error: Release minor-version value is empty" >&2;}
1204 { (exit 1); exit 1; }; }
1207 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1209 # Check whether --with-abi-version or --without-abi-version was given.
1210 if test "${with_abi_version+set}" = set; then
1211 withval="$with_abi_version"
1212 { echo "$as_me:1212: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1213 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1214 cf_cv_abi_version=$withval
1217 if test -n "$cf_cv_abi_version" ; then
1218 case $cf_cv_abi_version in #(vi
1222 { { echo "$as_me:1222: error: ABI version is not a number: $cf_cv_abi_version" >&5
1223 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1224 { (exit 1); exit 1; }; }
1228 { { echo "$as_me:1228: error: ABI version value is empty" >&5
1229 echo "$as_me: error: ABI version value is empty" >&2;}
1230 { (exit 1); exit 1; }; }
1234 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1235 if test -f $ac_dir/install-sh; then
1237 ac_install_sh="$ac_aux_dir/install-sh -c"
1239 elif test -f $ac_dir/install.sh; then
1241 ac_install_sh="$ac_aux_dir/install.sh -c"
1243 elif test -f $ac_dir/shtool; then
1245 ac_install_sh="$ac_aux_dir/shtool install -c"
1249 if test -z "$ac_aux_dir"; then
1250 { { echo "$as_me:1250: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1251 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1252 { (exit 1); exit 1; }; }
1254 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1255 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1256 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1258 # Make sure we can run config.sub.
1259 $ac_config_sub sun4 >/dev/null 2>&1 ||
1260 { { echo "$as_me:1260: error: cannot run $ac_config_sub" >&5
1261 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1262 { (exit 1); exit 1; }; }
1264 echo "$as_me:1264: checking build system type" >&5
1265 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1266 if test "${ac_cv_build+set}" = set; then
1267 echo $ECHO_N "(cached) $ECHO_C" >&6
1269 ac_cv_build_alias=$build_alias
1270 test -z "$ac_cv_build_alias" &&
1271 ac_cv_build_alias=`$ac_config_guess`
1272 test -z "$ac_cv_build_alias" &&
1273 { { echo "$as_me:1273: error: cannot guess build type; you must specify one" >&5
1274 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1275 { (exit 1); exit 1; }; }
1276 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1277 { { echo "$as_me:1277: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1278 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1279 { (exit 1); exit 1; }; }
1282 echo "$as_me:1282: result: $ac_cv_build" >&5
1283 echo "${ECHO_T}$ac_cv_build" >&6
1285 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1286 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1287 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1289 echo "$as_me:1289: checking host system type" >&5
1290 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1291 if test "${ac_cv_host+set}" = set; then
1292 echo $ECHO_N "(cached) $ECHO_C" >&6
1294 ac_cv_host_alias=$host_alias
1295 test -z "$ac_cv_host_alias" &&
1296 ac_cv_host_alias=$ac_cv_build_alias
1297 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1298 { { echo "$as_me:1298: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1299 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1300 { (exit 1); exit 1; }; }
1303 echo "$as_me:1303: result: $ac_cv_host" >&5
1304 echo "${ECHO_T}$ac_cv_host" >&6
1306 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1307 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1308 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1310 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1311 echo "$as_me:1311: checking target system type" >&5
1312 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1313 if test "${ac_cv_target+set}" = set; then
1314 echo $ECHO_N "(cached) $ECHO_C" >&6
1316 ac_cv_target_alias=$target_alias
1317 test "x$ac_cv_target_alias" = "x" &&
1318 ac_cv_target_alias=$ac_cv_host_alias
1319 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1320 { { echo "$as_me:1320: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1321 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1322 { (exit 1); exit 1; }; }
1325 echo "$as_me:1325: result: $ac_cv_target" >&5
1326 echo "${ECHO_T}$ac_cv_target" >&6
1327 target=$ac_cv_target
1328 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1329 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1330 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1332 # The aliases save the names the user supplied, while $host etc.
1333 # will get canonicalized.
1334 test -n "$target_alias" &&
1335 test "$program_prefix$program_suffix$program_transform_name" = \
1337 program_prefix=${target_alias}-
1338 system_name="$host_os"
1340 system_name="`(uname -s -r) 2>/dev/null`"
1341 if test -z "$system_name" ; then
1342 system_name="`(hostname) 2>/dev/null`"
1345 test -n "$system_name" &&
1346 cat >>confdefs.h <<EOF
1347 #define SYSTEM_NAME "$system_name"
1350 if test "${cf_cv_system_name+set}" = set; then
1351 echo $ECHO_N "(cached) $ECHO_C" >&6
1353 cf_cv_system_name="$system_name"
1356 test -z "$system_name" && system_name="$cf_cv_system_name"
1357 test -n "$cf_cv_system_name" && echo "$as_me:1357: result: Configuring for $cf_cv_system_name" >&5
1358 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1360 if test ".$system_name" != ".$cf_cv_system_name" ; then
1361 echo "$as_me:1361: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1362 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1363 { { echo "$as_me:1363: error: \"Please remove config.cache and try again.\"" >&5
1364 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1365 { (exit 1); exit 1; }; }
1368 # Check whether --with-system-type or --without-system-type was given.
1369 if test "${with_system_type+set}" = set; then
1370 withval="$with_system_type"
1371 { echo "$as_me:1371: WARNING: overriding system type to $withval" >&5
1372 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1373 cf_cv_system_name=$withval
1378 ### Save the given $CFLAGS to allow user-override.
1379 cf_user_CFLAGS="$CFLAGS"
1381 ### Default install-location
1383 echo "$as_me:1383: checking for prefix" >&5
1384 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1385 if test "x$prefix" = "xNONE" ; then
1386 case "$cf_cv_system_name" in
1387 # non-vendor systems don't have a conflict
1388 openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1391 *) prefix=$ac_default_prefix
1395 echo "$as_me:1395: result: $prefix" >&5
1396 echo "${ECHO_T}$prefix" >&6
1398 if test "x$prefix" = "xNONE" ; then
1399 echo "$as_me:1399: checking for default include-directory" >&5
1400 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1401 test -n "$verbose" && echo 1>&6
1404 $includedir/ncurses \
1406 $prefix/include/ncurses \
1407 /usr/local/include \
1408 /usr/local/include/ncurses \
1410 /usr/include/ncurses
1412 cf_dir=`eval echo $cf_symbol`
1413 if test -f $cf_dir/curses.h ; then
1414 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1415 includedir="$cf_symbol"
1416 test -n "$verbose" && echo $ac_n " found " 1>&6
1420 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1422 echo "$as_me:1422: result: $includedir" >&5
1423 echo "${ECHO_T}$includedir" >&6
1426 ### Checks for programs.
1428 # Check whether --with-ada or --without-ada was given.
1429 if test "${with_ada+set}" = set; then
1431 cf_with_ada=$withval
1435 if test "x$cf_with_ada" = xyes
1437 cf_PROG_CC="gnatgcc gcc cc"
1443 ac_cpp='$CPP $CPPFLAGS'
1444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1447 ac_main_return=return
1448 if test -n "$ac_tool_prefix"; then
1449 for ac_prog in $cf_PROG_CC
1451 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1452 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1453 echo "$as_me:1453: checking for $ac_word" >&5
1454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1455 if test "${ac_cv_prog_CC+set}" = set; then
1456 echo $ECHO_N "(cached) $ECHO_C" >&6
1458 if test -n "$CC"; then
1459 ac_cv_prog_CC="$CC" # Let the user override the test.
1461 ac_save_IFS=$IFS; IFS=$ac_path_separator
1463 for ac_dir in $ac_dummy; do
1465 test -z "$ac_dir" && ac_dir=.
1466 $as_executable_p "$ac_dir/$ac_word" || continue
1467 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1468 echo "$as_me:1468: found $ac_dir/$ac_word" >&5
1475 if test -n "$CC"; then
1476 echo "$as_me:1476: result: $CC" >&5
1477 echo "${ECHO_T}$CC" >&6
1479 echo "$as_me:1479: result: no" >&5
1480 echo "${ECHO_T}no" >&6
1483 test -n "$CC" && break
1486 if test -z "$CC"; then
1488 for ac_prog in $cf_PROG_CC
1490 # Extract the first word of "$ac_prog", so it can be a program name with args.
1491 set dummy $ac_prog; ac_word=$2
1492 echo "$as_me:1492: checking for $ac_word" >&5
1493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1494 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1495 echo $ECHO_N "(cached) $ECHO_C" >&6
1497 if test -n "$ac_ct_CC"; then
1498 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1500 ac_save_IFS=$IFS; IFS=$ac_path_separator
1502 for ac_dir in $ac_dummy; do
1504 test -z "$ac_dir" && ac_dir=.
1505 $as_executable_p "$ac_dir/$ac_word" || continue
1506 ac_cv_prog_ac_ct_CC="$ac_prog"
1507 echo "$as_me:1507: found $ac_dir/$ac_word" >&5
1513 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1514 if test -n "$ac_ct_CC"; then
1515 echo "$as_me:1515: result: $ac_ct_CC" >&5
1516 echo "${ECHO_T}$ac_ct_CC" >&6
1518 echo "$as_me:1518: result: no" >&5
1519 echo "${ECHO_T}no" >&6
1522 test -n "$ac_ct_CC" && break
1528 test -z "$CC" && { { echo "$as_me:1528: error: no acceptable cc found in \$PATH" >&5
1529 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1530 { (exit 1); exit 1; }; }
1532 # Provide some information about the compiler.
1533 echo "$as_me:1533:" \
1534 "checking for C compiler version" >&5
1535 ac_compiler=`set X $ac_compile; echo $2`
1536 { (eval echo "$as_me:1536: \"$ac_compiler --version </dev/null >&5\"") >&5
1537 (eval $ac_compiler --version </dev/null >&5) 2>&5
1539 echo "$as_me:1539: \$? = $ac_status" >&5
1540 (exit $ac_status); }
1541 { (eval echo "$as_me:1541: \"$ac_compiler -v </dev/null >&5\"") >&5
1542 (eval $ac_compiler -v </dev/null >&5) 2>&5
1544 echo "$as_me:1544: \$? = $ac_status" >&5
1545 (exit $ac_status); }
1546 { (eval echo "$as_me:1546: \"$ac_compiler -V </dev/null >&5\"") >&5
1547 (eval $ac_compiler -V </dev/null >&5) 2>&5
1549 echo "$as_me:1549: \$? = $ac_status" >&5
1550 (exit $ac_status); }
1552 cat >conftest.$ac_ext <<_ACEOF
1553 #line 1553 "configure"
1554 #include "confdefs.h"
1564 ac_clean_files_save=$ac_clean_files
1565 ac_clean_files="$ac_clean_files a.out a.exe"
1566 # Try to create an executable without -o first, disregard a.out.
1567 # It will help us diagnose broken compilers, and finding out an intuition
1569 echo "$as_me:1569: checking for C compiler default output" >&5
1570 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1571 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1572 if { (eval echo "$as_me:1572: \"$ac_link_default\"") >&5
1573 (eval $ac_link_default) 2>&5
1575 echo "$as_me:1575: \$? = $ac_status" >&5
1576 (exit $ac_status); }; then
1577 # Find the output, starting from the most likely. This scheme is
1578 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1580 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1581 ls a.out conftest 2>/dev/null;
1582 ls a.* conftest.* 2>/dev/null`; do
1584 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1585 a.out ) # We found the default executable, but exeext='' is most
1588 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1589 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1596 echo "$as_me: failed program was:" >&5
1597 cat conftest.$ac_ext >&5
1598 { { echo "$as_me:1598: error: C compiler cannot create executables" >&5
1599 echo "$as_me: error: C compiler cannot create executables" >&2;}
1600 { (exit 77); exit 77; }; }
1603 ac_exeext=$ac_cv_exeext
1604 echo "$as_me:1604: result: $ac_file" >&5
1605 echo "${ECHO_T}$ac_file" >&6
1607 # Check the compiler produces executables we can run. If not, either
1608 # the compiler is broken, or we cross compile.
1609 echo "$as_me:1609: checking whether the C compiler works" >&5
1610 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1611 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1612 # If not cross compiling, check that we can run a simple program.
1613 if test "$cross_compiling" != yes; then
1614 if { ac_try='./$ac_file'
1615 { (eval echo "$as_me:1615: \"$ac_try\"") >&5
1618 echo "$as_me:1618: \$? = $ac_status" >&5
1619 (exit $ac_status); }; }; then
1622 if test "$cross_compiling" = maybe; then
1625 { { echo "$as_me:1625: error: cannot run C compiled programs.
1626 If you meant to cross compile, use \`--host'." >&5
1627 echo "$as_me: error: cannot run C compiled programs.
1628 If you meant to cross compile, use \`--host'." >&2;}
1629 { (exit 1); exit 1; }; }
1633 echo "$as_me:1633: result: yes" >&5
1634 echo "${ECHO_T}yes" >&6
1636 rm -f a.out a.exe conftest$ac_cv_exeext
1637 ac_clean_files=$ac_clean_files_save
1638 # Check the compiler produces executables we can run. If not, either
1639 # the compiler is broken, or we cross compile.
1640 echo "$as_me:1640: checking whether we are cross compiling" >&5
1641 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1642 echo "$as_me:1642: result: $cross_compiling" >&5
1643 echo "${ECHO_T}$cross_compiling" >&6
1645 echo "$as_me:1645: checking for executable suffix" >&5
1646 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1647 if { (eval echo "$as_me:1647: \"$ac_link\"") >&5
1648 (eval $ac_link) 2>&5
1650 echo "$as_me:1650: \$? = $ac_status" >&5
1651 (exit $ac_status); }; then
1652 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1653 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1654 # work properly (i.e., refer to `conftest.exe'), while it won't with
1656 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1658 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1659 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1666 { { echo "$as_me:1666: error: cannot compute EXEEXT: cannot compile and link" >&5
1667 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1668 { (exit 1); exit 1; }; }
1671 rm -f conftest$ac_cv_exeext
1672 echo "$as_me:1672: result: $ac_cv_exeext" >&5
1673 echo "${ECHO_T}$ac_cv_exeext" >&6
1675 rm -f conftest.$ac_ext
1676 EXEEXT=$ac_cv_exeext
1678 echo "$as_me:1678: checking for object suffix" >&5
1679 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1680 if test "${ac_cv_objext+set}" = set; then
1681 echo $ECHO_N "(cached) $ECHO_C" >&6
1683 cat >conftest.$ac_ext <<_ACEOF
1684 #line 1684 "configure"
1685 #include "confdefs.h"
1695 rm -f conftest.o conftest.obj
1696 if { (eval echo "$as_me:1696: \"$ac_compile\"") >&5
1697 (eval $ac_compile) 2>&5
1699 echo "$as_me:1699: \$? = $ac_status" >&5
1700 (exit $ac_status); }; then
1701 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1703 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1704 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1709 echo "$as_me: failed program was:" >&5
1710 cat conftest.$ac_ext >&5
1711 { { echo "$as_me:1711: error: cannot compute OBJEXT: cannot compile" >&5
1712 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1713 { (exit 1); exit 1; }; }
1716 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1718 echo "$as_me:1718: result: $ac_cv_objext" >&5
1719 echo "${ECHO_T}$ac_cv_objext" >&6
1720 OBJEXT=$ac_cv_objext
1722 echo "$as_me:1722: checking whether we are using the GNU C compiler" >&5
1723 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1724 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1725 echo $ECHO_N "(cached) $ECHO_C" >&6
1727 cat >conftest.$ac_ext <<_ACEOF
1728 #line 1728 "configure"
1729 #include "confdefs.h"
1742 rm -f conftest.$ac_objext
1743 if { (eval echo "$as_me:1743: \"$ac_compile\"") >&5
1744 (eval $ac_compile) 2>&5
1746 echo "$as_me:1746: \$? = $ac_status" >&5
1747 (exit $ac_status); } &&
1748 { ac_try='test -s conftest.$ac_objext'
1749 { (eval echo "$as_me:1749: \"$ac_try\"") >&5
1752 echo "$as_me:1752: \$? = $ac_status" >&5
1753 (exit $ac_status); }; }; then
1756 echo "$as_me: failed program was:" >&5
1757 cat conftest.$ac_ext >&5
1760 rm -f conftest.$ac_objext conftest.$ac_ext
1761 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1764 echo "$as_me:1764: result: $ac_cv_c_compiler_gnu" >&5
1765 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1766 GCC=`test $ac_compiler_gnu = yes && echo yes`
1767 ac_test_CFLAGS=${CFLAGS+set}
1768 ac_save_CFLAGS=$CFLAGS
1770 echo "$as_me:1770: checking whether $CC accepts -g" >&5
1771 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1772 if test "${ac_cv_prog_cc_g+set}" = set; then
1773 echo $ECHO_N "(cached) $ECHO_C" >&6
1775 cat >conftest.$ac_ext <<_ACEOF
1776 #line 1776 "configure"
1777 #include "confdefs.h"
1787 rm -f conftest.$ac_objext
1788 if { (eval echo "$as_me:1788: \"$ac_compile\"") >&5
1789 (eval $ac_compile) 2>&5
1791 echo "$as_me:1791: \$? = $ac_status" >&5
1792 (exit $ac_status); } &&
1793 { ac_try='test -s conftest.$ac_objext'
1794 { (eval echo "$as_me:1794: \"$ac_try\"") >&5
1797 echo "$as_me:1797: \$? = $ac_status" >&5
1798 (exit $ac_status); }; }; then
1801 echo "$as_me: failed program was:" >&5
1802 cat conftest.$ac_ext >&5
1805 rm -f conftest.$ac_objext conftest.$ac_ext
1807 echo "$as_me:1807: result: $ac_cv_prog_cc_g" >&5
1808 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1809 if test "$ac_test_CFLAGS" = set; then
1810 CFLAGS=$ac_save_CFLAGS
1811 elif test $ac_cv_prog_cc_g = yes; then
1812 if test "$GCC" = yes; then
1818 if test "$GCC" = yes; then
1824 # Some people use a C++ compiler to compile C. Since we use `exit',
1825 # in C++ we need to declare it. In case someone uses the same compiler
1826 # for both compiling C and C++ we need to have the C++ compiler decide
1827 # the declaration of exit, since it's the most demanding environment.
1828 cat >conftest.$ac_ext <<_ACEOF
1833 rm -f conftest.$ac_objext
1834 if { (eval echo "$as_me:1834: \"$ac_compile\"") >&5
1835 (eval $ac_compile) 2>&5
1837 echo "$as_me:1837: \$? = $ac_status" >&5
1838 (exit $ac_status); } &&
1839 { ac_try='test -s conftest.$ac_objext'
1840 { (eval echo "$as_me:1840: \"$ac_try\"") >&5
1843 echo "$as_me:1843: \$? = $ac_status" >&5
1844 (exit $ac_status); }; }; then
1845 for ac_declaration in \
1847 '#include <stdlib.h>' \
1848 'extern "C" void std::exit (int) throw (); using std::exit;' \
1849 'extern "C" void std::exit (int); using std::exit;' \
1850 'extern "C" void exit (int) throw ();' \
1851 'extern "C" void exit (int);' \
1854 cat >conftest.$ac_ext <<_ACEOF
1855 #line 1855 "configure"
1856 #include "confdefs.h"
1867 rm -f conftest.$ac_objext
1868 if { (eval echo "$as_me:1868: \"$ac_compile\"") >&5
1869 (eval $ac_compile) 2>&5
1871 echo "$as_me:1871: \$? = $ac_status" >&5
1872 (exit $ac_status); } &&
1873 { ac_try='test -s conftest.$ac_objext'
1874 { (eval echo "$as_me:1874: \"$ac_try\"") >&5
1877 echo "$as_me:1877: \$? = $ac_status" >&5
1878 (exit $ac_status); }; }; then
1881 echo "$as_me: failed program was:" >&5
1882 cat conftest.$ac_ext >&5
1885 rm -f conftest.$ac_objext conftest.$ac_ext
1886 cat >conftest.$ac_ext <<_ACEOF
1887 #line 1887 "configure"
1888 #include "confdefs.h"
1898 rm -f conftest.$ac_objext
1899 if { (eval echo "$as_me:1899: \"$ac_compile\"") >&5
1900 (eval $ac_compile) 2>&5
1902 echo "$as_me:1902: \$? = $ac_status" >&5
1903 (exit $ac_status); } &&
1904 { ac_try='test -s conftest.$ac_objext'
1905 { (eval echo "$as_me:1905: \"$ac_try\"") >&5
1908 echo "$as_me:1908: \$? = $ac_status" >&5
1909 (exit $ac_status); }; }; then
1912 echo "$as_me: failed program was:" >&5
1913 cat conftest.$ac_ext >&5
1915 rm -f conftest.$ac_objext conftest.$ac_ext
1918 if test -n "$ac_declaration"; then
1919 echo '#ifdef __cplusplus' >>confdefs.h
1920 echo $ac_declaration >>confdefs.h
1921 echo '#endif' >>confdefs.h
1925 echo "$as_me: failed program was:" >&5
1926 cat conftest.$ac_ext >&5
1928 rm -f conftest.$ac_objext conftest.$ac_ext
1930 ac_cpp='$CPP $CPPFLAGS'
1931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1934 ac_main_return=return
1937 if test "$GCC" = yes ; then
1938 echo "$as_me:1938: checking version of $CC" >&5
1939 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1940 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.].*//'`"
1941 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1942 echo "$as_me:1942: result: $GCC_VERSION" >&5
1943 echo "${ECHO_T}$GCC_VERSION" >&6
1946 echo "$as_me:1946: checking for $CC option to accept ANSI C" >&5
1947 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1948 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1949 echo $ECHO_N "(cached) $ECHO_C" >&6
1951 ac_cv_prog_cc_stdc=no
1953 cat >conftest.$ac_ext <<_ACEOF
1954 #line 1954 "configure"
1955 #include "confdefs.h"
1958 #include <sys/types.h>
1959 #include <sys/stat.h>
1960 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1961 struct buf { int x; };
1962 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1963 static char *e (p, i)
1969 static char *f (char * (*g) (char **, int), char **p, ...)
1974 s = g (p, va_arg (v,int));
1978 int test (int i, double x);
1979 struct s1 {int (*f) (int a);};
1980 struct s2 {int (*f) (double a);};
1981 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1987 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1992 # Don't try gcc -ansi; that turns off useful extensions and
1993 # breaks some systems' header files.
1994 # AIX -qlanglvl=ansi
1995 # Ultrix and OSF/1 -std1
1996 # HP-UX 10.20 and later -Ae
1997 # HP-UX older versions -Aa -D_HPUX_SOURCE
1998 # SVR4 -Xc -D__EXTENSIONS__
1999 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2001 CC="$ac_save_CC $ac_arg"
2002 rm -f conftest.$ac_objext
2003 if { (eval echo "$as_me:2003: \"$ac_compile\"") >&5
2004 (eval $ac_compile) 2>&5
2006 echo "$as_me:2006: \$? = $ac_status" >&5
2007 (exit $ac_status); } &&
2008 { ac_try='test -s conftest.$ac_objext'
2009 { (eval echo "$as_me:2009: \"$ac_try\"") >&5
2012 echo "$as_me:2012: \$? = $ac_status" >&5
2013 (exit $ac_status); }; }; then
2014 ac_cv_prog_cc_stdc=$ac_arg
2017 echo "$as_me: failed program was:" >&5
2018 cat conftest.$ac_ext >&5
2020 rm -f conftest.$ac_objext
2022 rm -f conftest.$ac_ext conftest.$ac_objext
2027 case "x$ac_cv_prog_cc_stdc" in
2029 echo "$as_me:2029: result: none needed" >&5
2030 echo "${ECHO_T}none needed" >&6 ;;
2032 echo "$as_me:2032: result: $ac_cv_prog_cc_stdc" >&5
2033 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2034 CC="$CC $ac_cv_prog_cc_stdc" ;;
2037 # This should have been defined by AC_PROG_CC
2040 echo "$as_me:2040: checking \$CC variable" >&5
2041 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2044 echo "$as_me:2044: result: broken" >&5
2045 echo "${ECHO_T}broken" >&6
2046 { echo "$as_me:2046: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2047 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2049 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
2050 CC=`echo "$CC" | sed -e 's/[ ].*//'`
2055 cf_new_extra_cppflags=
2057 for cf_add_cflags in $cf_flags
2059 case $cf_fix_cppflags in
2061 case $cf_add_cflags in #(vi
2062 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2063 case $cf_add_cflags in
2065 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2067 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2068 && test -z "${cf_tst_cflags}" \
2069 && cf_fix_cppflags=yes
2071 if test $cf_fix_cppflags = yes ; then
2072 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2074 elif test "${cf_tst_cflags}" = "\"'" ; then
2075 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2081 *$cf_add_cflags) #(vi
2084 case $cf_add_cflags in #(vi
2086 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2088 CPPFLAGS=`echo "$CPPFLAGS" | \
2089 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2090 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2094 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2099 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2104 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2106 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2108 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2109 && test -z "${cf_tst_cflags}" \
2110 && cf_fix_cppflags=no
2115 if test -n "$cf_new_cflags" ; then
2117 CFLAGS="$CFLAGS $cf_new_cflags"
2120 if test -n "$cf_new_cppflags" ; then
2122 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2125 if test -n "$cf_new_extra_cppflags" ; then
2127 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2132 echo "$as_me:2132: result: ok" >&5
2133 echo "${ECHO_T}ok" >&6
2138 ac_cpp='$CPP $CPPFLAGS'
2139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2142 ac_main_return=return
2143 echo "$as_me:2143: checking how to run the C preprocessor" >&5
2144 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2145 # On Suns, sometimes $CPP names a directory.
2146 if test -n "$CPP" && test -d "$CPP"; then
2149 if test -z "$CPP"; then
2150 if test "${ac_cv_prog_CPP+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2153 # Double quotes because CPP needs to be expanded
2154 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2157 for ac_c_preproc_warn_flag in '' yes
2159 # Use a header file that comes with gcc, so configuring glibc
2160 # with a fresh cross-compiler works.
2161 # On the NeXT, cc -E runs the code through the compiler's parser,
2162 # not just through cpp. "Syntax error" is here to catch this case.
2163 cat >conftest.$ac_ext <<_ACEOF
2164 #line 2164 "configure"
2165 #include "confdefs.h"
2169 if { (eval echo "$as_me:2169: \"$ac_cpp conftest.$ac_ext\"") >&5
2170 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2172 egrep -v '^ *\+' conftest.er1 >conftest.err
2174 cat conftest.err >&5
2175 echo "$as_me:2175: \$? = $ac_status" >&5
2176 (exit $ac_status); } >/dev/null; then
2177 if test -s conftest.err; then
2178 ac_cpp_err=$ac_c_preproc_warn_flag
2185 if test -z "$ac_cpp_err"; then
2188 echo "$as_me: failed program was:" >&5
2189 cat conftest.$ac_ext >&5
2190 # Broken: fails on valid input.
2193 rm -f conftest.err conftest.$ac_ext
2195 # OK, works on sane cases. Now check whether non-existent headers
2196 # can be detected and how.
2197 cat >conftest.$ac_ext <<_ACEOF
2198 #line 2198 "configure"
2199 #include "confdefs.h"
2200 #include <ac_nonexistent.h>
2202 if { (eval echo "$as_me:2202: \"$ac_cpp conftest.$ac_ext\"") >&5
2203 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2205 egrep -v '^ *\+' conftest.er1 >conftest.err
2207 cat conftest.err >&5
2208 echo "$as_me:2208: \$? = $ac_status" >&5
2209 (exit $ac_status); } >/dev/null; then
2210 if test -s conftest.err; then
2211 ac_cpp_err=$ac_c_preproc_warn_flag
2218 if test -z "$ac_cpp_err"; then
2219 # Broken: success on invalid input.
2222 echo "$as_me: failed program was:" >&5
2223 cat conftest.$ac_ext >&5
2224 # Passes both tests.
2228 rm -f conftest.err conftest.$ac_ext
2231 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2232 rm -f conftest.err conftest.$ac_ext
2233 if $ac_preproc_ok; then
2245 echo "$as_me:2245: result: $CPP" >&5
2246 echo "${ECHO_T}$CPP" >&6
2248 for ac_c_preproc_warn_flag in '' yes
2250 # Use a header file that comes with gcc, so configuring glibc
2251 # with a fresh cross-compiler works.
2252 # On the NeXT, cc -E runs the code through the compiler's parser,
2253 # not just through cpp. "Syntax error" is here to catch this case.
2254 cat >conftest.$ac_ext <<_ACEOF
2255 #line 2255 "configure"
2256 #include "confdefs.h"
2260 if { (eval echo "$as_me:2260: \"$ac_cpp conftest.$ac_ext\"") >&5
2261 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2263 egrep -v '^ *\+' conftest.er1 >conftest.err
2265 cat conftest.err >&5
2266 echo "$as_me:2266: \$? = $ac_status" >&5
2267 (exit $ac_status); } >/dev/null; then
2268 if test -s conftest.err; then
2269 ac_cpp_err=$ac_c_preproc_warn_flag
2276 if test -z "$ac_cpp_err"; then
2279 echo "$as_me: failed program was:" >&5
2280 cat conftest.$ac_ext >&5
2281 # Broken: fails on valid input.
2284 rm -f conftest.err conftest.$ac_ext
2286 # OK, works on sane cases. Now check whether non-existent headers
2287 # can be detected and how.
2288 cat >conftest.$ac_ext <<_ACEOF
2289 #line 2289 "configure"
2290 #include "confdefs.h"
2291 #include <ac_nonexistent.h>
2293 if { (eval echo "$as_me:2293: \"$ac_cpp conftest.$ac_ext\"") >&5
2294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2296 egrep -v '^ *\+' conftest.er1 >conftest.err
2298 cat conftest.err >&5
2299 echo "$as_me:2299: \$? = $ac_status" >&5
2300 (exit $ac_status); } >/dev/null; then
2301 if test -s conftest.err; then
2302 ac_cpp_err=$ac_c_preproc_warn_flag
2309 if test -z "$ac_cpp_err"; then
2310 # Broken: success on invalid input.
2313 echo "$as_me: failed program was:" >&5
2314 cat conftest.$ac_ext >&5
2315 # Passes both tests.
2319 rm -f conftest.err conftest.$ac_ext
2322 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2323 rm -f conftest.err conftest.$ac_ext
2324 if $ac_preproc_ok; then
2327 { { echo "$as_me:2327: error: C preprocessor \"$CPP\" fails sanity check" >&5
2328 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2329 { (exit 1); exit 1; }; }
2333 ac_cpp='$CPP $CPPFLAGS'
2334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2337 ac_main_return=return
2339 if test $ac_cv_c_compiler_gnu = yes; then
2340 echo "$as_me:2340: checking whether $CC needs -traditional" >&5
2341 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2342 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2343 echo $ECHO_N "(cached) $ECHO_C" >&6
2345 ac_pattern="Autoconf.*'x'"
2346 cat >conftest.$ac_ext <<_ACEOF
2347 #line 2347 "configure"
2348 #include "confdefs.h"
2350 int Autoconf = TIOCGETP;
2352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2353 egrep "$ac_pattern" >/dev/null 2>&1; then
2354 ac_cv_prog_gcc_traditional=yes
2356 ac_cv_prog_gcc_traditional=no
2360 if test $ac_cv_prog_gcc_traditional = no; then
2361 cat >conftest.$ac_ext <<_ACEOF
2362 #line 2362 "configure"
2363 #include "confdefs.h"
2365 int Autoconf = TCGETA;
2367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2368 egrep "$ac_pattern" >/dev/null 2>&1; then
2369 ac_cv_prog_gcc_traditional=yes
2375 echo "$as_me:2375: result: $ac_cv_prog_gcc_traditional" >&5
2376 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2377 if test $ac_cv_prog_gcc_traditional = yes; then
2378 CC="$CC -traditional"
2382 echo "$as_me:2382: checking whether $CC understands -c and -o together" >&5
2383 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2384 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2385 echo $ECHO_N "(cached) $ECHO_C" >&6
2388 cat > conftest.$ac_ext <<CF_EOF
2392 ${cf_cv_main_return:-return}(0);
2395 # We do the test twice because some compilers refuse to overwrite an
2396 # existing .o file with -o, though they will create one.
2397 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2398 if { (eval echo "$as_me:2398: \"$ac_try\"") >&5
2401 echo "$as_me:2401: \$? = $ac_status" >&5
2402 (exit $ac_status); } &&
2403 test -f conftest2.$ac_objext && { (eval echo "$as_me:2403: \"$ac_try\"") >&5
2406 echo "$as_me:2406: \$? = $ac_status" >&5
2407 (exit $ac_status); };
2409 eval cf_cv_prog_CC_c_o=yes
2411 eval cf_cv_prog_CC_c_o=no
2416 if test $cf_cv_prog_CC_c_o = yes; then
2417 echo "$as_me:2417: result: yes" >&5
2418 echo "${ECHO_T}yes" >&6
2420 echo "$as_me:2420: result: no" >&5
2421 echo "${ECHO_T}no" >&6
2424 if test "$cross_compiling" = yes ; then
2427 case "$cf_cv_system_name" in #(vi
2428 dragonfly*|mirbsd*|freebsd*) #(vi
2429 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2431 *) LDPATH=$PATH:/sbin:/usr/sbin
2432 # Extract the first word of "ldconfig", so it can be a program name with args.
2433 set dummy ldconfig; ac_word=$2
2434 echo "$as_me:2434: checking for $ac_word" >&5
2435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2436 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2441 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2444 ac_save_IFS=$IFS; IFS=$ac_path_separator
2446 for ac_dir in $ac_dummy; do
2448 test -z "$ac_dir" && ac_dir=.
2449 if $as_executable_p "$ac_dir/$ac_word"; then
2450 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2451 echo "$as_me:2451: found $ac_dir/$ac_word" >&5
2459 LDCONFIG=$ac_cv_path_LDCONFIG
2461 if test -n "$LDCONFIG"; then
2462 echo "$as_me:2462: result: $LDCONFIG" >&5
2463 echo "${ECHO_T}$LDCONFIG" >&6
2465 echo "$as_me:2465: result: no" >&5
2466 echo "${ECHO_T}no" >&6
2473 echo "$as_me:2473: checking if you want to ensure bool is consistent with C++" >&5
2474 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2476 # Check whether --with-cxx or --without-cxx was given.
2477 if test "${with_cxx+set}" = set; then
2479 cf_with_cxx=$withval
2483 echo "$as_me:2483: result: $cf_with_cxx" >&5
2484 echo "${ECHO_T}$cf_with_cxx" >&6
2485 if test "X$cf_with_cxx" = Xno ; then
2489 # with autoconf 2.13, we can change the error to a warning:
2491 ac_cpp='$CXXCPP $CPPFLAGS'
2492 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2493 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2494 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2495 ac_main_return=return
2496 if test -n "$ac_tool_prefix"; then
2497 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2499 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2500 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2501 echo "$as_me:2501: checking for $ac_word" >&5
2502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2503 if test "${ac_cv_prog_CXX+set}" = set; then
2504 echo $ECHO_N "(cached) $ECHO_C" >&6
2506 if test -n "$CXX"; then
2507 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2509 ac_save_IFS=$IFS; IFS=$ac_path_separator
2511 for ac_dir in $ac_dummy; do
2513 test -z "$ac_dir" && ac_dir=.
2514 $as_executable_p "$ac_dir/$ac_word" || continue
2515 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2516 echo "$as_me:2516: found $ac_dir/$ac_word" >&5
2523 if test -n "$CXX"; then
2524 echo "$as_me:2524: result: $CXX" >&5
2525 echo "${ECHO_T}$CXX" >&6
2527 echo "$as_me:2527: result: no" >&5
2528 echo "${ECHO_T}no" >&6
2531 test -n "$CXX" && break
2534 if test -z "$CXX"; then
2536 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2538 # Extract the first word of "$ac_prog", so it can be a program name with args.
2539 set dummy $ac_prog; ac_word=$2
2540 echo "$as_me:2540: checking for $ac_word" >&5
2541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2542 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2543 echo $ECHO_N "(cached) $ECHO_C" >&6
2545 if test -n "$ac_ct_CXX"; then
2546 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2548 ac_save_IFS=$IFS; IFS=$ac_path_separator
2550 for ac_dir in $ac_dummy; do
2552 test -z "$ac_dir" && ac_dir=.
2553 $as_executable_p "$ac_dir/$ac_word" || continue
2554 ac_cv_prog_ac_ct_CXX="$ac_prog"
2555 echo "$as_me:2555: found $ac_dir/$ac_word" >&5
2561 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2562 if test -n "$ac_ct_CXX"; then
2563 echo "$as_me:2563: result: $ac_ct_CXX" >&5
2564 echo "${ECHO_T}$ac_ct_CXX" >&6
2566 echo "$as_me:2566: result: no" >&5
2567 echo "${ECHO_T}no" >&6
2570 test -n "$ac_ct_CXX" && break
2572 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2577 # Provide some information about the compiler.
2578 echo "$as_me:2578:" \
2579 "checking for C++ compiler version" >&5
2580 ac_compiler=`set X $ac_compile; echo $2`
2581 { (eval echo "$as_me:2581: \"$ac_compiler --version </dev/null >&5\"") >&5
2582 (eval $ac_compiler --version </dev/null >&5) 2>&5
2584 echo "$as_me:2584: \$? = $ac_status" >&5
2585 (exit $ac_status); }
2586 { (eval echo "$as_me:2586: \"$ac_compiler -v </dev/null >&5\"") >&5
2587 (eval $ac_compiler -v </dev/null >&5) 2>&5
2589 echo "$as_me:2589: \$? = $ac_status" >&5
2590 (exit $ac_status); }
2591 { (eval echo "$as_me:2591: \"$ac_compiler -V </dev/null >&5\"") >&5
2592 (eval $ac_compiler -V </dev/null >&5) 2>&5
2594 echo "$as_me:2594: \$? = $ac_status" >&5
2595 (exit $ac_status); }
2597 echo "$as_me:2597: checking whether we are using the GNU C++ compiler" >&5
2598 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2599 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2600 echo $ECHO_N "(cached) $ECHO_C" >&6
2602 cat >conftest.$ac_ext <<_ACEOF
2603 #line 2603 "configure"
2604 #include "confdefs.h"
2617 rm -f conftest.$ac_objext
2618 if { (eval echo "$as_me:2618: \"$ac_compile\"") >&5
2619 (eval $ac_compile) 2>&5
2621 echo "$as_me:2621: \$? = $ac_status" >&5
2622 (exit $ac_status); } &&
2623 { ac_try='test -s conftest.$ac_objext'
2624 { (eval echo "$as_me:2624: \"$ac_try\"") >&5
2627 echo "$as_me:2627: \$? = $ac_status" >&5
2628 (exit $ac_status); }; }; then
2631 echo "$as_me: failed program was:" >&5
2632 cat conftest.$ac_ext >&5
2635 rm -f conftest.$ac_objext conftest.$ac_ext
2636 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2639 echo "$as_me:2639: result: $ac_cv_cxx_compiler_gnu" >&5
2640 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2641 GXX=`test $ac_compiler_gnu = yes && echo yes`
2642 ac_test_CXXFLAGS=${CXXFLAGS+set}
2643 ac_save_CXXFLAGS=$CXXFLAGS
2645 echo "$as_me:2645: checking whether $CXX accepts -g" >&5
2646 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2647 if test "${ac_cv_prog_cxx_g+set}" = set; then
2648 echo $ECHO_N "(cached) $ECHO_C" >&6
2650 cat >conftest.$ac_ext <<_ACEOF
2651 #line 2651 "configure"
2652 #include "confdefs.h"
2662 rm -f conftest.$ac_objext
2663 if { (eval echo "$as_me:2663: \"$ac_compile\"") >&5
2664 (eval $ac_compile) 2>&5
2666 echo "$as_me:2666: \$? = $ac_status" >&5
2667 (exit $ac_status); } &&
2668 { ac_try='test -s conftest.$ac_objext'
2669 { (eval echo "$as_me:2669: \"$ac_try\"") >&5
2672 echo "$as_me:2672: \$? = $ac_status" >&5
2673 (exit $ac_status); }; }; then
2674 ac_cv_prog_cxx_g=yes
2676 echo "$as_me: failed program was:" >&5
2677 cat conftest.$ac_ext >&5
2680 rm -f conftest.$ac_objext conftest.$ac_ext
2682 echo "$as_me:2682: result: $ac_cv_prog_cxx_g" >&5
2683 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2684 if test "$ac_test_CXXFLAGS" = set; then
2685 CXXFLAGS=$ac_save_CXXFLAGS
2686 elif test $ac_cv_prog_cxx_g = yes; then
2687 if test "$GXX" = yes; then
2693 if test "$GXX" = yes; then
2699 for ac_declaration in \
2701 '#include <stdlib.h>' \
2702 'extern "C" void std::exit (int) throw (); using std::exit;' \
2703 'extern "C" void std::exit (int); using std::exit;' \
2704 'extern "C" void exit (int) throw ();' \
2705 'extern "C" void exit (int);' \
2708 cat >conftest.$ac_ext <<_ACEOF
2709 #line 2709 "configure"
2710 #include "confdefs.h"
2721 rm -f conftest.$ac_objext
2722 if { (eval echo "$as_me:2722: \"$ac_compile\"") >&5
2723 (eval $ac_compile) 2>&5
2725 echo "$as_me:2725: \$? = $ac_status" >&5
2726 (exit $ac_status); } &&
2727 { ac_try='test -s conftest.$ac_objext'
2728 { (eval echo "$as_me:2728: \"$ac_try\"") >&5
2731 echo "$as_me:2731: \$? = $ac_status" >&5
2732 (exit $ac_status); }; }; then
2735 echo "$as_me: failed program was:" >&5
2736 cat conftest.$ac_ext >&5
2739 rm -f conftest.$ac_objext conftest.$ac_ext
2740 cat >conftest.$ac_ext <<_ACEOF
2741 #line 2741 "configure"
2742 #include "confdefs.h"
2752 rm -f conftest.$ac_objext
2753 if { (eval echo "$as_me:2753: \"$ac_compile\"") >&5
2754 (eval $ac_compile) 2>&5
2756 echo "$as_me:2756: \$? = $ac_status" >&5
2757 (exit $ac_status); } &&
2758 { ac_try='test -s conftest.$ac_objext'
2759 { (eval echo "$as_me:2759: \"$ac_try\"") >&5
2762 echo "$as_me:2762: \$? = $ac_status" >&5
2763 (exit $ac_status); }; }; then
2766 echo "$as_me: failed program was:" >&5
2767 cat conftest.$ac_ext >&5
2769 rm -f conftest.$ac_objext conftest.$ac_ext
2772 if test -n "$ac_declaration"; then
2773 echo '#ifdef __cplusplus' >>confdefs.h
2774 echo $ac_declaration >>confdefs.h
2775 echo '#endif' >>confdefs.h
2779 ac_cpp='$CPP $CPPFLAGS'
2780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2783 ac_main_return=return
2785 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
2786 if test "$CXX" = "g++" ; then
2787 # Extract the first word of "g++", so it can be a program name with args.
2788 set dummy g++; ac_word=$2
2789 echo "$as_me:2789: checking for $ac_word" >&5
2790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2791 if test "${ac_cv_path_CXX+set}" = set; then
2792 echo $ECHO_N "(cached) $ECHO_C" >&6
2796 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
2799 ac_save_IFS=$IFS; IFS=$ac_path_separator
2801 for ac_dir in $ac_dummy; do
2803 test -z "$ac_dir" && ac_dir=.
2804 if $as_executable_p "$ac_dir/$ac_word"; then
2805 ac_cv_path_CXX="$ac_dir/$ac_word"
2806 echo "$as_me:2806: found $ac_dir/$ac_word" >&5
2816 if test -n "$CXX"; then
2817 echo "$as_me:2817: result: $CXX" >&5
2818 echo "${ECHO_T}$CXX" >&6
2820 echo "$as_me:2820: result: no" >&5
2821 echo "${ECHO_T}no" >&6
2825 case "x$CXX" in #(vi
2827 { echo "$as_me:2827: WARNING: You don't have any C++ compiler, too bad" >&5
2828 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
2829 cf_with_cxx=no; CXX=""; GXX="";
2835 if test "$GXX" = yes; then
2836 echo "$as_me:2836: checking version of ${CXX:-g++}" >&5
2837 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
2838 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2839 test -z "$GXX_VERSION" && GXX_VERSION=unknown
2840 echo "$as_me:2840: result: $GXX_VERSION" >&5
2841 echo "${ECHO_T}$GXX_VERSION" >&6
2844 case $GXX_VERSION in
2846 # GXX=""; CXX=""; ac_cv_prog_gxx=no
2848 { echo "$as_me:2848: WARNING: templates do not work" >&5
2849 echo "$as_me: WARNING: templates do not work" >&2;}
2853 echo "$as_me:2853: checking if you want to build C++ binding and demo" >&5
2854 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
2856 # Check whether --with-cxx-binding or --without-cxx-binding was given.
2857 if test "${with_cxx_binding+set}" = set; then
2858 withval="$with_cxx_binding"
2859 cf_with_cxx_binding=$withval
2861 cf_with_cxx_binding=$cf_with_cxx
2863 echo "$as_me:2863: result: $cf_with_cxx_binding" >&5
2864 echo "${ECHO_T}$cf_with_cxx_binding" >&6
2866 echo "$as_me:2866: checking if you want to build with Ada95" >&5
2867 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
2868 echo "$as_me:2868: result: $cf_with_ada" >&5
2869 echo "${ECHO_T}$cf_with_ada" >&6
2871 echo "$as_me:2871: checking if you want to install terminal database" >&5
2872 echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6
2874 # Check whether --enable-db-install or --disable-db-install was given.
2875 if test "${enable_db_install+set}" = set; then
2876 enableval="$enable_db_install"
2877 cf_with_db_install=$enableval
2879 cf_with_db_install=yes
2881 echo "$as_me:2881: result: $cf_with_db_install" >&5
2882 echo "${ECHO_T}$cf_with_db_install" >&6
2884 echo "$as_me:2884: checking if you want to install manpages" >&5
2885 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
2887 # Check whether --with-manpages or --without-manpages was given.
2888 if test "${with_manpages+set}" = set; then
2889 withval="$with_manpages"
2890 cf_with_manpages=$withval
2892 cf_with_manpages=yes
2894 echo "$as_me:2894: result: $cf_with_manpages" >&5
2895 echo "${ECHO_T}$cf_with_manpages" >&6
2897 echo "$as_me:2897: checking if you want to build programs such as tic" >&5
2898 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
2900 # Check whether --with-progs or --without-progs was given.
2901 if test "${with_progs+set}" = set; then
2902 withval="$with_progs"
2903 cf_with_progs=$withval
2907 echo "$as_me:2907: result: $cf_with_progs" >&5
2908 echo "${ECHO_T}$cf_with_progs" >&6
2910 echo "$as_me:2910: checking if you want to build test-programs" >&5
2911 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
2913 # Check whether --with-tests or --without-tests was given.
2914 if test "${with_tests+set}" = set; then
2915 withval="$with_tests"
2916 cf_with_tests=$withval
2920 echo "$as_me:2920: result: $cf_with_tests" >&5
2921 echo "${ECHO_T}$cf_with_tests" >&6
2923 echo "$as_me:2923: checking if you wish to install curses.h" >&5
2924 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
2926 # Check whether --with-curses-h or --without-curses-h was given.
2927 if test "${with_curses_h+set}" = set; then
2928 withval="$with_curses_h"
2929 with_curses_h=$withval
2933 echo "$as_me:2933: result: $with_curses_h" >&5
2934 echo "${ECHO_T}$with_curses_h" >&6
2936 modules_to_build="ncurses"
2937 if test "X$cf_with_progs" != Xno ; then
2938 modules_to_build="$modules_to_build progs tack"
2940 modules_to_build="$modules_to_build panel menu form"
2942 test "$program_prefix" != NONE &&
2943 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2944 # Use a double $ so make ignores it.
2945 test "$program_suffix" != NONE &&
2946 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2947 # Double any \ or $. echo might interpret backslashes.
2948 # By default was `s,x,x', remove it if useless.
2949 cat <<\_ACEOF >conftest.sed
2950 s/[\\$]/&&/g;s/;s,x,x,$//
2952 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2955 for ac_prog in mawk gawk nawk awk
2957 # Extract the first word of "$ac_prog", so it can be a program name with args.
2958 set dummy $ac_prog; ac_word=$2
2959 echo "$as_me:2959: checking for $ac_word" >&5
2960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2961 if test "${ac_cv_prog_AWK+set}" = set; then
2962 echo $ECHO_N "(cached) $ECHO_C" >&6
2964 if test -n "$AWK"; then
2965 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2967 ac_save_IFS=$IFS; IFS=$ac_path_separator
2969 for ac_dir in $ac_dummy; do
2971 test -z "$ac_dir" && ac_dir=.
2972 $as_executable_p "$ac_dir/$ac_word" || continue
2973 ac_cv_prog_AWK="$ac_prog"
2974 echo "$as_me:2974: found $ac_dir/$ac_word" >&5
2981 if test -n "$AWK"; then
2982 echo "$as_me:2982: result: $AWK" >&5
2983 echo "${ECHO_T}$AWK" >&6
2985 echo "$as_me:2985: result: no" >&5
2986 echo "${ECHO_T}no" >&6
2989 test -n "$AWK" && break
2992 test -z "$AWK" && { { echo "$as_me:2992: error: No awk program found" >&5
2993 echo "$as_me: error: No awk program found" >&2;}
2994 { (exit 1); exit 1; }; }
2996 echo "$as_me:2996: checking for egrep" >&5
2997 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2998 if test "${ac_cv_prog_egrep+set}" = set; then
2999 echo $ECHO_N "(cached) $ECHO_C" >&6
3001 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3002 then ac_cv_prog_egrep='grep -E'
3003 else ac_cv_prog_egrep='egrep'
3006 echo "$as_me:3006: result: $ac_cv_prog_egrep" >&5
3007 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3008 EGREP=$ac_cv_prog_egrep
3010 test -z "$EGREP" && { { echo "$as_me:3010: error: No egrep program found" >&5
3011 echo "$as_me: error: No egrep program found" >&2;}
3012 { (exit 1); exit 1; }; }
3014 # Find a good install program. We prefer a C program (faster),
3015 # so one script is as good as another. But avoid the broken or
3016 # incompatible versions:
3017 # SysV /etc/install, /usr/sbin/install
3018 # SunOS /usr/etc/install
3019 # IRIX /sbin/install
3021 # AmigaOS /C/install, which installs bootblocks on floppy discs
3022 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3023 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3024 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3025 # ./install, which can be erroneously created by make from ./install.sh.
3026 echo "$as_me:3026: checking for a BSD compatible install" >&5
3027 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3028 if test -z "$INSTALL"; then
3029 if test "${ac_cv_path_install+set}" = set; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
3032 ac_save_IFS=$IFS; IFS=$ac_path_separator
3033 for ac_dir in $PATH; do
3035 # Account for people who put trailing slashes in PATH elements.
3037 / | ./ | .// | /cC/* \
3038 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3041 # OSF1 and SCO ODT 3.0 have their own names for install.
3042 # Don't use installbsd from OSF since it installs stuff as root
3044 for ac_prog in ginstall scoinst install; do
3045 if $as_executable_p "$ac_dir/$ac_prog"; then
3046 if test $ac_prog = install &&
3047 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3048 # AIX install. It has an incompatible calling convention.
3050 elif test $ac_prog = install &&
3051 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3052 # program-specific install script used by HP pwplus--don't use.
3055 ac_cv_path_install="$ac_dir/$ac_prog -c"
3065 if test "${ac_cv_path_install+set}" = set; then
3066 INSTALL=$ac_cv_path_install
3068 # As a last resort, use the slow shell script. We don't cache a
3069 # path for INSTALL within a source directory, because that will
3070 # break other packages using the cache if that directory is
3071 # removed, or if the path is relative.
3072 INSTALL=$ac_install_sh
3075 echo "$as_me:3075: result: $INSTALL" >&5
3076 echo "${ECHO_T}$INSTALL" >&6
3078 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3079 # It thinks the first close brace ends the variable substitution.
3080 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3082 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3084 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3090 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3091 test -z "$cf_dir" && cf_dir=.
3092 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3096 for ac_prog in tdlint lint alint splint lclint
3098 # Extract the first word of "$ac_prog", so it can be a program name with args.
3099 set dummy $ac_prog; ac_word=$2
3100 echo "$as_me:3100: checking for $ac_word" >&5
3101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3102 if test "${ac_cv_prog_LINT+set}" = set; then
3103 echo $ECHO_N "(cached) $ECHO_C" >&6
3105 if test -n "$LINT"; then
3106 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3108 ac_save_IFS=$IFS; IFS=$ac_path_separator
3110 for ac_dir in $ac_dummy; do
3112 test -z "$ac_dir" && ac_dir=.
3113 $as_executable_p "$ac_dir/$ac_word" || continue
3114 ac_cv_prog_LINT="$ac_prog"
3115 echo "$as_me:3115: found $ac_dir/$ac_word" >&5
3121 LINT=$ac_cv_prog_LINT
3122 if test -n "$LINT"; then
3123 echo "$as_me:3123: result: $LINT" >&5
3124 echo "${ECHO_T}$LINT" >&6
3126 echo "$as_me:3126: result: no" >&5
3127 echo "${ECHO_T}no" >&6
3130 test -n "$LINT" && break
3133 echo "$as_me:3133: checking whether ln -s works" >&5
3134 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3136 if test "$LN_S" = "ln -s"; then
3137 echo "$as_me:3137: result: yes" >&5
3138 echo "${ECHO_T}yes" >&6
3140 echo "$as_me:3140: result: no, using $LN_S" >&5
3141 echo "${ECHO_T}no, using $LN_S" >&6
3144 echo "$as_me:3144: checking if $LN_S -f options work" >&5
3145 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3147 rm -f conf$$.src conf$$dst
3149 echo first >conf$$.src
3150 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3155 rm -f conf$$.dst conf$$src
3156 echo "$as_me:3156: result: $cf_prog_ln_sf" >&5
3157 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3159 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3161 echo "$as_me:3161: checking for long file names" >&5
3162 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3163 if test "${ac_cv_sys_long_file_names+set}" = set; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
3166 ac_cv_sys_long_file_names=yes
3167 # Test for long file names in all the places we know might matter:
3168 # . the current directory, where building will happen
3169 # $prefix/lib where we will be installing things
3170 # $exec_prefix/lib likewise
3171 # eval it to expand exec_prefix.
3172 # $TMPDIR if set, where it might want to write temporary files
3173 # if $TMPDIR is not set:
3174 # /tmp where it might want to write temporary files
3177 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3180 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3182 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3183 test -d $ac_dir || continue
3184 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3185 ac_xdir=$ac_dir/cf$$
3186 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3187 ac_tf1=$ac_xdir/conftest9012345
3188 ac_tf2=$ac_xdir/conftest9012346
3189 (echo 1 >$ac_tf1) 2>/dev/null
3190 (echo 2 >$ac_tf2) 2>/dev/null
3191 ac_val=`cat $ac_tf1 2>/dev/null`
3192 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3193 ac_cv_sys_long_file_names=no
3194 rm -rf $ac_xdir 2>/dev/null
3197 rm -rf $ac_xdir 2>/dev/null
3200 echo "$as_me:3200: result: $ac_cv_sys_long_file_names" >&5
3201 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3202 if test $ac_cv_sys_long_file_names = yes; then
3204 cat >>confdefs.h <<\EOF
3205 #define HAVE_LONG_FILE_NAMES 1
3210 # if we find pkg-config, check if we should install the ".pc" files.
3212 echo "$as_me:3212: checking if you want to use pkg-config" >&5
3213 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3215 # Check whether --with-pkg-config or --without-pkg-config was given.
3216 if test "${with_pkg_config+set}" = set; then
3217 withval="$with_pkg_config"
3218 cf_pkg_config=$withval
3222 echo "$as_me:3222: result: $cf_pkg_config" >&5
3223 echo "${ECHO_T}$cf_pkg_config" >&6
3225 case $cf_pkg_config in #(vi
3231 if test -n "$ac_tool_prefix"; then
3232 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3233 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3234 echo "$as_me:3234: checking for $ac_word" >&5
3235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3236 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3237 echo $ECHO_N "(cached) $ECHO_C" >&6
3241 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3244 ac_save_IFS=$IFS; IFS=$ac_path_separator
3246 for ac_dir in $ac_dummy; do
3248 test -z "$ac_dir" && ac_dir=.
3249 if $as_executable_p "$ac_dir/$ac_word"; then
3250 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3251 echo "$as_me:3251: found $ac_dir/$ac_word" >&5
3259 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3261 if test -n "$PKG_CONFIG"; then
3262 echo "$as_me:3262: result: $PKG_CONFIG" >&5
3263 echo "${ECHO_T}$PKG_CONFIG" >&6
3265 echo "$as_me:3265: result: no" >&5
3266 echo "${ECHO_T}no" >&6
3270 if test -z "$ac_cv_path_PKG_CONFIG"; then
3271 ac_pt_PKG_CONFIG=$PKG_CONFIG
3272 # Extract the first word of "pkg-config", so it can be a program name with args.
3273 set dummy pkg-config; ac_word=$2
3274 echo "$as_me:3274: checking for $ac_word" >&5
3275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3276 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3277 echo $ECHO_N "(cached) $ECHO_C" >&6
3279 case $ac_pt_PKG_CONFIG in
3281 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3284 ac_save_IFS=$IFS; IFS=$ac_path_separator
3286 for ac_dir in $ac_dummy; do
3288 test -z "$ac_dir" && ac_dir=.
3289 if $as_executable_p "$ac_dir/$ac_word"; then
3290 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3291 echo "$as_me:3291: found $ac_dir/$ac_word" >&5
3296 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3300 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3302 if test -n "$ac_pt_PKG_CONFIG"; then
3303 echo "$as_me:3303: result: $ac_pt_PKG_CONFIG" >&5
3304 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3306 echo "$as_me:3306: result: no" >&5
3307 echo "${ECHO_T}no" >&6
3310 PKG_CONFIG=$ac_pt_PKG_CONFIG
3312 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3321 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3322 if test "$PKG_CONFIG" != none ; then
3324 if test "x$prefix" != xNONE; then
3325 cf_path_syntax="$prefix"
3327 cf_path_syntax="$ac_default_prefix"
3330 case ".$PKG_CONFIG" in #(vi
3331 .\$\(*\)*|.\'*\'*) #(vi
3335 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3337 .\${*prefix}*|.\${*dir}*) #(vi
3338 eval PKG_CONFIG="$PKG_CONFIG"
3339 case ".$PKG_CONFIG" in #(vi
3341 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3346 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3349 { { echo "$as_me:3349: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3350 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3351 { (exit 1); exit 1; }; }
3357 if test "$PKG_CONFIG" != none ; then
3358 echo "$as_me:3358: checking for $PKG_CONFIG library directory" >&5
3359 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3361 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3362 if test "${with_pkg_config_libdir+set}" = set; then
3363 withval="$with_pkg_config_libdir"
3364 PKG_CONFIG_LIBDIR=$withval
3366 PKG_CONFIG_LIBDIR=yes
3369 case x$PKG_CONFIG_LIBDIR in #(vi
3373 # look for the library directory using the same prefix as the executable
3374 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3375 case x`(arch) 2>/dev/null` in #(vi
3377 for cf_config in $cf_path/share $cf_path/lib64 $cf_path/lib32 $cf_path/lib
3379 if test -d $cf_config/pkgconfig
3381 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3387 PKG_CONFIG_LIBDIR=$cf_path/lib/pkgconfig
3395 echo "$as_me:3395: result: $PKG_CONFIG_LIBDIR" >&5
3396 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3399 if test "$PKG_CONFIG" != none ; then
3400 echo "$as_me:3400: checking if we should install .pc files for $PKG_CONFIG" >&5
3401 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3403 # Check whether --enable-pc-files or --disable-pc-files was given.
3404 if test "${enable_pc_files+set}" = set; then
3405 enableval="$enable_pc_files"
3406 enable_pc_files=$enableval
3410 echo "$as_me:3410: result: $enable_pc_files" >&5
3411 echo "${ECHO_T}$enable_pc_files" >&6
3412 if test "$enable_pc_files" != no
3415 if test "x$prefix" != xNONE; then
3416 cf_path_syntax="$prefix"
3418 cf_path_syntax="$ac_default_prefix"
3421 case ".$PKG_CONFIG_LIBDIR" in #(vi
3422 .\$\(*\)*|.\'*\'*) #(vi
3426 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3428 .\${*prefix}*|.\${*dir}*) #(vi
3429 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
3430 case ".$PKG_CONFIG_LIBDIR" in #(vi
3432 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3437 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3440 { { echo "$as_me:3440: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
3441 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
3442 { (exit 1); exit 1; }; }
3451 echo "$as_me:3451: checking if we should assume mixed-case filenames" >&5
3452 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3454 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3455 if test "${enable_mixed_case+set}" = set; then
3456 enableval="$enable_mixed_case"
3457 enable_mixedcase=$enableval
3459 enable_mixedcase=auto
3461 echo "$as_me:3461: result: $enable_mixedcase" >&5
3462 echo "${ECHO_T}$enable_mixedcase" >&6
3463 if test "$enable_mixedcase" = "auto" ; then
3465 echo "$as_me:3465: checking if filesystem supports mixed-case filenames" >&5
3466 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3467 if test "${cf_cv_mixedcase+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3471 if test "$cross_compiling" = yes ; then
3472 case $target_alias in #(vi
3473 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*) #(vi
3481 rm -f conftest CONFTEST
3483 if test -f CONFTEST ; then
3488 rm -f conftest CONFTEST
3492 echo "$as_me:3492: result: $cf_cv_mixedcase" >&5
3493 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3494 test "$cf_cv_mixedcase" = yes &&
3495 cat >>confdefs.h <<\EOF
3496 #define MIXEDCASE_FILENAMES 1
3500 cf_cv_mixedcase=$enable_mixedcase
3501 if test "x$enable_mixedcase" = "xyes" ; then
3503 cat >>confdefs.h <<\EOF
3504 #define MIXEDCASE_FILENAMES 1
3510 # do this after mixed-case option (tags/TAGS is not as important as tic).
3511 echo "$as_me:3511: checking whether ${MAKE-make} sets \${MAKE}" >&5
3512 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3513 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3514 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3515 echo $ECHO_N "(cached) $ECHO_C" >&6
3517 cat >conftest.make <<\EOF
3519 @echo 'ac_maketemp="${MAKE}"'
3521 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3522 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3523 if test -n "$ac_maketemp"; then
3524 eval ac_cv_prog_make_${ac_make}_set=yes
3526 eval ac_cv_prog_make_${ac_make}_set=no
3530 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3531 echo "$as_me:3531: result: yes" >&5
3532 echo "${ECHO_T}yes" >&6
3535 echo "$as_me:3535: result: no" >&5
3536 echo "${ECHO_T}no" >&6
3537 SET_MAKE="MAKE=${MAKE-make}"
3540 for ac_prog in exctags ctags
3542 # Extract the first word of "$ac_prog", so it can be a program name with args.
3543 set dummy $ac_prog; ac_word=$2
3544 echo "$as_me:3544: checking for $ac_word" >&5
3545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3546 if test "${ac_cv_prog_CTAGS+set}" = set; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3549 if test -n "$CTAGS"; then
3550 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3552 ac_save_IFS=$IFS; IFS=$ac_path_separator
3554 for ac_dir in $ac_dummy; do
3556 test -z "$ac_dir" && ac_dir=.
3557 $as_executable_p "$ac_dir/$ac_word" || continue
3558 ac_cv_prog_CTAGS="$ac_prog"
3559 echo "$as_me:3559: found $ac_dir/$ac_word" >&5
3565 CTAGS=$ac_cv_prog_CTAGS
3566 if test -n "$CTAGS"; then
3567 echo "$as_me:3567: result: $CTAGS" >&5
3568 echo "${ECHO_T}$CTAGS" >&6
3570 echo "$as_me:3570: result: no" >&5
3571 echo "${ECHO_T}no" >&6
3574 test -n "$CTAGS" && break
3577 for ac_prog in exetags etags
3579 # Extract the first word of "$ac_prog", so it can be a program name with args.
3580 set dummy $ac_prog; ac_word=$2
3581 echo "$as_me:3581: checking for $ac_word" >&5
3582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3583 if test "${ac_cv_prog_ETAGS+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
3586 if test -n "$ETAGS"; then
3587 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3589 ac_save_IFS=$IFS; IFS=$ac_path_separator
3591 for ac_dir in $ac_dummy; do
3593 test -z "$ac_dir" && ac_dir=.
3594 $as_executable_p "$ac_dir/$ac_word" || continue
3595 ac_cv_prog_ETAGS="$ac_prog"
3596 echo "$as_me:3596: found $ac_dir/$ac_word" >&5
3602 ETAGS=$ac_cv_prog_ETAGS
3603 if test -n "$ETAGS"; then
3604 echo "$as_me:3604: result: $ETAGS" >&5
3605 echo "${ECHO_T}$ETAGS" >&6
3607 echo "$as_me:3607: result: no" >&5
3608 echo "${ECHO_T}no" >&6
3611 test -n "$ETAGS" && break
3614 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3615 set dummy ${CTAGS:-ctags}; ac_word=$2
3616 echo "$as_me:3616: checking for $ac_word" >&5
3617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3618 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3621 if test -n "$MAKE_LOWER_TAGS"; then
3622 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3624 ac_save_IFS=$IFS; IFS=$ac_path_separator
3626 for ac_dir in $ac_dummy; do
3628 test -z "$ac_dir" && ac_dir=.
3629 $as_executable_p "$ac_dir/$ac_word" || continue
3630 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3631 echo "$as_me:3631: found $ac_dir/$ac_word" >&5
3635 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3638 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3639 if test -n "$MAKE_LOWER_TAGS"; then
3640 echo "$as_me:3640: result: $MAKE_LOWER_TAGS" >&5
3641 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3643 echo "$as_me:3643: result: no" >&5
3644 echo "${ECHO_T}no" >&6
3647 if test "$cf_cv_mixedcase" = yes ; then
3648 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3649 set dummy ${ETAGS:-etags}; ac_word=$2
3650 echo "$as_me:3650: checking for $ac_word" >&5
3651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3652 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3655 if test -n "$MAKE_UPPER_TAGS"; then
3656 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3658 ac_save_IFS=$IFS; IFS=$ac_path_separator
3660 for ac_dir in $ac_dummy; do
3662 test -z "$ac_dir" && ac_dir=.
3663 $as_executable_p "$ac_dir/$ac_word" || continue
3664 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3665 echo "$as_me:3665: found $ac_dir/$ac_word" >&5
3669 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3672 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3673 if test -n "$MAKE_UPPER_TAGS"; then
3674 echo "$as_me:3674: result: $MAKE_UPPER_TAGS" >&5
3675 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3677 echo "$as_me:3677: result: no" >&5
3678 echo "${ECHO_T}no" >&6
3685 if test "$MAKE_UPPER_TAGS" = yes ; then
3691 if test "$MAKE_LOWER_TAGS" = yes ; then
3697 echo "$as_me:3697: checking for makeflags variable" >&5
3698 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3699 if test "${cf_cv_makeflags+set}" = set; then
3700 echo $ECHO_N "(cached) $ECHO_C" >&6
3704 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3706 cat >cf_makeflags.tmp <<CF_EOF
3709 @ echo '.$cf_option'
3711 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
3712 case "$cf_result" in
3714 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3715 case "$cf_result" in
3716 .*CC=*) cf_cv_makeflags=
3718 *) cf_cv_makeflags=$cf_option
3724 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3728 rm -f cf_makeflags.tmp
3731 echo "$as_me:3731: result: $cf_cv_makeflags" >&5
3732 echo "${ECHO_T}$cf_cv_makeflags" >&6
3734 if test -n "$ac_tool_prefix"; then
3735 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3736 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3737 echo "$as_me:3737: checking for $ac_word" >&5
3738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3739 if test "${ac_cv_prog_RANLIB+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3742 if test -n "$RANLIB"; then
3743 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3745 ac_save_IFS=$IFS; IFS=$ac_path_separator
3747 for ac_dir in $ac_dummy; do
3749 test -z "$ac_dir" && ac_dir=.
3750 $as_executable_p "$ac_dir/$ac_word" || continue
3751 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3752 echo "$as_me:3752: found $ac_dir/$ac_word" >&5
3758 RANLIB=$ac_cv_prog_RANLIB
3759 if test -n "$RANLIB"; then
3760 echo "$as_me:3760: result: $RANLIB" >&5
3761 echo "${ECHO_T}$RANLIB" >&6
3763 echo "$as_me:3763: result: no" >&5
3764 echo "${ECHO_T}no" >&6
3768 if test -z "$ac_cv_prog_RANLIB"; then
3769 ac_ct_RANLIB=$RANLIB
3770 # Extract the first word of "ranlib", so it can be a program name with args.
3771 set dummy ranlib; ac_word=$2
3772 echo "$as_me:3772: checking for $ac_word" >&5
3773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3774 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3777 if test -n "$ac_ct_RANLIB"; then
3778 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3780 ac_save_IFS=$IFS; IFS=$ac_path_separator
3782 for ac_dir in $ac_dummy; do
3784 test -z "$ac_dir" && ac_dir=.
3785 $as_executable_p "$ac_dir/$ac_word" || continue
3786 ac_cv_prog_ac_ct_RANLIB="ranlib"
3787 echo "$as_me:3787: found $ac_dir/$ac_word" >&5
3791 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3794 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3795 if test -n "$ac_ct_RANLIB"; then
3796 echo "$as_me:3796: result: $ac_ct_RANLIB" >&5
3797 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3799 echo "$as_me:3799: result: no" >&5
3800 echo "${ECHO_T}no" >&6
3803 RANLIB=$ac_ct_RANLIB
3805 RANLIB="$ac_cv_prog_RANLIB"
3808 if test -n "$ac_tool_prefix"; then
3809 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3810 set dummy ${ac_tool_prefix}ld; ac_word=$2
3811 echo "$as_me:3811: checking for $ac_word" >&5
3812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3813 if test "${ac_cv_prog_LD+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3816 if test -n "$LD"; then
3817 ac_cv_prog_LD="$LD" # Let the user override the test.
3819 ac_save_IFS=$IFS; IFS=$ac_path_separator
3821 for ac_dir in $ac_dummy; do
3823 test -z "$ac_dir" && ac_dir=.
3824 $as_executable_p "$ac_dir/$ac_word" || continue
3825 ac_cv_prog_LD="${ac_tool_prefix}ld"
3826 echo "$as_me:3826: found $ac_dir/$ac_word" >&5
3833 if test -n "$LD"; then
3834 echo "$as_me:3834: result: $LD" >&5
3835 echo "${ECHO_T}$LD" >&6
3837 echo "$as_me:3837: result: no" >&5
3838 echo "${ECHO_T}no" >&6
3842 if test -z "$ac_cv_prog_LD"; then
3844 # Extract the first word of "ld", so it can be a program name with args.
3845 set dummy ld; ac_word=$2
3846 echo "$as_me:3846: checking for $ac_word" >&5
3847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3848 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3849 echo $ECHO_N "(cached) $ECHO_C" >&6
3851 if test -n "$ac_ct_LD"; then
3852 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3854 ac_save_IFS=$IFS; IFS=$ac_path_separator
3856 for ac_dir in $ac_dummy; do
3858 test -z "$ac_dir" && ac_dir=.
3859 $as_executable_p "$ac_dir/$ac_word" || continue
3860 ac_cv_prog_ac_ct_LD="ld"
3861 echo "$as_me:3861: found $ac_dir/$ac_word" >&5
3865 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3868 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3869 if test -n "$ac_ct_LD"; then
3870 echo "$as_me:3870: result: $ac_ct_LD" >&5
3871 echo "${ECHO_T}$ac_ct_LD" >&6
3873 echo "$as_me:3873: result: no" >&5
3874 echo "${ECHO_T}no" >&6
3882 if test -n "$ac_tool_prefix"; then
3883 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3884 set dummy ${ac_tool_prefix}ar; ac_word=$2
3885 echo "$as_me:3885: checking for $ac_word" >&5
3886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3887 if test "${ac_cv_prog_AR+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3890 if test -n "$AR"; then
3891 ac_cv_prog_AR="$AR" # Let the user override the test.
3893 ac_save_IFS=$IFS; IFS=$ac_path_separator
3895 for ac_dir in $ac_dummy; do
3897 test -z "$ac_dir" && ac_dir=.
3898 $as_executable_p "$ac_dir/$ac_word" || continue
3899 ac_cv_prog_AR="${ac_tool_prefix}ar"
3900 echo "$as_me:3900: found $ac_dir/$ac_word" >&5
3907 if test -n "$AR"; then
3908 echo "$as_me:3908: result: $AR" >&5
3909 echo "${ECHO_T}$AR" >&6
3911 echo "$as_me:3911: result: no" >&5
3912 echo "${ECHO_T}no" >&6
3916 if test -z "$ac_cv_prog_AR"; then
3918 # Extract the first word of "ar", so it can be a program name with args.
3919 set dummy ar; ac_word=$2
3920 echo "$as_me:3920: checking for $ac_word" >&5
3921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3922 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3923 echo $ECHO_N "(cached) $ECHO_C" >&6
3925 if test -n "$ac_ct_AR"; then
3926 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3928 ac_save_IFS=$IFS; IFS=$ac_path_separator
3930 for ac_dir in $ac_dummy; do
3932 test -z "$ac_dir" && ac_dir=.
3933 $as_executable_p "$ac_dir/$ac_word" || continue
3934 ac_cv_prog_ac_ct_AR="ar"
3935 echo "$as_me:3935: found $ac_dir/$ac_word" >&5
3939 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3942 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3943 if test -n "$ac_ct_AR"; then
3944 echo "$as_me:3944: result: $ac_ct_AR" >&5
3945 echo "${ECHO_T}$ac_ct_AR" >&6
3947 echo "$as_me:3947: result: no" >&5
3948 echo "${ECHO_T}no" >&6
3956 if test -n "$ac_tool_prefix"; then
3957 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
3958 set dummy ${ac_tool_prefix}nm; ac_word=$2
3959 echo "$as_me:3959: checking for $ac_word" >&5
3960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3961 if test "${ac_cv_prog_NM+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3964 if test -n "$NM"; then
3965 ac_cv_prog_NM="$NM" # Let the user override the test.
3967 ac_save_IFS=$IFS; IFS=$ac_path_separator
3969 for ac_dir in $ac_dummy; do
3971 test -z "$ac_dir" && ac_dir=.
3972 $as_executable_p "$ac_dir/$ac_word" || continue
3973 ac_cv_prog_NM="${ac_tool_prefix}nm"
3974 echo "$as_me:3974: found $ac_dir/$ac_word" >&5
3981 if test -n "$NM"; then
3982 echo "$as_me:3982: result: $NM" >&5
3983 echo "${ECHO_T}$NM" >&6
3985 echo "$as_me:3985: result: no" >&5
3986 echo "${ECHO_T}no" >&6
3990 if test -z "$ac_cv_prog_NM"; then
3992 # Extract the first word of "nm", so it can be a program name with args.
3993 set dummy nm; ac_word=$2
3994 echo "$as_me:3994: checking for $ac_word" >&5
3995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3996 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3999 if test -n "$ac_ct_NM"; then
4000 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4002 ac_save_IFS=$IFS; IFS=$ac_path_separator
4004 for ac_dir in $ac_dummy; do
4006 test -z "$ac_dir" && ac_dir=.
4007 $as_executable_p "$ac_dir/$ac_word" || continue
4008 ac_cv_prog_ac_ct_NM="nm"
4009 echo "$as_me:4009: found $ac_dir/$ac_word" >&5
4013 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
4016 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4017 if test -n "$ac_ct_NM"; then
4018 echo "$as_me:4018: result: $ac_ct_NM" >&5
4019 echo "${ECHO_T}$ac_ct_NM" >&6
4021 echo "$as_me:4021: result: no" >&5
4022 echo "${ECHO_T}no" >&6
4030 if test -n "$ac_tool_prefix"; then
4031 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4032 set dummy ${ac_tool_prefix}ar; ac_word=$2
4033 echo "$as_me:4033: checking for $ac_word" >&5
4034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4035 if test "${ac_cv_prog_AR+set}" = set; then
4036 echo $ECHO_N "(cached) $ECHO_C" >&6
4038 if test -n "$AR"; then
4039 ac_cv_prog_AR="$AR" # Let the user override the test.
4041 ac_save_IFS=$IFS; IFS=$ac_path_separator
4043 for ac_dir in $ac_dummy; do
4045 test -z "$ac_dir" && ac_dir=.
4046 $as_executable_p "$ac_dir/$ac_word" || continue
4047 ac_cv_prog_AR="${ac_tool_prefix}ar"
4048 echo "$as_me:4048: found $ac_dir/$ac_word" >&5
4055 if test -n "$AR"; then
4056 echo "$as_me:4056: result: $AR" >&5
4057 echo "${ECHO_T}$AR" >&6
4059 echo "$as_me:4059: result: no" >&5
4060 echo "${ECHO_T}no" >&6
4064 if test -z "$ac_cv_prog_AR"; then
4066 # Extract the first word of "ar", so it can be a program name with args.
4067 set dummy ar; ac_word=$2
4068 echo "$as_me:4068: checking for $ac_word" >&5
4069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4070 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4071 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 if test -n "$ac_ct_AR"; then
4074 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4076 ac_save_IFS=$IFS; IFS=$ac_path_separator
4078 for ac_dir in $ac_dummy; do
4080 test -z "$ac_dir" && ac_dir=.
4081 $as_executable_p "$ac_dir/$ac_word" || continue
4082 ac_cv_prog_ac_ct_AR="ar"
4083 echo "$as_me:4083: found $ac_dir/$ac_word" >&5
4087 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4090 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4091 if test -n "$ac_ct_AR"; then
4092 echo "$as_me:4092: result: $ac_ct_AR" >&5
4093 echo "${ECHO_T}$ac_ct_AR" >&6
4095 echo "$as_me:4095: result: no" >&5
4096 echo "${ECHO_T}no" >&6
4104 echo "$as_me:4104: checking for options to update archives" >&5
4105 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4106 if test "${cf_cv_ar_flags+set}" = set; then
4107 echo $ECHO_N "(cached) $ECHO_C" >&6
4110 cf_cv_ar_flags=unknown
4111 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
4114 # check if $ARFLAGS already contains this choice
4115 if test "x$ARFLAGS" != "x" ; then
4116 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4117 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4123 rm -f conftest.$ac_cv_objext
4126 cat >conftest.$ac_ext <<EOF
4127 #line 4127 "configure"
4128 int testdata[3] = { 123, 456, 789 };
4130 if { (eval echo "$as_me:4130: \"$ac_compile\"") >&5
4131 (eval $ac_compile) 2>&5
4133 echo "$as_me:4133: \$? = $ac_status" >&5
4134 (exit $ac_status); } ; then
4135 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4136 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4137 if test -f conftest.a ; then
4138 cf_cv_ar_flags=$cf_ar_flags
4142 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4144 echo "${as_me:-configure}:4144: testing cannot compile test-program ..." 1>&5
4149 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4152 echo "$as_me:4152: result: $cf_cv_ar_flags" >&5
4153 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4155 if test -n "$ARFLAGS" ; then
4156 if test -n "$cf_cv_ar_flags" ; then
4157 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4160 ARFLAGS=$cf_cv_ar_flags
4163 echo "$as_me:4163: checking if you have specified an install-prefix" >&5
4164 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4166 # Check whether --with-install-prefix or --without-install-prefix was given.
4167 if test "${with_install_prefix+set}" = set; then
4168 withval="$with_install_prefix"
4169 case "x$withval" in #(vi
4172 *) DESTDIR="$withval"
4176 echo "$as_me:4176: result: $DESTDIR" >&5
4177 echo "${ECHO_T}$DESTDIR" >&6
4179 ###############################################################################
4181 # If we're cross-compiling, allow the user to override the tools and their
4182 # options. The configure script is oriented toward identifying the host
4183 # compiler, etc., but we need a build compiler to generate parts of the source.
4185 if test "$cross_compiling" = yes ; then
4187 # defaults that we might want to override
4188 : ${BUILD_CFLAGS:=''}
4189 : ${BUILD_CPPFLAGS:=''}
4190 : ${BUILD_LDFLAGS:=''}
4192 : ${BUILD_EXEEXT:='$x'}
4193 : ${BUILD_OBJEXT:='o'}
4195 # Check whether --with-build-cc or --without-build-cc was given.
4196 if test "${with_build_cc+set}" = set; then
4197 withval="$with_build_cc"
4200 for ac_prog in gcc cc cl
4202 # Extract the first word of "$ac_prog", so it can be a program name with args.
4203 set dummy $ac_prog; ac_word=$2
4204 echo "$as_me:4204: checking for $ac_word" >&5
4205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4206 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4207 echo $ECHO_N "(cached) $ECHO_C" >&6
4209 if test -n "$BUILD_CC"; then
4210 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4212 ac_save_IFS=$IFS; IFS=$ac_path_separator
4214 for ac_dir in $ac_dummy; do
4216 test -z "$ac_dir" && ac_dir=.
4217 $as_executable_p "$ac_dir/$ac_word" || continue
4218 ac_cv_prog_BUILD_CC="$ac_prog"
4219 echo "$as_me:4219: found $ac_dir/$ac_word" >&5
4225 BUILD_CC=$ac_cv_prog_BUILD_CC
4226 if test -n "$BUILD_CC"; then
4227 echo "$as_me:4227: result: $BUILD_CC" >&5
4228 echo "${ECHO_T}$BUILD_CC" >&6
4230 echo "$as_me:4230: result: no" >&5
4231 echo "${ECHO_T}no" >&6
4234 test -n "$BUILD_CC" && break
4238 echo "$as_me:4238: checking for native build C compiler" >&5
4239 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4240 echo "$as_me:4240: result: $BUILD_CC" >&5
4241 echo "${ECHO_T}$BUILD_CC" >&6
4243 echo "$as_me:4243: checking for native build C preprocessor" >&5
4244 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4246 # Check whether --with-build-cpp or --without-build-cpp was given.
4247 if test "${with_build_cpp+set}" = set; then
4248 withval="$with_build_cpp"
4249 BUILD_CPP="$withval"
4251 BUILD_CPP='${BUILD_CC} -E'
4253 echo "$as_me:4253: result: $BUILD_CPP" >&5
4254 echo "${ECHO_T}$BUILD_CPP" >&6
4256 echo "$as_me:4256: checking for native build C flags" >&5
4257 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4259 # Check whether --with-build-cflags or --without-build-cflags was given.
4260 if test "${with_build_cflags+set}" = set; then
4261 withval="$with_build_cflags"
4262 BUILD_CFLAGS="$withval"
4264 echo "$as_me:4264: result: $BUILD_CFLAGS" >&5
4265 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4267 echo "$as_me:4267: checking for native build C preprocessor-flags" >&5
4268 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4270 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4271 if test "${with_build_cppflags+set}" = set; then
4272 withval="$with_build_cppflags"
4273 BUILD_CPPFLAGS="$withval"
4275 echo "$as_me:4275: result: $BUILD_CPPFLAGS" >&5
4276 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4278 echo "$as_me:4278: checking for native build linker-flags" >&5
4279 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4281 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4282 if test "${with_build_ldflags+set}" = set; then
4283 withval="$with_build_ldflags"
4284 BUILD_LDFLAGS="$withval"
4286 echo "$as_me:4286: result: $BUILD_LDFLAGS" >&5
4287 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4289 echo "$as_me:4289: checking for native build linker-libraries" >&5
4290 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4292 # Check whether --with-build-libs or --without-build-libs was given.
4293 if test "${with_build_libs+set}" = set; then
4294 withval="$with_build_libs"
4295 BUILD_LIBS="$withval"
4297 echo "$as_me:4297: result: $BUILD_LIBS" >&5
4298 echo "${ECHO_T}$BUILD_LIBS" >&6
4300 # this assumes we're on Unix.
4304 : ${BUILD_CC:='${CC}'}
4306 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4307 { { echo "$as_me:4307: error: Cross-build requires two compilers.
4308 Use --with-build-cc to specify the native compiler." >&5
4309 echo "$as_me: error: Cross-build requires two compilers.
4310 Use --with-build-cc to specify the native compiler." >&2;}
4311 { (exit 1); exit 1; }; }
4315 : ${BUILD_CC:='${CC}'}
4316 : ${BUILD_CPP:='${CPP}'}
4317 : ${BUILD_CFLAGS:='${CFLAGS}'}
4318 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4319 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4320 : ${BUILD_LIBS:='${LIBS}'}
4321 : ${BUILD_EXEEXT:='$x'}
4322 : ${BUILD_OBJEXT:='o'}
4325 ###############################################################################
4327 ### Options to allow the user to specify the set of libraries which are used.
4328 ### Use "--without-normal --with-shared" to allow the default model to be
4329 ### shared, for example.
4332 echo "$as_me:4332: checking if libtool -version-number should be used" >&5
4333 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
4335 # Check whether --enable-libtool-version or --disable-libtool-version was given.
4336 if test "${enable_libtool_version+set}" = set; then
4337 enableval="$enable_libtool_version"
4338 test "$enableval" != no && enableval=yes
4339 if test "$enableval" != "yes" ; then
4340 cf_libtool_version=no
4342 cf_libtool_version=yes
4346 cf_libtool_version=yes
4349 echo "$as_me:4349: result: $cf_libtool_version" >&5
4350 echo "${ECHO_T}$cf_libtool_version" >&6
4352 if test "$cf_libtool_version" = yes ; then
4353 LIBTOOL_VERSION="-version-number"
4355 LIBTOOL_VERSION="-version-info"
4360 # common library maintenance symbols that are convenient for libtool scripts:
4361 LIB_CREATE='${AR} -cr'
4362 LIB_OBJECT='${OBJECTS}'
4366 # symbols used to prop libtool up to enable it to determine what it should be
4374 echo "$as_me:4374: checking if you want to build libraries with libtool" >&5
4375 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4377 # Check whether --with-libtool or --without-libtool was given.
4378 if test "${with_libtool+set}" = set; then
4379 withval="$with_libtool"
4380 with_libtool=$withval
4384 echo "$as_me:4384: result: $with_libtool" >&5
4385 echo "${ECHO_T}$with_libtool" >&6
4386 if test "$with_libtool" != "no"; then
4388 if test "$with_libtool" != "yes" ; then
4390 if test "x$prefix" != xNONE; then
4391 cf_path_syntax="$prefix"
4393 cf_path_syntax="$ac_default_prefix"
4396 case ".$with_libtool" in #(vi
4397 .\$\(*\)*|.\'*\'*) #(vi
4401 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4403 .\${*prefix}*|.\${*dir}*) #(vi
4404 eval with_libtool="$with_libtool"
4405 case ".$with_libtool" in #(vi
4407 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4412 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4415 { { echo "$as_me:4415: error: expected a pathname, not \"$with_libtool\"" >&5
4416 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4417 { (exit 1); exit 1; }; }
4421 LIBTOOL=$with_libtool
4423 if test -n "$ac_tool_prefix"; then
4424 for ac_prog in libtool glibtool
4426 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4427 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4428 echo "$as_me:4428: checking for $ac_word" >&5
4429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4430 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4433 if test -n "$LIBTOOL"; then
4434 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
4436 ac_save_IFS=$IFS; IFS=$ac_path_separator
4438 for ac_dir in $ac_dummy; do
4440 test -z "$ac_dir" && ac_dir=.
4441 $as_executable_p "$ac_dir/$ac_word" || continue
4442 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
4443 echo "$as_me:4443: found $ac_dir/$ac_word" >&5
4449 LIBTOOL=$ac_cv_prog_LIBTOOL
4450 if test -n "$LIBTOOL"; then
4451 echo "$as_me:4451: result: $LIBTOOL" >&5
4452 echo "${ECHO_T}$LIBTOOL" >&6
4454 echo "$as_me:4454: result: no" >&5
4455 echo "${ECHO_T}no" >&6
4458 test -n "$LIBTOOL" && break
4461 if test -z "$LIBTOOL"; then
4462 ac_ct_LIBTOOL=$LIBTOOL
4463 for ac_prog in libtool glibtool
4465 # Extract the first word of "$ac_prog", so it can be a program name with args.
4466 set dummy $ac_prog; ac_word=$2
4467 echo "$as_me:4467: checking for $ac_word" >&5
4468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4469 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 if test -n "$ac_ct_LIBTOOL"; then
4473 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
4475 ac_save_IFS=$IFS; IFS=$ac_path_separator
4477 for ac_dir in $ac_dummy; do
4479 test -z "$ac_dir" && ac_dir=.
4480 $as_executable_p "$ac_dir/$ac_word" || continue
4481 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
4482 echo "$as_me:4482: found $ac_dir/$ac_word" >&5
4488 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
4489 if test -n "$ac_ct_LIBTOOL"; then
4490 echo "$as_me:4490: result: $ac_ct_LIBTOOL" >&5
4491 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
4493 echo "$as_me:4493: result: no" >&5
4494 echo "${ECHO_T}no" >&6
4497 test -n "$ac_ct_LIBTOOL" && break
4499 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
4501 LIBTOOL=$ac_ct_LIBTOOL
4504 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4506 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.].*//'`
4508 cf_cv_libtool_version=
4510 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
4512 if test -z "$cf_cv_libtool_version" && test "$LIBTOOL" = libtool
4515 unset ac_cv_prog_ac_ct_LIBTOOL
4519 if test -n "$ac_tool_prefix"; then
4520 for ac_prog in glibtool
4522 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4523 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4524 echo "$as_me:4524: checking for $ac_word" >&5
4525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4526 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
4527 echo $ECHO_N "(cached) $ECHO_C" >&6
4529 if test -n "$LIBTOOL"; then
4530 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
4532 ac_save_IFS=$IFS; IFS=$ac_path_separator
4534 for ac_dir in $ac_dummy; do
4536 test -z "$ac_dir" && ac_dir=.
4537 $as_executable_p "$ac_dir/$ac_word" || continue
4538 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
4539 echo "$as_me:4539: found $ac_dir/$ac_word" >&5
4545 LIBTOOL=$ac_cv_prog_LIBTOOL
4546 if test -n "$LIBTOOL"; then
4547 echo "$as_me:4547: result: $LIBTOOL" >&5
4548 echo "${ECHO_T}$LIBTOOL" >&6
4550 echo "$as_me:4550: result: no" >&5
4551 echo "${ECHO_T}no" >&6
4554 test -n "$LIBTOOL" && break
4557 if test -z "$LIBTOOL"; then
4558 ac_ct_LIBTOOL=$LIBTOOL
4559 for ac_prog in glibtool
4561 # Extract the first word of "$ac_prog", so it can be a program name with args.
4562 set dummy $ac_prog; ac_word=$2
4563 echo "$as_me:4563: checking for $ac_word" >&5
4564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4565 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
4566 echo $ECHO_N "(cached) $ECHO_C" >&6
4568 if test -n "$ac_ct_LIBTOOL"; then
4569 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
4571 ac_save_IFS=$IFS; IFS=$ac_path_separator
4573 for ac_dir in $ac_dummy; do
4575 test -z "$ac_dir" && ac_dir=.
4576 $as_executable_p "$ac_dir/$ac_word" || continue
4577 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
4578 echo "$as_me:4578: found $ac_dir/$ac_word" >&5
4584 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
4585 if test -n "$ac_ct_LIBTOOL"; then
4586 echo "$as_me:4586: result: $ac_ct_LIBTOOL" >&5
4587 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
4589 echo "$as_me:4589: result: no" >&5
4590 echo "${ECHO_T}no" >&6
4593 test -n "$ac_ct_LIBTOOL" && break
4595 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
4597 LIBTOOL=$ac_ct_LIBTOOL
4600 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4602 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.].*//'`
4604 cf_cv_libtool_version=
4606 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
4610 if test -z "$LIBTOOL" ; then
4611 { { echo "$as_me:4611: error: Cannot find libtool" >&5
4612 echo "$as_me: error: Cannot find libtool" >&2;}
4613 { (exit 1); exit 1; }; }
4615 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} ${LIBTOOL_VERSION} `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
4616 LIB_OBJECT='${OBJECTS:.o=.lo}'
4618 LIB_CLEAN='${LIBTOOL} --mode=clean'
4619 LIB_COMPILE='${LIBTOOL} --mode=compile'
4620 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
4621 LIB_INSTALL='${LIBTOOL} --mode=install'
4622 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4625 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4627 echo "$as_me:4627: checking version of $LIBTOOL" >&5
4628 echo $ECHO_N "checking version of $LIBTOOL... $ECHO_C" >&6
4630 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4632 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.].*//'`
4634 cf_cv_libtool_version=
4636 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
4638 echo "$as_me:4638: result: $cf_cv_libtool_version" >&5
4639 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4640 if test -z "$cf_cv_libtool_version" ; then
4641 { { echo "$as_me:4641: error: This is not GNU libtool" >&5
4642 echo "$as_me: error: This is not GNU libtool" >&2;}
4643 { (exit 1); exit 1; }; }
4646 { { echo "$as_me:4646: error: GNU libtool has not been found" >&5
4647 echo "$as_me: error: GNU libtool has not been found" >&2;}
4648 { (exit 1); exit 1; }; }
4651 # special hack to add -no-undefined (which libtool should do for itself)
4653 case "$cf_cv_system_name" in #(vi
4654 cygwin*|msys*|mingw32*|uwin*|aix[4-7]) #(vi
4655 LT_UNDEF=-no-undefined
4659 # special hack to add --tag option for C++ compiler
4660 case $cf_cv_libtool_version in #(vi
4661 1.[5-9]*|[2-9].[0-9.a-z]*) #(vi
4662 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4663 LIBTOOL="$LIBTOOL --tag=CC"
4666 LIBTOOL_CXX="$LIBTOOL"
4674 test -z "$LIBTOOL" && ECHO_LT=
4676 if test "$with_libtool" != "no" ; then
4678 cf_list_models="$cf_list_models libtool"
4682 echo "$as_me:4682: checking if you want to build shared libraries" >&5
4683 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
4685 # Check whether --with-shared or --without-shared was given.
4686 if test "${with_shared+set}" = set; then
4687 withval="$with_shared"
4688 with_shared=$withval
4692 echo "$as_me:4692: result: $with_shared" >&5
4693 echo "${ECHO_T}$with_shared" >&6
4694 test "x$with_shared" = "xyes" && cf_list_models="$cf_list_models shared"
4696 echo "$as_me:4696: checking if you want to build static libraries" >&5
4697 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
4699 # Check whether --with-normal or --without-normal was given.
4700 if test "${with_normal+set}" = set; then
4701 withval="$with_normal"
4702 with_normal=$withval
4706 echo "$as_me:4706: result: $with_normal" >&5
4707 echo "${ECHO_T}$with_normal" >&6
4708 test "x$with_normal" = "xyes" && cf_list_models="$cf_list_models normal"
4710 echo "$as_me:4710: checking if you want to build debug libraries" >&5
4711 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
4713 # Check whether --with-debug or --without-debug was given.
4714 if test "${with_debug+set}" = set; then
4715 withval="$with_debug"
4720 echo "$as_me:4720: result: $with_debug" >&5
4721 echo "${ECHO_T}$with_debug" >&6
4722 test "x$with_debug" = "xyes" && cf_list_models="$cf_list_models debug"
4724 echo "$as_me:4724: checking if you want to build profiling libraries" >&5
4725 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
4727 # Check whether --with-profile or --without-profile was given.
4728 if test "${with_profile+set}" = set; then
4729 withval="$with_profile"
4730 with_profile=$withval
4734 echo "$as_me:4734: result: $with_profile" >&5
4735 echo "${ECHO_T}$with_profile" >&6
4736 test "x$with_profile" = "xyes" && cf_list_models="$cf_list_models profile"
4740 if test "X$cf_with_cxx_binding" != Xno; then
4741 if test "x$with_shared" = "xyes"; then
4742 echo "$as_me:4742: checking if you want to build C++ shared libraries" >&5
4743 echo $ECHO_N "checking if you want to build C++ shared libraries... $ECHO_C" >&6
4745 # Check whether --with-cxx-shared or --without-cxx-shared was given.
4746 if test "${with_cxx_shared+set}" = set; then
4747 withval="$with_cxx_shared"
4748 with_shared_cxx=$withval
4752 echo "$as_me:4752: result: $with_shared_cxx" >&5
4753 echo "${ECHO_T}$with_shared_cxx" >&6
4757 ###############################################################################
4759 echo "$as_me:4759: checking for specified models" >&5
4760 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
4761 test -z "$cf_list_models" && cf_list_models=normal
4762 test "$with_libtool" != "no" && cf_list_models=libtool
4763 echo "$as_me:4763: result: $cf_list_models" >&5
4764 echo "${ECHO_T}$cf_list_models" >&6
4766 ### Use the first model as the default, and save its suffix for use in building
4767 ### up test-applications.
4768 echo "$as_me:4768: checking for default model" >&5
4769 echo $ECHO_N "checking for default model... $ECHO_C" >&6
4770 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
4771 echo "$as_me:4771: result: $DFT_LWR_MODEL" >&5
4772 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
4774 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4785 echo "$as_me:4785: checking if you want to have a library-prefix" >&5
4786 echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
4788 # Check whether --with-lib-prefix or --without-lib-prefix was given.
4789 if test "${with_lib_prefix+set}" = set; then
4790 withval="$with_lib_prefix"
4791 with_lib_prefix=$withval
4793 with_lib_prefix=auto
4795 echo "$as_me:4795: result: $with_lib_prefix" >&5
4796 echo "${ECHO_T}$with_lib_prefix" >&6
4798 if test $with_lib_prefix = auto
4801 case $cf_cv_system_name in #(vi
4808 cf_prefix=$LIB_PREFIX
4810 elif test $with_lib_prefix = no
4814 LIB_PREFIX=$with_lib_prefix
4819 echo "$as_me:4819: checking for PATH separator" >&5
4820 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
4821 case $cf_cv_system_name in
4822 os2*) PATH_SEPARATOR=';' ;;
4823 *) ${PATH_SEPARATOR:=':'} ;;
4826 echo "$as_me:4826: result: $PATH_SEPARATOR" >&5
4827 echo "${ECHO_T}$PATH_SEPARATOR" >&6
4829 ###############################################################################
4831 echo "$as_me:4831: checking if you want to build a separate terminfo library" >&5
4832 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
4834 # Check whether --with-termlib or --without-termlib was given.
4835 if test "${with_termlib+set}" = set; then
4836 withval="$with_termlib"
4837 with_termlib=$withval
4841 echo "$as_me:4841: result: $with_termlib" >&5
4842 echo "${ECHO_T}$with_termlib" >&6
4844 echo "$as_me:4844: checking if you want to build a separate tic library" >&5
4845 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
4847 # Check whether --with-ticlib or --without-ticlib was given.
4848 if test "${with_ticlib+set}" = set; then
4849 withval="$with_ticlib"
4850 with_ticlib=$withval
4854 echo "$as_me:4854: result: $with_ticlib" >&5
4855 echo "${ECHO_T}$with_ticlib" >&6
4857 ### Checks for special libraries, must be done up-front.
4860 echo "$as_me:4860: checking if you want to link with the GPM mouse library" >&5
4861 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
4863 # Check whether --with-gpm or --without-gpm was given.
4864 if test "${with_gpm+set}" = set; then
4870 echo "$as_me:4870: result: $with_gpm" >&5
4871 echo "${ECHO_T}$with_gpm" >&6
4873 if test "$with_gpm" != no ; then
4874 echo "$as_me:4874: checking for gpm.h" >&5
4875 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
4876 if test "${ac_cv_header_gpm_h+set}" = set; then
4877 echo $ECHO_N "(cached) $ECHO_C" >&6
4879 cat >conftest.$ac_ext <<_ACEOF
4880 #line 4880 "configure"
4881 #include "confdefs.h"
4884 if { (eval echo "$as_me:4884: \"$ac_cpp conftest.$ac_ext\"") >&5
4885 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4887 egrep -v '^ *\+' conftest.er1 >conftest.err
4889 cat conftest.err >&5
4890 echo "$as_me:4890: \$? = $ac_status" >&5
4891 (exit $ac_status); } >/dev/null; then
4892 if test -s conftest.err; then
4893 ac_cpp_err=$ac_c_preproc_warn_flag
4900 if test -z "$ac_cpp_err"; then
4901 ac_cv_header_gpm_h=yes
4903 echo "$as_me: failed program was:" >&5
4904 cat conftest.$ac_ext >&5
4905 ac_cv_header_gpm_h=no
4907 rm -f conftest.err conftest.$ac_ext
4909 echo "$as_me:4909: result: $ac_cv_header_gpm_h" >&5
4910 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
4911 if test $ac_cv_header_gpm_h = yes; then
4913 cat >>confdefs.h <<\EOF
4914 #define HAVE_GPM_H 1
4917 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
4918 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
4920 echo "${as_me:-configure}:4920: testing assuming we really have GPM library ..." 1>&5
4922 cat >>confdefs.h <<\EOF
4923 #define HAVE_LIBGPM 1
4927 echo "$as_me:4927: checking for Gpm_Open in -lgpm" >&5
4928 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
4929 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
4930 echo $ECHO_N "(cached) $ECHO_C" >&6
4932 ac_check_lib_save_LIBS=$LIBS
4934 cat >conftest.$ac_ext <<_ACEOF
4935 #line 4935 "configure"
4936 #include "confdefs.h"
4938 /* Override any gcc2 internal prototype to avoid an error. */
4942 /* We use char because int might match the return type of a gcc2
4943 builtin and then its argument prototype would still apply. */
4953 rm -f conftest.$ac_objext conftest$ac_exeext
4954 if { (eval echo "$as_me:4954: \"$ac_link\"") >&5
4955 (eval $ac_link) 2>&5
4957 echo "$as_me:4957: \$? = $ac_status" >&5
4958 (exit $ac_status); } &&
4959 { ac_try='test -s conftest$ac_exeext'
4960 { (eval echo "$as_me:4960: \"$ac_try\"") >&5
4963 echo "$as_me:4963: \$? = $ac_status" >&5
4964 (exit $ac_status); }; }; then
4965 ac_cv_lib_gpm_Gpm_Open=yes
4967 echo "$as_me: failed program was:" >&5
4968 cat conftest.$ac_ext >&5
4969 ac_cv_lib_gpm_Gpm_Open=no
4971 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4972 LIBS=$ac_check_lib_save_LIBS
4974 echo "$as_me:4974: result: $ac_cv_lib_gpm_Gpm_Open" >&5
4975 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
4976 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
4980 { { echo "$as_me:4980: error: Cannot link with GPM library" >&5
4981 echo "$as_me: error: Cannot link with GPM library" >&2;}
4982 { (exit 1); exit 1; }; }
4990 test "$with_gpm" != maybe && { echo "$as_me:4990: WARNING: Cannot find GPM header" >&5
4991 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
4998 if test "$with_gpm" != no ; then
4999 echo "$as_me:4999: checking if you want to load GPM dynamically" >&5
5000 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
5002 # Check whether --with-dlsym or --without-dlsym was given.
5003 if test "${with_dlsym+set}" = set; then
5004 withval="$with_dlsym"
5009 echo "$as_me:5009: result: $with_dlsym" >&5
5010 echo "${ECHO_T}$with_dlsym" >&6
5011 if test "x$with_dlsym" = xyes ; then
5014 echo "$as_me:5014: checking for dlsym" >&5
5015 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
5016 if test "${ac_cv_func_dlsym+set}" = set; then
5017 echo $ECHO_N "(cached) $ECHO_C" >&6
5019 cat >conftest.$ac_ext <<_ACEOF
5020 #line 5020 "configure"
5021 #include "confdefs.h"
5022 /* System header to define __stub macros and hopefully few prototypes,
5023 which can conflict with char dlsym (); below. */
5025 /* Override any gcc2 internal prototype to avoid an error. */
5029 /* We use char because int might match the return type of a gcc2
5030 builtin and then its argument prototype would still apply. */
5037 /* The GNU C library defines this for functions which it implements
5038 to always fail with ENOSYS. Some functions are actually named
5039 something starting with __ and the normal name is an alias. */
5040 #if defined (__stub_dlsym) || defined (__stub___dlsym)
5043 f = dlsym; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
5050 rm -f conftest.$ac_objext conftest$ac_exeext
5051 if { (eval echo "$as_me:5051: \"$ac_link\"") >&5
5052 (eval $ac_link) 2>&5
5054 echo "$as_me:5054: \$? = $ac_status" >&5
5055 (exit $ac_status); } &&
5056 { ac_try='test -s conftest$ac_exeext'
5057 { (eval echo "$as_me:5057: \"$ac_try\"") >&5
5060 echo "$as_me:5060: \$? = $ac_status" >&5
5061 (exit $ac_status); }; }; then
5062 ac_cv_func_dlsym=yes
5064 echo "$as_me: failed program was:" >&5
5065 cat conftest.$ac_ext >&5
5068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5070 echo "$as_me:5070: result: $ac_cv_func_dlsym" >&5
5071 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
5072 if test $ac_cv_func_dlsym = yes; then
5077 echo "$as_me:5077: checking for dlsym in -ldl" >&5
5078 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
5079 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
5080 echo $ECHO_N "(cached) $ECHO_C" >&6
5082 ac_check_lib_save_LIBS=$LIBS
5084 cat >conftest.$ac_ext <<_ACEOF
5085 #line 5085 "configure"
5086 #include "confdefs.h"
5088 /* Override any gcc2 internal prototype to avoid an error. */
5092 /* We use char because int might match the return type of a gcc2
5093 builtin and then its argument prototype would still apply. */
5103 rm -f conftest.$ac_objext conftest$ac_exeext
5104 if { (eval echo "$as_me:5104: \"$ac_link\"") >&5
5105 (eval $ac_link) 2>&5
5107 echo "$as_me:5107: \$? = $ac_status" >&5
5108 (exit $ac_status); } &&
5109 { ac_try='test -s conftest$ac_exeext'
5110 { (eval echo "$as_me:5110: \"$ac_try\"") >&5
5113 echo "$as_me:5113: \$? = $ac_status" >&5
5114 (exit $ac_status); }; }; then
5115 ac_cv_lib_dl_dlsym=yes
5117 echo "$as_me: failed program was:" >&5
5118 cat conftest.$ac_ext >&5
5119 ac_cv_lib_dl_dlsym=no
5121 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5122 LIBS=$ac_check_lib_save_LIBS
5124 echo "$as_me:5124: result: $ac_cv_lib_dl_dlsym" >&5
5125 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
5126 if test $ac_cv_lib_dl_dlsym = yes; then
5134 if test "$cf_have_dlsym" = yes ; then
5135 test "$cf_have_libdl" = yes && LIBS="-ldl $LIBS"
5137 echo "$as_me:5137: checking whether able to link to dl*() functions" >&5
5138 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
5139 cat >conftest.$ac_ext <<_ACEOF
5140 #line 5140 "configure"
5141 #include "confdefs.h"
5148 if ((obj = dlopen("filename", 0)) != 0) {
5149 if (dlsym(obj, "symbolname") == 0) {
5157 rm -f conftest.$ac_objext conftest$ac_exeext
5158 if { (eval echo "$as_me:5158: \"$ac_link\"") >&5
5159 (eval $ac_link) 2>&5
5161 echo "$as_me:5161: \$? = $ac_status" >&5
5162 (exit $ac_status); } &&
5163 { ac_try='test -s conftest$ac_exeext'
5164 { (eval echo "$as_me:5164: \"$ac_try\"") >&5
5167 echo "$as_me:5167: \$? = $ac_status" >&5
5168 (exit $ac_status); }; }; then
5170 cat >>confdefs.h <<\EOF
5171 #define HAVE_LIBDL 1
5175 echo "$as_me: failed program was:" >&5
5176 cat conftest.$ac_ext >&5
5178 { { echo "$as_me:5178: error: Cannot link test program for libdl" >&5
5179 echo "$as_me: error: Cannot link test program for libdl" >&2;}
5180 { (exit 1); exit 1; }; }
5182 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5183 echo "$as_me:5183: result: ok" >&5
5184 echo "${ECHO_T}ok" >&6
5186 { { echo "$as_me:5186: error: Cannot find dlsym function" >&5
5187 echo "$as_me: error: Cannot find dlsym function" >&2;}
5188 { (exit 1); exit 1; }; }
5191 if test "x$with_gpm" != xyes ; then
5192 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
5194 echo "${as_me:-configure}:5194: testing assuming soname for gpm is $with_gpm ..." 1>&5
5196 cf_cv_gpm_soname="$with_gpm"
5199 echo "$as_me:5199: checking for soname of gpm library" >&5
5200 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
5201 if test "${cf_cv_gpm_soname+set}" = set; then
5202 echo $ECHO_N "(cached) $ECHO_C" >&6
5205 cf_cv_gpm_soname=unknown
5206 if test "$cross_compiling" != yes ; then
5207 cat >conftest.$ac_ext <<CF_EOF
5211 if (Gpm_Open(0,0)) Gpm_Close();
5212 ${cf_cv_main_return:-return}(0);
5215 cf_save_LIBS="$LIBS"
5217 if { (eval echo "$as_me:5217: \"$ac_compile\"") >&5
5218 (eval $ac_compile) 2>&5
5220 echo "$as_me:5220: \$? = $ac_status" >&5
5221 (exit $ac_status); } ; then
5222 if { (eval echo "$as_me:5222: \"$ac_link\"") >&5
5223 (eval $ac_link) 2>&5
5225 echo "$as_me:5225: \$? = $ac_status" >&5
5226 (exit $ac_status); } ; then
5227 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
5228 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
5232 LIBS="$cf_save_LIBS"
5236 echo "$as_me:5236: result: $cf_cv_gpm_soname" >&5
5237 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
5240 test "$cf_cv_gpm_soname" != "unknown" &&
5241 cat >>confdefs.h <<EOF
5242 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
5245 SHLIB_LIST="-ldl $SHLIB_LIST"
5247 SHLIB_LIST="-lgpm $SHLIB_LIST"
5248 TEST_LIBS="-lgpm $TEST_LIBS"
5251 cat >>confdefs.h <<\EOF
5252 #define HAVE_LIBGPM 1
5255 echo "$as_me:5255: checking for Gpm_Wgetch in -lgpm" >&5
5256 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
5257 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
5258 echo $ECHO_N "(cached) $ECHO_C" >&6
5260 ac_check_lib_save_LIBS=$LIBS
5262 cat >conftest.$ac_ext <<_ACEOF
5263 #line 5263 "configure"
5264 #include "confdefs.h"
5266 /* Override any gcc2 internal prototype to avoid an error. */
5270 /* We use char because int might match the return type of a gcc2
5271 builtin and then its argument prototype would still apply. */
5281 rm -f conftest.$ac_objext conftest$ac_exeext
5282 if { (eval echo "$as_me:5282: \"$ac_link\"") >&5
5283 (eval $ac_link) 2>&5
5285 echo "$as_me:5285: \$? = $ac_status" >&5
5286 (exit $ac_status); } &&
5287 { ac_try='test -s conftest$ac_exeext'
5288 { (eval echo "$as_me:5288: \"$ac_try\"") >&5
5291 echo "$as_me:5291: \$? = $ac_status" >&5
5292 (exit $ac_status); }; }; then
5293 ac_cv_lib_gpm_Gpm_Wgetch=yes
5295 echo "$as_me: failed program was:" >&5
5296 cat conftest.$ac_ext >&5
5297 ac_cv_lib_gpm_Gpm_Wgetch=no
5299 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5300 LIBS=$ac_check_lib_save_LIBS
5302 echo "$as_me:5302: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
5303 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
5304 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
5306 echo "$as_me:5306: checking if GPM is weakly bound to curses library" >&5
5307 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
5308 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
5309 echo $ECHO_N "(cached) $ECHO_C" >&6
5312 cf_cv_check_gpm_wgetch=unknown
5313 if test "$cross_compiling" != yes ; then
5315 cat >conftest.$ac_ext <<CF_EOF
5320 ${cf_cv_main_return:-return}(0);
5324 cf_save_LIBS="$LIBS"
5325 # This only works if we can look at the symbol table. If a shared
5326 # library is stripped for install, we cannot use that. So we're forced
5327 # to rely on the static library, noting that some packagers may not
5329 LIBS="-static -lgpm -dynamic $LIBS"
5330 if { (eval echo "$as_me:5330: \"$ac_compile\"") >&5
5331 (eval $ac_compile) 2>&5
5333 echo "$as_me:5333: \$? = $ac_status" >&5
5334 (exit $ac_status); } ; then
5335 if { (eval echo "$as_me:5335: \"$ac_link\"") >&5
5336 (eval $ac_link) 2>&5
5338 echo "$as_me:5338: \$? = $ac_status" >&5
5339 (exit $ac_status); } ; then
5340 cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
5341 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
5342 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
5346 LIBS="$cf_save_LIBS"
5350 echo "$as_me:5350: result: $cf_cv_check_gpm_wgetch" >&5
5351 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
5353 if test "$cf_cv_check_gpm_wgetch" != yes ; then
5354 { echo "$as_me:5354: WARNING: GPM library is already linked with curses - read the FAQ" >&5
5355 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
5362 # not everyone has "test -c"
5363 if test -c /dev/sysmouse 2>/dev/null ; then
5364 echo "$as_me:5364: checking if you want to use sysmouse" >&5
5365 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
5367 # Check whether --with-sysmouse or --without-sysmouse was given.
5368 if test "${with_sysmouse+set}" = set; then
5369 withval="$with_sysmouse"
5370 cf_with_sysmouse=$withval
5372 cf_with_sysmouse=maybe
5374 if test "$cf_with_sysmouse" != no ; then
5375 cat >conftest.$ac_ext <<_ACEOF
5376 #line 5376 "configure"
5377 #include "confdefs.h"
5379 #include <osreldate.h>
5380 #if (__FreeBSD_version >= 400017)
5381 #include <sys/consio.h>
5382 #include <sys/fbio.h>
5384 #include <machine/console.h>
5391 struct mouse_info the_mouse;
5392 ioctl(0, CONS_MOUSECTL, &the_mouse);
5398 rm -f conftest.$ac_objext
5399 if { (eval echo "$as_me:5399: \"$ac_compile\"") >&5
5400 (eval $ac_compile) 2>&5
5402 echo "$as_me:5402: \$? = $ac_status" >&5
5403 (exit $ac_status); } &&
5404 { ac_try='test -s conftest.$ac_objext'
5405 { (eval echo "$as_me:5405: \"$ac_try\"") >&5
5408 echo "$as_me:5408: \$? = $ac_status" >&5
5409 (exit $ac_status); }; }; then
5410 cf_with_sysmouse=yes
5412 echo "$as_me: failed program was:" >&5
5413 cat conftest.$ac_ext >&5
5416 rm -f conftest.$ac_objext conftest.$ac_ext
5418 echo "$as_me:5418: result: $cf_with_sysmouse" >&5
5419 echo "${ECHO_T}$cf_with_sysmouse" >&6
5420 test "$cf_with_sysmouse" = yes &&
5421 cat >>confdefs.h <<\EOF
5422 #define USE_SYSMOUSE 1
5427 if test X"$CC_G_OPT" = X"" ; then
5429 test -n "$GCC" && test "x${ac_cv_prog_cc_g}" != xyes && CC_G_OPT=''
5432 if test X"$CXX_G_OPT" = X"" ; then
5434 test -n "$GXX" && test "x${ac_cv_prog_cxx_g}" != xyes && CXX_G_OPT=''
5437 echo "$as_me:5437: checking for default loader flags" >&5
5438 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
5439 case $DFT_LWR_MODEL in
5440 libtool) LD_MODEL='' ;;
5441 normal) LD_MODEL='' ;;
5442 debug) LD_MODEL=$CC_G_OPT ;;
5443 profile) LD_MODEL='-pg';;
5444 shared) LD_MODEL='' ;;
5446 echo "$as_me:5446: result: $LD_MODEL" >&5
5447 echo "${ECHO_T}$LD_MODEL" >&6
5449 case $DFT_LWR_MODEL in
5452 echo "$as_me:5452: checking if rpath option should be used" >&5
5453 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
5455 # Check whether --enable-rpath or --disable-rpath was given.
5456 if test "${enable_rpath+set}" = set; then
5457 enableval="$enable_rpath"
5458 cf_cv_enable_rpath=$enableval
5460 cf_cv_enable_rpath=no
5462 echo "$as_me:5462: result: $cf_cv_enable_rpath" >&5
5463 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
5465 echo "$as_me:5465: checking if shared libraries should be relinked during install" >&5
5466 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
5468 # Check whether --enable-relink or --disable-relink was given.
5469 if test "${enable_relink+set}" = set; then
5470 enableval="$enable_relink"
5471 cf_cv_do_relink=$enableval
5475 echo "$as_me:5475: result: $cf_cv_do_relink" >&5
5476 echo "${ECHO_T}$cf_cv_do_relink" >&6
5480 # we will build libraries one-level down.
5484 echo "$as_me:5484: checking for an rpath option" >&5
5485 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
5486 case $cf_cv_system_name in #(vi
5488 if test "$GCC" = yes; then
5489 LD_RPATH_OPT="-Wl,-rpath,"
5491 LD_RPATH_OPT="-rpath "
5494 linux*|gnu*|k*bsd*-gnu) #(vi
5495 LD_RPATH_OPT="-Wl,-rpath,"
5497 openbsd[2-9].*|mirbsd*) #(vi
5498 LD_RPATH_OPT="-Wl,-rpath,"
5500 dragonfly*|freebsd*) #(vi
5501 LD_RPATH_OPT="-rpath "
5504 LD_RPATH_OPT="-Wl,-rpath,"
5507 LD_RPATH_OPT="-rpath "
5515 echo "$as_me:5515: result: $LD_RPATH_OPT" >&5
5516 echo "${ECHO_T}$LD_RPATH_OPT" >&6
5518 case "x$LD_RPATH_OPT" in #(vi
5520 echo "$as_me:5520: checking if we need a space after rpath option" >&5
5521 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
5522 cf_save_LIBS="$LIBS"
5523 LIBS="${LD_RPATH_OPT}$libdir $LIBS"
5524 cat >conftest.$ac_ext <<_ACEOF
5525 #line 5525 "configure"
5526 #include "confdefs.h"
5536 rm -f conftest.$ac_objext conftest$ac_exeext
5537 if { (eval echo "$as_me:5537: \"$ac_link\"") >&5
5538 (eval $ac_link) 2>&5
5540 echo "$as_me:5540: \$? = $ac_status" >&5
5541 (exit $ac_status); } &&
5542 { ac_try='test -s conftest$ac_exeext'
5543 { (eval echo "$as_me:5543: \"$ac_try\"") >&5
5546 echo "$as_me:5546: \$? = $ac_status" >&5
5547 (exit $ac_status); }; }; then
5550 echo "$as_me: failed program was:" >&5
5551 cat conftest.$ac_ext >&5
5554 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5555 LIBS="$cf_save_LIBS"
5556 echo "$as_me:5556: result: $cf_rpath_space" >&5
5557 echo "${ECHO_T}$cf_rpath_space" >&6
5558 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
5566 INSTALL_LIB="-m 644"
5567 : ${rel_builddir:=.}
5573 cf_cv_do_symlinks=no
5575 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
5577 echo "$as_me:5577: checking if release/abi version should be used for shared libs" >&5
5578 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
5580 # Check whether --with-shlib-version or --without-shlib-version was given.
5581 if test "${with_shlib_version+set}" = set; then
5582 withval="$with_shlib_version"
5583 test -z "$withval" && withval=auto
5584 case $withval in #(vi
5586 cf_cv_shlib_version=auto
5588 rel|abi|auto|no) #(vi
5589 cf_cv_shlib_version=$withval
5592 { { echo "$as_me:5592: error: option value must be one of: rel, abi, auto or no" >&5
5593 echo "$as_me: error: option value must be one of: rel, abi, auto or no" >&2;}
5594 { (exit 1); exit 1; }; }
5599 cf_cv_shlib_version=auto
5601 echo "$as_me:5601: result: $cf_cv_shlib_version" >&5
5602 echo "${ECHO_T}$cf_cv_shlib_version" >&6
5607 # Some less-capable ports of gcc support only -fpic
5609 if test "$GCC" = yes
5611 echo "$as_me:5611: checking which $CC option to use" >&5
5612 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
5613 cf_save_CFLAGS="$CFLAGS"
5614 for CC_SHARED_OPTS in -fPIC -fpic ''
5616 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
5617 cat >conftest.$ac_ext <<_ACEOF
5618 #line 5618 "configure"
5619 #include "confdefs.h"
5629 rm -f conftest.$ac_objext
5630 if { (eval echo "$as_me:5630: \"$ac_compile\"") >&5
5631 (eval $ac_compile) 2>&5
5633 echo "$as_me:5633: \$? = $ac_status" >&5
5634 (exit $ac_status); } &&
5635 { ac_try='test -s conftest.$ac_objext'
5636 { (eval echo "$as_me:5636: \"$ac_try\"") >&5
5639 echo "$as_me:5639: \$? = $ac_status" >&5
5640 (exit $ac_status); }; }; then
5643 echo "$as_me: failed program was:" >&5
5644 cat conftest.$ac_ext >&5
5646 rm -f conftest.$ac_objext conftest.$ac_ext
5648 echo "$as_me:5648: result: $CC_SHARED_OPTS" >&5
5649 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
5650 CFLAGS="$cf_save_CFLAGS"
5653 cf_cv_shlib_version_infix=no
5655 case $cf_cv_system_name in #(vi
5656 aix4.3-9*|aix[5-7]*) #(vi
5657 if test "$GCC" = yes; then
5659 MK_SHARED_LIB='${CC} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
5661 # CC_SHARED_OPTS='-qpic=large -G'
5662 # perhaps "-bM:SRE -bnoentry -bexpall"
5663 MK_SHARED_LIB='${CC} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
5667 MK_SHARED_LIB='${CC} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
5671 MK_SHARED_LIB='sh '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5672 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
5673 cf_cv_shlib_version=cygdll
5674 cf_cv_shlib_version_infix=cygdll
5677 cat >mk_shared_lib.sh <<-CF_EOF
5680 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
5683 Linking shared library
5684 ** SHARED_LIB \$SHARED_LIB
5685 ** IMPORT_LIB \$IMPORT_LIB
5687 exec \$* -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
5689 chmod +x mk_shared_lib.sh
5693 MK_SHARED_LIB='sh '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5694 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
5695 cf_cv_shlib_version=msysdll
5696 cf_cv_shlib_version_infix=msysdll
5699 cat >mk_shared_lib.sh <<-CF_EOF
5702 IMPORT_LIB=\`echo "\$1" | sed -e 's/msys-/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
5705 Linking shared library
5706 ** SHARED_LIB \$SHARED_LIB
5707 ** IMPORT_LIB \$IMPORT_LIB
5709 exec \$* -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
5711 chmod +x mk_shared_lib.sh
5714 cf_try_cflags="no-cpp-precomp"
5715 CC_SHARED_OPTS="-dynamic"
5716 MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
5717 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
5718 cf_cv_shlib_version_infix=yes
5719 echo "$as_me:5719: checking if ld -search_paths_first works" >&5
5720 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
5721 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
5722 echo $ECHO_N "(cached) $ECHO_C" >&6
5725 cf_save_LDFLAGS=$LDFLAGS
5726 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5727 cat >conftest.$ac_ext <<_ACEOF
5728 #line 5728 "configure"
5729 #include "confdefs.h"
5739 rm -f conftest.$ac_objext conftest$ac_exeext
5740 if { (eval echo "$as_me:5740: \"$ac_link\"") >&5
5741 (eval $ac_link) 2>&5
5743 echo "$as_me:5743: \$? = $ac_status" >&5
5744 (exit $ac_status); } &&
5745 { ac_try='test -s conftest$ac_exeext'
5746 { (eval echo "$as_me:5746: \"$ac_try\"") >&5
5749 echo "$as_me:5749: \$? = $ac_status" >&5
5750 (exit $ac_status); }; }; then
5751 cf_cv_ldflags_search_paths_first=yes
5753 echo "$as_me: failed program was:" >&5
5754 cat conftest.$ac_ext >&5
5755 cf_cv_ldflags_search_paths_first=no
5757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5758 LDFLAGS=$cf_save_LDFLAGS
5760 echo "$as_me:5760: result: $cf_cv_ldflags_search_paths_first" >&5
5761 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
5762 if test $cf_cv_ldflags_search_paths_first = yes; then
5763 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5767 # HP-UX 8.07 ld lacks "+b" option used for libdir search-list
5768 if test "$GCC" != yes; then
5771 MK_SHARED_LIB='${LD} -b -o $@'
5772 INSTALL_LIB="-m 555"
5775 # (tested with gcc 2.7.2 -- I don't have c89)
5776 if test "$GCC" = yes; then
5777 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
5780 LD_SHARED_OPTS='-Wl,+b,${libdir}'
5782 MK_SHARED_LIB='${LD} +b ${libdir} -b -o $@'
5783 # HP-UX shared libraries must be executable, and should be
5784 # readonly to exploit a quirk in the memory manager.
5785 INSTALL_LIB="-m 555"
5788 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5789 if test "$cf_cv_shlib_version" = rel; then
5790 cf_shared_soname='`basename .${REL_VERSION}`.${ABI_VERSION}'
5792 cf_shared_soname='`basename `'
5795 MK_SHARED_LIB='${CC} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o '
5798 if test "$cf_cv_enable_rpath" = yes ; then
5799 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5801 # tested with IRIX 5.2 and 'cc'.
5802 if test "$GCC" != yes; then
5803 CC_SHARED_OPTS='-KPIC'
5804 MK_SHARED_LIB='${CC} -shared -rdata_shared -soname `basename $@` -o $@'
5806 MK_SHARED_LIB='${CC} -shared -Wl,-soname,`basename $@` -o $@'
5808 cf_cv_rm_so_locs=yes
5810 linux*|gnu*|k*bsd*-gnu) #(vi
5811 if test "$DFT_LWR_MODEL" = "shared" ; then
5812 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5813 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5815 if test "$cf_cv_enable_rpath" = yes ; then
5816 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5819 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5820 if test "$cf_cv_shlib_version" = rel; then
5821 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5823 cf_cv_shared_soname='`basename $@`'
5826 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5829 cf_cv_shlib_version=mingw
5830 cf_cv_shlib_version_infix=mingw
5833 if test "$DFT_LWR_MODEL" = "shared" ; then
5834 LOCAL_LDFLAGS="-Wl,--enable-auto-import"
5835 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5836 EXTRA_LDFLAGS="-Wl,--enable-auto-import $EXTRA_LDFLAGS"
5839 MK_SHARED_LIB='sh '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5840 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
5841 cat >mk_shared_lib.sh <<-CF_EOF
5844 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
5847 Linking shared library
5848 ** SHARED_LIB \$SHARED_LIB
5849 ** IMPORT_LIB \$IMPORT_LIB
5851 exec \$* -shared -Wl,--enable-auto-import,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
5853 chmod +x mk_shared_lib.sh
5855 openbsd[2-9].*|mirbsd*) #(vi
5856 if test "$DFT_LWR_MODEL" = "shared" ; then
5857 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5858 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5860 if test "$cf_cv_enable_rpath" = yes ; then
5861 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5863 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5865 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5866 if test "$cf_cv_shlib_version" = rel; then
5867 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5869 cf_cv_shared_soname='`basename $@`'
5872 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5874 nto-qnx*|openbsd*|freebsd[12].*) #(vi
5875 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5876 MK_SHARED_LIB='${LD} -Bshareable -o $@'
5877 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5879 dragonfly*|freebsd*) #(vi
5880 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5881 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
5882 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
5883 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
5884 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5887 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5888 if test "$cf_cv_shlib_version" = rel; then
5889 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5891 cf_cv_shared_soname='`basename $@`'
5894 MK_SHARED_LIB='${LD} -shared -Bshareable -soname=`basename $@` -o $@'
5897 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5898 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
5899 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
5900 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5901 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5902 if test "$cf_cv_shlib_version" = auto; then
5903 if test -f /usr/libexec/ld.elf_so; then
5904 cf_cv_shlib_version=abi
5906 cf_cv_shlib_version=rel
5910 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5911 if test "$cf_cv_shlib_version" = rel; then
5912 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5914 cf_cv_shared_soname='`basename $@`'
5917 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
5919 MK_SHARED_LIB='${CC} -Wl,-shared -Wl,-Bshareable -o $@'
5923 # tested with OSF/1 V3.2 and 'cc'
5924 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
5925 # link with shared libs).
5926 MK_SHARED_LIB='${LD} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
5927 case $host_os in #(vi
5929 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
5932 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
5933 if test "$DFT_LWR_MODEL" = "shared" ; then
5934 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5935 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5937 cf_cv_rm_so_locs=yes
5939 sco3.2v5*) # (also uw2* and UW7: hops 13-Apr-98
5940 # tested with osr5.0.5
5941 if test "$GCC" != yes; then
5942 CC_SHARED_OPTS='-belf -KPIC'
5944 MK_SHARED_LIB='${LD} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
5945 if test "$cf_cv_enable_rpath" = yes ; then
5946 # only way is to set LD_RUN_PATH but no switch for it
5949 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5950 LINK_PROGS='LD_RUN_PATH=${libdir}'
5951 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
5954 # tested with SunOS 4.1.1 and gcc 2.7.0
5955 if test "$GCC" != yes; then
5956 CC_SHARED_OPTS='-KPIC'
5958 MK_SHARED_LIB='${LD} -assert pure-text -o $@'
5959 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5962 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
5963 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
5964 if test "$DFT_LWR_MODEL" = "shared" ; then
5965 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
5966 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5968 if test "$cf_cv_enable_rpath" = yes ; then
5969 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
5972 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5973 if test "$cf_cv_shlib_version" = rel; then
5974 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5976 cf_cv_shared_soname='`basename $@`'
5979 if test "$GCC" != yes; then
5980 cf_save_CFLAGS="$CFLAGS"
5981 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
5983 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
5984 cat >conftest.$ac_ext <<_ACEOF
5985 #line 5985 "configure"
5986 #include "confdefs.h"
5996 rm -f conftest.$ac_objext
5997 if { (eval echo "$as_me:5997: \"$ac_compile\"") >&5
5998 (eval $ac_compile) 2>&5
6000 echo "$as_me:6000: \$? = $ac_status" >&5
6001 (exit $ac_status); } &&
6002 { ac_try='test -s conftest.$ac_objext'
6003 { (eval echo "$as_me:6003: \"$ac_try\"") >&5
6006 echo "$as_me:6006: \$? = $ac_status" >&5
6007 (exit $ac_status); }; }; then
6010 echo "$as_me: failed program was:" >&5
6011 cat conftest.$ac_ext >&5
6013 rm -f conftest.$ac_objext conftest.$ac_ext
6015 CFLAGS="$cf_save_CFLAGS"
6016 CC_SHARED_OPTS=$cf_shared_opts
6017 MK_SHARED_LIB='${CC} -dy -G -h '$cf_cv_shared_soname' -o $@'
6019 MK_SHARED_LIB='${CC} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
6022 sysv5uw7*|unix_sv*) #(vi
6023 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
6024 if test "$GCC" != yes; then
6025 CC_SHARED_OPTS='-KPIC'
6027 MK_SHARED_LIB='${LD} -d y -G -o $@'
6030 CC_SHARED_OPTS='unknown'
6031 MK_SHARED_LIB='echo unknown'
6035 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
6036 case "$cf_cv_shlib_version" in #(vi
6038 case "$MK_SHARED_LIB" in #(vi
6040 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
6043 { echo "$as_me:6043: WARNING: ignored --with-shlib-version" >&5
6044 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
6050 if test -n "$cf_try_cflags"
6052 cat > conftest.$ac_ext <<EOF
6053 #line 6053 "${as_me:-configure}"
6055 int main(int argc, char *argv[])
6058 return (argv[argc-1] == 0) ;
6061 cf_save_CFLAGS="$CFLAGS"
6062 for cf_opt in $cf_try_cflags
6064 CFLAGS="$cf_save_CFLAGS -$cf_opt"
6065 echo "$as_me:6065: checking if CFLAGS option -$cf_opt works" >&5
6066 echo $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6
6067 if { (eval echo "$as_me:6067: \"$ac_compile\"") >&5
6068 (eval $ac_compile) 2>&5
6070 echo "$as_me:6070: \$? = $ac_status" >&5
6071 (exit $ac_status); }; then
6072 echo "$as_me:6072: result: yes" >&5
6073 echo "${ECHO_T}yes" >&6
6074 cf_save_CFLAGS="$CFLAGS"
6076 echo "$as_me:6076: result: no" >&5
6077 echo "${ECHO_T}no" >&6
6080 CFLAGS="$cf_save_CFLAGS"
6083 # RPATH_LIST is a colon-separated list of directories
6084 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
6085 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
6087 test $cf_cv_rm_so_locs = yes && RM_SHARED_OPTS="$RM_SHARED_OPTS so_locations"
6089 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
6091 echo "${as_me:-configure}:6091: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
6093 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6095 echo "${as_me:-configure}:6095: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6097 if test "$CC_SHARED_OPTS" = "unknown"; then
6098 for model in $cf_list_models; do
6099 if test "$model" = "shared"; then
6100 { { echo "$as_me:6100: error: Shared libraries are not supported in this version" >&5
6101 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
6102 { (exit 1); exit 1; }; }
6107 # pretend that ncurses==ncursesw==ncursest
6108 echo "$as_me:6108: checking if you want to disable library suffixes" >&5
6109 echo $ECHO_N "checking if you want to disable library suffixes... $ECHO_C" >&6
6111 # Check whether --enable-lib-suffixes or --disable-lib-suffixes was given.
6112 if test "${enable_lib_suffixes+set}" = set; then
6113 enableval="$enable_lib_suffixes"
6114 disable_lib_suffixes=$enableval
6116 disable_lib_suffixes=no
6118 echo "$as_me:6118: result: $disable_lib_suffixes" >&5
6119 echo "${ECHO_T}$disable_lib_suffixes" >&6
6121 ### If we're building with rpath, try to link non-standard libs that way too.
6122 if test "$DFT_LWR_MODEL" = "shared"; then
6124 echo "$as_me:6124: checking if rpath-hack should be disabled" >&5
6125 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
6127 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
6128 if test "${enable_rpath_hack+set}" = set; then
6129 enableval="$enable_rpath_hack"
6130 test "$enableval" != no && enableval=yes
6131 if test "$enableval" != "yes" ; then
6132 cf_disable_rpath_hack=yes
6134 cf_disable_rpath_hack=no
6138 cf_disable_rpath_hack=no
6141 echo "$as_me:6141: result: $cf_disable_rpath_hack" >&5
6142 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
6143 if test "$cf_disable_rpath_hack" = no ; then
6145 echo "$as_me:6145: checking for updated LDFLAGS" >&5
6146 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
6147 if test -n "$LD_RPATH_OPT" ; then
6148 echo "$as_me:6148: result: maybe" >&5
6149 echo "${ECHO_T}maybe" >&6
6153 # Extract the first word of "$ac_prog", so it can be a program name with args.
6154 set dummy $ac_prog; ac_word=$2
6155 echo "$as_me:6155: checking for $ac_word" >&5
6156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6157 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
6158 echo $ECHO_N "(cached) $ECHO_C" >&6
6160 if test -n "$cf_ldd_prog"; then
6161 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
6163 ac_save_IFS=$IFS; IFS=$ac_path_separator
6165 for ac_dir in $ac_dummy; do
6167 test -z "$ac_dir" && ac_dir=.
6168 $as_executable_p "$ac_dir/$ac_word" || continue
6169 ac_cv_prog_cf_ldd_prog="$ac_prog"
6170 echo "$as_me:6170: found $ac_dir/$ac_word" >&5
6176 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
6177 if test -n "$cf_ldd_prog"; then
6178 echo "$as_me:6178: result: $cf_ldd_prog" >&5
6179 echo "${ECHO_T}$cf_ldd_prog" >&6
6181 echo "$as_me:6181: result: no" >&5
6182 echo "${ECHO_T}no" >&6
6185 test -n "$cf_ldd_prog" && break
6187 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
6189 cf_rpath_list="/usr/lib /lib"
6190 if test "$cf_ldd_prog" != no
6194 cat >conftest.$ac_ext <<_ACEOF
6195 #line 6195 "configure"
6196 #include "confdefs.h"
6206 rm -f conftest.$ac_objext conftest$ac_exeext
6207 if { (eval echo "$as_me:6207: \"$ac_link\"") >&5
6208 (eval $ac_link) 2>&5
6210 echo "$as_me:6210: \$? = $ac_status" >&5
6211 (exit $ac_status); } &&
6212 { ac_try='test -s conftest$ac_exeext'
6213 { (eval echo "$as_me:6213: \"$ac_try\"") >&5
6216 echo "$as_me:6216: \$? = $ac_status" >&5
6217 (exit $ac_status); }; }; then
6218 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
6219 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
6221 echo "$as_me: failed program was:" >&5
6222 cat conftest.$ac_ext >&5
6224 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6226 # If we passed the link-test, but get a "not found" on a given library,
6227 # this could be due to inept reconfiguration of gcc to make it only
6228 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
6229 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
6230 # /usr/local libraries.
6231 if test -n "$cf_rpath_oops"
6233 for cf_rpath_src in $cf_rpath_oops
6235 for cf_rpath_dir in \
6240 if test -f $cf_rpath_dir/lib/$cf_rpath_src
6242 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
6244 echo "${as_me:-configure}:6244: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
6246 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
6254 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
6256 echo "${as_me:-configure}:6256: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
6258 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
6260 echo "${as_me:-configure}:6260: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
6263 for cf_rpath_src in $LDFLAGS
6265 case $cf_rpath_src in #(vi
6268 # check if this refers to a directory which we will ignore
6270 if test -n "$cf_rpath_list"
6272 for cf_rpath_item in $cf_rpath_list
6274 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
6282 if test "$cf_rpath_skip" = no
6284 # transform the option
6285 if test "$LD_RPATH_OPT" = "-R " ; then
6286 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
6288 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
6291 # if we have not already added this, add it now
6292 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
6293 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
6295 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
6297 echo "${as_me:-configure}:6297: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
6299 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
6304 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
6306 LDFLAGS=$cf_rpath_dst
6308 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
6310 echo "${as_me:-configure}:6310: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
6312 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
6314 echo "${as_me:-configure}:6314: testing ...checking LIBS $LIBS ..." 1>&5
6317 for cf_rpath_src in $LIBS
6319 case $cf_rpath_src in #(vi
6322 # check if this refers to a directory which we will ignore
6324 if test -n "$cf_rpath_list"
6326 for cf_rpath_item in $cf_rpath_list
6328 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
6336 if test "$cf_rpath_skip" = no
6338 # transform the option
6339 if test "$LD_RPATH_OPT" = "-R " ; then
6340 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
6342 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
6345 # if we have not already added this, add it now
6346 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
6347 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
6349 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
6351 echo "${as_me:-configure}:6351: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
6353 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
6358 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
6362 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
6364 echo "${as_me:-configure}:6364: testing ...checked LIBS $LIBS ..." 1>&5
6366 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
6368 echo "${as_me:-configure}:6368: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
6371 echo "$as_me:6371: result: no" >&5
6372 echo "${ECHO_T}no" >&6
6379 ###############################################################################
6381 ### use option --disable-overwrite to leave out the link to -lcurses
6382 echo "$as_me:6382: checking if you wish to install ncurses overwriting curses" >&5
6383 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
6385 # Check whether --enable-overwrite or --disable-overwrite was given.
6386 if test "${enable_overwrite+set}" = set; then
6387 enableval="$enable_overwrite"
6388 with_overwrite=$enableval
6390 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
6392 echo "$as_me:6392: result: $with_overwrite" >&5
6393 echo "${ECHO_T}$with_overwrite" >&6
6395 echo "$as_me:6395: checking if external terminfo-database is used" >&5
6396 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
6398 # Check whether --enable-database or --disable-database was given.
6399 if test "${enable_database+set}" = set; then
6400 enableval="$enable_database"
6401 use_database=$enableval
6405 echo "$as_me:6405: result: $use_database" >&5
6406 echo "${ECHO_T}$use_database" >&6
6408 case $host_os in #(vi
6410 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
6413 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
6417 NCURSES_USE_DATABASE=0
6418 if test "$use_database" != no ; then
6419 NCURSES_USE_DATABASE=1
6421 echo "$as_me:6421: checking which terminfo source-file will be installed" >&5
6422 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
6424 # Check whether --with-database or --without-database was given.
6425 if test "${with_database+set}" = set; then
6426 withval="$with_database"
6427 TERMINFO_SRC=$withval
6429 echo "$as_me:6429: result: $TERMINFO_SRC" >&5
6430 echo "${ECHO_T}$TERMINFO_SRC" >&6
6432 echo "$as_me:6432: checking whether to use hashed database instead of directory/tree" >&5
6433 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
6435 # Check whether --with-hashed-db or --without-hashed-db was given.
6436 if test "${with_hashed_db+set}" = set; then
6437 withval="$with_hashed_db"
6442 echo "$as_me:6442: result: $with_hashed_db" >&5
6443 echo "${ECHO_T}$with_hashed_db" >&6
6448 echo "$as_me:6448: checking for list of fallback descriptions" >&5
6449 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
6451 # Check whether --with-fallbacks or --without-fallbacks was given.
6452 if test "${with_fallbacks+set}" = set; then
6453 withval="$with_fallbacks"
6454 with_fallback=$withval
6458 echo "$as_me:6458: result: $with_fallback" >&5
6459 echo "${ECHO_T}$with_fallback" >&6
6460 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
6462 echo "$as_me:6462: checking if you want modern xterm or antique" >&5
6463 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
6465 # Check whether --with-xterm-new or --without-xterm-new was given.
6466 if test "${with_xterm_new+set}" = set; then
6467 withval="$with_xterm_new"
6468 with_xterm_new=$withval
6472 case $with_xterm_new in
6473 no) with_xterm_new=xterm-old;;
6474 *) with_xterm_new=xterm-new;;
6476 echo "$as_me:6476: result: $with_xterm_new" >&5
6477 echo "${ECHO_T}$with_xterm_new" >&6
6478 WHICH_XTERM=$with_xterm_new
6480 echo "$as_me:6480: checking if xterm backspace sends BS or DEL" >&5
6481 echo $ECHO_N "checking if xterm backspace sends BS or DEL... $ECHO_C" >&6
6483 # Check whether --with-xterm-kbs or --without-xterm-kbs was given.
6484 if test "${with_xterm_kbs+set}" = set; then
6485 withval="$with_xterm_kbs"
6486 with_xterm_kbs=$withval
6490 case x$with_xterm_kbs in
6491 xyes|xno|xBS|xbs|x8)
6498 with_xterm_kbs=$withval
6501 echo "$as_me:6501: result: $with_xterm_kbs" >&5
6502 echo "${ECHO_T}$with_xterm_kbs" >&6
6503 XTERM_KBS=$with_xterm_kbs
6506 if test "$use_database" = no ; then
6507 TERMINFO="${datadir}/terminfo"
6511 echo "$as_me:6511: checking for list of terminfo directories" >&5
6512 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
6514 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
6515 if test "${with_terminfo_dirs+set}" = set; then
6516 withval="$with_terminfo_dirs"
6519 withval=${TERMINFO_DIRS:-${datadir}/terminfo}
6521 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
6523 for cf_src_path in $withval
6526 if test "x$prefix" != xNONE; then
6527 cf_path_syntax="$prefix"
6529 cf_path_syntax="$ac_default_prefix"
6532 case ".$cf_src_path" in #(vi
6533 .\$\(*\)*|.\'*\'*) #(vi
6537 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6539 .\${*prefix}*|.\${*dir}*) #(vi
6540 eval cf_src_path="$cf_src_path"
6541 case ".$cf_src_path" in #(vi
6543 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6548 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6551 { { echo "$as_me:6551: error: expected a pathname, not \"$cf_src_path\"" >&5
6552 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
6553 { (exit 1); exit 1; }; }
6557 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
6558 cf_dst_path="${cf_dst_path}${cf_src_path}"
6562 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
6563 # so we have to check/work around. We do prefer the result of "eval"...
6564 eval cf_dst_eval="$cf_dst_path"
6565 case "x$cf_dst_eval" in #(vi
6567 TERMINFO_DIRS=$cf_dst_path
6570 TERMINFO_DIRS="$cf_dst_eval"
6574 echo "$as_me:6574: result: $TERMINFO_DIRS" >&5
6575 echo "${ECHO_T}$TERMINFO_DIRS" >&6
6576 test -n "$TERMINFO_DIRS" &&
6577 cat >>confdefs.h <<EOF
6578 #define TERMINFO_DIRS "$TERMINFO_DIRS"
6581 echo "$as_me:6581: checking for default terminfo directory" >&5
6582 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
6584 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
6585 if test "${with_default_terminfo_dir+set}" = set; then
6586 withval="$with_default_terminfo_dir"
6589 withval="${TERMINFO:-${datadir}/terminfo}"
6590 fi; if test -n "${datadir}/terminfo" ; then
6592 if test "x$prefix" != xNONE; then
6593 cf_path_syntax="$prefix"
6595 cf_path_syntax="$ac_default_prefix"
6598 case ".$withval" in #(vi
6599 .\$\(*\)*|.\'*\'*) #(vi
6603 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6605 .\${*prefix}*|.\${*dir}*) #(vi
6606 eval withval="$withval"
6607 case ".$withval" in #(vi
6609 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
6614 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
6617 { { echo "$as_me:6617: error: expected a pathname, not \"$withval\"" >&5
6618 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
6619 { (exit 1); exit 1; }; }
6624 eval TERMINFO="$withval"
6626 echo "$as_me:6626: result: $TERMINFO" >&5
6627 echo "${ECHO_T}$TERMINFO" >&6
6629 cat >>confdefs.h <<EOF
6630 #define TERMINFO "$TERMINFO"
6635 ### use option --disable-big-core to make tic run on small machines
6636 ### We need 4Mb, check if we can allocate 50% more than that.
6637 echo "$as_me:6637: checking if big-core option selected" >&5
6638 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
6640 # Check whether --enable-big-core or --disable-big-core was given.
6641 if test "${enable_big_core+set}" = set; then
6642 enableval="$enable_big_core"
6643 with_big_core=$enableval
6645 if test "$cross_compiling" = yes; then
6648 cat >conftest.$ac_ext <<_ACEOF
6649 #line 6649 "configure"
6650 #include "confdefs.h"
6655 unsigned long n = 6000000L;
6656 char *s = malloc(n);
6659 ${cf_cv_main_return:-return}(s == 0);
6662 rm -f conftest$ac_exeext
6663 if { (eval echo "$as_me:6663: \"$ac_link\"") >&5
6664 (eval $ac_link) 2>&5
6666 echo "$as_me:6666: \$? = $ac_status" >&5
6667 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6668 { (eval echo "$as_me:6668: \"$ac_try\"") >&5
6671 echo "$as_me:6671: \$? = $ac_status" >&5
6672 (exit $ac_status); }; }; then
6675 echo "$as_me: program exited with status $ac_status" >&5
6676 echo "$as_me: failed program was:" >&5
6677 cat conftest.$ac_ext >&5
6680 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6683 echo "$as_me:6683: result: $with_big_core" >&5
6684 echo "${ECHO_T}$with_big_core" >&6
6685 test "x$with_big_core" = "xyes" &&
6686 cat >>confdefs.h <<\EOF
6687 #define HAVE_BIG_CORE 1
6690 ### ISO C only guarantees 512-char strings, we have tables which load faster
6691 ### when constructed using "big" strings. More than the C compiler, the awk
6692 ### program is a limit on most vendor UNIX systems. Check that we can build.
6693 echo "$as_me:6693: checking if big-strings option selected" >&5
6694 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
6696 # Check whether --enable-big-strings or --disable-big-strings was given.
6697 if test "${enable_big_strings+set}" = set; then
6698 enableval="$enable_big_strings"
6699 with_big_strings=$enableval
6704 eval with_big_strings=no
6707 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' 2>/dev/null \
6708 | $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
6709 eval with_big_strings=yes
6711 eval with_big_strings=no
6717 echo "$as_me:6717: result: $with_big_strings" >&5
6718 echo "${ECHO_T}$with_big_strings" >&6
6721 test "x$with_big_strings" = "xyes" && USE_BIG_STRINGS=1
6723 ### use option --enable-termcap to compile in the termcap fallback support
6724 echo "$as_me:6724: checking if you want termcap-fallback support" >&5
6725 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
6727 # Check whether --enable-termcap or --disable-termcap was given.
6728 if test "${enable_termcap+set}" = set; then
6729 enableval="$enable_termcap"
6730 with_termcap=$enableval
6734 echo "$as_me:6734: result: $with_termcap" >&5
6735 echo "${ECHO_T}$with_termcap" >&6
6737 NCURSES_USE_TERMCAP=0
6738 if test "x$with_termcap" != "xyes" ; then
6739 if test "$use_database" = no ; then
6740 if test -z "$with_fallback" ; then
6741 { { echo "$as_me:6741: error: You have disabled the database w/o specifying fallbacks" >&5
6742 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
6743 { (exit 1); exit 1; }; }
6747 cat >>confdefs.h <<\EOF
6748 #define PURE_TERMINFO 1
6753 if test "$with_ticlib" != no ; then
6754 { { echo "$as_me:6754: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
6755 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
6756 { (exit 1); exit 1; }; }
6759 NCURSES_USE_TERMCAP=1
6760 echo "$as_me:6760: checking for list of termcap files" >&5
6761 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
6763 # Check whether --with-termpath or --without-termpath was given.
6764 if test "${with_termpath+set}" = set; then
6765 withval="$with_termpath"
6768 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap}
6770 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
6772 for cf_src_path in $withval
6775 if test "x$prefix" != xNONE; then
6776 cf_path_syntax="$prefix"
6778 cf_path_syntax="$ac_default_prefix"
6781 case ".$cf_src_path" in #(vi
6782 .\$\(*\)*|.\'*\'*) #(vi
6786 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6788 .\${*prefix}*|.\${*dir}*) #(vi
6789 eval cf_src_path="$cf_src_path"
6790 case ".$cf_src_path" in #(vi
6792 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6797 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6800 { { echo "$as_me:6800: error: expected a pathname, not \"$cf_src_path\"" >&5
6801 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
6802 { (exit 1); exit 1; }; }
6806 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
6807 cf_dst_path="${cf_dst_path}${cf_src_path}"
6811 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
6812 # so we have to check/work around. We do prefer the result of "eval"...
6813 eval cf_dst_eval="$cf_dst_path"
6814 case "x$cf_dst_eval" in #(vi
6816 TERMPATH=$cf_dst_path
6819 TERMPATH="$cf_dst_eval"
6823 echo "$as_me:6823: result: $TERMPATH" >&5
6824 echo "${ECHO_T}$TERMPATH" >&6
6825 test -n "$TERMPATH" &&
6826 cat >>confdefs.h <<EOF
6827 #define TERMPATH "$TERMPATH"
6830 ### use option --enable-getcap to use a hacked getcap for reading termcaps
6831 echo "$as_me:6831: checking if fast termcap-loader is needed" >&5
6832 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
6834 # Check whether --enable-getcap or --disable-getcap was given.
6835 if test "${enable_getcap+set}" = set; then
6836 enableval="$enable_getcap"
6837 with_getcap=$enableval
6841 echo "$as_me:6841: result: $with_getcap" >&5
6842 echo "${ECHO_T}$with_getcap" >&6
6843 test "x$with_getcap" = "xyes" &&
6844 cat >>confdefs.h <<\EOF
6845 #define USE_GETCAP 1
6848 echo "$as_me:6848: checking if translated termcaps will be cached in ~/.terminfo" >&5
6849 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
6851 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
6852 if test "${enable_getcap_cache+set}" = set; then
6853 enableval="$enable_getcap_cache"
6854 with_getcap_cache=$enableval
6856 with_getcap_cache=no
6858 echo "$as_me:6858: result: $with_getcap_cache" >&5
6859 echo "${ECHO_T}$with_getcap_cache" >&6
6860 test "x$with_getcap_cache" = "xyes" &&
6861 cat >>confdefs.h <<\EOF
6862 #define USE_GETCAP_CACHE 1
6867 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
6868 echo "$as_me:6868: checking if ~/.terminfo is wanted" >&5
6869 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
6871 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
6872 if test "${enable_home_terminfo+set}" = set; then
6873 enableval="$enable_home_terminfo"
6874 with_home_terminfo=$enableval
6876 with_home_terminfo=yes
6878 echo "$as_me:6878: result: $with_home_terminfo" >&5
6879 echo "${ECHO_T}$with_home_terminfo" >&6
6880 test "x$with_home_terminfo" = "xyes" &&
6881 cat >>confdefs.h <<\EOF
6882 #define USE_HOME_TERMINFO 1
6885 echo "$as_me:6885: checking if you want to use restricted environment when running as root" >&5
6886 echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6
6888 # Check whether --enable-root-environ or --disable-root-environ was given.
6889 if test "${enable_root_environ+set}" = set; then
6890 enableval="$enable_root_environ"
6891 with_root_environ=$enableval
6893 with_root_environ=yes
6895 echo "$as_me:6895: result: $with_root_environ" >&5
6896 echo "${ECHO_T}$with_root_environ" >&6
6897 test "x$with_root_environ" = xyes &&
6898 cat >>confdefs.h <<\EOF
6899 #define USE_ROOT_ENVIRON 1
6902 ### Use option --enable-symlinks to make tic use symlinks, not hard links
6903 ### to reduce storage requirements for the terminfo database.
6909 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6910 echo "$as_me:6910: checking for $ac_func" >&5
6911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6912 if eval "test \"\${$as_ac_var+set}\" = set"; then
6913 echo $ECHO_N "(cached) $ECHO_C" >&6
6915 cat >conftest.$ac_ext <<_ACEOF
6916 #line 6916 "configure"
6917 #include "confdefs.h"
6918 /* System header to define __stub macros and hopefully few prototypes,
6919 which can conflict with char $ac_func (); below. */
6921 /* Override any gcc2 internal prototype to avoid an error. */
6925 /* We use char because int might match the return type of a gcc2
6926 builtin and then its argument prototype would still apply. */
6933 /* The GNU C library defines this for functions which it implements
6934 to always fail with ENOSYS. Some functions are actually named
6935 something starting with __ and the normal name is an alias. */
6936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6939 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
6946 rm -f conftest.$ac_objext conftest$ac_exeext
6947 if { (eval echo "$as_me:6947: \"$ac_link\"") >&5
6948 (eval $ac_link) 2>&5
6950 echo "$as_me:6950: \$? = $ac_status" >&5
6951 (exit $ac_status); } &&
6952 { ac_try='test -s conftest$ac_exeext'
6953 { (eval echo "$as_me:6953: \"$ac_try\"") >&5
6956 echo "$as_me:6956: \$? = $ac_status" >&5
6957 (exit $ac_status); }; }; then
6958 eval "$as_ac_var=yes"
6960 echo "$as_me: failed program was:" >&5
6961 cat conftest.$ac_ext >&5
6962 eval "$as_ac_var=no"
6964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6966 echo "$as_me:6966: result: `eval echo '${'$as_ac_var'}'`" >&5
6967 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6968 if test `eval echo '${'$as_ac_var'}'` = yes; then
6969 cat >>confdefs.h <<EOF
6970 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6976 if test "$cross_compiling" = yes ; then
6982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6983 echo "$as_me:6983: checking for $ac_func" >&5
6984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6985 if eval "test \"\${$as_ac_var+set}\" = set"; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6988 cat >conftest.$ac_ext <<_ACEOF
6989 #line 6989 "configure"
6990 #include "confdefs.h"
6991 /* System header to define __stub macros and hopefully few prototypes,
6992 which can conflict with char $ac_func (); below. */
6994 /* Override any gcc2 internal prototype to avoid an error. */
6998 /* We use char because int might match the return type of a gcc2
6999 builtin and then its argument prototype would still apply. */
7006 /* The GNU C library defines this for functions which it implements
7007 to always fail with ENOSYS. Some functions are actually named
7008 something starting with __ and the normal name is an alias. */
7009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7012 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
7019 rm -f conftest.$ac_objext conftest$ac_exeext
7020 if { (eval echo "$as_me:7020: \"$ac_link\"") >&5
7021 (eval $ac_link) 2>&5
7023 echo "$as_me:7023: \$? = $ac_status" >&5
7024 (exit $ac_status); } &&
7025 { ac_try='test -s conftest$ac_exeext'
7026 { (eval echo "$as_me:7026: \"$ac_try\"") >&5
7029 echo "$as_me:7029: \$? = $ac_status" >&5
7030 (exit $ac_status); }; }; then
7031 eval "$as_ac_var=yes"
7033 echo "$as_me: failed program was:" >&5
7034 cat conftest.$ac_ext >&5
7035 eval "$as_ac_var=no"
7037 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7039 echo "$as_me:7039: result: `eval echo '${'$as_ac_var'}'`" >&5
7040 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7041 if test `eval echo '${'$as_ac_var'}'` = yes; then
7042 cat >>confdefs.h <<EOF
7043 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7050 echo "$as_me:7050: checking if link/symlink functions work" >&5
7051 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
7052 if test "${cf_cv_link_funcs+set}" = set; then
7053 echo $ECHO_N "(cached) $ECHO_C" >&6
7057 for cf_func in link symlink ; do
7058 if test "$cross_compiling" = yes; then
7060 eval 'ac_cv_func_'$cf_func'=error'
7062 cat >conftest.$ac_ext <<_ACEOF
7063 #line 7063 "configure"
7064 #include "confdefs.h"
7066 #include <sys/types.h>
7067 #include <sys/stat.h>
7068 #ifdef HAVE_UNISTD_H
7074 char *src = "config.log";
7075 char *dst = "conftest.chk";
7080 fail = ($cf_func("config.log", "conftest.chk") < 0)
7081 || (stat(dst, &dst_sb) < 0)
7082 || (dst_sb.st_mtime != src_sb.st_mtime);
7088 ${cf_cv_main_return:-return} (fail);
7092 rm -f conftest$ac_exeext
7093 if { (eval echo "$as_me:7093: \"$ac_link\"") >&5
7094 (eval $ac_link) 2>&5
7096 echo "$as_me:7096: \$? = $ac_status" >&5
7097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7098 { (eval echo "$as_me:7098: \"$ac_try\"") >&5
7101 echo "$as_me:7101: \$? = $ac_status" >&5
7102 (exit $ac_status); }; }; then
7104 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
7105 eval 'ac_cv_func_'$cf_func'=yes'
7107 echo "$as_me: program exited with status $ac_status" >&5
7108 echo "$as_me: failed program was:" >&5
7109 cat conftest.$ac_ext >&5
7111 eval 'ac_cv_func_'$cf_func'=no'
7113 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7116 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
7119 echo "$as_me:7119: result: $cf_cv_link_funcs" >&5
7120 echo "${ECHO_T}$cf_cv_link_funcs" >&6
7121 test "$ac_cv_func_link" = yes &&
7122 cat >>confdefs.h <<\EOF
7126 test "$ac_cv_func_symlink" = yes &&
7127 cat >>confdefs.h <<\EOF
7128 #define HAVE_SYMLINK 1
7136 # soft links (symbolic links) are useful for some systems where hard links do
7137 # not work, or to make it simpler to copy terminfo trees around.
7138 if test "x$ac_cv_func_symlink" = xyes ; then
7139 echo "$as_me:7139: checking if tic should use symbolic links" >&5
7140 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
7142 # Check whether --enable-symlinks or --disable-symlinks was given.
7143 if test "${enable_symlinks+set}" = set; then
7144 enableval="$enable_symlinks"
7145 with_symlinks=$enableval
7149 echo "$as_me:7149: result: $with_symlinks" >&5
7150 echo "${ECHO_T}$with_symlinks" >&6
7153 # If we have hard links and did not choose to use soft links instead, there is
7154 # no reason to make this choice optional - use the hard links.
7155 if test "$with_symlinks" = no ; then
7156 echo "$as_me:7156: checking if tic should use hard links" >&5
7157 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
7158 if test "x$ac_cv_func_link" = xyes ; then
7163 echo "$as_me:7163: result: $with_links" >&5
7164 echo "${ECHO_T}$with_links" >&6
7167 test "x$with_links" = xyes &&
7168 cat >>confdefs.h <<\EOF
7172 test "x$with_symlinks" = xyes &&
7173 cat >>confdefs.h <<\EOF
7174 #define USE_SYMLINKS 1
7177 ### use option --enable-broken-linker to force on use of broken-linker support
7178 echo "$as_me:7178: checking if you want broken-linker support code" >&5
7179 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
7181 # Check whether --enable-broken_linker or --disable-broken_linker was given.
7182 if test "${enable_broken_linker+set}" = set; then
7183 enableval="$enable_broken_linker"
7184 with_broken_linker=$enableval
7186 with_broken_linker=${BROKEN_LINKER:-no}
7188 echo "$as_me:7188: result: $with_broken_linker" >&5
7189 echo "${ECHO_T}$with_broken_linker" >&6
7192 if test "x$with_broken_linker" = xyes ; then
7194 cat >>confdefs.h <<\EOF
7195 #define BROKEN_LINKER 1
7199 elif test "$DFT_LWR_MODEL" = shared ; then
7200 case $cf_cv_system_name in #(vi
7203 cat >>confdefs.h <<\EOF
7204 #define BROKEN_LINKER 1
7208 test -n "$verbose" && echo " cygwin linker is broken anyway" 1>&6
7210 echo "${as_me:-configure}:7210: testing cygwin linker is broken anyway ..." 1>&5
7216 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
7217 echo "$as_me:7217: checking if tputs should process BSD-style prefix padding" >&5
7218 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
7220 # Check whether --enable-bsdpad or --disable-bsdpad was given.
7221 if test "${enable_bsdpad+set}" = set; then
7222 enableval="$enable_bsdpad"
7223 with_bsdpad=$enableval
7227 echo "$as_me:7227: result: $with_bsdpad" >&5
7228 echo "${ECHO_T}$with_bsdpad" >&6
7229 test "x$with_bsdpad" = xyes &&
7230 cat >>confdefs.h <<\EOF
7234 ### use option --enable-widec to turn on use of wide-character support
7243 # Check to define _XOPEN_SOURCE "automatically"
7246 cf_POSIX_C_SOURCE=199506L
7249 case $host_os in #(vi
7251 cf_xopen_source="-D_ALL_SOURCE"
7257 cf_xopen_source="-D_APPLE_C_SOURCE"
7260 cf_xopen_source="-D_DARWIN_C_SOURCE"
7263 freebsd*|dragonfly*) #(vi
7264 # 5.x headers associate
7265 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
7266 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
7267 cf_POSIX_C_SOURCE=200112L
7269 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
7272 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
7275 cf_xopen_source="-D_HPUX_SOURCE"
7278 cf_xopen_source="-D_SGI_SOURCE"
7281 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
7283 echo "$as_me:7283: checking if we must define _GNU_SOURCE" >&5
7284 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
7285 if test "${cf_cv_gnu_source+set}" = set; then
7286 echo $ECHO_N "(cached) $ECHO_C" >&6
7289 cat >conftest.$ac_ext <<_ACEOF
7290 #line 7290 "configure"
7291 #include "confdefs.h"
7292 #include <sys/types.h>
7297 #ifndef _XOPEN_SOURCE
7304 rm -f conftest.$ac_objext
7305 if { (eval echo "$as_me:7305: \"$ac_compile\"") >&5
7306 (eval $ac_compile) 2>&5
7308 echo "$as_me:7308: \$? = $ac_status" >&5
7309 (exit $ac_status); } &&
7310 { ac_try='test -s conftest.$ac_objext'
7311 { (eval echo "$as_me:7311: \"$ac_try\"") >&5
7314 echo "$as_me:7314: \$? = $ac_status" >&5
7315 (exit $ac_status); }; }; then
7318 echo "$as_me: failed program was:" >&5
7319 cat conftest.$ac_ext >&5
7321 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7322 cat >conftest.$ac_ext <<_ACEOF
7323 #line 7323 "configure"
7324 #include "confdefs.h"
7325 #include <sys/types.h>
7330 #ifdef _XOPEN_SOURCE
7337 rm -f conftest.$ac_objext
7338 if { (eval echo "$as_me:7338: \"$ac_compile\"") >&5
7339 (eval $ac_compile) 2>&5
7341 echo "$as_me:7341: \$? = $ac_status" >&5
7342 (exit $ac_status); } &&
7343 { ac_try='test -s conftest.$ac_objext'
7344 { (eval echo "$as_me:7344: \"$ac_try\"") >&5
7347 echo "$as_me:7347: \$? = $ac_status" >&5
7348 (exit $ac_status); }; }; then
7351 echo "$as_me: failed program was:" >&5
7352 cat conftest.$ac_ext >&5
7353 cf_cv_gnu_source=yes
7355 rm -f conftest.$ac_objext conftest.$ac_ext
7359 rm -f conftest.$ac_objext conftest.$ac_ext
7362 echo "$as_me:7362: result: $cf_cv_gnu_source" >&5
7363 echo "${ECHO_T}$cf_cv_gnu_source" >&6
7364 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7368 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
7371 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
7373 cf_save_CFLAGS="$CFLAGS"
7374 cf_save_CPPFLAGS="$CPPFLAGS"
7376 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
7377 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7378 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7380 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
7381 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7382 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7384 echo "$as_me:7384: checking if we should define _POSIX_C_SOURCE" >&5
7385 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
7386 if test "${cf_cv_posix_c_source+set}" = set; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
7390 echo "${as_me:-configure}:7390: testing if the symbol is already defined go no further ..." 1>&5
7392 cat >conftest.$ac_ext <<_ACEOF
7393 #line 7393 "configure"
7394 #include "confdefs.h"
7395 #include <sys/types.h>
7400 #ifndef _POSIX_C_SOURCE
7407 rm -f conftest.$ac_objext
7408 if { (eval echo "$as_me:7408: \"$ac_compile\"") >&5
7409 (eval $ac_compile) 2>&5
7411 echo "$as_me:7411: \$? = $ac_status" >&5
7412 (exit $ac_status); } &&
7413 { ac_try='test -s conftest.$ac_objext'
7414 { (eval echo "$as_me:7414: \"$ac_try\"") >&5
7417 echo "$as_me:7417: \$? = $ac_status" >&5
7418 (exit $ac_status); }; }; then
7419 cf_cv_posix_c_source=no
7421 echo "$as_me: failed program was:" >&5
7422 cat conftest.$ac_ext >&5
7423 cf_want_posix_source=no
7424 case .$cf_POSIX_C_SOURCE in #(vi
7426 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7429 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7430 cf_want_posix_source=yes
7433 cf_want_posix_source=yes
7436 if test "$cf_want_posix_source" = yes ; then
7437 cat >conftest.$ac_ext <<_ACEOF
7438 #line 7438 "configure"
7439 #include "confdefs.h"
7440 #include <sys/types.h>
7445 #ifdef _POSIX_SOURCE
7452 rm -f conftest.$ac_objext
7453 if { (eval echo "$as_me:7453: \"$ac_compile\"") >&5
7454 (eval $ac_compile) 2>&5
7456 echo "$as_me:7456: \$? = $ac_status" >&5
7457 (exit $ac_status); } &&
7458 { ac_try='test -s conftest.$ac_objext'
7459 { (eval echo "$as_me:7459: \"$ac_try\"") >&5
7462 echo "$as_me:7462: \$? = $ac_status" >&5
7463 (exit $ac_status); }; }; then
7466 echo "$as_me: failed program was:" >&5
7467 cat conftest.$ac_ext >&5
7468 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
7470 rm -f conftest.$ac_objext conftest.$ac_ext
7473 echo "${as_me:-configure}:7473: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
7475 CFLAGS="$cf_trim_CFLAGS"
7476 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
7478 echo "${as_me:-configure}:7478: testing if the second compile does not leave our definition intact error ..." 1>&5
7480 cat >conftest.$ac_ext <<_ACEOF
7481 #line 7481 "configure"
7482 #include "confdefs.h"
7483 #include <sys/types.h>
7488 #ifndef _POSIX_C_SOURCE
7495 rm -f conftest.$ac_objext
7496 if { (eval echo "$as_me:7496: \"$ac_compile\"") >&5
7497 (eval $ac_compile) 2>&5
7499 echo "$as_me:7499: \$? = $ac_status" >&5
7500 (exit $ac_status); } &&
7501 { ac_try='test -s conftest.$ac_objext'
7502 { (eval echo "$as_me:7502: \"$ac_try\"") >&5
7505 echo "$as_me:7505: \$? = $ac_status" >&5
7506 (exit $ac_status); }; }; then
7509 echo "$as_me: failed program was:" >&5
7510 cat conftest.$ac_ext >&5
7511 cf_cv_posix_c_source=no
7513 rm -f conftest.$ac_objext conftest.$ac_ext
7514 CFLAGS="$cf_save_CFLAGS"
7515 CPPFLAGS="$cf_save_CPPFLAGS"
7518 rm -f conftest.$ac_objext conftest.$ac_ext
7521 echo "$as_me:7521: result: $cf_cv_posix_c_source" >&5
7522 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
7524 if test "$cf_cv_posix_c_source" != no ; then
7525 CFLAGS="$cf_trim_CFLAGS"
7526 CPPFLAGS="$cf_trim_CPPFLAGS"
7531 cf_new_extra_cppflags=
7533 for cf_add_cflags in $cf_cv_posix_c_source
7535 case $cf_fix_cppflags in
7537 case $cf_add_cflags in #(vi
7538 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7539 case $cf_add_cflags in
7541 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7543 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7544 && test -z "${cf_tst_cflags}" \
7545 && cf_fix_cppflags=yes
7547 if test $cf_fix_cppflags = yes ; then
7548 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7550 elif test "${cf_tst_cflags}" = "\"'" ; then
7551 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7557 *$cf_add_cflags) #(vi
7560 case $cf_add_cflags in #(vi
7562 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7564 CPPFLAGS=`echo "$CPPFLAGS" | \
7565 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7566 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7570 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7575 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7580 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7582 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7584 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7585 && test -z "${cf_tst_cflags}" \
7586 && cf_fix_cppflags=no
7591 if test -n "$cf_new_cflags" ; then
7593 CFLAGS="$CFLAGS $cf_new_cflags"
7596 if test -n "$cf_new_cppflags" ; then
7598 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7601 if test -n "$cf_new_extra_cppflags" ; then
7603 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7610 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
7613 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
7614 cf_xopen_source="-D_BSD_SOURCE"
7618 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
7621 cf_xopen_source="-D_OSF_SOURCE"
7624 cf_xopen_source="-D_QNX_SOURCE"
7627 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
7630 cf_xopen_source="-D__EXTENSIONS__"
7631 cf_cv_xopen_source=broken
7635 echo "$as_me:7635: checking if we should define _XOPEN_SOURCE" >&5
7636 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
7637 if test "${cf_cv_xopen_source+set}" = set; then
7638 echo $ECHO_N "(cached) $ECHO_C" >&6
7641 cat >conftest.$ac_ext <<_ACEOF
7642 #line 7642 "configure"
7643 #include "confdefs.h"
7647 #include <sys/types.h>
7653 #ifndef _XOPEN_SOURCE
7660 rm -f conftest.$ac_objext
7661 if { (eval echo "$as_me:7661: \"$ac_compile\"") >&5
7662 (eval $ac_compile) 2>&5
7664 echo "$as_me:7664: \$? = $ac_status" >&5
7665 (exit $ac_status); } &&
7666 { ac_try='test -s conftest.$ac_objext'
7667 { (eval echo "$as_me:7667: \"$ac_try\"") >&5
7670 echo "$as_me:7670: \$? = $ac_status" >&5
7671 (exit $ac_status); }; }; then
7672 cf_cv_xopen_source=no
7674 echo "$as_me: failed program was:" >&5
7675 cat conftest.$ac_ext >&5
7677 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
7678 cat >conftest.$ac_ext <<_ACEOF
7679 #line 7679 "configure"
7680 #include "confdefs.h"
7684 #include <sys/types.h>
7690 #ifdef _XOPEN_SOURCE
7697 rm -f conftest.$ac_objext
7698 if { (eval echo "$as_me:7698: \"$ac_compile\"") >&5
7699 (eval $ac_compile) 2>&5
7701 echo "$as_me:7701: \$? = $ac_status" >&5
7702 (exit $ac_status); } &&
7703 { ac_try='test -s conftest.$ac_objext'
7704 { (eval echo "$as_me:7704: \"$ac_try\"") >&5
7707 echo "$as_me:7707: \$? = $ac_status" >&5
7708 (exit $ac_status); }; }; then
7709 cf_cv_xopen_source=no
7711 echo "$as_me: failed program was:" >&5
7712 cat conftest.$ac_ext >&5
7713 cf_cv_xopen_source=$cf_XOPEN_SOURCE
7715 rm -f conftest.$ac_objext conftest.$ac_ext
7719 rm -f conftest.$ac_objext conftest.$ac_ext
7722 echo "$as_me:7722: result: $cf_cv_xopen_source" >&5
7723 echo "${ECHO_T}$cf_cv_xopen_source" >&6
7725 if test "$cf_cv_xopen_source" != no ; then
7727 CFLAGS=`echo "$CFLAGS" | \
7728 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7729 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
7731 CPPFLAGS=`echo "$CPPFLAGS" | \
7732 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7733 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
7735 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
7740 cf_new_extra_cppflags=
7742 for cf_add_cflags in $cf_temp_xopen_source
7744 case $cf_fix_cppflags in
7746 case $cf_add_cflags in #(vi
7747 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7748 case $cf_add_cflags in
7750 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7752 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7753 && test -z "${cf_tst_cflags}" \
7754 && cf_fix_cppflags=yes
7756 if test $cf_fix_cppflags = yes ; then
7757 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7759 elif test "${cf_tst_cflags}" = "\"'" ; then
7760 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7766 *$cf_add_cflags) #(vi
7769 case $cf_add_cflags in #(vi
7771 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7773 CPPFLAGS=`echo "$CPPFLAGS" | \
7774 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7775 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7779 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7784 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7789 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7791 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7793 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7794 && test -z "${cf_tst_cflags}" \
7795 && cf_fix_cppflags=no
7800 if test -n "$cf_new_cflags" ; then
7802 CFLAGS="$CFLAGS $cf_new_cflags"
7805 if test -n "$cf_new_cppflags" ; then
7807 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7810 if test -n "$cf_new_extra_cppflags" ; then
7812 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7817 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
7819 cf_save_CFLAGS="$CFLAGS"
7820 cf_save_CPPFLAGS="$CPPFLAGS"
7822 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
7823 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7824 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7826 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
7827 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7828 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7830 echo "$as_me:7830: checking if we should define _POSIX_C_SOURCE" >&5
7831 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
7832 if test "${cf_cv_posix_c_source+set}" = set; then
7833 echo $ECHO_N "(cached) $ECHO_C" >&6
7836 echo "${as_me:-configure}:7836: testing if the symbol is already defined go no further ..." 1>&5
7838 cat >conftest.$ac_ext <<_ACEOF
7839 #line 7839 "configure"
7840 #include "confdefs.h"
7841 #include <sys/types.h>
7846 #ifndef _POSIX_C_SOURCE
7853 rm -f conftest.$ac_objext
7854 if { (eval echo "$as_me:7854: \"$ac_compile\"") >&5
7855 (eval $ac_compile) 2>&5
7857 echo "$as_me:7857: \$? = $ac_status" >&5
7858 (exit $ac_status); } &&
7859 { ac_try='test -s conftest.$ac_objext'
7860 { (eval echo "$as_me:7860: \"$ac_try\"") >&5
7863 echo "$as_me:7863: \$? = $ac_status" >&5
7864 (exit $ac_status); }; }; then
7865 cf_cv_posix_c_source=no
7867 echo "$as_me: failed program was:" >&5
7868 cat conftest.$ac_ext >&5
7869 cf_want_posix_source=no
7870 case .$cf_POSIX_C_SOURCE in #(vi
7872 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7875 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7876 cf_want_posix_source=yes
7879 cf_want_posix_source=yes
7882 if test "$cf_want_posix_source" = yes ; then
7883 cat >conftest.$ac_ext <<_ACEOF
7884 #line 7884 "configure"
7885 #include "confdefs.h"
7886 #include <sys/types.h>
7891 #ifdef _POSIX_SOURCE
7898 rm -f conftest.$ac_objext
7899 if { (eval echo "$as_me:7899: \"$ac_compile\"") >&5
7900 (eval $ac_compile) 2>&5
7902 echo "$as_me:7902: \$? = $ac_status" >&5
7903 (exit $ac_status); } &&
7904 { ac_try='test -s conftest.$ac_objext'
7905 { (eval echo "$as_me:7905: \"$ac_try\"") >&5
7908 echo "$as_me:7908: \$? = $ac_status" >&5
7909 (exit $ac_status); }; }; then
7912 echo "$as_me: failed program was:" >&5
7913 cat conftest.$ac_ext >&5
7914 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
7916 rm -f conftest.$ac_objext conftest.$ac_ext
7919 echo "${as_me:-configure}:7919: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
7921 CFLAGS="$cf_trim_CFLAGS"
7922 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
7924 echo "${as_me:-configure}:7924: testing if the second compile does not leave our definition intact error ..." 1>&5
7926 cat >conftest.$ac_ext <<_ACEOF
7927 #line 7927 "configure"
7928 #include "confdefs.h"
7929 #include <sys/types.h>
7934 #ifndef _POSIX_C_SOURCE
7941 rm -f conftest.$ac_objext
7942 if { (eval echo "$as_me:7942: \"$ac_compile\"") >&5
7943 (eval $ac_compile) 2>&5
7945 echo "$as_me:7945: \$? = $ac_status" >&5
7946 (exit $ac_status); } &&
7947 { ac_try='test -s conftest.$ac_objext'
7948 { (eval echo "$as_me:7948: \"$ac_try\"") >&5
7951 echo "$as_me:7951: \$? = $ac_status" >&5
7952 (exit $ac_status); }; }; then
7955 echo "$as_me: failed program was:" >&5
7956 cat conftest.$ac_ext >&5
7957 cf_cv_posix_c_source=no
7959 rm -f conftest.$ac_objext conftest.$ac_ext
7960 CFLAGS="$cf_save_CFLAGS"
7961 CPPFLAGS="$cf_save_CPPFLAGS"
7964 rm -f conftest.$ac_objext conftest.$ac_ext
7967 echo "$as_me:7967: result: $cf_cv_posix_c_source" >&5
7968 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
7970 if test "$cf_cv_posix_c_source" != no ; then
7971 CFLAGS="$cf_trim_CFLAGS"
7972 CPPFLAGS="$cf_trim_CPPFLAGS"
7977 cf_new_extra_cppflags=
7979 for cf_add_cflags in $cf_cv_posix_c_source
7981 case $cf_fix_cppflags in
7983 case $cf_add_cflags in #(vi
7984 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7985 case $cf_add_cflags in
7987 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7989 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7990 && test -z "${cf_tst_cflags}" \
7991 && cf_fix_cppflags=yes
7993 if test $cf_fix_cppflags = yes ; then
7994 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7996 elif test "${cf_tst_cflags}" = "\"'" ; then
7997 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8003 *$cf_add_cflags) #(vi
8006 case $cf_add_cflags in #(vi
8008 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8010 CPPFLAGS=`echo "$CPPFLAGS" | \
8011 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8012 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8016 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8021 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8026 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8028 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8030 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8031 && test -z "${cf_tst_cflags}" \
8032 && cf_fix_cppflags=no
8037 if test -n "$cf_new_cflags" ; then
8039 CFLAGS="$CFLAGS $cf_new_cflags"
8042 if test -n "$cf_new_cppflags" ; then
8044 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8047 if test -n "$cf_new_extra_cppflags" ; then
8049 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8057 if test -n "$cf_xopen_source" ; then
8062 cf_new_extra_cppflags=
8064 for cf_add_cflags in $cf_xopen_source
8066 case $cf_fix_cppflags in
8068 case $cf_add_cflags in #(vi
8069 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
8070 case $cf_add_cflags in
8072 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8074 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8075 && test -z "${cf_tst_cflags}" \
8076 && cf_fix_cppflags=yes
8078 if test $cf_fix_cppflags = yes ; then
8079 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8081 elif test "${cf_tst_cflags}" = "\"'" ; then
8082 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8088 *$cf_add_cflags) #(vi
8091 case $cf_add_cflags in #(vi
8093 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8095 CPPFLAGS=`echo "$CPPFLAGS" | \
8096 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8097 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8101 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8106 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8111 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8113 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8115 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8116 && test -z "${cf_tst_cflags}" \
8117 && cf_fix_cppflags=no
8122 if test -n "$cf_new_cflags" ; then
8124 CFLAGS="$CFLAGS $cf_new_cflags"
8127 if test -n "$cf_new_cppflags" ; then
8129 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8132 if test -n "$cf_new_extra_cppflags" ; then
8134 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8139 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
8140 echo "$as_me:8140: checking if _XOPEN_SOURCE really is set" >&5
8141 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
8142 cat >conftest.$ac_ext <<_ACEOF
8143 #line 8143 "configure"
8144 #include "confdefs.h"
8150 #ifndef _XOPEN_SOURCE
8157 rm -f conftest.$ac_objext
8158 if { (eval echo "$as_me:8158: \"$ac_compile\"") >&5
8159 (eval $ac_compile) 2>&5
8161 echo "$as_me:8161: \$? = $ac_status" >&5
8162 (exit $ac_status); } &&
8163 { ac_try='test -s conftest.$ac_objext'
8164 { (eval echo "$as_me:8164: \"$ac_try\"") >&5
8167 echo "$as_me:8167: \$? = $ac_status" >&5
8168 (exit $ac_status); }; }; then
8169 cf_XOPEN_SOURCE_set=yes
8171 echo "$as_me: failed program was:" >&5
8172 cat conftest.$ac_ext >&5
8173 cf_XOPEN_SOURCE_set=no
8175 rm -f conftest.$ac_objext conftest.$ac_ext
8176 echo "$as_me:8176: result: $cf_XOPEN_SOURCE_set" >&5
8177 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
8178 if test $cf_XOPEN_SOURCE_set = yes
8180 cat >conftest.$ac_ext <<_ACEOF
8181 #line 8181 "configure"
8182 #include "confdefs.h"
8188 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
8195 rm -f conftest.$ac_objext
8196 if { (eval echo "$as_me:8196: \"$ac_compile\"") >&5
8197 (eval $ac_compile) 2>&5
8199 echo "$as_me:8199: \$? = $ac_status" >&5
8200 (exit $ac_status); } &&
8201 { ac_try='test -s conftest.$ac_objext'
8202 { (eval echo "$as_me:8202: \"$ac_try\"") >&5
8205 echo "$as_me:8205: \$? = $ac_status" >&5
8206 (exit $ac_status); }; }; then
8207 cf_XOPEN_SOURCE_set_ok=yes
8209 echo "$as_me: failed program was:" >&5
8210 cat conftest.$ac_ext >&5
8211 cf_XOPEN_SOURCE_set_ok=no
8213 rm -f conftest.$ac_objext conftest.$ac_ext
8214 if test $cf_XOPEN_SOURCE_set_ok = no
8216 { echo "$as_me:8216: WARNING: _XOPEN_SOURCE is lower than requested" >&5
8217 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
8221 echo "$as_me:8221: checking if we should define _XOPEN_SOURCE" >&5
8222 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
8223 if test "${cf_cv_xopen_source+set}" = set; then
8224 echo $ECHO_N "(cached) $ECHO_C" >&6
8227 cat >conftest.$ac_ext <<_ACEOF
8228 #line 8228 "configure"
8229 #include "confdefs.h"
8233 #include <sys/types.h>
8239 #ifndef _XOPEN_SOURCE
8246 rm -f conftest.$ac_objext
8247 if { (eval echo "$as_me:8247: \"$ac_compile\"") >&5
8248 (eval $ac_compile) 2>&5
8250 echo "$as_me:8250: \$? = $ac_status" >&5
8251 (exit $ac_status); } &&
8252 { ac_try='test -s conftest.$ac_objext'
8253 { (eval echo "$as_me:8253: \"$ac_try\"") >&5
8256 echo "$as_me:8256: \$? = $ac_status" >&5
8257 (exit $ac_status); }; }; then
8258 cf_cv_xopen_source=no
8260 echo "$as_me: failed program was:" >&5
8261 cat conftest.$ac_ext >&5
8263 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
8264 cat >conftest.$ac_ext <<_ACEOF
8265 #line 8265 "configure"
8266 #include "confdefs.h"
8270 #include <sys/types.h>
8276 #ifdef _XOPEN_SOURCE
8283 rm -f conftest.$ac_objext
8284 if { (eval echo "$as_me:8284: \"$ac_compile\"") >&5
8285 (eval $ac_compile) 2>&5
8287 echo "$as_me:8287: \$? = $ac_status" >&5
8288 (exit $ac_status); } &&
8289 { ac_try='test -s conftest.$ac_objext'
8290 { (eval echo "$as_me:8290: \"$ac_try\"") >&5
8293 echo "$as_me:8293: \$? = $ac_status" >&5
8294 (exit $ac_status); }; }; then
8295 cf_cv_xopen_source=no
8297 echo "$as_me: failed program was:" >&5
8298 cat conftest.$ac_ext >&5
8299 cf_cv_xopen_source=$cf_XOPEN_SOURCE
8301 rm -f conftest.$ac_objext conftest.$ac_ext
8305 rm -f conftest.$ac_objext conftest.$ac_ext
8308 echo "$as_me:8308: result: $cf_cv_xopen_source" >&5
8309 echo "${ECHO_T}$cf_cv_xopen_source" >&6
8311 if test "$cf_cv_xopen_source" != no ; then
8313 CFLAGS=`echo "$CFLAGS" | \
8314 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8315 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8317 CPPFLAGS=`echo "$CPPFLAGS" | \
8318 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8319 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8321 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
8326 cf_new_extra_cppflags=
8328 for cf_add_cflags in $cf_temp_xopen_source
8330 case $cf_fix_cppflags in
8332 case $cf_add_cflags in #(vi
8333 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
8334 case $cf_add_cflags in
8336 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8338 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8339 && test -z "${cf_tst_cflags}" \
8340 && cf_fix_cppflags=yes
8342 if test $cf_fix_cppflags = yes ; then
8343 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8345 elif test "${cf_tst_cflags}" = "\"'" ; then
8346 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8352 *$cf_add_cflags) #(vi
8355 case $cf_add_cflags in #(vi
8357 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8359 CPPFLAGS=`echo "$CPPFLAGS" | \
8360 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8361 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8365 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8370 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8375 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8377 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8379 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8380 && test -z "${cf_tst_cflags}" \
8381 && cf_fix_cppflags=no
8386 if test -n "$cf_new_cflags" ; then
8388 CFLAGS="$CFLAGS $cf_new_cflags"
8391 if test -n "$cf_new_cppflags" ; then
8393 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8396 if test -n "$cf_new_extra_cppflags" ; then
8398 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8406 # Work around breakage on OS X
8408 echo "$as_me:8408: checking if SIGWINCH is defined" >&5
8409 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
8410 if test "${cf_cv_define_sigwinch+set}" = set; then
8411 echo $ECHO_N "(cached) $ECHO_C" >&6
8414 cat >conftest.$ac_ext <<_ACEOF
8415 #line 8415 "configure"
8416 #include "confdefs.h"
8418 #include <sys/types.h>
8419 #include <sys/signal.h>
8429 rm -f conftest.$ac_objext
8430 if { (eval echo "$as_me:8430: \"$ac_compile\"") >&5
8431 (eval $ac_compile) 2>&5
8433 echo "$as_me:8433: \$? = $ac_status" >&5
8434 (exit $ac_status); } &&
8435 { ac_try='test -s conftest.$ac_objext'
8436 { (eval echo "$as_me:8436: \"$ac_try\"") >&5
8439 echo "$as_me:8439: \$? = $ac_status" >&5
8440 (exit $ac_status); }; }; then
8441 cf_cv_define_sigwinch=yes
8443 echo "$as_me: failed program was:" >&5
8444 cat conftest.$ac_ext >&5
8445 cat >conftest.$ac_ext <<_ACEOF
8446 #line 8446 "configure"
8447 #include "confdefs.h"
8449 #undef _XOPEN_SOURCE
8450 #undef _POSIX_SOURCE
8451 #undef _POSIX_C_SOURCE
8452 #include <sys/types.h>
8453 #include <sys/signal.h>
8463 rm -f conftest.$ac_objext
8464 if { (eval echo "$as_me:8464: \"$ac_compile\"") >&5
8465 (eval $ac_compile) 2>&5
8467 echo "$as_me:8467: \$? = $ac_status" >&5
8468 (exit $ac_status); } &&
8469 { ac_try='test -s conftest.$ac_objext'
8470 { (eval echo "$as_me:8470: \"$ac_try\"") >&5
8473 echo "$as_me:8473: \$? = $ac_status" >&5
8474 (exit $ac_status); }; }; then
8475 cf_cv_define_sigwinch=maybe
8477 echo "$as_me: failed program was:" >&5
8478 cat conftest.$ac_ext >&5
8479 cf_cv_define_sigwinch=no
8481 rm -f conftest.$ac_objext conftest.$ac_ext
8484 rm -f conftest.$ac_objext conftest.$ac_ext
8487 echo "$as_me:8487: result: $cf_cv_define_sigwinch" >&5
8488 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
8490 if test "$cf_cv_define_sigwinch" = maybe ; then
8491 echo "$as_me:8491: checking for actual SIGWINCH definition" >&5
8492 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
8493 if test "${cf_cv_fixup_sigwinch+set}" = set; then
8494 echo $ECHO_N "(cached) $ECHO_C" >&6
8497 cf_cv_fixup_sigwinch=unknown
8499 while test $cf_sigwinch != 1
8501 cat >conftest.$ac_ext <<_ACEOF
8502 #line 8502 "configure"
8503 #include "confdefs.h"
8505 #undef _XOPEN_SOURCE
8506 #undef _POSIX_SOURCE
8507 #undef _POSIX_C_SOURCE
8508 #include <sys/types.h>
8509 #include <sys/signal.h>
8515 #if SIGWINCH != $cf_sigwinch
8523 rm -f conftest.$ac_objext
8524 if { (eval echo "$as_me:8524: \"$ac_compile\"") >&5
8525 (eval $ac_compile) 2>&5
8527 echo "$as_me:8527: \$? = $ac_status" >&5
8528 (exit $ac_status); } &&
8529 { ac_try='test -s conftest.$ac_objext'
8530 { (eval echo "$as_me:8530: \"$ac_try\"") >&5
8533 echo "$as_me:8533: \$? = $ac_status" >&5
8534 (exit $ac_status); }; }; then
8535 cf_cv_fixup_sigwinch=$cf_sigwinch
8538 echo "$as_me: failed program was:" >&5
8539 cat conftest.$ac_ext >&5
8541 rm -f conftest.$ac_objext conftest.$ac_ext
8543 cf_sigwinch=`expr $cf_sigwinch - 1`
8547 echo "$as_me:8547: result: $cf_cv_fixup_sigwinch" >&5
8548 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
8550 if test "$cf_cv_fixup_sigwinch" != unknown ; then
8551 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
8555 # Checks for CODESET support.
8557 echo "$as_me:8557: checking for nl_langinfo and CODESET" >&5
8558 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
8559 if test "${am_cv_langinfo_codeset+set}" = set; then
8560 echo $ECHO_N "(cached) $ECHO_C" >&6
8562 cat >conftest.$ac_ext <<_ACEOF
8563 #line 8563 "configure"
8564 #include "confdefs.h"
8565 #include <langinfo.h>
8569 char* cs = nl_langinfo(CODESET);
8574 rm -f conftest.$ac_objext conftest$ac_exeext
8575 if { (eval echo "$as_me:8575: \"$ac_link\"") >&5
8576 (eval $ac_link) 2>&5
8578 echo "$as_me:8578: \$? = $ac_status" >&5
8579 (exit $ac_status); } &&
8580 { ac_try='test -s conftest$ac_exeext'
8581 { (eval echo "$as_me:8581: \"$ac_try\"") >&5
8584 echo "$as_me:8584: \$? = $ac_status" >&5
8585 (exit $ac_status); }; }; then
8586 am_cv_langinfo_codeset=yes
8588 echo "$as_me: failed program was:" >&5
8589 cat conftest.$ac_ext >&5
8590 am_cv_langinfo_codeset=no
8592 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8595 echo "$as_me:8595: result: $am_cv_langinfo_codeset" >&5
8596 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
8597 if test $am_cv_langinfo_codeset = yes; then
8599 cat >>confdefs.h <<\EOF
8600 #define HAVE_LANGINFO_CODESET 1
8605 # use these variables to work around a defect in gcc's fixincludes.
8609 echo "$as_me:8609: checking if you want wide-character code" >&5
8610 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
8612 # Check whether --enable-widec or --disable-widec was given.
8613 if test "${enable_widec+set}" = set; then
8614 enableval="$enable_widec"
8615 with_widec=$enableval
8619 echo "$as_me:8619: result: $with_widec" >&5
8620 echo "${ECHO_T}$with_widec" >&6
8621 if test "x$with_widec" = xyes ; then
8622 if test "x$disable_lib_suffixes" = xno ; then
8623 LIB_SUFFIX="w${LIB_SUFFIX}"
8626 cat >>confdefs.h <<\EOF
8627 #define USE_WIDEC_SUPPORT 1
8630 cat >>confdefs.h <<\EOF
8631 #define NCURSES_WIDECHAR 1
8634 echo "$as_me:8634: checking if wchar.h can be used as is" >&5
8635 echo $ECHO_N "checking if wchar.h can be used as is... $ECHO_C" >&6
8636 if test "${cf_cv_wchar_h_okay+set}" = set; then
8637 echo $ECHO_N "(cached) $ECHO_C" >&6
8640 cat >conftest.$ac_ext <<_ACEOF
8641 #line 8641 "configure"
8642 #include "confdefs.h"
8652 int bar = iswpunct(foo)
8657 rm -f conftest.$ac_objext
8658 if { (eval echo "$as_me:8658: \"$ac_compile\"") >&5
8659 (eval $ac_compile) 2>&5
8661 echo "$as_me:8661: \$? = $ac_status" >&5
8662 (exit $ac_status); } &&
8663 { ac_try='test -s conftest.$ac_objext'
8664 { (eval echo "$as_me:8664: \"$ac_try\"") >&5
8667 echo "$as_me:8667: \$? = $ac_status" >&5
8668 (exit $ac_status); }; }; then
8669 cf_cv_wchar_h_okay=yes
8671 echo "$as_me: failed program was:" >&5
8672 cat conftest.$ac_ext >&5
8673 cf_cv_wchar_h_okay=no
8675 rm -f conftest.$ac_objext conftest.$ac_ext
8677 echo "$as_me:8677: result: $cf_cv_wchar_h_okay" >&5
8678 echo "${ECHO_T}$cf_cv_wchar_h_okay" >&6
8680 if test $cf_cv_wchar_h_okay = no
8683 echo "$as_me:8683: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
8684 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
8685 cat >conftest.$ac_ext <<_ACEOF
8686 #line 8686 "configure"
8687 #include "confdefs.h"
8688 #include <sys/types.h>
8694 #ifndef _XOPEN_SOURCE_EXTENDED
8701 rm -f conftest.$ac_objext
8702 if { (eval echo "$as_me:8702: \"$ac_compile\"") >&5
8703 (eval $ac_compile) 2>&5
8705 echo "$as_me:8705: \$? = $ac_status" >&5
8706 (exit $ac_status); } &&
8707 { ac_try='test -s conftest.$ac_objext'
8708 { (eval echo "$as_me:8708: \"$ac_try\"") >&5
8711 echo "$as_me:8711: \$? = $ac_status" >&5
8712 (exit $ac_status); }; }; then
8715 echo "$as_me: failed program was:" >&5
8716 cat conftest.$ac_ext >&5
8719 rm -f conftest.$ac_objext conftest.$ac_ext
8720 echo "$as_me:8720: result: $cf_result" >&5
8721 echo "${ECHO_T}$cf_result" >&6
8723 if test "$cf_result" = yes ; then
8724 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
8725 elif test "x" != "x" ; then
8726 echo "$as_me:8726: checking checking for compatible value versus " >&5
8727 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
8728 cat >conftest.$ac_ext <<_ACEOF
8729 #line 8729 "configure"
8730 #include "confdefs.h"
8731 #include <sys/types.h>
8737 #if _XOPEN_SOURCE_EXTENDED- < 0
8744 rm -f conftest.$ac_objext
8745 if { (eval echo "$as_me:8745: \"$ac_compile\"") >&5
8746 (eval $ac_compile) 2>&5
8748 echo "$as_me:8748: \$? = $ac_status" >&5
8749 (exit $ac_status); } &&
8750 { ac_try='test -s conftest.$ac_objext'
8751 { (eval echo "$as_me:8751: \"$ac_try\"") >&5
8754 echo "$as_me:8754: \$? = $ac_status" >&5
8755 (exit $ac_status); }; }; then
8758 echo "$as_me: failed program was:" >&5
8759 cat conftest.$ac_ext >&5
8762 rm -f conftest.$ac_objext conftest.$ac_ext
8763 echo "$as_me:8763: result: $cf_result" >&5
8764 echo "${ECHO_T}$cf_result" >&6
8765 if test "$cf_result" = no ; then
8766 # perhaps we can override it - try...
8767 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
8774 NCURSES_CH_T=cchar_t
8776 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
8778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8779 echo "$as_me:8779: checking for $ac_func" >&5
8780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8781 if eval "test \"\${$as_ac_var+set}\" = set"; then
8782 echo $ECHO_N "(cached) $ECHO_C" >&6
8784 cat >conftest.$ac_ext <<_ACEOF
8785 #line 8785 "configure"
8786 #include "confdefs.h"
8787 /* System header to define __stub macros and hopefully few prototypes,
8788 which can conflict with char $ac_func (); below. */
8790 /* Override any gcc2 internal prototype to avoid an error. */
8794 /* We use char because int might match the return type of a gcc2
8795 builtin and then its argument prototype would still apply. */
8802 /* The GNU C library defines this for functions which it implements
8803 to always fail with ENOSYS. Some functions are actually named
8804 something starting with __ and the normal name is an alias. */
8805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8808 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
8815 rm -f conftest.$ac_objext conftest$ac_exeext
8816 if { (eval echo "$as_me:8816: \"$ac_link\"") >&5
8817 (eval $ac_link) 2>&5
8819 echo "$as_me:8819: \$? = $ac_status" >&5
8820 (exit $ac_status); } &&
8821 { ac_try='test -s conftest$ac_exeext'
8822 { (eval echo "$as_me:8822: \"$ac_try\"") >&5
8825 echo "$as_me:8825: \$? = $ac_status" >&5
8826 (exit $ac_status); }; }; then
8827 eval "$as_ac_var=yes"
8829 echo "$as_me: failed program was:" >&5
8830 cat conftest.$ac_ext >&5
8831 eval "$as_ac_var=no"
8833 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8835 echo "$as_me:8835: result: `eval echo '${'$as_ac_var'}'`" >&5
8836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8837 if test `eval echo '${'$as_ac_var'}'` = yes; then
8838 cat >>confdefs.h <<EOF
8839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8845 if test "x$ac_cv_func_putwc" != xyes ; then
8847 echo "$as_me:8847: checking for multibyte character support" >&5
8848 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
8849 if test "${cf_cv_utf8_lib+set}" = set; then
8850 echo $ECHO_N "(cached) $ECHO_C" >&6
8853 cf_save_LIBS="$LIBS"
8854 cat >conftest.$ac_ext <<_ACEOF
8855 #line 8855 "configure"
8856 #include "confdefs.h"
8867 rm -f conftest.$ac_objext conftest$ac_exeext
8868 if { (eval echo "$as_me:8868: \"$ac_link\"") >&5
8869 (eval $ac_link) 2>&5
8871 echo "$as_me:8871: \$? = $ac_status" >&5
8872 (exit $ac_status); } &&
8873 { ac_try='test -s conftest$ac_exeext'
8874 { (eval echo "$as_me:8874: \"$ac_try\"") >&5
8877 echo "$as_me:8877: \$? = $ac_status" >&5
8878 (exit $ac_status); }; }; then
8881 echo "$as_me: failed program was:" >&5
8882 cat conftest.$ac_ext >&5
8884 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
8885 # will be set on completion of the AC_TRY_LINK below.
8886 cf_cv_header_path_utf8=
8887 cf_cv_library_path_utf8=
8889 echo "${as_me:-configure}:8889: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
8891 cf_save_LIBS="$LIBS"
8893 cat >conftest.$ac_ext <<_ACEOF
8894 #line 8894 "configure"
8895 #include "confdefs.h"
8897 #include <libutf8.h>
8906 rm -f conftest.$ac_objext conftest$ac_exeext
8907 if { (eval echo "$as_me:8907: \"$ac_link\"") >&5
8908 (eval $ac_link) 2>&5
8910 echo "$as_me:8910: \$? = $ac_status" >&5
8911 (exit $ac_status); } &&
8912 { ac_try='test -s conftest$ac_exeext'
8913 { (eval echo "$as_me:8913: \"$ac_try\"") >&5
8916 echo "$as_me:8916: \$? = $ac_status" >&5
8917 (exit $ac_status); }; }; then
8919 cf_cv_find_linkage_utf8=yes
8920 cf_cv_header_path_utf8=/usr/include
8921 cf_cv_library_path_utf8=/usr/lib
8924 echo "$as_me: failed program was:" >&5
8925 cat conftest.$ac_ext >&5
8927 LIBS="-lutf8 $cf_save_LIBS"
8929 cat >conftest.$ac_ext <<_ACEOF
8930 #line 8930 "configure"
8931 #include "confdefs.h"
8933 #include <libutf8.h>
8942 rm -f conftest.$ac_objext conftest$ac_exeext
8943 if { (eval echo "$as_me:8943: \"$ac_link\"") >&5
8944 (eval $ac_link) 2>&5
8946 echo "$as_me:8946: \$? = $ac_status" >&5
8947 (exit $ac_status); } &&
8948 { ac_try='test -s conftest$ac_exeext'
8949 { (eval echo "$as_me:8949: \"$ac_try\"") >&5
8952 echo "$as_me:8952: \$? = $ac_status" >&5
8953 (exit $ac_status); }; }; then
8955 cf_cv_find_linkage_utf8=yes
8956 cf_cv_header_path_utf8=/usr/include
8957 cf_cv_library_path_utf8=/usr/lib
8958 cf_cv_library_file_utf8="-lutf8"
8961 echo "$as_me: failed program was:" >&5
8962 cat conftest.$ac_ext >&5
8964 cf_cv_find_linkage_utf8=no
8965 LIBS="$cf_save_LIBS"
8967 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
8969 echo "${as_me:-configure}:8969: testing find linkage for utf8 library ..." 1>&5
8971 echo "${as_me:-configure}:8971: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
8973 cf_save_CPPFLAGS="$CPPFLAGS"
8974 cf_test_CPPFLAGS="$CPPFLAGS"
8978 # collect the current set of include-directories from compiler flags
8979 cf_header_path_list=""
8980 if test -n "${CFLAGS}${CPPFLAGS}" ; then
8981 for cf_header_path in $CPPFLAGS $CFLAGS
8983 case $cf_header_path in #(vi
8985 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
8987 test "x$cf_header_path" != "xNONE" && \
8988 test -d "$cf_header_path" && \
8990 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
8991 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
8992 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
8993 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
8994 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
8995 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
8998 cf_header_path_list="$cf_header_path_list $cf_search"
9004 # add the variations for the package we are looking for
9008 test "x/usr" != "x$prefix" && \
9010 (test -z "$prefix" || test x$prefix = xNONE || test "x/usr" != "x$prefix") && {
9011 test -n "$verbose" && echo " ... testing for include-directories under /usr"
9012 test -d /usr/include && cf_search="$cf_search /usr/include"
9013 test -d /usr/include/utf8 && cf_search="$cf_search /usr/include/utf8"
9014 test -d /usr/include/utf8/include && cf_search="$cf_search /usr/include/utf8/include"
9015 test -d /usr/utf8/include && cf_search="$cf_search /usr/utf8/include"
9016 test -d /usr/utf8/include/utf8 && cf_search="$cf_search /usr/utf8/include/utf8"
9019 test "x$prefix" != "xNONE" && \
9020 test -d "$prefix" && \
9022 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
9023 test -d $prefix/include && cf_search="$cf_search $prefix/include"
9024 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
9025 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
9026 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
9027 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
9030 test "x/usr/local" != "x$prefix" && \
9031 test -d "/usr/local" && \
9032 (test -z "$prefix" || test x$prefix = xNONE || test "x/usr/local" != "x$prefix") && {
9033 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
9034 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
9035 test -d /usr/local/include/utf8 && cf_search="$cf_search /usr/local/include/utf8"
9036 test -d /usr/local/include/utf8/include && cf_search="$cf_search /usr/local/include/utf8/include"
9037 test -d /usr/local/utf8/include && cf_search="$cf_search /usr/local/utf8/include"
9038 test -d /usr/local/utf8/include/utf8 && cf_search="$cf_search /usr/local/utf8/include/utf8"
9041 test "x/opt" != "x$prefix" && \
9043 (test -z "$prefix" || test x$prefix = xNONE || test "x/opt" != "x$prefix") && {
9044 test -n "$verbose" && echo " ... testing for include-directories under /opt"
9045 test -d /opt/include && cf_search="$cf_search /opt/include"
9046 test -d /opt/include/utf8 && cf_search="$cf_search /opt/include/utf8"
9047 test -d /opt/include/utf8/include && cf_search="$cf_search /opt/include/utf8/include"
9048 test -d /opt/utf8/include && cf_search="$cf_search /opt/utf8/include"
9049 test -d /opt/utf8/include/utf8 && cf_search="$cf_search /opt/utf8/include/utf8"
9052 test "x$HOME" != "x$prefix" && \
9053 test -d "$HOME" && \
9054 (test -z "$prefix" || test x$prefix = xNONE || test "x$HOME" != "x$prefix") && {
9055 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
9056 test -d $HOME/include && cf_search="$cf_search $HOME/include"
9057 test -d $HOME/include/utf8 && cf_search="$cf_search $HOME/include/utf8"
9058 test -d $HOME/include/utf8/include && cf_search="$cf_search $HOME/include/utf8/include"
9059 test -d $HOME/utf8/include && cf_search="$cf_search $HOME/utf8/include"
9060 test -d $HOME/utf8/include/utf8 && cf_search="$cf_search $HOME/utf8/include/utf8"
9063 test "$includedir" != NONE && \
9064 test "$includedir" != "/usr/include" && \
9065 test -d "$includedir" && {
9066 test -d $includedir && cf_search="$cf_search $includedir"
9067 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
9070 test "$oldincludedir" != NONE && \
9071 test "$oldincludedir" != "/usr/include" && \
9072 test -d "$oldincludedir" && {
9073 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
9074 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
9077 cf_search="$cf_search $cf_header_path_list"
9079 for cf_cv_header_path_utf8 in $cf_search
9081 if test -d $cf_cv_header_path_utf8 ; then
9082 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
9084 echo "${as_me:-configure}:9084: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
9086 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
9087 cat >conftest.$ac_ext <<_ACEOF
9088 #line 9088 "configure"
9089 #include "confdefs.h"
9091 #include <libutf8.h>
9100 rm -f conftest.$ac_objext
9101 if { (eval echo "$as_me:9101: \"$ac_compile\"") >&5
9102 (eval $ac_compile) 2>&5
9104 echo "$as_me:9104: \$? = $ac_status" >&5
9105 (exit $ac_status); } &&
9106 { ac_try='test -s conftest.$ac_objext'
9107 { (eval echo "$as_me:9107: \"$ac_try\"") >&5
9110 echo "$as_me:9110: \$? = $ac_status" >&5
9111 (exit $ac_status); }; }; then
9113 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
9115 echo "${as_me:-configure}:9115: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
9117 cf_cv_find_linkage_utf8=maybe
9118 cf_test_CPPFLAGS="$CPPFLAGS"
9121 echo "$as_me: failed program was:" >&5
9122 cat conftest.$ac_ext >&5
9124 CPPFLAGS="$cf_save_CPPFLAGS"
9127 rm -f conftest.$ac_objext conftest.$ac_ext
9131 if test "$cf_cv_find_linkage_utf8" = maybe ; then
9133 echo "${as_me:-configure}:9133: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
9135 cf_save_LIBS="$LIBS"
9136 cf_save_LDFLAGS="$LDFLAGS"
9138 if test "$cf_cv_find_linkage_utf8" != yes ; then
9141 cf_library_path_list=""
9142 if test -n "${LDFLAGS}${LIBS}" ; then
9143 for cf_library_path in $LDFLAGS $LIBS
9145 case $cf_library_path in #(vi
9147 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
9149 test "x$cf_library_path" != "xNONE" && \
9150 test -d "$cf_library_path" && \
9152 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
9153 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
9154 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
9155 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
9156 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
9157 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
9160 cf_library_path_list="$cf_library_path_list $cf_search"
9168 test "x/usr" != "x$prefix" && \
9170 (test -z "$prefix" || test x$prefix = xNONE || test "x/usr" != "x$prefix") && {
9171 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
9172 test -d /usr/lib && cf_search="$cf_search /usr/lib"
9173 test -d /usr/lib/utf8 && cf_search="$cf_search /usr/lib/utf8"
9174 test -d /usr/lib/utf8/lib && cf_search="$cf_search /usr/lib/utf8/lib"
9175 test -d /usr/utf8/lib && cf_search="$cf_search /usr/utf8/lib"
9176 test -d /usr/utf8/lib/utf8 && cf_search="$cf_search /usr/utf8/lib/utf8"
9179 test "x$prefix" != "xNONE" && \
9180 test -d "$prefix" && \
9182 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
9183 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
9184 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
9185 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
9186 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
9187 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
9190 test "x/usr/local" != "x$prefix" && \
9191 test -d "/usr/local" && \
9192 (test -z "$prefix" || test x$prefix = xNONE || test "x/usr/local" != "x$prefix") && {
9193 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
9194 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
9195 test -d /usr/local/lib/utf8 && cf_search="$cf_search /usr/local/lib/utf8"
9196 test -d /usr/local/lib/utf8/lib && cf_search="$cf_search /usr/local/lib/utf8/lib"
9197 test -d /usr/local/utf8/lib && cf_search="$cf_search /usr/local/utf8/lib"
9198 test -d /usr/local/utf8/lib/utf8 && cf_search="$cf_search /usr/local/utf8/lib/utf8"
9201 test "x/opt" != "x$prefix" && \
9203 (test -z "$prefix" || test x$prefix = xNONE || test "x/opt" != "x$prefix") && {
9204 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
9205 test -d /opt/lib && cf_search="$cf_search /opt/lib"
9206 test -d /opt/lib/utf8 && cf_search="$cf_search /opt/lib/utf8"
9207 test -d /opt/lib/utf8/lib && cf_search="$cf_search /opt/lib/utf8/lib"
9208 test -d /opt/utf8/lib && cf_search="$cf_search /opt/utf8/lib"
9209 test -d /opt/utf8/lib/utf8 && cf_search="$cf_search /opt/utf8/lib/utf8"
9212 test "x$HOME" != "x$prefix" && \
9213 test -d "$HOME" && \
9214 (test -z "$prefix" || test x$prefix = xNONE || test "x$HOME" != "x$prefix") && {
9215 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
9216 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
9217 test -d $HOME/lib/utf8 && cf_search="$cf_search $HOME/lib/utf8"
9218 test -d $HOME/lib/utf8/lib && cf_search="$cf_search $HOME/lib/utf8/lib"
9219 test -d $HOME/utf8/lib && cf_search="$cf_search $HOME/utf8/lib"
9220 test -d $HOME/utf8/lib/utf8 && cf_search="$cf_search $HOME/utf8/lib/utf8"
9223 cf_search="$cf_library_path_list $cf_search"
9225 for cf_cv_library_path_utf8 in $cf_search
9227 if test -d $cf_cv_library_path_utf8 ; then
9228 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
9230 echo "${as_me:-configure}:9230: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
9232 CPPFLAGS="$cf_test_CPPFLAGS"
9233 LIBS="-lutf8 $cf_save_LIBS"
9234 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
9235 cat >conftest.$ac_ext <<_ACEOF
9236 #line 9236 "configure"
9237 #include "confdefs.h"
9239 #include <libutf8.h>
9248 rm -f conftest.$ac_objext conftest$ac_exeext
9249 if { (eval echo "$as_me:9249: \"$ac_link\"") >&5
9250 (eval $ac_link) 2>&5
9252 echo "$as_me:9252: \$? = $ac_status" >&5
9253 (exit $ac_status); } &&
9254 { ac_try='test -s conftest$ac_exeext'
9255 { (eval echo "$as_me:9255: \"$ac_try\"") >&5
9258 echo "$as_me:9258: \$? = $ac_status" >&5
9259 (exit $ac_status); }; }; then
9261 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
9263 echo "${as_me:-configure}:9263: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
9265 cf_cv_find_linkage_utf8=yes
9266 cf_cv_library_file_utf8="-lutf8"
9269 echo "$as_me: failed program was:" >&5
9270 cat conftest.$ac_ext >&5
9272 CPPFLAGS="$cf_save_CPPFLAGS"
9273 LIBS="$cf_save_LIBS"
9274 LDFLAGS="$cf_save_LDFLAGS"
9277 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9280 CPPFLAGS="$cf_save_CPPFLAGS"
9281 LDFLAGS="$cf_save_LDFLAGS"
9285 cf_cv_find_linkage_utf8=no
9289 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9292 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9294 LIBS="$cf_save_LIBS"
9296 if test "$cf_cv_find_linkage_utf8" = yes ; then
9297 cf_cv_utf8_lib=add-on
9303 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9305 echo "$as_me:9305: result: $cf_cv_utf8_lib" >&5
9306 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
9308 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
9310 if test "$cf_cv_utf8_lib" = "add-on" ; then
9312 cat >>confdefs.h <<\EOF
9313 #define HAVE_LIBUTF8_H 1
9316 if test -n "$cf_cv_header_path_utf8" ; then
9317 for cf_add_incdir in $cf_cv_header_path_utf8
9319 while test $cf_add_incdir != /usr/include
9321 if test -d $cf_add_incdir
9324 if test -n "$CFLAGS$CPPFLAGS" ; then
9325 # a loop is needed to ensure we can add subdirs of existing dirs
9326 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
9327 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
9328 cf_have_incdir=yes; break
9333 if test "$cf_have_incdir" = no ; then
9334 if test "$cf_add_incdir" = /usr/local/include ; then
9335 if test "$GCC" = yes
9337 cf_save_CPPFLAGS=$CPPFLAGS
9338 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9339 cat >conftest.$ac_ext <<_ACEOF
9340 #line 9340 "configure"
9341 #include "confdefs.h"
9351 rm -f conftest.$ac_objext
9352 if { (eval echo "$as_me:9352: \"$ac_compile\"") >&5
9353 (eval $ac_compile) 2>&5
9355 echo "$as_me:9355: \$? = $ac_status" >&5
9356 (exit $ac_status); } &&
9357 { ac_try='test -s conftest.$ac_objext'
9358 { (eval echo "$as_me:9358: \"$ac_try\"") >&5
9361 echo "$as_me:9361: \$? = $ac_status" >&5
9362 (exit $ac_status); }; }; then
9365 echo "$as_me: failed program was:" >&5
9366 cat conftest.$ac_ext >&5
9369 rm -f conftest.$ac_objext conftest.$ac_ext
9370 CPPFLAGS=$cf_save_CPPFLAGS
9375 if test "$cf_have_incdir" = no ; then
9376 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
9378 echo "${as_me:-configure}:9378: testing adding $cf_add_incdir to include-path ..." 1>&5
9380 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9382 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
9383 test "$cf_top_incdir" = "$cf_add_incdir" && break
9384 cf_add_incdir="$cf_top_incdir"
9393 if test -n "$cf_cv_library_path_utf8" ; then
9394 for cf_add_libdir in $cf_cv_library_path_utf8
9396 if test $cf_add_libdir = /usr/lib ; then
9398 elif test -d $cf_add_libdir
9401 if test -n "$LDFLAGS$LIBS" ; then
9402 # a loop is needed to ensure we can add subdirs of existing dirs
9403 for cf_test_libdir in $LDFLAGS $LIBS ; do
9404 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
9405 cf_have_libdir=yes; break
9409 if test "$cf_have_libdir" = no ; then
9410 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
9412 echo "${as_me:-configure}:9412: testing adding $cf_add_libdir to library-path ..." 1>&5
9414 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
9420 LIBS="$cf_cv_library_file_utf8 $LIBS"
9423 if test "$cf_cv_utf8_lib" != no ; then
9428 # This is needed on Tru64 5.0 to declare mbstate_t
9429 echo "$as_me:9429: checking if we must include wchar.h to declare mbstate_t" >&5
9430 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
9431 if test "${cf_cv_mbstate_t+set}" = set; then
9432 echo $ECHO_N "(cached) $ECHO_C" >&6
9435 cat >conftest.$ac_ext <<_ACEOF
9436 #line 9436 "configure"
9437 #include "confdefs.h"
9442 #ifdef HAVE_LIBUTF8_H
9443 #include <libutf8.h>
9453 rm -f conftest.$ac_objext
9454 if { (eval echo "$as_me:9454: \"$ac_compile\"") >&5
9455 (eval $ac_compile) 2>&5
9457 echo "$as_me:9457: \$? = $ac_status" >&5
9458 (exit $ac_status); } &&
9459 { ac_try='test -s conftest.$ac_objext'
9460 { (eval echo "$as_me:9460: \"$ac_try\"") >&5
9463 echo "$as_me:9463: \$? = $ac_status" >&5
9464 (exit $ac_status); }; }; then
9467 echo "$as_me: failed program was:" >&5
9468 cat conftest.$ac_ext >&5
9469 cat >conftest.$ac_ext <<_ACEOF
9470 #line 9470 "configure"
9471 #include "confdefs.h"
9477 #ifdef HAVE_LIBUTF8_H
9478 #include <libutf8.h>
9488 rm -f conftest.$ac_objext
9489 if { (eval echo "$as_me:9489: \"$ac_compile\"") >&5
9490 (eval $ac_compile) 2>&5
9492 echo "$as_me:9492: \$? = $ac_status" >&5
9493 (exit $ac_status); } &&
9494 { ac_try='test -s conftest.$ac_objext'
9495 { (eval echo "$as_me:9495: \"$ac_try\"") >&5
9498 echo "$as_me:9498: \$? = $ac_status" >&5
9499 (exit $ac_status); }; }; then
9502 echo "$as_me: failed program was:" >&5
9503 cat conftest.$ac_ext >&5
9504 cf_cv_mbstate_t=unknown
9506 rm -f conftest.$ac_objext conftest.$ac_ext
9508 rm -f conftest.$ac_objext conftest.$ac_ext
9510 echo "$as_me:9510: result: $cf_cv_mbstate_t" >&5
9511 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
9513 if test "$cf_cv_mbstate_t" = yes ; then
9515 cat >>confdefs.h <<\EOF
9516 #define NEED_WCHAR_H 1
9522 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
9523 if test "$cf_cv_mbstate_t" = unknown ; then
9527 # This is needed on Tru64 5.0 to declare wchar_t
9528 echo "$as_me:9528: checking if we must include wchar.h to declare wchar_t" >&5
9529 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
9530 if test "${cf_cv_wchar_t+set}" = set; then
9531 echo $ECHO_N "(cached) $ECHO_C" >&6
9534 cat >conftest.$ac_ext <<_ACEOF
9535 #line 9535 "configure"
9536 #include "confdefs.h"
9541 #ifdef HAVE_LIBUTF8_H
9542 #include <libutf8.h>
9552 rm -f conftest.$ac_objext
9553 if { (eval echo "$as_me:9553: \"$ac_compile\"") >&5
9554 (eval $ac_compile) 2>&5
9556 echo "$as_me:9556: \$? = $ac_status" >&5
9557 (exit $ac_status); } &&
9558 { ac_try='test -s conftest.$ac_objext'
9559 { (eval echo "$as_me:9559: \"$ac_try\"") >&5
9562 echo "$as_me:9562: \$? = $ac_status" >&5
9563 (exit $ac_status); }; }; then
9566 echo "$as_me: failed program was:" >&5
9567 cat conftest.$ac_ext >&5
9568 cat >conftest.$ac_ext <<_ACEOF
9569 #line 9569 "configure"
9570 #include "confdefs.h"
9576 #ifdef HAVE_LIBUTF8_H
9577 #include <libutf8.h>
9587 rm -f conftest.$ac_objext
9588 if { (eval echo "$as_me:9588: \"$ac_compile\"") >&5
9589 (eval $ac_compile) 2>&5
9591 echo "$as_me:9591: \$? = $ac_status" >&5
9592 (exit $ac_status); } &&
9593 { ac_try='test -s conftest.$ac_objext'
9594 { (eval echo "$as_me:9594: \"$ac_try\"") >&5
9597 echo "$as_me:9597: \$? = $ac_status" >&5
9598 (exit $ac_status); }; }; then
9601 echo "$as_me: failed program was:" >&5
9602 cat conftest.$ac_ext >&5
9603 cf_cv_wchar_t=unknown
9605 rm -f conftest.$ac_objext conftest.$ac_ext
9607 rm -f conftest.$ac_objext conftest.$ac_ext
9609 echo "$as_me:9609: result: $cf_cv_wchar_t" >&5
9610 echo "${ECHO_T}$cf_cv_wchar_t" >&6
9612 if test "$cf_cv_wchar_t" = yes ; then
9614 cat >>confdefs.h <<\EOF
9615 #define NEED_WCHAR_H 1
9621 # if we do not find wchar_t in either place, use substitution to provide a fallback.
9622 if test "$cf_cv_wchar_t" = unknown ; then
9626 # if we find wchar_t in either place, use substitution to provide a fallback.
9627 if test "$cf_cv_wchar_t" != unknown ; then
9628 NCURSES_OK_WCHAR_T=1
9631 # This is needed on Tru64 5.0 to declare wint_t
9632 echo "$as_me:9632: checking if we must include wchar.h to declare wint_t" >&5
9633 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
9634 if test "${cf_cv_wint_t+set}" = set; then
9635 echo $ECHO_N "(cached) $ECHO_C" >&6
9638 cat >conftest.$ac_ext <<_ACEOF
9639 #line 9639 "configure"
9640 #include "confdefs.h"
9645 #ifdef HAVE_LIBUTF8_H
9646 #include <libutf8.h>
9656 rm -f conftest.$ac_objext
9657 if { (eval echo "$as_me:9657: \"$ac_compile\"") >&5
9658 (eval $ac_compile) 2>&5
9660 echo "$as_me:9660: \$? = $ac_status" >&5
9661 (exit $ac_status); } &&
9662 { ac_try='test -s conftest.$ac_objext'
9663 { (eval echo "$as_me:9663: \"$ac_try\"") >&5
9666 echo "$as_me:9666: \$? = $ac_status" >&5
9667 (exit $ac_status); }; }; then
9670 echo "$as_me: failed program was:" >&5
9671 cat conftest.$ac_ext >&5
9672 cat >conftest.$ac_ext <<_ACEOF
9673 #line 9673 "configure"
9674 #include "confdefs.h"
9680 #ifdef HAVE_LIBUTF8_H
9681 #include <libutf8.h>
9691 rm -f conftest.$ac_objext
9692 if { (eval echo "$as_me:9692: \"$ac_compile\"") >&5
9693 (eval $ac_compile) 2>&5
9695 echo "$as_me:9695: \$? = $ac_status" >&5
9696 (exit $ac_status); } &&
9697 { ac_try='test -s conftest.$ac_objext'
9698 { (eval echo "$as_me:9698: \"$ac_try\"") >&5
9701 echo "$as_me:9701: \$? = $ac_status" >&5
9702 (exit $ac_status); }; }; then
9705 echo "$as_me: failed program was:" >&5
9706 cat conftest.$ac_ext >&5
9707 cf_cv_wint_t=unknown
9709 rm -f conftest.$ac_objext conftest.$ac_ext
9711 rm -f conftest.$ac_objext conftest.$ac_ext
9713 echo "$as_me:9713: result: $cf_cv_wint_t" >&5
9714 echo "${ECHO_T}$cf_cv_wint_t" >&6
9716 if test "$cf_cv_wint_t" = yes ; then
9718 cat >>confdefs.h <<\EOF
9719 #define NEED_WCHAR_H 1
9725 # if we do not find wint_t in either place, use substitution to provide a fallback.
9726 if test "$cf_cv_wint_t" = unknown ; then
9730 # if we find wint_t in either place, use substitution to provide a fallback.
9731 if test "$cf_cv_wint_t" != unknown ; then
9735 if test "$NCURSES_MBSTATE_T" != 0; then
9737 cat >>confdefs.h <<\EOF
9738 #define NEED_MBSTATE_T_DEF 1
9744 ### use option --disable-lp64 to allow long chtype
9745 case $cf_cv_abi_version in
9747 default_with_lp64=no
9750 default_with_lp64=yes
9754 echo "$as_me:9754: checking whether to enable _LP64 definition in curses.h" >&5
9755 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
9757 # Check whether --enable-lp64 or --disable-lp64 was given.
9758 if test "${enable_lp64+set}" = set; then
9759 enableval="$enable_lp64"
9760 with_lp64=$enableval
9762 with_lp64=$default_with_lp64
9764 echo "$as_me:9764: result: $with_lp64" >&5
9765 echo "${ECHO_T}$with_lp64" >&6
9767 if test "x$with_lp64" = xyes ; then
9773 # Check whether --enable-largefile or --disable-largefile was given.
9774 if test "${enable_largefile+set}" = set; then
9775 enableval="$enable_largefile"
9778 if test "$enable_largefile" != no; then
9780 echo "$as_me:9780: checking for special C compiler options needed for large files" >&5
9781 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
9782 if test "${ac_cv_sys_largefile_CC+set}" = set; then
9783 echo $ECHO_N "(cached) $ECHO_C" >&6
9785 ac_cv_sys_largefile_CC=no
9786 if test "$GCC" != yes; then
9789 # IRIX 6.2 and later do not support large files by default,
9790 # so use the C compiler's -n32 option if that helps.
9791 cat >conftest.$ac_ext <<_ACEOF
9792 #line 9792 "configure"
9793 #include "confdefs.h"
9794 #include <sys/types.h>
9795 /* Check that off_t can represent 2**63 - 1 correctly.
9796 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9797 since some C++ compilers masquerading as C compilers
9798 incorrectly reject 9223372036854775807. */
9799 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9800 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9801 && LARGE_OFF_T % 2147483647 == 1)
9811 rm -f conftest.$ac_objext
9812 if { (eval echo "$as_me:9812: \"$ac_compile\"") >&5
9813 (eval $ac_compile) 2>&5
9815 echo "$as_me:9815: \$? = $ac_status" >&5
9816 (exit $ac_status); } &&
9817 { ac_try='test -s conftest.$ac_objext'
9818 { (eval echo "$as_me:9818: \"$ac_try\"") >&5
9821 echo "$as_me:9821: \$? = $ac_status" >&5
9822 (exit $ac_status); }; }; then
9825 echo "$as_me: failed program was:" >&5
9826 cat conftest.$ac_ext >&5
9828 rm -f conftest.$ac_objext
9830 rm -f conftest.$ac_objext
9831 if { (eval echo "$as_me:9831: \"$ac_compile\"") >&5
9832 (eval $ac_compile) 2>&5
9834 echo "$as_me:9834: \$? = $ac_status" >&5
9835 (exit $ac_status); } &&
9836 { ac_try='test -s conftest.$ac_objext'
9837 { (eval echo "$as_me:9837: \"$ac_try\"") >&5
9840 echo "$as_me:9840: \$? = $ac_status" >&5
9841 (exit $ac_status); }; }; then
9842 ac_cv_sys_largefile_CC=' -n32'; break
9844 echo "$as_me: failed program was:" >&5
9845 cat conftest.$ac_ext >&5
9847 rm -f conftest.$ac_objext
9851 rm -f conftest.$ac_ext
9854 echo "$as_me:9854: result: $ac_cv_sys_largefile_CC" >&5
9855 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
9856 if test "$ac_cv_sys_largefile_CC" != no; then
9857 CC=$CC$ac_cv_sys_largefile_CC
9860 echo "$as_me:9860: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9861 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
9862 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9863 echo $ECHO_N "(cached) $ECHO_C" >&6
9866 ac_cv_sys_file_offset_bits=no
9867 cat >conftest.$ac_ext <<_ACEOF
9868 #line 9868 "configure"
9869 #include "confdefs.h"
9870 #include <sys/types.h>
9871 /* Check that off_t can represent 2**63 - 1 correctly.
9872 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9873 since some C++ compilers masquerading as C compilers
9874 incorrectly reject 9223372036854775807. */
9875 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9876 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9877 && LARGE_OFF_T % 2147483647 == 1)
9887 rm -f conftest.$ac_objext
9888 if { (eval echo "$as_me:9888: \"$ac_compile\"") >&5
9889 (eval $ac_compile) 2>&5
9891 echo "$as_me:9891: \$? = $ac_status" >&5
9892 (exit $ac_status); } &&
9893 { ac_try='test -s conftest.$ac_objext'
9894 { (eval echo "$as_me:9894: \"$ac_try\"") >&5
9897 echo "$as_me:9897: \$? = $ac_status" >&5
9898 (exit $ac_status); }; }; then
9901 echo "$as_me: failed program was:" >&5
9902 cat conftest.$ac_ext >&5
9904 rm -f conftest.$ac_objext conftest.$ac_ext
9905 cat >conftest.$ac_ext <<_ACEOF
9906 #line 9906 "configure"
9907 #include "confdefs.h"
9908 #define _FILE_OFFSET_BITS 64
9909 #include <sys/types.h>
9910 /* Check that off_t can represent 2**63 - 1 correctly.
9911 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9912 since some C++ compilers masquerading as C compilers
9913 incorrectly reject 9223372036854775807. */
9914 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9915 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9916 && LARGE_OFF_T % 2147483647 == 1)
9926 rm -f conftest.$ac_objext
9927 if { (eval echo "$as_me:9927: \"$ac_compile\"") >&5
9928 (eval $ac_compile) 2>&5
9930 echo "$as_me:9930: \$? = $ac_status" >&5
9931 (exit $ac_status); } &&
9932 { ac_try='test -s conftest.$ac_objext'
9933 { (eval echo "$as_me:9933: \"$ac_try\"") >&5
9936 echo "$as_me:9936: \$? = $ac_status" >&5
9937 (exit $ac_status); }; }; then
9938 ac_cv_sys_file_offset_bits=64; break
9940 echo "$as_me: failed program was:" >&5
9941 cat conftest.$ac_ext >&5
9943 rm -f conftest.$ac_objext conftest.$ac_ext
9947 echo "$as_me:9947: result: $ac_cv_sys_file_offset_bits" >&5
9948 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9949 if test "$ac_cv_sys_file_offset_bits" != no; then
9951 cat >>confdefs.h <<EOF
9952 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9957 echo "$as_me:9957: checking for _LARGE_FILES value needed for large files" >&5
9958 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
9959 if test "${ac_cv_sys_large_files+set}" = set; then
9960 echo $ECHO_N "(cached) $ECHO_C" >&6
9963 ac_cv_sys_large_files=no
9964 cat >conftest.$ac_ext <<_ACEOF
9965 #line 9965 "configure"
9966 #include "confdefs.h"
9967 #include <sys/types.h>
9968 /* Check that off_t can represent 2**63 - 1 correctly.
9969 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9970 since some C++ compilers masquerading as C compilers
9971 incorrectly reject 9223372036854775807. */
9972 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9973 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9974 && LARGE_OFF_T % 2147483647 == 1)
9984 rm -f conftest.$ac_objext
9985 if { (eval echo "$as_me:9985: \"$ac_compile\"") >&5
9986 (eval $ac_compile) 2>&5
9988 echo "$as_me:9988: \$? = $ac_status" >&5
9989 (exit $ac_status); } &&
9990 { ac_try='test -s conftest.$ac_objext'
9991 { (eval echo "$as_me:9991: \"$ac_try\"") >&5
9994 echo "$as_me:9994: \$? = $ac_status" >&5
9995 (exit $ac_status); }; }; then
9998 echo "$as_me: failed program was:" >&5
9999 cat conftest.$ac_ext >&5
10001 rm -f conftest.$ac_objext conftest.$ac_ext
10002 cat >conftest.$ac_ext <<_ACEOF
10003 #line 10003 "configure"
10004 #include "confdefs.h"
10005 #define _LARGE_FILES 1
10006 #include <sys/types.h>
10007 /* Check that off_t can represent 2**63 - 1 correctly.
10008 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10009 since some C++ compilers masquerading as C compilers
10010 incorrectly reject 9223372036854775807. */
10011 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10012 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10013 && LARGE_OFF_T % 2147483647 == 1)
10023 rm -f conftest.$ac_objext
10024 if { (eval echo "$as_me:10024: \"$ac_compile\"") >&5
10025 (eval $ac_compile) 2>&5
10027 echo "$as_me:10027: \$? = $ac_status" >&5
10028 (exit $ac_status); } &&
10029 { ac_try='test -s conftest.$ac_objext'
10030 { (eval echo "$as_me:10030: \"$ac_try\"") >&5
10031 (eval $ac_try) 2>&5
10033 echo "$as_me:10033: \$? = $ac_status" >&5
10034 (exit $ac_status); }; }; then
10035 ac_cv_sys_large_files=1; break
10037 echo "$as_me: failed program was:" >&5
10038 cat conftest.$ac_ext >&5
10040 rm -f conftest.$ac_objext conftest.$ac_ext
10044 echo "$as_me:10044: result: $ac_cv_sys_large_files" >&5
10045 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
10046 if test "$ac_cv_sys_large_files" != no; then
10048 cat >>confdefs.h <<EOF
10049 #define _LARGE_FILES $ac_cv_sys_large_files
10056 if test "$enable_largefile" != no ; then
10057 echo "$as_me:10057: checking for _LARGEFILE_SOURCE value needed for large files" >&5
10058 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
10059 if test "${ac_cv_sys_largefile_source+set}" = set; then
10060 echo $ECHO_N "(cached) $ECHO_C" >&6
10063 ac_cv_sys_largefile_source=no
10064 cat >conftest.$ac_ext <<_ACEOF
10065 #line 10065 "configure"
10066 #include "confdefs.h"
10076 rm -f conftest.$ac_objext
10077 if { (eval echo "$as_me:10077: \"$ac_compile\"") >&5
10078 (eval $ac_compile) 2>&5
10080 echo "$as_me:10080: \$? = $ac_status" >&5
10081 (exit $ac_status); } &&
10082 { ac_try='test -s conftest.$ac_objext'
10083 { (eval echo "$as_me:10083: \"$ac_try\"") >&5
10084 (eval $ac_try) 2>&5
10086 echo "$as_me:10086: \$? = $ac_status" >&5
10087 (exit $ac_status); }; }; then
10090 echo "$as_me: failed program was:" >&5
10091 cat conftest.$ac_ext >&5
10093 rm -f conftest.$ac_objext conftest.$ac_ext
10094 cat >conftest.$ac_ext <<_ACEOF
10095 #line 10095 "configure"
10096 #include "confdefs.h"
10097 #define _LARGEFILE_SOURCE 1
10107 rm -f conftest.$ac_objext
10108 if { (eval echo "$as_me:10108: \"$ac_compile\"") >&5
10109 (eval $ac_compile) 2>&5
10111 echo "$as_me:10111: \$? = $ac_status" >&5
10112 (exit $ac_status); } &&
10113 { ac_try='test -s conftest.$ac_objext'
10114 { (eval echo "$as_me:10114: \"$ac_try\"") >&5
10115 (eval $ac_try) 2>&5
10117 echo "$as_me:10117: \$? = $ac_status" >&5
10118 (exit $ac_status); }; }; then
10119 ac_cv_sys_largefile_source=1; break
10121 echo "$as_me: failed program was:" >&5
10122 cat conftest.$ac_ext >&5
10124 rm -f conftest.$ac_objext conftest.$ac_ext
10128 echo "$as_me:10128: result: $ac_cv_sys_largefile_source" >&5
10129 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
10130 if test "$ac_cv_sys_largefile_source" != no; then
10132 cat >>confdefs.h <<EOF
10133 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10139 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10140 # in glibc 2.1.3, but that breaks too many other things.
10141 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10142 echo "$as_me:10142: checking for fseeko" >&5
10143 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
10144 if test "${ac_cv_func_fseeko+set}" = set; then
10145 echo $ECHO_N "(cached) $ECHO_C" >&6
10147 cat >conftest.$ac_ext <<_ACEOF
10148 #line 10148 "configure"
10149 #include "confdefs.h"
10154 return fseeko && fseeko (stdin, 0, 0);
10159 rm -f conftest.$ac_objext conftest$ac_exeext
10160 if { (eval echo "$as_me:10160: \"$ac_link\"") >&5
10161 (eval $ac_link) 2>&5
10163 echo "$as_me:10163: \$? = $ac_status" >&5
10164 (exit $ac_status); } &&
10165 { ac_try='test -s conftest$ac_exeext'
10166 { (eval echo "$as_me:10166: \"$ac_try\"") >&5
10167 (eval $ac_try) 2>&5
10169 echo "$as_me:10169: \$? = $ac_status" >&5
10170 (exit $ac_status); }; }; then
10171 ac_cv_func_fseeko=yes
10173 echo "$as_me: failed program was:" >&5
10174 cat conftest.$ac_ext >&5
10175 ac_cv_func_fseeko=no
10177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10179 echo "$as_me:10179: result: $ac_cv_func_fseeko" >&5
10180 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
10181 if test $ac_cv_func_fseeko = yes; then
10183 cat >>confdefs.h <<\EOF
10184 #define HAVE_FSEEKO 1
10189 # Normally we would collect these definitions in the config.h,
10190 # but (like _XOPEN_SOURCE), some environments rely on having these
10191 # defined before any of the system headers are included. Another
10192 # case comes up with C++, e.g., on AIX the compiler compiles the
10193 # header files by themselves before looking at the body files it is
10194 # told to compile. For ncurses, those header files do not include
10196 test "$ac_cv_sys_large_files" != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
10197 test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE "
10198 test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits "
10200 echo "$as_me:10200: checking whether to use struct dirent64" >&5
10201 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
10202 if test "${cf_cv_struct_dirent64+set}" = set; then
10203 echo $ECHO_N "(cached) $ECHO_C" >&6
10206 cat >conftest.$ac_ext <<_ACEOF
10207 #line 10207 "configure"
10208 #include "confdefs.h"
10210 #include <sys/types.h>
10211 #include <dirent.h>
10217 /* if transitional largefile support is setup, this is true */
10218 extern struct dirent64 * readdir(DIR *);
10219 struct dirent64 *x = readdir((DIR *)0);
10220 struct dirent *y = readdir((DIR *)0);
10227 rm -f conftest.$ac_objext
10228 if { (eval echo "$as_me:10228: \"$ac_compile\"") >&5
10229 (eval $ac_compile) 2>&5
10231 echo "$as_me:10231: \$? = $ac_status" >&5
10232 (exit $ac_status); } &&
10233 { ac_try='test -s conftest.$ac_objext'
10234 { (eval echo "$as_me:10234: \"$ac_try\"") >&5
10235 (eval $ac_try) 2>&5
10237 echo "$as_me:10237: \$? = $ac_status" >&5
10238 (exit $ac_status); }; }; then
10239 cf_cv_struct_dirent64=yes
10241 echo "$as_me: failed program was:" >&5
10242 cat conftest.$ac_ext >&5
10243 cf_cv_struct_dirent64=no
10245 rm -f conftest.$ac_objext conftest.$ac_ext
10248 echo "$as_me:10248: result: $cf_cv_struct_dirent64" >&5
10249 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
10250 test "$cf_cv_struct_dirent64" = yes &&
10251 cat >>confdefs.h <<\EOF
10252 #define HAVE_STRUCT_DIRENT64 1
10257 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
10258 echo "$as_me:10258: checking if you want tparm not to use X/Open fixed-parameter list" >&5
10259 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
10261 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
10262 if test "${enable_tparm_varargs+set}" = set; then
10263 enableval="$enable_tparm_varargs"
10264 with_tparm_varargs=$enableval
10266 with_tparm_varargs=yes
10268 echo "$as_me:10268: result: $with_tparm_varargs" >&5
10269 echo "${ECHO_T}$with_tparm_varargs" >&6
10270 NCURSES_TPARM_VARARGS=0
10271 test "x$with_tparm_varargs" = xyes && NCURSES_TPARM_VARARGS=1
10273 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
10274 if test "$with_ticlib" != no ; then
10275 echo "$as_me:10275: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
10276 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
10278 # Check whether --enable-tic-depends or --disable-tic-depends was given.
10279 if test "${enable_tic_depends+set}" = set; then
10280 enableval="$enable_tic_depends"
10281 with_tic_depends=$enableval
10283 with_tic_depends=yes
10285 echo "$as_me:10285: result: $with_tic_depends" >&5
10286 echo "${ECHO_T}$with_tic_depends" >&6
10288 with_tic_depends=no
10291 ### use option --with-bool to override bool's type
10292 echo "$as_me:10292: checking for type of bool" >&5
10293 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
10295 # Check whether --with-bool or --without-bool was given.
10296 if test "${with_bool+set}" = set; then
10297 withval="$with_bool"
10298 NCURSES_BOOL="$withval"
10302 echo "$as_me:10302: result: $NCURSES_BOOL" >&5
10303 echo "${ECHO_T}$NCURSES_BOOL" >&6
10305 echo "$as_me:10305: checking for alternate terminal capabilities file" >&5
10306 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
10308 # Check whether --with-caps or --without-caps was given.
10309 if test "${with_caps+set}" = set; then
10310 withval="$with_caps"
10311 TERMINFO_CAPS=Caps.$withval
10315 test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
10316 echo "$as_me:10316: result: $TERMINFO_CAPS" >&5
10317 echo "${ECHO_T}$TERMINFO_CAPS" >&6
10319 ### use option --with-chtype to override chtype's type
10320 echo "$as_me:10320: checking for type of chtype" >&5
10321 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
10323 # Check whether --with-chtype or --without-chtype was given.
10324 if test "${with_chtype+set}" = set; then
10325 withval="$with_chtype"
10326 NCURSES_CHTYPE="$withval"
10328 NCURSES_CHTYPE=auto
10330 echo "$as_me:10330: result: $NCURSES_CHTYPE" >&5
10331 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
10333 ### use option --with-ospeed to override ospeed's type
10334 echo "$as_me:10334: checking for type of ospeed" >&5
10335 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
10337 # Check whether --with-ospeed or --without-ospeed was given.
10338 if test "${with_ospeed+set}" = set; then
10339 withval="$with_ospeed"
10340 NCURSES_OSPEED="$withval"
10342 NCURSES_OSPEED=short
10344 echo "$as_me:10344: result: $NCURSES_OSPEED" >&5
10345 echo "${ECHO_T}$NCURSES_OSPEED" >&6
10347 ### use option --with-mmask-t to override mmask_t's type
10348 echo "$as_me:10348: checking for type of mmask_t" >&5
10349 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
10351 # Check whether --with-mmask-t or --without-mmask-t was given.
10352 if test "${with_mmask_t+set}" = set; then
10353 withval="$with_mmask_t"
10354 NCURSES_MMASK_T="$withval"
10356 NCURSES_MMASK_T=auto
10358 echo "$as_me:10358: result: $NCURSES_MMASK_T" >&5
10359 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
10361 ### use option --with-ccharw-max to override CCHARW_MAX size
10362 echo "$as_me:10362: checking for size CCHARW_MAX" >&5
10363 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
10365 # Check whether --with-ccharw-max or --without-ccharw-max was given.
10366 if test "${with_ccharw_max+set}" = set; then
10367 withval="$with_ccharw_max"
10368 NCURSES_CCHARW_MAX="$withval"
10370 NCURSES_CCHARW_MAX=5
10372 echo "$as_me:10372: result: $NCURSES_CCHARW_MAX" >&5
10373 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
10375 ### use option --with-tparm-arg to override tparm's argument type
10376 echo "$as_me:10376: checking for type of tparm args" >&5
10377 echo $ECHO_N "checking for type of tparm args... $ECHO_C" >&6
10379 # Check whether --with-tparm-arg or --without-tparm-arg was given.
10380 if test "${with_tparm_arg+set}" = set; then
10381 withval="$with_tparm_arg"
10382 NCURSES_TPARM_ARG="$withval"
10384 NCURSES_TPARM_ARG=long
10386 echo "$as_me:10386: result: $NCURSES_TPARM_ARG" >&5
10387 echo "${ECHO_T}$NCURSES_TPARM_ARG" >&6
10389 ### Enable compiling-in rcs id's
10390 echo "$as_me:10390: checking if RCS identifiers should be compiled-in" >&5
10391 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
10393 # Check whether --with-rcs-ids or --without-rcs-ids was given.
10394 if test "${with_rcs_ids+set}" = set; then
10395 withval="$with_rcs_ids"
10396 with_rcs_ids=$withval
10400 echo "$as_me:10400: result: $with_rcs_ids" >&5
10401 echo "${ECHO_T}$with_rcs_ids" >&6
10402 test "x$with_rcs_ids" = xyes &&
10403 cat >>confdefs.h <<\EOF
10404 #define USE_RCS_IDS 1
10407 ###############################################################################
10409 echo "$as_me:10409: checking format of man-pages" >&5
10410 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
10412 # Check whether --with-manpage-format or --without-manpage-format was given.
10413 if test "${with_manpage_format+set}" = set; then
10414 withval="$with_manpage_format"
10415 MANPAGE_FORMAT=$withval
10417 MANPAGE_FORMAT=unknown
10420 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
10421 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
10425 case $MANPAGE_FORMAT in
10427 if test -z "$MANPATH" ; then
10428 MANPATH="/usr/man:/usr/share/man"
10431 # look for the 'date' man-page (it's most likely to be installed!)
10437 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
10438 for cf_dir in $MANPATH; do
10439 test -z "$cf_dir" && cf_dir=/usr/man
10440 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
10442 cf_test=`echo $cf_name | sed -e 's/*//'`
10443 if test "x$cf_test" = "x$cf_name" ; then
10446 *.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
10447 *.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
10448 *.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
10449 *) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
10463 # if we found a match in either man* or cat*, stop looking
10464 if test -n "$MANPAGE_FORMAT" ; then
10466 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
10467 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
10473 test $cf_found=yes && break
10476 # only check the first directory in $MANPATH where we find manpages
10477 if test -n "$MANPAGE_FORMAT" ; then
10481 # if we did not find the example, just assume it is normal
10482 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
10486 for cf_option in $MANPAGE_FORMAT; do
10487 case $cf_option in #(vi
10488 gzip|compress|BSDI|normal|formatted|catonly)
10491 cf_unknown="$cf_unknown $cf_option"
10498 echo "$as_me:10498: result: $MANPAGE_FORMAT" >&5
10499 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
10500 if test -n "$cf_unknown" ; then
10501 { echo "$as_me:10501: WARNING: Unexpected manpage-format $cf_unknown" >&5
10502 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
10505 echo "$as_me:10505: checking for manpage renaming" >&5
10506 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
10508 # Check whether --with-manpage-renames or --without-manpage-renames was given.
10509 if test "${with_manpage_renames+set}" = set; then
10510 withval="$with_manpage_renames"
10511 MANPAGE_RENAMES=$withval
10513 MANPAGE_RENAMES=yes
10516 case ".$MANPAGE_RENAMES" in #(vi
10520 # Debian 'man' program?
10521 if test -f /etc/debian_version ; then
10522 MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
10529 if test "$MANPAGE_RENAMES" != no ; then
10530 if test -f $srcdir/man/$MANPAGE_RENAMES ; then
10531 MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
10532 elif test ! -f $MANPAGE_RENAMES ; then
10533 { { echo "$as_me:10533: error: not a filename: $MANPAGE_RENAMES" >&5
10534 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
10535 { (exit 1); exit 1; }; }
10538 test ! -d man && mkdir man
10540 # Construct a sed-script to perform renaming within man-pages
10541 if test -n "$MANPAGE_RENAMES" ; then
10542 test ! -d man && mkdir man
10543 sh $srcdir/man/make_sed.sh $MANPAGE_RENAMES >./edit_man.sed
10547 echo "$as_me:10547: result: $MANPAGE_RENAMES" >&5
10548 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
10550 echo "$as_me:10550: checking if manpage aliases will be installed" >&5
10551 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
10553 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
10554 if test "${with_manpage_aliases+set}" = set; then
10555 withval="$with_manpage_aliases"
10556 MANPAGE_ALIASES=$withval
10558 MANPAGE_ALIASES=yes
10561 echo "$as_me:10561: result: $MANPAGE_ALIASES" >&5
10562 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
10564 case "x$LN_S" in #(vi
10566 cf_use_symlinks=yes
10573 MANPAGE_SYMLINKS=no
10574 if test "$MANPAGE_ALIASES" = yes ; then
10575 echo "$as_me:10575: checking if manpage symlinks should be used" >&5
10576 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
10578 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
10579 if test "${with_manpage_symlinks+set}" = set; then
10580 withval="$with_manpage_symlinks"
10581 MANPAGE_SYMLINKS=$withval
10583 MANPAGE_SYMLINKS=$cf_use_symlinks
10586 if test "$$cf_use_symlinks" = no; then
10587 if test "$MANPAGE_SYMLINKS" = yes ; then
10588 { echo "$as_me:10588: WARNING: cannot make symlinks" >&5
10589 echo "$as_me: WARNING: cannot make symlinks" >&2;}
10590 MANPAGE_SYMLINKS=no
10594 echo "$as_me:10594: result: $MANPAGE_SYMLINKS" >&5
10595 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
10598 echo "$as_me:10598: checking for manpage tbl" >&5
10599 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
10601 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
10602 if test "${with_manpage_tbl+set}" = set; then
10603 withval="$with_manpage_tbl"
10604 MANPAGE_TBL=$withval
10609 echo "$as_me:10609: result: $MANPAGE_TBL" >&5
10610 echo "${ECHO_T}$MANPAGE_TBL" >&6
10612 if test "$prefix" = "NONE" ; then
10613 cf_prefix="$ac_default_prefix"
10615 cf_prefix="$prefix"
10618 case "$MANPAGE_FORMAT" in # (vi
10633 test ! -d man && mkdir man
10637 case "$MANPAGE_FORMAT" in #(vi
10640 cf_compress=compress
10648 cf_edit_man=./edit_man.sh
10649 cf_man_alias=`pwd`/man_alias.sed
10651 cat >$cf_edit_man <<CF_EOF
10653 # this script is generated by the configure-script CF_MAN_PAGES macro.
10655 prefix="$cf_prefix"
10656 datarootdir="$datarootdir"
10659 NCURSES_MAJOR="$NCURSES_MAJOR"
10660 NCURSES_MINOR="$NCURSES_MINOR"
10661 NCURSES_PATCH="$NCURSES_PATCH"
10663 NCURSES_OSPEED="$NCURSES_OSPEED"
10664 TERMINFO="$TERMINFO"
10667 INSTALL_DATA="$INSTALL_DATA"
10669 transform="$program_transform_name"
10671 TMP=\${TMPDIR:=/tmp}/man\$\$
10672 trap "rm -f \$TMP" 0 1 2 5 15
10684 top_srcdir=\$srcdir/..
10687 if test "\$form" = normal ; then
10688 if test "$cf_format" = yes ; then
10689 if test "$cf_inboth" = no ; then
10690 sh \$0 format \$verb \$mandir \$srcdir \$*
10694 cf_subdir=\$mandir/man
10695 cf_tables=$MANPAGE_TBL
10697 cf_subdir=\$mandir/cat
10701 # process the list of source-files
10704 *.orig|*.rej) ;; #(vi
10706 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
10707 if test \$verb = installing ; then
10708 if test ! -d \$cf_subdir\${section} ; then
10709 mkdir -p \$cf_subdir\$section
10713 # replace variables in man page
10714 if test ! -f $cf_man_alias ; then
10715 cat >>$cf_man_alias <<-CF_EOF2
10716 s,@DATADIR@,\$datadir,g
10717 s,@TERMINFO@,\${TERMINFO:="no default value"},g
10718 s,@TERMINFO_DIRS@,\${TERMINFO_DIRS:="no default value"},g
10719 s,@NCURSES_MAJOR@,\${NCURSES_MAJOR:="no default value"},g
10720 s,@NCURSES_MINOR@,\${NCURSES_MINOR:="no default value"},g
10721 s,@NCURSES_PATCH@,\${NCURSES_PATCH:="no default value"},g
10722 s,@NCURSES_OSPEED@,\${NCURSES_OSPEED:="no default value"},g
10725 for cf_name in captoinfo clear infocmp infotocap tabs tic toe tput tset
10727 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
10728 cf_name=`echo $cf_name|sed "$program_transform_name"`
10729 cat >>$cf_edit_man <<-CF_EOF
10730 s,@$cf_NAME@,$cf_name,g
10734 cat >>$cf_edit_man <<CF_EOF
10736 echo "...made $cf_man_alias"
10740 cf_source=\`basename \$i\`
10741 inalias=\$cf_source
10742 test ! -f \$inalias && inalias="\$srcdir/\$inalias"
10743 if test ! -f \$inalias ; then
10744 echo .. skipped \$cf_source
10749 if test "$MANPAGE_ALIASES" != no ; then
10750 cat >>$cf_edit_man <<CF_EOF
10752 test $with_curses_h = yes && nCurses=ncurses.3x
10753 aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u; test \$inalias = \$nCurses && echo curses\`
10757 if test "$MANPAGE_RENAMES" = no ; then
10758 cat >>$cf_edit_man <<CF_EOF
10759 # perform program transformations for section 1 man pages
10760 if test \$section = 1 ; then
10761 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
10763 cf_target=\$cf_subdir\${section}/\$cf_source
10767 cat >>$cf_edit_man <<CF_EOF
10768 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
10769 if test -z "\$cf_target" ; then
10770 echo '? missing rename for '\$cf_source
10771 cf_target="\$cf_source"
10773 cf_target="\$cf_subdir\${section}/\${cf_target}"
10778 cat >>$cf_edit_man <<CF_EOF
10779 sed -f $cf_man_alias \\
10782 if test -f $MANPAGE_RENAMES ; then
10783 cat >>$cf_edit_man <<CF_EOF
10784 < \$i | sed -f `pwd`/edit_man.sed >\$TMP
10787 cat >>$cf_edit_man <<CF_EOF
10792 cat >>$cf_edit_man <<CF_EOF
10793 if test \$cf_tables = yes ; then
10794 tbl \$TMP >\$TMP.out
10799 if test $with_overwrite != yes ; then
10800 cat >>$cf_edit_man <<CF_EOF
10801 sed -e "/\#[ ]*include/s,<curses.h,<ncurses$LIB_SUFFIX/curses.h," < \$TMP >\$TMP.out
10806 if test $with_curses_h != yes ; then
10807 cat >>$cf_edit_man <<CF_EOF
10808 sed -e "/\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
10813 cat >>$cf_edit_man <<CF_EOF
10814 if test \$form = format ; then
10815 nroff -man \$TMP >\$TMP.out
10820 if test -n "$cf_compress" ; then
10821 cat >>$cf_edit_man <<CF_EOF
10822 if test \$verb = installing ; then
10823 if ( $cf_compress -f \$TMP )
10825 mv \$TMP.$cf_so_strip \$TMP
10828 cf_target="\$cf_target.$cf_so_strip"
10832 case "$MANPAGE_FORMAT" in #(vi
10834 cat >>$cf_edit_man <<CF_EOF
10835 if test \$form = format ; then
10836 # BSDI installs only .0 suffixes in the cat directories
10837 cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
10843 cat >>$cf_edit_man <<CF_EOF
10844 suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\`
10845 if test \$verb = installing ; then
10846 echo \$verb \$cf_target
10847 \$INSTALL_DATA \$TMP \$cf_target
10848 test -d \$cf_subdir\${section} &&
10849 test -n "\$aliases" && (
10850 cd \$cf_subdir\${section} && (
10851 cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
10852 test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
10853 cf_target=\`basename \$cf_target\`
10854 for cf_alias in \$aliases
10856 if test \$section = 1 ; then
10857 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
10860 if test "$MANPAGE_SYMLINKS" = yes ; then
10861 if test -f \$cf_alias\${suffix} ; then
10862 if ( cmp -s \$cf_target \$cf_alias\${suffix} )
10867 echo .. \$verb alias \$cf_alias\${suffix}
10869 case "x$LN_S" in #(vi
10871 cat >>$cf_edit_man <<CF_EOF
10872 $LN_S \$cf_target \$cf_alias\${suffix}
10876 cat >>$cf_edit_man <<CF_EOF
10877 rm -f \$cf_alias\${suffix}
10878 $LN_S \$cf_target \$cf_alias\${suffix}
10882 cat >>$cf_edit_man <<CF_EOF
10883 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
10884 echo ".so \$cf_source" >\$TMP
10886 if test -n "$cf_compress" ; then
10887 cat >>$cf_edit_man <<CF_EOF
10888 if test -n "$cf_so_strip" ; then
10889 $cf_compress -f \$TMP
10890 mv \$TMP.$cf_so_strip \$TMP
10894 cat >>$cf_edit_man <<CF_EOF
10895 echo .. \$verb alias \$cf_alias\${suffix}
10896 rm -f \$cf_alias\${suffix}
10897 \$INSTALL_DATA \$TMP \$cf_alias\${suffix}
10902 elif test \$verb = removing ; then
10903 test -f \$cf_target && (
10904 echo \$verb \$cf_target
10907 test -d \$cf_subdir\${section} &&
10908 test -n "\$aliases" && (
10909 cd \$cf_subdir\${section} && (
10910 for cf_alias in \$aliases
10912 if test \$section = 1 ; then
10913 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
10916 echo .. \$verb alias \$cf_alias\${suffix}
10917 rm -f \$cf_alias\${suffix}
10929 if test $cf_inboth = yes ; then
10930 if test \$form != format ; then
10931 sh \$0 format \$verb \$mandir \$srcdir \$*
10937 chmod 755 $cf_edit_man
10939 ###############################################################################
10941 ### Note that some functions (such as const) are normally disabled anyway.
10942 echo "$as_me:10942: checking if you want to build with function extensions" >&5
10943 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
10945 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
10946 if test "${enable_ext_funcs+set}" = set; then
10947 enableval="$enable_ext_funcs"
10948 with_ext_funcs=$enableval
10952 echo "$as_me:10952: result: $with_ext_funcs" >&5
10953 echo "${ECHO_T}$with_ext_funcs" >&6
10954 if test "x$with_ext_funcs" = xyes ; then
10955 NCURSES_EXT_FUNCS=1
10957 cat >>confdefs.h <<\EOF
10958 #define HAVE_ASSUME_DEFAULT_COLORS 1
10961 cat >>confdefs.h <<\EOF
10962 #define HAVE_CURSES_VERSION 1
10965 cat >>confdefs.h <<\EOF
10966 #define HAVE_HAS_KEY 1
10969 cat >>confdefs.h <<\EOF
10970 #define HAVE_RESIZETERM 1
10973 cat >>confdefs.h <<\EOF
10974 #define HAVE_RESIZE_TERM 1
10977 cat >>confdefs.h <<\EOF
10978 #define HAVE_TERM_ENTRY_H 1
10981 cat >>confdefs.h <<\EOF
10982 #define HAVE_USE_DEFAULT_COLORS 1
10985 cat >>confdefs.h <<\EOF
10986 #define HAVE_USE_SCREEN 1
10989 cat >>confdefs.h <<\EOF
10990 #define HAVE_USE_WINDOW 1
10993 cat >>confdefs.h <<\EOF
10994 #define HAVE_WRESIZE 1
10997 cat >>confdefs.h <<\EOF
10998 #define NCURSES_EXT_FUNCS 1
11001 GENERATED_EXT_FUNCS=generated
11003 NCURSES_EXT_FUNCS=0
11004 GENERATED_EXT_FUNCS=
11007 echo "$as_me:11007: checking if you want to build with experimental SCREEN extensions" >&5
11008 echo $ECHO_N "checking if you want to build with experimental SCREEN extensions... $ECHO_C" >&6
11010 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
11011 if test "${enable_sp_funcs+set}" = set; then
11012 enableval="$enable_sp_funcs"
11013 with_sp_funcs=$enableval
11017 echo "$as_me:11017: result: $with_sp_funcs" >&5
11018 echo "${ECHO_T}$with_sp_funcs" >&6
11019 if test "x$with_sp_funcs" = xyes ; then
11022 cat >>confdefs.h <<\EOF
11023 #define NCURSES_SP_FUNCS 1
11026 GENERATED_SP_FUNCS=generated
11029 GENERATED_SP_FUNCS=
11032 echo "$as_me:11032: checking if you want to build with experimental terminal-driver" >&5
11033 echo $ECHO_N "checking if you want to build with experimental terminal-driver... $ECHO_C" >&6
11035 # Check whether --enable-term-driver or --disable-term-driver was given.
11036 if test "${enable_term_driver+set}" = set; then
11037 enableval="$enable_term_driver"
11038 with_term_driver=$enableval
11040 with_term_driver=no
11042 echo "$as_me:11042: result: $with_term_driver" >&5
11043 echo "${ECHO_T}$with_term_driver" >&6
11044 if test "x$with_term_driver" = xyes ; then
11046 cat >>confdefs.h <<\EOF
11047 #define USE_TERM_DRIVER 1
11050 if test "x$with_sp_funcs" != xyes ; then
11051 { { echo "$as_me:11051: error: The term-driver option relies upon sp-funcs" >&5
11052 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
11053 { (exit 1); exit 1; }; }
11057 ### use option --enable-const to turn on use of const beyond that in XSI.
11058 echo "$as_me:11058: checking for extended use of const keyword" >&5
11059 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
11061 # Check whether --enable-const or --disable-const was given.
11062 if test "${enable_const+set}" = set; then
11063 enableval="$enable_const"
11064 with_ext_const=$enableval
11068 echo "$as_me:11068: result: $with_ext_const" >&5
11069 echo "${ECHO_T}$with_ext_const" >&6
11070 NCURSES_CONST='/*nothing*/'
11071 if test "x$with_ext_const" = xyes ; then
11072 NCURSES_CONST=const
11075 ### use option --enable-ext-colors to turn on use of colors beyond 16.
11076 echo "$as_me:11076: checking if you want to use extended colors" >&5
11077 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
11079 # Check whether --enable-ext-colors or --disable-ext-colors was given.
11080 if test "${enable_ext_colors+set}" = set; then
11081 enableval="$enable_ext_colors"
11082 with_ext_colors=$enableval
11086 echo "$as_me:11086: result: $with_ext_colors" >&5
11087 echo "${ECHO_T}$with_ext_colors" >&6
11088 NCURSES_EXT_COLORS=0
11089 if test "x$with_ext_colors" = xyes ; then
11090 if test "x$with_widec" != xyes ; then
11091 { { echo "$as_me:11091: error: This option applies only to wide-character library" >&5
11092 echo "$as_me: error: This option applies only to wide-character library" >&2;}
11093 { (exit 1); exit 1; }; }
11095 # cannot be ABI 5 since it changes sizeof(cchar_t)
11097 if test "${with_abi_version+set}" != set; then
11098 case $cf_cv_rel_version in
11100 cf_cv_rel_version=6.0
11101 cf_cv_abi_version=6
11102 { echo "$as_me:11102: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
11103 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
11109 NCURSES_EXT_COLORS=1
11111 cat >>confdefs.h <<\EOF
11112 #define NCURSES_EXT_COLORS 1
11117 ### use option --enable-ext-mouse to modify coding to support 5-button mice
11118 echo "$as_me:11118: checking if you want to use extended mouse encoding" >&5
11119 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
11121 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
11122 if test "${enable_ext_mouse+set}" = set; then
11123 enableval="$enable_ext_mouse"
11124 with_ext_mouse=$enableval
11128 echo "$as_me:11128: result: $with_ext_mouse" >&5
11129 echo "${ECHO_T}$with_ext_mouse" >&6
11130 NCURSES_MOUSE_VERSION=1
11131 if test "x$with_ext_mouse" = xyes ; then
11132 NCURSES_MOUSE_VERSION=2
11134 if test "${with_abi_version+set}" != set; then
11135 case $cf_cv_rel_version in
11137 cf_cv_rel_version=6.0
11138 cf_cv_abi_version=6
11139 { echo "$as_me:11139: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
11140 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
11147 echo "$as_me:11147: checking if you want \$NCURSES_NO_PADDING code" >&5
11148 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
11150 # Check whether --enable-no-padding or --disable-no-padding was given.
11151 if test "${enable_no_padding+set}" = set; then
11152 enableval="$enable_no_padding"
11153 with_no_padding=$enableval
11155 with_no_padding=$with_ext_funcs
11157 echo "$as_me:11157: result: $with_no_padding" >&5
11158 echo "${ECHO_T}$with_no_padding" >&6
11159 test "x$with_no_padding" = xyes &&
11160 cat >>confdefs.h <<\EOF
11161 #define NCURSES_NO_PADDING 1
11164 echo "$as_me:11164: checking for ANSI C header files" >&5
11165 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11166 if test "${ac_cv_header_stdc+set}" = set; then
11167 echo $ECHO_N "(cached) $ECHO_C" >&6
11169 cat >conftest.$ac_ext <<_ACEOF
11170 #line 11170 "configure"
11171 #include "confdefs.h"
11172 #include <stdlib.h>
11173 #include <stdarg.h>
11174 #include <string.h>
11178 if { (eval echo "$as_me:11178: \"$ac_cpp conftest.$ac_ext\"") >&5
11179 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11181 egrep -v '^ *\+' conftest.er1 >conftest.err
11183 cat conftest.err >&5
11184 echo "$as_me:11184: \$? = $ac_status" >&5
11185 (exit $ac_status); } >/dev/null; then
11186 if test -s conftest.err; then
11187 ac_cpp_err=$ac_c_preproc_warn_flag
11194 if test -z "$ac_cpp_err"; then
11195 ac_cv_header_stdc=yes
11197 echo "$as_me: failed program was:" >&5
11198 cat conftest.$ac_ext >&5
11199 ac_cv_header_stdc=no
11201 rm -f conftest.err conftest.$ac_ext
11203 if test $ac_cv_header_stdc = yes; then
11204 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11205 cat >conftest.$ac_ext <<_ACEOF
11206 #line 11206 "configure"
11207 #include "confdefs.h"
11208 #include <string.h>
11211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11212 egrep "memchr" >/dev/null 2>&1; then
11215 ac_cv_header_stdc=no
11221 if test $ac_cv_header_stdc = yes; then
11222 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11223 cat >conftest.$ac_ext <<_ACEOF
11224 #line 11224 "configure"
11225 #include "confdefs.h"
11226 #include <stdlib.h>
11229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11230 egrep "free" >/dev/null 2>&1; then
11233 ac_cv_header_stdc=no
11239 if test $ac_cv_header_stdc = yes; then
11240 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11241 if test "$cross_compiling" = yes; then
11244 cat >conftest.$ac_ext <<_ACEOF
11245 #line 11245 "configure"
11246 #include "confdefs.h"
11248 #if ((' ' & 0x0FF) == 0x020)
11249 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11250 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11252 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
11253 || ('j' <= (c) && (c) <= 'r') \
11254 || ('s' <= (c) && (c) <= 'z'))
11255 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11258 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11263 for (i = 0; i < 256; i++)
11264 if (XOR (islower (i), ISLOWER (i))
11265 || toupper (i) != TOUPPER (i))
11266 $ac_main_return(2);
11267 $ac_main_return (0);
11270 rm -f conftest$ac_exeext
11271 if { (eval echo "$as_me:11271: \"$ac_link\"") >&5
11272 (eval $ac_link) 2>&5
11274 echo "$as_me:11274: \$? = $ac_status" >&5
11275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11276 { (eval echo "$as_me:11276: \"$ac_try\"") >&5
11277 (eval $ac_try) 2>&5
11279 echo "$as_me:11279: \$? = $ac_status" >&5
11280 (exit $ac_status); }; }; then
11283 echo "$as_me: program exited with status $ac_status" >&5
11284 echo "$as_me: failed program was:" >&5
11285 cat conftest.$ac_ext >&5
11286 ac_cv_header_stdc=no
11288 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11292 echo "$as_me:11292: result: $ac_cv_header_stdc" >&5
11293 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11294 if test $ac_cv_header_stdc = yes; then
11296 cat >>confdefs.h <<\EOF
11297 #define STDC_HEADERS 1
11302 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
11304 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
11305 inttypes.h stdint.h unistd.h
11307 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11308 echo "$as_me:11308: checking for $ac_header" >&5
11309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11311 echo $ECHO_N "(cached) $ECHO_C" >&6
11313 cat >conftest.$ac_ext <<_ACEOF
11314 #line 11314 "configure"
11315 #include "confdefs.h"
11316 $ac_includes_default
11317 #include <$ac_header>
11319 rm -f conftest.$ac_objext
11320 if { (eval echo "$as_me:11320: \"$ac_compile\"") >&5
11321 (eval $ac_compile) 2>&5
11323 echo "$as_me:11323: \$? = $ac_status" >&5
11324 (exit $ac_status); } &&
11325 { ac_try='test -s conftest.$ac_objext'
11326 { (eval echo "$as_me:11326: \"$ac_try\"") >&5
11327 (eval $ac_try) 2>&5
11329 echo "$as_me:11329: \$? = $ac_status" >&5
11330 (exit $ac_status); }; }; then
11331 eval "$as_ac_Header=yes"
11333 echo "$as_me: failed program was:" >&5
11334 cat conftest.$ac_ext >&5
11335 eval "$as_ac_Header=no"
11337 rm -f conftest.$ac_objext conftest.$ac_ext
11339 echo "$as_me:11339: result: `eval echo '${'$as_ac_Header'}'`" >&5
11340 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11342 cat >>confdefs.h <<EOF
11343 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11349 echo "$as_me:11349: checking for signed char" >&5
11350 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
11351 if test "${ac_cv_type_signed_char+set}" = set; then
11352 echo $ECHO_N "(cached) $ECHO_C" >&6
11354 cat >conftest.$ac_ext <<_ACEOF
11355 #line 11355 "configure"
11356 #include "confdefs.h"
11357 $ac_includes_default
11361 if ((signed char *) 0)
11363 if (sizeof (signed char))
11369 rm -f conftest.$ac_objext
11370 if { (eval echo "$as_me:11370: \"$ac_compile\"") >&5
11371 (eval $ac_compile) 2>&5
11373 echo "$as_me:11373: \$? = $ac_status" >&5
11374 (exit $ac_status); } &&
11375 { ac_try='test -s conftest.$ac_objext'
11376 { (eval echo "$as_me:11376: \"$ac_try\"") >&5
11377 (eval $ac_try) 2>&5
11379 echo "$as_me:11379: \$? = $ac_status" >&5
11380 (exit $ac_status); }; }; then
11381 ac_cv_type_signed_char=yes
11383 echo "$as_me: failed program was:" >&5
11384 cat conftest.$ac_ext >&5
11385 ac_cv_type_signed_char=no
11387 rm -f conftest.$ac_objext conftest.$ac_ext
11389 echo "$as_me:11389: result: $ac_cv_type_signed_char" >&5
11390 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
11392 echo "$as_me:11392: checking size of signed char" >&5
11393 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
11394 if test "${ac_cv_sizeof_signed_char+set}" = set; then
11395 echo $ECHO_N "(cached) $ECHO_C" >&6
11397 if test "$ac_cv_type_signed_char" = yes; then
11398 if test "$cross_compiling" = yes; then
11399 # Depending upon the size, compute the lo and hi bounds.
11400 cat >conftest.$ac_ext <<_ACEOF
11401 #line 11401 "configure"
11402 #include "confdefs.h"
11403 $ac_includes_default
11407 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
11412 rm -f conftest.$ac_objext
11413 if { (eval echo "$as_me:11413: \"$ac_compile\"") >&5
11414 (eval $ac_compile) 2>&5
11416 echo "$as_me:11416: \$? = $ac_status" >&5
11417 (exit $ac_status); } &&
11418 { ac_try='test -s conftest.$ac_objext'
11419 { (eval echo "$as_me:11419: \"$ac_try\"") >&5
11420 (eval $ac_try) 2>&5
11422 echo "$as_me:11422: \$? = $ac_status" >&5
11423 (exit $ac_status); }; }; then
11426 cat >conftest.$ac_ext <<_ACEOF
11427 #line 11427 "configure"
11428 #include "confdefs.h"
11429 $ac_includes_default
11433 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
11438 rm -f conftest.$ac_objext
11439 if { (eval echo "$as_me:11439: \"$ac_compile\"") >&5
11440 (eval $ac_compile) 2>&5
11442 echo "$as_me:11442: \$? = $ac_status" >&5
11443 (exit $ac_status); } &&
11444 { ac_try='test -s conftest.$ac_objext'
11445 { (eval echo "$as_me:11445: \"$ac_try\"") >&5
11446 (eval $ac_try) 2>&5
11448 echo "$as_me:11448: \$? = $ac_status" >&5
11449 (exit $ac_status); }; }; then
11450 ac_hi=$ac_mid; break
11452 echo "$as_me: failed program was:" >&5
11453 cat conftest.$ac_ext >&5
11454 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
11456 rm -f conftest.$ac_objext conftest.$ac_ext
11459 echo "$as_me: failed program was:" >&5
11460 cat conftest.$ac_ext >&5
11463 cat >conftest.$ac_ext <<_ACEOF
11464 #line 11464 "configure"
11465 #include "confdefs.h"
11466 $ac_includes_default
11470 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
11475 rm -f conftest.$ac_objext
11476 if { (eval echo "$as_me:11476: \"$ac_compile\"") >&5
11477 (eval $ac_compile) 2>&5
11479 echo "$as_me:11479: \$? = $ac_status" >&5
11480 (exit $ac_status); } &&
11481 { ac_try='test -s conftest.$ac_objext'
11482 { (eval echo "$as_me:11482: \"$ac_try\"") >&5
11483 (eval $ac_try) 2>&5
11485 echo "$as_me:11485: \$? = $ac_status" >&5
11486 (exit $ac_status); }; }; then
11487 ac_lo=$ac_mid; break
11489 echo "$as_me: failed program was:" >&5
11490 cat conftest.$ac_ext >&5
11491 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
11493 rm -f conftest.$ac_objext conftest.$ac_ext
11496 rm -f conftest.$ac_objext conftest.$ac_ext
11497 # Binary search between lo and hi bounds.
11498 while test "x$ac_lo" != "x$ac_hi"; do
11499 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11500 cat >conftest.$ac_ext <<_ACEOF
11501 #line 11501 "configure"
11502 #include "confdefs.h"
11503 $ac_includes_default
11507 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
11512 rm -f conftest.$ac_objext
11513 if { (eval echo "$as_me:11513: \"$ac_compile\"") >&5
11514 (eval $ac_compile) 2>&5
11516 echo "$as_me:11516: \$? = $ac_status" >&5
11517 (exit $ac_status); } &&
11518 { ac_try='test -s conftest.$ac_objext'
11519 { (eval echo "$as_me:11519: \"$ac_try\"") >&5
11520 (eval $ac_try) 2>&5
11522 echo "$as_me:11522: \$? = $ac_status" >&5
11523 (exit $ac_status); }; }; then
11526 echo "$as_me: failed program was:" >&5
11527 cat conftest.$ac_ext >&5
11528 ac_lo=`expr $ac_mid + 1`
11530 rm -f conftest.$ac_objext conftest.$ac_ext
11532 ac_cv_sizeof_signed_char=$ac_lo
11534 if test "$cross_compiling" = yes; then
11535 { { echo "$as_me:11535: error: cannot run test program while cross compiling" >&5
11536 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11537 { (exit 1); exit 1; }; }
11539 cat >conftest.$ac_ext <<_ACEOF
11540 #line 11540 "configure"
11541 #include "confdefs.h"
11542 $ac_includes_default
11546 FILE *f = fopen ("conftest.val", "w");
11548 $ac_main_return (1);
11549 fprintf (f, "%d", (sizeof (signed char)));
11555 rm -f conftest$ac_exeext
11556 if { (eval echo "$as_me:11556: \"$ac_link\"") >&5
11557 (eval $ac_link) 2>&5
11559 echo "$as_me:11559: \$? = $ac_status" >&5
11560 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11561 { (eval echo "$as_me:11561: \"$ac_try\"") >&5
11562 (eval $ac_try) 2>&5
11564 echo "$as_me:11564: \$? = $ac_status" >&5
11565 (exit $ac_status); }; }; then
11566 ac_cv_sizeof_signed_char=`cat conftest.val`
11568 echo "$as_me: program exited with status $ac_status" >&5
11569 echo "$as_me: failed program was:" >&5
11570 cat conftest.$ac_ext >&5
11572 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11577 ac_cv_sizeof_signed_char=0
11580 echo "$as_me:11580: result: $ac_cv_sizeof_signed_char" >&5
11581 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
11582 cat >>confdefs.h <<EOF
11583 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
11586 if test "$ac_cv_sizeof_signed_char" = 1 ; then
11587 NCURSES_SBOOL="signed char"
11589 NCURSES_SBOOL="char"
11591 echo "$as_me:11591: checking if you want to use signed Boolean array in term.h" >&5
11592 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
11594 # Check whether --enable-signed-char or --disable-signed-char was given.
11595 if test "${enable_signed_char+set}" = set; then
11596 enableval="$enable_signed_char"
11597 with_signed_char=$enableval
11599 with_signed_char=no
11601 echo "$as_me:11601: result: $with_signed_char" >&5
11602 echo "${ECHO_T}$with_signed_char" >&6
11603 test "x$with_signed_char" != xyes && NCURSES_SBOOL="char"
11605 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
11606 echo "$as_me:11606: checking if you want SIGWINCH handler" >&5
11607 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
11609 # Check whether --enable-sigwinch or --disable-sigwinch was given.
11610 if test "${enable_sigwinch+set}" = set; then
11611 enableval="$enable_sigwinch"
11612 with_sigwinch=$enableval
11614 with_sigwinch=$with_ext_funcs
11616 echo "$as_me:11616: result: $with_sigwinch" >&5
11617 echo "${ECHO_T}$with_sigwinch" >&6
11618 test "x$with_sigwinch" = xyes &&
11619 cat >>confdefs.h <<\EOF
11620 #define USE_SIGWINCH 1
11623 ### use option --enable-tcap-names to allow user to define new capabilities
11624 echo "$as_me:11624: checking if you want user-definable terminal capabilities like termcap" >&5
11625 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
11627 # Check whether --enable-tcap-names or --disable-tcap-names was given.
11628 if test "${enable_tcap_names+set}" = set; then
11629 enableval="$enable_tcap_names"
11630 with_tcap_names=$enableval
11632 with_tcap_names=$with_ext_funcs
11634 echo "$as_me:11634: result: $with_tcap_names" >&5
11635 echo "${ECHO_T}$with_tcap_names" >&6
11637 test "x$with_tcap_names" = xyes && NCURSES_XNAMES=1
11639 ###############################################################################
11640 # These options are relatively safe to experiment with.
11642 echo "$as_me:11642: checking if you want all development code" >&5
11643 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
11645 # Check whether --with-develop or --without-develop was given.
11646 if test "${with_develop+set}" = set; then
11647 withval="$with_develop"
11648 with_develop=$withval
11652 echo "$as_me:11652: result: $with_develop" >&5
11653 echo "${ECHO_T}$with_develop" >&6
11655 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
11656 echo "$as_me:11656: checking if you want hard-tabs code" >&5
11657 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
11659 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
11660 if test "${enable_hard_tabs+set}" = set; then
11661 enableval="$enable_hard_tabs"
11664 enable_hard_tabs=$with_develop
11666 echo "$as_me:11666: result: $enable_hard_tabs" >&5
11667 echo "${ECHO_T}$enable_hard_tabs" >&6
11668 test "x$enable_hard_tabs" = xyes &&
11669 cat >>confdefs.h <<\EOF
11670 #define USE_HARD_TABS 1
11673 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
11674 echo "$as_me:11674: checking if you want limited support for xmc" >&5
11675 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
11677 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
11678 if test "${enable_xmc_glitch+set}" = set; then
11679 enableval="$enable_xmc_glitch"
11682 enable_xmc_glitch=$with_develop
11684 echo "$as_me:11684: result: $enable_xmc_glitch" >&5
11685 echo "${ECHO_T}$enable_xmc_glitch" >&6
11686 test "x$enable_xmc_glitch" = xyes &&
11687 cat >>confdefs.h <<\EOF
11688 #define USE_XMC_SUPPORT 1
11691 ###############################################################################
11692 # These are just experimental, probably should not be in a package:
11694 echo "$as_me:11694: checking if you do not want to assume colors are white-on-black" >&5
11695 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
11697 # Check whether --enable-assumed-color or --disable-assumed-color was given.
11698 if test "${enable_assumed_color+set}" = set; then
11699 enableval="$enable_assumed_color"
11700 with_assumed_color=$enableval
11702 with_assumed_color=yes
11704 echo "$as_me:11704: result: $with_assumed_color" >&5
11705 echo "${ECHO_T}$with_assumed_color" >&6
11706 test "x$with_assumed_color" = xyes &&
11707 cat >>confdefs.h <<\EOF
11708 #define USE_ASSUMED_COLOR 1
11711 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
11712 echo "$as_me:11712: checking if you want hashmap scrolling-optimization code" >&5
11713 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
11715 # Check whether --enable-hashmap or --disable-hashmap was given.
11716 if test "${enable_hashmap+set}" = set; then
11717 enableval="$enable_hashmap"
11718 with_hashmap=$enableval
11722 echo "$as_me:11722: result: $with_hashmap" >&5
11723 echo "${ECHO_T}$with_hashmap" >&6
11724 test "x$with_hashmap" = xyes &&
11725 cat >>confdefs.h <<\EOF
11726 #define USE_HASHMAP 1
11729 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
11730 echo "$as_me:11730: checking if you want colorfgbg code" >&5
11731 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
11733 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
11734 if test "${enable_colorfgbg+set}" = set; then
11735 enableval="$enable_colorfgbg"
11736 with_colorfgbg=$enableval
11740 echo "$as_me:11740: result: $with_colorfgbg" >&5
11741 echo "${ECHO_T}$with_colorfgbg" >&6
11742 test "x$with_colorfgbg" = xyes &&
11743 cat >>confdefs.h <<\EOF
11744 #define USE_COLORFGBG 1
11747 ### use option --enable-interop to turn on use of bindings used for interop
11748 echo "$as_me:11748: checking if you want interop bindings" >&5
11749 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
11751 # Check whether --enable-interop or --disable-interop was given.
11752 if test "${enable_interop+set}" = set; then
11753 enableval="$enable_interop"
11754 with_exp_interop=$enableval
11756 with_exp_interop=no
11758 echo "$as_me:11758: result: $with_exp_interop" >&5
11759 echo "${ECHO_T}$with_exp_interop" >&6
11761 NCURSES_INTEROP_FUNCS=0
11762 test "x$with_exp_interop" = xyes && NCURSES_INTEROP_FUNCS=1
11764 # This is still experimental (20080329), but should ultimately be moved to
11765 # the script-block --with-normal, etc.
11767 echo "$as_me:11767: checking if you want to link with the pthread library" >&5
11768 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
11770 # Check whether --with-pthread or --without-pthread was given.
11771 if test "${with_pthread+set}" = set; then
11772 withval="$with_pthread"
11773 with_pthread=$withval
11777 echo "$as_me:11777: result: $with_pthread" >&5
11778 echo "${ECHO_T}$with_pthread" >&6
11780 if test "$with_pthread" != no ; then
11781 echo "$as_me:11781: checking for pthread.h" >&5
11782 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
11783 if test "${ac_cv_header_pthread_h+set}" = set; then
11784 echo $ECHO_N "(cached) $ECHO_C" >&6
11786 cat >conftest.$ac_ext <<_ACEOF
11787 #line 11787 "configure"
11788 #include "confdefs.h"
11789 #include <pthread.h>
11791 if { (eval echo "$as_me:11791: \"$ac_cpp conftest.$ac_ext\"") >&5
11792 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11794 egrep -v '^ *\+' conftest.er1 >conftest.err
11796 cat conftest.err >&5
11797 echo "$as_me:11797: \$? = $ac_status" >&5
11798 (exit $ac_status); } >/dev/null; then
11799 if test -s conftest.err; then
11800 ac_cpp_err=$ac_c_preproc_warn_flag
11807 if test -z "$ac_cpp_err"; then
11808 ac_cv_header_pthread_h=yes
11810 echo "$as_me: failed program was:" >&5
11811 cat conftest.$ac_ext >&5
11812 ac_cv_header_pthread_h=no
11814 rm -f conftest.err conftest.$ac_ext
11816 echo "$as_me:11816: result: $ac_cv_header_pthread_h" >&5
11817 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
11818 if test $ac_cv_header_pthread_h = yes; then
11820 cat >>confdefs.h <<\EOF
11821 #define HAVE_PTHREADS_H 1
11824 for cf_lib_pthread in pthread c_r
11826 echo "$as_me:11826: checking if we can link with the $cf_lib_pthread library" >&5
11827 echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
11828 cf_save_LIBS="$LIBS"
11829 LIBS="-l$cf_lib_pthread $LIBS"
11830 cat >conftest.$ac_ext <<_ACEOF
11831 #line 11831 "configure"
11832 #include "confdefs.h"
11834 #include <pthread.h>
11840 int rc = pthread_create(0,0,0,0);
11841 int r2 = pthread_mutexattr_settype(0, 0);
11847 rm -f conftest.$ac_objext conftest$ac_exeext
11848 if { (eval echo "$as_me:11848: \"$ac_link\"") >&5
11849 (eval $ac_link) 2>&5
11851 echo "$as_me:11851: \$? = $ac_status" >&5
11852 (exit $ac_status); } &&
11853 { ac_try='test -s conftest$ac_exeext'
11854 { (eval echo "$as_me:11854: \"$ac_try\"") >&5
11855 (eval $ac_try) 2>&5
11857 echo "$as_me:11857: \$? = $ac_status" >&5
11858 (exit $ac_status); }; }; then
11861 echo "$as_me: failed program was:" >&5
11862 cat conftest.$ac_ext >&5
11865 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11866 LIBS="$cf_save_LIBS"
11867 echo "$as_me:11867: result: $with_pthread" >&5
11868 echo "${ECHO_T}$with_pthread" >&6
11869 test "$with_pthread" = yes && break
11872 if test "$with_pthread" = yes ; then
11873 LIBS="-l$cf_lib_pthread $LIBS"
11875 cat >>confdefs.h <<\EOF
11876 #define HAVE_LIBPTHREADS 1
11880 { { echo "$as_me:11880: error: Cannot link with pthread library" >&5
11881 echo "$as_me: error: Cannot link with pthread library" >&2;}
11882 { (exit 1); exit 1; }; }
11889 if test "x$with_pthread" != xno; then
11890 echo "$as_me:11890: checking for pthread_kill" >&5
11891 echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6
11892 if test "${ac_cv_func_pthread_kill+set}" = set; then
11893 echo $ECHO_N "(cached) $ECHO_C" >&6
11895 cat >conftest.$ac_ext <<_ACEOF
11896 #line 11896 "configure"
11897 #include "confdefs.h"
11898 /* System header to define __stub macros and hopefully few prototypes,
11899 which can conflict with char pthread_kill (); below. */
11900 #include <assert.h>
11901 /* Override any gcc2 internal prototype to avoid an error. */
11905 /* We use char because int might match the return type of a gcc2
11906 builtin and then its argument prototype would still apply. */
11907 char pthread_kill ();
11913 /* The GNU C library defines this for functions which it implements
11914 to always fail with ENOSYS. Some functions are actually named
11915 something starting with __ and the normal name is an alias. */
11916 #if defined (__stub_pthread_kill) || defined (__stub___pthread_kill)
11919 f = pthread_kill; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
11926 rm -f conftest.$ac_objext conftest$ac_exeext
11927 if { (eval echo "$as_me:11927: \"$ac_link\"") >&5
11928 (eval $ac_link) 2>&5
11930 echo "$as_me:11930: \$? = $ac_status" >&5
11931 (exit $ac_status); } &&
11932 { ac_try='test -s conftest$ac_exeext'
11933 { (eval echo "$as_me:11933: \"$ac_try\"") >&5
11934 (eval $ac_try) 2>&5
11936 echo "$as_me:11936: \$? = $ac_status" >&5
11937 (exit $ac_status); }; }; then
11938 ac_cv_func_pthread_kill=yes
11940 echo "$as_me: failed program was:" >&5
11941 cat conftest.$ac_ext >&5
11942 ac_cv_func_pthread_kill=no
11944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11946 echo "$as_me:11946: result: $ac_cv_func_pthread_kill" >&5
11947 echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6
11948 if test $ac_cv_func_pthread_kill = yes; then
11950 echo "$as_me:11950: checking if you want to allow EINTR in wgetch with pthreads" >&5
11951 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
11953 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
11954 if test "${enable_pthreads_eintr+set}" = set; then
11955 enableval="$enable_pthreads_eintr"
11956 use_pthreads_eintr=$enableval
11958 use_pthreads_eintr=no
11960 echo "$as_me:11960: result: $use_pthreads_eintr" >&5
11961 echo "${ECHO_T}$use_pthreads_eintr" >&6
11962 if test "x$use_pthreads_eintr" = xyes ; then
11964 cat >>confdefs.h <<\EOF
11965 #define USE_PTHREADS_EINTR 1
11971 echo "$as_me:11971: checking if you want to use weak-symbols for pthreads" >&5
11972 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
11974 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
11975 if test "${enable_weak_symbols+set}" = set; then
11976 enableval="$enable_weak_symbols"
11977 use_weak_symbols=$enableval
11979 use_weak_symbols=no
11981 echo "$as_me:11981: result: $use_weak_symbols" >&5
11982 echo "${ECHO_T}$use_weak_symbols" >&6
11983 if test "x$use_weak_symbols" = xyes ; then
11985 echo "$as_me:11985: checking if $CC supports weak symbols" >&5
11986 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
11987 if test "${cf_cv_weak_symbols+set}" = set; then
11988 echo $ECHO_N "(cached) $ECHO_C" >&6
11991 cat >conftest.$ac_ext <<_ACEOF
11992 #line 11992 "configure"
11993 #include "confdefs.h"
12000 #if defined(__GNUC__)
12001 # if defined __USE_ISOC99
12002 # define _cat_pragma(exp) _Pragma(#exp)
12003 # define _weak_pragma(exp) _cat_pragma(weak name)
12005 # define _weak_pragma(exp)
12007 # define _declare(name) __extension__ extern __typeof__(name) name
12008 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
12011 weak_symbol(fopen);
12017 rm -f conftest.$ac_objext
12018 if { (eval echo "$as_me:12018: \"$ac_compile\"") >&5
12019 (eval $ac_compile) 2>&5
12021 echo "$as_me:12021: \$? = $ac_status" >&5
12022 (exit $ac_status); } &&
12023 { ac_try='test -s conftest.$ac_objext'
12024 { (eval echo "$as_me:12024: \"$ac_try\"") >&5
12025 (eval $ac_try) 2>&5
12027 echo "$as_me:12027: \$? = $ac_status" >&5
12028 (exit $ac_status); }; }; then
12029 cf_cv_weak_symbols=yes
12031 echo "$as_me: failed program was:" >&5
12032 cat conftest.$ac_ext >&5
12033 cf_cv_weak_symbols=no
12035 rm -f conftest.$ac_objext conftest.$ac_ext
12038 echo "$as_me:12038: result: $cf_cv_weak_symbols" >&5
12039 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
12042 cf_cv_weak_symbols=no
12045 if test "x$cf_cv_weak_symbols" = xyes ; then
12047 cat >>confdefs.h <<\EOF
12048 #define USE_WEAK_SYMBOLS 1
12055 if test "x$with_pthread" = "xyes" ; then
12057 cat >>confdefs.h <<\EOF
12058 #define USE_PTHREADS 1
12061 enable_reentrant=yes
12062 if test "x$cf_cv_weak_symbols" = xyes ; then
12067 # Reentrant code has to be opaque; there's little advantage to making ncurses
12068 # opaque outside of that, so there is no --enable-opaque option. We can use
12069 # this option without --with-pthreads, but this will be always set for
12071 echo "$as_me:12071: checking if you want experimental reentrant code" >&5
12072 echo $ECHO_N "checking if you want experimental reentrant code... $ECHO_C" >&6
12074 # Check whether --enable-reentrant or --disable-reentrant was given.
12075 if test "${enable_reentrant+set}" = set; then
12076 enableval="$enable_reentrant"
12077 with_reentrant=$enableval
12081 echo "$as_me:12081: result: $with_reentrant" >&5
12082 echo "${ECHO_T}$with_reentrant" >&6
12083 if test "x$with_reentrant" = xyes ; then
12084 cf_cv_enable_reentrant=1
12085 cf_cv_enable_opaque="NCURSES_INTERNALS"
12088 if test "x$cf_cv_weak_symbols" = xyes ; then
12090 # remove pthread library from $LIBS
12091 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
12093 TEST_LIBS="-lpthread $TEST_LIBS"
12094 TEST_LIBS2="-lpthread $TEST_LIBS2"
12096 # when not using weak symbols but with_reentrant,
12097 # add 't' to the library suffix on all platforms
12098 # except cygwin, where we only do that if ALSO
12099 # compiling with full thread support.
12101 *cygwin* | *msys*) #(vi
12102 if test "$with_pthread" = "yes" ; then
12103 if test "x$disable_lib_suffixes" = "xno" ; then
12104 LIB_SUFFIX="t${LIB_SUFFIX}"
12108 if test "x$disable_lib_suffixes" = "xno" ; then
12109 LIB_SUFFIX="t${LIB_SUFFIX}"
12115 cat >>confdefs.h <<\EOF
12116 #define USE_REENTRANT 1
12119 if test "${with_abi_version+set}" != set; then
12120 case $cf_cv_rel_version in
12122 cf_cv_rel_version=6.0
12123 cf_cv_abi_version=6
12124 { echo "$as_me:12124: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
12125 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
12131 cf_cv_enable_reentrant=0
12132 cf_cv_enable_opaque="NCURSES_OPAQUE"
12134 NCURSES_SIZE_T=short
12137 ### Allow using a different wrap-prefix
12138 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
12139 echo "$as_me:12139: checking for prefix used to wrap public variables" >&5
12140 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
12142 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
12143 if test "${with_wrap_prefix+set}" = set; then
12144 withval="$with_wrap_prefix"
12145 NCURSES_WRAP_PREFIX=$withval
12147 NCURSES_WRAP_PREFIX=_nc_
12149 echo "$as_me:12149: result: $NCURSES_WRAP_PREFIX" >&5
12150 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
12152 NCURSES_WRAP_PREFIX=_nc_
12155 cat >>confdefs.h <<EOF
12156 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
12159 echo "$as_me:12159: checking if you want experimental safe-sprintf code" >&5
12160 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
12162 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
12163 if test "${enable_safe_sprintf+set}" = set; then
12164 enableval="$enable_safe_sprintf"
12165 with_safe_sprintf=$enableval
12167 with_safe_sprintf=no
12169 echo "$as_me:12169: result: $with_safe_sprintf" >&5
12170 echo "${ECHO_T}$with_safe_sprintf" >&6
12171 test "x$with_safe_sprintf" = xyes &&
12172 cat >>confdefs.h <<\EOF
12173 #define USE_SAFE_SPRINTF 1
12176 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
12177 # when hashmap is used scroll hints are useless
12178 if test "$with_hashmap" = no ; then
12179 echo "$as_me:12179: checking if you want to experiment without scrolling-hints code" >&5
12180 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
12182 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
12183 if test "${enable_scroll_hints+set}" = set; then
12184 enableval="$enable_scroll_hints"
12185 with_scroll_hints=$enableval
12187 with_scroll_hints=yes
12189 echo "$as_me:12189: result: $with_scroll_hints" >&5
12190 echo "${ECHO_T}$with_scroll_hints" >&6
12191 test "x$with_scroll_hints" = xyes &&
12192 cat >>confdefs.h <<\EOF
12193 #define USE_SCROLL_HINTS 1
12198 echo "$as_me:12198: checking if you want experimental wgetch-events code" >&5
12199 echo $ECHO_N "checking if you want experimental wgetch-events code... $ECHO_C" >&6
12201 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
12202 if test "${enable_wgetch_events+set}" = set; then
12203 enableval="$enable_wgetch_events"
12204 with_wgetch_events=$enableval
12206 with_wgetch_events=no
12208 echo "$as_me:12208: result: $with_wgetch_events" >&5
12209 echo "${ECHO_T}$with_wgetch_events" >&6
12210 test "x$with_wgetch_events" = xyes &&
12211 cat >>confdefs.h <<\EOF
12212 #define NCURSES_WGETCH_EVENTS 1
12215 ###############################################################################
12217 ### use option --disable-echo to suppress full display compiling commands
12219 echo "$as_me:12219: checking if you want to see long compiling messages" >&5
12220 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
12222 # Check whether --enable-echo or --disable-echo was given.
12223 if test "${enable_echo+set}" = set; then
12224 enableval="$enable_echo"
12225 test "$enableval" != no && enableval=yes
12226 if test "$enableval" != "yes" ; then
12229 ECHO_LD='@echo linking $@;'
12230 RULE_CC='@echo compiling $<'
12231 SHOW_CC='@echo compiling $@'
12253 echo "$as_me:12253: result: $enableval" >&5
12254 echo "${ECHO_T}$enableval" >&6
12256 if test "x$enable_echo" = xyes; then
12259 ECHO_LINK='@ echo linking $@ ... ;'
12260 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
12261 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
12264 ### use option --enable-warnings to turn on all gcc warnings
12265 echo "$as_me:12265: checking if you want to see compiler warnings" >&5
12266 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
12268 # Check whether --enable-warnings or --disable-warnings was given.
12269 if test "${enable_warnings+set}" = set; then
12270 enableval="$enable_warnings"
12271 with_warnings=$enableval
12273 echo "$as_me:12273: result: $with_warnings" >&5
12274 echo "${ECHO_T}$with_warnings" >&6
12276 if test "x$with_warnings" = "xyes"; then
12278 ADAFLAGS="$ADAFLAGS -gnatg"
12282 if test "$GCC" = yes ; then
12285 echo "$as_me:12285: checking if this is really Intel C compiler" >&5
12286 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
12287 cf_save_CFLAGS="$CFLAGS"
12288 CFLAGS="$CFLAGS -no-gcc"
12289 cat >conftest.$ac_ext <<_ACEOF
12290 #line 12290 "configure"
12291 #include "confdefs.h"
12297 #ifdef __INTEL_COMPILER
12306 rm -f conftest.$ac_objext
12307 if { (eval echo "$as_me:12307: \"$ac_compile\"") >&5
12308 (eval $ac_compile) 2>&5
12310 echo "$as_me:12310: \$? = $ac_status" >&5
12311 (exit $ac_status); } &&
12312 { ac_try='test -s conftest.$ac_objext'
12313 { (eval echo "$as_me:12313: \"$ac_try\"") >&5
12314 (eval $ac_try) 2>&5
12316 echo "$as_me:12316: \$? = $ac_status" >&5
12317 (exit $ac_status); }; }; then
12319 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
12322 echo "$as_me: failed program was:" >&5
12323 cat conftest.$ac_ext >&5
12325 rm -f conftest.$ac_objext conftest.$ac_ext
12326 CFLAGS="$cf_save_CFLAGS"
12327 echo "$as_me:12327: result: $INTEL_COMPILER" >&5
12328 echo "${ECHO_T}$INTEL_COMPILER" >&6
12335 if test "$GCC" = yes ; then
12336 echo "$as_me:12336: checking if this is really Clang C compiler" >&5
12337 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
12338 cf_save_CFLAGS="$CFLAGS"
12339 CFLAGS="$CFLAGS -Qunused-arguments"
12340 cat >conftest.$ac_ext <<_ACEOF
12341 #line 12341 "configure"
12342 #include "confdefs.h"
12357 rm -f conftest.$ac_objext
12358 if { (eval echo "$as_me:12358: \"$ac_compile\"") >&5
12359 (eval $ac_compile) 2>&5
12361 echo "$as_me:12361: \$? = $ac_status" >&5
12362 (exit $ac_status); } &&
12363 { ac_try='test -s conftest.$ac_objext'
12364 { (eval echo "$as_me:12364: \"$ac_try\"") >&5
12365 (eval $ac_try) 2>&5
12367 echo "$as_me:12367: \$? = $ac_status" >&5
12368 (exit $ac_status); }; }; then
12370 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
12373 echo "$as_me: failed program was:" >&5
12374 cat conftest.$ac_ext >&5
12376 rm -f conftest.$ac_objext conftest.$ac_ext
12377 CFLAGS="$cf_save_CFLAGS"
12378 echo "$as_me:12378: result: $CLANG_COMPILER" >&5
12379 echo "${ECHO_T}$CLANG_COMPILER" >&6
12382 cat > conftest.$ac_ext <<EOF
12383 #line 12383 "${as_me:-configure}"
12384 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
12387 if test "$INTEL_COMPILER" = yes
12389 # The "-wdXXX" options suppress warnings:
12390 # remark #1419: external declaration in primary source file
12391 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
12392 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
12393 # remark #193: zero used for undefined preprocessing identifier
12394 # remark #593: variable "curs_sb_left_arrow" was set but never used
12395 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
12396 # remark #869: parameter "tw" was never referenced
12397 # remark #981: operands are evaluated in unspecified order
12398 # warning #279: controlling expression is constant
12400 { echo "$as_me:12400: checking for $CC warning options..." >&5
12401 echo "$as_me: checking for $CC warning options..." >&6;}
12402 cf_save_CFLAGS="$CFLAGS"
12403 EXTRA_CFLAGS="-Wall"
12415 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
12416 if { (eval echo "$as_me:12416: \"$ac_compile\"") >&5
12417 (eval $ac_compile) 2>&5
12419 echo "$as_me:12419: \$? = $ac_status" >&5
12420 (exit $ac_status); }; then
12421 test -n "$verbose" && echo "$as_me:12421: result: ... -$cf_opt" >&5
12422 echo "${ECHO_T}... -$cf_opt" >&6
12423 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
12426 CFLAGS="$cf_save_CFLAGS"
12428 elif test "$GCC" = yes
12430 { echo "$as_me:12430: checking for $CC warning options..." >&5
12431 echo "$as_me: checking for $CC warning options..." >&6;}
12432 cf_save_CFLAGS="$CFLAGS"
12435 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
12436 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
12437 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
12438 for cf_opt in W Wall \
12439 Wbad-function-cast \
12442 Wdeclaration-after-statement \
12445 Wmissing-declarations \
12446 Wmissing-prototypes \
12450 Wstrict-prototypes \
12451 Wundef $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas Wswitch-enum
12453 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
12454 if { (eval echo "$as_me:12454: \"$ac_compile\"") >&5
12455 (eval $ac_compile) 2>&5
12457 echo "$as_me:12457: \$? = $ac_status" >&5
12458 (exit $ac_status); }; then
12459 test -n "$verbose" && echo "$as_me:12459: result: ... -$cf_opt" >&5
12460 echo "${ECHO_T}... -$cf_opt" >&6
12461 case $cf_opt in #(vi
12463 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
12466 case $GCC_VERSION in
12468 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
12470 echo "${as_me:-configure}:12470: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
12475 Wpointer-arith) #(vi
12476 case $GCC_VERSION in
12478 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
12480 echo "${as_me:-configure}:12480: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
12486 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
12489 CFLAGS="$cf_save_CFLAGS"
12493 if test "x$cf_with_cxx" = xyes ; then
12497 if test "$GCC" = yes ; then
12500 echo "$as_me:12500: checking if this is really Intel C++ compiler" >&5
12501 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
12502 cf_save_CFLAGS="$CXXFLAGS"
12503 CXXFLAGS="$CXXFLAGS -no-gcc"
12504 cat >conftest.$ac_ext <<_ACEOF
12505 #line 12505 "configure"
12506 #include "confdefs.h"
12512 #ifdef __INTEL_COMPILER
12521 rm -f conftest.$ac_objext
12522 if { (eval echo "$as_me:12522: \"$ac_compile\"") >&5
12523 (eval $ac_compile) 2>&5
12525 echo "$as_me:12525: \$? = $ac_status" >&5
12526 (exit $ac_status); } &&
12527 { ac_try='test -s conftest.$ac_objext'
12528 { (eval echo "$as_me:12528: \"$ac_try\"") >&5
12529 (eval $ac_try) 2>&5
12531 echo "$as_me:12531: \$? = $ac_status" >&5
12532 (exit $ac_status); }; }; then
12533 INTEL_CPLUSPLUS=yes
12534 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
12537 echo "$as_me: failed program was:" >&5
12538 cat conftest.$ac_ext >&5
12540 rm -f conftest.$ac_objext conftest.$ac_ext
12541 CXXFLAGS="$cf_save_CFLAGS"
12542 echo "$as_me:12542: result: $INTEL_CPLUSPLUS" >&5
12543 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
12550 if test "$GCC" = yes ; then
12551 echo "$as_me:12551: checking if this is really Clang C++ compiler" >&5
12552 echo $ECHO_N "checking if this is really Clang C++ compiler... $ECHO_C" >&6
12553 cf_save_CFLAGS="$CXXFLAGS"
12554 CXXFLAGS="$CXXFLAGS -Qunused-arguments"
12555 cat >conftest.$ac_ext <<_ACEOF
12556 #line 12556 "configure"
12557 #include "confdefs.h"
12572 rm -f conftest.$ac_objext
12573 if { (eval echo "$as_me:12573: \"$ac_compile\"") >&5
12574 (eval $ac_compile) 2>&5
12576 echo "$as_me:12576: \$? = $ac_status" >&5
12577 (exit $ac_status); } &&
12578 { ac_try='test -s conftest.$ac_objext'
12579 { (eval echo "$as_me:12579: \"$ac_try\"") >&5
12580 (eval $ac_try) 2>&5
12582 echo "$as_me:12582: \$? = $ac_status" >&5
12583 (exit $ac_status); }; }; then
12584 CLANG_CPLUSPLUS=yes
12585 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
12588 echo "$as_me: failed program was:" >&5
12589 cat conftest.$ac_ext >&5
12591 rm -f conftest.$ac_objext conftest.$ac_ext
12592 CXXFLAGS="$cf_save_CFLAGS"
12593 echo "$as_me:12593: result: $CLANG_CPLUSPLUS" >&5
12594 echo "${ECHO_T}$CLANG_CPLUSPLUS" >&6
12598 ac_cpp='$CXXCPP $CPPFLAGS'
12599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12602 ac_main_return=return
12604 cat > conftest.$ac_ext <<EOF
12605 #line 12605 "configure"
12606 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
12609 if test "$INTEL_CPLUSPLUS" = yes
12611 # The "-wdXXX" options suppress warnings:
12612 # remark #1419: external declaration in primary source file
12613 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
12614 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
12615 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
12616 # remark #193: zero used for undefined preprocessing identifier
12617 # remark #593: variable "curs_sb_left_arrow" was set but never used
12618 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
12619 # remark #869: parameter "tw" was never referenced
12620 # remark #981: operands are evaluated in unspecified order
12621 # warning #269: invalid format string conversion
12623 { echo "$as_me:12623: checking for $CC warning options..." >&5
12624 echo "$as_me: checking for $CC warning options..." >&6;}
12625 cf_save_CXXFLAGS="$CXXFLAGS"
12626 EXTRA_CXXFLAGS="-Wall"
12639 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
12640 if { (eval echo "$as_me:12640: \"$ac_compile\"") >&5
12641 (eval $ac_compile) 2>&5
12643 echo "$as_me:12643: \$? = $ac_status" >&5
12644 (exit $ac_status); }; then
12645 test -n "$verbose" && echo "$as_me:12645: result: ... -$cf_opt" >&5
12646 echo "${ECHO_T}... -$cf_opt" >&6
12647 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
12650 CXXFLAGS="$cf_save_CXXFLAGS"
12652 elif test "$GXX" = yes
12654 { echo "$as_me:12654: checking for $CXX warning options..." >&5
12655 echo "$as_me: checking for $CXX warning options..." >&6;}
12656 cf_save_CXXFLAGS="$CXXFLAGS"
12657 EXTRA_CXXFLAGS="-W -Wall"
12658 cf_gxx_extra_warnings=""
12659 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
12660 case "$GCC_VERSION" in
12664 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
12671 Wignored-qualifiers \
12673 Woverloaded-virtual \
12681 Wundef $cf_gxx_extra_warnings Wno-unused
12683 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
12684 if { (eval echo "$as_me:12684: \"$ac_compile\"") >&5
12685 (eval $ac_compile) 2>&5
12687 echo "$as_me:12687: \$? = $ac_status" >&5
12688 (exit $ac_status); }; then
12689 test -n "$verbose" && echo "$as_me:12689: result: ... -$cf_opt" >&5
12690 echo "${ECHO_T}... -$cf_opt" >&6
12691 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
12693 test -n "$verbose" && echo "$as_me:12693: result: ... no -$cf_opt" >&5
12694 echo "${ECHO_T}... no -$cf_opt" >&6
12697 CXXFLAGS="$cf_save_CXXFLAGS"
12702 ac_cpp='$CPP $CPPFLAGS'
12703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12706 ac_main_return=return
12711 if test "$GCC" = yes
12713 cat > conftest.i <<EOF
12715 #define GCC_PRINTF 0
12718 #define GCC_SCANF 0
12720 #ifndef GCC_NORETURN
12721 #define GCC_NORETURN /* nothing */
12724 #define GCC_UNUSED /* nothing */
12727 if test "$GCC" = yes
12729 { echo "$as_me:12729: checking for $CC __attribute__ directives..." >&5
12730 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
12731 cat > conftest.$ac_ext <<EOF
12732 #line 12732 "${as_me:-configure}"
12733 #include "confdefs.h"
12734 #include "conftest.h"
12735 #include "conftest.i"
12737 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
12739 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
12742 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
12744 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
12746 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
12747 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
12748 extern void foo(void) GCC_NORETURN;
12749 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
12751 cf_printf_attribute=no
12752 cf_scanf_attribute=no
12753 for cf_attribute in scanf printf unused noreturn
12756 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
12758 cf_directive="__attribute__(($cf_attribute))"
12759 echo "checking for $CC $cf_directive" 1>&5
12761 case $cf_attribute in #(vi
12763 cf_printf_attribute=yes
12764 cat >conftest.h <<EOF
12765 #define GCC_$cf_ATTRIBUTE 1
12769 cf_scanf_attribute=yes
12770 cat >conftest.h <<EOF
12771 #define GCC_$cf_ATTRIBUTE 1
12775 cat >conftest.h <<EOF
12776 #define GCC_$cf_ATTRIBUTE $cf_directive
12781 if { (eval echo "$as_me:12781: \"$ac_compile\"") >&5
12782 (eval $ac_compile) 2>&5
12784 echo "$as_me:12784: \$? = $ac_status" >&5
12785 (exit $ac_status); }; then
12786 test -n "$verbose" && echo "$as_me:12786: result: ... $cf_attribute" >&5
12787 echo "${ECHO_T}... $cf_attribute" >&6
12788 cat conftest.h >>confdefs.h
12789 case $cf_attribute in #(vi
12792 cat >>confdefs.h <<EOF
12793 #define GCC_NORETURN $cf_directive
12798 cf_value='/* nothing */'
12799 if test "$cf_printf_attribute" != no ; then
12800 cf_value='__attribute__((format(printf,fmt,var)))'
12802 cat >>confdefs.h <<\EOF
12803 #define GCC_PRINTF 1
12808 cat >>confdefs.h <<EOF
12809 #define GCC_PRINTFLIKE(fmt,var) $cf_value
12814 cf_value='/* nothing */'
12815 if test "$cf_scanf_attribute" != no ; then
12816 cf_value='__attribute__((format(scanf,fmt,var)))'
12818 cat >>confdefs.h <<\EOF
12819 #define GCC_SCANF 1
12824 cat >>confdefs.h <<EOF
12825 #define GCC_SCANFLIKE(fmt,var) $cf_value
12831 cat >>confdefs.h <<EOF
12832 #define GCC_UNUSED $cf_directive
12840 fgrep define conftest.i >>confdefs.h
12845 echo "$as_me:12845: checking if you want to work around bogus compiler/loader warnings" >&5
12846 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
12848 # Check whether --enable-string-hacks or --disable-string-hacks was given.
12849 if test "${enable_string_hacks+set}" = set; then
12850 enableval="$enable_string_hacks"
12851 with_string_hacks=$enableval
12853 with_string_hacks=no
12855 echo "$as_me:12855: result: $with_string_hacks" >&5
12856 echo "${ECHO_T}$with_string_hacks" >&6
12858 if test "x$with_string_hacks" = "xyes"; then
12860 cat >>confdefs.h <<\EOF
12861 #define USE_STRING_HACKS 1
12864 { echo "$as_me:12864: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
12865 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
12867 for ac_func in strlcat strlcpy snprintf
12869 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12870 echo "$as_me:12870: checking for $ac_func" >&5
12871 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12872 if eval "test \"\${$as_ac_var+set}\" = set"; then
12873 echo $ECHO_N "(cached) $ECHO_C" >&6
12875 cat >conftest.$ac_ext <<_ACEOF
12876 #line 12876 "configure"
12877 #include "confdefs.h"
12878 /* System header to define __stub macros and hopefully few prototypes,
12879 which can conflict with char $ac_func (); below. */
12880 #include <assert.h>
12881 /* Override any gcc2 internal prototype to avoid an error. */
12885 /* We use char because int might match the return type of a gcc2
12886 builtin and then its argument prototype would still apply. */
12893 /* The GNU C library defines this for functions which it implements
12894 to always fail with ENOSYS. Some functions are actually named
12895 something starting with __ and the normal name is an alias. */
12896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12899 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
12906 rm -f conftest.$ac_objext conftest$ac_exeext
12907 if { (eval echo "$as_me:12907: \"$ac_link\"") >&5
12908 (eval $ac_link) 2>&5
12910 echo "$as_me:12910: \$? = $ac_status" >&5
12911 (exit $ac_status); } &&
12912 { ac_try='test -s conftest$ac_exeext'
12913 { (eval echo "$as_me:12913: \"$ac_try\"") >&5
12914 (eval $ac_try) 2>&5
12916 echo "$as_me:12916: \$? = $ac_status" >&5
12917 (exit $ac_status); }; }; then
12918 eval "$as_ac_var=yes"
12920 echo "$as_me: failed program was:" >&5
12921 cat conftest.$ac_ext >&5
12922 eval "$as_ac_var=no"
12924 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12926 echo "$as_me:12926: result: `eval echo '${'$as_ac_var'}'`" >&5
12927 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12928 if test `eval echo '${'$as_ac_var'}'` = yes; then
12929 cat >>confdefs.h <<EOF
12930 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12938 ### use option --enable-assertions to turn on generation of assertion code
12939 echo "$as_me:12939: checking if you want to enable runtime assertions" >&5
12940 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
12942 # Check whether --enable-assertions or --disable-assertions was given.
12943 if test "${enable_assertions+set}" = set; then
12944 enableval="$enable_assertions"
12945 with_assertions=$enableval
12949 echo "$as_me:12949: result: $with_assertions" >&5
12950 echo "${ECHO_T}$with_assertions" >&6
12953 if test "$with_assertions" = no
12955 CPPFLAGS="$CPPFLAGS -DNDEBUG"
12958 ADAFLAGS="$ADAFLAGS -gnata"
12963 ### use option --disable-leaks to suppress "permanent" leaks, for testing
12965 echo "$as_me:12965: checking if you want to use dmalloc for testing" >&5
12966 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
12968 # Check whether --with-dmalloc or --without-dmalloc was given.
12969 if test "${with_dmalloc+set}" = set; then
12970 withval="$with_dmalloc"
12972 cat >>confdefs.h <<EOF
12973 #define USE_DMALLOC 1
12976 : ${with_cflags:=-g}
12977 : ${with_no_leaks:=yes}
12982 echo "$as_me:12982: result: ${with_dmalloc:-no}" >&5
12983 echo "${ECHO_T}${with_dmalloc:-no}" >&6
12985 case .$with_cflags in #(vi
12987 case .$CFLAGS in #(vi
12995 cf_new_extra_cppflags=
12997 for cf_add_cflags in -g
12999 case $cf_fix_cppflags in
13001 case $cf_add_cflags in #(vi
13002 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
13003 case $cf_add_cflags in
13005 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13007 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13008 && test -z "${cf_tst_cflags}" \
13009 && cf_fix_cppflags=yes
13011 if test $cf_fix_cppflags = yes ; then
13012 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13014 elif test "${cf_tst_cflags}" = "\"'" ; then
13015 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13020 case "$CPPFLAGS" in
13021 *$cf_add_cflags) #(vi
13024 case $cf_add_cflags in #(vi
13026 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13028 CPPFLAGS=`echo "$CPPFLAGS" | \
13029 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13030 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13034 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
13039 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
13044 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13046 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13048 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13049 && test -z "${cf_tst_cflags}" \
13050 && cf_fix_cppflags=no
13055 if test -n "$cf_new_cflags" ; then
13057 CFLAGS="$CFLAGS $cf_new_cflags"
13060 if test -n "$cf_new_cppflags" ; then
13062 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
13065 if test -n "$cf_new_extra_cppflags" ; then
13067 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
13075 if test "$with_dmalloc" = yes ; then
13076 echo "$as_me:13076: checking for dmalloc.h" >&5
13077 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
13078 if test "${ac_cv_header_dmalloc_h+set}" = set; then
13079 echo $ECHO_N "(cached) $ECHO_C" >&6
13081 cat >conftest.$ac_ext <<_ACEOF
13082 #line 13082 "configure"
13083 #include "confdefs.h"
13084 #include <dmalloc.h>
13086 if { (eval echo "$as_me:13086: \"$ac_cpp conftest.$ac_ext\"") >&5
13087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13089 egrep -v '^ *\+' conftest.er1 >conftest.err
13091 cat conftest.err >&5
13092 echo "$as_me:13092: \$? = $ac_status" >&5
13093 (exit $ac_status); } >/dev/null; then
13094 if test -s conftest.err; then
13095 ac_cpp_err=$ac_c_preproc_warn_flag
13102 if test -z "$ac_cpp_err"; then
13103 ac_cv_header_dmalloc_h=yes
13105 echo "$as_me: failed program was:" >&5
13106 cat conftest.$ac_ext >&5
13107 ac_cv_header_dmalloc_h=no
13109 rm -f conftest.err conftest.$ac_ext
13111 echo "$as_me:13111: result: $ac_cv_header_dmalloc_h" >&5
13112 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
13113 if test $ac_cv_header_dmalloc_h = yes; then
13115 echo "$as_me:13115: checking for dmalloc_debug in -ldmalloc" >&5
13116 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
13117 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
13118 echo $ECHO_N "(cached) $ECHO_C" >&6
13120 ac_check_lib_save_LIBS=$LIBS
13121 LIBS="-ldmalloc $LIBS"
13122 cat >conftest.$ac_ext <<_ACEOF
13123 #line 13123 "configure"
13124 #include "confdefs.h"
13126 /* Override any gcc2 internal prototype to avoid an error. */
13130 /* We use char because int might match the return type of a gcc2
13131 builtin and then its argument prototype would still apply. */
13132 char dmalloc_debug ();
13141 rm -f conftest.$ac_objext conftest$ac_exeext
13142 if { (eval echo "$as_me:13142: \"$ac_link\"") >&5
13143 (eval $ac_link) 2>&5
13145 echo "$as_me:13145: \$? = $ac_status" >&5
13146 (exit $ac_status); } &&
13147 { ac_try='test -s conftest$ac_exeext'
13148 { (eval echo "$as_me:13148: \"$ac_try\"") >&5
13149 (eval $ac_try) 2>&5
13151 echo "$as_me:13151: \$? = $ac_status" >&5
13152 (exit $ac_status); }; }; then
13153 ac_cv_lib_dmalloc_dmalloc_debug=yes
13155 echo "$as_me: failed program was:" >&5
13156 cat conftest.$ac_ext >&5
13157 ac_cv_lib_dmalloc_dmalloc_debug=no
13159 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13160 LIBS=$ac_check_lib_save_LIBS
13162 echo "$as_me:13162: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
13163 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
13164 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
13165 cat >>confdefs.h <<EOF
13166 #define HAVE_LIBDMALLOC 1
13169 LIBS="-ldmalloc $LIBS"
13177 echo "$as_me:13177: checking if you want to use dbmalloc for testing" >&5
13178 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
13180 # Check whether --with-dbmalloc or --without-dbmalloc was given.
13181 if test "${with_dbmalloc+set}" = set; then
13182 withval="$with_dbmalloc"
13184 cat >>confdefs.h <<EOF
13185 #define USE_DBMALLOC 1
13188 : ${with_cflags:=-g}
13189 : ${with_no_leaks:=yes}
13194 echo "$as_me:13194: result: ${with_dbmalloc:-no}" >&5
13195 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
13197 case .$with_cflags in #(vi
13199 case .$CFLAGS in #(vi
13207 cf_new_extra_cppflags=
13209 for cf_add_cflags in -g
13211 case $cf_fix_cppflags in
13213 case $cf_add_cflags in #(vi
13214 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
13215 case $cf_add_cflags in
13217 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13219 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13220 && test -z "${cf_tst_cflags}" \
13221 && cf_fix_cppflags=yes
13223 if test $cf_fix_cppflags = yes ; then
13224 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13226 elif test "${cf_tst_cflags}" = "\"'" ; then
13227 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13232 case "$CPPFLAGS" in
13233 *$cf_add_cflags) #(vi
13236 case $cf_add_cflags in #(vi
13238 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13240 CPPFLAGS=`echo "$CPPFLAGS" | \
13241 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13242 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13246 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
13251 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
13256 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13258 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13260 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13261 && test -z "${cf_tst_cflags}" \
13262 && cf_fix_cppflags=no
13267 if test -n "$cf_new_cflags" ; then
13269 CFLAGS="$CFLAGS $cf_new_cflags"
13272 if test -n "$cf_new_cppflags" ; then
13274 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
13277 if test -n "$cf_new_extra_cppflags" ; then
13279 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
13287 if test "$with_dbmalloc" = yes ; then
13288 echo "$as_me:13288: checking for dbmalloc.h" >&5
13289 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
13290 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
13291 echo $ECHO_N "(cached) $ECHO_C" >&6
13293 cat >conftest.$ac_ext <<_ACEOF
13294 #line 13294 "configure"
13295 #include "confdefs.h"
13296 #include <dbmalloc.h>
13298 if { (eval echo "$as_me:13298: \"$ac_cpp conftest.$ac_ext\"") >&5
13299 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13301 egrep -v '^ *\+' conftest.er1 >conftest.err
13303 cat conftest.err >&5
13304 echo "$as_me:13304: \$? = $ac_status" >&5
13305 (exit $ac_status); } >/dev/null; then
13306 if test -s conftest.err; then
13307 ac_cpp_err=$ac_c_preproc_warn_flag
13314 if test -z "$ac_cpp_err"; then
13315 ac_cv_header_dbmalloc_h=yes
13317 echo "$as_me: failed program was:" >&5
13318 cat conftest.$ac_ext >&5
13319 ac_cv_header_dbmalloc_h=no
13321 rm -f conftest.err conftest.$ac_ext
13323 echo "$as_me:13323: result: $ac_cv_header_dbmalloc_h" >&5
13324 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
13325 if test $ac_cv_header_dbmalloc_h = yes; then
13327 echo "$as_me:13327: checking for debug_malloc in -ldbmalloc" >&5
13328 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
13329 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
13330 echo $ECHO_N "(cached) $ECHO_C" >&6
13332 ac_check_lib_save_LIBS=$LIBS
13333 LIBS="-ldbmalloc $LIBS"
13334 cat >conftest.$ac_ext <<_ACEOF
13335 #line 13335 "configure"
13336 #include "confdefs.h"
13338 /* Override any gcc2 internal prototype to avoid an error. */
13342 /* We use char because int might match the return type of a gcc2
13343 builtin and then its argument prototype would still apply. */
13344 char debug_malloc ();
13353 rm -f conftest.$ac_objext conftest$ac_exeext
13354 if { (eval echo "$as_me:13354: \"$ac_link\"") >&5
13355 (eval $ac_link) 2>&5
13357 echo "$as_me:13357: \$? = $ac_status" >&5
13358 (exit $ac_status); } &&
13359 { ac_try='test -s conftest$ac_exeext'
13360 { (eval echo "$as_me:13360: \"$ac_try\"") >&5
13361 (eval $ac_try) 2>&5
13363 echo "$as_me:13363: \$? = $ac_status" >&5
13364 (exit $ac_status); }; }; then
13365 ac_cv_lib_dbmalloc_debug_malloc=yes
13367 echo "$as_me: failed program was:" >&5
13368 cat conftest.$ac_ext >&5
13369 ac_cv_lib_dbmalloc_debug_malloc=no
13371 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13372 LIBS=$ac_check_lib_save_LIBS
13374 echo "$as_me:13374: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
13375 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
13376 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
13377 cat >>confdefs.h <<EOF
13378 #define HAVE_LIBDBMALLOC 1
13381 LIBS="-ldbmalloc $LIBS"
13389 echo "$as_me:13389: checking if you want to use valgrind for testing" >&5
13390 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
13392 # Check whether --with-valgrind or --without-valgrind was given.
13393 if test "${with_valgrind+set}" = set; then
13394 withval="$with_valgrind"
13396 cat >>confdefs.h <<EOF
13397 #define USE_VALGRIND 1
13400 : ${with_cflags:=-g}
13401 : ${with_no_leaks:=yes}
13406 echo "$as_me:13406: result: ${with_valgrind:-no}" >&5
13407 echo "${ECHO_T}${with_valgrind:-no}" >&6
13409 case .$with_cflags in #(vi
13411 case .$CFLAGS in #(vi
13419 cf_new_extra_cppflags=
13421 for cf_add_cflags in -g
13423 case $cf_fix_cppflags in
13425 case $cf_add_cflags in #(vi
13426 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
13427 case $cf_add_cflags in
13429 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13431 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13432 && test -z "${cf_tst_cflags}" \
13433 && cf_fix_cppflags=yes
13435 if test $cf_fix_cppflags = yes ; then
13436 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13438 elif test "${cf_tst_cflags}" = "\"'" ; then
13439 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13444 case "$CPPFLAGS" in
13445 *$cf_add_cflags) #(vi
13448 case $cf_add_cflags in #(vi
13450 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13452 CPPFLAGS=`echo "$CPPFLAGS" | \
13453 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13454 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13458 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
13463 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
13468 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13470 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13472 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13473 && test -z "${cf_tst_cflags}" \
13474 && cf_fix_cppflags=no
13479 if test -n "$cf_new_cflags" ; then
13481 CFLAGS="$CFLAGS $cf_new_cflags"
13484 if test -n "$cf_new_cppflags" ; then
13486 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
13489 if test -n "$cf_new_extra_cppflags" ; then
13491 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
13499 echo "$as_me:13499: checking if you want to perform memory-leak testing" >&5
13500 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
13502 # Check whether --enable-leaks or --disable-leaks was given.
13503 if test "${enable_leaks+set}" = set; then
13504 enableval="$enable_leaks"
13505 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
13507 : ${with_no_leaks:=no}
13509 echo "$as_me:13509: result: $with_no_leaks" >&5
13510 echo "${ECHO_T}$with_no_leaks" >&6
13512 if test "$with_no_leaks" = yes ; then
13514 cat >>confdefs.h <<\EOF
13518 cat >>confdefs.h <<\EOF
13519 #define YY_NO_LEAKS 1
13524 cat >>confdefs.h <<\EOF
13525 #define HAVE_NC_ALLOC_H 1
13528 ### use option --enable-expanded to generate certain macros as functions
13530 # Check whether --enable-expanded or --disable-expanded was given.
13531 if test "${enable_expanded+set}" = set; then
13532 enableval="$enable_expanded"
13533 test "x$enableval" = xyes &&
13534 cat >>confdefs.h <<\EOF
13535 #define NCURSES_EXPANDED 1
13540 ### use option --disable-macros to suppress macros in favor of functions
13542 # Check whether --enable-macros or --disable-macros was given.
13543 if test "${enable_macros+set}" = set; then
13544 enableval="$enable_macros"
13545 test "$enableval" = no &&
13546 cat >>confdefs.h <<\EOF
13547 #define NCURSES_NOMACROS 1
13552 # Normally we only add trace() to the debug-library. Allow this to be
13553 # extended to all models of the ncurses library:
13555 case "$CFLAGS $CPPFLAGS" in
13561 echo "$as_me:13561: checking whether to add trace feature to all models" >&5
13562 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
13564 # Check whether --with-trace or --without-trace was given.
13565 if test "${with_trace+set}" = set; then
13566 withval="$with_trace"
13567 cf_with_trace=$withval
13569 cf_with_trace=$cf_all_traces
13571 echo "$as_me:13571: result: $cf_with_trace" >&5
13572 echo "${ECHO_T}$cf_with_trace" >&6
13574 if test "x$cf_with_trace" = xyes ; then
13581 cf_new_extra_cppflags=
13583 for cf_add_cflags in -DTRACE
13585 case $cf_fix_cppflags in
13587 case $cf_add_cflags in #(vi
13588 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
13589 case $cf_add_cflags in
13591 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13593 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13594 && test -z "${cf_tst_cflags}" \
13595 && cf_fix_cppflags=yes
13597 if test $cf_fix_cppflags = yes ; then
13598 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13600 elif test "${cf_tst_cflags}" = "\"'" ; then
13601 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13606 case "$CPPFLAGS" in
13607 *$cf_add_cflags) #(vi
13610 case $cf_add_cflags in #(vi
13612 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13614 CPPFLAGS=`echo "$CPPFLAGS" | \
13615 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13616 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13620 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
13625 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
13630 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13632 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13634 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13635 && test -z "${cf_tst_cflags}" \
13636 && cf_fix_cppflags=no
13641 if test -n "$cf_new_cflags" ; then
13643 CFLAGS="$CFLAGS $cf_new_cflags"
13646 if test -n "$cf_new_cppflags" ; then
13648 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
13651 if test -n "$cf_new_extra_cppflags" ; then
13653 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
13661 echo "$as_me:13661: checking if we want to use GNAT projects" >&5
13662 echo $ECHO_N "checking if we want to use GNAT projects... $ECHO_C" >&6
13664 # Check whether --enable-gnat-projects or --disable-gnat-projects was given.
13665 if test "${enable_gnat_projects+set}" = set; then
13666 enableval="$enable_gnat_projects"
13667 test "$enableval" != no && enableval=yes
13668 if test "$enableval" != "yes" ; then
13669 enable_gnat_projects=no
13671 enable_gnat_projects=yes
13675 enable_gnat_projects=yes
13678 echo "$as_me:13678: result: $enable_gnat_projects" >&5
13679 echo "${ECHO_T}$enable_gnat_projects" >&6
13681 ### Checks for libraries.
13682 case $cf_cv_system_name in #(vi
13684 LIBS=" -lpsapi $LIBS"
13687 echo "$as_me:13687: checking for gettimeofday" >&5
13688 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
13689 if test "${ac_cv_func_gettimeofday+set}" = set; then
13690 echo $ECHO_N "(cached) $ECHO_C" >&6
13692 cat >conftest.$ac_ext <<_ACEOF
13693 #line 13693 "configure"
13694 #include "confdefs.h"
13695 /* System header to define __stub macros and hopefully few prototypes,
13696 which can conflict with char gettimeofday (); below. */
13697 #include <assert.h>
13698 /* Override any gcc2 internal prototype to avoid an error. */
13702 /* We use char because int might match the return type of a gcc2
13703 builtin and then its argument prototype would still apply. */
13704 char gettimeofday ();
13710 /* The GNU C library defines this for functions which it implements
13711 to always fail with ENOSYS. Some functions are actually named
13712 something starting with __ and the normal name is an alias. */
13713 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
13716 f = gettimeofday; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
13723 rm -f conftest.$ac_objext conftest$ac_exeext
13724 if { (eval echo "$as_me:13724: \"$ac_link\"") >&5
13725 (eval $ac_link) 2>&5
13727 echo "$as_me:13727: \$? = $ac_status" >&5
13728 (exit $ac_status); } &&
13729 { ac_try='test -s conftest$ac_exeext'
13730 { (eval echo "$as_me:13730: \"$ac_try\"") >&5
13731 (eval $ac_try) 2>&5
13733 echo "$as_me:13733: \$? = $ac_status" >&5
13734 (exit $ac_status); }; }; then
13735 ac_cv_func_gettimeofday=yes
13737 echo "$as_me: failed program was:" >&5
13738 cat conftest.$ac_ext >&5
13739 ac_cv_func_gettimeofday=no
13741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13743 echo "$as_me:13743: result: $ac_cv_func_gettimeofday" >&5
13744 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
13745 if test $ac_cv_func_gettimeofday = yes; then
13747 cat >>confdefs.h <<\EOF
13748 #define HAVE_GETTIMEOFDAY 1
13753 echo "$as_me:13753: checking for gettimeofday in -lbsd" >&5
13754 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
13755 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
13756 echo $ECHO_N "(cached) $ECHO_C" >&6
13758 ac_check_lib_save_LIBS=$LIBS
13760 cat >conftest.$ac_ext <<_ACEOF
13761 #line 13761 "configure"
13762 #include "confdefs.h"
13764 /* Override any gcc2 internal prototype to avoid an error. */
13768 /* We use char because int might match the return type of a gcc2
13769 builtin and then its argument prototype would still apply. */
13770 char gettimeofday ();
13779 rm -f conftest.$ac_objext conftest$ac_exeext
13780 if { (eval echo "$as_me:13780: \"$ac_link\"") >&5
13781 (eval $ac_link) 2>&5
13783 echo "$as_me:13783: \$? = $ac_status" >&5
13784 (exit $ac_status); } &&
13785 { ac_try='test -s conftest$ac_exeext'
13786 { (eval echo "$as_me:13786: \"$ac_try\"") >&5
13787 (eval $ac_try) 2>&5
13789 echo "$as_me:13789: \$? = $ac_status" >&5
13790 (exit $ac_status); }; }; then
13791 ac_cv_lib_bsd_gettimeofday=yes
13793 echo "$as_me: failed program was:" >&5
13794 cat conftest.$ac_ext >&5
13795 ac_cv_lib_bsd_gettimeofday=no
13797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13798 LIBS=$ac_check_lib_save_LIBS
13800 echo "$as_me:13800: result: $ac_cv_lib_bsd_gettimeofday" >&5
13801 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
13802 if test $ac_cv_lib_bsd_gettimeofday = yes; then
13804 cat >>confdefs.h <<\EOF
13805 #define HAVE_GETTIMEOFDAY 1
13815 echo "$as_me:13815: checking if -lm needed for math functions" >&5
13816 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
13817 if test "${cf_cv_need_libm+set}" = set; then
13818 echo $ECHO_N "(cached) $ECHO_C" >&6
13821 cat >conftest.$ac_ext <<_ACEOF
13822 #line 13822 "configure"
13823 #include "confdefs.h"
13831 double x = rand(); printf("result = %g\n", pow(sin(x),x))
13836 rm -f conftest.$ac_objext conftest$ac_exeext
13837 if { (eval echo "$as_me:13837: \"$ac_link\"") >&5
13838 (eval $ac_link) 2>&5
13840 echo "$as_me:13840: \$? = $ac_status" >&5
13841 (exit $ac_status); } &&
13842 { ac_try='test -s conftest$ac_exeext'
13843 { (eval echo "$as_me:13843: \"$ac_try\"") >&5
13844 (eval $ac_try) 2>&5
13846 echo "$as_me:13846: \$? = $ac_status" >&5
13847 (exit $ac_status); }; }; then
13850 echo "$as_me: failed program was:" >&5
13851 cat conftest.$ac_ext >&5
13852 cf_cv_need_libm=yes
13854 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13856 echo "$as_me:13856: result: $cf_cv_need_libm" >&5
13857 echo "${ECHO_T}$cf_cv_need_libm" >&6
13858 if test "$cf_cv_need_libm" = yes
13863 ### Checks for header files.
13864 echo "$as_me:13864: checking for ANSI C header files" >&5
13865 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13866 if test "${ac_cv_header_stdc+set}" = set; then
13867 echo $ECHO_N "(cached) $ECHO_C" >&6
13869 cat >conftest.$ac_ext <<_ACEOF
13870 #line 13870 "configure"
13871 #include "confdefs.h"
13872 #include <stdlib.h>
13873 #include <stdarg.h>
13874 #include <string.h>
13878 if { (eval echo "$as_me:13878: \"$ac_cpp conftest.$ac_ext\"") >&5
13879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13881 egrep -v '^ *\+' conftest.er1 >conftest.err
13883 cat conftest.err >&5
13884 echo "$as_me:13884: \$? = $ac_status" >&5
13885 (exit $ac_status); } >/dev/null; then
13886 if test -s conftest.err; then
13887 ac_cpp_err=$ac_c_preproc_warn_flag
13894 if test -z "$ac_cpp_err"; then
13895 ac_cv_header_stdc=yes
13897 echo "$as_me: failed program was:" >&5
13898 cat conftest.$ac_ext >&5
13899 ac_cv_header_stdc=no
13901 rm -f conftest.err conftest.$ac_ext
13903 if test $ac_cv_header_stdc = yes; then
13904 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13905 cat >conftest.$ac_ext <<_ACEOF
13906 #line 13906 "configure"
13907 #include "confdefs.h"
13908 #include <string.h>
13911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13912 egrep "memchr" >/dev/null 2>&1; then
13915 ac_cv_header_stdc=no
13921 if test $ac_cv_header_stdc = yes; then
13922 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13923 cat >conftest.$ac_ext <<_ACEOF
13924 #line 13924 "configure"
13925 #include "confdefs.h"
13926 #include <stdlib.h>
13929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13930 egrep "free" >/dev/null 2>&1; then
13933 ac_cv_header_stdc=no
13939 if test $ac_cv_header_stdc = yes; then
13940 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13941 if test "$cross_compiling" = yes; then
13944 cat >conftest.$ac_ext <<_ACEOF
13945 #line 13945 "configure"
13946 #include "confdefs.h"
13948 #if ((' ' & 0x0FF) == 0x020)
13949 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13950 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13952 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13953 || ('j' <= (c) && (c) <= 'r') \
13954 || ('s' <= (c) && (c) <= 'z'))
13955 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13958 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13963 for (i = 0; i < 256; i++)
13964 if (XOR (islower (i), ISLOWER (i))
13965 || toupper (i) != TOUPPER (i))
13966 $ac_main_return(2);
13967 $ac_main_return (0);
13970 rm -f conftest$ac_exeext
13971 if { (eval echo "$as_me:13971: \"$ac_link\"") >&5
13972 (eval $ac_link) 2>&5
13974 echo "$as_me:13974: \$? = $ac_status" >&5
13975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13976 { (eval echo "$as_me:13976: \"$ac_try\"") >&5
13977 (eval $ac_try) 2>&5
13979 echo "$as_me:13979: \$? = $ac_status" >&5
13980 (exit $ac_status); }; }; then
13983 echo "$as_me: program exited with status $ac_status" >&5
13984 echo "$as_me: failed program was:" >&5
13985 cat conftest.$ac_ext >&5
13986 ac_cv_header_stdc=no
13988 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13992 echo "$as_me:13992: result: $ac_cv_header_stdc" >&5
13993 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13994 if test $ac_cv_header_stdc = yes; then
13996 cat >>confdefs.h <<\EOF
13997 #define STDC_HEADERS 1
14002 ac_header_dirent=no
14003 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14004 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14005 echo "$as_me:14005: checking for $ac_hdr that defines DIR" >&5
14006 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
14007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14008 echo $ECHO_N "(cached) $ECHO_C" >&6
14010 cat >conftest.$ac_ext <<_ACEOF
14011 #line 14011 "configure"
14012 #include "confdefs.h"
14013 #include <sys/types.h>
14025 rm -f conftest.$ac_objext
14026 if { (eval echo "$as_me:14026: \"$ac_compile\"") >&5
14027 (eval $ac_compile) 2>&5
14029 echo "$as_me:14029: \$? = $ac_status" >&5
14030 (exit $ac_status); } &&
14031 { ac_try='test -s conftest.$ac_objext'
14032 { (eval echo "$as_me:14032: \"$ac_try\"") >&5
14033 (eval $ac_try) 2>&5
14035 echo "$as_me:14035: \$? = $ac_status" >&5
14036 (exit $ac_status); }; }; then
14037 eval "$as_ac_Header=yes"
14039 echo "$as_me: failed program was:" >&5
14040 cat conftest.$ac_ext >&5
14041 eval "$as_ac_Header=no"
14043 rm -f conftest.$ac_objext conftest.$ac_ext
14045 echo "$as_me:14045: result: `eval echo '${'$as_ac_Header'}'`" >&5
14046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14047 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14048 cat >>confdefs.h <<EOF
14049 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14052 ac_header_dirent=$ac_hdr; break
14056 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14057 if test $ac_header_dirent = dirent.h; then
14058 echo "$as_me:14058: checking for opendir in -ldir" >&5
14059 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
14060 if test "${ac_cv_lib_dir_opendir+set}" = set; then
14061 echo $ECHO_N "(cached) $ECHO_C" >&6
14063 ac_check_lib_save_LIBS=$LIBS
14065 cat >conftest.$ac_ext <<_ACEOF
14066 #line 14066 "configure"
14067 #include "confdefs.h"
14069 /* Override any gcc2 internal prototype to avoid an error. */
14073 /* We use char because int might match the return type of a gcc2
14074 builtin and then its argument prototype would still apply. */
14084 rm -f conftest.$ac_objext conftest$ac_exeext
14085 if { (eval echo "$as_me:14085: \"$ac_link\"") >&5
14086 (eval $ac_link) 2>&5
14088 echo "$as_me:14088: \$? = $ac_status" >&5
14089 (exit $ac_status); } &&
14090 { ac_try='test -s conftest$ac_exeext'
14091 { (eval echo "$as_me:14091: \"$ac_try\"") >&5
14092 (eval $ac_try) 2>&5
14094 echo "$as_me:14094: \$? = $ac_status" >&5
14095 (exit $ac_status); }; }; then
14096 ac_cv_lib_dir_opendir=yes
14098 echo "$as_me: failed program was:" >&5
14099 cat conftest.$ac_ext >&5
14100 ac_cv_lib_dir_opendir=no
14102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14103 LIBS=$ac_check_lib_save_LIBS
14105 echo "$as_me:14105: result: $ac_cv_lib_dir_opendir" >&5
14106 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
14107 if test $ac_cv_lib_dir_opendir = yes; then
14112 echo "$as_me:14112: checking for opendir in -lx" >&5
14113 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
14114 if test "${ac_cv_lib_x_opendir+set}" = set; then
14115 echo $ECHO_N "(cached) $ECHO_C" >&6
14117 ac_check_lib_save_LIBS=$LIBS
14119 cat >conftest.$ac_ext <<_ACEOF
14120 #line 14120 "configure"
14121 #include "confdefs.h"
14123 /* Override any gcc2 internal prototype to avoid an error. */
14127 /* We use char because int might match the return type of a gcc2
14128 builtin and then its argument prototype would still apply. */
14138 rm -f conftest.$ac_objext conftest$ac_exeext
14139 if { (eval echo "$as_me:14139: \"$ac_link\"") >&5
14140 (eval $ac_link) 2>&5
14142 echo "$as_me:14142: \$? = $ac_status" >&5
14143 (exit $ac_status); } &&
14144 { ac_try='test -s conftest$ac_exeext'
14145 { (eval echo "$as_me:14145: \"$ac_try\"") >&5
14146 (eval $ac_try) 2>&5
14148 echo "$as_me:14148: \$? = $ac_status" >&5
14149 (exit $ac_status); }; }; then
14150 ac_cv_lib_x_opendir=yes
14152 echo "$as_me: failed program was:" >&5
14153 cat conftest.$ac_ext >&5
14154 ac_cv_lib_x_opendir=no
14156 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14157 LIBS=$ac_check_lib_save_LIBS
14159 echo "$as_me:14159: result: $ac_cv_lib_x_opendir" >&5
14160 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
14161 if test $ac_cv_lib_x_opendir = yes; then
14167 echo "$as_me:14167: checking whether time.h and sys/time.h may both be included" >&5
14168 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
14169 if test "${ac_cv_header_time+set}" = set; then
14170 echo $ECHO_N "(cached) $ECHO_C" >&6
14172 cat >conftest.$ac_ext <<_ACEOF
14173 #line 14173 "configure"
14174 #include "confdefs.h"
14175 #include <sys/types.h>
14176 #include <sys/time.h>
14182 if ((struct tm *) 0)
14188 rm -f conftest.$ac_objext
14189 if { (eval echo "$as_me:14189: \"$ac_compile\"") >&5
14190 (eval $ac_compile) 2>&5
14192 echo "$as_me:14192: \$? = $ac_status" >&5
14193 (exit $ac_status); } &&
14194 { ac_try='test -s conftest.$ac_objext'
14195 { (eval echo "$as_me:14195: \"$ac_try\"") >&5
14196 (eval $ac_try) 2>&5
14198 echo "$as_me:14198: \$? = $ac_status" >&5
14199 (exit $ac_status); }; }; then
14200 ac_cv_header_time=yes
14202 echo "$as_me: failed program was:" >&5
14203 cat conftest.$ac_ext >&5
14204 ac_cv_header_time=no
14206 rm -f conftest.$ac_objext conftest.$ac_ext
14208 echo "$as_me:14208: result: $ac_cv_header_time" >&5
14209 echo "${ECHO_T}$ac_cv_header_time" >&6
14210 if test $ac_cv_header_time = yes; then
14212 cat >>confdefs.h <<\EOF
14213 #define TIME_WITH_SYS_TIME 1
14220 cf_regex_libs="regex re"
14221 case $host_os in #(vi
14223 cf_regex_libs="gnurx $cf_regex_libs"
14227 echo "$as_me:14227: checking for regcomp" >&5
14228 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
14229 if test "${ac_cv_func_regcomp+set}" = set; then
14230 echo $ECHO_N "(cached) $ECHO_C" >&6
14232 cat >conftest.$ac_ext <<_ACEOF
14233 #line 14233 "configure"
14234 #include "confdefs.h"
14235 /* System header to define __stub macros and hopefully few prototypes,
14236 which can conflict with char regcomp (); below. */
14237 #include <assert.h>
14238 /* Override any gcc2 internal prototype to avoid an error. */
14242 /* We use char because int might match the return type of a gcc2
14243 builtin and then its argument prototype would still apply. */
14250 /* The GNU C library defines this for functions which it implements
14251 to always fail with ENOSYS. Some functions are actually named
14252 something starting with __ and the normal name is an alias. */
14253 #if defined (__stub_regcomp) || defined (__stub___regcomp)
14256 f = regcomp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
14263 rm -f conftest.$ac_objext conftest$ac_exeext
14264 if { (eval echo "$as_me:14264: \"$ac_link\"") >&5
14265 (eval $ac_link) 2>&5
14267 echo "$as_me:14267: \$? = $ac_status" >&5
14268 (exit $ac_status); } &&
14269 { ac_try='test -s conftest$ac_exeext'
14270 { (eval echo "$as_me:14270: \"$ac_try\"") >&5
14271 (eval $ac_try) 2>&5
14273 echo "$as_me:14273: \$? = $ac_status" >&5
14274 (exit $ac_status); }; }; then
14275 ac_cv_func_regcomp=yes
14277 echo "$as_me: failed program was:" >&5
14278 cat conftest.$ac_ext >&5
14279 ac_cv_func_regcomp=no
14281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14283 echo "$as_me:14283: result: $ac_cv_func_regcomp" >&5
14284 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
14285 if test $ac_cv_func_regcomp = yes; then
14286 cf_regex_func=regcomp
14289 for cf_regex_lib in $cf_regex_libs
14291 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
14292 echo "$as_me:14292: checking for regcomp in -l$cf_regex_lib" >&5
14293 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
14294 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
14295 echo $ECHO_N "(cached) $ECHO_C" >&6
14297 ac_check_lib_save_LIBS=$LIBS
14298 LIBS="-l$cf_regex_lib $LIBS"
14299 cat >conftest.$ac_ext <<_ACEOF
14300 #line 14300 "configure"
14301 #include "confdefs.h"
14303 /* Override any gcc2 internal prototype to avoid an error. */
14307 /* We use char because int might match the return type of a gcc2
14308 builtin and then its argument prototype would still apply. */
14318 rm -f conftest.$ac_objext conftest$ac_exeext
14319 if { (eval echo "$as_me:14319: \"$ac_link\"") >&5
14320 (eval $ac_link) 2>&5
14322 echo "$as_me:14322: \$? = $ac_status" >&5
14323 (exit $ac_status); } &&
14324 { ac_try='test -s conftest$ac_exeext'
14325 { (eval echo "$as_me:14325: \"$ac_try\"") >&5
14326 (eval $ac_try) 2>&5
14328 echo "$as_me:14328: \$? = $ac_status" >&5
14329 (exit $ac_status); }; }; then
14330 eval "$as_ac_Lib=yes"
14332 echo "$as_me: failed program was:" >&5
14333 cat conftest.$ac_ext >&5
14334 eval "$as_ac_Lib=no"
14336 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14337 LIBS=$ac_check_lib_save_LIBS
14339 echo "$as_me:14339: result: `eval echo '${'$as_ac_Lib'}'`" >&5
14340 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
14341 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
14343 LIBS="-l$cf_regex_lib $LIBS"
14344 cf_regex_func=regcomp
14352 if test "$cf_regex_func" = no ; then
14353 echo "$as_me:14353: checking for compile" >&5
14354 echo $ECHO_N "checking for compile... $ECHO_C" >&6
14355 if test "${ac_cv_func_compile+set}" = set; then
14356 echo $ECHO_N "(cached) $ECHO_C" >&6
14358 cat >conftest.$ac_ext <<_ACEOF
14359 #line 14359 "configure"
14360 #include "confdefs.h"
14361 /* System header to define __stub macros and hopefully few prototypes,
14362 which can conflict with char compile (); below. */
14363 #include <assert.h>
14364 /* Override any gcc2 internal prototype to avoid an error. */
14368 /* We use char because int might match the return type of a gcc2
14369 builtin and then its argument prototype would still apply. */
14376 /* The GNU C library defines this for functions which it implements
14377 to always fail with ENOSYS. Some functions are actually named
14378 something starting with __ and the normal name is an alias. */
14379 #if defined (__stub_compile) || defined (__stub___compile)
14382 f = compile; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
14389 rm -f conftest.$ac_objext conftest$ac_exeext
14390 if { (eval echo "$as_me:14390: \"$ac_link\"") >&5
14391 (eval $ac_link) 2>&5
14393 echo "$as_me:14393: \$? = $ac_status" >&5
14394 (exit $ac_status); } &&
14395 { ac_try='test -s conftest$ac_exeext'
14396 { (eval echo "$as_me:14396: \"$ac_try\"") >&5
14397 (eval $ac_try) 2>&5
14399 echo "$as_me:14399: \$? = $ac_status" >&5
14400 (exit $ac_status); }; }; then
14401 ac_cv_func_compile=yes
14403 echo "$as_me: failed program was:" >&5
14404 cat conftest.$ac_ext >&5
14405 ac_cv_func_compile=no
14407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14409 echo "$as_me:14409: result: $ac_cv_func_compile" >&5
14410 echo "${ECHO_T}$ac_cv_func_compile" >&6
14411 if test $ac_cv_func_compile = yes; then
14412 cf_regex_func=compile
14415 echo "$as_me:14415: checking for compile in -lgen" >&5
14416 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
14417 if test "${ac_cv_lib_gen_compile+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. */
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_gen_compile=yes
14455 echo "$as_me: failed program was:" >&5
14456 cat conftest.$ac_ext >&5
14457 ac_cv_lib_gen_compile=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_gen_compile" >&5
14463 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
14464 if test $ac_cv_lib_gen_compile = yes; then
14467 cf_regex_func=compile
14474 if test "$cf_regex_func" = no ; then
14475 { echo "$as_me:14475: WARNING: cannot find regular expression library" >&5
14476 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
14479 echo "$as_me:14479: checking for regular-expression headers" >&5
14480 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
14481 if test "${cf_cv_regex_hdrs+set}" = set; then
14482 echo $ECHO_N "(cached) $ECHO_C" >&6
14485 cf_cv_regex_hdrs=no
14486 case $cf_regex_func in #(vi
14488 for cf_regex_hdr in regexp.h regexpr.h
14490 cat >conftest.$ac_ext <<_ACEOF
14491 #line 14491 "configure"
14492 #include "confdefs.h"
14493 #include <$cf_regex_hdr>
14498 char *p = compile("", "", "", 0);
14499 int x = step("", "");
14505 rm -f conftest.$ac_objext conftest$ac_exeext
14506 if { (eval echo "$as_me:14506: \"$ac_link\"") >&5
14507 (eval $ac_link) 2>&5
14509 echo "$as_me:14509: \$? = $ac_status" >&5
14510 (exit $ac_status); } &&
14511 { ac_try='test -s conftest$ac_exeext'
14512 { (eval echo "$as_me:14512: \"$ac_try\"") >&5
14513 (eval $ac_try) 2>&5
14515 echo "$as_me:14515: \$? = $ac_status" >&5
14516 (exit $ac_status); }; }; then
14518 cf_cv_regex_hdrs=$cf_regex_hdr
14522 echo "$as_me: failed program was:" >&5
14523 cat conftest.$ac_ext >&5
14525 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14529 for cf_regex_hdr in regex.h
14531 cat >conftest.$ac_ext <<_ACEOF
14532 #line 14532 "configure"
14533 #include "confdefs.h"
14534 #include <sys/types.h>
14535 #include <$cf_regex_hdr>
14541 int x = regcomp(p, "", 0);
14542 int y = regexec(p, "", 0, 0, 0);
14549 rm -f conftest.$ac_objext conftest$ac_exeext
14550 if { (eval echo "$as_me:14550: \"$ac_link\"") >&5
14551 (eval $ac_link) 2>&5
14553 echo "$as_me:14553: \$? = $ac_status" >&5
14554 (exit $ac_status); } &&
14555 { ac_try='test -s conftest$ac_exeext'
14556 { (eval echo "$as_me:14556: \"$ac_try\"") >&5
14557 (eval $ac_try) 2>&5
14559 echo "$as_me:14559: \$? = $ac_status" >&5
14560 (exit $ac_status); }; }; then
14562 cf_cv_regex_hdrs=$cf_regex_hdr
14566 echo "$as_me: failed program was:" >&5
14567 cat conftest.$ac_ext >&5
14569 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14575 echo "$as_me:14575: result: $cf_cv_regex_hdrs" >&5
14576 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
14578 case $cf_cv_regex_hdrs in #(vi
14579 no) { echo "$as_me:14579: WARNING: no regular expression header found" >&5
14580 echo "$as_me: WARNING: no regular expression header found" >&2;} ;; #(vi
14582 cat >>confdefs.h <<\EOF
14583 #define HAVE_REGEX_H_FUNCS 1
14587 cat >>confdefs.h <<\EOF
14588 #define HAVE_REGEXP_H_FUNCS 1
14592 cat >>confdefs.h <<\EOF
14593 #define HAVE_REGEXPR_H_FUNCS 1
14617 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14618 echo "$as_me:14618: checking for $ac_header" >&5
14619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14621 echo $ECHO_N "(cached) $ECHO_C" >&6
14623 cat >conftest.$ac_ext <<_ACEOF
14624 #line 14624 "configure"
14625 #include "confdefs.h"
14626 #include <$ac_header>
14628 if { (eval echo "$as_me:14628: \"$ac_cpp conftest.$ac_ext\"") >&5
14629 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14631 egrep -v '^ *\+' conftest.er1 >conftest.err
14633 cat conftest.err >&5
14634 echo "$as_me:14634: \$? = $ac_status" >&5
14635 (exit $ac_status); } >/dev/null; then
14636 if test -s conftest.err; then
14637 ac_cpp_err=$ac_c_preproc_warn_flag
14644 if test -z "$ac_cpp_err"; then
14645 eval "$as_ac_Header=yes"
14647 echo "$as_me: failed program was:" >&5
14648 cat conftest.$ac_ext >&5
14649 eval "$as_ac_Header=no"
14651 rm -f conftest.err conftest.$ac_ext
14653 echo "$as_me:14653: result: `eval echo '${'$as_ac_Header'}'`" >&5
14654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14656 cat >>confdefs.h <<EOF
14657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14663 for ac_header in unistd.h getopt.h
14665 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14666 echo "$as_me:14666: checking for $ac_header" >&5
14667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14669 echo $ECHO_N "(cached) $ECHO_C" >&6
14671 cat >conftest.$ac_ext <<_ACEOF
14672 #line 14672 "configure"
14673 #include "confdefs.h"
14674 #include <$ac_header>
14676 if { (eval echo "$as_me:14676: \"$ac_cpp conftest.$ac_ext\"") >&5
14677 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14679 egrep -v '^ *\+' conftest.er1 >conftest.err
14681 cat conftest.err >&5
14682 echo "$as_me:14682: \$? = $ac_status" >&5
14683 (exit $ac_status); } >/dev/null; then
14684 if test -s conftest.err; then
14685 ac_cpp_err=$ac_c_preproc_warn_flag
14692 if test -z "$ac_cpp_err"; then
14693 eval "$as_ac_Header=yes"
14695 echo "$as_me: failed program was:" >&5
14696 cat conftest.$ac_ext >&5
14697 eval "$as_ac_Header=no"
14699 rm -f conftest.err conftest.$ac_ext
14701 echo "$as_me:14701: result: `eval echo '${'$as_ac_Header'}'`" >&5
14702 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14704 cat >>confdefs.h <<EOF
14705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14711 echo "$as_me:14711: checking for header declaring getopt variables" >&5
14712 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
14713 if test "${cf_cv_getopt_header+set}" = set; then
14714 echo $ECHO_N "(cached) $ECHO_C" >&6
14717 cf_cv_getopt_header=none
14718 for cf_header in stdio.h stdlib.h unistd.h getopt.h
14720 cat >conftest.$ac_ext <<_ACEOF
14721 #line 14721 "configure"
14722 #include "confdefs.h"
14724 #include <$cf_header>
14728 int x = optind; char *y = optarg
14733 rm -f conftest.$ac_objext
14734 if { (eval echo "$as_me:14734: \"$ac_compile\"") >&5
14735 (eval $ac_compile) 2>&5
14737 echo "$as_me:14737: \$? = $ac_status" >&5
14738 (exit $ac_status); } &&
14739 { ac_try='test -s conftest.$ac_objext'
14740 { (eval echo "$as_me:14740: \"$ac_try\"") >&5
14741 (eval $ac_try) 2>&5
14743 echo "$as_me:14743: \$? = $ac_status" >&5
14744 (exit $ac_status); }; }; then
14745 cf_cv_getopt_header=$cf_header
14748 echo "$as_me: failed program was:" >&5
14749 cat conftest.$ac_ext >&5
14751 rm -f conftest.$ac_objext conftest.$ac_ext
14755 echo "$as_me:14755: result: $cf_cv_getopt_header" >&5
14756 echo "${ECHO_T}$cf_cv_getopt_header" >&6
14757 if test $cf_cv_getopt_header != none ; then
14759 cat >>confdefs.h <<\EOF
14760 #define HAVE_GETOPT_HEADER 1
14765 # check for ISC (this may also define _POSIX_SOURCE)
14766 # Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
14767 if test "x$ISC" = xyes ; then
14769 echo "$as_me:14769: checking for main in -lcposix" >&5
14770 echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6
14771 if test "${ac_cv_lib_cposix_main+set}" = set; then
14772 echo $ECHO_N "(cached) $ECHO_C" >&6
14774 ac_check_lib_save_LIBS=$LIBS
14775 LIBS="-lcposix $LIBS"
14776 cat >conftest.$ac_ext <<_ACEOF
14777 #line 14777 "configure"
14778 #include "confdefs.h"
14788 rm -f conftest.$ac_objext conftest$ac_exeext
14789 if { (eval echo "$as_me:14789: \"$ac_link\"") >&5
14790 (eval $ac_link) 2>&5
14792 echo "$as_me:14792: \$? = $ac_status" >&5
14793 (exit $ac_status); } &&
14794 { ac_try='test -s conftest$ac_exeext'
14795 { (eval echo "$as_me:14795: \"$ac_try\"") >&5
14796 (eval $ac_try) 2>&5
14798 echo "$as_me:14798: \$? = $ac_status" >&5
14799 (exit $ac_status); }; }; then
14800 ac_cv_lib_cposix_main=yes
14802 echo "$as_me: failed program was:" >&5
14803 cat conftest.$ac_ext >&5
14804 ac_cv_lib_cposix_main=no
14806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14807 LIBS=$ac_check_lib_save_LIBS
14809 echo "$as_me:14809: result: $ac_cv_lib_cposix_main" >&5
14810 echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6
14811 if test $ac_cv_lib_cposix_main = yes; then
14812 cat >>confdefs.h <<EOF
14813 #define HAVE_LIBCPOSIX 1
14816 LIBS="-lcposix $LIBS"
14820 echo "$as_me:14820: checking for bzero in -linet" >&5
14821 echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6
14822 if test "${ac_cv_lib_inet_bzero+set}" = set; then
14823 echo $ECHO_N "(cached) $ECHO_C" >&6
14825 ac_check_lib_save_LIBS=$LIBS
14826 LIBS="-linet $LIBS"
14827 cat >conftest.$ac_ext <<_ACEOF
14828 #line 14828 "configure"
14829 #include "confdefs.h"
14831 /* Override any gcc2 internal prototype to avoid an error. */
14835 /* We use char because int might match the return type of a gcc2
14836 builtin and then its argument prototype would still apply. */
14846 rm -f conftest.$ac_objext conftest$ac_exeext
14847 if { (eval echo "$as_me:14847: \"$ac_link\"") >&5
14848 (eval $ac_link) 2>&5
14850 echo "$as_me:14850: \$? = $ac_status" >&5
14851 (exit $ac_status); } &&
14852 { ac_try='test -s conftest$ac_exeext'
14853 { (eval echo "$as_me:14853: \"$ac_try\"") >&5
14854 (eval $ac_try) 2>&5
14856 echo "$as_me:14856: \$? = $ac_status" >&5
14857 (exit $ac_status); }; }; then
14858 ac_cv_lib_inet_bzero=yes
14860 echo "$as_me: failed program was:" >&5
14861 cat conftest.$ac_ext >&5
14862 ac_cv_lib_inet_bzero=no
14864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14865 LIBS=$ac_check_lib_save_LIBS
14867 echo "$as_me:14867: result: $ac_cv_lib_inet_bzero" >&5
14868 echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6
14869 if test $ac_cv_lib_inet_bzero = yes; then
14870 LIBS="-linet $LIBS"
14874 echo "$as_me:14874: checking if sys/time.h works with sys/select.h" >&5
14875 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
14876 if test "${cf_cv_sys_time_select+set}" = set; then
14877 echo $ECHO_N "(cached) $ECHO_C" >&6
14880 cat >conftest.$ac_ext <<_ACEOF
14881 #line 14881 "configure"
14882 #include "confdefs.h"
14884 #include <sys/types.h>
14885 #ifdef HAVE_SYS_TIME_H
14886 #include <sys/time.h>
14888 #ifdef HAVE_SYS_SELECT_H
14889 #include <sys/select.h>
14900 rm -f conftest.$ac_objext
14901 if { (eval echo "$as_me:14901: \"$ac_compile\"") >&5
14902 (eval $ac_compile) 2>&5
14904 echo "$as_me:14904: \$? = $ac_status" >&5
14905 (exit $ac_status); } &&
14906 { ac_try='test -s conftest.$ac_objext'
14907 { (eval echo "$as_me:14907: \"$ac_try\"") >&5
14908 (eval $ac_try) 2>&5
14910 echo "$as_me:14910: \$? = $ac_status" >&5
14911 (exit $ac_status); }; }; then
14912 cf_cv_sys_time_select=yes
14914 echo "$as_me: failed program was:" >&5
14915 cat conftest.$ac_ext >&5
14916 cf_cv_sys_time_select=no
14918 rm -f conftest.$ac_objext conftest.$ac_ext
14922 echo "$as_me:14922: result: $cf_cv_sys_time_select" >&5
14923 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
14924 test "$cf_cv_sys_time_select" = yes &&
14925 cat >>confdefs.h <<\EOF
14926 #define HAVE_SYS_TIME_SELECT 1
14929 ### checks for compiler characteristics
14931 ac_cpp='$CPP $CPPFLAGS'
14932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14935 ac_main_return=return
14937 echo "$as_me:14937: checking for an ANSI C-conforming const" >&5
14938 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14939 if test "${ac_cv_c_const+set}" = set; then
14940 echo $ECHO_N "(cached) $ECHO_C" >&6
14942 cat >conftest.$ac_ext <<_ACEOF
14943 #line 14943 "configure"
14944 #include "confdefs.h"
14949 /* FIXME: Include the comments suggested by Paul. */
14950 #ifndef __cplusplus
14951 /* Ultrix mips cc rejects this. */
14952 typedef int charset[2];
14954 /* SunOS 4.1.1 cc rejects this. */
14955 char const *const *ccp;
14957 /* NEC SVR4.0.2 mips cc rejects this. */
14958 struct point {int x, y;};
14959 static struct point const zero = {0,0};
14960 /* AIX XL C 1.02.0.0 rejects this.
14961 It does not let you subtract one const X* pointer from another in
14962 an arm of an if-expression whose if-part is not a constant
14964 const char *g = "string";
14965 ccp = &g + (g ? g-g : 0);
14966 /* HPUX 7.0 cc rejects these. */
14969 ccp = (char const *const *) p;
14970 { /* SCO 3.2v4 cc rejects this. */
14972 char const *s = 0 ? (char *) 0 : (char const *) 0;
14976 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14977 int x[] = {25, 17};
14978 const int *foo = &x[0];
14981 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14982 typedef const int *iptr;
14986 { /* AIX XL C 1.02.0.0 rejects this saying
14987 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14988 struct s { int j; const int *ap[3]; };
14989 struct s *b; b->j = 5;
14991 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14992 const int foo = 10;
15000 rm -f conftest.$ac_objext
15001 if { (eval echo "$as_me:15001: \"$ac_compile\"") >&5
15002 (eval $ac_compile) 2>&5
15004 echo "$as_me:15004: \$? = $ac_status" >&5
15005 (exit $ac_status); } &&
15006 { ac_try='test -s conftest.$ac_objext'
15007 { (eval echo "$as_me:15007: \"$ac_try\"") >&5
15008 (eval $ac_try) 2>&5
15010 echo "$as_me:15010: \$? = $ac_status" >&5
15011 (exit $ac_status); }; }; then
15014 echo "$as_me: failed program was:" >&5
15015 cat conftest.$ac_ext >&5
15018 rm -f conftest.$ac_objext conftest.$ac_ext
15020 echo "$as_me:15020: result: $ac_cv_c_const" >&5
15021 echo "${ECHO_T}$ac_cv_c_const" >&6
15022 if test $ac_cv_c_const = no; then
15024 cat >>confdefs.h <<\EOF
15030 echo "$as_me:15030: checking for inline" >&5
15031 echo $ECHO_N "checking for inline... $ECHO_C" >&6
15032 if test "${ac_cv_c_inline+set}" = set; then
15033 echo $ECHO_N "(cached) $ECHO_C" >&6
15036 for ac_kw in inline __inline__ __inline; do
15037 cat >conftest.$ac_ext <<_ACEOF
15038 #line 15038 "configure"
15039 #include "confdefs.h"
15040 #ifndef __cplusplus
15041 static $ac_kw int static_foo () {return 0; }
15042 $ac_kw int foo () {return 0; }
15046 rm -f conftest.$ac_objext
15047 if { (eval echo "$as_me:15047: \"$ac_compile\"") >&5
15048 (eval $ac_compile) 2>&5
15050 echo "$as_me:15050: \$? = $ac_status" >&5
15051 (exit $ac_status); } &&
15052 { ac_try='test -s conftest.$ac_objext'
15053 { (eval echo "$as_me:15053: \"$ac_try\"") >&5
15054 (eval $ac_try) 2>&5
15056 echo "$as_me:15056: \$? = $ac_status" >&5
15057 (exit $ac_status); }; }; then
15058 ac_cv_c_inline=$ac_kw; break
15060 echo "$as_me: failed program was:" >&5
15061 cat conftest.$ac_ext >&5
15063 rm -f conftest.$ac_objext conftest.$ac_ext
15067 echo "$as_me:15067: result: $ac_cv_c_inline" >&5
15068 echo "${ECHO_T}$ac_cv_c_inline" >&6
15069 case $ac_cv_c_inline in
15072 cat >>confdefs.h <<\EOF
15076 *) cat >>confdefs.h <<EOF
15077 #define inline $ac_cv_c_inline
15083 if test "$ac_cv_c_inline" != no ; then
15084 NCURSES_INLINE=inline
15085 if test "$INTEL_COMPILER" = yes
15088 elif test "$CLANG_COMPILER" = yes
15091 elif test "$GCC" = yes
15093 echo "$as_me:15093: checking if $CC supports options to tune inlining" >&5
15094 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
15095 if test "${cf_cv_gcc_inline+set}" = set; then
15096 echo $ECHO_N "(cached) $ECHO_C" >&6
15099 cf_save_CFLAGS=$CFLAGS
15100 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
15101 cat >conftest.$ac_ext <<_ACEOF
15102 #line 15102 "configure"
15103 #include "confdefs.h"
15104 inline int foo(void) { return 1; }
15108 ${cf_cv_main_return:-return} foo()
15113 rm -f conftest.$ac_objext
15114 if { (eval echo "$as_me:15114: \"$ac_compile\"") >&5
15115 (eval $ac_compile) 2>&5
15117 echo "$as_me:15117: \$? = $ac_status" >&5
15118 (exit $ac_status); } &&
15119 { ac_try='test -s conftest.$ac_objext'
15120 { (eval echo "$as_me:15120: \"$ac_try\"") >&5
15121 (eval $ac_try) 2>&5
15123 echo "$as_me:15123: \$? = $ac_status" >&5
15124 (exit $ac_status); }; }; then
15125 cf_cv_gcc_inline=yes
15127 echo "$as_me: failed program was:" >&5
15128 cat conftest.$ac_ext >&5
15129 cf_cv_gcc_inline=no
15131 rm -f conftest.$ac_objext conftest.$ac_ext
15132 CFLAGS=$cf_save_CFLAGS
15135 echo "$as_me:15135: result: $cf_cv_gcc_inline" >&5
15136 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
15137 if test "$cf_cv_gcc_inline" = yes ; then
15142 cf_new_extra_cppflags=
15144 for cf_add_cflags in --param max-inline-insns-single=1200
15146 case $cf_fix_cppflags in
15148 case $cf_add_cflags in #(vi
15149 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
15150 case $cf_add_cflags in
15152 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15154 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
15155 && test -z "${cf_tst_cflags}" \
15156 && cf_fix_cppflags=yes
15158 if test $cf_fix_cppflags = yes ; then
15159 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15161 elif test "${cf_tst_cflags}" = "\"'" ; then
15162 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15167 case "$CPPFLAGS" in
15168 *$cf_add_cflags) #(vi
15171 case $cf_add_cflags in #(vi
15173 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15175 CPPFLAGS=`echo "$CPPFLAGS" | \
15176 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15177 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15181 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
15186 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
15191 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15193 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
15195 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
15196 && test -z "${cf_tst_cflags}" \
15197 && cf_fix_cppflags=no
15202 if test -n "$cf_new_cflags" ; then
15204 CFLAGS="$CFLAGS $cf_new_cflags"
15207 if test -n "$cf_new_cppflags" ; then
15209 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
15212 if test -n "$cf_new_extra_cppflags" ; then
15214 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
15221 echo "$as_me:15221: checking for signal global datatype" >&5
15222 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
15223 if test "${cf_cv_sig_atomic_t+set}" = set; then
15224 echo $ECHO_N "(cached) $ECHO_C" >&6
15228 "volatile sig_atomic_t" \
15232 cat >conftest.$ac_ext <<_ACEOF
15233 #line 15233 "configure"
15234 #include "confdefs.h"
15236 #include <sys/types.h>
15237 #include <signal.h>
15242 static void handler(int sig)
15249 signal(SIGINT, handler);
15255 rm -f conftest.$ac_objext
15256 if { (eval echo "$as_me:15256: \"$ac_compile\"") >&5
15257 (eval $ac_compile) 2>&5
15259 echo "$as_me:15259: \$? = $ac_status" >&5
15260 (exit $ac_status); } &&
15261 { ac_try='test -s conftest.$ac_objext'
15262 { (eval echo "$as_me:15262: \"$ac_try\"") >&5
15263 (eval $ac_try) 2>&5
15265 echo "$as_me:15265: \$? = $ac_status" >&5
15266 (exit $ac_status); }; }; then
15267 cf_cv_sig_atomic_t=$cf_type
15269 echo "$as_me: failed program was:" >&5
15270 cat conftest.$ac_ext >&5
15271 cf_cv_sig_atomic_t=no
15273 rm -f conftest.$ac_objext conftest.$ac_ext
15274 test "$cf_cv_sig_atomic_t" != no && break
15279 echo "$as_me:15279: result: $cf_cv_sig_atomic_t" >&5
15280 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
15281 test "$cf_cv_sig_atomic_t" != no &&
15282 cat >>confdefs.h <<EOF
15283 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
15286 if test $NCURSES_CHTYPE = auto ; then
15288 echo "$as_me:15288: checking for type of chtype" >&5
15289 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
15290 if test "${cf_cv_typeof_chtype+set}" = set; then
15291 echo $ECHO_N "(cached) $ECHO_C" >&6
15294 if test "$cross_compiling" = yes; then
15295 cf_cv_typeof_chtype=long
15297 cat >conftest.$ac_ext <<_ACEOF
15298 #line 15298 "configure"
15299 #include "confdefs.h"
15301 #define WANT_BITS 31
15305 FILE *fp = fopen("cf_test.out", "w");
15307 char *result = "long";
15308 if (sizeof(unsigned long) > sizeof(unsigned int)) {
15311 for (n = 0; n < WANT_BITS; n++) {
15314 if (y != 1 || x == 0) {
15320 * If x is nonzero, an int is big enough for the bits
15323 result = (x != 0) ? "int" : "long";
15328 ${cf_cv_main_return:-return}(0);
15332 rm -f conftest$ac_exeext
15333 if { (eval echo "$as_me:15333: \"$ac_link\"") >&5
15334 (eval $ac_link) 2>&5
15336 echo "$as_me:15336: \$? = $ac_status" >&5
15337 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15338 { (eval echo "$as_me:15338: \"$ac_try\"") >&5
15339 (eval $ac_try) 2>&5
15341 echo "$as_me:15341: \$? = $ac_status" >&5
15342 (exit $ac_status); }; }; then
15343 cf_cv_typeof_chtype=`cat cf_test.out`
15345 echo "$as_me: program exited with status $ac_status" >&5
15346 echo "$as_me: failed program was:" >&5
15347 cat conftest.$ac_ext >&5
15348 cf_cv_typeof_chtype=long
15350 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15356 echo "$as_me:15356: result: $cf_cv_typeof_chtype" >&5
15357 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
15359 cat >>confdefs.h <<EOF
15360 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
15364 cf_cv_typeof_chtype=$NCURSES_CHTYPE
15366 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
15368 echo "$as_me:15368: checking if unsigned literals are legal" >&5
15369 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
15370 if test "${cf_cv_unsigned_literals+set}" = set; then
15371 echo $ECHO_N "(cached) $ECHO_C" >&6
15374 cat >conftest.$ac_ext <<_ACEOF
15375 #line 15375 "configure"
15376 #include "confdefs.h"
15381 long x = 1L + 1UL + 1U + 1
15386 rm -f conftest.$ac_objext
15387 if { (eval echo "$as_me:15387: \"$ac_compile\"") >&5
15388 (eval $ac_compile) 2>&5
15390 echo "$as_me:15390: \$? = $ac_status" >&5
15391 (exit $ac_status); } &&
15392 { ac_try='test -s conftest.$ac_objext'
15393 { (eval echo "$as_me:15393: \"$ac_try\"") >&5
15394 (eval $ac_try) 2>&5
15396 echo "$as_me:15396: \$? = $ac_status" >&5
15397 (exit $ac_status); }; }; then
15398 cf_cv_unsigned_literals=yes
15400 echo "$as_me: failed program was:" >&5
15401 cat conftest.$ac_ext >&5
15402 cf_cv_unsigned_literals=no
15404 rm -f conftest.$ac_objext conftest.$ac_ext
15408 echo "$as_me:15408: result: $cf_cv_unsigned_literals" >&5
15409 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
15412 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
15413 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
15415 if test $NCURSES_MMASK_T = auto ; then
15416 cf_cv_typeof_mmask_t=long
15418 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
15420 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
15422 ### Checks for external-data
15424 echo "$as_me:15424: checking if external errno is declared" >&5
15425 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
15426 if test "${cf_cv_dcl_errno+set}" = set; then
15427 echo $ECHO_N "(cached) $ECHO_C" >&6
15430 cat >conftest.$ac_ext <<_ACEOF
15431 #line 15431 "configure"
15432 #include "confdefs.h"
15434 #ifdef HAVE_STDLIB_H
15435 #include <stdlib.h>
15438 #include <sys/types.h>
15443 int x = (int) errno
15448 rm -f conftest.$ac_objext
15449 if { (eval echo "$as_me:15449: \"$ac_compile\"") >&5
15450 (eval $ac_compile) 2>&5
15452 echo "$as_me:15452: \$? = $ac_status" >&5
15453 (exit $ac_status); } &&
15454 { ac_try='test -s conftest.$ac_objext'
15455 { (eval echo "$as_me:15455: \"$ac_try\"") >&5
15456 (eval $ac_try) 2>&5
15458 echo "$as_me:15458: \$? = $ac_status" >&5
15459 (exit $ac_status); }; }; then
15460 cf_cv_dcl_errno=yes
15462 echo "$as_me: failed program was:" >&5
15463 cat conftest.$ac_ext >&5
15466 rm -f conftest.$ac_objext conftest.$ac_ext
15469 echo "$as_me:15469: result: $cf_cv_dcl_errno" >&5
15470 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
15472 if test "$cf_cv_dcl_errno" = no ; then
15474 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15476 cat >>confdefs.h <<EOF
15477 #define $cf_result 1
15482 # It's possible (for near-UNIX clones) that the data doesn't exist
15484 echo "$as_me:15484: checking if external errno exists" >&5
15485 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
15486 if test "${cf_cv_have_errno+set}" = set; then
15487 echo $ECHO_N "(cached) $ECHO_C" >&6
15490 cat >conftest.$ac_ext <<_ACEOF
15491 #line 15491 "configure"
15492 #include "confdefs.h"
15505 rm -f conftest.$ac_objext conftest$ac_exeext
15506 if { (eval echo "$as_me:15506: \"$ac_link\"") >&5
15507 (eval $ac_link) 2>&5
15509 echo "$as_me:15509: \$? = $ac_status" >&5
15510 (exit $ac_status); } &&
15511 { ac_try='test -s conftest$ac_exeext'
15512 { (eval echo "$as_me:15512: \"$ac_try\"") >&5
15513 (eval $ac_try) 2>&5
15515 echo "$as_me:15515: \$? = $ac_status" >&5
15516 (exit $ac_status); }; }; then
15517 cf_cv_have_errno=yes
15519 echo "$as_me: failed program was:" >&5
15520 cat conftest.$ac_ext >&5
15521 cf_cv_have_errno=no
15523 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15526 echo "$as_me:15526: result: $cf_cv_have_errno" >&5
15527 echo "${ECHO_T}$cf_cv_have_errno" >&6
15529 if test "$cf_cv_have_errno" = yes ; then
15531 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15533 cat >>confdefs.h <<EOF
15534 #define $cf_result 1
15539 echo "$as_me:15539: checking if data-only library module links" >&5
15540 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
15541 if test "${cf_cv_link_dataonly+set}" = set; then
15542 echo $ECHO_N "(cached) $ECHO_C" >&6
15546 cat >conftest.$ac_ext <<EOF
15547 #line 15547 "configure"
15548 int testdata[3] = { 123, 456, 789 };
15550 if { (eval echo "$as_me:15550: \"$ac_compile\"") >&5
15551 (eval $ac_compile) 2>&5
15553 echo "$as_me:15553: \$? = $ac_status" >&5
15554 (exit $ac_status); } ; then
15555 mv conftest.o data.o && \
15556 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
15558 rm -f conftest.$ac_ext data.o
15559 cat >conftest.$ac_ext <<EOF
15560 #line 15560 "configure"
15564 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
15566 extern int testdata[3];
15567 return testdata[0] == 123
15568 && testdata[1] == 456
15569 && testdata[2] == 789;
15573 if { (eval echo "$as_me:15573: \"$ac_compile\"") >&5
15574 (eval $ac_compile) 2>&5
15576 echo "$as_me:15576: \$? = $ac_status" >&5
15577 (exit $ac_status); }; then
15578 mv conftest.o func.o && \
15579 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
15581 rm -f conftest.$ac_ext func.o
15582 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
15583 cf_saveLIBS="$LIBS"
15584 LIBS="conftest.a $LIBS"
15585 if test "$cross_compiling" = yes; then
15586 cf_cv_link_dataonly=unknown
15588 cat >conftest.$ac_ext <<_ACEOF
15589 #line 15589 "configure"
15590 #include "confdefs.h"
15594 extern int testfunc();
15595 ${cf_cv_main_return:-return} (!testfunc());
15599 rm -f conftest$ac_exeext
15600 if { (eval echo "$as_me:15600: \"$ac_link\"") >&5
15601 (eval $ac_link) 2>&5
15603 echo "$as_me:15603: \$? = $ac_status" >&5
15604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15605 { (eval echo "$as_me:15605: \"$ac_try\"") >&5
15606 (eval $ac_try) 2>&5
15608 echo "$as_me:15608: \$? = $ac_status" >&5
15609 (exit $ac_status); }; }; then
15610 cf_cv_link_dataonly=yes
15612 echo "$as_me: program exited with status $ac_status" >&5
15613 echo "$as_me: failed program was:" >&5
15614 cat conftest.$ac_ext >&5
15615 cf_cv_link_dataonly=no
15617 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15619 LIBS="$cf_saveLIBS"
15623 echo "$as_me:15623: result: $cf_cv_link_dataonly" >&5
15624 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
15626 if test "$cf_cv_link_dataonly" = no ; then
15628 cat >>confdefs.h <<\EOF
15629 #define BROKEN_LINKER 1
15635 ### Checks for library functions.
15660 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15661 echo "$as_me:15661: checking for $ac_func" >&5
15662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15663 if eval "test \"\${$as_ac_var+set}\" = set"; then
15664 echo $ECHO_N "(cached) $ECHO_C" >&6
15666 cat >conftest.$ac_ext <<_ACEOF
15667 #line 15667 "configure"
15668 #include "confdefs.h"
15669 /* System header to define __stub macros and hopefully few prototypes,
15670 which can conflict with char $ac_func (); below. */
15671 #include <assert.h>
15672 /* Override any gcc2 internal prototype to avoid an error. */
15676 /* We use char because int might match the return type of a gcc2
15677 builtin and then its argument prototype would still apply. */
15684 /* The GNU C library defines this for functions which it implements
15685 to always fail with ENOSYS. Some functions are actually named
15686 something starting with __ and the normal name is an alias. */
15687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15690 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
15697 rm -f conftest.$ac_objext conftest$ac_exeext
15698 if { (eval echo "$as_me:15698: \"$ac_link\"") >&5
15699 (eval $ac_link) 2>&5
15701 echo "$as_me:15701: \$? = $ac_status" >&5
15702 (exit $ac_status); } &&
15703 { ac_try='test -s conftest$ac_exeext'
15704 { (eval echo "$as_me:15704: \"$ac_try\"") >&5
15705 (eval $ac_try) 2>&5
15707 echo "$as_me:15707: \$? = $ac_status" >&5
15708 (exit $ac_status); }; }; then
15709 eval "$as_ac_var=yes"
15711 echo "$as_me: failed program was:" >&5
15712 cat conftest.$ac_ext >&5
15713 eval "$as_ac_var=no"
15715 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15717 echo "$as_me:15717: result: `eval echo '${'$as_ac_var'}'`" >&5
15718 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15719 if test `eval echo '${'$as_ac_var'}'` = yes; then
15720 cat >>confdefs.h <<EOF
15721 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15727 if test "x$with_getcap" = "xyes" ; then
15729 echo "$as_me:15729: checking for terminal-capability database functions" >&5
15730 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
15731 if test "${cf_cv_cgetent+set}" = set; then
15732 echo $ECHO_N "(cached) $ECHO_C" >&6
15735 cat >conftest.$ac_ext <<_ACEOF
15736 #line 15736 "configure"
15737 #include "confdefs.h"
15739 #include <stdlib.h>
15746 char *db_array = temp;
15747 cgetent(&buf, &db_array, "vt100");
15748 cgetcap(buf, "tc", '=');
15749 cgetmatch(buf, "tc");
15755 rm -f conftest.$ac_objext conftest$ac_exeext
15756 if { (eval echo "$as_me:15756: \"$ac_link\"") >&5
15757 (eval $ac_link) 2>&5
15759 echo "$as_me:15759: \$? = $ac_status" >&5
15760 (exit $ac_status); } &&
15761 { ac_try='test -s conftest$ac_exeext'
15762 { (eval echo "$as_me:15762: \"$ac_try\"") >&5
15763 (eval $ac_try) 2>&5
15765 echo "$as_me:15765: \$? = $ac_status" >&5
15766 (exit $ac_status); }; }; then
15769 echo "$as_me: failed program was:" >&5
15770 cat conftest.$ac_ext >&5
15773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15776 echo "$as_me:15776: result: $cf_cv_cgetent" >&5
15777 echo "${ECHO_T}$cf_cv_cgetent" >&6
15779 if test "$cf_cv_cgetent" = yes
15782 cat >>confdefs.h <<\EOF
15783 #define HAVE_BSD_CGETENT 1
15786 echo "$as_me:15786: checking if cgetent uses const parameter" >&5
15787 echo $ECHO_N "checking if cgetent uses const parameter... $ECHO_C" >&6
15788 if test "${cf_cv_cgetent_const+set}" = set; then
15789 echo $ECHO_N "(cached) $ECHO_C" >&6
15792 cat >conftest.$ac_ext <<_ACEOF
15793 #line 15793 "configure"
15794 #include "confdefs.h"
15796 #include <stdlib.h>
15803 #ifndef _NETBSD_SOURCE /* given, since April 2004 in stdlib.h */
15804 const char *db_array = temp;
15805 cgetent(&buf, &db_array, "vt100");
15807 cgetcap(buf, "tc", '=');
15808 cgetmatch(buf, "tc");
15814 rm -f conftest.$ac_objext conftest$ac_exeext
15815 if { (eval echo "$as_me:15815: \"$ac_link\"") >&5
15816 (eval $ac_link) 2>&5
15818 echo "$as_me:15818: \$? = $ac_status" >&5
15819 (exit $ac_status); } &&
15820 { ac_try='test -s conftest$ac_exeext'
15821 { (eval echo "$as_me:15821: \"$ac_try\"") >&5
15822 (eval $ac_try) 2>&5
15824 echo "$as_me:15824: \$? = $ac_status" >&5
15825 (exit $ac_status); }; }; then
15826 cf_cv_cgetent_const=yes
15828 echo "$as_me: failed program was:" >&5
15829 cat conftest.$ac_ext >&5
15830 cf_cv_cgetent_const=no
15832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15835 echo "$as_me:15835: result: $cf_cv_cgetent_const" >&5
15836 echo "${ECHO_T}$cf_cv_cgetent_const" >&6
15837 if test "$cf_cv_cgetent_const" = yes
15840 cat >>confdefs.h <<EOF
15841 #define CGETENT_CONST const
15849 echo "$as_me:15849: checking for isascii" >&5
15850 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
15851 if test "${cf_cv_have_isascii+set}" = set; then
15852 echo $ECHO_N "(cached) $ECHO_C" >&6
15855 cat >conftest.$ac_ext <<_ACEOF
15856 #line 15856 "configure"
15857 #include "confdefs.h"
15862 int x = isascii(' ')
15867 rm -f conftest.$ac_objext conftest$ac_exeext
15868 if { (eval echo "$as_me:15868: \"$ac_link\"") >&5
15869 (eval $ac_link) 2>&5
15871 echo "$as_me:15871: \$? = $ac_status" >&5
15872 (exit $ac_status); } &&
15873 { ac_try='test -s conftest$ac_exeext'
15874 { (eval echo "$as_me:15874: \"$ac_try\"") >&5
15875 (eval $ac_try) 2>&5
15877 echo "$as_me:15877: \$? = $ac_status" >&5
15878 (exit $ac_status); }; }; then
15879 cf_cv_have_isascii=yes
15881 echo "$as_me: failed program was:" >&5
15882 cat conftest.$ac_ext >&5
15883 cf_cv_have_isascii=no
15885 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15888 echo "$as_me:15888: result: $cf_cv_have_isascii" >&5
15889 echo "${ECHO_T}$cf_cv_have_isascii" >&6
15890 test "$cf_cv_have_isascii" = yes &&
15891 cat >>confdefs.h <<\EOF
15892 #define HAVE_ISASCII 1
15895 if test "$ac_cv_func_sigaction" = yes; then
15896 echo "$as_me:15896: checking whether sigaction needs _POSIX_SOURCE" >&5
15897 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
15898 cat >conftest.$ac_ext <<_ACEOF
15899 #line 15899 "configure"
15900 #include "confdefs.h"
15902 #include <sys/types.h>
15903 #include <signal.h>
15907 struct sigaction act
15912 rm -f conftest.$ac_objext
15913 if { (eval echo "$as_me:15913: \"$ac_compile\"") >&5
15914 (eval $ac_compile) 2>&5
15916 echo "$as_me:15916: \$? = $ac_status" >&5
15917 (exit $ac_status); } &&
15918 { ac_try='test -s conftest.$ac_objext'
15919 { (eval echo "$as_me:15919: \"$ac_try\"") >&5
15920 (eval $ac_try) 2>&5
15922 echo "$as_me:15922: \$? = $ac_status" >&5
15923 (exit $ac_status); }; }; then
15926 echo "$as_me: failed program was:" >&5
15927 cat conftest.$ac_ext >&5
15929 cat >conftest.$ac_ext <<_ACEOF
15930 #line 15930 "configure"
15931 #include "confdefs.h"
15933 #define _POSIX_SOURCE
15934 #include <sys/types.h>
15935 #include <signal.h>
15939 struct sigaction act
15944 rm -f conftest.$ac_objext
15945 if { (eval echo "$as_me:15945: \"$ac_compile\"") >&5
15946 (eval $ac_compile) 2>&5
15948 echo "$as_me:15948: \$? = $ac_status" >&5
15949 (exit $ac_status); } &&
15950 { ac_try='test -s conftest.$ac_objext'
15951 { (eval echo "$as_me:15951: \"$ac_try\"") >&5
15952 (eval $ac_try) 2>&5
15954 echo "$as_me:15954: \$? = $ac_status" >&5
15955 (exit $ac_status); }; }; then
15958 cat >>confdefs.h <<\EOF
15959 #define _POSIX_SOURCE 1
15963 echo "$as_me: failed program was:" >&5
15964 cat conftest.$ac_ext >&5
15967 rm -f conftest.$ac_objext conftest.$ac_ext
15969 rm -f conftest.$ac_objext conftest.$ac_ext
15970 echo "$as_me:15970: result: $sigact_bad" >&5
15971 echo "${ECHO_T}$sigact_bad" >&6
15974 echo "$as_me:15974: checking if nanosleep really works" >&5
15975 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
15976 if test "${cf_cv_func_nanosleep+set}" = set; then
15977 echo $ECHO_N "(cached) $ECHO_C" >&6
15980 if test "$cross_compiling" = yes; then
15981 cf_cv_func_nanosleep=unknown
15983 cat >conftest.$ac_ext <<_ACEOF
15984 #line 15984 "configure"
15985 #include "confdefs.h"
15991 #ifdef HAVE_SYS_TIME_H
15992 #include <sys/time.h>
15996 struct timespec ts1, ts2;
15999 ts1.tv_nsec = 750000000;
16003 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
16004 ${cf_cv_main_return:-return}(code != 0);
16008 rm -f conftest$ac_exeext
16009 if { (eval echo "$as_me:16009: \"$ac_link\"") >&5
16010 (eval $ac_link) 2>&5
16012 echo "$as_me:16012: \$? = $ac_status" >&5
16013 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16014 { (eval echo "$as_me:16014: \"$ac_try\"") >&5
16015 (eval $ac_try) 2>&5
16017 echo "$as_me:16017: \$? = $ac_status" >&5
16018 (exit $ac_status); }; }; then
16019 cf_cv_func_nanosleep=yes
16021 echo "$as_me: program exited with status $ac_status" >&5
16022 echo "$as_me: failed program was:" >&5
16023 cat conftest.$ac_ext >&5
16024 cf_cv_func_nanosleep=no
16026 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16029 echo "$as_me:16029: result: $cf_cv_func_nanosleep" >&5
16030 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
16032 test "$cf_cv_func_nanosleep" = "yes" &&
16033 cat >>confdefs.h <<\EOF
16034 #define HAVE_NANOSLEEP 1
16043 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16044 echo "$as_me:16044: checking for $ac_header" >&5
16045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16047 echo $ECHO_N "(cached) $ECHO_C" >&6
16049 cat >conftest.$ac_ext <<_ACEOF
16050 #line 16050 "configure"
16051 #include "confdefs.h"
16052 #include <$ac_header>
16054 if { (eval echo "$as_me:16054: \"$ac_cpp conftest.$ac_ext\"") >&5
16055 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16057 egrep -v '^ *\+' conftest.er1 >conftest.err
16059 cat conftest.err >&5
16060 echo "$as_me:16060: \$? = $ac_status" >&5
16061 (exit $ac_status); } >/dev/null; then
16062 if test -s conftest.err; then
16063 ac_cpp_err=$ac_c_preproc_warn_flag
16070 if test -z "$ac_cpp_err"; then
16071 eval "$as_ac_Header=yes"
16073 echo "$as_me: failed program was:" >&5
16074 cat conftest.$ac_ext >&5
16075 eval "$as_ac_Header=no"
16077 rm -f conftest.err conftest.$ac_ext
16079 echo "$as_me:16079: result: `eval echo '${'$as_ac_Header'}'`" >&5
16080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16082 cat >>confdefs.h <<EOF
16083 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16089 if test "$ISC" = yes ; then
16091 for ac_header in sys/termio.h
16093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16094 echo "$as_me:16094: checking for $ac_header" >&5
16095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16097 echo $ECHO_N "(cached) $ECHO_C" >&6
16099 cat >conftest.$ac_ext <<_ACEOF
16100 #line 16100 "configure"
16101 #include "confdefs.h"
16102 #include <$ac_header>
16104 if { (eval echo "$as_me:16104: \"$ac_cpp conftest.$ac_ext\"") >&5
16105 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16107 egrep -v '^ *\+' conftest.er1 >conftest.err
16109 cat conftest.err >&5
16110 echo "$as_me:16110: \$? = $ac_status" >&5
16111 (exit $ac_status); } >/dev/null; then
16112 if test -s conftest.err; then
16113 ac_cpp_err=$ac_c_preproc_warn_flag
16120 if test -z "$ac_cpp_err"; then
16121 eval "$as_ac_Header=yes"
16123 echo "$as_me: failed program was:" >&5
16124 cat conftest.$ac_ext >&5
16125 eval "$as_ac_Header=no"
16127 rm -f conftest.err conftest.$ac_ext
16129 echo "$as_me:16129: result: `eval echo '${'$as_ac_Header'}'`" >&5
16130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16132 cat >>confdefs.h <<EOF
16133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16140 if test "$ac_cv_header_termios_h" = yes ; then
16141 case "$CFLAGS $CPPFLAGS" in
16143 termios_bad=dunno ;;
16144 *) termios_bad=maybe ;;
16146 if test "$termios_bad" = maybe ; then
16147 echo "$as_me:16147: checking whether termios.h needs _POSIX_SOURCE" >&5
16148 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
16149 cat >conftest.$ac_ext <<_ACEOF
16150 #line 16150 "configure"
16151 #include "confdefs.h"
16152 #include <termios.h>
16156 struct termios foo; int x = foo.c_iflag
16161 rm -f conftest.$ac_objext
16162 if { (eval echo "$as_me:16162: \"$ac_compile\"") >&5
16163 (eval $ac_compile) 2>&5
16165 echo "$as_me:16165: \$? = $ac_status" >&5
16166 (exit $ac_status); } &&
16167 { ac_try='test -s conftest.$ac_objext'
16168 { (eval echo "$as_me:16168: \"$ac_try\"") >&5
16169 (eval $ac_try) 2>&5
16171 echo "$as_me:16171: \$? = $ac_status" >&5
16172 (exit $ac_status); }; }; then
16175 echo "$as_me: failed program was:" >&5
16176 cat conftest.$ac_ext >&5
16178 cat >conftest.$ac_ext <<_ACEOF
16179 #line 16179 "configure"
16180 #include "confdefs.h"
16182 #define _POSIX_SOURCE
16183 #include <termios.h>
16187 struct termios foo; int x = foo.c_iflag
16192 rm -f conftest.$ac_objext
16193 if { (eval echo "$as_me:16193: \"$ac_compile\"") >&5
16194 (eval $ac_compile) 2>&5
16196 echo "$as_me:16196: \$? = $ac_status" >&5
16197 (exit $ac_status); } &&
16198 { ac_try='test -s conftest.$ac_objext'
16199 { (eval echo "$as_me:16199: \"$ac_try\"") >&5
16200 (eval $ac_try) 2>&5
16202 echo "$as_me:16202: \$? = $ac_status" >&5
16203 (exit $ac_status); }; }; then
16204 termios_bad=unknown
16206 echo "$as_me: failed program was:" >&5
16207 cat conftest.$ac_ext >&5
16209 cat >>confdefs.h <<\EOF
16210 #define _POSIX_SOURCE 1
16214 rm -f conftest.$ac_objext conftest.$ac_ext
16217 rm -f conftest.$ac_objext conftest.$ac_ext
16218 echo "$as_me:16218: result: $termios_bad" >&5
16219 echo "${ECHO_T}$termios_bad" >&6
16223 echo "$as_me:16223: checking for tcgetattr" >&5
16224 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
16225 if test "${cf_cv_have_tcgetattr+set}" = set; then
16226 echo $ECHO_N "(cached) $ECHO_C" >&6
16229 cat >conftest.$ac_ext <<_ACEOF
16230 #line 16230 "configure"
16231 #include "confdefs.h"
16233 #include <sys/types.h>
16234 #ifdef HAVE_UNISTD_H
16235 #include <unistd.h>
16237 #ifdef HAVE_TERMIOS_H
16238 #include <termios.h>
16239 #define TTY struct termios
16241 #ifdef HAVE_TERMIO_H
16242 #include <termio.h>
16243 #define TTY struct termio
16252 tcgetattr(1, &foo);
16257 rm -f conftest.$ac_objext conftest$ac_exeext
16258 if { (eval echo "$as_me:16258: \"$ac_link\"") >&5
16259 (eval $ac_link) 2>&5
16261 echo "$as_me:16261: \$? = $ac_status" >&5
16262 (exit $ac_status); } &&
16263 { ac_try='test -s conftest$ac_exeext'
16264 { (eval echo "$as_me:16264: \"$ac_try\"") >&5
16265 (eval $ac_try) 2>&5
16267 echo "$as_me:16267: \$? = $ac_status" >&5
16268 (exit $ac_status); }; }; then
16269 cf_cv_have_tcgetattr=yes
16271 echo "$as_me: failed program was:" >&5
16272 cat conftest.$ac_ext >&5
16273 cf_cv_have_tcgetattr=no
16275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16277 echo "$as_me:16277: result: $cf_cv_have_tcgetattr" >&5
16278 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
16279 test "$cf_cv_have_tcgetattr" = yes &&
16280 cat >>confdefs.h <<\EOF
16281 #define HAVE_TCGETATTR 1
16284 echo "$as_me:16284: checking for vsscanf function or workaround" >&5
16285 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
16286 if test "${cf_cv_func_vsscanf+set}" = set; then
16287 echo $ECHO_N "(cached) $ECHO_C" >&6
16290 cat >conftest.$ac_ext <<_ACEOF
16291 #line 16291 "configure"
16292 #include "confdefs.h"
16294 #include <stdarg.h>
16301 vsscanf("from", "%d", ap)
16306 rm -f conftest.$ac_objext conftest$ac_exeext
16307 if { (eval echo "$as_me:16307: \"$ac_link\"") >&5
16308 (eval $ac_link) 2>&5
16310 echo "$as_me:16310: \$? = $ac_status" >&5
16311 (exit $ac_status); } &&
16312 { ac_try='test -s conftest$ac_exeext'
16313 { (eval echo "$as_me:16313: \"$ac_try\"") >&5
16314 (eval $ac_try) 2>&5
16316 echo "$as_me:16316: \$? = $ac_status" >&5
16317 (exit $ac_status); }; }; then
16318 cf_cv_func_vsscanf=vsscanf
16320 echo "$as_me: failed program was:" >&5
16321 cat conftest.$ac_ext >&5
16323 cat >conftest.$ac_ext <<_ACEOF
16324 #line 16324 "configure"
16325 #include "confdefs.h"
16327 #include <stdarg.h>
16334 char *str = "from";
16336 strbuf._flag = _IOREAD;
16337 strbuf._ptr = strbuf._base = (unsigned char *) str;
16338 strbuf._cnt = strlen(str);
16339 strbuf._file = _NFILE;
16340 return (vfscanf(&strbuf, "%d", ap))
16345 rm -f conftest.$ac_objext conftest$ac_exeext
16346 if { (eval echo "$as_me:16346: \"$ac_link\"") >&5
16347 (eval $ac_link) 2>&5
16349 echo "$as_me:16349: \$? = $ac_status" >&5
16350 (exit $ac_status); } &&
16351 { ac_try='test -s conftest$ac_exeext'
16352 { (eval echo "$as_me:16352: \"$ac_try\"") >&5
16353 (eval $ac_try) 2>&5
16355 echo "$as_me:16355: \$? = $ac_status" >&5
16356 (exit $ac_status); }; }; then
16357 cf_cv_func_vsscanf=vfscanf
16359 echo "$as_me: failed program was:" >&5
16360 cat conftest.$ac_ext >&5
16362 cat >conftest.$ac_ext <<_ACEOF
16363 #line 16363 "configure"
16364 #include "confdefs.h"
16366 #include <stdarg.h>
16373 char *str = "from";
16375 strbuf._flag = _IOREAD;
16376 strbuf._ptr = strbuf._base = (unsigned char *) str;
16377 strbuf._cnt = strlen(str);
16378 strbuf._file = _NFILE;
16379 return (_doscan(&strbuf, "%d", ap))
16384 rm -f conftest.$ac_objext conftest$ac_exeext
16385 if { (eval echo "$as_me:16385: \"$ac_link\"") >&5
16386 (eval $ac_link) 2>&5
16388 echo "$as_me:16388: \$? = $ac_status" >&5
16389 (exit $ac_status); } &&
16390 { ac_try='test -s conftest$ac_exeext'
16391 { (eval echo "$as_me:16391: \"$ac_try\"") >&5
16392 (eval $ac_try) 2>&5
16394 echo "$as_me:16394: \$? = $ac_status" >&5
16395 (exit $ac_status); }; }; then
16396 cf_cv_func_vsscanf=_doscan
16398 echo "$as_me: failed program was:" >&5
16399 cat conftest.$ac_ext >&5
16401 cf_cv_func_vsscanf=no
16403 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16405 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16409 echo "$as_me:16409: result: $cf_cv_func_vsscanf" >&5
16410 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
16412 case $cf_cv_func_vsscanf in #(vi
16414 cat >>confdefs.h <<\EOF
16415 #define HAVE_VSSCANF 1
16419 cat >>confdefs.h <<\EOF
16420 #define HAVE_VFSCANF 1
16424 cat >>confdefs.h <<\EOF
16425 #define HAVE__DOSCAN 1
16430 echo "$as_me:16430: checking for working mkstemp" >&5
16431 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
16432 if test "${cf_cv_func_mkstemp+set}" = set; then
16433 echo $ECHO_N "(cached) $ECHO_C" >&6
16437 if test "$cross_compiling" = yes; then
16438 cf_cv_func_mkstemp=maybe
16440 cat >conftest.$ac_ext <<_ACEOF
16441 #line 16441 "configure"
16442 #include "confdefs.h"
16444 #include <sys/types.h>
16445 #include <stdlib.h>
16447 #include <string.h>
16448 #include <sys/stat.h>
16451 char *tmpl = "conftestXXXXXX";
16459 for (n = 0; n < 2; ++n) {
16460 strcpy(name[n], tmpl);
16461 if ((fd = mkstemp(name[n])) >= 0) {
16462 if (!strcmp(name[n], tmpl)
16463 || stat(name[n], &sb) != 0
16464 || (sb.st_mode & S_IFMT) != S_IFREG
16465 || (sb.st_mode & 077) != 0) {
16472 && !strcmp(name[0], name[1]))
16474 ${cf_cv_main_return:-return}(result);
16478 rm -f conftest$ac_exeext
16479 if { (eval echo "$as_me:16479: \"$ac_link\"") >&5
16480 (eval $ac_link) 2>&5
16482 echo "$as_me:16482: \$? = $ac_status" >&5
16483 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16484 { (eval echo "$as_me:16484: \"$ac_try\"") >&5
16485 (eval $ac_try) 2>&5
16487 echo "$as_me:16487: \$? = $ac_status" >&5
16488 (exit $ac_status); }; }; then
16489 cf_cv_func_mkstemp=yes
16492 echo "$as_me: program exited with status $ac_status" >&5
16493 echo "$as_me: failed program was:" >&5
16494 cat conftest.$ac_ext >&5
16495 cf_cv_func_mkstemp=no
16498 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16502 echo "$as_me:16502: result: $cf_cv_func_mkstemp" >&5
16503 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
16504 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
16505 echo "$as_me:16505: checking for mkstemp" >&5
16506 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
16507 if test "${ac_cv_func_mkstemp+set}" = set; then
16508 echo $ECHO_N "(cached) $ECHO_C" >&6
16510 cat >conftest.$ac_ext <<_ACEOF
16511 #line 16511 "configure"
16512 #include "confdefs.h"
16513 /* System header to define __stub macros and hopefully few prototypes,
16514 which can conflict with char mkstemp (); below. */
16515 #include <assert.h>
16516 /* Override any gcc2 internal prototype to avoid an error. */
16520 /* We use char because int might match the return type of a gcc2
16521 builtin and then its argument prototype would still apply. */
16528 /* The GNU C library defines this for functions which it implements
16529 to always fail with ENOSYS. Some functions are actually named
16530 something starting with __ and the normal name is an alias. */
16531 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
16534 f = mkstemp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
16541 rm -f conftest.$ac_objext conftest$ac_exeext
16542 if { (eval echo "$as_me:16542: \"$ac_link\"") >&5
16543 (eval $ac_link) 2>&5
16545 echo "$as_me:16545: \$? = $ac_status" >&5
16546 (exit $ac_status); } &&
16547 { ac_try='test -s conftest$ac_exeext'
16548 { (eval echo "$as_me:16548: \"$ac_try\"") >&5
16549 (eval $ac_try) 2>&5
16551 echo "$as_me:16551: \$? = $ac_status" >&5
16552 (exit $ac_status); }; }; then
16553 ac_cv_func_mkstemp=yes
16555 echo "$as_me: failed program was:" >&5
16556 cat conftest.$ac_ext >&5
16557 ac_cv_func_mkstemp=no
16559 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16561 echo "$as_me:16561: result: $ac_cv_func_mkstemp" >&5
16562 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
16565 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
16567 cat >>confdefs.h <<\EOF
16568 #define HAVE_MKSTEMP 1
16573 # setup for prototype of fallback for vsscanf()
16575 if test "$cf_cv_func_vsscanf" = vsscanf ; then
16581 if test "x$cross_compiling" = xyes ; then
16582 { echo "$as_me:16582: WARNING: cross compiling: assume setvbuf params not reversed" >&5
16583 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
16585 echo "$as_me:16585: checking whether setvbuf arguments are reversed" >&5
16586 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
16587 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
16588 echo $ECHO_N "(cached) $ECHO_C" >&6
16590 if test "$cross_compiling" = yes; then
16591 { { echo "$as_me:16591: error: cannot run test program while cross compiling" >&5
16592 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16593 { (exit 1); exit 1; }; }
16595 cat >conftest.$ac_ext <<_ACEOF
16596 #line 16596 "configure"
16597 #include "confdefs.h"
16599 /* If setvbuf has the reversed format, exit 0. */
16603 /* This call has the arguments reversed.
16604 A reversed system may check and see that the address of main
16605 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
16606 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
16607 $ac_main_return(1);
16608 putc('\r', stdout);
16609 $ac_main_return(0); /* Non-reversed systems segv here. */
16612 rm -f conftest$ac_exeext
16613 if { (eval echo "$as_me:16613: \"$ac_link\"") >&5
16614 (eval $ac_link) 2>&5
16616 echo "$as_me:16616: \$? = $ac_status" >&5
16617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16618 { (eval echo "$as_me:16618: \"$ac_try\"") >&5
16619 (eval $ac_try) 2>&5
16621 echo "$as_me:16621: \$? = $ac_status" >&5
16622 (exit $ac_status); }; }; then
16623 ac_cv_func_setvbuf_reversed=yes
16625 echo "$as_me: program exited with status $ac_status" >&5
16626 echo "$as_me: failed program was:" >&5
16627 cat conftest.$ac_ext >&5
16628 ac_cv_func_setvbuf_reversed=no
16630 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16632 rm -f core core.* *.core
16634 echo "$as_me:16634: result: $ac_cv_func_setvbuf_reversed" >&5
16635 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
16636 if test $ac_cv_func_setvbuf_reversed = yes; then
16638 cat >>confdefs.h <<\EOF
16639 #define SETVBUF_REVERSED 1
16645 echo "$as_me:16645: checking for intptr_t" >&5
16646 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
16647 if test "${ac_cv_type_intptr_t+set}" = set; then
16648 echo $ECHO_N "(cached) $ECHO_C" >&6
16650 cat >conftest.$ac_ext <<_ACEOF
16651 #line 16651 "configure"
16652 #include "confdefs.h"
16653 $ac_includes_default
16657 if ((intptr_t *) 0)
16659 if (sizeof (intptr_t))
16665 rm -f conftest.$ac_objext
16666 if { (eval echo "$as_me:16666: \"$ac_compile\"") >&5
16667 (eval $ac_compile) 2>&5
16669 echo "$as_me:16669: \$? = $ac_status" >&5
16670 (exit $ac_status); } &&
16671 { ac_try='test -s conftest.$ac_objext'
16672 { (eval echo "$as_me:16672: \"$ac_try\"") >&5
16673 (eval $ac_try) 2>&5
16675 echo "$as_me:16675: \$? = $ac_status" >&5
16676 (exit $ac_status); }; }; then
16677 ac_cv_type_intptr_t=yes
16679 echo "$as_me: failed program was:" >&5
16680 cat conftest.$ac_ext >&5
16681 ac_cv_type_intptr_t=no
16683 rm -f conftest.$ac_objext conftest.$ac_ext
16685 echo "$as_me:16685: result: $ac_cv_type_intptr_t" >&5
16686 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
16687 if test $ac_cv_type_intptr_t = yes; then
16691 cat >>confdefs.h <<EOF
16692 #define intptr_t long
16697 echo "$as_me:16697: checking for type sigaction_t" >&5
16698 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
16699 if test "${cf_cv_type_sigaction+set}" = set; then
16700 echo $ECHO_N "(cached) $ECHO_C" >&6
16703 cat >conftest.$ac_ext <<_ACEOF
16704 #line 16704 "configure"
16705 #include "confdefs.h"
16707 #include <signal.h>
16716 rm -f conftest.$ac_objext
16717 if { (eval echo "$as_me:16717: \"$ac_compile\"") >&5
16718 (eval $ac_compile) 2>&5
16720 echo "$as_me:16720: \$? = $ac_status" >&5
16721 (exit $ac_status); } &&
16722 { ac_try='test -s conftest.$ac_objext'
16723 { (eval echo "$as_me:16723: \"$ac_try\"") >&5
16724 (eval $ac_try) 2>&5
16726 echo "$as_me:16726: \$? = $ac_status" >&5
16727 (exit $ac_status); }; }; then
16728 cf_cv_type_sigaction=yes
16730 echo "$as_me: failed program was:" >&5
16731 cat conftest.$ac_ext >&5
16732 cf_cv_type_sigaction=no
16734 rm -f conftest.$ac_objext conftest.$ac_ext
16737 echo "$as_me:16737: result: $cf_cv_type_sigaction" >&5
16738 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
16739 test "$cf_cv_type_sigaction" = yes &&
16740 cat >>confdefs.h <<\EOF
16741 #define HAVE_TYPE_SIGACTION 1
16744 echo "$as_me:16744: checking declaration of size-change" >&5
16745 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
16746 if test "${cf_cv_sizechange+set}" = set; then
16747 echo $ECHO_N "(cached) $ECHO_C" >&6
16750 cf_cv_sizechange=unknown
16751 cf_save_CPPFLAGS="$CPPFLAGS"
16753 for cf_opts in "" "NEED_PTEM_H"
16756 CPPFLAGS="$cf_save_CPPFLAGS"
16757 test -n "$cf_opts" && CPPFLAGS="$CPPFLAGS -D$cf_opts"
16758 cat >conftest.$ac_ext <<_ACEOF
16759 #line 16759 "configure"
16760 #include "confdefs.h"
16761 #include <sys/types.h>
16762 #ifdef HAVE_TERMIOS_H
16763 #include <termios.h>
16765 #ifdef HAVE_TERMIO_H
16766 #include <termio.h>
16770 /* This is a workaround for SCO: they neglected to define struct winsize in
16771 * termios.h -- it's only in termio.h and ptem.h
16773 #include <sys/stream.h>
16774 #include <sys/ptem.h>
16776 #if !defined(sun) || !defined(HAVE_TERMIOS_H)
16777 #include <sys/ioctl.h>
16785 struct ttysize win; /* FIXME: what system is this? */
16786 int y = win.ts_lines;
16787 int x = win.ts_cols;
16790 struct winsize win;
16791 int y = win.ws_row;
16792 int x = win.ws_col;
16794 no TIOCGSIZE or TIOCGWINSZ
16795 #endif /* TIOCGWINSZ */
16796 #endif /* TIOCGSIZE */
16802 rm -f conftest.$ac_objext
16803 if { (eval echo "$as_me:16803: \"$ac_compile\"") >&5
16804 (eval $ac_compile) 2>&5
16806 echo "$as_me:16806: \$? = $ac_status" >&5
16807 (exit $ac_status); } &&
16808 { ac_try='test -s conftest.$ac_objext'
16809 { (eval echo "$as_me:16809: \"$ac_try\"") >&5
16810 (eval $ac_try) 2>&5
16812 echo "$as_me:16812: \$? = $ac_status" >&5
16813 (exit $ac_status); }; }; then
16814 cf_cv_sizechange=yes
16816 echo "$as_me: failed program was:" >&5
16817 cat conftest.$ac_ext >&5
16818 cf_cv_sizechange=no
16820 rm -f conftest.$ac_objext conftest.$ac_ext
16822 CPPFLAGS="$cf_save_CPPFLAGS"
16823 if test "$cf_cv_sizechange" = yes ; then
16824 echo "size-change succeeded ($cf_opts)" >&5
16825 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
16831 echo "$as_me:16831: result: $cf_cv_sizechange" >&5
16832 echo "${ECHO_T}$cf_cv_sizechange" >&6
16833 if test "$cf_cv_sizechange" != no ; then
16835 cat >>confdefs.h <<\EOF
16836 #define HAVE_SIZECHANGE 1
16839 case $cf_cv_sizechange in #(vi
16841 cat >>confdefs.h <<EOF
16842 #define $cf_cv_sizechange 1
16849 echo "$as_me:16849: checking for memmove" >&5
16850 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
16851 if test "${ac_cv_func_memmove+set}" = set; then
16852 echo $ECHO_N "(cached) $ECHO_C" >&6
16854 cat >conftest.$ac_ext <<_ACEOF
16855 #line 16855 "configure"
16856 #include "confdefs.h"
16857 /* System header to define __stub macros and hopefully few prototypes,
16858 which can conflict with char memmove (); below. */
16859 #include <assert.h>
16860 /* Override any gcc2 internal prototype to avoid an error. */
16864 /* We use char because int might match the return type of a gcc2
16865 builtin and then its argument prototype would still apply. */
16872 /* The GNU C library defines this for functions which it implements
16873 to always fail with ENOSYS. Some functions are actually named
16874 something starting with __ and the normal name is an alias. */
16875 #if defined (__stub_memmove) || defined (__stub___memmove)
16878 f = memmove; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
16885 rm -f conftest.$ac_objext conftest$ac_exeext
16886 if { (eval echo "$as_me:16886: \"$ac_link\"") >&5
16887 (eval $ac_link) 2>&5
16889 echo "$as_me:16889: \$? = $ac_status" >&5
16890 (exit $ac_status); } &&
16891 { ac_try='test -s conftest$ac_exeext'
16892 { (eval echo "$as_me:16892: \"$ac_try\"") >&5
16893 (eval $ac_try) 2>&5
16895 echo "$as_me:16895: \$? = $ac_status" >&5
16896 (exit $ac_status); }; }; then
16897 ac_cv_func_memmove=yes
16899 echo "$as_me: failed program was:" >&5
16900 cat conftest.$ac_ext >&5
16901 ac_cv_func_memmove=no
16903 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16905 echo "$as_me:16905: result: $ac_cv_func_memmove" >&5
16906 echo "${ECHO_T}$ac_cv_func_memmove" >&6
16907 if test $ac_cv_func_memmove = yes; then
16911 echo "$as_me:16911: checking for bcopy" >&5
16912 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
16913 if test "${ac_cv_func_bcopy+set}" = set; then
16914 echo $ECHO_N "(cached) $ECHO_C" >&6
16916 cat >conftest.$ac_ext <<_ACEOF
16917 #line 16917 "configure"
16918 #include "confdefs.h"
16919 /* System header to define __stub macros and hopefully few prototypes,
16920 which can conflict with char bcopy (); below. */
16921 #include <assert.h>
16922 /* Override any gcc2 internal prototype to avoid an error. */
16926 /* We use char because int might match the return type of a gcc2
16927 builtin and then its argument prototype would still apply. */
16934 /* The GNU C library defines this for functions which it implements
16935 to always fail with ENOSYS. Some functions are actually named
16936 something starting with __ and the normal name is an alias. */
16937 #if defined (__stub_bcopy) || defined (__stub___bcopy)
16940 f = bcopy; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
16947 rm -f conftest.$ac_objext conftest$ac_exeext
16948 if { (eval echo "$as_me:16948: \"$ac_link\"") >&5
16949 (eval $ac_link) 2>&5
16951 echo "$as_me:16951: \$? = $ac_status" >&5
16952 (exit $ac_status); } &&
16953 { ac_try='test -s conftest$ac_exeext'
16954 { (eval echo "$as_me:16954: \"$ac_try\"") >&5
16955 (eval $ac_try) 2>&5
16957 echo "$as_me:16957: \$? = $ac_status" >&5
16958 (exit $ac_status); }; }; then
16959 ac_cv_func_bcopy=yes
16961 echo "$as_me: failed program was:" >&5
16962 cat conftest.$ac_ext >&5
16963 ac_cv_func_bcopy=no
16965 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16967 echo "$as_me:16967: result: $ac_cv_func_bcopy" >&5
16968 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
16969 if test $ac_cv_func_bcopy = yes; then
16971 echo "$as_me:16971: checking if bcopy does overlapping moves" >&5
16972 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
16973 if test "${cf_cv_good_bcopy+set}" = set; then
16974 echo $ECHO_N "(cached) $ECHO_C" >&6
16977 if test "$cross_compiling" = yes; then
16978 cf_cv_good_bcopy=unknown
16980 cat >conftest.$ac_ext <<_ACEOF
16981 #line 16981 "configure"
16982 #include "confdefs.h"
16985 static char data[] = "abcdefghijklmnopqrstuwwxyz";
16987 bcopy(data, temp, sizeof(data));
16988 bcopy(temp+10, temp, 15);
16989 bcopy(temp+5, temp+15, 10);
16990 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
16994 rm -f conftest$ac_exeext
16995 if { (eval echo "$as_me:16995: \"$ac_link\"") >&5
16996 (eval $ac_link) 2>&5
16998 echo "$as_me:16998: \$? = $ac_status" >&5
16999 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17000 { (eval echo "$as_me:17000: \"$ac_try\"") >&5
17001 (eval $ac_try) 2>&5
17003 echo "$as_me:17003: \$? = $ac_status" >&5
17004 (exit $ac_status); }; }; then
17005 cf_cv_good_bcopy=yes
17007 echo "$as_me: program exited with status $ac_status" >&5
17008 echo "$as_me: failed program was:" >&5
17009 cat conftest.$ac_ext >&5
17010 cf_cv_good_bcopy=no
17012 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17016 echo "$as_me:17016: result: $cf_cv_good_bcopy" >&5
17017 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
17020 cf_cv_good_bcopy=no
17023 if test "$cf_cv_good_bcopy" = yes ; then
17025 cat >>confdefs.h <<\EOF
17026 #define USE_OK_BCOPY 1
17031 cat >>confdefs.h <<\EOF
17032 #define USE_MY_MEMMOVE 1
17039 echo "$as_me:17039: checking if poll really works" >&5
17040 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
17041 if test "${cf_cv_working_poll+set}" = set; then
17042 echo $ECHO_N "(cached) $ECHO_C" >&6
17045 if test "$cross_compiling" = yes; then
17046 cf_cv_working_poll=unknown
17048 cat >conftest.$ac_ext <<_ACEOF
17049 #line 17049 "configure"
17050 #include "confdefs.h"
17052 #include <stdlib.h>
17054 #include <unistd.h>
17059 #include <sys/poll.h>
17062 struct pollfd myfds;
17065 /* check for Darwin bug with respect to "devices" */
17066 myfds.fd = open("/dev/null", 1); /* O_WRONLY */
17069 myfds.events = POLLIN;
17072 ret = poll(&myfds, 1, 100);
17074 if (ret < 0 || (myfds.revents & POLLNVAL)) {
17079 fd = open("/dev/tty", 2); /* O_RDWR */
17083 /* also check with standard input */
17085 myfds.events = POLLIN;
17087 ret = poll(&myfds, 1, 100);
17092 ${cf_cv_main_return:-return}(ret < 0);
17095 rm -f conftest$ac_exeext
17096 if { (eval echo "$as_me:17096: \"$ac_link\"") >&5
17097 (eval $ac_link) 2>&5
17099 echo "$as_me:17099: \$? = $ac_status" >&5
17100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17101 { (eval echo "$as_me:17101: \"$ac_try\"") >&5
17102 (eval $ac_try) 2>&5
17104 echo "$as_me:17104: \$? = $ac_status" >&5
17105 (exit $ac_status); }; }; then
17106 cf_cv_working_poll=yes
17108 echo "$as_me: program exited with status $ac_status" >&5
17109 echo "$as_me: failed program was:" >&5
17110 cat conftest.$ac_ext >&5
17111 cf_cv_working_poll=no
17113 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17116 echo "$as_me:17116: result: $cf_cv_working_poll" >&5
17117 echo "${ECHO_T}$cf_cv_working_poll" >&6
17118 test "$cf_cv_working_poll" = "yes" &&
17119 cat >>confdefs.h <<\EOF
17120 #define HAVE_WORKING_POLL 1
17123 echo "$as_me:17123: checking for va_copy" >&5
17124 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
17125 if test "${cf_cv_have_va_copy+set}" = set; then
17126 echo $ECHO_N "(cached) $ECHO_C" >&6
17129 cat >conftest.$ac_ext <<_ACEOF
17130 #line 17130 "configure"
17131 #include "confdefs.h"
17133 #include <stdarg.h>
17139 static va_list dst;
17140 static va_list src;
17146 rm -f conftest.$ac_objext conftest$ac_exeext
17147 if { (eval echo "$as_me:17147: \"$ac_link\"") >&5
17148 (eval $ac_link) 2>&5
17150 echo "$as_me:17150: \$? = $ac_status" >&5
17151 (exit $ac_status); } &&
17152 { ac_try='test -s conftest$ac_exeext'
17153 { (eval echo "$as_me:17153: \"$ac_try\"") >&5
17154 (eval $ac_try) 2>&5
17156 echo "$as_me:17156: \$? = $ac_status" >&5
17157 (exit $ac_status); }; }; then
17158 cf_cv_have_va_copy=yes
17160 echo "$as_me: failed program was:" >&5
17161 cat conftest.$ac_ext >&5
17162 cf_cv_have_va_copy=no
17164 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17166 echo "$as_me:17166: result: $cf_cv_have_va_copy" >&5
17167 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
17169 test "$cf_cv_have_va_copy" = yes &&
17170 cat >>confdefs.h <<\EOF
17171 #define HAVE_VA_COPY 1
17174 echo "$as_me:17174: checking for __va_copy" >&5
17175 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
17176 if test "${cf_cv_have___va_copy+set}" = set; then
17177 echo $ECHO_N "(cached) $ECHO_C" >&6
17180 cat >conftest.$ac_ext <<_ACEOF
17181 #line 17181 "configure"
17182 #include "confdefs.h"
17184 #include <stdarg.h>
17190 static va_list dst;
17191 static va_list src;
17192 __va_copy(dst, src)
17197 rm -f conftest.$ac_objext conftest$ac_exeext
17198 if { (eval echo "$as_me:17198: \"$ac_link\"") >&5
17199 (eval $ac_link) 2>&5
17201 echo "$as_me:17201: \$? = $ac_status" >&5
17202 (exit $ac_status); } &&
17203 { ac_try='test -s conftest$ac_exeext'
17204 { (eval echo "$as_me:17204: \"$ac_try\"") >&5
17205 (eval $ac_try) 2>&5
17207 echo "$as_me:17207: \$? = $ac_status" >&5
17208 (exit $ac_status); }; }; then
17209 cf_cv_have___va_copy=yes
17211 echo "$as_me: failed program was:" >&5
17212 cat conftest.$ac_ext >&5
17213 cf_cv_have___va_copy=no
17215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17217 echo "$as_me:17217: result: $cf_cv_have___va_copy" >&5
17218 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
17220 test "$cf_cv_have___va_copy" = yes &&
17221 cat >>confdefs.h <<\EOF
17222 #define HAVE___VA_COPY 1
17225 echo "$as_me:17225: checking for pid_t" >&5
17226 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17227 if test "${ac_cv_type_pid_t+set}" = set; then
17228 echo $ECHO_N "(cached) $ECHO_C" >&6
17230 cat >conftest.$ac_ext <<_ACEOF
17231 #line 17231 "configure"
17232 #include "confdefs.h"
17233 $ac_includes_default
17239 if (sizeof (pid_t))
17245 rm -f conftest.$ac_objext
17246 if { (eval echo "$as_me:17246: \"$ac_compile\"") >&5
17247 (eval $ac_compile) 2>&5
17249 echo "$as_me:17249: \$? = $ac_status" >&5
17250 (exit $ac_status); } &&
17251 { ac_try='test -s conftest.$ac_objext'
17252 { (eval echo "$as_me:17252: \"$ac_try\"") >&5
17253 (eval $ac_try) 2>&5
17255 echo "$as_me:17255: \$? = $ac_status" >&5
17256 (exit $ac_status); }; }; then
17257 ac_cv_type_pid_t=yes
17259 echo "$as_me: failed program was:" >&5
17260 cat conftest.$ac_ext >&5
17261 ac_cv_type_pid_t=no
17263 rm -f conftest.$ac_objext conftest.$ac_ext
17265 echo "$as_me:17265: result: $ac_cv_type_pid_t" >&5
17266 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17267 if test $ac_cv_type_pid_t = yes; then
17271 cat >>confdefs.h <<EOF
17277 for ac_header in unistd.h vfork.h
17279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17280 echo "$as_me:17280: checking for $ac_header" >&5
17281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17283 echo $ECHO_N "(cached) $ECHO_C" >&6
17285 cat >conftest.$ac_ext <<_ACEOF
17286 #line 17286 "configure"
17287 #include "confdefs.h"
17288 #include <$ac_header>
17290 if { (eval echo "$as_me:17290: \"$ac_cpp conftest.$ac_ext\"") >&5
17291 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17293 egrep -v '^ *\+' conftest.er1 >conftest.err
17295 cat conftest.err >&5
17296 echo "$as_me:17296: \$? = $ac_status" >&5
17297 (exit $ac_status); } >/dev/null; then
17298 if test -s conftest.err; then
17299 ac_cpp_err=$ac_c_preproc_warn_flag
17306 if test -z "$ac_cpp_err"; then
17307 eval "$as_ac_Header=yes"
17309 echo "$as_me: failed program was:" >&5
17310 cat conftest.$ac_ext >&5
17311 eval "$as_ac_Header=no"
17313 rm -f conftest.err conftest.$ac_ext
17315 echo "$as_me:17315: result: `eval echo '${'$as_ac_Header'}'`" >&5
17316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17318 cat >>confdefs.h <<EOF
17319 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17325 for ac_func in fork vfork
17327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17328 echo "$as_me:17328: checking for $ac_func" >&5
17329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17330 if eval "test \"\${$as_ac_var+set}\" = set"; then
17331 echo $ECHO_N "(cached) $ECHO_C" >&6
17333 cat >conftest.$ac_ext <<_ACEOF
17334 #line 17334 "configure"
17335 #include "confdefs.h"
17336 /* System header to define __stub macros and hopefully few prototypes,
17337 which can conflict with char $ac_func (); below. */
17338 #include <assert.h>
17339 /* Override any gcc2 internal prototype to avoid an error. */
17343 /* We use char because int might match the return type of a gcc2
17344 builtin and then its argument prototype would still apply. */
17351 /* The GNU C library defines this for functions which it implements
17352 to always fail with ENOSYS. Some functions are actually named
17353 something starting with __ and the normal name is an alias. */
17354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17357 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
17364 rm -f conftest.$ac_objext conftest$ac_exeext
17365 if { (eval echo "$as_me:17365: \"$ac_link\"") >&5
17366 (eval $ac_link) 2>&5
17368 echo "$as_me:17368: \$? = $ac_status" >&5
17369 (exit $ac_status); } &&
17370 { ac_try='test -s conftest$ac_exeext'
17371 { (eval echo "$as_me:17371: \"$ac_try\"") >&5
17372 (eval $ac_try) 2>&5
17374 echo "$as_me:17374: \$? = $ac_status" >&5
17375 (exit $ac_status); }; }; then
17376 eval "$as_ac_var=yes"
17378 echo "$as_me: failed program was:" >&5
17379 cat conftest.$ac_ext >&5
17380 eval "$as_ac_var=no"
17382 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17384 echo "$as_me:17384: result: `eval echo '${'$as_ac_var'}'`" >&5
17385 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17386 if test `eval echo '${'$as_ac_var'}'` = yes; then
17387 cat >>confdefs.h <<EOF
17388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17394 ac_cv_func_fork_works=$ac_cv_func_fork
17395 if test "x$ac_cv_func_fork" = xyes; then
17396 echo "$as_me:17396: checking for working fork" >&5
17397 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
17398 if test "${ac_cv_func_fork_works+set}" = set; then
17399 echo $ECHO_N "(cached) $ECHO_C" >&6
17401 if test "$cross_compiling" = yes; then
17402 ac_cv_func_fork_works=cross
17404 cat >conftest.$ac_ext <<_ACEOF
17405 /* By Rüdiger Kuhlmann. */
17406 #include <sys/types.h>
17408 # include <unistd.h>
17410 /* Some systems only have a dummy stub for fork() */
17414 $ac_main_return (1);
17415 $ac_main_return (0);
17418 rm -f conftest$ac_exeext
17419 if { (eval echo "$as_me:17419: \"$ac_link\"") >&5
17420 (eval $ac_link) 2>&5
17422 echo "$as_me:17422: \$? = $ac_status" >&5
17423 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17424 { (eval echo "$as_me:17424: \"$ac_try\"") >&5
17425 (eval $ac_try) 2>&5
17427 echo "$as_me:17427: \$? = $ac_status" >&5
17428 (exit $ac_status); }; }; then
17429 ac_cv_func_fork_works=yes
17431 echo "$as_me: program exited with status $ac_status" >&5
17432 echo "$as_me: failed program was:" >&5
17433 cat conftest.$ac_ext >&5
17434 ac_cv_func_fork_works=no
17436 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17439 echo "$as_me:17439: result: $ac_cv_func_fork_works" >&5
17440 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
17443 if test "x$ac_cv_func_fork_works" = xcross; then
17445 *-*-amigaos* | *-*-msdosdjgpp*)
17446 # Override, as these systems have only a dummy fork() stub
17447 ac_cv_func_fork_works=no
17450 ac_cv_func_fork_works=yes
17453 { echo "$as_me:17453: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
17454 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
17456 ac_cv_func_vfork_works=$ac_cv_func_vfork
17457 if test "x$ac_cv_func_vfork" = xyes; then
17458 echo "$as_me:17458: checking for working vfork" >&5
17459 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
17460 if test "${ac_cv_func_vfork_works+set}" = set; then
17461 echo $ECHO_N "(cached) $ECHO_C" >&6
17463 if test "$cross_compiling" = yes; then
17464 ac_cv_func_vfork_works=cross
17466 cat >conftest.$ac_ext <<_ACEOF
17467 #line 17467 "configure"
17468 #include "confdefs.h"
17469 /* Thanks to Paul Eggert for this test. */
17471 #include <sys/types.h>
17472 #include <sys/stat.h>
17474 # include <unistd.h>
17477 # include <vfork.h>
17479 /* On some sparc systems, changes by the child to local and incoming
17480 argument registers are propagated back to the parent. The compiler
17481 is told about this with #include <vfork.h>, but some compilers
17482 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17483 static variable whose address is put into a register that is
17484 clobbered by the vfork. */
17487 sparc_address_test (int arg)
17489 sparc_address_test (arg) int arg;
17492 static pid_t child;
17510 pid_t parent = getpid ();
17513 sparc_address_test ();
17518 /* Here is another test for sparc vfork register problems. This
17519 test uses lots of local variables, at least as many local
17520 variables as main has allocated so far including compiler
17521 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17522 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17523 reuse the register of parent for one of the local variables,
17524 since it will think that parent can't possibly be used any more
17525 in this routine. Assigning to the local variable will thus
17526 munge parent in the parent process. */
17528 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17529 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17530 /* Convince the compiler that p..p7 are live; otherwise, it might
17531 use the same hardware register for all 8 local variables. */
17532 if (p != p1 || p != p2 || p != p3 || p != p4
17533 || p != p5 || p != p6 || p != p7)
17536 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17537 from child file descriptors. If the child closes a descriptor
17538 before it execs or exits, this munges the parent's descriptor
17539 as well. Test for this by closing stdout in the child. */
17540 _exit(close(fileno(stdout)) != 0);
17545 while (wait(&status) != child)
17548 /* Was there some problem with vforking? */
17551 /* Did the child fail? (This shouldn't happen.) */
17554 /* Did the vfork/compiler bug occur? */
17555 || parent != getpid()
17557 /* Did the file descriptor bug occur? */
17558 || fstat(fileno(stdout), &st) != 0
17563 rm -f conftest$ac_exeext
17564 if { (eval echo "$as_me:17564: \"$ac_link\"") >&5
17565 (eval $ac_link) 2>&5
17567 echo "$as_me:17567: \$? = $ac_status" >&5
17568 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17569 { (eval echo "$as_me:17569: \"$ac_try\"") >&5
17570 (eval $ac_try) 2>&5
17572 echo "$as_me:17572: \$? = $ac_status" >&5
17573 (exit $ac_status); }; }; then
17574 ac_cv_func_vfork_works=yes
17576 echo "$as_me: program exited with status $ac_status" >&5
17577 echo "$as_me: failed program was:" >&5
17578 cat conftest.$ac_ext >&5
17579 ac_cv_func_vfork_works=no
17581 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17584 echo "$as_me:17584: result: $ac_cv_func_vfork_works" >&5
17585 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
17588 if test "x$ac_cv_func_fork_works" = xcross; then
17589 ac_cv_func_vfork_works=ac_cv_func_vfork
17590 { echo "$as_me:17590: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
17591 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
17594 if test "x$ac_cv_func_vfork_works" = xyes; then
17596 cat >>confdefs.h <<\EOF
17597 #define HAVE_WORKING_VFORK 1
17602 cat >>confdefs.h <<\EOF
17607 if test "x$ac_cv_func_fork_works" = xyes; then
17609 cat >>confdefs.h <<\EOF
17610 #define HAVE_WORKING_FORK 1
17615 # special check for test/ditto.c
17617 echo "$as_me:17617: checking for openpty in -lutil" >&5
17618 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
17619 if test "${ac_cv_lib_util_openpty+set}" = set; then
17620 echo $ECHO_N "(cached) $ECHO_C" >&6
17622 ac_check_lib_save_LIBS=$LIBS
17623 LIBS="-lutil $LIBS"
17624 cat >conftest.$ac_ext <<_ACEOF
17625 #line 17625 "configure"
17626 #include "confdefs.h"
17628 /* Override any gcc2 internal prototype to avoid an error. */
17632 /* We use char because int might match the return type of a gcc2
17633 builtin and then its argument prototype would still apply. */
17643 rm -f conftest.$ac_objext conftest$ac_exeext
17644 if { (eval echo "$as_me:17644: \"$ac_link\"") >&5
17645 (eval $ac_link) 2>&5
17647 echo "$as_me:17647: \$? = $ac_status" >&5
17648 (exit $ac_status); } &&
17649 { ac_try='test -s conftest$ac_exeext'
17650 { (eval echo "$as_me:17650: \"$ac_try\"") >&5
17651 (eval $ac_try) 2>&5
17653 echo "$as_me:17653: \$? = $ac_status" >&5
17654 (exit $ac_status); }; }; then
17655 ac_cv_lib_util_openpty=yes
17657 echo "$as_me: failed program was:" >&5
17658 cat conftest.$ac_ext >&5
17659 ac_cv_lib_util_openpty=no
17661 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17662 LIBS=$ac_check_lib_save_LIBS
17664 echo "$as_me:17664: result: $ac_cv_lib_util_openpty" >&5
17665 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
17666 if test $ac_cv_lib_util_openpty = yes; then
17672 echo "$as_me:17672: checking for openpty header" >&5
17673 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
17674 if test "${cf_cv_func_openpty+set}" = set; then
17675 echo $ECHO_N "(cached) $ECHO_C" >&6
17678 cf_save_LIBS="$LIBS"
17679 test $cf_cv_lib_util = yes && LIBS="-lutil $LIBS"
17680 for cf_header in pty.h libutil.h util.h
17682 cat >conftest.$ac_ext <<_ACEOF
17683 #line 17683 "configure"
17684 #include "confdefs.h"
17686 #include <$cf_header>
17692 int x = openpty((int *)0, (int *)0, (char *)0,
17693 (struct termios *)0, (struct winsize *)0);
17699 rm -f conftest.$ac_objext conftest$ac_exeext
17700 if { (eval echo "$as_me:17700: \"$ac_link\"") >&5
17701 (eval $ac_link) 2>&5
17703 echo "$as_me:17703: \$? = $ac_status" >&5
17704 (exit $ac_status); } &&
17705 { ac_try='test -s conftest$ac_exeext'
17706 { (eval echo "$as_me:17706: \"$ac_try\"") >&5
17707 (eval $ac_try) 2>&5
17709 echo "$as_me:17709: \$? = $ac_status" >&5
17710 (exit $ac_status); }; }; then
17712 cf_cv_func_openpty=$cf_header
17716 echo "$as_me: failed program was:" >&5
17717 cat conftest.$ac_ext >&5
17719 cf_cv_func_openpty=no
17722 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17724 LIBS="$cf_save_LIBS"
17727 echo "$as_me:17727: result: $cf_cv_func_openpty" >&5
17728 echo "${ECHO_T}$cf_cv_func_openpty" >&6
17730 if test "$cf_cv_func_openpty" != no ; then
17732 cat >>confdefs.h <<EOF
17733 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
17736 cat >>confdefs.h <<\EOF
17737 #define USE_XTERM_PTY 1
17740 if test "x$cf_cv_lib_util" = xyes ; then
17741 TEST_LIBS="-lutil $TEST_LIBS"
17745 if test "$with_hashed_db" != no ; then
17747 cat >>confdefs.h <<\EOF
17748 #define USE_HASHED_DB 1
17751 case $with_hashed_db in #(vi
17755 if test -d "$with_hashed_db" ; then
17757 if test -n "$with_hashed_db/include" ; then
17758 for cf_add_incdir in $with_hashed_db/include
17760 while test $cf_add_incdir != /usr/include
17762 if test -d $cf_add_incdir
17765 if test -n "$CFLAGS$CPPFLAGS" ; then
17766 # a loop is needed to ensure we can add subdirs of existing dirs
17767 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
17768 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
17769 cf_have_incdir=yes; break
17774 if test "$cf_have_incdir" = no ; then
17775 if test "$cf_add_incdir" = /usr/local/include ; then
17776 if test "$GCC" = yes
17778 cf_save_CPPFLAGS=$CPPFLAGS
17779 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
17780 cat >conftest.$ac_ext <<_ACEOF
17781 #line 17781 "configure"
17782 #include "confdefs.h"
17792 rm -f conftest.$ac_objext
17793 if { (eval echo "$as_me:17793: \"$ac_compile\"") >&5
17794 (eval $ac_compile) 2>&5
17796 echo "$as_me:17796: \$? = $ac_status" >&5
17797 (exit $ac_status); } &&
17798 { ac_try='test -s conftest.$ac_objext'
17799 { (eval echo "$as_me:17799: \"$ac_try\"") >&5
17800 (eval $ac_try) 2>&5
17802 echo "$as_me:17802: \$? = $ac_status" >&5
17803 (exit $ac_status); }; }; then
17806 echo "$as_me: failed program was:" >&5
17807 cat conftest.$ac_ext >&5
17810 rm -f conftest.$ac_objext conftest.$ac_ext
17811 CPPFLAGS=$cf_save_CPPFLAGS
17816 if test "$cf_have_incdir" = no ; then
17817 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
17819 echo "${as_me:-configure}:17819: testing adding $cf_add_incdir to include-path ..." 1>&5
17821 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
17823 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
17824 test "$cf_top_incdir" = "$cf_add_incdir" && break
17825 cf_add_incdir="$cf_top_incdir"
17834 if test -n "$with_hashed_db/lib" ; then
17835 for cf_add_libdir in $with_hashed_db/lib
17837 if test $cf_add_libdir = /usr/lib ; then
17839 elif test -d $cf_add_libdir
17842 if test -n "$LDFLAGS$LIBS" ; then
17843 # a loop is needed to ensure we can add subdirs of existing dirs
17844 for cf_test_libdir in $LDFLAGS $LIBS ; do
17845 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
17846 cf_have_libdir=yes; break
17850 if test "$cf_have_libdir" = no ; then
17851 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
17853 echo "${as_me:-configure}:17853: testing adding $cf_add_libdir to library-path ..." 1>&5
17855 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
17862 case "$with_hashed_db" in #(vi
17864 { echo "$as_me:17864: WARNING: no such directory $with_hashed_db" >&5
17865 echo "$as_me: WARNING: no such directory $with_hashed_db" >&2;}
17871 test "x/usr" != "x$prefix" && \
17872 test -d "/usr" && \
17873 (test -z "$prefix" || test x$prefix = xNONE || test "x/usr" != "x$prefix") && {
17874 test -n "$verbose" && echo " ... testing for include-directories under /usr"
17875 test -d /usr/include && cf_search="$cf_search /usr/include"
17876 test -d /usr/include/$with_hashed_db && cf_search="$cf_search /usr/include/$with_hashed_db"
17877 test -d /usr/include/$with_hashed_db/include && cf_search="$cf_search /usr/include/$with_hashed_db/include"
17878 test -d /usr/$with_hashed_db/include && cf_search="$cf_search /usr/$with_hashed_db/include"
17879 test -d /usr/$with_hashed_db/include/$with_hashed_db && cf_search="$cf_search /usr/$with_hashed_db/include/$with_hashed_db"
17882 test "x$prefix" != "xNONE" && \
17883 test -d "$prefix" && \
17885 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
17886 test -d $prefix/include && cf_search="$cf_search $prefix/include"
17887 test -d $prefix/include/$with_hashed_db && cf_search="$cf_search $prefix/include/$with_hashed_db"
17888 test -d $prefix/include/$with_hashed_db/include && cf_search="$cf_search $prefix/include/$with_hashed_db/include"
17889 test -d $prefix/$with_hashed_db/include && cf_search="$cf_search $prefix/$with_hashed_db/include"
17890 test -d $prefix/$with_hashed_db/include/$with_hashed_db && cf_search="$cf_search $prefix/$with_hashed_db/include/$with_hashed_db"
17893 test "x/usr/local" != "x$prefix" && \
17894 test -d "/usr/local" && \
17895 (test -z "$prefix" || test x$prefix = xNONE || test "x/usr/local" != "x$prefix") && {
17896 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
17897 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
17898 test -d /usr/local/include/$with_hashed_db && cf_search="$cf_search /usr/local/include/$with_hashed_db"
17899 test -d /usr/local/include/$with_hashed_db/include && cf_search="$cf_search /usr/local/include/$with_hashed_db/include"
17900 test -d /usr/local/$with_hashed_db/include && cf_search="$cf_search /usr/local/$with_hashed_db/include"
17901 test -d /usr/local/$with_hashed_db/include/$with_hashed_db && cf_search="$cf_search /usr/local/$with_hashed_db/include/$with_hashed_db"
17904 test "x/opt" != "x$prefix" && \
17905 test -d "/opt" && \
17906 (test -z "$prefix" || test x$prefix = xNONE || test "x/opt" != "x$prefix") && {
17907 test -n "$verbose" && echo " ... testing for include-directories under /opt"
17908 test -d /opt/include && cf_search="$cf_search /opt/include"
17909 test -d /opt/include/$with_hashed_db && cf_search="$cf_search /opt/include/$with_hashed_db"
17910 test -d /opt/include/$with_hashed_db/include && cf_search="$cf_search /opt/include/$with_hashed_db/include"
17911 test -d /opt/$with_hashed_db/include && cf_search="$cf_search /opt/$with_hashed_db/include"
17912 test -d /opt/$with_hashed_db/include/$with_hashed_db && cf_search="$cf_search /opt/$with_hashed_db/include/$with_hashed_db"
17915 test "x$HOME" != "x$prefix" && \
17916 test -d "$HOME" && \
17917 (test -z "$prefix" || test x$prefix = xNONE || test "x$HOME" != "x$prefix") && {
17918 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
17919 test -d $HOME/include && cf_search="$cf_search $HOME/include"
17920 test -d $HOME/include/$with_hashed_db && cf_search="$cf_search $HOME/include/$with_hashed_db"
17921 test -d $HOME/include/$with_hashed_db/include && cf_search="$cf_search $HOME/include/$with_hashed_db/include"
17922 test -d $HOME/$with_hashed_db/include && cf_search="$cf_search $HOME/$with_hashed_db/include"
17923 test -d $HOME/$with_hashed_db/include/$with_hashed_db && cf_search="$cf_search $HOME/$with_hashed_db/include/$with_hashed_db"
17926 for cf_item in $cf_search
17928 case $cf_item in #(vi
17931 if test -n "$cf_item" ; then
17932 for cf_add_incdir in $cf_item
17934 while test $cf_add_incdir != /usr/include
17936 if test -d $cf_add_incdir
17939 if test -n "$CFLAGS$CPPFLAGS" ; then
17940 # a loop is needed to ensure we can add subdirs of existing dirs
17941 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
17942 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
17943 cf_have_incdir=yes; break
17948 if test "$cf_have_incdir" = no ; then
17949 if test "$cf_add_incdir" = /usr/local/include ; then
17950 if test "$GCC" = yes
17952 cf_save_CPPFLAGS=$CPPFLAGS
17953 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
17954 cat >conftest.$ac_ext <<_ACEOF
17955 #line 17955 "configure"
17956 #include "confdefs.h"
17966 rm -f conftest.$ac_objext
17967 if { (eval echo "$as_me:17967: \"$ac_compile\"") >&5
17968 (eval $ac_compile) 2>&5
17970 echo "$as_me:17970: \$? = $ac_status" >&5
17971 (exit $ac_status); } &&
17972 { ac_try='test -s conftest.$ac_objext'
17973 { (eval echo "$as_me:17973: \"$ac_try\"") >&5
17974 (eval $ac_try) 2>&5
17976 echo "$as_me:17976: \$? = $ac_status" >&5
17977 (exit $ac_status); }; }; then
17980 echo "$as_me: failed program was:" >&5
17981 cat conftest.$ac_ext >&5
17984 rm -f conftest.$ac_objext conftest.$ac_ext
17985 CPPFLAGS=$cf_save_CPPFLAGS
17990 if test "$cf_have_incdir" = no ; then
17991 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
17993 echo "${as_me:-configure}:17993: testing adding $cf_add_incdir to include-path ..." 1>&5
17995 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
17997 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
17998 test "$cf_top_incdir" = "$cf_add_incdir" && break
17999 cf_add_incdir="$cf_top_incdir"
18014 test "x/usr" != "x$prefix" && \
18015 test -d "/usr" && \
18016 (test -z "$prefix" || test x$prefix = xNONE || test "x/usr" != "x$prefix") && {
18017 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
18018 test -d /usr/lib && cf_search="$cf_search /usr/lib"
18019 test -d /usr/lib/$with_hashed_db && cf_search="$cf_search /usr/lib/$with_hashed_db"
18020 test -d /usr/lib/$with_hashed_db/lib && cf_search="$cf_search /usr/lib/$with_hashed_db/lib"
18021 test -d /usr/$with_hashed_db/lib && cf_search="$cf_search /usr/$with_hashed_db/lib"
18022 test -d /usr/$with_hashed_db/lib/$with_hashed_db && cf_search="$cf_search /usr/$with_hashed_db/lib/$with_hashed_db"
18025 test "x$prefix" != "xNONE" && \
18026 test -d "$prefix" && \
18028 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
18029 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
18030 test -d $prefix/lib/$with_hashed_db && cf_search="$cf_search $prefix/lib/$with_hashed_db"
18031 test -d $prefix/lib/$with_hashed_db/lib && cf_search="$cf_search $prefix/lib/$with_hashed_db/lib"
18032 test -d $prefix/$with_hashed_db/lib && cf_search="$cf_search $prefix/$with_hashed_db/lib"
18033 test -d $prefix/$with_hashed_db/lib/$with_hashed_db && cf_search="$cf_search $prefix/$with_hashed_db/lib/$with_hashed_db"
18036 test "x/usr/local" != "x$prefix" && \
18037 test -d "/usr/local" && \
18038 (test -z "$prefix" || test x$prefix = xNONE || test "x/usr/local" != "x$prefix") && {
18039 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
18040 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
18041 test -d /usr/local/lib/$with_hashed_db && cf_search="$cf_search /usr/local/lib/$with_hashed_db"
18042 test -d /usr/local/lib/$with_hashed_db/lib && cf_search="$cf_search /usr/local/lib/$with_hashed_db/lib"
18043 test -d /usr/local/$with_hashed_db/lib && cf_search="$cf_search /usr/local/$with_hashed_db/lib"
18044 test -d /usr/local/$with_hashed_db/lib/$with_hashed_db && cf_search="$cf_search /usr/local/$with_hashed_db/lib/$with_hashed_db"
18047 test "x/opt" != "x$prefix" && \
18048 test -d "/opt" && \
18049 (test -z "$prefix" || test x$prefix = xNONE || test "x/opt" != "x$prefix") && {
18050 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
18051 test -d /opt/lib && cf_search="$cf_search /opt/lib"
18052 test -d /opt/lib/$with_hashed_db && cf_search="$cf_search /opt/lib/$with_hashed_db"
18053 test -d /opt/lib/$with_hashed_db/lib && cf_search="$cf_search /opt/lib/$with_hashed_db/lib"
18054 test -d /opt/$with_hashed_db/lib && cf_search="$cf_search /opt/$with_hashed_db/lib"
18055 test -d /opt/$with_hashed_db/lib/$with_hashed_db && cf_search="$cf_search /opt/$with_hashed_db/lib/$with_hashed_db"
18058 test "x$HOME" != "x$prefix" && \
18059 test -d "$HOME" && \
18060 (test -z "$prefix" || test x$prefix = xNONE || test "x$HOME" != "x$prefix") && {
18061 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
18062 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
18063 test -d $HOME/lib/$with_hashed_db && cf_search="$cf_search $HOME/lib/$with_hashed_db"
18064 test -d $HOME/lib/$with_hashed_db/lib && cf_search="$cf_search $HOME/lib/$with_hashed_db/lib"
18065 test -d $HOME/$with_hashed_db/lib && cf_search="$cf_search $HOME/$with_hashed_db/lib"
18066 test -d $HOME/$with_hashed_db/lib/$with_hashed_db && cf_search="$cf_search $HOME/$with_hashed_db/lib/$with_hashed_db"
18069 for cf_item in $cf_search
18071 case $cf_item in #(vi
18074 if test -n "$cf_item" ; then
18075 for cf_add_libdir in $cf_item
18077 if test $cf_add_libdir = /usr/lib ; then
18079 elif test -d $cf_add_libdir
18082 if test -n "$LDFLAGS$LIBS" ; then
18083 # a loop is needed to ensure we can add subdirs of existing dirs
18084 for cf_test_libdir in $LDFLAGS $LIBS ; do
18085 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
18086 cf_have_libdir=yes; break
18090 if test "$cf_have_libdir" = no ; then
18091 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
18093 echo "${as_me:-configure}:18093: testing adding $cf_add_libdir to library-path ..." 1>&5
18095 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
18110 echo "$as_me:18110: checking for db.h" >&5
18111 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
18112 if test "${ac_cv_header_db_h+set}" = set; then
18113 echo $ECHO_N "(cached) $ECHO_C" >&6
18115 cat >conftest.$ac_ext <<_ACEOF
18116 #line 18116 "configure"
18117 #include "confdefs.h"
18120 if { (eval echo "$as_me:18120: \"$ac_cpp conftest.$ac_ext\"") >&5
18121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18123 egrep -v '^ *\+' conftest.er1 >conftest.err
18125 cat conftest.err >&5
18126 echo "$as_me:18126: \$? = $ac_status" >&5
18127 (exit $ac_status); } >/dev/null; then
18128 if test -s conftest.err; then
18129 ac_cpp_err=$ac_c_preproc_warn_flag
18136 if test -z "$ac_cpp_err"; then
18137 ac_cv_header_db_h=yes
18139 echo "$as_me: failed program was:" >&5
18140 cat conftest.$ac_ext >&5
18141 ac_cv_header_db_h=no
18143 rm -f conftest.err conftest.$ac_ext
18145 echo "$as_me:18145: result: $ac_cv_header_db_h" >&5
18146 echo "${ECHO_T}$ac_cv_header_db_h" >&6
18147 if test $ac_cv_header_db_h = yes; then
18149 echo "$as_me:18149: checking for version of db" >&5
18150 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
18151 if test "${cf_cv_hashed_db_version+set}" = set; then
18152 echo $ECHO_N "(cached) $ECHO_C" >&6
18155 cf_cv_hashed_db_version=unknown
18157 for cf_db_version in 1 2 3 4 5 6
18160 echo "${as_me:-configure}:18160: testing checking for db version $cf_db_version ..." 1>&5
18162 cat >conftest.$ac_ext <<_ACEOF
18163 #line 18163 "configure"
18164 #include "confdefs.h"
18166 $ac_includes_default
18169 #ifdef DB_VERSION_MAJOR
18170 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
18171 #if $cf_db_version == DB_VERSION_MAJOR
18177 #if $cf_db_version == 1
18178 /* ok: assuming this is DB 1.8.5 */
18192 rm -f conftest.$ac_objext
18193 if { (eval echo "$as_me:18193: \"$ac_compile\"") >&5
18194 (eval $ac_compile) 2>&5
18196 echo "$as_me:18196: \$? = $ac_status" >&5
18197 (exit $ac_status); } &&
18198 { ac_try='test -s conftest.$ac_objext'
18199 { (eval echo "$as_me:18199: \"$ac_try\"") >&5
18200 (eval $ac_try) 2>&5
18202 echo "$as_me:18202: \$? = $ac_status" >&5
18203 (exit $ac_status); }; }; then
18205 cf_cv_hashed_db_version=$cf_db_version
18209 echo "$as_me: failed program was:" >&5
18210 cat conftest.$ac_ext >&5
18212 rm -f conftest.$ac_objext conftest.$ac_ext
18216 echo "$as_me:18216: result: $cf_cv_hashed_db_version" >&5
18217 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
18219 if test "$cf_cv_hashed_db_version" = unknown ; then
18220 { { echo "$as_me:18220: error: Cannot determine version of db" >&5
18221 echo "$as_me: error: Cannot determine version of db" >&2;}
18222 { (exit 1); exit 1; }; }
18225 echo "$as_me:18225: checking for db libraries" >&5
18226 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
18227 if test "${cf_cv_hashed_db_libs+set}" = set; then
18228 echo $ECHO_N "(cached) $ECHO_C" >&6
18231 cf_cv_hashed_db_libs=unknown
18232 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
18234 cf_save_libs="$LIBS"
18235 if test -n "$cf_db_libs"; then
18236 LIBS="-l$cf_db_libs $LIBS"
18239 echo "${as_me:-configure}:18239: testing checking for library "$cf_db_libs" ..." 1>&5
18241 cat >conftest.$ac_ext <<_ACEOF
18242 #line 18242 "configure"
18243 #include "confdefs.h"
18245 $ac_includes_default
18252 char *path = "/tmp/foo";
18253 #ifdef DB_VERSION_MAJOR
18254 #if DB_VERSION_MAJOR >= 4
18256 db_create(&result, NULL, 0);
18257 result->open(result,
18264 #elif DB_VERSION_MAJOR >= 3
18266 db_create(&result, NULL, 0);
18267 result->open(result,
18273 #elif DB_VERSION_MAJOR >= 2
18282 #endif /* DB_VERSION_MAJOR */
18284 DB *result = dbopen(path,
18290 ${cf_cv_main_return:-return}(result != 0)
18296 rm -f conftest.$ac_objext conftest$ac_exeext
18297 if { (eval echo "$as_me:18297: \"$ac_link\"") >&5
18298 (eval $ac_link) 2>&5
18300 echo "$as_me:18300: \$? = $ac_status" >&5
18301 (exit $ac_status); } &&
18302 { ac_try='test -s conftest$ac_exeext'
18303 { (eval echo "$as_me:18303: \"$ac_try\"") >&5
18304 (eval $ac_try) 2>&5
18306 echo "$as_me:18306: \$? = $ac_status" >&5
18307 (exit $ac_status); }; }; then
18309 if test -n "$cf_db_libs" ; then
18310 cf_cv_hashed_db_libs=$cf_db_libs
18312 cf_cv_hashed_db_libs=default
18314 LIBS="$cf_save_libs"
18318 echo "$as_me: failed program was:" >&5
18319 cat conftest.$ac_ext >&5
18321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18322 LIBS="$cf_save_libs"
18326 echo "$as_me:18326: result: $cf_cv_hashed_db_libs" >&5
18327 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
18329 if test "$cf_cv_hashed_db_libs" = unknown ; then
18330 { { echo "$as_me:18330: error: Cannot determine library for db" >&5
18331 echo "$as_me: error: Cannot determine library for db" >&2;}
18332 { (exit 1); exit 1; }; }
18333 elif test "$cf_cv_hashed_db_libs" != default ; then
18334 LIBS="-l$cf_cv_hashed_db_libs $LIBS"
18340 { { echo "$as_me:18340: error: Cannot find db.h" >&5
18341 echo "$as_me: error: Cannot find db.h" >&2;}
18342 { (exit 1); exit 1; }; }
18348 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
18349 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
18350 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
18353 # Just in case, check if the C compiler has a bool type.
18355 echo "$as_me:18355: checking if we should include stdbool.h" >&5
18356 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
18358 if test "${cf_cv_header_stdbool_h+set}" = set; then
18359 echo $ECHO_N "(cached) $ECHO_C" >&6
18362 cat >conftest.$ac_ext <<_ACEOF
18363 #line 18363 "configure"
18364 #include "confdefs.h"
18374 rm -f conftest.$ac_objext
18375 if { (eval echo "$as_me:18375: \"$ac_compile\"") >&5
18376 (eval $ac_compile) 2>&5
18378 echo "$as_me:18378: \$? = $ac_status" >&5
18379 (exit $ac_status); } &&
18380 { ac_try='test -s conftest.$ac_objext'
18381 { (eval echo "$as_me:18381: \"$ac_try\"") >&5
18382 (eval $ac_try) 2>&5
18384 echo "$as_me:18384: \$? = $ac_status" >&5
18385 (exit $ac_status); }; }; then
18386 cf_cv_header_stdbool_h=0
18388 echo "$as_me: failed program was:" >&5
18389 cat conftest.$ac_ext >&5
18390 cat >conftest.$ac_ext <<_ACEOF
18391 #line 18391 "configure"
18392 #include "confdefs.h"
18395 #include <stdbool.h>
18406 rm -f conftest.$ac_objext
18407 if { (eval echo "$as_me:18407: \"$ac_compile\"") >&5
18408 (eval $ac_compile) 2>&5
18410 echo "$as_me:18410: \$? = $ac_status" >&5
18411 (exit $ac_status); } &&
18412 { ac_try='test -s conftest.$ac_objext'
18413 { (eval echo "$as_me:18413: \"$ac_try\"") >&5
18414 (eval $ac_try) 2>&5
18416 echo "$as_me:18416: \$? = $ac_status" >&5
18417 (exit $ac_status); }; }; then
18418 cf_cv_header_stdbool_h=1
18420 echo "$as_me: failed program was:" >&5
18421 cat conftest.$ac_ext >&5
18422 cf_cv_header_stdbool_h=0
18424 rm -f conftest.$ac_objext conftest.$ac_ext
18426 rm -f conftest.$ac_objext conftest.$ac_ext
18429 if test "$cf_cv_header_stdbool_h" = 1
18430 then echo "$as_me:18430: result: yes" >&5
18431 echo "${ECHO_T}yes" >&6
18432 else echo "$as_me:18432: result: no" >&5
18433 echo "${ECHO_T}no" >&6
18436 echo "$as_me:18436: checking for builtin bool type" >&5
18437 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
18439 if test "${cf_cv_cc_bool_type+set}" = set; then
18440 echo $ECHO_N "(cached) $ECHO_C" >&6
18443 cat >conftest.$ac_ext <<_ACEOF
18444 #line 18444 "configure"
18445 #include "confdefs.h"
18448 #include <sys/types.h>
18458 rm -f conftest.$ac_objext
18459 if { (eval echo "$as_me:18459: \"$ac_compile\"") >&5
18460 (eval $ac_compile) 2>&5
18462 echo "$as_me:18462: \$? = $ac_status" >&5
18463 (exit $ac_status); } &&
18464 { ac_try='test -s conftest.$ac_objext'
18465 { (eval echo "$as_me:18465: \"$ac_try\"") >&5
18466 (eval $ac_try) 2>&5
18468 echo "$as_me:18468: \$? = $ac_status" >&5
18469 (exit $ac_status); }; }; then
18470 cf_cv_cc_bool_type=1
18472 echo "$as_me: failed program was:" >&5
18473 cat conftest.$ac_ext >&5
18474 cf_cv_cc_bool_type=0
18476 rm -f conftest.$ac_objext conftest.$ac_ext
18480 if test "$cf_cv_cc_bool_type" = 1
18481 then echo "$as_me:18481: result: yes" >&5
18482 echo "${ECHO_T}yes" >&6
18483 else echo "$as_me:18483: result: no" >&5
18484 echo "${ECHO_T}no" >&6
18487 # Check for C++ compiler characteristics (and ensure that it's there!)
18488 if test -n "$CXX" ; then
18490 ac_cpp='$CXXCPP $CPPFLAGS'
18491 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18492 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18493 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18494 ac_main_return=return
18496 if test -n "$GXX" ; then
18497 case $cf_cv_system_name in #(vi
18499 cf_stdcpp_libname=stdcpp
18502 cf_stdcpp_libname=stdc++
18505 echo "$as_me:18505: checking for library $cf_stdcpp_libname" >&5
18506 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
18507 if test "${cf_cv_libstdcpp+set}" = set; then
18508 echo $ECHO_N "(cached) $ECHO_C" >&6
18512 LIBS="-l$cf_stdcpp_libname $LIBS"
18513 cat >conftest.$ac_ext <<_ACEOF
18514 #line 18514 "configure"
18515 #include "confdefs.h"
18517 #include <strstream.h>
18523 strstreambuf foo(buf, sizeof(buf))
18529 rm -f conftest.$ac_objext conftest$ac_exeext
18530 if { (eval echo "$as_me:18530: \"$ac_link\"") >&5
18531 (eval $ac_link) 2>&5
18533 echo "$as_me:18533: \$? = $ac_status" >&5
18534 (exit $ac_status); } &&
18535 { ac_try='test -s conftest$ac_exeext'
18536 { (eval echo "$as_me:18536: \"$ac_try\"") >&5
18537 (eval $ac_try) 2>&5
18539 echo "$as_me:18539: \$? = $ac_status" >&5
18540 (exit $ac_status); }; }; then
18541 cf_cv_libstdcpp=yes
18543 echo "$as_me: failed program was:" >&5
18544 cat conftest.$ac_ext >&5
18547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18551 echo "$as_me:18551: result: $cf_cv_libstdcpp" >&5
18552 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
18553 test "$cf_cv_libstdcpp" = yes && CXXLIBS="-l$cf_stdcpp_libname $CXXLIBS"
18556 echo "$as_me:18556: checking whether $CXX understands -c and -o together" >&5
18557 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
18558 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
18559 echo $ECHO_N "(cached) $ECHO_C" >&6
18562 cat > conftest.$ac_ext <<CF_EOF
18566 ${cf_cv_main_return:-return}(0);
18569 # We do the test twice because some compilers refuse to overwrite an
18570 # existing .o file with -o, though they will create one.
18571 ac_try='$CXX -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
18572 if { (eval echo "$as_me:18572: \"$ac_try\"") >&5
18573 (eval $ac_try) 2>&5
18575 echo "$as_me:18575: \$? = $ac_status" >&5
18576 (exit $ac_status); } &&
18577 test -f conftest2.$ac_objext && { (eval echo "$as_me:18577: \"$ac_try\"") >&5
18578 (eval $ac_try) 2>&5
18580 echo "$as_me:18580: \$? = $ac_status" >&5
18581 (exit $ac_status); };
18583 eval cf_cv_prog_CXX_c_o=yes
18585 eval cf_cv_prog_CXX_c_o=no
18590 if test $cf_cv_prog_CXX_c_o = yes; then
18591 echo "$as_me:18591: result: yes" >&5
18592 echo "${ECHO_T}yes" >&6
18594 echo "$as_me:18594: result: no" >&5
18595 echo "${ECHO_T}no" >&6
18598 case $GXX_VERSION in
18604 cf_cxx_library=unknown
18605 case $cf_cv_system_name in #(vi
18613 if test "$GXX" = yes; then
18614 echo "$as_me:18614: checking for lib$cf_gpp_libname" >&5
18615 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
18617 LIBS="-l$cf_gpp_libname $LIBS"
18618 cat >conftest.$ac_ext <<_ACEOF
18619 #line 18619 "configure"
18620 #include "confdefs.h"
18622 #include <$cf_gpp_libname/builtin.h>
18627 two_arg_error_handler_t foo2 = lib_error_handler
18632 rm -f conftest.$ac_objext conftest$ac_exeext
18633 if { (eval echo "$as_me:18633: \"$ac_link\"") >&5
18634 (eval $ac_link) 2>&5
18636 echo "$as_me:18636: \$? = $ac_status" >&5
18637 (exit $ac_status); } &&
18638 { ac_try='test -s conftest$ac_exeext'
18639 { (eval echo "$as_me:18639: \"$ac_try\"") >&5
18640 (eval $ac_try) 2>&5
18642 echo "$as_me:18642: \$? = $ac_status" >&5
18643 (exit $ac_status); }; }; then
18645 CXXLIBS="-l$cf_gpp_libname $CXXLIBS"
18646 if test "$cf_gpp_libname" = cpp ; then
18648 cat >>confdefs.h <<\EOF
18649 #define HAVE_GPP_BUILTIN_H 1
18654 cat >>confdefs.h <<\EOF
18655 #define HAVE_GXX_BUILTIN_H 1
18660 echo "$as_me: failed program was:" >&5
18661 cat conftest.$ac_ext >&5
18662 cat >conftest.$ac_ext <<_ACEOF
18663 #line 18663 "configure"
18664 #include "confdefs.h"
18666 #include <builtin.h>
18671 two_arg_error_handler_t foo2 = lib_error_handler
18676 rm -f conftest.$ac_objext conftest$ac_exeext
18677 if { (eval echo "$as_me:18677: \"$ac_link\"") >&5
18678 (eval $ac_link) 2>&5
18680 echo "$as_me:18680: \$? = $ac_status" >&5
18681 (exit $ac_status); } &&
18682 { ac_try='test -s conftest$ac_exeext'
18683 { (eval echo "$as_me:18683: \"$ac_try\"") >&5
18684 (eval $ac_try) 2>&5
18686 echo "$as_me:18686: \$? = $ac_status" >&5
18687 (exit $ac_status); }; }; then
18689 CXXLIBS="-l$cf_gpp_libname $CXXLIBS"
18691 cat >>confdefs.h <<\EOF
18692 #define HAVE_BUILTIN_H 1
18696 echo "$as_me: failed program was:" >&5
18697 cat conftest.$ac_ext >&5
18700 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18702 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18704 echo "$as_me:18704: result: $cf_cxx_library" >&5
18705 echo "${ECHO_T}$cf_cxx_library" >&6
18715 ac_cpp='$CXXCPP $CPPFLAGS'
18716 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18717 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18718 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18719 ac_main_return=return
18720 echo "$as_me:18720: checking how to run the C++ preprocessor" >&5
18721 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
18722 if test -z "$CXXCPP"; then
18723 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18724 echo $ECHO_N "(cached) $ECHO_C" >&6
18726 # Double quotes because CXXCPP needs to be expanded
18727 for CXXCPP in "$CXX -E" "/lib/cpp"
18729 ac_preproc_ok=false
18730 for ac_cxx_preproc_warn_flag in '' yes
18732 # Use a header file that comes with gcc, so configuring glibc
18733 # with a fresh cross-compiler works.
18734 # On the NeXT, cc -E runs the code through the compiler's parser,
18735 # not just through cpp. "Syntax error" is here to catch this case.
18736 cat >conftest.$ac_ext <<_ACEOF
18737 #line 18737 "configure"
18738 #include "confdefs.h"
18739 #include <assert.h>
18742 if { (eval echo "$as_me:18742: \"$ac_cpp conftest.$ac_ext\"") >&5
18743 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18745 egrep -v '^ *\+' conftest.er1 >conftest.err
18747 cat conftest.err >&5
18748 echo "$as_me:18748: \$? = $ac_status" >&5
18749 (exit $ac_status); } >/dev/null; then
18750 if test -s conftest.err; then
18751 ac_cpp_err=$ac_cxx_preproc_warn_flag
18758 if test -z "$ac_cpp_err"; then
18761 echo "$as_me: failed program was:" >&5
18762 cat conftest.$ac_ext >&5
18763 # Broken: fails on valid input.
18766 rm -f conftest.err conftest.$ac_ext
18768 # OK, works on sane cases. Now check whether non-existent headers
18769 # can be detected and how.
18770 cat >conftest.$ac_ext <<_ACEOF
18771 #line 18771 "configure"
18772 #include "confdefs.h"
18773 #include <ac_nonexistent.h>
18775 if { (eval echo "$as_me:18775: \"$ac_cpp conftest.$ac_ext\"") >&5
18776 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18778 egrep -v '^ *\+' conftest.er1 >conftest.err
18780 cat conftest.err >&5
18781 echo "$as_me:18781: \$? = $ac_status" >&5
18782 (exit $ac_status); } >/dev/null; then
18783 if test -s conftest.err; then
18784 ac_cpp_err=$ac_cxx_preproc_warn_flag
18791 if test -z "$ac_cpp_err"; then
18792 # Broken: success on invalid input.
18795 echo "$as_me: failed program was:" >&5
18796 cat conftest.$ac_ext >&5
18797 # Passes both tests.
18801 rm -f conftest.err conftest.$ac_ext
18804 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18805 rm -f conftest.err conftest.$ac_ext
18806 if $ac_preproc_ok; then
18811 ac_cv_prog_CXXCPP=$CXXCPP
18814 CXXCPP=$ac_cv_prog_CXXCPP
18816 ac_cv_prog_CXXCPP=$CXXCPP
18818 echo "$as_me:18818: result: $CXXCPP" >&5
18819 echo "${ECHO_T}$CXXCPP" >&6
18820 ac_preproc_ok=false
18821 for ac_cxx_preproc_warn_flag in '' yes
18823 # Use a header file that comes with gcc, so configuring glibc
18824 # with a fresh cross-compiler works.
18825 # On the NeXT, cc -E runs the code through the compiler's parser,
18826 # not just through cpp. "Syntax error" is here to catch this case.
18827 cat >conftest.$ac_ext <<_ACEOF
18828 #line 18828 "configure"
18829 #include "confdefs.h"
18830 #include <assert.h>
18833 if { (eval echo "$as_me:18833: \"$ac_cpp conftest.$ac_ext\"") >&5
18834 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18836 egrep -v '^ *\+' conftest.er1 >conftest.err
18838 cat conftest.err >&5
18839 echo "$as_me:18839: \$? = $ac_status" >&5
18840 (exit $ac_status); } >/dev/null; then
18841 if test -s conftest.err; then
18842 ac_cpp_err=$ac_cxx_preproc_warn_flag
18849 if test -z "$ac_cpp_err"; then
18852 echo "$as_me: failed program was:" >&5
18853 cat conftest.$ac_ext >&5
18854 # Broken: fails on valid input.
18857 rm -f conftest.err conftest.$ac_ext
18859 # OK, works on sane cases. Now check whether non-existent headers
18860 # can be detected and how.
18861 cat >conftest.$ac_ext <<_ACEOF
18862 #line 18862 "configure"
18863 #include "confdefs.h"
18864 #include <ac_nonexistent.h>
18866 if { (eval echo "$as_me:18866: \"$ac_cpp conftest.$ac_ext\"") >&5
18867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18869 egrep -v '^ *\+' conftest.er1 >conftest.err
18871 cat conftest.err >&5
18872 echo "$as_me:18872: \$? = $ac_status" >&5
18873 (exit $ac_status); } >/dev/null; then
18874 if test -s conftest.err; then
18875 ac_cpp_err=$ac_cxx_preproc_warn_flag
18882 if test -z "$ac_cpp_err"; then
18883 # Broken: success on invalid input.
18886 echo "$as_me: failed program was:" >&5
18887 cat conftest.$ac_ext >&5
18888 # Passes both tests.
18892 rm -f conftest.err conftest.$ac_ext
18895 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18896 rm -f conftest.err conftest.$ac_ext
18897 if $ac_preproc_ok; then
18900 { { echo "$as_me:18900: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
18901 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
18902 { (exit 1); exit 1; }; }
18906 ac_cpp='$CXXCPP $CPPFLAGS'
18907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18910 ac_main_return=return
18912 for ac_header in typeinfo
18914 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18915 echo "$as_me:18915: checking for $ac_header" >&5
18916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18918 echo $ECHO_N "(cached) $ECHO_C" >&6
18920 cat >conftest.$ac_ext <<_ACEOF
18921 #line 18921 "configure"
18922 #include "confdefs.h"
18923 #include <$ac_header>
18925 if { (eval echo "$as_me:18925: \"$ac_cpp conftest.$ac_ext\"") >&5
18926 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18928 egrep -v '^ *\+' conftest.er1 >conftest.err
18930 cat conftest.err >&5
18931 echo "$as_me:18931: \$? = $ac_status" >&5
18932 (exit $ac_status); } >/dev/null; then
18933 if test -s conftest.err; then
18934 ac_cpp_err=$ac_cxx_preproc_warn_flag
18941 if test -z "$ac_cpp_err"; then
18942 eval "$as_ac_Header=yes"
18944 echo "$as_me: failed program was:" >&5
18945 cat conftest.$ac_ext >&5
18946 eval "$as_ac_Header=no"
18948 rm -f conftest.err conftest.$ac_ext
18950 echo "$as_me:18950: result: `eval echo '${'$as_ac_Header'}'`" >&5
18951 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18953 cat >>confdefs.h <<EOF
18954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18960 for ac_header in iostream
18962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18963 echo "$as_me:18963: checking for $ac_header" >&5
18964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18966 echo $ECHO_N "(cached) $ECHO_C" >&6
18968 cat >conftest.$ac_ext <<_ACEOF
18969 #line 18969 "configure"
18970 #include "confdefs.h"
18971 #include <$ac_header>
18973 if { (eval echo "$as_me:18973: \"$ac_cpp conftest.$ac_ext\"") >&5
18974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18976 egrep -v '^ *\+' conftest.er1 >conftest.err
18978 cat conftest.err >&5
18979 echo "$as_me:18979: \$? = $ac_status" >&5
18980 (exit $ac_status); } >/dev/null; then
18981 if test -s conftest.err; then
18982 ac_cpp_err=$ac_cxx_preproc_warn_flag
18989 if test -z "$ac_cpp_err"; then
18990 eval "$as_ac_Header=yes"
18992 echo "$as_me: failed program was:" >&5
18993 cat conftest.$ac_ext >&5
18994 eval "$as_ac_Header=no"
18996 rm -f conftest.err conftest.$ac_ext
18998 echo "$as_me:18998: result: `eval echo '${'$as_ac_Header'}'`" >&5
18999 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19000 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19001 cat >>confdefs.h <<EOF
19002 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19008 if test x"$ac_cv_header_iostream" = xyes ; then
19009 echo "$as_me:19009: checking if iostream uses std-namespace" >&5
19010 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
19011 cat >conftest.$ac_ext <<_ACEOF
19012 #line 19012 "configure"
19013 #include "confdefs.h"
19015 #include <iostream>
19022 cerr << "testing" << endl;
19028 rm -f conftest.$ac_objext
19029 if { (eval echo "$as_me:19029: \"$ac_compile\"") >&5
19030 (eval $ac_compile) 2>&5
19032 echo "$as_me:19032: \$? = $ac_status" >&5
19033 (exit $ac_status); } &&
19034 { ac_try='test -s conftest.$ac_objext'
19035 { (eval echo "$as_me:19035: \"$ac_try\"") >&5
19036 (eval $ac_try) 2>&5
19038 echo "$as_me:19038: \$? = $ac_status" >&5
19039 (exit $ac_status); }; }; then
19040 cf_iostream_namespace=yes
19042 echo "$as_me: failed program was:" >&5
19043 cat conftest.$ac_ext >&5
19044 cf_iostream_namespace=no
19046 rm -f conftest.$ac_objext conftest.$ac_ext
19047 echo "$as_me:19047: result: $cf_iostream_namespace" >&5
19048 echo "${ECHO_T}$cf_iostream_namespace" >&6
19049 if test "$cf_iostream_namespace" = yes ; then
19051 cat >>confdefs.h <<\EOF
19052 #define IOSTREAM_NAMESPACE 1
19058 echo "$as_me:19058: checking if we should include stdbool.h" >&5
19059 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
19061 if test "${cf_cv_header_stdbool_h+set}" = set; then
19062 echo $ECHO_N "(cached) $ECHO_C" >&6
19065 cat >conftest.$ac_ext <<_ACEOF
19066 #line 19066 "configure"
19067 #include "confdefs.h"
19077 rm -f conftest.$ac_objext
19078 if { (eval echo "$as_me:19078: \"$ac_compile\"") >&5
19079 (eval $ac_compile) 2>&5
19081 echo "$as_me:19081: \$? = $ac_status" >&5
19082 (exit $ac_status); } &&
19083 { ac_try='test -s conftest.$ac_objext'
19084 { (eval echo "$as_me:19084: \"$ac_try\"") >&5
19085 (eval $ac_try) 2>&5
19087 echo "$as_me:19087: \$? = $ac_status" >&5
19088 (exit $ac_status); }; }; then
19089 cf_cv_header_stdbool_h=0
19091 echo "$as_me: failed program was:" >&5
19092 cat conftest.$ac_ext >&5
19093 cat >conftest.$ac_ext <<_ACEOF
19094 #line 19094 "configure"
19095 #include "confdefs.h"
19098 #include <stdbool.h>
19109 rm -f conftest.$ac_objext
19110 if { (eval echo "$as_me:19110: \"$ac_compile\"") >&5
19111 (eval $ac_compile) 2>&5
19113 echo "$as_me:19113: \$? = $ac_status" >&5
19114 (exit $ac_status); } &&
19115 { ac_try='test -s conftest.$ac_objext'
19116 { (eval echo "$as_me:19116: \"$ac_try\"") >&5
19117 (eval $ac_try) 2>&5
19119 echo "$as_me:19119: \$? = $ac_status" >&5
19120 (exit $ac_status); }; }; then
19121 cf_cv_header_stdbool_h=1
19123 echo "$as_me: failed program was:" >&5
19124 cat conftest.$ac_ext >&5
19125 cf_cv_header_stdbool_h=0
19127 rm -f conftest.$ac_objext conftest.$ac_ext
19129 rm -f conftest.$ac_objext conftest.$ac_ext
19132 if test "$cf_cv_header_stdbool_h" = 1
19133 then echo "$as_me:19133: result: yes" >&5
19134 echo "${ECHO_T}yes" >&6
19135 else echo "$as_me:19135: result: no" >&5
19136 echo "${ECHO_T}no" >&6
19139 echo "$as_me:19139: checking for builtin bool type" >&5
19140 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
19142 if test "${cf_cv_builtin_bool+set}" = set; then
19143 echo $ECHO_N "(cached) $ECHO_C" >&6
19146 cat >conftest.$ac_ext <<_ACEOF
19147 #line 19147 "configure"
19148 #include "confdefs.h"
19151 #include <sys/types.h>
19161 rm -f conftest.$ac_objext
19162 if { (eval echo "$as_me:19162: \"$ac_compile\"") >&5
19163 (eval $ac_compile) 2>&5
19165 echo "$as_me:19165: \$? = $ac_status" >&5
19166 (exit $ac_status); } &&
19167 { ac_try='test -s conftest.$ac_objext'
19168 { (eval echo "$as_me:19168: \"$ac_try\"") >&5
19169 (eval $ac_try) 2>&5
19171 echo "$as_me:19171: \$? = $ac_status" >&5
19172 (exit $ac_status); }; }; then
19173 cf_cv_builtin_bool=1
19175 echo "$as_me: failed program was:" >&5
19176 cat conftest.$ac_ext >&5
19177 cf_cv_builtin_bool=0
19179 rm -f conftest.$ac_objext conftest.$ac_ext
19183 if test "$cf_cv_builtin_bool" = 1
19184 then echo "$as_me:19184: result: yes" >&5
19185 echo "${ECHO_T}yes" >&6
19186 else echo "$as_me:19186: result: no" >&5
19187 echo "${ECHO_T}no" >&6
19190 echo "$as_me:19190: checking for size of bool" >&5
19191 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
19192 if test "${cf_cv_type_of_bool+set}" = set; then
19193 echo $ECHO_N "(cached) $ECHO_C" >&6
19197 if test "$cross_compiling" = yes; then
19198 cf_cv_type_of_bool=unknown
19200 cat >conftest.$ac_ext <<_ACEOF
19201 #line 19201 "configure"
19202 #include "confdefs.h"
19204 #include <stdlib.h>
19207 #if defined(__cplusplus)
19209 #ifdef HAVE_GXX_BUILTIN_H
19210 #include <g++/builtin.h>
19211 #elif HAVE_GPP_BUILTIN_H
19212 #include <gpp/builtin.h>
19213 #elif HAVE_BUILTIN_H
19214 #include <builtin.h>
19219 #if $cf_cv_header_stdbool_h
19220 #include <stdbool.h>
19227 FILE *fp = fopen("cf_test.out", "w");
19230 if ((bool)(-x) >= 0)
19231 fputs("unsigned ", fp);
19232 if (sizeof(x) == sizeof(int)) fputs("int", fp);
19233 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
19234 else if (sizeof(x) == sizeof(short))fputs("short",fp);
19235 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
19238 ${cf_cv_main_return:-return}(0);
19242 rm -f conftest$ac_exeext
19243 if { (eval echo "$as_me:19243: \"$ac_link\"") >&5
19244 (eval $ac_link) 2>&5
19246 echo "$as_me:19246: \$? = $ac_status" >&5
19247 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19248 { (eval echo "$as_me:19248: \"$ac_try\"") >&5
19249 (eval $ac_try) 2>&5
19251 echo "$as_me:19251: \$? = $ac_status" >&5
19252 (exit $ac_status); }; }; then
19253 cf_cv_type_of_bool=`cat cf_test.out`
19254 if test -z "$cf_cv_type_of_bool"; then
19255 cf_cv_type_of_bool=unknown
19258 echo "$as_me: program exited with status $ac_status" >&5
19259 echo "$as_me: failed program was:" >&5
19260 cat conftest.$ac_ext >&5
19261 cf_cv_type_of_bool=unknown
19263 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19269 echo "$as_me:19269: result: $cf_cv_type_of_bool" >&5
19270 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
19271 if test "$cf_cv_type_of_bool" = unknown ; then
19272 case .$NCURSES_BOOL in #(vi
19273 .auto|.) NCURSES_BOOL=unsigned;;
19275 { echo "$as_me:19275: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
19276 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
19277 cf_cv_type_of_bool=$NCURSES_BOOL
19280 echo "$as_me:19280: checking for special defines needed for etip.h" >&5
19281 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
19282 cf_save_CXXFLAGS="$CXXFLAGS"
19285 # etip.h includes ncurses.h which includes ncurses_dll.h
19286 # But ncurses_dll.h is generated - fix here.
19287 test -d include || mkdir include
19288 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
19290 for cf_math in "" MATH_H
19292 for cf_excp in "" MATH_EXCEPTION
19294 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -Iinclude -I${srcdir}/include"
19295 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
19296 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
19297 cat >conftest.$ac_ext <<_ACEOF
19298 #line 19298 "configure"
19299 #include "confdefs.h"
19301 #include <etip.h.in>
19311 rm -f conftest.$ac_objext
19312 if { (eval echo "$as_me:19312: \"$ac_compile\"") >&5
19313 (eval $ac_compile) 2>&5
19315 echo "$as_me:19315: \$? = $ac_status" >&5
19316 (exit $ac_status); } &&
19317 { ac_try='test -s conftest.$ac_objext'
19318 { (eval echo "$as_me:19318: \"$ac_try\"") >&5
19319 (eval $ac_try) 2>&5
19321 echo "$as_me:19321: \$? = $ac_status" >&5
19322 (exit $ac_status); }; }; then
19324 test -n "$cf_math" && cat >>confdefs.h <<EOF
19325 #define ETIP_NEEDS_${cf_math} 1
19328 test -n "$cf_excp" && cat >>confdefs.h <<EOF
19329 #define ETIP_NEEDS_${cf_excp} 1
19332 cf_result="$cf_math $cf_excp"
19336 echo "$as_me: failed program was:" >&5
19337 cat conftest.$ac_ext >&5
19339 rm -f conftest.$ac_objext conftest.$ac_ext
19342 echo "$as_me:19342: result: $cf_result" >&5
19343 echo "${ECHO_T}$cf_result" >&6
19344 CXXFLAGS="$cf_save_CXXFLAGS"
19346 if test -n "$CXX"; then
19347 echo "$as_me:19347: checking if $CXX accepts parameter initialization" >&5
19348 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
19349 if test "${cf_cv_cpp_param_init+set}" = set; then
19350 echo $ECHO_N "(cached) $ECHO_C" >&6
19354 ac_cpp='$CXXCPP $CPPFLAGS'
19355 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19356 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19357 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19358 ac_main_return=return
19360 if test "$cross_compiling" = yes; then
19361 cf_cv_cpp_param_init=unknown
19363 cat >conftest.$ac_ext <<_ACEOF
19364 #line 19364 "configure"
19365 #include "confdefs.h"
19375 TEST::TEST(int x = 1) // some compilers do not like second initializer
19382 rm -f conftest$ac_exeext
19383 if { (eval echo "$as_me:19383: \"$ac_link\"") >&5
19384 (eval $ac_link) 2>&5
19386 echo "$as_me:19386: \$? = $ac_status" >&5
19387 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19388 { (eval echo "$as_me:19388: \"$ac_try\"") >&5
19389 (eval $ac_try) 2>&5
19391 echo "$as_me:19391: \$? = $ac_status" >&5
19392 (exit $ac_status); }; }; then
19393 cf_cv_cpp_param_init=yes
19395 echo "$as_me: program exited with status $ac_status" >&5
19396 echo "$as_me: failed program was:" >&5
19397 cat conftest.$ac_ext >&5
19398 cf_cv_cpp_param_init=no
19400 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19403 ac_cpp='$CXXCPP $CPPFLAGS'
19404 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19405 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19406 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19407 ac_main_return=return
19410 echo "$as_me:19410: result: $cf_cv_cpp_param_init" >&5
19411 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
19413 test "$cf_cv_cpp_param_init" = yes &&
19414 cat >>confdefs.h <<\EOF
19415 #define CPP_HAS_PARAM_INIT 1
19418 if test -n "$CXX"; then
19420 echo "$as_me:19420: checking if $CXX accepts static_cast" >&5
19421 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
19422 if test "${cf_cv_cpp_static_cast+set}" = set; then
19423 echo $ECHO_N "(cached) $ECHO_C" >&6
19427 ac_cpp='$CXXCPP $CPPFLAGS'
19428 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19429 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19430 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19431 ac_main_return=return
19433 cat >conftest.$ac_ext <<_ACEOF
19434 #line 19434 "configure"
19435 #include "confdefs.h"
19440 NCursesPanel(int nlines,
19450 template<class T> class NCursesUserPanel : public NCursesPanel
19453 NCursesUserPanel (int nlines,
19457 const T* p_UserData = static_cast<T*>(0))
19458 : NCursesPanel (nlines, ncols, begin_y, begin_x)
19461 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
19465 virtual ~NCursesUserPanel() {};
19472 const char* p_UserData = static_cast<char*>(0)
19477 rm -f conftest.$ac_objext
19478 if { (eval echo "$as_me:19478: \"$ac_compile\"") >&5
19479 (eval $ac_compile) 2>&5
19481 echo "$as_me:19481: \$? = $ac_status" >&5
19482 (exit $ac_status); } &&
19483 { ac_try='test -s conftest.$ac_objext'
19484 { (eval echo "$as_me:19484: \"$ac_try\"") >&5
19485 (eval $ac_try) 2>&5
19487 echo "$as_me:19487: \$? = $ac_status" >&5
19488 (exit $ac_status); }; }; then
19489 cf_cv_cpp_static_cast=yes
19491 echo "$as_me: failed program was:" >&5
19492 cat conftest.$ac_ext >&5
19493 cf_cv_cpp_static_cast=no
19495 rm -f conftest.$ac_objext conftest.$ac_ext
19498 ac_cpp='$CXXCPP $CPPFLAGS'
19499 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19500 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19501 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19502 ac_main_return=return
19505 echo "$as_me:19505: result: $cf_cv_cpp_static_cast" >&5
19506 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
19510 test "$cf_cv_cpp_static_cast" = yes &&
19511 cat >>confdefs.h <<\EOF
19512 #define CPP_HAS_STATIC_CAST 1
19516 CXX_ARFLAGS='$(ARFLAGS)'
19517 case $cf_cv_system_name in #(vi
19519 if test "$GXX" != yes ; then
19521 CXX_ARFLAGS='-ar -o'
19525 CXXLDFLAGS="-u main"
19528 if test "$GXX" != yes ; then
19530 CXX_ARFLAGS='-xar -o'
19537 cf_cv_builtin_bool=1
19539 # Just because we are not configuring against C++ right now does not
19540 # mean that a user will not want to use C++. Some distributors disable
19541 # the C++ portion of this configuration as a shortcut (or just to avoid
19542 # compiling the demo in the c++ directory). So we need a reasonable
19543 # default for the 'bool' type.
19545 # Caveat: since the storage of the bool type is not standardized, it
19548 if test "$NCURSES_BOOL" != auto ; then
19549 cf_cv_type_of_bool=$NCURSES_BOOL
19550 cf_cv_header_stdbool_h=0
19552 if test "$cf_cv_header_stdbool_h" = 1 ; then
19554 echo "$as_me:19554: checking for size of bool" >&5
19555 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
19556 if test "${cf_cv_type_of_bool+set}" = set; then
19557 echo $ECHO_N "(cached) $ECHO_C" >&6
19561 if test "$cross_compiling" = yes; then
19562 cf_cv_type_of_bool=unknown
19564 cat >conftest.$ac_ext <<_ACEOF
19565 #line 19565 "configure"
19566 #include "confdefs.h"
19568 #include <stdlib.h>
19571 #if defined(__cplusplus)
19573 #ifdef HAVE_GXX_BUILTIN_H
19574 #include <g++/builtin.h>
19575 #elif HAVE_GPP_BUILTIN_H
19576 #include <gpp/builtin.h>
19577 #elif HAVE_BUILTIN_H
19578 #include <builtin.h>
19583 #if $cf_cv_header_stdbool_h
19584 #include <stdbool.h>
19591 FILE *fp = fopen("cf_test.out", "w");
19594 if ((bool)(-x) >= 0)
19595 fputs("unsigned ", fp);
19596 if (sizeof(x) == sizeof(int)) fputs("int", fp);
19597 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
19598 else if (sizeof(x) == sizeof(short))fputs("short",fp);
19599 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
19602 ${cf_cv_main_return:-return}(0);
19606 rm -f conftest$ac_exeext
19607 if { (eval echo "$as_me:19607: \"$ac_link\"") >&5
19608 (eval $ac_link) 2>&5
19610 echo "$as_me:19610: \$? = $ac_status" >&5
19611 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19612 { (eval echo "$as_me:19612: \"$ac_try\"") >&5
19613 (eval $ac_try) 2>&5
19615 echo "$as_me:19615: \$? = $ac_status" >&5
19616 (exit $ac_status); }; }; then
19617 cf_cv_type_of_bool=`cat cf_test.out`
19618 if test -z "$cf_cv_type_of_bool"; then
19619 cf_cv_type_of_bool=unknown
19622 echo "$as_me: program exited with status $ac_status" >&5
19623 echo "$as_me: failed program was:" >&5
19624 cat conftest.$ac_ext >&5
19625 cf_cv_type_of_bool=unknown
19627 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19633 echo "$as_me:19633: result: $cf_cv_type_of_bool" >&5
19634 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
19635 if test "$cf_cv_type_of_bool" = unknown ; then
19636 case .$NCURSES_BOOL in #(vi
19637 .auto|.) NCURSES_BOOL=unsigned;;
19639 { echo "$as_me:19639: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
19640 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
19641 cf_cv_type_of_bool=$NCURSES_BOOL
19645 echo "$as_me:19645: checking for fallback type of bool" >&5
19646 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
19647 case "$host_cpu" in #(vi
19648 i?86) cf_cv_type_of_bool=char ;; #(vi
19649 *) cf_cv_type_of_bool=int ;;
19651 echo "$as_me:19651: result: $cf_cv_type_of_bool" >&5
19652 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
19657 # If the C compiler did not declare bool, and we did not determine that the C++
19658 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
19659 # ncurses library use the same type as C++ bool. Note that this allows one to
19660 # specify the type of bool in a configure-script option and postpone
19661 # integration with the C++ compiler provided that the types are compatible.
19663 if test $cf_cv_cc_bool_type = 1
19665 # oops: C has a bool. Unlikely, but C++ could differ.
19667 elif test $cf_cv_builtin_bool = 0
19672 # this is the normal case
19673 USE_CXX_BOOL='defined(__cplusplus)'
19676 if test -f "${srcdir}/Ada95/Makefile.in" ; then
19678 if test "$cf_with_ada" != "no" ; then
19679 if test "$with_libtool" != "no"; then
19680 { echo "$as_me:19680: WARNING: libtool does not support Ada - disabling feature" >&5
19681 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
19686 if test "$cf_with_ada" != "no" ; then
19688 cf_ada_make=gnatmake
19689 # Extract the first word of "$cf_ada_make", so it can be a program name with args.
19690 set dummy $cf_ada_make; ac_word=$2
19691 echo "$as_me:19691: checking for $ac_word" >&5
19692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19693 if test "${ac_cv_prog_gnat_exists+set}" = set; then
19694 echo $ECHO_N "(cached) $ECHO_C" >&6
19696 if test -n "$gnat_exists"; then
19697 ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test.
19699 ac_save_IFS=$IFS; IFS=$ac_path_separator
19701 for ac_dir in $ac_dummy; do
19703 test -z "$ac_dir" && ac_dir=.
19704 $as_executable_p "$ac_dir/$ac_word" || continue
19705 ac_cv_prog_gnat_exists="yes"
19706 echo "$as_me:19706: found $ac_dir/$ac_word" >&5
19710 test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no"
19713 gnat_exists=$ac_cv_prog_gnat_exists
19714 if test -n "$gnat_exists"; then
19715 echo "$as_me:19715: result: $gnat_exists" >&5
19716 echo "${ECHO_T}$gnat_exists" >&6
19718 echo "$as_me:19718: result: no" >&5
19719 echo "${ECHO_T}no" >&6
19722 if test "$ac_cv_prog_gnat_exists" = no; then
19724 cf_cv_prog_gnat_correct=no
19727 echo "$as_me:19727: checking for gnat version" >&5
19728 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
19729 cf_gnat_version=`${cf_ada_make:-gnatmake} -v 2>&1 | \
19730 grep '[0-9].[0-9][0-9]*' |\
19731 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
19732 echo "$as_me:19732: result: $cf_gnat_version" >&5
19733 echo "${ECHO_T}$cf_gnat_version" >&6
19735 case $cf_gnat_version in #(vi
19736 3.1[1-9]*|3.[2-9]*|[4-9].*|20[0-9][0-9]) #(vi
19737 cf_cv_prog_gnat_correct=yes
19740 { echo "$as_me:19740: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
19741 echo "$as_me: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
19742 cf_cv_prog_gnat_correct=no
19746 # Extract the first word of "m4", so it can be a program name with args.
19747 set dummy m4; ac_word=$2
19748 echo "$as_me:19748: checking for $ac_word" >&5
19749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19750 if test "${ac_cv_prog_M4_exists+set}" = set; then
19751 echo $ECHO_N "(cached) $ECHO_C" >&6
19753 if test -n "$M4_exists"; then
19754 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
19756 ac_save_IFS=$IFS; IFS=$ac_path_separator
19758 for ac_dir in $ac_dummy; do
19760 test -z "$ac_dir" && ac_dir=.
19761 $as_executable_p "$ac_dir/$ac_word" || continue
19762 ac_cv_prog_M4_exists="yes"
19763 echo "$as_me:19763: found $ac_dir/$ac_word" >&5
19767 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
19770 M4_exists=$ac_cv_prog_M4_exists
19771 if test -n "$M4_exists"; then
19772 echo "$as_me:19772: result: $M4_exists" >&5
19773 echo "${ECHO_T}$M4_exists" >&6
19775 echo "$as_me:19775: result: no" >&5
19776 echo "${ECHO_T}no" >&6
19779 if test "$ac_cv_prog_M4_exists" = no; then
19780 cf_cv_prog_gnat_correct=no
19781 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
19783 if test "$cf_cv_prog_gnat_correct" = yes; then
19784 echo "$as_me:19784: checking if GNAT works" >&5
19785 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
19787 rm -rf conftest* *~conftest*
19788 cat >>conftest.ads <<CF_EOF
19789 procedure conftest;
19791 cat >>conftest.adb <<CF_EOF
19794 procedure conftest is
19796 Text_IO.Put ("Hello World");
19798 GNAT.OS_Lib.OS_Exit (0);
19801 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
19802 if ( ./conftest 1>&5 2>&1 ) ; then
19803 cf_cv_prog_gnat_correct=yes
19805 cf_cv_prog_gnat_correct=no
19808 cf_cv_prog_gnat_correct=no
19810 rm -rf conftest* *~conftest*
19812 echo "$as_me:19812: result: $cf_cv_prog_gnat_correct" >&5
19813 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
19817 if test "x$cf_cv_prog_gnat_correct" = xyes; then
19819 ADAFLAGS="$ADAFLAGS -gnatpn"
19821 echo "$as_me:19821: checking optimization options for ADAFLAGS" >&5
19822 echo $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6
19826 ADAFLAGS="$ADAFLAGS -g"
19832 cf_O_flag=`echo "$CFLAGS" |sed -e 's/^.*-O/-O/' -e 's/[ ].*//'`
19834 ADAFLAGS="$ADAFLAGS $cf_O_flag"
19838 echo "$as_me:19838: result: $ADAFLAGS" >&5
19839 echo "${ECHO_T}$ADAFLAGS" >&6
19841 echo "$as_me:19841: checking if GNAT supports generics" >&5
19842 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
19843 case $cf_gnat_version in #(vi
19844 3.[1-9]*|[4-9].*) #(vi
19845 cf_gnat_generics=yes
19848 cf_gnat_generics=no
19851 echo "$as_me:19851: result: $cf_gnat_generics" >&5
19852 echo "${ECHO_T}$cf_gnat_generics" >&6
19854 if test "$cf_gnat_generics" = yes
19856 cf_compile_generics=generics
19857 cf_generic_objects="\${GENOBJS}"
19859 cf_compile_generics=
19860 cf_generic_objects=
19863 echo "$as_me:19863: checking if GNAT supports SIGINT" >&5
19864 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
19865 if test "${cf_cv_gnat_sigint+set}" = set; then
19866 echo $ECHO_N "(cached) $ECHO_C" >&6
19869 rm -rf conftest* *~conftest*
19870 cat >>conftest.ads <<CF_EOF
19871 with Ada.Interrupts.Names;
19873 package ConfTest is
19875 pragma Warnings (Off); -- the next pragma exists since 3.11p
19876 pragma Unreserve_All_Interrupts;
19877 pragma Warnings (On);
19879 protected Process is
19881 function Continue return Boolean;
19882 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
19884 Done : Boolean := False;
19889 cat >>conftest.adb <<CF_EOF
19890 package body ConfTest is
19891 protected body Process is
19896 function Continue return Boolean is
19903 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
19904 cf_cv_gnat_sigint=yes
19906 cf_cv_gnat_sigint=no
19908 rm -rf conftest* *~conftest*
19911 echo "$as_me:19911: result: $cf_cv_gnat_sigint" >&5
19912 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
19914 if test $cf_cv_gnat_sigint = yes ; then
19917 USE_GNAT_SIGINT="#"
19920 cf_gnat_libraries=no
19921 cf_gnat_projects=no
19923 if test "$enable_gnat_projects" != no ; then
19924 echo "$as_me:19924: checking if GNAT supports project files" >&5
19925 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
19926 case $cf_gnat_version in #(vi
19930 case $cf_cv_system_name in #(vi
19931 cygwin*|msys*) #(vi
19934 mkdir conftest.src conftest.bin conftest.lib
19936 rm -rf conftest* *~conftest*
19937 cat >>library.gpr <<CF_EOF
19939 Kind := External ("LIB_KIND");
19940 for Library_Name use "ConfTest";
19941 for Object_Dir use ".";
19942 for Library_ALI_Dir use External("LIBRARY_DIR");
19943 for Library_Version use External ("SONAME");
19944 for Library_Kind use Kind;
19945 for Library_Dir use External("BUILD_DIR");
19946 Source_Dir := External ("SOURCE_DIR");
19947 for Source_Dirs use (Source_Dir);
19950 cat >>confpackage.ads <<CF_EOF
19951 package ConfPackage is
19952 procedure conftest;
19955 cat >>confpackage.adb <<CF_EOF
19957 package body ConfPackage is
19958 procedure conftest is
19960 Text_IO.Put ("Hello World");
19965 if ( $cf_ada_make $ADAFLAGS \
19967 -XBUILD_DIR=`cd ../conftest.bin;pwd` \
19968 -XLIBRARY_DIR=`cd ../conftest.lib;pwd` \
19969 -XSOURCE_DIR=`pwd` \
19970 -XSONAME=libConfTest.so.1 \
19971 -XLIB_KIND=static 1>&5 2>&1 ) ; then
19972 cf_gnat_projects=yes
19975 if test -f conftest.lib/confpackage.ali
19977 cf_gnat_libraries=yes
19979 rm -rf conftest* *~conftest*
19984 echo "$as_me:19984: result: $cf_gnat_projects" >&5
19985 echo "${ECHO_T}$cf_gnat_projects" >&6
19986 fi # enable_gnat_projects
19988 if test $cf_gnat_projects = yes
19990 echo "$as_me:19990: checking if GNAT supports libraries" >&5
19991 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
19992 echo "$as_me:19992: result: $cf_gnat_libraries" >&5
19993 echo "${ECHO_T}$cf_gnat_libraries" >&6
19996 if test "$cf_gnat_projects" = yes
19998 USE_OLD_MAKERULES="#"
19999 USE_GNAT_PROJECTS=""
20001 USE_OLD_MAKERULES=""
20002 USE_GNAT_PROJECTS="#"
20005 if test "$cf_gnat_libraries" = yes
20007 USE_GNAT_LIBRARIES=""
20009 USE_GNAT_LIBRARIES="#"
20012 echo "$as_me:20012: checking for ada-compiler" >&5
20013 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
20015 # Check whether --with-ada-compiler or --without-ada-compiler was given.
20016 if test "${with_ada_compiler+set}" = set; then
20017 withval="$with_ada_compiler"
20018 cf_ada_compiler=$withval
20020 cf_ada_compiler=gnatmake
20023 echo "$as_me:20023: result: $cf_ada_compiler" >&5
20024 echo "${ECHO_T}$cf_ada_compiler" >&6
20026 cf_ada_package=terminal_interface
20028 echo "$as_me:20028: checking for ada-include" >&5
20029 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
20031 # Check whether --with-ada-include or --without-ada-include was given.
20032 if test "${with_ada_include+set}" = set; then
20033 withval="$with_ada_include"
20036 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
20037 fi; if test -n "$prefix/share/ada/adainclude" ; then
20039 if test "x$prefix" != xNONE; then
20040 cf_path_syntax="$prefix"
20042 cf_path_syntax="$ac_default_prefix"
20045 case ".$withval" in #(vi
20046 .\$\(*\)*|.\'*\'*) #(vi
20050 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
20052 .\${*prefix}*|.\${*dir}*) #(vi
20053 eval withval="$withval"
20054 case ".$withval" in #(vi
20056 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
20061 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
20064 { { echo "$as_me:20064: error: expected a pathname, not \"$withval\"" >&5
20065 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
20066 { (exit 1); exit 1; }; }
20071 eval ADA_INCLUDE="$withval"
20073 echo "$as_me:20073: result: $ADA_INCLUDE" >&5
20074 echo "${ECHO_T}$ADA_INCLUDE" >&6
20076 echo "$as_me:20076: checking for ada-objects" >&5
20077 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
20079 # Check whether --with-ada-objects or --without-ada-objects was given.
20080 if test "${with_ada_objects+set}" = set; then
20081 withval="$with_ada_objects"
20084 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
20085 fi; if test -n "$prefix/lib/ada/adalib" ; then
20087 if test "x$prefix" != xNONE; then
20088 cf_path_syntax="$prefix"
20090 cf_path_syntax="$ac_default_prefix"
20093 case ".$withval" in #(vi
20094 .\$\(*\)*|.\'*\'*) #(vi
20098 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
20100 .\${*prefix}*|.\${*dir}*) #(vi
20101 eval withval="$withval"
20102 case ".$withval" in #(vi
20104 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
20109 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
20112 { { echo "$as_me:20112: error: expected a pathname, not \"$withval\"" >&5
20113 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
20114 { (exit 1); exit 1; }; }
20119 eval ADA_OBJECTS="$withval"
20121 echo "$as_me:20121: result: $ADA_OBJECTS" >&5
20122 echo "${ECHO_T}$ADA_OBJECTS" >&6
20124 echo "$as_me:20124: checking if an Ada95 shared-library should be built" >&5
20125 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
20127 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
20128 if test "${with_ada_sharedlib+set}" = set; then
20129 withval="$with_ada_sharedlib"
20130 with_ada_sharedlib=$withval
20132 with_ada_sharedlib=no
20134 echo "$as_me:20134: result: $with_ada_sharedlib" >&5
20135 echo "${ECHO_T}$with_ada_sharedlib" >&6
20137 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
20138 MAKE_ADA_SHAREDLIB="#"
20140 if test "x$with_ada_sharedlib" != xno
20142 MAKE_ADA_SHAREDLIB=
20143 if test "x$with_ada_sharedlib" != xyes
20145 ADA_SHAREDLIB="$with_ada_sharedlib"
20155 # do this "late" to avoid conflict with header-checks
20156 if test "x$with_widec" = xyes ; then
20157 echo "$as_me:20157: checking for wchar_t" >&5
20158 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
20159 if test "${ac_cv_type_wchar_t+set}" = set; then
20160 echo $ECHO_N "(cached) $ECHO_C" >&6
20162 cat >conftest.$ac_ext <<_ACEOF
20163 #line 20163 "configure"
20164 #include "confdefs.h"
20165 $ac_includes_default
20171 if (sizeof (wchar_t))
20177 rm -f conftest.$ac_objext
20178 if { (eval echo "$as_me:20178: \"$ac_compile\"") >&5
20179 (eval $ac_compile) 2>&5
20181 echo "$as_me:20181: \$? = $ac_status" >&5
20182 (exit $ac_status); } &&
20183 { ac_try='test -s conftest.$ac_objext'
20184 { (eval echo "$as_me:20184: \"$ac_try\"") >&5
20185 (eval $ac_try) 2>&5
20187 echo "$as_me:20187: \$? = $ac_status" >&5
20188 (exit $ac_status); }; }; then
20189 ac_cv_type_wchar_t=yes
20191 echo "$as_me: failed program was:" >&5
20192 cat conftest.$ac_ext >&5
20193 ac_cv_type_wchar_t=no
20195 rm -f conftest.$ac_objext conftest.$ac_ext
20197 echo "$as_me:20197: result: $ac_cv_type_wchar_t" >&5
20198 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
20200 echo "$as_me:20200: checking size of wchar_t" >&5
20201 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
20202 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
20203 echo $ECHO_N "(cached) $ECHO_C" >&6
20205 if test "$ac_cv_type_wchar_t" = yes; then
20206 if test "$cross_compiling" = yes; then
20207 # Depending upon the size, compute the lo and hi bounds.
20208 cat >conftest.$ac_ext <<_ACEOF
20209 #line 20209 "configure"
20210 #include "confdefs.h"
20211 $ac_includes_default
20215 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= 0)]
20220 rm -f conftest.$ac_objext
20221 if { (eval echo "$as_me:20221: \"$ac_compile\"") >&5
20222 (eval $ac_compile) 2>&5
20224 echo "$as_me:20224: \$? = $ac_status" >&5
20225 (exit $ac_status); } &&
20226 { ac_try='test -s conftest.$ac_objext'
20227 { (eval echo "$as_me:20227: \"$ac_try\"") >&5
20228 (eval $ac_try) 2>&5
20230 echo "$as_me:20230: \$? = $ac_status" >&5
20231 (exit $ac_status); }; }; then
20234 cat >conftest.$ac_ext <<_ACEOF
20235 #line 20235 "configure"
20236 #include "confdefs.h"
20237 $ac_includes_default
20241 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
20246 rm -f conftest.$ac_objext
20247 if { (eval echo "$as_me:20247: \"$ac_compile\"") >&5
20248 (eval $ac_compile) 2>&5
20250 echo "$as_me:20250: \$? = $ac_status" >&5
20251 (exit $ac_status); } &&
20252 { ac_try='test -s conftest.$ac_objext'
20253 { (eval echo "$as_me:20253: \"$ac_try\"") >&5
20254 (eval $ac_try) 2>&5
20256 echo "$as_me:20256: \$? = $ac_status" >&5
20257 (exit $ac_status); }; }; then
20258 ac_hi=$ac_mid; break
20260 echo "$as_me: failed program was:" >&5
20261 cat conftest.$ac_ext >&5
20262 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
20264 rm -f conftest.$ac_objext conftest.$ac_ext
20267 echo "$as_me: failed program was:" >&5
20268 cat conftest.$ac_ext >&5
20271 cat >conftest.$ac_ext <<_ACEOF
20272 #line 20272 "configure"
20273 #include "confdefs.h"
20274 $ac_includes_default
20278 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= $ac_mid)]
20283 rm -f conftest.$ac_objext
20284 if { (eval echo "$as_me:20284: \"$ac_compile\"") >&5
20285 (eval $ac_compile) 2>&5
20287 echo "$as_me:20287: \$? = $ac_status" >&5
20288 (exit $ac_status); } &&
20289 { ac_try='test -s conftest.$ac_objext'
20290 { (eval echo "$as_me:20290: \"$ac_try\"") >&5
20291 (eval $ac_try) 2>&5
20293 echo "$as_me:20293: \$? = $ac_status" >&5
20294 (exit $ac_status); }; }; then
20295 ac_lo=$ac_mid; break
20297 echo "$as_me: failed program was:" >&5
20298 cat conftest.$ac_ext >&5
20299 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
20301 rm -f conftest.$ac_objext conftest.$ac_ext
20304 rm -f conftest.$ac_objext conftest.$ac_ext
20305 # Binary search between lo and hi bounds.
20306 while test "x$ac_lo" != "x$ac_hi"; do
20307 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20308 cat >conftest.$ac_ext <<_ACEOF
20309 #line 20309 "configure"
20310 #include "confdefs.h"
20311 $ac_includes_default
20315 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
20320 rm -f conftest.$ac_objext
20321 if { (eval echo "$as_me:20321: \"$ac_compile\"") >&5
20322 (eval $ac_compile) 2>&5
20324 echo "$as_me:20324: \$? = $ac_status" >&5
20325 (exit $ac_status); } &&
20326 { ac_try='test -s conftest.$ac_objext'
20327 { (eval echo "$as_me:20327: \"$ac_try\"") >&5
20328 (eval $ac_try) 2>&5
20330 echo "$as_me:20330: \$? = $ac_status" >&5
20331 (exit $ac_status); }; }; then
20334 echo "$as_me: failed program was:" >&5
20335 cat conftest.$ac_ext >&5
20336 ac_lo=`expr $ac_mid + 1`
20338 rm -f conftest.$ac_objext conftest.$ac_ext
20340 ac_cv_sizeof_wchar_t=$ac_lo
20342 if test "$cross_compiling" = yes; then
20343 { { echo "$as_me:20343: error: cannot run test program while cross compiling" >&5
20344 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
20345 { (exit 1); exit 1; }; }
20347 cat >conftest.$ac_ext <<_ACEOF
20348 #line 20348 "configure"
20349 #include "confdefs.h"
20350 $ac_includes_default
20354 FILE *f = fopen ("conftest.val", "w");
20356 $ac_main_return (1);
20357 fprintf (f, "%d", (sizeof (wchar_t)));
20363 rm -f conftest$ac_exeext
20364 if { (eval echo "$as_me:20364: \"$ac_link\"") >&5
20365 (eval $ac_link) 2>&5
20367 echo "$as_me:20367: \$? = $ac_status" >&5
20368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20369 { (eval echo "$as_me:20369: \"$ac_try\"") >&5
20370 (eval $ac_try) 2>&5
20372 echo "$as_me:20372: \$? = $ac_status" >&5
20373 (exit $ac_status); }; }; then
20374 ac_cv_sizeof_wchar_t=`cat conftest.val`
20376 echo "$as_me: program exited with status $ac_status" >&5
20377 echo "$as_me: failed program was:" >&5
20378 cat conftest.$ac_ext >&5
20380 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20385 ac_cv_sizeof_wchar_t=0
20388 echo "$as_me:20388: result: $ac_cv_sizeof_wchar_t" >&5
20389 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
20390 cat >>confdefs.h <<EOF
20391 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
20396 ### Construct the ncurses library-subsets, if any, from this set of keywords:
20397 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
20399 ### ticlib modules may be a separate library, otherwise contained in termlib.
20400 ### termlib modules may be a separate library, otherwise contained in ncurses.
20402 ### The of "+" or " " between the tokens controls the way the script
20403 ### chooses to split module lists into libraries.
20405 ### (see CF_LIB_RULES).
20406 echo "$as_me:20406: checking for library subsets" >&5
20407 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
20410 if test "x$cf_with_progs" = xyes || test "$with_ticlib" != no || test "$with_termcap" != no; then
20411 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
20412 if test "$with_ticlib" != no ; then
20413 LIB_SUBSETS="${LIB_SUBSETS} "
20415 LIB_SUBSETS="${LIB_SUBSETS}+"
20419 LIB_SUBSETS="${LIB_SUBSETS}termlib"
20420 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
20422 if test "$with_termlib" != no ; then
20423 LIB_SUBSETS="${LIB_SUBSETS} "
20425 LIB_SUBSETS="${LIB_SUBSETS}+"
20428 LIB_SUBSETS="${LIB_SUBSETS}base"
20430 # Most term-driver calls are to tinfo, but some like init_pair are to the
20431 # base library (so it resides in base).
20432 if test "$with_term_driver" != no ; then
20433 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
20434 case $cf_cv_system_name in #(vi
20436 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
20439 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
20444 test "x$with_widec" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
20445 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
20447 echo "$as_me:20447: result: $LIB_SUBSETS" >&5
20448 echo "${ECHO_T}$LIB_SUBSETS" >&6
20450 ### Construct the list of include-directories to be generated
20452 if test "$GCC" != yes; then
20453 CPPFLAGS="-I\${includedir} $CPPFLAGS"
20454 elif test "$includedir" != "/usr/include"; then
20455 if test "$includedir" = '${prefix}/include' ; then
20456 if test x$prefix != x/usr ; then
20457 CPPFLAGS="-I\${includedir} $CPPFLAGS"
20460 CPPFLAGS="-I\${includedir} $CPPFLAGS"
20463 if test "$srcdir" != "."; then
20464 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
20466 CPPFLAGS="-I. -I../include $CPPFLAGS"
20468 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
20469 if test "$srcdir" != "."; then
20470 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
20472 if test "$GCC" != yes; then
20473 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
20474 elif test "$includedir" != "/usr/include"; then
20475 if test "$includedir" = '${prefix}/include' ; then
20476 if test x$prefix != x/usr ; then
20477 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
20480 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
20484 ### Build up pieces for makefile rules
20485 echo "$as_me:20485: checking default library suffix" >&5
20486 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
20488 case $DFT_LWR_MODEL in
20489 libtool) DFT_ARG_SUFFIX='' ;;
20490 normal) DFT_ARG_SUFFIX='' ;;
20491 debug) DFT_ARG_SUFFIX='_g' ;;
20492 profile) DFT_ARG_SUFFIX='_p' ;;
20493 shared) DFT_ARG_SUFFIX='' ;;
20495 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
20496 echo "$as_me:20496: result: $DFT_ARG_SUFFIX" >&5
20497 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
20499 echo "$as_me:20499: checking default library-dependency suffix" >&5
20500 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
20502 case X$DFT_LWR_MODEL in #(vi
20504 DFT_LIB_SUFFIX='.la'
20505 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
20508 DFT_LIB_SUFFIX='_g.a'
20509 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
20512 DFT_LIB_SUFFIX='_p.a'
20513 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
20516 case $cf_cv_system_name in
20518 DFT_LIB_SUFFIX='.so'
20519 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
20521 cygwin*|msys*|mingw*) #(vi
20522 DFT_LIB_SUFFIX='.dll'
20523 DFT_DEP_SUFFIX='.dll.a'
20526 DFT_LIB_SUFFIX='.dylib'
20527 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
20532 DFT_LIB_SUFFIX='.so'
20533 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
20536 DFT_LIB_SUFFIX='.sl'
20537 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
20542 DFT_LIB_SUFFIX='.so'
20543 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
20548 DFT_LIB_SUFFIX='.a'
20549 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
20552 test -n "$LIB_SUFFIX" && DFT_LIB_SUFFIX="${LIB_SUFFIX}${DFT_LIB_SUFFIX}"
20553 test -n "$LIB_SUFFIX" && DFT_DEP_SUFFIX="${LIB_SUFFIX}${DFT_DEP_SUFFIX}"
20554 echo "$as_me:20554: result: $DFT_DEP_SUFFIX" >&5
20555 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
20557 echo "$as_me:20557: checking default object directory" >&5
20558 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
20560 case $DFT_LWR_MODEL in
20561 libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
20562 normal) DFT_OBJ_SUBDIR='objects' ;;
20563 debug) DFT_OBJ_SUBDIR='obj_g' ;;
20564 profile) DFT_OBJ_SUBDIR='obj_p' ;;
20566 case $cf_cv_system_name in #(vi
20568 DFT_OBJ_SUBDIR='objects' ;;
20570 DFT_OBJ_SUBDIR='obj_s' ;;
20573 echo "$as_me:20573: result: $DFT_OBJ_SUBDIR" >&5
20574 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
20576 if test "x$cf_with_cxx" = xyes ; then
20577 echo "$as_me:20577: checking c++ library-dependency suffix" >&5
20578 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
20579 if test "$with_libtool" != "no"; then
20580 # libtool thinks it can make c++ shared libraries (perhaps only g++)
20581 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
20582 elif test "$with_shared_cxx" != "no"; then
20583 # also for g++ users...
20584 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
20586 # we normally make a static library because C/C++ library rules differ
20588 case Xnormal in #(vi
20590 CXX_LIB_SUFFIX='.la'
20591 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
20594 CXX_LIB_SUFFIX='_g.a'
20595 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
20598 CXX_LIB_SUFFIX='_p.a'
20599 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
20602 case $cf_cv_system_name in
20604 CXX_LIB_SUFFIX='.so'
20605 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
20607 cygwin*|msys*|mingw*) #(vi
20608 CXX_LIB_SUFFIX='.dll'
20609 CXX_DEP_SUFFIX='.dll.a'
20612 CXX_LIB_SUFFIX='.dylib'
20613 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
20618 CXX_LIB_SUFFIX='.so'
20619 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
20622 CXX_LIB_SUFFIX='.sl'
20623 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
20628 CXX_LIB_SUFFIX='.so'
20629 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
20634 CXX_LIB_SUFFIX='.a'
20635 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
20638 test -n "$LIB_SUFFIX" && CXX_LIB_SUFFIX="${LIB_SUFFIX}${CXX_LIB_SUFFIX}"
20639 test -n "$LIB_SUFFIX" && CXX_DEP_SUFFIX="${LIB_SUFFIX}${CXX_DEP_SUFFIX}"
20642 echo "$as_me:20642: result: $CXX_LIB_SUFFIX" >&5
20643 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
20647 # do not want -ldl in build except as needed for -lncurses dependency
20648 if test "x$with_dlsym" = xyes ; then
20649 if test $DFT_LWR_MODEL = shared || \
20650 test $DFT_LWR_MODEL = libtool ; then
20652 # remove dl library from $LIBS
20653 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
20657 ### Set up low-level terminfo dependencies for makefiles.
20659 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
20660 # do not need libdl
20662 if test "x$with_dlsym" = xyes ; then
20664 # remove dl library from $SHLIB_LIST
20665 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
20669 if test "$with_ticlib" != no ; then
20671 if test "x$with_ticlib" != xyes ; then
20672 TICS_NAME=$with_ticlib
20673 TICS_ARG_SUFFIX="${with_ticlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
20674 TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
20675 TICS_LIB_SUFFIX="${with_ticlib}"
20677 TICS_ARG_SUFFIX="${TICS_NAME}${DFT_ARG_SUFFIX}"
20678 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
20679 TICS_LIB_SUFFIX="${TICS_NAME}${LIB_SUFFIX}"
20681 TICS_LDFLAGS="-L${LIB_DIR}"
20682 TICS_LIBS="-l${TICS_LIB_SUFFIX}"
20684 TICS_LDFLAGS="-L${LIB_DIR}"
20685 TICS_LIBS="-l${LIB_NAME}${DFT_ARG_SUFFIX}"
20688 if test "$with_termlib" != no ; then
20690 if test "x$with_termlib" != xyes ; then
20691 TINFO_NAME=$with_termlib
20692 TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
20693 TINFO_ARG_SUFFIX="${with_termlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
20694 TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
20695 TINFO_LIB_SUFFIX="${with_termlib}"
20697 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
20698 TINFO_ARG_SUFFIX="${TINFO_NAME}${DFT_ARG_SUFFIX}"
20699 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
20700 TINFO_LIB_SUFFIX="${TINFO_NAME}${LIB_SUFFIX}"
20703 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
20704 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
20705 if test "$DFT_LWR_MODEL" = "libtool"; then
20706 TEST_ARGS="${TEST_DEPS}"
20707 TEST_ARG2="${TEST_DEP2}"
20708 TINFO_LDFLAGS="-L${LIB_DIR}"
20709 TINFO_LIBS="$TEST_ARGS"
20710 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
20711 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
20713 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
20714 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
20715 if test "x$with_term_driver" != xno ; then
20716 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${DFT_ARG_SUFFIX}"
20717 TICS_LIBS="$TICS_LIBS -l${LIB_NAME}${DFT_ARG_SUFFIX}"
20718 TINFO_LIBS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS"
20720 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
20721 TINFO_LIBS="$TEST_ARGS"
20723 TINFO_LDFLAGS="-L${LIB_DIR}"
20724 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
20727 # the next lines are needed for linking libtic over libncurses
20728 TINFO_NAME=${LIB_NAME}
20729 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
20730 TINFO_ARG_SUFFIX=${LIB_NAME}${DFT_ARG_SUFFIX}
20731 if test "x$with_tic_depends" = xyes ; then
20732 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${DFT_ARG_SUFFIX}"
20734 TICS_LIST="$SHLIB_LIST"
20737 TINFO_LDFLAGS="-L${LIB_DIR}"
20738 TINFO_LIBS="-l${LIB_NAME}${DFT_ARG_SUFFIX}"
20741 if test "$DFT_LWR_MODEL" = shared ; then
20742 case $cf_cv_system_name in #(vi
20744 # "lib" files have ".dll.a" suffix, "cyg"or "msys-" files have ".dll"
20750 if test "x$with_dlsym" = xyes ; then
20752 # remove dl library from $TICS_LIST
20753 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
20757 if test "$DFT_LWR_MODEL" = "libtool"; then
20762 TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'`
20764 case $DFT_LWR_MODEL in
20765 normal|debug|profile)
20767 if test "$GCC" = yes ; then
20768 case $cf_cv_system_name in #(
20769 OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*) #( vi
20773 *) #( normally, except when broken
20774 LDFLAGS_STATIC=-static
20775 LDFLAGS_SHARED=-dynamic
20779 case $cf_cv_system_name in #(
20780 aix[4-7]*) #( from ld manpage
20781 LDFLAGS_STATIC=-bstatic
20782 LDFLAGS_SHARED=-bdynamic
20784 hpux*) #( from ld manpage for hpux10.20, hpux11.11
20785 # We could also use just "archive" and "shared".
20786 LDFLAGS_STATIC=-Wl,-a,archive_shared
20787 LDFLAGS_SHARED=-Wl,-a,shared_archive
20789 irix*) #( from ld manpage IRIX64
20790 LDFLAGS_STATIC=-Bstatic
20791 LDFLAGS_SHARED=-Bdynamic
20793 osf[45]*) #( from ld manpage osf4.0d, osf5.1
20794 # alternative "-oldstyle_liblookup" (not in cc manpage)
20795 LDFLAGS_STATIC=-noso
20796 LDFLAGS_SHARED=-so_archive
20799 LDFLAGS_STATIC=-Bstatic
20800 LDFLAGS_SHARED=-Bdynamic
20805 if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED"
20807 echo "$as_me:20807: checking if linker supports switching between static/dynamic" >&5
20808 echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6
20810 rm -f libconftest.a
20811 cat >conftest.$ac_ext <<EOF
20812 #line 20812 "configure"
20814 int cf_ldflags_static(FILE *fp) { return fflush(fp); }
20816 if { (eval echo "$as_me:20816: \"$ac_compile\"") >&5
20817 (eval $ac_compile) 2>&5
20819 echo "$as_me:20819: \$? = $ac_status" >&5
20820 (exit $ac_status); } ; then
20821 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null
20822 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null
20826 cf_save_LIBS="$LIBS"
20828 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS"
20829 cat >conftest.$ac_ext <<_ACEOF
20830 #line 20830 "configure"
20831 #include "confdefs.h"
20833 #line 20833 "configure"
20835 int cf_ldflags_static(FILE *fp);
20841 return cf_ldflags_static(stdin);
20847 rm -f conftest.$ac_objext conftest$ac_exeext
20848 if { (eval echo "$as_me:20848: \"$ac_link\"") >&5
20849 (eval $ac_link) 2>&5
20851 echo "$as_me:20851: \$? = $ac_status" >&5
20852 (exit $ac_status); } &&
20853 { ac_try='test -s conftest$ac_exeext'
20854 { (eval echo "$as_me:20854: \"$ac_try\"") >&5
20855 (eval $ac_try) 2>&5
20857 echo "$as_me:20857: \$? = $ac_status" >&5
20858 (exit $ac_status); }; }; then
20860 # some linkers simply ignore the -dynamic
20861 case x`file conftest$ac_exeext 2>/dev/null` in #(vi
20863 cf_ldflags_static=no
20866 cf_ldflags_static=yes
20871 echo "$as_me: failed program was:" >&5
20872 cat conftest.$ac_ext >&5
20873 cf_ldflags_static=no
20875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20877 rm -f libconftest.*
20878 LIBS="$cf_save_LIBS"
20880 echo "$as_me:20880: result: $cf_ldflags_static" >&5
20881 echo "${ECHO_T}$cf_ldflags_static" >&6
20883 if test $cf_ldflags_static != yes
20896 echo "$as_me:20896: checking where we will install curses.h" >&5
20897 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
20900 if test "$with_overwrite" = no && \
20901 ( test "x$includedir" = 'x${prefix}/include' || \
20902 test "x$includedir" = "x${prefix}/include" )
20904 includesubdir="/ncurses${LIB_SUFFIX}"
20906 echo "$as_me:20906: result: ${includedir}${includesubdir}" >&5
20907 echo "${ECHO_T}${includedir}${includesubdir}" >&6
20909 ### Resolve a conflict between normal and wide-curses by forcing applications
20910 ### that will need libutf8 to add it to their configure script.
20911 if test "$with_overwrite" != no ; then
20912 if test "$NCURSES_LIBUTF8" = 1 ; then
20913 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
20914 { echo "$as_me:20914: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
20915 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
20918 WITH_OVERWRITE=$with_overwrite
20920 # used to separate tack out of the tree
20923 ### predefined stuff for the test programs
20925 cat >>confdefs.h <<\EOF
20926 #define HAVE_SLK_COLOR 1
20929 ### Construct the list of subdirectories for which we'll customize makefiles
20930 ### with the appropriate compile-rules.
20932 echo "$as_me:20932: checking for src modules" >&5
20933 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
20935 # dependencies and linker-arguments for test-programs
20936 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
20937 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
20938 if test "$DFT_LWR_MODEL" = "libtool"; then
20939 TEST_ARGS="${TEST_DEPS}"
20940 TEST_ARG2="${TEST_DEP2}"
20942 TEST_ARGS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS"
20943 TEST_ARG2="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARG2"
20946 PC_MODULES_TO_MAKE="ncurses${DFT_ARG_SUFFIX}"
20948 for cf_dir in $modules_to_build
20950 if test -f $srcdir/$cf_dir/modules; then
20952 # We may/may not have tack in the distribution, though the
20954 if test $cf_dir = tack ; then
20955 if test ! -f $srcdir/${cf_dir}/${cf_dir}.h; then
20960 if test -z "$cf_cv_src_modules"; then
20961 cf_cv_src_modules=$cf_dir
20963 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
20966 # Make the ncurses_cfg.h file record the library interface files as
20967 # well. These are header files that are the same name as their
20968 # directory. Ncurses is the only library that does not follow
20970 if test $cf_dir = tack ; then
20972 elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
20974 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20976 cat >>confdefs.h <<EOF
20977 #define HAVE_${cf_have_include}_H 1
20980 cat >>confdefs.h <<EOF
20981 #define HAVE_LIB${cf_have_include} 1
20984 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
20985 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEP2"
20986 if test "$DFT_LWR_MODEL" = "libtool"; then
20987 TEST_ARGS="${TEST_DEPS}"
20988 TEST_ARG2="${TEST_DEP2}"
20990 TEST_ARGS="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARGS"
20991 TEST_ARG2="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARG2"
20993 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ${cf_dir}${DFT_ARG_SUFFIX}"
20997 echo "$as_me:20997: result: $cf_cv_src_modules" >&5
20998 echo "${ECHO_T}$cf_cv_src_modules" >&6
21000 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
21001 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
21004 if test "x$cf_with_manpages" != xno ; then
21005 SRC_SUBDIRS="$SRC_SUBDIRS man"
21007 SRC_SUBDIRS="$SRC_SUBDIRS include"
21008 for cf_dir in $cf_cv_src_modules
21010 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
21012 if test "x$cf_with_tests" != "xno" ; then
21013 SRC_SUBDIRS="$SRC_SUBDIRS test"
21015 if test "x$cf_with_db_install" = xyes; then
21016 test -z "$MAKE_TERMINFO" && SRC_SUBDIRS="$SRC_SUBDIRS misc"
21018 if test "$cf_with_cxx_binding" != no; then
21019 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ncurses++${DFT_ARG_SUFFIX}"
21020 SRC_SUBDIRS="$SRC_SUBDIRS c++"
21023 test "x$with_termlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TINFO_ARG_SUFFIX"
21024 test "x$with_ticlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TICS_ARG_SUFFIX"
21027 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = xyes && test -f $srcdir/Ada95/Makefile.in; then
21028 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
21029 ADA_SUBDIRS="gen src"
21030 if test "x$cf_with_tests" != "xno" ; then
21031 ADA_SUBDIRS="$ADA_SUBDIRS samples"
21036 for cf_dir in $SRC_SUBDIRS
21038 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
21041 if test -n "$ADA_SUBDIRS"; then
21042 for cf_dir in $ADA_SUBDIRS
21044 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
21049 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
21050 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${DFT_ARG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
21051 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${DFT_ARG_SUFFIX}-config.1:man/MKada_config.in"
21055 for cf_item in $cf_list_models
21059 libtool) cf_subdir='obj_lo' ;;
21060 normal) cf_subdir='objects' ;;
21061 debug) cf_subdir='obj_g' ;;
21062 profile) cf_subdir='obj_p' ;;
21064 case $cf_cv_system_name in #(vi
21066 cf_subdir='objects' ;;
21068 cf_subdir='obj_s' ;;
21072 for cf_item2 in $DIRS_TO_MAKE
21074 test $cf_item2 = $cf_subdir && break
21076 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
21078 for cf_dir in $DIRS_TO_MAKE
21080 test ! -d $cf_dir && mkdir $cf_dir
21083 # symbols that differ when compiling Ada95 by itself.
21084 NCURSES_SHLIB2='sh $(top_srcdir)/misc/shlib'
21086 # values to use as strings
21088 cat >>confdefs.h <<EOF
21089 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
21092 cat >>confdefs.h <<EOF
21093 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
21096 ### Now that we're done running tests, add the compiler-warnings, if any
21101 cf_new_extra_cppflags=
21103 for cf_add_cflags in $EXTRA_CFLAGS
21105 case $cf_fix_cppflags in
21107 case $cf_add_cflags in #(vi
21108 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
21109 case $cf_add_cflags in
21111 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
21113 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
21114 && test -z "${cf_tst_cflags}" \
21115 && cf_fix_cppflags=yes
21117 if test $cf_fix_cppflags = yes ; then
21118 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
21120 elif test "${cf_tst_cflags}" = "\"'" ; then
21121 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
21126 case "$CPPFLAGS" in
21127 *$cf_add_cflags) #(vi
21130 case $cf_add_cflags in #(vi
21132 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
21134 CPPFLAGS=`echo "$CPPFLAGS" | \
21135 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
21136 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
21140 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
21145 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
21150 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
21152 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
21154 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
21155 && test -z "${cf_tst_cflags}" \
21156 && cf_fix_cppflags=no
21161 if test -n "$cf_new_cflags" ; then
21163 CFLAGS="$CFLAGS $cf_new_cflags"
21166 if test -n "$cf_new_cppflags" ; then
21168 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
21171 if test -n "$cf_new_extra_cppflags" ; then
21173 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
21176 ### Define substitutions for header files to avoid name-pollution
21178 if test "x$cf_cv_have_tcgetattr" = xyes ; then
21184 if test "x$ac_cv_header_stdint_h" = xyes ; then
21190 if test "x$ac_cv_header_termio_h" = xyes ; then
21196 if test "x$ac_cv_header_termios_h" = xyes ; then
21202 ################################################################################
21203 test "x$use_database" = xyes && \
21204 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
21206 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
21207 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${DFT_ARG_SUFFIX}${cf_cv_abi_version}-config.1:man/MKncu_config.in"
21209 if test "x$enable_pc_files" = xyes ; then \
21210 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
21216 # Extract the first word of "tic", so it can be a program name with args.
21217 set dummy tic; ac_word=$2
21218 echo "$as_me:21218: checking for $ac_word" >&5
21219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21220 if test "${ac_cv_path_TIC_PATH+set}" = set; then
21221 echo $ECHO_N "(cached) $ECHO_C" >&6
21225 ac_cv_path_TIC_PATH="$TIC_PATH" # Let the user override the test with a path.
21228 ac_save_IFS=$IFS; IFS=$ac_path_separator
21229 ac_dummy="$PATH:/usr/local/ncurses/bin"
21230 for ac_dir in $ac_dummy; do
21232 test -z "$ac_dir" && ac_dir=.
21233 if $as_executable_p "$ac_dir/$ac_word"; then
21234 ac_cv_path_TIC_PATH="$ac_dir/$ac_word"
21235 echo "$as_me:21235: found $ac_dir/$ac_word" >&5
21240 test -z "$ac_cv_path_TIC_PATH" && ac_cv_path_TIC_PATH="unknown"
21244 TIC_PATH=$ac_cv_path_TIC_PATH
21246 if test -n "$TIC_PATH"; then
21247 echo "$as_me:21247: result: $TIC_PATH" >&5
21248 echo "${ECHO_T}$TIC_PATH" >&6
21250 echo "$as_me:21250: result: no" >&5
21251 echo "${ECHO_T}no" >&6
21254 if test -n "$FALLBACK_LIST"
21256 if test "$TIC_PATH" = unknown
21258 { echo "$as_me:21258: WARNING: no tic program found for fallbacks" >&5
21259 echo "$as_me: WARNING: no tic program found for fallbacks" >&2;}
21263 if test "x$cf_with_tests" != xno ; then
21269 ADAHTML_DIR=../../doc/html/ada
21271 # these could be configurable, but are not currently
21277 # workaround for g++ versus Solaris (20131116)
21278 case $cf_cv_system_name in #(vi
21280 case "x$CPPFLAGS" in #(vi
21281 *-D_XOPEN_SOURCE_EXTENDED*)
21282 test -n "$verbose" && echo " moving _XOPEN_SOURCE_EXTENDED to work around g++ problem" 1>&6
21284 echo "${as_me:-configure}:21284: testing moving _XOPEN_SOURCE_EXTENDED to work around g++ problem ..." 1>&5
21286 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
21287 CPPFLAGS=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/-D_XOPEN_SOURCE_EXTENDED//'`
21293 # AC_CHECK_SIZEOF demands a literal parameter, no variables. So we do this.
21294 case "x$NCURSES_OSPEED" in #(vi
21303 cat >>confdefs.h <<EOF
21304 #define NCURSES_OSPEED_COMPAT $cf_compatible
21307 case "x$cf_cv_typeof_chtype" in
21309 cf_cv_typeof_chtype="unsigned $cf_cv_typeof_chtype"
21313 case "x$cf_cv_typeof_mmask_t" in
21315 cf_cv_typeof_mmask_t="unsigned $cf_cv_typeof_mmask_t"
21321 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"
21322 ac_config_commands="$ac_config_commands default"
21323 cat >confcache <<\_ACEOF
21324 # This file is a shell script that caches the results of configure
21325 # tests run on this system so they can be shared between configure
21326 # scripts and configure runs, see configure's option --config-cache.
21327 # It is not useful on other systems. If it contains results you don't
21328 # want to keep, you may remove or edit it.
21330 # config.status only pays attention to the cache file if you give it
21331 # the --recheck option to rerun configure.
21333 # `ac_cv_env_foo' variables (set or unset) will be overriden when
21334 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21335 # following values.
21339 # The following way of writing the cache mishandles newlines in values,
21340 # but we know of no workaround that is simple, portable, and efficient.
21341 # So, don't put newlines in cache variables' values.
21342 # Ultrix sh set writes to stderr and can't be redirected directly,
21343 # and sets the high bit in the cache file unless we assign to the vars.
21346 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21348 # `set' does not quote correctly, so add quotes (double-quote
21349 # substitution turns \\\\ into \\, and sed turns \\ into \).
21352 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21355 # `set' quotes correctly as required by POSIX, so do not add quotes.
21357 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21364 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21366 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21368 if cmp -s $cache_file confcache; then :; else
21369 if test -w $cache_file; then
21370 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21371 cat confcache >$cache_file
21373 echo "not updating unwritable cache $cache_file"
21378 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21379 # Let make expand exec_prefix.
21380 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21382 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21383 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21384 # trailing colons and then remove the whole line if VPATH becomes empty
21385 # (actually we leave an empty line to preserve line numbers).
21386 if test "x$srcdir" = x.; then
21387 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21388 s/:*\$(srcdir):*/:/;
21389 s/:*\${srcdir}:*/:/;
21391 s/^\([^=]*=[ ]*\):*/\1/;
21397 DEFS=-DHAVE_CONFIG_H
21399 : ${CONFIG_STATUS=./config.status}
21400 ac_clean_files_save=$ac_clean_files
21401 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21402 { echo "$as_me:21402: creating $CONFIG_STATUS" >&5
21403 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21404 cat >$CONFIG_STATUS <<_ACEOF
21406 # Generated automatically by configure.
21407 # Run this file to recreate the current configuration.
21408 # Compiler output produced by configure, useful for debugging
21409 # configure, is in config.log if it exists.
21412 SHELL=\${CONFIG_SHELL-$SHELL}
21413 ac_cs_invocation="\$0 \$@"
21417 cat >>$CONFIG_STATUS <<\_ACEOF
21418 # Be Bourne compatible
21419 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21422 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21426 # Name of the executable.
21427 as_me=`echo "$0" |sed 's,.*[\\/],,'`
21429 if expr a : '\(a\)' >/dev/null 2>&1; then
21435 rm -f conf$$ conf$$.exe conf$$.file
21437 if ln -s conf$$.file conf$$ 2>/dev/null; then
21438 # We could just check for DJGPP; but this test a) works b) is more generic
21439 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21440 if test -f conf$$.exe; then
21441 # Don't use ln at all; we don't have any links
21446 elif ln conf$$.file conf$$ 2>/dev/null; then
21451 rm -f conf$$ conf$$.exe conf$$.file
21453 as_executable_p="test -f"
21455 # Support unset when possible.
21456 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
21463 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
21464 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
21465 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
21466 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
21467 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
21468 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
21469 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
21470 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
21473 # We need space, tab and new line, in precisely that order.
21479 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
21485 # Files that config.status was made for.
21486 if test -n "$ac_config_files"; then
21487 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21490 if test -n "$ac_config_headers"; then
21491 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21494 if test -n "$ac_config_links"; then
21495 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21498 if test -n "$ac_config_commands"; then
21499 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21502 cat >>$CONFIG_STATUS <<\EOF
21505 \`$as_me' instantiates files from templates according to the
21506 current configuration.
21508 Usage: $0 [OPTIONS] [FILE]...
21510 -h, --help print this help, then exit
21511 -V, --version print version number, then exit
21512 -d, --debug don't remove temporary files
21513 --recheck update $as_me by reconfiguring in the same conditions
21514 --file=FILE[:TEMPLATE]
21515 instantiate the configuration file FILE
21516 --header=FILE[:TEMPLATE]
21517 instantiate the configuration header FILE
21519 Configuration files:
21522 Configuration headers:
21525 Configuration commands:
21528 Report bugs to <dickey@invisible-island.net>."
21531 cat >>$CONFIG_STATUS <<EOF
21534 configured by $0, generated by GNU Autoconf 2.52.20121002,
21535 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21537 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
21538 Free Software Foundation, Inc.
21539 This config.status script is free software; the Free Software Foundation
21540 gives unlimited permission to copy, distribute and modify it."
21545 cat >>$CONFIG_STATUS <<\EOF
21546 # If no file are specified by the user, then we need to provide default
21547 # value. By we need to know if files were specified by the user.
21553 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21554 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21556 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
21560 *) # This is not an option, so the user has probably given explicit
21562 ac_need_defaults=false;;
21566 # Handling of the options.
21568 cat >>$CONFIG_STATUS <<EOF
21569 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21570 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
21571 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
21573 cat >>$CONFIG_STATUS <<\EOF
21574 --version | --vers* | -V )
21575 echo "$ac_cs_version"; exit 0 ;;
21577 # Conflict between --help and --header
21578 { { echo "$as_me:21578: error: ambiguous option: $1
21579 Try \`$0 --help' for more information." >&5
21580 echo "$as_me: error: ambiguous option: $1
21581 Try \`$0 --help' for more information." >&2;}
21582 { (exit 1); exit 1; }; };;
21583 --help | --hel | -h )
21584 echo "$ac_cs_usage"; exit 0 ;;
21585 --debug | --d* | -d )
21587 --file | --fil | --fi | --f )
21589 CONFIG_FILES="$CONFIG_FILES $1"
21590 ac_need_defaults=false;;
21591 --header | --heade | --head | --hea )
21593 CONFIG_HEADERS="$CONFIG_HEADERS $1"
21594 ac_need_defaults=false;;
21596 # This is an error.
21597 -*) { { echo "$as_me:21597: error: unrecognized option: $1
21598 Try \`$0 --help' for more information." >&5
21599 echo "$as_me: error: unrecognized option: $1
21600 Try \`$0 --help' for more information." >&2;}
21601 { (exit 1); exit 1; }; } ;;
21603 *) ac_config_targets="$ac_config_targets $1" ;;
21612 ## ----------------------- ##
21613 ## Running config.status. ##
21614 ## ----------------------- ##
21616 This file was extended by $as_me 2.52.20121002, executed with
21617 CONFIG_FILES = $CONFIG_FILES
21618 CONFIG_HEADERS = $CONFIG_HEADERS
21619 CONFIG_LINKS = $CONFIG_LINKS
21620 CONFIG_COMMANDS = $CONFIG_COMMANDS
21621 > $ac_cs_invocation
21622 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21627 cat >>$CONFIG_STATUS <<EOF
21629 # INIT-COMMANDS section.
21632 ### Special initialization commands, used to pass information from the
21633 ### configuration-run into config.status
21636 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
21637 DFT_LWR_MODEL="$DFT_LWR_MODEL"
21639 LDCONFIG="$LDCONFIG"
21640 LIBTOOL_VERSION="$LIBTOOL_VERSION"
21641 LIB_NAME="$LIB_NAME"
21642 LIB_PREFIX="$LIB_PREFIX"
21643 LIB_SUBSETS="$LIB_SUBSETS"
21644 LIB_SUFFIX="$LIB_SUFFIX"
21645 LIB_TRACING="$LIB_TRACING"
21647 MAKE_TERMINFO="$MAKE_TERMINFO"
21648 NCURSES_MAJOR="$NCURSES_MAJOR"
21649 NCURSES_MINOR="$NCURSES_MINOR"
21650 NCURSES_OSPEED="$NCURSES_OSPEED"
21651 NCURSES_PATCH="$NCURSES_PATCH"
21652 SRC_SUBDIRS="$SRC_SUBDIRS"
21653 TERMINFO="$TERMINFO"
21654 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
21655 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
21656 TICS_NAME="$TICS_NAME"
21657 TIC_PATH="$TIC_PATH"
21658 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
21659 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
21660 TINFO_NAME="$TINFO_NAME"
21661 TINFO_SUFFIX="$TINFO_SUFFIX"
21662 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
21663 WITH_CURSES_H="$with_curses_h"
21664 WITH_ECHO="${enable_echo:=yes}"
21665 WITH_OVERWRITE="$with_overwrite"
21666 cf_LIST_MODELS="$cf_list_models"
21667 cf_cv_abi_version="$cf_cv_abi_version"
21668 cf_cv_do_relink="$cf_cv_do_relink"
21669 cf_cv_do_symlinks="$cf_cv_do_symlinks"
21670 cf_cv_enable_lp64="$cf_cv_enable_lp64"
21671 cf_cv_enable_opaque="$cf_cv_enable_opaque"
21672 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
21673 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
21674 cf_cv_prog_gnat_correct=$cf_cv_prog_gnat_correct
21675 cf_cv_rel_version="$cf_cv_rel_version"
21676 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
21677 cf_cv_shared_soname='$cf_cv_shared_soname'
21678 cf_cv_shlib_version="$cf_cv_shlib_version"
21679 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
21680 cf_cv_system_name="$cf_cv_system_name"
21681 cf_cv_term_driver="$with_term_driver"
21682 cf_with_ada="$cf_with_ada"
21683 cf_with_cxx_binding="$cf_with_cxx_binding"
21684 cf_with_db_install="$cf_with_db_install"
21685 cf_with_manpages="$cf_with_manpages"
21686 cf_with_tests="$cf_with_tests"
21687 with_shared_cxx="$with_shared_cxx"
21693 cat >>$CONFIG_STATUS <<\EOF
21694 for ac_config_target in $ac_config_targets
21696 case "$ac_config_target" in
21697 # Handling of arguments.
21698 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
21699 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
21700 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
21701 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
21702 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
21703 "$SUB_SCRIPTS" ) CONFIG_FILES="$CONFIG_FILES $SUB_SCRIPTS" ;;
21704 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
21705 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21706 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21707 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
21708 *) { { echo "$as_me:21708: error: invalid argument: $ac_config_target" >&5
21709 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21710 { (exit 1); exit 1; }; };;
21714 # If the user did not use the arguments to specify the items to instantiate,
21715 # then the envvar interface is used. Set only those that are not.
21716 # We use the long form for the default assignment because of an extremely
21717 # bizarre bug on SunOS 4.1.3.
21718 if $ac_need_defaults; then
21719 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21720 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21721 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21724 # Create a temporary directory, and hook for its removal unless debugging.
21727 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21728 trap '{ (exit 1); exit 1; }' 1 2 13 15
21731 # Create a (secure) tmp directory for tmp files.
21734 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
21735 test -n "$tmp" && test -d "$tmp"
21738 tmp=$TMPDIR/cs$$-$RANDOM
21739 (umask 077 && mkdir $tmp)
21742 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
21743 { (exit 1); exit 1; }
21748 cat >>$CONFIG_STATUS <<EOF
21751 # CONFIG_FILES section.
21754 # No need to generate the scripts if there are no CONFIG_FILES.
21755 # This happens for instance when ./config.status config.h
21756 if test -n "\$CONFIG_FILES"; then
21757 # Protect against being on the right side of a sed subst in config.status.
21758 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21759 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21760 s,@SHELL@,$SHELL,;t t
21761 s,@exec_prefix@,$exec_prefix,;t t
21762 s,@prefix@,$prefix,;t t
21763 s,@program_transform_name@,$program_transform_name,;t t
21764 s,@bindir@,$bindir,;t t
21765 s,@sbindir@,$sbindir,;t t
21766 s,@libexecdir@,$libexecdir,;t t
21767 s,@datarootdir@,$datarootdir,;t t
21768 s,@datadir@,$datadir,;t t
21769 s,@sysconfdir@,$sysconfdir,;t t
21770 s,@sharedstatedir@,$sharedstatedir,;t t
21771 s,@localstatedir@,$localstatedir,;t t
21772 s,@libdir@,$libdir,;t t
21773 s,@includedir@,$includedir,;t t
21774 s,@oldincludedir@,$oldincludedir,;t t
21775 s,@infodir@,$infodir,;t t
21776 s,@mandir@,$mandir,;t t
21777 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21778 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21779 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21780 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21781 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21782 s,@build_alias@,$build_alias,;t t
21783 s,@host_alias@,$host_alias,;t t
21784 s,@target_alias@,$target_alias,;t t
21785 s,@ECHO_C@,$ECHO_C,;t t
21786 s,@ECHO_N@,$ECHO_N,;t t
21787 s,@ECHO_T@,$ECHO_T,;t t
21788 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21789 s,@DEFS@,$DEFS,;t t
21790 s,@LIBS@,$LIBS,;t t
21791 s,@top_builddir@,$top_builddir,;t t
21792 s,@EGREP@,$EGREP,;t t
21793 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
21794 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
21795 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
21796 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
21797 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
21798 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
21799 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
21800 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
21801 s,@build@,$build,;t t
21802 s,@build_cpu@,$build_cpu,;t t
21803 s,@build_vendor@,$build_vendor,;t t
21804 s,@build_os@,$build_os,;t t
21805 s,@host@,$host,;t t
21806 s,@host_cpu@,$host_cpu,;t t
21807 s,@host_vendor@,$host_vendor,;t t
21808 s,@host_os@,$host_os,;t t
21809 s,@target@,$target,;t t
21810 s,@target_cpu@,$target_cpu,;t t
21811 s,@target_vendor@,$target_vendor,;t t
21812 s,@target_os@,$target_os,;t t
21814 s,@CFLAGS@,$CFLAGS,;t t
21815 s,@LDFLAGS@,$LDFLAGS,;t t
21816 s,@CPPFLAGS@,$CPPFLAGS,;t t
21817 s,@ac_ct_CC@,$ac_ct_CC,;t t
21818 s,@EXEEXT@,$EXEEXT,;t t
21819 s,@OBJEXT@,$OBJEXT,;t t
21820 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
21822 s,@LDCONFIG@,$LDCONFIG,;t t
21824 s,@CXXFLAGS@,$CXXFLAGS,;t t
21825 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21827 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21828 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21829 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21830 s,@LINT@,$LINT,;t t
21831 s,@LINT_OPTS@,$LINT_OPTS,;t t
21832 s,@LN_S@,$LN_S,;t t
21833 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21834 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
21835 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
21836 s,@SET_MAKE@,$SET_MAKE,;t t
21837 s,@CTAGS@,$CTAGS,;t t
21838 s,@ETAGS@,$ETAGS,;t t
21839 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
21840 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
21841 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
21842 s,@RANLIB@,$RANLIB,;t t
21843 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21845 s,@ac_ct_LD@,$ac_ct_LD,;t t
21847 s,@ac_ct_AR@,$ac_ct_AR,;t t
21849 s,@ac_ct_NM@,$ac_ct_NM,;t t
21850 s,@ARFLAGS@,$ARFLAGS,;t t
21851 s,@DESTDIR@,$DESTDIR,;t t
21852 s,@BUILD_CC@,$BUILD_CC,;t t
21853 s,@BUILD_CPP@,$BUILD_CPP,;t t
21854 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
21855 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
21856 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
21857 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
21858 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
21859 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
21860 s,@cf_list_models@,$cf_list_models,;t t
21861 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
21862 s,@LIBTOOL@,$LIBTOOL,;t t
21863 s,@ac_ct_LIBTOOL@,$ac_ct_LIBTOOL,;t t
21864 s,@LT_UNDEF@,$LT_UNDEF,;t t
21865 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
21866 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
21867 s,@LIB_CREATE@,$LIB_CREATE,;t t
21868 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
21869 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
21870 s,@LIB_PREP@,$LIB_PREP,;t t
21871 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
21872 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
21873 s,@LIB_LINK@,$LIB_LINK,;t t
21874 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
21875 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
21876 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
21877 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
21878 s,@TICS_NAME@,$TICS_NAME,;t t
21879 s,@TINFO_NAME@,$TINFO_NAME,;t t
21880 s,@LIB_NAME@,$LIB_NAME,;t t
21881 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
21882 s,@CC_G_OPT@,$CC_G_OPT,;t t
21883 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
21884 s,@LD_MODEL@,$LD_MODEL,;t t
21885 s,@shlibdir@,$shlibdir,;t t
21886 s,@MAKE_DLLS@,$MAKE_DLLS,;t t
21887 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
21888 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
21889 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
21890 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
21891 s,@RM_SHARED_OPTS@,$RM_SHARED_OPTS,;t t
21892 s,@LINK_PROGS@,$LINK_PROGS,;t t
21893 s,@LINK_TESTS@,$LINK_TESTS,;t t
21894 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
21895 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
21896 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
21897 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
21898 s,@RPATH_LIST@,$RPATH_LIST,;t t
21899 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
21900 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
21901 s,@NCURSES_USE_DATABASE@,$NCURSES_USE_DATABASE,;t t
21902 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
21903 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
21904 s,@XTERM_KBS@,$XTERM_KBS,;t t
21905 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
21906 s,@TERMINFO@,$TERMINFO,;t t
21907 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
21908 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
21909 s,@TERMPATH@,$TERMPATH,;t t
21910 s,@NCURSES_USE_TERMCAP@,$NCURSES_USE_TERMCAP,;t t
21911 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
21912 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
21913 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
21914 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
21915 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
21916 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
21917 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
21918 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
21919 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
21920 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
21921 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
21922 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
21923 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
21924 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
21925 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
21926 s,@NCURSES_TPARM_ARG@,$NCURSES_TPARM_ARG,;t t
21927 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
21928 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
21929 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
21930 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
21931 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
21932 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
21933 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
21934 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
21935 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
21936 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
21937 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
21938 s,@PTHREAD@,$PTHREAD,;t t
21939 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
21940 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
21941 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
21942 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
21943 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
21944 s,@ECHO_LT@,$ECHO_LT,;t t
21945 s,@ECHO_LD@,$ECHO_LD,;t t
21946 s,@RULE_CC@,$RULE_CC,;t t
21947 s,@SHOW_CC@,$SHOW_CC,;t t
21948 s,@ECHO_CC@,$ECHO_CC,;t t
21949 s,@ECHO_LINK@,$ECHO_LINK,;t t
21950 s,@ADAFLAGS@,$ADAFLAGS,;t t
21951 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
21952 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
21953 s,@ADA_TRACE@,$ADA_TRACE,;t t
21954 s,@MATH_LIB@,$MATH_LIB,;t t
21955 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
21956 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
21957 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
21958 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
21959 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
21960 s,@TEST_LIBS@,$TEST_LIBS,;t t
21961 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
21962 s,@CXXCPP@,$CXXCPP,;t t
21963 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
21964 s,@CXX_AR@,$CXX_AR,;t t
21965 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
21966 s,@CXXLIBS@,$CXXLIBS,;t t
21967 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
21968 s,@gnat_exists@,$gnat_exists,;t t
21969 s,@M4_exists@,$M4_exists,;t t
21970 s,@cf_ada_make@,$cf_ada_make,;t t
21971 s,@cf_compile_generics@,$cf_compile_generics,;t t
21972 s,@cf_generic_objects@,$cf_generic_objects,;t t
21973 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
21974 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
21975 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
21976 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
21977 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
21978 s,@cf_ada_package@,$cf_ada_package,;t t
21979 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
21980 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
21981 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
21982 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
21983 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
21984 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
21985 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
21986 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
21987 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
21988 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
21989 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
21990 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
21991 s,@TICS_LDFLAGS@,$TICS_LDFLAGS,;t t
21992 s,@TICS_LIBS@,$TICS_LIBS,;t t
21993 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
21994 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
21995 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
21996 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
21997 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
21998 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
21999 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
22000 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
22001 s,@includesubdir@,$includesubdir,;t t
22002 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
22003 s,@TICS_LIST@,$TICS_LIST,;t t
22004 s,@TINFO_LIST@,$TINFO_LIST,;t t
22005 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
22006 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
22007 s,@TEST_ARGS@,$TEST_ARGS,;t t
22008 s,@TEST_DEPS@,$TEST_DEPS,;t t
22009 s,@TEST_ARG2@,$TEST_ARG2,;t t
22010 s,@TEST_DEP2@,$TEST_DEP2,;t t
22011 s,@PC_MODULES_TO_MAKE@,$PC_MODULES_TO_MAKE,;t t
22012 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
22013 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
22014 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
22015 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
22016 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
22017 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
22018 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
22019 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
22020 s,@cross_compiling@,$cross_compiling,;t t
22021 s,@TIC_PATH@,$TIC_PATH,;t t
22022 s,@MAKE_TESTS@,$MAKE_TESTS,;t t
22023 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
22024 s,@PANEL_NAME@,$PANEL_NAME,;t t
22025 s,@MENU_NAME@,$MENU_NAME,;t t
22026 s,@FORM_NAME@,$FORM_NAME,;t t
22027 s,@CXX_NAME@,$CXX_NAME,;t t
22032 cat >>$CONFIG_STATUS <<\EOF
22033 # Split the substitutions into bite-sized pieces for seds with
22034 # small command number limits, like on Digital OSF/1 and HP-UX.
22035 ac_max_sed_lines=48
22036 ac_sed_frag=1 # Number of current file.
22037 ac_beg=1 # First line for current file.
22038 ac_end=$ac_max_sed_lines # Line after last line for current file.
22041 while $ac_more_lines; do
22042 if test $ac_beg -gt 1; then
22043 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22045 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22047 if test ! -s $tmp/subs.frag; then
22048 ac_more_lines=false
22050 # The purpose of the label and of the branching condition is to
22051 # speed up the sed processing (if there are no `@' at all, there
22052 # is no need to browse any of the substitutions).
22053 # These are the two extra sed commands mentioned above.
22055 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22056 if test -z "$ac_sed_cmds"; then
22057 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22059 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22061 ac_sed_frag=`expr $ac_sed_frag + 1`
22063 ac_end=`expr $ac_end + $ac_max_sed_lines`
22066 if test -z "$ac_sed_cmds"; then
22069 fi # test -n "$CONFIG_FILES"
22072 cat >>$CONFIG_STATUS <<\EOF
22073 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22074 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22076 - | *:- | *:-:* ) # input from stdin
22078 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22079 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22080 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22081 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22082 * ) ac_file_in=$ac_file.in ;;
22085 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22086 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22087 X"$ac_file" : 'X\(//\)[^/]' \| \
22088 X"$ac_file" : 'X\(//\)$' \| \
22089 X"$ac_file" : 'X\(/\)' \| \
22090 . : '\(.\)' 2>/dev/null ||
22092 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22093 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22094 /^X\(\/\/\)$/{ s//\1/; q; }
22095 /^X\(\/\).*/{ s//\1/; q; }
22097 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22098 { case "$ac_dir" in
22099 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
22103 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
22104 case $as_mkdir_dir in
22105 # Skip DOS drivespec
22106 ?:) as_incr_dir=$as_mkdir_dir ;;
22108 as_incr_dir=$as_incr_dir/$as_mkdir_dir
22109 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
22114 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
22115 # A "../" for each directory in $ac_dir_suffix.
22116 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
22118 ac_dir_suffix= ac_dots=
22123 if test -z "$ac_dots"; then
22126 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
22128 [\\/]* | ?:[\\/]* )
22129 ac_srcdir=$srcdir$ac_dir_suffix;
22130 ac_top_srcdir=$srcdir ;;
22131 *) # Relative path.
22132 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
22133 ac_top_srcdir=$ac_dots$srcdir ;;
22137 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22138 *) ac_INSTALL=$ac_dots$INSTALL ;;
22141 if test x"$ac_file" != x-; then
22142 { echo "$as_me:22142: creating $ac_file" >&5
22143 echo "$as_me: creating $ac_file" >&6;}
22146 # Let's still pretend it is `configure' which instantiates (i.e., don't
22147 # use $as_me), people would be surprised to read:
22148 # /* config.h. Generated automatically by config.status. */
22149 configure_input="Generated automatically from `echo $ac_file_in |
22150 sed 's,.*/,,'` by configure."
22152 # First look for the input files in the build tree, otherwise in the
22154 ac_file_inputs=`IFS=:
22155 for f in $ac_file_in; do
22157 -) echo $tmp/stdin ;;
22159 # Absolute (can't be DOS-style, as IFS=:)
22160 test -f "$f" || { { echo "$as_me:22160: error: cannot find input file: $f" >&5
22161 echo "$as_me: error: cannot find input file: $f" >&2;}
22162 { (exit 1); exit 1; }; }
22165 if test -f "$f"; then
22168 elif test -f "$srcdir/$f"; then
22173 { { echo "$as_me:22173: error: cannot find input file: $f" >&5
22174 echo "$as_me: error: cannot find input file: $f" >&2;}
22175 { (exit 1); exit 1; }; }
22178 done` || { (exit 1); exit 1; }
22180 cat >>$CONFIG_STATUS <<\EOF
22181 ac_warn_datarootdir=no
22182 if test x"$ac_file" != x-; then
22183 for ac_item in $ac_file_inputs
22185 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
22186 if test -n "$ac_seen"; then
22187 ac_used=`grep '@datarootdir@' $ac_item`
22188 if test -z "$ac_used"; then
22189 { echo "$as_me:22189: WARNING: datarootdir was used implicitly but not set:
22191 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
22193 ac_warn_datarootdir=yes
22196 ac_seen=`grep '${datarootdir}' $ac_item`
22197 if test -n "$ac_seen"; then
22198 { echo "$as_me:22198: WARNING: datarootdir was used explicitly but not set:
22200 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
22202 ac_warn_datarootdir=yes
22207 if test "x$ac_warn_datarootdir" = xyes; then
22208 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
22212 cat >>$CONFIG_STATUS <<EOF
22216 cat >>$CONFIG_STATUS <<\EOF
22218 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22219 s,@configure_input@,$configure_input,;t t
22220 s,@srcdir@,$ac_srcdir,;t t
22221 s,@top_srcdir@,$ac_top_srcdir,;t t
22222 s,@INSTALL@,$ac_INSTALL,;t t
22223 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22225 if test x"$ac_file" != x-; then
22226 cp $tmp/out $ac_file
22228 for ac_name in prefix exec_prefix datarootdir
22230 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
22231 if test -n "$ac_seen"; then
22232 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
22233 if test -z "$ac_init"; then
22234 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
22235 { echo "$as_me:22235: WARNING: Variable $ac_name is used but was not set:
22237 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
22242 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
22243 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
22244 if test -s $tmp/out; then
22245 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
22246 { echo "$as_me:22246: WARNING: Some variables may not be substituted:
22248 echo "$as_me: WARNING: Some variables may not be substituted:
22258 cat >>$CONFIG_STATUS <<\EOF
22261 # CONFIG_HEADER section.
22264 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22265 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22267 # ac_d sets the value in "#define NAME VALUE" lines.
22268 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22269 ac_dB='[ ].*$,\1#\2'
22272 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22273 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22274 ac_iB='\([ ]\),\1#\2define\3'
22277 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22278 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22279 ac_uB='$,\1#\2define\3'
22283 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22284 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22286 - | *:- | *:-:* ) # input from stdin
22288 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22289 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22290 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22291 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22292 * ) ac_file_in=$ac_file.in ;;
22295 test x"$ac_file" != x- && { echo "$as_me:22295: creating $ac_file" >&5
22296 echo "$as_me: creating $ac_file" >&6;}
22298 # First look for the input files in the build tree, otherwise in the
22300 ac_file_inputs=`IFS=:
22301 for f in $ac_file_in; do
22303 -) echo $tmp/stdin ;;
22305 # Absolute (can't be DOS-style, as IFS=:)
22306 test -f "$f" || { { echo "$as_me:22306: error: cannot find input file: $f" >&5
22307 echo "$as_me: error: cannot find input file: $f" >&2;}
22308 { (exit 1); exit 1; }; }
22311 if test -f "$f"; then
22314 elif test -f "$srcdir/$f"; then
22319 { { echo "$as_me:22319: error: cannot find input file: $f" >&5
22320 echo "$as_me: error: cannot find input file: $f" >&2;}
22321 { (exit 1); exit 1; }; }
22324 done` || { (exit 1); exit 1; }
22325 # Remove the trailing spaces.
22326 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22330 # Transform confdefs.h into a list of #define's. We won't use it as a sed
22331 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
22332 # be either 'cat' or 'sort'.
22333 cat confdefs.h | uniq >conftest.vals
22335 # Break up conftest.vals because some shells have a limit on
22336 # the size of here documents, and old seds have small limits too.
22338 rm -f conftest.tail
22339 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
22340 while grep . conftest.vals >/dev/null
22342 # Write chunks of a limited-size here document to conftest.frag.
22343 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
22344 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
22345 echo 'CEOF' >> $CONFIG_STATUS
22346 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22347 rm -f conftest.vals
22348 mv conftest.tail conftest.vals
22350 rm -f conftest.vals
22352 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
22354 echo ' cat >> conftest.edit <<CEOF
22355 /@DEFS@/r conftest.frag
22358 sed -f conftest.edit $tmp/in > $tmp/out
22360 mv $tmp/out $tmp/in
22361 rm -f conftest.edit conftest.frag
22362 ' >> $CONFIG_STATUS
22364 cat >>$CONFIG_STATUS <<\EOF
22365 # Let's still pretend it is `configure' which instantiates (i.e., don't
22366 # use $as_me), people would be surprised to read:
22367 # /* config.h. Generated automatically by config.status. */
22368 if test x"$ac_file" = x-; then
22369 echo "/* Generated automatically by configure. */" >$tmp/config.h
22371 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
22373 cat $tmp/in >>$tmp/config.h
22375 if test x"$ac_file" != x-; then
22376 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
22377 { echo "$as_me:22377: $ac_file is unchanged" >&5
22378 echo "$as_me: $ac_file is unchanged" >&6;}
22380 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22381 X"$ac_file" : 'X\(//\)[^/]' \| \
22382 X"$ac_file" : 'X\(//\)$' \| \
22383 X"$ac_file" : 'X\(/\)' \| \
22384 . : '\(.\)' 2>/dev/null ||
22386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22387 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22388 /^X\(\/\/\)$/{ s//\1/; q; }
22389 /^X\(\/\).*/{ s//\1/; q; }
22391 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22392 { case "$ac_dir" in
22393 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
22397 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
22398 case $as_mkdir_dir in
22399 # Skip DOS drivespec
22400 ?:) as_incr_dir=$as_mkdir_dir ;;
22402 as_incr_dir=$as_incr_dir/$as_mkdir_dir
22403 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
22410 mv $tmp/config.h $ac_file
22414 rm -f $tmp/config.h
22418 cat >>$CONFIG_STATUS <<\EOF
22420 # CONFIG_COMMANDS section.
22422 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22423 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22424 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22428 if test "x$cf_with_tests" != xno ; then
22432 if test ! -d $srcdir/$cf_dir; then
22434 elif test -f $srcdir/$cf_dir/programs; then
22435 $AWK -f $srcdir/test/mk-test.awk INSTALL=no ECHO_LINK="$ECHO_LD" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
22441 cf_prefix=$LIB_PREFIX
22443 case $cf_cv_shlib_version in #(vi
22444 cygdll|msysdll|mingw)
22445 TINFO_NAME=$TINFO_ARG_SUFFIX
22450 if test -n "$TINFO_SUFFIX" ; then
22451 case $TINFO_SUFFIX in
22453 TINFO_NAME="${TINFO_NAME}tw"
22454 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^tw//'`
22457 TINFO_NAME="${TINFO_NAME}t"
22458 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^t//'`
22461 TINFO_NAME="${TINFO_NAME}w"
22462 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^w//'`
22467 for cf_dir in $SRC_SUBDIRS
22469 if test ! -d $srcdir/$cf_dir ; then
22471 elif test -f $srcdir/$cf_dir/modules; then
22475 for cf_item in $cf_LIST_MODELS
22478 case X$cf_item in #(vi
22481 cf_depsuf=$cf_suffix
22485 cf_depsuf=$cf_suffix
22489 cf_depsuf=$cf_suffix
22492 case $cf_cv_system_name in
22495 cf_depsuf=$cf_suffix
22497 cygwin*|msys*|mingw*) #(vi
22503 cf_depsuf=$cf_suffix
22509 cf_depsuf=$cf_suffix
22513 cf_depsuf=$cf_suffix
22519 cf_depsuf=$cf_suffix
22525 cf_depsuf=$cf_suffix
22528 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
22529 test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"
22532 test "$cf_dir" = c++ && cf_libname=ncurses++
22533 if test $cf_item = shared ; then
22534 if test -n "${LIB_SUFFIX}"
22536 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${LIB_SUFFIX}"'//'`
22538 cf_shared_suffix="$cf_suffix"
22540 if test "$cf_cv_do_symlinks" = yes ; then
22543 case "$cf_cv_shlib_version" in #(vi
22545 cf_version_name=REL_VERSION
22548 cf_version_name=ABI_VERSION
22552 if test -n "$cf_version_name"
22554 case "$cf_cv_system_name" in #(vi
22557 cf_suffix="${LIB_SUFFIX}"'.${'$cf_version_name'}'"$cf_shared_suffix"
22560 cf_suffix="$cf_suffix"'.${'$cf_version_name'}'
22564 if test -n "${LIB_SUFFIX}"
22566 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${LIB_SUFFIX}"'//'`
22568 cf_shared_suffix="$cf_suffix"
22571 # cygwin needs import library, and has unique naming convention
22572 # use autodetected ${cf_prefix} for import lib and static lib, but
22573 # use 'cyg' prefix for shared lib.
22574 case $cf_cv_shlib_version in #(vi
22576 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
22577 Libs_To_Make="$Libs_To_Make ../lib/cyg${cf_libname}${cf_cygsuf}"
22581 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
22582 Libs_To_Make="$Libs_To_Make ../lib/msys-${cf_libname}${cf_cygsuf}"
22586 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
22587 Libs_To_Make="$Libs_To_Make ../lib/lib${cf_libname}${cf_cygsuf}"
22592 Libs_To_Make="$Libs_To_Make ../lib/${cf_prefix}${cf_libname}${cf_suffix}"
22595 if test $cf_dir = ncurses ; then
22596 cf_subsets="$LIB_SUBSETS"
22597 cf_r_parts="$cf_subsets"
22598 cf_liblist="$Libs_To_Make"
22600 while test -n "$cf_r_parts"
22602 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
22603 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
22604 if test "$cf_l_parts" != "$cf_r_parts" ; then
22606 case $cf_l_parts in #(vi
22608 cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
22611 cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
22617 if test -n "$cf_item"; then
22618 Libs_To_Make="$cf_item $Libs_To_Make"
22625 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
22628 if test $cf_dir = c++; then
22629 if test "x$with_shared_cxx" != xyes && test -n "$cf_shared_suffix"; then
22631 for cf_item in $Libs_To_Make
22637 cf_item=`echo "$cf_item" | sed -e "s,"$cf_shared_suffix",.a,"`
22640 for cf_test in $cf_list
22642 if test "$cf_test" = "$cf_item"
22644 cf_LIST_MODELS=`echo "$cf_LIST_MODELS" | sed -e 's/normal//'`
22649 test -n "$cf_item" && cf_list="$cf_list $cf_item"
22651 Libs_To_Make="$cf_list"
22655 sed -e "s%@Libs_To_Make@%$Libs_To_Make%" \
22656 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
22657 $cf_dir/Makefile >$cf_dir/Makefile.out
22658 mv $cf_dir/Makefile.out $cf_dir/Makefile
22660 $AWK -f $srcdir/mk-0th.awk \
22661 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" ticlib="$TICS_LIB_SUFFIX" termlib="$TINFO_LIB_SUFFIX" \
22662 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
22664 for cf_subset in $cf_subsets
22667 for cf_item in $cf_LIST_MODELS
22670 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
22672 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
22675 if test "$CXX_MODEL" = SHARED; then
22676 case $cf_cv_shlib_version in #(vi
22677 cygdll|msysdll|mingw) #(vi
22678 test "x$with_shared_cxx" = xno && test -n "$verbose" && echo " overriding CXX_MODEL to SHARED" 1>&6
22680 echo "${as_me:-configure}:22680: testing overriding CXX_MODEL to SHARED ..." 1>&5
22682 with_shared_cxx=yes
22685 test "x$with_shared_cxx" = xno && CXX_MODEL=NORMAL
22690 case X$cf_item in #(vi
22693 cf_depsuf=$cf_suffix
22697 cf_depsuf=$cf_suffix
22701 cf_depsuf=$cf_suffix
22704 case $cf_cv_system_name in
22707 cf_depsuf=$cf_suffix
22709 cygwin*|msys*|mingw*) #(vi
22715 cf_depsuf=$cf_suffix
22721 cf_depsuf=$cf_suffix
22725 cf_depsuf=$cf_suffix
22731 cf_depsuf=$cf_suffix
22737 cf_depsuf=$cf_suffix
22740 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
22741 test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"
22744 libtool) cf_subdir='obj_lo' ;;
22745 normal) cf_subdir='objects' ;;
22746 debug) cf_subdir='obj_g' ;;
22747 profile) cf_subdir='obj_p' ;;
22749 case $cf_cv_system_name in #(vi
22751 cf_subdir='objects' ;;
22753 cf_subdir='obj_s' ;;
22757 # Test for case where we build libtinfo with a different name.
22759 if test $cf_dir = ncurses ; then
22762 cf_libname=${cf_libname}$LIB_SUFFIX
22765 cf_libname=$TINFO_LIB_SUFFIX
22768 cf_libname=$TICS_LIB_SUFFIX
22771 elif test $cf_dir = c++ ; then
22772 cf_libname=ncurses++$LIB_SUFFIX
22774 cf_libname=${cf_libname}$LIB_SUFFIX
22776 if test -n "${DFT_ARG_SUFFIX}" ; then
22777 # undo $LIB_SUFFIX add-on in CF_LIB_SUFFIX
22778 cf_suffix=`echo $cf_suffix |sed -e "s%^${LIB_SUFFIX}%%"`
22781 # These dependencies really are for development, not
22782 # builds, but they are useful in porting, too.
22783 cf_depend="../include/ncurses_cfg.h"
22784 if test "$srcdir" = "."; then
22787 cf_reldir="\${srcdir}"
22790 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
22791 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
22792 elif test -f $srcdir/$cf_dir/curses.priv.h; then
22793 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
22797 old_cf_suffix="$cf_suffix"
22798 if test "$cf_cv_shlib_version_infix" = yes ; then
22799 if test -n "$LIB_SUFFIX" ; then
22800 case $LIB_SUFFIX in
22802 cf_libname=`echo $cf_libname | sed 's/tw$//'`
22803 cf_suffix=`echo $cf_suffix | sed 's/^tw//'`
22807 cf_libname=`echo $cf_libname | sed 's/t$//'`
22808 cf_suffix=`echo $cf_suffix | sed 's/^t//'`
22812 cf_libname=`echo $cf_libname | sed 's/w$//'`
22813 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
22820 $AWK -f $srcdir/mk-1st.awk \
22821 name=${cf_libname}${cf_dir_suffix} \
22822 traces=$LIB_TRACING \
22824 CXX_MODEL=$CXX_MODEL \
22826 prefix=$cf_prefix \
22827 suffix=$cf_suffix \
22828 subset=$cf_subset \
22829 driver=$cf_cv_term_driver \
22831 TermlibRoot=$TINFO_NAME \
22832 TermlibSuffix=$TINFO_SUFFIX \
22833 ShlibVer=$cf_cv_shlib_version \
22834 ShlibVerInfix=$cf_cv_shlib_version_infix \
22835 ReLink=${cf_cv_do_relink:-no} \
22836 DoLinks=$cf_cv_do_symlinks \
22837 rmSoLocs=$cf_cv_rm_so_locs \
22838 ldconfig="$LDCONFIG" \
22839 overwrite=$WITH_OVERWRITE \
22840 depend="$cf_depend" \
22842 libtool_version="$LIBTOOL_VERSION" \
22843 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
22845 cf_suffix="$old_cf_suffix"
22847 for cf_subdir2 in $cf_subdirs lib
22849 test $cf_subdir = $cf_subdir2 && break
22851 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
22852 $AWK -f $srcdir/mk-2nd.awk \
22854 traces=$LIB_TRACING \
22857 subset=$cf_subset \
22860 crenames=$cf_cv_prog_CC_c_o \
22861 cxxrenames=$cf_cv_prog_CXX_c_o \
22862 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
22863 cf_subdirs="$cf_subdirs $cf_subdir"
22868 echo ' cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@' >>Makefile
22871 for cf_dir in $SRC_SUBDIRS
22873 if test ! -d $srcdir/$cf_dir ; then
22877 if test -f $cf_dir/Makefile ; then
22880 echo 'libs \' >> Makefile
22881 echo 'install.libs \' >> Makefile
22882 echo 'uninstall.libs ::' >> Makefile
22883 echo ' cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@' >> Makefile
22888 if test -f $srcdir/$cf_dir/modules; then
22890 if test -f $srcdir/$cf_dir/headers; then
22891 cat >> Makefile <<CF_EOF
22892 install.includes \\
22893 uninstall.includes \\
22896 if test "$cf_dir" != "c++" ; then
22897 echo 'lint \' >> Makefile
22899 cat >> Makefile <<CF_EOF
22905 uninstall.$cf_dir ::
22906 cd $cf_dir && \${MAKE} \${TOP_MFLAGS} \$@
22908 elif test -f $srcdir/$cf_dir/headers; then
22909 cat >> Makefile <<CF_EOF
22914 install.includes \\
22915 uninstall.includes ::
22916 cd $cf_dir && \${MAKE} \${TOP_MFLAGS} \$@
22921 if test "x$cf_with_db_install" = xyes; then
22922 cat >> Makefile <<CF_EOF
22924 install.libs uninstall.libs \\
22925 install.data uninstall.data ::
22926 $MAKE_TERMINFO cd misc && \${MAKE} \${TOP_MFLAGS} \$@
22930 if test "x$cf_with_manpages" = xyes; then
22931 cat >> Makefile <<CF_EOF
22935 cd man && \${MAKE} \${TOP_MFLAGS} \$@
22939 cat >> Makefile <<CF_EOF
22942 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
22943 rm -f headers.sh headers.sed mk_shared_lib.sh
22944 rm -f edit_man.* man_alias.*
22945 rm -rf \${DIRS_TO_MAKE}
22948 # Special case: tack's manpage lives in its own directory.
22949 if test "x$cf_with_manpages" = xyes; then
22950 if test -d tack ; then
22951 if test -f $srcdir/$tack.h; then
22952 cat >> Makefile <<CF_EOF
22956 cd tack && \${MAKE} \${TOP_MFLAGS} \$@
22962 rm -f headers.sed headers.sh
22964 echo creating headers.sh
22965 cat >headers.sh <<CF_EOF
22967 # This shell script is generated by the 'configure' script. It is invoked in a
22968 # subdirectory of the build tree. It generates a sed-script in the parent
22969 # directory that is used to adjust includes for header files that reside in a
22970 # subdirectory of /usr/include, etc.
22972 while test \$# != 3
22974 PRG="\$PRG \$1"; shift
22979 TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
22980 TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
22981 echo installing \$SRC in \$DST
22984 if test $WITH_CURSES_H = yes; then
22985 cat >>headers.sh <<CF_EOF
22988 END=\`basename \$DST\`
22989 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
22991 NAME=\`basename \$i\`
22992 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
22996 echo "" >> \$TMPSED
23002 cat >>headers.sh <<CF_EOF
23005 END=\`basename \$DST\`
23006 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
23008 NAME=\`basename \$i\`
23009 if test "\$NAME" = "curses.h"
23011 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
23014 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
23018 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
23023 cat >>headers.sh <<CF_EOF
23025 sed -f \$TMPSED \$SRC > \$TMPSRC
23026 NAME=\`basename \$SRC\`
23028 if test $WITH_CURSES_H != yes; then
23029 cat >>headers.sh <<CF_EOF
23030 test "\$NAME" = "curses.h" && NAME=ncurses.h
23033 cat >>headers.sh <<CF_EOF
23034 # Just in case someone gzip'd manpages, remove the conflicting copy.
23035 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
23037 eval \$PRG \$TMPSRC \$DST/\$NAME
23038 rm -f \$TMPSRC \$TMPSED
23041 chmod 0755 headers.sh
23043 for cf_dir in $SRC_SUBDIRS
23045 if test ! -d $srcdir/$cf_dir ; then
23049 if test -f $srcdir/$cf_dir/headers; then
23050 $AWK -f $srcdir/mk-hdr.awk \
23051 subset="$LIB_SUBSETS" \
23052 compat="$WITH_CURSES_H" \
23053 $srcdir/$cf_dir/headers >>$cf_dir/Makefile
23056 if test -f $srcdir/$cf_dir/modules; then
23057 if test "$cf_dir" != "c++" ; then
23058 cat >>$cf_dir/Makefile <<"CF_EOF"
23059 depend : ${AUTO_SRC}
23060 makedepend -- ${CPPFLAGS} -- ${C_SRC}
23062 # DO NOT DELETE THIS LINE -- make depend depends on it.
23068 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
23069 if test -z "$USE_OLD_MAKERULES" ; then
23070 $AWK -f $srcdir/Ada95/mk-1st.awk <$srcdir/Ada95/src/modules >>Ada95/src/Makefile
23078 cat >>$CONFIG_STATUS <<\EOF
23080 { (exit 0); exit 0; }
23082 chmod +x $CONFIG_STATUS
23083 ac_clean_files=$ac_clean_files_save
23085 # configure is writing to config.log, and then calls config.status.
23086 # config.status does its own redirection, appending to config.log.
23087 # Unfortunately, on DOS this fails, as config.log is still kept open
23088 # by configure, so config.status won't be able to write to it; its
23089 # output is simply discarded. So we exec the FD to /dev/null,
23090 # effectively closing config.log, so it can be properly (re)opened and
23091 # appended to by config.status. When coming back to configure, we
23092 # need to make the FD available again.
23093 if test "$no_create" != yes; then
23096 $SHELL $CONFIG_STATUS || ac_cs_success=false
23098 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23099 # would make configure fail if this is the last instruction.
23100 $ac_cs_success || { (exit 1); exit 1; }
23102 ${MAKE:-make} preinstall