2 # From configure.in Revision: 1.571 .
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 --without-manpages suppress install of manpages
710 --without-progs suppress build with programs (e.g., tic)
711 --without-tests suppress build with test-programs
712 --without-curses-h install curses.h as ncurses.h only
713 --with-pkg-config{=path} enable/disable use of pkg-config
714 --with-pkg-config-libdir=XXX use given directory for installing pc-files
715 --enable-pc-files generate and install .pc files for pkg-config
716 --enable-mixed-case tic should assume mixed-case filenames
717 --with-install-prefix prefixes actual install-location ($DESTDIR)
718 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
719 --with-build-cc=XXX the build C compiler ($BUILD_CC)
720 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
721 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
722 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
723 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
724 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
725 Options to Specify the Libraries Built/Used:
726 --disable-libtool-version enable to use libtool's incompatible naming scheme
727 --with-libtool generate libraries with libtool
728 --with-shared generate shared-libraries
729 --with-normal generate normal-libraries (default)
730 --with-debug generate debug-libraries (default)
731 --with-profile generate profile-libraries
732 --with-cxx-shared generate C++ shared-libraries
733 --with-lib-prefix override library-prefix
734 --with-termlib generate separate terminfo library
735 --with-ticlib generate separate tic library
736 --with-gpm use Alessandro Rubini's GPM library
737 --without-dlsym do not use dlsym() to load GPM dynamically
738 --with-sysmouse use sysmouse (FreeBSD console)
739 --enable-rpath use rpath option when generating shared libraries
740 --disable-relink relink shared libraries during install
741 --with-shlib-version=X Specify rel or abi version for shared libs
742 --disable-rpath-hack don't add rpath options for additional libraries
743 Fine-Tuning Your Configuration:
744 --disable-overwrite leave out the link to -lcurses
745 --disable-database do not use terminfo, only fallbacks/termcap
746 --with-database=XXX specify terminfo source to install
747 --with-hashed-db specify hashed-database library
748 --with-fallbacks=XXX specify list of fallback terminal descriptions
749 --without-xterm-new specify if xterm terminfo should be old version
750 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
751 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
752 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
753 --disable-big-core assume machine has little memory
754 --disable-big-strings assume compiler has only standard-size strings
755 --enable-termcap compile in termcap fallback support
756 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
757 --enable-getcap fast termcap load, no xrefs to terminfo
758 --enable-getcap-cache cache translated termcaps in ~/.terminfo
759 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
760 --disable-root-environ restrict environment when running as root
761 --enable-symlinks make tic use symbolic links not hard links
762 --enable-broken_linker compile with broken-linker support code
763 --enable-bsdpad recognize BSD-style prefix padding
764 --enable-widec compile with wide-char/UTF-8 code
765 --disable-lp64 allow chtype to be long (ignore _LP64)
766 --disable-largefile omit support for large files
767 --disable-tparm-varargs compile tparm() without varargs interface
768 --disable-tic-depends link tic library without explicit dependency on ncurses library
769 --with-bool=TYPE override fallback type of bool variable
770 --with-caps=alt compile with alternate Caps file
771 --with-chtype=TYPE override type of chtype
772 --with-ospeed=TYPE override type of ospeed variable
773 --with-mmask-t=TYPE override type of mmask_t
774 --with-ccharw-max=XXX override size CCHARW_MAX
775 --with-tparm-arg=TYPE override parameter type of tparm
776 --with-rcs-ids compile-in RCS identifiers
777 Options to Specify How Manpages are Installed:
778 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
779 optionally formatted/catonly, e.g., gzip,formatted
780 --with-manpage-renames specify manpage-renaming
781 --with-manpage-aliases specify manpage-aliases using .so
782 --with-manpage-symlinks specify manpage-aliases using symlinks
783 --with-manpage-tbl specify manpage processing with tbl
785 --disable-ext-funcs disable function-extensions
786 --enable-sp-funcs enable experimental SCREEN-extensions
787 --enable-term-driver enable experimental terminal-driver
788 --enable-const compile with extra/non-standard const
789 --enable-ext-colors compile for 256-color support
790 --enable-ext-mouse compile for extended mouse-encoding
791 --enable-no-padding compile with $NCURSES_NO_PADDING code
792 --enable-signed-char compile using signed Boolean's in term.h
793 --enable-sigwinch compile with SIGWINCH handler
794 --enable-tcap-names compile with user-definable terminal capabilities
796 --without-develop disable development options
797 --enable-hard-tabs compile with hard-tabs code
798 --enable-xmc-glitch compile with support for xmc (magic-cookie)
800 --disable-assumed-color do not assume anything about default-colors
801 --disable-hashmap compile without hashmap scrolling-optimization
802 --enable-colorfgbg compile-in experimental $COLORFGBG code
803 --enable-interop compile-in experimental interop bindings
804 --with-pthread use POSIX thread library
805 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
806 --enable-weak-symbols enable weak-symbols for pthreads
807 --enable-reentrant compile with experimental reentrant code
808 --with-wrap-prefix=XXX override prefix used for public variables
809 --enable-safe-sprintf compile with experimental safe-sprintf code
810 --disable-scroll-hints compile without scroll-hints code
811 --enable-wgetch-events compile with experimental wgetch-events code
812 Testing/development Options:
813 --disable-echo do not display "compiling" commands
814 --enable-warnings build: turn on GCC compiler warnings
815 --enable-string-hacks work around bogus compiler/loader warnings
816 --enable-assertions test: turn on generation of assertion code
817 --with-dmalloc test: use Gray Watson's dmalloc library
818 --with-dbmalloc test: use Conor Cahill's dbmalloc library
819 --with-valgrind test: use valgrind
820 --disable-leaks test: free permanent memory, analyze leaks
821 --enable-expanded test: generate functions for certain macros
822 --disable-macros test: use functions rather than macros
823 --with-trace test: add trace() function to all models of ncurses
824 Ada95 Binding Options:
825 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
826 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
827 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
828 --with-ada-sharedlib=XX build Ada95 shared-library
830 Some influential environment variables:
831 CC C compiler command
832 CFLAGS C compiler flags
833 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
834 nonstandard directory <lib dir>
835 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
836 headers in a nonstandard directory <include dir>
838 CXX C++ compiler command
839 CXXFLAGS C++ compiler flags
840 CXXCPP C++ preprocessor
842 Use these variables to override the choices made by `configure' or to help
843 it to find libraries and programs with nonstandard names/locations.
848 if test "$ac_init_help" = "recursive"; then
849 # If there are subdirs, report their specific --help.
851 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
853 # A "../" for each directory in /$ac_subdir.
854 ac_dots=`echo $ac_subdir |
855 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
858 .) # No --srcdir option. We are building in place.
859 ac_sub_srcdir=$srcdir ;;
860 [\\/]* | ?:[\\/]* ) # Absolute path.
861 ac_sub_srcdir=$srcdir/$ac_subdir ;;
863 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
866 # Check for guested configure; otherwise get Cygnus style configure.
867 if test -f $ac_sub_srcdir/configure.gnu; then
869 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
870 elif test -f $ac_sub_srcdir/configure; then
872 $SHELL $ac_sub_srcdir/configure --help=recursive
873 elif test -f $ac_sub_srcdir/configure.ac ||
874 test -f $ac_sub_srcdir/configure.in; then
878 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
884 test -n "$ac_init_help" && exit 0
885 if $ac_init_version; then
888 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
889 Free Software Foundation, Inc.
890 This configure script is free software; the Free Software Foundation
891 gives unlimited permission to copy, distribute and modify it.
897 This file contains any messages produced by compilers while
898 running configure, to aid debugging if configure makes a mistake.
900 It was created by $as_me, which was
901 generated by GNU Autoconf 2.52.20121002. Invocation command line was
912 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
913 uname -m = `(uname -m) 2>/dev/null || echo unknown`
914 uname -r = `(uname -r) 2>/dev/null || echo unknown`
915 uname -s = `(uname -s) 2>/dev/null || echo unknown`
916 uname -v = `(uname -v) 2>/dev/null || echo unknown`
918 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
919 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
921 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
922 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
923 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
924 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
925 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
926 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
927 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
941 # Keep a trace of the command line.
942 # Strip out --no-create and --no-recursion so they do not pile up.
943 # Also quote any args containing shell meta-characters.
949 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
950 | --no-cr | --no-c) ;;
951 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
952 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
953 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
954 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
955 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
957 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
960 # Get rid of the leading space.
963 # When interrupted or exit'd, cleanup temporary files, and complete
964 # config.log. We remove comments because anyway the quotes in there
965 # would cause problems or look ugly.
967 # Save into config.log some information that might help in debugging.
969 echo "## ----------------- ##" >&5
970 echo "## Cache variables. ##" >&5
971 echo "## ----------------- ##" >&5
973 # The following way of writing the cache mishandles newlines in values,
976 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
979 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
980 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
984 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
988 sed "/^$/d" confdefs.h >conftest.log
989 if test -s conftest.log; then
991 echo "## ------------ ##" >&5
992 echo "## confdefs.h. ##" >&5
993 echo "## ------------ ##" >&5
998 test "$ac_signal" != 0 &&
999 echo "$as_me: caught signal $ac_signal" >&5
1000 echo "$as_me: exit $exit_status" >&5
1001 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1004 for ac_signal in 1 2 13 15; do
1005 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1009 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1010 rm -rf conftest* confdefs.h
1011 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1014 # Let the site file select an alternate cache file if it wants to.
1015 # Prefer explicitly selected file to automatically selected ones.
1016 if test -z "$CONFIG_SITE"; then
1017 if test "x$prefix" != xNONE; then
1018 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1020 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1023 for ac_site_file in $CONFIG_SITE; do
1024 if test -r "$ac_site_file"; then
1025 { echo "$as_me:1025: loading site script $ac_site_file" >&5
1026 echo "$as_me: loading site script $ac_site_file" >&6;}
1027 cat "$ac_site_file" >&5
1032 if test -r "$cache_file"; then
1033 # Some versions of bash will fail to source /dev/null (special
1034 # files actually), so we avoid doing that.
1035 if test -f "$cache_file"; then
1036 { echo "$as_me:1036: loading cache $cache_file" >&5
1037 echo "$as_me: loading cache $cache_file" >&6;}
1039 [\\/]* | ?:[\\/]* ) . $cache_file;;
1040 *) . ./$cache_file;;
1044 { echo "$as_me:1044: creating cache $cache_file" >&5
1045 echo "$as_me: creating cache $cache_file" >&6;}
1049 # Check that the precious variables saved in the cache have kept the same
1051 ac_cache_corrupted=false
1052 for ac_var in `(set) 2>&1 |
1053 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1054 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1055 eval ac_new_set=\$ac_env_${ac_var}_set
1056 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1057 eval ac_new_val="\$ac_env_${ac_var}_value"
1058 case $ac_old_set,$ac_new_set in
1060 { echo "$as_me:1060: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1061 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1062 ac_cache_corrupted=: ;;
1064 { echo "$as_me:1064: error: \`$ac_var' was not set in the previous run" >&5
1065 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1066 ac_cache_corrupted=: ;;
1069 if test "x$ac_old_val" != "x$ac_new_val"; then
1070 { echo "$as_me:1070: error: \`$ac_var' has changed since the previous run:" >&5
1071 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1072 { echo "$as_me:1072: former value: $ac_old_val" >&5
1073 echo "$as_me: former value: $ac_old_val" >&2;}
1074 { echo "$as_me:1074: current value: $ac_new_val" >&5
1075 echo "$as_me: current value: $ac_new_val" >&2;}
1076 ac_cache_corrupted=:
1079 # Pass precious variables to config.status. It doesn't matter if
1080 # we pass some twice (in addition to the command line arguments).
1081 if test "$ac_new_set" = set; then
1083 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1084 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1085 ac_configure_args="$ac_configure_args '$ac_arg'"
1087 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1092 if $ac_cache_corrupted; then
1093 { echo "$as_me:1093: error: changes in the environment can compromise the build" >&5
1094 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1095 { { echo "$as_me:1095: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1096 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1097 { (exit 1); exit 1; }; }
1101 ac_cpp='$CPP $CPPFLAGS'
1102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1105 ac_main_return=return
1107 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1108 *c*,-n*) ECHO_N= ECHO_C='
1110 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1111 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1113 echo "#! $SHELL" >conftest.sh
1114 echo "exit 0" >>conftest.sh
1115 chmod +x conftest.sh
1116 if { (echo "$as_me:1116: PATH=\".;.\"; conftest.sh") >&5
1117 (PATH=".;."; conftest.sh) 2>&5
1119 echo "$as_me:1119: \$? = $ac_status" >&5
1120 (exit $ac_status); }; then
1121 ac_path_separator=';'
1125 PATH_SEPARATOR="$ac_path_separator"
1128 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1132 echo "$as_me:1132: checking for egrep" >&5
1133 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1134 if test "${ac_cv_prog_egrep+set}" = set; then
1135 echo $ECHO_N "(cached) $ECHO_C" >&6
1137 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1138 then ac_cv_prog_egrep='grep -E'
1139 else ac_cv_prog_egrep='egrep'
1142 echo "$as_me:1142: result: $ac_cv_prog_egrep" >&5
1143 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1144 EGREP=$ac_cv_prog_egrep
1146 test -z "$EGREP" && { { echo "$as_me:1146: error: No egrep program found" >&5
1147 echo "$as_me: error: No egrep program found" >&2;}
1148 { (exit 1); exit 1; }; }
1150 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1151 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1152 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1153 cf_cv_abi_version=${NCURSES_MAJOR}
1154 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1155 cf_cv_timestamp=`date`
1156 echo "$as_me:1156: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1157 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1159 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1161 # Check whether --with-rel-version or --without-rel-version was given.
1162 if test "${with_rel_version+set}" = set; then
1163 withval="$with_rel_version"
1164 { echo "$as_me:1164: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1165 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1166 cf_cv_rel_version=$withval
1169 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1170 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1172 if test -n "$NCURSES_MAJOR" ; then
1173 case $NCURSES_MAJOR in #(vi
1177 { { echo "$as_me:1177: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1178 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1179 { (exit 1); exit 1; }; }
1183 { { echo "$as_me:1183: error: Release major-version value is empty" >&5
1184 echo "$as_me: error: Release major-version value is empty" >&2;}
1185 { (exit 1); exit 1; }; }
1188 if test -n "$NCURSES_MINOR" ; then
1189 case $NCURSES_MINOR in #(vi
1193 { { echo "$as_me:1193: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1194 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1195 { (exit 1); exit 1; }; }
1199 { { echo "$as_me:1199: error: Release minor-version value is empty" >&5
1200 echo "$as_me: error: Release minor-version value is empty" >&2;}
1201 { (exit 1); exit 1; }; }
1204 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1206 # Check whether --with-abi-version or --without-abi-version was given.
1207 if test "${with_abi_version+set}" = set; then
1208 withval="$with_abi_version"
1209 { echo "$as_me:1209: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1210 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1211 cf_cv_abi_version=$withval
1214 if test -n "$cf_cv_abi_version" ; then
1215 case $cf_cv_abi_version in #(vi
1219 { { echo "$as_me:1219: error: ABI version is not a number: $cf_cv_abi_version" >&5
1220 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1221 { (exit 1); exit 1; }; }
1225 { { echo "$as_me:1225: error: ABI version value is empty" >&5
1226 echo "$as_me: error: ABI version value is empty" >&2;}
1227 { (exit 1); exit 1; }; }
1231 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1232 if test -f $ac_dir/install-sh; then
1234 ac_install_sh="$ac_aux_dir/install-sh -c"
1236 elif test -f $ac_dir/install.sh; then
1238 ac_install_sh="$ac_aux_dir/install.sh -c"
1240 elif test -f $ac_dir/shtool; then
1242 ac_install_sh="$ac_aux_dir/shtool install -c"
1246 if test -z "$ac_aux_dir"; then
1247 { { echo "$as_me:1247: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1248 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1249 { (exit 1); exit 1; }; }
1251 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1252 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1253 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1255 # Make sure we can run config.sub.
1256 $ac_config_sub sun4 >/dev/null 2>&1 ||
1257 { { echo "$as_me:1257: error: cannot run $ac_config_sub" >&5
1258 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1259 { (exit 1); exit 1; }; }
1261 echo "$as_me:1261: checking build system type" >&5
1262 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1263 if test "${ac_cv_build+set}" = set; then
1264 echo $ECHO_N "(cached) $ECHO_C" >&6
1266 ac_cv_build_alias=$build_alias
1267 test -z "$ac_cv_build_alias" &&
1268 ac_cv_build_alias=`$ac_config_guess`
1269 test -z "$ac_cv_build_alias" &&
1270 { { echo "$as_me:1270: error: cannot guess build type; you must specify one" >&5
1271 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1272 { (exit 1); exit 1; }; }
1273 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1274 { { echo "$as_me:1274: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1275 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1276 { (exit 1); exit 1; }; }
1279 echo "$as_me:1279: result: $ac_cv_build" >&5
1280 echo "${ECHO_T}$ac_cv_build" >&6
1282 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1283 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1284 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1286 echo "$as_me:1286: checking host system type" >&5
1287 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1288 if test "${ac_cv_host+set}" = set; then
1289 echo $ECHO_N "(cached) $ECHO_C" >&6
1291 ac_cv_host_alias=$host_alias
1292 test -z "$ac_cv_host_alias" &&
1293 ac_cv_host_alias=$ac_cv_build_alias
1294 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1295 { { echo "$as_me:1295: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1296 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1297 { (exit 1); exit 1; }; }
1300 echo "$as_me:1300: result: $ac_cv_host" >&5
1301 echo "${ECHO_T}$ac_cv_host" >&6
1303 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1304 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1305 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1307 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1308 echo "$as_me:1308: checking target system type" >&5
1309 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1310 if test "${ac_cv_target+set}" = set; then
1311 echo $ECHO_N "(cached) $ECHO_C" >&6
1313 ac_cv_target_alias=$target_alias
1314 test "x$ac_cv_target_alias" = "x" &&
1315 ac_cv_target_alias=$ac_cv_host_alias
1316 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1317 { { echo "$as_me:1317: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1318 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1319 { (exit 1); exit 1; }; }
1322 echo "$as_me:1322: result: $ac_cv_target" >&5
1323 echo "${ECHO_T}$ac_cv_target" >&6
1324 target=$ac_cv_target
1325 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1326 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1327 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1329 # The aliases save the names the user supplied, while $host etc.
1330 # will get canonicalized.
1331 test -n "$target_alias" &&
1332 test "$program_prefix$program_suffix$program_transform_name" = \
1334 program_prefix=${target_alias}-
1335 system_name="$host_os"
1337 system_name="`(uname -s -r) 2>/dev/null`"
1338 if test -z "$system_name" ; then
1339 system_name="`(hostname) 2>/dev/null`"
1342 test -n "$system_name" &&
1343 cat >>confdefs.h <<EOF
1344 #define SYSTEM_NAME "$system_name"
1347 if test "${cf_cv_system_name+set}" = set; then
1348 echo $ECHO_N "(cached) $ECHO_C" >&6
1350 cf_cv_system_name="$system_name"
1353 test -z "$system_name" && system_name="$cf_cv_system_name"
1354 test -n "$cf_cv_system_name" && echo "$as_me:1354: result: Configuring for $cf_cv_system_name" >&5
1355 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1357 if test ".$system_name" != ".$cf_cv_system_name" ; then
1358 echo "$as_me:1358: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1359 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1360 { { echo "$as_me:1360: error: \"Please remove config.cache and try again.\"" >&5
1361 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1362 { (exit 1); exit 1; }; }
1365 # Check whether --with-system-type or --without-system-type was given.
1366 if test "${with_system_type+set}" = set; then
1367 withval="$with_system_type"
1368 { echo "$as_me:1368: WARNING: overriding system type to $withval" >&5
1369 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1370 cf_cv_system_name=$withval
1375 ### Save the given $CFLAGS to allow user-override.
1376 cf_user_CFLAGS="$CFLAGS"
1378 ### Default install-location
1380 echo "$as_me:1380: checking for prefix" >&5
1381 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1382 if test "x$prefix" = "xNONE" ; then
1383 case "$cf_cv_system_name" in
1384 # non-vendor systems don't have a conflict
1385 openbsd*|freebsd*|mirbsd*|linux*|cygwin*|k*bsd*-gnu|mingw*)
1388 *) prefix=$ac_default_prefix
1392 echo "$as_me:1392: result: $prefix" >&5
1393 echo "${ECHO_T}$prefix" >&6
1395 if test "x$prefix" = "xNONE" ; then
1396 echo "$as_me:1396: checking for default include-directory" >&5
1397 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1398 test -n "$verbose" && echo 1>&6
1401 $includedir/ncurses \
1403 $prefix/include/ncurses \
1404 /usr/local/include \
1405 /usr/local/include/ncurses \
1407 /usr/include/ncurses
1409 cf_dir=`eval echo $cf_symbol`
1410 if test -f $cf_dir/curses.h ; then
1411 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1412 includedir="$cf_symbol"
1413 test -n "$verbose" && echo $ac_n " found " 1>&6
1417 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1419 echo "$as_me:1419: result: $includedir" >&5
1420 echo "${ECHO_T}$includedir" >&6
1423 ### Checks for programs.
1425 # Check whether --with-ada or --without-ada was given.
1426 if test "${with_ada+set}" = set; then
1428 cf_with_ada=$withval
1432 if test "x$cf_with_ada" = xyes
1434 cf_PROG_CC="gnatgcc gcc cc"
1440 ac_cpp='$CPP $CPPFLAGS'
1441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1444 ac_main_return=return
1445 if test -n "$ac_tool_prefix"; then
1446 for ac_prog in $cf_PROG_CC
1448 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1449 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1450 echo "$as_me:1450: checking for $ac_word" >&5
1451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1452 if test "${ac_cv_prog_CC+set}" = set; then
1453 echo $ECHO_N "(cached) $ECHO_C" >&6
1455 if test -n "$CC"; then
1456 ac_cv_prog_CC="$CC" # Let the user override the test.
1458 ac_save_IFS=$IFS; IFS=$ac_path_separator
1460 for ac_dir in $ac_dummy; do
1462 test -z "$ac_dir" && ac_dir=.
1463 $as_executable_p "$ac_dir/$ac_word" || continue
1464 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1465 echo "$as_me:1465: found $ac_dir/$ac_word" >&5
1472 if test -n "$CC"; then
1473 echo "$as_me:1473: result: $CC" >&5
1474 echo "${ECHO_T}$CC" >&6
1476 echo "$as_me:1476: result: no" >&5
1477 echo "${ECHO_T}no" >&6
1480 test -n "$CC" && break
1483 if test -z "$CC"; then
1485 for ac_prog in $cf_PROG_CC
1487 # Extract the first word of "$ac_prog", so it can be a program name with args.
1488 set dummy $ac_prog; ac_word=$2
1489 echo "$as_me:1489: checking for $ac_word" >&5
1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1491 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1492 echo $ECHO_N "(cached) $ECHO_C" >&6
1494 if test -n "$ac_ct_CC"; then
1495 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1497 ac_save_IFS=$IFS; IFS=$ac_path_separator
1499 for ac_dir in $ac_dummy; do
1501 test -z "$ac_dir" && ac_dir=.
1502 $as_executable_p "$ac_dir/$ac_word" || continue
1503 ac_cv_prog_ac_ct_CC="$ac_prog"
1504 echo "$as_me:1504: found $ac_dir/$ac_word" >&5
1510 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1511 if test -n "$ac_ct_CC"; then
1512 echo "$as_me:1512: result: $ac_ct_CC" >&5
1513 echo "${ECHO_T}$ac_ct_CC" >&6
1515 echo "$as_me:1515: result: no" >&5
1516 echo "${ECHO_T}no" >&6
1519 test -n "$ac_ct_CC" && break
1525 test -z "$CC" && { { echo "$as_me:1525: error: no acceptable cc found in \$PATH" >&5
1526 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1527 { (exit 1); exit 1; }; }
1529 # Provide some information about the compiler.
1530 echo "$as_me:1530:" \
1531 "checking for C compiler version" >&5
1532 ac_compiler=`set X $ac_compile; echo $2`
1533 { (eval echo "$as_me:1533: \"$ac_compiler --version </dev/null >&5\"") >&5
1534 (eval $ac_compiler --version </dev/null >&5) 2>&5
1536 echo "$as_me:1536: \$? = $ac_status" >&5
1537 (exit $ac_status); }
1538 { (eval echo "$as_me:1538: \"$ac_compiler -v </dev/null >&5\"") >&5
1539 (eval $ac_compiler -v </dev/null >&5) 2>&5
1541 echo "$as_me:1541: \$? = $ac_status" >&5
1542 (exit $ac_status); }
1543 { (eval echo "$as_me:1543: \"$ac_compiler -V </dev/null >&5\"") >&5
1544 (eval $ac_compiler -V </dev/null >&5) 2>&5
1546 echo "$as_me:1546: \$? = $ac_status" >&5
1547 (exit $ac_status); }
1549 cat >conftest.$ac_ext <<_ACEOF
1550 #line 1550 "configure"
1551 #include "confdefs.h"
1561 ac_clean_files_save=$ac_clean_files
1562 ac_clean_files="$ac_clean_files a.out a.exe"
1563 # Try to create an executable without -o first, disregard a.out.
1564 # It will help us diagnose broken compilers, and finding out an intuition
1566 echo "$as_me:1566: checking for C compiler default output" >&5
1567 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1568 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1569 if { (eval echo "$as_me:1569: \"$ac_link_default\"") >&5
1570 (eval $ac_link_default) 2>&5
1572 echo "$as_me:1572: \$? = $ac_status" >&5
1573 (exit $ac_status); }; then
1574 # Find the output, starting from the most likely. This scheme is
1575 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1577 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1578 ls a.out conftest 2>/dev/null;
1579 ls a.* conftest.* 2>/dev/null`; do
1581 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1582 a.out ) # We found the default executable, but exeext='' is most
1585 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1586 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1593 echo "$as_me: failed program was:" >&5
1594 cat conftest.$ac_ext >&5
1595 { { echo "$as_me:1595: error: C compiler cannot create executables" >&5
1596 echo "$as_me: error: C compiler cannot create executables" >&2;}
1597 { (exit 77); exit 77; }; }
1600 ac_exeext=$ac_cv_exeext
1601 echo "$as_me:1601: result: $ac_file" >&5
1602 echo "${ECHO_T}$ac_file" >&6
1604 # Check the compiler produces executables we can run. If not, either
1605 # the compiler is broken, or we cross compile.
1606 echo "$as_me:1606: checking whether the C compiler works" >&5
1607 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1608 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1609 # If not cross compiling, check that we can run a simple program.
1610 if test "$cross_compiling" != yes; then
1611 if { ac_try='./$ac_file'
1612 { (eval echo "$as_me:1612: \"$ac_try\"") >&5
1615 echo "$as_me:1615: \$? = $ac_status" >&5
1616 (exit $ac_status); }; }; then
1619 if test "$cross_compiling" = maybe; then
1622 { { echo "$as_me:1622: error: cannot run C compiled programs.
1623 If you meant to cross compile, use \`--host'." >&5
1624 echo "$as_me: error: cannot run C compiled programs.
1625 If you meant to cross compile, use \`--host'." >&2;}
1626 { (exit 1); exit 1; }; }
1630 echo "$as_me:1630: result: yes" >&5
1631 echo "${ECHO_T}yes" >&6
1633 rm -f a.out a.exe conftest$ac_cv_exeext
1634 ac_clean_files=$ac_clean_files_save
1635 # Check the compiler produces executables we can run. If not, either
1636 # the compiler is broken, or we cross compile.
1637 echo "$as_me:1637: checking whether we are cross compiling" >&5
1638 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1639 echo "$as_me:1639: result: $cross_compiling" >&5
1640 echo "${ECHO_T}$cross_compiling" >&6
1642 echo "$as_me:1642: checking for executable suffix" >&5
1643 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1644 if { (eval echo "$as_me:1644: \"$ac_link\"") >&5
1645 (eval $ac_link) 2>&5
1647 echo "$as_me:1647: \$? = $ac_status" >&5
1648 (exit $ac_status); }; then
1649 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1650 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1651 # work properly (i.e., refer to `conftest.exe'), while it won't with
1653 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1655 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1656 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1663 { { echo "$as_me:1663: error: cannot compute EXEEXT: cannot compile and link" >&5
1664 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1665 { (exit 1); exit 1; }; }
1668 rm -f conftest$ac_cv_exeext
1669 echo "$as_me:1669: result: $ac_cv_exeext" >&5
1670 echo "${ECHO_T}$ac_cv_exeext" >&6
1672 rm -f conftest.$ac_ext
1673 EXEEXT=$ac_cv_exeext
1675 echo "$as_me:1675: checking for object suffix" >&5
1676 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1677 if test "${ac_cv_objext+set}" = set; then
1678 echo $ECHO_N "(cached) $ECHO_C" >&6
1680 cat >conftest.$ac_ext <<_ACEOF
1681 #line 1681 "configure"
1682 #include "confdefs.h"
1692 rm -f conftest.o conftest.obj
1693 if { (eval echo "$as_me:1693: \"$ac_compile\"") >&5
1694 (eval $ac_compile) 2>&5
1696 echo "$as_me:1696: \$? = $ac_status" >&5
1697 (exit $ac_status); }; then
1698 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1700 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1701 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1706 echo "$as_me: failed program was:" >&5
1707 cat conftest.$ac_ext >&5
1708 { { echo "$as_me:1708: error: cannot compute OBJEXT: cannot compile" >&5
1709 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1710 { (exit 1); exit 1; }; }
1713 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1715 echo "$as_me:1715: result: $ac_cv_objext" >&5
1716 echo "${ECHO_T}$ac_cv_objext" >&6
1717 OBJEXT=$ac_cv_objext
1719 echo "$as_me:1719: checking whether we are using the GNU C compiler" >&5
1720 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1721 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1722 echo $ECHO_N "(cached) $ECHO_C" >&6
1724 cat >conftest.$ac_ext <<_ACEOF
1725 #line 1725 "configure"
1726 #include "confdefs.h"
1739 rm -f conftest.$ac_objext
1740 if { (eval echo "$as_me:1740: \"$ac_compile\"") >&5
1741 (eval $ac_compile) 2>&5
1743 echo "$as_me:1743: \$? = $ac_status" >&5
1744 (exit $ac_status); } &&
1745 { ac_try='test -s conftest.$ac_objext'
1746 { (eval echo "$as_me:1746: \"$ac_try\"") >&5
1749 echo "$as_me:1749: \$? = $ac_status" >&5
1750 (exit $ac_status); }; }; then
1753 echo "$as_me: failed program was:" >&5
1754 cat conftest.$ac_ext >&5
1757 rm -f conftest.$ac_objext conftest.$ac_ext
1758 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1761 echo "$as_me:1761: result: $ac_cv_c_compiler_gnu" >&5
1762 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1763 GCC=`test $ac_compiler_gnu = yes && echo yes`
1764 ac_test_CFLAGS=${CFLAGS+set}
1765 ac_save_CFLAGS=$CFLAGS
1767 echo "$as_me:1767: checking whether $CC accepts -g" >&5
1768 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1769 if test "${ac_cv_prog_cc_g+set}" = set; then
1770 echo $ECHO_N "(cached) $ECHO_C" >&6
1772 cat >conftest.$ac_ext <<_ACEOF
1773 #line 1773 "configure"
1774 #include "confdefs.h"
1784 rm -f conftest.$ac_objext
1785 if { (eval echo "$as_me:1785: \"$ac_compile\"") >&5
1786 (eval $ac_compile) 2>&5
1788 echo "$as_me:1788: \$? = $ac_status" >&5
1789 (exit $ac_status); } &&
1790 { ac_try='test -s conftest.$ac_objext'
1791 { (eval echo "$as_me:1791: \"$ac_try\"") >&5
1794 echo "$as_me:1794: \$? = $ac_status" >&5
1795 (exit $ac_status); }; }; then
1798 echo "$as_me: failed program was:" >&5
1799 cat conftest.$ac_ext >&5
1802 rm -f conftest.$ac_objext conftest.$ac_ext
1804 echo "$as_me:1804: result: $ac_cv_prog_cc_g" >&5
1805 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1806 if test "$ac_test_CFLAGS" = set; then
1807 CFLAGS=$ac_save_CFLAGS
1808 elif test $ac_cv_prog_cc_g = yes; then
1809 if test "$GCC" = yes; then
1815 if test "$GCC" = yes; then
1821 # Some people use a C++ compiler to compile C. Since we use `exit',
1822 # in C++ we need to declare it. In case someone uses the same compiler
1823 # for both compiling C and C++ we need to have the C++ compiler decide
1824 # the declaration of exit, since it's the most demanding environment.
1825 cat >conftest.$ac_ext <<_ACEOF
1830 rm -f conftest.$ac_objext
1831 if { (eval echo "$as_me:1831: \"$ac_compile\"") >&5
1832 (eval $ac_compile) 2>&5
1834 echo "$as_me:1834: \$? = $ac_status" >&5
1835 (exit $ac_status); } &&
1836 { ac_try='test -s conftest.$ac_objext'
1837 { (eval echo "$as_me:1837: \"$ac_try\"") >&5
1840 echo "$as_me:1840: \$? = $ac_status" >&5
1841 (exit $ac_status); }; }; then
1842 for ac_declaration in \
1844 '#include <stdlib.h>' \
1845 'extern "C" void std::exit (int) throw (); using std::exit;' \
1846 'extern "C" void std::exit (int); using std::exit;' \
1847 'extern "C" void exit (int) throw ();' \
1848 'extern "C" void exit (int);' \
1851 cat >conftest.$ac_ext <<_ACEOF
1852 #line 1852 "configure"
1853 #include "confdefs.h"
1864 rm -f conftest.$ac_objext
1865 if { (eval echo "$as_me:1865: \"$ac_compile\"") >&5
1866 (eval $ac_compile) 2>&5
1868 echo "$as_me:1868: \$? = $ac_status" >&5
1869 (exit $ac_status); } &&
1870 { ac_try='test -s conftest.$ac_objext'
1871 { (eval echo "$as_me:1871: \"$ac_try\"") >&5
1874 echo "$as_me:1874: \$? = $ac_status" >&5
1875 (exit $ac_status); }; }; then
1878 echo "$as_me: failed program was:" >&5
1879 cat conftest.$ac_ext >&5
1882 rm -f conftest.$ac_objext conftest.$ac_ext
1883 cat >conftest.$ac_ext <<_ACEOF
1884 #line 1884 "configure"
1885 #include "confdefs.h"
1895 rm -f conftest.$ac_objext
1896 if { (eval echo "$as_me:1896: \"$ac_compile\"") >&5
1897 (eval $ac_compile) 2>&5
1899 echo "$as_me:1899: \$? = $ac_status" >&5
1900 (exit $ac_status); } &&
1901 { ac_try='test -s conftest.$ac_objext'
1902 { (eval echo "$as_me:1902: \"$ac_try\"") >&5
1905 echo "$as_me:1905: \$? = $ac_status" >&5
1906 (exit $ac_status); }; }; then
1909 echo "$as_me: failed program was:" >&5
1910 cat conftest.$ac_ext >&5
1912 rm -f conftest.$ac_objext conftest.$ac_ext
1915 if test -n "$ac_declaration"; then
1916 echo '#ifdef __cplusplus' >>confdefs.h
1917 echo $ac_declaration >>confdefs.h
1918 echo '#endif' >>confdefs.h
1922 echo "$as_me: failed program was:" >&5
1923 cat conftest.$ac_ext >&5
1925 rm -f conftest.$ac_objext conftest.$ac_ext
1927 ac_cpp='$CPP $CPPFLAGS'
1928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1931 ac_main_return=return
1934 if test "$GCC" = yes ; then
1935 echo "$as_me:1935: checking version of $CC" >&5
1936 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1937 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.].*//'`"
1938 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1939 echo "$as_me:1939: result: $GCC_VERSION" >&5
1940 echo "${ECHO_T}$GCC_VERSION" >&6
1943 echo "$as_me:1943: checking for $CC option to accept ANSI C" >&5
1944 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1945 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1946 echo $ECHO_N "(cached) $ECHO_C" >&6
1948 ac_cv_prog_cc_stdc=no
1950 cat >conftest.$ac_ext <<_ACEOF
1951 #line 1951 "configure"
1952 #include "confdefs.h"
1955 #include <sys/types.h>
1956 #include <sys/stat.h>
1957 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1958 struct buf { int x; };
1959 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1960 static char *e (p, i)
1966 static char *f (char * (*g) (char **, int), char **p, ...)
1971 s = g (p, va_arg (v,int));
1975 int test (int i, double x);
1976 struct s1 {int (*f) (int a);};
1977 struct s2 {int (*f) (double a);};
1978 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1984 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1989 # Don't try gcc -ansi; that turns off useful extensions and
1990 # breaks some systems' header files.
1991 # AIX -qlanglvl=ansi
1992 # Ultrix and OSF/1 -std1
1993 # HP-UX 10.20 and later -Ae
1994 # HP-UX older versions -Aa -D_HPUX_SOURCE
1995 # SVR4 -Xc -D__EXTENSIONS__
1996 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1998 CC="$ac_save_CC $ac_arg"
1999 rm -f conftest.$ac_objext
2000 if { (eval echo "$as_me:2000: \"$ac_compile\"") >&5
2001 (eval $ac_compile) 2>&5
2003 echo "$as_me:2003: \$? = $ac_status" >&5
2004 (exit $ac_status); } &&
2005 { ac_try='test -s conftest.$ac_objext'
2006 { (eval echo "$as_me:2006: \"$ac_try\"") >&5
2009 echo "$as_me:2009: \$? = $ac_status" >&5
2010 (exit $ac_status); }; }; then
2011 ac_cv_prog_cc_stdc=$ac_arg
2014 echo "$as_me: failed program was:" >&5
2015 cat conftest.$ac_ext >&5
2017 rm -f conftest.$ac_objext
2019 rm -f conftest.$ac_ext conftest.$ac_objext
2024 case "x$ac_cv_prog_cc_stdc" in
2026 echo "$as_me:2026: result: none needed" >&5
2027 echo "${ECHO_T}none needed" >&6 ;;
2029 echo "$as_me:2029: result: $ac_cv_prog_cc_stdc" >&5
2030 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2031 CC="$CC $ac_cv_prog_cc_stdc" ;;
2034 # This should have been defined by AC_PROG_CC
2037 echo "$as_me:2037: checking \$CC variable" >&5
2038 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2041 echo "$as_me:2041: result: broken" >&5
2042 echo "${ECHO_T}broken" >&6
2043 { echo "$as_me:2043: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2044 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2046 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
2047 CC=`echo "$CC" | sed -e 's/[ ].*//'`
2052 cf_new_extra_cppflags=
2054 for cf_add_cflags in $cf_flags
2056 case $cf_fix_cppflags in
2058 case $cf_add_cflags in #(vi
2059 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2060 case $cf_add_cflags in
2062 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2064 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2065 && test -z "${cf_tst_cflags}" \
2066 && cf_fix_cppflags=yes
2068 if test $cf_fix_cppflags = yes ; then
2069 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2071 elif test "${cf_tst_cflags}" = "\"'" ; then
2072 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2078 *$cf_add_cflags) #(vi
2081 case $cf_add_cflags in #(vi
2083 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2085 CPPFLAGS=`echo "$CPPFLAGS" | \
2086 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2087 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2091 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2096 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2101 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2103 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2105 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2106 && test -z "${cf_tst_cflags}" \
2107 && cf_fix_cppflags=no
2112 if test -n "$cf_new_cflags" ; then
2114 CFLAGS="$CFLAGS $cf_new_cflags"
2117 if test -n "$cf_new_cppflags" ; then
2119 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2122 if test -n "$cf_new_extra_cppflags" ; then
2124 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2129 echo "$as_me:2129: result: ok" >&5
2130 echo "${ECHO_T}ok" >&6
2135 ac_cpp='$CPP $CPPFLAGS'
2136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2139 ac_main_return=return
2140 echo "$as_me:2140: checking how to run the C preprocessor" >&5
2141 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2142 # On Suns, sometimes $CPP names a directory.
2143 if test -n "$CPP" && test -d "$CPP"; then
2146 if test -z "$CPP"; then
2147 if test "${ac_cv_prog_CPP+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 # Double quotes because CPP needs to be expanded
2151 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2154 for ac_c_preproc_warn_flag in '' yes
2156 # Use a header file that comes with gcc, so configuring glibc
2157 # with a fresh cross-compiler works.
2158 # On the NeXT, cc -E runs the code through the compiler's parser,
2159 # not just through cpp. "Syntax error" is here to catch this case.
2160 cat >conftest.$ac_ext <<_ACEOF
2161 #line 2161 "configure"
2162 #include "confdefs.h"
2166 if { (eval echo "$as_me:2166: \"$ac_cpp conftest.$ac_ext\"") >&5
2167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2169 egrep -v '^ *\+' conftest.er1 >conftest.err
2171 cat conftest.err >&5
2172 echo "$as_me:2172: \$? = $ac_status" >&5
2173 (exit $ac_status); } >/dev/null; then
2174 if test -s conftest.err; then
2175 ac_cpp_err=$ac_c_preproc_warn_flag
2182 if test -z "$ac_cpp_err"; then
2185 echo "$as_me: failed program was:" >&5
2186 cat conftest.$ac_ext >&5
2187 # Broken: fails on valid input.
2190 rm -f conftest.err conftest.$ac_ext
2192 # OK, works on sane cases. Now check whether non-existent headers
2193 # can be detected and how.
2194 cat >conftest.$ac_ext <<_ACEOF
2195 #line 2195 "configure"
2196 #include "confdefs.h"
2197 #include <ac_nonexistent.h>
2199 if { (eval echo "$as_me:2199: \"$ac_cpp conftest.$ac_ext\"") >&5
2200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2202 egrep -v '^ *\+' conftest.er1 >conftest.err
2204 cat conftest.err >&5
2205 echo "$as_me:2205: \$? = $ac_status" >&5
2206 (exit $ac_status); } >/dev/null; then
2207 if test -s conftest.err; then
2208 ac_cpp_err=$ac_c_preproc_warn_flag
2215 if test -z "$ac_cpp_err"; then
2216 # Broken: success on invalid input.
2219 echo "$as_me: failed program was:" >&5
2220 cat conftest.$ac_ext >&5
2221 # Passes both tests.
2225 rm -f conftest.err conftest.$ac_ext
2228 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2229 rm -f conftest.err conftest.$ac_ext
2230 if $ac_preproc_ok; then
2242 echo "$as_me:2242: result: $CPP" >&5
2243 echo "${ECHO_T}$CPP" >&6
2245 for ac_c_preproc_warn_flag in '' yes
2247 # Use a header file that comes with gcc, so configuring glibc
2248 # with a fresh cross-compiler works.
2249 # On the NeXT, cc -E runs the code through the compiler's parser,
2250 # not just through cpp. "Syntax error" is here to catch this case.
2251 cat >conftest.$ac_ext <<_ACEOF
2252 #line 2252 "configure"
2253 #include "confdefs.h"
2257 if { (eval echo "$as_me:2257: \"$ac_cpp conftest.$ac_ext\"") >&5
2258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2260 egrep -v '^ *\+' conftest.er1 >conftest.err
2262 cat conftest.err >&5
2263 echo "$as_me:2263: \$? = $ac_status" >&5
2264 (exit $ac_status); } >/dev/null; then
2265 if test -s conftest.err; then
2266 ac_cpp_err=$ac_c_preproc_warn_flag
2273 if test -z "$ac_cpp_err"; then
2276 echo "$as_me: failed program was:" >&5
2277 cat conftest.$ac_ext >&5
2278 # Broken: fails on valid input.
2281 rm -f conftest.err conftest.$ac_ext
2283 # OK, works on sane cases. Now check whether non-existent headers
2284 # can be detected and how.
2285 cat >conftest.$ac_ext <<_ACEOF
2286 #line 2286 "configure"
2287 #include "confdefs.h"
2288 #include <ac_nonexistent.h>
2290 if { (eval echo "$as_me:2290: \"$ac_cpp conftest.$ac_ext\"") >&5
2291 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2293 egrep -v '^ *\+' conftest.er1 >conftest.err
2295 cat conftest.err >&5
2296 echo "$as_me:2296: \$? = $ac_status" >&5
2297 (exit $ac_status); } >/dev/null; then
2298 if test -s conftest.err; then
2299 ac_cpp_err=$ac_c_preproc_warn_flag
2306 if test -z "$ac_cpp_err"; then
2307 # Broken: success on invalid input.
2310 echo "$as_me: failed program was:" >&5
2311 cat conftest.$ac_ext >&5
2312 # Passes both tests.
2316 rm -f conftest.err conftest.$ac_ext
2319 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2320 rm -f conftest.err conftest.$ac_ext
2321 if $ac_preproc_ok; then
2324 { { echo "$as_me:2324: error: C preprocessor \"$CPP\" fails sanity check" >&5
2325 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2326 { (exit 1); exit 1; }; }
2330 ac_cpp='$CPP $CPPFLAGS'
2331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2334 ac_main_return=return
2336 if test $ac_cv_c_compiler_gnu = yes; then
2337 echo "$as_me:2337: checking whether $CC needs -traditional" >&5
2338 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2339 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2340 echo $ECHO_N "(cached) $ECHO_C" >&6
2342 ac_pattern="Autoconf.*'x'"
2343 cat >conftest.$ac_ext <<_ACEOF
2344 #line 2344 "configure"
2345 #include "confdefs.h"
2347 int Autoconf = TIOCGETP;
2349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2350 egrep "$ac_pattern" >/dev/null 2>&1; then
2351 ac_cv_prog_gcc_traditional=yes
2353 ac_cv_prog_gcc_traditional=no
2357 if test $ac_cv_prog_gcc_traditional = no; then
2358 cat >conftest.$ac_ext <<_ACEOF
2359 #line 2359 "configure"
2360 #include "confdefs.h"
2362 int Autoconf = TCGETA;
2364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2365 egrep "$ac_pattern" >/dev/null 2>&1; then
2366 ac_cv_prog_gcc_traditional=yes
2372 echo "$as_me:2372: result: $ac_cv_prog_gcc_traditional" >&5
2373 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2374 if test $ac_cv_prog_gcc_traditional = yes; then
2375 CC="$CC -traditional"
2379 echo "$as_me:2379: checking whether $CC understands -c and -o together" >&5
2380 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2381 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2382 echo $ECHO_N "(cached) $ECHO_C" >&6
2385 cat > conftest.$ac_ext <<CF_EOF
2389 ${cf_cv_main_return:-return}(0);
2392 # We do the test twice because some compilers refuse to overwrite an
2393 # existing .o file with -o, though they will create one.
2394 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2395 if { (eval echo "$as_me:2395: \"$ac_try\"") >&5
2398 echo "$as_me:2398: \$? = $ac_status" >&5
2399 (exit $ac_status); } &&
2400 test -f conftest2.$ac_objext && { (eval echo "$as_me:2400: \"$ac_try\"") >&5
2403 echo "$as_me:2403: \$? = $ac_status" >&5
2404 (exit $ac_status); };
2406 eval cf_cv_prog_CC_c_o=yes
2408 eval cf_cv_prog_CC_c_o=no
2413 if test $cf_cv_prog_CC_c_o = yes; then
2414 echo "$as_me:2414: result: yes" >&5
2415 echo "${ECHO_T}yes" >&6
2417 echo "$as_me:2417: result: no" >&5
2418 echo "${ECHO_T}no" >&6
2421 if test "$cross_compiling" = yes ; then
2424 case "$cf_cv_system_name" in #(vi
2425 dragonfly*|mirbsd*|freebsd*) #(vi
2426 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2428 *) LDPATH=$PATH:/sbin:/usr/sbin
2429 # Extract the first word of "ldconfig", so it can be a program name with args.
2430 set dummy ldconfig; ac_word=$2
2431 echo "$as_me:2431: checking for $ac_word" >&5
2432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2433 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2434 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2441 ac_save_IFS=$IFS; IFS=$ac_path_separator
2443 for ac_dir in $ac_dummy; do
2445 test -z "$ac_dir" && ac_dir=.
2446 if $as_executable_p "$ac_dir/$ac_word"; then
2447 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2448 echo "$as_me:2448: found $ac_dir/$ac_word" >&5
2456 LDCONFIG=$ac_cv_path_LDCONFIG
2458 if test -n "$LDCONFIG"; then
2459 echo "$as_me:2459: result: $LDCONFIG" >&5
2460 echo "${ECHO_T}$LDCONFIG" >&6
2462 echo "$as_me:2462: result: no" >&5
2463 echo "${ECHO_T}no" >&6
2470 echo "$as_me:2470: checking if you want to ensure bool is consistent with C++" >&5
2471 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2473 # Check whether --with-cxx or --without-cxx was given.
2474 if test "${with_cxx+set}" = set; then
2476 cf_with_cxx=$withval
2480 echo "$as_me:2480: result: $cf_with_cxx" >&5
2481 echo "${ECHO_T}$cf_with_cxx" >&6
2482 if test "X$cf_with_cxx" = Xno ; then
2486 # with autoconf 2.13, we can change the error to a warning:
2488 ac_cpp='$CXXCPP $CPPFLAGS'
2489 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2490 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2491 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2492 ac_main_return=return
2493 if test -n "$ac_tool_prefix"; then
2494 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2496 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2497 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2498 echo "$as_me:2498: checking for $ac_word" >&5
2499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2500 if test "${ac_cv_prog_CXX+set}" = set; then
2501 echo $ECHO_N "(cached) $ECHO_C" >&6
2503 if test -n "$CXX"; then
2504 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2506 ac_save_IFS=$IFS; IFS=$ac_path_separator
2508 for ac_dir in $ac_dummy; do
2510 test -z "$ac_dir" && ac_dir=.
2511 $as_executable_p "$ac_dir/$ac_word" || continue
2512 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2513 echo "$as_me:2513: found $ac_dir/$ac_word" >&5
2520 if test -n "$CXX"; then
2521 echo "$as_me:2521: result: $CXX" >&5
2522 echo "${ECHO_T}$CXX" >&6
2524 echo "$as_me:2524: result: no" >&5
2525 echo "${ECHO_T}no" >&6
2528 test -n "$CXX" && break
2531 if test -z "$CXX"; then
2533 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2535 # Extract the first word of "$ac_prog", so it can be a program name with args.
2536 set dummy $ac_prog; ac_word=$2
2537 echo "$as_me:2537: checking for $ac_word" >&5
2538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2539 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
2542 if test -n "$ac_ct_CXX"; then
2543 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2545 ac_save_IFS=$IFS; IFS=$ac_path_separator
2547 for ac_dir in $ac_dummy; do
2549 test -z "$ac_dir" && ac_dir=.
2550 $as_executable_p "$ac_dir/$ac_word" || continue
2551 ac_cv_prog_ac_ct_CXX="$ac_prog"
2552 echo "$as_me:2552: found $ac_dir/$ac_word" >&5
2558 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2559 if test -n "$ac_ct_CXX"; then
2560 echo "$as_me:2560: result: $ac_ct_CXX" >&5
2561 echo "${ECHO_T}$ac_ct_CXX" >&6
2563 echo "$as_me:2563: result: no" >&5
2564 echo "${ECHO_T}no" >&6
2567 test -n "$ac_ct_CXX" && break
2569 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2574 # Provide some information about the compiler.
2575 echo "$as_me:2575:" \
2576 "checking for C++ compiler version" >&5
2577 ac_compiler=`set X $ac_compile; echo $2`
2578 { (eval echo "$as_me:2578: \"$ac_compiler --version </dev/null >&5\"") >&5
2579 (eval $ac_compiler --version </dev/null >&5) 2>&5
2581 echo "$as_me:2581: \$? = $ac_status" >&5
2582 (exit $ac_status); }
2583 { (eval echo "$as_me:2583: \"$ac_compiler -v </dev/null >&5\"") >&5
2584 (eval $ac_compiler -v </dev/null >&5) 2>&5
2586 echo "$as_me:2586: \$? = $ac_status" >&5
2587 (exit $ac_status); }
2588 { (eval echo "$as_me:2588: \"$ac_compiler -V </dev/null >&5\"") >&5
2589 (eval $ac_compiler -V </dev/null >&5) 2>&5
2591 echo "$as_me:2591: \$? = $ac_status" >&5
2592 (exit $ac_status); }
2594 echo "$as_me:2594: checking whether we are using the GNU C++ compiler" >&5
2595 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2596 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2597 echo $ECHO_N "(cached) $ECHO_C" >&6
2599 cat >conftest.$ac_ext <<_ACEOF
2600 #line 2600 "configure"
2601 #include "confdefs.h"
2614 rm -f conftest.$ac_objext
2615 if { (eval echo "$as_me:2615: \"$ac_compile\"") >&5
2616 (eval $ac_compile) 2>&5
2618 echo "$as_me:2618: \$? = $ac_status" >&5
2619 (exit $ac_status); } &&
2620 { ac_try='test -s conftest.$ac_objext'
2621 { (eval echo "$as_me:2621: \"$ac_try\"") >&5
2624 echo "$as_me:2624: \$? = $ac_status" >&5
2625 (exit $ac_status); }; }; then
2628 echo "$as_me: failed program was:" >&5
2629 cat conftest.$ac_ext >&5
2632 rm -f conftest.$ac_objext conftest.$ac_ext
2633 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2636 echo "$as_me:2636: result: $ac_cv_cxx_compiler_gnu" >&5
2637 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2638 GXX=`test $ac_compiler_gnu = yes && echo yes`
2639 ac_test_CXXFLAGS=${CXXFLAGS+set}
2640 ac_save_CXXFLAGS=$CXXFLAGS
2642 echo "$as_me:2642: checking whether $CXX accepts -g" >&5
2643 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2644 if test "${ac_cv_prog_cxx_g+set}" = set; then
2645 echo $ECHO_N "(cached) $ECHO_C" >&6
2647 cat >conftest.$ac_ext <<_ACEOF
2648 #line 2648 "configure"
2649 #include "confdefs.h"
2659 rm -f conftest.$ac_objext
2660 if { (eval echo "$as_me:2660: \"$ac_compile\"") >&5
2661 (eval $ac_compile) 2>&5
2663 echo "$as_me:2663: \$? = $ac_status" >&5
2664 (exit $ac_status); } &&
2665 { ac_try='test -s conftest.$ac_objext'
2666 { (eval echo "$as_me:2666: \"$ac_try\"") >&5
2669 echo "$as_me:2669: \$? = $ac_status" >&5
2670 (exit $ac_status); }; }; then
2671 ac_cv_prog_cxx_g=yes
2673 echo "$as_me: failed program was:" >&5
2674 cat conftest.$ac_ext >&5
2677 rm -f conftest.$ac_objext conftest.$ac_ext
2679 echo "$as_me:2679: result: $ac_cv_prog_cxx_g" >&5
2680 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2681 if test "$ac_test_CXXFLAGS" = set; then
2682 CXXFLAGS=$ac_save_CXXFLAGS
2683 elif test $ac_cv_prog_cxx_g = yes; then
2684 if test "$GXX" = yes; then
2690 if test "$GXX" = yes; then
2696 for ac_declaration in \
2698 '#include <stdlib.h>' \
2699 'extern "C" void std::exit (int) throw (); using std::exit;' \
2700 'extern "C" void std::exit (int); using std::exit;' \
2701 'extern "C" void exit (int) throw ();' \
2702 'extern "C" void exit (int);' \
2705 cat >conftest.$ac_ext <<_ACEOF
2706 #line 2706 "configure"
2707 #include "confdefs.h"
2718 rm -f conftest.$ac_objext
2719 if { (eval echo "$as_me:2719: \"$ac_compile\"") >&5
2720 (eval $ac_compile) 2>&5
2722 echo "$as_me:2722: \$? = $ac_status" >&5
2723 (exit $ac_status); } &&
2724 { ac_try='test -s conftest.$ac_objext'
2725 { (eval echo "$as_me:2725: \"$ac_try\"") >&5
2728 echo "$as_me:2728: \$? = $ac_status" >&5
2729 (exit $ac_status); }; }; then
2732 echo "$as_me: failed program was:" >&5
2733 cat conftest.$ac_ext >&5
2736 rm -f conftest.$ac_objext conftest.$ac_ext
2737 cat >conftest.$ac_ext <<_ACEOF
2738 #line 2738 "configure"
2739 #include "confdefs.h"
2749 rm -f conftest.$ac_objext
2750 if { (eval echo "$as_me:2750: \"$ac_compile\"") >&5
2751 (eval $ac_compile) 2>&5
2753 echo "$as_me:2753: \$? = $ac_status" >&5
2754 (exit $ac_status); } &&
2755 { ac_try='test -s conftest.$ac_objext'
2756 { (eval echo "$as_me:2756: \"$ac_try\"") >&5
2759 echo "$as_me:2759: \$? = $ac_status" >&5
2760 (exit $ac_status); }; }; then
2763 echo "$as_me: failed program was:" >&5
2764 cat conftest.$ac_ext >&5
2766 rm -f conftest.$ac_objext conftest.$ac_ext
2769 if test -n "$ac_declaration"; then
2770 echo '#ifdef __cplusplus' >>confdefs.h
2771 echo $ac_declaration >>confdefs.h
2772 echo '#endif' >>confdefs.h
2776 ac_cpp='$CPP $CPPFLAGS'
2777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2780 ac_main_return=return
2782 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
2783 if test "$CXX" = "g++" ; then
2784 # Extract the first word of "g++", so it can be a program name with args.
2785 set dummy g++; ac_word=$2
2786 echo "$as_me:2786: checking for $ac_word" >&5
2787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2788 if test "${ac_cv_path_CXX+set}" = set; then
2789 echo $ECHO_N "(cached) $ECHO_C" >&6
2793 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
2796 ac_save_IFS=$IFS; IFS=$ac_path_separator
2798 for ac_dir in $ac_dummy; do
2800 test -z "$ac_dir" && ac_dir=.
2801 if $as_executable_p "$ac_dir/$ac_word"; then
2802 ac_cv_path_CXX="$ac_dir/$ac_word"
2803 echo "$as_me:2803: found $ac_dir/$ac_word" >&5
2813 if test -n "$CXX"; then
2814 echo "$as_me:2814: result: $CXX" >&5
2815 echo "${ECHO_T}$CXX" >&6
2817 echo "$as_me:2817: result: no" >&5
2818 echo "${ECHO_T}no" >&6
2822 case "x$CXX" in #(vi
2824 { echo "$as_me:2824: WARNING: You don't have any C++ compiler, too bad" >&5
2825 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
2826 cf_with_cxx=no; CXX=""; GXX="";
2832 if test "$GXX" = yes; then
2833 echo "$as_me:2833: checking version of ${CXX:-g++}" >&5
2834 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
2835 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2836 test -z "$GXX_VERSION" && GXX_VERSION=unknown
2837 echo "$as_me:2837: result: $GXX_VERSION" >&5
2838 echo "${ECHO_T}$GXX_VERSION" >&6
2841 case $GXX_VERSION in
2843 # GXX=""; CXX=""; ac_cv_prog_gxx=no
2845 { echo "$as_me:2845: WARNING: templates do not work" >&5
2846 echo "$as_me: WARNING: templates do not work" >&2;}
2850 echo "$as_me:2850: checking if you want to build C++ binding and demo" >&5
2851 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
2853 # Check whether --with-cxx-binding or --without-cxx-binding was given.
2854 if test "${with_cxx_binding+set}" = set; then
2855 withval="$with_cxx_binding"
2856 cf_with_cxx_binding=$withval
2858 cf_with_cxx_binding=$cf_with_cxx
2860 echo "$as_me:2860: result: $cf_with_cxx_binding" >&5
2861 echo "${ECHO_T}$cf_with_cxx_binding" >&6
2863 echo "$as_me:2863: checking if you want to build with Ada95" >&5
2864 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
2865 echo "$as_me:2865: result: $cf_with_ada" >&5
2866 echo "${ECHO_T}$cf_with_ada" >&6
2868 echo "$as_me:2868: checking if you want to install manpages" >&5
2869 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
2871 # Check whether --with-manpages or --without-manpages was given.
2872 if test "${with_manpages+set}" = set; then
2873 withval="$with_manpages"
2874 cf_with_manpages=$withval
2876 cf_with_manpages=yes
2878 echo "$as_me:2878: result: $cf_with_manpages" >&5
2879 echo "${ECHO_T}$cf_with_manpages" >&6
2881 echo "$as_me:2881: checking if you want to build programs such as tic" >&5
2882 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
2884 # Check whether --with-progs or --without-progs was given.
2885 if test "${with_progs+set}" = set; then
2886 withval="$with_progs"
2887 cf_with_progs=$withval
2891 echo "$as_me:2891: result: $cf_with_progs" >&5
2892 echo "${ECHO_T}$cf_with_progs" >&6
2894 echo "$as_me:2894: checking if you want to build test-programs" >&5
2895 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
2897 # Check whether --with-tests or --without-tests was given.
2898 if test "${with_tests+set}" = set; then
2899 withval="$with_tests"
2900 cf_with_tests=$withval
2904 echo "$as_me:2904: result: $cf_with_tests" >&5
2905 echo "${ECHO_T}$cf_with_tests" >&6
2907 echo "$as_me:2907: checking if you wish to install curses.h" >&5
2908 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
2910 # Check whether --with-curses-h or --without-curses-h was given.
2911 if test "${with_curses_h+set}" = set; then
2912 withval="$with_curses_h"
2913 with_curses_h=$withval
2917 echo "$as_me:2917: result: $with_curses_h" >&5
2918 echo "${ECHO_T}$with_curses_h" >&6
2920 modules_to_build="ncurses"
2921 if test "X$cf_with_progs" != Xno ; then
2922 modules_to_build="$modules_to_build progs tack"
2924 modules_to_build="$modules_to_build panel menu form"
2926 test "$program_prefix" != NONE &&
2927 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2928 # Use a double $ so make ignores it.
2929 test "$program_suffix" != NONE &&
2930 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2931 # Double any \ or $. echo might interpret backslashes.
2932 # By default was `s,x,x', remove it if useless.
2933 cat <<\_ACEOF >conftest.sed
2934 s/[\\$]/&&/g;s/;s,x,x,$//
2936 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2939 for ac_prog in mawk gawk nawk awk
2941 # Extract the first word of "$ac_prog", so it can be a program name with args.
2942 set dummy $ac_prog; ac_word=$2
2943 echo "$as_me:2943: checking for $ac_word" >&5
2944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2945 if test "${ac_cv_prog_AWK+set}" = set; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
2948 if test -n "$AWK"; then
2949 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2951 ac_save_IFS=$IFS; IFS=$ac_path_separator
2953 for ac_dir in $ac_dummy; do
2955 test -z "$ac_dir" && ac_dir=.
2956 $as_executable_p "$ac_dir/$ac_word" || continue
2957 ac_cv_prog_AWK="$ac_prog"
2958 echo "$as_me:2958: found $ac_dir/$ac_word" >&5
2965 if test -n "$AWK"; then
2966 echo "$as_me:2966: result: $AWK" >&5
2967 echo "${ECHO_T}$AWK" >&6
2969 echo "$as_me:2969: result: no" >&5
2970 echo "${ECHO_T}no" >&6
2973 test -n "$AWK" && break
2976 test -z "$AWK" && { { echo "$as_me:2976: error: No awk program found" >&5
2977 echo "$as_me: error: No awk program found" >&2;}
2978 { (exit 1); exit 1; }; }
2980 echo "$as_me:2980: checking for egrep" >&5
2981 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2982 if test "${ac_cv_prog_egrep+set}" = set; then
2983 echo $ECHO_N "(cached) $ECHO_C" >&6
2985 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2986 then ac_cv_prog_egrep='grep -E'
2987 else ac_cv_prog_egrep='egrep'
2990 echo "$as_me:2990: result: $ac_cv_prog_egrep" >&5
2991 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2992 EGREP=$ac_cv_prog_egrep
2994 test -z "$EGREP" && { { echo "$as_me:2994: error: No egrep program found" >&5
2995 echo "$as_me: error: No egrep program found" >&2;}
2996 { (exit 1); exit 1; }; }
2998 # Find a good install program. We prefer a C program (faster),
2999 # so one script is as good as another. But avoid the broken or
3000 # incompatible versions:
3001 # SysV /etc/install, /usr/sbin/install
3002 # SunOS /usr/etc/install
3003 # IRIX /sbin/install
3005 # AmigaOS /C/install, which installs bootblocks on floppy discs
3006 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3007 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3008 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3009 # ./install, which can be erroneously created by make from ./install.sh.
3010 echo "$as_me:3010: checking for a BSD compatible install" >&5
3011 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3012 if test -z "$INSTALL"; then
3013 if test "${ac_cv_path_install+set}" = set; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
3016 ac_save_IFS=$IFS; IFS=$ac_path_separator
3017 for ac_dir in $PATH; do
3019 # Account for people who put trailing slashes in PATH elements.
3021 / | ./ | .// | /cC/* \
3022 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3025 # OSF1 and SCO ODT 3.0 have their own names for install.
3026 # Don't use installbsd from OSF since it installs stuff as root
3028 for ac_prog in ginstall scoinst install; do
3029 if $as_executable_p "$ac_dir/$ac_prog"; then
3030 if test $ac_prog = install &&
3031 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3032 # AIX install. It has an incompatible calling convention.
3034 elif test $ac_prog = install &&
3035 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3036 # program-specific install script used by HP pwplus--don't use.
3039 ac_cv_path_install="$ac_dir/$ac_prog -c"
3049 if test "${ac_cv_path_install+set}" = set; then
3050 INSTALL=$ac_cv_path_install
3052 # As a last resort, use the slow shell script. We don't cache a
3053 # path for INSTALL within a source directory, because that will
3054 # break other packages using the cache if that directory is
3055 # removed, or if the path is relative.
3056 INSTALL=$ac_install_sh
3059 echo "$as_me:3059: result: $INSTALL" >&5
3060 echo "${ECHO_T}$INSTALL" >&6
3062 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3063 # It thinks the first close brace ends the variable substitution.
3064 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3066 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3068 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3074 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3075 test -z "$cf_dir" && cf_dir=.
3076 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3080 for ac_prog in tdlint lint alint splint lclint
3082 # Extract the first word of "$ac_prog", so it can be a program name with args.
3083 set dummy $ac_prog; ac_word=$2
3084 echo "$as_me:3084: checking for $ac_word" >&5
3085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3086 if test "${ac_cv_prog_LINT+set}" = set; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
3089 if test -n "$LINT"; then
3090 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3092 ac_save_IFS=$IFS; IFS=$ac_path_separator
3094 for ac_dir in $ac_dummy; do
3096 test -z "$ac_dir" && ac_dir=.
3097 $as_executable_p "$ac_dir/$ac_word" || continue
3098 ac_cv_prog_LINT="$ac_prog"
3099 echo "$as_me:3099: found $ac_dir/$ac_word" >&5
3105 LINT=$ac_cv_prog_LINT
3106 if test -n "$LINT"; then
3107 echo "$as_me:3107: result: $LINT" >&5
3108 echo "${ECHO_T}$LINT" >&6
3110 echo "$as_me:3110: result: no" >&5
3111 echo "${ECHO_T}no" >&6
3114 test -n "$LINT" && break
3117 echo "$as_me:3117: checking whether ln -s works" >&5
3118 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3120 if test "$LN_S" = "ln -s"; then
3121 echo "$as_me:3121: result: yes" >&5
3122 echo "${ECHO_T}yes" >&6
3124 echo "$as_me:3124: result: no, using $LN_S" >&5
3125 echo "${ECHO_T}no, using $LN_S" >&6
3128 echo "$as_me:3128: checking if $LN_S -f options work" >&5
3129 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3131 rm -f conf$$.src conf$$dst
3133 echo first >conf$$.src
3134 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3139 rm -f conf$$.dst conf$$src
3140 echo "$as_me:3140: result: $cf_prog_ln_sf" >&5
3141 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3143 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3145 echo "$as_me:3145: checking for long file names" >&5
3146 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3147 if test "${ac_cv_sys_long_file_names+set}" = set; then
3148 echo $ECHO_N "(cached) $ECHO_C" >&6
3150 ac_cv_sys_long_file_names=yes
3151 # Test for long file names in all the places we know might matter:
3152 # . the current directory, where building will happen
3153 # $prefix/lib where we will be installing things
3154 # $exec_prefix/lib likewise
3155 # eval it to expand exec_prefix.
3156 # $TMPDIR if set, where it might want to write temporary files
3157 # if $TMPDIR is not set:
3158 # /tmp where it might want to write temporary files
3161 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3164 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3166 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3167 test -d $ac_dir || continue
3168 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3169 ac_xdir=$ac_dir/cf$$
3170 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3171 ac_tf1=$ac_xdir/conftest9012345
3172 ac_tf2=$ac_xdir/conftest9012346
3173 (echo 1 >$ac_tf1) 2>/dev/null
3174 (echo 2 >$ac_tf2) 2>/dev/null
3175 ac_val=`cat $ac_tf1 2>/dev/null`
3176 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3177 ac_cv_sys_long_file_names=no
3178 rm -rf $ac_xdir 2>/dev/null
3181 rm -rf $ac_xdir 2>/dev/null
3184 echo "$as_me:3184: result: $ac_cv_sys_long_file_names" >&5
3185 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3186 if test $ac_cv_sys_long_file_names = yes; then
3188 cat >>confdefs.h <<\EOF
3189 #define HAVE_LONG_FILE_NAMES 1
3194 # if we find pkg-config, check if we should install the ".pc" files.
3196 echo "$as_me:3196: checking if you want to use pkg-config" >&5
3197 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3199 # Check whether --with-pkg-config or --without-pkg-config was given.
3200 if test "${with_pkg_config+set}" = set; then
3201 withval="$with_pkg_config"
3202 cf_pkg_config=$withval
3206 echo "$as_me:3206: result: $cf_pkg_config" >&5
3207 echo "${ECHO_T}$cf_pkg_config" >&6
3209 case $cf_pkg_config in #(vi
3215 if test -n "$ac_tool_prefix"; then
3216 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3217 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3218 echo "$as_me:3218: checking for $ac_word" >&5
3219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3220 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3221 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3228 ac_save_IFS=$IFS; IFS=$ac_path_separator
3230 for ac_dir in $ac_dummy; do
3232 test -z "$ac_dir" && ac_dir=.
3233 if $as_executable_p "$ac_dir/$ac_word"; then
3234 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3235 echo "$as_me:3235: found $ac_dir/$ac_word" >&5
3243 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3245 if test -n "$PKG_CONFIG"; then
3246 echo "$as_me:3246: result: $PKG_CONFIG" >&5
3247 echo "${ECHO_T}$PKG_CONFIG" >&6
3249 echo "$as_me:3249: result: no" >&5
3250 echo "${ECHO_T}no" >&6
3254 if test -z "$ac_cv_path_PKG_CONFIG"; then
3255 ac_pt_PKG_CONFIG=$PKG_CONFIG
3256 # Extract the first word of "pkg-config", so it can be a program name with args.
3257 set dummy pkg-config; ac_word=$2
3258 echo "$as_me:3258: checking for $ac_word" >&5
3259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3260 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3261 echo $ECHO_N "(cached) $ECHO_C" >&6
3263 case $ac_pt_PKG_CONFIG in
3265 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3268 ac_save_IFS=$IFS; IFS=$ac_path_separator
3270 for ac_dir in $ac_dummy; do
3272 test -z "$ac_dir" && ac_dir=.
3273 if $as_executable_p "$ac_dir/$ac_word"; then
3274 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3275 echo "$as_me:3275: found $ac_dir/$ac_word" >&5
3280 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3284 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3286 if test -n "$ac_pt_PKG_CONFIG"; then
3287 echo "$as_me:3287: result: $ac_pt_PKG_CONFIG" >&5
3288 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3290 echo "$as_me:3290: result: no" >&5
3291 echo "${ECHO_T}no" >&6
3294 PKG_CONFIG=$ac_pt_PKG_CONFIG
3296 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3305 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3306 if test "$PKG_CONFIG" != none ; then
3308 if test "x$prefix" != xNONE; then
3309 cf_path_syntax="$prefix"
3311 cf_path_syntax="$ac_default_prefix"
3314 case ".$PKG_CONFIG" in #(vi
3315 .\$\(*\)*|.\'*\'*) #(vi
3319 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3321 .\${*prefix}*|.\${*dir}*) #(vi
3322 eval PKG_CONFIG="$PKG_CONFIG"
3323 case ".$PKG_CONFIG" in #(vi
3325 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3330 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3333 { { echo "$as_me:3333: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3334 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3335 { (exit 1); exit 1; }; }
3341 if test "$PKG_CONFIG" != none ; then
3342 echo "$as_me:3342: checking for $PKG_CONFIG library directory" >&5
3343 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3345 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3346 if test "${with_pkg_config_libdir+set}" = set; then
3347 withval="$with_pkg_config_libdir"
3348 PKG_CONFIG_LIBDIR=$withval
3350 PKG_CONFIG_LIBDIR=yes
3353 case x$PKG_CONFIG_LIBDIR in #(vi
3357 # look for the library directory using the same prefix as the executable
3358 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3359 case x`(arch) 2>/dev/null` in #(vi
3361 for cf_config in $cf_path/share $cf_path/lib64 $cf_path/lib32 $cf_path/lib
3363 if test -d $cf_config/pkgconfig
3365 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3371 PKG_CONFIG_LIBDIR=$cf_path/lib/pkgconfig
3379 echo "$as_me:3379: result: $PKG_CONFIG_LIBDIR" >&5
3380 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3383 if test "$PKG_CONFIG" != none ; then
3384 echo "$as_me:3384: checking if we should install .pc files for $PKG_CONFIG" >&5
3385 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3387 # Check whether --enable-pc-files or --disable-pc-files was given.
3388 if test "${enable_pc_files+set}" = set; then
3389 enableval="$enable_pc_files"
3390 enable_pc_files=$enableval
3394 echo "$as_me:3394: result: $enable_pc_files" >&5
3395 echo "${ECHO_T}$enable_pc_files" >&6
3396 if test "$enable_pc_files" != no
3399 if test "x$prefix" != xNONE; then
3400 cf_path_syntax="$prefix"
3402 cf_path_syntax="$ac_default_prefix"
3405 case ".$PKG_CONFIG_LIBDIR" in #(vi
3406 .\$\(*\)*|.\'*\'*) #(vi
3410 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3412 .\${*prefix}*|.\${*dir}*) #(vi
3413 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
3414 case ".$PKG_CONFIG_LIBDIR" in #(vi
3416 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3421 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3424 { { echo "$as_me:3424: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
3425 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
3426 { (exit 1); exit 1; }; }
3435 echo "$as_me:3435: checking if we should assume mixed-case filenames" >&5
3436 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3438 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3439 if test "${enable_mixed_case+set}" = set; then
3440 enableval="$enable_mixed_case"
3441 enable_mixedcase=$enableval
3443 enable_mixedcase=auto
3445 echo "$as_me:3445: result: $enable_mixedcase" >&5
3446 echo "${ECHO_T}$enable_mixedcase" >&6
3447 if test "$enable_mixedcase" = "auto" ; then
3449 echo "$as_me:3449: checking if filesystem supports mixed-case filenames" >&5
3450 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3451 if test "${cf_cv_mixedcase+set}" = set; then
3452 echo $ECHO_N "(cached) $ECHO_C" >&6
3455 if test "$cross_compiling" = yes ; then
3456 case $target_alias in #(vi
3457 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3465 rm -f conftest CONFTEST
3467 if test -f CONFTEST ; then
3472 rm -f conftest CONFTEST
3476 echo "$as_me:3476: result: $cf_cv_mixedcase" >&5
3477 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3478 test "$cf_cv_mixedcase" = yes &&
3479 cat >>confdefs.h <<\EOF
3480 #define MIXEDCASE_FILENAMES 1
3484 cf_cv_mixedcase=$enable_mixedcase
3485 if test "x$enable_mixedcase" = "xyes" ; then
3487 cat >>confdefs.h <<\EOF
3488 #define MIXEDCASE_FILENAMES 1
3494 # do this after mixed-case option (tags/TAGS is not as important as tic).
3495 echo "$as_me:3495: checking whether ${MAKE-make} sets \${MAKE}" >&5
3496 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3497 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3498 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3499 echo $ECHO_N "(cached) $ECHO_C" >&6
3501 cat >conftest.make <<\EOF
3503 @echo 'ac_maketemp="${MAKE}"'
3505 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3506 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3507 if test -n "$ac_maketemp"; then
3508 eval ac_cv_prog_make_${ac_make}_set=yes
3510 eval ac_cv_prog_make_${ac_make}_set=no
3514 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3515 echo "$as_me:3515: result: yes" >&5
3516 echo "${ECHO_T}yes" >&6
3519 echo "$as_me:3519: result: no" >&5
3520 echo "${ECHO_T}no" >&6
3521 SET_MAKE="MAKE=${MAKE-make}"
3524 for ac_prog in exctags ctags
3526 # Extract the first word of "$ac_prog", so it can be a program name with args.
3527 set dummy $ac_prog; ac_word=$2
3528 echo "$as_me:3528: checking for $ac_word" >&5
3529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3530 if test "${ac_cv_prog_CTAGS+set}" = set; then
3531 echo $ECHO_N "(cached) $ECHO_C" >&6
3533 if test -n "$CTAGS"; then
3534 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3536 ac_save_IFS=$IFS; IFS=$ac_path_separator
3538 for ac_dir in $ac_dummy; do
3540 test -z "$ac_dir" && ac_dir=.
3541 $as_executable_p "$ac_dir/$ac_word" || continue
3542 ac_cv_prog_CTAGS="$ac_prog"
3543 echo "$as_me:3543: found $ac_dir/$ac_word" >&5
3549 CTAGS=$ac_cv_prog_CTAGS
3550 if test -n "$CTAGS"; then
3551 echo "$as_me:3551: result: $CTAGS" >&5
3552 echo "${ECHO_T}$CTAGS" >&6
3554 echo "$as_me:3554: result: no" >&5
3555 echo "${ECHO_T}no" >&6
3558 test -n "$CTAGS" && break
3561 for ac_prog in exetags etags
3563 # Extract the first word of "$ac_prog", so it can be a program name with args.
3564 set dummy $ac_prog; ac_word=$2
3565 echo "$as_me:3565: checking for $ac_word" >&5
3566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3567 if test "${ac_cv_prog_ETAGS+set}" = set; then
3568 echo $ECHO_N "(cached) $ECHO_C" >&6
3570 if test -n "$ETAGS"; then
3571 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3573 ac_save_IFS=$IFS; IFS=$ac_path_separator
3575 for ac_dir in $ac_dummy; do
3577 test -z "$ac_dir" && ac_dir=.
3578 $as_executable_p "$ac_dir/$ac_word" || continue
3579 ac_cv_prog_ETAGS="$ac_prog"
3580 echo "$as_me:3580: found $ac_dir/$ac_word" >&5
3586 ETAGS=$ac_cv_prog_ETAGS
3587 if test -n "$ETAGS"; then
3588 echo "$as_me:3588: result: $ETAGS" >&5
3589 echo "${ECHO_T}$ETAGS" >&6
3591 echo "$as_me:3591: result: no" >&5
3592 echo "${ECHO_T}no" >&6
3595 test -n "$ETAGS" && break
3598 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3599 set dummy ${CTAGS:-ctags}; ac_word=$2
3600 echo "$as_me:3600: checking for $ac_word" >&5
3601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3602 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3603 echo $ECHO_N "(cached) $ECHO_C" >&6
3605 if test -n "$MAKE_LOWER_TAGS"; then
3606 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3608 ac_save_IFS=$IFS; IFS=$ac_path_separator
3610 for ac_dir in $ac_dummy; do
3612 test -z "$ac_dir" && ac_dir=.
3613 $as_executable_p "$ac_dir/$ac_word" || continue
3614 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3615 echo "$as_me:3615: found $ac_dir/$ac_word" >&5
3619 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3622 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3623 if test -n "$MAKE_LOWER_TAGS"; then
3624 echo "$as_me:3624: result: $MAKE_LOWER_TAGS" >&5
3625 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3627 echo "$as_me:3627: result: no" >&5
3628 echo "${ECHO_T}no" >&6
3631 if test "$cf_cv_mixedcase" = yes ; then
3632 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3633 set dummy ${ETAGS:-etags}; ac_word=$2
3634 echo "$as_me:3634: checking for $ac_word" >&5
3635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3636 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3637 echo $ECHO_N "(cached) $ECHO_C" >&6
3639 if test -n "$MAKE_UPPER_TAGS"; then
3640 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3642 ac_save_IFS=$IFS; IFS=$ac_path_separator
3644 for ac_dir in $ac_dummy; do
3646 test -z "$ac_dir" && ac_dir=.
3647 $as_executable_p "$ac_dir/$ac_word" || continue
3648 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3649 echo "$as_me:3649: found $ac_dir/$ac_word" >&5
3653 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3656 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3657 if test -n "$MAKE_UPPER_TAGS"; then
3658 echo "$as_me:3658: result: $MAKE_UPPER_TAGS" >&5
3659 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3661 echo "$as_me:3661: result: no" >&5
3662 echo "${ECHO_T}no" >&6
3669 if test "$MAKE_UPPER_TAGS" = yes ; then
3675 if test "$MAKE_LOWER_TAGS" = yes ; then
3681 echo "$as_me:3681: checking for makeflags variable" >&5
3682 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3683 if test "${cf_cv_makeflags+set}" = set; then
3684 echo $ECHO_N "(cached) $ECHO_C" >&6
3688 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3690 cat >cf_makeflags.tmp <<CF_EOF
3693 @ echo '.$cf_option'
3695 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
3696 case "$cf_result" in
3698 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3699 case "$cf_result" in
3700 .*CC=*) cf_cv_makeflags=
3702 *) cf_cv_makeflags=$cf_option
3708 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3712 rm -f cf_makeflags.tmp
3715 echo "$as_me:3715: result: $cf_cv_makeflags" >&5
3716 echo "${ECHO_T}$cf_cv_makeflags" >&6
3718 if test -n "$ac_tool_prefix"; then
3719 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3720 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3721 echo "$as_me:3721: checking for $ac_word" >&5
3722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3723 if test "${ac_cv_prog_RANLIB+set}" = set; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3726 if test -n "$RANLIB"; then
3727 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3729 ac_save_IFS=$IFS; IFS=$ac_path_separator
3731 for ac_dir in $ac_dummy; do
3733 test -z "$ac_dir" && ac_dir=.
3734 $as_executable_p "$ac_dir/$ac_word" || continue
3735 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3736 echo "$as_me:3736: found $ac_dir/$ac_word" >&5
3742 RANLIB=$ac_cv_prog_RANLIB
3743 if test -n "$RANLIB"; then
3744 echo "$as_me:3744: result: $RANLIB" >&5
3745 echo "${ECHO_T}$RANLIB" >&6
3747 echo "$as_me:3747: result: no" >&5
3748 echo "${ECHO_T}no" >&6
3752 if test -z "$ac_cv_prog_RANLIB"; then
3753 ac_ct_RANLIB=$RANLIB
3754 # Extract the first word of "ranlib", so it can be a program name with args.
3755 set dummy ranlib; ac_word=$2
3756 echo "$as_me:3756: checking for $ac_word" >&5
3757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3758 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 if test -n "$ac_ct_RANLIB"; then
3762 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3764 ac_save_IFS=$IFS; IFS=$ac_path_separator
3766 for ac_dir in $ac_dummy; do
3768 test -z "$ac_dir" && ac_dir=.
3769 $as_executable_p "$ac_dir/$ac_word" || continue
3770 ac_cv_prog_ac_ct_RANLIB="ranlib"
3771 echo "$as_me:3771: found $ac_dir/$ac_word" >&5
3775 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3778 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3779 if test -n "$ac_ct_RANLIB"; then
3780 echo "$as_me:3780: result: $ac_ct_RANLIB" >&5
3781 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3783 echo "$as_me:3783: result: no" >&5
3784 echo "${ECHO_T}no" >&6
3787 RANLIB=$ac_ct_RANLIB
3789 RANLIB="$ac_cv_prog_RANLIB"
3792 if test -n "$ac_tool_prefix"; then
3793 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3794 set dummy ${ac_tool_prefix}ld; ac_word=$2
3795 echo "$as_me:3795: checking for $ac_word" >&5
3796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3797 if test "${ac_cv_prog_LD+set}" = set; then
3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3800 if test -n "$LD"; then
3801 ac_cv_prog_LD="$LD" # Let the user override the test.
3803 ac_save_IFS=$IFS; IFS=$ac_path_separator
3805 for ac_dir in $ac_dummy; do
3807 test -z "$ac_dir" && ac_dir=.
3808 $as_executable_p "$ac_dir/$ac_word" || continue
3809 ac_cv_prog_LD="${ac_tool_prefix}ld"
3810 echo "$as_me:3810: found $ac_dir/$ac_word" >&5
3817 if test -n "$LD"; then
3818 echo "$as_me:3818: result: $LD" >&5
3819 echo "${ECHO_T}$LD" >&6
3821 echo "$as_me:3821: result: no" >&5
3822 echo "${ECHO_T}no" >&6
3826 if test -z "$ac_cv_prog_LD"; then
3828 # Extract the first word of "ld", so it can be a program name with args.
3829 set dummy ld; ac_word=$2
3830 echo "$as_me:3830: checking for $ac_word" >&5
3831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3832 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3833 echo $ECHO_N "(cached) $ECHO_C" >&6
3835 if test -n "$ac_ct_LD"; then
3836 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3838 ac_save_IFS=$IFS; IFS=$ac_path_separator
3840 for ac_dir in $ac_dummy; do
3842 test -z "$ac_dir" && ac_dir=.
3843 $as_executable_p "$ac_dir/$ac_word" || continue
3844 ac_cv_prog_ac_ct_LD="ld"
3845 echo "$as_me:3845: found $ac_dir/$ac_word" >&5
3849 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3852 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3853 if test -n "$ac_ct_LD"; then
3854 echo "$as_me:3854: result: $ac_ct_LD" >&5
3855 echo "${ECHO_T}$ac_ct_LD" >&6
3857 echo "$as_me:3857: result: no" >&5
3858 echo "${ECHO_T}no" >&6
3866 if test -n "$ac_tool_prefix"; then
3867 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3868 set dummy ${ac_tool_prefix}ar; ac_word=$2
3869 echo "$as_me:3869: checking for $ac_word" >&5
3870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3871 if test "${ac_cv_prog_AR+set}" = set; then
3872 echo $ECHO_N "(cached) $ECHO_C" >&6
3874 if test -n "$AR"; then
3875 ac_cv_prog_AR="$AR" # Let the user override the test.
3877 ac_save_IFS=$IFS; IFS=$ac_path_separator
3879 for ac_dir in $ac_dummy; do
3881 test -z "$ac_dir" && ac_dir=.
3882 $as_executable_p "$ac_dir/$ac_word" || continue
3883 ac_cv_prog_AR="${ac_tool_prefix}ar"
3884 echo "$as_me:3884: found $ac_dir/$ac_word" >&5
3891 if test -n "$AR"; then
3892 echo "$as_me:3892: result: $AR" >&5
3893 echo "${ECHO_T}$AR" >&6
3895 echo "$as_me:3895: result: no" >&5
3896 echo "${ECHO_T}no" >&6
3900 if test -z "$ac_cv_prog_AR"; then
3902 # Extract the first word of "ar", so it can be a program name with args.
3903 set dummy ar; ac_word=$2
3904 echo "$as_me:3904: checking for $ac_word" >&5
3905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3906 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3909 if test -n "$ac_ct_AR"; then
3910 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3912 ac_save_IFS=$IFS; IFS=$ac_path_separator
3914 for ac_dir in $ac_dummy; do
3916 test -z "$ac_dir" && ac_dir=.
3917 $as_executable_p "$ac_dir/$ac_word" || continue
3918 ac_cv_prog_ac_ct_AR="ar"
3919 echo "$as_me:3919: found $ac_dir/$ac_word" >&5
3923 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3926 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3927 if test -n "$ac_ct_AR"; then
3928 echo "$as_me:3928: result: $ac_ct_AR" >&5
3929 echo "${ECHO_T}$ac_ct_AR" >&6
3931 echo "$as_me:3931: result: no" >&5
3932 echo "${ECHO_T}no" >&6
3940 if test -n "$ac_tool_prefix"; then
3941 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
3942 set dummy ${ac_tool_prefix}nm; ac_word=$2
3943 echo "$as_me:3943: checking for $ac_word" >&5
3944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3945 if test "${ac_cv_prog_NM+set}" = set; then
3946 echo $ECHO_N "(cached) $ECHO_C" >&6
3948 if test -n "$NM"; then
3949 ac_cv_prog_NM="$NM" # Let the user override the test.
3951 ac_save_IFS=$IFS; IFS=$ac_path_separator
3953 for ac_dir in $ac_dummy; do
3955 test -z "$ac_dir" && ac_dir=.
3956 $as_executable_p "$ac_dir/$ac_word" || continue
3957 ac_cv_prog_NM="${ac_tool_prefix}nm"
3958 echo "$as_me:3958: found $ac_dir/$ac_word" >&5
3965 if test -n "$NM"; then
3966 echo "$as_me:3966: result: $NM" >&5
3967 echo "${ECHO_T}$NM" >&6
3969 echo "$as_me:3969: result: no" >&5
3970 echo "${ECHO_T}no" >&6
3974 if test -z "$ac_cv_prog_NM"; then
3976 # Extract the first word of "nm", so it can be a program name with args.
3977 set dummy nm; ac_word=$2
3978 echo "$as_me:3978: checking for $ac_word" >&5
3979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3980 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3983 if test -n "$ac_ct_NM"; then
3984 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
3986 ac_save_IFS=$IFS; IFS=$ac_path_separator
3988 for ac_dir in $ac_dummy; do
3990 test -z "$ac_dir" && ac_dir=.
3991 $as_executable_p "$ac_dir/$ac_word" || continue
3992 ac_cv_prog_ac_ct_NM="nm"
3993 echo "$as_me:3993: found $ac_dir/$ac_word" >&5
3997 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
4000 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4001 if test -n "$ac_ct_NM"; then
4002 echo "$as_me:4002: result: $ac_ct_NM" >&5
4003 echo "${ECHO_T}$ac_ct_NM" >&6
4005 echo "$as_me:4005: result: no" >&5
4006 echo "${ECHO_T}no" >&6
4014 if test -n "$ac_tool_prefix"; then
4015 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4016 set dummy ${ac_tool_prefix}ar; ac_word=$2
4017 echo "$as_me:4017: checking for $ac_word" >&5
4018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4019 if test "${ac_cv_prog_AR+set}" = set; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4022 if test -n "$AR"; then
4023 ac_cv_prog_AR="$AR" # Let the user override the test.
4025 ac_save_IFS=$IFS; IFS=$ac_path_separator
4027 for ac_dir in $ac_dummy; do
4029 test -z "$ac_dir" && ac_dir=.
4030 $as_executable_p "$ac_dir/$ac_word" || continue
4031 ac_cv_prog_AR="${ac_tool_prefix}ar"
4032 echo "$as_me:4032: found $ac_dir/$ac_word" >&5
4039 if test -n "$AR"; then
4040 echo "$as_me:4040: result: $AR" >&5
4041 echo "${ECHO_T}$AR" >&6
4043 echo "$as_me:4043: result: no" >&5
4044 echo "${ECHO_T}no" >&6
4048 if test -z "$ac_cv_prog_AR"; then
4050 # Extract the first word of "ar", so it can be a program name with args.
4051 set dummy ar; ac_word=$2
4052 echo "$as_me:4052: checking for $ac_word" >&5
4053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4054 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4055 echo $ECHO_N "(cached) $ECHO_C" >&6
4057 if test -n "$ac_ct_AR"; then
4058 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4060 ac_save_IFS=$IFS; IFS=$ac_path_separator
4062 for ac_dir in $ac_dummy; do
4064 test -z "$ac_dir" && ac_dir=.
4065 $as_executable_p "$ac_dir/$ac_word" || continue
4066 ac_cv_prog_ac_ct_AR="ar"
4067 echo "$as_me:4067: found $ac_dir/$ac_word" >&5
4071 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4074 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4075 if test -n "$ac_ct_AR"; then
4076 echo "$as_me:4076: result: $ac_ct_AR" >&5
4077 echo "${ECHO_T}$ac_ct_AR" >&6
4079 echo "$as_me:4079: result: no" >&5
4080 echo "${ECHO_T}no" >&6
4088 echo "$as_me:4088: checking for options to update archives" >&5
4089 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4090 if test "${cf_cv_ar_flags+set}" = set; then
4091 echo $ECHO_N "(cached) $ECHO_C" >&6
4094 cf_cv_ar_flags=unknown
4095 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
4098 # check if $ARFLAGS already contains this choice
4099 if test "x$ARFLAGS" != "x" ; then
4100 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4101 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4107 rm -f conftest.$ac_cv_objext
4110 cat >conftest.$ac_ext <<EOF
4111 #line 4111 "configure"
4112 int testdata[3] = { 123, 456, 789 };
4114 if { (eval echo "$as_me:4114: \"$ac_compile\"") >&5
4115 (eval $ac_compile) 2>&5
4117 echo "$as_me:4117: \$? = $ac_status" >&5
4118 (exit $ac_status); } ; then
4119 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4120 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4121 if test -f conftest.a ; then
4122 cf_cv_ar_flags=$cf_ar_flags
4126 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4128 echo "${as_me:-configure}:4128: testing cannot compile test-program ..." 1>&5
4133 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4136 echo "$as_me:4136: result: $cf_cv_ar_flags" >&5
4137 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4139 if test -n "$ARFLAGS" ; then
4140 if test -n "$cf_cv_ar_flags" ; then
4141 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4144 ARFLAGS=$cf_cv_ar_flags
4147 echo "$as_me:4147: checking if you have specified an install-prefix" >&5
4148 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4150 # Check whether --with-install-prefix or --without-install-prefix was given.
4151 if test "${with_install_prefix+set}" = set; then
4152 withval="$with_install_prefix"
4153 case "x$withval" in #(vi
4156 *) DESTDIR="$withval"
4160 echo "$as_me:4160: result: $DESTDIR" >&5
4161 echo "${ECHO_T}$DESTDIR" >&6
4163 ###############################################################################
4165 # If we're cross-compiling, allow the user to override the tools and their
4166 # options. The configure script is oriented toward identifying the host
4167 # compiler, etc., but we need a build compiler to generate parts of the source.
4169 if test "$cross_compiling" = yes ; then
4171 # defaults that we might want to override
4172 : ${BUILD_CFLAGS:=''}
4173 : ${BUILD_CPPFLAGS:=''}
4174 : ${BUILD_LDFLAGS:=''}
4176 : ${BUILD_EXEEXT:='$x'}
4177 : ${BUILD_OBJEXT:='o'}
4179 # Check whether --with-build-cc or --without-build-cc was given.
4180 if test "${with_build_cc+set}" = set; then
4181 withval="$with_build_cc"
4184 for ac_prog in gcc cc cl
4186 # Extract the first word of "$ac_prog", so it can be a program name with args.
4187 set dummy $ac_prog; ac_word=$2
4188 echo "$as_me:4188: checking for $ac_word" >&5
4189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4190 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4191 echo $ECHO_N "(cached) $ECHO_C" >&6
4193 if test -n "$BUILD_CC"; then
4194 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4196 ac_save_IFS=$IFS; IFS=$ac_path_separator
4198 for ac_dir in $ac_dummy; do
4200 test -z "$ac_dir" && ac_dir=.
4201 $as_executable_p "$ac_dir/$ac_word" || continue
4202 ac_cv_prog_BUILD_CC="$ac_prog"
4203 echo "$as_me:4203: found $ac_dir/$ac_word" >&5
4209 BUILD_CC=$ac_cv_prog_BUILD_CC
4210 if test -n "$BUILD_CC"; then
4211 echo "$as_me:4211: result: $BUILD_CC" >&5
4212 echo "${ECHO_T}$BUILD_CC" >&6
4214 echo "$as_me:4214: result: no" >&5
4215 echo "${ECHO_T}no" >&6
4218 test -n "$BUILD_CC" && break
4222 echo "$as_me:4222: checking for native build C compiler" >&5
4223 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4224 echo "$as_me:4224: result: $BUILD_CC" >&5
4225 echo "${ECHO_T}$BUILD_CC" >&6
4227 echo "$as_me:4227: checking for native build C preprocessor" >&5
4228 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4230 # Check whether --with-build-cpp or --without-build-cpp was given.
4231 if test "${with_build_cpp+set}" = set; then
4232 withval="$with_build_cpp"
4233 BUILD_CPP="$withval"
4235 BUILD_CPP='${BUILD_CC} -E'
4237 echo "$as_me:4237: result: $BUILD_CPP" >&5
4238 echo "${ECHO_T}$BUILD_CPP" >&6
4240 echo "$as_me:4240: checking for native build C flags" >&5
4241 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4243 # Check whether --with-build-cflags or --without-build-cflags was given.
4244 if test "${with_build_cflags+set}" = set; then
4245 withval="$with_build_cflags"
4246 BUILD_CFLAGS="$withval"
4248 echo "$as_me:4248: result: $BUILD_CFLAGS" >&5
4249 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4251 echo "$as_me:4251: checking for native build C preprocessor-flags" >&5
4252 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4254 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4255 if test "${with_build_cppflags+set}" = set; then
4256 withval="$with_build_cppflags"
4257 BUILD_CPPFLAGS="$withval"
4259 echo "$as_me:4259: result: $BUILD_CPPFLAGS" >&5
4260 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4262 echo "$as_me:4262: checking for native build linker-flags" >&5
4263 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4265 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4266 if test "${with_build_ldflags+set}" = set; then
4267 withval="$with_build_ldflags"
4268 BUILD_LDFLAGS="$withval"
4270 echo "$as_me:4270: result: $BUILD_LDFLAGS" >&5
4271 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4273 echo "$as_me:4273: checking for native build linker-libraries" >&5
4274 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4276 # Check whether --with-build-libs or --without-build-libs was given.
4277 if test "${with_build_libs+set}" = set; then
4278 withval="$with_build_libs"
4279 BUILD_LIBS="$withval"
4281 echo "$as_me:4281: result: $BUILD_LIBS" >&5
4282 echo "${ECHO_T}$BUILD_LIBS" >&6
4284 # this assumes we're on Unix.
4288 : ${BUILD_CC:='${CC}'}
4290 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4291 { { echo "$as_me:4291: error: Cross-build requires two compilers.
4292 Use --with-build-cc to specify the native compiler." >&5
4293 echo "$as_me: error: Cross-build requires two compilers.
4294 Use --with-build-cc to specify the native compiler." >&2;}
4295 { (exit 1); exit 1; }; }
4299 : ${BUILD_CC:='${CC}'}
4300 : ${BUILD_CPP:='${CPP}'}
4301 : ${BUILD_CFLAGS:='${CFLAGS}'}
4302 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4303 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4304 : ${BUILD_LIBS:='${LIBS}'}
4305 : ${BUILD_EXEEXT:='$x'}
4306 : ${BUILD_OBJEXT:='o'}
4309 ###############################################################################
4311 ### Options to allow the user to specify the set of libraries which are used.
4312 ### Use "--without-normal --with-shared" to allow the default model to be
4313 ### shared, for example.
4316 echo "$as_me:4316: checking if libtool -version-number should be used" >&5
4317 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
4319 # Check whether --enable-libtool-version or --disable-libtool-version was given.
4320 if test "${enable_libtool_version+set}" = set; then
4321 enableval="$enable_libtool_version"
4322 test "$enableval" != no && enableval=yes
4323 if test "$enableval" != "yes" ; then
4324 cf_libtool_version=no
4326 cf_libtool_version=yes
4330 cf_libtool_version=yes
4333 echo "$as_me:4333: result: $cf_libtool_version" >&5
4334 echo "${ECHO_T}$cf_libtool_version" >&6
4336 if test "$cf_libtool_version" = yes ; then
4337 LIBTOOL_VERSION="-version-number"
4339 LIBTOOL_VERSION="-version-info"
4344 # common library maintenance symbols that are convenient for libtool scripts:
4345 LIB_CREATE='${AR} -cr'
4346 LIB_OBJECT='${OBJECTS}'
4350 # symbols used to prop libtool up to enable it to determine what it should be
4358 echo "$as_me:4358: checking if you want to build libraries with libtool" >&5
4359 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4361 # Check whether --with-libtool or --without-libtool was given.
4362 if test "${with_libtool+set}" = set; then
4363 withval="$with_libtool"
4364 with_libtool=$withval
4368 echo "$as_me:4368: result: $with_libtool" >&5
4369 echo "${ECHO_T}$with_libtool" >&6
4370 if test "$with_libtool" != "no"; then
4372 if test "$with_libtool" != "yes" ; then
4374 if test "x$prefix" != xNONE; then
4375 cf_path_syntax="$prefix"
4377 cf_path_syntax="$ac_default_prefix"
4380 case ".$with_libtool" in #(vi
4381 .\$\(*\)*|.\'*\'*) #(vi
4385 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4387 .\${*prefix}*|.\${*dir}*) #(vi
4388 eval with_libtool="$with_libtool"
4389 case ".$with_libtool" in #(vi
4391 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4396 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4399 { { echo "$as_me:4399: error: expected a pathname, not \"$with_libtool\"" >&5
4400 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4401 { (exit 1); exit 1; }; }
4405 LIBTOOL=$with_libtool
4407 if test -n "$ac_tool_prefix"; then
4408 for ac_prog in libtool glibtool
4410 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4411 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4412 echo "$as_me:4412: checking for $ac_word" >&5
4413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4414 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
4415 echo $ECHO_N "(cached) $ECHO_C" >&6
4417 if test -n "$LIBTOOL"; then
4418 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
4420 ac_save_IFS=$IFS; IFS=$ac_path_separator
4422 for ac_dir in $ac_dummy; do
4424 test -z "$ac_dir" && ac_dir=.
4425 $as_executable_p "$ac_dir/$ac_word" || continue
4426 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
4427 echo "$as_me:4427: found $ac_dir/$ac_word" >&5
4433 LIBTOOL=$ac_cv_prog_LIBTOOL
4434 if test -n "$LIBTOOL"; then
4435 echo "$as_me:4435: result: $LIBTOOL" >&5
4436 echo "${ECHO_T}$LIBTOOL" >&6
4438 echo "$as_me:4438: result: no" >&5
4439 echo "${ECHO_T}no" >&6
4442 test -n "$LIBTOOL" && break
4445 if test -z "$LIBTOOL"; then
4446 ac_ct_LIBTOOL=$LIBTOOL
4447 for ac_prog in libtool glibtool
4449 # Extract the first word of "$ac_prog", so it can be a program name with args.
4450 set dummy $ac_prog; ac_word=$2
4451 echo "$as_me:4451: checking for $ac_word" >&5
4452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4453 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
4454 echo $ECHO_N "(cached) $ECHO_C" >&6
4456 if test -n "$ac_ct_LIBTOOL"; then
4457 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
4459 ac_save_IFS=$IFS; IFS=$ac_path_separator
4461 for ac_dir in $ac_dummy; do
4463 test -z "$ac_dir" && ac_dir=.
4464 $as_executable_p "$ac_dir/$ac_word" || continue
4465 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
4466 echo "$as_me:4466: found $ac_dir/$ac_word" >&5
4472 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
4473 if test -n "$ac_ct_LIBTOOL"; then
4474 echo "$as_me:4474: result: $ac_ct_LIBTOOL" >&5
4475 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
4477 echo "$as_me:4477: result: no" >&5
4478 echo "${ECHO_T}no" >&6
4481 test -n "$ac_ct_LIBTOOL" && break
4483 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
4485 LIBTOOL=$ac_ct_LIBTOOL
4488 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4490 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.].*//'`
4492 cf_cv_libtool_version=
4494 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
4496 if test -z "$cf_cv_libtool_version" && test "$LIBTOOL" = libtool
4499 unset ac_cv_prog_ac_ct_LIBTOOL
4503 if test -n "$ac_tool_prefix"; then
4504 for ac_prog in glibtool
4506 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4507 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4508 echo "$as_me:4508: checking for $ac_word" >&5
4509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4510 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4513 if test -n "$LIBTOOL"; then
4514 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
4516 ac_save_IFS=$IFS; IFS=$ac_path_separator
4518 for ac_dir in $ac_dummy; do
4520 test -z "$ac_dir" && ac_dir=.
4521 $as_executable_p "$ac_dir/$ac_word" || continue
4522 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
4523 echo "$as_me:4523: found $ac_dir/$ac_word" >&5
4529 LIBTOOL=$ac_cv_prog_LIBTOOL
4530 if test -n "$LIBTOOL"; then
4531 echo "$as_me:4531: result: $LIBTOOL" >&5
4532 echo "${ECHO_T}$LIBTOOL" >&6
4534 echo "$as_me:4534: result: no" >&5
4535 echo "${ECHO_T}no" >&6
4538 test -n "$LIBTOOL" && break
4541 if test -z "$LIBTOOL"; then
4542 ac_ct_LIBTOOL=$LIBTOOL
4543 for ac_prog in glibtool
4545 # Extract the first word of "$ac_prog", so it can be a program name with args.
4546 set dummy $ac_prog; ac_word=$2
4547 echo "$as_me:4547: checking for $ac_word" >&5
4548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4549 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
4550 echo $ECHO_N "(cached) $ECHO_C" >&6
4552 if test -n "$ac_ct_LIBTOOL"; then
4553 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
4555 ac_save_IFS=$IFS; IFS=$ac_path_separator
4557 for ac_dir in $ac_dummy; do
4559 test -z "$ac_dir" && ac_dir=.
4560 $as_executable_p "$ac_dir/$ac_word" || continue
4561 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
4562 echo "$as_me:4562: found $ac_dir/$ac_word" >&5
4568 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
4569 if test -n "$ac_ct_LIBTOOL"; then
4570 echo "$as_me:4570: result: $ac_ct_LIBTOOL" >&5
4571 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
4573 echo "$as_me:4573: result: no" >&5
4574 echo "${ECHO_T}no" >&6
4577 test -n "$ac_ct_LIBTOOL" && break
4579 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
4581 LIBTOOL=$ac_ct_LIBTOOL
4584 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4586 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.].*//'`
4588 cf_cv_libtool_version=
4590 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
4594 if test -z "$LIBTOOL" ; then
4595 { { echo "$as_me:4595: error: Cannot find libtool" >&5
4596 echo "$as_me: error: Cannot find libtool" >&2;}
4597 { (exit 1); exit 1; }; }
4599 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} ${LIBTOOL_VERSION} `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
4600 LIB_OBJECT='${OBJECTS:.o=.lo}'
4602 LIB_CLEAN='${LIBTOOL} --mode=clean'
4603 LIB_COMPILE='${LIBTOOL} --mode=compile'
4604 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
4605 LIB_INSTALL='${LIBTOOL} --mode=install'
4606 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4609 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4611 echo "$as_me:4611: checking version of $LIBTOOL" >&5
4612 echo $ECHO_N "checking version of $LIBTOOL... $ECHO_C" >&6
4614 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4616 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.].*//'`
4618 cf_cv_libtool_version=
4620 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
4622 echo "$as_me:4622: result: $cf_cv_libtool_version" >&5
4623 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4624 if test -z "$cf_cv_libtool_version" ; then
4625 { { echo "$as_me:4625: error: This is not GNU libtool" >&5
4626 echo "$as_me: error: This is not GNU libtool" >&2;}
4627 { (exit 1); exit 1; }; }
4630 { { echo "$as_me:4630: error: GNU libtool has not been found" >&5
4631 echo "$as_me: error: GNU libtool has not been found" >&2;}
4632 { (exit 1); exit 1; }; }
4635 # special hack to add -no-undefined (which libtool should do for itself)
4637 case "$cf_cv_system_name" in #(vi
4638 cygwin*|mingw32*|uwin*|aix[4-7]) #(vi
4639 LT_UNDEF=-no-undefined
4643 # special hack to add --tag option for C++ compiler
4644 case $cf_cv_libtool_version in #(vi
4645 1.[5-9]*|[2-9].[0-9.a-z]*) #(vi
4646 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4647 LIBTOOL="$LIBTOOL --tag=CC"
4650 LIBTOOL_CXX="$LIBTOOL"
4658 test -z "$LIBTOOL" && ECHO_LT=
4660 if test "$with_libtool" != "no" ; then
4662 cf_list_models="$cf_list_models libtool"
4666 echo "$as_me:4666: checking if you want to build shared libraries" >&5
4667 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
4669 # Check whether --with-shared or --without-shared was given.
4670 if test "${with_shared+set}" = set; then
4671 withval="$with_shared"
4672 with_shared=$withval
4676 echo "$as_me:4676: result: $with_shared" >&5
4677 echo "${ECHO_T}$with_shared" >&6
4678 test "x$with_shared" = "xyes" && cf_list_models="$cf_list_models shared"
4680 echo "$as_me:4680: checking if you want to build static libraries" >&5
4681 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
4683 # Check whether --with-normal or --without-normal was given.
4684 if test "${with_normal+set}" = set; then
4685 withval="$with_normal"
4686 with_normal=$withval
4690 echo "$as_me:4690: result: $with_normal" >&5
4691 echo "${ECHO_T}$with_normal" >&6
4692 test "x$with_normal" = "xyes" && cf_list_models="$cf_list_models normal"
4694 echo "$as_me:4694: checking if you want to build debug libraries" >&5
4695 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
4697 # Check whether --with-debug or --without-debug was given.
4698 if test "${with_debug+set}" = set; then
4699 withval="$with_debug"
4704 echo "$as_me:4704: result: $with_debug" >&5
4705 echo "${ECHO_T}$with_debug" >&6
4706 test "x$with_debug" = "xyes" && cf_list_models="$cf_list_models debug"
4708 echo "$as_me:4708: checking if you want to build profiling libraries" >&5
4709 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
4711 # Check whether --with-profile or --without-profile was given.
4712 if test "${with_profile+set}" = set; then
4713 withval="$with_profile"
4714 with_profile=$withval
4718 echo "$as_me:4718: result: $with_profile" >&5
4719 echo "${ECHO_T}$with_profile" >&6
4720 test "x$with_profile" = "xyes" && cf_list_models="$cf_list_models profile"
4724 if test "X$cf_with_cxx_binding" != Xno; then
4725 if test "x$with_shared" = "xyes"; then
4726 echo "$as_me:4726: checking if you want to build C++ shared libraries" >&5
4727 echo $ECHO_N "checking if you want to build C++ shared libraries... $ECHO_C" >&6
4729 # Check whether --with-cxx-shared or --without-cxx-shared was given.
4730 if test "${with_cxx_shared+set}" = set; then
4731 withval="$with_cxx_shared"
4732 with_shared_cxx=$withval
4736 echo "$as_me:4736: result: $with_shared_cxx" >&5
4737 echo "${ECHO_T}$with_shared_cxx" >&6
4741 ###############################################################################
4743 echo "$as_me:4743: checking for specified models" >&5
4744 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
4745 test -z "$cf_list_models" && cf_list_models=normal
4746 test "$with_libtool" != "no" && cf_list_models=libtool
4747 echo "$as_me:4747: result: $cf_list_models" >&5
4748 echo "${ECHO_T}$cf_list_models" >&6
4750 ### Use the first model as the default, and save its suffix for use in building
4751 ### up test-applications.
4752 echo "$as_me:4752: checking for default model" >&5
4753 echo $ECHO_N "checking for default model... $ECHO_C" >&6
4754 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
4755 echo "$as_me:4755: result: $DFT_LWR_MODEL" >&5
4756 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
4758 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4769 echo "$as_me:4769: checking if you want to have a library-prefix" >&5
4770 echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
4772 # Check whether --with-lib-prefix or --without-lib-prefix was given.
4773 if test "${with_lib_prefix+set}" = set; then
4774 withval="$with_lib_prefix"
4775 with_lib_prefix=$withval
4777 with_lib_prefix=auto
4779 echo "$as_me:4779: result: $with_lib_prefix" >&5
4780 echo "${ECHO_T}$with_lib_prefix" >&6
4782 if test $with_lib_prefix = auto
4785 case $cf_cv_system_name in #(vi
4792 cf_prefix=$LIB_PREFIX
4794 elif test $with_lib_prefix = no
4798 LIB_PREFIX=$with_lib_prefix
4803 echo "$as_me:4803: checking for PATH separator" >&5
4804 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
4805 case $cf_cv_system_name in
4806 os2*) PATH_SEPARATOR=';' ;;
4807 *) ${PATH_SEPARATOR:=':'} ;;
4810 echo "$as_me:4810: result: $PATH_SEPARATOR" >&5
4811 echo "${ECHO_T}$PATH_SEPARATOR" >&6
4813 ###############################################################################
4815 echo "$as_me:4815: checking if you want to build a separate terminfo library" >&5
4816 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
4818 # Check whether --with-termlib or --without-termlib was given.
4819 if test "${with_termlib+set}" = set; then
4820 withval="$with_termlib"
4821 with_termlib=$withval
4825 echo "$as_me:4825: result: $with_termlib" >&5
4826 echo "${ECHO_T}$with_termlib" >&6
4828 echo "$as_me:4828: checking if you want to build a separate tic library" >&5
4829 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
4831 # Check whether --with-ticlib or --without-ticlib was given.
4832 if test "${with_ticlib+set}" = set; then
4833 withval="$with_ticlib"
4834 with_ticlib=$withval
4838 echo "$as_me:4838: result: $with_ticlib" >&5
4839 echo "${ECHO_T}$with_ticlib" >&6
4841 ### Checks for special libraries, must be done up-front.
4844 echo "$as_me:4844: checking if you want to link with the GPM mouse library" >&5
4845 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
4847 # Check whether --with-gpm or --without-gpm was given.
4848 if test "${with_gpm+set}" = set; then
4854 echo "$as_me:4854: result: $with_gpm" >&5
4855 echo "${ECHO_T}$with_gpm" >&6
4857 if test "$with_gpm" != no ; then
4858 echo "$as_me:4858: checking for gpm.h" >&5
4859 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
4860 if test "${ac_cv_header_gpm_h+set}" = set; then
4861 echo $ECHO_N "(cached) $ECHO_C" >&6
4863 cat >conftest.$ac_ext <<_ACEOF
4864 #line 4864 "configure"
4865 #include "confdefs.h"
4868 if { (eval echo "$as_me:4868: \"$ac_cpp conftest.$ac_ext\"") >&5
4869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4871 egrep -v '^ *\+' conftest.er1 >conftest.err
4873 cat conftest.err >&5
4874 echo "$as_me:4874: \$? = $ac_status" >&5
4875 (exit $ac_status); } >/dev/null; then
4876 if test -s conftest.err; then
4877 ac_cpp_err=$ac_c_preproc_warn_flag
4884 if test -z "$ac_cpp_err"; then
4885 ac_cv_header_gpm_h=yes
4887 echo "$as_me: failed program was:" >&5
4888 cat conftest.$ac_ext >&5
4889 ac_cv_header_gpm_h=no
4891 rm -f conftest.err conftest.$ac_ext
4893 echo "$as_me:4893: result: $ac_cv_header_gpm_h" >&5
4894 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
4895 if test $ac_cv_header_gpm_h = yes; then
4897 cat >>confdefs.h <<\EOF
4898 #define HAVE_GPM_H 1
4901 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
4902 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
4904 echo "${as_me:-configure}:4904: testing assuming we really have GPM library ..." 1>&5
4906 cat >>confdefs.h <<\EOF
4907 #define HAVE_LIBGPM 1
4911 echo "$as_me:4911: checking for Gpm_Open in -lgpm" >&5
4912 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
4913 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
4914 echo $ECHO_N "(cached) $ECHO_C" >&6
4916 ac_check_lib_save_LIBS=$LIBS
4918 cat >conftest.$ac_ext <<_ACEOF
4919 #line 4919 "configure"
4920 #include "confdefs.h"
4922 /* Override any gcc2 internal prototype to avoid an error. */
4926 /* We use char because int might match the return type of a gcc2
4927 builtin and then its argument prototype would still apply. */
4937 rm -f conftest.$ac_objext conftest$ac_exeext
4938 if { (eval echo "$as_me:4938: \"$ac_link\"") >&5
4939 (eval $ac_link) 2>&5
4941 echo "$as_me:4941: \$? = $ac_status" >&5
4942 (exit $ac_status); } &&
4943 { ac_try='test -s conftest$ac_exeext'
4944 { (eval echo "$as_me:4944: \"$ac_try\"") >&5
4947 echo "$as_me:4947: \$? = $ac_status" >&5
4948 (exit $ac_status); }; }; then
4949 ac_cv_lib_gpm_Gpm_Open=yes
4951 echo "$as_me: failed program was:" >&5
4952 cat conftest.$ac_ext >&5
4953 ac_cv_lib_gpm_Gpm_Open=no
4955 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4956 LIBS=$ac_check_lib_save_LIBS
4958 echo "$as_me:4958: result: $ac_cv_lib_gpm_Gpm_Open" >&5
4959 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
4960 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
4964 { { echo "$as_me:4964: error: Cannot link with GPM library" >&5
4965 echo "$as_me: error: Cannot link with GPM library" >&2;}
4966 { (exit 1); exit 1; }; }
4974 test "$with_gpm" != maybe && { echo "$as_me:4974: WARNING: Cannot find GPM header" >&5
4975 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
4982 if test "$with_gpm" != no ; then
4983 echo "$as_me:4983: checking if you want to load GPM dynamically" >&5
4984 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
4986 # Check whether --with-dlsym or --without-dlsym was given.
4987 if test "${with_dlsym+set}" = set; then
4988 withval="$with_dlsym"
4993 echo "$as_me:4993: result: $with_dlsym" >&5
4994 echo "${ECHO_T}$with_dlsym" >&6
4995 if test "x$with_dlsym" = xyes ; then
4998 echo "$as_me:4998: checking for dlsym" >&5
4999 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
5000 if test "${ac_cv_func_dlsym+set}" = set; then
5001 echo $ECHO_N "(cached) $ECHO_C" >&6
5003 cat >conftest.$ac_ext <<_ACEOF
5004 #line 5004 "configure"
5005 #include "confdefs.h"
5006 /* System header to define __stub macros and hopefully few prototypes,
5007 which can conflict with char dlsym (); below. */
5009 /* Override any gcc2 internal prototype to avoid an error. */
5013 /* We use char because int might match the return type of a gcc2
5014 builtin and then its argument prototype would still apply. */
5021 /* The GNU C library defines this for functions which it implements
5022 to always fail with ENOSYS. Some functions are actually named
5023 something starting with __ and the normal name is an alias. */
5024 #if defined (__stub_dlsym) || defined (__stub___dlsym)
5027 f = dlsym; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
5034 rm -f conftest.$ac_objext conftest$ac_exeext
5035 if { (eval echo "$as_me:5035: \"$ac_link\"") >&5
5036 (eval $ac_link) 2>&5
5038 echo "$as_me:5038: \$? = $ac_status" >&5
5039 (exit $ac_status); } &&
5040 { ac_try='test -s conftest$ac_exeext'
5041 { (eval echo "$as_me:5041: \"$ac_try\"") >&5
5044 echo "$as_me:5044: \$? = $ac_status" >&5
5045 (exit $ac_status); }; }; then
5046 ac_cv_func_dlsym=yes
5048 echo "$as_me: failed program was:" >&5
5049 cat conftest.$ac_ext >&5
5052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5054 echo "$as_me:5054: result: $ac_cv_func_dlsym" >&5
5055 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
5056 if test $ac_cv_func_dlsym = yes; then
5061 echo "$as_me:5061: checking for dlsym in -ldl" >&5
5062 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
5063 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5066 ac_check_lib_save_LIBS=$LIBS
5068 cat >conftest.$ac_ext <<_ACEOF
5069 #line 5069 "configure"
5070 #include "confdefs.h"
5072 /* Override any gcc2 internal prototype to avoid an error. */
5076 /* We use char because int might match the return type of a gcc2
5077 builtin and then its argument prototype would still apply. */
5087 rm -f conftest.$ac_objext conftest$ac_exeext
5088 if { (eval echo "$as_me:5088: \"$ac_link\"") >&5
5089 (eval $ac_link) 2>&5
5091 echo "$as_me:5091: \$? = $ac_status" >&5
5092 (exit $ac_status); } &&
5093 { ac_try='test -s conftest$ac_exeext'
5094 { (eval echo "$as_me:5094: \"$ac_try\"") >&5
5097 echo "$as_me:5097: \$? = $ac_status" >&5
5098 (exit $ac_status); }; }; then
5099 ac_cv_lib_dl_dlsym=yes
5101 echo "$as_me: failed program was:" >&5
5102 cat conftest.$ac_ext >&5
5103 ac_cv_lib_dl_dlsym=no
5105 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5106 LIBS=$ac_check_lib_save_LIBS
5108 echo "$as_me:5108: result: $ac_cv_lib_dl_dlsym" >&5
5109 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
5110 if test $ac_cv_lib_dl_dlsym = yes; then
5118 if test "$cf_have_dlsym" = yes ; then
5119 test "$cf_have_libdl" = yes && LIBS="-ldl $LIBS"
5121 echo "$as_me:5121: checking whether able to link to dl*() functions" >&5
5122 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
5123 cat >conftest.$ac_ext <<_ACEOF
5124 #line 5124 "configure"
5125 #include "confdefs.h"
5132 if ((obj = dlopen("filename", 0)) != 0) {
5133 if (dlsym(obj, "symbolname") == 0) {
5141 rm -f conftest.$ac_objext conftest$ac_exeext
5142 if { (eval echo "$as_me:5142: \"$ac_link\"") >&5
5143 (eval $ac_link) 2>&5
5145 echo "$as_me:5145: \$? = $ac_status" >&5
5146 (exit $ac_status); } &&
5147 { ac_try='test -s conftest$ac_exeext'
5148 { (eval echo "$as_me:5148: \"$ac_try\"") >&5
5151 echo "$as_me:5151: \$? = $ac_status" >&5
5152 (exit $ac_status); }; }; then
5154 cat >>confdefs.h <<\EOF
5155 #define HAVE_LIBDL 1
5159 echo "$as_me: failed program was:" >&5
5160 cat conftest.$ac_ext >&5
5162 { { echo "$as_me:5162: error: Cannot link test program for libdl" >&5
5163 echo "$as_me: error: Cannot link test program for libdl" >&2;}
5164 { (exit 1); exit 1; }; }
5166 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5167 echo "$as_me:5167: result: ok" >&5
5168 echo "${ECHO_T}ok" >&6
5170 { { echo "$as_me:5170: error: Cannot find dlsym function" >&5
5171 echo "$as_me: error: Cannot find dlsym function" >&2;}
5172 { (exit 1); exit 1; }; }
5175 if test "x$with_gpm" != xyes ; then
5176 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
5178 echo "${as_me:-configure}:5178: testing assuming soname for gpm is $with_gpm ..." 1>&5
5180 cf_cv_gpm_soname="$with_gpm"
5183 echo "$as_me:5183: checking for soname of gpm library" >&5
5184 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
5185 if test "${cf_cv_gpm_soname+set}" = set; then
5186 echo $ECHO_N "(cached) $ECHO_C" >&6
5189 cf_cv_gpm_soname=unknown
5190 if test "$cross_compiling" != yes ; then
5191 cat >conftest.$ac_ext <<CF_EOF
5195 if (Gpm_Open(0,0)) Gpm_Close();
5196 ${cf_cv_main_return:-return}(0);
5199 cf_save_LIBS="$LIBS"
5201 if { (eval echo "$as_me:5201: \"$ac_compile\"") >&5
5202 (eval $ac_compile) 2>&5
5204 echo "$as_me:5204: \$? = $ac_status" >&5
5205 (exit $ac_status); } ; then
5206 if { (eval echo "$as_me:5206: \"$ac_link\"") >&5
5207 (eval $ac_link) 2>&5
5209 echo "$as_me:5209: \$? = $ac_status" >&5
5210 (exit $ac_status); } ; then
5211 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
5212 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
5216 LIBS="$cf_save_LIBS"
5220 echo "$as_me:5220: result: $cf_cv_gpm_soname" >&5
5221 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
5224 test "$cf_cv_gpm_soname" != "unknown" &&
5225 cat >>confdefs.h <<EOF
5226 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
5229 SHLIB_LIST="-ldl $SHLIB_LIST"
5231 SHLIB_LIST="-lgpm $SHLIB_LIST"
5232 TEST_LIBS="-lgpm $TEST_LIBS"
5235 cat >>confdefs.h <<\EOF
5236 #define HAVE_LIBGPM 1
5239 echo "$as_me:5239: checking for Gpm_Wgetch in -lgpm" >&5
5240 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
5241 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
5244 ac_check_lib_save_LIBS=$LIBS
5246 cat >conftest.$ac_ext <<_ACEOF
5247 #line 5247 "configure"
5248 #include "confdefs.h"
5250 /* Override any gcc2 internal prototype to avoid an error. */
5254 /* We use char because int might match the return type of a gcc2
5255 builtin and then its argument prototype would still apply. */
5265 rm -f conftest.$ac_objext conftest$ac_exeext
5266 if { (eval echo "$as_me:5266: \"$ac_link\"") >&5
5267 (eval $ac_link) 2>&5
5269 echo "$as_me:5269: \$? = $ac_status" >&5
5270 (exit $ac_status); } &&
5271 { ac_try='test -s conftest$ac_exeext'
5272 { (eval echo "$as_me:5272: \"$ac_try\"") >&5
5275 echo "$as_me:5275: \$? = $ac_status" >&5
5276 (exit $ac_status); }; }; then
5277 ac_cv_lib_gpm_Gpm_Wgetch=yes
5279 echo "$as_me: failed program was:" >&5
5280 cat conftest.$ac_ext >&5
5281 ac_cv_lib_gpm_Gpm_Wgetch=no
5283 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5284 LIBS=$ac_check_lib_save_LIBS
5286 echo "$as_me:5286: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
5287 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
5288 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
5290 echo "$as_me:5290: checking if GPM is weakly bound to curses library" >&5
5291 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
5292 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
5293 echo $ECHO_N "(cached) $ECHO_C" >&6
5296 cf_cv_check_gpm_wgetch=unknown
5297 if test "$cross_compiling" != yes ; then
5299 cat >conftest.$ac_ext <<CF_EOF
5304 ${cf_cv_main_return:-return}(0);
5308 cf_save_LIBS="$LIBS"
5309 # This only works if we can look at the symbol table. If a shared
5310 # library is stripped for install, we cannot use that. So we're forced
5311 # to rely on the static library, noting that some packagers may not
5313 LIBS="-static -lgpm -dynamic $LIBS"
5314 if { (eval echo "$as_me:5314: \"$ac_compile\"") >&5
5315 (eval $ac_compile) 2>&5
5317 echo "$as_me:5317: \$? = $ac_status" >&5
5318 (exit $ac_status); } ; then
5319 if { (eval echo "$as_me:5319: \"$ac_link\"") >&5
5320 (eval $ac_link) 2>&5
5322 echo "$as_me:5322: \$? = $ac_status" >&5
5323 (exit $ac_status); } ; then
5324 cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
5325 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
5326 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
5330 LIBS="$cf_save_LIBS"
5334 echo "$as_me:5334: result: $cf_cv_check_gpm_wgetch" >&5
5335 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
5337 if test "$cf_cv_check_gpm_wgetch" != yes ; then
5338 { echo "$as_me:5338: WARNING: GPM library is already linked with curses - read the FAQ" >&5
5339 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
5346 # not everyone has "test -c"
5347 if test -c /dev/sysmouse 2>/dev/null ; then
5348 echo "$as_me:5348: checking if you want to use sysmouse" >&5
5349 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
5351 # Check whether --with-sysmouse or --without-sysmouse was given.
5352 if test "${with_sysmouse+set}" = set; then
5353 withval="$with_sysmouse"
5354 cf_with_sysmouse=$withval
5356 cf_with_sysmouse=maybe
5358 if test "$cf_with_sysmouse" != no ; then
5359 cat >conftest.$ac_ext <<_ACEOF
5360 #line 5360 "configure"
5361 #include "confdefs.h"
5363 #include <osreldate.h>
5364 #if (__FreeBSD_version >= 400017)
5365 #include <sys/consio.h>
5366 #include <sys/fbio.h>
5368 #include <machine/console.h>
5375 struct mouse_info the_mouse;
5376 ioctl(0, CONS_MOUSECTL, &the_mouse);
5382 rm -f conftest.$ac_objext
5383 if { (eval echo "$as_me:5383: \"$ac_compile\"") >&5
5384 (eval $ac_compile) 2>&5
5386 echo "$as_me:5386: \$? = $ac_status" >&5
5387 (exit $ac_status); } &&
5388 { ac_try='test -s conftest.$ac_objext'
5389 { (eval echo "$as_me:5389: \"$ac_try\"") >&5
5392 echo "$as_me:5392: \$? = $ac_status" >&5
5393 (exit $ac_status); }; }; then
5394 cf_with_sysmouse=yes
5396 echo "$as_me: failed program was:" >&5
5397 cat conftest.$ac_ext >&5
5400 rm -f conftest.$ac_objext conftest.$ac_ext
5402 echo "$as_me:5402: result: $cf_with_sysmouse" >&5
5403 echo "${ECHO_T}$cf_with_sysmouse" >&6
5404 test "$cf_with_sysmouse" = yes &&
5405 cat >>confdefs.h <<\EOF
5406 #define USE_SYSMOUSE 1
5411 if test X"$CC_G_OPT" = X"" ; then
5413 test -n "$GCC" && test "x${ac_cv_prog_cc_g}" != xyes && CC_G_OPT=''
5416 if test X"$CXX_G_OPT" = X"" ; then
5418 test -n "$GXX" && test "x${ac_cv_prog_cxx_g}" != xyes && CXX_G_OPT=''
5421 echo "$as_me:5421: checking for default loader flags" >&5
5422 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
5423 case $DFT_LWR_MODEL in
5424 libtool) LD_MODEL='' ;;
5425 normal) LD_MODEL='' ;;
5426 debug) LD_MODEL=$CC_G_OPT ;;
5427 profile) LD_MODEL='-pg';;
5428 shared) LD_MODEL='' ;;
5430 echo "$as_me:5430: result: $LD_MODEL" >&5
5431 echo "${ECHO_T}$LD_MODEL" >&6
5433 case $DFT_LWR_MODEL in
5436 echo "$as_me:5436: checking if rpath option should be used" >&5
5437 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
5439 # Check whether --enable-rpath or --disable-rpath was given.
5440 if test "${enable_rpath+set}" = set; then
5441 enableval="$enable_rpath"
5442 cf_cv_enable_rpath=$enableval
5444 cf_cv_enable_rpath=no
5446 echo "$as_me:5446: result: $cf_cv_enable_rpath" >&5
5447 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
5449 echo "$as_me:5449: checking if shared libraries should be relinked during install" >&5
5450 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
5452 # Check whether --enable-relink or --disable-relink was given.
5453 if test "${enable_relink+set}" = set; then
5454 enableval="$enable_relink"
5455 cf_cv_do_relink=$enableval
5459 echo "$as_me:5459: result: $cf_cv_do_relink" >&5
5460 echo "${ECHO_T}$cf_cv_do_relink" >&6
5465 echo "$as_me:5465: checking for an rpath option" >&5
5466 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
5467 case $cf_cv_system_name in #(vi
5469 if test "$GCC" = yes; then
5470 LD_RPATH_OPT="-Wl,-rpath,"
5472 LD_RPATH_OPT="-rpath "
5475 linux*|gnu*|k*bsd*-gnu) #(vi
5476 LD_RPATH_OPT="-Wl,-rpath,"
5478 openbsd[2-9].*|mirbsd*) #(vi
5479 LD_RPATH_OPT="-Wl,-rpath,"
5481 dragonfly*|freebsd*) #(vi
5482 LD_RPATH_OPT="-rpath "
5485 LD_RPATH_OPT="-Wl,-rpath,"
5488 LD_RPATH_OPT="-rpath "
5496 echo "$as_me:5496: result: $LD_RPATH_OPT" >&5
5497 echo "${ECHO_T}$LD_RPATH_OPT" >&6
5499 case "x$LD_RPATH_OPT" in #(vi
5501 echo "$as_me:5501: checking if we need a space after rpath option" >&5
5502 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
5503 cf_save_LIBS="$LIBS"
5504 LIBS="${LD_RPATH_OPT}$libdir $LIBS"
5505 cat >conftest.$ac_ext <<_ACEOF
5506 #line 5506 "configure"
5507 #include "confdefs.h"
5517 rm -f conftest.$ac_objext conftest$ac_exeext
5518 if { (eval echo "$as_me:5518: \"$ac_link\"") >&5
5519 (eval $ac_link) 2>&5
5521 echo "$as_me:5521: \$? = $ac_status" >&5
5522 (exit $ac_status); } &&
5523 { ac_try='test -s conftest$ac_exeext'
5524 { (eval echo "$as_me:5524: \"$ac_try\"") >&5
5527 echo "$as_me:5527: \$? = $ac_status" >&5
5528 (exit $ac_status); }; }; then
5531 echo "$as_me: failed program was:" >&5
5532 cat conftest.$ac_ext >&5
5535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5536 LIBS="$cf_save_LIBS"
5537 echo "$as_me:5537: result: $cf_rpath_space" >&5
5538 echo "${ECHO_T}$cf_rpath_space" >&6
5539 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
5546 INSTALL_LIB="-m 644"
5548 cf_cv_do_symlinks=no
5550 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
5552 echo "$as_me:5552: checking if release/abi version should be used for shared libs" >&5
5553 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
5555 # Check whether --with-shlib-version or --without-shlib-version was given.
5556 if test "${with_shlib_version+set}" = set; then
5557 withval="$with_shlib_version"
5558 test -z "$withval" && withval=auto
5559 case $withval in #(vi
5561 cf_cv_shlib_version=auto
5563 rel|abi|auto|no) #(vi
5564 cf_cv_shlib_version=$withval
5567 { { echo "$as_me:5567: error: option value must be one of: rel, abi, auto or no" >&5
5568 echo "$as_me: error: option value must be one of: rel, abi, auto or no" >&2;}
5569 { (exit 1); exit 1; }; }
5574 cf_cv_shlib_version=auto
5576 echo "$as_me:5576: result: $cf_cv_shlib_version" >&5
5577 echo "${ECHO_T}$cf_cv_shlib_version" >&6
5582 # Some less-capable ports of gcc support only -fpic
5584 if test "$GCC" = yes
5586 echo "$as_me:5586: checking which $CC option to use" >&5
5587 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
5588 cf_save_CFLAGS="$CFLAGS"
5589 for CC_SHARED_OPTS in -fPIC -fpic ''
5591 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
5592 cat >conftest.$ac_ext <<_ACEOF
5593 #line 5593 "configure"
5594 #include "confdefs.h"
5604 rm -f conftest.$ac_objext
5605 if { (eval echo "$as_me:5605: \"$ac_compile\"") >&5
5606 (eval $ac_compile) 2>&5
5608 echo "$as_me:5608: \$? = $ac_status" >&5
5609 (exit $ac_status); } &&
5610 { ac_try='test -s conftest.$ac_objext'
5611 { (eval echo "$as_me:5611: \"$ac_try\"") >&5
5614 echo "$as_me:5614: \$? = $ac_status" >&5
5615 (exit $ac_status); }; }; then
5618 echo "$as_me: failed program was:" >&5
5619 cat conftest.$ac_ext >&5
5621 rm -f conftest.$ac_objext conftest.$ac_ext
5623 echo "$as_me:5623: result: $CC_SHARED_OPTS" >&5
5624 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
5625 CFLAGS="$cf_save_CFLAGS"
5628 cf_cv_shlib_version_infix=no
5630 case $cf_cv_system_name in #(vi
5631 aix4.3-9*|aix[5-7]*) #(vi
5632 if test "$GCC" = yes; then
5634 MK_SHARED_LIB='${CC} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
5636 # CC_SHARED_OPTS='-qpic=large -G'
5637 # perhaps "-bM:SRE -bnoentry -bexpall"
5638 MK_SHARED_LIB='${CC} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
5642 MK_SHARED_LIB='${CC} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
5646 MK_SHARED_LIB='sh ../mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5647 cf_cv_shlib_version=cygdll
5648 cf_cv_shlib_version_infix=cygdll
5649 cat >mk_shared_lib.sh <<-CF_EOF
5652 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
5655 Linking shared library
5656 ** SHARED_LIB \$SHARED_LIB
5657 ** IMPORT_LIB \$IMPORT_LIB
5659 exec \$* -shared -Wl,--out-implib=../lib/\${IMPORT_LIB} -Wl,--export-all-symbols -o ../lib/\${SHARED_LIB}
5661 chmod +x mk_shared_lib.sh
5664 cf_try_cflags="no-cpp-precomp"
5665 CC_SHARED_OPTS="-dynamic"
5666 MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
5667 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
5668 cf_cv_shlib_version_infix=yes
5669 echo "$as_me:5669: checking if ld -search_paths_first works" >&5
5670 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
5671 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
5672 echo $ECHO_N "(cached) $ECHO_C" >&6
5675 cf_save_LDFLAGS=$LDFLAGS
5676 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5677 cat >conftest.$ac_ext <<_ACEOF
5678 #line 5678 "configure"
5679 #include "confdefs.h"
5689 rm -f conftest.$ac_objext conftest$ac_exeext
5690 if { (eval echo "$as_me:5690: \"$ac_link\"") >&5
5691 (eval $ac_link) 2>&5
5693 echo "$as_me:5693: \$? = $ac_status" >&5
5694 (exit $ac_status); } &&
5695 { ac_try='test -s conftest$ac_exeext'
5696 { (eval echo "$as_me:5696: \"$ac_try\"") >&5
5699 echo "$as_me:5699: \$? = $ac_status" >&5
5700 (exit $ac_status); }; }; then
5701 cf_cv_ldflags_search_paths_first=yes
5703 echo "$as_me: failed program was:" >&5
5704 cat conftest.$ac_ext >&5
5705 cf_cv_ldflags_search_paths_first=no
5707 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5708 LDFLAGS=$cf_save_LDFLAGS
5710 echo "$as_me:5710: result: $cf_cv_ldflags_search_paths_first" >&5
5711 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
5712 if test $cf_cv_ldflags_search_paths_first = yes; then
5713 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5717 # HP-UX 8.07 ld lacks "+b" option used for libdir search-list
5718 if test "$GCC" != yes; then
5721 MK_SHARED_LIB='${LD} -b -o $@'
5722 INSTALL_LIB="-m 555"
5725 # (tested with gcc 2.7.2 -- I don't have c89)
5726 if test "$GCC" = yes; then
5727 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
5730 LD_SHARED_OPTS='-Wl,+b,${libdir}'
5732 MK_SHARED_LIB='${LD} +b ${libdir} -b -o $@'
5733 # HP-UX shared libraries must be executable, and should be
5734 # readonly to exploit a quirk in the memory manager.
5735 INSTALL_LIB="-m 555"
5738 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5739 if test "$cf_cv_shlib_version" = rel; then
5740 cf_shared_soname='`basename .${REL_VERSION}`.${ABI_VERSION}'
5742 cf_shared_soname='`basename `'
5745 MK_SHARED_LIB='${CC} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o '
5748 if test "$cf_cv_enable_rpath" = yes ; then
5749 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5751 # tested with IRIX 5.2 and 'cc'.
5752 if test "$GCC" != yes; then
5753 CC_SHARED_OPTS='-KPIC'
5754 MK_SHARED_LIB='${CC} -shared -rdata_shared -soname `basename $@` -o $@'
5756 MK_SHARED_LIB='${CC} -shared -Wl,-soname,`basename $@` -o $@'
5758 cf_cv_rm_so_locs=yes
5760 linux*|gnu*|k*bsd*-gnu) #(vi
5761 if test "$DFT_LWR_MODEL" = "shared" ; then
5762 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5763 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5765 if test "$cf_cv_enable_rpath" = yes ; then
5766 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5769 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5770 if test "$cf_cv_shlib_version" = rel; then
5771 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5773 cf_cv_shared_soname='`basename $@`'
5776 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5779 cf_cv_shlib_version=mingw
5780 cf_cv_shlib_version_infix=mingw
5781 if test "$DFT_LWR_MODEL" = "shared" ; then
5782 LOCAL_LDFLAGS="-Wl,--enable-auto-import"
5783 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5784 EXTRA_LDFLAGS="-Wl,--enable-auto-import $EXTRA_LDFLAGS"
5787 MK_SHARED_LIB='sh ../mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
5788 cat >mk_shared_lib.sh <<-CF_EOF
5791 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
5794 Linking shared library
5795 ** SHARED_LIB \$SHARED_LIB
5796 ** IMPORT_LIB \$IMPORT_LIB
5798 exec \$* -shared -Wl,--enable-auto-import,--out-implib=../lib/\${IMPORT_LIB} -Wl,--export-all-symbols -o ../lib/\${SHARED_LIB}
5800 chmod +x mk_shared_lib.sh
5802 openbsd[2-9].*|mirbsd*) #(vi
5803 if test "$DFT_LWR_MODEL" = "shared" ; then
5804 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5805 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5807 if test "$cf_cv_enable_rpath" = yes ; then
5808 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5810 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5812 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5813 if test "$cf_cv_shlib_version" = rel; then
5814 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5816 cf_cv_shared_soname='`basename $@`'
5819 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
5821 nto-qnx*|openbsd*|freebsd[12].*) #(vi
5822 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5823 MK_SHARED_LIB='${LD} -Bshareable -o $@'
5824 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5826 dragonfly*|freebsd*) #(vi
5827 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5828 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
5829 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
5830 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
5831 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5834 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5835 if test "$cf_cv_shlib_version" = rel; then
5836 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5838 cf_cv_shared_soname='`basename $@`'
5841 MK_SHARED_LIB='${LD} -shared -Bshareable -soname=`basename $@` -o $@'
5844 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
5845 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
5846 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
5847 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5848 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
5849 if test "$cf_cv_shlib_version" = auto; then
5850 if test -f /usr/libexec/ld.elf_so; then
5851 cf_cv_shlib_version=abi
5853 cf_cv_shlib_version=rel
5857 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5858 if test "$cf_cv_shlib_version" = rel; then
5859 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5861 cf_cv_shared_soname='`basename $@`'
5864 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
5866 MK_SHARED_LIB='${LD} -shared -Bshareable -o $@'
5870 # tested with OSF/1 V3.2 and 'cc'
5871 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
5872 # link with shared libs).
5873 MK_SHARED_LIB='${LD} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
5874 case $host_os in #(vi
5876 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
5879 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
5880 if test "$DFT_LWR_MODEL" = "shared" ; then
5881 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
5882 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5884 cf_cv_rm_so_locs=yes
5886 sco3.2v5*) # (also uw2* and UW7: hops 13-Apr-98
5887 # tested with osr5.0.5
5888 if test "$GCC" != yes; then
5889 CC_SHARED_OPTS='-belf -KPIC'
5891 MK_SHARED_LIB='${LD} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
5892 if test "$cf_cv_enable_rpath" = yes ; then
5893 # only way is to set LD_RUN_PATH but no switch for it
5896 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5897 LINK_PROGS='LD_RUN_PATH=${libdir}'
5898 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
5901 # tested with SunOS 4.1.1 and gcc 2.7.0
5902 if test "$GCC" != yes; then
5903 CC_SHARED_OPTS='-KPIC'
5905 MK_SHARED_LIB='${LD} -assert pure-text -o $@'
5906 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5909 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
5910 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
5911 if test "$DFT_LWR_MODEL" = "shared" ; then
5912 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
5913 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
5915 if test "$cf_cv_enable_rpath" = yes ; then
5916 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
5919 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
5920 if test "$cf_cv_shlib_version" = rel; then
5921 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
5923 cf_cv_shared_soname='`basename $@`'
5926 if test "$GCC" != yes; then
5927 cf_save_CFLAGS="$CFLAGS"
5928 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
5930 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
5931 cat >conftest.$ac_ext <<_ACEOF
5932 #line 5932 "configure"
5933 #include "confdefs.h"
5943 rm -f conftest.$ac_objext
5944 if { (eval echo "$as_me:5944: \"$ac_compile\"") >&5
5945 (eval $ac_compile) 2>&5
5947 echo "$as_me:5947: \$? = $ac_status" >&5
5948 (exit $ac_status); } &&
5949 { ac_try='test -s conftest.$ac_objext'
5950 { (eval echo "$as_me:5950: \"$ac_try\"") >&5
5953 echo "$as_me:5953: \$? = $ac_status" >&5
5954 (exit $ac_status); }; }; then
5957 echo "$as_me: failed program was:" >&5
5958 cat conftest.$ac_ext >&5
5960 rm -f conftest.$ac_objext conftest.$ac_ext
5962 CFLAGS="$cf_save_CFLAGS"
5963 CC_SHARED_OPTS=$cf_shared_opts
5964 MK_SHARED_LIB='${CC} -dy -G -h '$cf_cv_shared_soname' -o $@'
5966 MK_SHARED_LIB='${CC} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
5969 sysv5uw7*|unix_sv*) #(vi
5970 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
5971 if test "$GCC" != yes; then
5972 CC_SHARED_OPTS='-KPIC'
5974 MK_SHARED_LIB='${LD} -d y -G -o $@'
5977 CC_SHARED_OPTS='unknown'
5978 MK_SHARED_LIB='echo unknown'
5982 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
5983 case "$cf_cv_shlib_version" in #(vi
5985 case "$MK_SHARED_LIB" in #(vi
5987 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
5990 { echo "$as_me:5990: WARNING: ignored --with-shlib-version" >&5
5991 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
5997 if test -n "$cf_try_cflags"
5999 cat > conftest.$ac_ext <<EOF
6000 #line 6000 "${as_me:-configure}"
6002 int main(int argc, char *argv[])
6005 return (argv[argc-1] == 0) ;
6008 cf_save_CFLAGS="$CFLAGS"
6009 for cf_opt in $cf_try_cflags
6011 CFLAGS="$cf_save_CFLAGS -$cf_opt"
6012 echo "$as_me:6012: checking if CFLAGS option -$cf_opt works" >&5
6013 echo $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6
6014 if { (eval echo "$as_me:6014: \"$ac_compile\"") >&5
6015 (eval $ac_compile) 2>&5
6017 echo "$as_me:6017: \$? = $ac_status" >&5
6018 (exit $ac_status); }; then
6019 echo "$as_me:6019: result: yes" >&5
6020 echo "${ECHO_T}yes" >&6
6021 cf_save_CFLAGS="$CFLAGS"
6023 echo "$as_me:6023: result: no" >&5
6024 echo "${ECHO_T}no" >&6
6027 CFLAGS="$cf_save_CFLAGS"
6030 # RPATH_LIST is a colon-separated list of directories
6031 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
6032 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
6034 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
6036 echo "${as_me:-configure}:6036: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
6038 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6040 echo "${as_me:-configure}:6040: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6042 if test "$CC_SHARED_OPTS" = "unknown"; then
6043 for model in $cf_list_models; do
6044 if test "$model" = "shared"; then
6045 { { echo "$as_me:6045: error: Shared libraries are not supported in this version" >&5
6046 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
6047 { (exit 1); exit 1; }; }
6052 ### If we're building with rpath, try to link non-standard libs that way too.
6053 if test "$DFT_LWR_MODEL" = "shared"; then
6055 echo "$as_me:6055: checking if rpath-hack should be disabled" >&5
6056 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
6058 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
6059 if test "${enable_rpath_hack+set}" = set; then
6060 enableval="$enable_rpath_hack"
6061 test "$enableval" != no && enableval=yes
6062 if test "$enableval" != "yes" ; then
6063 cf_disable_rpath_hack=yes
6065 cf_disable_rpath_hack=no
6069 cf_disable_rpath_hack=no
6072 echo "$as_me:6072: result: $cf_disable_rpath_hack" >&5
6073 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
6074 if test "$cf_disable_rpath_hack" = no ; then
6076 echo "$as_me:6076: checking for updated LDFLAGS" >&5
6077 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
6078 if test -n "$LD_RPATH_OPT" ; then
6079 echo "$as_me:6079: result: maybe" >&5
6080 echo "${ECHO_T}maybe" >&6
6084 # Extract the first word of "$ac_prog", so it can be a program name with args.
6085 set dummy $ac_prog; ac_word=$2
6086 echo "$as_me:6086: checking for $ac_word" >&5
6087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6088 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
6089 echo $ECHO_N "(cached) $ECHO_C" >&6
6091 if test -n "$cf_ldd_prog"; then
6092 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
6094 ac_save_IFS=$IFS; IFS=$ac_path_separator
6096 for ac_dir in $ac_dummy; do
6098 test -z "$ac_dir" && ac_dir=.
6099 $as_executable_p "$ac_dir/$ac_word" || continue
6100 ac_cv_prog_cf_ldd_prog="$ac_prog"
6101 echo "$as_me:6101: found $ac_dir/$ac_word" >&5
6107 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
6108 if test -n "$cf_ldd_prog"; then
6109 echo "$as_me:6109: result: $cf_ldd_prog" >&5
6110 echo "${ECHO_T}$cf_ldd_prog" >&6
6112 echo "$as_me:6112: result: no" >&5
6113 echo "${ECHO_T}no" >&6
6116 test -n "$cf_ldd_prog" && break
6118 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
6120 cf_rpath_list="/usr/lib /lib"
6121 if test "$cf_ldd_prog" != no
6125 cat >conftest.$ac_ext <<_ACEOF
6126 #line 6126 "configure"
6127 #include "confdefs.h"
6137 rm -f conftest.$ac_objext conftest$ac_exeext
6138 if { (eval echo "$as_me:6138: \"$ac_link\"") >&5
6139 (eval $ac_link) 2>&5
6141 echo "$as_me:6141: \$? = $ac_status" >&5
6142 (exit $ac_status); } &&
6143 { ac_try='test -s conftest$ac_exeext'
6144 { (eval echo "$as_me:6144: \"$ac_try\"") >&5
6147 echo "$as_me:6147: \$? = $ac_status" >&5
6148 (exit $ac_status); }; }; then
6149 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort -u`
6150 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort -u`
6152 echo "$as_me: failed program was:" >&5
6153 cat conftest.$ac_ext >&5
6155 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6157 # If we passed the link-test, but get a "not found" on a given library,
6158 # this could be due to inept reconfiguration of gcc to make it only
6159 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
6160 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
6161 # /usr/local libraries.
6162 if test -n "$cf_rpath_oops"
6164 for cf_rpath_src in $cf_rpath_oops
6166 for cf_rpath_dir in \
6171 if test -f $cf_rpath_dir/lib/$cf_rpath_src
6173 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
6175 echo "${as_me:-configure}:6175: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
6177 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
6185 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
6187 echo "${as_me:-configure}:6187: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
6189 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
6191 echo "${as_me:-configure}:6191: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
6194 for cf_rpath_src in $LDFLAGS
6196 case $cf_rpath_src in #(vi
6199 # check if this refers to a directory which we will ignore
6201 if test -n "$cf_rpath_list"
6203 for cf_rpath_item in $cf_rpath_list
6205 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
6213 if test "$cf_rpath_skip" = no
6215 # transform the option
6216 if test "$LD_RPATH_OPT" = "-R " ; then
6217 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
6219 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
6222 # if we have not already added this, add it now
6223 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
6224 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
6226 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
6228 echo "${as_me:-configure}:6228: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
6230 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
6235 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
6237 LDFLAGS=$cf_rpath_dst
6239 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
6241 echo "${as_me:-configure}:6241: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
6243 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
6245 echo "${as_me:-configure}:6245: testing ...checking LIBS $LIBS ..." 1>&5
6248 for cf_rpath_src in $LIBS
6250 case $cf_rpath_src in #(vi
6253 # check if this refers to a directory which we will ignore
6255 if test -n "$cf_rpath_list"
6257 for cf_rpath_item in $cf_rpath_list
6259 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
6267 if test "$cf_rpath_skip" = no
6269 # transform the option
6270 if test "$LD_RPATH_OPT" = "-R " ; then
6271 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
6273 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
6276 # if we have not already added this, add it now
6277 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
6278 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
6280 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
6282 echo "${as_me:-configure}:6282: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
6284 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
6289 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
6293 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
6295 echo "${as_me:-configure}:6295: testing ...checked LIBS $LIBS ..." 1>&5
6297 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
6299 echo "${as_me:-configure}:6299: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
6307 ###############################################################################
6309 ### use option --disable-overwrite to leave out the link to -lcurses
6310 echo "$as_me:6310: checking if you wish to install ncurses overwriting curses" >&5
6311 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
6313 # Check whether --enable-overwrite or --disable-overwrite was given.
6314 if test "${enable_overwrite+set}" = set; then
6315 enableval="$enable_overwrite"
6316 with_overwrite=$enableval
6318 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
6320 echo "$as_me:6320: result: $with_overwrite" >&5
6321 echo "${ECHO_T}$with_overwrite" >&6
6323 echo "$as_me:6323: checking if external terminfo-database is used" >&5
6324 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
6326 # Check whether --enable-database or --disable-database was given.
6327 if test "${enable_database+set}" = set; then
6328 enableval="$enable_database"
6329 use_database=$enableval
6333 echo "$as_me:6333: result: $use_database" >&5
6334 echo "${ECHO_T}$use_database" >&6
6336 case $host_os in #(vi
6338 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
6341 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
6345 NCURSES_USE_DATABASE=0
6346 if test "$use_database" != no ; then
6347 NCURSES_USE_DATABASE=1
6349 echo "$as_me:6349: checking which terminfo source-file will be installed" >&5
6350 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
6352 # Check whether --with-database or --without-database was given.
6353 if test "${with_database+set}" = set; then
6354 withval="$with_database"
6355 TERMINFO_SRC=$withval
6357 echo "$as_me:6357: result: $TERMINFO_SRC" >&5
6358 echo "${ECHO_T}$TERMINFO_SRC" >&6
6360 echo "$as_me:6360: checking whether to use hashed database instead of directory/tree" >&5
6361 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
6363 # Check whether --with-hashed-db or --without-hashed-db was given.
6364 if test "${with_hashed_db+set}" = set; then
6365 withval="$with_hashed_db"
6370 echo "$as_me:6370: result: $with_hashed_db" >&5
6371 echo "${ECHO_T}$with_hashed_db" >&6
6376 echo "$as_me:6376: checking for list of fallback descriptions" >&5
6377 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
6379 # Check whether --with-fallbacks or --without-fallbacks was given.
6380 if test "${with_fallbacks+set}" = set; then
6381 withval="$with_fallbacks"
6382 with_fallback=$withval
6386 echo "$as_me:6386: result: $with_fallback" >&5
6387 echo "${ECHO_T}$with_fallback" >&6
6388 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
6390 echo "$as_me:6390: checking if you want modern xterm or antique" >&5
6391 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
6393 # Check whether --with-xterm-new or --without-xterm-new was given.
6394 if test "${with_xterm_new+set}" = set; then
6395 withval="$with_xterm_new"
6396 with_xterm_new=$withval
6400 case $with_xterm_new in
6401 no) with_xterm_new=xterm-old;;
6402 *) with_xterm_new=xterm-new;;
6404 echo "$as_me:6404: result: $with_xterm_new" >&5
6405 echo "${ECHO_T}$with_xterm_new" >&6
6406 WHICH_XTERM=$with_xterm_new
6408 echo "$as_me:6408: checking if xterm backspace sends BS or DEL" >&5
6409 echo $ECHO_N "checking if xterm backspace sends BS or DEL... $ECHO_C" >&6
6411 # Check whether --with-xterm-kbs or --without-xterm-kbs was given.
6412 if test "${with_xterm_kbs+set}" = set; then
6413 withval="$with_xterm_kbs"
6414 with_xterm_kbs=$withval
6418 case x$with_xterm_kbs in
6419 xyes|xno|xBS|xbs|x8)
6426 with_xterm_kbs=$withval
6429 echo "$as_me:6429: result: $with_xterm_kbs" >&5
6430 echo "${ECHO_T}$with_xterm_kbs" >&6
6431 XTERM_KBS=$with_xterm_kbs
6434 if test "$use_database" = no ; then
6435 TERMINFO="${datadir}/terminfo"
6439 echo "$as_me:6439: checking for list of terminfo directories" >&5
6440 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
6442 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
6443 if test "${with_terminfo_dirs+set}" = set; then
6444 withval="$with_terminfo_dirs"
6447 withval=${TERMINFO_DIRS:-${datadir}/terminfo}
6449 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
6451 for cf_src_path in $withval
6454 if test "x$prefix" != xNONE; then
6455 cf_path_syntax="$prefix"
6457 cf_path_syntax="$ac_default_prefix"
6460 case ".$cf_src_path" in #(vi
6461 .\$\(*\)*|.\'*\'*) #(vi
6465 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6467 .\${*prefix}*|.\${*dir}*) #(vi
6468 eval cf_src_path="$cf_src_path"
6469 case ".$cf_src_path" in #(vi
6471 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6476 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6479 { { echo "$as_me:6479: error: expected a pathname, not \"$cf_src_path\"" >&5
6480 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
6481 { (exit 1); exit 1; }; }
6485 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
6486 cf_dst_path="${cf_dst_path}${cf_src_path}"
6490 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
6491 # so we have to check/work around. We do prefer the result of "eval"...
6492 eval cf_dst_eval="$cf_dst_path"
6493 case "x$cf_dst_eval" in #(vi
6495 TERMINFO_DIRS=$cf_dst_path
6498 TERMINFO_DIRS="$cf_dst_eval"
6502 echo "$as_me:6502: result: $TERMINFO_DIRS" >&5
6503 echo "${ECHO_T}$TERMINFO_DIRS" >&6
6504 test -n "$TERMINFO_DIRS" &&
6505 cat >>confdefs.h <<EOF
6506 #define TERMINFO_DIRS "$TERMINFO_DIRS"
6509 echo "$as_me:6509: checking for default terminfo directory" >&5
6510 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
6512 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
6513 if test "${with_default_terminfo_dir+set}" = set; then
6514 withval="$with_default_terminfo_dir"
6517 withval="${TERMINFO:-${datadir}/terminfo}"
6518 fi; if test -n "${datadir}/terminfo" ; then
6520 if test "x$prefix" != xNONE; then
6521 cf_path_syntax="$prefix"
6523 cf_path_syntax="$ac_default_prefix"
6526 case ".$withval" in #(vi
6527 .\$\(*\)*|.\'*\'*) #(vi
6531 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6533 .\${*prefix}*|.\${*dir}*) #(vi
6534 eval withval="$withval"
6535 case ".$withval" in #(vi
6537 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
6542 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
6545 { { echo "$as_me:6545: error: expected a pathname, not \"$withval\"" >&5
6546 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
6547 { (exit 1); exit 1; }; }
6552 eval TERMINFO="$withval"
6554 echo "$as_me:6554: result: $TERMINFO" >&5
6555 echo "${ECHO_T}$TERMINFO" >&6
6557 cat >>confdefs.h <<EOF
6558 #define TERMINFO "$TERMINFO"
6563 ### use option --disable-big-core to make tic run on small machines
6564 ### We need 4Mb, check if we can allocate 50% more than that.
6565 echo "$as_me:6565: checking if big-core option selected" >&5
6566 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
6568 # Check whether --enable-big-core or --disable-big-core was given.
6569 if test "${enable_big_core+set}" = set; then
6570 enableval="$enable_big_core"
6571 with_big_core=$enableval
6573 if test "$cross_compiling" = yes; then
6576 cat >conftest.$ac_ext <<_ACEOF
6577 #line 6577 "configure"
6578 #include "confdefs.h"
6583 unsigned long n = 6000000L;
6584 char *s = malloc(n);
6587 ${cf_cv_main_return:-return}(s == 0);
6590 rm -f conftest$ac_exeext
6591 if { (eval echo "$as_me:6591: \"$ac_link\"") >&5
6592 (eval $ac_link) 2>&5
6594 echo "$as_me:6594: \$? = $ac_status" >&5
6595 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6596 { (eval echo "$as_me:6596: \"$ac_try\"") >&5
6599 echo "$as_me:6599: \$? = $ac_status" >&5
6600 (exit $ac_status); }; }; then
6603 echo "$as_me: program exited with status $ac_status" >&5
6604 echo "$as_me: failed program was:" >&5
6605 cat conftest.$ac_ext >&5
6608 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6611 echo "$as_me:6611: result: $with_big_core" >&5
6612 echo "${ECHO_T}$with_big_core" >&6
6613 test "x$with_big_core" = "xyes" &&
6614 cat >>confdefs.h <<\EOF
6615 #define HAVE_BIG_CORE 1
6618 ### ISO C only guarantees 512-char strings, we have tables which load faster
6619 ### when constructed using "big" strings. More than the C compiler, the awk
6620 ### program is a limit on most vendor UNIX systems. Check that we can build.
6621 echo "$as_me:6621: checking if big-strings option selected" >&5
6622 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
6624 # Check whether --enable-big-strings or --disable-big-strings was given.
6625 if test "${enable_big_strings+set}" = set; then
6626 enableval="$enable_big_strings"
6627 with_big_strings=$enableval
6632 eval with_big_strings=no
6635 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' 2>/dev/null \
6636 | $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
6637 eval with_big_strings=yes
6639 eval with_big_strings=no
6645 echo "$as_me:6645: result: $with_big_strings" >&5
6646 echo "${ECHO_T}$with_big_strings" >&6
6649 test "x$with_big_strings" = "xyes" && USE_BIG_STRINGS=1
6651 ### use option --enable-termcap to compile in the termcap fallback support
6652 echo "$as_me:6652: checking if you want termcap-fallback support" >&5
6653 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
6655 # Check whether --enable-termcap or --disable-termcap was given.
6656 if test "${enable_termcap+set}" = set; then
6657 enableval="$enable_termcap"
6658 with_termcap=$enableval
6662 echo "$as_me:6662: result: $with_termcap" >&5
6663 echo "${ECHO_T}$with_termcap" >&6
6665 NCURSES_USE_TERMCAP=0
6666 if test "x$with_termcap" != "xyes" ; then
6667 if test "$use_database" = no ; then
6668 if test -z "$with_fallback" ; then
6669 { { echo "$as_me:6669: error: You have disabled the database w/o specifying fallbacks" >&5
6670 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
6671 { (exit 1); exit 1; }; }
6675 cat >>confdefs.h <<\EOF
6676 #define PURE_TERMINFO 1
6681 if test "$with_ticlib" != no ; then
6682 { { echo "$as_me:6682: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
6683 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
6684 { (exit 1); exit 1; }; }
6687 NCURSES_USE_TERMCAP=1
6688 echo "$as_me:6688: checking for list of termcap files" >&5
6689 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
6691 # Check whether --with-termpath or --without-termpath was given.
6692 if test "${with_termpath+set}" = set; then
6693 withval="$with_termpath"
6696 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap}
6698 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
6700 for cf_src_path in $withval
6703 if test "x$prefix" != xNONE; then
6704 cf_path_syntax="$prefix"
6706 cf_path_syntax="$ac_default_prefix"
6709 case ".$cf_src_path" in #(vi
6710 .\$\(*\)*|.\'*\'*) #(vi
6714 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6716 .\${*prefix}*|.\${*dir}*) #(vi
6717 eval cf_src_path="$cf_src_path"
6718 case ".$cf_src_path" in #(vi
6720 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6725 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
6728 { { echo "$as_me:6728: error: expected a pathname, not \"$cf_src_path\"" >&5
6729 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
6730 { (exit 1); exit 1; }; }
6734 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
6735 cf_dst_path="${cf_dst_path}${cf_src_path}"
6739 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
6740 # so we have to check/work around. We do prefer the result of "eval"...
6741 eval cf_dst_eval="$cf_dst_path"
6742 case "x$cf_dst_eval" in #(vi
6744 TERMPATH=$cf_dst_path
6747 TERMPATH="$cf_dst_eval"
6751 echo "$as_me:6751: result: $TERMPATH" >&5
6752 echo "${ECHO_T}$TERMPATH" >&6
6753 test -n "$TERMPATH" &&
6754 cat >>confdefs.h <<EOF
6755 #define TERMPATH "$TERMPATH"
6758 ### use option --enable-getcap to use a hacked getcap for reading termcaps
6759 echo "$as_me:6759: checking if fast termcap-loader is needed" >&5
6760 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
6762 # Check whether --enable-getcap or --disable-getcap was given.
6763 if test "${enable_getcap+set}" = set; then
6764 enableval="$enable_getcap"
6765 with_getcap=$enableval
6769 echo "$as_me:6769: result: $with_getcap" >&5
6770 echo "${ECHO_T}$with_getcap" >&6
6771 test "x$with_getcap" = "xyes" &&
6772 cat >>confdefs.h <<\EOF
6773 #define USE_GETCAP 1
6776 echo "$as_me:6776: checking if translated termcaps will be cached in ~/.terminfo" >&5
6777 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
6779 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
6780 if test "${enable_getcap_cache+set}" = set; then
6781 enableval="$enable_getcap_cache"
6782 with_getcap_cache=$enableval
6784 with_getcap_cache=no
6786 echo "$as_me:6786: result: $with_getcap_cache" >&5
6787 echo "${ECHO_T}$with_getcap_cache" >&6
6788 test "x$with_getcap_cache" = "xyes" &&
6789 cat >>confdefs.h <<\EOF
6790 #define USE_GETCAP_CACHE 1
6795 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
6796 echo "$as_me:6796: checking if ~/.terminfo is wanted" >&5
6797 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
6799 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
6800 if test "${enable_home_terminfo+set}" = set; then
6801 enableval="$enable_home_terminfo"
6802 with_home_terminfo=$enableval
6804 with_home_terminfo=yes
6806 echo "$as_me:6806: result: $with_home_terminfo" >&5
6807 echo "${ECHO_T}$with_home_terminfo" >&6
6808 test "x$with_home_terminfo" = "xyes" &&
6809 cat >>confdefs.h <<\EOF
6810 #define USE_HOME_TERMINFO 1
6813 echo "$as_me:6813: checking if you want to use restricted environment when running as root" >&5
6814 echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6
6816 # Check whether --enable-root-environ or --disable-root-environ was given.
6817 if test "${enable_root_environ+set}" = set; then
6818 enableval="$enable_root_environ"
6819 with_root_environ=$enableval
6821 with_root_environ=yes
6823 echo "$as_me:6823: result: $with_root_environ" >&5
6824 echo "${ECHO_T}$with_root_environ" >&6
6825 test "x$with_root_environ" = xyes &&
6826 cat >>confdefs.h <<\EOF
6827 #define USE_ROOT_ENVIRON 1
6830 ### Use option --enable-symlinks to make tic use symlinks, not hard links
6831 ### to reduce storage requirements for the terminfo database.
6837 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6838 echo "$as_me:6838: checking for $ac_func" >&5
6839 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6840 if eval "test \"\${$as_ac_var+set}\" = set"; then
6841 echo $ECHO_N "(cached) $ECHO_C" >&6
6843 cat >conftest.$ac_ext <<_ACEOF
6844 #line 6844 "configure"
6845 #include "confdefs.h"
6846 /* System header to define __stub macros and hopefully few prototypes,
6847 which can conflict with char $ac_func (); below. */
6849 /* Override any gcc2 internal prototype to avoid an error. */
6853 /* We use char because int might match the return type of a gcc2
6854 builtin and then its argument prototype would still apply. */
6861 /* The GNU C library defines this for functions which it implements
6862 to always fail with ENOSYS. Some functions are actually named
6863 something starting with __ and the normal name is an alias. */
6864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6867 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
6874 rm -f conftest.$ac_objext conftest$ac_exeext
6875 if { (eval echo "$as_me:6875: \"$ac_link\"") >&5
6876 (eval $ac_link) 2>&5
6878 echo "$as_me:6878: \$? = $ac_status" >&5
6879 (exit $ac_status); } &&
6880 { ac_try='test -s conftest$ac_exeext'
6881 { (eval echo "$as_me:6881: \"$ac_try\"") >&5
6884 echo "$as_me:6884: \$? = $ac_status" >&5
6885 (exit $ac_status); }; }; then
6886 eval "$as_ac_var=yes"
6888 echo "$as_me: failed program was:" >&5
6889 cat conftest.$ac_ext >&5
6890 eval "$as_ac_var=no"
6892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6894 echo "$as_me:6894: result: `eval echo '${'$as_ac_var'}'`" >&5
6895 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6896 if test `eval echo '${'$as_ac_var'}'` = yes; then
6897 cat >>confdefs.h <<EOF
6898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6904 if test "$cross_compiling" = yes ; then
6910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6911 echo "$as_me:6911: checking for $ac_func" >&5
6912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6913 if eval "test \"\${$as_ac_var+set}\" = set"; then
6914 echo $ECHO_N "(cached) $ECHO_C" >&6
6916 cat >conftest.$ac_ext <<_ACEOF
6917 #line 6917 "configure"
6918 #include "confdefs.h"
6919 /* System header to define __stub macros and hopefully few prototypes,
6920 which can conflict with char $ac_func (); below. */
6922 /* Override any gcc2 internal prototype to avoid an error. */
6926 /* We use char because int might match the return type of a gcc2
6927 builtin and then its argument prototype would still apply. */
6934 /* The GNU C library defines this for functions which it implements
6935 to always fail with ENOSYS. Some functions are actually named
6936 something starting with __ and the normal name is an alias. */
6937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6940 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
6947 rm -f conftest.$ac_objext conftest$ac_exeext
6948 if { (eval echo "$as_me:6948: \"$ac_link\"") >&5
6949 (eval $ac_link) 2>&5
6951 echo "$as_me:6951: \$? = $ac_status" >&5
6952 (exit $ac_status); } &&
6953 { ac_try='test -s conftest$ac_exeext'
6954 { (eval echo "$as_me:6954: \"$ac_try\"") >&5
6957 echo "$as_me:6957: \$? = $ac_status" >&5
6958 (exit $ac_status); }; }; then
6959 eval "$as_ac_var=yes"
6961 echo "$as_me: failed program was:" >&5
6962 cat conftest.$ac_ext >&5
6963 eval "$as_ac_var=no"
6965 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6967 echo "$as_me:6967: result: `eval echo '${'$as_ac_var'}'`" >&5
6968 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6969 if test `eval echo '${'$as_ac_var'}'` = yes; then
6970 cat >>confdefs.h <<EOF
6971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6978 echo "$as_me:6978: checking if link/symlink functions work" >&5
6979 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
6980 if test "${cf_cv_link_funcs+set}" = set; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
6985 for cf_func in link symlink ; do
6986 if test "$cross_compiling" = yes; then
6988 eval 'ac_cv_func_'$cf_func'=error'
6990 cat >conftest.$ac_ext <<_ACEOF
6991 #line 6991 "configure"
6992 #include "confdefs.h"
6994 #include <sys/types.h>
6995 #include <sys/stat.h>
6996 #ifdef HAVE_UNISTD_H
7002 char *src = "config.log";
7003 char *dst = "conftest.chk";
7008 fail = ($cf_func("config.log", "conftest.chk") < 0)
7009 || (stat(dst, &dst_sb) < 0)
7010 || (dst_sb.st_mtime != src_sb.st_mtime);
7016 ${cf_cv_main_return:-return} (fail);
7020 rm -f conftest$ac_exeext
7021 if { (eval echo "$as_me:7021: \"$ac_link\"") >&5
7022 (eval $ac_link) 2>&5
7024 echo "$as_me:7024: \$? = $ac_status" >&5
7025 (exit $ac_status); } && { ac_try='./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
7032 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
7033 eval 'ac_cv_func_'$cf_func'=yes'
7035 echo "$as_me: program exited with status $ac_status" >&5
7036 echo "$as_me: failed program was:" >&5
7037 cat conftest.$ac_ext >&5
7039 eval 'ac_cv_func_'$cf_func'=no'
7041 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7044 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
7047 echo "$as_me:7047: result: $cf_cv_link_funcs" >&5
7048 echo "${ECHO_T}$cf_cv_link_funcs" >&6
7049 test "$ac_cv_func_link" = yes &&
7050 cat >>confdefs.h <<\EOF
7054 test "$ac_cv_func_symlink" = yes &&
7055 cat >>confdefs.h <<\EOF
7056 #define HAVE_SYMLINK 1
7064 # soft links (symbolic links) are useful for some systems where hard links do
7065 # not work, or to make it simpler to copy terminfo trees around.
7066 if test "x$ac_cv_func_symlink" = xyes ; then
7067 echo "$as_me:7067: checking if tic should use symbolic links" >&5
7068 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
7070 # Check whether --enable-symlinks or --disable-symlinks was given.
7071 if test "${enable_symlinks+set}" = set; then
7072 enableval="$enable_symlinks"
7073 with_symlinks=$enableval
7077 echo "$as_me:7077: result: $with_symlinks" >&5
7078 echo "${ECHO_T}$with_symlinks" >&6
7081 # If we have hard links and did not choose to use soft links instead, there is
7082 # no reason to make this choice optional - use the hard links.
7083 if test "$with_symlinks" = no ; then
7084 echo "$as_me:7084: checking if tic should use hard links" >&5
7085 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
7086 if test "x$ac_cv_func_link" = xyes ; then
7091 echo "$as_me:7091: result: $with_links" >&5
7092 echo "${ECHO_T}$with_links" >&6
7095 test "x$with_links" = xyes &&
7096 cat >>confdefs.h <<\EOF
7100 test "x$with_symlinks" = xyes &&
7101 cat >>confdefs.h <<\EOF
7102 #define USE_SYMLINKS 1
7105 ### use option --enable-broken-linker to force on use of broken-linker support
7106 echo "$as_me:7106: checking if you want broken-linker support code" >&5
7107 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
7109 # Check whether --enable-broken_linker or --disable-broken_linker was given.
7110 if test "${enable_broken_linker+set}" = set; then
7111 enableval="$enable_broken_linker"
7112 with_broken_linker=$enableval
7114 with_broken_linker=${BROKEN_LINKER:-no}
7116 echo "$as_me:7116: result: $with_broken_linker" >&5
7117 echo "${ECHO_T}$with_broken_linker" >&6
7120 if test "x$with_broken_linker" = xyes ; then
7122 cat >>confdefs.h <<\EOF
7123 #define BROKEN_LINKER 1
7127 elif test "$DFT_LWR_MODEL" = shared ; then
7128 case $cf_cv_system_name in #(vi
7131 cat >>confdefs.h <<\EOF
7132 #define BROKEN_LINKER 1
7136 test -n "$verbose" && echo " cygwin linker is broken anyway" 1>&6
7138 echo "${as_me:-configure}:7138: testing cygwin linker is broken anyway ..." 1>&5
7144 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
7145 echo "$as_me:7145: checking if tputs should process BSD-style prefix padding" >&5
7146 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
7148 # Check whether --enable-bsdpad or --disable-bsdpad was given.
7149 if test "${enable_bsdpad+set}" = set; then
7150 enableval="$enable_bsdpad"
7151 with_bsdpad=$enableval
7155 echo "$as_me:7155: result: $with_bsdpad" >&5
7156 echo "${ECHO_T}$with_bsdpad" >&6
7157 test "x$with_bsdpad" = xyes &&
7158 cat >>confdefs.h <<\EOF
7162 ### use option --enable-widec to turn on use of wide-character support
7171 # Check to define _XOPEN_SOURCE "automatically"
7174 cf_POSIX_C_SOURCE=199506L
7177 case $host_os in #(vi
7179 cf_xopen_source="-D_ALL_SOURCE"
7185 cf_xopen_source="-D_APPLE_C_SOURCE"
7188 cf_xopen_source="-D_DARWIN_C_SOURCE"
7191 freebsd*|dragonfly*) #(vi
7192 # 5.x headers associate
7193 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
7194 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
7195 cf_POSIX_C_SOURCE=200112L
7197 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
7200 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
7203 cf_xopen_source="-D_HPUX_SOURCE"
7206 cf_xopen_source="-D_SGI_SOURCE"
7209 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
7211 echo "$as_me:7211: checking if we must define _GNU_SOURCE" >&5
7212 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
7213 if test "${cf_cv_gnu_source+set}" = set; then
7214 echo $ECHO_N "(cached) $ECHO_C" >&6
7217 cat >conftest.$ac_ext <<_ACEOF
7218 #line 7218 "configure"
7219 #include "confdefs.h"
7220 #include <sys/types.h>
7225 #ifndef _XOPEN_SOURCE
7232 rm -f conftest.$ac_objext
7233 if { (eval echo "$as_me:7233: \"$ac_compile\"") >&5
7234 (eval $ac_compile) 2>&5
7236 echo "$as_me:7236: \$? = $ac_status" >&5
7237 (exit $ac_status); } &&
7238 { ac_try='test -s conftest.$ac_objext'
7239 { (eval echo "$as_me:7239: \"$ac_try\"") >&5
7242 echo "$as_me:7242: \$? = $ac_status" >&5
7243 (exit $ac_status); }; }; then
7246 echo "$as_me: failed program was:" >&5
7247 cat conftest.$ac_ext >&5
7249 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7250 cat >conftest.$ac_ext <<_ACEOF
7251 #line 7251 "configure"
7252 #include "confdefs.h"
7253 #include <sys/types.h>
7258 #ifdef _XOPEN_SOURCE
7265 rm -f conftest.$ac_objext
7266 if { (eval echo "$as_me:7266: \"$ac_compile\"") >&5
7267 (eval $ac_compile) 2>&5
7269 echo "$as_me:7269: \$? = $ac_status" >&5
7270 (exit $ac_status); } &&
7271 { ac_try='test -s conftest.$ac_objext'
7272 { (eval echo "$as_me:7272: \"$ac_try\"") >&5
7275 echo "$as_me:7275: \$? = $ac_status" >&5
7276 (exit $ac_status); }; }; then
7279 echo "$as_me: failed program was:" >&5
7280 cat conftest.$ac_ext >&5
7281 cf_cv_gnu_source=yes
7283 rm -f conftest.$ac_objext conftest.$ac_ext
7287 rm -f conftest.$ac_objext conftest.$ac_ext
7290 echo "$as_me:7290: result: $cf_cv_gnu_source" >&5
7291 echo "${ECHO_T}$cf_cv_gnu_source" >&6
7292 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7296 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
7299 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
7301 cf_save_CFLAGS="$CFLAGS"
7302 cf_save_CPPFLAGS="$CPPFLAGS"
7304 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
7305 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7306 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7308 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
7309 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7310 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7312 echo "$as_me:7312: checking if we should define _POSIX_C_SOURCE" >&5
7313 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
7314 if test "${cf_cv_posix_c_source+set}" = set; then
7315 echo $ECHO_N "(cached) $ECHO_C" >&6
7318 echo "${as_me:-configure}:7318: testing if the symbol is already defined go no further ..." 1>&5
7320 cat >conftest.$ac_ext <<_ACEOF
7321 #line 7321 "configure"
7322 #include "confdefs.h"
7323 #include <sys/types.h>
7328 #ifndef _POSIX_C_SOURCE
7335 rm -f conftest.$ac_objext
7336 if { (eval echo "$as_me:7336: \"$ac_compile\"") >&5
7337 (eval $ac_compile) 2>&5
7339 echo "$as_me:7339: \$? = $ac_status" >&5
7340 (exit $ac_status); } &&
7341 { ac_try='test -s conftest.$ac_objext'
7342 { (eval echo "$as_me:7342: \"$ac_try\"") >&5
7345 echo "$as_me:7345: \$? = $ac_status" >&5
7346 (exit $ac_status); }; }; then
7347 cf_cv_posix_c_source=no
7349 echo "$as_me: failed program was:" >&5
7350 cat conftest.$ac_ext >&5
7351 cf_want_posix_source=no
7352 case .$cf_POSIX_C_SOURCE in #(vi
7354 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7357 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7358 cf_want_posix_source=yes
7361 cf_want_posix_source=yes
7364 if test "$cf_want_posix_source" = yes ; then
7365 cat >conftest.$ac_ext <<_ACEOF
7366 #line 7366 "configure"
7367 #include "confdefs.h"
7368 #include <sys/types.h>
7373 #ifdef _POSIX_SOURCE
7380 rm -f conftest.$ac_objext
7381 if { (eval echo "$as_me:7381: \"$ac_compile\"") >&5
7382 (eval $ac_compile) 2>&5
7384 echo "$as_me:7384: \$? = $ac_status" >&5
7385 (exit $ac_status); } &&
7386 { ac_try='test -s conftest.$ac_objext'
7387 { (eval echo "$as_me:7387: \"$ac_try\"") >&5
7390 echo "$as_me:7390: \$? = $ac_status" >&5
7391 (exit $ac_status); }; }; then
7394 echo "$as_me: failed program was:" >&5
7395 cat conftest.$ac_ext >&5
7396 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
7398 rm -f conftest.$ac_objext conftest.$ac_ext
7401 echo "${as_me:-configure}:7401: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
7403 CFLAGS="$cf_trim_CFLAGS"
7404 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
7406 echo "${as_me:-configure}:7406: testing if the second compile does not leave our definition intact error ..." 1>&5
7408 cat >conftest.$ac_ext <<_ACEOF
7409 #line 7409 "configure"
7410 #include "confdefs.h"
7411 #include <sys/types.h>
7416 #ifndef _POSIX_C_SOURCE
7423 rm -f conftest.$ac_objext
7424 if { (eval echo "$as_me:7424: \"$ac_compile\"") >&5
7425 (eval $ac_compile) 2>&5
7427 echo "$as_me:7427: \$? = $ac_status" >&5
7428 (exit $ac_status); } &&
7429 { ac_try='test -s conftest.$ac_objext'
7430 { (eval echo "$as_me:7430: \"$ac_try\"") >&5
7433 echo "$as_me:7433: \$? = $ac_status" >&5
7434 (exit $ac_status); }; }; then
7437 echo "$as_me: failed program was:" >&5
7438 cat conftest.$ac_ext >&5
7439 cf_cv_posix_c_source=no
7441 rm -f conftest.$ac_objext conftest.$ac_ext
7442 CFLAGS="$cf_save_CFLAGS"
7443 CPPFLAGS="$cf_save_CPPFLAGS"
7446 rm -f conftest.$ac_objext conftest.$ac_ext
7449 echo "$as_me:7449: result: $cf_cv_posix_c_source" >&5
7450 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
7452 if test "$cf_cv_posix_c_source" != no ; then
7453 CFLAGS="$cf_trim_CFLAGS"
7454 CPPFLAGS="$cf_trim_CPPFLAGS"
7459 cf_new_extra_cppflags=
7461 for cf_add_cflags in $cf_cv_posix_c_source
7463 case $cf_fix_cppflags in
7465 case $cf_add_cflags in #(vi
7466 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7467 case $cf_add_cflags in
7469 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7471 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7472 && test -z "${cf_tst_cflags}" \
7473 && cf_fix_cppflags=yes
7475 if test $cf_fix_cppflags = yes ; then
7476 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7478 elif test "${cf_tst_cflags}" = "\"'" ; then
7479 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7485 *$cf_add_cflags) #(vi
7488 case $cf_add_cflags in #(vi
7490 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7492 CPPFLAGS=`echo "$CPPFLAGS" | \
7493 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7494 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7498 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7503 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7508 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7510 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7512 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7513 && test -z "${cf_tst_cflags}" \
7514 && cf_fix_cppflags=no
7519 if test -n "$cf_new_cflags" ; then
7521 CFLAGS="$CFLAGS $cf_new_cflags"
7524 if test -n "$cf_new_cppflags" ; then
7526 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7529 if test -n "$cf_new_extra_cppflags" ; then
7531 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7538 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
7541 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
7542 cf_xopen_source="-D_BSD_SOURCE"
7546 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
7549 cf_xopen_source="-D_OSF_SOURCE"
7552 cf_xopen_source="-D_QNX_SOURCE"
7555 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
7558 cf_xopen_source="-D__EXTENSIONS__"
7562 echo "$as_me:7562: checking if we should define _XOPEN_SOURCE" >&5
7563 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
7564 if test "${cf_cv_xopen_source+set}" = set; then
7565 echo $ECHO_N "(cached) $ECHO_C" >&6
7568 cat >conftest.$ac_ext <<_ACEOF
7569 #line 7569 "configure"
7570 #include "confdefs.h"
7574 #include <sys/types.h>
7580 #ifndef _XOPEN_SOURCE
7587 rm -f conftest.$ac_objext
7588 if { (eval echo "$as_me:7588: \"$ac_compile\"") >&5
7589 (eval $ac_compile) 2>&5
7591 echo "$as_me:7591: \$? = $ac_status" >&5
7592 (exit $ac_status); } &&
7593 { ac_try='test -s conftest.$ac_objext'
7594 { (eval echo "$as_me:7594: \"$ac_try\"") >&5
7597 echo "$as_me:7597: \$? = $ac_status" >&5
7598 (exit $ac_status); }; }; then
7599 cf_cv_xopen_source=no
7601 echo "$as_me: failed program was:" >&5
7602 cat conftest.$ac_ext >&5
7604 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
7605 cat >conftest.$ac_ext <<_ACEOF
7606 #line 7606 "configure"
7607 #include "confdefs.h"
7611 #include <sys/types.h>
7617 #ifdef _XOPEN_SOURCE
7624 rm -f conftest.$ac_objext
7625 if { (eval echo "$as_me:7625: \"$ac_compile\"") >&5
7626 (eval $ac_compile) 2>&5
7628 echo "$as_me:7628: \$? = $ac_status" >&5
7629 (exit $ac_status); } &&
7630 { ac_try='test -s conftest.$ac_objext'
7631 { (eval echo "$as_me:7631: \"$ac_try\"") >&5
7634 echo "$as_me:7634: \$? = $ac_status" >&5
7635 (exit $ac_status); }; }; then
7636 cf_cv_xopen_source=no
7638 echo "$as_me: failed program was:" >&5
7639 cat conftest.$ac_ext >&5
7640 cf_cv_xopen_source=$cf_XOPEN_SOURCE
7642 rm -f conftest.$ac_objext conftest.$ac_ext
7646 rm -f conftest.$ac_objext conftest.$ac_ext
7649 echo "$as_me:7649: result: $cf_cv_xopen_source" >&5
7650 echo "${ECHO_T}$cf_cv_xopen_source" >&6
7652 if test "$cf_cv_xopen_source" != no ; then
7654 CFLAGS=`echo "$CFLAGS" | \
7655 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7656 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
7658 CPPFLAGS=`echo "$CPPFLAGS" | \
7659 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7660 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
7662 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
7667 cf_new_extra_cppflags=
7669 for cf_add_cflags in $cf_temp_xopen_source
7671 case $cf_fix_cppflags in
7673 case $cf_add_cflags in #(vi
7674 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7675 case $cf_add_cflags in
7677 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7679 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7680 && test -z "${cf_tst_cflags}" \
7681 && cf_fix_cppflags=yes
7683 if test $cf_fix_cppflags = yes ; then
7684 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7686 elif test "${cf_tst_cflags}" = "\"'" ; then
7687 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7693 *$cf_add_cflags) #(vi
7696 case $cf_add_cflags in #(vi
7698 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7700 CPPFLAGS=`echo "$CPPFLAGS" | \
7701 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7702 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7706 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7711 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7716 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7718 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7720 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7721 && test -z "${cf_tst_cflags}" \
7722 && cf_fix_cppflags=no
7727 if test -n "$cf_new_cflags" ; then
7729 CFLAGS="$CFLAGS $cf_new_cflags"
7732 if test -n "$cf_new_cppflags" ; then
7734 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7737 if test -n "$cf_new_extra_cppflags" ; then
7739 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7744 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
7746 cf_save_CFLAGS="$CFLAGS"
7747 cf_save_CPPFLAGS="$CPPFLAGS"
7749 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
7750 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7751 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7753 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
7754 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7755 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7757 echo "$as_me:7757: checking if we should define _POSIX_C_SOURCE" >&5
7758 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
7759 if test "${cf_cv_posix_c_source+set}" = set; then
7760 echo $ECHO_N "(cached) $ECHO_C" >&6
7763 echo "${as_me:-configure}:7763: testing if the symbol is already defined go no further ..." 1>&5
7765 cat >conftest.$ac_ext <<_ACEOF
7766 #line 7766 "configure"
7767 #include "confdefs.h"
7768 #include <sys/types.h>
7773 #ifndef _POSIX_C_SOURCE
7780 rm -f conftest.$ac_objext
7781 if { (eval echo "$as_me:7781: \"$ac_compile\"") >&5
7782 (eval $ac_compile) 2>&5
7784 echo "$as_me:7784: \$? = $ac_status" >&5
7785 (exit $ac_status); } &&
7786 { ac_try='test -s conftest.$ac_objext'
7787 { (eval echo "$as_me:7787: \"$ac_try\"") >&5
7790 echo "$as_me:7790: \$? = $ac_status" >&5
7791 (exit $ac_status); }; }; then
7792 cf_cv_posix_c_source=no
7794 echo "$as_me: failed program was:" >&5
7795 cat conftest.$ac_ext >&5
7796 cf_want_posix_source=no
7797 case .$cf_POSIX_C_SOURCE in #(vi
7799 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7802 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7803 cf_want_posix_source=yes
7806 cf_want_posix_source=yes
7809 if test "$cf_want_posix_source" = yes ; then
7810 cat >conftest.$ac_ext <<_ACEOF
7811 #line 7811 "configure"
7812 #include "confdefs.h"
7813 #include <sys/types.h>
7818 #ifdef _POSIX_SOURCE
7825 rm -f conftest.$ac_objext
7826 if { (eval echo "$as_me:7826: \"$ac_compile\"") >&5
7827 (eval $ac_compile) 2>&5
7829 echo "$as_me:7829: \$? = $ac_status" >&5
7830 (exit $ac_status); } &&
7831 { ac_try='test -s conftest.$ac_objext'
7832 { (eval echo "$as_me:7832: \"$ac_try\"") >&5
7835 echo "$as_me:7835: \$? = $ac_status" >&5
7836 (exit $ac_status); }; }; then
7839 echo "$as_me: failed program was:" >&5
7840 cat conftest.$ac_ext >&5
7841 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
7843 rm -f conftest.$ac_objext conftest.$ac_ext
7846 echo "${as_me:-configure}:7846: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
7848 CFLAGS="$cf_trim_CFLAGS"
7849 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
7851 echo "${as_me:-configure}:7851: testing if the second compile does not leave our definition intact error ..." 1>&5
7853 cat >conftest.$ac_ext <<_ACEOF
7854 #line 7854 "configure"
7855 #include "confdefs.h"
7856 #include <sys/types.h>
7861 #ifndef _POSIX_C_SOURCE
7868 rm -f conftest.$ac_objext
7869 if { (eval echo "$as_me:7869: \"$ac_compile\"") >&5
7870 (eval $ac_compile) 2>&5
7872 echo "$as_me:7872: \$? = $ac_status" >&5
7873 (exit $ac_status); } &&
7874 { ac_try='test -s conftest.$ac_objext'
7875 { (eval echo "$as_me:7875: \"$ac_try\"") >&5
7878 echo "$as_me:7878: \$? = $ac_status" >&5
7879 (exit $ac_status); }; }; then
7882 echo "$as_me: failed program was:" >&5
7883 cat conftest.$ac_ext >&5
7884 cf_cv_posix_c_source=no
7886 rm -f conftest.$ac_objext conftest.$ac_ext
7887 CFLAGS="$cf_save_CFLAGS"
7888 CPPFLAGS="$cf_save_CPPFLAGS"
7891 rm -f conftest.$ac_objext conftest.$ac_ext
7894 echo "$as_me:7894: result: $cf_cv_posix_c_source" >&5
7895 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
7897 if test "$cf_cv_posix_c_source" != no ; then
7898 CFLAGS="$cf_trim_CFLAGS"
7899 CPPFLAGS="$cf_trim_CPPFLAGS"
7904 cf_new_extra_cppflags=
7906 for cf_add_cflags in $cf_cv_posix_c_source
7908 case $cf_fix_cppflags in
7910 case $cf_add_cflags in #(vi
7911 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7912 case $cf_add_cflags in
7914 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7916 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7917 && test -z "${cf_tst_cflags}" \
7918 && cf_fix_cppflags=yes
7920 if test $cf_fix_cppflags = yes ; then
7921 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7923 elif test "${cf_tst_cflags}" = "\"'" ; then
7924 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7930 *$cf_add_cflags) #(vi
7933 case $cf_add_cflags in #(vi
7935 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7937 CPPFLAGS=`echo "$CPPFLAGS" | \
7938 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7939 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7943 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7948 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7953 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7955 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7957 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7958 && test -z "${cf_tst_cflags}" \
7959 && cf_fix_cppflags=no
7964 if test -n "$cf_new_cflags" ; then
7966 CFLAGS="$CFLAGS $cf_new_cflags"
7969 if test -n "$cf_new_cppflags" ; then
7971 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7974 if test -n "$cf_new_extra_cppflags" ; then
7976 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7984 if test -n "$cf_xopen_source" ; then
7989 cf_new_extra_cppflags=
7991 for cf_add_cflags in $cf_xopen_source
7993 case $cf_fix_cppflags in
7995 case $cf_add_cflags in #(vi
7996 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7997 case $cf_add_cflags in
7999 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8001 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8002 && test -z "${cf_tst_cflags}" \
8003 && cf_fix_cppflags=yes
8005 if test $cf_fix_cppflags = yes ; then
8006 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8008 elif test "${cf_tst_cflags}" = "\"'" ; then
8009 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8015 *$cf_add_cflags) #(vi
8018 case $cf_add_cflags in #(vi
8020 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8022 CPPFLAGS=`echo "$CPPFLAGS" | \
8023 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8024 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8028 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8033 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8038 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8040 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8042 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8043 && test -z "${cf_tst_cflags}" \
8044 && cf_fix_cppflags=no
8049 if test -n "$cf_new_cflags" ; then
8051 CFLAGS="$CFLAGS $cf_new_cflags"
8054 if test -n "$cf_new_cppflags" ; then
8056 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8059 if test -n "$cf_new_extra_cppflags" ; then
8061 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8066 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
8067 echo "$as_me:8067: checking if _XOPEN_SOURCE really is set" >&5
8068 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
8069 cat >conftest.$ac_ext <<_ACEOF
8070 #line 8070 "configure"
8071 #include "confdefs.h"
8077 #ifndef _XOPEN_SOURCE
8084 rm -f conftest.$ac_objext
8085 if { (eval echo "$as_me:8085: \"$ac_compile\"") >&5
8086 (eval $ac_compile) 2>&5
8088 echo "$as_me:8088: \$? = $ac_status" >&5
8089 (exit $ac_status); } &&
8090 { ac_try='test -s conftest.$ac_objext'
8091 { (eval echo "$as_me:8091: \"$ac_try\"") >&5
8094 echo "$as_me:8094: \$? = $ac_status" >&5
8095 (exit $ac_status); }; }; then
8096 cf_XOPEN_SOURCE_set=yes
8098 echo "$as_me: failed program was:" >&5
8099 cat conftest.$ac_ext >&5
8100 cf_XOPEN_SOURCE_set=no
8102 rm -f conftest.$ac_objext conftest.$ac_ext
8103 echo "$as_me:8103: result: $cf_XOPEN_SOURCE_set" >&5
8104 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
8105 if test $cf_XOPEN_SOURCE_set = yes
8107 cat >conftest.$ac_ext <<_ACEOF
8108 #line 8108 "configure"
8109 #include "confdefs.h"
8115 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
8122 rm -f conftest.$ac_objext
8123 if { (eval echo "$as_me:8123: \"$ac_compile\"") >&5
8124 (eval $ac_compile) 2>&5
8126 echo "$as_me:8126: \$? = $ac_status" >&5
8127 (exit $ac_status); } &&
8128 { ac_try='test -s conftest.$ac_objext'
8129 { (eval echo "$as_me:8129: \"$ac_try\"") >&5
8132 echo "$as_me:8132: \$? = $ac_status" >&5
8133 (exit $ac_status); }; }; then
8134 cf_XOPEN_SOURCE_set_ok=yes
8136 echo "$as_me: failed program was:" >&5
8137 cat conftest.$ac_ext >&5
8138 cf_XOPEN_SOURCE_set_ok=no
8140 rm -f conftest.$ac_objext conftest.$ac_ext
8141 if test $cf_XOPEN_SOURCE_set_ok = no
8143 { echo "$as_me:8143: WARNING: _XOPEN_SOURCE is lower than requested" >&5
8144 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
8148 echo "$as_me:8148: checking if we should define _XOPEN_SOURCE" >&5
8149 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
8150 if test "${cf_cv_xopen_source+set}" = set; then
8151 echo $ECHO_N "(cached) $ECHO_C" >&6
8154 cat >conftest.$ac_ext <<_ACEOF
8155 #line 8155 "configure"
8156 #include "confdefs.h"
8160 #include <sys/types.h>
8166 #ifndef _XOPEN_SOURCE
8173 rm -f conftest.$ac_objext
8174 if { (eval echo "$as_me:8174: \"$ac_compile\"") >&5
8175 (eval $ac_compile) 2>&5
8177 echo "$as_me:8177: \$? = $ac_status" >&5
8178 (exit $ac_status); } &&
8179 { ac_try='test -s conftest.$ac_objext'
8180 { (eval echo "$as_me:8180: \"$ac_try\"") >&5
8183 echo "$as_me:8183: \$? = $ac_status" >&5
8184 (exit $ac_status); }; }; then
8185 cf_cv_xopen_source=no
8187 echo "$as_me: failed program was:" >&5
8188 cat conftest.$ac_ext >&5
8190 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
8191 cat >conftest.$ac_ext <<_ACEOF
8192 #line 8192 "configure"
8193 #include "confdefs.h"
8197 #include <sys/types.h>
8203 #ifdef _XOPEN_SOURCE
8210 rm -f conftest.$ac_objext
8211 if { (eval echo "$as_me:8211: \"$ac_compile\"") >&5
8212 (eval $ac_compile) 2>&5
8214 echo "$as_me:8214: \$? = $ac_status" >&5
8215 (exit $ac_status); } &&
8216 { ac_try='test -s conftest.$ac_objext'
8217 { (eval echo "$as_me:8217: \"$ac_try\"") >&5
8220 echo "$as_me:8220: \$? = $ac_status" >&5
8221 (exit $ac_status); }; }; then
8222 cf_cv_xopen_source=no
8224 echo "$as_me: failed program was:" >&5
8225 cat conftest.$ac_ext >&5
8226 cf_cv_xopen_source=$cf_XOPEN_SOURCE
8228 rm -f conftest.$ac_objext conftest.$ac_ext
8232 rm -f conftest.$ac_objext conftest.$ac_ext
8235 echo "$as_me:8235: result: $cf_cv_xopen_source" >&5
8236 echo "${ECHO_T}$cf_cv_xopen_source" >&6
8238 if test "$cf_cv_xopen_source" != no ; then
8240 CFLAGS=`echo "$CFLAGS" | \
8241 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8242 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8244 CPPFLAGS=`echo "$CPPFLAGS" | \
8245 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8246 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8248 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
8253 cf_new_extra_cppflags=
8255 for cf_add_cflags in $cf_temp_xopen_source
8257 case $cf_fix_cppflags in
8259 case $cf_add_cflags in #(vi
8260 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
8261 case $cf_add_cflags in
8263 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8265 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8266 && test -z "${cf_tst_cflags}" \
8267 && cf_fix_cppflags=yes
8269 if test $cf_fix_cppflags = yes ; then
8270 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8272 elif test "${cf_tst_cflags}" = "\"'" ; then
8273 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8279 *$cf_add_cflags) #(vi
8282 case $cf_add_cflags in #(vi
8284 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8286 CPPFLAGS=`echo "$CPPFLAGS" | \
8287 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8288 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8292 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8297 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8302 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8304 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8306 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8307 && test -z "${cf_tst_cflags}" \
8308 && cf_fix_cppflags=no
8313 if test -n "$cf_new_cflags" ; then
8315 CFLAGS="$CFLAGS $cf_new_cflags"
8318 if test -n "$cf_new_cppflags" ; then
8320 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8323 if test -n "$cf_new_extra_cppflags" ; then
8325 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8333 # Work around breakage on OS X
8335 echo "$as_me:8335: checking if SIGWINCH is defined" >&5
8336 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
8337 if test "${cf_cv_define_sigwinch+set}" = set; then
8338 echo $ECHO_N "(cached) $ECHO_C" >&6
8341 cat >conftest.$ac_ext <<_ACEOF
8342 #line 8342 "configure"
8343 #include "confdefs.h"
8345 #include <sys/types.h>
8346 #include <sys/signal.h>
8356 rm -f conftest.$ac_objext
8357 if { (eval echo "$as_me:8357: \"$ac_compile\"") >&5
8358 (eval $ac_compile) 2>&5
8360 echo "$as_me:8360: \$? = $ac_status" >&5
8361 (exit $ac_status); } &&
8362 { ac_try='test -s conftest.$ac_objext'
8363 { (eval echo "$as_me:8363: \"$ac_try\"") >&5
8366 echo "$as_me:8366: \$? = $ac_status" >&5
8367 (exit $ac_status); }; }; then
8368 cf_cv_define_sigwinch=yes
8370 echo "$as_me: failed program was:" >&5
8371 cat conftest.$ac_ext >&5
8372 cat >conftest.$ac_ext <<_ACEOF
8373 #line 8373 "configure"
8374 #include "confdefs.h"
8376 #undef _XOPEN_SOURCE
8377 #undef _POSIX_SOURCE
8378 #undef _POSIX_C_SOURCE
8379 #include <sys/types.h>
8380 #include <sys/signal.h>
8390 rm -f conftest.$ac_objext
8391 if { (eval echo "$as_me:8391: \"$ac_compile\"") >&5
8392 (eval $ac_compile) 2>&5
8394 echo "$as_me:8394: \$? = $ac_status" >&5
8395 (exit $ac_status); } &&
8396 { ac_try='test -s conftest.$ac_objext'
8397 { (eval echo "$as_me:8397: \"$ac_try\"") >&5
8400 echo "$as_me:8400: \$? = $ac_status" >&5
8401 (exit $ac_status); }; }; then
8402 cf_cv_define_sigwinch=maybe
8404 echo "$as_me: failed program was:" >&5
8405 cat conftest.$ac_ext >&5
8406 cf_cv_define_sigwinch=no
8408 rm -f conftest.$ac_objext conftest.$ac_ext
8411 rm -f conftest.$ac_objext conftest.$ac_ext
8414 echo "$as_me:8414: result: $cf_cv_define_sigwinch" >&5
8415 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
8417 if test "$cf_cv_define_sigwinch" = maybe ; then
8418 echo "$as_me:8418: checking for actual SIGWINCH definition" >&5
8419 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
8420 if test "${cf_cv_fixup_sigwinch+set}" = set; then
8421 echo $ECHO_N "(cached) $ECHO_C" >&6
8424 cf_cv_fixup_sigwinch=unknown
8426 while test $cf_sigwinch != 1
8428 cat >conftest.$ac_ext <<_ACEOF
8429 #line 8429 "configure"
8430 #include "confdefs.h"
8432 #undef _XOPEN_SOURCE
8433 #undef _POSIX_SOURCE
8434 #undef _POSIX_C_SOURCE
8435 #include <sys/types.h>
8436 #include <sys/signal.h>
8442 #if SIGWINCH != $cf_sigwinch
8450 rm -f conftest.$ac_objext
8451 if { (eval echo "$as_me:8451: \"$ac_compile\"") >&5
8452 (eval $ac_compile) 2>&5
8454 echo "$as_me:8454: \$? = $ac_status" >&5
8455 (exit $ac_status); } &&
8456 { ac_try='test -s conftest.$ac_objext'
8457 { (eval echo "$as_me:8457: \"$ac_try\"") >&5
8460 echo "$as_me:8460: \$? = $ac_status" >&5
8461 (exit $ac_status); }; }; then
8462 cf_cv_fixup_sigwinch=$cf_sigwinch
8465 echo "$as_me: failed program was:" >&5
8466 cat conftest.$ac_ext >&5
8468 rm -f conftest.$ac_objext conftest.$ac_ext
8470 cf_sigwinch=`expr $cf_sigwinch - 1`
8474 echo "$as_me:8474: result: $cf_cv_fixup_sigwinch" >&5
8475 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
8477 if test "$cf_cv_fixup_sigwinch" != unknown ; then
8478 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
8482 # Checks for CODESET support.
8484 echo "$as_me:8484: checking for nl_langinfo and CODESET" >&5
8485 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
8486 if test "${am_cv_langinfo_codeset+set}" = set; then
8487 echo $ECHO_N "(cached) $ECHO_C" >&6
8489 cat >conftest.$ac_ext <<_ACEOF
8490 #line 8490 "configure"
8491 #include "confdefs.h"
8492 #include <langinfo.h>
8496 char* cs = nl_langinfo(CODESET);
8501 rm -f conftest.$ac_objext conftest$ac_exeext
8502 if { (eval echo "$as_me:8502: \"$ac_link\"") >&5
8503 (eval $ac_link) 2>&5
8505 echo "$as_me:8505: \$? = $ac_status" >&5
8506 (exit $ac_status); } &&
8507 { ac_try='test -s conftest$ac_exeext'
8508 { (eval echo "$as_me:8508: \"$ac_try\"") >&5
8511 echo "$as_me:8511: \$? = $ac_status" >&5
8512 (exit $ac_status); }; }; then
8513 am_cv_langinfo_codeset=yes
8515 echo "$as_me: failed program was:" >&5
8516 cat conftest.$ac_ext >&5
8517 am_cv_langinfo_codeset=no
8519 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8522 echo "$as_me:8522: result: $am_cv_langinfo_codeset" >&5
8523 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
8524 if test $am_cv_langinfo_codeset = yes; then
8526 cat >>confdefs.h <<\EOF
8527 #define HAVE_LANGINFO_CODESET 1
8532 # use these variables to work around a defect in gcc's fixincludes.
8536 echo "$as_me:8536: checking if you want wide-character code" >&5
8537 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
8539 # Check whether --enable-widec or --disable-widec was given.
8540 if test "${enable_widec+set}" = set; then
8541 enableval="$enable_widec"
8542 with_widec=$enableval
8546 echo "$as_me:8546: result: $with_widec" >&5
8547 echo "${ECHO_T}$with_widec" >&6
8548 if test "x$with_widec" = xyes ; then
8549 LIB_SUFFIX="w${LIB_SUFFIX}"
8551 cat >>confdefs.h <<\EOF
8552 #define USE_WIDEC_SUPPORT 1
8555 cat >>confdefs.h <<\EOF
8556 #define NCURSES_WIDECHAR 1
8559 echo "$as_me:8559: checking if wchar.h can be used as is" >&5
8560 echo $ECHO_N "checking if wchar.h can be used as is... $ECHO_C" >&6
8561 if test "${cf_cv_wchar_h_okay+set}" = set; then
8562 echo $ECHO_N "(cached) $ECHO_C" >&6
8565 cat >conftest.$ac_ext <<_ACEOF
8566 #line 8566 "configure"
8567 #include "confdefs.h"
8577 int bar = iswpunct(foo)
8582 rm -f conftest.$ac_objext
8583 if { (eval echo "$as_me:8583: \"$ac_compile\"") >&5
8584 (eval $ac_compile) 2>&5
8586 echo "$as_me:8586: \$? = $ac_status" >&5
8587 (exit $ac_status); } &&
8588 { ac_try='test -s conftest.$ac_objext'
8589 { (eval echo "$as_me:8589: \"$ac_try\"") >&5
8592 echo "$as_me:8592: \$? = $ac_status" >&5
8593 (exit $ac_status); }; }; then
8594 cf_cv_wchar_h_okay=yes
8596 echo "$as_me: failed program was:" >&5
8597 cat conftest.$ac_ext >&5
8598 cf_cv_wchar_h_okay=no
8600 rm -f conftest.$ac_objext conftest.$ac_ext
8602 echo "$as_me:8602: result: $cf_cv_wchar_h_okay" >&5
8603 echo "${ECHO_T}$cf_cv_wchar_h_okay" >&6
8605 if test $cf_cv_wchar_h_okay = no
8608 echo "$as_me:8608: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
8609 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
8610 cat >conftest.$ac_ext <<_ACEOF
8611 #line 8611 "configure"
8612 #include "confdefs.h"
8613 #include <sys/types.h>
8619 #ifndef _XOPEN_SOURCE_EXTENDED
8626 rm -f conftest.$ac_objext
8627 if { (eval echo "$as_me:8627: \"$ac_compile\"") >&5
8628 (eval $ac_compile) 2>&5
8630 echo "$as_me:8630: \$? = $ac_status" >&5
8631 (exit $ac_status); } &&
8632 { ac_try='test -s conftest.$ac_objext'
8633 { (eval echo "$as_me:8633: \"$ac_try\"") >&5
8636 echo "$as_me:8636: \$? = $ac_status" >&5
8637 (exit $ac_status); }; }; then
8640 echo "$as_me: failed program was:" >&5
8641 cat conftest.$ac_ext >&5
8644 rm -f conftest.$ac_objext conftest.$ac_ext
8645 echo "$as_me:8645: result: $cf_result" >&5
8646 echo "${ECHO_T}$cf_result" >&6
8648 if test "$cf_result" = yes ; then
8649 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
8650 elif test "x" != "x" ; then
8651 echo "$as_me:8651: checking checking for compatible value versus " >&5
8652 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
8653 cat >conftest.$ac_ext <<_ACEOF
8654 #line 8654 "configure"
8655 #include "confdefs.h"
8656 #include <sys/types.h>
8662 #if _XOPEN_SOURCE_EXTENDED- < 0
8669 rm -f conftest.$ac_objext
8670 if { (eval echo "$as_me:8670: \"$ac_compile\"") >&5
8671 (eval $ac_compile) 2>&5
8673 echo "$as_me:8673: \$? = $ac_status" >&5
8674 (exit $ac_status); } &&
8675 { ac_try='test -s conftest.$ac_objext'
8676 { (eval echo "$as_me:8676: \"$ac_try\"") >&5
8679 echo "$as_me:8679: \$? = $ac_status" >&5
8680 (exit $ac_status); }; }; then
8683 echo "$as_me: failed program was:" >&5
8684 cat conftest.$ac_ext >&5
8687 rm -f conftest.$ac_objext conftest.$ac_ext
8688 echo "$as_me:8688: result: $cf_result" >&5
8689 echo "${ECHO_T}$cf_result" >&6
8690 if test "$cf_result" = no ; then
8691 # perhaps we can override it - try...
8692 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
8699 NCURSES_CH_T=cchar_t
8701 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
8703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8704 echo "$as_me:8704: checking for $ac_func" >&5
8705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8706 if eval "test \"\${$as_ac_var+set}\" = set"; then
8707 echo $ECHO_N "(cached) $ECHO_C" >&6
8709 cat >conftest.$ac_ext <<_ACEOF
8710 #line 8710 "configure"
8711 #include "confdefs.h"
8712 /* System header to define __stub macros and hopefully few prototypes,
8713 which can conflict with char $ac_func (); below. */
8715 /* Override any gcc2 internal prototype to avoid an error. */
8719 /* We use char because int might match the return type of a gcc2
8720 builtin and then its argument prototype would still apply. */
8727 /* The GNU C library defines this for functions which it implements
8728 to always fail with ENOSYS. Some functions are actually named
8729 something starting with __ and the normal name is an alias. */
8730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8733 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
8740 rm -f conftest.$ac_objext conftest$ac_exeext
8741 if { (eval echo "$as_me:8741: \"$ac_link\"") >&5
8742 (eval $ac_link) 2>&5
8744 echo "$as_me:8744: \$? = $ac_status" >&5
8745 (exit $ac_status); } &&
8746 { ac_try='test -s conftest$ac_exeext'
8747 { (eval echo "$as_me:8747: \"$ac_try\"") >&5
8750 echo "$as_me:8750: \$? = $ac_status" >&5
8751 (exit $ac_status); }; }; then
8752 eval "$as_ac_var=yes"
8754 echo "$as_me: failed program was:" >&5
8755 cat conftest.$ac_ext >&5
8756 eval "$as_ac_var=no"
8758 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8760 echo "$as_me:8760: result: `eval echo '${'$as_ac_var'}'`" >&5
8761 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8762 if test `eval echo '${'$as_ac_var'}'` = yes; then
8763 cat >>confdefs.h <<EOF
8764 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8770 if test "x$ac_cv_func_putwc" != xyes ; then
8772 echo "$as_me:8772: checking for multibyte character support" >&5
8773 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
8774 if test "${cf_cv_utf8_lib+set}" = set; then
8775 echo $ECHO_N "(cached) $ECHO_C" >&6
8778 cf_save_LIBS="$LIBS"
8779 cat >conftest.$ac_ext <<_ACEOF
8780 #line 8780 "configure"
8781 #include "confdefs.h"
8792 rm -f conftest.$ac_objext conftest$ac_exeext
8793 if { (eval echo "$as_me:8793: \"$ac_link\"") >&5
8794 (eval $ac_link) 2>&5
8796 echo "$as_me:8796: \$? = $ac_status" >&5
8797 (exit $ac_status); } &&
8798 { ac_try='test -s conftest$ac_exeext'
8799 { (eval echo "$as_me:8799: \"$ac_try\"") >&5
8802 echo "$as_me:8802: \$? = $ac_status" >&5
8803 (exit $ac_status); }; }; then
8806 echo "$as_me: failed program was:" >&5
8807 cat conftest.$ac_ext >&5
8809 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
8810 # will be set on completion of the AC_TRY_LINK below.
8811 cf_cv_header_path_utf8=
8812 cf_cv_library_path_utf8=
8814 echo "${as_me:-configure}:8814: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
8816 cf_save_LIBS="$LIBS"
8818 cat >conftest.$ac_ext <<_ACEOF
8819 #line 8819 "configure"
8820 #include "confdefs.h"
8822 #include <libutf8.h>
8831 rm -f conftest.$ac_objext conftest$ac_exeext
8832 if { (eval echo "$as_me:8832: \"$ac_link\"") >&5
8833 (eval $ac_link) 2>&5
8835 echo "$as_me:8835: \$? = $ac_status" >&5
8836 (exit $ac_status); } &&
8837 { ac_try='test -s conftest$ac_exeext'
8838 { (eval echo "$as_me:8838: \"$ac_try\"") >&5
8841 echo "$as_me:8841: \$? = $ac_status" >&5
8842 (exit $ac_status); }; }; then
8844 cf_cv_find_linkage_utf8=yes
8845 cf_cv_header_path_utf8=/usr/include
8846 cf_cv_library_path_utf8=/usr/lib
8849 echo "$as_me: failed program was:" >&5
8850 cat conftest.$ac_ext >&5
8852 LIBS="-lutf8 $cf_save_LIBS"
8854 cat >conftest.$ac_ext <<_ACEOF
8855 #line 8855 "configure"
8856 #include "confdefs.h"
8858 #include <libutf8.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
8880 cf_cv_find_linkage_utf8=yes
8881 cf_cv_header_path_utf8=/usr/include
8882 cf_cv_library_path_utf8=/usr/lib
8883 cf_cv_library_file_utf8="-lutf8"
8886 echo "$as_me: failed program was:" >&5
8887 cat conftest.$ac_ext >&5
8889 cf_cv_find_linkage_utf8=no
8890 LIBS="$cf_save_LIBS"
8892 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
8894 echo "${as_me:-configure}:8894: testing find linkage for utf8 library ..." 1>&5
8896 echo "${as_me:-configure}:8896: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
8898 cf_save_CPPFLAGS="$CPPFLAGS"
8899 cf_test_CPPFLAGS="$CPPFLAGS"
8903 # collect the current set of include-directories from compiler flags
8904 cf_header_path_list=""
8905 if test -n "${CFLAGS}${CPPFLAGS}" ; then
8906 for cf_header_path in $CPPFLAGS $CFLAGS
8908 case $cf_header_path in #(vi
8910 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
8912 test "$cf_header_path" != "NONE" && \
8913 test -d "$cf_header_path" && \
8915 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
8916 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
8917 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
8918 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
8919 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
8920 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
8923 cf_header_path_list="$cf_header_path_list $cf_search"
8929 # add the variations for the package we are looking for
8933 test "/usr" != "$prefix" && \
8935 (test $prefix = NONE || test "/usr" != "$prefix") && {
8936 test -n "$verbose" && echo " ... testing for include-directories under /usr"
8937 test -d /usr/include && cf_search="$cf_search /usr/include"
8938 test -d /usr/include/utf8 && cf_search="$cf_search /usr/include/utf8"
8939 test -d /usr/include/utf8/include && cf_search="$cf_search /usr/include/utf8/include"
8940 test -d /usr/utf8/include && cf_search="$cf_search /usr/utf8/include"
8941 test -d /usr/utf8/include/utf8 && cf_search="$cf_search /usr/utf8/include/utf8"
8944 test "$prefix" != "NONE" && \
8945 test -d "$prefix" && \
8947 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
8948 test -d $prefix/include && cf_search="$cf_search $prefix/include"
8949 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
8950 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
8951 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
8952 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
8955 test "/usr/local" != "$prefix" && \
8956 test -d "/usr/local" && \
8957 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
8958 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
8959 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
8960 test -d /usr/local/include/utf8 && cf_search="$cf_search /usr/local/include/utf8"
8961 test -d /usr/local/include/utf8/include && cf_search="$cf_search /usr/local/include/utf8/include"
8962 test -d /usr/local/utf8/include && cf_search="$cf_search /usr/local/utf8/include"
8963 test -d /usr/local/utf8/include/utf8 && cf_search="$cf_search /usr/local/utf8/include/utf8"
8966 test "/opt" != "$prefix" && \
8968 (test $prefix = NONE || test "/opt" != "$prefix") && {
8969 test -n "$verbose" && echo " ... testing for include-directories under /opt"
8970 test -d /opt/include && cf_search="$cf_search /opt/include"
8971 test -d /opt/include/utf8 && cf_search="$cf_search /opt/include/utf8"
8972 test -d /opt/include/utf8/include && cf_search="$cf_search /opt/include/utf8/include"
8973 test -d /opt/utf8/include && cf_search="$cf_search /opt/utf8/include"
8974 test -d /opt/utf8/include/utf8 && cf_search="$cf_search /opt/utf8/include/utf8"
8977 test "$HOME" != "$prefix" && \
8978 test -d "$HOME" && \
8979 (test $prefix = NONE || test "$HOME" != "$prefix") && {
8980 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
8981 test -d $HOME/include && cf_search="$cf_search $HOME/include"
8982 test -d $HOME/include/utf8 && cf_search="$cf_search $HOME/include/utf8"
8983 test -d $HOME/include/utf8/include && cf_search="$cf_search $HOME/include/utf8/include"
8984 test -d $HOME/utf8/include && cf_search="$cf_search $HOME/utf8/include"
8985 test -d $HOME/utf8/include/utf8 && cf_search="$cf_search $HOME/utf8/include/utf8"
8988 test "$includedir" != NONE && \
8989 test "$includedir" != "/usr/include" && \
8990 test -d "$includedir" && {
8991 test -d $includedir && cf_search="$cf_search $includedir"
8992 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
8995 test "$oldincludedir" != NONE && \
8996 test "$oldincludedir" != "/usr/include" && \
8997 test -d "$oldincludedir" && {
8998 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
8999 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
9002 cf_search="$cf_search $cf_header_path_list"
9004 for cf_cv_header_path_utf8 in $cf_search
9006 if test -d $cf_cv_header_path_utf8 ; then
9007 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
9009 echo "${as_me:-configure}:9009: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
9011 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
9012 cat >conftest.$ac_ext <<_ACEOF
9013 #line 9013 "configure"
9014 #include "confdefs.h"
9016 #include <libutf8.h>
9025 rm -f conftest.$ac_objext
9026 if { (eval echo "$as_me:9026: \"$ac_compile\"") >&5
9027 (eval $ac_compile) 2>&5
9029 echo "$as_me:9029: \$? = $ac_status" >&5
9030 (exit $ac_status); } &&
9031 { ac_try='test -s conftest.$ac_objext'
9032 { (eval echo "$as_me:9032: \"$ac_try\"") >&5
9035 echo "$as_me:9035: \$? = $ac_status" >&5
9036 (exit $ac_status); }; }; then
9038 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
9040 echo "${as_me:-configure}:9040: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
9042 cf_cv_find_linkage_utf8=maybe
9043 cf_test_CPPFLAGS="$CPPFLAGS"
9046 echo "$as_me: failed program was:" >&5
9047 cat conftest.$ac_ext >&5
9049 CPPFLAGS="$cf_save_CPPFLAGS"
9052 rm -f conftest.$ac_objext conftest.$ac_ext
9056 if test "$cf_cv_find_linkage_utf8" = maybe ; then
9058 echo "${as_me:-configure}:9058: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
9060 cf_save_LIBS="$LIBS"
9061 cf_save_LDFLAGS="$LDFLAGS"
9063 if test "$cf_cv_find_linkage_utf8" != yes ; then
9066 cf_library_path_list=""
9067 if test -n "${LDFLAGS}${LIBS}" ; then
9068 for cf_library_path in $LDFLAGS $LIBS
9070 case $cf_library_path in #(vi
9072 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
9074 test "$cf_library_path" != "NONE" && \
9075 test -d "$cf_library_path" && \
9077 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
9078 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
9079 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
9080 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
9081 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
9082 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
9085 cf_library_path_list="$cf_library_path_list $cf_search"
9093 test "/usr" != "$prefix" && \
9095 (test $prefix = NONE || test "/usr" != "$prefix") && {
9096 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
9097 test -d /usr/lib && cf_search="$cf_search /usr/lib"
9098 test -d /usr/lib/utf8 && cf_search="$cf_search /usr/lib/utf8"
9099 test -d /usr/lib/utf8/lib && cf_search="$cf_search /usr/lib/utf8/lib"
9100 test -d /usr/utf8/lib && cf_search="$cf_search /usr/utf8/lib"
9101 test -d /usr/utf8/lib/utf8 && cf_search="$cf_search /usr/utf8/lib/utf8"
9104 test "$prefix" != "NONE" && \
9105 test -d "$prefix" && \
9107 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
9108 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
9109 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
9110 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
9111 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
9112 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
9115 test "/usr/local" != "$prefix" && \
9116 test -d "/usr/local" && \
9117 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
9118 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
9119 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
9120 test -d /usr/local/lib/utf8 && cf_search="$cf_search /usr/local/lib/utf8"
9121 test -d /usr/local/lib/utf8/lib && cf_search="$cf_search /usr/local/lib/utf8/lib"
9122 test -d /usr/local/utf8/lib && cf_search="$cf_search /usr/local/utf8/lib"
9123 test -d /usr/local/utf8/lib/utf8 && cf_search="$cf_search /usr/local/utf8/lib/utf8"
9126 test "/opt" != "$prefix" && \
9128 (test $prefix = NONE || test "/opt" != "$prefix") && {
9129 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
9130 test -d /opt/lib && cf_search="$cf_search /opt/lib"
9131 test -d /opt/lib/utf8 && cf_search="$cf_search /opt/lib/utf8"
9132 test -d /opt/lib/utf8/lib && cf_search="$cf_search /opt/lib/utf8/lib"
9133 test -d /opt/utf8/lib && cf_search="$cf_search /opt/utf8/lib"
9134 test -d /opt/utf8/lib/utf8 && cf_search="$cf_search /opt/utf8/lib/utf8"
9137 test "$HOME" != "$prefix" && \
9138 test -d "$HOME" && \
9139 (test $prefix = NONE || test "$HOME" != "$prefix") && {
9140 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
9141 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
9142 test -d $HOME/lib/utf8 && cf_search="$cf_search $HOME/lib/utf8"
9143 test -d $HOME/lib/utf8/lib && cf_search="$cf_search $HOME/lib/utf8/lib"
9144 test -d $HOME/utf8/lib && cf_search="$cf_search $HOME/utf8/lib"
9145 test -d $HOME/utf8/lib/utf8 && cf_search="$cf_search $HOME/utf8/lib/utf8"
9148 cf_search="$cf_library_path_list $cf_search"
9150 for cf_cv_library_path_utf8 in $cf_search
9152 if test -d $cf_cv_library_path_utf8 ; then
9153 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
9155 echo "${as_me:-configure}:9155: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
9157 CPPFLAGS="$cf_test_CPPFLAGS"
9158 LIBS="-lutf8 $cf_save_LIBS"
9159 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
9160 cat >conftest.$ac_ext <<_ACEOF
9161 #line 9161 "configure"
9162 #include "confdefs.h"
9164 #include <libutf8.h>
9173 rm -f conftest.$ac_objext conftest$ac_exeext
9174 if { (eval echo "$as_me:9174: \"$ac_link\"") >&5
9175 (eval $ac_link) 2>&5
9177 echo "$as_me:9177: \$? = $ac_status" >&5
9178 (exit $ac_status); } &&
9179 { ac_try='test -s conftest$ac_exeext'
9180 { (eval echo "$as_me:9180: \"$ac_try\"") >&5
9183 echo "$as_me:9183: \$? = $ac_status" >&5
9184 (exit $ac_status); }; }; then
9186 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
9188 echo "${as_me:-configure}:9188: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
9190 cf_cv_find_linkage_utf8=yes
9191 cf_cv_library_file_utf8="-lutf8"
9194 echo "$as_me: failed program was:" >&5
9195 cat conftest.$ac_ext >&5
9197 CPPFLAGS="$cf_save_CPPFLAGS"
9198 LIBS="$cf_save_LIBS"
9199 LDFLAGS="$cf_save_LDFLAGS"
9202 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9205 CPPFLAGS="$cf_save_CPPFLAGS"
9206 LDFLAGS="$cf_save_LDFLAGS"
9210 cf_cv_find_linkage_utf8=no
9214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9217 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9219 LIBS="$cf_save_LIBS"
9221 if test "$cf_cv_find_linkage_utf8" = yes ; then
9222 cf_cv_utf8_lib=add-on
9228 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9230 echo "$as_me:9230: result: $cf_cv_utf8_lib" >&5
9231 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
9233 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
9235 if test "$cf_cv_utf8_lib" = "add-on" ; then
9237 cat >>confdefs.h <<\EOF
9238 #define HAVE_LIBUTF8_H 1
9241 if test -n "$cf_cv_header_path_utf8" ; then
9242 for cf_add_incdir in $cf_cv_header_path_utf8
9244 while test $cf_add_incdir != /usr/include
9246 if test -d $cf_add_incdir
9249 if test -n "$CFLAGS$CPPFLAGS" ; then
9250 # a loop is needed to ensure we can add subdirs of existing dirs
9251 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
9252 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
9253 cf_have_incdir=yes; break
9258 if test "$cf_have_incdir" = no ; then
9259 if test "$cf_add_incdir" = /usr/local/include ; then
9260 if test "$GCC" = yes
9262 cf_save_CPPFLAGS=$CPPFLAGS
9263 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9264 cat >conftest.$ac_ext <<_ACEOF
9265 #line 9265 "configure"
9266 #include "confdefs.h"
9276 rm -f conftest.$ac_objext
9277 if { (eval echo "$as_me:9277: \"$ac_compile\"") >&5
9278 (eval $ac_compile) 2>&5
9280 echo "$as_me:9280: \$? = $ac_status" >&5
9281 (exit $ac_status); } &&
9282 { ac_try='test -s conftest.$ac_objext'
9283 { (eval echo "$as_me:9283: \"$ac_try\"") >&5
9286 echo "$as_me:9286: \$? = $ac_status" >&5
9287 (exit $ac_status); }; }; then
9290 echo "$as_me: failed program was:" >&5
9291 cat conftest.$ac_ext >&5
9294 rm -f conftest.$ac_objext conftest.$ac_ext
9295 CPPFLAGS=$cf_save_CPPFLAGS
9300 if test "$cf_have_incdir" = no ; then
9301 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
9303 echo "${as_me:-configure}:9303: testing adding $cf_add_incdir to include-path ..." 1>&5
9305 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9307 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
9308 test "$cf_top_incdir" = "$cf_add_incdir" && break
9309 cf_add_incdir="$cf_top_incdir"
9318 if test -n "$cf_cv_library_path_utf8" ; then
9319 for cf_add_libdir in $cf_cv_library_path_utf8
9321 if test $cf_add_libdir = /usr/lib ; then
9323 elif test -d $cf_add_libdir
9326 if test -n "$LDFLAGS$LIBS" ; then
9327 # a loop is needed to ensure we can add subdirs of existing dirs
9328 for cf_test_libdir in $LDFLAGS $LIBS ; do
9329 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
9330 cf_have_libdir=yes; break
9334 if test "$cf_have_libdir" = no ; then
9335 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
9337 echo "${as_me:-configure}:9337: testing adding $cf_add_libdir to library-path ..." 1>&5
9339 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
9345 LIBS="$cf_cv_library_file_utf8 $LIBS"
9348 if test "$cf_cv_utf8_lib" != no ; then
9353 # This is needed on Tru64 5.0 to declare mbstate_t
9354 echo "$as_me:9354: checking if we must include wchar.h to declare mbstate_t" >&5
9355 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
9356 if test "${cf_cv_mbstate_t+set}" = set; then
9357 echo $ECHO_N "(cached) $ECHO_C" >&6
9360 cat >conftest.$ac_ext <<_ACEOF
9361 #line 9361 "configure"
9362 #include "confdefs.h"
9367 #ifdef HAVE_LIBUTF8_H
9368 #include <libutf8.h>
9378 rm -f conftest.$ac_objext
9379 if { (eval echo "$as_me:9379: \"$ac_compile\"") >&5
9380 (eval $ac_compile) 2>&5
9382 echo "$as_me:9382: \$? = $ac_status" >&5
9383 (exit $ac_status); } &&
9384 { ac_try='test -s conftest.$ac_objext'
9385 { (eval echo "$as_me:9385: \"$ac_try\"") >&5
9388 echo "$as_me:9388: \$? = $ac_status" >&5
9389 (exit $ac_status); }; }; then
9392 echo "$as_me: failed program was:" >&5
9393 cat conftest.$ac_ext >&5
9394 cat >conftest.$ac_ext <<_ACEOF
9395 #line 9395 "configure"
9396 #include "confdefs.h"
9402 #ifdef HAVE_LIBUTF8_H
9403 #include <libutf8.h>
9413 rm -f conftest.$ac_objext
9414 if { (eval echo "$as_me:9414: \"$ac_compile\"") >&5
9415 (eval $ac_compile) 2>&5
9417 echo "$as_me:9417: \$? = $ac_status" >&5
9418 (exit $ac_status); } &&
9419 { ac_try='test -s conftest.$ac_objext'
9420 { (eval echo "$as_me:9420: \"$ac_try\"") >&5
9423 echo "$as_me:9423: \$? = $ac_status" >&5
9424 (exit $ac_status); }; }; then
9427 echo "$as_me: failed program was:" >&5
9428 cat conftest.$ac_ext >&5
9429 cf_cv_mbstate_t=unknown
9431 rm -f conftest.$ac_objext conftest.$ac_ext
9433 rm -f conftest.$ac_objext conftest.$ac_ext
9435 echo "$as_me:9435: result: $cf_cv_mbstate_t" >&5
9436 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
9438 if test "$cf_cv_mbstate_t" = yes ; then
9440 cat >>confdefs.h <<\EOF
9441 #define NEED_WCHAR_H 1
9447 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
9448 if test "$cf_cv_mbstate_t" = unknown ; then
9452 # This is needed on Tru64 5.0 to declare wchar_t
9453 echo "$as_me:9453: checking if we must include wchar.h to declare wchar_t" >&5
9454 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
9455 if test "${cf_cv_wchar_t+set}" = set; then
9456 echo $ECHO_N "(cached) $ECHO_C" >&6
9459 cat >conftest.$ac_ext <<_ACEOF
9460 #line 9460 "configure"
9461 #include "confdefs.h"
9466 #ifdef HAVE_LIBUTF8_H
9467 #include <libutf8.h>
9477 rm -f conftest.$ac_objext
9478 if { (eval echo "$as_me:9478: \"$ac_compile\"") >&5
9479 (eval $ac_compile) 2>&5
9481 echo "$as_me:9481: \$? = $ac_status" >&5
9482 (exit $ac_status); } &&
9483 { ac_try='test -s conftest.$ac_objext'
9484 { (eval echo "$as_me:9484: \"$ac_try\"") >&5
9487 echo "$as_me:9487: \$? = $ac_status" >&5
9488 (exit $ac_status); }; }; then
9491 echo "$as_me: failed program was:" >&5
9492 cat conftest.$ac_ext >&5
9493 cat >conftest.$ac_ext <<_ACEOF
9494 #line 9494 "configure"
9495 #include "confdefs.h"
9501 #ifdef HAVE_LIBUTF8_H
9502 #include <libutf8.h>
9512 rm -f conftest.$ac_objext
9513 if { (eval echo "$as_me:9513: \"$ac_compile\"") >&5
9514 (eval $ac_compile) 2>&5
9516 echo "$as_me:9516: \$? = $ac_status" >&5
9517 (exit $ac_status); } &&
9518 { ac_try='test -s conftest.$ac_objext'
9519 { (eval echo "$as_me:9519: \"$ac_try\"") >&5
9522 echo "$as_me:9522: \$? = $ac_status" >&5
9523 (exit $ac_status); }; }; then
9526 echo "$as_me: failed program was:" >&5
9527 cat conftest.$ac_ext >&5
9528 cf_cv_wchar_t=unknown
9530 rm -f conftest.$ac_objext conftest.$ac_ext
9532 rm -f conftest.$ac_objext conftest.$ac_ext
9534 echo "$as_me:9534: result: $cf_cv_wchar_t" >&5
9535 echo "${ECHO_T}$cf_cv_wchar_t" >&6
9537 if test "$cf_cv_wchar_t" = yes ; then
9539 cat >>confdefs.h <<\EOF
9540 #define NEED_WCHAR_H 1
9546 # if we do not find wchar_t in either place, use substitution to provide a fallback.
9547 if test "$cf_cv_wchar_t" = unknown ; then
9551 # if we find wchar_t in either place, use substitution to provide a fallback.
9552 if test "$cf_cv_wchar_t" != unknown ; then
9553 NCURSES_OK_WCHAR_T=1
9556 # This is needed on Tru64 5.0 to declare wint_t
9557 echo "$as_me:9557: checking if we must include wchar.h to declare wint_t" >&5
9558 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
9559 if test "${cf_cv_wint_t+set}" = set; then
9560 echo $ECHO_N "(cached) $ECHO_C" >&6
9563 cat >conftest.$ac_ext <<_ACEOF
9564 #line 9564 "configure"
9565 #include "confdefs.h"
9570 #ifdef HAVE_LIBUTF8_H
9571 #include <libutf8.h>
9581 rm -f conftest.$ac_objext
9582 if { (eval echo "$as_me:9582: \"$ac_compile\"") >&5
9583 (eval $ac_compile) 2>&5
9585 echo "$as_me:9585: \$? = $ac_status" >&5
9586 (exit $ac_status); } &&
9587 { ac_try='test -s conftest.$ac_objext'
9588 { (eval echo "$as_me:9588: \"$ac_try\"") >&5
9591 echo "$as_me:9591: \$? = $ac_status" >&5
9592 (exit $ac_status); }; }; then
9595 echo "$as_me: failed program was:" >&5
9596 cat conftest.$ac_ext >&5
9597 cat >conftest.$ac_ext <<_ACEOF
9598 #line 9598 "configure"
9599 #include "confdefs.h"
9605 #ifdef HAVE_LIBUTF8_H
9606 #include <libutf8.h>
9616 rm -f conftest.$ac_objext
9617 if { (eval echo "$as_me:9617: \"$ac_compile\"") >&5
9618 (eval $ac_compile) 2>&5
9620 echo "$as_me:9620: \$? = $ac_status" >&5
9621 (exit $ac_status); } &&
9622 { ac_try='test -s conftest.$ac_objext'
9623 { (eval echo "$as_me:9623: \"$ac_try\"") >&5
9626 echo "$as_me:9626: \$? = $ac_status" >&5
9627 (exit $ac_status); }; }; then
9630 echo "$as_me: failed program was:" >&5
9631 cat conftest.$ac_ext >&5
9632 cf_cv_wint_t=unknown
9634 rm -f conftest.$ac_objext conftest.$ac_ext
9636 rm -f conftest.$ac_objext conftest.$ac_ext
9638 echo "$as_me:9638: result: $cf_cv_wint_t" >&5
9639 echo "${ECHO_T}$cf_cv_wint_t" >&6
9641 if test "$cf_cv_wint_t" = yes ; then
9643 cat >>confdefs.h <<\EOF
9644 #define NEED_WCHAR_H 1
9650 # if we do not find wint_t in either place, use substitution to provide a fallback.
9651 if test "$cf_cv_wint_t" = unknown ; then
9655 # if we find wint_t in either place, use substitution to provide a fallback.
9656 if test "$cf_cv_wint_t" != unknown ; then
9660 if test "$NCURSES_MBSTATE_T" != 0; then
9662 cat >>confdefs.h <<\EOF
9663 #define NEED_MBSTATE_T_DEF 1
9669 ### use option --disable-lp64 to allow long chtype
9670 case $cf_cv_abi_version in
9672 default_with_lp64=no
9675 default_with_lp64=yes
9679 echo "$as_me:9679: checking whether to enable _LP64 definition in curses.h" >&5
9680 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
9682 # Check whether --enable-lp64 or --disable-lp64 was given.
9683 if test "${enable_lp64+set}" = set; then
9684 enableval="$enable_lp64"
9685 with_lp64=$enableval
9687 with_lp64=$default_with_lp64
9689 echo "$as_me:9689: result: $with_lp64" >&5
9690 echo "${ECHO_T}$with_lp64" >&6
9692 if test "x$with_lp64" = xyes ; then
9698 # Check whether --enable-largefile or --disable-largefile was given.
9699 if test "${enable_largefile+set}" = set; then
9700 enableval="$enable_largefile"
9703 if test "$enable_largefile" != no; then
9705 echo "$as_me:9705: checking for special C compiler options needed for large files" >&5
9706 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
9707 if test "${ac_cv_sys_largefile_CC+set}" = set; then
9708 echo $ECHO_N "(cached) $ECHO_C" >&6
9710 ac_cv_sys_largefile_CC=no
9711 if test "$GCC" != yes; then
9714 # IRIX 6.2 and later do not support large files by default,
9715 # so use the C compiler's -n32 option if that helps.
9716 cat >conftest.$ac_ext <<_ACEOF
9717 #line 9717 "configure"
9718 #include "confdefs.h"
9719 #include <sys/types.h>
9720 /* Check that off_t can represent 2**63 - 1 correctly.
9721 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9722 since some C++ compilers masquerading as C compilers
9723 incorrectly reject 9223372036854775807. */
9724 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9725 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9726 && LARGE_OFF_T % 2147483647 == 1)
9736 rm -f conftest.$ac_objext
9737 if { (eval echo "$as_me:9737: \"$ac_compile\"") >&5
9738 (eval $ac_compile) 2>&5
9740 echo "$as_me:9740: \$? = $ac_status" >&5
9741 (exit $ac_status); } &&
9742 { ac_try='test -s conftest.$ac_objext'
9743 { (eval echo "$as_me:9743: \"$ac_try\"") >&5
9746 echo "$as_me:9746: \$? = $ac_status" >&5
9747 (exit $ac_status); }; }; then
9750 echo "$as_me: failed program was:" >&5
9751 cat conftest.$ac_ext >&5
9753 rm -f conftest.$ac_objext
9755 rm -f conftest.$ac_objext
9756 if { (eval echo "$as_me:9756: \"$ac_compile\"") >&5
9757 (eval $ac_compile) 2>&5
9759 echo "$as_me:9759: \$? = $ac_status" >&5
9760 (exit $ac_status); } &&
9761 { ac_try='test -s conftest.$ac_objext'
9762 { (eval echo "$as_me:9762: \"$ac_try\"") >&5
9765 echo "$as_me:9765: \$? = $ac_status" >&5
9766 (exit $ac_status); }; }; then
9767 ac_cv_sys_largefile_CC=' -n32'; break
9769 echo "$as_me: failed program was:" >&5
9770 cat conftest.$ac_ext >&5
9772 rm -f conftest.$ac_objext
9776 rm -f conftest.$ac_ext
9779 echo "$as_me:9779: result: $ac_cv_sys_largefile_CC" >&5
9780 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
9781 if test "$ac_cv_sys_largefile_CC" != no; then
9782 CC=$CC$ac_cv_sys_largefile_CC
9785 echo "$as_me:9785: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9786 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
9787 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9788 echo $ECHO_N "(cached) $ECHO_C" >&6
9791 ac_cv_sys_file_offset_bits=no
9792 cat >conftest.$ac_ext <<_ACEOF
9793 #line 9793 "configure"
9794 #include "confdefs.h"
9795 #include <sys/types.h>
9796 /* Check that off_t can represent 2**63 - 1 correctly.
9797 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9798 since some C++ compilers masquerading as C compilers
9799 incorrectly reject 9223372036854775807. */
9800 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9801 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9802 && LARGE_OFF_T % 2147483647 == 1)
9812 rm -f conftest.$ac_objext
9813 if { (eval echo "$as_me:9813: \"$ac_compile\"") >&5
9814 (eval $ac_compile) 2>&5
9816 echo "$as_me:9816: \$? = $ac_status" >&5
9817 (exit $ac_status); } &&
9818 { ac_try='test -s conftest.$ac_objext'
9819 { (eval echo "$as_me:9819: \"$ac_try\"") >&5
9822 echo "$as_me:9822: \$? = $ac_status" >&5
9823 (exit $ac_status); }; }; then
9826 echo "$as_me: failed program was:" >&5
9827 cat conftest.$ac_ext >&5
9829 rm -f conftest.$ac_objext conftest.$ac_ext
9830 cat >conftest.$ac_ext <<_ACEOF
9831 #line 9831 "configure"
9832 #include "confdefs.h"
9833 #define _FILE_OFFSET_BITS 64
9834 #include <sys/types.h>
9835 /* Check that off_t can represent 2**63 - 1 correctly.
9836 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9837 since some C++ compilers masquerading as C compilers
9838 incorrectly reject 9223372036854775807. */
9839 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9840 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9841 && LARGE_OFF_T % 2147483647 == 1)
9851 rm -f conftest.$ac_objext
9852 if { (eval echo "$as_me:9852: \"$ac_compile\"") >&5
9853 (eval $ac_compile) 2>&5
9855 echo "$as_me:9855: \$? = $ac_status" >&5
9856 (exit $ac_status); } &&
9857 { ac_try='test -s conftest.$ac_objext'
9858 { (eval echo "$as_me:9858: \"$ac_try\"") >&5
9861 echo "$as_me:9861: \$? = $ac_status" >&5
9862 (exit $ac_status); }; }; then
9863 ac_cv_sys_file_offset_bits=64; break
9865 echo "$as_me: failed program was:" >&5
9866 cat conftest.$ac_ext >&5
9868 rm -f conftest.$ac_objext conftest.$ac_ext
9872 echo "$as_me:9872: result: $ac_cv_sys_file_offset_bits" >&5
9873 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9874 if test "$ac_cv_sys_file_offset_bits" != no; then
9876 cat >>confdefs.h <<EOF
9877 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9882 echo "$as_me:9882: checking for _LARGE_FILES value needed for large files" >&5
9883 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
9884 if test "${ac_cv_sys_large_files+set}" = set; then
9885 echo $ECHO_N "(cached) $ECHO_C" >&6
9888 ac_cv_sys_large_files=no
9889 cat >conftest.$ac_ext <<_ACEOF
9890 #line 9890 "configure"
9891 #include "confdefs.h"
9892 #include <sys/types.h>
9893 /* Check that off_t can represent 2**63 - 1 correctly.
9894 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9895 since some C++ compilers masquerading as C compilers
9896 incorrectly reject 9223372036854775807. */
9897 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9898 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9899 && LARGE_OFF_T % 2147483647 == 1)
9909 rm -f conftest.$ac_objext
9910 if { (eval echo "$as_me:9910: \"$ac_compile\"") >&5
9911 (eval $ac_compile) 2>&5
9913 echo "$as_me:9913: \$? = $ac_status" >&5
9914 (exit $ac_status); } &&
9915 { ac_try='test -s conftest.$ac_objext'
9916 { (eval echo "$as_me:9916: \"$ac_try\"") >&5
9919 echo "$as_me:9919: \$? = $ac_status" >&5
9920 (exit $ac_status); }; }; then
9923 echo "$as_me: failed program was:" >&5
9924 cat conftest.$ac_ext >&5
9926 rm -f conftest.$ac_objext conftest.$ac_ext
9927 cat >conftest.$ac_ext <<_ACEOF
9928 #line 9928 "configure"
9929 #include "confdefs.h"
9930 #define _LARGE_FILES 1
9931 #include <sys/types.h>
9932 /* Check that off_t can represent 2**63 - 1 correctly.
9933 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9934 since some C++ compilers masquerading as C compilers
9935 incorrectly reject 9223372036854775807. */
9936 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9937 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9938 && LARGE_OFF_T % 2147483647 == 1)
9948 rm -f conftest.$ac_objext
9949 if { (eval echo "$as_me:9949: \"$ac_compile\"") >&5
9950 (eval $ac_compile) 2>&5
9952 echo "$as_me:9952: \$? = $ac_status" >&5
9953 (exit $ac_status); } &&
9954 { ac_try='test -s conftest.$ac_objext'
9955 { (eval echo "$as_me:9955: \"$ac_try\"") >&5
9958 echo "$as_me:9958: \$? = $ac_status" >&5
9959 (exit $ac_status); }; }; then
9960 ac_cv_sys_large_files=1; break
9962 echo "$as_me: failed program was:" >&5
9963 cat conftest.$ac_ext >&5
9965 rm -f conftest.$ac_objext conftest.$ac_ext
9969 echo "$as_me:9969: result: $ac_cv_sys_large_files" >&5
9970 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9971 if test "$ac_cv_sys_large_files" != no; then
9973 cat >>confdefs.h <<EOF
9974 #define _LARGE_FILES $ac_cv_sys_large_files
9981 if test "$enable_largefile" != no ; then
9982 echo "$as_me:9982: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9983 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
9984 if test "${ac_cv_sys_largefile_source+set}" = set; then
9985 echo $ECHO_N "(cached) $ECHO_C" >&6
9988 ac_cv_sys_largefile_source=no
9989 cat >conftest.$ac_ext <<_ACEOF
9990 #line 9990 "configure"
9991 #include "confdefs.h"
10001 rm -f conftest.$ac_objext
10002 if { (eval echo "$as_me:10002: \"$ac_compile\"") >&5
10003 (eval $ac_compile) 2>&5
10005 echo "$as_me:10005: \$? = $ac_status" >&5
10006 (exit $ac_status); } &&
10007 { ac_try='test -s conftest.$ac_objext'
10008 { (eval echo "$as_me:10008: \"$ac_try\"") >&5
10009 (eval $ac_try) 2>&5
10011 echo "$as_me:10011: \$? = $ac_status" >&5
10012 (exit $ac_status); }; }; then
10015 echo "$as_me: failed program was:" >&5
10016 cat conftest.$ac_ext >&5
10018 rm -f conftest.$ac_objext conftest.$ac_ext
10019 cat >conftest.$ac_ext <<_ACEOF
10020 #line 10020 "configure"
10021 #include "confdefs.h"
10022 #define _LARGEFILE_SOURCE 1
10032 rm -f conftest.$ac_objext
10033 if { (eval echo "$as_me:10033: \"$ac_compile\"") >&5
10034 (eval $ac_compile) 2>&5
10036 echo "$as_me:10036: \$? = $ac_status" >&5
10037 (exit $ac_status); } &&
10038 { ac_try='test -s conftest.$ac_objext'
10039 { (eval echo "$as_me:10039: \"$ac_try\"") >&5
10040 (eval $ac_try) 2>&5
10042 echo "$as_me:10042: \$? = $ac_status" >&5
10043 (exit $ac_status); }; }; then
10044 ac_cv_sys_largefile_source=1; break
10046 echo "$as_me: failed program was:" >&5
10047 cat conftest.$ac_ext >&5
10049 rm -f conftest.$ac_objext conftest.$ac_ext
10053 echo "$as_me:10053: result: $ac_cv_sys_largefile_source" >&5
10054 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
10055 if test "$ac_cv_sys_largefile_source" != no; then
10057 cat >>confdefs.h <<EOF
10058 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10064 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10065 # in glibc 2.1.3, but that breaks too many other things.
10066 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10067 echo "$as_me:10067: checking for fseeko" >&5
10068 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
10069 if test "${ac_cv_func_fseeko+set}" = set; then
10070 echo $ECHO_N "(cached) $ECHO_C" >&6
10072 cat >conftest.$ac_ext <<_ACEOF
10073 #line 10073 "configure"
10074 #include "confdefs.h"
10079 return fseeko && fseeko (stdin, 0, 0);
10084 rm -f conftest.$ac_objext conftest$ac_exeext
10085 if { (eval echo "$as_me:10085: \"$ac_link\"") >&5
10086 (eval $ac_link) 2>&5
10088 echo "$as_me:10088: \$? = $ac_status" >&5
10089 (exit $ac_status); } &&
10090 { ac_try='test -s conftest$ac_exeext'
10091 { (eval echo "$as_me:10091: \"$ac_try\"") >&5
10092 (eval $ac_try) 2>&5
10094 echo "$as_me:10094: \$? = $ac_status" >&5
10095 (exit $ac_status); }; }; then
10096 ac_cv_func_fseeko=yes
10098 echo "$as_me: failed program was:" >&5
10099 cat conftest.$ac_ext >&5
10100 ac_cv_func_fseeko=no
10102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10104 echo "$as_me:10104: result: $ac_cv_func_fseeko" >&5
10105 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
10106 if test $ac_cv_func_fseeko = yes; then
10108 cat >>confdefs.h <<\EOF
10109 #define HAVE_FSEEKO 1
10114 # Normally we would collect these definitions in the config.h,
10115 # but (like _XOPEN_SOURCE), some environments rely on having these
10116 # defined before any of the system headers are included. Another
10117 # case comes up with C++, e.g., on AIX the compiler compiles the
10118 # header files by themselves before looking at the body files it is
10119 # told to compile. For ncurses, those header files do not include
10121 test "$ac_cv_sys_large_files" != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
10122 test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE "
10123 test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits "
10125 echo "$as_me:10125: checking whether to use struct dirent64" >&5
10126 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
10127 if test "${cf_cv_struct_dirent64+set}" = set; then
10128 echo $ECHO_N "(cached) $ECHO_C" >&6
10131 cat >conftest.$ac_ext <<_ACEOF
10132 #line 10132 "configure"
10133 #include "confdefs.h"
10135 #include <sys/types.h>
10136 #include <dirent.h>
10142 /* if transitional largefile support is setup, this is true */
10143 extern struct dirent64 * readdir(DIR *);
10144 struct dirent64 *x = readdir((DIR *)0);
10145 struct dirent *y = readdir((DIR *)0);
10152 rm -f conftest.$ac_objext
10153 if { (eval echo "$as_me:10153: \"$ac_compile\"") >&5
10154 (eval $ac_compile) 2>&5
10156 echo "$as_me:10156: \$? = $ac_status" >&5
10157 (exit $ac_status); } &&
10158 { ac_try='test -s conftest.$ac_objext'
10159 { (eval echo "$as_me:10159: \"$ac_try\"") >&5
10160 (eval $ac_try) 2>&5
10162 echo "$as_me:10162: \$? = $ac_status" >&5
10163 (exit $ac_status); }; }; then
10164 cf_cv_struct_dirent64=yes
10166 echo "$as_me: failed program was:" >&5
10167 cat conftest.$ac_ext >&5
10168 cf_cv_struct_dirent64=no
10170 rm -f conftest.$ac_objext conftest.$ac_ext
10173 echo "$as_me:10173: result: $cf_cv_struct_dirent64" >&5
10174 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
10175 test "$cf_cv_struct_dirent64" = yes &&
10176 cat >>confdefs.h <<\EOF
10177 #define HAVE_STRUCT_DIRENT64 1
10182 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
10183 echo "$as_me:10183: checking if you want tparm not to use X/Open fixed-parameter list" >&5
10184 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
10186 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
10187 if test "${enable_tparm_varargs+set}" = set; then
10188 enableval="$enable_tparm_varargs"
10189 with_tparm_varargs=$enableval
10191 with_tparm_varargs=yes
10193 echo "$as_me:10193: result: $with_tparm_varargs" >&5
10194 echo "${ECHO_T}$with_tparm_varargs" >&6
10195 NCURSES_TPARM_VARARGS=0
10196 test "x$with_tparm_varargs" = xyes && NCURSES_TPARM_VARARGS=1
10198 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
10199 if test "$with_ticlib" != no ; then
10200 echo "$as_me:10200: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
10201 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
10203 # Check whether --enable-tic-depends or --disable-tic-depends was given.
10204 if test "${enable_tic_depends+set}" = set; then
10205 enableval="$enable_tic_depends"
10206 with_tic_depends=$enableval
10208 with_tic_depends=yes
10210 echo "$as_me:10210: result: $with_tic_depends" >&5
10211 echo "${ECHO_T}$with_tic_depends" >&6
10213 with_tic_depends=no
10216 ### use option --with-bool to override bool's type
10217 echo "$as_me:10217: checking for type of bool" >&5
10218 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
10220 # Check whether --with-bool or --without-bool was given.
10221 if test "${with_bool+set}" = set; then
10222 withval="$with_bool"
10223 NCURSES_BOOL="$withval"
10227 echo "$as_me:10227: result: $NCURSES_BOOL" >&5
10228 echo "${ECHO_T}$NCURSES_BOOL" >&6
10230 echo "$as_me:10230: checking for alternate terminal capabilities file" >&5
10231 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
10233 # Check whether --with-caps or --without-caps was given.
10234 if test "${with_caps+set}" = set; then
10235 withval="$with_caps"
10236 TERMINFO_CAPS=Caps.$withval
10240 test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
10241 echo "$as_me:10241: result: $TERMINFO_CAPS" >&5
10242 echo "${ECHO_T}$TERMINFO_CAPS" >&6
10244 ### use option --with-chtype to override chtype's type
10245 echo "$as_me:10245: checking for type of chtype" >&5
10246 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
10248 # Check whether --with-chtype or --without-chtype was given.
10249 if test "${with_chtype+set}" = set; then
10250 withval="$with_chtype"
10251 NCURSES_CHTYPE="$withval"
10253 NCURSES_CHTYPE=auto
10255 echo "$as_me:10255: result: $NCURSES_CHTYPE" >&5
10256 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
10258 ### use option --with-ospeed to override ospeed's type
10259 echo "$as_me:10259: checking for type of ospeed" >&5
10260 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
10262 # Check whether --with-ospeed or --without-ospeed was given.
10263 if test "${with_ospeed+set}" = set; then
10264 withval="$with_ospeed"
10265 NCURSES_OSPEED="$withval"
10267 NCURSES_OSPEED=short
10269 echo "$as_me:10269: result: $NCURSES_OSPEED" >&5
10270 echo "${ECHO_T}$NCURSES_OSPEED" >&6
10272 ### use option --with-mmask-t to override mmask_t's type
10273 echo "$as_me:10273: checking for type of mmask_t" >&5
10274 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
10276 # Check whether --with-mmask-t or --without-mmask-t was given.
10277 if test "${with_mmask_t+set}" = set; then
10278 withval="$with_mmask_t"
10279 NCURSES_MMASK_T="$withval"
10281 NCURSES_MMASK_T=auto
10283 echo "$as_me:10283: result: $NCURSES_MMASK_T" >&5
10284 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
10286 ### use option --with-ccharw-max to override CCHARW_MAX size
10287 echo "$as_me:10287: checking for size CCHARW_MAX" >&5
10288 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
10290 # Check whether --with-ccharw-max or --without-ccharw-max was given.
10291 if test "${with_ccharw_max+set}" = set; then
10292 withval="$with_ccharw_max"
10293 NCURSES_CCHARW_MAX="$withval"
10295 NCURSES_CCHARW_MAX=5
10297 echo "$as_me:10297: result: $NCURSES_CCHARW_MAX" >&5
10298 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
10300 ### use option --with-tparm-arg to override tparm's argument type
10301 echo "$as_me:10301: checking for type of tparm args" >&5
10302 echo $ECHO_N "checking for type of tparm args... $ECHO_C" >&6
10304 # Check whether --with-tparm-arg or --without-tparm-arg was given.
10305 if test "${with_tparm_arg+set}" = set; then
10306 withval="$with_tparm_arg"
10307 NCURSES_TPARM_ARG="$withval"
10309 NCURSES_TPARM_ARG=long
10311 echo "$as_me:10311: result: $NCURSES_TPARM_ARG" >&5
10312 echo "${ECHO_T}$NCURSES_TPARM_ARG" >&6
10314 ### Enable compiling-in rcs id's
10315 echo "$as_me:10315: checking if RCS identifiers should be compiled-in" >&5
10316 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
10318 # Check whether --with-rcs-ids or --without-rcs-ids was given.
10319 if test "${with_rcs_ids+set}" = set; then
10320 withval="$with_rcs_ids"
10321 with_rcs_ids=$withval
10325 echo "$as_me:10325: result: $with_rcs_ids" >&5
10326 echo "${ECHO_T}$with_rcs_ids" >&6
10327 test "x$with_rcs_ids" = xyes &&
10328 cat >>confdefs.h <<\EOF
10329 #define USE_RCS_IDS 1
10332 ###############################################################################
10334 echo "$as_me:10334: checking format of man-pages" >&5
10335 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
10337 # Check whether --with-manpage-format or --without-manpage-format was given.
10338 if test "${with_manpage_format+set}" = set; then
10339 withval="$with_manpage_format"
10340 MANPAGE_FORMAT=$withval
10342 MANPAGE_FORMAT=unknown
10345 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
10346 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
10350 case $MANPAGE_FORMAT in
10352 if test -z "$MANPATH" ; then
10353 MANPATH="/usr/man:/usr/share/man"
10356 # look for the 'date' man-page (it's most likely to be installed!)
10362 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
10363 for cf_dir in $MANPATH; do
10364 test -z "$cf_dir" && cf_dir=/usr/man
10365 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
10367 cf_test=`echo $cf_name | sed -e 's/*//'`
10368 if test "x$cf_test" = "x$cf_name" ; then
10371 *.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
10372 *.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
10373 *.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
10374 *) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
10388 # if we found a match in either man* or cat*, stop looking
10389 if test -n "$MANPAGE_FORMAT" ; then
10391 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
10392 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
10398 test $cf_found=yes && break
10401 # only check the first directory in $MANPATH where we find manpages
10402 if test -n "$MANPAGE_FORMAT" ; then
10406 # if we did not find the example, just assume it is normal
10407 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
10411 for cf_option in $MANPAGE_FORMAT; do
10412 case $cf_option in #(vi
10413 gzip|compress|BSDI|normal|formatted|catonly)
10416 cf_unknown="$cf_unknown $cf_option"
10423 echo "$as_me:10423: result: $MANPAGE_FORMAT" >&5
10424 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
10425 if test -n "$cf_unknown" ; then
10426 { echo "$as_me:10426: WARNING: Unexpected manpage-format $cf_unknown" >&5
10427 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
10430 echo "$as_me:10430: checking for manpage renaming" >&5
10431 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
10433 # Check whether --with-manpage-renames or --without-manpage-renames was given.
10434 if test "${with_manpage_renames+set}" = set; then
10435 withval="$with_manpage_renames"
10436 MANPAGE_RENAMES=$withval
10438 MANPAGE_RENAMES=yes
10441 case ".$MANPAGE_RENAMES" in #(vi
10445 # Debian 'man' program?
10446 if test -f /etc/debian_version ; then
10447 MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
10454 if test "$MANPAGE_RENAMES" != no ; then
10455 if test -f $srcdir/man/$MANPAGE_RENAMES ; then
10456 MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
10457 elif test ! -f $MANPAGE_RENAMES ; then
10458 { { echo "$as_me:10458: error: not a filename: $MANPAGE_RENAMES" >&5
10459 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
10460 { (exit 1); exit 1; }; }
10463 test ! -d man && mkdir man
10465 # Construct a sed-script to perform renaming within man-pages
10466 if test -n "$MANPAGE_RENAMES" ; then
10467 test ! -d man && mkdir man
10468 sh $srcdir/man/make_sed.sh $MANPAGE_RENAMES >./edit_man.sed
10472 echo "$as_me:10472: result: $MANPAGE_RENAMES" >&5
10473 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
10475 echo "$as_me:10475: checking if manpage aliases will be installed" >&5
10476 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
10478 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
10479 if test "${with_manpage_aliases+set}" = set; then
10480 withval="$with_manpage_aliases"
10481 MANPAGE_ALIASES=$withval
10483 MANPAGE_ALIASES=yes
10486 echo "$as_me:10486: result: $MANPAGE_ALIASES" >&5
10487 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
10489 case "x$LN_S" in #(vi
10491 cf_use_symlinks=yes
10498 MANPAGE_SYMLINKS=no
10499 if test "$MANPAGE_ALIASES" = yes ; then
10500 echo "$as_me:10500: checking if manpage symlinks should be used" >&5
10501 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
10503 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
10504 if test "${with_manpage_symlinks+set}" = set; then
10505 withval="$with_manpage_symlinks"
10506 MANPAGE_SYMLINKS=$withval
10508 MANPAGE_SYMLINKS=$cf_use_symlinks
10511 if test "$$cf_use_symlinks" = no; then
10512 if test "$MANPAGE_SYMLINKS" = yes ; then
10513 { echo "$as_me:10513: WARNING: cannot make symlinks" >&5
10514 echo "$as_me: WARNING: cannot make symlinks" >&2;}
10515 MANPAGE_SYMLINKS=no
10519 echo "$as_me:10519: result: $MANPAGE_SYMLINKS" >&5
10520 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
10523 echo "$as_me:10523: checking for manpage tbl" >&5
10524 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
10526 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
10527 if test "${with_manpage_tbl+set}" = set; then
10528 withval="$with_manpage_tbl"
10529 MANPAGE_TBL=$withval
10534 echo "$as_me:10534: result: $MANPAGE_TBL" >&5
10535 echo "${ECHO_T}$MANPAGE_TBL" >&6
10537 if test "$prefix" = "NONE" ; then
10538 cf_prefix="$ac_default_prefix"
10540 cf_prefix="$prefix"
10543 case "$MANPAGE_FORMAT" in # (vi
10558 test ! -d man && mkdir man
10562 case "$MANPAGE_FORMAT" in #(vi
10565 cf_compress=compress
10573 cf_edit_man=./edit_man.sh
10574 cf_man_alias=`pwd`/man_alias.sed
10576 cat >$cf_edit_man <<CF_EOF
10578 # this script is generated by the configure-script CF_MAN_PAGES macro.
10580 prefix="$cf_prefix"
10581 datarootdir="$datarootdir"
10584 NCURSES_MAJOR="$NCURSES_MAJOR"
10585 NCURSES_MINOR="$NCURSES_MINOR"
10586 NCURSES_PATCH="$NCURSES_PATCH"
10588 NCURSES_OSPEED="$NCURSES_OSPEED"
10589 TERMINFO="$TERMINFO"
10592 INSTALL_DATA="$INSTALL_DATA"
10594 transform="$program_transform_name"
10596 TMP=\${TMPDIR:=/tmp}/man\$\$
10597 trap "rm -f \$TMP" 0 1 2 5 15
10609 top_srcdir=\$srcdir/..
10612 if test "\$form" = normal ; then
10613 if test "$cf_format" = yes ; then
10614 if test "$cf_inboth" = no ; then
10615 sh \$0 format \$verb \$mandir \$srcdir \$*
10619 cf_subdir=\$mandir/man
10620 cf_tables=$MANPAGE_TBL
10622 cf_subdir=\$mandir/cat
10626 # process the list of source-files
10629 *.orig|*.rej) ;; #(vi
10631 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
10632 if test \$verb = installing ; then
10633 if test ! -d \$cf_subdir\${section} ; then
10634 mkdir -p \$cf_subdir\$section
10638 # replace variables in man page
10639 if test ! -f $cf_man_alias ; then
10640 cat >>$cf_man_alias <<-CF_EOF2
10641 s,@DATADIR@,\$datadir,g
10642 s,@TERMINFO@,\${TERMINFO:="no default value"},g
10643 s,@TERMINFO_DIRS@,\${TERMINFO_DIRS:="no default value"},g
10644 s,@NCURSES_MAJOR@,\${NCURSES_MAJOR:="no default value"},g
10645 s,@NCURSES_MINOR@,\${NCURSES_MINOR:="no default value"},g
10646 s,@NCURSES_PATCH@,\${NCURSES_PATCH:="no default value"},g
10647 s,@NCURSES_OSPEED@,\${NCURSES_OSPEED:="no default value"},g
10650 for cf_name in captoinfo clear infocmp infotocap tabs tic toe tput tset
10652 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
10653 cf_name=`echo $cf_name|sed "$program_transform_name"`
10654 cat >>$cf_edit_man <<-CF_EOF
10655 s,@$cf_NAME@,$cf_name,g
10659 cat >>$cf_edit_man <<CF_EOF
10661 echo "...made $cf_man_alias"
10665 cf_source=\`basename \$i\`
10666 inalias=\$cf_source
10667 test ! -f \$inalias && inalias="\$srcdir/\$inalias"
10668 if test ! -f \$inalias ; then
10669 echo .. skipped \$cf_source
10674 if test "$MANPAGE_ALIASES" != no ; then
10675 cat >>$cf_edit_man <<CF_EOF
10677 test $with_curses_h = yes && nCurses=ncurses.3x
10678 aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u; test \$inalias = \$nCurses && echo curses\`
10682 if test "$MANPAGE_RENAMES" = no ; then
10683 cat >>$cf_edit_man <<CF_EOF
10684 # perform program transformations for section 1 man pages
10685 if test \$section = 1 ; then
10686 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
10688 cf_target=\$cf_subdir\${section}/\$cf_source
10692 cat >>$cf_edit_man <<CF_EOF
10693 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
10694 if test -z "\$cf_target" ; then
10695 echo '? missing rename for '\$cf_source
10696 cf_target="\$cf_source"
10698 cf_target="\$cf_subdir\${section}/\${cf_target}"
10703 cat >>$cf_edit_man <<CF_EOF
10704 sed -f $cf_man_alias \\
10707 if test -f $MANPAGE_RENAMES ; then
10708 cat >>$cf_edit_man <<CF_EOF
10709 < \$i | sed -f `pwd`/edit_man.sed >\$TMP
10712 cat >>$cf_edit_man <<CF_EOF
10717 cat >>$cf_edit_man <<CF_EOF
10718 if test \$cf_tables = yes ; then
10719 tbl \$TMP >\$TMP.out
10724 if test $with_overwrite != yes ; then
10725 cat >>$cf_edit_man <<CF_EOF
10726 sed -e "/\#[ ]*include/s,<curses.h,<ncurses$LIB_SUFFIX/curses.h," < \$TMP >\$TMP.out
10731 if test $with_curses_h != yes ; then
10732 cat >>$cf_edit_man <<CF_EOF
10733 sed -e "/\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
10738 cat >>$cf_edit_man <<CF_EOF
10739 if test \$form = format ; then
10740 nroff -man \$TMP >\$TMP.out
10745 if test -n "$cf_compress" ; then
10746 cat >>$cf_edit_man <<CF_EOF
10747 if test \$verb = installing ; then
10748 if ( $cf_compress -f \$TMP )
10750 mv \$TMP.$cf_so_strip \$TMP
10753 cf_target="\$cf_target.$cf_so_strip"
10757 case "$MANPAGE_FORMAT" in #(vi
10759 cat >>$cf_edit_man <<CF_EOF
10760 if test \$form = format ; then
10761 # BSDI installs only .0 suffixes in the cat directories
10762 cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
10768 cat >>$cf_edit_man <<CF_EOF
10769 suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\`
10770 if test \$verb = installing ; then
10771 echo \$verb \$cf_target
10772 \$INSTALL_DATA \$TMP \$cf_target
10773 test -d \$cf_subdir\${section} &&
10774 test -n "\$aliases" && (
10775 cd \$cf_subdir\${section} && (
10776 cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
10777 test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
10778 cf_target=\`basename \$cf_target\`
10779 for cf_alias in \$aliases
10781 if test \$section = 1 ; then
10782 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
10785 if test "$MANPAGE_SYMLINKS" = yes ; then
10786 if test -f \$cf_alias\${suffix} ; then
10787 if ( cmp -s \$cf_target \$cf_alias\${suffix} )
10792 echo .. \$verb alias \$cf_alias\${suffix}
10794 case "x$LN_S" in #(vi
10796 cat >>$cf_edit_man <<CF_EOF
10797 $LN_S \$cf_target \$cf_alias\${suffix}
10801 cat >>$cf_edit_man <<CF_EOF
10802 rm -f \$cf_alias\${suffix}
10803 $LN_S \$cf_target \$cf_alias\${suffix}
10807 cat >>$cf_edit_man <<CF_EOF
10808 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
10809 echo ".so \$cf_source" >\$TMP
10811 if test -n "$cf_compress" ; then
10812 cat >>$cf_edit_man <<CF_EOF
10813 if test -n "$cf_so_strip" ; then
10814 $cf_compress -f \$TMP
10815 mv \$TMP.$cf_so_strip \$TMP
10819 cat >>$cf_edit_man <<CF_EOF
10820 echo .. \$verb alias \$cf_alias\${suffix}
10821 rm -f \$cf_alias\${suffix}
10822 \$INSTALL_DATA \$TMP \$cf_alias\${suffix}
10827 elif test \$verb = removing ; then
10828 test -f \$cf_target && (
10829 echo \$verb \$cf_target
10832 test -d \$cf_subdir\${section} &&
10833 test -n "\$aliases" && (
10834 cd \$cf_subdir\${section} && (
10835 for cf_alias in \$aliases
10837 if test \$section = 1 ; then
10838 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
10841 echo .. \$verb alias \$cf_alias\${suffix}
10842 rm -f \$cf_alias\${suffix}
10854 if test $cf_inboth = yes ; then
10855 if test \$form != format ; then
10856 sh \$0 format \$verb \$mandir \$srcdir \$*
10862 chmod 755 $cf_edit_man
10864 ###############################################################################
10866 ### Note that some functions (such as const) are normally disabled anyway.
10867 echo "$as_me:10867: checking if you want to build with function extensions" >&5
10868 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
10870 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
10871 if test "${enable_ext_funcs+set}" = set; then
10872 enableval="$enable_ext_funcs"
10873 with_ext_funcs=$enableval
10877 echo "$as_me:10877: result: $with_ext_funcs" >&5
10878 echo "${ECHO_T}$with_ext_funcs" >&6
10879 if test "x$with_ext_funcs" = xyes ; then
10880 NCURSES_EXT_FUNCS=1
10882 cat >>confdefs.h <<\EOF
10883 #define HAVE_ASSUME_DEFAULT_COLORS 1
10886 cat >>confdefs.h <<\EOF
10887 #define HAVE_CURSES_VERSION 1
10890 cat >>confdefs.h <<\EOF
10891 #define HAVE_HAS_KEY 1
10894 cat >>confdefs.h <<\EOF
10895 #define HAVE_RESIZETERM 1
10898 cat >>confdefs.h <<\EOF
10899 #define HAVE_RESIZE_TERM 1
10902 cat >>confdefs.h <<\EOF
10903 #define HAVE_TERM_ENTRY_H 1
10906 cat >>confdefs.h <<\EOF
10907 #define HAVE_USE_DEFAULT_COLORS 1
10910 cat >>confdefs.h <<\EOF
10911 #define HAVE_USE_SCREEN 1
10914 cat >>confdefs.h <<\EOF
10915 #define HAVE_USE_WINDOW 1
10918 cat >>confdefs.h <<\EOF
10919 #define HAVE_WRESIZE 1
10922 cat >>confdefs.h <<\EOF
10923 #define NCURSES_EXT_FUNCS 1
10926 GENERATED_EXT_FUNCS=generated
10928 NCURSES_EXT_FUNCS=0
10929 GENERATED_EXT_FUNCS=
10932 echo "$as_me:10932: checking if you want to build with experimental SCREEN extensions" >&5
10933 echo $ECHO_N "checking if you want to build with experimental SCREEN extensions... $ECHO_C" >&6
10935 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
10936 if test "${enable_sp_funcs+set}" = set; then
10937 enableval="$enable_sp_funcs"
10938 with_sp_funcs=$enableval
10942 echo "$as_me:10942: result: $with_sp_funcs" >&5
10943 echo "${ECHO_T}$with_sp_funcs" >&6
10944 if test "x$with_sp_funcs" = xyes ; then
10947 cat >>confdefs.h <<\EOF
10948 #define NCURSES_SP_FUNCS 1
10951 GENERATED_SP_FUNCS=generated
10954 GENERATED_SP_FUNCS=
10957 echo "$as_me:10957: checking if you want to build with experimental terminal-driver" >&5
10958 echo $ECHO_N "checking if you want to build with experimental terminal-driver... $ECHO_C" >&6
10960 # Check whether --enable-term-driver or --disable-term-driver was given.
10961 if test "${enable_term_driver+set}" = set; then
10962 enableval="$enable_term_driver"
10963 with_term_driver=$enableval
10965 with_term_driver=no
10967 echo "$as_me:10967: result: $with_term_driver" >&5
10968 echo "${ECHO_T}$with_term_driver" >&6
10969 if test "x$with_term_driver" = xyes ; then
10971 cat >>confdefs.h <<\EOF
10972 #define USE_TERM_DRIVER 1
10975 if test "x$with_sp_funcs" != xyes ; then
10976 { { echo "$as_me:10976: error: The term-driver option relies upon sp-funcs" >&5
10977 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
10978 { (exit 1); exit 1; }; }
10982 ### use option --enable-const to turn on use of const beyond that in XSI.
10983 echo "$as_me:10983: checking for extended use of const keyword" >&5
10984 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
10986 # Check whether --enable-const or --disable-const was given.
10987 if test "${enable_const+set}" = set; then
10988 enableval="$enable_const"
10989 with_ext_const=$enableval
10993 echo "$as_me:10993: result: $with_ext_const" >&5
10994 echo "${ECHO_T}$with_ext_const" >&6
10995 NCURSES_CONST='/*nothing*/'
10996 if test "x$with_ext_const" = xyes ; then
10997 NCURSES_CONST=const
11000 ### use option --enable-ext-colors to turn on use of colors beyond 16.
11001 echo "$as_me:11001: checking if you want to use extended colors" >&5
11002 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
11004 # Check whether --enable-ext-colors or --disable-ext-colors was given.
11005 if test "${enable_ext_colors+set}" = set; then
11006 enableval="$enable_ext_colors"
11007 with_ext_colors=$enableval
11011 echo "$as_me:11011: result: $with_ext_colors" >&5
11012 echo "${ECHO_T}$with_ext_colors" >&6
11013 NCURSES_EXT_COLORS=0
11014 if test "x$with_ext_colors" = xyes ; then
11015 if test "x$with_widec" != xyes ; then
11016 { { echo "$as_me:11016: error: This option applies only to wide-character library" >&5
11017 echo "$as_me: error: This option applies only to wide-character library" >&2;}
11018 { (exit 1); exit 1; }; }
11020 # cannot be ABI 5 since it changes sizeof(cchar_t)
11022 if test "${with_abi_version+set}" != set; then
11023 case $cf_cv_rel_version in
11025 cf_cv_rel_version=6.0
11026 cf_cv_abi_version=6
11027 { echo "$as_me:11027: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
11028 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
11034 NCURSES_EXT_COLORS=1
11036 cat >>confdefs.h <<\EOF
11037 #define NCURSES_EXT_COLORS 1
11042 ### use option --enable-ext-mouse to modify coding to support 5-button mice
11043 echo "$as_me:11043: checking if you want to use extended mouse encoding" >&5
11044 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
11046 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
11047 if test "${enable_ext_mouse+set}" = set; then
11048 enableval="$enable_ext_mouse"
11049 with_ext_mouse=$enableval
11053 echo "$as_me:11053: result: $with_ext_mouse" >&5
11054 echo "${ECHO_T}$with_ext_mouse" >&6
11055 NCURSES_MOUSE_VERSION=1
11056 if test "x$with_ext_mouse" = xyes ; then
11057 NCURSES_MOUSE_VERSION=2
11059 if test "${with_abi_version+set}" != set; then
11060 case $cf_cv_rel_version in
11062 cf_cv_rel_version=6.0
11063 cf_cv_abi_version=6
11064 { echo "$as_me:11064: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
11065 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
11072 echo "$as_me:11072: checking if you want \$NCURSES_NO_PADDING code" >&5
11073 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
11075 # Check whether --enable-no-padding or --disable-no-padding was given.
11076 if test "${enable_no_padding+set}" = set; then
11077 enableval="$enable_no_padding"
11078 with_no_padding=$enableval
11080 with_no_padding=$with_ext_funcs
11082 echo "$as_me:11082: result: $with_no_padding" >&5
11083 echo "${ECHO_T}$with_no_padding" >&6
11084 test "x$with_no_padding" = xyes &&
11085 cat >>confdefs.h <<\EOF
11086 #define NCURSES_NO_PADDING 1
11089 echo "$as_me:11089: checking for ANSI C header files" >&5
11090 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11091 if test "${ac_cv_header_stdc+set}" = set; then
11092 echo $ECHO_N "(cached) $ECHO_C" >&6
11094 cat >conftest.$ac_ext <<_ACEOF
11095 #line 11095 "configure"
11096 #include "confdefs.h"
11097 #include <stdlib.h>
11098 #include <stdarg.h>
11099 #include <string.h>
11103 if { (eval echo "$as_me:11103: \"$ac_cpp conftest.$ac_ext\"") >&5
11104 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11106 egrep -v '^ *\+' conftest.er1 >conftest.err
11108 cat conftest.err >&5
11109 echo "$as_me:11109: \$? = $ac_status" >&5
11110 (exit $ac_status); } >/dev/null; then
11111 if test -s conftest.err; then
11112 ac_cpp_err=$ac_c_preproc_warn_flag
11119 if test -z "$ac_cpp_err"; then
11120 ac_cv_header_stdc=yes
11122 echo "$as_me: failed program was:" >&5
11123 cat conftest.$ac_ext >&5
11124 ac_cv_header_stdc=no
11126 rm -f conftest.err conftest.$ac_ext
11128 if test $ac_cv_header_stdc = yes; then
11129 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11130 cat >conftest.$ac_ext <<_ACEOF
11131 #line 11131 "configure"
11132 #include "confdefs.h"
11133 #include <string.h>
11136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11137 egrep "memchr" >/dev/null 2>&1; then
11140 ac_cv_header_stdc=no
11146 if test $ac_cv_header_stdc = yes; then
11147 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11148 cat >conftest.$ac_ext <<_ACEOF
11149 #line 11149 "configure"
11150 #include "confdefs.h"
11151 #include <stdlib.h>
11154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11155 egrep "free" >/dev/null 2>&1; then
11158 ac_cv_header_stdc=no
11164 if test $ac_cv_header_stdc = yes; then
11165 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11166 if test "$cross_compiling" = yes; then
11169 cat >conftest.$ac_ext <<_ACEOF
11170 #line 11170 "configure"
11171 #include "confdefs.h"
11173 #if ((' ' & 0x0FF) == 0x020)
11174 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11175 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11177 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
11178 || ('j' <= (c) && (c) <= 'r') \
11179 || ('s' <= (c) && (c) <= 'z'))
11180 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11183 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11188 for (i = 0; i < 256; i++)
11189 if (XOR (islower (i), ISLOWER (i))
11190 || toupper (i) != TOUPPER (i))
11191 $ac_main_return(2);
11192 $ac_main_return (0);
11195 rm -f conftest$ac_exeext
11196 if { (eval echo "$as_me:11196: \"$ac_link\"") >&5
11197 (eval $ac_link) 2>&5
11199 echo "$as_me:11199: \$? = $ac_status" >&5
11200 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11201 { (eval echo "$as_me:11201: \"$ac_try\"") >&5
11202 (eval $ac_try) 2>&5
11204 echo "$as_me:11204: \$? = $ac_status" >&5
11205 (exit $ac_status); }; }; then
11208 echo "$as_me: program exited with status $ac_status" >&5
11209 echo "$as_me: failed program was:" >&5
11210 cat conftest.$ac_ext >&5
11211 ac_cv_header_stdc=no
11213 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11217 echo "$as_me:11217: result: $ac_cv_header_stdc" >&5
11218 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11219 if test $ac_cv_header_stdc = yes; then
11221 cat >>confdefs.h <<\EOF
11222 #define STDC_HEADERS 1
11227 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
11229 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
11230 inttypes.h stdint.h unistd.h
11232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11233 echo "$as_me:11233: checking for $ac_header" >&5
11234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11236 echo $ECHO_N "(cached) $ECHO_C" >&6
11238 cat >conftest.$ac_ext <<_ACEOF
11239 #line 11239 "configure"
11240 #include "confdefs.h"
11241 $ac_includes_default
11242 #include <$ac_header>
11244 rm -f conftest.$ac_objext
11245 if { (eval echo "$as_me:11245: \"$ac_compile\"") >&5
11246 (eval $ac_compile) 2>&5
11248 echo "$as_me:11248: \$? = $ac_status" >&5
11249 (exit $ac_status); } &&
11250 { ac_try='test -s conftest.$ac_objext'
11251 { (eval echo "$as_me:11251: \"$ac_try\"") >&5
11252 (eval $ac_try) 2>&5
11254 echo "$as_me:11254: \$? = $ac_status" >&5
11255 (exit $ac_status); }; }; then
11256 eval "$as_ac_Header=yes"
11258 echo "$as_me: failed program was:" >&5
11259 cat conftest.$ac_ext >&5
11260 eval "$as_ac_Header=no"
11262 rm -f conftest.$ac_objext conftest.$ac_ext
11264 echo "$as_me:11264: result: `eval echo '${'$as_ac_Header'}'`" >&5
11265 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11266 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11267 cat >>confdefs.h <<EOF
11268 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11274 echo "$as_me:11274: checking for signed char" >&5
11275 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
11276 if test "${ac_cv_type_signed_char+set}" = set; then
11277 echo $ECHO_N "(cached) $ECHO_C" >&6
11279 cat >conftest.$ac_ext <<_ACEOF
11280 #line 11280 "configure"
11281 #include "confdefs.h"
11282 $ac_includes_default
11286 if ((signed char *) 0)
11288 if (sizeof (signed char))
11294 rm -f conftest.$ac_objext
11295 if { (eval echo "$as_me:11295: \"$ac_compile\"") >&5
11296 (eval $ac_compile) 2>&5
11298 echo "$as_me:11298: \$? = $ac_status" >&5
11299 (exit $ac_status); } &&
11300 { ac_try='test -s conftest.$ac_objext'
11301 { (eval echo "$as_me:11301: \"$ac_try\"") >&5
11302 (eval $ac_try) 2>&5
11304 echo "$as_me:11304: \$? = $ac_status" >&5
11305 (exit $ac_status); }; }; then
11306 ac_cv_type_signed_char=yes
11308 echo "$as_me: failed program was:" >&5
11309 cat conftest.$ac_ext >&5
11310 ac_cv_type_signed_char=no
11312 rm -f conftest.$ac_objext conftest.$ac_ext
11314 echo "$as_me:11314: result: $ac_cv_type_signed_char" >&5
11315 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
11317 echo "$as_me:11317: checking size of signed char" >&5
11318 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
11319 if test "${ac_cv_sizeof_signed_char+set}" = set; then
11320 echo $ECHO_N "(cached) $ECHO_C" >&6
11322 if test "$ac_cv_type_signed_char" = yes; then
11323 if test "$cross_compiling" = yes; then
11324 # Depending upon the size, compute the lo and hi bounds.
11325 cat >conftest.$ac_ext <<_ACEOF
11326 #line 11326 "configure"
11327 #include "confdefs.h"
11328 $ac_includes_default
11332 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
11337 rm -f conftest.$ac_objext
11338 if { (eval echo "$as_me:11338: \"$ac_compile\"") >&5
11339 (eval $ac_compile) 2>&5
11341 echo "$as_me:11341: \$? = $ac_status" >&5
11342 (exit $ac_status); } &&
11343 { ac_try='test -s conftest.$ac_objext'
11344 { (eval echo "$as_me:11344: \"$ac_try\"") >&5
11345 (eval $ac_try) 2>&5
11347 echo "$as_me:11347: \$? = $ac_status" >&5
11348 (exit $ac_status); }; }; then
11351 cat >conftest.$ac_ext <<_ACEOF
11352 #line 11352 "configure"
11353 #include "confdefs.h"
11354 $ac_includes_default
11358 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
11363 rm -f conftest.$ac_objext
11364 if { (eval echo "$as_me:11364: \"$ac_compile\"") >&5
11365 (eval $ac_compile) 2>&5
11367 echo "$as_me:11367: \$? = $ac_status" >&5
11368 (exit $ac_status); } &&
11369 { ac_try='test -s conftest.$ac_objext'
11370 { (eval echo "$as_me:11370: \"$ac_try\"") >&5
11371 (eval $ac_try) 2>&5
11373 echo "$as_me:11373: \$? = $ac_status" >&5
11374 (exit $ac_status); }; }; then
11375 ac_hi=$ac_mid; break
11377 echo "$as_me: failed program was:" >&5
11378 cat conftest.$ac_ext >&5
11379 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
11381 rm -f conftest.$ac_objext conftest.$ac_ext
11384 echo "$as_me: failed program was:" >&5
11385 cat conftest.$ac_ext >&5
11388 cat >conftest.$ac_ext <<_ACEOF
11389 #line 11389 "configure"
11390 #include "confdefs.h"
11391 $ac_includes_default
11395 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
11400 rm -f conftest.$ac_objext
11401 if { (eval echo "$as_me:11401: \"$ac_compile\"") >&5
11402 (eval $ac_compile) 2>&5
11404 echo "$as_me:11404: \$? = $ac_status" >&5
11405 (exit $ac_status); } &&
11406 { ac_try='test -s conftest.$ac_objext'
11407 { (eval echo "$as_me:11407: \"$ac_try\"") >&5
11408 (eval $ac_try) 2>&5
11410 echo "$as_me:11410: \$? = $ac_status" >&5
11411 (exit $ac_status); }; }; then
11412 ac_lo=$ac_mid; break
11414 echo "$as_me: failed program was:" >&5
11415 cat conftest.$ac_ext >&5
11416 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
11418 rm -f conftest.$ac_objext conftest.$ac_ext
11421 rm -f conftest.$ac_objext conftest.$ac_ext
11422 # Binary search between lo and hi bounds.
11423 while test "x$ac_lo" != "x$ac_hi"; do
11424 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11425 cat >conftest.$ac_ext <<_ACEOF
11426 #line 11426 "configure"
11427 #include "confdefs.h"
11428 $ac_includes_default
11432 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
11437 rm -f conftest.$ac_objext
11438 if { (eval echo "$as_me:11438: \"$ac_compile\"") >&5
11439 (eval $ac_compile) 2>&5
11441 echo "$as_me:11441: \$? = $ac_status" >&5
11442 (exit $ac_status); } &&
11443 { ac_try='test -s conftest.$ac_objext'
11444 { (eval echo "$as_me:11444: \"$ac_try\"") >&5
11445 (eval $ac_try) 2>&5
11447 echo "$as_me:11447: \$? = $ac_status" >&5
11448 (exit $ac_status); }; }; then
11451 echo "$as_me: failed program was:" >&5
11452 cat conftest.$ac_ext >&5
11453 ac_lo=`expr $ac_mid + 1`
11455 rm -f conftest.$ac_objext conftest.$ac_ext
11457 ac_cv_sizeof_signed_char=$ac_lo
11459 if test "$cross_compiling" = yes; then
11460 { { echo "$as_me:11460: error: cannot run test program while cross compiling" >&5
11461 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11462 { (exit 1); exit 1; }; }
11464 cat >conftest.$ac_ext <<_ACEOF
11465 #line 11465 "configure"
11466 #include "confdefs.h"
11467 $ac_includes_default
11471 FILE *f = fopen ("conftest.val", "w");
11473 $ac_main_return (1);
11474 fprintf (f, "%d", (sizeof (signed char)));
11480 rm -f conftest$ac_exeext
11481 if { (eval echo "$as_me:11481: \"$ac_link\"") >&5
11482 (eval $ac_link) 2>&5
11484 echo "$as_me:11484: \$? = $ac_status" >&5
11485 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11486 { (eval echo "$as_me:11486: \"$ac_try\"") >&5
11487 (eval $ac_try) 2>&5
11489 echo "$as_me:11489: \$? = $ac_status" >&5
11490 (exit $ac_status); }; }; then
11491 ac_cv_sizeof_signed_char=`cat conftest.val`
11493 echo "$as_me: program exited with status $ac_status" >&5
11494 echo "$as_me: failed program was:" >&5
11495 cat conftest.$ac_ext >&5
11497 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11502 ac_cv_sizeof_signed_char=0
11505 echo "$as_me:11505: result: $ac_cv_sizeof_signed_char" >&5
11506 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
11507 cat >>confdefs.h <<EOF
11508 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
11511 if test "$ac_cv_sizeof_signed_char" = 1 ; then
11512 NCURSES_SBOOL="signed char"
11514 NCURSES_SBOOL="char"
11516 echo "$as_me:11516: checking if you want to use signed Boolean array in term.h" >&5
11517 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
11519 # Check whether --enable-signed-char or --disable-signed-char was given.
11520 if test "${enable_signed_char+set}" = set; then
11521 enableval="$enable_signed_char"
11522 with_signed_char=$enableval
11524 with_signed_char=no
11526 echo "$as_me:11526: result: $with_signed_char" >&5
11527 echo "${ECHO_T}$with_signed_char" >&6
11528 test "x$with_signed_char" != xyes && NCURSES_SBOOL="char"
11530 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
11531 echo "$as_me:11531: checking if you want SIGWINCH handler" >&5
11532 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
11534 # Check whether --enable-sigwinch or --disable-sigwinch was given.
11535 if test "${enable_sigwinch+set}" = set; then
11536 enableval="$enable_sigwinch"
11537 with_sigwinch=$enableval
11539 with_sigwinch=$with_ext_funcs
11541 echo "$as_me:11541: result: $with_sigwinch" >&5
11542 echo "${ECHO_T}$with_sigwinch" >&6
11543 test "x$with_sigwinch" = xyes &&
11544 cat >>confdefs.h <<\EOF
11545 #define USE_SIGWINCH 1
11548 ### use option --enable-tcap-names to allow user to define new capabilities
11549 echo "$as_me:11549: checking if you want user-definable terminal capabilities like termcap" >&5
11550 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
11552 # Check whether --enable-tcap-names or --disable-tcap-names was given.
11553 if test "${enable_tcap_names+set}" = set; then
11554 enableval="$enable_tcap_names"
11555 with_tcap_names=$enableval
11557 with_tcap_names=$with_ext_funcs
11559 echo "$as_me:11559: result: $with_tcap_names" >&5
11560 echo "${ECHO_T}$with_tcap_names" >&6
11562 test "x$with_tcap_names" = xyes && NCURSES_XNAMES=1
11564 ###############################################################################
11565 # These options are relatively safe to experiment with.
11567 echo "$as_me:11567: checking if you want all development code" >&5
11568 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
11570 # Check whether --with-develop or --without-develop was given.
11571 if test "${with_develop+set}" = set; then
11572 withval="$with_develop"
11573 with_develop=$withval
11577 echo "$as_me:11577: result: $with_develop" >&5
11578 echo "${ECHO_T}$with_develop" >&6
11580 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
11581 echo "$as_me:11581: checking if you want hard-tabs code" >&5
11582 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
11584 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
11585 if test "${enable_hard_tabs+set}" = set; then
11586 enableval="$enable_hard_tabs"
11589 enable_hard_tabs=$with_develop
11591 echo "$as_me:11591: result: $enable_hard_tabs" >&5
11592 echo "${ECHO_T}$enable_hard_tabs" >&6
11593 test "x$enable_hard_tabs" = xyes &&
11594 cat >>confdefs.h <<\EOF
11595 #define USE_HARD_TABS 1
11598 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
11599 echo "$as_me:11599: checking if you want limited support for xmc" >&5
11600 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
11602 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
11603 if test "${enable_xmc_glitch+set}" = set; then
11604 enableval="$enable_xmc_glitch"
11607 enable_xmc_glitch=$with_develop
11609 echo "$as_me:11609: result: $enable_xmc_glitch" >&5
11610 echo "${ECHO_T}$enable_xmc_glitch" >&6
11611 test "x$enable_xmc_glitch" = xyes &&
11612 cat >>confdefs.h <<\EOF
11613 #define USE_XMC_SUPPORT 1
11616 ###############################################################################
11617 # These are just experimental, probably should not be in a package:
11619 echo "$as_me:11619: checking if you do not want to assume colors are white-on-black" >&5
11620 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
11622 # Check whether --enable-assumed-color or --disable-assumed-color was given.
11623 if test "${enable_assumed_color+set}" = set; then
11624 enableval="$enable_assumed_color"
11625 with_assumed_color=$enableval
11627 with_assumed_color=yes
11629 echo "$as_me:11629: result: $with_assumed_color" >&5
11630 echo "${ECHO_T}$with_assumed_color" >&6
11631 test "x$with_assumed_color" = xyes &&
11632 cat >>confdefs.h <<\EOF
11633 #define USE_ASSUMED_COLOR 1
11636 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
11637 echo "$as_me:11637: checking if you want hashmap scrolling-optimization code" >&5
11638 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
11640 # Check whether --enable-hashmap or --disable-hashmap was given.
11641 if test "${enable_hashmap+set}" = set; then
11642 enableval="$enable_hashmap"
11643 with_hashmap=$enableval
11647 echo "$as_me:11647: result: $with_hashmap" >&5
11648 echo "${ECHO_T}$with_hashmap" >&6
11649 test "x$with_hashmap" = xyes &&
11650 cat >>confdefs.h <<\EOF
11651 #define USE_HASHMAP 1
11654 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
11655 echo "$as_me:11655: checking if you want colorfgbg code" >&5
11656 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
11658 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
11659 if test "${enable_colorfgbg+set}" = set; then
11660 enableval="$enable_colorfgbg"
11661 with_colorfgbg=$enableval
11665 echo "$as_me:11665: result: $with_colorfgbg" >&5
11666 echo "${ECHO_T}$with_colorfgbg" >&6
11667 test "x$with_colorfgbg" = xyes &&
11668 cat >>confdefs.h <<\EOF
11669 #define USE_COLORFGBG 1
11672 ### use option --enable-interop to turn on use of bindings used for interop
11673 echo "$as_me:11673: checking if you want interop bindings" >&5
11674 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
11676 # Check whether --enable-interop or --disable-interop was given.
11677 if test "${enable_interop+set}" = set; then
11678 enableval="$enable_interop"
11679 with_exp_interop=$enableval
11681 with_exp_interop=no
11683 echo "$as_me:11683: result: $with_exp_interop" >&5
11684 echo "${ECHO_T}$with_exp_interop" >&6
11686 NCURSES_INTEROP_FUNCS=0
11687 test "x$with_exp_interop" = xyes && NCURSES_INTEROP_FUNCS=1
11689 # This is still experimental (20080329), but should ultimately be moved to
11690 # the script-block --with-normal, etc.
11692 echo "$as_me:11692: checking if you want to link with the pthread library" >&5
11693 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
11695 # Check whether --with-pthread or --without-pthread was given.
11696 if test "${with_pthread+set}" = set; then
11697 withval="$with_pthread"
11698 with_pthread=$withval
11702 echo "$as_me:11702: result: $with_pthread" >&5
11703 echo "${ECHO_T}$with_pthread" >&6
11705 if test "$with_pthread" != no ; then
11706 echo "$as_me:11706: checking for pthread.h" >&5
11707 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
11708 if test "${ac_cv_header_pthread_h+set}" = set; then
11709 echo $ECHO_N "(cached) $ECHO_C" >&6
11711 cat >conftest.$ac_ext <<_ACEOF
11712 #line 11712 "configure"
11713 #include "confdefs.h"
11714 #include <pthread.h>
11716 if { (eval echo "$as_me:11716: \"$ac_cpp conftest.$ac_ext\"") >&5
11717 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11719 egrep -v '^ *\+' conftest.er1 >conftest.err
11721 cat conftest.err >&5
11722 echo "$as_me:11722: \$? = $ac_status" >&5
11723 (exit $ac_status); } >/dev/null; then
11724 if test -s conftest.err; then
11725 ac_cpp_err=$ac_c_preproc_warn_flag
11732 if test -z "$ac_cpp_err"; then
11733 ac_cv_header_pthread_h=yes
11735 echo "$as_me: failed program was:" >&5
11736 cat conftest.$ac_ext >&5
11737 ac_cv_header_pthread_h=no
11739 rm -f conftest.err conftest.$ac_ext
11741 echo "$as_me:11741: result: $ac_cv_header_pthread_h" >&5
11742 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
11743 if test $ac_cv_header_pthread_h = yes; then
11745 cat >>confdefs.h <<\EOF
11746 #define HAVE_PTHREADS_H 1
11749 for cf_lib_pthread in pthread c_r
11751 echo "$as_me:11751: checking if we can link with the $cf_lib_pthread library" >&5
11752 echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
11753 cf_save_LIBS="$LIBS"
11754 LIBS="-l$cf_lib_pthread $LIBS"
11755 cat >conftest.$ac_ext <<_ACEOF
11756 #line 11756 "configure"
11757 #include "confdefs.h"
11759 #include <pthread.h>
11765 int rc = pthread_create(0,0,0,0);
11766 int r2 = pthread_mutexattr_settype(0, 0);
11772 rm -f conftest.$ac_objext conftest$ac_exeext
11773 if { (eval echo "$as_me:11773: \"$ac_link\"") >&5
11774 (eval $ac_link) 2>&5
11776 echo "$as_me:11776: \$? = $ac_status" >&5
11777 (exit $ac_status); } &&
11778 { ac_try='test -s conftest$ac_exeext'
11779 { (eval echo "$as_me:11779: \"$ac_try\"") >&5
11780 (eval $ac_try) 2>&5
11782 echo "$as_me:11782: \$? = $ac_status" >&5
11783 (exit $ac_status); }; }; then
11786 echo "$as_me: failed program was:" >&5
11787 cat conftest.$ac_ext >&5
11790 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11791 LIBS="$cf_save_LIBS"
11792 echo "$as_me:11792: result: $with_pthread" >&5
11793 echo "${ECHO_T}$with_pthread" >&6
11794 test "$with_pthread" = yes && break
11797 if test "$with_pthread" = yes ; then
11798 LIBS="-l$cf_lib_pthread $LIBS"
11800 cat >>confdefs.h <<\EOF
11801 #define HAVE_LIBPTHREADS 1
11805 { { echo "$as_me:11805: error: Cannot link with pthread library" >&5
11806 echo "$as_me: error: Cannot link with pthread library" >&2;}
11807 { (exit 1); exit 1; }; }
11814 if test "x$with_pthread" != xno; then
11815 echo "$as_me:11815: checking for pthread_kill" >&5
11816 echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6
11817 if test "${ac_cv_func_pthread_kill+set}" = set; then
11818 echo $ECHO_N "(cached) $ECHO_C" >&6
11820 cat >conftest.$ac_ext <<_ACEOF
11821 #line 11821 "configure"
11822 #include "confdefs.h"
11823 /* System header to define __stub macros and hopefully few prototypes,
11824 which can conflict with char pthread_kill (); below. */
11825 #include <assert.h>
11826 /* Override any gcc2 internal prototype to avoid an error. */
11830 /* We use char because int might match the return type of a gcc2
11831 builtin and then its argument prototype would still apply. */
11832 char pthread_kill ();
11838 /* The GNU C library defines this for functions which it implements
11839 to always fail with ENOSYS. Some functions are actually named
11840 something starting with __ and the normal name is an alias. */
11841 #if defined (__stub_pthread_kill) || defined (__stub___pthread_kill)
11844 f = pthread_kill; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
11851 rm -f conftest.$ac_objext conftest$ac_exeext
11852 if { (eval echo "$as_me:11852: \"$ac_link\"") >&5
11853 (eval $ac_link) 2>&5
11855 echo "$as_me:11855: \$? = $ac_status" >&5
11856 (exit $ac_status); } &&
11857 { ac_try='test -s conftest$ac_exeext'
11858 { (eval echo "$as_me:11858: \"$ac_try\"") >&5
11859 (eval $ac_try) 2>&5
11861 echo "$as_me:11861: \$? = $ac_status" >&5
11862 (exit $ac_status); }; }; then
11863 ac_cv_func_pthread_kill=yes
11865 echo "$as_me: failed program was:" >&5
11866 cat conftest.$ac_ext >&5
11867 ac_cv_func_pthread_kill=no
11869 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11871 echo "$as_me:11871: result: $ac_cv_func_pthread_kill" >&5
11872 echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6
11873 if test $ac_cv_func_pthread_kill = yes; then
11875 echo "$as_me:11875: checking if you want to allow EINTR in wgetch with pthreads" >&5
11876 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
11878 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
11879 if test "${enable_pthreads_eintr+set}" = set; then
11880 enableval="$enable_pthreads_eintr"
11881 use_pthreads_eintr=$enableval
11883 use_pthreads_eintr=no
11885 echo "$as_me:11885: result: $use_pthreads_eintr" >&5
11886 echo "${ECHO_T}$use_pthreads_eintr" >&6
11887 if test "x$use_pthreads_eintr" = xyes ; then
11889 cat >>confdefs.h <<\EOF
11890 #define USE_PTHREADS_EINTR 1
11896 echo "$as_me:11896: checking if you want to use weak-symbols for pthreads" >&5
11897 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
11899 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
11900 if test "${enable_weak_symbols+set}" = set; then
11901 enableval="$enable_weak_symbols"
11902 use_weak_symbols=$enableval
11904 use_weak_symbols=no
11906 echo "$as_me:11906: result: $use_weak_symbols" >&5
11907 echo "${ECHO_T}$use_weak_symbols" >&6
11908 if test "x$use_weak_symbols" = xyes ; then
11910 echo "$as_me:11910: checking if $CC supports weak symbols" >&5
11911 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
11912 if test "${cf_cv_weak_symbols+set}" = set; then
11913 echo $ECHO_N "(cached) $ECHO_C" >&6
11916 cat >conftest.$ac_ext <<_ACEOF
11917 #line 11917 "configure"
11918 #include "confdefs.h"
11925 #if defined(__GNUC__)
11926 # if defined __USE_ISOC99
11927 # define _cat_pragma(exp) _Pragma(#exp)
11928 # define _weak_pragma(exp) _cat_pragma(weak name)
11930 # define _weak_pragma(exp)
11932 # define _declare(name) __extension__ extern __typeof__(name) name
11933 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
11936 weak_symbol(fopen);
11942 rm -f conftest.$ac_objext
11943 if { (eval echo "$as_me:11943: \"$ac_compile\"") >&5
11944 (eval $ac_compile) 2>&5
11946 echo "$as_me:11946: \$? = $ac_status" >&5
11947 (exit $ac_status); } &&
11948 { ac_try='test -s conftest.$ac_objext'
11949 { (eval echo "$as_me:11949: \"$ac_try\"") >&5
11950 (eval $ac_try) 2>&5
11952 echo "$as_me:11952: \$? = $ac_status" >&5
11953 (exit $ac_status); }; }; then
11954 cf_cv_weak_symbols=yes
11956 echo "$as_me: failed program was:" >&5
11957 cat conftest.$ac_ext >&5
11958 cf_cv_weak_symbols=no
11960 rm -f conftest.$ac_objext conftest.$ac_ext
11963 echo "$as_me:11963: result: $cf_cv_weak_symbols" >&5
11964 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
11967 cf_cv_weak_symbols=no
11970 if test "x$cf_cv_weak_symbols" = xyes ; then
11972 cat >>confdefs.h <<\EOF
11973 #define USE_WEAK_SYMBOLS 1
11980 if test "x$with_pthread" = "xyes" ; then
11982 cat >>confdefs.h <<\EOF
11983 #define USE_PTHREADS 1
11986 enable_reentrant=yes
11987 if test "x$cf_cv_weak_symbols" = xyes ; then
11992 # Reentrant code has to be opaque; there's little advantage to making ncurses
11993 # opaque outside of that, so there is no --enable-opaque option. We can use
11994 # this option without --with-pthreads, but this will be always set for
11996 echo "$as_me:11996: checking if you want experimental reentrant code" >&5
11997 echo $ECHO_N "checking if you want experimental reentrant code... $ECHO_C" >&6
11999 # Check whether --enable-reentrant or --disable-reentrant was given.
12000 if test "${enable_reentrant+set}" = set; then
12001 enableval="$enable_reentrant"
12002 with_reentrant=$enableval
12006 echo "$as_me:12006: result: $with_reentrant" >&5
12007 echo "${ECHO_T}$with_reentrant" >&6
12008 if test "x$with_reentrant" = xyes ; then
12009 cf_cv_enable_reentrant=1
12010 cf_cv_enable_opaque="NCURSES_INTERNALS"
12013 if test "x$cf_cv_weak_symbols" = xyes ; then
12015 # remove pthread library from $LIBS
12016 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
12018 TEST_LIBS="-lpthread $TEST_LIBS"
12019 TEST_LIBS2="-lpthread $TEST_LIBS2"
12021 LIB_SUFFIX="t${LIB_SUFFIX}"
12024 cat >>confdefs.h <<\EOF
12025 #define USE_REENTRANT 1
12028 if test "${with_abi_version+set}" != set; then
12029 case $cf_cv_rel_version in
12031 cf_cv_rel_version=6.0
12032 cf_cv_abi_version=6
12033 { echo "$as_me:12033: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
12034 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
12040 cf_cv_enable_reentrant=0
12041 cf_cv_enable_opaque="NCURSES_OPAQUE"
12043 NCURSES_SIZE_T=short
12046 ### Allow using a different wrap-prefix
12047 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
12048 echo "$as_me:12048: checking for prefix used to wrap public variables" >&5
12049 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
12051 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
12052 if test "${with_wrap_prefix+set}" = set; then
12053 withval="$with_wrap_prefix"
12054 NCURSES_WRAP_PREFIX=$withval
12056 NCURSES_WRAP_PREFIX=_nc_
12058 echo "$as_me:12058: result: $NCURSES_WRAP_PREFIX" >&5
12059 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
12061 NCURSES_WRAP_PREFIX=_nc_
12064 cat >>confdefs.h <<EOF
12065 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
12068 echo "$as_me:12068: checking if you want experimental safe-sprintf code" >&5
12069 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
12071 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
12072 if test "${enable_safe_sprintf+set}" = set; then
12073 enableval="$enable_safe_sprintf"
12074 with_safe_sprintf=$enableval
12076 with_safe_sprintf=no
12078 echo "$as_me:12078: result: $with_safe_sprintf" >&5
12079 echo "${ECHO_T}$with_safe_sprintf" >&6
12080 test "x$with_safe_sprintf" = xyes &&
12081 cat >>confdefs.h <<\EOF
12082 #define USE_SAFE_SPRINTF 1
12085 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
12086 # when hashmap is used scroll hints are useless
12087 if test "$with_hashmap" = no ; then
12088 echo "$as_me:12088: checking if you want to experiment without scrolling-hints code" >&5
12089 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
12091 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
12092 if test "${enable_scroll_hints+set}" = set; then
12093 enableval="$enable_scroll_hints"
12094 with_scroll_hints=$enableval
12096 with_scroll_hints=yes
12098 echo "$as_me:12098: result: $with_scroll_hints" >&5
12099 echo "${ECHO_T}$with_scroll_hints" >&6
12100 test "x$with_scroll_hints" = xyes &&
12101 cat >>confdefs.h <<\EOF
12102 #define USE_SCROLL_HINTS 1
12107 echo "$as_me:12107: checking if you want experimental wgetch-events code" >&5
12108 echo $ECHO_N "checking if you want experimental wgetch-events code... $ECHO_C" >&6
12110 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
12111 if test "${enable_wgetch_events+set}" = set; then
12112 enableval="$enable_wgetch_events"
12113 with_wgetch_events=$enableval
12115 with_wgetch_events=no
12117 echo "$as_me:12117: result: $with_wgetch_events" >&5
12118 echo "${ECHO_T}$with_wgetch_events" >&6
12119 test "x$with_wgetch_events" = xyes &&
12120 cat >>confdefs.h <<\EOF
12121 #define NCURSES_WGETCH_EVENTS 1
12124 ###############################################################################
12126 ### use option --disable-echo to suppress full display compiling commands
12128 echo "$as_me:12128: checking if you want to see long compiling messages" >&5
12129 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
12131 # Check whether --enable-echo or --disable-echo was given.
12132 if test "${enable_echo+set}" = set; then
12133 enableval="$enable_echo"
12134 test "$enableval" != no && enableval=yes
12135 if test "$enableval" != "yes" ; then
12138 ECHO_LD='@echo linking $@;'
12139 RULE_CC='@echo compiling $<'
12140 SHOW_CC='@echo compiling $@'
12162 echo "$as_me:12162: result: $enableval" >&5
12163 echo "${ECHO_T}$enableval" >&6
12165 if test "x$enable_echo" = xyes; then
12168 ECHO_LINK='@ echo linking $@ ... ;'
12169 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
12170 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
12173 ### use option --enable-warnings to turn on all gcc warnings
12174 echo "$as_me:12174: checking if you want to see compiler warnings" >&5
12175 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
12177 # Check whether --enable-warnings or --disable-warnings was given.
12178 if test "${enable_warnings+set}" = set; then
12179 enableval="$enable_warnings"
12180 with_warnings=$enableval
12182 echo "$as_me:12182: result: $with_warnings" >&5
12183 echo "${ECHO_T}$with_warnings" >&6
12185 if test "x$with_warnings" = "xyes"; then
12187 ADAFLAGS="$ADAFLAGS -gnatg"
12191 if test "$GCC" = yes ; then
12194 echo "$as_me:12194: checking if this is really Intel C compiler" >&5
12195 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
12196 cf_save_CFLAGS="$CFLAGS"
12197 CFLAGS="$CFLAGS -no-gcc"
12198 cat >conftest.$ac_ext <<_ACEOF
12199 #line 12199 "configure"
12200 #include "confdefs.h"
12206 #ifdef __INTEL_COMPILER
12215 rm -f conftest.$ac_objext
12216 if { (eval echo "$as_me:12216: \"$ac_compile\"") >&5
12217 (eval $ac_compile) 2>&5
12219 echo "$as_me:12219: \$? = $ac_status" >&5
12220 (exit $ac_status); } &&
12221 { ac_try='test -s conftest.$ac_objext'
12222 { (eval echo "$as_me:12222: \"$ac_try\"") >&5
12223 (eval $ac_try) 2>&5
12225 echo "$as_me:12225: \$? = $ac_status" >&5
12226 (exit $ac_status); }; }; then
12228 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
12231 echo "$as_me: failed program was:" >&5
12232 cat conftest.$ac_ext >&5
12234 rm -f conftest.$ac_objext conftest.$ac_ext
12235 CFLAGS="$cf_save_CFLAGS"
12236 echo "$as_me:12236: result: $INTEL_COMPILER" >&5
12237 echo "${ECHO_T}$INTEL_COMPILER" >&6
12244 if test "$GCC" = yes ; then
12245 echo "$as_me:12245: checking if this is really Clang C compiler" >&5
12246 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
12247 cf_save_CFLAGS="$CFLAGS"
12248 CFLAGS="$CFLAGS -Qunused-arguments"
12249 cat >conftest.$ac_ext <<_ACEOF
12250 #line 12250 "configure"
12251 #include "confdefs.h"
12266 rm -f conftest.$ac_objext
12267 if { (eval echo "$as_me:12267: \"$ac_compile\"") >&5
12268 (eval $ac_compile) 2>&5
12270 echo "$as_me:12270: \$? = $ac_status" >&5
12271 (exit $ac_status); } &&
12272 { ac_try='test -s conftest.$ac_objext'
12273 { (eval echo "$as_me:12273: \"$ac_try\"") >&5
12274 (eval $ac_try) 2>&5
12276 echo "$as_me:12276: \$? = $ac_status" >&5
12277 (exit $ac_status); }; }; then
12279 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
12282 echo "$as_me: failed program was:" >&5
12283 cat conftest.$ac_ext >&5
12285 rm -f conftest.$ac_objext conftest.$ac_ext
12286 CFLAGS="$cf_save_CFLAGS"
12287 echo "$as_me:12287: result: $CLANG_COMPILER" >&5
12288 echo "${ECHO_T}$CLANG_COMPILER" >&6
12291 cat > conftest.$ac_ext <<EOF
12292 #line 12292 "${as_me:-configure}"
12293 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
12296 if test "$INTEL_COMPILER" = yes
12298 # The "-wdXXX" options suppress warnings:
12299 # remark #1419: external declaration in primary source file
12300 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
12301 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
12302 # remark #193: zero used for undefined preprocessing identifier
12303 # remark #593: variable "curs_sb_left_arrow" was set but never used
12304 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
12305 # remark #869: parameter "tw" was never referenced
12306 # remark #981: operands are evaluated in unspecified order
12307 # warning #279: controlling expression is constant
12309 { echo "$as_me:12309: checking for $CC warning options..." >&5
12310 echo "$as_me: checking for $CC warning options..." >&6;}
12311 cf_save_CFLAGS="$CFLAGS"
12312 EXTRA_CFLAGS="-Wall"
12324 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
12325 if { (eval echo "$as_me:12325: \"$ac_compile\"") >&5
12326 (eval $ac_compile) 2>&5
12328 echo "$as_me:12328: \$? = $ac_status" >&5
12329 (exit $ac_status); }; then
12330 test -n "$verbose" && echo "$as_me:12330: result: ... -$cf_opt" >&5
12331 echo "${ECHO_T}... -$cf_opt" >&6
12332 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
12335 CFLAGS="$cf_save_CFLAGS"
12337 elif test "$GCC" = yes
12339 { echo "$as_me:12339: checking for $CC warning options..." >&5
12340 echo "$as_me: checking for $CC warning options..." >&6;}
12341 cf_save_CFLAGS="$CFLAGS"
12344 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
12345 for cf_opt in W Wall \
12346 Wbad-function-cast \
12350 Wmissing-declarations \
12351 Wmissing-prototypes \
12355 Wstrict-prototypes \
12356 Wundef $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum
12358 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
12359 if { (eval echo "$as_me:12359: \"$ac_compile\"") >&5
12360 (eval $ac_compile) 2>&5
12362 echo "$as_me:12362: \$? = $ac_status" >&5
12363 (exit $ac_status); }; then
12364 test -n "$verbose" && echo "$as_me:12364: result: ... -$cf_opt" >&5
12365 echo "${ECHO_T}... -$cf_opt" >&6
12366 case $cf_opt in #(vi
12368 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
12371 case $GCC_VERSION in
12373 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
12375 echo "${as_me:-configure}:12375: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
12380 Wpointer-arith) #(vi
12381 case $GCC_VERSION in
12383 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
12385 echo "${as_me:-configure}:12385: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
12391 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
12394 CFLAGS="$cf_save_CFLAGS"
12398 if test "x$cf_with_cxx" = xyes ; then
12402 if test "$GCC" = yes ; then
12405 echo "$as_me:12405: checking if this is really Intel C++ compiler" >&5
12406 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
12407 cf_save_CFLAGS="$CXXFLAGS"
12408 CXXFLAGS="$CXXFLAGS -no-gcc"
12409 cat >conftest.$ac_ext <<_ACEOF
12410 #line 12410 "configure"
12411 #include "confdefs.h"
12417 #ifdef __INTEL_COMPILER
12426 rm -f conftest.$ac_objext
12427 if { (eval echo "$as_me:12427: \"$ac_compile\"") >&5
12428 (eval $ac_compile) 2>&5
12430 echo "$as_me:12430: \$? = $ac_status" >&5
12431 (exit $ac_status); } &&
12432 { ac_try='test -s conftest.$ac_objext'
12433 { (eval echo "$as_me:12433: \"$ac_try\"") >&5
12434 (eval $ac_try) 2>&5
12436 echo "$as_me:12436: \$? = $ac_status" >&5
12437 (exit $ac_status); }; }; then
12438 INTEL_CPLUSPLUS=yes
12439 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
12442 echo "$as_me: failed program was:" >&5
12443 cat conftest.$ac_ext >&5
12445 rm -f conftest.$ac_objext conftest.$ac_ext
12446 CXXFLAGS="$cf_save_CFLAGS"
12447 echo "$as_me:12447: result: $INTEL_CPLUSPLUS" >&5
12448 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
12455 if test "$GCC" = yes ; then
12456 echo "$as_me:12456: checking if this is really Clang C++ compiler" >&5
12457 echo $ECHO_N "checking if this is really Clang C++ compiler... $ECHO_C" >&6
12458 cf_save_CFLAGS="$CXXFLAGS"
12459 CXXFLAGS="$CXXFLAGS -Qunused-arguments"
12460 cat >conftest.$ac_ext <<_ACEOF
12461 #line 12461 "configure"
12462 #include "confdefs.h"
12477 rm -f conftest.$ac_objext
12478 if { (eval echo "$as_me:12478: \"$ac_compile\"") >&5
12479 (eval $ac_compile) 2>&5
12481 echo "$as_me:12481: \$? = $ac_status" >&5
12482 (exit $ac_status); } &&
12483 { ac_try='test -s conftest.$ac_objext'
12484 { (eval echo "$as_me:12484: \"$ac_try\"") >&5
12485 (eval $ac_try) 2>&5
12487 echo "$as_me:12487: \$? = $ac_status" >&5
12488 (exit $ac_status); }; }; then
12489 CLANG_CPLUSPLUS=yes
12490 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
12493 echo "$as_me: failed program was:" >&5
12494 cat conftest.$ac_ext >&5
12496 rm -f conftest.$ac_objext conftest.$ac_ext
12497 CXXFLAGS="$cf_save_CFLAGS"
12498 echo "$as_me:12498: result: $CLANG_CPLUSPLUS" >&5
12499 echo "${ECHO_T}$CLANG_CPLUSPLUS" >&6
12503 ac_cpp='$CXXCPP $CPPFLAGS'
12504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12505 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12507 ac_main_return=return
12509 cat > conftest.$ac_ext <<EOF
12510 #line 12510 "configure"
12511 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
12514 if test "$INTEL_CPLUSPLUS" = yes
12516 # The "-wdXXX" options suppress warnings:
12517 # remark #1419: external declaration in primary source file
12518 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
12519 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
12520 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
12521 # remark #193: zero used for undefined preprocessing identifier
12522 # remark #593: variable "curs_sb_left_arrow" was set but never used
12523 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
12524 # remark #869: parameter "tw" was never referenced
12525 # remark #981: operands are evaluated in unspecified order
12526 # warning #269: invalid format string conversion
12528 { echo "$as_me:12528: checking for $CC warning options..." >&5
12529 echo "$as_me: checking for $CC warning options..." >&6;}
12530 cf_save_CXXFLAGS="$CXXFLAGS"
12531 EXTRA_CXXFLAGS="-Wall"
12544 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
12545 if { (eval echo "$as_me:12545: \"$ac_compile\"") >&5
12546 (eval $ac_compile) 2>&5
12548 echo "$as_me:12548: \$? = $ac_status" >&5
12549 (exit $ac_status); }; then
12550 test -n "$verbose" && echo "$as_me:12550: result: ... -$cf_opt" >&5
12551 echo "${ECHO_T}... -$cf_opt" >&6
12552 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
12555 CXXFLAGS="$cf_save_CXXFLAGS"
12557 elif test "$GXX" = yes
12559 { echo "$as_me:12559: checking for $CXX warning options..." >&5
12560 echo "$as_me: checking for $CXX warning options..." >&6;}
12561 cf_save_CXXFLAGS="$CXXFLAGS"
12562 EXTRA_CXXFLAGS="-W -Wall"
12563 cf_gxx_extra_warnings=""
12564 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
12565 case "$GCC_VERSION" in
12569 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
12575 Woverloaded-virtual \
12581 Wmissing-prototypes \
12584 Wstrict-prototypes \
12585 Wundef $cf_gxx_extra_warnings Wno-unused
12587 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
12588 if { (eval echo "$as_me:12588: \"$ac_compile\"") >&5
12589 (eval $ac_compile) 2>&5
12591 echo "$as_me:12591: \$? = $ac_status" >&5
12592 (exit $ac_status); }; then
12593 test -n "$verbose" && echo "$as_me:12593: result: ... -$cf_opt" >&5
12594 echo "${ECHO_T}... -$cf_opt" >&6
12595 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
12597 test -n "$verbose" && echo "$as_me:12597: result: ... no -$cf_opt" >&5
12598 echo "${ECHO_T}... no -$cf_opt" >&6
12601 CXXFLAGS="$cf_save_CXXFLAGS"
12606 ac_cpp='$CPP $CPPFLAGS'
12607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12610 ac_main_return=return
12615 if test "$GCC" = yes
12617 cat > conftest.i <<EOF
12619 #define GCC_PRINTF 0
12622 #define GCC_SCANF 0
12624 #ifndef GCC_NORETURN
12625 #define GCC_NORETURN /* nothing */
12628 #define GCC_UNUSED /* nothing */
12631 if test "$GCC" = yes
12633 { echo "$as_me:12633: checking for $CC __attribute__ directives..." >&5
12634 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
12635 cat > conftest.$ac_ext <<EOF
12636 #line 12636 "${as_me:-configure}"
12637 #include "confdefs.h"
12638 #include "conftest.h"
12639 #include "conftest.i"
12641 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
12643 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
12646 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
12648 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
12650 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
12651 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
12652 extern void foo(void) GCC_NORETURN;
12653 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
12655 cf_printf_attribute=no
12656 cf_scanf_attribute=no
12657 for cf_attribute in scanf printf unused noreturn
12660 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
12662 cf_directive="__attribute__(($cf_attribute))"
12663 echo "checking for $CC $cf_directive" 1>&5
12665 case $cf_attribute in #(vi
12667 cf_printf_attribute=yes
12668 cat >conftest.h <<EOF
12669 #define GCC_$cf_ATTRIBUTE 1
12673 cf_scanf_attribute=yes
12674 cat >conftest.h <<EOF
12675 #define GCC_$cf_ATTRIBUTE 1
12679 cat >conftest.h <<EOF
12680 #define GCC_$cf_ATTRIBUTE $cf_directive
12685 if { (eval echo "$as_me:12685: \"$ac_compile\"") >&5
12686 (eval $ac_compile) 2>&5
12688 echo "$as_me:12688: \$? = $ac_status" >&5
12689 (exit $ac_status); }; then
12690 test -n "$verbose" && echo "$as_me:12690: result: ... $cf_attribute" >&5
12691 echo "${ECHO_T}... $cf_attribute" >&6
12692 cat conftest.h >>confdefs.h
12693 case $cf_attribute in #(vi
12696 cat >>confdefs.h <<EOF
12697 #define GCC_NORETURN $cf_directive
12702 cf_value='/* nothing */'
12703 if test "$cf_printf_attribute" != no ; then
12704 cf_value='__attribute__((format(printf,fmt,var)))'
12706 cat >>confdefs.h <<\EOF
12707 #define GCC_PRINTF 1
12712 cat >>confdefs.h <<EOF
12713 #define GCC_PRINTFLIKE(fmt,var) $cf_value
12718 cf_value='/* nothing */'
12719 if test "$cf_scanf_attribute" != no ; then
12720 cf_value='__attribute__((format(scanf,fmt,var)))'
12722 cat >>confdefs.h <<\EOF
12723 #define GCC_SCANF 1
12728 cat >>confdefs.h <<EOF
12729 #define GCC_SCANFLIKE(fmt,var) $cf_value
12735 cat >>confdefs.h <<EOF
12736 #define GCC_UNUSED $cf_directive
12744 fgrep define conftest.i >>confdefs.h
12749 echo "$as_me:12749: checking if you want to work around bogus compiler/loader warnings" >&5
12750 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
12752 # Check whether --enable-string-hacks or --disable-string-hacks was given.
12753 if test "${enable_string_hacks+set}" = set; then
12754 enableval="$enable_string_hacks"
12755 with_string_hacks=$enableval
12757 with_string_hacks=no
12759 echo "$as_me:12759: result: $with_string_hacks" >&5
12760 echo "${ECHO_T}$with_string_hacks" >&6
12762 if test "x$with_string_hacks" = "xyes"; then
12764 cat >>confdefs.h <<\EOF
12765 #define USE_STRING_HACKS 1
12768 { echo "$as_me:12768: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
12769 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
12771 for ac_func in strlcat strlcpy snprintf
12773 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12774 echo "$as_me:12774: checking for $ac_func" >&5
12775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12776 if eval "test \"\${$as_ac_var+set}\" = set"; then
12777 echo $ECHO_N "(cached) $ECHO_C" >&6
12779 cat >conftest.$ac_ext <<_ACEOF
12780 #line 12780 "configure"
12781 #include "confdefs.h"
12782 /* System header to define __stub macros and hopefully few prototypes,
12783 which can conflict with char $ac_func (); below. */
12784 #include <assert.h>
12785 /* Override any gcc2 internal prototype to avoid an error. */
12789 /* We use char because int might match the return type of a gcc2
12790 builtin and then its argument prototype would still apply. */
12797 /* The GNU C library defines this for functions which it implements
12798 to always fail with ENOSYS. Some functions are actually named
12799 something starting with __ and the normal name is an alias. */
12800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12803 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
12810 rm -f conftest.$ac_objext conftest$ac_exeext
12811 if { (eval echo "$as_me:12811: \"$ac_link\"") >&5
12812 (eval $ac_link) 2>&5
12814 echo "$as_me:12814: \$? = $ac_status" >&5
12815 (exit $ac_status); } &&
12816 { ac_try='test -s conftest$ac_exeext'
12817 { (eval echo "$as_me:12817: \"$ac_try\"") >&5
12818 (eval $ac_try) 2>&5
12820 echo "$as_me:12820: \$? = $ac_status" >&5
12821 (exit $ac_status); }; }; then
12822 eval "$as_ac_var=yes"
12824 echo "$as_me: failed program was:" >&5
12825 cat conftest.$ac_ext >&5
12826 eval "$as_ac_var=no"
12828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12830 echo "$as_me:12830: result: `eval echo '${'$as_ac_var'}'`" >&5
12831 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12832 if test `eval echo '${'$as_ac_var'}'` = yes; then
12833 cat >>confdefs.h <<EOF
12834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12842 ### use option --enable-assertions to turn on generation of assertion code
12843 echo "$as_me:12843: checking if you want to enable runtime assertions" >&5
12844 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
12846 # Check whether --enable-assertions or --disable-assertions was given.
12847 if test "${enable_assertions+set}" = set; then
12848 enableval="$enable_assertions"
12849 with_assertions=$enableval
12853 echo "$as_me:12853: result: $with_assertions" >&5
12854 echo "${ECHO_T}$with_assertions" >&6
12857 if test "$with_assertions" = no
12859 CPPFLAGS="$CPPFLAGS -DNDEBUG"
12862 ADAFLAGS="$ADAFLAGS -gnata"
12867 ### use option --disable-leaks to suppress "permanent" leaks, for testing
12869 echo "$as_me:12869: checking if you want to use dmalloc for testing" >&5
12870 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
12872 # Check whether --with-dmalloc or --without-dmalloc was given.
12873 if test "${with_dmalloc+set}" = set; then
12874 withval="$with_dmalloc"
12876 cat >>confdefs.h <<EOF
12877 #define USE_DMALLOC 1
12880 : ${with_cflags:=-g}
12881 : ${with_no_leaks:=yes}
12886 echo "$as_me:12886: result: ${with_dmalloc:-no}" >&5
12887 echo "${ECHO_T}${with_dmalloc:-no}" >&6
12889 case .$with_cflags in #(vi
12891 case .$CFLAGS in #(vi
12899 cf_new_extra_cppflags=
12901 for cf_add_cflags in -g
12903 case $cf_fix_cppflags in
12905 case $cf_add_cflags in #(vi
12906 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
12907 case $cf_add_cflags in
12909 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12911 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12912 && test -z "${cf_tst_cflags}" \
12913 && cf_fix_cppflags=yes
12915 if test $cf_fix_cppflags = yes ; then
12916 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12918 elif test "${cf_tst_cflags}" = "\"'" ; then
12919 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12924 case "$CPPFLAGS" in
12925 *$cf_add_cflags) #(vi
12928 case $cf_add_cflags in #(vi
12930 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12932 CPPFLAGS=`echo "$CPPFLAGS" | \
12933 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12934 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12938 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12943 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12948 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12950 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12952 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12953 && test -z "${cf_tst_cflags}" \
12954 && cf_fix_cppflags=no
12959 if test -n "$cf_new_cflags" ; then
12961 CFLAGS="$CFLAGS $cf_new_cflags"
12964 if test -n "$cf_new_cppflags" ; then
12966 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12969 if test -n "$cf_new_extra_cppflags" ; then
12971 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12979 if test "$with_dmalloc" = yes ; then
12980 echo "$as_me:12980: checking for dmalloc.h" >&5
12981 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
12982 if test "${ac_cv_header_dmalloc_h+set}" = set; then
12983 echo $ECHO_N "(cached) $ECHO_C" >&6
12985 cat >conftest.$ac_ext <<_ACEOF
12986 #line 12986 "configure"
12987 #include "confdefs.h"
12988 #include <dmalloc.h>
12990 if { (eval echo "$as_me:12990: \"$ac_cpp conftest.$ac_ext\"") >&5
12991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12993 egrep -v '^ *\+' conftest.er1 >conftest.err
12995 cat conftest.err >&5
12996 echo "$as_me:12996: \$? = $ac_status" >&5
12997 (exit $ac_status); } >/dev/null; then
12998 if test -s conftest.err; then
12999 ac_cpp_err=$ac_c_preproc_warn_flag
13006 if test -z "$ac_cpp_err"; then
13007 ac_cv_header_dmalloc_h=yes
13009 echo "$as_me: failed program was:" >&5
13010 cat conftest.$ac_ext >&5
13011 ac_cv_header_dmalloc_h=no
13013 rm -f conftest.err conftest.$ac_ext
13015 echo "$as_me:13015: result: $ac_cv_header_dmalloc_h" >&5
13016 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
13017 if test $ac_cv_header_dmalloc_h = yes; then
13019 echo "$as_me:13019: checking for dmalloc_debug in -ldmalloc" >&5
13020 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
13021 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
13022 echo $ECHO_N "(cached) $ECHO_C" >&6
13024 ac_check_lib_save_LIBS=$LIBS
13025 LIBS="-ldmalloc $LIBS"
13026 cat >conftest.$ac_ext <<_ACEOF
13027 #line 13027 "configure"
13028 #include "confdefs.h"
13030 /* Override any gcc2 internal prototype to avoid an error. */
13034 /* We use char because int might match the return type of a gcc2
13035 builtin and then its argument prototype would still apply. */
13036 char dmalloc_debug ();
13045 rm -f conftest.$ac_objext conftest$ac_exeext
13046 if { (eval echo "$as_me:13046: \"$ac_link\"") >&5
13047 (eval $ac_link) 2>&5
13049 echo "$as_me:13049: \$? = $ac_status" >&5
13050 (exit $ac_status); } &&
13051 { ac_try='test -s conftest$ac_exeext'
13052 { (eval echo "$as_me:13052: \"$ac_try\"") >&5
13053 (eval $ac_try) 2>&5
13055 echo "$as_me:13055: \$? = $ac_status" >&5
13056 (exit $ac_status); }; }; then
13057 ac_cv_lib_dmalloc_dmalloc_debug=yes
13059 echo "$as_me: failed program was:" >&5
13060 cat conftest.$ac_ext >&5
13061 ac_cv_lib_dmalloc_dmalloc_debug=no
13063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13064 LIBS=$ac_check_lib_save_LIBS
13066 echo "$as_me:13066: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
13067 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
13068 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
13069 cat >>confdefs.h <<EOF
13070 #define HAVE_LIBDMALLOC 1
13073 LIBS="-ldmalloc $LIBS"
13081 echo "$as_me:13081: checking if you want to use dbmalloc for testing" >&5
13082 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
13084 # Check whether --with-dbmalloc or --without-dbmalloc was given.
13085 if test "${with_dbmalloc+set}" = set; then
13086 withval="$with_dbmalloc"
13088 cat >>confdefs.h <<EOF
13089 #define USE_DBMALLOC 1
13092 : ${with_cflags:=-g}
13093 : ${with_no_leaks:=yes}
13098 echo "$as_me:13098: result: ${with_dbmalloc:-no}" >&5
13099 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
13101 case .$with_cflags in #(vi
13103 case .$CFLAGS in #(vi
13111 cf_new_extra_cppflags=
13113 for cf_add_cflags in -g
13115 case $cf_fix_cppflags in
13117 case $cf_add_cflags in #(vi
13118 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
13119 case $cf_add_cflags in
13121 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13123 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13124 && test -z "${cf_tst_cflags}" \
13125 && cf_fix_cppflags=yes
13127 if test $cf_fix_cppflags = yes ; then
13128 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13130 elif test "${cf_tst_cflags}" = "\"'" ; then
13131 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13136 case "$CPPFLAGS" in
13137 *$cf_add_cflags) #(vi
13140 case $cf_add_cflags in #(vi
13142 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13144 CPPFLAGS=`echo "$CPPFLAGS" | \
13145 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13146 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13150 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
13155 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
13160 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13162 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13164 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13165 && test -z "${cf_tst_cflags}" \
13166 && cf_fix_cppflags=no
13171 if test -n "$cf_new_cflags" ; then
13173 CFLAGS="$CFLAGS $cf_new_cflags"
13176 if test -n "$cf_new_cppflags" ; then
13178 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
13181 if test -n "$cf_new_extra_cppflags" ; then
13183 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
13191 if test "$with_dbmalloc" = yes ; then
13192 echo "$as_me:13192: checking for dbmalloc.h" >&5
13193 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
13194 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
13195 echo $ECHO_N "(cached) $ECHO_C" >&6
13197 cat >conftest.$ac_ext <<_ACEOF
13198 #line 13198 "configure"
13199 #include "confdefs.h"
13200 #include <dbmalloc.h>
13202 if { (eval echo "$as_me:13202: \"$ac_cpp conftest.$ac_ext\"") >&5
13203 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13205 egrep -v '^ *\+' conftest.er1 >conftest.err
13207 cat conftest.err >&5
13208 echo "$as_me:13208: \$? = $ac_status" >&5
13209 (exit $ac_status); } >/dev/null; then
13210 if test -s conftest.err; then
13211 ac_cpp_err=$ac_c_preproc_warn_flag
13218 if test -z "$ac_cpp_err"; then
13219 ac_cv_header_dbmalloc_h=yes
13221 echo "$as_me: failed program was:" >&5
13222 cat conftest.$ac_ext >&5
13223 ac_cv_header_dbmalloc_h=no
13225 rm -f conftest.err conftest.$ac_ext
13227 echo "$as_me:13227: result: $ac_cv_header_dbmalloc_h" >&5
13228 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
13229 if test $ac_cv_header_dbmalloc_h = yes; then
13231 echo "$as_me:13231: checking for debug_malloc in -ldbmalloc" >&5
13232 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
13233 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
13234 echo $ECHO_N "(cached) $ECHO_C" >&6
13236 ac_check_lib_save_LIBS=$LIBS
13237 LIBS="-ldbmalloc $LIBS"
13238 cat >conftest.$ac_ext <<_ACEOF
13239 #line 13239 "configure"
13240 #include "confdefs.h"
13242 /* Override any gcc2 internal prototype to avoid an error. */
13246 /* We use char because int might match the return type of a gcc2
13247 builtin and then its argument prototype would still apply. */
13248 char debug_malloc ();
13257 rm -f conftest.$ac_objext conftest$ac_exeext
13258 if { (eval echo "$as_me:13258: \"$ac_link\"") >&5
13259 (eval $ac_link) 2>&5
13261 echo "$as_me:13261: \$? = $ac_status" >&5
13262 (exit $ac_status); } &&
13263 { ac_try='test -s conftest$ac_exeext'
13264 { (eval echo "$as_me:13264: \"$ac_try\"") >&5
13265 (eval $ac_try) 2>&5
13267 echo "$as_me:13267: \$? = $ac_status" >&5
13268 (exit $ac_status); }; }; then
13269 ac_cv_lib_dbmalloc_debug_malloc=yes
13271 echo "$as_me: failed program was:" >&5
13272 cat conftest.$ac_ext >&5
13273 ac_cv_lib_dbmalloc_debug_malloc=no
13275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13276 LIBS=$ac_check_lib_save_LIBS
13278 echo "$as_me:13278: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
13279 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
13280 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
13281 cat >>confdefs.h <<EOF
13282 #define HAVE_LIBDBMALLOC 1
13285 LIBS="-ldbmalloc $LIBS"
13293 echo "$as_me:13293: checking if you want to use valgrind for testing" >&5
13294 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
13296 # Check whether --with-valgrind or --without-valgrind was given.
13297 if test "${with_valgrind+set}" = set; then
13298 withval="$with_valgrind"
13300 cat >>confdefs.h <<EOF
13301 #define USE_VALGRIND 1
13304 : ${with_cflags:=-g}
13305 : ${with_no_leaks:=yes}
13310 echo "$as_me:13310: result: ${with_valgrind:-no}" >&5
13311 echo "${ECHO_T}${with_valgrind:-no}" >&6
13313 case .$with_cflags in #(vi
13315 case .$CFLAGS in #(vi
13323 cf_new_extra_cppflags=
13325 for cf_add_cflags in -g
13327 case $cf_fix_cppflags in
13329 case $cf_add_cflags in #(vi
13330 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
13331 case $cf_add_cflags in
13333 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13335 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13336 && test -z "${cf_tst_cflags}" \
13337 && cf_fix_cppflags=yes
13339 if test $cf_fix_cppflags = yes ; then
13340 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13342 elif test "${cf_tst_cflags}" = "\"'" ; then
13343 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13348 case "$CPPFLAGS" in
13349 *$cf_add_cflags) #(vi
13352 case $cf_add_cflags in #(vi
13354 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13356 CPPFLAGS=`echo "$CPPFLAGS" | \
13357 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13358 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13362 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
13367 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
13372 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13374 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13376 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13377 && test -z "${cf_tst_cflags}" \
13378 && cf_fix_cppflags=no
13383 if test -n "$cf_new_cflags" ; then
13385 CFLAGS="$CFLAGS $cf_new_cflags"
13388 if test -n "$cf_new_cppflags" ; then
13390 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
13393 if test -n "$cf_new_extra_cppflags" ; then
13395 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
13403 echo "$as_me:13403: checking if you want to perform memory-leak testing" >&5
13404 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
13406 # Check whether --enable-leaks or --disable-leaks was given.
13407 if test "${enable_leaks+set}" = set; then
13408 enableval="$enable_leaks"
13409 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
13411 : ${with_no_leaks:=no}
13413 echo "$as_me:13413: result: $with_no_leaks" >&5
13414 echo "${ECHO_T}$with_no_leaks" >&6
13416 if test "$with_no_leaks" = yes ; then
13418 cat >>confdefs.h <<\EOF
13422 cat >>confdefs.h <<\EOF
13423 #define YY_NO_LEAKS 1
13428 cat >>confdefs.h <<\EOF
13429 #define HAVE_NC_ALLOC_H 1
13432 ### use option --enable-expanded to generate certain macros as functions
13434 # Check whether --enable-expanded or --disable-expanded was given.
13435 if test "${enable_expanded+set}" = set; then
13436 enableval="$enable_expanded"
13437 test "x$enableval" = xyes &&
13438 cat >>confdefs.h <<\EOF
13439 #define NCURSES_EXPANDED 1
13444 ### use option --disable-macros to suppress macros in favor of functions
13446 # Check whether --enable-macros or --disable-macros was given.
13447 if test "${enable_macros+set}" = set; then
13448 enableval="$enable_macros"
13449 test "$enableval" = no &&
13450 cat >>confdefs.h <<\EOF
13451 #define NCURSES_NOMACROS 1
13456 # Normally we only add trace() to the debug-library. Allow this to be
13457 # extended to all models of the ncurses library:
13459 case "$CFLAGS $CPPFLAGS" in
13465 echo "$as_me:13465: checking whether to add trace feature to all models" >&5
13466 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
13468 # Check whether --with-trace or --without-trace was given.
13469 if test "${with_trace+set}" = set; then
13470 withval="$with_trace"
13471 cf_with_trace=$withval
13473 cf_with_trace=$cf_all_traces
13475 echo "$as_me:13475: result: $cf_with_trace" >&5
13476 echo "${ECHO_T}$cf_with_trace" >&6
13478 if test "x$cf_with_trace" = xyes ; then
13485 cf_new_extra_cppflags=
13487 for cf_add_cflags in -DTRACE
13489 case $cf_fix_cppflags in
13491 case $cf_add_cflags in #(vi
13492 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
13493 case $cf_add_cflags in
13495 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13497 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13498 && test -z "${cf_tst_cflags}" \
13499 && cf_fix_cppflags=yes
13501 if test $cf_fix_cppflags = yes ; then
13502 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13504 elif test "${cf_tst_cflags}" = "\"'" ; then
13505 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13510 case "$CPPFLAGS" in
13511 *$cf_add_cflags) #(vi
13514 case $cf_add_cflags in #(vi
13516 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13518 CPPFLAGS=`echo "$CPPFLAGS" | \
13519 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13520 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13524 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
13529 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
13534 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13536 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13538 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13539 && test -z "${cf_tst_cflags}" \
13540 && cf_fix_cppflags=no
13545 if test -n "$cf_new_cflags" ; then
13547 CFLAGS="$CFLAGS $cf_new_cflags"
13550 if test -n "$cf_new_cppflags" ; then
13552 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
13555 if test -n "$cf_new_extra_cppflags" ; then
13557 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
13565 ### Checks for libraries.
13566 case $cf_cv_system_name in #(vi
13570 echo "$as_me:13570: checking for gettimeofday" >&5
13571 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
13572 if test "${ac_cv_func_gettimeofday+set}" = set; then
13573 echo $ECHO_N "(cached) $ECHO_C" >&6
13575 cat >conftest.$ac_ext <<_ACEOF
13576 #line 13576 "configure"
13577 #include "confdefs.h"
13578 /* System header to define __stub macros and hopefully few prototypes,
13579 which can conflict with char gettimeofday (); below. */
13580 #include <assert.h>
13581 /* Override any gcc2 internal prototype to avoid an error. */
13585 /* We use char because int might match the return type of a gcc2
13586 builtin and then its argument prototype would still apply. */
13587 char gettimeofday ();
13593 /* The GNU C library defines this for functions which it implements
13594 to always fail with ENOSYS. Some functions are actually named
13595 something starting with __ and the normal name is an alias. */
13596 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
13599 f = gettimeofday; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
13606 rm -f conftest.$ac_objext conftest$ac_exeext
13607 if { (eval echo "$as_me:13607: \"$ac_link\"") >&5
13608 (eval $ac_link) 2>&5
13610 echo "$as_me:13610: \$? = $ac_status" >&5
13611 (exit $ac_status); } &&
13612 { ac_try='test -s conftest$ac_exeext'
13613 { (eval echo "$as_me:13613: \"$ac_try\"") >&5
13614 (eval $ac_try) 2>&5
13616 echo "$as_me:13616: \$? = $ac_status" >&5
13617 (exit $ac_status); }; }; then
13618 ac_cv_func_gettimeofday=yes
13620 echo "$as_me: failed program was:" >&5
13621 cat conftest.$ac_ext >&5
13622 ac_cv_func_gettimeofday=no
13624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13626 echo "$as_me:13626: result: $ac_cv_func_gettimeofday" >&5
13627 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
13628 if test $ac_cv_func_gettimeofday = yes; then
13630 cat >>confdefs.h <<\EOF
13631 #define HAVE_GETTIMEOFDAY 1
13636 echo "$as_me:13636: checking for gettimeofday in -lbsd" >&5
13637 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
13638 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
13639 echo $ECHO_N "(cached) $ECHO_C" >&6
13641 ac_check_lib_save_LIBS=$LIBS
13643 cat >conftest.$ac_ext <<_ACEOF
13644 #line 13644 "configure"
13645 #include "confdefs.h"
13647 /* Override any gcc2 internal prototype to avoid an error. */
13651 /* We use char because int might match the return type of a gcc2
13652 builtin and then its argument prototype would still apply. */
13653 char gettimeofday ();
13662 rm -f conftest.$ac_objext conftest$ac_exeext
13663 if { (eval echo "$as_me:13663: \"$ac_link\"") >&5
13664 (eval $ac_link) 2>&5
13666 echo "$as_me:13666: \$? = $ac_status" >&5
13667 (exit $ac_status); } &&
13668 { ac_try='test -s conftest$ac_exeext'
13669 { (eval echo "$as_me:13669: \"$ac_try\"") >&5
13670 (eval $ac_try) 2>&5
13672 echo "$as_me:13672: \$? = $ac_status" >&5
13673 (exit $ac_status); }; }; then
13674 ac_cv_lib_bsd_gettimeofday=yes
13676 echo "$as_me: failed program was:" >&5
13677 cat conftest.$ac_ext >&5
13678 ac_cv_lib_bsd_gettimeofday=no
13680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13681 LIBS=$ac_check_lib_save_LIBS
13683 echo "$as_me:13683: result: $ac_cv_lib_bsd_gettimeofday" >&5
13684 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
13685 if test $ac_cv_lib_bsd_gettimeofday = yes; then
13687 cat >>confdefs.h <<\EOF
13688 #define HAVE_GETTIMEOFDAY 1
13698 echo "$as_me:13698: checking if -lm needed for math functions" >&5
13699 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
13700 if test "${cf_cv_need_libm+set}" = set; then
13701 echo $ECHO_N "(cached) $ECHO_C" >&6
13704 cat >conftest.$ac_ext <<_ACEOF
13705 #line 13705 "configure"
13706 #include "confdefs.h"
13714 double x = rand(); printf("result = %g\n", pow(sin(x),x))
13719 rm -f conftest.$ac_objext conftest$ac_exeext
13720 if { (eval echo "$as_me:13720: \"$ac_link\"") >&5
13721 (eval $ac_link) 2>&5
13723 echo "$as_me:13723: \$? = $ac_status" >&5
13724 (exit $ac_status); } &&
13725 { ac_try='test -s conftest$ac_exeext'
13726 { (eval echo "$as_me:13726: \"$ac_try\"") >&5
13727 (eval $ac_try) 2>&5
13729 echo "$as_me:13729: \$? = $ac_status" >&5
13730 (exit $ac_status); }; }; then
13733 echo "$as_me: failed program was:" >&5
13734 cat conftest.$ac_ext >&5
13735 cf_cv_need_libm=yes
13737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13739 echo "$as_me:13739: result: $cf_cv_need_libm" >&5
13740 echo "${ECHO_T}$cf_cv_need_libm" >&6
13741 if test "$cf_cv_need_libm" = yes
13746 ### Checks for header files.
13747 echo "$as_me:13747: checking for ANSI C header files" >&5
13748 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13749 if test "${ac_cv_header_stdc+set}" = set; then
13750 echo $ECHO_N "(cached) $ECHO_C" >&6
13752 cat >conftest.$ac_ext <<_ACEOF
13753 #line 13753 "configure"
13754 #include "confdefs.h"
13755 #include <stdlib.h>
13756 #include <stdarg.h>
13757 #include <string.h>
13761 if { (eval echo "$as_me:13761: \"$ac_cpp conftest.$ac_ext\"") >&5
13762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13764 egrep -v '^ *\+' conftest.er1 >conftest.err
13766 cat conftest.err >&5
13767 echo "$as_me:13767: \$? = $ac_status" >&5
13768 (exit $ac_status); } >/dev/null; then
13769 if test -s conftest.err; then
13770 ac_cpp_err=$ac_c_preproc_warn_flag
13777 if test -z "$ac_cpp_err"; then
13778 ac_cv_header_stdc=yes
13780 echo "$as_me: failed program was:" >&5
13781 cat conftest.$ac_ext >&5
13782 ac_cv_header_stdc=no
13784 rm -f conftest.err conftest.$ac_ext
13786 if test $ac_cv_header_stdc = yes; then
13787 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13788 cat >conftest.$ac_ext <<_ACEOF
13789 #line 13789 "configure"
13790 #include "confdefs.h"
13791 #include <string.h>
13794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13795 egrep "memchr" >/dev/null 2>&1; then
13798 ac_cv_header_stdc=no
13804 if test $ac_cv_header_stdc = yes; then
13805 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13806 cat >conftest.$ac_ext <<_ACEOF
13807 #line 13807 "configure"
13808 #include "confdefs.h"
13809 #include <stdlib.h>
13812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13813 egrep "free" >/dev/null 2>&1; then
13816 ac_cv_header_stdc=no
13822 if test $ac_cv_header_stdc = yes; then
13823 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13824 if test "$cross_compiling" = yes; then
13827 cat >conftest.$ac_ext <<_ACEOF
13828 #line 13828 "configure"
13829 #include "confdefs.h"
13831 #if ((' ' & 0x0FF) == 0x020)
13832 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13833 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13835 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13836 || ('j' <= (c) && (c) <= 'r') \
13837 || ('s' <= (c) && (c) <= 'z'))
13838 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13841 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13846 for (i = 0; i < 256; i++)
13847 if (XOR (islower (i), ISLOWER (i))
13848 || toupper (i) != TOUPPER (i))
13849 $ac_main_return(2);
13850 $ac_main_return (0);
13853 rm -f conftest$ac_exeext
13854 if { (eval echo "$as_me:13854: \"$ac_link\"") >&5
13855 (eval $ac_link) 2>&5
13857 echo "$as_me:13857: \$? = $ac_status" >&5
13858 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13859 { (eval echo "$as_me:13859: \"$ac_try\"") >&5
13860 (eval $ac_try) 2>&5
13862 echo "$as_me:13862: \$? = $ac_status" >&5
13863 (exit $ac_status); }; }; then
13866 echo "$as_me: program exited with status $ac_status" >&5
13867 echo "$as_me: failed program was:" >&5
13868 cat conftest.$ac_ext >&5
13869 ac_cv_header_stdc=no
13871 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13875 echo "$as_me:13875: result: $ac_cv_header_stdc" >&5
13876 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13877 if test $ac_cv_header_stdc = yes; then
13879 cat >>confdefs.h <<\EOF
13880 #define STDC_HEADERS 1
13885 ac_header_dirent=no
13886 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13887 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13888 echo "$as_me:13888: checking for $ac_hdr that defines DIR" >&5
13889 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13891 echo $ECHO_N "(cached) $ECHO_C" >&6
13893 cat >conftest.$ac_ext <<_ACEOF
13894 #line 13894 "configure"
13895 #include "confdefs.h"
13896 #include <sys/types.h>
13908 rm -f conftest.$ac_objext
13909 if { (eval echo "$as_me:13909: \"$ac_compile\"") >&5
13910 (eval $ac_compile) 2>&5
13912 echo "$as_me:13912: \$? = $ac_status" >&5
13913 (exit $ac_status); } &&
13914 { ac_try='test -s conftest.$ac_objext'
13915 { (eval echo "$as_me:13915: \"$ac_try\"") >&5
13916 (eval $ac_try) 2>&5
13918 echo "$as_me:13918: \$? = $ac_status" >&5
13919 (exit $ac_status); }; }; then
13920 eval "$as_ac_Header=yes"
13922 echo "$as_me: failed program was:" >&5
13923 cat conftest.$ac_ext >&5
13924 eval "$as_ac_Header=no"
13926 rm -f conftest.$ac_objext conftest.$ac_ext
13928 echo "$as_me:13928: result: `eval echo '${'$as_ac_Header'}'`" >&5
13929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13931 cat >>confdefs.h <<EOF
13932 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13935 ac_header_dirent=$ac_hdr; break
13939 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13940 if test $ac_header_dirent = dirent.h; then
13941 echo "$as_me:13941: checking for opendir in -ldir" >&5
13942 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
13943 if test "${ac_cv_lib_dir_opendir+set}" = set; then
13944 echo $ECHO_N "(cached) $ECHO_C" >&6
13946 ac_check_lib_save_LIBS=$LIBS
13948 cat >conftest.$ac_ext <<_ACEOF
13949 #line 13949 "configure"
13950 #include "confdefs.h"
13952 /* Override any gcc2 internal prototype to avoid an error. */
13956 /* We use char because int might match the return type of a gcc2
13957 builtin and then its argument prototype would still apply. */
13967 rm -f conftest.$ac_objext conftest$ac_exeext
13968 if { (eval echo "$as_me:13968: \"$ac_link\"") >&5
13969 (eval $ac_link) 2>&5
13971 echo "$as_me:13971: \$? = $ac_status" >&5
13972 (exit $ac_status); } &&
13973 { ac_try='test -s conftest$ac_exeext'
13974 { (eval echo "$as_me:13974: \"$ac_try\"") >&5
13975 (eval $ac_try) 2>&5
13977 echo "$as_me:13977: \$? = $ac_status" >&5
13978 (exit $ac_status); }; }; then
13979 ac_cv_lib_dir_opendir=yes
13981 echo "$as_me: failed program was:" >&5
13982 cat conftest.$ac_ext >&5
13983 ac_cv_lib_dir_opendir=no
13985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13986 LIBS=$ac_check_lib_save_LIBS
13988 echo "$as_me:13988: result: $ac_cv_lib_dir_opendir" >&5
13989 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
13990 if test $ac_cv_lib_dir_opendir = yes; then
13995 echo "$as_me:13995: checking for opendir in -lx" >&5
13996 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
13997 if test "${ac_cv_lib_x_opendir+set}" = set; then
13998 echo $ECHO_N "(cached) $ECHO_C" >&6
14000 ac_check_lib_save_LIBS=$LIBS
14002 cat >conftest.$ac_ext <<_ACEOF
14003 #line 14003 "configure"
14004 #include "confdefs.h"
14006 /* Override any gcc2 internal prototype to avoid an error. */
14010 /* We use char because int might match the return type of a gcc2
14011 builtin and then its argument prototype would still apply. */
14021 rm -f conftest.$ac_objext conftest$ac_exeext
14022 if { (eval echo "$as_me:14022: \"$ac_link\"") >&5
14023 (eval $ac_link) 2>&5
14025 echo "$as_me:14025: \$? = $ac_status" >&5
14026 (exit $ac_status); } &&
14027 { ac_try='test -s conftest$ac_exeext'
14028 { (eval echo "$as_me:14028: \"$ac_try\"") >&5
14029 (eval $ac_try) 2>&5
14031 echo "$as_me:14031: \$? = $ac_status" >&5
14032 (exit $ac_status); }; }; then
14033 ac_cv_lib_x_opendir=yes
14035 echo "$as_me: failed program was:" >&5
14036 cat conftest.$ac_ext >&5
14037 ac_cv_lib_x_opendir=no
14039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14040 LIBS=$ac_check_lib_save_LIBS
14042 echo "$as_me:14042: result: $ac_cv_lib_x_opendir" >&5
14043 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
14044 if test $ac_cv_lib_x_opendir = yes; then
14050 echo "$as_me:14050: checking whether time.h and sys/time.h may both be included" >&5
14051 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
14052 if test "${ac_cv_header_time+set}" = set; then
14053 echo $ECHO_N "(cached) $ECHO_C" >&6
14055 cat >conftest.$ac_ext <<_ACEOF
14056 #line 14056 "configure"
14057 #include "confdefs.h"
14058 #include <sys/types.h>
14059 #include <sys/time.h>
14065 if ((struct tm *) 0)
14071 rm -f conftest.$ac_objext
14072 if { (eval echo "$as_me:14072: \"$ac_compile\"") >&5
14073 (eval $ac_compile) 2>&5
14075 echo "$as_me:14075: \$? = $ac_status" >&5
14076 (exit $ac_status); } &&
14077 { ac_try='test -s conftest.$ac_objext'
14078 { (eval echo "$as_me:14078: \"$ac_try\"") >&5
14079 (eval $ac_try) 2>&5
14081 echo "$as_me:14081: \$? = $ac_status" >&5
14082 (exit $ac_status); }; }; then
14083 ac_cv_header_time=yes
14085 echo "$as_me: failed program was:" >&5
14086 cat conftest.$ac_ext >&5
14087 ac_cv_header_time=no
14089 rm -f conftest.$ac_objext conftest.$ac_ext
14091 echo "$as_me:14091: result: $ac_cv_header_time" >&5
14092 echo "${ECHO_T}$ac_cv_header_time" >&6
14093 if test $ac_cv_header_time = yes; then
14095 cat >>confdefs.h <<\EOF
14096 #define TIME_WITH_SYS_TIME 1
14103 cf_regex_libs="regex re"
14104 case $host_os in #(vi
14106 cf_regex_libs="gnurx $cf_regex_libs"
14110 echo "$as_me:14110: checking for regcomp" >&5
14111 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
14112 if test "${ac_cv_func_regcomp+set}" = set; then
14113 echo $ECHO_N "(cached) $ECHO_C" >&6
14115 cat >conftest.$ac_ext <<_ACEOF
14116 #line 14116 "configure"
14117 #include "confdefs.h"
14118 /* System header to define __stub macros and hopefully few prototypes,
14119 which can conflict with char regcomp (); below. */
14120 #include <assert.h>
14121 /* Override any gcc2 internal prototype to avoid an error. */
14125 /* We use char because int might match the return type of a gcc2
14126 builtin and then its argument prototype would still apply. */
14133 /* The GNU C library defines this for functions which it implements
14134 to always fail with ENOSYS. Some functions are actually named
14135 something starting with __ and the normal name is an alias. */
14136 #if defined (__stub_regcomp) || defined (__stub___regcomp)
14139 f = regcomp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
14146 rm -f conftest.$ac_objext conftest$ac_exeext
14147 if { (eval echo "$as_me:14147: \"$ac_link\"") >&5
14148 (eval $ac_link) 2>&5
14150 echo "$as_me:14150: \$? = $ac_status" >&5
14151 (exit $ac_status); } &&
14152 { ac_try='test -s conftest$ac_exeext'
14153 { (eval echo "$as_me:14153: \"$ac_try\"") >&5
14154 (eval $ac_try) 2>&5
14156 echo "$as_me:14156: \$? = $ac_status" >&5
14157 (exit $ac_status); }; }; then
14158 ac_cv_func_regcomp=yes
14160 echo "$as_me: failed program was:" >&5
14161 cat conftest.$ac_ext >&5
14162 ac_cv_func_regcomp=no
14164 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14166 echo "$as_me:14166: result: $ac_cv_func_regcomp" >&5
14167 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
14168 if test $ac_cv_func_regcomp = yes; then
14169 cf_regex_func=regcomp
14172 for cf_regex_lib in $cf_regex_libs
14174 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
14175 echo "$as_me:14175: checking for regcomp in -l$cf_regex_lib" >&5
14176 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
14177 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
14178 echo $ECHO_N "(cached) $ECHO_C" >&6
14180 ac_check_lib_save_LIBS=$LIBS
14181 LIBS="-l$cf_regex_lib $LIBS"
14182 cat >conftest.$ac_ext <<_ACEOF
14183 #line 14183 "configure"
14184 #include "confdefs.h"
14186 /* Override any gcc2 internal prototype to avoid an error. */
14190 /* We use char because int might match the return type of a gcc2
14191 builtin and then its argument prototype would still apply. */
14201 rm -f conftest.$ac_objext conftest$ac_exeext
14202 if { (eval echo "$as_me:14202: \"$ac_link\"") >&5
14203 (eval $ac_link) 2>&5
14205 echo "$as_me:14205: \$? = $ac_status" >&5
14206 (exit $ac_status); } &&
14207 { ac_try='test -s conftest$ac_exeext'
14208 { (eval echo "$as_me:14208: \"$ac_try\"") >&5
14209 (eval $ac_try) 2>&5
14211 echo "$as_me:14211: \$? = $ac_status" >&5
14212 (exit $ac_status); }; }; then
14213 eval "$as_ac_Lib=yes"
14215 echo "$as_me: failed program was:" >&5
14216 cat conftest.$ac_ext >&5
14217 eval "$as_ac_Lib=no"
14219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14220 LIBS=$ac_check_lib_save_LIBS
14222 echo "$as_me:14222: result: `eval echo '${'$as_ac_Lib'}'`" >&5
14223 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
14224 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
14226 LIBS="-l$cf_regex_lib $LIBS"
14227 cf_regex_func=regcomp
14235 if test "$cf_regex_func" = no ; then
14236 echo "$as_me:14236: checking for compile" >&5
14237 echo $ECHO_N "checking for compile... $ECHO_C" >&6
14238 if test "${ac_cv_func_compile+set}" = set; then
14239 echo $ECHO_N "(cached) $ECHO_C" >&6
14241 cat >conftest.$ac_ext <<_ACEOF
14242 #line 14242 "configure"
14243 #include "confdefs.h"
14244 /* System header to define __stub macros and hopefully few prototypes,
14245 which can conflict with char compile (); below. */
14246 #include <assert.h>
14247 /* Override any gcc2 internal prototype to avoid an error. */
14251 /* We use char because int might match the return type of a gcc2
14252 builtin and then its argument prototype would still apply. */
14259 /* The GNU C library defines this for functions which it implements
14260 to always fail with ENOSYS. Some functions are actually named
14261 something starting with __ and the normal name is an alias. */
14262 #if defined (__stub_compile) || defined (__stub___compile)
14265 f = compile; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
14272 rm -f conftest.$ac_objext conftest$ac_exeext
14273 if { (eval echo "$as_me:14273: \"$ac_link\"") >&5
14274 (eval $ac_link) 2>&5
14276 echo "$as_me:14276: \$? = $ac_status" >&5
14277 (exit $ac_status); } &&
14278 { ac_try='test -s conftest$ac_exeext'
14279 { (eval echo "$as_me:14279: \"$ac_try\"") >&5
14280 (eval $ac_try) 2>&5
14282 echo "$as_me:14282: \$? = $ac_status" >&5
14283 (exit $ac_status); }; }; then
14284 ac_cv_func_compile=yes
14286 echo "$as_me: failed program was:" >&5
14287 cat conftest.$ac_ext >&5
14288 ac_cv_func_compile=no
14290 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14292 echo "$as_me:14292: result: $ac_cv_func_compile" >&5
14293 echo "${ECHO_T}$ac_cv_func_compile" >&6
14294 if test $ac_cv_func_compile = yes; then
14295 cf_regex_func=compile
14298 echo "$as_me:14298: checking for compile in -lgen" >&5
14299 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
14300 if test "${ac_cv_lib_gen_compile+set}" = set; then
14301 echo $ECHO_N "(cached) $ECHO_C" >&6
14303 ac_check_lib_save_LIBS=$LIBS
14305 cat >conftest.$ac_ext <<_ACEOF
14306 #line 14306 "configure"
14307 #include "confdefs.h"
14309 /* Override any gcc2 internal prototype to avoid an error. */
14313 /* We use char because int might match the return type of a gcc2
14314 builtin and then its argument prototype would still apply. */
14324 rm -f conftest.$ac_objext conftest$ac_exeext
14325 if { (eval echo "$as_me:14325: \"$ac_link\"") >&5
14326 (eval $ac_link) 2>&5
14328 echo "$as_me:14328: \$? = $ac_status" >&5
14329 (exit $ac_status); } &&
14330 { ac_try='test -s conftest$ac_exeext'
14331 { (eval echo "$as_me:14331: \"$ac_try\"") >&5
14332 (eval $ac_try) 2>&5
14334 echo "$as_me:14334: \$? = $ac_status" >&5
14335 (exit $ac_status); }; }; then
14336 ac_cv_lib_gen_compile=yes
14338 echo "$as_me: failed program was:" >&5
14339 cat conftest.$ac_ext >&5
14340 ac_cv_lib_gen_compile=no
14342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14343 LIBS=$ac_check_lib_save_LIBS
14345 echo "$as_me:14345: result: $ac_cv_lib_gen_compile" >&5
14346 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
14347 if test $ac_cv_lib_gen_compile = yes; then
14350 cf_regex_func=compile
14357 if test "$cf_regex_func" = no ; then
14358 { echo "$as_me:14358: WARNING: cannot find regular expression library" >&5
14359 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
14362 echo "$as_me:14362: checking for regular-expression headers" >&5
14363 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
14364 if test "${cf_cv_regex_hdrs+set}" = set; then
14365 echo $ECHO_N "(cached) $ECHO_C" >&6
14368 cf_cv_regex_hdrs=no
14369 case $cf_regex_func in #(vi
14371 for cf_regex_hdr in regexp.h regexpr.h
14373 cat >conftest.$ac_ext <<_ACEOF
14374 #line 14374 "configure"
14375 #include "confdefs.h"
14376 #include <$cf_regex_hdr>
14381 char *p = compile("", "", "", 0);
14382 int x = step("", "");
14388 rm -f conftest.$ac_objext conftest$ac_exeext
14389 if { (eval echo "$as_me:14389: \"$ac_link\"") >&5
14390 (eval $ac_link) 2>&5
14392 echo "$as_me:14392: \$? = $ac_status" >&5
14393 (exit $ac_status); } &&
14394 { ac_try='test -s conftest$ac_exeext'
14395 { (eval echo "$as_me:14395: \"$ac_try\"") >&5
14396 (eval $ac_try) 2>&5
14398 echo "$as_me:14398: \$? = $ac_status" >&5
14399 (exit $ac_status); }; }; then
14401 cf_cv_regex_hdrs=$cf_regex_hdr
14405 echo "$as_me: failed program was:" >&5
14406 cat conftest.$ac_ext >&5
14408 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14412 for cf_regex_hdr in regex.h
14414 cat >conftest.$ac_ext <<_ACEOF
14415 #line 14415 "configure"
14416 #include "confdefs.h"
14417 #include <sys/types.h>
14418 #include <$cf_regex_hdr>
14424 int x = regcomp(p, "", 0);
14425 int y = regexec(p, "", 0, 0, 0);
14432 rm -f conftest.$ac_objext conftest$ac_exeext
14433 if { (eval echo "$as_me:14433: \"$ac_link\"") >&5
14434 (eval $ac_link) 2>&5
14436 echo "$as_me:14436: \$? = $ac_status" >&5
14437 (exit $ac_status); } &&
14438 { ac_try='test -s conftest$ac_exeext'
14439 { (eval echo "$as_me:14439: \"$ac_try\"") >&5
14440 (eval $ac_try) 2>&5
14442 echo "$as_me:14442: \$? = $ac_status" >&5
14443 (exit $ac_status); }; }; then
14445 cf_cv_regex_hdrs=$cf_regex_hdr
14449 echo "$as_me: failed program was:" >&5
14450 cat conftest.$ac_ext >&5
14452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14458 echo "$as_me:14458: result: $cf_cv_regex_hdrs" >&5
14459 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
14461 case $cf_cv_regex_hdrs in #(vi
14462 no) { echo "$as_me:14462: WARNING: no regular expression header found" >&5
14463 echo "$as_me: WARNING: no regular expression header found" >&2;} ;; #(vi
14465 cat >>confdefs.h <<\EOF
14466 #define HAVE_REGEX_H_FUNCS 1
14470 cat >>confdefs.h <<\EOF
14471 #define HAVE_REGEXP_H_FUNCS 1
14475 cat >>confdefs.h <<\EOF
14476 #define HAVE_REGEXPR_H_FUNCS 1
14500 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14501 echo "$as_me:14501: checking for $ac_header" >&5
14502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14504 echo $ECHO_N "(cached) $ECHO_C" >&6
14506 cat >conftest.$ac_ext <<_ACEOF
14507 #line 14507 "configure"
14508 #include "confdefs.h"
14509 #include <$ac_header>
14511 if { (eval echo "$as_me:14511: \"$ac_cpp conftest.$ac_ext\"") >&5
14512 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14514 egrep -v '^ *\+' conftest.er1 >conftest.err
14516 cat conftest.err >&5
14517 echo "$as_me:14517: \$? = $ac_status" >&5
14518 (exit $ac_status); } >/dev/null; then
14519 if test -s conftest.err; then
14520 ac_cpp_err=$ac_c_preproc_warn_flag
14527 if test -z "$ac_cpp_err"; then
14528 eval "$as_ac_Header=yes"
14530 echo "$as_me: failed program was:" >&5
14531 cat conftest.$ac_ext >&5
14532 eval "$as_ac_Header=no"
14534 rm -f conftest.err conftest.$ac_ext
14536 echo "$as_me:14536: result: `eval echo '${'$as_ac_Header'}'`" >&5
14537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14539 cat >>confdefs.h <<EOF
14540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14546 for ac_header in unistd.h getopt.h
14548 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14549 echo "$as_me:14549: checking for $ac_header" >&5
14550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14552 echo $ECHO_N "(cached) $ECHO_C" >&6
14554 cat >conftest.$ac_ext <<_ACEOF
14555 #line 14555 "configure"
14556 #include "confdefs.h"
14557 #include <$ac_header>
14559 if { (eval echo "$as_me:14559: \"$ac_cpp conftest.$ac_ext\"") >&5
14560 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14562 egrep -v '^ *\+' conftest.er1 >conftest.err
14564 cat conftest.err >&5
14565 echo "$as_me:14565: \$? = $ac_status" >&5
14566 (exit $ac_status); } >/dev/null; then
14567 if test -s conftest.err; then
14568 ac_cpp_err=$ac_c_preproc_warn_flag
14575 if test -z "$ac_cpp_err"; then
14576 eval "$as_ac_Header=yes"
14578 echo "$as_me: failed program was:" >&5
14579 cat conftest.$ac_ext >&5
14580 eval "$as_ac_Header=no"
14582 rm -f conftest.err conftest.$ac_ext
14584 echo "$as_me:14584: result: `eval echo '${'$as_ac_Header'}'`" >&5
14585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14587 cat >>confdefs.h <<EOF
14588 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14594 echo "$as_me:14594: checking for header declaring getopt variables" >&5
14595 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
14596 if test "${cf_cv_getopt_header+set}" = set; then
14597 echo $ECHO_N "(cached) $ECHO_C" >&6
14600 cf_cv_getopt_header=none
14601 for cf_header in stdio.h stdlib.h unistd.h getopt.h
14603 cat >conftest.$ac_ext <<_ACEOF
14604 #line 14604 "configure"
14605 #include "confdefs.h"
14607 #include <$cf_header>
14611 int x = optind; char *y = optarg
14616 rm -f conftest.$ac_objext
14617 if { (eval echo "$as_me:14617: \"$ac_compile\"") >&5
14618 (eval $ac_compile) 2>&5
14620 echo "$as_me:14620: \$? = $ac_status" >&5
14621 (exit $ac_status); } &&
14622 { ac_try='test -s conftest.$ac_objext'
14623 { (eval echo "$as_me:14623: \"$ac_try\"") >&5
14624 (eval $ac_try) 2>&5
14626 echo "$as_me:14626: \$? = $ac_status" >&5
14627 (exit $ac_status); }; }; then
14628 cf_cv_getopt_header=$cf_header
14631 echo "$as_me: failed program was:" >&5
14632 cat conftest.$ac_ext >&5
14634 rm -f conftest.$ac_objext conftest.$ac_ext
14638 echo "$as_me:14638: result: $cf_cv_getopt_header" >&5
14639 echo "${ECHO_T}$cf_cv_getopt_header" >&6
14640 if test $cf_cv_getopt_header != none ; then
14642 cat >>confdefs.h <<\EOF
14643 #define HAVE_GETOPT_HEADER 1
14648 # check for ISC (this may also define _POSIX_SOURCE)
14649 # Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
14650 if test "x$ISC" = xyes ; then
14652 echo "$as_me:14652: checking for main in -lcposix" >&5
14653 echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6
14654 if test "${ac_cv_lib_cposix_main+set}" = set; then
14655 echo $ECHO_N "(cached) $ECHO_C" >&6
14657 ac_check_lib_save_LIBS=$LIBS
14658 LIBS="-lcposix $LIBS"
14659 cat >conftest.$ac_ext <<_ACEOF
14660 #line 14660 "configure"
14661 #include "confdefs.h"
14671 rm -f conftest.$ac_objext conftest$ac_exeext
14672 if { (eval echo "$as_me:14672: \"$ac_link\"") >&5
14673 (eval $ac_link) 2>&5
14675 echo "$as_me:14675: \$? = $ac_status" >&5
14676 (exit $ac_status); } &&
14677 { ac_try='test -s conftest$ac_exeext'
14678 { (eval echo "$as_me:14678: \"$ac_try\"") >&5
14679 (eval $ac_try) 2>&5
14681 echo "$as_me:14681: \$? = $ac_status" >&5
14682 (exit $ac_status); }; }; then
14683 ac_cv_lib_cposix_main=yes
14685 echo "$as_me: failed program was:" >&5
14686 cat conftest.$ac_ext >&5
14687 ac_cv_lib_cposix_main=no
14689 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14690 LIBS=$ac_check_lib_save_LIBS
14692 echo "$as_me:14692: result: $ac_cv_lib_cposix_main" >&5
14693 echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6
14694 if test $ac_cv_lib_cposix_main = yes; then
14695 cat >>confdefs.h <<EOF
14696 #define HAVE_LIBCPOSIX 1
14699 LIBS="-lcposix $LIBS"
14703 echo "$as_me:14703: checking for bzero in -linet" >&5
14704 echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6
14705 if test "${ac_cv_lib_inet_bzero+set}" = set; then
14706 echo $ECHO_N "(cached) $ECHO_C" >&6
14708 ac_check_lib_save_LIBS=$LIBS
14709 LIBS="-linet $LIBS"
14710 cat >conftest.$ac_ext <<_ACEOF
14711 #line 14711 "configure"
14712 #include "confdefs.h"
14714 /* Override any gcc2 internal prototype to avoid an error. */
14718 /* We use char because int might match the return type of a gcc2
14719 builtin and then its argument prototype would still apply. */
14729 rm -f conftest.$ac_objext conftest$ac_exeext
14730 if { (eval echo "$as_me:14730: \"$ac_link\"") >&5
14731 (eval $ac_link) 2>&5
14733 echo "$as_me:14733: \$? = $ac_status" >&5
14734 (exit $ac_status); } &&
14735 { ac_try='test -s conftest$ac_exeext'
14736 { (eval echo "$as_me:14736: \"$ac_try\"") >&5
14737 (eval $ac_try) 2>&5
14739 echo "$as_me:14739: \$? = $ac_status" >&5
14740 (exit $ac_status); }; }; then
14741 ac_cv_lib_inet_bzero=yes
14743 echo "$as_me: failed program was:" >&5
14744 cat conftest.$ac_ext >&5
14745 ac_cv_lib_inet_bzero=no
14747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14748 LIBS=$ac_check_lib_save_LIBS
14750 echo "$as_me:14750: result: $ac_cv_lib_inet_bzero" >&5
14751 echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6
14752 if test $ac_cv_lib_inet_bzero = yes; then
14753 LIBS="-linet $LIBS"
14757 echo "$as_me:14757: checking if sys/time.h works with sys/select.h" >&5
14758 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
14759 if test "${cf_cv_sys_time_select+set}" = set; then
14760 echo $ECHO_N "(cached) $ECHO_C" >&6
14763 cat >conftest.$ac_ext <<_ACEOF
14764 #line 14764 "configure"
14765 #include "confdefs.h"
14767 #include <sys/types.h>
14768 #ifdef HAVE_SYS_TIME_H
14769 #include <sys/time.h>
14771 #ifdef HAVE_SYS_SELECT_H
14772 #include <sys/select.h>
14783 rm -f conftest.$ac_objext
14784 if { (eval echo "$as_me:14784: \"$ac_compile\"") >&5
14785 (eval $ac_compile) 2>&5
14787 echo "$as_me:14787: \$? = $ac_status" >&5
14788 (exit $ac_status); } &&
14789 { ac_try='test -s conftest.$ac_objext'
14790 { (eval echo "$as_me:14790: \"$ac_try\"") >&5
14791 (eval $ac_try) 2>&5
14793 echo "$as_me:14793: \$? = $ac_status" >&5
14794 (exit $ac_status); }; }; then
14795 cf_cv_sys_time_select=yes
14797 echo "$as_me: failed program was:" >&5
14798 cat conftest.$ac_ext >&5
14799 cf_cv_sys_time_select=no
14801 rm -f conftest.$ac_objext conftest.$ac_ext
14805 echo "$as_me:14805: result: $cf_cv_sys_time_select" >&5
14806 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
14807 test "$cf_cv_sys_time_select" = yes &&
14808 cat >>confdefs.h <<\EOF
14809 #define HAVE_SYS_TIME_SELECT 1
14812 ### checks for compiler characteristics
14814 ac_cpp='$CPP $CPPFLAGS'
14815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14818 ac_main_return=return
14820 echo "$as_me:14820: checking for an ANSI C-conforming const" >&5
14821 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14822 if test "${ac_cv_c_const+set}" = set; then
14823 echo $ECHO_N "(cached) $ECHO_C" >&6
14825 cat >conftest.$ac_ext <<_ACEOF
14826 #line 14826 "configure"
14827 #include "confdefs.h"
14832 /* FIXME: Include the comments suggested by Paul. */
14833 #ifndef __cplusplus
14834 /* Ultrix mips cc rejects this. */
14835 typedef int charset[2];
14837 /* SunOS 4.1.1 cc rejects this. */
14838 char const *const *ccp;
14840 /* NEC SVR4.0.2 mips cc rejects this. */
14841 struct point {int x, y;};
14842 static struct point const zero = {0,0};
14843 /* AIX XL C 1.02.0.0 rejects this.
14844 It does not let you subtract one const X* pointer from another in
14845 an arm of an if-expression whose if-part is not a constant
14847 const char *g = "string";
14848 ccp = &g + (g ? g-g : 0);
14849 /* HPUX 7.0 cc rejects these. */
14852 ccp = (char const *const *) p;
14853 { /* SCO 3.2v4 cc rejects this. */
14855 char const *s = 0 ? (char *) 0 : (char const *) 0;
14859 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14860 int x[] = {25, 17};
14861 const int *foo = &x[0];
14864 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14865 typedef const int *iptr;
14869 { /* AIX XL C 1.02.0.0 rejects this saying
14870 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14871 struct s { int j; const int *ap[3]; };
14872 struct s *b; b->j = 5;
14874 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14875 const int foo = 10;
14883 rm -f conftest.$ac_objext
14884 if { (eval echo "$as_me:14884: \"$ac_compile\"") >&5
14885 (eval $ac_compile) 2>&5
14887 echo "$as_me:14887: \$? = $ac_status" >&5
14888 (exit $ac_status); } &&
14889 { ac_try='test -s conftest.$ac_objext'
14890 { (eval echo "$as_me:14890: \"$ac_try\"") >&5
14891 (eval $ac_try) 2>&5
14893 echo "$as_me:14893: \$? = $ac_status" >&5
14894 (exit $ac_status); }; }; then
14897 echo "$as_me: failed program was:" >&5
14898 cat conftest.$ac_ext >&5
14901 rm -f conftest.$ac_objext conftest.$ac_ext
14903 echo "$as_me:14903: result: $ac_cv_c_const" >&5
14904 echo "${ECHO_T}$ac_cv_c_const" >&6
14905 if test $ac_cv_c_const = no; then
14907 cat >>confdefs.h <<\EOF
14913 echo "$as_me:14913: checking for inline" >&5
14914 echo $ECHO_N "checking for inline... $ECHO_C" >&6
14915 if test "${ac_cv_c_inline+set}" = set; then
14916 echo $ECHO_N "(cached) $ECHO_C" >&6
14919 for ac_kw in inline __inline__ __inline; do
14920 cat >conftest.$ac_ext <<_ACEOF
14921 #line 14921 "configure"
14922 #include "confdefs.h"
14923 #ifndef __cplusplus
14924 static $ac_kw int static_foo () {return 0; }
14925 $ac_kw int foo () {return 0; }
14929 rm -f conftest.$ac_objext
14930 if { (eval echo "$as_me:14930: \"$ac_compile\"") >&5
14931 (eval $ac_compile) 2>&5
14933 echo "$as_me:14933: \$? = $ac_status" >&5
14934 (exit $ac_status); } &&
14935 { ac_try='test -s conftest.$ac_objext'
14936 { (eval echo "$as_me:14936: \"$ac_try\"") >&5
14937 (eval $ac_try) 2>&5
14939 echo "$as_me:14939: \$? = $ac_status" >&5
14940 (exit $ac_status); }; }; then
14941 ac_cv_c_inline=$ac_kw; break
14943 echo "$as_me: failed program was:" >&5
14944 cat conftest.$ac_ext >&5
14946 rm -f conftest.$ac_objext conftest.$ac_ext
14950 echo "$as_me:14950: result: $ac_cv_c_inline" >&5
14951 echo "${ECHO_T}$ac_cv_c_inline" >&6
14952 case $ac_cv_c_inline in
14955 cat >>confdefs.h <<\EOF
14959 *) cat >>confdefs.h <<EOF
14960 #define inline $ac_cv_c_inline
14966 if test "$ac_cv_c_inline" != no ; then
14967 NCURSES_INLINE=inline
14968 if test "$INTEL_COMPILER" = yes
14971 elif test "$CLANG_COMPILER" = yes
14974 elif test "$GCC" = yes
14976 echo "$as_me:14976: checking if $CC supports options to tune inlining" >&5
14977 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
14978 if test "${cf_cv_gcc_inline+set}" = set; then
14979 echo $ECHO_N "(cached) $ECHO_C" >&6
14982 cf_save_CFLAGS=$CFLAGS
14983 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
14984 cat >conftest.$ac_ext <<_ACEOF
14985 #line 14985 "configure"
14986 #include "confdefs.h"
14987 inline int foo(void) { return 1; }
14991 ${cf_cv_main_return:-return} foo()
14996 rm -f conftest.$ac_objext
14997 if { (eval echo "$as_me:14997: \"$ac_compile\"") >&5
14998 (eval $ac_compile) 2>&5
15000 echo "$as_me:15000: \$? = $ac_status" >&5
15001 (exit $ac_status); } &&
15002 { ac_try='test -s conftest.$ac_objext'
15003 { (eval echo "$as_me:15003: \"$ac_try\"") >&5
15004 (eval $ac_try) 2>&5
15006 echo "$as_me:15006: \$? = $ac_status" >&5
15007 (exit $ac_status); }; }; then
15008 cf_cv_gcc_inline=yes
15010 echo "$as_me: failed program was:" >&5
15011 cat conftest.$ac_ext >&5
15012 cf_cv_gcc_inline=no
15014 rm -f conftest.$ac_objext conftest.$ac_ext
15015 CFLAGS=$cf_save_CFLAGS
15018 echo "$as_me:15018: result: $cf_cv_gcc_inline" >&5
15019 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
15020 if test "$cf_cv_gcc_inline" = yes ; then
15025 cf_new_extra_cppflags=
15027 for cf_add_cflags in --param max-inline-insns-single=1200
15029 case $cf_fix_cppflags in
15031 case $cf_add_cflags in #(vi
15032 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
15033 case $cf_add_cflags in
15035 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15037 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
15038 && test -z "${cf_tst_cflags}" \
15039 && cf_fix_cppflags=yes
15041 if test $cf_fix_cppflags = yes ; then
15042 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15044 elif test "${cf_tst_cflags}" = "\"'" ; then
15045 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15050 case "$CPPFLAGS" in
15051 *$cf_add_cflags) #(vi
15054 case $cf_add_cflags in #(vi
15056 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15058 CPPFLAGS=`echo "$CPPFLAGS" | \
15059 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15060 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15064 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
15069 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
15074 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15076 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
15078 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
15079 && test -z "${cf_tst_cflags}" \
15080 && cf_fix_cppflags=no
15085 if test -n "$cf_new_cflags" ; then
15087 CFLAGS="$CFLAGS $cf_new_cflags"
15090 if test -n "$cf_new_cppflags" ; then
15092 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
15095 if test -n "$cf_new_extra_cppflags" ; then
15097 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
15104 echo "$as_me:15104: checking for signal global datatype" >&5
15105 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
15106 if test "${cf_cv_sig_atomic_t+set}" = set; then
15107 echo $ECHO_N "(cached) $ECHO_C" >&6
15111 "volatile sig_atomic_t" \
15115 cat >conftest.$ac_ext <<_ACEOF
15116 #line 15116 "configure"
15117 #include "confdefs.h"
15119 #include <sys/types.h>
15120 #include <signal.h>
15125 static void handler(int sig)
15132 signal(SIGINT, handler);
15138 rm -f conftest.$ac_objext
15139 if { (eval echo "$as_me:15139: \"$ac_compile\"") >&5
15140 (eval $ac_compile) 2>&5
15142 echo "$as_me:15142: \$? = $ac_status" >&5
15143 (exit $ac_status); } &&
15144 { ac_try='test -s conftest.$ac_objext'
15145 { (eval echo "$as_me:15145: \"$ac_try\"") >&5
15146 (eval $ac_try) 2>&5
15148 echo "$as_me:15148: \$? = $ac_status" >&5
15149 (exit $ac_status); }; }; then
15150 cf_cv_sig_atomic_t=$cf_type
15152 echo "$as_me: failed program was:" >&5
15153 cat conftest.$ac_ext >&5
15154 cf_cv_sig_atomic_t=no
15156 rm -f conftest.$ac_objext conftest.$ac_ext
15157 test "$cf_cv_sig_atomic_t" != no && break
15162 echo "$as_me:15162: result: $cf_cv_sig_atomic_t" >&5
15163 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
15164 test "$cf_cv_sig_atomic_t" != no &&
15165 cat >>confdefs.h <<EOF
15166 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
15169 if test $NCURSES_CHTYPE = auto ; then
15171 echo "$as_me:15171: checking for type of chtype" >&5
15172 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
15173 if test "${cf_cv_typeof_chtype+set}" = set; then
15174 echo $ECHO_N "(cached) $ECHO_C" >&6
15177 if test "$cross_compiling" = yes; then
15178 cf_cv_typeof_chtype=long
15180 cat >conftest.$ac_ext <<_ACEOF
15181 #line 15181 "configure"
15182 #include "confdefs.h"
15184 #define WANT_BITS 31
15188 FILE *fp = fopen("cf_test.out", "w");
15190 char *result = "long";
15191 if (sizeof(unsigned long) > sizeof(unsigned int)) {
15194 for (n = 0; n < WANT_BITS; n++) {
15197 if (y != 1 || x == 0) {
15203 * If x is nonzero, an int is big enough for the bits
15206 result = (x != 0) ? "int" : "long";
15211 ${cf_cv_main_return:-return}(0);
15215 rm -f conftest$ac_exeext
15216 if { (eval echo "$as_me:15216: \"$ac_link\"") >&5
15217 (eval $ac_link) 2>&5
15219 echo "$as_me:15219: \$? = $ac_status" >&5
15220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15221 { (eval echo "$as_me:15221: \"$ac_try\"") >&5
15222 (eval $ac_try) 2>&5
15224 echo "$as_me:15224: \$? = $ac_status" >&5
15225 (exit $ac_status); }; }; then
15226 cf_cv_typeof_chtype=`cat cf_test.out`
15228 echo "$as_me: program exited with status $ac_status" >&5
15229 echo "$as_me: failed program was:" >&5
15230 cat conftest.$ac_ext >&5
15231 cf_cv_typeof_chtype=long
15233 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15239 echo "$as_me:15239: result: $cf_cv_typeof_chtype" >&5
15240 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
15242 cat >>confdefs.h <<EOF
15243 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
15247 cf_cv_typeof_chtype=$NCURSES_CHTYPE
15249 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
15251 echo "$as_me:15251: checking if unsigned literals are legal" >&5
15252 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
15253 if test "${cf_cv_unsigned_literals+set}" = set; then
15254 echo $ECHO_N "(cached) $ECHO_C" >&6
15257 cat >conftest.$ac_ext <<_ACEOF
15258 #line 15258 "configure"
15259 #include "confdefs.h"
15264 long x = 1L + 1UL + 1U + 1
15269 rm -f conftest.$ac_objext
15270 if { (eval echo "$as_me:15270: \"$ac_compile\"") >&5
15271 (eval $ac_compile) 2>&5
15273 echo "$as_me:15273: \$? = $ac_status" >&5
15274 (exit $ac_status); } &&
15275 { ac_try='test -s conftest.$ac_objext'
15276 { (eval echo "$as_me:15276: \"$ac_try\"") >&5
15277 (eval $ac_try) 2>&5
15279 echo "$as_me:15279: \$? = $ac_status" >&5
15280 (exit $ac_status); }; }; then
15281 cf_cv_unsigned_literals=yes
15283 echo "$as_me: failed program was:" >&5
15284 cat conftest.$ac_ext >&5
15285 cf_cv_unsigned_literals=no
15287 rm -f conftest.$ac_objext conftest.$ac_ext
15291 echo "$as_me:15291: result: $cf_cv_unsigned_literals" >&5
15292 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
15295 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
15296 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
15298 if test $NCURSES_MMASK_T = auto ; then
15299 cf_cv_typeof_mmask_t=long
15301 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
15303 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
15305 ### Checks for external-data
15307 echo "$as_me:15307: checking if external errno is declared" >&5
15308 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
15309 if test "${cf_cv_dcl_errno+set}" = set; then
15310 echo $ECHO_N "(cached) $ECHO_C" >&6
15313 cat >conftest.$ac_ext <<_ACEOF
15314 #line 15314 "configure"
15315 #include "confdefs.h"
15317 #ifdef HAVE_STDLIB_H
15318 #include <stdlib.h>
15321 #include <sys/types.h>
15326 int x = (int) errno
15331 rm -f conftest.$ac_objext
15332 if { (eval echo "$as_me:15332: \"$ac_compile\"") >&5
15333 (eval $ac_compile) 2>&5
15335 echo "$as_me:15335: \$? = $ac_status" >&5
15336 (exit $ac_status); } &&
15337 { ac_try='test -s conftest.$ac_objext'
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_dcl_errno=yes
15345 echo "$as_me: failed program was:" >&5
15346 cat conftest.$ac_ext >&5
15349 rm -f conftest.$ac_objext conftest.$ac_ext
15352 echo "$as_me:15352: result: $cf_cv_dcl_errno" >&5
15353 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
15355 if test "$cf_cv_dcl_errno" = no ; then
15357 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15359 cat >>confdefs.h <<EOF
15360 #define $cf_result 1
15365 # It's possible (for near-UNIX clones) that the data doesn't exist
15367 echo "$as_me:15367: checking if external errno exists" >&5
15368 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
15369 if test "${cf_cv_have_errno+set}" = set; then
15370 echo $ECHO_N "(cached) $ECHO_C" >&6
15373 cat >conftest.$ac_ext <<_ACEOF
15374 #line 15374 "configure"
15375 #include "confdefs.h"
15388 rm -f conftest.$ac_objext conftest$ac_exeext
15389 if { (eval echo "$as_me:15389: \"$ac_link\"") >&5
15390 (eval $ac_link) 2>&5
15392 echo "$as_me:15392: \$? = $ac_status" >&5
15393 (exit $ac_status); } &&
15394 { ac_try='test -s conftest$ac_exeext'
15395 { (eval echo "$as_me:15395: \"$ac_try\"") >&5
15396 (eval $ac_try) 2>&5
15398 echo "$as_me:15398: \$? = $ac_status" >&5
15399 (exit $ac_status); }; }; then
15400 cf_cv_have_errno=yes
15402 echo "$as_me: failed program was:" >&5
15403 cat conftest.$ac_ext >&5
15404 cf_cv_have_errno=no
15406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15409 echo "$as_me:15409: result: $cf_cv_have_errno" >&5
15410 echo "${ECHO_T}$cf_cv_have_errno" >&6
15412 if test "$cf_cv_have_errno" = yes ; then
15414 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15416 cat >>confdefs.h <<EOF
15417 #define $cf_result 1
15422 echo "$as_me:15422: checking if data-only library module links" >&5
15423 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
15424 if test "${cf_cv_link_dataonly+set}" = set; then
15425 echo $ECHO_N "(cached) $ECHO_C" >&6
15429 cat >conftest.$ac_ext <<EOF
15430 #line 15430 "configure"
15431 int testdata[3] = { 123, 456, 789 };
15433 if { (eval echo "$as_me:15433: \"$ac_compile\"") >&5
15434 (eval $ac_compile) 2>&5
15436 echo "$as_me:15436: \$? = $ac_status" >&5
15437 (exit $ac_status); } ; then
15438 mv conftest.o data.o && \
15439 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
15441 rm -f conftest.$ac_ext data.o
15442 cat >conftest.$ac_ext <<EOF
15443 #line 15443 "configure"
15447 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
15449 extern int testdata[3];
15450 return testdata[0] == 123
15451 && testdata[1] == 456
15452 && testdata[2] == 789;
15456 if { (eval echo "$as_me:15456: \"$ac_compile\"") >&5
15457 (eval $ac_compile) 2>&5
15459 echo "$as_me:15459: \$? = $ac_status" >&5
15460 (exit $ac_status); }; then
15461 mv conftest.o func.o && \
15462 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
15464 rm -f conftest.$ac_ext func.o
15465 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
15466 cf_saveLIBS="$LIBS"
15467 LIBS="conftest.a $LIBS"
15468 if test "$cross_compiling" = yes; then
15469 cf_cv_link_dataonly=unknown
15471 cat >conftest.$ac_ext <<_ACEOF
15472 #line 15472 "configure"
15473 #include "confdefs.h"
15477 extern int testfunc();
15478 ${cf_cv_main_return:-return} (!testfunc());
15482 rm -f conftest$ac_exeext
15483 if { (eval echo "$as_me:15483: \"$ac_link\"") >&5
15484 (eval $ac_link) 2>&5
15486 echo "$as_me:15486: \$? = $ac_status" >&5
15487 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15488 { (eval echo "$as_me:15488: \"$ac_try\"") >&5
15489 (eval $ac_try) 2>&5
15491 echo "$as_me:15491: \$? = $ac_status" >&5
15492 (exit $ac_status); }; }; then
15493 cf_cv_link_dataonly=yes
15495 echo "$as_me: program exited with status $ac_status" >&5
15496 echo "$as_me: failed program was:" >&5
15497 cat conftest.$ac_ext >&5
15498 cf_cv_link_dataonly=no
15500 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15502 LIBS="$cf_saveLIBS"
15506 echo "$as_me:15506: result: $cf_cv_link_dataonly" >&5
15507 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
15509 if test "$cf_cv_link_dataonly" = no ; then
15511 cat >>confdefs.h <<\EOF
15512 #define BROKEN_LINKER 1
15518 ### Checks for library functions.
15543 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15544 echo "$as_me:15544: checking for $ac_func" >&5
15545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15546 if eval "test \"\${$as_ac_var+set}\" = set"; then
15547 echo $ECHO_N "(cached) $ECHO_C" >&6
15549 cat >conftest.$ac_ext <<_ACEOF
15550 #line 15550 "configure"
15551 #include "confdefs.h"
15552 /* System header to define __stub macros and hopefully few prototypes,
15553 which can conflict with char $ac_func (); below. */
15554 #include <assert.h>
15555 /* Override any gcc2 internal prototype to avoid an error. */
15559 /* We use char because int might match the return type of a gcc2
15560 builtin and then its argument prototype would still apply. */
15567 /* The GNU C library defines this for functions which it implements
15568 to always fail with ENOSYS. Some functions are actually named
15569 something starting with __ and the normal name is an alias. */
15570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15573 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
15580 rm -f conftest.$ac_objext conftest$ac_exeext
15581 if { (eval echo "$as_me:15581: \"$ac_link\"") >&5
15582 (eval $ac_link) 2>&5
15584 echo "$as_me:15584: \$? = $ac_status" >&5
15585 (exit $ac_status); } &&
15586 { ac_try='test -s conftest$ac_exeext'
15587 { (eval echo "$as_me:15587: \"$ac_try\"") >&5
15588 (eval $ac_try) 2>&5
15590 echo "$as_me:15590: \$? = $ac_status" >&5
15591 (exit $ac_status); }; }; then
15592 eval "$as_ac_var=yes"
15594 echo "$as_me: failed program was:" >&5
15595 cat conftest.$ac_ext >&5
15596 eval "$as_ac_var=no"
15598 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15600 echo "$as_me:15600: result: `eval echo '${'$as_ac_var'}'`" >&5
15601 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15602 if test `eval echo '${'$as_ac_var'}'` = yes; then
15603 cat >>confdefs.h <<EOF
15604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15610 if test "x$with_getcap" = "xyes" ; then
15612 echo "$as_me:15612: checking for terminal-capability database functions" >&5
15613 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
15614 if test "${cf_cv_cgetent+set}" = set; then
15615 echo $ECHO_N "(cached) $ECHO_C" >&6
15618 cat >conftest.$ac_ext <<_ACEOF
15619 #line 15619 "configure"
15620 #include "confdefs.h"
15622 #include <stdlib.h>
15629 char *db_array = temp;
15630 cgetent(&buf, &db_array, "vt100");
15631 cgetcap(buf, "tc", '=');
15632 cgetmatch(buf, "tc");
15638 rm -f conftest.$ac_objext conftest$ac_exeext
15639 if { (eval echo "$as_me:15639: \"$ac_link\"") >&5
15640 (eval $ac_link) 2>&5
15642 echo "$as_me:15642: \$? = $ac_status" >&5
15643 (exit $ac_status); } &&
15644 { ac_try='test -s conftest$ac_exeext'
15645 { (eval echo "$as_me:15645: \"$ac_try\"") >&5
15646 (eval $ac_try) 2>&5
15648 echo "$as_me:15648: \$? = $ac_status" >&5
15649 (exit $ac_status); }; }; then
15652 echo "$as_me: failed program was:" >&5
15653 cat conftest.$ac_ext >&5
15656 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15659 echo "$as_me:15659: result: $cf_cv_cgetent" >&5
15660 echo "${ECHO_T}$cf_cv_cgetent" >&6
15662 if test "$cf_cv_cgetent" = yes
15665 cat >>confdefs.h <<\EOF
15666 #define HAVE_BSD_CGETENT 1
15669 echo "$as_me:15669: checking if cgetent uses const parameter" >&5
15670 echo $ECHO_N "checking if cgetent uses const parameter... $ECHO_C" >&6
15671 if test "${cf_cv_cgetent_const+set}" = set; then
15672 echo $ECHO_N "(cached) $ECHO_C" >&6
15675 cat >conftest.$ac_ext <<_ACEOF
15676 #line 15676 "configure"
15677 #include "confdefs.h"
15679 #include <stdlib.h>
15686 #ifndef _NETBSD_SOURCE /* given, since April 2004 in stdlib.h */
15687 const char *db_array = temp;
15688 cgetent(&buf, &db_array, "vt100");
15690 cgetcap(buf, "tc", '=');
15691 cgetmatch(buf, "tc");
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 cf_cv_cgetent_const=yes
15711 echo "$as_me: failed program was:" >&5
15712 cat conftest.$ac_ext >&5
15713 cf_cv_cgetent_const=no
15715 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15718 echo "$as_me:15718: result: $cf_cv_cgetent_const" >&5
15719 echo "${ECHO_T}$cf_cv_cgetent_const" >&6
15720 if test "$cf_cv_cgetent_const" = yes
15723 cat >>confdefs.h <<EOF
15724 #define CGETENT_CONST const
15732 echo "$as_me:15732: checking for isascii" >&5
15733 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
15734 if test "${cf_cv_have_isascii+set}" = set; then
15735 echo $ECHO_N "(cached) $ECHO_C" >&6
15738 cat >conftest.$ac_ext <<_ACEOF
15739 #line 15739 "configure"
15740 #include "confdefs.h"
15745 int x = isascii(' ')
15750 rm -f conftest.$ac_objext conftest$ac_exeext
15751 if { (eval echo "$as_me:15751: \"$ac_link\"") >&5
15752 (eval $ac_link) 2>&5
15754 echo "$as_me:15754: \$? = $ac_status" >&5
15755 (exit $ac_status); } &&
15756 { ac_try='test -s conftest$ac_exeext'
15757 { (eval echo "$as_me:15757: \"$ac_try\"") >&5
15758 (eval $ac_try) 2>&5
15760 echo "$as_me:15760: \$? = $ac_status" >&5
15761 (exit $ac_status); }; }; then
15762 cf_cv_have_isascii=yes
15764 echo "$as_me: failed program was:" >&5
15765 cat conftest.$ac_ext >&5
15766 cf_cv_have_isascii=no
15768 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15771 echo "$as_me:15771: result: $cf_cv_have_isascii" >&5
15772 echo "${ECHO_T}$cf_cv_have_isascii" >&6
15773 test "$cf_cv_have_isascii" = yes &&
15774 cat >>confdefs.h <<\EOF
15775 #define HAVE_ISASCII 1
15778 if test "$ac_cv_func_sigaction" = yes; then
15779 echo "$as_me:15779: checking whether sigaction needs _POSIX_SOURCE" >&5
15780 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
15781 cat >conftest.$ac_ext <<_ACEOF
15782 #line 15782 "configure"
15783 #include "confdefs.h"
15785 #include <sys/types.h>
15786 #include <signal.h>
15790 struct sigaction act
15795 rm -f conftest.$ac_objext
15796 if { (eval echo "$as_me:15796: \"$ac_compile\"") >&5
15797 (eval $ac_compile) 2>&5
15799 echo "$as_me:15799: \$? = $ac_status" >&5
15800 (exit $ac_status); } &&
15801 { ac_try='test -s conftest.$ac_objext'
15802 { (eval echo "$as_me:15802: \"$ac_try\"") >&5
15803 (eval $ac_try) 2>&5
15805 echo "$as_me:15805: \$? = $ac_status" >&5
15806 (exit $ac_status); }; }; then
15809 echo "$as_me: failed program was:" >&5
15810 cat conftest.$ac_ext >&5
15812 cat >conftest.$ac_ext <<_ACEOF
15813 #line 15813 "configure"
15814 #include "confdefs.h"
15816 #define _POSIX_SOURCE
15817 #include <sys/types.h>
15818 #include <signal.h>
15822 struct sigaction act
15827 rm -f conftest.$ac_objext
15828 if { (eval echo "$as_me:15828: \"$ac_compile\"") >&5
15829 (eval $ac_compile) 2>&5
15831 echo "$as_me:15831: \$? = $ac_status" >&5
15832 (exit $ac_status); } &&
15833 { ac_try='test -s conftest.$ac_objext'
15834 { (eval echo "$as_me:15834: \"$ac_try\"") >&5
15835 (eval $ac_try) 2>&5
15837 echo "$as_me:15837: \$? = $ac_status" >&5
15838 (exit $ac_status); }; }; then
15841 cat >>confdefs.h <<\EOF
15842 #define _POSIX_SOURCE 1
15846 echo "$as_me: failed program was:" >&5
15847 cat conftest.$ac_ext >&5
15850 rm -f conftest.$ac_objext conftest.$ac_ext
15852 rm -f conftest.$ac_objext conftest.$ac_ext
15853 echo "$as_me:15853: result: $sigact_bad" >&5
15854 echo "${ECHO_T}$sigact_bad" >&6
15857 echo "$as_me:15857: checking if nanosleep really works" >&5
15858 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
15859 if test "${cf_cv_func_nanosleep+set}" = set; then
15860 echo $ECHO_N "(cached) $ECHO_C" >&6
15863 if test "$cross_compiling" = yes; then
15864 cf_cv_func_nanosleep=unknown
15866 cat >conftest.$ac_ext <<_ACEOF
15867 #line 15867 "configure"
15868 #include "confdefs.h"
15874 #ifdef HAVE_SYS_TIME_H
15875 #include <sys/time.h>
15879 struct timespec ts1, ts2;
15882 ts1.tv_nsec = 750000000;
15886 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
15887 ${cf_cv_main_return:-return}(code != 0);
15891 rm -f conftest$ac_exeext
15892 if { (eval echo "$as_me:15892: \"$ac_link\"") >&5
15893 (eval $ac_link) 2>&5
15895 echo "$as_me:15895: \$? = $ac_status" >&5
15896 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15897 { (eval echo "$as_me:15897: \"$ac_try\"") >&5
15898 (eval $ac_try) 2>&5
15900 echo "$as_me:15900: \$? = $ac_status" >&5
15901 (exit $ac_status); }; }; then
15902 cf_cv_func_nanosleep=yes
15904 echo "$as_me: program exited with status $ac_status" >&5
15905 echo "$as_me: failed program was:" >&5
15906 cat conftest.$ac_ext >&5
15907 cf_cv_func_nanosleep=no
15909 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15912 echo "$as_me:15912: result: $cf_cv_func_nanosleep" >&5
15913 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
15915 test "$cf_cv_func_nanosleep" = "yes" &&
15916 cat >>confdefs.h <<\EOF
15917 #define HAVE_NANOSLEEP 1
15926 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15927 echo "$as_me:15927: checking for $ac_header" >&5
15928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15930 echo $ECHO_N "(cached) $ECHO_C" >&6
15932 cat >conftest.$ac_ext <<_ACEOF
15933 #line 15933 "configure"
15934 #include "confdefs.h"
15935 #include <$ac_header>
15937 if { (eval echo "$as_me:15937: \"$ac_cpp conftest.$ac_ext\"") >&5
15938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15940 egrep -v '^ *\+' conftest.er1 >conftest.err
15942 cat conftest.err >&5
15943 echo "$as_me:15943: \$? = $ac_status" >&5
15944 (exit $ac_status); } >/dev/null; then
15945 if test -s conftest.err; then
15946 ac_cpp_err=$ac_c_preproc_warn_flag
15953 if test -z "$ac_cpp_err"; then
15954 eval "$as_ac_Header=yes"
15956 echo "$as_me: failed program was:" >&5
15957 cat conftest.$ac_ext >&5
15958 eval "$as_ac_Header=no"
15960 rm -f conftest.err conftest.$ac_ext
15962 echo "$as_me:15962: result: `eval echo '${'$as_ac_Header'}'`" >&5
15963 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15965 cat >>confdefs.h <<EOF
15966 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15972 if test "$ISC" = yes ; then
15974 for ac_header in sys/termio.h
15976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15977 echo "$as_me:15977: checking for $ac_header" >&5
15978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15980 echo $ECHO_N "(cached) $ECHO_C" >&6
15982 cat >conftest.$ac_ext <<_ACEOF
15983 #line 15983 "configure"
15984 #include "confdefs.h"
15985 #include <$ac_header>
15987 if { (eval echo "$as_me:15987: \"$ac_cpp conftest.$ac_ext\"") >&5
15988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15990 egrep -v '^ *\+' conftest.er1 >conftest.err
15992 cat conftest.err >&5
15993 echo "$as_me:15993: \$? = $ac_status" >&5
15994 (exit $ac_status); } >/dev/null; then
15995 if test -s conftest.err; then
15996 ac_cpp_err=$ac_c_preproc_warn_flag
16003 if test -z "$ac_cpp_err"; then
16004 eval "$as_ac_Header=yes"
16006 echo "$as_me: failed program was:" >&5
16007 cat conftest.$ac_ext >&5
16008 eval "$as_ac_Header=no"
16010 rm -f conftest.err conftest.$ac_ext
16012 echo "$as_me:16012: result: `eval echo '${'$as_ac_Header'}'`" >&5
16013 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16014 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16015 cat >>confdefs.h <<EOF
16016 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16023 if test "$ac_cv_header_termios_h" = yes ; then
16024 case "$CFLAGS $CPPFLAGS" in
16026 termios_bad=dunno ;;
16027 *) termios_bad=maybe ;;
16029 if test "$termios_bad" = maybe ; then
16030 echo "$as_me:16030: checking whether termios.h needs _POSIX_SOURCE" >&5
16031 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
16032 cat >conftest.$ac_ext <<_ACEOF
16033 #line 16033 "configure"
16034 #include "confdefs.h"
16035 #include <termios.h>
16039 struct termios foo; int x = foo.c_iflag
16044 rm -f conftest.$ac_objext
16045 if { (eval echo "$as_me:16045: \"$ac_compile\"") >&5
16046 (eval $ac_compile) 2>&5
16048 echo "$as_me:16048: \$? = $ac_status" >&5
16049 (exit $ac_status); } &&
16050 { ac_try='test -s conftest.$ac_objext'
16051 { (eval echo "$as_me:16051: \"$ac_try\"") >&5
16052 (eval $ac_try) 2>&5
16054 echo "$as_me:16054: \$? = $ac_status" >&5
16055 (exit $ac_status); }; }; then
16058 echo "$as_me: failed program was:" >&5
16059 cat conftest.$ac_ext >&5
16061 cat >conftest.$ac_ext <<_ACEOF
16062 #line 16062 "configure"
16063 #include "confdefs.h"
16065 #define _POSIX_SOURCE
16066 #include <termios.h>
16070 struct termios foo; int x = foo.c_iflag
16075 rm -f conftest.$ac_objext
16076 if { (eval echo "$as_me:16076: \"$ac_compile\"") >&5
16077 (eval $ac_compile) 2>&5
16079 echo "$as_me:16079: \$? = $ac_status" >&5
16080 (exit $ac_status); } &&
16081 { ac_try='test -s conftest.$ac_objext'
16082 { (eval echo "$as_me:16082: \"$ac_try\"") >&5
16083 (eval $ac_try) 2>&5
16085 echo "$as_me:16085: \$? = $ac_status" >&5
16086 (exit $ac_status); }; }; then
16087 termios_bad=unknown
16089 echo "$as_me: failed program was:" >&5
16090 cat conftest.$ac_ext >&5
16092 cat >>confdefs.h <<\EOF
16093 #define _POSIX_SOURCE 1
16097 rm -f conftest.$ac_objext conftest.$ac_ext
16100 rm -f conftest.$ac_objext conftest.$ac_ext
16101 echo "$as_me:16101: result: $termios_bad" >&5
16102 echo "${ECHO_T}$termios_bad" >&6
16106 echo "$as_me:16106: checking for tcgetattr" >&5
16107 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
16108 if test "${cf_cv_have_tcgetattr+set}" = set; then
16109 echo $ECHO_N "(cached) $ECHO_C" >&6
16112 cat >conftest.$ac_ext <<_ACEOF
16113 #line 16113 "configure"
16114 #include "confdefs.h"
16116 #include <sys/types.h>
16117 #ifdef HAVE_UNISTD_H
16118 #include <unistd.h>
16120 #ifdef HAVE_TERMIOS_H
16121 #include <termios.h>
16122 #define TTY struct termios
16124 #ifdef HAVE_TERMIO_H
16125 #include <termio.h>
16126 #define TTY struct termio
16135 tcgetattr(1, &foo);
16140 rm -f conftest.$ac_objext conftest$ac_exeext
16141 if { (eval echo "$as_me:16141: \"$ac_link\"") >&5
16142 (eval $ac_link) 2>&5
16144 echo "$as_me:16144: \$? = $ac_status" >&5
16145 (exit $ac_status); } &&
16146 { ac_try='test -s conftest$ac_exeext'
16147 { (eval echo "$as_me:16147: \"$ac_try\"") >&5
16148 (eval $ac_try) 2>&5
16150 echo "$as_me:16150: \$? = $ac_status" >&5
16151 (exit $ac_status); }; }; then
16152 cf_cv_have_tcgetattr=yes
16154 echo "$as_me: failed program was:" >&5
16155 cat conftest.$ac_ext >&5
16156 cf_cv_have_tcgetattr=no
16158 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16160 echo "$as_me:16160: result: $cf_cv_have_tcgetattr" >&5
16161 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
16162 test "$cf_cv_have_tcgetattr" = yes &&
16163 cat >>confdefs.h <<\EOF
16164 #define HAVE_TCGETATTR 1
16167 echo "$as_me:16167: checking for vsscanf function or workaround" >&5
16168 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
16169 if test "${cf_cv_func_vsscanf+set}" = set; then
16170 echo $ECHO_N "(cached) $ECHO_C" >&6
16173 cat >conftest.$ac_ext <<_ACEOF
16174 #line 16174 "configure"
16175 #include "confdefs.h"
16177 #include <stdarg.h>
16184 vsscanf("from", "%d", ap)
16189 rm -f conftest.$ac_objext conftest$ac_exeext
16190 if { (eval echo "$as_me:16190: \"$ac_link\"") >&5
16191 (eval $ac_link) 2>&5
16193 echo "$as_me:16193: \$? = $ac_status" >&5
16194 (exit $ac_status); } &&
16195 { ac_try='test -s conftest$ac_exeext'
16196 { (eval echo "$as_me:16196: \"$ac_try\"") >&5
16197 (eval $ac_try) 2>&5
16199 echo "$as_me:16199: \$? = $ac_status" >&5
16200 (exit $ac_status); }; }; then
16201 cf_cv_func_vsscanf=vsscanf
16203 echo "$as_me: failed program was:" >&5
16204 cat conftest.$ac_ext >&5
16206 cat >conftest.$ac_ext <<_ACEOF
16207 #line 16207 "configure"
16208 #include "confdefs.h"
16210 #include <stdarg.h>
16217 char *str = "from";
16219 strbuf._flag = _IOREAD;
16220 strbuf._ptr = strbuf._base = (unsigned char *) str;
16221 strbuf._cnt = strlen(str);
16222 strbuf._file = _NFILE;
16223 return (vfscanf(&strbuf, "%d", ap))
16228 rm -f conftest.$ac_objext conftest$ac_exeext
16229 if { (eval echo "$as_me:16229: \"$ac_link\"") >&5
16230 (eval $ac_link) 2>&5
16232 echo "$as_me:16232: \$? = $ac_status" >&5
16233 (exit $ac_status); } &&
16234 { ac_try='test -s conftest$ac_exeext'
16235 { (eval echo "$as_me:16235: \"$ac_try\"") >&5
16236 (eval $ac_try) 2>&5
16238 echo "$as_me:16238: \$? = $ac_status" >&5
16239 (exit $ac_status); }; }; then
16240 cf_cv_func_vsscanf=vfscanf
16242 echo "$as_me: failed program was:" >&5
16243 cat conftest.$ac_ext >&5
16245 cat >conftest.$ac_ext <<_ACEOF
16246 #line 16246 "configure"
16247 #include "confdefs.h"
16249 #include <stdarg.h>
16256 char *str = "from";
16258 strbuf._flag = _IOREAD;
16259 strbuf._ptr = strbuf._base = (unsigned char *) str;
16260 strbuf._cnt = strlen(str);
16261 strbuf._file = _NFILE;
16262 return (_doscan(&strbuf, "%d", ap))
16267 rm -f conftest.$ac_objext conftest$ac_exeext
16268 if { (eval echo "$as_me:16268: \"$ac_link\"") >&5
16269 (eval $ac_link) 2>&5
16271 echo "$as_me:16271: \$? = $ac_status" >&5
16272 (exit $ac_status); } &&
16273 { ac_try='test -s conftest$ac_exeext'
16274 { (eval echo "$as_me:16274: \"$ac_try\"") >&5
16275 (eval $ac_try) 2>&5
16277 echo "$as_me:16277: \$? = $ac_status" >&5
16278 (exit $ac_status); }; }; then
16279 cf_cv_func_vsscanf=_doscan
16281 echo "$as_me: failed program was:" >&5
16282 cat conftest.$ac_ext >&5
16284 cf_cv_func_vsscanf=no
16286 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16290 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16292 echo "$as_me:16292: result: $cf_cv_func_vsscanf" >&5
16293 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
16295 case $cf_cv_func_vsscanf in #(vi
16297 cat >>confdefs.h <<\EOF
16298 #define HAVE_VSSCANF 1
16302 cat >>confdefs.h <<\EOF
16303 #define HAVE_VFSCANF 1
16307 cat >>confdefs.h <<\EOF
16308 #define HAVE__DOSCAN 1
16313 echo "$as_me:16313: checking for working mkstemp" >&5
16314 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
16315 if test "${cf_cv_func_mkstemp+set}" = set; then
16316 echo $ECHO_N "(cached) $ECHO_C" >&6
16320 if test "$cross_compiling" = yes; then
16321 cf_cv_func_mkstemp=maybe
16323 cat >conftest.$ac_ext <<_ACEOF
16324 #line 16324 "configure"
16325 #include "confdefs.h"
16327 #include <sys/types.h>
16328 #include <stdlib.h>
16330 #include <string.h>
16331 #include <sys/stat.h>
16334 char *tmpl = "conftestXXXXXX";
16342 for (n = 0; n < 2; ++n) {
16343 strcpy(name[n], tmpl);
16344 if ((fd = mkstemp(name[n])) >= 0) {
16345 if (!strcmp(name[n], tmpl)
16346 || stat(name[n], &sb) != 0
16347 || (sb.st_mode & S_IFMT) != S_IFREG
16348 || (sb.st_mode & 077) != 0) {
16355 && !strcmp(name[0], name[1]))
16357 ${cf_cv_main_return:-return}(result);
16361 rm -f conftest$ac_exeext
16362 if { (eval echo "$as_me:16362: \"$ac_link\"") >&5
16363 (eval $ac_link) 2>&5
16365 echo "$as_me:16365: \$? = $ac_status" >&5
16366 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16367 { (eval echo "$as_me:16367: \"$ac_try\"") >&5
16368 (eval $ac_try) 2>&5
16370 echo "$as_me:16370: \$? = $ac_status" >&5
16371 (exit $ac_status); }; }; then
16372 cf_cv_func_mkstemp=yes
16375 echo "$as_me: program exited with status $ac_status" >&5
16376 echo "$as_me: failed program was:" >&5
16377 cat conftest.$ac_ext >&5
16378 cf_cv_func_mkstemp=no
16381 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16385 echo "$as_me:16385: result: $cf_cv_func_mkstemp" >&5
16386 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
16387 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
16388 echo "$as_me:16388: checking for mkstemp" >&5
16389 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
16390 if test "${ac_cv_func_mkstemp+set}" = set; then
16391 echo $ECHO_N "(cached) $ECHO_C" >&6
16393 cat >conftest.$ac_ext <<_ACEOF
16394 #line 16394 "configure"
16395 #include "confdefs.h"
16396 /* System header to define __stub macros and hopefully few prototypes,
16397 which can conflict with char mkstemp (); below. */
16398 #include <assert.h>
16399 /* Override any gcc2 internal prototype to avoid an error. */
16403 /* We use char because int might match the return type of a gcc2
16404 builtin and then its argument prototype would still apply. */
16411 /* The GNU C library defines this for functions which it implements
16412 to always fail with ENOSYS. Some functions are actually named
16413 something starting with __ and the normal name is an alias. */
16414 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
16417 f = mkstemp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
16424 rm -f conftest.$ac_objext conftest$ac_exeext
16425 if { (eval echo "$as_me:16425: \"$ac_link\"") >&5
16426 (eval $ac_link) 2>&5
16428 echo "$as_me:16428: \$? = $ac_status" >&5
16429 (exit $ac_status); } &&
16430 { ac_try='test -s conftest$ac_exeext'
16431 { (eval echo "$as_me:16431: \"$ac_try\"") >&5
16432 (eval $ac_try) 2>&5
16434 echo "$as_me:16434: \$? = $ac_status" >&5
16435 (exit $ac_status); }; }; then
16436 ac_cv_func_mkstemp=yes
16438 echo "$as_me: failed program was:" >&5
16439 cat conftest.$ac_ext >&5
16440 ac_cv_func_mkstemp=no
16442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16444 echo "$as_me:16444: result: $ac_cv_func_mkstemp" >&5
16445 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
16448 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
16450 cat >>confdefs.h <<\EOF
16451 #define HAVE_MKSTEMP 1
16456 # setup for prototype of fallback for vsscanf()
16458 if test "$cf_cv_func_vsscanf" = vsscanf ; then
16464 if test "x$cross_compiling" = xyes ; then
16465 { echo "$as_me:16465: WARNING: cross compiling: assume setvbuf params not reversed" >&5
16466 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
16468 echo "$as_me:16468: checking whether setvbuf arguments are reversed" >&5
16469 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
16470 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
16471 echo $ECHO_N "(cached) $ECHO_C" >&6
16473 if test "$cross_compiling" = yes; then
16474 { { echo "$as_me:16474: error: cannot run test program while cross compiling" >&5
16475 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16476 { (exit 1); exit 1; }; }
16478 cat >conftest.$ac_ext <<_ACEOF
16479 #line 16479 "configure"
16480 #include "confdefs.h"
16482 /* If setvbuf has the reversed format, exit 0. */
16486 /* This call has the arguments reversed.
16487 A reversed system may check and see that the address of main
16488 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
16489 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
16490 $ac_main_return(1);
16491 putc('\r', stdout);
16492 $ac_main_return(0); /* Non-reversed systems segv here. */
16495 rm -f conftest$ac_exeext
16496 if { (eval echo "$as_me:16496: \"$ac_link\"") >&5
16497 (eval $ac_link) 2>&5
16499 echo "$as_me:16499: \$? = $ac_status" >&5
16500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16501 { (eval echo "$as_me:16501: \"$ac_try\"") >&5
16502 (eval $ac_try) 2>&5
16504 echo "$as_me:16504: \$? = $ac_status" >&5
16505 (exit $ac_status); }; }; then
16506 ac_cv_func_setvbuf_reversed=yes
16508 echo "$as_me: program exited with status $ac_status" >&5
16509 echo "$as_me: failed program was:" >&5
16510 cat conftest.$ac_ext >&5
16511 ac_cv_func_setvbuf_reversed=no
16513 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16515 rm -f core core.* *.core
16517 echo "$as_me:16517: result: $ac_cv_func_setvbuf_reversed" >&5
16518 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
16519 if test $ac_cv_func_setvbuf_reversed = yes; then
16521 cat >>confdefs.h <<\EOF
16522 #define SETVBUF_REVERSED 1
16528 echo "$as_me:16528: checking for intptr_t" >&5
16529 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
16530 if test "${ac_cv_type_intptr_t+set}" = set; then
16531 echo $ECHO_N "(cached) $ECHO_C" >&6
16533 cat >conftest.$ac_ext <<_ACEOF
16534 #line 16534 "configure"
16535 #include "confdefs.h"
16536 $ac_includes_default
16540 if ((intptr_t *) 0)
16542 if (sizeof (intptr_t))
16548 rm -f conftest.$ac_objext
16549 if { (eval echo "$as_me:16549: \"$ac_compile\"") >&5
16550 (eval $ac_compile) 2>&5
16552 echo "$as_me:16552: \$? = $ac_status" >&5
16553 (exit $ac_status); } &&
16554 { ac_try='test -s conftest.$ac_objext'
16555 { (eval echo "$as_me:16555: \"$ac_try\"") >&5
16556 (eval $ac_try) 2>&5
16558 echo "$as_me:16558: \$? = $ac_status" >&5
16559 (exit $ac_status); }; }; then
16560 ac_cv_type_intptr_t=yes
16562 echo "$as_me: failed program was:" >&5
16563 cat conftest.$ac_ext >&5
16564 ac_cv_type_intptr_t=no
16566 rm -f conftest.$ac_objext conftest.$ac_ext
16568 echo "$as_me:16568: result: $ac_cv_type_intptr_t" >&5
16569 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
16570 if test $ac_cv_type_intptr_t = yes; then
16574 cat >>confdefs.h <<EOF
16575 #define intptr_t long
16580 echo "$as_me:16580: checking for type sigaction_t" >&5
16581 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
16582 if test "${cf_cv_type_sigaction+set}" = set; then
16583 echo $ECHO_N "(cached) $ECHO_C" >&6
16586 cat >conftest.$ac_ext <<_ACEOF
16587 #line 16587 "configure"
16588 #include "confdefs.h"
16590 #include <signal.h>
16599 rm -f conftest.$ac_objext
16600 if { (eval echo "$as_me:16600: \"$ac_compile\"") >&5
16601 (eval $ac_compile) 2>&5
16603 echo "$as_me:16603: \$? = $ac_status" >&5
16604 (exit $ac_status); } &&
16605 { ac_try='test -s conftest.$ac_objext'
16606 { (eval echo "$as_me:16606: \"$ac_try\"") >&5
16607 (eval $ac_try) 2>&5
16609 echo "$as_me:16609: \$? = $ac_status" >&5
16610 (exit $ac_status); }; }; then
16611 cf_cv_type_sigaction=yes
16613 echo "$as_me: failed program was:" >&5
16614 cat conftest.$ac_ext >&5
16615 cf_cv_type_sigaction=no
16617 rm -f conftest.$ac_objext conftest.$ac_ext
16620 echo "$as_me:16620: result: $cf_cv_type_sigaction" >&5
16621 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
16622 test "$cf_cv_type_sigaction" = yes &&
16623 cat >>confdefs.h <<\EOF
16624 #define HAVE_TYPE_SIGACTION 1
16627 echo "$as_me:16627: checking declaration of size-change" >&5
16628 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
16629 if test "${cf_cv_sizechange+set}" = set; then
16630 echo $ECHO_N "(cached) $ECHO_C" >&6
16633 cf_cv_sizechange=unknown
16634 cf_save_CPPFLAGS="$CPPFLAGS"
16636 for cf_opts in "" "NEED_PTEM_H"
16639 CPPFLAGS="$cf_save_CPPFLAGS"
16640 test -n "$cf_opts" && CPPFLAGS="$CPPFLAGS -D$cf_opts"
16641 cat >conftest.$ac_ext <<_ACEOF
16642 #line 16642 "configure"
16643 #include "confdefs.h"
16644 #include <sys/types.h>
16645 #ifdef HAVE_TERMIOS_H
16646 #include <termios.h>
16648 #ifdef HAVE_TERMIO_H
16649 #include <termio.h>
16653 /* This is a workaround for SCO: they neglected to define struct winsize in
16654 * termios.h -- it's only in termio.h and ptem.h
16656 #include <sys/stream.h>
16657 #include <sys/ptem.h>
16659 #if !defined(sun) || !defined(HAVE_TERMIOS_H)
16660 #include <sys/ioctl.h>
16668 struct ttysize win; /* FIXME: what system is this? */
16669 int y = win.ts_lines;
16670 int x = win.ts_cols;
16673 struct winsize win;
16674 int y = win.ws_row;
16675 int x = win.ws_col;
16677 no TIOCGSIZE or TIOCGWINSZ
16678 #endif /* TIOCGWINSZ */
16679 #endif /* TIOCGSIZE */
16685 rm -f conftest.$ac_objext
16686 if { (eval echo "$as_me:16686: \"$ac_compile\"") >&5
16687 (eval $ac_compile) 2>&5
16689 echo "$as_me:16689: \$? = $ac_status" >&5
16690 (exit $ac_status); } &&
16691 { ac_try='test -s conftest.$ac_objext'
16692 { (eval echo "$as_me:16692: \"$ac_try\"") >&5
16693 (eval $ac_try) 2>&5
16695 echo "$as_me:16695: \$? = $ac_status" >&5
16696 (exit $ac_status); }; }; then
16697 cf_cv_sizechange=yes
16699 echo "$as_me: failed program was:" >&5
16700 cat conftest.$ac_ext >&5
16701 cf_cv_sizechange=no
16703 rm -f conftest.$ac_objext conftest.$ac_ext
16705 CPPFLAGS="$cf_save_CPPFLAGS"
16706 if test "$cf_cv_sizechange" = yes ; then
16707 echo "size-change succeeded ($cf_opts)" >&5
16708 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
16714 echo "$as_me:16714: result: $cf_cv_sizechange" >&5
16715 echo "${ECHO_T}$cf_cv_sizechange" >&6
16716 if test "$cf_cv_sizechange" != no ; then
16718 cat >>confdefs.h <<\EOF
16719 #define HAVE_SIZECHANGE 1
16722 case $cf_cv_sizechange in #(vi
16724 cat >>confdefs.h <<EOF
16725 #define $cf_cv_sizechange 1
16732 echo "$as_me:16732: checking for memmove" >&5
16733 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
16734 if test "${ac_cv_func_memmove+set}" = set; then
16735 echo $ECHO_N "(cached) $ECHO_C" >&6
16737 cat >conftest.$ac_ext <<_ACEOF
16738 #line 16738 "configure"
16739 #include "confdefs.h"
16740 /* System header to define __stub macros and hopefully few prototypes,
16741 which can conflict with char memmove (); below. */
16742 #include <assert.h>
16743 /* Override any gcc2 internal prototype to avoid an error. */
16747 /* We use char because int might match the return type of a gcc2
16748 builtin and then its argument prototype would still apply. */
16755 /* The GNU C library defines this for functions which it implements
16756 to always fail with ENOSYS. Some functions are actually named
16757 something starting with __ and the normal name is an alias. */
16758 #if defined (__stub_memmove) || defined (__stub___memmove)
16761 f = memmove; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
16768 rm -f conftest.$ac_objext conftest$ac_exeext
16769 if { (eval echo "$as_me:16769: \"$ac_link\"") >&5
16770 (eval $ac_link) 2>&5
16772 echo "$as_me:16772: \$? = $ac_status" >&5
16773 (exit $ac_status); } &&
16774 { ac_try='test -s conftest$ac_exeext'
16775 { (eval echo "$as_me:16775: \"$ac_try\"") >&5
16776 (eval $ac_try) 2>&5
16778 echo "$as_me:16778: \$? = $ac_status" >&5
16779 (exit $ac_status); }; }; then
16780 ac_cv_func_memmove=yes
16782 echo "$as_me: failed program was:" >&5
16783 cat conftest.$ac_ext >&5
16784 ac_cv_func_memmove=no
16786 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16788 echo "$as_me:16788: result: $ac_cv_func_memmove" >&5
16789 echo "${ECHO_T}$ac_cv_func_memmove" >&6
16790 if test $ac_cv_func_memmove = yes; then
16794 echo "$as_me:16794: checking for bcopy" >&5
16795 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
16796 if test "${ac_cv_func_bcopy+set}" = set; then
16797 echo $ECHO_N "(cached) $ECHO_C" >&6
16799 cat >conftest.$ac_ext <<_ACEOF
16800 #line 16800 "configure"
16801 #include "confdefs.h"
16802 /* System header to define __stub macros and hopefully few prototypes,
16803 which can conflict with char bcopy (); below. */
16804 #include <assert.h>
16805 /* Override any gcc2 internal prototype to avoid an error. */
16809 /* We use char because int might match the return type of a gcc2
16810 builtin and then its argument prototype would still apply. */
16817 /* The GNU C library defines this for functions which it implements
16818 to always fail with ENOSYS. Some functions are actually named
16819 something starting with __ and the normal name is an alias. */
16820 #if defined (__stub_bcopy) || defined (__stub___bcopy)
16823 f = bcopy; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
16830 rm -f conftest.$ac_objext conftest$ac_exeext
16831 if { (eval echo "$as_me:16831: \"$ac_link\"") >&5
16832 (eval $ac_link) 2>&5
16834 echo "$as_me:16834: \$? = $ac_status" >&5
16835 (exit $ac_status); } &&
16836 { ac_try='test -s conftest$ac_exeext'
16837 { (eval echo "$as_me:16837: \"$ac_try\"") >&5
16838 (eval $ac_try) 2>&5
16840 echo "$as_me:16840: \$? = $ac_status" >&5
16841 (exit $ac_status); }; }; then
16842 ac_cv_func_bcopy=yes
16844 echo "$as_me: failed program was:" >&5
16845 cat conftest.$ac_ext >&5
16846 ac_cv_func_bcopy=no
16848 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16850 echo "$as_me:16850: result: $ac_cv_func_bcopy" >&5
16851 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
16852 if test $ac_cv_func_bcopy = yes; then
16854 echo "$as_me:16854: checking if bcopy does overlapping moves" >&5
16855 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
16856 if test "${cf_cv_good_bcopy+set}" = set; then
16857 echo $ECHO_N "(cached) $ECHO_C" >&6
16860 if test "$cross_compiling" = yes; then
16861 cf_cv_good_bcopy=unknown
16863 cat >conftest.$ac_ext <<_ACEOF
16864 #line 16864 "configure"
16865 #include "confdefs.h"
16868 static char data[] = "abcdefghijklmnopqrstuwwxyz";
16870 bcopy(data, temp, sizeof(data));
16871 bcopy(temp+10, temp, 15);
16872 bcopy(temp+5, temp+15, 10);
16873 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
16877 rm -f conftest$ac_exeext
16878 if { (eval echo "$as_me:16878: \"$ac_link\"") >&5
16879 (eval $ac_link) 2>&5
16881 echo "$as_me:16881: \$? = $ac_status" >&5
16882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16883 { (eval echo "$as_me:16883: \"$ac_try\"") >&5
16884 (eval $ac_try) 2>&5
16886 echo "$as_me:16886: \$? = $ac_status" >&5
16887 (exit $ac_status); }; }; then
16888 cf_cv_good_bcopy=yes
16890 echo "$as_me: program exited with status $ac_status" >&5
16891 echo "$as_me: failed program was:" >&5
16892 cat conftest.$ac_ext >&5
16893 cf_cv_good_bcopy=no
16895 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16899 echo "$as_me:16899: result: $cf_cv_good_bcopy" >&5
16900 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
16903 cf_cv_good_bcopy=no
16906 if test "$cf_cv_good_bcopy" = yes ; then
16908 cat >>confdefs.h <<\EOF
16909 #define USE_OK_BCOPY 1
16914 cat >>confdefs.h <<\EOF
16915 #define USE_MY_MEMMOVE 1
16922 echo "$as_me:16922: checking if poll really works" >&5
16923 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
16924 if test "${cf_cv_working_poll+set}" = set; then
16925 echo $ECHO_N "(cached) $ECHO_C" >&6
16928 if test "$cross_compiling" = yes; then
16929 cf_cv_working_poll=unknown
16931 cat >conftest.$ac_ext <<_ACEOF
16932 #line 16932 "configure"
16933 #include "confdefs.h"
16935 #include <stdlib.h>
16937 #include <unistd.h>
16942 #include <sys/poll.h>
16945 struct pollfd myfds;
16948 /* check for Darwin bug with respect to "devices" */
16949 myfds.fd = open("/dev/null", 1); /* O_WRONLY */
16952 myfds.events = POLLIN;
16955 ret = poll(&myfds, 1, 100);
16957 if (ret < 0 || (myfds.revents & POLLNVAL)) {
16962 fd = open("/dev/tty", 2); /* O_RDWR */
16966 /* also check with standard input */
16968 myfds.events = POLLIN;
16970 ret = poll(&myfds, 1, 100);
16975 ${cf_cv_main_return:-return}(ret < 0);
16978 rm -f conftest$ac_exeext
16979 if { (eval echo "$as_me:16979: \"$ac_link\"") >&5
16980 (eval $ac_link) 2>&5
16982 echo "$as_me:16982: \$? = $ac_status" >&5
16983 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16984 { (eval echo "$as_me:16984: \"$ac_try\"") >&5
16985 (eval $ac_try) 2>&5
16987 echo "$as_me:16987: \$? = $ac_status" >&5
16988 (exit $ac_status); }; }; then
16989 cf_cv_working_poll=yes
16991 echo "$as_me: program exited with status $ac_status" >&5
16992 echo "$as_me: failed program was:" >&5
16993 cat conftest.$ac_ext >&5
16994 cf_cv_working_poll=no
16996 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16999 echo "$as_me:16999: result: $cf_cv_working_poll" >&5
17000 echo "${ECHO_T}$cf_cv_working_poll" >&6
17001 test "$cf_cv_working_poll" = "yes" &&
17002 cat >>confdefs.h <<\EOF
17003 #define HAVE_WORKING_POLL 1
17006 echo "$as_me:17006: checking for va_copy" >&5
17007 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
17008 if test "${cf_cv_have_va_copy+set}" = set; then
17009 echo $ECHO_N "(cached) $ECHO_C" >&6
17012 cat >conftest.$ac_ext <<_ACEOF
17013 #line 17013 "configure"
17014 #include "confdefs.h"
17016 #include <stdarg.h>
17022 static va_list dst;
17023 static va_list src;
17029 rm -f conftest.$ac_objext conftest$ac_exeext
17030 if { (eval echo "$as_me:17030: \"$ac_link\"") >&5
17031 (eval $ac_link) 2>&5
17033 echo "$as_me:17033: \$? = $ac_status" >&5
17034 (exit $ac_status); } &&
17035 { ac_try='test -s conftest$ac_exeext'
17036 { (eval echo "$as_me:17036: \"$ac_try\"") >&5
17037 (eval $ac_try) 2>&5
17039 echo "$as_me:17039: \$? = $ac_status" >&5
17040 (exit $ac_status); }; }; then
17041 cf_cv_have_va_copy=yes
17043 echo "$as_me: failed program was:" >&5
17044 cat conftest.$ac_ext >&5
17045 cf_cv_have_va_copy=no
17047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17049 echo "$as_me:17049: result: $cf_cv_have_va_copy" >&5
17050 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
17052 test "$cf_cv_have_va_copy" = yes &&
17053 cat >>confdefs.h <<\EOF
17054 #define HAVE_VA_COPY 1
17057 echo "$as_me:17057: checking for __va_copy" >&5
17058 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
17059 if test "${cf_cv_have___va_copy+set}" = set; then
17060 echo $ECHO_N "(cached) $ECHO_C" >&6
17063 cat >conftest.$ac_ext <<_ACEOF
17064 #line 17064 "configure"
17065 #include "confdefs.h"
17067 #include <stdarg.h>
17073 static va_list dst;
17074 static va_list src;
17075 __va_copy(dst, src)
17080 rm -f conftest.$ac_objext conftest$ac_exeext
17081 if { (eval echo "$as_me:17081: \"$ac_link\"") >&5
17082 (eval $ac_link) 2>&5
17084 echo "$as_me:17084: \$? = $ac_status" >&5
17085 (exit $ac_status); } &&
17086 { ac_try='test -s conftest$ac_exeext'
17087 { (eval echo "$as_me:17087: \"$ac_try\"") >&5
17088 (eval $ac_try) 2>&5
17090 echo "$as_me:17090: \$? = $ac_status" >&5
17091 (exit $ac_status); }; }; then
17092 cf_cv_have___va_copy=yes
17094 echo "$as_me: failed program was:" >&5
17095 cat conftest.$ac_ext >&5
17096 cf_cv_have___va_copy=no
17098 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17100 echo "$as_me:17100: result: $cf_cv_have___va_copy" >&5
17101 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
17103 test "$cf_cv_have___va_copy" = yes &&
17104 cat >>confdefs.h <<\EOF
17105 #define HAVE___VA_COPY 1
17108 echo "$as_me:17108: checking for pid_t" >&5
17109 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17110 if test "${ac_cv_type_pid_t+set}" = set; then
17111 echo $ECHO_N "(cached) $ECHO_C" >&6
17113 cat >conftest.$ac_ext <<_ACEOF
17114 #line 17114 "configure"
17115 #include "confdefs.h"
17116 $ac_includes_default
17122 if (sizeof (pid_t))
17128 rm -f conftest.$ac_objext
17129 if { (eval echo "$as_me:17129: \"$ac_compile\"") >&5
17130 (eval $ac_compile) 2>&5
17132 echo "$as_me:17132: \$? = $ac_status" >&5
17133 (exit $ac_status); } &&
17134 { ac_try='test -s conftest.$ac_objext'
17135 { (eval echo "$as_me:17135: \"$ac_try\"") >&5
17136 (eval $ac_try) 2>&5
17138 echo "$as_me:17138: \$? = $ac_status" >&5
17139 (exit $ac_status); }; }; then
17140 ac_cv_type_pid_t=yes
17142 echo "$as_me: failed program was:" >&5
17143 cat conftest.$ac_ext >&5
17144 ac_cv_type_pid_t=no
17146 rm -f conftest.$ac_objext conftest.$ac_ext
17148 echo "$as_me:17148: result: $ac_cv_type_pid_t" >&5
17149 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17150 if test $ac_cv_type_pid_t = yes; then
17154 cat >>confdefs.h <<EOF
17160 for ac_header in unistd.h vfork.h
17162 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17163 echo "$as_me:17163: checking for $ac_header" >&5
17164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17166 echo $ECHO_N "(cached) $ECHO_C" >&6
17168 cat >conftest.$ac_ext <<_ACEOF
17169 #line 17169 "configure"
17170 #include "confdefs.h"
17171 #include <$ac_header>
17173 if { (eval echo "$as_me:17173: \"$ac_cpp conftest.$ac_ext\"") >&5
17174 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17176 egrep -v '^ *\+' conftest.er1 >conftest.err
17178 cat conftest.err >&5
17179 echo "$as_me:17179: \$? = $ac_status" >&5
17180 (exit $ac_status); } >/dev/null; then
17181 if test -s conftest.err; then
17182 ac_cpp_err=$ac_c_preproc_warn_flag
17189 if test -z "$ac_cpp_err"; then
17190 eval "$as_ac_Header=yes"
17192 echo "$as_me: failed program was:" >&5
17193 cat conftest.$ac_ext >&5
17194 eval "$as_ac_Header=no"
17196 rm -f conftest.err conftest.$ac_ext
17198 echo "$as_me:17198: result: `eval echo '${'$as_ac_Header'}'`" >&5
17199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17201 cat >>confdefs.h <<EOF
17202 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17208 for ac_func in fork vfork
17210 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17211 echo "$as_me:17211: checking for $ac_func" >&5
17212 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17213 if eval "test \"\${$as_ac_var+set}\" = set"; then
17214 echo $ECHO_N "(cached) $ECHO_C" >&6
17216 cat >conftest.$ac_ext <<_ACEOF
17217 #line 17217 "configure"
17218 #include "confdefs.h"
17219 /* System header to define __stub macros and hopefully few prototypes,
17220 which can conflict with char $ac_func (); below. */
17221 #include <assert.h>
17222 /* Override any gcc2 internal prototype to avoid an error. */
17226 /* We use char because int might match the return type of a gcc2
17227 builtin and then its argument prototype would still apply. */
17234 /* The GNU C library defines this for functions which it implements
17235 to always fail with ENOSYS. Some functions are actually named
17236 something starting with __ and the normal name is an alias. */
17237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17240 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
17247 rm -f conftest.$ac_objext conftest$ac_exeext
17248 if { (eval echo "$as_me:17248: \"$ac_link\"") >&5
17249 (eval $ac_link) 2>&5
17251 echo "$as_me:17251: \$? = $ac_status" >&5
17252 (exit $ac_status); } &&
17253 { ac_try='test -s conftest$ac_exeext'
17254 { (eval echo "$as_me:17254: \"$ac_try\"") >&5
17255 (eval $ac_try) 2>&5
17257 echo "$as_me:17257: \$? = $ac_status" >&5
17258 (exit $ac_status); }; }; then
17259 eval "$as_ac_var=yes"
17261 echo "$as_me: failed program was:" >&5
17262 cat conftest.$ac_ext >&5
17263 eval "$as_ac_var=no"
17265 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17267 echo "$as_me:17267: result: `eval echo '${'$as_ac_var'}'`" >&5
17268 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17269 if test `eval echo '${'$as_ac_var'}'` = yes; then
17270 cat >>confdefs.h <<EOF
17271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17277 ac_cv_func_fork_works=$ac_cv_func_fork
17278 if test "x$ac_cv_func_fork" = xyes; then
17279 echo "$as_me:17279: checking for working fork" >&5
17280 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
17281 if test "${ac_cv_func_fork_works+set}" = set; then
17282 echo $ECHO_N "(cached) $ECHO_C" >&6
17284 if test "$cross_compiling" = yes; then
17285 ac_cv_func_fork_works=cross
17287 cat >conftest.$ac_ext <<_ACEOF
17288 /* By Rüdiger Kuhlmann. */
17289 #include <sys/types.h>
17291 # include <unistd.h>
17293 /* Some systems only have a dummy stub for fork() */
17297 $ac_main_return (1);
17298 $ac_main_return (0);
17301 rm -f conftest$ac_exeext
17302 if { (eval echo "$as_me:17302: \"$ac_link\"") >&5
17303 (eval $ac_link) 2>&5
17305 echo "$as_me:17305: \$? = $ac_status" >&5
17306 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17307 { (eval echo "$as_me:17307: \"$ac_try\"") >&5
17308 (eval $ac_try) 2>&5
17310 echo "$as_me:17310: \$? = $ac_status" >&5
17311 (exit $ac_status); }; }; then
17312 ac_cv_func_fork_works=yes
17314 echo "$as_me: program exited with status $ac_status" >&5
17315 echo "$as_me: failed program was:" >&5
17316 cat conftest.$ac_ext >&5
17317 ac_cv_func_fork_works=no
17319 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17322 echo "$as_me:17322: result: $ac_cv_func_fork_works" >&5
17323 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
17326 if test "x$ac_cv_func_fork_works" = xcross; then
17328 *-*-amigaos* | *-*-msdosdjgpp*)
17329 # Override, as these systems have only a dummy fork() stub
17330 ac_cv_func_fork_works=no
17333 ac_cv_func_fork_works=yes
17336 { echo "$as_me:17336: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
17337 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
17339 ac_cv_func_vfork_works=$ac_cv_func_vfork
17340 if test "x$ac_cv_func_vfork" = xyes; then
17341 echo "$as_me:17341: checking for working vfork" >&5
17342 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
17343 if test "${ac_cv_func_vfork_works+set}" = set; then
17344 echo $ECHO_N "(cached) $ECHO_C" >&6
17346 if test "$cross_compiling" = yes; then
17347 ac_cv_func_vfork_works=cross
17349 cat >conftest.$ac_ext <<_ACEOF
17350 #line 17350 "configure"
17351 #include "confdefs.h"
17352 /* Thanks to Paul Eggert for this test. */
17354 #include <sys/types.h>
17355 #include <sys/stat.h>
17357 # include <unistd.h>
17360 # include <vfork.h>
17362 /* On some sparc systems, changes by the child to local and incoming
17363 argument registers are propagated back to the parent. The compiler
17364 is told about this with #include <vfork.h>, but some compilers
17365 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17366 static variable whose address is put into a register that is
17367 clobbered by the vfork. */
17370 sparc_address_test (int arg)
17372 sparc_address_test (arg) int arg;
17375 static pid_t child;
17393 pid_t parent = getpid ();
17396 sparc_address_test ();
17401 /* Here is another test for sparc vfork register problems. This
17402 test uses lots of local variables, at least as many local
17403 variables as main has allocated so far including compiler
17404 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17405 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17406 reuse the register of parent for one of the local variables,
17407 since it will think that parent can't possibly be used any more
17408 in this routine. Assigning to the local variable will thus
17409 munge parent in the parent process. */
17411 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17412 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17413 /* Convince the compiler that p..p7 are live; otherwise, it might
17414 use the same hardware register for all 8 local variables. */
17415 if (p != p1 || p != p2 || p != p3 || p != p4
17416 || p != p5 || p != p6 || p != p7)
17419 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17420 from child file descriptors. If the child closes a descriptor
17421 before it execs or exits, this munges the parent's descriptor
17422 as well. Test for this by closing stdout in the child. */
17423 _exit(close(fileno(stdout)) != 0);
17428 while (wait(&status) != child)
17431 /* Was there some problem with vforking? */
17434 /* Did the child fail? (This shouldn't happen.) */
17437 /* Did the vfork/compiler bug occur? */
17438 || parent != getpid()
17440 /* Did the file descriptor bug occur? */
17441 || fstat(fileno(stdout), &st) != 0
17446 rm -f conftest$ac_exeext
17447 if { (eval echo "$as_me:17447: \"$ac_link\"") >&5
17448 (eval $ac_link) 2>&5
17450 echo "$as_me:17450: \$? = $ac_status" >&5
17451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17452 { (eval echo "$as_me:17452: \"$ac_try\"") >&5
17453 (eval $ac_try) 2>&5
17455 echo "$as_me:17455: \$? = $ac_status" >&5
17456 (exit $ac_status); }; }; then
17457 ac_cv_func_vfork_works=yes
17459 echo "$as_me: program exited with status $ac_status" >&5
17460 echo "$as_me: failed program was:" >&5
17461 cat conftest.$ac_ext >&5
17462 ac_cv_func_vfork_works=no
17464 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17467 echo "$as_me:17467: result: $ac_cv_func_vfork_works" >&5
17468 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
17471 if test "x$ac_cv_func_fork_works" = xcross; then
17472 ac_cv_func_vfork_works=ac_cv_func_vfork
17473 { echo "$as_me:17473: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
17474 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
17477 if test "x$ac_cv_func_vfork_works" = xyes; then
17479 cat >>confdefs.h <<\EOF
17480 #define HAVE_WORKING_VFORK 1
17485 cat >>confdefs.h <<\EOF
17490 if test "x$ac_cv_func_fork_works" = xyes; then
17492 cat >>confdefs.h <<\EOF
17493 #define HAVE_WORKING_FORK 1
17498 # special check for test/ditto.c
17500 echo "$as_me:17500: checking for openpty in -lutil" >&5
17501 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
17502 if test "${ac_cv_lib_util_openpty+set}" = set; then
17503 echo $ECHO_N "(cached) $ECHO_C" >&6
17505 ac_check_lib_save_LIBS=$LIBS
17506 LIBS="-lutil $LIBS"
17507 cat >conftest.$ac_ext <<_ACEOF
17508 #line 17508 "configure"
17509 #include "confdefs.h"
17511 /* Override any gcc2 internal prototype to avoid an error. */
17515 /* We use char because int might match the return type of a gcc2
17516 builtin and then its argument prototype would still apply. */
17526 rm -f conftest.$ac_objext conftest$ac_exeext
17527 if { (eval echo "$as_me:17527: \"$ac_link\"") >&5
17528 (eval $ac_link) 2>&5
17530 echo "$as_me:17530: \$? = $ac_status" >&5
17531 (exit $ac_status); } &&
17532 { ac_try='test -s conftest$ac_exeext'
17533 { (eval echo "$as_me:17533: \"$ac_try\"") >&5
17534 (eval $ac_try) 2>&5
17536 echo "$as_me:17536: \$? = $ac_status" >&5
17537 (exit $ac_status); }; }; then
17538 ac_cv_lib_util_openpty=yes
17540 echo "$as_me: failed program was:" >&5
17541 cat conftest.$ac_ext >&5
17542 ac_cv_lib_util_openpty=no
17544 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17545 LIBS=$ac_check_lib_save_LIBS
17547 echo "$as_me:17547: result: $ac_cv_lib_util_openpty" >&5
17548 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
17549 if test $ac_cv_lib_util_openpty = yes; then
17555 echo "$as_me:17555: checking for openpty header" >&5
17556 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
17557 if test "${cf_cv_func_openpty+set}" = set; then
17558 echo $ECHO_N "(cached) $ECHO_C" >&6
17561 cf_save_LIBS="$LIBS"
17562 test $cf_cv_lib_util = yes && LIBS="-lutil $LIBS"
17563 for cf_header in pty.h libutil.h util.h
17565 cat >conftest.$ac_ext <<_ACEOF
17566 #line 17566 "configure"
17567 #include "confdefs.h"
17569 #include <$cf_header>
17575 int x = openpty((int *)0, (int *)0, (char *)0,
17576 (struct termios *)0, (struct winsize *)0);
17582 rm -f conftest.$ac_objext conftest$ac_exeext
17583 if { (eval echo "$as_me:17583: \"$ac_link\"") >&5
17584 (eval $ac_link) 2>&5
17586 echo "$as_me:17586: \$? = $ac_status" >&5
17587 (exit $ac_status); } &&
17588 { ac_try='test -s conftest$ac_exeext'
17589 { (eval echo "$as_me:17589: \"$ac_try\"") >&5
17590 (eval $ac_try) 2>&5
17592 echo "$as_me:17592: \$? = $ac_status" >&5
17593 (exit $ac_status); }; }; then
17595 cf_cv_func_openpty=$cf_header
17599 echo "$as_me: failed program was:" >&5
17600 cat conftest.$ac_ext >&5
17602 cf_cv_func_openpty=no
17605 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17607 LIBS="$cf_save_LIBS"
17610 echo "$as_me:17610: result: $cf_cv_func_openpty" >&5
17611 echo "${ECHO_T}$cf_cv_func_openpty" >&6
17613 if test "$cf_cv_func_openpty" != no ; then
17615 cat >>confdefs.h <<EOF
17616 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
17619 cat >>confdefs.h <<\EOF
17620 #define USE_XTERM_PTY 1
17623 if test "x$cf_cv_lib_util" = xyes ; then
17624 TEST_LIBS="-lutil $TEST_LIBS"
17628 if test "$with_hashed_db" != no ; then
17630 cat >>confdefs.h <<\EOF
17631 #define USE_HASHED_DB 1
17634 case $with_hashed_db in #(vi
17638 if test -d "$with_hashed_db" ; then
17640 if test -n "$with_hashed_db/include" ; then
17641 for cf_add_incdir in $with_hashed_db/include
17643 while test $cf_add_incdir != /usr/include
17645 if test -d $cf_add_incdir
17648 if test -n "$CFLAGS$CPPFLAGS" ; then
17649 # a loop is needed to ensure we can add subdirs of existing dirs
17650 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
17651 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
17652 cf_have_incdir=yes; break
17657 if test "$cf_have_incdir" = no ; then
17658 if test "$cf_add_incdir" = /usr/local/include ; then
17659 if test "$GCC" = yes
17661 cf_save_CPPFLAGS=$CPPFLAGS
17662 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
17663 cat >conftest.$ac_ext <<_ACEOF
17664 #line 17664 "configure"
17665 #include "confdefs.h"
17675 rm -f conftest.$ac_objext
17676 if { (eval echo "$as_me:17676: \"$ac_compile\"") >&5
17677 (eval $ac_compile) 2>&5
17679 echo "$as_me:17679: \$? = $ac_status" >&5
17680 (exit $ac_status); } &&
17681 { ac_try='test -s conftest.$ac_objext'
17682 { (eval echo "$as_me:17682: \"$ac_try\"") >&5
17683 (eval $ac_try) 2>&5
17685 echo "$as_me:17685: \$? = $ac_status" >&5
17686 (exit $ac_status); }; }; then
17689 echo "$as_me: failed program was:" >&5
17690 cat conftest.$ac_ext >&5
17693 rm -f conftest.$ac_objext conftest.$ac_ext
17694 CPPFLAGS=$cf_save_CPPFLAGS
17699 if test "$cf_have_incdir" = no ; then
17700 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
17702 echo "${as_me:-configure}:17702: testing adding $cf_add_incdir to include-path ..." 1>&5
17704 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
17706 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
17707 test "$cf_top_incdir" = "$cf_add_incdir" && break
17708 cf_add_incdir="$cf_top_incdir"
17717 if test -n "$with_hashed_db/lib" ; then
17718 for cf_add_libdir in $with_hashed_db/lib
17720 if test $cf_add_libdir = /usr/lib ; then
17722 elif test -d $cf_add_libdir
17725 if test -n "$LDFLAGS$LIBS" ; then
17726 # a loop is needed to ensure we can add subdirs of existing dirs
17727 for cf_test_libdir in $LDFLAGS $LIBS ; do
17728 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
17729 cf_have_libdir=yes; break
17733 if test "$cf_have_libdir" = no ; then
17734 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
17736 echo "${as_me:-configure}:17736: testing adding $cf_add_libdir to library-path ..." 1>&5
17738 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
17747 echo "$as_me:17747: checking for db.h" >&5
17748 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
17749 if test "${ac_cv_header_db_h+set}" = set; then
17750 echo $ECHO_N "(cached) $ECHO_C" >&6
17752 cat >conftest.$ac_ext <<_ACEOF
17753 #line 17753 "configure"
17754 #include "confdefs.h"
17757 if { (eval echo "$as_me:17757: \"$ac_cpp conftest.$ac_ext\"") >&5
17758 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17760 egrep -v '^ *\+' conftest.er1 >conftest.err
17762 cat conftest.err >&5
17763 echo "$as_me:17763: \$? = $ac_status" >&5
17764 (exit $ac_status); } >/dev/null; then
17765 if test -s conftest.err; then
17766 ac_cpp_err=$ac_c_preproc_warn_flag
17773 if test -z "$ac_cpp_err"; then
17774 ac_cv_header_db_h=yes
17776 echo "$as_me: failed program was:" >&5
17777 cat conftest.$ac_ext >&5
17778 ac_cv_header_db_h=no
17780 rm -f conftest.err conftest.$ac_ext
17782 echo "$as_me:17782: result: $ac_cv_header_db_h" >&5
17783 echo "${ECHO_T}$ac_cv_header_db_h" >&6
17784 if test $ac_cv_header_db_h = yes; then
17786 echo "$as_me:17786: checking for version of db" >&5
17787 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
17788 if test "${cf_cv_hashed_db_version+set}" = set; then
17789 echo $ECHO_N "(cached) $ECHO_C" >&6
17792 cf_cv_hashed_db_version=unknown
17794 for cf_db_version in 1 2 3 4 5
17797 echo "${as_me:-configure}:17797: testing checking for db version $cf_db_version ..." 1>&5
17799 cat >conftest.$ac_ext <<_ACEOF
17800 #line 17800 "configure"
17801 #include "confdefs.h"
17803 $ac_includes_default
17806 #ifdef DB_VERSION_MAJOR
17807 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
17808 #if $cf_db_version == DB_VERSION_MAJOR
17814 #if $cf_db_version == 1
17815 /* ok: assuming this is DB 1.8.5 */
17829 rm -f conftest.$ac_objext
17830 if { (eval echo "$as_me:17830: \"$ac_compile\"") >&5
17831 (eval $ac_compile) 2>&5
17833 echo "$as_me:17833: \$? = $ac_status" >&5
17834 (exit $ac_status); } &&
17835 { ac_try='test -s conftest.$ac_objext'
17836 { (eval echo "$as_me:17836: \"$ac_try\"") >&5
17837 (eval $ac_try) 2>&5
17839 echo "$as_me:17839: \$? = $ac_status" >&5
17840 (exit $ac_status); }; }; then
17842 cf_cv_hashed_db_version=$cf_db_version
17846 echo "$as_me: failed program was:" >&5
17847 cat conftest.$ac_ext >&5
17849 rm -f conftest.$ac_objext conftest.$ac_ext
17853 echo "$as_me:17853: result: $cf_cv_hashed_db_version" >&5
17854 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
17856 if test "$cf_cv_hashed_db_version" = unknown ; then
17857 { { echo "$as_me:17857: error: Cannot determine version of db" >&5
17858 echo "$as_me: error: Cannot determine version of db" >&2;}
17859 { (exit 1); exit 1; }; }
17862 echo "$as_me:17862: checking for db libraries" >&5
17863 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
17864 if test "${cf_cv_hashed_db_libs+set}" = set; then
17865 echo $ECHO_N "(cached) $ECHO_C" >&6
17868 cf_cv_hashed_db_libs=unknown
17869 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
17871 cf_save_libs="$LIBS"
17872 if test -n "$cf_db_libs"; then
17873 LIBS="-l$cf_db_libs $LIBS"
17876 echo "${as_me:-configure}:17876: testing checking for library "$cf_db_libs" ..." 1>&5
17878 cat >conftest.$ac_ext <<_ACEOF
17879 #line 17879 "configure"
17880 #include "confdefs.h"
17882 $ac_includes_default
17889 char *path = "/tmp/foo";
17890 #ifdef DB_VERSION_MAJOR
17891 #if DB_VERSION_MAJOR >= 4
17893 db_create(&result, NULL, 0);
17894 result->open(result,
17901 #elif DB_VERSION_MAJOR >= 3
17903 db_create(&result, NULL, 0);
17904 result->open(result,
17910 #elif DB_VERSION_MAJOR >= 2
17919 #endif /* DB_VERSION_MAJOR */
17921 DB *result = dbopen(path,
17927 ${cf_cv_main_return:-return}(result != 0)
17933 rm -f conftest.$ac_objext conftest$ac_exeext
17934 if { (eval echo "$as_me:17934: \"$ac_link\"") >&5
17935 (eval $ac_link) 2>&5
17937 echo "$as_me:17937: \$? = $ac_status" >&5
17938 (exit $ac_status); } &&
17939 { ac_try='test -s conftest$ac_exeext'
17940 { (eval echo "$as_me:17940: \"$ac_try\"") >&5
17941 (eval $ac_try) 2>&5
17943 echo "$as_me:17943: \$? = $ac_status" >&5
17944 (exit $ac_status); }; }; then
17946 if test -n "$cf_db_libs" ; then
17947 cf_cv_hashed_db_libs=$cf_db_libs
17949 cf_cv_hashed_db_libs=default
17951 LIBS="$cf_save_libs"
17955 echo "$as_me: failed program was:" >&5
17956 cat conftest.$ac_ext >&5
17958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17959 LIBS="$cf_save_libs"
17963 echo "$as_me:17963: result: $cf_cv_hashed_db_libs" >&5
17964 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
17966 if test "$cf_cv_hashed_db_libs" = unknown ; then
17967 { { echo "$as_me:17967: error: Cannot determine library for db" >&5
17968 echo "$as_me: error: Cannot determine library for db" >&2;}
17969 { (exit 1); exit 1; }; }
17970 elif test "$cf_cv_hashed_db_libs" != default ; then
17971 LIBS="-l$cf_cv_hashed_db_libs $LIBS"
17977 { { echo "$as_me:17977: error: Cannot find db.h" >&5
17978 echo "$as_me: error: Cannot find db.h" >&2;}
17979 { (exit 1); exit 1; }; }
17985 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
17986 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
17987 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
17990 # Just in case, check if the C compiler has a bool type.
17992 echo "$as_me:17992: checking if we should include stdbool.h" >&5
17993 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
17995 if test "${cf_cv_header_stdbool_h+set}" = set; then
17996 echo $ECHO_N "(cached) $ECHO_C" >&6
17999 cat >conftest.$ac_ext <<_ACEOF
18000 #line 18000 "configure"
18001 #include "confdefs.h"
18011 rm -f conftest.$ac_objext
18012 if { (eval echo "$as_me:18012: \"$ac_compile\"") >&5
18013 (eval $ac_compile) 2>&5
18015 echo "$as_me:18015: \$? = $ac_status" >&5
18016 (exit $ac_status); } &&
18017 { ac_try='test -s conftest.$ac_objext'
18018 { (eval echo "$as_me:18018: \"$ac_try\"") >&5
18019 (eval $ac_try) 2>&5
18021 echo "$as_me:18021: \$? = $ac_status" >&5
18022 (exit $ac_status); }; }; then
18023 cf_cv_header_stdbool_h=0
18025 echo "$as_me: failed program was:" >&5
18026 cat conftest.$ac_ext >&5
18027 cat >conftest.$ac_ext <<_ACEOF
18028 #line 18028 "configure"
18029 #include "confdefs.h"
18032 #include <stdbool.h>
18043 rm -f conftest.$ac_objext
18044 if { (eval echo "$as_me:18044: \"$ac_compile\"") >&5
18045 (eval $ac_compile) 2>&5
18047 echo "$as_me:18047: \$? = $ac_status" >&5
18048 (exit $ac_status); } &&
18049 { ac_try='test -s conftest.$ac_objext'
18050 { (eval echo "$as_me:18050: \"$ac_try\"") >&5
18051 (eval $ac_try) 2>&5
18053 echo "$as_me:18053: \$? = $ac_status" >&5
18054 (exit $ac_status); }; }; then
18055 cf_cv_header_stdbool_h=1
18057 echo "$as_me: failed program was:" >&5
18058 cat conftest.$ac_ext >&5
18059 cf_cv_header_stdbool_h=0
18061 rm -f conftest.$ac_objext conftest.$ac_ext
18063 rm -f conftest.$ac_objext conftest.$ac_ext
18066 if test "$cf_cv_header_stdbool_h" = 1
18067 then echo "$as_me:18067: result: yes" >&5
18068 echo "${ECHO_T}yes" >&6
18069 else echo "$as_me:18069: result: no" >&5
18070 echo "${ECHO_T}no" >&6
18073 echo "$as_me:18073: checking for builtin bool type" >&5
18074 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
18076 if test "${cf_cv_cc_bool_type+set}" = set; then
18077 echo $ECHO_N "(cached) $ECHO_C" >&6
18080 cat >conftest.$ac_ext <<_ACEOF
18081 #line 18081 "configure"
18082 #include "confdefs.h"
18085 #include <sys/types.h>
18095 rm -f conftest.$ac_objext
18096 if { (eval echo "$as_me:18096: \"$ac_compile\"") >&5
18097 (eval $ac_compile) 2>&5
18099 echo "$as_me:18099: \$? = $ac_status" >&5
18100 (exit $ac_status); } &&
18101 { ac_try='test -s conftest.$ac_objext'
18102 { (eval echo "$as_me:18102: \"$ac_try\"") >&5
18103 (eval $ac_try) 2>&5
18105 echo "$as_me:18105: \$? = $ac_status" >&5
18106 (exit $ac_status); }; }; then
18107 cf_cv_cc_bool_type=1
18109 echo "$as_me: failed program was:" >&5
18110 cat conftest.$ac_ext >&5
18111 cf_cv_cc_bool_type=0
18113 rm -f conftest.$ac_objext conftest.$ac_ext
18117 if test "$cf_cv_cc_bool_type" = 1
18118 then echo "$as_me:18118: result: yes" >&5
18119 echo "${ECHO_T}yes" >&6
18120 else echo "$as_me:18120: result: no" >&5
18121 echo "${ECHO_T}no" >&6
18124 # Check for C++ compiler characteristics (and ensure that it's there!)
18125 if test -n "$CXX" ; then
18127 ac_cpp='$CXXCPP $CPPFLAGS'
18128 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18129 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18130 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18131 ac_main_return=return
18133 if test -n "$GXX" ; then
18134 case $cf_cv_system_name in #(vi
18136 cf_stdcpp_libname=stdcpp
18139 cf_stdcpp_libname=stdc++
18142 echo "$as_me:18142: checking for library $cf_stdcpp_libname" >&5
18143 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
18144 if test "${cf_cv_libstdcpp+set}" = set; then
18145 echo $ECHO_N "(cached) $ECHO_C" >&6
18149 LIBS="-l$cf_stdcpp_libname $LIBS"
18150 cat >conftest.$ac_ext <<_ACEOF
18151 #line 18151 "configure"
18152 #include "confdefs.h"
18154 #include <strstream.h>
18160 strstreambuf foo(buf, sizeof(buf))
18166 rm -f conftest.$ac_objext conftest$ac_exeext
18167 if { (eval echo "$as_me:18167: \"$ac_link\"") >&5
18168 (eval $ac_link) 2>&5
18170 echo "$as_me:18170: \$? = $ac_status" >&5
18171 (exit $ac_status); } &&
18172 { ac_try='test -s conftest$ac_exeext'
18173 { (eval echo "$as_me:18173: \"$ac_try\"") >&5
18174 (eval $ac_try) 2>&5
18176 echo "$as_me:18176: \$? = $ac_status" >&5
18177 (exit $ac_status); }; }; then
18178 cf_cv_libstdcpp=yes
18180 echo "$as_me: failed program was:" >&5
18181 cat conftest.$ac_ext >&5
18184 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18188 echo "$as_me:18188: result: $cf_cv_libstdcpp" >&5
18189 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
18190 test "$cf_cv_libstdcpp" = yes && CXXLIBS="-l$cf_stdcpp_libname $CXXLIBS"
18193 echo "$as_me:18193: checking whether $CXX understands -c and -o together" >&5
18194 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
18195 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
18196 echo $ECHO_N "(cached) $ECHO_C" >&6
18199 cat > conftest.$ac_ext <<CF_EOF
18203 ${cf_cv_main_return:-return}(0);
18206 # We do the test twice because some compilers refuse to overwrite an
18207 # existing .o file with -o, though they will create one.
18208 ac_try='$CXX -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
18209 if { (eval echo "$as_me:18209: \"$ac_try\"") >&5
18210 (eval $ac_try) 2>&5
18212 echo "$as_me:18212: \$? = $ac_status" >&5
18213 (exit $ac_status); } &&
18214 test -f conftest2.$ac_objext && { (eval echo "$as_me:18214: \"$ac_try\"") >&5
18215 (eval $ac_try) 2>&5
18217 echo "$as_me:18217: \$? = $ac_status" >&5
18218 (exit $ac_status); };
18220 eval cf_cv_prog_CXX_c_o=yes
18222 eval cf_cv_prog_CXX_c_o=no
18227 if test $cf_cv_prog_CXX_c_o = yes; then
18228 echo "$as_me:18228: result: yes" >&5
18229 echo "${ECHO_T}yes" >&6
18231 echo "$as_me:18231: result: no" >&5
18232 echo "${ECHO_T}no" >&6
18235 case $GXX_VERSION in
18241 cf_cxx_library=unknown
18242 case $cf_cv_system_name in #(vi
18250 if test "$GXX" = yes; then
18251 echo "$as_me:18251: checking for lib$cf_gpp_libname" >&5
18252 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
18254 LIBS="-l$cf_gpp_libname $LIBS"
18255 cat >conftest.$ac_ext <<_ACEOF
18256 #line 18256 "configure"
18257 #include "confdefs.h"
18259 #include <$cf_gpp_libname/builtin.h>
18264 two_arg_error_handler_t foo2 = lib_error_handler
18269 rm -f conftest.$ac_objext conftest$ac_exeext
18270 if { (eval echo "$as_me:18270: \"$ac_link\"") >&5
18271 (eval $ac_link) 2>&5
18273 echo "$as_me:18273: \$? = $ac_status" >&5
18274 (exit $ac_status); } &&
18275 { ac_try='test -s conftest$ac_exeext'
18276 { (eval echo "$as_me:18276: \"$ac_try\"") >&5
18277 (eval $ac_try) 2>&5
18279 echo "$as_me:18279: \$? = $ac_status" >&5
18280 (exit $ac_status); }; }; then
18282 CXXLIBS="-l$cf_gpp_libname $CXXLIBS"
18283 if test "$cf_gpp_libname" = cpp ; then
18285 cat >>confdefs.h <<\EOF
18286 #define HAVE_GPP_BUILTIN_H 1
18291 cat >>confdefs.h <<\EOF
18292 #define HAVE_GXX_BUILTIN_H 1
18297 echo "$as_me: failed program was:" >&5
18298 cat conftest.$ac_ext >&5
18299 cat >conftest.$ac_ext <<_ACEOF
18300 #line 18300 "configure"
18301 #include "confdefs.h"
18303 #include <builtin.h>
18308 two_arg_error_handler_t foo2 = lib_error_handler
18313 rm -f conftest.$ac_objext conftest$ac_exeext
18314 if { (eval echo "$as_me:18314: \"$ac_link\"") >&5
18315 (eval $ac_link) 2>&5
18317 echo "$as_me:18317: \$? = $ac_status" >&5
18318 (exit $ac_status); } &&
18319 { ac_try='test -s conftest$ac_exeext'
18320 { (eval echo "$as_me:18320: \"$ac_try\"") >&5
18321 (eval $ac_try) 2>&5
18323 echo "$as_me:18323: \$? = $ac_status" >&5
18324 (exit $ac_status); }; }; then
18326 CXXLIBS="-l$cf_gpp_libname $CXXLIBS"
18328 cat >>confdefs.h <<\EOF
18329 #define HAVE_BUILTIN_H 1
18333 echo "$as_me: failed program was:" >&5
18334 cat conftest.$ac_ext >&5
18337 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18339 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18341 echo "$as_me:18341: result: $cf_cxx_library" >&5
18342 echo "${ECHO_T}$cf_cxx_library" >&6
18352 ac_cpp='$CXXCPP $CPPFLAGS'
18353 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18354 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18355 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18356 ac_main_return=return
18357 echo "$as_me:18357: checking how to run the C++ preprocessor" >&5
18358 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
18359 if test -z "$CXXCPP"; then
18360 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18361 echo $ECHO_N "(cached) $ECHO_C" >&6
18363 # Double quotes because CXXCPP needs to be expanded
18364 for CXXCPP in "$CXX -E" "/lib/cpp"
18366 ac_preproc_ok=false
18367 for ac_cxx_preproc_warn_flag in '' yes
18369 # Use a header file that comes with gcc, so configuring glibc
18370 # with a fresh cross-compiler works.
18371 # On the NeXT, cc -E runs the code through the compiler's parser,
18372 # not just through cpp. "Syntax error" is here to catch this case.
18373 cat >conftest.$ac_ext <<_ACEOF
18374 #line 18374 "configure"
18375 #include "confdefs.h"
18376 #include <assert.h>
18379 if { (eval echo "$as_me:18379: \"$ac_cpp conftest.$ac_ext\"") >&5
18380 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18382 egrep -v '^ *\+' conftest.er1 >conftest.err
18384 cat conftest.err >&5
18385 echo "$as_me:18385: \$? = $ac_status" >&5
18386 (exit $ac_status); } >/dev/null; then
18387 if test -s conftest.err; then
18388 ac_cpp_err=$ac_cxx_preproc_warn_flag
18395 if test -z "$ac_cpp_err"; then
18398 echo "$as_me: failed program was:" >&5
18399 cat conftest.$ac_ext >&5
18400 # Broken: fails on valid input.
18403 rm -f conftest.err conftest.$ac_ext
18405 # OK, works on sane cases. Now check whether non-existent headers
18406 # can be detected and how.
18407 cat >conftest.$ac_ext <<_ACEOF
18408 #line 18408 "configure"
18409 #include "confdefs.h"
18410 #include <ac_nonexistent.h>
18412 if { (eval echo "$as_me:18412: \"$ac_cpp conftest.$ac_ext\"") >&5
18413 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18415 egrep -v '^ *\+' conftest.er1 >conftest.err
18417 cat conftest.err >&5
18418 echo "$as_me:18418: \$? = $ac_status" >&5
18419 (exit $ac_status); } >/dev/null; then
18420 if test -s conftest.err; then
18421 ac_cpp_err=$ac_cxx_preproc_warn_flag
18428 if test -z "$ac_cpp_err"; then
18429 # Broken: success on invalid input.
18432 echo "$as_me: failed program was:" >&5
18433 cat conftest.$ac_ext >&5
18434 # Passes both tests.
18438 rm -f conftest.err conftest.$ac_ext
18441 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18442 rm -f conftest.err conftest.$ac_ext
18443 if $ac_preproc_ok; then
18448 ac_cv_prog_CXXCPP=$CXXCPP
18451 CXXCPP=$ac_cv_prog_CXXCPP
18453 ac_cv_prog_CXXCPP=$CXXCPP
18455 echo "$as_me:18455: result: $CXXCPP" >&5
18456 echo "${ECHO_T}$CXXCPP" >&6
18457 ac_preproc_ok=false
18458 for ac_cxx_preproc_warn_flag in '' yes
18460 # Use a header file that comes with gcc, so configuring glibc
18461 # with a fresh cross-compiler works.
18462 # On the NeXT, cc -E runs the code through the compiler's parser,
18463 # not just through cpp. "Syntax error" is here to catch this case.
18464 cat >conftest.$ac_ext <<_ACEOF
18465 #line 18465 "configure"
18466 #include "confdefs.h"
18467 #include <assert.h>
18470 if { (eval echo "$as_me:18470: \"$ac_cpp conftest.$ac_ext\"") >&5
18471 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18473 egrep -v '^ *\+' conftest.er1 >conftest.err
18475 cat conftest.err >&5
18476 echo "$as_me:18476: \$? = $ac_status" >&5
18477 (exit $ac_status); } >/dev/null; then
18478 if test -s conftest.err; then
18479 ac_cpp_err=$ac_cxx_preproc_warn_flag
18486 if test -z "$ac_cpp_err"; then
18489 echo "$as_me: failed program was:" >&5
18490 cat conftest.$ac_ext >&5
18491 # Broken: fails on valid input.
18494 rm -f conftest.err conftest.$ac_ext
18496 # OK, works on sane cases. Now check whether non-existent headers
18497 # can be detected and how.
18498 cat >conftest.$ac_ext <<_ACEOF
18499 #line 18499 "configure"
18500 #include "confdefs.h"
18501 #include <ac_nonexistent.h>
18503 if { (eval echo "$as_me:18503: \"$ac_cpp conftest.$ac_ext\"") >&5
18504 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18506 egrep -v '^ *\+' conftest.er1 >conftest.err
18508 cat conftest.err >&5
18509 echo "$as_me:18509: \$? = $ac_status" >&5
18510 (exit $ac_status); } >/dev/null; then
18511 if test -s conftest.err; then
18512 ac_cpp_err=$ac_cxx_preproc_warn_flag
18519 if test -z "$ac_cpp_err"; then
18520 # Broken: success on invalid input.
18523 echo "$as_me: failed program was:" >&5
18524 cat conftest.$ac_ext >&5
18525 # Passes both tests.
18529 rm -f conftest.err conftest.$ac_ext
18532 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18533 rm -f conftest.err conftest.$ac_ext
18534 if $ac_preproc_ok; then
18537 { { echo "$as_me:18537: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
18538 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
18539 { (exit 1); exit 1; }; }
18543 ac_cpp='$CXXCPP $CPPFLAGS'
18544 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18545 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18546 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18547 ac_main_return=return
18549 for ac_header in typeinfo
18551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18552 echo "$as_me:18552: checking for $ac_header" >&5
18553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18555 echo $ECHO_N "(cached) $ECHO_C" >&6
18557 cat >conftest.$ac_ext <<_ACEOF
18558 #line 18558 "configure"
18559 #include "confdefs.h"
18560 #include <$ac_header>
18562 if { (eval echo "$as_me:18562: \"$ac_cpp conftest.$ac_ext\"") >&5
18563 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18565 egrep -v '^ *\+' conftest.er1 >conftest.err
18567 cat conftest.err >&5
18568 echo "$as_me:18568: \$? = $ac_status" >&5
18569 (exit $ac_status); } >/dev/null; then
18570 if test -s conftest.err; then
18571 ac_cpp_err=$ac_cxx_preproc_warn_flag
18578 if test -z "$ac_cpp_err"; then
18579 eval "$as_ac_Header=yes"
18581 echo "$as_me: failed program was:" >&5
18582 cat conftest.$ac_ext >&5
18583 eval "$as_ac_Header=no"
18585 rm -f conftest.err conftest.$ac_ext
18587 echo "$as_me:18587: result: `eval echo '${'$as_ac_Header'}'`" >&5
18588 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18589 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18590 cat >>confdefs.h <<EOF
18591 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18597 for ac_header in iostream
18599 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18600 echo "$as_me:18600: checking for $ac_header" >&5
18601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18603 echo $ECHO_N "(cached) $ECHO_C" >&6
18605 cat >conftest.$ac_ext <<_ACEOF
18606 #line 18606 "configure"
18607 #include "confdefs.h"
18608 #include <$ac_header>
18610 if { (eval echo "$as_me:18610: \"$ac_cpp conftest.$ac_ext\"") >&5
18611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18613 egrep -v '^ *\+' conftest.er1 >conftest.err
18615 cat conftest.err >&5
18616 echo "$as_me:18616: \$? = $ac_status" >&5
18617 (exit $ac_status); } >/dev/null; then
18618 if test -s conftest.err; then
18619 ac_cpp_err=$ac_cxx_preproc_warn_flag
18626 if test -z "$ac_cpp_err"; then
18627 eval "$as_ac_Header=yes"
18629 echo "$as_me: failed program was:" >&5
18630 cat conftest.$ac_ext >&5
18631 eval "$as_ac_Header=no"
18633 rm -f conftest.err conftest.$ac_ext
18635 echo "$as_me:18635: result: `eval echo '${'$as_ac_Header'}'`" >&5
18636 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18638 cat >>confdefs.h <<EOF
18639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18645 if test x"$ac_cv_header_iostream" = xyes ; then
18646 echo "$as_me:18646: checking if iostream uses std-namespace" >&5
18647 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
18648 cat >conftest.$ac_ext <<_ACEOF
18649 #line 18649 "configure"
18650 #include "confdefs.h"
18652 #include <iostream>
18659 cerr << "testing" << endl;
18665 rm -f conftest.$ac_objext
18666 if { (eval echo "$as_me:18666: \"$ac_compile\"") >&5
18667 (eval $ac_compile) 2>&5
18669 echo "$as_me:18669: \$? = $ac_status" >&5
18670 (exit $ac_status); } &&
18671 { ac_try='test -s conftest.$ac_objext'
18672 { (eval echo "$as_me:18672: \"$ac_try\"") >&5
18673 (eval $ac_try) 2>&5
18675 echo "$as_me:18675: \$? = $ac_status" >&5
18676 (exit $ac_status); }; }; then
18677 cf_iostream_namespace=yes
18679 echo "$as_me: failed program was:" >&5
18680 cat conftest.$ac_ext >&5
18681 cf_iostream_namespace=no
18683 rm -f conftest.$ac_objext conftest.$ac_ext
18684 echo "$as_me:18684: result: $cf_iostream_namespace" >&5
18685 echo "${ECHO_T}$cf_iostream_namespace" >&6
18686 if test "$cf_iostream_namespace" = yes ; then
18688 cat >>confdefs.h <<\EOF
18689 #define IOSTREAM_NAMESPACE 1
18695 echo "$as_me:18695: checking if we should include stdbool.h" >&5
18696 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
18698 if test "${cf_cv_header_stdbool_h+set}" = set; then
18699 echo $ECHO_N "(cached) $ECHO_C" >&6
18702 cat >conftest.$ac_ext <<_ACEOF
18703 #line 18703 "configure"
18704 #include "confdefs.h"
18714 rm -f conftest.$ac_objext
18715 if { (eval echo "$as_me:18715: \"$ac_compile\"") >&5
18716 (eval $ac_compile) 2>&5
18718 echo "$as_me:18718: \$? = $ac_status" >&5
18719 (exit $ac_status); } &&
18720 { ac_try='test -s conftest.$ac_objext'
18721 { (eval echo "$as_me:18721: \"$ac_try\"") >&5
18722 (eval $ac_try) 2>&5
18724 echo "$as_me:18724: \$? = $ac_status" >&5
18725 (exit $ac_status); }; }; then
18726 cf_cv_header_stdbool_h=0
18728 echo "$as_me: failed program was:" >&5
18729 cat conftest.$ac_ext >&5
18730 cat >conftest.$ac_ext <<_ACEOF
18731 #line 18731 "configure"
18732 #include "confdefs.h"
18735 #include <stdbool.h>
18746 rm -f conftest.$ac_objext
18747 if { (eval echo "$as_me:18747: \"$ac_compile\"") >&5
18748 (eval $ac_compile) 2>&5
18750 echo "$as_me:18750: \$? = $ac_status" >&5
18751 (exit $ac_status); } &&
18752 { ac_try='test -s conftest.$ac_objext'
18753 { (eval echo "$as_me:18753: \"$ac_try\"") >&5
18754 (eval $ac_try) 2>&5
18756 echo "$as_me:18756: \$? = $ac_status" >&5
18757 (exit $ac_status); }; }; then
18758 cf_cv_header_stdbool_h=1
18760 echo "$as_me: failed program was:" >&5
18761 cat conftest.$ac_ext >&5
18762 cf_cv_header_stdbool_h=0
18764 rm -f conftest.$ac_objext conftest.$ac_ext
18766 rm -f conftest.$ac_objext conftest.$ac_ext
18769 if test "$cf_cv_header_stdbool_h" = 1
18770 then echo "$as_me:18770: result: yes" >&5
18771 echo "${ECHO_T}yes" >&6
18772 else echo "$as_me:18772: result: no" >&5
18773 echo "${ECHO_T}no" >&6
18776 echo "$as_me:18776: checking for builtin bool type" >&5
18777 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
18779 if test "${cf_cv_builtin_bool+set}" = set; then
18780 echo $ECHO_N "(cached) $ECHO_C" >&6
18783 cat >conftest.$ac_ext <<_ACEOF
18784 #line 18784 "configure"
18785 #include "confdefs.h"
18788 #include <sys/types.h>
18798 rm -f conftest.$ac_objext
18799 if { (eval echo "$as_me:18799: \"$ac_compile\"") >&5
18800 (eval $ac_compile) 2>&5
18802 echo "$as_me:18802: \$? = $ac_status" >&5
18803 (exit $ac_status); } &&
18804 { ac_try='test -s conftest.$ac_objext'
18805 { (eval echo "$as_me:18805: \"$ac_try\"") >&5
18806 (eval $ac_try) 2>&5
18808 echo "$as_me:18808: \$? = $ac_status" >&5
18809 (exit $ac_status); }; }; then
18810 cf_cv_builtin_bool=1
18812 echo "$as_me: failed program was:" >&5
18813 cat conftest.$ac_ext >&5
18814 cf_cv_builtin_bool=0
18816 rm -f conftest.$ac_objext conftest.$ac_ext
18820 if test "$cf_cv_builtin_bool" = 1
18821 then echo "$as_me:18821: result: yes" >&5
18822 echo "${ECHO_T}yes" >&6
18823 else echo "$as_me:18823: result: no" >&5
18824 echo "${ECHO_T}no" >&6
18827 echo "$as_me:18827: checking for size of bool" >&5
18828 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
18829 if test "${cf_cv_type_of_bool+set}" = set; then
18830 echo $ECHO_N "(cached) $ECHO_C" >&6
18834 if test "$cross_compiling" = yes; then
18835 cf_cv_type_of_bool=unknown
18837 cat >conftest.$ac_ext <<_ACEOF
18838 #line 18838 "configure"
18839 #include "confdefs.h"
18841 #include <stdlib.h>
18844 #if defined(__cplusplus)
18846 #ifdef HAVE_GXX_BUILTIN_H
18847 #include <g++/builtin.h>
18848 #elif HAVE_GPP_BUILTIN_H
18849 #include <gpp/builtin.h>
18850 #elif HAVE_BUILTIN_H
18851 #include <builtin.h>
18856 #if $cf_cv_header_stdbool_h
18857 #include <stdbool.h>
18864 FILE *fp = fopen("cf_test.out", "w");
18867 if ((bool)(-x) >= 0)
18868 fputs("unsigned ", fp);
18869 if (sizeof(x) == sizeof(int)) fputs("int", fp);
18870 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
18871 else if (sizeof(x) == sizeof(short))fputs("short",fp);
18872 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
18875 ${cf_cv_main_return:-return}(0);
18879 rm -f conftest$ac_exeext
18880 if { (eval echo "$as_me:18880: \"$ac_link\"") >&5
18881 (eval $ac_link) 2>&5
18883 echo "$as_me:18883: \$? = $ac_status" >&5
18884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18885 { (eval echo "$as_me:18885: \"$ac_try\"") >&5
18886 (eval $ac_try) 2>&5
18888 echo "$as_me:18888: \$? = $ac_status" >&5
18889 (exit $ac_status); }; }; then
18890 cf_cv_type_of_bool=`cat cf_test.out`
18891 if test -z "$cf_cv_type_of_bool"; then
18892 cf_cv_type_of_bool=unknown
18895 echo "$as_me: program exited with status $ac_status" >&5
18896 echo "$as_me: failed program was:" >&5
18897 cat conftest.$ac_ext >&5
18898 cf_cv_type_of_bool=unknown
18900 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18906 echo "$as_me:18906: result: $cf_cv_type_of_bool" >&5
18907 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
18908 if test "$cf_cv_type_of_bool" = unknown ; then
18909 case .$NCURSES_BOOL in #(vi
18910 .auto|.) NCURSES_BOOL=unsigned;;
18912 { echo "$as_me:18912: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
18913 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
18914 cf_cv_type_of_bool=$NCURSES_BOOL
18917 echo "$as_me:18917: checking for special defines needed for etip.h" >&5
18918 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
18919 cf_save_CXXFLAGS="$CXXFLAGS"
18922 # etip.h includes ncurses.h which includes ncurses_dll.h
18923 # But ncurses_dll.h is generated - fix here.
18924 test -d include || mkdir include
18925 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
18927 for cf_math in "" MATH_H
18929 for cf_excp in "" MATH_EXCEPTION
18931 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -Iinclude -I${srcdir}/include"
18932 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
18933 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
18934 cat >conftest.$ac_ext <<_ACEOF
18935 #line 18935 "configure"
18936 #include "confdefs.h"
18938 #include <etip.h.in>
18948 rm -f conftest.$ac_objext
18949 if { (eval echo "$as_me:18949: \"$ac_compile\"") >&5
18950 (eval $ac_compile) 2>&5
18952 echo "$as_me:18952: \$? = $ac_status" >&5
18953 (exit $ac_status); } &&
18954 { ac_try='test -s conftest.$ac_objext'
18955 { (eval echo "$as_me:18955: \"$ac_try\"") >&5
18956 (eval $ac_try) 2>&5
18958 echo "$as_me:18958: \$? = $ac_status" >&5
18959 (exit $ac_status); }; }; then
18961 test -n "$cf_math" && cat >>confdefs.h <<EOF
18962 #define ETIP_NEEDS_${cf_math} 1
18965 test -n "$cf_excp" && cat >>confdefs.h <<EOF
18966 #define ETIP_NEEDS_${cf_excp} 1
18969 cf_result="$cf_math $cf_excp"
18973 echo "$as_me: failed program was:" >&5
18974 cat conftest.$ac_ext >&5
18976 rm -f conftest.$ac_objext conftest.$ac_ext
18979 echo "$as_me:18979: result: $cf_result" >&5
18980 echo "${ECHO_T}$cf_result" >&6
18981 CXXFLAGS="$cf_save_CXXFLAGS"
18983 if test -n "$CXX"; then
18984 echo "$as_me:18984: checking if $CXX accepts parameter initialization" >&5
18985 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
18986 if test "${cf_cv_cpp_param_init+set}" = set; then
18987 echo $ECHO_N "(cached) $ECHO_C" >&6
18991 ac_cpp='$CXXCPP $CPPFLAGS'
18992 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18993 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18994 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18995 ac_main_return=return
18997 if test "$cross_compiling" = yes; then
18998 cf_cv_cpp_param_init=unknown
19000 cat >conftest.$ac_ext <<_ACEOF
19001 #line 19001 "configure"
19002 #include "confdefs.h"
19012 TEST::TEST(int x = 1) // some compilers do not like second initializer
19019 rm -f conftest$ac_exeext
19020 if { (eval echo "$as_me:19020: \"$ac_link\"") >&5
19021 (eval $ac_link) 2>&5
19023 echo "$as_me:19023: \$? = $ac_status" >&5
19024 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19025 { (eval echo "$as_me:19025: \"$ac_try\"") >&5
19026 (eval $ac_try) 2>&5
19028 echo "$as_me:19028: \$? = $ac_status" >&5
19029 (exit $ac_status); }; }; then
19030 cf_cv_cpp_param_init=yes
19032 echo "$as_me: program exited with status $ac_status" >&5
19033 echo "$as_me: failed program was:" >&5
19034 cat conftest.$ac_ext >&5
19035 cf_cv_cpp_param_init=no
19037 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19040 ac_cpp='$CXXCPP $CPPFLAGS'
19041 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19042 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19043 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19044 ac_main_return=return
19047 echo "$as_me:19047: result: $cf_cv_cpp_param_init" >&5
19048 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
19050 test "$cf_cv_cpp_param_init" = yes &&
19051 cat >>confdefs.h <<\EOF
19052 #define CPP_HAS_PARAM_INIT 1
19055 if test -n "$CXX"; then
19057 echo "$as_me:19057: checking if $CXX accepts static_cast" >&5
19058 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
19059 if test "${cf_cv_cpp_static_cast+set}" = set; then
19060 echo $ECHO_N "(cached) $ECHO_C" >&6
19064 ac_cpp='$CXXCPP $CPPFLAGS'
19065 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19066 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19067 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19068 ac_main_return=return
19070 cat >conftest.$ac_ext <<_ACEOF
19071 #line 19071 "configure"
19072 #include "confdefs.h"
19077 NCursesPanel(int nlines,
19087 template<class T> class NCursesUserPanel : public NCursesPanel
19090 NCursesUserPanel (int nlines,
19094 const T* p_UserData = static_cast<T*>(0))
19095 : NCursesPanel (nlines, ncols, begin_y, begin_x)
19098 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
19102 virtual ~NCursesUserPanel() {};
19109 const char* p_UserData = static_cast<char*>(0)
19114 rm -f conftest.$ac_objext
19115 if { (eval echo "$as_me:19115: \"$ac_compile\"") >&5
19116 (eval $ac_compile) 2>&5
19118 echo "$as_me:19118: \$? = $ac_status" >&5
19119 (exit $ac_status); } &&
19120 { ac_try='test -s conftest.$ac_objext'
19121 { (eval echo "$as_me:19121: \"$ac_try\"") >&5
19122 (eval $ac_try) 2>&5
19124 echo "$as_me:19124: \$? = $ac_status" >&5
19125 (exit $ac_status); }; }; then
19126 cf_cv_cpp_static_cast=yes
19128 echo "$as_me: failed program was:" >&5
19129 cat conftest.$ac_ext >&5
19130 cf_cv_cpp_static_cast=no
19132 rm -f conftest.$ac_objext conftest.$ac_ext
19135 ac_cpp='$CXXCPP $CPPFLAGS'
19136 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19137 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19138 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19139 ac_main_return=return
19142 echo "$as_me:19142: result: $cf_cv_cpp_static_cast" >&5
19143 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
19147 test "$cf_cv_cpp_static_cast" = yes &&
19148 cat >>confdefs.h <<\EOF
19149 #define CPP_HAS_STATIC_CAST 1
19153 CXX_ARFLAGS='$(ARFLAGS)'
19154 case $cf_cv_system_name in #(vi
19156 if test "$GXX" != yes ; then
19158 CXX_ARFLAGS='-ar -o'
19162 CXXLDFLAGS="-u main"
19165 if test "$GXX" != yes ; then
19167 CXX_ARFLAGS='-xar -o'
19174 cf_cv_builtin_bool=1
19176 # Just because we are not configuring against C++ right now does not
19177 # mean that a user will not want to use C++. Some distributors disable
19178 # the C++ portion of this configuration as a shortcut (or just to avoid
19179 # compiling the demo in the c++ directory). So we need a reasonable
19180 # default for the 'bool' type.
19182 # Caveat: since the storage of the bool type is not standardized, it
19185 if test "$NCURSES_BOOL" != auto ; then
19186 cf_cv_type_of_bool=$NCURSES_BOOL
19187 cf_cv_header_stdbool_h=0
19189 if test "$cf_cv_header_stdbool_h" = 1 ; then
19191 echo "$as_me:19191: checking for size of bool" >&5
19192 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
19193 if test "${cf_cv_type_of_bool+set}" = set; then
19194 echo $ECHO_N "(cached) $ECHO_C" >&6
19198 if test "$cross_compiling" = yes; then
19199 cf_cv_type_of_bool=unknown
19201 cat >conftest.$ac_ext <<_ACEOF
19202 #line 19202 "configure"
19203 #include "confdefs.h"
19205 #include <stdlib.h>
19208 #if defined(__cplusplus)
19210 #ifdef HAVE_GXX_BUILTIN_H
19211 #include <g++/builtin.h>
19212 #elif HAVE_GPP_BUILTIN_H
19213 #include <gpp/builtin.h>
19214 #elif HAVE_BUILTIN_H
19215 #include <builtin.h>
19220 #if $cf_cv_header_stdbool_h
19221 #include <stdbool.h>
19228 FILE *fp = fopen("cf_test.out", "w");
19231 if ((bool)(-x) >= 0)
19232 fputs("unsigned ", fp);
19233 if (sizeof(x) == sizeof(int)) fputs("int", fp);
19234 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
19235 else if (sizeof(x) == sizeof(short))fputs("short",fp);
19236 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
19239 ${cf_cv_main_return:-return}(0);
19243 rm -f conftest$ac_exeext
19244 if { (eval echo "$as_me:19244: \"$ac_link\"") >&5
19245 (eval $ac_link) 2>&5
19247 echo "$as_me:19247: \$? = $ac_status" >&5
19248 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19249 { (eval echo "$as_me:19249: \"$ac_try\"") >&5
19250 (eval $ac_try) 2>&5
19252 echo "$as_me:19252: \$? = $ac_status" >&5
19253 (exit $ac_status); }; }; then
19254 cf_cv_type_of_bool=`cat cf_test.out`
19255 if test -z "$cf_cv_type_of_bool"; then
19256 cf_cv_type_of_bool=unknown
19259 echo "$as_me: program exited with status $ac_status" >&5
19260 echo "$as_me: failed program was:" >&5
19261 cat conftest.$ac_ext >&5
19262 cf_cv_type_of_bool=unknown
19264 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19270 echo "$as_me:19270: result: $cf_cv_type_of_bool" >&5
19271 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
19272 if test "$cf_cv_type_of_bool" = unknown ; then
19273 case .$NCURSES_BOOL in #(vi
19274 .auto|.) NCURSES_BOOL=unsigned;;
19276 { echo "$as_me:19276: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
19277 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
19278 cf_cv_type_of_bool=$NCURSES_BOOL
19282 echo "$as_me:19282: checking for fallback type of bool" >&5
19283 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
19284 case "$host_cpu" in #(vi
19285 i?86) cf_cv_type_of_bool=char ;; #(vi
19286 *) cf_cv_type_of_bool=int ;;
19288 echo "$as_me:19288: result: $cf_cv_type_of_bool" >&5
19289 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
19294 # If the C compiler did not declare bool, and we did not determine that the C++
19295 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
19296 # ncurses library use the same type as C++ bool. Note that this allows one to
19297 # specify the type of bool in a configure-script option and postpone
19298 # integration with the C++ compiler provided that the types are compatible.
19300 if test $cf_cv_cc_bool_type = 1
19302 # oops: C has a bool. Unlikely, but C++ could differ.
19304 elif test $cf_cv_builtin_bool = 0
19309 # this is the normal case
19310 USE_CXX_BOOL='defined(__cplusplus)'
19313 if test -f "${srcdir}/Ada95/Makefile.in" ; then
19315 if test "$cf_with_ada" != "no" ; then
19316 if test "$with_libtool" != "no"; then
19317 { echo "$as_me:19317: WARNING: libtool does not support Ada - disabling feature" >&5
19318 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
19323 if test "$cf_with_ada" != "no" ; then
19325 cf_ada_make=gnatmake
19326 # Extract the first word of "$cf_ada_make", so it can be a program name with args.
19327 set dummy $cf_ada_make; ac_word=$2
19328 echo "$as_me:19328: checking for $ac_word" >&5
19329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19330 if test "${ac_cv_prog_gnat_exists+set}" = set; then
19331 echo $ECHO_N "(cached) $ECHO_C" >&6
19333 if test -n "$gnat_exists"; then
19334 ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test.
19336 ac_save_IFS=$IFS; IFS=$ac_path_separator
19338 for ac_dir in $ac_dummy; do
19340 test -z "$ac_dir" && ac_dir=.
19341 $as_executable_p "$ac_dir/$ac_word" || continue
19342 ac_cv_prog_gnat_exists="yes"
19343 echo "$as_me:19343: found $ac_dir/$ac_word" >&5
19347 test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no"
19350 gnat_exists=$ac_cv_prog_gnat_exists
19351 if test -n "$gnat_exists"; then
19352 echo "$as_me:19352: result: $gnat_exists" >&5
19353 echo "${ECHO_T}$gnat_exists" >&6
19355 echo "$as_me:19355: result: no" >&5
19356 echo "${ECHO_T}no" >&6
19359 if test "$ac_cv_prog_gnat_exists" = no; then
19361 cf_cv_prog_gnat_correct=no
19364 echo "$as_me:19364: checking for gnat version" >&5
19365 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
19366 cf_gnat_version=`${cf_ada_make:-gnatmake} -v 2>&1 | \
19367 grep '[0-9].[0-9][0-9]*' |\
19368 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
19369 echo "$as_me:19369: result: $cf_gnat_version" >&5
19370 echo "${ECHO_T}$cf_gnat_version" >&6
19372 case $cf_gnat_version in #(vi
19373 3.1[1-9]*|3.[2-9]*|[4-9].*|20[0-9][0-9]) #(vi
19374 cf_cv_prog_gnat_correct=yes
19377 { echo "$as_me:19377: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
19378 echo "$as_me: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
19379 cf_cv_prog_gnat_correct=no
19383 # Extract the first word of "m4", so it can be a program name with args.
19384 set dummy m4; ac_word=$2
19385 echo "$as_me:19385: checking for $ac_word" >&5
19386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19387 if test "${ac_cv_prog_M4_exists+set}" = set; then
19388 echo $ECHO_N "(cached) $ECHO_C" >&6
19390 if test -n "$M4_exists"; then
19391 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
19393 ac_save_IFS=$IFS; IFS=$ac_path_separator
19395 for ac_dir in $ac_dummy; do
19397 test -z "$ac_dir" && ac_dir=.
19398 $as_executable_p "$ac_dir/$ac_word" || continue
19399 ac_cv_prog_M4_exists="yes"
19400 echo "$as_me:19400: found $ac_dir/$ac_word" >&5
19404 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
19407 M4_exists=$ac_cv_prog_M4_exists
19408 if test -n "$M4_exists"; then
19409 echo "$as_me:19409: result: $M4_exists" >&5
19410 echo "${ECHO_T}$M4_exists" >&6
19412 echo "$as_me:19412: result: no" >&5
19413 echo "${ECHO_T}no" >&6
19416 if test "$ac_cv_prog_M4_exists" = no; then
19417 cf_cv_prog_gnat_correct=no
19418 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
19420 if test "$cf_cv_prog_gnat_correct" = yes; then
19421 echo "$as_me:19421: checking if GNAT works" >&5
19422 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
19424 rm -rf conftest* *~conftest*
19425 cat >>conftest.ads <<CF_EOF
19426 procedure conftest;
19428 cat >>conftest.adb <<CF_EOF
19431 procedure conftest is
19433 Text_IO.Put ("Hello World");
19435 GNAT.OS_Lib.OS_Exit (0);
19438 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
19439 if ( ./conftest 1>&5 2>&1 ) ; then
19440 cf_cv_prog_gnat_correct=yes
19442 cf_cv_prog_gnat_correct=no
19445 cf_cv_prog_gnat_correct=no
19447 rm -rf conftest* *~conftest*
19449 echo "$as_me:19449: result: $cf_cv_prog_gnat_correct" >&5
19450 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
19454 if test "x$cf_cv_prog_gnat_correct" = xyes; then
19456 ADAFLAGS="$ADAFLAGS -gnatpn"
19458 echo "$as_me:19458: checking optimization options for ADAFLAGS" >&5
19459 echo $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6
19463 ADAFLAGS="$ADAFLAGS -g"
19469 cf_O_flag=`echo "$CFLAGS" |sed -e 's/^.*-O/-O/' -e 's/[ ].*//'`
19471 ADAFLAGS="$ADAFLAGS $cf_O_flag"
19475 echo "$as_me:19475: result: $ADAFLAGS" >&5
19476 echo "${ECHO_T}$ADAFLAGS" >&6
19478 echo "$as_me:19478: checking if GNAT supports generics" >&5
19479 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
19480 case $cf_gnat_version in #(vi
19481 3.[1-9]*|[4-9].*) #(vi
19482 cf_gnat_generics=yes
19485 cf_gnat_generics=no
19488 echo "$as_me:19488: result: $cf_gnat_generics" >&5
19489 echo "${ECHO_T}$cf_gnat_generics" >&6
19491 if test "$cf_gnat_generics" = yes
19493 cf_compile_generics=generics
19494 cf_generic_objects="\${GENOBJS}"
19496 cf_compile_generics=
19497 cf_generic_objects=
19500 echo "$as_me:19500: checking if GNAT supports SIGINT" >&5
19501 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
19502 if test "${cf_cv_gnat_sigint+set}" = set; then
19503 echo $ECHO_N "(cached) $ECHO_C" >&6
19506 rm -rf conftest* *~conftest*
19507 cat >>conftest.ads <<CF_EOF
19508 with Ada.Interrupts.Names;
19510 package ConfTest is
19512 pragma Warnings (Off); -- the next pragma exists since 3.11p
19513 pragma Unreserve_All_Interrupts;
19514 pragma Warnings (On);
19516 protected Process is
19518 function Continue return Boolean;
19519 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
19521 Done : Boolean := False;
19526 cat >>conftest.adb <<CF_EOF
19527 package body ConfTest is
19528 protected body Process is
19533 function Continue return Boolean is
19540 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
19541 cf_cv_gnat_sigint=yes
19543 cf_cv_gnat_sigint=no
19545 rm -rf conftest* *~conftest*
19548 echo "$as_me:19548: result: $cf_cv_gnat_sigint" >&5
19549 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
19551 if test $cf_cv_gnat_sigint = yes ; then
19554 USE_GNAT_SIGINT="#"
19557 echo "$as_me:19557: checking if GNAT pragma Unreferenced works" >&5
19558 echo $ECHO_N "checking if GNAT pragma Unreferenced works... $ECHO_C" >&6
19559 if test "${cf_cv_pragma_unreferenced+set}" = set; then
19560 echo $ECHO_N "(cached) $ECHO_C" >&6
19563 rm -rf conftest* *~conftest*
19564 cat >>conftest.ads <<CF_EOF
19565 procedure conftest;
19567 cat >>conftest.adb <<CF_EOF
19570 procedure conftest is
19572 pragma Unreferenced (test);
19575 Text_IO.Put ("Hello World");
19577 GNAT.OS_Lib.OS_Exit (0);
19580 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
19581 cf_cv_pragma_unreferenced=yes
19583 cf_cv_pragma_unreferenced=no
19585 rm -rf conftest* *~conftest*
19588 echo "$as_me:19588: result: $cf_cv_pragma_unreferenced" >&5
19589 echo "${ECHO_T}$cf_cv_pragma_unreferenced" >&6
19591 # if the pragma is supported, use it (needed in the Trace code).
19592 if test $cf_cv_pragma_unreferenced = yes ; then
19598 cf_gnat_libraries=no
19599 cf_gnat_projects=no
19601 echo "$as_me:19601: checking if GNAT supports project files" >&5
19602 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
19603 case $cf_gnat_version in #(vi
19607 case $cf_cv_system_name in #(vi
19611 mkdir conftest.src conftest.bin conftest.lib
19613 rm -rf conftest* *~conftest*
19614 cat >>library.gpr <<CF_EOF
19616 Kind := External ("LIB_KIND");
19617 for Library_Name use "ConfTest";
19618 for Object_Dir use ".";
19619 for Library_ALI_Dir use External("LIBRARY_DIR");
19620 for Library_Version use External ("SONAME");
19621 for Library_Kind use Kind;
19622 for Library_Dir use External("BUILD_DIR");
19623 Source_Dir := External ("SOURCE_DIR");
19624 for Source_Dirs use (Source_Dir);
19625 package Compiler is
19626 for Default_Switches ("Ada") use
19630 "-gnatVa", -- All validity checks
19631 "-gnatwa"); -- Activate all optional errors
19635 cat >>confpackage.ads <<CF_EOF
19636 package ConfPackage is
19637 procedure conftest;
19640 cat >>confpackage.adb <<CF_EOF
19642 package body ConfPackage is
19643 procedure conftest is
19645 Text_IO.Put ("Hello World");
19650 if ( $cf_ada_make $ADAFLAGS \
19652 -XBUILD_DIR=`cd ../conftest.bin;pwd` \
19653 -XLIBRARY_DIR=`cd ../conftest.lib;pwd` \
19654 -XSOURCE_DIR=`pwd` \
19655 -XSONAME=libConfTest.so.1 \
19656 -XLIB_KIND=static 1>&5 2>&1 ) ; then
19657 cf_gnat_projects=yes
19660 if test -f conftest.lib/confpackage.ali
19662 cf_gnat_libraries=yes
19664 rm -rf conftest* *~conftest*
19669 echo "$as_me:19669: result: $cf_gnat_projects" >&5
19670 echo "${ECHO_T}$cf_gnat_projects" >&6
19672 if test $cf_gnat_projects = yes
19674 echo "$as_me:19674: checking if GNAT supports libraries" >&5
19675 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
19676 echo "$as_me:19676: result: $cf_gnat_libraries" >&5
19677 echo "${ECHO_T}$cf_gnat_libraries" >&6
19680 if test "$cf_gnat_projects" = yes
19682 USE_OLD_MAKERULES="#"
19683 USE_GNAT_PROJECTS=""
19685 USE_OLD_MAKERULES=""
19686 USE_GNAT_PROJECTS="#"
19689 if test "$cf_gnat_libraries" = yes
19691 USE_GNAT_LIBRARIES=""
19693 USE_GNAT_LIBRARIES="#"
19696 echo "$as_me:19696: checking for ada-compiler" >&5
19697 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
19699 # Check whether --with-ada-compiler or --without-ada-compiler was given.
19700 if test "${with_ada_compiler+set}" = set; then
19701 withval="$with_ada_compiler"
19702 cf_ada_compiler=$withval
19704 cf_ada_compiler=gnatmake
19707 echo "$as_me:19707: result: $cf_ada_compiler" >&5
19708 echo "${ECHO_T}$cf_ada_compiler" >&6
19710 cf_ada_package=terminal_interface
19712 echo "$as_me:19712: checking for ada-include" >&5
19713 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
19715 # Check whether --with-ada-include or --without-ada-include was given.
19716 if test "${with_ada_include+set}" = set; then
19717 withval="$with_ada_include"
19720 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
19721 fi; if test -n "$prefix/share/ada/adainclude" ; then
19723 if test "x$prefix" != xNONE; then
19724 cf_path_syntax="$prefix"
19726 cf_path_syntax="$ac_default_prefix"
19729 case ".$withval" in #(vi
19730 .\$\(*\)*|.\'*\'*) #(vi
19734 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
19736 .\${*prefix}*|.\${*dir}*) #(vi
19737 eval withval="$withval"
19738 case ".$withval" in #(vi
19740 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
19745 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
19748 { { echo "$as_me:19748: error: expected a pathname, not \"$withval\"" >&5
19749 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
19750 { (exit 1); exit 1; }; }
19755 eval ADA_INCLUDE="$withval"
19757 echo "$as_me:19757: result: $ADA_INCLUDE" >&5
19758 echo "${ECHO_T}$ADA_INCLUDE" >&6
19760 echo "$as_me:19760: checking for ada-objects" >&5
19761 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
19763 # Check whether --with-ada-objects or --without-ada-objects was given.
19764 if test "${with_ada_objects+set}" = set; then
19765 withval="$with_ada_objects"
19768 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
19769 fi; if test -n "$prefix/lib/ada/adalib" ; then
19771 if test "x$prefix" != xNONE; then
19772 cf_path_syntax="$prefix"
19774 cf_path_syntax="$ac_default_prefix"
19777 case ".$withval" in #(vi
19778 .\$\(*\)*|.\'*\'*) #(vi
19782 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
19784 .\${*prefix}*|.\${*dir}*) #(vi
19785 eval withval="$withval"
19786 case ".$withval" in #(vi
19788 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
19793 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
19796 { { echo "$as_me:19796: error: expected a pathname, not \"$withval\"" >&5
19797 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
19798 { (exit 1); exit 1; }; }
19803 eval ADA_OBJECTS="$withval"
19805 echo "$as_me:19805: result: $ADA_OBJECTS" >&5
19806 echo "${ECHO_T}$ADA_OBJECTS" >&6
19808 echo "$as_me:19808: checking if an Ada95 shared-library should be built" >&5
19809 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
19811 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
19812 if test "${with_ada_sharedlib+set}" = set; then
19813 withval="$with_ada_sharedlib"
19814 with_ada_sharedlib=$withval
19816 with_ada_sharedlib=no
19818 echo "$as_me:19818: result: $with_ada_sharedlib" >&5
19819 echo "${ECHO_T}$with_ada_sharedlib" >&6
19821 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
19822 MAKE_ADA_SHAREDLIB="#"
19824 if test "x$with_ada_sharedlib" != xno
19826 MAKE_ADA_SHAREDLIB=
19827 if test "x$with_ada_sharedlib" != xyes
19829 ADA_SHAREDLIB="$with_ada_sharedlib"
19839 # do this "late" to avoid conflict with header-checks
19840 if test "x$with_widec" = xyes ; then
19841 echo "$as_me:19841: checking for wchar_t" >&5
19842 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19843 if test "${ac_cv_type_wchar_t+set}" = set; then
19844 echo $ECHO_N "(cached) $ECHO_C" >&6
19846 cat >conftest.$ac_ext <<_ACEOF
19847 #line 19847 "configure"
19848 #include "confdefs.h"
19849 $ac_includes_default
19855 if (sizeof (wchar_t))
19861 rm -f conftest.$ac_objext
19862 if { (eval echo "$as_me:19862: \"$ac_compile\"") >&5
19863 (eval $ac_compile) 2>&5
19865 echo "$as_me:19865: \$? = $ac_status" >&5
19866 (exit $ac_status); } &&
19867 { ac_try='test -s conftest.$ac_objext'
19868 { (eval echo "$as_me:19868: \"$ac_try\"") >&5
19869 (eval $ac_try) 2>&5
19871 echo "$as_me:19871: \$? = $ac_status" >&5
19872 (exit $ac_status); }; }; then
19873 ac_cv_type_wchar_t=yes
19875 echo "$as_me: failed program was:" >&5
19876 cat conftest.$ac_ext >&5
19877 ac_cv_type_wchar_t=no
19879 rm -f conftest.$ac_objext conftest.$ac_ext
19881 echo "$as_me:19881: result: $ac_cv_type_wchar_t" >&5
19882 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19884 echo "$as_me:19884: checking size of wchar_t" >&5
19885 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
19886 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
19887 echo $ECHO_N "(cached) $ECHO_C" >&6
19889 if test "$ac_cv_type_wchar_t" = yes; then
19890 if test "$cross_compiling" = yes; then
19891 # Depending upon the size, compute the lo and hi bounds.
19892 cat >conftest.$ac_ext <<_ACEOF
19893 #line 19893 "configure"
19894 #include "confdefs.h"
19895 $ac_includes_default
19899 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= 0)]
19904 rm -f conftest.$ac_objext
19905 if { (eval echo "$as_me:19905: \"$ac_compile\"") >&5
19906 (eval $ac_compile) 2>&5
19908 echo "$as_me:19908: \$? = $ac_status" >&5
19909 (exit $ac_status); } &&
19910 { ac_try='test -s conftest.$ac_objext'
19911 { (eval echo "$as_me:19911: \"$ac_try\"") >&5
19912 (eval $ac_try) 2>&5
19914 echo "$as_me:19914: \$? = $ac_status" >&5
19915 (exit $ac_status); }; }; then
19918 cat >conftest.$ac_ext <<_ACEOF
19919 #line 19919 "configure"
19920 #include "confdefs.h"
19921 $ac_includes_default
19925 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
19930 rm -f conftest.$ac_objext
19931 if { (eval echo "$as_me:19931: \"$ac_compile\"") >&5
19932 (eval $ac_compile) 2>&5
19934 echo "$as_me:19934: \$? = $ac_status" >&5
19935 (exit $ac_status); } &&
19936 { ac_try='test -s conftest.$ac_objext'
19937 { (eval echo "$as_me:19937: \"$ac_try\"") >&5
19938 (eval $ac_try) 2>&5
19940 echo "$as_me:19940: \$? = $ac_status" >&5
19941 (exit $ac_status); }; }; then
19942 ac_hi=$ac_mid; break
19944 echo "$as_me: failed program was:" >&5
19945 cat conftest.$ac_ext >&5
19946 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
19948 rm -f conftest.$ac_objext conftest.$ac_ext
19951 echo "$as_me: failed program was:" >&5
19952 cat conftest.$ac_ext >&5
19955 cat >conftest.$ac_ext <<_ACEOF
19956 #line 19956 "configure"
19957 #include "confdefs.h"
19958 $ac_includes_default
19962 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= $ac_mid)]
19967 rm -f conftest.$ac_objext
19968 if { (eval echo "$as_me:19968: \"$ac_compile\"") >&5
19969 (eval $ac_compile) 2>&5
19971 echo "$as_me:19971: \$? = $ac_status" >&5
19972 (exit $ac_status); } &&
19973 { ac_try='test -s conftest.$ac_objext'
19974 { (eval echo "$as_me:19974: \"$ac_try\"") >&5
19975 (eval $ac_try) 2>&5
19977 echo "$as_me:19977: \$? = $ac_status" >&5
19978 (exit $ac_status); }; }; then
19979 ac_lo=$ac_mid; break
19981 echo "$as_me: failed program was:" >&5
19982 cat conftest.$ac_ext >&5
19983 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
19985 rm -f conftest.$ac_objext conftest.$ac_ext
19988 rm -f conftest.$ac_objext conftest.$ac_ext
19989 # Binary search between lo and hi bounds.
19990 while test "x$ac_lo" != "x$ac_hi"; do
19991 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19992 cat >conftest.$ac_ext <<_ACEOF
19993 #line 19993 "configure"
19994 #include "confdefs.h"
19995 $ac_includes_default
19999 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
20004 rm -f conftest.$ac_objext
20005 if { (eval echo "$as_me:20005: \"$ac_compile\"") >&5
20006 (eval $ac_compile) 2>&5
20008 echo "$as_me:20008: \$? = $ac_status" >&5
20009 (exit $ac_status); } &&
20010 { ac_try='test -s conftest.$ac_objext'
20011 { (eval echo "$as_me:20011: \"$ac_try\"") >&5
20012 (eval $ac_try) 2>&5
20014 echo "$as_me:20014: \$? = $ac_status" >&5
20015 (exit $ac_status); }; }; then
20018 echo "$as_me: failed program was:" >&5
20019 cat conftest.$ac_ext >&5
20020 ac_lo=`expr $ac_mid + 1`
20022 rm -f conftest.$ac_objext conftest.$ac_ext
20024 ac_cv_sizeof_wchar_t=$ac_lo
20026 if test "$cross_compiling" = yes; then
20027 { { echo "$as_me:20027: error: cannot run test program while cross compiling" >&5
20028 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
20029 { (exit 1); exit 1; }; }
20031 cat >conftest.$ac_ext <<_ACEOF
20032 #line 20032 "configure"
20033 #include "confdefs.h"
20034 $ac_includes_default
20038 FILE *f = fopen ("conftest.val", "w");
20040 $ac_main_return (1);
20041 fprintf (f, "%d", (sizeof (wchar_t)));
20047 rm -f conftest$ac_exeext
20048 if { (eval echo "$as_me:20048: \"$ac_link\"") >&5
20049 (eval $ac_link) 2>&5
20051 echo "$as_me:20051: \$? = $ac_status" >&5
20052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20053 { (eval echo "$as_me:20053: \"$ac_try\"") >&5
20054 (eval $ac_try) 2>&5
20056 echo "$as_me:20056: \$? = $ac_status" >&5
20057 (exit $ac_status); }; }; then
20058 ac_cv_sizeof_wchar_t=`cat conftest.val`
20060 echo "$as_me: program exited with status $ac_status" >&5
20061 echo "$as_me: failed program was:" >&5
20062 cat conftest.$ac_ext >&5
20064 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20069 ac_cv_sizeof_wchar_t=0
20072 echo "$as_me:20072: result: $ac_cv_sizeof_wchar_t" >&5
20073 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
20074 cat >>confdefs.h <<EOF
20075 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
20080 ### Construct the ncurses library-subsets, if any, from this set of keywords:
20081 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
20083 ### ticlib modules may be a separate library, otherwise contained in termlib.
20084 ### termlib modules may be a separate library, otherwise contained in ncurses.
20086 ### The of "+" or " " between the tokens controls the way the script
20087 ### chooses to split module lists into libraries.
20089 ### (see CF_LIB_RULES).
20090 echo "$as_me:20090: checking for library subsets" >&5
20091 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
20094 if test "x$cf_with_progs" = xyes || test "$with_ticlib" != no || test "$with_termcap" != no; then
20095 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
20096 if test "$with_ticlib" != no ; then
20097 LIB_SUBSETS="${LIB_SUBSETS} "
20099 LIB_SUBSETS="${LIB_SUBSETS}+"
20103 LIB_SUBSETS="${LIB_SUBSETS}termlib"
20104 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
20106 if test "$with_termlib" != no ; then
20107 LIB_SUBSETS="${LIB_SUBSETS} "
20109 LIB_SUBSETS="${LIB_SUBSETS}+"
20112 LIB_SUBSETS="${LIB_SUBSETS}base"
20114 # Most term-driver calls are to tinfo, but some like init_pair are to the
20115 # base library (so it resides in base).
20116 if test "$with_term_driver" != no ; then
20117 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
20118 case $cf_cv_system_name in #(vi
20120 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
20123 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
20128 test "x$with_widec" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
20129 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
20131 echo "$as_me:20131: result: $LIB_SUBSETS" >&5
20132 echo "${ECHO_T}$LIB_SUBSETS" >&6
20134 ### Construct the list of include-directories to be generated
20136 if test "$GCC" != yes; then
20137 CPPFLAGS="-I\${includedir} $CPPFLAGS"
20138 elif test "$includedir" != "/usr/include"; then
20139 if test "$includedir" = '${prefix}/include' ; then
20140 if test $prefix != /usr ; then
20141 CPPFLAGS="-I\${includedir} $CPPFLAGS"
20144 CPPFLAGS="-I\${includedir} $CPPFLAGS"
20147 if test "$srcdir" != "."; then
20148 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
20150 CPPFLAGS="-I. -I../include $CPPFLAGS"
20152 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
20153 if test "$srcdir" != "."; then
20154 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
20156 if test "$GCC" != yes; then
20157 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
20158 elif test "$includedir" != "/usr/include"; then
20159 if test "$includedir" = '${prefix}/include' ; then
20160 if test $prefix != /usr ; then
20161 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
20164 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
20168 ### Build up pieces for makefile rules
20169 echo "$as_me:20169: checking default library suffix" >&5
20170 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
20172 case $DFT_LWR_MODEL in
20173 libtool) DFT_ARG_SUFFIX='' ;;
20174 normal) DFT_ARG_SUFFIX='' ;;
20175 debug) DFT_ARG_SUFFIX='_g' ;;
20176 profile) DFT_ARG_SUFFIX='_p' ;;
20177 shared) DFT_ARG_SUFFIX='' ;;
20179 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
20180 echo "$as_me:20180: result: $DFT_ARG_SUFFIX" >&5
20181 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
20183 echo "$as_me:20183: checking default library-dependency suffix" >&5
20184 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
20186 case X$DFT_LWR_MODEL in #(vi
20188 DFT_LIB_SUFFIX='.la'
20189 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
20192 DFT_LIB_SUFFIX='_g.a'
20193 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
20196 DFT_LIB_SUFFIX='_p.a'
20197 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
20200 case $cf_cv_system_name in
20202 DFT_LIB_SUFFIX='.a'
20203 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
20205 cygwin*|mingw*) #(vi
20206 DFT_LIB_SUFFIX='.dll'
20207 DFT_DEP_SUFFIX='.dll.a'
20210 DFT_LIB_SUFFIX='.dylib'
20211 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
20216 DFT_LIB_SUFFIX='.so'
20217 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
20220 DFT_LIB_SUFFIX='.sl'
20221 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
20226 DFT_LIB_SUFFIX='.so'
20227 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
20232 DFT_LIB_SUFFIX='.a'
20233 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
20236 test -n "$LIB_SUFFIX" && DFT_LIB_SUFFIX="${LIB_SUFFIX}${DFT_LIB_SUFFIX}"
20237 test -n "$LIB_SUFFIX" && DFT_DEP_SUFFIX="${LIB_SUFFIX}${DFT_DEP_SUFFIX}"
20238 echo "$as_me:20238: result: $DFT_DEP_SUFFIX" >&5
20239 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
20241 echo "$as_me:20241: checking default object directory" >&5
20242 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
20244 case $DFT_LWR_MODEL in
20245 libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
20246 normal) DFT_OBJ_SUBDIR='objects' ;;
20247 debug) DFT_OBJ_SUBDIR='obj_g' ;;
20248 profile) DFT_OBJ_SUBDIR='obj_p' ;;
20250 case $cf_cv_system_name in #(vi
20252 DFT_OBJ_SUBDIR='objects' ;;
20254 DFT_OBJ_SUBDIR='obj_s' ;;
20257 echo "$as_me:20257: result: $DFT_OBJ_SUBDIR" >&5
20258 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
20260 if test "x$cf_with_cxx" = xyes ; then
20261 echo "$as_me:20261: checking c++ library-dependency suffix" >&5
20262 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
20263 if test "$with_libtool" != "no"; then
20264 # libtool thinks it can make c++ shared libraries (perhaps only g++)
20265 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
20266 elif test "$with_shared_cxx" != "no"; then
20267 # also for g++ users...
20268 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
20270 # we normally make a static library because C/C++ library rules differ
20272 case Xnormal in #(vi
20274 CXX_LIB_SUFFIX='.la'
20275 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
20278 CXX_LIB_SUFFIX='_g.a'
20279 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
20282 CXX_LIB_SUFFIX='_p.a'
20283 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
20286 case $cf_cv_system_name in
20288 CXX_LIB_SUFFIX='.a'
20289 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
20291 cygwin*|mingw*) #(vi
20292 CXX_LIB_SUFFIX='.dll'
20293 CXX_DEP_SUFFIX='.dll.a'
20296 CXX_LIB_SUFFIX='.dylib'
20297 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
20302 CXX_LIB_SUFFIX='.so'
20303 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
20306 CXX_LIB_SUFFIX='.sl'
20307 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
20312 CXX_LIB_SUFFIX='.so'
20313 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
20318 CXX_LIB_SUFFIX='.a'
20319 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
20322 test -n "$LIB_SUFFIX" && CXX_LIB_SUFFIX="${LIB_SUFFIX}${CXX_LIB_SUFFIX}"
20323 test -n "$LIB_SUFFIX" && CXX_DEP_SUFFIX="${LIB_SUFFIX}${CXX_DEP_SUFFIX}"
20326 echo "$as_me:20326: result: $CXX_LIB_SUFFIX" >&5
20327 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
20331 # do not want -ldl in build except as needed for -lncurses dependency
20332 if test "x$with_dlsym" = xyes ; then
20333 if test $DFT_LWR_MODEL = shared || \
20334 test $DFT_LWR_MODEL = libtool ; then
20336 # remove dl library from $LIBS
20337 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
20341 ### Set up low-level terminfo dependencies for makefiles.
20343 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
20344 # do not need libdl
20346 if test "x$with_dlsym" = xyes ; then
20348 # remove dl library from $SHLIB_LIST
20349 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
20353 if test "$with_ticlib" != no ; then
20355 if test "x$with_ticlib" != xyes ; then
20356 TICS_NAME=$with_ticlib
20357 TICS_ARG_SUFFIX="${with_ticlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
20358 TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
20359 TICS_LIB_SUFFIX="${with_ticlib}"
20361 TICS_ARG_SUFFIX="${TICS_NAME}${DFT_ARG_SUFFIX}"
20362 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
20363 TICS_LIB_SUFFIX="${TICS_NAME}${LIB_SUFFIX}"
20365 TICS_LDFLAGS="-L${LIB_DIR}"
20366 TICS_LIBS="-l${TICS_LIB_SUFFIX}"
20368 TICS_LDFLAGS="-L${LIB_DIR}"
20369 TICS_LIBS="-l${LIB_NAME}${DFT_ARG_SUFFIX}"
20372 if test "$with_termlib" != no ; then
20374 if test "x$with_termlib" != xyes ; then
20375 TINFO_NAME=$with_termlib
20376 TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
20377 TINFO_ARG_SUFFIX="${with_termlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
20378 TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
20379 TINFO_LIB_SUFFIX="${with_termlib}"
20381 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
20382 TINFO_ARG_SUFFIX="${TINFO_NAME}${DFT_ARG_SUFFIX}"
20383 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
20384 TINFO_LIB_SUFFIX="${TINFO_NAME}${LIB_SUFFIX}"
20387 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
20388 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
20389 if test "$DFT_LWR_MODEL" = "libtool"; then
20390 TEST_ARGS="${TEST_DEPS}"
20391 TEST_ARG2="${TEST_DEP2}"
20392 TINFO_LDFLAGS="-L${LIB_DIR}"
20393 TINFO_LIBS="$TEST_ARGS"
20394 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
20395 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
20397 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
20398 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
20399 if test "x$with_term_driver" != xno ; then
20400 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${DFT_ARG_SUFFIX}"
20401 TICS_LIBS="$TICS_LIBS -l${LIB_NAME}${DFT_ARG_SUFFIX}"
20402 TINFO_LIBS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS"
20404 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
20405 TINFO_LIBS="$TEST_ARGS"
20407 TINFO_LDFLAGS="-L${LIB_DIR}"
20408 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
20411 # the next lines are needed for linking libtic over libncurses
20412 TINFO_NAME=${LIB_NAME}
20413 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
20414 TINFO_ARG_SUFFIX=${LIB_NAME}${DFT_ARG_SUFFIX}
20415 if test "x$with_tic_depends" = xyes ; then
20416 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${DFT_ARG_SUFFIX}"
20418 TICS_LIST="$SHLIB_LIST"
20421 TINFO_LDFLAGS="-L${LIB_DIR}"
20422 TINFO_LIBS="-l${LIB_NAME}${DFT_ARG_SUFFIX}"
20425 if test "$DFT_LWR_MODEL" = shared ; then
20426 case $cf_cv_system_name in #(vi
20428 # "lib" files have ".dll.a" suffix, "cyg" files have ".dll"
20434 if test "x$with_dlsym" = xyes ; then
20436 # remove dl library from $TICS_LIST
20437 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
20441 if test "$DFT_LWR_MODEL" = "libtool"; then
20446 TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'`
20448 case $DFT_LWR_MODEL in
20449 normal|debug|profile)
20451 if test "$GCC" = yes ; then
20452 case $cf_cv_system_name in #(
20453 OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*) #( vi
20457 *) #( normally, except when broken
20458 LDFLAGS_STATIC=-static
20459 LDFLAGS_SHARED=-dynamic
20463 case $cf_cv_system_name in #(
20464 aix[4-7]*) #( from ld manpage
20465 LDFLAGS_STATIC=-bstatic
20466 LDFLAGS_SHARED=-bdynamic
20468 hpux*) #( from ld manpage for hpux10.20, hpux11.11
20469 # We could also use just "archive" and "shared".
20470 LDFLAGS_STATIC=-Wl,-a,archive_shared
20471 LDFLAGS_SHARED=-Wl,-a,shared_archive
20473 irix*) #( from ld manpage IRIX64
20474 LDFLAGS_STATIC=-Bstatic
20475 LDFLAGS_SHARED=-Bdynamic
20477 osf[45]*) #( from ld manpage osf4.0d, osf5.1
20478 # alternative "-oldstyle_liblookup" (not in cc manpage)
20479 LDFLAGS_STATIC=-noso
20480 LDFLAGS_SHARED=-so_archive
20483 LDFLAGS_STATIC=-Bstatic
20484 LDFLAGS_SHARED=-Bdynamic
20489 if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED"
20491 echo "$as_me:20491: checking if linker supports switching between static/dynamic" >&5
20492 echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6
20494 rm -f libconftest.a
20495 cat >conftest.$ac_ext <<EOF
20496 #line 20496 "configure"
20498 int cf_ldflags_static(FILE *fp) { return fflush(fp); }
20500 if { (eval echo "$as_me:20500: \"$ac_compile\"") >&5
20501 (eval $ac_compile) 2>&5
20503 echo "$as_me:20503: \$? = $ac_status" >&5
20504 (exit $ac_status); } ; then
20505 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null
20506 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null
20510 cf_save_LIBS="$LIBS"
20512 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS"
20513 cat >conftest.$ac_ext <<_ACEOF
20514 #line 20514 "configure"
20515 #include "confdefs.h"
20517 #line 20517 "configure"
20519 int cf_ldflags_static(FILE *fp);
20525 return cf_ldflags_static(stdin);
20531 rm -f conftest.$ac_objext conftest$ac_exeext
20532 if { (eval echo "$as_me:20532: \"$ac_link\"") >&5
20533 (eval $ac_link) 2>&5
20535 echo "$as_me:20535: \$? = $ac_status" >&5
20536 (exit $ac_status); } &&
20537 { ac_try='test -s conftest$ac_exeext'
20538 { (eval echo "$as_me:20538: \"$ac_try\"") >&5
20539 (eval $ac_try) 2>&5
20541 echo "$as_me:20541: \$? = $ac_status" >&5
20542 (exit $ac_status); }; }; then
20544 # some linkers simply ignore the -dynamic
20545 case x`file conftest$ac_exeext 2>/dev/null` in #(vi
20547 cf_ldflags_static=no
20550 cf_ldflags_static=yes
20555 echo "$as_me: failed program was:" >&5
20556 cat conftest.$ac_ext >&5
20557 cf_ldflags_static=no
20559 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20561 rm -f libconftest.*
20562 LIBS="$cf_save_LIBS"
20564 echo "$as_me:20564: result: $cf_ldflags_static" >&5
20565 echo "${ECHO_T}$cf_ldflags_static" >&6
20567 if test $cf_ldflags_static != yes
20580 echo "$as_me:20580: checking where we will install curses.h" >&5
20581 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
20582 test "$with_overwrite" = no && \
20583 test "x$includedir" = 'x${prefix}/include' && \
20584 includedir='${prefix}/include/ncurses'${LIB_SUFFIX}
20585 echo "$as_me:20585: result: $includedir" >&5
20586 echo "${ECHO_T}$includedir" >&6
20588 ### Resolve a conflict between normal and wide-curses by forcing applications
20589 ### that will need libutf8 to add it to their configure script.
20590 if test "$with_overwrite" != no ; then
20591 if test "$NCURSES_LIBUTF8" = 1 ; then
20592 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
20593 { echo "$as_me:20593: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
20594 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
20597 WITH_OVERWRITE=$with_overwrite
20599 # used to separate tack out of the tree
20602 ### predefined stuff for the test programs
20604 cat >>confdefs.h <<\EOF
20605 #define HAVE_SLK_COLOR 1
20608 ### Construct the list of subdirectories for which we'll customize makefiles
20609 ### with the appropriate compile-rules.
20611 echo "$as_me:20611: checking for src modules" >&5
20612 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
20614 # dependencies and linker-arguments for test-programs
20615 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
20616 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
20617 if test "$DFT_LWR_MODEL" = "libtool"; then
20618 TEST_ARGS="${TEST_DEPS}"
20619 TEST_ARG2="${TEST_DEP2}"
20621 TEST_ARGS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS"
20622 TEST_ARG2="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARG2"
20625 PC_MODULES_TO_MAKE="ncurses${DFT_ARG_SUFFIX}"
20627 for cf_dir in $modules_to_build
20629 if test -f $srcdir/$cf_dir/modules; then
20631 # We may/may not have tack in the distribution, though the
20633 if test $cf_dir = tack ; then
20634 if test ! -f $srcdir/${cf_dir}/${cf_dir}.h; then
20639 if test -z "$cf_cv_src_modules"; then
20640 cf_cv_src_modules=$cf_dir
20642 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
20645 # Make the ncurses_cfg.h file record the library interface files as
20646 # well. These are header files that are the same name as their
20647 # directory. Ncurses is the only library that does not follow
20649 if test $cf_dir = tack ; then
20651 elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
20653 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20655 cat >>confdefs.h <<EOF
20656 #define HAVE_${cf_have_include}_H 1
20659 cat >>confdefs.h <<EOF
20660 #define HAVE_LIB${cf_have_include} 1
20663 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
20664 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEP2"
20665 if test "$DFT_LWR_MODEL" = "libtool"; then
20666 TEST_ARGS="${TEST_DEPS}"
20667 TEST_ARG2="${TEST_DEP2}"
20669 TEST_ARGS="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARGS"
20670 TEST_ARG2="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARG2"
20672 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ${cf_dir}${DFT_ARG_SUFFIX}"
20676 echo "$as_me:20676: result: $cf_cv_src_modules" >&5
20677 echo "${ECHO_T}$cf_cv_src_modules" >&6
20679 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
20680 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
20683 if test "x$cf_with_manpages" != xno ; then
20684 SRC_SUBDIRS="$SRC_SUBDIRS man"
20686 SRC_SUBDIRS="$SRC_SUBDIRS include"
20687 for cf_dir in $cf_cv_src_modules
20689 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
20691 if test "x$cf_with_tests" != "xno" ; then
20692 SRC_SUBDIRS="$SRC_SUBDIRS test"
20694 test -z "$MAKE_TERMINFO" && SRC_SUBDIRS="$SRC_SUBDIRS misc"
20695 if test "$cf_with_cxx_binding" != no; then
20696 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ncurses++${DFT_ARG_SUFFIX}"
20697 SRC_SUBDIRS="$SRC_SUBDIRS c++"
20700 test "x$with_termlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TINFO_ARG_SUFFIX"
20701 test "x$with_ticlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TICS_ARG_SUFFIX"
20704 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = xyes && test -f $srcdir/Ada95/Makefile.in; then
20705 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
20706 ADA_SUBDIRS="gen src"
20707 if test "x$cf_with_tests" != "xno" ; then
20708 ADA_SUBDIRS="$ADA_SUBDIRS samples"
20713 for cf_dir in $SRC_SUBDIRS
20715 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
20718 if test -n "$ADA_SUBDIRS"; then
20719 for cf_dir in $ADA_SUBDIRS
20721 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
20726 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
20727 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${DFT_ARG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
20728 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${DFT_ARG_SUFFIX}-config.1:man/MKada_config.in"
20732 for cf_item in $cf_list_models
20736 libtool) cf_subdir='obj_lo' ;;
20737 normal) cf_subdir='objects' ;;
20738 debug) cf_subdir='obj_g' ;;
20739 profile) cf_subdir='obj_p' ;;
20741 case $cf_cv_system_name in #(vi
20743 cf_subdir='objects' ;;
20745 cf_subdir='obj_s' ;;
20749 for cf_item2 in $DIRS_TO_MAKE
20751 test $cf_item2 = $cf_subdir && break
20753 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
20755 for cf_dir in $DIRS_TO_MAKE
20757 test ! -d $cf_dir && mkdir $cf_dir
20760 # symbols that differ when compiling Ada95 by itself.
20761 NCURSES_SHLIB2='sh $(top_srcdir)/misc/shlib'
20763 # values to use as strings
20765 cat >>confdefs.h <<EOF
20766 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
20769 cat >>confdefs.h <<EOF
20770 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
20773 ### Now that we're done running tests, add the compiler-warnings, if any
20778 cf_new_extra_cppflags=
20780 for cf_add_cflags in $EXTRA_CFLAGS
20782 case $cf_fix_cppflags in
20784 case $cf_add_cflags in #(vi
20785 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
20786 case $cf_add_cflags in
20788 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
20790 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
20791 && test -z "${cf_tst_cflags}" \
20792 && cf_fix_cppflags=yes
20794 if test $cf_fix_cppflags = yes ; then
20795 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
20797 elif test "${cf_tst_cflags}" = "\"'" ; then
20798 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
20803 case "$CPPFLAGS" in
20804 *$cf_add_cflags) #(vi
20807 case $cf_add_cflags in #(vi
20809 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
20811 CPPFLAGS=`echo "$CPPFLAGS" | \
20812 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
20813 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
20817 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
20822 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
20827 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
20829 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
20831 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
20832 && test -z "${cf_tst_cflags}" \
20833 && cf_fix_cppflags=no
20838 if test -n "$cf_new_cflags" ; then
20840 CFLAGS="$CFLAGS $cf_new_cflags"
20843 if test -n "$cf_new_cppflags" ; then
20845 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
20848 if test -n "$cf_new_extra_cppflags" ; then
20850 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
20853 ### Define substitutions for header files to avoid name-pollution
20855 if test "x$cf_cv_have_tcgetattr" = xyes ; then
20861 if test "x$ac_cv_header_termio_h" = xyes ; then
20867 if test "x$ac_cv_header_termios_h" = xyes ; then
20873 ################################################################################
20874 test "x$use_database" = xyes && \
20875 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
20877 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
20878 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${DFT_ARG_SUFFIX}${cf_cv_abi_version}-config.1:man/MKncu_config.in"
20880 if test "x$enable_pc_files" = xyes ; then \
20881 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
20887 # Extract the first word of "tic", so it can be a program name with args.
20888 set dummy tic; ac_word=$2
20889 echo "$as_me:20889: checking for $ac_word" >&5
20890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20891 if test "${ac_cv_path_TIC_PATH+set}" = set; then
20892 echo $ECHO_N "(cached) $ECHO_C" >&6
20896 ac_cv_path_TIC_PATH="$TIC_PATH" # Let the user override the test with a path.
20899 ac_save_IFS=$IFS; IFS=$ac_path_separator
20900 ac_dummy="$PATH:/usr/local/ncurses/bin"
20901 for ac_dir in $ac_dummy; do
20903 test -z "$ac_dir" && ac_dir=.
20904 if $as_executable_p "$ac_dir/$ac_word"; then
20905 ac_cv_path_TIC_PATH="$ac_dir/$ac_word"
20906 echo "$as_me:20906: found $ac_dir/$ac_word" >&5
20911 test -z "$ac_cv_path_TIC_PATH" && ac_cv_path_TIC_PATH="unknown"
20915 TIC_PATH=$ac_cv_path_TIC_PATH
20917 if test -n "$TIC_PATH"; then
20918 echo "$as_me:20918: result: $TIC_PATH" >&5
20919 echo "${ECHO_T}$TIC_PATH" >&6
20921 echo "$as_me:20921: result: no" >&5
20922 echo "${ECHO_T}no" >&6
20925 if test -n "$FALLBACK_LIST"
20927 if test "$TIC_PATH" = unknown
20929 { echo "$as_me:20929: WARNING: no tic program found for fallbacks" >&5
20930 echo "$as_me: WARNING: no tic program found for fallbacks" >&2;}
20934 if test "x$cf_with_tests" != xno ; then
20940 ADAHTML_DIR=../../doc/html/ada
20942 # these could be configurable, but are not currently
20950 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"
20951 ac_config_commands="$ac_config_commands default"
20952 cat >confcache <<\_ACEOF
20953 # This file is a shell script that caches the results of configure
20954 # tests run on this system so they can be shared between configure
20955 # scripts and configure runs, see configure's option --config-cache.
20956 # It is not useful on other systems. If it contains results you don't
20957 # want to keep, you may remove or edit it.
20959 # config.status only pays attention to the cache file if you give it
20960 # the --recheck option to rerun configure.
20962 # `ac_cv_env_foo' variables (set or unset) will be overriden when
20963 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20964 # following values.
20968 # The following way of writing the cache mishandles newlines in values,
20969 # but we know of no workaround that is simple, portable, and efficient.
20970 # So, don't put newlines in cache variables' values.
20971 # Ultrix sh set writes to stderr and can't be redirected directly,
20972 # and sets the high bit in the cache file unless we assign to the vars.
20975 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20977 # `set' does not quote correctly, so add quotes (double-quote
20978 # substitution turns \\\\ into \\, and sed turns \\ into \).
20981 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20984 # `set' quotes correctly as required by POSIX, so do not add quotes.
20986 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20993 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20995 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20997 if cmp -s $cache_file confcache; then :; else
20998 if test -w $cache_file; then
20999 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21000 cat confcache >$cache_file
21002 echo "not updating unwritable cache $cache_file"
21007 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21008 # Let make expand exec_prefix.
21009 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21011 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21012 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21013 # trailing colons and then remove the whole line if VPATH becomes empty
21014 # (actually we leave an empty line to preserve line numbers).
21015 if test "x$srcdir" = x.; then
21016 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21017 s/:*\$(srcdir):*/:/;
21018 s/:*\${srcdir}:*/:/;
21020 s/^\([^=]*=[ ]*\):*/\1/;
21026 DEFS=-DHAVE_CONFIG_H
21028 : ${CONFIG_STATUS=./config.status}
21029 ac_clean_files_save=$ac_clean_files
21030 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21031 { echo "$as_me:21031: creating $CONFIG_STATUS" >&5
21032 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21033 cat >$CONFIG_STATUS <<_ACEOF
21035 # Generated automatically by configure.
21036 # Run this file to recreate the current configuration.
21037 # Compiler output produced by configure, useful for debugging
21038 # configure, is in config.log if it exists.
21041 SHELL=\${CONFIG_SHELL-$SHELL}
21042 ac_cs_invocation="\$0 \$@"
21046 cat >>$CONFIG_STATUS <<\_ACEOF
21047 # Be Bourne compatible
21048 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21051 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21055 # Name of the executable.
21056 as_me=`echo "$0" |sed 's,.*[\\/],,'`
21058 if expr a : '\(a\)' >/dev/null 2>&1; then
21064 rm -f conf$$ conf$$.exe conf$$.file
21066 if ln -s conf$$.file conf$$ 2>/dev/null; then
21067 # We could just check for DJGPP; but this test a) works b) is more generic
21068 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21069 if test -f conf$$.exe; then
21070 # Don't use ln at all; we don't have any links
21075 elif ln conf$$.file conf$$ 2>/dev/null; then
21080 rm -f conf$$ conf$$.exe conf$$.file
21082 as_executable_p="test -f"
21084 # Support unset when possible.
21085 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
21092 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
21093 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
21094 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
21095 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
21096 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
21097 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
21098 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
21099 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
21102 # We need space, tab and new line, in precisely that order.
21108 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
21114 # Files that config.status was made for.
21115 if test -n "$ac_config_files"; then
21116 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21119 if test -n "$ac_config_headers"; then
21120 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21123 if test -n "$ac_config_links"; then
21124 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21127 if test -n "$ac_config_commands"; then
21128 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21131 cat >>$CONFIG_STATUS <<\EOF
21134 \`$as_me' instantiates files from templates according to the
21135 current configuration.
21137 Usage: $0 [OPTIONS] [FILE]...
21139 -h, --help print this help, then exit
21140 -V, --version print version number, then exit
21141 -d, --debug don't remove temporary files
21142 --recheck update $as_me by reconfiguring in the same conditions
21143 --file=FILE[:TEMPLATE]
21144 instantiate the configuration file FILE
21145 --header=FILE[:TEMPLATE]
21146 instantiate the configuration header FILE
21148 Configuration files:
21151 Configuration headers:
21154 Configuration commands:
21157 Report bugs to <dickey@invisible-island.net>."
21160 cat >>$CONFIG_STATUS <<EOF
21163 configured by $0, generated by GNU Autoconf 2.52.20121002,
21164 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21166 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
21167 Free Software Foundation, Inc.
21168 This config.status script is free software; the Free Software Foundation
21169 gives unlimited permission to copy, distribute and modify it."
21174 cat >>$CONFIG_STATUS <<\EOF
21175 # If no file are specified by the user, then we need to provide default
21176 # value. By we need to know if files were specified by the user.
21182 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21183 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21185 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
21189 *) # This is not an option, so the user has probably given explicit
21191 ac_need_defaults=false;;
21195 # Handling of the options.
21197 cat >>$CONFIG_STATUS <<EOF
21198 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21199 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
21200 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
21202 cat >>$CONFIG_STATUS <<\EOF
21203 --version | --vers* | -V )
21204 echo "$ac_cs_version"; exit 0 ;;
21206 # Conflict between --help and --header
21207 { { echo "$as_me:21207: error: ambiguous option: $1
21208 Try \`$0 --help' for more information." >&5
21209 echo "$as_me: error: ambiguous option: $1
21210 Try \`$0 --help' for more information." >&2;}
21211 { (exit 1); exit 1; }; };;
21212 --help | --hel | -h )
21213 echo "$ac_cs_usage"; exit 0 ;;
21214 --debug | --d* | -d )
21216 --file | --fil | --fi | --f )
21218 CONFIG_FILES="$CONFIG_FILES $1"
21219 ac_need_defaults=false;;
21220 --header | --heade | --head | --hea )
21222 CONFIG_HEADERS="$CONFIG_HEADERS $1"
21223 ac_need_defaults=false;;
21225 # This is an error.
21226 -*) { { echo "$as_me:21226: error: unrecognized option: $1
21227 Try \`$0 --help' for more information." >&5
21228 echo "$as_me: error: unrecognized option: $1
21229 Try \`$0 --help' for more information." >&2;}
21230 { (exit 1); exit 1; }; } ;;
21232 *) ac_config_targets="$ac_config_targets $1" ;;
21241 ## ----------------------- ##
21242 ## Running config.status. ##
21243 ## ----------------------- ##
21245 This file was extended by $as_me 2.52.20121002, executed with
21246 CONFIG_FILES = $CONFIG_FILES
21247 CONFIG_HEADERS = $CONFIG_HEADERS
21248 CONFIG_LINKS = $CONFIG_LINKS
21249 CONFIG_COMMANDS = $CONFIG_COMMANDS
21250 > $ac_cs_invocation
21251 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21256 cat >>$CONFIG_STATUS <<EOF
21258 # INIT-COMMANDS section.
21261 ### Special initialization commands, used to pass information from the
21262 ### configuration-run into config.status
21265 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
21266 DFT_LWR_MODEL="$DFT_LWR_MODEL"
21268 LDCONFIG="$LDCONFIG"
21269 LIBTOOL_VERSION="$LIBTOOL_VERSION"
21270 LIB_NAME="$LIB_NAME"
21271 LIB_PREFIX="$LIB_PREFIX"
21272 LIB_SUBSETS="$LIB_SUBSETS"
21273 LIB_SUFFIX="$LIB_SUFFIX"
21274 LIB_TRACING="$LIB_TRACING"
21276 MAKE_TERMINFO="$MAKE_TERMINFO"
21277 NCURSES_MAJOR="$NCURSES_MAJOR"
21278 NCURSES_MINOR="$NCURSES_MINOR"
21279 NCURSES_OSPEED="$NCURSES_OSPEED"
21280 NCURSES_PATCH="$NCURSES_PATCH"
21281 SRC_SUBDIRS="$SRC_SUBDIRS"
21282 TERMINFO="$TERMINFO"
21283 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
21284 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
21285 TICS_NAME="$TICS_NAME"
21286 TIC_PATH="$TIC_PATH"
21287 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
21288 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
21289 TINFO_NAME="$TINFO_NAME"
21290 TINFO_SUFFIX="$TINFO_SUFFIX"
21291 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
21292 WITH_CURSES_H="$with_curses_h"
21293 WITH_ECHO="${enable_echo:=yes}"
21294 WITH_OVERWRITE="$with_overwrite"
21295 cf_LIST_MODELS="$cf_list_models"
21296 cf_cv_abi_version="$cf_cv_abi_version"
21297 cf_cv_do_relink="$cf_cv_do_relink"
21298 cf_cv_do_symlinks="$cf_cv_do_symlinks"
21299 cf_cv_enable_lp64="$cf_cv_enable_lp64"
21300 cf_cv_enable_opaque="$cf_cv_enable_opaque"
21301 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
21302 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
21303 cf_cv_prog_gnat_correct=$cf_cv_prog_gnat_correct
21304 cf_cv_rel_version="$cf_cv_rel_version"
21305 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
21306 cf_cv_shared_soname='$cf_cv_shared_soname'
21307 cf_cv_shlib_version="$cf_cv_shlib_version"
21308 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
21309 cf_cv_system_name="$cf_cv_system_name"
21310 cf_cv_term_driver="$with_term_driver"
21311 cf_with_ada="$cf_with_ada"
21312 cf_with_cxx_binding="$cf_with_cxx_binding"
21313 cf_with_manpages="$cf_with_manpages"
21314 cf_with_tests="$cf_with_tests"
21315 with_shared_cxx="$with_shared_cxx"
21321 cat >>$CONFIG_STATUS <<\EOF
21322 for ac_config_target in $ac_config_targets
21324 case "$ac_config_target" in
21325 # Handling of arguments.
21326 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
21327 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
21328 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
21329 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
21330 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
21331 "$SUB_SCRIPTS" ) CONFIG_FILES="$CONFIG_FILES $SUB_SCRIPTS" ;;
21332 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
21333 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21334 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21335 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
21336 *) { { echo "$as_me:21336: error: invalid argument: $ac_config_target" >&5
21337 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21338 { (exit 1); exit 1; }; };;
21342 # If the user did not use the arguments to specify the items to instantiate,
21343 # then the envvar interface is used. Set only those that are not.
21344 # We use the long form for the default assignment because of an extremely
21345 # bizarre bug on SunOS 4.1.3.
21346 if $ac_need_defaults; then
21347 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21348 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21349 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21352 # Create a temporary directory, and hook for its removal unless debugging.
21355 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21356 trap '{ (exit 1); exit 1; }' 1 2 13 15
21359 # Create a (secure) tmp directory for tmp files.
21362 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
21363 test -n "$tmp" && test -d "$tmp"
21366 tmp=$TMPDIR/cs$$-$RANDOM
21367 (umask 077 && mkdir $tmp)
21370 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
21371 { (exit 1); exit 1; }
21376 cat >>$CONFIG_STATUS <<EOF
21379 # CONFIG_FILES section.
21382 # No need to generate the scripts if there are no CONFIG_FILES.
21383 # This happens for instance when ./config.status config.h
21384 if test -n "\$CONFIG_FILES"; then
21385 # Protect against being on the right side of a sed subst in config.status.
21386 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21387 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21388 s,@SHELL@,$SHELL,;t t
21389 s,@exec_prefix@,$exec_prefix,;t t
21390 s,@prefix@,$prefix,;t t
21391 s,@program_transform_name@,$program_transform_name,;t t
21392 s,@bindir@,$bindir,;t t
21393 s,@sbindir@,$sbindir,;t t
21394 s,@libexecdir@,$libexecdir,;t t
21395 s,@datarootdir@,$datarootdir,;t t
21396 s,@datadir@,$datadir,;t t
21397 s,@sysconfdir@,$sysconfdir,;t t
21398 s,@sharedstatedir@,$sharedstatedir,;t t
21399 s,@localstatedir@,$localstatedir,;t t
21400 s,@libdir@,$libdir,;t t
21401 s,@includedir@,$includedir,;t t
21402 s,@oldincludedir@,$oldincludedir,;t t
21403 s,@infodir@,$infodir,;t t
21404 s,@mandir@,$mandir,;t t
21405 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21406 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21407 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21408 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21409 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21410 s,@build_alias@,$build_alias,;t t
21411 s,@host_alias@,$host_alias,;t t
21412 s,@target_alias@,$target_alias,;t t
21413 s,@ECHO_C@,$ECHO_C,;t t
21414 s,@ECHO_N@,$ECHO_N,;t t
21415 s,@ECHO_T@,$ECHO_T,;t t
21416 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21417 s,@DEFS@,$DEFS,;t t
21418 s,@LIBS@,$LIBS,;t t
21419 s,@top_builddir@,$top_builddir,;t t
21420 s,@EGREP@,$EGREP,;t t
21421 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
21422 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
21423 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
21424 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
21425 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
21426 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
21427 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
21428 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
21429 s,@build@,$build,;t t
21430 s,@build_cpu@,$build_cpu,;t t
21431 s,@build_vendor@,$build_vendor,;t t
21432 s,@build_os@,$build_os,;t t
21433 s,@host@,$host,;t t
21434 s,@host_cpu@,$host_cpu,;t t
21435 s,@host_vendor@,$host_vendor,;t t
21436 s,@host_os@,$host_os,;t t
21437 s,@target@,$target,;t t
21438 s,@target_cpu@,$target_cpu,;t t
21439 s,@target_vendor@,$target_vendor,;t t
21440 s,@target_os@,$target_os,;t t
21442 s,@CFLAGS@,$CFLAGS,;t t
21443 s,@LDFLAGS@,$LDFLAGS,;t t
21444 s,@CPPFLAGS@,$CPPFLAGS,;t t
21445 s,@ac_ct_CC@,$ac_ct_CC,;t t
21446 s,@EXEEXT@,$EXEEXT,;t t
21447 s,@OBJEXT@,$OBJEXT,;t t
21448 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
21450 s,@LDCONFIG@,$LDCONFIG,;t t
21452 s,@CXXFLAGS@,$CXXFLAGS,;t t
21453 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21455 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21456 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21457 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21458 s,@LINT@,$LINT,;t t
21459 s,@LINT_OPTS@,$LINT_OPTS,;t t
21460 s,@LN_S@,$LN_S,;t t
21461 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21462 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
21463 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
21464 s,@SET_MAKE@,$SET_MAKE,;t t
21465 s,@CTAGS@,$CTAGS,;t t
21466 s,@ETAGS@,$ETAGS,;t t
21467 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
21468 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
21469 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
21470 s,@RANLIB@,$RANLIB,;t t
21471 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21473 s,@ac_ct_LD@,$ac_ct_LD,;t t
21475 s,@ac_ct_AR@,$ac_ct_AR,;t t
21477 s,@ac_ct_NM@,$ac_ct_NM,;t t
21478 s,@ARFLAGS@,$ARFLAGS,;t t
21479 s,@DESTDIR@,$DESTDIR,;t t
21480 s,@BUILD_CC@,$BUILD_CC,;t t
21481 s,@BUILD_CPP@,$BUILD_CPP,;t t
21482 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
21483 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
21484 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
21485 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
21486 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
21487 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
21488 s,@cf_list_models@,$cf_list_models,;t t
21489 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
21490 s,@LIBTOOL@,$LIBTOOL,;t t
21491 s,@ac_ct_LIBTOOL@,$ac_ct_LIBTOOL,;t t
21492 s,@LT_UNDEF@,$LT_UNDEF,;t t
21493 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
21494 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
21495 s,@LIB_CREATE@,$LIB_CREATE,;t t
21496 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
21497 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
21498 s,@LIB_PREP@,$LIB_PREP,;t t
21499 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
21500 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
21501 s,@LIB_LINK@,$LIB_LINK,;t t
21502 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
21503 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
21504 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
21505 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
21506 s,@TICS_NAME@,$TICS_NAME,;t t
21507 s,@TINFO_NAME@,$TINFO_NAME,;t t
21508 s,@LIB_NAME@,$LIB_NAME,;t t
21509 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
21510 s,@CC_G_OPT@,$CC_G_OPT,;t t
21511 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
21512 s,@LD_MODEL@,$LD_MODEL,;t t
21513 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
21514 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
21515 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
21516 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
21517 s,@LINK_PROGS@,$LINK_PROGS,;t t
21518 s,@LINK_TESTS@,$LINK_TESTS,;t t
21519 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
21520 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
21521 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
21522 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
21523 s,@RPATH_LIST@,$RPATH_LIST,;t t
21524 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
21525 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
21526 s,@NCURSES_USE_DATABASE@,$NCURSES_USE_DATABASE,;t t
21527 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
21528 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
21529 s,@XTERM_KBS@,$XTERM_KBS,;t t
21530 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
21531 s,@TERMINFO@,$TERMINFO,;t t
21532 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
21533 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
21534 s,@TERMPATH@,$TERMPATH,;t t
21535 s,@NCURSES_USE_TERMCAP@,$NCURSES_USE_TERMCAP,;t t
21536 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
21537 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
21538 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
21539 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
21540 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
21541 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
21542 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
21543 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
21544 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
21545 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
21546 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
21547 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
21548 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
21549 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
21550 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
21551 s,@NCURSES_TPARM_ARG@,$NCURSES_TPARM_ARG,;t t
21552 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
21553 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
21554 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
21555 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
21556 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
21557 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
21558 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
21559 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
21560 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
21561 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
21562 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
21563 s,@PTHREAD@,$PTHREAD,;t t
21564 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
21565 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
21566 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
21567 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
21568 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
21569 s,@ECHO_LT@,$ECHO_LT,;t t
21570 s,@ECHO_LD@,$ECHO_LD,;t t
21571 s,@RULE_CC@,$RULE_CC,;t t
21572 s,@SHOW_CC@,$SHOW_CC,;t t
21573 s,@ECHO_CC@,$ECHO_CC,;t t
21574 s,@ECHO_LINK@,$ECHO_LINK,;t t
21575 s,@ADAFLAGS@,$ADAFLAGS,;t t
21576 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
21577 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
21578 s,@ADA_TRACE@,$ADA_TRACE,;t t
21579 s,@MATH_LIB@,$MATH_LIB,;t t
21580 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
21581 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
21582 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
21583 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
21584 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
21585 s,@TEST_LIBS@,$TEST_LIBS,;t t
21586 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
21587 s,@CXXCPP@,$CXXCPP,;t t
21588 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
21589 s,@CXX_AR@,$CXX_AR,;t t
21590 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
21591 s,@CXXLIBS@,$CXXLIBS,;t t
21592 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
21593 s,@gnat_exists@,$gnat_exists,;t t
21594 s,@M4_exists@,$M4_exists,;t t
21595 s,@cf_ada_make@,$cf_ada_make,;t t
21596 s,@cf_compile_generics@,$cf_compile_generics,;t t
21597 s,@cf_generic_objects@,$cf_generic_objects,;t t
21598 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
21599 s,@PRAGMA_UNREF@,$PRAGMA_UNREF,;t t
21600 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
21601 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
21602 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
21603 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
21604 s,@cf_ada_package@,$cf_ada_package,;t t
21605 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
21606 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
21607 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
21608 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
21609 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
21610 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
21611 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
21612 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
21613 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
21614 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
21615 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
21616 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
21617 s,@TICS_LDFLAGS@,$TICS_LDFLAGS,;t t
21618 s,@TICS_LIBS@,$TICS_LIBS,;t t
21619 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
21620 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
21621 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
21622 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
21623 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
21624 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
21625 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
21626 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
21627 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
21628 s,@TICS_LIST@,$TICS_LIST,;t t
21629 s,@TINFO_LIST@,$TINFO_LIST,;t t
21630 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
21631 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
21632 s,@TEST_ARGS@,$TEST_ARGS,;t t
21633 s,@TEST_DEPS@,$TEST_DEPS,;t t
21634 s,@TEST_ARG2@,$TEST_ARG2,;t t
21635 s,@TEST_DEP2@,$TEST_DEP2,;t t
21636 s,@PC_MODULES_TO_MAKE@,$PC_MODULES_TO_MAKE,;t t
21637 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
21638 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
21639 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
21640 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
21641 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
21642 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
21643 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
21644 s,@cross_compiling@,$cross_compiling,;t t
21645 s,@TIC_PATH@,$TIC_PATH,;t t
21646 s,@MAKE_TESTS@,$MAKE_TESTS,;t t
21647 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
21648 s,@PANEL_NAME@,$PANEL_NAME,;t t
21649 s,@MENU_NAME@,$MENU_NAME,;t t
21650 s,@FORM_NAME@,$FORM_NAME,;t t
21651 s,@CXX_NAME@,$CXX_NAME,;t t
21656 cat >>$CONFIG_STATUS <<\EOF
21657 # Split the substitutions into bite-sized pieces for seds with
21658 # small command number limits, like on Digital OSF/1 and HP-UX.
21659 ac_max_sed_lines=48
21660 ac_sed_frag=1 # Number of current file.
21661 ac_beg=1 # First line for current file.
21662 ac_end=$ac_max_sed_lines # Line after last line for current file.
21665 while $ac_more_lines; do
21666 if test $ac_beg -gt 1; then
21667 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21669 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21671 if test ! -s $tmp/subs.frag; then
21672 ac_more_lines=false
21674 # The purpose of the label and of the branching condition is to
21675 # speed up the sed processing (if there are no `@' at all, there
21676 # is no need to browse any of the substitutions).
21677 # These are the two extra sed commands mentioned above.
21679 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21680 if test -z "$ac_sed_cmds"; then
21681 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21683 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21685 ac_sed_frag=`expr $ac_sed_frag + 1`
21687 ac_end=`expr $ac_end + $ac_max_sed_lines`
21690 if test -z "$ac_sed_cmds"; then
21693 fi # test -n "$CONFIG_FILES"
21696 cat >>$CONFIG_STATUS <<\EOF
21697 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21698 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21700 - | *:- | *:-:* ) # input from stdin
21702 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21703 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21704 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21705 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21706 * ) ac_file_in=$ac_file.in ;;
21709 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21710 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21711 X"$ac_file" : 'X\(//\)[^/]' \| \
21712 X"$ac_file" : 'X\(//\)$' \| \
21713 X"$ac_file" : 'X\(/\)' \| \
21714 . : '\(.\)' 2>/dev/null ||
21716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21718 /^X\(\/\/\)$/{ s//\1/; q; }
21719 /^X\(\/\).*/{ s//\1/; q; }
21721 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21722 { case "$ac_dir" in
21723 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
21727 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
21728 case $as_mkdir_dir in
21729 # Skip DOS drivespec
21730 ?:) as_incr_dir=$as_mkdir_dir ;;
21732 as_incr_dir=$as_incr_dir/$as_mkdir_dir
21733 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
21738 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
21739 # A "../" for each directory in $ac_dir_suffix.
21740 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
21742 ac_dir_suffix= ac_dots=
21747 if test -z "$ac_dots"; then
21750 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
21752 [\\/]* | ?:[\\/]* )
21753 ac_srcdir=$srcdir$ac_dir_suffix;
21754 ac_top_srcdir=$srcdir ;;
21755 *) # Relative path.
21756 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
21757 ac_top_srcdir=$ac_dots$srcdir ;;
21761 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21762 *) ac_INSTALL=$ac_dots$INSTALL ;;
21765 if test x"$ac_file" != x-; then
21766 { echo "$as_me:21766: creating $ac_file" >&5
21767 echo "$as_me: creating $ac_file" >&6;}
21770 # Let's still pretend it is `configure' which instantiates (i.e., don't
21771 # use $as_me), people would be surprised to read:
21772 # /* config.h. Generated automatically by config.status. */
21773 configure_input="Generated automatically from `echo $ac_file_in |
21774 sed 's,.*/,,'` by configure."
21776 # First look for the input files in the build tree, otherwise in the
21778 ac_file_inputs=`IFS=:
21779 for f in $ac_file_in; do
21781 -) echo $tmp/stdin ;;
21783 # Absolute (can't be DOS-style, as IFS=:)
21784 test -f "$f" || { { echo "$as_me:21784: error: cannot find input file: $f" >&5
21785 echo "$as_me: error: cannot find input file: $f" >&2;}
21786 { (exit 1); exit 1; }; }
21789 if test -f "$f"; then
21792 elif test -f "$srcdir/$f"; then
21797 { { echo "$as_me:21797: error: cannot find input file: $f" >&5
21798 echo "$as_me: error: cannot find input file: $f" >&2;}
21799 { (exit 1); exit 1; }; }
21802 done` || { (exit 1); exit 1; }
21804 cat >>$CONFIG_STATUS <<\EOF
21805 ac_warn_datarootdir=no
21806 if test x"$ac_file" != x-; then
21807 for ac_item in $ac_file_inputs
21809 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
21810 if test -n "$ac_seen"; then
21811 ac_used=`grep '@datarootdir@' $ac_item`
21812 if test -z "$ac_used"; then
21813 { echo "$as_me:21813: WARNING: datarootdir was used implicitly but not set:
21815 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
21817 ac_warn_datarootdir=yes
21820 ac_seen=`grep '${datarootdir}' $ac_item`
21821 if test -n "$ac_seen"; then
21822 { echo "$as_me:21822: WARNING: datarootdir was used explicitly but not set:
21824 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
21826 ac_warn_datarootdir=yes
21831 if test "x$ac_warn_datarootdir" = xyes; then
21832 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
21836 cat >>$CONFIG_STATUS <<EOF
21840 cat >>$CONFIG_STATUS <<\EOF
21842 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21843 s,@configure_input@,$configure_input,;t t
21844 s,@srcdir@,$ac_srcdir,;t t
21845 s,@top_srcdir@,$ac_top_srcdir,;t t
21846 s,@INSTALL@,$ac_INSTALL,;t t
21847 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21849 if test x"$ac_file" != x-; then
21850 cp $tmp/out $ac_file
21852 for ac_name in prefix exec_prefix datarootdir
21854 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
21855 if test -n "$ac_seen"; then
21856 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
21857 if test -z "$ac_init"; then
21858 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
21859 { echo "$as_me:21859: WARNING: Variable $ac_name is used but was not set:
21861 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
21866 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
21867 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
21868 if test -s $tmp/out; then
21869 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
21870 { echo "$as_me:21870: WARNING: Some variables may not be substituted:
21872 echo "$as_me: WARNING: Some variables may not be substituted:
21882 cat >>$CONFIG_STATUS <<\EOF
21885 # CONFIG_HEADER section.
21888 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21889 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21891 # ac_d sets the value in "#define NAME VALUE" lines.
21892 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21893 ac_dB='[ ].*$,\1#\2'
21896 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
21897 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21898 ac_iB='\([ ]\),\1#\2define\3'
21901 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21902 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21903 ac_uB='$,\1#\2define\3'
21907 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21908 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21910 - | *:- | *:-:* ) # input from stdin
21912 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21913 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21914 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21915 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21916 * ) ac_file_in=$ac_file.in ;;
21919 test x"$ac_file" != x- && { echo "$as_me:21919: creating $ac_file" >&5
21920 echo "$as_me: creating $ac_file" >&6;}
21922 # First look for the input files in the build tree, otherwise in the
21924 ac_file_inputs=`IFS=:
21925 for f in $ac_file_in; do
21927 -) echo $tmp/stdin ;;
21929 # Absolute (can't be DOS-style, as IFS=:)
21930 test -f "$f" || { { echo "$as_me:21930: error: cannot find input file: $f" >&5
21931 echo "$as_me: error: cannot find input file: $f" >&2;}
21932 { (exit 1); exit 1; }; }
21935 if test -f "$f"; then
21938 elif test -f "$srcdir/$f"; then
21943 { { echo "$as_me:21943: error: cannot find input file: $f" >&5
21944 echo "$as_me: error: cannot find input file: $f" >&2;}
21945 { (exit 1); exit 1; }; }
21948 done` || { (exit 1); exit 1; }
21949 # Remove the trailing spaces.
21950 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21954 # Transform confdefs.h into a list of #define's. We won't use it as a sed
21955 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
21956 # be either 'cat' or 'sort'.
21957 cat confdefs.h | uniq >conftest.vals
21959 # Break up conftest.vals because some shells have a limit on
21960 # the size of here documents, and old seds have small limits too.
21962 rm -f conftest.tail
21963 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
21964 while grep . conftest.vals >/dev/null
21966 # Write chunks of a limited-size here document to conftest.frag.
21967 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
21968 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
21969 echo 'CEOF' >> $CONFIG_STATUS
21970 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
21971 rm -f conftest.vals
21972 mv conftest.tail conftest.vals
21974 rm -f conftest.vals
21976 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
21978 echo ' cat >> conftest.edit <<CEOF
21979 /@DEFS@/r conftest.frag
21982 sed -f conftest.edit $tmp/in > $tmp/out
21984 mv $tmp/out $tmp/in
21985 rm -f conftest.edit conftest.frag
21986 ' >> $CONFIG_STATUS
21988 cat >>$CONFIG_STATUS <<\EOF
21989 # Let's still pretend it is `configure' which instantiates (i.e., don't
21990 # use $as_me), people would be surprised to read:
21991 # /* config.h. Generated automatically by config.status. */
21992 if test x"$ac_file" = x-; then
21993 echo "/* Generated automatically by configure. */" >$tmp/config.h
21995 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
21997 cat $tmp/in >>$tmp/config.h
21999 if test x"$ac_file" != x-; then
22000 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
22001 { echo "$as_me:22001: $ac_file is unchanged" >&5
22002 echo "$as_me: $ac_file is unchanged" >&6;}
22004 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22005 X"$ac_file" : 'X\(//\)[^/]' \| \
22006 X"$ac_file" : 'X\(//\)$' \| \
22007 X"$ac_file" : 'X\(/\)' \| \
22008 . : '\(.\)' 2>/dev/null ||
22010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22011 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22012 /^X\(\/\/\)$/{ s//\1/; q; }
22013 /^X\(\/\).*/{ s//\1/; q; }
22015 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22016 { case "$ac_dir" in
22017 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
22021 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
22022 case $as_mkdir_dir in
22023 # Skip DOS drivespec
22024 ?:) as_incr_dir=$as_mkdir_dir ;;
22026 as_incr_dir=$as_incr_dir/$as_mkdir_dir
22027 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
22034 mv $tmp/config.h $ac_file
22038 rm -f $tmp/config.h
22042 cat >>$CONFIG_STATUS <<\EOF
22044 # CONFIG_COMMANDS section.
22046 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22047 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22048 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22052 if test "x$cf_with_tests" != xno ; then
22056 if test ! -d $srcdir/$cf_dir; then
22058 elif test -f $srcdir/$cf_dir/programs; then
22059 $AWK -f $srcdir/test/mk-test.awk INSTALL=no ECHO_LINK="$ECHO_LD" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
22065 cf_prefix=$LIB_PREFIX
22067 case $cf_cv_shlib_version in #(vi
22069 TINFO_NAME=$TINFO_ARG_SUFFIX
22074 if test -n "$TINFO_SUFFIX" ; then
22075 case $TINFO_SUFFIX in
22077 TINFO_NAME="${TINFO_NAME}tw"
22078 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^tw//'`
22081 TINFO_NAME="${TINFO_NAME}t"
22082 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^t//'`
22085 TINFO_NAME="${TINFO_NAME}w"
22086 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^w//'`
22091 for cf_dir in $SRC_SUBDIRS
22093 if test ! -d $srcdir/$cf_dir ; then
22095 elif test -f $srcdir/$cf_dir/modules; then
22099 for cf_item in $cf_LIST_MODELS
22102 case X$cf_item in #(vi
22105 cf_depsuf=$cf_suffix
22109 cf_depsuf=$cf_suffix
22113 cf_depsuf=$cf_suffix
22116 case $cf_cv_system_name in
22119 cf_depsuf=$cf_suffix
22121 cygwin*|mingw*) #(vi
22127 cf_depsuf=$cf_suffix
22133 cf_depsuf=$cf_suffix
22137 cf_depsuf=$cf_suffix
22143 cf_depsuf=$cf_suffix
22149 cf_depsuf=$cf_suffix
22152 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
22153 test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"
22156 test "$cf_dir" = c++ && cf_libname=ncurses++
22157 if test $cf_item = shared ; then
22158 if test -n "${LIB_SUFFIX}"
22160 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${LIB_SUFFIX}"'//'`
22162 cf_shared_suffix="$cf_suffix"
22164 if test "$cf_cv_do_symlinks" = yes ; then
22167 case "$cf_cv_shlib_version" in #(vi
22169 cf_version_name=REL_VERSION
22172 cf_version_name=ABI_VERSION
22176 if test -n "$cf_version_name"
22178 case "$cf_cv_system_name" in #(vi
22181 cf_suffix="${LIB_SUFFIX}"'.${'$cf_version_name'}'"$cf_shared_suffix"
22184 cf_suffix="$cf_suffix"'.${'$cf_version_name'}'
22188 if test -n "${LIB_SUFFIX}"
22190 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${LIB_SUFFIX}"'//'`
22192 cf_shared_suffix="$cf_suffix"
22195 # cygwin needs import library, and has unique naming convention
22196 # use autodetected ${cf_prefix} for import lib and static lib, but
22197 # use 'cyg' prefix for shared lib.
22198 case $cf_cv_shlib_version in #(vi
22200 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
22201 Libs_To_Make="$Libs_To_Make ../lib/cyg${cf_libname}${cf_cygsuf}"
22205 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
22206 Libs_To_Make="$Libs_To_Make ../lib/lib${cf_libname}${cf_cygsuf}"
22211 Libs_To_Make="$Libs_To_Make ../lib/${cf_prefix}${cf_libname}${cf_suffix}"
22214 if test $cf_dir = ncurses ; then
22215 cf_subsets="$LIB_SUBSETS"
22216 cf_r_parts="$cf_subsets"
22217 cf_liblist="$Libs_To_Make"
22219 while test -n "$cf_r_parts"
22221 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
22222 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
22223 if test "$cf_l_parts" != "$cf_r_parts" ; then
22225 case $cf_l_parts in #(vi
22227 cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
22230 cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
22236 if test -n "$cf_item"; then
22237 Libs_To_Make="$cf_item $Libs_To_Make"
22244 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
22247 if test $cf_dir = c++; then
22248 if test "x$with_shared_cxx" != xyes && test -n "$cf_shared_suffix"; then
22250 for cf_item in $Libs_To_Make
22256 cf_item=`echo "$cf_item" | sed -e "s,"$cf_shared_suffix",.a,"`
22259 for cf_test in $cf_list
22261 if test "$cf_test" = "$cf_item"
22263 cf_LIST_MODELS=`echo "$cf_LIST_MODELS" | sed -e 's/normal//'`
22268 test -n "$cf_item" && cf_list="$cf_list $cf_item"
22270 Libs_To_Make="$cf_list"
22274 sed -e "s%@Libs_To_Make@%$Libs_To_Make%" \
22275 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
22276 $cf_dir/Makefile >$cf_dir/Makefile.out
22277 mv $cf_dir/Makefile.out $cf_dir/Makefile
22279 $AWK -f $srcdir/mk-0th.awk \
22280 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" ticlib="$TICS_LIB_SUFFIX" termlib="$TINFO_LIB_SUFFIX" \
22281 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
22283 for cf_subset in $cf_subsets
22286 for cf_item in $cf_LIST_MODELS
22289 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
22291 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
22294 if test "$CXX_MODEL" = SHARED; then
22295 case $cf_cv_shlib_version in #(vi
22297 test "x$with_shared_cxx" = xno && test -n "$verbose" && echo " overriding CXX_MODEL to SHARED" 1>&6
22299 echo "${as_me:-configure}:22299: testing overriding CXX_MODEL to SHARED ..." 1>&5
22301 with_shared_cxx=yes
22304 test "x$with_shared_cxx" = xno && CXX_MODEL=NORMAL
22309 case X$cf_item in #(vi
22312 cf_depsuf=$cf_suffix
22316 cf_depsuf=$cf_suffix
22320 cf_depsuf=$cf_suffix
22323 case $cf_cv_system_name in
22326 cf_depsuf=$cf_suffix
22328 cygwin*|mingw*) #(vi
22334 cf_depsuf=$cf_suffix
22340 cf_depsuf=$cf_suffix
22344 cf_depsuf=$cf_suffix
22350 cf_depsuf=$cf_suffix
22356 cf_depsuf=$cf_suffix
22359 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
22360 test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"
22363 libtool) cf_subdir='obj_lo' ;;
22364 normal) cf_subdir='objects' ;;
22365 debug) cf_subdir='obj_g' ;;
22366 profile) cf_subdir='obj_p' ;;
22368 case $cf_cv_system_name in #(vi
22370 cf_subdir='objects' ;;
22372 cf_subdir='obj_s' ;;
22376 # Test for case where we build libtinfo with a different name.
22378 if test $cf_dir = ncurses ; then
22381 cf_libname=${cf_libname}$LIB_SUFFIX
22384 cf_libname=$TINFO_LIB_SUFFIX
22387 cf_libname=$TICS_LIB_SUFFIX
22390 elif test $cf_dir = c++ ; then
22391 cf_libname=ncurses++$LIB_SUFFIX
22393 cf_libname=${cf_libname}$LIB_SUFFIX
22395 if test -n "${DFT_ARG_SUFFIX}" ; then
22396 # undo $LIB_SUFFIX add-on in CF_LIB_SUFFIX
22397 cf_suffix=`echo $cf_suffix |sed -e "s%^${LIB_SUFFIX}%%"`
22400 # These dependencies really are for development, not
22401 # builds, but they are useful in porting, too.
22402 cf_depend="../include/ncurses_cfg.h"
22403 if test "$srcdir" = "."; then
22406 cf_reldir="\${srcdir}"
22409 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
22410 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
22411 elif test -f $srcdir/$cf_dir/curses.priv.h; then
22412 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
22416 old_cf_suffix="$cf_suffix"
22417 if test "$cf_cv_shlib_version_infix" = yes ; then
22418 if test -n "$LIB_SUFFIX" ; then
22419 case $LIB_SUFFIX in
22421 cf_libname=`echo $cf_libname | sed 's/tw$//'`
22422 cf_suffix=`echo $cf_suffix | sed 's/^tw//'`
22426 cf_libname=`echo $cf_libname | sed 's/t$//'`
22427 cf_suffix=`echo $cf_suffix | sed 's/^t//'`
22431 cf_libname=`echo $cf_libname | sed 's/w$//'`
22432 cf_suffix=`echo $cf_suffix | sed 's/^w//'`
22439 $AWK -f $srcdir/mk-1st.awk \
22440 name=${cf_libname}${cf_dir_suffix} \
22441 traces=$LIB_TRACING \
22443 CXX_MODEL=$CXX_MODEL \
22445 prefix=$cf_prefix \
22446 suffix=$cf_suffix \
22447 subset=$cf_subset \
22448 driver=$cf_cv_term_driver \
22450 TermlibRoot=$TINFO_NAME \
22451 TermlibSuffix=$TINFO_SUFFIX \
22452 ShlibVer=$cf_cv_shlib_version \
22453 ShlibVerInfix=$cf_cv_shlib_version_infix \
22454 ReLink=${cf_cv_do_relink:-no} \
22455 DoLinks=$cf_cv_do_symlinks \
22456 rmSoLocs=$cf_cv_rm_so_locs \
22457 ldconfig="$LDCONFIG" \
22458 overwrite=$WITH_OVERWRITE \
22459 depend="$cf_depend" \
22461 libtool_version="$LIBTOOL_VERSION" \
22462 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
22464 cf_suffix="$old_cf_suffix"
22466 for cf_subdir2 in $cf_subdirs lib
22468 test $cf_subdir = $cf_subdir2 && break
22470 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
22471 $AWK -f $srcdir/mk-2nd.awk \
22473 traces=$LIB_TRACING \
22476 subset=$cf_subset \
22479 crenames=$cf_cv_prog_CC_c_o \
22480 cxxrenames=$cf_cv_prog_CXX_c_o \
22481 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
22482 cf_subdirs="$cf_subdirs $cf_subdir"
22487 echo ' cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@' >>Makefile
22490 for cf_dir in $SRC_SUBDIRS
22492 if test ! -d $srcdir/$cf_dir ; then
22496 if test -f $cf_dir/Makefile ; then
22499 echo 'libs \' >> Makefile
22500 echo 'install.libs \' >> Makefile
22501 echo 'uninstall.libs ::' >> Makefile
22502 echo ' cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@' >> Makefile
22507 if test -f $srcdir/$cf_dir/modules; then
22509 if test -f $srcdir/$cf_dir/headers; then
22510 cat >> Makefile <<CF_EOF
22511 install.includes \\
22512 uninstall.includes \\
22515 if test "$cf_dir" != "c++" ; then
22516 echo 'lint \' >> Makefile
22518 cat >> Makefile <<CF_EOF
22524 uninstall.$cf_dir ::
22525 cd $cf_dir && \${MAKE} \${TOP_MFLAGS} \$@
22527 elif test -f $srcdir/$cf_dir/headers; then
22528 cat >> Makefile <<CF_EOF
22533 install.includes \\
22534 uninstall.includes ::
22535 cd $cf_dir && \${MAKE} \${TOP_MFLAGS} \$@
22540 cat >> Makefile <<CF_EOF
22542 install.libs uninstall.libs \\
22543 install.data uninstall.data ::
22544 $MAKE_TERMINFO cd misc && \${MAKE} \${TOP_MFLAGS} \$@
22547 if test "x$cf_with_manpages" = xyes; then
22548 cat >> Makefile <<CF_EOF
22552 cd man && \${MAKE} \${TOP_MFLAGS} \$@
22556 cat >> Makefile <<CF_EOF
22559 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
22560 rm -f headers.sh headers.sed mk_shared_lib.sh
22561 rm -f edit_man.* man_alias.*
22562 rm -rf \${DIRS_TO_MAKE}
22565 # Special case: tack's manpage lives in its own directory.
22566 if test "x$cf_with_manpages" = xyes; then
22567 if test -d tack ; then
22568 if test -f $srcdir/$tack.h; then
22569 cat >> Makefile <<CF_EOF
22573 cd tack && \${MAKE} \${TOP_MFLAGS} \$@
22579 rm -f headers.sed headers.sh
22581 echo creating headers.sh
22582 cat >headers.sh <<CF_EOF
22584 # This shell script is generated by the 'configure' script. It is invoked in a
22585 # subdirectory of the build tree. It generates a sed-script in the parent
22586 # directory that is used to adjust includes for header files that reside in a
22587 # subdirectory of /usr/include, etc.
22589 while test \$# != 3
22591 PRG="\$PRG \$1"; shift
22596 TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
22597 TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
22598 echo installing \$SRC in \$DST
22601 if test $WITH_CURSES_H = yes; then
22602 cat >>headers.sh <<CF_EOF
22605 END=\`basename \$DST\`
22606 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
22608 NAME=\`basename \$i\`
22609 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
22613 echo "" >> \$TMPSED
22619 cat >>headers.sh <<CF_EOF
22622 END=\`basename \$DST\`
22623 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
22625 NAME=\`basename \$i\`
22626 if test "\$NAME" = "curses.h"
22628 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
22631 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
22635 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
22640 cat >>headers.sh <<CF_EOF
22642 sed -f \$TMPSED \$SRC > \$TMPSRC
22643 NAME=\`basename \$SRC\`
22645 if test $WITH_CURSES_H != yes; then
22646 cat >>headers.sh <<CF_EOF
22647 test "\$NAME" = "curses.h" && NAME=ncurses.h
22650 cat >>headers.sh <<CF_EOF
22651 # Just in case someone gzip'd manpages, remove the conflicting copy.
22652 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
22654 eval \$PRG \$TMPSRC \$DST/\$NAME
22655 rm -f \$TMPSRC \$TMPSED
22658 chmod 0755 headers.sh
22660 for cf_dir in $SRC_SUBDIRS
22662 if test ! -d $srcdir/$cf_dir ; then
22666 if test -f $srcdir/$cf_dir/headers; then
22667 $AWK -f $srcdir/mk-hdr.awk \
22668 subset="$LIB_SUBSETS" \
22669 compat="$WITH_CURSES_H" \
22670 $srcdir/$cf_dir/headers >>$cf_dir/Makefile
22673 if test -f $srcdir/$cf_dir/modules; then
22674 if test "$cf_dir" != "c++" ; then
22675 cat >>$cf_dir/Makefile <<"CF_EOF"
22676 depend : ${AUTO_SRC}
22677 makedepend -- ${CPPFLAGS} -- ${C_SRC}
22679 # DO NOT DELETE THIS LINE -- make depend depends on it.
22685 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
22686 if test -z "$USE_OLD_MAKERULES" ; then
22687 $AWK -f $srcdir/Ada95/mk-1st.awk <$srcdir/Ada95/src/modules >>Ada95/src/Makefile
22695 cat >>$CONFIG_STATUS <<\EOF
22697 { (exit 0); exit 0; }
22699 chmod +x $CONFIG_STATUS
22700 ac_clean_files=$ac_clean_files_save
22702 # configure is writing to config.log, and then calls config.status.
22703 # config.status does its own redirection, appending to config.log.
22704 # Unfortunately, on DOS this fails, as config.log is still kept open
22705 # by configure, so config.status won't be able to write to it; its
22706 # output is simply discarded. So we exec the FD to /dev/null,
22707 # effectively closing config.log, so it can be properly (re)opened and
22708 # appended to by config.status. When coming back to configure, we
22709 # need to make the FD available again.
22710 if test "$no_create" != yes; then
22713 $SHELL $CONFIG_STATUS || ac_cs_success=false
22715 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22716 # would make configure fail if this is the last instruction.
22717 $ac_cs_success || { (exit 1); exit 1; }
22719 ${MAKE:-make} preinstall